Enlightenment CVS committal Author : kwo Project : e17 Module : libs/imlib2
Dir : e17/libs/imlib2 Modified Files: configure.in Log Message: Add option to build with visibility=hidden + associated fixups. =================================================================== RCS file: /cvs/e/e17/libs/imlib2/configure.in,v retrieving revision 1.136 retrieving revision 1.137 diff -u -3 -r1.136 -r1.137 --- configure.in 22 Mar 2007 20:52:41 -0000 1.136 +++ configure.in 9 Apr 2007 12:55:28 -0000 1.137 @@ -12,19 +12,11 @@ AC_PROG_CC AM_PROG_AS -case $host_os in -solaris*) - ;; -*) - AC_MSG_CHECKING([if gcc supports __attribute__((visibility("hidden")))]) - AC_COMPILE_IFELSE([ - void __attribute__((visibility("hidden"))) func (void) {} - ], - [AC_MSG_RESULT(yes) - AC_DEFINE(USE_HIDDEN_FUNCTION_ATTRIBUTE,1, - [Define this to 1 if `hidden' attribute for internal functions is used.])], - [AC_MSG_RESULT(no)]) -esac +dnl Set default visibility to hidden? +AC_ARG_ENABLE(visibility-hiding, + [ --enable-visibility-hiding enable visibility hiding @<:@default=no@:>@],, + enable_visibility_hiding=no +) AM_PROG_CC_STDC AC_HEADER_STDC @@ -589,6 +581,10 @@ AM_CONDITIONAL(BUILD_ID3_LOADER, test "$id3_ok" = yes) AC_SUBST(ID3LIBS) +if test "x$enable_visibility_hiding" = xyes ; then + CPPFLAGS="$CPPFLAGS -fvisibility=hidden" +fi + AC_OUTPUT([ Makefile imlib2.pc @@ -635,6 +631,8 @@ echo echo "Use X86 MMX for speed.....: $mmx" echo "Use AMD64 for speed.......: $amd64" +echo +echo "Use visibility hiding.....: $enable_visibility_hiding" echo echo echo "Installation Path.........: $prefix" ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs