]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
configure could loop if --with-pic was specified
authorEvan Hunt <each@isc.org>
Wed, 29 Aug 2018 23:17:56 +0000 (16:17 -0700)
committerEvan Hunt <each@isc.org>
Wed, 29 Aug 2018 23:19:50 +0000 (19:19 -0400)
configure
configure.in

index 795fb5bf63d1b358a497cae5b56d7c2d60d52009..42eed095777e072ebad47787017b969d39b5ae3e 100755 (executable)
--- a/configure
+++ b/configure
@@ -863,6 +863,7 @@ infodir
 docdir
 oldincludedir
 includedir
+runstatedir
 localstatedir
 sharedstatedir
 sysconfdir
@@ -1021,6 +1022,7 @@ datadir='${datarootdir}'
 sysconfdir='${prefix}/etc'
 sharedstatedir='${prefix}/com'
 localstatedir='${prefix}/var'
+runstatedir='${localstatedir}/run'
 includedir='${prefix}/include'
 oldincludedir='/usr/include'
 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
@@ -1273,6 +1275,15 @@ do
   | -silent | --silent | --silen | --sile | --sil)
     silent=yes ;;
 
+  -runstatedir | --runstatedir | --runstatedi | --runstated \
+  | --runstate | --runstat | --runsta | --runst | --runs \
+  | --run | --ru | --r)
+    ac_prev=runstatedir ;;
+  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
+  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
+  | --run=* | --ru=* | --r=*)
+    runstatedir=$ac_optarg ;;
+
   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
     ac_prev=sbindir ;;
   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
@@ -1410,7 +1421,7 @@ fi
 for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
                datadir sysconfdir sharedstatedir localstatedir includedir \
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
-               libdir localedir mandir
+               libdir localedir mandir runstatedir
 do
   eval ac_val=\$$ac_var
   # Remove trailing slashes.
@@ -1563,6 +1574,7 @@ Fine tuning of the installation directories:
   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
+  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
   --libdir=DIR            object code libraries [EPREFIX/lib]
   --includedir=DIR        C header files [PREFIX/include]
   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
@@ -15570,7 +15582,7 @@ esac
 #
 # If PIC is disabled, shared libraries must also be
 #
-if "$pic_mode" = "no"; then :
+if test "$pic_mode" = "no"; then :
   enable_shared="no"
 fi
 
index 23ecf2bbb4ecd7de53c78b310035f44fab88e187..6eb99f679ffb4038a64af2c2801e49579c9d9c58 100644 (file)
@@ -909,7 +909,7 @@ AC_SUBST(INSTALL_LIBRARY)
 #
 # If PIC is disabled, shared libraries must also be
 #
-AS_IF(["$pic_mode" = "no"],
+AS_IF([test "$pic_mode" = "no"],
       [enable_shared="no"])
 
 CRYPTO=OpenSSL