Skip to content

Commit 3ccb07f

Browse files
author
Sascha Schumann
committed
add the HPUX ANSI detection from php3
1 parent 84656f1 commit 3ccb07f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

configure.in.in

+6-1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ AM_MAINTAINER_MODE
7474
dnl We want this one before the checks, so the checks can modify CFLAGS.
7575
test -z "$CFLAGS" && auto_cflags=1
7676

77+
dnl If we're using cc on HP-UX, add the -Ae to CFLAGS
78+
if test -n "$auto_cflags" && test "`uname -s 2>/dev/null`" = "HP-UX"; then
79+
test -n "$GCC" || CFLAGS="-Ae $CFLAGS -D_HPUX_SOURCE"
80+
fi
81+
7782
dnl Checks for programs.
7883
AM_PROG_LIBTOOL
7984
AC_PROG_YACC
@@ -873,7 +878,7 @@ AC_SUBST(LDFLAGS_SHLIB)
873878
AC_SUBST(LDFLAGS_SHLIB_EXPORT)
874879
AC_SUBST(RPATHS)
875880
AC_SUBST(RAW_RPATHS)
876-
881+
877882
PHP_BUILD_DATE=`date '+%Y-%m-%d'`
878883
AC_SUBST(PHP_BUILD_DATE)
879884
AC_DEFINE_UNQUOTED(PHP_BUILD_DATE,"$PHP_BUILD_DATE")

0 commit comments

Comments
 (0)