Changeset 588 for ThirdParty/ASL


Ignore:
Timestamp:
Sep 29, 2007 6:12:30 PM (12 years ago)
Author:
andreasw
Message:

included changes proposed by Lou Hafer for ASL configuration and compilation with MSVC

Location:
ThirdParty/ASL/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/ASL/trunk/Makefile.am

    r227 r588  
    2727if MSVC_COMPILE
    2828$(libampl):
    29         @echo " "
    30         @echo "*********************************************************************"
    31         @echo " "
    32         @echo "Please change into the following directory and type ./compile_MS_ASL"
    33         @pwd
    34         @echo " "
    35         @echo "*********************************************************************"
    36         @exit 1
    37 #       set -x -v; \
    38 #       rm -rf $(compdir) ; \
    39 #       $(mkinstalldirs) $(compdir); \
    40 #       files=`cd $(abs_source_dir)/solvers; ls *.[chs] *.[ch]0 *.hd arith.* makefile* *.bat amplsolv.lbc`; \
    41 #       cd $(compdir); \
    42 #       for file in $$files; \
    43 #       do \
    44 #         rm -f $$file ;\
    45 #         cp $(abs_source_dir)/solvers/$$file $$file ;\
    46 #       done; \
    47 #       cp details.c0 details.c; \
    48 #       rm -f makefile; \
    49 #       nmake.exe   
    50 #       mv $(compdir)/amplsolv.lib $(libampl)
    51 #       -cd $(compdir); mv stdio1.h arith.h funcadd0.o ..
    52 #       rm -rf $(compdir)
     29        compile_MS_ASL
    5330else
    5431$(libampl):
  • ThirdParty/ASL/trunk/Makefile.in

    r227 r588  
    4949POST_UNINSTALL = :
    5050build_triplet = @build@
     51host_triplet = @host@
    5152DIST_COMMON = $(am__configure_deps) \
    5253        $(srcdir)/../../BuildTools/Makemain.inc \
    5354        $(srcdir)/../../config.guess $(srcdir)/../../config.sub \
    54         $(srcdir)/../../install-sh $(srcdir)/../../missing \
    55         $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
    56         $(srcdir)/compile_MS_ASL.in $(top_srcdir)/configure
     55        $(srcdir)/../../install-sh $(srcdir)/../../ltmain.sh \
     56        $(srcdir)/../../missing $(srcdir)/Makefile.am \
     57        $(srcdir)/Makefile.in $(srcdir)/compile_MS_ASL.in \
     58        $(top_srcdir)/configure
    5759@HAVE_EXTERNALS_TRUE@am__append_1 = Externals
    5860@HAVE_EXTERNALS_TRUE@am__append_2 = .Externals-stamp
     
    8991AMPLSOLVER_A = @AMPLSOLVER_A@
    9092AMTAR = @AMTAR@
     93AR = @AR@
    9194ASLLIB = @ASLLIB@
    9295ASLMAKEFILECMDS = @ASLMAKEFILECMDS@
     
    105108COIN_HAS_ASL_FALSE = @COIN_HAS_ASL_FALSE@
    106109COIN_HAS_ASL_TRUE = @COIN_HAS_ASL_TRUE@
     110CPP = @CPP@
    107111CPPFLAGS = @CPPFLAGS@
     112CXX = @CXX@
     113CXXCPP = @CXXCPP@
     114CXXDEPMODE = @CXXDEPMODE@
     115CXXFLAGS = @CXXFLAGS@
    108116CYGPATH_W = @CYGPATH_W@
    109117DBG_CFLAGS = @DBG_CFLAGS@
    110118DEFS = @DEFS@
    111119DEPDIR = @DEPDIR@
     120ECHO = @ECHO@
    112121ECHO_C = @ECHO_C@
    113122ECHO_N = @ECHO_N@
     
    115124EGREP = @EGREP@
    116125EXEEXT = @EXEEXT@
     126F77 = @F77@
    117127FADDLIBS = @FADDLIBS@
     128FFLAGS = @FFLAGS@
    118129HAVE_EXTERNALS_FALSE = @HAVE_EXTERNALS_FALSE@
    119130HAVE_EXTERNALS_TRUE = @HAVE_EXTERNALS_TRUE@
     
    126137LIBOBJS = @LIBOBJS@
    127138LIBS = @LIBS@
     139LIBTOOL = @LIBTOOL@
    128140LIBTOOLM4 = @LIBTOOLM4@
    129141LN_S = @LN_S@
    130142LTLIBOBJS = @LTLIBOBJS@
     143LT_LDFLAGS = @LT_LDFLAGS@
    131144MAINT = @MAINT@
    132145MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
     
    146159PACKAGE_VERSION = @PACKAGE_VERSION@
    147160PATH_SEPARATOR = @PATH_SEPARATOR@
     161RANLIB = @RANLIB@
     162RPATH_FLAGS = @RPATH_FLAGS@
    148163SET_MAKE = @SET_MAKE@
    149164SHELL = @SHELL@
     
    157172abs_lib_dir = @abs_lib_dir@
    158173abs_source_dir = @abs_source_dir@
     174ac_c_preproc_warn_flag = @ac_c_preproc_warn_flag@
     175ac_ct_AR = @ac_ct_AR@
    159176ac_ct_CC = @ac_ct_CC@
     177ac_ct_CXX = @ac_ct_CXX@
     178ac_ct_F77 = @ac_ct_F77@
     179ac_ct_RANLIB = @ac_ct_RANLIB@
    160180ac_ct_STRIP = @ac_ct_STRIP@
     181ac_cxx_preproc_warn_flag = @ac_cxx_preproc_warn_flag@
    161182am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
    162183am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
     184am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
     185am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
    163186am__include = @am__include@
    164187am__leading_dot = @am__leading_dot@
     
    177200have_automake = @have_automake@
    178201have_svn = @have_svn@
     202host = @host@
    179203host_alias = @host_alias@
     204host_cpu = @host_cpu@
     205host_os = @host_os@
     206host_vendor = @host_vendor@
    180207includedir = @includedir@
    181208infodir = @infodir@
     
    249276compile_MS_ASL: $(top_builddir)/config.status $(srcdir)/compile_MS_ASL.in
    250277        cd $(top_builddir) && $(SHELL) ./config.status $@
     278
     279mostlyclean-libtool:
     280        -rm -f *.lo
     281
     282clean-libtool:
     283        -rm -rf .libs _libs
     284
     285distclean-libtool:
     286        -rm -f libtool
    251287uninstall-info-am:
    252288tags: TAGS
     
    416452clean: clean-am
    417453
    418 clean-am: clean-generic mostlyclean-am
     454clean-am: clean-generic clean-libtool mostlyclean-am
    419455
    420456distclean: distclean-am
    421457        -rm -f $(am__CONFIG_DISTCLEAN_FILES)
    422458        -rm -f Makefile
    423 distclean-am: clean-am distclean-generic
     459distclean-am: clean-am distclean-generic distclean-libtool
    424460
    425461dvi: dvi-am
     
    451487mostlyclean: mostlyclean-am
    452488
    453 mostlyclean-am: mostlyclean-generic
     489mostlyclean-am: mostlyclean-generic mostlyclean-libtool
    454490
    455491pdf: pdf-am
     
    464500
    465501.PHONY: all all-am all-local am--refresh check check-am clean \
    466         clean-generic dist dist-all dist-bzip2 dist-gzip dist-shar \
    467         dist-tarZ dist-zip distcheck distclean distclean-generic \
    468         distcleancheck distdir distuninstallcheck dvi dvi-am html \
    469         html-am info info-am install install-am install-data \
    470         install-data-am install-exec install-exec-am install-info \
    471         install-info-am install-man install-strip installcheck \
    472         installcheck-am installdirs maintainer-clean \
    473         maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
    474         pdf-am ps ps-am uninstall uninstall-am uninstall-info-am
     502        clean-generic clean-libtool dist dist-all dist-bzip2 dist-gzip \
     503        dist-shar dist-tarZ dist-zip distcheck distclean \
     504        distclean-generic distclean-libtool distcleancheck distdir \
     505        distuninstallcheck dvi dvi-am html html-am info info-am \
     506        install install-am install-data install-data-am install-exec \
     507        install-exec-am install-info install-info-am install-man \
     508        install-strip installcheck installcheck-am installdirs \
     509        maintainer-clean maintainer-clean-generic mostlyclean \
     510        mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
     511        uninstall uninstall-am uninstall-info-am
    475512
    476513
     
    478515
    479516@MSVC_COMPILE_TRUE@$(libampl):
    480 @MSVC_COMPILE_TRUE@     @echo " "
    481 @MSVC_COMPILE_TRUE@     @echo "*********************************************************************"
    482 @MSVC_COMPILE_TRUE@     @echo " "
    483 @MSVC_COMPILE_TRUE@     @echo "Please change into the following directory and type ./compile_MS_ASL"
    484 @MSVC_COMPILE_TRUE@     @pwd
    485 @MSVC_COMPILE_TRUE@     @echo " "
    486 @MSVC_COMPILE_TRUE@     @echo "*********************************************************************"
    487 @MSVC_COMPILE_TRUE@     @exit 1
    488 #       set -x -v; \
    489 #       rm -rf $(compdir) ; \
    490 #       $(mkinstalldirs) $(compdir); \
    491 #       files=`cd $(abs_source_dir)/solvers; ls *.[chs] *.[ch]0 *.hd arith.* makefile* *.bat amplsolv.lbc`; \
    492 #       cd $(compdir); \
    493 #       for file in $$files; \
    494 #       do \
    495 #         rm -f $$file ;\
    496 #         cp $(abs_source_dir)/solvers/$$file $$file ;\
    497 #       done; \
    498 #       cp details.c0 details.c; \
    499 #       rm -f makefile; \
    500 #       nmake.exe   
    501 #       mv $(compdir)/amplsolv.lib $(libampl)
    502 #       -cd $(compdir); mv stdio1.h arith.h funcadd0.o ..
    503 #       rm -rf $(compdir)
     517@MSVC_COMPILE_TRUE@     compile_MS_ASL
    504518@MSVC_COMPILE_FALSE@$(libampl):
    505519@MSVC_COMPILE_FALSE@    rm -rf $(compdir) ; \
  • ThirdParty/ASL/trunk/compile_MS_ASL.in

    r72 r588  
    11#!/bin/sh
    22
    3 set -x
     3# Script to compile the Ampl Solver Library using cl/link. Why this approach?
     4# Well, we don't want to get into the business of creating (and maintaining)
     5# the full set of autotools source files for the ASL. This approach tries to
     6# leverage makefile.vc, which comes with ASL.
     7
     8# To support VPATH builds, the strategy is to copy the sources to the build
     9# directory, build, and then erase the sources when we're done. Start by
     10# copying the sources.
     11
     12# set -x
    413mkinstalldirs="@install_sh@ -d"
    514abs_source_dir=@abs_source_dir@
    6 libampl=@AMPLSOLVER_A@
    715compdir=compdir
    816
     
    1523  cp $abs_source_dir/solvers/$file $file;\
    1624done
    17 cp details.c0 details.c
    18 nmake -f makefile.vc
     25
     26# Acquire the cl version and create details.c
     27
     28clver=`cl 2>&1 | egrep '^Microsoft' | sed -e 's/.*Version \(.*\)/\1/'`
     29clver="Microsoft cl $clver"
     30
     31sed -e "s/System_details/$clver/" details.c0 > details.c
     32
     33# Do the build. CFLAGS specified on the command line (as a result of autoconf
     34# replacing ASLMAKEFLAGS) will override the specs in makefile.vc, ensuring
     35# that ASL is built with the same compiler flags as other code. It turns out
     36# that Gnu make always sets MAKEFLAGS to --unix, and nmake tries to process
     37# this, resulting in error U1065. Clear MAKEFLAGS to fix the problem.
     38
     39libampl=@AMPLSOLVER_A@
     40MAKEFLAGS=
     41nmake -f makefile.vc @ASLMAKEFLAGS@
    1942mv amplsolv.lib ../$libampl
    2043mv stdio1.h arith.h funcadd0.obj ..
  • ThirdParty/ASL/trunk/configure

    r520 r588  
    250250
    251251
     252
     253# Check that we are running under the correct shell.
     254SHELL=${CONFIG_SHELL-/bin/sh}
     255
     256case X$ECHO in
     257X*--fallback-echo)
     258  # Remove one level of quotation (which was required for Make).
     259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
     260  ;;
     261esac
     262
     263echo=${ECHO-echo}
     264if test "X$1" = X--no-reexec; then
     265  # Discard the --no-reexec flag, and continue.
     266  shift
     267elif test "X$1" = X--fallback-echo; then
     268  # Avoid inline document here, it may be left over
     269  :
     270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
     271  # Yippee, $echo works!
     272  :
     273else
     274  # Restart under the correct shell.
     275  exec $SHELL "$0" --no-reexec ${1+"$@"}
     276fi
     277
     278if test "X$1" = X--fallback-echo; then
     279  # used as fallback echo
     280  shift
     281  cat <<EOF
     282$*
     283EOF
     284  exit 0
     285fi
     286
     287# The HP-UX ksh and POSIX shell print the target directory to stdout
     288# if CDPATH is set.
     289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
     290
     291if test -z "$ECHO"; then
     292if test "X${echo_test_string+set}" != Xset; then
     293# find a string as large as possible, as long as the shell can cope with it
     294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
     295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
     296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
     297       echo_test_string=`eval $cmd` &&
     298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
     299    then
     300      break
     301    fi
     302  done
     303fi
     304
     305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
     306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
     307   test "X$echo_testing_string" = "X$echo_test_string"; then
     308  :
     309else
     310  # The Solaris, AIX, and Digital Unix default echo programs unquote
     311  # backslashes.  This makes it impossible to quote backslashes using
     312  #   echo "$something" | sed 's/\\/\\\\/g'
     313  #
     314  # So, first we look for a working echo in the user's PATH.
     315
     316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
     317  for dir in $PATH /usr/ucb; do
     318    IFS="$lt_save_ifs"
     319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
     320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
     321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
     322       test "X$echo_testing_string" = "X$echo_test_string"; then
     323      echo="$dir/echo"
     324      break
     325    fi
     326  done
     327  IFS="$lt_save_ifs"
     328
     329  if test "X$echo" = Xecho; then
     330    # We didn't find a better echo, so look for alternatives.
     331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
     332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
     333       test "X$echo_testing_string" = "X$echo_test_string"; then
     334      # This shell has a builtin print -r that does the trick.
     335      echo='print -r'
     336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
     337         test "X$CONFIG_SHELL" != X/bin/ksh; then
     338      # If we have ksh, try running configure again with it.
     339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
     340      export ORIGINAL_CONFIG_SHELL
     341      CONFIG_SHELL=/bin/ksh
     342      export CONFIG_SHELL
     343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
     344    else
     345      # Try using printf.
     346      echo='printf %s\n'
     347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
     348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
     349         test "X$echo_testing_string" = "X$echo_test_string"; then
     350        # Cool, printf works
     351        :
     352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
     353           test "X$echo_testing_string" = 'X\t' &&
     354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
     355           test "X$echo_testing_string" = "X$echo_test_string"; then
     356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
     357        export CONFIG_SHELL
     358        SHELL="$CONFIG_SHELL"
     359        export SHELL
     360        echo="$CONFIG_SHELL $0 --fallback-echo"
     361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
     362           test "X$echo_testing_string" = 'X\t' &&
     363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
     364           test "X$echo_testing_string" = "X$echo_test_string"; then
     365        echo="$CONFIG_SHELL $0 --fallback-echo"
     366      else
     367        # maybe with a smaller string...
     368        prev=:
     369
     370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
     371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
     372          then
     373            break
     374          fi
     375          prev="$cmd"
     376        done
     377
     378        if test "$prev" != 'sed 50q "$0"'; then
     379          echo_test_string=`eval $prev`
     380          export echo_test_string
     381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
     382        else
     383          # Oops.  We lost completely, so just stick with echo.
     384          echo=echo
     385        fi
     386      fi
     387    fi
     388  fi
     389fi
     390fi
     391
     392# Copy echo and quote the copy suitably for passing to libtool from
     393# the Makefile, instead of quoting the original, which is used later.
     394ECHO=$echo
     395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
     396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
     397fi
     398
     399
     400
     401
     402tagnames=${tagnames+${tagnames},}CXX
     403
     404tagnames=${tagnames+${tagnames},}F77
     405
    252406# Name of the host.
    253407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
     
    282436ac_unique_file="solvers/asl.h"
    283437ac_default_prefix=`pwd`
    284 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os EGREP LN_S CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE ASLLIB ASL_CPPFLAGS COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE MAKEOKFILE SKIPMAKE_TRUE SKIPMAKE_FALSE AMPLSOLVER_A ASLMAKEFLAGS ASLMAKEFILECMDS MSVC_COMPILE_TRUE MSVC_COMPILE_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
     438# Factoring default headers for most tests.
     439ac_includes_default="\
     440#include <stdio.h>
     441#if HAVE_SYS_TYPES_H
     442# include <sys/types.h>
     443#endif
     444#if HAVE_SYS_STAT_H
     445# include <sys/stat.h>
     446#endif
     447#if STDC_HEADERS
     448# include <stdlib.h>
     449# include <stddef.h>
     450#else
     451# if HAVE_STDLIB_H
     452#  include <stdlib.h>
     453# endif
     454#endif
     455#if HAVE_STRING_H
     456# if !STDC_HEADERS && HAVE_MEMORY_H
     457#  include <memory.h>
     458# endif
     459# include <string.h>
     460#endif
     461#if HAVE_STRINGS_H
     462# include <strings.h>
     463#endif
     464#if HAVE_INTTYPES_H
     465# include <inttypes.h>
     466#else
     467# if HAVE_STDINT_H
     468#  include <stdint.h>
     469# endif
     470#endif
     471#if HAVE_UNISTD_H
     472# include <unistd.h>
     473#endif"
     474
     475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE EGREP LN_S CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS ASLLIB ASL_CPPFLAGS COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE MAKEOKFILE SKIPMAKE_TRUE SKIPMAKE_FALSE AMPLSOLVER_A ASLMAKEFLAGS ASLMAKEFILECMDS MSVC_COMPILE_TRUE MSVC_COMPILE_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
    285476ac_subst_files=''
    286477
     
    759950ac_cv_env_MPICC_set=${MPICC+set}
    760951ac_cv_env_MPICC_value=$MPICC
     952ac_env_CPP_set=${CPP+set}
     953ac_env_CPP_value=$CPP
     954ac_cv_env_CPP_set=${CPP+set}
     955ac_cv_env_CPP_value=$CPP
     956ac_env_CXX_set=${CXX+set}
     957ac_env_CXX_value=$CXX
     958ac_cv_env_CXX_set=${CXX+set}
     959ac_cv_env_CXX_value=$CXX
     960ac_env_CXXFLAGS_set=${CXXFLAGS+set}
     961ac_env_CXXFLAGS_value=$CXXFLAGS
     962ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
     963ac_cv_env_CXXFLAGS_value=$CXXFLAGS
     964ac_env_CXXCPP_set=${CXXCPP+set}
     965ac_env_CXXCPP_value=$CXXCPP
     966ac_cv_env_CXXCPP_set=${CXXCPP+set}
     967ac_cv_env_CXXCPP_value=$CXXCPP
     968ac_env_F77_set=${F77+set}
     969ac_env_F77_value=$F77
     970ac_cv_env_F77_set=${F77+set}
     971ac_cv_env_F77_value=$F77
     972ac_env_FFLAGS_set=${FFLAGS+set}
     973ac_env_FFLAGS_value=$FFLAGS
     974ac_cv_env_FFLAGS_set=${FFLAGS+set}
     975ac_cv_env_FFLAGS_value=$FFLAGS
    761976ac_env_ASLMAKEFLAGS_set=${ASLMAKEFLAGS+set}
    762977ac_env_ASLMAKEFLAGS_value=$ASLMAKEFLAGS
     
    8311046System types:
    8321047  --build=BUILD     configure for building on BUILD [guessed]
     1048  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
    8331049_ACEOF
    8341050fi
     
    8501066                          when mentioned: mingw. Default when not mentioned:
    8511067                          disabled.
     1068  --enable-static[=PKGS]
     1069                          build static libraries [default=no]
    8521070  --disable-dependency-tracking  speeds up one-time build
    8531071  --enable-dependency-tracking   do not reject slow dependency extractors
    8541072  --enable-maintainer-mode  enable make rules and dependencies not useful
    8551073                          (and sometimes confusing) to the casual installer
     1074  --enable-shared[=PKGS]
     1075                          build shared libraries [default=yes]
     1076  --enable-fast-install[=PKGS]
     1077                          optimize for fast installation [default=yes]
     1078  --disable-libtool-lock  avoid locking (might break parallel builds)
    8561079
    8571080Optional Packages:
     
    8601083  --with-asl-verbosity specify the debug verbosity level for project ASL
    8611084  --with-asl-checklevel specify the sanity check level for project ASL
     1085  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
     1086  --with-pic              try to use only PIC/non-PIC objects [default=use
     1087                          both]
     1088  --with-tags[=TAGS]
     1089                          include additional configurations [automatic]
    8621090  --with-asldir           specify path to AMPL solver directory (or BUILD for
    8631091                          compilation, or "no" for disabling AMPL)
     
    8751103              headers in a nonstandard directory <include dir>
    8761104  MPICC       C MPI Compiler
     1105  CPP         C preprocessor
     1106  CXX         C++ compiler command
     1107  CXXFLAGS    C++ compiler flags
     1108  CXXCPP      C++ preprocessor
     1109  F77         Fortran 77 compiler command
     1110  FFLAGS      Fortran 77 compiler flags
    8771111  ASLMAKEFLAGS
    8781112              Compilation flags necessary for compiling the AMPL solver
     
    13471581
    13481582
    1349 # Initialize the ADDLIBS variable
    1350 ADDLIBS="-lm $LIBS"
    1351 
    1352 
    1353 # Initialize the FADDLIBS variable (which is to be used with a fortran
    1354 # compiler and will not include FLIBS)
    1355 FADDLIBS="$LIBS"
    1356 
    1357 
    1358 # A useful makefile conditional that is always false
    1359 
    1360 
    1361 if false; then
    1362   ALWAYS_FALSE_TRUE=
    1363   ALWAYS_FALSE_FALSE='#'
    1364 else
    1365   ALWAYS_FALSE_TRUE='#'
    1366   ALWAYS_FALSE_FALSE=
    1367 fi
    1368 
    1369 
    1370 # We set the following variable so that we know later in AC_COIN_FINALIZE
    1371 # that we are in a project main directory
    1372 coin_projectdir=yes
    1373 
    1374 
    13751583#############################################################################
    13761584#                         Standard build tool stuff                         #
     
    14361644
    14371645
    1438 #turn off warnings and pedantic mode since they could make trouble on some platforms,
    1439 #and we couldn't fix them anyway
     1646# A bit of initial setup.
     1647# Initialize the ADDLIBS variable
     1648ADDLIBS="-lm $LIBS"
     1649
     1650
     1651# Initialize the FADDLIBS variable (which is to be used with a fortran
     1652# compiler and will not include FLIBS)
     1653FADDLIBS="$LIBS"
     1654
     1655
     1656# A useful makefile conditional that is always false
     1657
     1658
     1659if false; then
     1660  ALWAYS_FALSE_TRUE=
     1661  ALWAYS_FALSE_FALSE='#'
     1662else
     1663  ALWAYS_FALSE_TRUE='#'
     1664  ALWAYS_FALSE_FALSE=
     1665fi
     1666
     1667
     1668# We set the following variable so that we know later in AC_COIN_FINALIZE
     1669# that we are in a project main directory
     1670coin_projectdir=yes
     1671
     1672
     1673# Turn off warnings and pedantic mode since they could make trouble on some
     1674# platforms, and we can't fix issues in third-party code.
    14401675coin_skip_warn_cflags=yes
    14411676
     
    15641799
    15651800
    1566 # Get the name of the C compiler and appropriate compiler options
    1567 coin_skip_warn_cflags=yes
     1801# Get the name of the C compiler and compiler flags
    15681802case $build in
    15691803  *-mingw*)
     
    28183052
    28193053
     3054# Initialize automake and libtool
     3055{
     3056
     3057
     3058
     3059# START
     3060
     3061# On Cygwin, building DLLs doesn't work
     3062case $build in
     3063  *-cygwin*)
     3064    coin_disable_shared=yes
     3065    platform=Cygwin
     3066  ;;
     3067  *-mingw*)
     3068    coin_disable_shared=yes
     3069    platform="Msys"
     3070#    case "$CXX" in
     3071#      cl*)
     3072#        coin_disable_shared=yes
     3073#        platform="Msys with cl"
     3074#    ;;
     3075#    esac
     3076  ;;
     3077esac
     3078if test x"$coin_disable_shared" = xyes; then
     3079  if test x"$enable_shared" = xyes; then
     3080    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
     3081echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
     3082  fi
     3083  enable_shared=no
     3084fi
     3085# By default, we only want the shared objects to be compiled
     3086# Check whether --enable-static or --disable-static was given.
     3087if test "${enable_static+set}" = set; then
     3088  enableval="$enable_static"
     3089  p=${PACKAGE-default}
     3090    case $enableval in
     3091    yes) enable_static=yes ;;
     3092    no) enable_static=no ;;
     3093    *)
     3094     enable_static=no
     3095      # Look at the argument we got.  We use all the common list separators.
     3096      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
     3097      for pkg in $enableval; do
     3098        IFS="$lt_save_ifs"
     3099        if test "X$pkg" = "X$p"; then
     3100          enable_static=yes
     3101        fi
     3102      done
     3103      IFS="$lt_save_ifs"
     3104      ;;
     3105    esac
     3106else
     3107  enable_static=no
     3108fi;
     3109
     3110
     3111
     3112
    28203113# Initialize automake
    28213114am__api_version="1.9"
     
    38004093
    38014094
    3802 coin_aslobjdir=../ThirdParty/ASL
    3803 coin_aslsrcdir=$srcdir/$coin_aslobjdir
    3804 
    3805 # Determine the name of the ASL library
    3806 case "$CC" in
    3807   cl* | */cl* | CL* | */CL*)
    3808     ampllib=amplsolv.lib ;;
     4095LIBTOOL=
     4096if test -r ../libtool; then
     4097  coin_config_dir=..
     4098  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
     4099fi
     4100if test "x$LIBTOOL" = x; then
     4101  if test -r ../../libtool; then
     4102    coin_config_dir=../..
     4103    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
     4104  fi
     4105fi
     4106
     4107if test "x$LIBTOOL" = x; then
     4108# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
     4109  # Stuff for libtool
     4110  # Check whether --enable-shared or --disable-shared was given.
     4111if test "${enable_shared+set}" = set; then
     4112  enableval="$enable_shared"
     4113  p=${PACKAGE-default}
     4114    case $enableval in
     4115    yes) enable_shared=yes ;;
     4116    no) enable_shared=no ;;
     4117    *)
     4118      enable_shared=no
     4119      # Look at the argument we got.  We use all the common list separators.
     4120      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
     4121      for pkg in $enableval; do
     4122        IFS="$lt_save_ifs"
     4123        if test "X$pkg" = "X$p"; then
     4124          enable_shared=yes
     4125        fi
     4126      done
     4127      IFS="$lt_save_ifs"
     4128      ;;
     4129    esac
     4130else
     4131  enable_shared=yes
     4132fi;
     4133
     4134# Check whether --enable-fast-install or --disable-fast-install was given.
     4135if test "${enable_fast_install+set}" = set; then
     4136  enableval="$enable_fast_install"
     4137  p=${PACKAGE-default}
     4138    case $enableval in
     4139    yes) enable_fast_install=yes ;;
     4140    no) enable_fast_install=no ;;
     4141    *)
     4142      enable_fast_install=no
     4143      # Look at the argument we got.  We use all the common list separators.
     4144      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
     4145      for pkg in $enableval; do
     4146        IFS="$lt_save_ifs"
     4147        if test "X$pkg" = "X$p"; then
     4148          enable_fast_install=yes
     4149        fi
     4150      done
     4151      IFS="$lt_save_ifs"
     4152      ;;
     4153    esac
     4154else
     4155  enable_fast_install=yes
     4156fi;
     4157
     4158echo "$as_me:$LINENO: checking host system type" >&5
     4159echo $ECHO_N "checking host system type... $ECHO_C" >&6
     4160if test "${ac_cv_host+set}" = set; then
     4161  echo $ECHO_N "(cached) $ECHO_C" >&6
     4162else
     4163  ac_cv_host_alias=$host_alias
     4164test -z "$ac_cv_host_alias" &&
     4165  ac_cv_host_alias=$ac_cv_build_alias
     4166ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
     4167  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
     4168echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
     4169   { (exit 1); exit 1; }; }
     4170
     4171fi
     4172echo "$as_me:$LINENO: result: $ac_cv_host" >&5
     4173echo "${ECHO_T}$ac_cv_host" >&6
     4174host=$ac_cv_host
     4175host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     4176host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     4177host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     4178
     4179
     4180echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
     4181echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
     4182if test "${lt_cv_path_SED+set}" = set; then
     4183  echo $ECHO_N "(cached) $ECHO_C" >&6
     4184else
     4185  # Loop through the user's path and test for sed and gsed.
     4186# Then use that list of sed's as ones to test for truncation.
     4187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4188for as_dir in $PATH
     4189do
     4190  IFS=$as_save_IFS
     4191  test -z "$as_dir" && as_dir=.
     4192  for lt_ac_prog in sed gsed; do
     4193    for ac_exec_ext in '' $ac_executable_extensions; do
     4194      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
     4195        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
     4196      fi
     4197    done
     4198  done
     4199done
     4200lt_ac_max=0
     4201lt_ac_count=0
     4202# Add /usr/xpg4/bin/sed as it is typically found on Solaris
     4203# along with /bin/sed that truncates output.
     4204for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
     4205  test ! -f $lt_ac_sed && continue
     4206  cat /dev/null > conftest.in
     4207  lt_ac_count=0
     4208  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
     4209  # Check for GNU sed and select it if it is found.
     4210  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
     4211    lt_cv_path_SED=$lt_ac_sed
     4212    break
     4213  fi
     4214  while true; do
     4215    cat conftest.in conftest.in >conftest.tmp
     4216    mv conftest.tmp conftest.in
     4217    cp conftest.in conftest.nl
     4218    echo >>conftest.nl
     4219    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
     4220    cmp -s conftest.out conftest.nl || break
     4221    # 10000 chars as input seems more than enough
     4222    test $lt_ac_count -gt 10 && break
     4223    lt_ac_count=`expr $lt_ac_count + 1`
     4224    if test $lt_ac_count -gt $lt_ac_max; then
     4225      lt_ac_max=$lt_ac_count
     4226      lt_cv_path_SED=$lt_ac_sed
     4227    fi
     4228  done
     4229done
     4230
     4231fi
     4232
     4233SED=$lt_cv_path_SED
     4234echo "$as_me:$LINENO: result: $SED" >&5
     4235echo "${ECHO_T}$SED" >&6
     4236
     4237
     4238# Check whether --with-gnu-ld or --without-gnu-ld was given.
     4239if test "${with_gnu_ld+set}" = set; then
     4240  withval="$with_gnu_ld"
     4241  test "$withval" = no || with_gnu_ld=yes
     4242else
     4243  with_gnu_ld=no
     4244fi;
     4245ac_prog=ld
     4246if test "$GCC" = yes; then
     4247  # Check if gcc -print-prog-name=ld gives a path.
     4248  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
     4249echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
     4250  case $host in
     4251  *-*-mingw*)
     4252    # gcc leaves a trailing carriage return which upsets mingw
     4253    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
    38094254  *)
    3810     ampllib=amplsolver.a ;;
     4255    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
     4256  esac
     4257  case $ac_prog in
     4258    # Accept absolute paths.
     4259    [\\/]* | ?:[\\/]*)
     4260      re_direlt='/[^/][^/]*/\.\./'
     4261      # Canonicalize the pathname of ld
     4262      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
     4263      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
     4264        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
     4265      done
     4266      test -z "$LD" && LD="$ac_prog"
     4267      ;;
     4268  "")
     4269    # If it fails, then pretend we aren't using GCC.
     4270    ac_prog=ld
     4271    ;;
     4272  *)
     4273    # If it is relative, then search for the first ld in PATH.
     4274    with_gnu_ld=unknown
     4275    ;;
     4276  esac
     4277elif test "$with_gnu_ld" = yes; then
     4278  echo "$as_me:$LINENO: checking for GNU ld" >&5
     4279echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
     4280else
     4281  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
     4282echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
     4283fi
     4284if test "${lt_cv_path_LD+set}" = set; then
     4285  echo $ECHO_N "(cached) $ECHO_C" >&6
     4286else
     4287  if test -z "$LD"; then
     4288  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
     4289  for ac_dir in $PATH; do
     4290    IFS="$lt_save_ifs"
     4291    test -z "$ac_dir" && ac_dir=.
     4292    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
     4293      lt_cv_path_LD="$ac_dir/$ac_prog"
     4294      # Check to see if the program is GNU ld.  I'd rather use --version,
     4295      # but apparently some variants of GNU ld only accept -v.
     4296      # Break only if it was the GNU/non-GNU ld that we prefer.
     4297      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
     4298      *GNU* | *'with BFD'*)
     4299        test "$with_gnu_ld" != no && break
     4300        ;;
     4301      *)
     4302        test "$with_gnu_ld" != yes && break
     4303        ;;
     4304      esac
     4305    fi
     4306  done
     4307  IFS="$lt_save_ifs"
     4308else
     4309  lt_cv_path_LD="$LD" # Let the user override the test with a path.
     4310fi
     4311fi
     4312
     4313LD="$lt_cv_path_LD"
     4314if test -n "$LD"; then
     4315  echo "$as_me:$LINENO: result: $LD" >&5
     4316echo "${ECHO_T}$LD" >&6
     4317else
     4318  echo "$as_me:$LINENO: result: no" >&5
     4319echo "${ECHO_T}no" >&6
     4320fi
     4321test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
     4322echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
     4323   { (exit 1); exit 1; }; }
     4324echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
     4325echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
     4326if test "${lt_cv_prog_gnu_ld+set}" = set; then
     4327  echo $ECHO_N "(cached) $ECHO_C" >&6
     4328else
     4329  # I'd rather use --version here, but apparently some GNU lds only accept -v.
     4330case `$LD -v 2>&1 </dev/null` in
     4331*GNU* | *'with BFD'*)
     4332  lt_cv_prog_gnu_ld=yes
     4333  ;;
     4334*)
     4335  lt_cv_prog_gnu_ld=no
     4336  ;;
    38114337esac
    3812 
    3813 
    3814 # Check whether --with-asldir or --without-asldir was given.
    3815 if test "${with_asldir+set}" = set; then
    3816   withval="$with_asldir"
    3817   use_asldir=$withval
    3818 else
    3819   use_asldir=
     4338fi
     4339echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
     4340echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
     4341with_gnu_ld=$lt_cv_prog_gnu_ld
     4342
     4343
     4344echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
     4345echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
     4346if test "${lt_cv_ld_reload_flag+set}" = set; then
     4347  echo $ECHO_N "(cached) $ECHO_C" >&6
     4348else
     4349  lt_cv_ld_reload_flag='-r'
     4350fi
     4351echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
     4352echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
     4353reload_flag=$lt_cv_ld_reload_flag
     4354case $reload_flag in
     4355"" | " "*) ;;
     4356*) reload_flag=" $reload_flag" ;;
     4357esac
     4358reload_cmds='$LD$reload_flag -o $output$reload_objs'
     4359case $host_os in
     4360  darwin*)
     4361    if test "$GCC" = yes; then
     4362      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
     4363    else
     4364      reload_cmds='$LD$reload_flag -o $output$reload_objs'
     4365    fi
     4366    ;;
     4367esac
     4368
     4369echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
     4370echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
     4371if test "${lt_cv_path_NM+set}" = set; then
     4372  echo $ECHO_N "(cached) $ECHO_C" >&6
     4373else
     4374  if test -n "$NM"; then
     4375  # Let the user override the test.
     4376  lt_cv_path_NM="$NM"
     4377else
     4378  lt_nm_to_check="${ac_tool_prefix}nm"
     4379  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
     4380    lt_nm_to_check="$lt_nm_to_check nm"
     4381  fi
     4382  for lt_tmp_nm in $lt_nm_to_check; do
     4383    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
     4384    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
     4385      IFS="$lt_save_ifs"
     4386      test -z "$ac_dir" && ac_dir=.
     4387      tmp_nm="$ac_dir/$lt_tmp_nm"
     4388      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
     4389        # Check to see if the nm accepts a BSD-compat flag.
     4390        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
     4391        #   nm: unknown option "B" ignored
     4392        # Tru64's nm complains that /dev/null is an invalid object file
     4393        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
     4394        */dev/null* | *'Invalid file or object type'*)
     4395          lt_cv_path_NM="$tmp_nm -B"
     4396          break
     4397          ;;
     4398        *)
     4399          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
     4400          */dev/null*)
     4401            lt_cv_path_NM="$tmp_nm -p"
     4402            break
     4403            ;;
     4404          *)
     4405            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
     4406            continue # so that we can try to find one that supports BSD flags
     4407            ;;
     4408          esac
     4409          ;;
     4410        esac
     4411      fi
     4412    done
     4413    IFS="$lt_save_ifs"
     4414  done
     4415  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
     4416fi
     4417fi
     4418echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
     4419echo "${ECHO_T}$lt_cv_path_NM" >&6
     4420NM="$lt_cv_path_NM"
     4421
     4422echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
     4423echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
     4424if test "${lt_cv_deplibs_check_method+set}" = set; then
     4425  echo $ECHO_N "(cached) $ECHO_C" >&6
     4426else
     4427  lt_cv_file_magic_cmd='$MAGIC_CMD'
     4428lt_cv_file_magic_test_file=
     4429lt_cv_deplibs_check_method='unknown'
     4430# Need to set the preceding variable on all platforms that support
     4431# interlibrary dependencies.
     4432# 'none' -- dependencies not supported.
     4433# `unknown' -- same as none, but documents that we really don't know.
     4434# 'pass_all' -- all dependencies passed with no checks.
     4435# 'test_compile' -- check by making test program.
     4436# 'file_magic [[regex]]' -- check by looking for files in library path
     4437# which responds to the $file_magic_cmd with a given extended regex.
     4438# If you have `file' or equivalent on your system and you're not sure
     4439# whether `pass_all' will *always* work, you probably want this one.
     4440
     4441case $host_os in
     4442aix4* | aix5*)
     4443  lt_cv_deplibs_check_method=pass_all
     4444  ;;
     4445
     4446beos*)
     4447  lt_cv_deplibs_check_method=pass_all
     4448  ;;
     4449
     4450bsdi[45]*)
     4451  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
     4452  lt_cv_file_magic_cmd='/usr/bin/file -L'
     4453  lt_cv_file_magic_test_file=/shlib/libc.so
     4454  ;;
     4455
     4456cygwin*)
     4457  # func_win32_libid is a shell function defined in ltmain.sh
     4458  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
     4459  lt_cv_file_magic_cmd='func_win32_libid'
     4460  ;;
     4461
     4462mingw* | pw32*)
     4463  # Base MSYS/MinGW do not provide the 'file' command needed by
     4464  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
     4465  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
     4466  lt_cv_file_magic_cmd='$OBJDUMP -f'
     4467  ;;
     4468
     4469darwin* | rhapsody*)
     4470  lt_cv_deplibs_check_method=pass_all
     4471  ;;
     4472
     4473freebsd* | kfreebsd*-gnu | dragonfly*)
     4474  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
     4475    case $host_cpu in
     4476    i*86 )
     4477      # Not sure whether the presence of OpenBSD here was a mistake.
     4478      # Let's accept both of them until this is cleared up.
     4479      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
     4480      lt_cv_file_magic_cmd=/usr/bin/file
     4481      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
     4482      ;;
     4483    esac
     4484  else
     4485    lt_cv_deplibs_check_method=pass_all
     4486  fi
     4487  ;;
     4488
     4489gnu*)
     4490  lt_cv_deplibs_check_method=pass_all
     4491  ;;
     4492
     4493hpux10.20* | hpux11*)
     4494  lt_cv_file_magic_cmd=/usr/bin/file
     4495  case $host_cpu in
     4496  ia64*)
     4497    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
     4498    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
     4499    ;;
     4500  hppa*64*)
     4501    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
     4502    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
     4503    ;;
     4504  *)
     4505    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
     4506    lt_cv_file_magic_test_file=/usr/lib/libc.sl
     4507    ;;
     4508  esac
     4509  ;;
     4510
     4511interix3*)
     4512  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
     4513  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
     4514  ;;
     4515
     4516irix5* | irix6* | nonstopux*)
     4517  case $LD in
     4518  *-32|*"-32 ") libmagic=32-bit;;
     4519  *-n32|*"-n32 ") libmagic=N32;;
     4520  *-64|*"-64 ") libmagic=64-bit;;
     4521  *) libmagic=never-match;;
     4522  esac
     4523  lt_cv_deplibs_check_method=pass_all
     4524  ;;
     4525
     4526# This must be Linux ELF.
     4527linux*)
     4528  lt_cv_deplibs_check_method=pass_all
     4529  ;;
     4530
     4531netbsd*)
     4532  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
     4533    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
     4534  else
     4535    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
     4536  fi
     4537  ;;
     4538
     4539newos6*)
     4540  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
     4541  lt_cv_file_magic_cmd=/usr/bin/file
     4542  lt_cv_file_magic_test_file=/usr/lib/libnls.so
     4543  ;;
     4544
     4545nto-qnx*)
     4546  lt_cv_deplibs_check_method=unknown
     4547  ;;
     4548
     4549openbsd*)
     4550  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     4551    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
     4552  else
     4553    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
     4554  fi
     4555  ;;
     4556
     4557osf3* | osf4* | osf5*)
     4558  lt_cv_deplibs_check_method=pass_all
     4559  ;;
     4560
     4561solaris*)
     4562  lt_cv_deplibs_check_method=pass_all
     4563  ;;
     4564
     4565sysv4 | sysv4.3*)
     4566  case $host_vendor in
     4567  motorola)
     4568    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]'
     4569    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
     4570    ;;
     4571  ncr)
     4572    lt_cv_deplibs_check_method=pass_all
     4573    ;;
     4574  sequent)
     4575    lt_cv_file_magic_cmd='/bin/file'
     4576    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
     4577    ;;
     4578  sni)
     4579    lt_cv_file_magic_cmd='/bin/file'
     4580    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
     4581    lt_cv_file_magic_test_file=/lib/libc.so
     4582    ;;
     4583  siemens)
     4584    lt_cv_deplibs_check_method=pass_all
     4585    ;;
     4586  pc)
     4587    lt_cv_deplibs_check_method=pass_all
     4588    ;;
     4589  esac
     4590  ;;
     4591
     4592sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
     4593  lt_cv_deplibs_check_method=pass_all
     4594  ;;
     4595esac
     4596
     4597fi
     4598echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
     4599echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
     4600file_magic_cmd=$lt_cv_file_magic_cmd
     4601deplibs_check_method=$lt_cv_deplibs_check_method
     4602test -z "$deplibs_check_method" && deplibs_check_method=unknown
     4603
     4604
     4605
     4606
     4607# If no C compiler was specified, use CC.
     4608LTCC=${LTCC-"$CC"}
     4609
     4610# If no C compiler flags were specified, use CFLAGS.
     4611LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
     4612
     4613# Allow CC to be a program name with arguments.
     4614compiler=$CC
     4615
     4616# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
     4617if test "${enable_libtool_lock+set}" = set; then
     4618  enableval="$enable_libtool_lock"
     4619
    38204620fi;
    3821 
    3822 if test "$use_asldir" = BUILD; then
    3823   if test "$PACKAGE_NAME" != ThirdPartyASL; then
    3824     # If we are configuring ThirdParty/ASL, don't check
    3825     if test -r $coin_aslobjdir/.MakeOk; then :; else
    3826       { { echo "$as_me:$LINENO: error: option \"BUILD\" specified for asldir, but directory is not configure (sources missing?)" >&5
    3827 echo "$as_me: error: option \"BUILD\" specified for asldir, but directory is not configure (sources missing?)" >&2;}
    3828    { (exit 1); exit 1; }; }
    3829     fi
     4621test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
     4622
     4623# Some flags need to be propagated to the compiler or linker for good
     4624# libtool support.
     4625case $host in
     4626ia64-*-hpux*)
     4627  # Find out which ABI we are using.
     4628  echo 'int i;' > conftest.$ac_ext
     4629  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4630  (eval $ac_compile) 2>&5
     4631  ac_status=$?
     4632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4633  (exit $ac_status); }; then
     4634    case `/usr/bin/file conftest.$ac_objext` in
     4635    *ELF-32*)
     4636      HPUX_IA64_MODE="32"
     4637      ;;
     4638    *ELF-64*)
     4639      HPUX_IA64_MODE="64"
     4640      ;;
     4641    esac
    38304642  fi
    3831 elif test -z "$use_asldir"; then
    3832  # try to find sources - if not given don't compile
    3833   if test "$PACKAGE_NAME" != ThirdPartyASL; then
    3834     if test -r $coin_aslobjdir/.MakeOk; then
    3835       use_asldir=BUILD
    3836     else
    3837       use_asldir=no
    3838     fi
    3839   else
    3840     use_asldir=no
     4643  rm -rf conftest*
     4644  ;;
     4645*-*-irix6*)
     4646  # Find out which ABI we are using.
     4647  echo '#line 4647 "configure"' > conftest.$ac_ext
     4648  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4649  (eval $ac_compile) 2>&5
     4650  ac_status=$?
     4651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4652  (exit $ac_status); }; then
     4653   if test "$lt_cv_prog_gnu_ld" = yes; then
     4654    case `/usr/bin/file conftest.$ac_objext` in
     4655    *32-bit*)
     4656      LD="${LD-ld} -melf32bsmip"
     4657      ;;
     4658    *N32*)
     4659      LD="${LD-ld} -melf32bmipn32"
     4660      ;;
     4661    *64-bit*)
     4662      LD="${LD-ld} -melf64bmip"
     4663      ;;
     4664    esac
     4665   else
     4666    case `/usr/bin/file conftest.$ac_objext` in
     4667    *32-bit*)
     4668      LD="${LD-ld} -32"
     4669      ;;
     4670    *N32*)
     4671      LD="${LD-ld} -n32"
     4672      ;;
     4673    *64-bit*)
     4674      LD="${LD-ld} -64"
     4675      ;;
     4676    esac
     4677   fi
    38414678  fi
    3842 elif test "$use_asldir" != "no"; then
    3843   if test -r $use_asldir/$ampllib; then
    3844 
    3845   :
    3846 else
    3847   { { echo "$as_me:$LINENO: error: ASL directory \"$use_asldir\" specified, but library missing" >&5
    3848 echo "$as_me: error: ASL directory \"$use_asldir\" specified, but library missing" >&2;}
    3849    { (exit 1); exit 1; }; }
    3850   :
    3851 fi
    3852 
    3853   if test -r $use_asldir/asl.h; then
    3854 
    3855   :
    3856 else
    3857   { { echo "$as_me:$LINENO: error: ASL directory \"$use_asldir\" specified, but header files are missing" >&5
    3858 echo "$as_me: error: ASL directory \"$use_asldir\" specified, but header files are missing" >&2;}
    3859    { (exit 1); exit 1; }; }
    3860   :
    3861 fi
    3862 
    3863   use_asldir=`cd $use_asldir; pwd`
    3864   case $build in
    3865     *-cygwin*) use_asldir=`cygpath -w $use_asldir | sed -e sX\\\\\\\\X/Xg` ;;
    3866   esac
    3867 fi
    3868 
    3869 # Variable containing ASL library (including full path)
    3870 
    3871 # Variable containing flags for including ASL header files
    3872 
    3873 
    3874 if test "$use_asldir" = BUILD; then
    3875   coin_aslobjdir=`cd $coin_aslobjdir; pwd`
    3876   ASLLIB=`$CYGPATH_W $coin_aslobjdir/$ampllib | sed -e sX\\\\\\\\X/Xg`
    3877   coin_aslsrcdir=`cd $coin_aslsrcdir; pwd`
    3878   ASL_CPPFLAGS="-I"`$CYGPATH_W $coin_aslobjdir | sed -e sX\\\\\\\\X/Xg`" -I"`$CYGPATH_W $coin_aslsrcdir/solvers | sed -e sX\\\\\\\\X/Xg`
    3879 elif test "$use_asldir" != no; then
    3880   ASLLIB=`$CYGPATH_W $use_asldir/$ampllib | sed -e sX\\\\\\\\X/Xg`
    3881   ASL_CPPFLAGS="-I"`$CYGPATH_W $use_asldir | sed -e sX\\\\\\\\X/Xg`
    3882 fi
    3883 
    3884 if test "$use_asldir" != no; then
     4679  rm -rf conftest*
     4680  ;;
     4681
     4682x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
     4683  # Find out which ABI we are using.
     4684  echo 'int i;' > conftest.$ac_ext
     4685  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4686  (eval $ac_compile) 2>&5
     4687  ac_status=$?
     4688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4689  (exit $ac_status); }; then
     4690    case `/usr/bin/file conftest.o` in
     4691    *32-bit*)
     4692      case $host in
     4693        x86_64-*linux*)
     4694          LD="${LD-ld} -m elf_i386"
     4695          ;;
     4696        ppc64-*linux*|powerpc64-*linux*)
     4697          LD="${LD-ld} -m elf32ppclinux"
     4698          ;;
     4699        s390x-*linux*)
     4700          LD="${LD-ld} -m elf_s390"
     4701          ;;
     4702        sparc64-*linux*)
     4703          LD="${LD-ld} -m elf32_sparc"
     4704          ;;
     4705      esac
     4706      ;;
     4707    *64-bit*)
     4708      case $host in
     4709        x86_64-*linux*)
     4710          LD="${LD-ld} -m elf_x86_64"
     4711          ;;
     4712        ppc*-*linux*|powerpc*-*linux*)
     4713          LD="${LD-ld} -m elf64ppc"
     4714          ;;
     4715        s390*-*linux*)
     4716          LD="${LD-ld} -m elf64_s390"
     4717          ;;
     4718        sparc*-*linux*)
     4719          LD="${LD-ld} -m elf64_sparc"
     4720          ;;
     4721      esac
     4722      ;;
     4723    esac
     4724  fi
     4725  rm -rf conftest*
     4726  ;;
     4727
     4728*-*-sco3.2v5*)
     4729  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
     4730  SAVE_CFLAGS="$CFLAGS"
     4731  CFLAGS="$CFLAGS -belf"
     4732  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
     4733echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
     4734if test "${lt_cv_cc_needs_belf+set}" = set; then
     4735  echo $ECHO_N "(cached) $ECHO_C" >&6
     4736else
    38854737  ac_ext=c
    38864738ac_cpp='$CPP $CPPFLAGS'
     
    38894741ac_compiler_gnu=$ac_cv_c_compiler_gnu
    38904742
    3891   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
     4743     cat >conftest.$ac_ext <<_ACEOF
     4744/* confdefs.h.  */
     4745_ACEOF
     4746cat confdefs.h >>conftest.$ac_ext
     4747cat >>conftest.$ac_ext <<_ACEOF
     4748/* end confdefs.h.  */
     4749
     4750int
     4751main ()
     4752{
     4753
     4754  ;
     4755  return 0;
     4756}
     4757_ACEOF
     4758rm -f conftest.$ac_objext conftest$ac_exeext
     4759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4760  (eval $ac_link) 2>conftest.er1
     4761  ac_status=$?
     4762  grep -v '^ *+' conftest.er1 >conftest.err
     4763  rm -f conftest.er1
     4764  cat conftest.err >&5
     4765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4766  (exit $ac_status); } &&
     4767         { ac_try='test -z "$ac_c_werror_flag"
     4768                         || test ! -s conftest.err'
     4769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4770  (eval $ac_try) 2>&5
     4771  ac_status=$?
     4772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4773  (exit $ac_status); }; } &&
     4774         { ac_try='test -s conftest$ac_exeext'
     4775  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4776  (eval $ac_try) 2>&5
     4777  ac_status=$?
     4778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4779  (exit $ac_status); }; }; then
     4780  lt_cv_cc_needs_belf=yes
     4781else
     4782  echo "$as_me: failed program was:" >&5
     4783sed 's/^/| /' conftest.$ac_ext >&5
     4784
     4785lt_cv_cc_needs_belf=no
     4786fi
     4787rm -f conftest.err conftest.$ac_objext \
     4788      conftest$ac_exeext conftest.$ac_ext
     4789     ac_ext=c
     4790ac_cpp='$CPP $CPPFLAGS'
     4791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4793ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4794
     4795fi
     4796echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
     4797echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
     4798  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
     4799    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
     4800    CFLAGS="$SAVE_CFLAGS"
     4801  fi
     4802  ;;
     4803sparc*-*solaris*)
     4804  # Find out which ABI we are using.
     4805  echo 'int i;' > conftest.$ac_ext
     4806  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4807  (eval $ac_compile) 2>&5
     4808  ac_status=$?
     4809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4810  (exit $ac_status); }; then
     4811    case `/usr/bin/file conftest.o` in
     4812    *64-bit*)
     4813      case $lt_cv_prog_gnu_ld in
     4814      yes*) LD="${LD-ld} -m elf64_sparc" ;;
     4815      *)    LD="${LD-ld} -64" ;;
     4816      esac
     4817      ;;
     4818    esac
     4819  fi
     4820  rm -rf conftest*
     4821  ;;
     4822
     4823
     4824esac
     4825
     4826need_locks="$enable_libtool_lock"
     4827
     4828
     4829ac_ext=c
     4830ac_cpp='$CPP $CPPFLAGS'
     4831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4833ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4834echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
     4835echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
     4836# On Suns, sometimes $CPP names a directory.
     4837if test -n "$CPP" && test -d "$CPP"; then
     4838  CPP=
     4839fi
     4840if test -z "$CPP"; then
     4841  if test "${ac_cv_prog_CPP+set}" = set; then
     4842  echo $ECHO_N "(cached) $ECHO_C" >&6
     4843else
     4844      # Double quotes because CPP needs to be expanded
     4845    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
     4846    do
     4847      ac_preproc_ok=false
     4848for ac_c_preproc_warn_flag in '' yes
     4849do
     4850  # Use a header file that comes with gcc, so configuring glibc
     4851  # with a fresh cross-compiler works.
     4852  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     4853  # <limits.h> exists even on freestanding compilers.
     4854  # On the NeXT, cc -E runs the code through the compiler's parser,
     4855  # not just through cpp. "Syntax error" is here to catch this case.
     4856  cat >conftest.$ac_ext <<_ACEOF
     4857/* confdefs.h.  */
     4858_ACEOF
     4859cat confdefs.h >>conftest.$ac_ext
     4860cat >>conftest.$ac_ext <<_ACEOF
     4861/* end confdefs.h.  */
     4862#ifdef __STDC__
     4863# include <limits.h>
     4864#else
     4865# include <assert.h>
     4866#endif
     4867                     Syntax error
     4868_ACEOF
     4869if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     4870  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     4871  ac_status=$?
     4872  grep -v '^ *+' conftest.er1 >conftest.err
     4873  rm -f conftest.er1
     4874  cat conftest.err >&5
     4875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4876  (exit $ac_status); } >/dev/null; then
     4877  if test -s conftest.err; then
     4878    ac_cpp_err=$ac_c_preproc_warn_flag
     4879    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     4880  else
     4881    ac_cpp_err=
     4882  fi
     4883else
     4884  ac_cpp_err=yes
     4885fi
     4886if test -z "$ac_cpp_err"; then
     4887  :
     4888else
     4889  echo "$as_me: failed program was:" >&5
     4890sed 's/^/| /' conftest.$ac_ext >&5
     4891
     4892  # Broken: fails on valid input.
     4893continue
     4894fi
     4895rm -f conftest.err conftest.$ac_ext
     4896
     4897  # OK, works on sane cases.  Now check whether non-existent headers
     4898  # can be detected and how.
     4899  cat >conftest.$ac_ext <<_ACEOF
     4900/* confdefs.h.  */
     4901_ACEOF
     4902cat confdefs.h >>conftest.$ac_ext
     4903cat >>conftest.$ac_ext <<_ACEOF
     4904/* end confdefs.h.  */
     4905#include <ac_nonexistent.h>
     4906_ACEOF
     4907if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     4908  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     4909  ac_status=$?
     4910  grep -v '^ *+' conftest.er1 >conftest.err
     4911  rm -f conftest.er1
     4912  cat conftest.err >&5
     4913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4914  (exit $ac_status); } >/dev/null; then
     4915  if test -s conftest.err; then
     4916    ac_cpp_err=$ac_c_preproc_warn_flag
     4917    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     4918  else
     4919    ac_cpp_err=
     4920  fi
     4921else
     4922  ac_cpp_err=yes
     4923fi
     4924if test -z "$ac_cpp_err"; then
     4925  # Broken: success on invalid input.
     4926continue
     4927else
     4928  echo "$as_me: failed program was:" >&5
     4929sed 's/^/| /' conftest.$ac_ext >&5
     4930
     4931  # Passes both tests.
     4932ac_preproc_ok=:
     4933break
     4934fi
     4935rm -f conftest.err conftest.$ac_ext
     4936
     4937done
     4938# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     4939rm -f conftest.err conftest.$ac_ext
     4940if $ac_preproc_ok; then
     4941  break
     4942fi
     4943
     4944    done
     4945    ac_cv_prog_CPP=$CPP
     4946
     4947fi
     4948  CPP=$ac_cv_prog_CPP
     4949else
     4950  ac_cv_prog_CPP=$CPP
     4951fi
     4952echo "$as_me:$LINENO: result: $CPP" >&5
     4953echo "${ECHO_T}$CPP" >&6
     4954ac_preproc_ok=false
     4955for ac_c_preproc_warn_flag in '' yes
     4956do
     4957  # Use a header file that comes with gcc, so configuring glibc
     4958  # with a fresh cross-compiler works.
     4959  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     4960  # <limits.h> exists even on freestanding compilers.
     4961  # On the NeXT, cc -E runs the code through the compiler's parser,
     4962  # not just through cpp. "Syntax error" is here to catch this case.
     4963  cat >conftest.$ac_ext <<_ACEOF
     4964/* confdefs.h.  */
     4965_ACEOF
     4966cat confdefs.h >>conftest.$ac_ext
     4967cat >>conftest.$ac_ext <<_ACEOF
     4968/* end confdefs.h.  */
     4969#ifdef __STDC__
     4970# include <limits.h>
     4971#else
     4972# include <assert.h>
     4973#endif
     4974                     Syntax error
     4975_ACEOF
     4976if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     4977  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     4978  ac_status=$?
     4979  grep -v '^ *+' conftest.er1 >conftest.err
     4980  rm -f conftest.er1
     4981  cat conftest.err >&5
     4982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4983  (exit $ac_status); } >/dev/null; then
     4984  if test -s conftest.err; then
     4985    ac_cpp_err=$ac_c_preproc_warn_flag
     4986    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     4987  else
     4988    ac_cpp_err=
     4989  fi
     4990else
     4991  ac_cpp_err=yes
     4992fi
     4993if test -z "$ac_cpp_err"; then
     4994  :
     4995else
     4996  echo "$as_me: failed program was:" >&5
     4997sed 's/^/| /' conftest.$ac_ext >&5
     4998
     4999  # Broken: fails on valid input.
     5000continue
     5001fi
     5002rm -f conftest.err conftest.$ac_ext
     5003
     5004  # OK, works on sane cases.  Now check whether non-existent headers
     5005  # can be detected and how.
     5006  cat >conftest.$ac_ext <<_ACEOF
     5007/* confdefs.h.  */
     5008_ACEOF
     5009cat confdefs.h >>conftest.$ac_ext
     5010cat >>conftest.$ac_ext <<_ACEOF
     5011/* end confdefs.h.  */
     5012#include <ac_nonexistent.h>
     5013_ACEOF
     5014if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     5015  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     5016  ac_status=$?
     5017  grep -v '^ *+' conftest.er1 >conftest.err
     5018  rm -f conftest.er1
     5019  cat conftest.err >&5
     5020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5021  (exit $ac_status); } >/dev/null; then
     5022  if test -s conftest.err; then
     5023    ac_cpp_err=$ac_c_preproc_warn_flag
     5024    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     5025  else
     5026    ac_cpp_err=
     5027  fi
     5028else
     5029  ac_cpp_err=yes
     5030fi
     5031if test -z "$ac_cpp_err"; then
     5032  # Broken: success on invalid input.
     5033continue
     5034else
     5035  echo "$as_me: failed program was:" >&5
     5036sed 's/^/| /' conftest.$ac_ext >&5
     5037
     5038  # Passes both tests.
     5039ac_preproc_ok=:
     5040break
     5041fi
     5042rm -f conftest.err conftest.$ac_ext
     5043
     5044done
     5045# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     5046rm -f conftest.err conftest.$ac_ext
     5047if $ac_preproc_ok; then
     5048  :
     5049else
     5050  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
     5051See \`config.log' for more details." >&5
     5052echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
     5053See \`config.log' for more details." >&2;}
     5054   { (exit 1); exit 1; }; }
     5055fi
     5056
     5057ac_ext=c
     5058ac_cpp='$CPP $CPPFLAGS'
     5059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     5060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     5061ac_compiler_gnu=$ac_cv_c_compiler_gnu
     5062
     5063
     5064echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     5065echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     5066if test "${ac_cv_header_stdc+set}" = set; then
     5067  echo $ECHO_N "(cached) $ECHO_C" >&6
     5068else
     5069  cat >conftest.$ac_ext <<_ACEOF
     5070/* confdefs.h.  */
     5071_ACEOF
     5072cat confdefs.h >>conftest.$ac_ext
     5073cat >>conftest.$ac_ext <<_ACEOF
     5074/* end confdefs.h.  */
     5075#include <stdlib.h>
     5076#include <stdarg.h>
     5077#include <string.h>
     5078#include <float.h>
     5079
     5080int
     5081main ()
     5082{
     5083
     5084  ;
     5085  return 0;
     5086}
     5087_ACEOF
     5088rm -f conftest.$ac_objext
     5089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5090  (eval $ac_compile) 2>conftest.er1
     5091  ac_status=$?
     5092  grep -v '^ *+' conftest.er1 >conftest.err
     5093  rm -f conftest.er1
     5094  cat conftest.err >&5
     5095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5096  (exit $ac_status); } &&
     5097         { ac_try='test -z "$ac_c_werror_flag"
     5098                         || test ! -s conftest.err'
     5099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5100  (eval $ac_try) 2>&5
     5101  ac_status=$?
     5102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5103  (exit $ac_status); }; } &&
     5104         { ac_try='test -s conftest.$ac_objext'
     5105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5106  (eval $ac_try) 2>&5
     5107  ac_status=$?
     5108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5109  (exit $ac_status); }; }; then
     5110  ac_cv_header_stdc=yes
     5111else
     5112  echo "$as_me: failed program was:" >&5
     5113sed 's/^/| /' conftest.$ac_ext >&5
     5114
     5115ac_cv_header_stdc=no
     5116fi
     5117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5118
     5119if test $ac_cv_header_stdc = yes; then
     5120  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
     5121  cat >conftest.$ac_ext <<_ACEOF
     5122/* confdefs.h.  */
     5123_ACEOF
     5124cat confdefs.h >>conftest.$ac_ext
     5125cat >>conftest.$ac_ext <<_ACEOF
     5126/* end confdefs.h.  */
     5127#include <string.h>
     5128
     5129_ACEOF
     5130if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     5131  $EGREP "memchr" >/dev/null 2>&1; then
     5132  :
     5133else
     5134  ac_cv_header_stdc=no
     5135fi
     5136rm -f conftest*
     5137
     5138fi
     5139
     5140if test $ac_cv_header_stdc = yes; then
     5141  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
     5142  cat >conftest.$ac_ext <<_ACEOF
     5143/* confdefs.h.  */
     5144_ACEOF
     5145cat confdefs.h >>conftest.$ac_ext
     5146cat >>conftest.$ac_ext <<_ACEOF
     5147/* end confdefs.h.  */
     5148#include <stdlib.h>
     5149
     5150_ACEOF
     5151if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     5152  $EGREP "free" >/dev/null 2>&1; then
     5153  :
     5154else
     5155  ac_cv_header_stdc=no
     5156fi
     5157rm -f conftest*
     5158
     5159fi
     5160
     5161if test $ac_cv_header_stdc = yes; then
     5162  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
     5163  if test "$cross_compiling" = yes; then
     5164  :
     5165else
     5166  cat >conftest.$ac_ext <<_ACEOF
     5167/* confdefs.h.  */
     5168_ACEOF
     5169cat confdefs.h >>conftest.$ac_ext
     5170cat >>conftest.$ac_ext <<_ACEOF
     5171/* end confdefs.h.  */
     5172#include <ctype.h>
     5173#if ((' ' & 0x0FF) == 0x020)
     5174# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     5175# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     5176#else
     5177# define ISLOWER(c) \
     5178                   (('a' <= (c) && (c) <= 'i') \
     5179                     || ('j' <= (c) && (c) <= 'r') \
     5180                     || ('s' <= (c) && (c) <= 'z'))
     5181# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     5182#endif
     5183
     5184#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
     5185int
     5186main ()
     5187{
     5188  int i;
     5189  for (i = 0; i < 256; i++)
     5190    if (XOR (islower (i), ISLOWER (i))
     5191        || toupper (i) != TOUPPER (i))
     5192      exit(2);
     5193  exit (0);
     5194}
     5195_ACEOF
     5196rm -f conftest$ac_exeext
     5197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5198  (eval $ac_link) 2>&5
     5199  ac_status=$?
     5200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5201  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     5202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5203  (eval $ac_try) 2>&5
     5204  ac_status=$?
     5205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5206  (exit $ac_status); }; }; then
     5207  :
     5208else
     5209  echo "$as_me: program exited with status $ac_status" >&5
     5210echo "$as_me: failed program was:" >&5
     5211sed 's/^/| /' conftest.$ac_ext >&5
     5212
     5213( exit $ac_status )
     5214ac_cv_header_stdc=no
     5215fi
     5216rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     5217fi
     5218fi
     5219fi
     5220echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
     5221echo "${ECHO_T}$ac_cv_header_stdc" >&6
     5222if test $ac_cv_header_stdc = yes; then
     5223
     5224cat >>confdefs.h <<\_ACEOF
     5225#define STDC_HEADERS 1
     5226_ACEOF
     5227
     5228fi
     5229
     5230# On IRIX 5.3, sys/types and inttypes.h are conflicting.
     5231
     5232
     5233
     5234
     5235
     5236
     5237
     5238
     5239
     5240for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
     5241                  inttypes.h stdint.h unistd.h
     5242do
     5243as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     5244echo "$as_me:$LINENO: checking for $ac_header" >&5
     5245echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     5246if eval "test \"\${$as_ac_Header+set}\" = set"; then
     5247  echo $ECHO_N "(cached) $ECHO_C" >&6
     5248else
     5249  cat >conftest.$ac_ext <<_ACEOF
     5250/* confdefs.h.  */
     5251_ACEOF
     5252cat confdefs.h >>conftest.$ac_ext
     5253cat >>conftest.$ac_ext <<_ACEOF
     5254/* end confdefs.h.  */
     5255$ac_includes_default
     5256
     5257#include <$ac_header>
     5258_ACEOF
     5259rm -f conftest.$ac_objext
     5260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5261  (eval $ac_compile) 2>conftest.er1
     5262  ac_status=$?
     5263  grep -v '^ *+' conftest.er1 >conftest.err
     5264  rm -f conftest.er1
     5265  cat conftest.err >&5
     5266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5267  (exit $ac_status); } &&
     5268         { ac_try='test -z "$ac_c_werror_flag"
     5269                         || test ! -s conftest.err'
     5270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5271  (eval $ac_try) 2>&5
     5272  ac_status=$?
     5273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5274  (exit $ac_status); }; } &&
     5275         { ac_try='test -s conftest.$ac_objext'
     5276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5277  (eval $ac_try) 2>&5
     5278  ac_status=$?
     5279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5280  (exit $ac_status); }; }; then
     5281  eval "$as_ac_Header=yes"
     5282else
     5283  echo "$as_me: failed program was:" >&5
     5284sed 's/^/| /' conftest.$ac_ext >&5
     5285
     5286eval "$as_ac_Header=no"
     5287fi
     5288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5289fi
     5290echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     5291echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     5292if test `eval echo '${'$as_ac_Header'}'` = yes; then
     5293  cat >>confdefs.h <<_ACEOF
     5294#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     5295_ACEOF
     5296
     5297fi
     5298
     5299done
     5300
     5301
     5302
     5303for ac_header in dlfcn.h
     5304do
     5305as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     5306if eval "test \"\${$as_ac_Header+set}\" = set"; then
     5307  echo "$as_me:$LINENO: checking for $ac_header" >&5
     5308echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     5309if eval "test \"\${$as_ac_Header+set}\" = set"; then
     5310  echo $ECHO_N "(cached) $ECHO_C" >&6
     5311fi
     5312echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     5313echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     5314else
     5315  # Is the header compilable?
     5316echo "$as_me:$LINENO: checking $ac_header usability" >&5
     5317echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     5318cat >conftest.$ac_ext <<_ACEOF
     5319/* confdefs.h.  */
     5320_ACEOF
     5321cat confdefs.h >>conftest.$ac_ext
     5322cat >>conftest.$ac_ext <<_ACEOF
     5323/* end confdefs.h.  */
     5324$ac_includes_default
     5325#include <$ac_header>
     5326_ACEOF
     5327rm -f conftest.$ac_objext
     5328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5329  (eval $ac_compile) 2>conftest.er1
     5330  ac_status=$?
     5331  grep -v '^ *+' conftest.er1 >conftest.err
     5332  rm -f conftest.er1
     5333  cat conftest.err >&5
     5334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5335  (exit $ac_status); } &&
     5336         { ac_try='test -z "$ac_c_werror_flag"
     5337                         || test ! -s conftest.err'
     5338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5339  (eval $ac_try) 2>&5
     5340  ac_status=$?
     5341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5342  (exit $ac_status); }; } &&
     5343         { ac_try='test -s conftest.$ac_objext'
     5344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5345  (eval $ac_try) 2>&5
     5346  ac_status=$?
     5347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5348  (exit $ac_status); }; }; then
     5349  ac_header_compiler=yes
     5350else
     5351  echo "$as_me: failed program was:" >&5
     5352sed 's/^/| /' conftest.$ac_ext >&5
     5353
     5354ac_header_compiler=no
     5355fi
     5356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5357echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     5358echo "${ECHO_T}$ac_header_compiler" >&6
     5359
     5360# Is the header present?
     5361echo "$as_me:$LINENO: checking $ac_header presence" >&5
     5362echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     5363cat >conftest.$ac_ext <<_ACEOF
     5364/* confdefs.h.  */
     5365_ACEOF
     5366cat confdefs.h >>conftest.$ac_ext
     5367cat >>conftest.$ac_ext <<_ACEOF
     5368/* end confdefs.h.  */
     5369#include <$ac_header>
     5370_ACEOF
     5371if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     5372  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     5373  ac_status=$?
     5374  grep -v '^ *+' conftest.er1 >conftest.err
     5375  rm -f conftest.er1
     5376  cat conftest.err >&5
     5377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5378  (exit $ac_status); } >/dev/null; then
     5379  if test -s conftest.err; then
     5380    ac_cpp_err=$ac_c_preproc_warn_flag
     5381    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     5382  else
     5383    ac_cpp_err=
     5384  fi
     5385else
     5386  ac_cpp_err=yes
     5387fi
     5388if test -z "$ac_cpp_err"; then
     5389  ac_header_preproc=yes
     5390else
     5391  echo "$as_me: failed program was:" >&5
     5392sed 's/^/| /' conftest.$ac_ext >&5
     5393
     5394  ac_header_preproc=no
     5395fi
     5396rm -f conftest.err conftest.$ac_ext
     5397echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     5398echo "${ECHO_T}$ac_header_preproc" >&6
     5399
     5400# So?  What about this header?
     5401case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     5402  yes:no: )
     5403    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     5404echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     5405    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     5406echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     5407    ac_header_preproc=yes
     5408    ;;
     5409  no:yes:* )
     5410    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     5411echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     5412    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     5413echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     5414    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     5415echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     5416    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     5417echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     5418    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     5419echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     5420    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     5421echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     5422    (
     5423      cat <<\_ASBOX
     5424## --------------------------------------------------------------- ##
     5425## Report this to http://projects.coin-or.org/BuildTools/newticket ##
     5426## --------------------------------------------------------------- ##
     5427_ASBOX
     5428    ) |
     5429      sed "s/^/$as_me: WARNING:     /" >&2
     5430    ;;
     5431esac
     5432echo "$as_me:$LINENO: checking for $ac_header" >&5
     5433echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     5434if eval "test \"\${$as_ac_Header+set}\" = set"; then
     5435  echo $ECHO_N "(cached) $ECHO_C" >&6
     5436else
     5437  eval "$as_ac_Header=\$ac_header_preproc"
     5438fi
     5439echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     5440echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     5441
     5442fi
     5443if test `eval echo '${'$as_ac_Header'}'` = yes; then
     5444  cat >>confdefs.h <<_ACEOF
     5445#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     5446_ACEOF
     5447
     5448fi
     5449
     5450done
     5451
     5452ac_ext=cc
     5453ac_cpp='$CXXCPP $CPPFLAGS'
     5454ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     5455ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     5456ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     5457if test -n "$ac_tool_prefix"; then
     5458  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     5459  do
     5460    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     5461set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     5462echo "$as_me:$LINENO: checking for $ac_word" >&5
     5463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     5464if test "${ac_cv_prog_CXX+set}" = set; then
     5465  echo $ECHO_N "(cached) $ECHO_C" >&6
     5466else
     5467  if test -n "$CXX"; then
     5468  ac_cv_prog_CXX="$CXX" # Let the user override the test.
     5469else
     5470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     5471for as_dir in $PATH
     5472do
     5473  IFS=$as_save_IFS
     5474  test -z "$as_dir" && as_dir=.
     5475  for ac_exec_ext in '' $ac_executable_extensions; do
     5476  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     5477    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
     5478    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     5479    break 2
     5480  fi
     5481done
     5482done
     5483
     5484fi
     5485fi
     5486CXX=$ac_cv_prog_CXX
     5487if test -n "$CXX"; then
     5488  echo "$as_me:$LINENO: result: $CXX" >&5
     5489echo "${ECHO_T}$CXX" >&6
     5490else
     5491  echo "$as_me:$LINENO: result: no" >&5
     5492echo "${ECHO_T}no" >&6
     5493fi
     5494
     5495    test -n "$CXX" && break
     5496  done
     5497fi
     5498if test -z "$CXX"; then
     5499  ac_ct_CXX=$CXX
     5500  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     5501do
     5502  # Extract the first word of "$ac_prog", so it can be a program name with args.
     5503set dummy $ac_prog; ac_word=$2
     5504echo "$as_me:$LINENO: checking for $ac_word" >&5
     5505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     5506if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
     5507  echo $ECHO_N "(cached) $ECHO_C" >&6
     5508else
     5509  if test -n "$ac_ct_CXX"; then
     5510  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
     5511else
     5512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     5513for as_dir in $PATH
     5514do
     5515  IFS=$as_save_IFS
     5516  test -z "$as_dir" && as_dir=.
     5517  for ac_exec_ext in '' $ac_executable_extensions; do
     5518  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     5519    ac_cv_prog_ac_ct_CXX="$ac_prog"
     5520    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     5521    break 2
     5522  fi
     5523done
     5524done
     5525
     5526fi
     5527fi
     5528ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
     5529if test -n "$ac_ct_CXX"; then
     5530  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
     5531echo "${ECHO_T}$ac_ct_CXX" >&6
     5532else
     5533  echo "$as_me:$LINENO: result: no" >&5
     5534echo "${ECHO_T}no" >&6
     5535fi
     5536
     5537  test -n "$ac_ct_CXX" && break
     5538done
     5539test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
     5540
     5541  CXX=$ac_ct_CXX
     5542fi
     5543
     5544
     5545# Provide some information about the compiler.
     5546echo "$as_me:$LINENO:" \
     5547     "checking for C++ compiler version" >&5
     5548ac_compiler=`set X $ac_compile; echo $2`
     5549{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     5550  (eval $ac_compiler --version </dev/null >&5) 2>&5
     5551  ac_status=$?
     5552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5553  (exit $ac_status); }
     5554{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     5555  (eval $ac_compiler -v </dev/null >&5) 2>&5
     5556  ac_status=$?
     5557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5558  (exit $ac_status); }
     5559{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     5560  (eval $ac_compiler -V </dev/null >&5) 2>&5
     5561  ac_status=$?
     5562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5563  (exit $ac_status); }
     5564
     5565echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
     5566echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
     5567if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
     5568  echo $ECHO_N "(cached) $ECHO_C" >&6
     5569else
     5570  cat >conftest.$ac_ext <<_ACEOF
     5571/* confdefs.h.  */
     5572_ACEOF
     5573cat confdefs.h >>conftest.$ac_ext
     5574cat >>conftest.$ac_ext <<_ACEOF
     5575/* end confdefs.h.  */
     5576
     5577int
     5578main ()
     5579{
     5580#ifndef __GNUC__
     5581       choke me
     5582#endif
     5583
     5584  ;
     5585  return 0;
     5586}
     5587_ACEOF
     5588rm -f conftest.$ac_objext
     5589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5590  (eval $ac_compile) 2>conftest.er1
     5591  ac_status=$?
     5592  grep -v '^ *+' conftest.er1 >conftest.err
     5593  rm -f conftest.er1
     5594  cat conftest.err >&5
     5595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5596  (exit $ac_status); } &&
     5597         { ac_try='test -z "$ac_cxx_werror_flag"
     5598                         || test ! -s conftest.err'
     5599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5600  (eval $ac_try) 2>&5
     5601  ac_status=$?
     5602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5603  (exit $ac_status); }; } &&
     5604         { ac_try='test -s conftest.$ac_objext'
     5605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5606  (eval $ac_try) 2>&5
     5607  ac_status=$?
     5608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5609  (exit $ac_status); }; }; then
     5610  ac_compiler_gnu=yes
     5611else
     5612  echo "$as_me: failed program was:" >&5
     5613sed 's/^/| /' conftest.$ac_ext >&5
     5614
     5615ac_compiler_gnu=no
     5616fi
     5617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5618ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
     5619
     5620fi
     5621echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
     5622echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
     5623GXX=`test $ac_compiler_gnu = yes && echo yes`
     5624ac_test_CXXFLAGS=${CXXFLAGS+set}
     5625ac_save_CXXFLAGS=$CXXFLAGS
     5626CXXFLAGS="-g"
     5627echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
     5628echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
     5629if test "${ac_cv_prog_cxx_g+set}" = set; then
     5630  echo $ECHO_N "(cached) $ECHO_C" >&6
     5631else
     5632  cat >conftest.$ac_ext <<_ACEOF
     5633/* confdefs.h.  */
     5634_ACEOF
     5635cat confdefs.h >>conftest.$ac_ext
     5636cat >>conftest.$ac_ext <<_ACEOF
     5637/* end confdefs.h.  */
     5638
     5639int
     5640main ()
     5641{
     5642
     5643  ;
     5644  return 0;
     5645}
     5646_ACEOF
     5647rm -f conftest.$ac_objext
     5648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5649  (eval $ac_compile) 2>conftest.er1
     5650  ac_status=$?
     5651  grep -v '^ *+' conftest.er1 >conftest.err
     5652  rm -f conftest.er1
     5653  cat conftest.err >&5
     5654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5655  (exit $ac_status); } &&
     5656         { ac_try='test -z "$ac_cxx_werror_flag"
     5657                         || test ! -s conftest.err'
     5658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5659  (eval $ac_try) 2>&5
     5660  ac_status=$?
     5661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5662  (exit $ac_status); }; } &&
     5663         { ac_try='test -s conftest.$ac_objext'
     5664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5665  (eval $ac_try) 2>&5
     5666  ac_status=$?
     5667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5668  (exit $ac_status); }; }; then
     5669  ac_cv_prog_cxx_g=yes
     5670else
     5671  echo "$as_me: failed program was:" >&5
     5672sed 's/^/| /' conftest.$ac_ext >&5
     5673
     5674ac_cv_prog_cxx_g=no
     5675fi
     5676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5677fi
     5678echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
     5679echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
     5680if test "$ac_test_CXXFLAGS" = set; then
     5681  CXXFLAGS=$ac_save_CXXFLAGS
     5682elif test $ac_cv_prog_cxx_g = yes; then
     5683  if test "$GXX" = yes; then
     5684    CXXFLAGS="-g -O2"
     5685  else
     5686    CXXFLAGS="-g"
     5687  fi
     5688else
     5689  if test "$GXX" = yes; then
     5690    CXXFLAGS="-O2"
     5691  else
     5692    CXXFLAGS=
     5693  fi
     5694fi
     5695for ac_declaration in \
     5696   '' \
     5697   'extern "C" void std::exit (int) throw (); using std::exit;' \
     5698   'extern "C" void std::exit (int); using std::exit;' \
     5699   'extern "C" void exit (int) throw ();' \
     5700   'extern "C" void exit (int);' \
     5701   'void exit (int);'
     5702do
     5703  cat >conftest.$ac_ext <<_ACEOF
     5704/* confdefs.h.  */
     5705_ACEOF
     5706cat confdefs.h >>conftest.$ac_ext
     5707cat >>conftest.$ac_ext <<_ACEOF
     5708/* end confdefs.h.  */
     5709$ac_declaration
     5710#include <stdlib.h>
     5711int
     5712main ()
     5713{
     5714exit (42);
     5715  ;
     5716  return 0;
     5717}
     5718_ACEOF
     5719rm -f conftest.$ac_objext
     5720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5721  (eval $ac_compile) 2>conftest.er1
     5722  ac_status=$?
     5723  grep -v '^ *+' conftest.er1 >conftest.err
     5724  rm -f conftest.er1
     5725  cat conftest.err >&5
     5726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5727  (exit $ac_status); } &&
     5728         { ac_try='test -z "$ac_cxx_werror_flag"
     5729                         || test ! -s conftest.err'
     5730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5731  (eval $ac_try) 2>&5
     5732  ac_status=$?
     5733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5734  (exit $ac_status); }; } &&
     5735         { ac_try='test -s conftest.$ac_objext'
     5736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5737  (eval $ac_try) 2>&5
     5738  ac_status=$?
     5739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5740  (exit $ac_status); }; }; then
     5741  :
     5742else
     5743  echo "$as_me: failed program was:" >&5
     5744sed 's/^/| /' conftest.$ac_ext >&5
     5745
     5746continue
     5747fi
     5748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5749  cat >conftest.$ac_ext <<_ACEOF
     5750/* confdefs.h.  */
     5751_ACEOF
     5752cat confdefs.h >>conftest.$ac_ext
     5753cat >>conftest.$ac_ext <<_ACEOF
     5754/* end confdefs.h.  */
     5755$ac_declaration
     5756int
     5757main ()
     5758{
     5759exit (42);
     5760  ;
     5761  return 0;
     5762}
     5763_ACEOF
     5764rm -f conftest.$ac_objext
     5765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5766  (eval $ac_compile) 2>conftest.er1
     5767  ac_status=$?
     5768  grep -v '^ *+' conftest.er1 >conftest.err
     5769  rm -f conftest.er1
     5770  cat conftest.err >&5
     5771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5772  (exit $ac_status); } &&
     5773         { ac_try='test -z "$ac_cxx_werror_flag"
     5774                         || test ! -s conftest.err'
     5775  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5776  (eval $ac_try) 2>&5
     5777  ac_status=$?
     5778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5779  (exit $ac_status); }; } &&
     5780         { ac_try='test -s conftest.$ac_objext'
     5781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5782  (eval $ac_try) 2>&5
     5783  ac_status=$?
     5784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5785  (exit $ac_status); }; }; then
     5786  break
     5787else
     5788  echo "$as_me: failed program was:" >&5
     5789sed 's/^/| /' conftest.$ac_ext >&5
     5790
     5791fi
     5792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5793done
     5794rm -f conftest*
     5795if test -n "$ac_declaration"; then
     5796  echo '#ifdef __cplusplus' >>confdefs.h
     5797  echo $ac_declaration      >>confdefs.h
     5798  echo '#endif'             >>confdefs.h
     5799fi
     5800
     5801ac_ext=cc
     5802ac_cpp='$CXXCPP $CPPFLAGS'
     5803ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     5804ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     5805ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     5806
     5807depcc="$CXX"  am_compiler_list=
     5808
     5809echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
     5810echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
     5811if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
     5812  echo $ECHO_N "(cached) $ECHO_C" >&6
     5813else
     5814  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
     5815  # We make a subdir and do the tests there.  Otherwise we can end up
     5816  # making bogus files that we don't know about and never remove.  For
     5817  # instance it was reported that on HP-UX the gcc test will end up
     5818  # making a dummy file named `D' -- because `-MD' means `put the output
     5819  # in D'.
     5820  mkdir conftest.dir
     5821  # Copy depcomp to subdir because otherwise we won't find it if we're
     5822  # using a relative directory.
     5823  cp "$am_depcomp" conftest.dir
     5824  cd conftest.dir
     5825  # We will build objects and dependencies in a subdirectory because
     5826  # it helps to detect inapplicable dependency modes.  For instance
     5827  # both Tru64's cc and ICC support -MD to output dependencies as a
     5828  # side effect of compilation, but ICC will put the dependencies in
     5829  # the current directory while Tru64 will put them in the object
     5830  # directory.
     5831  mkdir sub
     5832
     5833  am_cv_CXX_dependencies_compiler_type=none
     5834  if test "$am_compiler_list" = ""; then
     5835     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
     5836  fi
     5837  for depmode in $am_compiler_list; do
     5838    # Setup a source with many dependencies, because some compilers
     5839    # like to wrap large dependency lists on column 80 (with \), and
     5840    # we should not choose a depcomp mode which is confused by this.
     5841    #
     5842    # We need to recreate these files for each test, as the compiler may
     5843    # overwrite some of them when testing with obscure command lines.
     5844    # This happens at least with the AIX C compiler.
     5845    : > sub/conftest.c
     5846    for i in 1 2 3 4 5 6; do
     5847      echo '#include "conftst'$i'.h"' >> sub/conftest.c
     5848      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
     5849      # Solaris 8's {/usr,}/bin/sh.
     5850      touch sub/conftst$i.h
     5851    done
     5852    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
     5853
     5854    case $depmode in
     5855    nosideeffect)
     5856      # after this tag, mechanisms are not by side-effect, so they'll
     5857      # only be used when explicitly requested
     5858      if test "x$enable_dependency_tracking" = xyes; then
     5859        continue
     5860      else
     5861        break
     5862      fi
     5863      ;;
     5864    none) break ;;
     5865    esac
     5866    # We check with `-c' and `-o' for the sake of the "dashmstdout"
     5867    # mode.  It turns out that the SunPro C++ compiler does not properly
     5868    # handle `-M -o', and we need to detect this.
     5869    if depmode=$depmode \
     5870       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
     5871       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
     5872       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
     5873         >/dev/null 2>conftest.err &&
     5874       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
     5875       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
     5876       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
     5877      # icc doesn't choke on unknown options, it will just issue warnings
     5878      # or remarks (even with -Werror).  So we grep stderr for any message
     5879      # that says an option was ignored or not supported.
     5880      # When given -MP, icc 7.0 and 7.1 complain thusly:
     5881      #   icc: Command line warning: ignoring option '-M'; no argument required
     5882      # The diagnosis changed in icc 8.0:
     5883      #   icc: Command line remark: option '-MP' not supported
     5884      if (grep 'ignoring option' conftest.err ||
     5885          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
     5886        am_cv_CXX_dependencies_compiler_type=$depmode
     5887        break
     5888      fi
     5889    fi
     5890  done
     5891
     5892  cd ..
     5893  rm -rf conftest.dir
     5894else
     5895  am_cv_CXX_dependencies_compiler_type=none
     5896fi
     5897
     5898fi
     5899echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
     5900echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
     5901CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
     5902
     5903
     5904
     5905if
     5906  test "x$enable_dependency_tracking" != xno \
     5907  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
     5908  am__fastdepCXX_TRUE=
     5909  am__fastdepCXX_FALSE='#'
     5910else
     5911  am__fastdepCXX_TRUE='#'
     5912  am__fastdepCXX_FALSE=
     5913fi
     5914
     5915
     5916
     5917
     5918if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
     5919    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
     5920    (test "X$CXX" != "Xg++"))) ; then
     5921  ac_ext=cc
     5922ac_cpp='$CXXCPP $CPPFLAGS'
     5923ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     5924ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     5925ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     5926echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
     5927echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
     5928if test -z "$CXXCPP"; then
     5929  if test "${ac_cv_prog_CXXCPP+set}" = set; then
     5930  echo $ECHO_N "(cached) $ECHO_C" >&6
     5931else
     5932      # Double quotes because CXXCPP needs to be expanded
     5933    for CXXCPP in "$CXX -E" "/lib/cpp"
     5934    do
     5935      ac_preproc_ok=false
     5936for ac_cxx_preproc_warn_flag in '' yes
     5937do
     5938  # Use a header file that comes with gcc, so configuring glibc
     5939  # with a fresh cross-compiler works.
     5940  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5941  # <limits.h> exists even on freestanding compilers.
     5942  # On the NeXT, cc -E runs the code through the compiler's parser,
     5943  # not just through cpp. "Syntax error" is here to catch this case.
     5944  cat >conftest.$ac_ext <<_ACEOF
     5945/* confdefs.h.  */
     5946_ACEOF
     5947cat confdefs.h >>conftest.$ac_ext
     5948cat >>conftest.$ac_ext <<_ACEOF
     5949/* end confdefs.h.  */
     5950#ifdef __STDC__
     5951# include <limits.h>
     5952#else
     5953# include <assert.h>
     5954#endif
     5955                     Syntax error
     5956_ACEOF
     5957if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     5958  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     5959  ac_status=$?
     5960  grep -v '^ *+' conftest.er1 >conftest.err
     5961  rm -f conftest.er1
     5962  cat conftest.err >&5
     5963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5964  (exit $ac_status); } >/dev/null; then
     5965  if test -s conftest.err; then
     5966    ac_cpp_err=$ac_cxx_preproc_warn_flag
     5967    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
     5968  else
     5969    ac_cpp_err=
     5970  fi
     5971else
     5972  ac_cpp_err=yes
     5973fi
     5974if test -z "$ac_cpp_err"; then
     5975  :
     5976else
     5977  echo "$as_me: failed program was:" >&5
     5978sed 's/^/| /' conftest.$ac_ext >&5
     5979
     5980  # Broken: fails on valid input.
     5981continue
     5982fi
     5983rm -f conftest.err conftest.$ac_ext
     5984
     5985  # OK, works on sane cases.  Now check whether non-existent headers
     5986  # can be detected and how.
     5987  cat >conftest.$ac_ext <<_ACEOF
     5988/* confdefs.h.  */
     5989_ACEOF
     5990cat confdefs.h >>conftest.$ac_ext
     5991cat >>conftest.$ac_ext <<_ACEOF
     5992/* end confdefs.h.  */
     5993#include <ac_nonexistent.h>
     5994_ACEOF
     5995if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     5996  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     5997  ac_status=$?
     5998  grep -v '^ *+' conftest.er1 >conftest.err
     5999  rm -f conftest.er1
     6000  cat conftest.err >&5
     6001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6002  (exit $ac_status); } >/dev/null; then
     6003  if test -s conftest.err; then
     6004    ac_cpp_err=$ac_cxx_preproc_warn_flag
     6005    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
     6006  else
     6007    ac_cpp_err=
     6008  fi
     6009else
     6010  ac_cpp_err=yes
     6011fi
     6012if test -z "$ac_cpp_err"; then
     6013  # Broken: success on invalid input.
     6014continue
     6015else
     6016  echo "$as_me: failed program was:" >&5
     6017sed 's/^/| /' conftest.$ac_ext >&5
     6018
     6019  # Passes both tests.
     6020ac_preproc_ok=:
     6021break
     6022fi
     6023rm -f conftest.err conftest.$ac_ext
     6024
     6025done
     6026# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     6027rm -f conftest.err conftest.$ac_ext
     6028if $ac_preproc_ok; then
     6029  break
     6030fi
     6031
     6032    done
     6033    ac_cv_prog_CXXCPP=$CXXCPP
     6034
     6035fi
     6036  CXXCPP=$ac_cv_prog_CXXCPP
     6037else
     6038  ac_cv_prog_CXXCPP=$CXXCPP
     6039fi
     6040echo "$as_me:$LINENO: result: $CXXCPP" >&5
     6041echo "${ECHO_T}$CXXCPP" >&6
     6042ac_preproc_ok=false
     6043for ac_cxx_preproc_warn_flag in '' yes
     6044do
     6045  # Use a header file that comes with gcc, so configuring glibc
     6046  # with a fresh cross-compiler works.
     6047  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     6048  # <limits.h> exists even on freestanding compilers.
     6049  # On the NeXT, cc -E runs the code through the compiler's parser,
     6050  # not just through cpp. "Syntax error" is here to catch this case.
     6051  cat >conftest.$ac_ext <<_ACEOF
     6052/* confdefs.h.  */
     6053_ACEOF
     6054cat confdefs.h >>conftest.$ac_ext
     6055cat >>conftest.$ac_ext <<_ACEOF
     6056/* end confdefs.h.  */
     6057#ifdef __STDC__
     6058# include <limits.h>
     6059#else
     6060# include <assert.h>
     6061#endif
     6062                     Syntax error
     6063_ACEOF
     6064if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     6065  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     6066  ac_status=$?
     6067  grep -v '^ *+' conftest.er1 >conftest.err
     6068  rm -f conftest.er1
     6069  cat conftest.err >&5
     6070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6071  (exit $ac_status); } >/dev/null; then
     6072  if test -s conftest.err; then
     6073    ac_cpp_err=$ac_cxx_preproc_warn_flag
     6074    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
     6075  else
     6076    ac_cpp_err=
     6077  fi
     6078else
     6079  ac_cpp_err=yes
     6080fi
     6081if test -z "$ac_cpp_err"; then
     6082  :
     6083else
     6084  echo "$as_me: failed program was:" >&5
     6085sed 's/^/| /' conftest.$ac_ext >&5
     6086
     6087  # Broken: fails on valid input.
     6088continue
     6089fi
     6090rm -f conftest.err conftest.$ac_ext
     6091
     6092  # OK, works on sane cases.  Now check whether non-existent headers
     6093  # can be detected and how.
     6094  cat >conftest.$ac_ext <<_ACEOF
     6095/* confdefs.h.  */
     6096_ACEOF
     6097cat confdefs.h >>conftest.$ac_ext
     6098cat >>conftest.$ac_ext <<_ACEOF
     6099/* end confdefs.h.  */
     6100#include <ac_nonexistent.h>
     6101_ACEOF
     6102if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     6103  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     6104  ac_status=$?
     6105  grep -v '^ *+' conftest.er1 >conftest.err
     6106  rm -f conftest.er1
     6107  cat conftest.err >&5
     6108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6109  (exit $ac_status); } >/dev/null; then
     6110  if test -s conftest.err; then
     6111    ac_cpp_err=$ac_cxx_preproc_warn_flag
     6112    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
     6113  else
     6114    ac_cpp_err=
     6115  fi
     6116else
     6117  ac_cpp_err=yes
     6118fi
     6119if test -z "$ac_cpp_err"; then
     6120  # Broken: success on invalid input.
     6121continue
     6122else
     6123  echo "$as_me: failed program was:" >&5
     6124sed 's/^/| /' conftest.$ac_ext >&5
     6125
     6126  # Passes both tests.
     6127ac_preproc_ok=:
     6128break
     6129fi
     6130rm -f conftest.err conftest.$ac_ext
     6131
     6132done
     6133# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     6134rm -f conftest.err conftest.$ac_ext
     6135if $ac_preproc_ok; then
     6136  :
     6137else
     6138  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
     6139See \`config.log' for more details." >&5
     6140echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
     6141See \`config.log' for more details." >&2;}
     6142   { (exit 1); exit 1; }; }
     6143fi
     6144
     6145ac_ext=cc
     6146ac_cpp='$CXXCPP $CPPFLAGS'
     6147ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     6148ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6149ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     6150
     6151fi
     6152
     6153
     6154ac_ext=f
     6155ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     6156ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6157ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     6158if test -n "$ac_tool_prefix"; then
     6159  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
     6160  do
     6161    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     6162set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     6163echo "$as_me:$LINENO: checking for $ac_word" >&5
     6164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     6165if test "${ac_cv_prog_F77+set}" = set; then
     6166  echo $ECHO_N "(cached) $ECHO_C" >&6
     6167else
     6168  if test -n "$F77"; then
     6169  ac_cv_prog_F77="$F77" # Let the user override the test.
     6170else
     6171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     6172for as_dir in $PATH
     6173do
     6174  IFS=$as_save_IFS
     6175  test -z "$as_dir" && as_dir=.
     6176  for ac_exec_ext in '' $ac_executable_extensions; do
     6177  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     6178    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
     6179    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     6180    break 2
     6181  fi
     6182done
     6183done
     6184
     6185fi
     6186fi
     6187F77=$ac_cv_prog_F77
     6188if test -n "$F77"; then
     6189  echo "$as_me:$LINENO: result: $F77" >&5
     6190echo "${ECHO_T}$F77" >&6
     6191else
     6192  echo "$as_me:$LINENO: result: no" >&5
     6193echo "${ECHO_T}no" >&6
     6194fi
     6195
     6196    test -n "$F77" && break
     6197  done
     6198fi
     6199if test -z "$F77"; then
     6200  ac_ct_F77=$F77
     6201  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
     6202do
     6203  # Extract the first word of "$ac_prog", so it can be a program name with args.
     6204set dummy $ac_prog; ac_word=$2
     6205echo "$as_me:$LINENO: checking for $ac_word" >&5
     6206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     6207if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
     6208  echo $ECHO_N "(cached) $ECHO_C" >&6
     6209else
     6210  if test -n "$ac_ct_F77"; then
     6211  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
     6212else
     6213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     6214for as_dir in $PATH
     6215do
     6216  IFS=$as_save_IFS
     6217  test -z "$as_dir" && as_dir=.
     6218  for ac_exec_ext in '' $ac_executable_extensions; do
     6219  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     6220    ac_cv_prog_ac_ct_F77="$ac_prog"
     6221    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     6222    break 2
     6223  fi
     6224done
     6225done
     6226
     6227fi
     6228fi
     6229ac_ct_F77=$ac_cv_prog_ac_ct_F77
     6230if test -n "$ac_ct_F77"; then
     6231  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
     6232echo "${ECHO_T}$ac_ct_F77" >&6
     6233else
     6234  echo "$as_me:$LINENO: result: no" >&5
     6235echo "${ECHO_T}no" >&6
     6236fi
     6237
     6238  test -n "$ac_ct_F77" && break
     6239done
     6240
     6241  F77=$ac_ct_F77
     6242fi
     6243
     6244
     6245# Provide some information about the compiler.
     6246echo "$as_me:6246:" \
     6247     "checking for Fortran 77 compiler version" >&5
     6248ac_compiler=`set X $ac_compile; echo $2`
     6249{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     6250  (eval $ac_compiler --version </dev/null >&5) 2>&5
     6251  ac_status=$?
     6252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6253  (exit $ac_status); }
     6254{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     6255  (eval $ac_compiler -v </dev/null >&5) 2>&5
     6256  ac_status=$?
     6257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6258  (exit $ac_status); }
     6259{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     6260  (eval $ac_compiler -V </dev/null >&5) 2>&5
     6261  ac_status=$?
     6262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6263  (exit $ac_status); }
     6264rm -f a.out
     6265
     6266# If we don't use `.F' as extension, the preprocessor is not run on the
     6267# input file.  (Note that this only needs to work for GNU compilers.)
     6268ac_save_ext=$ac_ext
     6269ac_ext=F
     6270echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
     6271echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
     6272if test "${ac_cv_f77_compiler_gnu+set}" = set; then
     6273  echo $ECHO_N "(cached) $ECHO_C" >&6
     6274else
     6275  cat >conftest.$ac_ext <<_ACEOF
     6276      program main
     6277#ifndef __GNUC__
     6278       choke me
     6279#endif
     6280
     6281      end
     6282_ACEOF
     6283rm -f conftest.$ac_objext
     6284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6285  (eval $ac_compile) 2>conftest.er1
     6286  ac_status=$?
     6287  grep -v '^ *+' conftest.er1 >conftest.err
     6288  rm -f conftest.er1
     6289  cat conftest.err >&5
     6290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6291  (exit $ac_status); } &&
     6292         { ac_try='test -z "$ac_f77_werror_flag"
     6293                         || test ! -s conftest.err'
     6294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6295  (eval $ac_try) 2>&5
     6296  ac_status=$?
     6297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6298  (exit $ac_status); }; } &&
     6299         { ac_try='test -s conftest.$ac_objext'
     6300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6301  (eval $ac_try) 2>&5
     6302  ac_status=$?
     6303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6304  (exit $ac_status); }; }; then
     6305  ac_compiler_gnu=yes
     6306else
     6307  echo "$as_me: failed program was:" >&5
     6308sed 's/^/| /' conftest.$ac_ext >&5
     6309
     6310ac_compiler_gnu=no
     6311fi
     6312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6313ac_cv_f77_compiler_gnu=$ac_compiler_gnu
     6314
     6315fi
     6316echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
     6317echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
     6318ac_ext=$ac_save_ext
     6319ac_test_FFLAGS=${FFLAGS+set}
     6320ac_save_FFLAGS=$FFLAGS
     6321FFLAGS=
     6322echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
     6323echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
     6324if test "${ac_cv_prog_f77_g+set}" = set; then
     6325  echo $ECHO_N "(cached) $ECHO_C" >&6
     6326else
     6327  FFLAGS=-g
     6328cat >conftest.$ac_ext <<_ACEOF
     6329      program main
     6330
     6331      end
     6332_ACEOF
     6333rm -f conftest.$ac_objext
     6334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6335  (eval $ac_compile) 2>conftest.er1
     6336  ac_status=$?
     6337  grep -v '^ *+' conftest.er1 >conftest.err
     6338  rm -f conftest.er1
     6339  cat conftest.err >&5
     6340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6341  (exit $ac_status); } &&
     6342         { ac_try='test -z "$ac_f77_werror_flag"
     6343                         || test ! -s conftest.err'
     6344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6345  (eval $ac_try) 2>&5
     6346  ac_status=$?
     6347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6348  (exit $ac_status); }; } &&
     6349         { ac_try='test -s conftest.$ac_objext'
     6350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6351  (eval $ac_try) 2>&5
     6352  ac_status=$?
     6353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6354  (exit $ac_status); }; }; then
     6355  ac_cv_prog_f77_g=yes
     6356else
     6357  echo "$as_me: failed program was:" >&5
     6358sed 's/^/| /' conftest.$ac_ext >&5
     6359
     6360ac_cv_prog_f77_g=no
     6361fi
     6362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6363
     6364fi
     6365echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
     6366echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
     6367if test "$ac_test_FFLAGS" = set; then
     6368  FFLAGS=$ac_save_FFLAGS
     6369elif test $ac_cv_prog_f77_g = yes; then
     6370  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
     6371    FFLAGS="-g -O2"
     6372  else
     6373    FFLAGS="-g"
     6374  fi
     6375else
     6376  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
     6377    FFLAGS="-O2"
     6378  else
     6379    FFLAGS=
     6380  fi
     6381fi
     6382
     6383G77=`test $ac_compiler_gnu = yes && echo yes`
     6384ac_ext=c
     6385ac_cpp='$CPP $CPPFLAGS'
     6386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     6387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6388ac_compiler_gnu=$ac_cv_c_compiler_gnu
     6389
     6390
     6391
     6392# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
     6393
     6394# find the maximum length of command line arguments
     6395echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
     6396echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
     6397if test "${lt_cv_sys_max_cmd_len+set}" = set; then
     6398  echo $ECHO_N "(cached) $ECHO_C" >&6
     6399else
     6400    i=0
     6401  teststring="ABCD"
     6402
     6403  case $build_os in
     6404  msdosdjgpp*)
     6405    # On DJGPP, this test can blow up pretty badly due to problems in libc
     6406    # (any single argument exceeding 2000 bytes causes a buffer overrun
     6407    # during glob expansion).  Even if it were fixed, the result of this
     6408    # check would be larger than it should be.
     6409    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
     6410    ;;
     6411
     6412  gnu*)
     6413    # Under GNU Hurd, this test is not required because there is
     6414    # no limit to the length of command line arguments.
     6415    # Libtool will interpret -1 as no limit whatsoever
     6416    lt_cv_sys_max_cmd_len=-1;
     6417    ;;
     6418
     6419  cygwin* | mingw*)
     6420    # On Win9x/ME, this test blows up -- it succeeds, but takes
     6421    # about 5 minutes as the teststring grows exponentially.
     6422    # Worse, since 9x/ME are not pre-emptively multitasking,
     6423    # you end up with a "frozen" computer, even though with patience
     6424    # the test eventually succeeds (with a max line length of 256k).
     6425    # Instead, let's just punt: use the minimum linelength reported by
     6426    # all of the supported platforms: 8192 (on NT/2K/XP).
     6427    lt_cv_sys_max_cmd_len=8192;
     6428    ;;
     6429
     6430  amigaos*)
     6431    # On AmigaOS with pdksh, this test takes hours, literally.
     6432    # So we just punt and use a minimum line length of 8192.
     6433    lt_cv_sys_max_cmd_len=8192;
     6434    ;;
     6435
     6436  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
     6437    # This has been around since 386BSD, at least.  Likely further.
     6438    if test -x /sbin/sysctl; then
     6439      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
     6440    elif test -x /usr/sbin/sysctl; then
     6441      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
     6442    else
     6443      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
     6444    fi
     6445    # And add a safety zone
     6446    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
     6447    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
     6448    ;;
     6449
     6450  interix*)
     6451    # We know the value 262144 and hardcode it with a safety zone (like BSD)
     6452    lt_cv_sys_max_cmd_len=196608
     6453    ;;
     6454
     6455  osf*)
     6456    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
     6457    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
     6458    # nice to cause kernel panics so lets avoid the loop below.
     6459    # First set a reasonable default.
     6460    lt_cv_sys_max_cmd_len=16384
     6461    #
     6462    if test -x /sbin/sysconfig; then
     6463      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
     6464        *1*) lt_cv_sys_max_cmd_len=-1 ;;
     6465      esac
     6466    fi
     6467    ;;
     6468  sco3.2v5*)
     6469    lt_cv_sys_max_cmd_len=102400
     6470    ;;
     6471  sysv5* | sco5v6* | sysv4.2uw2*)
     6472    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
     6473    if test -n "$kargmax"; then
     6474      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
     6475    else
     6476      lt_cv_sys_max_cmd_len=32768
     6477    fi
     6478    ;;
     6479  *)
     6480    # If test is not a shell built-in, we'll probably end up computing a
     6481    # maximum length that is only half of the actual maximum length, but
     6482    # we can't tell.
     6483    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
     6484    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
     6485               = "XX$teststring") >/dev/null 2>&1 &&
     6486            new_result=`expr "X$teststring" : ".*" 2>&1` &&
     6487            lt_cv_sys_max_cmd_len=$new_result &&
     6488            test $i != 17 # 1/2 MB should be enough
     6489    do
     6490      i=`expr $i + 1`
     6491      teststring=$teststring$teststring
     6492    done
     6493    teststring=
     6494    # Add a significant safety factor because C++ compilers can tack on massive
     6495    # amounts of additional arguments before passing them to the linker.
     6496    # It appears as though 1/2 is a usable value.
     6497    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
     6498    ;;
     6499  esac
     6500
     6501fi
     6502
     6503if test -n $lt_cv_sys_max_cmd_len ; then
     6504  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
     6505echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
     6506else
     6507  echo "$as_me:$LINENO: result: none" >&5
     6508echo "${ECHO_T}none" >&6
     6509fi
     6510
     6511
     6512
     6513
     6514# Check for command to grab the raw symbol name followed by C symbol from nm.
     6515echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
     6516echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
     6517if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
     6518  echo $ECHO_N "(cached) $ECHO_C" >&6
     6519else
     6520
     6521# These are sane defaults that work on at least a few old systems.
     6522# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
     6523
     6524# Character class describing NM global symbol codes.
     6525symcode='[BCDEGRST]'
     6526
     6527# Regexp to match symbols that can be accessed directly from C.
     6528sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
     6529
     6530# Transform an extracted symbol line into a proper C declaration
     6531lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
     6532
     6533# Transform an extracted symbol line into symbol name and symbol address
     6534lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
     6535
     6536# Define system-specific variables.
     6537case $host_os in
     6538aix*)
     6539  symcode='[BCDT]'
     6540  ;;
     6541cygwin* | mingw* | pw32*)
     6542  symcode='[ABCDGISTW]'
     6543  ;;
     6544hpux*) # Its linker distinguishes data from code symbols
     6545  if test "$host_cpu" = ia64; then
     6546    symcode='[ABCDEGRST]'
     6547  fi
     6548  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
     6549  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
     6550  ;;
     6551linux*)
     6552  if test "$host_cpu" = ia64; then
     6553    symcode='[ABCDGIRSTW]'
     6554    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
     6555    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
     6556  fi
     6557  ;;
     6558irix* | nonstopux*)
     6559  symcode='[BCDEGRST]'
     6560  ;;
     6561osf*)
     6562  symcode='[BCDEGQRST]'
     6563  ;;
     6564solaris*)
     6565  symcode='[BDRT]'
     6566  ;;
     6567sco3.2v5*)
     6568  symcode='[DT]'
     6569  ;;
     6570sysv4.2uw2*)
     6571  symcode='[DT]'
     6572  ;;
     6573sysv5* | sco5v6* | unixware* | OpenUNIX*)
     6574  symcode='[ABDT]'
     6575  ;;
     6576sysv4)
     6577  symcode='[DFNSTU]'
     6578  ;;
     6579esac
     6580
     6581# Handle CRLF in mingw tool chain
     6582opt_cr=
     6583case $build_os in
     6584mingw*)
     6585  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
     6586  ;;
     6587esac
     6588
     6589# If we're using GNU nm, then use its standard symbol codes.
     6590case `$NM -V 2>&1` in
     6591*GNU* | *'with BFD'*)
     6592  symcode='[ABCDGIRSTW]' ;;
     6593esac
     6594
     6595# Try without a prefix undercore, then with it.
     6596for ac_symprfx in "" "_"; do
     6597
     6598  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
     6599  symxfrm="\\1 $ac_symprfx\\2 \\2"
     6600
     6601  # Write the raw and C identifiers.
     6602  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
     6603
     6604  # Check to see that the pipe works correctly.
     6605  pipe_works=no
     6606
     6607  rm -f conftest*
     6608  cat > conftest.$ac_ext <<EOF
     6609#ifdef __cplusplus
     6610extern "C" {
     6611#endif
     6612char nm_test_var;
     6613void nm_test_func(){}
     6614#ifdef __cplusplus
     6615}
     6616#endif
     6617int main(){nm_test_var='a';nm_test_func();return(0);}
     6618EOF
     6619
     6620  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6621  (eval $ac_compile) 2>&5
     6622  ac_status=$?
     6623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6624  (exit $ac_status); }; then
     6625    # Now try to grab the symbols.
     6626    nlist=conftest.nm
     6627    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
     6628  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
     6629  ac_status=$?
     6630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6631  (exit $ac_status); } && test -s "$nlist"; then
     6632      # Try sorting and uniquifying the output.
     6633      if sort "$nlist" | uniq > "$nlist"T; then
     6634        mv -f "$nlist"T "$nlist"
     6635      else
     6636        rm -f "$nlist"T
     6637      fi
     6638
     6639      # Make sure that we snagged all the symbols we need.
     6640      if grep ' nm_test_var$' "$nlist" >/dev/null; then
     6641        if grep ' nm_test_func$' "$nlist" >/dev/null; then
     6642          cat <<EOF > conftest.$ac_ext
     6643#ifdef __cplusplus
     6644extern "C" {
     6645#endif
     6646
     6647EOF
     6648          # Now generate the symbol file.
     6649          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
     6650
     6651          cat <<EOF >> conftest.$ac_ext
     6652#if defined (__STDC__) && __STDC__
     6653# define lt_ptr_t void *
     6654#else
     6655# define lt_ptr_t char *
     6656# define const
     6657#endif
     6658
     6659/* The mapping between symbol names and symbols. */
     6660const struct {
     6661  const char *name;
     6662  lt_ptr_t address;
     6663}
     6664lt_preloaded_symbols[] =
     6665{
     6666EOF
     6667          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
     6668          cat <<\EOF >> conftest.$ac_ext
     6669  {0, (lt_ptr_t) 0}
     6670};
     6671
     6672#ifdef __cplusplus
     6673}
     6674#endif
     6675EOF
     6676          # Now try linking the two files.
     6677          mv conftest.$ac_objext conftstm.$ac_objext
     6678          lt_save_LIBS="$LIBS"
     6679          lt_save_CFLAGS="$CFLAGS"
     6680          LIBS="conftstm.$ac_objext"
     6681          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
     6682          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6683  (eval $ac_link) 2>&5
     6684  ac_status=$?
     6685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6686  (exit $ac_status); } && test -s conftest${ac_exeext}; then
     6687            pipe_works=yes
     6688          fi
     6689          LIBS="$lt_save_LIBS"
     6690          CFLAGS="$lt_save_CFLAGS"
     6691        else
     6692          echo "cannot find nm_test_func in $nlist" >&5
     6693        fi
     6694      else
     6695        echo "cannot find nm_test_var in $nlist" >&5
     6696      fi
     6697    else
     6698      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
     6699    fi
     6700  else
     6701    echo "$progname: failed program was:" >&5
     6702    cat conftest.$ac_ext >&5
     6703  fi
     6704  rm -f conftest* conftst*
     6705
     6706  # Do not use the global_symbol_pipe unless it works.
     6707  if test "$pipe_works" = yes; then
     6708    break
     6709  else
     6710    lt_cv_sys_global_symbol_pipe=
     6711  fi
     6712done
     6713
     6714fi
     6715
     6716if test -z "$lt_cv_sys_global_symbol_pipe"; then
     6717  lt_cv_sys_global_symbol_to_cdecl=
     6718fi
     6719if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
     6720  echo "$as_me:$LINENO: result: failed" >&5
     6721echo "${ECHO_T}failed" >&6
     6722else
     6723  echo "$as_me:$LINENO: result: ok" >&5
     6724echo "${ECHO_T}ok" >&6
     6725fi
     6726
     6727echo "$as_me:$LINENO: checking for objdir" >&5
     6728echo $ECHO_N "checking for objdir... $ECHO_C" >&6
     6729if test "${lt_cv_objdir+set}" = set; then
     6730  echo $ECHO_N "(cached) $ECHO_C" >&6
     6731else
     6732  rm -f .libs 2>/dev/null
     6733mkdir .libs 2>/dev/null
     6734if test -d .libs; then
     6735  lt_cv_objdir=.libs
     6736else
     6737  # MS-DOS does not allow filenames that begin with a dot.
     6738  lt_cv_objdir=_libs
     6739fi
     6740rmdir .libs 2>/dev/null
     6741fi
     6742echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
     6743echo "${ECHO_T}$lt_cv_objdir" >&6
     6744objdir=$lt_cv_objdir
     6745
     6746
     6747
     6748
     6749
     6750case $host_os in
     6751aix3*)
     6752  # AIX sometimes has problems with the GCC collect2 program.  For some
     6753  # reason, if we set the COLLECT_NAMES environment variable, the problems
     6754  # vanish in a puff of smoke.
     6755  if test "X${COLLECT_NAMES+set}" != Xset; then
     6756    COLLECT_NAMES=
     6757    export COLLECT_NAMES
     6758  fi
     6759  ;;
     6760esac
     6761
     6762# Sed substitution that helps us do robust quoting.  It backslashifies
     6763# metacharacters that are still active within double-quoted strings.
     6764Xsed='sed -e 1s/^X//'
     6765sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
     6766
     6767# Same as above, but do not quote variable references.
     6768double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
     6769
     6770# Sed substitution to delay expansion of an escaped shell variable in a
     6771# double_quote_subst'ed string.
     6772delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
     6773
     6774# Sed substitution to avoid accidental globbing in evaled expressions
     6775no_glob_subst='s/\*/\\\*/g'
     6776
     6777# Constants:
     6778rm="rm -f"
     6779
     6780# Global variables:
     6781default_ofile=libtool
     6782can_build_shared=yes
     6783
     6784# All known linkers require a `.a' archive for static linking (except MSVC,
     6785# which needs '.lib').
     6786libext=a
     6787ltmain="$ac_aux_dir/ltmain.sh"
     6788ofile="$default_ofile"
     6789with_gnu_ld="$lt_cv_prog_gnu_ld"
     6790
     6791if test -n "$ac_tool_prefix"; then
     6792  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
     6793set dummy ${ac_tool_prefix}ar; ac_word=$2
     6794echo "$as_me:$LINENO: checking for $ac_word" >&5
     6795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     6796if test "${ac_cv_prog_AR+set}" = set; then
     6797  echo $ECHO_N "(cached) $ECHO_C" >&6
     6798else
     6799  if test -n "$AR"; then
     6800  ac_cv_prog_AR="$AR" # Let the user override the test.
     6801else
     6802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     6803for as_dir in $PATH
     6804do
     6805  IFS=$as_save_IFS
     6806  test -z "$as_dir" && as_dir=.
     6807  for ac_exec_ext in '' $ac_executable_extensions; do
     6808  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     6809    ac_cv_prog_AR="${ac_tool_prefix}ar"
     6810    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     6811    break 2
     6812  fi
     6813done
     6814done
     6815
     6816fi
     6817fi
     6818AR=$ac_cv_prog_AR
     6819if test -n "$AR"; then
     6820  echo "$as_me:$LINENO: result: $AR" >&5
     6821echo "${ECHO_T}$AR" >&6
     6822else
     6823  echo "$as_me:$LINENO: result: no" >&5
     6824echo "${ECHO_T}no" >&6
     6825fi
     6826
     6827fi
     6828if test -z "$ac_cv_prog_AR"; then
     6829  ac_ct_AR=$AR
     6830  # Extract the first word of "ar", so it can be a program name with args.
     6831set dummy ar; ac_word=$2
     6832echo "$as_me:$LINENO: checking for $ac_word" >&5
     6833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     6834if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
     6835  echo $ECHO_N "(cached) $ECHO_C" >&6
     6836else
     6837  if test -n "$ac_ct_AR"; then
     6838  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
     6839else
     6840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     6841for as_dir in $PATH
     6842do
     6843  IFS=$as_save_IFS
     6844  test -z "$as_dir" && as_dir=.
     6845  for ac_exec_ext in '' $ac_executable_extensions; do
     6846  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     6847    ac_cv_prog_ac_ct_AR="ar"
     6848    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     6849    break 2
     6850  fi
     6851done
     6852done
     6853
     6854  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
     6855fi
     6856fi
     6857ac_ct_AR=$ac_cv_prog_ac_ct_AR
     6858if test -n "$ac_ct_AR"; then
     6859  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
     6860echo "${ECHO_T}$ac_ct_AR" >&6
     6861else
     6862  echo "$as_me:$LINENO: result: no" >&5
     6863echo "${ECHO_T}no" >&6
     6864fi
     6865
     6866  AR=$ac_ct_AR
     6867else
     6868  AR="$ac_cv_prog_AR"
     6869fi
     6870
     6871if test -n "$ac_tool_prefix"; then
     6872  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
     6873set dummy ${ac_tool_prefix}ranlib; ac_word=$2
     6874echo "$as_me:$LINENO: checking for $ac_word" >&5
     6875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     6876if test "${ac_cv_prog_RANLIB+set}" = set; then
     6877  echo $ECHO_N "(cached) $ECHO_C" >&6
     6878else
     6879  if test -n "$RANLIB"; then
     6880  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
     6881else
     6882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     6883for as_dir in $PATH
     6884do
     6885  IFS=$as_save_IFS
     6886  test -z "$as_dir" && as_dir=.
     6887  for ac_exec_ext in '' $ac_executable_extensions; do
     6888  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     6889    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
     6890    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     6891    break 2
     6892  fi
     6893done
     6894done
     6895
     6896fi
     6897fi
     6898RANLIB=$ac_cv_prog_RANLIB
     6899if test -n "$RANLIB"; then
     6900  echo "$as_me:$LINENO: result: $RANLIB" >&5
     6901echo "${ECHO_T}$RANLIB" >&6
     6902else
     6903  echo "$as_me:$LINENO: result: no" >&5
     6904echo "${ECHO_T}no" >&6
     6905fi
     6906
     6907fi
     6908if test -z "$ac_cv_prog_RANLIB"; then
     6909  ac_ct_RANLIB=$RANLIB
     6910  # Extract the first word of "ranlib", so it can be a program name with args.
     6911set dummy ranlib; ac_word=$2
     6912echo "$as_me:$LINENO: checking for $ac_word" >&5
     6913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     6914if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
     6915  echo $ECHO_N "(cached) $ECHO_C" >&6
     6916else
     6917  if test -n "$ac_ct_RANLIB"; then
     6918  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
     6919else
     6920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     6921for as_dir in $PATH
     6922do
     6923  IFS=$as_save_IFS
     6924  test -z "$as_dir" && as_dir=.
     6925  for ac_exec_ext in '' $ac_executable_extensions; do
     6926  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     6927    ac_cv_prog_ac_ct_RANLIB="ranlib"
     6928    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     6929    break 2
     6930  fi
     6931done
     6932done
     6933
     6934  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
     6935fi
     6936fi
     6937ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
     6938if test -n "$ac_ct_RANLIB"; then
     6939  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
     6940echo "${ECHO_T}$ac_ct_RANLIB" >&6
     6941else
     6942  echo "$as_me:$LINENO: result: no" >&5
     6943echo "${ECHO_T}no" >&6
     6944fi
     6945
     6946  RANLIB=$ac_ct_RANLIB
     6947else
     6948  RANLIB="$ac_cv_prog_RANLIB"
     6949fi
     6950
     6951if test -n "$ac_tool_prefix"; then
     6952  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
     6953set dummy ${ac_tool_prefix}strip; ac_word=$2
     6954echo "$as_me:$LINENO: checking for $ac_word" >&5
     6955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     6956if test "${ac_cv_prog_STRIP+set}" = set; then
     6957  echo $ECHO_N "(cached) $ECHO_C" >&6
     6958else
     6959  if test -n "$STRIP"; then
     6960  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
     6961else
     6962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     6963for as_dir in $PATH
     6964do
     6965  IFS=$as_save_IFS
     6966  test -z "$as_dir" && as_dir=.
     6967  for ac_exec_ext in '' $ac_executable_extensions; do
     6968  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     6969    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
     6970    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     6971    break 2
     6972  fi
     6973done
     6974done
     6975
     6976fi
     6977fi
     6978STRIP=$ac_cv_prog_STRIP
     6979if test -n "$STRIP"; then
     6980  echo "$as_me:$LINENO: result: $STRIP" >&5
     6981echo "${ECHO_T}$STRIP" >&6
     6982else
     6983  echo "$as_me:$LINENO: result: no" >&5
     6984echo "${ECHO_T}no" >&6
     6985fi
     6986
     6987fi
     6988if test -z "$ac_cv_prog_STRIP"; then
     6989  ac_ct_STRIP=$STRIP
     6990  # Extract the first word of "strip", so it can be a program name with args.
     6991set dummy strip; ac_word=$2
     6992echo "$as_me:$LINENO: checking for $ac_word" >&5
     6993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     6994if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
     6995  echo $ECHO_N "(cached) $ECHO_C" >&6
     6996else
     6997  if test -n "$ac_ct_STRIP"; then
     6998  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
     6999else
     7000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     7001for as_dir in $PATH
     7002do
     7003  IFS=$as_save_IFS
     7004  test -z "$as_dir" && as_dir=.
     7005  for ac_exec_ext in '' $ac_executable_extensions; do
     7006  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     7007    ac_cv_prog_ac_ct_STRIP="strip"
     7008    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     7009    break 2
     7010  fi
     7011done
     7012done
     7013
     7014  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
     7015fi
     7016fi
     7017ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
     7018if test -n "$ac_ct_STRIP"; then
     7019  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
     7020echo "${ECHO_T}$ac_ct_STRIP" >&6
     7021else
     7022  echo "$as_me:$LINENO: result: no" >&5
     7023echo "${ECHO_T}no" >&6
     7024fi
     7025
     7026  STRIP=$ac_ct_STRIP
     7027else
     7028  STRIP="$ac_cv_prog_STRIP"
     7029fi
     7030
     7031
     7032old_CC="$CC"
     7033old_CFLAGS="$CFLAGS"
     7034
     7035# Set sane defaults for various variables
     7036test -z "$AR" && AR=ar
     7037test -z "$AR_FLAGS" && AR_FLAGS=cru
     7038test -z "$AS" && AS=as
     7039test -z "$CC" && CC=cc
     7040test -z "$LTCC" && LTCC=$CC
     7041test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
     7042test -z "$DLLTOOL" && DLLTOOL=dlltool
     7043test -z "$LD" && LD=ld
     7044test -z "$LN_S" && LN_S="ln -s"
     7045test -z "$MAGIC_CMD" && MAGIC_CMD=file
     7046test -z "$NM" && NM=nm
     7047test -z "$SED" && SED=sed
     7048test -z "$OBJDUMP" && OBJDUMP=objdump
     7049test -z "$RANLIB" && RANLIB=:
     7050test -z "$STRIP" && STRIP=:
     7051test -z "$ac_objext" && ac_objext=o
     7052
     7053# Determine commands to create old-style static archives.
     7054old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
     7055old_postinstall_cmds='chmod 644 $oldlib'
     7056old_postuninstall_cmds=
     7057
     7058if test -n "$RANLIB"; then
     7059  case $host_os in
     7060  openbsd*)
     7061    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
     7062    ;;
     7063  *)
     7064    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
     7065    ;;
     7066  esac
     7067  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
     7068fi
     7069
     7070for cc_temp in $compiler""; do
     7071  case $cc_temp in
     7072    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
     7073    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
     7074    \-*) ;;
     7075    *) break;;
     7076  esac
     7077done
     7078cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
     7079
     7080
     7081# Only perform the check for file, if the check method requires it
     7082case $deplibs_check_method in
     7083file_magic*)
     7084  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
     7085    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
     7086echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
     7087if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
     7088  echo $ECHO_N "(cached) $ECHO_C" >&6
     7089else
     7090  case $MAGIC_CMD in
     7091[\\/*] |  ?:[\\/]*)
     7092  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
     7093  ;;
     7094*)
     7095  lt_save_MAGIC_CMD="$MAGIC_CMD"
     7096  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
     7097  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
     7098  for ac_dir in $ac_dummy; do
     7099    IFS="$lt_save_ifs"
     7100    test -z "$ac_dir" && ac_dir=.
     7101    if test -f $ac_dir/${ac_tool_prefix}file; then
     7102      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
     7103      if test -n "$file_magic_test_file"; then
     7104        case $deplibs_check_method in
     7105        "file_magic "*)
     7106          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
     7107          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
     7108          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
     7109            $EGREP "$file_magic_regex" > /dev/null; then
     7110            :
     7111          else
     7112            cat <<EOF 1>&2
     7113
     7114*** Warning: the command libtool uses to detect shared libraries,
     7115*** $file_magic_cmd, produces output that libtool cannot recognize.
     7116*** The result is that libtool may fail to recognize shared libraries
     7117*** as such.  This will affect the creation of libtool libraries that
     7118*** depend on shared libraries, but programs linked with such libtool
     7119*** libraries will work regardless of this problem.  Nevertheless, you
     7120*** may want to report the problem to your system manager and/or to
     7121*** bug-libtool@gnu.org
     7122
     7123EOF
     7124          fi ;;
     7125        esac
     7126      fi
     7127      break
     7128    fi
     7129  done
     7130  IFS="$lt_save_ifs"
     7131  MAGIC_CMD="$lt_save_MAGIC_CMD"
     7132  ;;
     7133esac
     7134fi
     7135
     7136MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
     7137if test -n "$MAGIC_CMD"; then
     7138  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
     7139echo "${ECHO_T}$MAGIC_CMD" >&6
     7140else
     7141  echo "$as_me:$LINENO: result: no" >&5
     7142echo "${ECHO_T}no" >&6
     7143fi
     7144
     7145if test -z "$lt_cv_path_MAGIC_CMD"; then
     7146  if test -n "$ac_tool_prefix"; then
     7147    echo "$as_me:$LINENO: checking for file" >&5
     7148echo $ECHO_N "checking for file... $ECHO_C" >&6
     7149if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
     7150  echo $ECHO_N "(cached) $ECHO_C" >&6
     7151else
     7152  case $MAGIC_CMD in
     7153[\\/*] |  ?:[\\/]*)
     7154  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
     7155  ;;
     7156*)
     7157  lt_save_MAGIC_CMD="$MAGIC_CMD"
     7158  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
     7159  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
     7160  for ac_dir in $ac_dummy; do
     7161    IFS="$lt_save_ifs"
     7162    test -z "$ac_dir" && ac_dir=.
     7163    if test -f $ac_dir/file; then
     7164      lt_cv_path_MAGIC_CMD="$ac_dir/file"
     7165      if test -n "$file_magic_test_file"; then
     7166        case $deplibs_check_method in
     7167        "file_magic "*)
     7168          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
     7169          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
     7170          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
     7171            $EGREP "$file_magic_regex" > /dev/null; then
     7172            :
     7173          else
     7174            cat <<EOF 1>&2
     7175
     7176*** Warning: the command libtool uses to detect shared libraries,
     7177*** $file_magic_cmd, produces output that libtool cannot recognize.
     7178*** The result is that libtool may fail to recognize shared libraries
     7179*** as such.  This will affect the creation of libtool libraries that
     7180*** depend on shared libraries, but programs linked with such libtool
     7181*** libraries will work regardless of this problem.  Nevertheless, you
     7182*** may want to report the problem to your system manager and/or to
     7183*** bug-libtool@gnu.org
     7184
     7185EOF
     7186          fi ;;
     7187        esac
     7188      fi
     7189      break
     7190    fi
     7191  done
     7192  IFS="$lt_save_ifs"
     7193  MAGIC_CMD="$lt_save_MAGIC_CMD"
     7194  ;;
     7195esac
     7196fi
     7197
     7198MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
     7199if test -n "$MAGIC_CMD"; then
     7200  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
     7201echo "${ECHO_T}$MAGIC_CMD" >&6
     7202else
     7203  echo "$as_me:$LINENO: result: no" >&5
     7204echo "${ECHO_T}no" >&6
     7205fi
     7206
     7207  else
     7208    MAGIC_CMD=:
     7209  fi
     7210fi
     7211
     7212  fi
     7213  ;;
     7214esac
     7215
     7216enable_dlopen=no
     7217enable_win32_dll=no
     7218
     7219# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
     7220if test "${enable_libtool_lock+set}" = set; then
     7221  enableval="$enable_libtool_lock"
     7222
     7223fi;
     7224test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
     7225
     7226
     7227# Check whether --with-pic or --without-pic was given.
     7228if test "${with_pic+set}" = set; then
     7229  withval="$with_pic"
     7230  pic_mode="$withval"
     7231else
     7232  pic_mode=default
     7233fi;
     7234test -z "$pic_mode" && pic_mode=default
     7235
     7236# Use C for the default configuration in the libtool script
     7237tagname=
     7238lt_save_CC="$CC"
     7239ac_ext=c
     7240ac_cpp='$CPP $CPPFLAGS'
     7241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     7242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     7243ac_compiler_gnu=$ac_cv_c_compiler_gnu
     7244
     7245
     7246# Source file extension for C test sources.
     7247ac_ext=c
     7248
     7249# Object file extension for compiled C test sources.
     7250objext=o
     7251objext=$objext
     7252
     7253# Code to be used in simple compile tests
     7254lt_simple_compile_test_code="int some_variable = 0;\n"
     7255
     7256# Code to be used in simple link tests
     7257lt_simple_link_test_code='int main(){return(0);}\n'
     7258
     7259
     7260# If no C compiler was specified, use CC.
     7261LTCC=${LTCC-"$CC"}
     7262
     7263# If no C compiler flags were specified, use CFLAGS.
     7264LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
     7265
     7266# Allow CC to be a program name with arguments.
     7267compiler=$CC
     7268
     7269
     7270# save warnings/boilerplate of simple test code
     7271ac_outfile=conftest.$ac_objext
     7272printf "$lt_simple_compile_test_code" >conftest.$ac_ext
     7273eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
     7274_lt_compiler_boilerplate=`cat conftest.err`
     7275$rm conftest*
     7276
     7277ac_outfile=conftest.$ac_objext
     7278printf "$lt_simple_link_test_code" >conftest.$ac_ext
     7279eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
     7280_lt_linker_boilerplate=`cat conftest.err`
     7281$rm conftest*
     7282
     7283
     7284## CAVEAT EMPTOR:
     7285## There is no encapsulation within the following macros, do not change
     7286## the running order or otherwise move them around unless you know exactly
     7287## what you are doing...
     7288
     7289lt_prog_compiler_no_builtin_flag=
     7290
     7291if test "$GCC" = yes; then
     7292  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
     7293
     7294
     7295echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
     7296echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
     7297if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
     7298  echo $ECHO_N "(cached) $ECHO_C" >&6
     7299else
     7300  lt_cv_prog_compiler_rtti_exceptions=no
     7301  ac_outfile=conftest.$ac_objext
     7302   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     7303   lt_compiler_flag="-fno-rtti -fno-exceptions"
     7304   # Insert the option either (1) after the last *FLAGS variable, or
     7305   # (2) before a word containing "conftest.", or (3) at the end.
     7306   # Note that $ac_compile itself does not contain backslashes and begins
     7307   # with a dollar sign (not a hyphen), so the echo should work correctly.
     7308   # The option is referenced via a variable to avoid confusing sed.
     7309   lt_compile=`echo "$ac_compile" | $SED \
     7310   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
     7311   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
     7312   -e 's:$: $lt_compiler_flag:'`
     7313   (eval echo "\"\$as_me:7313: $lt_compile\"" >&5)
     7314   (eval "$lt_compile" 2>conftest.err)
     7315   ac_status=$?
     7316   cat conftest.err >&5
     7317   echo "$as_me:7317: \$? = $ac_status" >&5
     7318   if (exit $ac_status) && test -s "$ac_outfile"; then
     7319     # The compiler can only warn and ignore the option if not recognized
     7320     # So say no if there are warnings other than the usual output.
     7321     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     7322     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     7323     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
     7324       lt_cv_prog_compiler_rtti_exceptions=yes
     7325     fi
     7326   fi
     7327   $rm conftest*
     7328
     7329fi
     7330echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
     7331echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
     7332
     7333if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
     7334    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
     7335else
     7336    :
     7337fi
     7338
     7339fi
     7340
     7341lt_prog_compiler_wl=
     7342lt_prog_compiler_pic=
     7343lt_prog_compiler_static=
     7344
     7345echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
     7346echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
     7347
     7348  if test "$GCC" = yes; then
     7349    lt_prog_compiler_wl='-Wl,'
     7350    lt_prog_compiler_static='-static'
     7351
     7352    case $host_os in
     7353      aix*)
     7354      # All AIX code is PIC.
     7355      if test "$host_cpu" = ia64; then
     7356        # AIX 5 now supports IA64 processor
     7357        lt_prog_compiler_static='-Bstatic'
     7358      fi
     7359      ;;
     7360
     7361    amigaos*)
     7362      # FIXME: we need at least 68020 code to build shared libraries, but
     7363      # adding the `-m68020' flag to GCC prevents building anything better,
     7364      # like `-m68040'.
     7365      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
     7366      ;;
     7367
     7368    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
     7369      # PIC is the default for these OSes.
     7370      ;;
     7371
     7372    mingw* | pw32* | os2*)
     7373      # This hack is so that the source file can tell whether it is being
     7374      # built for inclusion in a dll (and should export symbols for example).
     7375      lt_prog_compiler_pic='-DDLL_EXPORT'
     7376      ;;
     7377
     7378    darwin* | rhapsody*)
     7379      # PIC is the default on this platform
     7380      # Common symbols not allowed in MH_DYLIB files
     7381      lt_prog_compiler_pic='-fno-common'
     7382      ;;
     7383
     7384    interix3*)
     7385      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
     7386      # Instead, we relocate shared libraries at runtime.
     7387      ;;
     7388
     7389    msdosdjgpp*)
     7390      # Just because we use GCC doesn't mean we suddenly get shared libraries
     7391      # on systems that don't support them.
     7392      lt_prog_compiler_can_build_shared=no
     7393      enable_shared=no
     7394      ;;
     7395
     7396    sysv4*MP*)
     7397      if test -d /usr/nec; then
     7398        lt_prog_compiler_pic=-Kconform_pic
     7399      fi
     7400      ;;
     7401
     7402    hpux*)
     7403      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
     7404      # not for PA HP-UX.
     7405      case $host_cpu in
     7406      hppa*64*|ia64*)
     7407        # +Z the default
     7408        ;;
     7409      *)
     7410        lt_prog_compiler_pic='-fPIC'
     7411        ;;
     7412      esac
     7413      ;;
     7414
     7415    *)
     7416      lt_prog_compiler_pic='-fPIC'
     7417      ;;
     7418    esac
     7419  else
     7420    # PORTME Check for flag to pass linker flags through the system compiler.
     7421    case $host_os in
     7422    aix*)
     7423      lt_prog_compiler_wl='-Wl,'
     7424      if test "$host_cpu" = ia64; then
     7425        # AIX 5 now supports IA64 processor
     7426        lt_prog_compiler_static='-Bstatic'
     7427      else
     7428        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
     7429      fi
     7430      ;;
     7431      darwin*)
     7432        # PIC is the default on this platform
     7433        # Common symbols not allowed in MH_DYLIB files
     7434       case $cc_basename in
     7435         xlc*)
     7436         lt_prog_compiler_pic='-qnocommon'
     7437         lt_prog_compiler_wl='-Wl,'
     7438         ;;
     7439       esac
     7440       ;;
     7441
     7442    mingw* | pw32* | os2*)
     7443      # This hack is so that the source file can tell whether it is being
     7444      # built for inclusion in a dll (and should export symbols for example).
     7445      lt_prog_compiler_pic='-DDLL_EXPORT'
     7446      ;;
     7447
     7448    hpux9* | hpux10* | hpux11*)
     7449      lt_prog_compiler_wl='-Wl,'
     7450      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
     7451      # not for PA HP-UX.
     7452      case $host_cpu in
     7453      hppa*64*|ia64*)
     7454        # +Z the default
     7455        ;;
     7456      *)
     7457        lt_prog_compiler_pic='+Z'
     7458        ;;
     7459      esac
     7460      # Is there a better lt_prog_compiler_static that works with the bundled CC?
     7461      lt_prog_compiler_static='${wl}-a ${wl}archive'
     7462      ;;
     7463
     7464    irix5* | irix6* | nonstopux*)
     7465      lt_prog_compiler_wl='-Wl,'
     7466      # PIC (with -KPIC) is the default.
     7467      lt_prog_compiler_static='-non_shared'
     7468      ;;
     7469
     7470    newsos6)
     7471      lt_prog_compiler_pic='-KPIC'
     7472      lt_prog_compiler_static='-Bstatic'
     7473      ;;
     7474
     7475    linux*)
     7476      case $cc_basename in
     7477      icc* | ecc*)
     7478        lt_prog_compiler_wl='-Wl,'
     7479        lt_prog_compiler_pic='-KPIC'
     7480        lt_prog_compiler_static='-static'
     7481        ;;
     7482      pgcc* | pgf77* | pgf90* | pgf95*)
     7483        # Portland Group compilers (*not* the Pentium gcc compiler,
     7484        # which looks to be a dead project)
     7485        lt_prog_compiler_wl='-Wl,'
     7486        lt_prog_compiler_pic='-fpic'
     7487        lt_prog_compiler_static='-Bstatic'
     7488        ;;
     7489      ccc*)
     7490        lt_prog_compiler_wl='-Wl,'
     7491        # All Alpha code is PIC.
     7492        lt_prog_compiler_static='-non_shared'
     7493        ;;
     7494      esac
     7495      ;;
     7496
     7497    osf3* | osf4* | osf5*)
     7498      lt_prog_compiler_wl='-Wl,'
     7499      # All OSF/1 code is PIC.
     7500      lt_prog_compiler_static='-non_shared'
     7501      ;;
     7502
     7503    solaris*)
     7504      lt_prog_compiler_pic='-KPIC'
     7505      lt_prog_compiler_static='-Bstatic'
     7506      case $cc_basename in
     7507      f77* | f90* | f95*)
     7508        lt_prog_compiler_wl='-Qoption ld ';;
     7509      *)
     7510        lt_prog_compiler_wl='-Wl,';;
     7511      esac
     7512      ;;
     7513
     7514    sunos4*)
     7515      lt_prog_compiler_wl='-Qoption ld '
     7516      lt_prog_compiler_pic='-PIC'
     7517      lt_prog_compiler_static='-Bstatic'
     7518      ;;
     7519
     7520    sysv4 | sysv4.2uw2* | sysv4.3*)
     7521      lt_prog_compiler_wl='-Wl,'
     7522      lt_prog_compiler_pic='-KPIC'
     7523      lt_prog_compiler_static='-Bstatic'
     7524      ;;
     7525
     7526    sysv4*MP*)
     7527      if test -d /usr/nec ;then
     7528        lt_prog_compiler_pic='-Kconform_pic'
     7529        lt_prog_compiler_static='-Bstatic'
     7530      fi
     7531      ;;
     7532
     7533    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
     7534      lt_prog_compiler_wl='-Wl,'
     7535      lt_prog_compiler_pic='-KPIC'
     7536      lt_prog_compiler_static='-Bstatic'
     7537      ;;
     7538
     7539    unicos*)
     7540      lt_prog_compiler_wl='-Wl,'
     7541      lt_prog_compiler_can_build_shared=no
     7542      ;;
     7543
     7544    uts4*)
     7545      lt_prog_compiler_pic='-pic'
     7546      lt_prog_compiler_static='-Bstatic'
     7547      ;;
     7548
     7549    *)
     7550      lt_prog_compiler_can_build_shared=no
     7551      ;;
     7552    esac
     7553  fi
     7554
     7555echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
     7556echo "${ECHO_T}$lt_prog_compiler_pic" >&6
     7557
     7558#
     7559# Check to make sure the PIC flag actually works.
     7560#
     7561if test -n "$lt_prog_compiler_pic"; then
     7562
     7563echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
     7564echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
     7565if test "${lt_prog_compiler_pic_works+set}" = set; then
     7566  echo $ECHO_N "(cached) $ECHO_C" >&6
     7567else
     7568  lt_prog_compiler_pic_works=no
     7569  ac_outfile=conftest.$ac_objext
     7570   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     7571   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
     7572   # Insert the option either (1) after the last *FLAGS variable, or
     7573   # (2) before a word containing "conftest.", or (3) at the end.
     7574   # Note that $ac_compile itself does not contain backslashes and begins
     7575   # with a dollar sign (not a hyphen), so the echo should work correctly.
     7576   # The option is referenced via a variable to avoid confusing sed.
     7577   lt_compile=`echo "$ac_compile" | $SED \
     7578   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
     7579   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
     7580   -e 's:$: $lt_compiler_flag:'`
     7581   (eval echo "\"\$as_me:7581: $lt_compile\"" >&5)
     7582   (eval "$lt_compile" 2>conftest.err)
     7583   ac_status=$?
     7584   cat conftest.err >&5
     7585   echo "$as_me:7585: \$? = $ac_status" >&5
     7586   if (exit $ac_status) && test -s "$ac_outfile"; then
     7587     # The compiler can only warn and ignore the option if not recognized
     7588     # So say no if there are warnings other than the usual output.
     7589     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     7590     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     7591     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
     7592       lt_prog_compiler_pic_works=yes
     7593     fi
     7594   fi
     7595   $rm conftest*
     7596
     7597fi
     7598echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
     7599echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
     7600
     7601if test x"$lt_prog_compiler_pic_works" = xyes; then
     7602    case $lt_prog_compiler_pic in
     7603     "" | " "*) ;;
     7604     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
     7605     esac
     7606else
     7607    lt_prog_compiler_pic=
     7608     lt_prog_compiler_can_build_shared=no
     7609fi
     7610
     7611fi
     7612case $host_os in
     7613  # For platforms which do not support PIC, -DPIC is meaningless:
     7614  *djgpp*)
     7615    lt_prog_compiler_pic=
     7616    ;;
     7617  *)
     7618    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
     7619    ;;
     7620esac
     7621
     7622#
     7623# Check to make sure the static flag actually works.
     7624#
     7625wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
     7626echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
     7627echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
     7628if test "${lt_prog_compiler_static_works+set}" = set; then
     7629  echo $ECHO_N "(cached) $ECHO_C" >&6
     7630else
     7631  lt_prog_compiler_static_works=no
     7632   save_LDFLAGS="$LDFLAGS"
     7633   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
     7634   printf "$lt_simple_link_test_code" > conftest.$ac_ext
     7635   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     7636     # The linker can only warn and ignore the option if not recognized
     7637     # So say no if there are warnings
     7638     if test -s conftest.err; then
     7639       # Append any errors to the config.log.
     7640       cat conftest.err 1>&5
     7641       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
     7642       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     7643       if diff conftest.exp conftest.er2 >/dev/null; then
     7644         lt_prog_compiler_static_works=yes
     7645       fi
     7646     else
     7647       lt_prog_compiler_static_works=yes
     7648     fi
     7649   fi
     7650   $rm conftest*
     7651   LDFLAGS="$save_LDFLAGS"
     7652
     7653fi
     7654echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
     7655echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
     7656
     7657if test x"$lt_prog_compiler_static_works" = xyes; then
     7658    :
     7659else
     7660    lt_prog_compiler_static=
     7661fi
     7662
     7663
     7664echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
     7665echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
     7666if test "${lt_cv_prog_compiler_c_o+set}" = set; then
     7667  echo $ECHO_N "(cached) $ECHO_C" >&6
     7668else
     7669  lt_cv_prog_compiler_c_o=no
     7670   $rm -r conftest 2>/dev/null
     7671   mkdir conftest
     7672   cd conftest
     7673   mkdir out
     7674   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     7675
     7676   lt_compiler_flag="-o out/conftest2.$ac_objext"
     7677   # Insert the option either (1) after the last *FLAGS variable, or
     7678   # (2) before a word containing "conftest.", or (3) at the end.
     7679   # Note that $ac_compile itself does not contain backslashes and begins
     7680   # with a dollar sign (not a hyphen), so the echo should work correctly.
     7681   lt_compile=`echo "$ac_compile" | $SED \
     7682   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
     7683   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
     7684   -e 's:$: $lt_compiler_flag:'`
     7685   (eval echo "\"\$as_me:7685: $lt_compile\"" >&5)
     7686   (eval "$lt_compile" 2>out/conftest.err)
     7687   ac_status=$?
     7688   cat out/conftest.err >&5
     7689   echo "$as_me:7689: \$? = $ac_status" >&5
     7690   if (exit $ac_status) && test -s out/conftest2.$ac_objext
     7691   then
     7692     # The compiler can only warn and ignore the option if not recognized
     7693     # So say no if there are warnings
     7694     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     7695     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     7696     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
     7697       lt_cv_prog_compiler_c_o=yes
     7698     fi
     7699   fi
     7700   chmod u+w . 2>&5
     7701   $rm conftest*
     7702   # SGI C++ compiler will create directory out/ii_files/ for
     7703   # template instantiation
     7704   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
     7705   $rm out/* && rmdir out
     7706   cd ..
     7707   rmdir conftest
     7708   $rm conftest*
     7709
     7710fi
     7711echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
     7712echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
     7713
     7714
     7715hard_links="nottested"
     7716if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
     7717  # do not overwrite the value of need_locks provided by the user
     7718  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
     7719echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
     7720  hard_links=yes
     7721  $rm conftest*
     7722  ln conftest.a conftest.b 2>/dev/null && hard_links=no
     7723  touch conftest.a
     7724  ln conftest.a conftest.b 2>&5 || hard_links=no
     7725  ln conftest.a conftest.b 2>/dev/null && hard_links=no
     7726  echo "$as_me:$LINENO: result: $hard_links" >&5
     7727echo "${ECHO_T}$hard_links" >&6
     7728  if test "$hard_links" = no; then
     7729    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
     7730echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
     7731    need_locks=warn
     7732  fi
     7733else
     7734  need_locks=no
     7735fi
     7736
     7737echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
     7738echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
     7739
     7740  runpath_var=
     7741  allow_undefined_flag=
     7742  enable_shared_with_static_runtimes=no
     7743  archive_cmds=
     7744  archive_expsym_cmds=
     7745  old_archive_From_new_cmds=
     7746  old_archive_from_expsyms_cmds=
     7747  export_dynamic_flag_spec=
     7748  whole_archive_flag_spec=
     7749  thread_safe_flag_spec=
     7750  hardcode_libdir_flag_spec=
     7751  hardcode_libdir_flag_spec_ld=
     7752  hardcode_libdir_separator=
     7753  hardcode_direct=no
     7754  hardcode_minus_L=no
     7755  hardcode_shlibpath_var=unsupported
     7756  link_all_deplibs=unknown
     7757  hardcode_automatic=no
     7758  module_cmds=
     7759  module_expsym_cmds=
     7760  always_export_symbols=no
     7761  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
     7762  # include_expsyms should be a list of space-separated symbols to be *always*
     7763  # included in the symbol list
     7764  include_expsyms=
     7765  # exclude_expsyms can be an extended regexp of symbols to exclude
     7766  # it will be wrapped by ` (' and `)$', so one must not match beginning or
     7767  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
     7768  # as well as any symbol that contains `d'.
     7769  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
     7770  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
     7771  # platforms (ab)use it in PIC code, but their linkers get confused if
     7772  # the symbol is explicitly referenced.  Since portable code cannot
     7773  # rely on this symbol name, it's probably fine to never include it in
     7774  # preloaded symbol tables.
     7775  extract_expsyms_cmds=
     7776  # Just being paranoid about ensuring that cc_basename is set.
     7777  for cc_temp in $compiler""; do
     7778  case $cc_temp in
     7779    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
     7780    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
     7781    \-*) ;;
     7782    *) break;;
     7783  esac
     7784done
     7785cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
     7786
     7787  case $host_os in
     7788  cygwin* | mingw* | pw32*)
     7789    # FIXME: the MSVC++ port hasn't been tested in a loooong time
     7790    # When not using gcc, we currently assume that we are using
     7791    # Microsoft Visual C++.
     7792    if test "$GCC" != yes; then
     7793      with_gnu_ld=no
     7794    fi
     7795    ;;
     7796  interix*)
     7797    # we just hope/assume this is gcc and not c89 (= MSVC++)
     7798    with_gnu_ld=yes
     7799    ;;
     7800  openbsd*)
     7801    with_gnu_ld=no
     7802    ;;
     7803  esac
     7804
     7805  ld_shlibs=yes
     7806  if test "$with_gnu_ld" = yes; then
     7807    # If archive_cmds runs LD, not CC, wlarc should be empty
     7808    wlarc='${wl}'
     7809
     7810    # Set some defaults for GNU ld with shared library support. These
     7811    # are reset later if shared libraries are not supported. Putting them
     7812    # here allows them to be overridden if necessary.
     7813    runpath_var=LD_RUN_PATH
     7814    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
     7815    export_dynamic_flag_spec='${wl}--export-dynamic'
     7816    # ancient GNU ld didn't support --whole-archive et. al.
     7817    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
     7818        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
     7819      else
     7820        whole_archive_flag_spec=
     7821    fi
     7822    supports_anon_versioning=no
     7823    case `$LD -v 2>/dev/null` in
     7824      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
     7825      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
     7826      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
     7827      *\ 2.11.*) ;; # other 2.11 versions
     7828      *) supports_anon_versioning=yes ;;
     7829    esac
     7830
     7831    # See if GNU ld supports shared libraries.
     7832    case $host_os in
     7833    aix3* | aix4* | aix5*)
     7834      # On AIX/PPC, the GNU linker is very broken
     7835      if test "$host_cpu" != ia64; then
     7836        ld_shlibs=no
     7837        cat <<EOF 1>&2
     7838
     7839*** Warning: the GNU linker, at least up to release 2.9.1, is reported
     7840*** to be unable to reliably create shared libraries on AIX.
     7841*** Therefore, libtool is disabling shared libraries support.  If you
     7842*** really care for shared libraries, you may want to modify your PATH
     7843*** so that a non-GNU linker is found, and then restart.
     7844
     7845EOF
     7846      fi
     7847      ;;
     7848
     7849    amigaos*)
     7850      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)'
     7851      hardcode_libdir_flag_spec='-L$libdir'
     7852      hardcode_minus_L=yes
     7853
     7854      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
     7855      # that the semantics of dynamic libraries on AmigaOS, at least up
     7856      # to version 4, is to share data among multiple programs linked
     7857      # with the same dynamic library.  Since this doesn't match the
     7858      # behavior of shared libraries on other platforms, we can't use
     7859      # them.
     7860      ld_shlibs=no
     7861      ;;
     7862
     7863    beos*)
     7864      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
     7865        allow_undefined_flag=unsupported
     7866        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
     7867        # support --undefined.  This deserves some investigation.  FIXME
     7868        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     7869      else
     7870        ld_shlibs=no
     7871      fi
     7872      ;;
     7873
     7874    cygwin* | mingw* | pw32*)
     7875      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
     7876      # as there is no search path for DLLs.
     7877      hardcode_libdir_flag_spec='-L$libdir'
     7878      allow_undefined_flag=unsupported
     7879      always_export_symbols=no
     7880      enable_shared_with_static_runtimes=yes
     7881      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
     7882
     7883      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
     7884        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
     7885        # If the export-symbols file already is a .def file (1st line
     7886        # is EXPORTS), use it as is; otherwise, prepend...
     7887        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
     7888          cp $export_symbols $output_objdir/$soname.def;
     7889        else
     7890          echo EXPORTS > $output_objdir/$soname.def;
     7891          cat $export_symbols >> $output_objdir/$soname.def;
     7892        fi~
     7893        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
     7894      else
     7895        ld_shlibs=no
     7896      fi
     7897      ;;
     7898
     7899    interix3*)
     7900      hardcode_direct=no
     7901      hardcode_shlibpath_var=no
     7902      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
     7903      export_dynamic_flag_spec='${wl}-E'
     7904      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
     7905      # Instead, shared libraries are loaded at an image base (0x10000000 by
     7906      # default) and relocated if they conflict, which is a slow very memory
     7907      # consuming and fragmenting process.  To avoid this, we pick a random,
     7908      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
     7909      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
     7910      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
     7911      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
     7912      ;;
     7913
     7914    linux*)
     7915      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
     7916        tmp_addflag=
     7917        case $cc_basename,$host_cpu in
     7918        pgcc*)                          # Portland Group C compiler
     7919          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
     7920          tmp_addflag=' $pic_flag'
     7921          ;;
     7922        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
     7923          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
     7924          tmp_addflag=' $pic_flag -Mnomain' ;;
     7925        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
     7926          tmp_addflag=' -i_dynamic' ;;
     7927        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
     7928          tmp_addflag=' -i_dynamic -nofor_main' ;;
     7929        ifc* | ifort*)                  # Intel Fortran compiler
     7930          tmp_addflag=' -nofor_main' ;;
     7931        esac
     7932        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     7933
     7934        if test $supports_anon_versioning = yes; then
     7935          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
     7936  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
     7937  $echo "local: *; };" >> $output_objdir/$libname.ver~
     7938          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
     7939        fi
     7940      else
     7941        ld_shlibs=no
     7942      fi
     7943      ;;
     7944
     7945    netbsd*)
     7946      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
     7947        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
     7948        wlarc=
     7949      else
     7950        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     7951        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     7952      fi
     7953      ;;
     7954
     7955    solaris*)
     7956      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
     7957        ld_shlibs=no
     7958        cat <<EOF 1>&2
     7959
     7960*** Warning: The releases 2.8.* of the GNU linker cannot reliably
     7961*** create shared libraries on Solaris systems.  Therefore, libtool
     7962*** is disabling shared libraries support.  We urge you to upgrade GNU
     7963*** binutils to release 2.9.1 or newer.  Another option is to modify
     7964*** your PATH or compiler configuration so that the native linker is
     7965*** used, and then restart.
     7966
     7967EOF
     7968      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
     7969        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     7970        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     7971      else
     7972        ld_shlibs=no
     7973      fi
     7974      ;;
     7975
     7976    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
     7977      case `$LD -v 2>&1` in
     7978        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
     7979        ld_shlibs=no
     7980        cat <<_LT_EOF 1>&2
     7981
     7982*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
     7983*** reliably create shared libraries on SCO systems.  Therefore, libtool
     7984*** is disabling shared libraries support.  We urge you to upgrade GNU
     7985*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
     7986*** your PATH or compiler configuration so that the native linker is
     7987*** used, and then restart.
     7988
     7989_LT_EOF
     7990        ;;
     7991        *)
     7992          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
     7993            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
     7994            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
     7995            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
     7996          else
     7997            ld_shlibs=no
     7998          fi
     7999        ;;
     8000      esac
     8001      ;;
     8002
     8003    sunos4*)
     8004      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
     8005      wlarc=
     8006      hardcode_direct=yes
     8007      hardcode_shlibpath_var=no
     8008      ;;
     8009
     8010    *)
     8011      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
     8012        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     8013        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     8014      else
     8015        ld_shlibs=no
     8016      fi
     8017      ;;
     8018    esac
     8019
     8020    if test "$ld_shlibs" = no; then
     8021      runpath_var=
     8022      hardcode_libdir_flag_spec=
     8023      export_dynamic_flag_spec=
     8024      whole_archive_flag_spec=
     8025    fi
     8026  else
     8027    # PORTME fill in a description of your system's linker (not GNU ld)
     8028    case $host_os in
     8029    aix3*)
     8030      allow_undefined_flag=unsupported
     8031      always_export_symbols=yes
     8032      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'
     8033      # Note: this linker hardcodes the directories in LIBPATH if there
     8034      # are no directories specified by -L.
     8035      hardcode_minus_L=yes
     8036      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
     8037        # Neither direct hardcoding nor static linking is supported with a
     8038        # broken collect2.
     8039        hardcode_direct=unsupported
     8040      fi
     8041      ;;
     8042
     8043    aix4* | aix5*)
     8044      if test "$host_cpu" = ia64; then
     8045        # On IA64, the linker does run time linking by default, so we don't
     8046        # have to do anything special.
     8047        aix_use_runtimelinking=no
     8048        exp_sym_flag='-Bexport'
     8049        no_entry_flag=""
     8050      else
     8051        # If we're using GNU nm, then we don't want the "-C" option.
     8052        # -C means demangle to AIX nm, but means don't demangle with GNU nm
     8053        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
     8054          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
     8055        else
     8056          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
     8057        fi
     8058        aix_use_runtimelinking=no
     8059
     8060        # Test if we are trying to use run time linking or normal
     8061        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
     8062        # need to do runtime linking.
     8063        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
     8064          for ld_flag in $LDFLAGS; do
     8065          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
     8066            aix_use_runtimelinking=yes
     8067            break
     8068          fi
     8069          done
     8070          ;;
     8071        esac
     8072
     8073        exp_sym_flag='-bexport'
     8074        no_entry_flag='-bnoentry'
     8075      fi
     8076
     8077      # When large executables or shared objects are built, AIX ld can
     8078      # have problems creating the table of contents.  If linking a library
     8079      # or program results in "error TOC overflow" add -mminimal-toc to
     8080      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
     8081      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
     8082
     8083      archive_cmds=''
     8084      hardcode_direct=yes
     8085      hardcode_libdir_separator=':'
     8086      link_all_deplibs=yes
     8087
     8088      if test "$GCC" = yes; then
     8089        case $host_os in aix4.[012]|aix4.[012].*)
     8090        # We only want to do this on AIX 4.2 and lower, the check
     8091        # below for broken collect2 doesn't work under 4.3+
     8092          collect2name=`${CC} -print-prog-name=collect2`
     8093          if test -f "$collect2name" && \
     8094           strings "$collect2name" | grep resolve_lib_name >/dev/null
     8095          then
     8096          # We have reworked collect2
     8097          hardcode_direct=yes
     8098          else
     8099          # We have old collect2
     8100          hardcode_direct=unsupported
     8101          # It fails to find uninstalled libraries when the uninstalled
     8102          # path is not listed in the libpath.  Setting hardcode_minus_L
     8103          # to unsupported forces relinking
     8104          hardcode_minus_L=yes
     8105          hardcode_libdir_flag_spec='-L$libdir'
     8106          hardcode_libdir_separator=
     8107          fi
     8108          ;;
     8109        esac
     8110        shared_flag='-shared'
     8111        if test "$aix_use_runtimelinking" = yes; then
     8112          shared_flag="$shared_flag "'${wl}-G'
     8113        fi
     8114      else
     8115        # not using gcc
     8116        if test "$host_cpu" = ia64; then
     8117        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
     8118        # chokes on -Wl,-G. The following line is correct:
     8119          shared_flag='-G'
     8120        else
     8121          if test "$aix_use_runtimelinking" = yes; then
     8122            shared_flag='${wl}-G'
     8123          else
     8124            shared_flag='${wl}-bM:SRE'
     8125          fi
     8126        fi
     8127      fi
     8128
     8129      # It seems that -bexpall does not export symbols beginning with
     8130      # underscore (_), so it is better to generate a list of symbols to export.
     8131      always_export_symbols=yes
     8132      if test "$aix_use_runtimelinking" = yes; then
     8133        # Warning - without using the other runtime loading flags (-brtl),
     8134        # -berok will link without error, but may produce a broken library.
     8135        allow_undefined_flag='-berok'
     8136       # Determine the default libpath from the value encoded in an empty executable.
     8137       cat >conftest.$ac_ext <<_ACEOF
     8138/* confdefs.h.  */
     8139_ACEOF
     8140cat confdefs.h >>conftest.$ac_ext
     8141cat >>conftest.$ac_ext <<_ACEOF
     8142/* end confdefs.h.  */
     8143
     8144int
     8145main ()
     8146{
     8147
     8148  ;
     8149  return 0;
     8150}
     8151_ACEOF
     8152rm -f conftest.$ac_objext conftest$ac_exeext
     8153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     8154  (eval $ac_link) 2>conftest.er1
     8155  ac_status=$?
     8156  grep -v '^ *+' conftest.er1 >conftest.err
     8157  rm -f conftest.er1
     8158  cat conftest.err >&5
     8159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8160  (exit $ac_status); } &&
     8161         { ac_try='test -z "$ac_c_werror_flag"
     8162                         || test ! -s conftest.err'
     8163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8164  (eval $ac_try) 2>&5
     8165  ac_status=$?
     8166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8167  (exit $ac_status); }; } &&
     8168         { ac_try='test -s conftest$ac_exeext'
     8169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8170  (eval $ac_try) 2>&5
     8171  ac_status=$?
     8172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8173  (exit $ac_status); }; }; then
     8174
     8175aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
     8176}'`
     8177# Check for a 64-bit object if we didn't find anything.
     8178if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
     8179}'`; fi
     8180else
     8181  echo "$as_me: failed program was:" >&5
     8182sed 's/^/| /' conftest.$ac_ext >&5
     8183
     8184fi
     8185rm -f conftest.err conftest.$ac_objext \
     8186      conftest$ac_exeext conftest.$ac_ext
     8187if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
     8188
     8189       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
     8190        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
     8191       else
     8192        if test "$host_cpu" = ia64; then
     8193          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
     8194          allow_undefined_flag="-z nodefs"
     8195          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
     8196        else
     8197         # Determine the default libpath from the value encoded in an empty executable.
     8198         cat >conftest.$ac_ext <<_ACEOF
     8199/* confdefs.h.  */
     8200_ACEOF
     8201cat confdefs.h >>conftest.$ac_ext
     8202cat >>conftest.$ac_ext <<_ACEOF
     8203/* end confdefs.h.  */
     8204
     8205int
     8206main ()
     8207{
     8208
     8209  ;
     8210  return 0;
     8211}
     8212_ACEOF
     8213rm -f conftest.$ac_objext conftest$ac_exeext
     8214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     8215  (eval $ac_link) 2>conftest.er1
     8216  ac_status=$?
     8217  grep -v '^ *+' conftest.er1 >conftest.err
     8218  rm -f conftest.er1
     8219  cat conftest.err >&5
     8220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8221  (exit $ac_status); } &&
     8222         { ac_try='test -z "$ac_c_werror_flag"
     8223                         || test ! -s conftest.err'
     8224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8225  (eval $ac_try) 2>&5
     8226  ac_status=$?
     8227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8228  (exit $ac_status); }; } &&
     8229         { ac_try='test -s conftest$ac_exeext'
     8230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8231  (eval $ac_try) 2>&5
     8232  ac_status=$?
     8233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8234  (exit $ac_status); }; }; then
     8235
     8236aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
     8237}'`
     8238# Check for a 64-bit object if we didn't find anything.
     8239if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
     8240}'`; fi
     8241else
     8242  echo "$as_me: failed program was:" >&5
     8243sed 's/^/| /' conftest.$ac_ext >&5
     8244
     8245fi
     8246rm -f conftest.err conftest.$ac_objext \
     8247      conftest$ac_exeext conftest.$ac_ext
     8248if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
     8249
     8250         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
     8251          # Warning - without using the other run time loading flags,
     8252          # -berok will link without error, but may produce a broken library.
     8253          no_undefined_flag=' ${wl}-bernotok'
     8254          allow_undefined_flag=' ${wl}-berok'
     8255          # Exported symbols can be pulled into shared objects from archives
     8256          whole_archive_flag_spec='$convenience'
     8257          archive_cmds_need_lc=yes
     8258          # This is similar to how AIX traditionally builds its shared libraries.
     8259          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
     8260        fi
     8261      fi
     8262      ;;
     8263
     8264    amigaos*)
     8265      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)'
     8266      hardcode_libdir_flag_spec='-L$libdir'
     8267      hardcode_minus_L=yes
     8268      # see comment about different semantics on the GNU ld section
     8269      ld_shlibs=no
     8270      ;;
     8271
     8272    bsdi[45]*)
     8273      export_dynamic_flag_spec=-rdynamic
     8274      ;;
     8275
     8276    cygwin* | mingw* | pw32*)
     8277      # When not using gcc, we currently assume that we are using
     8278      # Microsoft Visual C++.
     8279      # hardcode_libdir_flag_spec is actually meaningless, as there is
     8280      # no search path for DLLs.
     8281      hardcode_libdir_flag_spec=' '
     8282      allow_undefined_flag=unsupported
     8283      # Tell ltmain to make .lib files, not .a files.
     8284      libext=lib
     8285      # Tell ltmain to make .dll files, not .so files.
     8286      shrext_cmds=".dll"
     8287      # FIXME: Setting linknames here is a bad hack.
     8288      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
     8289      # The linker will automatically build a .lib file if we build a DLL.
     8290      old_archive_From_new_cmds='true'
     8291      # FIXME: Should let the user specify the lib program.
     8292      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
     8293      fix_srcfile_path='`cygpath -w "$srcfile"`'
     8294      enable_shared_with_static_runtimes=yes
     8295      ;;
     8296
     8297    darwin* | rhapsody*)
     8298      case $host_os in
     8299        rhapsody* | darwin1.[012])
     8300         allow_undefined_flag='${wl}-undefined ${wl}suppress'
     8301         ;;
     8302       *) # Darwin 1.3 on
     8303         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
     8304           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
     8305         else
     8306           case ${MACOSX_DEPLOYMENT_TARGET} in
     8307             10.[012])
     8308               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
     8309               ;;
     8310             10.*)
     8311               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
     8312               ;;
     8313           esac
     8314         fi
     8315         ;;
     8316      esac
     8317      archive_cmds_need_lc=no
     8318      hardcode_direct=no
     8319      hardcode_automatic=yes
     8320      hardcode_shlibpath_var=unsupported
     8321      whole_archive_flag_spec=''
     8322      link_all_deplibs=yes
     8323    if test "$GCC" = yes ; then
     8324        output_verbose_link_cmd='echo'
     8325        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
     8326      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
     8327      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
     8328      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
     8329      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
     8330    else
     8331      case $cc_basename in
     8332        xlc*)
     8333         output_verbose_link_cmd='echo'
     8334         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
     8335         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
     8336          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
     8337         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
     8338          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
     8339          ;;
     8340       *)
     8341         ld_shlibs=no
     8342          ;;
     8343      esac
     8344    fi
     8345      ;;
     8346
     8347    dgux*)
     8348      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     8349      hardcode_libdir_flag_spec='-L$libdir'
     8350      hardcode_shlibpath_var=no
     8351      ;;
     8352
     8353    freebsd1*)
     8354      ld_shlibs=no
     8355      ;;
     8356
     8357    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
     8358    # support.  Future versions do this automatically, but an explicit c++rt0.o
     8359    # does not break anything, and helps significantly (at the cost of a little
     8360    # extra space).
     8361    freebsd2.2*)
     8362      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
     8363      hardcode_libdir_flag_spec='-R$libdir'
     8364      hardcode_direct=yes
     8365      hardcode_shlibpath_var=no
     8366      ;;
     8367
     8368    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
     8369    freebsd2*)
     8370      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
     8371      hardcode_direct=yes
     8372      hardcode_minus_L=yes
     8373      hardcode_shlibpath_var=no
     8374      ;;
     8375
     8376    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
     8377    freebsd* | kfreebsd*-gnu | dragonfly*)
     8378      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
     8379      hardcode_libdir_flag_spec='-R$libdir'
     8380      hardcode_direct=yes
     8381      hardcode_shlibpath_var=no
     8382      ;;
     8383
     8384    hpux9*)
     8385      if test "$GCC" = yes; then
     8386        archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
     8387      else
     8388        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'
     8389      fi
     8390      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
     8391      hardcode_libdir_separator=:
     8392      hardcode_direct=yes
     8393
     8394      # hardcode_minus_L: Not really in the search PATH,
     8395      # but as the default location of the library.
     8396      hardcode_minus_L=yes
     8397      export_dynamic_flag_spec='${wl}-E'
     8398      ;;
     8399
     8400    hpux10*)
     8401      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
     8402        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
     8403      else
     8404        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
     8405      fi
     8406      if test "$with_gnu_ld" = no; then
     8407        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
     8408        hardcode_libdir_separator=:
     8409
     8410        hardcode_direct=yes
     8411        export_dynamic_flag_spec='${wl}-E'
     8412
     8413        # hardcode_minus_L: Not really in the search PATH,
     8414        # but as the default location of the library.
     8415        hardcode_minus_L=yes
     8416      fi
     8417      ;;
     8418
     8419    hpux11*)
     8420      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
     8421        case $host_cpu in
     8422        hppa*64*)
     8423          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
     8424          ;;
     8425        ia64*)
     8426          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
     8427          ;;
     8428        *)
     8429          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
     8430          ;;
     8431        esac
     8432      else
     8433        case $host_cpu in
     8434        hppa*64*)
     8435          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
     8436          ;;
     8437        ia64*)
     8438          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
     8439          ;;
     8440        *)
     8441          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
     8442          ;;
     8443        esac
     8444      fi
     8445      if test "$with_gnu_ld" = no; then
     8446        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
     8447        hardcode_libdir_separator=:
     8448
     8449        case $host_cpu in
     8450        hppa*64*|ia64*)
     8451          hardcode_libdir_flag_spec_ld='+b $libdir'
     8452          hardcode_direct=no
     8453          hardcode_shlibpath_var=no
     8454          ;;
     8455        *)
     8456          hardcode_direct=yes
     8457          export_dynamic_flag_spec='${wl}-E'
     8458
     8459          # hardcode_minus_L: Not really in the search PATH,
     8460          # but as the default location of the library.
     8461          hardcode_minus_L=yes
     8462          ;;
     8463        esac
     8464      fi
     8465      ;;
     8466
     8467    irix5* | irix6* | nonstopux*)
     8468      if test "$GCC" = yes; then
     8469        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'
     8470      else
     8471        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'
     8472        hardcode_libdir_flag_spec_ld='-rpath $libdir'
     8473      fi
     8474      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
     8475      hardcode_libdir_separator=:
     8476      link_all_deplibs=yes
     8477      ;;
     8478
     8479    netbsd*)
     8480      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
     8481        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
     8482      else
     8483        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
     8484      fi
     8485      hardcode_libdir_flag_spec='-R$libdir'
     8486      hardcode_direct=yes
     8487      hardcode_shlibpath_var=no
     8488      ;;
     8489
     8490    newsos6)
     8491      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     8492      hardcode_direct=yes
     8493      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
     8494      hardcode_libdir_separator=:
     8495      hardcode_shlibpath_var=no
     8496      ;;
     8497
     8498    openbsd*)
     8499      hardcode_direct=yes
     8500      hardcode_shlibpath_var=no
     8501      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     8502        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
     8503        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
     8504        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
     8505        export_dynamic_flag_spec='${wl}-E'
     8506      else
     8507       case $host_os in
     8508         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
     8509           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
     8510           hardcode_libdir_flag_spec='-R$libdir'
     8511           ;;
     8512         *)
     8513           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
     8514           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
     8515           ;;
     8516       esac
     8517      fi
     8518      ;;
     8519
     8520    os2*)
     8521      hardcode_libdir_flag_spec='-L$libdir'
     8522      hardcode_minus_L=yes
     8523      allow_undefined_flag=unsupported
     8524      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'
     8525      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
     8526      ;;
     8527
     8528    osf3*)
     8529      if test "$GCC" = yes; then
     8530        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
     8531        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'
     8532      else
     8533        allow_undefined_flag=' -expect_unresolved \*'
     8534        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'
     8535      fi
     8536      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
     8537      hardcode_libdir_separator=:
     8538      ;;
     8539
     8540    osf4* | osf5*)      # as osf3* with the addition of -msym flag
     8541      if test "$GCC" = yes; then
     8542        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
     8543        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'
     8544        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
     8545      else
     8546        allow_undefined_flag=' -expect_unresolved \*'
     8547        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'
     8548        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
     8549        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
     8550
     8551        # Both c and cxx compiler support -rpath directly
     8552        hardcode_libdir_flag_spec='-rpath $libdir'
     8553      fi
     8554      hardcode_libdir_separator=:
     8555      ;;
     8556
     8557    solaris*)
     8558      no_undefined_flag=' -z text'
     8559      if test "$GCC" = yes; then
     8560        wlarc='${wl}'
     8561        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
     8562        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
     8563          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
     8564      else
     8565        wlarc=''
     8566        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
     8567        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
     8568        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
     8569      fi
     8570      hardcode_libdir_flag_spec='-R$libdir'
     8571      hardcode_shlibpath_var=no
     8572      case $host_os in
     8573      solaris2.[0-5] | solaris2.[0-5].*) ;;
     8574      *)
     8575        # The compiler driver will combine linker options so we
     8576        # cannot just pass the convience library names through
     8577        # without $wl, iff we do not link with $LD.
     8578        # Luckily, gcc supports the same syntax we need for Sun Studio.
     8579        # Supported since Solaris 2.6 (maybe 2.5.1?)
     8580        case $wlarc in
     8581        '')
     8582          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
     8583        *)
     8584          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
     8585        esac ;;
     8586      esac
     8587      link_all_deplibs=yes
     8588      ;;
     8589
     8590    sunos4*)
     8591      if test "x$host_vendor" = xsequent; then
     8592        # Use $CC to link under sequent, because it throws in some extra .o
     8593        # files that make .init and .fini sections work.
     8594        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
     8595      else
     8596        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
     8597      fi
     8598      hardcode_libdir_flag_spec='-L$libdir'
     8599      hardcode_direct=yes
     8600      hardcode_minus_L=yes
     8601      hardcode_shlibpath_var=no
     8602      ;;
     8603
     8604    sysv4)
     8605      case $host_vendor in
     8606        sni)
     8607          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     8608          hardcode_direct=yes # is this really true???
     8609        ;;
     8610        siemens)
     8611          ## LD is ld it makes a PLAMLIB
     8612          ## CC just makes a GrossModule.
     8613          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
     8614          reload_cmds='$CC -r -o $output$reload_objs'
     8615          hardcode_direct=no
     8616        ;;
     8617        motorola)
     8618          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     8619          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
     8620        ;;
     8621      esac
     8622      runpath_var='LD_RUN_PATH'
     8623      hardcode_shlibpath_var=no
     8624      ;;
     8625
     8626    sysv4.3*)
     8627      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     8628      hardcode_shlibpath_var=no
     8629      export_dynamic_flag_spec='-Bexport'
     8630      ;;
     8631
     8632    sysv4*MP*)
     8633      if test -d /usr/nec; then
     8634        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     8635        hardcode_shlibpath_var=no
     8636        runpath_var=LD_RUN_PATH
     8637        hardcode_runpath_var=yes
     8638        ld_shlibs=yes
     8639      fi
     8640      ;;
     8641
     8642    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
     8643      no_undefined_flag='${wl}-z,text'
     8644      archive_cmds_need_lc=no
     8645      hardcode_shlibpath_var=no
     8646      runpath_var='LD_RUN_PATH'
     8647
     8648      if test "$GCC" = yes; then
     8649        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     8650        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     8651      else
     8652        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     8653        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     8654      fi
     8655      ;;
     8656
     8657    sysv5* | sco3.2v5* | sco5v6*)
     8658      # Note: We can NOT use -z defs as we might desire, because we do not
     8659      # link with -lc, and that would cause any symbols used from libc to
     8660      # always be unresolved, which means just about no library would
     8661      # ever link correctly.  If we're not using GNU ld we use -z text
     8662      # though, which does catch some bad symbols but isn't as heavy-handed
     8663      # as -z defs.
     8664      no_undefined_flag='${wl}-z,text'
     8665      allow_undefined_flag='${wl}-z,nodefs'
     8666      archive_cmds_need_lc=no
     8667      hardcode_shlibpath_var=no
     8668      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
     8669      hardcode_libdir_separator=':'
     8670      link_all_deplibs=yes
     8671      export_dynamic_flag_spec='${wl}-Bexport'
     8672      runpath_var='LD_RUN_PATH'
     8673
     8674      if test "$GCC" = yes; then
     8675        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     8676        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     8677      else
     8678        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     8679        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     8680      fi
     8681      ;;
     8682
     8683    uts4*)
     8684      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     8685      hardcode_libdir_flag_spec='-L$libdir'
     8686      hardcode_shlibpath_var=no
     8687      ;;
     8688
     8689    *)
     8690      ld_shlibs=no
     8691      ;;
     8692    esac
     8693  fi
     8694
     8695echo "$as_me:$LINENO: result: $ld_shlibs" >&5
     8696echo "${ECHO_T}$ld_shlibs" >&6
     8697test "$ld_shlibs" = no && can_build_shared=no
     8698
     8699#
     8700# Do we need to explicitly link libc?
     8701#
     8702case "x$archive_cmds_need_lc" in
     8703x|xyes)
     8704  # Assume -lc should be added
     8705  archive_cmds_need_lc=yes
     8706
     8707  if test "$enable_shared" = yes && test "$GCC" = yes; then
     8708    case $archive_cmds in
     8709    *'~'*)
     8710      # FIXME: we may have to deal with multi-command sequences.
     8711      ;;
     8712    '$CC '*)
     8713      # Test whether the compiler implicitly links with -lc since on some
     8714      # systems, -lgcc has to come before -lc. If gcc already passes -lc
     8715      # to ld, don't add -lc before -lgcc.
     8716      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
     8717echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
     8718      $rm conftest*
     8719      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     8720
     8721      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     8722  (eval $ac_compile) 2>&5
     8723  ac_status=$?
     8724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8725  (exit $ac_status); } 2>conftest.err; then
     8726        soname=conftest
     8727        lib=conftest
     8728        libobjs=conftest.$ac_objext
     8729        deplibs=
     8730        wl=$lt_prog_compiler_wl
     8731        pic_flag=$lt_prog_compiler_pic
     8732        compiler_flags=-v
     8733        linker_flags=-v
     8734        verstring=
     8735        output_objdir=.
     8736        libname=conftest
     8737        lt_save_allow_undefined_flag=$allow_undefined_flag
     8738        allow_undefined_flag=
     8739        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
     8740  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
     8741  ac_status=$?
     8742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8743  (exit $ac_status); }
     8744        then
     8745          archive_cmds_need_lc=no
     8746        else
     8747          archive_cmds_need_lc=yes
     8748        fi
     8749        allow_undefined_flag=$lt_save_allow_undefined_flag
     8750      else
     8751        cat conftest.err 1>&5
     8752      fi
     8753      $rm conftest*
     8754      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
     8755echo "${ECHO_T}$archive_cmds_need_lc" >&6
     8756      ;;
     8757    esac
     8758  fi
     8759  ;;
     8760esac
     8761
     8762echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
     8763echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
     8764library_names_spec=
     8765libname_spec='lib$name'
     8766soname_spec=
     8767shrext_cmds=".so"
     8768postinstall_cmds=
     8769postuninstall_cmds=
     8770finish_cmds=
     8771finish_eval=
     8772shlibpath_var=
     8773shlibpath_overrides_runpath=unknown
     8774version_type=none
     8775dynamic_linker="$host_os ld.so"
     8776sys_lib_dlsearch_path_spec="/lib /usr/lib"
     8777if test "$GCC" = yes; then
     8778  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
     8779  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
     8780    # if the path contains ";" then we assume it to be the separator
     8781    # otherwise default to the standard path separator (i.e. ":") - it is
     8782    # assumed that no part of a normal pathname contains ";" but that should
     8783    # okay in the real world where ";" in dirpaths is itself problematic.
     8784    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
     8785  else
     8786    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
     8787  fi
     8788else
     8789  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
     8790fi
     8791need_lib_prefix=unknown
     8792hardcode_into_libs=no
     8793
     8794# when you set need_version to no, make sure it does not cause -set_version
     8795# flags to be left without arguments
     8796need_version=unknown
     8797
     8798case $host_os in
     8799aix3*)
     8800  version_type=linux
     8801  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
     8802  shlibpath_var=LIBPATH
     8803
     8804  # AIX 3 has no versioning support, so we append a major version to the name.
     8805  soname_spec='${libname}${release}${shared_ext}$major'
     8806  ;;
     8807
     8808aix4* | aix5*)
     8809  version_type=linux
     8810  need_lib_prefix=no
     8811  need_version=no
     8812  hardcode_into_libs=yes
     8813  if test "$host_cpu" = ia64; then
     8814    # AIX 5 supports IA64
     8815    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
     8816    shlibpath_var=LD_LIBRARY_PATH
     8817  else
     8818    # With GCC up to 2.95.x, collect2 would create an import file
     8819    # for dependence libraries.  The import file would start with
     8820    # the line `#! .'.  This would cause the generated library to
     8821    # depend on `.', always an invalid library.  This was fixed in
     8822    # development snapshots of GCC prior to 3.0.
     8823    case $host_os in
     8824      aix4 | aix4.[01] | aix4.[01].*)
     8825      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
     8826           echo ' yes '
     8827           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
     8828        :
     8829      else
     8830        can_build_shared=no
     8831      fi
     8832      ;;
     8833    esac
     8834    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
     8835    # soname into executable. Probably we can add versioning support to
     8836    # collect2, so additional links can be useful in future.
     8837    if test "$aix_use_runtimelinking" = yes; then
     8838      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
     8839      # instead of lib<name>.a to let people know that these are not
     8840      # typical AIX shared libraries.
     8841      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     8842    else
     8843      # We preserve .a as extension for shared libraries through AIX4.2
     8844      # and later when we are not doing run time linking.
     8845      library_names_spec='${libname}${release}.a $libname.a'
     8846      soname_spec='${libname}${release}${shared_ext}$major'
     8847    fi
     8848    shlibpath_var=LIBPATH
     8849  fi
     8850  ;;
     8851
     8852amigaos*)
     8853  library_names_spec='$libname.ixlibrary $libname.a'
     8854  # Create ${libname}_ixlibrary.a entries in /sys/libs.
     8855  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'
     8856  ;;
     8857
     8858beos*)
     8859  library_names_spec='${libname}${shared_ext}'
     8860  dynamic_linker="$host_os ld.so"
     8861  shlibpath_var=LIBRARY_PATH
     8862  ;;
     8863
     8864bsdi[45]*)
     8865  version_type=linux
     8866  need_version=no
     8867  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     8868  soname_spec='${libname}${release}${shared_ext}$major'
     8869  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
     8870  shlibpath_var=LD_LIBRARY_PATH
     8871  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
     8872  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
     8873  # the default ld.so.conf also contains /usr/contrib/lib and
     8874  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
     8875  # libtool to hard-code these into programs
     8876  ;;
     8877
     8878cygwin* | mingw* | pw32*)
     8879  version_type=windows
     8880  shrext_cmds=".dll"
     8881  need_version=no
     8882  need_lib_prefix=no
     8883
     8884  case $GCC,$host_os in
     8885  yes,cygwin* | yes,mingw* | yes,pw32*)
     8886    library_names_spec='$libname.dll.a'
     8887    # DLL is installed to $(libdir)/../bin by postinstall_cmds
     8888    postinstall_cmds='base_file=`basename \${file}`~
     8889      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
     8890      dldir=$destdir/`dirname \$dlpath`~
     8891      test -d \$dldir || mkdir -p \$dldir~
     8892      $install_prog $dir/$dlname \$dldir/$dlname~
     8893      chmod a+x \$dldir/$dlname'
     8894    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
     8895      dlpath=$dir/\$dldll~
     8896       $rm \$dlpath'
     8897    shlibpath_overrides_runpath=yes
     8898
     8899    case $host_os in
     8900    cygwin*)
     8901      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
     8902      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
     8903      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
     8904      ;;
     8905    mingw*)
     8906      # MinGW DLLs use traditional 'lib' prefix
     8907      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
     8908      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
     8909      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
     8910        # It is most probably a Windows format PATH printed by
     8911        # mingw gcc, but we are running on Cygwin. Gcc prints its search
     8912        # path with ; separators, and with drive letters. We can handle the
     8913        # drive letters (cygwin fileutils understands them), so leave them,
     8914        # especially as we might pass files found there to a mingw objdump,
     8915        # which wouldn't understand a cygwinified path. Ahh.
     8916        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
     8917      else
     8918        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
     8919      fi
     8920      ;;
     8921    pw32*)
     8922      # pw32 DLLs use 'pw' prefix rather than 'lib'
     8923      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
     8924      ;;
     8925    esac
     8926    ;;
     8927
     8928  *)
     8929    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
     8930    ;;
     8931  esac
     8932  dynamic_linker='Win32 ld.exe'
     8933  # FIXME: first we should search . and the directory the executable is in
     8934  shlibpath_var=PATH
     8935  ;;
     8936
     8937darwin* | rhapsody*)
     8938  dynamic_linker="$host_os dyld"
     8939  version_type=darwin
     8940  need_lib_prefix=no
     8941  need_version=no
     8942  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
     8943  soname_spec='${libname}${release}${major}$shared_ext'
     8944  shlibpath_overrides_runpath=yes
     8945  shlibpath_var=DYLD_LIBRARY_PATH
     8946  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
     8947  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
     8948  if test "$GCC" = yes; then
     8949    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
     8950  else
     8951    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
     8952  fi
     8953  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
     8954  ;;
     8955
     8956dgux*)
     8957  version_type=linux
     8958  need_lib_prefix=no
     8959  need_version=no
     8960  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
     8961  soname_spec='${libname}${release}${shared_ext}$major'
     8962  shlibpath_var=LD_LIBRARY_PATH
     8963  ;;
     8964
     8965freebsd1*)
     8966  dynamic_linker=no
     8967  ;;
     8968
     8969kfreebsd*-gnu)
     8970  version_type=linux
     8971  need_lib_prefix=no
     8972  need_version=no
     8973  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
     8974  soname_spec='${libname}${release}${shared_ext}$major'
     8975  shlibpath_var=LD_LIBRARY_PATH
     8976  shlibpath_overrides_runpath=no
     8977  hardcode_into_libs=yes
     8978  dynamic_linker='GNU ld.so'
     8979  ;;
     8980
     8981freebsd* | dragonfly*)
     8982  # DragonFly does not have aout.  When/if they implement a new
     8983  # versioning mechanism, adjust this.
     8984  if test -x /usr/bin/objformat; then
     8985    objformat=`/usr/bin/objformat`
     8986  else
     8987    case $host_os in
     8988    freebsd[123]*) objformat=aout ;;
     8989    *) objformat=elf ;;
     8990    esac
     8991  fi
     8992  version_type=freebsd-$objformat
     8993  case $version_type in
     8994    freebsd-elf*)
     8995      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
     8996      need_version=no
     8997      need_lib_prefix=no
     8998      ;;
     8999    freebsd-*)
     9000      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
     9001      need_version=yes
     9002      ;;
     9003  esac
     9004  shlibpath_var=LD_LIBRARY_PATH
     9005  case $host_os in
     9006  freebsd2*)
     9007    shlibpath_overrides_runpath=yes
     9008    ;;
     9009  freebsd3.[01]* | freebsdelf3.[01]*)
     9010    shlibpath_overrides_runpath=yes
     9011    hardcode_into_libs=yes
     9012    ;;
     9013  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
     9014  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
     9015    shlibpath_overrides_runpath=no
     9016    hardcode_into_libs=yes
     9017    ;;
     9018  freebsd*) # from 4.6 on
     9019    shlibpath_overrides_runpath=yes
     9020    hardcode_into_libs=yes
     9021    ;;
     9022  esac
     9023  ;;
     9024
     9025gnu*)
     9026  version_type=linux
     9027  need_lib_prefix=no
     9028  need_version=no
     9029  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
     9030  soname_spec='${libname}${release}${shared_ext}$major'
     9031  shlibpath_var=LD_LIBRARY_PATH
     9032  hardcode_into_libs=yes
     9033  ;;
     9034
     9035hpux9* | hpux10* | hpux11*)
     9036  # Give a soname corresponding to the major version so that dld.sl refuses to
     9037  # link against other versions.
     9038  version_type=sunos
     9039  need_lib_prefix=no
     9040  need_version=no
     9041  case $host_cpu in
     9042  ia64*)
     9043    shrext_cmds='.so'
     9044    hardcode_into_libs=yes
     9045    dynamic_linker="$host_os dld.so"
     9046    shlibpath_var=LD_LIBRARY_PATH
     9047    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
     9048    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     9049    soname_spec='${libname}${release}${shared_ext}$major'
     9050    if test "X$HPUX_IA64_MODE" = X32; then
     9051      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
     9052    else
     9053      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
     9054    fi
     9055    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
     9056    ;;
     9057   hppa*64*)
     9058     shrext_cmds='.sl'
     9059     hardcode_into_libs=yes
     9060     dynamic_linker="$host_os dld.sl"
     9061     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
     9062     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
     9063     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     9064     soname_spec='${libname}${release}${shared_ext}$major'
     9065     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
     9066     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
     9067     ;;
     9068   *)
     9069    shrext_cmds='.sl'
     9070    dynamic_linker="$host_os dld.sl"
     9071    shlibpath_var=SHLIB_PATH
     9072    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
     9073    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     9074    soname_spec='${libname}${release}${shared_ext}$major'
     9075    ;;
     9076  esac
     9077  # HP-UX runs *really* slowly unless shared libraries are mode 555.
     9078  postinstall_cmds='chmod 555 $lib'
     9079  ;;
     9080
     9081interix3*)
     9082  version_type=linux
     9083  need_lib_prefix=no
     9084  need_version=no
     9085  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
     9086  soname_spec='${libname}${release}${shared_ext}$major'
     9087  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
     9088  shlibpath_var=LD_LIBRARY_PATH
     9089  shlibpath_overrides_runpath=no
     9090  hardcode_into_libs=yes
     9091  ;;
     9092
     9093irix5* | irix6* | nonstopux*)
     9094  case $host_os in
     9095    nonstopux*) version_type=nonstopux ;;
     9096    *)
     9097        if test "$lt_cv_prog_gnu_ld" = yes; then
     9098                version_type=linux
     9099        else
     9100                version_type=irix
     9101        fi ;;
     9102  esac
     9103  need_lib_prefix=no
     9104  need_version=no
     9105  soname_spec='${libname}${release}${shared_ext}$major'
     9106  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
     9107  case $host_os in
     9108  irix5* | nonstopux*)
     9109    libsuff= shlibsuff=
     9110    ;;
     9111  *)
     9112    case $LD in # libtool.m4 will add one of these switches to LD
     9113    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
     9114      libsuff= shlibsuff= libmagic=32-bit;;
     9115    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
     9116      libsuff=32 shlibsuff=N32 libmagic=N32;;
     9117    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
     9118      libsuff=64 shlibsuff=64 libmagic=64-bit;;
     9119    *) libsuff= shlibsuff= libmagic=never-match;;
     9120    esac
     9121    ;;
     9122  esac
     9123  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
     9124  shlibpath_overrides_runpath=no
     9125  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
     9126  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
     9127  hardcode_into_libs=yes
     9128  ;;
     9129
     9130# No shared lib support for Linux oldld, aout, or coff.
     9131linux*oldld* | linux*aout* | linux*coff*)
     9132  dynamic_linker=no
     9133  ;;
     9134
     9135# This must be Linux ELF.
     9136linux*)
     9137  version_type=linux
     9138  need_lib_prefix=no
     9139  need_version=no
     9140  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     9141  soname_spec='${libname}${release}${shared_ext}$major'
     9142  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
     9143  shlibpath_var=LD_LIBRARY_PATH
     9144  shlibpath_overrides_runpath=no
     9145  # This implies no fast_install, which is unacceptable.
     9146  # Some rework will be needed to allow for fast_install
     9147  # before this can be enabled.
     9148  hardcode_into_libs=yes
     9149
     9150  # Append ld.so.conf contents to the search path
     9151  if test -f /etc/ld.so.conf; then
     9152    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
     9153    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
     9154  fi
     9155
     9156  # We used to test for /lib/ld.so.1 and disable shared libraries on
     9157  # powerpc, because MkLinux only supported shared libraries with the
     9158  # GNU dynamic linker.  Since this was broken with cross compilers,
     9159  # most powerpc-linux boxes support dynamic linking these days and
     9160  # people can always --disable-shared, the test was removed, and we
     9161  # assume the GNU/Linux dynamic linker is in use.
     9162  dynamic_linker='GNU/Linux ld.so'
     9163  ;;
     9164
     9165knetbsd*-gnu)
     9166  version_type=linux
     9167  need_lib_prefix=no
     9168  need_version=no
     9169  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
     9170  soname_spec='${libname}${release}${shared_ext}$major'
     9171  shlibpath_var=LD_LIBRARY_PATH
     9172  shlibpath_overrides_runpath=no
     9173  hardcode_into_libs=yes
     9174  dynamic_linker='GNU ld.so'
     9175  ;;
     9176
     9177netbsd*)
     9178  version_type=sunos
     9179  need_lib_prefix=no
     9180  need_version=no
     9181  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
     9182    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
     9183    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
     9184    dynamic_linker='NetBSD (a.out) ld.so'
     9185  else
     9186    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
     9187    soname_spec='${libname}${release}${shared_ext}$major'
     9188    dynamic_linker='NetBSD ld.elf_so'
     9189  fi
     9190  shlibpath_var=LD_LIBRARY_PATH
     9191  shlibpath_overrides_runpath=yes
     9192  hardcode_into_libs=yes
     9193  ;;
     9194
     9195newsos6)
     9196  version_type=linux
     9197  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     9198  shlibpath_var=LD_LIBRARY_PATH
     9199  shlibpath_overrides_runpath=yes
     9200  ;;
     9201
     9202nto-qnx*)
     9203  version_type=linux
     9204  need_lib_prefix=no
     9205  need_version=no
     9206  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     9207  soname_spec='${libname}${release}${shared_ext}$major'
     9208  shlibpath_var=LD_LIBRARY_PATH
     9209  shlibpath_overrides_runpath=yes
     9210  ;;
     9211
     9212openbsd*)
     9213  version_type=sunos
     9214  sys_lib_dlsearch_path_spec="/usr/lib"
     9215  need_lib_prefix=no
     9216  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
     9217  case $host_os in
     9218    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
     9219    *)                         need_version=no  ;;
     9220  esac
     9221  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
     9222  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
     9223  shlibpath_var=LD_LIBRARY_PATH
     9224  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     9225    case $host_os in
     9226      openbsd2.[89] | openbsd2.[89].*)
     9227        shlibpath_overrides_runpath=no
     9228        ;;
     9229      *)
     9230        shlibpath_overrides_runpath=yes
     9231        ;;
     9232      esac
     9233  else
     9234    shlibpath_overrides_runpath=yes
     9235  fi
     9236  ;;
     9237
     9238os2*)
     9239  libname_spec='$name'
     9240  shrext_cmds=".dll"
     9241  need_lib_prefix=no
     9242  library_names_spec='$libname${shared_ext} $libname.a'
     9243  dynamic_linker='OS/2 ld.exe'
     9244  shlibpath_var=LIBPATH
     9245  ;;
     9246
     9247osf3* | osf4* | osf5*)
     9248  version_type=osf
     9249  need_lib_prefix=no
     9250  need_version=no
     9251  soname_spec='${libname}${release}${shared_ext}$major'
     9252  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     9253  shlibpath_var=LD_LIBRARY_PATH
     9254  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
     9255  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
     9256  ;;
     9257
     9258solaris*)
     9259  version_type=linux
     9260  need_lib_prefix=no
     9261  need_version=no
     9262  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     9263  soname_spec='${libname}${release}${shared_ext}$major'
     9264  shlibpath_var=LD_LIBRARY_PATH
     9265  shlibpath_overrides_runpath=yes
     9266  hardcode_into_libs=yes
     9267  # ldd complains unless libraries are executable
     9268  postinstall_cmds='chmod +x $lib'
     9269  ;;
     9270
     9271sunos4*)
     9272  version_type=sunos
     9273  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
     9274  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
     9275  shlibpath_var=LD_LIBRARY_PATH
     9276  shlibpath_overrides_runpath=yes
     9277  if test "$with_gnu_ld" = yes; then
     9278    need_lib_prefix=no
     9279  fi
     9280  need_version=yes
     9281  ;;
     9282
     9283sysv4 | sysv4.3*)
     9284  version_type=linux
     9285  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     9286  soname_spec='${libname}${release}${shared_ext}$major'
     9287  shlibpath_var=LD_LIBRARY_PATH
     9288  case $host_vendor in
     9289    sni)
     9290      shlibpath_overrides_runpath=no
     9291      need_lib_prefix=no
     9292      export_dynamic_flag_spec='${wl}-Blargedynsym'
     9293      runpath_var=LD_RUN_PATH
     9294      ;;
     9295    siemens)
     9296      need_lib_prefix=no
     9297      ;;
     9298    motorola)
     9299      need_lib_prefix=no
     9300      need_version=no
     9301      shlibpath_overrides_runpath=no
     9302      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
     9303      ;;
     9304  esac
     9305  ;;
     9306
     9307sysv4*MP*)
     9308  if test -d /usr/nec ;then
     9309    version_type=linux
     9310    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
     9311    soname_spec='$libname${shared_ext}.$major'
     9312    shlibpath_var=LD_LIBRARY_PATH
     9313  fi
     9314  ;;
     9315
     9316sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
     9317  version_type=freebsd-elf
     9318  need_lib_prefix=no
     9319  need_version=no
     9320  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
     9321  soname_spec='${libname}${release}${shared_ext}$major'
     9322  shlibpath_var=LD_LIBRARY_PATH
     9323  hardcode_into_libs=yes
     9324  if test "$with_gnu_ld" = yes; then
     9325    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
     9326    shlibpath_overrides_runpath=no
     9327  else
     9328    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
     9329    shlibpath_overrides_runpath=yes
     9330    case $host_os in
     9331      sco3.2v5*)
     9332        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
     9333        ;;
     9334    esac
     9335  fi
     9336  sys_lib_dlsearch_path_spec='/usr/lib'
     9337  ;;
     9338
     9339uts4*)
     9340  version_type=linux
     9341  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     9342  soname_spec='${libname}${release}${shared_ext}$major'
     9343  shlibpath_var=LD_LIBRARY_PATH
     9344  ;;
     9345
     9346*)
     9347  dynamic_linker=no
     9348  ;;
     9349esac
     9350echo "$as_me:$LINENO: result: $dynamic_linker" >&5
     9351echo "${ECHO_T}$dynamic_linker" >&6
     9352test "$dynamic_linker" = no && can_build_shared=no
     9353
     9354variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
     9355if test "$GCC" = yes; then
     9356  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
     9357fi
     9358
     9359echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
     9360echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
     9361hardcode_action=
     9362if test -n "$hardcode_libdir_flag_spec" || \
     9363   test -n "$runpath_var" || \
     9364   test "X$hardcode_automatic" = "Xyes" ; then
     9365
     9366  # We can hardcode non-existant directories.
     9367  if test "$hardcode_direct" != no &&
     9368     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     9369     # have to relink, otherwise we might link with an installed library
     9370     # when we should be linking with a yet-to-be-installed one
     9371     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
     9372     test "$hardcode_minus_L" != no; then
     9373    # Linking always hardcodes the temporary library directory.
     9374    hardcode_action=relink
     9375  else
     9376    # We can link without hardcoding, and we can hardcode nonexisting dirs.
     9377    hardcode_action=immediate
     9378  fi
     9379else
     9380  # We cannot hardcode anything, or else we can only hardcode existing
     9381  # directories.
     9382  hardcode_action=unsupported
     9383fi
     9384echo "$as_me:$LINENO: result: $hardcode_action" >&5
     9385echo "${ECHO_T}$hardcode_action" >&6
     9386
     9387if test "$hardcode_action" = relink; then
     9388  # Fast installation is not supported
     9389  enable_fast_install=no
     9390elif test "$shlibpath_overrides_runpath" = yes ||
     9391     test "$enable_shared" = no; then
     9392  # Fast installation is not necessary
     9393  enable_fast_install=needless
     9394fi
     9395
     9396striplib=
     9397old_striplib=
     9398echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
     9399echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
     9400if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
     9401  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
     9402  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
     9403  echo "$as_me:$LINENO: result: yes" >&5
     9404echo "${ECHO_T}yes" >&6
     9405else
     9406# FIXME - insert some real tests, host_os isn't really good enough
     9407  case $host_os in
     9408   darwin*)
     9409       if test -n "$STRIP" ; then
     9410         striplib="$STRIP -x"
     9411         echo "$as_me:$LINENO: result: yes" >&5
     9412echo "${ECHO_T}yes" >&6
     9413       else
     9414  echo "$as_me:$LINENO: result: no" >&5
     9415echo "${ECHO_T}no" >&6
     9416fi
     9417       ;;
     9418   *)
     9419  echo "$as_me:$LINENO: result: no" >&5
     9420echo "${ECHO_T}no" >&6
     9421    ;;
     9422  esac
     9423fi
     9424
     9425if test "x$enable_dlopen" != xyes; then
     9426  enable_dlopen=unknown
     9427  enable_dlopen_self=unknown
     9428  enable_dlopen_self_static=unknown
     9429else
     9430  lt_cv_dlopen=no
     9431  lt_cv_dlopen_libs=
     9432
     9433  case $host_os in
     9434  beos*)
     9435    lt_cv_dlopen="load_add_on"
     9436    lt_cv_dlopen_libs=
     9437    lt_cv_dlopen_self=yes
     9438    ;;
     9439
     9440  mingw* | pw32*)
     9441    lt_cv_dlopen="LoadLibrary"
     9442    lt_cv_dlopen_libs=
     9443   ;;
     9444
     9445  cygwin*)
     9446    lt_cv_dlopen="dlopen"
     9447    lt_cv_dlopen_libs=
     9448   ;;
     9449
     9450  darwin*)
     9451  # if libdl is installed we need to link against it
     9452    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
    38929453echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
    38939454if test "${ac_cv_lib_dl_dlopen+set}" = set; then
     
    39549515echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
    39559516if test $ac_cv_lib_dl_dlopen = yes; then
    3956   ASLLIB="$ASLLIB -ldl"
    3957 fi
    3958 
    3959   coin_has_asl=yes
    3960 
    3961 cat >>confdefs.h <<\_ACEOF
    3962 #define COIN_HAS_ASL 1
     9517  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
     9518else
     9519
     9520    lt_cv_dlopen="dyld"
     9521    lt_cv_dlopen_libs=
     9522    lt_cv_dlopen_self=yes
     9523
     9524fi
     9525
     9526   ;;
     9527
     9528  *)
     9529    echo "$as_me:$LINENO: checking for shl_load" >&5
     9530echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
     9531if test "${ac_cv_func_shl_load+set}" = set; then
     9532  echo $ECHO_N "(cached) $ECHO_C" >&6
     9533else
     9534  cat >conftest.$ac_ext <<_ACEOF
     9535/* confdefs.h.  */
    39639536_ACEOF
    3964 
     9537cat confdefs.h >>conftest.$ac_ext
     9538cat >>conftest.$ac_ext <<_ACEOF
     9539/* end confdefs.h.  */
     9540/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
     9541   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     9542#define shl_load innocuous_shl_load
     9543
     9544/* System header to define __stub macros and hopefully few prototypes,
     9545    which can conflict with char shl_load (); below.
     9546    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     9547    <limits.h> exists even on freestanding compilers.  */
     9548
     9549#ifdef __STDC__
     9550# include <limits.h>
     9551#else
     9552# include <assert.h>
     9553#endif
     9554
     9555#undef shl_load
     9556
     9557/* Override any gcc2 internal prototype to avoid an error.  */
     9558#ifdef __cplusplus
     9559extern "C"
     9560{
     9561#endif
     9562/* We use char because int might match the return type of a gcc2
     9563   builtin and then its argument prototype would still apply.  */
     9564char shl_load ();
     9565/* The GNU C library defines this for functions which it implements
     9566    to always fail with ENOSYS.  Some functions are actually named
     9567    something starting with __ and the normal name is an alias.  */
     9568#if defined (__stub_shl_load) || defined (__stub___shl_load)
     9569choke me
     9570#else
     9571char (*f) () = shl_load;
     9572#endif
     9573#ifdef __cplusplus
     9574}
     9575#endif
     9576
     9577int
     9578main ()
     9579{
     9580return f != shl_load;
     9581  ;
     9582  return 0;
     9583}
     9584_ACEOF
     9585rm -f conftest.$ac_objext conftest$ac_exeext
     9586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     9587  (eval $ac_link) 2>conftest.er1
     9588  ac_status=$?
     9589  grep -v '^ *+' conftest.er1 >conftest.err
     9590  rm -f conftest.er1
     9591  cat conftest.err >&5
     9592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9593  (exit $ac_status); } &&
     9594         { ac_try='test -z "$ac_c_werror_flag"
     9595                         || test ! -s conftest.err'
     9596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     9597  (eval $ac_try) 2>&5
     9598  ac_status=$?
     9599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9600  (exit $ac_status); }; } &&
     9601         { ac_try='test -s conftest$ac_exeext'
     9602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     9603  (eval $ac_try) 2>&5
     9604  ac_status=$?
     9605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9606  (exit $ac_status); }; }; then
     9607  ac_cv_func_shl_load=yes
     9608else
     9609  echo "$as_me: failed program was:" >&5
     9610sed 's/^/| /' conftest.$ac_ext >&5
     9611
     9612ac_cv_func_shl_load=no
     9613fi
     9614rm -f conftest.err conftest.$ac_objext \
     9615      conftest$ac_exeext conftest.$ac_ext
     9616fi
     9617echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
     9618echo "${ECHO_T}$ac_cv_func_shl_load" >&6
     9619if test $ac_cv_func_shl_load = yes; then
     9620  lt_cv_dlopen="shl_load"
     9621else
     9622  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
     9623echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
     9624if test "${ac_cv_lib_dld_shl_load+set}" = set; then
     9625  echo $ECHO_N "(cached) $ECHO_C" >&6
     9626else
     9627  ac_check_lib_save_LIBS=$LIBS
     9628LIBS="-ldld  $LIBS"
     9629cat >conftest.$ac_ext <<_ACEOF
     9630/* confdefs.h.  */
     9631_ACEOF
     9632cat confdefs.h >>conftest.$ac_ext
     9633cat >>conftest.$ac_ext <<_ACEOF
     9634/* end confdefs.h.  */
     9635
     9636/* Override any gcc2 internal prototype to avoid an error.  */
     9637#ifdef __cplusplus
     9638extern "C"
     9639#endif
     9640/* We use char because int might match the return type of a gcc2
     9641   builtin and then its argument prototype would still apply.  */
     9642char shl_load ();
     9643int
     9644main ()
     9645{
     9646shl_load ();
     9647  ;
     9648  return 0;
     9649}
     9650_ACEOF
     9651rm -f conftest.$ac_objext conftest$ac_exeext
     9652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     9653  (eval $ac_link) 2>conftest.er1
     9654  ac_status=$?
     9655  grep -v '^ *+' conftest.er1 >conftest.err
     9656  rm -f conftest.er1
     9657  cat conftest.err >&5
     9658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9659  (exit $ac_status); } &&
     9660         { ac_try='test -z "$ac_c_werror_flag"
     9661                         || test ! -s conftest.err'
     9662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     9663  (eval $ac_try) 2>&5
     9664  ac_status=$?
     9665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9666  (exit $ac_status); }; } &&
     9667         { ac_try='test -s conftest$ac_exeext'
     9668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     9669  (eval $ac_try) 2>&5
     9670  ac_status=$?
     9671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9672  (exit $ac_status); }; }; then
     9673  ac_cv_lib_dld_shl_load=yes
     9674else
     9675  echo "$as_me: failed program was:" >&5
     9676sed 's/^/| /' conftest.$ac_ext >&5
     9677
     9678ac_cv_lib_dld_shl_load=no
     9679fi
     9680rm -f conftest.err conftest.$ac_objext \
     9681      conftest$ac_exeext conftest.$ac_ext
     9682LIBS=$ac_check_lib_save_LIBS
     9683fi
     9684echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
     9685echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
     9686if test $ac_cv_lib_dld_shl_load = yes; then
     9687  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
     9688else
     9689  echo "$as_me:$LINENO: checking for dlopen" >&5
     9690echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
     9691if test "${ac_cv_func_dlopen+set}" = set; then
     9692  echo $ECHO_N "(cached) $ECHO_C" >&6
     9693else
     9694  cat >conftest.$ac_ext <<_ACEOF
     9695/* confdefs.h.  */
     9696_ACEOF
     9697cat confdefs.h >>conftest.$ac_ext
     9698cat >>conftest.$ac_ext <<_ACEOF
     9699/* end confdefs.h.  */
     9700/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
     9701   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     9702#define dlopen innocuous_dlopen
     9703
     9704/* System header to define __stub macros and hopefully few prototypes,
     9705    which can conflict with char dlopen (); below.
     9706    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     9707    <limits.h> exists even on freestanding compilers.  */
     9708
     9709#ifdef __STDC__
     9710# include <limits.h>
     9711#else
     9712# include <assert.h>
     9713#endif
     9714
     9715#undef dlopen
     9716
     9717/* Override any gcc2 internal prototype to avoid an error.  */
     9718#ifdef __cplusplus
     9719extern "C"
     9720{
     9721#endif
     9722/* We use char because int might match the return type of a gcc2
     9723   builtin and then its argument prototype would still apply.  */
     9724char dlopen ();
     9725/* The GNU C library defines this for functions which it implements
     9726    to always fail with ENOSYS.  Some functions are actually named
     9727    something starting with __ and the normal name is an alias.  */
     9728#if defined (__stub_dlopen) || defined (__stub___dlopen)
     9729choke me
     9730#else
     9731char (*f) () = dlopen;
     9732#endif
     9733#ifdef __cplusplus
     9734}
     9735#endif
     9736
     9737int
     9738main ()
     9739{
     9740return f != dlopen;
     9741  ;
     9742  return 0;
     9743}
     9744_ACEOF
     9745rm -f conftest.$ac_objext conftest$ac_exeext
     9746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     9747  (eval $ac_link) 2>conftest.er1
     9748  ac_status=$?
     9749  grep -v '^ *+' conftest.er1 >conftest.err
     9750  rm -f conftest.er1
     9751  cat conftest.err >&5
     9752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9753  (exit $ac_status); } &&
     9754         { ac_try='test -z "$ac_c_werror_flag"
     9755                         || test ! -s conftest.err'
     9756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     9757  (eval $ac_try) 2>&5
     9758  ac_status=$?
     9759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9760  (exit $ac_status); }; } &&
     9761         { ac_try='test -s conftest$ac_exeext'
     9762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     9763  (eval $ac_try) 2>&5
     9764  ac_status=$?
     9765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9766  (exit $ac_status); }; }; then
     9767  ac_cv_func_dlopen=yes
     9768else
     9769  echo "$as_me: failed program was:" >&5
     9770sed 's/^/| /' conftest.$ac_ext >&5
     9771
     9772ac_cv_func_dlopen=no
     9773fi
     9774rm -f conftest.err conftest.$ac_objext \
     9775      conftest$ac_exeext conftest.$ac_ext
     9776fi
     9777echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
     9778echo "${ECHO_T}$ac_cv_func_dlopen" >&6
     9779if test $ac_cv_func_dlopen = yes; then
     9780  lt_cv_dlopen="dlopen"
     9781else
     9782  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
     9783echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
     9784if test "${ac_cv_lib_dl_dlopen+set}" = set; then
     9785  echo $ECHO_N "(cached) $ECHO_C" >&6
     9786else
     9787  ac_check_lib_save_LIBS=$LIBS
     9788LIBS="-ldl  $LIBS"
     9789cat >conftest.$ac_ext <<_ACEOF
     9790/* confdefs.h.  */
     9791_ACEOF
     9792cat confdefs.h >>conftest.$ac_ext
     9793cat >>conftest.$ac_ext <<_ACEOF
     9794/* end confdefs.h.  */
     9795
     9796/* Override any gcc2 internal prototype to avoid an error.  */
     9797#ifdef __cplusplus
     9798extern "C"
     9799#endif
     9800/* We use char because int might match the return type of a gcc2
     9801   builtin and then its argument prototype would still apply.  */
     9802char dlopen ();
     9803int
     9804main ()
     9805{
     9806dlopen ();
     9807  ;
     9808  return 0;
     9809}
     9810_ACEOF
     9811rm -f conftest.$ac_objext conftest$ac_exeext
     9812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     9813  (eval $ac_link) 2>conftest.er1
     9814  ac_status=$?
     9815  grep -v '^ *+' conftest.er1 >conftest.err
     9816  rm -f conftest.er1
     9817  cat conftest.err >&5
     9818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9819  (exit $ac_status); } &&
     9820         { ac_try='test -z "$ac_c_werror_flag"
     9821                         || test ! -s conftest.err'
     9822  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     9823  (eval $ac_try) 2>&5
     9824  ac_status=$?
     9825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9826  (exit $ac_status); }; } &&
     9827         { ac_try='test -s conftest$ac_exeext'
     9828  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     9829  (eval $ac_try) 2>&5
     9830  ac_status=$?
     9831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9832  (exit $ac_status); }; }; then
     9833  ac_cv_lib_dl_dlopen=yes
     9834else
     9835  echo "$as_me: failed program was:" >&5
     9836sed 's/^/| /' conftest.$ac_ext >&5
     9837
     9838ac_cv_lib_dl_dlopen=no
     9839fi
     9840rm -f conftest.err conftest.$ac_objext \
     9841      conftest$ac_exeext conftest.$ac_ext
     9842LIBS=$ac_check_lib_save_LIBS
     9843fi
     9844echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
     9845echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
     9846if test $ac_cv_lib_dl_dlopen = yes; then
     9847  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
     9848else
     9849  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
     9850echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
     9851if test "${ac_cv_lib_svld_dlopen+set}" = set; then
     9852  echo $ECHO_N "(cached) $ECHO_C" >&6
     9853else
     9854  ac_check_lib_save_LIBS=$LIBS
     9855LIBS="-lsvld  $LIBS"
     9856cat >conftest.$ac_ext <<_ACEOF
     9857/* confdefs.h.  */
     9858_ACEOF
     9859cat confdefs.h >>conftest.$ac_ext
     9860cat >>conftest.$ac_ext <<_ACEOF
     9861/* end confdefs.h.  */
     9862
     9863/* Override any gcc2 internal prototype to avoid an error.  */
     9864#ifdef __cplusplus
     9865extern "C"
     9866#endif
     9867/* We use char because int might match the return type of a gcc2
     9868   builtin and then its argument prototype would still apply.  */
     9869char dlopen ();
     9870int
     9871main ()
     9872{
     9873dlopen ();
     9874  ;
     9875  return 0;
     9876}
     9877_ACEOF
     9878rm -f conftest.$ac_objext conftest$ac_exeext
     9879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     9880  (eval $ac_link) 2>conftest.er1
     9881  ac_status=$?
     9882  grep -v '^ *+' conftest.er1 >conftest.err
     9883  rm -f conftest.er1
     9884  cat conftest.err >&5
     9885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9886  (exit $ac_status); } &&
     9887         { ac_try='test -z "$ac_c_werror_flag"
     9888                         || test ! -s conftest.err'
     9889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     9890  (eval $ac_try) 2>&5
     9891  ac_status=$?
     9892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9893  (exit $ac_status); }; } &&
     9894         { ac_try='test -s conftest$ac_exeext'
     9895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     9896  (eval $ac_try) 2>&5
     9897  ac_status=$?
     9898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9899  (exit $ac_status); }; }; then
     9900  ac_cv_lib_svld_dlopen=yes
     9901else
     9902  echo "$as_me: failed program was:" >&5
     9903sed 's/^/| /' conftest.$ac_ext >&5
     9904
     9905ac_cv_lib_svld_dlopen=no
     9906fi
     9907rm -f conftest.err conftest.$ac_objext \
     9908      conftest$ac_exeext conftest.$ac_ext
     9909LIBS=$ac_check_lib_save_LIBS
     9910fi
     9911echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
     9912echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
     9913if test $ac_cv_lib_svld_dlopen = yes; then
     9914  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
     9915else
     9916  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
     9917echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
     9918if test "${ac_cv_lib_dld_dld_link+set}" = set; then
     9919  echo $ECHO_N "(cached) $ECHO_C" >&6
     9920else
     9921  ac_check_lib_save_LIBS=$LIBS
     9922LIBS="-ldld  $LIBS"
     9923cat >conftest.$ac_ext <<_ACEOF
     9924/* confdefs.h.  */
     9925_ACEOF
     9926cat confdefs.h >>conftest.$ac_ext
     9927cat >>conftest.$ac_ext <<_ACEOF
     9928/* end confdefs.h.  */
     9929
     9930/* Override any gcc2 internal prototype to avoid an error.  */
     9931#ifdef __cplusplus
     9932extern "C"
     9933#endif
     9934/* We use char because int might match the return type of a gcc2
     9935   builtin and then its argument prototype would still apply.  */
     9936char dld_link ();
     9937int
     9938main ()
     9939{
     9940dld_link ();
     9941  ;
     9942  return 0;
     9943}
     9944_ACEOF
     9945rm -f conftest.$ac_objext conftest$ac_exeext
     9946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     9947  (eval $ac_link) 2>conftest.er1
     9948  ac_status=$?
     9949  grep -v '^ *+' conftest.er1 >conftest.err
     9950  rm -f conftest.er1
     9951  cat conftest.err >&5
     9952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9953  (exit $ac_status); } &&
     9954         { ac_try='test -z "$ac_c_werror_flag"
     9955                         || test ! -s conftest.err'
     9956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     9957  (eval $ac_try) 2>&5
     9958  ac_status=$?
     9959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9960  (exit $ac_status); }; } &&
     9961         { ac_try='test -s conftest$ac_exeext'
     9962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     9963  (eval $ac_try) 2>&5
     9964  ac_status=$?
     9965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     9966  (exit $ac_status); }; }; then
     9967  ac_cv_lib_dld_dld_link=yes
     9968else
     9969  echo "$as_me: failed program was:" >&5
     9970sed 's/^/| /' conftest.$ac_ext >&5
     9971
     9972ac_cv_lib_dld_dld_link=no
     9973fi
     9974rm -f conftest.err conftest.$ac_objext \
     9975      conftest$ac_exeext conftest.$ac_ext
     9976LIBS=$ac_check_lib_save_LIBS
     9977fi
     9978echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
     9979echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
     9980if test $ac_cv_lib_dld_dld_link = yes; then
     9981  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
     9982fi
     9983
     9984
     9985fi
     9986
     9987
     9988fi
     9989
     9990
     9991fi
     9992
     9993
     9994fi
     9995
     9996
     9997fi
     9998
     9999    ;;
     10000  esac
     10001
     10002  if test "x$lt_cv_dlopen" != xno; then
     10003    enable_dlopen=yes
     10004  else
     10005    enable_dlopen=no
     10006  fi
     10007
     10008  case $lt_cv_dlopen in
     10009  dlopen)
     10010    save_CPPFLAGS="$CPPFLAGS"
     10011    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
     10012
     10013    save_LDFLAGS="$LDFLAGS"
     10014    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
     10015
     10016    save_LIBS="$LIBS"
     10017    LIBS="$lt_cv_dlopen_libs $LIBS"
     10018
     10019    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
     10020echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
     10021if test "${lt_cv_dlopen_self+set}" = set; then
     10022  echo $ECHO_N "(cached) $ECHO_C" >&6
     10023else
     10024          if test "$cross_compiling" = yes; then :
     10025  lt_cv_dlopen_self=cross
     10026else
     10027  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
     10028  lt_status=$lt_dlunknown
     10029  cat > conftest.$ac_ext <<EOF
     10030#line 10030 "configure"
     10031#include "confdefs.h"
     10032
     10033#if HAVE_DLFCN_H
     10034#include <dlfcn.h>
     10035#endif
     10036
     10037#include <stdio.h>
     10038
     10039#ifdef RTLD_GLOBAL
     10040#  define LT_DLGLOBAL           RTLD_GLOBAL
     10041#else
     10042#  ifdef DL_GLOBAL
     10043#    define LT_DLGLOBAL         DL_GLOBAL
     10044#  else
     10045#    define LT_DLGLOBAL         0
     10046#  endif
     10047#endif
     10048
     10049/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
     10050   find out it does not work in some platform. */
     10051#ifndef LT_DLLAZY_OR_NOW
     10052#  ifdef RTLD_LAZY
     10053#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
     10054#  else
     10055#    ifdef DL_LAZY
     10056#      define LT_DLLAZY_OR_NOW          DL_LAZY
     10057#    else
     10058#      ifdef RTLD_NOW
     10059#        define LT_DLLAZY_OR_NOW        RTLD_NOW
     10060#      else
     10061#        ifdef DL_NOW
     10062#          define LT_DLLAZY_OR_NOW      DL_NOW
     10063#        else
     10064#          define LT_DLLAZY_OR_NOW      0
     10065#        endif
     10066#      endif
     10067#    endif
     10068#  endif
     10069#endif
     10070
     10071#ifdef __cplusplus
     10072extern "C" void exit (int);
     10073#endif
     10074
     10075void fnord() { int i=42;}
     10076int main ()
     10077{