6121
if test -n "$ac_tool_prefix"; then
6122
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6123
set dummy ${ac_tool_prefix}ar; ac_word=$2
6124
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6125
$as_echo_n "checking for $ac_word... " >&6; }
6126
if test "${ac_cv_prog_AR+set}" = set; then :
6283
if test -n "$ac_tool_prefix"; then
6284
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6285
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6286
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6287
$as_echo_n "checking for $ac_word... " >&6; }
6288
if ${ac_cv_prog_DLLTOOL+:} false; then :
6289
$as_echo_n "(cached) " >&6
6291
if test -n "$DLLTOOL"; then
6292
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6294
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298
test -z "$as_dir" && as_dir=.
6299
for ac_exec_ext in '' $ac_executable_extensions; do
6300
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6301
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6302
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6311
DLLTOOL=$ac_cv_prog_DLLTOOL
6312
if test -n "$DLLTOOL"; then
6313
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6314
$as_echo "$DLLTOOL" >&6; }
6316
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317
$as_echo "no" >&6; }
6322
if test -z "$ac_cv_prog_DLLTOOL"; then
6323
ac_ct_DLLTOOL=$DLLTOOL
6324
# Extract the first word of "dlltool", so it can be a program name with args.
6325
set dummy dlltool; ac_word=$2
6326
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6327
$as_echo_n "checking for $ac_word... " >&6; }
6328
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6329
$as_echo_n "(cached) " >&6
6331
if test -n "$ac_ct_DLLTOOL"; then
6332
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6334
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338
test -z "$as_dir" && as_dir=.
6339
for ac_exec_ext in '' $ac_executable_extensions; do
6340
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6341
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6342
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6351
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6352
if test -n "$ac_ct_DLLTOOL"; then
6353
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6354
$as_echo "$ac_ct_DLLTOOL" >&6; }
6356
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6357
$as_echo "no" >&6; }
6360
if test "x$ac_ct_DLLTOOL" = x; then
6363
case $cross_compiling:$ac_tool_warned in
6365
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6366
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6367
ac_tool_warned=yes ;;
6369
DLLTOOL=$ac_ct_DLLTOOL
6372
DLLTOOL="$ac_cv_prog_DLLTOOL"
6375
test -z "$DLLTOOL" && DLLTOOL=dlltool
6383
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6384
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6385
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6386
$as_echo_n "(cached) " >&6
6388
lt_cv_sharedlib_from_linklib_cmd='unknown'
6391
cygwin* | mingw* | pw32* | cegcc*)
6392
# two different shell functions defined in ltmain.sh
6393
# decide which to use based on capabilities of $DLLTOOL
6394
case `$DLLTOOL --help 2>&1` in
6395
*--identify-strict*)
6396
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6399
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6404
# fallback: assume linklib IS sharedlib
6405
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6410
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6411
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6412
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6413
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6421
if test -n "$ac_tool_prefix"; then
6424
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6425
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6426
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6427
$as_echo_n "checking for $ac_word... " >&6; }
6428
if ${ac_cv_prog_AR+:} false; then :
6127
6429
$as_echo_n "(cached) " >&6
6129
6431
if test -n "$AR"; then
6936
7364
need_locks="$enable_libtool_lock"
7366
if test -n "$ac_tool_prefix"; then
7367
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7368
set dummy ${ac_tool_prefix}mt; ac_word=$2
7369
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7370
$as_echo_n "checking for $ac_word... " >&6; }
7371
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7372
$as_echo_n "(cached) " >&6
7374
if test -n "$MANIFEST_TOOL"; then
7375
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7377
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381
test -z "$as_dir" && as_dir=.
7382
for ac_exec_ext in '' $ac_executable_extensions; do
7383
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7384
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7385
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7394
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7395
if test -n "$MANIFEST_TOOL"; then
7396
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7397
$as_echo "$MANIFEST_TOOL" >&6; }
7399
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7400
$as_echo "no" >&6; }
7405
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7406
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7407
# Extract the first word of "mt", so it can be a program name with args.
7408
set dummy mt; ac_word=$2
7409
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7410
$as_echo_n "checking for $ac_word... " >&6; }
7411
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7412
$as_echo_n "(cached) " >&6
7414
if test -n "$ac_ct_MANIFEST_TOOL"; then
7415
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7417
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421
test -z "$as_dir" && as_dir=.
7422
for ac_exec_ext in '' $ac_executable_extensions; do
7423
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7424
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7425
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7434
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7435
if test -n "$ac_ct_MANIFEST_TOOL"; then
7436
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7437
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7439
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7440
$as_echo "no" >&6; }
7443
if test "x$ac_ct_MANIFEST_TOOL" = x; then
7446
case $cross_compiling:$ac_tool_warned in
7448
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7449
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7450
ac_tool_warned=yes ;;
7452
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7455
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7458
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7459
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7460
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7461
if ${lt_cv_path_mainfest_tool+:} false; then :
7462
$as_echo_n "(cached) " >&6
7464
lt_cv_path_mainfest_tool=no
7465
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7466
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7467
cat conftest.err >&5
7468
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7469
lt_cv_path_mainfest_tool=yes
7473
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7474
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7475
if test "x$lt_cv_path_mainfest_tool" != xyes; then
6939
7484
case $host_os in
6940
7485
rhapsody* | darwin*)
9210
9799
# Microsoft Visual C++.
9211
9800
# hardcode_libdir_flag_spec is actually meaningless, as there is
9212
9801
# no search path for DLLs.
9213
hardcode_libdir_flag_spec=' '
9214
allow_undefined_flag=unsupported
9215
# Tell ltmain to make .lib files, not .a files.
9217
# Tell ltmain to make .dll files, not .so files.
9219
# FIXME: Setting linknames here is a bad hack.
9220
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9221
# The linker will automatically build a .lib file if we build a DLL.
9222
old_archive_from_new_cmds='true'
9223
# FIXME: Should let the user specify the lib program.
9224
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9225
fix_srcfile_path='`cygpath -w "$srcfile"`'
9226
enable_shared_with_static_runtimes=yes
9802
case $cc_basename in
9805
hardcode_libdir_flag_spec=' '
9806
allow_undefined_flag=unsupported
9807
always_export_symbols=yes
9809
# Tell ltmain to make .lib files, not .a files.
9811
# Tell ltmain to make .dll files, not .so files.
9813
# FIXME: Setting linknames here is a bad hack.
9814
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9815
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9816
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9818
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9820
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9822
# The linker will not automatically build a static lib if we build a DLL.
9823
# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9824
enable_shared_with_static_runtimes=yes
9825
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9827
old_postinstall_cmds='chmod 644 $oldlib'
9828
postlink_cmds='lt_outputfile="@OUTPUT@"~
9829
lt_tool_outputfile="@TOOL_OUTPUT@"~
9830
case $lt_outputfile in
9833
lt_outputfile="$lt_outputfile.exe"
9834
lt_tool_outputfile="$lt_tool_outputfile.exe"
9837
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9838
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9839
$RM "$lt_outputfile.manifest";
9843
# Assume MSVC wrapper
9844
hardcode_libdir_flag_spec=' '
9845
allow_undefined_flag=unsupported
9846
# Tell ltmain to make .lib files, not .a files.
9848
# Tell ltmain to make .dll files, not .so files.
9850
# FIXME: Setting linknames here is a bad hack.
9851
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9852
# The linker will automatically build a .lib file if we build a DLL.
9853
old_archive_from_new_cmds='true'
9854
# FIXME: Should let the user specify the lib program.
9855
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9856
enable_shared_with_static_runtimes=yes
9229
9861
darwin* | rhapsody*)
12187
if test "$ac_cv_libgcrypt" != yes; then
12932
if test "$ac_cv_libgcrypt" != yes; then
12190
*** libgcrypt was not found. You may want to get it from
12935
*** Libgcrypt v1.4.0 or later was not found. You may want to get it from
12191
12936
*** ftp://ftp.gnupg.org/gcrypt/libgcrypt/
12193
12938
" "$LINENO" 5
12942
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use nettle" >&5
12943
$as_echo_n "checking whether to use nettle... " >&6; }
12944
if test "$cryptolib" = "nettle";then
12945
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12946
$as_echo "yes" >&6; }
12962
acl_save_prefix="$prefix"
12963
prefix="$acl_final_prefix"
12964
acl_save_exec_prefix="$exec_prefix"
12965
exec_prefix="$acl_final_exec_prefix"
12967
eval additional_includedir=\"$includedir\"
12968
eval additional_libdir=\"$libdir\"
12970
exec_prefix="$acl_save_exec_prefix"
12971
prefix="$acl_save_prefix"
12974
# Check whether --with-libnettle-prefix was given.
12975
if test "${with_libnettle_prefix+set}" = set; then :
12976
withval=$with_libnettle_prefix;
12977
if test "X$withval" = "Xno"; then
12980
if test "X$withval" = "X"; then
12982
acl_save_prefix="$prefix"
12983
prefix="$acl_final_prefix"
12984
acl_save_exec_prefix="$exec_prefix"
12985
exec_prefix="$acl_final_exec_prefix"
12987
eval additional_includedir=\"$includedir\"
12988
eval additional_libdir=\"$libdir\"
12990
exec_prefix="$acl_save_exec_prefix"
12991
prefix="$acl_save_prefix"
12994
additional_includedir="$withval/include"
12995
additional_libdir="$withval/$acl_libdirstem"
12996
if test "$acl_libdirstem2" != "$acl_libdirstem" \
12997
&& ! test -d "$withval/$acl_libdirstem"; then
12998
additional_libdir="$withval/$acl_libdirstem2"
13012
names_already_handled=
13013
names_next_round='nettle '
13014
while test -n "$names_next_round"; do
13015
names_this_round="$names_next_round"
13017
for name in $names_this_round; do
13019
for n in $names_already_handled; do
13020
if test "$n" = "$name"; then
13021
already_handled=yes
13025
if test -z "$already_handled"; then
13026
names_already_handled="$names_already_handled $name"
13027
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
13028
eval value=\"\$HAVE_LIB$uppername\"
13029
if test -n "$value"; then
13030
if test "$value" = yes; then
13031
eval value=\"\$LIB$uppername\"
13032
test -z "$value" || LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$value"
13033
eval value=\"\$LTLIB$uppername\"
13034
test -z "$value" || LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }$value"
13043
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
13044
if test -n "$acl_shlibext"; then
13045
shrext=".$acl_shlibext" # typically: shrext=.so
13049
if test $use_additional = yes; then
13050
dir="$additional_libdir"
13051
if test -n "$acl_shlibext"; then
13052
if test -f "$dir/$libname$shrext"; then
13054
found_so="$dir/$libname$shrext"
13056
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13057
ver=`(cd "$dir" && \
13058
for f in "$libname$shrext".*; do echo "$f"; done \
13059
| sed -e "s,^$libname$shrext\\\\.,," \
13060
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13061
| sed 1q ) 2>/dev/null`
13062
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13064
found_so="$dir/$libname$shrext.$ver"
13067
eval library_names=\"$acl_library_names_spec\"
13068
for f in $library_names; do
13069
if test -f "$dir/$f"; then
13078
if test "X$found_dir" = "X"; then
13079
if test -f "$dir/$libname.$acl_libext"; then
13081
found_a="$dir/$libname.$acl_libext"
13084
if test "X$found_dir" != "X"; then
13085
if test -f "$dir/$libname.la"; then
13086
found_la="$dir/$libname.la"
13090
if test "X$found_dir" = "X"; then
13091
for x in $LDFLAGS $LTLIBNETTLE; do
13093
acl_save_prefix="$prefix"
13094
prefix="$acl_final_prefix"
13095
acl_save_exec_prefix="$exec_prefix"
13096
exec_prefix="$acl_final_exec_prefix"
13098
exec_prefix="$acl_save_exec_prefix"
13099
prefix="$acl_save_prefix"
13103
dir=`echo "X$x" | sed -e 's/^X-L//'`
13104
if test -n "$acl_shlibext"; then
13105
if test -f "$dir/$libname$shrext"; then
13107
found_so="$dir/$libname$shrext"
13109
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13110
ver=`(cd "$dir" && \
13111
for f in "$libname$shrext".*; do echo "$f"; done \
13112
| sed -e "s,^$libname$shrext\\\\.,," \
13113
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13114
| sed 1q ) 2>/dev/null`
13115
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13117
found_so="$dir/$libname$shrext.$ver"
13120
eval library_names=\"$acl_library_names_spec\"
13121
for f in $library_names; do
13122
if test -f "$dir/$f"; then
13131
if test "X$found_dir" = "X"; then
13132
if test -f "$dir/$libname.$acl_libext"; then
13134
found_a="$dir/$libname.$acl_libext"
13137
if test "X$found_dir" != "X"; then
13138
if test -f "$dir/$libname.la"; then
13139
found_la="$dir/$libname.la"
13144
if test "X$found_dir" != "X"; then
13149
if test "X$found_dir" != "X"; then
13150
LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-L$found_dir -l$name"
13151
if test "X$found_so" != "X"; then
13152
if test "$enable_rpath" = no \
13153
|| test "X$found_dir" = "X/usr/$acl_libdirstem" \
13154
|| test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13155
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
13158
for x in $ltrpathdirs; do
13159
if test "X$x" = "X$found_dir"; then
13164
if test -z "$haveit"; then
13165
ltrpathdirs="$ltrpathdirs $found_dir"
13167
if test "$acl_hardcode_direct" = yes; then
13168
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
13170
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13171
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
13173
for x in $rpathdirs; do
13174
if test "X$x" = "X$found_dir"; then
13179
if test -z "$haveit"; then
13180
rpathdirs="$rpathdirs $found_dir"
13184
for x in $LDFLAGS $LIBNETTLE; do
13186
acl_save_prefix="$prefix"
13187
prefix="$acl_final_prefix"
13188
acl_save_exec_prefix="$exec_prefix"
13189
exec_prefix="$acl_final_exec_prefix"
13191
exec_prefix="$acl_save_exec_prefix"
13192
prefix="$acl_save_prefix"
13194
if test "X$x" = "X-L$found_dir"; then
13199
if test -z "$haveit"; then
13200
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-L$found_dir"
13202
if test "$acl_hardcode_minus_L" != no; then
13203
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
13205
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-l$name"
13211
if test "X$found_a" != "X"; then
13212
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_a"
13214
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-L$found_dir -l$name"
13217
additional_includedir=
13218
case "$found_dir" in
13219
*/$acl_libdirstem | */$acl_libdirstem/)
13220
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13221
if test "$name" = 'nettle'; then
13222
LIBNETTLE_PREFIX="$basedir"
13224
additional_includedir="$basedir/include"
13226
*/$acl_libdirstem2 | */$acl_libdirstem2/)
13227
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13228
if test "$name" = 'nettle'; then
13229
LIBNETTLE_PREFIX="$basedir"
13231
additional_includedir="$basedir/include"
13234
if test "X$additional_includedir" != "X"; then
13235
if test "X$additional_includedir" != "X/usr/include"; then
13237
if test "X$additional_includedir" = "X/usr/local/include"; then
13238
if test -n "$GCC"; then
13240
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13244
if test -z "$haveit"; then
13245
for x in $CPPFLAGS $INCNETTLE; do
13247
acl_save_prefix="$prefix"
13248
prefix="$acl_final_prefix"
13249
acl_save_exec_prefix="$exec_prefix"
13250
exec_prefix="$acl_final_exec_prefix"
13252
exec_prefix="$acl_save_exec_prefix"
13253
prefix="$acl_save_prefix"
13255
if test "X$x" = "X-I$additional_includedir"; then
13260
if test -z "$haveit"; then
13261
if test -d "$additional_includedir"; then
13262
INCNETTLE="${INCNETTLE}${INCNETTLE:+ }-I$additional_includedir"
13268
if test -n "$found_la"; then
13269
save_libdir="$libdir"
13270
case "$found_la" in
13271
*/* | *\\*) . "$found_la" ;;
13272
*) . "./$found_la" ;;
13274
libdir="$save_libdir"
13275
for dep in $dependency_libs; do
13278
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13279
if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13280
&& test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13282
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13283
|| test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13284
if test -n "$GCC"; then
13286
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13290
if test -z "$haveit"; then
13292
for x in $LDFLAGS $LIBNETTLE; do
13294
acl_save_prefix="$prefix"
13295
prefix="$acl_final_prefix"
13296
acl_save_exec_prefix="$exec_prefix"
13297
exec_prefix="$acl_final_exec_prefix"
13299
exec_prefix="$acl_save_exec_prefix"
13300
prefix="$acl_save_prefix"
13302
if test "X$x" = "X-L$additional_libdir"; then
13307
if test -z "$haveit"; then
13308
if test -d "$additional_libdir"; then
13309
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-L$additional_libdir"
13313
for x in $LDFLAGS $LTLIBNETTLE; do
13315
acl_save_prefix="$prefix"
13316
prefix="$acl_final_prefix"
13317
acl_save_exec_prefix="$exec_prefix"
13318
exec_prefix="$acl_final_exec_prefix"
13320
exec_prefix="$acl_save_exec_prefix"
13321
prefix="$acl_save_prefix"
13323
if test "X$x" = "X-L$additional_libdir"; then
13328
if test -z "$haveit"; then
13329
if test -d "$additional_libdir"; then
13330
LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-L$additional_libdir"
13337
dir=`echo "X$dep" | sed -e 's/^X-R//'`
13338
if test "$enable_rpath" != no; then
13340
for x in $rpathdirs; do
13341
if test "X$x" = "X$dir"; then
13346
if test -z "$haveit"; then
13347
rpathdirs="$rpathdirs $dir"
13350
for x in $ltrpathdirs; do
13351
if test "X$x" = "X$dir"; then
13356
if test -z "$haveit"; then
13357
ltrpathdirs="$ltrpathdirs $dir"
13362
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13365
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13368
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$dep"
13369
LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }$dep"
13375
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-l$name"
13376
LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-l$name"
13382
if test "X$rpathdirs" != "X"; then
13383
if test -n "$acl_hardcode_libdir_separator"; then
13385
for found_dir in $rpathdirs; do
13386
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13388
acl_save_libdir="$libdir"
13390
eval flag=\"$acl_hardcode_libdir_flag_spec\"
13391
libdir="$acl_save_libdir"
13392
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$flag"
13394
for found_dir in $rpathdirs; do
13395
acl_save_libdir="$libdir"
13396
libdir="$found_dir"
13397
eval flag=\"$acl_hardcode_libdir_flag_spec\"
13398
libdir="$acl_save_libdir"
13399
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$flag"
13403
if test "X$ltrpathdirs" != "X"; then
13404
for found_dir in $ltrpathdirs; do
13405
LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-R$found_dir"
13415
ac_save_CPPFLAGS="$CPPFLAGS"
13417
for element in $INCNETTLE; do
13419
for x in $CPPFLAGS; do
13421
acl_save_prefix="$prefix"
13422
prefix="$acl_final_prefix"
13423
acl_save_exec_prefix="$exec_prefix"
13424
exec_prefix="$acl_final_exec_prefix"
13426
exec_prefix="$acl_save_exec_prefix"
13427
prefix="$acl_save_prefix"
13429
if test "X$x" = "X$element"; then
13434
if test -z "$haveit"; then
13435
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13440
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnettle" >&5
13441
$as_echo_n "checking for libnettle... " >&6; }
13442
if ${ac_cv_libnettle+:} false; then :
13443
$as_echo_n "(cached) " >&6
13446
ac_save_LIBS="$LIBS"
13447
case " $LIBNETTLE" in
13448
*" -l"*) LIBS="$LIBS $LIBNETTLE" ;;
13449
*) LIBS="$LIBNETTLE $LIBS" ;;
13451
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13452
/* end confdefs.h. */
13453
#include <nettle/aes.h>
13457
nettle_aes_invert_key (0, 0)
13462
if ac_fn_c_try_link "$LINENO"; then :
13463
ac_cv_libnettle=yes
13465
ac_cv_libnettle='no'
13467
rm -f core conftest.err conftest.$ac_objext \
13468
conftest$ac_exeext conftest.$ac_ext
13469
LIBS="$ac_save_LIBS"
13472
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libnettle" >&5
13473
$as_echo "$ac_cv_libnettle" >&6; }
13474
if test "$ac_cv_libnettle" = yes; then
13477
$as_echo "#define HAVE_LIBNETTLE 1" >>confdefs.h
13479
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libnettle" >&5
13480
$as_echo_n "checking how to link with libnettle... " >&6; }
13481
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBNETTLE" >&5
13482
$as_echo "$LIBNETTLE" >&6; }
13485
CPPFLAGS="$ac_save_CPPFLAGS"
13497
if test "$ac_cv_libnettle" != yes; then
13500
*** Libnettle 2.1 was not found.
13503
NETTLE_LIBS="-lgmp -lhogweed"
13505
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13506
$as_echo "no" >&6; }
13509
if test "$cryptolib" = "nettle"; then
13510
ENABLE_NETTLE_TRUE=
13511
ENABLE_NETTLE_FALSE='#'
13513
ENABLE_NETTLE_TRUE='#'
13514
ENABLE_NETTLE_FALSE=
12197
13519
# Check whether --with-included-libtasn1 was given.
16398
17801
# if finds mixed CR/LF and LF-only lines. Since sed operates in
16399
17802
# text mode, it properly converts lines to CR/LF. This bash problem
16400
17803
# is reportedly fixed, but why not run on old versions too?
16401
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16402
|| (rm -f "$cfgfile"; exit 1)
16406
cat << \_LT_EOF >> "$cfgfile"
16408
# func_dirname file append nondir_replacement
16409
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16410
# otherwise set result to NONDIR_REPLACEMENT.
16414
*/*) func_dirname_result="${1%/*}${2}" ;;
16415
* ) func_dirname_result="${3}" ;;
16419
# func_basename file
16422
func_basename_result="${1##*/}"
16425
# func_dirname_and_basename file append nondir_replacement
16426
# perform func_basename and func_dirname in a single function
16428
# dirname: Compute the dirname of FILE. If nonempty,
16429
# add APPEND to the result, otherwise set result
16430
# to NONDIR_REPLACEMENT.
16431
# value returned in "$func_dirname_result"
16432
# basename: Compute filename of FILE.
16433
# value retuned in "$func_basename_result"
16434
# Implementation must be kept synchronized with func_dirname
16435
# and func_basename. For efficiency, we do not delegate to
16436
# those functions but instead duplicate the functionality here.
16437
func_dirname_and_basename ()
16440
*/*) func_dirname_result="${1%/*}${2}" ;;
16441
* ) func_dirname_result="${3}" ;;
16443
func_basename_result="${1##*/}"
16446
# func_stripname prefix suffix name
16447
# strip PREFIX and SUFFIX off of NAME.
16448
# PREFIX and SUFFIX must not contain globbing or regex special
16449
# characters, hashes, percent signs, but SUFFIX may contain a leading
16450
# dot (in which case that matches only a dot).
16453
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16454
# positional parameters, so assign one to ordinary parameter first.
16455
func_stripname_result=${3}
16456
func_stripname_result=${func_stripname_result#"${1}"}
16457
func_stripname_result=${func_stripname_result%"${2}"}
16463
func_opt_split_opt=${1%%=*}
16464
func_opt_split_arg=${1#*=}
16471
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16472
*) func_lo2o_result=${1} ;;
16476
# func_xform libobj-or-source
16479
func_xform_result=${1%.*}.lo
16482
# func_arith arithmetic-term...
16485
func_arith_result=$(( $* ))
16489
# STRING may not start with a hyphen.
16492
func_len_result=${#1}
16497
*) # Bourne compatible functions.
16498
cat << \_LT_EOF >> "$cfgfile"
16500
# func_dirname file append nondir_replacement
16501
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16502
# otherwise set result to NONDIR_REPLACEMENT.
16505
# Extract subdirectory from the argument.
16506
func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16507
if test "X$func_dirname_result" = "X${1}"; then
16508
func_dirname_result="${3}"
16510
func_dirname_result="$func_dirname_result${2}"
16514
# func_basename file
16517
func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16521
# func_stripname prefix suffix name
16522
# strip PREFIX and SUFFIX off of NAME.
16523
# PREFIX and SUFFIX must not contain globbing or regex special
16524
# characters, hashes, percent signs, but SUFFIX may contain a leading
16525
# dot (in which case that matches only a dot).
16526
# func_strip_suffix prefix name
16530
.*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16531
*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16536
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16537
my_sed_long_arg='1s/^-[^=]*=//'
16542
func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16543
func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16549
func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16552
# func_xform libobj-or-source
16555
func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16558
# func_arith arithmetic-term...
16561
func_arith_result=`expr "$@"`
16565
# STRING may not start with a hyphen.
16568
func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16574
case $lt_shell_append in
16576
cat << \_LT_EOF >> "$cfgfile"
16578
# func_append var value
16579
# Append VALUE to the end of shell variable VAR.
16587
cat << \_LT_EOF >> "$cfgfile"
16589
# func_append var value
16590
# Append VALUE to the end of shell variable VAR.
16601
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16602
|| (rm -f "$cfgfile"; exit 1)
16604
mv -f "$cfgfile" "$ofile" ||
17804
sed '$q' "$ltmain" >> "$cfgfile" \
17805
|| (rm -f "$cfgfile"; exit 1)
17807
if test x"$xsi_shell" = xyes; then
17808
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17812
\ */*) func_dirname_result="${1%/*}${2}" ;;\
17813
\ * ) func_dirname_result="${3}" ;;\
17815
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17816
&& mv -f "$cfgfile.tmp" "$cfgfile" \
17817
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17818
test 0 -eq $? || _lt_function_replace_fail=:
17821
sed -e '/^func_basename ()$/,/^} # func_basename /c\
17824
\ func_basename_result="${1##*/}"\
17825
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17826
&& mv -f "$cfgfile.tmp" "$cfgfile" \
17827
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17828
test 0 -eq $? || _lt_function_replace_fail=:
17831
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17832
func_dirname_and_basename ()\
17835
\ */*) func_dirname_result="${1%/*}${2}" ;;\
17836
\ * ) func_dirname_result="${3}" ;;\
17838
\ func_basename_result="${1##*/}"\
17839
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17840
&& mv -f "$cfgfile.tmp" "$cfgfile" \
17841
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17842
test 0 -eq $? || _lt_function_replace_fail=:
17845
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17848
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17849
\ # positional parameters, so assign one to ordinary parameter first.\
17850
\ func_stripname_result=${3}\
17851
\ func_stripname_result=${func_stripname_result#"${1}"}\
17852
\ func_stripname_result=${func_stripname_result%"${2}"}\
17853
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17854
&& mv -f "$cfgfile.tmp" "$cfgfile" \
17855
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17856
test 0 -eq $? || _lt_function_replace_fail=:
17859
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17860
func_split_long_opt ()\
17862
\ func_split_long_opt_name=${1%%=*}\
17863
\ func_split_long_opt_arg=${1#*=}\
17864
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17865
&& mv -f "$cfgfile.tmp" "$cfgfile" \
17866
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17867
test 0 -eq $? || _lt_function_replace_fail=:
17870
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17871
func_split_short_opt ()\
17873
\ func_split_short_opt_arg=${1#??}\
17874
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17875
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17876
&& mv -f "$cfgfile.tmp" "$cfgfile" \
17877
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17878
test 0 -eq $? || _lt_function_replace_fail=:
17881
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17885
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17886
\ *) func_lo2o_result=${1} ;;\
17888
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17889
&& mv -f "$cfgfile.tmp" "$cfgfile" \
17890
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17891
test 0 -eq $? || _lt_function_replace_fail=:
17894
sed -e '/^func_xform ()$/,/^} # func_xform /c\
17897
func_xform_result=${1%.*}.lo\
17898
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17899
&& mv -f "$cfgfile.tmp" "$cfgfile" \
17900
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17901
test 0 -eq $? || _lt_function_replace_fail=:
17904
sed -e '/^func_arith ()$/,/^} # func_arith /c\
17907
func_arith_result=$(( $* ))\
17908
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17909
&& mv -f "$cfgfile.tmp" "$cfgfile" \
17910
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17911
test 0 -eq $? || _lt_function_replace_fail=:
17914
sed -e '/^func_len ()$/,/^} # func_len /c\
17917
func_len_result=${#1}\
17918
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17919
&& mv -f "$cfgfile.tmp" "$cfgfile" \
17920
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17921
test 0 -eq $? || _lt_function_replace_fail=:
17925
if test x"$lt_shell_append" = xyes; then
17926
sed -e '/^func_append ()$/,/^} # func_append /c\
17929
eval "${1}+=\\${2}"\
17930
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17931
&& mv -f "$cfgfile.tmp" "$cfgfile" \
17932
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17933
test 0 -eq $? || _lt_function_replace_fail=:
17936
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17937
func_append_quoted ()\
17939
\ func_quote_for_eval "${2}"\
17940
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17941
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17942
&& mv -f "$cfgfile.tmp" "$cfgfile" \
17943
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17944
test 0 -eq $? || _lt_function_replace_fail=:
17947
# Save a `func_append' function call where possible by direct use of '+='
17948
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17949
&& mv -f "$cfgfile.tmp" "$cfgfile" \
17950
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17951
test 0 -eq $? || _lt_function_replace_fail=:
17953
# Save a `func_append' function call even when '+=' is not available
17954
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17955
&& mv -f "$cfgfile.tmp" "$cfgfile" \
17956
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17957
test 0 -eq $? || _lt_function_replace_fail=:
17960
if test x"$_lt_function_replace_fail" = x":"; then
17961
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17962
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17966
mv -f "$cfgfile" "$ofile" ||
16605
17967
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16606
17968
chmod +x "$ofile"