@@ -23,7 +23,7 @@ for arg in $0 "$@"; do
23
23
CONFIGURE_COMMAND=" $CONFIGURE_COMMAND '$arg '"
24
24
done
25
25
26
- php_shtool=" $srcdir /build/shtool"
26
+ php_shtool=$srcdir /build/shtool
27
27
T_MD=` $php_shtool echo -n -e %B`
28
28
T_ME=` $php_shtool echo -n -e %b`
29
29
@@ -172,26 +172,26 @@ PHP_MISSING_TIME_R_DECL
172
172
dnl check for -R, etc. switch
173
173
AC_MSG_CHECKING(whether compiler supports -R)
174
174
AC_CACHE_VAL(php_cv_cc_dashr,[
175
- SAVE_LIBS= " ${ LIBS} "
176
- LIBS= " -R /usr/lib ${ LIBS} "
175
+ SAVE_LIBS= $ LIBS
176
+ LIBS= " -R /usr/lib $LIBS "
177
177
AC_TRY_LINK([], [], php_cv_cc_dashr=yes, php_cv_cc_dashr=no)
178
- LIBS= " ${ SAVE_LIBS} " ])
178
+ LIBS= $ SAVE_LIBS ])
179
179
AC_MSG_RESULT($php_cv_cc_dashr )
180
180
if test $php_cv_cc_dashr = " yes" ; then
181
- ld_runpath_switch=" -R "
181
+ ld_runpath_switch=-R
182
182
else
183
183
AC_MSG_CHECKING([whether compiler supports -Wl,-rpath,])
184
184
AC_CACHE_VAL(php_cv_cc_rpath,[
185
- SAVE_LIBS= " ${ LIBS} "
186
- LIBS= " -Wl,-rpath,/usr/lib ${ LIBS} "
185
+ SAVE_LIBS= $ LIBS
186
+ LIBS= " -Wl,-rpath,/usr/lib $LIBS "
187
187
AC_TRY_LINK([], [], php_cv_cc_rpath=yes, php_cv_cc_rpath=no)
188
- LIBS= " ${ SAVE_LIBS} " ])
188
+ LIBS= $ SAVE_LIBS ])
189
189
AC_MSG_RESULT($php_cv_cc_rpath )
190
190
if test $php_cv_cc_rpath = " yes" ; then
191
- ld_runpath_switch=" -Wl,-rpath,"
191
+ ld_runpath_switch=-Wl,-rpath,
192
192
else
193
193
dnl something innocuous
194
- ld_runpath_switch=" -L "
194
+ ld_runpath_switch=-L
195
195
fi
196
196
fi
197
197
@@ -476,34 +476,34 @@ PHP_ARG_WITH(config-file-path,[path to configuration file],
476
476
Sets the path in which to look for php.ini,
477
477
defaults to PREFIX/lib], DEFAULT)
478
478
479
- if test "x $PHP_CONFIG_FILE_PATH " = "xDEFAULT "; then
479
+ if test "$PHP_CONFIG_FILE_PATH " = "DEFAULT "; then
480
480
case $PHP_LAYOUT in
481
481
GNU)
482
- PHP_CONFIG_FILE_PATH=" $sysconfdir "
482
+ PHP_CONFIG_FILE_PATH=$sysconfdir
483
483
oldstyleextdir=no;;
484
484
*)
485
- PHP_CONFIG_FILE_PATH=" $libdir "
485
+ PHP_CONFIG_FILE_PATH=$libdir
486
486
oldstyleextdir=yes;;
487
487
esac
488
488
fi
489
489
490
490
# compatibility
491
491
if test "x$with_pear " = "x" -a "x$enable_pear " = "xno"; then
492
- with_pear="no"
492
+ with_pear=no
493
493
fi
494
494
495
495
PHP_ARG_WITH(pear, [whether to install PEAR, and where],
496
496
[ --with-pear=DIR Install PEAR in DIR (default PREFIX/lib/php)
497
497
--without-pear Do not install PEAR], DEFAULT)
498
498
499
- if test "x $PHP_PEAR " != "xno "; then
499
+ if test "$PHP_PEAR " != "no "; then
500
500
PEAR_DIR=pear
501
501
fi
502
502
503
- if test "x $PHP_PEAR " = "xDEFAULT "; then
503
+ if test "$PHP_PEAR " = "DEFAULT "; then
504
504
case $PHP_LAYOUT in
505
- GNU) PEAR_INSTALLDIR=" $datadir /pear" ;;
506
- *) PEAR_INSTALLDIR=" $libdir /php" ;;
505
+ GNU) PEAR_INSTALLDIR=$datadir /pear;;
506
+ *) PEAR_INSTALLDIR=$libdir /php;;
507
507
esac
508
508
fi
509
509
@@ -698,8 +698,7 @@ if test "$abs_srcdir" != "$abs_builddir"; then
698
698
fi
699
699
700
700
EXTRA_LIBS="$EXTRA_LIBS $DLIBS $LIBS "
701
- LIBS=""
702
- LDFLAGS=""
701
+ unset LIBS LDFLAGS
703
702
704
703
PHP_CONFIGURE_PART(Configuring TSRM)
705
704
TSRM_BASIC_CHECKS
@@ -708,31 +707,30 @@ if test "$PHP_THREAD_SAFETY" = "yes"; then
708
707
fi
709
708
EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LDFLAGS "
710
709
EXTRA_LIBS="$EXTRA_LIBS $LIBS "
711
- LDFLAGS=""
712
- LIBS=""
710
+ unset LIBS LDFLAGS
713
711
714
- test "$prefix " = "NONE" && prefix=" /usr/local"
712
+ test "$prefix " = "NONE" && prefix=/usr/local
715
713
test "$exec_prefix " = "NONE" && exec_prefix='${prefix} '
716
714
717
715
case $libdir in
718
716
'${exec_prefix} /lib')
719
- libdir=" $libdir /php"
717
+ libdir=$libdir /php
720
718
;;
721
719
esac
722
720
case $datadir in
723
721
'${prefix} /share')
724
- datadir=" $datadir /php"
722
+ datadir=$datadir /php
725
723
;;
726
724
*) ;;
727
725
esac
728
726
729
- phplibdir=" ` pwd` /modules"
727
+ phplibdir=` pwd` /modules
730
728
$php_shtool mkdir -p $phplibdir
731
- phptempdir=" ` pwd` /libs"
729
+ phptempdir=` pwd` /libs
732
730
733
- old_exec_prefix=" $exec_prefix "
734
- old_libdir=" $libdir "
735
- old_datadir=" $datadir "
731
+ old_exec_prefix=$exec_prefix
732
+ old_libdir=$libdir
733
+ old_datadir=$datadir
736
734
exec_prefix=` eval echo $exec_prefix `
737
735
libdir=` eval echo $libdir `
738
736
datadir=` eval echo $datadir `
@@ -741,30 +739,30 @@ dnl Build extension directory path
741
739
742
740
ZEND_MODULE_API_NO=` egrep ' #define ZEND_MODULE_API_NO ' $srcdir /Zend/zend_modules.h| sed ' s/#define ZEND_MODULE_API_NO //' `
743
741
744
- if test "x $EXTENSION_DIR " = "x "; then
745
- extbasedir=" $ZEND_MODULE_API_NO "
742
+ if test -z " $EXTENSION_DIR "; then
743
+ extbasedir=$ZEND_MODULE_API_NO
746
744
if test "$oldstyleextdir " = "yes"; then
747
745
if test "$PHP_DEBUG " = "1"; then
748
- part1=" debug"
746
+ part1=debug
749
747
else
750
- part1=" no-debug"
748
+ part1=no-debug
751
749
fi
752
750
if test "$enable_experimental_zts " = "yes"; then
753
- part2=" zts"
751
+ part2=zts
754
752
else
755
- part2=" non-zts"
753
+ part2=non-zts
756
754
fi
757
- extbasedir=" $part1 -$part2 -$extbasedir "
758
- EXTENSION_DIR=" $libdir /extensions/$extbasedir "
755
+ extbasedir=$part1 -$part2 -$extbasedir
756
+ EXTENSION_DIR=$libdir /extensions/$extbasedir
759
757
else
760
758
if test "$enable_experimental_zts " = "yes"; then
761
- extbasedir=" ${ extbasedir} -zts"
759
+ extbasedir=$ extbasedir -zts
762
760
fi
763
761
764
762
if test "$PHP_DEBUG " = "1"; then
765
- extbasedir=" ${ extbasedir} -debug"
763
+ extbasedir=$ extbasedir -debug
766
764
fi
767
- EXTENSION_DIR=" $libdir /$extbasedir "
765
+ EXTENSION_DIR=$libdir /$extbasedir
768
766
fi
769
767
fi
770
768
@@ -773,15 +771,15 @@ EXPANDED_PEAR_INSTALLDIR=`eval echo $PEAR_INSTALLDIR`
773
771
EXPANDED_EXTENSION_DIR=` eval echo $EXTENSION_DIR `
774
772
EXPANDED_LOCALSTATEDIR=` eval echo $localstatedir `
775
773
EXPANDED_BINDIR=` eval echo $bindir `
776
- EXPANDED_LIBDIR=" $libdir "
774
+ EXPANDED_LIBDIR=$libdir
777
775
EXPANDED_SYSCONFDIR=` eval echo $sysconfdir `
778
- EXPANDED_DATADIR=" $datadir "
776
+ EXPANDED_DATADIR=$datadir
779
777
EXPANDED_PHP_CONFIG_FILE_PATH=` eval echo " $PHP_CONFIG_FILE_PATH " `
780
- INCLUDE_PATH=" .:${ EXPANDED_PEAR_INSTALLDIR} "
778
+ INCLUDE_PATH=.:$EXPANDED_PEAR_INSTALLDIR
781
779
782
- exec_prefix=" $old_exec_prefix "
783
- libdir=" $old_libdir "
784
- datadir=" $old_datadir "
780
+ exec_prefix=$old_exec_prefix
781
+ libdir=$old_libdir
782
+ datadir=$old_datadir
785
783
786
784
AC_SUBST(INCLUDE_PATH)
787
785
AC_SUBST(EXPANDED_PEAR_INSTALLDIR)
@@ -864,7 +862,7 @@ PHP_SUBST_OLD(YACC)
864
862
865
863
PHP_CONFIGURE_PART(Configuring libtool)
866
864
867
- old_CC=" $CC "
865
+ old_CC=$CC
868
866
869
867
if test "$PHP_THREAD_SAFETY " = "yes" && test -n "$ac_cv_pthreads_cflags "; then
870
868
CXXFLAGS="$CXXFLAGS $ac_cv_pthreads_cflags "
904
902
fi
905
903
fi
906
904
907
- CC=" $old_CC "
905
+ CC=$old_CC
908
906
909
907
changequote({,})
910
908
if test "$PHP_PIC " = "no"; then
0 commit comments