-yazconfig=NONE
-yazpath=NONE
-# Check whether --with-yazconfig or --without-yazconfig was given.
-if test "${with_yazconfig+set}" = set; then
- withval="$with_yazconfig"
- yazpath=$withval
-fi
-
-if test "x$yazpath" != "xNONE"; then
- yazconfig=$yazpath/yaz-config
-else
- for i in ../yaz* ../yaz; do
- if test -d $i; then
- if test -r $i/yaz-config; then
- yazconfig=$i/yaz-config
- fi
- fi
- done
- if test "x$yazconfig" = "xNONE"; then
- # Extract the first word of "yaz-config", so it can be a program name with args.
-set dummy yaz-config; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1226: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_path_yazconfig'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- case "$yazconfig" in
- /*)
- ac_cv_path_yazconfig="$yazconfig" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_yazconfig="$yazconfig" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_yazconfig="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_yazconfig" && ac_cv_path_yazconfig="NONE"
- ;;
-esac
-fi
-yazconfig="$ac_cv_path_yazconfig"
-if test -n "$yazconfig"; then
- echo "$ac_t""$yazconfig" 1>&6
-else
- echo "$ac_t""no" 1>&6
-fi
-
- fi
-fi
-echo $ac_n "checking for YAZ""... $ac_c" 1>&6
-echo "configure:1262: checking for YAZ" >&5
-if test -r $yazconfig; then
- . $yazconfig
- echo "$ac_t""$yazconfig" 1>&6
-else
- echo "$ac_t""Not found" 1>&6
-fi