diff options
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 16532 | 
1 files changed, 9770 insertions, 6762 deletions
@@ -1,6 +1,6 @@  #! /bin/sh  # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for sane-backends 1.0.25. +# Generated by GNU Autoconf 2.69 for sane-backends 1.0.27.  #  # Report bugs to <sane-devel@lists.alioth.debian.org>.  # @@ -590,8 +590,8 @@ MAKEFLAGS=  # Identity of this package.  PACKAGE_NAME='sane-backends'  PACKAGE_TARNAME='sane-backends' -PACKAGE_VERSION='1.0.25' -PACKAGE_STRING='sane-backends 1.0.25' +PACKAGE_VERSION='1.0.27' +PACKAGE_STRING='sane-backends 1.0.27'  PACKAGE_BUGREPORT='sane-devel@lists.alioth.debian.org'  PACKAGE_URL='' @@ -631,15 +631,29 @@ ac_includes_default="\  # include <unistd.h>  #endif" +gt_needs= +ac_config_libobj_dir=lib  ac_header_list=  ac_subst_vars='am__EXEEXT_FALSE  am__EXEEXT_TRUE  LTLIBOBJS -DISTCLEAN_FILES -USE_LATEX_FALSE -USE_LATEX_TRUE -ENABLE_TRANSLATIONS_FALSE -ENABLE_TRANSLATIONS_TRUE +AM_LDFLAGS +AM_CFLAGS +AM_CPPFLAGS +WITH_API_HTML_FALSE +WITH_API_HTML_TRUE +WITH_API_PDF_FALSE +WITH_API_PDF_TRUE +WITH_API_PS_FALSE +WITH_API_PS_TRUE +PPMTOGIF +DLH +GS +FIG2DEV +PDFLATEX +LATEX +DVIPS +MAKEINDEX  BACKEND_MANS_ENABLED  BACKEND_CONFS_ENABLED  PRELOADABLE_BACKENDS_ENABLED @@ -655,35 +669,17 @@ COMPILE_SANED_FALSE  COMPILE_SANED_TRUE  configdir  locksanedir -OTOOL64 -OTOOL -LIPO -NMEDIT -DSYMUTIL -MANIFEST_TOOL -RANLIB -ac_ct_AR -AR -LN_S -NM -ac_ct_DUMPBIN -DUMPBIN -LD -FGREP -SED -LIBTOOL -OBJDUMP -DLLTOOL -AS  SCSI_LIBS +have_usblib_FALSE +have_usblib_TRUE  USB_LIBS -LIBUSB_1_0_LIBS -LIBUSB_1_0_CFLAGS +USB_CFLAGS  SYSTEMD_LIBS  SYSTEMD_CFLAGS -ALLOCA -LIBOBJS  SOCKET_LIBS +LTALLOCA +LIBOBJS +ALLOCA  RESMGR_LIBS  SNMP_CFLAGS  SNMP_LIBS @@ -708,21 +704,58 @@ MATH_LIB  DYNAMIC_FLAG  DL_LIBS  effective_target -LINKER_RPATH  STRICT_LDFLAGS -INCLUDES  CROSS_COMPILING_FALSE  CROSS_COMPILING_TRUE  PKG_CONFIG_LIBDIR  PKG_CONFIG_PATH  PKG_CONFIG -MAKEINDEX -DVIPS -LATEX +SANE_CONFIG_PATH +POSUB +LTLIBINTL +LIBINTL +INTLLIBS +LTLIBICONV +LIBICONV +INTL_MACOSX_LIBS +XGETTEXT_EXTRA_OPTIONS  MSGMERGE +XGETTEXT_015  XGETTEXT +GMSGFMT_015 +MSGFMT_015 +GMSGFMT  MSGFMT -SANE_CONFIG_PATH +GETTEXT_MACRO_VERSION +USE_NLS +OTOOL64 +OTOOL +LIPO +NMEDIT +DSYMUTIL +MANIFEST_TOOL +RANLIB +LN_S +NM +ac_ct_DUMPBIN +DUMPBIN +LD +FGREP +SED +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build +LIBTOOL +OBJDUMP +DLLTOOL +AS +ac_ct_AR +AR  EGREP  GREP  CPP @@ -743,15 +776,6 @@ CPPFLAGS  LDFLAGS  CFLAGS  CC -host_os -host_vendor -host_cpu -host -build_os -build_vendor -build_cpu -build -NUMBER_VERSION  V_REV  V_MINOR  V_MAJOR @@ -828,10 +852,19 @@ ac_user_opts='  enable_option_checking  enable_silent_rules  enable_maintainer_mode -with_docdir  enable_dependency_tracking -enable_warnings +enable_static +enable_shared +with_pic +enable_fast_install +with_gnu_ld +with_sysroot +enable_libtool_lock +enable_nls  enable_rpath +with_libiconv_prefix +with_libintl_prefix +enable_warnings  enable_dynamic  enable_pthread  enable_locking @@ -841,25 +874,16 @@ with_v4l  enable_avahi  with_snmp  with_systemd -enable_libusb_1_0 -enable_libusb +with_usb  enable_scsibuffersize  enable_scsi_directio  enable_ipv6  enable_preload -enable_static -enable_shared -with_pic -enable_fast_install -with_gnu_ld -with_sysroot -enable_libtool_lock  with_lockdir  enable_local_backends  enable_pnm_backend  enable_parport_directio -enable_translations -enable_latex +with_api_spec  '        ac_precious_vars='build_alias  host_alias @@ -879,8 +903,8 @@ AVAHI_CFLAGS  AVAHI_LIBS  SYSTEMD_CFLAGS  SYSTEMD_LIBS -LIBUSB_1_0_CFLAGS -LIBUSB_1_0_LIBS +USB_CFLAGS +USB_LIBS  BACKENDS  PRELOADABLE_BACKENDS' @@ -1423,7 +1447,7 @@ if test "$ac_init_help" = "long"; then    # Omit some internal or obsolete options to make the list less imposing.    # This message is too long to be a string in the A/UX 3.1 sh.    cat <<_ACEOF -\`configure' configures sane-backends 1.0.25 to adapt to many kinds of systems. +\`configure' configures sane-backends 1.0.27 to adapt to many kinds of systems.  Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1493,7 +1517,7 @@ fi  if test -n "$ac_init_help"; then    case $ac_init_help in -     short | recursive ) echo "Configuration of sane-backends 1.0.25:";; +     short | recursive ) echo "Configuration of sane-backends 1.0.27:";;     esac    cat <<\_ACEOF @@ -1510,28 +1534,27 @@ Optional Features:                            do not reject slow dependency extractors    --disable-dependency-tracking                            speeds up one-time build +  --enable-static[=PKGS]  build static libraries [default=no] +  --enable-shared[=PKGS]  build shared libraries [default=yes] +  --enable-fast-install[=PKGS] +                          optimize for fast installation [default=yes] +  --disable-libtool-lock  avoid locking (might break parallel builds) +  --disable-nls           do not use Native Language Support +  --disable-rpath         do not hardcode runtime library paths    --enable-warnings       turn on tons of compiler warnings (GCC only) -  --enable-rpath          use runtime library search path [default=yes]    --disable-dynamic       Disable dynamic loading of backends    --enable-pthread        use pthread instead of fork (default=yes for                            Linux/MacOS X/MINGW, no for everything else)    --enable-locking        activate device locking (default=yes, but only used                            by some backends)    --enable-avahi          enable Avahi support for saned and the net backend -  --enable-libusb_1_0     enable libusb-1.0 support if available -  --disable-libusb        disable support for USB in SANE    --enable-scsibuffersize=N                            specify the default size in bytes of the buffer for -                          SCSI commands [[default=131072]] +                          SCSI commands [default=131072]    --enable-scsi-directio  enable SCSI direct IO (Linux only, dangerous, see                            README.linux)    --disable-ipv6          disable IPv6 support    --disable-preload       Disable preloading of backends -  --enable-static[=PKGS]  build static libraries [default=no] -  --enable-shared[=PKGS]  build shared libraries [default=yes] -  --enable-fast-install[=PKGS] -                          optimize for fast installation [default=yes] -  --disable-libtool-lock  avoid locking (might break parallel builds)    --disable-local-backends                            turn off compilation of all backends but net    --enable-pnm-backend    enable the pnm backend for testing frontends @@ -1539,25 +1562,29 @@ Optional Features:    --enable-parport-directio                            enable direct hardware access to the parallel port,                            so frontends will require special permission level -  --disable-translations  don't install translations of backend options -  --disable-latex         disable use of latex, et.al., to generate -                          documentation  Optional Packages:    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) -  --with-docdir=DIR       documentation [PREFIX/doc/sane-VERSION] -  --with-group            use the specified group for lock dir [default=uucp] -  --with-gphoto2          include the gphoto2 backend [default=yes] -  --with-v4l              include the v4l backend [default=yes] -  --with-snmp             enable SNMP support [default=yes] -  --with-systemd          enable systemd support [default=yes]    --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use                            both]    --with-gnu-ld           assume the C compiler uses GNU ld [default=no]    --with-sysroot=DIR Search for dependent libraries within DIR                          (or the compiler's sysroot if not specified). +  --with-gnu-ld           assume the C compiler uses GNU ld default=no +  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib +  --without-libiconv-prefix     don't search for libiconv in includedir and libdir +  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib +  --without-libintl-prefix     don't search for libintl in includedir and libdir +  --with-group            use the specified group for lock dir [default=uucp] +  --with-gphoto2          include the gphoto2 backend [default=yes] +  --with-v4l              include the v4l backend [default=yes] +  --with-snmp             enable SNMP support [default=yes] +  --with-systemd          enable systemd support [default=yes] +  --with-usb              enable USB support [default=check]    --with-lockdir=DIR      set SANE lockdir [localstatedir/lock/sane] +  --with-api-spec         convert API spec to supported output formats +                          [default=check]  Some influential environment variables:    CC          C compiler command @@ -1583,10 +1610,8 @@ Some influential environment variables:                C compiler flags for SYSTEMD, overriding pkg-config    SYSTEMD_LIBS                linker flags for SYSTEMD, overriding pkg-config -  LIBUSB_1_0_CFLAGS -              C compiler flags for LIBUSB_1_0, overriding pkg-config -  LIBUSB_1_0_LIBS -              linker flags for LIBUSB_1_0, overriding pkg-config +  USB_CFLAGS  C compiler flags for USB, overriding pkg-config +  USB_LIBS    linker flags for USB, overriding pkg-config    BACKENDS    list of backends to compile    PRELOADABLE_BACKENDS                list of backends to preload into single DLL @@ -1657,7 +1682,7 @@ fi  test -n "$ac_init_help" && exit $ac_status  if $ac_init_version; then    cat <<\_ACEOF -sane-backends configure 1.0.25 +sane-backends configure 1.0.27  generated by GNU Autoconf 2.69  Copyright (C) 2012 Free Software Foundation, Inc. @@ -1956,6 +1981,73 @@ fi  } # ac_fn_c_try_link +# ac_fn_c_check_func LINENO FUNC VAR +# ---------------------------------- +# Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_c_check_func () +{ +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +/* Define $2 to an innocuous variant, in case <limits.h> declares $2. +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, +    which can conflict with char $2 (); below. +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since +    <limits.h> exists even on freestanding compilers.  */ + +#ifdef __STDC__ +# include <limits.h> +#else +# include <assert.h> +#endif + +#undef $2 + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char $2 (); +/* The GNU C library defines this for functions which it implements +    to always fail with ENOSYS.  Some functions are actually named +    something starting with __ and the normal name is an alias.  */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif + +int +main () +{ +return $2 (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  eval "$3=yes" +else +  eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$3 +	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_func +  # ac_fn_c_check_type LINENO TYPE VAR INCLUDES  # -------------------------------------------  # Tests whether TYPE exists after having included INCLUDES, setting cache @@ -2192,78 +2284,11 @@ rm -f conftest.val    as_fn_set_status $ac_retval  } # ac_fn_c_compute_int - -# ac_fn_c_check_func LINENO FUNC VAR -# ---------------------------------- -# Tests whether FUNC exists, setting the cache variable VAR accordingly -ac_fn_c_check_func () -{ -  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ -/* Define $2 to an innocuous variant, in case <limits.h> declares $2. -   For example, HP-UX 11i <limits.h> declares gettimeofday.  */ -#define $2 innocuous_$2 - -/* System header to define __stub macros and hopefully few prototypes, -    which can conflict with char $2 (); below. -    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since -    <limits.h> exists even on freestanding compilers.  */ - -#ifdef __STDC__ -# include <limits.h> -#else -# include <assert.h> -#endif - -#undef $2 - -/* Override any GCC internal prototype to avoid an error. -   Use char because int might match the return type of a GCC -   builtin and then its argument prototype would still apply.  */ -#ifdef __cplusplus -extern "C" -#endif -char $2 (); -/* The GNU C library defines this for functions which it implements -    to always fail with ENOSYS.  Some functions are actually named -    something starting with __ and the normal name is an alias.  */ -#if defined __stub_$2 || defined __stub___$2 -choke me -#endif - -int -main () -{ -return $2 (); -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : -  eval "$3=yes" -else -  eval "$3=no" -fi -rm -f core conftest.err conftest.$ac_objext \ -    conftest$ac_exeext conftest.$ac_ext -fi -eval ac_res=\$$3 -	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_c_check_func  cat >config.log <<_ACEOF  This file contains any messages produced by compilers while  running configure, to aid debugging if configure makes a mistake. -It was created by sane-backends $as_me 1.0.25, which was +It was created by sane-backends $as_me 1.0.27, which was  generated by GNU Autoconf 2.69.  Invocation command line was    $ $0 $@ @@ -2543,6 +2568,7 @@ $as_echo "$as_me: creating cache $cache_file" >&6;}    >$cache_file  fi +gt_needs="$gt_needs "  as_fn_append ac_header_list " stdlib.h"  as_fn_append ac_header_list " unistd.h"  as_fn_append ac_header_list " sys/param.h" @@ -2614,11 +2640,8 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $  ac_compiler_gnu=$ac_cv_c_compiler_gnu -V_MAJOR=1 -V_MINOR=0 -V_REV=25 -is_release=yes +ac_config_headers="$ac_config_headers include/sane/config.h"  am__api_version='1.14' @@ -3136,7 +3159,7 @@ fi  # Define the identity of the package.   PACKAGE='sane-backends' - VERSION='1.0.25' + VERSION='1.0.27'  cat >>confdefs.h <<_ACEOF @@ -3228,6 +3251,45 @@ END      as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5    fi  fi +# Check whether --enable-silent-rules was given. +if test "${enable_silent_rules+set}" = set; then : +  enableval=$enable_silent_rules; +fi + +case $enable_silent_rules in # ((( +  yes) AM_DEFAULT_VERBOSITY=0;; +   no) AM_DEFAULT_VERBOSITY=1;; +    *) AM_DEFAULT_VERBOSITY=1;; +esac +am_make=${MAKE-make} +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 +$as_echo_n "checking whether $am_make supports nested variables... " >&6; } +if ${am_cv_make_support_nested_variables+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if $as_echo 'TRUE=$(BAR$(V)) +BAR0=false +BAR1=true +V=1 +am__doit: +	@$(TRUE) +.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then +  am_cv_make_support_nested_variables=yes +else +  am_cv_make_support_nested_variables=no +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 +$as_echo "$am_cv_make_support_nested_variables" >&6; } +if test $am_cv_make_support_nested_variables = yes; then +    AM_V='$(V)' +  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' +else +  AM_V=$AM_DEFAULT_VERBOSITY +  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY +fi +AM_BACKSLASH='\' +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5  $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } @@ -3252,21 +3314,58 @@ fi -ac_config_headers="$ac_config_headers include/sane/config.h" - +if test x = "x$AWK"; then : +  for ac_prog in gawk mawk nawk awk +do +  # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AWK+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if test -n "$AWK"; then +  ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_prog_AWK="$ac_prog" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS -PACKAGE=sane-backends -VERSION=1.0.25 -NUMBER_VERSION=${V_MAJOR}.${V_MINOR}.${V_REV} +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -cat >>confdefs.h <<_ACEOF -#define PACKAGE "$PACKAGE" -_ACEOF +  test -n "$AWK" && break +done -cat >>confdefs.h <<_ACEOF -#define VERSION "$VERSION" -_ACEOF +fi +if test x = "x`echo $VERSION | sed 's/[.0-9]//g'`"; then : +  is_release=yes +else +  is_release=no +fi +V_MAJOR=`echo $VERSION | $AWK -F. '{print $1}'` +V_MINOR=`echo $VERSION | $AWK -F. '{print $2}'` +V_REV=`echo $VERSION | $AWK -F. '{print $3}' | sed 's/[^0-9]//g'`;  cat >>confdefs.h <<_ACEOF @@ -3287,93 +3386,6 @@ _ACEOF - - -# Make sure we can run config.sub. -$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || -  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 -$as_echo_n "checking build system type... " >&6; } -if ${ac_cv_build+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  ac_build_alias=$build_alias -test "x$ac_build_alias" = x && -  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` -test "x$ac_build_alias" = x && -  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 -ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || -  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 -$as_echo "$ac_cv_build" >&6; } -case $ac_cv_build in -*-*-*) ;; -*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; -esac -build=$ac_cv_build -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_build -shift -build_cpu=$1 -build_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -build_os=$* -IFS=$ac_save_IFS -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 -$as_echo_n "checking host system type... " >&6; } -if ${ac_cv_host+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  if test "x$host_alias" = x; then -  ac_cv_host=$ac_cv_build -else -  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || -    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 -$as_echo "$ac_cv_host" >&6; } -case $ac_cv_host in -*-*-*) ;; -*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; -esac -host=$ac_cv_host -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_host -shift -host_cpu=$1 -host_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -host_os=$* -IFS=$ac_save_IFS -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac - - - - -# Check whether --with-docdir was given. -if test "${with_docdir+set}" = set; then : -  withval=$with_docdir; -  docdir="${withval}" - -else - -  docdir='${prefix}/doc/sane-${VERSION}' - -fi - -  ac_ext=c  ac_cpp='$CPP $CPPFLAGS'  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -4414,36 +4426,203 @@ fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } -set x ${MAKE-make} -ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` -if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : +sane_save_CC=$CC +   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 +$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } +if ${ac_cv_prog_cc_c99+:} false; then :    $as_echo_n "(cached) " >&6  else -  cat >conftest.make <<\_ACEOF -SHELL = /bin/sh -all: -	@echo '@@@%%%=$(MAKE)=@@@%%%' +  ac_cv_prog_cc_c99=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <stdarg.h> +#include <stdbool.h> +#include <stdlib.h> +#include <wchar.h> +#include <stdio.h> + +// Check varargs macros.  These examples are taken from C99 6.10.3.5. +#define debug(...) fprintf (stderr, __VA_ARGS__) +#define showlist(...) puts (#__VA_ARGS__) +#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) +static void +test_varargs_macros (void) +{ +  int x = 1234; +  int y = 5678; +  debug ("Flag"); +  debug ("X = %d\n", x); +  showlist (The first, second, and third items.); +  report (x>y, "x is %d but y is %d", x, y); +} + +// Check long long types. +#define BIG64 18446744073709551615ull +#define BIG32 4294967295ul +#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) +#if !BIG_OK +  your preprocessor is broken; +#endif +#if BIG_OK +#else +  your preprocessor is broken; +#endif +static long long int bignum = -9223372036854775807LL; +static unsigned long long int ubignum = BIG64; + +struct incomplete_array +{ +  int datasize; +  double data[]; +}; + +struct named_init { +  int number; +  const wchar_t *name; +  double average; +}; + +typedef const char *ccp; + +static inline int +test_restrict (ccp restrict text) +{ +  // See if C++-style comments work. +  // Iterate through items via the restricted pointer. +  // Also check for declarations in for loops. +  for (unsigned int i = 0; *(text+i) != '\0'; ++i) +    continue; +  return 0; +} + +// Check varargs and va_copy. +static void +test_varargs (const char *format, ...) +{ +  va_list args; +  va_start (args, format); +  va_list args_copy; +  va_copy (args_copy, args); + +  const char *str; +  int number; +  float fnumber; + +  while (*format) +    { +      switch (*format++) +	{ +	case 's': // string +	  str = va_arg (args_copy, const char *); +	  break; +	case 'd': // int +	  number = va_arg (args_copy, int); +	  break; +	case 'f': // float +	  fnumber = va_arg (args_copy, double); +	  break; +	default: +	  break; +	} +    } +  va_end (args_copy); +  va_end (args); +} + +int +main () +{ + +  // Check bool. +  _Bool success = false; + +  // Check restrict. +  if (test_restrict ("String literal") == 0) +    success = true; +  char *restrict newvar = "Another string"; + +  // Check varargs. +  test_varargs ("s, d' f .", "string", 65, 34.234); +  test_varargs_macros (); + +  // Check flexible array members. +  struct incomplete_array *ia = +    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); +  ia->datasize = 10; +  for (int i = 0; i < ia->datasize; ++i) +    ia->data[i] = i * 1.234; + +  // Check named initializers. +  struct named_init ni = { +    .number = 34, +    .name = L"Test wide string", +    .average = 543.34343, +  }; + +  ni.number = 58; + +  int dynamic_array[ni.number]; +  dynamic_array[ni.number - 1] = 543; + +  // work around unused variable warnings +  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' +	  || dynamic_array[ni.number - 1] != 543); + +  ; +  return 0; +}  _ACEOF -# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. -case `${MAKE-make} -f conftest.make 2>/dev/null` in -  *@@@%%%=?*=@@@%%%*) -    eval ac_cv_prog_make_${ac_make}_set=yes;; +for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 +do +  CC="$ac_save_CC $ac_arg" +  if ac_fn_c_try_compile "$LINENO"; then : +  ac_cv_prog_cc_c99=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext +  test "x$ac_cv_prog_cc_c99" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c99" in +  x) +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; +  xno) +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;;    *) -    eval ac_cv_prog_make_${ac_make}_set=no;; +    CC="$CC $ac_cv_prog_cc_c99" +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 +$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;  esac -rm -f conftest.make +if test "x$ac_cv_prog_cc_c99" != xno; then : +  fi -if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -  SET_MAKE= + +                  if test xno != "x$ac_cv_prog_cc_c99"; then : +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sane_save_CC option for ISO C99 w/o extensions" >&5 +$as_echo_n "checking for $sane_save_CC option for ISO C99 w/o extensions... " >&6; } +       case $ac_cv_prog_cc_c99 in #( +  -std=gnu99) : +    sane_prog_cc_c99="-std=c99" ;; #( +  -qlanglvl=extc99) : +    sane_prog_cc_c99="-qlanglvl=stdc99" ;; #( +  *) : +     ;; +esac +       if test "x$ac_cv_prog_cc_c99" = "x$sane_prog_cc_c99"; then : +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_99" >&5 +$as_echo "$ac_cv_prog_cc_99" >&6; }  else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -  SET_MAKE="MAKE=${MAKE-make}" +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_prog_cc_c99" >&5 +$as_echo "$sane_prog_cc_c99" >&6; } +              CC="$sane_save_CC $sane_prog_cc_c99" +fi +  fi  ac_ext=c @@ -4584,7 +4763,6 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $  ac_compiler_gnu=$ac_cv_c_compiler_gnu -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5  $as_echo_n "checking for grep that handles long lines and -e... " >&6; }  if ${ac_cv_path_GREP+:} false; then : @@ -4757,579 +4935,6 @@ $as_echo "$ac_cv_prog_gcc_traditional" >&6; }    fi  fi -# Extract the first word of "sane-config", so it can be a program name with args. -set dummy sane-config; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_SANE_CONFIG_PATH+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  case $SANE_CONFIG_PATH in -  [\\/]* | ?:[\\/]*) -  ac_cv_path_SANE_CONFIG_PATH="$SANE_CONFIG_PATH" # Let the user override the test with a path. -  ;; -  *) -  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do -  IFS=$as_save_IFS -  test -z "$as_dir" && as_dir=. -    for ac_exec_ext in '' $ac_executable_extensions; do -  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then -    ac_cv_path_SANE_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext" -    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 -    break 2 -  fi -done -  done -IFS=$as_save_IFS - -  test -z "$ac_cv_path_SANE_CONFIG_PATH" && ac_cv_path_SANE_CONFIG_PATH="no" -  ;; -esac -fi -SANE_CONFIG_PATH=$ac_cv_path_SANE_CONFIG_PATH -if test -n "$SANE_CONFIG_PATH"; then -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SANE_CONFIG_PATH" >&5 -$as_echo "$SANE_CONFIG_PATH" >&6; } -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -# Extract the first word of "msgfmt$EXEEXT", so it can be a program name with args. -set dummy msgfmt$EXEEXT; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_MSGFMT+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  case $MSGFMT in -  [\\/]* | ?:[\\/]*) -  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. -  ;; -  *) -  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do -  IFS=$as_save_IFS -  test -z "$as_dir" && as_dir=. -    for ac_exec_ext in '' $ac_executable_extensions; do -  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then -    ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" -    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 -    break 2 -  fi -done -  done -IFS=$as_save_IFS - -  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" -  ;; -esac -fi -MSGFMT=$ac_cv_path_MSGFMT -if test -n "$MSGFMT"; then -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 -$as_echo "$MSGFMT" >&6; } -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -# Extract the first word of "xgettext$EXEEXT", so it can be a program name with args. -set dummy xgettext$EXEEXT; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_XGETTEXT+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  case $XGETTEXT in -  [\\/]* | ?:[\\/]*) -  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. -  ;; -  *) -  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do -  IFS=$as_save_IFS -  test -z "$as_dir" && as_dir=. -    for ac_exec_ext in '' $ac_executable_extensions; do -  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then -    ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext" -    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 -    break 2 -  fi -done -  done -IFS=$as_save_IFS - -  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="no" -  ;; -esac -fi -XGETTEXT=$ac_cv_path_XGETTEXT -if test -n "$XGETTEXT"; then -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 -$as_echo "$XGETTEXT" >&6; } -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -# Extract the first word of "msgmerge$EXEEXT", so it can be a program name with args. -set dummy msgmerge$EXEEXT; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_MSGMERGE+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  case $MSGMERGE in -  [\\/]* | ?:[\\/]*) -  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. -  ;; -  *) -  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do -  IFS=$as_save_IFS -  test -z "$as_dir" && as_dir=. -    for ac_exec_ext in '' $ac_executable_extensions; do -  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then -    ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext" -    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 -    break 2 -  fi -done -  done -IFS=$as_save_IFS - -  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE="no" -  ;; -esac -fi -MSGMERGE=$ac_cv_path_MSGMERGE -if test -n "$MSGMERGE"; then -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 -$as_echo "$MSGMERGE" >&6; } -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -# Extract the first word of "latex$EXEEXT", so it can be a program name with args. -set dummy latex$EXEEXT; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_LATEX+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  case $LATEX in -  [\\/]* | ?:[\\/]*) -  ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path. -  ;; -  *) -  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do -  IFS=$as_save_IFS -  test -z "$as_dir" && as_dir=. -    for ac_exec_ext in '' $ac_executable_extensions; do -  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then -    ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext" -    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 -    break 2 -  fi -done -  done -IFS=$as_save_IFS - -  test -z "$ac_cv_path_LATEX" && ac_cv_path_LATEX="no" -  ;; -esac -fi -LATEX=$ac_cv_path_LATEX -if test -n "$LATEX"; then -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5 -$as_echo "$LATEX" >&6; } -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -# Extract the first word of "dvips$EXEEXT", so it can be a program name with args. -set dummy dvips$EXEEXT; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_DVIPS+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  case $DVIPS in -  [\\/]* | ?:[\\/]*) -  ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path. -  ;; -  *) -  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do -  IFS=$as_save_IFS -  test -z "$as_dir" && as_dir=. -    for ac_exec_ext in '' $ac_executable_extensions; do -  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then -    ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext" -    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 -    break 2 -  fi -done -  done -IFS=$as_save_IFS - -  test -z "$ac_cv_path_DVIPS" && ac_cv_path_DVIPS="no" -  ;; -esac -fi -DVIPS=$ac_cv_path_DVIPS -if test -n "$DVIPS"; then -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5 -$as_echo "$DVIPS" >&6; } -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -# Extract the first word of "makeindex$EXEEXT", so it can be a program name with args. -set dummy makeindex$EXEEXT; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_MAKEINDEX+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  case $MAKEINDEX in -  [\\/]* | ?:[\\/]*) -  ac_cv_path_MAKEINDEX="$MAKEINDEX" # Let the user override the test with a path. -  ;; -  *) -  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do -  IFS=$as_save_IFS -  test -z "$as_dir" && as_dir=. -    for ac_exec_ext in '' $ac_executable_extensions; do -  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then -    ac_cv_path_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext" -    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 -    break 2 -  fi -done -  done -IFS=$as_save_IFS - -  test -z "$ac_cv_path_MAKEINDEX" && ac_cv_path_MAKEINDEX="no" -  ;; -esac -fi -MAKEINDEX=$ac_cv_path_MAKEINDEX -if test -n "$MAKEINDEX"; then -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINDEX" >&5 -$as_echo "$MAKEINDEX" >&6; } -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - - - - - - - - - - - - - - -if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then -	if test -n "$ac_tool_prefix"; then -  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. -set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PKG_CONFIG+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  case $PKG_CONFIG in -  [\\/]* | ?:[\\/]*) -  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. -  ;; -  *) -  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do -  IFS=$as_save_IFS -  test -z "$as_dir" && as_dir=. -    for ac_exec_ext in '' $ac_executable_extensions; do -  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then -    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" -    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 -    break 2 -  fi -done -  done -IFS=$as_save_IFS - -  ;; -esac -fi -PKG_CONFIG=$ac_cv_path_PKG_CONFIG -if test -n "$PKG_CONFIG"; then -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 -$as_echo "$PKG_CONFIG" >&6; } -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_path_PKG_CONFIG"; then -  ac_pt_PKG_CONFIG=$PKG_CONFIG -  # Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-config; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  case $ac_pt_PKG_CONFIG in -  [\\/]* | ?:[\\/]*) -  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. -  ;; -  *) -  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do -  IFS=$as_save_IFS -  test -z "$as_dir" && as_dir=. -    for ac_exec_ext in '' $ac_executable_extensions; do -  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then -    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" -    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 -    break 2 -  fi -done -  done -IFS=$as_save_IFS - -  ;; -esac -fi -ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG -if test -n "$ac_pt_PKG_CONFIG"; then -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 -$as_echo "$ac_pt_PKG_CONFIG" >&6; } -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - -  if test "x$ac_pt_PKG_CONFIG" = x; then -    PKG_CONFIG="" -  else -    case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac -    PKG_CONFIG=$ac_pt_PKG_CONFIG -  fi -else -  PKG_CONFIG="$ac_cv_path_PKG_CONFIG" -fi - -fi -if test -n "$PKG_CONFIG"; then -	_pkg_min_version=0.9.0 -	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 -$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } -	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then -		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -	else -		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -		PKG_CONFIG="" -	fi -fi - - if test x$cross_compiling = xyes; then -  CROSS_COMPILING_TRUE= -  CROSS_COMPILING_FALSE='#' -else -  CROSS_COMPILING_TRUE='#' -  CROSS_COMPILING_FALSE= -fi - - - - -if test "${ac_cv_c_compiler_gnu}" = "yes"; then -  NORMAL_CFLAGS="\ -      -W \ -      -Wall" -  WARN_CFLAGS="\ -      -W \ -      -Wall \ -      -Wcast-align \ -      -Wcast-qual \ -      -Wmissing-declarations \ -      -Wmissing-prototypes \ -      -Wpointer-arith \ -      -Wreturn-type \ -      -Wstrict-prototypes \ -      -pedantic" - -  # Some platforms are overly strict with -ansi enabled.  Exclude those. -  ANSI_FLAG=-ansi -  case "${host_os}" in -    solaris* | hpux* | os2* | darwin* | cygwin* | mingw*) -      ANSI_FLAG= -      ;; -  esac -  NORMAL_CFLAGS="${NORMAL_CFLAGS} ${ANSI_FLAG}" -  WARN_CFLAGS="${WARN_CFLAGS} ${ANSI_FLAG}" - -  # Check whether --enable-warnings was given. -if test "${enable_warnings+set}" = set; then : -  enableval=$enable_warnings; -      if eval "test x$enable_warnings = xyes"; then -        for flag in $WARN_CFLAGS; do -          case "$CFLAGS" in -"$flag" | "$flag "* | *" $flag" | *" $flag "* ) -  : -  ;; -*) -   CFLAGS="$CFLAGS $flag" -  ;; -esac - -        done -      else -        for flag in $NORMAL_CFLAGS; do -          case "$CFLAGS" in -"$flag" | "$flag "* | *" $flag" | *" $flag "* ) -  : -  ;; -*) -   CFLAGS="$CFLAGS $flag" -  ;; -esac - -        done -      fi - -else -  if test x$is_release = xno; then -       # Warnings enabled by default (development) -       for flag in $WARN_CFLAGS; do -         case "$CFLAGS" in -"$flag" | "$flag "* | *" $flag" | *" $flag "* ) -  : -  ;; -*) -   CFLAGS="$CFLAGS $flag" -  ;; -esac - -       done -    else -       # Warnings disabled by default (release) -       for flag in $NORMAL_CFLAGS; do -         case "$CFLAGS" in -"$flag" | "$flag "* | *" $flag" | *" $flag "* ) -  : -  ;; -*) -   CFLAGS="$CFLAGS $flag" -  ;; -esac - -       done -    fi -fi - -fi # ac_cv_c_compiler_gnu - - -  # Define stricter linking policy on GNU systems.  This is not -  # added to global LDFLAGS because we may want to create convenience -  # libraries that don't require such strick linking. -  if test "$GCC" = yes; then -    case ${host_os} in -    linux* | solaris*) -      STRICT_LDFLAGS="-Wl,-z,defs" -      ;; -    esac -  fi - -  case "${host_os}" in -    aix*) #enable .so libraries, disable archives -      LDFLAGS="$LDFLAGS -Wl,-brtl" -      ;; -    darwin*) #include frameworks -      LIBS="$LIBS -framework CoreFoundation -framework IOKit" -      ;; -  esac - -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runtime link path should be used" >&5 -$as_echo_n "checking whether runtime link path should be used... " >&6; } -  # Check whether --enable-rpath was given. -if test "${enable_rpath+set}" = set; then : -  enableval=$enable_rpath; -fi - - -  LINKER_RPATH= -  if test "x$enable_rpath" != xno; then : -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker parameter to set runtime link path" >&5 -$as_echo_n "checking linker parameter to set runtime link path... " >&6; } -if ${my_cv_LINKER_RPATH+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  my_cv_LINKER_RPATH= -      case "$host_os" in -      linux* | freebsd* | netbsd* | openbsd* | irix*) -        # I believe this only works with GNU ld [pere 2001-04-16] -        my_cv_LINKER_RPATH="-Wl,-rpath," -        ;; -      solaris*) -        my_cv_LINKER_RPATH="-R " -        ;; -      esac - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $my_cv_LINKER_RPATH" >&5 -$as_echo "$my_cv_LINKER_RPATH" >&6; } -      LINKER_RPATH="$my_cv_LINKER_RPATH" -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -      LINKER_RPATH= -fi - -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5  $as_echo_n "checking for ANSI C header files... " >&6; }  if ${ac_cv_header_stdc+:} false; then : @@ -5520,2038 +5125,18 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }    $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 -$as_echo_n "checking for library containing strerror... " >&6; } -if ${ac_cv_search_strerror+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -/* Override any GCC internal prototype to avoid an error. -   Use char because int might match the return type of a GCC -   builtin and then its argument prototype would still apply.  */ -#ifdef __cplusplus -extern "C" -#endif -char strerror (); -int -main () -{ -return strerror (); -  ; -  return 0; -} -_ACEOF -for ac_lib in '' cposix; do -  if test -z "$ac_lib"; then -    ac_res="none required" -  else -    ac_res=-l$ac_lib -    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" -  fi -  if ac_fn_c_try_link "$LINENO"; then : -  ac_cv_search_strerror=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ -    conftest$ac_exeext -  if ${ac_cv_search_strerror+:} false; then : -  break -fi -done -if ${ac_cv_search_strerror+:} false; then : - -else -  ac_cv_search_strerror=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 -$as_echo "$ac_cv_search_strerror" >&6; } -ac_res=$ac_cv_search_strerror -if test "$ac_res" != no; then : -  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -fi - - - -ac_byteorder_h=`echo include/byteorder.h` -ac_dir=`echo $ac_byteorder_h|sed 's%/[^/][^/]*$%%'` -if test "$ac_dir" != "$ac_byteorder" && test "$ac_dir" != .; then -  # The file is in a subdirectory. -  test ! -d "$ac_dir" && mkdir "$ac_dir" -fi - -# We're only interested in the target CPU, but it's not always set -effective_target="$target" -if test "x$effective_target" = xNONE -o "x$effective_target" = x ; then -	effective_target="$host" -fi - - -ac_byteorder=_byteorder.tmp -cat > "$ac_byteorder" << EOF -/* This file is generated automatically by configure */ -/* It is valid only for the system type ${effective_target} */ - -#ifndef __BYTEORDER_H -#define __BYTEORDER_H - -EOF - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 -$as_echo_n "checking whether byte ordering is bigendian... " >&6; } -if ${ac_cv_c_bigendian+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  ac_cv_c_bigendian=unknown -    # See if we're dealing with a universal compiler. -    cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ -#ifndef __APPLE_CC__ -	       not a universal capable compiler -	     #endif -	     typedef int dummy; - -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - -	# Check for potential -arch flags.  It is not universal unless -	# there are at least two -arch flags with different values. -	ac_arch= -	ac_prev= -	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do -	 if test -n "$ac_prev"; then -	   case $ac_word in -	     i?86 | x86_64 | ppc | ppc64) -	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then -		 ac_arch=$ac_word -	       else -		 ac_cv_c_bigendian=universal -		 break -	       fi -	       ;; -	   esac -	   ac_prev= -	 elif test "x$ac_word" = "x-arch"; then -	   ac_prev=arch -	 fi -       done -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -    if test $ac_cv_c_bigendian = unknown; then -      # See if sys/param.h defines the BYTE_ORDER macro. -      cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ -#include <sys/types.h> -	     #include <sys/param.h> - -int -main () -{ -#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ -		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ -		     && LITTLE_ENDIAN) -	      bogus endian macros -	     #endif - -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : -  # It does; now see whether it defined to BIG_ENDIAN or not. -	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ -#include <sys/types.h> -		#include <sys/param.h> - -int -main () -{ -#if BYTE_ORDER != BIG_ENDIAN -		 not big endian -		#endif - -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : -  ac_cv_c_bigendian=yes -else -  ac_cv_c_bigendian=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -    fi -    if test $ac_cv_c_bigendian = unknown; then -      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). -      cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ -#include <limits.h> - -int -main () -{ -#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) -	      bogus endian macros -	     #endif - -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : -  # It does; now see whether it defined to _BIG_ENDIAN or not. -	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ -#include <limits.h> - -int -main () -{ -#ifndef _BIG_ENDIAN -		 not big endian -		#endif - -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : -  ac_cv_c_bigendian=yes -else -  ac_cv_c_bigendian=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -    fi -    if test $ac_cv_c_bigendian = unknown; then -      # Compile a test program. -      if test "$cross_compiling" = yes; then : -  # Try to guess by grepping values from an object file. -	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ -short int ascii_mm[] = -		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; -		short int ascii_ii[] = -		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; -		int use_ascii (int i) { -		  return ascii_mm[i] + ascii_ii[i]; -		} -		short int ebcdic_ii[] = -		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; -		short int ebcdic_mm[] = -		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; -		int use_ebcdic (int i) { -		  return ebcdic_mm[i] + ebcdic_ii[i]; -		} -		extern int foo; - -int -main () -{ -return use_ascii (foo) == use_ebcdic (foo); -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : -  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then -	      ac_cv_c_bigendian=yes -	    fi -	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then -	      if test "$ac_cv_c_bigendian" = unknown; then -		ac_cv_c_bigendian=no -	      else -		# finding both strings is unlikely to happen, but who knows? -		ac_cv_c_bigendian=unknown -	      fi -	    fi -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -else -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ -$ac_includes_default -int -main () -{ - -	     /* Are we little or big endian?  From Harbison&Steele.  */ -	     union -	     { -	       long int l; -	       char c[sizeof (long int)]; -	     } u; -	     u.l = 1; -	     return u.c[sizeof (long int) - 1] == 1; - -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : -  ac_cv_c_bigendian=no -else -  ac_cv_c_bigendian=yes -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ -  conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - -    fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 -$as_echo "$ac_cv_c_bigendian" >&6; } - case $ac_cv_c_bigendian in #( -   yes) -     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h -;; #( -   no) -      ;; #( -   universal) - -$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h - -     ;; #( -   *) -     as_fn_error $? "unknown endianness - presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; - esac - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for le32toh in machine/endian.h" >&5 -$as_echo_n "checking for le32toh in machine/endian.h... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -#include <machine/endian.h> -#ifdef le32toh - 	symbol is present -#endif - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | -  $EGREP "symbol is present|\<le32toh\>" >/dev/null 2>&1; then : -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -HAVE_LE32TOH=1 - cat >> "$ac_byteorder" << EOF -/* extended byte swapping macros are already available */ -#include <machine/endian.h> - -EOF - -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ntohl in arpa/inet.h" >&5 -$as_echo_n "checking for ntohl in arpa/inet.h... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -#include <arpa/inet.h> -#ifdef ntohl - 	symbol is present -#endif - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | -  $EGREP "symbol is present|\<ntohl\>" >/dev/null 2>&1; then : -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -cat >> "$ac_byteorder" << EOF -/* ntohl and relatives live here */ -#include <arpa/inet.h> - -EOF - -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ntohl in netinet/in.h" >&5 -$as_echo_n "checking for ntohl in netinet/in.h... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -#include <netinet/in.h> -#ifdef ntohl - 	symbol is present -#endif - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | -  $EGREP "symbol is present|\<ntohl\>" >/dev/null 2>&1; then : -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -cat >> "$ac_byteorder" << EOF -/* ntohl and relatives live here */ -#include <netinet/in.h> - -EOF - -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -true - -fi -rm -f conftest* - - -fi -rm -f conftest* - - - -fi -rm -f conftest* - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for swap32 in machine/endian.h" >&5 -$as_echo_n "checking for swap32 in machine/endian.h... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -#include <machine/endian.h> -#ifdef swap32 - 	symbol is present -#endif - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | -  $EGREP "symbol is present|\<swap32\>" >/dev/null 2>&1; then : -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -cat >> "$ac_byteorder" << EOF -/* swap32 and swap16 are defined in machine/endian.h */ - -EOF - -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap_32 in byteswap.h" >&5 -$as_echo_n "checking for bswap_32 in byteswap.h... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -#include <byteswap.h> -#ifdef bswap_32 - 	symbol is present -#endif - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | -  $EGREP "symbol is present|\<bswap_32\>" >/dev/null 2>&1; then : -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -cat >> "$ac_byteorder" << EOF -/* Define generic byte swapping functions */ -#include <byteswap.h> -#define swap16(x) bswap_16(x) -#define swap32(x) bswap_32(x) -#define swap64(x) bswap_64(x) - -EOF - -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap32 in machine/endian.h" >&5 -$as_echo_n "checking for bswap32 in machine/endian.h... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -#include <machine/endian.h> -#ifdef bswap32 - 	symbol is present -#endif - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | -  $EGREP "symbol is present|\<bswap32\>" >/dev/null 2>&1; then : -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -  	 cat >> "$ac_byteorder" << EOF -/* Define generic byte swapping functions */ -EOF -	if test "$HAVE_LE32TOH" != "1"; then -		echo '#include <machine/endian.h>'>> "$ac_byteorder" -	fi -cat >> "$ac_byteorder" << EOF -#define swap16(x) bswap16(x) -#define swap32(x) bswap32(x) -#define swap64(x) bswap64(x) - -EOF - -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __byte_swap_long in sys/types.h" >&5 -$as_echo_n "checking for __byte_swap_long in sys/types.h... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -#include <sys/types.h> -#ifdef __byte_swap_long - 	symbol is present -#endif - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | -  $EGREP "symbol is present|\<__byte_swap_long\>" >/dev/null 2>&1; then : -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -cat >> "$ac_byteorder" << EOF -/* Define generic byte swapping functions */ -#include <sys/types.h> -#define swap16(x) __byte_swap_word(x) -#define swap32(x) __byte_swap_long(x) -/* No optimized 64 bit byte swapping macro is available */ -#define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\ -			      ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\ -			      ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\ -			      ((uint64_t)(x) << 8)  & 0x000000ff00000000ULL | \\ -			      ((x) >> 8)  & 0x00000000ff000000ULL | \\ -			      ((x) >> 24) & 0x0000000000ff0000ULL | \\ -			      ((x) >> 40) & 0x000000000000ff00ULL | \\ -			      ((x) >> 56) & 0x00000000000000ffULL)) - -EOF - -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NXSwapLong in machine/byte_order.h" >&5 -$as_echo_n "checking for NXSwapLong in machine/byte_order.h... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -#include <machine/byte_order.h> -#ifdef NXSwapLong - 	symbol is present -#endif - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | -  $EGREP "symbol is present|\<NXSwapLong\>" >/dev/null 2>&1; then : -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -cat >> "$ac_byteorder" << EOF -/* Define generic byte swapping functions */ -#include <machine/byte_order.h> -#define swap16(x) NXSwapShort(x) -#define swap32(x) NXSwapLong(x) -#define swap64(x) NXSwapLongLong(x) - -EOF - -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -	if test $ac_cv_c_bigendian = yes; then -		cat >> "$ac_byteorder" << EOF -/* No other byte swapping functions are available on this big-endian system */ -#define swap16(x)	((uint16_t)(((x) << 8) | ((uint16_t)(x) >> 8))) -#define swap32(x)	((uint32_t)(((uint32_t)(x) << 24) & 0xff000000UL | \\ -				    ((uint32_t)(x) << 8)  & 0x00ff0000UL | \\ -				    ((x) >> 8)  & 0x0000ff00UL | \\ -				    ((x) >> 24) & 0x000000ffUL)) -#define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\ -			      ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\ -			      ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\ -			      ((uint64_t)(x) << 8)  & 0x000000ff00000000ULL | \\ -			      ((x) >> 8)  & 0x00000000ff000000ULL | \\ -			      ((x) >> 24) & 0x0000000000ff0000ULL | \\ -			      ((x) >> 40) & 0x000000000000ff00ULL | \\ -			      ((x) >> 56) & 0x00000000000000ffULL)) - -EOF -	else - cat >> "$ac_byteorder" << EOF -/* Use these as generic byteswapping macros on this little endian system */ -#define swap16(x)		ntohs(x) -#define swap32(x)		ntohl(x) -/* No optimized 64 bit byte swapping macro is available */ -#define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\ -			      ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\ -			      ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\ -			      ((uint64_t)(x) << 8)  & 0x000000ff00000000ULL | \\ -			      ((x) >> 8)  & 0x00000000ff000000ULL | \\ -			      ((x) >> 24) & 0x0000000000ff0000ULL | \\ -			      ((x) >> 40) & 0x000000000000ff00ULL | \\ -			      ((x) >> 56) & 0x00000000000000ffULL)) - -EOF -	fi - - -fi -rm -f conftest* - - - -fi -rm -f conftest* - - - -fi -rm -f conftest* - - - -fi -rm -f conftest* - - - -fi -rm -f conftest* - - - - -if test "$HAVE_LE32TOH" != "1"; then - cat >> "$ac_byteorder" << EOF -/* The byte swapping macros have the form: */ -/*   EENN[a]toh or htoEENN[a] where EE is be (big endian) or */ -/* le (little-endian), NN is 16 or 32 (number of bits) and a, */ -/* if present, indicates that the endian side is a pointer to an */ -/* array of uint8_t bytes instead of an integer of the specified length. */ -/* h refers to the host's ordering method. */ - -/* So, to convert a 32-bit integer stored in a buffer in little-endian */ -/* format into a uint32_t usable on this machine, you could use: */ -/*   uint32_t value = le32atoh(&buf[3]); */ -/* To put that value back into the buffer, you could use: */ -/*   htole32a(&buf[3], value); */ - -/* Define aliases for the standard byte swapping macros */ -/* Arguments to these macros must be properly aligned on natural word */ -/* boundaries in order to work properly on all architectures */ -#ifndef htobe16 -#define htobe16(x) htons(x) -#endif -#ifndef htobe32 -#define htobe32(x) htonl(x) -#endif -#ifndef be16toh -#define be16toh(x) ntohs(x) -#endif -#ifndef be32toh -#define be32toh(x) ntohl(x) -#endif - -#define HTOBE16(x) (x) = htobe16(x) -#define HTOBE32(x) (x) = htobe32(x) -#define BE32TOH(x) (x) = be32toh(x) -#define BE16TOH(x) (x) = be16toh(x) - -EOF - - if test $ac_cv_c_bigendian = yes; then -  cat >> "$ac_byteorder" << EOF -/* Define our own extended byte swapping macros for big-endian machines */ -#ifndef htole16 -#define htole16(x)      swap16(x) -#endif -#ifndef htole32 -#define htole32(x)      swap32(x) -#endif -#ifndef le16toh -#define le16toh(x)      swap16(x) -#endif -#ifndef le32toh -#define le32toh(x)      swap32(x) -#endif - -#ifndef htobe64 -#define htobe64(x)      (x) -#endif -#ifndef be64toh -#define be64toh(x)      (x) -#endif - -#define HTOLE16(x)      (x) = htole16(x) -#define HTOLE32(x)      (x) = htole32(x) -#define LE16TOH(x)      (x) = le16toh(x) -#define LE32TOH(x)      (x) = le32toh(x) - -#define HTOBE64(x)      (void) (x) -#define BE64TOH(x)      (void) (x) - -EOF - else -  cat >> "$ac_byteorder" << EOF -/* On little endian machines, these macros are null */ -#ifndef htole16 -#define htole16(x)      (x) -#endif -#ifndef htole32 -#define htole32(x)      (x) -#endif -#ifndef htole64 -#define htole64(x)      (x) -#endif -#ifndef le16toh -#define le16toh(x)      (x) -#endif -#ifndef le32toh -#define le32toh(x)      (x) -#endif -#ifndef le64toh -#define le64toh(x)      (x) -#endif - -#define HTOLE16(x)      (void) (x) -#define HTOLE32(x)      (void) (x) -#define HTOLE64(x)      (void) (x) -#define LE16TOH(x)      (void) (x) -#define LE32TOH(x)      (void) (x) -#define LE64TOH(x)      (void) (x) - -/* These don't have standard aliases */ -#ifndef htobe64 -#define htobe64(x)      swap64(x) -#endif -#ifndef be64toh -#define be64toh(x)      swap64(x) -#endif - -#define HTOBE64(x)      (x) = htobe64(x) -#define BE64TOH(x)      (x) = be64toh(x) - -EOF - fi -fi - -cat >> "$ac_byteorder" << EOF -/* Define the C99 standard length-specific integer types */ -#include <_stdint.h> - -EOF - -case "${effective_target}" in - i[3456]86-*) -  cat >> "$ac_byteorder" << EOF -/* Here are some macros to create integers from a byte array */ -/* These are used to get and put integers from/into a uint8_t array */ -/* with a specific endianness.  This is the most portable way to generate */ -/* and read messages to a network or serial device.  Each member of a */ -/* packet structure must be handled separately. */ - -/* The i386 and compatibles can handle unaligned memory access, */ -/* so use the optimized macros above to do this job */ -#define be16atoh(x)     be16toh(*(uint16_t*)(x)) -#define be32atoh(x)     be32toh(*(uint32_t*)(x)) -#define be64atoh(x)     be64toh(*(uint64_t*)(x)) -#define le16atoh(x)     le16toh(*(uint16_t*)(x)) -#define le32atoh(x)     le32toh(*(uint32_t*)(x)) -#define le64atoh(x)     le64toh(*(uint64_t*)(x)) - -#define htobe16a(a,x)   *(uint16_t*)(a) = htobe16(x) -#define htobe32a(a,x)   *(uint32_t*)(a) = htobe32(x) -#define htobe64a(a,x)   *(uint64_t*)(a) = htobe64(x) -#define htole16a(a,x)   *(uint16_t*)(a) = htole16(x) -#define htole32a(a,x)   *(uint32_t*)(a) = htole32(x) -#define htole64a(a,x)   *(uint64_t*)(a) = htole64(x) - -EOF -  ;; - - *) -  cat >> "$ac_byteorder" << EOF -/* Here are some macros to create integers from a byte array */ -/* These are used to get and put integers from/into a uint8_t array */ -/* with a specific endianness.  This is the most portable way to generate */ -/* and read messages to a network or serial device.  Each member of a */ -/* packet structure must be handled separately. */ - -/* Non-optimized but portable macros */ -#define be16atoh(x)     ((uint16_t)(((x)[0]<<8)|(x)[1])) -#define be32atoh(x)     ((uint32_t)(((x)[0]<<24)|((x)[1]<<16)|((x)[2]<<8)|(x)[3])) -#define be64atoh(x)     ((uint64_t)(((x)[0]<<56)|((x)[1]<<48)|((x)[2]<<40)| \\ -        ((x)[3]<<32)|((x)[4]<<24)|((x)[5]<<16)|((x)[6]<<8)|(x)[7])) -#define le16atoh(x)     ((uint16_t)(((x)[1]<<8)|(x)[0])) -#define le32atoh(x)     ((uint32_t)(((x)[3]<<24)|((x)[2]<<16)|((x)[1]<<8)|(x)[0])) -#define le64atoh(x)     ((uint64_t)(((x)[7]<<56)|((x)[6]<<48)|((x)[5]<<40)| \\ -        ((x)[4]<<32)|((x)[3]<<24)|((x)[2]<<16)|((x)[1]<<8)|(x)[0])) - -#define htobe16a(a,x)   (a)[0]=(uint8_t)((x)>>8), (a)[1]=(uint8_t)(x) -#define htobe32a(a,x)   (a)[0]=(uint8_t)((x)>>24), (a)[1]=(uint8_t)((x)>>16), \\ -        (a)[2]=(uint8_t)((x)>>8), (a)[3]=(uint8_t)(x) -#define htobe64a(a,x)   (a)[0]=(uint8_t)((x)>>56), (a)[1]=(uint8_t)((x)>>48), \\ -        (a)[2]=(uint8_t)((x)>>40), (a)[3]=(uint8_t)((x)>>32), \\ -        (a)[4]=(uint8_t)((x)>>24), (a)[5]=(uint8_t)((x)>>16), \\ -        (a)[6]=(uint8_t)((x)>>8), (a)[7]=(uint8_t)(x) -#define htole16a(a,x)   (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x) -#define htole32a(a,x)   (a)[3]=(uint8_t)((x)>>24), (a)[2]=(uint8_t)((x)>>16), \\ -        (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x) -#define htole64a(a,x)   (a)[7]=(uint8_t)((x)>>56), (a)[6]=(uint8_t)((x)>>48), \\ -        (a)[5]=(uint8_t)((x)>>40), (a)[4]=(uint8_t)((x)>>32), \\ -        (a)[3]=(uint8_t)((x)>>24), (a)[2]=(uint8_t)((x)>>16), \\ -        (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x) - -EOF -  ;; -esac - - -cat >> "$ac_byteorder" << EOF -#endif /*__BYTEORDER_H*/ -EOF - -if cmp -s $ac_byteorder_h $ac_byteorder 2>/dev/null; then -  { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_byteorder_h is unchanged" >&5 -$as_echo "$as_me: $ac_byteorder_h is unchanged" >&6;} -  rm $ac_byteorder -else -  rm -f $ac_byteorder_h -  mv $ac_byteorder $ac_byteorder_h -fi - -# ------ AX CREATE STDINT H ------------------------------------- -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5 -$as_echo_n "checking for stdint types... " >&6; } -ac_stdint_h=`echo include/_stdint.h` -# try to shortcircuit - if the default include path of the compiler -# can find a "stdint.h" header then we assume that all compilers can. -if ${ac_cv_header_stdint_t+:} false; then : -  $as_echo_n "(cached) " >&6 -else - -old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS="" -old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS="" -old_CFLAGS="$CFLAGS"     ; CFLAGS="" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ -#include <stdint.h> -int -main () -{ -int_least32_t v = 0; -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : -  ac_cv_stdint_result="(assuming C99 compatible system)" - ac_cv_header_stdint_t="stdint.h"; -else -  ac_cv_header_stdint_t="" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then -CFLAGS="-std=c99" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ -#include <stdint.h> -int -main () -{ -int_least32_t v = 0; -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : -  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5 -$as_echo "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;} -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -CXXFLAGS="$old_CXXFLAGS" -CPPFLAGS="$old_CPPFLAGS" -CFLAGS="$old_CFLAGS" -fi - - -v="... $ac_cv_header_stdint_h" -if test "$ac_stdint_h" = "stdint.h" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5 -$as_echo "(are you sure you want them in ./stdint.h?)" >&6; } -elif test "$ac_stdint_h" = "inttypes.h" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5 -$as_echo "(are you sure you want them in ./inttypes.h?)" >&6; } -elif test "_$ac_cv_header_stdint_t" = "_" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5 -$as_echo "(putting them into $ac_stdint_h)$v" >&6; } -else - ac_cv_header_stdint="$ac_cv_header_stdint_t" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5 -$as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; } -fi - -if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit.. - - -inttype_headers=`echo  | sed -e 's/,/ /g'` - -ac_cv_stdint_result="(no helpful system typedefs seen)" - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5 -$as_echo_n "checking for stdint uintptr_t... " >&6; } -if ${ac_cv_header_stdint_x+:} false; then : -  $as_echo_n "(cached) " >&6 -else - - ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h) -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5 -$as_echo "(..)" >&6; } -  for i in    stdint.h inttypes.h sys/inttypes.h $inttype_headers -  do -   unset ac_cv_type_uintptr_t -   unset ac_cv_type_uint64_t -   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i> -" -if test "x$ac_cv_type_uintptr_t" = xyes; then : -  ac_cv_header_stdint_x=$i -else -  continue -fi - -   ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i> -" -if test "x$ac_cv_type_uint64_t" = xyes; then : -  and64="/uint64_t" -else -  and64="" -fi - -      stdint.h inttypes.h sys/inttypes.h $inttype_headers - break -  done -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5 -$as_echo_n "checking for stdint uintptr_t... " >&6; } - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5 -$as_echo "$ac_cv_header_stdint_x" >&6; } - - -if test "_$ac_cv_header_stdint_x" = "_" ; then - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5 -$as_echo_n "checking for stdint uint32_t... " >&6; } -if ${ac_cv_header_stdint_o+:} false; then : -  $as_echo_n "(cached) " >&6 -else - - ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h) -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5 -$as_echo "(..)" >&6; } -  for i in    inttypes.h sys/inttypes.h stdint.h $inttype_headers +if test -n "$ac_tool_prefix"; then +  for ac_prog in ar lib "link -lib"    do -   unset ac_cv_type_uint32_t -   unset ac_cv_type_uint64_t -   ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i> -" -if test "x$ac_cv_type_uint32_t" = xyes; then : -  ac_cv_header_stdint_o=$i -else -  continue -fi - -   ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i> -" -if test "x$ac_cv_type_uint64_t" = xyes; then : -  and64="/uint64_t" -else -  and64="" -fi - -      inttypes.h sys/inttypes.h stdint.h $inttype_headers - break -   break; -  done -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5 -$as_echo_n "checking for stdint uint32_t... " >&6; } - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5 -$as_echo "$ac_cv_header_stdint_o" >&6; } - -fi - -if test "_$ac_cv_header_stdint_x" = "_" ; then -if test "_$ac_cv_header_stdint_o" = "_" ; then - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5 -$as_echo_n "checking for stdint u_int32_t... " >&6; } -if ${ac_cv_header_stdint_u+:} false; then : -  $as_echo_n "(cached) " >&6 -else - - ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h) -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5 -$as_echo "(..)" >&6; } -  for i in    sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do -   unset ac_cv_type_u_int32_t -   unset ac_cv_type_u_int64_t -   ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i> -" -if test "x$ac_cv_type_u_int32_t" = xyes; then : -  ac_cv_header_stdint_u=$i -else -  continue -fi - -   ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i> -" -if test "x$ac_cv_type_u_int64_t" = xyes; then : -  and64="/u_int64_t" -else -  and64="" -fi - -      sys/types.h inttypes.h sys/inttypes.h $inttype_headers - break -   break; -  done -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5 -$as_echo_n "checking for stdint u_int32_t... " >&6; } - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5 -$as_echo "$ac_cv_header_stdint_u" >&6; } - -fi fi - -if test "_$ac_cv_header_stdint_x" = "_" ; then -   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5 -$as_echo_n "checking for stdint datatype model... " >&6; } -   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5 -$as_echo "(..)" >&6; } - -   # The cast to long int works around a bug in the HP C Compiler -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. -# This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 -$as_echo_n "checking size of char... " >&6; } -if ${ac_cv_sizeof_char+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then : - -else -  if test "$ac_cv_type_char" = yes; then -     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 77 "cannot compute sizeof (char) -See \`config.log' for more details" "$LINENO" 5; } -   else -     ac_cv_sizeof_char=0 -   fi -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 -$as_echo "$ac_cv_sizeof_char" >&6; } - - - -cat >>confdefs.h <<_ACEOF -#define SIZEOF_CHAR $ac_cv_sizeof_char -_ACEOF - - -   # The cast to long int works around a bug in the HP C Compiler -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. -# This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 -$as_echo_n "checking size of short... " >&6; } -if ${ac_cv_sizeof_short+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then : - -else -  if test "$ac_cv_type_short" = yes; then -     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 77 "cannot compute sizeof (short) -See \`config.log' for more details" "$LINENO" 5; } -   else -     ac_cv_sizeof_short=0 -   fi -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 -$as_echo "$ac_cv_sizeof_short" >&6; } - - - -cat >>confdefs.h <<_ACEOF -#define SIZEOF_SHORT $ac_cv_sizeof_short -_ACEOF - - -   # The cast to long int works around a bug in the HP C Compiler -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. -# This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 -$as_echo_n "checking size of int... " >&6; } -if ${ac_cv_sizeof_int+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then : - -else -  if test "$ac_cv_type_int" = yes; then -     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 77 "cannot compute sizeof (int) -See \`config.log' for more details" "$LINENO" 5; } -   else -     ac_cv_sizeof_int=0 -   fi -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 -$as_echo "$ac_cv_sizeof_int" >&6; } - - - -cat >>confdefs.h <<_ACEOF -#define SIZEOF_INT $ac_cv_sizeof_int -_ACEOF - - -   # The cast to long int works around a bug in the HP C Compiler -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. -# This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 -$as_echo_n "checking size of long... " >&6; } -if ${ac_cv_sizeof_long+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then : - -else -  if test "$ac_cv_type_long" = yes; then -     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 77 "cannot compute sizeof (long) -See \`config.log' for more details" "$LINENO" 5; } -   else -     ac_cv_sizeof_long=0 -   fi -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 -$as_echo "$ac_cv_sizeof_long" >&6; } - - - -cat >>confdefs.h <<_ACEOF -#define SIZEOF_LONG $ac_cv_sizeof_long -_ACEOF - - -   # The cast to long int works around a bug in the HP C Compiler -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. -# This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5 -$as_echo_n "checking size of void*... " >&6; } -if ${ac_cv_sizeof_voidp+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then : - -else -  if test "$ac_cv_type_voidp" = yes; then -     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 77 "cannot compute sizeof (void*) -See \`config.log' for more details" "$LINENO" 5; } -   else -     ac_cv_sizeof_voidp=0 -   fi -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5 -$as_echo "$ac_cv_sizeof_voidp" >&6; } - - - -cat >>confdefs.h <<_ACEOF -#define SIZEOF_VOIDP $ac_cv_sizeof_voidp -_ACEOF - - -   ac_cv_char_data_model="" -   ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char" -   ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short" -   ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int" -   ac_cv_long_data_model="" -   ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int" -   ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long" -   ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp" -   { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5 -$as_echo_n "checking data model... " >&6; } -   case "$ac_cv_char_data_model/$ac_cv_long_data_model" in -    122/242)     ac_cv_data_model="IP16"  ; n="standard 16bit machine" ;; -    122/244)     ac_cv_data_model="LP32"  ; n="standard 32bit machine" ;; -    122/*)       ac_cv_data_model="i16"   ; n="unusual int16 model" ;; -    124/444)     ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;; -    124/488)     ac_cv_data_model="LP64"  ; n="standard 64bit unixish" ;; -    124/448)     ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;; -    124/*)       ac_cv_data_model="i32"   ; n="unusual int32 model" ;; -    128/888)     ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;; -    128/*)       ac_cv_data_model="i64"   ; n="unusual int64 model" ;; -    222/*2)      ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;; -    333/*3)      ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;; -    444/*4)      ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;; -    666/*6)      ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;; -    888/*8)      ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;; -    222/*|333/*|444/*|666/*|888/*) : -                 ac_cv_data_model="iDSP"  ; n="unusual dsptype" ;; -     *)          ac_cv_data_model="none"  ; n="very unusual model" ;; -   esac -   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5 -$as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; } - -fi - -if test "_$ac_cv_header_stdint_x" != "_" ; then -   ac_cv_header_stdint="$ac_cv_header_stdint_x" -elif  test "_$ac_cv_header_stdint_o" != "_" ; then -   ac_cv_header_stdint="$ac_cv_header_stdint_o" -elif  test "_$ac_cv_header_stdint_u" != "_" ; then -   ac_cv_header_stdint="$ac_cv_header_stdint_u" -else -   ac_cv_header_stdint="stddef.h" -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5 -$as_echo_n "checking for extra inttypes in chosen header... " >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5 -$as_echo "($ac_cv_header_stdint)" >&6; } -unset ac_cv_type_int_least32_t -unset ac_cv_type_int_fast32_t -ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint> -" -if test "x$ac_cv_type_int_least32_t" = xyes; then : - -fi - -ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint> -" -if test "x$ac_cv_type_int_fast32_t" = xyes; then : - -fi - -ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint> -" -if test "x$ac_cv_type_intmax_t" = xyes; then : - -fi - - -fi # shortcircut to system "stdint.h" -# ------------------ PREPARE VARIABLES ------------------------------ -if test "$GCC" = "yes" ; then -ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1` -else -ac_cv_stdint_message="using $CC" -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5 -$as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; } - -# ----------------- DONE inttypes.h checks START header ------------- -ac_config_commands="$ac_config_commands $ac_stdint_h" - - - -# Check whether --enable-dynamic was given. -if test "${enable_dynamic+set}" = set; then : -  enableval=$enable_dynamic; enable_dynamic=$enableval -else -  enable_dynamic=auto -fi - - -    DL_LIBS="" -  if test "${enable_dynamic}" = "auto"; then -      # default to disabled unless library found. -      enable_dynamic=no -      # dlopen -      for ac_header in dlfcn.h -do : -  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" -if test "x$ac_cv_header_dlfcn_h" = xyes; then : -  cat >>confdefs.h <<_ACEOF -#define HAVE_DLFCN_H 1 -_ACEOF - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 -$as_echo_n "checking for dlopen in -ldl... " >&6; } -if ${ac_cv_lib_dl_dlopen+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  ac_check_lib_save_LIBS=$LIBS -LIBS="-ldl  $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -/* Override any GCC internal prototype to avoid an error. -   Use char because int might match the return type of a GCC -   builtin and then its argument prototype would still apply.  */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -int -main () -{ -return dlopen (); -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : -  ac_cv_lib_dl_dlopen=yes -else -  ac_cv_lib_dl_dlopen=no -fi -rm -f core conftest.err conftest.$ac_objext \ -    conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 -$as_echo "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = xyes; then : -  DL_LIBS=-ldl -fi - -       saved_LIBS="${LIBS}" -       LIBS="${LIBS} ${DL_LIBS}" -       for ac_func in dlopen -do : -  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" -if test "x$ac_cv_func_dlopen" = xyes; then : -  cat >>confdefs.h <<_ACEOF -#define HAVE_DLOPEN 1 -_ACEOF - enable_dynamic=yes -fi -done - -       LIBS="${saved_LIBS}" - -fi - -done - -      # HP/UX DLL handling -      for ac_header in dl.h -do : -  ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default" -if test "x$ac_cv_header_dl_h" = xyes; then : -  cat >>confdefs.h <<_ACEOF -#define HAVE_DL_H 1 -_ACEOF - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 -$as_echo_n "checking for shl_load in -ldld... " >&6; } -if ${ac_cv_lib_dld_shl_load+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  ac_check_lib_save_LIBS=$LIBS -LIBS="-ldld  $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -/* Override any GCC internal prototype to avoid an error. -   Use char because int might match the return type of a GCC -   builtin and then its argument prototype would still apply.  */ -#ifdef __cplusplus -extern "C" -#endif -char shl_load (); -int -main () -{ -return shl_load (); -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : -  ac_cv_lib_dld_shl_load=yes -else -  ac_cv_lib_dld_shl_load=no -fi -rm -f core conftest.err conftest.$ac_objext \ -    conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 -$as_echo "$ac_cv_lib_dld_shl_load" >&6; } -if test "x$ac_cv_lib_dld_shl_load" = xyes; then : -  DL_LIBS=-ldld -fi - -       saved_LIBS="${LIBS}" -       LIBS="${LIBS} ${DL_LIBS}" -       for ac_func in shl_load -do : -  ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" -if test "x$ac_cv_func_shl_load" = xyes; then : -  cat >>confdefs.h <<_ACEOF -#define HAVE_SHL_LOAD 1 -_ACEOF - enable_dynamic=yes -fi -done - -       LIBS="${saved_LIBS}" - -fi - -done - -      if test -z "$DL_LIBS" ; then -      # old Mac OS X/Darwin (without dlopen) -      for ac_header in mach-o/dyld.h -do : -  ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default" -if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then : -  cat >>confdefs.h <<_ACEOF -#define HAVE_MACH_O_DYLD_H 1 -_ACEOF - for ac_func in NSLinkModule -do : -  ac_fn_c_check_func "$LINENO" "NSLinkModule" "ac_cv_func_NSLinkModule" -if test "x$ac_cv_func_NSLinkModule" = xyes; then : -  cat >>confdefs.h <<_ACEOF -#define HAVE_NSLINKMODULE 1 -_ACEOF - enable_dynamic=yes -fi -done - - -fi - -done - -      fi -  fi - - -  DYNAMIC_FLAG= -  if test "${enable_dynamic}" = yes ; then -    DYNAMIC_FLAG=-module -  fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 -$as_echo_n "checking for sqrt in -lm... " >&6; } -if ${ac_cv_lib_m_sqrt+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  ac_check_lib_save_LIBS=$LIBS -LIBS="-lm  $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -/* Override any GCC internal prototype to avoid an error. -   Use char because int might match the return type of a GCC -   builtin and then its argument prototype would still apply.  */ -#ifdef __cplusplus -extern "C" -#endif -char sqrt (); -int -main () -{ -return sqrt (); -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : -  ac_cv_lib_m_sqrt=yes -else -  ac_cv_lib_m_sqrt=no -fi -rm -f core conftest.err conftest.$ac_objext \ -    conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 -$as_echo "$ac_cv_lib_m_sqrt" >&6; } -if test "x$ac_cv_lib_m_sqrt" = xyes; then : -  MATH_LIB="-lm" -fi - - -case ${host_os} in -  os2*) -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sylog in -lsyslog" >&5 -$as_echo_n "checking for sylog in -lsyslog... " >&6; } -if ${ac_cv_lib_syslog_sylog+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  ac_check_lib_save_LIBS=$LIBS -LIBS="-lsyslog  $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -/* Override any GCC internal prototype to avoid an error. -   Use char because int might match the return type of a GCC -   builtin and then its argument prototype would still apply.  */ -#ifdef __cplusplus -extern "C" -#endif -char sylog (); -int -main () -{ -return sylog (); -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : -  ac_cv_lib_syslog_sylog=yes -else -  ac_cv_lib_syslog_sylog=no -fi -rm -f core conftest.err conftest.$ac_objext \ -    conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_syslog_sylog" >&5 -$as_echo "$ac_cv_lib_syslog_sylog" >&6; } -if test "x$ac_cv_lib_syslog_sylog" = xyes; then : -  SYSLOG_LIBS="-lsyslog" -fi - -  ;; -  beos*) -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -lbe" >&5 -$as_echo_n "checking for syslog in -lbe... " >&6; } -if ${ac_cv_lib_be_syslog+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  ac_check_lib_save_LIBS=$LIBS -LIBS="-lbe  $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -/* Override any GCC internal prototype to avoid an error. -   Use char because int might match the return type of a GCC -   builtin and then its argument prototype would still apply.  */ -#ifdef __cplusplus -extern "C" -#endif -char syslog (); -int -main () -{ -return syslog (); -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : -  ac_cv_lib_be_syslog=yes -else -  ac_cv_lib_be_syslog=no -fi -rm -f core conftest.err conftest.$ac_objext \ -    conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_be_syslog" >&5 -$as_echo "$ac_cv_lib_be_syslog" >&6; } -if test "x$ac_cv_lib_be_syslog" = xyes; then : -  SYSLOG_LIBS="-lbe" -fi - -  ;; -esac - - - -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_start_decompress in -ljpeg" >&5 -$as_echo_n "checking for jpeg_start_decompress in -ljpeg... " >&6; } -if ${ac_cv_lib_jpeg_jpeg_start_decompress+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  ac_check_lib_save_LIBS=$LIBS -LIBS="-ljpeg  $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -/* Override any GCC internal prototype to avoid an error. -   Use char because int might match the return type of a GCC -   builtin and then its argument prototype would still apply.  */ -#ifdef __cplusplus -extern "C" -#endif -char jpeg_start_decompress (); -int -main () -{ -return jpeg_start_decompress (); -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : -  ac_cv_lib_jpeg_jpeg_start_decompress=yes -else -  ac_cv_lib_jpeg_jpeg_start_decompress=no -fi -rm -f core conftest.err conftest.$ac_objext \ -    conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5 -$as_echo "$ac_cv_lib_jpeg_jpeg_start_decompress" >&6; } -if test "x$ac_cv_lib_jpeg_jpeg_start_decompress" = xyes; then : - -    ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default" -if test "x$ac_cv_header_jconfig_h" = xyes; then : - -      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeglib - version >= 61 (6a)" >&5 -$as_echo_n "checking for jpeglib - version >= 61 (6a)... " >&6; } -      cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -        #include <jpeglib.h> -        #if JPEG_LIB_VERSION >= 61 -          sane_correct_jpeg_lib_version_found -        #endif - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | -  $EGREP "sane_correct_jpeg_lib_version_found" >/dev/null 2>&1; then : -  sane_cv_use_libjpeg="yes"; JPEG_LIBS="-ljpeg"; -      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi -rm -f conftest* - - -fi - - - -fi - -  if test "$sane_cv_use_libjpeg" = "yes" ; then - -$as_echo "#define HAVE_LIBJPEG 1" >>confdefs.h - -  fi - - - -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFFdOpen in -ltiff" >&5 -$as_echo_n "checking for TIFFFdOpen in -ltiff... " >&6; } -if ${ac_cv_lib_tiff_TIFFFdOpen+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  ac_check_lib_save_LIBS=$LIBS -LIBS="-ltiff  $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -/* Override any GCC internal prototype to avoid an error. -   Use char because int might match the return type of a GCC -   builtin and then its argument prototype would still apply.  */ -#ifdef __cplusplus -extern "C" -#endif -char TIFFFdOpen (); -int -main () -{ -return TIFFFdOpen (); -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : -  ac_cv_lib_tiff_TIFFFdOpen=yes -else -  ac_cv_lib_tiff_TIFFFdOpen=no -fi -rm -f core conftest.err conftest.$ac_objext \ -    conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFFdOpen" >&5 -$as_echo "$ac_cv_lib_tiff_TIFFFdOpen" >&6; } -if test "x$ac_cv_lib_tiff_TIFFFdOpen" = xyes; then : - -    ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" -if test "x$ac_cv_header_tiffio_h" = xyes; then : -  sane_cv_use_libtiff="yes"; TIFF_LIBS="-ltiff" -fi - - - -fi - - - - -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_init_io in -lpng" >&5 -$as_echo_n "checking for png_init_io in -lpng... " >&6; } -if ${ac_cv_lib_png_png_init_io+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  ac_check_lib_save_LIBS=$LIBS -LIBS="-lpng  $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -/* Override any GCC internal prototype to avoid an error. -   Use char because int might match the return type of a GCC -   builtin and then its argument prototype would still apply.  */ -#ifdef __cplusplus -extern "C" -#endif -char png_init_io (); -int -main () -{ -return png_init_io (); -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : -  ac_cv_lib_png_png_init_io=yes -else -  ac_cv_lib_png_png_init_io=no -fi -rm -f core conftest.err conftest.$ac_objext \ -    conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_init_io" >&5 -$as_echo "$ac_cv_lib_png_png_init_io" >&6; } -if test "x$ac_cv_lib_png_png_init_io" = xyes; then : - -    ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default" -if test "x$ac_cv_header_png_h" = xyes; then : -  sane_cv_use_libpng="yes"; PNG_LIBS="-lpng" -fi - - - -fi - -  if test "$sane_cv_use_libpng" = "yes" ; then - -$as_echo "#define HAVE_LIBPNG 1" >>confdefs.h - -  fi - - - -  ac_fn_c_check_header_mongrel "$LINENO" "ieee1284.h" "ac_cv_header_ieee1284_h" "$ac_includes_default" -if test "x$ac_cv_header_ieee1284_h" = xyes; then : - -    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libieee1284 >= 0.1.5" >&5 -$as_echo_n "checking for libieee1284 >= 0.1.5... " >&6; } -if ${sane_cv_use_libieee1284+:} false; then : -  $as_echo_n "(cached) " >&6 -else - -      cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ -#include <ieee1284.h> -int -main () -{ - -	struct parport p; char *buf; -	ieee1284_nibble_read(&p, 0, buf, 1); - -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : -  sane_cv_use_libieee1284="yes"; IEEE1284_LIBS="-lieee1284" - -else -  sane_cv_use_libieee1284="no" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_cv_use_libieee1284" >&5 -$as_echo "$sane_cv_use_libieee1284" >&6; } - -fi - - -  if test "$sane_cv_use_libieee1284" = "yes" ; then - -$as_echo "#define HAVE_LIBIEEE1284 1" >>confdefs.h - -  fi - - - - -  case "${host_os}" in -  linux* | darwin* | mingw*) # enabled by default on Linux, MacOS X and MINGW -    use_pthread=yes -    ;; -  *) -    use_pthread=no -  esac -  have_pthread=no - -  # -  # now that we have the systems preferences, we check -  # the user - -  # Check whether --enable-pthread was given. -if test "${enable_pthread+set}" = set; then : -  enableval=$enable_pthread; -      if test $enableval = yes ; then -        use_pthread=yes -      else -        use_pthread=no -      fi - -fi - - -  if test $use_pthread = yes ; then -  for ac_header in pthread.h -do : -  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" -if test "x$ac_cv_header_pthread_h" = xyes; then : -  cat >>confdefs.h <<_ACEOF -#define HAVE_PTHREAD_H 1 -_ACEOF - -       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 -$as_echo_n "checking for pthread_create in -lpthread... " >&6; } -if ${ac_cv_lib_pthread_pthread_create+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  ac_check_lib_save_LIBS=$LIBS -LIBS="-lpthread  $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -/* Override any GCC internal prototype to avoid an error. -   Use char because int might match the return type of a GCC -   builtin and then its argument prototype would still apply.  */ -#ifdef __cplusplus -extern "C" -#endif -char pthread_create (); -int -main () -{ -return pthread_create (); -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : -  ac_cv_lib_pthread_pthread_create=yes -else -  ac_cv_lib_pthread_pthread_create=no -fi -rm -f core conftest.err conftest.$ac_objext \ -    conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 -$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } -if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : -  PTHREAD_LIBS="-lpthread" -fi - -       have_pthread=yes -       save_LIBS="$LIBS" -       LIBS="$LIBS $PTHREAD_LIBS" -       for ac_func in pthread_create pthread_kill pthread_join pthread_detach pthread_cancel pthread_testcancel -do : -  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : -  cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -else -   have_pthread=no; use_pthread=no -fi -done - -       LIBS="$save_LIBS" - -fi - -done - -  fi - -  if test $use_pthread = yes ; then - -cat >>confdefs.h <<_ACEOF -#define USE_PTHREAD "$use_pthread" -_ACEOF - -  else -        PTHREAD_LIBS="" -  fi -  if test "$have_pthread" = "yes" ; then -    CPPFLAGS="${CPPFLAGS} -D_REENTRANT" -  fi - -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable pthread support" >&5 -$as_echo_n "checking whether to enable pthread support... " >&6; } -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5 -$as_echo "$have_pthread" >&6; } -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use pthread instead of fork" >&5 -$as_echo_n "checking whether to use pthread instead of fork... " >&6; } -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthread" >&5 -$as_echo "$use_pthread" >&6; } - - -  LOCKPATH_GROUP=uucp -  use_locking=yes -  case "${host_os}" in -    os2* ) -      use_locking=no -      ;; -  esac - -  # -  # we check the user -  # Check whether --enable-locking was given. -if test "${enable_locking+set}" = set; then : -  enableval=$enable_locking; -      if test $enableval = yes ; then -        use_locking=yes -      else -        use_locking=no -      fi - -fi - -  if test $use_locking = yes ; then - -# Check whether --with-group was given. -if test "${with_group+set}" = set; then : -  withval=$with_group; LOCKPATH_GROUP="$withval" - -fi - -    # check if the group does exist -    lasterror="" -    touch sanetest.file -    chgrp $LOCKPATH_GROUP sanetest.file 2>/dev/null || lasterror=$? -    rm -f sanetest.file -    if test ! -z "$lasterror"; then -      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Group $LOCKPATH_GROUP does not exist on this system." >&5 -$as_echo "$as_me: WARNING: Group $LOCKPATH_GROUP does not exist on this system." >&2;} -      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Locking feature will be disabled." >&5 -$as_echo "$as_me: WARNING: Locking feature will be disabled." >&2;} -      use_locking=no -    fi -  fi -  if test $use_locking = yes ; then -    INSTALL_LOCKPATH=install-lockpath - -$as_echo "#define ENABLE_LOCKING 1" >>confdefs.h - -  else -    INSTALL_LOCKPATH= -  fi -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable device locking" >&5 -$as_echo_n "checking whether to enable device locking... " >&6; } -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_locking" >&5 -$as_echo "$use_locking" >&6; } -  if test $use_locking = yes ; then -    { $as_echo "$as_me:${as_lineno-$LINENO}: Setting lockdir group to $LOCKPATH_GROUP" >&5 -$as_echo "$as_me: Setting lockdir group to $LOCKPATH_GROUP" >&6;} -  fi - - - - - -# Check whether --with-gphoto2 was given. -if test "${with_gphoto2+set}" = set; then : -  withval=$with_gphoto2; # If --with-gphoto2=no or --without-gphoto2, disable backend -               # as "$with_gphoto2" will be set to "no" -fi - - -  # If --with-gphoto2=yes (or not supplied), first check if -  # pkg-config exists, then use it to check if libgphoto2 is -  # present.  If all that works, then see if we can actually link -  # a program.   And, if that works, then add the -l flags to -  # GPHOTO2_LIBS and any other flags to GPHOTO2_LDFLAGS to pass to -  # sane-config. -  if test "$with_gphoto2" != "no" ; then -    if test -n "$ac_tool_prefix"; then -  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. -set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 +    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5  $as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_HAVE_GPHOTO2+:} false; then : +if ${ac_cv_prog_AR+:} false; then :    $as_echo_n "(cached) " >&6  else -  if test -n "$HAVE_GPHOTO2"; then -  ac_cv_prog_HAVE_GPHOTO2="$HAVE_GPHOTO2" # Let the user override the test. +  if test -n "$AR"; then +  ac_cv_prog_AR="$AR" # Let the user override the test.  else  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR  for as_dir in $PATH @@ -7560,7 +5145,7 @@ do    test -z "$as_dir" && as_dir=.      for ac_exec_ext in '' $ac_executable_extensions; do    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then -    ac_cv_prog_HAVE_GPHOTO2="${ac_tool_prefix}pkg-config" +    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5      break 2    fi @@ -7570,28 +5155,32 @@ IFS=$as_save_IFS  fi  fi -HAVE_GPHOTO2=$ac_cv_prog_HAVE_GPHOTO2 -if test -n "$HAVE_GPHOTO2"; then -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GPHOTO2" >&5 -$as_echo "$HAVE_GPHOTO2" >&6; } +AR=$ac_cv_prog_AR +if test -n "$AR"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +$as_echo "$AR" >&6; }  else    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5  $as_echo "no" >&6; }  fi +    test -n "$AR" && break +  done  fi -if test -z "$ac_cv_prog_HAVE_GPHOTO2"; then -  ac_ct_HAVE_GPHOTO2=$HAVE_GPHOTO2 -  # Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-config; ac_word=$2 +if test -z "$AR"; then +  ac_ct_AR=$AR +  for ac_prog in ar lib "link -lib" +do +  # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5  $as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_HAVE_GPHOTO2+:} false; then : +if ${ac_cv_prog_ac_ct_AR+:} false; then :    $as_echo_n "(cached) " >&6  else -  if test -n "$ac_ct_HAVE_GPHOTO2"; then -  ac_cv_prog_ac_ct_HAVE_GPHOTO2="$ac_ct_HAVE_GPHOTO2" # Let the user override the test. +  if test -n "$ac_ct_AR"; then +  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.  else  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR  for as_dir in $PATH @@ -7600,7 +5189,7 @@ do    test -z "$as_dir" && as_dir=.      for ac_exec_ext in '' $ac_executable_extensions; do    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then -    ac_cv_prog_ac_ct_HAVE_GPHOTO2="pkg-config" +    ac_cv_prog_ac_ct_AR="$ac_prog"      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5      break 2    fi @@ -7610,17 +5199,21 @@ IFS=$as_save_IFS  fi  fi -ac_ct_HAVE_GPHOTO2=$ac_cv_prog_ac_ct_HAVE_GPHOTO2 -if test -n "$ac_ct_HAVE_GPHOTO2"; then -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_HAVE_GPHOTO2" >&5 -$as_echo "$ac_ct_HAVE_GPHOTO2" >&6; } +ac_ct_AR=$ac_cv_prog_ac_ct_AR +if test -n "$ac_ct_AR"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +$as_echo "$ac_ct_AR" >&6; }  else    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5  $as_echo "no" >&6; }  fi -  if test "x$ac_ct_HAVE_GPHOTO2" = x; then -    HAVE_GPHOTO2="false" + +  test -n "$ac_ct_AR" && break +done + +  if test "x$ac_ct_AR" = x; then +    AR="false"    else      case $cross_compiling:$ac_tool_warned in  yes:) @@ -7628,3347 +5221,177 @@ yes:)  $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}  ac_tool_warned=yes ;;  esac -    HAVE_GPHOTO2=$ac_ct_HAVE_GPHOTO2 -  fi -else -  HAVE_GPHOTO2="$ac_cv_prog_HAVE_GPHOTO2" -fi - - -    if test ${HAVE_GPHOTO2} != "false" ; then -      if pkg-config --exists libgphoto2 ; then -        with_gphoto2="`pkg-config --modversion libgphoto2`" -	GPHOTO2_CPPFLAGS="`pkg-config --cflags libgphoto2`" -        GPHOTO2_LIBS="`pkg-config --libs libgphoto2`" - -        saved_CPPFLAGS="${CPPFLAGS}" -        CPPFLAGS="${GPHOTO2_CPPFLAGS}" -	saved_LIBS="${LIBS}" -	LIBS="${LIBS} ${GPHOTO2_LIBS}" - 	# Make sure we an really use the library -        for ac_func in gp_camera_init -do : -  ac_fn_c_check_func "$LINENO" "gp_camera_init" "ac_cv_func_gp_camera_init" -if test "x$ac_cv_func_gp_camera_init" = xyes; then : -  cat >>confdefs.h <<_ACEOF -#define HAVE_GP_CAMERA_INIT 1 -_ACEOF - HAVE_GPHOTO2=true -else -  HAVE_GPHOTO2=false -fi -done - -	if test "${HAVE_GPHOTO2}" = "true"; then -	  for ac_func in gp_port_info_get_path -do : -  ac_fn_c_check_func "$LINENO" "gp_port_info_get_path" "ac_cv_func_gp_port_info_get_path" -if test "x$ac_cv_func_gp_port_info_get_path" = xyes; then : -  cat >>confdefs.h <<_ACEOF -#define HAVE_GP_PORT_INFO_GET_PATH 1 -_ACEOF - -fi -done - -	fi -	CPPFLAGS="${saved_CPPFLAGS}" -        LIBS="${saved_LIBS}" -      else -        HAVE_GPHOTO2=false -      fi -      if test "${HAVE_GPHOTO2}" = "false"; then -        GPHOTO2_CPPFLAGS="" -        GPHOTO2_LIBS="" -      else - -    tmp_LIBS="" -    for param in ${GPHOTO2_LIBS}; do -        case "${param}" in -	-l*) -         tmp_LIBS="${tmp_LIBS} ${param}" -	 ;; -	 *) -         GPHOTO2_LDFLAGS="${GPHOTO2_LDFLAGS} ${param}" -	 ;; -	 esac -     done -     GPHOTO2_LIBS="${tmp_LIBS}" -     unset tmp_LIBS -     unset param - -      fi -    fi -  fi - - - - - - - -# Check whether --with-v4l was given. -if test "${with_v4l+set}" = set; then : -  withval=$with_v4l; # If --with-v4l=no or --without-v4l, disable backend -             # as "$with_v4l" will be set to "no" -fi - - -if test "$with_v4l" != "no" ; then - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBV4L" >&5 -$as_echo_n "checking for LIBV4L... " >&6; } - -if test -n "$LIBV4L_CFLAGS"; then -    pkg_cv_LIBV4L_CFLAGS="$LIBV4L_CFLAGS" - elif test -n "$PKG_CONFIG"; then -    if test -n "$PKG_CONFIG" && \ -    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libv4l1\""; } >&5 -  ($PKG_CONFIG --exists --print-errors "libv4l1") 2>&5 -  ac_status=$? -  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 -  test $ac_status = 0; }; then -  pkg_cv_LIBV4L_CFLAGS=`$PKG_CONFIG --cflags "libv4l1" 2>/dev/null` -		      test "x$?" != "x0" && pkg_failed=yes -else -  pkg_failed=yes -fi - else -    pkg_failed=untried -fi -if test -n "$LIBV4L_LIBS"; then -    pkg_cv_LIBV4L_LIBS="$LIBV4L_LIBS" - elif test -n "$PKG_CONFIG"; then -    if test -n "$PKG_CONFIG" && \ -    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libv4l1\""; } >&5 -  ($PKG_CONFIG --exists --print-errors "libv4l1") 2>&5 -  ac_status=$? -  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 -  test $ac_status = 0; }; then -  pkg_cv_LIBV4L_LIBS=`$PKG_CONFIG --libs "libv4l1" 2>/dev/null` -		      test "x$?" != "x0" && pkg_failed=yes -else -  pkg_failed=yes -fi - else -    pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then -   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then -        _pkg_short_errors_supported=yes -else -        _pkg_short_errors_supported=no -fi -        if test $_pkg_short_errors_supported = yes; then -	        LIBV4L_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libv4l1" 2>&1` -        else -	        LIBV4L_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libv4l1" 2>&1` -        fi -	# Put the nasty error message in config.log where it belongs -	echo "$LIBV4L_PKG_ERRORS" >&5 - -	have_libv4l1=no -elif test $pkg_failed = untried; then -     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -	have_libv4l1=no -else -	LIBV4L_CFLAGS=$pkg_cv_LIBV4L_CFLAGS -	LIBV4L_LIBS=$pkg_cv_LIBV4L_LIBS -        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -	have_libv4l1=yes -fi -fi - -# Check whether --enable-avahi was given. -if test "${enable_avahi+set}" = set; then : -  enableval=$enable_avahi; enable_avahi=$enableval -else -  enable_avahi=no -fi - - -if test "$enable_avahi" = "yes"; then - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVAHI" >&5 -$as_echo_n "checking for AVAHI... " >&6; } - -if test -n "$AVAHI_CFLAGS"; then -    pkg_cv_AVAHI_CFLAGS="$AVAHI_CFLAGS" - elif test -n "$PKG_CONFIG"; then -    if test -n "$PKG_CONFIG" && \ -    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" avahi-client >= 0.6.24 \""; } >&5 -  ($PKG_CONFIG --exists --print-errors " avahi-client >= 0.6.24 ") 2>&5 -  ac_status=$? -  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 -  test $ac_status = 0; }; then -  pkg_cv_AVAHI_CFLAGS=`$PKG_CONFIG --cflags " avahi-client >= 0.6.24 " 2>/dev/null` -		      test "x$?" != "x0" && pkg_failed=yes -else -  pkg_failed=yes -fi - else -    pkg_failed=untried -fi -if test -n "$AVAHI_LIBS"; then -    pkg_cv_AVAHI_LIBS="$AVAHI_LIBS" - elif test -n "$PKG_CONFIG"; then -    if test -n "$PKG_CONFIG" && \ -    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" avahi-client >= 0.6.24 \""; } >&5 -  ($PKG_CONFIG --exists --print-errors " avahi-client >= 0.6.24 ") 2>&5 -  ac_status=$? -  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 -  test $ac_status = 0; }; then -  pkg_cv_AVAHI_LIBS=`$PKG_CONFIG --libs " avahi-client >= 0.6.24 " 2>/dev/null` -		      test "x$?" != "x0" && pkg_failed=yes -else -  pkg_failed=yes -fi - else -    pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then -   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then -        _pkg_short_errors_supported=yes -else -        _pkg_short_errors_supported=no -fi -        if test $_pkg_short_errors_supported = yes; then -	        AVAHI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " avahi-client >= 0.6.24 " 2>&1` -        else -	        AVAHI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " avahi-client >= 0.6.24 " 2>&1` -        fi -	# Put the nasty error message in config.log where it belongs -	echo "$AVAHI_PKG_ERRORS" >&5 - -	enable_avahi=no -elif test $pkg_failed = untried; then -     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -	enable_avahi=no -else -	AVAHI_CFLAGS=$pkg_cv_AVAHI_CFLAGS -	AVAHI_LIBS=$pkg_cv_AVAHI_LIBS -        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -$as_echo "#define WITH_AVAHI 1" >>confdefs.h - -fi -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sane_init in -lsane" >&5 -$as_echo_n "checking for sane_init in -lsane... " >&6; } -if ${ac_cv_lib_sane_sane_init+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  ac_check_lib_save_LIBS=$LIBS -LIBS="-lsane  $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -/* Override any GCC internal prototype to avoid an error. -   Use char because int might match the return type of a GCC -   builtin and then its argument prototype would still apply.  */ -#ifdef __cplusplus -extern "C" -#endif -char sane_init (); -int -main () -{ -return sane_init (); -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : -  ac_cv_lib_sane_sane_init=yes -else -  ac_cv_lib_sane_sane_init=no -fi -rm -f core conftest.err conftest.$ac_objext \ -    conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sane_sane_init" >&5 -$as_echo "$ac_cv_lib_sane_sane_init" >&6; } -if test "x$ac_cv_lib_sane_sane_init" = xyes; then : -  LIBSANE_EXISTS="yes" -fi - - - - - -# Check whether --with-snmp was given. -if test "${with_snmp+set}" = set; then : -  withval=$with_snmp; -fi - - -if test "$with_snmp" = "no"; then -	echo "Not including SNMP support" -else -	# Extract the first word of "net-snmp-config", so it can be a program name with args. -set dummy net-snmp-config; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_SNMP_CONFIG_PATH+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  case $SNMP_CONFIG_PATH in -  [\\/]* | ?:[\\/]*) -  ac_cv_path_SNMP_CONFIG_PATH="$SNMP_CONFIG_PATH" # Let the user override the test with a path. -  ;; -  *) -  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do -  IFS=$as_save_IFS -  test -z "$as_dir" && as_dir=. -    for ac_exec_ext in '' $ac_executable_extensions; do -  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then -    ac_cv_path_SNMP_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext" -    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 -    break 2 -  fi -done -  done -IFS=$as_save_IFS - -  test -z "$ac_cv_path_SNMP_CONFIG_PATH" && ac_cv_path_SNMP_CONFIG_PATH=""no"" -  ;; -esac -fi -SNMP_CONFIG_PATH=$ac_cv_path_SNMP_CONFIG_PATH -if test -n "$SNMP_CONFIG_PATH"; then -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMP_CONFIG_PATH" >&5 -$as_echo "$SNMP_CONFIG_PATH" >&6; } -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for snmp_timeout in -lnetsnmp" >&5 -$as_echo_n "checking for snmp_timeout in -lnetsnmp... " >&6; } -if ${ac_cv_lib_netsnmp_snmp_timeout+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  ac_check_lib_save_LIBS=$LIBS -LIBS="-lnetsnmp  $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -/* Override any GCC internal prototype to avoid an error. -   Use char because int might match the return type of a GCC -   builtin and then its argument prototype would still apply.  */ -#ifdef __cplusplus -extern "C" -#endif -char snmp_timeout (); -int -main () -{ -return snmp_timeout (); -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : -  ac_cv_lib_netsnmp_snmp_timeout=yes -else -  ac_cv_lib_netsnmp_snmp_timeout=no -fi -rm -f core conftest.err conftest.$ac_objext \ -    conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_snmp_timeout" >&5 -$as_echo "$ac_cv_lib_netsnmp_snmp_timeout" >&6; } -if test "x$ac_cv_lib_netsnmp_snmp_timeout" = xyes; then : -  LIBSNMP_EXISTS="yes" -fi - -	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for proper SNMP version" >&5 -$as_echo_n "checking for proper SNMP version... " >&6; } -	if test "$SNMP_CONFIG_PATH" != "no" ; then -		snmp_version=`$SNMP_CONFIG_PATH --version 2>/dev/null` -		vers=`echo $snmp_version | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2);}'` -		if test -n "$vers" && test "$vers" -ge 5006; then -			SNMP_LIBS=`$SNMP_CONFIG_PATH --libs` -			SNMP_CFLAGS=`$SNMP_CONFIG_PATH --cflags` -			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -			with_snmp="yes" -		else -			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need at least net-snmp 5.6, your version is $snmp_version" >&5 -$as_echo "$as_me: WARNING: You need at least net-snmp 5.6, your version is $snmp_version" >&2;} -			with_snmp="no" -		fi -	else -		with_snmp="no" -		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -	fi -fi - -if test "$with_snmp" = "yes" -a "${LIBSNMP_EXISTS}x" = "yesx"; then - - - -$as_echo "#define HAVE_LIBSNMP 1" >>confdefs.h - -else -	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Warning: net-snmp library disabled, autodetecting network scanners will not be supported." >&5 -$as_echo "$as_me: WARNING: *** Warning: net-snmp library disabled, autodetecting network scanners will not be supported." >&2;} -fi - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 -$as_echo_n "checking for ANSI C header files... " >&6; } -if ${ac_cv_header_stdc+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ -#include <stdlib.h> -#include <stdarg.h> -#include <string.h> -#include <float.h> - -int -main () -{ - -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : -  ac_cv_header_stdc=yes -else -  ac_cv_header_stdc=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -if test $ac_cv_header_stdc = yes; then -  # SunOS 4.x string.h does not declare mem*, contrary to ANSI. -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ -#include <string.h> - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | -  $EGREP "memchr" >/dev/null 2>&1; then : - -else -  ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then -  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ -#include <stdlib.h> - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | -  $EGREP "free" >/dev/null 2>&1; then : - -else -  ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then -  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. -  if test "$cross_compiling" = yes; then : -  : -else -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ -#include <ctype.h> -#include <stdlib.h> -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) \ -		   (('a' <= (c) && (c) <= 'i') \ -		     || ('j' <= (c) && (c) <= 'r') \ -		     || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -#endif - -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int -main () -{ -  int i; -  for (i = 0; i < 256; i++) -    if (XOR (islower (i), ISLOWER (i)) -	|| toupper (i) != TOUPPER (i)) -      return 2; -  return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - -else -  ac_cv_header_stdc=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ -  conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - -fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 -$as_echo "$ac_cv_header_stdc" >&6; } -if test $ac_cv_header_stdc = yes; then - -$as_echo "#define STDC_HEADERS 1" >>confdefs.h - -fi - -for ac_header in fcntl.h unistd.h libc.h sys/dsreq.h sys/select.h \ -    sys/time.h sys/shm.h sys/ipc.h sys/signal.h sys/scanio.h os2.h \ -    sys/socket.h sys/io.h sys/hw.h sys/types.h linux/ppdev.h \ -    dev/ppbus/ppi.h machine/cpufunc.h sys/bitypes.h sys/sem.h sys/poll.h \ -    windows.h be/kernel/OS.h limits.h sys/ioctl.h asm/types.h\ -    netinet/in.h tiffio.h ifaddrs.h pwd.h getopt.h -do : -  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : -  cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - -for ac_header in asm/io.h -do : -  ac_fn_c_check_header_compile "$LINENO" "asm/io.h" "ac_cv_header_asm_io_h" "#include <sys/types.h> -" -if test "x$ac_cv_header_asm_io_h" = xyes; then : -  cat >>confdefs.h <<_ACEOF -#define HAVE_ASM_IO_H 1 -_ACEOF - -fi - -done - - - -  MISSING_HEADERS= -  if test "${ac_cv_header_fcntl_h}" != "yes" ; then -    MISSING_HEADERS="${MISSING_HEADERS}\"fcntl.h\" " -  fi -  if test "${ac_cv_header_sys_time_h}" != "yes" ; then -    MISSING_HEADERS="${MISSING_HEADERS}\"sys/time.h\" " -  fi -  if test "${ac_cv_header_unistd_h}" != "yes" ; then -    MISSING_HEADERS="${MISSING_HEADERS}\"unistd.h\" " -  fi -  if test "${ac_cv_header_stdc}" != "yes" ; then -    MISSING_HEADERS="${MISSING_HEADERS}\"ANSI C headers\" " -  fi -  if test "${MISSING_HEADERS}" != "" ; then -    echo "*** The following essential header files couldn't be found:" -    echo "*** ${MISSING_HEADERS}" -    echo "*** Maybe the compiler isn't ANSI C compliant or not properly installed?" -    echo "*** For details on what went wrong see config.log." -    as_fn_error $? "Exiting now." "$LINENO" 5 +    AR=$ac_ct_AR    fi - - -for ac_header in winsock2.h -do : -  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" -if test "x$ac_cv_header_winsock2_h" = xyes; then : -  cat >>confdefs.h <<_ACEOF -#define HAVE_WINSOCK2_H 1 -_ACEOF - SOCKET_LIB="-lws2_32" -fi - -done - - -ac_fn_c_check_header_mongrel "$LINENO" "resmgr.h" "ac_cv_header_resmgr_h" "$ac_includes_default" -if test "x$ac_cv_header_resmgr_h" = xyes; then : - -	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rsm_open_device in -lresmgr" >&5 -$as_echo_n "checking for rsm_open_device in -lresmgr... " >&6; } -if ${ac_cv_lib_resmgr_rsm_open_device+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  ac_check_lib_save_LIBS=$LIBS -LIBS="-lresmgr  $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -/* Override any GCC internal prototype to avoid an error. -   Use char because int might match the return type of a GCC -   builtin and then its argument prototype would still apply.  */ -#ifdef __cplusplus -extern "C" -#endif -char rsm_open_device (); -int -main () -{ -return rsm_open_device (); -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : -  ac_cv_lib_resmgr_rsm_open_device=yes -else -  ac_cv_lib_resmgr_rsm_open_device=no -fi -rm -f core conftest.err conftest.$ac_objext \ -    conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resmgr_rsm_open_device" >&5 -$as_echo "$ac_cv_lib_resmgr_rsm_open_device" >&6; } -if test "x$ac_cv_lib_resmgr_rsm_open_device" = xyes; then : - - -$as_echo "#define HAVE_RESMGR 1" >>confdefs.h - -			RESMGR_LIBS="-lresmgr" - - -fi - - -fi - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 -$as_echo_n "checking return type of signal handlers... " >&6; } -if ${ac_cv_type_signal+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ -#include <sys/types.h> -#include <signal.h> - -int -main () -{ -return *(signal (0, 0)) (0) == 1; -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : -  ac_cv_type_signal=int -else -  ac_cv_type_signal=void -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 -$as_echo "$ac_cv_type_signal" >&6; } - -cat >>confdefs.h <<_ACEOF -#define RETSIGTYPE $ac_cv_type_signal -_ACEOF - - -ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" -if test "x$ac_cv_type_size_t" = xyes; then : - -else - -cat >>confdefs.h <<_ACEOF -#define size_t unsigned int -_ACEOF - -fi - -ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" -if test "x$ac_cv_type_pid_t" = xyes; then : - -else - -cat >>confdefs.h <<_ACEOF -#define pid_t int -_ACEOF - -fi - -ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" -if test "x$ac_cv_type_ssize_t" = xyes; then : - -else - -cat >>confdefs.h <<_ACEOF -#define ssize_t long -_ACEOF - -fi - - -ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "$ac_includes_default" -if test "x$ac_cv_type_u_char" = xyes; then : - -cat >>confdefs.h <<_ACEOF -#define HAVE_U_CHAR 1 -_ACEOF - - -fi -ac_fn_c_check_type "$LINENO" "u_short" "ac_cv_type_u_short" "$ac_includes_default" -if test "x$ac_cv_type_u_short" = xyes; then : - -cat >>confdefs.h <<_ACEOF -#define HAVE_U_SHORT 1 -_ACEOF - - -fi -ac_fn_c_check_type "$LINENO" "u_int" "ac_cv_type_u_int" "$ac_includes_default" -if test "x$ac_cv_type_u_int" = xyes; then : - -cat >>confdefs.h <<_ACEOF -#define HAVE_U_INT 1 -_ACEOF - - -fi -ac_fn_c_check_type "$LINENO" "u_long" "ac_cv_type_u_long" "$ac_includes_default" -if test "x$ac_cv_type_u_long" = xyes; then : - -cat >>confdefs.h <<_ACEOF -#define HAVE_U_LONG 1 -_ACEOF - - -fi - - - -# from Python, check for "long long" type -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5 -$as_echo_n "checking for long long support... " >&6; } -have_long_long=no -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -int -main () -{ -long long x; x = (long long)0; -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - -$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h - have_long_long=yes -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5 -$as_echo "$have_long_long" >&6; } - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in <sys/socket.h>" >&5 -$as_echo_n "checking for socklen_t in <sys/socket.h>... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -#include <sys/socket.h> - -int -main () -{ -socklen_t len -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; }; -$as_echo "#define socklen_t int" >>confdefs.h - -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for union semun in <sys/sem.h>" >&5 -$as_echo_n "checking for union semun in <sys/sem.h>... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -#include <sys/types.h> -#include <sys/ipc.h> -#include <sys/sem.h> - -int -main () -{ -union semun test_semun -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; }; - -$as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h - -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct flock in fcntl.h" >&5 -$as_echo_n "checking for struct flock in fcntl.h... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ -#include <fcntl.h> - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | -  $EGREP "struct flock" >/dev/null 2>&1; then : -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } ; - -$as_echo "#define HAVE_STRUCT_FLOCK 1" >>confdefs.h - -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi -rm -f conftest* - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux ioctl defines" >&5 -$as_echo_n "checking for Linux ioctl defines... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -#include <sys/ioctl.h> -#include <asm/types.h> - -int -main () -{ - -__u32 houba = _IOR('v',14, unsigned long); - -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; }; -have_linux_ioctl_defines="yes"; -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 -$as_echo_n "checking whether byte ordering is bigendian... " >&6; } -if ${ac_cv_c_bigendian+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  ac_cv_c_bigendian=unknown -    # See if we're dealing with a universal compiler. -    cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ -#ifndef __APPLE_CC__ -	       not a universal capable compiler -	     #endif -	     typedef int dummy; - -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - -	# Check for potential -arch flags.  It is not universal unless -	# there are at least two -arch flags with different values. -	ac_arch= -	ac_prev= -	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do -	 if test -n "$ac_prev"; then -	   case $ac_word in -	     i?86 | x86_64 | ppc | ppc64) -	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then -		 ac_arch=$ac_word -	       else -		 ac_cv_c_bigendian=universal -		 break -	       fi -	       ;; -	   esac -	   ac_prev= -	 elif test "x$ac_word" = "x-arch"; then -	   ac_prev=arch -	 fi -       done -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -    if test $ac_cv_c_bigendian = unknown; then -      # See if sys/param.h defines the BYTE_ORDER macro. -      cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ -#include <sys/types.h> -	     #include <sys/param.h> - -int -main () -{ -#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ -		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ -		     && LITTLE_ENDIAN) -	      bogus endian macros -	     #endif - -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : -  # It does; now see whether it defined to BIG_ENDIAN or not. -	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ -#include <sys/types.h> -		#include <sys/param.h> - -int -main () -{ -#if BYTE_ORDER != BIG_ENDIAN -		 not big endian -		#endif - -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : -  ac_cv_c_bigendian=yes -else -  ac_cv_c_bigendian=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -    fi -    if test $ac_cv_c_bigendian = unknown; then -      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). -      cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ -#include <limits.h> - -int -main () -{ -#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) -	      bogus endian macros -	     #endif - -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : -  # It does; now see whether it defined to _BIG_ENDIAN or not. -	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ -#include <limits.h> - -int -main () -{ -#ifndef _BIG_ENDIAN -		 not big endian -		#endif - -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : -  ac_cv_c_bigendian=yes -else -  ac_cv_c_bigendian=no  fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -    fi -    if test $ac_cv_c_bigendian = unknown; then -      # Compile a test program. -      if test "$cross_compiling" = yes; then : -  # Try to guess by grepping values from an object file. -	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ -short int ascii_mm[] = -		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; -		short int ascii_ii[] = -		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; -		int use_ascii (int i) { -		  return ascii_mm[i] + ascii_ii[i]; -		} -		short int ebcdic_ii[] = -		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; -		short int ebcdic_mm[] = -		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; -		int use_ebcdic (int i) { -		  return ebcdic_mm[i] + ebcdic_ii[i]; -		} -		extern int foo; - -int -main () -{ -return use_ascii (foo) == use_ebcdic (foo); -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : -  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then -	      ac_cv_c_bigendian=yes -	    fi -	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then -	      if test "$ac_cv_c_bigendian" = unknown; then -		ac_cv_c_bigendian=no -	      else -		# finding both strings is unlikely to happen, but who knows? -		ac_cv_c_bigendian=unknown -	      fi -	    fi -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -else -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ -$ac_includes_default -int -main () -{ -	     /* Are we little or big endian?  From Harbison&Steele.  */ -	     union -	     { -	       long int l; -	       char c[sizeof (long int)]; -	     } u; -	     u.l = 1; -	     return u.c[sizeof (long int) - 1] == 1; - -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : -  ac_cv_c_bigendian=no -else -  ac_cv_c_bigendian=yes -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ -  conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - -    fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 -$as_echo "$ac_cv_c_bigendian" >&6; } - case $ac_cv_c_bigendian in #( -   yes) -     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h -;; #( -   no) -      ;; #( -   universal) - -$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h - -     ;; #( -   *) -     as_fn_error $? "unknown endianness - presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; - esac +: ${AR=ar} -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 -$as_echo_n "checking for an ANSI C-conforming const... " >&6; } -if ${ac_cv_c_const+:} false; then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 +$as_echo_n "checking the archiver ($AR) interface... " >&6; } +if ${am_cv_ar_interface+:} false; then :    $as_echo_n "(cached) " >&6  else -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -int -main () -{ - -#ifndef __cplusplus -  /* Ultrix mips cc rejects this sort of thing.  */ -  typedef int charset[2]; -  const charset cs = { 0, 0 }; -  /* SunOS 4.1.1 cc rejects this.  */ -  char const *const *pcpcc; -  char **ppc; -  /* NEC SVR4.0.2 mips cc rejects this.  */ -  struct point {int x, y;}; -  static struct point const zero = {0,0}; -  /* AIX XL C 1.02.0.0 rejects this. -     It does not let you subtract one const X* pointer from another in -     an arm of an if-expression whose if-part is not a constant -     expression */ -  const char *g = "string"; -  pcpcc = &g + (g ? g-g : 0); -  /* HPUX 7.0 cc rejects these. */ -  ++pcpcc; -  ppc = (char**) pcpcc; -  pcpcc = (char const *const *) ppc; -  { /* SCO 3.2v4 cc rejects this sort of thing.  */ -    char tx; -    char *t = &tx; -    char const *s = 0 ? (char *) 0 : (char const *) 0; - -    *t++ = 0; -    if (s) return 0; -  } -  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ -    int x[] = {25, 17}; -    const int *foo = &x[0]; -    ++foo; -  } -  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ -    typedef const int *iptr; -    iptr p = 0; -    ++p; -  } -  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying -       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ -    struct s { int j; const int *ap[3]; } bx; -    struct s *b = &bx; b->j = 5; -  } -  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ -    const int foo = 10; -    if (!foo) return 0; -  } -  return !cs[0] && !zero.x; -#endif - -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : -  ac_cv_c_const=yes -else -  ac_cv_c_const=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 -$as_echo "$ac_cv_c_const" >&6; } -if test $ac_cv_c_const = no; then - -$as_echo "#define const /**/" >>confdefs.h - -fi +  ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 -$as_echo_n "checking for inline... " >&6; } -if ${ac_cv_c_inline+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  ac_cv_c_inline=no -for ac_kw in inline __inline__ __inline; do -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +   am_cv_ar_interface=ar +   cat confdefs.h - <<_ACEOF >conftest.$ac_ext  /* end confdefs.h.  */ -#ifndef __cplusplus -typedef int foo_t; -static $ac_kw foo_t static_foo () {return 0; } -$ac_kw foo_t foo () {return 0; } -#endif - +int some_variable = 0;  _ACEOF  if ac_fn_c_try_compile "$LINENO"; then : -  ac_cv_c_inline=$ac_kw -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -  test "$ac_cv_c_inline" != no && break -done - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 -$as_echo "$ac_cv_c_inline" >&6; } - -case $ac_cv_c_inline in -  inline | yes) ;; -  *) -    case $ac_cv_c_inline in -      no) ac_val=;; -      *) ac_val=$ac_cv_c_inline;; -    esac -    cat >>confdefs.h <<_ACEOF -#ifndef __cplusplus -#define inline $ac_val -#endif -_ACEOF -    ;; -esac - - - -ac_fn_c_check_func "$LINENO" "gethostbyaddr" "ac_cv_func_gethostbyaddr" -if test "x$ac_cv_func_gethostbyaddr" = xyes; then : - -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lbind" >&5 -$as_echo_n "checking for gethostbyaddr in -lbind... " >&6; } -if ${ac_cv_lib_bind_gethostbyaddr+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  ac_check_lib_save_LIBS=$LIBS -LIBS="-lbind  $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -/* Override any GCC internal prototype to avoid an error. -   Use char because int might match the return type of a GCC -   builtin and then its argument prototype would still apply.  */ -#ifdef __cplusplus -extern "C" -#endif -char gethostbyaddr (); -int -main () -{ -return gethostbyaddr (); -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : -  ac_cv_lib_bind_gethostbyaddr=yes -else -  ac_cv_lib_bind_gethostbyaddr=no -fi -rm -f core conftest.err conftest.$ac_objext \ -    conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_gethostbyaddr" >&5 -$as_echo "$ac_cv_lib_bind_gethostbyaddr" >&6; } -if test "x$ac_cv_lib_bind_gethostbyaddr" = xyes; then : -  BIND_LIB="-lbind" -fi - -fi - -ac_fn_c_check_func "$LINENO" "gethostbyaddr" "ac_cv_func_gethostbyaddr" -if test "x$ac_cv_func_gethostbyaddr" = xyes; then : - -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lnsl" >&5 -$as_echo_n "checking for gethostbyaddr in -lnsl... " >&6; } -if ${ac_cv_lib_nsl_gethostbyaddr+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  ac_check_lib_save_LIBS=$LIBS -LIBS="-lnsl  $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -/* Override any GCC internal prototype to avoid an error. -   Use char because int might match the return type of a GCC -   builtin and then its argument prototype would still apply.  */ -#ifdef __cplusplus -extern "C" -#endif -char gethostbyaddr (); -int -main () -{ -return gethostbyaddr (); -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : -  ac_cv_lib_nsl_gethostbyaddr=yes -else -  ac_cv_lib_nsl_gethostbyaddr=no -fi -rm -f core conftest.err conftest.$ac_objext \ -    conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyaddr" >&5 -$as_echo "$ac_cv_lib_nsl_gethostbyaddr" >&6; } -if test "x$ac_cv_lib_nsl_gethostbyaddr" = xyes; then : -  NSL_LIB="-lnsl" -fi - -fi - -ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" -if test "x$ac_cv_func_socket" = xyes; then : - -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 -$as_echo_n "checking for socket in -lsocket... " >&6; } -if ${ac_cv_lib_socket_socket+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  ac_check_lib_save_LIBS=$LIBS -LIBS="-lsocket  $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -/* Override any GCC internal prototype to avoid an error. -   Use char because int might match the return type of a GCC -   builtin and then its argument prototype would still apply.  */ -#ifdef __cplusplus -extern "C" -#endif -char socket (); -int -main () -{ -return socket (); -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : -  ac_cv_lib_socket_socket=yes -else -  ac_cv_lib_socket_socket=no -fi -rm -f core conftest.err conftest.$ac_objext \ -    conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 -$as_echo "$ac_cv_lib_socket_socket" >&6; } -if test "x$ac_cv_lib_socket_socket" = xyes; then : -  SOCKET_LIB="-lsocket" -fi - -fi - -ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" -if test "x$ac_cv_func_inet_aton" = xyes; then : - -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 -$as_echo_n "checking for inet_aton in -lresolv... " >&6; } -if ${ac_cv_lib_resolv_inet_aton+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  ac_check_lib_save_LIBS=$LIBS -LIBS="-lresolv  $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -/* Override any GCC internal prototype to avoid an error. -   Use char because int might match the return type of a GCC -   builtin and then its argument prototype would still apply.  */ -#ifdef __cplusplus -extern "C" -#endif -char inet_aton (); -int -main () -{ -return inet_aton (); -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : -  ac_cv_lib_resolv_inet_aton=yes -else -  ac_cv_lib_resolv_inet_aton=no -fi -rm -f core conftest.err conftest.$ac_objext \ -    conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 -$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } -if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then : -  RESOLV_LIB="-lresolv" -fi - -fi - - -SOCKET_LIBS="$SOCKET_LIB $NSL_LIB $BIND_LIB $RESOLV_LIB" - - -save_LIBS="$LIBS" -LIBS="$LIBS $SOCKET_LIBS" -for ac_func in inet_addr inet_aton inet_ntoa -do : -  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : -  cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - -ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" -if test "x$ac_cv_func_inet_ntop" = xyes; then : -  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h - -else -  case " $LIBOBJS " in -  *" inet_ntop.$ac_objext "* ) ;; -  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" - ;; -esac - -fi - -ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" -if test "x$ac_cv_func_inet_pton" = xyes; then : -  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h - -else -  case " $LIBOBJS " in -  *" inet_pton.$ac_objext "* ) ;; -  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" - ;; -esac - -fi - - -LIBS="$save_LIBS" - -if test "$ac_cv_header_be_kernel_OS_h" = "yes" ; then -        ac_cv_func_getaddrinfo=no -    ac_cv_func_getnameinfo=no -fi - -# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works -# for constant arguments.  Useless! -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 -$as_echo_n "checking for working alloca.h... " >&6; } -if ${ac_cv_working_alloca_h+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ -#include <alloca.h> -int -main () -{ -char *p = (char *) alloca (2 * sizeof (int)); -			  if (p) return 0; -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : -  ac_cv_working_alloca_h=yes -else -  ac_cv_working_alloca_h=no -fi -rm -f core conftest.err conftest.$ac_objext \ -    conftest$ac_exeext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 -$as_echo "$ac_cv_working_alloca_h" >&6; } -if test $ac_cv_working_alloca_h = yes; then - -$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 -$as_echo_n "checking for alloca... " >&6; } -if ${ac_cv_func_alloca_works+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ -#ifdef __GNUC__ -# define alloca __builtin_alloca -#else -# ifdef _MSC_VER -#  include <malloc.h> -#  define alloca _alloca -# else -#  ifdef HAVE_ALLOCA_H -#   include <alloca.h> -#  else -#   ifdef _AIX - #pragma alloca -#   else -#    ifndef alloca /* predefined by HP cc +Olibcalls */ -void *alloca (size_t); -#    endif -#   endif -#  endif -# endif -#endif - -int -main () -{ -char *p = (char *) alloca (1); -				    if (p) return 0; -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : -  ac_cv_func_alloca_works=yes -else -  ac_cv_func_alloca_works=no -fi -rm -f core conftest.err conftest.$ac_objext \ -    conftest$ac_exeext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 -$as_echo "$ac_cv_func_alloca_works" >&6; } - -if test $ac_cv_func_alloca_works = yes; then - -$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h - -else -  # The SVR3 libPW and SVR4 libucb both contain incompatible functions -# that cause trouble.  Some versions do not even contain alloca or -# contain a buggy version.  If you still want to use their alloca, -# use ar to extract alloca.o from them instead of compiling alloca.c. - -ALLOCA=\${LIBOBJDIR}alloca.$ac_objext - -$as_echo "#define C_ALLOCA 1" >>confdefs.h - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 -$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } -if ${ac_cv_os_cray+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ -#if defined CRAY && ! defined CRAY2 -webecray -#else -wenotbecray -#endif - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | -  $EGREP "webecray" >/dev/null 2>&1; then : -  ac_cv_os_cray=yes -else -  ac_cv_os_cray=no -fi -rm -f conftest* - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 -$as_echo "$ac_cv_os_cray" >&6; } -if test $ac_cv_os_cray = yes; then -  for ac_func in _getb67 GETB67 getb67; do -    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - -cat >>confdefs.h <<_ACEOF -#define CRAY_STACKSEG_END $ac_func -_ACEOF - -    break -fi - -  done -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 -$as_echo_n "checking stack direction for C alloca... " >&6; } -if ${ac_cv_c_stack_direction+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  if test "$cross_compiling" = yes; then : -  ac_cv_c_stack_direction=0 -else -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ -$ac_includes_default -int -find_stack_direction (int *addr, int depth) -{ -  int dir, dummy = 0; -  if (! addr) -    addr = &dummy; -  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; -  dir = depth ? find_stack_direction (addr, depth - 1) : 0; -  return dir + dummy; -} - -int -main (int argc, char **argv) -{ -  return find_stack_direction (0, argc + !argv + 20) < 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : -  ac_cv_c_stack_direction=1 -else -  ac_cv_c_stack_direction=-1 -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ -  conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 -$as_echo "$ac_cv_c_stack_direction" >&6; } -cat >>confdefs.h <<_ACEOF -#define STACK_DIRECTION $ac_cv_c_stack_direction -_ACEOF - - -fi - - - - -  for ac_header in $ac_header_list -do : -  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default -" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : -  cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - - - - - - - -for ac_func in getpagesize -do : -  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" -if test "x$ac_cv_func_getpagesize" = xyes; then : -  cat >>confdefs.h <<_ACEOF -#define HAVE_GETPAGESIZE 1 -_ACEOF - -fi -done - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 -$as_echo_n "checking for working mmap... " >&6; } -if ${ac_cv_func_mmap_fixed_mapped+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  if test "$cross_compiling" = yes; then : -  ac_cv_func_mmap_fixed_mapped=no -else -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ -$ac_includes_default -/* malloc might have been renamed as rpl_malloc. */ -#undef malloc - -/* Thanks to Mike Haertel and Jim Avera for this test. -   Here is a matrix of mmap possibilities: -	mmap private not fixed -	mmap private fixed at somewhere currently unmapped -	mmap private fixed at somewhere already mapped -	mmap shared not fixed -	mmap shared fixed at somewhere currently unmapped -	mmap shared fixed at somewhere already mapped -   For private mappings, we should verify that changes cannot be read() -   back from the file, nor mmap's back from the file at a different -   address.  (There have been systems where private was not correctly -   implemented like the infamous i386 svr4.0, and systems where the -   VM page cache was not coherent with the file system buffer cache -   like early versions of FreeBSD and possibly contemporary NetBSD.) -   For shared mappings, we should conversely verify that changes get -   propagated back to all the places they're supposed to be. - -   Grep wants private fixed already mapped. -   The main things grep needs to know about mmap are: -   * does it exist and is it safe to write into the mmap'd area -   * how to use it (BSD variants)  */ - -#include <fcntl.h> -#include <sys/mman.h> - -#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H -char *malloc (); -#endif - -/* This mess was copied from the GNU getpagesize.h.  */ -#ifndef HAVE_GETPAGESIZE -# ifdef _SC_PAGESIZE -#  define getpagesize() sysconf(_SC_PAGESIZE) -# else /* no _SC_PAGESIZE */ -#  ifdef HAVE_SYS_PARAM_H -#   include <sys/param.h> -#   ifdef EXEC_PAGESIZE -#    define getpagesize() EXEC_PAGESIZE -#   else /* no EXEC_PAGESIZE */ -#    ifdef NBPG -#     define getpagesize() NBPG * CLSIZE -#     ifndef CLSIZE -#      define CLSIZE 1 -#     endif /* no CLSIZE */ -#    else /* no NBPG */ -#     ifdef NBPC -#      define getpagesize() NBPC -#     else /* no NBPC */ -#      ifdef PAGESIZE -#       define getpagesize() PAGESIZE -#      endif /* PAGESIZE */ -#     endif /* no NBPC */ -#    endif /* no NBPG */ -#   endif /* no EXEC_PAGESIZE */ -#  else /* no HAVE_SYS_PARAM_H */ -#   define getpagesize() 8192	/* punt totally */ -#  endif /* no HAVE_SYS_PARAM_H */ -# endif /* no _SC_PAGESIZE */ - -#endif /* no HAVE_GETPAGESIZE */ - -int -main () -{ -  char *data, *data2, *data3; -  const char *cdata2; -  int i, pagesize; -  int fd, fd2; - -  pagesize = getpagesize (); - -  /* First, make a file with some known garbage in it. */ -  data = (char *) malloc (pagesize); -  if (!data) -    return 1; -  for (i = 0; i < pagesize; ++i) -    *(data + i) = rand (); -  umask (0); -  fd = creat ("conftest.mmap", 0600); -  if (fd < 0) -    return 2; -  if (write (fd, data, pagesize) != pagesize) -    return 3; -  close (fd); - -  /* Next, check that the tail of a page is zero-filled.  File must have -     non-zero length, otherwise we risk SIGBUS for entire page.  */ -  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); -  if (fd2 < 0) -    return 4; -  cdata2 = ""; -  if (write (fd2, cdata2, 1) != 1) -    return 5; -  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); -  if (data2 == MAP_FAILED) -    return 6; -  for (i = 0; i < pagesize; ++i) -    if (*(data2 + i)) -      return 7; -  close (fd2); -  if (munmap (data2, pagesize)) -    return 8; - -  /* Next, try to mmap the file at a fixed address which already has -     something else allocated at it.  If we can, also make sure that -     we see the same garbage.  */ -  fd = open ("conftest.mmap", O_RDWR); -  if (fd < 0) -    return 9; -  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, -		     MAP_PRIVATE | MAP_FIXED, fd, 0L)) -    return 10; -  for (i = 0; i < pagesize; ++i) -    if (*(data + i) != *(data2 + i)) -      return 11; - -  /* Finally, make sure that changes to the mapped area do not -     percolate back to the file as seen by read().  (This is a bug on -     some variants of i386 svr4.0.)  */ -  for (i = 0; i < pagesize; ++i) -    *(data2 + i) = *(data2 + i) + 1; -  data3 = (char *) malloc (pagesize); -  if (!data3) -    return 12; -  if (read (fd, data3, pagesize) != pagesize) -    return 13; -  for (i = 0; i < pagesize; ++i) -    if (*(data + i) != *(data3 + i)) -      return 14; -  close (fd); -  return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : -  ac_cv_func_mmap_fixed_mapped=yes -else -  ac_cv_func_mmap_fixed_mapped=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ -  conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 -$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } -if test $ac_cv_func_mmap_fixed_mapped = yes; then - -$as_echo "#define HAVE_MMAP 1" >>confdefs.h - -fi -rm -f conftest.mmap conftest.txt - -for ac_func in atexit ioperm i386_set_ioperm \ -    mkdir strftime strstr strtod  \ -    cfmakeraw tcsendbreak strcasecmp strncasecmp _portaccess \ -    getaddrinfo getnameinfo poll setitimer iopl getuid getpass -do : -  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : -  cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - -ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv" -if test "x$ac_cv_func_getenv" = xyes; then : -  $as_echo "#define HAVE_GETENV 1" >>confdefs.h - -else -  case " $LIBOBJS " in -  *" getenv.$ac_objext "* ) ;; -  *) LIBOBJS="$LIBOBJS getenv.$ac_objext" - ;; -esac - -fi - -ac_fn_c_check_func "$LINENO" "isfdtype" "ac_cv_func_isfdtype" -if test "x$ac_cv_func_isfdtype" = xyes; then : -  $as_echo "#define HAVE_ISFDTYPE 1" >>confdefs.h - -else -  case " $LIBOBJS " in -  *" isfdtype.$ac_objext "* ) ;; -  *) LIBOBJS="$LIBOBJS isfdtype.$ac_objext" - ;; -esac - -fi - -ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" -if test "x$ac_cv_func_sigprocmask" = xyes; then : -  $as_echo "#define HAVE_SIGPROCMASK 1" >>confdefs.h - -else -  case " $LIBOBJS " in -  *" sigprocmask.$ac_objext "* ) ;; -  *) LIBOBJS="$LIBOBJS sigprocmask.$ac_objext" - ;; -esac - -fi - -ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" -if test "x$ac_cv_func_snprintf" = xyes; then : -  $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h - -else -  case " $LIBOBJS " in -  *" snprintf.$ac_objext "* ) ;; -  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" - ;; -esac - -fi - -ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" -if test "x$ac_cv_func_strcasestr" = xyes; then : -  $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h - -else -  case " $LIBOBJS " in -  *" strcasestr.$ac_objext "* ) ;; -  *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext" - ;; -esac - -fi - -ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" -if test "x$ac_cv_func_strdup" = xyes; then : -  $as_echo "#define HAVE_STRDUP 1" >>confdefs.h - -else -  case " $LIBOBJS " in -  *" strdup.$ac_objext "* ) ;; -  *) LIBOBJS="$LIBOBJS strdup.$ac_objext" - ;; -esac - -fi - -ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" -if test "x$ac_cv_func_strndup" = xyes; then : -  $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h - -else -  case " $LIBOBJS " in -  *" strndup.$ac_objext "* ) ;; -  *) LIBOBJS="$LIBOBJS strndup.$ac_objext" - ;; -esac - -fi - -ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" -if test "x$ac_cv_func_strsep" = xyes; then : -  $as_echo "#define HAVE_STRSEP 1" >>confdefs.h - -else -  case " $LIBOBJS " in -  *" strsep.$ac_objext "* ) ;; -  *) LIBOBJS="$LIBOBJS strsep.$ac_objext" - ;; -esac - -fi - -ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep" -if test "x$ac_cv_func_usleep" = xyes; then : -  $as_echo "#define HAVE_USLEEP 1" >>confdefs.h - -else -  case " $LIBOBJS " in -  *" usleep.$ac_objext "* ) ;; -  *) LIBOBJS="$LIBOBJS usleep.$ac_objext" - ;; -esac - -fi - -ac_fn_c_check_func "$LINENO" "sleep" "ac_cv_func_sleep" -if test "x$ac_cv_func_sleep" = xyes; then : -  $as_echo "#define HAVE_SLEEP 1" >>confdefs.h - -else -  case " $LIBOBJS " in -  *" sleep.$ac_objext "* ) ;; -  *) LIBOBJS="$LIBOBJS sleep.$ac_objext" - ;; -esac - -fi - -ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog" -if test "x$ac_cv_func_syslog" = xyes; then : -  $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h - -else -  case " $LIBOBJS " in -  *" syslog.$ac_objext "* ) ;; -  *) LIBOBJS="$LIBOBJS syslog.$ac_objext" - ;; -esac - -fi - -ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog" -if test "x$ac_cv_func_vsyslog" = xyes; then : -  $as_echo "#define HAVE_VSYSLOG 1" >>confdefs.h - -else -  case " $LIBOBJS " in -  *" vsyslog.$ac_objext "* ) ;; -  *) LIBOBJS="$LIBOBJS vsyslog.$ac_objext" - ;; -esac - -fi - - - -if test "${ac_cv_header_sys_io_h}" = "yes"; then -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inb,outb (provided by sys/io.h)" >&5 -$as_echo_n "checking for inb,outb (provided by sys/io.h)... " >&6; } -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ -#include <sys/io.h> -int -main () -{ -inb(0);outb(0,0); -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -      sane_cv_have_sys_io_h_with_inb_outb="yes" -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -      sane_cv_have_sys_io_h_with_inb_outb="no" -      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sys/io.h does not provide inb,outb (non i386/x32/x86_64 arch?)" >&5 -$as_echo "$as_me: WARNING: sys/io.h does not provide inb,outb (non i386/x32/x86_64 arch?)" >&2;} -fi -rm -f core conftest.err conftest.$ac_objext \ -    conftest$ac_exeext conftest.$ac_ext -  if test "$sane_cv_have_sys_io_h_with_inb_outb" = "yes"; then - -$as_echo "#define SANE_HAVE_SYS_IO_H_WITH_INB_OUTB 1" >>confdefs.h - -  fi -else -  sane_cv_have_sys_io_h_with_inb_outb="no" -fi - - - - - -if test "$ac_cv_header_os2_h" = "yes" ; then - -$as_echo "#define strncasecmp strnicmp" >>confdefs.h - - -$as_echo "#define strcasecmp stricmp" >>confdefs.h - -fi - -if test "$ac_cv_header_getopt_h" = "yes" ; then -  for ac_func in getopt_long -do : -  ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" -if test "x$ac_cv_func_getopt_long" = xyes; then : -  cat >>confdefs.h <<_ACEOF -#define HAVE_GETOPT_LONG 1 -_ACEOF - -fi -done - -fi - -if test -c /dev/urandom ; then - -$as_echo "#define HAVE_DEV_URANDOM 1" >>confdefs.h - -fi - - - -# Check whether --with-systemd was given. -if test "${with_systemd+set}" = set; then : -  withval=$with_systemd; -fi - -if test "x$with_systemd" != xno ; then - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5 -$as_echo_n "checking for SYSTEMD... " >&6; } - -if test -n "$SYSTEMD_CFLAGS"; then -    pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS" - elif test -n "$PKG_CONFIG"; then -    if test -n "$PKG_CONFIG" && \ -    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 -  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 -  ac_status=$? -  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 -  test $ac_status = 0; }; then -  pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null` -		      test "x$?" != "x0" && pkg_failed=yes -else -  pkg_failed=yes -fi - else -    pkg_failed=untried -fi -if test -n "$SYSTEMD_LIBS"; then -    pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS" - elif test -n "$PKG_CONFIG"; then -    if test -n "$PKG_CONFIG" && \ -    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 -  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 -  ac_status=$? -  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 -  test $ac_status = 0; }; then -  pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null` -		      test "x$?" != "x0" && pkg_failed=yes -else -  pkg_failed=yes -fi - else -    pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then -   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then -        _pkg_short_errors_supported=yes -else -        _pkg_short_errors_supported=no -fi -        if test $_pkg_short_errors_supported = yes; then -	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1` -        else -	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1` -        fi -	# Put the nasty error message in config.log where it belongs -	echo "$SYSTEMD_PKG_ERRORS" >&5 - -	have_systemd=no -elif test $pkg_failed = untried; then -     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -	have_systemd=no -else -	SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS -	SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS -        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -	have_systemd=yes -fi -  if test "x$have_systemd" = xno; then - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5 -$as_echo_n "checking for SYSTEMD... " >&6; } - -if test -n "$SYSTEMD_CFLAGS"; then -    pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS" - elif test -n "$PKG_CONFIG"; then -    if test -n "$PKG_CONFIG" && \ -    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 -  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 -  ac_status=$? -  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 -  test $ac_status = 0; }; then -  pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null` -		      test "x$?" != "x0" && pkg_failed=yes -else -  pkg_failed=yes -fi - else -    pkg_failed=untried -fi -if test -n "$SYSTEMD_LIBS"; then -    pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS" - elif test -n "$PKG_CONFIG"; then -    if test -n "$PKG_CONFIG" && \ -    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 -  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 -  ac_status=$? -  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 -  test $ac_status = 0; }; then -  pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null` -		      test "x$?" != "x0" && pkg_failed=yes -else -  pkg_failed=yes -fi - else -    pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then -   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then -        _pkg_short_errors_supported=yes -else -        _pkg_short_errors_supported=no -fi -        if test $_pkg_short_errors_supported = yes; then -	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1` -        else -	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1` -        fi -	# Put the nasty error message in config.log where it belongs -	echo "$SYSTEMD_PKG_ERRORS" >&5 - -	have_systemd=no -elif test $pkg_failed = untried; then -     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -	have_systemd=no -else -	SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS -	SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS -        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -	have_systemd=yes -fi -  fi -  if test "x$have_systemd" = xyes; then - -$as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h - - -  else -    if test "x$with_systemd" = xyes; then -      as_fn_error $? "Systemd support was requested but systemd was not found" "$LINENO" 5 -    fi -  fi -fi - - -# Check whether --enable-libusb_1_0 was given. -if test "${enable_libusb_1_0+set}" = set; then : -  enableval=$enable_libusb_1_0; enable_libusb_1_0=$enableval -else -  enable_libusb_1_0=no -fi - - -# Check whether --enable-libusb was given. -if test "${enable_libusb+set}" = set; then : -  enableval=$enable_libusb; -else -  enable_libusb=auto -fi - -HAVE_USB=no -if test "$enable_libusb" != "no"; then -  case ${host_os} in -  beos*) -  for ac_header in be/drivers/USB_scanner.h -do : -  ac_fn_c_check_header_mongrel "$LINENO" "be/drivers/USB_scanner.h" "ac_cv_header_be_drivers_USB_scanner_h" "$ac_includes_default" -if test "x$ac_cv_header_be_drivers_USB_scanner_h" = xyes; then : -  cat >>confdefs.h <<_ACEOF -#define HAVE_BE_DRIVERS_USB_SCANNER_H 1 -_ACEOF - HAVE_USB=yes -else -  as_fn_error $? "USB_scanner.h is required on BeOS" "$LINENO" 5 -fi - -done - -  ;; -  os2*) -  ac_fn_c_check_header_compile "$LINENO" "usbcalls.h" "ac_cv_header_usbcalls_h" "#include <usb.h> -#include <os2.h> - -" -if test "x$ac_cv_header_usbcalls_h" = xyes; then : -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UsbQueryNumberDevices in -lusbcall" >&5 -$as_echo_n "checking for UsbQueryNumberDevices in -lusbcall... " >&6; } -if ${ac_cv_lib_usbcall_UsbQueryNumberDevices+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  ac_check_lib_save_LIBS=$LIBS -LIBS="-lusbcall  $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -/* Override any GCC internal prototype to avoid an error. -   Use char because int might match the return type of a GCC -   builtin and then its argument prototype would still apply.  */ -#ifdef __cplusplus -extern "C" -#endif -char UsbQueryNumberDevices (); -int -main () -{ -return UsbQueryNumberDevices (); -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : -  ac_cv_lib_usbcall_UsbQueryNumberDevices=yes -else -  ac_cv_lib_usbcall_UsbQueryNumberDevices=no -fi -rm -f core conftest.err conftest.$ac_objext \ -    conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbcall_UsbQueryNumberDevices" >&5 -$as_echo "$ac_cv_lib_usbcall_UsbQueryNumberDevices" >&6; } -if test "x$ac_cv_lib_usbcall_UsbQueryNumberDevices" = xyes; then : -  USB_LIBS="$USB_LIBS -lusbcall" -				HAVE_USB=yes -fi - -fi - - -  ;; -  *) -    have_libusb_1_0=no -  if test "$enable_libusb_1_0" = "yes"; then - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB_1_0" >&5 -$as_echo_n "checking for LIBUSB_1_0... " >&6; } - -if test -n "$LIBUSB_1_0_CFLAGS"; then -    pkg_cv_LIBUSB_1_0_CFLAGS="$LIBUSB_1_0_CFLAGS" - elif test -n "$PKG_CONFIG"; then -    if test -n "$PKG_CONFIG" && \ -    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" libusb-1.0 >= 1.0.0 \""; } >&5 -  ($PKG_CONFIG --exists --print-errors " libusb-1.0 >= 1.0.0 ") 2>&5 +  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' +      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 +  (eval $am_ar_try) 2>&5    ac_status=$?    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 -  test $ac_status = 0; }; then -  pkg_cv_LIBUSB_1_0_CFLAGS=`$PKG_CONFIG --cflags " libusb-1.0 >= 1.0.0 " 2>/dev/null` -		      test "x$?" != "x0" && pkg_failed=yes -else -  pkg_failed=yes -fi - else -    pkg_failed=untried -fi -if test -n "$LIBUSB_1_0_LIBS"; then -    pkg_cv_LIBUSB_1_0_LIBS="$LIBUSB_1_0_LIBS" - elif test -n "$PKG_CONFIG"; then -    if test -n "$PKG_CONFIG" && \ -    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" libusb-1.0 >= 1.0.0 \""; } >&5 -  ($PKG_CONFIG --exists --print-errors " libusb-1.0 >= 1.0.0 ") 2>&5 +  test $ac_status = 0; } +      if test "$ac_status" -eq 0; then +        am_cv_ar_interface=ar +      else +        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' +        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 +  (eval $am_ar_try) 2>&5    ac_status=$?    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 -  test $ac_status = 0; }; then -  pkg_cv_LIBUSB_1_0_LIBS=`$PKG_CONFIG --libs " libusb-1.0 >= 1.0.0 " 2>/dev/null` -		      test "x$?" != "x0" && pkg_failed=yes -else -  pkg_failed=yes -fi - else -    pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then -   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then -        _pkg_short_errors_supported=yes -else -        _pkg_short_errors_supported=no -fi -        if test $_pkg_short_errors_supported = yes; then -	        LIBUSB_1_0_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " libusb-1.0 >= 1.0.0 " 2>&1` +  test $ac_status = 0; } +        if test "$ac_status" -eq 0; then +          am_cv_ar_interface=lib          else -	        LIBUSB_1_0_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " libusb-1.0 >= 1.0.0 " 2>&1` +          am_cv_ar_interface=unknown          fi -	# Put the nasty error message in config.log where it belongs -	echo "$LIBUSB_1_0_PKG_ERRORS" >&5 - -	have_libusb_1_0=no -elif test $pkg_failed = untried; then -     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -	have_libusb_1_0=no -else -	LIBUSB_1_0_CFLAGS=$pkg_cv_LIBUSB_1_0_CFLAGS -	LIBUSB_1_0_LIBS=$pkg_cv_LIBUSB_1_0_LIBS -        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -	have_libusb_1_0=yes -fi -    if test "$have_libusb_1_0" = "yes"; then -      CFLAGS="$CFLAGS $LIBUSB_1_0_CFLAGS" -      USB_LIBS="$USB_LIBS $LIBUSB_1_0_LIBS" -      HAVE_USB=yes -    fi -  fi - -  if test "$have_libusb_1_0" = "no"; then -            ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default" -if test "x$ac_cv_header_usb_h" = xyes; then : -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_interrupt_read in -lusb" >&5 -$as_echo_n "checking for usb_interrupt_read in -lusb... " >&6; } -if ${ac_cv_lib_usb_usb_interrupt_read+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  ac_check_lib_save_LIBS=$LIBS -LIBS="-lusb  $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -/* Override any GCC internal prototype to avoid an error. -   Use char because int might match the return type of a GCC -   builtin and then its argument prototype would still apply.  */ -#ifdef __cplusplus -extern "C" -#endif -char usb_interrupt_read (); -int -main () -{ -return usb_interrupt_read (); -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : -  ac_cv_lib_usb_usb_interrupt_read=yes -else -  ac_cv_lib_usb_usb_interrupt_read=no -fi -rm -f core conftest.err conftest.$ac_objext \ -    conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_interrupt_read" >&5 -$as_echo "$ac_cv_lib_usb_usb_interrupt_read" >&6; } -if test "x$ac_cv_lib_usb_usb_interrupt_read" = xyes; then : -  USB_LIBS="$USB_LIBS -lusb" -                                  HAVE_USB=yes -fi - -fi - - -    for ac_header in lusb0_usb.h -do : -  ac_fn_c_check_header_mongrel "$LINENO" "lusb0_usb.h" "ac_cv_header_lusb0_usb_h" "$ac_includes_default" -if test "x$ac_cv_header_lusb0_usb_h" = xyes; then : -  cat >>confdefs.h <<_ACEOF -#define HAVE_LUSB0_USB_H 1 -_ACEOF - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_interrupt_read in -lusb" >&5 -$as_echo_n "checking for usb_interrupt_read in -lusb... " >&6; } -if ${ac_cv_lib_usb_usb_interrupt_read+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  ac_check_lib_save_LIBS=$LIBS -LIBS="-lusb  $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ +      fi +      rm -f conftest.lib libconftest.a -/* Override any GCC internal prototype to avoid an error. -   Use char because int might match the return type of a GCC -   builtin and then its argument prototype would still apply.  */ -#ifdef __cplusplus -extern "C" -#endif -char usb_interrupt_read (); -int -main () -{ -return usb_interrupt_read (); -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : -  ac_cv_lib_usb_usb_interrupt_read=yes -else -  ac_cv_lib_usb_usb_interrupt_read=no -fi -rm -f core conftest.err conftest.$ac_objext \ -    conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_interrupt_read" >&5 -$as_echo "$ac_cv_lib_usb_usb_interrupt_read" >&6; } -if test "x$ac_cv_lib_usb_usb_interrupt_read" = xyes; then : -  USB_LIBS="$USB_LIBS -lusb" -				   HAVE_USB=yes  fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +   ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu  fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 +$as_echo "$am_cv_ar_interface" >&6; } -done - -  fi +case $am_cv_ar_interface in +ar)    ;; -  esac -fi -if test "$enable_libusb" = "yes" && test "$HAVE_USB" = "no"; then -  as_fn_error $? "USB support requested but required libraries not found." "$LINENO" 5 -fi -if test "$HAVE_USB" = "yes"; then -  case ${host_os} in -  os2*) - -$as_echo "#define HAVE_USBCALLS 1" >>confdefs.h - +lib) +  # Microsoft lib, so override with the ar-lib wrapper script. +  # FIXME: It is wrong to rewrite AR. +  # But if we don't then we get into trouble of one sort or another. +  # A longer-term fix would be to have automake use am__AR in this case, +  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something +  # similar. +  AR="$am_aux_dir/ar-lib $AR"    ;; -  *) -  if test "$have_libusb_1_0" = "yes"; then - -$as_echo "#define HAVE_LIBUSB_1_0 1" >>confdefs.h - -  else - -$as_echo "#define HAVE_LIBUSB 1" >>confdefs.h - -  fi +unknown) +  as_fn_error $? "could not determine $AR interface" "$LINENO" 5    ;; -  esac -fi - - - - -# Unset VERSION during the SCSI header check -sed "s!^#define VERSION .*!/* & */!" confdefs.h > confdefs.h.tmp -mv confdefs.h.tmp confdefs.h - -for ac_header in IOKit/scsi/SCSITaskLib.h IOKit/cdb/IOSCSILib.h \ -  IOKit/scsi/SCSICommandOperationCodes.h \ -  IOKit/scsi-commands/SCSICommandOperationCodes.h scsi.h sys/scsi.h \ -  sys/scsicmd.h sys/scsiio.h bsd/dev/scsireg.h scsi/sg.h \ -  camlib.h scdds.h sys/scsi/scsi.h sys/scsi/sgdefs.h \ -  sys/scsi/targets/scgio.h apollo/scsi.h sys/sdi_comm.h \ -  sys/passthrudef.h -do : -  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : -  cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - -# Restore VERSION -sed "s!/\* \(#define VERSION .*\) \*/!\1!" confdefs.h > confdefs.h.tmp -mv confdefs.h.tmp confdefs.h - -for ac_header in io/cam/cam.h -do : -  ac_fn_c_check_header_compile "$LINENO" "io/cam/cam.h" "ac_cv_header_io_cam_cam_h" "#include <io/common/iotypes.h> -" -if test "x$ac_cv_header_io_cam_cam_h" = xyes; then : -  cat >>confdefs.h <<_ACEOF -#define HAVE_IO_CAM_CAM_H 1 -_ACEOF - -fi - -done - -for ac_header in ntddscsi.h ddk/ntddscsi.h -do : -  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <windows.h> -" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : -  cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - -if test "$ac_cv_header_sys_scsiio_h" = "yes" \ -  -a "$ac_cv_header_scsi_h" = "yes"; then -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 'scsireq_t' needs to be defined as 'struct scsireq'" >&5 -$as_echo_n "checking if 'scsireq_t' needs to be defined as 'struct scsireq'... " >&6; } -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -#include <sys/scsiio.h> -#include <scsi.h> - -int -main () -{ -scsireq_t req -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; }; - -$as_echo "#define scsireq_t struct scsireq_t" >>confdefs.h - -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for scsireq_enter in -lscsi" >&5 -$as_echo_n "checking for scsireq_enter in -lscsi... " >&6; } -if ${ac_cv_lib_scsi_scsireq_enter+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  ac_check_lib_save_LIBS=$LIBS -LIBS="-lscsi  $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -/* Override any GCC internal prototype to avoid an error. -   Use char because int might match the return type of a GCC -   builtin and then its argument prototype would still apply.  */ -#ifdef __cplusplus -extern "C" -#endif -char scsireq_enter (); -int -main () -{ -return scsireq_enter (); -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : -  ac_cv_lib_scsi_scsireq_enter=yes -else -  ac_cv_lib_scsi_scsireq_enter=no -fi -rm -f core conftest.err conftest.$ac_objext \ -    conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_scsi_scsireq_enter" >&5 -$as_echo "$ac_cv_lib_scsi_scsireq_enter" >&6; } -if test "x$ac_cv_lib_scsi_scsireq_enter" = xyes; then : -  SCSI_LIBS="-lscsi" -fi - # FreeBSD needs this - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cam_open_device in -lcam" >&5 -$as_echo_n "checking for cam_open_device in -lcam... " >&6; } -if ${ac_cv_lib_cam_cam_open_device+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  ac_check_lib_save_LIBS=$LIBS -LIBS="-lcam  $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -/* Override any GCC internal prototype to avoid an error. -   Use char because int might match the return type of a GCC -   builtin and then its argument prototype would still apply.  */ -#ifdef __cplusplus -extern "C" -#endif -char cam_open_device (); -int -main () -{ -return cam_open_device (); -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : -  ac_cv_lib_cam_cam_open_device=yes -else -  ac_cv_lib_cam_cam_open_device=no -fi -rm -f core conftest.err conftest.$ac_objext \ -    conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cam_cam_open_device" >&5 -$as_echo "$ac_cv_lib_cam_cam_open_device" >&6; } -if test "x$ac_cv_lib_cam_cam_open_device" = xyes; then : -  SCSI_LIBS="-lcam" -fi -  # FreeBSD 3+ needs this - -for ac_func in scsireq_enter -do : -  ac_fn_c_check_func "$LINENO" "scsireq_enter" "ac_cv_func_scsireq_enter" -if test "x$ac_cv_func_scsireq_enter" = xyes; then : -  cat >>confdefs.h <<_ACEOF -#define HAVE_SCSIREQ_ENTER 1 -_ACEOF - -fi -done - - -if test "$ac_cv_header_scsi_sg_h" = "yes"; then -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sg_header.target_status in <scsi/sg.h>" >&5 -$as_echo_n "checking for sg_header.target_status in <scsi/sg.h>... " >&6; } -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -#include <sys/types.h> -#include <scsi/sg.h> - -int -main () -{ - -struct sg_header hdr; -hdr.target_status = 1; -return 0; - -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; }; - -$as_echo "#define HAVE_SG_TARGET_STATUS 1" >>confdefs.h - -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -if test "$ac_cv_header_IOKit_scsi_SCSITaskLib_h" = "yes"; then -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SCSITaskSGElement in IOKit/scsi/SCSITaskLib.h" >&5 -$as_echo_n "checking for SCSITaskSGElement in IOKit/scsi/SCSITaskLib.h... " >&6; } -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -#undef VERSION -#include <IOKit/scsi/SCSITaskLib.h> - -int -main () -{ - -SCSITaskSGElement range; -return 0; - -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; }; - -$as_echo "#define HAVE_SCSITASKSGELEMENT 1" >>confdefs.h - -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -if sparc64 -q > /dev/null 2>&1 ; then - -$as_echo "#define DISABLE_LINUX_SG_IO 1" >>confdefs.h - -fi - -# Multiple platforms can set SCSI_LIBS so do substitution at end. - - -# Check whether --enable-scsibuffersize was given. -if test "${enable_scsibuffersize+set}" = set; then : -  enableval=$enable_scsibuffersize; set_scsibuffersize="$enableval" -else -  set_scsibuffersize=131072 -fi - - -cat >>confdefs.h <<_ACEOF -#define SCSIBUFFERSIZE $set_scsibuffersize -_ACEOF - -echo "scsi buffersize: $set_scsibuffersize" - -# Check whether --enable-scsi-directio was given. -if test "${enable_scsi_directio+set}" = set; then : -  enableval=$enable_scsi_directio; -    if eval "test x$enable_scsi_directio = xyes"; then -      CFLAGS="$CFLAGS -DENABLE_SCSI_DIRECTIO" -    fi - -fi - - - -if test "$ac_cv_func_getnameinfo" = "yes" \ -  && test "$ac_cv_func_getaddrinfo" = "yes" ; then - -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5 -$as_echo_n "checking whether to enable IPv6... " >&6; } -  # Check whether --enable-ipv6 was given. -if test "${enable_ipv6+set}" = set; then : -  enableval=$enable_ipv6;   if test "$enableval" = "no" ; then -         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, manually disabled" >&5 -$as_echo "no, manually disabled" >&6; } -         ipv6=no -         fi - -fi - - -  if test "$ipv6" != "no" ; then -    cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -	#define INET6 -	#include <sys/types.h> -	#include <sys/socket.h> -int -main () -{ - -	 /* AF_INET6 available check */ - 	if (socket(AF_INET6, SOCK_STREAM, 0) < 0) -   	  exit(1); - 	else -   	  exit(0); - -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - -        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -$as_echo "#define ENABLE_IPV6 1" >>confdefs.h - -        ipv6=yes - -else - -        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (couldn't compile test program)" >&5 -$as_echo "no (couldn't compile test program)" >&6; } -        ipv6=no - -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -  fi - -  if test "$ipv6" != "no" ; then -    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_storage has an ss_family member" >&5 -$as_echo_n "checking whether struct sockaddr_storage has an ss_family member... " >&6; } -    cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ - -	#define INET6 -	#include <sys/types.h> -	#include <sys/socket.h> -int -main () -{ - -	/* test if the ss_family member exists in struct sockaddr_storage */ -	struct sockaddr_storage ss; -	ss.ss_family = AF_INET; -	exit (0); - -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - -	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -$as_echo "#define HAS_SS_FAMILY 1" >>confdefs.h - - -else - -		cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h.  */ +esac -		#define INET6 -		#include <sys/types.h> -		#include <sys/socket.h> -int -main () -{ +case `pwd` in +  *\ * | *\	*) +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; +esac -		/* test if the __ss_family member exists in struct sockaddr_storage */ -		struct sockaddr_storage ss; -		ss.__ss_family = AF_INET; -		exit (0); -  ; -  return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : -		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, but __ss_family exists" >&5 -$as_echo "no, but __ss_family exists" >&6; } +macro_version='2.4.2' +macro_revision='1.3337' -$as_echo "#define HAS___SS_FAMILY 1" >>confdefs.h -else -		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -		ipv6=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -  fi -else -  ipv6="no" -fi -# Check whether --enable-preload was given. -if test "${enable_preload+set}" = set; then : -  enableval=$enable_preload; enable_preload=$enableval -else -  enable_preload=auto -fi -enable_win32_dll=yes - -case $host in -*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) -  if test -n "$ac_tool_prefix"; then -  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. -set dummy ${ac_tool_prefix}as; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_AS+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  if test -n "$AS"; then -  ac_cv_prog_AS="$AS" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do -  IFS=$as_save_IFS -  test -z "$as_dir" && as_dir=. -    for ac_exec_ext in '' $ac_executable_extensions; do -  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then -    ac_cv_prog_AS="${ac_tool_prefix}as" -    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 -    break 2 -  fi -done -  done -IFS=$as_save_IFS - -fi -fi -AS=$ac_cv_prog_AS -if test -n "$AS"; then -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 -$as_echo "$AS" >&6; } -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_AS"; then -  ac_ct_AS=$AS -  # Extract the first word of "as", so it can be a program name with args. -set dummy as; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_AS+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  if test -n "$ac_ct_AS"; then -  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do -  IFS=$as_save_IFS -  test -z "$as_dir" && as_dir=. -    for ac_exec_ext in '' $ac_executable_extensions; do -  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then -    ac_cv_prog_ac_ct_AS="as" -    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 -    break 2 -  fi -done -  done -IFS=$as_save_IFS - -fi -fi -ac_ct_AS=$ac_cv_prog_ac_ct_AS -if test -n "$ac_ct_AS"; then -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 -$as_echo "$ac_ct_AS" >&6; } -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi -  if test "x$ac_ct_AS" = x; then -    AS="false" -  else -    case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac -    AS=$ac_ct_AS -  fi -else -  AS="$ac_cv_prog_AS" -fi -  if test -n "$ac_tool_prefix"; then -  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. -set dummy ${ac_tool_prefix}dlltool; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_DLLTOOL+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  if test -n "$DLLTOOL"; then -  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do -  IFS=$as_save_IFS -  test -z "$as_dir" && as_dir=. -    for ac_exec_ext in '' $ac_executable_extensions; do -  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then -    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" -    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 -    break 2 -  fi -done -  done -IFS=$as_save_IFS -fi -fi -DLLTOOL=$ac_cv_prog_DLLTOOL -if test -n "$DLLTOOL"; then -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 -$as_echo "$DLLTOOL" >&6; } -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi +ltmain="$ac_aux_dir/ltmain.sh" +# Make sure we can run config.sub. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || +  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 -fi -if test -z "$ac_cv_prog_DLLTOOL"; then -  ac_ct_DLLTOOL=$DLLTOOL -  # Extract the first word of "dlltool", so it can be a program name with args. -set dummy dlltool; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if ${ac_cv_build+:} false; then :    $as_echo_n "(cached) " >&6  else -  if test -n "$ac_ct_DLLTOOL"; then -  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do -  IFS=$as_save_IFS -  test -z "$as_dir" && as_dir=. -    for ac_exec_ext in '' $ac_executable_extensions; do -  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then -    ac_cv_prog_ac_ct_DLLTOOL="dlltool" -    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 -    break 2 -  fi -done -  done -IFS=$as_save_IFS +  ac_build_alias=$build_alias +test "x$ac_build_alias" = x && +  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` +test "x$ac_build_alias" = x && +  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || +  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5  fi -fi -ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL -if test -n "$ac_ct_DLLTOOL"; then -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 -$as_echo "$ac_ct_DLLTOOL" >&6; } -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - -  if test "x$ac_ct_DLLTOOL" = x; then -    DLLTOOL="false" -  else -    case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;  esac -    DLLTOOL=$ac_ct_DLLTOOL -  fi -else -  DLLTOOL="$ac_cv_prog_DLLTOOL" -fi - -  if test -n "$ac_tool_prefix"; then -  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. -set dummy ${ac_tool_prefix}objdump; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_OBJDUMP+:} false; then : -  $as_echo_n "(cached) " >&6 -else -  if test -n "$OBJDUMP"; then -  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do -  IFS=$as_save_IFS -  test -z "$as_dir" && as_dir=. -    for ac_exec_ext in '' $ac_executable_extensions; do -  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then -    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" -    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 -    break 2 -  fi -done -  done -IFS=$as_save_IFS - -fi -fi -OBJDUMP=$ac_cv_prog_OBJDUMP -if test -n "$OBJDUMP"; then -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 -$as_echo "$OBJDUMP" >&6; } -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac -fi -if test -z "$ac_cv_prog_OBJDUMP"; then -  ac_ct_OBJDUMP=$OBJDUMP -  # Extract the first word of "objdump", so it can be a program name with args. -set dummy objdump; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +$as_echo_n "checking host system type... " >&6; } +if ${ac_cv_host+:} false; then :    $as_echo_n "(cached) " >&6  else -  if test -n "$ac_ct_OBJDUMP"; then -  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do -  IFS=$as_save_IFS -  test -z "$as_dir" && as_dir=. -    for ac_exec_ext in '' $ac_executable_extensions; do -  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then -    ac_cv_prog_ac_ct_OBJDUMP="objdump" -    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 -    break 2 -  fi -done -  done -IFS=$as_save_IFS - -fi -fi -ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP -if test -n "$ac_ct_OBJDUMP"; then -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 -$as_echo "$ac_ct_OBJDUMP" >&6; } -else -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - -  if test "x$ac_ct_OBJDUMP" = x; then -    OBJDUMP="false" -  else -    case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac -    OBJDUMP=$ac_ct_OBJDUMP -  fi +  if test "x$host_alias" = x; then +  ac_cv_host=$ac_cv_build  else -  OBJDUMP="$ac_cv_prog_OBJDUMP" +  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || +    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5  fi -  ;; -esac - -test -z "$AS" && AS=as - - - - - -test -z "$DLLTOOL" && DLLTOOL=dlltool - - - - - -test -z "$OBJDUMP" && OBJDUMP=objdump - - - - - - - -# Check whether --enable-static was given. -if test "${enable_static+set}" = set; then : -  enableval=$enable_static; p=${PACKAGE-default} -    case $enableval in -    yes) enable_static=yes ;; -    no) enable_static=no ;; -    *) -     enable_static=no -      # Look at the argument we got.  We use all the common list separators. -      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," -      for pkg in $enableval; do -	IFS="$lt_save_ifs" -	if test "X$pkg" = "X$p"; then -	  enable_static=yes -	fi -      done -      IFS="$lt_save_ifs" -      ;; -    esac -else -  enable_static=no  fi - - - - - - - - - -case `pwd` in -  *\ * | *\	*) -    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 -$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;  esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac - -macro_version='2.4.2' -macro_revision='1.3337' - - - - - - - - - - - - - -ltmain="$ac_aux_dir/ltmain.sh" -  # Backslashify metacharacters that are still active within  # double-quoted strings.  sed_quote_subst='s/\(["`$\\]\)/\\\1/g' @@ -11628,7 +6051,8 @@ else      ;;    *)      lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` -    if test -n "$lt_cv_sys_max_cmd_len"; then +    if test -n "$lt_cv_sys_max_cmd_len" && \ +	test undefined != "$lt_cv_sys_max_cmd_len"; then        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`      else @@ -12026,10 +6450,6 @@ freebsd* | dragonfly*)    fi    ;; -gnu*) -  lt_cv_deplibs_check_method=pass_all -  ;; -  haiku*)    lt_cv_deplibs_check_method=pass_all    ;; @@ -12068,11 +6488,11 @@ irix5* | irix6* | nonstopux*)    ;;  # This must be glibc/ELF. -linux* | k*bsd*-gnu | kopensolaris*-gnu) +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)    lt_cv_deplibs_check_method=pass_all    ;; -netbsd*) +netbsd* | netbsdelf*-gnu)    if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'    else @@ -13146,7 +7566,7 @@ ia64-*-hpux*)    rm -rf conftest*    ;; -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ +x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \  s390*-*linux*|s390*-*tpf*|sparc*-*linux*)    # Find out which ABI we are using.    echo 'int i;' > conftest.$ac_ext @@ -13162,9 +7582,19 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*)  	    LD="${LD-ld} -m elf_i386_fbsd"  	    ;;  	  x86_64-*linux*) -	    LD="${LD-ld} -m elf_i386" +	    case `/usr/bin/file conftest.o` in +	      *x86-64*) +		LD="${LD-ld} -m elf32_x86_64" +		;; +	      *) +		LD="${LD-ld} -m elf_i386" +		;; +	    esac +	    ;; +	  powerpc64le-*) +	    LD="${LD-ld} -m elf32lppclinux"  	    ;; -	  ppc64-*linux*|powerpc64-*linux*) +	  powerpc64-*)  	    LD="${LD-ld} -m elf32ppclinux"  	    ;;  	  s390x-*linux*) @@ -13183,7 +7613,10 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*)  	  x86_64-*linux*)  	    LD="${LD-ld} -m elf_x86_64"  	    ;; -	  ppc*-*linux*|powerpc*-*linux*) +	  powerpcle-*) +	    LD="${LD-ld} -m elf64lppc" +	    ;; +	  powerpc-*)  	    LD="${LD-ld} -m elf64ppc"  	    ;;  	  s390*-*linux*|s390*-*tpf*) @@ -14048,6 +8481,335 @@ done  # Set options +# Check whether --enable-static was given. +if test "${enable_static+set}" = set; then : +  enableval=$enable_static; p=${PACKAGE-default} +    case $enableval in +    yes) enable_static=yes ;; +    no) enable_static=no ;; +    *) +     enable_static=no +      # Look at the argument we got.  We use all the common list separators. +      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," +      for pkg in $enableval; do +	IFS="$lt_save_ifs" +	if test "X$pkg" = "X$p"; then +	  enable_static=yes +	fi +      done +      IFS="$lt_save_ifs" +      ;; +    esac +else +  enable_static=no +fi + + + + + + + +enable_win32_dll=yes + +case $host in +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) +  if test -n "$ac_tool_prefix"; then +  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. +set dummy ${ac_tool_prefix}as; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AS+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if test -n "$AS"; then +  ac_cv_prog_AS="$AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_prog_AS="${ac_tool_prefix}as" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS + +fi +fi +AS=$ac_cv_prog_AS +if test -n "$AS"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 +$as_echo "$AS" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_AS"; then +  ac_ct_AS=$AS +  # Extract the first word of "as", so it can be a program name with args. +set dummy as; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_AS+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if test -n "$ac_ct_AS"; then +  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_prog_ac_ct_AS="as" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS + +fi +fi +ac_ct_AS=$ac_cv_prog_ac_ct_AS +if test -n "$ac_ct_AS"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 +$as_echo "$ac_ct_AS" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + +  if test "x$ac_ct_AS" = x; then +    AS="false" +  else +    case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac +    AS=$ac_ct_AS +  fi +else +  AS="$ac_cv_prog_AS" +fi + +  if test -n "$ac_tool_prefix"; then +  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DLLTOOL+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if test -n "$DLLTOOL"; then +  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS + +fi +fi +DLLTOOL=$ac_cv_prog_DLLTOOL +if test -n "$DLLTOOL"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +$as_echo "$DLLTOOL" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DLLTOOL"; then +  ac_ct_DLLTOOL=$DLLTOOL +  # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if test -n "$ac_ct_DLLTOOL"; then +  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_prog_ac_ct_DLLTOOL="dlltool" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS + +fi +fi +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL +if test -n "$ac_ct_DLLTOOL"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +$as_echo "$ac_ct_DLLTOOL" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + +  if test "x$ac_ct_DLLTOOL" = x; then +    DLLTOOL="false" +  else +    case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac +    DLLTOOL=$ac_ct_DLLTOOL +  fi +else +  DLLTOOL="$ac_cv_prog_DLLTOOL" +fi + +  if test -n "$ac_tool_prefix"; then +  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. +set dummy ${ac_tool_prefix}objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OBJDUMP+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if test -n "$OBJDUMP"; then +  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS + +fi +fi +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +$as_echo "$OBJDUMP" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OBJDUMP"; then +  ac_ct_OBJDUMP=$OBJDUMP +  # Extract the first word of "objdump", so it can be a program name with args. +set dummy objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if test -n "$ac_ct_OBJDUMP"; then +  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_prog_ac_ct_OBJDUMP="objdump" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS + +fi +fi +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP +if test -n "$ac_ct_OBJDUMP"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +$as_echo "$ac_ct_OBJDUMP" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + +  if test "x$ac_ct_OBJDUMP" = x; then +    OBJDUMP="false" +  else +    case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac +    OBJDUMP=$ac_ct_OBJDUMP +  fi +else +  OBJDUMP="$ac_cv_prog_OBJDUMP" +fi + +  ;; +esac + +test -z "$AS" && AS=as + + + + + +test -z "$DLLTOOL" && DLLTOOL=dlltool + + + + + +test -z "$OBJDUMP" && OBJDUMP=objdump + + + + @@ -14692,7 +9454,7 @@ lt_prog_compiler_static=        lt_prog_compiler_static='-non_shared'        ;; -    linux* | k*bsd*-gnu | kopensolaris*-gnu) +    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)        case $cc_basename in        # old Intel for x86_64 which still supported -KPIC.        ecc*) @@ -15170,6 +9932,9 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie    openbsd*)      with_gnu_ld=no      ;; +  linux* | k*bsd*-gnu | gnu*) +    link_all_deplibs=no +    ;;    esac    ld_shlibs=yes @@ -15391,7 +10156,7 @@ _LT_EOF        fi        ;; -    netbsd*) +    netbsd* | netbsdelf*-gnu)        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then  	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'  	wlarc= @@ -15568,6 +10333,7 @@ _LT_EOF  	if test "$aix_use_runtimelinking" = yes; then  	  shared_flag="$shared_flag "'${wl}-G'  	fi +	link_all_deplibs=no        else  	# not using gcc  	if test "$host_cpu" = ia64; then @@ -16021,7 +10787,7 @@ $as_echo "$lt_cv_irix_exported_symbol" >&6; }        link_all_deplibs=yes        ;; -    netbsd*) +    netbsd* | netbsdelf*-gnu)        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then  	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out        else @@ -16858,17 +11624,6 @@ freebsd* | dragonfly*)    esac    ;; -gnu*) -  version_type=linux # correct to gnu/linux during the next big refactor -  need_lib_prefix=no -  need_version=no -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' -  soname_spec='${libname}${release}${shared_ext}$major' -  shlibpath_var=LD_LIBRARY_PATH -  shlibpath_overrides_runpath=no -  hardcode_into_libs=yes -  ;; -  haiku*)    version_type=linux # correct to gnu/linux during the next big refactor    need_lib_prefix=no @@ -16985,7 +11740,7 @@ linux*oldld* | linux*aout* | linux*coff*)    ;;  # This must be glibc/ELF. -linux* | k*bsd*-gnu | kopensolaris*-gnu) +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)    version_type=linux # correct to gnu/linux during the next big refactor    need_lib_prefix=no    need_version=no @@ -17034,14 +11789,10 @@ fi    # before this can be enabled.    hardcode_into_libs=yes -  # Add ABI-specific directories to the system library path. -  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" -    # Append ld.so.conf contents to the search path    if test -f /etc/ld.so.conf; then      lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` -    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" - +    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"    fi    # We used to test for /lib/ld.so.1 and disable shared libraries on @@ -17053,6 +11804,18 @@ fi    dynamic_linker='GNU/Linux ld.so'    ;; +netbsdelf*-gnu) +  version_type=linux +  need_lib_prefix=no +  need_version=no +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' +  soname_spec='${libname}${release}${shared_ext}$major' +  shlibpath_var=LD_LIBRARY_PATH +  shlibpath_overrides_runpath=no +  hardcode_into_libs=yes +  dynamic_linker='NetBSD ld.elf_so' +  ;; +  netbsd*)    version_type=sunos    need_lib_prefix=no @@ -18024,9 +12787,7787 @@ CC="$lt_save_CC" + + +mkdir_p="$MKDIR_P" +case $mkdir_p in +  [\\/$]* | ?:[\\/]*) ;; +  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac + + +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 +$as_echo_n "checking whether NLS is requested... " >&6; } +    # Check whether --enable-nls was given. +if test "${enable_nls+set}" = set; then : +  enableval=$enable_nls; USE_NLS=$enableval +else +  USE_NLS=yes +fi + +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 +$as_echo "$USE_NLS" >&6; } + + + + +      GETTEXT_MACRO_VERSION=0.18 + + + + +# Prepare PATH_SEPARATOR. +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then +  echo "#! /bin/sh" >conf$$.sh +  echo  "exit 0"   >>conf$$.sh +  chmod +x conf$$.sh +  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then +    PATH_SEPARATOR=';' +  else +    PATH_SEPARATOR=: +  fi +  rm -f conf$$.sh +fi + +# Find out how to test for executable files. Don't use a zero-byte file, +# as systems may use methods other than mode bits to determine executability. +cat >conf$$.file <<_ASEOF +#! /bin/sh +exit 0 +_ASEOF +chmod +x conf$$.file +if test -x conf$$.file >/dev/null 2>&1; then +  ac_executable_p="test -x" +else +  ac_executable_p="test -f" +fi +rm -f conf$$.file + +# Extract the first word of "msgfmt", so it can be a program name with args. +set dummy msgfmt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_MSGFMT+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  case "$MSGFMT" in +  [\\/]* | ?:[\\/]*) +    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. +    ;; +  *) +    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR +    for ac_dir in $PATH; do +      IFS="$ac_save_IFS" +      test -z "$ac_dir" && ac_dir=. +      for ac_exec_ext in '' $ac_executable_extensions; do +        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then +          echo "$as_me: trying $ac_dir/$ac_word..." >&5 +          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && +     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then +            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" +            break 2 +          fi +        fi +      done +    done +    IFS="$ac_save_IFS" +  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" +    ;; +esac +fi +MSGFMT="$ac_cv_path_MSGFMT" +if test "$MSGFMT" != ":"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 +$as_echo "$MSGFMT" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + +  # Extract the first word of "gmsgfmt", so it can be a program name with args. +set dummy gmsgfmt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_GMSGFMT+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  case $GMSGFMT in +  [\\/]* | ?:[\\/]*) +  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. +  ;; +  *) +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS + +  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" +  ;; +esac +fi +GMSGFMT=$ac_cv_path_GMSGFMT +if test -n "$GMSGFMT"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 +$as_echo "$GMSGFMT" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + +    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in +    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; +    *) MSGFMT_015=$MSGFMT ;; +  esac + +  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in +    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; +    *) GMSGFMT_015=$GMSGFMT ;; +  esac + + + +# Prepare PATH_SEPARATOR. +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then +  echo "#! /bin/sh" >conf$$.sh +  echo  "exit 0"   >>conf$$.sh +  chmod +x conf$$.sh +  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then +    PATH_SEPARATOR=';' +  else +    PATH_SEPARATOR=: +  fi +  rm -f conf$$.sh +fi + +# Find out how to test for executable files. Don't use a zero-byte file, +# as systems may use methods other than mode bits to determine executability. +cat >conf$$.file <<_ASEOF +#! /bin/sh +exit 0 +_ASEOF +chmod +x conf$$.file +if test -x conf$$.file >/dev/null 2>&1; then +  ac_executable_p="test -x" +else +  ac_executable_p="test -f" +fi +rm -f conf$$.file + +# Extract the first word of "xgettext", so it can be a program name with args. +set dummy xgettext; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_XGETTEXT+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  case "$XGETTEXT" in +  [\\/]* | ?:[\\/]*) +    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. +    ;; +  *) +    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR +    for ac_dir in $PATH; do +      IFS="$ac_save_IFS" +      test -z "$ac_dir" && ac_dir=. +      for ac_exec_ext in '' $ac_executable_extensions; do +        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then +          echo "$as_me: trying $ac_dir/$ac_word..." >&5 +          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && +     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then +            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" +            break 2 +          fi +        fi +      done +    done +    IFS="$ac_save_IFS" +  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" +    ;; +esac +fi +XGETTEXT="$ac_cv_path_XGETTEXT" +if test "$XGETTEXT" != ":"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 +$as_echo "$XGETTEXT" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + +    rm -f messages.po + +    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in +    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; +    *) XGETTEXT_015=$XGETTEXT ;; +  esac + + + +# Prepare PATH_SEPARATOR. +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then +  echo "#! /bin/sh" >conf$$.sh +  echo  "exit 0"   >>conf$$.sh +  chmod +x conf$$.sh +  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then +    PATH_SEPARATOR=';' +  else +    PATH_SEPARATOR=: +  fi +  rm -f conf$$.sh +fi + +# Find out how to test for executable files. Don't use a zero-byte file, +# as systems may use methods other than mode bits to determine executability. +cat >conf$$.file <<_ASEOF +#! /bin/sh +exit 0 +_ASEOF +chmod +x conf$$.file +if test -x conf$$.file >/dev/null 2>&1; then +  ac_executable_p="test -x" +else +  ac_executable_p="test -f" +fi +rm -f conf$$.file + +# Extract the first word of "msgmerge", so it can be a program name with args. +set dummy msgmerge; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_MSGMERGE+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  case "$MSGMERGE" in +  [\\/]* | ?:[\\/]*) +    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. +    ;; +  *) +    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR +    for ac_dir in $PATH; do +      IFS="$ac_save_IFS" +      test -z "$ac_dir" && ac_dir=. +      for ac_exec_ext in '' $ac_executable_extensions; do +        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then +          echo "$as_me: trying $ac_dir/$ac_word..." >&5 +          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then +            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" +            break 2 +          fi +        fi +      done +    done +    IFS="$ac_save_IFS" +  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" +    ;; +esac +fi +MSGMERGE="$ac_cv_path_MSGMERGE" +if test "$MSGMERGE" != ":"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 +$as_echo "$MSGMERGE" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +        test -n "$localedir" || localedir='${datadir}/locale' + + +    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= + + +  ac_config_commands="$ac_config_commands po-directories" + + + +      if test "X$prefix" = "XNONE"; then +    acl_final_prefix="$ac_default_prefix" +  else +    acl_final_prefix="$prefix" +  fi +  if test "X$exec_prefix" = "XNONE"; then +    acl_final_exec_prefix='${prefix}' +  else +    acl_final_exec_prefix="$exec_prefix" +  fi +  acl_save_prefix="$prefix" +  prefix="$acl_final_prefix" +  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" +  prefix="$acl_save_prefix" + + +# Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : +  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes +else +  with_gnu_ld=no +fi + +# Prepare PATH_SEPARATOR. +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then +  echo "#! /bin/sh" >conf$$.sh +  echo  "exit 0"   >>conf$$.sh +  chmod +x conf$$.sh +  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then +    PATH_SEPARATOR=';' +  else +    PATH_SEPARATOR=: +  fi +  rm -f conf$$.sh +fi +ac_prog=ld +if test "$GCC" = yes; then +  # Check if gcc -print-prog-name=ld gives a path. +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 +$as_echo_n "checking for ld used by GCC... " >&6; } +  case $host in +  *-*-mingw*) +    # gcc leaves a trailing carriage return which upsets mingw +    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; +  *) +    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; +  esac +  case $ac_prog in +    # Accept absolute paths. +    [\\/]* | [A-Za-z]:[\\/]*) +      re_direlt='/[^/][^/]*/\.\./' +      # Canonicalize the path of ld +      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` +      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do +        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` +      done +      test -z "$LD" && LD="$ac_prog" +      ;; +  "") +    # If it fails, then pretend we aren't using GCC. +    ac_prog=ld +    ;; +  *) +    # If it is relative, then search for the first ld in PATH. +    with_gnu_ld=unknown +    ;; +  esac +elif test "$with_gnu_ld" = yes; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if ${acl_cv_path_LD+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if test -z "$LD"; then +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" +  for ac_dir in $PATH; do +    test -z "$ac_dir" && ac_dir=. +    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then +      acl_cv_path_LD="$ac_dir/$ac_prog" +      # Check to see if the program is GNU ld.  I'd rather use --version, +      # but apparently some GNU ld's only accept -v. +      # Break only if it was the GNU/non-GNU ld that we prefer. +      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in +      *GNU* | *'with BFD'*) +        test "$with_gnu_ld" != no && break ;; +      *) +        test "$with_gnu_ld" != yes && break ;; +      esac +    fi +  done +  IFS="$ac_save_ifs" +else +  acl_cv_path_LD="$LD" # Let the user override the test with a path. +fi +fi + +LD="$acl_cv_path_LD" +if test -n "$LD"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 +$as_echo "$LD" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if ${acl_cv_prog_gnu_ld+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  # I'd rather use --version here, but apparently some GNU ld's only accept -v. +case `$LD -v 2>&1 </dev/null` in +*GNU* | *'with BFD'*) +  acl_cv_prog_gnu_ld=yes ;; +*) +  acl_cv_prog_gnu_ld=no ;; +esac +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 +$as_echo "$acl_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$acl_cv_prog_gnu_ld + + + + +                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 +$as_echo_n "checking for shared library run path origin... " >&6; } +if ${acl_cv_rpath+:} false; then : +  $as_echo_n "(cached) " >&6 +else + +    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ +    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh +    . ./conftest.sh +    rm -f ./conftest.sh +    acl_cv_rpath=done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 +$as_echo "$acl_cv_rpath" >&6; } +  wl="$acl_cv_wl" +  acl_libext="$acl_cv_libext" +  acl_shlibext="$acl_cv_shlibext" +  acl_libname_spec="$acl_cv_libname_spec" +  acl_library_names_spec="$acl_cv_library_names_spec" +  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" +  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" +  acl_hardcode_direct="$acl_cv_hardcode_direct" +  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" +    # Check whether --enable-rpath was given. +if test "${enable_rpath+set}" = set; then : +  enableval=$enable_rpath; : +else +  enable_rpath=yes +fi + + + + +  acl_libdirstem=lib +  acl_libdirstem2= +  case "$host_os" in +    solaris*) +                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 +$as_echo_n "checking for 64-bit host... " >&6; } +if ${gl_cv_solaris_64bit+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +#ifdef _LP64 +sixtyfour bits +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | +  $EGREP "sixtyfour bits" >/dev/null 2>&1; then : +  gl_cv_solaris_64bit=yes +else +  gl_cv_solaris_64bit=no +fi +rm -f conftest* + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 +$as_echo "$gl_cv_solaris_64bit" >&6; } +      if test $gl_cv_solaris_64bit = yes; then +        acl_libdirstem=lib/64 +        case "$host_cpu" in +          sparc*)        acl_libdirstem2=lib/sparcv9 ;; +          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; +        esac +      fi +      ;; +    *) +      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` +      if test -n "$searchpath"; then +        acl_save_IFS="${IFS= 	}"; IFS=":" +        for searchdir in $searchpath; do +          if test -d "$searchdir"; then +            case "$searchdir" in +              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; +              */../ | */.. ) +                # Better ignore directories of this form. They are misleading. +                ;; +              *) searchdir=`cd "$searchdir" && pwd` +                 case "$searchdir" in +                   */lib64 ) acl_libdirstem=lib64 ;; +                 esac ;; +            esac +          fi +        done +        IFS="$acl_save_IFS" +      fi +      ;; +  esac +  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" + + + + + + + + + + + + +    use_additional=yes + +  acl_save_prefix="$prefix" +  prefix="$acl_final_prefix" +  acl_save_exec_prefix="$exec_prefix" +  exec_prefix="$acl_final_exec_prefix" + +    eval additional_includedir=\"$includedir\" +    eval additional_libdir=\"$libdir\" + +  exec_prefix="$acl_save_exec_prefix" +  prefix="$acl_save_prefix" + + +# Check whether --with-libiconv-prefix was given. +if test "${with_libiconv_prefix+set}" = set; then : +  withval=$with_libiconv_prefix; +    if test "X$withval" = "Xno"; then +      use_additional=no +    else +      if test "X$withval" = "X"; then + +  acl_save_prefix="$prefix" +  prefix="$acl_final_prefix" +  acl_save_exec_prefix="$exec_prefix" +  exec_prefix="$acl_final_exec_prefix" + +          eval additional_includedir=\"$includedir\" +          eval additional_libdir=\"$libdir\" + +  exec_prefix="$acl_save_exec_prefix" +  prefix="$acl_save_prefix" + +      else +        additional_includedir="$withval/include" +        additional_libdir="$withval/$acl_libdirstem" +        if test "$acl_libdirstem2" != "$acl_libdirstem" \ +           && ! test -d "$withval/$acl_libdirstem"; then +          additional_libdir="$withval/$acl_libdirstem2" +        fi +      fi +    fi + +fi + +      LIBICONV= +  LTLIBICONV= +  INCICONV= +  LIBICONV_PREFIX= +      HAVE_LIBICONV= +  rpathdirs= +  ltrpathdirs= +  names_already_handled= +  names_next_round='iconv ' +  while test -n "$names_next_round"; do +    names_this_round="$names_next_round" +    names_next_round= +    for name in $names_this_round; do +      already_handled= +      for n in $names_already_handled; do +        if test "$n" = "$name"; then +          already_handled=yes +          break +        fi +      done +      if test -z "$already_handled"; then +        names_already_handled="$names_already_handled $name" +                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` +        eval value=\"\$HAVE_LIB$uppername\" +        if test -n "$value"; then +          if test "$value" = yes; then +            eval value=\"\$LIB$uppername\" +            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" +            eval value=\"\$LTLIB$uppername\" +            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" +          else +                                    : +          fi +        else +                              found_dir= +          found_la= +          found_so= +          found_a= +          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name +          if test -n "$acl_shlibext"; then +            shrext=".$acl_shlibext"             # typically: shrext=.so +          else +            shrext= +          fi +          if test $use_additional = yes; then +            dir="$additional_libdir" +                                    if test -n "$acl_shlibext"; then +              if test -f "$dir/$libname$shrext"; then +                found_dir="$dir" +                found_so="$dir/$libname$shrext" +              else +                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then +                  ver=`(cd "$dir" && \ +                        for f in "$libname$shrext".*; do echo "$f"; done \ +                        | sed -e "s,^$libname$shrext\\\\.,," \ +                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ +                        | sed 1q ) 2>/dev/null` +                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then +                    found_dir="$dir" +                    found_so="$dir/$libname$shrext.$ver" +                  fi +                else +                  eval library_names=\"$acl_library_names_spec\" +                  for f in $library_names; do +                    if test -f "$dir/$f"; then +                      found_dir="$dir" +                      found_so="$dir/$f" +                      break +                    fi +                  done +                fi +              fi +            fi +                        if test "X$found_dir" = "X"; then +              if test -f "$dir/$libname.$acl_libext"; then +                found_dir="$dir" +                found_a="$dir/$libname.$acl_libext" +              fi +            fi +            if test "X$found_dir" != "X"; then +              if test -f "$dir/$libname.la"; then +                found_la="$dir/$libname.la" +              fi +            fi +          fi +          if test "X$found_dir" = "X"; then +            for x in $LDFLAGS $LTLIBICONV; do + +  acl_save_prefix="$prefix" +  prefix="$acl_final_prefix" +  acl_save_exec_prefix="$exec_prefix" +  exec_prefix="$acl_final_exec_prefix" +  eval x=\"$x\" +  exec_prefix="$acl_save_exec_prefix" +  prefix="$acl_save_prefix" + +              case "$x" in +                -L*) +                  dir=`echo "X$x" | sed -e 's/^X-L//'` +                                    if test -n "$acl_shlibext"; then +                    if test -f "$dir/$libname$shrext"; then +                      found_dir="$dir" +                      found_so="$dir/$libname$shrext" +                    else +                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then +                        ver=`(cd "$dir" && \ +                              for f in "$libname$shrext".*; do echo "$f"; done \ +                              | sed -e "s,^$libname$shrext\\\\.,," \ +                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ +                              | sed 1q ) 2>/dev/null` +                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then +                          found_dir="$dir" +                          found_so="$dir/$libname$shrext.$ver" +                        fi +                      else +                        eval library_names=\"$acl_library_names_spec\" +                        for f in $library_names; do +                          if test -f "$dir/$f"; then +                            found_dir="$dir" +                            found_so="$dir/$f" +                            break +                          fi +                        done +                      fi +                    fi +                  fi +                                    if test "X$found_dir" = "X"; then +                    if test -f "$dir/$libname.$acl_libext"; then +                      found_dir="$dir" +                      found_a="$dir/$libname.$acl_libext" +                    fi +                  fi +                  if test "X$found_dir" != "X"; then +                    if test -f "$dir/$libname.la"; then +                      found_la="$dir/$libname.la" +                    fi +                  fi +                  ;; +              esac +              if test "X$found_dir" != "X"; then +                break +              fi +            done +          fi +          if test "X$found_dir" != "X"; then +                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" +            if test "X$found_so" != "X"; then +                                                        if test "$enable_rpath" = no \ +                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ +                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then +                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" +              else +                                                                                haveit= +                for x in $ltrpathdirs; do +                  if test "X$x" = "X$found_dir"; then +                    haveit=yes +                    break +                  fi +                done +                if test -z "$haveit"; then +                  ltrpathdirs="$ltrpathdirs $found_dir" +                fi +                                if test "$acl_hardcode_direct" = yes; then +                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" +                else +                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then +                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" +                                                            haveit= +                    for x in $rpathdirs; do +                      if test "X$x" = "X$found_dir"; then +                        haveit=yes +                        break +                      fi +                    done +                    if test -z "$haveit"; then +                      rpathdirs="$rpathdirs $found_dir" +                    fi +                  else +                                                                                haveit= +                    for x in $LDFLAGS $LIBICONV; do + +  acl_save_prefix="$prefix" +  prefix="$acl_final_prefix" +  acl_save_exec_prefix="$exec_prefix" +  exec_prefix="$acl_final_exec_prefix" +  eval x=\"$x\" +  exec_prefix="$acl_save_exec_prefix" +  prefix="$acl_save_prefix" + +                      if test "X$x" = "X-L$found_dir"; then +                        haveit=yes +                        break +                      fi +                    done +                    if test -z "$haveit"; then +                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" +                    fi +                    if test "$acl_hardcode_minus_L" != no; then +                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" +                    else +                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" +                    fi +                  fi +                fi +              fi +            else +              if test "X$found_a" != "X"; then +                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" +              else +                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" +              fi +            fi +                        additional_includedir= +            case "$found_dir" in +              */$acl_libdirstem | */$acl_libdirstem/) +                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` +                if test "$name" = 'iconv'; then +                  LIBICONV_PREFIX="$basedir" +                fi +                additional_includedir="$basedir/include" +                ;; +              */$acl_libdirstem2 | */$acl_libdirstem2/) +                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` +                if test "$name" = 'iconv'; then +                  LIBICONV_PREFIX="$basedir" +                fi +                additional_includedir="$basedir/include" +                ;; +            esac +            if test "X$additional_includedir" != "X"; then +                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then +                haveit= +                if test "X$additional_includedir" = "X/usr/local/include"; then +                  if test -n "$GCC"; then +                    case $host_os in +                      linux* | gnu* | k*bsd*-gnu) haveit=yes;; +                    esac +                  fi +                fi +                if test -z "$haveit"; then +                  for x in $CPPFLAGS $INCICONV; do + +  acl_save_prefix="$prefix" +  prefix="$acl_final_prefix" +  acl_save_exec_prefix="$exec_prefix" +  exec_prefix="$acl_final_exec_prefix" +  eval x=\"$x\" +  exec_prefix="$acl_save_exec_prefix" +  prefix="$acl_save_prefix" + +                    if test "X$x" = "X-I$additional_includedir"; then +                      haveit=yes +                      break +                    fi +                  done +                  if test -z "$haveit"; then +                    if test -d "$additional_includedir"; then +                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" +                    fi +                  fi +                fi +              fi +            fi +                        if test -n "$found_la"; then +                                                        save_libdir="$libdir" +              case "$found_la" in +                */* | *\\*) . "$found_la" ;; +                *) . "./$found_la" ;; +              esac +              libdir="$save_libdir" +                            for dep in $dependency_libs; do +                case "$dep" in +                  -L*) +                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` +                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ +                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then +                      haveit= +                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ +                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then +                        if test -n "$GCC"; then +                          case $host_os in +                            linux* | gnu* | k*bsd*-gnu) haveit=yes;; +                          esac +                        fi +                      fi +                      if test -z "$haveit"; then +                        haveit= +                        for x in $LDFLAGS $LIBICONV; do + +  acl_save_prefix="$prefix" +  prefix="$acl_final_prefix" +  acl_save_exec_prefix="$exec_prefix" +  exec_prefix="$acl_final_exec_prefix" +  eval x=\"$x\" +  exec_prefix="$acl_save_exec_prefix" +  prefix="$acl_save_prefix" + +                          if test "X$x" = "X-L$additional_libdir"; then +                            haveit=yes +                            break +                          fi +                        done +                        if test -z "$haveit"; then +                          if test -d "$additional_libdir"; then +                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" +                          fi +                        fi +                        haveit= +                        for x in $LDFLAGS $LTLIBICONV; do + +  acl_save_prefix="$prefix" +  prefix="$acl_final_prefix" +  acl_save_exec_prefix="$exec_prefix" +  exec_prefix="$acl_final_exec_prefix" +  eval x=\"$x\" +  exec_prefix="$acl_save_exec_prefix" +  prefix="$acl_save_prefix" + +                          if test "X$x" = "X-L$additional_libdir"; then +                            haveit=yes +                            break +                          fi +                        done +                        if test -z "$haveit"; then +                          if test -d "$additional_libdir"; then +                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" +                          fi +                        fi +                      fi +                    fi +                    ;; +                  -R*) +                    dir=`echo "X$dep" | sed -e 's/^X-R//'` +                    if test "$enable_rpath" != no; then +                                                                  haveit= +                      for x in $rpathdirs; do +                        if test "X$x" = "X$dir"; then +                          haveit=yes +                          break +                        fi +                      done +                      if test -z "$haveit"; then +                        rpathdirs="$rpathdirs $dir" +                      fi +                                                                  haveit= +                      for x in $ltrpathdirs; do +                        if test "X$x" = "X$dir"; then +                          haveit=yes +                          break +                        fi +                      done +                      if test -z "$haveit"; then +                        ltrpathdirs="$ltrpathdirs $dir" +                      fi +                    fi +                    ;; +                  -l*) +                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` +                    ;; +                  *.la) +                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` +                    ;; +                  *) +                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" +                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" +                    ;; +                esac +              done +            fi +          else +                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" +            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" +          fi +        fi +      fi +    done +  done +  if test "X$rpathdirs" != "X"; then +    if test -n "$acl_hardcode_libdir_separator"; then +                        alldirs= +      for found_dir in $rpathdirs; do +        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" +      done +            acl_save_libdir="$libdir" +      libdir="$alldirs" +      eval flag=\"$acl_hardcode_libdir_flag_spec\" +      libdir="$acl_save_libdir" +      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" +    else +            for found_dir in $rpathdirs; do +        acl_save_libdir="$libdir" +        libdir="$found_dir" +        eval flag=\"$acl_hardcode_libdir_flag_spec\" +        libdir="$acl_save_libdir" +        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" +      done +    fi +  fi +  if test "X$ltrpathdirs" != "X"; then +            for found_dir in $ltrpathdirs; do +      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" +    done +  fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 +$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } +if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  gt_save_LIBS="$LIBS" +     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <CoreFoundation/CFPreferences.h> +int +main () +{ +CFPreferencesCopyAppValue(NULL, NULL) +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  gt_cv_func_CFPreferencesCopyAppValue=yes +else +  gt_cv_func_CFPreferencesCopyAppValue=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +     LIBS="$gt_save_LIBS" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 +$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } +  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then + +$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h + +  fi +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 +$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } +if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  gt_save_LIBS="$LIBS" +     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <CoreFoundation/CFLocale.h> +int +main () +{ +CFLocaleCopyCurrent(); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  gt_cv_func_CFLocaleCopyCurrent=yes +else +  gt_cv_func_CFLocaleCopyCurrent=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +     LIBS="$gt_save_LIBS" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 +$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } +  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then + +$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h + +  fi +  INTL_MACOSX_LIBS= +  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then +    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" +  fi + + + + + + +  LIBINTL= +  LTLIBINTL= +  POSUB= + +    case " $gt_needs " in +    *" need-formatstring-macros "*) gt_api_version=3 ;; +    *" need-ngettext "*) gt_api_version=2 ;; +    *) gt_api_version=1 ;; +  esac +  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" +  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" + +    if test "$USE_NLS" = "yes"; then +    gt_use_preinstalled_gnugettext=no + + +        if test $gt_api_version -ge 3; then +          gt_revision_test_code=' +#ifndef __GNU_GETTEXT_SUPPORTED_REVISION +#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) +#endif +typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; +' +        else +          gt_revision_test_code= +        fi +        if test $gt_api_version -ge 2; then +          gt_expression_test_code=' + * ngettext ("", "", 0)' +        else +          gt_expression_test_code= +        fi + +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 +$as_echo_n "checking for GNU gettext in libc... " >&6; } +if eval \${$gt_func_gnugettext_libc+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <libintl.h> +$gt_revision_test_code +extern int _nl_msg_cat_cntr; +extern int *_nl_domain_bindings; +int +main () +{ +bindtextdomain ("", ""); +return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  eval "$gt_func_gnugettext_libc=yes" +else +  eval "$gt_func_gnugettext_libc=no" +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$gt_func_gnugettext_libc +	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + +        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then + + + + + +          am_save_CPPFLAGS="$CPPFLAGS" + +  for element in $INCICONV; do +    haveit= +    for x in $CPPFLAGS; do + +  acl_save_prefix="$prefix" +  prefix="$acl_final_prefix" +  acl_save_exec_prefix="$exec_prefix" +  exec_prefix="$acl_final_exec_prefix" +  eval x=\"$x\" +  exec_prefix="$acl_save_exec_prefix" +  prefix="$acl_save_prefix" + +      if test "X$x" = "X$element"; then +        haveit=yes +        break +      fi +    done +    if test -z "$haveit"; then +      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" +    fi +  done + + +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 +$as_echo_n "checking for iconv... " >&6; } +if ${am_cv_func_iconv+:} false; then : +  $as_echo_n "(cached) " >&6 +else + +    am_cv_func_iconv="no, consider installing GNU libiconv" +    am_cv_lib_iconv=no +    cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <stdlib.h> +#include <iconv.h> +int +main () +{ +iconv_t cd = iconv_open("",""); +       iconv(cd,NULL,NULL,NULL,NULL); +       iconv_close(cd); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  am_cv_func_iconv=yes +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +    if test "$am_cv_func_iconv" != yes; then +      am_save_LIBS="$LIBS" +      LIBS="$LIBS $LIBICONV" +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <stdlib.h> +#include <iconv.h> +int +main () +{ +iconv_t cd = iconv_open("",""); +         iconv(cd,NULL,NULL,NULL,NULL); +         iconv_close(cd); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  am_cv_lib_iconv=yes +        am_cv_func_iconv=yes +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +      LIBS="$am_save_LIBS" +    fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 +$as_echo "$am_cv_func_iconv" >&6; } +  if test "$am_cv_func_iconv" = yes; then +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 +$as_echo_n "checking for working iconv... " >&6; } +if ${am_cv_func_iconv_works+:} false; then : +  $as_echo_n "(cached) " >&6 +else + +            am_save_LIBS="$LIBS" +      if test $am_cv_lib_iconv = yes; then +        LIBS="$LIBS $LIBICONV" +      fi +      if test "$cross_compiling" = yes; then : +  case "$host_os" in +           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; +           *)            am_cv_func_iconv_works="guessing yes" ;; +         esac +else +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +#include <iconv.h> +#include <string.h> +int main () +{ +  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful +     returns.  */ +  { +    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); +    if (cd_utf8_to_88591 != (iconv_t)(-1)) +      { +        static const char input[] = "\342\202\254"; /* EURO SIGN */ +        char buf[10]; +        const char *inptr = input; +        size_t inbytesleft = strlen (input); +        char *outptr = buf; +        size_t outbytesleft = sizeof (buf); +        size_t res = iconv (cd_utf8_to_88591, +                            (char **) &inptr, &inbytesleft, +                            &outptr, &outbytesleft); +        if (res == 0) +          return 1; +      } +  } +  /* Test against Solaris 10 bug: Failures are not distinguishable from +     successful returns.  */ +  { +    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); +    if (cd_ascii_to_88591 != (iconv_t)(-1)) +      { +        static const char input[] = "\263"; +        char buf[10]; +        const char *inptr = input; +        size_t inbytesleft = strlen (input); +        char *outptr = buf; +        size_t outbytesleft = sizeof (buf); +        size_t res = iconv (cd_ascii_to_88591, +                            (char **) &inptr, &inbytesleft, +                            &outptr, &outbytesleft); +        if (res == 0) +          return 1; +      } +  } +#if 0 /* This bug could be worked around by the caller.  */ +  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */ +  { +    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); +    if (cd_88591_to_utf8 != (iconv_t)(-1)) +      { +        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; +        char buf[50]; +        const char *inptr = input; +        size_t inbytesleft = strlen (input); +        char *outptr = buf; +        size_t outbytesleft = sizeof (buf); +        size_t res = iconv (cd_88591_to_utf8, +                            (char **) &inptr, &inbytesleft, +                            &outptr, &outbytesleft); +        if ((int)res > 0) +          return 1; +      } +  } +#endif +  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is +     provided.  */ +  if (/* Try standardized names.  */ +      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) +      /* Try IRIX, OSF/1 names.  */ +      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) +      /* Try AIX names.  */ +      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) +      /* Try HP-UX names.  */ +      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) +    return 1; +  return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : +  am_cv_func_iconv_works=yes +else +  am_cv_func_iconv_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ +  conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +      LIBS="$am_save_LIBS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 +$as_echo "$am_cv_func_iconv_works" >&6; } +    case "$am_cv_func_iconv_works" in +      *no) am_func_iconv=no am_cv_lib_iconv=no ;; +      *)   am_func_iconv=yes ;; +    esac +  else +    am_func_iconv=no am_cv_lib_iconv=no +  fi +  if test "$am_func_iconv" = yes; then + +$as_echo "#define HAVE_ICONV 1" >>confdefs.h + +  fi +  if test "$am_cv_lib_iconv" = yes; then +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 +$as_echo_n "checking how to link with libiconv... " >&6; } +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 +$as_echo "$LIBICONV" >&6; } +  else +            CPPFLAGS="$am_save_CPPFLAGS" +    LIBICONV= +    LTLIBICONV= +  fi + + + + + + + + + + + +    use_additional=yes + +  acl_save_prefix="$prefix" +  prefix="$acl_final_prefix" +  acl_save_exec_prefix="$exec_prefix" +  exec_prefix="$acl_final_exec_prefix" + +    eval additional_includedir=\"$includedir\" +    eval additional_libdir=\"$libdir\" + +  exec_prefix="$acl_save_exec_prefix" +  prefix="$acl_save_prefix" + + +# Check whether --with-libintl-prefix was given. +if test "${with_libintl_prefix+set}" = set; then : +  withval=$with_libintl_prefix; +    if test "X$withval" = "Xno"; then +      use_additional=no +    else +      if test "X$withval" = "X"; then + +  acl_save_prefix="$prefix" +  prefix="$acl_final_prefix" +  acl_save_exec_prefix="$exec_prefix" +  exec_prefix="$acl_final_exec_prefix" + +          eval additional_includedir=\"$includedir\" +          eval additional_libdir=\"$libdir\" + +  exec_prefix="$acl_save_exec_prefix" +  prefix="$acl_save_prefix" + +      else +        additional_includedir="$withval/include" +        additional_libdir="$withval/$acl_libdirstem" +        if test "$acl_libdirstem2" != "$acl_libdirstem" \ +           && ! test -d "$withval/$acl_libdirstem"; then +          additional_libdir="$withval/$acl_libdirstem2" +        fi +      fi +    fi + +fi + +      LIBINTL= +  LTLIBINTL= +  INCINTL= +  LIBINTL_PREFIX= +      HAVE_LIBINTL= +  rpathdirs= +  ltrpathdirs= +  names_already_handled= +  names_next_round='intl ' +  while test -n "$names_next_round"; do +    names_this_round="$names_next_round" +    names_next_round= +    for name in $names_this_round; do +      already_handled= +      for n in $names_already_handled; do +        if test "$n" = "$name"; then +          already_handled=yes +          break +        fi +      done +      if test -z "$already_handled"; then +        names_already_handled="$names_already_handled $name" +                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` +        eval value=\"\$HAVE_LIB$uppername\" +        if test -n "$value"; then +          if test "$value" = yes; then +            eval value=\"\$LIB$uppername\" +            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" +            eval value=\"\$LTLIB$uppername\" +            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" +          else +                                    : +          fi +        else +                              found_dir= +          found_la= +          found_so= +          found_a= +          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name +          if test -n "$acl_shlibext"; then +            shrext=".$acl_shlibext"             # typically: shrext=.so +          else +            shrext= +          fi +          if test $use_additional = yes; then +            dir="$additional_libdir" +                                    if test -n "$acl_shlibext"; then +              if test -f "$dir/$libname$shrext"; then +                found_dir="$dir" +                found_so="$dir/$libname$shrext" +              else +                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then +                  ver=`(cd "$dir" && \ +                        for f in "$libname$shrext".*; do echo "$f"; done \ +                        | sed -e "s,^$libname$shrext\\\\.,," \ +                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ +                        | sed 1q ) 2>/dev/null` +                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then +                    found_dir="$dir" +                    found_so="$dir/$libname$shrext.$ver" +                  fi +                else +                  eval library_names=\"$acl_library_names_spec\" +                  for f in $library_names; do +                    if test -f "$dir/$f"; then +                      found_dir="$dir" +                      found_so="$dir/$f" +                      break +                    fi +                  done +                fi +              fi +            fi +                        if test "X$found_dir" = "X"; then +              if test -f "$dir/$libname.$acl_libext"; then +                found_dir="$dir" +                found_a="$dir/$libname.$acl_libext" +              fi +            fi +            if test "X$found_dir" != "X"; then +              if test -f "$dir/$libname.la"; then +                found_la="$dir/$libname.la" +              fi +            fi +          fi +          if test "X$found_dir" = "X"; then +            for x in $LDFLAGS $LTLIBINTL; do + +  acl_save_prefix="$prefix" +  prefix="$acl_final_prefix" +  acl_save_exec_prefix="$exec_prefix" +  exec_prefix="$acl_final_exec_prefix" +  eval x=\"$x\" +  exec_prefix="$acl_save_exec_prefix" +  prefix="$acl_save_prefix" + +              case "$x" in +                -L*) +                  dir=`echo "X$x" | sed -e 's/^X-L//'` +                                    if test -n "$acl_shlibext"; then +                    if test -f "$dir/$libname$shrext"; then +                      found_dir="$dir" +                      found_so="$dir/$libname$shrext" +                    else +                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then +                        ver=`(cd "$dir" && \ +                              for f in "$libname$shrext".*; do echo "$f"; done \ +                              | sed -e "s,^$libname$shrext\\\\.,," \ +                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ +                              | sed 1q ) 2>/dev/null` +                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then +                          found_dir="$dir" +                          found_so="$dir/$libname$shrext.$ver" +                        fi +                      else +                        eval library_names=\"$acl_library_names_spec\" +                        for f in $library_names; do +                          if test -f "$dir/$f"; then +                            found_dir="$dir" +                            found_so="$dir/$f" +                            break +                          fi +                        done +                      fi +                    fi +                  fi +                                    if test "X$found_dir" = "X"; then +                    if test -f "$dir/$libname.$acl_libext"; then +                      found_dir="$dir" +                      found_a="$dir/$libname.$acl_libext" +                    fi +                  fi +                  if test "X$found_dir" != "X"; then +                    if test -f "$dir/$libname.la"; then +                      found_la="$dir/$libname.la" +                    fi +                  fi +                  ;; +              esac +              if test "X$found_dir" != "X"; then +                break +              fi +            done +          fi +          if test "X$found_dir" != "X"; then +                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" +            if test "X$found_so" != "X"; then +                                                        if test "$enable_rpath" = no \ +                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ +                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then +                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" +              else +                                                                                haveit= +                for x in $ltrpathdirs; do +                  if test "X$x" = "X$found_dir"; then +                    haveit=yes +                    break +                  fi +                done +                if test -z "$haveit"; then +                  ltrpathdirs="$ltrpathdirs $found_dir" +                fi +                                if test "$acl_hardcode_direct" = yes; then +                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" +                else +                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then +                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" +                                                            haveit= +                    for x in $rpathdirs; do +                      if test "X$x" = "X$found_dir"; then +                        haveit=yes +                        break +                      fi +                    done +                    if test -z "$haveit"; then +                      rpathdirs="$rpathdirs $found_dir" +                    fi +                  else +                                                                                haveit= +                    for x in $LDFLAGS $LIBINTL; do + +  acl_save_prefix="$prefix" +  prefix="$acl_final_prefix" +  acl_save_exec_prefix="$exec_prefix" +  exec_prefix="$acl_final_exec_prefix" +  eval x=\"$x\" +  exec_prefix="$acl_save_exec_prefix" +  prefix="$acl_save_prefix" + +                      if test "X$x" = "X-L$found_dir"; then +                        haveit=yes +                        break +                      fi +                    done +                    if test -z "$haveit"; then +                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" +                    fi +                    if test "$acl_hardcode_minus_L" != no; then +                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" +                    else +                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" +                    fi +                  fi +                fi +              fi +            else +              if test "X$found_a" != "X"; then +                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" +              else +                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" +              fi +            fi +                        additional_includedir= +            case "$found_dir" in +              */$acl_libdirstem | */$acl_libdirstem/) +                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` +                if test "$name" = 'intl'; then +                  LIBINTL_PREFIX="$basedir" +                fi +                additional_includedir="$basedir/include" +                ;; +              */$acl_libdirstem2 | */$acl_libdirstem2/) +                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` +                if test "$name" = 'intl'; then +                  LIBINTL_PREFIX="$basedir" +                fi +                additional_includedir="$basedir/include" +                ;; +            esac +            if test "X$additional_includedir" != "X"; then +                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then +                haveit= +                if test "X$additional_includedir" = "X/usr/local/include"; then +                  if test -n "$GCC"; then +                    case $host_os in +                      linux* | gnu* | k*bsd*-gnu) haveit=yes;; +                    esac +                  fi +                fi +                if test -z "$haveit"; then +                  for x in $CPPFLAGS $INCINTL; do + +  acl_save_prefix="$prefix" +  prefix="$acl_final_prefix" +  acl_save_exec_prefix="$exec_prefix" +  exec_prefix="$acl_final_exec_prefix" +  eval x=\"$x\" +  exec_prefix="$acl_save_exec_prefix" +  prefix="$acl_save_prefix" + +                    if test "X$x" = "X-I$additional_includedir"; then +                      haveit=yes +                      break +                    fi +                  done +                  if test -z "$haveit"; then +                    if test -d "$additional_includedir"; then +                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" +                    fi +                  fi +                fi +              fi +            fi +                        if test -n "$found_la"; then +                                                        save_libdir="$libdir" +              case "$found_la" in +                */* | *\\*) . "$found_la" ;; +                *) . "./$found_la" ;; +              esac +              libdir="$save_libdir" +                            for dep in $dependency_libs; do +                case "$dep" in +                  -L*) +                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` +                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ +                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then +                      haveit= +                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ +                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then +                        if test -n "$GCC"; then +                          case $host_os in +                            linux* | gnu* | k*bsd*-gnu) haveit=yes;; +                          esac +                        fi +                      fi +                      if test -z "$haveit"; then +                        haveit= +                        for x in $LDFLAGS $LIBINTL; do + +  acl_save_prefix="$prefix" +  prefix="$acl_final_prefix" +  acl_save_exec_prefix="$exec_prefix" +  exec_prefix="$acl_final_exec_prefix" +  eval x=\"$x\" +  exec_prefix="$acl_save_exec_prefix" +  prefix="$acl_save_prefix" + +                          if test "X$x" = "X-L$additional_libdir"; then +                            haveit=yes +                            break +                          fi +                        done +                        if test -z "$haveit"; then +                          if test -d "$additional_libdir"; then +                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" +                          fi +                        fi +                        haveit= +                        for x in $LDFLAGS $LTLIBINTL; do + +  acl_save_prefix="$prefix" +  prefix="$acl_final_prefix" +  acl_save_exec_prefix="$exec_prefix" +  exec_prefix="$acl_final_exec_prefix" +  eval x=\"$x\" +  exec_prefix="$acl_save_exec_prefix" +  prefix="$acl_save_prefix" + +                          if test "X$x" = "X-L$additional_libdir"; then +                            haveit=yes +                            break +                          fi +                        done +                        if test -z "$haveit"; then +                          if test -d "$additional_libdir"; then +                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" +                          fi +                        fi +                      fi +                    fi +                    ;; +                  -R*) +                    dir=`echo "X$dep" | sed -e 's/^X-R//'` +                    if test "$enable_rpath" != no; then +                                                                  haveit= +                      for x in $rpathdirs; do +                        if test "X$x" = "X$dir"; then +                          haveit=yes +                          break +                        fi +                      done +                      if test -z "$haveit"; then +                        rpathdirs="$rpathdirs $dir" +                      fi +                                                                  haveit= +                      for x in $ltrpathdirs; do +                        if test "X$x" = "X$dir"; then +                          haveit=yes +                          break +                        fi +                      done +                      if test -z "$haveit"; then +                        ltrpathdirs="$ltrpathdirs $dir" +                      fi +                    fi +                    ;; +                  -l*) +                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` +                    ;; +                  *.la) +                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` +                    ;; +                  *) +                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" +                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" +                    ;; +                esac +              done +            fi +          else +                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" +            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" +          fi +        fi +      fi +    done +  done +  if test "X$rpathdirs" != "X"; then +    if test -n "$acl_hardcode_libdir_separator"; then +                        alldirs= +      for found_dir in $rpathdirs; do +        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" +      done +            acl_save_libdir="$libdir" +      libdir="$alldirs" +      eval flag=\"$acl_hardcode_libdir_flag_spec\" +      libdir="$acl_save_libdir" +      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" +    else +            for found_dir in $rpathdirs; do +        acl_save_libdir="$libdir" +        libdir="$found_dir" +        eval flag=\"$acl_hardcode_libdir_flag_spec\" +        libdir="$acl_save_libdir" +        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" +      done +    fi +  fi +  if test "X$ltrpathdirs" != "X"; then +            for found_dir in $ltrpathdirs; do +      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" +    done +  fi + + + + + + +          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 +$as_echo_n "checking for GNU gettext in libintl... " >&6; } +if eval \${$gt_func_gnugettext_libintl+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  gt_save_CPPFLAGS="$CPPFLAGS" +            CPPFLAGS="$CPPFLAGS $INCINTL" +            gt_save_LIBS="$LIBS" +            LIBS="$LIBS $LIBINTL" +                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <libintl.h> +$gt_revision_test_code +extern int _nl_msg_cat_cntr; +extern +#ifdef __cplusplus +"C" +#endif +const char *_nl_expand_alias (const char *); +int +main () +{ +bindtextdomain ("", ""); +return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  eval "$gt_func_gnugettext_libintl=yes" +else +  eval "$gt_func_gnugettext_libintl=no" +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then +              LIBS="$LIBS $LIBICONV" +              cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <libintl.h> +$gt_revision_test_code +extern int _nl_msg_cat_cntr; +extern +#ifdef __cplusplus +"C" +#endif +const char *_nl_expand_alias (const char *); +int +main () +{ +bindtextdomain ("", ""); +return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  LIBINTL="$LIBINTL $LIBICONV" +                LTLIBINTL="$LTLIBINTL $LTLIBICONV" +                eval "$gt_func_gnugettext_libintl=yes" + +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +            fi +            CPPFLAGS="$gt_save_CPPFLAGS" +            LIBS="$gt_save_LIBS" +fi +eval ac_res=\$$gt_func_gnugettext_libintl +	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +        fi + +                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ +           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ +                && test "$PACKAGE" != gettext-runtime \ +                && test "$PACKAGE" != gettext-tools; }; then +          gt_use_preinstalled_gnugettext=yes +        else +                    LIBINTL= +          LTLIBINTL= +          INCINTL= +        fi + + + +    if test -n "$INTL_MACOSX_LIBS"; then +      if test "$gt_use_preinstalled_gnugettext" = "yes" \ +         || test "$nls_cv_use_gnu_gettext" = "yes"; then +                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" +        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" +      fi +    fi + +    if test "$gt_use_preinstalled_gnugettext" = "yes" \ +       || test "$nls_cv_use_gnu_gettext" = "yes"; then + +$as_echo "#define ENABLE_NLS 1" >>confdefs.h + +    else +      USE_NLS=no +    fi +  fi + +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 +$as_echo_n "checking whether to use NLS... " >&6; } +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 +$as_echo "$USE_NLS" >&6; } +  if test "$USE_NLS" = "yes"; then +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 +$as_echo_n "checking where the gettext function comes from... " >&6; } +    if test "$gt_use_preinstalled_gnugettext" = "yes"; then +      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then +        gt_source="external libintl" +      else +        gt_source="libc" +      fi +    else +      gt_source="included intl directory" +    fi +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 +$as_echo "$gt_source" >&6; } +  fi + +  if test "$USE_NLS" = "yes"; then + +    if test "$gt_use_preinstalled_gnugettext" = "yes"; then +      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 +$as_echo_n "checking how to link with libintl... " >&6; } +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 +$as_echo "$LIBINTL" >&6; } + +  for element in $INCINTL; do +    haveit= +    for x in $CPPFLAGS; do + +  acl_save_prefix="$prefix" +  prefix="$acl_final_prefix" +  acl_save_exec_prefix="$exec_prefix" +  exec_prefix="$acl_final_exec_prefix" +  eval x=\"$x\" +  exec_prefix="$acl_save_exec_prefix" +  prefix="$acl_save_prefix" + +      if test "X$x" = "X$element"; then +        haveit=yes +        break +      fi +    done +    if test -z "$haveit"; then +      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" +    fi +  done + +      fi + + +$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h + + +$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h + +    fi + +        POSUB=po +  fi + + + +    INTLLIBS="$LIBINTL" + + + + + + + + +# Extract the first word of "sane-config", so it can be a program name with args. +set dummy sane-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_SANE_CONFIG_PATH+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  case $SANE_CONFIG_PATH in +  [\\/]* | ?:[\\/]*) +  ac_cv_path_SANE_CONFIG_PATH="$SANE_CONFIG_PATH" # Let the user override the test with a path. +  ;; +  *) +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_path_SANE_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS + +  test -z "$ac_cv_path_SANE_CONFIG_PATH" && ac_cv_path_SANE_CONFIG_PATH="no" +  ;; +esac +fi +SANE_CONFIG_PATH=$ac_cv_path_SANE_CONFIG_PATH +if test -n "$SANE_CONFIG_PATH"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SANE_CONFIG_PATH" >&5 +$as_echo "$SANE_CONFIG_PATH" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + + + + + + + +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then +	if test -n "$ac_tool_prefix"; then +  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. +set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PKG_CONFIG+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  case $PKG_CONFIG in +  [\\/]* | ?:[\\/]*) +  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. +  ;; +  *) +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS + +  ;; +esac +fi +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +$as_echo "$PKG_CONFIG" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_path_PKG_CONFIG"; then +  ac_pt_PKG_CONFIG=$PKG_CONFIG +  # Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  case $ac_pt_PKG_CONFIG in +  [\\/]* | ?:[\\/]*) +  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. +  ;; +  *) +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS + +  ;; +esac +fi +ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG +if test -n "$ac_pt_PKG_CONFIG"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 +$as_echo "$ac_pt_PKG_CONFIG" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + +  if test "x$ac_pt_PKG_CONFIG" = x; then +    PKG_CONFIG="" +  else +    case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac +    PKG_CONFIG=$ac_pt_PKG_CONFIG +  fi +else +  PKG_CONFIG="$ac_cv_path_PKG_CONFIG" +fi + +fi +if test -n "$PKG_CONFIG"; then +	_pkg_min_version=0.9.0 +	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 +$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } +	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then +		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +	else +		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +		PKG_CONFIG="" +	fi +fi + + if test x$cross_compiling = xyes; then +  CROSS_COMPILING_TRUE= +  CROSS_COMPILING_FALSE='#' +else +  CROSS_COMPILING_TRUE='#' +  CROSS_COMPILING_FALSE= +fi + + + +if test "${ac_cv_c_compiler_gnu}" = "yes"; then +  DEFAULT_CFLAGS="\ +      -Wall" +  EXTRA_WARNINGS="\ +      -Wextra \ +      -pedantic" + +  for flag in $DEFAULT_CFLAGS; do +    case "$AM_CFLAGS" in +"$flag" | "$flag "* | *" $flag" | *" $flag "* ) +  : +  ;; +*) +   AM_CFLAGS="$AM_CFLAGS $flag" +  ;; +esac + +  done + +  # Check whether --enable-warnings was given. +if test "${enable_warnings+set}" = set; then : +  enableval=$enable_warnings; +      if eval "test x$enable_warnings = xyes"; then +        for flag in $EXTRA_WARNINGS; do +          case "$AM_CFLAGS" in +"$flag" | "$flag "* | *" $flag" | *" $flag "* ) +  : +  ;; +*) +   AM_CFLAGS="$AM_CFLAGS $flag" +  ;; +esac + +        done +      fi + +else +  if test x$is_release = xno; then +       # Warnings enabled by default (development) +       for flag in $EXTRA_WARNINGS; do +         case "$AM_CFLAGS" in +"$flag" | "$flag "* | *" $flag" | *" $flag "* ) +  : +  ;; +*) +   AM_CFLAGS="$AM_CFLAGS $flag" +  ;; +esac + +       done +    fi +fi + +fi # ac_cv_c_compiler_gnu + + +  # Define stricter linking policy on GNU systems.  This is not +  # added to global LDFLAGS because we may want to create convenience +  # libraries that don't require such strick linking. +  if test "$GCC" = yes; then +    case ${host_os} in +    linux* | solaris*) +      STRICT_LDFLAGS="-Wl,-z,defs" +      ;; +    esac +  fi + +  case "${host_os}" in +    aix*) #enable .so libraries, disable archives +      AM_LDFLAGS="$AM_LDFLAGS -Wl,-brtl" +      ;; +    darwin*) #include frameworks +      LIBS="$LIBS -framework CoreFoundation -framework IOKit" +      ;; +  esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 +$as_echo_n "checking for library containing strerror... " >&6; } +if ${ac_cv_search_strerror+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char strerror (); +int +main () +{ +return strerror (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' cposix; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search_strerror=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search_strerror+:} false; then : +  break +fi +done +if ${ac_cv_search_strerror+:} false; then : + +else +  ac_cv_search_strerror=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 +$as_echo "$ac_cv_search_strerror" >&6; } +ac_res=$ac_cv_search_strerror +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + + +ac_byteorder_h=`echo include/byteorder.h` +ac_dir=`echo $ac_byteorder_h|sed 's%/[^/][^/]*$%%'` +if test "$ac_dir" != "$ac_byteorder" && test "$ac_dir" != .; then +  # The file is in a subdirectory. +  test ! -d "$ac_dir" && mkdir "$ac_dir" +fi + +# We're only interested in the target CPU, but it's not always set +effective_target="$target" +if test "x$effective_target" = xNONE -o "x$effective_target" = x ; then +	effective_target="$host" +fi + + +ac_byteorder=_byteorder.tmp +cat > "$ac_byteorder" << EOF +/* This file is generated automatically by configure */ +/* It is valid only for the system type ${effective_target} */ + +#ifndef __BYTEORDER_H +#define __BYTEORDER_H + +EOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 +$as_echo_n "checking whether byte ordering is bigendian... " >&6; } +if ${ac_cv_c_bigendian+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_cv_c_bigendian=unknown +    # See if we're dealing with a universal compiler. +    cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#ifndef __APPLE_CC__ +	       not a universal capable compiler +	     #endif +	     typedef int dummy; + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +	# Check for potential -arch flags.  It is not universal unless +	# there are at least two -arch flags with different values. +	ac_arch= +	ac_prev= +	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do +	 if test -n "$ac_prev"; then +	   case $ac_word in +	     i?86 | x86_64 | ppc | ppc64) +	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then +		 ac_arch=$ac_word +	       else +		 ac_cv_c_bigendian=universal +		 break +	       fi +	       ;; +	   esac +	   ac_prev= +	 elif test "x$ac_word" = "x-arch"; then +	   ac_prev=arch +	 fi +       done +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +    if test $ac_cv_c_bigendian = unknown; then +      # See if sys/param.h defines the BYTE_ORDER macro. +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <sys/types.h> +	     #include <sys/param.h> + +int +main () +{ +#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ +		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ +		     && LITTLE_ENDIAN) +	      bogus endian macros +	     #endif + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  # It does; now see whether it defined to BIG_ENDIAN or not. +	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <sys/types.h> +		#include <sys/param.h> + +int +main () +{ +#if BYTE_ORDER != BIG_ENDIAN +		 not big endian +		#endif + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  ac_cv_c_bigendian=yes +else +  ac_cv_c_bigendian=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +    fi +    if test $ac_cv_c_bigendian = unknown; then +      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <limits.h> + +int +main () +{ +#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) +	      bogus endian macros +	     #endif + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  # It does; now see whether it defined to _BIG_ENDIAN or not. +	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <limits.h> + +int +main () +{ +#ifndef _BIG_ENDIAN +		 not big endian +		#endif + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  ac_cv_c_bigendian=yes +else +  ac_cv_c_bigendian=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +    fi +    if test $ac_cv_c_bigendian = unknown; then +      # Compile a test program. +      if test "$cross_compiling" = yes; then : +  # Try to guess by grepping values from an object file. +	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +short int ascii_mm[] = +		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; +		short int ascii_ii[] = +		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; +		int use_ascii (int i) { +		  return ascii_mm[i] + ascii_ii[i]; +		} +		short int ebcdic_ii[] = +		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; +		short int ebcdic_mm[] = +		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; +		int use_ebcdic (int i) { +		  return ebcdic_mm[i] + ebcdic_ii[i]; +		} +		extern int foo; + +int +main () +{ +return use_ascii (foo) == use_ebcdic (foo); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then +	      ac_cv_c_bigendian=yes +	    fi +	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then +	      if test "$ac_cv_c_bigendian" = unknown; then +		ac_cv_c_bigendian=no +	      else +		# finding both strings is unlikely to happen, but who knows? +		ac_cv_c_bigendian=unknown +	      fi +	    fi +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +else +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +$ac_includes_default +int +main () +{ + +	     /* Are we little or big endian?  From Harbison&Steele.  */ +	     union +	     { +	       long int l; +	       char c[sizeof (long int)]; +	     } u; +	     u.l = 1; +	     return u.c[sizeof (long int) - 1] == 1; + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : +  ac_cv_c_bigendian=no +else +  ac_cv_c_bigendian=yes +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ +  conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +    fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 +$as_echo "$ac_cv_c_bigendian" >&6; } + case $ac_cv_c_bigendian in #( +   yes) +     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h +;; #( +   no) +      ;; #( +   universal) + +$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h + +     ;; #( +   *) +     as_fn_error $? "unknown endianness + presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; + esac + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for le32toh in machine/endian.h" >&5 +$as_echo_n "checking for le32toh in machine/endian.h... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +#include <machine/endian.h> +#ifdef le32toh + 	symbol is present +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | +  $EGREP "symbol is present|\<le32toh\>" >/dev/null 2>&1; then : +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +HAVE_LE32TOH=1 + cat >> "$ac_byteorder" << EOF +/* extended byte swapping macros are already available */ +#include <machine/endian.h> + +EOF + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ntohl in arpa/inet.h" >&5 +$as_echo_n "checking for ntohl in arpa/inet.h... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +#include <arpa/inet.h> +#ifdef ntohl + 	symbol is present +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | +  $EGREP "symbol is present|\<ntohl\>" >/dev/null 2>&1; then : +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +cat >> "$ac_byteorder" << EOF +/* ntohl and relatives live here */ +#include <arpa/inet.h> + +EOF + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ntohl in netinet/in.h" >&5 +$as_echo_n "checking for ntohl in netinet/in.h... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +#include <netinet/in.h> +#ifdef ntohl + 	symbol is present +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | +  $EGREP "symbol is present|\<ntohl\>" >/dev/null 2>&1; then : +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +cat >> "$ac_byteorder" << EOF +/* ntohl and relatives live here */ +#include <netinet/in.h> + +EOF + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +true + +fi +rm -f conftest* + + +fi +rm -f conftest* + + + +fi +rm -f conftest* + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for swap32 in machine/endian.h" >&5 +$as_echo_n "checking for swap32 in machine/endian.h... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +#include <machine/endian.h> +#ifdef swap32 + 	symbol is present +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | +  $EGREP "symbol is present|\<swap32\>" >/dev/null 2>&1; then : +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +cat >> "$ac_byteorder" << EOF +/* swap32 and swap16 are defined in machine/endian.h */ + +EOF + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap_32 in byteswap.h" >&5 +$as_echo_n "checking for bswap_32 in byteswap.h... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +#include <byteswap.h> +#ifdef bswap_32 + 	symbol is present +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | +  $EGREP "symbol is present|\<bswap_32\>" >/dev/null 2>&1; then : +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +cat >> "$ac_byteorder" << EOF +/* Define generic byte swapping functions */ +#include <byteswap.h> +#define swap16(x) bswap_16(x) +#define swap32(x) bswap_32(x) +#define swap64(x) bswap_64(x) + +EOF + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap32 in machine/endian.h" >&5 +$as_echo_n "checking for bswap32 in machine/endian.h... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +#include <machine/endian.h> +#ifdef bswap32 + 	symbol is present +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | +  $EGREP "symbol is present|\<bswap32\>" >/dev/null 2>&1; then : +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +  	 cat >> "$ac_byteorder" << EOF +/* Define generic byte swapping functions */ +EOF +	if test "$HAVE_LE32TOH" != "1"; then +		echo '#include <machine/endian.h>'>> "$ac_byteorder" +	fi +cat >> "$ac_byteorder" << EOF +#define swap16(x) bswap16(x) +#define swap32(x) bswap32(x) +#define swap64(x) bswap64(x) + +EOF + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __byte_swap_long in sys/types.h" >&5 +$as_echo_n "checking for __byte_swap_long in sys/types.h... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +#include <sys/types.h> +#ifdef __byte_swap_long + 	symbol is present +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | +  $EGREP "symbol is present|\<__byte_swap_long\>" >/dev/null 2>&1; then : +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +cat >> "$ac_byteorder" << EOF +/* Define generic byte swapping functions */ +#include <sys/types.h> +#define swap16(x) __byte_swap_word(x) +#define swap32(x) __byte_swap_long(x) +/* No optimized 64 bit byte swapping macro is available */ +#define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\ +			      ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\ +			      ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\ +			      ((uint64_t)(x) << 8)  & 0x000000ff00000000ULL | \\ +			      ((x) >> 8)  & 0x00000000ff000000ULL | \\ +			      ((x) >> 24) & 0x0000000000ff0000ULL | \\ +			      ((x) >> 40) & 0x000000000000ff00ULL | \\ +			      ((x) >> 56) & 0x00000000000000ffULL)) + +EOF + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NXSwapLong in machine/byte_order.h" >&5 +$as_echo_n "checking for NXSwapLong in machine/byte_order.h... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +#include <machine/byte_order.h> +#ifdef NXSwapLong + 	symbol is present +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | +  $EGREP "symbol is present|\<NXSwapLong\>" >/dev/null 2>&1; then : +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +cat >> "$ac_byteorder" << EOF +/* Define generic byte swapping functions */ +#include <machine/byte_order.h> +#define swap16(x) NXSwapShort(x) +#define swap32(x) NXSwapLong(x) +#define swap64(x) NXSwapLongLong(x) + +EOF + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +	if test $ac_cv_c_bigendian = yes; then +		cat >> "$ac_byteorder" << EOF +/* No other byte swapping functions are available on this big-endian system */ +#define swap16(x)	((uint16_t)(((x) << 8) | ((uint16_t)(x) >> 8))) +#define swap32(x)	((uint32_t)(((uint32_t)(x) << 24) & 0xff000000UL | \\ +				    ((uint32_t)(x) << 8)  & 0x00ff0000UL | \\ +				    ((x) >> 8)  & 0x0000ff00UL | \\ +				    ((x) >> 24) & 0x000000ffUL)) +#define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\ +			      ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\ +			      ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\ +			      ((uint64_t)(x) << 8)  & 0x000000ff00000000ULL | \\ +			      ((x) >> 8)  & 0x00000000ff000000ULL | \\ +			      ((x) >> 24) & 0x0000000000ff0000ULL | \\ +			      ((x) >> 40) & 0x000000000000ff00ULL | \\ +			      ((x) >> 56) & 0x00000000000000ffULL)) + +EOF +	else + cat >> "$ac_byteorder" << EOF +/* Use these as generic byteswapping macros on this little endian system */ +#define swap16(x)		ntohs(x) +#define swap32(x)		ntohl(x) +/* No optimized 64 bit byte swapping macro is available */ +#define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\ +			      ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\ +			      ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\ +			      ((uint64_t)(x) << 8)  & 0x000000ff00000000ULL | \\ +			      ((x) >> 8)  & 0x00000000ff000000ULL | \\ +			      ((x) >> 24) & 0x0000000000ff0000ULL | \\ +			      ((x) >> 40) & 0x000000000000ff00ULL | \\ +			      ((x) >> 56) & 0x00000000000000ffULL)) + +EOF +	fi + + +fi +rm -f conftest* + + + +fi +rm -f conftest* + + + +fi +rm -f conftest* + + + +fi +rm -f conftest* + + + +fi +rm -f conftest* + + + + +if test "$HAVE_LE32TOH" != "1"; then + cat >> "$ac_byteorder" << EOF +/* The byte swapping macros have the form: */ +/*   EENN[a]toh or htoEENN[a] where EE is be (big endian) or */ +/* le (little-endian), NN is 16 or 32 (number of bits) and a, */ +/* if present, indicates that the endian side is a pointer to an */ +/* array of uint8_t bytes instead of an integer of the specified length. */ +/* h refers to the host's ordering method. */ + +/* So, to convert a 32-bit integer stored in a buffer in little-endian */ +/* format into a uint32_t usable on this machine, you could use: */ +/*   uint32_t value = le32atoh(&buf[3]); */ +/* To put that value back into the buffer, you could use: */ +/*   htole32a(&buf[3], value); */ + +/* Define aliases for the standard byte swapping macros */ +/* Arguments to these macros must be properly aligned on natural word */ +/* boundaries in order to work properly on all architectures */ +#ifndef htobe16 +#define htobe16(x) htons(x) +#endif +#ifndef htobe32 +#define htobe32(x) htonl(x) +#endif +#ifndef be16toh +#define be16toh(x) ntohs(x) +#endif +#ifndef be32toh +#define be32toh(x) ntohl(x) +#endif + +#define HTOBE16(x) (x) = htobe16(x) +#define HTOBE32(x) (x) = htobe32(x) +#define BE32TOH(x) (x) = be32toh(x) +#define BE16TOH(x) (x) = be16toh(x) + +EOF + + if test $ac_cv_c_bigendian = yes; then +  cat >> "$ac_byteorder" << EOF +/* Define our own extended byte swapping macros for big-endian machines */ +#ifndef htole16 +#define htole16(x)      swap16(x) +#endif +#ifndef htole32 +#define htole32(x)      swap32(x) +#endif +#ifndef le16toh +#define le16toh(x)      swap16(x) +#endif +#ifndef le32toh +#define le32toh(x)      swap32(x) +#endif + +#ifndef htobe64 +#define htobe64(x)      (x) +#endif +#ifndef be64toh +#define be64toh(x)      (x) +#endif + +#define HTOLE16(x)      (x) = htole16(x) +#define HTOLE32(x)      (x) = htole32(x) +#define LE16TOH(x)      (x) = le16toh(x) +#define LE32TOH(x)      (x) = le32toh(x) + +#define HTOBE64(x)      (void) (x) +#define BE64TOH(x)      (void) (x) + +EOF + else +  cat >> "$ac_byteorder" << EOF +/* On little endian machines, these macros are null */ +#ifndef htole16 +#define htole16(x)      (x) +#endif +#ifndef htole32 +#define htole32(x)      (x) +#endif +#ifndef htole64 +#define htole64(x)      (x) +#endif +#ifndef le16toh +#define le16toh(x)      (x) +#endif +#ifndef le32toh +#define le32toh(x)      (x) +#endif +#ifndef le64toh +#define le64toh(x)      (x) +#endif + +#define HTOLE16(x)      (void) (x) +#define HTOLE32(x)      (void) (x) +#define HTOLE64(x)      (void) (x) +#define LE16TOH(x)      (void) (x) +#define LE32TOH(x)      (void) (x) +#define LE64TOH(x)      (void) (x) + +/* These don't have standard aliases */ +#ifndef htobe64 +#define htobe64(x)      swap64(x) +#endif +#ifndef be64toh +#define be64toh(x)      swap64(x) +#endif + +#define HTOBE64(x)      (x) = htobe64(x) +#define BE64TOH(x)      (x) = be64toh(x) + +EOF + fi +fi + +cat >> "$ac_byteorder" << EOF +/* Define the C99 standard length-specific integer types */ +#include <_stdint.h> + +EOF + +case "${effective_target}" in + i[3456]86-*) +  cat >> "$ac_byteorder" << EOF +/* Here are some macros to create integers from a byte array */ +/* These are used to get and put integers from/into a uint8_t array */ +/* with a specific endianness.  This is the most portable way to generate */ +/* and read messages to a network or serial device.  Each member of a */ +/* packet structure must be handled separately. */ + +/* The i386 and compatibles can handle unaligned memory access, */ +/* so use the optimized macros above to do this job */ +#define be16atoh(x)     be16toh(*(uint16_t*)(x)) +#define be32atoh(x)     be32toh(*(uint32_t*)(x)) +#define be64atoh(x)     be64toh(*(uint64_t*)(x)) +#define le16atoh(x)     le16toh(*(uint16_t*)(x)) +#define le32atoh(x)     le32toh(*(uint32_t*)(x)) +#define le64atoh(x)     le64toh(*(uint64_t*)(x)) + +#define htobe16a(a,x)   *(uint16_t*)(a) = htobe16(x) +#define htobe32a(a,x)   *(uint32_t*)(a) = htobe32(x) +#define htobe64a(a,x)   *(uint64_t*)(a) = htobe64(x) +#define htole16a(a,x)   *(uint16_t*)(a) = htole16(x) +#define htole32a(a,x)   *(uint32_t*)(a) = htole32(x) +#define htole64a(a,x)   *(uint64_t*)(a) = htole64(x) + +EOF +  ;; + + *) +  cat >> "$ac_byteorder" << EOF +/* Here are some macros to create integers from a byte array */ +/* These are used to get and put integers from/into a uint8_t array */ +/* with a specific endianness.  This is the most portable way to generate */ +/* and read messages to a network or serial device.  Each member of a */ +/* packet structure must be handled separately. */ + +/* Non-optimized but portable macros */ +#define be16atoh(x)     ((uint16_t)(((x)[0]<<8)|(x)[1])) +#define be32atoh(x)     ((uint32_t)(((x)[0]<<24)|((x)[1]<<16)|((x)[2]<<8)|(x)[3])) +#define be64atoh(x)     ((uint64_t)(((x)[0]<<56)|((x)[1]<<48)|((x)[2]<<40)| \\ +        ((x)[3]<<32)|((x)[4]<<24)|((x)[5]<<16)|((x)[6]<<8)|(x)[7])) +#define le16atoh(x)     ((uint16_t)(((x)[1]<<8)|(x)[0])) +#define le32atoh(x)     ((uint32_t)(((x)[3]<<24)|((x)[2]<<16)|((x)[1]<<8)|(x)[0])) +#define le64atoh(x)     ((uint64_t)(((x)[7]<<56)|((x)[6]<<48)|((x)[5]<<40)| \\ +        ((x)[4]<<32)|((x)[3]<<24)|((x)[2]<<16)|((x)[1]<<8)|(x)[0])) + +#define htobe16a(a,x)   (a)[0]=(uint8_t)((x)>>8), (a)[1]=(uint8_t)(x) +#define htobe32a(a,x)   (a)[0]=(uint8_t)((x)>>24), (a)[1]=(uint8_t)((x)>>16), \\ +        (a)[2]=(uint8_t)((x)>>8), (a)[3]=(uint8_t)(x) +#define htobe64a(a,x)   (a)[0]=(uint8_t)((x)>>56), (a)[1]=(uint8_t)((x)>>48), \\ +        (a)[2]=(uint8_t)((x)>>40), (a)[3]=(uint8_t)((x)>>32), \\ +        (a)[4]=(uint8_t)((x)>>24), (a)[5]=(uint8_t)((x)>>16), \\ +        (a)[6]=(uint8_t)((x)>>8), (a)[7]=(uint8_t)(x) +#define htole16a(a,x)   (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x) +#define htole32a(a,x)   (a)[3]=(uint8_t)((x)>>24), (a)[2]=(uint8_t)((x)>>16), \\ +        (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x) +#define htole64a(a,x)   (a)[7]=(uint8_t)((x)>>56), (a)[6]=(uint8_t)((x)>>48), \\ +        (a)[5]=(uint8_t)((x)>>40), (a)[4]=(uint8_t)((x)>>32), \\ +        (a)[3]=(uint8_t)((x)>>24), (a)[2]=(uint8_t)((x)>>16), \\ +        (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x) + +EOF +  ;; +esac + + +cat >> "$ac_byteorder" << EOF +#endif /*__BYTEORDER_H*/ +EOF + +if cmp -s $ac_byteorder_h $ac_byteorder 2>/dev/null; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_byteorder_h is unchanged" >&5 +$as_echo "$as_me: $ac_byteorder_h is unchanged" >&6;} +  rm $ac_byteorder +else +  rm -f $ac_byteorder_h +  mv $ac_byteorder $ac_byteorder_h +fi + +# ------ AX CREATE STDINT H ------------------------------------- +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5 +$as_echo_n "checking for stdint types... " >&6; } +ac_stdint_h=`echo include/_stdint.h` +# try to shortcircuit - if the default include path of the compiler +# can find a "stdint.h" header then we assume that all compilers can. +if ${ac_cv_header_stdint_t+:} false; then : +  $as_echo_n "(cached) " >&6 +else + +old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS="" +old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS="" +old_CFLAGS="$CFLAGS"     ; CFLAGS="" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <stdint.h> +int +main () +{ +int_least32_t v = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  ac_cv_stdint_result="(assuming C99 compatible system)" + ac_cv_header_stdint_t="stdint.h"; +else +  ac_cv_header_stdint_t="" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then +CFLAGS="-std=c99" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <stdint.h> +int +main () +{ +int_least32_t v = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5 +$as_echo "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;} +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +CXXFLAGS="$old_CXXFLAGS" +CPPFLAGS="$old_CPPFLAGS" +CFLAGS="$old_CFLAGS" +fi + + +v="... $ac_cv_header_stdint_h" +if test "$ac_stdint_h" = "stdint.h" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5 +$as_echo "(are you sure you want them in ./stdint.h?)" >&6; } +elif test "$ac_stdint_h" = "inttypes.h" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5 +$as_echo "(are you sure you want them in ./inttypes.h?)" >&6; } +elif test "_$ac_cv_header_stdint_t" = "_" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5 +$as_echo "(putting them into $ac_stdint_h)$v" >&6; } +else + ac_cv_header_stdint="$ac_cv_header_stdint_t" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5 +$as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; } +fi + +if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit.. + + +inttype_headers=`echo  | sed -e 's/,/ /g'` + +ac_cv_stdint_result="(no helpful system typedefs seen)" + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5 +$as_echo_n "checking for stdint uintptr_t... " >&6; } +if ${ac_cv_header_stdint_x+:} false; then : +  $as_echo_n "(cached) " >&6 +else + + ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h) +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5 +$as_echo "(..)" >&6; } +  for i in    stdint.h inttypes.h sys/inttypes.h $inttype_headers +  do +   unset ac_cv_type_uintptr_t +   unset ac_cv_type_uint64_t +   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i> +" +if test "x$ac_cv_type_uintptr_t" = xyes; then : +  ac_cv_header_stdint_x=$i +else +  continue +fi + +   ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i> +" +if test "x$ac_cv_type_uint64_t" = xyes; then : +  and64="/uint64_t" +else +  and64="" +fi + +      stdint.h inttypes.h sys/inttypes.h $inttype_headers + break +  done +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5 +$as_echo_n "checking for stdint uintptr_t... " >&6; } + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5 +$as_echo "$ac_cv_header_stdint_x" >&6; } + + +if test "_$ac_cv_header_stdint_x" = "_" ; then + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5 +$as_echo_n "checking for stdint uint32_t... " >&6; } +if ${ac_cv_header_stdint_o+:} false; then : +  $as_echo_n "(cached) " >&6 +else + + ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h) +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5 +$as_echo "(..)" >&6; } +  for i in    inttypes.h sys/inttypes.h stdint.h $inttype_headers +  do +   unset ac_cv_type_uint32_t +   unset ac_cv_type_uint64_t +   ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i> +" +if test "x$ac_cv_type_uint32_t" = xyes; then : +  ac_cv_header_stdint_o=$i +else +  continue +fi + +   ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i> +" +if test "x$ac_cv_type_uint64_t" = xyes; then : +  and64="/uint64_t" +else +  and64="" +fi + +      inttypes.h sys/inttypes.h stdint.h $inttype_headers + break +   break; +  done +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5 +$as_echo_n "checking for stdint uint32_t... " >&6; } + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5 +$as_echo "$ac_cv_header_stdint_o" >&6; } + +fi + +if test "_$ac_cv_header_stdint_x" = "_" ; then +if test "_$ac_cv_header_stdint_o" = "_" ; then + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5 +$as_echo_n "checking for stdint u_int32_t... " >&6; } +if ${ac_cv_header_stdint_u+:} false; then : +  $as_echo_n "(cached) " >&6 +else + + ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h) +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5 +$as_echo "(..)" >&6; } +  for i in    sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do +   unset ac_cv_type_u_int32_t +   unset ac_cv_type_u_int64_t +   ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i> +" +if test "x$ac_cv_type_u_int32_t" = xyes; then : +  ac_cv_header_stdint_u=$i +else +  continue +fi + +   ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i> +" +if test "x$ac_cv_type_u_int64_t" = xyes; then : +  and64="/u_int64_t" +else +  and64="" +fi + +      sys/types.h inttypes.h sys/inttypes.h $inttype_headers + break +   break; +  done +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5 +$as_echo_n "checking for stdint u_int32_t... " >&6; } + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5 +$as_echo "$ac_cv_header_stdint_u" >&6; } + +fi fi + +if test "_$ac_cv_header_stdint_x" = "_" ; then +   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5 +$as_echo_n "checking for stdint datatype model... " >&6; } +   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5 +$as_echo "(..)" >&6; } + +   # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 +$as_echo_n "checking size of char... " >&6; } +if ${ac_cv_sizeof_char+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then : + +else +  if test "$ac_cv_type_char" = yes; then +     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (char) +See \`config.log' for more details" "$LINENO" 5; } +   else +     ac_cv_sizeof_char=0 +   fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 +$as_echo "$ac_cv_sizeof_char" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_CHAR $ac_cv_sizeof_char +_ACEOF + + +   # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 +$as_echo_n "checking size of short... " >&6; } +if ${ac_cv_sizeof_short+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then : + +else +  if test "$ac_cv_type_short" = yes; then +     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (short) +See \`config.log' for more details" "$LINENO" 5; } +   else +     ac_cv_sizeof_short=0 +   fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 +$as_echo "$ac_cv_sizeof_short" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_SHORT $ac_cv_sizeof_short +_ACEOF + + +   # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 +$as_echo_n "checking size of int... " >&6; } +if ${ac_cv_sizeof_int+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then : + +else +  if test "$ac_cv_type_int" = yes; then +     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (int) +See \`config.log' for more details" "$LINENO" 5; } +   else +     ac_cv_sizeof_int=0 +   fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 +$as_echo "$ac_cv_sizeof_int" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_INT $ac_cv_sizeof_int +_ACEOF + + +   # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +$as_echo_n "checking size of long... " >&6; } +if ${ac_cv_sizeof_long+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then : + +else +  if test "$ac_cv_type_long" = yes; then +     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long) +See \`config.log' for more details" "$LINENO" 5; } +   else +     ac_cv_sizeof_long=0 +   fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +$as_echo "$ac_cv_sizeof_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG $ac_cv_sizeof_long +_ACEOF + + +   # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5 +$as_echo_n "checking size of void*... " >&6; } +if ${ac_cv_sizeof_voidp+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then : + +else +  if test "$ac_cv_type_voidp" = yes; then +     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (void*) +See \`config.log' for more details" "$LINENO" 5; } +   else +     ac_cv_sizeof_voidp=0 +   fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5 +$as_echo "$ac_cv_sizeof_voidp" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_VOIDP $ac_cv_sizeof_voidp +_ACEOF + + +   ac_cv_char_data_model="" +   ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char" +   ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short" +   ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int" +   ac_cv_long_data_model="" +   ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int" +   ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long" +   ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp" +   { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5 +$as_echo_n "checking data model... " >&6; } +   case "$ac_cv_char_data_model/$ac_cv_long_data_model" in +    122/242)     ac_cv_data_model="IP16"  ; n="standard 16bit machine" ;; +    122/244)     ac_cv_data_model="LP32"  ; n="standard 32bit machine" ;; +    122/*)       ac_cv_data_model="i16"   ; n="unusual int16 model" ;; +    124/444)     ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;; +    124/488)     ac_cv_data_model="LP64"  ; n="standard 64bit unixish" ;; +    124/448)     ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;; +    124/*)       ac_cv_data_model="i32"   ; n="unusual int32 model" ;; +    128/888)     ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;; +    128/*)       ac_cv_data_model="i64"   ; n="unusual int64 model" ;; +    222/*2)      ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;; +    333/*3)      ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;; +    444/*4)      ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;; +    666/*6)      ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;; +    888/*8)      ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;; +    222/*|333/*|444/*|666/*|888/*) : +                 ac_cv_data_model="iDSP"  ; n="unusual dsptype" ;; +     *)          ac_cv_data_model="none"  ; n="very unusual model" ;; +   esac +   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5 +$as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; } + +fi + +if test "_$ac_cv_header_stdint_x" != "_" ; then +   ac_cv_header_stdint="$ac_cv_header_stdint_x" +elif  test "_$ac_cv_header_stdint_o" != "_" ; then +   ac_cv_header_stdint="$ac_cv_header_stdint_o" +elif  test "_$ac_cv_header_stdint_u" != "_" ; then +   ac_cv_header_stdint="$ac_cv_header_stdint_u" +else +   ac_cv_header_stdint="stddef.h" +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5 +$as_echo_n "checking for extra inttypes in chosen header... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5 +$as_echo "($ac_cv_header_stdint)" >&6; } +unset ac_cv_type_int_least32_t +unset ac_cv_type_int_fast32_t +ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint> +" +if test "x$ac_cv_type_int_least32_t" = xyes; then : + +fi + +ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint> +" +if test "x$ac_cv_type_int_fast32_t" = xyes; then : + +fi + +ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint> +" +if test "x$ac_cv_type_intmax_t" = xyes; then : + +fi + + +fi # shortcircut to system "stdint.h" +# ------------------ PREPARE VARIABLES ------------------------------ +if test "$GCC" = "yes" ; then +ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1` +else +ac_cv_stdint_message="using $CC" +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5 +$as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; } + +# ----------------- DONE inttypes.h checks START header ------------- +ac_config_commands="$ac_config_commands $ac_stdint_h" + + + +# Check whether --enable-dynamic was given. +if test "${enable_dynamic+set}" = set; then : +  enableval=$enable_dynamic; enable_dynamic=$enableval +else +  enable_dynamic=auto +fi + + +    DL_LIBS="" +  if test "${enable_dynamic}" = "auto"; then +      # default to disabled unless library found. +      enable_dynamic=no +      # dlopen +      for ac_header in dlfcn.h +do : +  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" +if test "x$ac_cv_header_dlfcn_h" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_DLFCN_H 1 +_ACEOF + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_dl_dlopen=yes +else +  ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : +  DL_LIBS=-ldl +fi + +       saved_LIBS="${LIBS}" +       LIBS="${LIBS} ${DL_LIBS}" +       for ac_func in dlopen +do : +  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" +if test "x$ac_cv_func_dlopen" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_DLOPEN 1 +_ACEOF + enable_dynamic=yes +fi +done + +       LIBS="${saved_LIBS}" + +fi + +done + +      # HP/UX DLL handling +      for ac_header in dl.h +do : +  ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default" +if test "x$ac_cv_header_dl_h" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_DL_H 1 +_ACEOF + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 +$as_echo_n "checking for shl_load in -ldld... " >&6; } +if ${ac_cv_lib_dld_shl_load+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char shl_load (); +int +main () +{ +return shl_load (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_dld_shl_load=yes +else +  ac_cv_lib_dld_shl_load=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 +$as_echo "$ac_cv_lib_dld_shl_load" >&6; } +if test "x$ac_cv_lib_dld_shl_load" = xyes; then : +  DL_LIBS=-ldld +fi + +       saved_LIBS="${LIBS}" +       LIBS="${LIBS} ${DL_LIBS}" +       for ac_func in shl_load +do : +  ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" +if test "x$ac_cv_func_shl_load" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_SHL_LOAD 1 +_ACEOF + enable_dynamic=yes +fi +done + +       LIBS="${saved_LIBS}" + +fi + +done + +      if test -z "$DL_LIBS" ; then +      # old Mac OS X/Darwin (without dlopen) +      for ac_header in mach-o/dyld.h +do : +  ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default" +if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_MACH_O_DYLD_H 1 +_ACEOF + for ac_func in NSLinkModule +do : +  ac_fn_c_check_func "$LINENO" "NSLinkModule" "ac_cv_func_NSLinkModule" +if test "x$ac_cv_func_NSLinkModule" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_NSLINKMODULE 1 +_ACEOF + enable_dynamic=yes +fi +done + + +fi + +done + +      fi +  fi + + +  DYNAMIC_FLAG= +  if test "${enable_dynamic}" = yes ; then +    DYNAMIC_FLAG=-module +  fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 +$as_echo_n "checking for sqrt in -lm... " >&6; } +if ${ac_cv_lib_m_sqrt+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lm  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char sqrt (); +int +main () +{ +return sqrt (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_m_sqrt=yes +else +  ac_cv_lib_m_sqrt=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 +$as_echo "$ac_cv_lib_m_sqrt" >&6; } +if test "x$ac_cv_lib_m_sqrt" = xyes; then : +  MATH_LIB="-lm" +fi + + +case ${host_os} in +  os2*) +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sylog in -lsyslog" >&5 +$as_echo_n "checking for sylog in -lsyslog... " >&6; } +if ${ac_cv_lib_syslog_sylog+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lsyslog  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char sylog (); +int +main () +{ +return sylog (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_syslog_sylog=yes +else +  ac_cv_lib_syslog_sylog=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_syslog_sylog" >&5 +$as_echo "$ac_cv_lib_syslog_sylog" >&6; } +if test "x$ac_cv_lib_syslog_sylog" = xyes; then : +  SYSLOG_LIBS="-lsyslog" +fi + +  ;; +  beos*) +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -lbe" >&5 +$as_echo_n "checking for syslog in -lbe... " >&6; } +if ${ac_cv_lib_be_syslog+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lbe  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char syslog (); +int +main () +{ +return syslog (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_be_syslog=yes +else +  ac_cv_lib_be_syslog=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_be_syslog" >&5 +$as_echo "$ac_cv_lib_be_syslog" >&6; } +if test "x$ac_cv_lib_be_syslog" = xyes; then : +  SYSLOG_LIBS="-lbe" +fi + +  ;; +esac + + + +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_start_decompress in -ljpeg" >&5 +$as_echo_n "checking for jpeg_start_decompress in -ljpeg... " >&6; } +if ${ac_cv_lib_jpeg_jpeg_start_decompress+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-ljpeg  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char jpeg_start_decompress (); +int +main () +{ +return jpeg_start_decompress (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_jpeg_jpeg_start_decompress=yes +else +  ac_cv_lib_jpeg_jpeg_start_decompress=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5 +$as_echo "$ac_cv_lib_jpeg_jpeg_start_decompress" >&6; } +if test "x$ac_cv_lib_jpeg_jpeg_start_decompress" = xyes; then : + +    ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default" +if test "x$ac_cv_header_jconfig_h" = xyes; then : + +      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeglib - version >= 61 (6a)" >&5 +$as_echo_n "checking for jpeglib - version >= 61 (6a)... " >&6; } +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +        #include <jpeglib.h> +        #if JPEG_LIB_VERSION >= 61 +          sane_correct_jpeg_lib_version_found +        #endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | +  $EGREP "sane_correct_jpeg_lib_version_found" >/dev/null 2>&1; then : +  sane_cv_use_libjpeg="yes"; JPEG_LIBS="-ljpeg"; +      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +rm -f conftest* + + +fi + + + +fi + +  if test "$sane_cv_use_libjpeg" = "yes" ; then + +$as_echo "#define HAVE_LIBJPEG 1" >>confdefs.h + +  fi + + + +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFFdOpen in -ltiff" >&5 +$as_echo_n "checking for TIFFFdOpen in -ltiff... " >&6; } +if ${ac_cv_lib_tiff_TIFFFdOpen+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-ltiff  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char TIFFFdOpen (); +int +main () +{ +return TIFFFdOpen (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_tiff_TIFFFdOpen=yes +else +  ac_cv_lib_tiff_TIFFFdOpen=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFFdOpen" >&5 +$as_echo "$ac_cv_lib_tiff_TIFFFdOpen" >&6; } +if test "x$ac_cv_lib_tiff_TIFFFdOpen" = xyes; then : + +    ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" +if test "x$ac_cv_header_tiffio_h" = xyes; then : +  sane_cv_use_libtiff="yes"; TIFF_LIBS="-ltiff" +fi + + + +fi + + + + +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_init_io in -lpng" >&5 +$as_echo_n "checking for png_init_io in -lpng... " >&6; } +if ${ac_cv_lib_png_png_init_io+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lpng  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char png_init_io (); +int +main () +{ +return png_init_io (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_png_png_init_io=yes +else +  ac_cv_lib_png_png_init_io=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_init_io" >&5 +$as_echo "$ac_cv_lib_png_png_init_io" >&6; } +if test "x$ac_cv_lib_png_png_init_io" = xyes; then : + +    ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default" +if test "x$ac_cv_header_png_h" = xyes; then : +  sane_cv_use_libpng="yes"; PNG_LIBS="-lpng" +fi + + + +fi + +  if test "$sane_cv_use_libpng" = "yes" ; then + +$as_echo "#define HAVE_LIBPNG 1" >>confdefs.h + +  fi + + + +  ac_fn_c_check_header_mongrel "$LINENO" "ieee1284.h" "ac_cv_header_ieee1284_h" "$ac_includes_default" +if test "x$ac_cv_header_ieee1284_h" = xyes; then : + +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libieee1284 >= 0.1.5" >&5 +$as_echo_n "checking for libieee1284 >= 0.1.5... " >&6; } +if ${sane_cv_use_libieee1284+:} false; then : +  $as_echo_n "(cached) " >&6 +else + +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <ieee1284.h> +int +main () +{ + +	struct parport p; char *buf; +	ieee1284_nibble_read(&p, 0, buf, 1); + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  sane_cv_use_libieee1284="yes"; IEEE1284_LIBS="-lieee1284" + +else +  sane_cv_use_libieee1284="no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_cv_use_libieee1284" >&5 +$as_echo "$sane_cv_use_libieee1284" >&6; } + +fi + + +  if test "$sane_cv_use_libieee1284" = "yes" ; then + +$as_echo "#define HAVE_LIBIEEE1284 1" >>confdefs.h + +  fi + + + + +  case "${host_os}" in +  linux* | darwin* | mingw*) # enabled by default on Linux, MacOS X and MINGW +    use_pthread=yes +    ;; +  *) +    use_pthread=no +  esac +  have_pthread=no + +  # +  # now that we have the systems preferences, we check +  # the user + +  # Check whether --enable-pthread was given. +if test "${enable_pthread+set}" = set; then : +  enableval=$enable_pthread; +      if test $enableval = yes ; then +        use_pthread=yes +      else +        use_pthread=no +      fi + +fi + + +  if test $use_pthread = yes ; then +  for ac_header in pthread.h +do : +  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" +if test "x$ac_cv_header_pthread_h" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_PTHREAD_H 1 +_ACEOF + +       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 +$as_echo_n "checking for pthread_create in -lpthread... " >&6; } +if ${ac_cv_lib_pthread_pthread_create+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lpthread  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_create (); +int +main () +{ +return pthread_create (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_pthread_pthread_create=yes +else +  ac_cv_lib_pthread_pthread_create=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 +$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } +if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : +  PTHREAD_LIBS="-lpthread" +fi + +       have_pthread=yes +       save_LIBS="$LIBS" +       LIBS="$LIBS $PTHREAD_LIBS" +       for ac_func in pthread_create pthread_kill pthread_join pthread_detach pthread_cancel pthread_testcancel +do : +  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : +  cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +else +   have_pthread=no; use_pthread=no +fi +done + +       LIBS="$save_LIBS" + +else +   have_pthread=no; use_pthread=no +fi + +done + +  fi + +  if test $use_pthread = yes ; then + +cat >>confdefs.h <<_ACEOF +#define USE_PTHREAD "$use_pthread" +_ACEOF + +  else +        PTHREAD_LIBS="" +  fi +  if test "$have_pthread" = "yes" ; then +    AM_CPPFLAGS="${AM_CPPFLAGS} -D_REENTRANT" +  fi + +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable pthread support" >&5 +$as_echo_n "checking whether to enable pthread support... " >&6; } +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5 +$as_echo "$have_pthread" >&6; } +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use pthread instead of fork" >&5 +$as_echo_n "checking whether to use pthread instead of fork... " >&6; } +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthread" >&5 +$as_echo "$use_pthread" >&6; } + + +  LOCKPATH_GROUP=uucp +  use_locking=yes +  case "${host_os}" in +    os2* ) +      use_locking=no +      ;; +  esac + +  # +  # we check the user +  # Check whether --enable-locking was given. +if test "${enable_locking+set}" = set; then : +  enableval=$enable_locking; +      if test $enableval = yes ; then +        use_locking=yes +      else +        use_locking=no +      fi + +fi + +  if test $use_locking = yes ; then + +# Check whether --with-group was given. +if test "${with_group+set}" = set; then : +  withval=$with_group; LOCKPATH_GROUP="$withval" + +fi + +    # check if the group does exist +    lasterror="" +    touch sanetest.file +    chgrp $LOCKPATH_GROUP sanetest.file 2>/dev/null || lasterror=$? +    rm -f sanetest.file +    if test ! -z "$lasterror"; then +      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Group $LOCKPATH_GROUP does not exist on this system." >&5 +$as_echo "$as_me: WARNING: Group $LOCKPATH_GROUP does not exist on this system." >&2;} +      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Locking feature will be disabled." >&5 +$as_echo "$as_me: WARNING: Locking feature will be disabled." >&2;} +      use_locking=no +    fi +  fi +  if test $use_locking = yes ; then +    INSTALL_LOCKPATH=install-lockpath + +$as_echo "#define ENABLE_LOCKING 1" >>confdefs.h + +  else +    INSTALL_LOCKPATH= +  fi +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable device locking" >&5 +$as_echo_n "checking whether to enable device locking... " >&6; } +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_locking" >&5 +$as_echo "$use_locking" >&6; } +  if test $use_locking = yes ; then +    { $as_echo "$as_me:${as_lineno-$LINENO}: Setting lockdir group to $LOCKPATH_GROUP" >&5 +$as_echo "$as_me: Setting lockdir group to $LOCKPATH_GROUP" >&6;} +  fi + + + + + +# Check whether --with-gphoto2 was given. +if test "${with_gphoto2+set}" = set; then : +  withval=$with_gphoto2; # If --with-gphoto2=no or --without-gphoto2, disable backend +               # as "$with_gphoto2" will be set to "no" +fi + + +  # If --with-gphoto2=yes (or not supplied), first check if +  # pkg-config exists, then use it to check if libgphoto2 is +  # present.  If all that works, then see if we can actually link +  # a program.   And, if that works, then add the -l flags to +  # GPHOTO2_LIBS and any other flags to GPHOTO2_LDFLAGS to pass to +  # sane-config. +  if test "$with_gphoto2" != "no" ; then +    if test -n "$ac_tool_prefix"; then +  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. +set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_HAVE_GPHOTO2+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if test -n "$HAVE_GPHOTO2"; then +  ac_cv_prog_HAVE_GPHOTO2="$HAVE_GPHOTO2" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_prog_HAVE_GPHOTO2="${ac_tool_prefix}pkg-config" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS + +fi +fi +HAVE_GPHOTO2=$ac_cv_prog_HAVE_GPHOTO2 +if test -n "$HAVE_GPHOTO2"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GPHOTO2" >&5 +$as_echo "$HAVE_GPHOTO2" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_HAVE_GPHOTO2"; then +  ac_ct_HAVE_GPHOTO2=$HAVE_GPHOTO2 +  # Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_HAVE_GPHOTO2+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if test -n "$ac_ct_HAVE_GPHOTO2"; then +  ac_cv_prog_ac_ct_HAVE_GPHOTO2="$ac_ct_HAVE_GPHOTO2" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_prog_ac_ct_HAVE_GPHOTO2="pkg-config" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS + +fi +fi +ac_ct_HAVE_GPHOTO2=$ac_cv_prog_ac_ct_HAVE_GPHOTO2 +if test -n "$ac_ct_HAVE_GPHOTO2"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_HAVE_GPHOTO2" >&5 +$as_echo "$ac_ct_HAVE_GPHOTO2" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + +  if test "x$ac_ct_HAVE_GPHOTO2" = x; then +    HAVE_GPHOTO2="false" +  else +    case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac +    HAVE_GPHOTO2=$ac_ct_HAVE_GPHOTO2 +  fi +else +  HAVE_GPHOTO2="$ac_cv_prog_HAVE_GPHOTO2" +fi + + +    if test ${HAVE_GPHOTO2} != "false" ; then +      if pkg-config --exists libgphoto2 ; then +        with_gphoto2="`pkg-config --modversion libgphoto2`" +	GPHOTO2_CPPFLAGS="`pkg-config --cflags libgphoto2`" +        GPHOTO2_LIBS="`pkg-config --libs libgphoto2`" + +        saved_CPPFLAGS="${CPPFLAGS}" +        CPPFLAGS="${GPHOTO2_CPPFLAGS}" +	saved_LIBS="${LIBS}" +	LIBS="${LIBS} ${GPHOTO2_LIBS}" + 	# Make sure we an really use the library +        for ac_func in gp_camera_init +do : +  ac_fn_c_check_func "$LINENO" "gp_camera_init" "ac_cv_func_gp_camera_init" +if test "x$ac_cv_func_gp_camera_init" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_GP_CAMERA_INIT 1 +_ACEOF + HAVE_GPHOTO2=true +else +  HAVE_GPHOTO2=false +fi +done + +	if test "${HAVE_GPHOTO2}" = "true"; then +	  for ac_func in gp_port_info_get_path +do : +  ac_fn_c_check_func "$LINENO" "gp_port_info_get_path" "ac_cv_func_gp_port_info_get_path" +if test "x$ac_cv_func_gp_port_info_get_path" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_GP_PORT_INFO_GET_PATH 1 +_ACEOF + +fi +done + +	fi +	CPPFLAGS="${saved_CPPFLAGS}" +        LIBS="${saved_LIBS}" +      else +        HAVE_GPHOTO2=false +      fi +      if test "${HAVE_GPHOTO2}" = "false"; then +        GPHOTO2_CPPFLAGS="" +        GPHOTO2_LIBS="" +      else + +    tmp_LIBS="" +    for param in ${GPHOTO2_LIBS}; do +        case "${param}" in +	-l*) +         tmp_LIBS="${tmp_LIBS} ${param}" +	 ;; +	 *) +         GPHOTO2_LDFLAGS="${GPHOTO2_LDFLAGS} ${param}" +	 ;; +	 esac +     done +     GPHOTO2_LIBS="${tmp_LIBS}" +     unset tmp_LIBS +     unset param + +        if pkg-config --atleast-version=2.5.0 libgphoto2; then + +$as_echo "#define GPLOGFUNC_NO_VARGS 1" >>confdefs.h + +        fi +      fi +    fi +  fi + + + + + + + +# Check whether --with-v4l was given. +if test "${with_v4l+set}" = set; then : +  withval=$with_v4l; # If --with-v4l=no or --without-v4l, disable backend +             # as "$with_v4l" will be set to "no" +fi + + +if test "$with_v4l" != "no" ; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBV4L" >&5 +$as_echo_n "checking for LIBV4L... " >&6; } + +if test -n "$LIBV4L_CFLAGS"; then +    pkg_cv_LIBV4L_CFLAGS="$LIBV4L_CFLAGS" + elif test -n "$PKG_CONFIG"; then +    if test -n "$PKG_CONFIG" && \ +    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libv4l1\""; } >&5 +  ($PKG_CONFIG --exists --print-errors "libv4l1") 2>&5 +  ac_status=$? +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +  test $ac_status = 0; }; then +  pkg_cv_LIBV4L_CFLAGS=`$PKG_CONFIG --cflags "libv4l1" 2>/dev/null` +		      test "x$?" != "x0" && pkg_failed=yes +else +  pkg_failed=yes +fi + else +    pkg_failed=untried +fi +if test -n "$LIBV4L_LIBS"; then +    pkg_cv_LIBV4L_LIBS="$LIBV4L_LIBS" + elif test -n "$PKG_CONFIG"; then +    if test -n "$PKG_CONFIG" && \ +    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libv4l1\""; } >&5 +  ($PKG_CONFIG --exists --print-errors "libv4l1") 2>&5 +  ac_status=$? +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +  test $ac_status = 0; }; then +  pkg_cv_LIBV4L_LIBS=`$PKG_CONFIG --libs "libv4l1" 2>/dev/null` +		      test "x$?" != "x0" && pkg_failed=yes +else +  pkg_failed=yes +fi + else +    pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then +   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then +        _pkg_short_errors_supported=yes +else +        _pkg_short_errors_supported=no +fi +        if test $_pkg_short_errors_supported = yes; then +	        LIBV4L_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libv4l1" 2>&1` +        else +	        LIBV4L_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libv4l1" 2>&1` +        fi +	# Put the nasty error message in config.log where it belongs +	echo "$LIBV4L_PKG_ERRORS" >&5 + +	have_libv4l1=no +elif test $pkg_failed = untried; then +     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +	have_libv4l1=no +else +	LIBV4L_CFLAGS=$pkg_cv_LIBV4L_CFLAGS +	LIBV4L_LIBS=$pkg_cv_LIBV4L_LIBS +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +	have_libv4l1=yes +fi +fi + +# Check whether --enable-avahi was given. +if test "${enable_avahi+set}" = set; then : +  enableval=$enable_avahi; enable_avahi=$enableval +else +  enable_avahi=no +fi + + +if test "$enable_avahi" = "yes"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVAHI" >&5 +$as_echo_n "checking for AVAHI... " >&6; } + +if test -n "$AVAHI_CFLAGS"; then +    pkg_cv_AVAHI_CFLAGS="$AVAHI_CFLAGS" + elif test -n "$PKG_CONFIG"; then +    if test -n "$PKG_CONFIG" && \ +    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" avahi-client >= 0.6.24 \""; } >&5 +  ($PKG_CONFIG --exists --print-errors " avahi-client >= 0.6.24 ") 2>&5 +  ac_status=$? +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +  test $ac_status = 0; }; then +  pkg_cv_AVAHI_CFLAGS=`$PKG_CONFIG --cflags " avahi-client >= 0.6.24 " 2>/dev/null` +		      test "x$?" != "x0" && pkg_failed=yes +else +  pkg_failed=yes +fi + else +    pkg_failed=untried +fi +if test -n "$AVAHI_LIBS"; then +    pkg_cv_AVAHI_LIBS="$AVAHI_LIBS" + elif test -n "$PKG_CONFIG"; then +    if test -n "$PKG_CONFIG" && \ +    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" avahi-client >= 0.6.24 \""; } >&5 +  ($PKG_CONFIG --exists --print-errors " avahi-client >= 0.6.24 ") 2>&5 +  ac_status=$? +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +  test $ac_status = 0; }; then +  pkg_cv_AVAHI_LIBS=`$PKG_CONFIG --libs " avahi-client >= 0.6.24 " 2>/dev/null` +		      test "x$?" != "x0" && pkg_failed=yes +else +  pkg_failed=yes +fi + else +    pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then +   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then +        _pkg_short_errors_supported=yes +else +        _pkg_short_errors_supported=no +fi +        if test $_pkg_short_errors_supported = yes; then +	        AVAHI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " avahi-client >= 0.6.24 " 2>&1` +        else +	        AVAHI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " avahi-client >= 0.6.24 " 2>&1` +        fi +	# Put the nasty error message in config.log where it belongs +	echo "$AVAHI_PKG_ERRORS" >&5 + +	enable_avahi=no +elif test $pkg_failed = untried; then +     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +	enable_avahi=no +else +	AVAHI_CFLAGS=$pkg_cv_AVAHI_CFLAGS +	AVAHI_LIBS=$pkg_cv_AVAHI_LIBS +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define WITH_AVAHI 1" >>confdefs.h + +fi +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sane_init in -lsane" >&5 +$as_echo_n "checking for sane_init in -lsane... " >&6; } +if ${ac_cv_lib_sane_sane_init+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lsane  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char sane_init (); +int +main () +{ +return sane_init (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_sane_sane_init=yes +else +  ac_cv_lib_sane_sane_init=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sane_sane_init" >&5 +$as_echo "$ac_cv_lib_sane_sane_init" >&6; } +if test "x$ac_cv_lib_sane_sane_init" = xyes; then : +  LIBSANE_EXISTS="yes" +fi + + + + + +# Check whether --with-snmp was given. +if test "${with_snmp+set}" = set; then : +  withval=$with_snmp; +fi + + +if test "$with_snmp" = "no"; then +	echo "Not including SNMP support" +else +	# Extract the first word of "net-snmp-config", so it can be a program name with args. +set dummy net-snmp-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_SNMP_CONFIG_PATH+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  case $SNMP_CONFIG_PATH in +  [\\/]* | ?:[\\/]*) +  ac_cv_path_SNMP_CONFIG_PATH="$SNMP_CONFIG_PATH" # Let the user override the test with a path. +  ;; +  *) +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_path_SNMP_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS + +  test -z "$ac_cv_path_SNMP_CONFIG_PATH" && ac_cv_path_SNMP_CONFIG_PATH=""no"" +  ;; +esac +fi +SNMP_CONFIG_PATH=$ac_cv_path_SNMP_CONFIG_PATH +if test -n "$SNMP_CONFIG_PATH"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMP_CONFIG_PATH" >&5 +$as_echo "$SNMP_CONFIG_PATH" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for snmp_timeout in -lnetsnmp" >&5 +$as_echo_n "checking for snmp_timeout in -lnetsnmp... " >&6; } +if ${ac_cv_lib_netsnmp_snmp_timeout+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lnetsnmp  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char snmp_timeout (); +int +main () +{ +return snmp_timeout (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_netsnmp_snmp_timeout=yes +else +  ac_cv_lib_netsnmp_snmp_timeout=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_snmp_timeout" >&5 +$as_echo "$ac_cv_lib_netsnmp_snmp_timeout" >&6; } +if test "x$ac_cv_lib_netsnmp_snmp_timeout" = xyes; then : +  LIBSNMP_EXISTS="yes" +fi + +	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for proper SNMP version" >&5 +$as_echo_n "checking for proper SNMP version... " >&6; } +	if test "$SNMP_CONFIG_PATH" != "no" ; then +		snmp_version=`$SNMP_CONFIG_PATH --version 2>/dev/null` +		vers=`echo $snmp_version | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2);}'` +		if test -n "$vers" && test "$vers" -ge 5006; then +			SNMP_LIBS=`$SNMP_CONFIG_PATH --libs` +			SNMP_CFLAGS=`$SNMP_CONFIG_PATH --cflags` +			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +			with_snmp="yes" +		else +			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need at least net-snmp 5.6, your version is $snmp_version" >&5 +$as_echo "$as_me: WARNING: You need at least net-snmp 5.6, your version is $snmp_version" >&2;} +			with_snmp="no" +		fi +	else +		with_snmp="no" +		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +	fi +fi + +if test "$with_snmp" = "yes" && test "${LIBSNMP_EXISTS}x" = "yesx"; then + + + +$as_echo "#define HAVE_LIBSNMP 1" >>confdefs.h + +else +	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: net-snmp library disabled, autodetecting network scanners will not be supported." >&5 +$as_echo "$as_me: WARNING: net-snmp library disabled, autodetecting network scanners will not be supported." >&2;} +fi + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <stdlib.h> +#include <stdarg.h> +#include <string.h> +#include <float.h> + +int +main () +{ + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  ac_cv_header_stdc=yes +else +  ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then +  # SunOS 4.x string.h does not declare mem*, contrary to ANSI. +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <string.h> + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | +  $EGREP "memchr" >/dev/null 2>&1; then : + +else +  ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then +  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <stdlib.h> + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | +  $EGREP "free" >/dev/null 2>&1; then : + +else +  ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then +  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. +  if test "$cross_compiling" = yes; then : +  : +else +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <ctype.h> +#include <stdlib.h> +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ +		   (('a' <= (c) && (c) <= 'i') \ +		     || ('j' <= (c) && (c) <= 'r') \ +		     || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ +  int i; +  for (i = 0; i < 256; i++) +    if (XOR (islower (i), ISLOWER (i)) +	|| toupper (i) != TOUPPER (i)) +      return 2; +  return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else +  ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ +  conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "#define STDC_HEADERS 1" >>confdefs.h + +fi + +for ac_header in fcntl.h unistd.h libc.h sys/dsreq.h sys/select.h \ +    sys/time.h sys/shm.h sys/ipc.h sys/signal.h sys/scanio.h os2.h \ +    sys/socket.h sys/io.h sys/hw.h sys/types.h linux/ppdev.h \ +    dev/ppbus/ppi.h machine/cpufunc.h sys/sem.h sys/poll.h \ +    windows.h be/kernel/OS.h limits.h sys/ioctl.h asm/types.h\ +    netinet/in.h tiffio.h ifaddrs.h pwd.h getopt.h +do : +  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : +  cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +for ac_header in asm/io.h +do : +  ac_fn_c_check_header_compile "$LINENO" "asm/io.h" "ac_cv_header_asm_io_h" "#include <sys/types.h> +" +if test "x$ac_cv_header_asm_io_h" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_ASM_IO_H 1 +_ACEOF + +fi + +done + + + +  MISSING_HEADERS= +  if test "${ac_cv_header_fcntl_h}" != "yes" ; then +    MISSING_HEADERS="${MISSING_HEADERS}\"fcntl.h\" " +  fi +  if test "${ac_cv_header_sys_time_h}" != "yes" ; then +    MISSING_HEADERS="${MISSING_HEADERS}\"sys/time.h\" " +  fi +  if test "${ac_cv_header_unistd_h}" != "yes" ; then +    MISSING_HEADERS="${MISSING_HEADERS}\"unistd.h\" " +  fi +  if test "${ac_cv_header_stdc}" != "yes" ; then +    MISSING_HEADERS="${MISSING_HEADERS}\"ANSI C headers\" " +  fi +  if test "${MISSING_HEADERS}" != "" ; then +    echo "*** The following essential header files couldn't be found:" +    echo "*** ${MISSING_HEADERS}" +    echo "*** Maybe the compiler isn't ANSI C compliant or not properly installed?" +    echo "*** For details on what went wrong see config.log." +    as_fn_error $? "Exiting now." "$LINENO" 5 +  fi + + +for ac_header in winsock2.h +do : +  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" +if test "x$ac_cv_header_winsock2_h" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_WINSOCK2_H 1 +_ACEOF + SOCKET_LIB="-lws2_32" +fi + +done + + +ac_fn_c_check_header_mongrel "$LINENO" "resmgr.h" "ac_cv_header_resmgr_h" "$ac_includes_default" +if test "x$ac_cv_header_resmgr_h" = xyes; then : + +	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rsm_open_device in -lresmgr" >&5 +$as_echo_n "checking for rsm_open_device in -lresmgr... " >&6; } +if ${ac_cv_lib_resmgr_rsm_open_device+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lresmgr  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char rsm_open_device (); +int +main () +{ +return rsm_open_device (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_resmgr_rsm_open_device=yes +else +  ac_cv_lib_resmgr_rsm_open_device=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resmgr_rsm_open_device" >&5 +$as_echo "$ac_cv_lib_resmgr_rsm_open_device" >&6; } +if test "x$ac_cv_lib_resmgr_rsm_open_device" = xyes; then : + + +$as_echo "#define HAVE_RESMGR 1" >>confdefs.h + +			RESMGR_LIBS="-lresmgr" + + +fi + + +fi + + + + + +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" +if test "x$ac_cv_type_size_t" = xyes; then : + +else + +cat >>confdefs.h <<_ACEOF +#define size_t unsigned int +_ACEOF + +fi + +ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" +if test "x$ac_cv_type_pid_t" = xyes; then : + +else + +cat >>confdefs.h <<_ACEOF +#define pid_t int +_ACEOF + +fi + +ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" +if test "x$ac_cv_type_ssize_t" = xyes; then : + +else + +cat >>confdefs.h <<_ACEOF +#define ssize_t int +_ACEOF + +fi + + +ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "$ac_includes_default" +if test "x$ac_cv_type_u_char" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_U_CHAR 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "u_short" "ac_cv_type_u_short" "$ac_includes_default" +if test "x$ac_cv_type_u_short" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_U_SHORT 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "u_int" "ac_cv_type_u_int" "$ac_includes_default" +if test "x$ac_cv_type_u_int" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_U_INT 1 +_ACEOF + + +fi +ac_fn_c_check_type "$LINENO" "u_long" "ac_cv_type_u_long" "$ac_includes_default" +if test "x$ac_cv_type_u_long" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_U_LONG 1 +_ACEOF + + +fi + + + +# from Python, check for "long long" type +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5 +$as_echo_n "checking for long long support... " >&6; } +have_long_long=no +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +long long x; x = (long long)0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h + have_long_long=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5 +$as_echo "$have_long_long" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in <sys/socket.h>" >&5 +$as_echo_n "checking for socklen_t in <sys/socket.h>... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +#include <sys/socket.h> + +int +main () +{ +socklen_t len +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; }; +$as_echo "#define socklen_t int" >>confdefs.h + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for union semun in <sys/sem.h>" >&5 +$as_echo_n "checking for union semun in <sys/sem.h>... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +#include <sys/types.h> +#include <sys/ipc.h> +#include <sys/sem.h> + +int +main () +{ +union semun test_semun +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; }; + +$as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct flock in fcntl.h" >&5 +$as_echo_n "checking for struct flock in fcntl.h... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <fcntl.h> + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | +  $EGREP "struct flock" >/dev/null 2>&1; then : +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } ; + +$as_echo "#define HAVE_STRUCT_FLOCK 1" >>confdefs.h + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +rm -f conftest* + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux ioctl defines" >&5 +$as_echo_n "checking for Linux ioctl defines... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +#include <sys/ioctl.h> +#include <asm/types.h> + +int +main () +{ + +__u32 houba = _IOR('v',14, unsigned long); + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; }; +have_linux_ioctl_defines="yes"; +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 +$as_echo_n "checking whether byte ordering is bigendian... " >&6; } +if ${ac_cv_c_bigendian+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_cv_c_bigendian=unknown +    # See if we're dealing with a universal compiler. +    cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#ifndef __APPLE_CC__ +	       not a universal capable compiler +	     #endif +	     typedef int dummy; + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +	# Check for potential -arch flags.  It is not universal unless +	# there are at least two -arch flags with different values. +	ac_arch= +	ac_prev= +	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do +	 if test -n "$ac_prev"; then +	   case $ac_word in +	     i?86 | x86_64 | ppc | ppc64) +	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then +		 ac_arch=$ac_word +	       else +		 ac_cv_c_bigendian=universal +		 break +	       fi +	       ;; +	   esac +	   ac_prev= +	 elif test "x$ac_word" = "x-arch"; then +	   ac_prev=arch +	 fi +       done +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +    if test $ac_cv_c_bigendian = unknown; then +      # See if sys/param.h defines the BYTE_ORDER macro. +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <sys/types.h> +	     #include <sys/param.h> + +int +main () +{ +#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ +		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ +		     && LITTLE_ENDIAN) +	      bogus endian macros +	     #endif + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  # It does; now see whether it defined to BIG_ENDIAN or not. +	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <sys/types.h> +		#include <sys/param.h> + +int +main () +{ +#if BYTE_ORDER != BIG_ENDIAN +		 not big endian +		#endif + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  ac_cv_c_bigendian=yes +else +  ac_cv_c_bigendian=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +    fi +    if test $ac_cv_c_bigendian = unknown; then +      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <limits.h> + +int +main () +{ +#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) +	      bogus endian macros +	     #endif + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  # It does; now see whether it defined to _BIG_ENDIAN or not. +	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <limits.h> + +int +main () +{ +#ifndef _BIG_ENDIAN +		 not big endian +		#endif + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  ac_cv_c_bigendian=yes +else +  ac_cv_c_bigendian=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +    fi +    if test $ac_cv_c_bigendian = unknown; then +      # Compile a test program. +      if test "$cross_compiling" = yes; then : +  # Try to guess by grepping values from an object file. +	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +short int ascii_mm[] = +		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; +		short int ascii_ii[] = +		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; +		int use_ascii (int i) { +		  return ascii_mm[i] + ascii_ii[i]; +		} +		short int ebcdic_ii[] = +		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; +		short int ebcdic_mm[] = +		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; +		int use_ebcdic (int i) { +		  return ebcdic_mm[i] + ebcdic_ii[i]; +		} +		extern int foo; + +int +main () +{ +return use_ascii (foo) == use_ebcdic (foo); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then +	      ac_cv_c_bigendian=yes +	    fi +	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then +	      if test "$ac_cv_c_bigendian" = unknown; then +		ac_cv_c_bigendian=no +	      else +		# finding both strings is unlikely to happen, but who knows? +		ac_cv_c_bigendian=unknown +	      fi +	    fi +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +else +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +$ac_includes_default +int +main () +{ + +	     /* Are we little or big endian?  From Harbison&Steele.  */ +	     union +	     { +	       long int l; +	       char c[sizeof (long int)]; +	     } u; +	     u.l = 1; +	     return u.c[sizeof (long int) - 1] == 1; + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : +  ac_cv_c_bigendian=no +else +  ac_cv_c_bigendian=yes +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ +  conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +    fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 +$as_echo "$ac_cv_c_bigendian" >&6; } + case $ac_cv_c_bigendian in #( +   yes) +     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h +;; #( +   no) +      ;; #( +   universal) + +$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h + +     ;; #( +   *) +     as_fn_error $? "unknown endianness + presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; + esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 +$as_echo_n "checking for an ANSI C-conforming const... " >&6; } +if ${ac_cv_c_const+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ + +#ifndef __cplusplus +  /* Ultrix mips cc rejects this sort of thing.  */ +  typedef int charset[2]; +  const charset cs = { 0, 0 }; +  /* SunOS 4.1.1 cc rejects this.  */ +  char const *const *pcpcc; +  char **ppc; +  /* NEC SVR4.0.2 mips cc rejects this.  */ +  struct point {int x, y;}; +  static struct point const zero = {0,0}; +  /* AIX XL C 1.02.0.0 rejects this. +     It does not let you subtract one const X* pointer from another in +     an arm of an if-expression whose if-part is not a constant +     expression */ +  const char *g = "string"; +  pcpcc = &g + (g ? g-g : 0); +  /* HPUX 7.0 cc rejects these. */ +  ++pcpcc; +  ppc = (char**) pcpcc; +  pcpcc = (char const *const *) ppc; +  { /* SCO 3.2v4 cc rejects this sort of thing.  */ +    char tx; +    char *t = &tx; +    char const *s = 0 ? (char *) 0 : (char const *) 0; + +    *t++ = 0; +    if (s) return 0; +  } +  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ +    int x[] = {25, 17}; +    const int *foo = &x[0]; +    ++foo; +  } +  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ +    typedef const int *iptr; +    iptr p = 0; +    ++p; +  } +  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying +       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ +    struct s { int j; const int *ap[3]; } bx; +    struct s *b = &bx; b->j = 5; +  } +  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ +    const int foo = 10; +    if (!foo) return 0; +  } +  return !cs[0] && !zero.x; +#endif + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  ac_cv_c_const=yes +else +  ac_cv_c_const=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 +$as_echo "$ac_cv_c_const" >&6; } +if test $ac_cv_c_const = no; then + +$as_echo "#define const /**/" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 +$as_echo_n "checking for inline... " >&6; } +if ${ac_cv_c_inline+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_cv_c_inline=no +for ac_kw in inline __inline__ __inline; do +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#ifndef __cplusplus +typedef int foo_t; +static $ac_kw foo_t static_foo () {return 0; } +$ac_kw foo_t foo () {return 0; } +#endif + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  ac_cv_c_inline=$ac_kw +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +  test "$ac_cv_c_inline" != no && break +done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 +$as_echo "$ac_cv_c_inline" >&6; } + +case $ac_cv_c_inline in +  inline | yes) ;; +  *) +    case $ac_cv_c_inline in +      no) ac_val=;; +      *) ac_val=$ac_cv_c_inline;; +    esac +    cat >>confdefs.h <<_ACEOF +#ifndef __cplusplus +#define inline $ac_val +#endif +_ACEOF +    ;; +esac + + + + +# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works +# for constant arguments.  Useless! +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 +$as_echo_n "checking for working alloca.h... " >&6; } +if ${ac_cv_working_alloca_h+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <alloca.h> +int +main () +{ +char *p = (char *) alloca (2 * sizeof (int)); +			  if (p) return 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_working_alloca_h=yes +else +  ac_cv_working_alloca_h=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 +$as_echo "$ac_cv_working_alloca_h" >&6; } +if test $ac_cv_working_alloca_h = yes; then + +$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 +$as_echo_n "checking for alloca... " >&6; } +if ${ac_cv_func_alloca_works+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#ifdef __GNUC__ +# define alloca __builtin_alloca +#else +# ifdef _MSC_VER +#  include <malloc.h> +#  define alloca _alloca +# else +#  ifdef HAVE_ALLOCA_H +#   include <alloca.h> +#  else +#   ifdef _AIX + #pragma alloca +#   else +#    ifndef alloca /* predefined by HP cc +Olibcalls */ +void *alloca (size_t); +#    endif +#   endif +#  endif +# endif +#endif + +int +main () +{ +char *p = (char *) alloca (1); +				    if (p) return 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_func_alloca_works=yes +else +  ac_cv_func_alloca_works=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 +$as_echo "$ac_cv_func_alloca_works" >&6; } + +if test $ac_cv_func_alloca_works = yes; then + +$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h + +else +  # The SVR3 libPW and SVR4 libucb both contain incompatible functions +# that cause trouble.  Some versions do not even contain alloca or +# contain a buggy version.  If you still want to use their alloca, +# use ar to extract alloca.o from them instead of compiling alloca.c. + +ALLOCA=\${LIBOBJDIR}alloca.$ac_objext + +$as_echo "#define C_ALLOCA 1" >>confdefs.h + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 +$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } +if ${ac_cv_os_cray+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#if defined CRAY && ! defined CRAY2 +webecray +#else +wenotbecray +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | +  $EGREP "webecray" >/dev/null 2>&1; then : +  ac_cv_os_cray=yes +else +  ac_cv_os_cray=no +fi +rm -f conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 +$as_echo "$ac_cv_os_cray" >&6; } +if test $ac_cv_os_cray = yes; then +  for ac_func in _getb67 GETB67 getb67; do +    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + +cat >>confdefs.h <<_ACEOF +#define CRAY_STACKSEG_END $ac_func +_ACEOF + +    break +fi + +  done +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 +$as_echo_n "checking stack direction for C alloca... " >&6; } +if ${ac_cv_c_stack_direction+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if test "$cross_compiling" = yes; then : +  ac_cv_c_stack_direction=0 +else +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +$ac_includes_default +int +find_stack_direction (int *addr, int depth) +{ +  int dir, dummy = 0; +  if (! addr) +    addr = &dummy; +  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; +  dir = depth ? find_stack_direction (addr, depth - 1) : 0; +  return dir + dummy; +} + +int +main (int argc, char **argv) +{ +  return find_stack_direction (0, argc + !argv + 20) < 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : +  ac_cv_c_stack_direction=1 +else +  ac_cv_c_stack_direction=-1 +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ +  conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 +$as_echo "$ac_cv_c_stack_direction" >&6; } +cat >>confdefs.h <<_ACEOF +#define STACK_DIRECTION $ac_cv_c_stack_direction +_ACEOF + + +fi + +ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv" +if test "x$ac_cv_func_getenv" = xyes; then : +  $as_echo "#define HAVE_GETENV 1" >>confdefs.h + +else +  case " $LIBOBJS " in +  *" getenv.$ac_objext "* ) ;; +  *) LIBOBJS="$LIBOBJS getenv.$ac_objext" + ;; +esac + +fi + +ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" +if test "x$ac_cv_func_inet_ntop" = xyes; then : +  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h + +else +  case " $LIBOBJS " in +  *" inet_ntop.$ac_objext "* ) ;; +  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" + ;; +esac + +fi + +ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" +if test "x$ac_cv_func_inet_pton" = xyes; then : +  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h + +else +  case " $LIBOBJS " in +  *" inet_pton.$ac_objext "* ) ;; +  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" + ;; +esac + +fi + +ac_fn_c_check_func "$LINENO" "isfdtype" "ac_cv_func_isfdtype" +if test "x$ac_cv_func_isfdtype" = xyes; then : +  $as_echo "#define HAVE_ISFDTYPE 1" >>confdefs.h + +else +  case " $LIBOBJS " in +  *" isfdtype.$ac_objext "* ) ;; +  *) LIBOBJS="$LIBOBJS isfdtype.$ac_objext" + ;; +esac + +fi + +ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" +if test "x$ac_cv_func_sigprocmask" = xyes; then : +  $as_echo "#define HAVE_SIGPROCMASK 1" >>confdefs.h + +else +  case " $LIBOBJS " in +  *" sigprocmask.$ac_objext "* ) ;; +  *) LIBOBJS="$LIBOBJS sigprocmask.$ac_objext" + ;; +esac + +fi + +ac_fn_c_check_func "$LINENO" "sleep" "ac_cv_func_sleep" +if test "x$ac_cv_func_sleep" = xyes; then : +  $as_echo "#define HAVE_SLEEP 1" >>confdefs.h + +else +  case " $LIBOBJS " in +  *" sleep.$ac_objext "* ) ;; +  *) LIBOBJS="$LIBOBJS sleep.$ac_objext" + ;; +esac + +fi + +ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" +if test "x$ac_cv_func_snprintf" = xyes; then : +  $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h + +else +  case " $LIBOBJS " in +  *" snprintf.$ac_objext "* ) ;; +  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" + ;; +esac + +fi + +ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" +if test "x$ac_cv_func_strcasestr" = xyes; then : +  $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h + +else +  case " $LIBOBJS " in +  *" strcasestr.$ac_objext "* ) ;; +  *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext" + ;; +esac + +fi + +ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" +if test "x$ac_cv_func_strdup" = xyes; then : +  $as_echo "#define HAVE_STRDUP 1" >>confdefs.h + +else +  case " $LIBOBJS " in +  *" strdup.$ac_objext "* ) ;; +  *) LIBOBJS="$LIBOBJS strdup.$ac_objext" + ;; +esac + +fi + +ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" +if test "x$ac_cv_func_strndup" = xyes; then : +  $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h + +else +  case " $LIBOBJS " in +  *" strndup.$ac_objext "* ) ;; +  *) LIBOBJS="$LIBOBJS strndup.$ac_objext" + ;; +esac + +fi + +ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" +if test "x$ac_cv_func_strsep" = xyes; then : +  $as_echo "#define HAVE_STRSEP 1" >>confdefs.h + +else +  case " $LIBOBJS " in +  *" strsep.$ac_objext "* ) ;; +  *) LIBOBJS="$LIBOBJS strsep.$ac_objext" + ;; +esac + +fi + +ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog" +if test "x$ac_cv_func_syslog" = xyes; then : +  $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h + +else +  case " $LIBOBJS " in +  *" syslog.$ac_objext "* ) ;; +  *) LIBOBJS="$LIBOBJS syslog.$ac_objext" + ;; +esac + +fi + +ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep" +if test "x$ac_cv_func_usleep" = xyes; then : +  $as_echo "#define HAVE_USLEEP 1" >>confdefs.h + +else +  case " $LIBOBJS " in +  *" usleep.$ac_objext "* ) ;; +  *) LIBOBJS="$LIBOBJS usleep.$ac_objext" + ;; +esac + +fi + +ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog" +if test "x$ac_cv_func_vsyslog" = xyes; then : +  $as_echo "#define HAVE_VSYSLOG 1" >>confdefs.h + +else +  case " $LIBOBJS " in +  *" vsyslog.$ac_objext "* ) ;; +  *) LIBOBJS="$LIBOBJS vsyslog.$ac_objext" + ;; +esac + +fi + + +if test x != x$ALLOCA; then : +  LTALLOCA=`echo "$ALLOCA" | sed 's/\.o$//; s/\.obj$//'`.lo +fi + + +ac_fn_c_check_func "$LINENO" "gethostbyaddr" "ac_cv_func_gethostbyaddr" +if test "x$ac_cv_func_gethostbyaddr" = xyes; then : + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lbind" >&5 +$as_echo_n "checking for gethostbyaddr in -lbind... " >&6; } +if ${ac_cv_lib_bind_gethostbyaddr+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lbind  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char gethostbyaddr (); +int +main () +{ +return gethostbyaddr (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_bind_gethostbyaddr=yes +else +  ac_cv_lib_bind_gethostbyaddr=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_gethostbyaddr" >&5 +$as_echo "$ac_cv_lib_bind_gethostbyaddr" >&6; } +if test "x$ac_cv_lib_bind_gethostbyaddr" = xyes; then : +  BIND_LIB="-lbind" +fi + +fi + +ac_fn_c_check_func "$LINENO" "gethostbyaddr" "ac_cv_func_gethostbyaddr" +if test "x$ac_cv_func_gethostbyaddr" = xyes; then : + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lnsl" >&5 +$as_echo_n "checking for gethostbyaddr in -lnsl... " >&6; } +if ${ac_cv_lib_nsl_gethostbyaddr+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char gethostbyaddr (); +int +main () +{ +return gethostbyaddr (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_nsl_gethostbyaddr=yes +else +  ac_cv_lib_nsl_gethostbyaddr=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyaddr" >&5 +$as_echo "$ac_cv_lib_nsl_gethostbyaddr" >&6; } +if test "x$ac_cv_lib_nsl_gethostbyaddr" = xyes; then : +  NSL_LIB="-lnsl" +fi + +fi + +ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" +if test "x$ac_cv_func_socket" = xyes; then : + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 +$as_echo_n "checking for socket in -lsocket... " >&6; } +if ${ac_cv_lib_socket_socket+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char socket (); +int +main () +{ +return socket (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_socket_socket=yes +else +  ac_cv_lib_socket_socket=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 +$as_echo "$ac_cv_lib_socket_socket" >&6; } +if test "x$ac_cv_lib_socket_socket" = xyes; then : +  SOCKET_LIB="-lsocket" +fi + +fi + +ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" +if test "x$ac_cv_func_inet_aton" = xyes; then : + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 +$as_echo_n "checking for inet_aton in -lresolv... " >&6; } +if ${ac_cv_lib_resolv_inet_aton+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lresolv  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char inet_aton (); +int +main () +{ +return inet_aton (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_resolv_inet_aton=yes +else +  ac_cv_lib_resolv_inet_aton=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 +$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } +if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then : +  RESOLV_LIB="-lresolv" +fi + +fi + + +SOCKET_LIBS="$SOCKET_LIB $NSL_LIB $BIND_LIB $RESOLV_LIB" + + +save_LIBS="$LIBS" +LIBS="$LIBS $SOCKET_LIBS" +for ac_func in inet_addr inet_aton inet_ntoa +do : +  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : +  cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + +LIBS="$save_LIBS" + +if test "$ac_cv_header_be_kernel_OS_h" = "yes" ; then +        ac_cv_func_getaddrinfo=no +    ac_cv_func_getnameinfo=no +fi + + + + +  for ac_header in $ac_header_list +do : +  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : +  cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + + + + + + +for ac_func in getpagesize +do : +  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" +if test "x$ac_cv_func_getpagesize" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_GETPAGESIZE 1 +_ACEOF + +fi +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 +$as_echo_n "checking for working mmap... " >&6; } +if ${ac_cv_func_mmap_fixed_mapped+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if test "$cross_compiling" = yes; then : +  ac_cv_func_mmap_fixed_mapped=no +else +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +$ac_includes_default +/* malloc might have been renamed as rpl_malloc. */ +#undef malloc + +/* Thanks to Mike Haertel and Jim Avera for this test. +   Here is a matrix of mmap possibilities: +	mmap private not fixed +	mmap private fixed at somewhere currently unmapped +	mmap private fixed at somewhere already mapped +	mmap shared not fixed +	mmap shared fixed at somewhere currently unmapped +	mmap shared fixed at somewhere already mapped +   For private mappings, we should verify that changes cannot be read() +   back from the file, nor mmap's back from the file at a different +   address.  (There have been systems where private was not correctly +   implemented like the infamous i386 svr4.0, and systems where the +   VM page cache was not coherent with the file system buffer cache +   like early versions of FreeBSD and possibly contemporary NetBSD.) +   For shared mappings, we should conversely verify that changes get +   propagated back to all the places they're supposed to be. + +   Grep wants private fixed already mapped. +   The main things grep needs to know about mmap are: +   * does it exist and is it safe to write into the mmap'd area +   * how to use it (BSD variants)  */ + +#include <fcntl.h> +#include <sys/mman.h> + +#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H +char *malloc (); +#endif + +/* This mess was copied from the GNU getpagesize.h.  */ +#ifndef HAVE_GETPAGESIZE +# ifdef _SC_PAGESIZE +#  define getpagesize() sysconf(_SC_PAGESIZE) +# else /* no _SC_PAGESIZE */ +#  ifdef HAVE_SYS_PARAM_H +#   include <sys/param.h> +#   ifdef EXEC_PAGESIZE +#    define getpagesize() EXEC_PAGESIZE +#   else /* no EXEC_PAGESIZE */ +#    ifdef NBPG +#     define getpagesize() NBPG * CLSIZE +#     ifndef CLSIZE +#      define CLSIZE 1 +#     endif /* no CLSIZE */ +#    else /* no NBPG */ +#     ifdef NBPC +#      define getpagesize() NBPC +#     else /* no NBPC */ +#      ifdef PAGESIZE +#       define getpagesize() PAGESIZE +#      endif /* PAGESIZE */ +#     endif /* no NBPC */ +#    endif /* no NBPG */ +#   endif /* no EXEC_PAGESIZE */ +#  else /* no HAVE_SYS_PARAM_H */ +#   define getpagesize() 8192	/* punt totally */ +#  endif /* no HAVE_SYS_PARAM_H */ +# endif /* no _SC_PAGESIZE */ + +#endif /* no HAVE_GETPAGESIZE */ + +int +main () +{ +  char *data, *data2, *data3; +  const char *cdata2; +  int i, pagesize; +  int fd, fd2; + +  pagesize = getpagesize (); + +  /* First, make a file with some known garbage in it. */ +  data = (char *) malloc (pagesize); +  if (!data) +    return 1; +  for (i = 0; i < pagesize; ++i) +    *(data + i) = rand (); +  umask (0); +  fd = creat ("conftest.mmap", 0600); +  if (fd < 0) +    return 2; +  if (write (fd, data, pagesize) != pagesize) +    return 3; +  close (fd); + +  /* Next, check that the tail of a page is zero-filled.  File must have +     non-zero length, otherwise we risk SIGBUS for entire page.  */ +  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); +  if (fd2 < 0) +    return 4; +  cdata2 = ""; +  if (write (fd2, cdata2, 1) != 1) +    return 5; +  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); +  if (data2 == MAP_FAILED) +    return 6; +  for (i = 0; i < pagesize; ++i) +    if (*(data2 + i)) +      return 7; +  close (fd2); +  if (munmap (data2, pagesize)) +    return 8; + +  /* Next, try to mmap the file at a fixed address which already has +     something else allocated at it.  If we can, also make sure that +     we see the same garbage.  */ +  fd = open ("conftest.mmap", O_RDWR); +  if (fd < 0) +    return 9; +  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, +		     MAP_PRIVATE | MAP_FIXED, fd, 0L)) +    return 10; +  for (i = 0; i < pagesize; ++i) +    if (*(data + i) != *(data2 + i)) +      return 11; + +  /* Finally, make sure that changes to the mapped area do not +     percolate back to the file as seen by read().  (This is a bug on +     some variants of i386 svr4.0.)  */ +  for (i = 0; i < pagesize; ++i) +    *(data2 + i) = *(data2 + i) + 1; +  data3 = (char *) malloc (pagesize); +  if (!data3) +    return 12; +  if (read (fd, data3, pagesize) != pagesize) +    return 13; +  for (i = 0; i < pagesize; ++i) +    if (*(data + i) != *(data3 + i)) +      return 14; +  close (fd); +  return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : +  ac_cv_func_mmap_fixed_mapped=yes +else +  ac_cv_func_mmap_fixed_mapped=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ +  conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 +$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } +if test $ac_cv_func_mmap_fixed_mapped = yes; then + +$as_echo "#define HAVE_MMAP 1" >>confdefs.h + +fi +rm -f conftest.mmap conftest.txt + +for ac_func in atexit ioperm i386_set_ioperm \ +    mkdir strftime strstr strtod  \ +    cfmakeraw tcsendbreak strcasecmp strncasecmp _portaccess \ +    getaddrinfo getnameinfo poll setitimer iopl getuid getpass +do : +  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : +  cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + +if test "${ac_cv_header_sys_io_h}" = "yes"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inb,outb (provided by sys/io.h)" >&5 +$as_echo_n "checking for inb,outb (provided by sys/io.h)... " >&6; } +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <sys/io.h> +int +main () +{ +inb(0);outb(0,0); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +      sane_cv_have_sys_io_h_with_inb_outb="yes" +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +      sane_cv_have_sys_io_h_with_inb_outb="no" +      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sys/io.h does not provide inb,outb (non i386/x32/x86_64 arch?)" >&5 +$as_echo "$as_me: WARNING: sys/io.h does not provide inb,outb (non i386/x32/x86_64 arch?)" >&2;} +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +  if test "$sane_cv_have_sys_io_h_with_inb_outb" = "yes"; then + +$as_echo "#define SANE_HAVE_SYS_IO_H_WITH_INB_OUTB 1" >>confdefs.h + +  fi +else +  sane_cv_have_sys_io_h_with_inb_outb="no" +fi + + + + + +if test "$ac_cv_header_os2_h" = "yes" ; then + +$as_echo "#define strncasecmp strnicmp" >>confdefs.h + + +$as_echo "#define strcasecmp stricmp" >>confdefs.h + +fi + +if test "$ac_cv_header_getopt_h" = "yes" ; then +  for ac_func in getopt_long +do : +  ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" +if test "x$ac_cv_func_getopt_long" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_GETOPT_LONG 1 +_ACEOF + +fi +done + +fi + +# Slightly abuse the AC_LIBOBJ macro to mark files as replacement code +if test x$ac_cv_header_getopt_h != xyes \ +       && test x$ac_cv_func_getopt_long != xyes; then : +  case " $LIBOBJS " in +  *" getopt.$ac_objext "* ) ;; +  *) LIBOBJS="$LIBOBJS getopt.$ac_objext" + ;; +esac + +       case " $LIBOBJS " in +  *" getopt1.$ac_objext "* ) ;; +  *) LIBOBJS="$LIBOBJS getopt1.$ac_objext" + ;; +esac + +fi + +if test -c /dev/urandom ; then + +$as_echo "#define HAVE_DEV_URANDOM 1" >>confdefs.h + +fi + + +# Check whether --with-systemd was given. +if test "${with_systemd+set}" = set; then : +  withval=$with_systemd; +fi + +if test "x$with_systemd" != xno ; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5 +$as_echo_n "checking for SYSTEMD... " >&6; } + +if test -n "$SYSTEMD_CFLAGS"; then +    pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS" + elif test -n "$PKG_CONFIG"; then +    if test -n "$PKG_CONFIG" && \ +    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 +  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 +  ac_status=$? +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +  test $ac_status = 0; }; then +  pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null` +		      test "x$?" != "x0" && pkg_failed=yes +else +  pkg_failed=yes +fi + else +    pkg_failed=untried +fi +if test -n "$SYSTEMD_LIBS"; then +    pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS" + elif test -n "$PKG_CONFIG"; then +    if test -n "$PKG_CONFIG" && \ +    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 +  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 +  ac_status=$? +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +  test $ac_status = 0; }; then +  pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null` +		      test "x$?" != "x0" && pkg_failed=yes +else +  pkg_failed=yes +fi + else +    pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then +   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then +        _pkg_short_errors_supported=yes +else +        _pkg_short_errors_supported=no +fi +        if test $_pkg_short_errors_supported = yes; then +	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1` +        else +	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1` +        fi +	# Put the nasty error message in config.log where it belongs +	echo "$SYSTEMD_PKG_ERRORS" >&5 + +	have_systemd=no +elif test $pkg_failed = untried; then +     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +	have_systemd=no +else +	SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS +	SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +	have_systemd=yes +fi +  if test "x$have_systemd" = xno; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5 +$as_echo_n "checking for SYSTEMD... " >&6; } + +if test -n "$SYSTEMD_CFLAGS"; then +    pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS" + elif test -n "$PKG_CONFIG"; then +    if test -n "$PKG_CONFIG" && \ +    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 +  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 +  ac_status=$? +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +  test $ac_status = 0; }; then +  pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null` +		      test "x$?" != "x0" && pkg_failed=yes +else +  pkg_failed=yes +fi + else +    pkg_failed=untried +fi +if test -n "$SYSTEMD_LIBS"; then +    pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS" + elif test -n "$PKG_CONFIG"; then +    if test -n "$PKG_CONFIG" && \ +    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 +  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 +  ac_status=$? +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +  test $ac_status = 0; }; then +  pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null` +		      test "x$?" != "x0" && pkg_failed=yes +else +  pkg_failed=yes +fi + else +    pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then +   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then +        _pkg_short_errors_supported=yes +else +        _pkg_short_errors_supported=no +fi +        if test $_pkg_short_errors_supported = yes; then +	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1` +        else +	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1` +        fi +	# Put the nasty error message in config.log where it belongs +	echo "$SYSTEMD_PKG_ERRORS" >&5 + +	have_systemd=no +elif test $pkg_failed = untried; then +     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +	have_systemd=no +else +	SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS +	SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +	have_systemd=yes +fi +  fi +  if test "x$have_systemd" = xyes; then + +$as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h + +  else +    if test "x$with_systemd" = xyes; then +      as_fn_error $? "Systemd support was requested but systemd was not found" "$LINENO" 5 +    fi +  fi +fi + + + +# Check whether --with-usb was given. +if test "${with_usb+set}" = set; then : +  withval=$with_usb; +else +  with_usb=check +fi + +if test xno != "x$with_usb"; then : +  have_usb=no +   case x$host_os in #( +      beos*) : +    ac_fn_c_check_header_mongrel "$LINENO" "be/drivers/USB_scanner.h" "ac_cv_header_be_drivers_USB_scanner_h" "$ac_includes_default" +if test "x$ac_cv_header_be_drivers_USB_scanner_h" = xyes; then : +  have_usb=yes +fi + + ;; #( +  os2*) : +    ac_fn_c_check_header_compile "$LINENO" "usbcalls.h" "ac_cv_header_usbcalls_h" "#include <usb.h> +         #include <os2.h> + +" +if test "x$ac_cv_header_usbcalls_h" = xyes; then : +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UsbQueryNumberDevices in -lusbcall" >&5 +$as_echo_n "checking for UsbQueryNumberDevices in -lusbcall... " >&6; } +if ${ac_cv_lib_usbcall_UsbQueryNumberDevices+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lusbcall  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char UsbQueryNumberDevices (); +int +main () +{ +return UsbQueryNumberDevices (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_usbcall_UsbQueryNumberDevices=yes +else +  ac_cv_lib_usbcall_UsbQueryNumberDevices=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbcall_UsbQueryNumberDevices" >&5 +$as_echo "$ac_cv_lib_usbcall_UsbQueryNumberDevices" >&6; } +if test "x$ac_cv_lib_usbcall_UsbQueryNumberDevices" = xyes; then : +  USB_LIBS="-lusbcall" +           have_usb=yes + +$as_echo "#define HAVE_USBCALLS 1" >>confdefs.h + + +fi + + +fi + + +       ;; #( +  *) : + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB" >&5 +$as_echo_n "checking for USB... " >&6; } + +if test -n "$USB_CFLAGS"; then +    pkg_cv_USB_CFLAGS="$USB_CFLAGS" + elif test -n "$PKG_CONFIG"; then +    if test -n "$PKG_CONFIG" && \ +    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5 +  ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5 +  ac_status=$? +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +  test $ac_status = 0; }; then +  pkg_cv_USB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null` +		      test "x$?" != "x0" && pkg_failed=yes +else +  pkg_failed=yes +fi + else +    pkg_failed=untried +fi +if test -n "$USB_LIBS"; then +    pkg_cv_USB_LIBS="$USB_LIBS" + elif test -n "$PKG_CONFIG"; then +    if test -n "$PKG_CONFIG" && \ +    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5 +  ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5 +  ac_status=$? +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +  test $ac_status = 0; }; then +  pkg_cv_USB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null` +		      test "x$?" != "x0" && pkg_failed=yes +else +  pkg_failed=yes +fi + else +    pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then +   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then +        _pkg_short_errors_supported=yes +else +        _pkg_short_errors_supported=no +fi +        if test $_pkg_short_errors_supported = yes; then +	        USB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1` +        else +	        USB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1` +        fi +	# Put the nasty error message in config.log where it belongs +	echo "$USB_PKG_ERRORS" >&5 + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB" >&5 +$as_echo_n "checking for USB... " >&6; } + +if test -n "$USB_CFLAGS"; then +    pkg_cv_USB_CFLAGS="$USB_CFLAGS" + elif test -n "$PKG_CONFIG"; then +    if test -n "$PKG_CONFIG" && \ +    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb >= 0.1.8\""; } >&5 +  ($PKG_CONFIG --exists --print-errors "libusb >= 0.1.8") 2>&5 +  ac_status=$? +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +  test $ac_status = 0; }; then +  pkg_cv_USB_CFLAGS=`$PKG_CONFIG --cflags "libusb >= 0.1.8" 2>/dev/null` +		      test "x$?" != "x0" && pkg_failed=yes +else +  pkg_failed=yes +fi + else +    pkg_failed=untried +fi +if test -n "$USB_LIBS"; then +    pkg_cv_USB_LIBS="$USB_LIBS" + elif test -n "$PKG_CONFIG"; then +    if test -n "$PKG_CONFIG" && \ +    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb >= 0.1.8\""; } >&5 +  ($PKG_CONFIG --exists --print-errors "libusb >= 0.1.8") 2>&5 +  ac_status=$? +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +  test $ac_status = 0; }; then +  pkg_cv_USB_LIBS=`$PKG_CONFIG --libs "libusb >= 0.1.8" 2>/dev/null` +		      test "x$?" != "x0" && pkg_failed=yes +else +  pkg_failed=yes +fi + else +    pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then +   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then +        _pkg_short_errors_supported=yes +else +        _pkg_short_errors_supported=no +fi +        if test $_pkg_short_errors_supported = yes; then +	        USB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb >= 0.1.8" 2>&1` +        else +	        USB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb >= 0.1.8" 2>&1` +        fi +	# Put the nasty error message in config.log where it belongs +	echo "$USB_PKG_ERRORS" >&5 + +	         ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default" +if test "x$ac_cv_header_usb_h" = xyes; then : +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_interrupt_read in -lusb" >&5 +$as_echo_n "checking for usb_interrupt_read in -lusb... " >&6; } +if ${ac_cv_lib_usb_usb_interrupt_read+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lusb  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char usb_interrupt_read (); +int +main () +{ +return usb_interrupt_read (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_usb_usb_interrupt_read=yes +else +  ac_cv_lib_usb_usb_interrupt_read=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_interrupt_read" >&5 +$as_echo "$ac_cv_lib_usb_usb_interrupt_read" >&6; } +if test "x$ac_cv_lib_usb_usb_interrupt_read" = xyes; then : +  USB_LIBS="-lusb" +             have_usb=yes + +fi + +fi + + +         for ac_header in lusb0_usb.h +do : +  ac_fn_c_check_header_mongrel "$LINENO" "lusb0_usb.h" "ac_cv_header_lusb0_usb_h" "$ac_includes_default" +if test "x$ac_cv_header_lusb0_usb_h" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_LUSB0_USB_H 1 +_ACEOF + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_interrupt_read in -lusb" >&5 +$as_echo_n "checking for usb_interrupt_read in -lusb... " >&6; } +if ${ac_cv_lib_usb_usb_interrupt_read+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lusb  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char usb_interrupt_read (); +int +main () +{ +return usb_interrupt_read (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_usb_usb_interrupt_read=yes +else +  ac_cv_lib_usb_usb_interrupt_read=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_interrupt_read" >&5 +$as_echo "$ac_cv_lib_usb_usb_interrupt_read" >&6; } +if test "x$ac_cv_lib_usb_usb_interrupt_read" = xyes; then : +  USB_LIBS="-lusb" +              have_usb=yes + +fi + +fi + +done + + +elif test $pkg_failed = untried; then +     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +	         ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default" +if test "x$ac_cv_header_usb_h" = xyes; then : +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_interrupt_read in -lusb" >&5 +$as_echo_n "checking for usb_interrupt_read in -lusb... " >&6; } +if ${ac_cv_lib_usb_usb_interrupt_read+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lusb  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char usb_interrupt_read (); +int +main () +{ +return usb_interrupt_read (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_usb_usb_interrupt_read=yes +else +  ac_cv_lib_usb_usb_interrupt_read=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_interrupt_read" >&5 +$as_echo "$ac_cv_lib_usb_usb_interrupt_read" >&6; } +if test "x$ac_cv_lib_usb_usb_interrupt_read" = xyes; then : +  USB_LIBS="-lusb" +             have_usb=yes + +fi + +fi + + +         for ac_header in lusb0_usb.h +do : +  ac_fn_c_check_header_mongrel "$LINENO" "lusb0_usb.h" "ac_cv_header_lusb0_usb_h" "$ac_includes_default" +if test "x$ac_cv_header_lusb0_usb_h" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_LUSB0_USB_H 1 +_ACEOF + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_interrupt_read in -lusb" >&5 +$as_echo_n "checking for usb_interrupt_read in -lusb... " >&6; } +if ${ac_cv_lib_usb_usb_interrupt_read+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lusb  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char usb_interrupt_read (); +int +main () +{ +return usb_interrupt_read (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_usb_usb_interrupt_read=yes +else +  ac_cv_lib_usb_usb_interrupt_read=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_interrupt_read" >&5 +$as_echo "$ac_cv_lib_usb_usb_interrupt_read" >&6; } +if test "x$ac_cv_lib_usb_usb_interrupt_read" = xyes; then : +  USB_LIBS="-lusb" +              have_usb=yes + +fi + +fi + +done + + +else +	USB_CFLAGS=$pkg_cv_USB_CFLAGS +	USB_LIBS=$pkg_cv_USB_LIBS +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define HAVE_LIBUSB_LEGACY 1" >>confdefs.h + +         have_usb=yes + +fi + +elif test $pkg_failed = untried; then +     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB" >&5 +$as_echo_n "checking for USB... " >&6; } + +if test -n "$USB_CFLAGS"; then +    pkg_cv_USB_CFLAGS="$USB_CFLAGS" + elif test -n "$PKG_CONFIG"; then +    if test -n "$PKG_CONFIG" && \ +    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb >= 0.1.8\""; } >&5 +  ($PKG_CONFIG --exists --print-errors "libusb >= 0.1.8") 2>&5 +  ac_status=$? +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +  test $ac_status = 0; }; then +  pkg_cv_USB_CFLAGS=`$PKG_CONFIG --cflags "libusb >= 0.1.8" 2>/dev/null` +		      test "x$?" != "x0" && pkg_failed=yes +else +  pkg_failed=yes +fi + else +    pkg_failed=untried +fi +if test -n "$USB_LIBS"; then +    pkg_cv_USB_LIBS="$USB_LIBS" + elif test -n "$PKG_CONFIG"; then +    if test -n "$PKG_CONFIG" && \ +    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb >= 0.1.8\""; } >&5 +  ($PKG_CONFIG --exists --print-errors "libusb >= 0.1.8") 2>&5 +  ac_status=$? +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +  test $ac_status = 0; }; then +  pkg_cv_USB_LIBS=`$PKG_CONFIG --libs "libusb >= 0.1.8" 2>/dev/null` +		      test "x$?" != "x0" && pkg_failed=yes +else +  pkg_failed=yes +fi + else +    pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then +   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then +        _pkg_short_errors_supported=yes +else +        _pkg_short_errors_supported=no +fi +        if test $_pkg_short_errors_supported = yes; then +	        USB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb >= 0.1.8" 2>&1` +        else +	        USB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb >= 0.1.8" 2>&1` +        fi +	# Put the nasty error message in config.log where it belongs +	echo "$USB_PKG_ERRORS" >&5 + +	         ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default" +if test "x$ac_cv_header_usb_h" = xyes; then : +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_interrupt_read in -lusb" >&5 +$as_echo_n "checking for usb_interrupt_read in -lusb... " >&6; } +if ${ac_cv_lib_usb_usb_interrupt_read+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lusb  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char usb_interrupt_read (); +int +main () +{ +return usb_interrupt_read (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_usb_usb_interrupt_read=yes +else +  ac_cv_lib_usb_usb_interrupt_read=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_interrupt_read" >&5 +$as_echo "$ac_cv_lib_usb_usb_interrupt_read" >&6; } +if test "x$ac_cv_lib_usb_usb_interrupt_read" = xyes; then : +  USB_LIBS="-lusb" +             have_usb=yes + +fi + +fi + + +         for ac_header in lusb0_usb.h +do : +  ac_fn_c_check_header_mongrel "$LINENO" "lusb0_usb.h" "ac_cv_header_lusb0_usb_h" "$ac_includes_default" +if test "x$ac_cv_header_lusb0_usb_h" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_LUSB0_USB_H 1 +_ACEOF + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_interrupt_read in -lusb" >&5 +$as_echo_n "checking for usb_interrupt_read in -lusb... " >&6; } +if ${ac_cv_lib_usb_usb_interrupt_read+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lusb  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char usb_interrupt_read (); +int +main () +{ +return usb_interrupt_read (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_usb_usb_interrupt_read=yes +else +  ac_cv_lib_usb_usb_interrupt_read=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_interrupt_read" >&5 +$as_echo "$ac_cv_lib_usb_usb_interrupt_read" >&6; } +if test "x$ac_cv_lib_usb_usb_interrupt_read" = xyes; then : +  USB_LIBS="-lusb" +              have_usb=yes + +fi + +fi + +done + + +elif test $pkg_failed = untried; then +     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +	         ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default" +if test "x$ac_cv_header_usb_h" = xyes; then : +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_interrupt_read in -lusb" >&5 +$as_echo_n "checking for usb_interrupt_read in -lusb... " >&6; } +if ${ac_cv_lib_usb_usb_interrupt_read+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lusb  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char usb_interrupt_read (); +int +main () +{ +return usb_interrupt_read (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_usb_usb_interrupt_read=yes +else +  ac_cv_lib_usb_usb_interrupt_read=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_interrupt_read" >&5 +$as_echo "$ac_cv_lib_usb_usb_interrupt_read" >&6; } +if test "x$ac_cv_lib_usb_usb_interrupt_read" = xyes; then : +  USB_LIBS="-lusb" +             have_usb=yes + +fi + +fi + + +         for ac_header in lusb0_usb.h +do : +  ac_fn_c_check_header_mongrel "$LINENO" "lusb0_usb.h" "ac_cv_header_lusb0_usb_h" "$ac_includes_default" +if test "x$ac_cv_header_lusb0_usb_h" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_LUSB0_USB_H 1 +_ACEOF + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_interrupt_read in -lusb" >&5 +$as_echo_n "checking for usb_interrupt_read in -lusb... " >&6; } +if ${ac_cv_lib_usb_usb_interrupt_read+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lusb  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char usb_interrupt_read (); +int +main () +{ +return usb_interrupt_read (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_usb_usb_interrupt_read=yes +else +  ac_cv_lib_usb_usb_interrupt_read=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_interrupt_read" >&5 +$as_echo "$ac_cv_lib_usb_usb_interrupt_read" >&6; } +if test "x$ac_cv_lib_usb_usb_interrupt_read" = xyes; then : +  USB_LIBS="-lusb" +              have_usb=yes + +fi + +fi + +done + + +else +	USB_CFLAGS=$pkg_cv_USB_CFLAGS +	USB_LIBS=$pkg_cv_USB_LIBS +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define HAVE_LIBUSB_LEGACY 1" >>confdefs.h + +         have_usb=yes + +fi + +else +	USB_CFLAGS=$pkg_cv_USB_CFLAGS +	USB_LIBS=$pkg_cv_USB_LIBS +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define HAVE_LIBUSB 1" >>confdefs.h + +       have_usb=yes + +fi +     ;; +esac + +fi +if test xyes = "x$with_usb" && test xyes != "x$have_usb"; then : +  as_fn_error $? "USB support requested but required libraries not found." "$LINENO" 5 + +fi + if test x != "x$USB_LIBS"; then +  have_usblib_TRUE= +  have_usblib_FALSE='#' +else +  have_usblib_TRUE='#' +  have_usblib_FALSE= +fi + + + + +# Unset VERSION during the SCSI header check +sed "s!^#define VERSION .*!/* & */!" confdefs.h > confdefs.h.tmp +mv confdefs.h.tmp confdefs.h + +for ac_header in IOKit/scsi/SCSITaskLib.h IOKit/cdb/IOSCSILib.h \ +  IOKit/scsi/SCSICommandOperationCodes.h \ +  IOKit/scsi-commands/SCSICommandOperationCodes.h scsi.h sys/scsi.h \ +  sys/scsicmd.h sys/scsiio.h bsd/dev/scsireg.h scsi/sg.h \ +  camlib.h gscdds.h sys/scsi/scsi.h sys/scsi/sgdefs.h \ +  sys/scsi/targets/scgio.h apollo/scsi.h sys/sdi_comm.h \ +  sys/passthrudef.h +do : +  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : +  cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +# Restore VERSION +sed "s!/\* \(#define VERSION .*\) \*/!\1!" confdefs.h > confdefs.h.tmp +mv confdefs.h.tmp confdefs.h + +for ac_header in io/cam/cam.h +do : +  ac_fn_c_check_header_compile "$LINENO" "io/cam/cam.h" "ac_cv_header_io_cam_cam_h" "#include <io/common/iotypes.h> +" +if test "x$ac_cv_header_io_cam_cam_h" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_IO_CAM_CAM_H 1 +_ACEOF + +fi + +done + +for ac_header in ntddscsi.h ddk/ntddscsi.h +do : +  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <windows.h> +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : +  cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +if test "$ac_cv_header_sys_scsiio_h" = "yes" \ +  && test "$ac_cv_header_scsi_h" = "yes"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 'scsireq_t' needs to be defined as 'struct scsireq'" >&5 +$as_echo_n "checking if 'scsireq_t' needs to be defined as 'struct scsireq'... " >&6; } +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +#include <sys/scsiio.h> +#include <scsi.h> + +int +main () +{ +scsireq_t req +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; }; + +$as_echo "#define scsireq_t struct scsireq_t" >>confdefs.h + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for scsireq_enter in -lscsi" >&5 +$as_echo_n "checking for scsireq_enter in -lscsi... " >&6; } +if ${ac_cv_lib_scsi_scsireq_enter+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lscsi  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char scsireq_enter (); +int +main () +{ +return scsireq_enter (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_scsi_scsireq_enter=yes +else +  ac_cv_lib_scsi_scsireq_enter=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_scsi_scsireq_enter" >&5 +$as_echo "$ac_cv_lib_scsi_scsireq_enter" >&6; } +if test "x$ac_cv_lib_scsi_scsireq_enter" = xyes; then : +  SCSI_LIBS="-lscsi" +fi + # FreeBSD needs this + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cam_open_device in -lcam" >&5 +$as_echo_n "checking for cam_open_device in -lcam... " >&6; } +if ${ac_cv_lib_cam_cam_open_device+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lcam  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char cam_open_device (); +int +main () +{ +return cam_open_device (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_cam_cam_open_device=yes +else +  ac_cv_lib_cam_cam_open_device=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cam_cam_open_device" >&5 +$as_echo "$ac_cv_lib_cam_cam_open_device" >&6; } +if test "x$ac_cv_lib_cam_cam_open_device" = xyes; then : +  SCSI_LIBS="-lcam" +fi +  # FreeBSD 3+ needs this + +for ac_func in scsireq_enter +do : +  ac_fn_c_check_func "$LINENO" "scsireq_enter" "ac_cv_func_scsireq_enter" +if test "x$ac_cv_func_scsireq_enter" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_SCSIREQ_ENTER 1 +_ACEOF + +fi +done + + +if test "$ac_cv_header_scsi_sg_h" = "yes"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sg_header.target_status in <scsi/sg.h>" >&5 +$as_echo_n "checking for sg_header.target_status in <scsi/sg.h>... " >&6; } +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +#include <sys/types.h> +#include <scsi/sg.h> + +int +main () +{ + +struct sg_header hdr; +hdr.target_status = 1; +return 0; + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; }; + +$as_echo "#define HAVE_SG_TARGET_STATUS 1" >>confdefs.h + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi + +if test "$ac_cv_header_IOKit_scsi_SCSITaskLib_h" = "yes"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SCSITaskSGElement in IOKit/scsi/SCSITaskLib.h" >&5 +$as_echo_n "checking for SCSITaskSGElement in IOKit/scsi/SCSITaskLib.h... " >&6; } +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +#undef VERSION +#include <IOKit/scsi/SCSITaskLib.h> + +int +main () +{ + +SCSITaskSGElement range; +return 0; + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; }; + +$as_echo "#define HAVE_SCSITASKSGELEMENT 1" >>confdefs.h + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi + +# Multiple platforms can set SCSI_LIBS so do substitution at end. + + +# Check whether --enable-scsibuffersize was given. +if test "${enable_scsibuffersize+set}" = set; then : +  enableval=$enable_scsibuffersize; set_scsibuffersize="$enableval" +else +  set_scsibuffersize=131072 +fi + + +cat >>confdefs.h <<_ACEOF +#define SCSIBUFFERSIZE $set_scsibuffersize +_ACEOF + +echo "scsi buffersize: $set_scsibuffersize" + +# Check whether --enable-scsi-directio was given. +if test "${enable_scsi_directio+set}" = set; then : +  enableval=$enable_scsi_directio; +    if eval "test x$enable_scsi_directio = xyes"; then +      AM_CFLAGS="$AM_CFLAGS -DENABLE_SCSI_DIRECTIO" +    fi + +fi + + + +if test "$ac_cv_func_getnameinfo" = "yes" \ +  && test "$ac_cv_func_getaddrinfo" = "yes" ; then + +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5 +$as_echo_n "checking whether to enable IPv6... " >&6; } +  # Check whether --enable-ipv6 was given. +if test "${enable_ipv6+set}" = set; then : +  enableval=$enable_ipv6;   if test "$enableval" = "no" ; then +         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, manually disabled" >&5 +$as_echo "no, manually disabled" >&6; } +         ipv6=no +         fi + +fi + + +  if test "$ipv6" != "no" ; then +    cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +	#define INET6 +	#include <sys/types.h> +	#include <sys/socket.h> +int +main () +{ + +	 /* AF_INET6 available check */ + 	if (socket(AF_INET6, SOCK_STREAM, 0) < 0) +   	  exit(1); + 	else +   	  exit(0); + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define ENABLE_IPV6 1" >>confdefs.h + +        ipv6=yes + +else + +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (couldn't compile test program)" >&5 +$as_echo "no (couldn't compile test program)" >&6; } +        ipv6=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +  fi + +  if test "$ipv6" != "no" ; then +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_storage has an ss_family member" >&5 +$as_echo_n "checking whether struct sockaddr_storage has an ss_family member... " >&6; } +    cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +	#define INET6 +	#include <sys/types.h> +	#include <sys/socket.h> +int +main () +{ + +	/* test if the ss_family member exists in struct sockaddr_storage */ +	struct sockaddr_storage ss; +	ss.ss_family = AF_INET; +	exit (0); + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define HAS_SS_FAMILY 1" >>confdefs.h + + +else + +		cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +		#define INET6 +		#include <sys/types.h> +		#include <sys/socket.h> +int +main () +{ + +		/* test if the __ss_family member exists in struct sockaddr_storage */ +		struct sockaddr_storage ss; +		ss.__ss_family = AF_INET; +		exit (0); + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, but __ss_family exists" >&5 +$as_echo "no, but __ss_family exists" >&6; } + +$as_echo "#define HAS___SS_FAMILY 1" >>confdefs.h + + +else + +		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +		ipv6=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +  fi + +else +  ipv6="no" +fi + +# Check whether --enable-preload was given. +if test "${enable_preload+set}" = set; then : +  enableval=$enable_preload; enable_preload=$enableval +else +  enable_preload=auto +fi + +  case $host_os in    cygwin* | mingw* | beos* | os2*) -  LDFLAGS="$LDFLAGS -no-undefined" +  AM_LDFLAGS="$AM_LDFLAGS -no-undefined"  esac @@ -18044,7 +20585,7 @@ configdir="${sysconfdir}/sane.d" -CPPFLAGS="${CPPFLAGS} -DPATH_SANE_CONFIG_DIR=\$(configdir) \ +AM_CPPFLAGS="${AM_CPPFLAGS} -DPATH_SANE_CONFIG_DIR=\$(configdir) \  	  -DPATH_SANE_DATA_DIR=\$(datadir) \  	  -DPATH_SANE_LOCK_DIR=\$(locksanedir) \  	  -DV_MAJOR=${V_MAJOR} -DV_MINOR=${V_MINOR}" @@ -18160,7 +20701,7 @@ for be in ${BACKENDS}; do      gphoto2)      if test "${HAVE_GPHOTO2}" != "true" \ -      -o "${sane_cv_use_libjpeg}" != "yes"; then +      || test "${sane_cv_use_libjpeg}" != "yes"; then        echo "*** $be backend requires gphoto2 and JPEG libraries - $DISABLE_MSG"        backend_supported="no"      fi @@ -18213,9 +20754,6 @@ for be in ${BACKENDS}; do  done - - -  if test "${sane_cv_use_libjpeg}" = "yes"; then    SANEI_SANEI_JPEG_LO="../sanei/sanei_jpeg.lo"  fi @@ -18345,7 +20883,7 @@ for be in ${BACKENDS}; do      gphoto2)      if test "${HAVE_GPHOTO2}" != "true" \ -      -o "${sane_cv_use_libjpeg}" != "yes"; then +      || test "${sane_cv_use_libjpeg}" != "yes"; then        echo "*** $be backend requires gphoto2 and JPEG libraries - $DISABLE_MSG"        backend_supported="no"      fi @@ -18434,69 +20972,410 @@ esac  if test "${enable_parport_directio+set}" = set; then :    enableval=$enable_parport_directio;      if eval "test x$enable_parport_directio = xyes"; then -      CFLAGS="$CFLAGS -DENABLE_PARPORT_DIRECTIO" +      AM_CFLAGS="$AM_CFLAGS -DENABLE_PARPORT_DIRECTIO"      fi  fi -# Check whether --enable-translations was given. -if test "${enable_translations+set}" = set; then : -  enableval=$enable_translations; + +# Check whether --with-api-spec was given. +if test "${with_api_spec+set}" = set; then : +  withval=$with_api_spec;  else -  enable_translations=yes +  with_api_spec=check  fi -if eval "test x$enable_translations = xyes" ; then -  if test x$MSGFMT = xno || test x$XGETTEXT = xno || test $MSGMERGE = no ; then -    enable_translations=no -    echo "disabling translations (missing msgfmt, xgettext or msgmerge)" -  else -    echo "enabling translations" +# Extract the first word of "makeindex", so it can be a program name with args. +set dummy makeindex; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_MAKEINDEX+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  case $MAKEINDEX in +  [\\/]* | ?:[\\/]*) +  ac_cv_path_MAKEINDEX="$MAKEINDEX" # Let the user override the test with a path. +  ;; +  *) +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_path_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2    fi +done +  done +IFS=$as_save_IFS + +  test -z "$ac_cv_path_MAKEINDEX" && ac_cv_path_MAKEINDEX="no" +  ;; +esac +fi +MAKEINDEX=$ac_cv_path_MAKEINDEX +if test -n "$MAKEINDEX"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINDEX" >&5 +$as_echo "$MAKEINDEX" >&6; }  else -  echo "disabling translations" +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; }  fi - if test x$enable_translations = xyes; then -  ENABLE_TRANSLATIONS_TRUE= -  ENABLE_TRANSLATIONS_FALSE='#' + + +# Extract the first word of "dvips", so it can be a program name with args. +set dummy dvips; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_DVIPS+:} false; then : +  $as_echo_n "(cached) " >&6  else -  ENABLE_TRANSLATIONS_TRUE='#' -  ENABLE_TRANSLATIONS_FALSE= +  case $DVIPS in +  [\\/]* | ?:[\\/]*) +  ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path. +  ;; +  *) +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS + +  test -z "$ac_cv_path_DVIPS" && ac_cv_path_DVIPS="no" +  ;; +esac +fi +DVIPS=$ac_cv_path_DVIPS +if test -n "$DVIPS"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5 +$as_echo "$DVIPS" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; }  fi -# Check whether --enable-latex was given. -if test "${enable_latex+set}" = set; then : -  enableval=$enable_latex; +# Extract the first word of "latex", so it can be a program name with args. +set dummy latex; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_LATEX+:} false; then : +  $as_echo_n "(cached) " >&6  else -  enable_latex=yes +  case $LATEX in +  [\\/]* | ?:[\\/]*) +  ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path. +  ;; +  *) +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS + +  test -z "$ac_cv_path_LATEX" && ac_cv_path_LATEX="no" +  ;; +esac +fi +LATEX=$ac_cv_path_LATEX +if test -n "$LATEX"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5 +$as_echo "$LATEX" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; }  fi -if test "x$enable_latex" = "xyes" ; then -  if test "x$LATEX" = "xno" || test "x$DVIPS" = "xno" || test "x$MAKEINDEX" = "xno" ; then -    enable_latex=no -    echo "disabling latex (missing latex, dvips or makeindex)" -  else -    echo "enabling latex" + +# Extract the first word of "pdflatex", so it can be a program name with args. +set dummy pdflatex; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PDFLATEX+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  case $PDFLATEX in +  [\\/]* | ?:[\\/]*) +  ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path. +  ;; +  *) +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS + +  test -z "$ac_cv_path_PDFLATEX" && ac_cv_path_PDFLATEX="no" +  ;; +esac +fi +PDFLATEX=$ac_cv_path_PDFLATEX +if test -n "$PDFLATEX"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5 +$as_echo "$PDFLATEX" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "fig2dev", so it can be a program name with args. +set dummy fig2dev; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_FIG2DEV+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  case $FIG2DEV in +  [\\/]* | ?:[\\/]*) +  ac_cv_path_FIG2DEV="$FIG2DEV" # Let the user override the test with a path. +  ;; +  *) +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_path_FIG2DEV="$as_dir/$ac_word$ac_exec_ext" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS + +  test -z "$ac_cv_path_FIG2DEV" && ac_cv_path_FIG2DEV="no" +  ;; +esac +fi +FIG2DEV=$ac_cv_path_FIG2DEV +if test -n "$FIG2DEV"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIG2DEV" >&5 +$as_echo "$FIG2DEV" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "gs", so it can be a program name with args. +set dummy gs; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_GS+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  case $GS in +  [\\/]* | ?:[\\/]*) +  ac_cv_path_GS="$GS" # Let the user override the test with a path. +  ;; +  *) +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_path_GS="$as_dir/$ac_word$ac_exec_ext" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS + +  test -z "$ac_cv_path_GS" && ac_cv_path_GS="no" +  ;; +esac +fi +GS=$ac_cv_path_GS +if test -n "$GS"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5 +$as_echo "$GS" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "dlh", so it can be a program name with args. +set dummy dlh; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_DLH+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  case $DLH in +  [\\/]* | ?:[\\/]*) +  ac_cv_path_DLH="$DLH" # Let the user override the test with a path. +  ;; +  *) +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_path_DLH="$as_dir/$ac_word$ac_exec_ext" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2    fi +done +  done +IFS=$as_save_IFS + +  test -z "$ac_cv_path_DLH" && ac_cv_path_DLH="no" +  ;; +esac +fi +DLH=$ac_cv_path_DLH +if test -n "$DLH"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLH" >&5 +$as_echo "$DLH" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "ppmtogif", so it can be a program name with args. +set dummy ppmtogif; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PPMTOGIF+:} false; then : +  $as_echo_n "(cached) " >&6  else -  echo "disabling latex" +  case $PPMTOGIF in +  [\\/]* | ?:[\\/]*) +  ac_cv_path_PPMTOGIF="$PPMTOGIF" # Let the user override the test with a path. +  ;; +  *) +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_path_PPMTOGIF="$as_dir/$ac_word$ac_exec_ext" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS + +  test -z "$ac_cv_path_PPMTOGIF" && ac_cv_path_PPMTOGIF="no" +  ;; +esac  fi - if test x$enable_latex = xyes; then -  USE_LATEX_TRUE= -  USE_LATEX_FALSE='#' +PPMTOGIF=$ac_cv_path_PPMTOGIF +if test -n "$PPMTOGIF"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOGIF" >&5 +$as_echo "$PPMTOGIF" >&6; }  else -  USE_LATEX_TRUE='#' -  USE_LATEX_FALSE= +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; }  fi +if test xno != "x$with_api_spec"; then : +     if    test xno != "x$MAKEINDEX" \ +          && test xno != "x$DVIPS" \ +          && test xno != "x$FIG2DEV" \ +          && test xno != "x$LATEX"; then : +  with_api_ps=yes +fi +   if    test xno != "x$MAKEINDEX" \ +          && test xno != "x$PDFLATEX" \ +          && test xno != "x$FIG2DEV" \ +          && test xno != "x$GS"; then : +  with_api_pdf=yes +fi +   if    test xno != "x$MAKEINDEX" \ +          && test xno != "x$DVIPS" \ +          && test xno != "x$FIG2DEV" \ +          && test xno != "x$DLH" \ +          && test xno != "x$GS" \ +          && test xno != "x$PPMTOFIG" ; then : +  with_api_html=yes +fi + +   if test xyes = "x$with_api_spec" \ +          && test xyes != "x$with_api_ps" \ +          && test xyes != "x$with_api_pdf" \ +          && test xyes != "x$with_api_html"; then : +  as_fn_error $? "tools to convert the API spec are missing" "$LINENO" 5 + +fi + +fi + if test x$with_api_ps = xyes; then +  WITH_API_PS_TRUE= +  WITH_API_PS_FALSE='#' +else +  WITH_API_PS_TRUE='#' +  WITH_API_PS_FALSE= +fi -DISTCLEAN_FILES="*~ .*~ *.log *.bak *.old *.orig *.out *.rej \"\#\"* \".\\#\"*" + if test x$with_api_pdf = xyes; then +  WITH_API_PDF_TRUE= +  WITH_API_PDF_FALSE='#' +else +  WITH_API_PDF_TRUE='#' +  WITH_API_PDF_FALSE= +fi + if test x$with_api_html = xyes; then +  WITH_API_HTML_TRUE= +  WITH_API_HTML_FALSE='#' +else +  WITH_API_HTML_TRUE='#' +  WITH_API_HTML_FALSE= +fi -ac_config_files="$ac_config_files Makefile lib/Makefile sanei/Makefile frontend/Makefile japi/Makefile backend/Makefile include/Makefile doc/Makefile po/Makefile testsuite/Makefile testsuite/sanei/Makefile testsuite/tools/Makefile tools/Makefile doc/doxygen-sanei.conf doc/doxygen-genesys.conf" + + + + + + +ac_config_files="$ac_config_files Makefile lib/Makefile sanei/Makefile frontend/Makefile japi/Makefile backend/Makefile include/Makefile doc/Makefile po/Makefile.in testsuite/Makefile testsuite/sanei/Makefile testsuite/tools/Makefile tools/Makefile doc/doxygen-sanei.conf doc/doxygen-genesys.conf"  ac_config_files="$ac_config_files tools/sane-config" @@ -18645,6 +21524,10 @@ Usually this means the macro was only invoked conditionally." "$LINENO" 5  fi +if test -z "${have_usblib_TRUE}" && test -z "${have_usblib_FALSE}"; then +  as_fn_error $? "conditional \"have_usblib\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi  if test -z "${COMPILE_SANED_TRUE}" && test -z "${COMPILE_SANED_FALSE}"; then    as_fn_error $? "conditional \"COMPILE_SANED\" was never defined.  Usually this means the macro was only invoked conditionally." "$LINENO" 5 @@ -18657,12 +21540,16 @@ if test -z "${INSTALL_UMAX_PP_TOOLS_TRUE}" && test -z "${INSTALL_UMAX_PP_TOOLS_F    as_fn_error $? "conditional \"INSTALL_UMAX_PP_TOOLS\" was never defined.  Usually this means the macro was only invoked conditionally." "$LINENO" 5  fi -if test -z "${ENABLE_TRANSLATIONS_TRUE}" && test -z "${ENABLE_TRANSLATIONS_FALSE}"; then -  as_fn_error $? "conditional \"ENABLE_TRANSLATIONS\" was never defined. +if test -z "${WITH_API_PS_TRUE}" && test -z "${WITH_API_PS_FALSE}"; then +  as_fn_error $? "conditional \"WITH_API_PS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${WITH_API_PDF_TRUE}" && test -z "${WITH_API_PDF_FALSE}"; then +  as_fn_error $? "conditional \"WITH_API_PDF\" was never defined.  Usually this means the macro was only invoked conditionally." "$LINENO" 5  fi -if test -z "${USE_LATEX_TRUE}" && test -z "${USE_LATEX_FALSE}"; then -  as_fn_error $? "conditional \"USE_LATEX\" was never defined. +if test -z "${WITH_API_HTML_TRUE}" && test -z "${WITH_API_HTML_FALSE}"; then +  as_fn_error $? "conditional \"WITH_API_HTML\" was never defined.  Usually this means the macro was only invoked conditionally." "$LINENO" 5  fi @@ -19062,7 +21949,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1  # report actual input values of CONFIG_FILES etc. instead of their  # values after options handling.  ac_log=" -This file was extended by sane-backends $as_me 1.0.25, which was +This file was extended by sane-backends $as_me 1.0.27, which was  generated by GNU Autoconf 2.69.  Invocation command line was    CONFIG_FILES    = $CONFIG_FILES @@ -19128,7 +22015,7 @@ _ACEOF  cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1  ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"  ac_cs_version="\\ -sane-backends config.status 1.0.25 +sane-backends config.status 1.0.27  configured by $0, generated by GNU Autoconf 2.69,    with options \\"\$ac_cs_config\\" @@ -19248,24 +22135,6 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1  # INIT-COMMANDS  #  AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" -# variables for create stdint.h replacement -PACKAGE="$PACKAGE" -VERSION="$VERSION" -ac_stdint_h="$ac_stdint_h" -_ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp` -ac_cv_stdint_message="$ac_cv_stdint_message" -ac_cv_header_stdint_t="$ac_cv_header_stdint_t" -ac_cv_header_stdint_x="$ac_cv_header_stdint_x" -ac_cv_header_stdint_o="$ac_cv_header_stdint_o" -ac_cv_header_stdint_u="$ac_cv_header_stdint_u" -ac_cv_type_uint64_t="$ac_cv_type_uint64_t" -ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" -ac_cv_char_data_model="$ac_cv_char_data_model" -ac_cv_long_data_model="$ac_cv_long_data_model" -ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" -ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" -ac_cv_type_intmax_t="$ac_cv_type_intmax_t" -  # The HP-UX ksh and POSIX shell print the target directory to stdout @@ -19275,12 +22144,12 @@ ac_cv_type_intmax_t="$ac_cv_type_intmax_t"  sed_quote_subst='$sed_quote_subst'  double_quote_subst='$double_quote_subst'  delay_variable_subst='$delay_variable_subst' +macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' +macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' +enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'  AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'  DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'  OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' -enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' -macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' -macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'  enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'  pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'  enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' @@ -19545,6 +22414,31 @@ fi +# Capture the value of obsolete ALL_LINGUAS because we need it to compute +    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it +    # from automake < 1.5. +    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' +    # Capture the value of LINGUAS because we need it to compute CATALOGS. +    LINGUAS="${LINGUAS-%UNSET%}" + +# variables for create stdint.h replacement +PACKAGE="$PACKAGE" +VERSION="$VERSION" +ac_stdint_h="$ac_stdint_h" +_ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp` +ac_cv_stdint_message="$ac_cv_stdint_message" +ac_cv_header_stdint_t="$ac_cv_header_stdint_t" +ac_cv_header_stdint_x="$ac_cv_header_stdint_x" +ac_cv_header_stdint_o="$ac_cv_header_stdint_o" +ac_cv_header_stdint_u="$ac_cv_header_stdint_u" +ac_cv_type_uint64_t="$ac_cv_type_uint64_t" +ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" +ac_cv_char_data_model="$ac_cv_char_data_model" +ac_cv_long_data_model="$ac_cv_long_data_model" +ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" +ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" +ac_cv_type_intmax_t="$ac_cv_type_intmax_t" +  _ACEOF @@ -19556,8 +22450,9 @@ do    case $ac_config_target in      "include/sane/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/sane/config.h" ;;      "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; -    "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;      "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; +    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; +    "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;      "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;      "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;      "sanei/Makefile") CONFIG_FILES="$CONFIG_FILES sanei/Makefile" ;; @@ -19566,7 +22461,7 @@ do      "backend/Makefile") CONFIG_FILES="$CONFIG_FILES backend/Makefile" ;;      "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;      "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; -    "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; +    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;      "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;      "testsuite/sanei/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/sanei/Makefile" ;;      "testsuite/tools/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/tools/Makefile" ;; @@ -20263,470 +23158,6 @@ $as_echo X"$file" |    done  }   ;; -    "$ac_stdint_h":C) -{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5 -$as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;} -ac_stdint=$tmp/_stdint.h - -echo "#ifndef" $_ac_stdint_h >$ac_stdint -echo "#define" $_ac_stdint_h "1" >>$ac_stdint -echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint -echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint -echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint -if test "_$ac_cv_header_stdint_t" != "_" ; then -echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint -echo "#include <stdint.h>" >>$ac_stdint -echo "#endif" >>$ac_stdint -echo "#endif" >>$ac_stdint -else - -cat >>$ac_stdint <<STDINT_EOF - -/* ................... shortcircuit part ........................... */ - -#if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H -#include <stdint.h> -#else -#include <stddef.h> - -/* .................... configured part ............................ */ - -STDINT_EOF - -echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint -if test "_$ac_cv_header_stdint_x" != "_" ; then -  ac_header="$ac_cv_header_stdint_x" -  echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint -else -  echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint -fi - -echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint -if  test "_$ac_cv_header_stdint_o" != "_" ; then -  ac_header="$ac_cv_header_stdint_o" -  echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint -else -  echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint -fi - -echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint -if  test "_$ac_cv_header_stdint_u" != "_" ; then -  ac_header="$ac_cv_header_stdint_u" -  echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint -else -  echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint -fi - -echo "" >>$ac_stdint - -if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then -  echo "#include <$ac_header>" >>$ac_stdint -  echo "" >>$ac_stdint -fi fi - -echo "/* which 64bit typedef has been found */" >>$ac_stdint -if test "$ac_cv_type_uint64_t" = "yes" ; then -echo "#define   _STDINT_HAVE_UINT64_T" "1"  >>$ac_stdint -else -echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint -fi -if test "$ac_cv_type_u_int64_t" = "yes" ; then -echo "#define   _STDINT_HAVE_U_INT64_T" "1"  >>$ac_stdint -else -echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint -fi -echo "" >>$ac_stdint - -echo "/* which type model has been detected */" >>$ac_stdint -if test "_$ac_cv_char_data_model" != "_" ; then -echo "#define   _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint -echo "#define   _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint -else -echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint -echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint -fi -echo "" >>$ac_stdint - -echo "/* whether int_least types were detected */" >>$ac_stdint -if test "$ac_cv_type_int_least32_t" = "yes"; then -echo "#define   _STDINT_HAVE_INT_LEAST32_T" "1"  >>$ac_stdint -else -echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint -fi -echo "/* whether int_fast types were detected */" >>$ac_stdint -if test "$ac_cv_type_int_fast32_t" = "yes"; then -echo "#define   _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint -else -echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint -fi -echo "/* whether intmax_t type was detected */" >>$ac_stdint -if test "$ac_cv_type_intmax_t" = "yes"; then -echo "#define   _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint -else -echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint -fi -echo "" >>$ac_stdint - -  cat >>$ac_stdint <<STDINT_EOF -/* .................... detections part ............................ */ - -/* whether we need to define bitspecific types from compiler base types */ -#ifndef _STDINT_HEADER_INTPTR -#ifndef _STDINT_HEADER_UINT32 -#ifndef _STDINT_HEADER_U_INT32 -#define _STDINT_NEED_INT_MODEL_T -#else -#define _STDINT_HAVE_U_INT_TYPES -#endif -#endif -#endif - -#ifdef _STDINT_HAVE_U_INT_TYPES -#undef _STDINT_NEED_INT_MODEL_T -#endif - -#ifdef  _STDINT_CHAR_MODEL -#if     _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124 -#ifndef _STDINT_BYTE_MODEL -#define _STDINT_BYTE_MODEL 12 -#endif -#endif -#endif - -#ifndef _STDINT_HAVE_INT_LEAST32_T -#define _STDINT_NEED_INT_LEAST_T -#endif - -#ifndef _STDINT_HAVE_INT_FAST32_T -#define _STDINT_NEED_INT_FAST_T -#endif - -#ifndef _STDINT_HEADER_INTPTR -#define _STDINT_NEED_INTPTR_T -#ifndef _STDINT_HAVE_INTMAX_T -#define _STDINT_NEED_INTMAX_T -#endif -#endif - - -/* .................... definition part ............................ */ - -/* some system headers have good uint64_t */ -#ifndef _HAVE_UINT64_T -#if     defined _STDINT_HAVE_UINT64_T  || defined HAVE_UINT64_T -#define _HAVE_UINT64_T -#elif   defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T -#define _HAVE_UINT64_T -typedef u_int64_t uint64_t; -#endif -#endif - -#ifndef _HAVE_UINT64_T -/* .. here are some common heuristics using compiler runtime specifics */ -#if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L -#define _HAVE_UINT64_T -#define _HAVE_LONGLONG_UINT64_T -typedef long long int64_t; -typedef unsigned long long uint64_t; - -#elif !defined __STRICT_ANSI__ -#if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ -#define _HAVE_UINT64_T -typedef __int64 int64_t; -typedef unsigned __int64 uint64_t; - -#elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__ -/* note: all ELF-systems seem to have loff-support which needs 64-bit */ -#if !defined _NO_LONGLONG -#define _HAVE_UINT64_T -#define _HAVE_LONGLONG_UINT64_T -typedef long long int64_t; -typedef unsigned long long uint64_t; -#endif - -#elif defined __alpha || (defined __mips && defined _ABIN32) -#if !defined _NO_LONGLONG -typedef long int64_t; -typedef unsigned long uint64_t; -#endif -  /* compiler/cpu type to define int64_t */ -#endif -#endif -#endif - -#if defined _STDINT_HAVE_U_INT_TYPES -/* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */ -typedef u_int8_t uint8_t; -typedef u_int16_t uint16_t; -typedef u_int32_t uint32_t; - -/* glibc compatibility */ -#ifndef __int8_t_defined -#define __int8_t_defined -#endif -#endif - -#ifdef _STDINT_NEED_INT_MODEL_T -/* we must guess all the basic types. Apart from byte-adressable system, */ -/* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */ -/* (btw, those nibble-addressable systems are way off, or so we assume) */ - - -#if defined _STDINT_BYTE_MODEL -#if _STDINT_LONG_MODEL+0 == 242 -/* 2:4:2 =  IP16 = a normal 16-bit system                */ -typedef unsigned char   uint8_t; -typedef unsigned short  uint16_t; -typedef unsigned long   uint32_t; -#ifndef __int8_t_defined -#define __int8_t_defined -typedef          char    int8_t; -typedef          short   int16_t; -typedef          long    int32_t; -#endif -#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444 -/* 2:4:4 =  LP32 = a 32-bit system derived from a 16-bit */ -/* 4:4:4 = ILP32 = a normal 32-bit system                */ -typedef unsigned char   uint8_t; -typedef unsigned short  uint16_t; -typedef unsigned int    uint32_t; -#ifndef __int8_t_defined -#define __int8_t_defined -typedef          char    int8_t; -typedef          short   int16_t; -typedef          int     int32_t; -#endif -#elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488 -/* 4:8:4 =  IP32 = a 32-bit system prepared for 64-bit    */ -/* 4:8:8 =  LP64 = a normal 64-bit system                 */ -typedef unsigned char   uint8_t; -typedef unsigned short  uint16_t; -typedef unsigned int    uint32_t; -#ifndef __int8_t_defined -#define __int8_t_defined -typedef          char    int8_t; -typedef          short   int16_t; -typedef          int     int32_t; -#endif -/* this system has a "long" of 64bit */ -#ifndef _HAVE_UINT64_T -#define _HAVE_UINT64_T -typedef unsigned long   uint64_t; -typedef          long    int64_t; -#endif -#elif _STDINT_LONG_MODEL+0 == 448 -/*      LLP64   a 64-bit system derived from a 32-bit system */ -typedef unsigned char   uint8_t; -typedef unsigned short  uint16_t; -typedef unsigned int    uint32_t; -#ifndef __int8_t_defined -#define __int8_t_defined -typedef          char    int8_t; -typedef          short   int16_t; -typedef          int     int32_t; -#endif -/* assuming the system has a "long long" */ -#ifndef _HAVE_UINT64_T -#define _HAVE_UINT64_T -#define _HAVE_LONGLONG_UINT64_T -typedef unsigned long long uint64_t; -typedef          long long  int64_t; -#endif -#else -#define _STDINT_NO_INT32_T -#endif -#else -#define _STDINT_NO_INT8_T -#define _STDINT_NO_INT32_T -#endif -#endif - -/* - * quote from SunOS-5.8 sys/inttypes.h: - * Use at your own risk.  As of February 1996, the committee is squarely - * behind the fixed sized types; the "least" and "fast" types are still being - * discussed.  The probability that the "fast" types may be removed before - * the standard is finalized is high enough that they are not currently - * implemented. - */ - -#if defined _STDINT_NEED_INT_LEAST_T -typedef  int8_t    int_least8_t; -typedef  int16_t   int_least16_t; -typedef  int32_t   int_least32_t; -#ifdef _HAVE_UINT64_T -typedef  int64_t   int_least64_t; -#endif - -typedef uint8_t   uint_least8_t; -typedef uint16_t  uint_least16_t; -typedef uint32_t  uint_least32_t; -#ifdef _HAVE_UINT64_T -typedef uint64_t  uint_least64_t; -#endif -  /* least types */ -#endif - -#if defined _STDINT_NEED_INT_FAST_T -typedef  int8_t    int_fast8_t; -typedef  int       int_fast16_t; -typedef  int32_t   int_fast32_t; -#ifdef _HAVE_UINT64_T -typedef  int64_t   int_fast64_t; -#endif - -typedef uint8_t   uint_fast8_t; -typedef unsigned  uint_fast16_t; -typedef uint32_t  uint_fast32_t; -#ifdef _HAVE_UINT64_T -typedef uint64_t  uint_fast64_t; -#endif -  /* fast types */ -#endif - -#ifdef _STDINT_NEED_INTMAX_T -#ifdef _HAVE_UINT64_T -typedef  int64_t       intmax_t; -typedef uint64_t      uintmax_t; -#else -typedef          long  intmax_t; -typedef unsigned long uintmax_t; -#endif -#endif - -#ifdef _STDINT_NEED_INTPTR_T -#ifndef __intptr_t_defined -#define __intptr_t_defined -/* we encourage using "long" to store pointer values, never use "int" ! */ -#if   _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484 -typedef  unsigned int   uintptr_t; -typedef           int    intptr_t; -#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444 -typedef  unsigned long  uintptr_t; -typedef           long   intptr_t; -#elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T -typedef        uint64_t uintptr_t; -typedef         int64_t  intptr_t; -#else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */ -typedef  unsigned long  uintptr_t; -typedef           long   intptr_t; -#endif -#endif -#endif - -/* The ISO C99 standard specifies that in C++ implementations these -   should only be defined if explicitly requested.  */ -#if !defined __cplusplus || defined __STDC_CONSTANT_MACROS -#ifndef UINT32_C - -/* Signed.  */ -# define INT8_C(c)      c -# define INT16_C(c)     c -# define INT32_C(c)     c -# ifdef _HAVE_LONGLONG_UINT64_T -#  define INT64_C(c)    c ## L -# else -#  define INT64_C(c)    c ## LL -# endif - -/* Unsigned.  */ -# define UINT8_C(c)     c ## U -# define UINT16_C(c)    c ## U -# define UINT32_C(c)    c ## U -# ifdef _HAVE_LONGLONG_UINT64_T -#  define UINT64_C(c)   c ## UL -# else -#  define UINT64_C(c)   c ## ULL -# endif - -/* Maximal type.  */ -# ifdef _HAVE_LONGLONG_UINT64_T -#  define INTMAX_C(c)   c ## L -#  define UINTMAX_C(c)  c ## UL -# else -#  define INTMAX_C(c)   c ## LL -#  define UINTMAX_C(c)  c ## ULL -# endif - -  /* literalnumbers */ -#endif -#endif - -/* These limits are merily those of a two complement byte-oriented system */ - -/* Minimum of signed integral types.  */ -# define INT8_MIN               (-128) -# define INT16_MIN              (-32767-1) -# define INT32_MIN              (-2147483647-1) -# define INT64_MIN              (-__INT64_C(9223372036854775807)-1) -/* Maximum of signed integral types.  */ -# define INT8_MAX               (127) -# define INT16_MAX              (32767) -# define INT32_MAX              (2147483647) -# define INT64_MAX              (__INT64_C(9223372036854775807)) - -/* Maximum of unsigned integral types.  */ -# define UINT8_MAX              (255) -# define UINT16_MAX             (65535) -# define UINT32_MAX             (4294967295U) -# define UINT64_MAX             (__UINT64_C(18446744073709551615)) - -/* Minimum of signed integral types having a minimum size.  */ -# define INT_LEAST8_MIN         INT8_MIN -# define INT_LEAST16_MIN        INT16_MIN -# define INT_LEAST32_MIN        INT32_MIN -# define INT_LEAST64_MIN        INT64_MIN -/* Maximum of signed integral types having a minimum size.  */ -# define INT_LEAST8_MAX         INT8_MAX -# define INT_LEAST16_MAX        INT16_MAX -# define INT_LEAST32_MAX        INT32_MAX -# define INT_LEAST64_MAX        INT64_MAX - -/* Maximum of unsigned integral types having a minimum size.  */ -# define UINT_LEAST8_MAX        UINT8_MAX -# define UINT_LEAST16_MAX       UINT16_MAX -# define UINT_LEAST32_MAX       UINT32_MAX -# define UINT_LEAST64_MAX       UINT64_MAX - -  /* shortcircuit*/ -#endif -  /* once */ -#endif -#endif -STDINT_EOF -fi -    if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then -      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5 -$as_echo "$as_me: $ac_stdint_h is unchanged" >&6;} -    else -      ac_dir=`$as_dirname -- "$ac_stdint_h" || -$as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ -	 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \ -	 X"$ac_stdint_h" : 'X\(//\)$' \| \ -	 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$ac_stdint_h" | -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ -	    s//\1/ -	    q -	  } -	  /^X\(\/\/\)[^/].*/{ -	    s//\1/ -	    q -	  } -	  /^X\(\/\/\)$/{ -	    s//\1/ -	    q -	  } -	  /^X\(\/\).*/{ -	    s//\1/ -	    q -	  } -	  s/.*/./; q'` -      as_dir="$ac_dir"; as_fn_mkdir_p -      rm -f $ac_stdint_h -      mv $ac_stdint $ac_stdint_h -    fi - ;;      "libtool":C)      # See if we are running on zsh, and set the options which allow our @@ -20781,6 +23212,13 @@ available_tags=""  # ### BEGIN LIBTOOL CONFIG +# Which release of libtool.m4 was used? +macro_version=$macro_version +macro_revision=$macro_revision + +# Whether or not to build static libraries. +build_old_libs=$enable_static +  # Assembler program.  AS=$lt_AS @@ -20790,13 +23228,6 @@ DLLTOOL=$lt_DLLTOOL  # Object dumper program.  OBJDUMP=$lt_OBJDUMP -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# Which release of libtool.m4 was used? -macro_version=$macro_version -macro_revision=$macro_revision -  # Whether or not to build shared libraries.  build_libtool_libs=$enable_shared @@ -21360,6 +23791,583 @@ fi    chmod +x "$ofile"   ;; +    "po-directories":C) +    for ac_file in $CONFIG_FILES; do +      # Support "outfile[:infile[:infile...]]" +      case "$ac_file" in +        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; +      esac +      # PO directories have a Makefile.in generated from Makefile.in.in. +      case "$ac_file" in */Makefile.in) +        # Adjust a relative srcdir. +        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` +        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" +        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` +        # In autoconf-2.13 it is called $ac_given_srcdir. +        # In autoconf-2.50 it is called $srcdir. +        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" +        case "$ac_given_srcdir" in +          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; +          /*) top_srcdir="$ac_given_srcdir" ;; +          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;; +        esac +        # Treat a directory as a PO directory if and only if it has a +        # POTFILES.in file. This allows packages to have multiple PO +        # directories under different names or in different locations. +        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then +          rm -f "$ac_dir/POTFILES" +          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" +          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" +          POMAKEFILEDEPS="POTFILES.in" +          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend +          # on $ac_dir but don't depend on user-specified configuration +          # parameters. +          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then +            # The LINGUAS file contains the set of available languages. +            if test -n "$OBSOLETE_ALL_LINGUAS"; then +              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" +            fi +            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` +            # Hide the ALL_LINGUAS assigment from automake < 1.5. +            eval 'ALL_LINGUAS''=$ALL_LINGUAS_' +            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" +          else +            # The set of available languages was given in configure.in. +            # Hide the ALL_LINGUAS assigment from automake < 1.5. +            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' +          fi +          # Compute POFILES +          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) +          # Compute UPDATEPOFILES +          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) +          # Compute DUMMYPOFILES +          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop) +          # Compute GMOFILES +          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) +          case "$ac_given_srcdir" in +            .) srcdirpre= ;; +            *) srcdirpre='$(srcdir)/' ;; +          esac +          POFILES= +          UPDATEPOFILES= +          DUMMYPOFILES= +          GMOFILES= +          for lang in $ALL_LINGUAS; do +            POFILES="$POFILES $srcdirpre$lang.po" +            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" +            DUMMYPOFILES="$DUMMYPOFILES $lang.nop" +            GMOFILES="$GMOFILES $srcdirpre$lang.gmo" +          done +          # CATALOGS depends on both $ac_dir and the user's LINGUAS +          # environment variable. +          INST_LINGUAS= +          if test -n "$ALL_LINGUAS"; then +            for presentlang in $ALL_LINGUAS; do +              useit=no +              if test "%UNSET%" != "$LINGUAS"; then +                desiredlanguages="$LINGUAS" +              else +                desiredlanguages="$ALL_LINGUAS" +              fi +              for desiredlang in $desiredlanguages; do +                # Use the presentlang catalog if desiredlang is +                #   a. equal to presentlang, or +                #   b. a variant of presentlang (because in this case, +                #      presentlang can be used as a fallback for messages +                #      which are not translated in the desiredlang catalog). +                case "$desiredlang" in +                  "$presentlang"*) useit=yes;; +                esac +              done +              if test $useit = yes; then +                INST_LINGUAS="$INST_LINGUAS $presentlang" +              fi +            done +          fi +          CATALOGS= +          if test -n "$INST_LINGUAS"; then +            for lang in $INST_LINGUAS; do +              CATALOGS="$CATALOGS $lang.gmo" +            done +          fi +          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" +          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" +          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do +            if test -f "$f"; then +              case "$f" in +                *.orig | *.bak | *~) ;; +                *) cat "$f" >> "$ac_dir/Makefile" ;; +              esac +            fi +          done +        fi +        ;; +      esac +    done ;; +    "$ac_stdint_h":C) +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5 +$as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;} +ac_stdint=$tmp/_stdint.h + +echo "#ifndef" $_ac_stdint_h >$ac_stdint +echo "#define" $_ac_stdint_h "1" >>$ac_stdint +echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint +echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint +echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint +if test "_$ac_cv_header_stdint_t" != "_" ; then +echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint +echo "#include <stdint.h>" >>$ac_stdint +echo "#endif" >>$ac_stdint +echo "#endif" >>$ac_stdint +else + +cat >>$ac_stdint <<STDINT_EOF + +/* ................... shortcircuit part ........................... */ + +#if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H +#include <stdint.h> +#else +#include <stddef.h> + +/* .................... configured part ............................ */ + +STDINT_EOF + +echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint +if test "_$ac_cv_header_stdint_x" != "_" ; then +  ac_header="$ac_cv_header_stdint_x" +  echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint +else +  echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint +fi + +echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint +if  test "_$ac_cv_header_stdint_o" != "_" ; then +  ac_header="$ac_cv_header_stdint_o" +  echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint +else +  echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint +fi + +echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint +if  test "_$ac_cv_header_stdint_u" != "_" ; then +  ac_header="$ac_cv_header_stdint_u" +  echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint +else +  echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint +fi + +echo "" >>$ac_stdint + +if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then +  echo "#include <$ac_header>" >>$ac_stdint +  echo "" >>$ac_stdint +fi fi + +echo "/* which 64bit typedef has been found */" >>$ac_stdint +if test "$ac_cv_type_uint64_t" = "yes" ; then +echo "#define   _STDINT_HAVE_UINT64_T" "1"  >>$ac_stdint +else +echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint +fi +if test "$ac_cv_type_u_int64_t" = "yes" ; then +echo "#define   _STDINT_HAVE_U_INT64_T" "1"  >>$ac_stdint +else +echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint +fi +echo "" >>$ac_stdint + +echo "/* which type model has been detected */" >>$ac_stdint +if test "_$ac_cv_char_data_model" != "_" ; then +echo "#define   _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint +echo "#define   _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint +else +echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint +echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint +fi +echo "" >>$ac_stdint + +echo "/* whether int_least types were detected */" >>$ac_stdint +if test "$ac_cv_type_int_least32_t" = "yes"; then +echo "#define   _STDINT_HAVE_INT_LEAST32_T" "1"  >>$ac_stdint +else +echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint +fi +echo "/* whether int_fast types were detected */" >>$ac_stdint +if test "$ac_cv_type_int_fast32_t" = "yes"; then +echo "#define   _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint +else +echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint +fi +echo "/* whether intmax_t type was detected */" >>$ac_stdint +if test "$ac_cv_type_intmax_t" = "yes"; then +echo "#define   _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint +else +echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint +fi +echo "" >>$ac_stdint + +  cat >>$ac_stdint <<STDINT_EOF +/* .................... detections part ............................ */ + +/* whether we need to define bitspecific types from compiler base types */ +#ifndef _STDINT_HEADER_INTPTR +#ifndef _STDINT_HEADER_UINT32 +#ifndef _STDINT_HEADER_U_INT32 +#define _STDINT_NEED_INT_MODEL_T +#else +#define _STDINT_HAVE_U_INT_TYPES +#endif +#endif +#endif + +#ifdef _STDINT_HAVE_U_INT_TYPES +#undef _STDINT_NEED_INT_MODEL_T +#endif + +#ifdef  _STDINT_CHAR_MODEL +#if     _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124 +#ifndef _STDINT_BYTE_MODEL +#define _STDINT_BYTE_MODEL 12 +#endif +#endif +#endif + +#ifndef _STDINT_HAVE_INT_LEAST32_T +#define _STDINT_NEED_INT_LEAST_T +#endif + +#ifndef _STDINT_HAVE_INT_FAST32_T +#define _STDINT_NEED_INT_FAST_T +#endif + +#ifndef _STDINT_HEADER_INTPTR +#define _STDINT_NEED_INTPTR_T +#ifndef _STDINT_HAVE_INTMAX_T +#define _STDINT_NEED_INTMAX_T +#endif +#endif + + +/* .................... definition part ............................ */ + +/* some system headers have good uint64_t */ +#ifndef _HAVE_UINT64_T +#if     defined _STDINT_HAVE_UINT64_T  || defined HAVE_UINT64_T +#define _HAVE_UINT64_T +#elif   defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T +#define _HAVE_UINT64_T +typedef u_int64_t uint64_t; +#endif +#endif + +#ifndef _HAVE_UINT64_T +/* .. here are some common heuristics using compiler runtime specifics */ +#if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L +#define _HAVE_UINT64_T +#define _HAVE_LONGLONG_UINT64_T +typedef long long int64_t; +typedef unsigned long long uint64_t; + +#elif !defined __STRICT_ANSI__ +#if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ +#define _HAVE_UINT64_T +typedef __int64 int64_t; +typedef unsigned __int64 uint64_t; + +#elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__ +/* note: all ELF-systems seem to have loff-support which needs 64-bit */ +#if !defined _NO_LONGLONG +#define _HAVE_UINT64_T +#define _HAVE_LONGLONG_UINT64_T +typedef long long int64_t; +typedef unsigned long long uint64_t; +#endif + +#elif defined __alpha || (defined __mips && defined _ABIN32) +#if !defined _NO_LONGLONG +typedef long int64_t; +typedef unsigned long uint64_t; +#endif +  /* compiler/cpu type to define int64_t */ +#endif +#endif +#endif + +#if defined _STDINT_HAVE_U_INT_TYPES +/* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */ +typedef u_int8_t uint8_t; +typedef u_int16_t uint16_t; +typedef u_int32_t uint32_t; + +/* glibc compatibility */ +#ifndef __int8_t_defined +#define __int8_t_defined +#endif +#endif + +#ifdef _STDINT_NEED_INT_MODEL_T +/* we must guess all the basic types. Apart from byte-adressable system, */ +/* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */ +/* (btw, those nibble-addressable systems are way off, or so we assume) */ + + +#if defined _STDINT_BYTE_MODEL +#if _STDINT_LONG_MODEL+0 == 242 +/* 2:4:2 =  IP16 = a normal 16-bit system                */ +typedef unsigned char   uint8_t; +typedef unsigned short  uint16_t; +typedef unsigned long   uint32_t; +#ifndef __int8_t_defined +#define __int8_t_defined +typedef          char    int8_t; +typedef          short   int16_t; +typedef          long    int32_t; +#endif +#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444 +/* 2:4:4 =  LP32 = a 32-bit system derived from a 16-bit */ +/* 4:4:4 = ILP32 = a normal 32-bit system                */ +typedef unsigned char   uint8_t; +typedef unsigned short  uint16_t; +typedef unsigned int    uint32_t; +#ifndef __int8_t_defined +#define __int8_t_defined +typedef          char    int8_t; +typedef          short   int16_t; +typedef          int     int32_t; +#endif +#elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488 +/* 4:8:4 =  IP32 = a 32-bit system prepared for 64-bit    */ +/* 4:8:8 =  LP64 = a normal 64-bit system                 */ +typedef unsigned char   uint8_t; +typedef unsigned short  uint16_t; +typedef unsigned int    uint32_t; +#ifndef __int8_t_defined +#define __int8_t_defined +typedef          char    int8_t; +typedef          short   int16_t; +typedef          int     int32_t; +#endif +/* this system has a "long" of 64bit */ +#ifndef _HAVE_UINT64_T +#define _HAVE_UINT64_T +typedef unsigned long   uint64_t; +typedef          long    int64_t; +#endif +#elif _STDINT_LONG_MODEL+0 == 448 +/*      LLP64   a 64-bit system derived from a 32-bit system */ +typedef unsigned char   uint8_t; +typedef unsigned short  uint16_t; +typedef unsigned int    uint32_t; +#ifndef __int8_t_defined +#define __int8_t_defined +typedef          char    int8_t; +typedef          short   int16_t; +typedef          int     int32_t; +#endif +/* assuming the system has a "long long" */ +#ifndef _HAVE_UINT64_T +#define _HAVE_UINT64_T +#define _HAVE_LONGLONG_UINT64_T +typedef unsigned long long uint64_t; +typedef          long long  int64_t; +#endif +#else +#define _STDINT_NO_INT32_T +#endif +#else +#define _STDINT_NO_INT8_T +#define _STDINT_NO_INT32_T +#endif +#endif + +/* + * quote from SunOS-5.8 sys/inttypes.h: + * Use at your own risk.  As of February 1996, the committee is squarely + * behind the fixed sized types; the "least" and "fast" types are still being + * discussed.  The probability that the "fast" types may be removed before + * the standard is finalized is high enough that they are not currently + * implemented. + */ + +#if defined _STDINT_NEED_INT_LEAST_T +typedef  int8_t    int_least8_t; +typedef  int16_t   int_least16_t; +typedef  int32_t   int_least32_t; +#ifdef _HAVE_UINT64_T +typedef  int64_t   int_least64_t; +#endif + +typedef uint8_t   uint_least8_t; +typedef uint16_t  uint_least16_t; +typedef uint32_t  uint_least32_t; +#ifdef _HAVE_UINT64_T +typedef uint64_t  uint_least64_t; +#endif +  /* least types */ +#endif + +#if defined _STDINT_NEED_INT_FAST_T +typedef  int8_t    int_fast8_t; +typedef  int       int_fast16_t; +typedef  int32_t   int_fast32_t; +#ifdef _HAVE_UINT64_T +typedef  int64_t   int_fast64_t; +#endif + +typedef uint8_t   uint_fast8_t; +typedef unsigned  uint_fast16_t; +typedef uint32_t  uint_fast32_t; +#ifdef _HAVE_UINT64_T +typedef uint64_t  uint_fast64_t; +#endif +  /* fast types */ +#endif + +#ifdef _STDINT_NEED_INTMAX_T +#ifdef _HAVE_UINT64_T +typedef  int64_t       intmax_t; +typedef uint64_t      uintmax_t; +#else +typedef          long  intmax_t; +typedef unsigned long uintmax_t; +#endif +#endif + +#ifdef _STDINT_NEED_INTPTR_T +#ifndef __intptr_t_defined +#define __intptr_t_defined +/* we encourage using "long" to store pointer values, never use "int" ! */ +#if   _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484 +typedef  unsigned int   uintptr_t; +typedef           int    intptr_t; +#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444 +typedef  unsigned long  uintptr_t; +typedef           long   intptr_t; +#elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T +typedef        uint64_t uintptr_t; +typedef         int64_t  intptr_t; +#else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */ +typedef  unsigned long  uintptr_t; +typedef           long   intptr_t; +#endif +#endif +#endif + +/* The ISO C99 standard specifies that in C++ implementations these +   should only be defined if explicitly requested.  */ +#if !defined __cplusplus || defined __STDC_CONSTANT_MACROS +#ifndef UINT32_C + +/* Signed.  */ +# define INT8_C(c)      c +# define INT16_C(c)     c +# define INT32_C(c)     c +# ifdef _HAVE_LONGLONG_UINT64_T +#  define INT64_C(c)    c ## L +# else +#  define INT64_C(c)    c ## LL +# endif + +/* Unsigned.  */ +# define UINT8_C(c)     c ## U +# define UINT16_C(c)    c ## U +# define UINT32_C(c)    c ## U +# ifdef _HAVE_LONGLONG_UINT64_T +#  define UINT64_C(c)   c ## UL +# else +#  define UINT64_C(c)   c ## ULL +# endif + +/* Maximal type.  */ +# ifdef _HAVE_LONGLONG_UINT64_T +#  define INTMAX_C(c)   c ## L +#  define UINTMAX_C(c)  c ## UL +# else +#  define INTMAX_C(c)   c ## LL +#  define UINTMAX_C(c)  c ## ULL +# endif + +  /* literalnumbers */ +#endif +#endif + +/* These limits are merily those of a two complement byte-oriented system */ + +/* Minimum of signed integral types.  */ +# define INT8_MIN               (-128) +# define INT16_MIN              (-32767-1) +# define INT32_MIN              (-2147483647-1) +# define INT64_MIN              (-__INT64_C(9223372036854775807)-1) +/* Maximum of signed integral types.  */ +# define INT8_MAX               (127) +# define INT16_MAX              (32767) +# define INT32_MAX              (2147483647) +# define INT64_MAX              (__INT64_C(9223372036854775807)) + +/* Maximum of unsigned integral types.  */ +# define UINT8_MAX              (255) +# define UINT16_MAX             (65535) +# define UINT32_MAX             (4294967295U) +# define UINT64_MAX             (__UINT64_C(18446744073709551615)) + +/* Minimum of signed integral types having a minimum size.  */ +# define INT_LEAST8_MIN         INT8_MIN +# define INT_LEAST16_MIN        INT16_MIN +# define INT_LEAST32_MIN        INT32_MIN +# define INT_LEAST64_MIN        INT64_MIN +/* Maximum of signed integral types having a minimum size.  */ +# define INT_LEAST8_MAX         INT8_MAX +# define INT_LEAST16_MAX        INT16_MAX +# define INT_LEAST32_MAX        INT32_MAX +# define INT_LEAST64_MAX        INT64_MAX + +/* Maximum of unsigned integral types having a minimum size.  */ +# define UINT_LEAST8_MAX        UINT8_MAX +# define UINT_LEAST16_MAX       UINT16_MAX +# define UINT_LEAST32_MAX       UINT32_MAX +# define UINT_LEAST64_MAX       UINT64_MAX + +  /* shortcircuit*/ +#endif +  /* once */ +#endif +#endif +STDINT_EOF +fi +    if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then +      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5 +$as_echo "$as_me: $ac_stdint_h is unchanged" >&6;} +    else +      ac_dir=`$as_dirname -- "$ac_stdint_h" || +$as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ +	 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \ +	 X"$ac_stdint_h" : 'X\(//\)$' \| \ +	 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_stdint_h" | +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ +	    s//\1/ +	    q +	  } +	  /^X\(\/\/\)[^/].*/{ +	    s//\1/ +	    q +	  } +	  /^X\(\/\/\)$/{ +	    s//\1/ +	    q +	  } +	  /^X\(\/\).*/{ +	    s//\1/ +	    q +	  } +	  s/.*/./; q'` +      as_dir="$ac_dir"; as_fn_mkdir_p +      rm -f $ac_stdint_h +      mv $ac_stdint $ac_stdint_h +    fi + ;;      "tools/sane-config":F) chmod a+x tools/sane-config ;;    esac @@ -21402,9 +24410,9 @@ fi  echo "-> Variables used for compilation/linking:" -echo CPPFLAGS=\"${CPPFLAGS}\" -echo CFLAGS=\"${CFLAGS}\" -echo LDFLAGS=\"${LDFLAGS}\" +echo AM_CPPFLAGS=\"${AM_CPPFLAGS}\" +echo AM_CFLAGS=\"${AM_CFLAGS}\" +echo AM_LDFLAGS=\"${AM_LDFLAGS}\"  echo LIBS=\"${LIBS}\"  echo "-> Installation directories:"  echo "Configuration: `eval eval echo ${sysconfdir}`" @@ -21463,10 +24471,10 @@ if test "$SELECTED_BACKENDS" != "" ; then    echo "*** connected to your local computer won't be supported.  Only a network"    echo "*** connection to a remote host is possible."  fi -if test "$enable_libusb" != "no" && test "$HAVE_USB" != "yes" ; then -  echo "*** Warning: sane-backends will be built without libusb support.  There may" +if test "$with_usb" != "no" && test "$have_usb" != "yes" ; then +  echo "*** Warning: sane-backends will be built without USB support.  There may"    echo "*** be valid reasons to do so, e.g. if you don't use USB scanners or on" -  echo "*** platforms without libusb support but generally this means that you" +  echo "*** platforms without USB support but generally this means that you"    echo "*** can't use USB devices with SANE. The most probable cause is that"    if test "${ac_cv_header_usb_h}" != "yes"; then      echo "*** the libusb header file usb.h is not installed. If you use Linux"  | 
