Dear Kanazawa-san, No, no :-) I apologize if my question made you confused.
The source of configure script is in shell script syntax or m4 macro syntax. "#if..." does not work, because autotool does not use C preprocessor. More complicated tests are needed (because autoconf lacks an utility macro to test the predefined C preprocessor macro). Regards, mpsuzuki Kiyoshi KANAZAWA wrote: > Dear Suzuki san, > > Oh, it is my fault. > It is has to be > #if !defined(__SUNPRO_C) > instead of > #ifndef __SUNPRO_C > ? > > Regards, > > --- Kiyoshi > > > ----- Original Message ----- > From: suzuki toshiya <[email protected]> > To: Kiyoshi KANAZAWA <[email protected]> > Cc: "[email protected]" <[email protected]> > Date: 2018/5/3, Thu 21:52 > Subject: Re: [ft-devel] [freetype-2.9.1] FT_Init_FreeType is missing with cc > on Solaris x64 > > Dear Kanazawa-san, > > BTW, I want to ask one of my question, just for curious. > > suzuki toshiya wrote: >>> diff -ur ../freetype-2.9.1.orig/builds/unix/configure.raw >>> ./builds/unix/configure.raw >>> --- ../freetype-2.9.1.orig/builds/unix/configure.raw 2018-05-01 >>> 19:35:09.000000000 +0000 >>> +++ ./builds/unix/configure.raw 2018-05-03 17:27:54.383361566 +0000 >>> @@ -313,7 +313,9 @@ >>> # >>> AC_MSG_CHECKING([for -fvisibility=hidden compiler flag]) >>> orig_CFLAGS="${CFLAGS}" >>> +#ifndef __SUNPRO_C >>> CFLAGS="${CFLAGS} -fvisibility=hidden" >>> +#endif >>> AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])], >>> AC_MSG_RESULT(yes), >>> CFLAGS="${orig_CFLAGS}" >> Excuse me, these changes for autotools look quite different from the syntax >> of >> autoconf, it looks like C preprocessor. Have you ever resolved similar >> problem >> by such patch for autoconf files? > > Regards, > mpsuzuki > > > > _______________________________________________ Freetype-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/freetype-devel
