"Fossies" - the Fresh Open Source Software Archive

Member "libgcgi.a-0.9.5/configure" (22 Jun 2002, 197137 Bytes) of package /linux/www/old/gcgi-0.9.5.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #! /bin/sh
    2 
    3 # Guess values for system-dependent variables and create Makefiles.
    4 # Generated automatically using autoconf version 2.13 
    5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
    6 #
    7 # This configure script is free software; the Free Software Foundation
    8 # gives unlimited permission to copy, distribute and modify it.
    9 
   10 # Defaults:
   11 ac_help=
   12 ac_default_prefix=/usr/local
   13 # Any additions from configure.in:
   14 ac_help="$ac_help
   15   --enable-shared[=PKGS]  build shared libraries [default=yes]"
   16 ac_help="$ac_help
   17   --enable-static[=PKGS]  build static libraries [default=yes]"
   18 ac_help="$ac_help
   19   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
   20 ac_help="$ac_help
   21   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
   22 
   23 # Find the correct PATH separator.  Usually this is `:', but
   24 # DJGPP uses `;' like DOS.
   25 if test "X${PATH_SEPARATOR+set}" != Xset; then
   26   UNAME=${UNAME-`uname 2>/dev/null`}
   27   case X$UNAME in
   28     *-DOS) lt_cv_sys_path_separator=';' ;;
   29     *)     lt_cv_sys_path_separator=':' ;;
   30   esac
   31   PATH_SEPARATOR=$lt_cv_sys_path_separator
   32 fi
   33 
   34 
   35 # Check that we are running under the correct shell.
   36 SHELL=${CONFIG_SHELL-/bin/sh}
   37 
   38 case X$ECHO in
   39 X*--fallback-echo)
   40   # Remove one level of quotation (which was required for Make).
   41   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
   42   ;;
   43 esac
   44 
   45 echo=${ECHO-echo}
   46 if test "X$1" = X--no-reexec; then
   47   # Discard the --no-reexec flag, and continue.
   48   shift
   49 elif test "X$1" = X--fallback-echo; then
   50   # Avoid inline document here, it may be left over
   51   :
   52 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
   53   # Yippee, $echo works!
   54   :
   55 else
   56   # Restart under the correct shell.
   57   exec $SHELL "$0" --no-reexec ${1+"$@"}
   58 fi
   59 
   60 if test "X$1" = X--fallback-echo; then
   61   # used as fallback echo
   62   shift
   63   cat <<EOF
   64 
   65 EOF
   66   exit 0
   67 fi
   68 
   69 # The HP-UX ksh and POSIX shell print the target directory to stdout
   70 # if CDPATH is set.
   71 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
   72 
   73 if test -z "$ECHO"; then
   74 if test "X${echo_test_string+set}" != Xset; then
   75 # find a string as large as possible, as long as the shell can cope with it
   76   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
   77     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
   78     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
   79        echo_test_string="`eval $cmd`" &&
   80        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
   81     then
   82       break
   83     fi
   84   done
   85 fi
   86 
   87 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
   88    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
   89    test "X$echo_testing_string" = "X$echo_test_string"; then
   90   :
   91 else
   92   # The Solaris, AIX, and Digital Unix default echo programs unquote
   93   # backslashes.  This makes it impossible to quote backslashes using
   94   #   echo "$something" | sed 's/\\/\\\\/g'
   95   #
   96   # So, first we look for a working echo in the user's PATH.
   97 
   98   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   99   for dir in $PATH /usr/ucb; do
  100     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  101        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  102        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  103        test "X$echo_testing_string" = "X$echo_test_string"; then
  104       echo="$dir/echo"
  105       break
  106     fi
  107   done
  108   IFS="$save_ifs"
  109 
  110   if test "X$echo" = Xecho; then
  111     # We didn't find a better echo, so look for alternatives.
  112     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  113        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  114        test "X$echo_testing_string" = "X$echo_test_string"; then
  115       # This shell has a builtin print -r that does the trick.
  116       echo='print -r'
  117     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  118      test "X$CONFIG_SHELL" != X/bin/ksh; then
  119       # If we have ksh, try running configure again with it.
  120       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  121       export ORIGINAL_CONFIG_SHELL
  122       CONFIG_SHELL=/bin/ksh
  123       export CONFIG_SHELL
  124       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  125     else
  126       # Try using printf.
  127       echo='printf %s\n'
  128       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  129      echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  130      test "X$echo_testing_string" = "X$echo_test_string"; then
  131     # Cool, printf works
  132     :
  133       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  134        test "X$echo_testing_string" = 'X\t' &&
  135        echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  136        test "X$echo_testing_string" = "X$echo_test_string"; then
  137     CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  138     export CONFIG_SHELL
  139     SHELL="$CONFIG_SHELL"
  140     export SHELL
  141     echo="$CONFIG_SHELL $0 --fallback-echo"
  142       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  143        test "X$echo_testing_string" = 'X\t' &&
  144        echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  145        test "X$echo_testing_string" = "X$echo_test_string"; then
  146     echo="$CONFIG_SHELL $0 --fallback-echo"
  147       else
  148     # maybe with a smaller string...
  149     prev=:
  150 
  151     for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  152       if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  153       then
  154         break
  155       fi
  156       prev="$cmd"
  157     done
  158 
  159     if test "$prev" != 'sed 50q "$0"'; then
  160       echo_test_string=`eval $prev`
  161       export echo_test_string
  162       exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  163     else
  164       # Oops.  We lost completely, so just stick with echo.
  165       echo=echo
  166     fi
  167       fi
  168     fi
  169   fi
  170 fi
  171 fi
  172 
  173 # Copy echo and quote the copy suitably for passing to libtool from
  174 # the Makefile, instead of quoting the original, which is used later.
  175 ECHO=$echo
  176 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  177    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  178 fi
  179 
  180 
  181 ac_help="$ac_help
  182   --disable-libtool-lock  avoid locking (might break parallel builds)"
  183 ac_help="$ac_help
  184   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
  185 ac_help="$ac_help
  186   --with-openssl          Enable OpenSSL [default=no]"
  187 
  188 # Initialize some variables set by options.
  189 # The variables have the same names as the options, with
  190 # dashes changed to underlines.
  191 build=NONE
  192 cache_file=./config.cache
  193 exec_prefix=NONE
  194 host=NONE
  195 no_create=
  196 nonopt=NONE
  197 no_recursion=
  198 prefix=NONE
  199 program_prefix=NONE
  200 program_suffix=NONE
  201 program_transform_name=s,x,x,
  202 silent=
  203 site=
  204 srcdir=
  205 target=NONE
  206 verbose=
  207 x_includes=NONE
  208 x_libraries=NONE
  209 bindir='${exec_prefix}/bin'
  210 sbindir='${exec_prefix}/sbin'
  211 libexecdir='${exec_prefix}/libexec'
  212 datadir='${prefix}/share'
  213 sysconfdir='${prefix}/etc'
  214 sharedstatedir='${prefix}/com'
  215 localstatedir='${prefix}/var'
  216 libdir='${exec_prefix}/lib'
  217 includedir='${prefix}/include'
  218 oldincludedir='/usr/include'
  219 infodir='${prefix}/info'
  220 mandir='${prefix}/man'
  221 
  222 # Initialize some other variables.
  223 subdirs=
  224 MFLAGS= MAKEFLAGS=
  225 SHELL=${CONFIG_SHELL-/bin/sh}
  226 # Maximum number of lines to put in a shell here document.
  227 ac_max_here_lines=12
  228 
  229 ac_prev=
  230 for ac_option
  231 do
  232 
  233   # If the previous option needs an argument, assign it.
  234   if test -n "$ac_prev"; then
  235     eval "$ac_prev=\$ac_option"
  236     ac_prev=
  237     continue
  238   fi
  239 
  240   case "$ac_option" in
  241   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  242   *) ac_optarg= ;;
  243   esac
  244 
  245   # Accept the important Cygnus configure options, so we can diagnose typos.
  246 
  247   case "$ac_option" in
  248 
  249   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  250     ac_prev=bindir ;;
  251   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  252     bindir="$ac_optarg" ;;
  253 
  254   -build | --build | --buil | --bui | --bu)
  255     ac_prev=build ;;
  256   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  257     build="$ac_optarg" ;;
  258 
  259   -cache-file | --cache-file | --cache-fil | --cache-fi \
  260   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  261     ac_prev=cache_file ;;
  262   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  263   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  264     cache_file="$ac_optarg" ;;
  265 
  266   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  267     ac_prev=datadir ;;
  268   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  269   | --da=*)
  270     datadir="$ac_optarg" ;;
  271 
  272   -disable-* | --disable-*)
  273     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  274     # Reject names that are not valid shell variable names.
  275     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  276       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  277     fi
  278     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  279     eval "enable_${ac_feature}=no" ;;
  280 
  281   -enable-* | --enable-*)
  282     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  283     # Reject names that are not valid shell variable names.
  284     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  285       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  286     fi
  287     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  288     case "$ac_option" in
  289       *=*) ;;
  290       *) ac_optarg=yes ;;
  291     esac
  292     eval "enable_${ac_feature}='$ac_optarg'" ;;
  293 
  294   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  295   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  296   | --exec | --exe | --ex)
  297     ac_prev=exec_prefix ;;
  298   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  299   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  300   | --exec=* | --exe=* | --ex=*)
  301     exec_prefix="$ac_optarg" ;;
  302 
  303   -gas | --gas | --ga | --g)
  304     # Obsolete; use --with-gas.
  305     with_gas=yes ;;
  306 
  307   -help | --help | --hel | --he)
  308     # Omit some internal or obsolete options to make the list less imposing.
  309     # This message is too long to be a string in the A/UX 3.1 sh.
  310     cat << EOF
  311 Usage: configure [options] [host]
  312 Options: [defaults in brackets after descriptions]
  313 Configuration:
  314   --cache-file=FILE       cache test results in FILE
  315   --help                  print this message
  316   --no-create             do not create output files
  317   --quiet, --silent       do not print \`checking...' messages
  318   --version               print the version of autoconf that created configure
  319 Directory and file names:
  320   --prefix=PREFIX         install architecture-independent files in PREFIX
  321                           [$ac_default_prefix]
  322   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  323                           [same as prefix]
  324   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  325   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  326   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  327   --datadir=DIR           read-only architecture-independent data in DIR
  328                           [PREFIX/share]
  329   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  330   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  331                           [PREFIX/com]
  332   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  333   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  334   --includedir=DIR        C header files in DIR [PREFIX/include]
  335   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  336   --infodir=DIR           info documentation in DIR [PREFIX/info]
  337   --mandir=DIR            man documentation in DIR [PREFIX/man]
  338   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  339   --program-prefix=PREFIX prepend PREFIX to installed program names
  340   --program-suffix=SUFFIX append SUFFIX to installed program names
  341   --program-transform-name=PROGRAM
  342                           run sed PROGRAM on installed program names
  343 EOF
  344     cat << EOF
  345 Host type:
  346   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  347   --host=HOST             configure for HOST [guessed]
  348   --target=TARGET         configure for TARGET [TARGET=HOST]
  349 Features and packages:
  350   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  351   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  352   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  353   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  354   --x-includes=DIR        X include files are in DIR
  355   --x-libraries=DIR       X library files are in DIR
  356 EOF
  357     if test -n "$ac_help"; then
  358       echo "--enable and --with options recognized:$ac_help"
  359     fi
  360     exit 0 ;;
  361 
  362   -host | --host | --hos | --ho)
  363     ac_prev=host ;;
  364   -host=* | --host=* | --hos=* | --ho=*)
  365     host="$ac_optarg" ;;
  366 
  367   -includedir | --includedir | --includedi | --included | --include \
  368   | --includ | --inclu | --incl | --inc)
  369     ac_prev=includedir ;;
  370   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  371   | --includ=* | --inclu=* | --incl=* | --inc=*)
  372     includedir="$ac_optarg" ;;
  373 
  374   -infodir | --infodir | --infodi | --infod | --info | --inf)
  375     ac_prev=infodir ;;
  376   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  377     infodir="$ac_optarg" ;;
  378 
  379   -libdir | --libdir | --libdi | --libd)
  380     ac_prev=libdir ;;
  381   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  382     libdir="$ac_optarg" ;;
  383 
  384   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  385   | --libexe | --libex | --libe)
  386     ac_prev=libexecdir ;;
  387   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  388   | --libexe=* | --libex=* | --libe=*)
  389     libexecdir="$ac_optarg" ;;
  390 
  391   -localstatedir | --localstatedir | --localstatedi | --localstated \
  392   | --localstate | --localstat | --localsta | --localst \
  393   | --locals | --local | --loca | --loc | --lo)
  394     ac_prev=localstatedir ;;
  395   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  396   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  397   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  398     localstatedir="$ac_optarg" ;;
  399 
  400   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  401     ac_prev=mandir ;;
  402   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  403     mandir="$ac_optarg" ;;
  404 
  405   -nfp | --nfp | --nf)
  406     # Obsolete; use --without-fp.
  407     with_fp=no ;;
  408 
  409   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  410   | --no-cr | --no-c)
  411     no_create=yes ;;
  412 
  413   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  414   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  415     no_recursion=yes ;;
  416 
  417   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  418   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  419   | --oldin | --oldi | --old | --ol | --o)
  420     ac_prev=oldincludedir ;;
  421   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  422   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  423   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  424     oldincludedir="$ac_optarg" ;;
  425 
  426   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  427     ac_prev=prefix ;;
  428   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  429     prefix="$ac_optarg" ;;
  430 
  431   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  432   | --program-pre | --program-pr | --program-p)
  433     ac_prev=program_prefix ;;
  434   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  435   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  436     program_prefix="$ac_optarg" ;;
  437 
  438   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  439   | --program-suf | --program-su | --program-s)
  440     ac_prev=program_suffix ;;
  441   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  442   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  443     program_suffix="$ac_optarg" ;;
  444 
  445   -program-transform-name | --program-transform-name \
  446   | --program-transform-nam | --program-transform-na \
  447   | --program-transform-n | --program-transform- \
  448   | --program-transform | --program-transfor \
  449   | --program-transfo | --program-transf \
  450   | --program-trans | --program-tran \
  451   | --progr-tra | --program-tr | --program-t)
  452     ac_prev=program_transform_name ;;
  453   -program-transform-name=* | --program-transform-name=* \
  454   | --program-transform-nam=* | --program-transform-na=* \
  455   | --program-transform-n=* | --program-transform-=* \
  456   | --program-transform=* | --program-transfor=* \
  457   | --program-transfo=* | --program-transf=* \
  458   | --program-trans=* | --program-tran=* \
  459   | --progr-tra=* | --program-tr=* | --program-t=*)
  460     program_transform_name="$ac_optarg" ;;
  461 
  462   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  463   | -silent | --silent | --silen | --sile | --sil)
  464     silent=yes ;;
  465 
  466   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  467     ac_prev=sbindir ;;
  468   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  469   | --sbi=* | --sb=*)
  470     sbindir="$ac_optarg" ;;
  471 
  472   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  473   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  474   | --sharedst | --shareds | --shared | --share | --shar \
  475   | --sha | --sh)
  476     ac_prev=sharedstatedir ;;
  477   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  478   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  479   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  480   | --sha=* | --sh=*)
  481     sharedstatedir="$ac_optarg" ;;
  482 
  483   -site | --site | --sit)
  484     ac_prev=site ;;
  485   -site=* | --site=* | --sit=*)
  486     site="$ac_optarg" ;;
  487 
  488   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  489     ac_prev=srcdir ;;
  490   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  491     srcdir="$ac_optarg" ;;
  492 
  493   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  494   | --syscon | --sysco | --sysc | --sys | --sy)
  495     ac_prev=sysconfdir ;;
  496   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  497   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  498     sysconfdir="$ac_optarg" ;;
  499 
  500   -target | --target | --targe | --targ | --tar | --ta | --t)
  501     ac_prev=target ;;
  502   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  503     target="$ac_optarg" ;;
  504 
  505   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  506     verbose=yes ;;
  507 
  508   -version | --version | --versio | --versi | --vers)
  509     echo "configure generated by autoconf version 2.13"
  510     exit 0 ;;
  511 
  512   -with-* | --with-*)
  513     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  514     # Reject names that are not valid shell variable names.
  515     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  516       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  517     fi
  518     ac_package=`echo $ac_package| sed 's/-/_/g'`
  519     case "$ac_option" in
  520       *=*) ;;
  521       *) ac_optarg=yes ;;
  522     esac
  523     eval "with_${ac_package}='$ac_optarg'" ;;
  524 
  525   -without-* | --without-*)
  526     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  527     # Reject names that are not valid shell variable names.
  528     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  529       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  530     fi
  531     ac_package=`echo $ac_package| sed 's/-/_/g'`
  532     eval "with_${ac_package}=no" ;;
  533 
  534   --x)
  535     # Obsolete; use --with-x.
  536     with_x=yes ;;
  537 
  538   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  539   | --x-incl | --x-inc | --x-in | --x-i)
  540     ac_prev=x_includes ;;
  541   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  542   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  543     x_includes="$ac_optarg" ;;
  544 
  545   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  546   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  547     ac_prev=x_libraries ;;
  548   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  549   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  550     x_libraries="$ac_optarg" ;;
  551 
  552   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  553     ;;
  554 
  555   *)
  556     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  557       echo "configure: warning: $ac_option: invalid host type" 1>&2
  558     fi
  559     if test "x$nonopt" != xNONE; then
  560       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  561     fi
  562     nonopt="$ac_option"
  563     ;;
  564 
  565   esac
  566 done
  567 
  568 if test -n "$ac_prev"; then
  569   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  570 fi
  571 
  572 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  573 
  574 # File descriptor usage:
  575 # 0 standard input
  576 # 1 file creation
  577 # 2 errors and warnings
  578 # 3 some systems may open it to /dev/tty
  579 # 4 used on the Kubota Titan
  580 # 6 checking for... messages and results
  581 # 5 compiler messages saved in config.log
  582 if test "$silent" = yes; then
  583   exec 6>/dev/null
  584 else
  585   exec 6>&1
  586 fi
  587 exec 5>./config.log
  588 
  589 echo "\
  590 This file contains any messages produced by compilers while
  591 running configure, to aid debugging if configure makes a mistake.
  592 " 1>&5
  593 
  594 # Strip out --no-create and --no-recursion so they do not pile up.
  595 # Also quote any args containing shell metacharacters.
  596 ac_configure_args=
  597 for ac_arg
  598 do
  599   case "$ac_arg" in
  600   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  601   | --no-cr | --no-c) ;;
  602   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  603   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  604   *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  605   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  606   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  607   esac
  608 done
  609 
  610 # NLS nuisances.
  611 # Only set these to C if already set.  These must not be set unconditionally
  612 # because not all systems understand e.g. LANG=C (notably SCO).
  613 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  614 # Non-C LC_CTYPE values break the ctype check.
  615 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  616 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  617 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  618 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  619 
  620 # confdefs.h avoids OS command line length limits that DEFS can exceed.
  621 rm -rf conftest* confdefs.h
  622 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  623 echo > confdefs.h
  624 
  625 # A filename unique to this package, relative to the directory that
  626 # configure is in, which we can look for to find out if srcdir is correct.
  627 ac_unique_file=src/gcgi.c
  628 
  629 # Find the source files, if location was not specified.
  630 if test -z "$srcdir"; then
  631   ac_srcdir_defaulted=yes
  632   # Try the directory containing this script, then its parent.
  633   ac_prog=$0
  634   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  635   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  636   srcdir=$ac_confdir
  637   if test ! -r $srcdir/$ac_unique_file; then
  638     srcdir=..
  639   fi
  640 else
  641   ac_srcdir_defaulted=no
  642 fi
  643 if test ! -r $srcdir/$ac_unique_file; then
  644   if test "$ac_srcdir_defaulted" = yes; then
  645     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  646   else
  647     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  648   fi
  649 fi
  650 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  651 
  652 # Prefer explicitly selected file to automatically selected ones.
  653 if test -z "$CONFIG_SITE"; then
  654   if test "x$prefix" != xNONE; then
  655     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  656   else
  657     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  658   fi
  659 fi
  660 for ac_site_file in $CONFIG_SITE; do
  661   if test -r "$ac_site_file"; then
  662     echo "loading site script $ac_site_file"
  663     . "$ac_site_file"
  664   fi
  665 done
  666 
  667 if test -r "$cache_file"; then
  668   echo "loading cache $cache_file"
  669   . $cache_file
  670 else
  671   echo "creating cache $cache_file"
  672   > $cache_file
  673 fi
  674 
  675 ac_ext=c
  676 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  677 ac_cpp='$CPP $CPPFLAGS'
  678 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  679 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  680 cross_compiling=$ac_cv_prog_cc_cross
  681 
  682 ac_exeext=
  683 ac_objext=o
  684 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  685   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  686   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  687     ac_n= ac_c='
  688 ' ac_t='    '
  689   else
  690     ac_n=-n ac_c= ac_t=
  691   fi
  692 else
  693   ac_n= ac_c='\c' ac_t=
  694 fi
  695 
  696 
  697 ac_aux_dir=
  698 for ac_dir in config $srcdir/config; do
  699   if test -f $ac_dir/install-sh; then
  700     ac_aux_dir=$ac_dir
  701     ac_install_sh="$ac_aux_dir/install-sh -c"
  702     break
  703   elif test -f $ac_dir/install.sh; then
  704     ac_aux_dir=$ac_dir
  705     ac_install_sh="$ac_aux_dir/install.sh -c"
  706     break
  707   fi
  708 done
  709 if test -z "$ac_aux_dir"; then
  710   { echo "configure: error: can not find install-sh or install.sh in config $srcdir/config" 1>&2; exit 1; }
  711 fi
  712 ac_config_guess=$ac_aux_dir/config.guess
  713 ac_config_sub=$ac_aux_dir/config.sub
  714 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  715 
  716 
  717 
  718 
  719 
  720 GCGI_MAJOR=0
  721 GCGI_MINOR=9
  722 GCGI_PATCH=5
  723 GCGI_VERSION="$GCGI_MAJOR.$GCGI_MINOR.$GCGI_PATCH"
  724 VERSION=$GCGI_VERSION
  725 
  726 # Find a good install program.  We prefer a C program (faster),
  727 # so one script is as good as another.  But avoid the broken or
  728 # incompatible versions:
  729 # SysV /etc/install, /usr/sbin/install
  730 # SunOS /usr/etc/install
  731 # IRIX /sbin/install
  732 # AIX /bin/install
  733 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  734 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  735 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  736 # ./install, which can be erroneously created by make from ./install.sh.
  737 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  738 echo "configure:739: checking for a BSD compatible install" >&5
  739 if test -z "$INSTALL"; then
  740 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  741   echo $ac_n "(cached) $ac_c" 1>&6
  742 else
  743     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS=":"
  744   for ac_dir in $PATH; do
  745     # Account for people who put trailing slashes in PATH elements.
  746     case "$ac_dir/" in
  747     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  748     *)
  749       # OSF1 and SCO ODT 3.0 have their own names for install.
  750       # Don't use installbsd from OSF since it installs stuff as root
  751       # by default.
  752       for ac_prog in ginstall scoinst install; do
  753         if test -f $ac_dir/$ac_prog; then
  754       if test $ac_prog = install &&
  755             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  756         # AIX install.  It has an incompatible calling convention.
  757         :
  758       else
  759         ac_cv_path_install="$ac_dir/$ac_prog -c"
  760         break 2
  761       fi
  762     fi
  763       done
  764       ;;
  765     esac
  766   done
  767   IFS="$ac_save_IFS"
  768 
  769 fi
  770   if test "${ac_cv_path_install+set}" = set; then
  771     INSTALL="$ac_cv_path_install"
  772   else
  773     # As a last resort, use the slow shell script.  We don't cache a
  774     # path for INSTALL within a source directory, because that will
  775     # break other packages using the cache if that directory is
  776     # removed, or if the path is relative.
  777     INSTALL="$ac_install_sh"
  778   fi
  779 fi
  780 echo "$ac_t""$INSTALL" 1>&6
  781 
  782 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  783 # It thinks the first close brace ends the variable substitution.
  784 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  785 
  786 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  787 
  788 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  789 
  790 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  791 echo "configure:792: checking whether build environment is sane" >&5
  792 # Just in case
  793 sleep 1
  794 echo timestamp > conftestfile
  795 # Do `set' in a subshell so we don't clobber the current shell's
  796 # arguments.  Must try -L first in case configure is actually a
  797 # symlink; some systems play weird games with the mod time of symlinks
  798 # (eg FreeBSD returns the mod time of the symlink's containing
  799 # directory).
  800 if (
  801    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  802    if test "$*" = "X"; then
  803       # -L didn't work.
  804       set X `ls -t $srcdir/configure conftestfile`
  805    fi
  806    if test "$*" != "X $srcdir/configure conftestfile" \
  807       && test "$*" != "X conftestfile $srcdir/configure"; then
  808 
  809       # If neither matched, then we have a broken ls.  This can happen
  810       # if, for instance, CONFIG_SHELL is bash and it inherits a
  811       # broken ls alias from the environment.  This has actually
  812       # happened.  Such a system could not be considered "sane".
  813       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
  814 alias in your environment" 1>&2; exit 1; }
  815    fi
  816 
  817    test "$2" = conftestfile
  818    )
  819 then
  820    # Ok.
  821    :
  822 else
  823    { echo "configure: error: newly created file is older than distributed files!
  824 Check your system clock" 1>&2; exit 1; }
  825 fi
  826 rm -f conftest*
  827 echo "$ac_t""yes" 1>&6
  828 if test "$program_transform_name" = s,x,x,; then
  829   program_transform_name=
  830 else
  831   # Double any \ or $.  echo might interpret backslashes.
  832   cat <<\EOF_SED > conftestsed
  833 s,\\,\\\\,g; s,\$,$$,g
  834 EOF_SED
  835   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  836   rm -f conftestsed
  837 fi
  838 test "$program_prefix" != NONE &&
  839   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  840 # Use a double $ so make ignores it.
  841 test "$program_suffix" != NONE &&
  842   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  843 
  844 # sed with no file args requires a program.
  845 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  846 
  847 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  848 echo "configure:849: checking whether ${MAKE-make} sets \${MAKE}" >&5
  849 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  850 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  851   echo $ac_n "(cached) $ac_c" 1>&6
  852 else
  853   cat > conftestmake <<\EOF
  854 all:
  855     @echo 'ac_maketemp="${MAKE}"'
  856 EOF
  857 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  858 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  859 if test -n "$ac_maketemp"; then
  860   eval ac_cv_prog_make_${ac_make}_set=yes
  861 else
  862   eval ac_cv_prog_make_${ac_make}_set=no
  863 fi
  864 rm -f conftestmake
  865 fi
  866 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  867   echo "$ac_t""yes" 1>&6
  868   SET_MAKE=
  869 else
  870   echo "$ac_t""no" 1>&6
  871   SET_MAKE="MAKE=${MAKE-make}"
  872 fi
  873 
  874 
  875 PACKAGE=libgcgi.a
  876 
  877 VERSION=$VERSION
  878 
  879 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  880   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  881 fi
  882 cat >> confdefs.h <<EOF
  883 #define PACKAGE "$PACKAGE"
  884 EOF
  885 
  886 cat >> confdefs.h <<EOF
  887 #define VERSION "$VERSION"
  888 EOF
  889 
  890 
  891 
  892 missing_dir=`cd $ac_aux_dir && pwd`
  893 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
  894 echo "configure:895: checking for working aclocal" >&5
  895 # Run test in a subshell; some versions of sh will print an error if
  896 # an executable is not found, even if stderr is redirected.
  897 # Redirect stdin to placate older versions of autoconf.  Sigh.
  898 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  899    ACLOCAL=aclocal
  900    echo "$ac_t""found" 1>&6
  901 else
  902    ACLOCAL="$missing_dir/missing aclocal"
  903    echo "$ac_t""missing" 1>&6
  904 fi
  905 
  906 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  907 echo "configure:908: checking for working autoconf" >&5
  908 # Run test in a subshell; some versions of sh will print an error if
  909 # an executable is not found, even if stderr is redirected.
  910 # Redirect stdin to placate older versions of autoconf.  Sigh.
  911 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  912    AUTOCONF=autoconf
  913    echo "$ac_t""found" 1>&6
  914 else
  915    AUTOCONF="$missing_dir/missing autoconf"
  916    echo "$ac_t""missing" 1>&6
  917 fi
  918 
  919 echo $ac_n "checking for working automake""... $ac_c" 1>&6
  920 echo "configure:921: checking for working automake" >&5
  921 # Run test in a subshell; some versions of sh will print an error if
  922 # an executable is not found, even if stderr is redirected.
  923 # Redirect stdin to placate older versions of autoconf.  Sigh.
  924 if (automake --version) < /dev/null > /dev/null 2>&1; then
  925    AUTOMAKE=automake
  926    echo "$ac_t""found" 1>&6
  927 else
  928    AUTOMAKE="$missing_dir/missing automake"
  929    echo "$ac_t""missing" 1>&6
  930 fi
  931 
  932 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  933 echo "configure:934: checking for working autoheader" >&5
  934 # Run test in a subshell; some versions of sh will print an error if
  935 # an executable is not found, even if stderr is redirected.
  936 # Redirect stdin to placate older versions of autoconf.  Sigh.
  937 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  938    AUTOHEADER=autoheader
  939    echo "$ac_t""found" 1>&6
  940 else
  941    AUTOHEADER="$missing_dir/missing autoheader"
  942    echo "$ac_t""missing" 1>&6
  943 fi
  944 
  945 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  946 echo "configure:947: checking for working makeinfo" >&5
  947 # Run test in a subshell; some versions of sh will print an error if
  948 # an executable is not found, even if stderr is redirected.
  949 # Redirect stdin to placate older versions of autoconf.  Sigh.
  950 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  951    MAKEINFO=makeinfo
  952    echo "$ac_t""found" 1>&6
  953 else
  954    MAKEINFO="$missing_dir/missing makeinfo"
  955    echo "$ac_t""missing" 1>&6
  956 fi
  957 
  958 
  959 
  960 # Checks for programs.
  961 # Extract the first word of "gcc", so it can be a program name with args.
  962 set dummy gcc; ac_word=$2
  963 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  964 echo "configure:965: checking for $ac_word" >&5
  965 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  966   echo $ac_n "(cached) $ac_c" 1>&6
  967 else
  968   if test -n "$CC"; then
  969   ac_cv_prog_CC="$CC" # Let the user override the test.
  970 else
  971   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  972   ac_dummy="$PATH"
  973   for ac_dir in $ac_dummy; do
  974     test -z "$ac_dir" && ac_dir=.
  975     if test -f $ac_dir/$ac_word; then
  976       ac_cv_prog_CC="gcc"
  977       break
  978     fi
  979   done
  980   IFS="$ac_save_ifs"
  981 fi
  982 fi
  983 CC="$ac_cv_prog_CC"
  984 if test -n "$CC"; then
  985   echo "$ac_t""$CC" 1>&6
  986 else
  987   echo "$ac_t""no" 1>&6
  988 fi
  989 
  990 if test -z "$CC"; then
  991   # Extract the first word of "cc", so it can be a program name with args.
  992 set dummy cc; ac_word=$2
  993 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  994 echo "configure:995: checking for $ac_word" >&5
  995 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  996   echo $ac_n "(cached) $ac_c" 1>&6
  997 else
  998   if test -n "$CC"; then
  999   ac_cv_prog_CC="$CC" # Let the user override the test.
 1000 else
 1001   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 1002   ac_prog_rejected=no
 1003   ac_dummy="$PATH"
 1004   for ac_dir in $ac_dummy; do
 1005     test -z "$ac_dir" && ac_dir=.
 1006     if test -f $ac_dir/$ac_word; then
 1007       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
 1008         ac_prog_rejected=yes
 1009     continue
 1010       fi
 1011       ac_cv_prog_CC="cc"
 1012       break
 1013     fi
 1014   done
 1015   IFS="$ac_save_ifs"
 1016 if test $ac_prog_rejected = yes; then
 1017   # We found a bogon in the path, so make sure we never use it.
 1018   set dummy $ac_cv_prog_CC
 1019   shift
 1020   if test $# -gt 0; then
 1021     # We chose a different compiler from the bogus one.
 1022     # However, it has the same basename, so the bogon will be chosen
 1023     # first if we set CC to just the basename; use the full file name.
 1024     shift
 1025     set dummy "$ac_dir/$ac_word" "$@"
 1026     shift
 1027     ac_cv_prog_CC="$@"
 1028   fi
 1029 fi
 1030 fi
 1031 fi
 1032 CC="$ac_cv_prog_CC"
 1033 if test -n "$CC"; then
 1034   echo "$ac_t""$CC" 1>&6
 1035 else
 1036   echo "$ac_t""no" 1>&6
 1037 fi
 1038 
 1039   if test -z "$CC"; then
 1040     case "`uname -s`" in
 1041     *win32* | *WIN32*)
 1042       # Extract the first word of "cl", so it can be a program name with args.
 1043 set dummy cl; ac_word=$2
 1044 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 1045 echo "configure:1046: checking for $ac_word" >&5
 1046 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 1047   echo $ac_n "(cached) $ac_c" 1>&6
 1048 else
 1049   if test -n "$CC"; then
 1050   ac_cv_prog_CC="$CC" # Let the user override the test.
 1051 else
 1052   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 1053   ac_dummy="$PATH"
 1054   for ac_dir in $ac_dummy; do
 1055     test -z "$ac_dir" && ac_dir=.
 1056     if test -f $ac_dir/$ac_word; then
 1057       ac_cv_prog_CC="cl"
 1058       break
 1059     fi
 1060   done
 1061   IFS="$ac_save_ifs"
 1062 fi
 1063 fi
 1064 CC="$ac_cv_prog_CC"
 1065 if test -n "$CC"; then
 1066   echo "$ac_t""$CC" 1>&6
 1067 else
 1068   echo "$ac_t""no" 1>&6
 1069 fi
 1070  ;;
 1071     esac
 1072   fi
 1073   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
 1074 fi
 1075 
 1076 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
 1077 echo "configure:1078: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
 1078 
 1079 ac_ext=c
 1080 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 1081 ac_cpp='$CPP $CPPFLAGS'
 1082 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 1083 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 1084 cross_compiling=$ac_cv_prog_cc_cross
 1085 
 1086 cat > conftest.$ac_ext << EOF
 1087 
 1088 #line 1089 "configure"
 1089 #include "confdefs.h"
 1090 
 1091 main(){return(0);}
 1092 EOF
 1093 if { (eval echo configure:1094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 1094   ac_cv_prog_cc_works=yes
 1095   # If we can't run a trivial program, we are probably using a cross compiler.
 1096   if (./conftest; exit) 2>/dev/null; then
 1097     ac_cv_prog_cc_cross=no
 1098   else
 1099     ac_cv_prog_cc_cross=yes
 1100   fi
 1101 else
 1102   echo "configure: failed program was:" >&5
 1103   cat conftest.$ac_ext >&5
 1104   ac_cv_prog_cc_works=no
 1105 fi
 1106 rm -fr conftest*
 1107 ac_ext=c
 1108 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 1109 ac_cpp='$CPP $CPPFLAGS'
 1110 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 1111 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 1112 cross_compiling=$ac_cv_prog_cc_cross
 1113 
 1114 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
 1115 if test $ac_cv_prog_cc_works = no; then
 1116   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
 1117 fi
 1118 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
 1119 echo "configure:1120: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 1120 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
 1121 cross_compiling=$ac_cv_prog_cc_cross
 1122 
 1123 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
 1124 echo "configure:1125: checking whether we are using GNU C" >&5
 1125 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
 1126   echo $ac_n "(cached) $ac_c" 1>&6
 1127 else
 1128   cat > conftest.c <<EOF
 1129 #ifdef __GNUC__
 1130   yes;
 1131 #endif
 1132 EOF
 1133 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 1134   ac_cv_prog_gcc=yes
 1135 else
 1136   ac_cv_prog_gcc=no
 1137 fi
 1138 fi
 1139 
 1140 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
 1141 
 1142 if test $ac_cv_prog_gcc = yes; then
 1143   GCC=yes
 1144 else
 1145   GCC=
 1146 fi
 1147 
 1148 ac_test_CFLAGS="${CFLAGS+set}"
 1149 ac_save_CFLAGS="$CFLAGS"
 1150 CFLAGS=
 1151 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
 1152 echo "configure:1153: checking whether ${CC-cc} accepts -g" >&5
 1153 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
 1154   echo $ac_n "(cached) $ac_c" 1>&6
 1155 else
 1156   echo 'void f(){}' > conftest.c
 1157 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 1158   ac_cv_prog_cc_g=yes
 1159 else
 1160   ac_cv_prog_cc_g=no
 1161 fi
 1162 rm -f conftest*
 1163 
 1164 fi
 1165 
 1166 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 1167 if test "$ac_test_CFLAGS" = set; then
 1168   CFLAGS="$ac_save_CFLAGS"
 1169 elif test $ac_cv_prog_cc_g = yes; then
 1170   if test "$GCC" = yes; then
 1171     CFLAGS="-g -O2"
 1172   else
 1173     CFLAGS="-g"
 1174   fi
 1175 else
 1176   if test "$GCC" = yes; then
 1177     CFLAGS="-O2"
 1178   else
 1179     CFLAGS=
 1180   fi
 1181 fi
 1182 
 1183 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
 1184 echo "configure:1185: checking how to run the C preprocessor" >&5
 1185 # On Suns, sometimes $CPP names a directory.
 1186 if test -n "$CPP" && test -d "$CPP"; then
 1187   CPP=
 1188 fi
 1189 if test -z "$CPP"; then
 1190 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
 1191   echo $ac_n "(cached) $ac_c" 1>&6
 1192 else
 1193     # This must be in double quotes, not single quotes, because CPP may get
 1194   # substituted into the Makefile and "${CC-cc}" will confuse make.
 1195   CPP="${CC-cc} -E"
 1196   # On the NeXT, cc -E runs the code through the compiler's parser,
 1197   # not just through cpp.
 1198   cat > conftest.$ac_ext <<EOF
 1199 #line 1200 "configure"
 1200 #include "confdefs.h"
 1201 #include <assert.h>
 1202 Syntax Error
 1203 EOF
 1204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 1205 { (eval echo configure:1206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 1206 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 1207 if test -z "$ac_err"; then
 1208   :
 1209 else
 1210   echo "$ac_err" >&5
 1211   echo "configure: failed program was:" >&5
 1212   cat conftest.$ac_ext >&5
 1213   rm -rf conftest*
 1214   CPP="${CC-cc} -E -traditional-cpp"
 1215   cat > conftest.$ac_ext <<EOF
 1216 #line 1217 "configure"
 1217 #include "confdefs.h"
 1218 #include <assert.h>
 1219 Syntax Error
 1220 EOF
 1221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 1222 { (eval echo configure:1223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 1223 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 1224 if test -z "$ac_err"; then
 1225   :
 1226 else
 1227   echo "$ac_err" >&5
 1228   echo "configure: failed program was:" >&5
 1229   cat conftest.$ac_ext >&5
 1230   rm -rf conftest*
 1231   CPP="${CC-cc} -nologo -E"
 1232   cat > conftest.$ac_ext <<EOF
 1233 #line 1234 "configure"
 1234 #include "confdefs.h"
 1235 #include <assert.h>
 1236 Syntax Error
 1237 EOF
 1238 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 1239 { (eval echo configure:1240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 1240 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 1241 if test -z "$ac_err"; then
 1242   :
 1243 else
 1244   echo "$ac_err" >&5
 1245   echo "configure: failed program was:" >&5
 1246   cat conftest.$ac_ext >&5
 1247   rm -rf conftest*
 1248   CPP=/lib/cpp
 1249 fi
 1250 rm -f conftest*
 1251 fi
 1252 rm -f conftest*
 1253 fi
 1254 rm -f conftest*
 1255   ac_cv_prog_CPP="$CPP"
 1256 fi
 1257   CPP="$ac_cv_prog_CPP"
 1258 else
 1259   ac_cv_prog_CPP="$CPP"
 1260 fi
 1261 echo "$ac_t""$CPP" 1>&6
 1262 
 1263 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
 1264 echo "configure:1265: checking for ANSI C header files" >&5
 1265 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
 1266   echo $ac_n "(cached) $ac_c" 1>&6
 1267 else
 1268   cat > conftest.$ac_ext <<EOF
 1269 #line 1270 "configure"
 1270 #include "confdefs.h"
 1271 #include <stdlib.h>
 1272 #include <stdarg.h>
 1273 #include <string.h>
 1274 #include <float.h>
 1275 EOF
 1276 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 1277 { (eval echo configure:1278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 1278 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 1279 if test -z "$ac_err"; then
 1280   rm -rf conftest*
 1281   ac_cv_header_stdc=yes
 1282 else
 1283   echo "$ac_err" >&5
 1284   echo "configure: failed program was:" >&5
 1285   cat conftest.$ac_ext >&5
 1286   rm -rf conftest*
 1287   ac_cv_header_stdc=no
 1288 fi
 1289 rm -f conftest*
 1290 
 1291 if test $ac_cv_header_stdc = yes; then
 1292   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 1293 cat > conftest.$ac_ext <<EOF
 1294 #line 1295 "configure"
 1295 #include "confdefs.h"
 1296 #include <string.h>
 1297 EOF
 1298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 1299   egrep "memchr" >/dev/null 2>&1; then
 1300   :
 1301 else
 1302   rm -rf conftest*
 1303   ac_cv_header_stdc=no
 1304 fi
 1305 rm -f conftest*
 1306 
 1307 fi
 1308 
 1309 if test $ac_cv_header_stdc = yes; then
 1310   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 1311 cat > conftest.$ac_ext <<EOF
 1312 #line 1313 "configure"
 1313 #include "confdefs.h"
 1314 #include <stdlib.h>
 1315 EOF
 1316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 1317   egrep "free" >/dev/null 2>&1; then
 1318   :
 1319 else
 1320   rm -rf conftest*
 1321   ac_cv_header_stdc=no
 1322 fi
 1323 rm -f conftest*
 1324 
 1325 fi
 1326 
 1327 if test $ac_cv_header_stdc = yes; then
 1328   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 1329 if test "$cross_compiling" = yes; then
 1330   :
 1331 else
 1332   cat > conftest.$ac_ext <<EOF
 1333 #line 1334 "configure"
 1334 #include "confdefs.h"
 1335 #include <ctype.h>
 1336 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 1337 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 1338 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 1339 int main () { int i; for (i = 0; i < 256; i++)
 1340 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
 1341 exit (0); }
 1342 
 1343 EOF
 1344 if { (eval echo configure:1345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 1345 then
 1346   :
 1347 else
 1348   echo "configure: failed program was:" >&5
 1349   cat conftest.$ac_ext >&5
 1350   rm -fr conftest*
 1351   ac_cv_header_stdc=no
 1352 fi
 1353 rm -fr conftest*
 1354 fi
 1355 
 1356 fi
 1357 fi
 1358 
 1359 echo "$ac_t""$ac_cv_header_stdc" 1>&6
 1360 if test $ac_cv_header_stdc = yes; then
 1361   cat >> confdefs.h <<\EOF
 1362 #define STDC_HEADERS 1
 1363 EOF
 1364 
 1365 fi
 1366 
 1367 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
 1368 echo "configure:1369: checking whether ${MAKE-make} sets \${MAKE}" >&5
 1369 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
 1370 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
 1371   echo $ac_n "(cached) $ac_c" 1>&6
 1372 else
 1373   cat > conftestmake <<\EOF
 1374 all:
 1375     @echo 'ac_maketemp="${MAKE}"'
 1376 EOF
 1377 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 1378 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
 1379 if test -n "$ac_maketemp"; then
 1380   eval ac_cv_prog_make_${ac_make}_set=yes
 1381 else
 1382   eval ac_cv_prog_make_${ac_make}_set=no
 1383 fi
 1384 rm -f conftestmake
 1385 fi
 1386 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 1387   echo "$ac_t""yes" 1>&6
 1388   SET_MAKE=
 1389 else
 1390   echo "$ac_t""no" 1>&6
 1391   SET_MAKE="MAKE=${MAKE-make}"
 1392 fi
 1393 
 1394 # Find the correct PATH separator.  Usually this is `:', but
 1395 # DJGPP uses `;' like DOS.
 1396 if test "X${PATH_SEPARATOR+set}" != Xset; then
 1397   UNAME=${UNAME-`uname 2>/dev/null`}
 1398   case X$UNAME in
 1399     *-DOS) lt_cv_sys_path_separator=';' ;;
 1400     *)     lt_cv_sys_path_separator=':' ;;
 1401   esac
 1402   PATH_SEPARATOR=$lt_cv_sys_path_separator
 1403 fi
 1404 
 1405 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
 1406 echo "configure:1407: checking for Cygwin environment" >&5
 1407 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
 1408   echo $ac_n "(cached) $ac_c" 1>&6
 1409 else
 1410   cat > conftest.$ac_ext <<EOF
 1411 #line 1412 "configure"
 1412 #include "confdefs.h"
 1413 
 1414 int main() {
 1415 
 1416 #ifndef __CYGWIN__
 1417 #define __CYGWIN__ __CYGWIN32__
 1418 #endif
 1419 return __CYGWIN__;
 1420 ; return 0; }
 1421 EOF
 1422 if { (eval echo configure:1423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 1423   rm -rf conftest*
 1424   ac_cv_cygwin=yes
 1425 else
 1426   echo "configure: failed program was:" >&5
 1427   cat conftest.$ac_ext >&5
 1428   rm -rf conftest*
 1429   ac_cv_cygwin=no
 1430 fi
 1431 rm -f conftest*
 1432 rm -f conftest*
 1433 fi
 1434 
 1435 echo "$ac_t""$ac_cv_cygwin" 1>&6
 1436 CYGWIN=
 1437 test "$ac_cv_cygwin" = yes && CYGWIN=yes
 1438 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
 1439 echo "configure:1440: checking for mingw32 environment" >&5
 1440 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
 1441   echo $ac_n "(cached) $ac_c" 1>&6
 1442 else
 1443   cat > conftest.$ac_ext <<EOF
 1444 #line 1445 "configure"
 1445 #include "confdefs.h"
 1446 
 1447 int main() {
 1448 return __MINGW32__;
 1449 ; return 0; }
 1450 EOF
 1451 if { (eval echo configure:1452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 1452   rm -rf conftest*
 1453   ac_cv_mingw32=yes
 1454 else
 1455   echo "configure: failed program was:" >&5
 1456   cat conftest.$ac_ext >&5
 1457   rm -rf conftest*
 1458   ac_cv_mingw32=no
 1459 fi
 1460 rm -f conftest*
 1461 rm -f conftest*
 1462 fi
 1463 
 1464 echo "$ac_t""$ac_cv_mingw32" 1>&6
 1465 MINGW32=
 1466 test "$ac_cv_mingw32" = yes && MINGW32=yes
 1467 # Check whether --enable-shared or --disable-shared was given.
 1468 if test "${enable_shared+set}" = set; then
 1469   enableval="$enable_shared"
 1470   p=${PACKAGE-default}
 1471 case $enableval in
 1472 yes) enable_shared=yes ;;
 1473 no) enable_shared=no ;;
 1474 *)
 1475   enable_shared=no
 1476   # Look at the argument we got.  We use all the common list separators.
 1477   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 1478   for pkg in $enableval; do
 1479     if test "X$pkg" = "X$p"; then
 1480       enable_shared=yes
 1481     fi
 1482   done
 1483   IFS="$ac_save_ifs"
 1484   ;;
 1485 esac
 1486 else
 1487   enable_shared=yes
 1488 fi
 1489 
 1490 # Check whether --enable-static or --disable-static was given.
 1491 if test "${enable_static+set}" = set; then
 1492   enableval="$enable_static"
 1493   p=${PACKAGE-default}
 1494 case $enableval in
 1495 yes) enable_static=yes ;;
 1496 no) enable_static=no ;;
 1497 *)
 1498   enable_static=no
 1499   # Look at the argument we got.  We use all the common list separators.
 1500   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 1501   for pkg in $enableval; do
 1502     if test "X$pkg" = "X$p"; then
 1503       enable_static=yes
 1504     fi
 1505   done
 1506   IFS="$ac_save_ifs"
 1507   ;;
 1508 esac
 1509 else
 1510   enable_static=yes
 1511 fi
 1512 
 1513 # Check whether --enable-fast-install or --disable-fast-install was given.
 1514 if test "${enable_fast_install+set}" = set; then
 1515   enableval="$enable_fast_install"
 1516   p=${PACKAGE-default}
 1517 case $enableval in
 1518 yes) enable_fast_install=yes ;;
 1519 no) enable_fast_install=no ;;
 1520 *)
 1521   enable_fast_install=no
 1522   # Look at the argument we got.  We use all the common list separators.
 1523   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 1524   for pkg in $enableval; do
 1525     if test "X$pkg" = "X$p"; then
 1526       enable_fast_install=yes
 1527     fi
 1528   done
 1529   IFS="$ac_save_ifs"
 1530   ;;
 1531 esac
 1532 else
 1533   enable_fast_install=yes
 1534 fi
 1535 
 1536 
 1537 # Make sure we can run config.sub.
 1538 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
 1539 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
 1540 fi
 1541 
 1542 echo $ac_n "checking host system type""... $ac_c" 1>&6
 1543 echo "configure:1544: checking host system type" >&5
 1544 
 1545 host_alias=$host
 1546 case "$host_alias" in
 1547 NONE)
 1548   case $nonopt in
 1549   NONE)
 1550     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
 1551     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
 1552     fi ;;
 1553   *) host_alias=$nonopt ;;
 1554   esac ;;
 1555 esac
 1556 
 1557 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
 1558 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 1559 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 1560 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 1561 echo "$ac_t""$host" 1>&6
 1562 
 1563 echo $ac_n "checking build system type""... $ac_c" 1>&6
 1564 echo "configure:1565: checking build system type" >&5
 1565 
 1566 build_alias=$build
 1567 case "$build_alias" in
 1568 NONE)
 1569   case $nonopt in
 1570   NONE) build_alias=$host_alias ;;
 1571   *) build_alias=$nonopt ;;
 1572   esac ;;
 1573 esac
 1574 
 1575 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
 1576 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 1577 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 1578 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 1579 echo "$ac_t""$build" 1>&6
 1580 
 1581 # Check whether --with-gnu-ld or --without-gnu-ld was given.
 1582 if test "${with_gnu_ld+set}" = set; then
 1583   withval="$with_gnu_ld"
 1584   test "$withval" = no || with_gnu_ld=yes
 1585 else
 1586   with_gnu_ld=no
 1587 fi
 1588 
 1589 ac_prog=ld
 1590 if test "$GCC" = yes; then
 1591   # Check if gcc -print-prog-name=ld gives a path.
 1592   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
 1593 echo "configure:1594: checking for ld used by GCC" >&5
 1594   case $host in
 1595   *-*-mingw*)
 1596     # gcc leaves a trailing carriage return which upsets mingw
 1597     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 1598   *)
 1599     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 1600   esac
 1601   case $ac_prog in
 1602     # Accept absolute paths.
 1603     [\\/]* | [A-Za-z]:[\\/]*)
 1604       re_direlt='/[^/][^/]*/\.\./'
 1605       # Canonicalize the path of ld
 1606       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 1607       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 1608     ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 1609       done
 1610       test -z "$LD" && LD="$ac_prog"
 1611       ;;
 1612   "")
 1613     # If it fails, then pretend we aren't using GCC.
 1614     ac_prog=ld
 1615     ;;
 1616   *)
 1617     # If it is relative, then search for the first ld in PATH.
 1618     with_gnu_ld=unknown
 1619     ;;
 1620   esac
 1621 elif test "$with_gnu_ld" = yes; then
 1622   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
 1623 echo "configure:1624: checking for GNU ld" >&5
 1624 else
 1625   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
 1626 echo "configure:1627: checking for non-GNU ld" >&5
 1627 fi
 1628 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
 1629   echo $ac_n "(cached) $ac_c" 1>&6
 1630 else
 1631   if test -z "$LD"; then
 1632   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 1633   for ac_dir in $PATH; do
 1634     test -z "$ac_dir" && ac_dir=.
 1635     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 1636       lt_cv_path_LD="$ac_dir/$ac_prog"
 1637       # Check to see if the program is GNU ld.  I'd rather use --version,
 1638       # but apparently some GNU ld's only accept -v.
 1639       # Break only if it was the GNU/non-GNU ld that we prefer.
 1640       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
 1641     test "$with_gnu_ld" != no && break
 1642       else
 1643     test "$with_gnu_ld" != yes && break
 1644       fi
 1645     fi
 1646   done
 1647   IFS="$ac_save_ifs"
 1648 else
 1649   lt_cv_path_LD="$LD" # Let the user override the test with a path.
 1650 fi
 1651 fi
 1652 
 1653 LD="$lt_cv_path_LD"
 1654 if test -n "$LD"; then
 1655   echo "$ac_t""$LD" 1>&6
 1656 else
 1657   echo "$ac_t""no" 1>&6
 1658 fi
 1659 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
 1660 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
 1661 echo "configure:1662: checking if the linker ($LD) is GNU ld" >&5
 1662 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
 1663   echo $ac_n "(cached) $ac_c" 1>&6
 1664 else
 1665   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 1666 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
 1667   lt_cv_prog_gnu_ld=yes
 1668 else
 1669   lt_cv_prog_gnu_ld=no
 1670 fi
 1671 fi
 1672 
 1673 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
 1674 with_gnu_ld=$lt_cv_prog_gnu_ld
 1675 
 1676 
 1677 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
 1678 echo "configure:1679: checking for $LD option to reload object files" >&5
 1679 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
 1680   echo $ac_n "(cached) $ac_c" 1>&6
 1681 else
 1682   lt_cv_ld_reload_flag='-r'
 1683 fi
 1684 
 1685 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
 1686 reload_flag=$lt_cv_ld_reload_flag
 1687 test -n "$reload_flag" && reload_flag=" $reload_flag"
 1688 
 1689 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
 1690 echo "configure:1691: checking for BSD-compatible nm" >&5
 1691 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
 1692   echo $ac_n "(cached) $ac_c" 1>&6
 1693 else
 1694   if test -n "$NM"; then
 1695   # Let the user override the test.
 1696   lt_cv_path_NM="$NM"
 1697 else
 1698   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 1699   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 1700     test -z "$ac_dir" && ac_dir=.
 1701     tmp_nm=$ac_dir/${ac_tool_prefix}nm
 1702     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
 1703       # Check to see if the nm accepts a BSD-compat flag.
 1704       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 1705       #   nm: unknown option "B" ignored
 1706       # Tru64's nm complains that /dev/null is an invalid object file
 1707       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
 1708     lt_cv_path_NM="$tmp_nm -B"
 1709     break
 1710       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
 1711     lt_cv_path_NM="$tmp_nm -p"
 1712     break
 1713       else
 1714     lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 1715     continue # so that we can try to find one that supports BSD flags
 1716       fi
 1717     fi
 1718   done
 1719   IFS="$ac_save_ifs"
 1720   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 1721 fi
 1722 fi
 1723 
 1724 NM="$lt_cv_path_NM"
 1725 echo "$ac_t""$NM" 1>&6
 1726 
 1727 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
 1728 echo "configure:1729: checking whether ln -s works" >&5
 1729 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
 1730   echo $ac_n "(cached) $ac_c" 1>&6
 1731 else
 1732   rm -f conftestdata
 1733 if ln -s X conftestdata 2>/dev/null
 1734 then
 1735   rm -f conftestdata
 1736   ac_cv_prog_LN_S="ln -s"
 1737 else
 1738   ac_cv_prog_LN_S=ln
 1739 fi
 1740 fi
 1741 LN_S="$ac_cv_prog_LN_S"
 1742 if test "$ac_cv_prog_LN_S" = "ln -s"; then
 1743   echo "$ac_t""yes" 1>&6
 1744 else
 1745   echo "$ac_t""no" 1>&6
 1746 fi
 1747 
 1748 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
 1749 echo "configure:1750: checking how to recognise dependant libraries" >&5
 1750 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
 1751   echo $ac_n "(cached) $ac_c" 1>&6
 1752 else
 1753   lt_cv_file_magic_cmd='$MAGIC_CMD'
 1754 lt_cv_file_magic_test_file=
 1755 lt_cv_deplibs_check_method='unknown'
 1756 # Need to set the preceding variable on all platforms that support
 1757 # interlibrary dependencies.
 1758 # 'none' -- dependencies not supported.
 1759 # `unknown' -- same as none, but documents that we really don't know.
 1760 # 'pass_all' -- all dependencies passed with no checks.
 1761 # 'test_compile' -- check by making test program.
 1762 # 'file_magic [[regex]]' -- check by looking for files in library path
 1763 # which responds to the $file_magic_cmd with a given egrep regex.
 1764 # If you have `file' or equivalent on your system and you're not sure
 1765 # whether `pass_all' will *always* work, you probably want this one.
 1766 
 1767 case $host_os in
 1768 aix4* | aix5*)
 1769   lt_cv_deplibs_check_method=pass_all
 1770   ;;
 1771 
 1772 beos*)
 1773   lt_cv_deplibs_check_method=pass_all
 1774   ;;
 1775 
 1776 bsdi4*)
 1777   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 1778   lt_cv_file_magic_cmd='/usr/bin/file -L'
 1779   lt_cv_file_magic_test_file=/shlib/libc.so
 1780   ;;
 1781 
 1782 cygwin* | mingw* | pw32*)
 1783   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 1784   lt_cv_file_magic_cmd='$OBJDUMP -f'
 1785   ;;
 1786 
 1787 darwin* | rhapsody*)
 1788   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
 1789   lt_cv_file_magic_cmd='/usr/bin/file -L'
 1790   case "$host_os" in
 1791   rhapsody* | darwin1.[012])
 1792     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
 1793     ;;
 1794   *) # Darwin 1.3 on
 1795     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
 1796     ;;
 1797   esac
 1798   ;;
 1799 
 1800 freebsd*)
 1801   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 1802     case $host_cpu in
 1803     i*86 )
 1804       # Not sure whether the presence of OpenBSD here was a mistake.
 1805       # Let's accept both of them until this is cleared up.
 1806       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 1807       lt_cv_file_magic_cmd=/usr/bin/file
 1808       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 1809       ;;
 1810     esac
 1811   else
 1812     lt_cv_deplibs_check_method=pass_all
 1813   fi
 1814   ;;
 1815 
 1816 gnu*)
 1817   lt_cv_deplibs_check_method=pass_all
 1818   ;;
 1819 
 1820 hpux10.20*|hpux11*)
 1821   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 1822   lt_cv_file_magic_cmd=/usr/bin/file
 1823   lt_cv_file_magic_test_file=/usr/lib/libc.sl
 1824   ;;
 1825 
 1826 irix5* | irix6* | nonstopux*)
 1827   case $host_os in
 1828   irix5* | nonstopux*)
 1829     # this will be overridden with pass_all, but let us keep it just in case
 1830     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
 1831     ;;
 1832   *)
 1833     case $LD in
 1834     *-32|*"-32 ") libmagic=32-bit;;
 1835     *-n32|*"-n32 ") libmagic=N32;;
 1836     *-64|*"-64 ") libmagic=64-bit;;
 1837     *) libmagic=never-match;;
 1838     esac
 1839     # this will be overridden with pass_all, but let us keep it just in case
 1840     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
 1841     ;;
 1842   esac
 1843   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
 1844   lt_cv_deplibs_check_method=pass_all
 1845   ;;
 1846 
 1847 # This must be Linux ELF.
 1848 linux-gnu*)
 1849   lt_cv_deplibs_check_method=pass_all
 1850   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
 1851   ;;
 1852 
 1853 netbsd*)
 1854   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 1855     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
 1856   else
 1857     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
 1858   fi
 1859   ;;
 1860 
 1861 newos6*)
 1862   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 1863   lt_cv_file_magic_cmd=/usr/bin/file
 1864   lt_cv_file_magic_test_file=/usr/lib/libnls.so
 1865   ;;
 1866 
 1867 openbsd*)
 1868   lt_cv_file_magic_cmd=/usr/bin/file
 1869   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 1870   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 1871     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 1872   else
 1873     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 1874   fi
 1875   ;;
 1876 
 1877 osf3* | osf4* | osf5*)
 1878   # this will be overridden with pass_all, but let us keep it just in case
 1879   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
 1880   lt_cv_file_magic_test_file=/shlib/libc.so
 1881   lt_cv_deplibs_check_method=pass_all
 1882   ;;
 1883 
 1884 sco3.2v5*)
 1885   lt_cv_deplibs_check_method=pass_all
 1886   ;;
 1887 
 1888 solaris*)
 1889   lt_cv_deplibs_check_method=pass_all
 1890   lt_cv_file_magic_test_file=/lib/libc.so
 1891   ;;
 1892 
 1893 sysv5uw[78]* | sysv4*uw2*)
 1894   lt_cv_deplibs_check_method=pass_all
 1895   ;;
 1896 
 1897 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 1898   case $host_vendor in
 1899   motorola)
 1900     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]'
 1901     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 1902     ;;
 1903   ncr)
 1904     lt_cv_deplibs_check_method=pass_all
 1905     ;;
 1906   sequent)
 1907     lt_cv_file_magic_cmd='/bin/file'
 1908     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 1909     ;;
 1910   sni)
 1911     lt_cv_file_magic_cmd='/bin/file'
 1912     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 1913     lt_cv_file_magic_test_file=/lib/libc.so
 1914     ;;
 1915   esac
 1916   ;;
 1917 esac
 1918 
 1919 fi
 1920 
 1921 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
 1922 file_magic_cmd=$lt_cv_file_magic_cmd
 1923 deplibs_check_method=$lt_cv_deplibs_check_method
 1924 
 1925 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
 1926 echo "configure:1927: checking for object suffix" >&5
 1927 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
 1928   echo $ac_n "(cached) $ac_c" 1>&6
 1929 else
 1930   rm -f conftest*
 1931 echo 'int i = 1;' > conftest.$ac_ext
 1932 if { (eval echo configure:1933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 1933   for ac_file in conftest.*; do
 1934     case $ac_file in
 1935     *.c) ;;
 1936     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
 1937     esac
 1938   done
 1939 else
 1940   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
 1941 fi
 1942 rm -f conftest*
 1943 fi
 1944 
 1945 echo "$ac_t""$ac_cv_objext" 1>&6
 1946 OBJEXT=$ac_cv_objext
 1947 ac_objext=$ac_cv_objext
 1948 
 1949 
 1950 
 1951 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
 1952 echo "configure:1953: checking for executable suffix" >&5
 1953 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
 1954   echo $ac_n "(cached) $ac_c" 1>&6
 1955 else
 1956   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
 1957   ac_cv_exeext=.exe
 1958 else
 1959   rm -f conftest*
 1960   echo 'int main () { return 0; }' > conftest.$ac_ext
 1961   ac_cv_exeext=
 1962   if { (eval echo configure:1963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
 1963     for file in conftest.*; do
 1964       case $file in
 1965       *.$ac_ext | *.c | *.o | *.obj) ;;
 1966       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
 1967       esac
 1968     done
 1969   else
 1970     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
 1971   fi
 1972   rm -f conftest*
 1973   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
 1974 fi
 1975 fi
 1976 
 1977 EXEEXT=""
 1978 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
 1979 echo "$ac_t""${ac_cv_exeext}" 1>&6
 1980 ac_exeext=$EXEEXT
 1981 
 1982 if test $host != $build; then
 1983   ac_tool_prefix=${host_alias}-
 1984 else
 1985   ac_tool_prefix=
 1986 fi
 1987 
 1988 
 1989 
 1990 
 1991 # Check for command to grab the raw symbol name followed by C symbol from nm.
 1992 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
 1993 echo "configure:1994: checking command to parse $NM output" >&5
 1994 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
 1995   echo $ac_n "(cached) $ac_c" 1>&6
 1996 else
 1997   
 1998 # These are sane defaults that work on at least a few old systems.
 1999 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 2000 
 2001 # Character class describing NM global symbol codes.
 2002 symcode='[BCDEGRST]'
 2003 
 2004 # Regexp to match symbols that can be accessed directly from C.
 2005 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 2006 
 2007 # Transform the above into a raw symbol and a C symbol.
 2008 symxfrm='\1 \2\3 \3'
 2009 
 2010 # Transform an extracted symbol line into a proper C declaration
 2011 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
 2012 
 2013 # Transform an extracted symbol line into symbol name and symbol address
 2014 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 2015 
 2016 # Define system-specific variables.
 2017 case $host_os in
 2018 aix*)
 2019   symcode='[BCDT]'
 2020   ;;
 2021 cygwin* | mingw* | pw32*)
 2022   symcode='[ABCDGISTW]'
 2023   ;;
 2024 hpux*) # Its linker distinguishes data from code symbols
 2025   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 2026   lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 2027   ;;
 2028 irix* | nonstopux*)
 2029   symcode='[BCDEGRST]'
 2030   ;;
 2031 solaris* | sysv5*)
 2032   symcode='[BDT]'
 2033   ;;
 2034 sysv4)
 2035   symcode='[DFNSTU]'
 2036   ;;
 2037 esac
 2038 
 2039 # Handle CRLF in mingw tool chain
 2040 opt_cr=
 2041 case $host_os in
 2042 mingw*)
 2043   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 2044   ;;
 2045 esac
 2046 
 2047 # If we're using GNU nm, then use its standard symbol codes.
 2048 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
 2049   symcode='[ABCDGISTW]'
 2050 fi
 2051 
 2052 # Try without a prefix undercore, then with it.
 2053 for ac_symprfx in "" "_"; do
 2054 
 2055   # Write the raw and C identifiers.
 2056 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[     ]\($symcode$symcode*\)[     ][  ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 2057 
 2058   # Check to see that the pipe works correctly.
 2059   pipe_works=no
 2060   rm -f conftest*
 2061   cat > conftest.$ac_ext <<EOF
 2062 #ifdef __cplusplus
 2063 extern "C" {
 2064 #endif
 2065 char nm_test_var;
 2066 void nm_test_func(){}
 2067 #ifdef __cplusplus
 2068 }
 2069 #endif
 2070 int main(){nm_test_var='a';nm_test_func();return(0);}
 2071 EOF
 2072 
 2073   if { (eval echo configure:2074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2074     # Now try to grab the symbols.
 2075     nlist=conftest.nm
 2076     if { (eval echo configure:2077: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
 2077       # Try sorting and uniquifying the output.
 2078       if sort "$nlist" | uniq > "$nlist"T; then
 2079     mv -f "$nlist"T "$nlist"
 2080       else
 2081     rm -f "$nlist"T
 2082       fi
 2083 
 2084       # Make sure that we snagged all the symbols we need.
 2085       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
 2086     if egrep ' nm_test_func$' "$nlist" >/dev/null; then
 2087       cat <<EOF > conftest.$ac_ext
 2088 #ifdef __cplusplus
 2089 extern "C" {
 2090 #endif
 2091 
 2092 EOF
 2093       # Now generate the symbol file.
 2094       eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
 2095 
 2096       cat <<EOF >> conftest.$ac_ext
 2097 #if defined (__STDC__) && __STDC__
 2098 # define lt_ptr void *
 2099 #else
 2100 # define lt_ptr char *
 2101 # define const
 2102 #endif
 2103 
 2104 /* The mapping between symbol names and symbols. */
 2105 const struct {
 2106   const char *name;
 2107   lt_ptr address;
 2108 }
 2109 lt_preloaded_symbols[] =
 2110 {
 2111 EOF
 2112       sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
 2113       cat <<\EOF >> conftest.$ac_ext
 2114   {0, (lt_ptr) 0}
 2115 };
 2116 
 2117 #ifdef __cplusplus
 2118 }
 2119 #endif
 2120 EOF
 2121       # Now try linking the two files.
 2122       mv conftest.$ac_objext conftstm.$ac_objext
 2123       save_LIBS="$LIBS"
 2124       save_CFLAGS="$CFLAGS"
 2125       LIBS="conftstm.$ac_objext"
 2126       CFLAGS="$CFLAGS$no_builtin_flag"
 2127       if { (eval echo configure:2128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
 2128         pipe_works=yes
 2129       fi
 2130       LIBS="$save_LIBS"
 2131       CFLAGS="$save_CFLAGS"
 2132     else
 2133       echo "cannot find nm_test_func in $nlist" >&5
 2134     fi
 2135       else
 2136     echo "cannot find nm_test_var in $nlist" >&5
 2137       fi
 2138     else
 2139       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 2140     fi
 2141   else
 2142     echo "$progname: failed program was:" >&5
 2143     cat conftest.$ac_ext >&5
 2144   fi
 2145   rm -f conftest* conftst*
 2146 
 2147   # Do not use the global_symbol_pipe unless it works.
 2148   if test "$pipe_works" = yes; then
 2149     break
 2150   else
 2151     lt_cv_sys_global_symbol_pipe=
 2152   fi
 2153 done
 2154 
 2155 fi
 2156 
 2157 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
 2158 if test -z "$lt_cv_sys_global_symbol_pipe"; then
 2159   global_symbol_to_cdecl=
 2160   global_symbol_to_c_name_address=
 2161 else
 2162   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
 2163   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
 2164 fi
 2165 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
 2166 then
 2167   echo "$ac_t""failed" 1>&6
 2168 else
 2169   echo "$ac_t""ok" 1>&6
 2170 fi
 2171 
 2172 for ac_hdr in dlfcn.h
 2173 do
 2174 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 2175 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 2176 echo "configure:2177: checking for $ac_hdr" >&5
 2177 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 2178   echo $ac_n "(cached) $ac_c" 1>&6
 2179 else
 2180   cat > conftest.$ac_ext <<EOF
 2181 #line 2182 "configure"
 2182 #include "confdefs.h"
 2183 #include <$ac_hdr>
 2184 EOF
 2185 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 2186 { (eval echo configure:2187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 2187 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 2188 if test -z "$ac_err"; then
 2189   rm -rf conftest*
 2190   eval "ac_cv_header_$ac_safe=yes"
 2191 else
 2192   echo "$ac_err" >&5
 2193   echo "configure: failed program was:" >&5
 2194   cat conftest.$ac_ext >&5
 2195   rm -rf conftest*
 2196   eval "ac_cv_header_$ac_safe=no"
 2197 fi
 2198 rm -f conftest*
 2199 fi
 2200 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 2201   echo "$ac_t""yes" 1>&6
 2202     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 2203   cat >> confdefs.h <<EOF
 2204 #define $ac_tr_hdr 1
 2205 EOF
 2206  
 2207 else
 2208   echo "$ac_t""no" 1>&6
 2209 fi
 2210 done
 2211 
 2212 
 2213 
 2214 
 2215 
 2216 # Only perform the check for file, if the check method requires it
 2217 case $deplibs_check_method in
 2218 file_magic*)
 2219   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 2220     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
 2221 echo "configure:2222: checking for ${ac_tool_prefix}file" >&5
 2222 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
 2223   echo $ac_n "(cached) $ac_c" 1>&6
 2224 else
 2225   case $MAGIC_CMD in
 2226   /*)
 2227   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 2228   ;;
 2229   ?:/*)
 2230   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
 2231   ;;
 2232   *)
 2233   ac_save_MAGIC_CMD="$MAGIC_CMD"
 2234   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 2235   ac_dummy="/usr/bin:$PATH"
 2236   for ac_dir in $ac_dummy; do
 2237     test -z "$ac_dir" && ac_dir=.
 2238     if test -f $ac_dir/${ac_tool_prefix}file; then
 2239       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 2240       if test -n "$file_magic_test_file"; then
 2241     case $deplibs_check_method in
 2242     "file_magic "*)
 2243       file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 2244       MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 2245       if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 2246         egrep "$file_magic_regex" > /dev/null; then
 2247         :
 2248       else
 2249         cat <<EOF 1>&2
 2250 
 2251 *** Warning: the command libtool uses to detect shared libraries,
 2252 *** $file_magic_cmd, produces output that libtool cannot recognize.
 2253 *** The result is that libtool may fail to recognize shared libraries
 2254 *** as such.  This will affect the creation of libtool libraries that
 2255 *** depend on shared libraries, but programs linked with such libtool
 2256 *** libraries will work regardless of this problem.  Nevertheless, you
 2257 *** may want to report the problem to your system manager and/or to
 2258 *** bug-libtool@gnu.org
 2259 
 2260 EOF
 2261       fi ;;
 2262     esac
 2263       fi
 2264       break
 2265     fi
 2266   done
 2267   IFS="$ac_save_ifs"
 2268   MAGIC_CMD="$ac_save_MAGIC_CMD"
 2269   ;;
 2270 esac
 2271 fi
 2272 
 2273 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 2274 if test -n "$MAGIC_CMD"; then
 2275   echo "$ac_t""$MAGIC_CMD" 1>&6
 2276 else
 2277   echo "$ac_t""no" 1>&6
 2278 fi
 2279 
 2280 if test -z "$lt_cv_path_MAGIC_CMD"; then
 2281   if test -n "$ac_tool_prefix"; then
 2282     echo $ac_n "checking for file""... $ac_c" 1>&6
 2283 echo "configure:2284: checking for file" >&5
 2284 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
 2285   echo $ac_n "(cached) $ac_c" 1>&6
 2286 else
 2287   case $MAGIC_CMD in
 2288   /*)
 2289   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 2290   ;;
 2291   ?:/*)
 2292   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
 2293   ;;
 2294   *)
 2295   ac_save_MAGIC_CMD="$MAGIC_CMD"
 2296   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 2297   ac_dummy="/usr/bin:$PATH"
 2298   for ac_dir in $ac_dummy; do
 2299     test -z "$ac_dir" && ac_dir=.
 2300     if test -f $ac_dir/file; then
 2301       lt_cv_path_MAGIC_CMD="$ac_dir/file"
 2302       if test -n "$file_magic_test_file"; then
 2303     case $deplibs_check_method in
 2304     "file_magic "*)
 2305       file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 2306       MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 2307       if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 2308         egrep "$file_magic_regex" > /dev/null; then
 2309         :
 2310       else
 2311         cat <<EOF 1>&2
 2312 
 2313 *** Warning: the command libtool uses to detect shared libraries,
 2314 *** $file_magic_cmd, produces output that libtool cannot recognize.
 2315 *** The result is that libtool may fail to recognize shared libraries
 2316 *** as such.  This will affect the creation of libtool libraries that
 2317 *** depend on shared libraries, but programs linked with such libtool
 2318 *** libraries will work regardless of this problem.  Nevertheless, you
 2319 *** may want to report the problem to your system manager and/or to
 2320 *** bug-libtool@gnu.org
 2321 
 2322 EOF
 2323       fi ;;
 2324     esac
 2325       fi
 2326       break
 2327     fi
 2328   done
 2329   IFS="$ac_save_ifs"
 2330   MAGIC_CMD="$ac_save_MAGIC_CMD"
 2331   ;;
 2332 esac
 2333 fi
 2334 
 2335 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 2336 if test -n "$MAGIC_CMD"; then
 2337   echo "$ac_t""$MAGIC_CMD" 1>&6
 2338 else
 2339   echo "$ac_t""no" 1>&6
 2340 fi
 2341 
 2342   else
 2343     MAGIC_CMD=:
 2344   fi
 2345 fi
 2346 
 2347   fi
 2348   ;;
 2349 esac
 2350 
 2351 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 2352 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 2353 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 2354 echo "configure:2355: checking for $ac_word" >&5
 2355 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
 2356   echo $ac_n "(cached) $ac_c" 1>&6
 2357 else
 2358   if test -n "$RANLIB"; then
 2359   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 2360 else
 2361   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 2362   ac_dummy="$PATH"
 2363   for ac_dir in $ac_dummy; do
 2364     test -z "$ac_dir" && ac_dir=.
 2365     if test -f $ac_dir/$ac_word; then
 2366       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 2367       break
 2368     fi
 2369   done
 2370   IFS="$ac_save_ifs"
 2371 fi
 2372 fi
 2373 RANLIB="$ac_cv_prog_RANLIB"
 2374 if test -n "$RANLIB"; then
 2375   echo "$ac_t""$RANLIB" 1>&6
 2376 else
 2377   echo "$ac_t""no" 1>&6
 2378 fi
 2379 
 2380 
 2381 if test -z "$ac_cv_prog_RANLIB"; then
 2382 if test -n "$ac_tool_prefix"; then
 2383   # Extract the first word of "ranlib", so it can be a program name with args.
 2384 set dummy ranlib; ac_word=$2
 2385 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 2386 echo "configure:2387: checking for $ac_word" >&5
 2387 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
 2388   echo $ac_n "(cached) $ac_c" 1>&6
 2389 else
 2390   if test -n "$RANLIB"; then
 2391   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 2392 else
 2393   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 2394   ac_dummy="$PATH"
 2395   for ac_dir in $ac_dummy; do
 2396     test -z "$ac_dir" && ac_dir=.
 2397     if test -f $ac_dir/$ac_word; then
 2398       ac_cv_prog_RANLIB="ranlib"
 2399       break
 2400     fi
 2401   done
 2402   IFS="$ac_save_ifs"
 2403   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
 2404 fi
 2405 fi
 2406 RANLIB="$ac_cv_prog_RANLIB"
 2407 if test -n "$RANLIB"; then
 2408   echo "$ac_t""$RANLIB" 1>&6
 2409 else
 2410   echo "$ac_t""no" 1>&6
 2411 fi
 2412 
 2413 else
 2414   RANLIB=":"
 2415 fi
 2416 fi
 2417 
 2418 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 2419 set dummy ${ac_tool_prefix}strip; ac_word=$2
 2420 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 2421 echo "configure:2422: checking for $ac_word" >&5
 2422 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
 2423   echo $ac_n "(cached) $ac_c" 1>&6
 2424 else
 2425   if test -n "$STRIP"; then
 2426   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 2427 else
 2428   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 2429   ac_dummy="$PATH"
 2430   for ac_dir in $ac_dummy; do
 2431     test -z "$ac_dir" && ac_dir=.
 2432     if test -f $ac_dir/$ac_word; then
 2433       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 2434       break
 2435     fi
 2436   done
 2437   IFS="$ac_save_ifs"
 2438 fi
 2439 fi
 2440 STRIP="$ac_cv_prog_STRIP"
 2441 if test -n "$STRIP"; then
 2442   echo "$ac_t""$STRIP" 1>&6
 2443 else
 2444   echo "$ac_t""no" 1>&6
 2445 fi
 2446 
 2447 
 2448 if test -z "$ac_cv_prog_STRIP"; then
 2449 if test -n "$ac_tool_prefix"; then
 2450   # Extract the first word of "strip", so it can be a program name with args.
 2451 set dummy strip; ac_word=$2
 2452 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 2453 echo "configure:2454: checking for $ac_word" >&5
 2454 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
 2455   echo $ac_n "(cached) $ac_c" 1>&6
 2456 else
 2457   if test -n "$STRIP"; then
 2458   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 2459 else
 2460   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 2461   ac_dummy="$PATH"
 2462   for ac_dir in $ac_dummy; do
 2463     test -z "$ac_dir" && ac_dir=.
 2464     if test -f $ac_dir/$ac_word; then
 2465       ac_cv_prog_STRIP="strip"
 2466       break
 2467     fi
 2468   done
 2469   IFS="$ac_save_ifs"
 2470   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
 2471 fi
 2472 fi
 2473 STRIP="$ac_cv_prog_STRIP"
 2474 if test -n "$STRIP"; then
 2475   echo "$ac_t""$STRIP" 1>&6
 2476 else
 2477   echo "$ac_t""no" 1>&6
 2478 fi
 2479 
 2480 else
 2481   STRIP=":"
 2482 fi
 2483 fi
 2484 
 2485 
 2486 enable_dlopen=no
 2487 enable_win32_dll=no
 2488 
 2489 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 2490 if test "${enable_libtool_lock+set}" = set; then
 2491   enableval="$enable_libtool_lock"
 2492   :
 2493 fi
 2494 
 2495 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 2496 
 2497 # Some flags need to be propagated to the compiler or linker for good
 2498 # libtool support.
 2499 case $host in
 2500 *-*-irix6*)
 2501   # Find out which ABI we are using.
 2502   echo '#line 2503 "configure"' > conftest.$ac_ext
 2503   if { (eval echo configure:2504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2504     case `/usr/bin/file conftest.$ac_objext` in
 2505     *32-bit*)
 2506       LD="${LD-ld} -32"
 2507       ;;
 2508     *N32*)
 2509       LD="${LD-ld} -n32"
 2510       ;;
 2511     *64-bit*)
 2512       LD="${LD-ld} -64"
 2513       ;;
 2514     esac
 2515   fi
 2516   rm -rf conftest*
 2517   ;;
 2518 
 2519 *-*-sco3.2v5*)
 2520   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 2521   SAVE_CFLAGS="$CFLAGS"
 2522   CFLAGS="$CFLAGS -belf"
 2523   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
 2524 echo "configure:2525: checking whether the C compiler needs -belf" >&5
 2525 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
 2526   echo $ac_n "(cached) $ac_c" 1>&6
 2527 else
 2528   
 2529      ac_ext=c
 2530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 2531 ac_cpp='$CPP $CPPFLAGS'
 2532 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 2533 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 2534 cross_compiling=$ac_cv_prog_cc_cross
 2535 
 2536      cat > conftest.$ac_ext <<EOF
 2537 #line 2538 "configure"
 2538 #include "confdefs.h"
 2539 
 2540 int main() {
 2541 
 2542 ; return 0; }
 2543 EOF
 2544 if { (eval echo configure:2545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 2545   rm -rf conftest*
 2546   lt_cv_cc_needs_belf=yes
 2547 else
 2548   echo "configure: failed program was:" >&5
 2549   cat conftest.$ac_ext >&5
 2550   rm -rf conftest*
 2551   lt_cv_cc_needs_belf=no
 2552 fi
 2553 rm -f conftest*
 2554      ac_ext=c
 2555 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 2556 ac_cpp='$CPP $CPPFLAGS'
 2557 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 2558 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 2559 cross_compiling=$ac_cv_prog_cc_cross
 2560 
 2561 fi
 2562 
 2563 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
 2564   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 2565     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 2566     CFLAGS="$SAVE_CFLAGS"
 2567   fi
 2568   ;;
 2569 
 2570 
 2571 esac
 2572 
 2573 # Sed substitution that helps us do robust quoting.  It backslashifies
 2574 # metacharacters that are still active within double-quoted strings.
 2575 Xsed='sed -e s/^X//'
 2576 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 2577 
 2578 # Same as above, but do not quote variable references.
 2579 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 2580 
 2581 # Sed substitution to delay expansion of an escaped shell variable in a
 2582 # double_quote_subst'ed string.
 2583 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 2584 
 2585 # Constants:
 2586 rm="rm -f"
 2587 
 2588 # Global variables:
 2589 default_ofile=libtool
 2590 can_build_shared=yes
 2591 
 2592 # All known linkers require a `.a' archive for static linking (except M$VC,
 2593 # which needs '.lib').
 2594 libext=a
 2595 ltmain="$ac_aux_dir/ltmain.sh"
 2596 ofile="$default_ofile"
 2597 with_gnu_ld="$lt_cv_prog_gnu_ld"
 2598 need_locks="$enable_libtool_lock"
 2599 
 2600 old_CC="$CC"
 2601 old_CFLAGS="$CFLAGS"
 2602 
 2603 # Set sane defaults for various variables
 2604 test -z "$AR" && AR=ar
 2605 test -z "$AR_FLAGS" && AR_FLAGS=cru
 2606 test -z "$AS" && AS=as
 2607 test -z "$CC" && CC=cc
 2608 test -z "$DLLTOOL" && DLLTOOL=dlltool
 2609 test -z "$LD" && LD=ld
 2610 test -z "$LN_S" && LN_S="ln -s"
 2611 test -z "$MAGIC_CMD" && MAGIC_CMD=file
 2612 test -z "$NM" && NM=nm
 2613 test -z "$OBJDUMP" && OBJDUMP=objdump
 2614 test -z "$RANLIB" && RANLIB=:
 2615 test -z "$STRIP" && STRIP=:
 2616 test -z "$ac_objext" && ac_objext=o
 2617 
 2618 if test x"$host" != x"$build"; then
 2619   ac_tool_prefix=${host_alias}-
 2620 else
 2621   ac_tool_prefix=
 2622 fi
 2623 
 2624 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
 2625 case $host_os in
 2626 linux-gnu*) ;;
 2627 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
 2628 esac
 2629 
 2630 case $host_os in
 2631 aix3*)
 2632   # AIX sometimes has problems with the GCC collect2 program.  For some
 2633   # reason, if we set the COLLECT_NAMES environment variable, the problems
 2634   # vanish in a puff of smoke.
 2635   if test "X${COLLECT_NAMES+set}" != Xset; then
 2636     COLLECT_NAMES=
 2637     export COLLECT_NAMES
 2638   fi
 2639   ;;
 2640 esac
 2641 
 2642 # Determine commands to create old-style static archives.
 2643 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 2644 old_postinstall_cmds='chmod 644 $oldlib'
 2645 old_postuninstall_cmds=
 2646 
 2647 if test -n "$RANLIB"; then
 2648   case $host_os in
 2649   openbsd*)
 2650     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 2651     ;;
 2652   *)
 2653     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 2654     ;;
 2655   esac
 2656   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 2657 fi
 2658 
 2659 # Allow CC to be a program name with arguments.
 2660 set dummy $CC
 2661 compiler="$2"
 2662 
 2663 echo $ac_n "checking for objdir""... $ac_c" 1>&6
 2664 echo "configure:2665: checking for objdir" >&5
 2665 rm -f .libs 2>/dev/null
 2666 mkdir .libs 2>/dev/null
 2667 if test -d .libs; then
 2668   objdir=.libs
 2669 else
 2670   # MS-DOS does not allow filenames that begin with a dot.
 2671   objdir=_libs
 2672 fi
 2673 rmdir .libs 2>/dev/null
 2674 echo "$ac_t""$objdir" 1>&6
 2675 
 2676 
 2677 # Check whether --with-pic or --without-pic was given.
 2678 if test "${with_pic+set}" = set; then
 2679   withval="$with_pic"
 2680   pic_mode="$withval"
 2681 else
 2682   pic_mode=default
 2683 fi
 2684 
 2685 test -z "$pic_mode" && pic_mode=default
 2686 
 2687 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
 2688 # in isolation, and that seeing it set (from the cache) indicates that
 2689 # the associated values are set (in the cache) correctly too.
 2690 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
 2691 echo "configure:2692: checking for $compiler option to produce PIC" >&5
 2692 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
 2693   echo $ac_n "(cached) $ac_c" 1>&6
 2694 else
 2695    lt_cv_prog_cc_pic=
 2696   lt_cv_prog_cc_shlib=
 2697   lt_cv_prog_cc_wl=
 2698   lt_cv_prog_cc_static=
 2699   lt_cv_prog_cc_no_builtin=
 2700   lt_cv_prog_cc_can_build_shared=$can_build_shared
 2701 
 2702   if test "$GCC" = yes; then
 2703     lt_cv_prog_cc_wl='-Wl,'
 2704     lt_cv_prog_cc_static='-static'
 2705 
 2706     case $host_os in
 2707     aix*)
 2708       # Below there is a dirty hack to force normal static linking with -ldl
 2709       # The problem is because libdl dynamically linked with both libc and
 2710       # libC (AIX C++ library), which obviously doesn't included in libraries
 2711       # list by gcc. This cause undefined symbols with -static flags.
 2712       # This hack allows C programs to be linked with "-static -ldl", but
 2713       # not sure about C++ programs.
 2714       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
 2715       ;;
 2716     amigaos*)
 2717       # FIXME: we need at least 68020 code to build shared libraries, but
 2718       # adding the `-m68020' flag to GCC prevents building anything better,
 2719       # like `-m68040'.
 2720       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
 2721       ;;
 2722     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 2723       # PIC is the default for these OSes.
 2724       ;;
 2725     darwin* | rhapsody*)
 2726       # PIC is the default on this platform
 2727       # Common symbols not allowed in MH_DYLIB files
 2728       lt_cv_prog_cc_pic='-fno-common'
 2729       ;;
 2730     cygwin* | mingw* | pw32* | os2*)
 2731       # This hack is so that the source file can tell whether it is being
 2732       # built for inclusion in a dll (and should export symbols for example).
 2733       lt_cv_prog_cc_pic='-DDLL_EXPORT'
 2734       ;;
 2735     sysv4*MP*)
 2736       if test -d /usr/nec; then
 2737      lt_cv_prog_cc_pic=-Kconform_pic
 2738       fi
 2739       ;;
 2740     *)
 2741       lt_cv_prog_cc_pic='-fPIC'
 2742       ;;
 2743     esac
 2744   else
 2745     # PORTME Check for PIC flags for the system compiler.
 2746     case $host_os in
 2747     aix3* | aix4* | aix5*)
 2748       lt_cv_prog_cc_wl='-Wl,'
 2749       # All AIX code is PIC.
 2750       if test "$host_cpu" = ia64; then
 2751     # AIX 5 now supports IA64 processor
 2752     lt_cv_prog_cc_static='-Bstatic'
 2753       else
 2754     lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
 2755       fi
 2756       ;;
 2757 
 2758     hpux9* | hpux10* | hpux11*)
 2759       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
 2760       lt_cv_prog_cc_wl='-Wl,'
 2761       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
 2762       lt_cv_prog_cc_pic='+Z'
 2763       ;;
 2764 
 2765     irix5* | irix6* | nonstopux*)
 2766       lt_cv_prog_cc_wl='-Wl,'
 2767       lt_cv_prog_cc_static='-non_shared'
 2768       # PIC (with -KPIC) is the default.
 2769       ;;
 2770 
 2771     cygwin* | mingw* | pw32* | os2*)
 2772       # This hack is so that the source file can tell whether it is being
 2773       # built for inclusion in a dll (and should export symbols for example).
 2774       lt_cv_prog_cc_pic='-DDLL_EXPORT'
 2775       ;;
 2776 
 2777     newsos6)
 2778       lt_cv_prog_cc_pic='-KPIC'
 2779       lt_cv_prog_cc_static='-Bstatic'
 2780       ;;
 2781 
 2782     osf3* | osf4* | osf5*)
 2783       # All OSF/1 code is PIC.
 2784       lt_cv_prog_cc_wl='-Wl,'
 2785       lt_cv_prog_cc_static='-non_shared'
 2786       ;;
 2787 
 2788     sco3.2v5*)
 2789       lt_cv_prog_cc_pic='-Kpic'
 2790       lt_cv_prog_cc_static='-dn'
 2791       lt_cv_prog_cc_shlib='-belf'
 2792       ;;
 2793 
 2794     solaris*)
 2795       lt_cv_prog_cc_pic='-KPIC'
 2796       lt_cv_prog_cc_static='-Bstatic'
 2797       lt_cv_prog_cc_wl='-Wl,'
 2798       ;;
 2799 
 2800     sunos4*)
 2801       lt_cv_prog_cc_pic='-PIC'
 2802       lt_cv_prog_cc_static='-Bstatic'
 2803       lt_cv_prog_cc_wl='-Qoption ld '
 2804       ;;
 2805 
 2806     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 2807       lt_cv_prog_cc_pic='-KPIC'
 2808       lt_cv_prog_cc_static='-Bstatic'
 2809       if test "x$host_vendor" = xsni; then
 2810     lt_cv_prog_cc_wl='-LD'
 2811       else
 2812     lt_cv_prog_cc_wl='-Wl,'
 2813       fi
 2814       ;;
 2815 
 2816     uts4*)
 2817       lt_cv_prog_cc_pic='-pic'
 2818       lt_cv_prog_cc_static='-Bstatic'
 2819       ;;
 2820 
 2821     sysv4*MP*)
 2822       if test -d /usr/nec ;then
 2823     lt_cv_prog_cc_pic='-Kconform_pic'
 2824     lt_cv_prog_cc_static='-Bstatic'
 2825       fi
 2826       ;;
 2827 
 2828     *)
 2829       lt_cv_prog_cc_can_build_shared=no
 2830       ;;
 2831     esac
 2832   fi
 2833 
 2834 fi
 2835 
 2836 if test -z "$lt_cv_prog_cc_pic"; then
 2837   echo "$ac_t""none" 1>&6
 2838 else
 2839   echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
 2840 
 2841   # Check to make sure the pic_flag actually works.
 2842   echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
 2843 echo "configure:2844: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
 2844   if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
 2845   echo $ac_n "(cached) $ac_c" 1>&6
 2846 else
 2847       save_CFLAGS="$CFLAGS"
 2848     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
 2849     cat > conftest.$ac_ext <<EOF
 2850 #line 2851 "configure"
 2851 #include "confdefs.h"
 2852 
 2853 int main() {
 2854 
 2855 ; return 0; }
 2856 EOF
 2857 if { (eval echo configure:2858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2858   rm -rf conftest*
 2859         case $host_os in
 2860       hpux9* | hpux10* | hpux11*)
 2861     # On HP-UX, both CC and GCC only warn that PIC is supported... then
 2862     # they create non-PIC objects.  So, if there were any warnings, we
 2863     # assume that PIC is not supported.
 2864     if test -s conftest.err; then
 2865       lt_cv_prog_cc_pic_works=no
 2866     else
 2867       lt_cv_prog_cc_pic_works=yes
 2868     fi
 2869     ;;
 2870       *)
 2871     lt_cv_prog_cc_pic_works=yes
 2872     ;;
 2873       esac
 2874     
 2875 else
 2876   echo "configure: failed program was:" >&5
 2877   cat conftest.$ac_ext >&5
 2878   rm -rf conftest*
 2879         lt_cv_prog_cc_pic_works=no
 2880     
 2881 fi
 2882 rm -f conftest*
 2883     CFLAGS="$save_CFLAGS"
 2884   
 2885 fi
 2886 
 2887 
 2888   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
 2889     lt_cv_prog_cc_pic=
 2890     lt_cv_prog_cc_can_build_shared=no
 2891   else
 2892     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
 2893   fi
 2894 
 2895   echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
 2896 fi
 2897 
 2898 # Check for any special shared library compilation flags.
 2899 if test -n "$lt_cv_prog_cc_shlib"; then
 2900   echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
 2901   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
 2902   else
 2903    echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
 2904     lt_cv_prog_cc_can_build_shared=no
 2905   fi
 2906 fi
 2907 
 2908 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
 2909 echo "configure:2910: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
 2910 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
 2911   echo $ac_n "(cached) $ac_c" 1>&6
 2912 else
 2913     lt_cv_prog_cc_static_works=no
 2914   save_LDFLAGS="$LDFLAGS"
 2915   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
 2916   cat > conftest.$ac_ext <<EOF
 2917 #line 2918 "configure"
 2918 #include "confdefs.h"
 2919 
 2920 int main() {
 2921 
 2922 ; return 0; }
 2923 EOF
 2924 if { (eval echo configure:2925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 2925   rm -rf conftest*
 2926   lt_cv_prog_cc_static_works=yes
 2927 else
 2928   echo "configure: failed program was:" >&5
 2929   cat conftest.$ac_ext >&5
 2930 fi
 2931 rm -f conftest*
 2932   LDFLAGS="$save_LDFLAGS"
 2933 
 2934 fi
 2935 
 2936 
 2937 # Belt *and* braces to stop my trousers falling down:
 2938 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
 2939 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
 2940 
 2941 pic_flag="$lt_cv_prog_cc_pic"
 2942 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
 2943 wl="$lt_cv_prog_cc_wl"
 2944 link_static_flag="$lt_cv_prog_cc_static"
 2945 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
 2946 can_build_shared="$lt_cv_prog_cc_can_build_shared"
 2947 
 2948 
 2949 # Check to see if options -o and -c are simultaneously supported by compiler
 2950 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
 2951 echo "configure:2952: checking if $compiler supports -c -o file.$ac_objext" >&5
 2952 if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
 2953   echo $ac_n "(cached) $ac_c" 1>&6
 2954 else
 2955   
 2956 $rm -r conftest 2>/dev/null
 2957 mkdir conftest
 2958 cd conftest
 2959 echo "int some_variable = 0;" > conftest.$ac_ext
 2960 mkdir out
 2961 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 2962 # that will create temporary files in the current directory regardless of
 2963 # the output directory.  Thus, making CWD read-only will cause this test
 2964 # to fail, enabling locking or at least warning the user not to do parallel
 2965 # builds.
 2966 chmod -w .
 2967 save_CFLAGS="$CFLAGS"
 2968 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
 2969 compiler_c_o=no
 2970 if { (eval echo configure:2971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
 2971   # The compiler can only warn and ignore the option if not recognized
 2972   # So say no if there are warnings
 2973   if test -s out/conftest.err; then
 2974     lt_cv_compiler_c_o=no
 2975   else
 2976     lt_cv_compiler_c_o=yes
 2977   fi
 2978 else
 2979   # Append any errors to the config.log.
 2980   cat out/conftest.err 1>&5
 2981   lt_cv_compiler_c_o=no
 2982 fi
 2983 CFLAGS="$save_CFLAGS"
 2984 chmod u+w .
 2985 $rm conftest* out/*
 2986 rmdir out
 2987 cd ..
 2988 rmdir conftest
 2989 $rm -r conftest 2>/dev/null
 2990 
 2991 fi
 2992 
 2993 compiler_c_o=$lt_cv_compiler_c_o
 2994 echo "$ac_t""$compiler_c_o" 1>&6
 2995 
 2996 if test x"$compiler_c_o" = x"yes"; then
 2997   # Check to see if we can write to a .lo
 2998   echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
 2999 echo "configure:3000: checking if $compiler supports -c -o file.lo" >&5
 3000   if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
 3001   echo $ac_n "(cached) $ac_c" 1>&6
 3002 else
 3003   
 3004   lt_cv_compiler_o_lo=no
 3005   save_CFLAGS="$CFLAGS"
 3006   CFLAGS="$CFLAGS -c -o conftest.lo"
 3007   save_objext="$ac_objext"
 3008   ac_objext=lo
 3009   cat > conftest.$ac_ext <<EOF
 3010 #line 3011 "configure"
 3011 #include "confdefs.h"
 3012 
 3013 int main() {
 3014 int some_variable = 0;
 3015 ; return 0; }
 3016 EOF
 3017 if { (eval echo configure:3018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 3018   rm -rf conftest*
 3019       # The compiler can only warn and ignore the option if not recognized
 3020     # So say no if there are warnings
 3021     if test -s conftest.err; then
 3022       lt_cv_compiler_o_lo=no
 3023     else
 3024       lt_cv_compiler_o_lo=yes
 3025     fi
 3026   
 3027 else
 3028   echo "configure: failed program was:" >&5
 3029   cat conftest.$ac_ext >&5
 3030 fi
 3031 rm -f conftest*
 3032   ac_objext="$save_objext"
 3033   CFLAGS="$save_CFLAGS"
 3034   
 3035 fi
 3036 
 3037   compiler_o_lo=$lt_cv_compiler_o_lo
 3038   echo "$ac_t""$compiler_o_lo" 1>&6
 3039 else
 3040   compiler_o_lo=no
 3041 fi
 3042 
 3043 # Check to see if we can do hard links to lock some files if needed
 3044 hard_links="nottested"
 3045 if test "$compiler_c_o" = no && test "$need_locks" != no; then
 3046   # do not overwrite the value of need_locks provided by the user
 3047   echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
 3048 echo "configure:3049: checking if we can lock with hard links" >&5
 3049   hard_links=yes
 3050   $rm conftest*
 3051   ln conftest.a conftest.b 2>/dev/null && hard_links=no
 3052   touch conftest.a
 3053   ln conftest.a conftest.b 2>&5 || hard_links=no
 3054   ln conftest.a conftest.b 2>/dev/null && hard_links=no
 3055   echo "$ac_t""$hard_links" 1>&6
 3056   if test "$hard_links" = no; then
 3057     echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
 3058     need_locks=warn
 3059   fi
 3060 else
 3061   need_locks=no
 3062 fi
 3063 
 3064 if test "$GCC" = yes; then
 3065   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
 3066   echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
 3067 echo "configure:3068: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 3068   echo "int some_variable = 0;" > conftest.$ac_ext
 3069   save_CFLAGS="$CFLAGS"
 3070   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
 3071   compiler_rtti_exceptions=no
 3072   cat > conftest.$ac_ext <<EOF
 3073 #line 3074 "configure"
 3074 #include "confdefs.h"
 3075 
 3076 int main() {
 3077 int some_variable = 0;
 3078 ; return 0; }
 3079 EOF
 3080 if { (eval echo configure:3081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 3081   rm -rf conftest*
 3082       # The compiler can only warn and ignore the option if not recognized
 3083     # So say no if there are warnings
 3084     if test -s conftest.err; then
 3085       compiler_rtti_exceptions=no
 3086     else
 3087       compiler_rtti_exceptions=yes
 3088     fi
 3089   
 3090 else
 3091   echo "configure: failed program was:" >&5
 3092   cat conftest.$ac_ext >&5
 3093 fi
 3094 rm -f conftest*
 3095   CFLAGS="$save_CFLAGS"
 3096   echo "$ac_t""$compiler_rtti_exceptions" 1>&6
 3097 
 3098   if test "$compiler_rtti_exceptions" = "yes"; then
 3099     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
 3100   else
 3101     no_builtin_flag=' -fno-builtin'
 3102   fi
 3103 fi
 3104 
 3105 # See if the linker supports building shared libraries.
 3106 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
 3107 echo "configure:3108: checking whether the linker ($LD) supports shared libraries" >&5
 3108 
 3109 allow_undefined_flag=
 3110 no_undefined_flag=
 3111 need_lib_prefix=unknown
 3112 need_version=unknown
 3113 # when you set need_version to no, make sure it does not cause -set_version
 3114 # flags to be left without arguments
 3115 archive_cmds=
 3116 archive_expsym_cmds=
 3117 old_archive_from_new_cmds=
 3118 old_archive_from_expsyms_cmds=
 3119 export_dynamic_flag_spec=
 3120 whole_archive_flag_spec=
 3121 thread_safe_flag_spec=
 3122 hardcode_into_libs=no
 3123 hardcode_libdir_flag_spec=
 3124 hardcode_libdir_separator=
 3125 hardcode_direct=no
 3126 hardcode_minus_L=no
 3127 hardcode_shlibpath_var=unsupported
 3128 runpath_var=
 3129 link_all_deplibs=unknown
 3130 always_export_symbols=no
 3131 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
 3132 # include_expsyms should be a list of space-separated symbols to be *always*
 3133 # included in the symbol list
 3134 include_expsyms=
 3135 # exclude_expsyms can be an egrep regular expression of symbols to exclude
 3136 # it will be wrapped by ` (' and `)$', so one must not match beginning or
 3137 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 3138 # as well as any symbol that contains `d'.
 3139 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 3140 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 3141 # platforms (ab)use it in PIC code, but their linkers get confused if
 3142 # the symbol is explicitly referenced.  Since portable code cannot
 3143 # rely on this symbol name, it's probably fine to never include it in
 3144 # preloaded symbol tables.
 3145 extract_expsyms_cmds=
 3146 
 3147 case $host_os in
 3148 cygwin* | mingw* | pw32*)
 3149   # FIXME: the MSVC++ port hasn't been tested in a loooong time
 3150   # When not using gcc, we currently assume that we are using
 3151   # Microsoft Visual C++.
 3152   if test "$GCC" != yes; then
 3153     with_gnu_ld=no
 3154   fi
 3155   ;;
 3156 openbsd*)
 3157   with_gnu_ld=no
 3158   ;;
 3159 esac
 3160 
 3161 ld_shlibs=yes
 3162 if test "$with_gnu_ld" = yes; then
 3163   # If archive_cmds runs LD, not CC, wlarc should be empty
 3164   wlarc='${wl}'
 3165 
 3166   # See if GNU ld supports shared libraries.
 3167   case $host_os in
 3168   aix3* | aix4* | aix5*)
 3169     # On AIX, the GNU linker is very broken
 3170     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
 3171     ld_shlibs=no
 3172     cat <<EOF 1>&2
 3173 
 3174 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
 3175 *** to be unable to reliably create shared libraries on AIX.
 3176 *** Therefore, libtool is disabling shared libraries support.  If you
 3177 *** really care for shared libraries, you may want to modify your PATH
 3178 *** so that a non-GNU linker is found, and then restart.
 3179 
 3180 EOF
 3181     ;;
 3182 
 3183   amigaos*)
 3184     archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 3185     hardcode_libdir_flag_spec='-L$libdir'
 3186     hardcode_minus_L=yes
 3187 
 3188     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 3189     # that the semantics of dynamic libraries on AmigaOS, at least up
 3190     # to version 4, is to share data among multiple programs linked
 3191     # with the same dynamic library.  Since this doesn't match the
 3192     # behavior of shared libraries on other platforms, we can use
 3193     # them.
 3194     ld_shlibs=no
 3195     ;;
 3196 
 3197   beos*)
 3198     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 3199       allow_undefined_flag=unsupported
 3200       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 3201       # support --undefined.  This deserves some investigation.  FIXME
 3202       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 3203     else
 3204       ld_shlibs=no
 3205     fi
 3206     ;;
 3207 
 3208   cygwin* | mingw* | pw32*)
 3209     # hardcode_libdir_flag_spec is actually meaningless, as there is
 3210     # no search path for DLLs.
 3211     hardcode_libdir_flag_spec='-L$libdir'
 3212     allow_undefined_flag=unsupported
 3213     always_export_symbols=yes
 3214 
 3215     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
 3216       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
 3217       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
 3218       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
 3219       else $CC -o impgen impgen.c ; fi)~
 3220       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
 3221 
 3222     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
 3223 
 3224     # cygwin and mingw dlls have different entry points and sets of symbols
 3225     # to exclude.
 3226     # FIXME: what about values for MSVC?
 3227     dll_entry=__cygwin_dll_entry@12
 3228     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
 3229     case $host_os in
 3230     mingw*)
 3231       # mingw values
 3232       dll_entry=_DllMainCRTStartup@12
 3233       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
 3234       ;;
 3235     esac
 3236 
 3237     # mingw and cygwin differ, and it's simplest to just exclude the union
 3238     # of the two symbol sets.
 3239     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
 3240 
 3241     # recent cygwin and mingw systems supply a stub DllMain which the user
 3242     # can override, but on older systems we have to supply one (in ltdll.c)
 3243     if test "x$lt_cv_need_dllmain" = "xyes"; then
 3244       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
 3245       ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
 3246     test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
 3247     else
 3248       ltdll_obj=
 3249       ltdll_cmds=
 3250     fi
 3251 
 3252     # Extract the symbol export list from an `--export-all' def file,
 3253     # then regenerate the def file from the symbol export list, so that
 3254     # the compiled dll only exports the symbol export list.
 3255     # Be careful not to strip the DATA tag left be newer dlltools.
 3256     export_symbols_cmds="$ltdll_cmds"'
 3257       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
 3258       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
 3259 
 3260     # If the export-symbols file already is a .def file (1st line
 3261     # is EXPORTS), use it as is.
 3262     # If DATA tags from a recent dlltool are present, honour them!
 3263     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
 3264     cp $export_symbols $output_objdir/$soname-def;
 3265       else
 3266     echo EXPORTS > $output_objdir/$soname-def;
 3267     _lt_hint=1;
 3268     cat $export_symbols | while read symbol; do
 3269      set dummy \$symbol;
 3270      case \$# in
 3271        2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
 3272        *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
 3273      esac;
 3274      _lt_hint=`expr 1 + \$_lt_hint`;
 3275     done;
 3276       fi~
 3277       '"$ltdll_cmds"'
 3278       $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
 3279       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
 3280       $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
 3281       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
 3282       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
 3283     ;;
 3284 
 3285   netbsd*)
 3286     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 3287       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 3288       wlarc=
 3289     else
 3290       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 3291       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 3292     fi
 3293     ;;
 3294 
 3295   solaris* | sysv5*)
 3296     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
 3297       ld_shlibs=no
 3298       cat <<EOF 1>&2
 3299 
 3300 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
 3301 *** create shared libraries on Solaris systems.  Therefore, libtool
 3302 *** is disabling shared libraries support.  We urge you to upgrade GNU
 3303 *** binutils to release 2.9.1 or newer.  Another option is to modify
 3304 *** your PATH or compiler configuration so that the native linker is
 3305 *** used, and then restart.
 3306 
 3307 EOF
 3308     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 3309       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 3310       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 3311     else
 3312       ld_shlibs=no
 3313     fi
 3314     ;;
 3315 
 3316   sunos4*)
 3317     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 3318     wlarc=
 3319     hardcode_direct=yes
 3320     hardcode_shlibpath_var=no
 3321     ;;
 3322 
 3323   *)
 3324     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 3325       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 3326       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 3327     else
 3328       ld_shlibs=no
 3329     fi
 3330     ;;
 3331   esac
 3332 
 3333   if test "$ld_shlibs" = yes; then
 3334     runpath_var=LD_RUN_PATH
 3335     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 3336     export_dynamic_flag_spec='${wl}--export-dynamic'
 3337     case $host_os in
 3338     cygwin* | mingw* | pw32*)
 3339       # dlltool doesn't understand --whole-archive et. al.
 3340       whole_archive_flag_spec=
 3341       ;;
 3342     *)
 3343       # ancient GNU ld didn't support --whole-archive et. al.
 3344       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
 3345     whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 3346       else
 3347     whole_archive_flag_spec=
 3348       fi
 3349       ;;
 3350     esac
 3351   fi
 3352 else
 3353   # PORTME fill in a description of your system's linker (not GNU ld)
 3354   case $host_os in
 3355   aix3*)
 3356     allow_undefined_flag=unsupported
 3357     always_export_symbols=yes
 3358     archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 3359     # Note: this linker hardcodes the directories in LIBPATH if there
 3360     # are no directories specified by -L.
 3361     hardcode_minus_L=yes
 3362     if test "$GCC" = yes && test -z "$link_static_flag"; then
 3363       # Neither direct hardcoding nor static linking is supported with a
 3364       # broken collect2.
 3365       hardcode_direct=unsupported
 3366     fi
 3367     ;;
 3368 
 3369   aix4* | aix5*)
 3370     if test "$host_cpu" = ia64; then
 3371       # On IA64, the linker does run time linking by default, so we don't
 3372       # have to do anything special.
 3373       aix_use_runtimelinking=no
 3374       exp_sym_flag='-Bexport'
 3375       no_entry_flag=""
 3376     else
 3377       aix_use_runtimelinking=no
 3378 
 3379       # Test if we are trying to use run time linking or normal
 3380       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 3381       # need to do runtime linking.
 3382       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 3383     for ld_flag in $LDFLAGS; do
 3384       if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 3385         aix_use_runtimelinking=yes
 3386         break
 3387       fi
 3388     done
 3389       esac
 3390 
 3391       exp_sym_flag='-bexport'
 3392       no_entry_flag='-bnoentry'
 3393     fi
 3394 
 3395     # When large executables or shared objects are built, AIX ld can
 3396     # have problems creating the table of contents.  If linking a library
 3397     # or program results in "error TOC overflow" add -mminimal-toc to
 3398     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 3399     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 3400 
 3401     hardcode_direct=yes
 3402     archive_cmds=''
 3403     hardcode_libdir_separator=':'
 3404     if test "$GCC" = yes; then
 3405       case $host_os in aix4.[012]|aix4.[012].*)
 3406     collect2name=`${CC} -print-prog-name=collect2`
 3407     if test -f "$collect2name" && \
 3408       strings "$collect2name" | grep resolve_lib_name >/dev/null
 3409     then
 3410       # We have reworked collect2
 3411       hardcode_direct=yes
 3412     else
 3413       # We have old collect2
 3414       hardcode_direct=unsupported
 3415       # It fails to find uninstalled libraries when the uninstalled
 3416       # path is not listed in the libpath.  Setting hardcode_minus_L
 3417       # to unsupported forces relinking
 3418       hardcode_minus_L=yes
 3419       hardcode_libdir_flag_spec='-L$libdir'
 3420       hardcode_libdir_separator=
 3421     fi
 3422       esac
 3423 
 3424       shared_flag='-shared'
 3425     else
 3426       # not using gcc
 3427       if test "$host_cpu" = ia64; then
 3428     shared_flag='${wl}-G'
 3429       else
 3430     if test "$aix_use_runtimelinking" = yes; then
 3431       shared_flag='${wl}-G'
 3432     else
 3433       shared_flag='${wl}-bM:SRE'
 3434     fi
 3435       fi
 3436     fi
 3437 
 3438     # It seems that -bexpall can do strange things, so it is better to
 3439     # generate a list of symbols to export.
 3440     always_export_symbols=yes
 3441     if test "$aix_use_runtimelinking" = yes; then
 3442       # Warning - without using the other runtime loading flags (-brtl),
 3443       # -berok will link without error, but may produce a broken library.
 3444       allow_undefined_flag='-berok'
 3445       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
 3446       archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 3447     else
 3448       if test "$host_cpu" = ia64; then
 3449     hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 3450     allow_undefined_flag="-z nodefs"
 3451     archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 3452       else
 3453     hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
 3454     # Warning - without using the other run time loading flags,
 3455     # -berok will link without error, but may produce a broken library.
 3456     allow_undefined_flag='${wl}-berok'
 3457     # This is a bit strange, but is similar to how AIX traditionally builds
 3458     # it's shared libraries.
 3459     archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
 3460       fi
 3461     fi
 3462     ;;
 3463 
 3464   amigaos*)
 3465     archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 3466     hardcode_libdir_flag_spec='-L$libdir'
 3467     hardcode_minus_L=yes
 3468     # see comment about different semantics on the GNU ld section
 3469     ld_shlibs=no
 3470     ;;
 3471 
 3472   cygwin* | mingw* | pw32*)
 3473     # When not using gcc, we currently assume that we are using
 3474     # Microsoft Visual C++.
 3475     # hardcode_libdir_flag_spec is actually meaningless, as there is
 3476     # no search path for DLLs.
 3477     hardcode_libdir_flag_spec=' '
 3478     allow_undefined_flag=unsupported
 3479     # Tell ltmain to make .lib files, not .a files.
 3480     libext=lib
 3481     # FIXME: Setting linknames here is a bad hack.
 3482     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 3483     # The linker will automatically build a .lib file if we build a DLL.
 3484     old_archive_from_new_cmds='true'
 3485     # FIXME: Should let the user specify the lib program.
 3486     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 3487     fix_srcfile_path='`cygpath -w "$srcfile"`'
 3488     ;;
 3489 
 3490   darwin* | rhapsody*)
 3491     case "$host_os" in
 3492     rhapsody* | darwin1.[012])
 3493       allow_undefined_flag='-undefined suppress'
 3494       ;;
 3495     *) # Darwin 1.3 on
 3496       allow_undefined_flag='-flat_namespace -undefined suppress'
 3497       ;;
 3498     esac
 3499     # FIXME: Relying on posixy $() will cause problems for
 3500     #        cross-compilation, but unfortunately the echo tests do not
 3501     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
 3502     #        `"' quotes if we put them in here... so don't!
 3503     archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
 3504     # We need to add '_' to the symbols in $export_symbols first
 3505     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
 3506     hardcode_direct=yes
 3507     hardcode_shlibpath_var=no
 3508     whole_archive_flag_spec='-all_load $convenience'
 3509     ;;
 3510 
 3511   freebsd1*)
 3512     ld_shlibs=no
 3513     ;;
 3514 
 3515   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 3516   # support.  Future versions do this automatically, but an explicit c++rt0.o
 3517   # does not break anything, and helps significantly (at the cost of a little
 3518   # extra space).
 3519   freebsd2.2*)
 3520     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 3521     hardcode_libdir_flag_spec='-R$libdir'
 3522     hardcode_direct=yes
 3523     hardcode_shlibpath_var=no
 3524     ;;
 3525 
 3526   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 3527   freebsd2*)
 3528     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 3529     hardcode_direct=yes
 3530     hardcode_minus_L=yes
 3531     hardcode_shlibpath_var=no
 3532     ;;
 3533 
 3534   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 3535   freebsd*)
 3536     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 3537     hardcode_libdir_flag_spec='-R$libdir'
 3538     hardcode_direct=yes
 3539     hardcode_shlibpath_var=no
 3540     ;;
 3541 
 3542   hpux9* | hpux10* | hpux11*)
 3543     case $host_os in
 3544     hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
 3545     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
 3546     esac
 3547     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 3548     hardcode_libdir_separator=:
 3549     hardcode_direct=yes
 3550     hardcode_minus_L=yes # Not in the search PATH, but as the default
 3551              # location of the library.
 3552     export_dynamic_flag_spec='${wl}-E'
 3553     ;;
 3554 
 3555   irix5* | irix6* | nonstopux*)
 3556     if test "$GCC" = yes; then
 3557       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 3558     else
 3559       archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 3560     fi
 3561     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 3562     hardcode_libdir_separator=:
 3563     link_all_deplibs=yes
 3564     ;;
 3565 
 3566   netbsd*)
 3567     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 3568       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 3569     else
 3570       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 3571     fi
 3572     hardcode_libdir_flag_spec='-R$libdir'
 3573     hardcode_direct=yes
 3574     hardcode_shlibpath_var=no
 3575     ;;
 3576 
 3577   newsos6)
 3578     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 3579     hardcode_direct=yes
 3580     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 3581     hardcode_libdir_separator=:
 3582     hardcode_shlibpath_var=no
 3583     ;;
 3584 
 3585   openbsd*)
 3586     hardcode_direct=yes
 3587     hardcode_shlibpath_var=no
 3588     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 3589       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
 3590       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 3591       export_dynamic_flag_spec='${wl}-E'
 3592     else
 3593       case "$host_os" in
 3594       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 3595     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 3596     hardcode_libdir_flag_spec='-R$libdir'
 3597         ;;
 3598       *)
 3599         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
 3600         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 3601         ;;
 3602       esac
 3603     fi
 3604     ;;
 3605 
 3606   os2*)
 3607     hardcode_libdir_flag_spec='-L$libdir'
 3608     hardcode_minus_L=yes
 3609     allow_undefined_flag=unsupported
 3610     archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 3611     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 3612     ;;
 3613 
 3614   osf3*)
 3615     if test "$GCC" = yes; then
 3616       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 3617       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 3618     else
 3619       allow_undefined_flag=' -expect_unresolved \*'
 3620       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 3621     fi
 3622     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 3623     hardcode_libdir_separator=:
 3624     ;;
 3625 
 3626   osf4* | osf5*)    # as osf3* with the addition of -msym flag
 3627     if test "$GCC" = yes; then
 3628       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 3629       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 3630       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 3631     else
 3632       allow_undefined_flag=' -expect_unresolved \*'
 3633       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 3634       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 3635       $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 3636 
 3637       #Both c and cxx compiler support -rpath directly
 3638       hardcode_libdir_flag_spec='-rpath $libdir'
 3639     fi
 3640     hardcode_libdir_separator=:
 3641     ;;
 3642 
 3643   sco3.2v5*)
 3644     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 3645     hardcode_shlibpath_var=no
 3646     runpath_var=LD_RUN_PATH
 3647     hardcode_runpath_var=yes
 3648     export_dynamic_flag_spec='${wl}-Bexport'
 3649     ;;
 3650 
 3651   solaris*)
 3652     # gcc --version < 3.0 without binutils cannot create self contained
 3653     # shared libraries reliably, requiring libgcc.a to resolve some of
 3654     # the object symbols generated in some cases.  Libraries that use
 3655     # assert need libgcc.a to resolve __eprintf, for example.  Linking
 3656     # a copy of libgcc.a into every shared library to guarantee resolving
 3657     # such symbols causes other problems:  According to Tim Van Holder
 3658     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
 3659     # (to the application) exception stack for one thing.
 3660     no_undefined_flag=' -z defs'
 3661     if test "$GCC" = yes; then
 3662       case `$CC --version 2>/dev/null` in
 3663       [12].*)
 3664     cat <<EOF 1>&2
 3665 
 3666 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
 3667 *** create self contained shared libraries on Solaris systems, without
 3668 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
 3669 *** -no-undefined support, which will at least allow you to build shared
 3670 *** libraries.  However, you may find that when you link such libraries
 3671 *** into an application without using GCC, you have to manually add
 3672 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
 3673 *** upgrade to a newer version of GCC.  Another option is to rebuild your
 3674 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
 3675 
 3676 EOF
 3677         no_undefined_flag=
 3678     ;;
 3679       esac
 3680     fi
 3681     # $CC -shared without GNU ld will not create a library from C++
 3682     # object files and a static libstdc++, better avoid it by now
 3683     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 3684     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 3685         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 3686     hardcode_libdir_flag_spec='-R$libdir'
 3687     hardcode_shlibpath_var=no
 3688     case $host_os in
 3689     solaris2.[0-5] | solaris2.[0-5].*) ;;
 3690     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 3691       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 3692     esac
 3693     link_all_deplibs=yes
 3694     ;;
 3695 
 3696   sunos4*)
 3697     if test "x$host_vendor" = xsequent; then
 3698       # Use $CC to link under sequent, because it throws in some extra .o
 3699       # files that make .init and .fini sections work.
 3700       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 3701     else
 3702       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 3703     fi
 3704     hardcode_libdir_flag_spec='-L$libdir'
 3705     hardcode_direct=yes
 3706     hardcode_minus_L=yes
 3707     hardcode_shlibpath_var=no
 3708     ;;
 3709 
 3710   sysv4)
 3711     if test "x$host_vendor" = xsno; then
 3712       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
 3713       hardcode_direct=yes # is this really true???
 3714     else
 3715       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 3716       hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 3717     fi
 3718     runpath_var='LD_RUN_PATH'
 3719     hardcode_shlibpath_var=no
 3720     ;;
 3721 
 3722   sysv4.3*)
 3723     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 3724     hardcode_shlibpath_var=no
 3725     export_dynamic_flag_spec='-Bexport'
 3726     ;;
 3727 
 3728   sysv5*)
 3729     no_undefined_flag=' -z text'
 3730     # $CC -shared without GNU ld will not create a library from C++
 3731     # object files and a static libstdc++, better avoid it by now
 3732     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 3733     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 3734         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 3735     hardcode_libdir_flag_spec=
 3736     hardcode_shlibpath_var=no
 3737     runpath_var='LD_RUN_PATH'
 3738     ;;
 3739 
 3740   uts4*)
 3741     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 3742     hardcode_libdir_flag_spec='-L$libdir'
 3743     hardcode_shlibpath_var=no
 3744     ;;
 3745 
 3746   dgux*)
 3747     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 3748     hardcode_libdir_flag_spec='-L$libdir'
 3749     hardcode_shlibpath_var=no
 3750     ;;
 3751 
 3752   sysv4*MP*)
 3753     if test -d /usr/nec; then
 3754       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 3755       hardcode_shlibpath_var=no
 3756       runpath_var=LD_RUN_PATH
 3757       hardcode_runpath_var=yes
 3758       ld_shlibs=yes
 3759     fi
 3760     ;;
 3761 
 3762   sysv4.2uw2*)
 3763     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 3764     hardcode_direct=yes
 3765     hardcode_minus_L=no
 3766     hardcode_shlibpath_var=no
 3767     hardcode_runpath_var=yes
 3768     runpath_var=LD_RUN_PATH
 3769     ;;
 3770 
 3771   sysv5uw7* | unixware7*)
 3772     no_undefined_flag='${wl}-z ${wl}text'
 3773     if test "$GCC" = yes; then
 3774       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 3775     else
 3776       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 3777     fi
 3778     runpath_var='LD_RUN_PATH'
 3779     hardcode_shlibpath_var=no
 3780     ;;
 3781 
 3782   *)
 3783     ld_shlibs=no
 3784     ;;
 3785   esac
 3786 fi
 3787 echo "$ac_t""$ld_shlibs" 1>&6
 3788 test "$ld_shlibs" = no && can_build_shared=no
 3789 
 3790 # Check hardcoding attributes.
 3791 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
 3792 echo "configure:3793: checking how to hardcode library paths into programs" >&5
 3793 hardcode_action=
 3794 if test -n "$hardcode_libdir_flag_spec" || \
 3795    test -n "$runpath_var"; then
 3796 
 3797   # We can hardcode non-existant directories.
 3798   if test "$hardcode_direct" != no &&
 3799      # If the only mechanism to avoid hardcoding is shlibpath_var, we
 3800      # have to relink, otherwise we might link with an installed library
 3801      # when we should be linking with a yet-to-be-installed one
 3802      ## test "$hardcode_shlibpath_var" != no &&
 3803      test "$hardcode_minus_L" != no; then
 3804     # Linking always hardcodes the temporary library directory.
 3805     hardcode_action=relink
 3806   else
 3807     # We can link without hardcoding, and we can hardcode nonexisting dirs.
 3808     hardcode_action=immediate
 3809   fi
 3810 else
 3811   # We cannot hardcode anything, or else we can only hardcode existing
 3812   # directories.
 3813   hardcode_action=unsupported
 3814 fi
 3815 echo "$ac_t""$hardcode_action" 1>&6
 3816 
 3817 striplib=
 3818 old_striplib=
 3819 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
 3820 echo "configure:3821: checking whether stripping libraries is possible" >&5
 3821 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 3822   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 3823   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 3824   echo "$ac_t""yes" 1>&6
 3825 else
 3826   echo "$ac_t""no" 1>&6
 3827 fi
 3828 
 3829 reload_cmds='$LD$reload_flag -o $output$reload_objs'
 3830 test -z "$deplibs_check_method" && deplibs_check_method=unknown
 3831 
 3832 # PORTME Fill in your ld.so characteristics
 3833 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
 3834 echo "configure:3835: checking dynamic linker characteristics" >&5
 3835 library_names_spec=
 3836 libname_spec='lib$name'
 3837 soname_spec=
 3838 postinstall_cmds=
 3839 postuninstall_cmds=
 3840 finish_cmds=
 3841 finish_eval=
 3842 shlibpath_var=
 3843 shlibpath_overrides_runpath=unknown
 3844 version_type=none
 3845 dynamic_linker="$host_os ld.so"
 3846 sys_lib_dlsearch_path_spec="/lib /usr/lib"
 3847 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 3848 
 3849 case $host_os in
 3850 aix3*)
 3851   version_type=linux
 3852   library_names_spec='${libname}${release}.so$versuffix $libname.a'
 3853   shlibpath_var=LIBPATH
 3854 
 3855   # AIX has no versioning support, so we append a major version to the name.
 3856   soname_spec='${libname}${release}.so$major'
 3857   ;;
 3858 
 3859 aix4* | aix5*)
 3860   version_type=linux
 3861   if test "$host_cpu" = ia64; then
 3862     # AIX 5 supports IA64
 3863     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
 3864     shlibpath_var=LD_LIBRARY_PATH
 3865   else
 3866     # With GCC up to 2.95.x, collect2 would create an import file
 3867     # for dependence libraries.  The import file would start with
 3868     # the line `#! .'.  This would cause the generated library to
 3869     # depend on `.', always an invalid library.  This was fixed in
 3870     # development snapshots of GCC prior to 3.0.
 3871     case $host_os in
 3872       aix4 | aix4.[01] | aix4.[01].*)
 3873     if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 3874          echo ' yes '
 3875          echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 3876       :
 3877     else
 3878       can_build_shared=no
 3879     fi
 3880     ;;
 3881     esac
 3882     # AIX (on Power*) has no versioning support, so currently we can
 3883     # not hardcode correct soname into executable. Probably we can
 3884     # add versioning support to collect2, so additional links can
 3885     # be useful in future.
 3886     if test "$aix_use_runtimelinking" = yes; then
 3887       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 3888       # instead of lib<name>.a to let people know that these are not
 3889       # typical AIX shared libraries.
 3890       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 3891     else
 3892       # We preserve .a as extension for shared libraries through AIX4.2
 3893       # and later when we are not doing run time linking.
 3894       library_names_spec='${libname}${release}.a $libname.a'
 3895       soname_spec='${libname}${release}.so$major'
 3896     fi
 3897     shlibpath_var=LIBPATH
 3898   fi
 3899   ;;
 3900 
 3901 amigaos*)
 3902   library_names_spec='$libname.ixlibrary $libname.a'
 3903   # Create ${libname}_ixlibrary.a entries in /sys/libs.
 3904   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
 3905   ;;
 3906 
 3907 beos*)
 3908   library_names_spec='${libname}.so'
 3909   dynamic_linker="$host_os ld.so"
 3910   shlibpath_var=LIBRARY_PATH
 3911   ;;
 3912 
 3913 bsdi4*)
 3914   version_type=linux
 3915   need_version=no
 3916   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 3917   soname_spec='${libname}${release}.so$major'
 3918   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 3919   shlibpath_var=LD_LIBRARY_PATH
 3920   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 3921   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 3922   export_dynamic_flag_spec=-rdynamic
 3923   # the default ld.so.conf also contains /usr/contrib/lib and
 3924   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 3925   # libtool to hard-code these into programs
 3926   ;;
 3927 
 3928 cygwin* | mingw* | pw32*)
 3929   version_type=windows
 3930   need_version=no
 3931   need_lib_prefix=no
 3932   case $GCC,$host_os in
 3933   yes,cygwin*)
 3934     library_names_spec='$libname.dll.a'
 3935     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
 3936     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
 3937       dldir=$destdir/`dirname \$dlpath`~
 3938       test -d \$dldir || mkdir -p \$dldir~
 3939       $install_prog .libs/$dlname \$dldir/$dlname'
 3940     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
 3941       dlpath=$dir/\$dldll~
 3942        $rm \$dlpath'
 3943     ;;
 3944   yes,mingw*)
 3945     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
 3946     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
 3947     ;;
 3948   yes,pw32*)
 3949     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
 3950     ;;
 3951   *)
 3952     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
 3953     ;;
 3954   esac
 3955   dynamic_linker='Win32 ld.exe'
 3956   # FIXME: first we should search . and the directory the executable is in
 3957   shlibpath_var=PATH
 3958   ;;
 3959 
 3960 darwin* | rhapsody*)
 3961   dynamic_linker="$host_os dyld"
 3962   version_type=darwin
 3963   need_lib_prefix=no
 3964   need_version=no
 3965   # FIXME: Relying on posixy $() will cause problems for
 3966   #        cross-compilation, but unfortunately the echo tests do not
 3967   #        yet detect zsh echo's removal of \ escapes.
 3968   library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
 3969   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
 3970   shlibpath_overrides_runpath=yes
 3971   shlibpath_var=DYLD_LIBRARY_PATH
 3972   ;;
 3973 
 3974 freebsd1*)
 3975   dynamic_linker=no
 3976   ;;
 3977 
 3978 freebsd*)
 3979   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 3980   version_type=freebsd-$objformat
 3981   case $version_type in
 3982     freebsd-elf*)
 3983       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
 3984       need_version=no
 3985       need_lib_prefix=no
 3986       ;;
 3987     freebsd-*)
 3988       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
 3989       need_version=yes
 3990       ;;
 3991   esac
 3992   shlibpath_var=LD_LIBRARY_PATH
 3993   case $host_os in
 3994   freebsd2*)
 3995     shlibpath_overrides_runpath=yes
 3996     ;;
 3997   *)
 3998     shlibpath_overrides_runpath=no
 3999     hardcode_into_libs=yes
 4000     ;;
 4001   esac
 4002   ;;
 4003 
 4004 gnu*)
 4005   version_type=linux
 4006   need_lib_prefix=no
 4007   need_version=no
 4008   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
 4009   soname_spec='${libname}${release}.so$major'
 4010   shlibpath_var=LD_LIBRARY_PATH
 4011   hardcode_into_libs=yes
 4012   ;;
 4013 
 4014 hpux9* | hpux10* | hpux11*)
 4015   # Give a soname corresponding to the major version so that dld.sl refuses to
 4016   # link against other versions.
 4017   dynamic_linker="$host_os dld.sl"
 4018   version_type=sunos
 4019   need_lib_prefix=no
 4020   need_version=no
 4021   shlibpath_var=SHLIB_PATH
 4022   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 4023   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
 4024   soname_spec='${libname}${release}.sl$major'
 4025   # HP-UX runs *really* slowly unless shared libraries are mode 555.
 4026   postinstall_cmds='chmod 555 $lib'
 4027   ;;
 4028 
 4029 irix5* | irix6* | nonstopux*)
 4030   case $host_os in
 4031     nonstopux*) version_type=nonstopux ;;
 4032     *)          version_type=irix ;;
 4033   esac
 4034   need_lib_prefix=no
 4035   need_version=no
 4036   soname_spec='${libname}${release}.so$major'
 4037   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
 4038   case $host_os in
 4039   irix5* | nonstopux*)
 4040     libsuff= shlibsuff=
 4041     ;;
 4042   *)
 4043     case $LD in # libtool.m4 will add one of these switches to LD
 4044     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
 4045     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
 4046     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
 4047     *) libsuff= shlibsuff= libmagic=never-match;;
 4048     esac
 4049     ;;
 4050   esac
 4051   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 4052   shlibpath_overrides_runpath=no
 4053   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 4054   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 4055   ;;
 4056 
 4057 # No shared lib support for Linux oldld, aout, or coff.
 4058 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
 4059   dynamic_linker=no
 4060   ;;
 4061 
 4062 # This must be Linux ELF.
 4063 linux-gnu*)
 4064   version_type=linux
 4065   need_lib_prefix=no
 4066   need_version=no
 4067   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 4068   soname_spec='${libname}${release}.so$major'
 4069   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 4070   shlibpath_var=LD_LIBRARY_PATH
 4071   shlibpath_overrides_runpath=no
 4072   # This implies no fast_install, which is unacceptable.
 4073   # Some rework will be needed to allow for fast_install
 4074   # before this can be enabled.
 4075   hardcode_into_libs=yes
 4076 
 4077   # We used to test for /lib/ld.so.1 and disable shared libraries on
 4078   # powerpc, because MkLinux only supported shared libraries with the
 4079   # GNU dynamic linker.  Since this was broken with cross compilers,
 4080   # most powerpc-linux boxes support dynamic linking these days and
 4081   # people can always --disable-shared, the test was removed, and we
 4082   # assume the GNU/Linux dynamic linker is in use.
 4083   dynamic_linker='GNU/Linux ld.so'
 4084   ;;
 4085 
 4086 netbsd*)
 4087   version_type=sunos
 4088   need_lib_prefix=no
 4089   need_version=no
 4090   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 4091     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 4092     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 4093     dynamic_linker='NetBSD (a.out) ld.so'
 4094   else
 4095     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
 4096     soname_spec='${libname}${release}.so$major'
 4097     dynamic_linker='NetBSD ld.elf_so'
 4098   fi
 4099   shlibpath_var=LD_LIBRARY_PATH
 4100   shlibpath_overrides_runpath=yes
 4101   hardcode_into_libs=yes
 4102   ;;
 4103 
 4104 newsos6)
 4105   version_type=linux
 4106   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 4107   shlibpath_var=LD_LIBRARY_PATH
 4108   shlibpath_overrides_runpath=yes
 4109   ;;
 4110 
 4111 openbsd*)
 4112   version_type=sunos
 4113   need_lib_prefix=no
 4114   need_version=no
 4115   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 4116     case "$host_os" in
 4117     openbsd2.[89] | openbsd2.[89].*)
 4118       shlibpath_overrides_runpath=no
 4119       ;;
 4120     *)
 4121       shlibpath_overrides_runpath=yes
 4122       ;;
 4123     esac
 4124   else
 4125     shlibpath_overrides_runpath=yes
 4126   fi
 4127   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 4128   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 4129   shlibpath_var=LD_LIBRARY_PATH
 4130   ;;
 4131 
 4132 os2*)
 4133   libname_spec='$name'
 4134   need_lib_prefix=no
 4135   library_names_spec='$libname.dll $libname.a'
 4136   dynamic_linker='OS/2 ld.exe'
 4137   shlibpath_var=LIBPATH
 4138   ;;
 4139 
 4140 osf3* | osf4* | osf5*)
 4141   version_type=osf
 4142   need_version=no
 4143   need_lib_prefix=no
 4144   soname_spec='${libname}${release}.so'
 4145   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
 4146   shlibpath_var=LD_LIBRARY_PATH
 4147   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 4148   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 4149   ;;
 4150 
 4151 sco3.2v5*)
 4152   version_type=osf
 4153   soname_spec='${libname}${release}.so$major'
 4154   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 4155   shlibpath_var=LD_LIBRARY_PATH
 4156   ;;
 4157 
 4158 solaris*)
 4159   version_type=linux
 4160   need_lib_prefix=no
 4161   need_version=no
 4162   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 4163   soname_spec='${libname}${release}.so$major'
 4164   shlibpath_var=LD_LIBRARY_PATH
 4165   shlibpath_overrides_runpath=yes
 4166   hardcode_into_libs=yes
 4167   # ldd complains unless libraries are executable
 4168   postinstall_cmds='chmod +x $lib'
 4169   ;;
 4170 
 4171 sunos4*)
 4172   version_type=sunos
 4173   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 4174   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 4175   shlibpath_var=LD_LIBRARY_PATH
 4176   shlibpath_overrides_runpath=yes
 4177   if test "$with_gnu_ld" = yes; then
 4178     need_lib_prefix=no
 4179   fi
 4180   need_version=yes
 4181   ;;
 4182 
 4183 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 4184   version_type=linux
 4185   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 4186   soname_spec='${libname}${release}.so$major'
 4187   shlibpath_var=LD_LIBRARY_PATH
 4188   case $host_vendor in
 4189     sni)
 4190       shlibpath_overrides_runpath=no
 4191       ;;
 4192     motorola)
 4193       need_lib_prefix=no
 4194       need_version=no
 4195       shlibpath_overrides_runpath=no
 4196       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 4197       ;;
 4198   esac
 4199   ;;
 4200 
 4201 uts4*)
 4202   version_type=linux
 4203   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 4204   soname_spec='${libname}${release}.so$major'
 4205   shlibpath_var=LD_LIBRARY_PATH
 4206   ;;
 4207 
 4208 dgux*)
 4209   version_type=linux
 4210   need_lib_prefix=no
 4211   need_version=no
 4212   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 4213   soname_spec='${libname}${release}.so$major'
 4214   shlibpath_var=LD_LIBRARY_PATH
 4215   ;;
 4216 
 4217 sysv4*MP*)
 4218   if test -d /usr/nec ;then
 4219     version_type=linux
 4220     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
 4221     soname_spec='$libname.so.$major'
 4222     shlibpath_var=LD_LIBRARY_PATH
 4223   fi
 4224   ;;
 4225 
 4226 *)
 4227   dynamic_linker=no
 4228   ;;
 4229 esac
 4230 echo "$ac_t""$dynamic_linker" 1>&6
 4231 test "$dynamic_linker" = no && can_build_shared=no
 4232 
 4233 # Report the final consequences.
 4234 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
 4235 echo "configure:4236: checking if libtool supports shared libraries" >&5
 4236 echo "$ac_t""$can_build_shared" 1>&6
 4237 
 4238 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
 4239 echo "configure:4240: checking whether to build shared libraries" >&5
 4240 test "$can_build_shared" = "no" && enable_shared=no
 4241 
 4242 # On AIX, shared libraries and static libraries use the same namespace, and
 4243 # are all built from PIC.
 4244 case "$host_os" in
 4245 aix3*)
 4246   test "$enable_shared" = yes && enable_static=no
 4247   if test -n "$RANLIB"; then
 4248     archive_cmds="$archive_cmds~\$RANLIB \$lib"
 4249     postinstall_cmds='$RANLIB $lib'
 4250   fi
 4251   ;;
 4252 
 4253 aix4*)
 4254   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 4255     test "$enable_shared" = yes && enable_static=no
 4256   fi
 4257   ;;
 4258 esac
 4259 echo "$ac_t""$enable_shared" 1>&6
 4260 
 4261 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
 4262 echo "configure:4263: checking whether to build static libraries" >&5
 4263 # Make sure either enable_shared or enable_static is yes.
 4264 test "$enable_shared" = yes || enable_static=yes
 4265 echo "$ac_t""$enable_static" 1>&6
 4266 
 4267 if test "$hardcode_action" = relink; then
 4268   # Fast installation is not supported
 4269   enable_fast_install=no
 4270 elif test "$shlibpath_overrides_runpath" = yes ||
 4271      test "$enable_shared" = no; then
 4272   # Fast installation is not necessary
 4273   enable_fast_install=needless
 4274 fi
 4275 
 4276 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 4277 if test "$GCC" = yes; then
 4278   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 4279 fi
 4280 
 4281 if test "x$enable_dlopen" != xyes; then
 4282   enable_dlopen=unknown
 4283   enable_dlopen_self=unknown
 4284   enable_dlopen_self_static=unknown
 4285 else
 4286   lt_cv_dlopen=no
 4287   lt_cv_dlopen_libs=
 4288 
 4289   case $host_os in
 4290   beos*)
 4291     lt_cv_dlopen="load_add_on"
 4292     lt_cv_dlopen_libs=
 4293     lt_cv_dlopen_self=yes
 4294     ;;
 4295 
 4296   cygwin* | mingw* | pw32*)
 4297     lt_cv_dlopen="LoadLibrary"
 4298     lt_cv_dlopen_libs=
 4299    ;;
 4300 
 4301   *)
 4302     echo $ac_n "checking for shl_load""... $ac_c" 1>&6
 4303 echo "configure:4304: checking for shl_load" >&5
 4304 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
 4305   echo $ac_n "(cached) $ac_c" 1>&6
 4306 else
 4307   cat > conftest.$ac_ext <<EOF
 4308 #line 4309 "configure"
 4309 #include "confdefs.h"
 4310 /* System header to define __stub macros and hopefully few prototypes,
 4311     which can conflict with char shl_load(); below.  */
 4312 #include <assert.h>
 4313 /* Override any gcc2 internal prototype to avoid an error.  */
 4314 /* We use char because int might match the return type of a gcc2
 4315     builtin and then its argument prototype would still apply.  */
 4316 char shl_load();
 4317 
 4318 int main() {
 4319 
 4320 /* The GNU C library defines this for functions which it implements
 4321     to always fail with ENOSYS.  Some functions are actually named
 4322     something starting with __ and the normal name is an alias.  */
 4323 #if defined (__stub_shl_load) || defined (__stub___shl_load)
 4324 choke me
 4325 #else
 4326 shl_load();
 4327 #endif
 4328 
 4329 ; return 0; }
 4330 EOF
 4331 if { (eval echo configure:4332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 4332   rm -rf conftest*
 4333   eval "ac_cv_func_shl_load=yes"
 4334 else
 4335   echo "configure: failed program was:" >&5
 4336   cat conftest.$ac_ext >&5
 4337   rm -rf conftest*
 4338   eval "ac_cv_func_shl_load=no"
 4339 fi
 4340 rm -f conftest*
 4341 fi
 4342 
 4343 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
 4344   echo "$ac_t""yes" 1>&6
 4345   lt_cv_dlopen="shl_load"
 4346 else
 4347   echo "$ac_t""no" 1>&6
 4348 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
 4349 echo "configure:4350: checking for shl_load in -ldld" >&5
 4350 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
 4351 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 4352   echo $ac_n "(cached) $ac_c" 1>&6
 4353 else
 4354   ac_save_LIBS="$LIBS"
 4355 LIBS="-ldld  $LIBS"
 4356 cat > conftest.$ac_ext <<EOF
 4357 #line 4358 "configure"
 4358 #include "confdefs.h"
 4359 /* Override any gcc2 internal prototype to avoid an error.  */
 4360 /* We use char because int might match the return type of a gcc2
 4361     builtin and then its argument prototype would still apply.  */
 4362 char shl_load();
 4363 
 4364 int main() {
 4365 shl_load()
 4366 ; return 0; }
 4367 EOF
 4368 if { (eval echo configure:4369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 4369   rm -rf conftest*
 4370   eval "ac_cv_lib_$ac_lib_var=yes"
 4371 else
 4372   echo "configure: failed program was:" >&5
 4373   cat conftest.$ac_ext >&5
 4374   rm -rf conftest*
 4375   eval "ac_cv_lib_$ac_lib_var=no"
 4376 fi
 4377 rm -f conftest*
 4378 LIBS="$ac_save_LIBS"
 4379 
 4380 fi
 4381 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 4382   echo "$ac_t""yes" 1>&6
 4383   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 4384 else
 4385   echo "$ac_t""no" 1>&6
 4386 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
 4387 echo "configure:4388: checking for dlopen" >&5
 4388 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
 4389   echo $ac_n "(cached) $ac_c" 1>&6
 4390 else
 4391   cat > conftest.$ac_ext <<EOF
 4392 #line 4393 "configure"
 4393 #include "confdefs.h"
 4394 /* System header to define __stub macros and hopefully few prototypes,
 4395     which can conflict with char dlopen(); below.  */
 4396 #include <assert.h>
 4397 /* Override any gcc2 internal prototype to avoid an error.  */
 4398 /* We use char because int might match the return type of a gcc2
 4399     builtin and then its argument prototype would still apply.  */
 4400 char dlopen();
 4401 
 4402 int main() {
 4403 
 4404 /* The GNU C library defines this for functions which it implements
 4405     to always fail with ENOSYS.  Some functions are actually named
 4406     something starting with __ and the normal name is an alias.  */
 4407 #if defined (__stub_dlopen) || defined (__stub___dlopen)
 4408 choke me
 4409 #else
 4410 dlopen();
 4411 #endif
 4412 
 4413 ; return 0; }
 4414 EOF
 4415 if { (eval echo configure:4416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 4416   rm -rf conftest*
 4417   eval "ac_cv_func_dlopen=yes"
 4418 else
 4419   echo "configure: failed program was:" >&5
 4420   cat conftest.$ac_ext >&5
 4421   rm -rf conftest*
 4422   eval "ac_cv_func_dlopen=no"
 4423 fi
 4424 rm -f conftest*
 4425 fi
 4426 
 4427 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
 4428   echo "$ac_t""yes" 1>&6
 4429   lt_cv_dlopen="dlopen"
 4430 else
 4431   echo "$ac_t""no" 1>&6
 4432 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
 4433 echo "configure:4434: checking for dlopen in -ldl" >&5
 4434 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
 4435 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 4436   echo $ac_n "(cached) $ac_c" 1>&6
 4437 else
 4438   ac_save_LIBS="$LIBS"
 4439 LIBS="-ldl  $LIBS"
 4440 cat > conftest.$ac_ext <<EOF
 4441 #line 4442 "configure"
 4442 #include "confdefs.h"
 4443 /* Override any gcc2 internal prototype to avoid an error.  */
 4444 /* We use char because int might match the return type of a gcc2
 4445     builtin and then its argument prototype would still apply.  */
 4446 char dlopen();
 4447 
 4448 int main() {
 4449 dlopen()
 4450 ; return 0; }
 4451 EOF
 4452 if { (eval echo configure:4453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 4453   rm -rf conftest*
 4454   eval "ac_cv_lib_$ac_lib_var=yes"
 4455 else
 4456   echo "configure: failed program was:" >&5
 4457   cat conftest.$ac_ext >&5
 4458   rm -rf conftest*
 4459   eval "ac_cv_lib_$ac_lib_var=no"
 4460 fi
 4461 rm -f conftest*
 4462 LIBS="$ac_save_LIBS"
 4463 
 4464 fi
 4465 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 4466   echo "$ac_t""yes" 1>&6
 4467   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 4468 else
 4469   echo "$ac_t""no" 1>&6
 4470 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
 4471 echo "configure:4472: checking for dlopen in -lsvld" >&5
 4472 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
 4473 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 4474   echo $ac_n "(cached) $ac_c" 1>&6
 4475 else
 4476   ac_save_LIBS="$LIBS"
 4477 LIBS="-lsvld  $LIBS"
 4478 cat > conftest.$ac_ext <<EOF
 4479 #line 4480 "configure"
 4480 #include "confdefs.h"
 4481 /* Override any gcc2 internal prototype to avoid an error.  */
 4482 /* We use char because int might match the return type of a gcc2
 4483     builtin and then its argument prototype would still apply.  */
 4484 char dlopen();
 4485 
 4486 int main() {
 4487 dlopen()
 4488 ; return 0; }
 4489 EOF
 4490 if { (eval echo configure:4491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 4491   rm -rf conftest*
 4492   eval "ac_cv_lib_$ac_lib_var=yes"
 4493 else
 4494   echo "configure: failed program was:" >&5
 4495   cat conftest.$ac_ext >&5
 4496   rm -rf conftest*
 4497   eval "ac_cv_lib_$ac_lib_var=no"
 4498 fi
 4499 rm -f conftest*
 4500 LIBS="$ac_save_LIBS"
 4501 
 4502 fi
 4503 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 4504   echo "$ac_t""yes" 1>&6
 4505   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 4506 else
 4507   echo "$ac_t""no" 1>&6
 4508 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
 4509 echo "configure:4510: checking for dld_link in -ldld" >&5
 4510 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
 4511 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 4512   echo $ac_n "(cached) $ac_c" 1>&6
 4513 else
 4514   ac_save_LIBS="$LIBS"
 4515 LIBS="-ldld  $LIBS"
 4516 cat > conftest.$ac_ext <<EOF
 4517 #line 4518 "configure"
 4518 #include "confdefs.h"
 4519 /* Override any gcc2 internal prototype to avoid an error.  */
 4520 /* We use char because int might match the return type of a gcc2
 4521     builtin and then its argument prototype would still apply.  */
 4522 char dld_link();
 4523 
 4524 int main() {
 4525 dld_link()
 4526 ; return 0; }
 4527 EOF
 4528 if { (eval echo configure:4529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 4529   rm -rf conftest*
 4530   eval "ac_cv_lib_$ac_lib_var=yes"
 4531 else
 4532   echo "configure: failed program was:" >&5
 4533   cat conftest.$ac_ext >&5
 4534   rm -rf conftest*
 4535   eval "ac_cv_lib_$ac_lib_var=no"
 4536 fi
 4537 rm -f conftest*
 4538 LIBS="$ac_save_LIBS"
 4539 
 4540 fi
 4541 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 4542   echo "$ac_t""yes" 1>&6
 4543   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 4544 else
 4545   echo "$ac_t""no" 1>&6
 4546 fi
 4547 
 4548           
 4549 fi
 4550 
 4551         
 4552 fi
 4553 
 4554       
 4555 fi
 4556 
 4557     
 4558 fi
 4559 
 4560       
 4561 fi
 4562 
 4563     ;;
 4564   esac
 4565 
 4566   if test "x$lt_cv_dlopen" != xno; then
 4567     enable_dlopen=yes
 4568   else
 4569     enable_dlopen=no
 4570   fi
 4571 
 4572   case $lt_cv_dlopen in
 4573   dlopen)
 4574     save_CPPFLAGS="$CPPFLAGS"
 4575         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 4576 
 4577     save_LDFLAGS="$LDFLAGS"
 4578     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 4579 
 4580     save_LIBS="$LIBS"
 4581     LIBS="$lt_cv_dlopen_libs $LIBS"
 4582 
 4583     echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
 4584 echo "configure:4585: checking whether a program can dlopen itself" >&5
 4585 if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
 4586   echo $ac_n "(cached) $ac_c" 1>&6
 4587 else
 4588       if test "$cross_compiling" = yes; then :
 4589   lt_cv_dlopen_self=cross
 4590 else
 4591     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 4592   lt_status=$lt_dlunknown
 4593   cat > conftest.$ac_ext <<EOF
 4594 #line 4595 "configure"
 4595 #include "confdefs.h"
 4596 
 4597 #if HAVE_DLFCN_H
 4598 #include <dlfcn.h>
 4599 #endif
 4600 
 4601 #include <stdio.h>
 4602 
 4603 #ifdef RTLD_GLOBAL
 4604 #  define LT_DLGLOBAL       RTLD_GLOBAL
 4605 #else
 4606 #  ifdef DL_GLOBAL
 4607 #    define LT_DLGLOBAL     DL_GLOBAL
 4608 #  else
 4609 #    define LT_DLGLOBAL     0
 4610 #  endif
 4611 #endif
 4612 
 4613 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 4614    find out it does not work in some platform. */
 4615 #ifndef LT_DLLAZY_OR_NOW
 4616 #  ifdef RTLD_LAZY
 4617 #    define LT_DLLAZY_OR_NOW        RTLD_LAZY
 4618 #  else
 4619 #    ifdef DL_LAZY
 4620 #      define LT_DLLAZY_OR_NOW      DL_LAZY
 4621 #    else
 4622 #      ifdef RTLD_NOW
 4623 #        define LT_DLLAZY_OR_NOW    RTLD_NOW
 4624 #      else
 4625 #        ifdef DL_NOW
 4626 #          define LT_DLLAZY_OR_NOW  DL_NOW
 4627 #        else
 4628 #          define LT_DLLAZY_OR_NOW  0
 4629 #        endif
 4630 #      endif
 4631 #    endif
 4632 #  endif
 4633 #endif
 4634 
 4635 #ifdef __cplusplus
 4636 extern "C" void exit (int);
 4637 #endif
 4638 
 4639 void fnord() { int i=42;}
 4640 int main ()
 4641 {
 4642   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 4643   int status = $lt_dlunknown;
 4644 
 4645   if (self)
 4646     {
 4647       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 4648       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 4649       /* dlclose (self); */
 4650     }
 4651 
 4652     exit (status);
 4653 }
 4654 EOF
 4655   if { (eval echo configure:4656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
 4656     (./conftest; exit; ) 2>/dev/null
 4657     lt_status=$?
 4658     case x$lt_status in
 4659       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 4660       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 4661       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 4662     esac
 4663   else :
 4664     # compilation failed
 4665     lt_cv_dlopen_self=no
 4666   fi
 4667 fi
 4668 rm -fr conftest*
 4669 
 4670     
 4671 fi
 4672 
 4673 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
 4674 
 4675     if test "x$lt_cv_dlopen_self" = xyes; then
 4676       LDFLAGS="$LDFLAGS $link_static_flag"
 4677       echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
 4678 echo "configure:4679: checking whether a statically linked program can dlopen itself" >&5
 4679 if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
 4680   echo $ac_n "(cached) $ac_c" 1>&6
 4681 else
 4682       if test "$cross_compiling" = yes; then :
 4683   lt_cv_dlopen_self_static=cross
 4684 else
 4685     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 4686   lt_status=$lt_dlunknown
 4687   cat > conftest.$ac_ext <<EOF
 4688 #line 4689 "configure"
 4689 #include "confdefs.h"
 4690 
 4691 #if HAVE_DLFCN_H
 4692 #include <dlfcn.h>
 4693 #endif
 4694 
 4695 #include <stdio.h>
 4696 
 4697 #ifdef RTLD_GLOBAL
 4698 #  define LT_DLGLOBAL       RTLD_GLOBAL
 4699 #else
 4700 #  ifdef DL_GLOBAL
 4701 #    define LT_DLGLOBAL     DL_GLOBAL
 4702 #  else
 4703 #    define LT_DLGLOBAL     0
 4704 #  endif
 4705 #endif
 4706 
 4707 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 4708    find out it does not work in some platform. */
 4709 #ifndef LT_DLLAZY_OR_NOW
 4710 #  ifdef RTLD_LAZY
 4711 #    define LT_DLLAZY_OR_NOW        RTLD_LAZY
 4712 #  else
 4713 #    ifdef DL_LAZY
 4714 #      define LT_DLLAZY_OR_NOW      DL_LAZY
 4715 #    else
 4716 #      ifdef RTLD_NOW
 4717 #        define LT_DLLAZY_OR_NOW    RTLD_NOW
 4718 #      else
 4719 #        ifdef DL_NOW
 4720 #          define LT_DLLAZY_OR_NOW  DL_NOW
 4721 #        else
 4722 #          define LT_DLLAZY_OR_NOW  0
 4723 #        endif
 4724 #      endif
 4725 #    endif
 4726 #  endif
 4727 #endif
 4728 
 4729 #ifdef __cplusplus
 4730 extern "C" void exit (int);
 4731 #endif
 4732 
 4733 void fnord() { int i=42;}
 4734 int main ()
 4735 {
 4736   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 4737   int status = $lt_dlunknown;
 4738 
 4739   if (self)
 4740     {
 4741       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 4742       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 4743       /* dlclose (self); */
 4744     }
 4745 
 4746     exit (status);
 4747 }
 4748 EOF
 4749   if { (eval echo configure:4750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
 4750     (./conftest; exit; ) 2>/dev/null
 4751     lt_status=$?
 4752     case x$lt_status in
 4753       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 4754       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 4755       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 4756     esac
 4757   else :
 4758     # compilation failed
 4759     lt_cv_dlopen_self_static=no
 4760   fi
 4761 fi
 4762 rm -fr conftest*
 4763 
 4764       
 4765 fi
 4766 
 4767 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
 4768     fi
 4769 
 4770     CPPFLAGS="$save_CPPFLAGS"
 4771     LDFLAGS="$save_LDFLAGS"
 4772     LIBS="$save_LIBS"
 4773     ;;
 4774   esac
 4775 
 4776   case $lt_cv_dlopen_self in
 4777   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 4778   *) enable_dlopen_self=unknown ;;
 4779   esac
 4780 
 4781   case $lt_cv_dlopen_self_static in
 4782   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 4783   *) enable_dlopen_self_static=unknown ;;
 4784   esac
 4785 fi
 4786 
 4787 
 4788 if test "$enable_shared" = yes && test "$GCC" = yes; then
 4789   case $archive_cmds in
 4790   *'~'*)
 4791     # FIXME: we may have to deal with multi-command sequences.
 4792     ;;
 4793   '$CC '*)
 4794     # Test whether the compiler implicitly links with -lc since on some
 4795     # systems, -lgcc has to come before -lc. If gcc already passes -lc
 4796     # to ld, don't add -lc before -lgcc.
 4797     echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
 4798 echo "configure:4799: checking whether -lc should be explicitly linked in" >&5
 4799     if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
 4800   echo $ac_n "(cached) $ac_c" 1>&6
 4801 else
 4802   $rm conftest*
 4803     echo 'static int dummy;' > conftest.$ac_ext
 4804 
 4805     if { (eval echo configure:4806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 4806       soname=conftest
 4807       lib=conftest
 4808       libobjs=conftest.$ac_objext
 4809       deplibs=
 4810       wl=$lt_cv_prog_cc_wl
 4811       compiler_flags=-v
 4812       linker_flags=-v
 4813       verstring=
 4814       output_objdir=.
 4815       libname=conftest
 4816       save_allow_undefined_flag=$allow_undefined_flag
 4817       allow_undefined_flag=
 4818       if { (eval echo configure:4819: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
 4819       then
 4820     lt_cv_archive_cmds_need_lc=no
 4821       else
 4822     lt_cv_archive_cmds_need_lc=yes
 4823       fi
 4824       allow_undefined_flag=$save_allow_undefined_flag
 4825     else
 4826       cat conftest.err 1>&5
 4827     fi
 4828 fi
 4829 
 4830     echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
 4831     ;;
 4832   esac
 4833 fi
 4834 need_lc=${lt_cv_archive_cmds_need_lc-yes}
 4835 
 4836 # The second clause should only fire when bootstrapping the
 4837 # libtool distribution, otherwise you forgot to ship ltmain.sh
 4838 # with your package, and you will get complaints that there are
 4839 # no rules to generate ltmain.sh.
 4840 if test -f "$ltmain"; then
 4841   :
 4842 else
 4843   # If there is no Makefile yet, we rely on a make rule to execute
 4844   # `config.status --recheck' to rerun these tests and create the
 4845   # libtool script then.
 4846   test -f Makefile && make "$ltmain"
 4847 fi
 4848 
 4849 if test -f "$ltmain"; then
 4850   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
 4851   $rm -f "${ofile}T"
 4852 
 4853   echo creating $ofile
 4854 
 4855   # Now quote all the things that may contain metacharacters while being
 4856   # careful not to overquote the AC_SUBSTed values.  We take copies of the
 4857   # variables and quote the copies for generation of the libtool script.
 4858   for var in echo old_CC old_CFLAGS \
 4859     AR AR_FLAGS CC LD LN_S NM SHELL \
 4860     reload_flag reload_cmds wl \
 4861     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
 4862     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
 4863     library_names_spec soname_spec \
 4864     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
 4865     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
 4866     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
 4867     old_striplib striplib file_magic_cmd export_symbols_cmds \
 4868     deplibs_check_method allow_undefined_flag no_undefined_flag \
 4869     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
 4870     global_symbol_to_c_name_address \
 4871     hardcode_libdir_flag_spec hardcode_libdir_separator  \
 4872     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 4873     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
 4874 
 4875     case $var in
 4876     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
 4877     old_postinstall_cmds | old_postuninstall_cmds | \
 4878     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
 4879     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
 4880     postinstall_cmds | postuninstall_cmds | \
 4881     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 4882       # Double-quote double-evaled strings.
 4883       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 4884       ;;
 4885     *)
 4886       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 4887       ;;
 4888     esac
 4889   done
 4890 
 4891   cat <<__EOF__ > "${ofile}T"
 4892 #! $SHELL
 4893 
 4894 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 4895 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 4896 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
 4897 #
 4898 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
 4899 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 4900 #
 4901 # This program is free software; you can redistribute it and/or modify
 4902 # it under the terms of the GNU General Public License as published by
 4903 # the Free Software Foundation; either version 2 of the License, or
 4904 # (at your option) any later version.
 4905 #
 4906 # This program is distributed in the hope that it will be useful, but
 4907 # WITHOUT ANY WARRANTY; without even the implied warranty of
 4908 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 4909 # General Public License for more details.
 4910 #
 4911 # You should have received a copy of the GNU General Public License
 4912 # along with this program; if not, write to the Free Software
 4913 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 4914 #
 4915 # As a special exception to the GNU General Public License, if you
 4916 # distribute this file as part of a program that contains a
 4917 # configuration script generated by Autoconf, you may include it under
 4918 # the same distribution terms that you use for the rest of that program.
 4919 
 4920 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
 4921 Xsed="sed -e s/^X//"
 4922 
 4923 # The HP-UX ksh and POSIX shell print the target directory to stdout
 4924 # if CDPATH is set.
 4925 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 4926 
 4927 # ### BEGIN LIBTOOL CONFIG
 4928 
 4929 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 4930 
 4931 # Shell to use when invoking shell scripts.
 4932 SHELL=$lt_SHELL
 4933 
 4934 # Whether or not to build shared libraries.
 4935 build_libtool_libs=$enable_shared
 4936 
 4937 # Whether or not to build static libraries.
 4938 build_old_libs=$enable_static
 4939 
 4940 # Whether or not to add -lc for building shared libraries.
 4941 build_libtool_need_lc=$need_lc
 4942 
 4943 # Whether or not to optimize for fast installation.
 4944 fast_install=$enable_fast_install
 4945 
 4946 # The host system.
 4947 host_alias=$host_alias
 4948 host=$host
 4949 
 4950 # An echo program that does not interpret backslashes.
 4951 echo=$lt_echo
 4952 
 4953 # The archiver.
 4954 AR=$lt_AR
 4955 AR_FLAGS=$lt_AR_FLAGS
 4956 
 4957 # The default C compiler.
 4958 CC=$lt_CC
 4959 
 4960 # Is the compiler the GNU C compiler?
 4961 with_gcc=$GCC
 4962 
 4963 # The linker used to build libraries.
 4964 LD=$lt_LD
 4965 
 4966 # Whether we need hard or soft links.
 4967 LN_S=$lt_LN_S
 4968 
 4969 # A BSD-compatible nm program.
 4970 NM=$lt_NM
 4971 
 4972 # A symbol stripping program
 4973 STRIP=$STRIP
 4974 
 4975 # Used to examine libraries when file_magic_cmd begins "file"
 4976 MAGIC_CMD=$MAGIC_CMD
 4977 
 4978 # Used on cygwin: DLL creation program.
 4979 DLLTOOL="$DLLTOOL"
 4980 
 4981 # Used on cygwin: object dumper.
 4982 OBJDUMP="$OBJDUMP"
 4983 
 4984 # Used on cygwin: assembler.
 4985 AS="$AS"
 4986 
 4987 # The name of the directory that contains temporary libtool files.
 4988 objdir=$objdir
 4989 
 4990 # How to create reloadable object files.
 4991 reload_flag=$lt_reload_flag
 4992 reload_cmds=$lt_reload_cmds
 4993 
 4994 # How to pass a linker flag through the compiler.
 4995 wl=$lt_wl
 4996 
 4997 # Object file suffix (normally "o").
 4998 objext="$ac_objext"
 4999 
 5000 # Old archive suffix (normally "a").
 5001 libext="$libext"
 5002 
 5003 # Executable file suffix (normally "").
 5004 exeext="$exeext"
 5005 
 5006 # Additional compiler flags for building library objects.
 5007 pic_flag=$lt_pic_flag
 5008 pic_mode=$pic_mode
 5009 
 5010 # Does compiler simultaneously support -c and -o options?
 5011 compiler_c_o=$lt_compiler_c_o
 5012 
 5013 # Can we write directly to a .lo ?
 5014 compiler_o_lo=$lt_compiler_o_lo
 5015 
 5016 # Must we lock files when doing compilation ?
 5017 need_locks=$lt_need_locks
 5018 
 5019 # Do we need the lib prefix for modules?
 5020 need_lib_prefix=$need_lib_prefix
 5021 
 5022 # Do we need a version for libraries?
 5023 need_version=$need_version
 5024 
 5025 # Whether dlopen is supported.
 5026 dlopen_support=$enable_dlopen
 5027 
 5028 # Whether dlopen of programs is supported.
 5029 dlopen_self=$enable_dlopen_self
 5030 
 5031 # Whether dlopen of statically linked programs is supported.
 5032 dlopen_self_static=$enable_dlopen_self_static
 5033 
 5034 # Compiler flag to prevent dynamic linking.
 5035 link_static_flag=$lt_link_static_flag
 5036 
 5037 # Compiler flag to turn off builtin functions.
 5038 no_builtin_flag=$lt_no_builtin_flag
 5039 
 5040 # Compiler flag to allow reflexive dlopens.
 5041 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 5042 
 5043 # Compiler flag to generate shared objects directly from archives.
 5044 whole_archive_flag_spec=$lt_whole_archive_flag_spec
 5045 
 5046 # Compiler flag to generate thread-safe objects.
 5047 thread_safe_flag_spec=$lt_thread_safe_flag_spec
 5048 
 5049 # Library versioning type.
 5050 version_type=$version_type
 5051 
 5052 # Format of library name prefix.
 5053 libname_spec=$lt_libname_spec
 5054 
 5055 # List of archive names.  First name is the real one, the rest are links.
 5056 # The last name is the one that the linker finds with -lNAME.
 5057 library_names_spec=$lt_library_names_spec
 5058 
 5059 # The coded name of the library, if different from the real name.
 5060 soname_spec=$lt_soname_spec
 5061 
 5062 # Commands used to build and install an old-style archive.
 5063 RANLIB=$lt_RANLIB
 5064 old_archive_cmds=$lt_old_archive_cmds
 5065 old_postinstall_cmds=$lt_old_postinstall_cmds
 5066 old_postuninstall_cmds=$lt_old_postuninstall_cmds
 5067 
 5068 # Create an old-style archive from a shared archive.
 5069 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 5070 
 5071 # Create a temporary old-style archive to link instead of a shared archive.
 5072 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 5073 
 5074 # Commands used to build and install a shared archive.
 5075 archive_cmds=$lt_archive_cmds
 5076 archive_expsym_cmds=$lt_archive_expsym_cmds
 5077 postinstall_cmds=$lt_postinstall_cmds
 5078 postuninstall_cmds=$lt_postuninstall_cmds
 5079 
 5080 # Commands to strip libraries.
 5081 old_striplib=$lt_old_striplib
 5082 striplib=$lt_striplib
 5083 
 5084 # Method to check whether dependent libraries are shared objects.
 5085 deplibs_check_method=$lt_deplibs_check_method
 5086 
 5087 # Command to use when deplibs_check_method == file_magic.
 5088 file_magic_cmd=$lt_file_magic_cmd