Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit bb21784

Browse files
committed
Fix, I think, the stdup.o problem reported on those systems without
it.
1 parent 00bcb8a commit bb21784

File tree

2 files changed

+17
-16
lines changed

2 files changed

+17
-16
lines changed

src/configure

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3103,23 +3103,24 @@ fi
31033103

31043104
if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then
31053105
echo "$ac_t""yes" 1>&6
3106-
STRDUP='../../utils/strdup.o' cat >> confdefs.h <<\EOF
3106+
cat >> confdefs.h <<\EOF
31073107
#define HAVE_STRDUP 1
31083108
EOF
31093109

31103110
else
31113111
echo "$ac_t""no" 1>&6
3112+
STRDUP='../../utils/strdup.o'
31123113
fi
31133114

31143115

31153116

31163117
echo $ac_n "checking for cbrt""... $ac_c" 1>&6
3117-
echo "configure:3118: checking for cbrt" >&5
3118+
echo "configure:3119: checking for cbrt" >&5
31183119
if eval "test \"`echo '$''{'ac_cv_func_cbrt'+set}'`\" = set"; then
31193120
echo $ac_n "(cached) $ac_c" 1>&6
31203121
else
31213122
cat > conftest.$ac_ext <<EOF
3122-
#line 3123 "configure"
3123+
#line 3124 "configure"
31233124
#include "confdefs.h"
31243125
/* System header to define __stub macros and hopefully few prototypes,
31253126
which can conflict with char cbrt(); below. */
@@ -3142,7 +3143,7 @@ cbrt();
31423143
31433144
; return 0; }
31443145
EOF
3145-
if { (eval echo configure:3146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3146+
if { (eval echo configure:3147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
31463147
rm -rf conftest*
31473148
eval "ac_cv_func_cbrt=yes"
31483149
else
@@ -3163,15 +3164,15 @@ EOF
31633164
else
31643165
echo "$ac_t""no" 1>&6
31653166
echo $ac_n "checking for cbrt in -lm""... $ac_c" 1>&6
3166-
echo "configure:3167: checking for cbrt in -lm" >&5
3167+
echo "configure:3168: checking for cbrt in -lm" >&5
31673168
ac_lib_var=`echo m'_'cbrt | sed 'y%./+-%__p_%'`
31683169
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
31693170
echo $ac_n "(cached) $ac_c" 1>&6
31703171
else
31713172
ac_save_LIBS="$LIBS"
31723173
LIBS="-lm $LIBS"
31733174
cat > conftest.$ac_ext <<EOF
3174-
#line 3175 "configure"
3175+
#line 3176 "configure"
31753176
#include "confdefs.h"
31763177
/* Override any gcc2 internal prototype to avoid an error. */
31773178
/* We use char because int might match the return type of a gcc2
@@ -3182,7 +3183,7 @@ int main() {
31823183
cbrt()
31833184
; return 0; }
31843185
EOF
3185-
if { (eval echo configure:3186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3186+
if { (eval echo configure:3187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
31863187
rm -rf conftest*
31873188
eval "ac_cv_lib_$ac_lib_var=yes"
31883189
else
@@ -3208,12 +3209,12 @@ fi
32083209
fi
32093210

32103211
echo $ac_n "checking for rint""... $ac_c" 1>&6
3211-
echo "configure:3212: checking for rint" >&5
3212+
echo "configure:3213: checking for rint" >&5
32123213
if eval "test \"`echo '$''{'ac_cv_func_rint'+set}'`\" = set"; then
32133214
echo $ac_n "(cached) $ac_c" 1>&6
32143215
else
32153216
cat > conftest.$ac_ext <<EOF
3216-
#line 3217 "configure"
3217+
#line 3218 "configure"
32173218
#include "confdefs.h"
32183219
/* System header to define __stub macros and hopefully few prototypes,
32193220
which can conflict with char rint(); below. */
@@ -3236,7 +3237,7 @@ rint();
32363237
32373238
; return 0; }
32383239
EOF
3239-
if { (eval echo configure:3240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3240+
if { (eval echo configure:3241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
32403241
rm -rf conftest*
32413242
eval "ac_cv_func_rint=yes"
32423243
else
@@ -3257,15 +3258,15 @@ EOF
32573258
else
32583259
echo "$ac_t""no" 1>&6
32593260
echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
3260-
echo "configure:3261: checking for rint in -lm" >&5
3261+
echo "configure:3262: checking for rint in -lm" >&5
32613262
ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
32623263
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
32633264
echo $ac_n "(cached) $ac_c" 1>&6
32643265
else
32653266
ac_save_LIBS="$LIBS"
32663267
LIBS="-lm $LIBS"
32673268
cat > conftest.$ac_ext <<EOF
3268-
#line 3269 "configure"
3269+
#line 3270 "configure"
32693270
#include "confdefs.h"
32703271
/* Override any gcc2 internal prototype to avoid an error. */
32713272
/* We use char because int might match the return type of a gcc2
@@ -3276,7 +3277,7 @@ int main() {
32763277
rint()
32773278
; return 0; }
32783279
EOF
3279-
if { (eval echo configure:3280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3280+
if { (eval echo configure:3281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
32803281
rm -rf conftest*
32813282
eval "ac_cv_lib_$ac_lib_var=yes"
32823283
else
@@ -3461,8 +3462,8 @@ s%@xargs@%$xargs%g
34613462
s%@ipcs@%$ipcs%g
34623463
s%@ipcrm@%$ipcrm%g
34633464
s%@LIBOBJS@%$LIBOBJS%g
3464-
s%@INET_ATON@%$INET_ATON%g
34653465
s%@STRDUP@%$STRDUP%g
3466+
s%@INET_ATON@%$INET_ATON%g
34663467
34673468
CEOF
34683469
EOF

src/configure.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@ AC_FUNC_VPRINTF
160160
AC_CHECK_FUNCS(isinf tzset getrusage vfork memmove sigsetjmp kill sysconf)
161161
AC_CHECK_FUNCS(sigprocmask waitpid setsid)
162162
AC_CHECK_FUNC(inet_aton, AC_DEFINE(HAVE_INET_ATON), INET_ATON='inet_aton.o')
163-
AC_CHECK_FUNC(strdup, [STRDUP='../../utils/strdup.o' AC_DEFINE(HAVE_STRDUP)])
164-
AC_SUBST(INET_ATON)
163+
AC_CHECK_FUNC(strdup, AC_DEFINE(HAVE_STRDUP), STRDUP='../../utils/strdup.o')
165164
AC_SUBST(STRDUP)
165+
AC_SUBST(INET_ATON)
166166
AC_CHECK_FUNC(cbrt, AC_DEFINE(HAVE_CBRT), AC_CHECK_LIB(m, cbrt, AC_DEFINE(HAVE_CBRT)))
167167
AC_CHECK_FUNC(rint, AC_DEFINE(HAVE_RINT), AC_CHECK_LIB(m, rint, AC_DEFINE(HAVE_RINT)))
168168

0 commit comments

Comments
 (0)