]> granicus.if.org Git - php/commitdiff
(configure) Allow IFX_LIBDIR environment variable to specify the
authorDanny Heijl <danny@php.net>
Mon, 11 Oct 1999 11:53:09 +0000 (11:53 +0000)
committerDanny Heijl <danny@php.net>
Mon, 11 Oct 1999 11:53:09 +0000 (11:53 +0000)
            Informix library path to allow linking with the static
            libraries (libtool related). (Danny).
@- IXF_LIBDIR environment variable specifies alternate Informix library
   path for configure (Danny).

ext/informix/config.m4

index 21ad6ff27ba87cbab9226adc9b34722413cd72d6..92b96c1f7b56ebddbbd2d20a519de8833a6e9be0 100644 (file)
@@ -18,10 +18,18 @@ WARNING: You asked for Informix support, but don't have \\\$INFORMIXDIR
     else
       if test "$withval" = "yes"; then
         IFX_INCDIR=$INFORMIXDIR/incl/esql
-        IFX_LIBDIR="-L$INFORMIXDIR/lib -L$INFORMIXDIR/lib/esql"
+        if test -z "$IFX_LIBDIR"; then
+          IFX_LIBDIR="-L$INFORMIXDIR/lib -L$INFORMIXDIR/lib/esql"
+        else
+          IFX_LIBDIR=$IFX_LIBDIR
+        fi
       else
         IFX_INCDIR=$withval/incl/esql
-        IFX_LIBDIR="-L$withval/lib -L$withval/lib/esql"
+        if test -z "$IFX_LIBDIR"; then
+          IFX_LIBDIR="-L$withval/lib -L$withval/lib/esql"
+        else
+          IFX_LIBDIR=$IFX_LIBDIR
+        fi
         if test "$withval" != "$INFORMIXDIR"; then
           INFORMIX_WARNING="
 WARNING: You specified Informix base install directory that is different