7708
if test "$ac_cv_libgcrypt" != yes; then
7728
if test "$ac_cv_libgcrypt" != yes; then
7711
*** libgcrypt was not found. You may want to get it from
7731
*** Libgcrypt v1.4.0 or later was not found. You may want to get it from
7712
7732
*** ftp://ftp.gnupg.org/gcrypt/libgcrypt/
7738
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use nettle" >&5
7739
$as_echo_n "checking whether to use nettle... " >&6; }
7740
if test "$cryptolib" = "nettle";then
7741
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7742
$as_echo "yes" >&6; }
7755
acl_save_prefix="$prefix"
7756
prefix="$acl_final_prefix"
7757
acl_save_exec_prefix="$exec_prefix"
7758
exec_prefix="$acl_final_exec_prefix"
7760
eval additional_includedir=\"$includedir\"
7761
eval additional_libdir=\"$libdir\"
7763
exec_prefix="$acl_save_exec_prefix"
7764
prefix="$acl_save_prefix"
7767
# Check whether --with-libnettle-prefix was given.
7768
if test "${with_libnettle_prefix+set}" = set; then :
7769
withval=$with_libnettle_prefix;
7770
if test "X$withval" = "Xno"; then
7773
if test "X$withval" = "X"; then
7775
acl_save_prefix="$prefix"
7776
prefix="$acl_final_prefix"
7777
acl_save_exec_prefix="$exec_prefix"
7778
exec_prefix="$acl_final_exec_prefix"
7780
eval additional_includedir=\"$includedir\"
7781
eval additional_libdir=\"$libdir\"
7783
exec_prefix="$acl_save_exec_prefix"
7784
prefix="$acl_save_prefix"
7787
additional_includedir="$withval/include"
7788
additional_libdir="$withval/$acl_libdirstem"
7800
names_already_handled=
7801
names_next_round='nettle '
7802
while test -n "$names_next_round"; do
7803
names_this_round="$names_next_round"
7805
for name in $names_this_round; do
7807
for n in $names_already_handled; do
7808
if test "$n" = "$name"; then
7813
if test -z "$already_handled"; then
7814
names_already_handled="$names_already_handled $name"
7815
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7816
eval value=\"\$HAVE_LIB$uppername\"
7817
if test -n "$value"; then
7818
if test "$value" = yes; then
7819
eval value=\"\$LIB$uppername\"
7820
test -z "$value" || LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$value"
7821
eval value=\"\$LTLIB$uppername\"
7822
test -z "$value" || LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }$value"
7831
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7832
if test -n "$acl_shlibext"; then
7833
shrext=".$acl_shlibext" # typically: shrext=.so
7837
if test $use_additional = yes; then
7838
dir="$additional_libdir"
7839
if test -n "$acl_shlibext"; then
7840
if test -f "$dir/$libname$shrext"; then
7842
found_so="$dir/$libname$shrext"
7844
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7845
ver=`(cd "$dir" && \
7846
for f in "$libname$shrext".*; do echo "$f"; done \
7847
| sed -e "s,^$libname$shrext\\\\.,," \
7848
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7849
| sed 1q ) 2>/dev/null`
7850
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7852
found_so="$dir/$libname$shrext.$ver"
7855
eval library_names=\"$acl_library_names_spec\"
7856
for f in $library_names; do
7857
if test -f "$dir/$f"; then
7866
if test "X$found_dir" = "X"; then
7867
if test -f "$dir/$libname.$acl_libext"; then
7869
found_a="$dir/$libname.$acl_libext"
7872
if test "X$found_dir" != "X"; then
7873
if test -f "$dir/$libname.la"; then
7874
found_la="$dir/$libname.la"
7878
if test "X$found_dir" = "X"; then
7879
for x in $LDFLAGS $LTLIBNETTLE; do
7881
acl_save_prefix="$prefix"
7882
prefix="$acl_final_prefix"
7883
acl_save_exec_prefix="$exec_prefix"
7884
exec_prefix="$acl_final_exec_prefix"
7886
exec_prefix="$acl_save_exec_prefix"
7887
prefix="$acl_save_prefix"
7891
dir=`echo "X$x" | sed -e 's/^X-L//'`
7892
if test -n "$acl_shlibext"; then
7893
if test -f "$dir/$libname$shrext"; then
7895
found_so="$dir/$libname$shrext"
7897
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7898
ver=`(cd "$dir" && \
7899
for f in "$libname$shrext".*; do echo "$f"; done \
7900
| sed -e "s,^$libname$shrext\\\\.,," \
7901
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7902
| sed 1q ) 2>/dev/null`
7903
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7905
found_so="$dir/$libname$shrext.$ver"
7908
eval library_names=\"$acl_library_names_spec\"
7909
for f in $library_names; do
7910
if test -f "$dir/$f"; then
7919
if test "X$found_dir" = "X"; then
7920
if test -f "$dir/$libname.$acl_libext"; then
7922
found_a="$dir/$libname.$acl_libext"
7925
if test "X$found_dir" != "X"; then
7926
if test -f "$dir/$libname.la"; then
7927
found_la="$dir/$libname.la"
7932
if test "X$found_dir" != "X"; then
7937
if test "X$found_dir" != "X"; then
7938
LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-L$found_dir -l$name"
7939
if test "X$found_so" != "X"; then
7940
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
7941
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
7944
for x in $ltrpathdirs; do
7945
if test "X$x" = "X$found_dir"; then
7950
if test -z "$haveit"; then
7951
ltrpathdirs="$ltrpathdirs $found_dir"
7953
if test "$acl_hardcode_direct" = yes; then
7954
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
7956
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7957
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
7959
for x in $rpathdirs; do
7960
if test "X$x" = "X$found_dir"; then
7965
if test -z "$haveit"; then
7966
rpathdirs="$rpathdirs $found_dir"
7970
for x in $LDFLAGS $LIBNETTLE; do
7972
acl_save_prefix="$prefix"
7973
prefix="$acl_final_prefix"
7974
acl_save_exec_prefix="$exec_prefix"
7975
exec_prefix="$acl_final_exec_prefix"
7977
exec_prefix="$acl_save_exec_prefix"
7978
prefix="$acl_save_prefix"
7980
if test "X$x" = "X-L$found_dir"; then
7985
if test -z "$haveit"; then
7986
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-L$found_dir"
7988
if test "$acl_hardcode_minus_L" != no; then
7989
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
7991
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-l$name"
7997
if test "X$found_a" != "X"; then
7998
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_a"
8000
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-L$found_dir -l$name"
8003
additional_includedir=
8004
case "$found_dir" in
8005
*/$acl_libdirstem | */$acl_libdirstem/)
8006
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8007
LIBNETTLE_PREFIX="$basedir"
8008
additional_includedir="$basedir/include"
8011
if test "X$additional_includedir" != "X"; then
8012
if test "X$additional_includedir" != "X/usr/include"; then
8014
if test "X$additional_includedir" = "X/usr/local/include"; then
8015
if test -n "$GCC"; then
8017
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8021
if test -z "$haveit"; then
8022
for x in $CPPFLAGS $INCNETTLE; do
8024
acl_save_prefix="$prefix"
8025
prefix="$acl_final_prefix"
8026
acl_save_exec_prefix="$exec_prefix"
8027
exec_prefix="$acl_final_exec_prefix"
8029
exec_prefix="$acl_save_exec_prefix"
8030
prefix="$acl_save_prefix"
8032
if test "X$x" = "X-I$additional_includedir"; then
8037
if test -z "$haveit"; then
8038
if test -d "$additional_includedir"; then
8039
INCNETTLE="${INCNETTLE}${INCNETTLE:+ }-I$additional_includedir"
8045
if test -n "$found_la"; then
8046
save_libdir="$libdir"
8048
*/* | *\\*) . "$found_la" ;;
8049
*) . "./$found_la" ;;
8051
libdir="$save_libdir"
8052
for dep in $dependency_libs; do
8055
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8056
if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
8058
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
8059
if test -n "$GCC"; then
8061
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8065
if test -z "$haveit"; then
8067
for x in $LDFLAGS $LIBNETTLE; do
8069
acl_save_prefix="$prefix"
8070
prefix="$acl_final_prefix"
8071
acl_save_exec_prefix="$exec_prefix"
8072
exec_prefix="$acl_final_exec_prefix"
8074
exec_prefix="$acl_save_exec_prefix"
8075
prefix="$acl_save_prefix"
8077
if test "X$x" = "X-L$additional_libdir"; then
8082
if test -z "$haveit"; then
8083
if test -d "$additional_libdir"; then
8084
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-L$additional_libdir"
8088
for x in $LDFLAGS $LTLIBNETTLE; do
8090
acl_save_prefix="$prefix"
8091
prefix="$acl_final_prefix"
8092
acl_save_exec_prefix="$exec_prefix"
8093
exec_prefix="$acl_final_exec_prefix"
8095
exec_prefix="$acl_save_exec_prefix"
8096
prefix="$acl_save_prefix"
8098
if test "X$x" = "X-L$additional_libdir"; then
8103
if test -z "$haveit"; then
8104
if test -d "$additional_libdir"; then
8105
LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-L$additional_libdir"
8112
dir=`echo "X$dep" | sed -e 's/^X-R//'`
8113
if test "$enable_rpath" != no; then
8115
for x in $rpathdirs; do
8116
if test "X$x" = "X$dir"; then
8121
if test -z "$haveit"; then
8122
rpathdirs="$rpathdirs $dir"
8125
for x in $ltrpathdirs; do
8126
if test "X$x" = "X$dir"; then
8131
if test -z "$haveit"; then
8132
ltrpathdirs="$ltrpathdirs $dir"
8137
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8140
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8143
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$dep"
8144
LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }$dep"
8150
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-l$name"
8151
LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-l$name"
8157
if test "X$rpathdirs" != "X"; then
8158
if test -n "$acl_hardcode_libdir_separator"; then
8160
for found_dir in $rpathdirs; do
8161
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8163
acl_save_libdir="$libdir"
8165
eval flag=\"$acl_hardcode_libdir_flag_spec\"
8166
libdir="$acl_save_libdir"
8167
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$flag"
8169
for found_dir in $rpathdirs; do
8170
acl_save_libdir="$libdir"
8172
eval flag=\"$acl_hardcode_libdir_flag_spec\"
8173
libdir="$acl_save_libdir"
8174
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$flag"
8178
if test "X$ltrpathdirs" != "X"; then
8179
for found_dir in $ltrpathdirs; do
8180
LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-R$found_dir"
8185
ac_save_CPPFLAGS="$CPPFLAGS"
8187
for element in $INCNETTLE; do
8189
for x in $CPPFLAGS; do
8191
acl_save_prefix="$prefix"
8192
prefix="$acl_final_prefix"
8193
acl_save_exec_prefix="$exec_prefix"
8194
exec_prefix="$acl_final_exec_prefix"
8196
exec_prefix="$acl_save_exec_prefix"
8197
prefix="$acl_save_prefix"
8199
if test "X$x" = "X$element"; then
8204
if test -z "$haveit"; then
8205
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8210
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnettle" >&5
8211
$as_echo_n "checking for libnettle... " >&6; }
8212
if ${ac_cv_libnettle+:} false; then :
8213
$as_echo_n "(cached) " >&6
8216
ac_save_LIBS="$LIBS"
8217
LIBS="$LIBS $LIBNETTLE"
8218
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219
/* end confdefs.h. */
8220
#include <nettle/aes.h>
8224
nettle_aes_invert_key (0, 0)
8229
if ac_fn_c_try_link "$LINENO"; then :
8234
rm -f core conftest.err conftest.$ac_objext \
8235
conftest$ac_exeext conftest.$ac_ext
8236
LIBS="$ac_save_LIBS"
8239
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libnettle" >&5
8240
$as_echo "$ac_cv_libnettle" >&6; }
8241
if test "$ac_cv_libnettle" = yes; then
8244
$as_echo "#define HAVE_LIBNETTLE 1" >>confdefs.h
8246
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libnettle" >&5
8247
$as_echo_n "checking how to link with libnettle... " >&6; }
8248
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBNETTLE" >&5
8249
$as_echo "$LIBNETTLE" >&6; }
8252
CPPFLAGS="$ac_save_CPPFLAGS"
8264
if test "$ac_cv_libnettle" != yes; then
8267
*** Libnettle 2.1 was not found.
8270
NETTLE_LIBS="-lgmp -lhogweed"
8272
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8273
$as_echo "no" >&6; }
8276
if test "$cryptolib" = "nettle"; then
8278
ENABLE_NETTLE_FALSE='#'
8280
ENABLE_NETTLE_TRUE='#'
8281
ENABLE_NETTLE_FALSE=
7718
8286
# Check whether --with-included-libtasn1 was given.
9542
if test $ac_cv_header_sys_socket_h != yes; then
9543
for ac_header in winsock2.h
9545
ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
9546
if test "x$ac_cv_header_winsock2_h" = xyes; then :
9547
cat >>confdefs.h <<_ACEOF
9548
#define HAVE_WINSOCK2_H 1
9556
if test "$ac_cv_header_winsock2_h" = yes; then
9558
UNISTD_H_HAVE_WINSOCK2_H=1
9559
SYS_IOCTL_H_HAVE_WINSOCK2_H=1
9565
if test $HAVE_WINSOCK2_H = 1; then
9566
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to call WSAStartup in winsock2.h and -lws2_32" >&5
9567
$as_echo_n "checking if we need to call WSAStartup in winsock2.h and -lws2_32... " >&6; }
9568
if ${gl_cv_func_wsastartup+:} false; then :
9569
$as_echo_n "(cached) " >&6
9572
gl_save_LIBS="$LIBS"
9573
LIBS="$LIBS -lws2_32"
9574
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9575
/* end confdefs.h. */
9577
#ifdef HAVE_WINSOCK2_H
9578
# include <winsock2.h>
9584
WORD wVersionRequested = MAKEWORD(1, 1);
9586
int err = WSAStartup(wVersionRequested, &wsaData);
9592
if ac_fn_c_try_link "$LINENO"; then :
9593
gl_cv_func_wsastartup=yes
9595
gl_cv_func_wsastartup=no
9597
rm -f core conftest.err conftest.$ac_objext \
9598
conftest$ac_exeext conftest.$ac_ext
9599
LIBS="$gl_save_LIBS"
9602
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5
9603
$as_echo "$gl_cv_func_wsastartup" >&6; }
9604
if test "$gl_cv_func_wsastartup" = "yes"; then
9606
$as_echo "#define WINDOWS_SOCKETS 1" >>confdefs.h
9608
LIBSOCKET='-lws2_32'
9611
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
9612
$as_echo_n "checking for library containing setsockopt... " >&6; }
9613
if ${gl_cv_lib_socket+:} false; then :
9614
$as_echo_n "(cached) " >&6
9618
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9619
/* end confdefs.h. */
9633
if ac_fn_c_try_link "$LINENO"; then :
9636
gl_save_LIBS="$LIBS"
9637
LIBS="$gl_save_LIBS -lsocket"
9638
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9639
/* end confdefs.h. */
9653
if ac_fn_c_try_link "$LINENO"; then :
9654
gl_cv_lib_socket="-lsocket"
9656
rm -f core conftest.err conftest.$ac_objext \
9657
conftest$ac_exeext conftest.$ac_ext
9658
if test -z "$gl_cv_lib_socket"; then
9659
LIBS="$gl_save_LIBS -lnetwork"
9660
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9661
/* end confdefs.h. */
9675
if ac_fn_c_try_link "$LINENO"; then :
9676
gl_cv_lib_socket="-lnetwork"
9678
rm -f core conftest.err conftest.$ac_objext \
9679
conftest$ac_exeext conftest.$ac_ext
9680
if test -z "$gl_cv_lib_socket"; then
9681
LIBS="$gl_save_LIBS -lnet"
9682
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9683
/* end confdefs.h. */
9697
if ac_fn_c_try_link "$LINENO"; then :
9698
gl_cv_lib_socket="-lnet"
9700
rm -f core conftest.err conftest.$ac_objext \
9701
conftest$ac_exeext conftest.$ac_ext
9704
LIBS="$gl_save_LIBS"
9707
rm -f core conftest.err conftest.$ac_objext \
9708
conftest$ac_exeext conftest.$ac_ext
9709
if test -z "$gl_cv_lib_socket"; then
9710
gl_cv_lib_socket="none needed"
9714
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5
9715
$as_echo "$gl_cv_lib_socket" >&6; }
9716
if test "$gl_cv_lib_socket" != "none needed"; then
9717
LIBSOCKET="$gl_cv_lib_socket"
8982
9723
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build OpenSSL compatibility layer" >&5
8983
9724
$as_echo_n "checking whether to build OpenSSL compatibility layer... " >&6; }
8984
9725
# Check whether --enable-openssl-compatibility was given.
9016
if test $ac_cv_header_sys_socket_h != yes; then
9017
for ac_header in winsock2.h
9019
ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
9020
if test "x$ac_cv_header_winsock2_h" = x""yes; then :
9021
cat >>confdefs.h <<_ACEOF
9022
#define HAVE_WINSOCK2_H 1
9030
if test "$ac_cv_header_winsock2_h" = yes; then
9032
UNISTD_H_HAVE_WINSOCK2_H=1
9033
SYS_IOCTL_H_HAVE_WINSOCK2_H=1
9039
if test $HAVE_WINSOCK2_H = 1; then
9040
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to call WSAStartup in winsock2.h and -lws2_32" >&5
9041
$as_echo_n "checking if we need to call WSAStartup in winsock2.h and -lws2_32... " >&6; }
9042
if test "${gl_cv_func_wsastartup+set}" = set; then :
9043
$as_echo_n "(cached) " >&6
9046
gl_save_LIBS="$LIBS"
9047
LIBS="$LIBS -lws2_32"
9048
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049
/* end confdefs.h. */
9051
#ifdef HAVE_WINSOCK2_H
9052
# include <winsock2.h>
9058
WORD wVersionRequested = MAKEWORD(1, 1);
9060
int err = WSAStartup(wVersionRequested, &wsaData);
9066
if ac_fn_c_try_link "$LINENO"; then :
9067
gl_cv_func_wsastartup=yes
9069
gl_cv_func_wsastartup=no
9071
rm -f core conftest.err conftest.$ac_objext \
9072
conftest$ac_exeext conftest.$ac_ext
9073
LIBS="$gl_save_LIBS"
9076
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5
9077
$as_echo "$gl_cv_func_wsastartup" >&6; }
9078
if test "$gl_cv_func_wsastartup" = "yes"; then
9080
$as_echo "#define WINDOWS_SOCKETS 1" >>confdefs.h
9082
LIBSOCKET='-lws2_32'
9085
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
9086
$as_echo_n "checking for library containing setsockopt... " >&6; }
9087
if test "${gl_cv_lib_socket+set}" = set; then :
9088
$as_echo_n "(cached) " >&6
9092
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9093
/* end confdefs.h. */
9107
if ac_fn_c_try_link "$LINENO"; then :
9110
gl_save_LIBS="$LIBS"
9111
LIBS="$gl_save_LIBS -lsocket"
9112
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9113
/* end confdefs.h. */
9127
if ac_fn_c_try_link "$LINENO"; then :
9128
gl_cv_lib_socket="-lsocket"
9130
rm -f core conftest.err conftest.$ac_objext \
9131
conftest$ac_exeext conftest.$ac_ext
9132
if test -z "$gl_cv_lib_socket"; then
9133
LIBS="$gl_save_LIBS -lnetwork"
9134
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9135
/* end confdefs.h. */
9149
if ac_fn_c_try_link "$LINENO"; then :
9150
gl_cv_lib_socket="-lnetwork"
9152
rm -f core conftest.err conftest.$ac_objext \
9153
conftest$ac_exeext conftest.$ac_ext
9154
if test -z "$gl_cv_lib_socket"; then
9155
LIBS="$gl_save_LIBS -lnet"
9156
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9157
/* end confdefs.h. */
9171
if ac_fn_c_try_link "$LINENO"; then :
9172
gl_cv_lib_socket="-lnet"
9174
rm -f core conftest.err conftest.$ac_objext \
9175
conftest$ac_exeext conftest.$ac_ext
9178
LIBS="$gl_save_LIBS"
9181
rm -f core conftest.err conftest.$ac_objext \
9182
conftest$ac_exeext conftest.$ac_ext
9183
if test -z "$gl_cv_lib_socket"; then
9184
gl_cv_lib_socket="none needed"
9188
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5
9189
$as_echo "$gl_cv_lib_socket" >&6; }
9190
if test "$gl_cv_lib_socket" != "none needed"; then
9191
LIBSOCKET="$gl_cv_lib_socket"
9906
# Check whether --with-p11-kit was given.
9907
if test "${with_p11_kit+set}" = set; then :
9908
withval=$with_p11_kit;
9911
if test "$with_p11_kit" != "no"; then
9913
ENABLE_PKCS11_FALSE='#'
9915
ENABLE_PKCS11_TRUE='#'
9916
ENABLE_PKCS11_FALSE=
9919
if test "$with_p11_kit" != "no"; then
9922
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for P11_KIT" >&5
9923
$as_echo_n "checking for P11_KIT... " >&6; }
9925
if test -n "$PKG_CONFIG"; then
9926
if test -n "$P11_KIT_CFLAGS"; then
9927
pkg_cv_P11_KIT_CFLAGS="$P11_KIT_CFLAGS"
9929
if test -n "$PKG_CONFIG" && \
9930
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"p11-kit-1 >= 0.2\""; } >&5
9931
($PKG_CONFIG --exists --print-errors "p11-kit-1 >= 0.2") 2>&5
9933
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9934
test $ac_status = 0; }; then
9935
pkg_cv_P11_KIT_CFLAGS=`$PKG_CONFIG --cflags "p11-kit-1 >= 0.2" 2>/dev/null`
9943
if test -n "$PKG_CONFIG"; then
9944
if test -n "$P11_KIT_LIBS"; then
9945
pkg_cv_P11_KIT_LIBS="$P11_KIT_LIBS"
9947
if test -n "$PKG_CONFIG" && \
9948
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"p11-kit-1 >= 0.2\""; } >&5
9949
($PKG_CONFIG --exists --print-errors "p11-kit-1 >= 0.2") 2>&5
9951
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9952
test $ac_status = 0; }; then
9953
pkg_cv_P11_KIT_LIBS=`$PKG_CONFIG --libs "p11-kit-1 >= 0.2" 2>/dev/null`
9964
if test $pkg_failed = yes; then
9966
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9967
_pkg_short_errors_supported=yes
9969
_pkg_short_errors_supported=no
9971
if test $_pkg_short_errors_supported = yes; then
9972
P11_KIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "p11-kit-1 >= 0.2"`
9974
P11_KIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "p11-kit-1 >= 0.2"`
9976
# Put the nasty error message in config.log where it belongs
9977
echo "$P11_KIT_PKG_ERRORS" >&5
9979
as_fn_error $? "Package requirements (p11-kit-1 >= 0.2) were not met:
9983
Consider adjusting the PKG_CONFIG_PATH environment variable if you
9984
installed software in a non-standard prefix.
9986
Alternatively, you may set the environment variables P11_KIT_CFLAGS
9987
and P11_KIT_LIBS to avoid the need to call pkg-config.
9988
See the pkg-config man page for more details.
9990
elif test $pkg_failed = untried; then
9991
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9992
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9993
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
9994
is in your PATH or set the PKG_CONFIG environment variable to the full
9997
Alternatively, you may set the environment variables P11_KIT_CFLAGS
9998
and P11_KIT_LIBS to avoid the need to call pkg-config.
9999
See the pkg-config man page for more details.
10001
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10002
See \`config.log' for more details" "$LINENO" 5; }
10004
P11_KIT_CFLAGS=$pkg_cv_P11_KIT_CFLAGS
10005
P11_KIT_LIBS=$pkg_cv_P11_KIT_LIBS
10006
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10007
$as_echo "yes" >&6; }
10011
$as_echo "#define ENABLE_PKCS11 1" >>confdefs.h
10013
CFLAGS="$CFLAGS $P11_KIT_CFLAGS"
10014
LIBS="$LIBS $P11_KIT_LIBS"
9353
10018
ac_fn_c_check_type "$LINENO" "uint" "ac_cv_type_uint" "
9354
10019
# include <sys/types.h>
9357
if test "x$ac_cv_type_uint" = x""yes; then :
10022
if test "x$ac_cv_type_uint" = xyes; then :
9359
10024
cat >>confdefs.h <<_ACEOF
9360
10025
#define HAVE_UINT 1
11223
if test -n "$ac_tool_prefix"; then
11224
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11225
set dummy ${ac_tool_prefix}ar; ac_word=$2
11226
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11227
$as_echo_n "checking for $ac_word... " >&6; }
11228
if test "${ac_cv_prog_AR+set}" = set; then :
11992
if test -n "$ac_tool_prefix"; then
11993
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11994
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11995
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11996
$as_echo_n "checking for $ac_word... " >&6; }
11997
if ${ac_cv_prog_DLLTOOL+:} false; then :
11998
$as_echo_n "(cached) " >&6
12000
if test -n "$DLLTOOL"; then
12001
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12003
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12004
for as_dir in $PATH
12007
test -z "$as_dir" && as_dir=.
12008
for ac_exec_ext in '' $ac_executable_extensions; do
12009
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12010
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12011
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12020
DLLTOOL=$ac_cv_prog_DLLTOOL
12021
if test -n "$DLLTOOL"; then
12022
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12023
$as_echo "$DLLTOOL" >&6; }
12025
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12026
$as_echo "no" >&6; }
12031
if test -z "$ac_cv_prog_DLLTOOL"; then
12032
ac_ct_DLLTOOL=$DLLTOOL
12033
# Extract the first word of "dlltool", so it can be a program name with args.
12034
set dummy dlltool; ac_word=$2
12035
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12036
$as_echo_n "checking for $ac_word... " >&6; }
12037
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12038
$as_echo_n "(cached) " >&6
12040
if test -n "$ac_ct_DLLTOOL"; then
12041
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12043
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12044
for as_dir in $PATH
12047
test -z "$as_dir" && as_dir=.
12048
for ac_exec_ext in '' $ac_executable_extensions; do
12049
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12050
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12051
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12060
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12061
if test -n "$ac_ct_DLLTOOL"; then
12062
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12063
$as_echo "$ac_ct_DLLTOOL" >&6; }
12065
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12066
$as_echo "no" >&6; }
12069
if test "x$ac_ct_DLLTOOL" = x; then
12072
case $cross_compiling:$ac_tool_warned in
12074
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12075
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12076
ac_tool_warned=yes ;;
12078
DLLTOOL=$ac_ct_DLLTOOL
12081
DLLTOOL="$ac_cv_prog_DLLTOOL"
12084
test -z "$DLLTOOL" && DLLTOOL=dlltool
12092
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12093
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12094
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12095
$as_echo_n "(cached) " >&6
12097
lt_cv_sharedlib_from_linklib_cmd='unknown'
12100
cygwin* | mingw* | pw32* | cegcc*)
12101
# two different shell functions defined in ltmain.sh
12102
# decide which to use based on capabilities of $DLLTOOL
12103
case `$DLLTOOL --help 2>&1` in
12104
*--identify-strict*)
12105
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12108
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12113
# fallback: assume linklib IS sharedlib
12114
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12119
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12120
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12121
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12122
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12130
if test -n "$ac_tool_prefix"; then
12133
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12134
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12135
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12136
$as_echo_n "checking for $ac_word... " >&6; }
12137
if ${ac_cv_prog_AR+:} false; then :
11229
12138
$as_echo_n "(cached) " >&6
11231
12140
if test -n "$AR"; then
12038
13073
need_locks="$enable_libtool_lock"
13075
if test -n "$ac_tool_prefix"; then
13076
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13077
set dummy ${ac_tool_prefix}mt; ac_word=$2
13078
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13079
$as_echo_n "checking for $ac_word... " >&6; }
13080
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13081
$as_echo_n "(cached) " >&6
13083
if test -n "$MANIFEST_TOOL"; then
13084
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13086
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13087
for as_dir in $PATH
13090
test -z "$as_dir" && as_dir=.
13091
for ac_exec_ext in '' $ac_executable_extensions; do
13092
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13093
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13094
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13103
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13104
if test -n "$MANIFEST_TOOL"; then
13105
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13106
$as_echo "$MANIFEST_TOOL" >&6; }
13108
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13109
$as_echo "no" >&6; }
13114
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13115
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13116
# Extract the first word of "mt", so it can be a program name with args.
13117
set dummy mt; ac_word=$2
13118
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13119
$as_echo_n "checking for $ac_word... " >&6; }
13120
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13121
$as_echo_n "(cached) " >&6
13123
if test -n "$ac_ct_MANIFEST_TOOL"; then
13124
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13126
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13127
for as_dir in $PATH
13130
test -z "$as_dir" && as_dir=.
13131
for ac_exec_ext in '' $ac_executable_extensions; do
13132
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13133
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13134
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13143
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13144
if test -n "$ac_ct_MANIFEST_TOOL"; then
13145
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13146
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13148
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13149
$as_echo "no" >&6; }
13152
if test "x$ac_ct_MANIFEST_TOOL" = x; then
13155
case $cross_compiling:$ac_tool_warned in
13157
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13158
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13159
ac_tool_warned=yes ;;
13161
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13164
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13167
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13168
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13169
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13170
if ${lt_cv_path_mainfest_tool+:} false; then :
13171
$as_echo_n "(cached) " >&6
13173
lt_cv_path_mainfest_tool=no
13174
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13175
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13176
cat conftest.err >&5
13177
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13178
lt_cv_path_mainfest_tool=yes
13182
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13183
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13184
if test "x$lt_cv_path_mainfest_tool" != xyes; then
12041
13193
case $host_os in
12042
13194
rhapsody* | darwin*)
14312
15518
# Microsoft Visual C++.
14313
15519
# hardcode_libdir_flag_spec is actually meaningless, as there is
14314
15520
# no search path for DLLs.
14315
hardcode_libdir_flag_spec=' '
14316
allow_undefined_flag=unsupported
14317
# Tell ltmain to make .lib files, not .a files.
14319
# Tell ltmain to make .dll files, not .so files.
14321
# FIXME: Setting linknames here is a bad hack.
14322
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14323
# The linker will automatically build a .lib file if we build a DLL.
14324
old_archive_from_new_cmds='true'
14325
# FIXME: Should let the user specify the lib program.
14326
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14327
fix_srcfile_path='`cygpath -w "$srcfile"`'
14328
enable_shared_with_static_runtimes=yes
15521
case $cc_basename in
15524
hardcode_libdir_flag_spec=' '
15525
allow_undefined_flag=unsupported
15526
always_export_symbols=yes
15528
# Tell ltmain to make .lib files, not .a files.
15530
# Tell ltmain to make .dll files, not .so files.
15532
# FIXME: Setting linknames here is a bad hack.
15533
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15534
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15535
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15537
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15539
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15541
# The linker will not automatically build a static lib if we build a DLL.
15542
# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15543
enable_shared_with_static_runtimes=yes
15544
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15546
old_postinstall_cmds='chmod 644 $oldlib'
15547
postlink_cmds='lt_outputfile="@OUTPUT@"~
15548
lt_tool_outputfile="@TOOL_OUTPUT@"~
15549
case $lt_outputfile in
15552
lt_outputfile="$lt_outputfile.exe"
15553
lt_tool_outputfile="$lt_tool_outputfile.exe"
15556
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15557
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15558
$RM "$lt_outputfile.manifest";
15562
# Assume MSVC wrapper
15563
hardcode_libdir_flag_spec=' '
15564
allow_undefined_flag=unsupported
15565
# Tell ltmain to make .lib files, not .a files.
15567
# Tell ltmain to make .dll files, not .so files.
15569
# FIXME: Setting linknames here is a bad hack.
15570
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15571
# The linker will automatically build a .lib file if we build a DLL.
15572
old_archive_from_new_cmds='true'
15573
# FIXME: Should let the user specify the lib program.
15574
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15575
enable_shared_with_static_runtimes=yes
14331
15580
darwin* | rhapsody*)
17108
18470
cygwin* | mingw* | pw32* | cegcc*)
17109
# _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17110
# as there is no search path for DLLs.
17111
hardcode_libdir_flag_spec_CXX='-L$libdir'
17112
export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17113
allow_undefined_flag_CXX=unsupported
17114
always_export_symbols_CXX=no
17115
enable_shared_with_static_runtimes_CXX=yes
18471
case $GXX,$cc_basename in
18474
# hardcode_libdir_flag_spec is actually meaningless, as there is
18475
# no search path for DLLs.
18476
hardcode_libdir_flag_spec_CXX=' '
18477
allow_undefined_flag_CXX=unsupported
18478
always_export_symbols_CXX=yes
18479
file_list_spec_CXX='@'
18480
# Tell ltmain to make .lib files, not .a files.
18482
# Tell ltmain to make .dll files, not .so files.
18484
# FIXME: Setting linknames here is a bad hack.
18485
archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18486
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18487
$SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18489
$SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18491
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18493
# The linker will not automatically build a static lib if we build a DLL.
18494
# _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18495
enable_shared_with_static_runtimes_CXX=yes
18497
old_postinstall_cmds_CXX='chmod 644 $oldlib'
18498
postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18499
lt_tool_outputfile="@TOOL_OUTPUT@"~
18500
case $lt_outputfile in
18503
lt_outputfile="$lt_outputfile.exe"
18504
lt_tool_outputfile="$lt_tool_outputfile.exe"
18507
func_to_tool_file "$lt_outputfile"~
18508
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18509
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18510
$RM "$lt_outputfile.manifest";
18515
# _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18516
# as there is no search path for DLLs.
18517
hardcode_libdir_flag_spec_CXX='-L$libdir'
18518
export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18519
allow_undefined_flag_CXX=unsupported
18520
always_export_symbols_CXX=no
18521
enable_shared_with_static_runtimes_CXX=yes
17117
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17118
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17119
# If the export-symbols file already is a .def file (1st line
17120
# is EXPORTS), use it as is; otherwise, prepend...
17121
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17122
cp $export_symbols $output_objdir/$soname.def;
17124
echo EXPORTS > $output_objdir/$soname.def;
17125
cat $export_symbols >> $output_objdir/$soname.def;
17127
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18523
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18524
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18525
# If the export-symbols file already is a .def file (1st line
18526
# is EXPORTS), use it as is; otherwise, prepend...
18527
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18528
cp $export_symbols $output_objdir/$soname.def;
18530
echo EXPORTS > $output_objdir/$soname.def;
18531
cat $export_symbols >> $output_objdir/$soname.def;
18533
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17132
18540
darwin* | rhapsody*)
24073
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
24074
$as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
24075
if ${gl_cv_func_snprintf_retval_c99+:} false; then :
24076
$as_echo_n "(cached) " >&6
24079
if test "$cross_compiling" = yes; then :
24082
# Guess yes on glibc systems.
24083
*-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
24084
# Guess yes on FreeBSD >= 5.
24085
freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";;
24086
freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
24087
# Guess yes on MacOS X >= 10.3.
24088
darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
24089
darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
24090
# Guess yes on OpenBSD >= 3.9.
24091
openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
24092
gl_cv_func_snprintf_retval_c99="guessing no";;
24093
openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
24094
# Guess yes on Solaris >= 2.10.
24095
solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
24096
solaris*) gl_cv_func_printf_sizes_c99="guessing no";;
24097
# Guess yes on AIX >= 4.
24098
aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
24099
aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
24100
# Guess yes on NetBSD >= 3.
24101
netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
24102
gl_cv_func_snprintf_retval_c99="guessing no";;
24103
netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
24104
# Guess yes on BeOS.
24105
beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
24106
# If we don't know, assume the worst.
24107
*) gl_cv_func_snprintf_retval_c99="guessing no";;
24111
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24112
/* end confdefs.h. */
24115
#include <string.h>
24116
static char buf[100];
24119
strcpy (buf, "ABCDEF");
24120
if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
24122
if (snprintf (buf, 0, "%d %d", 4567, 89) != 7)
24124
if (snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
24129
if ac_fn_c_try_run "$LINENO"; then :
24130
gl_cv_func_snprintf_retval_c99=yes
24132
gl_cv_func_snprintf_retval_c99=no
24134
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24135
conftest.$ac_objext conftest.beam conftest.$ac_ext
24140
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
24141
$as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
22410
24144
ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
22411
if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
24145
if test "x$ac_cv_have_decl_snprintf" = xyes; then :
22412
24146
ac_have_decl=1
22414
24148
ac_have_decl=0
22427
24156
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
22428
24157
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
22429
if test "${ac_cv_header_stdbool_h+set}" = set; then :
24158
if ${ac_cv_header_stdbool_h+:} false; then :
22430
24159
$as_echo_n "(cached) " >&6
22432
24161
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22433
24162
/* end confdefs.h. */
22435
#include <stdbool.h>
22437
"error: bool is not defined"
22440
"error: false is not defined"
22443
"error: false is not 0"
22446
"error: true is not defined"
22449
"error: true is not 1"
22451
#ifndef __bool_true_false_are_defined
22452
"error: __bool_true_false_are_defined is not defined"
22455
struct s { _Bool s: 1; _Bool t; } s;
22457
char a[true == 1 ? 1 : -1];
22458
char b[false == 0 ? 1 : -1];
22459
char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22460
char d[(bool) 0.5 == true ? 1 : -1];
22462
char f[(_Bool) 0.0 == false ? 1 : -1];
22464
char h[sizeof (_Bool)];
22465
char i[sizeof s.t];
22466
enum { j = false, k = true, l = false * true, m = true * 256 };
22468
char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22469
char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22470
#if defined __xlc__ || defined __GNUC__
22471
/* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
22472
reported by James Lemley on 2005-10-05; see
22473
http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
22474
This test is not quite right, since xlc is allowed to
22475
reject this program, as the initializer for xlcbug is
22476
not one of the forms that C requires support for.
22477
However, doing the test right would require a run-time
22478
test, and that would make cross-compilation harder.
22479
Let us hope that IBM fixes the xlc bug, and also adds
22480
support for this kind of constant expression. In the
22481
meantime, this test will reject xlc, which is OK, since
22482
our stdbool.h substitute should suffice. We also test
22483
this with GCC, where it should work, to detect more
22484
quickly whether someone messes up the test in the
22486
char digs[] = "0123456789";
22487
int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
22489
/* Catch a bug in an HP-UX C compiler. See
22490
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22491
http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
24164
#include <stdbool.h>
24166
"error: bool is not defined"
24169
"error: false is not defined"
24172
"error: false is not 0"
24175
"error: true is not defined"
24178
"error: true is not 1"
24180
#ifndef __bool_true_false_are_defined
24181
"error: __bool_true_false_are_defined is not defined"
24184
struct s { _Bool s: 1; _Bool t; } s;
24186
char a[true == 1 ? 1 : -1];
24187
char b[false == 0 ? 1 : -1];
24188
char c[__bool_true_false_are_defined == 1 ? 1 : -1];
24189
char d[(bool) 0.5 == true ? 1 : -1];
24190
/* See body of main program for 'e'. */
24191
char f[(_Bool) 0.0 == false ? 1 : -1];
24193
char h[sizeof (_Bool)];
24194
char i[sizeof s.t];
24195
enum { j = false, k = true, l = false * true, m = true * 256 };
24196
/* The following fails for
24197
HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
24199
char o[sizeof n == m * sizeof n[0] ? 1 : -1];
24200
char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
24201
/* Catch a bug in an HP-UX C compiler. See
24202
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
24203
http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22502
/* Refer to every declared value, to avoid compiler optimizations. */
22503
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22504
+ !m + !n + !o + !p + !q + !pq);
24215
/* Refer to every declared value, to avoid compiler optimizations. */
24216
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
24217
+ !m + !n + !o + !p + !q + !pq);
23559
GNULIB_MBSRTOWCS=0;
23560
GNULIB_MBSNRTOWCS=0;
23562
GNULIB_WCSRTOMBS=0;
23563
GNULIB_WCSNRTOMBS=0;
23575
HAVE_DECL_WCWIDTH=1;
23576
REPLACE_MBSTATE_T=0;
23582
REPLACE_MBSRTOWCS=0;
23583
REPLACE_MBSNRTOWCS=0;
23585
REPLACE_WCSRTOMBS=0;
23586
REPLACE_WCSNRTOMBS=0;
23590
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
23591
$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
23592
if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
25145
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
25146
$as_echo_n "checking for working fcntl.h... " >&6; }
25147
if ${gl_cv_header_working_fcntl_h+:} false; then :
23593
25148
$as_echo_n "(cached) " >&6
23595
gl_cv_header_wchar_h_correct_inline=yes
23596
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23597
/* end confdefs.h. */
23599
#define wcstod renamed_wcstod
23601
extern int zero (void);
23602
int main () { return zero(); }
23605
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23606
(eval $ac_compile) 2>&5
23608
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23609
test $ac_status = 0; }; then
23610
mv conftest.$ac_objext conftest1.$ac_objext
23611
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23612
/* end confdefs.h. */
23614
#define wcstod renamed_wcstod
23616
int zero (void) { return 0; }
23619
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23620
(eval $ac_compile) 2>&5
23622
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23623
test $ac_status = 0; }; then
23624
mv conftest.$ac_objext conftest2.$ac_objext
23625
if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
23628
gl_cv_header_wchar_h_correct_inline=no
23632
rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
23635
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
23636
$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
23637
if test $gl_cv_header_wchar_h_correct_inline = no; then
23638
as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
23639
This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
23640
C99 mode. You have four options:
23641
- Add the flag -fgnu89-inline to CC and reconfigure, or
23642
- Fix your include files, using parts of
23643
<http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
23644
- Use a gcc version older than 4.3, or
23645
- Don't use the flags -std=c99 or -std=gnu99.
23646
Configuration aborted." "$LINENO" 5
25150
if test "$cross_compiling" = yes; then :
25151
gl_cv_header_working_fcntl_h=cross-compiling
25153
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25154
/* end confdefs.h. */
25155
#include <sys/types.h>
25156
#include <sys/stat.h>
25157
#include <unistd.h>
25160
#define O_NOATIME 0
25163
#define O_NOFOLLOW 0
25165
static int const constants[] =
25167
O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
25168
O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
25175
int result = !constants;
25177
static char const sym[] = "conftest.sym";
25178
if (symlink (".", sym) != 0)
25182
int fd = open (sym, O_RDONLY | O_NOFOLLOW);
25192
static char const file[] = "confdefs.h";
25193
int fd = open (file, O_RDONLY | O_NOATIME);
25199
if (fstat (fd, &st0) != 0)
25205
if (read (fd, &c, 1) != 1)
25209
if (close (fd) != 0)
25214
if (stat (file, &st1) != 0)
25217
if (st0.st_atime != st1.st_atime)
25229
if ac_fn_c_try_run "$LINENO"; then :
25230
gl_cv_header_working_fcntl_h=yes
25233
4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
25234
64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
25235
68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
25236
*) gl_cv_header_working_fcntl_h='no';;
25239
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25240
conftest.$ac_objext conftest.beam conftest.$ac_ext
25244
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
25245
$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
25247
case $gl_cv_header_working_fcntl_h in #(
25248
*O_NOATIME* | no | cross-compiling) ac_val=0;; #(
25252
cat >>confdefs.h <<_ACEOF
25253
#define HAVE_WORKING_O_NOATIME $ac_val
25257
case $gl_cv_header_working_fcntl_h in #(
25258
*O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
25262
cat >>confdefs.h <<_ACEOF
25263
#define HAVE_WORKING_O_NOFOLLOW $ac_val
23652
25270
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ungetc works on arbitrary bytes" >&5
23653
25271
$as_echo_n "checking whether ungetc works on arbitrary bytes... " >&6; }
23654
if test "${gl_cv_func_ungetc_works+set}" = set; then :
25272
if ${gl_cv_func_ungetc_works+:} false; then :
23655
25273
$as_echo_n "(cached) " >&6
23657
25275
if test "$cross_compiling" = yes; then :
26017
# Code from module ftello:
26032
if test $ac_cv_have_decl_ftello = no; then
26036
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
26037
$as_echo_n "checking for ftello... " >&6; }
26038
if ${gl_cv_func_ftello+:} false; then :
26039
$as_echo_n "(cached) " >&6
26042
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26043
/* end confdefs.h. */
26053
if ac_fn_c_try_link "$LINENO"; then :
26054
gl_cv_func_ftello=yes
26056
gl_cv_func_ftello=no
26058
rm -f core conftest.err conftest.$ac_objext \
26059
conftest$ac_exeext conftest.$ac_ext
26062
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
26063
$as_echo "$gl_cv_func_ftello" >&6; }
26064
if test $gl_cv_func_ftello = no; then
26067
if test $gl_cv_var_stdin_large_offset = no; then
26071
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
26072
$as_echo_n "checking whether ftello works... " >&6; }
26073
if ${gl_cv_func_ftello_works+:} false; then :
26074
$as_echo_n "(cached) " >&6
26078
# Guess no on Solaris.
26079
solaris*) gl_cv_func_ftello_works="guessing no" ;;
26080
# Guess yes otherwise.
26081
*) gl_cv_func_ftello_works="guessing yes" ;;
26083
if test "$cross_compiling" = yes; then :
26086
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26087
/* end confdefs.h. */
26090
#include <stdlib.h>
26091
#include <string.h>
26092
#define TESTFILE "conftest.tmp"
26098
/* Create a file with some contents. */
26099
fp = fopen (TESTFILE, "w");
26102
if (fwrite ("foogarsh", 1, 8, fp) < 8)
26107
/* The file's contents is now "foogarsh". */
26109
/* Try writing after reading to EOF. */
26110
fp = fopen (TESTFILE, "r+");
26113
if (fseek (fp, -1, SEEK_END))
26115
if (!(getc (fp) == 'h'))
26117
if (!(getc (fp) == EOF))
26119
if (!(ftell (fp) == 8))
26121
if (!(ftell (fp) == 8))
26123
if (!(putc ('!', fp) == '!'))
26125
if (!(ftell (fp) == 9))
26127
if (!(fclose (fp) == 0))
26129
fp = fopen (TESTFILE, "r");
26134
if (!(fread (buf, 1, 10, fp) == 9))
26136
if (!(memcmp (buf, "foogarsh!", 9) == 0))
26139
if (!(fclose (fp) == 0))
26142
/* The file's contents is now "foogarsh!". */
26147
if ac_fn_c_try_run "$LINENO"; then :
26148
gl_cv_func_ftello_works=yes
26150
gl_cv_func_ftello_works=no
26152
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26153
conftest.$ac_objext conftest.beam conftest.$ac_ext
26158
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
26159
$as_echo "$gl_cv_func_ftello_works" >&6; }
26160
case "$gl_cv_func_ftello_works" in
26165
$as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
26171
if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
26181
gl_LIBOBJS="$gl_LIBOBJS ftello.$ac_objext"
26193
$as_echo "#define GNULIB_TEST_FTELLO 1" >>confdefs.h
24379
26197
# Code from module gendocs:
24380
26198
# Code from module getaddrinfo:
30336
32090
gl_module_indicator_condition=$gltests_WITNESS
32103
if test $gl_cv_have_include_next = yes; then
32104
gl_cv_next_fcntl_h='<'fcntl.h'>'
32106
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
32107
$as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
32108
if ${gl_cv_next_fcntl_h+:} false; then :
32109
$as_echo_n "(cached) " >&6
32112
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32113
/* end confdefs.h. */
32118
aix*) gl_absname_cpp="$ac_cpp -C" ;;
32119
*) gl_absname_cpp="$ac_cpp" ;;
32121
gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
32122
sed -n '\#/fcntl.h#{
32123
s#.*"\(.*/fcntl.h\)".*#\1#
32131
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
32132
$as_echo "$gl_cv_next_fcntl_h" >&6; }
32134
NEXT_FCNTL_H=$gl_cv_next_fcntl_h
32136
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
32137
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
32138
gl_next_as_first_directive='<'fcntl.h'>'
32140
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
32141
gl_next_as_first_directive=$gl_cv_next_fcntl_h
32143
NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
32150
for gl_func in fcntl openat; do
32151
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
32152
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
32153
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
32154
if eval \${$as_gl_Symbol+:} false; then :
32155
$as_echo_n "(cached) " >&6
32157
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32158
/* end confdefs.h. */
32170
if ac_fn_c_try_compile "$LINENO"; then :
32171
eval "$as_gl_Symbol=yes"
32173
eval "$as_gl_Symbol=no"
32175
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32177
eval ac_res=\$$as_gl_Symbol
32178
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
32179
$as_echo "$ac_res" >&6; }
32180
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
32181
cat >>confdefs.h <<_ACEOF
32182
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
32185
eval ac_cv_have_decl_$gl_func=yes
32195
for ac_func in getpagesize
32197
ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
32198
if test "x$ac_cv_func_getpagesize" = xyes; then :
32199
cat >>confdefs.h <<_ACEOF
32200
#define HAVE_GETPAGESIZE 1
32206
if test $ac_cv_func_getpagesize = no; then
32208
for ac_header in OS.h
32210
ac_fn_c_check_header_mongrel "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default"
32211
if test "x$ac_cv_header_OS_h" = xyes; then :
32212
cat >>confdefs.h <<_ACEOF
32213
#define HAVE_OS_H 1
32220
if test $ac_cv_header_OS_h = yes; then
32223
for ac_header in sys/param.h
32225
ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
32226
if test "x$ac_cv_header_sys_param_h" = xyes; then :
32227
cat >>confdefs.h <<_ACEOF
32228
#define HAVE_SYS_PARAM_H 1
32235
if test $ac_cv_header_sys_param_h = yes; then
32241
REPLACE_GETPAGESIZE=1
32250
gltests_LIBOBJS="$gltests_LIBOBJS getpagesize.$ac_objext"
32254
ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
32255
if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
32258
HAVE_DECL_GETPAGESIZE=0
32265
GNULIB_GETPAGESIZE=$gl_module_indicator_condition
32269
$as_echo "#define GNULIB_TEST_GETPAGESIZE 1" >>confdefs.h
30339
32273
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
30340
32274
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
30341
if test "${ac_cv_c_bigendian+set}" = set; then :
32275
if ${ac_cv_c_bigendian+:} false; then :
30342
32276
$as_echo_n "(cached) " >&6
30344
32278
ac_cv_c_bigendian=unknown
34146
36271
# if finds mixed CR/LF and LF-only lines. Since sed operates in
34147
36272
# text mode, it properly converts lines to CR/LF. This bash problem
34148
36273
# is reportedly fixed, but why not run on old versions too?
34149
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
34150
|| (rm -f "$cfgfile"; exit 1)
34154
cat << \_LT_EOF >> "$cfgfile"
34156
# func_dirname file append nondir_replacement
34157
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
34158
# otherwise set result to NONDIR_REPLACEMENT.
34162
*/*) func_dirname_result="${1%/*}${2}" ;;
34163
* ) func_dirname_result="${3}" ;;
34167
# func_basename file
34170
func_basename_result="${1##*/}"
34173
# func_dirname_and_basename file append nondir_replacement
34174
# perform func_basename and func_dirname in a single function
34176
# dirname: Compute the dirname of FILE. If nonempty,
34177
# add APPEND to the result, otherwise set result
34178
# to NONDIR_REPLACEMENT.
34179
# value returned in "$func_dirname_result"
34180
# basename: Compute filename of FILE.
34181
# value retuned in "$func_basename_result"
34182
# Implementation must be kept synchronized with func_dirname
34183
# and func_basename. For efficiency, we do not delegate to
34184
# those functions but instead duplicate the functionality here.
34185
func_dirname_and_basename ()
34188
*/*) func_dirname_result="${1%/*}${2}" ;;
34189
* ) func_dirname_result="${3}" ;;
34191
func_basename_result="${1##*/}"
34194
# func_stripname prefix suffix name
34195
# strip PREFIX and SUFFIX off of NAME.
34196
# PREFIX and SUFFIX must not contain globbing or regex special
34197
# characters, hashes, percent signs, but SUFFIX may contain a leading
34198
# dot (in which case that matches only a dot).
34201
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
34202
# positional parameters, so assign one to ordinary parameter first.
34203
func_stripname_result=${3}
34204
func_stripname_result=${func_stripname_result#"${1}"}
34205
func_stripname_result=${func_stripname_result%"${2}"}
34211
func_opt_split_opt=${1%%=*}
34212
func_opt_split_arg=${1#*=}
34219
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
34220
*) func_lo2o_result=${1} ;;
34224
# func_xform libobj-or-source
34227
func_xform_result=${1%.*}.lo
34230
# func_arith arithmetic-term...
34233
func_arith_result=$(( $* ))
34237
# STRING may not start with a hyphen.
34240
func_len_result=${#1}
34245
*) # Bourne compatible functions.
34246
cat << \_LT_EOF >> "$cfgfile"
34248
# func_dirname file append nondir_replacement
34249
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
34250
# otherwise set result to NONDIR_REPLACEMENT.
34253
# Extract subdirectory from the argument.
34254
func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
34255
if test "X$func_dirname_result" = "X${1}"; then
34256
func_dirname_result="${3}"
34258
func_dirname_result="$func_dirname_result${2}"
34262
# func_basename file
34265
func_basename_result=`$ECHO "${1}" | $SED "$basename"`
34269
# func_stripname prefix suffix name
34270
# strip PREFIX and SUFFIX off of NAME.
34271
# PREFIX and SUFFIX must not contain globbing or regex special
34272
# characters, hashes, percent signs, but SUFFIX may contain a leading
34273
# dot (in which case that matches only a dot).
34274
# func_strip_suffix prefix name
34278
.*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
34279
*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
34284
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
34285
my_sed_long_arg='1s/^-[^=]*=//'
34290
func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
34291
func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
34297
func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
34300
# func_xform libobj-or-source
34303
func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
34306
# func_arith arithmetic-term...
34309
func_arith_result=`expr "$@"`
34313
# STRING may not start with a hyphen.
34316
func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
34322
case $lt_shell_append in
34324
cat << \_LT_EOF >> "$cfgfile"
34326
# func_append var value
34327
# Append VALUE to the end of shell variable VAR.
34335
cat << \_LT_EOF >> "$cfgfile"
34337
# func_append var value
34338
# Append VALUE to the end of shell variable VAR.
34349
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
34350
|| (rm -f "$cfgfile"; exit 1)
34352
mv -f "$cfgfile" "$ofile" ||
36274
sed '$q' "$ltmain" >> "$cfgfile" \
36275
|| (rm -f "$cfgfile"; exit 1)
36277
if test x"$xsi_shell" = xyes; then
36278
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
36282
\ */*) func_dirname_result="${1%/*}${2}" ;;\
36283
\ * ) func_dirname_result="${3}" ;;\
36285
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
36286
&& mv -f "$cfgfile.tmp" "$cfgfile" \
36287
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36288
test 0 -eq $? || _lt_function_replace_fail=:
36291
sed -e '/^func_basename ()$/,/^} # func_basename /c\
36294
\ func_basename_result="${1##*/}"\
36295
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
36296
&& mv -f "$cfgfile.tmp" "$cfgfile" \
36297
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36298
test 0 -eq $? || _lt_function_replace_fail=:
36301
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
36302
func_dirname_and_basename ()\
36305
\ */*) func_dirname_result="${1%/*}${2}" ;;\
36306
\ * ) func_dirname_result="${3}" ;;\
36308
\ func_basename_result="${1##*/}"\
36309
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
36310
&& mv -f "$cfgfile.tmp" "$cfgfile" \
36311
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36312
test 0 -eq $? || _lt_function_replace_fail=:
36315
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
36318
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
36319
\ # positional parameters, so assign one to ordinary parameter first.\
36320
\ func_stripname_result=${3}\
36321
\ func_stripname_result=${func_stripname_result#"${1}"}\
36322
\ func_stripname_result=${func_stripname_result%"${2}"}\
36323
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
36324
&& mv -f "$cfgfile.tmp" "$cfgfile" \
36325
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36326
test 0 -eq $? || _lt_function_replace_fail=:
36329
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
36330
func_split_long_opt ()\
36332
\ func_split_long_opt_name=${1%%=*}\
36333
\ func_split_long_opt_arg=${1#*=}\
36334
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
36335
&& mv -f "$cfgfile.tmp" "$cfgfile" \
36336
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36337
test 0 -eq $? || _lt_function_replace_fail=:
36340
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
36341
func_split_short_opt ()\
36343
\ func_split_short_opt_arg=${1#??}\
36344
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
36345
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
36346
&& mv -f "$cfgfile.tmp" "$cfgfile" \
36347
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36348
test 0 -eq $? || _lt_function_replace_fail=:
36351
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
36355
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
36356
\ *) func_lo2o_result=${1} ;;\
36358
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
36359
&& mv -f "$cfgfile.tmp" "$cfgfile" \
36360
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36361
test 0 -eq $? || _lt_function_replace_fail=:
36364
sed -e '/^func_xform ()$/,/^} # func_xform /c\
36367
func_xform_result=${1%.*}.lo\
36368
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
36369
&& mv -f "$cfgfile.tmp" "$cfgfile" \
36370
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36371
test 0 -eq $? || _lt_function_replace_fail=:
36374
sed -e '/^func_arith ()$/,/^} # func_arith /c\
36377
func_arith_result=$(( $* ))\
36378
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
36379
&& mv -f "$cfgfile.tmp" "$cfgfile" \
36380
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36381
test 0 -eq $? || _lt_function_replace_fail=:
36384
sed -e '/^func_len ()$/,/^} # func_len /c\
36387
func_len_result=${#1}\
36388
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
36389
&& mv -f "$cfgfile.tmp" "$cfgfile" \
36390
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36391
test 0 -eq $? || _lt_function_replace_fail=:
36395
if test x"$lt_shell_append" = xyes; then
36396
sed -e '/^func_append ()$/,/^} # func_append /c\
36399
eval "${1}+=\\${2}"\
36400
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
36401
&& mv -f "$cfgfile.tmp" "$cfgfile" \
36402
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36403
test 0 -eq $? || _lt_function_replace_fail=:
36406
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
36407
func_append_quoted ()\
36409
\ func_quote_for_eval "${2}"\
36410
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
36411
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
36412
&& mv -f "$cfgfile.tmp" "$cfgfile" \
36413
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36414
test 0 -eq $? || _lt_function_replace_fail=:
36417
# Save a `func_append' function call where possible by direct use of '+='
36418
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
36419
&& mv -f "$cfgfile.tmp" "$cfgfile" \
36420
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36421
test 0 -eq $? || _lt_function_replace_fail=:
36423
# Save a `func_append' function call even when '+=' is not available
36424
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
36425
&& mv -f "$cfgfile.tmp" "$cfgfile" \
36426
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36427
test 0 -eq $? || _lt_function_replace_fail=:
36430
if test x"$_lt_function_replace_fail" = x":"; then
36431
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
36432
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
36436
mv -f "$cfgfile" "$ofile" ||
34353
36437
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
34354
36438
chmod +x "$ofile"