16071
# Extract the first word of "libgcrypt-config", so it can be a program name with args.
16072
set dummy libgcrypt-config; ac_word=$2
16071
if test -n "$ac_tool_prefix"; then
16072
# Extract the first word of "${ac_tool_prefix}libgcrypt-config", so it can be a program name with args.
16073
set dummy ${ac_tool_prefix}libgcrypt-config; ac_word=$2
16073
16074
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16074
16075
$as_echo_n "checking for $ac_word... " >&6; }
16075
16076
if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
16113
if test -z "$ac_cv_path_LIBGCRYPT_CONFIG"; then
16114
ac_pt_LIBGCRYPT_CONFIG=$LIBGCRYPT_CONFIG
16115
# Extract the first word of "libgcrypt-config", so it can be a program name with args.
16116
set dummy libgcrypt-config; ac_word=$2
16117
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16118
$as_echo_n "checking for $ac_word... " >&6; }
16119
if ${ac_cv_path_ac_pt_LIBGCRYPT_CONFIG+:} false; then :
16120
$as_echo_n "(cached) " >&6
16122
case $ac_pt_LIBGCRYPT_CONFIG in
16124
ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$ac_pt_LIBGCRYPT_CONFIG" # Let the user override the test with a path.
16127
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16128
for as_dir in $PATH
16131
test -z "$as_dir" && as_dir=.
16132
for ac_exec_ext in '' $ac_executable_extensions; do
16133
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16134
ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16135
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16145
ac_pt_LIBGCRYPT_CONFIG=$ac_cv_path_ac_pt_LIBGCRYPT_CONFIG
16146
if test -n "$ac_pt_LIBGCRYPT_CONFIG"; then
16147
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGCRYPT_CONFIG" >&5
16148
$as_echo "$ac_pt_LIBGCRYPT_CONFIG" >&6; }
16150
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16151
$as_echo "no" >&6; }
16154
if test "x$ac_pt_LIBGCRYPT_CONFIG" = x; then
16155
LIBGCRYPT_CONFIG="no"
16157
case $cross_compiling:$ac_tool_warned in
16159
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16160
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16161
ac_tool_warned=yes ;;
16163
LIBGCRYPT_CONFIG=$ac_pt_LIBGCRYPT_CONFIG
16166
LIBGCRYPT_CONFIG="$ac_cv_path_LIBGCRYPT_CONFIG"
16113
16170
if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
16114
16171
req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
16181
16238
LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
16182
16239
LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
16241
if test x"$host" != x ; then
16242
libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
16243
if test x"$libgcrypt_config_host" != xnone ; then
16244
if test x"$libgcrypt_config_host" != x"$host" ; then
16245
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16247
*** The config script $LIBGCRYPT_CONFIG was
16248
*** built for $libgcrypt_config_host and thus may not match the
16249
*** used host $host.
16250
*** You may want to use the configure option --with-libgcrypt-prefix
16251
*** to specify a matching config script.
16253
$as_echo "$as_me: WARNING:
16255
*** The config script $LIBGCRYPT_CONFIG was
16256
*** built for $libgcrypt_config_host and thus may not match the
16257
*** used host $host.
16258
*** You may want to use the configure option --with-libgcrypt-prefix
16259
*** to specify a matching config script.
16185
16265
LIBGCRYPT_CFLAGS=""
16186
16266
LIBGCRYPT_LIBS=""