home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 June / ccd0605.iso / LINUX / gopchop-1.1.7.tar.tar / gopchop-1.1.7.tar / gopchop-1.1.7 / configure < prev    next >
Text File  |  2005-05-01  |  855KB  |  26,733 lines

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for gopchop 1.1.7.
  4. #
  5. # Report bugs to <gopchop-bugs@outflux.net>.
  6. #
  7. # Copyright (C) 2003 Free Software Foundation, Inc.
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10. ## --------------------- ##
  11. ## M4sh Initialization.  ##
  12. ## --------------------- ##
  13.  
  14. # Be Bourne compatible
  15. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  16.   emulate sh
  17.   NULLCMD=:
  18.   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19.   # is contrary to our usage.  Disable this feature.
  20.   alias -g '${1+"$@"}'='"$@"'
  21. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  22.   set -o posix
  23. fi
  24. DUALCASE=1; export DUALCASE # for MKS sh
  25.  
  26. # Support unset when possible.
  27. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  28.   as_unset=unset
  29. else
  30.   as_unset=false
  31. fi
  32.  
  33.  
  34. # Work around bugs in pre-3.0 UWIN ksh.
  35. $as_unset ENV MAIL MAILPATH
  36. PS1='$ '
  37. PS2='> '
  38. PS4='+ '
  39.  
  40. # NLS nuisances.
  41. for as_var in \
  42.   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  43.   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  44.   LC_TELEPHONE LC_TIME
  45. do
  46.   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  47.     eval $as_var=C; export $as_var
  48.   else
  49.     $as_unset $as_var
  50.   fi
  51. done
  52.  
  53. # Required to use basename.
  54. if expr a : '\(a\)' >/dev/null 2>&1; then
  55.   as_expr=expr
  56. else
  57.   as_expr=false
  58. fi
  59.  
  60. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  61.   as_basename=basename
  62. else
  63.   as_basename=false
  64. fi
  65.  
  66.  
  67. # Name of the executable.
  68. as_me=`$as_basename "$0" ||
  69. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  70.      X"$0" : 'X\(//\)$' \| \
  71.      X"$0" : 'X\(/\)$' \| \
  72.      .     : '\(.\)' 2>/dev/null ||
  73. echo X/"$0" |
  74.     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  75.         /^X\/\(\/\/\)$/{ s//\1/; q; }
  76.         /^X\/\(\/\).*/{ s//\1/; q; }
  77.         s/.*/./; q'`
  78.  
  79.  
  80. # PATH needs CR, and LINENO needs CR and PATH.
  81. # Avoid depending upon Character Ranges.
  82. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  83. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  84. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  85. as_cr_digits='0123456789'
  86. as_cr_alnum=$as_cr_Letters$as_cr_digits
  87.  
  88. # The user is always right.
  89. if test "${PATH_SEPARATOR+set}" != set; then
  90.   echo "#! /bin/sh" >conf$$.sh
  91.   echo  "exit 0"   >>conf$$.sh
  92.   chmod +x conf$$.sh
  93.   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  94.     PATH_SEPARATOR=';'
  95.   else
  96.     PATH_SEPARATOR=:
  97.   fi
  98.   rm -f conf$$.sh
  99. fi
  100.  
  101.  
  102.   as_lineno_1=$LINENO
  103.   as_lineno_2=$LINENO
  104.   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  105.   test "x$as_lineno_1" != "x$as_lineno_2" &&
  106.   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
  107.   # Find who we are.  Look in the path if we contain no path at all
  108.   # relative or not.
  109.   case $0 in
  110.     *[\\/]* ) as_myself=$0 ;;
  111.     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  112. for as_dir in $PATH
  113. do
  114.   IFS=$as_save_IFS
  115.   test -z "$as_dir" && as_dir=.
  116.   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  117. done
  118.  
  119.        ;;
  120.   esac
  121.   # We did not find ourselves, most probably we were run as `sh COMMAND'
  122.   # in which case we are not to be found in the path.
  123.   if test "x$as_myself" = x; then
  124.     as_myself=$0
  125.   fi
  126.   if test ! -f "$as_myself"; then
  127.     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  128.    { (exit 1); exit 1; }; }
  129.   fi
  130.   case $CONFIG_SHELL in
  131.   '')
  132.     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  133. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  134. do
  135.   IFS=$as_save_IFS
  136.   test -z "$as_dir" && as_dir=.
  137.   for as_base in sh bash ksh sh5; do
  138.      case $as_dir in
  139.      /*)
  140.        if ("$as_dir/$as_base" -c '
  141.   as_lineno_1=$LINENO
  142.   as_lineno_2=$LINENO
  143.   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  144.   test "x$as_lineno_1" != "x$as_lineno_2" &&
  145.   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
  146.          $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  147.          $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  148.          CONFIG_SHELL=$as_dir/$as_base
  149.          export CONFIG_SHELL
  150.          exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  151.        fi;;
  152.      esac
  153.        done
  154. done
  155. ;;
  156.   esac
  157.  
  158.   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  159.   # uniformly replaced by the line number.  The first 'sed' inserts a
  160.   # line-number line before each line; the second 'sed' does the real
  161.   # work.  The second script uses 'N' to pair each line-number line
  162.   # with the numbered line, and appends trailing '-' during
  163.   # substitution so that $LINENO is not a special case at line end.
  164.   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  165.   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
  166.   sed '=' <$as_myself |
  167.     sed '
  168.       N
  169.       s,$,-,
  170.       : loop
  171.       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  172.       t loop
  173.       s,-$,,
  174.       s,^['$as_cr_digits']*\n,,
  175.     ' >$as_me.lineno &&
  176.   chmod +x $as_me.lineno ||
  177.     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  178.    { (exit 1); exit 1; }; }
  179.  
  180.   # Don't try to exec as it changes $[0], causing all sort of problems
  181.   # (the dirname of $[0] is not the place where we might find the
  182.   # original and so on.  Autoconf is especially sensible to this).
  183.   . ./$as_me.lineno
  184.   # Exit status is that of the last command.
  185.   exit
  186. }
  187.  
  188.  
  189. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  190.   *c*,-n*) ECHO_N= ECHO_C='
  191. ' ECHO_T='    ' ;;
  192.   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  193.   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
  194. esac
  195.  
  196. if expr a : '\(a\)' >/dev/null 2>&1; then
  197.   as_expr=expr
  198. else
  199.   as_expr=false
  200. fi
  201.  
  202. rm -f conf$$ conf$$.exe conf$$.file
  203. echo >conf$$.file
  204. if ln -s conf$$.file conf$$ 2>/dev/null; then
  205.   # We could just check for DJGPP; but this test a) works b) is more generic
  206.   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  207.   if test -f conf$$.exe; then
  208.     # Don't use ln at all; we don't have any links
  209.     as_ln_s='cp -p'
  210.   else
  211.     as_ln_s='ln -s'
  212.   fi
  213. elif ln conf$$.file conf$$ 2>/dev/null; then
  214.   as_ln_s=ln
  215. else
  216.   as_ln_s='cp -p'
  217. fi
  218. rm -f conf$$ conf$$.exe conf$$.file
  219.  
  220. if mkdir -p . 2>/dev/null; then
  221.   as_mkdir_p=:
  222. else
  223.   test -d ./-p && rmdir ./-p
  224.   as_mkdir_p=false
  225. fi
  226.  
  227. as_executable_p="test -f"
  228.  
  229. # Sed expression to map a string onto a valid CPP name.
  230. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  231.  
  232. # Sed expression to map a string onto a valid variable name.
  233. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  234.  
  235.  
  236. # IFS
  237. # We need space, tab and new line, in precisely that order.
  238. as_nl='
  239. '
  240. IFS="     $as_nl"
  241.  
  242. # CDPATH.
  243. $as_unset CDPATH
  244.  
  245.  
  246.  
  247. # Check that we are running under the correct shell.
  248. SHELL=${CONFIG_SHELL-/bin/sh}
  249.  
  250. case X$ECHO in
  251. X*--fallback-echo)
  252.   # Remove one level of quotation (which was required for Make).
  253.   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  254.   ;;
  255. esac
  256.  
  257. echo=${ECHO-echo}
  258. if test "X$1" = X--no-reexec; then
  259.   # Discard the --no-reexec flag, and continue.
  260.   shift
  261. elif test "X$1" = X--fallback-echo; then
  262.   # Avoid inline document here, it may be left over
  263.   :
  264. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  265.   # Yippee, $echo works!
  266.   :
  267. else
  268.   # Restart under the correct shell.
  269.   exec $SHELL "$0" --no-reexec ${1+"$@"}
  270. fi
  271.  
  272. if test "X$1" = X--fallback-echo; then
  273.   # used as fallback echo
  274.   shift
  275.   cat <<EOF
  276. $*
  277. EOF
  278.   exit 0
  279. fi
  280.  
  281. # The HP-UX ksh and POSIX shell print the target directory to stdout
  282. # if CDPATH is set.
  283. if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  284.  
  285. if test -z "$ECHO"; then
  286. if test "X${echo_test_string+set}" != Xset; then
  287. # find a string as large as possible, as long as the shell can cope with it
  288.   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  289.     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  290.     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  291.        echo_test_string="`eval $cmd`" &&
  292.        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  293.     then
  294.       break
  295.     fi
  296.   done
  297. fi
  298.  
  299. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  300.    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  301.    test "X$echo_testing_string" = "X$echo_test_string"; then
  302.   :
  303. else
  304.   # The Solaris, AIX, and Digital Unix default echo programs unquote
  305.   # backslashes.  This makes it impossible to quote backslashes using
  306.   #   echo "$something" | sed 's/\\/\\\\/g'
  307.   #
  308.   # So, first we look for a working echo in the user's PATH.
  309.  
  310.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  311.   for dir in $PATH /usr/ucb; do
  312.     IFS="$lt_save_ifs"
  313.     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  314.        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  315.        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  316.        test "X$echo_testing_string" = "X$echo_test_string"; then
  317.       echo="$dir/echo"
  318.       break
  319.     fi
  320.   done
  321.   IFS="$lt_save_ifs"
  322.  
  323.   if test "X$echo" = Xecho; then
  324.     # We didn't find a better echo, so look for alternatives.
  325.     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  326.        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  327.        test "X$echo_testing_string" = "X$echo_test_string"; then
  328.       # This shell has a builtin print -r that does the trick.
  329.       echo='print -r'
  330.     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  331.      test "X$CONFIG_SHELL" != X/bin/ksh; then
  332.       # If we have ksh, try running configure again with it.
  333.       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  334.       export ORIGINAL_CONFIG_SHELL
  335.       CONFIG_SHELL=/bin/ksh
  336.       export CONFIG_SHELL
  337.       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  338.     else
  339.       # Try using printf.
  340.       echo='printf %s\n'
  341.       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  342.      echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  343.      test "X$echo_testing_string" = "X$echo_test_string"; then
  344.     # Cool, printf works
  345.     :
  346.       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  347.        test "X$echo_testing_string" = 'X\t' &&
  348.        echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  349.        test "X$echo_testing_string" = "X$echo_test_string"; then
  350.     CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  351.     export CONFIG_SHELL
  352.     SHELL="$CONFIG_SHELL"
  353.     export SHELL
  354.     echo="$CONFIG_SHELL $0 --fallback-echo"
  355.       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  356.        test "X$echo_testing_string" = 'X\t' &&
  357.        echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  358.        test "X$echo_testing_string" = "X$echo_test_string"; then
  359.     echo="$CONFIG_SHELL $0 --fallback-echo"
  360.       else
  361.     # maybe with a smaller string...
  362.     prev=:
  363.  
  364.     for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  365.       if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  366.       then
  367.         break
  368.       fi
  369.       prev="$cmd"
  370.     done
  371.  
  372.     if test "$prev" != 'sed 50q "$0"'; then
  373.       echo_test_string=`eval $prev`
  374.       export echo_test_string
  375.       exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  376.     else
  377.       # Oops.  We lost completely, so just stick with echo.
  378.       echo=echo
  379.     fi
  380.       fi
  381.     fi
  382.   fi
  383. fi
  384. fi
  385.  
  386. # Copy echo and quote the copy suitably for passing to libtool from
  387. # the Makefile, instead of quoting the original, which is used later.
  388. ECHO=$echo
  389. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  390.    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  391. fi
  392.  
  393.  
  394.  
  395.  
  396. tagnames=${tagnames+${tagnames},}CXX
  397.  
  398. tagnames=${tagnames+${tagnames},}F77
  399.  
  400. # Name of the host.
  401. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  402. # so uname gets run too.
  403. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  404.  
  405. exec 6>&1
  406.  
  407. #
  408. # Initializations.
  409. #
  410. ac_default_prefix=/usr/local
  411. ac_config_libobj_dir=.
  412. cross_compiling=no
  413. subdirs=
  414. MFLAGS=
  415. MAKEFLAGS=
  416. SHELL=${CONFIG_SHELL-/bin/sh}
  417.  
  418. # Maximum number of lines to put in a shell here document.
  419. # This variable seems obsolete.  It should probably be removed, and
  420. # only ac_max_sed_lines should be used.
  421. : ${ac_max_here_lines=38}
  422.  
  423. # Identity of this package.
  424. PACKAGE_NAME='gopchop'
  425. PACKAGE_TARNAME='gopchop'
  426. PACKAGE_VERSION='1.1.7'
  427. PACKAGE_STRING='gopchop 1.1.7'
  428. PACKAGE_BUGREPORT='gopchop-bugs@outflux.net'
  429.  
  430. ac_unique_file="src/Main.cpp"
  431. # Factoring default headers for most tests.
  432. ac_includes_default="\
  433. #include <stdio.h>
  434. #if HAVE_SYS_TYPES_H
  435. # include <sys/types.h>
  436. #endif
  437. #if HAVE_SYS_STAT_H
  438. # include <sys/stat.h>
  439. #endif
  440. #if STDC_HEADERS
  441. # include <stdlib.h>
  442. # include <stddef.h>
  443. #else
  444. # if HAVE_STDLIB_H
  445. #  include <stdlib.h>
  446. # endif
  447. #endif
  448. #if HAVE_STRING_H
  449. # if !STDC_HEADERS && HAVE_MEMORY_H
  450. #  include <memory.h>
  451. # endif
  452. # include <string.h>
  453. #endif
  454. #if HAVE_STRINGS_H
  455. # include <strings.h>
  456. #endif
  457. #if HAVE_INTTYPES_H
  458. # include <inttypes.h>
  459. #else
  460. # if HAVE_STDINT_H
  461. #  include <stdint.h>
  462. # endif
  463. #endif
  464. #if HAVE_UNISTD_H
  465. # include <unistd.h>
  466. #endif"
  467.  
  468. 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INTLTOOL_DESKTOP_RULE INTLTOOL_DIRECTORY_RULE INTLTOOL_KEYS_RULE INTLTOOL_PROP_RULE INTLTOOL_OAF_RULE INTLTOOL_PONG_RULE INTLTOOL_SERVER_RULE INTLTOOL_SHEET_RULE INTLTOOL_SOUNDLIST_RULE INTLTOOL_UI_RULE INTLTOOL_XAM_RULE INTLTOOL_KBD_RULE INTLTOOL_XML_RULE INTLTOOL_XML_NOMERGE_RULE INTLTOOL_CAVES_RULE INTLTOOL_SCHEMAS_RULE INTLTOOL_THEME_RULE INTLTOOL_EXTRACT INTLTOOL_MERGE INTLTOOL_UPDATE INTLTOOL_PERL INTLTOOL_ICONV INTLTOOL_MSGFMT INTLTOOL_MSGMERGE INTLTOOL_XGETTEXT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXCPP EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP F77 FFLAGS ac_ct_F77 LIBTOOL XML2_CONFIG XML_CPPFLAGS XML_LIBS INCLUDES PKG_CONFIG ac_pt_PKG_CONFIG PACKAGE_CFLAGS PACKAGE_LIBS LIBVO_CFLAGS LIBVO_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS SDLCONFIG PACKAGE_DATA_DIR GETTEXT_PACKAGE USE_NLS MSGFMT GMSGFMT XGETTEXT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLLIBS PO_IN_DATADIR_TRUE PO_IN_DATADIR_FALSE POFILES POSUB MKINSTALLDIRS LIBOBJS LTLIBOBJS'
  469. ac_subst_files=''
  470.  
  471. # Initialize some variables set by options.
  472. ac_init_help=
  473. ac_init_version=false
  474. # The variables have the same names as the options, with
  475. # dashes changed to underlines.
  476. cache_file=/dev/null
  477. exec_prefix=NONE
  478. no_create=
  479. no_recursion=
  480. prefix=NONE
  481. program_prefix=NONE
  482. program_suffix=NONE
  483. program_transform_name=s,x,x,
  484. silent=
  485. site=
  486. srcdir=
  487. verbose=
  488. x_includes=NONE
  489. x_libraries=NONE
  490.  
  491. # Installation directory options.
  492. # These are left unexpanded so users can "make install exec_prefix=/foo"
  493. # and all the variables that are supposed to be based on exec_prefix
  494. # by default will actually change.
  495. # Use braces instead of parens because sh, perl, etc. also accept them.
  496. bindir='${exec_prefix}/bin'
  497. sbindir='${exec_prefix}/sbin'
  498. libexecdir='${exec_prefix}/libexec'
  499. datadir='${prefix}/share'
  500. sysconfdir='${prefix}/etc'
  501. sharedstatedir='${prefix}/com'
  502. localstatedir='${prefix}/var'
  503. libdir='${exec_prefix}/lib'
  504. includedir='${prefix}/include'
  505. oldincludedir='/usr/include'
  506. infodir='${prefix}/info'
  507. mandir='${prefix}/man'
  508.  
  509. ac_prev=
  510. for ac_option
  511. do
  512.   # If the previous option needs an argument, assign it.
  513.   if test -n "$ac_prev"; then
  514.     eval "$ac_prev=\$ac_option"
  515.     ac_prev=
  516.     continue
  517.   fi
  518.  
  519.   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  520.  
  521.   # Accept the important Cygnus configure options, so we can diagnose typos.
  522.  
  523.   case $ac_option in
  524.  
  525.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  526.     ac_prev=bindir ;;
  527.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  528.     bindir=$ac_optarg ;;
  529.  
  530.   -build | --build | --buil | --bui | --bu)
  531.     ac_prev=build_alias ;;
  532.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  533.     build_alias=$ac_optarg ;;
  534.  
  535.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  536.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  537.     ac_prev=cache_file ;;
  538.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  539.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  540.     cache_file=$ac_optarg ;;
  541.  
  542.   --config-cache | -C)
  543.     cache_file=config.cache ;;
  544.  
  545.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  546.     ac_prev=datadir ;;
  547.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  548.   | --da=*)
  549.     datadir=$ac_optarg ;;
  550.  
  551.   -disable-* | --disable-*)
  552.     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  553.     # Reject names that are not valid shell variable names.
  554.     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  555.       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  556.    { (exit 1); exit 1; }; }
  557.     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  558.     eval "enable_$ac_feature=no" ;;
  559.  
  560.   -enable-* | --enable-*)
  561.     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  562.     # Reject names that are not valid shell variable names.
  563.     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  564.       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  565.    { (exit 1); exit 1; }; }
  566.     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  567.     case $ac_option in
  568.       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  569.       *) ac_optarg=yes ;;
  570.     esac
  571.     eval "enable_$ac_feature='$ac_optarg'" ;;
  572.  
  573.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  574.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  575.   | --exec | --exe | --ex)
  576.     ac_prev=exec_prefix ;;
  577.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  578.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  579.   | --exec=* | --exe=* | --ex=*)
  580.     exec_prefix=$ac_optarg ;;
  581.  
  582.   -gas | --gas | --ga | --g)
  583.     # Obsolete; use --with-gas.
  584.     with_gas=yes ;;
  585.  
  586.   -help | --help | --hel | --he | -h)
  587.     ac_init_help=long ;;
  588.   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  589.     ac_init_help=recursive ;;
  590.   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  591.     ac_init_help=short ;;
  592.  
  593.   -host | --host | --hos | --ho)
  594.     ac_prev=host_alias ;;
  595.   -host=* | --host=* | --hos=* | --ho=*)
  596.     host_alias=$ac_optarg ;;
  597.  
  598.   -includedir | --includedir | --includedi | --included | --include \
  599.   | --includ | --inclu | --incl | --inc)
  600.     ac_prev=includedir ;;
  601.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  602.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  603.     includedir=$ac_optarg ;;
  604.  
  605.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  606.     ac_prev=infodir ;;
  607.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  608.     infodir=$ac_optarg ;;
  609.  
  610.   -libdir | --libdir | --libdi | --libd)
  611.     ac_prev=libdir ;;
  612.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  613.     libdir=$ac_optarg ;;
  614.  
  615.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  616.   | --libexe | --libex | --libe)
  617.     ac_prev=libexecdir ;;
  618.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  619.   | --libexe=* | --libex=* | --libe=*)
  620.     libexecdir=$ac_optarg ;;
  621.  
  622.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  623.   | --localstate | --localstat | --localsta | --localst \
  624.   | --locals | --local | --loca | --loc | --lo)
  625.     ac_prev=localstatedir ;;
  626.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  627.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  628.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  629.     localstatedir=$ac_optarg ;;
  630.  
  631.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  632.     ac_prev=mandir ;;
  633.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  634.     mandir=$ac_optarg ;;
  635.  
  636.   -nfp | --nfp | --nf)
  637.     # Obsolete; use --without-fp.
  638.     with_fp=no ;;
  639.  
  640.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  641.   | --no-cr | --no-c | -n)
  642.     no_create=yes ;;
  643.  
  644.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  645.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  646.     no_recursion=yes ;;
  647.  
  648.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  649.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  650.   | --oldin | --oldi | --old | --ol | --o)
  651.     ac_prev=oldincludedir ;;
  652.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  653.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  654.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  655.     oldincludedir=$ac_optarg ;;
  656.  
  657.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  658.     ac_prev=prefix ;;
  659.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  660.     prefix=$ac_optarg ;;
  661.  
  662.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  663.   | --program-pre | --program-pr | --program-p)
  664.     ac_prev=program_prefix ;;
  665.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  666.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  667.     program_prefix=$ac_optarg ;;
  668.  
  669.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  670.   | --program-suf | --program-su | --program-s)
  671.     ac_prev=program_suffix ;;
  672.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  673.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  674.     program_suffix=$ac_optarg ;;
  675.  
  676.   -program-transform-name | --program-transform-name \
  677.   | --program-transform-nam | --program-transform-na \
  678.   | --program-transform-n | --program-transform- \
  679.   | --program-transform | --program-transfor \
  680.   | --program-transfo | --program-transf \
  681.   | --program-trans | --program-tran \
  682.   | --progr-tra | --program-tr | --program-t)
  683.     ac_prev=program_transform_name ;;
  684.   -program-transform-name=* | --program-transform-name=* \
  685.   | --program-transform-nam=* | --program-transform-na=* \
  686.   | --program-transform-n=* | --program-transform-=* \
  687.   | --program-transform=* | --program-transfor=* \
  688.   | --program-transfo=* | --program-transf=* \
  689.   | --program-trans=* | --program-tran=* \
  690.   | --progr-tra=* | --program-tr=* | --program-t=*)
  691.     program_transform_name=$ac_optarg ;;
  692.  
  693.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  694.   | -silent | --silent | --silen | --sile | --sil)
  695.     silent=yes ;;
  696.  
  697.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  698.     ac_prev=sbindir ;;
  699.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  700.   | --sbi=* | --sb=*)
  701.     sbindir=$ac_optarg ;;
  702.  
  703.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  704.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  705.   | --sharedst | --shareds | --shared | --share | --shar \
  706.   | --sha | --sh)
  707.     ac_prev=sharedstatedir ;;
  708.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  709.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  710.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  711.   | --sha=* | --sh=*)
  712.     sharedstatedir=$ac_optarg ;;
  713.  
  714.   -site | --site | --sit)
  715.     ac_prev=site ;;
  716.   -site=* | --site=* | --sit=*)
  717.     site=$ac_optarg ;;
  718.  
  719.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  720.     ac_prev=srcdir ;;
  721.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  722.     srcdir=$ac_optarg ;;
  723.  
  724.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  725.   | --syscon | --sysco | --sysc | --sys | --sy)
  726.     ac_prev=sysconfdir ;;
  727.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  728.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  729.     sysconfdir=$ac_optarg ;;
  730.  
  731.   -target | --target | --targe | --targ | --tar | --ta | --t)
  732.     ac_prev=target_alias ;;
  733.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  734.     target_alias=$ac_optarg ;;
  735.  
  736.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  737.     verbose=yes ;;
  738.  
  739.   -version | --version | --versio | --versi | --vers | -V)
  740.     ac_init_version=: ;;
  741.  
  742.   -with-* | --with-*)
  743.     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  744.     # Reject names that are not valid shell variable names.
  745.     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  746.       { echo "$as_me: error: invalid package name: $ac_package" >&2
  747.    { (exit 1); exit 1; }; }
  748.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  749.     case $ac_option in
  750.       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  751.       *) ac_optarg=yes ;;
  752.     esac
  753.     eval "with_$ac_package='$ac_optarg'" ;;
  754.  
  755.   -without-* | --without-*)
  756.     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  757.     # Reject names that are not valid shell variable names.
  758.     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  759.       { echo "$as_me: error: invalid package name: $ac_package" >&2
  760.    { (exit 1); exit 1; }; }
  761.     ac_package=`echo $ac_package | sed 's/-/_/g'`
  762.     eval "with_$ac_package=no" ;;
  763.  
  764.   --x)
  765.     # Obsolete; use --with-x.
  766.     with_x=yes ;;
  767.  
  768.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  769.   | --x-incl | --x-inc | --x-in | --x-i)
  770.     ac_prev=x_includes ;;
  771.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  772.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  773.     x_includes=$ac_optarg ;;
  774.  
  775.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  776.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  777.     ac_prev=x_libraries ;;
  778.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  779.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  780.     x_libraries=$ac_optarg ;;
  781.  
  782.   -*) { echo "$as_me: error: unrecognized option: $ac_option
  783. Try \`$0 --help' for more information." >&2
  784.    { (exit 1); exit 1; }; }
  785.     ;;
  786.  
  787.   *=*)
  788.     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  789.     # Reject names that are not valid shell variable names.
  790.     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  791.       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  792.    { (exit 1); exit 1; }; }
  793.     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  794.     eval "$ac_envvar='$ac_optarg'"
  795.     export $ac_envvar ;;
  796.  
  797.   *)
  798.     # FIXME: should be removed in autoconf 3.0.
  799.     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  800.     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  801.       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  802.     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  803.     ;;
  804.  
  805.   esac
  806. done
  807.  
  808. if test -n "$ac_prev"; then
  809.   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  810.   { echo "$as_me: error: missing argument to $ac_option" >&2
  811.    { (exit 1); exit 1; }; }
  812. fi
  813.  
  814. # Be sure to have absolute paths.
  815. for ac_var in exec_prefix prefix
  816. do
  817.   eval ac_val=$`echo $ac_var`
  818.   case $ac_val in
  819.     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  820.     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  821.    { (exit 1); exit 1; }; };;
  822.   esac
  823. done
  824.  
  825. # Be sure to have absolute paths.
  826. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  827.           localstatedir libdir includedir oldincludedir infodir mandir
  828. do
  829.   eval ac_val=$`echo $ac_var`
  830.   case $ac_val in
  831.     [\\/$]* | ?:[\\/]* ) ;;
  832.     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  833.    { (exit 1); exit 1; }; };;
  834.   esac
  835. done
  836.  
  837. # There might be people who depend on the old broken behavior: `$host'
  838. # used to hold the argument of --host etc.
  839. # FIXME: To remove some day.
  840. build=$build_alias
  841. host=$host_alias
  842. target=$target_alias
  843.  
  844. # FIXME: To remove some day.
  845. if test "x$host_alias" != x; then
  846.   if test "x$build_alias" = x; then
  847.     cross_compiling=maybe
  848.     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  849.     If a cross compiler is detected then cross compile mode will be used." >&2
  850.   elif test "x$build_alias" != "x$host_alias"; then
  851.     cross_compiling=yes
  852.   fi
  853. fi
  854.  
  855. ac_tool_prefix=
  856. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  857.  
  858. test "$silent" = yes && exec 6>/dev/null
  859.  
  860.  
  861. # Find the source files, if location was not specified.
  862. if test -z "$srcdir"; then
  863.   ac_srcdir_defaulted=yes
  864.   # Try the directory containing this script, then its parent.
  865.   ac_confdir=`(dirname "$0") 2>/dev/null ||
  866. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  867.      X"$0" : 'X\(//\)[^/]' \| \
  868.      X"$0" : 'X\(//\)$' \| \
  869.      X"$0" : 'X\(/\)' \| \
  870.      .     : '\(.\)' 2>/dev/null ||
  871. echo X"$0" |
  872.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  873.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  874.         /^X\(\/\/\)$/{ s//\1/; q; }
  875.         /^X\(\/\).*/{ s//\1/; q; }
  876.         s/.*/./; q'`
  877.   srcdir=$ac_confdir
  878.   if test ! -r $srcdir/$ac_unique_file; then
  879.     srcdir=..
  880.   fi
  881. else
  882.   ac_srcdir_defaulted=no
  883. fi
  884. if test ! -r $srcdir/$ac_unique_file; then
  885.   if test "$ac_srcdir_defaulted" = yes; then
  886.     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  887.    { (exit 1); exit 1; }; }
  888.   else
  889.     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  890.    { (exit 1); exit 1; }; }
  891.   fi
  892. fi
  893. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  894.   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  895.    { (exit 1); exit 1; }; }
  896. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  897. ac_env_build_alias_set=${build_alias+set}
  898. ac_env_build_alias_value=$build_alias
  899. ac_cv_env_build_alias_set=${build_alias+set}
  900. ac_cv_env_build_alias_value=$build_alias
  901. ac_env_host_alias_set=${host_alias+set}
  902. ac_env_host_alias_value=$host_alias
  903. ac_cv_env_host_alias_set=${host_alias+set}
  904. ac_cv_env_host_alias_value=$host_alias
  905. ac_env_target_alias_set=${target_alias+set}
  906. ac_env_target_alias_value=$target_alias
  907. ac_cv_env_target_alias_set=${target_alias+set}
  908. ac_cv_env_target_alias_value=$target_alias
  909. ac_env_CXX_set=${CXX+set}
  910. ac_env_CXX_value=$CXX
  911. ac_cv_env_CXX_set=${CXX+set}
  912. ac_cv_env_CXX_value=$CXX
  913. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  914. ac_env_CXXFLAGS_value=$CXXFLAGS
  915. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  916. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  917. ac_env_LDFLAGS_set=${LDFLAGS+set}
  918. ac_env_LDFLAGS_value=$LDFLAGS
  919. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  920. ac_cv_env_LDFLAGS_value=$LDFLAGS
  921. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  922. ac_env_CPPFLAGS_value=$CPPFLAGS
  923. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  924. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  925. ac_env_CC_set=${CC+set}
  926. ac_env_CC_value=$CC
  927. ac_cv_env_CC_set=${CC+set}
  928. ac_cv_env_CC_value=$CC
  929. ac_env_CFLAGS_set=${CFLAGS+set}
  930. ac_env_CFLAGS_value=$CFLAGS
  931. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  932. ac_cv_env_CFLAGS_value=$CFLAGS
  933. ac_env_CXXCPP_set=${CXXCPP+set}
  934. ac_env_CXXCPP_value=$CXXCPP
  935. ac_cv_env_CXXCPP_set=${CXXCPP+set}
  936. ac_cv_env_CXXCPP_value=$CXXCPP
  937. ac_env_CPP_set=${CPP+set}
  938. ac_env_CPP_value=$CPP
  939. ac_cv_env_CPP_set=${CPP+set}
  940. ac_cv_env_CPP_value=$CPP
  941. ac_env_F77_set=${F77+set}
  942. ac_env_F77_value=$F77
  943. ac_cv_env_F77_set=${F77+set}
  944. ac_cv_env_F77_value=$F77
  945. ac_env_FFLAGS_set=${FFLAGS+set}
  946. ac_env_FFLAGS_value=$FFLAGS
  947. ac_cv_env_FFLAGS_set=${FFLAGS+set}
  948. ac_cv_env_FFLAGS_value=$FFLAGS
  949. ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
  950. ac_env_PKG_CONFIG_value=$PKG_CONFIG
  951. ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
  952. ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
  953. ac_env_PACKAGE_CFLAGS_set=${PACKAGE_CFLAGS+set}
  954. ac_env_PACKAGE_CFLAGS_value=$PACKAGE_CFLAGS
  955. ac_cv_env_PACKAGE_CFLAGS_set=${PACKAGE_CFLAGS+set}
  956. ac_cv_env_PACKAGE_CFLAGS_value=$PACKAGE_CFLAGS
  957. ac_env_PACKAGE_LIBS_set=${PACKAGE_LIBS+set}
  958. ac_env_PACKAGE_LIBS_value=$PACKAGE_LIBS
  959. ac_cv_env_PACKAGE_LIBS_set=${PACKAGE_LIBS+set}
  960. ac_cv_env_PACKAGE_LIBS_value=$PACKAGE_LIBS
  961.  
  962. #
  963. # Report the --help message.
  964. #
  965. if test "$ac_init_help" = "long"; then
  966.   # Omit some internal or obsolete options to make the list less imposing.
  967.   # This message is too long to be a string in the A/UX 3.1 sh.
  968.   cat <<_ACEOF
  969. \`configure' configures gopchop 1.1.7 to adapt to many kinds of systems.
  970.  
  971. Usage: $0 [OPTION]... [VAR=VALUE]...
  972.  
  973. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  974. VAR=VALUE.  See below for descriptions of some of the useful variables.
  975.  
  976. Defaults for the options are specified in brackets.
  977.  
  978. Configuration:
  979.   -h, --help              display this help and exit
  980.       --help=short        display options specific to this package
  981.       --help=recursive    display the short help of all the included packages
  982.   -V, --version           display version information and exit
  983.   -q, --quiet, --silent   do not print \`checking...' messages
  984.       --cache-file=FILE   cache test results in FILE [disabled]
  985.   -C, --config-cache      alias for \`--cache-file=config.cache'
  986.   -n, --no-create         do not create output files
  987.       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  988.  
  989. _ACEOF
  990.  
  991.   cat <<_ACEOF
  992. Installation directories:
  993.   --prefix=PREFIX         install architecture-independent files in PREFIX
  994.               [$ac_default_prefix]
  995.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  996.               [PREFIX]
  997.  
  998. By default, \`make install' will install all the files in
  999. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1000. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1001. for instance \`--prefix=\$HOME'.
  1002.  
  1003. For better control, use the options below.
  1004.  
  1005. Fine tuning of the installation directories:
  1006.   --bindir=DIR           user executables [EPREFIX/bin]
  1007.   --sbindir=DIR          system admin executables [EPREFIX/sbin]
  1008.   --libexecdir=DIR       program executables [EPREFIX/libexec]
  1009.   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
  1010.   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  1011.   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  1012.   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  1013.   --libdir=DIR           object code libraries [EPREFIX/lib]
  1014.   --includedir=DIR       C header files [PREFIX/include]
  1015.   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  1016.   --infodir=DIR          info documentation [PREFIX/info]
  1017.   --mandir=DIR           man documentation [PREFIX/man]
  1018. _ACEOF
  1019.  
  1020.   cat <<\_ACEOF
  1021.  
  1022. Program names:
  1023.   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1024.   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1025.   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1026.  
  1027. X features:
  1028.   --x-includes=DIR    X include files are in DIR
  1029.   --x-libraries=DIR   X library files are in DIR
  1030.  
  1031. System types:
  1032.   --build=BUILD     configure for building on BUILD [guessed]
  1033.   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1034. _ACEOF
  1035. fi
  1036.  
  1037. if test -n "$ac_init_help"; then
  1038.   case $ac_init_help in
  1039.      short | recursive ) echo "Configuration of gopchop 1.1.7:";;
  1040.    esac
  1041.   cat <<\_ACEOF
  1042.  
  1043. Optional Features:
  1044.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1045.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1046.   --enable-maintainer-mode  enable make rules and dependencies not useful
  1047.               (and sometimes confusing) to the casual installer
  1048.   --disable-dependency-tracking  speeds up one-time build
  1049.   --enable-dependency-tracking   do not reject slow dependency extractors
  1050.   --disable-largefile     omit support for large files
  1051.   --enable-shared[=PKGS]
  1052.                           build shared libraries [default=yes]
  1053.   --enable-static[=PKGS]
  1054.                           build static libraries [default=yes]
  1055.   --enable-fast-install[=PKGS]
  1056.                           optimize for fast installation [default=yes]
  1057.   --disable-libtool-lock  avoid locking (might break parallel builds)
  1058.   --disable-xmltest       Do not try to compile and run a test LIBXML program
  1059.   --enable-directx=DIR    use Win32 DirectX headers in DIR
  1060.   --disable-sdl           make a version not using SDL
  1061.  
  1062. Optional Packages:
  1063.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1064.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1065.   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  1066.   --with-pic              try to use only PIC/non-PIC objects [default=use
  1067.                           both]
  1068.   --with-tags[=TAGS]
  1069.                           include additional configurations [automatic]
  1070.   --with-xml-prefix=PFX   Prefix where libxml is installed (optional)
  1071.   --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1072.   --with-x                use the X Window System
  1073.  
  1074. Some influential environment variables:
  1075.   CXX         C++ compiler command
  1076.   CXXFLAGS    C++ compiler flags
  1077.   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1078.               nonstandard directory <lib dir>
  1079.   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
  1080.               headers in a nonstandard directory <include dir>
  1081.   CC          C compiler command
  1082.   CFLAGS      C compiler flags
  1083.   CXXCPP      C++ preprocessor
  1084.   CPP         C preprocessor
  1085.   F77         Fortran 77 compiler command
  1086.   FFLAGS      Fortran 77 compiler flags
  1087.   PKG_CONFIG  path to pkg-config utility
  1088.   PACKAGE_CFLAGS
  1089.               C compiler flags for PACKAGE, overriding pkg-config
  1090.   PACKAGE_LIBS
  1091.               linker flags for PACKAGE, overriding pkg-config
  1092.  
  1093. Use these variables to override the choices made by `configure' or to help
  1094. it to find libraries and programs with nonstandard names/locations.
  1095.  
  1096. Report bugs to <gopchop-bugs@outflux.net>.
  1097. _ACEOF
  1098. fi
  1099.  
  1100. if test "$ac_init_help" = "recursive"; then
  1101.   # If there are subdirs, report their specific --help.
  1102.   ac_popdir=`pwd`
  1103.   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1104.     test -d $ac_dir || continue
  1105.     ac_builddir=.
  1106.  
  1107. if test "$ac_dir" != .; then
  1108.   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1109.   # A "../" for each directory in $ac_dir_suffix.
  1110.   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  1111. else
  1112.   ac_dir_suffix= ac_top_builddir=
  1113. fi
  1114.  
  1115. case $srcdir in
  1116.   .)  # No --srcdir option.  We are building in place.
  1117.     ac_srcdir=.
  1118.     if test -z "$ac_top_builddir"; then
  1119.        ac_top_srcdir=.
  1120.     else
  1121.        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  1122.     fi ;;
  1123.   [\\/]* | ?:[\\/]* )  # Absolute path.
  1124.     ac_srcdir=$srcdir$ac_dir_suffix;
  1125.     ac_top_srcdir=$srcdir ;;
  1126.   *) # Relative path.
  1127.     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  1128.     ac_top_srcdir=$ac_top_builddir$srcdir ;;
  1129. esac
  1130.  
  1131. # Do not use `cd foo && pwd` to compute absolute paths, because
  1132. # the directories may not exist.
  1133. case `pwd` in
  1134. .) ac_abs_builddir="$ac_dir";;
  1135. *)
  1136.   case "$ac_dir" in
  1137.   .) ac_abs_builddir=`pwd`;;
  1138.   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  1139.   *) ac_abs_builddir=`pwd`/"$ac_dir";;
  1140.   esac;;
  1141. esac
  1142. case $ac_abs_builddir in
  1143. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  1144. *)
  1145.   case ${ac_top_builddir}. in
  1146.   .) ac_abs_top_builddir=$ac_abs_builddir;;
  1147.   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  1148.   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  1149.   esac;;
  1150. esac
  1151. case $ac_abs_builddir in
  1152. .) ac_abs_srcdir=$ac_srcdir;;
  1153. *)
  1154.   case $ac_srcdir in
  1155.   .) ac_abs_srcdir=$ac_abs_builddir;;
  1156.   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  1157.   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  1158.   esac;;
  1159. esac
  1160. case $ac_abs_builddir in
  1161. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  1162. *)
  1163.   case $ac_top_srcdir in
  1164.   .) ac_abs_top_srcdir=$ac_abs_builddir;;
  1165.   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  1166.   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  1167.   esac;;
  1168. esac
  1169.  
  1170.     cd $ac_dir
  1171.     # Check for guested configure; otherwise get Cygnus style configure.
  1172.     if test -f $ac_srcdir/configure.gnu; then
  1173.       echo
  1174.       $SHELL $ac_srcdir/configure.gnu  --help=recursive
  1175.     elif test -f $ac_srcdir/configure; then
  1176.       echo
  1177.       $SHELL $ac_srcdir/configure  --help=recursive
  1178.     elif test -f $ac_srcdir/configure.ac ||
  1179.        test -f $ac_srcdir/configure.in; then
  1180.       echo
  1181.       $ac_configure --help
  1182.     else
  1183.       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1184.     fi
  1185.     cd "$ac_popdir"
  1186.   done
  1187. fi
  1188.  
  1189. test -n "$ac_init_help" && exit 0
  1190. if $ac_init_version; then
  1191.   cat <<\_ACEOF
  1192. gopchop configure 1.1.7
  1193. generated by GNU Autoconf 2.59
  1194.  
  1195. Copyright (C) 2003 Free Software Foundation, Inc.
  1196. This configure script is free software; the Free Software Foundation
  1197. gives unlimited permission to copy, distribute and modify it.
  1198. _ACEOF
  1199.   exit 0
  1200. fi
  1201. exec 5>config.log
  1202. cat >&5 <<_ACEOF
  1203. This file contains any messages produced by compilers while
  1204. running configure, to aid debugging if configure makes a mistake.
  1205.  
  1206. It was created by gopchop $as_me 1.1.7, which was
  1207. generated by GNU Autoconf 2.59.  Invocation command line was
  1208.  
  1209.   $ $0 $@
  1210.  
  1211. _ACEOF
  1212. {
  1213. cat <<_ASUNAME
  1214. ## --------- ##
  1215. ## Platform. ##
  1216. ## --------- ##
  1217.  
  1218. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1219. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1220. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1221. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1222. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1223.  
  1224. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1225. /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  1226.  
  1227. /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  1228. /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  1229. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1230. hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
  1231. /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  1232. /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  1233. /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  1234.  
  1235. _ASUNAME
  1236.  
  1237. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1238. for as_dir in $PATH
  1239. do
  1240.   IFS=$as_save_IFS
  1241.   test -z "$as_dir" && as_dir=.
  1242.   echo "PATH: $as_dir"
  1243. done
  1244.  
  1245. } >&5
  1246.  
  1247. cat >&5 <<_ACEOF
  1248.  
  1249.  
  1250. ## ----------- ##
  1251. ## Core tests. ##
  1252. ## ----------- ##
  1253.  
  1254. _ACEOF
  1255.  
  1256.  
  1257. # Keep a trace of the command line.
  1258. # Strip out --no-create and --no-recursion so they do not pile up.
  1259. # Strip out --silent because we don't want to record it for future runs.
  1260. # Also quote any args containing shell meta-characters.
  1261. # Make two passes to allow for proper duplicate-argument suppression.
  1262. ac_configure_args=
  1263. ac_configure_args0=
  1264. ac_configure_args1=
  1265. ac_sep=
  1266. ac_must_keep_next=false
  1267. for ac_pass in 1 2
  1268. do
  1269.   for ac_arg
  1270.   do
  1271.     case $ac_arg in
  1272.     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1273.     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1274.     | -silent | --silent | --silen | --sile | --sil)
  1275.       continue ;;
  1276.     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1277.       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1278.     esac
  1279.     case $ac_pass in
  1280.     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1281.     2)
  1282.       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1283.       if test $ac_must_keep_next = true; then
  1284.     ac_must_keep_next=false # Got value, back to normal.
  1285.       else
  1286.     case $ac_arg in
  1287.       *=* | --config-cache | -C | -disable-* | --disable-* \
  1288.       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1289.       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1290.       | -with-* | --with-* | -without-* | --without-* | --x)
  1291.         case "$ac_configure_args0 " in
  1292.           "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1293.         esac
  1294.         ;;
  1295.       -* ) ac_must_keep_next=true ;;
  1296.     esac
  1297.       fi
  1298.       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1299.       # Get rid of the leading space.
  1300.       ac_sep=" "
  1301.       ;;
  1302.     esac
  1303.   done
  1304. done
  1305. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1306. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1307.  
  1308. # When interrupted or exit'd, cleanup temporary files, and complete
  1309. # config.log.  We remove comments because anyway the quotes in there
  1310. # would cause problems or look ugly.
  1311. # WARNING: Be sure not to use single quotes in there, as some shells,
  1312. # such as our DU 5.0 friend, will then `close' the trap.
  1313. trap 'exit_status=$?
  1314.   # Save into config.log some information that might help in debugging.
  1315.   {
  1316.     echo
  1317.  
  1318.     cat <<\_ASBOX
  1319. ## ---------------- ##
  1320. ## Cache variables. ##
  1321. ## ---------------- ##
  1322. _ASBOX
  1323.     echo
  1324.     # The following way of writing the cache mishandles newlines in values,
  1325. {
  1326.   (set) 2>&1 |
  1327.     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1328.     *ac_space=\ *)
  1329.       sed -n \
  1330.     "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1331.       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1332.       ;;
  1333.     *)
  1334.       sed -n \
  1335.     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1336.       ;;
  1337.     esac;
  1338. }
  1339.     echo
  1340.  
  1341.     cat <<\_ASBOX
  1342. ## ----------------- ##
  1343. ## Output variables. ##
  1344. ## ----------------- ##
  1345. _ASBOX
  1346.     echo
  1347.     for ac_var in $ac_subst_vars
  1348.     do
  1349.       eval ac_val=$`echo $ac_var`
  1350.       echo "$ac_var='"'"'$ac_val'"'"'"
  1351.     done | sort
  1352.     echo
  1353.  
  1354.     if test -n "$ac_subst_files"; then
  1355.       cat <<\_ASBOX
  1356. ## ------------- ##
  1357. ## Output files. ##
  1358. ## ------------- ##
  1359. _ASBOX
  1360.       echo
  1361.       for ac_var in $ac_subst_files
  1362.       do
  1363.     eval ac_val=$`echo $ac_var`
  1364.     echo "$ac_var='"'"'$ac_val'"'"'"
  1365.       done | sort
  1366.       echo
  1367.     fi
  1368.  
  1369.     if test -s confdefs.h; then
  1370.       cat <<\_ASBOX
  1371. ## ----------- ##
  1372. ## confdefs.h. ##
  1373. ## ----------- ##
  1374. _ASBOX
  1375.       echo
  1376.       sed "/^$/d" confdefs.h | sort
  1377.       echo
  1378.     fi
  1379.     test "$ac_signal" != 0 &&
  1380.       echo "$as_me: caught signal $ac_signal"
  1381.     echo "$as_me: exit $exit_status"
  1382.   } >&5
  1383.   rm -f core *.core &&
  1384.   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1385.     exit $exit_status
  1386.      ' 0
  1387. for ac_signal in 1 2 13 15; do
  1388.   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1389. done
  1390. ac_signal=0
  1391.  
  1392. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1393. rm -rf conftest* confdefs.h
  1394. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1395. echo >confdefs.h
  1396.  
  1397. # Predefined preprocessor variables.
  1398.  
  1399. cat >>confdefs.h <<_ACEOF
  1400. #define PACKAGE_NAME "$PACKAGE_NAME"
  1401. _ACEOF
  1402.  
  1403.  
  1404. cat >>confdefs.h <<_ACEOF
  1405. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1406. _ACEOF
  1407.  
  1408.  
  1409. cat >>confdefs.h <<_ACEOF
  1410. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1411. _ACEOF
  1412.  
  1413.  
  1414. cat >>confdefs.h <<_ACEOF
  1415. #define PACKAGE_STRING "$PACKAGE_STRING"
  1416. _ACEOF
  1417.  
  1418.  
  1419. cat >>confdefs.h <<_ACEOF
  1420. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1421. _ACEOF
  1422.  
  1423.  
  1424. # Let the site file select an alternate cache file if it wants to.
  1425. # Prefer explicitly selected file to automatically selected ones.
  1426. if test -z "$CONFIG_SITE"; then
  1427.   if test "x$prefix" != xNONE; then
  1428.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1429.   else
  1430.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1431.   fi
  1432. fi
  1433. for ac_site_file in $CONFIG_SITE; do
  1434.   if test -r "$ac_site_file"; then
  1435.     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1436. echo "$as_me: loading site script $ac_site_file" >&6;}
  1437.     sed 's/^/| /' "$ac_site_file" >&5
  1438.     . "$ac_site_file"
  1439.   fi
  1440. done
  1441.  
  1442. if test -r "$cache_file"; then
  1443.   # Some versions of bash will fail to source /dev/null (special
  1444.   # files actually), so we avoid doing that.
  1445.   if test -f "$cache_file"; then
  1446.     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1447. echo "$as_me: loading cache $cache_file" >&6;}
  1448.     case $cache_file in
  1449.       [\\/]* | ?:[\\/]* ) . $cache_file;;
  1450.       *)                      . ./$cache_file;;
  1451.     esac
  1452.   fi
  1453. else
  1454.   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1455. echo "$as_me: creating cache $cache_file" >&6;}
  1456.   >$cache_file
  1457. fi
  1458.  
  1459. # Check that the precious variables saved in the cache have kept the same
  1460. # value.
  1461. ac_cache_corrupted=false
  1462. for ac_var in `(set) 2>&1 |
  1463.            sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1464.   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1465.   eval ac_new_set=\$ac_env_${ac_var}_set
  1466.   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1467.   eval ac_new_val="\$ac_env_${ac_var}_value"
  1468.   case $ac_old_set,$ac_new_set in
  1469.     set,)
  1470.       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1471. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1472.       ac_cache_corrupted=: ;;
  1473.     ,set)
  1474.       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1475. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1476.       ac_cache_corrupted=: ;;
  1477.     ,);;
  1478.     *)
  1479.       if test "x$ac_old_val" != "x$ac_new_val"; then
  1480.     { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1481. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1482.     { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
  1483. echo "$as_me:   former value:  $ac_old_val" >&2;}
  1484.     { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
  1485. echo "$as_me:   current value: $ac_new_val" >&2;}
  1486.     ac_cache_corrupted=:
  1487.       fi;;
  1488.   esac
  1489.   # Pass precious variables to config.status.
  1490.   if test "$ac_new_set" = set; then
  1491.     case $ac_new_val in
  1492.     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1493.       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1494.     *) ac_arg=$ac_var=$ac_new_val ;;
  1495.     esac
  1496.     case " $ac_configure_args " in
  1497.       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  1498.       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1499.     esac
  1500.   fi
  1501. done
  1502. if $ac_cache_corrupted; then
  1503.   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1504. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1505.   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1506. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1507.    { (exit 1); exit 1; }; }
  1508. fi
  1509.  
  1510. ac_ext=c
  1511. ac_cpp='$CPP $CPPFLAGS'
  1512. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1513. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1514. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1515.  
  1516.  
  1517.  
  1518.  
  1519.  
  1520.  
  1521.  
  1522.  
  1523.  
  1524.  
  1525.  
  1526.  
  1527.  
  1528.  
  1529.  
  1530.  
  1531.  
  1532.  
  1533.  
  1534.  
  1535.  
  1536.  
  1537.  
  1538.  
  1539.  
  1540.  
  1541.  
  1542.  
  1543. am__api_version="1.8"
  1544. ac_aux_dir=
  1545. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1546.   if test -f $ac_dir/install-sh; then
  1547.     ac_aux_dir=$ac_dir
  1548.     ac_install_sh="$ac_aux_dir/install-sh -c"
  1549.     break
  1550.   elif test -f $ac_dir/install.sh; then
  1551.     ac_aux_dir=$ac_dir
  1552.     ac_install_sh="$ac_aux_dir/install.sh -c"
  1553.     break
  1554.   elif test -f $ac_dir/shtool; then
  1555.     ac_aux_dir=$ac_dir
  1556.     ac_install_sh="$ac_aux_dir/shtool install -c"
  1557.     break
  1558.   fi
  1559. done
  1560. if test -z "$ac_aux_dir"; then
  1561.   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1562. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1563.    { (exit 1); exit 1; }; }
  1564. fi
  1565. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1566. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1567. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1568.  
  1569. # Find a good install program.  We prefer a C program (faster),
  1570. # so one script is as good as another.  But avoid the broken or
  1571. # incompatible versions:
  1572. # SysV /etc/install, /usr/sbin/install
  1573. # SunOS /usr/etc/install
  1574. # IRIX /sbin/install
  1575. # AIX /bin/install
  1576. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1577. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1578. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1579. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1580. # OS/2's system install, which has a completely different semantic
  1581. # ./install, which can be erroneously created by make from ./install.sh.
  1582. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1583. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1584. if test -z "$INSTALL"; then
  1585. if test "${ac_cv_path_install+set}" = set; then
  1586.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1587. else
  1588.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1589. for as_dir in $PATH
  1590. do
  1591.   IFS=$as_save_IFS
  1592.   test -z "$as_dir" && as_dir=.
  1593.   # Account for people who put trailing slashes in PATH elements.
  1594. case $as_dir/ in
  1595.   ./ | .// | /cC/* | \
  1596.   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1597.   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1598.   /usr/ucb/* ) ;;
  1599.   *)
  1600.     # OSF1 and SCO ODT 3.0 have their own names for install.
  1601.     # Don't use installbsd from OSF since it installs stuff as root
  1602.     # by default.
  1603.     for ac_prog in ginstall scoinst install; do
  1604.       for ac_exec_ext in '' $ac_executable_extensions; do
  1605.     if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1606.       if test $ac_prog = install &&
  1607.         grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1608.         # AIX install.  It has an incompatible calling convention.
  1609.         :
  1610.       elif test $ac_prog = install &&
  1611.         grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1612.         # program-specific install script used by HP pwplus--don't use.
  1613.         :
  1614.       else
  1615.         ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1616.         break 3
  1617.       fi
  1618.     fi
  1619.       done
  1620.     done
  1621.     ;;
  1622. esac
  1623. done
  1624.  
  1625.  
  1626. fi
  1627.   if test "${ac_cv_path_install+set}" = set; then
  1628.     INSTALL=$ac_cv_path_install
  1629.   else
  1630.     # As a last resort, use the slow shell script.  We don't cache a
  1631.     # path for INSTALL within a source directory, because that will
  1632.     # break other packages using the cache if that directory is
  1633.     # removed, or if the path is relative.
  1634.     INSTALL=$ac_install_sh
  1635.   fi
  1636. fi
  1637. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1638. echo "${ECHO_T}$INSTALL" >&6
  1639.  
  1640. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1641. # It thinks the first close brace ends the variable substitution.
  1642. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1643.  
  1644. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1645.  
  1646. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1647.  
  1648. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1649. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1650. # Just in case
  1651. sleep 1
  1652. echo timestamp > conftest.file
  1653. # Do `set' in a subshell so we don't clobber the current shell's
  1654. # arguments.  Must try -L first in case configure is actually a
  1655. # symlink; some systems play weird games with the mod time of symlinks
  1656. # (eg FreeBSD returns the mod time of the symlink's containing
  1657. # directory).
  1658. if (
  1659.    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1660.    if test "$*" = "X"; then
  1661.       # -L didn't work.
  1662.       set X `ls -t $srcdir/configure conftest.file`
  1663.    fi
  1664.    rm -f conftest.file
  1665.    if test "$*" != "X $srcdir/configure conftest.file" \
  1666.       && test "$*" != "X conftest.file $srcdir/configure"; then
  1667.  
  1668.       # If neither matched, then we have a broken ls.  This can happen
  1669.       # if, for instance, CONFIG_SHELL is bash and it inherits a
  1670.       # broken ls alias from the environment.  This has actually
  1671.       # happened.  Such a system could not be considered "sane".
  1672.       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
  1673. alias in your environment" >&5
  1674. echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
  1675. alias in your environment" >&2;}
  1676.    { (exit 1); exit 1; }; }
  1677.    fi
  1678.  
  1679.    test "$2" = conftest.file
  1680.    )
  1681. then
  1682.    # Ok.
  1683.    :
  1684. else
  1685.    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1686. Check your system clock" >&5
  1687. echo "$as_me: error: newly created file is older than distributed files!
  1688. Check your system clock" >&2;}
  1689.    { (exit 1); exit 1; }; }
  1690. fi
  1691. echo "$as_me:$LINENO: result: yes" >&5
  1692. echo "${ECHO_T}yes" >&6
  1693. test "$program_prefix" != NONE &&
  1694.   program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1695. # Use a double $ so make ignores it.
  1696. test "$program_suffix" != NONE &&
  1697.   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1698. # Double any \ or $.  echo might interpret backslashes.
  1699. # By default was `s,x,x', remove it if useless.
  1700. cat <<\_ACEOF >conftest.sed
  1701. s/[\\$]/&&/g;s/;s,x,x,$//
  1702. _ACEOF
  1703. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1704. rm conftest.sed
  1705.  
  1706. # expand $ac_aux_dir to an absolute path
  1707. am_aux_dir=`cd $ac_aux_dir && pwd`
  1708.  
  1709. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1710. # Use eval to expand $SHELL
  1711. if eval "$MISSING --run true"; then
  1712.   am_missing_run="$MISSING --run "
  1713. else
  1714.   am_missing_run=
  1715.   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1716. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1717. fi
  1718.  
  1719. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1720.   # Keeping the `.' argument allows $(mkdir_p) to be used without
  1721.   # argument.  Indeed, we sometimes output rules like
  1722.   #   $(mkdir_p) $(somedir)
  1723.   # where $(somedir) is conditionally defined.
  1724.   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
  1725.   # expensive solution, as it forces Make to start a sub-shell.)
  1726.   mkdir_p='mkdir -p -- .'
  1727. else
  1728.   # On NextStep and OpenStep, the `mkdir' command does not
  1729.   # recognize any option.  It will interpret all options as
  1730.   # directories to create, and then abort because `.' already
  1731.   # exists.
  1732.   for d in ./-p ./--version;
  1733.   do
  1734.     test -d $d && rmdir $d
  1735.   done
  1736.   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1737.   if test -f "$ac_aux_dir/mkinstalldirs"; then
  1738.     mkdir_p='$(mkinstalldirs)'
  1739.   else
  1740.     mkdir_p='$(install_sh) -d'
  1741.   fi
  1742. fi
  1743.  
  1744. for ac_prog in gawk mawk nawk awk
  1745. do
  1746.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  1747. set dummy $ac_prog; ac_word=$2
  1748. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1749. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1750. if test "${ac_cv_prog_AWK+set}" = set; then
  1751.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1752. else
  1753.   if test -n "$AWK"; then
  1754.   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1755. else
  1756. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1757. for as_dir in $PATH
  1758. do
  1759.   IFS=$as_save_IFS
  1760.   test -z "$as_dir" && as_dir=.
  1761.   for ac_exec_ext in '' $ac_executable_extensions; do
  1762.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1763.     ac_cv_prog_AWK="$ac_prog"
  1764.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1765.     break 2
  1766.   fi
  1767. done
  1768. done
  1769.  
  1770. fi
  1771. fi
  1772. AWK=$ac_cv_prog_AWK
  1773. if test -n "$AWK"; then
  1774.   echo "$as_me:$LINENO: result: $AWK" >&5
  1775. echo "${ECHO_T}$AWK" >&6
  1776. else
  1777.   echo "$as_me:$LINENO: result: no" >&5
  1778. echo "${ECHO_T}no" >&6
  1779. fi
  1780.  
  1781.   test -n "$AWK" && break
  1782. done
  1783.  
  1784. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1785. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1786. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1787. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1788.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1789. else
  1790.   cat >conftest.make <<\_ACEOF
  1791. all:
  1792.     @echo 'ac_maketemp="$(MAKE)"'
  1793. _ACEOF
  1794. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1795. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1796. if test -n "$ac_maketemp"; then
  1797.   eval ac_cv_prog_make_${ac_make}_set=yes
  1798. else
  1799.   eval ac_cv_prog_make_${ac_make}_set=no
  1800. fi
  1801. rm -f conftest.make
  1802. fi
  1803. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1804.   echo "$as_me:$LINENO: result: yes" >&5
  1805. echo "${ECHO_T}yes" >&6
  1806.   SET_MAKE=
  1807. else
  1808.   echo "$as_me:$LINENO: result: no" >&5
  1809. echo "${ECHO_T}no" >&6
  1810.   SET_MAKE="MAKE=${MAKE-make}"
  1811. fi
  1812.  
  1813. rm -rf .tst 2>/dev/null
  1814. mkdir .tst 2>/dev/null
  1815. if test -d .tst; then
  1816.   am__leading_dot=.
  1817. else
  1818.   am__leading_dot=_
  1819. fi
  1820. rmdir .tst 2>/dev/null
  1821.  
  1822. # test to see if srcdir already configured
  1823. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1824.    test -f $srcdir/config.status; then
  1825.   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1826. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1827.    { (exit 1); exit 1; }; }
  1828. fi
  1829.  
  1830. # test whether we have cygpath
  1831. if test -z "$CYGPATH_W"; then
  1832.   if (cygpath --version) >/dev/null 2>/dev/null; then
  1833.     CYGPATH_W='cygpath -w'
  1834.   else
  1835.     CYGPATH_W=echo
  1836.   fi
  1837. fi
  1838.  
  1839.  
  1840. # Define the identity of the package.
  1841.  PACKAGE='gopchop'
  1842.  VERSION='1.1.7'
  1843.  
  1844.  
  1845. cat >>confdefs.h <<_ACEOF
  1846. #define PACKAGE "$PACKAGE"
  1847. _ACEOF
  1848.  
  1849.  
  1850. cat >>confdefs.h <<_ACEOF
  1851. #define VERSION "$VERSION"
  1852. _ACEOF
  1853.  
  1854. # Some tools Automake needs.
  1855.  
  1856. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1857.  
  1858.  
  1859. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1860.  
  1861.  
  1862. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1863.  
  1864.  
  1865. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1866.  
  1867.  
  1868. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1869.  
  1870.  
  1871. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1872.  
  1873. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1874.  
  1875. # Installed binaries are usually stripped using `strip' when the user
  1876. # run `make install-strip'.  However `strip' might not be the right
  1877. # tool to use in cross-compilation environments, therefore Automake
  1878. # will honor the `STRIP' environment variable to overrule this program.
  1879. if test "$cross_compiling" != no; then
  1880.   if test -n "$ac_tool_prefix"; then
  1881.   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1882. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1883. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1884. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1885. if test "${ac_cv_prog_STRIP+set}" = set; then
  1886.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1887. else
  1888.   if test -n "$STRIP"; then
  1889.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1890. else
  1891. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1892. for as_dir in $PATH
  1893. do
  1894.   IFS=$as_save_IFS
  1895.   test -z "$as_dir" && as_dir=.
  1896.   for ac_exec_ext in '' $ac_executable_extensions; do
  1897.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1898.     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1899.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1900.     break 2
  1901.   fi
  1902. done
  1903. done
  1904.  
  1905. fi
  1906. fi
  1907. STRIP=$ac_cv_prog_STRIP
  1908. if test -n "$STRIP"; then
  1909.   echo "$as_me:$LINENO: result: $STRIP" >&5
  1910. echo "${ECHO_T}$STRIP" >&6
  1911. else
  1912.   echo "$as_me:$LINENO: result: no" >&5
  1913. echo "${ECHO_T}no" >&6
  1914. fi
  1915.  
  1916. fi
  1917. if test -z "$ac_cv_prog_STRIP"; then
  1918.   ac_ct_STRIP=$STRIP
  1919.   # Extract the first word of "strip", so it can be a program name with args.
  1920. set dummy strip; ac_word=$2
  1921. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1922. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1923. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1924.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1925. else
  1926.   if test -n "$ac_ct_STRIP"; then
  1927.   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1928. else
  1929. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1930. for as_dir in $PATH
  1931. do
  1932.   IFS=$as_save_IFS
  1933.   test -z "$as_dir" && as_dir=.
  1934.   for ac_exec_ext in '' $ac_executable_extensions; do
  1935.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1936.     ac_cv_prog_ac_ct_STRIP="strip"
  1937.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1938.     break 2
  1939.   fi
  1940. done
  1941. done
  1942.  
  1943.   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1944. fi
  1945. fi
  1946. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1947. if test -n "$ac_ct_STRIP"; then
  1948.   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1949. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1950. else
  1951.   echo "$as_me:$LINENO: result: no" >&5
  1952. echo "${ECHO_T}no" >&6
  1953. fi
  1954.  
  1955.   STRIP=$ac_ct_STRIP
  1956. else
  1957.   STRIP="$ac_cv_prog_STRIP"
  1958. fi
  1959.  
  1960. fi
  1961. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1962.  
  1963. # We need awk for the "check" target.  The system "awk" is bad on
  1964. # some platforms.
  1965.  
  1966.  
  1967.  
  1968.  
  1969.           ac_config_headers="$ac_config_headers include/config.h"
  1970.  
  1971. echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  1972. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
  1973.     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  1974. if test "${enable_maintainer_mode+set}" = set; then
  1975.   enableval="$enable_maintainer_mode"
  1976.   USE_MAINTAINER_MODE=$enableval
  1977. else
  1978.   USE_MAINTAINER_MODE=no
  1979. fi;
  1980.   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  1981. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
  1982.  
  1983.  
  1984. if test $USE_MAINTAINER_MODE = yes; then
  1985.   MAINTAINER_MODE_TRUE=
  1986.   MAINTAINER_MODE_FALSE='#'
  1987. else
  1988.   MAINTAINER_MODE_TRUE='#'
  1989.   MAINTAINER_MODE_FALSE=
  1990. fi
  1991.  
  1992.   MAINT=$MAINTAINER_MODE_TRUE
  1993.  
  1994.  
  1995.  
  1996.  
  1997.  
  1998. if test -n "0.22"; then
  1999.     echo "$as_me:$LINENO: checking for intltool >= 0.22" >&5
  2000. echo $ECHO_N "checking for intltool >= 0.22... $ECHO_C" >&6
  2001.  
  2002.     INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.22 | awk -F. '{ printf "%d", $1 * 100 + $2; }'`
  2003.     INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }'  < ${ac_aux_dir}/intltool-update.in`
  2004.  
  2005.     INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < ${ac_aux_dir}/intltool-update.in`
  2006.  
  2007.  
  2008.     if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then
  2009.     echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
  2010. echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6
  2011.     else
  2012.     echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old.  You need intltool 0.22 or later." >&5
  2013. echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found. Your intltool is too old.  You need intltool 0.22 or later." >&6
  2014.     exit 1
  2015.     fi
  2016. fi
  2017.  
  2018.   INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  2019. INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  2020.      INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  2021.      INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  2022.       INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
  2023.      INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  2024.    INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  2025.     INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  2026. INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  2027.        INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  2028.       INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  2029.       INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
  2030.       INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  2031.       INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  2032.     INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  2033.   INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  2034.     INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  2035.  
  2036.  
  2037.  
  2038.  
  2039.  
  2040.  
  2041.  
  2042.  
  2043.  
  2044.  
  2045.  
  2046.  
  2047.  
  2048.  
  2049.  
  2050.  
  2051.  
  2052.  
  2053.  
  2054. # Use the tools built into the package, not the ones that are installed.
  2055.  
  2056. INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
  2057. INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
  2058. INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
  2059.  
  2060.  
  2061.  
  2062.  
  2063.  
  2064. # Extract the first word of "perl", so it can be a program name with args.
  2065. set dummy perl; ac_word=$2
  2066. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2067. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2068. if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
  2069.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2070. else
  2071.   case $INTLTOOL_PERL in
  2072.   [\\/]* | ?:[\\/]*)
  2073.   ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
  2074.   ;;
  2075.   *)
  2076.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2077. for as_dir in $PATH
  2078. do
  2079.   IFS=$as_save_IFS
  2080.   test -z "$as_dir" && as_dir=.
  2081.   for ac_exec_ext in '' $ac_executable_extensions; do
  2082.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2083.     ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
  2084.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2085.     break 2
  2086.   fi
  2087. done
  2088. done
  2089.  
  2090.   ;;
  2091. esac
  2092. fi
  2093. INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
  2094.  
  2095. if test -n "$INTLTOOL_PERL"; then
  2096.   echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
  2097. echo "${ECHO_T}$INTLTOOL_PERL" >&6
  2098. else
  2099.   echo "$as_me:$LINENO: result: no" >&5
  2100. echo "${ECHO_T}no" >&6
  2101. fi
  2102.  
  2103. if test -z "$INTLTOOL_PERL"; then
  2104.    { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
  2105. echo "$as_me: error: perl not found; required for intltool" >&2;}
  2106.    { (exit 1); exit 1; }; }
  2107. fi
  2108. if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
  2109.    { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
  2110. echo "$as_me: error: perl 5.x required for intltool" >&2;}
  2111.    { (exit 1); exit 1; }; }
  2112. fi
  2113. if test "x" != "xno-xml"; then
  2114.    echo "$as_me:$LINENO: checking for XML::Parser" >&5
  2115. echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6
  2116.    if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
  2117.        echo "$as_me:$LINENO: result: ok" >&5
  2118. echo "${ECHO_T}ok" >&6
  2119.    else
  2120.        { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
  2121. echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
  2122.    { (exit 1); exit 1; }; }
  2123.    fi
  2124. fi
  2125.  
  2126. # Extract the first word of "iconv", so it can be a program name with args.
  2127. set dummy iconv; ac_word=$2
  2128. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2129. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2130. if test "${ac_cv_path_INTLTOOL_ICONV+set}" = set; then
  2131.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2132. else
  2133.   case $INTLTOOL_ICONV in
  2134.   [\\/]* | ?:[\\/]*)
  2135.   ac_cv_path_INTLTOOL_ICONV="$INTLTOOL_ICONV" # Let the user override the test with a path.
  2136.   ;;
  2137.   *)
  2138.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2139. for as_dir in $PATH
  2140. do
  2141.   IFS=$as_save_IFS
  2142.   test -z "$as_dir" && as_dir=.
  2143.   for ac_exec_ext in '' $ac_executable_extensions; do
  2144.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2145.     ac_cv_path_INTLTOOL_ICONV="$as_dir/$ac_word$ac_exec_ext"
  2146.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2147.     break 2
  2148.   fi
  2149. done
  2150. done
  2151.  
  2152.   test -z "$ac_cv_path_INTLTOOL_ICONV" && ac_cv_path_INTLTOOL_ICONV="iconv"
  2153.   ;;
  2154. esac
  2155. fi
  2156. INTLTOOL_ICONV=$ac_cv_path_INTLTOOL_ICONV
  2157.  
  2158. if test -n "$INTLTOOL_ICONV"; then
  2159.   echo "$as_me:$LINENO: result: $INTLTOOL_ICONV" >&5
  2160. echo "${ECHO_T}$INTLTOOL_ICONV" >&6
  2161. else
  2162.   echo "$as_me:$LINENO: result: no" >&5
  2163. echo "${ECHO_T}no" >&6
  2164. fi
  2165.  
  2166. # Extract the first word of "msgfmt", so it can be a program name with args.
  2167. set dummy msgfmt; ac_word=$2
  2168. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2169. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2170. if test "${ac_cv_path_INTLTOOL_MSGFMT+set}" = set; then
  2171.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2172. else
  2173.   case $INTLTOOL_MSGFMT in
  2174.   [\\/]* | ?:[\\/]*)
  2175.   ac_cv_path_INTLTOOL_MSGFMT="$INTLTOOL_MSGFMT" # Let the user override the test with a path.
  2176.   ;;
  2177.   *)
  2178.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2179. for as_dir in $PATH
  2180. do
  2181.   IFS=$as_save_IFS
  2182.   test -z "$as_dir" && as_dir=.
  2183.   for ac_exec_ext in '' $ac_executable_extensions; do
  2184.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2185.     ac_cv_path_INTLTOOL_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
  2186.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2187.     break 2
  2188.   fi
  2189. done
  2190. done
  2191.  
  2192.   test -z "$ac_cv_path_INTLTOOL_MSGFMT" && ac_cv_path_INTLTOOL_MSGFMT="msgfmt"
  2193.   ;;
  2194. esac
  2195. fi
  2196. INTLTOOL_MSGFMT=$ac_cv_path_INTLTOOL_MSGFMT
  2197.  
  2198. if test -n "$INTLTOOL_MSGFMT"; then
  2199.   echo "$as_me:$LINENO: result: $INTLTOOL_MSGFMT" >&5
  2200. echo "${ECHO_T}$INTLTOOL_MSGFMT" >&6
  2201. else
  2202.   echo "$as_me:$LINENO: result: no" >&5
  2203. echo "${ECHO_T}no" >&6
  2204. fi
  2205.  
  2206. # Extract the first word of "msgmerge", so it can be a program name with args.
  2207. set dummy msgmerge; ac_word=$2
  2208. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2209. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2210. if test "${ac_cv_path_INTLTOOL_MSGMERGE+set}" = set; then
  2211.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2212. else
  2213.   case $INTLTOOL_MSGMERGE in
  2214.   [\\/]* | ?:[\\/]*)
  2215.   ac_cv_path_INTLTOOL_MSGMERGE="$INTLTOOL_MSGMERGE" # Let the user override the test with a path.
  2216.   ;;
  2217.   *)
  2218.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2219. for as_dir in $PATH
  2220. do
  2221.   IFS=$as_save_IFS
  2222.   test -z "$as_dir" && as_dir=.
  2223.   for ac_exec_ext in '' $ac_executable_extensions; do
  2224.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2225.     ac_cv_path_INTLTOOL_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
  2226.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2227.     break 2
  2228.   fi
  2229. done
  2230. done
  2231.  
  2232.   test -z "$ac_cv_path_INTLTOOL_MSGMERGE" && ac_cv_path_INTLTOOL_MSGMERGE="msgmerge"
  2233.   ;;
  2234. esac
  2235. fi
  2236. INTLTOOL_MSGMERGE=$ac_cv_path_INTLTOOL_MSGMERGE
  2237.  
  2238. if test -n "$INTLTOOL_MSGMERGE"; then
  2239.   echo "$as_me:$LINENO: result: $INTLTOOL_MSGMERGE" >&5
  2240. echo "${ECHO_T}$INTLTOOL_MSGMERGE" >&6
  2241. else
  2242.   echo "$as_me:$LINENO: result: no" >&5
  2243. echo "${ECHO_T}no" >&6
  2244. fi
  2245.  
  2246. # Extract the first word of "xgettext", so it can be a program name with args.
  2247. set dummy xgettext; ac_word=$2
  2248. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2249. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2250. if test "${ac_cv_path_INTLTOOL_XGETTEXT+set}" = set; then
  2251.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2252. else
  2253.   case $INTLTOOL_XGETTEXT in
  2254.   [\\/]* | ?:[\\/]*)
  2255.   ac_cv_path_INTLTOOL_XGETTEXT="$INTLTOOL_XGETTEXT" # Let the user override the test with a path.
  2256.   ;;
  2257.   *)
  2258.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2259. for as_dir in $PATH
  2260. do
  2261.   IFS=$as_save_IFS
  2262.   test -z "$as_dir" && as_dir=.
  2263.   for ac_exec_ext in '' $ac_executable_extensions; do
  2264.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2265.     ac_cv_path_INTLTOOL_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
  2266.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2267.     break 2
  2268.   fi
  2269. done
  2270. done
  2271.  
  2272.   test -z "$ac_cv_path_INTLTOOL_XGETTEXT" && ac_cv_path_INTLTOOL_XGETTEXT="xgettext"
  2273.   ;;
  2274. esac
  2275. fi
  2276. INTLTOOL_XGETTEXT=$ac_cv_path_INTLTOOL_XGETTEXT
  2277.  
  2278. if test -n "$INTLTOOL_XGETTEXT"; then
  2279.   echo "$as_me:$LINENO: result: $INTLTOOL_XGETTEXT" >&5
  2280. echo "${ECHO_T}$INTLTOOL_XGETTEXT" >&6
  2281. else
  2282.   echo "$as_me:$LINENO: result: no" >&5
  2283. echo "${ECHO_T}no" >&6
  2284. fi
  2285.  
  2286.  
  2287. # Remove file type tags (using []) from po/POTFILES.
  2288.  
  2289.  
  2290.  
  2291.  
  2292.  
  2293.  
  2294. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  2295.   # Keeping the `.' argument allows $(mkdir_p) to be used without
  2296.   # argument.  Indeed, we sometimes output rules like
  2297.   #   $(mkdir_p) $(somedir)
  2298.   # where $(somedir) is conditionally defined.
  2299.   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
  2300.   # expensive solution, as it forces Make to start a sub-shell.)
  2301.   mkdir_p='mkdir -p -- .'
  2302. else
  2303.   # On NextStep and OpenStep, the `mkdir' command does not
  2304.   # recognize any option.  It will interpret all options as
  2305.   # directories to create, and then abort because `.' already
  2306.   # exists.
  2307.   for d in ./-p ./--version;
  2308.   do
  2309.     test -d $d && rmdir $d
  2310.   done
  2311.   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  2312.   if test -f "$ac_aux_dir/mkinstalldirs"; then
  2313.     mkdir_p='$(mkinstalldirs)'
  2314.   else
  2315.     mkdir_p='$(install_sh) -d'
  2316.   fi
  2317. fi
  2318.  
  2319.  
  2320.  
  2321. # Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
  2322.  
  2323.           ac_config_commands="$ac_config_commands intltool"
  2324.  
  2325.  
  2326.  
  2327.  
  2328. # Make sure we can run config.sub.
  2329. $ac_config_sub sun4 >/dev/null 2>&1 ||
  2330.   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  2331. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  2332.    { (exit 1); exit 1; }; }
  2333.  
  2334. echo "$as_me:$LINENO: checking build system type" >&5
  2335. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  2336. if test "${ac_cv_build+set}" = set; then
  2337.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2338. else
  2339.   ac_cv_build_alias=$build_alias
  2340. test -z "$ac_cv_build_alias" &&
  2341.   ac_cv_build_alias=`$ac_config_guess`
  2342. test -z "$ac_cv_build_alias" &&
  2343.   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  2344. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  2345.    { (exit 1); exit 1; }; }
  2346. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  2347.   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  2348. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  2349.    { (exit 1); exit 1; }; }
  2350.  
  2351. fi
  2352. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  2353. echo "${ECHO_T}$ac_cv_build" >&6
  2354. build=$ac_cv_build
  2355. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  2356. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  2357. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  2358.  
  2359.  
  2360. echo "$as_me:$LINENO: checking host system type" >&5
  2361. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  2362. if test "${ac_cv_host+set}" = set; then
  2363.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2364. else
  2365.   ac_cv_host_alias=$host_alias
  2366. test -z "$ac_cv_host_alias" &&
  2367.   ac_cv_host_alias=$ac_cv_build_alias
  2368. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  2369.   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  2370. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  2371.    { (exit 1); exit 1; }; }
  2372.  
  2373. fi
  2374. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  2375. echo "${ECHO_T}$ac_cv_host" >&6
  2376. host=$ac_cv_host
  2377. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  2378. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  2379. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  2380.  
  2381.  
  2382. ac_ext=cc
  2383. ac_cpp='$CXXCPP $CPPFLAGS'
  2384. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2385. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2386. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2387.  
  2388. DEPDIR="${am__leading_dot}deps"
  2389.  
  2390.           ac_config_commands="$ac_config_commands depfiles"
  2391.  
  2392.  
  2393. am_make=${MAKE-make}
  2394. cat > confinc << 'END'
  2395. am__doit:
  2396.     @echo done
  2397. .PHONY: am__doit
  2398. END
  2399. # If we don't find an include directive, just comment out the code.
  2400. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2401. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2402. am__include="#"
  2403. am__quote=
  2404. _am_result=none
  2405. # First try GNU make style include.
  2406. echo "include confinc" > confmf
  2407. # We grep out `Entering directory' and `Leaving directory'
  2408. # messages which can occur if `w' ends up in MAKEFLAGS.
  2409. # In particular we don't look at `^make:' because GNU make might
  2410. # be invoked under some other name (usually "gmake"), in which
  2411. # case it prints its new name instead of `make'.
  2412. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2413.    am__include=include
  2414.    am__quote=
  2415.    _am_result=GNU
  2416. fi
  2417. # Now try BSD make style include.
  2418. if test "$am__include" = "#"; then
  2419.    echo '.include "confinc"' > confmf
  2420.    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2421.       am__include=.include
  2422.       am__quote="\""
  2423.       _am_result=BSD
  2424.    fi
  2425. fi
  2426.  
  2427.  
  2428. echo "$as_me:$LINENO: result: $_am_result" >&5
  2429. echo "${ECHO_T}$_am_result" >&6
  2430. rm -f confinc confmf
  2431.  
  2432. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2433. if test "${enable_dependency_tracking+set}" = set; then
  2434.   enableval="$enable_dependency_tracking"
  2435.  
  2436. fi;
  2437. if test "x$enable_dependency_tracking" != xno; then
  2438.   am_depcomp="$ac_aux_dir/depcomp"
  2439.   AMDEPBACKSLASH='\'
  2440. fi
  2441.  
  2442.  
  2443. if test "x$enable_dependency_tracking" != xno; then
  2444.   AMDEP_TRUE=
  2445.   AMDEP_FALSE='#'
  2446. else
  2447.   AMDEP_TRUE='#'
  2448.   AMDEP_FALSE=
  2449. fi
  2450.  
  2451.  
  2452.  
  2453. ac_ext=cc
  2454. ac_cpp='$CXXCPP $CPPFLAGS'
  2455. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2456. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2457. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2458. if test -n "$ac_tool_prefix"; then
  2459.   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  2460.   do
  2461.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2462. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2463. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2464. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2465. if test "${ac_cv_prog_CXX+set}" = set; then
  2466.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2467. else
  2468.   if test -n "$CXX"; then
  2469.   ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2470. else
  2471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2472. for as_dir in $PATH
  2473. do
  2474.   IFS=$as_save_IFS
  2475.   test -z "$as_dir" && as_dir=.
  2476.   for ac_exec_ext in '' $ac_executable_extensions; do
  2477.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2478.     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2479.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2480.     break 2
  2481.   fi
  2482. done
  2483. done
  2484.  
  2485. fi
  2486. fi
  2487. CXX=$ac_cv_prog_CXX
  2488. if test -n "$CXX"; then
  2489.   echo "$as_me:$LINENO: result: $CXX" >&5
  2490. echo "${ECHO_T}$CXX" >&6
  2491. else
  2492.   echo "$as_me:$LINENO: result: no" >&5
  2493. echo "${ECHO_T}no" >&6
  2494. fi
  2495.  
  2496.     test -n "$CXX" && break
  2497.   done
  2498. fi
  2499. if test -z "$CXX"; then
  2500.   ac_ct_CXX=$CXX
  2501.   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  2502. do
  2503.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2504. set dummy $ac_prog; ac_word=$2
  2505. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2506. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2507. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2508.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2509. else
  2510.   if test -n "$ac_ct_CXX"; then
  2511.   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2512. else
  2513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2514. for as_dir in $PATH
  2515. do
  2516.   IFS=$as_save_IFS
  2517.   test -z "$as_dir" && as_dir=.
  2518.   for ac_exec_ext in '' $ac_executable_extensions; do
  2519.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2520.     ac_cv_prog_ac_ct_CXX="$ac_prog"
  2521.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2522.     break 2
  2523.   fi
  2524. done
  2525. done
  2526.  
  2527. fi
  2528. fi
  2529. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2530. if test -n "$ac_ct_CXX"; then
  2531.   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2532. echo "${ECHO_T}$ac_ct_CXX" >&6
  2533. else
  2534.   echo "$as_me:$LINENO: result: no" >&5
  2535. echo "${ECHO_T}no" >&6
  2536. fi
  2537.  
  2538.   test -n "$ac_ct_CXX" && break
  2539. done
  2540. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  2541.  
  2542.   CXX=$ac_ct_CXX
  2543. fi
  2544.  
  2545.  
  2546. # Provide some information about the compiler.
  2547. echo "$as_me:$LINENO:" \
  2548.      "checking for C++ compiler version" >&5
  2549. ac_compiler=`set X $ac_compile; echo $2`
  2550. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2551.   (eval $ac_compiler --version </dev/null >&5) 2>&5
  2552.   ac_status=$?
  2553.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2554.   (exit $ac_status); }
  2555. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2556.   (eval $ac_compiler -v </dev/null >&5) 2>&5
  2557.   ac_status=$?
  2558.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2559.   (exit $ac_status); }
  2560. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2561.   (eval $ac_compiler -V </dev/null >&5) 2>&5
  2562.   ac_status=$?
  2563.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2564.   (exit $ac_status); }
  2565.  
  2566. cat >conftest.$ac_ext <<_ACEOF
  2567. /* confdefs.h.  */
  2568. _ACEOF
  2569. cat confdefs.h >>conftest.$ac_ext
  2570. cat >>conftest.$ac_ext <<_ACEOF
  2571. /* end confdefs.h.  */
  2572.  
  2573. int
  2574. main ()
  2575. {
  2576.  
  2577.   ;
  2578.   return 0;
  2579. }
  2580. _ACEOF
  2581. ac_clean_files_save=$ac_clean_files
  2582. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2583. # Try to create an executable without -o first, disregard a.out.
  2584. # It will help us diagnose broken compilers, and finding out an intuition
  2585. # of exeext.
  2586. echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2587. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
  2588. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2589. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  2590.   (eval $ac_link_default) 2>&5
  2591.   ac_status=$?
  2592.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2593.   (exit $ac_status); }; then
  2594.   # Find the output, starting from the most likely.  This scheme is
  2595. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  2596. # resort.
  2597.  
  2598. # Be careful to initialize this variable, since it used to be cached.
  2599. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  2600. ac_cv_exeext=
  2601. # b.out is created by i960 compilers.
  2602. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  2603. do
  2604.   test -f "$ac_file" || continue
  2605.   case $ac_file in
  2606.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  2607.     ;;
  2608.     conftest.$ac_ext )
  2609.     # This is the source file.
  2610.     ;;
  2611.     [ab].out )
  2612.     # We found the default executable, but exeext='' is most
  2613.     # certainly right.
  2614.     break;;
  2615.     *.* )
  2616.     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2617.     # FIXME: I believe we export ac_cv_exeext for Libtool,
  2618.     # but it would be cool to find out if it's true.  Does anybody
  2619.     # maintain Libtool? --akim.
  2620.     export ac_cv_exeext
  2621.     break;;
  2622.     * )
  2623.     break;;
  2624.   esac
  2625. done
  2626. else
  2627.   echo "$as_me: failed program was:" >&5
  2628. sed 's/^/| /' conftest.$ac_ext >&5
  2629.  
  2630. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2631. See \`config.log' for more details." >&5
  2632. echo "$as_me: error: C++ compiler cannot create executables
  2633. See \`config.log' for more details." >&2;}
  2634.    { (exit 77); exit 77; }; }
  2635. fi
  2636.  
  2637. ac_exeext=$ac_cv_exeext
  2638. echo "$as_me:$LINENO: result: $ac_file" >&5
  2639. echo "${ECHO_T}$ac_file" >&6
  2640.  
  2641. # Check the compiler produces executables we can run.  If not, either
  2642. # the compiler is broken, or we cross compile.
  2643. echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2644. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
  2645. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2646. # If not cross compiling, check that we can run a simple program.
  2647. if test "$cross_compiling" != yes; then
  2648.   if { ac_try='./$ac_file'
  2649.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2650.   (eval $ac_try) 2>&5
  2651.   ac_status=$?
  2652.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2653.   (exit $ac_status); }; }; then
  2654.     cross_compiling=no
  2655.   else
  2656.     if test "$cross_compiling" = maybe; then
  2657.     cross_compiling=yes
  2658.     else
  2659.     { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2660. If you meant to cross compile, use \`--host'.
  2661. See \`config.log' for more details." >&5
  2662. echo "$as_me: error: cannot run C++ compiled programs.
  2663. If you meant to cross compile, use \`--host'.
  2664. See \`config.log' for more details." >&2;}
  2665.    { (exit 1); exit 1; }; }
  2666.     fi
  2667.   fi
  2668. fi
  2669. echo "$as_me:$LINENO: result: yes" >&5
  2670. echo "${ECHO_T}yes" >&6
  2671.  
  2672. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2673. ac_clean_files=$ac_clean_files_save
  2674. # Check the compiler produces executables we can run.  If not, either
  2675. # the compiler is broken, or we cross compile.
  2676. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2677. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2678. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2679. echo "${ECHO_T}$cross_compiling" >&6
  2680.  
  2681. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2682. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2683. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2684.   (eval $ac_link) 2>&5
  2685.   ac_status=$?
  2686.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2687.   (exit $ac_status); }; then
  2688.   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2689. # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  2690. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2691. # `rm'.
  2692. for ac_file in conftest.exe conftest conftest.*; do
  2693.   test -f "$ac_file" || continue
  2694.   case $ac_file in
  2695.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2696.     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2697.       export ac_cv_exeext
  2698.       break;;
  2699.     * ) break;;
  2700.   esac
  2701. done
  2702. else
  2703.   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2704. See \`config.log' for more details." >&5
  2705. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2706. See \`config.log' for more details." >&2;}
  2707.    { (exit 1); exit 1; }; }
  2708. fi
  2709.  
  2710. rm -f conftest$ac_cv_exeext
  2711. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2712. echo "${ECHO_T}$ac_cv_exeext" >&6
  2713.  
  2714. rm -f conftest.$ac_ext
  2715. EXEEXT=$ac_cv_exeext
  2716. ac_exeext=$EXEEXT
  2717. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2718. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2719. if test "${ac_cv_objext+set}" = set; then
  2720.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2721. else
  2722.   cat >conftest.$ac_ext <<_ACEOF
  2723. /* confdefs.h.  */
  2724. _ACEOF
  2725. cat confdefs.h >>conftest.$ac_ext
  2726. cat >>conftest.$ac_ext <<_ACEOF
  2727. /* end confdefs.h.  */
  2728.  
  2729. int
  2730. main ()
  2731. {
  2732.  
  2733.   ;
  2734.   return 0;
  2735. }
  2736. _ACEOF
  2737. rm -f conftest.o conftest.obj
  2738. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2739.   (eval $ac_compile) 2>&5
  2740.   ac_status=$?
  2741.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2742.   (exit $ac_status); }; then
  2743.   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2744.   case $ac_file in
  2745.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2746.     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2747.        break;;
  2748.   esac
  2749. done
  2750. else
  2751.   echo "$as_me: failed program was:" >&5
  2752. sed 's/^/| /' conftest.$ac_ext >&5
  2753.  
  2754. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2755. See \`config.log' for more details." >&5
  2756. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2757. See \`config.log' for more details." >&2;}
  2758.    { (exit 1); exit 1; }; }
  2759. fi
  2760.  
  2761. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2762. fi
  2763. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2764. echo "${ECHO_T}$ac_cv_objext" >&6
  2765. OBJEXT=$ac_cv_objext
  2766. ac_objext=$OBJEXT
  2767. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2768. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  2769. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2770.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2771. else
  2772.   cat >conftest.$ac_ext <<_ACEOF
  2773. /* confdefs.h.  */
  2774. _ACEOF
  2775. cat confdefs.h >>conftest.$ac_ext
  2776. cat >>conftest.$ac_ext <<_ACEOF
  2777. /* end confdefs.h.  */
  2778.  
  2779. int
  2780. main ()
  2781. {
  2782. #ifndef __GNUC__
  2783.        choke me
  2784. #endif
  2785.  
  2786.   ;
  2787.   return 0;
  2788. }
  2789. _ACEOF
  2790. rm -f conftest.$ac_objext
  2791. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2792.   (eval $ac_compile) 2>conftest.er1
  2793.   ac_status=$?
  2794.   grep -v '^ *+' conftest.er1 >conftest.err
  2795.   rm -f conftest.er1
  2796.   cat conftest.err >&5
  2797.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2798.   (exit $ac_status); } &&
  2799.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  2800.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2801.   (eval $ac_try) 2>&5
  2802.   ac_status=$?
  2803.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2804.   (exit $ac_status); }; } &&
  2805.      { ac_try='test -s conftest.$ac_objext'
  2806.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2807.   (eval $ac_try) 2>&5
  2808.   ac_status=$?
  2809.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2810.   (exit $ac_status); }; }; then
  2811.   ac_compiler_gnu=yes
  2812. else
  2813.   echo "$as_me: failed program was:" >&5
  2814. sed 's/^/| /' conftest.$ac_ext >&5
  2815.  
  2816. ac_compiler_gnu=no
  2817. fi
  2818. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2819. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2820.  
  2821. fi
  2822. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2823. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  2824. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2825. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2826. ac_save_CXXFLAGS=$CXXFLAGS
  2827. CXXFLAGS="-g"
  2828. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2829. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  2830. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2831.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2832. else
  2833.   cat >conftest.$ac_ext <<_ACEOF
  2834. /* confdefs.h.  */
  2835. _ACEOF
  2836. cat confdefs.h >>conftest.$ac_ext
  2837. cat >>conftest.$ac_ext <<_ACEOF
  2838. /* end confdefs.h.  */
  2839.  
  2840. int
  2841. main ()
  2842. {
  2843.  
  2844.   ;
  2845.   return 0;
  2846. }
  2847. _ACEOF
  2848. rm -f conftest.$ac_objext
  2849. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2850.   (eval $ac_compile) 2>conftest.er1
  2851.   ac_status=$?
  2852.   grep -v '^ *+' conftest.er1 >conftest.err
  2853.   rm -f conftest.er1
  2854.   cat conftest.err >&5
  2855.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2856.   (exit $ac_status); } &&
  2857.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  2858.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2859.   (eval $ac_try) 2>&5
  2860.   ac_status=$?
  2861.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2862.   (exit $ac_status); }; } &&
  2863.      { ac_try='test -s conftest.$ac_objext'
  2864.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2865.   (eval $ac_try) 2>&5
  2866.   ac_status=$?
  2867.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2868.   (exit $ac_status); }; }; then
  2869.   ac_cv_prog_cxx_g=yes
  2870. else
  2871.   echo "$as_me: failed program was:" >&5
  2872. sed 's/^/| /' conftest.$ac_ext >&5
  2873.  
  2874. ac_cv_prog_cxx_g=no
  2875. fi
  2876. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2877. fi
  2878. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2879. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  2880. if test "$ac_test_CXXFLAGS" = set; then
  2881.   CXXFLAGS=$ac_save_CXXFLAGS
  2882. elif test $ac_cv_prog_cxx_g = yes; then
  2883.   if test "$GXX" = yes; then
  2884.     CXXFLAGS="-g -O2"
  2885.   else
  2886.     CXXFLAGS="-g"
  2887.   fi
  2888. else
  2889.   if test "$GXX" = yes; then
  2890.     CXXFLAGS="-O2"
  2891.   else
  2892.     CXXFLAGS=
  2893.   fi
  2894. fi
  2895. for ac_declaration in \
  2896.    '' \
  2897.    'extern "C" void std::exit (int) throw (); using std::exit;' \
  2898.    'extern "C" void std::exit (int); using std::exit;' \
  2899.    'extern "C" void exit (int) throw ();' \
  2900.    'extern "C" void exit (int);' \
  2901.    'void exit (int);'
  2902. do
  2903.   cat >conftest.$ac_ext <<_ACEOF
  2904. /* confdefs.h.  */
  2905. _ACEOF
  2906. cat confdefs.h >>conftest.$ac_ext
  2907. cat >>conftest.$ac_ext <<_ACEOF
  2908. /* end confdefs.h.  */
  2909. $ac_declaration
  2910. #include <stdlib.h>
  2911. int
  2912. main ()
  2913. {
  2914. exit (42);
  2915.   ;
  2916.   return 0;
  2917. }
  2918. _ACEOF
  2919. rm -f conftest.$ac_objext
  2920. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2921.   (eval $ac_compile) 2>conftest.er1
  2922.   ac_status=$?
  2923.   grep -v '^ *+' conftest.er1 >conftest.err
  2924.   rm -f conftest.er1
  2925.   cat conftest.err >&5
  2926.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2927.   (exit $ac_status); } &&
  2928.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  2929.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2930.   (eval $ac_try) 2>&5
  2931.   ac_status=$?
  2932.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2933.   (exit $ac_status); }; } &&
  2934.      { ac_try='test -s conftest.$ac_objext'
  2935.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2936.   (eval $ac_try) 2>&5
  2937.   ac_status=$?
  2938.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2939.   (exit $ac_status); }; }; then
  2940.   :
  2941. else
  2942.   echo "$as_me: failed program was:" >&5
  2943. sed 's/^/| /' conftest.$ac_ext >&5
  2944.  
  2945. continue
  2946. fi
  2947. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2948.   cat >conftest.$ac_ext <<_ACEOF
  2949. /* confdefs.h.  */
  2950. _ACEOF
  2951. cat confdefs.h >>conftest.$ac_ext
  2952. cat >>conftest.$ac_ext <<_ACEOF
  2953. /* end confdefs.h.  */
  2954. $ac_declaration
  2955. int
  2956. main ()
  2957. {
  2958. exit (42);
  2959.   ;
  2960.   return 0;
  2961. }
  2962. _ACEOF
  2963. rm -f conftest.$ac_objext
  2964. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2965.   (eval $ac_compile) 2>conftest.er1
  2966.   ac_status=$?
  2967.   grep -v '^ *+' conftest.er1 >conftest.err
  2968.   rm -f conftest.er1
  2969.   cat conftest.err >&5
  2970.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2971.   (exit $ac_status); } &&
  2972.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  2973.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2974.   (eval $ac_try) 2>&5
  2975.   ac_status=$?
  2976.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2977.   (exit $ac_status); }; } &&
  2978.      { ac_try='test -s conftest.$ac_objext'
  2979.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2980.   (eval $ac_try) 2>&5
  2981.   ac_status=$?
  2982.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2983.   (exit $ac_status); }; }; then
  2984.   break
  2985. else
  2986.   echo "$as_me: failed program was:" >&5
  2987. sed 's/^/| /' conftest.$ac_ext >&5
  2988.  
  2989. fi
  2990. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2991. done
  2992. rm -f conftest*
  2993. if test -n "$ac_declaration"; then
  2994.   echo '#ifdef __cplusplus' >>confdefs.h
  2995.   echo $ac_declaration      >>confdefs.h
  2996.   echo '#endif'             >>confdefs.h
  2997. fi
  2998.  
  2999. ac_ext=cc
  3000. ac_cpp='$CXXCPP $CPPFLAGS'
  3001. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3002. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3003. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3004.  
  3005. depcc="$CXX"  am_compiler_list=
  3006.  
  3007. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3008. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  3009. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  3010.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3011. else
  3012.   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3013.   # We make a subdir and do the tests there.  Otherwise we can end up
  3014.   # making bogus files that we don't know about and never remove.  For
  3015.   # instance it was reported that on HP-UX the gcc test will end up
  3016.   # making a dummy file named `D' -- because `-MD' means `put the output
  3017.   # in D'.
  3018.   mkdir conftest.dir
  3019.   # Copy depcomp to subdir because otherwise we won't find it if we're
  3020.   # using a relative directory.
  3021.   cp "$am_depcomp" conftest.dir
  3022.   cd conftest.dir
  3023.   # We will build objects and dependencies in a subdirectory because
  3024.   # it helps to detect inapplicable dependency modes.  For instance
  3025.   # both Tru64's cc and ICC support -MD to output dependencies as a
  3026.   # side effect of compilation, but ICC will put the dependencies in
  3027.   # the current directory while Tru64 will put them in the object
  3028.   # directory.
  3029.   mkdir sub
  3030.  
  3031.   am_cv_CXX_dependencies_compiler_type=none
  3032.   if test "$am_compiler_list" = ""; then
  3033.      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3034.   fi
  3035.   for depmode in $am_compiler_list; do
  3036.     # Setup a source with many dependencies, because some compilers
  3037.     # like to wrap large dependency lists on column 80 (with \), and
  3038.     # we should not choose a depcomp mode which is confused by this.
  3039.     #
  3040.     # We need to recreate these files for each test, as the compiler may
  3041.     # overwrite some of them when testing with obscure command lines.
  3042.     # This happens at least with the AIX C compiler.
  3043.     : > sub/conftest.c
  3044.     for i in 1 2 3 4 5 6; do
  3045.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3046.       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3047.       # Solaris 8's {/usr,}/bin/sh.
  3048.       touch sub/conftst$i.h
  3049.     done
  3050.     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3051.  
  3052.     case $depmode in
  3053.     nosideeffect)
  3054.       # after this tag, mechanisms are not by side-effect, so they'll
  3055.       # only be used when explicitly requested
  3056.       if test "x$enable_dependency_tracking" = xyes; then
  3057.     continue
  3058.       else
  3059.     break
  3060.       fi
  3061.       ;;
  3062.     none) break ;;
  3063.     esac
  3064.     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3065.     # mode.  It turns out that the SunPro C++ compiler does not properly
  3066.     # handle `-M -o', and we need to detect this.
  3067.     if depmode=$depmode \
  3068.        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3069.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3070.        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3071.          >/dev/null 2>conftest.err &&
  3072.        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3073.        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3074.        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3075.       # icc doesn't choke on unknown options, it will just issue warnings
  3076.       # or remarks (even with -Werror).  So we grep stderr for any message
  3077.       # that says an option was ignored or not supported.
  3078.       # When given -MP, icc 7.0 and 7.1 complain thusly:
  3079.       #   icc: Command line warning: ignoring option '-M'; no argument required
  3080.       # The diagnosis changed in icc 8.0:
  3081.       #   icc: Command line remark: option '-MP' not supported
  3082.       if (grep 'ignoring option' conftest.err ||
  3083.           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3084.         am_cv_CXX_dependencies_compiler_type=$depmode
  3085.         break
  3086.       fi
  3087.     fi
  3088.   done
  3089.  
  3090.   cd ..
  3091.   rm -rf conftest.dir
  3092. else
  3093.   am_cv_CXX_dependencies_compiler_type=none
  3094. fi
  3095.  
  3096. fi
  3097. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3098. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  3099. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3100.  
  3101.  
  3102.  
  3103. if
  3104.   test "x$enable_dependency_tracking" != xno \
  3105.   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3106.   am__fastdepCXX_TRUE=
  3107.   am__fastdepCXX_FALSE='#'
  3108. else
  3109.   am__fastdepCXX_TRUE='#'
  3110.   am__fastdepCXX_FALSE=
  3111. fi
  3112.  
  3113.  
  3114.  
  3115. echo "$as_me:$LINENO: checking for library containing strerror" >&5
  3116. echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
  3117. if test "${ac_cv_search_strerror+set}" = set; then
  3118.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3119. else
  3120.   ac_func_search_save_LIBS=$LIBS
  3121. ac_cv_search_strerror=no
  3122. cat >conftest.$ac_ext <<_ACEOF
  3123. /* confdefs.h.  */
  3124. _ACEOF
  3125. cat confdefs.h >>conftest.$ac_ext
  3126. cat >>conftest.$ac_ext <<_ACEOF
  3127. /* end confdefs.h.  */
  3128.  
  3129. /* Override any gcc2 internal prototype to avoid an error.  */
  3130. #ifdef __cplusplus
  3131. extern "C"
  3132. #endif
  3133. /* We use char because int might match the return type of a gcc2
  3134.    builtin and then its argument prototype would still apply.  */
  3135. char strerror ();
  3136. int
  3137. main ()
  3138. {
  3139. strerror ();
  3140.   ;
  3141.   return 0;
  3142. }
  3143. _ACEOF
  3144. rm -f conftest.$ac_objext conftest$ac_exeext
  3145. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3146.   (eval $ac_link) 2>conftest.er1
  3147.   ac_status=$?
  3148.   grep -v '^ *+' conftest.er1 >conftest.err
  3149.   rm -f conftest.er1
  3150.   cat conftest.err >&5
  3151.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3152.   (exit $ac_status); } &&
  3153.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  3154.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3155.   (eval $ac_try) 2>&5
  3156.   ac_status=$?
  3157.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3158.   (exit $ac_status); }; } &&
  3159.      { ac_try='test -s conftest$ac_exeext'
  3160.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3161.   (eval $ac_try) 2>&5
  3162.   ac_status=$?
  3163.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3164.   (exit $ac_status); }; }; then
  3165.   ac_cv_search_strerror="none required"
  3166. else
  3167.   echo "$as_me: failed program was:" >&5
  3168. sed 's/^/| /' conftest.$ac_ext >&5
  3169.  
  3170. fi
  3171. rm -f conftest.err conftest.$ac_objext \
  3172.       conftest$ac_exeext conftest.$ac_ext
  3173. if test "$ac_cv_search_strerror" = no; then
  3174.   for ac_lib in cposix; do
  3175.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  3176.     cat >conftest.$ac_ext <<_ACEOF
  3177. /* confdefs.h.  */
  3178. _ACEOF
  3179. cat confdefs.h >>conftest.$ac_ext
  3180. cat >>conftest.$ac_ext <<_ACEOF
  3181. /* end confdefs.h.  */
  3182.  
  3183. /* Override any gcc2 internal prototype to avoid an error.  */
  3184. #ifdef __cplusplus
  3185. extern "C"
  3186. #endif
  3187. /* We use char because int might match the return type of a gcc2
  3188.    builtin and then its argument prototype would still apply.  */
  3189. char strerror ();
  3190. int
  3191. main ()
  3192. {
  3193. strerror ();
  3194.   ;
  3195.   return 0;
  3196. }
  3197. _ACEOF
  3198. rm -f conftest.$ac_objext conftest$ac_exeext
  3199. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3200.   (eval $ac_link) 2>conftest.er1
  3201.   ac_status=$?
  3202.   grep -v '^ *+' conftest.er1 >conftest.err
  3203.   rm -f conftest.er1
  3204.   cat conftest.err >&5
  3205.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3206.   (exit $ac_status); } &&
  3207.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  3208.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3209.   (eval $ac_try) 2>&5
  3210.   ac_status=$?
  3211.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3212.   (exit $ac_status); }; } &&
  3213.      { ac_try='test -s conftest$ac_exeext'
  3214.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3215.   (eval $ac_try) 2>&5
  3216.   ac_status=$?
  3217.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3218.   (exit $ac_status); }; }; then
  3219.   ac_cv_search_strerror="-l$ac_lib"
  3220. break
  3221. else
  3222.   echo "$as_me: failed program was:" >&5
  3223. sed 's/^/| /' conftest.$ac_ext >&5
  3224.  
  3225. fi
  3226. rm -f conftest.err conftest.$ac_objext \
  3227.       conftest$ac_exeext conftest.$ac_ext
  3228.   done
  3229. fi
  3230. LIBS=$ac_func_search_save_LIBS
  3231. fi
  3232. echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  3233. echo "${ECHO_T}$ac_cv_search_strerror" >&6
  3234. if test "$ac_cv_search_strerror" != no; then
  3235.   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
  3236.  
  3237. fi
  3238.  
  3239. ac_ext=c
  3240. ac_cpp='$CPP $CPPFLAGS'
  3241. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3242. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3243. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3244. if test -n "$ac_tool_prefix"; then
  3245.   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3246. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3247. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3248. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3249. if test "${ac_cv_prog_CC+set}" = set; then
  3250.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3251. else
  3252.   if test -n "$CC"; then
  3253.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3254. else
  3255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3256. for as_dir in $PATH
  3257. do
  3258.   IFS=$as_save_IFS
  3259.   test -z "$as_dir" && as_dir=.
  3260.   for ac_exec_ext in '' $ac_executable_extensions; do
  3261.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3262.     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3263.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3264.     break 2
  3265.   fi
  3266. done
  3267. done
  3268.  
  3269. fi
  3270. fi
  3271. CC=$ac_cv_prog_CC
  3272. if test -n "$CC"; then
  3273.   echo "$as_me:$LINENO: result: $CC" >&5
  3274. echo "${ECHO_T}$CC" >&6
  3275. else
  3276.   echo "$as_me:$LINENO: result: no" >&5
  3277. echo "${ECHO_T}no" >&6
  3278. fi
  3279.  
  3280. fi
  3281. if test -z "$ac_cv_prog_CC"; then
  3282.   ac_ct_CC=$CC
  3283.   # Extract the first word of "gcc", so it can be a program name with args.
  3284. set dummy gcc; ac_word=$2
  3285. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3286. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3287. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3288.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3289. else
  3290.   if test -n "$ac_ct_CC"; then
  3291.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3292. else
  3293. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3294. for as_dir in $PATH
  3295. do
  3296.   IFS=$as_save_IFS
  3297.   test -z "$as_dir" && as_dir=.
  3298.   for ac_exec_ext in '' $ac_executable_extensions; do
  3299.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3300.     ac_cv_prog_ac_ct_CC="gcc"
  3301.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3302.     break 2
  3303.   fi
  3304. done
  3305. done
  3306.  
  3307. fi
  3308. fi
  3309. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3310. if test -n "$ac_ct_CC"; then
  3311.   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3312. echo "${ECHO_T}$ac_ct_CC" >&6
  3313. else
  3314.   echo "$as_me:$LINENO: result: no" >&5
  3315. echo "${ECHO_T}no" >&6
  3316. fi
  3317.  
  3318.   CC=$ac_ct_CC
  3319. else
  3320.   CC="$ac_cv_prog_CC"
  3321. fi
  3322.  
  3323. if test -z "$CC"; then
  3324.   if test -n "$ac_tool_prefix"; then
  3325.   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3326. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3327. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3328. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3329. if test "${ac_cv_prog_CC+set}" = set; then
  3330.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3331. else
  3332.   if test -n "$CC"; then
  3333.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3334. else
  3335. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3336. for as_dir in $PATH
  3337. do
  3338.   IFS=$as_save_IFS
  3339.   test -z "$as_dir" && as_dir=.
  3340.   for ac_exec_ext in '' $ac_executable_extensions; do
  3341.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3342.     ac_cv_prog_CC="${ac_tool_prefix}cc"
  3343.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3344.     break 2
  3345.   fi
  3346. done
  3347. done
  3348.  
  3349. fi
  3350. fi
  3351. CC=$ac_cv_prog_CC
  3352. if test -n "$CC"; then
  3353.   echo "$as_me:$LINENO: result: $CC" >&5
  3354. echo "${ECHO_T}$CC" >&6
  3355. else
  3356.   echo "$as_me:$LINENO: result: no" >&5
  3357. echo "${ECHO_T}no" >&6
  3358. fi
  3359.  
  3360. fi
  3361. if test -z "$ac_cv_prog_CC"; then
  3362.   ac_ct_CC=$CC
  3363.   # Extract the first word of "cc", so it can be a program name with args.
  3364. set dummy cc; ac_word=$2
  3365. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3366. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3367. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3368.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3369. else
  3370.   if test -n "$ac_ct_CC"; then
  3371.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3372. else
  3373. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3374. for as_dir in $PATH
  3375. do
  3376.   IFS=$as_save_IFS
  3377.   test -z "$as_dir" && as_dir=.
  3378.   for ac_exec_ext in '' $ac_executable_extensions; do
  3379.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3380.     ac_cv_prog_ac_ct_CC="cc"
  3381.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3382.     break 2
  3383.   fi
  3384. done
  3385. done
  3386.  
  3387. fi
  3388. fi
  3389. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3390. if test -n "$ac_ct_CC"; then
  3391.   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3392. echo "${ECHO_T}$ac_ct_CC" >&6
  3393. else
  3394.   echo "$as_me:$LINENO: result: no" >&5
  3395. echo "${ECHO_T}no" >&6
  3396. fi
  3397.  
  3398.   CC=$ac_ct_CC
  3399. else
  3400.   CC="$ac_cv_prog_CC"
  3401. fi
  3402.  
  3403. fi
  3404. if test -z "$CC"; then
  3405.   # Extract the first word of "cc", so it can be a program name with args.
  3406. set dummy cc; ac_word=$2
  3407. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3408. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3409. if test "${ac_cv_prog_CC+set}" = set; then
  3410.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3411. else
  3412.   if test -n "$CC"; then
  3413.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3414. else
  3415.   ac_prog_rejected=no
  3416. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3417. for as_dir in $PATH
  3418. do
  3419.   IFS=$as_save_IFS
  3420.   test -z "$as_dir" && as_dir=.
  3421.   for ac_exec_ext in '' $ac_executable_extensions; do
  3422.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3423.     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3424.        ac_prog_rejected=yes
  3425.        continue
  3426.      fi
  3427.     ac_cv_prog_CC="cc"
  3428.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3429.     break 2
  3430.   fi
  3431. done
  3432. done
  3433.  
  3434. if test $ac_prog_rejected = yes; then
  3435.   # We found a bogon in the path, so make sure we never use it.
  3436.   set dummy $ac_cv_prog_CC
  3437.   shift
  3438.   if test $# != 0; then
  3439.     # We chose a different compiler from the bogus one.
  3440.     # However, it has the same basename, so the bogon will be chosen
  3441.     # first if we set CC to just the basename; use the full file name.
  3442.     shift
  3443.     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3444.   fi
  3445. fi
  3446. fi
  3447. fi
  3448. CC=$ac_cv_prog_CC
  3449. if test -n "$CC"; then
  3450.   echo "$as_me:$LINENO: result: $CC" >&5
  3451. echo "${ECHO_T}$CC" >&6
  3452. else
  3453.   echo "$as_me:$LINENO: result: no" >&5
  3454. echo "${ECHO_T}no" >&6
  3455. fi
  3456.  
  3457. fi
  3458. if test -z "$CC"; then
  3459.   if test -n "$ac_tool_prefix"; then
  3460.   for ac_prog in cl
  3461.   do
  3462.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3463. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3464. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3465. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3466. if test "${ac_cv_prog_CC+set}" = set; then
  3467.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3468. else
  3469.   if test -n "$CC"; then
  3470.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3471. else
  3472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3473. for as_dir in $PATH
  3474. do
  3475.   IFS=$as_save_IFS
  3476.   test -z "$as_dir" && as_dir=.
  3477.   for ac_exec_ext in '' $ac_executable_extensions; do
  3478.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3479.     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3480.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3481.     break 2
  3482.   fi
  3483. done
  3484. done
  3485.  
  3486. fi
  3487. fi
  3488. CC=$ac_cv_prog_CC
  3489. if test -n "$CC"; then
  3490.   echo "$as_me:$LINENO: result: $CC" >&5
  3491. echo "${ECHO_T}$CC" >&6
  3492. else
  3493.   echo "$as_me:$LINENO: result: no" >&5
  3494. echo "${ECHO_T}no" >&6
  3495. fi
  3496.  
  3497.     test -n "$CC" && break
  3498.   done
  3499. fi
  3500. if test -z "$CC"; then
  3501.   ac_ct_CC=$CC
  3502.   for ac_prog in cl
  3503. do
  3504.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3505. set dummy $ac_prog; ac_word=$2
  3506. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3507. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3508. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3509.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3510. else
  3511.   if test -n "$ac_ct_CC"; then
  3512.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3513. else
  3514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3515. for as_dir in $PATH
  3516. do
  3517.   IFS=$as_save_IFS
  3518.   test -z "$as_dir" && as_dir=.
  3519.   for ac_exec_ext in '' $ac_executable_extensions; do
  3520.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3521.     ac_cv_prog_ac_ct_CC="$ac_prog"
  3522.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3523.     break 2
  3524.   fi
  3525. done
  3526. done
  3527.  
  3528. fi
  3529. fi
  3530. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3531. if test -n "$ac_ct_CC"; then
  3532.   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3533. echo "${ECHO_T}$ac_ct_CC" >&6
  3534. else
  3535.   echo "$as_me:$LINENO: result: no" >&5
  3536. echo "${ECHO_T}no" >&6
  3537. fi
  3538.  
  3539.   test -n "$ac_ct_CC" && break
  3540. done
  3541.  
  3542.   CC=$ac_ct_CC
  3543. fi
  3544.  
  3545. fi
  3546.  
  3547.  
  3548. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3549. See \`config.log' for more details." >&5
  3550. echo "$as_me: error: no acceptable C compiler found in \$PATH
  3551. See \`config.log' for more details." >&2;}
  3552.    { (exit 1); exit 1; }; }
  3553.  
  3554. # Provide some information about the compiler.
  3555. echo "$as_me:$LINENO:" \
  3556.      "checking for C compiler version" >&5
  3557. ac_compiler=`set X $ac_compile; echo $2`
  3558. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  3559.   (eval $ac_compiler --version </dev/null >&5) 2>&5
  3560.   ac_status=$?
  3561.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3562.   (exit $ac_status); }
  3563. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  3564.   (eval $ac_compiler -v </dev/null >&5) 2>&5
  3565.   ac_status=$?
  3566.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3567.   (exit $ac_status); }
  3568. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  3569.   (eval $ac_compiler -V </dev/null >&5) 2>&5
  3570.   ac_status=$?
  3571.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3572.   (exit $ac_status); }
  3573.  
  3574. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3575. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  3576. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3577.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3578. else
  3579.   cat >conftest.$ac_ext <<_ACEOF
  3580. /* confdefs.h.  */
  3581. _ACEOF
  3582. cat confdefs.h >>conftest.$ac_ext
  3583. cat >>conftest.$ac_ext <<_ACEOF
  3584. /* end confdefs.h.  */
  3585.  
  3586. int
  3587. main ()
  3588. {
  3589. #ifndef __GNUC__
  3590.        choke me
  3591. #endif
  3592.  
  3593.   ;
  3594.   return 0;
  3595. }
  3596. _ACEOF
  3597. rm -f conftest.$ac_objext
  3598. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3599.   (eval $ac_compile) 2>conftest.er1
  3600.   ac_status=$?
  3601.   grep -v '^ *+' conftest.er1 >conftest.err
  3602.   rm -f conftest.er1
  3603.   cat conftest.err >&5
  3604.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3605.   (exit $ac_status); } &&
  3606.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  3607.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3608.   (eval $ac_try) 2>&5
  3609.   ac_status=$?
  3610.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3611.   (exit $ac_status); }; } &&
  3612.      { ac_try='test -s conftest.$ac_objext'
  3613.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3614.   (eval $ac_try) 2>&5
  3615.   ac_status=$?
  3616.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3617.   (exit $ac_status); }; }; then
  3618.   ac_compiler_gnu=yes
  3619. else
  3620.   echo "$as_me: failed program was:" >&5
  3621. sed 's/^/| /' conftest.$ac_ext >&5
  3622.  
  3623. ac_compiler_gnu=no
  3624. fi
  3625. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3626. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3627.  
  3628. fi
  3629. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3630. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  3631. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3632. ac_test_CFLAGS=${CFLAGS+set}
  3633. ac_save_CFLAGS=$CFLAGS
  3634. CFLAGS="-g"
  3635. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3636. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  3637. if test "${ac_cv_prog_cc_g+set}" = set; then
  3638.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3639. else
  3640.   cat >conftest.$ac_ext <<_ACEOF
  3641. /* confdefs.h.  */
  3642. _ACEOF
  3643. cat confdefs.h >>conftest.$ac_ext
  3644. cat >>conftest.$ac_ext <<_ACEOF
  3645. /* end confdefs.h.  */
  3646.  
  3647. int
  3648. main ()
  3649. {
  3650.  
  3651.   ;
  3652.   return 0;
  3653. }
  3654. _ACEOF
  3655. rm -f conftest.$ac_objext
  3656. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3657.   (eval $ac_compile) 2>conftest.er1
  3658.   ac_status=$?
  3659.   grep -v '^ *+' conftest.er1 >conftest.err
  3660.   rm -f conftest.er1
  3661.   cat conftest.err >&5
  3662.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3663.   (exit $ac_status); } &&
  3664.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  3665.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3666.   (eval $ac_try) 2>&5
  3667.   ac_status=$?
  3668.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3669.   (exit $ac_status); }; } &&
  3670.      { ac_try='test -s conftest.$ac_objext'
  3671.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3672.   (eval $ac_try) 2>&5
  3673.   ac_status=$?
  3674.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3675.   (exit $ac_status); }; }; then
  3676.   ac_cv_prog_cc_g=yes
  3677. else
  3678.   echo "$as_me: failed program was:" >&5
  3679. sed 's/^/| /' conftest.$ac_ext >&5
  3680.  
  3681. ac_cv_prog_cc_g=no
  3682. fi
  3683. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3684. fi
  3685. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3686. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  3687. if test "$ac_test_CFLAGS" = set; then
  3688.   CFLAGS=$ac_save_CFLAGS
  3689. elif test $ac_cv_prog_cc_g = yes; then
  3690.   if test "$GCC" = yes; then
  3691.     CFLAGS="-g -O2"
  3692.   else
  3693.     CFLAGS="-g"
  3694.   fi
  3695. else
  3696.   if test "$GCC" = yes; then
  3697.     CFLAGS="-O2"
  3698.   else
  3699.     CFLAGS=
  3700.   fi
  3701. fi
  3702. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  3703. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  3704. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  3705.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3706. else
  3707.   ac_cv_prog_cc_stdc=no
  3708. ac_save_CC=$CC
  3709. cat >conftest.$ac_ext <<_ACEOF
  3710. /* confdefs.h.  */
  3711. _ACEOF
  3712. cat confdefs.h >>conftest.$ac_ext
  3713. cat >>conftest.$ac_ext <<_ACEOF
  3714. /* end confdefs.h.  */
  3715. #include <stdarg.h>
  3716. #include <stdio.h>
  3717. #include <sys/types.h>
  3718. #include <sys/stat.h>
  3719. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  3720. struct buf { int x; };
  3721. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3722. static char *e (p, i)
  3723.      char **p;
  3724.      int i;
  3725. {
  3726.   return p[i];
  3727. }
  3728. static char *f (char * (*g) (char **, int), char **p, ...)
  3729. {
  3730.   char *s;
  3731.   va_list v;
  3732.   va_start (v,p);
  3733.   s = g (p, va_arg (v,int));
  3734.   va_end (v);
  3735.   return s;
  3736. }
  3737.  
  3738. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  3739.    function prototypes and stuff, but not '\xHH' hex character constants.
  3740.    These don't provoke an error unfortunately, instead are silently treated
  3741.    as 'x'.  The following induces an error, until -std1 is added to get
  3742.    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  3743.    array size at least.  It's necessary to write '\x00'==0 to get something
  3744.    that's true only with -std1.  */
  3745. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3746.  
  3747. int test (int i, double x);
  3748. struct s1 {int (*f) (int a);};
  3749. struct s2 {int (*f) (double a);};
  3750. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3751. int argc;
  3752. char **argv;
  3753. int
  3754. main ()
  3755. {
  3756. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  3757.   ;
  3758.   return 0;
  3759. }
  3760. _ACEOF
  3761. # Don't try gcc -ansi; that turns off useful extensions and
  3762. # breaks some systems' header files.
  3763. # AIX            -qlanglvl=ansi
  3764. # Ultrix and OSF/1    -std1
  3765. # HP-UX 10.20 and later    -Ae
  3766. # HP-UX older versions    -Aa -D_HPUX_SOURCE
  3767. # SVR4            -Xc -D__EXTENSIONS__
  3768. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3769. do
  3770.   CC="$ac_save_CC $ac_arg"
  3771.   rm -f conftest.$ac_objext
  3772. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3773.   (eval $ac_compile) 2>conftest.er1
  3774.   ac_status=$?
  3775.   grep -v '^ *+' conftest.er1 >conftest.err
  3776.   rm -f conftest.er1
  3777.   cat conftest.err >&5
  3778.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3779.   (exit $ac_status); } &&
  3780.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  3781.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3782.   (eval $ac_try) 2>&5
  3783.   ac_status=$?
  3784.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3785.   (exit $ac_status); }; } &&
  3786.      { ac_try='test -s conftest.$ac_objext'
  3787.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3788.   (eval $ac_try) 2>&5
  3789.   ac_status=$?
  3790.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3791.   (exit $ac_status); }; }; then
  3792.   ac_cv_prog_cc_stdc=$ac_arg
  3793. break
  3794. else
  3795.   echo "$as_me: failed program was:" >&5
  3796. sed 's/^/| /' conftest.$ac_ext >&5
  3797.  
  3798. fi
  3799. rm -f conftest.err conftest.$ac_objext
  3800. done
  3801. rm -f conftest.$ac_ext conftest.$ac_objext
  3802. CC=$ac_save_CC
  3803.  
  3804. fi
  3805.  
  3806. case "x$ac_cv_prog_cc_stdc" in
  3807.   x|xno)
  3808.     echo "$as_me:$LINENO: result: none needed" >&5
  3809. echo "${ECHO_T}none needed" >&6 ;;
  3810.   *)
  3811.     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  3812. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  3813.     CC="$CC $ac_cv_prog_cc_stdc" ;;
  3814. esac
  3815.  
  3816. # Some people use a C++ compiler to compile C.  Since we use `exit',
  3817. # in C++ we need to declare it.  In case someone uses the same compiler
  3818. # for both compiling C and C++ we need to have the C++ compiler decide
  3819. # the declaration of exit, since it's the most demanding environment.
  3820. cat >conftest.$ac_ext <<_ACEOF
  3821. #ifndef __cplusplus
  3822.   choke me
  3823. #endif
  3824. _ACEOF
  3825. rm -f conftest.$ac_objext
  3826. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3827.   (eval $ac_compile) 2>conftest.er1
  3828.   ac_status=$?
  3829.   grep -v '^ *+' conftest.er1 >conftest.err
  3830.   rm -f conftest.er1
  3831.   cat conftest.err >&5
  3832.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3833.   (exit $ac_status); } &&
  3834.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  3835.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3836.   (eval $ac_try) 2>&5
  3837.   ac_status=$?
  3838.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3839.   (exit $ac_status); }; } &&
  3840.      { ac_try='test -s conftest.$ac_objext'
  3841.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3842.   (eval $ac_try) 2>&5
  3843.   ac_status=$?
  3844.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3845.   (exit $ac_status); }; }; then
  3846.   for ac_declaration in \
  3847.    '' \
  3848.    'extern "C" void std::exit (int) throw (); using std::exit;' \
  3849.    'extern "C" void std::exit (int); using std::exit;' \
  3850.    'extern "C" void exit (int) throw ();' \
  3851.    'extern "C" void exit (int);' \
  3852.    'void exit (int);'
  3853. do
  3854.   cat >conftest.$ac_ext <<_ACEOF
  3855. /* confdefs.h.  */
  3856. _ACEOF
  3857. cat confdefs.h >>conftest.$ac_ext
  3858. cat >>conftest.$ac_ext <<_ACEOF
  3859. /* end confdefs.h.  */
  3860. $ac_declaration
  3861. #include <stdlib.h>
  3862. int
  3863. main ()
  3864. {
  3865. exit (42);
  3866.   ;
  3867.   return 0;
  3868. }
  3869. _ACEOF
  3870. rm -f conftest.$ac_objext
  3871. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3872.   (eval $ac_compile) 2>conftest.er1
  3873.   ac_status=$?
  3874.   grep -v '^ *+' conftest.er1 >conftest.err
  3875.   rm -f conftest.er1
  3876.   cat conftest.err >&5
  3877.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3878.   (exit $ac_status); } &&
  3879.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  3880.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3881.   (eval $ac_try) 2>&5
  3882.   ac_status=$?
  3883.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3884.   (exit $ac_status); }; } &&
  3885.      { ac_try='test -s conftest.$ac_objext'
  3886.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3887.   (eval $ac_try) 2>&5
  3888.   ac_status=$?
  3889.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3890.   (exit $ac_status); }; }; then
  3891.   :
  3892. else
  3893.   echo "$as_me: failed program was:" >&5
  3894. sed 's/^/| /' conftest.$ac_ext >&5
  3895.  
  3896. continue
  3897. fi
  3898. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3899.   cat >conftest.$ac_ext <<_ACEOF
  3900. /* confdefs.h.  */
  3901. _ACEOF
  3902. cat confdefs.h >>conftest.$ac_ext
  3903. cat >>conftest.$ac_ext <<_ACEOF
  3904. /* end confdefs.h.  */
  3905. $ac_declaration
  3906. int
  3907. main ()
  3908. {
  3909. exit (42);
  3910.   ;
  3911.   return 0;
  3912. }
  3913. _ACEOF
  3914. rm -f conftest.$ac_objext
  3915. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3916.   (eval $ac_compile) 2>conftest.er1
  3917.   ac_status=$?
  3918.   grep -v '^ *+' conftest.er1 >conftest.err
  3919.   rm -f conftest.er1
  3920.   cat conftest.err >&5
  3921.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3922.   (exit $ac_status); } &&
  3923.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  3924.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3925.   (eval $ac_try) 2>&5
  3926.   ac_status=$?
  3927.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3928.   (exit $ac_status); }; } &&
  3929.      { ac_try='test -s conftest.$ac_objext'
  3930.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3931.   (eval $ac_try) 2>&5
  3932.   ac_status=$?
  3933.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3934.   (exit $ac_status); }; }; then
  3935.   break
  3936. else
  3937.   echo "$as_me: failed program was:" >&5
  3938. sed 's/^/| /' conftest.$ac_ext >&5
  3939.  
  3940. fi
  3941. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3942. done
  3943. rm -f conftest*
  3944. if test -n "$ac_declaration"; then
  3945.   echo '#ifdef __cplusplus' >>confdefs.h
  3946.   echo $ac_declaration      >>confdefs.h
  3947.   echo '#endif'             >>confdefs.h
  3948. fi
  3949.  
  3950. else
  3951.   echo "$as_me: failed program was:" >&5
  3952. sed 's/^/| /' conftest.$ac_ext >&5
  3953.  
  3954. fi
  3955. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3956. ac_ext=cc
  3957. ac_cpp='$CXXCPP $CPPFLAGS'
  3958. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3959. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3960. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3961.  
  3962. depcc="$CC"   am_compiler_list=
  3963.  
  3964. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3965. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  3966. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3967.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3968. else
  3969.   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3970.   # We make a subdir and do the tests there.  Otherwise we can end up
  3971.   # making bogus files that we don't know about and never remove.  For
  3972.   # instance it was reported that on HP-UX the gcc test will end up
  3973.   # making a dummy file named `D' -- because `-MD' means `put the output
  3974.   # in D'.
  3975.   mkdir conftest.dir
  3976.   # Copy depcomp to subdir because otherwise we won't find it if we're
  3977.   # using a relative directory.
  3978.   cp "$am_depcomp" conftest.dir
  3979.   cd conftest.dir
  3980.   # We will build objects and dependencies in a subdirectory because
  3981.   # it helps to detect inapplicable dependency modes.  For instance
  3982.   # both Tru64's cc and ICC support -MD to output dependencies as a
  3983.   # side effect of compilation, but ICC will put the dependencies in
  3984.   # the current directory while Tru64 will put them in the object
  3985.   # directory.
  3986.   mkdir sub
  3987.  
  3988.   am_cv_CC_dependencies_compiler_type=none
  3989.   if test "$am_compiler_list" = ""; then
  3990.      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3991.   fi
  3992.   for depmode in $am_compiler_list; do
  3993.     # Setup a source with many dependencies, because some compilers
  3994.     # like to wrap large dependency lists on column 80 (with \), and
  3995.     # we should not choose a depcomp mode which is confused by this.
  3996.     #
  3997.     # We need to recreate these files for each test, as the compiler may
  3998.     # overwrite some of them when testing with obscure command lines.
  3999.     # This happens at least with the AIX C compiler.
  4000.     : > sub/conftest.c
  4001.     for i in 1 2 3 4 5 6; do
  4002.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4003.       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4004.       # Solaris 8's {/usr,}/bin/sh.
  4005.       touch sub/conftst$i.h
  4006.     done
  4007.     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4008.  
  4009.     case $depmode in
  4010.     nosideeffect)
  4011.       # after this tag, mechanisms are not by side-effect, so they'll
  4012.       # only be used when explicitly requested
  4013.       if test "x$enable_dependency_tracking" = xyes; then
  4014.     continue
  4015.       else
  4016.     break
  4017.       fi
  4018.       ;;
  4019.     none) break ;;
  4020.     esac
  4021.     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4022.     # mode.  It turns out that the SunPro C++ compiler does not properly
  4023.     # handle `-M -o', and we need to detect this.
  4024.     if depmode=$depmode \
  4025.        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4026.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4027.        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4028.          >/dev/null 2>conftest.err &&
  4029.        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4030.        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4031.        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4032.       # icc doesn't choke on unknown options, it will just issue warnings
  4033.       # or remarks (even with -Werror).  So we grep stderr for any message
  4034.       # that says an option was ignored or not supported.
  4035.       # When given -MP, icc 7.0 and 7.1 complain thusly:
  4036.       #   icc: Command line warning: ignoring option '-M'; no argument required
  4037.       # The diagnosis changed in icc 8.0:
  4038.       #   icc: Command line remark: option '-MP' not supported
  4039.       if (grep 'ignoring option' conftest.err ||
  4040.           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4041.         am_cv_CC_dependencies_compiler_type=$depmode
  4042.         break
  4043.       fi
  4044.     fi
  4045.   done
  4046.  
  4047.   cd ..
  4048.   rm -rf conftest.dir
  4049. else
  4050.   am_cv_CC_dependencies_compiler_type=none
  4051. fi
  4052.  
  4053. fi
  4054. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4055. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  4056. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4057.  
  4058.  
  4059.  
  4060. if
  4061.   test "x$enable_dependency_tracking" != xno \
  4062.   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4063.   am__fastdepCC_TRUE=
  4064.   am__fastdepCC_FALSE='#'
  4065. else
  4066.   am__fastdepCC_TRUE='#'
  4067.   am__fastdepCC_FALSE=
  4068. fi
  4069.  
  4070.  
  4071.  
  4072. am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
  4073.  
  4074.  
  4075. ac_ext=cc
  4076. ac_cpp='$CXXCPP $CPPFLAGS'
  4077. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4078. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4079. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4080. echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4081. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  4082. if test -z "$CXXCPP"; then
  4083.   if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4084.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4085. else
  4086.       # Double quotes because CXXCPP needs to be expanded
  4087.     for CXXCPP in "$CXX -E" "/lib/cpp"
  4088.     do
  4089.       ac_preproc_ok=false
  4090. for ac_cxx_preproc_warn_flag in '' yes
  4091. do
  4092.   # Use a header file that comes with gcc, so configuring glibc
  4093.   # with a fresh cross-compiler works.
  4094.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4095.   # <limits.h> exists even on freestanding compilers.
  4096.   # On the NeXT, cc -E runs the code through the compiler's parser,
  4097.   # not just through cpp. "Syntax error" is here to catch this case.
  4098.   cat >conftest.$ac_ext <<_ACEOF
  4099. /* confdefs.h.  */
  4100. _ACEOF
  4101. cat confdefs.h >>conftest.$ac_ext
  4102. cat >>conftest.$ac_ext <<_ACEOF
  4103. /* end confdefs.h.  */
  4104. #ifdef __STDC__
  4105. # include <limits.h>
  4106. #else
  4107. # include <assert.h>
  4108. #endif
  4109.              Syntax error
  4110. _ACEOF
  4111. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4112.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4113.   ac_status=$?
  4114.   grep -v '^ *+' conftest.er1 >conftest.err
  4115.   rm -f conftest.er1
  4116.   cat conftest.err >&5
  4117.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4118.   (exit $ac_status); } >/dev/null; then
  4119.   if test -s conftest.err; then
  4120.     ac_cpp_err=$ac_cxx_preproc_warn_flag
  4121.     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4122.   else
  4123.     ac_cpp_err=
  4124.   fi
  4125. else
  4126.   ac_cpp_err=yes
  4127. fi
  4128. if test -z "$ac_cpp_err"; then
  4129.   :
  4130. else
  4131.   echo "$as_me: failed program was:" >&5
  4132. sed 's/^/| /' conftest.$ac_ext >&5
  4133.  
  4134.   # Broken: fails on valid input.
  4135. continue
  4136. fi
  4137. rm -f conftest.err conftest.$ac_ext
  4138.  
  4139.   # OK, works on sane cases.  Now check whether non-existent headers
  4140.   # can be detected and how.
  4141.   cat >conftest.$ac_ext <<_ACEOF
  4142. /* confdefs.h.  */
  4143. _ACEOF
  4144. cat confdefs.h >>conftest.$ac_ext
  4145. cat >>conftest.$ac_ext <<_ACEOF
  4146. /* end confdefs.h.  */
  4147. #include <ac_nonexistent.h>
  4148. _ACEOF
  4149. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4150.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4151.   ac_status=$?
  4152.   grep -v '^ *+' conftest.er1 >conftest.err
  4153.   rm -f conftest.er1
  4154.   cat conftest.err >&5
  4155.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4156.   (exit $ac_status); } >/dev/null; then
  4157.   if test -s conftest.err; then
  4158.     ac_cpp_err=$ac_cxx_preproc_warn_flag
  4159.     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4160.   else
  4161.     ac_cpp_err=
  4162.   fi
  4163. else
  4164.   ac_cpp_err=yes
  4165. fi
  4166. if test -z "$ac_cpp_err"; then
  4167.   # Broken: success on invalid input.
  4168. continue
  4169. else
  4170.   echo "$as_me: failed program was:" >&5
  4171. sed 's/^/| /' conftest.$ac_ext >&5
  4172.  
  4173.   # Passes both tests.
  4174. ac_preproc_ok=:
  4175. break
  4176. fi
  4177. rm -f conftest.err conftest.$ac_ext
  4178.  
  4179. done
  4180. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4181. rm -f conftest.err conftest.$ac_ext
  4182. if $ac_preproc_ok; then
  4183.   break
  4184. fi
  4185.  
  4186.     done
  4187.     ac_cv_prog_CXXCPP=$CXXCPP
  4188.  
  4189. fi
  4190.   CXXCPP=$ac_cv_prog_CXXCPP
  4191. else
  4192.   ac_cv_prog_CXXCPP=$CXXCPP
  4193. fi
  4194. echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4195. echo "${ECHO_T}$CXXCPP" >&6
  4196. ac_preproc_ok=false
  4197. for ac_cxx_preproc_warn_flag in '' yes
  4198. do
  4199.   # Use a header file that comes with gcc, so configuring glibc
  4200.   # with a fresh cross-compiler works.
  4201.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4202.   # <limits.h> exists even on freestanding compilers.
  4203.   # On the NeXT, cc -E runs the code through the compiler's parser,
  4204.   # not just through cpp. "Syntax error" is here to catch this case.
  4205.   cat >conftest.$ac_ext <<_ACEOF
  4206. /* confdefs.h.  */
  4207. _ACEOF
  4208. cat confdefs.h >>conftest.$ac_ext
  4209. cat >>conftest.$ac_ext <<_ACEOF
  4210. /* end confdefs.h.  */
  4211. #ifdef __STDC__
  4212. # include <limits.h>
  4213. #else
  4214. # include <assert.h>
  4215. #endif
  4216.              Syntax error
  4217. _ACEOF
  4218. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4219.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4220.   ac_status=$?
  4221.   grep -v '^ *+' conftest.er1 >conftest.err
  4222.   rm -f conftest.er1
  4223.   cat conftest.err >&5
  4224.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4225.   (exit $ac_status); } >/dev/null; then
  4226.   if test -s conftest.err; then
  4227.     ac_cpp_err=$ac_cxx_preproc_warn_flag
  4228.     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4229.   else
  4230.     ac_cpp_err=
  4231.   fi
  4232. else
  4233.   ac_cpp_err=yes
  4234. fi
  4235. if test -z "$ac_cpp_err"; then
  4236.   :
  4237. else
  4238.   echo "$as_me: failed program was:" >&5
  4239. sed 's/^/| /' conftest.$ac_ext >&5
  4240.  
  4241.   # Broken: fails on valid input.
  4242. continue
  4243. fi
  4244. rm -f conftest.err conftest.$ac_ext
  4245.  
  4246.   # OK, works on sane cases.  Now check whether non-existent headers
  4247.   # can be detected and how.
  4248.   cat >conftest.$ac_ext <<_ACEOF
  4249. /* confdefs.h.  */
  4250. _ACEOF
  4251. cat confdefs.h >>conftest.$ac_ext
  4252. cat >>conftest.$ac_ext <<_ACEOF
  4253. /* end confdefs.h.  */
  4254. #include <ac_nonexistent.h>
  4255. _ACEOF
  4256. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4257.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4258.   ac_status=$?
  4259.   grep -v '^ *+' conftest.er1 >conftest.err
  4260.   rm -f conftest.er1
  4261.   cat conftest.err >&5
  4262.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4263.   (exit $ac_status); } >/dev/null; then
  4264.   if test -s conftest.err; then
  4265.     ac_cpp_err=$ac_cxx_preproc_warn_flag
  4266.     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4267.   else
  4268.     ac_cpp_err=
  4269.   fi
  4270. else
  4271.   ac_cpp_err=yes
  4272. fi
  4273. if test -z "$ac_cpp_err"; then
  4274.   # Broken: success on invalid input.
  4275. continue
  4276. else
  4277.   echo "$as_me: failed program was:" >&5
  4278. sed 's/^/| /' conftest.$ac_ext >&5
  4279.  
  4280.   # Passes both tests.
  4281. ac_preproc_ok=:
  4282. break
  4283. fi
  4284. rm -f conftest.err conftest.$ac_ext
  4285.  
  4286. done
  4287. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4288. rm -f conftest.err conftest.$ac_ext
  4289. if $ac_preproc_ok; then
  4290.   :
  4291. else
  4292.   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4293. See \`config.log' for more details." >&5
  4294. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4295. See \`config.log' for more details." >&2;}
  4296.    { (exit 1); exit 1; }; }
  4297. fi
  4298.  
  4299. ac_ext=cc
  4300. ac_cpp='$CXXCPP $CPPFLAGS'
  4301. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4302. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4303. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4304.  
  4305.  
  4306. echo "$as_me:$LINENO: checking for egrep" >&5
  4307. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  4308. if test "${ac_cv_prog_egrep+set}" = set; then
  4309.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4310. else
  4311.   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  4312.     then ac_cv_prog_egrep='grep -E'
  4313.     else ac_cv_prog_egrep='egrep'
  4314.     fi
  4315. fi
  4316. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  4317. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  4318.  EGREP=$ac_cv_prog_egrep
  4319.  
  4320.  
  4321. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4322. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  4323. if test "${ac_cv_header_stdc+set}" = set; then
  4324.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4325. else
  4326.   cat >conftest.$ac_ext <<_ACEOF
  4327. /* confdefs.h.  */
  4328. _ACEOF
  4329. cat confdefs.h >>conftest.$ac_ext
  4330. cat >>conftest.$ac_ext <<_ACEOF
  4331. /* end confdefs.h.  */
  4332. #include <stdlib.h>
  4333. #include <stdarg.h>
  4334. #include <string.h>
  4335. #include <float.h>
  4336.  
  4337. int
  4338. main ()
  4339. {
  4340.  
  4341.   ;
  4342.   return 0;
  4343. }
  4344. _ACEOF
  4345. rm -f conftest.$ac_objext
  4346. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4347.   (eval $ac_compile) 2>conftest.er1
  4348.   ac_status=$?
  4349.   grep -v '^ *+' conftest.er1 >conftest.err
  4350.   rm -f conftest.er1
  4351.   cat conftest.err >&5
  4352.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4353.   (exit $ac_status); } &&
  4354.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  4355.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4356.   (eval $ac_try) 2>&5
  4357.   ac_status=$?
  4358.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4359.   (exit $ac_status); }; } &&
  4360.      { ac_try='test -s conftest.$ac_objext'
  4361.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4362.   (eval $ac_try) 2>&5
  4363.   ac_status=$?
  4364.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4365.   (exit $ac_status); }; }; then
  4366.   ac_cv_header_stdc=yes
  4367. else
  4368.   echo "$as_me: failed program was:" >&5
  4369. sed 's/^/| /' conftest.$ac_ext >&5
  4370.  
  4371. ac_cv_header_stdc=no
  4372. fi
  4373. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4374.  
  4375. if test $ac_cv_header_stdc = yes; then
  4376.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4377.   cat >conftest.$ac_ext <<_ACEOF
  4378. /* confdefs.h.  */
  4379. _ACEOF
  4380. cat confdefs.h >>conftest.$ac_ext
  4381. cat >>conftest.$ac_ext <<_ACEOF
  4382. /* end confdefs.h.  */
  4383. #include <string.h>
  4384.  
  4385. _ACEOF
  4386. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4387.   $EGREP "memchr" >/dev/null 2>&1; then
  4388.   :
  4389. else
  4390.   ac_cv_header_stdc=no
  4391. fi
  4392. rm -f conftest*
  4393.  
  4394. fi
  4395.  
  4396. if test $ac_cv_header_stdc = yes; then
  4397.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4398.   cat >conftest.$ac_ext <<_ACEOF
  4399. /* confdefs.h.  */
  4400. _ACEOF
  4401. cat confdefs.h >>conftest.$ac_ext
  4402. cat >>conftest.$ac_ext <<_ACEOF
  4403. /* end confdefs.h.  */
  4404. #include <stdlib.h>
  4405.  
  4406. _ACEOF
  4407. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4408.   $EGREP "free" >/dev/null 2>&1; then
  4409.   :
  4410. else
  4411.   ac_cv_header_stdc=no
  4412. fi
  4413. rm -f conftest*
  4414.  
  4415. fi
  4416.  
  4417. if test $ac_cv_header_stdc = yes; then
  4418.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4419.   if test "$cross_compiling" = yes; then
  4420.   :
  4421. else
  4422.   cat >conftest.$ac_ext <<_ACEOF
  4423. /* confdefs.h.  */
  4424. _ACEOF
  4425. cat confdefs.h >>conftest.$ac_ext
  4426. cat >>conftest.$ac_ext <<_ACEOF
  4427. /* end confdefs.h.  */
  4428. #include <ctype.h>
  4429. #if ((' ' & 0x0FF) == 0x020)
  4430. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4431. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4432. #else
  4433. # define ISLOWER(c) \
  4434.            (('a' <= (c) && (c) <= 'i') \
  4435.              || ('j' <= (c) && (c) <= 'r') \
  4436.              || ('s' <= (c) && (c) <= 'z'))
  4437. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4438. #endif
  4439.  
  4440. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4441. int
  4442. main ()
  4443. {
  4444.   int i;
  4445.   for (i = 0; i < 256; i++)
  4446.     if (XOR (islower (i), ISLOWER (i))
  4447.     || toupper (i) != TOUPPER (i))
  4448.       exit(2);
  4449.   exit (0);
  4450. }
  4451. _ACEOF
  4452. rm -f conftest$ac_exeext
  4453. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4454.   (eval $ac_link) 2>&5
  4455.   ac_status=$?
  4456.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4457.   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4458.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4459.   (eval $ac_try) 2>&5
  4460.   ac_status=$?
  4461.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4462.   (exit $ac_status); }; }; then
  4463.   :
  4464. else
  4465.   echo "$as_me: program exited with status $ac_status" >&5
  4466. echo "$as_me: failed program was:" >&5
  4467. sed 's/^/| /' conftest.$ac_ext >&5
  4468.  
  4469. ( exit $ac_status )
  4470. ac_cv_header_stdc=no
  4471. fi
  4472. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4473. fi
  4474. fi
  4475. fi
  4476. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4477. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  4478. if test $ac_cv_header_stdc = yes; then
  4479.  
  4480. cat >>confdefs.h <<\_ACEOF
  4481. #define STDC_HEADERS 1
  4482. _ACEOF
  4483.  
  4484. fi
  4485.  
  4486. # Check whether --enable-largefile or --disable-largefile was given.
  4487. if test "${enable_largefile+set}" = set; then
  4488.   enableval="$enable_largefile"
  4489.  
  4490. fi;
  4491. if test "$enable_largefile" != no; then
  4492.  
  4493.   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  4494. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
  4495. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  4496.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4497. else
  4498.   ac_cv_sys_largefile_CC=no
  4499.      if test "$GCC" != yes; then
  4500.        ac_save_CC=$CC
  4501.        while :; do
  4502.           # IRIX 6.2 and later do not support large files by default,
  4503.           # so use the C compiler's -n32 option if that helps.
  4504.      cat >conftest.$ac_ext <<_ACEOF
  4505. /* confdefs.h.  */
  4506. _ACEOF
  4507. cat confdefs.h >>conftest.$ac_ext
  4508. cat >>conftest.$ac_ext <<_ACEOF
  4509. /* end confdefs.h.  */
  4510. #include <sys/types.h>
  4511.  /* Check that off_t can represent 2**63 - 1 correctly.
  4512.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4513.     since some C++ compilers masquerading as C compilers
  4514.     incorrectly reject 9223372036854775807.  */
  4515. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4516.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4517.                && LARGE_OFF_T % 2147483647 == 1)
  4518.               ? 1 : -1];
  4519. int
  4520. main ()
  4521. {
  4522.  
  4523.   ;
  4524.   return 0;
  4525. }
  4526. _ACEOF
  4527.           rm -f conftest.$ac_objext
  4528. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4529.   (eval $ac_compile) 2>conftest.er1
  4530.   ac_status=$?
  4531.   grep -v '^ *+' conftest.er1 >conftest.err
  4532.   rm -f conftest.er1
  4533.   cat conftest.err >&5
  4534.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4535.   (exit $ac_status); } &&
  4536.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  4537.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4538.   (eval $ac_try) 2>&5
  4539.   ac_status=$?
  4540.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4541.   (exit $ac_status); }; } &&
  4542.      { ac_try='test -s conftest.$ac_objext'
  4543.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4544.   (eval $ac_try) 2>&5
  4545.   ac_status=$?
  4546.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4547.   (exit $ac_status); }; }; then
  4548.   break
  4549. else
  4550.   echo "$as_me: failed program was:" >&5
  4551. sed 's/^/| /' conftest.$ac_ext >&5
  4552.  
  4553. fi
  4554. rm -f conftest.err conftest.$ac_objext
  4555.           CC="$CC -n32"
  4556.           rm -f conftest.$ac_objext
  4557. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4558.   (eval $ac_compile) 2>conftest.er1
  4559.   ac_status=$?
  4560.   grep -v '^ *+' conftest.er1 >conftest.err
  4561.   rm -f conftest.er1
  4562.   cat conftest.err >&5
  4563.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4564.   (exit $ac_status); } &&
  4565.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  4566.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4567.   (eval $ac_try) 2>&5
  4568.   ac_status=$?
  4569.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4570.   (exit $ac_status); }; } &&
  4571.      { ac_try='test -s conftest.$ac_objext'
  4572.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4573.   (eval $ac_try) 2>&5
  4574.   ac_status=$?
  4575.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4576.   (exit $ac_status); }; }; then
  4577.   ac_cv_sys_largefile_CC=' -n32'; break
  4578. else
  4579.   echo "$as_me: failed program was:" >&5
  4580. sed 's/^/| /' conftest.$ac_ext >&5
  4581.  
  4582. fi
  4583. rm -f conftest.err conftest.$ac_objext
  4584.      break
  4585.        done
  4586.        CC=$ac_save_CC
  4587.        rm -f conftest.$ac_ext
  4588.     fi
  4589. fi
  4590. echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  4591. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
  4592.   if test "$ac_cv_sys_largefile_CC" != no; then
  4593.     CC=$CC$ac_cv_sys_largefile_CC
  4594.   fi
  4595.  
  4596.   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  4597. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
  4598. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  4599.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4600. else
  4601.   while :; do
  4602.   ac_cv_sys_file_offset_bits=no
  4603.   cat >conftest.$ac_ext <<_ACEOF
  4604. /* confdefs.h.  */
  4605. _ACEOF
  4606. cat confdefs.h >>conftest.$ac_ext
  4607. cat >>conftest.$ac_ext <<_ACEOF
  4608. /* end confdefs.h.  */
  4609. #include <sys/types.h>
  4610.  /* Check that off_t can represent 2**63 - 1 correctly.
  4611.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4612.     since some C++ compilers masquerading as C compilers
  4613.     incorrectly reject 9223372036854775807.  */
  4614. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4615.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4616.                && LARGE_OFF_T % 2147483647 == 1)
  4617.               ? 1 : -1];
  4618. int
  4619. main ()
  4620. {
  4621.  
  4622.   ;
  4623.   return 0;
  4624. }
  4625. _ACEOF
  4626. rm -f conftest.$ac_objext
  4627. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4628.   (eval $ac_compile) 2>conftest.er1
  4629.   ac_status=$?
  4630.   grep -v '^ *+' conftest.er1 >conftest.err
  4631.   rm -f conftest.er1
  4632.   cat conftest.err >&5
  4633.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4634.   (exit $ac_status); } &&
  4635.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  4636.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4637.   (eval $ac_try) 2>&5
  4638.   ac_status=$?
  4639.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4640.   (exit $ac_status); }; } &&
  4641.      { ac_try='test -s conftest.$ac_objext'
  4642.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4643.   (eval $ac_try) 2>&5
  4644.   ac_status=$?
  4645.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4646.   (exit $ac_status); }; }; then
  4647.   break
  4648. else
  4649.   echo "$as_me: failed program was:" >&5
  4650. sed 's/^/| /' conftest.$ac_ext >&5
  4651.  
  4652. fi
  4653. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4654.   cat >conftest.$ac_ext <<_ACEOF
  4655. /* confdefs.h.  */
  4656. _ACEOF
  4657. cat confdefs.h >>conftest.$ac_ext
  4658. cat >>conftest.$ac_ext <<_ACEOF
  4659. /* end confdefs.h.  */
  4660. #define _FILE_OFFSET_BITS 64
  4661. #include <sys/types.h>
  4662.  /* Check that off_t can represent 2**63 - 1 correctly.
  4663.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4664.     since some C++ compilers masquerading as C compilers
  4665.     incorrectly reject 9223372036854775807.  */
  4666. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4667.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4668.                && LARGE_OFF_T % 2147483647 == 1)
  4669.               ? 1 : -1];
  4670. int
  4671. main ()
  4672. {
  4673.  
  4674.   ;
  4675.   return 0;
  4676. }
  4677. _ACEOF
  4678. rm -f conftest.$ac_objext
  4679. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4680.   (eval $ac_compile) 2>conftest.er1
  4681.   ac_status=$?
  4682.   grep -v '^ *+' conftest.er1 >conftest.err
  4683.   rm -f conftest.er1
  4684.   cat conftest.err >&5
  4685.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4686.   (exit $ac_status); } &&
  4687.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  4688.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4689.   (eval $ac_try) 2>&5
  4690.   ac_status=$?
  4691.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4692.   (exit $ac_status); }; } &&
  4693.      { ac_try='test -s conftest.$ac_objext'
  4694.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4695.   (eval $ac_try) 2>&5
  4696.   ac_status=$?
  4697.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4698.   (exit $ac_status); }; }; then
  4699.   ac_cv_sys_file_offset_bits=64; break
  4700. else
  4701.   echo "$as_me: failed program was:" >&5
  4702. sed 's/^/| /' conftest.$ac_ext >&5
  4703.  
  4704. fi
  4705. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4706.   break
  4707. done
  4708. fi
  4709. echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  4710. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
  4711. if test "$ac_cv_sys_file_offset_bits" != no; then
  4712.  
  4713. cat >>confdefs.h <<_ACEOF
  4714. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  4715. _ACEOF
  4716.  
  4717. fi
  4718. rm -f conftest*
  4719.   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  4720. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
  4721. if test "${ac_cv_sys_large_files+set}" = set; then
  4722.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4723. else
  4724.   while :; do
  4725.   ac_cv_sys_large_files=no
  4726.   cat >conftest.$ac_ext <<_ACEOF
  4727. /* confdefs.h.  */
  4728. _ACEOF
  4729. cat confdefs.h >>conftest.$ac_ext
  4730. cat >>conftest.$ac_ext <<_ACEOF
  4731. /* end confdefs.h.  */
  4732. #include <sys/types.h>
  4733.  /* Check that off_t can represent 2**63 - 1 correctly.
  4734.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4735.     since some C++ compilers masquerading as C compilers
  4736.     incorrectly reject 9223372036854775807.  */
  4737. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4738.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4739.                && LARGE_OFF_T % 2147483647 == 1)
  4740.               ? 1 : -1];
  4741. int
  4742. main ()
  4743. {
  4744.  
  4745.   ;
  4746.   return 0;
  4747. }
  4748. _ACEOF
  4749. rm -f conftest.$ac_objext
  4750. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4751.   (eval $ac_compile) 2>conftest.er1
  4752.   ac_status=$?
  4753.   grep -v '^ *+' conftest.er1 >conftest.err
  4754.   rm -f conftest.er1
  4755.   cat conftest.err >&5
  4756.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4757.   (exit $ac_status); } &&
  4758.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  4759.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4760.   (eval $ac_try) 2>&5
  4761.   ac_status=$?
  4762.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4763.   (exit $ac_status); }; } &&
  4764.      { ac_try='test -s conftest.$ac_objext'
  4765.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4766.   (eval $ac_try) 2>&5
  4767.   ac_status=$?
  4768.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4769.   (exit $ac_status); }; }; then
  4770.   break
  4771. else
  4772.   echo "$as_me: failed program was:" >&5
  4773. sed 's/^/| /' conftest.$ac_ext >&5
  4774.  
  4775. fi
  4776. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4777.   cat >conftest.$ac_ext <<_ACEOF
  4778. /* confdefs.h.  */
  4779. _ACEOF
  4780. cat confdefs.h >>conftest.$ac_ext
  4781. cat >>conftest.$ac_ext <<_ACEOF
  4782. /* end confdefs.h.  */
  4783. #define _LARGE_FILES 1
  4784. #include <sys/types.h>
  4785.  /* Check that off_t can represent 2**63 - 1 correctly.
  4786.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4787.     since some C++ compilers masquerading as C compilers
  4788.     incorrectly reject 9223372036854775807.  */
  4789. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4790.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4791.                && LARGE_OFF_T % 2147483647 == 1)
  4792.               ? 1 : -1];
  4793. int
  4794. main ()
  4795. {
  4796.  
  4797.   ;
  4798.   return 0;
  4799. }
  4800. _ACEOF
  4801. rm -f conftest.$ac_objext
  4802. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4803.   (eval $ac_compile) 2>conftest.er1
  4804.   ac_status=$?
  4805.   grep -v '^ *+' conftest.er1 >conftest.err
  4806.   rm -f conftest.er1
  4807.   cat conftest.err >&5
  4808.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4809.   (exit $ac_status); } &&
  4810.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  4811.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4812.   (eval $ac_try) 2>&5
  4813.   ac_status=$?
  4814.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4815.   (exit $ac_status); }; } &&
  4816.      { ac_try='test -s conftest.$ac_objext'
  4817.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4818.   (eval $ac_try) 2>&5
  4819.   ac_status=$?
  4820.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4821.   (exit $ac_status); }; }; then
  4822.   ac_cv_sys_large_files=1; break
  4823. else
  4824.   echo "$as_me: failed program was:" >&5
  4825. sed 's/^/| /' conftest.$ac_ext >&5
  4826.  
  4827. fi
  4828. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4829.   break
  4830. done
  4831. fi
  4832. echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  4833. echo "${ECHO_T}$ac_cv_sys_large_files" >&6
  4834. if test "$ac_cv_sys_large_files" != no; then
  4835.  
  4836. cat >>confdefs.h <<_ACEOF
  4837. #define _LARGE_FILES $ac_cv_sys_large_files
  4838. _ACEOF
  4839.  
  4840. fi
  4841. rm -f conftest*
  4842. fi
  4843.  
  4844. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4845.  
  4846.  
  4847.  
  4848.  
  4849.  
  4850.  
  4851.  
  4852.  
  4853.  
  4854. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4855.           inttypes.h stdint.h unistd.h
  4856. do
  4857. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4858. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4859. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4860. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4861.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4862. else
  4863.   cat >conftest.$ac_ext <<_ACEOF
  4864. /* confdefs.h.  */
  4865. _ACEOF
  4866. cat confdefs.h >>conftest.$ac_ext
  4867. cat >>conftest.$ac_ext <<_ACEOF
  4868. /* end confdefs.h.  */
  4869. $ac_includes_default
  4870.  
  4871. #include <$ac_header>
  4872. _ACEOF
  4873. rm -f conftest.$ac_objext
  4874. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4875.   (eval $ac_compile) 2>conftest.er1
  4876.   ac_status=$?
  4877.   grep -v '^ *+' conftest.er1 >conftest.err
  4878.   rm -f conftest.er1
  4879.   cat conftest.err >&5
  4880.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4881.   (exit $ac_status); } &&
  4882.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  4883.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4884.   (eval $ac_try) 2>&5
  4885.   ac_status=$?
  4886.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4887.   (exit $ac_status); }; } &&
  4888.      { ac_try='test -s conftest.$ac_objext'
  4889.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4890.   (eval $ac_try) 2>&5
  4891.   ac_status=$?
  4892.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4893.   (exit $ac_status); }; }; then
  4894.   eval "$as_ac_Header=yes"
  4895. else
  4896.   echo "$as_me: failed program was:" >&5
  4897. sed 's/^/| /' conftest.$ac_ext >&5
  4898.  
  4899. eval "$as_ac_Header=no"
  4900. fi
  4901. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4902. fi
  4903. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4904. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4905. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4906.   cat >>confdefs.h <<_ACEOF
  4907. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4908. _ACEOF
  4909.  
  4910. fi
  4911.  
  4912. done
  4913.  
  4914.  
  4915. echo "$as_me:$LINENO: checking for off_t" >&5
  4916. echo $ECHO_N "checking for off_t... $ECHO_C" >&6
  4917. if test "${ac_cv_type_off_t+set}" = set; then
  4918.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4919. else
  4920.   cat >conftest.$ac_ext <<_ACEOF
  4921. /* confdefs.h.  */
  4922. _ACEOF
  4923. cat confdefs.h >>conftest.$ac_ext
  4924. cat >>conftest.$ac_ext <<_ACEOF
  4925. /* end confdefs.h.  */
  4926. $ac_includes_default
  4927. int
  4928. main ()
  4929. {
  4930. if ((off_t *) 0)
  4931.   return 0;
  4932. if (sizeof (off_t))
  4933.   return 0;
  4934.   ;
  4935.   return 0;
  4936. }
  4937. _ACEOF
  4938. rm -f conftest.$ac_objext
  4939. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4940.   (eval $ac_compile) 2>conftest.er1
  4941.   ac_status=$?
  4942.   grep -v '^ *+' conftest.er1 >conftest.err
  4943.   rm -f conftest.er1
  4944.   cat conftest.err >&5
  4945.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4946.   (exit $ac_status); } &&
  4947.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  4948.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4949.   (eval $ac_try) 2>&5
  4950.   ac_status=$?
  4951.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4952.   (exit $ac_status); }; } &&
  4953.      { ac_try='test -s conftest.$ac_objext'
  4954.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4955.   (eval $ac_try) 2>&5
  4956.   ac_status=$?
  4957.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4958.   (exit $ac_status); }; }; then
  4959.   ac_cv_type_off_t=yes
  4960. else
  4961.   echo "$as_me: failed program was:" >&5
  4962. sed 's/^/| /' conftest.$ac_ext >&5
  4963.  
  4964. ac_cv_type_off_t=no
  4965. fi
  4966. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4967. fi
  4968. echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  4969. echo "${ECHO_T}$ac_cv_type_off_t" >&6
  4970. if test $ac_cv_type_off_t = yes; then
  4971.   :
  4972. else
  4973.  
  4974. cat >>confdefs.h <<_ACEOF
  4975. #define off_t long
  4976. _ACEOF
  4977.  
  4978. fi
  4979.  
  4980. echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  4981. echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
  4982. if test "${ac_cv_sys_largefile_source+set}" = set; then
  4983.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4984. else
  4985.   while :; do
  4986.   ac_cv_sys_largefile_source=no
  4987.   cat >conftest.$ac_ext <<_ACEOF
  4988. /* confdefs.h.  */
  4989. _ACEOF
  4990. cat confdefs.h >>conftest.$ac_ext
  4991. cat >>conftest.$ac_ext <<_ACEOF
  4992. /* end confdefs.h.  */
  4993. #include <stdio.h>
  4994. int
  4995. main ()
  4996. {
  4997. return !fseeko;
  4998.   ;
  4999.   return 0;
  5000. }
  5001. _ACEOF
  5002. rm -f conftest.$ac_objext
  5003. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5004.   (eval $ac_compile) 2>conftest.er1
  5005.   ac_status=$?
  5006.   grep -v '^ *+' conftest.er1 >conftest.err
  5007.   rm -f conftest.er1
  5008.   cat conftest.err >&5
  5009.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5010.   (exit $ac_status); } &&
  5011.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  5012.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5013.   (eval $ac_try) 2>&5
  5014.   ac_status=$?
  5015.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5016.   (exit $ac_status); }; } &&
  5017.      { ac_try='test -s conftest.$ac_objext'
  5018.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5019.   (eval $ac_try) 2>&5
  5020.   ac_status=$?
  5021.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5022.   (exit $ac_status); }; }; then
  5023.   break
  5024. else
  5025.   echo "$as_me: failed program was:" >&5
  5026. sed 's/^/| /' conftest.$ac_ext >&5
  5027.  
  5028. fi
  5029. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5030.   cat >conftest.$ac_ext <<_ACEOF
  5031. /* confdefs.h.  */
  5032. _ACEOF
  5033. cat confdefs.h >>conftest.$ac_ext
  5034. cat >>conftest.$ac_ext <<_ACEOF
  5035. /* end confdefs.h.  */
  5036. #define _LARGEFILE_SOURCE 1
  5037. #include <stdio.h>
  5038. int
  5039. main ()
  5040. {
  5041. return !fseeko;
  5042.   ;
  5043.   return 0;
  5044. }
  5045. _ACEOF
  5046. rm -f conftest.$ac_objext
  5047. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5048.   (eval $ac_compile) 2>conftest.er1
  5049.   ac_status=$?
  5050.   grep -v '^ *+' conftest.er1 >conftest.err
  5051.   rm -f conftest.er1
  5052.   cat conftest.err >&5
  5053.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5054.   (exit $ac_status); } &&
  5055.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  5056.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5057.   (eval $ac_try) 2>&5
  5058.   ac_status=$?
  5059.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5060.   (exit $ac_status); }; } &&
  5061.      { ac_try='test -s conftest.$ac_objext'
  5062.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5063.   (eval $ac_try) 2>&5
  5064.   ac_status=$?
  5065.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5066.   (exit $ac_status); }; }; then
  5067.   ac_cv_sys_largefile_source=1; break
  5068. else
  5069.   echo "$as_me: failed program was:" >&5
  5070. sed 's/^/| /' conftest.$ac_ext >&5
  5071.  
  5072. fi
  5073. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5074.   break
  5075. done
  5076. fi
  5077. echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
  5078. echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
  5079. if test "$ac_cv_sys_largefile_source" != no; then
  5080.  
  5081. cat >>confdefs.h <<_ACEOF
  5082. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  5083. _ACEOF
  5084.  
  5085. fi
  5086. rm -f conftest*
  5087.  
  5088. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  5089. # in glibc 2.1.3, but that breaks too many other things.
  5090. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  5091. echo "$as_me:$LINENO: checking for fseeko" >&5
  5092. echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
  5093. if test "${ac_cv_func_fseeko+set}" = set; then
  5094.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5095. else
  5096.   cat >conftest.$ac_ext <<_ACEOF
  5097. /* confdefs.h.  */
  5098. _ACEOF
  5099. cat confdefs.h >>conftest.$ac_ext
  5100. cat >>conftest.$ac_ext <<_ACEOF
  5101. /* end confdefs.h.  */
  5102. #include <stdio.h>
  5103. int
  5104. main ()
  5105. {
  5106. return fseeko && fseeko (stdin, 0, 0);
  5107.   ;
  5108.   return 0;
  5109. }
  5110. _ACEOF
  5111. rm -f conftest.$ac_objext conftest$ac_exeext
  5112. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5113.   (eval $ac_link) 2>conftest.er1
  5114.   ac_status=$?
  5115.   grep -v '^ *+' conftest.er1 >conftest.err
  5116.   rm -f conftest.er1
  5117.   cat conftest.err >&5
  5118.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5119.   (exit $ac_status); } &&
  5120.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  5121.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5122.   (eval $ac_try) 2>&5
  5123.   ac_status=$?
  5124.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5125.   (exit $ac_status); }; } &&
  5126.      { ac_try='test -s conftest$ac_exeext'
  5127.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5128.   (eval $ac_try) 2>&5
  5129.   ac_status=$?
  5130.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5131.   (exit $ac_status); }; }; then
  5132.   ac_cv_func_fseeko=yes
  5133. else
  5134.   echo "$as_me: failed program was:" >&5
  5135. sed 's/^/| /' conftest.$ac_ext >&5
  5136.  
  5137. ac_cv_func_fseeko=no
  5138. fi
  5139. rm -f conftest.err conftest.$ac_objext \
  5140.       conftest$ac_exeext conftest.$ac_ext
  5141. fi
  5142. echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
  5143. echo "${ECHO_T}$ac_cv_func_fseeko" >&6
  5144. if test $ac_cv_func_fseeko = yes; then
  5145.  
  5146. cat >>confdefs.h <<\_ACEOF
  5147. #define HAVE_FSEEKO 1
  5148. _ACEOF
  5149.  
  5150. fi
  5151.  
  5152.  
  5153. # Check whether --enable-shared or --disable-shared was given.
  5154. if test "${enable_shared+set}" = set; then
  5155.   enableval="$enable_shared"
  5156.   p=${PACKAGE-default}
  5157.     case $enableval in
  5158.     yes) enable_shared=yes ;;
  5159.     no) enable_shared=no ;;
  5160.     *)
  5161.       enable_shared=no
  5162.       # Look at the argument we got.  We use all the common list separators.
  5163.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  5164.       for pkg in $enableval; do
  5165.     IFS="$lt_save_ifs"
  5166.     if test "X$pkg" = "X$p"; then
  5167.       enable_shared=yes
  5168.     fi
  5169.       done
  5170.       IFS="$lt_save_ifs"
  5171.       ;;
  5172.     esac
  5173. else
  5174.   enable_shared=yes
  5175. fi;
  5176.  
  5177. # Check whether --enable-static or --disable-static was given.
  5178. if test "${enable_static+set}" = set; then
  5179.   enableval="$enable_static"
  5180.   p=${PACKAGE-default}
  5181.     case $enableval in
  5182.     yes) enable_static=yes ;;
  5183.     no) enable_static=no ;;
  5184.     *)
  5185.      enable_static=no
  5186.       # Look at the argument we got.  We use all the common list separators.
  5187.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  5188.       for pkg in $enableval; do
  5189.     IFS="$lt_save_ifs"
  5190.     if test "X$pkg" = "X$p"; then
  5191.       enable_static=yes
  5192.     fi
  5193.       done
  5194.       IFS="$lt_save_ifs"
  5195.       ;;
  5196.     esac
  5197. else
  5198.   enable_static=yes
  5199. fi;
  5200.  
  5201. # Check whether --enable-fast-install or --disable-fast-install was given.
  5202. if test "${enable_fast_install+set}" = set; then
  5203.   enableval="$enable_fast_install"
  5204.   p=${PACKAGE-default}
  5205.     case $enableval in
  5206.     yes) enable_fast_install=yes ;;
  5207.     no) enable_fast_install=no ;;
  5208.     *)
  5209.       enable_fast_install=no
  5210.       # Look at the argument we got.  We use all the common list separators.
  5211.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  5212.       for pkg in $enableval; do
  5213.     IFS="$lt_save_ifs"
  5214.     if test "X$pkg" = "X$p"; then
  5215.       enable_fast_install=yes
  5216.     fi
  5217.       done
  5218.       IFS="$lt_save_ifs"
  5219.       ;;
  5220.     esac
  5221. else
  5222.   enable_fast_install=yes
  5223. fi;
  5224.  
  5225. echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  5226. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  5227. if test "${lt_cv_path_SED+set}" = set; then
  5228.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5229. else
  5230.   # Loop through the user's path and test for sed and gsed.
  5231. # Then use that list of sed's as ones to test for truncation.
  5232. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5233. for as_dir in $PATH
  5234. do
  5235.   IFS=$as_save_IFS
  5236.   test -z "$as_dir" && as_dir=.
  5237.   for lt_ac_prog in sed gsed; do
  5238.     for ac_exec_ext in '' $ac_executable_extensions; do
  5239.       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  5240.         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  5241.       fi
  5242.     done
  5243.   done
  5244. done
  5245. lt_ac_max=0
  5246. lt_ac_count=0
  5247. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  5248. # along with /bin/sed that truncates output.
  5249. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  5250.   test ! -f $lt_ac_sed && break
  5251.   cat /dev/null > conftest.in
  5252.   lt_ac_count=0
  5253.   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  5254.   # Check for GNU sed and select it if it is found.
  5255.   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  5256.     lt_cv_path_SED=$lt_ac_sed
  5257.     break
  5258.   fi
  5259.   while true; do
  5260.     cat conftest.in conftest.in >conftest.tmp
  5261.     mv conftest.tmp conftest.in
  5262.     cp conftest.in conftest.nl
  5263.     echo >>conftest.nl
  5264.     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  5265.     cmp -s conftest.out conftest.nl || break
  5266.     # 10000 chars as input seems more than enough
  5267.     test $lt_ac_count -gt 10 && break
  5268.     lt_ac_count=`expr $lt_ac_count + 1`
  5269.     if test $lt_ac_count -gt $lt_ac_max; then
  5270.       lt_ac_max=$lt_ac_count
  5271.       lt_cv_path_SED=$lt_ac_sed
  5272.     fi
  5273.   done
  5274. done
  5275. SED=$lt_cv_path_SED
  5276.  
  5277. fi
  5278.  
  5279. echo "$as_me:$LINENO: result: $SED" >&5
  5280. echo "${ECHO_T}$SED" >&6
  5281.  
  5282.  
  5283. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  5284. if test "${with_gnu_ld+set}" = set; then
  5285.   withval="$with_gnu_ld"
  5286.   test "$withval" = no || with_gnu_ld=yes
  5287. else
  5288.   with_gnu_ld=no
  5289. fi;
  5290. ac_prog=ld
  5291. if test "$GCC" = yes; then
  5292.   # Check if gcc -print-prog-name=ld gives a path.
  5293.   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  5294. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  5295.   case $host in
  5296.   *-*-mingw*)
  5297.     # gcc leaves a trailing carriage return which upsets mingw
  5298.     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5299.   *)
  5300.     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5301.   esac
  5302.   case $ac_prog in
  5303.     # Accept absolute paths.
  5304.     [\\/]* | ?:[\\/]*)
  5305.       re_direlt='/[^/][^/]*/\.\./'
  5306.       # Canonicalize the pathname of ld
  5307.       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  5308.       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  5309.     ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  5310.       done
  5311.       test -z "$LD" && LD="$ac_prog"
  5312.       ;;
  5313.   "")
  5314.     # If it fails, then pretend we aren't using GCC.
  5315.     ac_prog=ld
  5316.     ;;
  5317.   *)
  5318.     # If it is relative, then search for the first ld in PATH.
  5319.     with_gnu_ld=unknown
  5320.     ;;
  5321.   esac
  5322. elif test "$with_gnu_ld" = yes; then
  5323.   echo "$as_me:$LINENO: checking for GNU ld" >&5
  5324. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  5325. else
  5326.   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  5327. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  5328. fi
  5329. if test "${lt_cv_path_LD+set}" = set; then
  5330.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5331. else
  5332.   if test -z "$LD"; then
  5333.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5334.   for ac_dir in $PATH; do
  5335.     IFS="$lt_save_ifs"
  5336.     test -z "$ac_dir" && ac_dir=.
  5337.     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5338.       lt_cv_path_LD="$ac_dir/$ac_prog"
  5339.       # Check to see if the program is GNU ld.  I'd rather use --version,
  5340.       # but apparently some GNU ld's only accept -v.
  5341.       # Break only if it was the GNU/non-GNU ld that we prefer.
  5342.       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5343.       *GNU* | *'with BFD'*)
  5344.     test "$with_gnu_ld" != no && break
  5345.     ;;
  5346.       *)
  5347.     test "$with_gnu_ld" != yes && break
  5348.     ;;
  5349.       esac
  5350.     fi
  5351.   done
  5352.   IFS="$lt_save_ifs"
  5353. else
  5354.   lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5355. fi
  5356. fi
  5357.  
  5358. LD="$lt_cv_path_LD"
  5359. if test -n "$LD"; then
  5360.   echo "$as_me:$LINENO: result: $LD" >&5
  5361. echo "${ECHO_T}$LD" >&6
  5362. else
  5363.   echo "$as_me:$LINENO: result: no" >&5
  5364. echo "${ECHO_T}no" >&6
  5365. fi
  5366. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  5367. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  5368.    { (exit 1); exit 1; }; }
  5369. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  5370. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  5371. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  5372.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5373. else
  5374.   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  5375. case `$LD -v 2>&1 </dev/null` in
  5376. *GNU* | *'with BFD'*)
  5377.   lt_cv_prog_gnu_ld=yes
  5378.   ;;
  5379. *)
  5380.   lt_cv_prog_gnu_ld=no
  5381.   ;;
  5382. esac
  5383. fi
  5384. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  5385. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  5386. with_gnu_ld=$lt_cv_prog_gnu_ld
  5387.  
  5388.  
  5389. echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  5390. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  5391. if test "${lt_cv_ld_reload_flag+set}" = set; then
  5392.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5393. else
  5394.   lt_cv_ld_reload_flag='-r'
  5395. fi
  5396. echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  5397. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  5398. reload_flag=$lt_cv_ld_reload_flag
  5399. case $reload_flag in
  5400. "" | " "*) ;;
  5401. *) reload_flag=" $reload_flag" ;;
  5402. esac
  5403. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5404.  
  5405. echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  5406. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  5407. if test "${lt_cv_path_NM+set}" = set; then
  5408.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5409. else
  5410.   if test -n "$NM"; then
  5411.   # Let the user override the test.
  5412.   lt_cv_path_NM="$NM"
  5413. else
  5414.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5415.   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  5416.     IFS="$lt_save_ifs"
  5417.     test -z "$ac_dir" && ac_dir=.
  5418.     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  5419.     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5420.       # Check to see if the nm accepts a BSD-compat flag.
  5421.       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5422.       #   nm: unknown option "B" ignored
  5423.       # Tru64's nm complains that /dev/null is an invalid object file
  5424.       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5425.       */dev/null* | *'Invalid file or object type'*)
  5426.     lt_cv_path_NM="$tmp_nm -B"
  5427.     break
  5428.         ;;
  5429.       *)
  5430.     case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5431.     */dev/null*)
  5432.       lt_cv_path_NM="$tmp_nm -p"
  5433.       break
  5434.       ;;
  5435.     *)
  5436.       lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5437.       continue # so that we can try to find one that supports BSD flags
  5438.       ;;
  5439.     esac
  5440.       esac
  5441.     fi
  5442.   done
  5443.   IFS="$lt_save_ifs"
  5444.   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  5445. fi
  5446. fi
  5447. echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  5448. echo "${ECHO_T}$lt_cv_path_NM" >&6
  5449. NM="$lt_cv_path_NM"
  5450.  
  5451. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  5452. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  5453. LN_S=$as_ln_s
  5454. if test "$LN_S" = "ln -s"; then
  5455.   echo "$as_me:$LINENO: result: yes" >&5
  5456. echo "${ECHO_T}yes" >&6
  5457. else
  5458.   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  5459. echo "${ECHO_T}no, using $LN_S" >&6
  5460. fi
  5461.  
  5462. echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  5463. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  5464. if test "${lt_cv_deplibs_check_method+set}" = set; then
  5465.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5466. else
  5467.   lt_cv_file_magic_cmd='$MAGIC_CMD'
  5468. lt_cv_file_magic_test_file=
  5469. lt_cv_deplibs_check_method='unknown'
  5470. # Need to set the preceding variable on all platforms that support
  5471. # interlibrary dependencies.
  5472. # 'none' -- dependencies not supported.
  5473. # `unknown' -- same as none, but documents that we really don't know.
  5474. # 'pass_all' -- all dependencies passed with no checks.
  5475. # 'test_compile' -- check by making test program.
  5476. # 'file_magic [[regex]]' -- check by looking for files in library path
  5477. # which responds to the $file_magic_cmd with a given extended regex.
  5478. # If you have `file' or equivalent on your system and you're not sure
  5479. # whether `pass_all' will *always* work, you probably want this one.
  5480.  
  5481. case $host_os in
  5482. aix4* | aix5*)
  5483.   lt_cv_deplibs_check_method=pass_all
  5484.   ;;
  5485.  
  5486. beos*)
  5487.   lt_cv_deplibs_check_method=pass_all
  5488.   ;;
  5489.  
  5490. bsdi4*)
  5491.   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5492.   lt_cv_file_magic_cmd='/usr/bin/file -L'
  5493.   lt_cv_file_magic_test_file=/shlib/libc.so
  5494.   ;;
  5495.  
  5496. cygwin*)
  5497.   # func_win32_libid is a shell function defined in ltmain.sh
  5498.   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5499.   lt_cv_file_magic_cmd='func_win32_libid'
  5500.   ;;
  5501.  
  5502. mingw* | pw32*)
  5503.   # Base MSYS/MinGW do not provide the 'file' command needed by
  5504.   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  5505.   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5506.   lt_cv_file_magic_cmd='$OBJDUMP -f'
  5507.   ;;
  5508.  
  5509. darwin* | rhapsody*)
  5510.   lt_cv_deplibs_check_method=pass_all
  5511.   ;;
  5512.  
  5513. freebsd* | kfreebsd*-gnu)
  5514.   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  5515.     case $host_cpu in
  5516.     i*86 )
  5517.       # Not sure whether the presence of OpenBSD here was a mistake.
  5518.       # Let's accept both of them until this is cleared up.
  5519.       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
  5520.       lt_cv_file_magic_cmd=/usr/bin/file
  5521.       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5522.       ;;
  5523.     esac
  5524.   else
  5525.     lt_cv_deplibs_check_method=pass_all
  5526.   fi
  5527.   ;;
  5528.  
  5529. gnu*)
  5530.   lt_cv_deplibs_check_method=pass_all
  5531.   ;;
  5532.  
  5533. hpux10.20* | hpux11*)
  5534.   lt_cv_file_magic_cmd=/usr/bin/file
  5535.   case "$host_cpu" in
  5536.   ia64*)
  5537.     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5538.     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5539.     ;;
  5540.   hppa*64*)
  5541.     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]'
  5542.     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5543.     ;;
  5544.   *)
  5545.     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  5546.     lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5547.     ;;
  5548.   esac
  5549.   ;;
  5550.  
  5551. irix5* | irix6* | nonstopux*)
  5552.   case $LD in
  5553.   *-32|*"-32 ") libmagic=32-bit;;
  5554.   *-n32|*"-n32 ") libmagic=N32;;
  5555.   *-64|*"-64 ") libmagic=64-bit;;
  5556.   *) libmagic=never-match;;
  5557.   esac
  5558.   lt_cv_deplibs_check_method=pass_all
  5559.   ;;
  5560.  
  5561. # This must be Linux ELF.
  5562. linux*)
  5563.   lt_cv_deplibs_check_method=pass_all
  5564.   ;;
  5565.  
  5566. netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  5567.   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  5568.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5569.   else
  5570.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5571.   fi
  5572.   ;;
  5573.  
  5574. newos6*)
  5575.   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5576.   lt_cv_file_magic_cmd=/usr/bin/file
  5577.   lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5578.   ;;
  5579.  
  5580. nto-qnx*)
  5581.   lt_cv_deplibs_check_method=unknown
  5582.   ;;
  5583.  
  5584. openbsd*)
  5585.   lt_cv_file_magic_cmd=/usr/bin/file
  5586.   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5587.   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5588.     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
  5589.   else
  5590.     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  5591.   fi
  5592.   ;;
  5593.  
  5594. osf3* | osf4* | osf5*)
  5595.   lt_cv_deplibs_check_method=pass_all
  5596.   ;;
  5597.  
  5598. sco3.2v5*)
  5599.   lt_cv_deplibs_check_method=pass_all
  5600.   ;;
  5601.  
  5602. solaris*)
  5603.   lt_cv_deplibs_check_method=pass_all
  5604.   ;;
  5605.  
  5606. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5607.   case $host_vendor in
  5608.   motorola)
  5609.     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]'
  5610.     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5611.     ;;
  5612.   ncr)
  5613.     lt_cv_deplibs_check_method=pass_all
  5614.     ;;
  5615.   sequent)
  5616.     lt_cv_file_magic_cmd='/bin/file'
  5617.     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5618.     ;;
  5619.   sni)
  5620.     lt_cv_file_magic_cmd='/bin/file'
  5621.     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5622.     lt_cv_file_magic_test_file=/lib/libc.so
  5623.     ;;
  5624.   siemens)
  5625.     lt_cv_deplibs_check_method=pass_all
  5626.     ;;
  5627.   esac
  5628.   ;;
  5629.  
  5630. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
  5631.   lt_cv_deplibs_check_method=pass_all
  5632.   ;;
  5633. esac
  5634.  
  5635. fi
  5636. echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  5637. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  5638. file_magic_cmd=$lt_cv_file_magic_cmd
  5639. deplibs_check_method=$lt_cv_deplibs_check_method
  5640. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5641.  
  5642.  
  5643.  
  5644.  
  5645. # If no C compiler was specified, use CC.
  5646. LTCC=${LTCC-"$CC"}
  5647.  
  5648. # Allow CC to be a program name with arguments.
  5649. compiler=$CC
  5650.  
  5651.  
  5652. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  5653. if test "${enable_libtool_lock+set}" = set; then
  5654.   enableval="$enable_libtool_lock"
  5655.  
  5656. fi;
  5657. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5658.  
  5659. # Some flags need to be propagated to the compiler or linker for good
  5660. # libtool support.
  5661. case $host in
  5662. ia64-*-hpux*)
  5663.   # Find out which ABI we are using.
  5664.   echo 'int i;' > conftest.$ac_ext
  5665.   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5666.   (eval $ac_compile) 2>&5
  5667.   ac_status=$?
  5668.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5669.   (exit $ac_status); }; then
  5670.     case `/usr/bin/file conftest.$ac_objext` in
  5671.     *ELF-32*)
  5672.       HPUX_IA64_MODE="32"
  5673.       ;;
  5674.     *ELF-64*)
  5675.       HPUX_IA64_MODE="64"
  5676.       ;;
  5677.     esac
  5678.   fi
  5679.   rm -rf conftest*
  5680.   ;;
  5681. *-*-irix6*)
  5682.   # Find out which ABI we are using.
  5683.   echo '#line 5683 "configure"' > conftest.$ac_ext
  5684.   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5685.   (eval $ac_compile) 2>&5
  5686.   ac_status=$?
  5687.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5688.   (exit $ac_status); }; then
  5689.    if test "$lt_cv_prog_gnu_ld" = yes; then
  5690.     case `/usr/bin/file conftest.$ac_objext` in
  5691.     *32-bit*)
  5692.       LD="${LD-ld} -melf32bsmip"
  5693.       ;;
  5694.     *N32*)
  5695.       LD="${LD-ld} -melf32bmipn32"
  5696.       ;;
  5697.     *64-bit*)
  5698.       LD="${LD-ld} -melf64bmip"
  5699.       ;;
  5700.     esac
  5701.    else
  5702.     case `/usr/bin/file conftest.$ac_objext` in
  5703.     *32-bit*)
  5704.       LD="${LD-ld} -32"
  5705.       ;;
  5706.     *N32*)
  5707.       LD="${LD-ld} -n32"
  5708.       ;;
  5709.     *64-bit*)
  5710.       LD="${LD-ld} -64"
  5711.       ;;
  5712.     esac
  5713.    fi
  5714.   fi
  5715.   rm -rf conftest*
  5716.   ;;
  5717.  
  5718. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  5719.   # Find out which ABI we are using.
  5720.   echo 'int i;' > conftest.$ac_ext
  5721.   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5722.   (eval $ac_compile) 2>&5
  5723.   ac_status=$?
  5724.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5725.   (exit $ac_status); }; then
  5726.     case "`/usr/bin/file conftest.o`" in
  5727.     *32-bit*)
  5728.       case $host in
  5729.         x86_64-*linux*)
  5730.           LD="${LD-ld} -m elf_i386"
  5731.           ;;
  5732.         ppc64-*linux*|powerpc64-*linux*)
  5733.           LD="${LD-ld} -m elf32ppclinux"
  5734.           ;;
  5735.         s390x-*linux*)
  5736.           LD="${LD-ld} -m elf_s390"
  5737.           ;;
  5738.         sparc64-*linux*)
  5739.           LD="${LD-ld} -m elf32_sparc"
  5740.           ;;
  5741.       esac
  5742.       ;;
  5743.     *64-bit*)
  5744.       case $host in
  5745.         x86_64-*linux*)
  5746.           LD="${LD-ld} -m elf_x86_64"
  5747.           ;;
  5748.         ppc*-*linux*|powerpc*-*linux*)
  5749.           LD="${LD-ld} -m elf64ppc"
  5750.           ;;
  5751.         s390*-*linux*)
  5752.           LD="${LD-ld} -m elf64_s390"
  5753.           ;;
  5754.         sparc*-*linux*)
  5755.           LD="${LD-ld} -m elf64_sparc"
  5756.           ;;
  5757.       esac
  5758.       ;;
  5759.     esac
  5760.   fi
  5761.   rm -rf conftest*
  5762.   ;;
  5763.  
  5764. *-*-sco3.2v5*)
  5765.   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5766.   SAVE_CFLAGS="$CFLAGS"
  5767.   CFLAGS="$CFLAGS -belf"
  5768.   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  5769. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  5770. if test "${lt_cv_cc_needs_belf+set}" = set; then
  5771.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5772. else
  5773.   ac_ext=c
  5774. ac_cpp='$CPP $CPPFLAGS'
  5775. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5776. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5777. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5778.  
  5779.      cat >conftest.$ac_ext <<_ACEOF
  5780. /* confdefs.h.  */
  5781. _ACEOF
  5782. cat confdefs.h >>conftest.$ac_ext
  5783. cat >>conftest.$ac_ext <<_ACEOF
  5784. /* end confdefs.h.  */
  5785.  
  5786. int
  5787. main ()
  5788. {
  5789.  
  5790.   ;
  5791.   return 0;
  5792. }
  5793. _ACEOF
  5794. rm -f conftest.$ac_objext conftest$ac_exeext
  5795. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5796.   (eval $ac_link) 2>conftest.er1
  5797.   ac_status=$?
  5798.   grep -v '^ *+' conftest.er1 >conftest.err
  5799.   rm -f conftest.er1
  5800.   cat conftest.err >&5
  5801.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5802.   (exit $ac_status); } &&
  5803.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  5804.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5805.   (eval $ac_try) 2>&5
  5806.   ac_status=$?
  5807.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5808.   (exit $ac_status); }; } &&
  5809.      { ac_try='test -s conftest$ac_exeext'
  5810.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5811.   (eval $ac_try) 2>&5
  5812.   ac_status=$?
  5813.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5814.   (exit $ac_status); }; }; then
  5815.   lt_cv_cc_needs_belf=yes
  5816. else
  5817.   echo "$as_me: failed program was:" >&5
  5818. sed 's/^/| /' conftest.$ac_ext >&5
  5819.  
  5820. lt_cv_cc_needs_belf=no
  5821. fi
  5822. rm -f conftest.err conftest.$ac_objext \
  5823.       conftest$ac_exeext conftest.$ac_ext
  5824.      ac_ext=c
  5825. ac_cpp='$CPP $CPPFLAGS'
  5826. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5827. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5828. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5829.  
  5830. fi
  5831. echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  5832. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  5833.   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5834.     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5835.     CFLAGS="$SAVE_CFLAGS"
  5836.   fi
  5837.   ;;
  5838.  
  5839. esac
  5840.  
  5841. need_locks="$enable_libtool_lock"
  5842.  
  5843.  
  5844. ac_ext=c
  5845. ac_cpp='$CPP $CPPFLAGS'
  5846. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5847. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5848. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5849. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5850. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  5851. # On Suns, sometimes $CPP names a directory.
  5852. if test -n "$CPP" && test -d "$CPP"; then
  5853.   CPP=
  5854. fi
  5855. if test -z "$CPP"; then
  5856.   if test "${ac_cv_prog_CPP+set}" = set; then
  5857.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5858. else
  5859.       # Double quotes because CPP needs to be expanded
  5860.     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5861.     do
  5862.       ac_preproc_ok=false
  5863. for ac_c_preproc_warn_flag in '' yes
  5864. do
  5865.   # Use a header file that comes with gcc, so configuring glibc
  5866.   # with a fresh cross-compiler works.
  5867.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5868.   # <limits.h> exists even on freestanding compilers.
  5869.   # On the NeXT, cc -E runs the code through the compiler's parser,
  5870.   # not just through cpp. "Syntax error" is here to catch this case.
  5871.   cat >conftest.$ac_ext <<_ACEOF
  5872. /* confdefs.h.  */
  5873. _ACEOF
  5874. cat confdefs.h >>conftest.$ac_ext
  5875. cat >>conftest.$ac_ext <<_ACEOF
  5876. /* end confdefs.h.  */
  5877. #ifdef __STDC__
  5878. # include <limits.h>
  5879. #else
  5880. # include <assert.h>
  5881. #endif
  5882.              Syntax error
  5883. _ACEOF
  5884. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5885.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5886.   ac_status=$?
  5887.   grep -v '^ *+' conftest.er1 >conftest.err
  5888.   rm -f conftest.er1
  5889.   cat conftest.err >&5
  5890.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5891.   (exit $ac_status); } >/dev/null; then
  5892.   if test -s conftest.err; then
  5893.     ac_cpp_err=$ac_c_preproc_warn_flag
  5894.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5895.   else
  5896.     ac_cpp_err=
  5897.   fi
  5898. else
  5899.   ac_cpp_err=yes
  5900. fi
  5901. if test -z "$ac_cpp_err"; then
  5902.   :
  5903. else
  5904.   echo "$as_me: failed program was:" >&5
  5905. sed 's/^/| /' conftest.$ac_ext >&5
  5906.  
  5907.   # Broken: fails on valid input.
  5908. continue
  5909. fi
  5910. rm -f conftest.err conftest.$ac_ext
  5911.  
  5912.   # OK, works on sane cases.  Now check whether non-existent headers
  5913.   # can be detected and how.
  5914.   cat >conftest.$ac_ext <<_ACEOF
  5915. /* confdefs.h.  */
  5916. _ACEOF
  5917. cat confdefs.h >>conftest.$ac_ext
  5918. cat >>conftest.$ac_ext <<_ACEOF
  5919. /* end confdefs.h.  */
  5920. #include <ac_nonexistent.h>
  5921. _ACEOF
  5922. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5923.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5924.   ac_status=$?
  5925.   grep -v '^ *+' conftest.er1 >conftest.err
  5926.   rm -f conftest.er1
  5927.   cat conftest.err >&5
  5928.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5929.   (exit $ac_status); } >/dev/null; then
  5930.   if test -s conftest.err; then
  5931.     ac_cpp_err=$ac_c_preproc_warn_flag
  5932.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5933.   else
  5934.     ac_cpp_err=
  5935.   fi
  5936. else
  5937.   ac_cpp_err=yes
  5938. fi
  5939. if test -z "$ac_cpp_err"; then
  5940.   # Broken: success on invalid input.
  5941. continue
  5942. else
  5943.   echo "$as_me: failed program was:" >&5
  5944. sed 's/^/| /' conftest.$ac_ext >&5
  5945.  
  5946.   # Passes both tests.
  5947. ac_preproc_ok=:
  5948. break
  5949. fi
  5950. rm -f conftest.err conftest.$ac_ext
  5951.  
  5952. done
  5953. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5954. rm -f conftest.err conftest.$ac_ext
  5955. if $ac_preproc_ok; then
  5956.   break
  5957. fi
  5958.  
  5959.     done
  5960.     ac_cv_prog_CPP=$CPP
  5961.  
  5962. fi
  5963.   CPP=$ac_cv_prog_CPP
  5964. else
  5965.   ac_cv_prog_CPP=$CPP
  5966. fi
  5967. echo "$as_me:$LINENO: result: $CPP" >&5
  5968. echo "${ECHO_T}$CPP" >&6
  5969. ac_preproc_ok=false
  5970. for ac_c_preproc_warn_flag in '' yes
  5971. do
  5972.   # Use a header file that comes with gcc, so configuring glibc
  5973.   # with a fresh cross-compiler works.
  5974.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5975.   # <limits.h> exists even on freestanding compilers.
  5976.   # On the NeXT, cc -E runs the code through the compiler's parser,
  5977.   # not just through cpp. "Syntax error" is here to catch this case.
  5978.   cat >conftest.$ac_ext <<_ACEOF
  5979. /* confdefs.h.  */
  5980. _ACEOF
  5981. cat confdefs.h >>conftest.$ac_ext
  5982. cat >>conftest.$ac_ext <<_ACEOF
  5983. /* end confdefs.h.  */
  5984. #ifdef __STDC__
  5985. # include <limits.h>
  5986. #else
  5987. # include <assert.h>
  5988. #endif
  5989.              Syntax error
  5990. _ACEOF
  5991. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5992.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5993.   ac_status=$?
  5994.   grep -v '^ *+' conftest.er1 >conftest.err
  5995.   rm -f conftest.er1
  5996.   cat conftest.err >&5
  5997.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5998.   (exit $ac_status); } >/dev/null; then
  5999.   if test -s conftest.err; then
  6000.     ac_cpp_err=$ac_c_preproc_warn_flag
  6001.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6002.   else
  6003.     ac_cpp_err=
  6004.   fi
  6005. else
  6006.   ac_cpp_err=yes
  6007. fi
  6008. if test -z "$ac_cpp_err"; then
  6009.   :
  6010. else
  6011.   echo "$as_me: failed program was:" >&5
  6012. sed 's/^/| /' conftest.$ac_ext >&5
  6013.  
  6014.   # Broken: fails on valid input.
  6015. continue
  6016. fi
  6017. rm -f conftest.err conftest.$ac_ext
  6018.  
  6019.   # OK, works on sane cases.  Now check whether non-existent headers
  6020.   # can be detected and how.
  6021.   cat >conftest.$ac_ext <<_ACEOF
  6022. /* confdefs.h.  */
  6023. _ACEOF
  6024. cat confdefs.h >>conftest.$ac_ext
  6025. cat >>conftest.$ac_ext <<_ACEOF
  6026. /* end confdefs.h.  */
  6027. #include <ac_nonexistent.h>
  6028. _ACEOF
  6029. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6030.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6031.   ac_status=$?
  6032.   grep -v '^ *+' conftest.er1 >conftest.err
  6033.   rm -f conftest.er1
  6034.   cat conftest.err >&5
  6035.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6036.   (exit $ac_status); } >/dev/null; then
  6037.   if test -s conftest.err; then
  6038.     ac_cpp_err=$ac_c_preproc_warn_flag
  6039.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6040.   else
  6041.     ac_cpp_err=
  6042.   fi
  6043. else
  6044.   ac_cpp_err=yes
  6045. fi
  6046. if test -z "$ac_cpp_err"; then
  6047.   # Broken: success on invalid input.
  6048. continue
  6049. else
  6050.   echo "$as_me: failed program was:" >&5
  6051. sed 's/^/| /' conftest.$ac_ext >&5
  6052.  
  6053.   # Passes both tests.
  6054. ac_preproc_ok=:
  6055. break
  6056. fi
  6057. rm -f conftest.err conftest.$ac_ext
  6058.  
  6059. done
  6060. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6061. rm -f conftest.err conftest.$ac_ext
  6062. if $ac_preproc_ok; then
  6063.   :
  6064. else
  6065.   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  6066. See \`config.log' for more details." >&5
  6067. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  6068. See \`config.log' for more details." >&2;}
  6069.    { (exit 1); exit 1; }; }
  6070. fi
  6071.  
  6072. ac_ext=c
  6073. ac_cpp='$CPP $CPPFLAGS'
  6074. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6075. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6076. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6077.  
  6078.  
  6079.  
  6080. for ac_header in dlfcn.h
  6081. do
  6082. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6083. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6084.   echo "$as_me:$LINENO: checking for $ac_header" >&5
  6085. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6086. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6087.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6088. fi
  6089. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6090. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6091. else
  6092.   # Is the header compilable?
  6093. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6094. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6095. cat >conftest.$ac_ext <<_ACEOF
  6096. /* confdefs.h.  */
  6097. _ACEOF
  6098. cat confdefs.h >>conftest.$ac_ext
  6099. cat >>conftest.$ac_ext <<_ACEOF
  6100. /* end confdefs.h.  */
  6101. $ac_includes_default
  6102. #include <$ac_header>
  6103. _ACEOF
  6104. rm -f conftest.$ac_objext
  6105. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6106.   (eval $ac_compile) 2>conftest.er1
  6107.   ac_status=$?
  6108.   grep -v '^ *+' conftest.er1 >conftest.err
  6109.   rm -f conftest.er1
  6110.   cat conftest.err >&5
  6111.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6112.   (exit $ac_status); } &&
  6113.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  6114.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6115.   (eval $ac_try) 2>&5
  6116.   ac_status=$?
  6117.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6118.   (exit $ac_status); }; } &&
  6119.      { ac_try='test -s conftest.$ac_objext'
  6120.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6121.   (eval $ac_try) 2>&5
  6122.   ac_status=$?
  6123.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6124.   (exit $ac_status); }; }; then
  6125.   ac_header_compiler=yes
  6126. else
  6127.   echo "$as_me: failed program was:" >&5
  6128. sed 's/^/| /' conftest.$ac_ext >&5
  6129.  
  6130. ac_header_compiler=no
  6131. fi
  6132. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6133. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6134. echo "${ECHO_T}$ac_header_compiler" >&6
  6135.  
  6136. # Is the header present?
  6137. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6138. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6139. cat >conftest.$ac_ext <<_ACEOF
  6140. /* confdefs.h.  */
  6141. _ACEOF
  6142. cat confdefs.h >>conftest.$ac_ext
  6143. cat >>conftest.$ac_ext <<_ACEOF
  6144. /* end confdefs.h.  */
  6145. #include <$ac_header>
  6146. _ACEOF
  6147. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6148.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6149.   ac_status=$?
  6150.   grep -v '^ *+' conftest.er1 >conftest.err
  6151.   rm -f conftest.er1
  6152.   cat conftest.err >&5
  6153.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6154.   (exit $ac_status); } >/dev/null; then
  6155.   if test -s conftest.err; then
  6156.     ac_cpp_err=$ac_c_preproc_warn_flag
  6157.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6158.   else
  6159.     ac_cpp_err=
  6160.   fi
  6161. else
  6162.   ac_cpp_err=yes
  6163. fi
  6164. if test -z "$ac_cpp_err"; then
  6165.   ac_header_preproc=yes
  6166. else
  6167.   echo "$as_me: failed program was:" >&5
  6168. sed 's/^/| /' conftest.$ac_ext >&5
  6169.  
  6170.   ac_header_preproc=no
  6171. fi
  6172. rm -f conftest.err conftest.$ac_ext
  6173. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6174. echo "${ECHO_T}$ac_header_preproc" >&6
  6175.  
  6176. # So?  What about this header?
  6177. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6178.   yes:no: )
  6179.     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6180. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6181.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6182. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6183.     ac_header_preproc=yes
  6184.     ;;
  6185.   no:yes:* )
  6186.     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6187. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6188.     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
  6189. echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
  6190.     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6191. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6192.     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
  6193. echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
  6194.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6195. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6196.     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6197. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6198.     (
  6199.       cat <<\_ASBOX
  6200. ## --------------------------------------- ##
  6201. ## Report this to gopchop-bugs@outflux.net ##
  6202. ## --------------------------------------- ##
  6203. _ASBOX
  6204.     ) |
  6205.       sed "s/^/$as_me: WARNING:     /" >&2
  6206.     ;;
  6207. esac
  6208. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6209. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6210. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6211.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6212. else
  6213.   eval "$as_ac_Header=\$ac_header_preproc"
  6214. fi
  6215. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6216. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6217.  
  6218. fi
  6219. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6220.   cat >>confdefs.h <<_ACEOF
  6221. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6222. _ACEOF
  6223.  
  6224. fi
  6225.  
  6226. done
  6227.  
  6228. ac_ext=f
  6229. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  6230. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6231. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  6232. if test -n "$ac_tool_prefix"; then
  6233.   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  6234.   do
  6235.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6236. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6237. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6238. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6239. if test "${ac_cv_prog_F77+set}" = set; then
  6240.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6241. else
  6242.   if test -n "$F77"; then
  6243.   ac_cv_prog_F77="$F77" # Let the user override the test.
  6244. else
  6245. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6246. for as_dir in $PATH
  6247. do
  6248.   IFS=$as_save_IFS
  6249.   test -z "$as_dir" && as_dir=.
  6250.   for ac_exec_ext in '' $ac_executable_extensions; do
  6251.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6252.     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  6253.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6254.     break 2
  6255.   fi
  6256. done
  6257. done
  6258.  
  6259. fi
  6260. fi
  6261. F77=$ac_cv_prog_F77
  6262. if test -n "$F77"; then
  6263.   echo "$as_me:$LINENO: result: $F77" >&5
  6264. echo "${ECHO_T}$F77" >&6
  6265. else
  6266.   echo "$as_me:$LINENO: result: no" >&5
  6267. echo "${ECHO_T}no" >&6
  6268. fi
  6269.  
  6270.     test -n "$F77" && break
  6271.   done
  6272. fi
  6273. if test -z "$F77"; then
  6274.   ac_ct_F77=$F77
  6275.   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  6276. do
  6277.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  6278. set dummy $ac_prog; ac_word=$2
  6279. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6280. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6281. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  6282.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6283. else
  6284.   if test -n "$ac_ct_F77"; then
  6285.   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  6286. else
  6287. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6288. for as_dir in $PATH
  6289. do
  6290.   IFS=$as_save_IFS
  6291.   test -z "$as_dir" && as_dir=.
  6292.   for ac_exec_ext in '' $ac_executable_extensions; do
  6293.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6294.     ac_cv_prog_ac_ct_F77="$ac_prog"
  6295.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6296.     break 2
  6297.   fi
  6298. done
  6299. done
  6300.  
  6301. fi
  6302. fi
  6303. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  6304. if test -n "$ac_ct_F77"; then
  6305.   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  6306. echo "${ECHO_T}$ac_ct_F77" >&6
  6307. else
  6308.   echo "$as_me:$LINENO: result: no" >&5
  6309. echo "${ECHO_T}no" >&6
  6310. fi
  6311.  
  6312.   test -n "$ac_ct_F77" && break
  6313. done
  6314.  
  6315.   F77=$ac_ct_F77
  6316. fi
  6317.  
  6318.  
  6319. # Provide some information about the compiler.
  6320. echo "$as_me:6320:" \
  6321.      "checking for Fortran 77 compiler version" >&5
  6322. ac_compiler=`set X $ac_compile; echo $2`
  6323. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  6324.   (eval $ac_compiler --version </dev/null >&5) 2>&5
  6325.   ac_status=$?
  6326.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6327.   (exit $ac_status); }
  6328. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  6329.   (eval $ac_compiler -v </dev/null >&5) 2>&5
  6330.   ac_status=$?
  6331.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6332.   (exit $ac_status); }
  6333. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  6334.   (eval $ac_compiler -V </dev/null >&5) 2>&5
  6335.   ac_status=$?
  6336.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6337.   (exit $ac_status); }
  6338. rm -f a.out
  6339.  
  6340. # If we don't use `.F' as extension, the preprocessor is not run on the
  6341. # input file.  (Note that this only needs to work for GNU compilers.)
  6342. ac_save_ext=$ac_ext
  6343. ac_ext=F
  6344. echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  6345. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
  6346. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  6347.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6348. else
  6349.   cat >conftest.$ac_ext <<_ACEOF
  6350.       program main
  6351. #ifndef __GNUC__
  6352.        choke me
  6353. #endif
  6354.  
  6355.       end
  6356. _ACEOF
  6357. rm -f conftest.$ac_objext
  6358. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6359.   (eval $ac_compile) 2>conftest.er1
  6360.   ac_status=$?
  6361.   grep -v '^ *+' conftest.er1 >conftest.err
  6362.   rm -f conftest.er1
  6363.   cat conftest.err >&5
  6364.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6365.   (exit $ac_status); } &&
  6366.      { ac_try='test -z "$ac_f77_werror_flag"             || test ! -s conftest.err'
  6367.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6368.   (eval $ac_try) 2>&5
  6369.   ac_status=$?
  6370.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6371.   (exit $ac_status); }; } &&
  6372.      { ac_try='test -s conftest.$ac_objext'
  6373.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6374.   (eval $ac_try) 2>&5
  6375.   ac_status=$?
  6376.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6377.   (exit $ac_status); }; }; then
  6378.   ac_compiler_gnu=yes
  6379. else
  6380.   echo "$as_me: failed program was:" >&5
  6381. sed 's/^/| /' conftest.$ac_ext >&5
  6382.  
  6383. ac_compiler_gnu=no
  6384. fi
  6385. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6386. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  6387.  
  6388. fi
  6389. echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  6390. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
  6391. ac_ext=$ac_save_ext
  6392. ac_test_FFLAGS=${FFLAGS+set}
  6393. ac_save_FFLAGS=$FFLAGS
  6394. FFLAGS=
  6395. echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  6396. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
  6397. if test "${ac_cv_prog_f77_g+set}" = set; then
  6398.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6399. else
  6400.   FFLAGS=-g
  6401. cat >conftest.$ac_ext <<_ACEOF
  6402.       program main
  6403.  
  6404.       end
  6405. _ACEOF
  6406. rm -f conftest.$ac_objext
  6407. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6408.   (eval $ac_compile) 2>conftest.er1
  6409.   ac_status=$?
  6410.   grep -v '^ *+' conftest.er1 >conftest.err
  6411.   rm -f conftest.er1
  6412.   cat conftest.err >&5
  6413.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6414.   (exit $ac_status); } &&
  6415.      { ac_try='test -z "$ac_f77_werror_flag"             || test ! -s conftest.err'
  6416.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6417.   (eval $ac_try) 2>&5
  6418.   ac_status=$?
  6419.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6420.   (exit $ac_status); }; } &&
  6421.      { ac_try='test -s conftest.$ac_objext'
  6422.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6423.   (eval $ac_try) 2>&5
  6424.   ac_status=$?
  6425.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6426.   (exit $ac_status); }; }; then
  6427.   ac_cv_prog_f77_g=yes
  6428. else
  6429.   echo "$as_me: failed program was:" >&5
  6430. sed 's/^/| /' conftest.$ac_ext >&5
  6431.  
  6432. ac_cv_prog_f77_g=no
  6433. fi
  6434. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6435.  
  6436. fi
  6437. echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  6438. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
  6439. if test "$ac_test_FFLAGS" = set; then
  6440.   FFLAGS=$ac_save_FFLAGS
  6441. elif test $ac_cv_prog_f77_g = yes; then
  6442.   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  6443.     FFLAGS="-g -O2"
  6444.   else
  6445.     FFLAGS="-g"
  6446.   fi
  6447. else
  6448.   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  6449.     FFLAGS="-O2"
  6450.   else
  6451.     FFLAGS=
  6452.   fi
  6453. fi
  6454.  
  6455. G77=`test $ac_compiler_gnu = yes && echo yes`
  6456. ac_ext=cc
  6457. ac_cpp='$CXXCPP $CPPFLAGS'
  6458. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6459. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6460. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6461.  
  6462.  
  6463.  
  6464. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  6465.  
  6466. # find the maximum length of command line arguments
  6467. echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  6468. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  6469. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  6470.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6471. else
  6472.     i=0
  6473.   teststring="ABCD"
  6474.  
  6475.   case $build_os in
  6476.   msdosdjgpp*)
  6477.     # On DJGPP, this test can blow up pretty badly due to problems in libc
  6478.     # (any single argument exceeding 2000 bytes causes a buffer overrun
  6479.     # during glob expansion).  Even if it were fixed, the result of this
  6480.     # check would be larger than it should be.
  6481.     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
  6482.     ;;
  6483.  
  6484.   gnu*)
  6485.     # Under GNU Hurd, this test is not required because there is
  6486.     # no limit to the length of command line arguments.
  6487.     # Libtool will interpret -1 as no limit whatsoever
  6488.     lt_cv_sys_max_cmd_len=-1;
  6489.     ;;
  6490.  
  6491.   cygwin* | mingw*)
  6492.     # On Win9x/ME, this test blows up -- it succeeds, but takes
  6493.     # about 5 minutes as the teststring grows exponentially.
  6494.     # Worse, since 9x/ME are not pre-emptively multitasking,
  6495.     # you end up with a "frozen" computer, even though with patience
  6496.     # the test eventually succeeds (with a max line length of 256k).
  6497.     # Instead, let's just punt: use the minimum linelength reported by
  6498.     # all of the supported platforms: 8192 (on NT/2K/XP).
  6499.     lt_cv_sys_max_cmd_len=8192;
  6500.     ;;
  6501.  
  6502.   amigaos*)
  6503.     # On AmigaOS with pdksh, this test takes hours, literally.
  6504.     # So we just punt and use a minimum line length of 8192.
  6505.     lt_cv_sys_max_cmd_len=8192;
  6506.     ;;
  6507.  
  6508.  *)
  6509.     # If test is not a shell built-in, we'll probably end up computing a
  6510.     # maximum length that is only half of the actual maximum length, but
  6511.     # we can't tell.
  6512.     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  6513.            = "XX$teststring") >/dev/null 2>&1 &&
  6514.         new_result=`expr "X$teststring" : ".*" 2>&1` &&
  6515.         lt_cv_sys_max_cmd_len=$new_result &&
  6516.         test $i != 17 # 1/2 MB should be enough
  6517.     do
  6518.       i=`expr $i + 1`
  6519.       teststring=$teststring$teststring
  6520.     done
  6521.     teststring=
  6522.     # Add a significant safety factor because C++ compilers can tack on massive
  6523.     # amounts of additional arguments before passing them to the linker.
  6524.     # It appears as though 1/2 is a usable value.
  6525.     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  6526.     ;;
  6527.   esac
  6528.  
  6529. fi
  6530.  
  6531. if test -n $lt_cv_sys_max_cmd_len ; then
  6532.   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  6533. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  6534. else
  6535.   echo "$as_me:$LINENO: result: none" >&5
  6536. echo "${ECHO_T}none" >&6
  6537. fi
  6538.  
  6539.  
  6540.  
  6541.  
  6542. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6543. echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  6544. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
  6545. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  6546.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6547. else
  6548.  
  6549. # These are sane defaults that work on at least a few old systems.
  6550. # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
  6551.  
  6552. # Character class describing NM global symbol codes.
  6553. symcode='[BCDEGRST]'
  6554.  
  6555. # Regexp to match symbols that can be accessed directly from C.
  6556. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6557.  
  6558. # Transform the above into a raw symbol and a C symbol.
  6559. symxfrm='\1 \2\3 \3'
  6560.  
  6561. # Transform an extracted symbol line into a proper C declaration
  6562. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  6563.  
  6564. # Transform an extracted symbol line into symbol name and symbol address
  6565. 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'"
  6566.  
  6567. # Define system-specific variables.
  6568. case $host_os in
  6569. aix*)
  6570.   symcode='[BCDT]'
  6571.   ;;
  6572. cygwin* | mingw* | pw32*)
  6573.   symcode='[ABCDGISTW]'
  6574.   ;;
  6575. hpux*) # Its linker distinguishes data from code symbols
  6576.   if test "$host_cpu" = ia64; then
  6577.     symcode='[ABCDEGRST]'
  6578.   fi
  6579.   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6580.   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'"
  6581.   ;;
  6582. irix* | nonstopux*)
  6583.   symcode='[BCDEGRST]'
  6584.   ;;
  6585. osf*)
  6586.   symcode='[BCDEGQRST]'
  6587.   ;;
  6588. solaris* | sysv5*)
  6589.   symcode='[BDRT]'
  6590.   ;;
  6591. sysv4)
  6592.   symcode='[DFNSTU]'
  6593.   ;;
  6594. esac
  6595.  
  6596. # Handle CRLF in mingw tool chain
  6597. opt_cr=
  6598. case $build_os in
  6599. mingw*)
  6600.   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6601.   ;;
  6602. esac
  6603.  
  6604. # If we're using GNU nm, then use its standard symbol codes.
  6605. case `$NM -V 2>&1` in
  6606. *GNU* | *'with BFD'*)
  6607.   symcode='[ABCDGIRSTW]' ;;
  6608. esac
  6609.  
  6610. # Try without a prefix undercore, then with it.
  6611. for ac_symprfx in "" "_"; do
  6612.  
  6613.   # Write the raw and C identifiers.
  6614.   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[     ]\($symcode$symcode*\)[     ][     ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  6615.  
  6616.   # Check to see that the pipe works correctly.
  6617.   pipe_works=no
  6618.  
  6619.   rm -f conftest*
  6620.   cat > conftest.$ac_ext <<EOF
  6621. #ifdef __cplusplus
  6622. extern "C" {
  6623. #endif
  6624. char nm_test_var;
  6625. void nm_test_func(){}
  6626. #ifdef __cplusplus
  6627. }
  6628. #endif
  6629. int main(){nm_test_var='a';nm_test_func();return(0);}
  6630. EOF
  6631.  
  6632.   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6633.   (eval $ac_compile) 2>&5
  6634.   ac_status=$?
  6635.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6636.   (exit $ac_status); }; then
  6637.     # Now try to grab the symbols.
  6638.     nlist=conftest.nm
  6639.     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  6640.   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  6641.   ac_status=$?
  6642.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6643.   (exit $ac_status); } && test -s "$nlist"; then
  6644.       # Try sorting and uniquifying the output.
  6645.       if sort "$nlist" | uniq > "$nlist"T; then
  6646.     mv -f "$nlist"T "$nlist"
  6647.       else
  6648.     rm -f "$nlist"T
  6649.       fi
  6650.  
  6651.       # Make sure that we snagged all the symbols we need.
  6652.       if grep ' nm_test_var$' "$nlist" >/dev/null; then
  6653.     if grep ' nm_test_func$' "$nlist" >/dev/null; then
  6654.       cat <<EOF > conftest.$ac_ext
  6655. #ifdef __cplusplus
  6656. extern "C" {
  6657. #endif
  6658.  
  6659. EOF
  6660.       # Now generate the symbol file.
  6661.       eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  6662.  
  6663.       cat <<EOF >> conftest.$ac_ext
  6664. #if defined (__STDC__) && __STDC__
  6665. # define lt_ptr_t void *
  6666. #else
  6667. # define lt_ptr_t char *
  6668. # define const
  6669. #endif
  6670.  
  6671. /* The mapping between symbol names and symbols. */
  6672. const struct {
  6673.   const char *name;
  6674.   lt_ptr_t address;
  6675. }
  6676. lt_preloaded_symbols[] =
  6677. {
  6678. EOF
  6679.       $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  6680.       cat <<\EOF >> conftest.$ac_ext
  6681.   {0, (lt_ptr_t) 0}
  6682. };
  6683.  
  6684. #ifdef __cplusplus
  6685. }
  6686. #endif
  6687. EOF
  6688.       # Now try linking the two files.
  6689.       mv conftest.$ac_objext conftstm.$ac_objext
  6690.       lt_save_LIBS="$LIBS"
  6691.       lt_save_CFLAGS="$CFLAGS"
  6692.       LIBS="conftstm.$ac_objext"
  6693.       CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6694.       if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6695.   (eval $ac_link) 2>&5
  6696.   ac_status=$?
  6697.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6698.   (exit $ac_status); } && test -s conftest${ac_exeext}; then
  6699.         pipe_works=yes
  6700.       fi
  6701.       LIBS="$lt_save_LIBS"
  6702.       CFLAGS="$lt_save_CFLAGS"
  6703.     else
  6704.       echo "cannot find nm_test_func in $nlist" >&5
  6705.     fi
  6706.       else
  6707.     echo "cannot find nm_test_var in $nlist" >&5
  6708.       fi
  6709.     else
  6710.       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6711.     fi
  6712.   else
  6713.     echo "$progname: failed program was:" >&5
  6714.     cat conftest.$ac_ext >&5
  6715.   fi
  6716.   rm -f conftest* conftst*
  6717.  
  6718.   # Do not use the global_symbol_pipe unless it works.
  6719.   if test "$pipe_works" = yes; then
  6720.     break
  6721.   else
  6722.     lt_cv_sys_global_symbol_pipe=
  6723.   fi
  6724. done
  6725.  
  6726. fi
  6727.  
  6728. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6729.   lt_cv_sys_global_symbol_to_cdecl=
  6730. fi
  6731. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6732.   echo "$as_me:$LINENO: result: failed" >&5
  6733. echo "${ECHO_T}failed" >&6
  6734. else
  6735.   echo "$as_me:$LINENO: result: ok" >&5
  6736. echo "${ECHO_T}ok" >&6
  6737. fi
  6738.  
  6739. echo "$as_me:$LINENO: checking for objdir" >&5
  6740. echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  6741. if test "${lt_cv_objdir+set}" = set; then
  6742.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6743. else
  6744.   rm -f .libs 2>/dev/null
  6745. mkdir .libs 2>/dev/null
  6746. if test -d .libs; then
  6747.   lt_cv_objdir=.libs
  6748. else
  6749.   # MS-DOS does not allow filenames that begin with a dot.
  6750.   lt_cv_objdir=_libs
  6751. fi
  6752. rmdir .libs 2>/dev/null
  6753. fi
  6754. echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  6755. echo "${ECHO_T}$lt_cv_objdir" >&6
  6756. objdir=$lt_cv_objdir
  6757.  
  6758.  
  6759.  
  6760.  
  6761.  
  6762. case $host_os in
  6763. aix3*)
  6764.   # AIX sometimes has problems with the GCC collect2 program.  For some
  6765.   # reason, if we set the COLLECT_NAMES environment variable, the problems
  6766.   # vanish in a puff of smoke.
  6767.   if test "X${COLLECT_NAMES+set}" != Xset; then
  6768.     COLLECT_NAMES=
  6769.     export COLLECT_NAMES
  6770.   fi
  6771.   ;;
  6772. esac
  6773.  
  6774. # Sed substitution that helps us do robust quoting.  It backslashifies
  6775. # metacharacters that are still active within double-quoted strings.
  6776. Xsed='sed -e s/^X//'
  6777. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  6778.  
  6779. # Same as above, but do not quote variable references.
  6780. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  6781.  
  6782. # Sed substitution to delay expansion of an escaped shell variable in a
  6783. # double_quote_subst'ed string.
  6784. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6785.  
  6786. # Sed substitution to avoid accidental globbing in evaled expressions
  6787. no_glob_subst='s/\*/\\\*/g'
  6788.  
  6789. # Constants:
  6790. rm="rm -f"
  6791.  
  6792. # Global variables:
  6793. default_ofile=libtool
  6794. can_build_shared=yes
  6795.  
  6796. # All known linkers require a `.a' archive for static linking (except M$VC,
  6797. # which needs '.lib').
  6798. libext=a
  6799. ltmain="$ac_aux_dir/ltmain.sh"
  6800. ofile="$default_ofile"
  6801. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6802.  
  6803. if test -n "$ac_tool_prefix"; then
  6804.   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6805. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6806. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6807. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6808. if test "${ac_cv_prog_AR+set}" = set; then
  6809.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6810. else
  6811.   if test -n "$AR"; then
  6812.   ac_cv_prog_AR="$AR" # Let the user override the test.
  6813. else
  6814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6815. for as_dir in $PATH
  6816. do
  6817.   IFS=$as_save_IFS
  6818.   test -z "$as_dir" && as_dir=.
  6819.   for ac_exec_ext in '' $ac_executable_extensions; do
  6820.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6821.     ac_cv_prog_AR="${ac_tool_prefix}ar"
  6822.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6823.     break 2
  6824.   fi
  6825. done
  6826. done
  6827.  
  6828. fi
  6829. fi
  6830. AR=$ac_cv_prog_AR
  6831. if test -n "$AR"; then
  6832.   echo "$as_me:$LINENO: result: $AR" >&5
  6833. echo "${ECHO_T}$AR" >&6
  6834. else
  6835.   echo "$as_me:$LINENO: result: no" >&5
  6836. echo "${ECHO_T}no" >&6
  6837. fi
  6838.  
  6839. fi
  6840. if test -z "$ac_cv_prog_AR"; then
  6841.   ac_ct_AR=$AR
  6842.   # Extract the first word of "ar", so it can be a program name with args.
  6843. set dummy ar; ac_word=$2
  6844. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6845. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6846. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  6847.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6848. else
  6849.   if test -n "$ac_ct_AR"; then
  6850.   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6851. else
  6852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6853. for as_dir in $PATH
  6854. do
  6855.   IFS=$as_save_IFS
  6856.   test -z "$as_dir" && as_dir=.
  6857.   for ac_exec_ext in '' $ac_executable_extensions; do
  6858.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6859.     ac_cv_prog_ac_ct_AR="ar"
  6860.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6861.     break 2
  6862.   fi
  6863. done
  6864. done
  6865.  
  6866.   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
  6867. fi
  6868. fi
  6869. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6870. if test -n "$ac_ct_AR"; then
  6871.   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  6872. echo "${ECHO_T}$ac_ct_AR" >&6
  6873. else
  6874.   echo "$as_me:$LINENO: result: no" >&5
  6875. echo "${ECHO_T}no" >&6
  6876. fi
  6877.  
  6878.   AR=$ac_ct_AR
  6879. else
  6880.   AR="$ac_cv_prog_AR"
  6881. fi
  6882.  
  6883. if test -n "$ac_tool_prefix"; then
  6884.   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6885. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6886. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6887. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6888. if test "${ac_cv_prog_RANLIB+set}" = set; then
  6889.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6890. else
  6891.   if test -n "$RANLIB"; then
  6892.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6893. else
  6894. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6895. for as_dir in $PATH
  6896. do
  6897.   IFS=$as_save_IFS
  6898.   test -z "$as_dir" && as_dir=.
  6899.   for ac_exec_ext in '' $ac_executable_extensions; do
  6900.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6901.     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6902.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6903.     break 2
  6904.   fi
  6905. done
  6906. done
  6907.  
  6908. fi
  6909. fi
  6910. RANLIB=$ac_cv_prog_RANLIB
  6911. if test -n "$RANLIB"; then
  6912.   echo "$as_me:$LINENO: result: $RANLIB" >&5
  6913. echo "${ECHO_T}$RANLIB" >&6
  6914. else
  6915.   echo "$as_me:$LINENO: result: no" >&5
  6916. echo "${ECHO_T}no" >&6
  6917. fi
  6918.  
  6919. fi
  6920. if test -z "$ac_cv_prog_RANLIB"; then
  6921.   ac_ct_RANLIB=$RANLIB
  6922.   # Extract the first word of "ranlib", so it can be a program name with args.
  6923. set dummy ranlib; ac_word=$2
  6924. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6925. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6926. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  6927.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6928. else
  6929.   if test -n "$ac_ct_RANLIB"; then
  6930.   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6931. else
  6932. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6933. for as_dir in $PATH
  6934. do
  6935.   IFS=$as_save_IFS
  6936.   test -z "$as_dir" && as_dir=.
  6937.   for ac_exec_ext in '' $ac_executable_extensions; do
  6938.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6939.     ac_cv_prog_ac_ct_RANLIB="ranlib"
  6940.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6941.     break 2
  6942.   fi
  6943. done
  6944. done
  6945.  
  6946.   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  6947. fi
  6948. fi
  6949. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6950. if test -n "$ac_ct_RANLIB"; then
  6951.   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  6952. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  6953. else
  6954.   echo "$as_me:$LINENO: result: no" >&5
  6955. echo "${ECHO_T}no" >&6
  6956. fi
  6957.  
  6958.   RANLIB=$ac_ct_RANLIB
  6959. else
  6960.   RANLIB="$ac_cv_prog_RANLIB"
  6961. fi
  6962.  
  6963. if test -n "$ac_tool_prefix"; then
  6964.   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6965. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6966. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6967. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6968. if test "${ac_cv_prog_STRIP+set}" = set; then
  6969.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6970. else
  6971.   if test -n "$STRIP"; then
  6972.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6973. else
  6974. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6975. for as_dir in $PATH
  6976. do
  6977.   IFS=$as_save_IFS
  6978.   test -z "$as_dir" && as_dir=.
  6979.   for ac_exec_ext in '' $ac_executable_extensions; do
  6980.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6981.     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6982.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6983.     break 2
  6984.   fi
  6985. done
  6986. done
  6987.  
  6988. fi
  6989. fi
  6990. STRIP=$ac_cv_prog_STRIP
  6991. if test -n "$STRIP"; then
  6992.   echo "$as_me:$LINENO: result: $STRIP" >&5
  6993. echo "${ECHO_T}$STRIP" >&6
  6994. else
  6995.   echo "$as_me:$LINENO: result: no" >&5
  6996. echo "${ECHO_T}no" >&6
  6997. fi
  6998.  
  6999. fi
  7000. if test -z "$ac_cv_prog_STRIP"; then
  7001.   ac_ct_STRIP=$STRIP
  7002.   # Extract the first word of "strip", so it can be a program name with args.
  7003. set dummy strip; ac_word=$2
  7004. echo "$as_me:$LINENO: checking for $ac_word" >&5
  7005. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  7006. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  7007.   echo $ECHO_N "(cached) $ECHO_C" >&6
  7008. else
  7009.   if test -n "$ac_ct_STRIP"; then
  7010.   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  7011. else
  7012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7013. for as_dir in $PATH
  7014. do
  7015.   IFS=$as_save_IFS
  7016.   test -z "$as_dir" && as_dir=.
  7017.   for ac_exec_ext in '' $ac_executable_extensions; do
  7018.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7019.     ac_cv_prog_ac_ct_STRIP="strip"
  7020.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7021.     break 2
  7022.   fi
  7023. done
  7024. done
  7025.  
  7026.   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  7027. fi
  7028. fi
  7029. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  7030. if test -n "$ac_ct_STRIP"; then
  7031.   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  7032. echo "${ECHO_T}$ac_ct_STRIP" >&6
  7033. else
  7034.   echo "$as_me:$LINENO: result: no" >&5
  7035. echo "${ECHO_T}no" >&6
  7036. fi
  7037.  
  7038.   STRIP=$ac_ct_STRIP
  7039. else
  7040.   STRIP="$ac_cv_prog_STRIP"
  7041. fi
  7042.  
  7043.  
  7044. old_CC="$CC"
  7045. old_CFLAGS="$CFLAGS"
  7046.  
  7047. # Set sane defaults for various variables
  7048. test -z "$AR" && AR=ar
  7049. test -z "$AR_FLAGS" && AR_FLAGS=cru
  7050. test -z "$AS" && AS=as
  7051. test -z "$CC" && CC=cc
  7052. test -z "$LTCC" && LTCC=$CC
  7053. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7054. test -z "$LD" && LD=ld
  7055. test -z "$LN_S" && LN_S="ln -s"
  7056. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7057. test -z "$NM" && NM=nm
  7058. test -z "$SED" && SED=sed
  7059. test -z "$OBJDUMP" && OBJDUMP=objdump
  7060. test -z "$RANLIB" && RANLIB=:
  7061. test -z "$STRIP" && STRIP=:
  7062. test -z "$ac_objext" && ac_objext=o
  7063.  
  7064. # Determine commands to create old-style static archives.
  7065. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  7066. old_postinstall_cmds='chmod 644 $oldlib'
  7067. old_postuninstall_cmds=
  7068.  
  7069. if test -n "$RANLIB"; then
  7070.   case $host_os in
  7071.   openbsd*)
  7072.     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  7073.     ;;
  7074.   *)
  7075.     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  7076.     ;;
  7077.   esac
  7078.   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  7079. fi
  7080.  
  7081. # Only perform the check for file, if the check method requires it
  7082. case $deplibs_check_method in
  7083. file_magic*)
  7084.   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7085.     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  7086. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  7087. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  7088.   echo $ECHO_N "(cached) $ECHO_C" >&6
  7089. else
  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.  
  7123. EOF
  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.   ;;
  7133. esac
  7134. fi
  7135.  
  7136. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7137. if test -n "$MAGIC_CMD"; then
  7138.   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  7139. echo "${ECHO_T}$MAGIC_CMD" >&6
  7140. else
  7141.   echo "$as_me:$LINENO: result: no" >&5
  7142. echo "${ECHO_T}no" >&6
  7143. fi
  7144.  
  7145. if 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
  7148. echo $ECHO_N "checking for file... $ECHO_C" >&6
  7149. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  7150.   echo $ECHO_N "(cached) $ECHO_C" >&6
  7151. else
  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.  
  7185. EOF
  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.   ;;
  7195. esac
  7196. fi
  7197.  
  7198. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7199. if test -n "$MAGIC_CMD"; then
  7200.   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  7201. echo "${ECHO_T}$MAGIC_CMD" >&6
  7202. else
  7203.   echo "$as_me:$LINENO: result: no" >&5
  7204. echo "${ECHO_T}no" >&6
  7205. fi
  7206.  
  7207.   else
  7208.     MAGIC_CMD=:
  7209.   fi
  7210. fi
  7211.  
  7212.   fi
  7213.   ;;
  7214. esac
  7215.  
  7216. enable_dlopen=no
  7217. enable_win32_dll=no
  7218.  
  7219. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  7220. if test "${enable_libtool_lock+set}" = set; then
  7221.   enableval="$enable_libtool_lock"
  7222.  
  7223. fi;
  7224. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  7225.  
  7226.  
  7227. # Check whether --with-pic or --without-pic was given.
  7228. if test "${with_pic+set}" = set; then
  7229.   withval="$with_pic"
  7230.   pic_mode="$withval"
  7231. else
  7232.   pic_mode=default
  7233. fi;
  7234. test -z "$pic_mode" && pic_mode=default
  7235.  
  7236. # Use C for the default configuration in the libtool script
  7237. tagname=
  7238. lt_save_CC="$CC"
  7239. ac_ext=c
  7240. ac_cpp='$CPP $CPPFLAGS'
  7241. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7242. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7243. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7244.  
  7245.  
  7246. # Source file extension for C test sources.
  7247. ac_ext=c
  7248.  
  7249. # Object file extension for compiled C test sources.
  7250. objext=o
  7251. objext=$objext
  7252.  
  7253. # Code to be used in simple compile tests
  7254. lt_simple_compile_test_code="int some_variable = 0;\n"
  7255.  
  7256. # Code to be used in simple link tests
  7257. lt_simple_link_test_code='int main(){return(0);}\n'
  7258.  
  7259.  
  7260. # If no C compiler was specified, use CC.
  7261. LTCC=${LTCC-"$CC"}
  7262.  
  7263. # Allow CC to be a program name with arguments.
  7264. compiler=$CC
  7265.  
  7266.  
  7267. #
  7268. # Check for any special shared library compilation flags.
  7269. #
  7270. lt_prog_cc_shlib=
  7271. if test "$GCC" = no; then
  7272.   case $host_os in
  7273.   sco3.2v5*)
  7274.     lt_prog_cc_shlib='-belf'
  7275.     ;;
  7276.   esac
  7277. fi
  7278. if test -n "$lt_prog_cc_shlib"; then
  7279.   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
  7280. echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
  7281.   if echo "$old_CC $old_CFLAGS " | grep "[     ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
  7282.   else
  7283.     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  7284. echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  7285.     lt_cv_prog_cc_can_build_shared=no
  7286.   fi
  7287. fi
  7288.  
  7289.  
  7290. #
  7291. # Check to make sure the static flag actually works.
  7292. #
  7293. echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
  7294. echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
  7295. if test "${lt_prog_compiler_static_works+set}" = set; then
  7296.   echo $ECHO_N "(cached) $ECHO_C" >&6
  7297. else
  7298.   lt_prog_compiler_static_works=no
  7299.    save_LDFLAGS="$LDFLAGS"
  7300.    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
  7301.    printf "$lt_simple_link_test_code" > conftest.$ac_ext
  7302.    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7303.      # The compiler can only warn and ignore the option if not recognized
  7304.      # So say no if there are warnings
  7305.      if test -s conftest.err; then
  7306.        # Append any errors to the config.log.
  7307.        cat conftest.err 1>&5
  7308.      else
  7309.        lt_prog_compiler_static_works=yes
  7310.      fi
  7311.    fi
  7312.    $rm conftest*
  7313.    LDFLAGS="$save_LDFLAGS"
  7314.  
  7315. fi
  7316. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  7317. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
  7318.  
  7319. if test x"$lt_prog_compiler_static_works" = xyes; then
  7320.     :
  7321. else
  7322.     lt_prog_compiler_static=
  7323. fi
  7324.  
  7325.  
  7326.  
  7327.  
  7328. lt_prog_compiler_no_builtin_flag=
  7329.  
  7330. if test "$GCC" = yes; then
  7331.   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  7332.  
  7333.  
  7334. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7335. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  7336. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  7337.   echo $ECHO_N "(cached) $ECHO_C" >&6
  7338. else
  7339.   lt_cv_prog_compiler_rtti_exceptions=no
  7340.   ac_outfile=conftest.$ac_objext
  7341.    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  7342.    lt_compiler_flag="-fno-rtti -fno-exceptions"
  7343.    # Insert the option either (1) after the last *FLAGS variable, or
  7344.    # (2) before a word containing "conftest.", or (3) at the end.
  7345.    # Note that $ac_compile itself does not contain backslashes and begins
  7346.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  7347.    # The option is referenced via a variable to avoid confusing sed.
  7348.    lt_compile=`echo "$ac_compile" | $SED \
  7349.    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  7350.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7351.    -e 's:$: $lt_compiler_flag:'`
  7352.    (eval echo "\"\$as_me:7352: $lt_compile\"" >&5)
  7353.    (eval "$lt_compile" 2>conftest.err)
  7354.    ac_status=$?
  7355.    cat conftest.err >&5
  7356.    echo "$as_me:7356: \$? = $ac_status" >&5
  7357.    if (exit $ac_status) && test -s "$ac_outfile"; then
  7358.      # The compiler can only warn and ignore the option if not recognized
  7359.      # So say no if there are warnings
  7360.      if test ! -s conftest.err; then
  7361.        lt_cv_prog_compiler_rtti_exceptions=yes
  7362.      fi
  7363.    fi
  7364.    $rm conftest*
  7365.  
  7366. fi
  7367. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7368. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  7369.  
  7370. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7371.     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7372. else
  7373.     :
  7374. fi
  7375.  
  7376. fi
  7377.  
  7378. lt_prog_compiler_wl=
  7379. lt_prog_compiler_pic=
  7380. lt_prog_compiler_static=
  7381.  
  7382. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  7383. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  7384.  
  7385.   if test "$GCC" = yes; then
  7386.     lt_prog_compiler_wl='-Wl,'
  7387.     lt_prog_compiler_static='-static'
  7388.  
  7389.     case $host_os in
  7390.       aix*)
  7391.       # All AIX code is PIC.
  7392.       if test "$host_cpu" = ia64; then
  7393.     # AIX 5 now supports IA64 processor
  7394.     lt_prog_compiler_static='-Bstatic'
  7395.       fi
  7396.       ;;
  7397.  
  7398.     amigaos*)
  7399.       # FIXME: we need at least 68020 code to build shared libraries, but
  7400.       # adding the `-m68020' flag to GCC prevents building anything better,
  7401.       # like `-m68040'.
  7402.       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7403.       ;;
  7404.  
  7405.     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7406.       # PIC is the default for these OSes.
  7407.       ;;
  7408.  
  7409.     mingw* | pw32* | os2*)
  7410.       # This hack is so that the source file can tell whether it is being
  7411.       # built for inclusion in a dll (and should export symbols for example).
  7412.       lt_prog_compiler_pic='-DDLL_EXPORT'
  7413.       ;;
  7414.  
  7415.     darwin* | rhapsody*)
  7416.       # PIC is the default on this platform
  7417.       # Common symbols not allowed in MH_DYLIB files
  7418.       lt_prog_compiler_pic='-fno-common'
  7419.       ;;
  7420.  
  7421.     msdosdjgpp*)
  7422.       # Just because we use GCC doesn't mean we suddenly get shared libraries
  7423.       # on systems that don't support them.
  7424.       lt_prog_compiler_can_build_shared=no
  7425.       enable_shared=no
  7426.       ;;
  7427.  
  7428.     sysv4*MP*)
  7429.       if test -d /usr/nec; then
  7430.     lt_prog_compiler_pic=-Kconform_pic
  7431.       fi
  7432.       ;;
  7433.  
  7434.     hpux*)
  7435.       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7436.       # not for PA HP-UX.
  7437.       case "$host_cpu" in
  7438.       hppa*64*|ia64*)
  7439.     # +Z the default
  7440.     ;;
  7441.       *)
  7442.     lt_prog_compiler_pic='-fPIC'
  7443.     ;;
  7444.       esac
  7445.       ;;
  7446.  
  7447.     *)
  7448.       lt_prog_compiler_pic='-fPIC'
  7449.       ;;
  7450.     esac
  7451.   else
  7452.     # PORTME Check for flag to pass linker flags through the system compiler.
  7453.     case $host_os in
  7454.     aix*)
  7455.       lt_prog_compiler_wl='-Wl,'
  7456.       if test "$host_cpu" = ia64; then
  7457.     # AIX 5 now supports IA64 processor
  7458.     lt_prog_compiler_static='-Bstatic'
  7459.       else
  7460.     lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7461.       fi
  7462.       ;;
  7463.  
  7464.     mingw* | pw32* | os2*)
  7465.       # This hack is so that the source file can tell whether it is being
  7466.       # built for inclusion in a dll (and should export symbols for example).
  7467.       lt_prog_compiler_pic='-DDLL_EXPORT'
  7468.       ;;
  7469.  
  7470.     hpux9* | hpux10* | hpux11*)
  7471.       lt_prog_compiler_wl='-Wl,'
  7472.       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7473.       # not for PA HP-UX.
  7474.       case "$host_cpu" in
  7475.       hppa*64*|ia64*)
  7476.     # +Z the default
  7477.     ;;
  7478.       *)
  7479.     lt_prog_compiler_pic='+Z'
  7480.     ;;
  7481.       esac
  7482.       # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7483.       lt_prog_compiler_static='${wl}-a ${wl}archive'
  7484.       ;;
  7485.  
  7486.     irix5* | irix6* | nonstopux*)
  7487.       lt_prog_compiler_wl='-Wl,'
  7488.       # PIC (with -KPIC) is the default.
  7489.       lt_prog_compiler_static='-non_shared'
  7490.       ;;
  7491.  
  7492.     newsos6)
  7493.       lt_prog_compiler_pic='-KPIC'
  7494.       lt_prog_compiler_static='-Bstatic'
  7495.       ;;
  7496.  
  7497.     linux*)
  7498.       case $CC in
  7499.       icc* | ecc*)
  7500.     lt_prog_compiler_wl='-Wl,'
  7501.     lt_prog_compiler_pic='-KPIC'
  7502.     lt_prog_compiler_static='-static'
  7503.         ;;
  7504.       ccc*)
  7505.         lt_prog_compiler_wl='-Wl,'
  7506.         # All Alpha code is PIC.
  7507.         lt_prog_compiler_static='-non_shared'
  7508.         ;;
  7509.       esac
  7510.       ;;
  7511.  
  7512.     osf3* | osf4* | osf5*)
  7513.       lt_prog_compiler_wl='-Wl,'
  7514.       # All OSF/1 code is PIC.
  7515.       lt_prog_compiler_static='-non_shared'
  7516.       ;;
  7517.  
  7518.     sco3.2v5*)
  7519.       lt_prog_compiler_pic='-Kpic'
  7520.       lt_prog_compiler_static='-dn'
  7521.       ;;
  7522.  
  7523.     solaris*)
  7524.       lt_prog_compiler_wl='-Wl,'
  7525.       lt_prog_compiler_pic='-KPIC'
  7526.       lt_prog_compiler_static='-Bstatic'
  7527.       ;;
  7528.  
  7529.     sunos4*)
  7530.       lt_prog_compiler_wl='-Qoption ld '
  7531.       lt_prog_compiler_pic='-PIC'
  7532.       lt_prog_compiler_static='-Bstatic'
  7533.       ;;
  7534.  
  7535.     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  7536.       lt_prog_compiler_wl='-Wl,'
  7537.       lt_prog_compiler_pic='-KPIC'
  7538.       lt_prog_compiler_static='-Bstatic'
  7539.       ;;
  7540.  
  7541.     sysv4*MP*)
  7542.       if test -d /usr/nec ;then
  7543.     lt_prog_compiler_pic='-Kconform_pic'
  7544.     lt_prog_compiler_static='-Bstatic'
  7545.       fi
  7546.       ;;
  7547.  
  7548.     uts4*)
  7549.       lt_prog_compiler_pic='-pic'
  7550.       lt_prog_compiler_static='-Bstatic'
  7551.       ;;
  7552.  
  7553.     *)
  7554.       lt_prog_compiler_can_build_shared=no
  7555.       ;;
  7556.     esac
  7557.   fi
  7558.  
  7559. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  7560. echo "${ECHO_T}$lt_prog_compiler_pic" >&6
  7561.  
  7562. #
  7563. # Check to make sure the PIC flag actually works.
  7564. #
  7565. if test -n "$lt_prog_compiler_pic"; then
  7566.  
  7567. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7568. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
  7569. if test "${lt_prog_compiler_pic_works+set}" = set; then
  7570.   echo $ECHO_N "(cached) $ECHO_C" >&6
  7571. else
  7572.   lt_prog_compiler_pic_works=no
  7573.   ac_outfile=conftest.$ac_objext
  7574.    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  7575.    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7576.    # Insert the option either (1) after the last *FLAGS variable, or
  7577.    # (2) before a word containing "conftest.", or (3) at the end.
  7578.    # Note that $ac_compile itself does not contain backslashes and begins
  7579.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  7580.    # The option is referenced via a variable to avoid confusing sed.
  7581.    lt_compile=`echo "$ac_compile" | $SED \
  7582.    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  7583.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7584.    -e 's:$: $lt_compiler_flag:'`
  7585.    (eval echo "\"\$as_me:7585: $lt_compile\"" >&5)
  7586.    (eval "$lt_compile" 2>conftest.err)
  7587.    ac_status=$?
  7588.    cat conftest.err >&5
  7589.    echo "$as_me:7589: \$? = $ac_status" >&5
  7590.    if (exit $ac_status) && test -s "$ac_outfile"; then
  7591.      # The compiler can only warn and ignore the option if not recognized
  7592.      # So say no if there are warnings
  7593.      if test ! -s conftest.err; then
  7594.        lt_prog_compiler_pic_works=yes
  7595.      fi
  7596.    fi
  7597.    $rm conftest*
  7598.  
  7599. fi
  7600. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  7601. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
  7602.  
  7603. if test x"$lt_prog_compiler_pic_works" = xyes; then
  7604.     case $lt_prog_compiler_pic in
  7605.      "" | " "*) ;;
  7606.      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7607.      esac
  7608. else
  7609.     lt_prog_compiler_pic=
  7610.      lt_prog_compiler_can_build_shared=no
  7611. fi
  7612.  
  7613. fi
  7614. case "$host_os" in
  7615.   # For platforms which do not support PIC, -DPIC is meaningless:
  7616.   *djgpp*)
  7617.     lt_prog_compiler_pic=
  7618.     ;;
  7619.   *)
  7620.     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7621.     ;;
  7622. esac
  7623.  
  7624. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  7625. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  7626. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  7627.   echo $ECHO_N "(cached) $ECHO_C" >&6
  7628. else
  7629.   lt_cv_prog_compiler_c_o=no
  7630.    $rm -r conftest 2>/dev/null
  7631.    mkdir conftest
  7632.    cd conftest
  7633.    mkdir out
  7634.    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  7635.  
  7636.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  7637.    # Insert the option either (1) after the last *FLAGS variable, or
  7638.    # (2) before a word containing "conftest.", or (3) at the end.
  7639.    # Note that $ac_compile itself does not contain backslashes and begins
  7640.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  7641.    lt_compile=`echo "$ac_compile" | $SED \
  7642.    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  7643.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7644.    -e 's:$: $lt_compiler_flag:'`
  7645.    (eval echo "\"\$as_me:7645: $lt_compile\"" >&5)
  7646.    (eval "$lt_compile" 2>out/conftest.err)
  7647.    ac_status=$?
  7648.    cat out/conftest.err >&5
  7649.    echo "$as_me:7649: \$? = $ac_status" >&5
  7650.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7651.    then
  7652.      # The compiler can only warn and ignore the option if not recognized
  7653.      # So say no if there are warnings
  7654.      if test ! -s out/conftest.err; then
  7655.        lt_cv_prog_compiler_c_o=yes
  7656.      fi
  7657.    fi
  7658.    chmod u+w .
  7659.    $rm conftest*
  7660.    # SGI C++ compiler will create directory out/ii_files/ for
  7661.    # template instantiation
  7662.    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  7663.    $rm out/* && rmdir out
  7664.    cd ..
  7665.    rmdir conftest
  7666.    $rm conftest*
  7667.  
  7668. fi
  7669. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  7670. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
  7671.  
  7672.  
  7673. hard_links="nottested"
  7674. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7675.   # do not overwrite the value of need_locks provided by the user
  7676.   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  7677. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  7678.   hard_links=yes
  7679.   $rm conftest*
  7680.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7681.   touch conftest.a
  7682.   ln conftest.a conftest.b 2>&5 || hard_links=no
  7683.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7684.   echo "$as_me:$LINENO: result: $hard_links" >&5
  7685. echo "${ECHO_T}$hard_links" >&6
  7686.   if test "$hard_links" = no; then
  7687.     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7688. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7689.     need_locks=warn
  7690.   fi
  7691. else
  7692.   need_locks=no
  7693. fi
  7694.  
  7695. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7696. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  7697.  
  7698.   runpath_var=
  7699.   allow_undefined_flag=
  7700.   enable_shared_with_static_runtimes=no
  7701.   archive_cmds=
  7702.   archive_expsym_cmds=
  7703.   old_archive_From_new_cmds=
  7704.   old_archive_from_expsyms_cmds=
  7705.   export_dynamic_flag_spec=
  7706.   whole_archive_flag_spec=
  7707.   thread_safe_flag_spec=
  7708.   hardcode_libdir_flag_spec=
  7709.   hardcode_libdir_flag_spec_ld=
  7710.   hardcode_libdir_separator=
  7711.   hardcode_direct=no
  7712.   hardcode_minus_L=no
  7713.   hardcode_shlibpath_var=unsupported
  7714.   link_all_deplibs=unknown
  7715.   hardcode_automatic=no
  7716.   module_cmds=
  7717.   module_expsym_cmds=
  7718.   always_export_symbols=no
  7719.   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7720.   # include_expsyms should be a list of space-separated symbols to be *always*
  7721.   # included in the symbol list
  7722.   include_expsyms=
  7723.   # exclude_expsyms can be an extended regexp of symbols to exclude
  7724.   # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7725.   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7726.   # as well as any symbol that contains `d'.
  7727.   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  7728.   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7729.   # platforms (ab)use it in PIC code, but their linkers get confused if
  7730.   # the symbol is explicitly referenced.  Since portable code cannot
  7731.   # rely on this symbol name, it's probably fine to never include it in
  7732.   # preloaded symbol tables.
  7733.   extract_expsyms_cmds=
  7734.  
  7735.   case $host_os in
  7736.   cygwin* | mingw* | pw32*)
  7737.     # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7738.     # When not using gcc, we currently assume that we are using
  7739.     # Microsoft Visual C++.
  7740.     if test "$GCC" != yes; then
  7741.       with_gnu_ld=no
  7742.     fi
  7743.     ;;
  7744.   openbsd*)
  7745.     with_gnu_ld=no
  7746.     ;;
  7747.   esac
  7748.  
  7749.   ld_shlibs=yes
  7750.   if test "$with_gnu_ld" = yes; then
  7751.     # If archive_cmds runs LD, not CC, wlarc should be empty
  7752.     wlarc='${wl}'
  7753.  
  7754.     # See if GNU ld supports shared libraries.
  7755.     case $host_os in
  7756.     aix3* | aix4* | aix5*)
  7757.       # On AIX/PPC, the GNU linker is very broken
  7758.       if test "$host_cpu" != ia64; then
  7759.     ld_shlibs=no
  7760.     cat <<EOF 1>&2
  7761.  
  7762. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7763. *** to be unable to reliably create shared libraries on AIX.
  7764. *** Therefore, libtool is disabling shared libraries support.  If you
  7765. *** really care for shared libraries, you may want to modify your PATH
  7766. *** so that a non-GNU linker is found, and then restart.
  7767.  
  7768. EOF
  7769.       fi
  7770.       ;;
  7771.  
  7772.     amigaos*)
  7773.       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)'
  7774.       hardcode_libdir_flag_spec='-L$libdir'
  7775.       hardcode_minus_L=yes
  7776.  
  7777.       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  7778.       # that the semantics of dynamic libraries on AmigaOS, at least up
  7779.       # to version 4, is to share data among multiple programs linked
  7780.       # with the same dynamic library.  Since this doesn't match the
  7781.       # behavior of shared libraries on other platforms, we can't use
  7782.       # them.
  7783.       ld_shlibs=no
  7784.       ;;
  7785.  
  7786.     beos*)
  7787.       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7788.     allow_undefined_flag=unsupported
  7789.     # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7790.     # support --undefined.  This deserves some investigation.  FIXME
  7791.     archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7792.       else
  7793.     ld_shlibs=no
  7794.       fi
  7795.       ;;
  7796.  
  7797.     cygwin* | mingw* | pw32*)
  7798.       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7799.       # as there is no search path for DLLs.
  7800.       hardcode_libdir_flag_spec='-L$libdir'
  7801.       allow_undefined_flag=unsupported
  7802.       always_export_symbols=no
  7803.       enable_shared_with_static_runtimes=yes
  7804.       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  7805.  
  7806.       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  7807.         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  7808.     # If the export-symbols file already is a .def file (1st line
  7809.     # is EXPORTS), use it as is; otherwise, prepend...
  7810.     archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7811.       cp $export_symbols $output_objdir/$soname.def;
  7812.     else
  7813.       echo EXPORTS > $output_objdir/$soname.def;
  7814.       cat $export_symbols >> $output_objdir/$soname.def;
  7815.     fi~
  7816.     $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
  7817.       else
  7818.     ld_shlibs=no
  7819.       fi
  7820.       ;;
  7821.  
  7822.     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  7823.       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7824.     archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7825.     wlarc=
  7826.       else
  7827.     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7828.     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7829.       fi
  7830.       ;;
  7831.  
  7832.     solaris* | sysv5*)
  7833.       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  7834.     ld_shlibs=no
  7835.     cat <<EOF 1>&2
  7836.  
  7837. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7838. *** create shared libraries on Solaris systems.  Therefore, libtool
  7839. *** is disabling shared libraries support.  We urge you to upgrade GNU
  7840. *** binutils to release 2.9.1 or newer.  Another option is to modify
  7841. *** your PATH or compiler configuration so that the native linker is
  7842. *** used, and then restart.
  7843.  
  7844. EOF
  7845.       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7846.     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7847.     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7848.       else
  7849.     ld_shlibs=no
  7850.       fi
  7851.       ;;
  7852.  
  7853.     sunos4*)
  7854.       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7855.       wlarc=
  7856.       hardcode_direct=yes
  7857.       hardcode_shlibpath_var=no
  7858.       ;;
  7859.  
  7860.   linux*)
  7861.     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7862.         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7863.     archive_cmds="$tmp_archive_cmds"
  7864.       supports_anon_versioning=no
  7865.       case `$LD -v 2>/dev/null` in
  7866.         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7867.         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7868.         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7869.         *\ 2.11.*) ;; # other 2.11 versions
  7870.         *) supports_anon_versioning=yes ;;
  7871.       esac
  7872.       if test $supports_anon_versioning = yes; then
  7873.         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  7874. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7875. $echo "local: *; };" >> $output_objdir/$libname.ver~
  7876.         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7877.       else
  7878.         archive_expsym_cmds="$tmp_archive_cmds"
  7879.       fi
  7880.       link_all_deplibs=no
  7881.     else
  7882.       ld_shlibs=no
  7883.     fi
  7884.     ;;
  7885.  
  7886.     *)
  7887.       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7888.     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7889.     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7890.       else
  7891.     ld_shlibs=no
  7892.       fi
  7893.       ;;
  7894.     esac
  7895.  
  7896.     if test "$ld_shlibs" = yes; then
  7897.       runpath_var=LD_RUN_PATH
  7898.       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  7899.       export_dynamic_flag_spec='${wl}--export-dynamic'
  7900.       # ancient GNU ld didn't support --whole-archive et. al.
  7901.       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  7902.      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7903.       else
  7904.       whole_archive_flag_spec=
  7905.       fi
  7906.     fi
  7907.   else
  7908.     # PORTME fill in a description of your system's linker (not GNU ld)
  7909.     case $host_os in
  7910.     aix3*)
  7911.       allow_undefined_flag=unsupported
  7912.       always_export_symbols=yes
  7913.       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'
  7914.       # Note: this linker hardcodes the directories in LIBPATH if there
  7915.       # are no directories specified by -L.
  7916.       hardcode_minus_L=yes
  7917.       if test "$GCC" = yes && test -z "$link_static_flag"; then
  7918.     # Neither direct hardcoding nor static linking is supported with a
  7919.     # broken collect2.
  7920.     hardcode_direct=unsupported
  7921.       fi
  7922.       ;;
  7923.  
  7924.     aix4* | aix5*)
  7925.       if test "$host_cpu" = ia64; then
  7926.     # On IA64, the linker does run time linking by default, so we don't
  7927.     # have to do anything special.
  7928.     aix_use_runtimelinking=no
  7929.     exp_sym_flag='-Bexport'
  7930.     no_entry_flag=""
  7931.       else
  7932.     # If we're using GNU nm, then we don't want the "-C" option.
  7933.     # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7934.     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  7935.       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'
  7936.     else
  7937.       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'
  7938.     fi
  7939.     aix_use_runtimelinking=no
  7940.  
  7941.     # Test if we are trying to use run time linking or normal
  7942.     # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7943.     # need to do runtime linking.
  7944.     case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  7945.       for ld_flag in $LDFLAGS; do
  7946.         if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7947.           aix_use_runtimelinking=yes
  7948.           break
  7949.         fi
  7950.       done
  7951.     esac
  7952.  
  7953.     exp_sym_flag='-bexport'
  7954.     no_entry_flag='-bnoentry'
  7955.       fi
  7956.  
  7957.       # When large executables or shared objects are built, AIX ld can
  7958.       # have problems creating the table of contents.  If linking a library
  7959.       # or program results in "error TOC overflow" add -mminimal-toc to
  7960.       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  7961.       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7962.  
  7963.       archive_cmds=''
  7964.       hardcode_direct=yes
  7965.       hardcode_libdir_separator=':'
  7966.       link_all_deplibs=yes
  7967.  
  7968.       if test "$GCC" = yes; then
  7969.     case $host_os in aix4.012|aix4.012.*)
  7970.     # We only want to do this on AIX 4.2 and lower, the check
  7971.     # below for broken collect2 doesn't work under 4.3+
  7972.       collect2name=`${CC} -print-prog-name=collect2`
  7973.       if test -f "$collect2name" && \
  7974.          strings "$collect2name" | grep resolve_lib_name >/dev/null
  7975.       then
  7976.         # We have reworked collect2
  7977.         hardcode_direct=yes
  7978.       else
  7979.         # We have old collect2
  7980.         hardcode_direct=unsupported
  7981.         # It fails to find uninstalled libraries when the uninstalled
  7982.         # path is not listed in the libpath.  Setting hardcode_minus_L
  7983.         # to unsupported forces relinking
  7984.         hardcode_minus_L=yes
  7985.         hardcode_libdir_flag_spec='-L$libdir'
  7986.         hardcode_libdir_separator=
  7987.       fi
  7988.     esac
  7989.     shared_flag='-shared'
  7990.       else
  7991.     # not using gcc
  7992.     if test "$host_cpu" = ia64; then
  7993.       # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7994.       # chokes on -Wl,-G. The following line is correct:
  7995.       shared_flag='-G'
  7996.     else
  7997.       if test "$aix_use_runtimelinking" = yes; then
  7998.         shared_flag='${wl}-G'
  7999.       else
  8000.         shared_flag='${wl}-bM:SRE'
  8001.       fi
  8002.     fi
  8003.       fi
  8004.  
  8005.       # It seems that -bexpall does not export symbols beginning with
  8006.       # underscore (_), so it is better to generate a list of symbols to export.
  8007.       always_export_symbols=yes
  8008.       if test "$aix_use_runtimelinking" = yes; then
  8009.     # Warning - without using the other runtime loading flags (-brtl),
  8010.     # -berok will link without error, but may produce a broken library.
  8011.     allow_undefined_flag='-berok'
  8012.        # Determine the default libpath from the value encoded in an empty executable.
  8013.        cat >conftest.$ac_ext <<_ACEOF
  8014. /* confdefs.h.  */
  8015. _ACEOF
  8016. cat confdefs.h >>conftest.$ac_ext
  8017. cat >>conftest.$ac_ext <<_ACEOF
  8018. /* end confdefs.h.  */
  8019.  
  8020. int
  8021. main ()
  8022. {
  8023.  
  8024.   ;
  8025.   return 0;
  8026. }
  8027. _ACEOF
  8028. rm -f conftest.$ac_objext conftest$ac_exeext
  8029. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8030.   (eval $ac_link) 2>conftest.er1
  8031.   ac_status=$?
  8032.   grep -v '^ *+' conftest.er1 >conftest.err
  8033.   rm -f conftest.er1
  8034.   cat conftest.err >&5
  8035.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8036.   (exit $ac_status); } &&
  8037.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  8038.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8039.   (eval $ac_try) 2>&5
  8040.   ac_status=$?
  8041.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8042.   (exit $ac_status); }; } &&
  8043.      { ac_try='test -s conftest$ac_exeext'
  8044.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8045.   (eval $ac_try) 2>&5
  8046.   ac_status=$?
  8047.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8048.   (exit $ac_status); }; }; then
  8049.  
  8050. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
  8051. }'`
  8052. # Check for a 64-bit object if we didn't find anything.
  8053. if 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; }
  8054. }'`; fi
  8055. else
  8056.   echo "$as_me: failed program was:" >&5
  8057. sed 's/^/| /' conftest.$ac_ext >&5
  8058.  
  8059. fi
  8060. rm -f conftest.err conftest.$ac_objext \
  8061.       conftest$ac_exeext conftest.$ac_ext
  8062. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8063.  
  8064.        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8065.     archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8066.        else
  8067.     if test "$host_cpu" = ia64; then
  8068.       hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8069.       allow_undefined_flag="-z nodefs"
  8070.       archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  8071.     else
  8072.      # Determine the default libpath from the value encoded in an empty executable.
  8073.      cat >conftest.$ac_ext <<_ACEOF
  8074. /* confdefs.h.  */
  8075. _ACEOF
  8076. cat confdefs.h >>conftest.$ac_ext
  8077. cat >>conftest.$ac_ext <<_ACEOF
  8078. /* end confdefs.h.  */
  8079.  
  8080. int
  8081. main ()
  8082. {
  8083.  
  8084.   ;
  8085.   return 0;
  8086. }
  8087. _ACEOF
  8088. rm -f conftest.$ac_objext conftest$ac_exeext
  8089. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8090.   (eval $ac_link) 2>conftest.er1
  8091.   ac_status=$?
  8092.   grep -v '^ *+' conftest.er1 >conftest.err
  8093.   rm -f conftest.er1
  8094.   cat conftest.err >&5
  8095.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8096.   (exit $ac_status); } &&
  8097.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  8098.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8099.   (eval $ac_try) 2>&5
  8100.   ac_status=$?
  8101.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8102.   (exit $ac_status); }; } &&
  8103.      { ac_try='test -s conftest$ac_exeext'
  8104.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8105.   (eval $ac_try) 2>&5
  8106.   ac_status=$?
  8107.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8108.   (exit $ac_status); }; }; then
  8109.  
  8110. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
  8111. }'`
  8112. # Check for a 64-bit object if we didn't find anything.
  8113. if 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; }
  8114. }'`; fi
  8115. else
  8116.   echo "$as_me: failed program was:" >&5
  8117. sed 's/^/| /' conftest.$ac_ext >&5
  8118.  
  8119. fi
  8120. rm -f conftest.err conftest.$ac_objext \
  8121.       conftest$ac_exeext conftest.$ac_ext
  8122. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8123.  
  8124.      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8125.       # Warning - without using the other run time loading flags,
  8126.       # -berok will link without error, but may produce a broken library.
  8127.       no_undefined_flag=' ${wl}-bernotok'
  8128.       allow_undefined_flag=' ${wl}-berok'
  8129.       # -bexpall does not export symbols beginning with underscore (_)
  8130.       always_export_symbols=yes
  8131.       # Exported symbols can be pulled into shared objects from archives
  8132.       whole_archive_flag_spec=' '
  8133.       archive_cmds_need_lc=yes
  8134.       # This is similar to how AIX traditionally builds it's shared libraries.
  8135.       archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8136.     fi
  8137.       fi
  8138.       ;;
  8139.  
  8140.     amigaos*)
  8141.       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)'
  8142.       hardcode_libdir_flag_spec='-L$libdir'
  8143.       hardcode_minus_L=yes
  8144.       # see comment about different semantics on the GNU ld section
  8145.       ld_shlibs=no
  8146.       ;;
  8147.  
  8148.     bsdi4*)
  8149.       export_dynamic_flag_spec=-rdynamic
  8150.       ;;
  8151.  
  8152.     cygwin* | mingw* | pw32*)
  8153.       # When not using gcc, we currently assume that we are using
  8154.       # Microsoft Visual C++.
  8155.       # hardcode_libdir_flag_spec is actually meaningless, as there is
  8156.       # no search path for DLLs.
  8157.       hardcode_libdir_flag_spec=' '
  8158.       allow_undefined_flag=unsupported
  8159.       # Tell ltmain to make .lib files, not .a files.
  8160.       libext=lib
  8161.       # Tell ltmain to make .dll files, not .so files.
  8162.       shrext_cmds=".dll"
  8163.       # FIXME: Setting linknames here is a bad hack.
  8164.       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8165.       # The linker will automatically build a .lib file if we build a DLL.
  8166.       old_archive_From_new_cmds='true'
  8167.       # FIXME: Should let the user specify the lib program.
  8168.       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  8169.       fix_srcfile_path='`cygpath -w "$srcfile"`'
  8170.       enable_shared_with_static_runtimes=yes
  8171.       ;;
  8172.  
  8173.     darwin* | rhapsody*)
  8174.     if test "$GXX" = yes ; then
  8175.       archive_cmds_need_lc=no
  8176.       case "$host_os" in
  8177.       rhapsody* | darwin1.[012])
  8178.     allow_undefined_flag='-undefined suppress'
  8179.     ;;
  8180.       *) # Darwin 1.3 on
  8181.       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  8182.           allow_undefined_flag='-flat_namespace -undefined suppress'
  8183.       else
  8184.         case ${MACOSX_DEPLOYMENT_TARGET} in
  8185.           10.[012])
  8186.             allow_undefined_flag='-flat_namespace -undefined suppress'
  8187.             ;;
  8188.           10.*)
  8189.             allow_undefined_flag='-undefined dynamic_lookup'
  8190.             ;;
  8191.         esac
  8192.       fi
  8193.     ;;
  8194.       esac
  8195.         lt_int_apple_cc_single_mod=no
  8196.         output_verbose_link_cmd='echo'
  8197.         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  8198.           lt_int_apple_cc_single_mod=yes
  8199.         fi
  8200.         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  8201.           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  8202.         else
  8203.         archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  8204.       fi
  8205.       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  8206.       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  8207.         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  8208.           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8209.         else
  8210.           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8211.         fi
  8212.           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}'
  8213.       hardcode_direct=no
  8214.       hardcode_automatic=yes
  8215.       hardcode_shlibpath_var=unsupported
  8216.       whole_archive_flag_spec='-all_load $convenience'
  8217.       link_all_deplibs=yes
  8218.     else
  8219.       ld_shlibs=no
  8220.     fi
  8221.       ;;
  8222.  
  8223.     dgux*)
  8224.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8225.       hardcode_libdir_flag_spec='-L$libdir'
  8226.       hardcode_shlibpath_var=no
  8227.       ;;
  8228.  
  8229.     freebsd1*)
  8230.       ld_shlibs=no
  8231.       ;;
  8232.  
  8233.     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8234.     # support.  Future versions do this automatically, but an explicit c++rt0.o
  8235.     # does not break anything, and helps significantly (at the cost of a little
  8236.     # extra space).
  8237.     freebsd2.2*)
  8238.       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8239.       hardcode_libdir_flag_spec='-R$libdir'
  8240.       hardcode_direct=yes
  8241.       hardcode_shlibpath_var=no
  8242.       ;;
  8243.  
  8244.     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8245.     freebsd2*)
  8246.       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8247.       hardcode_direct=yes
  8248.       hardcode_minus_L=yes
  8249.       hardcode_shlibpath_var=no
  8250.       ;;
  8251.  
  8252.     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8253.     freebsd* | kfreebsd*-gnu)
  8254.       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8255.       hardcode_libdir_flag_spec='-R$libdir'
  8256.       hardcode_direct=yes
  8257.       hardcode_shlibpath_var=no
  8258.       ;;
  8259.  
  8260.     hpux9*)
  8261.       if test "$GCC" = yes; then
  8262.     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'
  8263.       else
  8264.     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'
  8265.       fi
  8266.       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8267.       hardcode_libdir_separator=:
  8268.       hardcode_direct=yes
  8269.  
  8270.       # hardcode_minus_L: Not really in the search PATH,
  8271.       # but as the default location of the library.
  8272.       hardcode_minus_L=yes
  8273.       export_dynamic_flag_spec='${wl}-E'
  8274.       ;;
  8275.  
  8276.     hpux10* | hpux11*)
  8277.       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8278.     case "$host_cpu" in
  8279.     hppa*64*|ia64*)
  8280.       archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8281.       ;;
  8282.     *)
  8283.       archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8284.       ;;
  8285.     esac
  8286.       else
  8287.     case "$host_cpu" in
  8288.     hppa*64*|ia64*)
  8289.       archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  8290.       ;;
  8291.     *)
  8292.       archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8293.       ;;
  8294.     esac
  8295.       fi
  8296.       if test "$with_gnu_ld" = no; then
  8297.     case "$host_cpu" in
  8298.     hppa*64*)
  8299.       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8300.       hardcode_libdir_flag_spec_ld='+b $libdir'
  8301.       hardcode_libdir_separator=:
  8302.       hardcode_direct=no
  8303.       hardcode_shlibpath_var=no
  8304.       ;;
  8305.     ia64*)
  8306.       hardcode_libdir_flag_spec='-L$libdir'
  8307.       hardcode_direct=no
  8308.       hardcode_shlibpath_var=no
  8309.  
  8310.       # hardcode_minus_L: Not really in the search PATH,
  8311.       # but as the default location of the library.
  8312.       hardcode_minus_L=yes
  8313.       ;;
  8314.     *)
  8315.       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8316.       hardcode_libdir_separator=:
  8317.       hardcode_direct=yes
  8318.       export_dynamic_flag_spec='${wl}-E'
  8319.  
  8320.       # hardcode_minus_L: Not really in the search PATH,
  8321.       # but as the default location of the library.
  8322.       hardcode_minus_L=yes
  8323.       ;;
  8324.     esac
  8325.       fi
  8326.       ;;
  8327.  
  8328.     irix5* | irix6* | nonstopux*)
  8329.       if test "$GCC" = yes; then
  8330.     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'
  8331.       else
  8332.     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'
  8333.     hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8334.       fi
  8335.       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8336.       hardcode_libdir_separator=:
  8337.       link_all_deplibs=yes
  8338.       ;;
  8339.  
  8340.     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  8341.       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8342.     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
  8343.       else
  8344.     archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
  8345.       fi
  8346.       hardcode_libdir_flag_spec='-R$libdir'
  8347.       hardcode_direct=yes
  8348.       hardcode_shlibpath_var=no
  8349.       ;;
  8350.  
  8351.     newsos6)
  8352.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8353.       hardcode_direct=yes
  8354.       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8355.       hardcode_libdir_separator=:
  8356.       hardcode_shlibpath_var=no
  8357.       ;;
  8358.  
  8359.     openbsd*)
  8360.       hardcode_direct=yes
  8361.       hardcode_shlibpath_var=no
  8362.       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8363.     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8364.     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8365.     export_dynamic_flag_spec='${wl}-E'
  8366.       else
  8367.        case $host_os in
  8368.      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8369.        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8370.        hardcode_libdir_flag_spec='-R$libdir'
  8371.        ;;
  8372.      *)
  8373.        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8374.        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8375.        ;;
  8376.        esac
  8377.       fi
  8378.       ;;
  8379.  
  8380.     os2*)
  8381.       hardcode_libdir_flag_spec='-L$libdir'
  8382.       hardcode_minus_L=yes
  8383.       allow_undefined_flag=unsupported
  8384.       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'
  8385.       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8386.       ;;
  8387.  
  8388.     osf3*)
  8389.       if test "$GCC" = yes; then
  8390.     allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8391.     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'
  8392.       else
  8393.     allow_undefined_flag=' -expect_unresolved \*'
  8394.     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'
  8395.       fi
  8396.       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8397.       hardcode_libdir_separator=:
  8398.       ;;
  8399.  
  8400.     osf4* | osf5*)    # as osf3* with the addition of -msym flag
  8401.       if test "$GCC" = yes; then
  8402.     allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8403.     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'
  8404.     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8405.       else
  8406.     allow_undefined_flag=' -expect_unresolved \*'
  8407.     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'
  8408.     archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  8409.     $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  8410.  
  8411.     # Both c and cxx compiler support -rpath directly
  8412.     hardcode_libdir_flag_spec='-rpath $libdir'
  8413.       fi
  8414.       hardcode_libdir_separator=:
  8415.       ;;
  8416.  
  8417.     sco3.2v5*)
  8418.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8419.       hardcode_shlibpath_var=no
  8420.       export_dynamic_flag_spec='${wl}-Bexport'
  8421.       runpath_var=LD_RUN_PATH
  8422.       hardcode_runpath_var=yes
  8423.       ;;
  8424.  
  8425.     solaris*)
  8426.       no_undefined_flag=' -z text'
  8427.       if test "$GCC" = yes; then
  8428.     archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8429.     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  8430.       $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  8431.       else
  8432.     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8433.     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  8434.       $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  8435.       fi
  8436.       hardcode_libdir_flag_spec='-R$libdir'
  8437.       hardcode_shlibpath_var=no
  8438.       case $host_os in
  8439.       solaris2.[0-5] | solaris2.[0-5].*) ;;
  8440.       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  8441.     whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  8442.       esac
  8443.       link_all_deplibs=yes
  8444.       ;;
  8445.  
  8446.     sunos4*)
  8447.       if test "x$host_vendor" = xsequent; then
  8448.     # Use $CC to link under sequent, because it throws in some extra .o
  8449.     # files that make .init and .fini sections work.
  8450.     archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8451.       else
  8452.     archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8453.       fi
  8454.       hardcode_libdir_flag_spec='-L$libdir'
  8455.       hardcode_direct=yes
  8456.       hardcode_minus_L=yes
  8457.       hardcode_shlibpath_var=no
  8458.       ;;
  8459.  
  8460.     sysv4)
  8461.       case $host_vendor in
  8462.     sni)
  8463.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8464.       hardcode_direct=yes # is this really true???
  8465.     ;;
  8466.     siemens)
  8467.       ## LD is ld it makes a PLAMLIB
  8468.       ## CC just makes a GrossModule.
  8469.       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8470.       reload_cmds='$CC -r -o $output$reload_objs'
  8471.       hardcode_direct=no
  8472.         ;;
  8473.     motorola)
  8474.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8475.       hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8476.     ;;
  8477.       esac
  8478.       runpath_var='LD_RUN_PATH'
  8479.       hardcode_shlibpath_var=no
  8480.       ;;
  8481.  
  8482.     sysv4.3*)
  8483.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8484.       hardcode_shlibpath_var=no
  8485.       export_dynamic_flag_spec='-Bexport'
  8486.       ;;
  8487.  
  8488.     sysv4*MP*)
  8489.       if test -d /usr/nec; then
  8490.     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8491.     hardcode_shlibpath_var=no
  8492.     runpath_var=LD_RUN_PATH
  8493.     hardcode_runpath_var=yes
  8494.     ld_shlibs=yes
  8495.       fi
  8496.       ;;
  8497.  
  8498.     sysv4.2uw2*)
  8499.       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8500.       hardcode_direct=yes
  8501.       hardcode_minus_L=no
  8502.       hardcode_shlibpath_var=no
  8503.       hardcode_runpath_var=yes
  8504.       runpath_var=LD_RUN_PATH
  8505.       ;;
  8506.  
  8507.    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
  8508.       no_undefined_flag='${wl}-z ${wl}text'
  8509.       if test "$GCC" = yes; then
  8510.     archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8511.       else
  8512.     archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8513.       fi
  8514.       runpath_var='LD_RUN_PATH'
  8515.       hardcode_shlibpath_var=no
  8516.       ;;
  8517.  
  8518.     sysv5*)
  8519.       no_undefined_flag=' -z text'
  8520.       # $CC -shared without GNU ld will not create a library from C++
  8521.       # object files and a static libstdc++, better avoid it by now
  8522.       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8523.       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  8524.           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  8525.       hardcode_libdir_flag_spec=
  8526.       hardcode_shlibpath_var=no
  8527.       runpath_var='LD_RUN_PATH'
  8528.       ;;
  8529.  
  8530.     uts4*)
  8531.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8532.       hardcode_libdir_flag_spec='-L$libdir'
  8533.       hardcode_shlibpath_var=no
  8534.       ;;
  8535.  
  8536.     *)
  8537.       ld_shlibs=no
  8538.       ;;
  8539.     esac
  8540.   fi
  8541.  
  8542. echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  8543. echo "${ECHO_T}$ld_shlibs" >&6
  8544. test "$ld_shlibs" = no && can_build_shared=no
  8545.  
  8546. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8547. if test "$GCC" = yes; then
  8548.   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8549. fi
  8550.  
  8551. #
  8552. # Do we need to explicitly link libc?
  8553. #
  8554. case "x$archive_cmds_need_lc" in
  8555. x|xyes)
  8556.   # Assume -lc should be added
  8557.   archive_cmds_need_lc=yes
  8558.  
  8559.   if test "$enable_shared" = yes && test "$GCC" = yes; then
  8560.     case $archive_cmds in
  8561.     *'~'*)
  8562.       # FIXME: we may have to deal with multi-command sequences.
  8563.       ;;
  8564.     '$CC '*)
  8565.       # Test whether the compiler implicitly links with -lc since on some
  8566.       # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8567.       # to ld, don't add -lc before -lgcc.
  8568.       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  8569. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  8570.       $rm conftest*
  8571.       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  8572.  
  8573.       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8574.   (eval $ac_compile) 2>&5
  8575.   ac_status=$?
  8576.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8577.   (exit $ac_status); } 2>conftest.err; then
  8578.         soname=conftest
  8579.         lib=conftest
  8580.         libobjs=conftest.$ac_objext
  8581.         deplibs=
  8582.         wl=$lt_prog_compiler_wl
  8583.         compiler_flags=-v
  8584.         linker_flags=-v
  8585.         verstring=
  8586.         output_objdir=.
  8587.         libname=conftest
  8588.         lt_save_allow_undefined_flag=$allow_undefined_flag
  8589.         allow_undefined_flag=
  8590.         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  8591.   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8592.   ac_status=$?
  8593.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8594.   (exit $ac_status); }
  8595.         then
  8596.       archive_cmds_need_lc=no
  8597.         else
  8598.       archive_cmds_need_lc=yes
  8599.         fi
  8600.         allow_undefined_flag=$lt_save_allow_undefined_flag
  8601.       else
  8602.         cat conftest.err 1>&5
  8603.       fi
  8604.       $rm conftest*
  8605.       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  8606. echo "${ECHO_T}$archive_cmds_need_lc" >&6
  8607.       ;;
  8608.     esac
  8609.   fi
  8610.   ;;
  8611. esac
  8612.  
  8613. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  8614. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  8615. library_names_spec=
  8616. libname_spec='lib$name'
  8617. soname_spec=
  8618. shrext_cmds=".so"
  8619. postinstall_cmds=
  8620. postuninstall_cmds=
  8621. finish_cmds=
  8622. finish_eval=
  8623. shlibpath_var=
  8624. shlibpath_overrides_runpath=unknown
  8625. version_type=none
  8626. dynamic_linker="$host_os ld.so"
  8627. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8628. if test "$GCC" = yes; then
  8629.   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8630.   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  8631.     # if the path contains ";" then we assume it to be the separator
  8632.     # otherwise default to the standard path separator (i.e. ":") - it is
  8633.     # assumed that no part of a normal pathname contains ";" but that should
  8634.     # okay in the real world where ";" in dirpaths is itself problematic.
  8635.     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8636.   else
  8637.     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  8638.   fi
  8639. else
  8640.   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8641. fi
  8642. need_lib_prefix=unknown
  8643. hardcode_into_libs=no
  8644.  
  8645. # when you set need_version to no, make sure it does not cause -set_version
  8646. # flags to be left without arguments
  8647. need_version=unknown
  8648.  
  8649. case $host_os in
  8650. aix3*)
  8651.   version_type=linux
  8652.   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8653.   shlibpath_var=LIBPATH
  8654.  
  8655.   # AIX 3 has no versioning support, so we append a major version to the name.
  8656.   soname_spec='${libname}${release}${shared_ext}$major'
  8657.   ;;
  8658.  
  8659. aix4* | aix5*)
  8660.   version_type=linux
  8661.   need_lib_prefix=no
  8662.   need_version=no
  8663.   hardcode_into_libs=yes
  8664.   if test "$host_cpu" = ia64; then
  8665.     # AIX 5 supports IA64
  8666.     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8667.     shlibpath_var=LD_LIBRARY_PATH
  8668.   else
  8669.     # With GCC up to 2.95.x, collect2 would create an import file
  8670.     # for dependence libraries.  The import file would start with
  8671.     # the line `#! .'.  This would cause the generated library to
  8672.     # depend on `.', always an invalid library.  This was fixed in
  8673.     # development snapshots of GCC prior to 3.0.
  8674.     case $host_os in
  8675.       aix4 | aix4.[01] | aix4.[01].*)
  8676.       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8677.        echo ' yes '
  8678.        echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  8679.     :
  8680.       else
  8681.     can_build_shared=no
  8682.       fi
  8683.       ;;
  8684.     esac
  8685.     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8686.     # soname into executable. Probably we can add versioning support to
  8687.     # collect2, so additional links can be useful in future.
  8688.     if test "$aix_use_runtimelinking" = yes; then
  8689.       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8690.       # instead of lib<name>.a to let people know that these are not
  8691.       # typical AIX shared libraries.
  8692.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8693.     else
  8694.       # We preserve .a as extension for shared libraries through AIX4.2
  8695.       # and later when we are not doing run time linking.
  8696.       library_names_spec='${libname}${release}.a $libname.a'
  8697.       soname_spec='${libname}${release}${shared_ext}$major'
  8698.     fi
  8699.     shlibpath_var=LIBPATH
  8700.   fi
  8701.   ;;
  8702.  
  8703. amigaos*)
  8704.   library_names_spec='$libname.ixlibrary $libname.a'
  8705.   # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8706.   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'
  8707.   ;;
  8708.  
  8709. beos*)
  8710.   library_names_spec='${libname}${shared_ext}'
  8711.   dynamic_linker="$host_os ld.so"
  8712.   shlibpath_var=LIBRARY_PATH
  8713.   ;;
  8714.  
  8715. bsdi4*)
  8716.   version_type=linux
  8717.   need_version=no
  8718.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8719.   soname_spec='${libname}${release}${shared_ext}$major'
  8720.   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8721.   shlibpath_var=LD_LIBRARY_PATH
  8722.   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8723.   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8724.   # the default ld.so.conf also contains /usr/contrib/lib and
  8725.   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8726.   # libtool to hard-code these into programs
  8727.   ;;
  8728.  
  8729. cygwin* | mingw* | pw32*)
  8730.   version_type=windows
  8731.   shrext_cmds=".dll"
  8732.   need_version=no
  8733.   need_lib_prefix=no
  8734.  
  8735.   case $GCC,$host_os in
  8736.   yes,cygwin* | yes,mingw* | yes,pw32*)
  8737.     library_names_spec='$libname.dll.a'
  8738.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8739.     postinstall_cmds='base_file=`basename \${file}`~
  8740.       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  8741.       dldir=$destdir/`dirname \$dlpath`~
  8742.       test -d \$dldir || mkdir -p \$dldir~
  8743.       $install_prog $dir/$dlname \$dldir/$dlname'
  8744.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8745.       dlpath=$dir/\$dldll~
  8746.        $rm \$dlpath'
  8747.     shlibpath_overrides_runpath=yes
  8748.  
  8749.     case $host_os in
  8750.     cygwin*)
  8751.       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8752.       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8753.       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8754.       ;;
  8755.     mingw*)
  8756.       # MinGW DLLs use traditional 'lib' prefix
  8757.       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8758.       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8759.       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  8760.         # It is most probably a Windows format PATH printed by
  8761.         # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8762.         # path with ; separators, and with drive letters. We can handle the
  8763.         # drive letters (cygwin fileutils understands them), so leave them,
  8764.         # especially as we might pass files found there to a mingw objdump,
  8765.         # which wouldn't understand a cygwinified path. Ahh.
  8766.         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8767.       else
  8768.         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  8769.       fi
  8770.       ;;
  8771.     pw32*)
  8772.       # pw32 DLLs use 'pw' prefix rather than 'lib'
  8773.       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  8774.       ;;
  8775.     esac
  8776.     ;;
  8777.  
  8778.   *)
  8779.     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8780.     ;;
  8781.   esac
  8782.   dynamic_linker='Win32 ld.exe'
  8783.   # FIXME: first we should search . and the directory the executable is in
  8784.   shlibpath_var=PATH
  8785.   ;;
  8786.  
  8787. darwin* | rhapsody*)
  8788.   dynamic_linker="$host_os dyld"
  8789.   version_type=darwin
  8790.   need_lib_prefix=no
  8791.   need_version=no
  8792.   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8793.   soname_spec='${libname}${release}${major}$shared_ext'
  8794.   shlibpath_overrides_runpath=yes
  8795.   shlibpath_var=DYLD_LIBRARY_PATH
  8796.   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  8797.   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  8798.   if test "$GCC" = yes; then
  8799.     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"`
  8800.   else
  8801.     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  8802.   fi
  8803.   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8804.   ;;
  8805.  
  8806. dgux*)
  8807.   version_type=linux
  8808.   need_lib_prefix=no
  8809.   need_version=no
  8810.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8811.   soname_spec='${libname}${release}${shared_ext}$major'
  8812.   shlibpath_var=LD_LIBRARY_PATH
  8813.   ;;
  8814.  
  8815. freebsd1*)
  8816.   dynamic_linker=no
  8817.   ;;
  8818.  
  8819. kfreebsd*-gnu)
  8820.   version_type=linux
  8821.   need_lib_prefix=no
  8822.   need_version=no
  8823.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8824.   soname_spec='${libname}${release}${shared_ext}$major'
  8825.   shlibpath_var=LD_LIBRARY_PATH
  8826.   shlibpath_overrides_runpath=no
  8827.   hardcode_into_libs=yes
  8828.   dynamic_linker='GNU ld.so'
  8829.   ;;
  8830.  
  8831. freebsd*)
  8832.   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  8833.   version_type=freebsd-$objformat
  8834.   case $version_type in
  8835.     freebsd-elf*)
  8836.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8837.       need_version=no
  8838.       need_lib_prefix=no
  8839.       ;;
  8840.     freebsd-*)
  8841.       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8842.       need_version=yes
  8843.       ;;
  8844.   esac
  8845.   shlibpath_var=LD_LIBRARY_PATH
  8846.   case $host_os in
  8847.   freebsd2*)
  8848.     shlibpath_overrides_runpath=yes
  8849.     ;;
  8850.   freebsd3.01* | freebsdelf3.01*)
  8851.     shlibpath_overrides_runpath=yes
  8852.     hardcode_into_libs=yes
  8853.     ;;
  8854.   *) # from 3.2 on
  8855.     shlibpath_overrides_runpath=no
  8856.     hardcode_into_libs=yes
  8857.     ;;
  8858.   esac
  8859.   ;;
  8860.  
  8861. gnu*)
  8862.   version_type=linux
  8863.   need_lib_prefix=no
  8864.   need_version=no
  8865.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8866.   soname_spec='${libname}${release}${shared_ext}$major'
  8867.   shlibpath_var=LD_LIBRARY_PATH
  8868.   hardcode_into_libs=yes
  8869.   ;;
  8870.  
  8871. hpux9* | hpux10* | hpux11*)
  8872.   # Give a soname corresponding to the major version so that dld.sl refuses to
  8873.   # link against other versions.
  8874.   version_type=sunos
  8875.   need_lib_prefix=no
  8876.   need_version=no
  8877.   case "$host_cpu" in
  8878.   ia64*)
  8879.     shrext_cmds='.so'
  8880.     hardcode_into_libs=yes
  8881.     dynamic_linker="$host_os dld.so"
  8882.     shlibpath_var=LD_LIBRARY_PATH
  8883.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8884.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8885.     soname_spec='${libname}${release}${shared_ext}$major'
  8886.     if test "X$HPUX_IA64_MODE" = X32; then
  8887.       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8888.     else
  8889.       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8890.     fi
  8891.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8892.     ;;
  8893.    hppa*64*)
  8894.      shrext_cmds='.sl'
  8895.      hardcode_into_libs=yes
  8896.      dynamic_linker="$host_os dld.sl"
  8897.      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8898.      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8899.      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8900.      soname_spec='${libname}${release}${shared_ext}$major'
  8901.      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8902.      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8903.      ;;
  8904.    *)
  8905.     shrext_cmds='.sl'
  8906.     dynamic_linker="$host_os dld.sl"
  8907.     shlibpath_var=SHLIB_PATH
  8908.     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8909.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8910.     soname_spec='${libname}${release}${shared_ext}$major'
  8911.     ;;
  8912.   esac
  8913.   # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8914.   postinstall_cmds='chmod 555 $lib'
  8915.   ;;
  8916.  
  8917. irix5* | irix6* | nonstopux*)
  8918.   case $host_os in
  8919.     nonstopux*) version_type=nonstopux ;;
  8920.     *)
  8921.     if test "$lt_cv_prog_gnu_ld" = yes; then
  8922.         version_type=linux
  8923.     else
  8924.         version_type=irix
  8925.     fi ;;
  8926.   esac
  8927.   need_lib_prefix=no
  8928.   need_version=no
  8929.   soname_spec='${libname}${release}${shared_ext}$major'
  8930.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8931.   case $host_os in
  8932.   irix5* | nonstopux*)
  8933.     libsuff= shlibsuff=
  8934.     ;;
  8935.   *)
  8936.     case $LD in # libtool.m4 will add one of these switches to LD
  8937.     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8938.       libsuff= shlibsuff= libmagic=32-bit;;
  8939.     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8940.       libsuff=32 shlibsuff=N32 libmagic=N32;;
  8941.     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8942.       libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8943.     *) libsuff= shlibsuff= libmagic=never-match;;
  8944.     esac
  8945.     ;;
  8946.   esac
  8947.   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8948.   shlibpath_overrides_runpath=no
  8949.   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8950.   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8951.   hardcode_into_libs=yes
  8952.   ;;
  8953.  
  8954. # No shared lib support for Linux oldld, aout, or coff.
  8955. linux*oldld* | linux*aout* | linux*coff*)
  8956.   dynamic_linker=no
  8957.   ;;
  8958.  
  8959. # This must be Linux ELF.
  8960. linux*)
  8961.   version_type=linux
  8962.   need_lib_prefix=no
  8963.   need_version=no
  8964.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8965.   soname_spec='${libname}${release}${shared_ext}$major'
  8966.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8967.   shlibpath_var=LD_LIBRARY_PATH
  8968.   shlibpath_overrides_runpath=no
  8969.   # This implies no fast_install, which is unacceptable.
  8970.   # Some rework will be needed to allow for fast_install
  8971.   # before this can be enabled.
  8972.   hardcode_into_libs=yes
  8973.  
  8974.   # Append ld.so.conf contents to the search path
  8975.   if test -f /etc/ld.so.conf; then
  8976.     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
  8977.     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8978.   fi
  8979.  
  8980.   # We used to test for /lib/ld.so.1 and disable shared libraries on
  8981.   # powerpc, because MkLinux only supported shared libraries with the
  8982.   # GNU dynamic linker.  Since this was broken with cross compilers,
  8983.   # most powerpc-linux boxes support dynamic linking these days and
  8984.   # people can always --disable-shared, the test was removed, and we
  8985.   # assume the GNU/Linux dynamic linker is in use.
  8986.   dynamic_linker='GNU/Linux ld.so'
  8987.   ;;
  8988.  
  8989. netbsdelf*-gnu)
  8990.   version_type=linux
  8991.   need_lib_prefix=no
  8992.   need_version=no
  8993.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8994.   soname_spec='${libname}${release}${shared_ext}$major'
  8995.   shlibpath_var=LD_LIBRARY_PATH
  8996.   shlibpath_overrides_runpath=no
  8997.   hardcode_into_libs=yes
  8998.   dynamic_linker='NetBSD ld.elf_so'
  8999.   ;;
  9000.  
  9001. knetbsd*-gnu)
  9002.   version_type=linux
  9003.   need_lib_prefix=no
  9004.   need_version=no
  9005.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9006.   soname_spec='${libname}${release}${shared_ext}$major'
  9007.   shlibpath_var=LD_LIBRARY_PATH
  9008.   shlibpath_overrides_runpath=no
  9009.   hardcode_into_libs=yes
  9010.   dynamic_linker='GNU ld.so'
  9011.   ;;
  9012.  
  9013. netbsd*)
  9014.   version_type=sunos
  9015.   need_lib_prefix=no
  9016.   need_version=no
  9017.   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9018.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9019.     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9020.     dynamic_linker='NetBSD (a.out) ld.so'
  9021.   else
  9022.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9023.     soname_spec='${libname}${release}${shared_ext}$major'
  9024.     dynamic_linker='NetBSD ld.elf_so'
  9025.   fi
  9026.   shlibpath_var=LD_LIBRARY_PATH
  9027.   shlibpath_overrides_runpath=yes
  9028.   hardcode_into_libs=yes
  9029.   ;;
  9030.  
  9031. newsos6)
  9032.   version_type=linux
  9033.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9034.   shlibpath_var=LD_LIBRARY_PATH
  9035.   shlibpath_overrides_runpath=yes
  9036.   ;;
  9037.  
  9038. nto-qnx*)
  9039.   version_type=linux
  9040.   need_lib_prefix=no
  9041.   need_version=no
  9042.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9043.   soname_spec='${libname}${release}${shared_ext}$major'
  9044.   shlibpath_var=LD_LIBRARY_PATH
  9045.   shlibpath_overrides_runpath=yes
  9046.   ;;
  9047.  
  9048. openbsd*)
  9049.   version_type=sunos
  9050.   need_lib_prefix=no
  9051.   need_version=yes
  9052.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9053.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9054.   shlibpath_var=LD_LIBRARY_PATH
  9055.   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9056.     case $host_os in
  9057.       openbsd2.[89] | openbsd2.[89].*)
  9058.     shlibpath_overrides_runpath=no
  9059.     ;;
  9060.       *)
  9061.     shlibpath_overrides_runpath=yes
  9062.     ;;
  9063.       esac
  9064.   else
  9065.     shlibpath_overrides_runpath=yes
  9066.   fi
  9067.   ;;
  9068.  
  9069. os2*)
  9070.   libname_spec='$name'
  9071.   shrext_cmds=".dll"
  9072.   need_lib_prefix=no
  9073.   library_names_spec='$libname${shared_ext} $libname.a'
  9074.   dynamic_linker='OS/2 ld.exe'
  9075.   shlibpath_var=LIBPATH
  9076.   ;;
  9077.  
  9078. osf3* | osf4* | osf5*)
  9079.   version_type=osf
  9080.   need_lib_prefix=no
  9081.   need_version=no
  9082.   soname_spec='${libname}${release}${shared_ext}$major'
  9083.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9084.   shlibpath_var=LD_LIBRARY_PATH
  9085.   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9086.   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9087.   ;;
  9088.  
  9089. sco3.2v5*)
  9090.   version_type=osf
  9091.   soname_spec='${libname}${release}${shared_ext}$major'
  9092.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9093.   shlibpath_var=LD_LIBRARY_PATH
  9094.   ;;
  9095.  
  9096. solaris*)
  9097.   version_type=linux
  9098.   need_lib_prefix=no
  9099.   need_version=no
  9100.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9101.   soname_spec='${libname}${release}${shared_ext}$major'
  9102.   shlibpath_var=LD_LIBRARY_PATH
  9103.   shlibpath_overrides_runpath=yes
  9104.   hardcode_into_libs=yes
  9105.   # ldd complains unless libraries are executable
  9106.   postinstall_cmds='chmod +x $lib'
  9107.   ;;
  9108.  
  9109. sunos4*)
  9110.   version_type=sunos
  9111.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9112.   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9113.   shlibpath_var=LD_LIBRARY_PATH
  9114.   shlibpath_overrides_runpath=yes
  9115.   if test "$with_gnu_ld" = yes; then
  9116.     need_lib_prefix=no
  9117.   fi
  9118.   need_version=yes
  9119.   ;;
  9120.  
  9121. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9122.   version_type=linux
  9123.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9124.   soname_spec='${libname}${release}${shared_ext}$major'
  9125.   shlibpath_var=LD_LIBRARY_PATH
  9126.   case $host_vendor in
  9127.     sni)
  9128.       shlibpath_overrides_runpath=no
  9129.       need_lib_prefix=no
  9130.       export_dynamic_flag_spec='${wl}-Blargedynsym'
  9131.       runpath_var=LD_RUN_PATH
  9132.       ;;
  9133.     siemens)
  9134.       need_lib_prefix=no
  9135.       ;;
  9136.     motorola)
  9137.       need_lib_prefix=no
  9138.       need_version=no
  9139.       shlibpath_overrides_runpath=no
  9140.       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9141.       ;;
  9142.   esac
  9143.   ;;
  9144.  
  9145. sysv4*MP*)
  9146.   if test -d /usr/nec ;then
  9147.     version_type=linux
  9148.     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9149.     soname_spec='$libname${shared_ext}.$major'
  9150.     shlibpath_var=LD_LIBRARY_PATH
  9151.   fi
  9152.   ;;
  9153.  
  9154. uts4*)
  9155.   version_type=linux
  9156.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9157.   soname_spec='${libname}${release}${shared_ext}$major'
  9158.   shlibpath_var=LD_LIBRARY_PATH
  9159.   ;;
  9160.  
  9161. *)
  9162.   dynamic_linker=no
  9163.   ;;
  9164. esac
  9165. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  9166. echo "${ECHO_T}$dynamic_linker" >&6
  9167. test "$dynamic_linker" = no && can_build_shared=no
  9168.  
  9169. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  9170. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  9171. hardcode_action=
  9172. if test -n "$hardcode_libdir_flag_spec" || \
  9173.    test -n "$runpath_var " || \
  9174.    test "X$hardcode_automatic"="Xyes" ; then
  9175.  
  9176.   # We can hardcode non-existant directories.
  9177.   if test "$hardcode_direct" != no &&
  9178.      # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9179.      # have to relink, otherwise we might link with an installed library
  9180.      # when we should be linking with a yet-to-be-installed one
  9181.      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9182.      test "$hardcode_minus_L" != no; then
  9183.     # Linking always hardcodes the temporary library directory.
  9184.     hardcode_action=relink
  9185.   else
  9186.     # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9187.     hardcode_action=immediate
  9188.   fi
  9189. else
  9190.   # We cannot hardcode anything, or else we can only hardcode existing
  9191.   # directories.
  9192.   hardcode_action=unsupported
  9193. fi
  9194. echo "$as_me:$LINENO: result: $hardcode_action" >&5
  9195. echo "${ECHO_T}$hardcode_action" >&6
  9196.  
  9197. if test "$hardcode_action" = relink; then
  9198.   # Fast installation is not supported
  9199.   enable_fast_install=no
  9200. elif test "$shlibpath_overrides_runpath" = yes ||
  9201.      test "$enable_shared" = no; then
  9202.   # Fast installation is not necessary
  9203.   enable_fast_install=needless
  9204. fi
  9205.  
  9206. striplib=
  9207. old_striplib=
  9208. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  9209. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  9210. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  9211.   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9212.   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9213.   echo "$as_me:$LINENO: result: yes" >&5
  9214. echo "${ECHO_T}yes" >&6
  9215. else
  9216. # FIXME - insert some real tests, host_os isn't really good enough
  9217.   case $host_os in
  9218.    darwin*)
  9219.        if test -n "$STRIP" ; then
  9220.          striplib="$STRIP -x"
  9221.          echo "$as_me:$LINENO: result: yes" >&5
  9222. echo "${ECHO_T}yes" >&6
  9223.        else
  9224.   echo "$as_me:$LINENO: result: no" >&5
  9225. echo "${ECHO_T}no" >&6
  9226. fi
  9227.        ;;
  9228.    *)
  9229.   echo "$as_me:$LINENO: result: no" >&5
  9230. echo "${ECHO_T}no" >&6
  9231.     ;;
  9232.   esac
  9233. fi
  9234.  
  9235. if test "x$enable_dlopen" != xyes; then
  9236.   enable_dlopen=unknown
  9237.   enable_dlopen_self=unknown
  9238.   enable_dlopen_self_static=unknown
  9239. else
  9240.   lt_cv_dlopen=no
  9241.   lt_cv_dlopen_libs=
  9242.  
  9243.   case $host_os in
  9244.   beos*)
  9245.     lt_cv_dlopen="load_add_on"
  9246.     lt_cv_dlopen_libs=
  9247.     lt_cv_dlopen_self=yes
  9248.     ;;
  9249.  
  9250.   mingw* | pw32*)
  9251.     lt_cv_dlopen="LoadLibrary"
  9252.     lt_cv_dlopen_libs=
  9253.    ;;
  9254.  
  9255.   cygwin*)
  9256.     lt_cv_dlopen="dlopen"
  9257.     lt_cv_dlopen_libs=
  9258.    ;;
  9259.  
  9260.   darwin*)
  9261.   # if libdl is installed we need to link against it
  9262.     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  9263. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  9264. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  9265.   echo $ECHO_N "(cached) $ECHO_C" >&6
  9266. else
  9267.   ac_check_lib_save_LIBS=$LIBS
  9268. LIBS="-ldl  $LIBS"
  9269. cat >conftest.$ac_ext <<_ACEOF
  9270. /* confdefs.h.  */
  9271. _ACEOF
  9272. cat confdefs.h >>conftest.$ac_ext
  9273. cat >>conftest.$ac_ext <<_ACEOF
  9274. /* end confdefs.h.  */
  9275.  
  9276. /* Override any gcc2 internal prototype to avoid an error.  */
  9277. #ifdef __cplusplus
  9278. extern "C"
  9279. #endif
  9280. /* We use char because int might match the return type of a gcc2
  9281.    builtin and then its argument prototype would still apply.  */
  9282. char dlopen ();
  9283. int
  9284. main ()
  9285. {
  9286. dlopen ();
  9287.   ;
  9288.   return 0;
  9289. }
  9290. _ACEOF
  9291. rm -f conftest.$ac_objext conftest$ac_exeext
  9292. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9293.   (eval $ac_link) 2>conftest.er1
  9294.   ac_status=$?
  9295.   grep -v '^ *+' conftest.er1 >conftest.err
  9296.   rm -f conftest.er1
  9297.   cat conftest.err >&5
  9298.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9299.   (exit $ac_status); } &&
  9300.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  9301.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9302.   (eval $ac_try) 2>&5
  9303.   ac_status=$?
  9304.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9305.   (exit $ac_status); }; } &&
  9306.      { ac_try='test -s conftest$ac_exeext'
  9307.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9308.   (eval $ac_try) 2>&5
  9309.   ac_status=$?
  9310.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9311.   (exit $ac_status); }; }; then
  9312.   ac_cv_lib_dl_dlopen=yes
  9313. else
  9314.   echo "$as_me: failed program was:" >&5
  9315. sed 's/^/| /' conftest.$ac_ext >&5
  9316.  
  9317. ac_cv_lib_dl_dlopen=no
  9318. fi
  9319. rm -f conftest.err conftest.$ac_objext \
  9320.       conftest$ac_exeext conftest.$ac_ext
  9321. LIBS=$ac_check_lib_save_LIBS
  9322. fi
  9323. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  9324. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  9325. if test $ac_cv_lib_dl_dlopen = yes; then
  9326.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9327. else
  9328.  
  9329.     lt_cv_dlopen="dyld"
  9330.     lt_cv_dlopen_libs=
  9331.     lt_cv_dlopen_self=yes
  9332.  
  9333. fi
  9334.  
  9335.    ;;
  9336.  
  9337.   *)
  9338.     echo "$as_me:$LINENO: checking for shl_load" >&5
  9339. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  9340. if test "${ac_cv_func_shl_load+set}" = set; then
  9341.   echo $ECHO_N "(cached) $ECHO_C" >&6
  9342. else
  9343.   cat >conftest.$ac_ext <<_ACEOF
  9344. /* confdefs.h.  */
  9345. _ACEOF
  9346. cat confdefs.h >>conftest.$ac_ext
  9347. cat >>conftest.$ac_ext <<_ACEOF
  9348. /* end confdefs.h.  */
  9349. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  9350.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  9351. #define shl_load innocuous_shl_load
  9352.  
  9353. /* System header to define __stub macros and hopefully few prototypes,
  9354.     which can conflict with char shl_load (); below.
  9355.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9356.     <limits.h> exists even on freestanding compilers.  */
  9357.  
  9358. #ifdef __STDC__
  9359. # include <limits.h>
  9360. #else
  9361. # include <assert.h>
  9362. #endif
  9363.  
  9364. #undef shl_load
  9365.  
  9366. /* Override any gcc2 internal prototype to avoid an error.  */
  9367. #ifdef __cplusplus
  9368. extern "C"
  9369. {
  9370. #endif
  9371. /* We use char because int might match the return type of a gcc2
  9372.    builtin and then its argument prototype would still apply.  */
  9373. char shl_load ();
  9374. /* The GNU C library defines this for functions which it implements
  9375.     to always fail with ENOSYS.  Some functions are actually named
  9376.     something starting with __ and the normal name is an alias.  */
  9377. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  9378. choke me
  9379. #else
  9380. char (*f) () = shl_load;
  9381. #endif
  9382. #ifdef __cplusplus
  9383. }
  9384. #endif
  9385.  
  9386. int
  9387. main ()
  9388. {
  9389. return f != shl_load;
  9390.   ;
  9391.   return 0;
  9392. }
  9393. _ACEOF
  9394. rm -f conftest.$ac_objext conftest$ac_exeext
  9395. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9396.   (eval $ac_link) 2>conftest.er1
  9397.   ac_status=$?
  9398.   grep -v '^ *+' conftest.er1 >conftest.err
  9399.   rm -f conftest.er1
  9400.   cat conftest.err >&5
  9401.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9402.   (exit $ac_status); } &&
  9403.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  9404.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9405.   (eval $ac_try) 2>&5
  9406.   ac_status=$?
  9407.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9408.   (exit $ac_status); }; } &&
  9409.      { ac_try='test -s conftest$ac_exeext'
  9410.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9411.   (eval $ac_try) 2>&5
  9412.   ac_status=$?
  9413.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9414.   (exit $ac_status); }; }; then
  9415.   ac_cv_func_shl_load=yes
  9416. else
  9417.   echo "$as_me: failed program was:" >&5
  9418. sed 's/^/| /' conftest.$ac_ext >&5
  9419.  
  9420. ac_cv_func_shl_load=no
  9421. fi
  9422. rm -f conftest.err conftest.$ac_objext \
  9423.       conftest$ac_exeext conftest.$ac_ext
  9424. fi
  9425. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  9426. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  9427. if test $ac_cv_func_shl_load = yes; then
  9428.   lt_cv_dlopen="shl_load"
  9429. else
  9430.   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  9431. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  9432. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  9433.   echo $ECHO_N "(cached) $ECHO_C" >&6
  9434. else
  9435.   ac_check_lib_save_LIBS=$LIBS
  9436. LIBS="-ldld  $LIBS"
  9437. cat >conftest.$ac_ext <<_ACEOF
  9438. /* confdefs.h.  */
  9439. _ACEOF
  9440. cat confdefs.h >>conftest.$ac_ext
  9441. cat >>conftest.$ac_ext <<_ACEOF
  9442. /* end confdefs.h.  */
  9443.  
  9444. /* Override any gcc2 internal prototype to avoid an error.  */
  9445. #ifdef __cplusplus
  9446. extern "C"
  9447. #endif
  9448. /* We use char because int might match the return type of a gcc2
  9449.    builtin and then its argument prototype would still apply.  */
  9450. char shl_load ();
  9451. int
  9452. main ()
  9453. {
  9454. shl_load ();
  9455.   ;
  9456.   return 0;
  9457. }
  9458. _ACEOF
  9459. rm -f conftest.$ac_objext conftest$ac_exeext
  9460. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9461.   (eval $ac_link) 2>conftest.er1
  9462.   ac_status=$?
  9463.   grep -v '^ *+' conftest.er1 >conftest.err
  9464.   rm -f conftest.er1
  9465.   cat conftest.err >&5
  9466.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9467.   (exit $ac_status); } &&
  9468.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  9469.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9470.   (eval $ac_try) 2>&5
  9471.   ac_status=$?
  9472.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9473.   (exit $ac_status); }; } &&
  9474.      { ac_try='test -s conftest$ac_exeext'
  9475.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9476.   (eval $ac_try) 2>&5
  9477.   ac_status=$?
  9478.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9479.   (exit $ac_status); }; }; then
  9480.   ac_cv_lib_dld_shl_load=yes
  9481. else
  9482.   echo "$as_me: failed program was:" >&5
  9483. sed 's/^/| /' conftest.$ac_ext >&5
  9484.  
  9485. ac_cv_lib_dld_shl_load=no
  9486. fi
  9487. rm -f conftest.err conftest.$ac_objext \
  9488.       conftest$ac_exeext conftest.$ac_ext
  9489. LIBS=$ac_check_lib_save_LIBS
  9490. fi
  9491. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  9492. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  9493. if test $ac_cv_lib_dld_shl_load = yes; then
  9494.   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  9495. else
  9496.   echo "$as_me:$LINENO: checking for dlopen" >&5
  9497. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  9498. if test "${ac_cv_func_dlopen+set}" = set; then
  9499.   echo $ECHO_N "(cached) $ECHO_C" >&6
  9500. else
  9501.   cat >conftest.$ac_ext <<_ACEOF
  9502. /* confdefs.h.  */
  9503. _ACEOF
  9504. cat confdefs.h >>conftest.$ac_ext
  9505. cat >>conftest.$ac_ext <<_ACEOF
  9506. /* end confdefs.h.  */
  9507. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  9508.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  9509. #define dlopen innocuous_dlopen
  9510.  
  9511. /* System header to define __stub macros and hopefully few prototypes,
  9512.     which can conflict with char dlopen (); below.
  9513.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9514.     <limits.h> exists even on freestanding compilers.  */
  9515.  
  9516. #ifdef __STDC__
  9517. # include <limits.h>
  9518. #else
  9519. # include <assert.h>
  9520. #endif
  9521.  
  9522. #undef dlopen
  9523.  
  9524. /* Override any gcc2 internal prototype to avoid an error.  */
  9525. #ifdef __cplusplus
  9526. extern "C"
  9527. {
  9528. #endif
  9529. /* We use char because int might match the return type of a gcc2
  9530.    builtin and then its argument prototype would still apply.  */
  9531. char dlopen ();
  9532. /* The GNU C library defines this for functions which it implements
  9533.     to always fail with ENOSYS.  Some functions are actually named
  9534.     something starting with __ and the normal name is an alias.  */
  9535. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  9536. choke me
  9537. #else
  9538. char (*f) () = dlopen;
  9539. #endif
  9540. #ifdef __cplusplus
  9541. }
  9542. #endif
  9543.  
  9544. int
  9545. main ()
  9546. {
  9547. return f != dlopen;
  9548.   ;
  9549.   return 0;
  9550. }
  9551. _ACEOF
  9552. rm -f conftest.$ac_objext conftest$ac_exeext
  9553. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9554.   (eval $ac_link) 2>conftest.er1
  9555.   ac_status=$?
  9556.   grep -v '^ *+' conftest.er1 >conftest.err
  9557.   rm -f conftest.er1
  9558.   cat conftest.err >&5
  9559.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9560.   (exit $ac_status); } &&
  9561.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  9562.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9563.   (eval $ac_try) 2>&5
  9564.   ac_status=$?
  9565.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9566.   (exit $ac_status); }; } &&
  9567.      { ac_try='test -s conftest$ac_exeext'
  9568.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9569.   (eval $ac_try) 2>&5
  9570.   ac_status=$?
  9571.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9572.   (exit $ac_status); }; }; then
  9573.   ac_cv_func_dlopen=yes
  9574. else
  9575.   echo "$as_me: failed program was:" >&5
  9576. sed 's/^/| /' conftest.$ac_ext >&5
  9577.  
  9578. ac_cv_func_dlopen=no
  9579. fi
  9580. rm -f conftest.err conftest.$ac_objext \
  9581.       conftest$ac_exeext conftest.$ac_ext
  9582. fi
  9583. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  9584. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  9585. if test $ac_cv_func_dlopen = yes; then
  9586.   lt_cv_dlopen="dlopen"
  9587. else
  9588.   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  9589. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  9590. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  9591.   echo $ECHO_N "(cached) $ECHO_C" >&6
  9592. else
  9593.   ac_check_lib_save_LIBS=$LIBS
  9594. LIBS="-ldl  $LIBS"
  9595. cat >conftest.$ac_ext <<_ACEOF
  9596. /* confdefs.h.  */
  9597. _ACEOF
  9598. cat confdefs.h >>conftest.$ac_ext
  9599. cat >>conftest.$ac_ext <<_ACEOF
  9600. /* end confdefs.h.  */
  9601.  
  9602. /* Override any gcc2 internal prototype to avoid an error.  */
  9603. #ifdef __cplusplus
  9604. extern "C"
  9605. #endif
  9606. /* We use char because int might match the return type of a gcc2
  9607.    builtin and then its argument prototype would still apply.  */
  9608. char dlopen ();
  9609. int
  9610. main ()
  9611. {
  9612. dlopen ();
  9613.   ;
  9614.   return 0;
  9615. }
  9616. _ACEOF
  9617. rm -f conftest.$ac_objext conftest$ac_exeext
  9618. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9619.   (eval $ac_link) 2>conftest.er1
  9620.   ac_status=$?
  9621.   grep -v '^ *+' conftest.er1 >conftest.err
  9622.   rm -f conftest.er1
  9623.   cat conftest.err >&5
  9624.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9625.   (exit $ac_status); } &&
  9626.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  9627.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9628.   (eval $ac_try) 2>&5
  9629.   ac_status=$?
  9630.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9631.   (exit $ac_status); }; } &&
  9632.      { ac_try='test -s conftest$ac_exeext'
  9633.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9634.   (eval $ac_try) 2>&5
  9635.   ac_status=$?
  9636.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9637.   (exit $ac_status); }; }; then
  9638.   ac_cv_lib_dl_dlopen=yes
  9639. else
  9640.   echo "$as_me: failed program was:" >&5
  9641. sed 's/^/| /' conftest.$ac_ext >&5
  9642.  
  9643. ac_cv_lib_dl_dlopen=no
  9644. fi
  9645. rm -f conftest.err conftest.$ac_objext \
  9646.       conftest$ac_exeext conftest.$ac_ext
  9647. LIBS=$ac_check_lib_save_LIBS
  9648. fi
  9649. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  9650. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  9651. if test $ac_cv_lib_dl_dlopen = yes; then
  9652.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9653. else
  9654.   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  9655. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  9656. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  9657.   echo $ECHO_N "(cached) $ECHO_C" >&6
  9658. else
  9659.   ac_check_lib_save_LIBS=$LIBS
  9660. LIBS="-lsvld  $LIBS"
  9661. cat >conftest.$ac_ext <<_ACEOF
  9662. /* confdefs.h.  */
  9663. _ACEOF
  9664. cat confdefs.h >>conftest.$ac_ext
  9665. cat >>conftest.$ac_ext <<_ACEOF
  9666. /* end confdefs.h.  */
  9667.  
  9668. /* Override any gcc2 internal prototype to avoid an error.  */
  9669. #ifdef __cplusplus
  9670. extern "C"
  9671. #endif
  9672. /* We use char because int might match the return type of a gcc2
  9673.    builtin and then its argument prototype would still apply.  */
  9674. char dlopen ();
  9675. int
  9676. main ()
  9677. {
  9678. dlopen ();
  9679.   ;
  9680.   return 0;
  9681. }
  9682. _ACEOF
  9683. rm -f conftest.$ac_objext conftest$ac_exeext
  9684. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9685.   (eval $ac_link) 2>conftest.er1
  9686.   ac_status=$?
  9687.   grep -v '^ *+' conftest.er1 >conftest.err
  9688.   rm -f conftest.er1
  9689.   cat conftest.err >&5
  9690.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9691.   (exit $ac_status); } &&
  9692.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  9693.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9694.   (eval $ac_try) 2>&5
  9695.   ac_status=$?
  9696.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9697.   (exit $ac_status); }; } &&
  9698.      { ac_try='test -s conftest$ac_exeext'
  9699.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9700.   (eval $ac_try) 2>&5
  9701.   ac_status=$?
  9702.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9703.   (exit $ac_status); }; }; then
  9704.   ac_cv_lib_svld_dlopen=yes
  9705. else
  9706.   echo "$as_me: failed program was:" >&5
  9707. sed 's/^/| /' conftest.$ac_ext >&5
  9708.  
  9709. ac_cv_lib_svld_dlopen=no
  9710. fi
  9711. rm -f conftest.err conftest.$ac_objext \
  9712.       conftest$ac_exeext conftest.$ac_ext
  9713. LIBS=$ac_check_lib_save_LIBS
  9714. fi
  9715. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  9716. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  9717. if test $ac_cv_lib_svld_dlopen = yes; then
  9718.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9719. else
  9720.   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  9721. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  9722. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  9723.   echo $ECHO_N "(cached) $ECHO_C" >&6
  9724. else
  9725.   ac_check_lib_save_LIBS=$LIBS
  9726. LIBS="-ldld  $LIBS"
  9727. cat >conftest.$ac_ext <<_ACEOF
  9728. /* confdefs.h.  */
  9729. _ACEOF
  9730. cat confdefs.h >>conftest.$ac_ext
  9731. cat >>conftest.$ac_ext <<_ACEOF
  9732. /* end confdefs.h.  */
  9733.  
  9734. /* Override any gcc2 internal prototype to avoid an error.  */
  9735. #ifdef __cplusplus
  9736. extern "C"
  9737. #endif
  9738. /* We use char because int might match the return type of a gcc2
  9739.    builtin and then its argument prototype would still apply.  */
  9740. char dld_link ();
  9741. int
  9742. main ()
  9743. {
  9744. dld_link ();
  9745.   ;
  9746.   return 0;
  9747. }
  9748. _ACEOF
  9749. rm -f conftest.$ac_objext conftest$ac_exeext
  9750. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9751.   (eval $ac_link) 2>conftest.er1
  9752.   ac_status=$?
  9753.   grep -v '^ *+' conftest.er1 >conftest.err
  9754.   rm -f conftest.er1
  9755.   cat conftest.err >&5
  9756.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9757.   (exit $ac_status); } &&
  9758.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  9759.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9760.   (eval $ac_try) 2>&5
  9761.   ac_status=$?
  9762.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9763.   (exit $ac_status); }; } &&
  9764.      { ac_try='test -s conftest$ac_exeext'
  9765.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9766.   (eval $ac_try) 2>&5
  9767.   ac_status=$?
  9768.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9769.   (exit $ac_status); }; }; then
  9770.   ac_cv_lib_dld_dld_link=yes
  9771. else
  9772.   echo "$as_me: failed program was:" >&5
  9773. sed 's/^/| /' conftest.$ac_ext >&5
  9774.  
  9775. ac_cv_lib_dld_dld_link=no
  9776. fi
  9777. rm -f conftest.err conftest.$ac_objext \
  9778.       conftest$ac_exeext conftest.$ac_ext
  9779. LIBS=$ac_check_lib_save_LIBS
  9780. fi
  9781. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  9782. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  9783. if test $ac_cv_lib_dld_dld_link = yes; then
  9784.   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  9785. fi
  9786.  
  9787.  
  9788. fi
  9789.  
  9790.  
  9791. fi
  9792.  
  9793.  
  9794. fi
  9795.  
  9796.  
  9797. fi
  9798.  
  9799.  
  9800. fi
  9801.  
  9802.     ;;
  9803.   esac
  9804.  
  9805.   if test "x$lt_cv_dlopen" != xno; then
  9806.     enable_dlopen=yes
  9807.   else
  9808.     enable_dlopen=no
  9809.   fi
  9810.  
  9811.   case $lt_cv_dlopen in
  9812.   dlopen)
  9813.     save_CPPFLAGS="$CPPFLAGS"
  9814.     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9815.  
  9816.     save_LDFLAGS="$LDFLAGS"
  9817.     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9818.  
  9819.     save_LIBS="$LIBS"
  9820.     LIBS="$lt_cv_dlopen_libs $LIBS"
  9821.  
  9822.     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  9823. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  9824. if test "${lt_cv_dlopen_self+set}" = set; then
  9825.   echo $ECHO_N "(cached) $ECHO_C" >&6
  9826. else
  9827.         if test "$cross_compiling" = yes; then :
  9828.   lt_cv_dlopen_self=cross
  9829. else
  9830.   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9831.   lt_status=$lt_dlunknown
  9832.   cat > conftest.$ac_ext <<EOF
  9833. #line 9833 "configure"
  9834. #include "confdefs.h"
  9835.  
  9836. #if HAVE_DLFCN_H
  9837. #include <dlfcn.h>
  9838. #endif
  9839.  
  9840. #include <stdio.h>
  9841.  
  9842. #ifdef RTLD_GLOBAL
  9843. #  define LT_DLGLOBAL        RTLD_GLOBAL
  9844. #else
  9845. #  ifdef DL_GLOBAL
  9846. #    define LT_DLGLOBAL        DL_GLOBAL
  9847. #  else
  9848. #    define LT_DLGLOBAL        0
  9849. #  endif
  9850. #endif
  9851.  
  9852. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9853.    find out it does not work in some platform. */
  9854. #ifndef LT_DLLAZY_OR_NOW
  9855. #  ifdef RTLD_LAZY
  9856. #    define LT_DLLAZY_OR_NOW        RTLD_LAZY
  9857. #  else
  9858. #    ifdef DL_LAZY
  9859. #      define LT_DLLAZY_OR_NOW        DL_LAZY
  9860. #    else
  9861. #      ifdef RTLD_NOW
  9862. #        define LT_DLLAZY_OR_NOW    RTLD_NOW
  9863. #      else
  9864. #        ifdef DL_NOW
  9865. #          define LT_DLLAZY_OR_NOW    DL_NOW
  9866. #        else
  9867. #          define LT_DLLAZY_OR_NOW    0
  9868. #        endif
  9869. #      endif
  9870. #    endif
  9871. #  endif
  9872. #endif
  9873.  
  9874. #ifdef __cplusplus
  9875. extern "C" void exit (int);
  9876. #endif
  9877.  
  9878. void fnord() { int i=42;}
  9879. int main ()
  9880. {
  9881.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9882.   int status = $lt_dlunknown;
  9883.  
  9884.   if (self)
  9885.     {
  9886.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  9887.       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9888.       /* dlclose (self); */
  9889.     }
  9890.  
  9891.     exit (status);
  9892. }
  9893. EOF
  9894.   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9895.   (eval $ac_link) 2>&5
  9896.   ac_status=$?
  9897.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9898.   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9899.     (./conftest; exit; ) 2>/dev/null
  9900.     lt_status=$?
  9901.     case x$lt_status in
  9902.       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9903.       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9904.       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  9905.     esac
  9906.   else :
  9907.     # compilation failed
  9908.     lt_cv_dlopen_self=no
  9909.   fi
  9910. fi
  9911. rm -fr conftest*
  9912.  
  9913.  
  9914. fi
  9915. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  9916. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  9917.  
  9918.     if test "x$lt_cv_dlopen_self" = xyes; then
  9919.       LDFLAGS="$LDFLAGS $link_static_flag"
  9920.       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  9921. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  9922. if test "${lt_cv_dlopen_self_static+set}" = set; then
  9923.   echo $ECHO_N "(cached) $ECHO_C" >&6
  9924. else
  9925.         if test "$cross_compiling" = yes; then :
  9926.   lt_cv_dlopen_self_static=cross
  9927. else
  9928.   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9929.   lt_status=$lt_dlunknown
  9930.   cat > conftest.$ac_ext <<EOF
  9931. #line 9931 "configure"
  9932. #include "confdefs.h"
  9933.  
  9934. #if HAVE_DLFCN_H
  9935. #include <dlfcn.h>
  9936. #endif
  9937.  
  9938. #include <stdio.h>
  9939.  
  9940. #ifdef RTLD_GLOBAL
  9941. #  define LT_DLGLOBAL        RTLD_GLOBAL
  9942. #else
  9943. #  ifdef DL_GLOBAL
  9944. #    define LT_DLGLOBAL        DL_GLOBAL
  9945. #  else
  9946. #    define LT_DLGLOBAL        0
  9947. #  endif
  9948. #endif
  9949.  
  9950. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9951.    find out it does not work in some platform. */
  9952. #ifndef LT_DLLAZY_OR_NOW
  9953. #  ifdef RTLD_LAZY
  9954. #    define LT_DLLAZY_OR_NOW        RTLD_LAZY
  9955. #  else
  9956. #    ifdef DL_LAZY
  9957. #      define LT_DLLAZY_OR_NOW        DL_LAZY
  9958. #    else
  9959. #      ifdef RTLD_NOW
  9960. #        define LT_DLLAZY_OR_NOW    RTLD_NOW
  9961. #      else
  9962. #        ifdef DL_NOW
  9963. #          define LT_DLLAZY_OR_NOW    DL_NOW
  9964. #        else
  9965. #          define LT_DLLAZY_OR_NOW    0
  9966. #        endif
  9967. #      endif
  9968. #    endif
  9969. #  endif
  9970. #endif
  9971.  
  9972. #ifdef __cplusplus
  9973. extern "C" void exit (int);
  9974. #endif
  9975.  
  9976. void fnord() { int i=42;}
  9977. int main ()
  9978. {
  9979.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9980.   int status = $lt_dlunknown;
  9981.  
  9982.   if (self)
  9983.     {
  9984.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  9985.       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9986.       /* dlclose (self); */
  9987.     }
  9988.  
  9989.     exit (status);
  9990. }
  9991. EOF
  9992.   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9993.   (eval $ac_link) 2>&5
  9994.   ac_status=$?
  9995.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9996.   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9997.     (./conftest; exit; ) 2>/dev/null
  9998.     lt_status=$?
  9999.     case x$lt_status in
  10000.       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10001.       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10002.       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  10003.     esac
  10004.   else :
  10005.     # compilation failed
  10006.     lt_cv_dlopen_self_static=no
  10007.   fi
  10008. fi
  10009. rm -fr conftest*
  10010.  
  10011.  
  10012. fi
  10013. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  10014. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  10015.     fi
  10016.  
  10017.     CPPFLAGS="$save_CPPFLAGS"
  10018.     LDFLAGS="$save_LDFLAGS"
  10019.     LIBS="$save_LIBS"
  10020.     ;;
  10021.   esac
  10022.  
  10023.   case $lt_cv_dlopen_self in
  10024.   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10025.   *) enable_dlopen_self=unknown ;;
  10026.   esac
  10027.  
  10028.   case $lt_cv_dlopen_self_static in
  10029.   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10030.   *) enable_dlopen_self_static=unknown ;;
  10031.   esac
  10032. fi
  10033.  
  10034.  
  10035. # Report which librarie types wil actually be built
  10036. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  10037. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  10038. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  10039. echo "${ECHO_T}$can_build_shared" >&6
  10040.  
  10041. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  10042. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  10043. test "$can_build_shared" = "no" && enable_shared=no
  10044.  
  10045. # On AIX, shared libraries and static libraries use the same namespace, and
  10046. # are all built from PIC.
  10047. case "$host_os" in
  10048. aix3*)
  10049.   test "$enable_shared" = yes && enable_static=no
  10050.   if test -n "$RANLIB"; then
  10051.     archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10052.     postinstall_cmds='$RANLIB $lib'
  10053.   fi
  10054.   ;;
  10055.  
  10056. aix4* | aix5*)
  10057.   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10058.     test "$enable_shared" = yes && enable_static=no
  10059.   fi
  10060.   ;;
  10061.   darwin* | rhapsody*)
  10062.   if test "$GCC" = yes; then
  10063.     archive_cmds_need_lc=no
  10064.     case "$host_os" in
  10065.     rhapsody* | darwin1.[012])
  10066.       allow_undefined_flag='-undefined suppress'
  10067.       ;;
  10068.     *) # Darwin 1.3 on
  10069.       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  10070.           allow_undefined_flag='-flat_namespace -undefined suppress'
  10071.       else
  10072.         case ${MACOSX_DEPLOYMENT_TARGET} in
  10073.           10.[012])
  10074.             allow_undefined_flag='-flat_namespace -undefined suppress'
  10075.             ;;
  10076.           10.*)
  10077.             allow_undefined_flag='-undefined dynamic_lookup'
  10078.             ;;
  10079.         esac
  10080.       fi
  10081.       ;;
  10082.     esac
  10083.     output_verbose_link_cmd='echo'
  10084.     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
  10085.     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10086.     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  10087.     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}'
  10088.     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}'
  10089.     hardcode_direct=no
  10090.     hardcode_automatic=yes
  10091.     hardcode_shlibpath_var=unsupported
  10092.     whole_archive_flag_spec='-all_load $convenience'
  10093.     link_all_deplibs=yes
  10094.   else
  10095.     ld_shlibs=no
  10096.   fi
  10097.     ;;
  10098. esac
  10099. echo "$as_me:$LINENO: result: $enable_shared" >&5
  10100. echo "${ECHO_T}$enable_shared" >&6
  10101.  
  10102. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  10103. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  10104. # Make sure either enable_shared or enable_static is yes.
  10105. test "$enable_shared" = yes || enable_static=yes
  10106. echo "$as_me:$LINENO: result: $enable_static" >&5
  10107. echo "${ECHO_T}$enable_static" >&6
  10108.  
  10109. # The else clause should only fire when bootstrapping the
  10110. # libtool distribution, otherwise you forgot to ship ltmain.sh
  10111. # with your package, and you will get complaints that there are
  10112. # no rules to generate ltmain.sh.
  10113. if test -f "$ltmain"; then
  10114.   # See if we are running on zsh, and set the options which allow our commands through
  10115.   # without removal of \ escapes.
  10116.   if test -n "${ZSH_VERSION+set}" ; then
  10117.     setopt NO_GLOB_SUBST
  10118.   fi
  10119.   # Now quote all the things that may contain metacharacters while being
  10120.   # careful not to overquote the AC_SUBSTed values.  We take copies of the
  10121.   # variables and quote the copies for generation of the libtool script.
  10122.   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  10123.     SED SHELL STRIP \
  10124.     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  10125.     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  10126.     deplibs_check_method reload_flag reload_cmds need_locks \
  10127.     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  10128.     lt_cv_sys_global_symbol_to_c_name_address \
  10129.     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  10130.     old_postinstall_cmds old_postuninstall_cmds \
  10131.     compiler \
  10132.     CC \
  10133.     LD \
  10134.     lt_prog_compiler_wl \
  10135.     lt_prog_compiler_pic \
  10136.     lt_prog_compiler_static \
  10137.     lt_prog_compiler_no_builtin_flag \
  10138.     export_dynamic_flag_spec \
  10139.     thread_safe_flag_spec \
  10140.     whole_archive_flag_spec \
  10141.     enable_shared_with_static_runtimes \
  10142.     old_archive_cmds \
  10143.     old_archive_from_new_cmds \
  10144.     predep_objects \
  10145.     postdep_objects \
  10146.     predeps \
  10147.     postdeps \
  10148.     compiler_lib_search_path \
  10149.     archive_cmds \
  10150.     archive_expsym_cmds \
  10151.     postinstall_cmds \
  10152.     postuninstall_cmds \
  10153.     old_archive_from_expsyms_cmds \
  10154.     allow_undefined_flag \
  10155.     no_undefined_flag \
  10156.     export_symbols_cmds \
  10157.     hardcode_libdir_flag_spec \
  10158.     hardcode_libdir_flag_spec_ld \
  10159.     hardcode_libdir_separator \
  10160.     hardcode_automatic \
  10161.     module_cmds \
  10162.     module_expsym_cmds \
  10163.     lt_cv_prog_compiler_c_o \
  10164.     exclude_expsyms \
  10165.     include_expsyms; do
  10166.  
  10167.     case $var in
  10168.     old_archive_cmds | \
  10169.     old_archive_from_new_cmds | \
  10170.     archive_cmds | \
  10171.     archive_expsym_cmds | \
  10172.     module_cmds | \
  10173.     module_expsym_cmds | \
  10174.     old_archive_from_expsyms_cmds | \
  10175.     export_symbols_cmds | \
  10176.     extract_expsyms_cmds | reload_cmds | finish_cmds | \
  10177.     postinstall_cmds | postuninstall_cmds | \
  10178.     old_postinstall_cmds | old_postuninstall_cmds | \
  10179.     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  10180.       # Double-quote double-evaled strings.
  10181.       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  10182.       ;;
  10183.     *)
  10184.       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  10185.       ;;
  10186.     esac
  10187.   done
  10188.  
  10189.   case $lt_echo in
  10190.   *'\$0 --fallback-echo"')
  10191.     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  10192.     ;;
  10193.   esac
  10194.  
  10195. cfgfile="${ofile}T"
  10196.   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  10197.   $rm -f "$cfgfile"
  10198.   { echo "$as_me:$LINENO: creating $ofile" >&5
  10199. echo "$as_me: creating $ofile" >&6;}
  10200.  
  10201.   cat <<__EOF__ >> "$cfgfile"
  10202. #! $SHELL
  10203.  
  10204. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  10205. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  10206. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  10207. #
  10208. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  10209. # Free Software Foundation, Inc.
  10210. #
  10211. # This file is part of GNU Libtool:
  10212. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  10213. #
  10214. # This program is free software; you can redistribute it and/or modify
  10215. # it under the terms of the GNU General Public License as published by
  10216. # the Free Software Foundation; either version 2 of the License, or
  10217. # (at your option) any later version.
  10218. #
  10219. # This program is distributed in the hope that it will be useful, but
  10220. # WITHOUT ANY WARRANTY; without even the implied warranty of
  10221. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  10222. # General Public License for more details.
  10223. #
  10224. # You should have received a copy of the GNU General Public License
  10225. # along with this program; if not, write to the Free Software
  10226. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  10227. #
  10228. # As a special exception to the GNU General Public License, if you
  10229. # distribute this file as part of a program that contains a
  10230. # configuration script generated by Autoconf, you may include it under
  10231. # the same distribution terms that you use for the rest of that program.
  10232.  
  10233. # A sed program that does not truncate output.
  10234. SED=$lt_SED
  10235.  
  10236. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  10237. Xsed="$SED -e s/^X//"
  10238.  
  10239. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10240. # if CDPATH is set.
  10241. if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  10242.  
  10243. # The names of the tagged configurations supported by this script.
  10244. available_tags=
  10245.  
  10246. # ### BEGIN LIBTOOL CONFIG
  10247.  
  10248. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  10249.  
  10250. # Shell to use when invoking shell scripts.
  10251. SHELL=$lt_SHELL
  10252.  
  10253. # Whether or not to build shared libraries.
  10254. build_libtool_libs=$enable_shared
  10255.  
  10256. # Whether or not to build static libraries.
  10257. build_old_libs=$enable_static
  10258.  
  10259. # Whether or not to add -lc for building shared libraries.
  10260. build_libtool_need_lc=$archive_cmds_need_lc
  10261.  
  10262. # Whether or not to disallow shared libs when runtime libs are static
  10263. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  10264.  
  10265. # Whether or not to optimize for fast installation.
  10266. fast_install=$enable_fast_install
  10267.  
  10268. # The host system.
  10269. host_alias=$host_alias
  10270. host=$host
  10271.  
  10272. # An echo program that does not interpret backslashes.
  10273. echo=$lt_echo
  10274.  
  10275. # The archiver.
  10276. AR=$lt_AR
  10277. AR_FLAGS=$lt_AR_FLAGS
  10278.  
  10279. # A C compiler.
  10280. LTCC=$lt_LTCC
  10281.  
  10282. # A language-specific compiler.
  10283. CC=$lt_compiler
  10284.  
  10285. # Is the compiler the GNU C compiler?
  10286. with_gcc=$GCC
  10287.  
  10288. # An ERE matcher.
  10289. EGREP=$lt_EGREP
  10290.  
  10291. # The linker used to build libraries.
  10292. LD=$lt_LD
  10293.  
  10294. # Whether we need hard or soft links.
  10295. LN_S=$lt_LN_S
  10296.  
  10297. # A BSD-compatible nm program.
  10298. NM=$lt_NM
  10299.  
  10300. # A symbol stripping program
  10301. STRIP=$lt_STRIP
  10302.  
  10303. # Used to examine libraries when file_magic_cmd begins "file"
  10304. MAGIC_CMD=$MAGIC_CMD
  10305.  
  10306. # Used on cygwin: DLL creation program.
  10307. DLLTOOL="$DLLTOOL"
  10308.  
  10309. # Used on cygwin: object dumper.
  10310. OBJDUMP="$OBJDUMP"
  10311.  
  10312. # Used on cygwin: assembler.
  10313. AS="$AS"
  10314.  
  10315. # The name of the directory that contains temporary libtool files.
  10316. objdir=$objdir
  10317.  
  10318. # How to create reloadable object files.
  10319. reload_flag=$lt_reload_flag
  10320. reload_cmds=$lt_reload_cmds
  10321.  
  10322. # How to pass a linker flag through the compiler.
  10323. wl=$lt_lt_prog_compiler_wl
  10324.  
  10325. # Object file suffix (normally "o").
  10326. objext="$ac_objext"
  10327.  
  10328. # Old archive suffix (normally "a").
  10329. libext="$libext"
  10330.  
  10331. # Shared library suffix (normally ".so").
  10332. shrext_cmds='$shrext_cmds'
  10333.  
  10334. # Executable file suffix (normally "").
  10335. exeext="$exeext"
  10336.  
  10337. # Additional compiler flags for building library objects.
  10338. pic_flag=$lt_lt_prog_compiler_pic
  10339. pic_mode=$pic_mode
  10340.  
  10341. # What is the maximum length of a command?
  10342. max_cmd_len=$lt_cv_sys_max_cmd_len
  10343.  
  10344. # Does compiler simultaneously support -c and -o options?
  10345. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  10346.  
  10347. # Must we lock files when doing compilation ?
  10348. need_locks=$lt_need_locks
  10349.  
  10350. # Do we need the lib prefix for modules?
  10351. need_lib_prefix=$need_lib_prefix
  10352.  
  10353. # Do we need a version for libraries?
  10354. need_version=$need_version
  10355.  
  10356. # Whether dlopen is supported.
  10357. dlopen_support=$enable_dlopen
  10358.  
  10359. # Whether dlopen of programs is supported.
  10360. dlopen_self=$enable_dlopen_self
  10361.  
  10362. # Whether dlopen of statically linked programs is supported.
  10363. dlopen_self_static=$enable_dlopen_self_static
  10364.  
  10365. # Compiler flag to prevent dynamic linking.
  10366. link_static_flag=$lt_lt_prog_compiler_static
  10367.  
  10368. # Compiler flag to turn off builtin functions.
  10369. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  10370.  
  10371. # Compiler flag to allow reflexive dlopens.
  10372. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  10373.  
  10374. # Compiler flag to generate shared objects directly from archives.
  10375. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  10376.  
  10377. # Compiler flag to generate thread-safe objects.
  10378. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  10379.  
  10380. # Library versioning type.
  10381. version_type=$version_type
  10382.  
  10383. # Format of library name prefix.
  10384. libname_spec=$lt_libname_spec
  10385.  
  10386. # List of archive names.  First name is the real one, the rest are links.
  10387. # The last name is the one that the linker finds with -lNAME.
  10388. library_names_spec=$lt_library_names_spec
  10389.  
  10390. # The coded name of the library, if different from the real name.
  10391. soname_spec=$lt_soname_spec
  10392.  
  10393. # Commands used to build and install an old-style archive.
  10394. RANLIB=$lt_RANLIB
  10395. old_archive_cmds=$lt_old_archive_cmds
  10396. old_postinstall_cmds=$lt_old_postinstall_cmds
  10397. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  10398.  
  10399. # Create an old-style archive from a shared archive.
  10400. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  10401.  
  10402. # Create a temporary old-style archive to link instead of a shared archive.
  10403. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  10404.  
  10405. # Commands used to build and install a shared archive.
  10406. archive_cmds=$lt_archive_cmds
  10407. archive_expsym_cmds=$lt_archive_expsym_cmds
  10408. postinstall_cmds=$lt_postinstall_cmds
  10409. postuninstall_cmds=$lt_postuninstall_cmds
  10410.  
  10411. # Commands used to build a loadable module (assumed same as above if empty)
  10412. module_cmds=$lt_module_cmds
  10413. module_expsym_cmds=$lt_module_expsym_cmds
  10414.  
  10415. # Commands to strip libraries.
  10416. old_striplib=$lt_old_striplib
  10417. striplib=$lt_striplib
  10418.  
  10419. # Dependencies to place before the objects being linked to create a
  10420. # shared library.
  10421. predep_objects=$lt_predep_objects
  10422.  
  10423. # Dependencies to place after the objects being linked to create a
  10424. # shared library.
  10425. postdep_objects=$lt_postdep_objects
  10426.  
  10427. # Dependencies to place before the objects being linked to create a
  10428. # shared library.
  10429. predeps=$lt_predeps
  10430.  
  10431. # Dependencies to place after the objects being linked to create a
  10432. # shared library.
  10433. postdeps=$lt_postdeps
  10434.  
  10435. # The library search path used internally by the compiler when linking
  10436. # a shared library.
  10437. compiler_lib_search_path=$lt_compiler_lib_search_path
  10438.  
  10439. # Method to check whether dependent libraries are shared objects.
  10440. deplibs_check_method=$lt_deplibs_check_method
  10441.  
  10442. # Command to use when deplibs_check_method == file_magic.
  10443. file_magic_cmd=$lt_file_magic_cmd
  10444.  
  10445. # Flag that allows shared libraries with undefined symbols to be built.
  10446. allow_undefined_flag=$lt_allow_undefined_flag
  10447.  
  10448. # Flag that forces no undefined symbols.
  10449. no_undefined_flag=$lt_no_undefined_flag
  10450.  
  10451. # Commands used to finish a libtool library installation in a directory.
  10452. finish_cmds=$lt_finish_cmds
  10453.  
  10454. # Same as above, but a single script fragment to be evaled but not shown.
  10455. finish_eval=$lt_finish_eval
  10456.  
  10457. # Take the output of nm and produce a listing of raw symbols and C names.
  10458. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  10459.  
  10460. # Transform the output of nm in a proper C declaration
  10461. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  10462.  
  10463. # Transform the output of nm in a C name address pair
  10464. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  10465.  
  10466. # This is the shared library runtime path variable.
  10467. runpath_var=$runpath_var
  10468.  
  10469. # This is the shared library path variable.
  10470. shlibpath_var=$shlibpath_var
  10471.  
  10472. # Is shlibpath searched before the hard-coded library search path?
  10473. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  10474.  
  10475. # How to hardcode a shared library path into an executable.
  10476. hardcode_action=$hardcode_action
  10477.  
  10478. # Whether we should hardcode library paths into libraries.
  10479. hardcode_into_libs=$hardcode_into_libs
  10480.  
  10481. # Flag to hardcode \$libdir into a binary during linking.
  10482. # This must work even if \$libdir does not exist.
  10483. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  10484.  
  10485. # If ld is used when linking, flag to hardcode \$libdir into
  10486. # a binary during linking. This must work even if \$libdir does
  10487. # not exist.
  10488. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  10489.  
  10490. # Whether we need a single -rpath flag with a separated argument.
  10491. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  10492.  
  10493. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  10494. # resulting binary.
  10495. hardcode_direct=$hardcode_direct
  10496.  
  10497. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  10498. # resulting binary.
  10499. hardcode_minus_L=$hardcode_minus_L
  10500.  
  10501. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  10502. # the resulting binary.
  10503. hardcode_shlibpath_var=$hardcode_shlibpath_var
  10504.  
  10505. # Set to yes if building a shared library automatically hardcodes DIR into the library
  10506. # and all subsequent libraries and executables linked against it.
  10507. hardcode_automatic=$hardcode_automatic
  10508.  
  10509. # Variables whose values should be saved in libtool wrapper scripts and
  10510. # restored at relink time.
  10511. variables_saved_for_relink="$variables_saved_for_relink"
  10512.  
  10513. # Whether libtool must link a program against all its dependency libraries.
  10514. link_all_deplibs=$link_all_deplibs
  10515.  
  10516. # Compile-time system search path for libraries
  10517. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  10518.  
  10519. # Run-time system search path for libraries
  10520. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  10521.  
  10522. # Fix the shell variable \$srcfile for the compiler.
  10523. fix_srcfile_path="$fix_srcfile_path"
  10524.  
  10525. # Set to yes if exported symbols are required.
  10526. always_export_symbols=$always_export_symbols
  10527.  
  10528. # The commands to list exported symbols.
  10529. export_symbols_cmds=$lt_export_symbols_cmds
  10530.  
  10531. # The commands to extract the exported symbol list from a shared archive.
  10532. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  10533.  
  10534. # Symbols that should not be listed in the preloaded symbols.
  10535. exclude_expsyms=$lt_exclude_expsyms
  10536.  
  10537. # Symbols that must always be exported.
  10538. include_expsyms=$lt_include_expsyms
  10539.  
  10540. # ### END LIBTOOL CONFIG
  10541.  
  10542. __EOF__
  10543.  
  10544.  
  10545.   case $host_os in
  10546.   aix3*)
  10547.     cat <<\EOF >> "$cfgfile"
  10548.  
  10549. # AIX sometimes has problems with the GCC collect2 program.  For some
  10550. # reason, if we set the COLLECT_NAMES environment variable, the problems
  10551. # vanish in a puff of smoke.
  10552. if test "X${COLLECT_NAMES+set}" != Xset; then
  10553.   COLLECT_NAMES=
  10554.   export COLLECT_NAMES
  10555. fi
  10556. EOF
  10557.     ;;
  10558.   esac
  10559.  
  10560.   # We use sed instead of cat because bash on DJGPP gets confused if
  10561.   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  10562.   # text mode, it properly converts lines to CR/LF.  This bash problem
  10563.   # is reportedly fixed, but why not run on old versions too?
  10564.   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  10565.  
  10566.   mv -f "$cfgfile" "$ofile" || \
  10567.     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  10568.   chmod +x "$ofile"
  10569.  
  10570. else
  10571.   # If there is no Makefile yet, we rely on a make rule to execute
  10572.   # `config.status --recheck' to rerun these tests and create the
  10573.   # libtool script then.
  10574.   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  10575.   if test -f "$ltmain_in"; then
  10576.     test -f Makefile && make "$ltmain"
  10577.   fi
  10578. fi
  10579.  
  10580.  
  10581. ac_ext=cc
  10582. ac_cpp='$CXXCPP $CPPFLAGS'
  10583. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10584. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10585. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10586.  
  10587. CC="$lt_save_CC"
  10588.  
  10589.  
  10590. # Check whether --with-tags or --without-tags was given.
  10591. if test "${with_tags+set}" = set; then
  10592.   withval="$with_tags"
  10593.   tagnames="$withval"
  10594. fi;
  10595.  
  10596. if test -f "$ltmain" && test -n "$tagnames"; then
  10597.   if test ! -f "${ofile}"; then
  10598.     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  10599. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  10600.   fi
  10601.  
  10602.   if test -z "$LTCC"; then
  10603.     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  10604.     if test -z "$LTCC"; then
  10605.       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  10606. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  10607.     else
  10608.       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  10609. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  10610.     fi
  10611.   fi
  10612.  
  10613.   # Extract list of available tagged configurations in $ofile.
  10614.   # Note that this assumes the entire list is on one line.
  10615.   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  10616.  
  10617.   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10618.   for tagname in $tagnames; do
  10619.     IFS="$lt_save_ifs"
  10620.     # Check whether tagname contains only valid characters
  10621.     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  10622.     "") ;;
  10623.     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  10624. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  10625.    { (exit 1); exit 1; }; }
  10626.     ;;
  10627.     esac
  10628.  
  10629.     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  10630.     then
  10631.       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  10632. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  10633.    { (exit 1); exit 1; }; }
  10634.     fi
  10635.  
  10636.     # Update the list of available tags.
  10637.     if test -n "$tagname"; then
  10638.       echo appending configuration tag \"$tagname\" to $ofile
  10639.  
  10640.       case $tagname in
  10641.       CXX)
  10642.     if test -n "$CXX" && test "X$CXX" != "Xno"; then
  10643.       ac_ext=cc
  10644. ac_cpp='$CXXCPP $CPPFLAGS'
  10645. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10646. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10647. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10648.  
  10649.  
  10650.  
  10651.  
  10652. archive_cmds_need_lc_CXX=no
  10653. allow_undefined_flag_CXX=
  10654. always_export_symbols_CXX=no
  10655. archive_expsym_cmds_CXX=
  10656. export_dynamic_flag_spec_CXX=
  10657. hardcode_direct_CXX=no
  10658. hardcode_libdir_flag_spec_CXX=
  10659. hardcode_libdir_flag_spec_ld_CXX=
  10660. hardcode_libdir_separator_CXX=
  10661. hardcode_minus_L_CXX=no
  10662. hardcode_automatic_CXX=no
  10663. module_cmds_CXX=
  10664. module_expsym_cmds_CXX=
  10665. link_all_deplibs_CXX=unknown
  10666. old_archive_cmds_CXX=$old_archive_cmds
  10667. no_undefined_flag_CXX=
  10668. whole_archive_flag_spec_CXX=
  10669. enable_shared_with_static_runtimes_CXX=no
  10670.  
  10671. # Dependencies to place before and after the object being linked:
  10672. predep_objects_CXX=
  10673. postdep_objects_CXX=
  10674. predeps_CXX=
  10675. postdeps_CXX=
  10676. compiler_lib_search_path_CXX=
  10677.  
  10678. # Source file extension for C++ test sources.
  10679. ac_ext=cc
  10680.  
  10681. # Object file extension for compiled C++ test sources.
  10682. objext=o
  10683. objext_CXX=$objext
  10684.  
  10685. # Code to be used in simple compile tests
  10686. lt_simple_compile_test_code="int some_variable = 0;\n"
  10687.  
  10688. # Code to be used in simple link tests
  10689. lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
  10690.  
  10691. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10692.  
  10693. # If no C compiler was specified, use CC.
  10694. LTCC=${LTCC-"$CC"}
  10695.  
  10696. # Allow CC to be a program name with arguments.
  10697. compiler=$CC
  10698.  
  10699.  
  10700. # Allow CC to be a program name with arguments.
  10701. lt_save_CC=$CC
  10702. lt_save_LD=$LD
  10703. lt_save_GCC=$GCC
  10704. GCC=$GXX
  10705. lt_save_with_gnu_ld=$with_gnu_ld
  10706. lt_save_path_LD=$lt_cv_path_LD
  10707. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10708.   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10709. else
  10710.   unset lt_cv_prog_gnu_ld
  10711. fi
  10712. if test -n "${lt_cv_path_LDCXX+set}"; then
  10713.   lt_cv_path_LD=$lt_cv_path_LDCXX
  10714. else
  10715.   unset lt_cv_path_LD
  10716. fi
  10717. test -z "${LDCXX+set}" || LD=$LDCXX
  10718. CC=${CXX-"c++"}
  10719. compiler=$CC
  10720. compiler_CXX=$CC
  10721. cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  10722.  
  10723. # We don't want -fno-exception wen compiling C++ code, so set the
  10724. # no_builtin_flag separately
  10725. if test "$GXX" = yes; then
  10726.   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10727. else
  10728.   lt_prog_compiler_no_builtin_flag_CXX=
  10729. fi
  10730.  
  10731. if test "$GXX" = yes; then
  10732.   # Set up default GNU C++ configuration
  10733.  
  10734.  
  10735. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  10736. if test "${with_gnu_ld+set}" = set; then
  10737.   withval="$with_gnu_ld"
  10738.   test "$withval" = no || with_gnu_ld=yes
  10739. else
  10740.   with_gnu_ld=no
  10741. fi;
  10742. ac_prog=ld
  10743. if test "$GCC" = yes; then
  10744.   # Check if gcc -print-prog-name=ld gives a path.
  10745.   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  10746. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  10747.   case $host in
  10748.   *-*-mingw*)
  10749.     # gcc leaves a trailing carriage return which upsets mingw
  10750.     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10751.   *)
  10752.     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10753.   esac
  10754.   case $ac_prog in
  10755.     # Accept absolute paths.
  10756.     [\\/]* | ?:[\\/]*)
  10757.       re_direlt='/[^/][^/]*/\.\./'
  10758.       # Canonicalize the pathname of ld
  10759.       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  10760.       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  10761.     ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  10762.       done
  10763.       test -z "$LD" && LD="$ac_prog"
  10764.       ;;
  10765.   "")
  10766.     # If it fails, then pretend we aren't using GCC.
  10767.     ac_prog=ld
  10768.     ;;
  10769.   *)
  10770.     # If it is relative, then search for the first ld in PATH.
  10771.     with_gnu_ld=unknown
  10772.     ;;
  10773.   esac
  10774. elif test "$with_gnu_ld" = yes; then
  10775.   echo "$as_me:$LINENO: checking for GNU ld" >&5
  10776. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  10777. else
  10778.   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  10779. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  10780. fi
  10781. if test "${lt_cv_path_LD+set}" = set; then
  10782.   echo $ECHO_N "(cached) $ECHO_C" >&6
  10783. else
  10784.   if test -z "$LD"; then
  10785.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10786.   for ac_dir in $PATH; do
  10787.     IFS="$lt_save_ifs"
  10788.     test -z "$ac_dir" && ac_dir=.
  10789.     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10790.       lt_cv_path_LD="$ac_dir/$ac_prog"
  10791.       # Check to see if the program is GNU ld.  I'd rather use --version,
  10792.       # but apparently some GNU ld's only accept -v.
  10793.       # Break only if it was the GNU/non-GNU ld that we prefer.
  10794.       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10795.       *GNU* | *'with BFD'*)
  10796.     test "$with_gnu_ld" != no && break
  10797.     ;;
  10798.       *)
  10799.     test "$with_gnu_ld" != yes && break
  10800.     ;;
  10801.       esac
  10802.     fi
  10803.   done
  10804.   IFS="$lt_save_ifs"
  10805. else
  10806.   lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10807. fi
  10808. fi
  10809.  
  10810. LD="$lt_cv_path_LD"
  10811. if test -n "$LD"; then
  10812.   echo "$as_me:$LINENO: result: $LD" >&5
  10813. echo "${ECHO_T}$LD" >&6
  10814. else
  10815.   echo "$as_me:$LINENO: result: no" >&5
  10816. echo "${ECHO_T}no" >&6
  10817. fi
  10818. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  10819. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  10820.    { (exit 1); exit 1; }; }
  10821. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  10822. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  10823. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  10824.   echo $ECHO_N "(cached) $ECHO_C" >&6
  10825. else
  10826.   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  10827. case `$LD -v 2>&1 </dev/null` in
  10828. *GNU* | *'with BFD'*)
  10829.   lt_cv_prog_gnu_ld=yes
  10830.   ;;
  10831. *)
  10832.   lt_cv_prog_gnu_ld=no
  10833.   ;;
  10834. esac
  10835. fi
  10836. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  10837. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  10838. with_gnu_ld=$lt_cv_prog_gnu_ld
  10839.  
  10840.  
  10841.  
  10842.   # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10843.   # archiving commands below assume that GNU ld is being used.
  10844.   if test "$with_gnu_ld" = yes; then
  10845.     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10846.     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10847.  
  10848.     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10849.     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10850.  
  10851.     # If archive_cmds runs LD, not CC, wlarc should be empty
  10852.     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10853.     #     investigate it a little bit more. (MM)
  10854.     wlarc='${wl}'
  10855.  
  10856.     # ancient GNU ld didn't support --whole-archive et. al.
  10857.     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  10858.     grep 'no-whole-archive' > /dev/null; then
  10859.       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10860.     else
  10861.       whole_archive_flag_spec_CXX=
  10862.     fi
  10863.   else
  10864.     with_gnu_ld=no
  10865.     wlarc=
  10866.  
  10867.     # A generic and very simple default shared library creation
  10868.     # command for GNU C++ for the case where it uses the native
  10869.     # linker, instead of GNU ld.  If possible, this setting should
  10870.     # overridden to take advantage of the native linker features on
  10871.     # the platform it is being used on.
  10872.     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10873.   fi
  10874.  
  10875.   # Commands to make compiler produce verbose output that lists
  10876.   # what "hidden" libraries, object files and flags are used when
  10877.   # linking a shared library.
  10878.   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10879.  
  10880. else
  10881.   GXX=no
  10882.   with_gnu_ld=no
  10883.   wlarc=
  10884. fi
  10885.  
  10886. # PORTME: fill in a description of your system's C++ link characteristics
  10887. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10888. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  10889. ld_shlibs_CXX=yes
  10890. case $host_os in
  10891.   aix3*)
  10892.     # FIXME: insert proper C++ library support
  10893.     ld_shlibs_CXX=no
  10894.     ;;
  10895.   aix4* | aix5*)
  10896.     if test "$host_cpu" = ia64; then
  10897.       # On IA64, the linker does run time linking by default, so we don't
  10898.       # have to do anything special.
  10899.       aix_use_runtimelinking=no
  10900.       exp_sym_flag='-Bexport'
  10901.       no_entry_flag=""
  10902.     else
  10903.       aix_use_runtimelinking=no
  10904.  
  10905.       # Test if we are trying to use run time linking or normal
  10906.       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10907.       # need to do runtime linking.
  10908.       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  10909.     for ld_flag in $LDFLAGS; do
  10910.       case $ld_flag in
  10911.       *-brtl*)
  10912.         aix_use_runtimelinking=yes
  10913.         break
  10914.         ;;
  10915.       esac
  10916.     done
  10917.       esac
  10918.  
  10919.       exp_sym_flag='-bexport'
  10920.       no_entry_flag='-bnoentry'
  10921.     fi
  10922.  
  10923.     # When large executables or shared objects are built, AIX ld can
  10924.     # have problems creating the table of contents.  If linking a library
  10925.     # or program results in "error TOC overflow" add -mminimal-toc to
  10926.     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  10927.     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10928.  
  10929.     archive_cmds_CXX=''
  10930.     hardcode_direct_CXX=yes
  10931.     hardcode_libdir_separator_CXX=':'
  10932.     link_all_deplibs_CXX=yes
  10933.  
  10934.     if test "$GXX" = yes; then
  10935.       case $host_os in aix4.012|aix4.012.*)
  10936.       # We only want to do this on AIX 4.2 and lower, the check
  10937.       # below for broken collect2 doesn't work under 4.3+
  10938.     collect2name=`${CC} -print-prog-name=collect2`
  10939.     if test -f "$collect2name" && \
  10940.        strings "$collect2name" | grep resolve_lib_name >/dev/null
  10941.     then
  10942.       # We have reworked collect2
  10943.       hardcode_direct_CXX=yes
  10944.     else
  10945.       # We have old collect2
  10946.       hardcode_direct_CXX=unsupported
  10947.       # It fails to find uninstalled libraries when the uninstalled
  10948.       # path is not listed in the libpath.  Setting hardcode_minus_L
  10949.       # to unsupported forces relinking
  10950.       hardcode_minus_L_CXX=yes
  10951.       hardcode_libdir_flag_spec_CXX='-L$libdir'
  10952.       hardcode_libdir_separator_CXX=
  10953.     fi
  10954.       esac
  10955.       shared_flag='-shared'
  10956.     else
  10957.       # not using gcc
  10958.       if test "$host_cpu" = ia64; then
  10959.     # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10960.     # chokes on -Wl,-G. The following line is correct:
  10961.     shared_flag='-G'
  10962.       else
  10963.     if test "$aix_use_runtimelinking" = yes; then
  10964.       shared_flag='${wl}-G'
  10965.     else
  10966.       shared_flag='${wl}-bM:SRE'
  10967.     fi
  10968.       fi
  10969.     fi
  10970.  
  10971.     # It seems that -bexpall does not export symbols beginning with
  10972.     # underscore (_), so it is better to generate a list of symbols to export.
  10973.     always_export_symbols_CXX=yes
  10974.     if test "$aix_use_runtimelinking" = yes; then
  10975.       # Warning - without using the other runtime loading flags (-brtl),
  10976.       # -berok will link without error, but may produce a broken library.
  10977.       allow_undefined_flag_CXX='-berok'
  10978.       # Determine the default libpath from the value encoded in an empty executable.
  10979.       cat >conftest.$ac_ext <<_ACEOF
  10980. /* confdefs.h.  */
  10981. _ACEOF
  10982. cat confdefs.h >>conftest.$ac_ext
  10983. cat >>conftest.$ac_ext <<_ACEOF
  10984. /* end confdefs.h.  */
  10985.  
  10986. int
  10987. main ()
  10988. {
  10989.  
  10990.   ;
  10991.   return 0;
  10992. }
  10993. _ACEOF
  10994. rm -f conftest.$ac_objext conftest$ac_exeext
  10995. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10996.   (eval $ac_link) 2>conftest.er1
  10997.   ac_status=$?
  10998.   grep -v '^ *+' conftest.er1 >conftest.err
  10999.   rm -f conftest.er1
  11000.   cat conftest.err >&5
  11001.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11002.   (exit $ac_status); } &&
  11003.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  11004.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11005.   (eval $ac_try) 2>&5
  11006.   ac_status=$?
  11007.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11008.   (exit $ac_status); }; } &&
  11009.      { ac_try='test -s conftest$ac_exeext'
  11010.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11011.   (eval $ac_try) 2>&5
  11012.   ac_status=$?
  11013.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11014.   (exit $ac_status); }; }; then
  11015.  
  11016. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
  11017. }'`
  11018. # Check for a 64-bit object if we didn't find anything.
  11019. if 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; }
  11020. }'`; fi
  11021. else
  11022.   echo "$as_me: failed program was:" >&5
  11023. sed 's/^/| /' conftest.$ac_ext >&5
  11024.  
  11025. fi
  11026. rm -f conftest.err conftest.$ac_objext \
  11027.       conftest$ac_exeext conftest.$ac_ext
  11028. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11029.  
  11030.       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11031.  
  11032.       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11033.      else
  11034.       if test "$host_cpu" = ia64; then
  11035.     hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11036.     allow_undefined_flag_CXX="-z nodefs"
  11037.     archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  11038.       else
  11039.     # Determine the default libpath from the value encoded in an empty executable.
  11040.     cat >conftest.$ac_ext <<_ACEOF
  11041. /* confdefs.h.  */
  11042. _ACEOF
  11043. cat confdefs.h >>conftest.$ac_ext
  11044. cat >>conftest.$ac_ext <<_ACEOF
  11045. /* end confdefs.h.  */
  11046.  
  11047. int
  11048. main ()
  11049. {
  11050.  
  11051.   ;
  11052.   return 0;
  11053. }
  11054. _ACEOF
  11055. rm -f conftest.$ac_objext conftest$ac_exeext
  11056. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11057.   (eval $ac_link) 2>conftest.er1
  11058.   ac_status=$?
  11059.   grep -v '^ *+' conftest.er1 >conftest.err
  11060.   rm -f conftest.er1
  11061.   cat conftest.err >&5
  11062.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11063.   (exit $ac_status); } &&
  11064.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  11065.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11066.   (eval $ac_try) 2>&5
  11067.   ac_status=$?
  11068.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11069.   (exit $ac_status); }; } &&
  11070.      { ac_try='test -s conftest$ac_exeext'
  11071.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11072.   (eval $ac_try) 2>&5
  11073.   ac_status=$?
  11074.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11075.   (exit $ac_status); }; }; then
  11076.  
  11077. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
  11078. }'`
  11079. # Check for a 64-bit object if we didn't find anything.
  11080. if 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; }
  11081. }'`; fi
  11082. else
  11083.   echo "$as_me: failed program was:" >&5
  11084. sed 's/^/| /' conftest.$ac_ext >&5
  11085.  
  11086. fi
  11087. rm -f conftest.err conftest.$ac_objext \
  11088.       conftest$ac_exeext conftest.$ac_ext
  11089. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11090.  
  11091.     hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11092.     # Warning - without using the other run time loading flags,
  11093.     # -berok will link without error, but may produce a broken library.
  11094.     no_undefined_flag_CXX=' ${wl}-bernotok'
  11095.     allow_undefined_flag_CXX=' ${wl}-berok'
  11096.     # -bexpall does not export symbols beginning with underscore (_)
  11097.     always_export_symbols_CXX=yes
  11098.     # Exported symbols can be pulled into shared objects from archives
  11099.     whole_archive_flag_spec_CXX=' '
  11100.     archive_cmds_need_lc_CXX=yes
  11101.     # This is similar to how AIX traditionally builds it's shared libraries.
  11102.     archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  11103.       fi
  11104.     fi
  11105.     ;;
  11106.   chorus*)
  11107.     case $cc_basename in
  11108.       *)
  11109.     # FIXME: insert proper C++ library support
  11110.     ld_shlibs_CXX=no
  11111.     ;;
  11112.     esac
  11113.     ;;
  11114.  
  11115.   cygwin* | mingw* | pw32*)
  11116.     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11117.     # as there is no search path for DLLs.
  11118.     hardcode_libdir_flag_spec_CXX='-L$libdir'
  11119.     allow_undefined_flag_CXX=unsupported
  11120.     always_export_symbols_CXX=no
  11121.     enable_shared_with_static_runtimes_CXX=yes
  11122.  
  11123.     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  11124.       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  11125.       # If the export-symbols file already is a .def file (1st line
  11126.       # is EXPORTS), use it as is; otherwise, prepend...
  11127.       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11128.     cp $export_symbols $output_objdir/$soname.def;
  11129.       else
  11130.     echo EXPORTS > $output_objdir/$soname.def;
  11131.     cat $export_symbols >> $output_objdir/$soname.def;
  11132.       fi~
  11133.       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  11134.     else
  11135.       ld_shlibs_CXX=no
  11136.     fi
  11137.   ;;
  11138.  
  11139.   darwin* | rhapsody*)
  11140.   if test "$GXX" = yes; then
  11141.     archive_cmds_need_lc_CXX=no
  11142.     case "$host_os" in
  11143.     rhapsody* | darwin1.[012])
  11144.       allow_undefined_flag_CXX='-undefined suppress'
  11145.       ;;
  11146.     *) # Darwin 1.3 on
  11147.       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  11148.           allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
  11149.       else
  11150.         case ${MACOSX_DEPLOYMENT_TARGET} in
  11151.           10.[012])
  11152.             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
  11153.             ;;
  11154.           10.*)
  11155.             allow_undefined_flag_CXX='-undefined dynamic_lookup'
  11156.             ;;
  11157.         esac
  11158.       fi
  11159.       ;;
  11160.     esac
  11161.     lt_int_apple_cc_single_mod=no
  11162.     output_verbose_link_cmd='echo'
  11163.     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  11164.       lt_int_apple_cc_single_mod=yes
  11165.     fi
  11166.     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  11167.       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  11168.     else
  11169.       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  11170.     fi
  11171.     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  11172.  
  11173.     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  11174.     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  11175.       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  11176.     else
  11177.       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  11178.     fi
  11179.     module_expsym_cmds_CXX='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}'
  11180.     hardcode_direct_CXX=no
  11181.     hardcode_automatic_CXX=yes
  11182.     hardcode_shlibpath_var_CXX=unsupported
  11183.     whole_archive_flag_spec_CXX='-all_load $convenience'
  11184.     link_all_deplibs_CXX=yes
  11185.   else
  11186.     ld_shlibs_CXX=no
  11187.   fi
  11188.     ;;
  11189.  
  11190.   dgux*)
  11191.     case $cc_basename in
  11192.       ec++)
  11193.     # FIXME: insert proper C++ library support
  11194.     ld_shlibs_CXX=no
  11195.     ;;
  11196.       ghcx)
  11197.     # Green Hills C++ Compiler
  11198.     # FIXME: insert proper C++ library support
  11199.     ld_shlibs_CXX=no
  11200.     ;;
  11201.       *)
  11202.     # FIXME: insert proper C++ library support
  11203.     ld_shlibs_CXX=no
  11204.     ;;
  11205.     esac
  11206.     ;;
  11207.   freebsd12*)
  11208.     # C++ shared libraries reported to be fairly broken before switch to ELF
  11209.     ld_shlibs_CXX=no
  11210.     ;;
  11211.   freebsd-elf*)
  11212.     archive_cmds_need_lc_CXX=no
  11213.     ;;
  11214.   freebsd* | kfreebsd*-gnu)
  11215.     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11216.     # conventions
  11217.     ld_shlibs_CXX=yes
  11218.     ;;
  11219.   gnu*)
  11220.     ;;
  11221.   hpux9*)
  11222.     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11223.     hardcode_libdir_separator_CXX=:
  11224.     export_dynamic_flag_spec_CXX='${wl}-E'
  11225.     hardcode_direct_CXX=yes
  11226.     hardcode_minus_L_CXX=yes # Not in the search PATH,
  11227.                 # but as the default
  11228.                 # location of the library.
  11229.  
  11230.     case $cc_basename in
  11231.     CC)
  11232.       # FIXME: insert proper C++ library support
  11233.       ld_shlibs_CXX=no
  11234.       ;;
  11235.     aCC)
  11236.       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11237.       # Commands to make compiler produce verbose output that lists
  11238.       # what "hidden" libraries, object files and flags are used when
  11239.       # linking a shared library.
  11240.       #
  11241.       # There doesn't appear to be a way to prevent this compiler from
  11242.       # explicitly linking system object files so we need to strip them
  11243.       # from the output so that they don't get included in the library
  11244.       # dependencies.
  11245.       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  11246.       ;;
  11247.     *)
  11248.       if test "$GXX" = yes; then
  11249.         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11250.       else
  11251.         # FIXME: insert proper C++ library support
  11252.         ld_shlibs_CXX=no
  11253.       fi
  11254.       ;;
  11255.     esac
  11256.     ;;
  11257.   hpux10*|hpux11*)
  11258.     if test $with_gnu_ld = no; then
  11259.       case "$host_cpu" in
  11260.       hppa*64*)
  11261.     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11262.     hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  11263.     hardcode_libdir_separator_CXX=:
  11264.         ;;
  11265.       ia64*)
  11266.     hardcode_libdir_flag_spec_CXX='-L$libdir'
  11267.         ;;
  11268.       *)
  11269.     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11270.     hardcode_libdir_separator_CXX=:
  11271.     export_dynamic_flag_spec_CXX='${wl}-E'
  11272.         ;;
  11273.       esac
  11274.     fi
  11275.     case "$host_cpu" in
  11276.     hppa*64*)
  11277.       hardcode_direct_CXX=no
  11278.       hardcode_shlibpath_var_CXX=no
  11279.       ;;
  11280.     ia64*)
  11281.       hardcode_direct_CXX=no
  11282.       hardcode_shlibpath_var_CXX=no
  11283.       hardcode_minus_L_CXX=yes # Not in the search PATH,
  11284.                           # but as the default
  11285.                           # location of the library.
  11286.       ;;
  11287.     *)
  11288.       hardcode_direct_CXX=yes
  11289.       hardcode_minus_L_CXX=yes # Not in the search PATH,
  11290.                           # but as the default
  11291.                           # location of the library.
  11292.       ;;
  11293.     esac
  11294.  
  11295.     case $cc_basename in
  11296.       CC)
  11297.     # FIXME: insert proper C++ library support
  11298.     ld_shlibs_CXX=no
  11299.     ;;
  11300.       aCC)
  11301.     case "$host_cpu" in
  11302.     hppa*64*|ia64*)
  11303.       archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  11304.       ;;
  11305.     *)
  11306.       archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11307.       ;;
  11308.     esac
  11309.     # Commands to make compiler produce verbose output that lists
  11310.     # what "hidden" libraries, object files and flags are used when
  11311.     # linking a shared library.
  11312.     #
  11313.     # There doesn't appear to be a way to prevent this compiler from
  11314.     # explicitly linking system object files so we need to strip them
  11315.     # from the output so that they don't get included in the library
  11316.     # dependencies.
  11317.     output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  11318.     ;;
  11319.       *)
  11320.     if test "$GXX" = yes; then
  11321.       if test $with_gnu_ld = no; then
  11322.         case "$host_cpu" in
  11323.         ia64*|hppa*64*)
  11324.           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  11325.           ;;
  11326.         *)
  11327.           archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11328.           ;;
  11329.         esac
  11330.       fi
  11331.     else
  11332.       # FIXME: insert proper C++ library support
  11333.       ld_shlibs_CXX=no
  11334.     fi
  11335.     ;;
  11336.     esac
  11337.     ;;
  11338.   irix5* | irix6*)
  11339.     case $cc_basename in
  11340.       CC)
  11341.     # SGI C++
  11342.     archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  11343.  
  11344.     # Archives containing C++ object files must be created using
  11345.     # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
  11346.     # necessary to make sure instantiated templates are included
  11347.     # in the archive.
  11348.     old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11349.     ;;
  11350.       *)
  11351.     if test "$GXX" = yes; then
  11352.       if test "$with_gnu_ld" = no; then
  11353.         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  11354.       else
  11355.         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  11356.       fi
  11357.     fi
  11358.     link_all_deplibs_CXX=yes
  11359.     ;;
  11360.     esac
  11361.     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11362.     hardcode_libdir_separator_CXX=:
  11363.     ;;
  11364.   linux*)
  11365.     case $cc_basename in
  11366.       KCC)
  11367.     # Kuck and Associates, Inc. (KAI) C++ Compiler
  11368.  
  11369.     # KCC will only create a shared library if the output file
  11370.     # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11371.     # to its proper name (with version) after linking.
  11372.     archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  11373.     archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  11374.     # Commands to make compiler produce verbose output that lists
  11375.     # what "hidden" libraries, object files and flags are used when
  11376.     # linking a shared library.
  11377.     #
  11378.     # There doesn't appear to be a way to prevent this compiler from
  11379.     # explicitly linking system object files so we need to strip them
  11380.     # from the output so that they don't get included in the library
  11381.     # dependencies.
  11382.     output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  11383.  
  11384.     hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  11385.     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11386.  
  11387.     # Archives containing C++ object files must be created using
  11388.     # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11389.     old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11390.     ;;
  11391.       icpc)
  11392.     # Intel C++
  11393.     with_gnu_ld=yes
  11394.     archive_cmds_need_lc_CXX=no
  11395.     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11396.     archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11397.     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11398.     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11399.     whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11400.     ;;
  11401.       cxx)
  11402.     # Compaq C++
  11403.     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11404.     archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  11405.  
  11406.     runpath_var=LD_RUN_PATH
  11407.     hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11408.     hardcode_libdir_separator_CXX=:
  11409.  
  11410.     # Commands to make compiler produce verbose output that lists
  11411.     # what "hidden" libraries, object files and flags are used when
  11412.     # linking a shared library.
  11413.     #
  11414.     # There doesn't appear to be a way to prevent this compiler from
  11415.     # explicitly linking system object files so we need to strip them
  11416.     # from the output so that they don't get included in the library
  11417.     # dependencies.
  11418.     output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  11419.     ;;
  11420.     esac
  11421.     ;;
  11422.   lynxos*)
  11423.     # FIXME: insert proper C++ library support
  11424.     ld_shlibs_CXX=no
  11425.     ;;
  11426.   m88k*)
  11427.     # FIXME: insert proper C++ library support
  11428.     ld_shlibs_CXX=no
  11429.     ;;
  11430.   mvs*)
  11431.     case $cc_basename in
  11432.       cxx)
  11433.     # FIXME: insert proper C++ library support
  11434.     ld_shlibs_CXX=no
  11435.     ;;
  11436.       *)
  11437.     # FIXME: insert proper C++ library support
  11438.     ld_shlibs_CXX=no
  11439.     ;;
  11440.     esac
  11441.     ;;
  11442.   netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  11443.     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11444.       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11445.       wlarc=
  11446.       hardcode_libdir_flag_spec_CXX='-R$libdir'
  11447.       hardcode_direct_CXX=yes
  11448.       hardcode_shlibpath_var_CXX=no
  11449.     fi
  11450.     # Workaround some broken pre-1.5 toolchains
  11451.     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11452.     ;;
  11453.   osf3*)
  11454.     case $cc_basename in
  11455.       KCC)
  11456.     # Kuck and Associates, Inc. (KAI) C++ Compiler
  11457.  
  11458.     # KCC will only create a shared library if the output file
  11459.     # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11460.     # to its proper name (with version) after linking.
  11461.     archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  11462.  
  11463.     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11464.     hardcode_libdir_separator_CXX=:
  11465.  
  11466.     # Archives containing C++ object files must be created using
  11467.     # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11468.     old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11469.  
  11470.     ;;
  11471.       RCC)
  11472.     # Rational C++ 2.4.1
  11473.     # FIXME: insert proper C++ library support
  11474.     ld_shlibs_CXX=no
  11475.     ;;
  11476.       cxx)
  11477.     allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11478.     archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  11479.  
  11480.     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11481.     hardcode_libdir_separator_CXX=:
  11482.  
  11483.     # Commands to make compiler produce verbose output that lists
  11484.     # what "hidden" libraries, object files and flags are used when
  11485.     # linking a shared library.
  11486.     #
  11487.     # There doesn't appear to be a way to prevent this compiler from
  11488.     # explicitly linking system object files so we need to strip them
  11489.     # from the output so that they don't get included in the library
  11490.     # dependencies.
  11491.     output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  11492.     ;;
  11493.       *)
  11494.     if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11495.       allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11496.       archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  11497.  
  11498.       hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11499.       hardcode_libdir_separator_CXX=:
  11500.  
  11501.       # Commands to make compiler produce verbose output that lists
  11502.       # what "hidden" libraries, object files and flags are used when
  11503.       # linking a shared library.
  11504.       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  11505.  
  11506.     else
  11507.       # FIXME: insert proper C++ library support
  11508.       ld_shlibs_CXX=no
  11509.     fi
  11510.     ;;
  11511.     esac
  11512.     ;;
  11513.   osf4* | osf5*)
  11514.     case $cc_basename in
  11515.       KCC)
  11516.     # Kuck and Associates, Inc. (KAI) C++ Compiler
  11517.  
  11518.     # KCC will only create a shared library if the output file
  11519.     # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11520.     # to its proper name (with version) after linking.
  11521.     archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  11522.  
  11523.     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11524.     hardcode_libdir_separator_CXX=:
  11525.  
  11526.     # Archives containing C++ object files must be created using
  11527.     # the KAI C++ compiler.
  11528.     old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  11529.     ;;
  11530.       RCC)
  11531.     # Rational C++ 2.4.1
  11532.     # FIXME: insert proper C++ library support
  11533.     ld_shlibs_CXX=no
  11534.     ;;
  11535.       cxx)
  11536.     allow_undefined_flag_CXX=' -expect_unresolved \*'
  11537.     archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  11538.     archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11539.       echo "-hidden">> $lib.exp~
  11540.       $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version    $verstring` -update_registry $objdir/so_locations -o $lib~
  11541.       $rm $lib.exp'
  11542.  
  11543.     hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11544.     hardcode_libdir_separator_CXX=:
  11545.  
  11546.     # Commands to make compiler produce verbose output that lists
  11547.     # what "hidden" libraries, object files and flags are used when
  11548.     # linking a shared library.
  11549.     #
  11550.     # There doesn't appear to be a way to prevent this compiler from
  11551.     # explicitly linking system object files so we need to strip them
  11552.     # from the output so that they don't get included in the library
  11553.     # dependencies.
  11554.     output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  11555.     ;;
  11556.       *)
  11557.     if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11558.       allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11559.      archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  11560.  
  11561.       hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11562.       hardcode_libdir_separator_CXX=:
  11563.  
  11564.       # Commands to make compiler produce verbose output that lists
  11565.       # what "hidden" libraries, object files and flags are used when
  11566.       # linking a shared library.
  11567.       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  11568.  
  11569.     else
  11570.       # FIXME: insert proper C++ library support
  11571.       ld_shlibs_CXX=no
  11572.     fi
  11573.     ;;
  11574.     esac
  11575.     ;;
  11576.   psos*)
  11577.     # FIXME: insert proper C++ library support
  11578.     ld_shlibs_CXX=no
  11579.     ;;
  11580.   sco*)
  11581.     archive_cmds_need_lc_CXX=no
  11582.     case $cc_basename in
  11583.       CC)
  11584.     # FIXME: insert proper C++ library support
  11585.     ld_shlibs_CXX=no
  11586.     ;;
  11587.       *)
  11588.     # FIXME: insert proper C++ library support
  11589.     ld_shlibs_CXX=no
  11590.     ;;
  11591.     esac
  11592.     ;;
  11593.   sunos4*)
  11594.     case $cc_basename in
  11595.       CC)
  11596.     # Sun C++ 4.x
  11597.     # FIXME: insert proper C++ library support
  11598.     ld_shlibs_CXX=no
  11599.     ;;
  11600.       lcc)
  11601.     # Lucid
  11602.     # FIXME: insert proper C++ library support
  11603.     ld_shlibs_CXX=no
  11604.     ;;
  11605.       *)
  11606.     # FIXME: insert proper C++ library support
  11607.     ld_shlibs_CXX=no
  11608.     ;;
  11609.     esac
  11610.     ;;
  11611.   solaris*)
  11612.     case $cc_basename in
  11613.       CC)
  11614.     # Sun C++ 4.2, 5.x and Centerline C++
  11615.     no_undefined_flag_CXX=' -zdefs'
  11616.     archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11617.     archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  11618.     $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  11619.  
  11620.     hardcode_libdir_flag_spec_CXX='-R$libdir'
  11621.     hardcode_shlibpath_var_CXX=no
  11622.     case $host_os in
  11623.       solaris2.0-5 | solaris2.0-5.*) ;;
  11624.       *)
  11625.         # The C++ compiler is used as linker so we must use $wl
  11626.         # flag to pass the commands to the underlying system
  11627.         # linker.
  11628.         # Supported since Solaris 2.6 (maybe 2.5.1?)
  11629.         whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11630.         ;;
  11631.     esac
  11632.     link_all_deplibs_CXX=yes
  11633.  
  11634.     # Commands to make compiler produce verbose output that lists
  11635.     # what "hidden" libraries, object files and flags are used when
  11636.     # linking a shared library.
  11637.     #
  11638.     # There doesn't appear to be a way to prevent this compiler from
  11639.     # explicitly linking system object files so we need to strip them
  11640.     # from the output so that they don't get included in the library
  11641.     # dependencies.
  11642.     output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  11643.  
  11644.     # Archives containing C++ object files must be created using
  11645.     # "CC -xar", where "CC" is the Sun C++ compiler.  This is
  11646.     # necessary to make sure instantiated templates are included
  11647.     # in the archive.
  11648.     old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11649.     ;;
  11650.       gcx)
  11651.     # Green Hills C++ Compiler
  11652.     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11653.  
  11654.     # The C++ compiler must be used to create the archive.
  11655.     old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11656.     ;;
  11657.       *)
  11658.     # GNU C++ compiler with Solaris linker
  11659.     if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11660.       no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11661.       if $CC --version | grep -v '^2\.7' > /dev/null; then
  11662.         archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11663.         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  11664.         $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  11665.  
  11666.         # Commands to make compiler produce verbose output that lists
  11667.         # what "hidden" libraries, object files and flags are used when
  11668.         # linking a shared library.
  11669.         output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  11670.       else
  11671.         # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11672.         # platform.
  11673.         archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11674.         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  11675.         $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  11676.  
  11677.         # Commands to make compiler produce verbose output that lists
  11678.         # what "hidden" libraries, object files and flags are used when
  11679.         # linking a shared library.
  11680.         output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  11681.       fi
  11682.  
  11683.       hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11684.     fi
  11685.     ;;
  11686.     esac
  11687.     ;;
  11688.   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  11689.     archive_cmds_need_lc_CXX=no
  11690.     ;;
  11691.   tandem*)
  11692.     case $cc_basename in
  11693.       NCC)
  11694.     # NonStop-UX NCC 3.20
  11695.     # FIXME: insert proper C++ library support
  11696.     ld_shlibs_CXX=no
  11697.     ;;
  11698.       *)
  11699.     # FIXME: insert proper C++ library support
  11700.     ld_shlibs_CXX=no
  11701.     ;;
  11702.     esac
  11703.     ;;
  11704.   vxworks*)
  11705.     # FIXME: insert proper C++ library support
  11706.     ld_shlibs_CXX=no
  11707.     ;;
  11708.   *)
  11709.     # FIXME: insert proper C++ library support
  11710.     ld_shlibs_CXX=no
  11711.     ;;
  11712. esac
  11713. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11714. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  11715. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11716.  
  11717. GCC_CXX="$GXX"
  11718. LD_CXX="$LD"
  11719.  
  11720.  
  11721. cat > conftest.$ac_ext <<EOF
  11722. class Foo
  11723. {
  11724. public:
  11725.   Foo (void) { a = 0; }
  11726. private:
  11727.   int a;
  11728. };
  11729. EOF
  11730.  
  11731. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11732.   (eval $ac_compile) 2>&5
  11733.   ac_status=$?
  11734.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11735.   (exit $ac_status); }; then
  11736.   # Parse the compiler output and extract the necessary
  11737.   # objects, libraries and library flags.
  11738.  
  11739.   # Sentinel used to keep track of whether or not we are before
  11740.   # the conftest object file.
  11741.   pre_test_object_deps_done=no
  11742.  
  11743.   # The `*' in the case matches for architectures that use `case' in
  11744.   # $output_verbose_cmd can trigger glob expansion during the loop
  11745.   # eval without this substitution.
  11746.   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  11747.  
  11748.   for p in `eval $output_verbose_link_cmd`; do
  11749.     case $p in
  11750.  
  11751.     -L* | -R* | -l*)
  11752.        # Some compilers place space between "-{L,R}" and the path.
  11753.        # Remove the space.
  11754.        if test $p = "-L" \
  11755.       || test $p = "-R"; then
  11756.      prev=$p
  11757.      continue
  11758.        else
  11759.      prev=
  11760.        fi
  11761.  
  11762.        if test "$pre_test_object_deps_done" = no; then
  11763.      case $p in
  11764.      -L* | -R*)
  11765.        # Internal compiler library paths should come after those
  11766.        # provided the user.  The postdeps already come after the
  11767.        # user supplied libs so there is no need to process them.
  11768.        if test -z "$compiler_lib_search_path_CXX"; then
  11769.          compiler_lib_search_path_CXX="${prev}${p}"
  11770.        else
  11771.          compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11772.        fi
  11773.        ;;
  11774.      # The "-l" case would never come before the object being
  11775.      # linked, so don't bother handling this case.
  11776.      esac
  11777.        else
  11778.      if test -z "$postdeps_CXX"; then
  11779.        postdeps_CXX="${prev}${p}"
  11780.      else
  11781.        postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11782.      fi
  11783.        fi
  11784.        ;;
  11785.  
  11786.     *.$objext)
  11787.        # This assumes that the test object file only shows up
  11788.        # once in the compiler output.
  11789.        if test "$p" = "conftest.$objext"; then
  11790.      pre_test_object_deps_done=yes
  11791.      continue
  11792.        fi
  11793.  
  11794.        if test "$pre_test_object_deps_done" = no; then
  11795.      if test -z "$predep_objects_CXX"; then
  11796.        predep_objects_CXX="$p"
  11797.      else
  11798.        predep_objects_CXX="$predep_objects_CXX $p"
  11799.      fi
  11800.        else
  11801.      if test -z "$postdep_objects_CXX"; then
  11802.        postdep_objects_CXX="$p"
  11803.      else
  11804.        postdep_objects_CXX="$postdep_objects_CXX $p"
  11805.      fi
  11806.        fi
  11807.        ;;
  11808.  
  11809.     *) ;; # Ignore the rest.
  11810.  
  11811.     esac
  11812.   done
  11813.  
  11814.   # Clean up.
  11815.   rm -f a.out a.exe
  11816. else
  11817.   echo "libtool.m4: error: problem compiling CXX test program"
  11818. fi
  11819.  
  11820. $rm -f confest.$objext
  11821.  
  11822. case " $postdeps_CXX " in
  11823. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11824. esac
  11825.  
  11826. lt_prog_compiler_wl_CXX=
  11827. lt_prog_compiler_pic_CXX=
  11828. lt_prog_compiler_static_CXX=
  11829.  
  11830. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11831. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  11832.  
  11833.   # C++ specific cases for pic, static, wl, etc.
  11834.   if test "$GXX" = yes; then
  11835.     lt_prog_compiler_wl_CXX='-Wl,'
  11836.     lt_prog_compiler_static_CXX='-static'
  11837.  
  11838.     case $host_os in
  11839.     aix*)
  11840.       # All AIX code is PIC.
  11841.       if test "$host_cpu" = ia64; then
  11842.     # AIX 5 now supports IA64 processor
  11843.     lt_prog_compiler_static_CXX='-Bstatic'
  11844.       fi
  11845.       ;;
  11846.     amigaos*)
  11847.       # FIXME: we need at least 68020 code to build shared libraries, but
  11848.       # adding the `-m68020' flag to GCC prevents building anything better,
  11849.       # like `-m68040'.
  11850.       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11851.       ;;
  11852.     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11853.       # PIC is the default for these OSes.
  11854.       ;;
  11855.     mingw* | os2* | pw32*)
  11856.       # This hack is so that the source file can tell whether it is being
  11857.       # built for inclusion in a dll (and should export symbols for example).
  11858.       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11859.       ;;
  11860.     darwin* | rhapsody*)
  11861.       # PIC is the default on this platform
  11862.       # Common symbols not allowed in MH_DYLIB files
  11863.       lt_prog_compiler_pic_CXX='-fno-common'
  11864.       ;;
  11865.     *djgpp*)
  11866.       # DJGPP does not support shared libraries at all
  11867.       lt_prog_compiler_pic_CXX=
  11868.       ;;
  11869.     sysv4*MP*)
  11870.       if test -d /usr/nec; then
  11871.     lt_prog_compiler_pic_CXX=-Kconform_pic
  11872.       fi
  11873.       ;;
  11874.     hpux*)
  11875.       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11876.       # not for PA HP-UX.
  11877.       case "$host_cpu" in
  11878.       hppa*64*|ia64*)
  11879.     ;;
  11880.       *)
  11881.     lt_prog_compiler_pic_CXX='-fPIC'
  11882.     ;;
  11883.       esac
  11884.       ;;
  11885.     *)
  11886.       lt_prog_compiler_pic_CXX='-fPIC'
  11887.       ;;
  11888.     esac
  11889.   else
  11890.     case $host_os in
  11891.       aix4* | aix5*)
  11892.     # All AIX code is PIC.
  11893.     if test "$host_cpu" = ia64; then
  11894.       # AIX 5 now supports IA64 processor
  11895.       lt_prog_compiler_static_CXX='-Bstatic'
  11896.     else
  11897.       lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11898.     fi
  11899.     ;;
  11900.       chorus*)
  11901.     case $cc_basename in
  11902.     cxch68)
  11903.       # Green Hills C++ Compiler
  11904.       # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  11905.       ;;
  11906.     esac
  11907.     ;;
  11908.       dgux*)
  11909.     case $cc_basename in
  11910.       ec++)
  11911.         lt_prog_compiler_pic_CXX='-KPIC'
  11912.         ;;
  11913.       ghcx)
  11914.         # Green Hills C++ Compiler
  11915.         lt_prog_compiler_pic_CXX='-pic'
  11916.         ;;
  11917.       *)
  11918.         ;;
  11919.     esac
  11920.     ;;
  11921.       freebsd* | kfreebsd*-gnu)
  11922.     # FreeBSD uses GNU C++
  11923.     ;;
  11924.       hpux9* | hpux10* | hpux11*)
  11925.     case $cc_basename in
  11926.       CC)
  11927.         lt_prog_compiler_wl_CXX='-Wl,'
  11928.         lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  11929.         if test "$host_cpu" != ia64; then
  11930.           lt_prog_compiler_pic_CXX='+Z'
  11931.         fi
  11932.         ;;
  11933.       aCC)
  11934.         lt_prog_compiler_wl_CXX='-Wl,'
  11935.         lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  11936.         case "$host_cpu" in
  11937.         hppa*64*|ia64*)
  11938.           # +Z the default
  11939.           ;;
  11940.         *)
  11941.           lt_prog_compiler_pic_CXX='+Z'
  11942.           ;;
  11943.         esac
  11944.         ;;
  11945.       *)
  11946.         ;;
  11947.     esac
  11948.     ;;
  11949.       irix5* | irix6* | nonstopux*)
  11950.     case $cc_basename in
  11951.       CC)
  11952.         lt_prog_compiler_wl_CXX='-Wl,'
  11953.         lt_prog_compiler_static_CXX='-non_shared'
  11954.         # CC pic flag -KPIC is the default.
  11955.         ;;
  11956.       *)
  11957.         ;;
  11958.     esac
  11959.     ;;
  11960.       linux*)
  11961.     case $cc_basename in
  11962.       KCC)
  11963.         # KAI C++ Compiler
  11964.         lt_prog_compiler_wl_CXX='--backend -Wl,'
  11965.         lt_prog_compiler_pic_CXX='-fPIC'
  11966.         ;;
  11967.       icpc)
  11968.         # Intel C++
  11969.         lt_prog_compiler_wl_CXX='-Wl,'
  11970.         lt_prog_compiler_pic_CXX='-KPIC'
  11971.         lt_prog_compiler_static_CXX='-static'
  11972.         ;;
  11973.       cxx)
  11974.         # Compaq C++
  11975.         # Make sure the PIC flag is empty.  It appears that all Alpha
  11976.         # Linux and Compaq Tru64 Unix objects are PIC.
  11977.         lt_prog_compiler_pic_CXX=
  11978.         lt_prog_compiler_static_CXX='-non_shared'
  11979.         ;;
  11980.       *)
  11981.         ;;
  11982.     esac
  11983.     ;;
  11984.       lynxos*)
  11985.     ;;
  11986.       m88k*)
  11987.     ;;
  11988.       mvs*)
  11989.     case $cc_basename in
  11990.       cxx)
  11991.         lt_prog_compiler_pic_CXX='-W c,exportall'
  11992.         ;;
  11993.       *)
  11994.         ;;
  11995.     esac
  11996.     ;;
  11997.       netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  11998.     ;;
  11999.       osf3* | osf4* | osf5*)
  12000.     case $cc_basename in
  12001.       KCC)
  12002.         lt_prog_compiler_wl_CXX='--backend -Wl,'
  12003.         ;;
  12004.       RCC)
  12005.         # Rational C++ 2.4.1
  12006.         lt_prog_compiler_pic_CXX='-pic'
  12007.         ;;
  12008.       cxx)
  12009.         # Digital/Compaq C++
  12010.         lt_prog_compiler_wl_CXX='-Wl,'
  12011.         # Make sure the PIC flag is empty.  It appears that all Alpha
  12012.         # Linux and Compaq Tru64 Unix objects are PIC.
  12013.         lt_prog_compiler_pic_CXX=
  12014.         lt_prog_compiler_static_CXX='-non_shared'
  12015.         ;;
  12016.       *)
  12017.         ;;
  12018.     esac
  12019.     ;;
  12020.       psos*)
  12021.     ;;
  12022.       sco*)
  12023.     case $cc_basename in
  12024.       CC)
  12025.         lt_prog_compiler_pic_CXX='-fPIC'
  12026.         ;;
  12027.       *)
  12028.         ;;
  12029.     esac
  12030.     ;;
  12031.       solaris*)
  12032.     case $cc_basename in
  12033.       CC)
  12034.         # Sun C++ 4.2, 5.x and Centerline C++
  12035.         lt_prog_compiler_pic_CXX='-KPIC'
  12036.         lt_prog_compiler_static_CXX='-Bstatic'
  12037.         lt_prog_compiler_wl_CXX='-Qoption ld '
  12038.         ;;
  12039.       gcx)
  12040.         # Green Hills C++ Compiler
  12041.         lt_prog_compiler_pic_CXX='-PIC'
  12042.         ;;
  12043.       *)
  12044.         ;;
  12045.     esac
  12046.     ;;
  12047.       sunos4*)
  12048.     case $cc_basename in
  12049.       CC)
  12050.         # Sun C++ 4.x
  12051.         lt_prog_compiler_pic_CXX='-pic'
  12052.         lt_prog_compiler_static_CXX='-Bstatic'
  12053.         ;;
  12054.       lcc)
  12055.         # Lucid
  12056.         lt_prog_compiler_pic_CXX='-pic'
  12057.         ;;
  12058.       *)
  12059.         ;;
  12060.     esac
  12061.     ;;
  12062.       tandem*)
  12063.     case $cc_basename in
  12064.       NCC)
  12065.         # NonStop-UX NCC 3.20
  12066.         lt_prog_compiler_pic_CXX='-KPIC'
  12067.         ;;
  12068.       *)
  12069.         ;;
  12070.     esac
  12071.     ;;
  12072.       unixware*)
  12073.     ;;
  12074.       vxworks*)
  12075.     ;;
  12076.       *)
  12077.     lt_prog_compiler_can_build_shared_CXX=no
  12078.     ;;
  12079.     esac
  12080.   fi
  12081.  
  12082. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  12083. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
  12084.  
  12085. #
  12086. # Check to make sure the PIC flag actually works.
  12087. #
  12088. if test -n "$lt_prog_compiler_pic_CXX"; then
  12089.  
  12090. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12091. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
  12092. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  12093.   echo $ECHO_N "(cached) $ECHO_C" >&6
  12094. else
  12095.   lt_prog_compiler_pic_works_CXX=no
  12096.   ac_outfile=conftest.$ac_objext
  12097.    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12098.    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12099.    # Insert the option either (1) after the last *FLAGS variable, or
  12100.    # (2) before a word containing "conftest.", or (3) at the end.
  12101.    # Note that $ac_compile itself does not contain backslashes and begins
  12102.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  12103.    # The option is referenced via a variable to avoid confusing sed.
  12104.    lt_compile=`echo "$ac_compile" | $SED \
  12105.    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  12106.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12107.    -e 's:$: $lt_compiler_flag:'`
  12108.    (eval echo "\"\$as_me:12108: $lt_compile\"" >&5)
  12109.    (eval "$lt_compile" 2>conftest.err)
  12110.    ac_status=$?
  12111.    cat conftest.err >&5
  12112.    echo "$as_me:12112: \$? = $ac_status" >&5
  12113.    if (exit $ac_status) && test -s "$ac_outfile"; then
  12114.      # The compiler can only warn and ignore the option if not recognized
  12115.      # So say no if there are warnings
  12116.      if test ! -s conftest.err; then
  12117.        lt_prog_compiler_pic_works_CXX=yes
  12118.      fi
  12119.    fi
  12120.    $rm conftest*
  12121.  
  12122. fi
  12123. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  12124. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
  12125.  
  12126. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  12127.     case $lt_prog_compiler_pic_CXX in
  12128.      "" | " "*) ;;
  12129.      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12130.      esac
  12131. else
  12132.     lt_prog_compiler_pic_CXX=
  12133.      lt_prog_compiler_can_build_shared_CXX=no
  12134. fi
  12135.  
  12136. fi
  12137. case "$host_os" in
  12138.   # For platforms which do not support PIC, -DPIC is meaningless:
  12139.   *djgpp*)
  12140.     lt_prog_compiler_pic_CXX=
  12141.     ;;
  12142.   *)
  12143.     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12144.     ;;
  12145. esac
  12146.  
  12147. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12148. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  12149. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  12150.   echo $ECHO_N "(cached) $ECHO_C" >&6
  12151. else
  12152.   lt_cv_prog_compiler_c_o_CXX=no
  12153.    $rm -r conftest 2>/dev/null
  12154.    mkdir conftest
  12155.    cd conftest
  12156.    mkdir out
  12157.    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12158.  
  12159.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  12160.    # Insert the option either (1) after the last *FLAGS variable, or
  12161.    # (2) before a word containing "conftest.", or (3) at the end.
  12162.    # Note that $ac_compile itself does not contain backslashes and begins
  12163.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  12164.    lt_compile=`echo "$ac_compile" | $SED \
  12165.    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  12166.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12167.    -e 's:$: $lt_compiler_flag:'`
  12168.    (eval echo "\"\$as_me:12168: $lt_compile\"" >&5)
  12169.    (eval "$lt_compile" 2>out/conftest.err)
  12170.    ac_status=$?
  12171.    cat out/conftest.err >&5
  12172.    echo "$as_me:12172: \$? = $ac_status" >&5
  12173.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12174.    then
  12175.      # The compiler can only warn and ignore the option if not recognized
  12176.      # So say no if there are warnings
  12177.      if test ! -s out/conftest.err; then
  12178.        lt_cv_prog_compiler_c_o_CXX=yes
  12179.      fi
  12180.    fi
  12181.    chmod u+w .
  12182.    $rm conftest*
  12183.    # SGI C++ compiler will create directory out/ii_files/ for
  12184.    # template instantiation
  12185.    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  12186.    $rm out/* && rmdir out
  12187.    cd ..
  12188.    rmdir conftest
  12189.    $rm conftest*
  12190.  
  12191. fi
  12192. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12193. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
  12194.  
  12195.  
  12196. hard_links="nottested"
  12197. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12198.   # do not overwrite the value of need_locks provided by the user
  12199.   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12200. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  12201.   hard_links=yes
  12202.   $rm conftest*
  12203.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12204.   touch conftest.a
  12205.   ln conftest.a conftest.b 2>&5 || hard_links=no
  12206.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12207.   echo "$as_me:$LINENO: result: $hard_links" >&5
  12208. echo "${ECHO_T}$hard_links" >&6
  12209.   if test "$hard_links" = no; then
  12210.     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12211. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12212.     need_locks=warn
  12213.   fi
  12214. else
  12215.   need_locks=no
  12216. fi
  12217.  
  12218. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12219. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  12220.  
  12221.   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12222.   case $host_os in
  12223.   aix4* | aix5*)
  12224.     # If we're using GNU nm, then we don't want the "-C" option.
  12225.     # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12226.     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  12227.       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  12228.     else
  12229.       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  12230.     fi
  12231.     ;;
  12232.   pw32*)
  12233.     export_symbols_cmds_CXX="$ltdll_cmds"
  12234.   ;;
  12235.   cygwin* | mingw*)
  12236.     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  12237.   ;;
  12238.   linux*)
  12239.     link_all_deplibs_CXX=no
  12240.   ;;
  12241.   *)
  12242.     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12243.   ;;
  12244.   esac
  12245.  
  12246. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  12247. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  12248. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12249.  
  12250. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12251. if test "$GCC" = yes; then
  12252.   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12253. fi
  12254.  
  12255. #
  12256. # Do we need to explicitly link libc?
  12257. #
  12258. case "x$archive_cmds_need_lc_CXX" in
  12259. x|xyes)
  12260.   # Assume -lc should be added
  12261.   archive_cmds_need_lc_CXX=yes
  12262.  
  12263.   if test "$enable_shared" = yes && test "$GCC" = yes; then
  12264.     case $archive_cmds_CXX in
  12265.     *'~'*)
  12266.       # FIXME: we may have to deal with multi-command sequences.
  12267.       ;;
  12268.     '$CC '*)
  12269.       # Test whether the compiler implicitly links with -lc since on some
  12270.       # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12271.       # to ld, don't add -lc before -lgcc.
  12272.       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  12273. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  12274.       $rm conftest*
  12275.       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12276.  
  12277.       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12278.   (eval $ac_compile) 2>&5
  12279.   ac_status=$?
  12280.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12281.   (exit $ac_status); } 2>conftest.err; then
  12282.         soname=conftest
  12283.         lib=conftest
  12284.         libobjs=conftest.$ac_objext
  12285.         deplibs=
  12286.         wl=$lt_prog_compiler_wl_CXX
  12287.         compiler_flags=-v
  12288.         linker_flags=-v
  12289.         verstring=
  12290.         output_objdir=.
  12291.         libname=conftest
  12292.         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12293.         allow_undefined_flag_CXX=
  12294.         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  12295.   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12296.   ac_status=$?
  12297.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12298.   (exit $ac_status); }
  12299.         then
  12300.       archive_cmds_need_lc_CXX=no
  12301.         else
  12302.       archive_cmds_need_lc_CXX=yes
  12303.         fi
  12304.         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12305.       else
  12306.         cat conftest.err 1>&5
  12307.       fi
  12308.       $rm conftest*
  12309.       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  12310. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
  12311.       ;;
  12312.     esac
  12313.   fi
  12314.   ;;
  12315. esac
  12316.  
  12317. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  12318. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  12319. library_names_spec=
  12320. libname_spec='lib$name'
  12321. soname_spec=
  12322. shrext_cmds=".so"
  12323. postinstall_cmds=
  12324. postuninstall_cmds=
  12325. finish_cmds=
  12326. finish_eval=
  12327. shlibpath_var=
  12328. shlibpath_overrides_runpath=unknown
  12329. version_type=none
  12330. dynamic_linker="$host_os ld.so"
  12331. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12332. if test "$GCC" = yes; then
  12333.   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  12334.   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  12335.     # if the path contains ";" then we assume it to be the separator
  12336.     # otherwise default to the standard path separator (i.e. ":") - it is
  12337.     # assumed that no part of a normal pathname contains ";" but that should
  12338.     # okay in the real world where ";" in dirpaths is itself problematic.
  12339.     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12340.   else
  12341.     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  12342.   fi
  12343. else
  12344.   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  12345. fi
  12346. need_lib_prefix=unknown
  12347. hardcode_into_libs=no
  12348.  
  12349. # when you set need_version to no, make sure it does not cause -set_version
  12350. # flags to be left without arguments
  12351. need_version=unknown
  12352.  
  12353. case $host_os in
  12354. aix3*)
  12355.   version_type=linux
  12356.   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12357.   shlibpath_var=LIBPATH
  12358.  
  12359.   # AIX 3 has no versioning support, so we append a major version to the name.
  12360.   soname_spec='${libname}${release}${shared_ext}$major'
  12361.   ;;
  12362.  
  12363. aix4* | aix5*)
  12364.   version_type=linux
  12365.   need_lib_prefix=no
  12366.   need_version=no
  12367.   hardcode_into_libs=yes
  12368.   if test "$host_cpu" = ia64; then
  12369.     # AIX 5 supports IA64
  12370.     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12371.     shlibpath_var=LD_LIBRARY_PATH
  12372.   else
  12373.     # With GCC up to 2.95.x, collect2 would create an import file
  12374.     # for dependence libraries.  The import file would start with
  12375.     # the line `#! .'.  This would cause the generated library to
  12376.     # depend on `.', always an invalid library.  This was fixed in
  12377.     # development snapshots of GCC prior to 3.0.
  12378.     case $host_os in
  12379.       aix4 | aix4.[01] | aix4.[01].*)
  12380.       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12381.        echo ' yes '
  12382.        echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  12383.     :
  12384.       else
  12385.     can_build_shared=no
  12386.       fi
  12387.       ;;
  12388.     esac
  12389.     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12390.     # soname into executable. Probably we can add versioning support to
  12391.     # collect2, so additional links can be useful in future.
  12392.     if test "$aix_use_runtimelinking" = yes; then
  12393.       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12394.       # instead of lib<name>.a to let people know that these are not
  12395.       # typical AIX shared libraries.
  12396.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12397.     else
  12398.       # We preserve .a as extension for shared libraries through AIX4.2
  12399.       # and later when we are not doing run time linking.
  12400.       library_names_spec='${libname}${release}.a $libname.a'
  12401.       soname_spec='${libname}${release}${shared_ext}$major'
  12402.     fi
  12403.     shlibpath_var=LIBPATH
  12404.   fi
  12405.   ;;
  12406.  
  12407. amigaos*)
  12408.   library_names_spec='$libname.ixlibrary $libname.a'
  12409.   # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12410.   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'
  12411.   ;;
  12412.  
  12413. beos*)
  12414.   library_names_spec='${libname}${shared_ext}'
  12415.   dynamic_linker="$host_os ld.so"
  12416.   shlibpath_var=LIBRARY_PATH
  12417.   ;;
  12418.  
  12419. bsdi4*)
  12420.   version_type=linux
  12421.   need_version=no
  12422.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12423.   soname_spec='${libname}${release}${shared_ext}$major'
  12424.   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12425.   shlibpath_var=LD_LIBRARY_PATH
  12426.   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12427.   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12428.   # the default ld.so.conf also contains /usr/contrib/lib and
  12429.   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12430.   # libtool to hard-code these into programs
  12431.   ;;
  12432.  
  12433. cygwin* | mingw* | pw32*)
  12434.   version_type=windows
  12435.   shrext_cmds=".dll"
  12436.   need_version=no
  12437.   need_lib_prefix=no
  12438.  
  12439.   case $GCC,$host_os in
  12440.   yes,cygwin* | yes,mingw* | yes,pw32*)
  12441.     library_names_spec='$libname.dll.a'
  12442.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12443.     postinstall_cmds='base_file=`basename \${file}`~
  12444.       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  12445.       dldir=$destdir/`dirname \$dlpath`~
  12446.       test -d \$dldir || mkdir -p \$dldir~
  12447.       $install_prog $dir/$dlname \$dldir/$dlname'
  12448.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12449.       dlpath=$dir/\$dldll~
  12450.        $rm \$dlpath'
  12451.     shlibpath_overrides_runpath=yes
  12452.  
  12453.     case $host_os in
  12454.     cygwin*)
  12455.       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12456.       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12457.       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  12458.       ;;
  12459.     mingw*)
  12460.       # MinGW DLLs use traditional 'lib' prefix
  12461.       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12462.       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  12463.       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  12464.         # It is most probably a Windows format PATH printed by
  12465.         # mingw gcc, but we are running on Cygwin. Gcc prints its search
  12466.         # path with ; separators, and with drive letters. We can handle the
  12467.         # drive letters (cygwin fileutils understands them), so leave them,
  12468.         # especially as we might pass files found there to a mingw objdump,
  12469.         # which wouldn't understand a cygwinified path. Ahh.
  12470.         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12471.       else
  12472.         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  12473.       fi
  12474.       ;;
  12475.     pw32*)
  12476.       # pw32 DLLs use 'pw' prefix rather than 'lib'
  12477.       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  12478.       ;;
  12479.     esac
  12480.     ;;
  12481.  
  12482.   *)
  12483.     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12484.     ;;
  12485.   esac
  12486.   dynamic_linker='Win32 ld.exe'
  12487.   # FIXME: first we should search . and the directory the executable is in
  12488.   shlibpath_var=PATH
  12489.   ;;
  12490.  
  12491. darwin* | rhapsody*)
  12492.   dynamic_linker="$host_os dyld"
  12493.   version_type=darwin
  12494.   need_lib_prefix=no
  12495.   need_version=no
  12496.   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12497.   soname_spec='${libname}${release}${major}$shared_ext'
  12498.   shlibpath_overrides_runpath=yes
  12499.   shlibpath_var=DYLD_LIBRARY_PATH
  12500.   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  12501.   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  12502.   if test "$GCC" = yes; then
  12503.     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"`
  12504.   else
  12505.     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  12506.   fi
  12507.   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12508.   ;;
  12509.  
  12510. dgux*)
  12511.   version_type=linux
  12512.   need_lib_prefix=no
  12513.   need_version=no
  12514.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12515.   soname_spec='${libname}${release}${shared_ext}$major'
  12516.   shlibpath_var=LD_LIBRARY_PATH
  12517.   ;;
  12518.  
  12519. freebsd1*)
  12520.   dynamic_linker=no
  12521.   ;;
  12522.  
  12523. kfreebsd*-gnu)
  12524.   version_type=linux
  12525.   need_lib_prefix=no
  12526.   need_version=no
  12527.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12528.   soname_spec='${libname}${release}${shared_ext}$major'
  12529.   shlibpath_var=LD_LIBRARY_PATH
  12530.   shlibpath_overrides_runpath=no
  12531.   hardcode_into_libs=yes
  12532.   dynamic_linker='GNU ld.so'
  12533.   ;;
  12534.  
  12535. freebsd*)
  12536.   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  12537.   version_type=freebsd-$objformat
  12538.   case $version_type in
  12539.     freebsd-elf*)
  12540.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12541.       need_version=no
  12542.       need_lib_prefix=no
  12543.       ;;
  12544.     freebsd-*)
  12545.       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12546.       need_version=yes
  12547.       ;;
  12548.   esac
  12549.   shlibpath_var=LD_LIBRARY_PATH
  12550.   case $host_os in
  12551.   freebsd2*)
  12552.     shlibpath_overrides_runpath=yes
  12553.     ;;
  12554.   freebsd3.01* | freebsdelf3.01*)
  12555.     shlibpath_overrides_runpath=yes
  12556.     hardcode_into_libs=yes
  12557.     ;;
  12558.   *) # from 3.2 on
  12559.     shlibpath_overrides_runpath=no
  12560.     hardcode_into_libs=yes
  12561.     ;;
  12562.   esac
  12563.   ;;
  12564.  
  12565. gnu*)
  12566.   version_type=linux
  12567.   need_lib_prefix=no
  12568.   need_version=no
  12569.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12570.   soname_spec='${libname}${release}${shared_ext}$major'
  12571.   shlibpath_var=LD_LIBRARY_PATH
  12572.   hardcode_into_libs=yes
  12573.   ;;
  12574.  
  12575. hpux9* | hpux10* | hpux11*)
  12576.   # Give a soname corresponding to the major version so that dld.sl refuses to
  12577.   # link against other versions.
  12578.   version_type=sunos
  12579.   need_lib_prefix=no
  12580.   need_version=no
  12581.   case "$host_cpu" in
  12582.   ia64*)
  12583.     shrext_cmds='.so'
  12584.     hardcode_into_libs=yes
  12585.     dynamic_linker="$host_os dld.so"
  12586.     shlibpath_var=LD_LIBRARY_PATH
  12587.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12588.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12589.     soname_spec='${libname}${release}${shared_ext}$major'
  12590.     if test "X$HPUX_IA64_MODE" = X32; then
  12591.       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12592.     else
  12593.       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12594.     fi
  12595.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12596.     ;;
  12597.    hppa*64*)
  12598.      shrext_cmds='.sl'
  12599.      hardcode_into_libs=yes
  12600.      dynamic_linker="$host_os dld.sl"
  12601.      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12602.      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12603.      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12604.      soname_spec='${libname}${release}${shared_ext}$major'
  12605.      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12606.      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12607.      ;;
  12608.    *)
  12609.     shrext_cmds='.sl'
  12610.     dynamic_linker="$host_os dld.sl"
  12611.     shlibpath_var=SHLIB_PATH
  12612.     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12613.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12614.     soname_spec='${libname}${release}${shared_ext}$major'
  12615.     ;;
  12616.   esac
  12617.   # HP-UX runs *really* slowly unless shared libraries are mode 555.
  12618.   postinstall_cmds='chmod 555 $lib'
  12619.   ;;
  12620.  
  12621. irix5* | irix6* | nonstopux*)
  12622.   case $host_os in
  12623.     nonstopux*) version_type=nonstopux ;;
  12624.     *)
  12625.     if test "$lt_cv_prog_gnu_ld" = yes; then
  12626.         version_type=linux
  12627.     else
  12628.         version_type=irix
  12629.     fi ;;
  12630.   esac
  12631.   need_lib_prefix=no
  12632.   need_version=no
  12633.   soname_spec='${libname}${release}${shared_ext}$major'
  12634.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12635.   case $host_os in
  12636.   irix5* | nonstopux*)
  12637.     libsuff= shlibsuff=
  12638.     ;;
  12639.   *)
  12640.     case $LD in # libtool.m4 will add one of these switches to LD
  12641.     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12642.       libsuff= shlibsuff= libmagic=32-bit;;
  12643.     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12644.       libsuff=32 shlibsuff=N32 libmagic=N32;;
  12645.     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12646.       libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12647.     *) libsuff= shlibsuff= libmagic=never-match;;
  12648.     esac
  12649.     ;;
  12650.   esac
  12651.   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12652.   shlibpath_overrides_runpath=no
  12653.   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12654.   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12655.   hardcode_into_libs=yes
  12656.   ;;
  12657.  
  12658. # No shared lib support for Linux oldld, aout, or coff.
  12659. linux*oldld* | linux*aout* | linux*coff*)
  12660.   dynamic_linker=no
  12661.   ;;
  12662.  
  12663. # This must be Linux ELF.
  12664. linux*)
  12665.   version_type=linux
  12666.   need_lib_prefix=no
  12667.   need_version=no
  12668.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12669.   soname_spec='${libname}${release}${shared_ext}$major'
  12670.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12671.   shlibpath_var=LD_LIBRARY_PATH
  12672.   shlibpath_overrides_runpath=no
  12673.   # This implies no fast_install, which is unacceptable.
  12674.   # Some rework will be needed to allow for fast_install
  12675.   # before this can be enabled.
  12676.   hardcode_into_libs=yes
  12677.  
  12678.   # Append ld.so.conf contents to the search path
  12679.   if test -f /etc/ld.so.conf; then
  12680.     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
  12681.     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12682.   fi
  12683.  
  12684.   # We used to test for /lib/ld.so.1 and disable shared libraries on
  12685.   # powerpc, because MkLinux only supported shared libraries with the
  12686.   # GNU dynamic linker.  Since this was broken with cross compilers,
  12687.   # most powerpc-linux boxes support dynamic linking these days and
  12688.   # people can always --disable-shared, the test was removed, and we
  12689.   # assume the GNU/Linux dynamic linker is in use.
  12690.   dynamic_linker='GNU/Linux ld.so'
  12691.   ;;
  12692.  
  12693. netbsdelf*-gnu)
  12694.   version_type=linux
  12695.   need_lib_prefix=no
  12696.   need_version=no
  12697.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12698.   soname_spec='${libname}${release}${shared_ext}$major'
  12699.   shlibpath_var=LD_LIBRARY_PATH
  12700.   shlibpath_overrides_runpath=no
  12701.   hardcode_into_libs=yes
  12702.   dynamic_linker='NetBSD ld.elf_so'
  12703.   ;;
  12704.  
  12705. knetbsd*-gnu)
  12706.   version_type=linux
  12707.   need_lib_prefix=no
  12708.   need_version=no
  12709.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12710.   soname_spec='${libname}${release}${shared_ext}$major'
  12711.   shlibpath_var=LD_LIBRARY_PATH
  12712.   shlibpath_overrides_runpath=no
  12713.   hardcode_into_libs=yes
  12714.   dynamic_linker='GNU ld.so'
  12715.   ;;
  12716.  
  12717. netbsd*)
  12718.   version_type=sunos
  12719.   need_lib_prefix=no
  12720.   need_version=no
  12721.   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12722.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12723.     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12724.     dynamic_linker='NetBSD (a.out) ld.so'
  12725.   else
  12726.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12727.     soname_spec='${libname}${release}${shared_ext}$major'
  12728.     dynamic_linker='NetBSD ld.elf_so'
  12729.   fi
  12730.   shlibpath_var=LD_LIBRARY_PATH
  12731.   shlibpath_overrides_runpath=yes
  12732.   hardcode_into_libs=yes
  12733.   ;;
  12734.  
  12735. newsos6)
  12736.   version_type=linux
  12737.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12738.   shlibpath_var=LD_LIBRARY_PATH
  12739.   shlibpath_overrides_runpath=yes
  12740.   ;;
  12741.  
  12742. nto-qnx*)
  12743.   version_type=linux
  12744.   need_lib_prefix=no
  12745.   need_version=no
  12746.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12747.   soname_spec='${libname}${release}${shared_ext}$major'
  12748.   shlibpath_var=LD_LIBRARY_PATH
  12749.   shlibpath_overrides_runpath=yes
  12750.   ;;
  12751.  
  12752. openbsd*)
  12753.   version_type=sunos
  12754.   need_lib_prefix=no
  12755.   need_version=yes
  12756.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12757.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12758.   shlibpath_var=LD_LIBRARY_PATH
  12759.   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12760.     case $host_os in
  12761.       openbsd2.[89] | openbsd2.[89].*)
  12762.     shlibpath_overrides_runpath=no
  12763.     ;;
  12764.       *)
  12765.     shlibpath_overrides_runpath=yes
  12766.     ;;
  12767.       esac
  12768.   else
  12769.     shlibpath_overrides_runpath=yes
  12770.   fi
  12771.   ;;
  12772.  
  12773. os2*)
  12774.   libname_spec='$name'
  12775.   shrext_cmds=".dll"
  12776.   need_lib_prefix=no
  12777.   library_names_spec='$libname${shared_ext} $libname.a'
  12778.   dynamic_linker='OS/2 ld.exe'
  12779.   shlibpath_var=LIBPATH
  12780.   ;;
  12781.  
  12782. osf3* | osf4* | osf5*)
  12783.   version_type=osf
  12784.   need_lib_prefix=no
  12785.   need_version=no
  12786.   soname_spec='${libname}${release}${shared_ext}$major'
  12787.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12788.   shlibpath_var=LD_LIBRARY_PATH
  12789.   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12790.   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12791.   ;;
  12792.  
  12793. sco3.2v5*)
  12794.   version_type=osf
  12795.   soname_spec='${libname}${release}${shared_ext}$major'
  12796.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12797.   shlibpath_var=LD_LIBRARY_PATH
  12798.   ;;
  12799.  
  12800. solaris*)
  12801.   version_type=linux
  12802.   need_lib_prefix=no
  12803.   need_version=no
  12804.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12805.   soname_spec='${libname}${release}${shared_ext}$major'
  12806.   shlibpath_var=LD_LIBRARY_PATH
  12807.   shlibpath_overrides_runpath=yes
  12808.   hardcode_into_libs=yes
  12809.   # ldd complains unless libraries are executable
  12810.   postinstall_cmds='chmod +x $lib'
  12811.   ;;
  12812.  
  12813. sunos4*)
  12814.   version_type=sunos
  12815.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12816.   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12817.   shlibpath_var=LD_LIBRARY_PATH
  12818.   shlibpath_overrides_runpath=yes
  12819.   if test "$with_gnu_ld" = yes; then
  12820.     need_lib_prefix=no
  12821.   fi
  12822.   need_version=yes
  12823.   ;;
  12824.  
  12825. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  12826.   version_type=linux
  12827.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12828.   soname_spec='${libname}${release}${shared_ext}$major'
  12829.   shlibpath_var=LD_LIBRARY_PATH
  12830.   case $host_vendor in
  12831.     sni)
  12832.       shlibpath_overrides_runpath=no
  12833.       need_lib_prefix=no
  12834.       export_dynamic_flag_spec='${wl}-Blargedynsym'
  12835.       runpath_var=LD_RUN_PATH
  12836.       ;;
  12837.     siemens)
  12838.       need_lib_prefix=no
  12839.       ;;
  12840.     motorola)
  12841.       need_lib_prefix=no
  12842.       need_version=no
  12843.       shlibpath_overrides_runpath=no
  12844.       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12845.       ;;
  12846.   esac
  12847.   ;;
  12848.  
  12849. sysv4*MP*)
  12850.   if test -d /usr/nec ;then
  12851.     version_type=linux
  12852.     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12853.     soname_spec='$libname${shared_ext}.$major'
  12854.     shlibpath_var=LD_LIBRARY_PATH
  12855.   fi
  12856.   ;;
  12857.  
  12858. uts4*)
  12859.   version_type=linux
  12860.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12861.   soname_spec='${libname}${release}${shared_ext}$major'
  12862.   shlibpath_var=LD_LIBRARY_PATH
  12863.   ;;
  12864.  
  12865. *)
  12866.   dynamic_linker=no
  12867.   ;;
  12868. esac
  12869. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  12870. echo "${ECHO_T}$dynamic_linker" >&6
  12871. test "$dynamic_linker" = no && can_build_shared=no
  12872.  
  12873. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  12874. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  12875. hardcode_action_CXX=
  12876. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  12877.    test -n "$runpath_var CXX" || \
  12878.    test "X$hardcode_automatic_CXX"="Xyes" ; then
  12879.  
  12880.   # We can hardcode non-existant directories.
  12881.   if test "$hardcode_direct_CXX" != no &&
  12882.      # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12883.      # have to relink, otherwise we might link with an installed library
  12884.      # when we should be linking with a yet-to-be-installed one
  12885.      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12886.      test "$hardcode_minus_L_CXX" != no; then
  12887.     # Linking always hardcodes the temporary library directory.
  12888.     hardcode_action_CXX=relink
  12889.   else
  12890.     # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12891.     hardcode_action_CXX=immediate
  12892.   fi
  12893. else
  12894.   # We cannot hardcode anything, or else we can only hardcode existing
  12895.   # directories.
  12896.   hardcode_action_CXX=unsupported
  12897. fi
  12898. echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  12899. echo "${ECHO_T}$hardcode_action_CXX" >&6
  12900.  
  12901. if test "$hardcode_action_CXX" = relink; then
  12902.   # Fast installation is not supported
  12903.   enable_fast_install=no
  12904. elif test "$shlibpath_overrides_runpath" = yes ||
  12905.      test "$enable_shared" = no; then
  12906.   # Fast installation is not necessary
  12907.   enable_fast_install=needless
  12908. fi
  12909.  
  12910. striplib=
  12911. old_striplib=
  12912. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  12913. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  12914. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  12915.   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  12916.   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  12917.   echo "$as_me:$LINENO: result: yes" >&5
  12918. echo "${ECHO_T}yes" >&6
  12919. else
  12920. # FIXME - insert some real tests, host_os isn't really good enough
  12921.   case $host_os in
  12922.    darwin*)
  12923.        if test -n "$STRIP" ; then
  12924.          striplib="$STRIP -x"
  12925.          echo "$as_me:$LINENO: result: yes" >&5
  12926. echo "${ECHO_T}yes" >&6
  12927.        else
  12928.   echo "$as_me:$LINENO: result: no" >&5
  12929. echo "${ECHO_T}no" >&6
  12930. fi
  12931.        ;;
  12932.    *)
  12933.   echo "$as_me:$LINENO: result: no" >&5
  12934. echo "${ECHO_T}no" >&6
  12935.     ;;
  12936.   esac
  12937. fi
  12938.  
  12939. if test "x$enable_dlopen" != xyes; then
  12940.   enable_dlopen=unknown
  12941.   enable_dlopen_self=unknown
  12942.   enable_dlopen_self_static=unknown
  12943. else
  12944.   lt_cv_dlopen=no
  12945.   lt_cv_dlopen_libs=
  12946.  
  12947.   case $host_os in
  12948.   beos*)
  12949.     lt_cv_dlopen="load_add_on"
  12950.     lt_cv_dlopen_libs=
  12951.     lt_cv_dlopen_self=yes
  12952.     ;;
  12953.  
  12954.   mingw* | pw32*)
  12955.     lt_cv_dlopen="LoadLibrary"
  12956.     lt_cv_dlopen_libs=
  12957.    ;;
  12958.  
  12959.   cygwin*)
  12960.     lt_cv_dlopen="dlopen"
  12961.     lt_cv_dlopen_libs=
  12962.    ;;
  12963.  
  12964.   darwin*)
  12965.   # if libdl is installed we need to link against it
  12966.     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  12967. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  12968. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  12969.   echo $ECHO_N "(cached) $ECHO_C" >&6
  12970. else
  12971.   ac_check_lib_save_LIBS=$LIBS
  12972. LIBS="-ldl  $LIBS"
  12973. cat >conftest.$ac_ext <<_ACEOF
  12974. /* confdefs.h.  */
  12975. _ACEOF
  12976. cat confdefs.h >>conftest.$ac_ext
  12977. cat >>conftest.$ac_ext <<_ACEOF
  12978. /* end confdefs.h.  */
  12979.  
  12980. /* Override any gcc2 internal prototype to avoid an error.  */
  12981. #ifdef __cplusplus
  12982. extern "C"
  12983. #endif
  12984. /* We use char because int might match the return type of a gcc2
  12985.    builtin and then its argument prototype would still apply.  */
  12986. char dlopen ();
  12987. int
  12988. main ()
  12989. {
  12990. dlopen ();
  12991.   ;
  12992.   return 0;
  12993. }
  12994. _ACEOF
  12995. rm -f conftest.$ac_objext conftest$ac_exeext
  12996. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12997.   (eval $ac_link) 2>conftest.er1
  12998.   ac_status=$?
  12999.   grep -v '^ *+' conftest.er1 >conftest.err
  13000.   rm -f conftest.er1
  13001.   cat conftest.err >&5
  13002.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13003.   (exit $ac_status); } &&
  13004.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  13005.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13006.   (eval $ac_try) 2>&5
  13007.   ac_status=$?
  13008.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13009.   (exit $ac_status); }; } &&
  13010.      { ac_try='test -s conftest$ac_exeext'
  13011.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13012.   (eval $ac_try) 2>&5
  13013.   ac_status=$?
  13014.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13015.   (exit $ac_status); }; }; then
  13016.   ac_cv_lib_dl_dlopen=yes
  13017. else
  13018.   echo "$as_me: failed program was:" >&5
  13019. sed 's/^/| /' conftest.$ac_ext >&5
  13020.  
  13021. ac_cv_lib_dl_dlopen=no
  13022. fi
  13023. rm -f conftest.err conftest.$ac_objext \
  13024.       conftest$ac_exeext conftest.$ac_ext
  13025. LIBS=$ac_check_lib_save_LIBS
  13026. fi
  13027. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  13028. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  13029. if test $ac_cv_lib_dl_dlopen = yes; then
  13030.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  13031. else
  13032.  
  13033.     lt_cv_dlopen="dyld"
  13034.     lt_cv_dlopen_libs=
  13035.     lt_cv_dlopen_self=yes
  13036.  
  13037. fi
  13038.  
  13039.    ;;
  13040.  
  13041.   *)
  13042.     echo "$as_me:$LINENO: checking for shl_load" >&5
  13043. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  13044. if test "${ac_cv_func_shl_load+set}" = set; then
  13045.   echo $ECHO_N "(cached) $ECHO_C" >&6
  13046. else
  13047.   cat >conftest.$ac_ext <<_ACEOF
  13048. /* confdefs.h.  */
  13049. _ACEOF
  13050. cat confdefs.h >>conftest.$ac_ext
  13051. cat >>conftest.$ac_ext <<_ACEOF
  13052. /* end confdefs.h.  */
  13053. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  13054.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  13055. #define shl_load innocuous_shl_load
  13056.  
  13057. /* System header to define __stub macros and hopefully few prototypes,
  13058.     which can conflict with char shl_load (); below.
  13059.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13060.     <limits.h> exists even on freestanding compilers.  */
  13061.  
  13062. #ifdef __STDC__
  13063. # include <limits.h>
  13064. #else
  13065. # include <assert.h>
  13066. #endif
  13067.  
  13068. #undef shl_load
  13069.  
  13070. /* Override any gcc2 internal prototype to avoid an error.  */
  13071. #ifdef __cplusplus
  13072. extern "C"
  13073. {
  13074. #endif
  13075. /* We use char because int might match the return type of a gcc2
  13076.    builtin and then its argument prototype would still apply.  */
  13077. char shl_load ();
  13078. /* The GNU C library defines this for functions which it implements
  13079.     to always fail with ENOSYS.  Some functions are actually named
  13080.     something starting with __ and the normal name is an alias.  */
  13081. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  13082. choke me
  13083. #else
  13084. char (*f) () = shl_load;
  13085. #endif
  13086. #ifdef __cplusplus
  13087. }
  13088. #endif
  13089.  
  13090. int
  13091. main ()
  13092. {
  13093. return f != shl_load;
  13094.   ;
  13095.   return 0;
  13096. }
  13097. _ACEOF
  13098. rm -f conftest.$ac_objext conftest$ac_exeext
  13099. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13100.   (eval $ac_link) 2>conftest.er1
  13101.   ac_status=$?
  13102.   grep -v '^ *+' conftest.er1 >conftest.err
  13103.   rm -f conftest.er1
  13104.   cat conftest.err >&5
  13105.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13106.   (exit $ac_status); } &&
  13107.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  13108.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13109.   (eval $ac_try) 2>&5
  13110.   ac_status=$?
  13111.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13112.   (exit $ac_status); }; } &&
  13113.      { ac_try='test -s conftest$ac_exeext'
  13114.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13115.   (eval $ac_try) 2>&5
  13116.   ac_status=$?
  13117.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13118.   (exit $ac_status); }; }; then
  13119.   ac_cv_func_shl_load=yes
  13120. else
  13121.   echo "$as_me: failed program was:" >&5
  13122. sed 's/^/| /' conftest.$ac_ext >&5
  13123.  
  13124. ac_cv_func_shl_load=no
  13125. fi
  13126. rm -f conftest.err conftest.$ac_objext \
  13127.       conftest$ac_exeext conftest.$ac_ext
  13128. fi
  13129. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  13130. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  13131. if test $ac_cv_func_shl_load = yes; then
  13132.   lt_cv_dlopen="shl_load"
  13133. else
  13134.   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  13135. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  13136. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  13137.   echo $ECHO_N "(cached) $ECHO_C" >&6
  13138. else
  13139.   ac_check_lib_save_LIBS=$LIBS
  13140. LIBS="-ldld  $LIBS"
  13141. cat >conftest.$ac_ext <<_ACEOF
  13142. /* confdefs.h.  */
  13143. _ACEOF
  13144. cat confdefs.h >>conftest.$ac_ext
  13145. cat >>conftest.$ac_ext <<_ACEOF
  13146. /* end confdefs.h.  */
  13147.  
  13148. /* Override any gcc2 internal prototype to avoid an error.  */
  13149. #ifdef __cplusplus
  13150. extern "C"
  13151. #endif
  13152. /* We use char because int might match the return type of a gcc2
  13153.    builtin and then its argument prototype would still apply.  */
  13154. char shl_load ();
  13155. int
  13156. main ()
  13157. {
  13158. shl_load ();
  13159.   ;
  13160.   return 0;
  13161. }
  13162. _ACEOF
  13163. rm -f conftest.$ac_objext conftest$ac_exeext
  13164. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13165.   (eval $ac_link) 2>conftest.er1
  13166.   ac_status=$?
  13167.   grep -v '^ *+' conftest.er1 >conftest.err
  13168.   rm -f conftest.er1
  13169.   cat conftest.err >&5
  13170.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13171.   (exit $ac_status); } &&
  13172.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  13173.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13174.   (eval $ac_try) 2>&5
  13175.   ac_status=$?
  13176.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13177.   (exit $ac_status); }; } &&
  13178.      { ac_try='test -s conftest$ac_exeext'
  13179.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13180.   (eval $ac_try) 2>&5
  13181.   ac_status=$?
  13182.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13183.   (exit $ac_status); }; }; then
  13184.   ac_cv_lib_dld_shl_load=yes
  13185. else
  13186.   echo "$as_me: failed program was:" >&5
  13187. sed 's/^/| /' conftest.$ac_ext >&5
  13188.  
  13189. ac_cv_lib_dld_shl_load=no
  13190. fi
  13191. rm -f conftest.err conftest.$ac_objext \
  13192.       conftest$ac_exeext conftest.$ac_ext
  13193. LIBS=$ac_check_lib_save_LIBS
  13194. fi
  13195. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  13196. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  13197. if test $ac_cv_lib_dld_shl_load = yes; then
  13198.   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  13199. else
  13200.   echo "$as_me:$LINENO: checking for dlopen" >&5
  13201. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  13202. if test "${ac_cv_func_dlopen+set}" = set; then
  13203.   echo $ECHO_N "(cached) $ECHO_C" >&6
  13204. else
  13205.   cat >conftest.$ac_ext <<_ACEOF
  13206. /* confdefs.h.  */
  13207. _ACEOF
  13208. cat confdefs.h >>conftest.$ac_ext
  13209. cat >>conftest.$ac_ext <<_ACEOF
  13210. /* end confdefs.h.  */
  13211. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  13212.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  13213. #define dlopen innocuous_dlopen
  13214.  
  13215. /* System header to define __stub macros and hopefully few prototypes,
  13216.     which can conflict with char dlopen (); below.
  13217.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13218.     <limits.h> exists even on freestanding compilers.  */
  13219.  
  13220. #ifdef __STDC__
  13221. # include <limits.h>
  13222. #else
  13223. # include <assert.h>
  13224. #endif
  13225.  
  13226. #undef dlopen
  13227.  
  13228. /* Override any gcc2 internal prototype to avoid an error.  */
  13229. #ifdef __cplusplus
  13230. extern "C"
  13231. {
  13232. #endif
  13233. /* We use char because int might match the return type of a gcc2
  13234.    builtin and then its argument prototype would still apply.  */
  13235. char dlopen ();
  13236. /* The GNU C library defines this for functions which it implements
  13237.     to always fail with ENOSYS.  Some functions are actually named
  13238.     something starting with __ and the normal name is an alias.  */
  13239. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  13240. choke me
  13241. #else
  13242. char (*f) () = dlopen;
  13243. #endif
  13244. #ifdef __cplusplus
  13245. }
  13246. #endif
  13247.  
  13248. int
  13249. main ()
  13250. {
  13251. return f != dlopen;
  13252.   ;
  13253.   return 0;
  13254. }
  13255. _ACEOF
  13256. rm -f conftest.$ac_objext conftest$ac_exeext
  13257. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13258.   (eval $ac_link) 2>conftest.er1
  13259.   ac_status=$?
  13260.   grep -v '^ *+' conftest.er1 >conftest.err
  13261.   rm -f conftest.er1
  13262.   cat conftest.err >&5
  13263.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13264.   (exit $ac_status); } &&
  13265.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  13266.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13267.   (eval $ac_try) 2>&5
  13268.   ac_status=$?
  13269.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13270.   (exit $ac_status); }; } &&
  13271.      { ac_try='test -s conftest$ac_exeext'
  13272.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13273.   (eval $ac_try) 2>&5
  13274.   ac_status=$?
  13275.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13276.   (exit $ac_status); }; }; then
  13277.   ac_cv_func_dlopen=yes
  13278. else
  13279.   echo "$as_me: failed program was:" >&5
  13280. sed 's/^/| /' conftest.$ac_ext >&5
  13281.  
  13282. ac_cv_func_dlopen=no
  13283. fi
  13284. rm -f conftest.err conftest.$ac_objext \
  13285.       conftest$ac_exeext conftest.$ac_ext
  13286. fi
  13287. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  13288. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  13289. if test $ac_cv_func_dlopen = yes; then
  13290.   lt_cv_dlopen="dlopen"
  13291. else
  13292.   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  13293. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  13294. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  13295.   echo $ECHO_N "(cached) $ECHO_C" >&6
  13296. else
  13297.   ac_check_lib_save_LIBS=$LIBS
  13298. LIBS="-ldl  $LIBS"
  13299. cat >conftest.$ac_ext <<_ACEOF
  13300. /* confdefs.h.  */
  13301. _ACEOF
  13302. cat confdefs.h >>conftest.$ac_ext
  13303. cat >>conftest.$ac_ext <<_ACEOF
  13304. /* end confdefs.h.  */
  13305.  
  13306. /* Override any gcc2 internal prototype to avoid an error.  */
  13307. #ifdef __cplusplus
  13308. extern "C"
  13309. #endif
  13310. /* We use char because int might match the return type of a gcc2
  13311.    builtin and then its argument prototype would still apply.  */
  13312. char dlopen ();
  13313. int
  13314. main ()
  13315. {
  13316. dlopen ();
  13317.   ;
  13318.   return 0;
  13319. }
  13320. _ACEOF
  13321. rm -f conftest.$ac_objext conftest$ac_exeext
  13322. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13323.   (eval $ac_link) 2>conftest.er1
  13324.   ac_status=$?
  13325.   grep -v '^ *+' conftest.er1 >conftest.err
  13326.   rm -f conftest.er1
  13327.   cat conftest.err >&5
  13328.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13329.   (exit $ac_status); } &&
  13330.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  13331.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13332.   (eval $ac_try) 2>&5
  13333.   ac_status=$?
  13334.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13335.   (exit $ac_status); }; } &&
  13336.      { ac_try='test -s conftest$ac_exeext'
  13337.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13338.   (eval $ac_try) 2>&5
  13339.   ac_status=$?
  13340.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13341.   (exit $ac_status); }; }; then
  13342.   ac_cv_lib_dl_dlopen=yes
  13343. else
  13344.   echo "$as_me: failed program was:" >&5
  13345. sed 's/^/| /' conftest.$ac_ext >&5
  13346.  
  13347. ac_cv_lib_dl_dlopen=no
  13348. fi
  13349. rm -f conftest.err conftest.$ac_objext \
  13350.       conftest$ac_exeext conftest.$ac_ext
  13351. LIBS=$ac_check_lib_save_LIBS
  13352. fi
  13353. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  13354. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  13355. if test $ac_cv_lib_dl_dlopen = yes; then
  13356.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  13357. else
  13358.   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  13359. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  13360. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  13361.   echo $ECHO_N "(cached) $ECHO_C" >&6
  13362. else
  13363.   ac_check_lib_save_LIBS=$LIBS
  13364. LIBS="-lsvld  $LIBS"
  13365. cat >conftest.$ac_ext <<_ACEOF
  13366. /* confdefs.h.  */
  13367. _ACEOF
  13368. cat confdefs.h >>conftest.$ac_ext
  13369. cat >>conftest.$ac_ext <<_ACEOF
  13370. /* end confdefs.h.  */
  13371.  
  13372. /* Override any gcc2 internal prototype to avoid an error.  */
  13373. #ifdef __cplusplus
  13374. extern "C"
  13375. #endif
  13376. /* We use char because int might match the return type of a gcc2
  13377.    builtin and then its argument prototype would still apply.  */
  13378. char dlopen ();
  13379. int
  13380. main ()
  13381. {
  13382. dlopen ();
  13383.   ;
  13384.   return 0;
  13385. }
  13386. _ACEOF
  13387. rm -f conftest.$ac_objext conftest$ac_exeext
  13388. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13389.   (eval $ac_link) 2>conftest.er1
  13390.   ac_status=$?
  13391.   grep -v '^ *+' conftest.er1 >conftest.err
  13392.   rm -f conftest.er1
  13393.   cat conftest.err >&5
  13394.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13395.   (exit $ac_status); } &&
  13396.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  13397.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13398.   (eval $ac_try) 2>&5
  13399.   ac_status=$?
  13400.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13401.   (exit $ac_status); }; } &&
  13402.      { ac_try='test -s conftest$ac_exeext'
  13403.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13404.   (eval $ac_try) 2>&5
  13405.   ac_status=$?
  13406.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13407.   (exit $ac_status); }; }; then
  13408.   ac_cv_lib_svld_dlopen=yes
  13409. else
  13410.   echo "$as_me: failed program was:" >&5
  13411. sed 's/^/| /' conftest.$ac_ext >&5
  13412.  
  13413. ac_cv_lib_svld_dlopen=no
  13414. fi
  13415. rm -f conftest.err conftest.$ac_objext \
  13416.       conftest$ac_exeext conftest.$ac_ext
  13417. LIBS=$ac_check_lib_save_LIBS
  13418. fi
  13419. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  13420. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  13421. if test $ac_cv_lib_svld_dlopen = yes; then
  13422.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  13423. else
  13424.   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  13425. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  13426. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  13427.   echo $ECHO_N "(cached) $ECHO_C" >&6
  13428. else
  13429.   ac_check_lib_save_LIBS=$LIBS
  13430. LIBS="-ldld  $LIBS"
  13431. cat >conftest.$ac_ext <<_ACEOF
  13432. /* confdefs.h.  */
  13433. _ACEOF
  13434. cat confdefs.h >>conftest.$ac_ext
  13435. cat >>conftest.$ac_ext <<_ACEOF
  13436. /* end confdefs.h.  */
  13437.  
  13438. /* Override any gcc2 internal prototype to avoid an error.  */
  13439. #ifdef __cplusplus
  13440. extern "C"
  13441. #endif
  13442. /* We use char because int might match the return type of a gcc2
  13443.    builtin and then its argument prototype would still apply.  */
  13444. char dld_link ();
  13445. int
  13446. main ()
  13447. {
  13448. dld_link ();
  13449.   ;
  13450.   return 0;
  13451. }
  13452. _ACEOF
  13453. rm -f conftest.$ac_objext conftest$ac_exeext
  13454. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13455.   (eval $ac_link) 2>conftest.er1
  13456.   ac_status=$?
  13457.   grep -v '^ *+' conftest.er1 >conftest.err
  13458.   rm -f conftest.er1
  13459.   cat conftest.err >&5
  13460.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13461.   (exit $ac_status); } &&
  13462.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  13463.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13464.   (eval $ac_try) 2>&5
  13465.   ac_status=$?
  13466.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13467.   (exit $ac_status); }; } &&
  13468.      { ac_try='test -s conftest$ac_exeext'
  13469.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13470.   (eval $ac_try) 2>&5
  13471.   ac_status=$?
  13472.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13473.   (exit $ac_status); }; }; then
  13474.   ac_cv_lib_dld_dld_link=yes
  13475. else
  13476.   echo "$as_me: failed program was:" >&5
  13477. sed 's/^/| /' conftest.$ac_ext >&5
  13478.  
  13479. ac_cv_lib_dld_dld_link=no
  13480. fi
  13481. rm -f conftest.err conftest.$ac_objext \
  13482.       conftest$ac_exeext conftest.$ac_ext
  13483. LIBS=$ac_check_lib_save_LIBS
  13484. fi
  13485. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  13486. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  13487. if test $ac_cv_lib_dld_dld_link = yes; then
  13488.   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  13489. fi
  13490.  
  13491.  
  13492. fi
  13493.  
  13494.  
  13495. fi
  13496.  
  13497.  
  13498. fi
  13499.  
  13500.  
  13501. fi
  13502.  
  13503.  
  13504. fi
  13505.  
  13506.     ;;
  13507.   esac
  13508.  
  13509.   if test "x$lt_cv_dlopen" != xno; then
  13510.     enable_dlopen=yes
  13511.   else
  13512.     enable_dlopen=no
  13513.   fi
  13514.  
  13515.   case $lt_cv_dlopen in
  13516.   dlopen)
  13517.     save_CPPFLAGS="$CPPFLAGS"
  13518.     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  13519.  
  13520.     save_LDFLAGS="$LDFLAGS"
  13521.     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  13522.  
  13523.     save_LIBS="$LIBS"
  13524.     LIBS="$lt_cv_dlopen_libs $LIBS"
  13525.  
  13526.     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  13527. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  13528. if test "${lt_cv_dlopen_self+set}" = set; then
  13529.   echo $ECHO_N "(cached) $ECHO_C" >&6
  13530. else
  13531.         if test "$cross_compiling" = yes; then :
  13532.   lt_cv_dlopen_self=cross
  13533. else
  13534.   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  13535.   lt_status=$lt_dlunknown
  13536.   cat > conftest.$ac_ext <<EOF
  13537. #line 13537 "configure"
  13538. #include "confdefs.h"
  13539.  
  13540. #if HAVE_DLFCN_H
  13541. #include <dlfcn.h>
  13542. #endif
  13543.  
  13544. #include <stdio.h>
  13545.  
  13546. #ifdef RTLD_GLOBAL
  13547. #  define LT_DLGLOBAL        RTLD_GLOBAL
  13548. #else
  13549. #  ifdef DL_GLOBAL
  13550. #    define LT_DLGLOBAL        DL_GLOBAL
  13551. #  else
  13552. #    define LT_DLGLOBAL        0
  13553. #  endif
  13554. #endif
  13555.  
  13556. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  13557.    find out it does not work in some platform. */
  13558. #ifndef LT_DLLAZY_OR_NOW
  13559. #  ifdef RTLD_LAZY
  13560. #    define LT_DLLAZY_OR_NOW        RTLD_LAZY
  13561. #  else
  13562. #    ifdef DL_LAZY
  13563. #      define LT_DLLAZY_OR_NOW        DL_LAZY
  13564. #    else
  13565. #      ifdef RTLD_NOW
  13566. #        define LT_DLLAZY_OR_NOW    RTLD_NOW
  13567. #      else
  13568. #        ifdef DL_NOW
  13569. #          define LT_DLLAZY_OR_NOW    DL_NOW
  13570. #        else
  13571. #          define LT_DLLAZY_OR_NOW    0
  13572. #        endif
  13573. #      endif
  13574. #    endif
  13575. #  endif
  13576. #endif
  13577.  
  13578. #ifdef __cplusplus
  13579. extern "C" void exit (int);
  13580. #endif
  13581.  
  13582. void fnord() { int i=42;}
  13583. int main ()
  13584. {
  13585.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  13586.   int status = $lt_dlunknown;
  13587.  
  13588.   if (self)
  13589.     {
  13590.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  13591.       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  13592.       /* dlclose (self); */
  13593.     }
  13594.  
  13595.     exit (status);
  13596. }
  13597. EOF
  13598.   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13599.   (eval $ac_link) 2>&5
  13600.   ac_status=$?
  13601.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13602.   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  13603.     (./conftest; exit; ) 2>/dev/null
  13604.     lt_status=$?
  13605.     case x$lt_status in
  13606.       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  13607.       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  13608.       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  13609.     esac
  13610.   else :
  13611.     # compilation failed
  13612.     lt_cv_dlopen_self=no
  13613.   fi
  13614. fi
  13615. rm -fr conftest*
  13616.  
  13617.  
  13618. fi
  13619. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  13620. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  13621.  
  13622.     if test "x$lt_cv_dlopen_self" = xyes; then
  13623.       LDFLAGS="$LDFLAGS $link_static_flag"
  13624.       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  13625. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  13626. if test "${lt_cv_dlopen_self_static+set}" = set; then
  13627.   echo $ECHO_N "(cached) $ECHO_C" >&6
  13628. else
  13629.         if test "$cross_compiling" = yes; then :
  13630.   lt_cv_dlopen_self_static=cross
  13631. else
  13632.   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  13633.   lt_status=$lt_dlunknown
  13634.   cat > conftest.$ac_ext <<EOF
  13635. #line 13635 "configure"
  13636. #include "confdefs.h"
  13637.  
  13638. #if HAVE_DLFCN_H
  13639. #include <dlfcn.h>
  13640. #endif
  13641.  
  13642. #include <stdio.h>
  13643.  
  13644. #ifdef RTLD_GLOBAL
  13645. #  define LT_DLGLOBAL        RTLD_GLOBAL
  13646. #else
  13647. #  ifdef DL_GLOBAL
  13648. #    define LT_DLGLOBAL        DL_GLOBAL
  13649. #  else
  13650. #    define LT_DLGLOBAL        0
  13651. #  endif
  13652. #endif
  13653.  
  13654. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  13655.    find out it does not work in some platform. */
  13656. #ifndef LT_DLLAZY_OR_NOW
  13657. #  ifdef RTLD_LAZY
  13658. #    define LT_DLLAZY_OR_NOW        RTLD_LAZY
  13659. #  else
  13660. #    ifdef DL_LAZY
  13661. #      define LT_DLLAZY_OR_NOW        DL_LAZY
  13662. #    else
  13663. #      ifdef RTLD_NOW
  13664. #        define LT_DLLAZY_OR_NOW    RTLD_NOW
  13665. #      else
  13666. #        ifdef DL_NOW
  13667. #          define LT_DLLAZY_OR_NOW    DL_NOW
  13668. #        else
  13669. #          define LT_DLLAZY_OR_NOW    0
  13670. #        endif
  13671. #      endif
  13672. #    endif
  13673. #  endif
  13674. #endif
  13675.  
  13676. #ifdef __cplusplus
  13677. extern "C" void exit (int);
  13678. #endif
  13679.  
  13680. void fnord() { int i=42;}
  13681. int main ()
  13682. {
  13683.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  13684.   int status = $lt_dlunknown;
  13685.  
  13686.   if (self)
  13687.     {
  13688.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  13689.       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  13690.       /* dlclose (self); */
  13691.     }
  13692.  
  13693.     exit (status);
  13694. }
  13695. EOF
  13696.   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13697.   (eval $ac_link) 2>&5
  13698.   ac_status=$?
  13699.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13700.   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  13701.     (./conftest; exit; ) 2>/dev/null
  13702.     lt_status=$?
  13703.     case x$lt_status in
  13704.       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  13705.       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  13706.       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  13707.     esac
  13708.   else :
  13709.     # compilation failed
  13710.     lt_cv_dlopen_self_static=no
  13711.   fi
  13712. fi
  13713. rm -fr conftest*
  13714.  
  13715.  
  13716. fi
  13717. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  13718. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  13719.     fi
  13720.  
  13721.     CPPFLAGS="$save_CPPFLAGS"
  13722.     LDFLAGS="$save_LDFLAGS"
  13723.     LIBS="$save_LIBS"
  13724.     ;;
  13725.   esac
  13726.  
  13727.   case $lt_cv_dlopen_self in
  13728.   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  13729.   *) enable_dlopen_self=unknown ;;
  13730.   esac
  13731.  
  13732.   case $lt_cv_dlopen_self_static in
  13733.   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  13734.   *) enable_dlopen_self_static=unknown ;;
  13735.   esac
  13736. fi
  13737.  
  13738.  
  13739. # The else clause should only fire when bootstrapping the
  13740. # libtool distribution, otherwise you forgot to ship ltmain.sh
  13741. # with your package, and you will get complaints that there are
  13742. # no rules to generate ltmain.sh.
  13743. if test -f "$ltmain"; then
  13744.   # See if we are running on zsh, and set the options which allow our commands through
  13745.   # without removal of \ escapes.
  13746.   if test -n "${ZSH_VERSION+set}" ; then
  13747.     setopt NO_GLOB_SUBST
  13748.   fi
  13749.   # Now quote all the things that may contain metacharacters while being
  13750.   # careful not to overquote the AC_SUBSTed values.  We take copies of the
  13751.   # variables and quote the copies for generation of the libtool script.
  13752.   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  13753.     SED SHELL STRIP \
  13754.     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  13755.     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  13756.     deplibs_check_method reload_flag reload_cmds need_locks \
  13757.     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  13758.     lt_cv_sys_global_symbol_to_c_name_address \
  13759.     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  13760.     old_postinstall_cmds old_postuninstall_cmds \
  13761.     compiler_CXX \
  13762.     CC_CXX \
  13763.     LD_CXX \
  13764.     lt_prog_compiler_wl_CXX \
  13765.     lt_prog_compiler_pic_CXX \
  13766.     lt_prog_compiler_static_CXX \
  13767.     lt_prog_compiler_no_builtin_flag_CXX \
  13768.     export_dynamic_flag_spec_CXX \
  13769.     thread_safe_flag_spec_CXX \
  13770.     whole_archive_flag_spec_CXX \
  13771.     enable_shared_with_static_runtimes_CXX \
  13772.     old_archive_cmds_CXX \
  13773.     old_archive_from_new_cmds_CXX \
  13774.     predep_objects_CXX \
  13775.     postdep_objects_CXX \
  13776.     predeps_CXX \
  13777.     postdeps_CXX \
  13778.     compiler_lib_search_path_CXX \
  13779.     archive_cmds_CXX \
  13780.     archive_expsym_cmds_CXX \
  13781.     postinstall_cmds_CXX \
  13782.     postuninstall_cmds_CXX \
  13783.     old_archive_from_expsyms_cmds_CXX \
  13784.     allow_undefined_flag_CXX \
  13785.     no_undefined_flag_CXX \
  13786.     export_symbols_cmds_CXX \
  13787.     hardcode_libdir_flag_spec_CXX \
  13788.     hardcode_libdir_flag_spec_ld_CXX \
  13789.     hardcode_libdir_separator_CXX \
  13790.     hardcode_automatic_CXX \
  13791.     module_cmds_CXX \
  13792.     module_expsym_cmds_CXX \
  13793.     lt_cv_prog_compiler_c_o_CXX \
  13794.     exclude_expsyms_CXX \
  13795.     include_expsyms_CXX; do
  13796.  
  13797.     case $var in
  13798.     old_archive_cmds_CXX | \
  13799.     old_archive_from_new_cmds_CXX | \
  13800.     archive_cmds_CXX | \
  13801.     archive_expsym_cmds_CXX | \
  13802.     module_cmds_CXX | \
  13803.     module_expsym_cmds_CXX | \
  13804.     old_archive_from_expsyms_cmds_CXX | \
  13805.     export_symbols_cmds_CXX | \
  13806.     extract_expsyms_cmds | reload_cmds | finish_cmds | \
  13807.     postinstall_cmds | postuninstall_cmds | \
  13808.     old_postinstall_cmds | old_postuninstall_cmds | \
  13809.     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  13810.       # Double-quote double-evaled strings.
  13811.       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  13812.       ;;
  13813.     *)
  13814.       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  13815.       ;;
  13816.     esac
  13817.   done
  13818.  
  13819.   case $lt_echo in
  13820.   *'\$0 --fallback-echo"')
  13821.     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  13822.     ;;
  13823.   esac
  13824.  
  13825. cfgfile="$ofile"
  13826.  
  13827.   cat <<__EOF__ >> "$cfgfile"
  13828. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  13829.  
  13830. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13831.  
  13832. # Shell to use when invoking shell scripts.
  13833. SHELL=$lt_SHELL
  13834.  
  13835. # Whether or not to build shared libraries.
  13836. build_libtool_libs=$enable_shared
  13837.  
  13838. # Whether or not to build static libraries.
  13839. build_old_libs=$enable_static
  13840.  
  13841. # Whether or not to add -lc for building shared libraries.
  13842. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  13843.  
  13844. # Whether or not to disallow shared libs when runtime libs are static
  13845. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  13846.  
  13847. # Whether or not to optimize for fast installation.
  13848. fast_install=$enable_fast_install
  13849.  
  13850. # The host system.
  13851. host_alias=$host_alias
  13852. host=$host
  13853.  
  13854. # An echo program that does not interpret backslashes.
  13855. echo=$lt_echo
  13856.  
  13857. # The archiver.
  13858. AR=$lt_AR
  13859. AR_FLAGS=$lt_AR_FLAGS
  13860.  
  13861. # A C compiler.
  13862. LTCC=$lt_LTCC
  13863.  
  13864. # A language-specific compiler.
  13865. CC=$lt_compiler_CXX
  13866.  
  13867. # Is the compiler the GNU C compiler?
  13868. with_gcc=$GCC_CXX
  13869.  
  13870. # An ERE matcher.
  13871. EGREP=$lt_EGREP
  13872.  
  13873. # The linker used to build libraries.
  13874. LD=$lt_LD_CXX
  13875.  
  13876. # Whether we need hard or soft links.
  13877. LN_S=$lt_LN_S
  13878.  
  13879. # A BSD-compatible nm program.
  13880. NM=$lt_NM
  13881.  
  13882. # A symbol stripping program
  13883. STRIP=$lt_STRIP
  13884.  
  13885. # Used to examine libraries when file_magic_cmd begins "file"
  13886. MAGIC_CMD=$MAGIC_CMD
  13887.  
  13888. # Used on cygwin: DLL creation program.
  13889. DLLTOOL="$DLLTOOL"
  13890.  
  13891. # Used on cygwin: object dumper.
  13892. OBJDUMP="$OBJDUMP"
  13893.  
  13894. # Used on cygwin: assembler.
  13895. AS="$AS"
  13896.  
  13897. # The name of the directory that contains temporary libtool files.
  13898. objdir=$objdir
  13899.  
  13900. # How to create reloadable object files.
  13901. reload_flag=$lt_reload_flag
  13902. reload_cmds=$lt_reload_cmds
  13903.  
  13904. # How to pass a linker flag through the compiler.
  13905. wl=$lt_lt_prog_compiler_wl_CXX
  13906.  
  13907. # Object file suffix (normally "o").
  13908. objext="$ac_objext"
  13909.  
  13910. # Old archive suffix (normally "a").
  13911. libext="$libext"
  13912.  
  13913. # Shared library suffix (normally ".so").
  13914. shrext_cmds='$shrext_cmds'
  13915.  
  13916. # Executable file suffix (normally "").
  13917. exeext="$exeext"
  13918.  
  13919. # Additional compiler flags for building library objects.
  13920. pic_flag=$lt_lt_prog_compiler_pic_CXX
  13921. pic_mode=$pic_mode
  13922.  
  13923. # What is the maximum length of a command?
  13924. max_cmd_len=$lt_cv_sys_max_cmd_len
  13925.  
  13926. # Does compiler simultaneously support -c and -o options?
  13927. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  13928.  
  13929. # Must we lock files when doing compilation ?
  13930. need_locks=$lt_need_locks
  13931.  
  13932. # Do we need the lib prefix for modules?
  13933. need_lib_prefix=$need_lib_prefix
  13934.  
  13935. # Do we need a version for libraries?
  13936. need_version=$need_version
  13937.  
  13938. # Whether dlopen is supported.
  13939. dlopen_support=$enable_dlopen
  13940.  
  13941. # Whether dlopen of programs is supported.
  13942. dlopen_self=$enable_dlopen_self
  13943.  
  13944. # Whether dlopen of statically linked programs is supported.
  13945. dlopen_self_static=$enable_dlopen_self_static
  13946.  
  13947. # Compiler flag to prevent dynamic linking.
  13948. link_static_flag=$lt_lt_prog_compiler_static_CXX
  13949.  
  13950. # Compiler flag to turn off builtin functions.
  13951. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  13952.  
  13953. # Compiler flag to allow reflexive dlopens.
  13954. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  13955.  
  13956. # Compiler flag to generate shared objects directly from archives.
  13957. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  13958.  
  13959. # Compiler flag to generate thread-safe objects.
  13960. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  13961.  
  13962. # Library versioning type.
  13963. version_type=$version_type
  13964.  
  13965. # Format of library name prefix.
  13966. libname_spec=$lt_libname_spec
  13967.  
  13968. # List of archive names.  First name is the real one, the rest are links.
  13969. # The last name is the one that the linker finds with -lNAME.
  13970. library_names_spec=$lt_library_names_spec
  13971.  
  13972. # The coded name of the library, if different from the real name.
  13973. soname_spec=$lt_soname_spec
  13974.  
  13975. # Commands used to build and install an old-style archive.
  13976. RANLIB=$lt_RANLIB
  13977. old_archive_cmds=$lt_old_archive_cmds_CXX
  13978. old_postinstall_cmds=$lt_old_postinstall_cmds
  13979. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13980.  
  13981. # Create an old-style archive from a shared archive.
  13982. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  13983.  
  13984. # Create a temporary old-style archive to link instead of a shared archive.
  13985. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  13986.  
  13987. # Commands used to build and install a shared archive.
  13988. archive_cmds=$lt_archive_cmds_CXX
  13989. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  13990. postinstall_cmds=$lt_postinstall_cmds
  13991. postuninstall_cmds=$lt_postuninstall_cmds
  13992.  
  13993. # Commands used to build a loadable module (assumed same as above if empty)
  13994. module_cmds=$lt_module_cmds_CXX
  13995. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  13996.  
  13997. # Commands to strip libraries.
  13998. old_striplib=$lt_old_striplib
  13999. striplib=$lt_striplib
  14000.  
  14001. # Dependencies to place before the objects being linked to create a
  14002. # shared library.
  14003. predep_objects=$lt_predep_objects_CXX
  14004.  
  14005. # Dependencies to place after the objects being linked to create a
  14006. # shared library.
  14007. postdep_objects=$lt_postdep_objects_CXX
  14008.  
  14009. # Dependencies to place before the objects being linked to create a
  14010. # shared library.
  14011. predeps=$lt_predeps_CXX
  14012.  
  14013. # Dependencies to place after the objects being linked to create a
  14014. # shared library.
  14015. postdeps=$lt_postdeps_CXX
  14016.  
  14017. # The library search path used internally by the compiler when linking
  14018. # a shared library.
  14019. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  14020.  
  14021. # Method to check whether dependent libraries are shared objects.
  14022. deplibs_check_method=$lt_deplibs_check_method
  14023.  
  14024. # Command to use when deplibs_check_method == file_magic.
  14025. file_magic_cmd=$lt_file_magic_cmd
  14026.  
  14027. # Flag that allows shared libraries with undefined symbols to be built.
  14028. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  14029.  
  14030. # Flag that forces no undefined symbols.
  14031. no_undefined_flag=$lt_no_undefined_flag_CXX
  14032.  
  14033. # Commands used to finish a libtool library installation in a directory.
  14034. finish_cmds=$lt_finish_cmds
  14035.  
  14036. # Same as above, but a single script fragment to be evaled but not shown.
  14037. finish_eval=$lt_finish_eval
  14038.  
  14039. # Take the output of nm and produce a listing of raw symbols and C names.
  14040. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14041.  
  14042. # Transform the output of nm in a proper C declaration
  14043. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14044.  
  14045. # Transform the output of nm in a C name address pair
  14046. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14047.  
  14048. # This is the shared library runtime path variable.
  14049. runpath_var=$runpath_var
  14050.  
  14051. # This is the shared library path variable.
  14052. shlibpath_var=$shlibpath_var
  14053.  
  14054. # Is shlibpath searched before the hard-coded library search path?
  14055. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14056.  
  14057. # How to hardcode a shared library path into an executable.
  14058. hardcode_action=$hardcode_action_CXX
  14059.  
  14060. # Whether we should hardcode library paths into libraries.
  14061. hardcode_into_libs=$hardcode_into_libs
  14062.  
  14063. # Flag to hardcode \$libdir into a binary during linking.
  14064. # This must work even if \$libdir does not exist.
  14065. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  14066.  
  14067. # If ld is used when linking, flag to hardcode \$libdir into
  14068. # a binary during linking. This must work even if \$libdir does
  14069. # not exist.
  14070. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  14071.  
  14072. # Whether we need a single -rpath flag with a separated argument.
  14073. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  14074.  
  14075. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  14076. # resulting binary.
  14077. hardcode_direct=$hardcode_direct_CXX
  14078.  
  14079. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  14080. # resulting binary.
  14081. hardcode_minus_L=$hardcode_minus_L_CXX
  14082.  
  14083. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  14084. # the resulting binary.
  14085. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  14086.  
  14087. # Set to yes if building a shared library automatically hardcodes DIR into the library
  14088. # and all subsequent libraries and executables linked against it.
  14089. hardcode_automatic=$hardcode_automatic_CXX
  14090.  
  14091. # Variables whose values should be saved in libtool wrapper scripts and
  14092. # restored at relink time.
  14093. variables_saved_for_relink="$variables_saved_for_relink"
  14094.  
  14095. # Whether libtool must link a program against all its dependency libraries.
  14096. link_all_deplibs=$link_all_deplibs_CXX
  14097.  
  14098. # Compile-time system search path for libraries
  14099. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14100.  
  14101. # Run-time system search path for libraries
  14102. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14103.  
  14104. # Fix the shell variable \$srcfile for the compiler.
  14105. fix_srcfile_path="$fix_srcfile_path_CXX"
  14106.  
  14107. # Set to yes if exported symbols are required.
  14108. always_export_symbols=$always_export_symbols_CXX
  14109.  
  14110. # The commands to list exported symbols.
  14111. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  14112.  
  14113. # The commands to extract the exported symbol list from a shared archive.
  14114. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14115.  
  14116. # Symbols that should not be listed in the preloaded symbols.
  14117. exclude_expsyms=$lt_exclude_expsyms_CXX
  14118.  
  14119. # Symbols that must always be exported.
  14120. include_expsyms=$lt_include_expsyms_CXX
  14121.  
  14122. # ### END LIBTOOL TAG CONFIG: $tagname
  14123.  
  14124. __EOF__
  14125.  
  14126.  
  14127. else
  14128.   # If there is no Makefile yet, we rely on a make rule to execute
  14129.   # `config.status --recheck' to rerun these tests and create the
  14130.   # libtool script then.
  14131.   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  14132.   if test -f "$ltmain_in"; then
  14133.     test -f Makefile && make "$ltmain"
  14134.   fi
  14135. fi
  14136.  
  14137.  
  14138. ac_ext=cc
  14139. ac_cpp='$CXXCPP $CPPFLAGS'
  14140. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14141. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14142. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14143.  
  14144. CC=$lt_save_CC
  14145. LDCXX=$LD
  14146. LD=$lt_save_LD
  14147. GCC=$lt_save_GCC
  14148. with_gnu_ldcxx=$with_gnu_ld
  14149. with_gnu_ld=$lt_save_with_gnu_ld
  14150. lt_cv_path_LDCXX=$lt_cv_path_LD
  14151. lt_cv_path_LD=$lt_save_path_LD
  14152. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  14153. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  14154.  
  14155.     else
  14156.       tagname=""
  14157.     fi
  14158.     ;;
  14159.  
  14160.       F77)
  14161.     if test -n "$F77" && test "X$F77" != "Xno"; then
  14162.  
  14163. ac_ext=f
  14164. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  14165. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14166. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  14167.  
  14168.  
  14169. archive_cmds_need_lc_F77=no
  14170. allow_undefined_flag_F77=
  14171. always_export_symbols_F77=no
  14172. archive_expsym_cmds_F77=
  14173. export_dynamic_flag_spec_F77=
  14174. hardcode_direct_F77=no
  14175. hardcode_libdir_flag_spec_F77=
  14176. hardcode_libdir_flag_spec_ld_F77=
  14177. hardcode_libdir_separator_F77=
  14178. hardcode_minus_L_F77=no
  14179. hardcode_automatic_F77=no
  14180. module_cmds_F77=
  14181. module_expsym_cmds_F77=
  14182. link_all_deplibs_F77=unknown
  14183. old_archive_cmds_F77=$old_archive_cmds
  14184. no_undefined_flag_F77=
  14185. whole_archive_flag_spec_F77=
  14186. enable_shared_with_static_runtimes_F77=no
  14187.  
  14188. # Source file extension for f77 test sources.
  14189. ac_ext=f
  14190.  
  14191. # Object file extension for compiled f77 test sources.
  14192. objext=o
  14193. objext_F77=$objext
  14194.  
  14195. # Code to be used in simple compile tests
  14196. lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
  14197.  
  14198. # Code to be used in simple link tests
  14199. lt_simple_link_test_code="      program t\n      end\n"
  14200.  
  14201. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  14202.  
  14203. # If no C compiler was specified, use CC.
  14204. LTCC=${LTCC-"$CC"}
  14205.  
  14206. # Allow CC to be a program name with arguments.
  14207. compiler=$CC
  14208.  
  14209.  
  14210. # Allow CC to be a program name with arguments.
  14211. lt_save_CC="$CC"
  14212. CC=${F77-"f77"}
  14213. compiler=$CC
  14214. compiler_F77=$CC
  14215. cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  14216.  
  14217. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  14218. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  14219. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  14220. echo "${ECHO_T}$can_build_shared" >&6
  14221.  
  14222. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  14223. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  14224. test "$can_build_shared" = "no" && enable_shared=no
  14225.  
  14226. # On AIX, shared libraries and static libraries use the same namespace, and
  14227. # are all built from PIC.
  14228. case "$host_os" in
  14229. aix3*)
  14230.   test "$enable_shared" = yes && enable_static=no
  14231.   if test -n "$RANLIB"; then
  14232.     archive_cmds="$archive_cmds~\$RANLIB \$lib"
  14233.     postinstall_cmds='$RANLIB $lib'
  14234.   fi
  14235.   ;;
  14236. aix4* | aix5*)
  14237.   test "$enable_shared" = yes && enable_static=no
  14238.   ;;
  14239. esac
  14240. echo "$as_me:$LINENO: result: $enable_shared" >&5
  14241. echo "${ECHO_T}$enable_shared" >&6
  14242.  
  14243. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  14244. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  14245. # Make sure either enable_shared or enable_static is yes.
  14246. test "$enable_shared" = yes || enable_static=yes
  14247. echo "$as_me:$LINENO: result: $enable_static" >&5
  14248. echo "${ECHO_T}$enable_static" >&6
  14249.  
  14250. test "$ld_shlibs_F77" = no && can_build_shared=no
  14251.  
  14252. GCC_F77="$G77"
  14253. LD_F77="$LD"
  14254.  
  14255. lt_prog_compiler_wl_F77=
  14256. lt_prog_compiler_pic_F77=
  14257. lt_prog_compiler_static_F77=
  14258.  
  14259. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  14260. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  14261.  
  14262.   if test "$GCC" = yes; then
  14263.     lt_prog_compiler_wl_F77='-Wl,'
  14264.     lt_prog_compiler_static_F77='-static'
  14265.  
  14266.     case $host_os in
  14267.       aix*)
  14268.       # All AIX code is PIC.
  14269.       if test "$host_cpu" = ia64; then
  14270.     # AIX 5 now supports IA64 processor
  14271.     lt_prog_compiler_static_F77='-Bstatic'
  14272.       fi
  14273.       ;;
  14274.  
  14275.     amigaos*)
  14276.       # FIXME: we need at least 68020 code to build shared libraries, but
  14277.       # adding the `-m68020' flag to GCC prevents building anything better,
  14278.       # like `-m68040'.
  14279.       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  14280.       ;;
  14281.  
  14282.     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14283.       # PIC is the default for these OSes.
  14284.       ;;
  14285.  
  14286.     mingw* | pw32* | os2*)
  14287.       # This hack is so that the source file can tell whether it is being
  14288.       # built for inclusion in a dll (and should export symbols for example).
  14289.       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  14290.       ;;
  14291.  
  14292.     darwin* | rhapsody*)
  14293.       # PIC is the default on this platform
  14294.       # Common symbols not allowed in MH_DYLIB files
  14295.       lt_prog_compiler_pic_F77='-fno-common'
  14296.       ;;
  14297.  
  14298.     msdosdjgpp*)
  14299.       # Just because we use GCC doesn't mean we suddenly get shared libraries
  14300.       # on systems that don't support them.
  14301.       lt_prog_compiler_can_build_shared_F77=no
  14302.       enable_shared=no
  14303.       ;;
  14304.  
  14305.     sysv4*MP*)
  14306.       if test -d /usr/nec; then
  14307.     lt_prog_compiler_pic_F77=-Kconform_pic
  14308.       fi
  14309.       ;;
  14310.  
  14311.     hpux*)
  14312.       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14313.       # not for PA HP-UX.
  14314.       case "$host_cpu" in
  14315.       hppa*64*|ia64*)
  14316.     # +Z the default
  14317.     ;;
  14318.       *)
  14319.     lt_prog_compiler_pic_F77='-fPIC'
  14320.     ;;
  14321.       esac
  14322.       ;;
  14323.  
  14324.     *)
  14325.       lt_prog_compiler_pic_F77='-fPIC'
  14326.       ;;
  14327.     esac
  14328.   else
  14329.     # PORTME Check for flag to pass linker flags through the system compiler.
  14330.     case $host_os in
  14331.     aix*)
  14332.       lt_prog_compiler_wl_F77='-Wl,'
  14333.       if test "$host_cpu" = ia64; then
  14334.     # AIX 5 now supports IA64 processor
  14335.     lt_prog_compiler_static_F77='-Bstatic'
  14336.       else
  14337.     lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  14338.       fi
  14339.       ;;
  14340.  
  14341.     mingw* | pw32* | os2*)
  14342.       # This hack is so that the source file can tell whether it is being
  14343.       # built for inclusion in a dll (and should export symbols for example).
  14344.       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  14345.       ;;
  14346.  
  14347.     hpux9* | hpux10* | hpux11*)
  14348.       lt_prog_compiler_wl_F77='-Wl,'
  14349.       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14350.       # not for PA HP-UX.
  14351.       case "$host_cpu" in
  14352.       hppa*64*|ia64*)
  14353.     # +Z the default
  14354.     ;;
  14355.       *)
  14356.     lt_prog_compiler_pic_F77='+Z'
  14357.     ;;
  14358.       esac
  14359.       # Is there a better lt_prog_compiler_static that works with the bundled CC?
  14360.       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  14361.       ;;
  14362.  
  14363.     irix5* | irix6* | nonstopux*)
  14364.       lt_prog_compiler_wl_F77='-Wl,'
  14365.       # PIC (with -KPIC) is the default.
  14366.       lt_prog_compiler_static_F77='-non_shared'
  14367.       ;;
  14368.  
  14369.     newsos6)
  14370.       lt_prog_compiler_pic_F77='-KPIC'
  14371.       lt_prog_compiler_static_F77='-Bstatic'
  14372.       ;;
  14373.  
  14374.     linux*)
  14375.       case $CC in
  14376.       icc* | ecc*)
  14377.     lt_prog_compiler_wl_F77='-Wl,'
  14378.     lt_prog_compiler_pic_F77='-KPIC'
  14379.     lt_prog_compiler_static_F77='-static'
  14380.         ;;
  14381.       ccc*)
  14382.         lt_prog_compiler_wl_F77='-Wl,'
  14383.         # All Alpha code is PIC.
  14384.         lt_prog_compiler_static_F77='-non_shared'
  14385.         ;;
  14386.       esac
  14387.       ;;
  14388.  
  14389.     osf3* | osf4* | osf5*)
  14390.       lt_prog_compiler_wl_F77='-Wl,'
  14391.       # All OSF/1 code is PIC.
  14392.       lt_prog_compiler_static_F77='-non_shared'
  14393.       ;;
  14394.  
  14395.     sco3.2v5*)
  14396.       lt_prog_compiler_pic_F77='-Kpic'
  14397.       lt_prog_compiler_static_F77='-dn'
  14398.       ;;
  14399.  
  14400.     solaris*)
  14401.       lt_prog_compiler_wl_F77='-Wl,'
  14402.       lt_prog_compiler_pic_F77='-KPIC'
  14403.       lt_prog_compiler_static_F77='-Bstatic'
  14404.       ;;
  14405.  
  14406.     sunos4*)
  14407.       lt_prog_compiler_wl_F77='-Qoption ld '
  14408.       lt_prog_compiler_pic_F77='-PIC'
  14409.       lt_prog_compiler_static_F77='-Bstatic'
  14410.       ;;
  14411.  
  14412.     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  14413.       lt_prog_compiler_wl_F77='-Wl,'
  14414.       lt_prog_compiler_pic_F77='-KPIC'
  14415.       lt_prog_compiler_static_F77='-Bstatic'
  14416.       ;;
  14417.  
  14418.     sysv4*MP*)
  14419.       if test -d /usr/nec ;then
  14420.     lt_prog_compiler_pic_F77='-Kconform_pic'
  14421.     lt_prog_compiler_static_F77='-Bstatic'
  14422.       fi
  14423.       ;;
  14424.  
  14425.     uts4*)
  14426.       lt_prog_compiler_pic_F77='-pic'
  14427.       lt_prog_compiler_static_F77='-Bstatic'
  14428.       ;;
  14429.  
  14430.     *)
  14431.       lt_prog_compiler_can_build_shared_F77=no
  14432.       ;;
  14433.     esac
  14434.   fi
  14435.  
  14436. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  14437. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
  14438.  
  14439. #
  14440. # Check to make sure the PIC flag actually works.
  14441. #
  14442. if test -n "$lt_prog_compiler_pic_F77"; then
  14443.  
  14444. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  14445. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
  14446. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  14447.   echo $ECHO_N "(cached) $ECHO_C" >&6
  14448. else
  14449.   lt_prog_compiler_pic_works_F77=no
  14450.   ac_outfile=conftest.$ac_objext
  14451.    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14452.    lt_compiler_flag="$lt_prog_compiler_pic_F77"
  14453.    # Insert the option either (1) after the last *FLAGS variable, or
  14454.    # (2) before a word containing "conftest.", or (3) at the end.
  14455.    # Note that $ac_compile itself does not contain backslashes and begins
  14456.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  14457.    # The option is referenced via a variable to avoid confusing sed.
  14458.    lt_compile=`echo "$ac_compile" | $SED \
  14459.    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  14460.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14461.    -e 's:$: $lt_compiler_flag:'`
  14462.    (eval echo "\"\$as_me:14462: $lt_compile\"" >&5)
  14463.    (eval "$lt_compile" 2>conftest.err)
  14464.    ac_status=$?
  14465.    cat conftest.err >&5
  14466.    echo "$as_me:14466: \$? = $ac_status" >&5
  14467.    if (exit $ac_status) && test -s "$ac_outfile"; then
  14468.      # The compiler can only warn and ignore the option if not recognized
  14469.      # So say no if there are warnings
  14470.      if test ! -s conftest.err; then
  14471.        lt_prog_compiler_pic_works_F77=yes
  14472.      fi
  14473.    fi
  14474.    $rm conftest*
  14475.  
  14476. fi
  14477. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  14478. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
  14479.  
  14480. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  14481.     case $lt_prog_compiler_pic_F77 in
  14482.      "" | " "*) ;;
  14483.      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  14484.      esac
  14485. else
  14486.     lt_prog_compiler_pic_F77=
  14487.      lt_prog_compiler_can_build_shared_F77=no
  14488. fi
  14489.  
  14490. fi
  14491. case "$host_os" in
  14492.   # For platforms which do not support PIC, -DPIC is meaningless:
  14493.   *djgpp*)
  14494.     lt_prog_compiler_pic_F77=
  14495.     ;;
  14496.   *)
  14497.     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  14498.     ;;
  14499. esac
  14500.  
  14501. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  14502. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  14503. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  14504.   echo $ECHO_N "(cached) $ECHO_C" >&6
  14505. else
  14506.   lt_cv_prog_compiler_c_o_F77=no
  14507.    $rm -r conftest 2>/dev/null
  14508.    mkdir conftest
  14509.    cd conftest
  14510.    mkdir out
  14511.    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14512.  
  14513.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  14514.    # Insert the option either (1) after the last *FLAGS variable, or
  14515.    # (2) before a word containing "conftest.", or (3) at the end.
  14516.    # Note that $ac_compile itself does not contain backslashes and begins
  14517.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  14518.    lt_compile=`echo "$ac_compile" | $SED \
  14519.    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  14520.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14521.    -e 's:$: $lt_compiler_flag:'`
  14522.    (eval echo "\"\$as_me:14522: $lt_compile\"" >&5)
  14523.    (eval "$lt_compile" 2>out/conftest.err)
  14524.    ac_status=$?
  14525.    cat out/conftest.err >&5
  14526.    echo "$as_me:14526: \$? = $ac_status" >&5
  14527.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14528.    then
  14529.      # The compiler can only warn and ignore the option if not recognized
  14530.      # So say no if there are warnings
  14531.      if test ! -s out/conftest.err; then
  14532.        lt_cv_prog_compiler_c_o_F77=yes
  14533.      fi
  14534.    fi
  14535.    chmod u+w .
  14536.    $rm conftest*
  14537.    # SGI C++ compiler will create directory out/ii_files/ for
  14538.    # template instantiation
  14539.    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  14540.    $rm out/* && rmdir out
  14541.    cd ..
  14542.    rmdir conftest
  14543.    $rm conftest*
  14544.  
  14545. fi
  14546. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  14547. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
  14548.  
  14549.  
  14550. hard_links="nottested"
  14551. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  14552.   # do not overwrite the value of need_locks provided by the user
  14553.   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  14554. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  14555.   hard_links=yes
  14556.   $rm conftest*
  14557.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14558.   touch conftest.a
  14559.   ln conftest.a conftest.b 2>&5 || hard_links=no
  14560.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14561.   echo "$as_me:$LINENO: result: $hard_links" >&5
  14562. echo "${ECHO_T}$hard_links" >&6
  14563.   if test "$hard_links" = no; then
  14564.     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  14565. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  14566.     need_locks=warn
  14567.   fi
  14568. else
  14569.   need_locks=no
  14570. fi
  14571.  
  14572. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14573. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  14574.  
  14575.   runpath_var=
  14576.   allow_undefined_flag_F77=
  14577.   enable_shared_with_static_runtimes_F77=no
  14578.   archive_cmds_F77=
  14579.   archive_expsym_cmds_F77=
  14580.   old_archive_From_new_cmds_F77=
  14581.   old_archive_from_expsyms_cmds_F77=
  14582.   export_dynamic_flag_spec_F77=
  14583.   whole_archive_flag_spec_F77=
  14584.   thread_safe_flag_spec_F77=
  14585.   hardcode_libdir_flag_spec_F77=
  14586.   hardcode_libdir_flag_spec_ld_F77=
  14587.   hardcode_libdir_separator_F77=
  14588.   hardcode_direct_F77=no
  14589.   hardcode_minus_L_F77=no
  14590.   hardcode_shlibpath_var_F77=unsupported
  14591.   link_all_deplibs_F77=unknown
  14592.   hardcode_automatic_F77=no
  14593.   module_cmds_F77=
  14594.   module_expsym_cmds_F77=
  14595.   always_export_symbols_F77=no
  14596.   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14597.   # include_expsyms should be a list of space-separated symbols to be *always*
  14598.   # included in the symbol list
  14599.   include_expsyms_F77=
  14600.   # exclude_expsyms can be an extended regexp of symbols to exclude
  14601.   # it will be wrapped by ` (' and `)$', so one must not match beginning or
  14602.   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  14603.   # as well as any symbol that contains `d'.
  14604.   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  14605.   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  14606.   # platforms (ab)use it in PIC code, but their linkers get confused if
  14607.   # the symbol is explicitly referenced.  Since portable code cannot
  14608.   # rely on this symbol name, it's probably fine to never include it in
  14609.   # preloaded symbol tables.
  14610.   extract_expsyms_cmds=
  14611.  
  14612.   case $host_os in
  14613.   cygwin* | mingw* | pw32*)
  14614.     # FIXME: the MSVC++ port hasn't been tested in a loooong time
  14615.     # When not using gcc, we currently assume that we are using
  14616.     # Microsoft Visual C++.
  14617.     if test "$GCC" != yes; then
  14618.       with_gnu_ld=no
  14619.     fi
  14620.     ;;
  14621.   openbsd*)
  14622.     with_gnu_ld=no
  14623.     ;;
  14624.   esac
  14625.  
  14626.   ld_shlibs_F77=yes
  14627.   if test "$with_gnu_ld" = yes; then
  14628.     # If archive_cmds runs LD, not CC, wlarc should be empty
  14629.     wlarc='${wl}'
  14630.  
  14631.     # See if GNU ld supports shared libraries.
  14632.     case $host_os in
  14633.     aix3* | aix4* | aix5*)
  14634.       # On AIX/PPC, the GNU linker is very broken
  14635.       if test "$host_cpu" != ia64; then
  14636.     ld_shlibs_F77=no
  14637.     cat <<EOF 1>&2
  14638.  
  14639. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  14640. *** to be unable to reliably create shared libraries on AIX.
  14641. *** Therefore, libtool is disabling shared libraries support.  If you
  14642. *** really care for shared libraries, you may want to modify your PATH
  14643. *** so that a non-GNU linker is found, and then restart.
  14644.  
  14645. EOF
  14646.       fi
  14647.       ;;
  14648.  
  14649.     amigaos*)
  14650.       archive_cmds_F77='$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)'
  14651.       hardcode_libdir_flag_spec_F77='-L$libdir'
  14652.       hardcode_minus_L_F77=yes
  14653.  
  14654.       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  14655.       # that the semantics of dynamic libraries on AmigaOS, at least up
  14656.       # to version 4, is to share data among multiple programs linked
  14657.       # with the same dynamic library.  Since this doesn't match the
  14658.       # behavior of shared libraries on other platforms, we can't use
  14659.       # them.
  14660.       ld_shlibs_F77=no
  14661.       ;;
  14662.  
  14663.     beos*)
  14664.       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14665.     allow_undefined_flag_F77=unsupported
  14666.     # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  14667.     # support --undefined.  This deserves some investigation.  FIXME
  14668.     archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14669.       else
  14670.     ld_shlibs_F77=no
  14671.       fi
  14672.       ;;
  14673.  
  14674.     cygwin* | mingw* | pw32*)
  14675.       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  14676.       # as there is no search path for DLLs.
  14677.       hardcode_libdir_flag_spec_F77='-L$libdir'
  14678.       allow_undefined_flag_F77=unsupported
  14679.       always_export_symbols_F77=no
  14680.       enable_shared_with_static_runtimes_F77=yes
  14681.       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  14682.  
  14683.       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  14684.         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  14685.     # If the export-symbols file already is a .def file (1st line
  14686.     # is EXPORTS), use it as is; otherwise, prepend...
  14687.     archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  14688.       cp $export_symbols $output_objdir/$soname.def;
  14689.     else
  14690.       echo EXPORTS > $output_objdir/$soname.def;
  14691.       cat $export_symbols >> $output_objdir/$soname.def;
  14692.     fi~
  14693.     $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
  14694.       else
  14695.     ld_shlibs=no
  14696.       fi
  14697.       ;;
  14698.  
  14699.     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  14700.       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14701.     archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  14702.     wlarc=
  14703.       else
  14704.     archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14705.     archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14706.       fi
  14707.       ;;
  14708.  
  14709.     solaris* | sysv5*)
  14710.       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  14711.     ld_shlibs_F77=no
  14712.     cat <<EOF 1>&2
  14713.  
  14714. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  14715. *** create shared libraries on Solaris systems.  Therefore, libtool
  14716. *** is disabling shared libraries support.  We urge you to upgrade GNU
  14717. *** binutils to release 2.9.1 or newer.  Another option is to modify
  14718. *** your PATH or compiler configuration so that the native linker is
  14719. *** used, and then restart.
  14720.  
  14721. EOF
  14722.       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14723.     archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14724.     archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14725.       else
  14726.     ld_shlibs_F77=no
  14727.       fi
  14728.       ;;
  14729.  
  14730.     sunos4*)
  14731.       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14732.       wlarc=
  14733.       hardcode_direct_F77=yes
  14734.       hardcode_shlibpath_var_F77=no
  14735.       ;;
  14736.  
  14737.   linux*)
  14738.     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14739.         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14740.     archive_cmds_F77="$tmp_archive_cmds"
  14741.       supports_anon_versioning=no
  14742.       case `$LD -v 2>/dev/null` in
  14743.         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  14744.         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  14745.         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  14746.         *\ 2.11.*) ;; # other 2.11 versions
  14747.         *) supports_anon_versioning=yes ;;
  14748.       esac
  14749.       if test $supports_anon_versioning = yes; then
  14750.         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  14751. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  14752. $echo "local: *; };" >> $output_objdir/$libname.ver~
  14753.         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  14754.       else
  14755.         archive_expsym_cmds_F77="$tmp_archive_cmds"
  14756.       fi
  14757.       link_all_deplibs_F77=no
  14758.     else
  14759.       ld_shlibs_F77=no
  14760.     fi
  14761.     ;;
  14762.  
  14763.     *)
  14764.       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14765.     archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14766.     archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14767.       else
  14768.     ld_shlibs_F77=no
  14769.       fi
  14770.       ;;
  14771.     esac
  14772.  
  14773.     if test "$ld_shlibs_F77" = yes; then
  14774.       runpath_var=LD_RUN_PATH
  14775.       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  14776.       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  14777.       # ancient GNU ld didn't support --whole-archive et. al.
  14778.       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  14779.      whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  14780.       else
  14781.       whole_archive_flag_spec_F77=
  14782.       fi
  14783.     fi
  14784.   else
  14785.     # PORTME fill in a description of your system's linker (not GNU ld)
  14786.     case $host_os in
  14787.     aix3*)
  14788.       allow_undefined_flag_F77=unsupported
  14789.       always_export_symbols_F77=yes
  14790.       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  14791.       # Note: this linker hardcodes the directories in LIBPATH if there
  14792.       # are no directories specified by -L.
  14793.       hardcode_minus_L_F77=yes
  14794.       if test "$GCC" = yes && test -z "$link_static_flag"; then
  14795.     # Neither direct hardcoding nor static linking is supported with a
  14796.     # broken collect2.
  14797.     hardcode_direct_F77=unsupported
  14798.       fi
  14799.       ;;
  14800.  
  14801.     aix4* | aix5*)
  14802.       if test "$host_cpu" = ia64; then
  14803.     # On IA64, the linker does run time linking by default, so we don't
  14804.     # have to do anything special.
  14805.     aix_use_runtimelinking=no
  14806.     exp_sym_flag='-Bexport'
  14807.     no_entry_flag=""
  14808.       else
  14809.     # If we're using GNU nm, then we don't want the "-C" option.
  14810.     # -C means demangle to AIX nm, but means don't demangle with GNU nm
  14811.     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  14812.       export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  14813.     else
  14814.       export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  14815.     fi
  14816.     aix_use_runtimelinking=no
  14817.  
  14818.     # Test if we are trying to use run time linking or normal
  14819.     # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  14820.     # need to do runtime linking.
  14821.     case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  14822.       for ld_flag in $LDFLAGS; do
  14823.         if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  14824.           aix_use_runtimelinking=yes
  14825.           break
  14826.         fi
  14827.       done
  14828.     esac
  14829.  
  14830.     exp_sym_flag='-bexport'
  14831.     no_entry_flag='-bnoentry'
  14832.       fi
  14833.  
  14834.       # When large executables or shared objects are built, AIX ld can
  14835.       # have problems creating the table of contents.  If linking a library
  14836.       # or program results in "error TOC overflow" add -mminimal-toc to
  14837.       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  14838.       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  14839.  
  14840.       archive_cmds_F77=''
  14841.       hardcode_direct_F77=yes
  14842.       hardcode_libdir_separator_F77=':'
  14843.       link_all_deplibs_F77=yes
  14844.  
  14845.       if test "$GCC" = yes; then
  14846.     case $host_os in aix4.012|aix4.012.*)
  14847.     # We only want to do this on AIX 4.2 and lower, the check
  14848.     # below for broken collect2 doesn't work under 4.3+
  14849.       collect2name=`${CC} -print-prog-name=collect2`
  14850.       if test -f "$collect2name" && \
  14851.          strings "$collect2name" | grep resolve_lib_name >/dev/null
  14852.       then
  14853.         # We have reworked collect2
  14854.         hardcode_direct_F77=yes
  14855.       else
  14856.         # We have old collect2
  14857.         hardcode_direct_F77=unsupported
  14858.         # It fails to find uninstalled libraries when the uninstalled
  14859.         # path is not listed in the libpath.  Setting hardcode_minus_L
  14860.         # to unsupported forces relinking
  14861.         hardcode_minus_L_F77=yes
  14862.         hardcode_libdir_flag_spec_F77='-L$libdir'
  14863.         hardcode_libdir_separator_F77=
  14864.       fi
  14865.     esac
  14866.     shared_flag='-shared'
  14867.       else
  14868.     # not using gcc
  14869.     if test "$host_cpu" = ia64; then
  14870.       # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  14871.       # chokes on -Wl,-G. The following line is correct:
  14872.       shared_flag='-G'
  14873.     else
  14874.       if test "$aix_use_runtimelinking" = yes; then
  14875.         shared_flag='${wl}-G'
  14876.       else
  14877.         shared_flag='${wl}-bM:SRE'
  14878.       fi
  14879.     fi
  14880.       fi
  14881.  
  14882.       # It seems that -bexpall does not export symbols beginning with
  14883.       # underscore (_), so it is better to generate a list of symbols to export.
  14884.       always_export_symbols_F77=yes
  14885.       if test "$aix_use_runtimelinking" = yes; then
  14886.     # Warning - without using the other runtime loading flags (-brtl),
  14887.     # -berok will link without error, but may produce a broken library.
  14888.     allow_undefined_flag_F77='-berok'
  14889.        # Determine the default libpath from the value encoded in an empty executable.
  14890.        cat >conftest.$ac_ext <<_ACEOF
  14891.       program main
  14892.  
  14893.       end
  14894. _ACEOF
  14895. rm -f conftest.$ac_objext conftest$ac_exeext
  14896. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14897.   (eval $ac_link) 2>conftest.er1
  14898.   ac_status=$?
  14899.   grep -v '^ *+' conftest.er1 >conftest.err
  14900.   rm -f conftest.er1
  14901.   cat conftest.err >&5
  14902.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14903.   (exit $ac_status); } &&
  14904.      { ac_try='test -z "$ac_f77_werror_flag"             || test ! -s conftest.err'
  14905.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14906.   (eval $ac_try) 2>&5
  14907.   ac_status=$?
  14908.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14909.   (exit $ac_status); }; } &&
  14910.      { ac_try='test -s conftest$ac_exeext'
  14911.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14912.   (eval $ac_try) 2>&5
  14913.   ac_status=$?
  14914.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14915.   (exit $ac_status); }; }; then
  14916.  
  14917. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
  14918. }'`
  14919. # Check for a 64-bit object if we didn't find anything.
  14920. if 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; }
  14921. }'`; fi
  14922. else
  14923.   echo "$as_me: failed program was:" >&5
  14924. sed 's/^/| /' conftest.$ac_ext >&5
  14925.  
  14926. fi
  14927. rm -f conftest.err conftest.$ac_objext \
  14928.       conftest$ac_exeext conftest.$ac_ext
  14929. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14930.  
  14931.        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  14932.     archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  14933.        else
  14934.     if test "$host_cpu" = ia64; then
  14935.       hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  14936.       allow_undefined_flag_F77="-z nodefs"
  14937.       archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  14938.     else
  14939.      # Determine the default libpath from the value encoded in an empty executable.
  14940.      cat >conftest.$ac_ext <<_ACEOF
  14941.       program main
  14942.  
  14943.       end
  14944. _ACEOF
  14945. rm -f conftest.$ac_objext conftest$ac_exeext
  14946. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14947.   (eval $ac_link) 2>conftest.er1
  14948.   ac_status=$?
  14949.   grep -v '^ *+' conftest.er1 >conftest.err
  14950.   rm -f conftest.er1
  14951.   cat conftest.err >&5
  14952.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14953.   (exit $ac_status); } &&
  14954.      { ac_try='test -z "$ac_f77_werror_flag"             || test ! -s conftest.err'
  14955.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14956.   (eval $ac_try) 2>&5
  14957.   ac_status=$?
  14958.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14959.   (exit $ac_status); }; } &&
  14960.      { ac_try='test -s conftest$ac_exeext'
  14961.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14962.   (eval $ac_try) 2>&5
  14963.   ac_status=$?
  14964.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14965.   (exit $ac_status); }; }; then
  14966.  
  14967. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
  14968. }'`
  14969. # Check for a 64-bit object if we didn't find anything.
  14970. if 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; }
  14971. }'`; fi
  14972. else
  14973.   echo "$as_me: failed program was:" >&5
  14974. sed 's/^/| /' conftest.$ac_ext >&5
  14975.  
  14976. fi
  14977. rm -f conftest.err conftest.$ac_objext \
  14978.       conftest$ac_exeext conftest.$ac_ext
  14979. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14980.  
  14981.      hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  14982.       # Warning - without using the other run time loading flags,
  14983.       # -berok will link without error, but may produce a broken library.
  14984.       no_undefined_flag_F77=' ${wl}-bernotok'
  14985.       allow_undefined_flag_F77=' ${wl}-berok'
  14986.       # -bexpall does not export symbols beginning with underscore (_)
  14987.       always_export_symbols_F77=yes
  14988.       # Exported symbols can be pulled into shared objects from archives
  14989.       whole_archive_flag_spec_F77=' '
  14990.       archive_cmds_need_lc_F77=yes
  14991.       # This is similar to how AIX traditionally builds it's shared libraries.
  14992.       archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  14993.     fi
  14994.       fi
  14995.       ;;
  14996.  
  14997.     amigaos*)
  14998.       archive_cmds_F77='$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)'
  14999.       hardcode_libdir_flag_spec_F77='-L$libdir'
  15000.       hardcode_minus_L_F77=yes
  15001.       # see comment about different semantics on the GNU ld section
  15002.       ld_shlibs_F77=no
  15003.       ;;
  15004.  
  15005.     bsdi4*)
  15006.       export_dynamic_flag_spec_F77=-rdynamic
  15007.       ;;
  15008.  
  15009.     cygwin* | mingw* | pw32*)
  15010.       # When not using gcc, we currently assume that we are using
  15011.       # Microsoft Visual C++.
  15012.       # hardcode_libdir_flag_spec is actually meaningless, as there is
  15013.       # no search path for DLLs.
  15014.       hardcode_libdir_flag_spec_F77=' '
  15015.       allow_undefined_flag_F77=unsupported
  15016.       # Tell ltmain to make .lib files, not .a files.
  15017.       libext=lib
  15018.       # Tell ltmain to make .dll files, not .so files.
  15019.       shrext_cmds=".dll"
  15020.       # FIXME: Setting linknames here is a bad hack.
  15021.       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  15022.       # The linker will automatically build a .lib file if we build a DLL.
  15023.       old_archive_From_new_cmds_F77='true'
  15024.       # FIXME: Should let the user specify the lib program.
  15025.       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  15026.       fix_srcfile_path='`cygpath -w "$srcfile"`'
  15027.       enable_shared_with_static_runtimes_F77=yes
  15028.       ;;
  15029.  
  15030.     darwin* | rhapsody*)
  15031.     if test "$GXX" = yes ; then
  15032.       archive_cmds_need_lc_F77=no
  15033.       case "$host_os" in
  15034.       rhapsody* | darwin1.[012])
  15035.     allow_undefined_flag_F77='-undefined suppress'
  15036.     ;;
  15037.       *) # Darwin 1.3 on
  15038.       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  15039.           allow_undefined_flag_F77='-flat_namespace -undefined suppress'
  15040.       else
  15041.         case ${MACOSX_DEPLOYMENT_TARGET} in
  15042.           10.[012])
  15043.             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
  15044.             ;;
  15045.           10.*)
  15046.             allow_undefined_flag_F77='-undefined dynamic_lookup'
  15047.             ;;
  15048.         esac
  15049.       fi
  15050.     ;;
  15051.       esac
  15052.         lt_int_apple_cc_single_mod=no
  15053.         output_verbose_link_cmd='echo'
  15054.         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  15055.           lt_int_apple_cc_single_mod=yes
  15056.         fi
  15057.         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  15058.           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  15059.         else
  15060.         archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  15061.       fi
  15062.       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15063.       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  15064.         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  15065.           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15066.         else
  15067.           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15068.         fi
  15069.           module_expsym_cmds_F77='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}'
  15070.       hardcode_direct_F77=no
  15071.       hardcode_automatic_F77=yes
  15072.       hardcode_shlibpath_var_F77=unsupported
  15073.       whole_archive_flag_spec_F77='-all_load $convenience'
  15074.       link_all_deplibs_F77=yes
  15075.     else
  15076.       ld_shlibs_F77=no
  15077.     fi
  15078.       ;;
  15079.  
  15080.     dgux*)
  15081.       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15082.       hardcode_libdir_flag_spec_F77='-L$libdir'
  15083.       hardcode_shlibpath_var_F77=no
  15084.       ;;
  15085.  
  15086.     freebsd1*)
  15087.       ld_shlibs_F77=no
  15088.       ;;
  15089.  
  15090.     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  15091.     # support.  Future versions do this automatically, but an explicit c++rt0.o
  15092.     # does not break anything, and helps significantly (at the cost of a little
  15093.     # extra space).
  15094.     freebsd2.2*)
  15095.       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  15096.       hardcode_libdir_flag_spec_F77='-R$libdir'
  15097.       hardcode_direct_F77=yes
  15098.       hardcode_shlibpath_var_F77=no
  15099.       ;;
  15100.  
  15101.     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  15102.     freebsd2*)
  15103.       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15104.       hardcode_direct_F77=yes
  15105.       hardcode_minus_L_F77=yes
  15106.       hardcode_shlibpath_var_F77=no
  15107.       ;;
  15108.  
  15109.     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  15110.     freebsd* | kfreebsd*-gnu)
  15111.       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  15112.       hardcode_libdir_flag_spec_F77='-R$libdir'
  15113.       hardcode_direct_F77=yes
  15114.       hardcode_shlibpath_var_F77=no
  15115.       ;;
  15116.  
  15117.     hpux9*)
  15118.       if test "$GCC" = yes; then
  15119.     archive_cmds_F77='$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'
  15120.       else
  15121.     archive_cmds_F77='$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'
  15122.       fi
  15123.       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  15124.       hardcode_libdir_separator_F77=:
  15125.       hardcode_direct_F77=yes
  15126.  
  15127.       # hardcode_minus_L: Not really in the search PATH,
  15128.       # but as the default location of the library.
  15129.       hardcode_minus_L_F77=yes
  15130.       export_dynamic_flag_spec_F77='${wl}-E'
  15131.       ;;
  15132.  
  15133.     hpux10* | hpux11*)
  15134.       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15135.     case "$host_cpu" in
  15136.     hppa*64*|ia64*)
  15137.       archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15138.       ;;
  15139.     *)
  15140.       archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15141.       ;;
  15142.     esac
  15143.       else
  15144.     case "$host_cpu" in
  15145.     hppa*64*|ia64*)
  15146.       archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  15147.       ;;
  15148.     *)
  15149.       archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  15150.       ;;
  15151.     esac
  15152.       fi
  15153.       if test "$with_gnu_ld" = no; then
  15154.     case "$host_cpu" in
  15155.     hppa*64*)
  15156.       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  15157.       hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  15158.       hardcode_libdir_separator_F77=:
  15159.       hardcode_direct_F77=no
  15160.       hardcode_shlibpath_var_F77=no
  15161.       ;;
  15162.     ia64*)
  15163.       hardcode_libdir_flag_spec_F77='-L$libdir'
  15164.       hardcode_direct_F77=no
  15165.       hardcode_shlibpath_var_F77=no
  15166.  
  15167.       # hardcode_minus_L: Not really in the search PATH,
  15168.       # but as the default location of the library.
  15169.       hardcode_minus_L_F77=yes
  15170.       ;;
  15171.     *)
  15172.       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  15173.       hardcode_libdir_separator_F77=:
  15174.       hardcode_direct_F77=yes
  15175.       export_dynamic_flag_spec_F77='${wl}-E'
  15176.  
  15177.       # hardcode_minus_L: Not really in the search PATH,
  15178.       # but as the default location of the library.
  15179.       hardcode_minus_L_F77=yes
  15180.       ;;
  15181.     esac
  15182.       fi
  15183.       ;;
  15184.  
  15185.     irix5* | irix6* | nonstopux*)
  15186.       if test "$GCC" = yes; then
  15187.     archive_cmds_F77='$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'
  15188.       else
  15189.     archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  15190.     hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  15191.       fi
  15192.       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  15193.       hardcode_libdir_separator_F77=:
  15194.       link_all_deplibs_F77=yes
  15195.       ;;
  15196.  
  15197.     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  15198.       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15199.     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
  15200.       else
  15201.     archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
  15202.       fi
  15203.       hardcode_libdir_flag_spec_F77='-R$libdir'
  15204.       hardcode_direct_F77=yes
  15205.       hardcode_shlibpath_var_F77=no
  15206.       ;;
  15207.  
  15208.     newsos6)
  15209.       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15210.       hardcode_direct_F77=yes
  15211.       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  15212.       hardcode_libdir_separator_F77=:
  15213.       hardcode_shlibpath_var_F77=no
  15214.       ;;
  15215.  
  15216.     openbsd*)
  15217.       hardcode_direct_F77=yes
  15218.       hardcode_shlibpath_var_F77=no
  15219.       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15220.     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15221.     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  15222.     export_dynamic_flag_spec_F77='${wl}-E'
  15223.       else
  15224.        case $host_os in
  15225.      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  15226.        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15227.        hardcode_libdir_flag_spec_F77='-R$libdir'
  15228.        ;;
  15229.      *)
  15230.        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15231.        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  15232.        ;;
  15233.        esac
  15234.       fi
  15235.       ;;
  15236.  
  15237.     os2*)
  15238.       hardcode_libdir_flag_spec_F77='-L$libdir'
  15239.       hardcode_minus_L_F77=yes
  15240.       allow_undefined_flag_F77=unsupported
  15241.       archive_cmds_F77='$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'
  15242.       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  15243.       ;;
  15244.  
  15245.     osf3*)
  15246.       if test "$GCC" = yes; then
  15247.     allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  15248.     archive_cmds_F77='$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'
  15249.       else
  15250.     allow_undefined_flag_F77=' -expect_unresolved \*'
  15251.     archive_cmds_F77='$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'
  15252.       fi
  15253.       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  15254.       hardcode_libdir_separator_F77=:
  15255.       ;;
  15256.  
  15257.     osf4* | osf5*)    # as osf3* with the addition of -msym flag
  15258.       if test "$GCC" = yes; then
  15259.     allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  15260.     archive_cmds_F77='$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'
  15261.     hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  15262.       else
  15263.     allow_undefined_flag_F77=' -expect_unresolved \*'
  15264.     archive_cmds_F77='$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'
  15265.     archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  15266.     $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  15267.  
  15268.     # Both c and cxx compiler support -rpath directly
  15269.     hardcode_libdir_flag_spec_F77='-rpath $libdir'
  15270.       fi
  15271.       hardcode_libdir_separator_F77=:
  15272.       ;;
  15273.  
  15274.     sco3.2v5*)
  15275.       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15276.       hardcode_shlibpath_var_F77=no
  15277.       export_dynamic_flag_spec_F77='${wl}-Bexport'
  15278.       runpath_var=LD_RUN_PATH
  15279.       hardcode_runpath_var=yes
  15280.       ;;
  15281.  
  15282.     solaris*)
  15283.       no_undefined_flag_F77=' -z text'
  15284.       if test "$GCC" = yes; then
  15285.     archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15286.     archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15287.       $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  15288.       else
  15289.     archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15290.     archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15291.       $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  15292.       fi
  15293.       hardcode_libdir_flag_spec_F77='-R$libdir'
  15294.       hardcode_shlibpath_var_F77=no
  15295.       case $host_os in
  15296.       solaris2.[0-5] | solaris2.[0-5].*) ;;
  15297.       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  15298.     whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  15299.       esac
  15300.       link_all_deplibs_F77=yes
  15301.       ;;
  15302.  
  15303.     sunos4*)
  15304.       if test "x$host_vendor" = xsequent; then
  15305.     # Use $CC to link under sequent, because it throws in some extra .o
  15306.     # files that make .init and .fini sections work.
  15307.     archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  15308.       else
  15309.     archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  15310.       fi
  15311.       hardcode_libdir_flag_spec_F77='-L$libdir'
  15312.       hardcode_direct_F77=yes
  15313.       hardcode_minus_L_F77=yes
  15314.       hardcode_shlibpath_var_F77=no
  15315.       ;;
  15316.  
  15317.     sysv4)
  15318.       case $host_vendor in
  15319.     sni)
  15320.       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15321.       hardcode_direct_F77=yes # is this really true???
  15322.     ;;
  15323.     siemens)
  15324.       ## LD is ld it makes a PLAMLIB
  15325.       ## CC just makes a GrossModule.
  15326.       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15327.       reload_cmds_F77='$CC -r -o $output$reload_objs'
  15328.       hardcode_direct_F77=no
  15329.         ;;
  15330.     motorola)
  15331.       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15332.       hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  15333.     ;;
  15334.       esac
  15335.       runpath_var='LD_RUN_PATH'
  15336.       hardcode_shlibpath_var_F77=no
  15337.       ;;
  15338.  
  15339.     sysv4.3*)
  15340.       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15341.       hardcode_shlibpath_var_F77=no
  15342.       export_dynamic_flag_spec_F77='-Bexport'
  15343.       ;;
  15344.  
  15345.     sysv4*MP*)
  15346.       if test -d /usr/nec; then
  15347.     archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15348.     hardcode_shlibpath_var_F77=no
  15349.     runpath_var=LD_RUN_PATH
  15350.     hardcode_runpath_var=yes
  15351.     ld_shlibs_F77=yes
  15352.       fi
  15353.       ;;
  15354.  
  15355.     sysv4.2uw2*)
  15356.       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15357.       hardcode_direct_F77=yes
  15358.       hardcode_minus_L_F77=no
  15359.       hardcode_shlibpath_var_F77=no
  15360.       hardcode_runpath_var=yes
  15361.       runpath_var=LD_RUN_PATH
  15362.       ;;
  15363.  
  15364.    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
  15365.       no_undefined_flag_F77='${wl}-z ${wl}text'
  15366.       if test "$GCC" = yes; then
  15367.     archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15368.       else
  15369.     archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15370.       fi
  15371.       runpath_var='LD_RUN_PATH'
  15372.       hardcode_shlibpath_var_F77=no
  15373.       ;;
  15374.  
  15375.     sysv5*)
  15376.       no_undefined_flag_F77=' -z text'
  15377.       # $CC -shared without GNU ld will not create a library from C++
  15378.       # object files and a static libstdc++, better avoid it by now
  15379.       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15380.       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15381.           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  15382.       hardcode_libdir_flag_spec_F77=
  15383.       hardcode_shlibpath_var_F77=no
  15384.       runpath_var='LD_RUN_PATH'
  15385.       ;;
  15386.  
  15387.     uts4*)
  15388.       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15389.       hardcode_libdir_flag_spec_F77='-L$libdir'
  15390.       hardcode_shlibpath_var_F77=no
  15391.       ;;
  15392.  
  15393.     *)
  15394.       ld_shlibs_F77=no
  15395.       ;;
  15396.     esac
  15397.   fi
  15398.  
  15399. echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  15400. echo "${ECHO_T}$ld_shlibs_F77" >&6
  15401. test "$ld_shlibs_F77" = no && can_build_shared=no
  15402.  
  15403. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15404. if test "$GCC" = yes; then
  15405.   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15406. fi
  15407.  
  15408. #
  15409. # Do we need to explicitly link libc?
  15410. #
  15411. case "x$archive_cmds_need_lc_F77" in
  15412. x|xyes)
  15413.   # Assume -lc should be added
  15414.   archive_cmds_need_lc_F77=yes
  15415.  
  15416.   if test "$enable_shared" = yes && test "$GCC" = yes; then
  15417.     case $archive_cmds_F77 in
  15418.     *'~'*)
  15419.       # FIXME: we may have to deal with multi-command sequences.
  15420.       ;;
  15421.     '$CC '*)
  15422.       # Test whether the compiler implicitly links with -lc since on some
  15423.       # systems, -lgcc has to come before -lc. If gcc already passes -lc
  15424.       # to ld, don't add -lc before -lgcc.
  15425.       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  15426. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  15427.       $rm conftest*
  15428.       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15429.  
  15430.       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15431.   (eval $ac_compile) 2>&5
  15432.   ac_status=$?
  15433.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15434.   (exit $ac_status); } 2>conftest.err; then
  15435.         soname=conftest
  15436.         lib=conftest
  15437.         libobjs=conftest.$ac_objext
  15438.         deplibs=
  15439.         wl=$lt_prog_compiler_wl_F77
  15440.         compiler_flags=-v
  15441.         linker_flags=-v
  15442.         verstring=
  15443.         output_objdir=.
  15444.         libname=conftest
  15445.         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  15446.         allow_undefined_flag_F77=
  15447.         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  15448.   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  15449.   ac_status=$?
  15450.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15451.   (exit $ac_status); }
  15452.         then
  15453.       archive_cmds_need_lc_F77=no
  15454.         else
  15455.       archive_cmds_need_lc_F77=yes
  15456.         fi
  15457.         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  15458.       else
  15459.         cat conftest.err 1>&5
  15460.       fi
  15461.       $rm conftest*
  15462.       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  15463. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
  15464.       ;;
  15465.     esac
  15466.   fi
  15467.   ;;
  15468. esac
  15469.  
  15470. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  15471. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  15472. library_names_spec=
  15473. libname_spec='lib$name'
  15474. soname_spec=
  15475. shrext_cmds=".so"
  15476. postinstall_cmds=
  15477. postuninstall_cmds=
  15478. finish_cmds=
  15479. finish_eval=
  15480. shlibpath_var=
  15481. shlibpath_overrides_runpath=unknown
  15482. version_type=none
  15483. dynamic_linker="$host_os ld.so"
  15484. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  15485. if test "$GCC" = yes; then
  15486.   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15487.   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  15488.     # if the path contains ";" then we assume it to be the separator
  15489.     # otherwise default to the standard path separator (i.e. ":") - it is
  15490.     # assumed that no part of a normal pathname contains ";" but that should
  15491.     # okay in the real world where ";" in dirpaths is itself problematic.
  15492.     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15493.   else
  15494.     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  15495.   fi
  15496. else
  15497.   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15498. fi
  15499. need_lib_prefix=unknown
  15500. hardcode_into_libs=no
  15501.  
  15502. # when you set need_version to no, make sure it does not cause -set_version
  15503. # flags to be left without arguments
  15504. need_version=unknown
  15505.  
  15506. case $host_os in
  15507. aix3*)
  15508.   version_type=linux
  15509.   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  15510.   shlibpath_var=LIBPATH
  15511.  
  15512.   # AIX 3 has no versioning support, so we append a major version to the name.
  15513.   soname_spec='${libname}${release}${shared_ext}$major'
  15514.   ;;
  15515.  
  15516. aix4* | aix5*)
  15517.   version_type=linux
  15518.   need_lib_prefix=no
  15519.   need_version=no
  15520.   hardcode_into_libs=yes
  15521.   if test "$host_cpu" = ia64; then
  15522.     # AIX 5 supports IA64
  15523.     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  15524.     shlibpath_var=LD_LIBRARY_PATH
  15525.   else
  15526.     # With GCC up to 2.95.x, collect2 would create an import file
  15527.     # for dependence libraries.  The import file would start with
  15528.     # the line `#! .'.  This would cause the generated library to
  15529.     # depend on `.', always an invalid library.  This was fixed in
  15530.     # development snapshots of GCC prior to 3.0.
  15531.     case $host_os in
  15532.       aix4 | aix4.[01] | aix4.[01].*)
  15533.       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  15534.        echo ' yes '
  15535.        echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  15536.     :
  15537.       else
  15538.     can_build_shared=no
  15539.       fi
  15540.       ;;
  15541.     esac
  15542.     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  15543.     # soname into executable. Probably we can add versioning support to
  15544.     # collect2, so additional links can be useful in future.
  15545.     if test "$aix_use_runtimelinking" = yes; then
  15546.       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  15547.       # instead of lib<name>.a to let people know that these are not
  15548.       # typical AIX shared libraries.
  15549.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15550.     else
  15551.       # We preserve .a as extension for shared libraries through AIX4.2
  15552.       # and later when we are not doing run time linking.
  15553.       library_names_spec='${libname}${release}.a $libname.a'
  15554.       soname_spec='${libname}${release}${shared_ext}$major'
  15555.     fi
  15556.     shlibpath_var=LIBPATH
  15557.   fi
  15558.   ;;
  15559.  
  15560. amigaos*)
  15561.   library_names_spec='$libname.ixlibrary $libname.a'
  15562.   # Create ${libname}_ixlibrary.a entries in /sys/libs.
  15563.   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'
  15564.   ;;
  15565.  
  15566. beos*)
  15567.   library_names_spec='${libname}${shared_ext}'
  15568.   dynamic_linker="$host_os ld.so"
  15569.   shlibpath_var=LIBRARY_PATH
  15570.   ;;
  15571.  
  15572. bsdi4*)
  15573.   version_type=linux
  15574.   need_version=no
  15575.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15576.   soname_spec='${libname}${release}${shared_ext}$major'
  15577.   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  15578.   shlibpath_var=LD_LIBRARY_PATH
  15579.   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  15580.   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  15581.   # the default ld.so.conf also contains /usr/contrib/lib and
  15582.   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  15583.   # libtool to hard-code these into programs
  15584.   ;;
  15585.  
  15586. cygwin* | mingw* | pw32*)
  15587.   version_type=windows
  15588.   shrext_cmds=".dll"
  15589.   need_version=no
  15590.   need_lib_prefix=no
  15591.  
  15592.   case $GCC,$host_os in
  15593.   yes,cygwin* | yes,mingw* | yes,pw32*)
  15594.     library_names_spec='$libname.dll.a'
  15595.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15596.     postinstall_cmds='base_file=`basename \${file}`~
  15597.       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  15598.       dldir=$destdir/`dirname \$dlpath`~
  15599.       test -d \$dldir || mkdir -p \$dldir~
  15600.       $install_prog $dir/$dlname \$dldir/$dlname'
  15601.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15602.       dlpath=$dir/\$dldll~
  15603.        $rm \$dlpath'
  15604.     shlibpath_overrides_runpath=yes
  15605.  
  15606.     case $host_os in
  15607.     cygwin*)
  15608.       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  15609.       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15610.       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  15611.       ;;
  15612.     mingw*)
  15613.       # MinGW DLLs use traditional 'lib' prefix
  15614.       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15615.       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15616.       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  15617.         # It is most probably a Windows format PATH printed by
  15618.         # mingw gcc, but we are running on Cygwin. Gcc prints its search
  15619.         # path with ; separators, and with drive letters. We can handle the
  15620.         # drive letters (cygwin fileutils understands them), so leave them,
  15621.         # especially as we might pass files found there to a mingw objdump,
  15622.         # which wouldn't understand a cygwinified path. Ahh.
  15623.         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15624.       else
  15625.         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  15626.       fi
  15627.       ;;
  15628.     pw32*)
  15629.       # pw32 DLLs use 'pw' prefix rather than 'lib'
  15630.       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  15631.       ;;
  15632.     esac
  15633.     ;;
  15634.  
  15635.   *)
  15636.     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  15637.     ;;
  15638.   esac
  15639.   dynamic_linker='Win32 ld.exe'
  15640.   # FIXME: first we should search . and the directory the executable is in
  15641.   shlibpath_var=PATH
  15642.   ;;
  15643.  
  15644. darwin* | rhapsody*)
  15645.   dynamic_linker="$host_os dyld"
  15646.   version_type=darwin
  15647.   need_lib_prefix=no
  15648.   need_version=no
  15649.   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  15650.   soname_spec='${libname}${release}${major}$shared_ext'
  15651.   shlibpath_overrides_runpath=yes
  15652.   shlibpath_var=DYLD_LIBRARY_PATH
  15653.   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  15654.   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  15655.   if test "$GCC" = yes; then
  15656.     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"`
  15657.   else
  15658.     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  15659.   fi
  15660.   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  15661.   ;;
  15662.  
  15663. dgux*)
  15664.   version_type=linux
  15665.   need_lib_prefix=no
  15666.   need_version=no
  15667.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  15668.   soname_spec='${libname}${release}${shared_ext}$major'
  15669.   shlibpath_var=LD_LIBRARY_PATH
  15670.   ;;
  15671.  
  15672. freebsd1*)
  15673.   dynamic_linker=no
  15674.   ;;
  15675.  
  15676. kfreebsd*-gnu)
  15677.   version_type=linux
  15678.   need_lib_prefix=no
  15679.   need_version=no
  15680.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15681.   soname_spec='${libname}${release}${shared_ext}$major'
  15682.   shlibpath_var=LD_LIBRARY_PATH
  15683.   shlibpath_overrides_runpath=no
  15684.   hardcode_into_libs=yes
  15685.   dynamic_linker='GNU ld.so'
  15686.   ;;
  15687.  
  15688. freebsd*)
  15689.   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  15690.   version_type=freebsd-$objformat
  15691.   case $version_type in
  15692.     freebsd-elf*)
  15693.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15694.       need_version=no
  15695.       need_lib_prefix=no
  15696.       ;;
  15697.     freebsd-*)
  15698.       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  15699.       need_version=yes
  15700.       ;;
  15701.   esac
  15702.   shlibpath_var=LD_LIBRARY_PATH
  15703.   case $host_os in
  15704.   freebsd2*)
  15705.     shlibpath_overrides_runpath=yes
  15706.     ;;
  15707.   freebsd3.01* | freebsdelf3.01*)
  15708.     shlibpath_overrides_runpath=yes
  15709.     hardcode_into_libs=yes
  15710.     ;;
  15711.   *) # from 3.2 on
  15712.     shlibpath_overrides_runpath=no
  15713.     hardcode_into_libs=yes
  15714.     ;;
  15715.   esac
  15716.   ;;
  15717.  
  15718. gnu*)
  15719.   version_type=linux
  15720.   need_lib_prefix=no
  15721.   need_version=no
  15722.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  15723.   soname_spec='${libname}${release}${shared_ext}$major'
  15724.   shlibpath_var=LD_LIBRARY_PATH
  15725.   hardcode_into_libs=yes
  15726.   ;;
  15727.  
  15728. hpux9* | hpux10* | hpux11*)
  15729.   # Give a soname corresponding to the major version so that dld.sl refuses to
  15730.   # link against other versions.
  15731.   version_type=sunos
  15732.   need_lib_prefix=no
  15733.   need_version=no
  15734.   case "$host_cpu" in
  15735.   ia64*)
  15736.     shrext_cmds='.so'
  15737.     hardcode_into_libs=yes
  15738.     dynamic_linker="$host_os dld.so"
  15739.     shlibpath_var=LD_LIBRARY_PATH
  15740.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15741.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15742.     soname_spec='${libname}${release}${shared_ext}$major'
  15743.     if test "X$HPUX_IA64_MODE" = X32; then
  15744.       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15745.     else
  15746.       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15747.     fi
  15748.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15749.     ;;
  15750.    hppa*64*)
  15751.      shrext_cmds='.sl'
  15752.      hardcode_into_libs=yes
  15753.      dynamic_linker="$host_os dld.sl"
  15754.      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  15755.      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15756.      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15757.      soname_spec='${libname}${release}${shared_ext}$major'
  15758.      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15759.      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15760.      ;;
  15761.    *)
  15762.     shrext_cmds='.sl'
  15763.     dynamic_linker="$host_os dld.sl"
  15764.     shlibpath_var=SHLIB_PATH
  15765.     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15766.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15767.     soname_spec='${libname}${release}${shared_ext}$major'
  15768.     ;;
  15769.   esac
  15770.   # HP-UX runs *really* slowly unless shared libraries are mode 555.
  15771.   postinstall_cmds='chmod 555 $lib'
  15772.   ;;
  15773.  
  15774. irix5* | irix6* | nonstopux*)
  15775.   case $host_os in
  15776.     nonstopux*) version_type=nonstopux ;;
  15777.     *)
  15778.     if test "$lt_cv_prog_gnu_ld" = yes; then
  15779.         version_type=linux
  15780.     else
  15781.         version_type=irix
  15782.     fi ;;
  15783.   esac
  15784.   need_lib_prefix=no
  15785.   need_version=no
  15786.   soname_spec='${libname}${release}${shared_ext}$major'
  15787.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  15788.   case $host_os in
  15789.   irix5* | nonstopux*)
  15790.     libsuff= shlibsuff=
  15791.     ;;
  15792.   *)
  15793.     case $LD in # libtool.m4 will add one of these switches to LD
  15794.     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15795.       libsuff= shlibsuff= libmagic=32-bit;;
  15796.     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15797.       libsuff=32 shlibsuff=N32 libmagic=N32;;
  15798.     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15799.       libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15800.     *) libsuff= shlibsuff= libmagic=never-match;;
  15801.     esac
  15802.     ;;
  15803.   esac
  15804.   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15805.   shlibpath_overrides_runpath=no
  15806.   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  15807.   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15808.   hardcode_into_libs=yes
  15809.   ;;
  15810.  
  15811. # No shared lib support for Linux oldld, aout, or coff.
  15812. linux*oldld* | linux*aout* | linux*coff*)
  15813.   dynamic_linker=no
  15814.   ;;
  15815.  
  15816. # This must be Linux ELF.
  15817. linux*)
  15818.   version_type=linux
  15819.   need_lib_prefix=no
  15820.   need_version=no
  15821.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15822.   soname_spec='${libname}${release}${shared_ext}$major'
  15823.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15824.   shlibpath_var=LD_LIBRARY_PATH
  15825.   shlibpath_overrides_runpath=no
  15826.   # This implies no fast_install, which is unacceptable.
  15827.   # Some rework will be needed to allow for fast_install
  15828.   # before this can be enabled.
  15829.   hardcode_into_libs=yes
  15830.  
  15831.   # Append ld.so.conf contents to the search path
  15832.   if test -f /etc/ld.so.conf; then
  15833.     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
  15834.     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  15835.   fi
  15836.  
  15837.   # We used to test for /lib/ld.so.1 and disable shared libraries on
  15838.   # powerpc, because MkLinux only supported shared libraries with the
  15839.   # GNU dynamic linker.  Since this was broken with cross compilers,
  15840.   # most powerpc-linux boxes support dynamic linking these days and
  15841.   # people can always --disable-shared, the test was removed, and we
  15842.   # assume the GNU/Linux dynamic linker is in use.
  15843.   dynamic_linker='GNU/Linux ld.so'
  15844.   ;;
  15845.  
  15846. netbsdelf*-gnu)
  15847.   version_type=linux
  15848.   need_lib_prefix=no
  15849.   need_version=no
  15850.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15851.   soname_spec='${libname}${release}${shared_ext}$major'
  15852.   shlibpath_var=LD_LIBRARY_PATH
  15853.   shlibpath_overrides_runpath=no
  15854.   hardcode_into_libs=yes
  15855.   dynamic_linker='NetBSD ld.elf_so'
  15856.   ;;
  15857.  
  15858. knetbsd*-gnu)
  15859.   version_type=linux
  15860.   need_lib_prefix=no
  15861.   need_version=no
  15862.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15863.   soname_spec='${libname}${release}${shared_ext}$major'
  15864.   shlibpath_var=LD_LIBRARY_PATH
  15865.   shlibpath_overrides_runpath=no
  15866.   hardcode_into_libs=yes
  15867.   dynamic_linker='GNU ld.so'
  15868.   ;;
  15869.  
  15870. netbsd*)
  15871.   version_type=sunos
  15872.   need_lib_prefix=no
  15873.   need_version=no
  15874.   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15875.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15876.     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15877.     dynamic_linker='NetBSD (a.out) ld.so'
  15878.   else
  15879.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15880.     soname_spec='${libname}${release}${shared_ext}$major'
  15881.     dynamic_linker='NetBSD ld.elf_so'
  15882.   fi
  15883.   shlibpath_var=LD_LIBRARY_PATH
  15884.   shlibpath_overrides_runpath=yes
  15885.   hardcode_into_libs=yes
  15886.   ;;
  15887.  
  15888. newsos6)
  15889.   version_type=linux
  15890.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15891.   shlibpath_var=LD_LIBRARY_PATH
  15892.   shlibpath_overrides_runpath=yes
  15893.   ;;
  15894.  
  15895. nto-qnx*)
  15896.   version_type=linux
  15897.   need_lib_prefix=no
  15898.   need_version=no
  15899.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15900.   soname_spec='${libname}${release}${shared_ext}$major'
  15901.   shlibpath_var=LD_LIBRARY_PATH
  15902.   shlibpath_overrides_runpath=yes
  15903.   ;;
  15904.  
  15905. openbsd*)
  15906.   version_type=sunos
  15907.   need_lib_prefix=no
  15908.   need_version=yes
  15909.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15910.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15911.   shlibpath_var=LD_LIBRARY_PATH
  15912.   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15913.     case $host_os in
  15914.       openbsd2.[89] | openbsd2.[89].*)
  15915.     shlibpath_overrides_runpath=no
  15916.     ;;
  15917.       *)
  15918.     shlibpath_overrides_runpath=yes
  15919.     ;;
  15920.       esac
  15921.   else
  15922.     shlibpath_overrides_runpath=yes
  15923.   fi
  15924.   ;;
  15925.  
  15926. os2*)
  15927.   libname_spec='$name'
  15928.   shrext_cmds=".dll"
  15929.   need_lib_prefix=no
  15930.   library_names_spec='$libname${shared_ext} $libname.a'
  15931.   dynamic_linker='OS/2 ld.exe'
  15932.   shlibpath_var=LIBPATH
  15933.   ;;
  15934.  
  15935. osf3* | osf4* | osf5*)
  15936.   version_type=osf
  15937.   need_lib_prefix=no
  15938.   need_version=no
  15939.   soname_spec='${libname}${release}${shared_ext}$major'
  15940.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15941.   shlibpath_var=LD_LIBRARY_PATH
  15942.   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15943.   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  15944.   ;;
  15945.  
  15946. sco3.2v5*)
  15947.   version_type=osf
  15948.   soname_spec='${libname}${release}${shared_ext}$major'
  15949.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15950.   shlibpath_var=LD_LIBRARY_PATH
  15951.   ;;
  15952.  
  15953. solaris*)
  15954.   version_type=linux
  15955.   need_lib_prefix=no
  15956.   need_version=no
  15957.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15958.   soname_spec='${libname}${release}${shared_ext}$major'
  15959.   shlibpath_var=LD_LIBRARY_PATH
  15960.   shlibpath_overrides_runpath=yes
  15961.   hardcode_into_libs=yes
  15962.   # ldd complains unless libraries are executable
  15963.   postinstall_cmds='chmod +x $lib'
  15964.   ;;
  15965.  
  15966. sunos4*)
  15967.   version_type=sunos
  15968.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15969.   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15970.   shlibpath_var=LD_LIBRARY_PATH
  15971.   shlibpath_overrides_runpath=yes
  15972.   if test "$with_gnu_ld" = yes; then
  15973.     need_lib_prefix=no
  15974.   fi
  15975.   need_version=yes
  15976.   ;;
  15977.  
  15978. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  15979.   version_type=linux
  15980.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15981.   soname_spec='${libname}${release}${shared_ext}$major'
  15982.   shlibpath_var=LD_LIBRARY_PATH
  15983.   case $host_vendor in
  15984.     sni)
  15985.       shlibpath_overrides_runpath=no
  15986.       need_lib_prefix=no
  15987.       export_dynamic_flag_spec='${wl}-Blargedynsym'
  15988.       runpath_var=LD_RUN_PATH
  15989.       ;;
  15990.     siemens)
  15991.       need_lib_prefix=no
  15992.       ;;
  15993.     motorola)
  15994.       need_lib_prefix=no
  15995.       need_version=no
  15996.       shlibpath_overrides_runpath=no
  15997.       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15998.       ;;
  15999.   esac
  16000.   ;;
  16001.  
  16002. sysv4*MP*)
  16003.   if test -d /usr/nec ;then
  16004.     version_type=linux
  16005.     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  16006.     soname_spec='$libname${shared_ext}.$major'
  16007.     shlibpath_var=LD_LIBRARY_PATH
  16008.   fi
  16009.   ;;
  16010.  
  16011. uts4*)
  16012.   version_type=linux
  16013.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16014.   soname_spec='${libname}${release}${shared_ext}$major'
  16015.   shlibpath_var=LD_LIBRARY_PATH
  16016.   ;;
  16017.  
  16018. *)
  16019.   dynamic_linker=no
  16020.   ;;
  16021. esac
  16022. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  16023. echo "${ECHO_T}$dynamic_linker" >&6
  16024. test "$dynamic_linker" = no && can_build_shared=no
  16025.  
  16026. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  16027. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  16028. hardcode_action_F77=
  16029. if test -n "$hardcode_libdir_flag_spec_F77" || \
  16030.    test -n "$runpath_var F77" || \
  16031.    test "X$hardcode_automatic_F77"="Xyes" ; then
  16032.  
  16033.   # We can hardcode non-existant directories.
  16034.   if test "$hardcode_direct_F77" != no &&
  16035.      # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16036.      # have to relink, otherwise we might link with an installed library
  16037.      # when we should be linking with a yet-to-be-installed one
  16038.      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  16039.      test "$hardcode_minus_L_F77" != no; then
  16040.     # Linking always hardcodes the temporary library directory.
  16041.     hardcode_action_F77=relink
  16042.   else
  16043.     # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16044.     hardcode_action_F77=immediate
  16045.   fi
  16046. else
  16047.   # We cannot hardcode anything, or else we can only hardcode existing
  16048.   # directories.
  16049.   hardcode_action_F77=unsupported
  16050. fi
  16051. echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  16052. echo "${ECHO_T}$hardcode_action_F77" >&6
  16053.  
  16054. if test "$hardcode_action_F77" = relink; then
  16055.   # Fast installation is not supported
  16056.   enable_fast_install=no
  16057. elif test "$shlibpath_overrides_runpath" = yes ||
  16058.      test "$enable_shared" = no; then
  16059.   # Fast installation is not necessary
  16060.   enable_fast_install=needless
  16061. fi
  16062.  
  16063. striplib=
  16064. old_striplib=
  16065. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  16066. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  16067. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  16068.   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  16069.   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  16070.   echo "$as_me:$LINENO: result: yes" >&5
  16071. echo "${ECHO_T}yes" >&6
  16072. else
  16073. # FIXME - insert some real tests, host_os isn't really good enough
  16074.   case $host_os in
  16075.    darwin*)
  16076.        if test -n "$STRIP" ; then
  16077.          striplib="$STRIP -x"
  16078.          echo "$as_me:$LINENO: result: yes" >&5
  16079. echo "${ECHO_T}yes" >&6
  16080.        else
  16081.   echo "$as_me:$LINENO: result: no" >&5
  16082. echo "${ECHO_T}no" >&6
  16083. fi
  16084.        ;;
  16085.    *)
  16086.   echo "$as_me:$LINENO: result: no" >&5
  16087. echo "${ECHO_T}no" >&6
  16088.     ;;
  16089.   esac
  16090. fi
  16091.  
  16092.  
  16093.  
  16094. # The else clause should only fire when bootstrapping the
  16095. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16096. # with your package, and you will get complaints that there are
  16097. # no rules to generate ltmain.sh.
  16098. if test -f "$ltmain"; then
  16099.   # See if we are running on zsh, and set the options which allow our commands through
  16100.   # without removal of \ escapes.
  16101.   if test -n "${ZSH_VERSION+set}" ; then
  16102.     setopt NO_GLOB_SUBST
  16103.   fi
  16104.   # Now quote all the things that may contain metacharacters while being
  16105.   # careful not to overquote the AC_SUBSTed values.  We take copies of the
  16106.   # variables and quote the copies for generation of the libtool script.
  16107.   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  16108.     SED SHELL STRIP \
  16109.     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16110.     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16111.     deplibs_check_method reload_flag reload_cmds need_locks \
  16112.     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16113.     lt_cv_sys_global_symbol_to_c_name_address \
  16114.     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16115.     old_postinstall_cmds old_postuninstall_cmds \
  16116.     compiler_F77 \
  16117.     CC_F77 \
  16118.     LD_F77 \
  16119.     lt_prog_compiler_wl_F77 \
  16120.     lt_prog_compiler_pic_F77 \
  16121.     lt_prog_compiler_static_F77 \
  16122.     lt_prog_compiler_no_builtin_flag_F77 \
  16123.     export_dynamic_flag_spec_F77 \
  16124.     thread_safe_flag_spec_F77 \
  16125.     whole_archive_flag_spec_F77 \
  16126.     enable_shared_with_static_runtimes_F77 \
  16127.     old_archive_cmds_F77 \
  16128.     old_archive_from_new_cmds_F77 \
  16129.     predep_objects_F77 \
  16130.     postdep_objects_F77 \
  16131.     predeps_F77 \
  16132.     postdeps_F77 \
  16133.     compiler_lib_search_path_F77 \
  16134.     archive_cmds_F77 \
  16135.     archive_expsym_cmds_F77 \
  16136.     postinstall_cmds_F77 \
  16137.     postuninstall_cmds_F77 \
  16138.     old_archive_from_expsyms_cmds_F77 \
  16139.     allow_undefined_flag_F77 \
  16140.     no_undefined_flag_F77 \
  16141.     export_symbols_cmds_F77 \
  16142.     hardcode_libdir_flag_spec_F77 \
  16143.     hardcode_libdir_flag_spec_ld_F77 \
  16144.     hardcode_libdir_separator_F77 \
  16145.     hardcode_automatic_F77 \
  16146.     module_cmds_F77 \
  16147.     module_expsym_cmds_F77 \
  16148.     lt_cv_prog_compiler_c_o_F77 \
  16149.     exclude_expsyms_F77 \
  16150.     include_expsyms_F77; do
  16151.  
  16152.     case $var in
  16153.     old_archive_cmds_F77 | \
  16154.     old_archive_from_new_cmds_F77 | \
  16155.     archive_cmds_F77 | \
  16156.     archive_expsym_cmds_F77 | \
  16157.     module_cmds_F77 | \
  16158.     module_expsym_cmds_F77 | \
  16159.     old_archive_from_expsyms_cmds_F77 | \
  16160.     export_symbols_cmds_F77 | \
  16161.     extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16162.     postinstall_cmds | postuninstall_cmds | \
  16163.     old_postinstall_cmds | old_postuninstall_cmds | \
  16164.     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16165.       # Double-quote double-evaled strings.
  16166.       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16167.       ;;
  16168.     *)
  16169.       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16170.       ;;
  16171.     esac
  16172.   done
  16173.  
  16174.   case $lt_echo in
  16175.   *'\$0 --fallback-echo"')
  16176.     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16177.     ;;
  16178.   esac
  16179.  
  16180. cfgfile="$ofile"
  16181.  
  16182.   cat <<__EOF__ >> "$cfgfile"
  16183. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16184.  
  16185. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16186.  
  16187. # Shell to use when invoking shell scripts.
  16188. SHELL=$lt_SHELL
  16189.  
  16190. # Whether or not to build shared libraries.
  16191. build_libtool_libs=$enable_shared
  16192.  
  16193. # Whether or not to build static libraries.
  16194. build_old_libs=$enable_static
  16195.  
  16196. # Whether or not to add -lc for building shared libraries.
  16197. build_libtool_need_lc=$archive_cmds_need_lc_F77
  16198.  
  16199. # Whether or not to disallow shared libs when runtime libs are static
  16200. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  16201.  
  16202. # Whether or not to optimize for fast installation.
  16203. fast_install=$enable_fast_install
  16204.  
  16205. # The host system.
  16206. host_alias=$host_alias
  16207. host=$host
  16208.  
  16209. # An echo program that does not interpret backslashes.
  16210. echo=$lt_echo
  16211.  
  16212. # The archiver.
  16213. AR=$lt_AR
  16214. AR_FLAGS=$lt_AR_FLAGS
  16215.  
  16216. # A C compiler.
  16217. LTCC=$lt_LTCC
  16218.  
  16219. # A language-specific compiler.
  16220. CC=$lt_compiler_F77
  16221.  
  16222. # Is the compiler the GNU C compiler?
  16223. with_gcc=$GCC_F77
  16224.  
  16225. # An ERE matcher.
  16226. EGREP=$lt_EGREP
  16227.  
  16228. # The linker used to build libraries.
  16229. LD=$lt_LD_F77
  16230.  
  16231. # Whether we need hard or soft links.
  16232. LN_S=$lt_LN_S
  16233.  
  16234. # A BSD-compatible nm program.
  16235. NM=$lt_NM
  16236.  
  16237. # A symbol stripping program
  16238. STRIP=$lt_STRIP
  16239.  
  16240. # Used to examine libraries when file_magic_cmd begins "file"
  16241. MAGIC_CMD=$MAGIC_CMD
  16242.  
  16243. # Used on cygwin: DLL creation program.
  16244. DLLTOOL="$DLLTOOL"
  16245.  
  16246. # Used on cygwin: object dumper.
  16247. OBJDUMP="$OBJDUMP"
  16248.  
  16249. # Used on cygwin: assembler.
  16250. AS="$AS"
  16251.  
  16252. # The name of the directory that contains temporary libtool files.
  16253. objdir=$objdir
  16254.  
  16255. # How to create reloadable object files.
  16256. reload_flag=$lt_reload_flag
  16257. reload_cmds=$lt_reload_cmds
  16258.  
  16259. # How to pass a linker flag through the compiler.
  16260. wl=$lt_lt_prog_compiler_wl_F77
  16261.  
  16262. # Object file suffix (normally "o").
  16263. objext="$ac_objext"
  16264.  
  16265. # Old archive suffix (normally "a").
  16266. libext="$libext"
  16267.  
  16268. # Shared library suffix (normally ".so").
  16269. shrext_cmds='$shrext_cmds'
  16270.  
  16271. # Executable file suffix (normally "").
  16272. exeext="$exeext"
  16273.  
  16274. # Additional compiler flags for building library objects.
  16275. pic_flag=$lt_lt_prog_compiler_pic_F77
  16276. pic_mode=$pic_mode
  16277.  
  16278. # What is the maximum length of a command?
  16279. max_cmd_len=$lt_cv_sys_max_cmd_len
  16280.  
  16281. # Does compiler simultaneously support -c and -o options?
  16282. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  16283.  
  16284. # Must we lock files when doing compilation ?
  16285. need_locks=$lt_need_locks
  16286.  
  16287. # Do we need the lib prefix for modules?
  16288. need_lib_prefix=$need_lib_prefix
  16289.  
  16290. # Do we need a version for libraries?
  16291. need_version=$need_version
  16292.  
  16293. # Whether dlopen is supported.
  16294. dlopen_support=$enable_dlopen
  16295.  
  16296. # Whether dlopen of programs is supported.
  16297. dlopen_self=$enable_dlopen_self
  16298.  
  16299. # Whether dlopen of statically linked programs is supported.
  16300. dlopen_self_static=$enable_dlopen_self_static
  16301.  
  16302. # Compiler flag to prevent dynamic linking.
  16303. link_static_flag=$lt_lt_prog_compiler_static_F77
  16304.  
  16305. # Compiler flag to turn off builtin functions.
  16306. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  16307.  
  16308. # Compiler flag to allow reflexive dlopens.
  16309. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  16310.  
  16311. # Compiler flag to generate shared objects directly from archives.
  16312. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  16313.  
  16314. # Compiler flag to generate thread-safe objects.
  16315. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  16316.  
  16317. # Library versioning type.
  16318. version_type=$version_type
  16319.  
  16320. # Format of library name prefix.
  16321. libname_spec=$lt_libname_spec
  16322.  
  16323. # List of archive names.  First name is the real one, the rest are links.
  16324. # The last name is the one that the linker finds with -lNAME.
  16325. library_names_spec=$lt_library_names_spec
  16326.  
  16327. # The coded name of the library, if different from the real name.
  16328. soname_spec=$lt_soname_spec
  16329.  
  16330. # Commands used to build and install an old-style archive.
  16331. RANLIB=$lt_RANLIB
  16332. old_archive_cmds=$lt_old_archive_cmds_F77
  16333. old_postinstall_cmds=$lt_old_postinstall_cmds
  16334. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16335.  
  16336. # Create an old-style archive from a shared archive.
  16337. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  16338.  
  16339. # Create a temporary old-style archive to link instead of a shared archive.
  16340. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  16341.  
  16342. # Commands used to build and install a shared archive.
  16343. archive_cmds=$lt_archive_cmds_F77
  16344. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  16345. postinstall_cmds=$lt_postinstall_cmds
  16346. postuninstall_cmds=$lt_postuninstall_cmds
  16347.  
  16348. # Commands used to build a loadable module (assumed same as above if empty)
  16349. module_cmds=$lt_module_cmds_F77
  16350. module_expsym_cmds=$lt_module_expsym_cmds_F77
  16351.  
  16352. # Commands to strip libraries.
  16353. old_striplib=$lt_old_striplib
  16354. striplib=$lt_striplib
  16355.  
  16356. # Dependencies to place before the objects being linked to create a
  16357. # shared library.
  16358. predep_objects=$lt_predep_objects_F77
  16359.  
  16360. # Dependencies to place after the objects being linked to create a
  16361. # shared library.
  16362. postdep_objects=$lt_postdep_objects_F77
  16363.  
  16364. # Dependencies to place before the objects being linked to create a
  16365. # shared library.
  16366. predeps=$lt_predeps_F77
  16367.  
  16368. # Dependencies to place after the objects being linked to create a
  16369. # shared library.
  16370. postdeps=$lt_postdeps_F77
  16371.  
  16372. # The library search path used internally by the compiler when linking
  16373. # a shared library.
  16374. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  16375.  
  16376. # Method to check whether dependent libraries are shared objects.
  16377. deplibs_check_method=$lt_deplibs_check_method
  16378.  
  16379. # Command to use when deplibs_check_method == file_magic.
  16380. file_magic_cmd=$lt_file_magic_cmd
  16381.  
  16382. # Flag that allows shared libraries with undefined symbols to be built.
  16383. allow_undefined_flag=$lt_allow_undefined_flag_F77
  16384.  
  16385. # Flag that forces no undefined symbols.
  16386. no_undefined_flag=$lt_no_undefined_flag_F77
  16387.  
  16388. # Commands used to finish a libtool library installation in a directory.
  16389. finish_cmds=$lt_finish_cmds
  16390.  
  16391. # Same as above, but a single script fragment to be evaled but not shown.
  16392. finish_eval=$lt_finish_eval
  16393.  
  16394. # Take the output of nm and produce a listing of raw symbols and C names.
  16395. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16396.  
  16397. # Transform the output of nm in a proper C declaration
  16398. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16399.  
  16400. # Transform the output of nm in a C name address pair
  16401. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16402.  
  16403. # This is the shared library runtime path variable.
  16404. runpath_var=$runpath_var
  16405.  
  16406. # This is the shared library path variable.
  16407. shlibpath_var=$shlibpath_var
  16408.  
  16409. # Is shlibpath searched before the hard-coded library search path?
  16410. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16411.  
  16412. # How to hardcode a shared library path into an executable.
  16413. hardcode_action=$hardcode_action_F77
  16414.  
  16415. # Whether we should hardcode library paths into libraries.
  16416. hardcode_into_libs=$hardcode_into_libs
  16417.  
  16418. # Flag to hardcode \$libdir into a binary during linking.
  16419. # This must work even if \$libdir does not exist.
  16420. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  16421.  
  16422. # If ld is used when linking, flag to hardcode \$libdir into
  16423. # a binary during linking. This must work even if \$libdir does
  16424. # not exist.
  16425. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  16426.  
  16427. # Whether we need a single -rpath flag with a separated argument.
  16428. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  16429.  
  16430. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16431. # resulting binary.
  16432. hardcode_direct=$hardcode_direct_F77
  16433.  
  16434. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16435. # resulting binary.
  16436. hardcode_minus_L=$hardcode_minus_L_F77
  16437.  
  16438. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16439. # the resulting binary.
  16440. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  16441.  
  16442. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16443. # and all subsequent libraries and executables linked against it.
  16444. hardcode_automatic=$hardcode_automatic_F77
  16445.  
  16446. # Variables whose values should be saved in libtool wrapper scripts and
  16447. # restored at relink time.
  16448. variables_saved_for_relink="$variables_saved_for_relink"
  16449.  
  16450. # Whether libtool must link a program against all its dependency libraries.
  16451. link_all_deplibs=$link_all_deplibs_F77
  16452.  
  16453. # Compile-time system search path for libraries
  16454. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16455.  
  16456. # Run-time system search path for libraries
  16457. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16458.  
  16459. # Fix the shell variable \$srcfile for the compiler.
  16460. fix_srcfile_path="$fix_srcfile_path_F77"
  16461.  
  16462. # Set to yes if exported symbols are required.
  16463. always_export_symbols=$always_export_symbols_F77
  16464.  
  16465. # The commands to list exported symbols.
  16466. export_symbols_cmds=$lt_export_symbols_cmds_F77
  16467.  
  16468. # The commands to extract the exported symbol list from a shared archive.
  16469. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16470.  
  16471. # Symbols that should not be listed in the preloaded symbols.
  16472. exclude_expsyms=$lt_exclude_expsyms_F77
  16473.  
  16474. # Symbols that must always be exported.
  16475. include_expsyms=$lt_include_expsyms_F77
  16476.  
  16477. # ### END LIBTOOL TAG CONFIG: $tagname
  16478.  
  16479. __EOF__
  16480.  
  16481.  
  16482. else
  16483.   # If there is no Makefile yet, we rely on a make rule to execute
  16484.   # `config.status --recheck' to rerun these tests and create the
  16485.   # libtool script then.
  16486.   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16487.   if test -f "$ltmain_in"; then
  16488.     test -f Makefile && make "$ltmain"
  16489.   fi
  16490. fi
  16491.  
  16492.  
  16493. ac_ext=cc
  16494. ac_cpp='$CXXCPP $CPPFLAGS'
  16495. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16496. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16497. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16498.  
  16499. CC="$lt_save_CC"
  16500.  
  16501.     else
  16502.       tagname=""
  16503.     fi
  16504.     ;;
  16505.  
  16506.       GCJ)
  16507.     if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  16508.  
  16509.  
  16510.  
  16511. # Source file extension for Java test sources.
  16512. ac_ext=java
  16513.  
  16514. # Object file extension for compiled Java test sources.
  16515. objext=o
  16516. objext_GCJ=$objext
  16517.  
  16518. # Code to be used in simple compile tests
  16519. lt_simple_compile_test_code="class foo {}\n"
  16520.  
  16521. # Code to be used in simple link tests
  16522. lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
  16523.  
  16524. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  16525.  
  16526. # If no C compiler was specified, use CC.
  16527. LTCC=${LTCC-"$CC"}
  16528.  
  16529. # Allow CC to be a program name with arguments.
  16530. compiler=$CC
  16531.  
  16532.  
  16533. # Allow CC to be a program name with arguments.
  16534. lt_save_CC="$CC"
  16535. CC=${GCJ-"gcj"}
  16536. compiler=$CC
  16537. compiler_GCJ=$CC
  16538.  
  16539. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  16540. archive_cmds_need_lc_GCJ=no
  16541.  
  16542.  
  16543. lt_prog_compiler_no_builtin_flag_GCJ=
  16544.  
  16545. if test "$GCC" = yes; then
  16546.   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  16547.  
  16548.  
  16549. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  16550. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  16551. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  16552.   echo $ECHO_N "(cached) $ECHO_C" >&6
  16553. else
  16554.   lt_cv_prog_compiler_rtti_exceptions=no
  16555.   ac_outfile=conftest.$ac_objext
  16556.    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  16557.    lt_compiler_flag="-fno-rtti -fno-exceptions"
  16558.    # Insert the option either (1) after the last *FLAGS variable, or
  16559.    # (2) before a word containing "conftest.", or (3) at the end.
  16560.    # Note that $ac_compile itself does not contain backslashes and begins
  16561.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  16562.    # The option is referenced via a variable to avoid confusing sed.
  16563.    lt_compile=`echo "$ac_compile" | $SED \
  16564.    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  16565.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  16566.    -e 's:$: $lt_compiler_flag:'`
  16567.    (eval echo "\"\$as_me:16567: $lt_compile\"" >&5)
  16568.    (eval "$lt_compile" 2>conftest.err)
  16569.    ac_status=$?
  16570.    cat conftest.err >&5
  16571.    echo "$as_me:16571: \$? = $ac_status" >&5
  16572.    if (exit $ac_status) && test -s "$ac_outfile"; then
  16573.      # The compiler can only warn and ignore the option if not recognized
  16574.      # So say no if there are warnings
  16575.      if test ! -s conftest.err; then
  16576.        lt_cv_prog_compiler_rtti_exceptions=yes
  16577.      fi
  16578.    fi
  16579.    $rm conftest*
  16580.  
  16581. fi
  16582. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  16583. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  16584.  
  16585. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  16586.     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  16587. else
  16588.     :
  16589. fi
  16590.  
  16591. fi
  16592.  
  16593. lt_prog_compiler_wl_GCJ=
  16594. lt_prog_compiler_pic_GCJ=
  16595. lt_prog_compiler_static_GCJ=
  16596.  
  16597. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  16598. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  16599.  
  16600.   if test "$GCC" = yes; then
  16601.     lt_prog_compiler_wl_GCJ='-Wl,'
  16602.     lt_prog_compiler_static_GCJ='-static'
  16603.  
  16604.     case $host_os in
  16605.       aix*)
  16606.       # All AIX code is PIC.
  16607.       if test "$host_cpu" = ia64; then
  16608.     # AIX 5 now supports IA64 processor
  16609.     lt_prog_compiler_static_GCJ='-Bstatic'
  16610.       fi
  16611.       ;;
  16612.  
  16613.     amigaos*)
  16614.       # FIXME: we need at least 68020 code to build shared libraries, but
  16615.       # adding the `-m68020' flag to GCC prevents building anything better,
  16616.       # like `-m68040'.
  16617.       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  16618.       ;;
  16619.  
  16620.     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  16621.       # PIC is the default for these OSes.
  16622.       ;;
  16623.  
  16624.     mingw* | pw32* | os2*)
  16625.       # This hack is so that the source file can tell whether it is being
  16626.       # built for inclusion in a dll (and should export symbols for example).
  16627.       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  16628.       ;;
  16629.  
  16630.     darwin* | rhapsody*)
  16631.       # PIC is the default on this platform
  16632.       # Common symbols not allowed in MH_DYLIB files
  16633.       lt_prog_compiler_pic_GCJ='-fno-common'
  16634.       ;;
  16635.  
  16636.     msdosdjgpp*)
  16637.       # Just because we use GCC doesn't mean we suddenly get shared libraries
  16638.       # on systems that don't support them.
  16639.       lt_prog_compiler_can_build_shared_GCJ=no
  16640.       enable_shared=no
  16641.       ;;
  16642.  
  16643.     sysv4*MP*)
  16644.       if test -d /usr/nec; then
  16645.     lt_prog_compiler_pic_GCJ=-Kconform_pic
  16646.       fi
  16647.       ;;
  16648.  
  16649.     hpux*)
  16650.       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  16651.       # not for PA HP-UX.
  16652.       case "$host_cpu" in
  16653.       hppa*64*|ia64*)
  16654.     # +Z the default
  16655.     ;;
  16656.       *)
  16657.     lt_prog_compiler_pic_GCJ='-fPIC'
  16658.     ;;
  16659.       esac
  16660.       ;;
  16661.  
  16662.     *)
  16663.       lt_prog_compiler_pic_GCJ='-fPIC'
  16664.       ;;
  16665.     esac
  16666.   else
  16667.     # PORTME Check for flag to pass linker flags through the system compiler.
  16668.     case $host_os in
  16669.     aix*)
  16670.       lt_prog_compiler_wl_GCJ='-Wl,'
  16671.       if test "$host_cpu" = ia64; then
  16672.     # AIX 5 now supports IA64 processor
  16673.     lt_prog_compiler_static_GCJ='-Bstatic'
  16674.       else
  16675.     lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  16676.       fi
  16677.       ;;
  16678.  
  16679.     mingw* | pw32* | os2*)
  16680.       # This hack is so that the source file can tell whether it is being
  16681.       # built for inclusion in a dll (and should export symbols for example).
  16682.       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  16683.       ;;
  16684.  
  16685.     hpux9* | hpux10* | hpux11*)
  16686.       lt_prog_compiler_wl_GCJ='-Wl,'
  16687.       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  16688.       # not for PA HP-UX.
  16689.       case "$host_cpu" in
  16690.       hppa*64*|ia64*)
  16691.     # +Z the default
  16692.     ;;
  16693.       *)
  16694.     lt_prog_compiler_pic_GCJ='+Z'
  16695.     ;;
  16696.       esac
  16697.       # Is there a better lt_prog_compiler_static that works with the bundled CC?
  16698.       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  16699.       ;;
  16700.  
  16701.     irix5* | irix6* | nonstopux*)
  16702.       lt_prog_compiler_wl_GCJ='-Wl,'
  16703.       # PIC (with -KPIC) is the default.
  16704.       lt_prog_compiler_static_GCJ='-non_shared'
  16705.       ;;
  16706.  
  16707.     newsos6)
  16708.       lt_prog_compiler_pic_GCJ='-KPIC'
  16709.       lt_prog_compiler_static_GCJ='-Bstatic'
  16710.       ;;
  16711.  
  16712.     linux*)
  16713.       case $CC in
  16714.       icc* | ecc*)
  16715.     lt_prog_compiler_wl_GCJ='-Wl,'
  16716.     lt_prog_compiler_pic_GCJ='-KPIC'
  16717.     lt_prog_compiler_static_GCJ='-static'
  16718.         ;;
  16719.       ccc*)
  16720.         lt_prog_compiler_wl_GCJ='-Wl,'
  16721.         # All Alpha code is PIC.
  16722.         lt_prog_compiler_static_GCJ='-non_shared'
  16723.         ;;
  16724.       esac
  16725.       ;;
  16726.  
  16727.     osf3* | osf4* | osf5*)
  16728.       lt_prog_compiler_wl_GCJ='-Wl,'
  16729.       # All OSF/1 code is PIC.
  16730.       lt_prog_compiler_static_GCJ='-non_shared'
  16731.       ;;
  16732.  
  16733.     sco3.2v5*)
  16734.       lt_prog_compiler_pic_GCJ='-Kpic'
  16735.       lt_prog_compiler_static_GCJ='-dn'
  16736.       ;;
  16737.  
  16738.     solaris*)
  16739.       lt_prog_compiler_wl_GCJ='-Wl,'
  16740.       lt_prog_compiler_pic_GCJ='-KPIC'
  16741.       lt_prog_compiler_static_GCJ='-Bstatic'
  16742.       ;;
  16743.  
  16744.     sunos4*)
  16745.       lt_prog_compiler_wl_GCJ='-Qoption ld '
  16746.       lt_prog_compiler_pic_GCJ='-PIC'
  16747.       lt_prog_compiler_static_GCJ='-Bstatic'
  16748.       ;;
  16749.  
  16750.     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  16751.       lt_prog_compiler_wl_GCJ='-Wl,'
  16752.       lt_prog_compiler_pic_GCJ='-KPIC'
  16753.       lt_prog_compiler_static_GCJ='-Bstatic'
  16754.       ;;
  16755.  
  16756.     sysv4*MP*)
  16757.       if test -d /usr/nec ;then
  16758.     lt_prog_compiler_pic_GCJ='-Kconform_pic'
  16759.     lt_prog_compiler_static_GCJ='-Bstatic'
  16760.       fi
  16761.       ;;
  16762.  
  16763.     uts4*)
  16764.       lt_prog_compiler_pic_GCJ='-pic'
  16765.       lt_prog_compiler_static_GCJ='-Bstatic'
  16766.       ;;
  16767.  
  16768.     *)
  16769.       lt_prog_compiler_can_build_shared_GCJ=no
  16770.       ;;
  16771.     esac
  16772.   fi
  16773.  
  16774. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  16775. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
  16776.  
  16777. #
  16778. # Check to make sure the PIC flag actually works.
  16779. #
  16780. if test -n "$lt_prog_compiler_pic_GCJ"; then
  16781.  
  16782. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  16783. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
  16784. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  16785.   echo $ECHO_N "(cached) $ECHO_C" >&6
  16786. else
  16787.   lt_prog_compiler_pic_works_GCJ=no
  16788.   ac_outfile=conftest.$ac_objext
  16789.    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  16790.    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  16791.    # Insert the option either (1) after the last *FLAGS variable, or
  16792.    # (2) before a word containing "conftest.", or (3) at the end.
  16793.    # Note that $ac_compile itself does not contain backslashes and begins
  16794.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  16795.    # The option is referenced via a variable to avoid confusing sed.
  16796.    lt_compile=`echo "$ac_compile" | $SED \
  16797.    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  16798.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  16799.    -e 's:$: $lt_compiler_flag:'`
  16800.    (eval echo "\"\$as_me:16800: $lt_compile\"" >&5)
  16801.    (eval "$lt_compile" 2>conftest.err)
  16802.    ac_status=$?
  16803.    cat conftest.err >&5
  16804.    echo "$as_me:16804: \$? = $ac_status" >&5
  16805.    if (exit $ac_status) && test -s "$ac_outfile"; then
  16806.      # The compiler can only warn and ignore the option if not recognized
  16807.      # So say no if there are warnings
  16808.      if test ! -s conftest.err; then
  16809.        lt_prog_compiler_pic_works_GCJ=yes
  16810.      fi
  16811.    fi
  16812.    $rm conftest*
  16813.  
  16814. fi
  16815. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  16816. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
  16817.  
  16818. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  16819.     case $lt_prog_compiler_pic_GCJ in
  16820.      "" | " "*) ;;
  16821.      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  16822.      esac
  16823. else
  16824.     lt_prog_compiler_pic_GCJ=
  16825.      lt_prog_compiler_can_build_shared_GCJ=no
  16826. fi
  16827.  
  16828. fi
  16829. case "$host_os" in
  16830.   # For platforms which do not support PIC, -DPIC is meaningless:
  16831.   *djgpp*)
  16832.     lt_prog_compiler_pic_GCJ=
  16833.     ;;
  16834.   *)
  16835.     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  16836.     ;;
  16837. esac
  16838.  
  16839. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  16840. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  16841. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  16842.   echo $ECHO_N "(cached) $ECHO_C" >&6
  16843. else
  16844.   lt_cv_prog_compiler_c_o_GCJ=no
  16845.    $rm -r conftest 2>/dev/null
  16846.    mkdir conftest
  16847.    cd conftest
  16848.    mkdir out
  16849.    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  16850.  
  16851.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  16852.    # Insert the option either (1) after the last *FLAGS variable, or
  16853.    # (2) before a word containing "conftest.", or (3) at the end.
  16854.    # Note that $ac_compile itself does not contain backslashes and begins
  16855.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  16856.    lt_compile=`echo "$ac_compile" | $SED \
  16857.    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  16858.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  16859.    -e 's:$: $lt_compiler_flag:'`
  16860.    (eval echo "\"\$as_me:16860: $lt_compile\"" >&5)
  16861.    (eval "$lt_compile" 2>out/conftest.err)
  16862.    ac_status=$?
  16863.    cat out/conftest.err >&5
  16864.    echo "$as_me:16864: \$? = $ac_status" >&5
  16865.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  16866.    then
  16867.      # The compiler can only warn and ignore the option if not recognized
  16868.      # So say no if there are warnings
  16869.      if test ! -s out/conftest.err; then
  16870.        lt_cv_prog_compiler_c_o_GCJ=yes
  16871.      fi
  16872.    fi
  16873.    chmod u+w .
  16874.    $rm conftest*
  16875.    # SGI C++ compiler will create directory out/ii_files/ for
  16876.    # template instantiation
  16877.    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  16878.    $rm out/* && rmdir out
  16879.    cd ..
  16880.    rmdir conftest
  16881.    $rm conftest*
  16882.  
  16883. fi
  16884. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  16885. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
  16886.  
  16887.  
  16888. hard_links="nottested"
  16889. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  16890.   # do not overwrite the value of need_locks provided by the user
  16891.   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  16892. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  16893.   hard_links=yes
  16894.   $rm conftest*
  16895.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  16896.   touch conftest.a
  16897.   ln conftest.a conftest.b 2>&5 || hard_links=no
  16898.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  16899.   echo "$as_me:$LINENO: result: $hard_links" >&5
  16900. echo "${ECHO_T}$hard_links" >&6
  16901.   if test "$hard_links" = no; then
  16902.     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  16903. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  16904.     need_locks=warn
  16905.   fi
  16906. else
  16907.   need_locks=no
  16908. fi
  16909.  
  16910. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  16911. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  16912.  
  16913.   runpath_var=
  16914.   allow_undefined_flag_GCJ=
  16915.   enable_shared_with_static_runtimes_GCJ=no
  16916.   archive_cmds_GCJ=
  16917.   archive_expsym_cmds_GCJ=
  16918.   old_archive_From_new_cmds_GCJ=
  16919.   old_archive_from_expsyms_cmds_GCJ=
  16920.   export_dynamic_flag_spec_GCJ=
  16921.   whole_archive_flag_spec_GCJ=
  16922.   thread_safe_flag_spec_GCJ=
  16923.   hardcode_libdir_flag_spec_GCJ=
  16924.   hardcode_libdir_flag_spec_ld_GCJ=
  16925.   hardcode_libdir_separator_GCJ=
  16926.   hardcode_direct_GCJ=no
  16927.   hardcode_minus_L_GCJ=no
  16928.   hardcode_shlibpath_var_GCJ=unsupported
  16929.   link_all_deplibs_GCJ=unknown
  16930.   hardcode_automatic_GCJ=no
  16931.   module_cmds_GCJ=
  16932.   module_expsym_cmds_GCJ=
  16933.   always_export_symbols_GCJ=no
  16934.   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  16935.   # include_expsyms should be a list of space-separated symbols to be *always*
  16936.   # included in the symbol list
  16937.   include_expsyms_GCJ=
  16938.   # exclude_expsyms can be an extended regexp of symbols to exclude
  16939.   # it will be wrapped by ` (' and `)$', so one must not match beginning or
  16940.   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  16941.   # as well as any symbol that contains `d'.
  16942.   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  16943.   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  16944.   # platforms (ab)use it in PIC code, but their linkers get confused if
  16945.   # the symbol is explicitly referenced.  Since portable code cannot
  16946.   # rely on this symbol name, it's probably fine to never include it in
  16947.   # preloaded symbol tables.
  16948.   extract_expsyms_cmds=
  16949.  
  16950.   case $host_os in
  16951.   cygwin* | mingw* | pw32*)
  16952.     # FIXME: the MSVC++ port hasn't been tested in a loooong time
  16953.     # When not using gcc, we currently assume that we are using
  16954.     # Microsoft Visual C++.
  16955.     if test "$GCC" != yes; then
  16956.       with_gnu_ld=no
  16957.     fi
  16958.     ;;
  16959.   openbsd*)
  16960.     with_gnu_ld=no
  16961.     ;;
  16962.   esac
  16963.  
  16964.   ld_shlibs_GCJ=yes
  16965.   if test "$with_gnu_ld" = yes; then
  16966.     # If archive_cmds runs LD, not CC, wlarc should be empty
  16967.     wlarc='${wl}'
  16968.  
  16969.     # See if GNU ld supports shared libraries.
  16970.     case $host_os in
  16971.     aix3* | aix4* | aix5*)
  16972.       # On AIX/PPC, the GNU linker is very broken
  16973.       if test "$host_cpu" != ia64; then
  16974.     ld_shlibs_GCJ=no
  16975.     cat <<EOF 1>&2
  16976.  
  16977. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  16978. *** to be unable to reliably create shared libraries on AIX.
  16979. *** Therefore, libtool is disabling shared libraries support.  If you
  16980. *** really care for shared libraries, you may want to modify your PATH
  16981. *** so that a non-GNU linker is found, and then restart.
  16982.  
  16983. EOF
  16984.       fi
  16985.       ;;
  16986.  
  16987.     amigaos*)
  16988.       archive_cmds_GCJ='$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)'
  16989.       hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16990.       hardcode_minus_L_GCJ=yes
  16991.  
  16992.       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  16993.       # that the semantics of dynamic libraries on AmigaOS, at least up
  16994.       # to version 4, is to share data among multiple programs linked
  16995.       # with the same dynamic library.  Since this doesn't match the
  16996.       # behavior of shared libraries on other platforms, we can't use
  16997.       # them.
  16998.       ld_shlibs_GCJ=no
  16999.       ;;
  17000.  
  17001.     beos*)
  17002.       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  17003.     allow_undefined_flag_GCJ=unsupported
  17004.     # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  17005.     # support --undefined.  This deserves some investigation.  FIXME
  17006.     archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  17007.       else
  17008.     ld_shlibs_GCJ=no
  17009.       fi
  17010.       ;;
  17011.  
  17012.     cygwin* | mingw* | pw32*)
  17013.       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  17014.       # as there is no search path for DLLs.
  17015.       hardcode_libdir_flag_spec_GCJ='-L$libdir'
  17016.       allow_undefined_flag_GCJ=unsupported
  17017.       always_export_symbols_GCJ=no
  17018.       enable_shared_with_static_runtimes_GCJ=yes
  17019.       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  17020.  
  17021.       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  17022.         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  17023.     # If the export-symbols file already is a .def file (1st line
  17024.     # is EXPORTS), use it as is; otherwise, prepend...
  17025.     archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  17026.       cp $export_symbols $output_objdir/$soname.def;
  17027.     else
  17028.       echo EXPORTS > $output_objdir/$soname.def;
  17029.       cat $export_symbols >> $output_objdir/$soname.def;
  17030.     fi~
  17031.     $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
  17032.       else
  17033.     ld_shlibs=no
  17034.       fi
  17035.       ;;
  17036.  
  17037.     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  17038.       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  17039.     archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  17040.     wlarc=
  17041.       else
  17042.     archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  17043.     archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  17044.       fi
  17045.       ;;
  17046.  
  17047.     solaris* | sysv5*)
  17048.       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  17049.     ld_shlibs_GCJ=no
  17050.     cat <<EOF 1>&2
  17051.  
  17052. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  17053. *** create shared libraries on Solaris systems.  Therefore, libtool
  17054. *** is disabling shared libraries support.  We urge you to upgrade GNU
  17055. *** binutils to release 2.9.1 or newer.  Another option is to modify
  17056. *** your PATH or compiler configuration so that the native linker is
  17057. *** used, and then restart.
  17058.  
  17059. EOF
  17060.       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  17061.     archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  17062.     archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  17063.       else
  17064.     ld_shlibs_GCJ=no
  17065.       fi
  17066.       ;;
  17067.  
  17068.     sunos4*)
  17069.       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  17070.       wlarc=
  17071.       hardcode_direct_GCJ=yes
  17072.       hardcode_shlibpath_var_GCJ=no
  17073.       ;;
  17074.  
  17075.   linux*)
  17076.     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  17077.         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  17078.     archive_cmds_GCJ="$tmp_archive_cmds"
  17079.       supports_anon_versioning=no
  17080.       case `$LD -v 2>/dev/null` in
  17081.         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  17082.         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  17083.         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  17084.         *\ 2.11.*) ;; # other 2.11 versions
  17085.         *) supports_anon_versioning=yes ;;
  17086.       esac
  17087.       if test $supports_anon_versioning = yes; then
  17088.         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  17089. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  17090. $echo "local: *; };" >> $output_objdir/$libname.ver~
  17091.         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  17092.       else
  17093.         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
  17094.       fi
  17095.       link_all_deplibs_GCJ=no
  17096.     else
  17097.       ld_shlibs_GCJ=no
  17098.     fi
  17099.     ;;
  17100.  
  17101.     *)
  17102.       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  17103.     archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  17104.     archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  17105.       else
  17106.     ld_shlibs_GCJ=no
  17107.       fi
  17108.       ;;
  17109.     esac
  17110.  
  17111.     if test "$ld_shlibs_GCJ" = yes; then
  17112.       runpath_var=LD_RUN_PATH
  17113.       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  17114.       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  17115.       # ancient GNU ld didn't support --whole-archive et. al.
  17116.       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  17117.      whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  17118.       else
  17119.       whole_archive_flag_spec_GCJ=
  17120.       fi
  17121.     fi
  17122.   else
  17123.     # PORTME fill in a description of your system's linker (not GNU ld)
  17124.     case $host_os in
  17125.     aix3*)
  17126.       allow_undefined_flag_GCJ=unsupported
  17127.       always_export_symbols_GCJ=yes
  17128.       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  17129.       # Note: this linker hardcodes the directories in LIBPATH if there
  17130.       # are no directories specified by -L.
  17131.       hardcode_minus_L_GCJ=yes
  17132.       if test "$GCC" = yes && test -z "$link_static_flag"; then
  17133.     # Neither direct hardcoding nor static linking is supported with a
  17134.     # broken collect2.
  17135.     hardcode_direct_GCJ=unsupported
  17136.       fi
  17137.       ;;
  17138.  
  17139.     aix4* | aix5*)
  17140.       if test "$host_cpu" = ia64; then
  17141.     # On IA64, the linker does run time linking by default, so we don't
  17142.     # have to do anything special.
  17143.     aix_use_runtimelinking=no
  17144.     exp_sym_flag='-Bexport'
  17145.     no_entry_flag=""
  17146.       else
  17147.     # If we're using GNU nm, then we don't want the "-C" option.
  17148.     # -C means demangle to AIX nm, but means don't demangle with GNU nm
  17149.     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  17150.       export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  17151.     else
  17152.       export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  17153.     fi
  17154.     aix_use_runtimelinking=no
  17155.  
  17156.     # Test if we are trying to use run time linking or normal
  17157.     # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  17158.     # need to do runtime linking.
  17159.     case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  17160.       for ld_flag in $LDFLAGS; do
  17161.         if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  17162.           aix_use_runtimelinking=yes
  17163.           break
  17164.         fi
  17165.       done
  17166.     esac
  17167.  
  17168.     exp_sym_flag='-bexport'
  17169.     no_entry_flag='-bnoentry'
  17170.       fi
  17171.  
  17172.       # When large executables or shared objects are built, AIX ld can
  17173.       # have problems creating the table of contents.  If linking a library
  17174.       # or program results in "error TOC overflow" add -mminimal-toc to
  17175.       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  17176.       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  17177.  
  17178.       archive_cmds_GCJ=''
  17179.       hardcode_direct_GCJ=yes
  17180.       hardcode_libdir_separator_GCJ=':'
  17181.       link_all_deplibs_GCJ=yes
  17182.  
  17183.       if test "$GCC" = yes; then
  17184.     case $host_os in aix4.012|aix4.012.*)
  17185.     # We only want to do this on AIX 4.2 and lower, the check
  17186.     # below for broken collect2 doesn't work under 4.3+
  17187.       collect2name=`${CC} -print-prog-name=collect2`
  17188.       if test -f "$collect2name" && \
  17189.          strings "$collect2name" | grep resolve_lib_name >/dev/null
  17190.       then
  17191.         # We have reworked collect2
  17192.         hardcode_direct_GCJ=yes
  17193.       else
  17194.         # We have old collect2
  17195.         hardcode_direct_GCJ=unsupported
  17196.         # It fails to find uninstalled libraries when the uninstalled
  17197.         # path is not listed in the libpath.  Setting hardcode_minus_L
  17198.         # to unsupported forces relinking
  17199.         hardcode_minus_L_GCJ=yes
  17200.         hardcode_libdir_flag_spec_GCJ='-L$libdir'
  17201.         hardcode_libdir_separator_GCJ=
  17202.       fi
  17203.     esac
  17204.     shared_flag='-shared'
  17205.       else
  17206.     # not using gcc
  17207.     if test "$host_cpu" = ia64; then
  17208.       # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  17209.       # chokes on -Wl,-G. The following line is correct:
  17210.       shared_flag='-G'
  17211.     else
  17212.       if test "$aix_use_runtimelinking" = yes; then
  17213.         shared_flag='${wl}-G'
  17214.       else
  17215.         shared_flag='${wl}-bM:SRE'
  17216.       fi
  17217.     fi
  17218.       fi
  17219.  
  17220.       # It seems that -bexpall does not export symbols beginning with
  17221.       # underscore (_), so it is better to generate a list of symbols to export.
  17222.       always_export_symbols_GCJ=yes
  17223.       if test "$aix_use_runtimelinking" = yes; then
  17224.     # Warning - without using the other runtime loading flags (-brtl),
  17225.     # -berok will link without error, but may produce a broken library.
  17226.     allow_undefined_flag_GCJ='-berok'
  17227.        # Determine the default libpath from the value encoded in an empty executable.
  17228.        cat >conftest.$ac_ext <<_ACEOF
  17229. /* confdefs.h.  */
  17230. _ACEOF
  17231. cat confdefs.h >>conftest.$ac_ext
  17232. cat >>conftest.$ac_ext <<_ACEOF
  17233. /* end confdefs.h.  */
  17234.  
  17235. int
  17236. main ()
  17237. {
  17238.  
  17239.   ;
  17240.   return 0;
  17241. }
  17242. _ACEOF
  17243. rm -f conftest.$ac_objext conftest$ac_exeext
  17244. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17245.   (eval $ac_link) 2>conftest.er1
  17246.   ac_status=$?
  17247.   grep -v '^ *+' conftest.er1 >conftest.err
  17248.   rm -f conftest.er1
  17249.   cat conftest.err >&5
  17250.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17251.   (exit $ac_status); } &&
  17252.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  17253.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17254.   (eval $ac_try) 2>&5
  17255.   ac_status=$?
  17256.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17257.   (exit $ac_status); }; } &&
  17258.      { ac_try='test -s conftest$ac_exeext'
  17259.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17260.   (eval $ac_try) 2>&5
  17261.   ac_status=$?
  17262.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17263.   (exit $ac_status); }; }; then
  17264.  
  17265. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
  17266. }'`
  17267. # Check for a 64-bit object if we didn't find anything.
  17268. if 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; }
  17269. }'`; fi
  17270. else
  17271.   echo "$as_me: failed program was:" >&5
  17272. sed 's/^/| /' conftest.$ac_ext >&5
  17273.  
  17274. fi
  17275. rm -f conftest.err conftest.$ac_objext \
  17276.       conftest$ac_exeext conftest.$ac_ext
  17277. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  17278.  
  17279.        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  17280.     archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  17281.        else
  17282.     if test "$host_cpu" = ia64; then
  17283.       hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  17284.       allow_undefined_flag_GCJ="-z nodefs"
  17285.       archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  17286.     else
  17287.      # Determine the default libpath from the value encoded in an empty executable.
  17288.      cat >conftest.$ac_ext <<_ACEOF
  17289. /* confdefs.h.  */
  17290. _ACEOF
  17291. cat confdefs.h >>conftest.$ac_ext
  17292. cat >>conftest.$ac_ext <<_ACEOF
  17293. /* end confdefs.h.  */
  17294.  
  17295. int
  17296. main ()
  17297. {
  17298.  
  17299.   ;
  17300.   return 0;
  17301. }
  17302. _ACEOF
  17303. rm -f conftest.$ac_objext conftest$ac_exeext
  17304. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17305.   (eval $ac_link) 2>conftest.er1
  17306.   ac_status=$?
  17307.   grep -v '^ *+' conftest.er1 >conftest.err
  17308.   rm -f conftest.er1
  17309.   cat conftest.err >&5
  17310.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17311.   (exit $ac_status); } &&
  17312.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  17313.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17314.   (eval $ac_try) 2>&5
  17315.   ac_status=$?
  17316.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17317.   (exit $ac_status); }; } &&
  17318.      { ac_try='test -s conftest$ac_exeext'
  17319.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17320.   (eval $ac_try) 2>&5
  17321.   ac_status=$?
  17322.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17323.   (exit $ac_status); }; }; then
  17324.  
  17325. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
  17326. }'`
  17327. # Check for a 64-bit object if we didn't find anything.
  17328. if 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; }
  17329. }'`; fi
  17330. else
  17331.   echo "$as_me: failed program was:" >&5
  17332. sed 's/^/| /' conftest.$ac_ext >&5
  17333.  
  17334. fi
  17335. rm -f conftest.err conftest.$ac_objext \
  17336.       conftest$ac_exeext conftest.$ac_ext
  17337. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  17338.  
  17339.      hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  17340.       # Warning - without using the other run time loading flags,
  17341.       # -berok will link without error, but may produce a broken library.
  17342.       no_undefined_flag_GCJ=' ${wl}-bernotok'
  17343.       allow_undefined_flag_GCJ=' ${wl}-berok'
  17344.       # -bexpall does not export symbols beginning with underscore (_)
  17345.       always_export_symbols_GCJ=yes
  17346.       # Exported symbols can be pulled into shared objects from archives
  17347.       whole_archive_flag_spec_GCJ=' '
  17348.       archive_cmds_need_lc_GCJ=yes
  17349.       # This is similar to how AIX traditionally builds it's shared libraries.
  17350.       archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  17351.     fi
  17352.       fi
  17353.       ;;
  17354.  
  17355.     amigaos*)
  17356.       archive_cmds_GCJ='$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)'
  17357.       hardcode_libdir_flag_spec_GCJ='-L$libdir'
  17358.       hardcode_minus_L_GCJ=yes
  17359.       # see comment about different semantics on the GNU ld section
  17360.       ld_shlibs_GCJ=no
  17361.       ;;
  17362.  
  17363.     bsdi4*)
  17364.       export_dynamic_flag_spec_GCJ=-rdynamic
  17365.       ;;
  17366.  
  17367.     cygwin* | mingw* | pw32*)
  17368.       # When not using gcc, we currently assume that we are using
  17369.       # Microsoft Visual C++.
  17370.       # hardcode_libdir_flag_spec is actually meaningless, as there is
  17371.       # no search path for DLLs.
  17372.       hardcode_libdir_flag_spec_GCJ=' '
  17373.       allow_undefined_flag_GCJ=unsupported
  17374.       # Tell ltmain to make .lib files, not .a files.
  17375.       libext=lib
  17376.       # Tell ltmain to make .dll files, not .so files.
  17377.       shrext_cmds=".dll"
  17378.       # FIXME: Setting linknames here is a bad hack.
  17379.       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  17380.       # The linker will automatically build a .lib file if we build a DLL.
  17381.       old_archive_From_new_cmds_GCJ='true'
  17382.       # FIXME: Should let the user specify the lib program.
  17383.       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  17384.       fix_srcfile_path='`cygpath -w "$srcfile"`'
  17385.       enable_shared_with_static_runtimes_GCJ=yes
  17386.       ;;
  17387.  
  17388.     darwin* | rhapsody*)
  17389.     if test "$GXX" = yes ; then
  17390.       archive_cmds_need_lc_GCJ=no
  17391.       case "$host_os" in
  17392.       rhapsody* | darwin1.[012])
  17393.     allow_undefined_flag_GCJ='-undefined suppress'
  17394.     ;;
  17395.       *) # Darwin 1.3 on
  17396.       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  17397.           allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
  17398.       else
  17399.         case ${MACOSX_DEPLOYMENT_TARGET} in
  17400.           10.[012])
  17401.             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
  17402.             ;;
  17403.           10.*)
  17404.             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
  17405.             ;;
  17406.         esac
  17407.       fi
  17408.     ;;
  17409.       esac
  17410.         lt_int_apple_cc_single_mod=no
  17411.         output_verbose_link_cmd='echo'
  17412.         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  17413.           lt_int_apple_cc_single_mod=yes
  17414.         fi
  17415.         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  17416.           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  17417.         else
  17418.         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  17419.       fi
  17420.       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  17421.       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  17422.         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  17423.           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  17424.         else
  17425.           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  17426.         fi
  17427.           module_expsym_cmds_GCJ='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}'
  17428.       hardcode_direct_GCJ=no
  17429.       hardcode_automatic_GCJ=yes
  17430.       hardcode_shlibpath_var_GCJ=unsupported
  17431.       whole_archive_flag_spec_GCJ='-all_load $convenience'
  17432.       link_all_deplibs_GCJ=yes
  17433.     else
  17434.       ld_shlibs_GCJ=no
  17435.     fi
  17436.       ;;
  17437.  
  17438.     dgux*)
  17439.       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17440.       hardcode_libdir_flag_spec_GCJ='-L$libdir'
  17441.       hardcode_shlibpath_var_GCJ=no
  17442.       ;;
  17443.  
  17444.     freebsd1*)
  17445.       ld_shlibs_GCJ=no
  17446.       ;;
  17447.  
  17448.     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  17449.     # support.  Future versions do this automatically, but an explicit c++rt0.o
  17450.     # does not break anything, and helps significantly (at the cost of a little
  17451.     # extra space).
  17452.     freebsd2.2*)
  17453.       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  17454.       hardcode_libdir_flag_spec_GCJ='-R$libdir'
  17455.       hardcode_direct_GCJ=yes
  17456.       hardcode_shlibpath_var_GCJ=no
  17457.       ;;
  17458.  
  17459.     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  17460.     freebsd2*)
  17461.       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  17462.       hardcode_direct_GCJ=yes
  17463.       hardcode_minus_L_GCJ=yes
  17464.       hardcode_shlibpath_var_GCJ=no
  17465.       ;;
  17466.  
  17467.     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  17468.     freebsd* | kfreebsd*-gnu)
  17469.       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  17470.       hardcode_libdir_flag_spec_GCJ='-R$libdir'
  17471.       hardcode_direct_GCJ=yes
  17472.       hardcode_shlibpath_var_GCJ=no
  17473.       ;;
  17474.  
  17475.     hpux9*)
  17476.       if test "$GCC" = yes; then
  17477.     archive_cmds_GCJ='$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'
  17478.       else
  17479.     archive_cmds_GCJ='$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'
  17480.       fi
  17481.       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  17482.       hardcode_libdir_separator_GCJ=:
  17483.       hardcode_direct_GCJ=yes
  17484.  
  17485.       # hardcode_minus_L: Not really in the search PATH,
  17486.       # but as the default location of the library.
  17487.       hardcode_minus_L_GCJ=yes
  17488.       export_dynamic_flag_spec_GCJ='${wl}-E'
  17489.       ;;
  17490.  
  17491.     hpux10* | hpux11*)
  17492.       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  17493.     case "$host_cpu" in
  17494.     hppa*64*|ia64*)
  17495.       archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  17496.       ;;
  17497.     *)
  17498.       archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  17499.       ;;
  17500.     esac
  17501.       else
  17502.     case "$host_cpu" in
  17503.     hppa*64*|ia64*)
  17504.       archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  17505.       ;;
  17506.     *)
  17507.       archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  17508.       ;;
  17509.     esac
  17510.       fi
  17511.       if test "$with_gnu_ld" = no; then
  17512.     case "$host_cpu" in
  17513.     hppa*64*)
  17514.       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  17515.       hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  17516.       hardcode_libdir_separator_GCJ=:
  17517.       hardcode_direct_GCJ=no
  17518.       hardcode_shlibpath_var_GCJ=no
  17519.       ;;
  17520.     ia64*)
  17521.       hardcode_libdir_flag_spec_GCJ='-L$libdir'
  17522.       hardcode_direct_GCJ=no
  17523.       hardcode_shlibpath_var_GCJ=no
  17524.  
  17525.       # hardcode_minus_L: Not really in the search PATH,
  17526.       # but as the default location of the library.
  17527.       hardcode_minus_L_GCJ=yes
  17528.       ;;
  17529.     *)
  17530.       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  17531.       hardcode_libdir_separator_GCJ=:
  17532.       hardcode_direct_GCJ=yes
  17533.       export_dynamic_flag_spec_GCJ='${wl}-E'
  17534.  
  17535.       # hardcode_minus_L: Not really in the search PATH,
  17536.       # but as the default location of the library.
  17537.       hardcode_minus_L_GCJ=yes
  17538.       ;;
  17539.     esac
  17540.       fi
  17541.       ;;
  17542.  
  17543.     irix5* | irix6* | nonstopux*)
  17544.       if test "$GCC" = yes; then
  17545.     archive_cmds_GCJ='$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'
  17546.       else
  17547.     archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  17548.     hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  17549.       fi
  17550.       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  17551.       hardcode_libdir_separator_GCJ=:
  17552.       link_all_deplibs_GCJ=yes
  17553.       ;;
  17554.  
  17555.     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  17556.       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  17557.     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
  17558.       else
  17559.     archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
  17560.       fi
  17561.       hardcode_libdir_flag_spec_GCJ='-R$libdir'
  17562.       hardcode_direct_GCJ=yes
  17563.       hardcode_shlibpath_var_GCJ=no
  17564.       ;;
  17565.  
  17566.     newsos6)
  17567.       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17568.       hardcode_direct_GCJ=yes
  17569.       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  17570.       hardcode_libdir_separator_GCJ=:
  17571.       hardcode_shlibpath_var_GCJ=no
  17572.       ;;
  17573.  
  17574.     openbsd*)
  17575.       hardcode_direct_GCJ=yes
  17576.       hardcode_shlibpath_var_GCJ=no
  17577.       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  17578.     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  17579.     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  17580.     export_dynamic_flag_spec_GCJ='${wl}-E'
  17581.       else
  17582.        case $host_os in
  17583.      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  17584.        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  17585.        hardcode_libdir_flag_spec_GCJ='-R$libdir'
  17586.        ;;
  17587.      *)
  17588.        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  17589.        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  17590.        ;;
  17591.        esac
  17592.       fi
  17593.       ;;
  17594.  
  17595.     os2*)
  17596.       hardcode_libdir_flag_spec_GCJ='-L$libdir'
  17597.       hardcode_minus_L_GCJ=yes
  17598.       allow_undefined_flag_GCJ=unsupported
  17599.       archive_cmds_GCJ='$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'
  17600.       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  17601.       ;;
  17602.  
  17603.     osf3*)
  17604.       if test "$GCC" = yes; then
  17605.     allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  17606.     archive_cmds_GCJ='$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'
  17607.       else
  17608.     allow_undefined_flag_GCJ=' -expect_unresolved \*'
  17609.     archive_cmds_GCJ='$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'
  17610.       fi
  17611.       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  17612.       hardcode_libdir_separator_GCJ=:
  17613.       ;;
  17614.  
  17615.     osf4* | osf5*)    # as osf3* with the addition of -msym flag
  17616.       if test "$GCC" = yes; then
  17617.     allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  17618.     archive_cmds_GCJ='$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'
  17619.     hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  17620.       else
  17621.     allow_undefined_flag_GCJ=' -expect_unresolved \*'
  17622.     archive_cmds_GCJ='$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'
  17623.     archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  17624.     $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  17625.  
  17626.     # Both c and cxx compiler support -rpath directly
  17627.     hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  17628.       fi
  17629.       hardcode_libdir_separator_GCJ=:
  17630.       ;;
  17631.  
  17632.     sco3.2v5*)
  17633.       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17634.       hardcode_shlibpath_var_GCJ=no
  17635.       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  17636.       runpath_var=LD_RUN_PATH
  17637.       hardcode_runpath_var=yes
  17638.       ;;
  17639.  
  17640.     solaris*)
  17641.       no_undefined_flag_GCJ=' -z text'
  17642.       if test "$GCC" = yes; then
  17643.     archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  17644.     archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  17645.       $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  17646.       else
  17647.     archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17648.     archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  17649.       $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  17650.       fi
  17651.       hardcode_libdir_flag_spec_GCJ='-R$libdir'
  17652.       hardcode_shlibpath_var_GCJ=no
  17653.       case $host_os in
  17654.       solaris2.[0-5] | solaris2.[0-5].*) ;;
  17655.       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  17656.     whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  17657.       esac
  17658.       link_all_deplibs_GCJ=yes
  17659.       ;;
  17660.  
  17661.     sunos4*)
  17662.       if test "x$host_vendor" = xsequent; then
  17663.     # Use $CC to link under sequent, because it throws in some extra .o
  17664.     # files that make .init and .fini sections work.
  17665.     archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  17666.       else
  17667.     archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  17668.       fi
  17669.       hardcode_libdir_flag_spec_GCJ='-L$libdir'
  17670.       hardcode_direct_GCJ=yes
  17671.       hardcode_minus_L_GCJ=yes
  17672.       hardcode_shlibpath_var_GCJ=no
  17673.       ;;
  17674.  
  17675.     sysv4)
  17676.       case $host_vendor in
  17677.     sni)
  17678.       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17679.       hardcode_direct_GCJ=yes # is this really true???
  17680.     ;;
  17681.     siemens)
  17682.       ## LD is ld it makes a PLAMLIB
  17683.       ## CC just makes a GrossModule.
  17684.       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  17685.       reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  17686.       hardcode_direct_GCJ=no
  17687.         ;;
  17688.     motorola)
  17689.       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17690.       hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  17691.     ;;
  17692.       esac
  17693.       runpath_var='LD_RUN_PATH'
  17694.       hardcode_shlibpath_var_GCJ=no
  17695.       ;;
  17696.  
  17697.     sysv4.3*)
  17698.       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17699.       hardcode_shlibpath_var_GCJ=no
  17700.       export_dynamic_flag_spec_GCJ='-Bexport'
  17701.       ;;
  17702.  
  17703.     sysv4*MP*)
  17704.       if test -d /usr/nec; then
  17705.     archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17706.     hardcode_shlibpath_var_GCJ=no
  17707.     runpath_var=LD_RUN_PATH
  17708.     hardcode_runpath_var=yes
  17709.     ld_shlibs_GCJ=yes
  17710.       fi
  17711.       ;;
  17712.  
  17713.     sysv4.2uw2*)
  17714.       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  17715.       hardcode_direct_GCJ=yes
  17716.       hardcode_minus_L_GCJ=no
  17717.       hardcode_shlibpath_var_GCJ=no
  17718.       hardcode_runpath_var=yes
  17719.       runpath_var=LD_RUN_PATH
  17720.       ;;
  17721.  
  17722.    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
  17723.       no_undefined_flag_GCJ='${wl}-z ${wl}text'
  17724.       if test "$GCC" = yes; then
  17725.     archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  17726.       else
  17727.     archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  17728.       fi
  17729.       runpath_var='LD_RUN_PATH'
  17730.       hardcode_shlibpath_var_GCJ=no
  17731.       ;;
  17732.  
  17733.     sysv5*)
  17734.       no_undefined_flag_GCJ=' -z text'
  17735.       # $CC -shared without GNU ld will not create a library from C++
  17736.       # object files and a static libstdc++, better avoid it by now
  17737.       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17738.       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  17739.           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  17740.       hardcode_libdir_flag_spec_GCJ=
  17741.       hardcode_shlibpath_var_GCJ=no
  17742.       runpath_var='LD_RUN_PATH'
  17743.       ;;
  17744.  
  17745.     uts4*)
  17746.       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17747.       hardcode_libdir_flag_spec_GCJ='-L$libdir'
  17748.       hardcode_shlibpath_var_GCJ=no
  17749.       ;;
  17750.  
  17751.     *)
  17752.       ld_shlibs_GCJ=no
  17753.       ;;
  17754.     esac
  17755.   fi
  17756.  
  17757. echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  17758. echo "${ECHO_T}$ld_shlibs_GCJ" >&6
  17759. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  17760.  
  17761. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  17762. if test "$GCC" = yes; then
  17763.   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  17764. fi
  17765.  
  17766. #
  17767. # Do we need to explicitly link libc?
  17768. #
  17769. case "x$archive_cmds_need_lc_GCJ" in
  17770. x|xyes)
  17771.   # Assume -lc should be added
  17772.   archive_cmds_need_lc_GCJ=yes
  17773.  
  17774.   if test "$enable_shared" = yes && test "$GCC" = yes; then
  17775.     case $archive_cmds_GCJ in
  17776.     *'~'*)
  17777.       # FIXME: we may have to deal with multi-command sequences.
  17778.       ;;
  17779.     '$CC '*)
  17780.       # Test whether the compiler implicitly links with -lc since on some
  17781.       # systems, -lgcc has to come before -lc. If gcc already passes -lc
  17782.       # to ld, don't add -lc before -lgcc.
  17783.       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  17784. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  17785.       $rm conftest*
  17786.       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  17787.  
  17788.       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17789.   (eval $ac_compile) 2>&5
  17790.   ac_status=$?
  17791.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17792.   (exit $ac_status); } 2>conftest.err; then
  17793.         soname=conftest
  17794.         lib=conftest
  17795.         libobjs=conftest.$ac_objext
  17796.         deplibs=
  17797.         wl=$lt_prog_compiler_wl_GCJ
  17798.         compiler_flags=-v
  17799.         linker_flags=-v
  17800.         verstring=
  17801.         output_objdir=.
  17802.         libname=conftest
  17803.         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  17804.         allow_undefined_flag_GCJ=
  17805.         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  17806.   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  17807.   ac_status=$?
  17808.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17809.   (exit $ac_status); }
  17810.         then
  17811.       archive_cmds_need_lc_GCJ=no
  17812.         else
  17813.       archive_cmds_need_lc_GCJ=yes
  17814.         fi
  17815.         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  17816.       else
  17817.         cat conftest.err 1>&5
  17818.       fi
  17819.       $rm conftest*
  17820.       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  17821. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
  17822.       ;;
  17823.     esac
  17824.   fi
  17825.   ;;
  17826. esac
  17827.  
  17828. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  17829. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  17830. library_names_spec=
  17831. libname_spec='lib$name'
  17832. soname_spec=
  17833. shrext_cmds=".so"
  17834. postinstall_cmds=
  17835. postuninstall_cmds=
  17836. finish_cmds=
  17837. finish_eval=
  17838. shlibpath_var=
  17839. shlibpath_overrides_runpath=unknown
  17840. version_type=none
  17841. dynamic_linker="$host_os ld.so"
  17842. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  17843. if test "$GCC" = yes; then
  17844.   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  17845.   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  17846.     # if the path contains ";" then we assume it to be the separator
  17847.     # otherwise default to the standard path separator (i.e. ":") - it is
  17848.     # assumed that no part of a normal pathname contains ";" but that should
  17849.     # okay in the real world where ";" in dirpaths is itself problematic.
  17850.     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  17851.   else
  17852.     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  17853.   fi
  17854. else
  17855.   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  17856. fi
  17857. need_lib_prefix=unknown
  17858. hardcode_into_libs=no
  17859.  
  17860. # when you set need_version to no, make sure it does not cause -set_version
  17861. # flags to be left without arguments
  17862. need_version=unknown
  17863.  
  17864. case $host_os in
  17865. aix3*)
  17866.   version_type=linux
  17867.   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  17868.   shlibpath_var=LIBPATH
  17869.  
  17870.   # AIX 3 has no versioning support, so we append a major version to the name.
  17871.   soname_spec='${libname}${release}${shared_ext}$major'
  17872.   ;;
  17873.  
  17874. aix4* | aix5*)
  17875.   version_type=linux
  17876.   need_lib_prefix=no
  17877.   need_version=no
  17878.   hardcode_into_libs=yes
  17879.   if test "$host_cpu" = ia64; then
  17880.     # AIX 5 supports IA64
  17881.     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  17882.     shlibpath_var=LD_LIBRARY_PATH
  17883.   else
  17884.     # With GCC up to 2.95.x, collect2 would create an import file
  17885.     # for dependence libraries.  The import file would start with
  17886.     # the line `#! .'.  This would cause the generated library to
  17887.     # depend on `.', always an invalid library.  This was fixed in
  17888.     # development snapshots of GCC prior to 3.0.
  17889.     case $host_os in
  17890.       aix4 | aix4.[01] | aix4.[01].*)
  17891.       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  17892.        echo ' yes '
  17893.        echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  17894.     :
  17895.       else
  17896.     can_build_shared=no
  17897.       fi
  17898.       ;;
  17899.     esac
  17900.     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  17901.     # soname into executable. Probably we can add versioning support to
  17902.     # collect2, so additional links can be useful in future.
  17903.     if test "$aix_use_runtimelinking" = yes; then
  17904.       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  17905.       # instead of lib<name>.a to let people know that these are not
  17906.       # typical AIX shared libraries.
  17907.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17908.     else
  17909.       # We preserve .a as extension for shared libraries through AIX4.2
  17910.       # and later when we are not doing run time linking.
  17911.       library_names_spec='${libname}${release}.a $libname.a'
  17912.       soname_spec='${libname}${release}${shared_ext}$major'
  17913.     fi
  17914.     shlibpath_var=LIBPATH
  17915.   fi
  17916.   ;;
  17917.  
  17918. amigaos*)
  17919.   library_names_spec='$libname.ixlibrary $libname.a'
  17920.   # Create ${libname}_ixlibrary.a entries in /sys/libs.
  17921.   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'
  17922.   ;;
  17923.  
  17924. beos*)
  17925.   library_names_spec='${libname}${shared_ext}'
  17926.   dynamic_linker="$host_os ld.so"
  17927.   shlibpath_var=LIBRARY_PATH
  17928.   ;;
  17929.  
  17930. bsdi4*)
  17931.   version_type=linux
  17932.   need_version=no
  17933.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17934.   soname_spec='${libname}${release}${shared_ext}$major'
  17935.   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  17936.   shlibpath_var=LD_LIBRARY_PATH
  17937.   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  17938.   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  17939.   # the default ld.so.conf also contains /usr/contrib/lib and
  17940.   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  17941.   # libtool to hard-code these into programs
  17942.   ;;
  17943.  
  17944. cygwin* | mingw* | pw32*)
  17945.   version_type=windows
  17946.   shrext_cmds=".dll"
  17947.   need_version=no
  17948.   need_lib_prefix=no
  17949.  
  17950.   case $GCC,$host_os in
  17951.   yes,cygwin* | yes,mingw* | yes,pw32*)
  17952.     library_names_spec='$libname.dll.a'
  17953.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  17954.     postinstall_cmds='base_file=`basename \${file}`~
  17955.       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  17956.       dldir=$destdir/`dirname \$dlpath`~
  17957.       test -d \$dldir || mkdir -p \$dldir~
  17958.       $install_prog $dir/$dlname \$dldir/$dlname'
  17959.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  17960.       dlpath=$dir/\$dldll~
  17961.        $rm \$dlpath'
  17962.     shlibpath_overrides_runpath=yes
  17963.  
  17964.     case $host_os in
  17965.     cygwin*)
  17966.       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  17967.       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  17968.       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  17969.       ;;
  17970.     mingw*)
  17971.       # MinGW DLLs use traditional 'lib' prefix
  17972.       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  17973.       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  17974.       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  17975.         # It is most probably a Windows format PATH printed by
  17976.         # mingw gcc, but we are running on Cygwin. Gcc prints its search
  17977.         # path with ; separators, and with drive letters. We can handle the
  17978.         # drive letters (cygwin fileutils understands them), so leave them,
  17979.         # especially as we might pass files found there to a mingw objdump,
  17980.         # which wouldn't understand a cygwinified path. Ahh.
  17981.         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  17982.       else
  17983.         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  17984.       fi
  17985.       ;;
  17986.     pw32*)
  17987.       # pw32 DLLs use 'pw' prefix rather than 'lib'
  17988.       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  17989.       ;;
  17990.     esac
  17991.     ;;
  17992.  
  17993.   *)
  17994.     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  17995.     ;;
  17996.   esac
  17997.   dynamic_linker='Win32 ld.exe'
  17998.   # FIXME: first we should search . and the directory the executable is in
  17999.   shlibpath_var=PATH
  18000.   ;;
  18001.  
  18002. darwin* | rhapsody*)
  18003.   dynamic_linker="$host_os dyld"
  18004.   version_type=darwin
  18005.   need_lib_prefix=no
  18006.   need_version=no
  18007.   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  18008.   soname_spec='${libname}${release}${major}$shared_ext'
  18009.   shlibpath_overrides_runpath=yes
  18010.   shlibpath_var=DYLD_LIBRARY_PATH
  18011.   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  18012.   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  18013.   if test "$GCC" = yes; then
  18014.     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"`
  18015.   else
  18016.     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  18017.   fi
  18018.   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  18019.   ;;
  18020.  
  18021. dgux*)
  18022.   version_type=linux
  18023.   need_lib_prefix=no
  18024.   need_version=no
  18025.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  18026.   soname_spec='${libname}${release}${shared_ext}$major'
  18027.   shlibpath_var=LD_LIBRARY_PATH
  18028.   ;;
  18029.  
  18030. freebsd1*)
  18031.   dynamic_linker=no
  18032.   ;;
  18033.  
  18034. kfreebsd*-gnu)
  18035.   version_type=linux
  18036.   need_lib_prefix=no
  18037.   need_version=no
  18038.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  18039.   soname_spec='${libname}${release}${shared_ext}$major'
  18040.   shlibpath_var=LD_LIBRARY_PATH
  18041.   shlibpath_overrides_runpath=no
  18042.   hardcode_into_libs=yes
  18043.   dynamic_linker='GNU ld.so'
  18044.   ;;
  18045.  
  18046. freebsd*)
  18047.   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  18048.   version_type=freebsd-$objformat
  18049.   case $version_type in
  18050.     freebsd-elf*)
  18051.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  18052.       need_version=no
  18053.       need_lib_prefix=no
  18054.       ;;
  18055.     freebsd-*)
  18056.       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  18057.       need_version=yes
  18058.       ;;
  18059.   esac
  18060.   shlibpath_var=LD_LIBRARY_PATH
  18061.   case $host_os in
  18062.   freebsd2*)
  18063.     shlibpath_overrides_runpath=yes
  18064.     ;;
  18065.   freebsd3.01* | freebsdelf3.01*)
  18066.     shlibpath_overrides_runpath=yes
  18067.     hardcode_into_libs=yes
  18068.     ;;
  18069.   *) # from 3.2 on
  18070.     shlibpath_overrides_runpath=no
  18071.     hardcode_into_libs=yes
  18072.     ;;
  18073.   esac
  18074.   ;;
  18075.  
  18076. gnu*)
  18077.   version_type=linux
  18078.   need_lib_prefix=no
  18079.   need_version=no
  18080.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  18081.   soname_spec='${libname}${release}${shared_ext}$major'
  18082.   shlibpath_var=LD_LIBRARY_PATH
  18083.   hardcode_into_libs=yes
  18084.   ;;
  18085.  
  18086. hpux9* | hpux10* | hpux11*)
  18087.   # Give a soname corresponding to the major version so that dld.sl refuses to
  18088.   # link against other versions.
  18089.   version_type=sunos
  18090.   need_lib_prefix=no
  18091.   need_version=no
  18092.   case "$host_cpu" in
  18093.   ia64*)
  18094.     shrext_cmds='.so'
  18095.     hardcode_into_libs=yes
  18096.     dynamic_linker="$host_os dld.so"
  18097.     shlibpath_var=LD_LIBRARY_PATH
  18098.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  18099.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18100.     soname_spec='${libname}${release}${shared_ext}$major'
  18101.     if test "X$HPUX_IA64_MODE" = X32; then
  18102.       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  18103.     else
  18104.       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  18105.     fi
  18106.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  18107.     ;;
  18108.    hppa*64*)
  18109.      shrext_cmds='.sl'
  18110.      hardcode_into_libs=yes
  18111.      dynamic_linker="$host_os dld.sl"
  18112.      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  18113.      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  18114.      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18115.      soname_spec='${libname}${release}${shared_ext}$major'
  18116.      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  18117.      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  18118.      ;;
  18119.    *)
  18120.     shrext_cmds='.sl'
  18121.     dynamic_linker="$host_os dld.sl"
  18122.     shlibpath_var=SHLIB_PATH
  18123.     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  18124.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18125.     soname_spec='${libname}${release}${shared_ext}$major'
  18126.     ;;
  18127.   esac
  18128.   # HP-UX runs *really* slowly unless shared libraries are mode 555.
  18129.   postinstall_cmds='chmod 555 $lib'
  18130.   ;;
  18131.  
  18132. irix5* | irix6* | nonstopux*)
  18133.   case $host_os in
  18134.     nonstopux*) version_type=nonstopux ;;
  18135.     *)
  18136.     if test "$lt_cv_prog_gnu_ld" = yes; then
  18137.         version_type=linux
  18138.     else
  18139.         version_type=irix
  18140.     fi ;;
  18141.   esac
  18142.   need_lib_prefix=no
  18143.   need_version=no
  18144.   soname_spec='${libname}${release}${shared_ext}$major'
  18145.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  18146.   case $host_os in
  18147.   irix5* | nonstopux*)
  18148.     libsuff= shlibsuff=
  18149.     ;;
  18150.   *)
  18151.     case $LD in # libtool.m4 will add one of these switches to LD
  18152.     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  18153.       libsuff= shlibsuff= libmagic=32-bit;;
  18154.     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  18155.       libsuff=32 shlibsuff=N32 libmagic=N32;;
  18156.     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  18157.       libsuff=64 shlibsuff=64 libmagic=64-bit;;
  18158.     *) libsuff= shlibsuff= libmagic=never-match;;
  18159.     esac
  18160.     ;;
  18161.   esac
  18162.   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  18163.   shlibpath_overrides_runpath=no
  18164.   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  18165.   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  18166.   hardcode_into_libs=yes
  18167.   ;;
  18168.  
  18169. # No shared lib support for Linux oldld, aout, or coff.
  18170. linux*oldld* | linux*aout* | linux*coff*)
  18171.   dynamic_linker=no
  18172.   ;;
  18173.  
  18174. # This must be Linux ELF.
  18175. linux*)
  18176.   version_type=linux
  18177.   need_lib_prefix=no
  18178.   need_version=no
  18179.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18180.   soname_spec='${libname}${release}${shared_ext}$major'
  18181.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  18182.   shlibpath_var=LD_LIBRARY_PATH
  18183.   shlibpath_overrides_runpath=no
  18184.   # This implies no fast_install, which is unacceptable.
  18185.   # Some rework will be needed to allow for fast_install
  18186.   # before this can be enabled.
  18187.   hardcode_into_libs=yes
  18188.  
  18189.   # Append ld.so.conf contents to the search path
  18190.   if test -f /etc/ld.so.conf; then
  18191.     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
  18192.     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  18193.   fi
  18194.  
  18195.   # We used to test for /lib/ld.so.1 and disable shared libraries on
  18196.   # powerpc, because MkLinux only supported shared libraries with the
  18197.   # GNU dynamic linker.  Since this was broken with cross compilers,
  18198.   # most powerpc-linux boxes support dynamic linking these days and
  18199.   # people can always --disable-shared, the test was removed, and we
  18200.   # assume the GNU/Linux dynamic linker is in use.
  18201.   dynamic_linker='GNU/Linux ld.so'
  18202.   ;;
  18203.  
  18204. netbsdelf*-gnu)
  18205.   version_type=linux
  18206.   need_lib_prefix=no
  18207.   need_version=no
  18208.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  18209.   soname_spec='${libname}${release}${shared_ext}$major'
  18210.   shlibpath_var=LD_LIBRARY_PATH
  18211.   shlibpath_overrides_runpath=no
  18212.   hardcode_into_libs=yes
  18213.   dynamic_linker='NetBSD ld.elf_so'
  18214.   ;;
  18215.  
  18216. knetbsd*-gnu)
  18217.   version_type=linux
  18218.   need_lib_prefix=no
  18219.   need_version=no
  18220.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  18221.   soname_spec='${libname}${release}${shared_ext}$major'
  18222.   shlibpath_var=LD_LIBRARY_PATH
  18223.   shlibpath_overrides_runpath=no
  18224.   hardcode_into_libs=yes
  18225.   dynamic_linker='GNU ld.so'
  18226.   ;;
  18227.  
  18228. netbsd*)
  18229.   version_type=sunos
  18230.   need_lib_prefix=no
  18231.   need_version=no
  18232.   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  18233.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  18234.     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  18235.     dynamic_linker='NetBSD (a.out) ld.so'
  18236.   else
  18237.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  18238.     soname_spec='${libname}${release}${shared_ext}$major'
  18239.     dynamic_linker='NetBSD ld.elf_so'
  18240.   fi
  18241.   shlibpath_var=LD_LIBRARY_PATH
  18242.   shlibpath_overrides_runpath=yes
  18243.   hardcode_into_libs=yes
  18244.   ;;
  18245.  
  18246. newsos6)
  18247.   version_type=linux
  18248.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18249.   shlibpath_var=LD_LIBRARY_PATH
  18250.   shlibpath_overrides_runpath=yes
  18251.   ;;
  18252.  
  18253. nto-qnx*)
  18254.   version_type=linux
  18255.   need_lib_prefix=no
  18256.   need_version=no
  18257.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18258.   soname_spec='${libname}${release}${shared_ext}$major'
  18259.   shlibpath_var=LD_LIBRARY_PATH
  18260.   shlibpath_overrides_runpath=yes
  18261.   ;;
  18262.  
  18263. openbsd*)
  18264.   version_type=sunos
  18265.   need_lib_prefix=no
  18266.   need_version=yes
  18267.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  18268.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  18269.   shlibpath_var=LD_LIBRARY_PATH
  18270.   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  18271.     case $host_os in
  18272.       openbsd2.[89] | openbsd2.[89].*)
  18273.     shlibpath_overrides_runpath=no
  18274.     ;;
  18275.       *)
  18276.     shlibpath_overrides_runpath=yes
  18277.     ;;
  18278.       esac
  18279.   else
  18280.     shlibpath_overrides_runpath=yes
  18281.   fi
  18282.   ;;
  18283.  
  18284. os2*)
  18285.   libname_spec='$name'
  18286.   shrext_cmds=".dll"
  18287.   need_lib_prefix=no
  18288.   library_names_spec='$libname${shared_ext} $libname.a'
  18289.   dynamic_linker='OS/2 ld.exe'
  18290.   shlibpath_var=LIBPATH
  18291.   ;;
  18292.  
  18293. osf3* | osf4* | osf5*)
  18294.   version_type=osf
  18295.   need_lib_prefix=no
  18296.   need_version=no
  18297.   soname_spec='${libname}${release}${shared_ext}$major'
  18298.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18299.   shlibpath_var=LD_LIBRARY_PATH
  18300.   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  18301.   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  18302.   ;;
  18303.  
  18304. sco3.2v5*)
  18305.   version_type=osf
  18306.   soname_spec='${libname}${release}${shared_ext}$major'
  18307.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18308.   shlibpath_var=LD_LIBRARY_PATH
  18309.   ;;
  18310.  
  18311. solaris*)
  18312.   version_type=linux
  18313.   need_lib_prefix=no
  18314.   need_version=no
  18315.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18316.   soname_spec='${libname}${release}${shared_ext}$major'
  18317.   shlibpath_var=LD_LIBRARY_PATH
  18318.   shlibpath_overrides_runpath=yes
  18319.   hardcode_into_libs=yes
  18320.   # ldd complains unless libraries are executable
  18321.   postinstall_cmds='chmod +x $lib'
  18322.   ;;
  18323.  
  18324. sunos4*)
  18325.   version_type=sunos
  18326.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  18327.   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  18328.   shlibpath_var=LD_LIBRARY_PATH
  18329.   shlibpath_overrides_runpath=yes
  18330.   if test "$with_gnu_ld" = yes; then
  18331.     need_lib_prefix=no
  18332.   fi
  18333.   need_version=yes
  18334.   ;;
  18335.  
  18336. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  18337.   version_type=linux
  18338.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18339.   soname_spec='${libname}${release}${shared_ext}$major'
  18340.   shlibpath_var=LD_LIBRARY_PATH
  18341.   case $host_vendor in
  18342.     sni)
  18343.       shlibpath_overrides_runpath=no
  18344.       need_lib_prefix=no
  18345.       export_dynamic_flag_spec='${wl}-Blargedynsym'
  18346.       runpath_var=LD_RUN_PATH
  18347.       ;;
  18348.     siemens)
  18349.       need_lib_prefix=no
  18350.       ;;
  18351.     motorola)
  18352.       need_lib_prefix=no
  18353.       need_version=no
  18354.       shlibpath_overrides_runpath=no
  18355.       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  18356.       ;;
  18357.   esac
  18358.   ;;
  18359.  
  18360. sysv4*MP*)
  18361.   if test -d /usr/nec ;then
  18362.     version_type=linux
  18363.     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  18364.     soname_spec='$libname${shared_ext}.$major'
  18365.     shlibpath_var=LD_LIBRARY_PATH
  18366.   fi
  18367.   ;;
  18368.  
  18369. uts4*)
  18370.   version_type=linux
  18371.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18372.   soname_spec='${libname}${release}${shared_ext}$major'
  18373.   shlibpath_var=LD_LIBRARY_PATH
  18374.   ;;
  18375.  
  18376. *)
  18377.   dynamic_linker=no
  18378.   ;;
  18379. esac
  18380. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  18381. echo "${ECHO_T}$dynamic_linker" >&6
  18382. test "$dynamic_linker" = no && can_build_shared=no
  18383.  
  18384. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  18385. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  18386. hardcode_action_GCJ=
  18387. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  18388.    test -n "$runpath_var GCJ" || \
  18389.    test "X$hardcode_automatic_GCJ"="Xyes" ; then
  18390.  
  18391.   # We can hardcode non-existant directories.
  18392.   if test "$hardcode_direct_GCJ" != no &&
  18393.      # If the only mechanism to avoid hardcoding is shlibpath_var, we
  18394.      # have to relink, otherwise we might link with an installed library
  18395.      # when we should be linking with a yet-to-be-installed one
  18396.      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  18397.      test "$hardcode_minus_L_GCJ" != no; then
  18398.     # Linking always hardcodes the temporary library directory.
  18399.     hardcode_action_GCJ=relink
  18400.   else
  18401.     # We can link without hardcoding, and we can hardcode nonexisting dirs.
  18402.     hardcode_action_GCJ=immediate
  18403.   fi
  18404. else
  18405.   # We cannot hardcode anything, or else we can only hardcode existing
  18406.   # directories.
  18407.   hardcode_action_GCJ=unsupported
  18408. fi
  18409. echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  18410. echo "${ECHO_T}$hardcode_action_GCJ" >&6
  18411.  
  18412. if test "$hardcode_action_GCJ" = relink; then
  18413.   # Fast installation is not supported
  18414.   enable_fast_install=no
  18415. elif test "$shlibpath_overrides_runpath" = yes ||
  18416.      test "$enable_shared" = no; then
  18417.   # Fast installation is not necessary
  18418.   enable_fast_install=needless
  18419. fi
  18420.  
  18421. striplib=
  18422. old_striplib=
  18423. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  18424. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  18425. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  18426.   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  18427.   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  18428.   echo "$as_me:$LINENO: result: yes" >&5
  18429. echo "${ECHO_T}yes" >&6
  18430. else
  18431. # FIXME - insert some real tests, host_os isn't really good enough
  18432.   case $host_os in
  18433.    darwin*)
  18434.        if test -n "$STRIP" ; then
  18435.          striplib="$STRIP -x"
  18436.          echo "$as_me:$LINENO: result: yes" >&5
  18437. echo "${ECHO_T}yes" >&6
  18438.        else
  18439.   echo "$as_me:$LINENO: result: no" >&5
  18440. echo "${ECHO_T}no" >&6
  18441. fi
  18442.        ;;
  18443.    *)
  18444.   echo "$as_me:$LINENO: result: no" >&5
  18445. echo "${ECHO_T}no" >&6
  18446.     ;;
  18447.   esac
  18448. fi
  18449.  
  18450. if test "x$enable_dlopen" != xyes; then
  18451.   enable_dlopen=unknown
  18452.   enable_dlopen_self=unknown
  18453.   enable_dlopen_self_static=unknown
  18454. else
  18455.   lt_cv_dlopen=no
  18456.   lt_cv_dlopen_libs=
  18457.  
  18458.   case $host_os in
  18459.   beos*)
  18460.     lt_cv_dlopen="load_add_on"
  18461.     lt_cv_dlopen_libs=
  18462.     lt_cv_dlopen_self=yes
  18463.     ;;
  18464.  
  18465.   mingw* | pw32*)
  18466.     lt_cv_dlopen="LoadLibrary"
  18467.     lt_cv_dlopen_libs=
  18468.    ;;
  18469.  
  18470.   cygwin*)
  18471.     lt_cv_dlopen="dlopen"
  18472.     lt_cv_dlopen_libs=
  18473.    ;;
  18474.  
  18475.   darwin*)
  18476.   # if libdl is installed we need to link against it
  18477.     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  18478. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  18479. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  18480.   echo $ECHO_N "(cached) $ECHO_C" >&6
  18481. else
  18482.   ac_check_lib_save_LIBS=$LIBS
  18483. LIBS="-ldl  $LIBS"
  18484. cat >conftest.$ac_ext <<_ACEOF
  18485. /* confdefs.h.  */
  18486. _ACEOF
  18487. cat confdefs.h >>conftest.$ac_ext
  18488. cat >>conftest.$ac_ext <<_ACEOF
  18489. /* end confdefs.h.  */
  18490.  
  18491. /* Override any gcc2 internal prototype to avoid an error.  */
  18492. #ifdef __cplusplus
  18493. extern "C"
  18494. #endif
  18495. /* We use char because int might match the return type of a gcc2
  18496.    builtin and then its argument prototype would still apply.  */
  18497. char dlopen ();
  18498. int
  18499. main ()
  18500. {
  18501. dlopen ();
  18502.   ;
  18503.   return 0;
  18504. }
  18505. _ACEOF
  18506. rm -f conftest.$ac_objext conftest$ac_exeext
  18507. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18508.   (eval $ac_link) 2>conftest.er1
  18509.   ac_status=$?
  18510.   grep -v '^ *+' conftest.er1 >conftest.err
  18511.   rm -f conftest.er1
  18512.   cat conftest.err >&5
  18513.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18514.   (exit $ac_status); } &&
  18515.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  18516.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18517.   (eval $ac_try) 2>&5
  18518.   ac_status=$?
  18519.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18520.   (exit $ac_status); }; } &&
  18521.      { ac_try='test -s conftest$ac_exeext'
  18522.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18523.   (eval $ac_try) 2>&5
  18524.   ac_status=$?
  18525.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18526.   (exit $ac_status); }; }; then
  18527.   ac_cv_lib_dl_dlopen=yes
  18528. else
  18529.   echo "$as_me: failed program was:" >&5
  18530. sed 's/^/| /' conftest.$ac_ext >&5
  18531.  
  18532. ac_cv_lib_dl_dlopen=no
  18533. fi
  18534. rm -f conftest.err conftest.$ac_objext \
  18535.       conftest$ac_exeext conftest.$ac_ext
  18536. LIBS=$ac_check_lib_save_LIBS
  18537. fi
  18538. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  18539. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  18540. if test $ac_cv_lib_dl_dlopen = yes; then
  18541.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  18542. else
  18543.  
  18544.     lt_cv_dlopen="dyld"
  18545.     lt_cv_dlopen_libs=
  18546.     lt_cv_dlopen_self=yes
  18547.  
  18548. fi
  18549.  
  18550.    ;;
  18551.  
  18552.   *)
  18553.     echo "$as_me:$LINENO: checking for shl_load" >&5
  18554. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  18555. if test "${ac_cv_func_shl_load+set}" = set; then
  18556.   echo $ECHO_N "(cached) $ECHO_C" >&6
  18557. else
  18558.   cat >conftest.$ac_ext <<_ACEOF
  18559. /* confdefs.h.  */
  18560. _ACEOF
  18561. cat confdefs.h >>conftest.$ac_ext
  18562. cat >>conftest.$ac_ext <<_ACEOF
  18563. /* end confdefs.h.  */
  18564. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  18565.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  18566. #define shl_load innocuous_shl_load
  18567.  
  18568. /* System header to define __stub macros and hopefully few prototypes,
  18569.     which can conflict with char shl_load (); below.
  18570.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18571.     <limits.h> exists even on freestanding compilers.  */
  18572.  
  18573. #ifdef __STDC__
  18574. # include <limits.h>
  18575. #else
  18576. # include <assert.h>
  18577. #endif
  18578.  
  18579. #undef shl_load
  18580.  
  18581. /* Override any gcc2 internal prototype to avoid an error.  */
  18582. #ifdef __cplusplus
  18583. extern "C"
  18584. {
  18585. #endif
  18586. /* We use char because int might match the return type of a gcc2
  18587.    builtin and then its argument prototype would still apply.  */
  18588. char shl_load ();
  18589. /* The GNU C library defines this for functions which it implements
  18590.     to always fail with ENOSYS.  Some functions are actually named
  18591.     something starting with __ and the normal name is an alias.  */
  18592. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  18593. choke me
  18594. #else
  18595. char (*f) () = shl_load;
  18596. #endif
  18597. #ifdef __cplusplus
  18598. }
  18599. #endif
  18600.  
  18601. int
  18602. main ()
  18603. {
  18604. return f != shl_load;
  18605.   ;
  18606.   return 0;
  18607. }
  18608. _ACEOF
  18609. rm -f conftest.$ac_objext conftest$ac_exeext
  18610. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18611.   (eval $ac_link) 2>conftest.er1
  18612.   ac_status=$?
  18613.   grep -v '^ *+' conftest.er1 >conftest.err
  18614.   rm -f conftest.er1
  18615.   cat conftest.err >&5
  18616.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18617.   (exit $ac_status); } &&
  18618.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  18619.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18620.   (eval $ac_try) 2>&5
  18621.   ac_status=$?
  18622.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18623.   (exit $ac_status); }; } &&
  18624.      { ac_try='test -s conftest$ac_exeext'
  18625.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18626.   (eval $ac_try) 2>&5
  18627.   ac_status=$?
  18628.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18629.   (exit $ac_status); }; }; then
  18630.   ac_cv_func_shl_load=yes
  18631. else
  18632.   echo "$as_me: failed program was:" >&5
  18633. sed 's/^/| /' conftest.$ac_ext >&5
  18634.  
  18635. ac_cv_func_shl_load=no
  18636. fi
  18637. rm -f conftest.err conftest.$ac_objext \
  18638.       conftest$ac_exeext conftest.$ac_ext
  18639. fi
  18640. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  18641. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  18642. if test $ac_cv_func_shl_load = yes; then
  18643.   lt_cv_dlopen="shl_load"
  18644. else
  18645.   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  18646. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  18647. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  18648.   echo $ECHO_N "(cached) $ECHO_C" >&6
  18649. else
  18650.   ac_check_lib_save_LIBS=$LIBS
  18651. LIBS="-ldld  $LIBS"
  18652. cat >conftest.$ac_ext <<_ACEOF
  18653. /* confdefs.h.  */
  18654. _ACEOF
  18655. cat confdefs.h >>conftest.$ac_ext
  18656. cat >>conftest.$ac_ext <<_ACEOF
  18657. /* end confdefs.h.  */
  18658.  
  18659. /* Override any gcc2 internal prototype to avoid an error.  */
  18660. #ifdef __cplusplus
  18661. extern "C"
  18662. #endif
  18663. /* We use char because int might match the return type of a gcc2
  18664.    builtin and then its argument prototype would still apply.  */
  18665. char shl_load ();
  18666. int
  18667. main ()
  18668. {
  18669. shl_load ();
  18670.   ;
  18671.   return 0;
  18672. }
  18673. _ACEOF
  18674. rm -f conftest.$ac_objext conftest$ac_exeext
  18675. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18676.   (eval $ac_link) 2>conftest.er1
  18677.   ac_status=$?
  18678.   grep -v '^ *+' conftest.er1 >conftest.err
  18679.   rm -f conftest.er1
  18680.   cat conftest.err >&5
  18681.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18682.   (exit $ac_status); } &&
  18683.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  18684.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18685.   (eval $ac_try) 2>&5
  18686.   ac_status=$?
  18687.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18688.   (exit $ac_status); }; } &&
  18689.      { ac_try='test -s conftest$ac_exeext'
  18690.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18691.   (eval $ac_try) 2>&5
  18692.   ac_status=$?
  18693.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18694.   (exit $ac_status); }; }; then
  18695.   ac_cv_lib_dld_shl_load=yes
  18696. else
  18697.   echo "$as_me: failed program was:" >&5
  18698. sed 's/^/| /' conftest.$ac_ext >&5
  18699.  
  18700. ac_cv_lib_dld_shl_load=no
  18701. fi
  18702. rm -f conftest.err conftest.$ac_objext \
  18703.       conftest$ac_exeext conftest.$ac_ext
  18704. LIBS=$ac_check_lib_save_LIBS
  18705. fi
  18706. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  18707. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  18708. if test $ac_cv_lib_dld_shl_load = yes; then
  18709.   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  18710. else
  18711.   echo "$as_me:$LINENO: checking for dlopen" >&5
  18712. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  18713. if test "${ac_cv_func_dlopen+set}" = set; then
  18714.   echo $ECHO_N "(cached) $ECHO_C" >&6
  18715. else
  18716.   cat >conftest.$ac_ext <<_ACEOF
  18717. /* confdefs.h.  */
  18718. _ACEOF
  18719. cat confdefs.h >>conftest.$ac_ext
  18720. cat >>conftest.$ac_ext <<_ACEOF
  18721. /* end confdefs.h.  */
  18722. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  18723.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  18724. #define dlopen innocuous_dlopen
  18725.  
  18726. /* System header to define __stub macros and hopefully few prototypes,
  18727.     which can conflict with char dlopen (); below.
  18728.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18729.     <limits.h> exists even on freestanding compilers.  */
  18730.  
  18731. #ifdef __STDC__
  18732. # include <limits.h>
  18733. #else
  18734. # include <assert.h>
  18735. #endif
  18736.  
  18737. #undef dlopen
  18738.  
  18739. /* Override any gcc2 internal prototype to avoid an error.  */
  18740. #ifdef __cplusplus
  18741. extern "C"
  18742. {
  18743. #endif
  18744. /* We use char because int might match the return type of a gcc2
  18745.    builtin and then its argument prototype would still apply.  */
  18746. char dlopen ();
  18747. /* The GNU C library defines this for functions which it implements
  18748.     to always fail with ENOSYS.  Some functions are actually named
  18749.     something starting with __ and the normal name is an alias.  */
  18750. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  18751. choke me
  18752. #else
  18753. char (*f) () = dlopen;
  18754. #endif
  18755. #ifdef __cplusplus
  18756. }
  18757. #endif
  18758.  
  18759. int
  18760. main ()
  18761. {
  18762. return f != dlopen;
  18763.   ;
  18764.   return 0;
  18765. }
  18766. _ACEOF
  18767. rm -f conftest.$ac_objext conftest$ac_exeext
  18768. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18769.   (eval $ac_link) 2>conftest.er1
  18770.   ac_status=$?
  18771.   grep -v '^ *+' conftest.er1 >conftest.err
  18772.   rm -f conftest.er1
  18773.   cat conftest.err >&5
  18774.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18775.   (exit $ac_status); } &&
  18776.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  18777.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18778.   (eval $ac_try) 2>&5
  18779.   ac_status=$?
  18780.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18781.   (exit $ac_status); }; } &&
  18782.      { ac_try='test -s conftest$ac_exeext'
  18783.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18784.   (eval $ac_try) 2>&5
  18785.   ac_status=$?
  18786.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18787.   (exit $ac_status); }; }; then
  18788.   ac_cv_func_dlopen=yes
  18789. else
  18790.   echo "$as_me: failed program was:" >&5
  18791. sed 's/^/| /' conftest.$ac_ext >&5
  18792.  
  18793. ac_cv_func_dlopen=no
  18794. fi
  18795. rm -f conftest.err conftest.$ac_objext \
  18796.       conftest$ac_exeext conftest.$ac_ext
  18797. fi
  18798. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  18799. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  18800. if test $ac_cv_func_dlopen = yes; then
  18801.   lt_cv_dlopen="dlopen"
  18802. else
  18803.   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  18804. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  18805. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  18806.   echo $ECHO_N "(cached) $ECHO_C" >&6
  18807. else
  18808.   ac_check_lib_save_LIBS=$LIBS
  18809. LIBS="-ldl  $LIBS"
  18810. cat >conftest.$ac_ext <<_ACEOF
  18811. /* confdefs.h.  */
  18812. _ACEOF
  18813. cat confdefs.h >>conftest.$ac_ext
  18814. cat >>conftest.$ac_ext <<_ACEOF
  18815. /* end confdefs.h.  */
  18816.  
  18817. /* Override any gcc2 internal prototype to avoid an error.  */
  18818. #ifdef __cplusplus
  18819. extern "C"
  18820. #endif
  18821. /* We use char because int might match the return type of a gcc2
  18822.    builtin and then its argument prototype would still apply.  */
  18823. char dlopen ();
  18824. int
  18825. main ()
  18826. {
  18827. dlopen ();
  18828.   ;
  18829.   return 0;
  18830. }
  18831. _ACEOF
  18832. rm -f conftest.$ac_objext conftest$ac_exeext
  18833. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18834.   (eval $ac_link) 2>conftest.er1
  18835.   ac_status=$?
  18836.   grep -v '^ *+' conftest.er1 >conftest.err
  18837.   rm -f conftest.er1
  18838.   cat conftest.err >&5
  18839.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18840.   (exit $ac_status); } &&
  18841.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  18842.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18843.   (eval $ac_try) 2>&5
  18844.   ac_status=$?
  18845.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18846.   (exit $ac_status); }; } &&
  18847.      { ac_try='test -s conftest$ac_exeext'
  18848.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18849.   (eval $ac_try) 2>&5
  18850.   ac_status=$?
  18851.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18852.   (exit $ac_status); }; }; then
  18853.   ac_cv_lib_dl_dlopen=yes
  18854. else
  18855.   echo "$as_me: failed program was:" >&5
  18856. sed 's/^/| /' conftest.$ac_ext >&5
  18857.  
  18858. ac_cv_lib_dl_dlopen=no
  18859. fi
  18860. rm -f conftest.err conftest.$ac_objext \
  18861.       conftest$ac_exeext conftest.$ac_ext
  18862. LIBS=$ac_check_lib_save_LIBS
  18863. fi
  18864. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  18865. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  18866. if test $ac_cv_lib_dl_dlopen = yes; then
  18867.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  18868. else
  18869.   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  18870. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  18871. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  18872.   echo $ECHO_N "(cached) $ECHO_C" >&6
  18873. else
  18874.   ac_check_lib_save_LIBS=$LIBS
  18875. LIBS="-lsvld  $LIBS"
  18876. cat >conftest.$ac_ext <<_ACEOF
  18877. /* confdefs.h.  */
  18878. _ACEOF
  18879. cat confdefs.h >>conftest.$ac_ext
  18880. cat >>conftest.$ac_ext <<_ACEOF
  18881. /* end confdefs.h.  */
  18882.  
  18883. /* Override any gcc2 internal prototype to avoid an error.  */
  18884. #ifdef __cplusplus
  18885. extern "C"
  18886. #endif
  18887. /* We use char because int might match the return type of a gcc2
  18888.    builtin and then its argument prototype would still apply.  */
  18889. char dlopen ();
  18890. int
  18891. main ()
  18892. {
  18893. dlopen ();
  18894.   ;
  18895.   return 0;
  18896. }
  18897. _ACEOF
  18898. rm -f conftest.$ac_objext conftest$ac_exeext
  18899. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18900.   (eval $ac_link) 2>conftest.er1
  18901.   ac_status=$?
  18902.   grep -v '^ *+' conftest.er1 >conftest.err
  18903.   rm -f conftest.er1
  18904.   cat conftest.err >&5
  18905.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18906.   (exit $ac_status); } &&
  18907.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  18908.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18909.   (eval $ac_try) 2>&5
  18910.   ac_status=$?
  18911.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18912.   (exit $ac_status); }; } &&
  18913.      { ac_try='test -s conftest$ac_exeext'
  18914.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18915.   (eval $ac_try) 2>&5
  18916.   ac_status=$?
  18917.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18918.   (exit $ac_status); }; }; then
  18919.   ac_cv_lib_svld_dlopen=yes
  18920. else
  18921.   echo "$as_me: failed program was:" >&5
  18922. sed 's/^/| /' conftest.$ac_ext >&5
  18923.  
  18924. ac_cv_lib_svld_dlopen=no
  18925. fi
  18926. rm -f conftest.err conftest.$ac_objext \
  18927.       conftest$ac_exeext conftest.$ac_ext
  18928. LIBS=$ac_check_lib_save_LIBS
  18929. fi
  18930. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  18931. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  18932. if test $ac_cv_lib_svld_dlopen = yes; then
  18933.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  18934. else
  18935.   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  18936. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  18937. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  18938.   echo $ECHO_N "(cached) $ECHO_C" >&6
  18939. else
  18940.   ac_check_lib_save_LIBS=$LIBS
  18941. LIBS="-ldld  $LIBS"
  18942. cat >conftest.$ac_ext <<_ACEOF
  18943. /* confdefs.h.  */
  18944. _ACEOF
  18945. cat confdefs.h >>conftest.$ac_ext
  18946. cat >>conftest.$ac_ext <<_ACEOF
  18947. /* end confdefs.h.  */
  18948.  
  18949. /* Override any gcc2 internal prototype to avoid an error.  */
  18950. #ifdef __cplusplus
  18951. extern "C"
  18952. #endif
  18953. /* We use char because int might match the return type of a gcc2
  18954.    builtin and then its argument prototype would still apply.  */
  18955. char dld_link ();
  18956. int
  18957. main ()
  18958. {
  18959. dld_link ();
  18960.   ;
  18961.   return 0;
  18962. }
  18963. _ACEOF
  18964. rm -f conftest.$ac_objext conftest$ac_exeext
  18965. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18966.   (eval $ac_link) 2>conftest.er1
  18967.   ac_status=$?
  18968.   grep -v '^ *+' conftest.er1 >conftest.err
  18969.   rm -f conftest.er1
  18970.   cat conftest.err >&5
  18971.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18972.   (exit $ac_status); } &&
  18973.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  18974.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18975.   (eval $ac_try) 2>&5
  18976.   ac_status=$?
  18977.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18978.   (exit $ac_status); }; } &&
  18979.      { ac_try='test -s conftest$ac_exeext'
  18980.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18981.   (eval $ac_try) 2>&5
  18982.   ac_status=$?
  18983.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18984.   (exit $ac_status); }; }; then
  18985.   ac_cv_lib_dld_dld_link=yes
  18986. else
  18987.   echo "$as_me: failed program was:" >&5
  18988. sed 's/^/| /' conftest.$ac_ext >&5
  18989.  
  18990. ac_cv_lib_dld_dld_link=no
  18991. fi
  18992. rm -f conftest.err conftest.$ac_objext \
  18993.       conftest$ac_exeext conftest.$ac_ext
  18994. LIBS=$ac_check_lib_save_LIBS
  18995. fi
  18996. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  18997. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  18998. if test $ac_cv_lib_dld_dld_link = yes; then
  18999.   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  19000. fi
  19001.  
  19002.  
  19003. fi
  19004.  
  19005.  
  19006. fi
  19007.  
  19008.  
  19009. fi
  19010.  
  19011.  
  19012. fi
  19013.  
  19014.  
  19015. fi
  19016.  
  19017.     ;;
  19018.   esac
  19019.  
  19020.   if test "x$lt_cv_dlopen" != xno; then
  19021.     enable_dlopen=yes
  19022.   else
  19023.     enable_dlopen=no
  19024.   fi
  19025.  
  19026.   case $lt_cv_dlopen in
  19027.   dlopen)
  19028.     save_CPPFLAGS="$CPPFLAGS"
  19029.     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  19030.  
  19031.     save_LDFLAGS="$LDFLAGS"
  19032.     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  19033.  
  19034.     save_LIBS="$LIBS"
  19035.     LIBS="$lt_cv_dlopen_libs $LIBS"
  19036.  
  19037.     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  19038. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  19039. if test "${lt_cv_dlopen_self+set}" = set; then
  19040.   echo $ECHO_N "(cached) $ECHO_C" >&6
  19041. else
  19042.         if test "$cross_compiling" = yes; then :
  19043.   lt_cv_dlopen_self=cross
  19044. else
  19045.   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  19046.   lt_status=$lt_dlunknown
  19047.   cat > conftest.$ac_ext <<EOF
  19048. #line 19048 "configure"
  19049. #include "confdefs.h"
  19050.  
  19051. #if HAVE_DLFCN_H
  19052. #include <dlfcn.h>
  19053. #endif
  19054.  
  19055. #include <stdio.h>
  19056.  
  19057. #ifdef RTLD_GLOBAL
  19058. #  define LT_DLGLOBAL        RTLD_GLOBAL
  19059. #else
  19060. #  ifdef DL_GLOBAL
  19061. #    define LT_DLGLOBAL        DL_GLOBAL
  19062. #  else
  19063. #    define LT_DLGLOBAL        0
  19064. #  endif
  19065. #endif
  19066.  
  19067. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  19068.    find out it does not work in some platform. */
  19069. #ifndef LT_DLLAZY_OR_NOW
  19070. #  ifdef RTLD_LAZY
  19071. #    define LT_DLLAZY_OR_NOW        RTLD_LAZY
  19072. #  else
  19073. #    ifdef DL_LAZY
  19074. #      define LT_DLLAZY_OR_NOW        DL_LAZY
  19075. #    else
  19076. #      ifdef RTLD_NOW
  19077. #        define LT_DLLAZY_OR_NOW    RTLD_NOW
  19078. #      else
  19079. #        ifdef DL_NOW
  19080. #          define LT_DLLAZY_OR_NOW    DL_NOW
  19081. #        else
  19082. #          define LT_DLLAZY_OR_NOW    0
  19083. #        endif
  19084. #      endif
  19085. #    endif
  19086. #  endif
  19087. #endif
  19088.  
  19089. #ifdef __cplusplus
  19090. extern "C" void exit (int);
  19091. #endif
  19092.  
  19093. void fnord() { int i=42;}
  19094. int main ()
  19095. {
  19096.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  19097.   int status = $lt_dlunknown;
  19098.  
  19099.   if (self)
  19100.     {
  19101.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  19102.       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  19103.       /* dlclose (self); */
  19104.     }
  19105.  
  19106.     exit (status);
  19107. }
  19108. EOF
  19109.   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19110.   (eval $ac_link) 2>&5
  19111.   ac_status=$?
  19112.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19113.   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  19114.     (./conftest; exit; ) 2>/dev/null
  19115.     lt_status=$?
  19116.     case x$lt_status in
  19117.       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  19118.       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  19119.       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  19120.     esac
  19121.   else :
  19122.     # compilation failed
  19123.     lt_cv_dlopen_self=no
  19124.   fi
  19125. fi
  19126. rm -fr conftest*
  19127.  
  19128.  
  19129. fi
  19130. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  19131. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  19132.  
  19133.     if test "x$lt_cv_dlopen_self" = xyes; then
  19134.       LDFLAGS="$LDFLAGS $link_static_flag"
  19135.       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  19136. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  19137. if test "${lt_cv_dlopen_self_static+set}" = set; then
  19138.   echo $ECHO_N "(cached) $ECHO_C" >&6
  19139. else
  19140.         if test "$cross_compiling" = yes; then :
  19141.   lt_cv_dlopen_self_static=cross
  19142. else
  19143.   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  19144.   lt_status=$lt_dlunknown
  19145.   cat > conftest.$ac_ext <<EOF
  19146. #line 19146 "configure"
  19147. #include "confdefs.h"
  19148.  
  19149. #if HAVE_DLFCN_H
  19150. #include <dlfcn.h>
  19151. #endif
  19152.  
  19153. #include <stdio.h>
  19154.  
  19155. #ifdef RTLD_GLOBAL
  19156. #  define LT_DLGLOBAL        RTLD_GLOBAL
  19157. #else
  19158. #  ifdef DL_GLOBAL
  19159. #    define LT_DLGLOBAL        DL_GLOBAL
  19160. #  else
  19161. #    define LT_DLGLOBAL        0
  19162. #  endif
  19163. #endif
  19164.  
  19165. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  19166.    find out it does not work in some platform. */
  19167. #ifndef LT_DLLAZY_OR_NOW
  19168. #  ifdef RTLD_LAZY
  19169. #    define LT_DLLAZY_OR_NOW        RTLD_LAZY
  19170. #  else
  19171. #    ifdef DL_LAZY
  19172. #      define LT_DLLAZY_OR_NOW        DL_LAZY
  19173. #    else
  19174. #      ifdef RTLD_NOW
  19175. #        define LT_DLLAZY_OR_NOW    RTLD_NOW
  19176. #      else
  19177. #        ifdef DL_NOW
  19178. #          define LT_DLLAZY_OR_NOW    DL_NOW
  19179. #        else
  19180. #          define LT_DLLAZY_OR_NOW    0
  19181. #        endif
  19182. #      endif
  19183. #    endif
  19184. #  endif
  19185. #endif
  19186.  
  19187. #ifdef __cplusplus
  19188. extern "C" void exit (int);
  19189. #endif
  19190.  
  19191. void fnord() { int i=42;}
  19192. int main ()
  19193. {
  19194.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  19195.   int status = $lt_dlunknown;
  19196.  
  19197.   if (self)
  19198.     {
  19199.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  19200.       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  19201.       /* dlclose (self); */
  19202.     }
  19203.  
  19204.     exit (status);
  19205. }
  19206. EOF
  19207.   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19208.   (eval $ac_link) 2>&5
  19209.   ac_status=$?
  19210.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19211.   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  19212.     (./conftest; exit; ) 2>/dev/null
  19213.     lt_status=$?
  19214.     case x$lt_status in
  19215.       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  19216.       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  19217.       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  19218.     esac
  19219.   else :
  19220.     # compilation failed
  19221.     lt_cv_dlopen_self_static=no
  19222.   fi
  19223. fi
  19224. rm -fr conftest*
  19225.  
  19226.  
  19227. fi
  19228. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  19229. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  19230.     fi
  19231.  
  19232.     CPPFLAGS="$save_CPPFLAGS"
  19233.     LDFLAGS="$save_LDFLAGS"
  19234.     LIBS="$save_LIBS"
  19235.     ;;
  19236.   esac
  19237.  
  19238.   case $lt_cv_dlopen_self in
  19239.   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  19240.   *) enable_dlopen_self=unknown ;;
  19241.   esac
  19242.  
  19243.   case $lt_cv_dlopen_self_static in
  19244.   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  19245.   *) enable_dlopen_self_static=unknown ;;
  19246.   esac
  19247. fi
  19248.  
  19249.  
  19250. # The else clause should only fire when bootstrapping the
  19251. # libtool distribution, otherwise you forgot to ship ltmain.sh
  19252. # with your package, and you will get complaints that there are
  19253. # no rules to generate ltmain.sh.
  19254. if test -f "$ltmain"; then
  19255.   # See if we are running on zsh, and set the options which allow our commands through
  19256.   # without removal of \ escapes.
  19257.   if test -n "${ZSH_VERSION+set}" ; then
  19258.     setopt NO_GLOB_SUBST
  19259.   fi
  19260.   # Now quote all the things that may contain metacharacters while being
  19261.   # careful not to overquote the AC_SUBSTed values.  We take copies of the
  19262.   # variables and quote the copies for generation of the libtool script.
  19263.   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  19264.     SED SHELL STRIP \
  19265.     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  19266.     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  19267.     deplibs_check_method reload_flag reload_cmds need_locks \
  19268.     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  19269.     lt_cv_sys_global_symbol_to_c_name_address \
  19270.     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  19271.     old_postinstall_cmds old_postuninstall_cmds \
  19272.     compiler_GCJ \
  19273.     CC_GCJ \
  19274.     LD_GCJ \
  19275.     lt_prog_compiler_wl_GCJ \
  19276.     lt_prog_compiler_pic_GCJ \
  19277.     lt_prog_compiler_static_GCJ \
  19278.     lt_prog_compiler_no_builtin_flag_GCJ \
  19279.     export_dynamic_flag_spec_GCJ \
  19280.     thread_safe_flag_spec_GCJ \
  19281.     whole_archive_flag_spec_GCJ \
  19282.     enable_shared_with_static_runtimes_GCJ \
  19283.     old_archive_cmds_GCJ \
  19284.     old_archive_from_new_cmds_GCJ \
  19285.     predep_objects_GCJ \
  19286.     postdep_objects_GCJ \
  19287.     predeps_GCJ \
  19288.     postdeps_GCJ \
  19289.     compiler_lib_search_path_GCJ \
  19290.     archive_cmds_GCJ \
  19291.     archive_expsym_cmds_GCJ \
  19292.     postinstall_cmds_GCJ \
  19293.     postuninstall_cmds_GCJ \
  19294.     old_archive_from_expsyms_cmds_GCJ \
  19295.     allow_undefined_flag_GCJ \
  19296.     no_undefined_flag_GCJ \
  19297.     export_symbols_cmds_GCJ \
  19298.     hardcode_libdir_flag_spec_GCJ \
  19299.     hardcode_libdir_flag_spec_ld_GCJ \
  19300.     hardcode_libdir_separator_GCJ \
  19301.     hardcode_automatic_GCJ \
  19302.     module_cmds_GCJ \
  19303.     module_expsym_cmds_GCJ \
  19304.     lt_cv_prog_compiler_c_o_GCJ \
  19305.     exclude_expsyms_GCJ \
  19306.     include_expsyms_GCJ; do
  19307.  
  19308.     case $var in
  19309.     old_archive_cmds_GCJ | \
  19310.     old_archive_from_new_cmds_GCJ | \
  19311.     archive_cmds_GCJ | \
  19312.     archive_expsym_cmds_GCJ | \
  19313.     module_cmds_GCJ | \
  19314.     module_expsym_cmds_GCJ | \
  19315.     old_archive_from_expsyms_cmds_GCJ | \
  19316.     export_symbols_cmds_GCJ | \
  19317.     extract_expsyms_cmds | reload_cmds | finish_cmds | \
  19318.     postinstall_cmds | postuninstall_cmds | \
  19319.     old_postinstall_cmds | old_postuninstall_cmds | \
  19320.     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  19321.       # Double-quote double-evaled strings.
  19322.       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  19323.       ;;
  19324.     *)
  19325.       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  19326.       ;;
  19327.     esac
  19328.   done
  19329.  
  19330.   case $lt_echo in
  19331.   *'\$0 --fallback-echo"')
  19332.     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  19333.     ;;
  19334.   esac
  19335.  
  19336. cfgfile="$ofile"
  19337.  
  19338.   cat <<__EOF__ >> "$cfgfile"
  19339. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  19340.  
  19341. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  19342.  
  19343. # Shell to use when invoking shell scripts.
  19344. SHELL=$lt_SHELL
  19345.  
  19346. # Whether or not to build shared libraries.
  19347. build_libtool_libs=$enable_shared
  19348.  
  19349. # Whether or not to build static libraries.
  19350. build_old_libs=$enable_static
  19351.  
  19352. # Whether or not to add -lc for building shared libraries.
  19353. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  19354.  
  19355. # Whether or not to disallow shared libs when runtime libs are static
  19356. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  19357.  
  19358. # Whether or not to optimize for fast installation.
  19359. fast_install=$enable_fast_install
  19360.  
  19361. # The host system.
  19362. host_alias=$host_alias
  19363. host=$host
  19364.  
  19365. # An echo program that does not interpret backslashes.
  19366. echo=$lt_echo
  19367.  
  19368. # The archiver.
  19369. AR=$lt_AR
  19370. AR_FLAGS=$lt_AR_FLAGS
  19371.  
  19372. # A C compiler.
  19373. LTCC=$lt_LTCC
  19374.  
  19375. # A language-specific compiler.
  19376. CC=$lt_compiler_GCJ
  19377.  
  19378. # Is the compiler the GNU C compiler?
  19379. with_gcc=$GCC_GCJ
  19380.  
  19381. # An ERE matcher.
  19382. EGREP=$lt_EGREP
  19383.  
  19384. # The linker used to build libraries.
  19385. LD=$lt_LD_GCJ
  19386.  
  19387. # Whether we need hard or soft links.
  19388. LN_S=$lt_LN_S
  19389.  
  19390. # A BSD-compatible nm program.
  19391. NM=$lt_NM
  19392.  
  19393. # A symbol stripping program
  19394. STRIP=$lt_STRIP
  19395.  
  19396. # Used to examine libraries when file_magic_cmd begins "file"
  19397. MAGIC_CMD=$MAGIC_CMD
  19398.  
  19399. # Used on cygwin: DLL creation program.
  19400. DLLTOOL="$DLLTOOL"
  19401.  
  19402. # Used on cygwin: object dumper.
  19403. OBJDUMP="$OBJDUMP"
  19404.  
  19405. # Used on cygwin: assembler.
  19406. AS="$AS"
  19407.  
  19408. # The name of the directory that contains temporary libtool files.
  19409. objdir=$objdir
  19410.  
  19411. # How to create reloadable object files.
  19412. reload_flag=$lt_reload_flag
  19413. reload_cmds=$lt_reload_cmds
  19414.  
  19415. # How to pass a linker flag through the compiler.
  19416. wl=$lt_lt_prog_compiler_wl_GCJ
  19417.  
  19418. # Object file suffix (normally "o").
  19419. objext="$ac_objext"
  19420.  
  19421. # Old archive suffix (normally "a").
  19422. libext="$libext"
  19423.  
  19424. # Shared library suffix (normally ".so").
  19425. shrext_cmds='$shrext_cmds'
  19426.  
  19427. # Executable file suffix (normally "").
  19428. exeext="$exeext"
  19429.  
  19430. # Additional compiler flags for building library objects.
  19431. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  19432. pic_mode=$pic_mode
  19433.  
  19434. # What is the maximum length of a command?
  19435. max_cmd_len=$lt_cv_sys_max_cmd_len
  19436.  
  19437. # Does compiler simultaneously support -c and -o options?
  19438. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  19439.  
  19440. # Must we lock files when doing compilation ?
  19441. need_locks=$lt_need_locks
  19442.  
  19443. # Do we need the lib prefix for modules?
  19444. need_lib_prefix=$need_lib_prefix
  19445.  
  19446. # Do we need a version for libraries?
  19447. need_version=$need_version
  19448.  
  19449. # Whether dlopen is supported.
  19450. dlopen_support=$enable_dlopen
  19451.  
  19452. # Whether dlopen of programs is supported.
  19453. dlopen_self=$enable_dlopen_self
  19454.  
  19455. # Whether dlopen of statically linked programs is supported.
  19456. dlopen_self_static=$enable_dlopen_self_static
  19457.  
  19458. # Compiler flag to prevent dynamic linking.
  19459. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  19460.  
  19461. # Compiler flag to turn off builtin functions.
  19462. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  19463.  
  19464. # Compiler flag to allow reflexive dlopens.
  19465. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  19466.  
  19467. # Compiler flag to generate shared objects directly from archives.
  19468. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  19469.  
  19470. # Compiler flag to generate thread-safe objects.
  19471. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  19472.  
  19473. # Library versioning type.
  19474. version_type=$version_type
  19475.  
  19476. # Format of library name prefix.
  19477. libname_spec=$lt_libname_spec
  19478.  
  19479. # List of archive names.  First name is the real one, the rest are links.
  19480. # The last name is the one that the linker finds with -lNAME.
  19481. library_names_spec=$lt_library_names_spec
  19482.  
  19483. # The coded name of the library, if different from the real name.
  19484. soname_spec=$lt_soname_spec
  19485.  
  19486. # Commands used to build and install an old-style archive.
  19487. RANLIB=$lt_RANLIB
  19488. old_archive_cmds=$lt_old_archive_cmds_GCJ
  19489. old_postinstall_cmds=$lt_old_postinstall_cmds
  19490. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  19491.  
  19492. # Create an old-style archive from a shared archive.
  19493. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  19494.  
  19495. # Create a temporary old-style archive to link instead of a shared archive.
  19496. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  19497.  
  19498. # Commands used to build and install a shared archive.
  19499. archive_cmds=$lt_archive_cmds_GCJ
  19500. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  19501. postinstall_cmds=$lt_postinstall_cmds
  19502. postuninstall_cmds=$lt_postuninstall_cmds
  19503.  
  19504. # Commands used to build a loadable module (assumed same as above if empty)
  19505. module_cmds=$lt_module_cmds_GCJ
  19506. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  19507.  
  19508. # Commands to strip libraries.
  19509. old_striplib=$lt_old_striplib
  19510. striplib=$lt_striplib
  19511.  
  19512. # Dependencies to place before the objects being linked to create a
  19513. # shared library.
  19514. predep_objects=$lt_predep_objects_GCJ
  19515.  
  19516. # Dependencies to place after the objects being linked to create a
  19517. # shared library.
  19518. postdep_objects=$lt_postdep_objects_GCJ
  19519.  
  19520. # Dependencies to place before the objects being linked to create a
  19521. # shared library.
  19522. predeps=$lt_predeps_GCJ
  19523.  
  19524. # Dependencies to place after the objects being linked to create a
  19525. # shared library.
  19526. postdeps=$lt_postdeps_GCJ
  19527.  
  19528. # The library search path used internally by the compiler when linking
  19529. # a shared library.
  19530. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  19531.  
  19532. # Method to check whether dependent libraries are shared objects.
  19533. deplibs_check_method=$lt_deplibs_check_method
  19534.  
  19535. # Command to use when deplibs_check_method == file_magic.
  19536. file_magic_cmd=$lt_file_magic_cmd
  19537.  
  19538. # Flag that allows shared libraries with undefined symbols to be built.
  19539. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  19540.  
  19541. # Flag that forces no undefined symbols.
  19542. no_undefined_flag=$lt_no_undefined_flag_GCJ
  19543.  
  19544. # Commands used to finish a libtool library installation in a directory.
  19545. finish_cmds=$lt_finish_cmds
  19546.  
  19547. # Same as above, but a single script fragment to be evaled but not shown.
  19548. finish_eval=$lt_finish_eval
  19549.  
  19550. # Take the output of nm and produce a listing of raw symbols and C names.
  19551. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  19552.  
  19553. # Transform the output of nm in a proper C declaration
  19554. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  19555.  
  19556. # Transform the output of nm in a C name address pair
  19557. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  19558.  
  19559. # This is the shared library runtime path variable.
  19560. runpath_var=$runpath_var
  19561.  
  19562. # This is the shared library path variable.
  19563. shlibpath_var=$shlibpath_var
  19564.  
  19565. # Is shlibpath searched before the hard-coded library search path?
  19566. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  19567.  
  19568. # How to hardcode a shared library path into an executable.
  19569. hardcode_action=$hardcode_action_GCJ
  19570.  
  19571. # Whether we should hardcode library paths into libraries.
  19572. hardcode_into_libs=$hardcode_into_libs
  19573.  
  19574. # Flag to hardcode \$libdir into a binary during linking.
  19575. # This must work even if \$libdir does not exist.
  19576. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  19577.  
  19578. # If ld is used when linking, flag to hardcode \$libdir into
  19579. # a binary during linking. This must work even if \$libdir does
  19580. # not exist.
  19581. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  19582.  
  19583. # Whether we need a single -rpath flag with a separated argument.
  19584. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  19585.  
  19586. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  19587. # resulting binary.
  19588. hardcode_direct=$hardcode_direct_GCJ
  19589.  
  19590. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  19591. # resulting binary.
  19592. hardcode_minus_L=$hardcode_minus_L_GCJ
  19593.  
  19594. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  19595. # the resulting binary.
  19596. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  19597.  
  19598. # Set to yes if building a shared library automatically hardcodes DIR into the library
  19599. # and all subsequent libraries and executables linked against it.
  19600. hardcode_automatic=$hardcode_automatic_GCJ
  19601.  
  19602. # Variables whose values should be saved in libtool wrapper scripts and
  19603. # restored at relink time.
  19604. variables_saved_for_relink="$variables_saved_for_relink"
  19605.  
  19606. # Whether libtool must link a program against all its dependency libraries.
  19607. link_all_deplibs=$link_all_deplibs_GCJ
  19608.  
  19609. # Compile-time system search path for libraries
  19610. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  19611.  
  19612. # Run-time system search path for libraries
  19613. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  19614.  
  19615. # Fix the shell variable \$srcfile for the compiler.
  19616. fix_srcfile_path="$fix_srcfile_path_GCJ"
  19617.  
  19618. # Set to yes if exported symbols are required.
  19619. always_export_symbols=$always_export_symbols_GCJ
  19620.  
  19621. # The commands to list exported symbols.
  19622. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  19623.  
  19624. # The commands to extract the exported symbol list from a shared archive.
  19625. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  19626.  
  19627. # Symbols that should not be listed in the preloaded symbols.
  19628. exclude_expsyms=$lt_exclude_expsyms_GCJ
  19629.  
  19630. # Symbols that must always be exported.
  19631. include_expsyms=$lt_include_expsyms_GCJ
  19632.  
  19633. # ### END LIBTOOL TAG CONFIG: $tagname
  19634.  
  19635. __EOF__
  19636.  
  19637.  
  19638. else
  19639.   # If there is no Makefile yet, we rely on a make rule to execute
  19640.   # `config.status --recheck' to rerun these tests and create the
  19641.   # libtool script then.
  19642.   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  19643.   if test -f "$ltmain_in"; then
  19644.     test -f Makefile && make "$ltmain"
  19645.   fi
  19646. fi
  19647.  
  19648.  
  19649. ac_ext=cc
  19650. ac_cpp='$CXXCPP $CPPFLAGS'
  19651. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19652. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19653. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19654.  
  19655. CC="$lt_save_CC"
  19656.  
  19657.     else
  19658.       tagname=""
  19659.     fi
  19660.     ;;
  19661.  
  19662.       RC)
  19663.  
  19664.  
  19665.  
  19666. # Source file extension for RC test sources.
  19667. ac_ext=rc
  19668.  
  19669. # Object file extension for compiled RC test sources.
  19670. objext=o
  19671. objext_RC=$objext
  19672.  
  19673. # Code to be used in simple compile tests
  19674. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  19675.  
  19676. # Code to be used in simple link tests
  19677. lt_simple_link_test_code="$lt_simple_compile_test_code"
  19678.  
  19679. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  19680.  
  19681. # If no C compiler was specified, use CC.
  19682. LTCC=${LTCC-"$CC"}
  19683.  
  19684. # Allow CC to be a program name with arguments.
  19685. compiler=$CC
  19686.  
  19687.  
  19688. # Allow CC to be a program name with arguments.
  19689. lt_save_CC="$CC"
  19690. CC=${RC-"windres"}
  19691. compiler=$CC
  19692. compiler_RC=$CC
  19693. lt_cv_prog_compiler_c_o_RC=yes
  19694.  
  19695. # The else clause should only fire when bootstrapping the
  19696. # libtool distribution, otherwise you forgot to ship ltmain.sh
  19697. # with your package, and you will get complaints that there are
  19698. # no rules to generate ltmain.sh.
  19699. if test -f "$ltmain"; then
  19700.   # See if we are running on zsh, and set the options which allow our commands through
  19701.   # without removal of \ escapes.
  19702.   if test -n "${ZSH_VERSION+set}" ; then
  19703.     setopt NO_GLOB_SUBST
  19704.   fi
  19705.   # Now quote all the things that may contain metacharacters while being
  19706.   # careful not to overquote the AC_SUBSTed values.  We take copies of the
  19707.   # variables and quote the copies for generation of the libtool script.
  19708.   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  19709.     SED SHELL STRIP \
  19710.     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  19711.     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  19712.     deplibs_check_method reload_flag reload_cmds need_locks \
  19713.     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  19714.     lt_cv_sys_global_symbol_to_c_name_address \
  19715.     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  19716.     old_postinstall_cmds old_postuninstall_cmds \
  19717.     compiler_RC \
  19718.     CC_RC \
  19719.     LD_RC \
  19720.     lt_prog_compiler_wl_RC \
  19721.     lt_prog_compiler_pic_RC \
  19722.     lt_prog_compiler_static_RC \
  19723.     lt_prog_compiler_no_builtin_flag_RC \
  19724.     export_dynamic_flag_spec_RC \
  19725.     thread_safe_flag_spec_RC \
  19726.     whole_archive_flag_spec_RC \
  19727.     enable_shared_with_static_runtimes_RC \
  19728.     old_archive_cmds_RC \
  19729.     old_archive_from_new_cmds_RC \
  19730.     predep_objects_RC \
  19731.     postdep_objects_RC \
  19732.     predeps_RC \
  19733.     postdeps_RC \
  19734.     compiler_lib_search_path_RC \
  19735.     archive_cmds_RC \
  19736.     archive_expsym_cmds_RC \
  19737.     postinstall_cmds_RC \
  19738.     postuninstall_cmds_RC \
  19739.     old_archive_from_expsyms_cmds_RC \
  19740.     allow_undefined_flag_RC \
  19741.     no_undefined_flag_RC \
  19742.     export_symbols_cmds_RC \
  19743.     hardcode_libdir_flag_spec_RC \
  19744.     hardcode_libdir_flag_spec_ld_RC \
  19745.     hardcode_libdir_separator_RC \
  19746.     hardcode_automatic_RC \
  19747.     module_cmds_RC \
  19748.     module_expsym_cmds_RC \
  19749.     lt_cv_prog_compiler_c_o_RC \
  19750.     exclude_expsyms_RC \
  19751.     include_expsyms_RC; do
  19752.  
  19753.     case $var in
  19754.     old_archive_cmds_RC | \
  19755.     old_archive_from_new_cmds_RC | \
  19756.     archive_cmds_RC | \
  19757.     archive_expsym_cmds_RC | \
  19758.     module_cmds_RC | \
  19759.     module_expsym_cmds_RC | \
  19760.     old_archive_from_expsyms_cmds_RC | \
  19761.     export_symbols_cmds_RC | \
  19762.     extract_expsyms_cmds | reload_cmds | finish_cmds | \
  19763.     postinstall_cmds | postuninstall_cmds | \
  19764.     old_postinstall_cmds | old_postuninstall_cmds | \
  19765.     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  19766.       # Double-quote double-evaled strings.
  19767.       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  19768.       ;;
  19769.     *)
  19770.       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  19771.       ;;
  19772.     esac
  19773.   done
  19774.  
  19775.   case $lt_echo in
  19776.   *'\$0 --fallback-echo"')
  19777.     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  19778.     ;;
  19779.   esac
  19780.  
  19781. cfgfile="$ofile"
  19782.  
  19783.   cat <<__EOF__ >> "$cfgfile"
  19784. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  19785.  
  19786. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  19787.  
  19788. # Shell to use when invoking shell scripts.
  19789. SHELL=$lt_SHELL
  19790.  
  19791. # Whether or not to build shared libraries.
  19792. build_libtool_libs=$enable_shared
  19793.  
  19794. # Whether or not to build static libraries.
  19795. build_old_libs=$enable_static
  19796.  
  19797. # Whether or not to add -lc for building shared libraries.
  19798. build_libtool_need_lc=$archive_cmds_need_lc_RC
  19799.  
  19800. # Whether or not to disallow shared libs when runtime libs are static
  19801. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  19802.  
  19803. # Whether or not to optimize for fast installation.
  19804. fast_install=$enable_fast_install
  19805.  
  19806. # The host system.
  19807. host_alias=$host_alias
  19808. host=$host
  19809.  
  19810. # An echo program that does not interpret backslashes.
  19811. echo=$lt_echo
  19812.  
  19813. # The archiver.
  19814. AR=$lt_AR
  19815. AR_FLAGS=$lt_AR_FLAGS
  19816.  
  19817. # A C compiler.
  19818. LTCC=$lt_LTCC
  19819.  
  19820. # A language-specific compiler.
  19821. CC=$lt_compiler_RC
  19822.  
  19823. # Is the compiler the GNU C compiler?
  19824. with_gcc=$GCC_RC
  19825.  
  19826. # An ERE matcher.
  19827. EGREP=$lt_EGREP
  19828.  
  19829. # The linker used to build libraries.
  19830. LD=$lt_LD_RC
  19831.  
  19832. # Whether we need hard or soft links.
  19833. LN_S=$lt_LN_S
  19834.  
  19835. # A BSD-compatible nm program.
  19836. NM=$lt_NM
  19837.  
  19838. # A symbol stripping program
  19839. STRIP=$lt_STRIP
  19840.  
  19841. # Used to examine libraries when file_magic_cmd begins "file"
  19842. MAGIC_CMD=$MAGIC_CMD
  19843.  
  19844. # Used on cygwin: DLL creation program.
  19845. DLLTOOL="$DLLTOOL"
  19846.  
  19847. # Used on cygwin: object dumper.
  19848. OBJDUMP="$OBJDUMP"
  19849.  
  19850. # Used on cygwin: assembler.
  19851. AS="$AS"
  19852.  
  19853. # The name of the directory that contains temporary libtool files.
  19854. objdir=$objdir
  19855.  
  19856. # How to create reloadable object files.
  19857. reload_flag=$lt_reload_flag
  19858. reload_cmds=$lt_reload_cmds
  19859.  
  19860. # How to pass a linker flag through the compiler.
  19861. wl=$lt_lt_prog_compiler_wl_RC
  19862.  
  19863. # Object file suffix (normally "o").
  19864. objext="$ac_objext"
  19865.  
  19866. # Old archive suffix (normally "a").
  19867. libext="$libext"
  19868.  
  19869. # Shared library suffix (normally ".so").
  19870. shrext_cmds='$shrext_cmds'
  19871.  
  19872. # Executable file suffix (normally "").
  19873. exeext="$exeext"
  19874.  
  19875. # Additional compiler flags for building library objects.
  19876. pic_flag=$lt_lt_prog_compiler_pic_RC
  19877. pic_mode=$pic_mode
  19878.  
  19879. # What is the maximum length of a command?
  19880. max_cmd_len=$lt_cv_sys_max_cmd_len
  19881.  
  19882. # Does compiler simultaneously support -c and -o options?
  19883. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  19884.  
  19885. # Must we lock files when doing compilation ?
  19886. need_locks=$lt_need_locks
  19887.  
  19888. # Do we need the lib prefix for modules?
  19889. need_lib_prefix=$need_lib_prefix
  19890.  
  19891. # Do we need a version for libraries?
  19892. need_version=$need_version
  19893.  
  19894. # Whether dlopen is supported.
  19895. dlopen_support=$enable_dlopen
  19896.  
  19897. # Whether dlopen of programs is supported.
  19898. dlopen_self=$enable_dlopen_self
  19899.  
  19900. # Whether dlopen of statically linked programs is supported.
  19901. dlopen_self_static=$enable_dlopen_self_static
  19902.  
  19903. # Compiler flag to prevent dynamic linking.
  19904. link_static_flag=$lt_lt_prog_compiler_static_RC
  19905.  
  19906. # Compiler flag to turn off builtin functions.
  19907. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  19908.  
  19909. # Compiler flag to allow reflexive dlopens.
  19910. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  19911.  
  19912. # Compiler flag to generate shared objects directly from archives.
  19913. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  19914.  
  19915. # Compiler flag to generate thread-safe objects.
  19916. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  19917.  
  19918. # Library versioning type.
  19919. version_type=$version_type
  19920.  
  19921. # Format of library name prefix.
  19922. libname_spec=$lt_libname_spec
  19923.  
  19924. # List of archive names.  First name is the real one, the rest are links.
  19925. # The last name is the one that the linker finds with -lNAME.
  19926. library_names_spec=$lt_library_names_spec
  19927.  
  19928. # The coded name of the library, if different from the real name.
  19929. soname_spec=$lt_soname_spec
  19930.  
  19931. # Commands used to build and install an old-style archive.
  19932. RANLIB=$lt_RANLIB
  19933. old_archive_cmds=$lt_old_archive_cmds_RC
  19934. old_postinstall_cmds=$lt_old_postinstall_cmds
  19935. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  19936.  
  19937. # Create an old-style archive from a shared archive.
  19938. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  19939.  
  19940. # Create a temporary old-style archive to link instead of a shared archive.
  19941. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  19942.  
  19943. # Commands used to build and install a shared archive.
  19944. archive_cmds=$lt_archive_cmds_RC
  19945. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  19946. postinstall_cmds=$lt_postinstall_cmds
  19947. postuninstall_cmds=$lt_postuninstall_cmds
  19948.  
  19949. # Commands used to build a loadable module (assumed same as above if empty)
  19950. module_cmds=$lt_module_cmds_RC
  19951. module_expsym_cmds=$lt_module_expsym_cmds_RC
  19952.  
  19953. # Commands to strip libraries.
  19954. old_striplib=$lt_old_striplib
  19955. striplib=$lt_striplib
  19956.  
  19957. # Dependencies to place before the objects being linked to create a
  19958. # shared library.
  19959. predep_objects=$lt_predep_objects_RC
  19960.  
  19961. # Dependencies to place after the objects being linked to create a
  19962. # shared library.
  19963. postdep_objects=$lt_postdep_objects_RC
  19964.  
  19965. # Dependencies to place before the objects being linked to create a
  19966. # shared library.
  19967. predeps=$lt_predeps_RC
  19968.  
  19969. # Dependencies to place after the objects being linked to create a
  19970. # shared library.
  19971. postdeps=$lt_postdeps_RC
  19972.  
  19973. # The library search path used internally by the compiler when linking
  19974. # a shared library.
  19975. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  19976.  
  19977. # Method to check whether dependent libraries are shared objects.
  19978. deplibs_check_method=$lt_deplibs_check_method
  19979.  
  19980. # Command to use when deplibs_check_method == file_magic.
  19981. file_magic_cmd=$lt_file_magic_cmd
  19982.  
  19983. # Flag that allows shared libraries with undefined symbols to be built.
  19984. allow_undefined_flag=$lt_allow_undefined_flag_RC
  19985.  
  19986. # Flag that forces no undefined symbols.
  19987. no_undefined_flag=$lt_no_undefined_flag_RC
  19988.  
  19989. # Commands used to finish a libtool library installation in a directory.
  19990. finish_cmds=$lt_finish_cmds
  19991.  
  19992. # Same as above, but a single script fragment to be evaled but not shown.
  19993. finish_eval=$lt_finish_eval
  19994.  
  19995. # Take the output of nm and produce a listing of raw symbols and C names.
  19996. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  19997.  
  19998. # Transform the output of nm in a proper C declaration
  19999. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  20000.  
  20001. # Transform the output of nm in a C name address pair
  20002. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  20003.  
  20004. # This is the shared library runtime path variable.
  20005. runpath_var=$runpath_var
  20006.  
  20007. # This is the shared library path variable.
  20008. shlibpath_var=$shlibpath_var
  20009.  
  20010. # Is shlibpath searched before the hard-coded library search path?
  20011. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  20012.  
  20013. # How to hardcode a shared library path into an executable.
  20014. hardcode_action=$hardcode_action_RC
  20015.  
  20016. # Whether we should hardcode library paths into libraries.
  20017. hardcode_into_libs=$hardcode_into_libs
  20018.  
  20019. # Flag to hardcode \$libdir into a binary during linking.
  20020. # This must work even if \$libdir does not exist.
  20021. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  20022.  
  20023. # If ld is used when linking, flag to hardcode \$libdir into
  20024. # a binary during linking. This must work even if \$libdir does
  20025. # not exist.
  20026. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  20027.  
  20028. # Whether we need a single -rpath flag with a separated argument.
  20029. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  20030.  
  20031. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  20032. # resulting binary.
  20033. hardcode_direct=$hardcode_direct_RC
  20034.  
  20035. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  20036. # resulting binary.
  20037. hardcode_minus_L=$hardcode_minus_L_RC
  20038.  
  20039. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  20040. # the resulting binary.
  20041. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  20042.  
  20043. # Set to yes if building a shared library automatically hardcodes DIR into the library
  20044. # and all subsequent libraries and executables linked against it.
  20045. hardcode_automatic=$hardcode_automatic_RC
  20046.  
  20047. # Variables whose values should be saved in libtool wrapper scripts and
  20048. # restored at relink time.
  20049. variables_saved_for_relink="$variables_saved_for_relink"
  20050.  
  20051. # Whether libtool must link a program against all its dependency libraries.
  20052. link_all_deplibs=$link_all_deplibs_RC
  20053.  
  20054. # Compile-time system search path for libraries
  20055. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  20056.  
  20057. # Run-time system search path for libraries
  20058. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  20059.  
  20060. # Fix the shell variable \$srcfile for the compiler.
  20061. fix_srcfile_path="$fix_srcfile_path_RC"
  20062.  
  20063. # Set to yes if exported symbols are required.
  20064. always_export_symbols=$always_export_symbols_RC
  20065.  
  20066. # The commands to list exported symbols.
  20067. export_symbols_cmds=$lt_export_symbols_cmds_RC
  20068.  
  20069. # The commands to extract the exported symbol list from a shared archive.
  20070. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  20071.  
  20072. # Symbols that should not be listed in the preloaded symbols.
  20073. exclude_expsyms=$lt_exclude_expsyms_RC
  20074.  
  20075. # Symbols that must always be exported.
  20076. include_expsyms=$lt_include_expsyms_RC
  20077.  
  20078. # ### END LIBTOOL TAG CONFIG: $tagname
  20079.  
  20080. __EOF__
  20081.  
  20082.  
  20083. else
  20084.   # If there is no Makefile yet, we rely on a make rule to execute
  20085.   # `config.status --recheck' to rerun these tests and create the
  20086.   # libtool script then.
  20087.   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  20088.   if test -f "$ltmain_in"; then
  20089.     test -f Makefile && make "$ltmain"
  20090.   fi
  20091. fi
  20092.  
  20093.  
  20094. ac_ext=cc
  20095. ac_cpp='$CXXCPP $CPPFLAGS'
  20096. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20097. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20098. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  20099.  
  20100. CC="$lt_save_CC"
  20101.  
  20102.     ;;
  20103.  
  20104.       *)
  20105.     { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  20106. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  20107.    { (exit 1); exit 1; }; }
  20108.     ;;
  20109.       esac
  20110.  
  20111.       # Append the new tag name to the list of available tags.
  20112.       if test -n "$tagname" ; then
  20113.       available_tags="$available_tags $tagname"
  20114.     fi
  20115.     fi
  20116.   done
  20117.   IFS="$lt_save_ifs"
  20118.  
  20119.   # Now substitute the updated list of available tags.
  20120.   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  20121.     mv "${ofile}T" "$ofile"
  20122.     chmod +x "$ofile"
  20123.   else
  20124.     rm -f "${ofile}T"
  20125.     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  20126. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  20127.    { (exit 1); exit 1; }; }
  20128.   fi
  20129. fi
  20130.  
  20131.  
  20132.  
  20133. # This can be used to rebuild libtool when needed
  20134. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  20135.  
  20136. # Always use our own libtool.
  20137. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  20138.  
  20139. # Prevent multiple expansion
  20140.  
  20141.  
  20142.  
  20143.  
  20144.  
  20145.  
  20146.  
  20147.  
  20148.  
  20149.  
  20150.  
  20151.  
  20152.  
  20153.  
  20154.  
  20155.  
  20156.  
  20157.  
  20158.  
  20159.  
  20160.  
  20161.  
  20162.  
  20163. # Check whether --with-xml-prefix or --without-xml-prefix was given.
  20164. if test "${with_xml_prefix+set}" = set; then
  20165.   withval="$with_xml_prefix"
  20166.   xml_config_prefix="$withval"
  20167. else
  20168.   xml_config_prefix=""
  20169. fi;
  20170.  
  20171. # Check whether --with-xml-exec-prefix or --without-xml-exec-prefix was given.
  20172. if test "${with_xml_exec_prefix+set}" = set; then
  20173.   withval="$with_xml_exec_prefix"
  20174.   xml_config_exec_prefix="$withval"
  20175. else
  20176.   xml_config_exec_prefix=""
  20177. fi;
  20178. # Check whether --enable-xmltest or --disable-xmltest was given.
  20179. if test "${enable_xmltest+set}" = set; then
  20180.   enableval="$enable_xmltest"
  20181.  
  20182. else
  20183.   enable_xmltest=yes
  20184. fi;
  20185.  
  20186.   if test x$xml_config_exec_prefix != x ; then
  20187.      xml_config_args="$xml_config_args"
  20188.      if test x${XML2_CONFIG+set} != xset ; then
  20189.         XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  20190.      fi
  20191.   fi
  20192.   if test x$xml_config_prefix != x ; then
  20193.      xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  20194.      if test x${XML2_CONFIG+set} != xset ; then
  20195.         XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  20196.      fi
  20197.   fi
  20198.  
  20199.   # Extract the first word of "xml2-config", so it can be a program name with args.
  20200. set dummy xml2-config; ac_word=$2
  20201. echo "$as_me:$LINENO: checking for $ac_word" >&5
  20202. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  20203. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  20204.   echo $ECHO_N "(cached) $ECHO_C" >&6
  20205. else
  20206.   case $XML2_CONFIG in
  20207.   [\\/]* | ?:[\\/]*)
  20208.   ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  20209.   ;;
  20210.   *)
  20211.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20212. for as_dir in $PATH
  20213. do
  20214.   IFS=$as_save_IFS
  20215.   test -z "$as_dir" && as_dir=.
  20216.   for ac_exec_ext in '' $ac_executable_extensions; do
  20217.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20218.     ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20219.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20220.     break 2
  20221.   fi
  20222. done
  20223. done
  20224.  
  20225.   test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  20226.   ;;
  20227. esac
  20228. fi
  20229. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  20230.  
  20231. if test -n "$XML2_CONFIG"; then
  20232.   echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  20233. echo "${ECHO_T}$XML2_CONFIG" >&6
  20234. else
  20235.   echo "$as_me:$LINENO: result: no" >&5
  20236. echo "${ECHO_T}no" >&6
  20237. fi
  20238.  
  20239.   min_xml_version=2.6.6
  20240.   echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  20241. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6
  20242.   no_xml=""
  20243.   if test "$XML2_CONFIG" = "no" ; then
  20244.     no_xml=yes
  20245.   else
  20246.     XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  20247.     XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  20248.     xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  20249.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  20250.     xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  20251.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  20252.     xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  20253.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  20254.     if test "x$enable_xmltest" = "xyes" ; then
  20255.       ac_save_CPPFLAGS="$CPPFLAGS"
  20256.       ac_save_LIBS="$LIBS"
  20257.       CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  20258.       LIBS="$XML_LIBS $LIBS"
  20259.       rm -f conf.xmltest
  20260.       if test "$cross_compiling" = yes; then
  20261.   echo $ac_n "cross compiling; assumed OK... $ac_c"
  20262. else
  20263.   cat >conftest.$ac_ext <<_ACEOF
  20264. /* confdefs.h.  */
  20265. _ACEOF
  20266. cat confdefs.h >>conftest.$ac_ext
  20267. cat >>conftest.$ac_ext <<_ACEOF
  20268. /* end confdefs.h.  */
  20269.  
  20270. #include <stdlib.h>
  20271. #include <stdio.h>
  20272. #include <string.h>
  20273. #include <libxml/xmlversion.h>
  20274.  
  20275. int
  20276. main()
  20277. {
  20278.   int xml_major_version, xml_minor_version, xml_micro_version;
  20279.   int major, minor, micro;
  20280.   char *tmp_version;
  20281.  
  20282.   system("touch conf.xmltest");
  20283.  
  20284.   /* Capture xml2-config output via autoconf/configure variables */
  20285.   /* HP/UX 9 (%@#!) writes to sscanf strings */
  20286.   tmp_version = (char *)strdup("$min_xml_version");
  20287.   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
  20288.      printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  20289.      exit(1);
  20290.    }
  20291.    free(tmp_version);
  20292.  
  20293.    /* Capture the version information from the header files */
  20294.    tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  20295.    if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  20296.      printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  20297.      exit(1);
  20298.    }
  20299.    free(tmp_version);
  20300.  
  20301.  /* Compare xml2-config output to the libxml headers */
  20302.   if ((xml_major_version != $xml_config_major_version) ||
  20303.       (xml_minor_version != $xml_config_minor_version) ||
  20304.       (xml_micro_version != $xml_config_micro_version))
  20305.     {
  20306.       printf("*** libxml header files (version %d.%d.%d) do not match\n",
  20307.          xml_major_version, xml_minor_version, xml_micro_version);
  20308.       printf("*** xml2-config (version %d.%d.%d)\n",
  20309.          $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  20310.       return 1;
  20311.     }
  20312. /* Compare the headers to the library to make sure we match */
  20313.   /* Less than ideal -- doesn't provide us with return value feedback,
  20314.    * only exits if there's a serious mismatch between header and library.
  20315.    */
  20316.     LIBXML_TEST_VERSION;
  20317.  
  20318.     /* Test that the library is greater than our minimum version */
  20319.     if ((xml_major_version > major) ||
  20320.         ((xml_major_version == major) && (xml_minor_version > minor)) ||
  20321.         ((xml_major_version == major) && (xml_minor_version == minor) &&
  20322.         (xml_micro_version >= micro)))
  20323.       {
  20324.         return 0;
  20325.        }
  20326.      else
  20327.       {
  20328.         printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  20329.                xml_major_version, xml_minor_version, xml_micro_version);
  20330.         printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  20331.            major, minor, micro);
  20332.         printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  20333.         printf("***\n");
  20334.         printf("*** If you have already installed a sufficiently new version, this error\n");
  20335.         printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  20336.         printf("*** being found. The easiest way to fix this is to remove the old version\n");
  20337.         printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  20338.         printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  20339.         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  20340.         printf("*** so that the correct libraries are found at run-time))\n");
  20341.     }
  20342.   return 1;
  20343. }
  20344.  
  20345. _ACEOF
  20346. rm -f conftest$ac_exeext
  20347. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20348.   (eval $ac_link) 2>&5
  20349.   ac_status=$?
  20350.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20351.   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20352.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20353.   (eval $ac_try) 2>&5
  20354.   ac_status=$?
  20355.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20356.   (exit $ac_status); }; }; then
  20357.   :
  20358. else
  20359.   echo "$as_me: program exited with status $ac_status" >&5
  20360. echo "$as_me: failed program was:" >&5
  20361. sed 's/^/| /' conftest.$ac_ext >&5
  20362.  
  20363. ( exit $ac_status )
  20364. no_xml=yes
  20365. fi
  20366. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20367. fi
  20368.        CPPFLAGS="$ac_save_CPPFLAGS"
  20369.        LIBS="$ac_save_LIBS"
  20370.      fi
  20371.   fi
  20372.  
  20373.   if test "x$no_xml" = x ; then
  20374.      echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  20375. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6
  20376.      :
  20377.   else
  20378.      echo "$as_me:$LINENO: result: no" >&5
  20379. echo "${ECHO_T}no" >&6
  20380.      if test "$XML2_CONFIG" = "no" ; then
  20381.        echo "*** The xml2-config script installed by LIBXML could not be found"
  20382.        echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  20383.        echo "*** your path, or set the XML2_CONFIG environment variable to the"
  20384.        echo "*** full path to xml2-config."
  20385.      else
  20386.        if test -f conf.xmltest ; then
  20387.         :
  20388.        else
  20389.           echo "*** Could not run libxml test program, checking why..."
  20390.           CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  20391.           LIBS="$LIBS $XML_LIBS"
  20392.           cat >conftest.$ac_ext <<_ACEOF
  20393. /* confdefs.h.  */
  20394. _ACEOF
  20395. cat confdefs.h >>conftest.$ac_ext
  20396. cat >>conftest.$ac_ext <<_ACEOF
  20397. /* end confdefs.h.  */
  20398.  
  20399. #include <libxml/xmlversion.h>
  20400. #include <stdio.h>
  20401.  
  20402. int
  20403. main ()
  20404. {
  20405.  LIBXML_TEST_VERSION; return 0;
  20406.   ;
  20407.   return 0;
  20408. }
  20409. _ACEOF
  20410. rm -f conftest.$ac_objext conftest$ac_exeext
  20411. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20412.   (eval $ac_link) 2>conftest.er1
  20413.   ac_status=$?
  20414.   grep -v '^ *+' conftest.er1 >conftest.err
  20415.   rm -f conftest.er1
  20416.   cat conftest.err >&5
  20417.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20418.   (exit $ac_status); } &&
  20419.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  20420.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20421.   (eval $ac_try) 2>&5
  20422.   ac_status=$?
  20423.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20424.   (exit $ac_status); }; } &&
  20425.      { ac_try='test -s conftest$ac_exeext'
  20426.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20427.   (eval $ac_try) 2>&5
  20428.   ac_status=$?
  20429.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20430.   (exit $ac_status); }; }; then
  20431.    echo "*** The test program compiled, but did not run. This usually means"
  20432.           echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  20433.           echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  20434.           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  20435.           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
  20436.           echo "*** is required on your system"
  20437.           echo "***"
  20438.           echo "*** If you have an old version installed, it is best to remove it, although"
  20439.           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  20440. else
  20441.   echo "$as_me: failed program was:" >&5
  20442. sed 's/^/| /' conftest.$ac_ext >&5
  20443.  
  20444.  echo "*** The test program failed to compile or link. See the file config.log for the"
  20445.           echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  20446.           echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  20447.           echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  20448. fi
  20449. rm -f conftest.err conftest.$ac_objext \
  20450.       conftest$ac_exeext conftest.$ac_ext
  20451.           CPPFLAGS="$ac_save_CPPFLAGS"
  20452.           LIBS="$ac_save_LIBS"
  20453.        fi
  20454.      fi
  20455.  
  20456.      XML_CPPFLAGS=""
  20457.      XML_LIBS=""
  20458.      { { echo "$as_me:$LINENO: error:
  20459. *** Libxml is required to build gopchop; Available at
  20460. http://www.libxml.org/." >&5
  20461. echo "$as_me: error:
  20462. *** Libxml is required to build gopchop; Available at
  20463. http://www.libxml.org/." >&2;}
  20464.    { (exit 1); exit 1; }; }
  20465.   fi
  20466.  
  20467.  
  20468.   rm -f conf.xmltest
  20469.  
  20470.  
  20471. cat >confcache <<\_ACEOF
  20472. # This file is a shell script that caches the results of configure
  20473. # tests run on this system so they can be shared between configure
  20474. # scripts and configure runs, see configure's option --config-cache.
  20475. # It is not useful on other systems.  If it contains results you don't
  20476. # want to keep, you may remove or edit it.
  20477. #
  20478. # config.status only pays attention to the cache file if you give it
  20479. # the --recheck option to rerun configure.
  20480. #
  20481. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  20482. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  20483. # following values.
  20484.  
  20485. _ACEOF
  20486.  
  20487. # The following way of writing the cache mishandles newlines in values,
  20488. # but we know of no workaround that is simple, portable, and efficient.
  20489. # So, don't put newlines in cache variables' values.
  20490. # Ultrix sh set writes to stderr and can't be redirected directly,
  20491. # and sets the high bit in the cache file unless we assign to the vars.
  20492. {
  20493.   (set) 2>&1 |
  20494.     case `(ac_space=' '; set | grep ac_space) 2>&1` in
  20495.     *ac_space=\ *)
  20496.       # `set' does not quote correctly, so add quotes (double-quote
  20497.       # substitution turns \\\\ into \\, and sed turns \\ into \).
  20498.       sed -n \
  20499.     "s/'/'\\\\''/g;
  20500.       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  20501.       ;;
  20502.     *)
  20503.       # `set' quotes correctly as required by POSIX, so do not add quotes.
  20504.       sed -n \
  20505.     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  20506.       ;;
  20507.     esac;
  20508. } |
  20509.   sed '
  20510.      t clear
  20511.      : clear
  20512.      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  20513.      t end
  20514.      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  20515.      : end' >>confcache
  20516. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  20517.   if test -w $cache_file; then
  20518.     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  20519.     cat confcache >$cache_file
  20520.   else
  20521.     echo "not updating unwritable cache $cache_file"
  20522.   fi
  20523. fi
  20524. rm -f confcache
  20525.  
  20526.  
  20527. INCLUDES='-I$(top_srcdir)/include'
  20528.  
  20529.  
  20530. cat >confcache <<\_ACEOF
  20531. # This file is a shell script that caches the results of configure
  20532. # tests run on this system so they can be shared between configure
  20533. # scripts and configure runs, see configure's option --config-cache.
  20534. # It is not useful on other systems.  If it contains results you don't
  20535. # want to keep, you may remove or edit it.
  20536. #
  20537. # config.status only pays attention to the cache file if you give it
  20538. # the --recheck option to rerun configure.
  20539. #
  20540. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  20541. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  20542. # following values.
  20543.  
  20544. _ACEOF
  20545.  
  20546. # The following way of writing the cache mishandles newlines in values,
  20547. # but we know of no workaround that is simple, portable, and efficient.
  20548. # So, don't put newlines in cache variables' values.
  20549. # Ultrix sh set writes to stderr and can't be redirected directly,
  20550. # and sets the high bit in the cache file unless we assign to the vars.
  20551. {
  20552.   (set) 2>&1 |
  20553.     case `(ac_space=' '; set | grep ac_space) 2>&1` in
  20554.     *ac_space=\ *)
  20555.       # `set' does not quote correctly, so add quotes (double-quote
  20556.       # substitution turns \\\\ into \\, and sed turns \\ into \).
  20557.       sed -n \
  20558.     "s/'/'\\\\''/g;
  20559.       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  20560.       ;;
  20561.     *)
  20562.       # `set' quotes correctly as required by POSIX, so do not add quotes.
  20563.       sed -n \
  20564.     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  20565.       ;;
  20566.     esac;
  20567. } |
  20568.   sed '
  20569.      t clear
  20570.      : clear
  20571.      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  20572.      t end
  20573.      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  20574.      : end' >>confcache
  20575. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  20576.   if test -w $cache_file; then
  20577.     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  20578.     cat confcache >$cache_file
  20579.   else
  20580.     echo "not updating unwritable cache $cache_file"
  20581.   fi
  20582. fi
  20583. rm -f confcache
  20584.  
  20585. pkg_modules="gtk+-2.0 >= 2.0.0, libxml-2.0"
  20586.  
  20587.  
  20588. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  20589.     if test -n "$ac_tool_prefix"; then
  20590.   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  20591. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  20592. echo "$as_me:$LINENO: checking for $ac_word" >&5
  20593. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  20594. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  20595.   echo $ECHO_N "(cached) $ECHO_C" >&6
  20596. else
  20597.   case $PKG_CONFIG in
  20598.   [\\/]* | ?:[\\/]*)
  20599.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  20600.   ;;
  20601.   *)
  20602.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20603. for as_dir in $PATH
  20604. do
  20605.   IFS=$as_save_IFS
  20606.   test -z "$as_dir" && as_dir=.
  20607.   for ac_exec_ext in '' $ac_executable_extensions; do
  20608.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20609.     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20610.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20611.     break 2
  20612.   fi
  20613. done
  20614. done
  20615.  
  20616.   ;;
  20617. esac
  20618. fi
  20619. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  20620.  
  20621. if test -n "$PKG_CONFIG"; then
  20622.   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  20623. echo "${ECHO_T}$PKG_CONFIG" >&6
  20624. else
  20625.   echo "$as_me:$LINENO: result: no" >&5
  20626. echo "${ECHO_T}no" >&6
  20627. fi
  20628.  
  20629. fi
  20630. if test -z "$ac_cv_path_PKG_CONFIG"; then
  20631.   ac_pt_PKG_CONFIG=$PKG_CONFIG
  20632.   # Extract the first word of "pkg-config", so it can be a program name with args.
  20633. set dummy pkg-config; ac_word=$2
  20634. echo "$as_me:$LINENO: checking for $ac_word" >&5
  20635. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  20636. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  20637.   echo $ECHO_N "(cached) $ECHO_C" >&6
  20638. else
  20639.   case $ac_pt_PKG_CONFIG in
  20640.   [\\/]* | ?:[\\/]*)
  20641.   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  20642.   ;;
  20643.   *)
  20644.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20645. for as_dir in $PATH
  20646. do
  20647.   IFS=$as_save_IFS
  20648.   test -z "$as_dir" && as_dir=.
  20649.   for ac_exec_ext in '' $ac_executable_extensions; do
  20650.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20651.     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20652.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20653.     break 2
  20654.   fi
  20655. done
  20656. done
  20657.  
  20658.   ;;
  20659. esac
  20660. fi
  20661. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  20662.  
  20663. if test -n "$ac_pt_PKG_CONFIG"; then
  20664.   echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  20665. echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
  20666. else
  20667.   echo "$as_me:$LINENO: result: no" >&5
  20668. echo "${ECHO_T}no" >&6
  20669. fi
  20670.  
  20671.   PKG_CONFIG=$ac_pt_PKG_CONFIG
  20672. else
  20673.   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  20674. fi
  20675.  
  20676. fi
  20677. if test -n "$PKG_CONFIG"; then
  20678.     _pkg_min_version=0.9.0
  20679.     echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  20680. echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
  20681.     if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  20682.         echo "$as_me:$LINENO: result: yes" >&5
  20683. echo "${ECHO_T}yes" >&6
  20684.     else
  20685.         echo "$as_me:$LINENO: result: no" >&5
  20686. echo "${ECHO_T}no" >&6
  20687.         PKG_CONFIG=""
  20688.     fi
  20689.  
  20690. fi
  20691.  
  20692. pkg_failed=no
  20693. echo "$as_me:$LINENO: checking for PACKAGE_CFLAGS" >&5
  20694. echo $ECHO_N "checking for PACKAGE_CFLAGS... $ECHO_C" >&6
  20695. if test "${pkg_cv_PACKAGE_CFLAGS+set}" = set; then
  20696.   echo $ECHO_N "(cached) $ECHO_C" >&6
  20697. else
  20698.   if test "x$ac_cv_env_PACKAGE_CFLAGS_set" = "xset"; then
  20699.     pkg_cv_PACKAGE_CFLAGS=$ac_cv_env_PACKAGE_CFLAGS_value
  20700. elif test -n "$PKG_CONFIG"; then
  20701.     if { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists \"\$pkg_modules\" >/dev/null 2>&1") >&5
  20702.   ($PKG_CONFIG --exists "$pkg_modules" >/dev/null 2>&1) 2>&5
  20703.   ac_status=$?
  20704.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20705.   (exit $ac_status); }; then
  20706.         pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_modules" 2>/dev/null`
  20707.     else
  20708.         pkg_failed=yes
  20709.     fi
  20710. else
  20711.     pkg_failed=untried
  20712. fi
  20713. fi
  20714. echo "$as_me:$LINENO: result: $pkg_cv_PACKAGE_CFLAGS" >&5
  20715. echo "${ECHO_T}$pkg_cv_PACKAGE_CFLAGS" >&6
  20716. echo "$as_me:$LINENO: checking for PACKAGE_LIBS" >&5
  20717. echo $ECHO_N "checking for PACKAGE_LIBS... $ECHO_C" >&6
  20718. if test "${pkg_cv_PACKAGE_LIBS+set}" = set; then
  20719.   echo $ECHO_N "(cached) $ECHO_C" >&6
  20720. else
  20721.   if test "x$ac_cv_env_PACKAGE_LIBS_set" = "xset"; then
  20722.     pkg_cv_PACKAGE_LIBS=$ac_cv_env_PACKAGE_LIBS_value
  20723. elif test -n "$PKG_CONFIG"; then
  20724.     if { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists \"\$pkg_modules\" >/dev/null 2>&1") >&5
  20725.   ($PKG_CONFIG --exists "$pkg_modules" >/dev/null 2>&1) 2>&5
  20726.   ac_status=$?
  20727.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20728.   (exit $ac_status); }; then
  20729.         pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_modules" 2>/dev/null`
  20730.     else
  20731.         pkg_failed=yes
  20732.     fi
  20733. else
  20734.     pkg_failed=untried
  20735. fi
  20736. fi
  20737. echo "$as_me:$LINENO: result: $pkg_cv_PACKAGE_LIBS" >&5
  20738. echo "${ECHO_T}$pkg_cv_PACKAGE_LIBS" >&6
  20739.  
  20740. if test $pkg_failed = yes; then
  20741.     PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_modules"`
  20742.     # Put the nasty error message in config.log where it belongs
  20743.     echo "$PACKAGE_PKG_ERRORS" 1>&5
  20744.  
  20745.     { { echo "$as_me:$LINENO: error: Package requirements ($pkg_modules) were not met.
  20746. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  20747. installed software in a non-standard prefix.
  20748.  
  20749. Alternatively you may set the PACKAGE_CFLAGS and PACKAGE_LIBS environment variables
  20750. to avoid the need to call pkg-config.  See the pkg-config man page for
  20751. more details." >&5
  20752. echo "$as_me: error: Package requirements ($pkg_modules) were not met.
  20753. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  20754. installed software in a non-standard prefix.
  20755.  
  20756. Alternatively you may set the PACKAGE_CFLAGS and PACKAGE_LIBS environment variables
  20757. to avoid the need to call pkg-config.  See the pkg-config man page for
  20758. more details." >&2;}
  20759.    { (exit 1); exit 1; }; }
  20760. elif test $pkg_failed = untried; then
  20761.     { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
  20762. is in your PATH or set the PKG_CONFIG environment variable to the full
  20763. path to pkg-config.
  20764.  
  20765. Alternatively you may set the PACKAGE_CFLAGS and PACKAGE_LIBS environment variables
  20766. to avoid the need to call pkg-config.  See the pkg-config man page for
  20767. more details.
  20768.  
  20769. To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  20770. See \`config.log' for more details." >&5
  20771. echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
  20772. is in your PATH or set the PKG_CONFIG environment variable to the full
  20773. path to pkg-config.
  20774.  
  20775. Alternatively you may set the PACKAGE_CFLAGS and PACKAGE_LIBS environment variables
  20776. to avoid the need to call pkg-config.  See the pkg-config man page for
  20777. more details.
  20778.  
  20779. To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  20780. See \`config.log' for more details." >&2;}
  20781.    { (exit 1); exit 1; }; }
  20782. else
  20783.     PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS
  20784.     PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS
  20785.     :
  20786. fi
  20787.  
  20788.  
  20789.  
  20790. cat >confcache <<\_ACEOF
  20791. # This file is a shell script that caches the results of configure
  20792. # tests run on this system so they can be shared between configure
  20793. # scripts and configure runs, see configure's option --config-cache.
  20794. # It is not useful on other systems.  If it contains results you don't
  20795. # want to keep, you may remove or edit it.
  20796. #
  20797. # config.status only pays attention to the cache file if you give it
  20798. # the --recheck option to rerun configure.
  20799. #
  20800. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  20801. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  20802. # following values.
  20803.  
  20804. _ACEOF
  20805.  
  20806. # The following way of writing the cache mishandles newlines in values,
  20807. # but we know of no workaround that is simple, portable, and efficient.
  20808. # So, don't put newlines in cache variables' values.
  20809. # Ultrix sh set writes to stderr and can't be redirected directly,
  20810. # and sets the high bit in the cache file unless we assign to the vars.
  20811. {
  20812.   (set) 2>&1 |
  20813.     case `(ac_space=' '; set | grep ac_space) 2>&1` in
  20814.     *ac_space=\ *)
  20815.       # `set' does not quote correctly, so add quotes (double-quote
  20816.       # substitution turns \\\\ into \\, and sed turns \\ into \).
  20817.       sed -n \
  20818.     "s/'/'\\\\''/g;
  20819.       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  20820.       ;;
  20821.     *)
  20822.       # `set' quotes correctly as required by POSIX, so do not add quotes.
  20823.       sed -n \
  20824.     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  20825.       ;;
  20826.     esac;
  20827. } |
  20828.   sed '
  20829.      t clear
  20830.      : clear
  20831.      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  20832.      t end
  20833.      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  20834.      : end' >>confcache
  20835. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  20836.   if test -w $cache_file; then
  20837.     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  20838.     cat confcache >$cache_file
  20839.   else
  20840.     echo "not updating unwritable cache $cache_file"
  20841.   fi
  20842. fi
  20843. rm -f confcache
  20844.  
  20845.  
  20846.  
  20847.  
  20848.  
  20849. if test "x$ac_path_x_has_been_run" != xyes; then
  20850.   echo "$as_me:$LINENO: checking for X" >&5
  20851. echo $ECHO_N "checking for X... $ECHO_C" >&6
  20852.  
  20853. ac_path_x_has_been_run=yes
  20854.  
  20855. # Check whether --with-x or --without-x was given.
  20856. if test "${with_x+set}" = set; then
  20857.   withval="$with_x"
  20858.  
  20859. fi;
  20860. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  20861. if test "x$with_x" = xno; then
  20862.   # The user explicitly disabled X.
  20863.   have_x=disabled
  20864. else
  20865.   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  20866.     # Both variables are already set.
  20867.     have_x=yes
  20868.   else
  20869.     if test "${ac_cv_have_x+set}" = set; then
  20870.   echo $ECHO_N "(cached) $ECHO_C" >&6
  20871. else
  20872.   # One or both of the vars are not set, and there is no cached value.
  20873. ac_x_includes=no ac_x_libraries=no
  20874. rm -fr conftest.dir
  20875. if mkdir conftest.dir; then
  20876.   cd conftest.dir
  20877.   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  20878.   cat >Imakefile <<'_ACEOF'
  20879. acfindx:
  20880.     @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  20881. _ACEOF
  20882.   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  20883.     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  20884.     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  20885.     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  20886.     for ac_extension in a so sl; do
  20887.       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  20888.      test -f $ac_im_libdir/libX11.$ac_extension; then
  20889.     ac_im_usrlibdir=$ac_im_libdir; break
  20890.       fi
  20891.     done
  20892.     # Screen out bogus values from the imake configuration.  They are
  20893.     # bogus both because they are the default anyway, and because
  20894.     # using them would break gcc on systems where it needs fixed includes.
  20895.     case $ac_im_incroot in
  20896.     /usr/include) ;;
  20897.     *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  20898.     esac
  20899.     case $ac_im_usrlibdir in
  20900.     /usr/lib | /lib) ;;
  20901.     *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  20902.     esac
  20903.   fi
  20904.   cd ..
  20905.   rm -fr conftest.dir
  20906. fi
  20907.  
  20908. # Standard set of common directories for X headers.
  20909. # Check X11 before X11Rn because it is often a symlink to the current release.
  20910. ac_x_header_dirs='
  20911. /usr/X11/include
  20912. /usr/X11R6/include
  20913. /usr/X11R5/include
  20914. /usr/X11R4/include
  20915.  
  20916. /usr/include/X11
  20917. /usr/include/X11R6
  20918. /usr/include/X11R5
  20919. /usr/include/X11R4
  20920.  
  20921. /usr/local/X11/include
  20922. /usr/local/X11R6/include
  20923. /usr/local/X11R5/include
  20924. /usr/local/X11R4/include
  20925.  
  20926. /usr/local/include/X11
  20927. /usr/local/include/X11R6
  20928. /usr/local/include/X11R5
  20929. /usr/local/include/X11R4
  20930.  
  20931. /usr/X386/include
  20932. /usr/x386/include
  20933. /usr/XFree86/include/X11
  20934.  
  20935. /usr/include
  20936. /usr/local/include
  20937. /usr/unsupported/include
  20938. /usr/athena/include
  20939. /usr/local/x11r5/include
  20940. /usr/lpp/Xamples/include
  20941.  
  20942. /usr/openwin/include
  20943. /usr/openwin/share/include'
  20944.  
  20945. if test "$ac_x_includes" = no; then
  20946.   # Guess where to find include files, by looking for a specified header file.
  20947.   # First, try using that file with no special directory specified.
  20948.   cat >conftest.$ac_ext <<_ACEOF
  20949. /* confdefs.h.  */
  20950. _ACEOF
  20951. cat confdefs.h >>conftest.$ac_ext
  20952. cat >>conftest.$ac_ext <<_ACEOF
  20953. /* end confdefs.h.  */
  20954. #include <X11/Intrinsic.h>
  20955. _ACEOF
  20956. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  20957.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  20958.   ac_status=$?
  20959.   grep -v '^ *+' conftest.er1 >conftest.err
  20960.   rm -f conftest.er1
  20961.   cat conftest.err >&5
  20962.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20963.   (exit $ac_status); } >/dev/null; then
  20964.   if test -s conftest.err; then
  20965.     ac_cpp_err=$ac_cxx_preproc_warn_flag
  20966.     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  20967.   else
  20968.     ac_cpp_err=
  20969.   fi
  20970. else
  20971.   ac_cpp_err=yes
  20972. fi
  20973. if test -z "$ac_cpp_err"; then
  20974.   # We can compile using X headers with no special include directory.
  20975. ac_x_includes=
  20976. else
  20977.   echo "$as_me: failed program was:" >&5
  20978. sed 's/^/| /' conftest.$ac_ext >&5
  20979.  
  20980.   for ac_dir in $ac_x_header_dirs; do
  20981.   if test -r "$ac_dir/X11/Intrinsic.h"; then
  20982.     ac_x_includes=$ac_dir
  20983.     break
  20984.   fi
  20985. done
  20986. fi
  20987. rm -f conftest.err conftest.$ac_ext
  20988. fi # $ac_x_includes = no
  20989.  
  20990. if test "$ac_x_libraries" = no; then
  20991.   # Check for the libraries.
  20992.   # See if we find them without any special options.
  20993.   # Don't add to $LIBS permanently.
  20994.   ac_save_LIBS=$LIBS
  20995.   LIBS="-lXt $LIBS"
  20996.   cat >conftest.$ac_ext <<_ACEOF
  20997. /* confdefs.h.  */
  20998. _ACEOF
  20999. cat confdefs.h >>conftest.$ac_ext
  21000. cat >>conftest.$ac_ext <<_ACEOF
  21001. /* end confdefs.h.  */
  21002. #include <X11/Intrinsic.h>
  21003. int
  21004. main ()
  21005. {
  21006. XtMalloc (0)
  21007.   ;
  21008.   return 0;
  21009. }
  21010. _ACEOF
  21011. rm -f conftest.$ac_objext conftest$ac_exeext
  21012. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21013.   (eval $ac_link) 2>conftest.er1
  21014.   ac_status=$?
  21015.   grep -v '^ *+' conftest.er1 >conftest.err
  21016.   rm -f conftest.er1
  21017.   cat conftest.err >&5
  21018.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21019.   (exit $ac_status); } &&
  21020.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  21021.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21022.   (eval $ac_try) 2>&5
  21023.   ac_status=$?
  21024.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21025.   (exit $ac_status); }; } &&
  21026.      { ac_try='test -s conftest$ac_exeext'
  21027.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21028.   (eval $ac_try) 2>&5
  21029.   ac_status=$?
  21030.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21031.   (exit $ac_status); }; }; then
  21032.   LIBS=$ac_save_LIBS
  21033. # We can link X programs with no special library path.
  21034. ac_x_libraries=
  21035. else
  21036.   echo "$as_me: failed program was:" >&5
  21037. sed 's/^/| /' conftest.$ac_ext >&5
  21038.  
  21039. LIBS=$ac_save_LIBS
  21040. for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  21041. do
  21042.   # Don't even attempt the hair of trying to link an X program!
  21043.   for ac_extension in a so sl; do
  21044.     if test -r $ac_dir/libXt.$ac_extension; then
  21045.       ac_x_libraries=$ac_dir
  21046.       break 2
  21047.     fi
  21048.   done
  21049. done
  21050. fi
  21051. rm -f conftest.err conftest.$ac_objext \
  21052.       conftest$ac_exeext conftest.$ac_ext
  21053. fi # $ac_x_libraries = no
  21054.  
  21055. if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
  21056.   # Didn't find X anywhere.  Cache the known absence of X.
  21057.   ac_cv_have_x="have_x=no"
  21058. else
  21059.   # Record where we found X for the cache.
  21060.   ac_cv_have_x="have_x=yes \
  21061.         ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  21062. fi
  21063. fi
  21064.  
  21065.   fi
  21066.   eval "$ac_cv_have_x"
  21067. fi # $with_x != no
  21068.  
  21069. if test "$have_x" != yes; then
  21070.   echo "$as_me:$LINENO: result: $have_x" >&5
  21071. echo "${ECHO_T}$have_x" >&6
  21072.   no_x=yes
  21073. else
  21074.   # If each of the values was on the command line, it overrides each guess.
  21075.   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  21076.   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  21077.   # Update the cache value to reflect the command line values.
  21078.   ac_cv_have_x="have_x=yes \
  21079.         ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  21080.   # It might be that x_includes is empty (headers are found in the
  21081.   # standard search path. Then output the corresponding message
  21082.   ac_out_x_includes=$x_includes
  21083.   test "x$x_includes" = x && ac_out_x_includes="in standard search path"
  21084.   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
  21085. echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
  21086. fi
  21087.  
  21088. fi
  21089. if test "$no_x" = yes; then
  21090.   # Not all programs may use this symbol, but it does not hurt to define it.
  21091.  
  21092. cat >>confdefs.h <<\_ACEOF
  21093. #define X_DISPLAY_MISSING 1
  21094. _ACEOF
  21095.  
  21096.   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  21097. else
  21098.   if test -n "$x_includes"; then
  21099.     X_CFLAGS="$X_CFLAGS -I$x_includes"
  21100.   fi
  21101.  
  21102.   # It would also be nice to do this for all -L options, not just this one.
  21103.   if test -n "$x_libraries"; then
  21104.     X_LIBS="$X_LIBS -L$x_libraries"
  21105.     # For Solaris; some versions of Sun CC require a space after -R and
  21106.     # others require no space.  Words are not sufficient . . . .
  21107.     case `(uname -sr) 2>/dev/null` in
  21108.     "SunOS 5"*)
  21109.       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
  21110. echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
  21111.       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  21112.       cat >conftest.$ac_ext <<_ACEOF
  21113. /* confdefs.h.  */
  21114. _ACEOF
  21115. cat confdefs.h >>conftest.$ac_ext
  21116. cat >>conftest.$ac_ext <<_ACEOF
  21117. /* end confdefs.h.  */
  21118.  
  21119. int
  21120. main ()
  21121. {
  21122.  
  21123.   ;
  21124.   return 0;
  21125. }
  21126. _ACEOF
  21127. rm -f conftest.$ac_objext conftest$ac_exeext
  21128. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21129.   (eval $ac_link) 2>conftest.er1
  21130.   ac_status=$?
  21131.   grep -v '^ *+' conftest.er1 >conftest.err
  21132.   rm -f conftest.er1
  21133.   cat conftest.err >&5
  21134.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21135.   (exit $ac_status); } &&
  21136.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  21137.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21138.   (eval $ac_try) 2>&5
  21139.   ac_status=$?
  21140.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21141.   (exit $ac_status); }; } &&
  21142.      { ac_try='test -s conftest$ac_exeext'
  21143.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21144.   (eval $ac_try) 2>&5
  21145.   ac_status=$?
  21146.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21147.   (exit $ac_status); }; }; then
  21148.   ac_R_nospace=yes
  21149. else
  21150.   echo "$as_me: failed program was:" >&5
  21151. sed 's/^/| /' conftest.$ac_ext >&5
  21152.  
  21153. ac_R_nospace=no
  21154. fi
  21155. rm -f conftest.err conftest.$ac_objext \
  21156.       conftest$ac_exeext conftest.$ac_ext
  21157.       if test $ac_R_nospace = yes; then
  21158.     echo "$as_me:$LINENO: result: no" >&5
  21159. echo "${ECHO_T}no" >&6
  21160.     X_LIBS="$X_LIBS -R$x_libraries"
  21161.       else
  21162.     LIBS="$ac_xsave_LIBS -R $x_libraries"
  21163.     cat >conftest.$ac_ext <<_ACEOF
  21164. /* confdefs.h.  */
  21165. _ACEOF
  21166. cat confdefs.h >>conftest.$ac_ext
  21167. cat >>conftest.$ac_ext <<_ACEOF
  21168. /* end confdefs.h.  */
  21169.  
  21170. int
  21171. main ()
  21172. {
  21173.  
  21174.   ;
  21175.   return 0;
  21176. }
  21177. _ACEOF
  21178. rm -f conftest.$ac_objext conftest$ac_exeext
  21179. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21180.   (eval $ac_link) 2>conftest.er1
  21181.   ac_status=$?
  21182.   grep -v '^ *+' conftest.er1 >conftest.err
  21183.   rm -f conftest.er1
  21184.   cat conftest.err >&5
  21185.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21186.   (exit $ac_status); } &&
  21187.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  21188.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21189.   (eval $ac_try) 2>&5
  21190.   ac_status=$?
  21191.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21192.   (exit $ac_status); }; } &&
  21193.      { ac_try='test -s conftest$ac_exeext'
  21194.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21195.   (eval $ac_try) 2>&5
  21196.   ac_status=$?
  21197.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21198.   (exit $ac_status); }; }; then
  21199.   ac_R_space=yes
  21200. else
  21201.   echo "$as_me: failed program was:" >&5
  21202. sed 's/^/| /' conftest.$ac_ext >&5
  21203.  
  21204. ac_R_space=no
  21205. fi
  21206. rm -f conftest.err conftest.$ac_objext \
  21207.       conftest$ac_exeext conftest.$ac_ext
  21208.     if test $ac_R_space = yes; then
  21209.       echo "$as_me:$LINENO: result: yes" >&5
  21210. echo "${ECHO_T}yes" >&6
  21211.       X_LIBS="$X_LIBS -R $x_libraries"
  21212.     else
  21213.       echo "$as_me:$LINENO: result: neither works" >&5
  21214. echo "${ECHO_T}neither works" >&6
  21215.     fi
  21216.       fi
  21217.       LIBS=$ac_xsave_LIBS
  21218.     esac
  21219.   fi
  21220.  
  21221.   # Check for system-dependent libraries X programs must link with.
  21222.   # Do this before checking for the system-independent R6 libraries
  21223.   # (-lICE), since we may need -lsocket or whatever for X linking.
  21224.  
  21225.   if test "$ISC" = yes; then
  21226.     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  21227.   else
  21228.     # Martyn Johnson says this is needed for Ultrix, if the X
  21229.     # libraries were built with DECnet support.  And Karl Berry says
  21230.     # the Alpha needs dnet_stub (dnet does not exist).
  21231.     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  21232.     cat >conftest.$ac_ext <<_ACEOF
  21233. /* confdefs.h.  */
  21234. _ACEOF
  21235. cat confdefs.h >>conftest.$ac_ext
  21236. cat >>conftest.$ac_ext <<_ACEOF
  21237. /* end confdefs.h.  */
  21238.  
  21239. /* Override any gcc2 internal prototype to avoid an error.  */
  21240. #ifdef __cplusplus
  21241. extern "C"
  21242. #endif
  21243. /* We use char because int might match the return type of a gcc2
  21244.    builtin and then its argument prototype would still apply.  */
  21245. char XOpenDisplay ();
  21246. int
  21247. main ()
  21248. {
  21249. XOpenDisplay ();
  21250.   ;
  21251.   return 0;
  21252. }
  21253. _ACEOF
  21254. rm -f conftest.$ac_objext conftest$ac_exeext
  21255. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21256.   (eval $ac_link) 2>conftest.er1
  21257.   ac_status=$?
  21258.   grep -v '^ *+' conftest.er1 >conftest.err
  21259.   rm -f conftest.er1
  21260.   cat conftest.err >&5
  21261.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21262.   (exit $ac_status); } &&
  21263.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  21264.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21265.   (eval $ac_try) 2>&5
  21266.   ac_status=$?
  21267.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21268.   (exit $ac_status); }; } &&
  21269.      { ac_try='test -s conftest$ac_exeext'
  21270.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21271.   (eval $ac_try) 2>&5
  21272.   ac_status=$?
  21273.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21274.   (exit $ac_status); }; }; then
  21275.   :
  21276. else
  21277.   echo "$as_me: failed program was:" >&5
  21278. sed 's/^/| /' conftest.$ac_ext >&5
  21279.  
  21280. echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
  21281. echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
  21282. if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
  21283.   echo $ECHO_N "(cached) $ECHO_C" >&6
  21284. else
  21285.   ac_check_lib_save_LIBS=$LIBS
  21286. LIBS="-ldnet  $LIBS"
  21287. cat >conftest.$ac_ext <<_ACEOF
  21288. /* confdefs.h.  */
  21289. _ACEOF
  21290. cat confdefs.h >>conftest.$ac_ext
  21291. cat >>conftest.$ac_ext <<_ACEOF
  21292. /* end confdefs.h.  */
  21293.  
  21294. /* Override any gcc2 internal prototype to avoid an error.  */
  21295. #ifdef __cplusplus
  21296. extern "C"
  21297. #endif
  21298. /* We use char because int might match the return type of a gcc2
  21299.    builtin and then its argument prototype would still apply.  */
  21300. char dnet_ntoa ();
  21301. int
  21302. main ()
  21303. {
  21304. dnet_ntoa ();
  21305.   ;
  21306.   return 0;
  21307. }
  21308. _ACEOF
  21309. rm -f conftest.$ac_objext conftest$ac_exeext
  21310. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21311.   (eval $ac_link) 2>conftest.er1
  21312.   ac_status=$?
  21313.   grep -v '^ *+' conftest.er1 >conftest.err
  21314.   rm -f conftest.er1
  21315.   cat conftest.err >&5
  21316.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21317.   (exit $ac_status); } &&
  21318.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  21319.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21320.   (eval $ac_try) 2>&5
  21321.   ac_status=$?
  21322.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21323.   (exit $ac_status); }; } &&
  21324.      { ac_try='test -s conftest$ac_exeext'
  21325.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21326.   (eval $ac_try) 2>&5
  21327.   ac_status=$?
  21328.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21329.   (exit $ac_status); }; }; then
  21330.   ac_cv_lib_dnet_dnet_ntoa=yes
  21331. else
  21332.   echo "$as_me: failed program was:" >&5
  21333. sed 's/^/| /' conftest.$ac_ext >&5
  21334.  
  21335. ac_cv_lib_dnet_dnet_ntoa=no
  21336. fi
  21337. rm -f conftest.err conftest.$ac_objext \
  21338.       conftest$ac_exeext conftest.$ac_ext
  21339. LIBS=$ac_check_lib_save_LIBS
  21340. fi
  21341. echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  21342. echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
  21343. if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
  21344.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  21345. fi
  21346.  
  21347.     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  21348.       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
  21349. echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
  21350. if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
  21351.   echo $ECHO_N "(cached) $ECHO_C" >&6
  21352. else
  21353.   ac_check_lib_save_LIBS=$LIBS
  21354. LIBS="-ldnet_stub  $LIBS"
  21355. cat >conftest.$ac_ext <<_ACEOF
  21356. /* confdefs.h.  */
  21357. _ACEOF
  21358. cat confdefs.h >>conftest.$ac_ext
  21359. cat >>conftest.$ac_ext <<_ACEOF
  21360. /* end confdefs.h.  */
  21361.  
  21362. /* Override any gcc2 internal prototype to avoid an error.  */
  21363. #ifdef __cplusplus
  21364. extern "C"
  21365. #endif
  21366. /* We use char because int might match the return type of a gcc2
  21367.    builtin and then its argument prototype would still apply.  */
  21368. char dnet_ntoa ();
  21369. int
  21370. main ()
  21371. {
  21372. dnet_ntoa ();
  21373.   ;
  21374.   return 0;
  21375. }
  21376. _ACEOF
  21377. rm -f conftest.$ac_objext conftest$ac_exeext
  21378. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21379.   (eval $ac_link) 2>conftest.er1
  21380.   ac_status=$?
  21381.   grep -v '^ *+' conftest.er1 >conftest.err
  21382.   rm -f conftest.er1
  21383.   cat conftest.err >&5
  21384.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21385.   (exit $ac_status); } &&
  21386.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  21387.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21388.   (eval $ac_try) 2>&5
  21389.   ac_status=$?
  21390.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21391.   (exit $ac_status); }; } &&
  21392.      { ac_try='test -s conftest$ac_exeext'
  21393.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21394.   (eval $ac_try) 2>&5
  21395.   ac_status=$?
  21396.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21397.   (exit $ac_status); }; }; then
  21398.   ac_cv_lib_dnet_stub_dnet_ntoa=yes
  21399. else
  21400.   echo "$as_me: failed program was:" >&5
  21401. sed 's/^/| /' conftest.$ac_ext >&5
  21402.  
  21403. ac_cv_lib_dnet_stub_dnet_ntoa=no
  21404. fi
  21405. rm -f conftest.err conftest.$ac_objext \
  21406.       conftest$ac_exeext conftest.$ac_ext
  21407. LIBS=$ac_check_lib_save_LIBS
  21408. fi
  21409. echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  21410. echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
  21411. if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
  21412.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  21413. fi
  21414.  
  21415.     fi
  21416. fi
  21417. rm -f conftest.err conftest.$ac_objext \
  21418.       conftest$ac_exeext conftest.$ac_ext
  21419.     LIBS="$ac_xsave_LIBS"
  21420.  
  21421.     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  21422.     # to get the SysV transport functions.
  21423.     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  21424.     # needs -lnsl.
  21425.     # The nsl library prevents programs from opening the X display
  21426.     # on Irix 5.2, according to T.E. Dickey.
  21427.     # The functions gethostbyname, getservbyname, and inet_addr are
  21428.     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  21429.     echo "$as_me:$LINENO: checking for gethostbyname" >&5
  21430. echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
  21431. if test "${ac_cv_func_gethostbyname+set}" = set; then
  21432.   echo $ECHO_N "(cached) $ECHO_C" >&6
  21433. else
  21434.   cat >conftest.$ac_ext <<_ACEOF
  21435. /* confdefs.h.  */
  21436. _ACEOF
  21437. cat confdefs.h >>conftest.$ac_ext
  21438. cat >>conftest.$ac_ext <<_ACEOF
  21439. /* end confdefs.h.  */
  21440. /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
  21441.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  21442. #define gethostbyname innocuous_gethostbyname
  21443.  
  21444. /* System header to define __stub macros and hopefully few prototypes,
  21445.     which can conflict with char gethostbyname (); below.
  21446.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21447.     <limits.h> exists even on freestanding compilers.  */
  21448.  
  21449. #ifdef __STDC__
  21450. # include <limits.h>
  21451. #else
  21452. # include <assert.h>
  21453. #endif
  21454.  
  21455. #undef gethostbyname
  21456.  
  21457. /* Override any gcc2 internal prototype to avoid an error.  */
  21458. #ifdef __cplusplus
  21459. extern "C"
  21460. {
  21461. #endif
  21462. /* We use char because int might match the return type of a gcc2
  21463.    builtin and then its argument prototype would still apply.  */
  21464. char gethostbyname ();
  21465. /* The GNU C library defines this for functions which it implements
  21466.     to always fail with ENOSYS.  Some functions are actually named
  21467.     something starting with __ and the normal name is an alias.  */
  21468. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  21469. choke me
  21470. #else
  21471. char (*f) () = gethostbyname;
  21472. #endif
  21473. #ifdef __cplusplus
  21474. }
  21475. #endif
  21476.  
  21477. int
  21478. main ()
  21479. {
  21480. return f != gethostbyname;
  21481.   ;
  21482.   return 0;
  21483. }
  21484. _ACEOF
  21485. rm -f conftest.$ac_objext conftest$ac_exeext
  21486. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21487.   (eval $ac_link) 2>conftest.er1
  21488.   ac_status=$?
  21489.   grep -v '^ *+' conftest.er1 >conftest.err
  21490.   rm -f conftest.er1
  21491.   cat conftest.err >&5
  21492.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21493.   (exit $ac_status); } &&
  21494.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  21495.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21496.   (eval $ac_try) 2>&5
  21497.   ac_status=$?
  21498.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21499.   (exit $ac_status); }; } &&
  21500.      { ac_try='test -s conftest$ac_exeext'
  21501.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21502.   (eval $ac_try) 2>&5
  21503.   ac_status=$?
  21504.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21505.   (exit $ac_status); }; }; then
  21506.   ac_cv_func_gethostbyname=yes
  21507. else
  21508.   echo "$as_me: failed program was:" >&5
  21509. sed 's/^/| /' conftest.$ac_ext >&5
  21510.  
  21511. ac_cv_func_gethostbyname=no
  21512. fi
  21513. rm -f conftest.err conftest.$ac_objext \
  21514.       conftest$ac_exeext conftest.$ac_ext
  21515. fi
  21516. echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
  21517. echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
  21518.  
  21519.     if test $ac_cv_func_gethostbyname = no; then
  21520.       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  21521. echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
  21522. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  21523.   echo $ECHO_N "(cached) $ECHO_C" >&6
  21524. else
  21525.   ac_check_lib_save_LIBS=$LIBS
  21526. LIBS="-lnsl  $LIBS"
  21527. cat >conftest.$ac_ext <<_ACEOF
  21528. /* confdefs.h.  */
  21529. _ACEOF
  21530. cat confdefs.h >>conftest.$ac_ext
  21531. cat >>conftest.$ac_ext <<_ACEOF
  21532. /* end confdefs.h.  */
  21533.  
  21534. /* Override any gcc2 internal prototype to avoid an error.  */
  21535. #ifdef __cplusplus
  21536. extern "C"
  21537. #endif
  21538. /* We use char because int might match the return type of a gcc2
  21539.    builtin and then its argument prototype would still apply.  */
  21540. char gethostbyname ();
  21541. int
  21542. main ()
  21543. {
  21544. gethostbyname ();
  21545.   ;
  21546.   return 0;
  21547. }
  21548. _ACEOF
  21549. rm -f conftest.$ac_objext conftest$ac_exeext
  21550. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21551.   (eval $ac_link) 2>conftest.er1
  21552.   ac_status=$?
  21553.   grep -v '^ *+' conftest.er1 >conftest.err
  21554.   rm -f conftest.er1
  21555.   cat conftest.err >&5
  21556.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21557.   (exit $ac_status); } &&
  21558.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  21559.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21560.   (eval $ac_try) 2>&5
  21561.   ac_status=$?
  21562.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21563.   (exit $ac_status); }; } &&
  21564.      { ac_try='test -s conftest$ac_exeext'
  21565.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21566.   (eval $ac_try) 2>&5
  21567.   ac_status=$?
  21568.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21569.   (exit $ac_status); }; }; then
  21570.   ac_cv_lib_nsl_gethostbyname=yes
  21571. else
  21572.   echo "$as_me: failed program was:" >&5
  21573. sed 's/^/| /' conftest.$ac_ext >&5
  21574.  
  21575. ac_cv_lib_nsl_gethostbyname=no
  21576. fi
  21577. rm -f conftest.err conftest.$ac_objext \
  21578.       conftest$ac_exeext conftest.$ac_ext
  21579. LIBS=$ac_check_lib_save_LIBS
  21580. fi
  21581. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  21582. echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
  21583. if test $ac_cv_lib_nsl_gethostbyname = yes; then
  21584.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  21585. fi
  21586.  
  21587.       if test $ac_cv_lib_nsl_gethostbyname = no; then
  21588.     echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
  21589. echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
  21590. if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
  21591.   echo $ECHO_N "(cached) $ECHO_C" >&6
  21592. else
  21593.   ac_check_lib_save_LIBS=$LIBS
  21594. LIBS="-lbsd  $LIBS"
  21595. cat >conftest.$ac_ext <<_ACEOF
  21596. /* confdefs.h.  */
  21597. _ACEOF
  21598. cat confdefs.h >>conftest.$ac_ext
  21599. cat >>conftest.$ac_ext <<_ACEOF
  21600. /* end confdefs.h.  */
  21601.  
  21602. /* Override any gcc2 internal prototype to avoid an error.  */
  21603. #ifdef __cplusplus
  21604. extern "C"
  21605. #endif
  21606. /* We use char because int might match the return type of a gcc2
  21607.    builtin and then its argument prototype would still apply.  */
  21608. char gethostbyname ();
  21609. int
  21610. main ()
  21611. {
  21612. gethostbyname ();
  21613.   ;
  21614.   return 0;
  21615. }
  21616. _ACEOF
  21617. rm -f conftest.$ac_objext conftest$ac_exeext
  21618. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21619.   (eval $ac_link) 2>conftest.er1
  21620.   ac_status=$?
  21621.   grep -v '^ *+' conftest.er1 >conftest.err
  21622.   rm -f conftest.er1
  21623.   cat conftest.err >&5
  21624.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21625.   (exit $ac_status); } &&
  21626.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  21627.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21628.   (eval $ac_try) 2>&5
  21629.   ac_status=$?
  21630.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21631.   (exit $ac_status); }; } &&
  21632.      { ac_try='test -s conftest$ac_exeext'
  21633.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21634.   (eval $ac_try) 2>&5
  21635.   ac_status=$?
  21636.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21637.   (exit $ac_status); }; }; then
  21638.   ac_cv_lib_bsd_gethostbyname=yes
  21639. else
  21640.   echo "$as_me: failed program was:" >&5
  21641. sed 's/^/| /' conftest.$ac_ext >&5
  21642.  
  21643. ac_cv_lib_bsd_gethostbyname=no
  21644. fi
  21645. rm -f conftest.err conftest.$ac_objext \
  21646.       conftest$ac_exeext conftest.$ac_ext
  21647. LIBS=$ac_check_lib_save_LIBS
  21648. fi
  21649. echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
  21650. echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
  21651. if test $ac_cv_lib_bsd_gethostbyname = yes; then
  21652.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  21653. fi
  21654.  
  21655.       fi
  21656.     fi
  21657.  
  21658.     # lieder@skyler.mavd.honeywell.com says without -lsocket,
  21659.     # socket/setsockopt and other routines are undefined under SCO ODT
  21660.     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
  21661.     # on later versions), says Simon Leinen: it contains gethostby*
  21662.     # variants that don't use the name server (or something).  -lsocket
  21663.     # must be given before -lnsl if both are needed.  We assume that
  21664.     # if connect needs -lnsl, so does gethostbyname.
  21665.     echo "$as_me:$LINENO: checking for connect" >&5
  21666. echo $ECHO_N "checking for connect... $ECHO_C" >&6
  21667. if test "${ac_cv_func_connect+set}" = set; then
  21668.   echo $ECHO_N "(cached) $ECHO_C" >&6
  21669. else
  21670.   cat >conftest.$ac_ext <<_ACEOF
  21671. /* confdefs.h.  */
  21672. _ACEOF
  21673. cat confdefs.h >>conftest.$ac_ext
  21674. cat >>conftest.$ac_ext <<_ACEOF
  21675. /* end confdefs.h.  */
  21676. /* Define connect to an innocuous variant, in case <limits.h> declares connect.
  21677.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  21678. #define connect innocuous_connect
  21679.  
  21680. /* System header to define __stub macros and hopefully few prototypes,
  21681.     which can conflict with char connect (); below.
  21682.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21683.     <limits.h> exists even on freestanding compilers.  */
  21684.  
  21685. #ifdef __STDC__
  21686. # include <limits.h>
  21687. #else
  21688. # include <assert.h>
  21689. #endif
  21690.  
  21691. #undef connect
  21692.  
  21693. /* Override any gcc2 internal prototype to avoid an error.  */
  21694. #ifdef __cplusplus
  21695. extern "C"
  21696. {
  21697. #endif
  21698. /* We use char because int might match the return type of a gcc2
  21699.    builtin and then its argument prototype would still apply.  */
  21700. char connect ();
  21701. /* The GNU C library defines this for functions which it implements
  21702.     to always fail with ENOSYS.  Some functions are actually named
  21703.     something starting with __ and the normal name is an alias.  */
  21704. #if defined (__stub_connect) || defined (__stub___connect)
  21705. choke me
  21706. #else
  21707. char (*f) () = connect;
  21708. #endif
  21709. #ifdef __cplusplus
  21710. }
  21711. #endif
  21712.  
  21713. int
  21714. main ()
  21715. {
  21716. return f != connect;
  21717.   ;
  21718.   return 0;
  21719. }
  21720. _ACEOF
  21721. rm -f conftest.$ac_objext conftest$ac_exeext
  21722. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21723.   (eval $ac_link) 2>conftest.er1
  21724.   ac_status=$?
  21725.   grep -v '^ *+' conftest.er1 >conftest.err
  21726.   rm -f conftest.er1
  21727.   cat conftest.err >&5
  21728.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21729.   (exit $ac_status); } &&
  21730.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  21731.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21732.   (eval $ac_try) 2>&5
  21733.   ac_status=$?
  21734.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21735.   (exit $ac_status); }; } &&
  21736.      { ac_try='test -s conftest$ac_exeext'
  21737.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21738.   (eval $ac_try) 2>&5
  21739.   ac_status=$?
  21740.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21741.   (exit $ac_status); }; }; then
  21742.   ac_cv_func_connect=yes
  21743. else
  21744.   echo "$as_me: failed program was:" >&5
  21745. sed 's/^/| /' conftest.$ac_ext >&5
  21746.  
  21747. ac_cv_func_connect=no
  21748. fi
  21749. rm -f conftest.err conftest.$ac_objext \
  21750.       conftest$ac_exeext conftest.$ac_ext
  21751. fi
  21752. echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
  21753. echo "${ECHO_T}$ac_cv_func_connect" >&6
  21754.  
  21755.     if test $ac_cv_func_connect = no; then
  21756.       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
  21757. echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
  21758. if test "${ac_cv_lib_socket_connect+set}" = set; then
  21759.   echo $ECHO_N "(cached) $ECHO_C" >&6
  21760. else
  21761.   ac_check_lib_save_LIBS=$LIBS
  21762. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  21763. cat >conftest.$ac_ext <<_ACEOF
  21764. /* confdefs.h.  */
  21765. _ACEOF
  21766. cat confdefs.h >>conftest.$ac_ext
  21767. cat >>conftest.$ac_ext <<_ACEOF
  21768. /* end confdefs.h.  */
  21769.  
  21770. /* Override any gcc2 internal prototype to avoid an error.  */
  21771. #ifdef __cplusplus
  21772. extern "C"
  21773. #endif
  21774. /* We use char because int might match the return type of a gcc2
  21775.    builtin and then its argument prototype would still apply.  */
  21776. char connect ();
  21777. int
  21778. main ()
  21779. {
  21780. connect ();
  21781.   ;
  21782.   return 0;
  21783. }
  21784. _ACEOF
  21785. rm -f conftest.$ac_objext conftest$ac_exeext
  21786. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21787.   (eval $ac_link) 2>conftest.er1
  21788.   ac_status=$?
  21789.   grep -v '^ *+' conftest.er1 >conftest.err
  21790.   rm -f conftest.er1
  21791.   cat conftest.err >&5
  21792.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21793.   (exit $ac_status); } &&
  21794.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  21795.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21796.   (eval $ac_try) 2>&5
  21797.   ac_status=$?
  21798.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21799.   (exit $ac_status); }; } &&
  21800.      { ac_try='test -s conftest$ac_exeext'
  21801.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21802.   (eval $ac_try) 2>&5
  21803.   ac_status=$?
  21804.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21805.   (exit $ac_status); }; }; then
  21806.   ac_cv_lib_socket_connect=yes
  21807. else
  21808.   echo "$as_me: failed program was:" >&5
  21809. sed 's/^/| /' conftest.$ac_ext >&5
  21810.  
  21811. ac_cv_lib_socket_connect=no
  21812. fi
  21813. rm -f conftest.err conftest.$ac_objext \
  21814.       conftest$ac_exeext conftest.$ac_ext
  21815. LIBS=$ac_check_lib_save_LIBS
  21816. fi
  21817. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
  21818. echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
  21819. if test $ac_cv_lib_socket_connect = yes; then
  21820.   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  21821. fi
  21822.  
  21823.     fi
  21824.  
  21825.     # Guillermo Gomez says -lposix is necessary on A/UX.
  21826.     echo "$as_me:$LINENO: checking for remove" >&5
  21827. echo $ECHO_N "checking for remove... $ECHO_C" >&6
  21828. if test "${ac_cv_func_remove+set}" = set; then
  21829.   echo $ECHO_N "(cached) $ECHO_C" >&6
  21830. else
  21831.   cat >conftest.$ac_ext <<_ACEOF
  21832. /* confdefs.h.  */
  21833. _ACEOF
  21834. cat confdefs.h >>conftest.$ac_ext
  21835. cat >>conftest.$ac_ext <<_ACEOF
  21836. /* end confdefs.h.  */
  21837. /* Define remove to an innocuous variant, in case <limits.h> declares remove.
  21838.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  21839. #define remove innocuous_remove
  21840.  
  21841. /* System header to define __stub macros and hopefully few prototypes,
  21842.     which can conflict with char remove (); below.
  21843.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21844.     <limits.h> exists even on freestanding compilers.  */
  21845.  
  21846. #ifdef __STDC__
  21847. # include <limits.h>
  21848. #else
  21849. # include <assert.h>
  21850. #endif
  21851.  
  21852. #undef remove
  21853.  
  21854. /* Override any gcc2 internal prototype to avoid an error.  */
  21855. #ifdef __cplusplus
  21856. extern "C"
  21857. {
  21858. #endif
  21859. /* We use char because int might match the return type of a gcc2
  21860.    builtin and then its argument prototype would still apply.  */
  21861. char remove ();
  21862. /* The GNU C library defines this for functions which it implements
  21863.     to always fail with ENOSYS.  Some functions are actually named
  21864.     something starting with __ and the normal name is an alias.  */
  21865. #if defined (__stub_remove) || defined (__stub___remove)
  21866. choke me
  21867. #else
  21868. char (*f) () = remove;
  21869. #endif
  21870. #ifdef __cplusplus
  21871. }
  21872. #endif
  21873.  
  21874. int
  21875. main ()
  21876. {
  21877. return f != remove;
  21878.   ;
  21879.   return 0;
  21880. }
  21881. _ACEOF
  21882. rm -f conftest.$ac_objext conftest$ac_exeext
  21883. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21884.   (eval $ac_link) 2>conftest.er1
  21885.   ac_status=$?
  21886.   grep -v '^ *+' conftest.er1 >conftest.err
  21887.   rm -f conftest.er1
  21888.   cat conftest.err >&5
  21889.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21890.   (exit $ac_status); } &&
  21891.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  21892.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21893.   (eval $ac_try) 2>&5
  21894.   ac_status=$?
  21895.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21896.   (exit $ac_status); }; } &&
  21897.      { ac_try='test -s conftest$ac_exeext'
  21898.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21899.   (eval $ac_try) 2>&5
  21900.   ac_status=$?
  21901.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21902.   (exit $ac_status); }; }; then
  21903.   ac_cv_func_remove=yes
  21904. else
  21905.   echo "$as_me: failed program was:" >&5
  21906. sed 's/^/| /' conftest.$ac_ext >&5
  21907.  
  21908. ac_cv_func_remove=no
  21909. fi
  21910. rm -f conftest.err conftest.$ac_objext \
  21911.       conftest$ac_exeext conftest.$ac_ext
  21912. fi
  21913. echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
  21914. echo "${ECHO_T}$ac_cv_func_remove" >&6
  21915.  
  21916.     if test $ac_cv_func_remove = no; then
  21917.       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
  21918. echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
  21919. if test "${ac_cv_lib_posix_remove+set}" = set; then
  21920.   echo $ECHO_N "(cached) $ECHO_C" >&6
  21921. else
  21922.   ac_check_lib_save_LIBS=$LIBS
  21923. LIBS="-lposix  $LIBS"
  21924. cat >conftest.$ac_ext <<_ACEOF
  21925. /* confdefs.h.  */
  21926. _ACEOF
  21927. cat confdefs.h >>conftest.$ac_ext
  21928. cat >>conftest.$ac_ext <<_ACEOF
  21929. /* end confdefs.h.  */
  21930.  
  21931. /* Override any gcc2 internal prototype to avoid an error.  */
  21932. #ifdef __cplusplus
  21933. extern "C"
  21934. #endif
  21935. /* We use char because int might match the return type of a gcc2
  21936.    builtin and then its argument prototype would still apply.  */
  21937. char remove ();
  21938. int
  21939. main ()
  21940. {
  21941. remove ();
  21942.   ;
  21943.   return 0;
  21944. }
  21945. _ACEOF
  21946. rm -f conftest.$ac_objext conftest$ac_exeext
  21947. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21948.   (eval $ac_link) 2>conftest.er1
  21949.   ac_status=$?
  21950.   grep -v '^ *+' conftest.er1 >conftest.err
  21951.   rm -f conftest.er1
  21952.   cat conftest.err >&5
  21953.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21954.   (exit $ac_status); } &&
  21955.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  21956.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21957.   (eval $ac_try) 2>&5
  21958.   ac_status=$?
  21959.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21960.   (exit $ac_status); }; } &&
  21961.      { ac_try='test -s conftest$ac_exeext'
  21962.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21963.   (eval $ac_try) 2>&5
  21964.   ac_status=$?
  21965.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21966.   (exit $ac_status); }; }; then
  21967.   ac_cv_lib_posix_remove=yes
  21968. else
  21969.   echo "$as_me: failed program was:" >&5
  21970. sed 's/^/| /' conftest.$ac_ext >&5
  21971.  
  21972. ac_cv_lib_posix_remove=no
  21973. fi
  21974. rm -f conftest.err conftest.$ac_objext \
  21975.       conftest$ac_exeext conftest.$ac_ext
  21976. LIBS=$ac_check_lib_save_LIBS
  21977. fi
  21978. echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
  21979. echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
  21980. if test $ac_cv_lib_posix_remove = yes; then
  21981.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  21982. fi
  21983.  
  21984.     fi
  21985.  
  21986.     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  21987.     echo "$as_me:$LINENO: checking for shmat" >&5
  21988. echo $ECHO_N "checking for shmat... $ECHO_C" >&6
  21989. if test "${ac_cv_func_shmat+set}" = set; then
  21990.   echo $ECHO_N "(cached) $ECHO_C" >&6
  21991. else
  21992.   cat >conftest.$ac_ext <<_ACEOF
  21993. /* confdefs.h.  */
  21994. _ACEOF
  21995. cat confdefs.h >>conftest.$ac_ext
  21996. cat >>conftest.$ac_ext <<_ACEOF
  21997. /* end confdefs.h.  */
  21998. /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
  21999.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  22000. #define shmat innocuous_shmat
  22001.  
  22002. /* System header to define __stub macros and hopefully few prototypes,
  22003.     which can conflict with char shmat (); below.
  22004.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22005.     <limits.h> exists even on freestanding compilers.  */
  22006.  
  22007. #ifdef __STDC__
  22008. # include <limits.h>
  22009. #else
  22010. # include <assert.h>
  22011. #endif
  22012.  
  22013. #undef shmat
  22014.  
  22015. /* Override any gcc2 internal prototype to avoid an error.  */
  22016. #ifdef __cplusplus
  22017. extern "C"
  22018. {
  22019. #endif
  22020. /* We use char because int might match the return type of a gcc2
  22021.    builtin and then its argument prototype would still apply.  */
  22022. char shmat ();
  22023. /* The GNU C library defines this for functions which it implements
  22024.     to always fail with ENOSYS.  Some functions are actually named
  22025.     something starting with __ and the normal name is an alias.  */
  22026. #if defined (__stub_shmat) || defined (__stub___shmat)
  22027. choke me
  22028. #else
  22029. char (*f) () = shmat;
  22030. #endif
  22031. #ifdef __cplusplus
  22032. }
  22033. #endif
  22034.  
  22035. int
  22036. main ()
  22037. {
  22038. return f != shmat;
  22039.   ;
  22040.   return 0;
  22041. }
  22042. _ACEOF
  22043. rm -f conftest.$ac_objext conftest$ac_exeext
  22044. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22045.   (eval $ac_link) 2>conftest.er1
  22046.   ac_status=$?
  22047.   grep -v '^ *+' conftest.er1 >conftest.err
  22048.   rm -f conftest.er1
  22049.   cat conftest.err >&5
  22050.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22051.   (exit $ac_status); } &&
  22052.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  22053.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22054.   (eval $ac_try) 2>&5
  22055.   ac_status=$?
  22056.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22057.   (exit $ac_status); }; } &&
  22058.      { ac_try='test -s conftest$ac_exeext'
  22059.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22060.   (eval $ac_try) 2>&5
  22061.   ac_status=$?
  22062.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22063.   (exit $ac_status); }; }; then
  22064.   ac_cv_func_shmat=yes
  22065. else
  22066.   echo "$as_me: failed program was:" >&5
  22067. sed 's/^/| /' conftest.$ac_ext >&5
  22068.  
  22069. ac_cv_func_shmat=no
  22070. fi
  22071. rm -f conftest.err conftest.$ac_objext \
  22072.       conftest$ac_exeext conftest.$ac_ext
  22073. fi
  22074. echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
  22075. echo "${ECHO_T}$ac_cv_func_shmat" >&6
  22076.  
  22077.     if test $ac_cv_func_shmat = no; then
  22078.       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
  22079. echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
  22080. if test "${ac_cv_lib_ipc_shmat+set}" = set; then
  22081.   echo $ECHO_N "(cached) $ECHO_C" >&6
  22082. else
  22083.   ac_check_lib_save_LIBS=$LIBS
  22084. LIBS="-lipc  $LIBS"
  22085. cat >conftest.$ac_ext <<_ACEOF
  22086. /* confdefs.h.  */
  22087. _ACEOF
  22088. cat confdefs.h >>conftest.$ac_ext
  22089. cat >>conftest.$ac_ext <<_ACEOF
  22090. /* end confdefs.h.  */
  22091.  
  22092. /* Override any gcc2 internal prototype to avoid an error.  */
  22093. #ifdef __cplusplus
  22094. extern "C"
  22095. #endif
  22096. /* We use char because int might match the return type of a gcc2
  22097.    builtin and then its argument prototype would still apply.  */
  22098. char shmat ();
  22099. int
  22100. main ()
  22101. {
  22102. shmat ();
  22103.   ;
  22104.   return 0;
  22105. }
  22106. _ACEOF
  22107. rm -f conftest.$ac_objext conftest$ac_exeext
  22108. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22109.   (eval $ac_link) 2>conftest.er1
  22110.   ac_status=$?
  22111.   grep -v '^ *+' conftest.er1 >conftest.err
  22112.   rm -f conftest.er1
  22113.   cat conftest.err >&5
  22114.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22115.   (exit $ac_status); } &&
  22116.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  22117.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22118.   (eval $ac_try) 2>&5
  22119.   ac_status=$?
  22120.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22121.   (exit $ac_status); }; } &&
  22122.      { ac_try='test -s conftest$ac_exeext'
  22123.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22124.   (eval $ac_try) 2>&5
  22125.   ac_status=$?
  22126.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22127.   (exit $ac_status); }; }; then
  22128.   ac_cv_lib_ipc_shmat=yes
  22129. else
  22130.   echo "$as_me: failed program was:" >&5
  22131. sed 's/^/| /' conftest.$ac_ext >&5
  22132.  
  22133. ac_cv_lib_ipc_shmat=no
  22134. fi
  22135. rm -f conftest.err conftest.$ac_objext \
  22136.       conftest$ac_exeext conftest.$ac_ext
  22137. LIBS=$ac_check_lib_save_LIBS
  22138. fi
  22139. echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
  22140. echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
  22141. if test $ac_cv_lib_ipc_shmat = yes; then
  22142.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  22143. fi
  22144.  
  22145.     fi
  22146.   fi
  22147.  
  22148.   # Check for libraries that X11R6 Xt/Xaw programs need.
  22149.   ac_save_LDFLAGS=$LDFLAGS
  22150.   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  22151.   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  22152.   # check for ICE first), but we must link in the order -lSM -lICE or
  22153.   # we get undefined symbols.  So assume we have SM if we have ICE.
  22154.   # These have to be linked with before -lX11, unlike the other
  22155.   # libraries we check for below, so use a different variable.
  22156.   # John Interrante, Karl Berry
  22157.   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
  22158. echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
  22159. if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
  22160.   echo $ECHO_N "(cached) $ECHO_C" >&6
  22161. else
  22162.   ac_check_lib_save_LIBS=$LIBS
  22163. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  22164. cat >conftest.$ac_ext <<_ACEOF
  22165. /* confdefs.h.  */
  22166. _ACEOF
  22167. cat confdefs.h >>conftest.$ac_ext
  22168. cat >>conftest.$ac_ext <<_ACEOF
  22169. /* end confdefs.h.  */
  22170.  
  22171. /* Override any gcc2 internal prototype to avoid an error.  */
  22172. #ifdef __cplusplus
  22173. extern "C"
  22174. #endif
  22175. /* We use char because int might match the return type of a gcc2
  22176.    builtin and then its argument prototype would still apply.  */
  22177. char IceConnectionNumber ();
  22178. int
  22179. main ()
  22180. {
  22181. IceConnectionNumber ();
  22182.   ;
  22183.   return 0;
  22184. }
  22185. _ACEOF
  22186. rm -f conftest.$ac_objext conftest$ac_exeext
  22187. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22188.   (eval $ac_link) 2>conftest.er1
  22189.   ac_status=$?
  22190.   grep -v '^ *+' conftest.er1 >conftest.err
  22191.   rm -f conftest.er1
  22192.   cat conftest.err >&5
  22193.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22194.   (exit $ac_status); } &&
  22195.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  22196.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22197.   (eval $ac_try) 2>&5
  22198.   ac_status=$?
  22199.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22200.   (exit $ac_status); }; } &&
  22201.      { ac_try='test -s conftest$ac_exeext'
  22202.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22203.   (eval $ac_try) 2>&5
  22204.   ac_status=$?
  22205.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22206.   (exit $ac_status); }; }; then
  22207.   ac_cv_lib_ICE_IceConnectionNumber=yes
  22208. else
  22209.   echo "$as_me: failed program was:" >&5
  22210. sed 's/^/| /' conftest.$ac_ext >&5
  22211.  
  22212. ac_cv_lib_ICE_IceConnectionNumber=no
  22213. fi
  22214. rm -f conftest.err conftest.$ac_objext \
  22215.       conftest$ac_exeext conftest.$ac_ext
  22216. LIBS=$ac_check_lib_save_LIBS
  22217. fi
  22218. echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  22219. echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
  22220. if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
  22221.   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  22222. fi
  22223.  
  22224.   LDFLAGS=$ac_save_LDFLAGS
  22225.  
  22226. fi
  22227.  
  22228. if test x"$no_x" != x"yes"; then
  22229.         echo "$as_me:$LINENO: checking for XShmCreateImage in -lXext" >&5
  22230. echo $ECHO_N "checking for XShmCreateImage in -lXext... $ECHO_C" >&6
  22231. if test "${ac_cv_lib_Xext_XShmCreateImage+set}" = set; then
  22232.   echo $ECHO_N "(cached) $ECHO_C" >&6
  22233. else
  22234.   ac_check_lib_save_LIBS=$LIBS
  22235. LIBS="-lXext $X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
  22236. cat >conftest.$ac_ext <<_ACEOF
  22237. /* confdefs.h.  */
  22238. _ACEOF
  22239. cat confdefs.h >>conftest.$ac_ext
  22240. cat >>conftest.$ac_ext <<_ACEOF
  22241. /* end confdefs.h.  */
  22242.  
  22243. /* Override any gcc2 internal prototype to avoid an error.  */
  22244. #ifdef __cplusplus
  22245. extern "C"
  22246. #endif
  22247. /* We use char because int might match the return type of a gcc2
  22248.    builtin and then its argument prototype would still apply.  */
  22249. char XShmCreateImage ();
  22250. int
  22251. main ()
  22252. {
  22253. XShmCreateImage ();
  22254.   ;
  22255.   return 0;
  22256. }
  22257. _ACEOF
  22258. rm -f conftest.$ac_objext conftest$ac_exeext
  22259. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22260.   (eval $ac_link) 2>conftest.er1
  22261.   ac_status=$?
  22262.   grep -v '^ *+' conftest.er1 >conftest.err
  22263.   rm -f conftest.er1
  22264.   cat conftest.err >&5
  22265.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22266.   (exit $ac_status); } &&
  22267.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  22268.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22269.   (eval $ac_try) 2>&5
  22270.   ac_status=$?
  22271.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22272.   (exit $ac_status); }; } &&
  22273.      { ac_try='test -s conftest$ac_exeext'
  22274.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22275.   (eval $ac_try) 2>&5
  22276.   ac_status=$?
  22277.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22278.   (exit $ac_status); }; }; then
  22279.   ac_cv_lib_Xext_XShmCreateImage=yes
  22280. else
  22281.   echo "$as_me: failed program was:" >&5
  22282. sed 's/^/| /' conftest.$ac_ext >&5
  22283.  
  22284. ac_cv_lib_Xext_XShmCreateImage=no
  22285. fi
  22286. rm -f conftest.err conftest.$ac_objext \
  22287.       conftest$ac_exeext conftest.$ac_ext
  22288. LIBS=$ac_check_lib_save_LIBS
  22289. fi
  22290. echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmCreateImage" >&5
  22291. echo "${ECHO_T}$ac_cv_lib_Xext_XShmCreateImage" >&6
  22292. if test $ac_cv_lib_Xext_XShmCreateImage = yes; then
  22293.  
  22294. cat >>confdefs.h <<\_ACEOF
  22295. #define LIBVO_X11
  22296. _ACEOF
  22297.  
  22298.     LIBVO_CFLAGS="$LIBVO_CFLAGS $X_CFLAGS"
  22299.     LIBVO_LIBS="$LIBVO_LIBS $X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS -lXext"
  22300.         echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
  22301. echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
  22302. if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
  22303.   echo $ECHO_N "(cached) $ECHO_C" >&6
  22304. else
  22305.   ac_check_lib_save_LIBS=$LIBS
  22306. LIBS="-lXv $X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS -lXext $LIBS"
  22307. cat >conftest.$ac_ext <<_ACEOF
  22308. /* confdefs.h.  */
  22309. _ACEOF
  22310. cat confdefs.h >>conftest.$ac_ext
  22311. cat >>conftest.$ac_ext <<_ACEOF
  22312. /* end confdefs.h.  */
  22313.  
  22314. /* Override any gcc2 internal prototype to avoid an error.  */
  22315. #ifdef __cplusplus
  22316. extern "C"
  22317. #endif
  22318. /* We use char because int might match the return type of a gcc2
  22319.    builtin and then its argument prototype would still apply.  */
  22320. char XvShmCreateImage ();
  22321. int
  22322. main ()
  22323. {
  22324. XvShmCreateImage ();
  22325.   ;
  22326.   return 0;
  22327. }
  22328. _ACEOF
  22329. rm -f conftest.$ac_objext conftest$ac_exeext
  22330. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22331.   (eval $ac_link) 2>conftest.er1
  22332.   ac_status=$?
  22333.   grep -v '^ *+' conftest.er1 >conftest.err
  22334.   rm -f conftest.er1
  22335.   cat conftest.err >&5
  22336.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22337.   (exit $ac_status); } &&
  22338.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  22339.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22340.   (eval $ac_try) 2>&5
  22341.   ac_status=$?
  22342.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22343.   (exit $ac_status); }; } &&
  22344.      { ac_try='test -s conftest$ac_exeext'
  22345.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22346.   (eval $ac_try) 2>&5
  22347.   ac_status=$?
  22348.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22349.   (exit $ac_status); }; }; then
  22350.   ac_cv_lib_Xv_XvShmCreateImage=yes
  22351. else
  22352.   echo "$as_me: failed program was:" >&5
  22353. sed 's/^/| /' conftest.$ac_ext >&5
  22354.  
  22355. ac_cv_lib_Xv_XvShmCreateImage=no
  22356. fi
  22357. rm -f conftest.err conftest.$ac_objext \
  22358.       conftest$ac_exeext conftest.$ac_ext
  22359. LIBS=$ac_check_lib_save_LIBS
  22360. fi
  22361. echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
  22362. echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
  22363. if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
  22364.  
  22365. cat >>confdefs.h <<\_ACEOF
  22366. #define LIBVO_XV
  22367. _ACEOF
  22368.  
  22369.         LIBVO_LIBS="$LIBVO_LIBS -lXv"
  22370. fi
  22371.  
  22372. fi
  22373.  
  22374. fi
  22375.  
  22376. # Check whether --enable-directx or --disable-directx was given.
  22377. if test "${enable_directx+set}" = set; then
  22378.   enableval="$enable_directx"
  22379.  
  22380. fi;
  22381. case $enable_directx in
  22382.     ""|yes)    if test "${ac_cv_header_ddraw_h+set}" = set; then
  22383.   echo "$as_me:$LINENO: checking for ddraw.h" >&5
  22384. echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6
  22385. if test "${ac_cv_header_ddraw_h+set}" = set; then
  22386.   echo $ECHO_N "(cached) $ECHO_C" >&6
  22387. fi
  22388. echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
  22389. echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6
  22390. else
  22391.   # Is the header compilable?
  22392. echo "$as_me:$LINENO: checking ddraw.h usability" >&5
  22393. echo $ECHO_N "checking ddraw.h usability... $ECHO_C" >&6
  22394. cat >conftest.$ac_ext <<_ACEOF
  22395. /* confdefs.h.  */
  22396. _ACEOF
  22397. cat confdefs.h >>conftest.$ac_ext
  22398. cat >>conftest.$ac_ext <<_ACEOF
  22399. /* end confdefs.h.  */
  22400. $ac_includes_default
  22401. #include <ddraw.h>
  22402. _ACEOF
  22403. rm -f conftest.$ac_objext
  22404. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22405.   (eval $ac_compile) 2>conftest.er1
  22406.   ac_status=$?
  22407.   grep -v '^ *+' conftest.er1 >conftest.err
  22408.   rm -f conftest.er1
  22409.   cat conftest.err >&5
  22410.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22411.   (exit $ac_status); } &&
  22412.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  22413.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22414.   (eval $ac_try) 2>&5
  22415.   ac_status=$?
  22416.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22417.   (exit $ac_status); }; } &&
  22418.      { ac_try='test -s conftest.$ac_objext'
  22419.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22420.   (eval $ac_try) 2>&5
  22421.   ac_status=$?
  22422.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22423.   (exit $ac_status); }; }; then
  22424.   ac_header_compiler=yes
  22425. else
  22426.   echo "$as_me: failed program was:" >&5
  22427. sed 's/^/| /' conftest.$ac_ext >&5
  22428.  
  22429. ac_header_compiler=no
  22430. fi
  22431. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22432. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  22433. echo "${ECHO_T}$ac_header_compiler" >&6
  22434.  
  22435. # Is the header present?
  22436. echo "$as_me:$LINENO: checking ddraw.h presence" >&5
  22437. echo $ECHO_N "checking ddraw.h presence... $ECHO_C" >&6
  22438. cat >conftest.$ac_ext <<_ACEOF
  22439. /* confdefs.h.  */
  22440. _ACEOF
  22441. cat confdefs.h >>conftest.$ac_ext
  22442. cat >>conftest.$ac_ext <<_ACEOF
  22443. /* end confdefs.h.  */
  22444. #include <ddraw.h>
  22445. _ACEOF
  22446. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  22447.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  22448.   ac_status=$?
  22449.   grep -v '^ *+' conftest.er1 >conftest.err
  22450.   rm -f conftest.er1
  22451.   cat conftest.err >&5
  22452.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22453.   (exit $ac_status); } >/dev/null; then
  22454.   if test -s conftest.err; then
  22455.     ac_cpp_err=$ac_cxx_preproc_warn_flag
  22456.     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  22457.   else
  22458.     ac_cpp_err=
  22459.   fi
  22460. else
  22461.   ac_cpp_err=yes
  22462. fi
  22463. if test -z "$ac_cpp_err"; then
  22464.   ac_header_preproc=yes
  22465. else
  22466.   echo "$as_me: failed program was:" >&5
  22467. sed 's/^/| /' conftest.$ac_ext >&5
  22468.  
  22469.   ac_header_preproc=no
  22470. fi
  22471. rm -f conftest.err conftest.$ac_ext
  22472. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  22473. echo "${ECHO_T}$ac_header_preproc" >&6
  22474.  
  22475. # So?  What about this header?
  22476. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  22477.   yes:no: )
  22478.     { echo "$as_me:$LINENO: WARNING: ddraw.h: accepted by the compiler, rejected by the preprocessor!" >&5
  22479. echo "$as_me: WARNING: ddraw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  22480.     { echo "$as_me:$LINENO: WARNING: ddraw.h: proceeding with the compiler's result" >&5
  22481. echo "$as_me: WARNING: ddraw.h: proceeding with the compiler's result" >&2;}
  22482.     ac_header_preproc=yes
  22483.     ;;
  22484.   no:yes:* )
  22485.     { echo "$as_me:$LINENO: WARNING: ddraw.h: present but cannot be compiled" >&5
  22486. echo "$as_me: WARNING: ddraw.h: present but cannot be compiled" >&2;}
  22487.     { echo "$as_me:$LINENO: WARNING: ddraw.h:     check for missing prerequisite headers?" >&5
  22488. echo "$as_me: WARNING: ddraw.h:     check for missing prerequisite headers?" >&2;}
  22489.     { echo "$as_me:$LINENO: WARNING: ddraw.h: see the Autoconf documentation" >&5
  22490. echo "$as_me: WARNING: ddraw.h: see the Autoconf documentation" >&2;}
  22491.     { echo "$as_me:$LINENO: WARNING: ddraw.h:     section \"Present But Cannot Be Compiled\"" >&5
  22492. echo "$as_me: WARNING: ddraw.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  22493.     { echo "$as_me:$LINENO: WARNING: ddraw.h: proceeding with the preprocessor's result" >&5
  22494. echo "$as_me: WARNING: ddraw.h: proceeding with the preprocessor's result" >&2;}
  22495.     { echo "$as_me:$LINENO: WARNING: ddraw.h: in the future, the compiler will take precedence" >&5
  22496. echo "$as_me: WARNING: ddraw.h: in the future, the compiler will take precedence" >&2;}
  22497.     (
  22498.       cat <<\_ASBOX
  22499. ## --------------------------------------- ##
  22500. ## Report this to gopchop-bugs@outflux.net ##
  22501. ## --------------------------------------- ##
  22502. _ASBOX
  22503.     ) |
  22504.       sed "s/^/$as_me: WARNING:     /" >&2
  22505.     ;;
  22506. esac
  22507. echo "$as_me:$LINENO: checking for ddraw.h" >&5
  22508. echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6
  22509. if test "${ac_cv_header_ddraw_h+set}" = set; then
  22510.   echo $ECHO_N "(cached) $ECHO_C" >&6
  22511. else
  22512.   ac_cv_header_ddraw_h=$ac_header_preproc
  22513. fi
  22514. echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
  22515. echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6
  22516.  
  22517. fi
  22518. if test $ac_cv_header_ddraw_h = yes; then
  22519.  
  22520. cat >>confdefs.h <<\_ACEOF
  22521. #define LIBVO_DX
  22522. _ACEOF
  22523.  
  22524.             LIBVO_LIBS="$LIBVO_LIBS -lgdi32"
  22525. fi
  22526.  
  22527. ;;
  22528.     no)        ;;
  22529.     *)        if test -f "$enable_directx/ddraw.h"; then
  22530.  
  22531. cat >>confdefs.h <<\_ACEOF
  22532. #define LIBVO_DX
  22533. _ACEOF
  22534.  
  22535.             LIBVO_CFLAGS="$LIBVO_CFLAGS -I$enable_directx"
  22536.             LIBVO_LIBS="$LIBVO_LIBS -lgdi32"
  22537.         else
  22538.             { { echo "$as_me:$LINENO: error: Cannot find $enable_directx/ddraw.h" >&5
  22539. echo "$as_me: error: Cannot find $enable_directx/ddraw.h" >&2;}
  22540.    { (exit 1); exit 1; }; }
  22541.         fi;;
  22542. esac
  22543.  
  22544. # Check whether --enable-sdl or --disable-sdl was given.
  22545. if test "${enable_sdl+set}" = set; then
  22546.   enableval="$enable_sdl"
  22547.  
  22548. fi;
  22549. if test x"$enable_sdl" != x"no"; then
  22550.     # Extract the first word of "sdl-config", so it can be a program name with args.
  22551. set dummy sdl-config; ac_word=$2
  22552. echo "$as_me:$LINENO: checking for $ac_word" >&5
  22553. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22554. if test "${ac_cv_prog_SDLCONFIG+set}" = set; then
  22555.   echo $ECHO_N "(cached) $ECHO_C" >&6
  22556. else
  22557.   if test -n "$SDLCONFIG"; then
  22558.   ac_cv_prog_SDLCONFIG="$SDLCONFIG" # Let the user override the test.
  22559. else
  22560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22561. for as_dir in $PATH
  22562. do
  22563.   IFS=$as_save_IFS
  22564.   test -z "$as_dir" && as_dir=.
  22565.   for ac_exec_ext in '' $ac_executable_extensions; do
  22566.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22567.     ac_cv_prog_SDLCONFIG="yes"
  22568.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22569.     break 2
  22570.   fi
  22571. done
  22572. done
  22573.  
  22574. fi
  22575. fi
  22576. SDLCONFIG=$ac_cv_prog_SDLCONFIG
  22577. if test -n "$SDLCONFIG"; then
  22578.   echo "$as_me:$LINENO: result: $SDLCONFIG" >&5
  22579. echo "${ECHO_T}$SDLCONFIG" >&6
  22580. else
  22581.   echo "$as_me:$LINENO: result: no" >&5
  22582. echo "${ECHO_T}no" >&6
  22583. fi
  22584.  
  22585.     if test x"$SDLCONFIG" = x"yes"; then
  22586.  
  22587. cat >>confdefs.h <<\_ACEOF
  22588. #define LIBVO_SDL
  22589. _ACEOF
  22590.  
  22591.     LIBVO_CFLAGS="$LIBVO_CFLAGS `sdl-config --cflags`"
  22592.     LIBVO_LIBS="$LIBVO_LIBS `sdl-config --libs`"
  22593.     fi
  22594. fi
  22595.  
  22596.  
  22597. cat >confcache <<\_ACEOF
  22598. # This file is a shell script that caches the results of configure
  22599. # tests run on this system so they can be shared between configure
  22600. # scripts and configure runs, see configure's option --config-cache.
  22601. # It is not useful on other systems.  If it contains results you don't
  22602. # want to keep, you may remove or edit it.
  22603. #
  22604. # config.status only pays attention to the cache file if you give it
  22605. # the --recheck option to rerun configure.
  22606. #
  22607. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  22608. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  22609. # following values.
  22610.  
  22611. _ACEOF
  22612.  
  22613. # The following way of writing the cache mishandles newlines in values,
  22614. # but we know of no workaround that is simple, portable, and efficient.
  22615. # So, don't put newlines in cache variables' values.
  22616. # Ultrix sh set writes to stderr and can't be redirected directly,
  22617. # and sets the high bit in the cache file unless we assign to the vars.
  22618. {
  22619.   (set) 2>&1 |
  22620.     case `(ac_space=' '; set | grep ac_space) 2>&1` in
  22621.     *ac_space=\ *)
  22622.       # `set' does not quote correctly, so add quotes (double-quote
  22623.       # substitution turns \\\\ into \\, and sed turns \\ into \).
  22624.       sed -n \
  22625.     "s/'/'\\\\''/g;
  22626.       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  22627.       ;;
  22628.     *)
  22629.       # `set' quotes correctly as required by POSIX, so do not add quotes.
  22630.       sed -n \
  22631.     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  22632.       ;;
  22633.     esac;
  22634. } |
  22635.   sed '
  22636.      t clear
  22637.      : clear
  22638.      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  22639.      t end
  22640.      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  22641.      : end' >>confcache
  22642. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  22643.   if test -w $cache_file; then
  22644.     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  22645.     cat confcache >$cache_file
  22646.   else
  22647.     echo "not updating unwritable cache $cache_file"
  22648.   fi
  22649. fi
  22650. rm -f confcache
  22651.  
  22652. if test "${ac_cv_header_mpeg2dec_mpeg2_h+set}" = set; then
  22653.   echo "$as_me:$LINENO: checking for mpeg2dec/mpeg2.h" >&5
  22654. echo $ECHO_N "checking for mpeg2dec/mpeg2.h... $ECHO_C" >&6
  22655. if test "${ac_cv_header_mpeg2dec_mpeg2_h+set}" = set; then
  22656.   echo $ECHO_N "(cached) $ECHO_C" >&6
  22657. fi
  22658. echo "$as_me:$LINENO: result: $ac_cv_header_mpeg2dec_mpeg2_h" >&5
  22659. echo "${ECHO_T}$ac_cv_header_mpeg2dec_mpeg2_h" >&6
  22660. else
  22661.   # Is the header compilable?
  22662. echo "$as_me:$LINENO: checking mpeg2dec/mpeg2.h usability" >&5
  22663. echo $ECHO_N "checking mpeg2dec/mpeg2.h usability... $ECHO_C" >&6
  22664. cat >conftest.$ac_ext <<_ACEOF
  22665. /* confdefs.h.  */
  22666. _ACEOF
  22667. cat confdefs.h >>conftest.$ac_ext
  22668. cat >>conftest.$ac_ext <<_ACEOF
  22669. /* end confdefs.h.  */
  22670. $ac_includes_default
  22671. #include <mpeg2dec/mpeg2.h>
  22672. _ACEOF
  22673. rm -f conftest.$ac_objext
  22674. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22675.   (eval $ac_compile) 2>conftest.er1
  22676.   ac_status=$?
  22677.   grep -v '^ *+' conftest.er1 >conftest.err
  22678.   rm -f conftest.er1
  22679.   cat conftest.err >&5
  22680.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22681.   (exit $ac_status); } &&
  22682.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  22683.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22684.   (eval $ac_try) 2>&5
  22685.   ac_status=$?
  22686.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22687.   (exit $ac_status); }; } &&
  22688.      { ac_try='test -s conftest.$ac_objext'
  22689.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22690.   (eval $ac_try) 2>&5
  22691.   ac_status=$?
  22692.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22693.   (exit $ac_status); }; }; then
  22694.   ac_header_compiler=yes
  22695. else
  22696.   echo "$as_me: failed program was:" >&5
  22697. sed 's/^/| /' conftest.$ac_ext >&5
  22698.  
  22699. ac_header_compiler=no
  22700. fi
  22701. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22702. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  22703. echo "${ECHO_T}$ac_header_compiler" >&6
  22704.  
  22705. # Is the header present?
  22706. echo "$as_me:$LINENO: checking mpeg2dec/mpeg2.h presence" >&5
  22707. echo $ECHO_N "checking mpeg2dec/mpeg2.h presence... $ECHO_C" >&6
  22708. cat >conftest.$ac_ext <<_ACEOF
  22709. /* confdefs.h.  */
  22710. _ACEOF
  22711. cat confdefs.h >>conftest.$ac_ext
  22712. cat >>conftest.$ac_ext <<_ACEOF
  22713. /* end confdefs.h.  */
  22714. #include <mpeg2dec/mpeg2.h>
  22715. _ACEOF
  22716. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  22717.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  22718.   ac_status=$?
  22719.   grep -v '^ *+' conftest.er1 >conftest.err
  22720.   rm -f conftest.er1
  22721.   cat conftest.err >&5
  22722.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22723.   (exit $ac_status); } >/dev/null; then
  22724.   if test -s conftest.err; then
  22725.     ac_cpp_err=$ac_cxx_preproc_warn_flag
  22726.     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  22727.   else
  22728.     ac_cpp_err=
  22729.   fi
  22730. else
  22731.   ac_cpp_err=yes
  22732. fi
  22733. if test -z "$ac_cpp_err"; then
  22734.   ac_header_preproc=yes
  22735. else
  22736.   echo "$as_me: failed program was:" >&5
  22737. sed 's/^/| /' conftest.$ac_ext >&5
  22738.  
  22739.   ac_header_preproc=no
  22740. fi
  22741. rm -f conftest.err conftest.$ac_ext
  22742. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  22743. echo "${ECHO_T}$ac_header_preproc" >&6
  22744.  
  22745. # So?  What about this header?
  22746. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  22747.   yes:no: )
  22748.     { echo "$as_me:$LINENO: WARNING: mpeg2dec/mpeg2.h: accepted by the compiler, rejected by the preprocessor!" >&5
  22749. echo "$as_me: WARNING: mpeg2dec/mpeg2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  22750.     { echo "$as_me:$LINENO: WARNING: mpeg2dec/mpeg2.h: proceeding with the compiler's result" >&5
  22751. echo "$as_me: WARNING: mpeg2dec/mpeg2.h: proceeding with the compiler's result" >&2;}
  22752.     ac_header_preproc=yes
  22753.     ;;
  22754.   no:yes:* )
  22755.     { echo "$as_me:$LINENO: WARNING: mpeg2dec/mpeg2.h: present but cannot be compiled" >&5
  22756. echo "$as_me: WARNING: mpeg2dec/mpeg2.h: present but cannot be compiled" >&2;}
  22757.     { echo "$as_me:$LINENO: WARNING: mpeg2dec/mpeg2.h:     check for missing prerequisite headers?" >&5
  22758. echo "$as_me: WARNING: mpeg2dec/mpeg2.h:     check for missing prerequisite headers?" >&2;}
  22759.     { echo "$as_me:$LINENO: WARNING: mpeg2dec/mpeg2.h: see the Autoconf documentation" >&5
  22760. echo "$as_me: WARNING: mpeg2dec/mpeg2.h: see the Autoconf documentation" >&2;}
  22761.     { echo "$as_me:$LINENO: WARNING: mpeg2dec/mpeg2.h:     section \"Present But Cannot Be Compiled\"" >&5
  22762. echo "$as_me: WARNING: mpeg2dec/mpeg2.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  22763.     { echo "$as_me:$LINENO: WARNING: mpeg2dec/mpeg2.h: proceeding with the preprocessor's result" >&5
  22764. echo "$as_me: WARNING: mpeg2dec/mpeg2.h: proceeding with the preprocessor's result" >&2;}
  22765.     { echo "$as_me:$LINENO: WARNING: mpeg2dec/mpeg2.h: in the future, the compiler will take precedence" >&5
  22766. echo "$as_me: WARNING: mpeg2dec/mpeg2.h: in the future, the compiler will take precedence" >&2;}
  22767.     (
  22768.       cat <<\_ASBOX
  22769. ## --------------------------------------- ##
  22770. ## Report this to gopchop-bugs@outflux.net ##
  22771. ## --------------------------------------- ##
  22772. _ASBOX
  22773.     ) |
  22774.       sed "s/^/$as_me: WARNING:     /" >&2
  22775.     ;;
  22776. esac
  22777. echo "$as_me:$LINENO: checking for mpeg2dec/mpeg2.h" >&5
  22778. echo $ECHO_N "checking for mpeg2dec/mpeg2.h... $ECHO_C" >&6
  22779. if test "${ac_cv_header_mpeg2dec_mpeg2_h+set}" = set; then
  22780.   echo $ECHO_N "(cached) $ECHO_C" >&6
  22781. else
  22782.   ac_cv_header_mpeg2dec_mpeg2_h=$ac_header_preproc
  22783. fi
  22784. echo "$as_me:$LINENO: result: $ac_cv_header_mpeg2dec_mpeg2_h" >&5
  22785. echo "${ECHO_T}$ac_cv_header_mpeg2dec_mpeg2_h" >&6
  22786.  
  22787. fi
  22788. if test $ac_cv_header_mpeg2dec_mpeg2_h = yes; then
  22789.   :
  22790. else
  22791.   { { echo "$as_me:$LINENO: error: Couldn't find header mpeg2dec/mpeg2.h!" >&5
  22792. echo "$as_me: error: Couldn't find header mpeg2dec/mpeg2.h!" >&2;}
  22793.    { (exit 1); exit 1; }; }
  22794. fi
  22795.  
  22796.  
  22797.  
  22798. echo "$as_me:$LINENO: checking for mpeg2_init in -lmpeg2" >&5
  22799. echo $ECHO_N "checking for mpeg2_init in -lmpeg2... $ECHO_C" >&6
  22800. if test "${ac_cv_lib_mpeg2_mpeg2_init+set}" = set; then
  22801.   echo $ECHO_N "(cached) $ECHO_C" >&6
  22802. else
  22803.   ac_check_lib_save_LIBS=$LIBS
  22804. LIBS="-lmpeg2  $LIBS"
  22805. cat >conftest.$ac_ext <<_ACEOF
  22806. /* confdefs.h.  */
  22807. _ACEOF
  22808. cat confdefs.h >>conftest.$ac_ext
  22809. cat >>conftest.$ac_ext <<_ACEOF
  22810. /* end confdefs.h.  */
  22811.  
  22812. /* Override any gcc2 internal prototype to avoid an error.  */
  22813. #ifdef __cplusplus
  22814. extern "C"
  22815. #endif
  22816. /* We use char because int might match the return type of a gcc2
  22817.    builtin and then its argument prototype would still apply.  */
  22818. char mpeg2_init ();
  22819. int
  22820. main ()
  22821. {
  22822. mpeg2_init ();
  22823.   ;
  22824.   return 0;
  22825. }
  22826. _ACEOF
  22827. rm -f conftest.$ac_objext conftest$ac_exeext
  22828. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22829.   (eval $ac_link) 2>conftest.er1
  22830.   ac_status=$?
  22831.   grep -v '^ *+' conftest.er1 >conftest.err
  22832.   rm -f conftest.er1
  22833.   cat conftest.err >&5
  22834.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22835.   (exit $ac_status); } &&
  22836.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  22837.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22838.   (eval $ac_try) 2>&5
  22839.   ac_status=$?
  22840.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22841.   (exit $ac_status); }; } &&
  22842.      { ac_try='test -s conftest$ac_exeext'
  22843.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22844.   (eval $ac_try) 2>&5
  22845.   ac_status=$?
  22846.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22847.   (exit $ac_status); }; }; then
  22848.   ac_cv_lib_mpeg2_mpeg2_init=yes
  22849. else
  22850.   echo "$as_me: failed program was:" >&5
  22851. sed 's/^/| /' conftest.$ac_ext >&5
  22852.  
  22853. ac_cv_lib_mpeg2_mpeg2_init=no
  22854. fi
  22855. rm -f conftest.err conftest.$ac_objext \
  22856.       conftest$ac_exeext conftest.$ac_ext
  22857. LIBS=$ac_check_lib_save_LIBS
  22858. fi
  22859. echo "$as_me:$LINENO: result: $ac_cv_lib_mpeg2_mpeg2_init" >&5
  22860. echo "${ECHO_T}$ac_cv_lib_mpeg2_mpeg2_init" >&6
  22861. if test $ac_cv_lib_mpeg2_mpeg2_init = yes; then
  22862.   cat >>confdefs.h <<_ACEOF
  22863. #define HAVE_LIBMPEG2 1
  22864. _ACEOF
  22865.  
  22866.   LIBS="-lmpeg2 $LIBS"
  22867.  
  22868. else
  22869.   { { echo "$as_me:$LINENO: error: Couldn't find library libmpeg2!" >&5
  22870. echo "$as_me: error: Couldn't find library libmpeg2!" >&2;}
  22871.    { (exit 1); exit 1; }; }
  22872. fi
  22873.  
  22874.  
  22875.  
  22876. for ac_func in mpeg2_reset mpeg2_flush_picture
  22877. do
  22878. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  22879. echo "$as_me:$LINENO: checking for $ac_func" >&5
  22880. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  22881. if eval "test \"\${$as_ac_var+set}\" = set"; then
  22882.   echo $ECHO_N "(cached) $ECHO_C" >&6
  22883. else
  22884.   cat >conftest.$ac_ext <<_ACEOF
  22885. /* confdefs.h.  */
  22886. _ACEOF
  22887. cat confdefs.h >>conftest.$ac_ext
  22888. cat >>conftest.$ac_ext <<_ACEOF
  22889. /* end confdefs.h.  */
  22890. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  22891.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  22892. #define $ac_func innocuous_$ac_func
  22893.  
  22894. /* System header to define __stub macros and hopefully few prototypes,
  22895.     which can conflict with char $ac_func (); below.
  22896.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22897.     <limits.h> exists even on freestanding compilers.  */
  22898.  
  22899. #ifdef __STDC__
  22900. # include <limits.h>
  22901. #else
  22902. # include <assert.h>
  22903. #endif
  22904.  
  22905. #undef $ac_func
  22906.  
  22907. /* Override any gcc2 internal prototype to avoid an error.  */
  22908. #ifdef __cplusplus
  22909. extern "C"
  22910. {
  22911. #endif
  22912. /* We use char because int might match the return type of a gcc2
  22913.    builtin and then its argument prototype would still apply.  */
  22914. char $ac_func ();
  22915. /* The GNU C library defines this for functions which it implements
  22916.     to always fail with ENOSYS.  Some functions are actually named
  22917.     something starting with __ and the normal name is an alias.  */
  22918. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  22919. choke me
  22920. #else
  22921. char (*f) () = $ac_func;
  22922. #endif
  22923. #ifdef __cplusplus
  22924. }
  22925. #endif
  22926.  
  22927. int
  22928. main ()
  22929. {
  22930. return f != $ac_func;
  22931.   ;
  22932.   return 0;
  22933. }
  22934. _ACEOF
  22935. rm -f conftest.$ac_objext conftest$ac_exeext
  22936. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22937.   (eval $ac_link) 2>conftest.er1
  22938.   ac_status=$?
  22939.   grep -v '^ *+' conftest.er1 >conftest.err
  22940.   rm -f conftest.er1
  22941.   cat conftest.err >&5
  22942.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22943.   (exit $ac_status); } &&
  22944.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  22945.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22946.   (eval $ac_try) 2>&5
  22947.   ac_status=$?
  22948.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22949.   (exit $ac_status); }; } &&
  22950.      { ac_try='test -s conftest$ac_exeext'
  22951.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22952.   (eval $ac_try) 2>&5
  22953.   ac_status=$?
  22954.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22955.   (exit $ac_status); }; }; then
  22956.   eval "$as_ac_var=yes"
  22957. else
  22958.   echo "$as_me: failed program was:" >&5
  22959. sed 's/^/| /' conftest.$ac_ext >&5
  22960.  
  22961. eval "$as_ac_var=no"
  22962. fi
  22963. rm -f conftest.err conftest.$ac_objext \
  22964.       conftest$ac_exeext conftest.$ac_ext
  22965. fi
  22966. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  22967. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  22968. if test `eval echo '${'$as_ac_var'}'` = yes; then
  22969.   cat >>confdefs.h <<_ACEOF
  22970. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  22971. _ACEOF
  22972.  
  22973. fi
  22974. done
  22975.  
  22976.  
  22977. cat >confcache <<\_ACEOF
  22978. # This file is a shell script that caches the results of configure
  22979. # tests run on this system so they can be shared between configure
  22980. # scripts and configure runs, see configure's option --config-cache.
  22981. # It is not useful on other systems.  If it contains results you don't
  22982. # want to keep, you may remove or edit it.
  22983. #
  22984. # config.status only pays attention to the cache file if you give it
  22985. # the --recheck option to rerun configure.
  22986. #
  22987. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  22988. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  22989. # following values.
  22990.  
  22991. _ACEOF
  22992.  
  22993. # The following way of writing the cache mishandles newlines in values,
  22994. # but we know of no workaround that is simple, portable, and efficient.
  22995. # So, don't put newlines in cache variables' values.
  22996. # Ultrix sh set writes to stderr and can't be redirected directly,
  22997. # and sets the high bit in the cache file unless we assign to the vars.
  22998. {
  22999.   (set) 2>&1 |
  23000.     case `(ac_space=' '; set | grep ac_space) 2>&1` in
  23001.     *ac_space=\ *)
  23002.       # `set' does not quote correctly, so add quotes (double-quote
  23003.       # substitution turns \\\\ into \\, and sed turns \\ into \).
  23004.       sed -n \
  23005.     "s/'/'\\\\''/g;
  23006.       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  23007.       ;;
  23008.     *)
  23009.       # `set' quotes correctly as required by POSIX, so do not add quotes.
  23010.       sed -n \
  23011.     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  23012.       ;;
  23013.     esac;
  23014. } |
  23015.   sed '
  23016.      t clear
  23017.      : clear
  23018.      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  23019.      t end
  23020.      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  23021.      : end' >>confcache
  23022. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  23023.   if test -w $cache_file; then
  23024.     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  23025.     cat confcache >$cache_file
  23026.   else
  23027.     echo "not updating unwritable cache $cache_file"
  23028.   fi
  23029. fi
  23030. rm -f confcache
  23031.  
  23032. echo "$as_me:$LINENO: checking for mpeg2dec/mpeg2convert.h" >&5
  23033. echo $ECHO_N "checking for mpeg2dec/mpeg2convert.h... $ECHO_C" >&6
  23034. if test "${ac_cv_header_mpeg2dec_mpeg2convert_h+set}" = set; then
  23035.   echo $ECHO_N "(cached) $ECHO_C" >&6
  23036. else
  23037.   cat >conftest.$ac_ext <<_ACEOF
  23038. /* confdefs.h.  */
  23039. _ACEOF
  23040. cat confdefs.h >>conftest.$ac_ext
  23041. cat >>conftest.$ac_ext <<_ACEOF
  23042. /* end confdefs.h.  */
  23043. $ac_includes_default
  23044.         #include <mpeg2dec/mpeg2.h>
  23045.  
  23046. #include <mpeg2dec/mpeg2convert.h>
  23047. _ACEOF
  23048. rm -f conftest.$ac_objext
  23049. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23050.   (eval $ac_compile) 2>conftest.er1
  23051.   ac_status=$?
  23052.   grep -v '^ *+' conftest.er1 >conftest.err
  23053.   rm -f conftest.er1
  23054.   cat conftest.err >&5
  23055.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23056.   (exit $ac_status); } &&
  23057.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  23058.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23059.   (eval $ac_try) 2>&5
  23060.   ac_status=$?
  23061.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23062.   (exit $ac_status); }; } &&
  23063.      { ac_try='test -s conftest.$ac_objext'
  23064.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23065.   (eval $ac_try) 2>&5
  23066.   ac_status=$?
  23067.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23068.   (exit $ac_status); }; }; then
  23069.   ac_cv_header_mpeg2dec_mpeg2convert_h=yes
  23070. else
  23071.   echo "$as_me: failed program was:" >&5
  23072. sed 's/^/| /' conftest.$ac_ext >&5
  23073.  
  23074. ac_cv_header_mpeg2dec_mpeg2convert_h=no
  23075. fi
  23076. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23077. fi
  23078. echo "$as_me:$LINENO: result: $ac_cv_header_mpeg2dec_mpeg2convert_h" >&5
  23079. echo "${ECHO_T}$ac_cv_header_mpeg2dec_mpeg2convert_h" >&6
  23080. if test $ac_cv_header_mpeg2dec_mpeg2convert_h = yes; then
  23081.   :
  23082. else
  23083.   { { echo "$as_me:$LINENO: error: Couldn't find header mpeg2dec/mpeg2convert.h!" >&5
  23084. echo "$as_me: error: Couldn't find header mpeg2dec/mpeg2convert.h!" >&2;}
  23085.    { (exit 1); exit 1; }; }
  23086. fi
  23087.  
  23088.  
  23089.  
  23090.  
  23091. echo "$as_me:$LINENO: checking for mpeg2convert_rgb in -lmpeg2convert" >&5
  23092. echo $ECHO_N "checking for mpeg2convert_rgb in -lmpeg2convert... $ECHO_C" >&6
  23093. if test "${ac_cv_lib_mpeg2convert_mpeg2convert_rgb+set}" = set; then
  23094.   echo $ECHO_N "(cached) $ECHO_C" >&6
  23095. else
  23096.   ac_check_lib_save_LIBS=$LIBS
  23097. LIBS="-lmpeg2convert  $LIBS"
  23098. cat >conftest.$ac_ext <<_ACEOF
  23099. /* confdefs.h.  */
  23100. _ACEOF
  23101. cat confdefs.h >>conftest.$ac_ext
  23102. cat >>conftest.$ac_ext <<_ACEOF
  23103. /* end confdefs.h.  */
  23104.  
  23105. /* Override any gcc2 internal prototype to avoid an error.  */
  23106. #ifdef __cplusplus
  23107. extern "C"
  23108. #endif
  23109. /* We use char because int might match the return type of a gcc2
  23110.    builtin and then its argument prototype would still apply.  */
  23111. char mpeg2convert_rgb ();
  23112. int
  23113. main ()
  23114. {
  23115. mpeg2convert_rgb ();
  23116.   ;
  23117.   return 0;
  23118. }
  23119. _ACEOF
  23120. rm -f conftest.$ac_objext conftest$ac_exeext
  23121. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23122.   (eval $ac_link) 2>conftest.er1
  23123.   ac_status=$?
  23124.   grep -v '^ *+' conftest.er1 >conftest.err
  23125.   rm -f conftest.er1
  23126.   cat conftest.err >&5
  23127.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23128.   (exit $ac_status); } &&
  23129.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  23130.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23131.   (eval $ac_try) 2>&5
  23132.   ac_status=$?
  23133.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23134.   (exit $ac_status); }; } &&
  23135.      { ac_try='test -s conftest$ac_exeext'
  23136.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23137.   (eval $ac_try) 2>&5
  23138.   ac_status=$?
  23139.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23140.   (exit $ac_status); }; }; then
  23141.   ac_cv_lib_mpeg2convert_mpeg2convert_rgb=yes
  23142. else
  23143.   echo "$as_me: failed program was:" >&5
  23144. sed 's/^/| /' conftest.$ac_ext >&5
  23145.  
  23146. ac_cv_lib_mpeg2convert_mpeg2convert_rgb=no
  23147. fi
  23148. rm -f conftest.err conftest.$ac_objext \
  23149.       conftest$ac_exeext conftest.$ac_ext
  23150. LIBS=$ac_check_lib_save_LIBS
  23151. fi
  23152. echo "$as_me:$LINENO: result: $ac_cv_lib_mpeg2convert_mpeg2convert_rgb" >&5
  23153. echo "${ECHO_T}$ac_cv_lib_mpeg2convert_mpeg2convert_rgb" >&6
  23154. if test $ac_cv_lib_mpeg2convert_mpeg2convert_rgb = yes; then
  23155.   cat >>confdefs.h <<_ACEOF
  23156. #define HAVE_LIBMPEG2CONVERT 1
  23157. _ACEOF
  23158.  
  23159.   LIBS="-lmpeg2convert $LIBS"
  23160.  
  23161. else
  23162.   { { echo "$as_me:$LINENO: error: Couldn't find library libmpeg2convert!" >&5
  23163. echo "$as_me: error: Couldn't find library libmpeg2convert!" >&2;}
  23164.    { (exit 1); exit 1; }; }
  23165. fi
  23166.  
  23167.  
  23168. if test "x${datadir}" = 'x${prefix}/share'; then
  23169.   if test "x${prefix}" = "xNONE"; then
  23170.     runtime_datadir="${ac_default_prefix}/share"
  23171.   else
  23172.     runtime_datadir="${prefix}/share"
  23173.   fi
  23174. else
  23175.   runtime_datadir="${datadir}"
  23176. fi
  23177.  
  23178.  
  23179.  
  23180. cat >>confdefs.h <<_ACEOF
  23181. #define PACKAGE_DATA_DIR "${runtime_datadir}"
  23182. _ACEOF
  23183.  
  23184.  
  23185. packagesrcdir=`cd $srcdir && pwd`
  23186.  
  23187. cat >>confdefs.h <<_ACEOF
  23188. #define PACKAGE_SOURCE_DIR "${packagesrcdir}"
  23189. _ACEOF
  23190.  
  23191.  
  23192. cat >confcache <<\_ACEOF
  23193. # This file is a shell script that caches the results of configure
  23194. # tests run on this system so they can be shared between configure
  23195. # scripts and configure runs, see configure's option --config-cache.
  23196. # It is not useful on other systems.  If it contains results you don't
  23197. # want to keep, you may remove or edit it.
  23198. #
  23199. # config.status only pays attention to the cache file if you give it
  23200. # the --recheck option to rerun configure.
  23201. #
  23202. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  23203. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  23204. # following values.
  23205.  
  23206. _ACEOF
  23207.  
  23208. # The following way of writing the cache mishandles newlines in values,
  23209. # but we know of no workaround that is simple, portable, and efficient.
  23210. # So, don't put newlines in cache variables' values.
  23211. # Ultrix sh set writes to stderr and can't be redirected directly,
  23212. # and sets the high bit in the cache file unless we assign to the vars.
  23213. {
  23214.   (set) 2>&1 |
  23215.     case `(ac_space=' '; set | grep ac_space) 2>&1` in
  23216.     *ac_space=\ *)
  23217.       # `set' does not quote correctly, so add quotes (double-quote
  23218.       # substitution turns \\\\ into \\, and sed turns \\ into \).
  23219.       sed -n \
  23220.     "s/'/'\\\\''/g;
  23221.       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  23222.       ;;
  23223.     *)
  23224.       # `set' quotes correctly as required by POSIX, so do not add quotes.
  23225.       sed -n \
  23226.     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  23227.       ;;
  23228.     esac;
  23229. } |
  23230.   sed '
  23231.      t clear
  23232.      : clear
  23233.      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  23234.      t end
  23235.      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  23236.      : end' >>confcache
  23237. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  23238.   if test -w $cache_file; then
  23239.     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  23240.     cat confcache >$cache_file
  23241.   else
  23242.     echo "not updating unwritable cache $cache_file"
  23243.   fi
  23244. fi
  23245. rm -f confcache
  23246.  
  23247. GETTEXT_PACKAGE="$PACKAGE_NAME"
  23248.  
  23249.  
  23250. cat >>confdefs.h <<_ACEOF
  23251. #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
  23252. _ACEOF
  23253.  
  23254. ALL_LINGUAS="en de fr"
  23255.  
  23256.  
  23257. for ac_header in locale.h
  23258. do
  23259. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23260. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23261.   echo "$as_me:$LINENO: checking for $ac_header" >&5
  23262. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  23263. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23264.   echo $ECHO_N "(cached) $ECHO_C" >&6
  23265. fi
  23266. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  23267. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  23268. else
  23269.   # Is the header compilable?
  23270. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  23271. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  23272. cat >conftest.$ac_ext <<_ACEOF
  23273. /* confdefs.h.  */
  23274. _ACEOF
  23275. cat confdefs.h >>conftest.$ac_ext
  23276. cat >>conftest.$ac_ext <<_ACEOF
  23277. /* end confdefs.h.  */
  23278. $ac_includes_default
  23279. #include <$ac_header>
  23280. _ACEOF
  23281. rm -f conftest.$ac_objext
  23282. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23283.   (eval $ac_compile) 2>conftest.er1
  23284.   ac_status=$?
  23285.   grep -v '^ *+' conftest.er1 >conftest.err
  23286.   rm -f conftest.er1
  23287.   cat conftest.err >&5
  23288.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23289.   (exit $ac_status); } &&
  23290.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  23291.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23292.   (eval $ac_try) 2>&5
  23293.   ac_status=$?
  23294.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23295.   (exit $ac_status); }; } &&
  23296.      { ac_try='test -s conftest.$ac_objext'
  23297.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23298.   (eval $ac_try) 2>&5
  23299.   ac_status=$?
  23300.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23301.   (exit $ac_status); }; }; then
  23302.   ac_header_compiler=yes
  23303. else
  23304.   echo "$as_me: failed program was:" >&5
  23305. sed 's/^/| /' conftest.$ac_ext >&5
  23306.  
  23307. ac_header_compiler=no
  23308. fi
  23309. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23310. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  23311. echo "${ECHO_T}$ac_header_compiler" >&6
  23312.  
  23313. # Is the header present?
  23314. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  23315. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  23316. cat >conftest.$ac_ext <<_ACEOF
  23317. /* confdefs.h.  */
  23318. _ACEOF
  23319. cat confdefs.h >>conftest.$ac_ext
  23320. cat >>conftest.$ac_ext <<_ACEOF
  23321. /* end confdefs.h.  */
  23322. #include <$ac_header>
  23323. _ACEOF
  23324. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  23325.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  23326.   ac_status=$?
  23327.   grep -v '^ *+' conftest.er1 >conftest.err
  23328.   rm -f conftest.er1
  23329.   cat conftest.err >&5
  23330.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23331.   (exit $ac_status); } >/dev/null; then
  23332.   if test -s conftest.err; then
  23333.     ac_cpp_err=$ac_cxx_preproc_warn_flag
  23334.     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  23335.   else
  23336.     ac_cpp_err=
  23337.   fi
  23338. else
  23339.   ac_cpp_err=yes
  23340. fi
  23341. if test -z "$ac_cpp_err"; then
  23342.   ac_header_preproc=yes
  23343. else
  23344.   echo "$as_me: failed program was:" >&5
  23345. sed 's/^/| /' conftest.$ac_ext >&5
  23346.  
  23347.   ac_header_preproc=no
  23348. fi
  23349. rm -f conftest.err conftest.$ac_ext
  23350. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  23351. echo "${ECHO_T}$ac_header_preproc" >&6
  23352.  
  23353. # So?  What about this header?
  23354. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  23355.   yes:no: )
  23356.     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  23357. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  23358.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  23359. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  23360.     ac_header_preproc=yes
  23361.     ;;
  23362.   no:yes:* )
  23363.     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  23364. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  23365.     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
  23366. echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
  23367.     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  23368. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  23369.     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
  23370. echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
  23371.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  23372. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  23373.     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  23374. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  23375.     (
  23376.       cat <<\_ASBOX
  23377. ## --------------------------------------- ##
  23378. ## Report this to gopchop-bugs@outflux.net ##
  23379. ## --------------------------------------- ##
  23380. _ASBOX
  23381.     ) |
  23382.       sed "s/^/$as_me: WARNING:     /" >&2
  23383.     ;;
  23384. esac
  23385. echo "$as_me:$LINENO: checking for $ac_header" >&5
  23386. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  23387. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23388.   echo $ECHO_N "(cached) $ECHO_C" >&6
  23389. else
  23390.   eval "$as_ac_Header=\$ac_header_preproc"
  23391. fi
  23392. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  23393. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  23394.  
  23395. fi
  23396. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  23397.   cat >>confdefs.h <<_ACEOF
  23398. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23399. _ACEOF
  23400.  
  23401. fi
  23402.  
  23403. done
  23404.  
  23405.     if test $ac_cv_header_locale_h = yes; then
  23406.     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  23407. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
  23408. if test "${am_cv_val_LC_MESSAGES+set}" = set; then
  23409.   echo $ECHO_N "(cached) $ECHO_C" >&6
  23410. else
  23411.   cat >conftest.$ac_ext <<_ACEOF
  23412. /* confdefs.h.  */
  23413. _ACEOF
  23414. cat confdefs.h >>conftest.$ac_ext
  23415. cat >>conftest.$ac_ext <<_ACEOF
  23416. /* end confdefs.h.  */
  23417. #include <locale.h>
  23418. int
  23419. main ()
  23420. {
  23421. return LC_MESSAGES
  23422.   ;
  23423.   return 0;
  23424. }
  23425. _ACEOF
  23426. rm -f conftest.$ac_objext conftest$ac_exeext
  23427. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23428.   (eval $ac_link) 2>conftest.er1
  23429.   ac_status=$?
  23430.   grep -v '^ *+' conftest.er1 >conftest.err
  23431.   rm -f conftest.er1
  23432.   cat conftest.err >&5
  23433.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23434.   (exit $ac_status); } &&
  23435.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  23436.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23437.   (eval $ac_try) 2>&5
  23438.   ac_status=$?
  23439.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23440.   (exit $ac_status); }; } &&
  23441.      { ac_try='test -s conftest$ac_exeext'
  23442.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23443.   (eval $ac_try) 2>&5
  23444.   ac_status=$?
  23445.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23446.   (exit $ac_status); }; }; then
  23447.   am_cv_val_LC_MESSAGES=yes
  23448. else
  23449.   echo "$as_me: failed program was:" >&5
  23450. sed 's/^/| /' conftest.$ac_ext >&5
  23451.  
  23452. am_cv_val_LC_MESSAGES=no
  23453. fi
  23454. rm -f conftest.err conftest.$ac_objext \
  23455.       conftest$ac_exeext conftest.$ac_ext
  23456. fi
  23457. echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
  23458. echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
  23459.     if test $am_cv_val_LC_MESSAGES = yes; then
  23460.  
  23461. cat >>confdefs.h <<\_ACEOF
  23462. #define HAVE_LC_MESSAGES 1
  23463. _ACEOF
  23464.  
  23465.     fi
  23466.   fi
  23467.      USE_NLS=yes
  23468.  
  23469.  
  23470.     gt_cv_have_gettext=no
  23471.  
  23472.     CATOBJEXT=NONE
  23473.     XGETTEXT=:
  23474.     INTLLIBS=
  23475.  
  23476.     if test "${ac_cv_header_libintl_h+set}" = set; then
  23477.   echo "$as_me:$LINENO: checking for libintl.h" >&5
  23478. echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
  23479. if test "${ac_cv_header_libintl_h+set}" = set; then
  23480.   echo $ECHO_N "(cached) $ECHO_C" >&6
  23481. fi
  23482. echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
  23483. echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
  23484. else
  23485.   # Is the header compilable?
  23486. echo "$as_me:$LINENO: checking libintl.h usability" >&5
  23487. echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
  23488. cat >conftest.$ac_ext <<_ACEOF
  23489. /* confdefs.h.  */
  23490. _ACEOF
  23491. cat confdefs.h >>conftest.$ac_ext
  23492. cat >>conftest.$ac_ext <<_ACEOF
  23493. /* end confdefs.h.  */
  23494. $ac_includes_default
  23495. #include <libintl.h>
  23496. _ACEOF
  23497. rm -f conftest.$ac_objext
  23498. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23499.   (eval $ac_compile) 2>conftest.er1
  23500.   ac_status=$?
  23501.   grep -v '^ *+' conftest.er1 >conftest.err
  23502.   rm -f conftest.er1
  23503.   cat conftest.err >&5
  23504.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23505.   (exit $ac_status); } &&
  23506.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  23507.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23508.   (eval $ac_try) 2>&5
  23509.   ac_status=$?
  23510.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23511.   (exit $ac_status); }; } &&
  23512.      { ac_try='test -s conftest.$ac_objext'
  23513.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23514.   (eval $ac_try) 2>&5
  23515.   ac_status=$?
  23516.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23517.   (exit $ac_status); }; }; then
  23518.   ac_header_compiler=yes
  23519. else
  23520.   echo "$as_me: failed program was:" >&5
  23521. sed 's/^/| /' conftest.$ac_ext >&5
  23522.  
  23523. ac_header_compiler=no
  23524. fi
  23525. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23526. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  23527. echo "${ECHO_T}$ac_header_compiler" >&6
  23528.  
  23529. # Is the header present?
  23530. echo "$as_me:$LINENO: checking libintl.h presence" >&5
  23531. echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
  23532. cat >conftest.$ac_ext <<_ACEOF
  23533. /* confdefs.h.  */
  23534. _ACEOF
  23535. cat confdefs.h >>conftest.$ac_ext
  23536. cat >>conftest.$ac_ext <<_ACEOF
  23537. /* end confdefs.h.  */
  23538. #include <libintl.h>
  23539. _ACEOF
  23540. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  23541.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  23542.   ac_status=$?
  23543.   grep -v '^ *+' conftest.er1 >conftest.err
  23544.   rm -f conftest.er1
  23545.   cat conftest.err >&5
  23546.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23547.   (exit $ac_status); } >/dev/null; then
  23548.   if test -s conftest.err; then
  23549.     ac_cpp_err=$ac_cxx_preproc_warn_flag
  23550.     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  23551.   else
  23552.     ac_cpp_err=
  23553.   fi
  23554. else
  23555.   ac_cpp_err=yes
  23556. fi
  23557. if test -z "$ac_cpp_err"; then
  23558.   ac_header_preproc=yes
  23559. else
  23560.   echo "$as_me: failed program was:" >&5
  23561. sed 's/^/| /' conftest.$ac_ext >&5
  23562.  
  23563.   ac_header_preproc=no
  23564. fi
  23565. rm -f conftest.err conftest.$ac_ext
  23566. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  23567. echo "${ECHO_T}$ac_header_preproc" >&6
  23568.  
  23569. # So?  What about this header?
  23570. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  23571.   yes:no: )
  23572.     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
  23573. echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  23574.     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
  23575. echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
  23576.     ac_header_preproc=yes
  23577.     ;;
  23578.   no:yes:* )
  23579.     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
  23580. echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
  23581.     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
  23582. echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
  23583.     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
  23584. echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
  23585.     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
  23586. echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  23587.     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
  23588. echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
  23589.     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
  23590. echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
  23591.     (
  23592.       cat <<\_ASBOX
  23593. ## --------------------------------------- ##
  23594. ## Report this to gopchop-bugs@outflux.net ##
  23595. ## --------------------------------------- ##
  23596. _ASBOX
  23597.     ) |
  23598.       sed "s/^/$as_me: WARNING:     /" >&2
  23599.     ;;
  23600. esac
  23601. echo "$as_me:$LINENO: checking for libintl.h" >&5
  23602. echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
  23603. if test "${ac_cv_header_libintl_h+set}" = set; then
  23604.   echo $ECHO_N "(cached) $ECHO_C" >&6
  23605. else
  23606.   ac_cv_header_libintl_h=$ac_header_preproc
  23607. fi
  23608. echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
  23609. echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
  23610.  
  23611. fi
  23612. if test $ac_cv_header_libintl_h = yes; then
  23613.   gt_cv_func_dgettext_libintl="no"
  23614.       libintl_extra_libs=""
  23615.  
  23616.       #
  23617.       # First check in libc
  23618.       #
  23619.       echo "$as_me:$LINENO: checking for ngettext in libc" >&5
  23620. echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6
  23621. if test "${gt_cv_func_ngettext_libc+set}" = set; then
  23622.   echo $ECHO_N "(cached) $ECHO_C" >&6
  23623. else
  23624.   cat >conftest.$ac_ext <<_ACEOF
  23625. /* confdefs.h.  */
  23626. _ACEOF
  23627. cat confdefs.h >>conftest.$ac_ext
  23628. cat >>conftest.$ac_ext <<_ACEOF
  23629. /* end confdefs.h.  */
  23630.  
  23631. #include <libintl.h>
  23632.  
  23633. int
  23634. main ()
  23635. {
  23636. return !ngettext ("","", 1)
  23637.   ;
  23638.   return 0;
  23639. }
  23640. _ACEOF
  23641. rm -f conftest.$ac_objext conftest$ac_exeext
  23642. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23643.   (eval $ac_link) 2>conftest.er1
  23644.   ac_status=$?
  23645.   grep -v '^ *+' conftest.er1 >conftest.err
  23646.   rm -f conftest.er1
  23647.   cat conftest.err >&5
  23648.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23649.   (exit $ac_status); } &&
  23650.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  23651.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23652.   (eval $ac_try) 2>&5
  23653.   ac_status=$?
  23654.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23655.   (exit $ac_status); }; } &&
  23656.      { ac_try='test -s conftest$ac_exeext'
  23657.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23658.   (eval $ac_try) 2>&5
  23659.   ac_status=$?
  23660.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23661.   (exit $ac_status); }; }; then
  23662.   gt_cv_func_ngettext_libc=yes
  23663. else
  23664.   echo "$as_me: failed program was:" >&5
  23665. sed 's/^/| /' conftest.$ac_ext >&5
  23666.  
  23667. gt_cv_func_ngettext_libc=no
  23668. fi
  23669. rm -f conftest.err conftest.$ac_objext \
  23670.       conftest$ac_exeext conftest.$ac_ext
  23671.  
  23672. fi
  23673. echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
  23674. echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6
  23675.  
  23676.       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
  23677.           echo "$as_me:$LINENO: checking for dgettext in libc" >&5
  23678. echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
  23679. if test "${gt_cv_func_dgettext_libc+set}" = set; then
  23680.   echo $ECHO_N "(cached) $ECHO_C" >&6
  23681. else
  23682.   cat >conftest.$ac_ext <<_ACEOF
  23683. /* confdefs.h.  */
  23684. _ACEOF
  23685. cat confdefs.h >>conftest.$ac_ext
  23686. cat >>conftest.$ac_ext <<_ACEOF
  23687. /* end confdefs.h.  */
  23688.  
  23689. #include <libintl.h>
  23690.  
  23691. int
  23692. main ()
  23693. {
  23694. return !dgettext ("","")
  23695.   ;
  23696.   return 0;
  23697. }
  23698. _ACEOF
  23699. rm -f conftest.$ac_objext conftest$ac_exeext
  23700. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23701.   (eval $ac_link) 2>conftest.er1
  23702.   ac_status=$?
  23703.   grep -v '^ *+' conftest.er1 >conftest.err
  23704.   rm -f conftest.er1
  23705.   cat conftest.err >&5
  23706.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23707.   (exit $ac_status); } &&
  23708.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  23709.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23710.   (eval $ac_try) 2>&5
  23711.   ac_status=$?
  23712.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23713.   (exit $ac_status); }; } &&
  23714.      { ac_try='test -s conftest$ac_exeext'
  23715.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23716.   (eval $ac_try) 2>&5
  23717.   ac_status=$?
  23718.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23719.   (exit $ac_status); }; }; then
  23720.   gt_cv_func_dgettext_libc=yes
  23721. else
  23722.   echo "$as_me: failed program was:" >&5
  23723. sed 's/^/| /' conftest.$ac_ext >&5
  23724.  
  23725. gt_cv_func_dgettext_libc=no
  23726. fi
  23727. rm -f conftest.err conftest.$ac_objext \
  23728.       conftest$ac_exeext conftest.$ac_ext
  23729.  
  23730. fi
  23731. echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
  23732. echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
  23733.       fi
  23734.  
  23735.       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
  23736.  
  23737. for ac_func in bind_textdomain_codeset
  23738. do
  23739. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  23740. echo "$as_me:$LINENO: checking for $ac_func" >&5
  23741. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  23742. if eval "test \"\${$as_ac_var+set}\" = set"; then
  23743.   echo $ECHO_N "(cached) $ECHO_C" >&6
  23744. else
  23745.   cat >conftest.$ac_ext <<_ACEOF
  23746. /* confdefs.h.  */
  23747. _ACEOF
  23748. cat confdefs.h >>conftest.$ac_ext
  23749. cat >>conftest.$ac_ext <<_ACEOF
  23750. /* end confdefs.h.  */
  23751. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  23752.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  23753. #define $ac_func innocuous_$ac_func
  23754.  
  23755. /* System header to define __stub macros and hopefully few prototypes,
  23756.     which can conflict with char $ac_func (); below.
  23757.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23758.     <limits.h> exists even on freestanding compilers.  */
  23759.  
  23760. #ifdef __STDC__
  23761. # include <limits.h>
  23762. #else
  23763. # include <assert.h>
  23764. #endif
  23765.  
  23766. #undef $ac_func
  23767.  
  23768. /* Override any gcc2 internal prototype to avoid an error.  */
  23769. #ifdef __cplusplus
  23770. extern "C"
  23771. {
  23772. #endif
  23773. /* We use char because int might match the return type of a gcc2
  23774.    builtin and then its argument prototype would still apply.  */
  23775. char $ac_func ();
  23776. /* The GNU C library defines this for functions which it implements
  23777.     to always fail with ENOSYS.  Some functions are actually named
  23778.     something starting with __ and the normal name is an alias.  */
  23779. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  23780. choke me
  23781. #else
  23782. char (*f) () = $ac_func;
  23783. #endif
  23784. #ifdef __cplusplus
  23785. }
  23786. #endif
  23787.  
  23788. int
  23789. main ()
  23790. {
  23791. return f != $ac_func;
  23792.   ;
  23793.   return 0;
  23794. }
  23795. _ACEOF
  23796. rm -f conftest.$ac_objext conftest$ac_exeext
  23797. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23798.   (eval $ac_link) 2>conftest.er1
  23799.   ac_status=$?
  23800.   grep -v '^ *+' conftest.er1 >conftest.err
  23801.   rm -f conftest.er1
  23802.   cat conftest.err >&5
  23803.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23804.   (exit $ac_status); } &&
  23805.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  23806.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23807.   (eval $ac_try) 2>&5
  23808.   ac_status=$?
  23809.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23810.   (exit $ac_status); }; } &&
  23811.      { ac_try='test -s conftest$ac_exeext'
  23812.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23813.   (eval $ac_try) 2>&5
  23814.   ac_status=$?
  23815.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23816.   (exit $ac_status); }; }; then
  23817.   eval "$as_ac_var=yes"
  23818. else
  23819.   echo "$as_me: failed program was:" >&5
  23820. sed 's/^/| /' conftest.$ac_ext >&5
  23821.  
  23822. eval "$as_ac_var=no"
  23823. fi
  23824. rm -f conftest.err conftest.$ac_objext \
  23825.       conftest$ac_exeext conftest.$ac_ext
  23826. fi
  23827. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  23828. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  23829. if test `eval echo '${'$as_ac_var'}'` = yes; then
  23830.   cat >>confdefs.h <<_ACEOF
  23831. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  23832. _ACEOF
  23833.  
  23834. fi
  23835. done
  23836.  
  23837.       fi
  23838.  
  23839.       #
  23840.       # If we don't have everything we want, check in libintl
  23841.       #
  23842.       if test "$gt_cv_func_dgettext_libc" != "yes" \
  23843.      || test "$gt_cv_func_ngettext_libc" != "yes" \
  23844.          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
  23845.  
  23846.         echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
  23847. echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
  23848. if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
  23849.   echo $ECHO_N "(cached) $ECHO_C" >&6
  23850. else
  23851.   ac_check_lib_save_LIBS=$LIBS
  23852. LIBS="-lintl  $LIBS"
  23853. cat >conftest.$ac_ext <<_ACEOF
  23854. /* confdefs.h.  */
  23855. _ACEOF
  23856. cat confdefs.h >>conftest.$ac_ext
  23857. cat >>conftest.$ac_ext <<_ACEOF
  23858. /* end confdefs.h.  */
  23859.  
  23860. /* Override any gcc2 internal prototype to avoid an error.  */
  23861. #ifdef __cplusplus
  23862. extern "C"
  23863. #endif
  23864. /* We use char because int might match the return type of a gcc2
  23865.    builtin and then its argument prototype would still apply.  */
  23866. char bindtextdomain ();
  23867. int
  23868. main ()
  23869. {
  23870. bindtextdomain ();
  23871.   ;
  23872.   return 0;
  23873. }
  23874. _ACEOF
  23875. rm -f conftest.$ac_objext conftest$ac_exeext
  23876. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23877.   (eval $ac_link) 2>conftest.er1
  23878.   ac_status=$?
  23879.   grep -v '^ *+' conftest.er1 >conftest.err
  23880.   rm -f conftest.er1
  23881.   cat conftest.err >&5
  23882.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23883.   (exit $ac_status); } &&
  23884.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  23885.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23886.   (eval $ac_try) 2>&5
  23887.   ac_status=$?
  23888.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23889.   (exit $ac_status); }; } &&
  23890.      { ac_try='test -s conftest$ac_exeext'
  23891.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23892.   (eval $ac_try) 2>&5
  23893.   ac_status=$?
  23894.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23895.   (exit $ac_status); }; }; then
  23896.   ac_cv_lib_intl_bindtextdomain=yes
  23897. else
  23898.   echo "$as_me: failed program was:" >&5
  23899. sed 's/^/| /' conftest.$ac_ext >&5
  23900.  
  23901. ac_cv_lib_intl_bindtextdomain=no
  23902. fi
  23903. rm -f conftest.err conftest.$ac_objext \
  23904.       conftest$ac_exeext conftest.$ac_ext
  23905. LIBS=$ac_check_lib_save_LIBS
  23906. fi
  23907. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
  23908. echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
  23909. if test $ac_cv_lib_intl_bindtextdomain = yes; then
  23910.   echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
  23911. echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
  23912. if test "${ac_cv_lib_intl_ngettext+set}" = set; then
  23913.   echo $ECHO_N "(cached) $ECHO_C" >&6
  23914. else
  23915.   ac_check_lib_save_LIBS=$LIBS
  23916. LIBS="-lintl  $LIBS"
  23917. cat >conftest.$ac_ext <<_ACEOF
  23918. /* confdefs.h.  */
  23919. _ACEOF
  23920. cat confdefs.h >>conftest.$ac_ext
  23921. cat >>conftest.$ac_ext <<_ACEOF
  23922. /* end confdefs.h.  */
  23923.  
  23924. /* Override any gcc2 internal prototype to avoid an error.  */
  23925. #ifdef __cplusplus
  23926. extern "C"
  23927. #endif
  23928. /* We use char because int might match the return type of a gcc2
  23929.    builtin and then its argument prototype would still apply.  */
  23930. char ngettext ();
  23931. int
  23932. main ()
  23933. {
  23934. ngettext ();
  23935.   ;
  23936.   return 0;
  23937. }
  23938. _ACEOF
  23939. rm -f conftest.$ac_objext conftest$ac_exeext
  23940. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23941.   (eval $ac_link) 2>conftest.er1
  23942.   ac_status=$?
  23943.   grep -v '^ *+' conftest.er1 >conftest.err
  23944.   rm -f conftest.er1
  23945.   cat conftest.err >&5
  23946.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23947.   (exit $ac_status); } &&
  23948.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  23949.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23950.   (eval $ac_try) 2>&5
  23951.   ac_status=$?
  23952.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23953.   (exit $ac_status); }; } &&
  23954.      { ac_try='test -s conftest$ac_exeext'
  23955.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23956.   (eval $ac_try) 2>&5
  23957.   ac_status=$?
  23958.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23959.   (exit $ac_status); }; }; then
  23960.   ac_cv_lib_intl_ngettext=yes
  23961. else
  23962.   echo "$as_me: failed program was:" >&5
  23963. sed 's/^/| /' conftest.$ac_ext >&5
  23964.  
  23965. ac_cv_lib_intl_ngettext=no
  23966. fi
  23967. rm -f conftest.err conftest.$ac_objext \
  23968.       conftest$ac_exeext conftest.$ac_ext
  23969. LIBS=$ac_check_lib_save_LIBS
  23970. fi
  23971. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
  23972. echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
  23973. if test $ac_cv_lib_intl_ngettext = yes; then
  23974.   echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
  23975. echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
  23976. if test "${ac_cv_lib_intl_dgettext+set}" = set; then
  23977.   echo $ECHO_N "(cached) $ECHO_C" >&6
  23978. else
  23979.   ac_check_lib_save_LIBS=$LIBS
  23980. LIBS="-lintl  $LIBS"
  23981. cat >conftest.$ac_ext <<_ACEOF
  23982. /* confdefs.h.  */
  23983. _ACEOF
  23984. cat confdefs.h >>conftest.$ac_ext
  23985. cat >>conftest.$ac_ext <<_ACEOF
  23986. /* end confdefs.h.  */
  23987.  
  23988. /* Override any gcc2 internal prototype to avoid an error.  */
  23989. #ifdef __cplusplus
  23990. extern "C"
  23991. #endif
  23992. /* We use char because int might match the return type of a gcc2
  23993.    builtin and then its argument prototype would still apply.  */
  23994. char dgettext ();
  23995. int
  23996. main ()
  23997. {
  23998. dgettext ();
  23999.   ;
  24000.   return 0;
  24001. }
  24002. _ACEOF
  24003. rm -f conftest.$ac_objext conftest$ac_exeext
  24004. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24005.   (eval $ac_link) 2>conftest.er1
  24006.   ac_status=$?
  24007.   grep -v '^ *+' conftest.er1 >conftest.err
  24008.   rm -f conftest.er1
  24009.   cat conftest.err >&5
  24010.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24011.   (exit $ac_status); } &&
  24012.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  24013.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24014.   (eval $ac_try) 2>&5
  24015.   ac_status=$?
  24016.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24017.   (exit $ac_status); }; } &&
  24018.      { ac_try='test -s conftest$ac_exeext'
  24019.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24020.   (eval $ac_try) 2>&5
  24021.   ac_status=$?
  24022.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24023.   (exit $ac_status); }; }; then
  24024.   ac_cv_lib_intl_dgettext=yes
  24025. else
  24026.   echo "$as_me: failed program was:" >&5
  24027. sed 's/^/| /' conftest.$ac_ext >&5
  24028.  
  24029. ac_cv_lib_intl_dgettext=no
  24030. fi
  24031. rm -f conftest.err conftest.$ac_objext \
  24032.       conftest$ac_exeext conftest.$ac_ext
  24033. LIBS=$ac_check_lib_save_LIBS
  24034. fi
  24035. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
  24036. echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
  24037. if test $ac_cv_lib_intl_dgettext = yes; then
  24038.   gt_cv_func_dgettext_libintl=yes
  24039. fi
  24040.  
  24041. fi
  24042.  
  24043. fi
  24044.  
  24045.  
  24046.     if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
  24047.       echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
  24048. echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6
  24049.       echo "$as_me:$LINENO: result: " >&5
  24050. echo "${ECHO_T}" >&6
  24051.         echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
  24052. echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
  24053. if test "${ac_cv_lib_intl_ngettext+set}" = set; then
  24054.   echo $ECHO_N "(cached) $ECHO_C" >&6
  24055. else
  24056.   ac_check_lib_save_LIBS=$LIBS
  24057. LIBS="-lintl -liconv $LIBS"
  24058. cat >conftest.$ac_ext <<_ACEOF
  24059. /* confdefs.h.  */
  24060. _ACEOF
  24061. cat confdefs.h >>conftest.$ac_ext
  24062. cat >>conftest.$ac_ext <<_ACEOF
  24063. /* end confdefs.h.  */
  24064.  
  24065. /* Override any gcc2 internal prototype to avoid an error.  */
  24066. #ifdef __cplusplus
  24067. extern "C"
  24068. #endif
  24069. /* We use char because int might match the return type of a gcc2
  24070.    builtin and then its argument prototype would still apply.  */
  24071. char ngettext ();
  24072. int
  24073. main ()
  24074. {
  24075. ngettext ();
  24076.   ;
  24077.   return 0;
  24078. }
  24079. _ACEOF
  24080. rm -f conftest.$ac_objext conftest$ac_exeext
  24081. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24082.   (eval $ac_link) 2>conftest.er1
  24083.   ac_status=$?
  24084.   grep -v '^ *+' conftest.er1 >conftest.err
  24085.   rm -f conftest.er1
  24086.   cat conftest.err >&5
  24087.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24088.   (exit $ac_status); } &&
  24089.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  24090.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24091.   (eval $ac_try) 2>&5
  24092.   ac_status=$?
  24093.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24094.   (exit $ac_status); }; } &&
  24095.      { ac_try='test -s conftest$ac_exeext'
  24096.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24097.   (eval $ac_try) 2>&5
  24098.   ac_status=$?
  24099.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24100.   (exit $ac_status); }; }; then
  24101.   ac_cv_lib_intl_ngettext=yes
  24102. else
  24103.   echo "$as_me: failed program was:" >&5
  24104. sed 's/^/| /' conftest.$ac_ext >&5
  24105.  
  24106. ac_cv_lib_intl_ngettext=no
  24107. fi
  24108. rm -f conftest.err conftest.$ac_objext \
  24109.       conftest$ac_exeext conftest.$ac_ext
  24110. LIBS=$ac_check_lib_save_LIBS
  24111. fi
  24112. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
  24113. echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
  24114. if test $ac_cv_lib_intl_ngettext = yes; then
  24115.   echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
  24116. echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6
  24117. if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
  24118.   echo $ECHO_N "(cached) $ECHO_C" >&6
  24119. else
  24120.   ac_check_lib_save_LIBS=$LIBS
  24121. LIBS="-lintl -liconv $LIBS"
  24122. cat >conftest.$ac_ext <<_ACEOF
  24123. /* confdefs.h.  */
  24124. _ACEOF
  24125. cat confdefs.h >>conftest.$ac_ext
  24126. cat >>conftest.$ac_ext <<_ACEOF
  24127. /* end confdefs.h.  */
  24128.  
  24129. /* Override any gcc2 internal prototype to avoid an error.  */
  24130. #ifdef __cplusplus
  24131. extern "C"
  24132. #endif
  24133. /* We use char because int might match the return type of a gcc2
  24134.    builtin and then its argument prototype would still apply.  */
  24135. char dcgettext ();
  24136. int
  24137. main ()
  24138. {
  24139. dcgettext ();
  24140.   ;
  24141.   return 0;
  24142. }
  24143. _ACEOF
  24144. rm -f conftest.$ac_objext conftest$ac_exeext
  24145. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24146.   (eval $ac_link) 2>conftest.er1
  24147.   ac_status=$?
  24148.   grep -v '^ *+' conftest.er1 >conftest.err
  24149.   rm -f conftest.er1
  24150.   cat conftest.err >&5
  24151.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24152.   (exit $ac_status); } &&
  24153.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  24154.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24155.   (eval $ac_try) 2>&5
  24156.   ac_status=$?
  24157.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24158.   (exit $ac_status); }; } &&
  24159.      { ac_try='test -s conftest$ac_exeext'
  24160.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24161.   (eval $ac_try) 2>&5
  24162.   ac_status=$?
  24163.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24164.   (exit $ac_status); }; }; then
  24165.   ac_cv_lib_intl_dcgettext=yes
  24166. else
  24167.   echo "$as_me: failed program was:" >&5
  24168. sed 's/^/| /' conftest.$ac_ext >&5
  24169.  
  24170. ac_cv_lib_intl_dcgettext=no
  24171. fi
  24172. rm -f conftest.err conftest.$ac_objext \
  24173.       conftest$ac_exeext conftest.$ac_ext
  24174. LIBS=$ac_check_lib_save_LIBS
  24175. fi
  24176. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
  24177. echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6
  24178. if test $ac_cv_lib_intl_dcgettext = yes; then
  24179.   gt_cv_func_dgettext_libintl=yes
  24180.             libintl_extra_libs=-liconv
  24181. else
  24182.   :
  24183. fi
  24184.  
  24185. else
  24186.   :
  24187. fi
  24188.  
  24189.         fi
  24190.  
  24191.         #
  24192.         # If we found libintl, then check in it for bind_textdomain_codeset();
  24193.         # we'll prefer libc if neither have bind_textdomain_codeset(),
  24194.         # and both have dgettext and ngettext
  24195.         #
  24196.         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
  24197.           glib_save_LIBS="$LIBS"
  24198.           LIBS="$LIBS -lintl $libintl_extra_libs"
  24199.           unset ac_cv_func_bind_textdomain_codeset
  24200.  
  24201. for ac_func in bind_textdomain_codeset
  24202. do
  24203. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  24204. echo "$as_me:$LINENO: checking for $ac_func" >&5
  24205. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  24206. if eval "test \"\${$as_ac_var+set}\" = set"; then
  24207.   echo $ECHO_N "(cached) $ECHO_C" >&6
  24208. else
  24209.   cat >conftest.$ac_ext <<_ACEOF
  24210. /* confdefs.h.  */
  24211. _ACEOF
  24212. cat confdefs.h >>conftest.$ac_ext
  24213. cat >>conftest.$ac_ext <<_ACEOF
  24214. /* end confdefs.h.  */
  24215. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  24216.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  24217. #define $ac_func innocuous_$ac_func
  24218.  
  24219. /* System header to define __stub macros and hopefully few prototypes,
  24220.     which can conflict with char $ac_func (); below.
  24221.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  24222.     <limits.h> exists even on freestanding compilers.  */
  24223.  
  24224. #ifdef __STDC__
  24225. # include <limits.h>
  24226. #else
  24227. # include <assert.h>
  24228. #endif
  24229.  
  24230. #undef $ac_func
  24231.  
  24232. /* Override any gcc2 internal prototype to avoid an error.  */
  24233. #ifdef __cplusplus
  24234. extern "C"
  24235. {
  24236. #endif
  24237. /* We use char because int might match the return type of a gcc2
  24238.    builtin and then its argument prototype would still apply.  */
  24239. char $ac_func ();
  24240. /* The GNU C library defines this for functions which it implements
  24241.     to always fail with ENOSYS.  Some functions are actually named
  24242.     something starting with __ and the normal name is an alias.  */
  24243. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  24244. choke me
  24245. #else
  24246. char (*f) () = $ac_func;
  24247. #endif
  24248. #ifdef __cplusplus
  24249. }
  24250. #endif
  24251.  
  24252. int
  24253. main ()
  24254. {
  24255. return f != $ac_func;
  24256.   ;
  24257.   return 0;
  24258. }
  24259. _ACEOF
  24260. rm -f conftest.$ac_objext conftest$ac_exeext
  24261. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24262.   (eval $ac_link) 2>conftest.er1
  24263.   ac_status=$?
  24264.   grep -v '^ *+' conftest.er1 >conftest.err
  24265.   rm -f conftest.er1
  24266.   cat conftest.err >&5
  24267.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24268.   (exit $ac_status); } &&
  24269.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  24270.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24271.   (eval $ac_try) 2>&5
  24272.   ac_status=$?
  24273.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24274.   (exit $ac_status); }; } &&
  24275.      { ac_try='test -s conftest$ac_exeext'
  24276.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24277.   (eval $ac_try) 2>&5
  24278.   ac_status=$?
  24279.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24280.   (exit $ac_status); }; }; then
  24281.   eval "$as_ac_var=yes"
  24282. else
  24283.   echo "$as_me: failed program was:" >&5
  24284. sed 's/^/| /' conftest.$ac_ext >&5
  24285.  
  24286. eval "$as_ac_var=no"
  24287. fi
  24288. rm -f conftest.err conftest.$ac_objext \
  24289.       conftest$ac_exeext conftest.$ac_ext
  24290. fi
  24291. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  24292. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  24293. if test `eval echo '${'$as_ac_var'}'` = yes; then
  24294.   cat >>confdefs.h <<_ACEOF
  24295. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  24296. _ACEOF
  24297.  
  24298. fi
  24299. done
  24300.  
  24301.           LIBS="$glib_save_LIBS"
  24302.  
  24303.           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
  24304.             gt_cv_func_dgettext_libc=no
  24305.           else
  24306.             if test "$gt_cv_func_dgettext_libc" = "yes" \
  24307.         && test "$gt_cv_func_ngettext_libc" = "yes"; then
  24308.               gt_cv_func_dgettext_libintl=no
  24309.             fi
  24310.           fi
  24311.         fi
  24312.       fi
  24313.  
  24314.       if test "$gt_cv_func_dgettext_libc" = "yes" \
  24315.     || test "$gt_cv_func_dgettext_libintl" = "yes"; then
  24316.         gt_cv_have_gettext=yes
  24317.       fi
  24318.  
  24319.       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
  24320.         INTLLIBS="-lintl $libintl_extra_libs"
  24321.       fi
  24322.  
  24323.       if test "$gt_cv_have_gettext" = "yes"; then
  24324.  
  24325. cat >>confdefs.h <<\_ACEOF
  24326. #define HAVE_GETTEXT 1
  24327. _ACEOF
  24328.  
  24329.     # Extract the first word of "msgfmt", so it can be a program name with args.
  24330. set dummy msgfmt; ac_word=$2
  24331. echo "$as_me:$LINENO: checking for $ac_word" >&5
  24332. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  24333. if test "${ac_cv_path_MSGFMT+set}" = set; then
  24334.   echo $ECHO_N "(cached) $ECHO_C" >&6
  24335. else
  24336.   case "$MSGFMT" in
  24337.   /*)
  24338.   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  24339.   ;;
  24340.   *)
  24341.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  24342.   for ac_dir in $PATH; do
  24343.     test -z "$ac_dir" && ac_dir=.
  24344.     if test -f $ac_dir/$ac_word; then
  24345.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
  24346.     ac_cv_path_MSGFMT="$ac_dir/$ac_word"
  24347.     break
  24348.       fi
  24349.     fi
  24350.   done
  24351.   IFS="$ac_save_ifs"
  24352.   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
  24353.   ;;
  24354. esac
  24355. fi
  24356. MSGFMT="$ac_cv_path_MSGFMT"
  24357. if test "$MSGFMT" != "no"; then
  24358.   echo "$as_me:$LINENO: result: $MSGFMT" >&5
  24359. echo "${ECHO_T}$MSGFMT" >&6
  24360. else
  24361.   echo "$as_me:$LINENO: result: no" >&5
  24362. echo "${ECHO_T}no" >&6
  24363. fi
  24364.     if test "$MSGFMT" != "no"; then
  24365.           glib_save_LIBS="$LIBS"
  24366.           LIBS="$LIBS $INTLLIBS"
  24367.  
  24368. for ac_func in dcgettext
  24369. do
  24370. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  24371. echo "$as_me:$LINENO: checking for $ac_func" >&5
  24372. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  24373. if eval "test \"\${$as_ac_var+set}\" = set"; then
  24374.   echo $ECHO_N "(cached) $ECHO_C" >&6
  24375. else
  24376.   cat >conftest.$ac_ext <<_ACEOF
  24377. /* confdefs.h.  */
  24378. _ACEOF
  24379. cat confdefs.h >>conftest.$ac_ext
  24380. cat >>conftest.$ac_ext <<_ACEOF
  24381. /* end confdefs.h.  */
  24382. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  24383.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  24384. #define $ac_func innocuous_$ac_func
  24385.  
  24386. /* System header to define __stub macros and hopefully few prototypes,
  24387.     which can conflict with char $ac_func (); below.
  24388.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  24389.     <limits.h> exists even on freestanding compilers.  */
  24390.  
  24391. #ifdef __STDC__
  24392. # include <limits.h>
  24393. #else
  24394. # include <assert.h>
  24395. #endif
  24396.  
  24397. #undef $ac_func
  24398.  
  24399. /* Override any gcc2 internal prototype to avoid an error.  */
  24400. #ifdef __cplusplus
  24401. extern "C"
  24402. {
  24403. #endif
  24404. /* We use char because int might match the return type of a gcc2
  24405.    builtin and then its argument prototype would still apply.  */
  24406. char $ac_func ();
  24407. /* The GNU C library defines this for functions which it implements
  24408.     to always fail with ENOSYS.  Some functions are actually named
  24409.     something starting with __ and the normal name is an alias.  */
  24410. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  24411. choke me
  24412. #else
  24413. char (*f) () = $ac_func;
  24414. #endif
  24415. #ifdef __cplusplus
  24416. }
  24417. #endif
  24418.  
  24419. int
  24420. main ()
  24421. {
  24422. return f != $ac_func;
  24423.   ;
  24424.   return 0;
  24425. }
  24426. _ACEOF
  24427. rm -f conftest.$ac_objext conftest$ac_exeext
  24428. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24429.   (eval $ac_link) 2>conftest.er1
  24430.   ac_status=$?
  24431.   grep -v '^ *+' conftest.er1 >conftest.err
  24432.   rm -f conftest.er1
  24433.   cat conftest.err >&5
  24434.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24435.   (exit $ac_status); } &&
  24436.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  24437.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24438.   (eval $ac_try) 2>&5
  24439.   ac_status=$?
  24440.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24441.   (exit $ac_status); }; } &&
  24442.      { ac_try='test -s conftest$ac_exeext'
  24443.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24444.   (eval $ac_try) 2>&5
  24445.   ac_status=$?
  24446.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24447.   (exit $ac_status); }; }; then
  24448.   eval "$as_ac_var=yes"
  24449. else
  24450.   echo "$as_me: failed program was:" >&5
  24451. sed 's/^/| /' conftest.$ac_ext >&5
  24452.  
  24453. eval "$as_ac_var=no"
  24454. fi
  24455. rm -f conftest.err conftest.$ac_objext \
  24456.       conftest$ac_exeext conftest.$ac_ext
  24457. fi
  24458. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  24459. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  24460. if test `eval echo '${'$as_ac_var'}'` = yes; then
  24461.   cat >>confdefs.h <<_ACEOF
  24462. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  24463. _ACEOF
  24464.  
  24465. fi
  24466. done
  24467.  
  24468.       # Extract the first word of "gmsgfmt", so it can be a program name with args.
  24469. set dummy gmsgfmt; ac_word=$2
  24470. echo "$as_me:$LINENO: checking for $ac_word" >&5
  24471. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  24472. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  24473.   echo $ECHO_N "(cached) $ECHO_C" >&6
  24474. else
  24475.   case $GMSGFMT in
  24476.   [\\/]* | ?:[\\/]*)
  24477.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  24478.   ;;
  24479.   *)
  24480.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24481. for as_dir in $PATH
  24482. do
  24483.   IFS=$as_save_IFS
  24484.   test -z "$as_dir" && as_dir=.
  24485.   for ac_exec_ext in '' $ac_executable_extensions; do
  24486.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  24487.     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  24488.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24489.     break 2
  24490.   fi
  24491. done
  24492. done
  24493.  
  24494.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  24495.   ;;
  24496. esac
  24497. fi
  24498. GMSGFMT=$ac_cv_path_GMSGFMT
  24499.  
  24500. if test -n "$GMSGFMT"; then
  24501.   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  24502. echo "${ECHO_T}$GMSGFMT" >&6
  24503. else
  24504.   echo "$as_me:$LINENO: result: no" >&5
  24505. echo "${ECHO_T}no" >&6
  24506. fi
  24507.  
  24508.       # Extract the first word of "xgettext", so it can be a program name with args.
  24509. set dummy xgettext; ac_word=$2
  24510. echo "$as_me:$LINENO: checking for $ac_word" >&5
  24511. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  24512. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  24513.   echo $ECHO_N "(cached) $ECHO_C" >&6
  24514. else
  24515.   case "$XGETTEXT" in
  24516.   /*)
  24517.   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  24518.   ;;
  24519.   *)
  24520.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  24521.   for ac_dir in $PATH; do
  24522.     test -z "$ac_dir" && ac_dir=.
  24523.     if test -f $ac_dir/$ac_word; then
  24524.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
  24525.     ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  24526.     break
  24527.       fi
  24528.     fi
  24529.   done
  24530.   IFS="$ac_save_ifs"
  24531.   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  24532.   ;;
  24533. esac
  24534. fi
  24535. XGETTEXT="$ac_cv_path_XGETTEXT"
  24536. if test "$XGETTEXT" != ":"; then
  24537.   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  24538. echo "${ECHO_T}$XGETTEXT" >&6
  24539. else
  24540.   echo "$as_me:$LINENO: result: no" >&5
  24541. echo "${ECHO_T}no" >&6
  24542. fi
  24543.  
  24544.       cat >conftest.$ac_ext <<_ACEOF
  24545. /* confdefs.h.  */
  24546. _ACEOF
  24547. cat confdefs.h >>conftest.$ac_ext
  24548. cat >>conftest.$ac_ext <<_ACEOF
  24549. /* end confdefs.h.  */
  24550.  
  24551. int
  24552. main ()
  24553. {
  24554. extern int _nl_msg_cat_cntr;
  24555.              return _nl_msg_cat_cntr
  24556.   ;
  24557.   return 0;
  24558. }
  24559. _ACEOF
  24560. rm -f conftest.$ac_objext conftest$ac_exeext
  24561. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24562.   (eval $ac_link) 2>conftest.er1
  24563.   ac_status=$?
  24564.   grep -v '^ *+' conftest.er1 >conftest.err
  24565.   rm -f conftest.er1
  24566.   cat conftest.err >&5
  24567.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24568.   (exit $ac_status); } &&
  24569.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  24570.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24571.   (eval $ac_try) 2>&5
  24572.   ac_status=$?
  24573.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24574.   (exit $ac_status); }; } &&
  24575.      { ac_try='test -s conftest$ac_exeext'
  24576.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24577.   (eval $ac_try) 2>&5
  24578.   ac_status=$?
  24579.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24580.   (exit $ac_status); }; }; then
  24581.   CATOBJEXT=.gmo
  24582.              DATADIRNAME=share
  24583. else
  24584.   echo "$as_me: failed program was:" >&5
  24585. sed 's/^/| /' conftest.$ac_ext >&5
  24586.  
  24587. case $host in
  24588.         *-*-solaris*)
  24589.                                                         echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
  24590. echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6
  24591. if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
  24592.   echo $ECHO_N "(cached) $ECHO_C" >&6
  24593. else
  24594.   cat >conftest.$ac_ext <<_ACEOF
  24595. /* confdefs.h.  */
  24596. _ACEOF
  24597. cat confdefs.h >>conftest.$ac_ext
  24598. cat >>conftest.$ac_ext <<_ACEOF
  24599. /* end confdefs.h.  */
  24600. /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
  24601.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  24602. #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
  24603.  
  24604. /* System header to define __stub macros and hopefully few prototypes,
  24605.     which can conflict with char bind_textdomain_codeset (); below.
  24606.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  24607.     <limits.h> exists even on freestanding compilers.  */
  24608.  
  24609. #ifdef __STDC__
  24610. # include <limits.h>
  24611. #else
  24612. # include <assert.h>
  24613. #endif
  24614.  
  24615. #undef bind_textdomain_codeset
  24616.  
  24617. /* Override any gcc2 internal prototype to avoid an error.  */
  24618. #ifdef __cplusplus
  24619. extern "C"
  24620. {
  24621. #endif
  24622. /* We use char because int might match the return type of a gcc2
  24623.    builtin and then its argument prototype would still apply.  */
  24624. char bind_textdomain_codeset ();
  24625. /* The GNU C library defines this for functions which it implements
  24626.     to always fail with ENOSYS.  Some functions are actually named
  24627.     something starting with __ and the normal name is an alias.  */
  24628. #if defined (__stub_bind_textdomain_codeset) || defined (__stub___bind_textdomain_codeset)
  24629. choke me
  24630. #else
  24631. char (*f) () = bind_textdomain_codeset;
  24632. #endif
  24633. #ifdef __cplusplus
  24634. }
  24635. #endif
  24636.  
  24637. int
  24638. main ()
  24639. {
  24640. return f != bind_textdomain_codeset;
  24641.   ;
  24642.   return 0;
  24643. }
  24644. _ACEOF
  24645. rm -f conftest.$ac_objext conftest$ac_exeext
  24646. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24647.   (eval $ac_link) 2>conftest.er1
  24648.   ac_status=$?
  24649.   grep -v '^ *+' conftest.er1 >conftest.err
  24650.   rm -f conftest.er1
  24651.   cat conftest.err >&5
  24652.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24653.   (exit $ac_status); } &&
  24654.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  24655.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24656.   (eval $ac_try) 2>&5
  24657.   ac_status=$?
  24658.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24659.   (exit $ac_status); }; } &&
  24660.      { ac_try='test -s conftest$ac_exeext'
  24661.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24662.   (eval $ac_try) 2>&5
  24663.   ac_status=$?
  24664.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24665.   (exit $ac_status); }; }; then
  24666.   ac_cv_func_bind_textdomain_codeset=yes
  24667. else
  24668.   echo "$as_me: failed program was:" >&5
  24669. sed 's/^/| /' conftest.$ac_ext >&5
  24670.  
  24671. ac_cv_func_bind_textdomain_codeset=no
  24672. fi
  24673. rm -f conftest.err conftest.$ac_objext \
  24674.       conftest$ac_exeext conftest.$ac_ext
  24675. fi
  24676. echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
  24677. echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6
  24678. if test $ac_cv_func_bind_textdomain_codeset = yes; then
  24679.   CATOBJEXT=.gmo
  24680.                DATADIRNAME=share
  24681. else
  24682.   CATOBJEXT=.mo
  24683.                DATADIRNAME=lib
  24684. fi
  24685.  
  24686.         ;;
  24687.         *)
  24688.         CATOBJEXT=.mo
  24689.             DATADIRNAME=lib
  24690.         ;;
  24691.         esac
  24692. fi
  24693. rm -f conftest.err conftest.$ac_objext \
  24694.       conftest$ac_exeext conftest.$ac_ext
  24695.           LIBS="$glib_save_LIBS"
  24696.       INSTOBJEXT=.mo
  24697.     else
  24698.       gt_cv_have_gettext=no
  24699.     fi
  24700.       fi
  24701.  
  24702. fi
  24703.  
  24704.  
  24705.  
  24706.     if test "$gt_cv_have_gettext" = "yes" ; then
  24707.  
  24708. cat >>confdefs.h <<\_ACEOF
  24709. #define ENABLE_NLS 1
  24710. _ACEOF
  24711.  
  24712.     fi
  24713.  
  24714.         if test "$XGETTEXT" != ":"; then
  24715.                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
  24716.         : ;
  24717.       else
  24718.         echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
  24719. echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
  24720.         XGETTEXT=":"
  24721.       fi
  24722.     fi
  24723.  
  24724.     # We need to process the po/ directory.
  24725.     POSUB=po
  24726.  
  24727.               ac_config_commands="$ac_config_commands default-1"
  24728.  
  24729.  
  24730.                 for lang in $ALL_LINGUAS; do
  24731.       GMOFILES="$GMOFILES $lang.gmo"
  24732.       POFILES="$POFILES $lang.po"
  24733.     done
  24734.  
  24735.  
  24736.  
  24737.  
  24738.  
  24739.  
  24740.  
  24741.  
  24742.  
  24743.  
  24744.  
  24745.  
  24746.  
  24747.    if test "$gt_cv_have_gettext" = "yes"; then
  24748.      if test "x$ALL_LINGUAS" = "x"; then
  24749.        LINGUAS=
  24750.      else
  24751.        echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
  24752. echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
  24753.        NEW_LINGUAS=
  24754.        for presentlang in $ALL_LINGUAS; do
  24755.          useit=no
  24756.          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
  24757.            desiredlanguages="$LINGUAS"
  24758.          else
  24759.            desiredlanguages="$ALL_LINGUAS"
  24760.          fi
  24761.          for desiredlang in $desiredlanguages; do
  24762.         # Use the presentlang catalog if desiredlang is
  24763.            #   a. equal to presentlang, or
  24764.            #   b. a variant of presentlang (because in this case,
  24765.            #      presentlang can be used as a fallback for messages
  24766.            #      which are not translated in the desiredlang catalog).
  24767.            case "$desiredlang" in
  24768.              "$presentlang"*) useit=yes;;
  24769.            esac
  24770.          done
  24771.          if test $useit = yes; then
  24772.            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
  24773.          fi
  24774.        done
  24775.        LINGUAS=$NEW_LINGUAS
  24776.        echo "$as_me:$LINENO: result: $LINGUAS" >&5
  24777. echo "${ECHO_T}$LINGUAS" >&6
  24778.      fi
  24779.  
  24780.           if test -n "$LINGUAS"; then
  24781.        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
  24782.      fi
  24783.    fi
  24784.  
  24785.             MKINSTALLDIRS=
  24786.    if test -n "$ac_aux_dir"; then
  24787.      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
  24788.    fi
  24789.    if test -z "$MKINSTALLDIRS"; then
  24790.      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  24791.    fi
  24792.  
  24793.  
  24794.          test -d po || mkdir po
  24795.    if test "x$srcdir" != "x."; then
  24796.      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
  24797.        posrcprefix="$srcdir/"
  24798.      else
  24799.        posrcprefix="../$srcdir/"
  24800.      fi
  24801.    else
  24802.      posrcprefix="../"
  24803.    fi
  24804.    rm -f po/POTFILES
  24805.    sed -e "/^#/d" -e "/^\$/d" -e "s,.*,    $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
  24806.     < $srcdir/po/POTFILES.in > po/POTFILES
  24807.  
  24808.  
  24809. if test x"$GCC" = x"yes"; then
  24810.  
  24811.         case "$host" in
  24812.     i?86-* | k?-* | x86_64-*)
  24813.  
  24814. cat >>confdefs.h <<\_ACEOF
  24815. #define ARCH_X86
  24816. _ACEOF
  24817.  
  24818.         case "$host" in
  24819.         i386-*) OPT_CFLAGS="$CFLAGS -mcpu=i386";;
  24820.         i486-*) OPT_CFLAGS="$CFLAGS -mcpu=i486";;
  24821.         i586-*) OPT_CFLAGS="$CFLAGS -mcpu=pentium";;
  24822.         i686-*) OPT_CFLAGS="$CFLAGS -mcpu=pentiumpro";;
  24823.         k6-*)   OPT_CFLAGS="$CFLAGS -mcpu=k6";;
  24824.         esac
  24825.         echo "$as_me:$LINENO: checking if $CC supports $OPT_CFLAGS flags" >&5
  24826. echo $ECHO_N "checking if $CC supports $OPT_CFLAGS flags... $ECHO_C" >&6
  24827.     SAVE_CFLAGS="$CFLAGS"
  24828.     CFLAGS="$OPT_CFLAGS"
  24829.     cat >conftest.$ac_ext <<_ACEOF
  24830. /* confdefs.h.  */
  24831. _ACEOF
  24832. cat confdefs.h >>conftest.$ac_ext
  24833. cat >>conftest.$ac_ext <<_ACEOF
  24834. /* end confdefs.h.  */
  24835.  
  24836. int
  24837. main ()
  24838. {
  24839.  
  24840.   ;
  24841.   return 0;
  24842. }
  24843. _ACEOF
  24844. rm -f conftest.$ac_objext
  24845. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24846.   (eval $ac_compile) 2>conftest.er1
  24847.   ac_status=$?
  24848.   grep -v '^ *+' conftest.er1 >conftest.err
  24849.   rm -f conftest.er1
  24850.   cat conftest.err >&5
  24851.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24852.   (exit $ac_status); } &&
  24853.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  24854.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24855.   (eval $ac_try) 2>&5
  24856.   ac_status=$?
  24857.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24858.   (exit $ac_status); }; } &&
  24859.      { ac_try='test -s conftest.$ac_objext'
  24860.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24861.   (eval $ac_try) 2>&5
  24862.   ac_status=$?
  24863.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24864.   (exit $ac_status); }; }; then
  24865.   ac_cv_try_cflags_ok=yes
  24866. else
  24867.   echo "$as_me: failed program was:" >&5
  24868. sed 's/^/| /' conftest.$ac_ext >&5
  24869.  
  24870. ac_cv_try_cflags_ok=no
  24871. fi
  24872. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24873.     CFLAGS="$SAVE_CFLAGS"
  24874.     echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5
  24875. echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6
  24876.     if test x"$ac_cv_try_cflags_ok" = x"yes"; then
  24877.         CFLAGS=$OPT_CFLAGS
  24878.     else
  24879.         :
  24880.     fi;;
  24881.     ppc-* | powerpc-*)
  24882.         if test "${ac_cv_header_altivec_h+set}" = set; then
  24883.   echo "$as_me:$LINENO: checking for altivec.h" >&5
  24884. echo $ECHO_N "checking for altivec.h... $ECHO_C" >&6
  24885. if test "${ac_cv_header_altivec_h+set}" = set; then
  24886.   echo $ECHO_N "(cached) $ECHO_C" >&6
  24887. fi
  24888. echo "$as_me:$LINENO: result: $ac_cv_header_altivec_h" >&5
  24889. echo "${ECHO_T}$ac_cv_header_altivec_h" >&6
  24890. else
  24891.   # Is the header compilable?
  24892. echo "$as_me:$LINENO: checking altivec.h usability" >&5
  24893. echo $ECHO_N "checking altivec.h usability... $ECHO_C" >&6
  24894. cat >conftest.$ac_ext <<_ACEOF
  24895. /* confdefs.h.  */
  24896. _ACEOF
  24897. cat confdefs.h >>conftest.$ac_ext
  24898. cat >>conftest.$ac_ext <<_ACEOF
  24899. /* end confdefs.h.  */
  24900. $ac_includes_default
  24901. #include <altivec.h>
  24902. _ACEOF
  24903. rm -f conftest.$ac_objext
  24904. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24905.   (eval $ac_compile) 2>conftest.er1
  24906.   ac_status=$?
  24907.   grep -v '^ *+' conftest.er1 >conftest.err
  24908.   rm -f conftest.er1
  24909.   cat conftest.err >&5
  24910.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24911.   (exit $ac_status); } &&
  24912.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  24913.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24914.   (eval $ac_try) 2>&5
  24915.   ac_status=$?
  24916.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24917.   (exit $ac_status); }; } &&
  24918.      { ac_try='test -s conftest.$ac_objext'
  24919.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24920.   (eval $ac_try) 2>&5
  24921.   ac_status=$?
  24922.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24923.   (exit $ac_status); }; }; then
  24924.   ac_header_compiler=yes
  24925. else
  24926.   echo "$as_me: failed program was:" >&5
  24927. sed 's/^/| /' conftest.$ac_ext >&5
  24928.  
  24929. ac_header_compiler=no
  24930. fi
  24931. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24932. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24933. echo "${ECHO_T}$ac_header_compiler" >&6
  24934.  
  24935. # Is the header present?
  24936. echo "$as_me:$LINENO: checking altivec.h presence" >&5
  24937. echo $ECHO_N "checking altivec.h presence... $ECHO_C" >&6
  24938. cat >conftest.$ac_ext <<_ACEOF
  24939. /* confdefs.h.  */
  24940. _ACEOF
  24941. cat confdefs.h >>conftest.$ac_ext
  24942. cat >>conftest.$ac_ext <<_ACEOF
  24943. /* end confdefs.h.  */
  24944. #include <altivec.h>
  24945. _ACEOF
  24946. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  24947.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  24948.   ac_status=$?
  24949.   grep -v '^ *+' conftest.er1 >conftest.err
  24950.   rm -f conftest.er1
  24951.   cat conftest.err >&5
  24952.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24953.   (exit $ac_status); } >/dev/null; then
  24954.   if test -s conftest.err; then
  24955.     ac_cpp_err=$ac_cxx_preproc_warn_flag
  24956.     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  24957.   else
  24958.     ac_cpp_err=
  24959.   fi
  24960. else
  24961.   ac_cpp_err=yes
  24962. fi
  24963. if test -z "$ac_cpp_err"; then
  24964.   ac_header_preproc=yes
  24965. else
  24966.   echo "$as_me: failed program was:" >&5
  24967. sed 's/^/| /' conftest.$ac_ext >&5
  24968.  
  24969.   ac_header_preproc=no
  24970. fi
  24971. rm -f conftest.err conftest.$ac_ext
  24972. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24973. echo "${ECHO_T}$ac_header_preproc" >&6
  24974.  
  24975. # So?  What about this header?
  24976. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  24977.   yes:no: )
  24978.     { echo "$as_me:$LINENO: WARNING: altivec.h: accepted by the compiler, rejected by the preprocessor!" >&5
  24979. echo "$as_me: WARNING: altivec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24980.     { echo "$as_me:$LINENO: WARNING: altivec.h: proceeding with the compiler's result" >&5
  24981. echo "$as_me: WARNING: altivec.h: proceeding with the compiler's result" >&2;}
  24982.     ac_header_preproc=yes
  24983.     ;;
  24984.   no:yes:* )
  24985.     { echo "$as_me:$LINENO: WARNING: altivec.h: present but cannot be compiled" >&5
  24986. echo "$as_me: WARNING: altivec.h: present but cannot be compiled" >&2;}
  24987.     { echo "$as_me:$LINENO: WARNING: altivec.h:     check for missing prerequisite headers?" >&5
  24988. echo "$as_me: WARNING: altivec.h:     check for missing prerequisite headers?" >&2;}
  24989.     { echo "$as_me:$LINENO: WARNING: altivec.h: see the Autoconf documentation" >&5
  24990. echo "$as_me: WARNING: altivec.h: see the Autoconf documentation" >&2;}
  24991.     { echo "$as_me:$LINENO: WARNING: altivec.h:     section \"Present But Cannot Be Compiled\"" >&5
  24992. echo "$as_me: WARNING: altivec.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  24993.     { echo "$as_me:$LINENO: WARNING: altivec.h: proceeding with the preprocessor's result" >&5
  24994. echo "$as_me: WARNING: altivec.h: proceeding with the preprocessor's result" >&2;}
  24995.     { echo "$as_me:$LINENO: WARNING: altivec.h: in the future, the compiler will take precedence" >&5
  24996. echo "$as_me: WARNING: altivec.h: in the future, the compiler will take precedence" >&2;}
  24997.     (
  24998.       cat <<\_ASBOX
  24999. ## --------------------------------------- ##
  25000. ## Report this to gopchop-bugs@outflux.net ##
  25001. ## --------------------------------------- ##
  25002. _ASBOX
  25003.     ) |
  25004.       sed "s/^/$as_me: WARNING:     /" >&2
  25005.     ;;
  25006. esac
  25007. echo "$as_me:$LINENO: checking for altivec.h" >&5
  25008. echo $ECHO_N "checking for altivec.h... $ECHO_C" >&6
  25009. if test "${ac_cv_header_altivec_h+set}" = set; then
  25010.   echo $ECHO_N "(cached) $ECHO_C" >&6
  25011. else
  25012.   ac_cv_header_altivec_h=$ac_header_preproc
  25013. fi
  25014. echo "$as_me:$LINENO: result: $ac_cv_header_altivec_h" >&5
  25015. echo "${ECHO_T}$ac_cv_header_altivec_h" >&6
  25016.  
  25017. fi
  25018. if test $ac_cv_header_altivec_h = yes; then
  25019.   TRY_CFLAGS="$ARCH_OPT_CFLAGS -maltivec"
  25020. else
  25021.   TRY_CFLAGS="$ARCH_OPT_CFLAGS -faltivec"
  25022. fi
  25023.  
  25024.  
  25025.         echo "$as_me:$LINENO: checking if $CC supports $OPT_CFLAGS $TRY_CFLAGS $CFLAGS flags" >&5
  25026. echo $ECHO_N "checking if $CC supports $OPT_CFLAGS $TRY_CFLAGS $CFLAGS flags... $ECHO_C" >&6
  25027.     SAVE_CFLAGS="$CFLAGS"
  25028.     CFLAGS="$OPT_CFLAGS $TRY_CFLAGS $CFLAGS"
  25029.     cat >conftest.$ac_ext <<_ACEOF
  25030. /* confdefs.h.  */
  25031. _ACEOF
  25032. cat confdefs.h >>conftest.$ac_ext
  25033. cat >>conftest.$ac_ext <<_ACEOF
  25034. /* end confdefs.h.  */
  25035.  
  25036. int
  25037. main ()
  25038. {
  25039.  
  25040.   ;
  25041.   return 0;
  25042. }
  25043. _ACEOF
  25044. rm -f conftest.$ac_objext
  25045. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25046.   (eval $ac_compile) 2>conftest.er1
  25047.   ac_status=$?
  25048.   grep -v '^ *+' conftest.er1 >conftest.err
  25049.   rm -f conftest.er1
  25050.   cat conftest.err >&5
  25051.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25052.   (exit $ac_status); } &&
  25053.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  25054.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25055.   (eval $ac_try) 2>&5
  25056.   ac_status=$?
  25057.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25058.   (exit $ac_status); }; } &&
  25059.      { ac_try='test -s conftest.$ac_objext'
  25060.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25061.   (eval $ac_try) 2>&5
  25062.   ac_status=$?
  25063.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25064.   (exit $ac_status); }; }; then
  25065.   ac_cv_try_cflags_ok=yes
  25066. else
  25067.   echo "$as_me: failed program was:" >&5
  25068. sed 's/^/| /' conftest.$ac_ext >&5
  25069.  
  25070. ac_cv_try_cflags_ok=no
  25071. fi
  25072. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25073.     CFLAGS="$SAVE_CFLAGS"
  25074.     echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5
  25075. echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6
  25076.     if test x"$ac_cv_try_cflags_ok" = x"yes"; then
  25077.         ARCH_OPT_CFLAGS="$TRY_CFLAGS"
  25078.  
  25079. cat >>confdefs.h <<\_ACEOF
  25080. #define ARCH_PPC
  25081. _ACEOF
  25082.  
  25083.     else
  25084.         :
  25085.     fi;;
  25086.     sparc-* | sparc64-*)
  25087.  
  25088. cat >>confdefs.h <<\_ACEOF
  25089. #define ARCH_SPARC
  25090. _ACEOF
  25091.  
  25092.         TRY_CFLAGS="$OPT_CFLAGS -mcpu=ultrasparc -mvis"
  25093.         echo "$as_me:$LINENO: checking if $CC supports $TRY_CFLAGS $CFLAGS flags" >&5
  25094. echo $ECHO_N "checking if $CC supports $TRY_CFLAGS $CFLAGS flags... $ECHO_C" >&6
  25095.     SAVE_CFLAGS="$CFLAGS"
  25096.     CFLAGS="$TRY_CFLAGS $CFLAGS"
  25097.     cat >conftest.$ac_ext <<_ACEOF
  25098. /* confdefs.h.  */
  25099. _ACEOF
  25100. cat confdefs.h >>conftest.$ac_ext
  25101. cat >>conftest.$ac_ext <<_ACEOF
  25102. /* end confdefs.h.  */
  25103.  
  25104. int
  25105. main ()
  25106. {
  25107.  
  25108.   ;
  25109.   return 0;
  25110. }
  25111. _ACEOF
  25112. rm -f conftest.$ac_objext
  25113. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25114.   (eval $ac_compile) 2>conftest.er1
  25115.   ac_status=$?
  25116.   grep -v '^ *+' conftest.er1 >conftest.err
  25117.   rm -f conftest.er1
  25118.   cat conftest.err >&5
  25119.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25120.   (exit $ac_status); } &&
  25121.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  25122.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25123.   (eval $ac_try) 2>&5
  25124.   ac_status=$?
  25125.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25126.   (exit $ac_status); }; } &&
  25127.      { ac_try='test -s conftest.$ac_objext'
  25128.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25129.   (eval $ac_try) 2>&5
  25130.   ac_status=$?
  25131.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25132.   (exit $ac_status); }; }; then
  25133.   ac_cv_try_cflags_ok=yes
  25134. else
  25135.   echo "$as_me: failed program was:" >&5
  25136. sed 's/^/| /' conftest.$ac_ext >&5
  25137.  
  25138. ac_cv_try_cflags_ok=no
  25139. fi
  25140. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25141.     CFLAGS="$SAVE_CFLAGS"
  25142.     echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5
  25143. echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6
  25144.     if test x"$ac_cv_try_cflags_ok" = x"yes"; then
  25145.         OPT_CFLAGS="$TRY_CFLAGS"
  25146.     else
  25147.         :
  25148.     fi;;
  25149.     alpha*)
  25150.  
  25151. cat >>confdefs.h <<\_ACEOF
  25152. #define ARCH_ALPHA
  25153. _ACEOF
  25154. ;;
  25155.     esac
  25156.  
  25157. fi
  25158.  
  25159. if test "x$GCC" = "xyes"; then
  25160.   case " $CFLAGS " in
  25161.   *\ -Wall\ *) ;;
  25162.   *) CFLAGS="$CFLAGS -Wall" ;;
  25163.   esac
  25164. fi
  25165.  
  25166.                                                                                           ac_config_files="$ac_config_files Makefile libvo/Makefile include/Makefile docs/Makefile src/Makefile pixmaps/Makefile tests/Makefile po/Makefile.in gopchop.spec"
  25167.  
  25168.  
  25169. cat >confcache <<\_ACEOF
  25170. # This file is a shell script that caches the results of configure
  25171. # tests run on this system so they can be shared between configure
  25172. # scripts and configure runs, see configure's option --config-cache.
  25173. # It is not useful on other systems.  If it contains results you don't
  25174. # want to keep, you may remove or edit it.
  25175. #
  25176. # config.status only pays attention to the cache file if you give it
  25177. # the --recheck option to rerun configure.
  25178. #
  25179. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  25180. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  25181. # following values.
  25182.  
  25183. _ACEOF
  25184.  
  25185. # The following way of writing the cache mishandles newlines in values,
  25186. # but we know of no workaround that is simple, portable, and efficient.
  25187. # So, don't put newlines in cache variables' values.
  25188. # Ultrix sh set writes to stderr and can't be redirected directly,
  25189. # and sets the high bit in the cache file unless we assign to the vars.
  25190. {
  25191.   (set) 2>&1 |
  25192.     case `(ac_space=' '; set | grep ac_space) 2>&1` in
  25193.     *ac_space=\ *)
  25194.       # `set' does not quote correctly, so add quotes (double-quote
  25195.       # substitution turns \\\\ into \\, and sed turns \\ into \).
  25196.       sed -n \
  25197.     "s/'/'\\\\''/g;
  25198.       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  25199.       ;;
  25200.     *)
  25201.       # `set' quotes correctly as required by POSIX, so do not add quotes.
  25202.       sed -n \
  25203.     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  25204.       ;;
  25205.     esac;
  25206. } |
  25207.   sed '
  25208.      t clear
  25209.      : clear
  25210.      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  25211.      t end
  25212.      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  25213.      : end' >>confcache
  25214. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  25215.   if test -w $cache_file; then
  25216.     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  25217.     cat confcache >$cache_file
  25218.   else
  25219.     echo "not updating unwritable cache $cache_file"
  25220.   fi
  25221. fi
  25222. rm -f confcache
  25223.  
  25224. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  25225. # Let make expand exec_prefix.
  25226. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  25227.  
  25228. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  25229. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  25230. # trailing colons and then remove the whole line if VPATH becomes empty
  25231. # (actually we leave an empty line to preserve line numbers).
  25232. if test "x$srcdir" = x.; then
  25233.   ac_vpsub='/^[     ]*VPATH[     ]*=/{
  25234. s/:*\$(srcdir):*/:/;
  25235. s/:*\${srcdir}:*/:/;
  25236. s/:*@srcdir@:*/:/;
  25237. s/^\([^=]*=[     ]*\):*/\1/;
  25238. s/:*$//;
  25239. s/^[^=]*=[     ]*$//;
  25240. }'
  25241. fi
  25242.  
  25243. DEFS=-DHAVE_CONFIG_H
  25244.  
  25245. ac_libobjs=
  25246. ac_ltlibobjs=
  25247. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  25248.   # 1. Remove the extension, and $U if already installed.
  25249.   ac_i=`echo "$ac_i" |
  25250.      sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  25251.   # 2. Add them.
  25252.   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  25253.   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  25254. done
  25255. LIBOBJS=$ac_libobjs
  25256.  
  25257. LTLIBOBJS=$ac_ltlibobjs
  25258.  
  25259.  
  25260. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  25261.   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  25262. Usually this means the macro was only invoked conditionally." >&5
  25263. echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  25264. Usually this means the macro was only invoked conditionally." >&2;}
  25265.    { (exit 1); exit 1; }; }
  25266. fi
  25267.  
  25268.  
  25269.         mv -f po/POTFILES po/POTFILES.tmp
  25270.         sed -e '/\[encoding.*\]/d' -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
  25271.         rm -f po/POTFILES.tmp
  25272.  
  25273.  
  25274. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  25275.   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  25276. Usually this means the macro was only invoked conditionally." >&5
  25277. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  25278. Usually this means the macro was only invoked conditionally." >&2;}
  25279.    { (exit 1); exit 1; }; }
  25280. fi
  25281. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  25282.   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  25283. Usually this means the macro was only invoked conditionally." >&5
  25284. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  25285. Usually this means the macro was only invoked conditionally." >&2;}
  25286.    { (exit 1); exit 1; }; }
  25287. fi
  25288. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  25289.   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  25290. Usually this means the macro was only invoked conditionally." >&5
  25291. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  25292. Usually this means the macro was only invoked conditionally." >&2;}
  25293.    { (exit 1); exit 1; }; }
  25294. fi
  25295.  
  25296. : ${CONFIG_STATUS=./config.status}
  25297. ac_clean_files_save=$ac_clean_files
  25298. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  25299. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  25300. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  25301. cat >$CONFIG_STATUS <<_ACEOF
  25302. #! $SHELL
  25303. # Generated by $as_me.
  25304. # Run this file to recreate the current configuration.
  25305. # Compiler output produced by configure, useful for debugging
  25306. # configure, is in config.log if it exists.
  25307.  
  25308. debug=false
  25309. ac_cs_recheck=false
  25310. ac_cs_silent=false
  25311. SHELL=\${CONFIG_SHELL-$SHELL}
  25312. _ACEOF
  25313.  
  25314. cat >>$CONFIG_STATUS <<\_ACEOF
  25315. ## --------------------- ##
  25316. ## M4sh Initialization.  ##
  25317. ## --------------------- ##
  25318.  
  25319. # Be Bourne compatible
  25320. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  25321.   emulate sh
  25322.   NULLCMD=:
  25323.   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  25324.   # is contrary to our usage.  Disable this feature.
  25325.   alias -g '${1+"$@"}'='"$@"'
  25326. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  25327.   set -o posix
  25328. fi
  25329. DUALCASE=1; export DUALCASE # for MKS sh
  25330.  
  25331. # Support unset when possible.
  25332. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  25333.   as_unset=unset
  25334. else
  25335.   as_unset=false
  25336. fi
  25337.  
  25338.  
  25339. # Work around bugs in pre-3.0 UWIN ksh.
  25340. $as_unset ENV MAIL MAILPATH
  25341. PS1='$ '
  25342. PS2='> '
  25343. PS4='+ '
  25344.  
  25345. # NLS nuisances.
  25346. for as_var in \
  25347.   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  25348.   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  25349.   LC_TELEPHONE LC_TIME
  25350. do
  25351.   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  25352.     eval $as_var=C; export $as_var
  25353.   else
  25354.     $as_unset $as_var
  25355.   fi
  25356. done
  25357.  
  25358. # Required to use basename.
  25359. if expr a : '\(a\)' >/dev/null 2>&1; then
  25360.   as_expr=expr
  25361. else
  25362.   as_expr=false
  25363. fi
  25364.  
  25365. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  25366.   as_basename=basename
  25367. else
  25368.   as_basename=false
  25369. fi
  25370.  
  25371.  
  25372. # Name of the executable.
  25373. as_me=`$as_basename "$0" ||
  25374. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  25375.      X"$0" : 'X\(//\)$' \| \
  25376.      X"$0" : 'X\(/\)$' \| \
  25377.      .     : '\(.\)' 2>/dev/null ||
  25378. echo X/"$0" |
  25379.     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  25380.         /^X\/\(\/\/\)$/{ s//\1/; q; }
  25381.         /^X\/\(\/\).*/{ s//\1/; q; }
  25382.         s/.*/./; q'`
  25383.  
  25384.  
  25385. # PATH needs CR, and LINENO needs CR and PATH.
  25386. # Avoid depending upon Character Ranges.
  25387. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  25388. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  25389. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  25390. as_cr_digits='0123456789'
  25391. as_cr_alnum=$as_cr_Letters$as_cr_digits
  25392.  
  25393. # The user is always right.
  25394. if test "${PATH_SEPARATOR+set}" != set; then
  25395.   echo "#! /bin/sh" >conf$$.sh
  25396.   echo  "exit 0"   >>conf$$.sh
  25397.   chmod +x conf$$.sh
  25398.   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  25399.     PATH_SEPARATOR=';'
  25400.   else
  25401.     PATH_SEPARATOR=:
  25402.   fi
  25403.   rm -f conf$$.sh
  25404. fi
  25405.  
  25406.  
  25407.   as_lineno_1=$LINENO
  25408.   as_lineno_2=$LINENO
  25409.   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  25410.   test "x$as_lineno_1" != "x$as_lineno_2" &&
  25411.   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
  25412.   # Find who we are.  Look in the path if we contain no path at all
  25413.   # relative or not.
  25414.   case $0 in
  25415.     *[\\/]* ) as_myself=$0 ;;
  25416.     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25417. for as_dir in $PATH
  25418. do
  25419.   IFS=$as_save_IFS
  25420.   test -z "$as_dir" && as_dir=.
  25421.   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  25422. done
  25423.  
  25424.        ;;
  25425.   esac
  25426.   # We did not find ourselves, most probably we were run as `sh COMMAND'
  25427.   # in which case we are not to be found in the path.
  25428.   if test "x$as_myself" = x; then
  25429.     as_myself=$0
  25430.   fi
  25431.   if test ! -f "$as_myself"; then
  25432.     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  25433. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  25434.    { (exit 1); exit 1; }; }
  25435.   fi
  25436.   case $CONFIG_SHELL in
  25437.   '')
  25438.     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25439. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  25440. do
  25441.   IFS=$as_save_IFS
  25442.   test -z "$as_dir" && as_dir=.
  25443.   for as_base in sh bash ksh sh5; do
  25444.      case $as_dir in
  25445.      /*)
  25446.        if ("$as_dir/$as_base" -c '
  25447.   as_lineno_1=$LINENO
  25448.   as_lineno_2=$LINENO
  25449.   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  25450.   test "x$as_lineno_1" != "x$as_lineno_2" &&
  25451.   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
  25452.          $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  25453.          $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  25454.          CONFIG_SHELL=$as_dir/$as_base
  25455.          export CONFIG_SHELL
  25456.          exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  25457.        fi;;
  25458.      esac
  25459.        done
  25460. done
  25461. ;;
  25462.   esac
  25463.  
  25464.   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  25465.   # uniformly replaced by the line number.  The first 'sed' inserts a
  25466.   # line-number line before each line; the second 'sed' does the real
  25467.   # work.  The second script uses 'N' to pair each line-number line
  25468.   # with the numbered line, and appends trailing '-' during
  25469.   # substitution so that $LINENO is not a special case at line end.
  25470.   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  25471.   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
  25472.   sed '=' <$as_myself |
  25473.     sed '
  25474.       N
  25475.       s,$,-,
  25476.       : loop
  25477.       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  25478.       t loop
  25479.       s,-$,,
  25480.       s,^['$as_cr_digits']*\n,,
  25481.     ' >$as_me.lineno &&
  25482.   chmod +x $as_me.lineno ||
  25483.     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  25484. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  25485.    { (exit 1); exit 1; }; }
  25486.  
  25487.   # Don't try to exec as it changes $[0], causing all sort of problems
  25488.   # (the dirname of $[0] is not the place where we might find the
  25489.   # original and so on.  Autoconf is especially sensible to this).
  25490.   . ./$as_me.lineno
  25491.   # Exit status is that of the last command.
  25492.   exit
  25493. }
  25494.  
  25495.  
  25496. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  25497.   *c*,-n*) ECHO_N= ECHO_C='
  25498. ' ECHO_T='    ' ;;
  25499.   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  25500.   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
  25501. esac
  25502.  
  25503. if expr a : '\(a\)' >/dev/null 2>&1; then
  25504.   as_expr=expr
  25505. else
  25506.   as_expr=false
  25507. fi
  25508.  
  25509. rm -f conf$$ conf$$.exe conf$$.file
  25510. echo >conf$$.file
  25511. if ln -s conf$$.file conf$$ 2>/dev/null; then
  25512.   # We could just check for DJGPP; but this test a) works b) is more generic
  25513.   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  25514.   if test -f conf$$.exe; then
  25515.     # Don't use ln at all; we don't have any links
  25516.     as_ln_s='cp -p'
  25517.   else
  25518.     as_ln_s='ln -s'
  25519.   fi
  25520. elif ln conf$$.file conf$$ 2>/dev/null; then
  25521.   as_ln_s=ln
  25522. else
  25523.   as_ln_s='cp -p'
  25524. fi
  25525. rm -f conf$$ conf$$.exe conf$$.file
  25526.  
  25527. if mkdir -p . 2>/dev/null; then
  25528.   as_mkdir_p=:
  25529. else
  25530.   test -d ./-p && rmdir ./-p
  25531.   as_mkdir_p=false
  25532. fi
  25533.  
  25534. as_executable_p="test -f"
  25535.  
  25536. # Sed expression to map a string onto a valid CPP name.
  25537. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  25538.  
  25539. # Sed expression to map a string onto a valid variable name.
  25540. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  25541.  
  25542.  
  25543. # IFS
  25544. # We need space, tab and new line, in precisely that order.
  25545. as_nl='
  25546. '
  25547. IFS="     $as_nl"
  25548.  
  25549. # CDPATH.
  25550. $as_unset CDPATH
  25551.  
  25552. exec 6>&1
  25553.  
  25554. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  25555. # report actual input values of CONFIG_FILES etc. instead of their
  25556. # values after options handling.  Logging --version etc. is OK.
  25557. exec 5>>config.log
  25558. {
  25559.   echo
  25560.   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  25561. ## Running $as_me. ##
  25562. _ASBOX
  25563. } >&5
  25564. cat >&5 <<_CSEOF
  25565.  
  25566. This file was extended by gopchop $as_me 1.1.7, which was
  25567. generated by GNU Autoconf 2.59.  Invocation command line was
  25568.  
  25569.   CONFIG_FILES    = $CONFIG_FILES
  25570.   CONFIG_HEADERS  = $CONFIG_HEADERS
  25571.   CONFIG_LINKS    = $CONFIG_LINKS
  25572.   CONFIG_COMMANDS = $CONFIG_COMMANDS
  25573.   $ $0 $@
  25574.  
  25575. _CSEOF
  25576. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  25577. echo >&5
  25578. _ACEOF
  25579.  
  25580. # Files that config.status was made for.
  25581. if test -n "$ac_config_files"; then
  25582.   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  25583. fi
  25584.  
  25585. if test -n "$ac_config_headers"; then
  25586.   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  25587. fi
  25588.  
  25589. if test -n "$ac_config_links"; then
  25590.   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  25591. fi
  25592.  
  25593. if test -n "$ac_config_commands"; then
  25594.   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  25595. fi
  25596.  
  25597. cat >>$CONFIG_STATUS <<\_ACEOF
  25598.  
  25599. ac_cs_usage="\
  25600. \`$as_me' instantiates files from templates according to the
  25601. current configuration.
  25602.  
  25603. Usage: $0 [OPTIONS] [FILE]...
  25604.  
  25605.   -h, --help       print this help, then exit
  25606.   -V, --version    print version number, then exit
  25607.   -q, --quiet      do not print progress messages
  25608.   -d, --debug      don't remove temporary files
  25609.       --recheck    update $as_me by reconfiguring in the same conditions
  25610.   --file=FILE[:TEMPLATE]
  25611.            instantiate the configuration file FILE
  25612.   --header=FILE[:TEMPLATE]
  25613.            instantiate the configuration header FILE
  25614.  
  25615. Configuration files:
  25616. $config_files
  25617.  
  25618. Configuration headers:
  25619. $config_headers
  25620.  
  25621. Configuration commands:
  25622. $config_commands
  25623.  
  25624. Report bugs to <bug-autoconf@gnu.org>."
  25625. _ACEOF
  25626.  
  25627. cat >>$CONFIG_STATUS <<_ACEOF
  25628. ac_cs_version="\\
  25629. gopchop config.status 1.1.7
  25630. configured by $0, generated by GNU Autoconf 2.59,
  25631.   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  25632.  
  25633. Copyright (C) 2003 Free Software Foundation, Inc.
  25634. This config.status script is free software; the Free Software Foundation
  25635. gives unlimited permission to copy, distribute and modify it."
  25636. srcdir=$srcdir
  25637. INSTALL="$INSTALL"
  25638. _ACEOF
  25639.  
  25640. cat >>$CONFIG_STATUS <<\_ACEOF
  25641. # If no file are specified by the user, then we need to provide default
  25642. # value.  By we need to know if files were specified by the user.
  25643. ac_need_defaults=:
  25644. while test $# != 0
  25645. do
  25646.   case $1 in
  25647.   --*=*)
  25648.     ac_option=`expr "x$1" : 'x\([^=]*\)='`
  25649.     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  25650.     ac_shift=:
  25651.     ;;
  25652.   -*)
  25653.     ac_option=$1
  25654.     ac_optarg=$2
  25655.     ac_shift=shift
  25656.     ;;
  25657.   *) # This is not an option, so the user has probably given explicit
  25658.      # arguments.
  25659.      ac_option=$1
  25660.      ac_need_defaults=false;;
  25661.   esac
  25662.  
  25663.   case $ac_option in
  25664.   # Handling of the options.
  25665. _ACEOF
  25666. cat >>$CONFIG_STATUS <<\_ACEOF
  25667.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  25668.     ac_cs_recheck=: ;;
  25669.   --version | --vers* | -V )
  25670.     echo "$ac_cs_version"; exit 0 ;;
  25671.   --he | --h)
  25672.     # Conflict between --help and --header
  25673.     { { echo "$as_me:$LINENO: error: ambiguous option: $1
  25674. Try \`$0 --help' for more information." >&5
  25675. echo "$as_me: error: ambiguous option: $1
  25676. Try \`$0 --help' for more information." >&2;}
  25677.    { (exit 1); exit 1; }; };;
  25678.   --help | --hel | -h )
  25679.     echo "$ac_cs_usage"; exit 0 ;;
  25680.   --debug | --d* | -d )
  25681.     debug=: ;;
  25682.   --file | --fil | --fi | --f )
  25683.     $ac_shift
  25684.     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  25685.     ac_need_defaults=false;;
  25686.   --header | --heade | --head | --hea )
  25687.     $ac_shift
  25688.     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  25689.     ac_need_defaults=false;;
  25690.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  25691.   | -silent | --silent | --silen | --sile | --sil | --si | --s)
  25692.     ac_cs_silent=: ;;
  25693.  
  25694.   # This is an error.
  25695.   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  25696. Try \`$0 --help' for more information." >&5
  25697. echo "$as_me: error: unrecognized option: $1
  25698. Try \`$0 --help' for more information." >&2;}
  25699.    { (exit 1); exit 1; }; } ;;
  25700.  
  25701.   *) ac_config_targets="$ac_config_targets $1" ;;
  25702.  
  25703.   esac
  25704.   shift
  25705. done
  25706.  
  25707. ac_configure_extra_args=
  25708.  
  25709. if $ac_cs_silent; then
  25710.   exec 6>/dev/null
  25711.   ac_configure_extra_args="$ac_configure_extra_args --silent"
  25712. fi
  25713.  
  25714. _ACEOF
  25715. cat >>$CONFIG_STATUS <<_ACEOF
  25716. if \$ac_cs_recheck; then
  25717.   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  25718.   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  25719. fi
  25720.  
  25721. _ACEOF
  25722.  
  25723. cat >>$CONFIG_STATUS <<_ACEOF
  25724. #
  25725. # INIT-COMMANDS section.
  25726. #
  25727.  
  25728. INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir=${ac_aux_dir}
  25729. INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' ICONV='${INTLTOOL_ICONV}'
  25730. MSGFMT='${INTLTOOL_MSGFMT}' MSGMERGE='${INTLTOOL_MSGMERGE}'
  25731. XGETTEXT='${INTLTOOL_XGETTEXT}'
  25732. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  25733.  
  25734.  
  25735. _ACEOF
  25736.  
  25737.  
  25738.  
  25739. cat >>$CONFIG_STATUS <<\_ACEOF
  25740. for ac_config_target in $ac_config_targets
  25741. do
  25742.   case "$ac_config_target" in
  25743.   # Handling of arguments.
  25744.   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  25745.   "libvo/Makefile" ) CONFIG_FILES="$CONFIG_FILES libvo/Makefile" ;;
  25746.   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  25747.   "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  25748.   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  25749.   "pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;;
  25750.   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  25751.   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  25752.   "gopchop.spec" ) CONFIG_FILES="$CONFIG_FILES gopchop.spec" ;;
  25753.   "intltool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;;
  25754.   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  25755.   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  25756.   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
  25757.   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  25758. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  25759.    { (exit 1); exit 1; }; };;
  25760.   esac
  25761. done
  25762.  
  25763. # If the user did not use the arguments to specify the items to instantiate,
  25764. # then the envvar interface is used.  Set only those that are not.
  25765. # We use the long form for the default assignment because of an extremely
  25766. # bizarre bug on SunOS 4.1.3.
  25767. if $ac_need_defaults; then
  25768.   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  25769.   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  25770.   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  25771. fi
  25772.  
  25773. # Have a temporary directory for convenience.  Make it in the build tree
  25774. # simply because there is no reason to put it here, and in addition,
  25775. # creating and moving files from /tmp can sometimes cause problems.
  25776. # Create a temporary directory, and hook for its removal unless debugging.
  25777. $debug ||
  25778. {
  25779.   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  25780.   trap '{ (exit 1); exit 1; }' 1 2 13 15
  25781. }
  25782.  
  25783. # Create a (secure) tmp directory for tmp files.
  25784.  
  25785. {
  25786.   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  25787.   test -n "$tmp" && test -d "$tmp"
  25788. }  ||
  25789. {
  25790.   tmp=./confstat$$-$RANDOM
  25791.   (umask 077 && mkdir $tmp)
  25792. } ||
  25793. {
  25794.    echo "$me: cannot create a temporary directory in ." >&2
  25795.    { (exit 1); exit 1; }
  25796. }
  25797.  
  25798. _ACEOF
  25799.  
  25800. cat >>$CONFIG_STATUS <<_ACEOF
  25801.  
  25802. #
  25803. # CONFIG_FILES section.
  25804. #
  25805.  
  25806. # No need to generate the scripts if there are no CONFIG_FILES.
  25807. # This happens for instance when ./config.status config.h
  25808. if test -n "\$CONFIG_FILES"; then
  25809.   # Protect against being on the right side of a sed subst in config.status.
  25810.   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  25811.    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  25812. s,@SHELL@,$SHELL,;t t
  25813. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  25814. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  25815. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  25816. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  25817. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  25818. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  25819. s,@exec_prefix@,$exec_prefix,;t t
  25820. s,@prefix@,$prefix,;t t
  25821. s,@program_transform_name@,$program_transform_name,;t t
  25822. s,@bindir@,$bindir,;t t
  25823. s,@sbindir@,$sbindir,;t t
  25824. s,@libexecdir@,$libexecdir,;t t
  25825. s,@datadir@,$datadir,;t t
  25826. s,@sysconfdir@,$sysconfdir,;t t
  25827. s,@sharedstatedir@,$sharedstatedir,;t t
  25828. s,@localstatedir@,$localstatedir,;t t
  25829. s,@libdir@,$libdir,;t t
  25830. s,@includedir@,$includedir,;t t
  25831. s,@oldincludedir@,$oldincludedir,;t t
  25832. s,@infodir@,$infodir,;t t
  25833. s,@mandir@,$mandir,;t t
  25834. s,@build_alias@,$build_alias,;t t
  25835. s,@host_alias@,$host_alias,;t t
  25836. s,@target_alias@,$target_alias,;t t
  25837. s,@DEFS@,$DEFS,;t t
  25838. s,@ECHO_C@,$ECHO_C,;t t
  25839. s,@ECHO_N@,$ECHO_N,;t t
  25840. s,@ECHO_T@,$ECHO_T,;t t
  25841. s,@LIBS@,$LIBS,;t t
  25842. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  25843. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  25844. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  25845. s,@CYGPATH_W@,$CYGPATH_W,;t t
  25846. s,@PACKAGE@,$PACKAGE,;t t
  25847. s,@VERSION@,$VERSION,;t t
  25848. s,@ACLOCAL@,$ACLOCAL,;t t
  25849. s,@AUTOCONF@,$AUTOCONF,;t t
  25850. s,@AUTOMAKE@,$AUTOMAKE,;t t
  25851. s,@AUTOHEADER@,$AUTOHEADER,;t t
  25852. s,@MAKEINFO@,$MAKEINFO,;t t
  25853. s,@AMTAR@,$AMTAR,;t t
  25854. s,@install_sh@,$install_sh,;t t
  25855. s,@STRIP@,$STRIP,;t t
  25856. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  25857. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  25858. s,@mkdir_p@,$mkdir_p,;t t
  25859. s,@AWK@,$AWK,;t t
  25860. s,@SET_MAKE@,$SET_MAKE,;t t
  25861. s,@am__leading_dot@,$am__leading_dot,;t t
  25862. s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
  25863. s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
  25864. s,@MAINT@,$MAINT,;t t
  25865. s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t
  25866. s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t
  25867. s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t
  25868. s,@INTLTOOL_PROP_RULE@,$INTLTOOL_PROP_RULE,;t t
  25869. s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t
  25870. s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t
  25871. s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t
  25872. s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t
  25873. s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t
  25874. s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t
  25875. s,@INTLTOOL_XAM_RULE@,$INTLTOOL_XAM_RULE,;t t
  25876. s,@INTLTOOL_KBD_RULE@,$INTLTOOL_KBD_RULE,;t t
  25877. s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t
  25878. s,@INTLTOOL_XML_NOMERGE_RULE@,$INTLTOOL_XML_NOMERGE_RULE,;t t
  25879. s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t
  25880. s,@INTLTOOL_SCHEMAS_RULE@,$INTLTOOL_SCHEMAS_RULE,;t t
  25881. s,@INTLTOOL_THEME_RULE@,$INTLTOOL_THEME_RULE,;t t
  25882. s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t
  25883. s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t
  25884. s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t
  25885. s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t
  25886. s,@INTLTOOL_ICONV@,$INTLTOOL_ICONV,;t t
  25887. s,@INTLTOOL_MSGFMT@,$INTLTOOL_MSGFMT,;t t
  25888. s,@INTLTOOL_MSGMERGE@,$INTLTOOL_MSGMERGE,;t t
  25889. s,@INTLTOOL_XGETTEXT@,$INTLTOOL_XGETTEXT,;t t
  25890. s,@build@,$build,;t t
  25891. s,@build_cpu@,$build_cpu,;t t
  25892. s,@build_vendor@,$build_vendor,;t t
  25893. s,@build_os@,$build_os,;t t
  25894. s,@host@,$host,;t t
  25895. s,@host_cpu@,$host_cpu,;t t
  25896. s,@host_vendor@,$host_vendor,;t t
  25897. s,@host_os@,$host_os,;t t
  25898. s,@CXX@,$CXX,;t t
  25899. s,@CXXFLAGS@,$CXXFLAGS,;t t
  25900. s,@LDFLAGS@,$LDFLAGS,;t t
  25901. s,@CPPFLAGS@,$CPPFLAGS,;t t
  25902. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  25903. s,@EXEEXT@,$EXEEXT,;t t
  25904. s,@OBJEXT@,$OBJEXT,;t t
  25905. s,@DEPDIR@,$DEPDIR,;t t
  25906. s,@am__include@,$am__include,;t t
  25907. s,@am__quote@,$am__quote,;t t
  25908. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  25909. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  25910. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  25911. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  25912. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  25913. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  25914. s,@CC@,$CC,;t t
  25915. s,@CFLAGS@,$CFLAGS,;t t
  25916. s,@ac_ct_CC@,$ac_ct_CC,;t t
  25917. s,@CCDEPMODE@,$CCDEPMODE,;t t
  25918. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  25919. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  25920. s,@CXXCPP@,$CXXCPP,;t t
  25921. s,@EGREP@,$EGREP,;t t
  25922. s,@LN_S@,$LN_S,;t t
  25923. s,@ECHO@,$ECHO,;t t
  25924. s,@AR@,$AR,;t t
  25925. s,@ac_ct_AR@,$ac_ct_AR,;t t
  25926. s,@RANLIB@,$RANLIB,;t t
  25927. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  25928. s,@CPP@,$CPP,;t t
  25929. s,@F77@,$F77,;t t
  25930. s,@FFLAGS@,$FFLAGS,;t t
  25931. s,@ac_ct_F77@,$ac_ct_F77,;t t
  25932. s,@LIBTOOL@,$LIBTOOL,;t t
  25933. s,@XML2_CONFIG@,$XML2_CONFIG,;t t
  25934. s,@XML_CPPFLAGS@,$XML_CPPFLAGS,;t t
  25935. s,@XML_LIBS@,$XML_LIBS,;t t
  25936. s,@INCLUDES@,$INCLUDES,;t t
  25937. s,@PKG_CONFIG@,$PKG_CONFIG,;t t
  25938. s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
  25939. s,@PACKAGE_CFLAGS@,$PACKAGE_CFLAGS,;t t
  25940. s,@PACKAGE_LIBS@,$PACKAGE_LIBS,;t t
  25941. s,@LIBVO_CFLAGS@,$LIBVO_CFLAGS,;t t
  25942. s,@LIBVO_LIBS@,$LIBVO_LIBS,;t t
  25943. s,@X_CFLAGS@,$X_CFLAGS,;t t
  25944. s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
  25945. s,@X_LIBS@,$X_LIBS,;t t
  25946. s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
  25947. s,@SDLCONFIG@,$SDLCONFIG,;t t
  25948. s,@PACKAGE_DATA_DIR@,$PACKAGE_DATA_DIR,;t t
  25949. s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
  25950. s,@USE_NLS@,$USE_NLS,;t t
  25951. s,@MSGFMT@,$MSGFMT,;t t
  25952. s,@GMSGFMT@,$GMSGFMT,;t t
  25953. s,@XGETTEXT@,$XGETTEXT,;t t
  25954. s,@CATALOGS@,$CATALOGS,;t t
  25955. s,@CATOBJEXT@,$CATOBJEXT,;t t
  25956. s,@DATADIRNAME@,$DATADIRNAME,;t t
  25957. s,@GMOFILES@,$GMOFILES,;t t
  25958. s,@INSTOBJEXT@,$INSTOBJEXT,;t t
  25959. s,@INTLLIBS@,$INTLLIBS,;t t
  25960. s,@PO_IN_DATADIR_TRUE@,$PO_IN_DATADIR_TRUE,;t t
  25961. s,@PO_IN_DATADIR_FALSE@,$PO_IN_DATADIR_FALSE,;t t
  25962. s,@POFILES@,$POFILES,;t t
  25963. s,@POSUB@,$POSUB,;t t
  25964. s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
  25965. s,@LIBOBJS@,$LIBOBJS,;t t
  25966. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  25967. CEOF
  25968.  
  25969. _ACEOF
  25970.  
  25971.   cat >>$CONFIG_STATUS <<\_ACEOF
  25972.   # Split the substitutions into bite-sized pieces for seds with
  25973.   # small command number limits, like on Digital OSF/1 and HP-UX.
  25974.   ac_max_sed_lines=48
  25975.   ac_sed_frag=1 # Number of current file.
  25976.   ac_beg=1 # First line for current file.
  25977.   ac_end=$ac_max_sed_lines # Line after last line for current file.
  25978.   ac_more_lines=:
  25979.   ac_sed_cmds=
  25980.   while $ac_more_lines; do
  25981.     if test $ac_beg -gt 1; then
  25982.       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  25983.     else
  25984.       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  25985.     fi
  25986.     if test ! -s $tmp/subs.frag; then
  25987.       ac_more_lines=false
  25988.     else
  25989.       # The purpose of the label and of the branching condition is to
  25990.       # speed up the sed processing (if there are no `@' at all, there
  25991.       # is no need to browse any of the substitutions).
  25992.       # These are the two extra sed commands mentioned above.
  25993.       (echo ':t
  25994.   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  25995.       if test -z "$ac_sed_cmds"; then
  25996.     ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  25997.       else
  25998.     ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  25999.       fi
  26000.       ac_sed_frag=`expr $ac_sed_frag + 1`
  26001.       ac_beg=$ac_end
  26002.       ac_end=`expr $ac_end + $ac_max_sed_lines`
  26003.     fi
  26004.   done
  26005.   if test -z "$ac_sed_cmds"; then
  26006.     ac_sed_cmds=cat
  26007.   fi
  26008. fi # test -n "$CONFIG_FILES"
  26009.  
  26010. _ACEOF
  26011. cat >>$CONFIG_STATUS <<\_ACEOF
  26012. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  26013.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  26014.   case $ac_file in
  26015.   - | *:- | *:-:* ) # input from stdin
  26016.     cat >$tmp/stdin
  26017.     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  26018.     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  26019.   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  26020.     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  26021.   * )   ac_file_in=$ac_file.in ;;
  26022.   esac
  26023.  
  26024.   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  26025.   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  26026. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26027.      X"$ac_file" : 'X\(//\)[^/]' \| \
  26028.      X"$ac_file" : 'X\(//\)$' \| \
  26029.      X"$ac_file" : 'X\(/\)' \| \
  26030.      .     : '\(.\)' 2>/dev/null ||
  26031. echo X"$ac_file" |
  26032.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  26033.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  26034.         /^X\(\/\/\)$/{ s//\1/; q; }
  26035.         /^X\(\/\).*/{ s//\1/; q; }
  26036.         s/.*/./; q'`
  26037.   { if $as_mkdir_p; then
  26038.     mkdir -p "$ac_dir"
  26039.   else
  26040.     as_dir="$ac_dir"
  26041.     as_dirs=
  26042.     while test ! -d "$as_dir"; do
  26043.       as_dirs="$as_dir $as_dirs"
  26044.       as_dir=`(dirname "$as_dir") 2>/dev/null ||
  26045. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26046.      X"$as_dir" : 'X\(//\)[^/]' \| \
  26047.      X"$as_dir" : 'X\(//\)$' \| \
  26048.      X"$as_dir" : 'X\(/\)' \| \
  26049.      .     : '\(.\)' 2>/dev/null ||
  26050. echo X"$as_dir" |
  26051.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  26052.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  26053.         /^X\(\/\/\)$/{ s//\1/; q; }
  26054.         /^X\(\/\).*/{ s//\1/; q; }
  26055.         s/.*/./; q'`
  26056.     done
  26057.     test ! -n "$as_dirs" || mkdir $as_dirs
  26058.   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  26059. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  26060.    { (exit 1); exit 1; }; }; }
  26061.  
  26062.   ac_builddir=.
  26063.  
  26064. if test "$ac_dir" != .; then
  26065.   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  26066.   # A "../" for each directory in $ac_dir_suffix.
  26067.   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  26068. else
  26069.   ac_dir_suffix= ac_top_builddir=
  26070. fi
  26071.  
  26072. case $srcdir in
  26073.   .)  # No --srcdir option.  We are building in place.
  26074.     ac_srcdir=.
  26075.     if test -z "$ac_top_builddir"; then
  26076.        ac_top_srcdir=.
  26077.     else
  26078.        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  26079.     fi ;;
  26080.   [\\/]* | ?:[\\/]* )  # Absolute path.
  26081.     ac_srcdir=$srcdir$ac_dir_suffix;
  26082.     ac_top_srcdir=$srcdir ;;
  26083.   *) # Relative path.
  26084.     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  26085.     ac_top_srcdir=$ac_top_builddir$srcdir ;;
  26086. esac
  26087.  
  26088. # Do not use `cd foo && pwd` to compute absolute paths, because
  26089. # the directories may not exist.
  26090. case `pwd` in
  26091. .) ac_abs_builddir="$ac_dir";;
  26092. *)
  26093.   case "$ac_dir" in
  26094.   .) ac_abs_builddir=`pwd`;;
  26095.   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  26096.   *) ac_abs_builddir=`pwd`/"$ac_dir";;
  26097.   esac;;
  26098. esac
  26099. case $ac_abs_builddir in
  26100. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  26101. *)
  26102.   case ${ac_top_builddir}. in
  26103.   .) ac_abs_top_builddir=$ac_abs_builddir;;
  26104.   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  26105.   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  26106.   esac;;
  26107. esac
  26108. case $ac_abs_builddir in
  26109. .) ac_abs_srcdir=$ac_srcdir;;
  26110. *)
  26111.   case $ac_srcdir in
  26112.   .) ac_abs_srcdir=$ac_abs_builddir;;
  26113.   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  26114.   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  26115.   esac;;
  26116. esac
  26117. case $ac_abs_builddir in
  26118. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  26119. *)
  26120.   case $ac_top_srcdir in
  26121.   .) ac_abs_top_srcdir=$ac_abs_builddir;;
  26122.   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  26123.   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  26124.   esac;;
  26125. esac
  26126.  
  26127.  
  26128.   case $INSTALL in
  26129.   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  26130.   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  26131.   esac
  26132.  
  26133.   # Let's still pretend it is `configure' which instantiates (i.e., don't
  26134.   # use $as_me), people would be surprised to read:
  26135.   #    /* config.h.  Generated by config.status.  */
  26136.   if test x"$ac_file" = x-; then
  26137.     configure_input=
  26138.   else
  26139.     configure_input="$ac_file.  "
  26140.   fi
  26141.   configure_input=$configure_input"Generated from `echo $ac_file_in |
  26142.                      sed 's,.*/,,'` by configure."
  26143.  
  26144.   # First look for the input files in the build tree, otherwise in the
  26145.   # src tree.
  26146.   ac_file_inputs=`IFS=:
  26147.     for f in $ac_file_in; do
  26148.       case $f in
  26149.       -) echo $tmp/stdin ;;
  26150.       [\\/$]*)
  26151.      # Absolute (can't be DOS-style, as IFS=:)
  26152.      test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  26153. echo "$as_me: error: cannot find input file: $f" >&2;}
  26154.    { (exit 1); exit 1; }; }
  26155.      echo "$f";;
  26156.       *) # Relative
  26157.      if test -f "$f"; then
  26158.        # Build tree
  26159.        echo "$f"
  26160.      elif test -f "$srcdir/$f"; then
  26161.        # Source tree
  26162.        echo "$srcdir/$f"
  26163.      else
  26164.        # /dev/null tree
  26165.        { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  26166. echo "$as_me: error: cannot find input file: $f" >&2;}
  26167.    { (exit 1); exit 1; }; }
  26168.      fi;;
  26169.       esac
  26170.     done` || { (exit 1); exit 1; }
  26171.  
  26172.   if test x"$ac_file" != x-; then
  26173.     { echo "$as_me:$LINENO: creating $ac_file" >&5
  26174. echo "$as_me: creating $ac_file" >&6;}
  26175.     rm -f "$ac_file"
  26176.   fi
  26177. _ACEOF
  26178. cat >>$CONFIG_STATUS <<_ACEOF
  26179.   sed "$ac_vpsub
  26180. $extrasub
  26181. _ACEOF
  26182. cat >>$CONFIG_STATUS <<\_ACEOF
  26183. :t
  26184. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  26185. s,@configure_input@,$configure_input,;t t
  26186. s,@srcdir@,$ac_srcdir,;t t
  26187. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  26188. s,@top_srcdir@,$ac_top_srcdir,;t t
  26189. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  26190. s,@builddir@,$ac_builddir,;t t
  26191. s,@abs_builddir@,$ac_abs_builddir,;t t
  26192. s,@top_builddir@,$ac_top_builddir,;t t
  26193. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  26194. s,@INSTALL@,$ac_INSTALL,;t t
  26195. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  26196.   rm -f $tmp/stdin
  26197.   if test x"$ac_file" != x-; then
  26198.     mv $tmp/out $ac_file
  26199.   else
  26200.     cat $tmp/out
  26201.     rm -f $tmp/out
  26202.   fi
  26203.  
  26204. done
  26205. _ACEOF
  26206. cat >>$CONFIG_STATUS <<\_ACEOF
  26207.  
  26208. #
  26209. # CONFIG_HEADER section.
  26210. #
  26211.  
  26212. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  26213. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  26214. #
  26215. # ac_d sets the value in "#define NAME VALUE" lines.
  26216. ac_dA='s,^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  26217. ac_dB='[     ].*$,\1#\2'
  26218. ac_dC=' '
  26219. ac_dD=',;t'
  26220. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  26221. ac_uA='s,^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  26222. ac_uB='$,\1#\2define\3'
  26223. ac_uC=' '
  26224. ac_uD=',;t'
  26225.  
  26226. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  26227.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  26228.   case $ac_file in
  26229.   - | *:- | *:-:* ) # input from stdin
  26230.     cat >$tmp/stdin
  26231.     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  26232.     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  26233.   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  26234.     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  26235.   * )   ac_file_in=$ac_file.in ;;
  26236.   esac
  26237.  
  26238.   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  26239. echo "$as_me: creating $ac_file" >&6;}
  26240.  
  26241.   # First look for the input files in the build tree, otherwise in the
  26242.   # src tree.
  26243.   ac_file_inputs=`IFS=:
  26244.     for f in $ac_file_in; do
  26245.       case $f in
  26246.       -) echo $tmp/stdin ;;
  26247.       [\\/$]*)
  26248.      # Absolute (can't be DOS-style, as IFS=:)
  26249.      test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  26250. echo "$as_me: error: cannot find input file: $f" >&2;}
  26251.    { (exit 1); exit 1; }; }
  26252.      # Do quote $f, to prevent DOS paths from being IFS'd.
  26253.      echo "$f";;
  26254.       *) # Relative
  26255.      if test -f "$f"; then
  26256.        # Build tree
  26257.        echo "$f"
  26258.      elif test -f "$srcdir/$f"; then
  26259.        # Source tree
  26260.        echo "$srcdir/$f"
  26261.      else
  26262.        # /dev/null tree
  26263.        { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  26264. echo "$as_me: error: cannot find input file: $f" >&2;}
  26265.    { (exit 1); exit 1; }; }
  26266.      fi;;
  26267.       esac
  26268.     done` || { (exit 1); exit 1; }
  26269.   # Remove the trailing spaces.
  26270.   sed 's/[     ]*$//' $ac_file_inputs >$tmp/in
  26271.  
  26272. _ACEOF
  26273.  
  26274. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  26275. # `conftest.undefs', that substitutes the proper values into
  26276. # config.h.in to produce config.h.  The first handles `#define'
  26277. # templates, and the second `#undef' templates.
  26278. # And first: Protect against being on the right side of a sed subst in
  26279. # config.status.  Protect against being in an unquoted here document
  26280. # in config.status.
  26281. rm -f conftest.defines conftest.undefs
  26282. # Using a here document instead of a string reduces the quoting nightmare.
  26283. # Putting comments in sed scripts is not portable.
  26284. #
  26285. # `end' is used to avoid that the second main sed command (meant for
  26286. # 0-ary CPP macros) applies to n-ary macro definitions.
  26287. # See the Autoconf documentation for `clear'.
  26288. cat >confdef2sed.sed <<\_ACEOF
  26289. s/[\\&,]/\\&/g
  26290. s,[\\$`],\\&,g
  26291. t clear
  26292. : clear
  26293. s,^[     ]*#[     ]*define[     ][     ]*\([^     (][^     (]*\)\(([^)]*)\)[     ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  26294. t end
  26295. s,^[     ]*#[     ]*define[     ][     ]*\([^     ][^     ]*\)[     ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  26296. : end
  26297. _ACEOF
  26298. # If some macros were called several times there might be several times
  26299. # the same #defines, which is useless.  Nevertheless, we may not want to
  26300. # sort them, since we want the *last* AC-DEFINE to be honored.
  26301. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  26302. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  26303. rm -f confdef2sed.sed
  26304.  
  26305. # This sed command replaces #undef with comments.  This is necessary, for
  26306. # example, in the case of _POSIX_SOURCE, which is predefined and required
  26307. # on some systems where configure will not decide to define it.
  26308. cat >>conftest.undefs <<\_ACEOF
  26309. s,^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  26310. _ACEOF
  26311.  
  26312. # Break up conftest.defines because some shells have a limit on the size
  26313. # of here documents, and old seds have small limits too (100 cmds).
  26314. echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  26315. echo '  if grep "^[     ]*#[     ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  26316. echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  26317. echo '  :' >>$CONFIG_STATUS
  26318. rm -f conftest.tail
  26319. while grep . conftest.defines >/dev/null
  26320. do
  26321.   # Write a limited-size here document to $tmp/defines.sed.
  26322.   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  26323.   # Speed up: don't consider the non `#define' lines.
  26324.   echo '/^[     ]*#[     ]*define/!b' >>$CONFIG_STATUS
  26325.   # Work around the forget-to-reset-the-flag bug.
  26326.   echo 't clr' >>$CONFIG_STATUS
  26327.   echo ': clr' >>$CONFIG_STATUS
  26328.   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  26329.   echo 'CEOF
  26330.   sed -f $tmp/defines.sed $tmp/in >$tmp/out
  26331.   rm -f $tmp/in
  26332.   mv $tmp/out $tmp/in
  26333. ' >>$CONFIG_STATUS
  26334.   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  26335.   rm -f conftest.defines
  26336.   mv conftest.tail conftest.defines
  26337. done
  26338. rm -f conftest.defines
  26339. echo '  fi # grep' >>$CONFIG_STATUS
  26340. echo >>$CONFIG_STATUS
  26341.  
  26342. # Break up conftest.undefs because some shells have a limit on the size
  26343. # of here documents, and old seds have small limits too (100 cmds).
  26344. echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
  26345. rm -f conftest.tail
  26346. while grep . conftest.undefs >/dev/null
  26347. do
  26348.   # Write a limited-size here document to $tmp/undefs.sed.
  26349.   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  26350.   # Speed up: don't consider the non `#undef'
  26351.   echo '/^[     ]*#[     ]*undef/!b' >>$CONFIG_STATUS
  26352.   # Work around the forget-to-reset-the-flag bug.
  26353.   echo 't clr' >>$CONFIG_STATUS
  26354.   echo ': clr' >>$CONFIG_STATUS
  26355.   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  26356.   echo 'CEOF
  26357.   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  26358.   rm -f $tmp/in
  26359.   mv $tmp/out $tmp/in
  26360. ' >>$CONFIG_STATUS
  26361.   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  26362.   rm -f conftest.undefs
  26363.   mv conftest.tail conftest.undefs
  26364. done
  26365. rm -f conftest.undefs
  26366.  
  26367. cat >>$CONFIG_STATUS <<\_ACEOF
  26368.   # Let's still pretend it is `configure' which instantiates (i.e., don't
  26369.   # use $as_me), people would be surprised to read:
  26370.   #    /* config.h.  Generated by config.status.  */
  26371.   if test x"$ac_file" = x-; then
  26372.     echo "/* Generated by configure.  */" >$tmp/config.h
  26373.   else
  26374.     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
  26375.   fi
  26376.   cat $tmp/in >>$tmp/config.h
  26377.   rm -f $tmp/in
  26378.   if test x"$ac_file" != x-; then
  26379.     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  26380.       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  26381. echo "$as_me: $ac_file is unchanged" >&6;}
  26382.     else
  26383.       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  26384. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26385.      X"$ac_file" : 'X\(//\)[^/]' \| \
  26386.      X"$ac_file" : 'X\(//\)$' \| \
  26387.      X"$ac_file" : 'X\(/\)' \| \
  26388.      .     : '\(.\)' 2>/dev/null ||
  26389. echo X"$ac_file" |
  26390.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  26391.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  26392.         /^X\(\/\/\)$/{ s//\1/; q; }
  26393.         /^X\(\/\).*/{ s//\1/; q; }
  26394.         s/.*/./; q'`
  26395.       { if $as_mkdir_p; then
  26396.     mkdir -p "$ac_dir"
  26397.   else
  26398.     as_dir="$ac_dir"
  26399.     as_dirs=
  26400.     while test ! -d "$as_dir"; do
  26401.       as_dirs="$as_dir $as_dirs"
  26402.       as_dir=`(dirname "$as_dir") 2>/dev/null ||
  26403. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26404.      X"$as_dir" : 'X\(//\)[^/]' \| \
  26405.      X"$as_dir" : 'X\(//\)$' \| \
  26406.      X"$as_dir" : 'X\(/\)' \| \
  26407.      .     : '\(.\)' 2>/dev/null ||
  26408. echo X"$as_dir" |
  26409.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  26410.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  26411.         /^X\(\/\/\)$/{ s//\1/; q; }
  26412.         /^X\(\/\).*/{ s//\1/; q; }
  26413.         s/.*/./; q'`
  26414.     done
  26415.     test ! -n "$as_dirs" || mkdir $as_dirs
  26416.   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  26417. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  26418.    { (exit 1); exit 1; }; }; }
  26419.  
  26420.       rm -f $ac_file
  26421.       mv $tmp/config.h $ac_file
  26422.     fi
  26423.   else
  26424.     cat $tmp/config.h
  26425.     rm -f $tmp/config.h
  26426.   fi
  26427. # Compute $ac_file's index in $config_headers.
  26428. _am_stamp_count=1
  26429. for _am_header in $config_headers :; do
  26430.   case $_am_header in
  26431.     $ac_file | $ac_file:* )
  26432.       break ;;
  26433.     * )
  26434.       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  26435.   esac
  26436. done
  26437. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  26438. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26439.      X$ac_file : 'X\(//\)[^/]' \| \
  26440.      X$ac_file : 'X\(//\)$' \| \
  26441.      X$ac_file : 'X\(/\)' \| \
  26442.      .     : '\(.\)' 2>/dev/null ||
  26443. echo X$ac_file |
  26444.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  26445.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  26446.         /^X\(\/\/\)$/{ s//\1/; q; }
  26447.         /^X\(\/\).*/{ s//\1/; q; }
  26448.         s/.*/./; q'`/stamp-h$_am_stamp_count
  26449. done
  26450. _ACEOF
  26451. cat >>$CONFIG_STATUS <<\_ACEOF
  26452.  
  26453. #
  26454. # CONFIG_COMMANDS section.
  26455. #
  26456. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  26457.   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  26458.   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  26459.   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  26460. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26461.      X"$ac_dest" : 'X\(//\)[^/]' \| \
  26462.      X"$ac_dest" : 'X\(//\)$' \| \
  26463.      X"$ac_dest" : 'X\(/\)' \| \
  26464.      .     : '\(.\)' 2>/dev/null ||
  26465. echo X"$ac_dest" |
  26466.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  26467.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  26468.         /^X\(\/\/\)$/{ s//\1/; q; }
  26469.         /^X\(\/\).*/{ s//\1/; q; }
  26470.         s/.*/./; q'`
  26471.   { if $as_mkdir_p; then
  26472.     mkdir -p "$ac_dir"
  26473.   else
  26474.     as_dir="$ac_dir"
  26475.     as_dirs=
  26476.     while test ! -d "$as_dir"; do
  26477.       as_dirs="$as_dir $as_dirs"
  26478.       as_dir=`(dirname "$as_dir") 2>/dev/null ||
  26479. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26480.      X"$as_dir" : 'X\(//\)[^/]' \| \
  26481.      X"$as_dir" : 'X\(//\)$' \| \
  26482.      X"$as_dir" : 'X\(/\)' \| \
  26483.      .     : '\(.\)' 2>/dev/null ||
  26484. echo X"$as_dir" |
  26485.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  26486.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  26487.         /^X\(\/\/\)$/{ s//\1/; q; }
  26488.         /^X\(\/\).*/{ s//\1/; q; }
  26489.         s/.*/./; q'`
  26490.     done
  26491.     test ! -n "$as_dirs" || mkdir $as_dirs
  26492.   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  26493. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  26494.    { (exit 1); exit 1; }; }; }
  26495.  
  26496.   ac_builddir=.
  26497.  
  26498. if test "$ac_dir" != .; then
  26499.   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  26500.   # A "../" for each directory in $ac_dir_suffix.
  26501.   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  26502. else
  26503.   ac_dir_suffix= ac_top_builddir=
  26504. fi
  26505.  
  26506. case $srcdir in
  26507.   .)  # No --srcdir option.  We are building in place.
  26508.     ac_srcdir=.
  26509.     if test -z "$ac_top_builddir"; then
  26510.        ac_top_srcdir=.
  26511.     else
  26512.        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  26513.     fi ;;
  26514.   [\\/]* | ?:[\\/]* )  # Absolute path.
  26515.     ac_srcdir=$srcdir$ac_dir_suffix;
  26516.     ac_top_srcdir=$srcdir ;;
  26517.   *) # Relative path.
  26518.     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  26519.     ac_top_srcdir=$ac_top_builddir$srcdir ;;
  26520. esac
  26521.  
  26522. # Do not use `cd foo && pwd` to compute absolute paths, because
  26523. # the directories may not exist.
  26524. case `pwd` in
  26525. .) ac_abs_builddir="$ac_dir";;
  26526. *)
  26527.   case "$ac_dir" in
  26528.   .) ac_abs_builddir=`pwd`;;
  26529.   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  26530.   *) ac_abs_builddir=`pwd`/"$ac_dir";;
  26531.   esac;;
  26532. esac
  26533. case $ac_abs_builddir in
  26534. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  26535. *)
  26536.   case ${ac_top_builddir}. in
  26537.   .) ac_abs_top_builddir=$ac_abs_builddir;;
  26538.   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  26539.   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  26540.   esac;;
  26541. esac
  26542. case $ac_abs_builddir in
  26543. .) ac_abs_srcdir=$ac_srcdir;;
  26544. *)
  26545.   case $ac_srcdir in
  26546.   .) ac_abs_srcdir=$ac_abs_builddir;;
  26547.   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  26548.   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  26549.   esac;;
  26550. esac
  26551. case $ac_abs_builddir in
  26552. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  26553. *)
  26554.   case $ac_top_srcdir in
  26555.   .) ac_abs_top_srcdir=$ac_abs_builddir;;
  26556.   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  26557.   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  26558.   esac;;
  26559. esac
  26560.  
  26561.  
  26562.   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  26563. echo "$as_me: executing $ac_dest commands" >&6;}
  26564.   case $ac_dest in
  26565.     intltool )
  26566.  
  26567. intltool_edit="-e 's#@INTLTOOL_EXTRACT@#`pwd`/intltool-extract#g' \
  26568.                -e 's#@INTLTOOL_ICONV@#${INTLTOOL_ICONV}#g' \
  26569.                -e 's#@INTLTOOL_MSGFMT@#${INTLTOOL_MSGFMT}#g' \
  26570.                -e 's#@INTLTOOL_MSGMERGE@#${INTLTOOL_MSGMERGE}#g' \
  26571.                -e 's#@INTLTOOL_XGETTEXT@#${INTLTOOL_XGETTEXT}#g' \
  26572.                -e 's#@INTLTOOL_PERL@#${INTLTOOL_PERL}#g'"
  26573.  
  26574. eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-extract.in \
  26575.   > intltool-extract.out
  26576. if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
  26577.   rm -f intltool-extract.out
  26578. else
  26579.   mv -f intltool-extract.out intltool-extract
  26580. fi
  26581. chmod ugo+x intltool-extract
  26582. chmod u+w intltool-extract
  26583.  
  26584. eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-merge.in \
  26585.   > intltool-merge.out
  26586. if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
  26587.   rm -f intltool-merge.out
  26588. else
  26589.   mv -f intltool-merge.out intltool-merge
  26590. fi
  26591. chmod ugo+x intltool-merge
  26592. chmod u+w intltool-merge
  26593.  
  26594. eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-update.in \
  26595.   > intltool-update.out
  26596. if cmp -s intltool-update intltool-update.out 2>/dev/null; then
  26597.   rm -f intltool-update.out
  26598. else
  26599.   mv -f intltool-update.out intltool-update
  26600. fi
  26601. chmod ugo+x intltool-update
  26602. chmod u+w intltool-update
  26603.  
  26604.  ;;
  26605.     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  26606.   # Strip MF so we end up with the name of the file.
  26607.   mf=`echo "$mf" | sed -e 's/:.*$//'`
  26608.   # Check whether this is an Automake generated Makefile or not.
  26609.   # We used to match only the files named `Makefile.in', but
  26610.   # some people rename them; so instead we look at the file content.
  26611.   # Grep'ing the first line is not enough: some people post-process
  26612.   # each Makefile.in and add a new line on top of each file to say so.
  26613.   # So let's grep whole file.
  26614.   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  26615.     dirpart=`(dirname "$mf") 2>/dev/null ||
  26616. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26617.      X"$mf" : 'X\(//\)[^/]' \| \
  26618.      X"$mf" : 'X\(//\)$' \| \
  26619.      X"$mf" : 'X\(/\)' \| \
  26620.      .     : '\(.\)' 2>/dev/null ||
  26621. echo X"$mf" |
  26622.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  26623.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  26624.         /^X\(\/\/\)$/{ s//\1/; q; }
  26625.         /^X\(\/\).*/{ s//\1/; q; }
  26626.         s/.*/./; q'`
  26627.   else
  26628.     continue
  26629.   fi
  26630.   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
  26631.   # Extract the definition of DEP_FILES from the Makefile without
  26632.   # running `make'.
  26633.   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  26634.   test -z "$DEPDIR" && continue
  26635.   # When using ansi2knr, U may be empty or an underscore; expand it
  26636.   U=`sed -n 's/^U = //p' < "$mf"`
  26637.   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
  26638.   # We invoke sed twice because it is the simplest approach to
  26639.   # changing $(DEPDIR) to its actual value in the expansion.
  26640.   for file in `sed -n '
  26641.     /^DEP_FILES = .*\\\\$/ {
  26642.       s/^DEP_FILES = //
  26643.       :loop
  26644.     s/\\\\$//
  26645.     p
  26646.     n
  26647.     /\\\\$/ b loop
  26648.       p
  26649.     }
  26650.     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
  26651.        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  26652.     # Make sure the directory exists.
  26653.     test -f "$dirpart/$file" && continue
  26654.     fdir=`(dirname "$file") 2>/dev/null ||
  26655. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26656.      X"$file" : 'X\(//\)[^/]' \| \
  26657.      X"$file" : 'X\(//\)$' \| \
  26658.      X"$file" : 'X\(/\)' \| \
  26659.      .     : '\(.\)' 2>/dev/null ||
  26660. echo X"$file" |
  26661.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  26662.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  26663.         /^X\(\/\/\)$/{ s//\1/; q; }
  26664.         /^X\(\/\).*/{ s//\1/; q; }
  26665.         s/.*/./; q'`
  26666.     { if $as_mkdir_p; then
  26667.     mkdir -p $dirpart/$fdir
  26668.   else
  26669.     as_dir=$dirpart/$fdir
  26670.     as_dirs=
  26671.     while test ! -d "$as_dir"; do
  26672.       as_dirs="$as_dir $as_dirs"
  26673.       as_dir=`(dirname "$as_dir") 2>/dev/null ||
  26674. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26675.      X"$as_dir" : 'X\(//\)[^/]' \| \
  26676.      X"$as_dir" : 'X\(//\)$' \| \
  26677.      X"$as_dir" : 'X\(/\)' \| \
  26678.      .     : '\(.\)' 2>/dev/null ||
  26679. echo X"$as_dir" |
  26680.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  26681.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  26682.         /^X\(\/\/\)$/{ s//\1/; q; }
  26683.         /^X\(\/\).*/{ s//\1/; q; }
  26684.         s/.*/./; q'`
  26685.     done
  26686.     test ! -n "$as_dirs" || mkdir $as_dirs
  26687.   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  26688. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  26689.    { (exit 1); exit 1; }; }; }
  26690.  
  26691.     # echo "creating $dirpart/$file"
  26692.     echo '# dummy' > "$dirpart/$file"
  26693.   done
  26694. done
  26695.  ;;
  26696.     default-1 ) case "$CONFIG_FILES" in *po/Makefile.in*)
  26697.         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
  26698.       esac ;;
  26699.   esac
  26700. done
  26701. _ACEOF
  26702.  
  26703. cat >>$CONFIG_STATUS <<\_ACEOF
  26704.  
  26705. { (exit 0); exit 0; }
  26706. _ACEOF
  26707. chmod +x $CONFIG_STATUS
  26708. ac_clean_files=$ac_clean_files_save
  26709.  
  26710.  
  26711. # configure is writing to config.log, and then calls config.status.
  26712. # config.status does its own redirection, appending to config.log.
  26713. # Unfortunately, on DOS this fails, as config.log is still kept open
  26714. # by configure, so config.status won't be able to write to it; its
  26715. # output is simply discarded.  So we exec the FD to /dev/null,
  26716. # effectively closing config.log, so it can be properly (re)opened and
  26717. # appended to by config.status.  When coming back to configure, we
  26718. # need to make the FD available again.
  26719. if test "$no_create" != yes; then
  26720.   ac_cs_success=:
  26721.   ac_config_status_args=
  26722.   test "$silent" = yes &&
  26723.     ac_config_status_args="$ac_config_status_args --quiet"
  26724.   exec 5>/dev/null
  26725.   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  26726.   exec 5>>config.log
  26727.   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  26728.   # would make configure fail if this is the last instruction.
  26729.   $ac_cs_success || { (exit 1); exit 1; }
  26730. fi
  26731.  
  26732.  
  26733.