]> granicus.if.org Git - php/commitdiff
Create ``libs'' subdirectory as the current user and add /usr/ucblib
authorSascha Schumann <sas@php.net>
Sat, 4 Dec 1999 19:56:08 +0000 (19:56 +0000)
committerSascha Schumann <sas@php.net>
Sat, 4 Dec 1999 19:56:08 +0000 (19:56 +0000)
always to the libpath, if it exists (#2752).

configure.in

index 05ae5c7408ef6b5d1a350c7602681029af52e577..6b9d7db1b06ad0c171b9a8f477b484b2d2555f14 100644 (file)
@@ -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