comparison configure.in @ 1573:2422ca15ba42

Added support for gcc4's -fvisibility=hidden option. Fixes Bugzilla #169.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 22 Mar 2006 01:28:36 +0000
parents 0160eb7cccee
children 0fd72308659e
comparison
equal deleted inserted replaced
1572:3a8920cc822b 1573:2422ca15ba42
697 EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS" 697 EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
698 fi 698 fi
699 fi 699 fi
700 } 700 }
701 701
702 dnl See if GCC's -fvisibility=hidden is supported (gcc4 and later, usually).
703 dnl Details of this flag are here: http://gcc.gnu.org/wiki/Visibility
704 CheckVisibilityHidden()
705 {
706 AC_MSG_CHECKING(for GCC -fvisibility=hidden option)
707 have_gcc_fvisibility=no
708
709 visibility_CFLAGS="-fvisibility=hidden"
710 save_CFLAGS="$CFLAGS"
711 CFLAGS="$save_CFLAGS $visibility_CFLAGS"
712 AC_TRY_COMPILE([
713 int placeholder = 1;
714 ],[
715 ],[
716 have_gcc_fvisibility=yes
717 ])
718 AC_MSG_RESULT($have_gcc_fvisibility)
719 CFLAGS="$save_CFLAGS"
720
721 if test x$have_gcc_fvisibility = xyes; then
722 EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS -DDECLSPEC=SDL_GCC_ATTR_VIS_DEFAULT"
723 fi
724 }
725
726
702 dnl Do the iPod thing 727 dnl Do the iPod thing
703 CheckIPod() 728 CheckIPod()
704 { 729 {
705 AC_ARG_ENABLE(ipod, 730 AC_ARG_ENABLE(ipod,
706 AC_HELP_STRING([--enable-ipod], [configure SDL to work with iPodLinux [default=yes on arm-elf]]), 731 AC_HELP_STRING([--enable-ipod], [configure SDL to work with iPodLinux [default=yes on arm-elf]]),
1965 *-*-hpux*) ARCH=hpux ;; 1990 *-*-hpux*) ARCH=hpux ;;
1966 *-*-irix*) ARCH=irix ;; 1991 *-*-irix*) ARCH=irix ;;
1967 *-*-aix*) ARCH=aix ;; 1992 *-*-aix*) ARCH=aix ;;
1968 *-*-osf*) ARCH=osf ;; 1993 *-*-osf*) ARCH=osf ;;
1969 esac 1994 esac
1995 CheckVisibilityHidden
1970 CheckDummyVideo 1996 CheckDummyVideo
1971 CheckDiskAudio 1997 CheckDiskAudio
1972 CheckDummyAudio 1998 CheckDummyAudio
1973 CheckDLOPEN 1999 CheckDLOPEN
1974 CheckNASM 2000 CheckNASM