15201
# Extract the first word of "libgcrypt-config", so it can be a program name with args.
15202
set dummy libgcrypt-config; ac_word=$2
15201
if test -n "$ac_tool_prefix"; then
15202
# Extract the first word of "${ac_tool_prefix}libgcrypt-config", so it can be a program name with args.
15203
set dummy ${ac_tool_prefix}libgcrypt-config; ac_word=$2
15203
15204
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15204
15205
$as_echo_n "checking for $ac_word... " >&6; }
15205
15206
if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
15243
if test -z "$ac_cv_path_LIBGCRYPT_CONFIG"; then
15244
ac_pt_LIBGCRYPT_CONFIG=$LIBGCRYPT_CONFIG
15245
# Extract the first word of "libgcrypt-config", so it can be a program name with args.
15246
set dummy libgcrypt-config; ac_word=$2
15247
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15248
$as_echo_n "checking for $ac_word... " >&6; }
15249
if ${ac_cv_path_ac_pt_LIBGCRYPT_CONFIG+:} false; then :
15250
$as_echo_n "(cached) " >&6
15252
case $ac_pt_LIBGCRYPT_CONFIG in
15254
ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$ac_pt_LIBGCRYPT_CONFIG" # Let the user override the test with a path.
15257
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15258
for as_dir in $PATH
15261
test -z "$as_dir" && as_dir=.
15262
for ac_exec_ext in '' $ac_executable_extensions; do
15263
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15264
ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15265
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15275
ac_pt_LIBGCRYPT_CONFIG=$ac_cv_path_ac_pt_LIBGCRYPT_CONFIG
15276
if test -n "$ac_pt_LIBGCRYPT_CONFIG"; then
15277
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGCRYPT_CONFIG" >&5
15278
$as_echo "$ac_pt_LIBGCRYPT_CONFIG" >&6; }
15280
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15281
$as_echo "no" >&6; }
15284
if test "x$ac_pt_LIBGCRYPT_CONFIG" = x; then
15285
LIBGCRYPT_CONFIG="no"
15287
case $cross_compiling:$ac_tool_warned in
15289
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15290
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15291
ac_tool_warned=yes ;;
15293
LIBGCRYPT_CONFIG=$ac_pt_LIBGCRYPT_CONFIG
15296
LIBGCRYPT_CONFIG="$ac_cv_path_LIBGCRYPT_CONFIG"
15243
15300
if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
15244
15301
req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
15311
15368
LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
15312
15369
LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
15371
if test x"$host" != x ; then
15372
libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
15373
if test x"$libgcrypt_config_host" != xnone ; then
15374
if test x"$libgcrypt_config_host" != x"$host" ; then
15375
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15377
*** The config script $LIBGCRYPT_CONFIG was
15378
*** built for $libgcrypt_config_host and thus may not match the
15379
*** used host $host.
15380
*** You may want to use the configure option --with-libgcrypt-prefix
15381
*** to specify a matching config script.
15383
$as_echo "$as_me: WARNING:
15385
*** The config script $LIBGCRYPT_CONFIG was
15386
*** built for $libgcrypt_config_host and thus may not match the
15387
*** used host $host.
15388
*** You may want to use the configure option --with-libgcrypt-prefix
15389
*** to specify a matching config script.
15315
15395
LIBGCRYPT_CFLAGS=""
15316
15396
LIBGCRYPT_LIBS=""