summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-12-04 19:56:08 +0000
committerSascha Schumann <sas@php.net>1999-12-04 19:56:08 +0000
commit68aa4997e3cef19c253ad8d486357f9295df3c19 (patch)
tree1f70d7f87cc41e2cac04c6e7d95c9d75e1fbfd15
parent0d96b8da6b8e4398ebeec16fce22815bfcb23068 (diff)
downloadphp-git-68aa4997e3cef19c253ad8d486357f9295df3c19.tar.gz
Create ``libs'' subdirectory as the current user and add /usr/ucblib
always to the libpath, if it exists (#2752).
-rw-r--r--configure.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 05ae5c7408..6b9d7db1b0 100644
--- a/configure.in
+++ b/configure.in
@@ -5,6 +5,12 @@ divert(0)
AC_INIT(main.c)
+dnl Because ``make install'' is often performed by the superuser,
+dnl we create the libs subdirectory as the user who configures PHP.
+dnl Otherwise, the current user will not be able to delete libs
+dnl or the contents of libs.
+test -d libs || mkdir libs
+
if test "$with_shared_apache" != "no" && test -n "$with_shared_apache" ; then
AC_MSG_ERROR(--with-shared-apache is not supported. Please refer to the documentation for using APXS)
fi
@@ -299,6 +305,8 @@ fi
AC_CHECK_SIZEOF(long, 8)
AC_CHECK_SIZEOF(int, 4)
+test -d /usr/ucblib && AC_ADD_LIBPATH(/usr/ucblib)
+
dnl Check for members of the stat structure
AC_STRUCT_ST_BLKSIZE
dnl AC_STRUCT_ST_BLOCKS will screw QNX because fileblocks.o does not exists