@@ -4946,69 +4946,75 @@ if test "x$enable_warnings" = "xyes"; then :
4946
4946
sun) :
4947
4947
;; #(
4948
4948
*) :
4949
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
4950
- $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
4951
- if ${ax_cv_cxxflags_warn_all+:} false; then :
4952
- $as_echo_n "(cached) " >&6
4953
- else
4954
- ax_cv_cxxflags_warn_all="no, unknown"
4955
-
4956
- ac_ext=cpp
4949
+ ac_ext=cpp
4957
4950
ac_cpp='$CXXCPP $CPPFLAGS'
4958
4951
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4959
4952
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4960
4953
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4961
4954
4962
- ac_save_CXXFLAGS="$CXXFLAGS"
4963
- for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
4955
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
4956
+ $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
4957
+ if ${ac_cv_cxxflags_warn_all+:} false; then :
4958
+ $as_echo_n "(cached) " >&6
4959
+ else
4960
+ ac_cv_cxxflags_warn_all="no, unknown"
4961
+ ac_save_CXXFLAGS="$CXXFLAGS"
4962
+ for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
4964
4963
do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
4965
4964
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966
4965
/* end confdefs.h. */
4967
4966
4968
4967
int
4969
4968
main ()
4970
4969
{
4971
- return 0;
4970
+
4972
4971
;
4973
4972
return 0;
4974
4973
}
4975
4974
_ACEOF
4976
4975
if ac_fn_cxx_try_compile "$LINENO"; then :
4977
- ax_cv_cxxflags_warn_all =`echo $ac_arg | sed -e 's,.*% *,,'` ; break
4976
+ ac_cv_cxxflags_warn_all =`echo $ac_arg | sed -e 's,.*% *,,'` ; break
4978
4977
fi
4979
4978
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4980
4979
done
4981
- CXXFLAGS="$ac_save_CXXFLAGS"
4982
- ac_ext=cpp
4983
- ac_cpp='$CXXCPP $CPPFLAGS'
4984
- ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4985
- ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4986
- ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4987
-
4980
+ CXXFLAGS="$ac_save_CXXFLAGS"
4988
4981
4989
4982
fi
4990
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_warn_all " >&5
4991
- $as_echo "$ax_cv_cxxflags_warn_all " >&6; }
4992
- case ".$ax_cv_cxxflags_warn_all " in
4983
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all " >&5
4984
+ $as_echo "$ac_cv_cxxflags_warn_all " >&6; }
4985
+ case ".$ac_cv_cxxflags_warn_all " in
4993
4986
.ok|.ok,*) ;;
4994
- .|.no|.no,*)
4995
- ;;
4996
- *)
4997
- if echo " $CXXFLAGS " | grep " $ax_cv_cxxflags_warn_all " 2>&1 >/dev/null
4998
- then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$ax_cv_cxxflags_warn_all "; } >&5
4999
- (: CXXFLAGS does contain $ax_cv_cxxflags_warn_all ) 2>&5
4987
+ .|.no|.no,*) ;;
4988
+ *) if ${CXXFLAGS+:} false; then :
4989
+ case " $CXXFLAGS " in
4990
+ * " $ac_cv_cxxflags_warn_all "*)
4991
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all "; } >&5
4992
+ (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all ) 2>&5
5000
4993
ac_status=$?
5001
4994
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5002
4995
test $ac_status = 0; }
5003
- else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ax_cv_cxxflags_warn_all\""; } >&5
5004
- (: CXXFLAGS="$CXXFLAGS $ax_cv_cxxflags_warn_all") 2>&5
4996
+ ;;
4997
+ *)
4998
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
4999
+ (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
5005
5000
ac_status=$?
5006
5001
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5007
5002
test $ac_status = 0; }
5008
- CXXFLAGS="$CXXFLAGS $ax_cv_cxxflags_warn_all"
5009
- fi
5003
+ CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
5004
+ ;;
5005
+ esac
5006
+ else
5007
+ CXXFLAGS="$ac_cv_cxxflags_warn_all"
5008
+ fi
5010
5009
;;
5011
5010
esac
5011
+
5012
+ ac_ext=cpp
5013
+ ac_cpp='$CXXCPP $CPPFLAGS'
5014
+ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5015
+ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5016
+ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5017
+
5012
5018
;;
5013
5019
esac
5014
5020
fi
@@ -8148,10 +8154,9 @@ if test "x$ax_cv_have_gettid" = "xyes"; then :
8148
8154
fi
8149
8155
8150
8156
8151
-
8152
8157
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
8153
8158
$as_echo_n "checking for socklen_t... " >&6; }
8154
- if ${ac_cv_type_socklen_t +:} false; then :
8159
+ if ${ac_cv_ax_type_socklen_t +:} false; then :
8155
8160
$as_echo_n "(cached) " >&6
8156
8161
else
8157
8162
@@ -8168,20 +8173,20 @@ socklen_t len = 42; return 0;
8168
8173
}
8169
8174
_ACEOF
8170
8175
if ac_fn_cxx_try_compile "$LINENO"; then :
8171
- ac_cv_type_socklen_t =yes
8176
+ ac_cv_ax_type_socklen_t =yes
8172
8177
else
8173
- ac_cv_type_socklen_t =no
8178
+ ac_cv_ax_type_socklen_t =no
8174
8179
fi
8175
8180
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8176
8181
8177
8182
fi
8178
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
8179
- $as_echo "$ac_cv_type_socklen_t" >&6; }
8180
- if test $ac_cv_type_socklen_t != yes; then
8181
- $as_echo "#define socklen_t int" >>confdefs.h
8183
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ax_type_socklen_t" >&5
8184
+ $as_echo "$ac_cv_ax_type_socklen_t" >&6; }
8185
+ if test $ac_cv_ax_type_socklen_t != yes; then
8182
8186
8183
- fi
8187
+ $as_echo "#define socklen_t int" >>confdefs.h
8184
8188
8189
+ fi
8185
8190
8186
8191
8187
8192
@@ -8302,8 +8307,8 @@ ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt
8302
8307
# --thread-safe: KAI C++
8303
8308
# pthread-config: use pthread-config program (for GNU Pth library)
8304
8309
8305
- case "${host_cpu}-${ host_os}" in
8306
- * solaris*)
8310
+ case ${ host_os} in
8311
+ solaris*)
8307
8312
8308
8313
# On Solaris (at least, for some versions), libc contains stubbed
8309
8314
# (non-functional) versions of the pthreads routines, so link-based
@@ -8316,7 +8321,7 @@ case "${host_cpu}-${host_os}" in
8316
8321
ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8317
8322
;;
8318
8323
8319
- *- darwin*)
8324
+ darwin*)
8320
8325
ax_pthread_flags="-pthread $ax_pthread_flags"
8321
8326
;;
8322
8327
esac
@@ -8481,10 +8486,10 @@ _ACEOF
8481
8486
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8482
8487
$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8483
8488
flag=no
8484
- case "${host_cpu}-${ host_os}" in
8485
- *- aix* | *- freebsd* | *- darwin*) flag="-D_THREAD_SAFE";;
8486
- *- osf* | *- hpux*) flag="-D_REENTRANT";;
8487
- * solaris*)
8489
+ case ${ host_os} in
8490
+ aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
8491
+ osf* | hpux*) flag="-D_REENTRANT";;
8492
+ solaris*)
8488
8493
if test "$GCC" = "yes"; then
8489
8494
flag="-D_REENTRANT"
8490
8495
else
0 commit comments