diff options
-rw-r--r-- | configure.in | 64 |
1 files changed, 30 insertions, 34 deletions
diff --git a/configure.in b/configure.in index d9298a3fb4..f7d3dc23e9 100644 --- a/configure.in +++ b/configure.in @@ -70,40 +70,6 @@ if test -n "$with_apache" && test -n "$with_apxs"; then AC_MSG_ERROR([--with-apache and --with-apxs cannot be used together]) fi - - -dnl Platform-specific compile settings. -dnl ------------------------------------------------------------------------- - -dnl if host_alias is empty, ac_cv_host_alias may still have the info -if test -z "$host_alias"; then - host_alias=$ac_cv_host_alias -fi - -BSD_MAKEFILE=no - -case $host_alias in -*solaris*) - CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS" - if test "${enable_libgcc+set}" != "set" && test "$GCC" = "yes"; then - enable_libgcc=yes - fi - ;; -*dgux*) - CPPFLAGS="$CPPFLAGS -D_BSD_TIMEOFDAY_FLAVOR";; -*darwin*|*rhapsody*) - CPPFLAGS="$CPPFLAGS -traditional-cpp";; -*bsdi*) - BSD_MAKEFILE=yes;; -*beos*) - beos_threads=1 - LIBS="$LIBS -lbe -lroot";; -*mips*) - CPPFLAGS="$CPPFLAGS -D_XPG_IV";; -esac - - - dnl Settings we want to make before the checks. dnl ------------------------------------------------------------------------- @@ -195,6 +161,36 @@ if test "$ac_cv_c_const" = "yes" ; then fi +dnl Platform-specific compile settings. +dnl ------------------------------------------------------------------------- + +dnl if host_alias is empty, ac_cv_host_alias may still have the info +if test -z "$host_alias"; then + host_alias=$ac_cv_host_alias +fi + +BSD_MAKEFILE=no + +case $host_alias in +*solaris*) + CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS" + if test "${enable_libgcc+set}" != "set" && test "$GCC" = "yes"; then + enable_libgcc=yes + fi + ;; +*dgux*) + CPPFLAGS="$CPPFLAGS -D_BSD_TIMEOFDAY_FLAVOR";; +*darwin*|*rhapsody*) + CPPFLAGS="$CPPFLAGS -traditional-cpp";; +*bsdi*) + BSD_MAKEFILE=yes;; +*beos*) + beos_threads=1 + LIBS="$LIBS -lbe -lroot";; +*mips*) + CPPFLAGS="$CPPFLAGS -D_XPG_IV";; +esac + dnl Include Zend and TSRM configurations. dnl ------------------------------------------------------------------------- |