From: Marc G. Fournier Date: Fri, 21 Mar 1997 18:58:23 +0000 (+0000) Subject: Forgot to add an AC_SUBST(STRERROR) to configure.in for the strerror() test X-Git-Tag: REL6_1~444 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ae93ad851131547884125e65b2af0e164dd69b1a;p=postgresql Forgot to add an AC_SUBST(STRERROR) to configure.in for the strerror() test Thanks to D'Arcy for pointing this one out --- diff --git a/src/configure b/src/configure index 046fcfd65e..101d963b88 100755 --- a/src/configure +++ b/src/configure @@ -3210,13 +3210,14 @@ fi + echo $ac_n "checking for cbrt""... $ac_c" 1>&6 -echo "configure:3215: checking for cbrt" >&5 +echo "configure:3216: checking for cbrt" >&5 if eval "test \"`echo '$''{'ac_cv_func_cbrt'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:3244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_cbrt=yes" else @@ -3260,7 +3261,7 @@ EOF else echo "$ac_t""no" 1>&6 echo $ac_n "checking for cbrt in -lm""... $ac_c" 1>&6 -echo "configure:3264: checking for cbrt in -lm" >&5 +echo "configure:3265: checking for cbrt in -lm" >&5 ac_lib_var=`echo m'_'cbrt | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3268,7 +3269,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lm $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:3284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3305,12 +3306,12 @@ fi fi echo $ac_n "checking for rint""... $ac_c" 1>&6 -echo "configure:3309: checking for rint" >&5 +echo "configure:3310: checking for rint" >&5 if eval "test \"`echo '$''{'ac_cv_func_rint'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:3338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_rint=yes" else @@ -3354,7 +3355,7 @@ EOF else echo "$ac_t""no" 1>&6 echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6 -echo "configure:3358: checking for rint in -lm" >&5 +echo "configure:3359: checking for rint in -lm" >&5 ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3362,7 +3363,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lm $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:3378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3560,6 +3561,7 @@ s%@ipcrm@%$ipcrm%g s%@LIBOBJS@%$LIBOBJS%g s%@STRDUP@%$STRDUP%g s%@INET_ATON@%$INET_ATON%g +s%@STRERROR@%$STRERROR%g CEOF EOF diff --git a/src/configure.in b/src/configure.in index 7b11138c5e..2546c05335 100644 --- a/src/configure.in +++ b/src/configure.in @@ -166,6 +166,7 @@ AC_CHECK_FUNC(strerror, AC_DEFINE(HAVE_STRERROR), STRERROR='strerror.o') AC_CHECK_FUNC(strdup, AC_DEFINE(HAVE_STRDUP), STRDUP='../../utils/strdup.o') AC_SUBST(STRDUP) AC_SUBST(INET_ATON) +AC_SUBST(STRERROR) AC_CHECK_FUNC(cbrt, AC_DEFINE(HAVE_CBRT), AC_CHECK_LIB(m, cbrt, AC_DEFINE(HAVE_CBRT))) AC_CHECK_FUNC(rint, AC_DEFINE(HAVE_RINT), AC_CHECK_LIB(m, rint, AC_DEFINE(HAVE_RINT)))