/[pcre]/code/trunk/configure
ViewVC logotype

Diff of /code/trunk/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 75 by nigel, Sat Feb 24 21:40:37 2007 UTC revision 79 by nigel, Sat Feb 24 21:40:52 2007 UTC
# Line 463  ac_includes_default="\ Line 463  ac_includes_default="\
463  # include <unistd.h>  # include <unistd.h>
464  #endif"  #endif"
465    
466  ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL BUILD_EXEEXT BUILD_OBJEXT CC_FOR_BUILD CFLAGS_FOR_BUILD EBCDIC HAVE_MEMMOVE HAVE_STRERROR LINK_SIZE MATCH_LIMIT NEWLINE NO_RECURSE PCRE_MAJOR PCRE_MINOR PCRE_DATE PCRE_VERSION PCRE_LIB_VERSION PCRE_POSIXLIB_VERSION POSIX_MALLOC_THRESHOLD UCP UTF8 WIN_PREFIX ON_WINDOWS NOT_ON_WINDOWS POSIX_OBJ POSIX_LOBJ POSIX_LIB LIBOBJS LTLIBOBJS'  ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL pcre_has_bits_type_traits pcre_has_type_traits MAYBE_CPP_TARGETS pcre_has_long_long pcre_has_ulong_long BUILD_EXEEXT BUILD_OBJEXT CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD EBCDIC HAVE_MEMMOVE HAVE_STRERROR LINK_SIZE MATCH_LIMIT NEWLINE NO_RECURSE PCRE_MAJOR PCRE_MINOR PCRE_DATE PCRE_VERSION PCRE_LIB_VERSION PCRE_POSIXLIB_VERSION PCRE_CPPLIB_VERSION POSIX_MALLOC_THRESHOLD UCP UTF8 WIN_PREFIX ON_WINDOWS NOT_ON_WINDOWS POSIX_OBJ POSIX_LOBJ POSIX_LIB LIBOBJS LTLIBOBJS'
467  ac_subst_files=''  ac_subst_files=''
468    
469  # Initialize some variables set by options.  # Initialize some variables set by options.
# Line 920  ac_env_CPPFLAGS_set=${CPPFLAGS+set} Line 920  ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920  ac_env_CPPFLAGS_value=$CPPFLAGS  ac_env_CPPFLAGS_value=$CPPFLAGS
921  ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}  ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922  ac_cv_env_CPPFLAGS_value=$CPPFLAGS  ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 ac_env_CPP_set=${CPP+set}  
 ac_env_CPP_value=$CPP  
 ac_cv_env_CPP_set=${CPP+set}  
 ac_cv_env_CPP_value=$CPP  
923  ac_env_CXX_set=${CXX+set}  ac_env_CXX_set=${CXX+set}
924  ac_env_CXX_value=$CXX  ac_env_CXX_value=$CXX
925  ac_cv_env_CXX_set=${CXX+set}  ac_cv_env_CXX_set=${CXX+set}
# Line 932  ac_env_CXXFLAGS_set=${CXXFLAGS+set} Line 928  ac_env_CXXFLAGS_set=${CXXFLAGS+set}
928  ac_env_CXXFLAGS_value=$CXXFLAGS  ac_env_CXXFLAGS_value=$CXXFLAGS
929  ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}  ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
930  ac_cv_env_CXXFLAGS_value=$CXXFLAGS  ac_cv_env_CXXFLAGS_value=$CXXFLAGS
931    ac_env_CPP_set=${CPP+set}
932    ac_env_CPP_value=$CPP
933    ac_cv_env_CPP_set=${CPP+set}
934    ac_cv_env_CPP_value=$CPP
935  ac_env_CXXCPP_set=${CXXCPP+set}  ac_env_CXXCPP_set=${CXXCPP+set}
936  ac_env_CXXCPP_value=$CXXCPP  ac_env_CXXCPP_value=$CXXCPP
937  ac_cv_env_CXXCPP_set=${CXXCPP+set}  ac_cv_env_CXXCPP_set=${CXXCPP+set}
# Line 950  ac_cv_env_FFLAGS_value=$FFLAGS Line 950  ac_cv_env_FFLAGS_value=$FFLAGS
950  #  #
951  if test "$ac_init_help" = "long"; then  if test "$ac_init_help" = "long"; then
952    # Omit some internal or obsolete options to make the list less imposing.    # Omit some internal or obsolete options to make the list less imposing.
     # The list generated by autoconf has been trimmed to remove many  
     # options that are totally irrelevant to PCRE (e.g. relating to X),  
     # or are not supported by its Makefile.  
     # The list generated by autoconf has been trimmed to remove many  
     # options that are totally irrelevant to PCRE (e.g. relating to X),  
     # or are not supported by its Makefile.  
     # The list generated by autoconf has been trimmed to remove many  
     # options that are totally irrelevant to PCRE (e.g. relating to X),  
     # or are not supported by its Makefile.  
     # The list generated by autoconf has been trimmed to remove many  
     # options that are totally irrelevant to PCRE (e.g. relating to X),  
     # or are not supported by its Makefile.  
     # The list generated by autoconf has been trimmed to remove many  
     # options that are totally irrelevant to PCRE (e.g. relating to X),  
     # or are not supported by its Makefile.  
     # The list generated by autoconf has been trimmed to remove many  
     # options that are totally irrelevant to PCRE (e.g. relating to X),  
     # or are not supported by its Makefile.  
953    # This message is too long to be a string in the A/UX 3.1 sh.    # This message is too long to be a string in the A/UX 3.1 sh.
954    cat <<_ACEOF    cat <<_ACEOF
955  \`configure' configures this package to adapt to many kinds of systems.  \`configure' configures this package to adapt to many kinds of systems.
# Line 1008  For better control, use the options belo Line 990  For better control, use the options belo
990    
991  Fine tuning of the installation directories:  Fine tuning of the installation directories:
992    --bindir=DIR           user executables [EPREFIX/bin]    --bindir=DIR           user executables [EPREFIX/bin]
993      --sbindir=DIR          system admin executables [EPREFIX/sbin]
994      --libexecdir=DIR       program executables [EPREFIX/libexec]
995      --datadir=DIR          read-only architecture-independent data [PREFIX/share]
996      --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
997      --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
998      --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
999    --libdir=DIR           object code libraries [EPREFIX/lib]    --libdir=DIR           object code libraries [EPREFIX/lib]
1000    --includedir=DIR       C header files [PREFIX/include]    --includedir=DIR       C header files [PREFIX/include]
1001      --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1002      --infodir=DIR          info documentation [PREFIX/info]
1003    --mandir=DIR           man documentation [PREFIX/man]    --mandir=DIR           man documentation [PREFIX/man]
1004  _ACEOF  _ACEOF
1005    
1006    cat <<\_ACEOF    cat <<\_ACEOF
1007    
1008    System types:
1009      --build=BUILD     configure for building on BUILD [guessed]
1010      --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1011  _ACEOF  _ACEOF
1012  fi  fi
1013    
# Line 1025  if test -n "$ac_init_help"; then Line 1018  if test -n "$ac_init_help"; then
1018  Optional Features:  Optional Features:
1019    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1020    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1021    --enable-shared[     ]    --enable-shared[=PKGS]
1022                            build shared libraries [default=yes]                            build shared libraries [default=yes]
1023    --enable-static[     ]    --enable-static[=PKGS]
1024                            build static libraries [default=yes]                            build static libraries [default=yes]
1025    --enable-fast-install[     ]    --enable-fast-install[=PKGS]
1026                            optimize for fast installation [default=yes]                            optimize for fast installation [default=yes]
1027    --disable-libtool-lock  avoid locking (might break parallel builds)    --disable-libtool-lock  avoid locking (might break parallel builds)
1028    --enable-utf8           enable UTF8 support    --enable-utf8           enable UTF8 support
# Line 1040  Optional Features: Line 1033  Optional Features:
1033    --disable-stack-for-recursion  disable use of stack recursion when matching    --disable-stack-for-recursion  disable use of stack recursion when matching
1034    
1035  Optional Packages:  Optional Packages:
1036      --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1037      --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1038    --with-gnu-ld           assume the C compiler uses GNU ld [default=no]    --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1039    --with-pic              try to use only PIC/non-PIC objects [default=use    --with-pic              try to use only PIC/non-PIC objects [default=use
1040                            both]                            both]
# Line 1056  Some influential environment variables: Line 1051  Some influential environment variables:
1051                nonstandard directory <lib dir>                nonstandard directory <lib dir>
1052    CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have    CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1053                headers in a nonstandard directory <include dir>                headers in a nonstandard directory <include dir>
   CPP         C preprocessor  
1054    CXX         C++ compiler command    CXX         C++ compiler command
1055    CXXFLAGS    C++ compiler flags    CXXFLAGS    C++ compiler flags
1056      CPP         C preprocessor
1057    CXXCPP      C++ preprocessor    CXXCPP      C++ preprocessor
1058    F77         Fortran 77 compiler command    F77         Fortran 77 compiler command
1059    FFLAGS      Fortran 77 compiler flags    FFLAGS      Fortran 77 compiler flags
# Line 1509  ac_compiler_gnu=$ac_cv_c_compiler_gnu Line 1504  ac_compiler_gnu=$ac_cv_c_compiler_gnu
1504    
1505    
1506    
1507  PCRE_MAJOR=5  PCRE_MAJOR=6
1508  PCRE_MINOR=0  PCRE_MINOR=1
1509  PCRE_DATE=13-Sep-2004  PCRE_DATE=21-Jun-2005
1510  PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR}  PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR}
1511    
1512    
# Line 1520  POSIX_MALLOC_THRESHOLD=-DPOSIX_MALLOC_TH Line 1515  POSIX_MALLOC_THRESHOLD=-DPOSIX_MALLOC_TH
1515    
1516  PCRE_LIB_VERSION=0:1:0  PCRE_LIB_VERSION=0:1:0
1517  PCRE_POSIXLIB_VERSION=0:0:0  PCRE_POSIXLIB_VERSION=0:0:0
1518    PCRE_CPPLIB_VERSION=0:0:0
1519    
1520    
1521  ac_ext=c  ac_ext=c
# Line 2454  ac_compiler_gnu=$ac_cv_c_compiler_gnu Line 2450  ac_compiler_gnu=$ac_cv_c_compiler_gnu
2450    
2451    
2452    
2453  ac_aux_dir=  ac_ext=cc
2454  for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do  ac_cpp='$CXXCPP $CPPFLAGS'
2455    if test -f $ac_dir/install-sh; then  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2456      ac_aux_dir=$ac_dir  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2457      ac_install_sh="$ac_aux_dir/install-sh -c"  ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2458      break  if test -n "$ac_tool_prefix"; then
2459    elif test -f $ac_dir/install.sh; then    for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2460      ac_aux_dir=$ac_dir    do
2461      ac_install_sh="$ac_aux_dir/install.sh -c"      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2462      break  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2463    elif test -f $ac_dir/shtool; then  echo "$as_me:$LINENO: checking for $ac_word" >&5
2464      ac_aux_dir=$ac_dir  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2465      ac_install_sh="$ac_aux_dir/shtool install -c"  if test "${ac_cv_prog_CXX+set}" = set; then
2466      break    echo $ECHO_N "(cached) $ECHO_C" >&6
2467    else
2468      if test -n "$CXX"; then
2469      ac_cv_prog_CXX="$CXX" # Let the user override the test.
2470    else
2471    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472    for as_dir in $PATH
2473    do
2474      IFS=$as_save_IFS
2475      test -z "$as_dir" && as_dir=.
2476      for ac_exec_ext in '' $ac_executable_extensions; do
2477      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2478        ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2479        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2480        break 2
2481    fi    fi
2482  done  done
2483  if test -z "$ac_aux_dir"; then  done
2484    { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5  
2485  echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}  fi
2486     { (exit 1); exit 1; }; }  fi
2487    CXX=$ac_cv_prog_CXX
2488    if test -n "$CXX"; then
2489      echo "$as_me:$LINENO: result: $CXX" >&5
2490    echo "${ECHO_T}$CXX" >&6
2491    else
2492      echo "$as_me:$LINENO: result: no" >&5
2493    echo "${ECHO_T}no" >&6
2494  fi  fi
 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  
 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  
 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.  
2495    
2496  # Find a good install program.  We prefer a C program (faster),      test -n "$CXX" && break
2497  # so one script is as good as another.  But avoid the broken or    done
2498  # incompatible versions:  fi
2499  # SysV /etc/install, /usr/sbin/install  if test -z "$CXX"; then
2500  # SunOS /usr/etc/install    ac_ct_CXX=$CXX
2501  # IRIX /sbin/install    for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2502  # AIX /bin/install  do
2503  # AmigaOS /C/install, which installs bootblocks on floppy discs    # Extract the first word of "$ac_prog", so it can be a program name with args.
2504  # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag  set dummy $ac_prog; ac_word=$2
2505  # AFS /usr/afsws/bin/install, which mishandles nonexistent args  echo "$as_me:$LINENO: checking for $ac_word" >&5
2506  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2507  # OS/2's system install, which has a completely different semantic  if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 # ./install, which can be erroneously created by make from ./install.sh.  
 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5  
 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6  
 if test -z "$INSTALL"; then  
 if test "${ac_cv_path_install+set}" = set; then  
2508    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2509  else  else
2510    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    if test -n "$ac_ct_CXX"; then
2511      ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2512    else
2513    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514  for as_dir in $PATH  for as_dir in $PATH
2515  do  do
2516    IFS=$as_save_IFS    IFS=$as_save_IFS
2517    test -z "$as_dir" && as_dir=.    test -z "$as_dir" && as_dir=.
2518    # Account for people who put trailing slashes in PATH elements.    for ac_exec_ext in '' $ac_executable_extensions; do
2519  case $as_dir/ in    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2520    ./ | .// | /cC/* | \      ac_cv_prog_ac_ct_CXX="$ac_prog"
2521    /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522    ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \      break 2
2523    /usr/ucb/* ) ;;    fi
2524    *)  done
     # OSF1 and SCO ODT 3.0 have their own names for install.  
     # Don't use installbsd from OSF since it installs stuff as root  
     # by default.  
     for ac_prog in ginstall scoinst install; do  
       for ac_exec_ext in '' $ac_executable_extensions; do  
         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then  
           if test $ac_prog = install &&  
             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then  
             # AIX install.  It has an incompatible calling convention.  
             :  
           elif test $ac_prog = install &&  
             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then  
             # program-specific install script used by HP pwplus--don't use.  
             :  
           else  
             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"  
             break 3  
           fi  
         fi  
       done  
     done  
     ;;  
 esac  
2525  done  done
   
2526    
2527  fi  fi
   if test "${ac_cv_path_install+set}" = set; then  
     INSTALL=$ac_cv_path_install  
   else  
     # As a last resort, use the slow shell script.  We don't cache a  
     # path for INSTALL within a source directory, because that will  
     # break other packages using the cache if that directory is  
     # removed, or if the path is relative.  
     INSTALL=$ac_install_sh  
   fi  
2528  fi  fi
2529  echo "$as_me:$LINENO: result: $INSTALL" >&5  ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2530  echo "${ECHO_T}$INSTALL" >&6  if test -n "$ac_ct_CXX"; then
2531      echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2532  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.  echo "${ECHO_T}$ac_ct_CXX" >&6
2533  # It thinks the first close brace ends the variable substitution.  else
2534  test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'    echo "$as_me:$LINENO: result: no" >&5
2535    echo "${ECHO_T}no" >&6
2536    fi
2537    
2538  test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'    test -n "$ac_ct_CXX" && break
2539    done
2540    test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2541    
2542  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'    CXX=$ac_ct_CXX
2543    fi
2544    
2545    
2546    # Provide some information about the compiler.
2547    echo "$as_me:$LINENO:" \
2548         "checking for C++ compiler version" >&5
2549    ac_compiler=`set X $ac_compile; echo $2`
2550    { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2551      (eval $ac_compiler --version </dev/null >&5) 2>&5
2552      ac_status=$?
2553      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554      (exit $ac_status); }
2555    { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2556      (eval $ac_compiler -v </dev/null >&5) 2>&5
2557      ac_status=$?
2558      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559      (exit $ac_status); }
2560    { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2561      (eval $ac_compiler -V </dev/null >&5) 2>&5
2562      ac_status=$?
2563      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564      (exit $ac_status); }
2565    
2566  # Check whether --enable-shared or --disable-shared was given.  echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2567  if test "${enable_shared+set}" = set; then  echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2568    enableval="$enable_shared"  if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2569    p=${PACKAGE-default}    echo $ECHO_N "(cached) $ECHO_C" >&6
     case $enableval in  
     yes) enable_shared=yes ;;  
     no) enable_shared=no ;;  
     *)  
       enable_shared=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_shared=yes  
         fi  
       done  
       IFS="$lt_save_ifs"  
       ;;  
     esac  
2570  else  else
2571    enable_shared=yes    cat >conftest.$ac_ext <<_ACEOF
2572  fi;  /* confdefs.h.  */
2573    _ACEOF
2574    cat confdefs.h >>conftest.$ac_ext
2575    cat >>conftest.$ac_ext <<_ACEOF
2576    /* end confdefs.h.  */
2577    
2578  # Check whether --enable-static or --disable-static was given.  int
2579  if test "${enable_static+set}" = set; then  main ()
2580    enableval="$enable_static"  {
2581    p=${PACKAGE-default}  #ifndef __GNUC__
2582      case $enableval in         choke me
2583      yes) enable_static=yes ;;  #endif
     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=yes  
 fi;  
2584    
2585  # Check whether --enable-fast-install or --disable-fast-install was given.    ;
2586  if test "${enable_fast_install+set}" = set; then    return 0;
2587    enableval="$enable_fast_install"  }
2588    p=${PACKAGE-default}  _ACEOF
2589      case $enableval in  rm -f conftest.$ac_objext
2590      yes) enable_fast_install=yes ;;  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2591      no) enable_fast_install=no ;;    (eval $ac_compile) 2>conftest.er1
2592      *)    ac_status=$?
2593        enable_fast_install=no    grep -v '^ *+' conftest.er1 >conftest.err
2594        # Look at the argument we got.  We use all the common list separators.    rm -f conftest.er1
2595        lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"    cat conftest.err >&5
2596        for pkg in $enableval; do    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597          IFS="$lt_save_ifs"    (exit $ac_status); } &&
2598          if test "X$pkg" = "X$p"; then           { ac_try='test -z "$ac_cxx_werror_flag"
2599            enable_fast_install=yes                           || test ! -s conftest.err'
2600          fi    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601        done    (eval $ac_try) 2>&5
2602        IFS="$lt_save_ifs"    ac_status=$?
2603        ;;    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604      esac    (exit $ac_status); }; } &&
2605  else           { ac_try='test -s conftest.$ac_objext'
2606    enable_fast_install=yes    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607  fi;    (eval $ac_try) 2>&5
2608      ac_status=$?
2609  # Make sure we can run config.sub.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610  $ac_config_sub sun4 >/dev/null 2>&1 ||    (exit $ac_status); }; }; then
2611    { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5    ac_compiler_gnu=yes
 echo "$as_me: error: cannot run $ac_config_sub" >&2;}  
    { (exit 1); exit 1; }; }  
   
 echo "$as_me:$LINENO: checking build system type" >&5  
 echo $ECHO_N "checking build system type... $ECHO_C" >&6  
 if test "${ac_cv_build+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
2612  else  else
2613    ac_cv_build_alias=$build_alias    echo "$as_me: failed program was:" >&5
2614  test -z "$ac_cv_build_alias" &&  sed 's/^/| /' conftest.$ac_ext >&5
   ac_cv_build_alias=`$ac_config_guess`  
 test -z "$ac_cv_build_alias" &&  
   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5  
 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}  
    { (exit 1); exit 1; }; }  
 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||  
   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5  
 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}  
    { (exit 1); exit 1; }; }  
2615    
2616    ac_compiler_gnu=no
2617  fi  fi
2618  echo "$as_me:$LINENO: result: $ac_cv_build" >&5  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2619  echo "${ECHO_T}$ac_cv_build" >&6  ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 build=$ac_cv_build  
 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`  
 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`  
 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`  
   
2620    
2621  echo "$as_me:$LINENO: checking host system type" >&5  fi
2622  echo $ECHO_N "checking host system type... $ECHO_C" >&6  echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2623  if test "${ac_cv_host+set}" = set; then  echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2624    GXX=`test $ac_compiler_gnu = yes && echo yes`
2625    ac_test_CXXFLAGS=${CXXFLAGS+set}
2626    ac_save_CXXFLAGS=$CXXFLAGS
2627    CXXFLAGS="-g"
2628    echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2629    echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2630    if test "${ac_cv_prog_cxx_g+set}" = set; then
2631    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2632  else  else
2633    ac_cv_host_alias=$host_alias    cat >conftest.$ac_ext <<_ACEOF
2634  test -z "$ac_cv_host_alias" &&  /* confdefs.h.  */
2635    ac_cv_host_alias=$ac_cv_build_alias  _ACEOF
2636  ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||  cat confdefs.h >>conftest.$ac_ext
2637    { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5  cat >>conftest.$ac_ext <<_ACEOF
2638  echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}  /* end confdefs.h.  */
    { (exit 1); exit 1; }; }  
   
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_host" >&5  
 echo "${ECHO_T}$ac_cv_host" >&6  
 host=$ac_cv_host  
 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`  
 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`  
 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`  
2639    
2640    int
2641    main ()
2642    {
2643    
2644  echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5    ;
2645  echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6    return 0;
2646  if test "${lt_cv_path_SED+set}" = set; then  }
2647    echo $ECHO_N "(cached) $ECHO_C" >&6  _ACEOF
2648    rm -f conftest.$ac_objext
2649    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2650      (eval $ac_compile) 2>conftest.er1
2651      ac_status=$?
2652      grep -v '^ *+' conftest.er1 >conftest.err
2653      rm -f conftest.er1
2654      cat conftest.err >&5
2655      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656      (exit $ac_status); } &&
2657             { ac_try='test -z "$ac_cxx_werror_flag"
2658                             || test ! -s conftest.err'
2659      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660      (eval $ac_try) 2>&5
2661      ac_status=$?
2662      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663      (exit $ac_status); }; } &&
2664             { ac_try='test -s conftest.$ac_objext'
2665      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666      (eval $ac_try) 2>&5
2667      ac_status=$?
2668      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669      (exit $ac_status); }; }; then
2670      ac_cv_prog_cxx_g=yes
2671  else  else
2672    # Loop through the user's path and test for sed and gsed.    echo "$as_me: failed program was:" >&5
2673  # Then use that list of sed's as ones to test for truncation.  sed 's/^/| /' conftest.$ac_ext >&5
 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR  
 for as_dir in $PATH  
 do  
   IFS=$as_save_IFS  
   test -z "$as_dir" && as_dir=.  
   for lt_ac_prog in sed gsed; do  
     for ac_exec_ext in '' $ac_executable_extensions; do  
       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then  
         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"  
       fi  
     done  
   done  
 done  
 lt_ac_max=0  
 lt_ac_count=0  
 # Add /usr/xpg4/bin/sed as it is typically found on Solaris  
 # along with /bin/sed that truncates output.  
 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do  
   test ! -f $lt_ac_sed && break  
   cat /dev/null > conftest.in  
   lt_ac_count=0  
   echo $ECHO_N "0123456789$ECHO_C" >conftest.in  
   # Check for GNU sed and select it if it is found.  
   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then  
     lt_cv_path_SED=$lt_ac_sed  
     break  
   fi  
   while true; do  
     cat conftest.in conftest.in >conftest.tmp  
     mv conftest.tmp conftest.in  
     cp conftest.in conftest.nl  
     echo >>conftest.nl  
     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break  
     cmp -s conftest.out conftest.nl || break  
     # 10000 chars as input seems more than enough  
     test $lt_ac_count -gt 10 && break  
     lt_ac_count=`expr $lt_ac_count + 1`  
     if test $lt_ac_count -gt $lt_ac_max; then  
       lt_ac_max=$lt_ac_count  
       lt_cv_path_SED=$lt_ac_sed  
     fi  
   done  
 done  
2674    
2675    ac_cv_prog_cxx_g=no
2676  fi  fi
2677    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 SED=$lt_cv_path_SED  
 echo "$as_me:$LINENO: result: $SED" >&5  
 echo "${ECHO_T}$SED" >&6  
   
 echo "$as_me:$LINENO: checking for egrep" >&5  
 echo $ECHO_N "checking for egrep... $ECHO_C" >&6  
 if test "${ac_cv_prog_egrep+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   if echo a | (grep -E '(a|b)') >/dev/null 2>&1  
     then ac_cv_prog_egrep='grep -E'  
     else ac_cv_prog_egrep='egrep'  
     fi  
2678  fi  fi
2679  echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5  echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2680  echo "${ECHO_T}$ac_cv_prog_egrep" >&6  echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2681   EGREP=$ac_cv_prog_egrep  if test "$ac_test_CXXFLAGS" = set; then
2682      CXXFLAGS=$ac_save_CXXFLAGS
2683    elif test $ac_cv_prog_cxx_g = yes; then
2684      if test "$GXX" = yes; then
2685  # Check whether --with-gnu-ld or --without-gnu-ld was given.      CXXFLAGS="-g -O2"
2686  if test "${with_gnu_ld+set}" = set; then    else
2687    withval="$with_gnu_ld"      CXXFLAGS="-g"
2688    test "$withval" = no || with_gnu_ld=yes    fi
2689  else  else
2690    with_gnu_ld=no    if test "$GXX" = yes; then
2691  fi;      CXXFLAGS="-O2"
2692  ac_prog=ld    else
2693  if test "$GCC" = yes; then      CXXFLAGS=
2694    # Check if gcc -print-prog-name=ld gives a path.    fi
   echo "$as_me:$LINENO: checking for ld used by $CC" >&5  
 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&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.  
     [\\/]* | ?:[\\/]*)  
       re_direlt='/[^/][^/]*/\.\./'  
       # Canonicalize the pathname 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  
   echo "$as_me:$LINENO: checking for GNU ld" >&5  
 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6  
 else  
   echo "$as_me:$LINENO: checking for non-GNU ld" >&5  
 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6  
 fi  
 if test "${lt_cv_path_LD+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   if test -z "$LD"; then  
   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR  
   for ac_dir in $PATH; do  
     IFS="$lt_save_ifs"  
     test -z "$ac_dir" && ac_dir=.  
     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then  
       lt_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 `"$lt_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="$lt_save_ifs"  
 else  
   lt_cv_path_LD="$LD" # Let the user override the test with a path.  
 fi  
 fi  
   
 LD="$lt_cv_path_LD"  
 if test -n "$LD"; then  
   echo "$as_me:$LINENO: result: $LD" >&5  
 echo "${ECHO_T}$LD" >&6  
 else  
   echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6  
 fi  
 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5  
 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}  
    { (exit 1); exit 1; }; }  
 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5  
 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6  
 if test "${lt_cv_prog_gnu_ld+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&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'*)  
   lt_cv_prog_gnu_ld=yes  
   ;;  
 *)  
   lt_cv_prog_gnu_ld=no  
   ;;  
 esac  
 fi  
 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5  
 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6  
 with_gnu_ld=$lt_cv_prog_gnu_ld  
   
   
 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5  
 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6  
 if test "${lt_cv_ld_reload_flag+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   lt_cv_ld_reload_flag='-r'  
2695  fi  fi
2696  echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5  for ac_declaration in \
2697  echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6     '' \
2698  reload_flag=$lt_cv_ld_reload_flag     'extern "C" void std::exit (int) throw (); using std::exit;' \
2699  case $reload_flag in     'extern "C" void std::exit (int); using std::exit;' \
2700  "" | " "*) ;;     'extern "C" void exit (int) throw ();' \
2701  *) reload_flag=" $reload_flag" ;;     'extern "C" void exit (int);' \
2702  esac     'void exit (int);'
2703  reload_cmds='$LD$reload_flag -o $output$reload_objs'  do
2704  case $host_os in    cat >conftest.$ac_ext <<_ACEOF
2705    darwin*)  /* confdefs.h.  */
2706      if test "$GCC" = yes; then  _ACEOF
2707        reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'  cat confdefs.h >>conftest.$ac_ext
2708      else  cat >>conftest.$ac_ext <<_ACEOF
2709        reload_cmds='$LD$reload_flag -o $output$reload_objs'  /* end confdefs.h.  */
2710      fi  $ac_declaration
2711      ;;  #include <stdlib.h>
2712  esac  int
2713    main ()
2714  echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5  {
2715  echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6  exit (42);
2716  if test "${lt_cv_path_NM+set}" = set; then    ;
2717    echo $ECHO_N "(cached) $ECHO_C" >&6    return 0;
2718  else  }
2719    if test -n "$NM"; then  _ACEOF
2720    # Let the user override the test.  rm -f conftest.$ac_objext
2721    lt_cv_path_NM="$NM"  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722      (eval $ac_compile) 2>conftest.er1
2723      ac_status=$?
2724      grep -v '^ *+' conftest.er1 >conftest.err
2725      rm -f conftest.er1
2726      cat conftest.err >&5
2727      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728      (exit $ac_status); } &&
2729             { ac_try='test -z "$ac_cxx_werror_flag"
2730                             || test ! -s conftest.err'
2731      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732      (eval $ac_try) 2>&5
2733      ac_status=$?
2734      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735      (exit $ac_status); }; } &&
2736             { ac_try='test -s conftest.$ac_objext'
2737      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738      (eval $ac_try) 2>&5
2739      ac_status=$?
2740      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741      (exit $ac_status); }; }; then
2742      :
2743  else  else
2744    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR    echo "$as_me: failed program was:" >&5
2745    for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do  sed 's/^/| /' conftest.$ac_ext >&5
     IFS="$lt_save_ifs"  
     test -z "$ac_dir" && ac_dir=.  
     tmp_nm="$ac_dir/${ac_tool_prefix}nm"  
     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then  
       # Check to see if the nm accepts a BSD-compat flag.  
       # Adding the `sed 1q' prevents false positives on HP-UX, which says:  
       #   nm: unknown option "B" ignored  
       # Tru64's nm complains that /dev/null is an invalid object file  
       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in  
       */dev/null* | *'Invalid file or object type'*)  
         lt_cv_path_NM="$tmp_nm -B"  
         break  
         ;;  
       *)  
         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in  
         */dev/null*)  
           lt_cv_path_NM="$tmp_nm -p"  
           break  
           ;;  
         *)  
           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but  
           continue # so that we can try to find one that supports BSD flags  
           ;;  
         esac  
       esac  
     fi  
   done  
   IFS="$lt_save_ifs"  
   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm  
 fi  
 fi  
 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5  
 echo "${ECHO_T}$lt_cv_path_NM" >&6  
 NM="$lt_cv_path_NM"  
2746    
2747  echo "$as_me:$LINENO: checking whether ln -s works" >&5  continue
 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6  
 LN_S=$as_ln_s  
 if test "$LN_S" = "ln -s"; then  
   echo "$as_me:$LINENO: result: yes" >&5  
 echo "${ECHO_T}yes" >&6  
 else  
   echo "$as_me:$LINENO: result: no, using $LN_S" >&5  
 echo "${ECHO_T}no, using $LN_S" >&6  
2748  fi  fi
2749    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2750      cat >conftest.$ac_ext <<_ACEOF
2751    /* confdefs.h.  */
2752    _ACEOF
2753    cat confdefs.h >>conftest.$ac_ext
2754    cat >>conftest.$ac_ext <<_ACEOF
2755    /* end confdefs.h.  */
2756    $ac_declaration
2757    int
2758    main ()
2759    {
2760    exit (42);
2761      ;
2762      return 0;
2763    }
2764    _ACEOF
2765    rm -f conftest.$ac_objext
2766    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767      (eval $ac_compile) 2>conftest.er1
2768      ac_status=$?
2769      grep -v '^ *+' conftest.er1 >conftest.err
2770      rm -f conftest.er1
2771      cat conftest.err >&5
2772      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773      (exit $ac_status); } &&
2774             { ac_try='test -z "$ac_cxx_werror_flag"
2775                             || test ! -s conftest.err'
2776      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777      (eval $ac_try) 2>&5
2778      ac_status=$?
2779      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780      (exit $ac_status); }; } &&
2781             { ac_try='test -s conftest.$ac_objext'
2782      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783      (eval $ac_try) 2>&5
2784      ac_status=$?
2785      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786      (exit $ac_status); }; }; then
2787      break
2788    else
2789      echo "$as_me: failed program was:" >&5
2790    sed 's/^/| /' conftest.$ac_ext >&5
2791    
2792  echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5  fi
2793  echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2794  if test "${lt_cv_deplibs_check_method+set}" = set; then  done
2795    echo $ECHO_N "(cached) $ECHO_C" >&6  rm -f conftest*
2796  else  if test -n "$ac_declaration"; then
2797    lt_cv_file_magic_cmd='$MAGIC_CMD'    echo '#ifdef __cplusplus' >>confdefs.h
2798  lt_cv_file_magic_test_file=    echo $ac_declaration      >>confdefs.h
2799  lt_cv_deplibs_check_method='unknown'    echo '#endif'             >>confdefs.h
2800  # Need to set the preceding variable on all platforms that support  fi
 # interlibrary dependencies.  
 # 'none' -- dependencies not supported.  
 # `unknown' -- same as none, but documents that we really don't know.  
 # 'pass_all' -- all dependencies passed with no checks.  
 # 'test_compile' -- check by making test program.  
 # 'file_magic [[regex]]' -- check by looking for files in library path  
 # which responds to the $file_magic_cmd with a given extended regex.  
 # If you have `file' or equivalent on your system and you're not sure  
 # whether `pass_all' will *always* work, you probably want this one.  
   
 case $host_os in  
 aix4* | aix5*)  
   lt_cv_deplibs_check_method=pass_all  
   ;;  
   
 beos*)  
   lt_cv_deplibs_check_method=pass_all  
   ;;  
   
 bsdi[45]*)  
   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'  
   lt_cv_file_magic_cmd='/usr/bin/file -L'  
   lt_cv_file_magic_test_file=/shlib/libc.so  
   ;;  
   
 cygwin*)  
   # func_win32_libid is a shell function defined in ltmain.sh  
   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'  
   lt_cv_file_magic_cmd='func_win32_libid'  
   ;;  
   
 mingw* | pw32*)  
   # Base MSYS/MinGW do not provide the 'file' command needed by  
   # func_win32_libid shell function, so use a weaker test based on 'objdump'.  
   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'  
   lt_cv_file_magic_cmd='$OBJDUMP -f'  
   ;;  
   
 darwin* | rhapsody*)  
   lt_cv_deplibs_check_method=pass_all  
   ;;  
   
 freebsd* | kfreebsd*-gnu)  
   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then  
     case $host_cpu in  
     i*86 )  
       # Not sure whether the presence of OpenBSD here was a mistake.  
       # Let's accept both of them until this is cleared up.  
       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'  
       lt_cv_file_magic_cmd=/usr/bin/file  
       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`  
       ;;  
     esac  
   else  
     lt_cv_deplibs_check_method=pass_all  
   fi  
   ;;  
   
 gnu*)  
   lt_cv_deplibs_check_method=pass_all  
   ;;  
   
 hpux10.20* | hpux11*)  
   lt_cv_file_magic_cmd=/usr/bin/file  
   case "$host_cpu" in  
   ia64*)  
     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'  
     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so  
     ;;  
   hppa*64*)  
     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'  
     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl  
     ;;  
   *)  
     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'  
     lt_cv_file_magic_test_file=/usr/lib/libc.sl  
     ;;  
   esac  
   ;;  
   
 irix5* | irix6* | nonstopux*)  
   case $LD in  
   *-32|*"-32 ") libmagic=32-bit;;  
   *-n32|*"-n32 ") libmagic=N32;;  
   *-64|*"-64 ") libmagic=64-bit;;  
   *) libmagic=never-match;;  
   esac  
   lt_cv_deplibs_check_method=pass_all  
   ;;  
   
 # This must be Linux ELF.  
 linux*)  
   case $host_cpu in  
   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)  
     lt_cv_deplibs_check_method=pass_all ;;  
   *)  
     # glibc up to 2.1.1 does not perform some relocations on ARM  
     # this will be overridden with pass_all, but let us keep it just in case  
     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;  
   esac  
   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`  
   lt_cv_deplibs_check_method=pass_all  
   ;;  
   
 netbsd*)  
   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  
     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'  
   fi  
   ;;  
   
 newos6*)  
   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'  
   lt_cv_file_magic_cmd=/usr/bin/file  
   lt_cv_file_magic_test_file=/usr/lib/libnls.so  
   ;;  
   
 nto-qnx*)  
   lt_cv_deplibs_check_method=unknown  
   ;;  
2801    
2802  openbsd*)  ac_ext=c
2803    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then  ac_cpp='$CPP $CPPFLAGS'
2804      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2805    else  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2806      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'  ac_compiler_gnu=$ac_cv_c_compiler_gnu
   fi  
   ;;  
2807    
 osf3* | osf4* | osf5*)  
   lt_cv_deplibs_check_method=pass_all  
   ;;  
2808    
 sco3.2v5*)  
   lt_cv_deplibs_check_method=pass_all  
   ;;  
2809    
2810  solaris*)  ac_aux_dir=
2811    lt_cv_deplibs_check_method=pass_all  for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2812    ;;    if test -f $ac_dir/install-sh; then
2813        ac_aux_dir=$ac_dir
2814        ac_install_sh="$ac_aux_dir/install-sh -c"
2815        break
2816      elif test -f $ac_dir/install.sh; then
2817        ac_aux_dir=$ac_dir
2818        ac_install_sh="$ac_aux_dir/install.sh -c"
2819        break
2820      elif test -f $ac_dir/shtool; then
2821        ac_aux_dir=$ac_dir
2822        ac_install_sh="$ac_aux_dir/shtool install -c"
2823        break
2824      fi
2825    done
2826    if test -z "$ac_aux_dir"; then
2827      { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2828    echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2829       { (exit 1); exit 1; }; }
2830    fi
2831    ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2832    ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2833    ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2834    
2835  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)  # Find a good install program.  We prefer a C program (faster),
2836    case $host_vendor in  # so one script is as good as another.  But avoid the broken or
2837    motorola)  # incompatible versions:
2838      lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'  # SysV /etc/install, /usr/sbin/install
2839      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`  # SunOS /usr/etc/install
2840      ;;  # IRIX /sbin/install
2841    ncr)  # AIX /bin/install
2842      lt_cv_deplibs_check_method=pass_all  # AmigaOS /C/install, which installs bootblocks on floppy discs
2843      ;;  # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2844    sequent)  # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2845      lt_cv_file_magic_cmd='/bin/file'  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2846      lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'  # OS/2's system install, which has a completely different semantic
2847      ;;  # ./install, which can be erroneously created by make from ./install.sh.
2848    sni)  echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2849      lt_cv_file_magic_cmd='/bin/file'  echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2850      lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"  if test -z "$INSTALL"; then
2851      lt_cv_file_magic_test_file=/lib/libc.so  if test "${ac_cv_path_install+set}" = set; then
2852      ;;    echo $ECHO_N "(cached) $ECHO_C" >&6
2853    siemens)  else
2854      lt_cv_deplibs_check_method=pass_all    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855    for as_dir in $PATH
2856    do
2857      IFS=$as_save_IFS
2858      test -z "$as_dir" && as_dir=.
2859      # Account for people who put trailing slashes in PATH elements.
2860    case $as_dir/ in
2861      ./ | .// | /cC/* | \
2862      /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2863      ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2864      /usr/ucb/* ) ;;
2865      *)
2866        # OSF1 and SCO ODT 3.0 have their own names for install.
2867        # Don't use installbsd from OSF since it installs stuff as root
2868        # by default.
2869        for ac_prog in ginstall scoinst install; do
2870          for ac_exec_ext in '' $ac_executable_extensions; do
2871            if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2872              if test $ac_prog = install &&
2873                grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2874                # AIX install.  It has an incompatible calling convention.
2875                :
2876              elif test $ac_prog = install &&
2877                grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2878                # program-specific install script used by HP pwplus--don't use.
2879                :
2880              else
2881                ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2882                break 3
2883              fi
2884            fi
2885          done
2886        done
2887      ;;      ;;
   esac  
   ;;  
   
 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)  
   lt_cv_deplibs_check_method=pass_all  
   ;;  
2888  esac  esac
2889    done
 fi  
 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5  
 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6  
 file_magic_cmd=$lt_cv_file_magic_cmd  
 deplibs_check_method=$lt_cv_deplibs_check_method  
 test -z "$deplibs_check_method" && deplibs_check_method=unknown  
   
2890    
2891    
2892    fi
2893      if test "${ac_cv_path_install+set}" = set; then
2894        INSTALL=$ac_cv_path_install
2895      else
2896        # As a last resort, use the slow shell script.  We don't cache a
2897        # path for INSTALL within a source directory, because that will
2898        # break other packages using the cache if that directory is
2899        # removed, or if the path is relative.
2900        INSTALL=$ac_install_sh
2901      fi
2902    fi
2903    echo "$as_me:$LINENO: result: $INSTALL" >&5
2904    echo "${ECHO_T}$INSTALL" >&6
2905    
2906  # If no C compiler was specified, use CC.  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2907  LTCC=${LTCC-"$CC"}  # It thinks the first close brace ends the variable substitution.
2908    test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2909    
2910  # Allow CC to be a program name with arguments.  test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 compiler=$CC  
2911    
2912    test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2913    
 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.  
 if test "${enable_libtool_lock+set}" = set; then  
   enableval="$enable_libtool_lock"  
2914    
 fi;  
 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes  
2915    
2916  # Some flags need to be propagated to the compiler or linker for good  # Check whether --enable-shared or --disable-shared was given.
2917  # libtool support.  if test "${enable_shared+set}" = set; then
2918  case $host in    enableval="$enable_shared"
2919  ia64-*-hpux*)    p=${PACKAGE-default}
2920    # Find out which ABI we are using.      case $enableval in
2921    echo 'int i;' > conftest.$ac_ext      yes) enable_shared=yes ;;
2922    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5      no) enable_shared=no ;;
2923    (eval $ac_compile) 2>&5      *)
2924    ac_status=$?        enable_shared=no
2925    echo "$as_me:$LINENO: \$? = $ac_status" >&5        # Look at the argument we got.  We use all the common list separators.
2926    (exit $ac_status); }; then        lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2927      case `/usr/bin/file conftest.$ac_objext` in        for pkg in $enableval; do
2928      *ELF-32*)          IFS="$lt_save_ifs"
2929        HPUX_IA64_MODE="32"          if test "X$pkg" = "X$p"; then
2930        ;;            enable_shared=yes
2931      *ELF-64*)          fi
2932        HPUX_IA64_MODE="64"        done
2933        ;;        IFS="$lt_save_ifs"
     esac  
   fi  
   rm -rf conftest*  
   ;;  
 *-*-irix6*)  
   # Find out which ABI we are using.  
   echo '#line 3173 "configure"' > conftest.$ac_ext  
   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; then  
    if test "$lt_cv_prog_gnu_ld" = yes; then  
     case `/usr/bin/file conftest.$ac_objext` in  
     *32-bit*)  
       LD="${LD-ld} -melf32bsmip"  
       ;;  
     *N32*)  
       LD="${LD-ld} -melf32bmipn32"  
       ;;  
     *64-bit*)  
       LD="${LD-ld} -melf64bmip"  
2934        ;;        ;;
2935      esac      esac
2936     else  else
2937      case `/usr/bin/file conftest.$ac_objext` in    enable_shared=yes
2938      *32-bit*)  fi;
2939        LD="${LD-ld} -32"  
2940        ;;  # Check whether --enable-static or --disable-static was given.
2941      *N32*)  if test "${enable_static+set}" = set; then
2942        LD="${LD-ld} -n32"    enableval="$enable_static"
2943        ;;    p=${PACKAGE-default}
2944      *64-bit*)      case $enableval in
2945        LD="${LD-ld} -64"      yes) enable_static=yes ;;
2946        no) enable_static=no ;;
2947        *)
2948         enable_static=no
2949          # Look at the argument we got.  We use all the common list separators.
2950          lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2951          for pkg in $enableval; do
2952            IFS="$lt_save_ifs"
2953            if test "X$pkg" = "X$p"; then
2954              enable_static=yes
2955            fi
2956          done
2957          IFS="$lt_save_ifs"
2958        ;;        ;;
2959      esac      esac
2960     fi  else
2961    fi    enable_static=yes
2962    rm -rf conftest*  fi;
   ;;  
2963    
2964  x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)  # Check whether --enable-fast-install or --disable-fast-install was given.
2965    # Find out which ABI we are using.  if test "${enable_fast_install+set}" = set; then
2966    echo 'int i;' > conftest.$ac_ext    enableval="$enable_fast_install"
2967    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5    p=${PACKAGE-default}
2968    (eval $ac_compile) 2>&5      case $enableval in
2969    ac_status=$?      yes) enable_fast_install=yes ;;
2970    echo "$as_me:$LINENO: \$? = $ac_status" >&5      no) enable_fast_install=no ;;
2971    (exit $ac_status); }; then      *)
2972      case "`/usr/bin/file conftest.o`" in        enable_fast_install=no
2973      *32-bit*)        # Look at the argument we got.  We use all the common list separators.
2974        case $host in        lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2975          x86_64-*linux*)        for pkg in $enableval; do
2976            LD="${LD-ld} -m elf_i386"          IFS="$lt_save_ifs"
2977            ;;          if test "X$pkg" = "X$p"; then
2978          ppc64-*linux*|powerpc64-*linux*)            enable_fast_install=yes
2979            LD="${LD-ld} -m elf32ppclinux"          fi
2980            ;;        done
2981          s390x-*linux*)        IFS="$lt_save_ifs"
           LD="${LD-ld} -m elf_s390"  
           ;;  
         sparc64-*linux*)  
           LD="${LD-ld} -m elf32_sparc"  
           ;;  
       esac  
       ;;  
     *64-bit*)  
       case $host in  
         x86_64-*linux*)  
           LD="${LD-ld} -m elf_x86_64"  
           ;;  
         ppc*-*linux*|powerpc*-*linux*)  
           LD="${LD-ld} -m elf64ppc"  
           ;;  
         s390*-*linux*)  
           LD="${LD-ld} -m elf64_s390"  
           ;;  
         sparc*-*linux*)  
           LD="${LD-ld} -m elf64_sparc"  
           ;;  
       esac  
2982        ;;        ;;
2983      esac      esac
2984    fi  else
2985    rm -rf conftest*    enable_fast_install=yes
2986    ;;  fi;
2987    
2988  *-*-sco3.2v5*)  # Make sure we can run config.sub.
2989    # On SCO OpenServer 5, we need -belf to get full-featured binaries.  $ac_config_sub sun4 >/dev/null 2>&1 ||
2990    SAVE_CFLAGS="$CFLAGS"    { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2991    CFLAGS="$CFLAGS -belf"  echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2992    echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5     { (exit 1); exit 1; }; }
2993  echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6  
2994  if test "${lt_cv_cc_needs_belf+set}" = set; then  echo "$as_me:$LINENO: checking build system type" >&5
2995    echo $ECHO_N "checking build system type... $ECHO_C" >&6
2996    if test "${ac_cv_build+set}" = set; then
2997    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2998  else  else
2999    ac_ext=c    ac_cv_build_alias=$build_alias
3000  ac_cpp='$CPP $CPPFLAGS'  test -z "$ac_cv_build_alias" &&
3001  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'    ac_cv_build_alias=`$ac_config_guess`
3002  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'  test -z "$ac_cv_build_alias" &&
3003  ac_compiler_gnu=$ac_cv_c_compiler_gnu    { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3004    echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3005       { (exit 1); exit 1; }; }
3006    ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3007      { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3008    echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3009       { (exit 1); exit 1; }; }
3010    
3011       cat >conftest.$ac_ext <<_ACEOF  fi
3012  /* confdefs.h.  */  echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3013  _ACEOF  echo "${ECHO_T}$ac_cv_build" >&6
3014  cat confdefs.h >>conftest.$ac_ext  build=$ac_cv_build
3015  cat >>conftest.$ac_ext <<_ACEOF  build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3016  /* end confdefs.h.  */  build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3017    build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3018    
 int  
 main ()  
 {  
3019    
3020    ;  echo "$as_me:$LINENO: checking host system type" >&5
3021    return 0;  echo $ECHO_N "checking host system type... $ECHO_C" >&6
3022  }  if test "${ac_cv_host+set}" = set; then
3023  _ACEOF    echo $ECHO_N "(cached) $ECHO_C" >&6
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   lt_cv_cc_needs_belf=yes  
3024  else  else
3025    echo "$as_me: failed program was:" >&5    ac_cv_host_alias=$host_alias
3026  sed 's/^/| /' conftest.$ac_ext >&5  test -z "$ac_cv_host_alias" &&
3027      ac_cv_host_alias=$ac_cv_build_alias
3028    ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3029      { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3030    echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3031       { (exit 1); exit 1; }; }
3032    
 lt_cv_cc_needs_belf=no  
3033  fi  fi
3034  rm -f conftest.err conftest.$ac_objext \  echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3035        conftest$ac_exeext conftest.$ac_ext  echo "${ECHO_T}$ac_cv_host" >&6
3036       ac_ext=c  host=$ac_cv_host
3037  ac_cpp='$CPP $CPPFLAGS'  host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3038  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'  host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3039  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'  host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 ac_compiler_gnu=$ac_cv_c_compiler_gnu  
3040    
3041  fi  
3042  echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5  echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3043  echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6  echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3044    if test x"$lt_cv_cc_needs_belf" != x"yes"; then  if test "${lt_cv_path_SED+set}" = set; then
     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf  
     CFLAGS="$SAVE_CFLAGS"  
   fi  
   ;;  
 *-*-cygwin* | *-*-mingw* | *-*-pw32*)  
   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  
 echo "$as_me:$LINENO: checking for $ac_word" >&5  
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  
 if test "${ac_cv_prog_DLLTOOL+set}" = set; then  
3045    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3046  else  else
3047    if test -n "$DLLTOOL"; then    # Loop through the user's path and test for sed and gsed.
3048    ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.  # Then use that list of sed's as ones to test for truncation.
 else  
3049  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050  for as_dir in $PATH  for as_dir in $PATH
3051  do  do
3052    IFS=$as_save_IFS    IFS=$as_save_IFS
3053    test -z "$as_dir" && as_dir=.    test -z "$as_dir" && as_dir=.
3054    for ac_exec_ext in '' $ac_executable_extensions; do    for lt_ac_prog in sed gsed; do
3055    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then      for ac_exec_ext in '' $ac_executable_extensions; do
3056      ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"        if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3057      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5          lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3058      break 2        fi
3059    fi      done
3060      done
3061  done  done
3062    lt_ac_max=0
3063    lt_ac_count=0
3064    # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3065    # along with /bin/sed that truncates output.
3066    for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3067      test ! -f $lt_ac_sed && break
3068      cat /dev/null > conftest.in
3069      lt_ac_count=0
3070      echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3071      # Check for GNU sed and select it if it is found.
3072      if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3073        lt_cv_path_SED=$lt_ac_sed
3074        break
3075      fi
3076      while true; do
3077        cat conftest.in conftest.in >conftest.tmp
3078        mv conftest.tmp conftest.in
3079        cp conftest.in conftest.nl
3080        echo >>conftest.nl
3081        $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3082        cmp -s conftest.out conftest.nl || break
3083        # 10000 chars as input seems more than enough
3084        test $lt_ac_count -gt 10 && break
3085        lt_ac_count=`expr $lt_ac_count + 1`
3086        if test $lt_ac_count -gt $lt_ac_max; then
3087          lt_ac_max=$lt_ac_count
3088          lt_cv_path_SED=$lt_ac_sed
3089        fi
3090      done
3091  done  done
3092    
3093  fi  fi
3094  fi  
3095  DLLTOOL=$ac_cv_prog_DLLTOOL  SED=$lt_cv_path_SED
3096  if test -n "$DLLTOOL"; then  echo "$as_me:$LINENO: result: $SED" >&5
3097    echo "$as_me:$LINENO: result: $DLLTOOL" >&5  echo "${ECHO_T}$SED" >&6
3098  echo "${ECHO_T}$DLLTOOL" >&6  
3099    echo "$as_me:$LINENO: checking for egrep" >&5
3100    echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3101    if test "${ac_cv_prog_egrep+set}" = set; then
3102      echo $ECHO_N "(cached) $ECHO_C" >&6
3103  else  else
3104    echo "$as_me:$LINENO: result: no" >&5    if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3105  echo "${ECHO_T}no" >&6      then ac_cv_prog_egrep='grep -E'
3106        else ac_cv_prog_egrep='egrep'
3107        fi
3108  fi  fi
3109    echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3110    echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3111     EGREP=$ac_cv_prog_egrep
3112    
3113    
3114    
3115    # Check whether --with-gnu-ld or --without-gnu-ld was given.
3116    if test "${with_gnu_ld+set}" = set; then
3117      withval="$with_gnu_ld"
3118      test "$withval" = no || with_gnu_ld=yes
3119    else
3120      with_gnu_ld=no
3121    fi;
3122    ac_prog=ld
3123    if test "$GCC" = yes; then
3124      # Check if gcc -print-prog-name=ld gives a path.
3125      echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3126    echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3127      case $host in
3128      *-*-mingw*)
3129        # gcc leaves a trailing carriage return which upsets mingw
3130        ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3131      *)
3132        ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3133      esac
3134      case $ac_prog in
3135        # Accept absolute paths.
3136        [\\/]* | ?:[\\/]*)
3137          re_direlt='/[^/][^/]*/\.\./'
3138          # Canonicalize the pathname of ld
3139          ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3140          while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3141            ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3142          done
3143          test -z "$LD" && LD="$ac_prog"
3144          ;;
3145      "")
3146        # If it fails, then pretend we aren't using GCC.
3147        ac_prog=ld
3148        ;;
3149      *)
3150        # If it is relative, then search for the first ld in PATH.
3151        with_gnu_ld=unknown
3152        ;;
3153      esac
3154    elif test "$with_gnu_ld" = yes; then
3155      echo "$as_me:$LINENO: checking for GNU ld" >&5
3156    echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3157    else
3158      echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3159    echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3160  fi  fi
3161  if test -z "$ac_cv_prog_DLLTOOL"; then  if test "${lt_cv_path_LD+set}" = set; 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  
 echo "$as_me:$LINENO: checking for $ac_word" >&5  
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  
 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then  
3162    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3163  else  else
3164    if test -n "$ac_ct_DLLTOOL"; then    if test -z "$LD"; then
3165    ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3166      for ac_dir in $PATH; do
3167        IFS="$lt_save_ifs"
3168        test -z "$ac_dir" && ac_dir=.
3169        if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3170          lt_cv_path_LD="$ac_dir/$ac_prog"
3171          # Check to see if the program is GNU ld.  I'd rather use --version,
3172          # but apparently some GNU ld's only accept -v.
3173          # Break only if it was the GNU/non-GNU ld that we prefer.
3174          case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3175          *GNU* | *'with BFD'*)
3176            test "$with_gnu_ld" != no && break
3177            ;;
3178          *)
3179            test "$with_gnu_ld" != yes && break
3180            ;;
3181          esac
3182        fi
3183      done
3184      IFS="$lt_save_ifs"
3185  else  else
3186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    lt_cv_path_LD="$LD" # Let the user override the test with a path.
 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_executable_p "$as_dir/$ac_word$ac_exec_ext"; then  
     ac_cv_prog_ac_ct_DLLTOOL="dlltool"  
     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5  
     break 2  
   fi  
 done  
 done  
   
   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"  
3187  fi  fi
3188  fi  fi
3189  ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL  
3190  if test -n "$ac_ct_DLLTOOL"; then  LD="$lt_cv_path_LD"
3191    echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5  if test -n "$LD"; then
3192  echo "${ECHO_T}$ac_ct_DLLTOOL" >&6    echo "$as_me:$LINENO: result: $LD" >&5
3193    echo "${ECHO_T}$LD" >&6
3194  else  else
3195    echo "$as_me:$LINENO: result: no" >&5    echo "$as_me:$LINENO: result: no" >&5
3196  echo "${ECHO_T}no" >&6  echo "${ECHO_T}no" >&6
3197  fi  fi
3198    test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3199    DLLTOOL=$ac_ct_DLLTOOL  echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3200       { (exit 1); exit 1; }; }
3201    echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3202    echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3203    if test "${lt_cv_prog_gnu_ld+set}" = set; then
3204      echo $ECHO_N "(cached) $ECHO_C" >&6
3205  else  else
3206    DLLTOOL="$ac_cv_prog_DLLTOOL"    # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3207    case `$LD -v 2>&1 </dev/null` in
3208    *GNU* | *'with BFD'*)
3209      lt_cv_prog_gnu_ld=yes
3210      ;;
3211    *)
3212      lt_cv_prog_gnu_ld=no
3213      ;;
3214    esac
3215  fi  fi
3216    echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3217    echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3218    with_gnu_ld=$lt_cv_prog_gnu_ld
3219    
   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  
 echo "$as_me:$LINENO: checking for $ac_word" >&5  
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  
 if test "${ac_cv_prog_AS+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&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_executable_p "$as_dir/$ac_word$ac_exec_ext"; then  
     ac_cv_prog_AS="${ac_tool_prefix}as"  
     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5  
     break 2  
   fi  
 done  
 done  
3220    
3221  fi  echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3222  fi  echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3223  AS=$ac_cv_prog_AS  if test "${lt_cv_ld_reload_flag+set}" = set; then
3224  if test -n "$AS"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo "$as_me:$LINENO: result: $AS" >&5  
 echo "${ECHO_T}$AS" >&6  
3225  else  else
3226    echo "$as_me:$LINENO: result: no" >&5    lt_cv_ld_reload_flag='-r'
 echo "${ECHO_T}no" >&6  
3227  fi  fi
3228    echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3229    echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3230    reload_flag=$lt_cv_ld_reload_flag
3231    case $reload_flag in
3232    "" | " "*) ;;
3233    *) reload_flag=" $reload_flag" ;;
3234    esac
3235    reload_cmds='$LD$reload_flag -o $output$reload_objs'
3236    case $host_os in
3237      darwin*)
3238        if test "$GCC" = yes; then
3239          reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3240        else
3241          reload_cmds='$LD$reload_flag -o $output$reload_objs'
3242        fi
3243        ;;
3244    esac
3245    
3246  fi  echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3247  if test -z "$ac_cv_prog_AS"; then  echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3248    ac_ct_AS=$AS  if test "${lt_cv_path_NM+set}" = set; then
   # Extract the first word of "as", so it can be a program name with args.  
 set dummy as; ac_word=$2  
 echo "$as_me:$LINENO: checking for $ac_word" >&5  
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  
 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then  
3249    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3250  else  else
3251    if test -n "$ac_ct_AS"; then    if test -n "$NM"; then
3252    ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.    # Let the user override the test.
3253      lt_cv_path_NM="$NM"
3254  else  else
3255  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3256  for as_dir in $PATH    for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3257  do      IFS="$lt_save_ifs"
3258    IFS=$as_save_IFS      test -z "$ac_dir" && ac_dir=.
3259    test -z "$as_dir" && as_dir=.      tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3260    for ac_exec_ext in '' $ac_executable_extensions; do      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3261    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then        # Check to see if the nm accepts a BSD-compat flag.
3262      ac_cv_prog_ac_ct_AS="as"        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3263      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5        #   nm: unknown option "B" ignored
3264      break 2        # Tru64's nm complains that /dev/null is an invalid object file
3265    fi        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3266  done        */dev/null* | *'Invalid file or object type'*)
3267  done          lt_cv_path_NM="$tmp_nm -B"
3268            break
3269    test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"          ;;
3270  fi        *)
3271            case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3272            */dev/null*)
3273              lt_cv_path_NM="$tmp_nm -p"
3274              break
3275              ;;
3276            *)
3277              lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3278              continue # so that we can try to find one that supports BSD flags
3279              ;;
3280            esac
3281          esac
3282        fi
3283      done
3284      IFS="$lt_save_ifs"
3285      test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3286  fi  fi
 ac_ct_AS=$ac_cv_prog_ac_ct_AS  
 if test -n "$ac_ct_AS"; then  
   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5  
 echo "${ECHO_T}$ac_ct_AS" >&6  
 else  
   echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6  
3287  fi  fi
3288    echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3289    echo "${ECHO_T}$lt_cv_path_NM" >&6
3290    NM="$lt_cv_path_NM"
3291    
3292    AS=$ac_ct_AS  echo "$as_me:$LINENO: checking whether ln -s works" >&5
3293    echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3294    LN_S=$as_ln_s
3295    if test "$LN_S" = "ln -s"; then
3296      echo "$as_me:$LINENO: result: yes" >&5
3297    echo "${ECHO_T}yes" >&6
3298  else  else
3299    AS="$ac_cv_prog_AS"    echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3300    echo "${ECHO_T}no, using $LN_S" >&6
3301  fi  fi
3302    
3303    if test -n "$ac_tool_prefix"; then  echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3304    # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.  echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3305  set dummy ${ac_tool_prefix}objdump; ac_word=$2  if test "${lt_cv_deplibs_check_method+set}" = set; then
 echo "$as_me:$LINENO: checking for $ac_word" >&5  
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  
 if test "${ac_cv_prog_OBJDUMP+set}" = set; then  
3306    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3307  else  else
3308    if test -n "$OBJDUMP"; then    lt_cv_file_magic_cmd='$MAGIC_CMD'
3309    ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.  lt_cv_file_magic_test_file=
3310  else  lt_cv_deplibs_check_method='unknown'
3311  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR  # Need to set the preceding variable on all platforms that support
3312  for as_dir in $PATH  # interlibrary dependencies.
3313  do  # 'none' -- dependencies not supported.
3314    IFS=$as_save_IFS  # `unknown' -- same as none, but documents that we really don't know.
3315    test -z "$as_dir" && as_dir=.  # 'pass_all' -- all dependencies passed with no checks.
3316    for ac_exec_ext in '' $ac_executable_extensions; do  # 'test_compile' -- check by making test program.
3317    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then  # 'file_magic [[regex]]' -- check by looking for files in library path
3318      ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"  # which responds to the $file_magic_cmd with a given extended regex.
3319      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5  # If you have `file' or equivalent on your system and you're not sure
3320      break 2  # whether `pass_all' will *always* work, you probably want this one.
3321    
3322    case $host_os in
3323    aix4* | aix5*)
3324      lt_cv_deplibs_check_method=pass_all
3325      ;;
3326    
3327    beos*)
3328      lt_cv_deplibs_check_method=pass_all
3329      ;;
3330    
3331    bsdi[45]*)
3332      lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3333      lt_cv_file_magic_cmd='/usr/bin/file -L'
3334      lt_cv_file_magic_test_file=/shlib/libc.so
3335      ;;
3336    
3337    cygwin*)
3338      # func_win32_libid is a shell function defined in ltmain.sh
3339      lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3340      lt_cv_file_magic_cmd='func_win32_libid'
3341      ;;
3342    
3343    mingw* | pw32*)
3344      # Base MSYS/MinGW do not provide the 'file' command needed by
3345      # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3346      lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3347      lt_cv_file_magic_cmd='$OBJDUMP -f'
3348      ;;
3349    
3350    darwin* | rhapsody*)
3351      lt_cv_deplibs_check_method=pass_all
3352      ;;
3353    
3354    freebsd* | kfreebsd*-gnu)
3355      if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3356        case $host_cpu in
3357        i*86 )
3358          # Not sure whether the presence of OpenBSD here was a mistake.
3359          # Let's accept both of them until this is cleared up.
3360          lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3361          lt_cv_file_magic_cmd=/usr/bin/file
3362          lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3363          ;;
3364        esac
3365      else
3366        lt_cv_deplibs_check_method=pass_all
3367    fi    fi
3368  done    ;;
 done  
3369    
3370  fi  gnu*)
3371  fi    lt_cv_deplibs_check_method=pass_all
3372  OBJDUMP=$ac_cv_prog_OBJDUMP    ;;
 if test -n "$OBJDUMP"; then  
   echo "$as_me:$LINENO: result: $OBJDUMP" >&5  
 echo "${ECHO_T}$OBJDUMP" >&6  
 else  
   echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6  
 fi  
3373    
3374  fi  hpux10.20* | hpux11*)
3375  if test -z "$ac_cv_prog_OBJDUMP"; then    lt_cv_file_magic_cmd=/usr/bin/file
3376    ac_ct_OBJDUMP=$OBJDUMP    case "$host_cpu" in
3377    # Extract the first word of "objdump", so it can be a program name with args.    ia64*)
3378  set dummy objdump; ac_word=$2      lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3379  echo "$as_me:$LINENO: checking for $ac_word" >&5      lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3380  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6      ;;
3381  if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then    hppa*64*)
3382    echo $ECHO_N "(cached) $ECHO_C" >&6      lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3383  else      lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3384    if test -n "$ac_ct_OBJDUMP"; then      ;;
3385    ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.    *)
3386  else      lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3387  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR      lt_cv_file_magic_test_file=/usr/lib/libc.sl
3388  for as_dir in $PATH      ;;
3389  do    esac
3390    IFS=$as_save_IFS    ;;
3391    test -z "$as_dir" && as_dir=.  
3392    for ac_exec_ext in '' $ac_executable_extensions; do  irix5* | irix6* | nonstopux*)
3393    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then    case $LD in
3394      ac_cv_prog_ac_ct_OBJDUMP="objdump"    *-32|*"-32 ") libmagic=32-bit;;
3395      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    *-n32|*"-n32 ") libmagic=N32;;
3396      break 2    *-64|*"-64 ") libmagic=64-bit;;
3397      *) libmagic=never-match;;
3398      esac
3399      lt_cv_deplibs_check_method=pass_all
3400      ;;
3401    
3402    # This must be Linux ELF.
3403    linux*)
3404      case $host_cpu in
3405      alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
3406        lt_cv_deplibs_check_method=pass_all ;;
3407      *)
3408        # glibc up to 2.1.1 does not perform some relocations on ARM
3409        # this will be overridden with pass_all, but let us keep it just in case
3410        lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3411      esac
3412      lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3413      lt_cv_deplibs_check_method=pass_all
3414      ;;
3415    
3416    netbsd*)
3417      if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3418        lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3419      else
3420        lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3421    fi    fi
3422  done    ;;
 done  
3423    
3424    test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"  newos6*)
3425  fi    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3426  fi    lt_cv_file_magic_cmd=/usr/bin/file
3427  ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP    lt_cv_file_magic_test_file=/usr/lib/libnls.so
3428  if test -n "$ac_ct_OBJDUMP"; then    ;;
   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5  
 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6  
 else  
   echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6  
 fi  
3429    
3430    OBJDUMP=$ac_ct_OBJDUMP  nto-qnx*)
3431  else    lt_cv_deplibs_check_method=unknown
3432    OBJDUMP="$ac_cv_prog_OBJDUMP"    ;;
3433  fi  
3434    openbsd*)
3435      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3436        lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3437      else
3438        lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3439      fi
3440      ;;
3441    
3442    osf3* | osf4* | osf5*)
3443      lt_cv_deplibs_check_method=pass_all
3444      ;;
3445    
3446    sco3.2v5*)
3447      lt_cv_deplibs_check_method=pass_all
3448      ;;
3449    
3450    solaris*)
3451      lt_cv_deplibs_check_method=pass_all
3452      ;;
3453    
3454    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3455      case $host_vendor in
3456      motorola)
3457        lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3458        lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3459        ;;
3460      ncr)
3461        lt_cv_deplibs_check_method=pass_all
3462        ;;
3463      sequent)
3464        lt_cv_file_magic_cmd='/bin/file'
3465        lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3466        ;;
3467      sni)
3468        lt_cv_file_magic_cmd='/bin/file'
3469        lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3470        lt_cv_file_magic_test_file=/lib/libc.so
3471        ;;
3472      siemens)
3473        lt_cv_deplibs_check_method=pass_all
3474        ;;
3475      esac
3476    ;;    ;;
3477    
3478    sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3479      lt_cv_deplibs_check_method=pass_all
3480      ;;
3481  esac  esac
3482    
3483  need_locks="$enable_libtool_lock"  fi
3484    echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3485    echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3486    file_magic_cmd=$lt_cv_file_magic_cmd
3487    deplibs_check_method=$lt_cv_deplibs_check_method
3488    test -z "$deplibs_check_method" && deplibs_check_method=unknown
3489    
3490    
 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  
 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5  
 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6  
 # On Suns, sometimes $CPP names a directory.  
 if test -n "$CPP" && test -d "$CPP"; then  
   CPP=  
 fi  
 if test -z "$CPP"; then  
   if test "${ac_cv_prog_CPP+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
       # Double quotes because CPP needs to be expanded  
     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"  
     do  
       ac_preproc_ok=false  
 for ac_c_preproc_warn_flag in '' yes  
 do  
   # Use a header file that comes with gcc, so configuring glibc  
   # with a fresh cross-compiler works.  
   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  
   # <limits.h> exists even on freestanding compilers.  
   # On the NeXT, cc -E runs the code through the compiler's parser,  
   # not just through cpp. "Syntax error" is here to catch this case.  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
                      Syntax error  
 _ACEOF  
 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5  
   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } >/dev/null; then  
   if test -s conftest.err; then  
     ac_cpp_err=$ac_c_preproc_warn_flag  
     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
 fi  
 if test -z "$ac_cpp_err"; then  
   :  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
3491    
   # Broken: fails on valid input.  
 continue  
 fi  
 rm -f conftest.err conftest.$ac_ext  
3492    
3493    # OK, works on sane cases.  Now check whether non-existent headers  # If no C compiler was specified, use CC.
3494    # can be detected and how.  LTCC=${LTCC-"$CC"}
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <ac_nonexistent.h>  
 _ACEOF  
 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5  
   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } >/dev/null; then  
   if test -s conftest.err; then  
     ac_cpp_err=$ac_c_preproc_warn_flag  
     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
 fi  
 if test -z "$ac_cpp_err"; then  
   # Broken: success on invalid input.  
 continue  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
3495    
3496    # Passes both tests.  # Allow CC to be a program name with arguments.
3497  ac_preproc_ok=:  compiler=$CC
 break  
 fi  
 rm -f conftest.err conftest.$ac_ext  
3498    
 done  
 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.  
 rm -f conftest.err conftest.$ac_ext  
 if $ac_preproc_ok; then  
   break  
 fi  
3499    
3500      done  # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3501      ac_cv_prog_CPP=$CPP  if test "${enable_libtool_lock+set}" = set; then
3502      enableval="$enable_libtool_lock"
3503    
3504  fi  fi;
3505    CPP=$ac_cv_prog_CPP  test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3506  else  
3507    ac_cv_prog_CPP=$CPP  # Some flags need to be propagated to the compiler or linker for good
3508  fi  # libtool support.
3509  echo "$as_me:$LINENO: result: $CPP" >&5  case $host in
3510  echo "${ECHO_T}$CPP" >&6  ia64-*-hpux*)
3511  ac_preproc_ok=false    # Find out which ABI we are using.
3512  for ac_c_preproc_warn_flag in '' yes    echo 'int i;' > conftest.$ac_ext
3513  do    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3514    # Use a header file that comes with gcc, so configuring glibc    (eval $ac_compile) 2>&5
   # with a fresh cross-compiler works.  
   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  
   # <limits.h> exists even on freestanding compilers.  
   # On the NeXT, cc -E runs the code through the compiler's parser,  
   # not just through cpp. "Syntax error" is here to catch this case.  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
                      Syntax error  
 _ACEOF  
 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5  
   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1  
3515    ac_status=$?    ac_status=$?
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
3516    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517    (exit $ac_status); } >/dev/null; then    (exit $ac_status); }; then
3518    if test -s conftest.err; then      case `/usr/bin/file conftest.$ac_objext` in
3519      ac_cpp_err=$ac_c_preproc_warn_flag      *ELF-32*)
3520      ac_cpp_err=$ac_cpp_err$ac_c_werror_flag        HPUX_IA64_MODE="32"
3521    else        ;;
3522      ac_cpp_err=      *ELF-64*)
3523          HPUX_IA64_MODE="64"
3524          ;;
3525        esac
3526    fi    fi
3527  else    rm -rf conftest*
3528    ac_cpp_err=yes    ;;
3529  fi  *-*-irix6*)
3530  if test -z "$ac_cpp_err"; then    # Find out which ABI we are using.
3531    :    echo '#line 3531 "configure"' > conftest.$ac_ext
3532  else    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3533    echo "$as_me: failed program was:" >&5    (eval $ac_compile) 2>&5
3534  sed 's/^/| /' conftest.$ac_ext >&5    ac_status=$?
3535      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536    # Broken: fails on valid input.    (exit $ac_status); }; then
3537  continue     if test "$lt_cv_prog_gnu_ld" = yes; then
3538  fi      case `/usr/bin/file conftest.$ac_objext` in
3539  rm -f conftest.err conftest.$ac_ext      *32-bit*)
3540          LD="${LD-ld} -melf32bsmip"
3541    # OK, works on sane cases.  Now check whether non-existent headers        ;;
3542    # can be detected and how.      *N32*)
3543    cat >conftest.$ac_ext <<_ACEOF        LD="${LD-ld} -melf32bmipn32"
3544  /* confdefs.h.  */        ;;
3545  _ACEOF      *64-bit*)
3546  cat confdefs.h >>conftest.$ac_ext        LD="${LD-ld} -melf64bmip"
3547  cat >>conftest.$ac_ext <<_ACEOF        ;;
3548  /* end confdefs.h.  */      esac
3549  #include <ac_nonexistent.h>     else
3550  _ACEOF      case `/usr/bin/file conftest.$ac_objext` in
3551  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5      *32-bit*)
3552    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1        LD="${LD-ld} -32"
3553          ;;
3554        *N32*)
3555          LD="${LD-ld} -n32"
3556          ;;
3557        *64-bit*)
3558          LD="${LD-ld} -64"
3559          ;;
3560        esac
3561       fi
3562      fi
3563      rm -rf conftest*
3564      ;;
3565    
3566    x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3567      # Find out which ABI we are using.
3568      echo 'int i;' > conftest.$ac_ext
3569      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3570      (eval $ac_compile) 2>&5
3571    ac_status=$?    ac_status=$?
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
3572    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573    (exit $ac_status); } >/dev/null; then    (exit $ac_status); }; then
3574    if test -s conftest.err; then      case "`/usr/bin/file conftest.o`" in
3575      ac_cpp_err=$ac_c_preproc_warn_flag      *32-bit*)
3576      ac_cpp_err=$ac_cpp_err$ac_c_werror_flag        case $host in
3577    else          x86_64-*linux*)
3578      ac_cpp_err=            LD="${LD-ld} -m elf_i386"
3579              ;;
3580            ppc64-*linux*|powerpc64-*linux*)
3581              LD="${LD-ld} -m elf32ppclinux"
3582              ;;
3583            s390x-*linux*)
3584              LD="${LD-ld} -m elf_s390"
3585              ;;
3586            sparc64-*linux*)
3587              LD="${LD-ld} -m elf32_sparc"
3588              ;;
3589          esac
3590          ;;
3591        *64-bit*)
3592          case $host in
3593            x86_64-*linux*)
3594              LD="${LD-ld} -m elf_x86_64"
3595              ;;
3596            ppc*-*linux*|powerpc*-*linux*)
3597              LD="${LD-ld} -m elf64ppc"
3598              ;;
3599            s390*-*linux*)
3600              LD="${LD-ld} -m elf64_s390"
3601              ;;
3602            sparc*-*linux*)
3603              LD="${LD-ld} -m elf64_sparc"
3604              ;;
3605          esac
3606          ;;
3607        esac
3608    fi    fi
3609  else    rm -rf conftest*
3610    ac_cpp_err=yes    ;;
 fi  
 if test -z "$ac_cpp_err"; then  
   # Broken: success on invalid input.  
 continue  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
   # Passes both tests.  
 ac_preproc_ok=:  
 break  
 fi  
 rm -f conftest.err conftest.$ac_ext  
3611    
3612  done  *-*-sco3.2v5*)
3613  # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.    # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3614  rm -f conftest.err conftest.$ac_ext    SAVE_CFLAGS="$CFLAGS"
3615  if $ac_preproc_ok; then    CFLAGS="$CFLAGS -belf"
3616    :    echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3617    echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3618    if test "${lt_cv_cc_needs_belf+set}" = set; then
3619      echo $ECHO_N "(cached) $ECHO_C" >&6
3620  else  else
3621    { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check    ac_ext=c
 See \`config.log' for more details." >&5  
 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check  
 See \`config.log' for more details." >&2;}  
    { (exit 1); exit 1; }; }  
 fi  
   
 ac_ext=c  
3622  ac_cpp='$CPP $CPPFLAGS'  ac_cpp='$CPP $CPPFLAGS'
3623  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3624  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3625  ac_compiler_gnu=$ac_cv_c_compiler_gnu  ac_compiler_gnu=$ac_cv_c_compiler_gnu
3626    
3627         cat >conftest.$ac_ext <<_ACEOF
 echo "$as_me:$LINENO: checking for ANSI C header files" >&5  
 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6  
 if test "${ac_cv_header_stdc+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   cat >conftest.$ac_ext <<_ACEOF  
3628  /* confdefs.h.  */  /* confdefs.h.  */
3629  _ACEOF  _ACEOF
3630  cat confdefs.h >>conftest.$ac_ext  cat confdefs.h >>conftest.$ac_ext
3631  cat >>conftest.$ac_ext <<_ACEOF  cat >>conftest.$ac_ext <<_ACEOF
3632  /* end confdefs.h.  */  /* end confdefs.h.  */
 #include <stdlib.h>  
 #include <stdarg.h>  
 #include <string.h>  
 #include <float.h>  
3633    
3634  int  int
3635  main ()  main ()
# Line 3838  main () Line 3639  main ()
3639    return 0;    return 0;
3640  }  }
3641  _ACEOF  _ACEOF
3642  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext conftest$ac_exeext
3643  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3644    (eval $ac_compile) 2>conftest.er1    (eval $ac_link) 2>conftest.er1
3645    ac_status=$?    ac_status=$?
3646    grep -v '^ *+' conftest.er1 >conftest.err    grep -v '^ *+' conftest.er1 >conftest.err
3647    rm -f conftest.er1    rm -f conftest.er1
# Line 3854  if { (eval echo "$as_me:$LINENO: \"$ac_c Line 3655  if { (eval echo "$as_me:$LINENO: \"$ac_c
3655    ac_status=$?    ac_status=$?
3656    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657    (exit $ac_status); }; } &&    (exit $ac_status); }; } &&
3658           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest$ac_exeext'
3659    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
3661    ac_status=$?    ac_status=$?
3662    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
3664    ac_cv_header_stdc=yes    lt_cv_cc_needs_belf=yes
3665  else  else
3666    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3667  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
3668    
3669  ac_cv_header_stdc=no  lt_cv_cc_needs_belf=no
3670  fi  fi
3671  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  rm -f conftest.err conftest.$ac_objext \
3672          conftest$ac_exeext conftest.$ac_ext
3673         ac_ext=c
3674    ac_cpp='$CPP $CPPFLAGS'
3675    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3676    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3677    ac_compiler_gnu=$ac_cv_c_compiler_gnu
3678    
3679  if test $ac_cv_header_stdc = yes; then  fi
3680    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.  echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3681    cat >conftest.$ac_ext <<_ACEOF  echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3682  /* confdefs.h.  */    if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3683  _ACEOF      # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3684  cat confdefs.h >>conftest.$ac_ext      CFLAGS="$SAVE_CFLAGS"
3685  cat >>conftest.$ac_ext <<_ACEOF    fi
3686  /* end confdefs.h.  */    ;;
3687  #include <string.h>  *-*-cygwin* | *-*-mingw* | *-*-pw32*)
3688      if test -n "$ac_tool_prefix"; then
3689      # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3690    set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3691    echo "$as_me:$LINENO: checking for $ac_word" >&5
3692    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3693    if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3694      echo $ECHO_N "(cached) $ECHO_C" >&6
3695    else
3696      if test -n "$DLLTOOL"; then
3697      ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3698    else
3699    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700    for as_dir in $PATH
3701    do
3702      IFS=$as_save_IFS
3703      test -z "$as_dir" && as_dir=.
3704      for ac_exec_ext in '' $ac_executable_extensions; do
3705      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3706        ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3707        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3708        break 2
3709      fi
3710    done
3711    done
3712    
3713  _ACEOF  fi
3714  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  fi
3715    $EGREP "memchr" >/dev/null 2>&1; then  DLLTOOL=$ac_cv_prog_DLLTOOL
3716    :  if test -n "$DLLTOOL"; then
3717      echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3718    echo "${ECHO_T}$DLLTOOL" >&6
3719  else  else
3720    ac_cv_header_stdc=no    echo "$as_me:$LINENO: result: no" >&5
3721    echo "${ECHO_T}no" >&6
3722    fi
3723    
3724    fi
3725    if test -z "$ac_cv_prog_DLLTOOL"; then
3726      ac_ct_DLLTOOL=$DLLTOOL
3727      # Extract the first word of "dlltool", so it can be a program name with args.
3728    set dummy dlltool; ac_word=$2
3729    echo "$as_me:$LINENO: checking for $ac_word" >&5
3730    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3731    if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3732      echo $ECHO_N "(cached) $ECHO_C" >&6
3733    else
3734      if test -n "$ac_ct_DLLTOOL"; then
3735      ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3736    else
3737    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738    for as_dir in $PATH
3739    do
3740      IFS=$as_save_IFS
3741      test -z "$as_dir" && as_dir=.
3742      for ac_exec_ext in '' $ac_executable_extensions; do
3743      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3744        ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3745        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3746        break 2
3747      fi
3748    done
3749    done
3750    
3751      test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3752    fi
3753    fi
3754    ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3755    if test -n "$ac_ct_DLLTOOL"; then
3756      echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3757    echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3758    else
3759      echo "$as_me:$LINENO: result: no" >&5
3760    echo "${ECHO_T}no" >&6
3761    fi
3762    
3763      DLLTOOL=$ac_ct_DLLTOOL
3764    else
3765      DLLTOOL="$ac_cv_prog_DLLTOOL"
3766    fi
3767    
3768      if test -n "$ac_tool_prefix"; then
3769      # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3770    set dummy ${ac_tool_prefix}as; ac_word=$2
3771    echo "$as_me:$LINENO: checking for $ac_word" >&5
3772    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3773    if test "${ac_cv_prog_AS+set}" = set; then
3774      echo $ECHO_N "(cached) $ECHO_C" >&6
3775    else
3776      if test -n "$AS"; then
3777      ac_cv_prog_AS="$AS" # Let the user override the test.
3778    else
3779    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780    for as_dir in $PATH
3781    do
3782      IFS=$as_save_IFS
3783      test -z "$as_dir" && as_dir=.
3784      for ac_exec_ext in '' $ac_executable_extensions; do
3785      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3786        ac_cv_prog_AS="${ac_tool_prefix}as"
3787        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3788        break 2
3789      fi
3790    done
3791    done
3792    
3793    fi
3794    fi
3795    AS=$ac_cv_prog_AS
3796    if test -n "$AS"; then
3797      echo "$as_me:$LINENO: result: $AS" >&5
3798    echo "${ECHO_T}$AS" >&6
3799    else
3800      echo "$as_me:$LINENO: result: no" >&5
3801    echo "${ECHO_T}no" >&6
3802  fi  fi
 rm -f conftest*  
3803    
3804  fi  fi
3805    if test -z "$ac_cv_prog_AS"; then
3806      ac_ct_AS=$AS
3807      # Extract the first word of "as", so it can be a program name with args.
3808    set dummy as; ac_word=$2
3809    echo "$as_me:$LINENO: checking for $ac_word" >&5
3810    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3811    if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3812      echo $ECHO_N "(cached) $ECHO_C" >&6
3813    else
3814      if test -n "$ac_ct_AS"; then
3815      ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3816    else
3817    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818    for as_dir in $PATH
3819    do
3820      IFS=$as_save_IFS
3821      test -z "$as_dir" && as_dir=.
3822      for ac_exec_ext in '' $ac_executable_extensions; do
3823      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3824        ac_cv_prog_ac_ct_AS="as"
3825        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3826        break 2
3827      fi
3828    done
3829    done
3830    
3831  if test $ac_cv_header_stdc = yes; then    test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
3832    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.  fi
3833    cat >conftest.$ac_ext <<_ACEOF  fi
3834  /* confdefs.h.  */  ac_ct_AS=$ac_cv_prog_ac_ct_AS
3835  _ACEOF  if test -n "$ac_ct_AS"; then
3836  cat confdefs.h >>conftest.$ac_ext    echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3837  cat >>conftest.$ac_ext <<_ACEOF  echo "${ECHO_T}$ac_ct_AS" >&6
 /* end confdefs.h.  */  
 #include <stdlib.h>  
   
 _ACEOF  
 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  
   $EGREP "free" >/dev/null 2>&1; then  
   :  
3838  else  else
3839    ac_cv_header_stdc=no    echo "$as_me:$LINENO: result: no" >&5
3840    echo "${ECHO_T}no" >&6
3841  fi  fi
 rm -f conftest*  
3842    
3843      AS=$ac_ct_AS
3844    else
3845      AS="$ac_cv_prog_AS"
3846  fi  fi
3847    
3848  if test $ac_cv_header_stdc = yes; then    if test -n "$ac_tool_prefix"; then
3849    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.    # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3850    if test "$cross_compiling" = yes; then  set dummy ${ac_tool_prefix}objdump; ac_word=$2
3851    :  echo "$as_me:$LINENO: checking for $ac_word" >&5
3852    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3853    if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3854      echo $ECHO_N "(cached) $ECHO_C" >&6
3855  else  else
3856    cat >conftest.$ac_ext <<_ACEOF    if test -n "$OBJDUMP"; then
3857  /* confdefs.h.  */    ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <ctype.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))  
       exit(2);  
   exit (0);  
 }  
 _ACEOF  
 rm -f conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   :  
3858  else  else
3859    echo "$as_me: program exited with status $ac_status" >&5  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860  echo "$as_me: failed program was:" >&5  for as_dir in $PATH
3861  sed 's/^/| /' conftest.$ac_ext >&5  do
3862      IFS=$as_save_IFS
3863      test -z "$as_dir" && as_dir=.
3864      for ac_exec_ext in '' $ac_executable_extensions; do
3865      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3866        ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3867        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3868        break 2
3869      fi
3870    done
3871    done
3872    
 ( exit $ac_status )  
 ac_cv_header_stdc=no  
 fi  
 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  
3873  fi  fi
3874  fi  fi
3875    OBJDUMP=$ac_cv_prog_OBJDUMP
3876    if test -n "$OBJDUMP"; then
3877      echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3878    echo "${ECHO_T}$OBJDUMP" >&6
3879    else
3880      echo "$as_me:$LINENO: result: no" >&5
3881    echo "${ECHO_T}no" >&6
3882  fi  fi
 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5  
 echo "${ECHO_T}$ac_cv_header_stdc" >&6  
 if test $ac_cv_header_stdc = yes; then  
   
 cat >>confdefs.h <<\_ACEOF  
 #define STDC_HEADERS 1  
 _ACEOF  
3883    
3884  fi  fi
3885    if test -z "$ac_cv_prog_OBJDUMP"; then
3886  # On IRIX 5.3, sys/types and inttypes.h are conflicting.    ac_ct_OBJDUMP=$OBJDUMP
3887      # Extract the first word of "objdump", so it can be a program name with args.
3888    set dummy objdump; ac_word=$2
3889    echo "$as_me:$LINENO: checking for $ac_word" >&5
3890    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3891    if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
   
   
   
   
 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \  
                   inttypes.h stdint.h unistd.h  
 do  
 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  
 echo "$as_me:$LINENO: checking for $ac_header" >&5  
 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  
 if eval "test \"\${$as_ac_Header+set}\" = set"; then  
3892    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3893  else  else
3894    cat >conftest.$ac_ext <<_ACEOF    if test -n "$ac_ct_OBJDUMP"; then
3895  /* confdefs.h.  */    ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 $ac_includes_default  
   
 #include <$ac_header>  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   eval "$as_ac_Header=yes"  
3896  else  else
3897    echo "$as_me: failed program was:" >&5  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898  sed 's/^/| /' conftest.$ac_ext >&5  for as_dir in $PATH
3899    do
3900      IFS=$as_save_IFS
3901      test -z "$as_dir" && as_dir=.
3902      for ac_exec_ext in '' $ac_executable_extensions; do
3903      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3904        ac_cv_prog_ac_ct_OBJDUMP="objdump"
3905        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3906        break 2
3907      fi
3908    done
3909    done
3910    
3911  eval "$as_ac_Header=no"    test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
3912  fi  fi
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
3913  fi  fi
3914  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3915  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  if test -n "$ac_ct_OBJDUMP"; then
3916  if test `eval echo '${'$as_ac_Header'}'` = yes; then    echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
3917    cat >>confdefs.h <<_ACEOF  echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
3918  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1  else
3919  _ACEOF    echo "$as_me:$LINENO: result: no" >&5
3920    echo "${ECHO_T}no" >&6
3921    fi
3922    
3923      OBJDUMP=$ac_ct_OBJDUMP
3924    else
3925      OBJDUMP="$ac_cv_prog_OBJDUMP"
3926  fi  fi
3927    
3928  done    ;;
3929    
3930    esac
3931    
3932    need_locks="$enable_libtool_lock"
3933    
3934  for ac_header in dlfcn.h  
3935  do  ac_ext=c
3936  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  ac_cpp='$CPP $CPPFLAGS'
3937  if eval "test \"\${$as_ac_Header+set}\" = set"; then  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3938    echo "$as_me:$LINENO: checking for $ac_header" >&5  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3939  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  ac_compiler_gnu=$ac_cv_c_compiler_gnu
3940  if eval "test \"\${$as_ac_Header+set}\" = set"; then  echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3941    echo $ECHO_N "(cached) $ECHO_C" >&6  echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3942    # On Suns, sometimes $CPP names a directory.
3943    if test -n "$CPP" && test -d "$CPP"; then
3944      CPP=
3945  fi  fi
3946  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  if test -z "$CPP"; then
3947  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6    if test "${ac_cv_prog_CPP+set}" = set; then
3948      echo $ECHO_N "(cached) $ECHO_C" >&6
3949  else  else
3950    # Is the header compilable?        # Double quotes because CPP needs to be expanded
3951  echo "$as_me:$LINENO: checking $ac_header usability" >&5      for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3952  echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6      do
3953  cat >conftest.$ac_ext <<_ACEOF        ac_preproc_ok=false
3954    for ac_c_preproc_warn_flag in '' yes
3955    do
3956      # Use a header file that comes with gcc, so configuring glibc
3957      # with a fresh cross-compiler works.
3958      # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3959      # <limits.h> exists even on freestanding compilers.
3960      # On the NeXT, cc -E runs the code through the compiler's parser,
3961      # not just through cpp. "Syntax error" is here to catch this case.
3962      cat >conftest.$ac_ext <<_ACEOF
3963  /* confdefs.h.  */  /* confdefs.h.  */
3964  _ACEOF  _ACEOF
3965  cat confdefs.h >>conftest.$ac_ext  cat confdefs.h >>conftest.$ac_ext
3966  cat >>conftest.$ac_ext <<_ACEOF  cat >>conftest.$ac_ext <<_ACEOF
3967  /* end confdefs.h.  */  /* end confdefs.h.  */
3968  $ac_includes_default  #ifdef __STDC__
3969  #include <$ac_header>  # include <limits.h>
3970    #else
3971    # include <assert.h>
3972    #endif
3973                         Syntax error
3974  _ACEOF  _ACEOF
3975  rm -f conftest.$ac_objext  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3976  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   (eval $ac_compile) 2>conftest.er1  
3977    ac_status=$?    ac_status=$?
3978    grep -v '^ *+' conftest.er1 >conftest.err    grep -v '^ *+' conftest.er1 >conftest.err
3979    rm -f conftest.er1    rm -f conftest.er1
3980    cat conftest.err >&5    cat conftest.err >&5
3981    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982    (exit $ac_status); } &&    (exit $ac_status); } >/dev/null; then
3983           { ac_try='test -z "$ac_c_werror_flag"    if test -s conftest.err; then
3984                           || test ! -s conftest.err'      ac_cpp_err=$ac_c_preproc_warn_flag
3985    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5      ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3986    (eval $ac_try) 2>&5    else
3987    ac_status=$?      ac_cpp_err=
3988    echo "$as_me:$LINENO: \$? = $ac_status" >&5    fi
3989    (exit $ac_status); }; } &&  else
3990           { ac_try='test -s conftest.$ac_objext'    ac_cpp_err=yes
3991    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  fi
3992    (eval $ac_try) 2>&5  if test -z "$ac_cpp_err"; then
3993    ac_status=$?    :
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_header_compiler=yes  
3994  else  else
3995    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3996  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
3997    
3998  ac_header_compiler=no    # Broken: fails on valid input.
3999    continue
4000  fi  fi
4001  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  rm -f conftest.err conftest.$ac_ext
 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5  
 echo "${ECHO_T}$ac_header_compiler" >&6  
4002    
4003  # Is the header present?    # OK, works on sane cases.  Now check whether non-existent headers
4004  echo "$as_me:$LINENO: checking $ac_header presence" >&5    # can be detected and how.
4005  echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6    cat >conftest.$ac_ext <<_ACEOF
 cat >conftest.$ac_ext <<_ACEOF  
4006  /* confdefs.h.  */  /* confdefs.h.  */
4007  _ACEOF  _ACEOF
4008  cat confdefs.h >>conftest.$ac_ext  cat confdefs.h >>conftest.$ac_ext
4009  cat >>conftest.$ac_ext <<_ACEOF  cat >>conftest.$ac_ext <<_ACEOF
4010  /* end confdefs.h.  */  /* end confdefs.h.  */
4011  #include <$ac_header>  #include <ac_nonexistent.h>
4012  _ACEOF  _ACEOF
4013  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4014    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
# Line 4139  else Line 4028  else
4028    ac_cpp_err=yes    ac_cpp_err=yes
4029  fi  fi
4030  if test -z "$ac_cpp_err"; then  if test -z "$ac_cpp_err"; then
4031    ac_header_preproc=yes    # Broken: success on invalid input.
4032    continue
4033  else  else
4034    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
4035  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
4036    
4037    ac_header_preproc=no    # Passes both tests.
4038    ac_preproc_ok=:
4039    break
4040  fi  fi
4041  rm -f conftest.err conftest.$ac_ext  rm -f conftest.err conftest.$ac_ext
 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5  
 echo "${ECHO_T}$ac_header_preproc" >&6  
   
 # So?  What about this header?  
 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in  
   yes:no: )  
     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5  
 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}  
     ac_header_preproc=yes  
     ;;  
   no:yes:* )  
     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5  
 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5  
 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5  
 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5  
 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5  
 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}  
     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5  
 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------------ ##  
 ## Report this to the AC_PACKAGE_NAME lists.  ##  
 ## ------------------------------------------ ##  
 _ASBOX  
     ) |  
       sed "s/^/$as_me: WARNING:     /" >&2  
     ;;  
 esac  
 echo "$as_me:$LINENO: checking for $ac_header" >&5  
 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  
 if eval "test \"\${$as_ac_Header+set}\" = set"; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   eval "$as_ac_Header=\$ac_header_preproc"  
 fi  
 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  
 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  
   
 fi  
 if test `eval echo '${'$as_ac_Header'}'` = yes; then  
   cat >>confdefs.h <<_ACEOF  
 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1  
 _ACEOF  
   
 fi  
4042    
4043  done  done
4044    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4045    rm -f conftest.err conftest.$ac_ext
4046    if $ac_preproc_ok; then
4047      break
4048    fi
4049    
4050  ac_ext=cc      done
4051  ac_cpp='$CXXCPP $CPPFLAGS'      ac_cv_prog_CPP=$CPP
 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'  
 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'  
 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu  
 if test -n "$ac_tool_prefix"; then  
   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC  
   do  
     # 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  
 echo "$as_me:$LINENO: checking for $ac_word" >&5  
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  
 if test "${ac_cv_prog_CXX+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   if test -n "$CXX"; then  
   ac_cv_prog_CXX="$CXX" # 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_executable_p "$as_dir/$ac_word$ac_exec_ext"; then  
     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"  
     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5  
     break 2  
   fi  
 done  
 done  
4052    
4053  fi  fi
4054  fi    CPP=$ac_cv_prog_CPP
 CXX=$ac_cv_prog_CXX  
 if test -n "$CXX"; then  
   echo "$as_me:$LINENO: result: $CXX" >&5  
 echo "${ECHO_T}$CXX" >&6  
4055  else  else
4056    echo "$as_me:$LINENO: result: no" >&5    ac_cv_prog_CPP=$CPP
 echo "${ECHO_T}no" >&6  
 fi  
   
     test -n "$CXX" && break  
   done  
4057  fi  fi
4058  if test -z "$CXX"; then  echo "$as_me:$LINENO: result: $CPP" >&5
4059    ac_ct_CXX=$CXX  echo "${ECHO_T}$CPP" >&6
4060    for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC  ac_preproc_ok=false
4061  do  for ac_c_preproc_warn_flag in '' yes
   # Extract the first word of "$ac_prog", so it can be a program name with args.  
 set dummy $ac_prog; ac_word=$2  
 echo "$as_me:$LINENO: checking for $ac_word" >&5  
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  
 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   if test -n "$ac_ct_CXX"; then  
   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.  
 else  
 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR  
 for as_dir in $PATH  
4062  do  do
4063    IFS=$as_save_IFS    # Use a header file that comes with gcc, so configuring glibc
4064    test -z "$as_dir" && as_dir=.    # with a fresh cross-compiler works.
4065    for ac_exec_ext in '' $ac_executable_extensions; do    # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4066    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then    # <limits.h> exists even on freestanding compilers.
4067      ac_cv_prog_ac_ct_CXX="$ac_prog"    # On the NeXT, cc -E runs the code through the compiler's parser,
4068      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    # not just through cpp. "Syntax error" is here to catch this case.
4069      break 2    cat >conftest.$ac_ext <<_ACEOF
4070    /* confdefs.h.  */
4071    _ACEOF
4072    cat confdefs.h >>conftest.$ac_ext
4073    cat >>conftest.$ac_ext <<_ACEOF
4074    /* end confdefs.h.  */
4075    #ifdef __STDC__
4076    # include <limits.h>
4077    #else
4078    # include <assert.h>
4079    #endif
4080                         Syntax error
4081    _ACEOF
4082    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4083      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4084      ac_status=$?
4085      grep -v '^ *+' conftest.er1 >conftest.err
4086      rm -f conftest.er1
4087      cat conftest.err >&5
4088      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089      (exit $ac_status); } >/dev/null; then
4090      if test -s conftest.err; then
4091        ac_cpp_err=$ac_c_preproc_warn_flag
4092        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4093      else
4094        ac_cpp_err=
4095    fi    fi
4096  done  else
4097  done    ac_cpp_err=yes
4098    fi
4099    if test -z "$ac_cpp_err"; then
4100      :
4101    else
4102      echo "$as_me: failed program was:" >&5
4103    sed 's/^/| /' conftest.$ac_ext >&5
4104    
4105      # Broken: fails on valid input.
4106    continue
4107  fi  fi
4108    rm -f conftest.err conftest.$ac_ext
4109    
4110      # OK, works on sane cases.  Now check whether non-existent headers
4111      # can be detected and how.
4112      cat >conftest.$ac_ext <<_ACEOF
4113    /* confdefs.h.  */
4114    _ACEOF
4115    cat confdefs.h >>conftest.$ac_ext
4116    cat >>conftest.$ac_ext <<_ACEOF
4117    /* end confdefs.h.  */
4118    #include <ac_nonexistent.h>
4119    _ACEOF
4120    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4121      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4122      ac_status=$?
4123      grep -v '^ *+' conftest.er1 >conftest.err
4124      rm -f conftest.er1
4125      cat conftest.err >&5
4126      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127      (exit $ac_status); } >/dev/null; then
4128      if test -s conftest.err; then
4129        ac_cpp_err=$ac_c_preproc_warn_flag
4130        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4131      else
4132        ac_cpp_err=
4133      fi
4134    else
4135      ac_cpp_err=yes
4136  fi  fi
4137  ac_ct_CXX=$ac_cv_prog_ac_ct_CXX  if test -z "$ac_cpp_err"; then
4138  if test -n "$ac_ct_CXX"; then    # Broken: success on invalid input.
4139    echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5  continue
 echo "${ECHO_T}$ac_ct_CXX" >&6  
4140  else  else
4141    echo "$as_me:$LINENO: result: no" >&5    echo "$as_me: failed program was:" >&5
4142  echo "${ECHO_T}no" >&6  sed 's/^/| /' conftest.$ac_ext >&5
4143    
4144      # Passes both tests.
4145    ac_preproc_ok=:
4146    break
4147  fi  fi
4148    rm -f conftest.err conftest.$ac_ext
4149    
   test -n "$ac_ct_CXX" && break  
4150  done  done
4151  test -n "$ac_ct_CXX" || ac_ct_CXX="g++"  # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4152    rm -f conftest.err conftest.$ac_ext
4153    CXX=$ac_ct_CXX  if $ac_preproc_ok; then
4154      :
4155    else
4156      { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4157    See \`config.log' for more details." >&5
4158    echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4159    See \`config.log' for more details." >&2;}
4160       { (exit 1); exit 1; }; }
4161  fi  fi
4162    
4163    ac_ext=c
4164    ac_cpp='$CPP $CPPFLAGS'
4165    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4166    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4167    ac_compiler_gnu=$ac_cv_c_compiler_gnu
4168    
 # Provide some information about the compiler.  
 echo "$as_me:$LINENO:" \  
      "checking for C++ compiler version" >&5  
 ac_compiler=`set X $ac_compile; echo $2`  
 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5  
   (eval $ac_compiler --version </dev/null >&5) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }  
 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5  
   (eval $ac_compiler -v </dev/null >&5) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }  
 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5  
   (eval $ac_compiler -V </dev/null >&5) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }  
4169    
4170  echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4171  echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6  echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4172  if test "${ac_cv_cxx_compiler_gnu+set}" = set; then  if test "${ac_cv_header_stdc+set}" = set; then
4173    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4174  else  else
4175    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
# Line 4326  _ACEOF Line 4178  _ACEOF
4178  cat confdefs.h >>conftest.$ac_ext  cat confdefs.h >>conftest.$ac_ext
4179  cat >>conftest.$ac_ext <<_ACEOF  cat >>conftest.$ac_ext <<_ACEOF
4180  /* end confdefs.h.  */  /* end confdefs.h.  */
4181    #include <stdlib.h>
4182    #include <stdarg.h>
4183    #include <string.h>
4184    #include <float.h>
4185    
4186  int  int
4187  main ()  main ()
4188  {  {
 #ifndef __GNUC__  
        choke me  
 #endif  
4189    
4190    ;    ;
4191    return 0;    return 0;
# Line 4347  if { (eval echo "$as_me:$LINENO: \"$ac_c Line 4200  if { (eval echo "$as_me:$LINENO: \"$ac_c
4200    cat conftest.err >&5    cat conftest.err >&5
4201    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202    (exit $ac_status); } &&    (exit $ac_status); } &&
4203           { ac_try='test -z "$ac_cxx_werror_flag"           { ac_try='test -z "$ac_c_werror_flag"
4204                           || test ! -s conftest.err'                           || test ! -s conftest.err'
4205    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
# Line 4360  if { (eval echo "$as_me:$LINENO: \"$ac_c Line 4213  if { (eval echo "$as_me:$LINENO: \"$ac_c
4213    ac_status=$?    ac_status=$?
4214    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
4216    ac_compiler_gnu=yes    ac_cv_header_stdc=yes
4217  else  else
4218    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
4219  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
4220    
4221  ac_compiler_gnu=no  ac_cv_header_stdc=no
4222  fi  fi
4223  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu  
4224    
4225    if test $ac_cv_header_stdc = yes; then
4226      # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4227      cat >conftest.$ac_ext <<_ACEOF
4228    /* confdefs.h.  */
4229    _ACEOF
4230    cat confdefs.h >>conftest.$ac_ext
4231    cat >>conftest.$ac_ext <<_ACEOF
4232    /* end confdefs.h.  */
4233    #include <string.h>
4234    
4235    _ACEOF
4236    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4237      $EGREP "memchr" >/dev/null 2>&1; then
4238      :
4239    else
4240      ac_cv_header_stdc=no
4241  fi  fi
4242  echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5  rm -f conftest*
4243  echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6  
4244  GXX=`test $ac_compiler_gnu = yes && echo yes`  fi
4245  ac_test_CXXFLAGS=${CXXFLAGS+set}  
4246  ac_save_CXXFLAGS=$CXXFLAGS  if test $ac_cv_header_stdc = yes; then
4247  CXXFLAGS="-g"    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4248  echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5    cat >conftest.$ac_ext <<_ACEOF
4249  echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6  /* confdefs.h.  */
4250  if test "${ac_cv_prog_cxx_g+set}" = set; then  _ACEOF
4251    echo $ECHO_N "(cached) $ECHO_C" >&6  cat confdefs.h >>conftest.$ac_ext
4252    cat >>conftest.$ac_ext <<_ACEOF
4253    /* end confdefs.h.  */
4254    #include <stdlib.h>
4255    
4256    _ACEOF
4257    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4258      $EGREP "free" >/dev/null 2>&1; then
4259      :
4260    else
4261      ac_cv_header_stdc=no
4262    fi
4263    rm -f conftest*
4264    
4265    fi
4266    
4267    if test $ac_cv_header_stdc = yes; then
4268      # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4269      if test "$cross_compiling" = yes; then
4270      :
4271  else  else
4272    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
4273  /* confdefs.h.  */  /* confdefs.h.  */
# Line 4388  _ACEOF Line 4275  _ACEOF
4275  cat confdefs.h >>conftest.$ac_ext  cat confdefs.h >>conftest.$ac_ext
4276  cat >>conftest.$ac_ext <<_ACEOF  cat >>conftest.$ac_ext <<_ACEOF
4277  /* end confdefs.h.  */  /* end confdefs.h.  */
4278    #include <ctype.h>
4279    #if ((' ' & 0x0FF) == 0x020)
4280    # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4281    # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4282    #else
4283    # define ISLOWER(c) \
4284                       (('a' <= (c) && (c) <= 'i') \
4285                         || ('j' <= (c) && (c) <= 'r') \
4286                         || ('s' <= (c) && (c) <= 'z'))
4287    # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4288    #endif
4289    
4290    #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4291  int  int
4292  main ()  main ()
4293  {  {
4294      int i;
4295    ;    for (i = 0; i < 256; i++)
4296    return 0;      if (XOR (islower (i), ISLOWER (i))
4297            || toupper (i) != TOUPPER (i))
4298          exit(2);
4299      exit (0);
4300  }  }
4301  _ACEOF  _ACEOF
4302  rm -f conftest.$ac_objext  rm -f conftest$ac_exeext
4303  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4304    (eval $ac_compile) 2>conftest.er1    (eval $ac_link) 2>&5
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_cxx_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
4305    ac_status=$?    ac_status=$?
4306    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307    (exit $ac_status); }; } &&    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
          { ac_try='test -s conftest.$ac_objext'  
4308    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
4310    ac_status=$?    ac_status=$?
4311    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
4313    ac_cv_prog_cxx_g=yes    :
4314  else  else
4315    echo "$as_me: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
4316    echo "$as_me: failed program was:" >&5
4317  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
4318    
4319  ac_cv_prog_cxx_g=no  ( exit $ac_status )
4320    ac_cv_header_stdc=no
4321  fi  fi
4322  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4323  fi  fi
 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5  
 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6  
 if test "$ac_test_CXXFLAGS" = set; then  
   CXXFLAGS=$ac_save_CXXFLAGS  
 elif test $ac_cv_prog_cxx_g = yes; then  
   if test "$GXX" = yes; then  
     CXXFLAGS="-g -O2"  
   else  
     CXXFLAGS="-g"  
   fi  
 else  
   if test "$GXX" = yes; then  
     CXXFLAGS="-O2"  
   else  
     CXXFLAGS=  
   fi  
4324  fi  fi
4325  for ac_declaration in \  fi
4326     '' \  echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4327     'extern "C" void std::exit (int) throw (); using std::exit;' \  echo "${ECHO_T}$ac_cv_header_stdc" >&6
4328     'extern "C" void std::exit (int); using std::exit;' \  if test $ac_cv_header_stdc = yes; then
4329     'extern "C" void exit (int) throw ();' \  
4330     'extern "C" void exit (int);' \  cat >>confdefs.h <<\_ACEOF
4331     'void exit (int);'  #define STDC_HEADERS 1
4332    _ACEOF
4333    
4334    fi
4335    
4336    # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4337    
4338    
4339    
4340    
4341    
4342    
4343    
4344    
4345    
4346    for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4347                      inttypes.h stdint.h unistd.h
4348  do  do
4349    as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4350    echo "$as_me:$LINENO: checking for $ac_header" >&5
4351    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4352    if eval "test \"\${$as_ac_Header+set}\" = set"; then
4353      echo $ECHO_N "(cached) $ECHO_C" >&6
4354    else
4355    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
4356  /* confdefs.h.  */  /* confdefs.h.  */
4357  _ACEOF  _ACEOF
4358  cat confdefs.h >>conftest.$ac_ext  cat confdefs.h >>conftest.$ac_ext
4359  cat >>conftest.$ac_ext <<_ACEOF  cat >>conftest.$ac_ext <<_ACEOF
4360  /* end confdefs.h.  */  /* end confdefs.h.  */
4361  $ac_declaration  $ac_includes_default
4362  #include <stdlib.h>  
4363  int  #include <$ac_header>
 main ()  
 {  
 exit (42);  
   ;  
   return 0;  
 }  
4364  _ACEOF  _ACEOF
4365  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext
4366  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
# Line 4478  if { (eval echo "$as_me:$LINENO: \"$ac_c Line 4371  if { (eval echo "$as_me:$LINENO: \"$ac_c
4371    cat conftest.err >&5    cat conftest.err >&5
4372    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373    (exit $ac_status); } &&    (exit $ac_status); } &&
4374           { ac_try='test -z "$ac_cxx_werror_flag"           { ac_try='test -z "$ac_c_werror_flag"
4375                           || test ! -s conftest.err'                           || test ! -s conftest.err'
4376    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4377    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
# Line 4491  if { (eval echo "$as_me:$LINENO: \"$ac_c Line 4384  if { (eval echo "$as_me:$LINENO: \"$ac_c
4384    ac_status=$?    ac_status=$?
4385    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
4387    :    eval "$as_ac_Header=yes"
4388  else  else
4389    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
4390  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
4391    
4392  continue  eval "$as_ac_Header=no"
4393  fi  fi
4394  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4395    cat >conftest.$ac_ext <<_ACEOF  fi
4396    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4397    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4398    if test `eval echo '${'$as_ac_Header'}'` = yes; then
4399      cat >>confdefs.h <<_ACEOF
4400    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4401    _ACEOF
4402    
4403    fi
4404    
4405    done
4406    
4407    
4408    
4409    for ac_header in dlfcn.h
4410    do
4411    as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4412    if eval "test \"\${$as_ac_Header+set}\" = set"; then
4413      echo "$as_me:$LINENO: checking for $ac_header" >&5
4414    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4415    if eval "test \"\${$as_ac_Header+set}\" = set"; then
4416      echo $ECHO_N "(cached) $ECHO_C" >&6
4417    fi
4418    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4419    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4420    else
4421      # Is the header compilable?
4422    echo "$as_me:$LINENO: checking $ac_header usability" >&5
4423    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4424    cat >conftest.$ac_ext <<_ACEOF
4425  /* confdefs.h.  */  /* confdefs.h.  */
4426  _ACEOF  _ACEOF
4427  cat confdefs.h >>conftest.$ac_ext  cat confdefs.h >>conftest.$ac_ext
4428  cat >>conftest.$ac_ext <<_ACEOF  cat >>conftest.$ac_ext <<_ACEOF
4429  /* end confdefs.h.  */  /* end confdefs.h.  */
4430  $ac_declaration  $ac_includes_default
4431  int  #include <$ac_header>
 main ()  
 {  
 exit (42);  
   ;  
   return 0;  
 }  
4432  _ACEOF  _ACEOF
4433  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext
4434  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
# Line 4523  if { (eval echo "$as_me:$LINENO: \"$ac_c Line 4439  if { (eval echo "$as_me:$LINENO: \"$ac_c
4439    cat conftest.err >&5    cat conftest.err >&5
4440    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441    (exit $ac_status); } &&    (exit $ac_status); } &&
4442           { ac_try='test -z "$ac_cxx_werror_flag"           { ac_try='test -z "$ac_c_werror_flag"
4443                           || test ! -s conftest.err'                           || test ! -s conftest.err'
4444    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
# Line 4536  if { (eval echo "$as_me:$LINENO: \"$ac_c Line 4452  if { (eval echo "$as_me:$LINENO: \"$ac_c
4452    ac_status=$?    ac_status=$?
4453    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
4455    break    ac_header_compiler=yes
4456  else  else
4457    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
4458  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
4459    
4460    ac_header_compiler=no
4461  fi  fi
4462  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4463  done  echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4464  rm -f conftest*  echo "${ECHO_T}$ac_header_compiler" >&6
4465  if test -n "$ac_declaration"; then  
4466    echo '#ifdef __cplusplus' >>confdefs.h  # Is the header present?
4467    echo $ac_declaration      >>confdefs.h  echo "$as_me:$LINENO: checking $ac_header presence" >&5
4468    echo '#endif'             >>confdefs.h  echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4469    cat >conftest.$ac_ext <<_ACEOF
4470    /* confdefs.h.  */
4471    _ACEOF
4472    cat confdefs.h >>conftest.$ac_ext
4473    cat >>conftest.$ac_ext <<_ACEOF
4474    /* end confdefs.h.  */
4475    #include <$ac_header>
4476    _ACEOF
4477    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4478      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4479      ac_status=$?
4480      grep -v '^ *+' conftest.er1 >conftest.err
4481      rm -f conftest.er1
4482      cat conftest.err >&5
4483      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484      (exit $ac_status); } >/dev/null; then
4485      if test -s conftest.err; then
4486        ac_cpp_err=$ac_c_preproc_warn_flag
4487        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4488      else
4489        ac_cpp_err=
4490      fi
4491    else
4492      ac_cpp_err=yes
4493    fi
4494    if test -z "$ac_cpp_err"; then
4495      ac_header_preproc=yes
4496    else
4497      echo "$as_me: failed program was:" >&5
4498    sed 's/^/| /' conftest.$ac_ext >&5
4499    
4500      ac_header_preproc=no
4501  fi  fi
4502    rm -f conftest.err conftest.$ac_ext
4503    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4504    echo "${ECHO_T}$ac_header_preproc" >&6
4505    
4506  ac_ext=cc  # So?  What about this header?
4507  ac_cpp='$CXXCPP $CPPFLAGS'  case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4508  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'    yes:no: )
4509  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'      { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4510  ac_compiler_gnu=$ac_cv_cxx_compiler_gnu  echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4511        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4512    echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4513        ac_header_preproc=yes
4514        ;;
4515      no:yes:* )
4516        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4517    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4518        { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4519    echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4520        { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4521    echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4522        { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4523    echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4524        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4525    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4526        { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4527    echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4528        (
4529          cat <<\_ASBOX
4530    ## ------------------------------------------ ##
4531    ## Report this to the AC_PACKAGE_NAME lists.  ##
4532    ## ------------------------------------------ ##
4533    _ASBOX
4534        ) |
4535          sed "s/^/$as_me: WARNING:     /" >&2
4536        ;;
4537    esac
4538    echo "$as_me:$LINENO: checking for $ac_header" >&5
4539    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4540    if eval "test \"\${$as_ac_Header+set}\" = set"; then
4541      echo $ECHO_N "(cached) $ECHO_C" >&6
4542    else
4543      eval "$as_ac_Header=\$ac_header_preproc"
4544    fi
4545    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4546    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4547    
4548    fi
4549    if test `eval echo '${'$as_ac_Header'}'` = yes; then
4550      cat >>confdefs.h <<_ACEOF
4551    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4552    _ACEOF
4553    
4554    fi
4555    
4556    done
4557    
4558  ac_ext=cc  ac_ext=cc
4559  ac_cpp='$CXXCPP $CPPFLAGS'  ac_cpp='$CXXCPP $CPPFLAGS'
# Line 4880  fi Line 4878  fi
4878    
4879    
4880  # Provide some information about the compiler.  # Provide some information about the compiler.
4881  echo "$as_me:4878:" \  echo "$as_me:4881:" \
4882       "checking for Fortran 77 compiler version" >&5       "checking for Fortran 77 compiler version" >&5
4883  ac_compiler=`set X $ac_compile; echo $2`  ac_compiler=`set X $ac_compile; echo $2`
4884  { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5  { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
# Line 5934  else Line 5932  else
5932     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5933     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5934     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
5935     (eval echo "\"\$as_me:5932: $lt_compile\"" >&5)     (eval echo "\"\$as_me:5935: $lt_compile\"" >&5)
5936     (eval "$lt_compile" 2>conftest.err)     (eval "$lt_compile" 2>conftest.err)
5937     ac_status=$?     ac_status=$?
5938     cat conftest.err >&5     cat conftest.err >&5
5939     echo "$as_me:5936: \$? = $ac_status" >&5     echo "$as_me:5939: \$? = $ac_status" >&5
5940     if (exit $ac_status) && test -s "$ac_outfile"; then     if (exit $ac_status) && test -s "$ac_outfile"; then
5941       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
5942       # So say no if there are warnings       # So say no if there are warnings
# Line 6177  else Line 6175  else
6175     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6176     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6177     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
6178     (eval echo "\"\$as_me:6175: $lt_compile\"" >&5)     (eval echo "\"\$as_me:6178: $lt_compile\"" >&5)
6179     (eval "$lt_compile" 2>conftest.err)     (eval "$lt_compile" 2>conftest.err)
6180     ac_status=$?     ac_status=$?
6181     cat conftest.err >&5     cat conftest.err >&5
6182     echo "$as_me:6179: \$? = $ac_status" >&5     echo "$as_me:6182: \$? = $ac_status" >&5
6183     if (exit $ac_status) && test -s "$ac_outfile"; then     if (exit $ac_status) && test -s "$ac_outfile"; then
6184       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
6185       # So say no if there are warnings       # So say no if there are warnings
# Line 6237  else Line 6235  else
6235     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6236     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6237     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
6238     (eval echo "\"\$as_me:6235: $lt_compile\"" >&5)     (eval echo "\"\$as_me:6238: $lt_compile\"" >&5)
6239     (eval "$lt_compile" 2>out/conftest.err)     (eval "$lt_compile" 2>out/conftest.err)
6240     ac_status=$?     ac_status=$?
6241     cat out/conftest.err >&5     cat out/conftest.err >&5
6242     echo "$as_me:6239: \$? = $ac_status" >&5     echo "$as_me:6242: \$? = $ac_status" >&5
6243     if (exit $ac_status) && test -s out/conftest2.$ac_objext     if (exit $ac_status) && test -s out/conftest2.$ac_objext
6244     then     then
6245       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
# Line 8422  else Line 8420  else
8420    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8421    lt_status=$lt_dlunknown    lt_status=$lt_dlunknown
8422    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8423  #line 8420 "configure"  #line 8423 "configure"
8424  #include "confdefs.h"  #include "confdefs.h"
8425    
8426  #if HAVE_DLFCN_H  #if HAVE_DLFCN_H
# Line 8520  else Line 8518  else
8518    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8519    lt_status=$lt_dlunknown    lt_status=$lt_dlunknown
8520    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8521  #line 8518 "configure"  #line 8521 "configure"
8522  #include "confdefs.h"  #include "confdefs.h"
8523    
8524  #if HAVE_DLFCN_H  #if HAVE_DLFCN_H
# Line 10713  else Line 10711  else
10711     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10712     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10713     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
10714     (eval echo "\"\$as_me:10711: $lt_compile\"" >&5)     (eval echo "\"\$as_me:10714: $lt_compile\"" >&5)
10715     (eval "$lt_compile" 2>conftest.err)     (eval "$lt_compile" 2>conftest.err)
10716     ac_status=$?     ac_status=$?
10717     cat conftest.err >&5     cat conftest.err >&5
10718     echo "$as_me:10715: \$? = $ac_status" >&5     echo "$as_me:10718: \$? = $ac_status" >&5
10719     if (exit $ac_status) && test -s "$ac_outfile"; then     if (exit $ac_status) && test -s "$ac_outfile"; then
10720       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
10721       # So say no if there are warnings       # So say no if there are warnings
# Line 10773  else Line 10771  else
10771     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10772     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10773     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
10774     (eval echo "\"\$as_me:10771: $lt_compile\"" >&5)     (eval echo "\"\$as_me:10774: $lt_compile\"" >&5)
10775     (eval "$lt_compile" 2>out/conftest.err)     (eval "$lt_compile" 2>out/conftest.err)
10776     ac_status=$?     ac_status=$?
10777     cat out/conftest.err >&5     cat out/conftest.err >&5
10778     echo "$as_me:10775: \$? = $ac_status" >&5     echo "$as_me:10778: \$? = $ac_status" >&5
10779     if (exit $ac_status) && test -s out/conftest2.$ac_objext     if (exit $ac_status) && test -s out/conftest2.$ac_objext
10780     then     then
10781       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
# Line 12134  else Line 12132  else
12132    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12133    lt_status=$lt_dlunknown    lt_status=$lt_dlunknown
12134    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
12135  #line 12132 "configure"  #line 12135 "configure"
12136  #include "confdefs.h"  #include "confdefs.h"
12137    
12138  #if HAVE_DLFCN_H  #if HAVE_DLFCN_H
# Line 12232  else Line 12230  else
12230    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12231    lt_status=$lt_dlunknown    lt_status=$lt_dlunknown
12232    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
12233  #line 12230 "configure"  #line 12233 "configure"
12234  #include "confdefs.h"  #include "confdefs.h"
12235    
12236  #if HAVE_DLFCN_H  #if HAVE_DLFCN_H
# Line 13069  else Line 13067  else
13067     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13068     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13069     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
13070     (eval echo "\"\$as_me:13067: $lt_compile\"" >&5)     (eval echo "\"\$as_me:13070: $lt_compile\"" >&5)
13071     (eval "$lt_compile" 2>conftest.err)     (eval "$lt_compile" 2>conftest.err)
13072     ac_status=$?     ac_status=$?
13073     cat conftest.err >&5     cat conftest.err >&5
13074     echo "$as_me:13071: \$? = $ac_status" >&5     echo "$as_me:13074: \$? = $ac_status" >&5
13075     if (exit $ac_status) && test -s "$ac_outfile"; then     if (exit $ac_status) && test -s "$ac_outfile"; then
13076       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
13077       # So say no if there are warnings       # So say no if there are warnings
# Line 13129  else Line 13127  else
13127     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13128     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13129     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
13130     (eval echo "\"\$as_me:13127: $lt_compile\"" >&5)     (eval echo "\"\$as_me:13130: $lt_compile\"" >&5)
13131     (eval "$lt_compile" 2>out/conftest.err)     (eval "$lt_compile" 2>out/conftest.err)
13132     ac_status=$?     ac_status=$?
13133     cat out/conftest.err >&5     cat out/conftest.err >&5
13134     echo "$as_me:13131: \$? = $ac_status" >&5     echo "$as_me:13134: \$? = $ac_status" >&5
13135     if (exit $ac_status) && test -s out/conftest2.$ac_objext     if (exit $ac_status) && test -s out/conftest2.$ac_objext
13136     then     then
13137       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
# Line 15168  else Line 15166  else
15166     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15167     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15168     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
15169     (eval echo "\"\$as_me:15166: $lt_compile\"" >&5)     (eval echo "\"\$as_me:15169: $lt_compile\"" >&5)
15170     (eval "$lt_compile" 2>conftest.err)     (eval "$lt_compile" 2>conftest.err)
15171     ac_status=$?     ac_status=$?
15172     cat conftest.err >&5     cat conftest.err >&5
15173     echo "$as_me:15170: \$? = $ac_status" >&5     echo "$as_me:15173: \$? = $ac_status" >&5
15174     if (exit $ac_status) && test -s "$ac_outfile"; then     if (exit $ac_status) && test -s "$ac_outfile"; then
15175       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
15176       # So say no if there are warnings       # So say no if there are warnings
# Line 15411  else Line 15409  else
15409     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15410     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15411     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
15412     (eval echo "\"\$as_me:15409: $lt_compile\"" >&5)     (eval echo "\"\$as_me:15412: $lt_compile\"" >&5)
15413     (eval "$lt_compile" 2>conftest.err)     (eval "$lt_compile" 2>conftest.err)
15414     ac_status=$?     ac_status=$?
15415     cat conftest.err >&5     cat conftest.err >&5
15416     echo "$as_me:15413: \$? = $ac_status" >&5     echo "$as_me:15416: \$? = $ac_status" >&5
15417     if (exit $ac_status) && test -s "$ac_outfile"; then     if (exit $ac_status) && test -s "$ac_outfile"; then
15418       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
15419       # So say no if there are warnings       # So say no if there are warnings
# Line 15471  else Line 15469  else
15469     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15470     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15471     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
15472     (eval echo "\"\$as_me:15469: $lt_compile\"" >&5)     (eval echo "\"\$as_me:15472: $lt_compile\"" >&5)
15473     (eval "$lt_compile" 2>out/conftest.err)     (eval "$lt_compile" 2>out/conftest.err)
15474     ac_status=$?     ac_status=$?
15475     cat out/conftest.err >&5     cat out/conftest.err >&5
15476     echo "$as_me:15473: \$? = $ac_status" >&5     echo "$as_me:15476: \$? = $ac_status" >&5
15477     if (exit $ac_status) && test -s out/conftest2.$ac_objext     if (exit $ac_status) && test -s out/conftest2.$ac_objext
15478     then     then
15479       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
# Line 17656  else Line 17654  else
17654    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17655    lt_status=$lt_dlunknown    lt_status=$lt_dlunknown
17656    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
17657  #line 17654 "configure"  #line 17657 "configure"
17658  #include "confdefs.h"  #include "confdefs.h"
17659    
17660  #if HAVE_DLFCN_H  #if HAVE_DLFCN_H
# Line 17754  else Line 17752  else
17752    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17753    lt_status=$lt_dlunknown    lt_status=$lt_dlunknown
17754    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
17755  #line 17752 "configure"  #line 17755 "configure"
17756  #include "confdefs.h"  #include "confdefs.h"
17757    
17758  #if HAVE_DLFCN_H  #if HAVE_DLFCN_H
# Line 18712  CC="$lt_save_CC" Line 18710  CC="$lt_save_CC"
18710    
18711          ;;          ;;
18712    
18713        *)        *)
18714          { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5          { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18715  echo "$as_me: error: Unsupported tag name: $tagname" >&2;}  echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18716     { (exit 1); exit 1; }; }     { (exit 1); exit 1; }; }
18717          ;;          ;;
18718        esac        esac
18719    
18720          # Append the new tag name to the list of available tags.
18721          if test -n "$tagname" ; then
18722          available_tags="$available_tags $tagname"
18723        fi
18724        fi
18725      done
18726      IFS="$lt_save_ifs"
18727    
18728      # Now substitute the updated list of available tags.
18729      if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18730        mv "${ofile}T" "$ofile"
18731        chmod +x "$ofile"
18732      else
18733        rm -f "${ofile}T"
18734        { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18735    echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18736       { (exit 1); exit 1; }; }
18737      fi
18738    fi
18739    
18740    
18741    
18742    # This can be used to rebuild libtool when needed
18743    LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18744    
18745    # Always use our own libtool.
18746    LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18747    
18748    # Prevent multiple expansion
18749    
18750    
18751    
18752    
18753    
18754    
18755    
18756    
18757    
18758    
18759    
18760    
18761    
18762    
18763    
18764    
18765    
18766    
18767    
18768    
18769    
18770    
18771    CC_FOR_BUILD=${CC_FOR_BUILD:-'$(CC)'}
18772    CXX_FOR_BUILD=${CXX_FOR_BUILD:-'$(CXX)'}
18773    CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD:-'$(CFLAGS)'}
18774    CPPFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD:-'$(CPPFLAGS)'}
18775    CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD:-'$(CXXFLAGS)'}
18776    BUILD_EXEEXT=${BUILD_EXEEXT:-'$(EXEEXT)'}
18777    BUILD_OBJEXT=${BUILD_OBJEXT:-'$(OBJEXT)'}
18778    
18779    
18780    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18781    echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18782    if test "${ac_cv_header_stdc+set}" = set; then
18783      echo $ECHO_N "(cached) $ECHO_C" >&6
18784    else
18785      cat >conftest.$ac_ext <<_ACEOF
18786    /* confdefs.h.  */
18787    _ACEOF
18788    cat confdefs.h >>conftest.$ac_ext
18789    cat >>conftest.$ac_ext <<_ACEOF
18790    /* end confdefs.h.  */
18791    #include <stdlib.h>
18792    #include <stdarg.h>
18793    #include <string.h>
18794    #include <float.h>
18795    
18796    int
18797    main ()
18798    {
18799    
18800        # Append the new tag name to the list of available tags.    ;
18801        if test -n "$tagname" ; then    return 0;
18802        available_tags="$available_tags $tagname"  }
18803      fi  _ACEOF
18804      fi  rm -f conftest.$ac_objext
18805    done  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18806    IFS="$lt_save_ifs"    (eval $ac_compile) 2>conftest.er1
18807      ac_status=$?
18808      grep -v '^ *+' conftest.er1 >conftest.err
18809      rm -f conftest.er1
18810      cat conftest.err >&5
18811      echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812      (exit $ac_status); } &&
18813             { ac_try='test -z "$ac_c_werror_flag"
18814                             || test ! -s conftest.err'
18815      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18816      (eval $ac_try) 2>&5
18817      ac_status=$?
18818      echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819      (exit $ac_status); }; } &&
18820             { ac_try='test -s conftest.$ac_objext'
18821      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18822      (eval $ac_try) 2>&5
18823      ac_status=$?
18824      echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825      (exit $ac_status); }; }; then
18826      ac_cv_header_stdc=yes
18827    else
18828      echo "$as_me: failed program was:" >&5
18829    sed 's/^/| /' conftest.$ac_ext >&5
18830    
18831    # Now substitute the updated list of available tags.  ac_cv_header_stdc=no
   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then  
     mv "${ofile}T" "$ofile"  
     chmod +x "$ofile"  
   else  
     rm -f "${ofile}T"  
     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5  
 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}  
    { (exit 1); exit 1; }; }  
   fi  
18832  fi  fi
18833    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18834    
18835    if test $ac_cv_header_stdc = yes; then
18836      # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18837      cat >conftest.$ac_ext <<_ACEOF
18838    /* confdefs.h.  */
18839    _ACEOF
18840    cat confdefs.h >>conftest.$ac_ext
18841    cat >>conftest.$ac_ext <<_ACEOF
18842    /* end confdefs.h.  */
18843    #include <string.h>
18844    
18845    _ACEOF
18846    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18847      $EGREP "memchr" >/dev/null 2>&1; then
18848      :
18849    else
18850      ac_cv_header_stdc=no
18851    fi
18852    rm -f conftest*
18853    
18854  # This can be used to rebuild libtool when needed  fi
 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"  
   
 # Always use our own libtool.  
 LIBTOOL='$(SHELL) $(top_builddir)/libtool'  
18855    
18856  # Prevent multiple expansion  if test $ac_cv_header_stdc = yes; then
18857      # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18858      cat >conftest.$ac_ext <<_ACEOF
18859    /* confdefs.h.  */
18860    _ACEOF
18861    cat confdefs.h >>conftest.$ac_ext
18862    cat >>conftest.$ac_ext <<_ACEOF
18863    /* end confdefs.h.  */
18864    #include <stdlib.h>
18865    
18866    _ACEOF
18867    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18868      $EGREP "free" >/dev/null 2>&1; then
18869      :
18870    else
18871      ac_cv_header_stdc=no
18872    fi
18873    rm -f conftest*
18874    
18875    fi
18876    
18877    if test $ac_cv_header_stdc = yes; then
18878      # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18879      if test "$cross_compiling" = yes; then
18880      :
18881    else
18882      cat >conftest.$ac_ext <<_ACEOF
18883    /* confdefs.h.  */
18884    _ACEOF
18885    cat confdefs.h >>conftest.$ac_ext
18886    cat >>conftest.$ac_ext <<_ACEOF
18887    /* end confdefs.h.  */
18888    #include <ctype.h>
18889    #if ((' ' & 0x0FF) == 0x020)
18890    # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18891    # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18892    #else
18893    # define ISLOWER(c) \
18894                       (('a' <= (c) && (c) <= 'i') \
18895                         || ('j' <= (c) && (c) <= 'r') \
18896                         || ('s' <= (c) && (c) <= 'z'))
18897    # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18898    #endif
18899    
18900    #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18901    int
18902    main ()
18903    {
18904      int i;
18905      for (i = 0; i < 256; i++)
18906        if (XOR (islower (i), ISLOWER (i))
18907            || toupper (i) != TOUPPER (i))
18908          exit(2);
18909      exit (0);
18910    }
18911    _ACEOF
18912    rm -f conftest$ac_exeext
18913    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18914      (eval $ac_link) 2>&5
18915      ac_status=$?
18916      echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18918      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18919      (eval $ac_try) 2>&5
18920      ac_status=$?
18921      echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922      (exit $ac_status); }; }; then
18923      :
18924    else
18925      echo "$as_me: program exited with status $ac_status" >&5
18926    echo "$as_me: failed program was:" >&5
18927    sed 's/^/| /' conftest.$ac_ext >&5
18928    
18929    ( exit $ac_status )
18930    ac_cv_header_stdc=no
18931    fi
18932    rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18933    fi
18934    fi
18935    fi
18936    echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18937    echo "${ECHO_T}$ac_cv_header_stdc" >&6
18938    if test $ac_cv_header_stdc = yes; then
18939    
18940    cat >>confdefs.h <<\_ACEOF
18941    #define STDC_HEADERS 1
18942    _ACEOF
18943    
18944    fi
18945    
18946    
18947    for ac_header in limits.h
18948    do
18949    as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18950    if eval "test \"\${$as_ac_Header+set}\" = set"; then
18951      echo "$as_me:$LINENO: checking for $ac_header" >&5
18952    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18953    if eval "test \"\${$as_ac_Header+set}\" = set"; then
18954      echo $ECHO_N "(cached) $ECHO_C" >&6
18955    fi
18956    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18957    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18958    else
18959      # Is the header compilable?
18960    echo "$as_me:$LINENO: checking $ac_header usability" >&5
18961    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18962    cat >conftest.$ac_ext <<_ACEOF
18963    /* confdefs.h.  */
18964    _ACEOF
18965    cat confdefs.h >>conftest.$ac_ext
18966    cat >>conftest.$ac_ext <<_ACEOF
18967    /* end confdefs.h.  */
18968    $ac_includes_default
18969    #include <$ac_header>
18970    _ACEOF
18971    rm -f conftest.$ac_objext
18972    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18973      (eval $ac_compile) 2>conftest.er1
18974      ac_status=$?
18975      grep -v '^ *+' conftest.er1 >conftest.err
18976      rm -f conftest.er1
18977      cat conftest.err >&5
18978      echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979      (exit $ac_status); } &&
18980             { ac_try='test -z "$ac_c_werror_flag"
18981                             || test ! -s conftest.err'
18982      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18983      (eval $ac_try) 2>&5
18984      ac_status=$?
18985      echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986      (exit $ac_status); }; } &&
18987             { ac_try='test -s conftest.$ac_objext'
18988      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18989      (eval $ac_try) 2>&5
18990      ac_status=$?
18991      echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992      (exit $ac_status); }; }; then
18993      ac_header_compiler=yes
18994    else
18995      echo "$as_me: failed program was:" >&5
18996    sed 's/^/| /' conftest.$ac_ext >&5
18997    
18998    ac_header_compiler=no
18999    fi
19000    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19001    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19002    echo "${ECHO_T}$ac_header_compiler" >&6
19003    
19004    # Is the header present?
19005    echo "$as_me:$LINENO: checking $ac_header presence" >&5
19006    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19007    cat >conftest.$ac_ext <<_ACEOF
19008    /* confdefs.h.  */
19009    _ACEOF
19010    cat confdefs.h >>conftest.$ac_ext
19011    cat >>conftest.$ac_ext <<_ACEOF
19012    /* end confdefs.h.  */
19013    #include <$ac_header>
19014    _ACEOF
19015    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19016      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19017      ac_status=$?
19018      grep -v '^ *+' conftest.er1 >conftest.err
19019      rm -f conftest.er1
19020      cat conftest.err >&5
19021      echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022      (exit $ac_status); } >/dev/null; then
19023      if test -s conftest.err; then
19024        ac_cpp_err=$ac_c_preproc_warn_flag
19025        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19026      else
19027        ac_cpp_err=
19028      fi
19029    else
19030      ac_cpp_err=yes
19031    fi
19032    if test -z "$ac_cpp_err"; then
19033      ac_header_preproc=yes
19034    else
19035      echo "$as_me: failed program was:" >&5
19036    sed 's/^/| /' conftest.$ac_ext >&5
19037    
19038      ac_header_preproc=no
19039    fi
19040    rm -f conftest.err conftest.$ac_ext
19041    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19042    echo "${ECHO_T}$ac_header_preproc" >&6
19043    
19044    # So?  What about this header?
19045    case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19046      yes:no: )
19047        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19048    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19049        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19050    echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19051        ac_header_preproc=yes
19052        ;;
19053      no:yes:* )
19054        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19055    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19056        { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19057    echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19058        { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19059    echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19060        { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19061    echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19062        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19063    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19064        { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19065    echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19066        (
19067          cat <<\_ASBOX
19068    ## ------------------------------------------ ##
19069    ## Report this to the AC_PACKAGE_NAME lists.  ##
19070    ## ------------------------------------------ ##
19071    _ASBOX
19072        ) |
19073          sed "s/^/$as_me: WARNING:     /" >&2
19074        ;;
19075    esac
19076    echo "$as_me:$LINENO: checking for $ac_header" >&5
19077    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19078    if eval "test \"\${$as_ac_Header+set}\" = set"; then
19079      echo $ECHO_N "(cached) $ECHO_C" >&6
19080    else
19081      eval "$as_ac_Header=\$ac_header_preproc"
19082    fi
19083    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19084    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19085    
19086    fi
19087    if test `eval echo '${'$as_ac_Header'}'` = yes; then
19088      cat >>confdefs.h <<_ACEOF
19089    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19090    _ACEOF
19091    
19092    fi
19093    
19094    done
19095    
19096    
19097    
19098    
19099    
19100    ac_ext=cc
19101    ac_cpp='$CXXCPP $CPPFLAGS'
19102    ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19103    ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19104    ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19105    
 CC_FOR_BUILD=${CC_FOR_BUILD:-'$(CC)'}  
 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD:-'$(CFLAGS)'}  
 BUILD_EXEEXT=${BUILD_EXEEXT:-'$(EXEEXT)'}  
 BUILD_OBJEXT=${BUILD_OBJEXT:-'$(OBJEXT)'}  
19106    
19107    
19108  echo "$as_me:$LINENO: checking for ANSI C header files" >&5  for ac_header in string
19109  echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6  do
19110  if test "${ac_cv_header_stdc+set}" = set; then  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19111    if eval "test \"\${$as_ac_Header+set}\" = set"; then
19112      echo "$as_me:$LINENO: checking for $ac_header" >&5
19113    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19114    if eval "test \"\${$as_ac_Header+set}\" = set"; then
19115    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
19116    fi
19117    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19118    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19119  else  else
19120    cat >conftest.$ac_ext <<_ACEOF    # Is the header compilable?
19121    echo "$as_me:$LINENO: checking $ac_header usability" >&5
19122    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19123    cat >conftest.$ac_ext <<_ACEOF
19124  /* confdefs.h.  */  /* confdefs.h.  */
19125  _ACEOF  _ACEOF
19126  cat confdefs.h >>conftest.$ac_ext  cat confdefs.h >>conftest.$ac_ext
19127  cat >>conftest.$ac_ext <<_ACEOF  cat >>conftest.$ac_ext <<_ACEOF
19128  /* end confdefs.h.  */  /* end confdefs.h.  */
19129  #include <stdlib.h>  $ac_includes_default
19130  #include <stdarg.h>  #include <$ac_header>
 #include <string.h>  
 #include <float.h>  
   
 int  
 main ()  
 {  
   
   ;  
   return 0;  
 }  
19131  _ACEOF  _ACEOF
19132  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext
19133  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
# Line 18809  if { (eval echo "$as_me:$LINENO: \"$ac_c Line 19138  if { (eval echo "$as_me:$LINENO: \"$ac_c
19138    cat conftest.err >&5    cat conftest.err >&5
19139    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140    (exit $ac_status); } &&    (exit $ac_status); } &&
19141           { ac_try='test -z "$ac_c_werror_flag"           { ac_try='test -z "$ac_cxx_werror_flag"
19142                           || test ! -s conftest.err'                           || test ! -s conftest.err'
19143    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19144    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
# Line 18822  if { (eval echo "$as_me:$LINENO: \"$ac_c Line 19151  if { (eval echo "$as_me:$LINENO: \"$ac_c
19151    ac_status=$?    ac_status=$?
19152    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
19154    ac_cv_header_stdc=yes    ac_header_compiler=yes
19155  else  else
19156    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
19157  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
19158    
19159  ac_cv_header_stdc=no  ac_header_compiler=no
19160  fi  fi
19161  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19162    echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19163    echo "${ECHO_T}$ac_header_compiler" >&6
19164    
19165  if test $ac_cv_header_stdc = yes; then  # Is the header present?
19166    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.  echo "$as_me:$LINENO: checking $ac_header presence" >&5
19167    cat >conftest.$ac_ext <<_ACEOF  echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19168    cat >conftest.$ac_ext <<_ACEOF
19169  /* confdefs.h.  */  /* confdefs.h.  */
19170  _ACEOF  _ACEOF
19171  cat confdefs.h >>conftest.$ac_ext  cat confdefs.h >>conftest.$ac_ext
19172  cat >>conftest.$ac_ext <<_ACEOF  cat >>conftest.$ac_ext <<_ACEOF
19173  /* end confdefs.h.  */  /* end confdefs.h.  */
19174  #include <string.h>  #include <$ac_header>
   
19175  _ACEOF  _ACEOF
19176  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19177    $EGREP "memchr" >/dev/null 2>&1; then    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19178    :    ac_status=$?
19179      grep -v '^ *+' conftest.er1 >conftest.err
19180      rm -f conftest.er1
19181      cat conftest.err >&5
19182      echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183      (exit $ac_status); } >/dev/null; then
19184      if test -s conftest.err; then
19185        ac_cpp_err=$ac_cxx_preproc_warn_flag
19186        ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
19187      else
19188        ac_cpp_err=
19189      fi
19190  else  else
19191    ac_cv_header_stdc=no    ac_cpp_err=yes
19192  fi  fi
19193  rm -f conftest*  if test -z "$ac_cpp_err"; then
19194      ac_header_preproc=yes
19195    else
19196      echo "$as_me: failed program was:" >&5
19197    sed 's/^/| /' conftest.$ac_ext >&5
19198    
19199      ac_header_preproc=no
19200  fi  fi
19201    rm -f conftest.err conftest.$ac_ext
19202    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19203    echo "${ECHO_T}$ac_header_preproc" >&6
19204    
19205  if test $ac_cv_header_stdc = yes; then  # So?  What about this header?
19206    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.  case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19207    cat >conftest.$ac_ext <<_ACEOF    yes:no: )
19208  /* confdefs.h.  */      { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19209  _ACEOF  echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19210  cat confdefs.h >>conftest.$ac_ext      { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19211  cat >>conftest.$ac_ext <<_ACEOF  echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19212  /* end confdefs.h.  */      ac_header_preproc=yes
19213  #include <stdlib.h>      ;;
19214      no:yes:* )
19215        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19216    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19217        { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19218    echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19219        { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19220    echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19221        { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19222    echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19223        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19224    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19225        { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19226    echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19227        (
19228          cat <<\_ASBOX
19229    ## ------------------------------------------ ##
19230    ## Report this to the AC_PACKAGE_NAME lists.  ##
19231    ## ------------------------------------------ ##
19232    _ASBOX
19233        ) |
19234          sed "s/^/$as_me: WARNING:     /" >&2
19235        ;;
19236    esac
19237    echo "$as_me:$LINENO: checking for $ac_header" >&5
19238    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19239    if eval "test \"\${$as_ac_Header+set}\" = set"; then
19240      echo $ECHO_N "(cached) $ECHO_C" >&6