home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 February / CMCD0205.ISO / Linux / gimp-2.2.0.tar.gz / gimp-2.2.0.tar / gimp-2.2.0 / configure < prev    next >
Text File  |  2004-12-17  |  1MB  |  35,857 lines

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for GIMP 2.2.0.
  4. #
  5. # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=GIMP>.
  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='GIMP'
  425. PACKAGE_TARNAME='gimp'
  426. PACKAGE_VERSION='2.2.0'
  427. PACKAGE_STRING='GIMP 2.2.0'
  428. PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=GIMP'
  429.  
  430. ac_unique_file="app/core/gimp.c"
  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 AWK SET_MAKE am__leading_dot GIMP_MAJOR_VERSION GIMP_MINOR_VERSION GIMP_MICRO_VERSION GIMP_INTERFACE_AGE GIMP_BINARY_AGE GIMP_API_VERSION GIMP_VERSION GIMP_REAL_VERSION GIMP_APP_VERSION GIMP_PLUGIN_VERSION GIMP_TOOL_VERSION GIMP_PKGCONFIG_VERSION GIMP_DATA_VERSION GIMP_SYSCONF_VERSION GIMP_USER_VERSION GIMP_UNSTABLE GIMP_FULL_NAME GIMP_DESKTOP_ICON LT_VERSION_INFO LT_CURRENT_MINUS_AGE GLIB_REQUIRED_VERSION GTK_REQUIRED_VERSION GDK_PIXBUF_REQUIRED_VERSION PANGOFT2_REQUIRED_VERSION FONTCONFIG_REQUIRED_VERSION GTKDOC_REQUIRED_VERSION GTKHTML2_REQUIRED_VERSION GIMPPRINT_REQUIRED_VERSION GIMPPRINT_TOONEW_VERSION RSVG_REQUIRED_VERSION WMF_REQUIRED_VERSION GETTEXT_PACKAGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL CCAS CCASFLAGS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT PLATFORM_WIN32_TRUE PLATFORM_WIN32_FALSE PATHSEP OS_WIN32_TRUE OS_WIN32_FALSE OS_UNIX_TRUE OS_UNIX_FALSE ms_librarian WINDRES ac_ct_WINDRES MS_LIB_AVAILABLE_TRUE MS_LIB_AVAILABLE_FALSE HAVE_WINDRES_TRUE HAVE_WINDRES_FALSE ALLOCA 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 ICONV MSGFMT MSGMERGE XGETTEXT mkdir_p USE_NLS GMSGFMT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLLIBS PO_IN_DATADIR_TRUE PO_IN_DATADIR_FALSE POFILES POSUB MKINSTALLDIRS PKG_CONFIG GLIB_CFLAGS GLIB_LIBS GLIB_GENMARSHAL GOBJECT_QUERY GLIB_MKENUMS GMODULE_CFLAGS GMODULE_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS GTK_CFLAGS GTK_LIBS GDK_PIXBUF_CFLAGS GDK_PIXBUF_LIBS GDK_PIXBUF_CSOURCE LIBART_CFLAGS LIBART_LIBS FONTCONFIG_CFLAGS FONTCONFIG_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS FREETYPE_CONFIG FREETYPE_LIBS HAVE_FINITE HAVE_ISFINITE SOCKET_LIBS RT_LIBS SYMPREFIX HAVE_GLIBC_REGEX_TRUE HAVE_GLIBC_REGEX_FALSE HAVE_GLIBC_REGEX GIMP_THREAD_FLAGS GIMP_THREAD_LIBS GIMP_MP_FLAGS GIMP_MP_LIBS LIBXMU LIBSCREENSHOT GIMP_REMOTE TIFF LIBTIFF JPEG LIBJPEG BUILD_XJT_TRUE BUILD_XJT_FALSE LIBZ PSP PNG LIBPNG MNG LIBMNG EXIF_CFLAGS EXIF_LIBS AA LIBAA XPM LIBXPM GTKHTML2_CFLAGS GTKHTML2_LIBS BUILD_HELPBROWSER_TRUE BUILD_HELPBROWSER_FALSE SVG_CFLAGS SVG_LIBS SVG LIBSVG GIMPPRINT_CONFIG GIMPPRINT_CFLAGS GIMPPRINT_LIBS PRINT_LIBS PRINT_CFLAGS BUILD_PRINT_TRUE BUILD_PRINT_FALSE WMF_CONFIG LIBWMF WMF_CFLAGS LCMS_LIBS HAVE_LCMS_TRUE HAVE_LCMS_FALSE ALSA_CFLAGS ALSA_LIBS HAVE_LINUX_INPUT_TRUE HAVE_LINUX_INPUT_FALSE SENDMAIL PERL WITH_PDBGEN_TRUE WITH_PDBGEN_FALSE PYTHON PYTHON_VERSION PYTHON_PREFIX PYTHON_EXEC_PREFIX PYTHON_PLATFORM pythondir pkgpythondir pyexecdir pkgpyexecdir PYTHON_INCLUDES PYGTK_CFLAGS PYGTK_LIBS PYGIMP_EXTRA_CFLAGS BUILD_PYTHON_TRUE BUILD_PYTHON_FALSE MAIL SCREENSHOT URL WINCLIPBOARD WINPRINT WMF HAVE_MAC_TWAIN_TRUE HAVE_MAC_TWAIN_FALSE DESKTOP_DATADIR_TRUE DESKTOP_DATADIR_FALSE DESKTOP_DATADIR XMLLINT HAVE_XMLLINT_TRUE HAVE_XMLLINT_FALSE XSLTPROC HAVE_XSLTPROC_TRUE HAVE_XSLTPROC_FALSE HTML_DIR ENABLE_GTK_DOC_TRUE ENABLE_GTK_DOC_FALSE GTK_DOC_USE_LIBTOOL_TRUE GTK_DOC_USE_LIBTOOL_FALSE GIMP_DEVEL_DOCS DEFAULT_BINARY_TRUE DEFAULT_BINARY_FALSE ENABLE_GIMP_CONSOLE_TRUE ENABLE_GIMP_CONSOLE_FALSE gimpdir gimpdatadir gimpplugindir gimpsysconfdir localedir GIMPINSTALL STATICLIBS_TRUE STATICLIBS_FALSE GIMP_MKENUMS GIMP_PLUGINS GIMP_MODULES 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_CC_set=${CC+set}
  910. ac_env_CC_value=$CC
  911. ac_cv_env_CC_set=${CC+set}
  912. ac_cv_env_CC_value=$CC
  913. ac_env_CFLAGS_set=${CFLAGS+set}
  914. ac_env_CFLAGS_value=$CFLAGS
  915. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  916. ac_cv_env_CFLAGS_value=$CFLAGS
  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_CPP_set=${CPP+set}
  926. ac_env_CPP_value=$CPP
  927. ac_cv_env_CPP_set=${CPP+set}
  928. ac_cv_env_CPP_value=$CPP
  929. ac_env_CXX_set=${CXX+set}
  930. ac_env_CXX_value=$CXX
  931. ac_cv_env_CXX_set=${CXX+set}
  932. ac_cv_env_CXX_value=$CXX
  933. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  934. ac_env_CXXFLAGS_value=$CXXFLAGS
  935. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  936. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  937. ac_env_CXXCPP_set=${CXXCPP+set}
  938. ac_env_CXXCPP_value=$CXXCPP
  939. ac_cv_env_CXXCPP_set=${CXXCPP+set}
  940. ac_cv_env_CXXCPP_value=$CXXCPP
  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.  
  950. #
  951. # Report the --help message.
  952. #
  953. if test "$ac_init_help" = "long"; then
  954.   # Omit some internal or obsolete options to make the list less imposing.
  955.   # This message is too long to be a string in the A/UX 3.1 sh.
  956.   cat <<_ACEOF
  957. \`configure' configures GIMP 2.2.0 to adapt to many kinds of systems.
  958.  
  959. Usage: $0 [OPTION]... [VAR=VALUE]...
  960.  
  961. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  962. VAR=VALUE.  See below for descriptions of some of the useful variables.
  963.  
  964. Defaults for the options are specified in brackets.
  965.  
  966. Configuration:
  967.   -h, --help              display this help and exit
  968.       --help=short        display options specific to this package
  969.       --help=recursive    display the short help of all the included packages
  970.   -V, --version           display version information and exit
  971.   -q, --quiet, --silent   do not print \`checking...' messages
  972.       --cache-file=FILE   cache test results in FILE [disabled]
  973.   -C, --config-cache      alias for \`--cache-file=config.cache'
  974.   -n, --no-create         do not create output files
  975.       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  976.  
  977. _ACEOF
  978.  
  979.   cat <<_ACEOF
  980. Installation directories:
  981.   --prefix=PREFIX         install architecture-independent files in PREFIX
  982.               [$ac_default_prefix]
  983.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  984.               [PREFIX]
  985.  
  986. By default, \`make install' will install all the files in
  987. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  988. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  989. for instance \`--prefix=\$HOME'.
  990.  
  991. For better control, use the options below.
  992.  
  993. Fine tuning of the installation directories:
  994.   --bindir=DIR           user executables [EPREFIX/bin]
  995.   --sbindir=DIR          system admin executables [EPREFIX/sbin]
  996.   --libexecdir=DIR       program executables [EPREFIX/libexec]
  997.   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
  998.   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  999.   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  1000.   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  1001.   --libdir=DIR           object code libraries [EPREFIX/lib]
  1002.   --includedir=DIR       C header files [PREFIX/include]
  1003.   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  1004.   --infodir=DIR          info documentation [PREFIX/info]
  1005.   --mandir=DIR           man documentation [PREFIX/man]
  1006. _ACEOF
  1007.  
  1008.   cat <<\_ACEOF
  1009.  
  1010. Program names:
  1011.   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1012.   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1013.   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1014.  
  1015. X features:
  1016.   --x-includes=DIR    X include files are in DIR
  1017.   --x-libraries=DIR   X library files are in DIR
  1018.  
  1019. System types:
  1020.   --build=BUILD     configure for building on BUILD [guessed]
  1021.   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1022. _ACEOF
  1023. fi
  1024.  
  1025. if test -n "$ac_init_help"; then
  1026.   case $ac_init_help in
  1027.      short | recursive ) echo "Configuration of GIMP 2.2.0:";;
  1028.    esac
  1029.   cat <<\_ACEOF
  1030.  
  1031. Optional Features:
  1032.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1033.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1034.   --disable-dependency-tracking Speeds up one-time builds
  1035.   --enable-dependency-tracking  Do not reject slow dependency extractors
  1036.   --enable-static[=PKGS]
  1037.                           build static libraries [default=no]
  1038.   --enable-shared[=PKGS]
  1039.                           build shared libraries [default=yes]
  1040.   --enable-fast-install[=PKGS]
  1041.                           optimize for fast installation [default=yes]
  1042.   --disable-libtool-lock  avoid locking (might break parallel builds)
  1043.   --enable-maintainer-mode enable make rules and dependencies not useful
  1044.                           (and sometimes confusing) to the casual installer
  1045.   --disable-largefile     omit support for large files
  1046.   --enable-debug          turn on debugging (default=no)
  1047.   --enable-profile        turn on profiling (default=no)
  1048.   --enable-ansi           turn on strict ansi (default=no)
  1049.   --disable-glibtest      do not try to compile and run a test GLIB program
  1050.   --disable-gtktest       do not try to compile and run a test GTK+ program
  1051.   --enable-mmx            enable MMX support (default=auto)
  1052.   --enable-sse            enable SSE support (default=auto)
  1053.   --enable-altivec        enable Altivec support (default=auto)
  1054.   --enable-mp             support multiple processors (default=no)
  1055.   --disable-print         build without print support (requires libgimpprint)
  1056.   --disable-gimpprinttest Do not try to compile and run a test GIMP-PRINT
  1057.                           program
  1058.   --disable-alsatest      Do not try to compile and run a test Alsa program
  1059.   --enable-python         build python extension (by default disabled)
  1060.   --enable-gtk-doc        use gtk-doc to build documentation default=no
  1061.   --disable-devel-docs    disable building and installation of developer docs
  1062.   --enable-default-binary install this as the default gimp binary (default=yes)
  1063.   --enable-gimp-console   build a console-only binary which does not link GTK+ (default=no)
  1064.  
  1065. Optional Packages:
  1066.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1067.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1068.   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  1069.   --with-pic              try to use only PIC/non-PIC objects [default=use
  1070.                           both]
  1071.   --with-tags[=TAGS]
  1072.                           include additional configurations [automatic]
  1073.   --with-x                use the X Window System
  1074.   --with-shm=none|sysv|posix|auto    shared memory transport type (default=auto)
  1075.   --without-libtiff       build without TIFF support
  1076.   --without-libjpeg       build without JPEG support
  1077.   --without-libpng        build without PNG support
  1078.   --without-libmng        build without MNG support
  1079.   --without-libexif       build without EXIF support
  1080.   --without-aa            do not build the AA plug-in
  1081.   --with-gimpprint-prefix=PFX Prefix where GIMP-PRINT is installed (optional)
  1082.   --with-gimpprint-exec-prefix=PFX Exec prefix where GIMP-PRINT is installed
  1083.                           (optional)
  1084.   --with-alsa-prefix=PFX  Prefix where Alsa library is installed(optional)
  1085.   --with-alsa-inc-prefix=PFX  Prefix where include libraries are (optional)
  1086.   --without-linux-input   don't build linux input event controller module
  1087.   --with-gif-compression=lzw|rle|none     GIF compression style (default=lzw)
  1088.   --with-sendmail=DIR     set sendmail command location
  1089.   --with-pdbgen           use 'pdbgen' code generation tool
  1090.   --with-desktop-dir=PATH where to install desktop files (default=PREFIX/share)
  1091.   --with-html-dir=PATH    path to installed docs
  1092.   --with-gimpdir=DIR      change default gimpdir from .gimp-2.2 to DIR
  1093.  
  1094. Some influential environment variables:
  1095.   CC          C compiler command
  1096.   CFLAGS      C compiler flags
  1097.   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1098.               nonstandard directory <lib dir>
  1099.   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
  1100.               headers in a nonstandard directory <include dir>
  1101.   CPP         C preprocessor
  1102.   CXX         C++ compiler command
  1103.   CXXFLAGS    C++ compiler flags
  1104.   CXXCPP      C++ preprocessor
  1105.   F77         Fortran 77 compiler command
  1106.   FFLAGS      Fortran 77 compiler flags
  1107.  
  1108. Use these variables to override the choices made by `configure' or to help
  1109. it to find libraries and programs with nonstandard names/locations.
  1110.  
  1111. Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=GIMP>.
  1112. _ACEOF
  1113. fi
  1114.  
  1115. if test "$ac_init_help" = "recursive"; then
  1116.   # If there are subdirs, report their specific --help.
  1117.   ac_popdir=`pwd`
  1118.   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1119.     test -d $ac_dir || continue
  1120.     ac_builddir=.
  1121.  
  1122. if test "$ac_dir" != .; then
  1123.   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1124.   # A "../" for each directory in $ac_dir_suffix.
  1125.   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  1126. else
  1127.   ac_dir_suffix= ac_top_builddir=
  1128. fi
  1129.  
  1130. case $srcdir in
  1131.   .)  # No --srcdir option.  We are building in place.
  1132.     ac_srcdir=.
  1133.     if test -z "$ac_top_builddir"; then
  1134.        ac_top_srcdir=.
  1135.     else
  1136.        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  1137.     fi ;;
  1138.   [\\/]* | ?:[\\/]* )  # Absolute path.
  1139.     ac_srcdir=$srcdir$ac_dir_suffix;
  1140.     ac_top_srcdir=$srcdir ;;
  1141.   *) # Relative path.
  1142.     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  1143.     ac_top_srcdir=$ac_top_builddir$srcdir ;;
  1144. esac
  1145.  
  1146. # Do not use `cd foo && pwd` to compute absolute paths, because
  1147. # the directories may not exist.
  1148. case `pwd` in
  1149. .) ac_abs_builddir="$ac_dir";;
  1150. *)
  1151.   case "$ac_dir" in
  1152.   .) ac_abs_builddir=`pwd`;;
  1153.   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  1154.   *) ac_abs_builddir=`pwd`/"$ac_dir";;
  1155.   esac;;
  1156. esac
  1157. case $ac_abs_builddir in
  1158. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  1159. *)
  1160.   case ${ac_top_builddir}. in
  1161.   .) ac_abs_top_builddir=$ac_abs_builddir;;
  1162.   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  1163.   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  1164.   esac;;
  1165. esac
  1166. case $ac_abs_builddir in
  1167. .) ac_abs_srcdir=$ac_srcdir;;
  1168. *)
  1169.   case $ac_srcdir in
  1170.   .) ac_abs_srcdir=$ac_abs_builddir;;
  1171.   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  1172.   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  1173.   esac;;
  1174. esac
  1175. case $ac_abs_builddir in
  1176. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  1177. *)
  1178.   case $ac_top_srcdir in
  1179.   .) ac_abs_top_srcdir=$ac_abs_builddir;;
  1180.   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  1181.   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  1182.   esac;;
  1183. esac
  1184.  
  1185.     cd $ac_dir
  1186.     # Check for guested configure; otherwise get Cygnus style configure.
  1187.     if test -f $ac_srcdir/configure.gnu; then
  1188.       echo
  1189.       $SHELL $ac_srcdir/configure.gnu  --help=recursive
  1190.     elif test -f $ac_srcdir/configure; then
  1191.       echo
  1192.       $SHELL $ac_srcdir/configure  --help=recursive
  1193.     elif test -f $ac_srcdir/configure.ac ||
  1194.        test -f $ac_srcdir/configure.in; then
  1195.       echo
  1196.       $ac_configure --help
  1197.     else
  1198.       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1199.     fi
  1200.     cd "$ac_popdir"
  1201.   done
  1202. fi
  1203.  
  1204. test -n "$ac_init_help" && exit 0
  1205. if $ac_init_version; then
  1206.   cat <<\_ACEOF
  1207. GIMP configure 2.2.0
  1208. generated by GNU Autoconf 2.59
  1209.  
  1210. Copyright (C) 2003 Free Software Foundation, Inc.
  1211. This configure script is free software; the Free Software Foundation
  1212. gives unlimited permission to copy, distribute and modify it.
  1213. _ACEOF
  1214.   exit 0
  1215. fi
  1216. exec 5>config.log
  1217. cat >&5 <<_ACEOF
  1218. This file contains any messages produced by compilers while
  1219. running configure, to aid debugging if configure makes a mistake.
  1220.  
  1221. It was created by GIMP $as_me 2.2.0, which was
  1222. generated by GNU Autoconf 2.59.  Invocation command line was
  1223.  
  1224.   $ $0 $@
  1225.  
  1226. _ACEOF
  1227. {
  1228. cat <<_ASUNAME
  1229. ## --------- ##
  1230. ## Platform. ##
  1231. ## --------- ##
  1232.  
  1233. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1234. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1235. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1236. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1237. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1238.  
  1239. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1240. /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  1241.  
  1242. /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  1243. /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  1244. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1245. hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
  1246. /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  1247. /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  1248. /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  1249.  
  1250. _ASUNAME
  1251.  
  1252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1253. for as_dir in $PATH
  1254. do
  1255.   IFS=$as_save_IFS
  1256.   test -z "$as_dir" && as_dir=.
  1257.   echo "PATH: $as_dir"
  1258. done
  1259.  
  1260. } >&5
  1261.  
  1262. cat >&5 <<_ACEOF
  1263.  
  1264.  
  1265. ## ----------- ##
  1266. ## Core tests. ##
  1267. ## ----------- ##
  1268.  
  1269. _ACEOF
  1270.  
  1271.  
  1272. # Keep a trace of the command line.
  1273. # Strip out --no-create and --no-recursion so they do not pile up.
  1274. # Strip out --silent because we don't want to record it for future runs.
  1275. # Also quote any args containing shell meta-characters.
  1276. # Make two passes to allow for proper duplicate-argument suppression.
  1277. ac_configure_args=
  1278. ac_configure_args0=
  1279. ac_configure_args1=
  1280. ac_sep=
  1281. ac_must_keep_next=false
  1282. for ac_pass in 1 2
  1283. do
  1284.   for ac_arg
  1285.   do
  1286.     case $ac_arg in
  1287.     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1288.     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1289.     | -silent | --silent | --silen | --sile | --sil)
  1290.       continue ;;
  1291.     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1292.       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1293.     esac
  1294.     case $ac_pass in
  1295.     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1296.     2)
  1297.       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1298.       if test $ac_must_keep_next = true; then
  1299.     ac_must_keep_next=false # Got value, back to normal.
  1300.       else
  1301.     case $ac_arg in
  1302.       *=* | --config-cache | -C | -disable-* | --disable-* \
  1303.       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1304.       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1305.       | -with-* | --with-* | -without-* | --without-* | --x)
  1306.         case "$ac_configure_args0 " in
  1307.           "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1308.         esac
  1309.         ;;
  1310.       -* ) ac_must_keep_next=true ;;
  1311.     esac
  1312.       fi
  1313.       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1314.       # Get rid of the leading space.
  1315.       ac_sep=" "
  1316.       ;;
  1317.     esac
  1318.   done
  1319. done
  1320. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1321. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1322.  
  1323. # When interrupted or exit'd, cleanup temporary files, and complete
  1324. # config.log.  We remove comments because anyway the quotes in there
  1325. # would cause problems or look ugly.
  1326. # WARNING: Be sure not to use single quotes in there, as some shells,
  1327. # such as our DU 5.0 friend, will then `close' the trap.
  1328. trap 'exit_status=$?
  1329.   # Save into config.log some information that might help in debugging.
  1330.   {
  1331.     echo
  1332.  
  1333.     cat <<\_ASBOX
  1334. ## ---------------- ##
  1335. ## Cache variables. ##
  1336. ## ---------------- ##
  1337. _ASBOX
  1338.     echo
  1339.     # The following way of writing the cache mishandles newlines in values,
  1340. {
  1341.   (set) 2>&1 |
  1342.     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1343.     *ac_space=\ *)
  1344.       sed -n \
  1345.     "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1346.       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1347.       ;;
  1348.     *)
  1349.       sed -n \
  1350.     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1351.       ;;
  1352.     esac;
  1353. }
  1354.     echo
  1355.  
  1356.     cat <<\_ASBOX
  1357. ## ----------------- ##
  1358. ## Output variables. ##
  1359. ## ----------------- ##
  1360. _ASBOX
  1361.     echo
  1362.     for ac_var in $ac_subst_vars
  1363.     do
  1364.       eval ac_val=$`echo $ac_var`
  1365.       echo "$ac_var='"'"'$ac_val'"'"'"
  1366.     done | sort
  1367.     echo
  1368.  
  1369.     if test -n "$ac_subst_files"; then
  1370.       cat <<\_ASBOX
  1371. ## ------------- ##
  1372. ## Output files. ##
  1373. ## ------------- ##
  1374. _ASBOX
  1375.       echo
  1376.       for ac_var in $ac_subst_files
  1377.       do
  1378.     eval ac_val=$`echo $ac_var`
  1379.     echo "$ac_var='"'"'$ac_val'"'"'"
  1380.       done | sort
  1381.       echo
  1382.     fi
  1383.  
  1384.     if test -s confdefs.h; then
  1385.       cat <<\_ASBOX
  1386. ## ----------- ##
  1387. ## confdefs.h. ##
  1388. ## ----------- ##
  1389. _ASBOX
  1390.       echo
  1391.       sed "/^$/d" confdefs.h | sort
  1392.       echo
  1393.     fi
  1394.     test "$ac_signal" != 0 &&
  1395.       echo "$as_me: caught signal $ac_signal"
  1396.     echo "$as_me: exit $exit_status"
  1397.   } >&5
  1398.   rm -f core *.core &&
  1399.   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1400.     exit $exit_status
  1401.      ' 0
  1402. for ac_signal in 1 2 13 15; do
  1403.   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1404. done
  1405. ac_signal=0
  1406.  
  1407. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1408. rm -rf conftest* confdefs.h
  1409. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1410. echo >confdefs.h
  1411.  
  1412. # Predefined preprocessor variables.
  1413.  
  1414. cat >>confdefs.h <<_ACEOF
  1415. #define PACKAGE_NAME "$PACKAGE_NAME"
  1416. _ACEOF
  1417.  
  1418.  
  1419. cat >>confdefs.h <<_ACEOF
  1420. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1421. _ACEOF
  1422.  
  1423.  
  1424. cat >>confdefs.h <<_ACEOF
  1425. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1426. _ACEOF
  1427.  
  1428.  
  1429. cat >>confdefs.h <<_ACEOF
  1430. #define PACKAGE_STRING "$PACKAGE_STRING"
  1431. _ACEOF
  1432.  
  1433.  
  1434. cat >>confdefs.h <<_ACEOF
  1435. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1436. _ACEOF
  1437.  
  1438.  
  1439. # Let the site file select an alternate cache file if it wants to.
  1440. # Prefer explicitly selected file to automatically selected ones.
  1441. if test -z "$CONFIG_SITE"; then
  1442.   if test "x$prefix" != xNONE; then
  1443.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1444.   else
  1445.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1446.   fi
  1447. fi
  1448. for ac_site_file in $CONFIG_SITE; do
  1449.   if test -r "$ac_site_file"; then
  1450.     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1451. echo "$as_me: loading site script $ac_site_file" >&6;}
  1452.     sed 's/^/| /' "$ac_site_file" >&5
  1453.     . "$ac_site_file"
  1454.   fi
  1455. done
  1456.  
  1457. if test -r "$cache_file"; then
  1458.   # Some versions of bash will fail to source /dev/null (special
  1459.   # files actually), so we avoid doing that.
  1460.   if test -f "$cache_file"; then
  1461.     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1462. echo "$as_me: loading cache $cache_file" >&6;}
  1463.     case $cache_file in
  1464.       [\\/]* | ?:[\\/]* ) . $cache_file;;
  1465.       *)                      . ./$cache_file;;
  1466.     esac
  1467.   fi
  1468. else
  1469.   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1470. echo "$as_me: creating cache $cache_file" >&6;}
  1471.   >$cache_file
  1472. fi
  1473.  
  1474. # Check that the precious variables saved in the cache have kept the same
  1475. # value.
  1476. ac_cache_corrupted=false
  1477. for ac_var in `(set) 2>&1 |
  1478.            sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1479.   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1480.   eval ac_new_set=\$ac_env_${ac_var}_set
  1481.   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1482.   eval ac_new_val="\$ac_env_${ac_var}_value"
  1483.   case $ac_old_set,$ac_new_set in
  1484.     set,)
  1485.       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1486. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1487.       ac_cache_corrupted=: ;;
  1488.     ,set)
  1489.       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1490. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1491.       ac_cache_corrupted=: ;;
  1492.     ,);;
  1493.     *)
  1494.       if test "x$ac_old_val" != "x$ac_new_val"; then
  1495.     { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1496. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1497.     { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
  1498. echo "$as_me:   former value:  $ac_old_val" >&2;}
  1499.     { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
  1500. echo "$as_me:   current value: $ac_new_val" >&2;}
  1501.     ac_cache_corrupted=:
  1502.       fi;;
  1503.   esac
  1504.   # Pass precious variables to config.status.
  1505.   if test "$ac_new_set" = set; then
  1506.     case $ac_new_val in
  1507.     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1508.       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1509.     *) ac_arg=$ac_var=$ac_new_val ;;
  1510.     esac
  1511.     case " $ac_configure_args " in
  1512.       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  1513.       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1514.     esac
  1515.   fi
  1516. done
  1517. if $ac_cache_corrupted; then
  1518.   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1519. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1520.   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1521. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1522.    { (exit 1); exit 1; }; }
  1523. fi
  1524.  
  1525. ac_ext=c
  1526. ac_cpp='$CPP $CPPFLAGS'
  1527. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1528. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1529. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1530.  
  1531.  
  1532.  
  1533.  
  1534.  
  1535.  
  1536.  
  1537.  
  1538.  
  1539.  
  1540.  
  1541.  
  1542.  
  1543.  
  1544.  
  1545.  
  1546.  
  1547.  
  1548.  
  1549.  
  1550.  
  1551.  
  1552.  
  1553.  
  1554.  
  1555.  
  1556.  
  1557.  
  1558.  
  1559.  
  1560. am__api_version="1.7"
  1561. ac_aux_dir=
  1562. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1563.   if test -f $ac_dir/install-sh; then
  1564.     ac_aux_dir=$ac_dir
  1565.     ac_install_sh="$ac_aux_dir/install-sh -c"
  1566.     break
  1567.   elif test -f $ac_dir/install.sh; then
  1568.     ac_aux_dir=$ac_dir
  1569.     ac_install_sh="$ac_aux_dir/install.sh -c"
  1570.     break
  1571.   elif test -f $ac_dir/shtool; then
  1572.     ac_aux_dir=$ac_dir
  1573.     ac_install_sh="$ac_aux_dir/shtool install -c"
  1574.     break
  1575.   fi
  1576. done
  1577. if test -z "$ac_aux_dir"; then
  1578.   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1579. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1580.    { (exit 1); exit 1; }; }
  1581. fi
  1582. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1583. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1584. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1585.  
  1586. # Find a good install program.  We prefer a C program (faster),
  1587. # so one script is as good as another.  But avoid the broken or
  1588. # incompatible versions:
  1589. # SysV /etc/install, /usr/sbin/install
  1590. # SunOS /usr/etc/install
  1591. # IRIX /sbin/install
  1592. # AIX /bin/install
  1593. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1594. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1595. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1596. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1597. # OS/2's system install, which has a completely different semantic
  1598. # ./install, which can be erroneously created by make from ./install.sh.
  1599. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1600. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1601. if test -z "$INSTALL"; then
  1602. if test "${ac_cv_path_install+set}" = set; then
  1603.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1604. else
  1605.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1606. for as_dir in $PATH
  1607. do
  1608.   IFS=$as_save_IFS
  1609.   test -z "$as_dir" && as_dir=.
  1610.   # Account for people who put trailing slashes in PATH elements.
  1611. case $as_dir/ in
  1612.   ./ | .// | /cC/* | \
  1613.   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1614.   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1615.   /usr/ucb/* ) ;;
  1616.   *)
  1617.     # OSF1 and SCO ODT 3.0 have their own names for install.
  1618.     # Don't use installbsd from OSF since it installs stuff as root
  1619.     # by default.
  1620.     for ac_prog in ginstall scoinst install; do
  1621.       for ac_exec_ext in '' $ac_executable_extensions; do
  1622.     if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1623.       if test $ac_prog = install &&
  1624.         grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1625.         # AIX install.  It has an incompatible calling convention.
  1626.         :
  1627.       elif test $ac_prog = install &&
  1628.         grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1629.         # program-specific install script used by HP pwplus--don't use.
  1630.         :
  1631.       else
  1632.         ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1633.         break 3
  1634.       fi
  1635.     fi
  1636.       done
  1637.     done
  1638.     ;;
  1639. esac
  1640. done
  1641.  
  1642.  
  1643. fi
  1644.   if test "${ac_cv_path_install+set}" = set; then
  1645.     INSTALL=$ac_cv_path_install
  1646.   else
  1647.     # As a last resort, use the slow shell script.  We don't cache a
  1648.     # path for INSTALL within a source directory, because that will
  1649.     # break other packages using the cache if that directory is
  1650.     # removed, or if the path is relative.
  1651.     INSTALL=$ac_install_sh
  1652.   fi
  1653. fi
  1654. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1655. echo "${ECHO_T}$INSTALL" >&6
  1656.  
  1657. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1658. # It thinks the first close brace ends the variable substitution.
  1659. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1660.  
  1661. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1662.  
  1663. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1664.  
  1665. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1666. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1667. # Just in case
  1668. sleep 1
  1669. echo timestamp > conftest.file
  1670. # Do `set' in a subshell so we don't clobber the current shell's
  1671. # arguments.  Must try -L first in case configure is actually a
  1672. # symlink; some systems play weird games with the mod time of symlinks
  1673. # (eg FreeBSD returns the mod time of the symlink's containing
  1674. # directory).
  1675. if (
  1676.    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1677.    if test "$*" = "X"; then
  1678.       # -L didn't work.
  1679.       set X `ls -t $srcdir/configure conftest.file`
  1680.    fi
  1681.    rm -f conftest.file
  1682.    if test "$*" != "X $srcdir/configure conftest.file" \
  1683.       && test "$*" != "X conftest.file $srcdir/configure"; then
  1684.  
  1685.       # If neither matched, then we have a broken ls.  This can happen
  1686.       # if, for instance, CONFIG_SHELL is bash and it inherits a
  1687.       # broken ls alias from the environment.  This has actually
  1688.       # happened.  Such a system could not be considered "sane".
  1689.       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
  1690. alias in your environment" >&5
  1691. echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
  1692. alias in your environment" >&2;}
  1693.    { (exit 1); exit 1; }; }
  1694.    fi
  1695.  
  1696.    test "$2" = conftest.file
  1697.    )
  1698. then
  1699.    # Ok.
  1700.    :
  1701. else
  1702.    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1703. Check your system clock" >&5
  1704. echo "$as_me: error: newly created file is older than distributed files!
  1705. Check your system clock" >&2;}
  1706.    { (exit 1); exit 1; }; }
  1707. fi
  1708. echo "$as_me:$LINENO: result: yes" >&5
  1709. echo "${ECHO_T}yes" >&6
  1710. test "$program_prefix" != NONE &&
  1711.   program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1712. # Use a double $ so make ignores it.
  1713. test "$program_suffix" != NONE &&
  1714.   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1715. # Double any \ or $.  echo might interpret backslashes.
  1716. # By default was `s,x,x', remove it if useless.
  1717. cat <<\_ACEOF >conftest.sed
  1718. s/[\\$]/&&/g;s/;s,x,x,$//
  1719. _ACEOF
  1720. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1721. rm conftest.sed
  1722.  
  1723.  
  1724. # expand $ac_aux_dir to an absolute path
  1725. am_aux_dir=`cd $ac_aux_dir && pwd`
  1726.  
  1727. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1728. # Use eval to expand $SHELL
  1729. if eval "$MISSING --run true"; then
  1730.   am_missing_run="$MISSING --run "
  1731. else
  1732.   am_missing_run=
  1733.   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1734. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1735. fi
  1736.  
  1737. for ac_prog in gawk mawk nawk awk
  1738. do
  1739.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  1740. set dummy $ac_prog; ac_word=$2
  1741. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1742. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1743. if test "${ac_cv_prog_AWK+set}" = set; then
  1744.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1745. else
  1746.   if test -n "$AWK"; then
  1747.   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1748. else
  1749. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1750. for as_dir in $PATH
  1751. do
  1752.   IFS=$as_save_IFS
  1753.   test -z "$as_dir" && as_dir=.
  1754.   for ac_exec_ext in '' $ac_executable_extensions; do
  1755.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1756.     ac_cv_prog_AWK="$ac_prog"
  1757.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1758.     break 2
  1759.   fi
  1760. done
  1761. done
  1762.  
  1763. fi
  1764. fi
  1765. AWK=$ac_cv_prog_AWK
  1766. if test -n "$AWK"; then
  1767.   echo "$as_me:$LINENO: result: $AWK" >&5
  1768. echo "${ECHO_T}$AWK" >&6
  1769. else
  1770.   echo "$as_me:$LINENO: result: no" >&5
  1771. echo "${ECHO_T}no" >&6
  1772. fi
  1773.  
  1774.   test -n "$AWK" && break
  1775. done
  1776.  
  1777. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1778. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1779. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1780. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1781.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1782. else
  1783.   cat >conftest.make <<\_ACEOF
  1784. all:
  1785.     @echo 'ac_maketemp="$(MAKE)"'
  1786. _ACEOF
  1787. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1788. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1789. if test -n "$ac_maketemp"; then
  1790.   eval ac_cv_prog_make_${ac_make}_set=yes
  1791. else
  1792.   eval ac_cv_prog_make_${ac_make}_set=no
  1793. fi
  1794. rm -f conftest.make
  1795. fi
  1796. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1797.   echo "$as_me:$LINENO: result: yes" >&5
  1798. echo "${ECHO_T}yes" >&6
  1799.   SET_MAKE=
  1800. else
  1801.   echo "$as_me:$LINENO: result: no" >&5
  1802. echo "${ECHO_T}no" >&6
  1803.   SET_MAKE="MAKE=${MAKE-make}"
  1804. fi
  1805.  
  1806. rm -rf .tst 2>/dev/null
  1807. mkdir .tst 2>/dev/null
  1808. if test -d .tst; then
  1809.   am__leading_dot=.
  1810. else
  1811.   am__leading_dot=_
  1812. fi
  1813. rmdir .tst 2>/dev/null
  1814.  
  1815.  # test to see if srcdir already configured
  1816. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1817.    test -f $srcdir/config.status; then
  1818.   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1819. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1820.    { (exit 1); exit 1; }; }
  1821. fi
  1822.  
  1823. # test whether we have cygpath
  1824. if test -z "$CYGPATH_W"; then
  1825.   if (cygpath --version) >/dev/null 2>/dev/null; then
  1826.     CYGPATH_W='cygpath -w'
  1827.   else
  1828.     CYGPATH_W=echo
  1829.   fi
  1830. fi
  1831.  
  1832.  
  1833. # Define the identity of the package.
  1834.  PACKAGE='gimp'
  1835.  VERSION='2.2.0'
  1836.  
  1837.  
  1838. # Some tools Automake needs.
  1839.  
  1840. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1841.  
  1842.  
  1843. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1844.  
  1845.  
  1846. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1847.  
  1848.  
  1849. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1850.  
  1851.  
  1852. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1853.  
  1854.  
  1855. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1856.  
  1857. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1858.  
  1859. # Installed binaries are usually stripped using `strip' when the user
  1860. # run `make install-strip'.  However `strip' might not be the right
  1861. # tool to use in cross-compilation environments, therefore Automake
  1862. # will honor the `STRIP' environment variable to overrule this program.
  1863. if test "$cross_compiling" != no; then
  1864.   if test -n "$ac_tool_prefix"; then
  1865.   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1866. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1867. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1868. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1869. if test "${ac_cv_prog_STRIP+set}" = set; then
  1870.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1871. else
  1872.   if test -n "$STRIP"; then
  1873.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1874. else
  1875. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1876. for as_dir in $PATH
  1877. do
  1878.   IFS=$as_save_IFS
  1879.   test -z "$as_dir" && as_dir=.
  1880.   for ac_exec_ext in '' $ac_executable_extensions; do
  1881.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1882.     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1883.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1884.     break 2
  1885.   fi
  1886. done
  1887. done
  1888.  
  1889. fi
  1890. fi
  1891. STRIP=$ac_cv_prog_STRIP
  1892. if test -n "$STRIP"; then
  1893.   echo "$as_me:$LINENO: result: $STRIP" >&5
  1894. echo "${ECHO_T}$STRIP" >&6
  1895. else
  1896.   echo "$as_me:$LINENO: result: no" >&5
  1897. echo "${ECHO_T}no" >&6
  1898. fi
  1899.  
  1900. fi
  1901. if test -z "$ac_cv_prog_STRIP"; then
  1902.   ac_ct_STRIP=$STRIP
  1903.   # Extract the first word of "strip", so it can be a program name with args.
  1904. set dummy strip; ac_word=$2
  1905. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1906. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1907. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1908.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1909. else
  1910.   if test -n "$ac_ct_STRIP"; then
  1911.   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1912. else
  1913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1914. for as_dir in $PATH
  1915. do
  1916.   IFS=$as_save_IFS
  1917.   test -z "$as_dir" && as_dir=.
  1918.   for ac_exec_ext in '' $ac_executable_extensions; do
  1919.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1920.     ac_cv_prog_ac_ct_STRIP="strip"
  1921.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1922.     break 2
  1923.   fi
  1924. done
  1925. done
  1926.  
  1927.   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1928. fi
  1929. fi
  1930. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1931. if test -n "$ac_ct_STRIP"; then
  1932.   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1933. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1934. else
  1935.   echo "$as_me:$LINENO: result: no" >&5
  1936. echo "${ECHO_T}no" >&6
  1937. fi
  1938.  
  1939.   STRIP=$ac_ct_STRIP
  1940. else
  1941.   STRIP="$ac_cv_prog_STRIP"
  1942. fi
  1943.  
  1944. fi
  1945. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1946.  
  1947. # We need awk for the "check" target.  The system "awk" is bad on
  1948. # some platforms.
  1949.  
  1950.  
  1951.  
  1952.           ac_config_headers="$ac_config_headers config.h"
  1953.  
  1954.  
  1955. GIMP_MAJOR_VERSION=2
  1956. GIMP_MINOR_VERSION=2
  1957. GIMP_MICRO_VERSION=0
  1958. GIMP_INTERFACE_AGE=0
  1959. GIMP_BINARY_AGE=200
  1960. GIMP_VERSION=2.2.0
  1961. GIMP_REAL_VERSION=2.2.0
  1962. GIMP_API_VERSION=2.0
  1963. GIMP_APP_VERSION=2.2
  1964. GIMP_PLUGIN_VERSION=2.0
  1965. GIMP_TOOL_VERSION=2.0
  1966. GIMP_PKGCONFIG_VERSION=2.0
  1967. GIMP_DATA_VERSION=2.0
  1968. GIMP_SYSCONF_VERSION=2.0
  1969. GIMP_USER_VERSION=2.2
  1970. GIMP_UNSTABLE=no
  1971. GIMP_FULL_NAME="The GIMP"
  1972.  
  1973.  
  1974.  
  1975.  
  1976.  
  1977.  
  1978.  
  1979.  
  1980.  
  1981.  
  1982.  
  1983.  
  1984.  
  1985.  
  1986.  
  1987.  
  1988.  
  1989.  
  1990.  
  1991.  
  1992. if test "x$GIMP_UNSTABLE" = "xyes"; then
  1993.  
  1994. cat >>confdefs.h <<\_ACEOF
  1995. #define GIMP_UNSTABLE 1
  1996. _ACEOF
  1997.  
  1998. fi
  1999.  
  2000. if test "x$GIMP_UNSTABLE" = "xyes"; then
  2001.   GIMP_DESKTOP_ICON="wilber-devel-icon.png"
  2002. else
  2003.   GIMP_DESKTOP_ICON="wilber-icon.png"
  2004. fi
  2005.  
  2006.  
  2007.  
  2008.  
  2009. # libtool versioning
  2010.  
  2011.  
  2012.  
  2013. LT_VERSION_INFO="200:0:200"
  2014. LT_CURRENT_MINUS_AGE=0
  2015.  
  2016.  
  2017.  
  2018. GLIB_REQUIRED_VERSION=2.4.5
  2019. GTK_REQUIRED_VERSION=2.4.4
  2020. GDK_PIXBUF_REQUIRED_VERSION=2.4.4
  2021. PANGOFT2_REQUIRED_VERSION=1.4.0
  2022. FONTCONFIG_REQUIRED_VERSION=2.2.0
  2023. GTKDOC_REQUIRED_VERSION=1.0
  2024. GTKHTML2_REQUIRED_VERSION=2.0.0
  2025. GIMPPRINT_REQUIRED_VERSION=4.2.0
  2026. GIMPPRINT_TOONEW_VERSION=4.3.0
  2027. RSVG_REQUIRED_VERSION=2.2.0
  2028. WMF_REQUIRED_VERSION=0.2.8
  2029.  
  2030.  
  2031.  
  2032.  
  2033.  
  2034.  
  2035.  
  2036.  
  2037.  
  2038.  
  2039.  
  2040.  
  2041. GETTEXT_PACKAGE=gimp20
  2042.  
  2043.  
  2044. cat >>confdefs.h <<_ACEOF
  2045. #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
  2046. _ACEOF
  2047.  
  2048.  
  2049.  
  2050. ac_ext=c
  2051. ac_cpp='$CPP $CPPFLAGS'
  2052. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2053. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2054. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2055. if test -n "$ac_tool_prefix"; then
  2056.   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2057. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2058. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2059. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2060. if test "${ac_cv_prog_CC+set}" = set; then
  2061.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2062. else
  2063.   if test -n "$CC"; then
  2064.   ac_cv_prog_CC="$CC" # Let the user override the test.
  2065. else
  2066. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2067. for as_dir in $PATH
  2068. do
  2069.   IFS=$as_save_IFS
  2070.   test -z "$as_dir" && as_dir=.
  2071.   for ac_exec_ext in '' $ac_executable_extensions; do
  2072.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2073.     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2074.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2075.     break 2
  2076.   fi
  2077. done
  2078. done
  2079.  
  2080. fi
  2081. fi
  2082. CC=$ac_cv_prog_CC
  2083. if test -n "$CC"; then
  2084.   echo "$as_me:$LINENO: result: $CC" >&5
  2085. echo "${ECHO_T}$CC" >&6
  2086. else
  2087.   echo "$as_me:$LINENO: result: no" >&5
  2088. echo "${ECHO_T}no" >&6
  2089. fi
  2090.  
  2091. fi
  2092. if test -z "$ac_cv_prog_CC"; then
  2093.   ac_ct_CC=$CC
  2094.   # Extract the first word of "gcc", so it can be a program name with args.
  2095. set dummy gcc; ac_word=$2
  2096. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2097. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2098. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2099.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2100. else
  2101.   if test -n "$ac_ct_CC"; then
  2102.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2103. else
  2104. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2105. for as_dir in $PATH
  2106. do
  2107.   IFS=$as_save_IFS
  2108.   test -z "$as_dir" && as_dir=.
  2109.   for ac_exec_ext in '' $ac_executable_extensions; do
  2110.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2111.     ac_cv_prog_ac_ct_CC="gcc"
  2112.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2113.     break 2
  2114.   fi
  2115. done
  2116. done
  2117.  
  2118. fi
  2119. fi
  2120. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2121. if test -n "$ac_ct_CC"; then
  2122.   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2123. echo "${ECHO_T}$ac_ct_CC" >&6
  2124. else
  2125.   echo "$as_me:$LINENO: result: no" >&5
  2126. echo "${ECHO_T}no" >&6
  2127. fi
  2128.  
  2129.   CC=$ac_ct_CC
  2130. else
  2131.   CC="$ac_cv_prog_CC"
  2132. fi
  2133.  
  2134. if test -z "$CC"; then
  2135.   if test -n "$ac_tool_prefix"; then
  2136.   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2137. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2138. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2139. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2140. if test "${ac_cv_prog_CC+set}" = set; then
  2141.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2142. else
  2143.   if test -n "$CC"; then
  2144.   ac_cv_prog_CC="$CC" # Let the user override the test.
  2145. else
  2146. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2147. for as_dir in $PATH
  2148. do
  2149.   IFS=$as_save_IFS
  2150.   test -z "$as_dir" && as_dir=.
  2151.   for ac_exec_ext in '' $ac_executable_extensions; do
  2152.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2153.     ac_cv_prog_CC="${ac_tool_prefix}cc"
  2154.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2155.     break 2
  2156.   fi
  2157. done
  2158. done
  2159.  
  2160. fi
  2161. fi
  2162. CC=$ac_cv_prog_CC
  2163. if test -n "$CC"; then
  2164.   echo "$as_me:$LINENO: result: $CC" >&5
  2165. echo "${ECHO_T}$CC" >&6
  2166. else
  2167.   echo "$as_me:$LINENO: result: no" >&5
  2168. echo "${ECHO_T}no" >&6
  2169. fi
  2170.  
  2171. fi
  2172. if test -z "$ac_cv_prog_CC"; then
  2173.   ac_ct_CC=$CC
  2174.   # Extract the first word of "cc", so it can be a program name with args.
  2175. set dummy cc; ac_word=$2
  2176. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2177. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2178. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2179.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2180. else
  2181.   if test -n "$ac_ct_CC"; then
  2182.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2183. else
  2184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2185. for as_dir in $PATH
  2186. do
  2187.   IFS=$as_save_IFS
  2188.   test -z "$as_dir" && as_dir=.
  2189.   for ac_exec_ext in '' $ac_executable_extensions; do
  2190.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2191.     ac_cv_prog_ac_ct_CC="cc"
  2192.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2193.     break 2
  2194.   fi
  2195. done
  2196. done
  2197.  
  2198. fi
  2199. fi
  2200. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2201. if test -n "$ac_ct_CC"; then
  2202.   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2203. echo "${ECHO_T}$ac_ct_CC" >&6
  2204. else
  2205.   echo "$as_me:$LINENO: result: no" >&5
  2206. echo "${ECHO_T}no" >&6
  2207. fi
  2208.  
  2209.   CC=$ac_ct_CC
  2210. else
  2211.   CC="$ac_cv_prog_CC"
  2212. fi
  2213.  
  2214. fi
  2215. if test -z "$CC"; then
  2216.   # Extract the first word of "cc", so it can be a program name with args.
  2217. set dummy cc; ac_word=$2
  2218. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2219. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2220. if test "${ac_cv_prog_CC+set}" = set; then
  2221.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2222. else
  2223.   if test -n "$CC"; then
  2224.   ac_cv_prog_CC="$CC" # Let the user override the test.
  2225. else
  2226.   ac_prog_rejected=no
  2227. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2228. for as_dir in $PATH
  2229. do
  2230.   IFS=$as_save_IFS
  2231.   test -z "$as_dir" && as_dir=.
  2232.   for ac_exec_ext in '' $ac_executable_extensions; do
  2233.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2234.     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2235.        ac_prog_rejected=yes
  2236.        continue
  2237.      fi
  2238.     ac_cv_prog_CC="cc"
  2239.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2240.     break 2
  2241.   fi
  2242. done
  2243. done
  2244.  
  2245. if test $ac_prog_rejected = yes; then
  2246.   # We found a bogon in the path, so make sure we never use it.
  2247.   set dummy $ac_cv_prog_CC
  2248.   shift
  2249.   if test $# != 0; then
  2250.     # We chose a different compiler from the bogus one.
  2251.     # However, it has the same basename, so the bogon will be chosen
  2252.     # first if we set CC to just the basename; use the full file name.
  2253.     shift
  2254.     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2255.   fi
  2256. fi
  2257. fi
  2258. fi
  2259. CC=$ac_cv_prog_CC
  2260. if test -n "$CC"; then
  2261.   echo "$as_me:$LINENO: result: $CC" >&5
  2262. echo "${ECHO_T}$CC" >&6
  2263. else
  2264.   echo "$as_me:$LINENO: result: no" >&5
  2265. echo "${ECHO_T}no" >&6
  2266. fi
  2267.  
  2268. fi
  2269. if test -z "$CC"; then
  2270.   if test -n "$ac_tool_prefix"; then
  2271.   for ac_prog in cl
  2272.   do
  2273.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2274. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2275. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2276. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2277. if test "${ac_cv_prog_CC+set}" = set; then
  2278.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2279. else
  2280.   if test -n "$CC"; then
  2281.   ac_cv_prog_CC="$CC" # Let the user override the test.
  2282. else
  2283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2284. for as_dir in $PATH
  2285. do
  2286.   IFS=$as_save_IFS
  2287.   test -z "$as_dir" && as_dir=.
  2288.   for ac_exec_ext in '' $ac_executable_extensions; do
  2289.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2290.     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2291.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2292.     break 2
  2293.   fi
  2294. done
  2295. done
  2296.  
  2297. fi
  2298. fi
  2299. CC=$ac_cv_prog_CC
  2300. if test -n "$CC"; then
  2301.   echo "$as_me:$LINENO: result: $CC" >&5
  2302. echo "${ECHO_T}$CC" >&6
  2303. else
  2304.   echo "$as_me:$LINENO: result: no" >&5
  2305. echo "${ECHO_T}no" >&6
  2306. fi
  2307.  
  2308.     test -n "$CC" && break
  2309.   done
  2310. fi
  2311. if test -z "$CC"; then
  2312.   ac_ct_CC=$CC
  2313.   for ac_prog in cl
  2314. do
  2315.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2316. set dummy $ac_prog; ac_word=$2
  2317. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2318. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2319. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2320.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2321. else
  2322.   if test -n "$ac_ct_CC"; then
  2323.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2324. else
  2325. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2326. for as_dir in $PATH
  2327. do
  2328.   IFS=$as_save_IFS
  2329.   test -z "$as_dir" && as_dir=.
  2330.   for ac_exec_ext in '' $ac_executable_extensions; do
  2331.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2332.     ac_cv_prog_ac_ct_CC="$ac_prog"
  2333.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2334.     break 2
  2335.   fi
  2336. done
  2337. done
  2338.  
  2339. fi
  2340. fi
  2341. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2342. if test -n "$ac_ct_CC"; then
  2343.   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2344. echo "${ECHO_T}$ac_ct_CC" >&6
  2345. else
  2346.   echo "$as_me:$LINENO: result: no" >&5
  2347. echo "${ECHO_T}no" >&6
  2348. fi
  2349.  
  2350.   test -n "$ac_ct_CC" && break
  2351. done
  2352.  
  2353.   CC=$ac_ct_CC
  2354. fi
  2355.  
  2356. fi
  2357.  
  2358.  
  2359. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2360. See \`config.log' for more details." >&5
  2361. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2362. See \`config.log' for more details." >&2;}
  2363.    { (exit 1); exit 1; }; }
  2364.  
  2365. # Provide some information about the compiler.
  2366. echo "$as_me:$LINENO:" \
  2367.      "checking for C compiler version" >&5
  2368. ac_compiler=`set X $ac_compile; echo $2`
  2369. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2370.   (eval $ac_compiler --version </dev/null >&5) 2>&5
  2371.   ac_status=$?
  2372.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2373.   (exit $ac_status); }
  2374. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2375.   (eval $ac_compiler -v </dev/null >&5) 2>&5
  2376.   ac_status=$?
  2377.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2378.   (exit $ac_status); }
  2379. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2380.   (eval $ac_compiler -V </dev/null >&5) 2>&5
  2381.   ac_status=$?
  2382.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2383.   (exit $ac_status); }
  2384.  
  2385. cat >conftest.$ac_ext <<_ACEOF
  2386. /* confdefs.h.  */
  2387. _ACEOF
  2388. cat confdefs.h >>conftest.$ac_ext
  2389. cat >>conftest.$ac_ext <<_ACEOF
  2390. /* end confdefs.h.  */
  2391.  
  2392. int
  2393. main ()
  2394. {
  2395.  
  2396.   ;
  2397.   return 0;
  2398. }
  2399. _ACEOF
  2400. ac_clean_files_save=$ac_clean_files
  2401. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2402. # Try to create an executable without -o first, disregard a.out.
  2403. # It will help us diagnose broken compilers, and finding out an intuition
  2404. # of exeext.
  2405. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2406. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  2407. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2408. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  2409.   (eval $ac_link_default) 2>&5
  2410.   ac_status=$?
  2411.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2412.   (exit $ac_status); }; then
  2413.   # Find the output, starting from the most likely.  This scheme is
  2414. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  2415. # resort.
  2416.  
  2417. # Be careful to initialize this variable, since it used to be cached.
  2418. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  2419. ac_cv_exeext=
  2420. # b.out is created by i960 compilers.
  2421. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  2422. do
  2423.   test -f "$ac_file" || continue
  2424.   case $ac_file in
  2425.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  2426.     ;;
  2427.     conftest.$ac_ext )
  2428.     # This is the source file.
  2429.     ;;
  2430.     [ab].out )
  2431.     # We found the default executable, but exeext='' is most
  2432.     # certainly right.
  2433.     break;;
  2434.     *.* )
  2435.     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2436.     # FIXME: I believe we export ac_cv_exeext for Libtool,
  2437.     # but it would be cool to find out if it's true.  Does anybody
  2438.     # maintain Libtool? --akim.
  2439.     export ac_cv_exeext
  2440.     break;;
  2441.     * )
  2442.     break;;
  2443.   esac
  2444. done
  2445. else
  2446.   echo "$as_me: failed program was:" >&5
  2447. sed 's/^/| /' conftest.$ac_ext >&5
  2448.  
  2449. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2450. See \`config.log' for more details." >&5
  2451. echo "$as_me: error: C compiler cannot create executables
  2452. See \`config.log' for more details." >&2;}
  2453.    { (exit 77); exit 77; }; }
  2454. fi
  2455.  
  2456. ac_exeext=$ac_cv_exeext
  2457. echo "$as_me:$LINENO: result: $ac_file" >&5
  2458. echo "${ECHO_T}$ac_file" >&6
  2459.  
  2460. # Check the compiler produces executables we can run.  If not, either
  2461. # the compiler is broken, or we cross compile.
  2462. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2463. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  2464. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2465. # If not cross compiling, check that we can run a simple program.
  2466. if test "$cross_compiling" != yes; then
  2467.   if { ac_try='./$ac_file'
  2468.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2469.   (eval $ac_try) 2>&5
  2470.   ac_status=$?
  2471.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2472.   (exit $ac_status); }; }; then
  2473.     cross_compiling=no
  2474.   else
  2475.     if test "$cross_compiling" = maybe; then
  2476.     cross_compiling=yes
  2477.     else
  2478.     { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2479. If you meant to cross compile, use \`--host'.
  2480. See \`config.log' for more details." >&5
  2481. echo "$as_me: error: cannot run C compiled programs.
  2482. If you meant to cross compile, use \`--host'.
  2483. See \`config.log' for more details." >&2;}
  2484.    { (exit 1); exit 1; }; }
  2485.     fi
  2486.   fi
  2487. fi
  2488. echo "$as_me:$LINENO: result: yes" >&5
  2489. echo "${ECHO_T}yes" >&6
  2490.  
  2491. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2492. ac_clean_files=$ac_clean_files_save
  2493. # Check the compiler produces executables we can run.  If not, either
  2494. # the compiler is broken, or we cross compile.
  2495. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2496. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2497. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2498. echo "${ECHO_T}$cross_compiling" >&6
  2499.  
  2500. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2501. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2502. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2503.   (eval $ac_link) 2>&5
  2504.   ac_status=$?
  2505.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2506.   (exit $ac_status); }; then
  2507.   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2508. # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  2509. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2510. # `rm'.
  2511. for ac_file in conftest.exe conftest conftest.*; do
  2512.   test -f "$ac_file" || continue
  2513.   case $ac_file in
  2514.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2515.     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2516.       export ac_cv_exeext
  2517.       break;;
  2518.     * ) break;;
  2519.   esac
  2520. done
  2521. else
  2522.   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2523. See \`config.log' for more details." >&5
  2524. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2525. See \`config.log' for more details." >&2;}
  2526.    { (exit 1); exit 1; }; }
  2527. fi
  2528.  
  2529. rm -f conftest$ac_cv_exeext
  2530. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2531. echo "${ECHO_T}$ac_cv_exeext" >&6
  2532.  
  2533. rm -f conftest.$ac_ext
  2534. EXEEXT=$ac_cv_exeext
  2535. ac_exeext=$EXEEXT
  2536. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2537. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2538. if test "${ac_cv_objext+set}" = set; then
  2539.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2540. else
  2541.   cat >conftest.$ac_ext <<_ACEOF
  2542. /* confdefs.h.  */
  2543. _ACEOF
  2544. cat confdefs.h >>conftest.$ac_ext
  2545. cat >>conftest.$ac_ext <<_ACEOF
  2546. /* end confdefs.h.  */
  2547.  
  2548. int
  2549. main ()
  2550. {
  2551.  
  2552.   ;
  2553.   return 0;
  2554. }
  2555. _ACEOF
  2556. rm -f conftest.o conftest.obj
  2557. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2558.   (eval $ac_compile) 2>&5
  2559.   ac_status=$?
  2560.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2561.   (exit $ac_status); }; then
  2562.   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2563.   case $ac_file in
  2564.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2565.     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2566.        break;;
  2567.   esac
  2568. done
  2569. else
  2570.   echo "$as_me: failed program was:" >&5
  2571. sed 's/^/| /' conftest.$ac_ext >&5
  2572.  
  2573. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2574. See \`config.log' for more details." >&5
  2575. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2576. See \`config.log' for more details." >&2;}
  2577.    { (exit 1); exit 1; }; }
  2578. fi
  2579.  
  2580. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2581. fi
  2582. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2583. echo "${ECHO_T}$ac_cv_objext" >&6
  2584. OBJEXT=$ac_cv_objext
  2585. ac_objext=$OBJEXT
  2586. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2587. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2588. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2589.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2590. else
  2591.   cat >conftest.$ac_ext <<_ACEOF
  2592. /* confdefs.h.  */
  2593. _ACEOF
  2594. cat confdefs.h >>conftest.$ac_ext
  2595. cat >>conftest.$ac_ext <<_ACEOF
  2596. /* end confdefs.h.  */
  2597.  
  2598. int
  2599. main ()
  2600. {
  2601. #ifndef __GNUC__
  2602.        choke me
  2603. #endif
  2604.  
  2605.   ;
  2606.   return 0;
  2607. }
  2608. _ACEOF
  2609. rm -f conftest.$ac_objext
  2610. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2611.   (eval $ac_compile) 2>conftest.er1
  2612.   ac_status=$?
  2613.   grep -v '^ *+' conftest.er1 >conftest.err
  2614.   rm -f conftest.er1
  2615.   cat conftest.err >&5
  2616.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2617.   (exit $ac_status); } &&
  2618.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  2619.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2620.   (eval $ac_try) 2>&5
  2621.   ac_status=$?
  2622.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2623.   (exit $ac_status); }; } &&
  2624.      { ac_try='test -s conftest.$ac_objext'
  2625.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2626.   (eval $ac_try) 2>&5
  2627.   ac_status=$?
  2628.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2629.   (exit $ac_status); }; }; then
  2630.   ac_compiler_gnu=yes
  2631. else
  2632.   echo "$as_me: failed program was:" >&5
  2633. sed 's/^/| /' conftest.$ac_ext >&5
  2634.  
  2635. ac_compiler_gnu=no
  2636. fi
  2637. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2638. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2639.  
  2640. fi
  2641. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2642. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2643. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2644. ac_test_CFLAGS=${CFLAGS+set}
  2645. ac_save_CFLAGS=$CFLAGS
  2646. CFLAGS="-g"
  2647. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2648. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2649. if test "${ac_cv_prog_cc_g+set}" = set; then
  2650.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2651. else
  2652.   cat >conftest.$ac_ext <<_ACEOF
  2653. /* confdefs.h.  */
  2654. _ACEOF
  2655. cat confdefs.h >>conftest.$ac_ext
  2656. cat >>conftest.$ac_ext <<_ACEOF
  2657. /* end confdefs.h.  */
  2658.  
  2659. int
  2660. main ()
  2661. {
  2662.  
  2663.   ;
  2664.   return 0;
  2665. }
  2666. _ACEOF
  2667. rm -f conftest.$ac_objext
  2668. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2669.   (eval $ac_compile) 2>conftest.er1
  2670.   ac_status=$?
  2671.   grep -v '^ *+' conftest.er1 >conftest.err
  2672.   rm -f conftest.er1
  2673.   cat conftest.err >&5
  2674.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2675.   (exit $ac_status); } &&
  2676.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  2677.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2678.   (eval $ac_try) 2>&5
  2679.   ac_status=$?
  2680.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2681.   (exit $ac_status); }; } &&
  2682.      { ac_try='test -s conftest.$ac_objext'
  2683.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2684.   (eval $ac_try) 2>&5
  2685.   ac_status=$?
  2686.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2687.   (exit $ac_status); }; }; then
  2688.   ac_cv_prog_cc_g=yes
  2689. else
  2690.   echo "$as_me: failed program was:" >&5
  2691. sed 's/^/| /' conftest.$ac_ext >&5
  2692.  
  2693. ac_cv_prog_cc_g=no
  2694. fi
  2695. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2696. fi
  2697. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2698. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2699. if test "$ac_test_CFLAGS" = set; then
  2700.   CFLAGS=$ac_save_CFLAGS
  2701. elif test $ac_cv_prog_cc_g = yes; then
  2702.   if test "$GCC" = yes; then
  2703.     CFLAGS="-g -O2"
  2704.   else
  2705.     CFLAGS="-g"
  2706.   fi
  2707. else
  2708.   if test "$GCC" = yes; then
  2709.     CFLAGS="-O2"
  2710.   else
  2711.     CFLAGS=
  2712.   fi
  2713. fi
  2714. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2715. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2716. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2717.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2718. else
  2719.   ac_cv_prog_cc_stdc=no
  2720. ac_save_CC=$CC
  2721. cat >conftest.$ac_ext <<_ACEOF
  2722. /* confdefs.h.  */
  2723. _ACEOF
  2724. cat confdefs.h >>conftest.$ac_ext
  2725. cat >>conftest.$ac_ext <<_ACEOF
  2726. /* end confdefs.h.  */
  2727. #include <stdarg.h>
  2728. #include <stdio.h>
  2729. #include <sys/types.h>
  2730. #include <sys/stat.h>
  2731. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  2732. struct buf { int x; };
  2733. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2734. static char *e (p, i)
  2735.      char **p;
  2736.      int i;
  2737. {
  2738.   return p[i];
  2739. }
  2740. static char *f (char * (*g) (char **, int), char **p, ...)
  2741. {
  2742.   char *s;
  2743.   va_list v;
  2744.   va_start (v,p);
  2745.   s = g (p, va_arg (v,int));
  2746.   va_end (v);
  2747.   return s;
  2748. }
  2749.  
  2750. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  2751.    function prototypes and stuff, but not '\xHH' hex character constants.
  2752.    These don't provoke an error unfortunately, instead are silently treated
  2753.    as 'x'.  The following induces an error, until -std1 is added to get
  2754.    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  2755.    array size at least.  It's necessary to write '\x00'==0 to get something
  2756.    that's true only with -std1.  */
  2757. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2758.  
  2759. int test (int i, double x);
  2760. struct s1 {int (*f) (int a);};
  2761. struct s2 {int (*f) (double a);};
  2762. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2763. int argc;
  2764. char **argv;
  2765. int
  2766. main ()
  2767. {
  2768. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  2769.   ;
  2770.   return 0;
  2771. }
  2772. _ACEOF
  2773. # Don't try gcc -ansi; that turns off useful extensions and
  2774. # breaks some systems' header files.
  2775. # AIX            -qlanglvl=ansi
  2776. # Ultrix and OSF/1    -std1
  2777. # HP-UX 10.20 and later    -Ae
  2778. # HP-UX older versions    -Aa -D_HPUX_SOURCE
  2779. # SVR4            -Xc -D__EXTENSIONS__
  2780. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2781. do
  2782.   CC="$ac_save_CC $ac_arg"
  2783.   rm -f conftest.$ac_objext
  2784. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2785.   (eval $ac_compile) 2>conftest.er1
  2786.   ac_status=$?
  2787.   grep -v '^ *+' conftest.er1 >conftest.err
  2788.   rm -f conftest.er1
  2789.   cat conftest.err >&5
  2790.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2791.   (exit $ac_status); } &&
  2792.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  2793.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2794.   (eval $ac_try) 2>&5
  2795.   ac_status=$?
  2796.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2797.   (exit $ac_status); }; } &&
  2798.      { ac_try='test -s conftest.$ac_objext'
  2799.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2800.   (eval $ac_try) 2>&5
  2801.   ac_status=$?
  2802.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2803.   (exit $ac_status); }; }; then
  2804.   ac_cv_prog_cc_stdc=$ac_arg
  2805. break
  2806. else
  2807.   echo "$as_me: failed program was:" >&5
  2808. sed 's/^/| /' conftest.$ac_ext >&5
  2809.  
  2810. fi
  2811. rm -f conftest.err conftest.$ac_objext
  2812. done
  2813. rm -f conftest.$ac_ext conftest.$ac_objext
  2814. CC=$ac_save_CC
  2815.  
  2816. fi
  2817.  
  2818. case "x$ac_cv_prog_cc_stdc" in
  2819.   x|xno)
  2820.     echo "$as_me:$LINENO: result: none needed" >&5
  2821. echo "${ECHO_T}none needed" >&6 ;;
  2822.   *)
  2823.     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2824. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2825.     CC="$CC $ac_cv_prog_cc_stdc" ;;
  2826. esac
  2827.  
  2828. # Some people use a C++ compiler to compile C.  Since we use `exit',
  2829. # in C++ we need to declare it.  In case someone uses the same compiler
  2830. # for both compiling C and C++ we need to have the C++ compiler decide
  2831. # the declaration of exit, since it's the most demanding environment.
  2832. cat >conftest.$ac_ext <<_ACEOF
  2833. #ifndef __cplusplus
  2834.   choke me
  2835. #endif
  2836. _ACEOF
  2837. rm -f conftest.$ac_objext
  2838. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2839.   (eval $ac_compile) 2>conftest.er1
  2840.   ac_status=$?
  2841.   grep -v '^ *+' conftest.er1 >conftest.err
  2842.   rm -f conftest.er1
  2843.   cat conftest.err >&5
  2844.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2845.   (exit $ac_status); } &&
  2846.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  2847.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2848.   (eval $ac_try) 2>&5
  2849.   ac_status=$?
  2850.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2851.   (exit $ac_status); }; } &&
  2852.      { ac_try='test -s conftest.$ac_objext'
  2853.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2854.   (eval $ac_try) 2>&5
  2855.   ac_status=$?
  2856.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2857.   (exit $ac_status); }; }; then
  2858.   for ac_declaration in \
  2859.    '' \
  2860.    'extern "C" void std::exit (int) throw (); using std::exit;' \
  2861.    'extern "C" void std::exit (int); using std::exit;' \
  2862.    'extern "C" void exit (int) throw ();' \
  2863.    'extern "C" void exit (int);' \
  2864.    'void exit (int);'
  2865. do
  2866.   cat >conftest.$ac_ext <<_ACEOF
  2867. /* confdefs.h.  */
  2868. _ACEOF
  2869. cat confdefs.h >>conftest.$ac_ext
  2870. cat >>conftest.$ac_ext <<_ACEOF
  2871. /* end confdefs.h.  */
  2872. $ac_declaration
  2873. #include <stdlib.h>
  2874. int
  2875. main ()
  2876. {
  2877. exit (42);
  2878.   ;
  2879.   return 0;
  2880. }
  2881. _ACEOF
  2882. rm -f conftest.$ac_objext
  2883. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2884.   (eval $ac_compile) 2>conftest.er1
  2885.   ac_status=$?
  2886.   grep -v '^ *+' conftest.er1 >conftest.err
  2887.   rm -f conftest.er1
  2888.   cat conftest.err >&5
  2889.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2890.   (exit $ac_status); } &&
  2891.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  2892.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2893.   (eval $ac_try) 2>&5
  2894.   ac_status=$?
  2895.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2896.   (exit $ac_status); }; } &&
  2897.      { ac_try='test -s conftest.$ac_objext'
  2898.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2899.   (eval $ac_try) 2>&5
  2900.   ac_status=$?
  2901.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2902.   (exit $ac_status); }; }; then
  2903.   :
  2904. else
  2905.   echo "$as_me: failed program was:" >&5
  2906. sed 's/^/| /' conftest.$ac_ext >&5
  2907.  
  2908. continue
  2909. fi
  2910. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2911.   cat >conftest.$ac_ext <<_ACEOF
  2912. /* confdefs.h.  */
  2913. _ACEOF
  2914. cat confdefs.h >>conftest.$ac_ext
  2915. cat >>conftest.$ac_ext <<_ACEOF
  2916. /* end confdefs.h.  */
  2917. $ac_declaration
  2918. int
  2919. main ()
  2920. {
  2921. exit (42);
  2922.   ;
  2923.   return 0;
  2924. }
  2925. _ACEOF
  2926. rm -f conftest.$ac_objext
  2927. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2928.   (eval $ac_compile) 2>conftest.er1
  2929.   ac_status=$?
  2930.   grep -v '^ *+' conftest.er1 >conftest.err
  2931.   rm -f conftest.er1
  2932.   cat conftest.err >&5
  2933.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2934.   (exit $ac_status); } &&
  2935.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  2936.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2937.   (eval $ac_try) 2>&5
  2938.   ac_status=$?
  2939.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2940.   (exit $ac_status); }; } &&
  2941.      { ac_try='test -s conftest.$ac_objext'
  2942.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2943.   (eval $ac_try) 2>&5
  2944.   ac_status=$?
  2945.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2946.   (exit $ac_status); }; }; then
  2947.   break
  2948. else
  2949.   echo "$as_me: failed program was:" >&5
  2950. sed 's/^/| /' conftest.$ac_ext >&5
  2951.  
  2952. fi
  2953. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2954. done
  2955. rm -f conftest*
  2956. if test -n "$ac_declaration"; then
  2957.   echo '#ifdef __cplusplus' >>confdefs.h
  2958.   echo $ac_declaration      >>confdefs.h
  2959.   echo '#endif'             >>confdefs.h
  2960. fi
  2961.  
  2962. else
  2963.   echo "$as_me: failed program was:" >&5
  2964. sed 's/^/| /' conftest.$ac_ext >&5
  2965.  
  2966. fi
  2967. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2968. ac_ext=c
  2969. ac_cpp='$CPP $CPPFLAGS'
  2970. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2971. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2972. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2973. DEPDIR="${am__leading_dot}deps"
  2974.  
  2975.           ac_config_commands="$ac_config_commands depfiles"
  2976.  
  2977.  
  2978. am_make=${MAKE-make}
  2979. cat > confinc << 'END'
  2980. am__doit:
  2981.     @echo done
  2982. .PHONY: am__doit
  2983. END
  2984. # If we don't find an include directive, just comment out the code.
  2985. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2986. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2987. am__include="#"
  2988. am__quote=
  2989. _am_result=none
  2990. # First try GNU make style include.
  2991. echo "include confinc" > confmf
  2992. # We grep out `Entering directory' and `Leaving directory'
  2993. # messages which can occur if `w' ends up in MAKEFLAGS.
  2994. # In particular we don't look at `^make:' because GNU make might
  2995. # be invoked under some other name (usually "gmake"), in which
  2996. # case it prints its new name instead of `make'.
  2997. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2998.    am__include=include
  2999.    am__quote=
  3000.    _am_result=GNU
  3001. fi
  3002. # Now try BSD make style include.
  3003. if test "$am__include" = "#"; then
  3004.    echo '.include "confinc"' > confmf
  3005.    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3006.       am__include=.include
  3007.       am__quote="\""
  3008.       _am_result=BSD
  3009.    fi
  3010. fi
  3011.  
  3012.  
  3013. echo "$as_me:$LINENO: result: $_am_result" >&5
  3014. echo "${ECHO_T}$_am_result" >&6
  3015. rm -f confinc confmf
  3016.  
  3017. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  3018. if test "${enable_dependency_tracking+set}" = set; then
  3019.   enableval="$enable_dependency_tracking"
  3020.  
  3021. fi;
  3022. if test "x$enable_dependency_tracking" != xno; then
  3023.   am_depcomp="$ac_aux_dir/depcomp"
  3024.   AMDEPBACKSLASH='\'
  3025. fi
  3026.  
  3027.  
  3028. if test "x$enable_dependency_tracking" != xno; then
  3029.   AMDEP_TRUE=
  3030.   AMDEP_FALSE='#'
  3031. else
  3032.   AMDEP_TRUE='#'
  3033.   AMDEP_FALSE=
  3034. fi
  3035.  
  3036.  
  3037.  
  3038.  
  3039. depcc="$CC"   am_compiler_list=
  3040.  
  3041. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3042. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  3043. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3044.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3045. else
  3046.   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3047.   # We make a subdir and do the tests there.  Otherwise we can end up
  3048.   # making bogus files that we don't know about and never remove.  For
  3049.   # instance it was reported that on HP-UX the gcc test will end up
  3050.   # making a dummy file named `D' -- because `-MD' means `put the output
  3051.   # in D'.
  3052.   mkdir conftest.dir
  3053.   # Copy depcomp to subdir because otherwise we won't find it if we're
  3054.   # using a relative directory.
  3055.   cp "$am_depcomp" conftest.dir
  3056.   cd conftest.dir
  3057.   # We will build objects and dependencies in a subdirectory because
  3058.   # it helps to detect inapplicable dependency modes.  For instance
  3059.   # both Tru64's cc and ICC support -MD to output dependencies as a
  3060.   # side effect of compilation, but ICC will put the dependencies in
  3061.   # the current directory while Tru64 will put them in the object
  3062.   # directory.
  3063.   mkdir sub
  3064.  
  3065.   am_cv_CC_dependencies_compiler_type=none
  3066.   if test "$am_compiler_list" = ""; then
  3067.      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3068.   fi
  3069.   for depmode in $am_compiler_list; do
  3070.     # Setup a source with many dependencies, because some compilers
  3071.     # like to wrap large dependency lists on column 80 (with \), and
  3072.     # we should not choose a depcomp mode which is confused by this.
  3073.     #
  3074.     # We need to recreate these files for each test, as the compiler may
  3075.     # overwrite some of them when testing with obscure command lines.
  3076.     # This happens at least with the AIX C compiler.
  3077.     : > sub/conftest.c
  3078.     for i in 1 2 3 4 5 6; do
  3079.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3080.       : > sub/conftst$i.h
  3081.     done
  3082.     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3083.  
  3084.     case $depmode in
  3085.     nosideeffect)
  3086.       # after this tag, mechanisms are not by side-effect, so they'll
  3087.       # only be used when explicitly requested
  3088.       if test "x$enable_dependency_tracking" = xyes; then
  3089.     continue
  3090.       else
  3091.     break
  3092.       fi
  3093.       ;;
  3094.     none) break ;;
  3095.     esac
  3096.     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3097.     # mode.  It turns out that the SunPro C++ compiler does not properly
  3098.     # handle `-M -o', and we need to detect this.
  3099.     if depmode=$depmode \
  3100.        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3101.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3102.        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3103.          >/dev/null 2>conftest.err &&
  3104.        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3105.        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3106.        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3107.       # icc doesn't choke on unknown options, it will just issue warnings
  3108.       # (even with -Werror).  So we grep stderr for any message
  3109.       # that says an option was ignored.
  3110.       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
  3111.         am_cv_CC_dependencies_compiler_type=$depmode
  3112.         break
  3113.       fi
  3114.     fi
  3115.   done
  3116.  
  3117.   cd ..
  3118.   rm -rf conftest.dir
  3119. else
  3120.   am_cv_CC_dependencies_compiler_type=none
  3121. fi
  3122.  
  3123. fi
  3124. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3125. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  3126. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3127.  
  3128.  
  3129.  
  3130. if
  3131.   test "x$enable_dependency_tracking" != xno \
  3132.   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3133.   am__fastdepCC_TRUE=
  3134.   am__fastdepCC_FALSE='#'
  3135. else
  3136.   am__fastdepCC_TRUE='#'
  3137.   am__fastdepCC_FALSE=
  3138. fi
  3139.  
  3140.  
  3141. # Check whether --enable-static or --disable-static was given.
  3142. if test "${enable_static+set}" = set; then
  3143.   enableval="$enable_static"
  3144.   p=${PACKAGE-default}
  3145.     case $enableval in
  3146.     yes) enable_static=yes ;;
  3147.     no) enable_static=no ;;
  3148.     *)
  3149.      enable_static=no
  3150.       # Look at the argument we got.  We use all the common list separators.
  3151.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3152.       for pkg in $enableval; do
  3153.     IFS="$lt_save_ifs"
  3154.     if test "X$pkg" = "X$p"; then
  3155.       enable_static=yes
  3156.     fi
  3157.       done
  3158.       IFS="$lt_save_ifs"
  3159.       ;;
  3160.     esac
  3161. else
  3162.   enable_static=no
  3163. fi;
  3164.  
  3165.  
  3166.  
  3167.  
  3168. # Check whether --enable-shared or --disable-shared was given.
  3169. if test "${enable_shared+set}" = set; then
  3170.   enableval="$enable_shared"
  3171.   p=${PACKAGE-default}
  3172.     case $enableval in
  3173.     yes) enable_shared=yes ;;
  3174.     no) enable_shared=no ;;
  3175.     *)
  3176.       enable_shared=no
  3177.       # Look at the argument we got.  We use all the common list separators.
  3178.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3179.       for pkg in $enableval; do
  3180.     IFS="$lt_save_ifs"
  3181.     if test "X$pkg" = "X$p"; then
  3182.       enable_shared=yes
  3183.     fi
  3184.       done
  3185.       IFS="$lt_save_ifs"
  3186.       ;;
  3187.     esac
  3188. else
  3189.   enable_shared=yes
  3190. fi;
  3191.  
  3192. # Check whether --enable-fast-install or --disable-fast-install was given.
  3193. if test "${enable_fast_install+set}" = set; then
  3194.   enableval="$enable_fast_install"
  3195.   p=${PACKAGE-default}
  3196.     case $enableval in
  3197.     yes) enable_fast_install=yes ;;
  3198.     no) enable_fast_install=no ;;
  3199.     *)
  3200.       enable_fast_install=no
  3201.       # Look at the argument we got.  We use all the common list separators.
  3202.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3203.       for pkg in $enableval; do
  3204.     IFS="$lt_save_ifs"
  3205.     if test "X$pkg" = "X$p"; then
  3206.       enable_fast_install=yes
  3207.     fi
  3208.       done
  3209.       IFS="$lt_save_ifs"
  3210.       ;;
  3211.     esac
  3212. else
  3213.   enable_fast_install=yes
  3214. fi;
  3215.  
  3216. # Make sure we can run config.sub.
  3217. $ac_config_sub sun4 >/dev/null 2>&1 ||
  3218.   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  3219. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  3220.    { (exit 1); exit 1; }; }
  3221.  
  3222. echo "$as_me:$LINENO: checking build system type" >&5
  3223. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  3224. if test "${ac_cv_build+set}" = set; then
  3225.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3226. else
  3227.   ac_cv_build_alias=$build_alias
  3228. test -z "$ac_cv_build_alias" &&
  3229.   ac_cv_build_alias=`$ac_config_guess`
  3230. test -z "$ac_cv_build_alias" &&
  3231.   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  3232. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  3233.    { (exit 1); exit 1; }; }
  3234. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  3235.   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  3236. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  3237.    { (exit 1); exit 1; }; }
  3238.  
  3239. fi
  3240. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  3241. echo "${ECHO_T}$ac_cv_build" >&6
  3242. build=$ac_cv_build
  3243. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  3244. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  3245. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  3246.  
  3247.  
  3248. echo "$as_me:$LINENO: checking host system type" >&5
  3249. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  3250. if test "${ac_cv_host+set}" = set; then
  3251.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3252. else
  3253.   ac_cv_host_alias=$host_alias
  3254. test -z "$ac_cv_host_alias" &&
  3255.   ac_cv_host_alias=$ac_cv_build_alias
  3256. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  3257.   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  3258. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  3259.    { (exit 1); exit 1; }; }
  3260.  
  3261. fi
  3262. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  3263. echo "${ECHO_T}$ac_cv_host" >&6
  3264. host=$ac_cv_host
  3265. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  3266. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  3267. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  3268.  
  3269.  
  3270. echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3271. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  3272. if test "${lt_cv_path_SED+set}" = set; then
  3273.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3274. else
  3275.   # Loop through the user's path and test for sed and gsed.
  3276. # Then use that list of sed's as ones to test for truncation.
  3277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3278. for as_dir in $PATH
  3279. do
  3280.   IFS=$as_save_IFS
  3281.   test -z "$as_dir" && as_dir=.
  3282.   for lt_ac_prog in sed gsed; do
  3283.     for ac_exec_ext in '' $ac_executable_extensions; do
  3284.       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  3285.         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3286.       fi
  3287.     done
  3288.   done
  3289. done
  3290. lt_ac_max=0
  3291. lt_ac_count=0
  3292. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3293. # along with /bin/sed that truncates output.
  3294. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3295.   test ! -f $lt_ac_sed && break
  3296.   cat /dev/null > conftest.in
  3297.   lt_ac_count=0
  3298.   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3299.   # Check for GNU sed and select it if it is found.
  3300.   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3301.     lt_cv_path_SED=$lt_ac_sed
  3302.     break
  3303.   fi
  3304.   while true; do
  3305.     cat conftest.in conftest.in >conftest.tmp
  3306.     mv conftest.tmp conftest.in
  3307.     cp conftest.in conftest.nl
  3308.     echo >>conftest.nl
  3309.     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3310.     cmp -s conftest.out conftest.nl || break
  3311.     # 10000 chars as input seems more than enough
  3312.     test $lt_ac_count -gt 10 && break
  3313.     lt_ac_count=`expr $lt_ac_count + 1`
  3314.     if test $lt_ac_count -gt $lt_ac_max; then
  3315.       lt_ac_max=$lt_ac_count
  3316.       lt_cv_path_SED=$lt_ac_sed
  3317.     fi
  3318.   done
  3319. done
  3320. SED=$lt_cv_path_SED
  3321.  
  3322. fi
  3323.  
  3324. echo "$as_me:$LINENO: result: $SED" >&5
  3325. echo "${ECHO_T}$SED" >&6
  3326.  
  3327. echo "$as_me:$LINENO: checking for egrep" >&5
  3328. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  3329. if test "${ac_cv_prog_egrep+set}" = set; then
  3330.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3331. else
  3332.   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3333.     then ac_cv_prog_egrep='grep -E'
  3334.     else ac_cv_prog_egrep='egrep'
  3335.     fi
  3336. fi
  3337. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  3338. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  3339.  EGREP=$ac_cv_prog_egrep
  3340.  
  3341.  
  3342.  
  3343. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  3344. if test "${with_gnu_ld+set}" = set; then
  3345.   withval="$with_gnu_ld"
  3346.   test "$withval" = no || with_gnu_ld=yes
  3347. else
  3348.   with_gnu_ld=no
  3349. fi;
  3350. ac_prog=ld
  3351. if test "$GCC" = yes; then
  3352.   # Check if gcc -print-prog-name=ld gives a path.
  3353.   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3354. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  3355.   case $host in
  3356.   *-*-mingw*)
  3357.     # gcc leaves a trailing carriage return which upsets mingw
  3358.     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3359.   *)
  3360.     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3361.   esac
  3362.   case $ac_prog in
  3363.     # Accept absolute paths.
  3364.     [\\/]* | ?:[\\/]*)
  3365.       re_direlt='/[^/][^/]*/\.\./'
  3366.       # Canonicalize the pathname of ld
  3367.       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3368.       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3369.     ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3370.       done
  3371.       test -z "$LD" && LD="$ac_prog"
  3372.       ;;
  3373.   "")
  3374.     # If it fails, then pretend we aren't using GCC.
  3375.     ac_prog=ld
  3376.     ;;
  3377.   *)
  3378.     # If it is relative, then search for the first ld in PATH.
  3379.     with_gnu_ld=unknown
  3380.     ;;
  3381.   esac
  3382. elif test "$with_gnu_ld" = yes; then
  3383.   echo "$as_me:$LINENO: checking for GNU ld" >&5
  3384. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  3385. else
  3386.   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3387. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  3388. fi
  3389. if test "${lt_cv_path_LD+set}" = set; then
  3390.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3391. else
  3392.   if test -z "$LD"; then
  3393.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3394.   for ac_dir in $PATH; do
  3395.     IFS="$lt_save_ifs"
  3396.     test -z "$ac_dir" && ac_dir=.
  3397.     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3398.       lt_cv_path_LD="$ac_dir/$ac_prog"
  3399.       # Check to see if the program is GNU ld.  I'd rather use --version,
  3400.       # but apparently some GNU ld's only accept -v.
  3401.       # Break only if it was the GNU/non-GNU ld that we prefer.
  3402.       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3403.       *GNU* | *'with BFD'*)
  3404.     test "$with_gnu_ld" != no && break
  3405.     ;;
  3406.       *)
  3407.     test "$with_gnu_ld" != yes && break
  3408.     ;;
  3409.       esac
  3410.     fi
  3411.   done
  3412.   IFS="$lt_save_ifs"
  3413. else
  3414.   lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3415. fi
  3416. fi
  3417.  
  3418. LD="$lt_cv_path_LD"
  3419. if test -n "$LD"; then
  3420.   echo "$as_me:$LINENO: result: $LD" >&5
  3421. echo "${ECHO_T}$LD" >&6
  3422. else
  3423.   echo "$as_me:$LINENO: result: no" >&5
  3424. echo "${ECHO_T}no" >&6
  3425. fi
  3426. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3427. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3428.    { (exit 1); exit 1; }; }
  3429. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3430. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  3431. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3432.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3433. else
  3434.   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  3435. case `$LD -v 2>&1 </dev/null` in
  3436. *GNU* | *'with BFD'*)
  3437.   lt_cv_prog_gnu_ld=yes
  3438.   ;;
  3439. *)
  3440.   lt_cv_prog_gnu_ld=no
  3441.   ;;
  3442. esac
  3443. fi
  3444. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3445. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  3446. with_gnu_ld=$lt_cv_prog_gnu_ld
  3447.  
  3448.  
  3449. echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3450. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  3451. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3452.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3453. else
  3454.   lt_cv_ld_reload_flag='-r'
  3455. fi
  3456. echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3457. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  3458. reload_flag=$lt_cv_ld_reload_flag
  3459. case $reload_flag in
  3460. "" | " "*) ;;
  3461. *) reload_flag=" $reload_flag" ;;
  3462. esac
  3463. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3464.  
  3465. echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  3466. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  3467. if test "${lt_cv_path_NM+set}" = set; then
  3468.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3469. else
  3470.   if test -n "$NM"; then
  3471.   # Let the user override the test.
  3472.   lt_cv_path_NM="$NM"
  3473. else
  3474.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3475.   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  3476.     IFS="$lt_save_ifs"
  3477.     test -z "$ac_dir" && ac_dir=.
  3478.     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  3479.     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3480.       # Check to see if the nm accepts a BSD-compat flag.
  3481.       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3482.       #   nm: unknown option "B" ignored
  3483.       # Tru64's nm complains that /dev/null is an invalid object file
  3484.       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3485.       */dev/null* | *'Invalid file or object type'*)
  3486.     lt_cv_path_NM="$tmp_nm -B"
  3487.     break
  3488.         ;;
  3489.       *)
  3490.     case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3491.     */dev/null*)
  3492.       lt_cv_path_NM="$tmp_nm -p"
  3493.       break
  3494.       ;;
  3495.     *)
  3496.       lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3497.       continue # so that we can try to find one that supports BSD flags
  3498.       ;;
  3499.     esac
  3500.       esac
  3501.     fi
  3502.   done
  3503.   IFS="$lt_save_ifs"
  3504.   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3505. fi
  3506. fi
  3507. echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3508. echo "${ECHO_T}$lt_cv_path_NM" >&6
  3509. NM="$lt_cv_path_NM"
  3510.  
  3511. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3512. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  3513. LN_S=$as_ln_s
  3514. if test "$LN_S" = "ln -s"; then
  3515.   echo "$as_me:$LINENO: result: yes" >&5
  3516. echo "${ECHO_T}yes" >&6
  3517. else
  3518.   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3519. echo "${ECHO_T}no, using $LN_S" >&6
  3520. fi
  3521.  
  3522. echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  3523. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  3524. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3525.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3526. else
  3527.   lt_cv_file_magic_cmd='$MAGIC_CMD'
  3528. lt_cv_file_magic_test_file=
  3529. lt_cv_deplibs_check_method='unknown'
  3530. # Need to set the preceding variable on all platforms that support
  3531. # interlibrary dependencies.
  3532. # 'none' -- dependencies not supported.
  3533. # `unknown' -- same as none, but documents that we really don't know.
  3534. # 'pass_all' -- all dependencies passed with no checks.
  3535. # 'test_compile' -- check by making test program.
  3536. # 'file_magic [[regex]]' -- check by looking for files in library path
  3537. # which responds to the $file_magic_cmd with a given extended regex.
  3538. # If you have `file' or equivalent on your system and you're not sure
  3539. # whether `pass_all' will *always* work, you probably want this one.
  3540.  
  3541. case $host_os in
  3542. aix4* | aix5*)
  3543.   lt_cv_deplibs_check_method=pass_all
  3544.   ;;
  3545.  
  3546. beos*)
  3547.   lt_cv_deplibs_check_method=pass_all
  3548.   ;;
  3549.  
  3550. bsdi4*)
  3551.   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3552.   lt_cv_file_magic_cmd='/usr/bin/file -L'
  3553.   lt_cv_file_magic_test_file=/shlib/libc.so
  3554.   ;;
  3555.  
  3556. cygwin*)
  3557.   # func_win32_libid is a shell function defined in ltmain.sh
  3558.   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3559.   lt_cv_file_magic_cmd='func_win32_libid'
  3560.   ;;
  3561.  
  3562. mingw* | pw32*)
  3563.   # Base MSYS/MinGW do not provide the 'file' command needed by
  3564.   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  3565.   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3566.   lt_cv_file_magic_cmd='$OBJDUMP -f'
  3567.   ;;
  3568.  
  3569. darwin* | rhapsody*)
  3570.   lt_cv_deplibs_check_method=pass_all
  3571.   ;;
  3572.  
  3573. freebsd* | kfreebsd*-gnu)
  3574.   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3575.     case $host_cpu in
  3576.     i*86 )
  3577.       # Not sure whether the presence of OpenBSD here was a mistake.
  3578.       # Let's accept both of them until this is cleared up.
  3579.       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
  3580.       lt_cv_file_magic_cmd=/usr/bin/file
  3581.       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3582.       ;;
  3583.     esac
  3584.   else
  3585.     lt_cv_deplibs_check_method=pass_all
  3586.   fi
  3587.   ;;
  3588.  
  3589. gnu*)
  3590.   lt_cv_deplibs_check_method=pass_all
  3591.   ;;
  3592.  
  3593. hpux10.20* | hpux11*)
  3594.   lt_cv_file_magic_cmd=/usr/bin/file
  3595.   case "$host_cpu" in
  3596.   ia64*)
  3597.     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3598.     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3599.     ;;
  3600.   hppa*64*)
  3601.     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]'
  3602.     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3603.     ;;
  3604.   *)
  3605.     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3606.     lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3607.     ;;
  3608.   esac
  3609.   ;;
  3610.  
  3611. irix5* | irix6* | nonstopux*)
  3612.   case $LD in
  3613.   *-32|*"-32 ") libmagic=32-bit;;
  3614.   *-n32|*"-n32 ") libmagic=N32;;
  3615.   *-64|*"-64 ") libmagic=64-bit;;
  3616.   *) libmagic=never-match;;
  3617.   esac
  3618.   lt_cv_deplibs_check_method=pass_all
  3619.   ;;
  3620.  
  3621. # This must be Linux ELF.
  3622. linux*)
  3623.   lt_cv_deplibs_check_method=pass_all
  3624.   ;;
  3625.  
  3626. netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  3627.   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3628.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3629.   else
  3630.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  3631.   fi
  3632.   ;;
  3633.  
  3634. newos6*)
  3635.   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  3636.   lt_cv_file_magic_cmd=/usr/bin/file
  3637.   lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3638.   ;;
  3639.  
  3640. nto-qnx*)
  3641.   lt_cv_deplibs_check_method=unknown
  3642.   ;;
  3643.  
  3644. openbsd*)
  3645.   lt_cv_file_magic_cmd=/usr/bin/file
  3646.   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3647.   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3648.     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
  3649.   else
  3650.     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  3651.   fi
  3652.   ;;
  3653.  
  3654. osf3* | osf4* | osf5*)
  3655.   lt_cv_deplibs_check_method=pass_all
  3656.   ;;
  3657.  
  3658. sco3.2v5*)
  3659.   lt_cv_deplibs_check_method=pass_all
  3660.   ;;
  3661.  
  3662. solaris*)
  3663.   lt_cv_deplibs_check_method=pass_all
  3664.   ;;
  3665.  
  3666. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  3667.   case $host_vendor in
  3668.   motorola)
  3669.     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]'
  3670.     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3671.     ;;
  3672.   ncr)
  3673.     lt_cv_deplibs_check_method=pass_all
  3674.     ;;
  3675.   sequent)
  3676.     lt_cv_file_magic_cmd='/bin/file'
  3677.     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  3678.     ;;
  3679.   sni)
  3680.     lt_cv_file_magic_cmd='/bin/file'
  3681.     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  3682.     lt_cv_file_magic_test_file=/lib/libc.so
  3683.     ;;
  3684.   siemens)
  3685.     lt_cv_deplibs_check_method=pass_all
  3686.     ;;
  3687.   esac
  3688.   ;;
  3689.  
  3690. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
  3691.   lt_cv_deplibs_check_method=pass_all
  3692.   ;;
  3693. esac
  3694.  
  3695. fi
  3696. echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  3697. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  3698. file_magic_cmd=$lt_cv_file_magic_cmd
  3699. deplibs_check_method=$lt_cv_deplibs_check_method
  3700. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3701.  
  3702.  
  3703.  
  3704.  
  3705. # If no C compiler was specified, use CC.
  3706. LTCC=${LTCC-"$CC"}
  3707.  
  3708. # Allow CC to be a program name with arguments.
  3709. compiler=$CC
  3710.  
  3711.  
  3712. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  3713. if test "${enable_libtool_lock+set}" = set; then
  3714.   enableval="$enable_libtool_lock"
  3715.  
  3716. fi;
  3717. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  3718.  
  3719. # Some flags need to be propagated to the compiler or linker for good
  3720. # libtool support.
  3721. case $host in
  3722. ia64-*-hpux*)
  3723.   # Find out which ABI we are using.
  3724.   echo 'int i;' > conftest.$ac_ext
  3725.   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3726.   (eval $ac_compile) 2>&5
  3727.   ac_status=$?
  3728.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3729.   (exit $ac_status); }; then
  3730.     case `/usr/bin/file conftest.$ac_objext` in
  3731.     *ELF-32*)
  3732.       HPUX_IA64_MODE="32"
  3733.       ;;
  3734.     *ELF-64*)
  3735.       HPUX_IA64_MODE="64"
  3736.       ;;
  3737.     esac
  3738.   fi
  3739.   rm -rf conftest*
  3740.   ;;
  3741. *-*-irix6*)
  3742.   # Find out which ABI we are using.
  3743.   echo '#line 3743 "configure"' > conftest.$ac_ext
  3744.   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3745.   (eval $ac_compile) 2>&5
  3746.   ac_status=$?
  3747.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3748.   (exit $ac_status); }; then
  3749.    if test "$lt_cv_prog_gnu_ld" = yes; then
  3750.     case `/usr/bin/file conftest.$ac_objext` in
  3751.     *32-bit*)
  3752.       LD="${LD-ld} -melf32bsmip"
  3753.       ;;
  3754.     *N32*)
  3755.       LD="${LD-ld} -melf32bmipn32"
  3756.       ;;
  3757.     *64-bit*)
  3758.       LD="${LD-ld} -melf64bmip"
  3759.       ;;
  3760.     esac
  3761.    else
  3762.     case `/usr/bin/file conftest.$ac_objext` in
  3763.     *32-bit*)
  3764.       LD="${LD-ld} -32"
  3765.       ;;
  3766.     *N32*)
  3767.       LD="${LD-ld} -n32"
  3768.       ;;
  3769.     *64-bit*)
  3770.       LD="${LD-ld} -64"
  3771.       ;;
  3772.     esac
  3773.    fi
  3774.   fi
  3775.   rm -rf conftest*
  3776.   ;;
  3777.  
  3778. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  3779.   # Find out which ABI we are using.
  3780.   echo 'int i;' > conftest.$ac_ext
  3781.   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3782.   (eval $ac_compile) 2>&5
  3783.   ac_status=$?
  3784.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3785.   (exit $ac_status); }; then
  3786.     case "`/usr/bin/file conftest.o`" in
  3787.     *32-bit*)
  3788.       case $host in
  3789.         x86_64-*linux*)
  3790.           LD="${LD-ld} -m elf_i386"
  3791.           ;;
  3792.         ppc64-*linux*|powerpc64-*linux*)
  3793.           LD="${LD-ld} -m elf32ppclinux"
  3794.           ;;
  3795.         s390x-*linux*)
  3796.           LD="${LD-ld} -m elf_s390"
  3797.           ;;
  3798.         sparc64-*linux*)
  3799.           LD="${LD-ld} -m elf32_sparc"
  3800.           ;;
  3801.       esac
  3802.       ;;
  3803.     *64-bit*)
  3804.       case $host in
  3805.         x86_64-*linux*)
  3806.           LD="${LD-ld} -m elf_x86_64"
  3807.           ;;
  3808.         ppc*-*linux*|powerpc*-*linux*)
  3809.           LD="${LD-ld} -m elf64ppc"
  3810.           ;;
  3811.         s390*-*linux*)
  3812.           LD="${LD-ld} -m elf64_s390"
  3813.           ;;
  3814.         sparc*-*linux*)
  3815.           LD="${LD-ld} -m elf64_sparc"
  3816.           ;;
  3817.       esac
  3818.       ;;
  3819.     esac
  3820.   fi
  3821.   rm -rf conftest*
  3822.   ;;
  3823.  
  3824. *-*-sco3.2v5*)
  3825.   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  3826.   SAVE_CFLAGS="$CFLAGS"
  3827.   CFLAGS="$CFLAGS -belf"
  3828.   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  3829. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  3830. if test "${lt_cv_cc_needs_belf+set}" = set; then
  3831.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3832. else
  3833.   ac_ext=c
  3834. ac_cpp='$CPP $CPPFLAGS'
  3835. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3836. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3837. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3838.  
  3839.      cat >conftest.$ac_ext <<_ACEOF
  3840. /* confdefs.h.  */
  3841. _ACEOF
  3842. cat confdefs.h >>conftest.$ac_ext
  3843. cat >>conftest.$ac_ext <<_ACEOF
  3844. /* end confdefs.h.  */
  3845.  
  3846. int
  3847. main ()
  3848. {
  3849.  
  3850.   ;
  3851.   return 0;
  3852. }
  3853. _ACEOF
  3854. rm -f conftest.$ac_objext conftest$ac_exeext
  3855. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3856.   (eval $ac_link) 2>conftest.er1
  3857.   ac_status=$?
  3858.   grep -v '^ *+' conftest.er1 >conftest.err
  3859.   rm -f conftest.er1
  3860.   cat conftest.err >&5
  3861.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3862.   (exit $ac_status); } &&
  3863.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  3864.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3865.   (eval $ac_try) 2>&5
  3866.   ac_status=$?
  3867.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3868.   (exit $ac_status); }; } &&
  3869.      { ac_try='test -s conftest$ac_exeext'
  3870.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3871.   (eval $ac_try) 2>&5
  3872.   ac_status=$?
  3873.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3874.   (exit $ac_status); }; }; then
  3875.   lt_cv_cc_needs_belf=yes
  3876. else
  3877.   echo "$as_me: failed program was:" >&5
  3878. sed 's/^/| /' conftest.$ac_ext >&5
  3879.  
  3880. lt_cv_cc_needs_belf=no
  3881. fi
  3882. rm -f conftest.err conftest.$ac_objext \
  3883.       conftest$ac_exeext conftest.$ac_ext
  3884.      ac_ext=c
  3885. ac_cpp='$CPP $CPPFLAGS'
  3886. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3887. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3888. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3889.  
  3890. fi
  3891. echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  3892. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  3893.   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  3894.     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  3895.     CFLAGS="$SAVE_CFLAGS"
  3896.   fi
  3897.   ;;
  3898. *-*-cygwin* | *-*-mingw* | *-*-pw32*)
  3899.   if test -n "$ac_tool_prefix"; then
  3900.   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  3901. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  3902. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3903. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3904. if test "${ac_cv_prog_DLLTOOL+set}" = set; then
  3905.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3906. else
  3907.   if test -n "$DLLTOOL"; then
  3908.   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  3909. else
  3910. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3911. for as_dir in $PATH
  3912. do
  3913.   IFS=$as_save_IFS
  3914.   test -z "$as_dir" && as_dir=.
  3915.   for ac_exec_ext in '' $ac_executable_extensions; do
  3916.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3917.     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  3918.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3919.     break 2
  3920.   fi
  3921. done
  3922. done
  3923.  
  3924. fi
  3925. fi
  3926. DLLTOOL=$ac_cv_prog_DLLTOOL
  3927. if test -n "$DLLTOOL"; then
  3928.   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
  3929. echo "${ECHO_T}$DLLTOOL" >&6
  3930. else
  3931.   echo "$as_me:$LINENO: result: no" >&5
  3932. echo "${ECHO_T}no" >&6
  3933. fi
  3934.  
  3935. fi
  3936. if test -z "$ac_cv_prog_DLLTOOL"; then
  3937.   ac_ct_DLLTOOL=$DLLTOOL
  3938.   # Extract the first word of "dlltool", so it can be a program name with args.
  3939. set dummy dlltool; ac_word=$2
  3940. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3941. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3942. if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
  3943.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3944. else
  3945.   if test -n "$ac_ct_DLLTOOL"; then
  3946.   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  3947. else
  3948. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3949. for as_dir in $PATH
  3950. do
  3951.   IFS=$as_save_IFS
  3952.   test -z "$as_dir" && as_dir=.
  3953.   for ac_exec_ext in '' $ac_executable_extensions; do
  3954.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3955.     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  3956.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3957.     break 2
  3958.   fi
  3959. done
  3960. done
  3961.  
  3962.   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
  3963. fi
  3964. fi
  3965. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  3966. if test -n "$ac_ct_DLLTOOL"; then
  3967.   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
  3968. echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
  3969. else
  3970.   echo "$as_me:$LINENO: result: no" >&5
  3971. echo "${ECHO_T}no" >&6
  3972. fi
  3973.  
  3974.   DLLTOOL=$ac_ct_DLLTOOL
  3975. else
  3976.   DLLTOOL="$ac_cv_prog_DLLTOOL"
  3977. fi
  3978.  
  3979.   if test -n "$ac_tool_prefix"; then
  3980.   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  3981. set dummy ${ac_tool_prefix}as; ac_word=$2
  3982. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3983. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3984. if test "${ac_cv_prog_AS+set}" = set; then
  3985.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3986. else
  3987.   if test -n "$AS"; then
  3988.   ac_cv_prog_AS="$AS" # Let the user override the test.
  3989. else
  3990. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3991. for as_dir in $PATH
  3992. do
  3993.   IFS=$as_save_IFS
  3994.   test -z "$as_dir" && as_dir=.
  3995.   for ac_exec_ext in '' $ac_executable_extensions; do
  3996.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3997.     ac_cv_prog_AS="${ac_tool_prefix}as"
  3998.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3999.     break 2
  4000.   fi
  4001. done
  4002. done
  4003.  
  4004. fi
  4005. fi
  4006. AS=$ac_cv_prog_AS
  4007. if test -n "$AS"; then
  4008.   echo "$as_me:$LINENO: result: $AS" >&5
  4009. echo "${ECHO_T}$AS" >&6
  4010. else
  4011.   echo "$as_me:$LINENO: result: no" >&5
  4012. echo "${ECHO_T}no" >&6
  4013. fi
  4014.  
  4015. fi
  4016. if test -z "$ac_cv_prog_AS"; then
  4017.   ac_ct_AS=$AS
  4018.   # Extract the first word of "as", so it can be a program name with args.
  4019. set dummy as; ac_word=$2
  4020. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4021. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4022. if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
  4023.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4024. else
  4025.   if test -n "$ac_ct_AS"; then
  4026.   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  4027. else
  4028. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4029. for as_dir in $PATH
  4030. do
  4031.   IFS=$as_save_IFS
  4032.   test -z "$as_dir" && as_dir=.
  4033.   for ac_exec_ext in '' $ac_executable_extensions; do
  4034.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4035.     ac_cv_prog_ac_ct_AS="as"
  4036.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4037.     break 2
  4038.   fi
  4039. done
  4040. done
  4041.  
  4042.   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
  4043. fi
  4044. fi
  4045. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  4046. if test -n "$ac_ct_AS"; then
  4047.   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
  4048. echo "${ECHO_T}$ac_ct_AS" >&6
  4049. else
  4050.   echo "$as_me:$LINENO: result: no" >&5
  4051. echo "${ECHO_T}no" >&6
  4052. fi
  4053.  
  4054.   AS=$ac_ct_AS
  4055. else
  4056.   AS="$ac_cv_prog_AS"
  4057. fi
  4058.  
  4059.   if test -n "$ac_tool_prefix"; then
  4060.   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4061. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4062. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4063. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4064. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  4065.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4066. else
  4067.   if test -n "$OBJDUMP"; then
  4068.   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4069. else
  4070. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4071. for as_dir in $PATH
  4072. do
  4073.   IFS=$as_save_IFS
  4074.   test -z "$as_dir" && as_dir=.
  4075.   for ac_exec_ext in '' $ac_executable_extensions; do
  4076.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4077.     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4078.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4079.     break 2
  4080.   fi
  4081. done
  4082. done
  4083.  
  4084. fi
  4085. fi
  4086. OBJDUMP=$ac_cv_prog_OBJDUMP
  4087. if test -n "$OBJDUMP"; then
  4088.   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  4089. echo "${ECHO_T}$OBJDUMP" >&6
  4090. else
  4091.   echo "$as_me:$LINENO: result: no" >&5
  4092. echo "${ECHO_T}no" >&6
  4093. fi
  4094.  
  4095. fi
  4096. if test -z "$ac_cv_prog_OBJDUMP"; then
  4097.   ac_ct_OBJDUMP=$OBJDUMP
  4098.   # Extract the first word of "objdump", so it can be a program name with args.
  4099. set dummy objdump; ac_word=$2
  4100. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4101. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4102. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  4103.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4104. else
  4105.   if test -n "$ac_ct_OBJDUMP"; then
  4106.   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4107. else
  4108. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4109. for as_dir in $PATH
  4110. do
  4111.   IFS=$as_save_IFS
  4112.   test -z "$as_dir" && as_dir=.
  4113.   for ac_exec_ext in '' $ac_executable_extensions; do
  4114.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4115.     ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4116.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4117.     break 2
  4118.   fi
  4119. done
  4120. done
  4121.  
  4122.   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
  4123. fi
  4124. fi
  4125. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4126. if test -n "$ac_ct_OBJDUMP"; then
  4127.   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  4128. echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
  4129. else
  4130.   echo "$as_me:$LINENO: result: no" >&5
  4131. echo "${ECHO_T}no" >&6
  4132. fi
  4133.  
  4134.   OBJDUMP=$ac_ct_OBJDUMP
  4135. else
  4136.   OBJDUMP="$ac_cv_prog_OBJDUMP"
  4137. fi
  4138.  
  4139.   ;;
  4140.  
  4141. esac
  4142.  
  4143. need_locks="$enable_libtool_lock"
  4144.  
  4145.  
  4146. ac_ext=c
  4147. ac_cpp='$CPP $CPPFLAGS'
  4148. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4149. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4150. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4151. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4152. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  4153. # On Suns, sometimes $CPP names a directory.
  4154. if test -n "$CPP" && test -d "$CPP"; then
  4155.   CPP=
  4156. fi
  4157. if test -z "$CPP"; then
  4158.   if test "${ac_cv_prog_CPP+set}" = set; then
  4159.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4160. else
  4161.       # Double quotes because CPP needs to be expanded
  4162.     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4163.     do
  4164.       ac_preproc_ok=false
  4165. for ac_c_preproc_warn_flag in '' yes
  4166. do
  4167.   # Use a header file that comes with gcc, so configuring glibc
  4168.   # with a fresh cross-compiler works.
  4169.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4170.   # <limits.h> exists even on freestanding compilers.
  4171.   # On the NeXT, cc -E runs the code through the compiler's parser,
  4172.   # not just through cpp. "Syntax error" is here to catch this case.
  4173.   cat >conftest.$ac_ext <<_ACEOF
  4174. /* confdefs.h.  */
  4175. _ACEOF
  4176. cat confdefs.h >>conftest.$ac_ext
  4177. cat >>conftest.$ac_ext <<_ACEOF
  4178. /* end confdefs.h.  */
  4179. #ifdef __STDC__
  4180. # include <limits.h>
  4181. #else
  4182. # include <assert.h>
  4183. #endif
  4184.              Syntax error
  4185. _ACEOF
  4186. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4187.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4188.   ac_status=$?
  4189.   grep -v '^ *+' conftest.er1 >conftest.err
  4190.   rm -f conftest.er1
  4191.   cat conftest.err >&5
  4192.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4193.   (exit $ac_status); } >/dev/null; then
  4194.   if test -s conftest.err; then
  4195.     ac_cpp_err=$ac_c_preproc_warn_flag
  4196.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4197.   else
  4198.     ac_cpp_err=
  4199.   fi
  4200. else
  4201.   ac_cpp_err=yes
  4202. fi
  4203. if test -z "$ac_cpp_err"; then
  4204.   :
  4205. else
  4206.   echo "$as_me: failed program was:" >&5
  4207. sed 's/^/| /' conftest.$ac_ext >&5
  4208.  
  4209.   # Broken: fails on valid input.
  4210. continue
  4211. fi
  4212. rm -f conftest.err conftest.$ac_ext
  4213.  
  4214.   # OK, works on sane cases.  Now check whether non-existent headers
  4215.   # can be detected and how.
  4216.   cat >conftest.$ac_ext <<_ACEOF
  4217. /* confdefs.h.  */
  4218. _ACEOF
  4219. cat confdefs.h >>conftest.$ac_ext
  4220. cat >>conftest.$ac_ext <<_ACEOF
  4221. /* end confdefs.h.  */
  4222. #include <ac_nonexistent.h>
  4223. _ACEOF
  4224. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4225.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4226.   ac_status=$?
  4227.   grep -v '^ *+' conftest.er1 >conftest.err
  4228.   rm -f conftest.er1
  4229.   cat conftest.err >&5
  4230.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4231.   (exit $ac_status); } >/dev/null; then
  4232.   if test -s conftest.err; then
  4233.     ac_cpp_err=$ac_c_preproc_warn_flag
  4234.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4235.   else
  4236.     ac_cpp_err=
  4237.   fi
  4238. else
  4239.   ac_cpp_err=yes
  4240. fi
  4241. if test -z "$ac_cpp_err"; then
  4242.   # Broken: success on invalid input.
  4243. continue
  4244. else
  4245.   echo "$as_me: failed program was:" >&5
  4246. sed 's/^/| /' conftest.$ac_ext >&5
  4247.  
  4248.   # Passes both tests.
  4249. ac_preproc_ok=:
  4250. break
  4251. fi
  4252. rm -f conftest.err conftest.$ac_ext
  4253.  
  4254. done
  4255. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4256. rm -f conftest.err conftest.$ac_ext
  4257. if $ac_preproc_ok; then
  4258.   break
  4259. fi
  4260.  
  4261.     done
  4262.     ac_cv_prog_CPP=$CPP
  4263.  
  4264. fi
  4265.   CPP=$ac_cv_prog_CPP
  4266. else
  4267.   ac_cv_prog_CPP=$CPP
  4268. fi
  4269. echo "$as_me:$LINENO: result: $CPP" >&5
  4270. echo "${ECHO_T}$CPP" >&6
  4271. ac_preproc_ok=false
  4272. for ac_c_preproc_warn_flag in '' yes
  4273. do
  4274.   # Use a header file that comes with gcc, so configuring glibc
  4275.   # with a fresh cross-compiler works.
  4276.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4277.   # <limits.h> exists even on freestanding compilers.
  4278.   # On the NeXT, cc -E runs the code through the compiler's parser,
  4279.   # not just through cpp. "Syntax error" is here to catch this case.
  4280.   cat >conftest.$ac_ext <<_ACEOF
  4281. /* confdefs.h.  */
  4282. _ACEOF
  4283. cat confdefs.h >>conftest.$ac_ext
  4284. cat >>conftest.$ac_ext <<_ACEOF
  4285. /* end confdefs.h.  */
  4286. #ifdef __STDC__
  4287. # include <limits.h>
  4288. #else
  4289. # include <assert.h>
  4290. #endif
  4291.              Syntax error
  4292. _ACEOF
  4293. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4294.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4295.   ac_status=$?
  4296.   grep -v '^ *+' conftest.er1 >conftest.err
  4297.   rm -f conftest.er1
  4298.   cat conftest.err >&5
  4299.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4300.   (exit $ac_status); } >/dev/null; then
  4301.   if test -s conftest.err; then
  4302.     ac_cpp_err=$ac_c_preproc_warn_flag
  4303.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4304.   else
  4305.     ac_cpp_err=
  4306.   fi
  4307. else
  4308.   ac_cpp_err=yes
  4309. fi
  4310. if test -z "$ac_cpp_err"; then
  4311.   :
  4312. else
  4313.   echo "$as_me: failed program was:" >&5
  4314. sed 's/^/| /' conftest.$ac_ext >&5
  4315.  
  4316.   # Broken: fails on valid input.
  4317. continue
  4318. fi
  4319. rm -f conftest.err conftest.$ac_ext
  4320.  
  4321.   # OK, works on sane cases.  Now check whether non-existent headers
  4322.   # can be detected and how.
  4323.   cat >conftest.$ac_ext <<_ACEOF
  4324. /* confdefs.h.  */
  4325. _ACEOF
  4326. cat confdefs.h >>conftest.$ac_ext
  4327. cat >>conftest.$ac_ext <<_ACEOF
  4328. /* end confdefs.h.  */
  4329. #include <ac_nonexistent.h>
  4330. _ACEOF
  4331. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4332.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4333.   ac_status=$?
  4334.   grep -v '^ *+' conftest.er1 >conftest.err
  4335.   rm -f conftest.er1
  4336.   cat conftest.err >&5
  4337.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4338.   (exit $ac_status); } >/dev/null; then
  4339.   if test -s conftest.err; then
  4340.     ac_cpp_err=$ac_c_preproc_warn_flag
  4341.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4342.   else
  4343.     ac_cpp_err=
  4344.   fi
  4345. else
  4346.   ac_cpp_err=yes
  4347. fi
  4348. if test -z "$ac_cpp_err"; then
  4349.   # Broken: success on invalid input.
  4350. continue
  4351. else
  4352.   echo "$as_me: failed program was:" >&5
  4353. sed 's/^/| /' conftest.$ac_ext >&5
  4354.  
  4355.   # Passes both tests.
  4356. ac_preproc_ok=:
  4357. break
  4358. fi
  4359. rm -f conftest.err conftest.$ac_ext
  4360.  
  4361. done
  4362. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4363. rm -f conftest.err conftest.$ac_ext
  4364. if $ac_preproc_ok; then
  4365.   :
  4366. else
  4367.   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4368. See \`config.log' for more details." >&5
  4369. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4370. See \`config.log' for more details." >&2;}
  4371.    { (exit 1); exit 1; }; }
  4372. fi
  4373.  
  4374. ac_ext=c
  4375. ac_cpp='$CPP $CPPFLAGS'
  4376. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4377. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4378. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4379.  
  4380.  
  4381. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4382. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  4383. if test "${ac_cv_header_stdc+set}" = set; then
  4384.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4385. else
  4386.   cat >conftest.$ac_ext <<_ACEOF
  4387. /* confdefs.h.  */
  4388. _ACEOF
  4389. cat confdefs.h >>conftest.$ac_ext
  4390. cat >>conftest.$ac_ext <<_ACEOF
  4391. /* end confdefs.h.  */
  4392. #include <stdlib.h>
  4393. #include <stdarg.h>
  4394. #include <string.h>
  4395. #include <float.h>
  4396.  
  4397. int
  4398. main ()
  4399. {
  4400.  
  4401.   ;
  4402.   return 0;
  4403. }
  4404. _ACEOF
  4405. rm -f conftest.$ac_objext
  4406. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4407.   (eval $ac_compile) 2>conftest.er1
  4408.   ac_status=$?
  4409.   grep -v '^ *+' conftest.er1 >conftest.err
  4410.   rm -f conftest.er1
  4411.   cat conftest.err >&5
  4412.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4413.   (exit $ac_status); } &&
  4414.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  4415.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4416.   (eval $ac_try) 2>&5
  4417.   ac_status=$?
  4418.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4419.   (exit $ac_status); }; } &&
  4420.      { ac_try='test -s conftest.$ac_objext'
  4421.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4422.   (eval $ac_try) 2>&5
  4423.   ac_status=$?
  4424.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4425.   (exit $ac_status); }; }; then
  4426.   ac_cv_header_stdc=yes
  4427. else
  4428.   echo "$as_me: failed program was:" >&5
  4429. sed 's/^/| /' conftest.$ac_ext >&5
  4430.  
  4431. ac_cv_header_stdc=no
  4432. fi
  4433. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4434.  
  4435. if test $ac_cv_header_stdc = yes; then
  4436.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4437.   cat >conftest.$ac_ext <<_ACEOF
  4438. /* confdefs.h.  */
  4439. _ACEOF
  4440. cat confdefs.h >>conftest.$ac_ext
  4441. cat >>conftest.$ac_ext <<_ACEOF
  4442. /* end confdefs.h.  */
  4443. #include <string.h>
  4444.  
  4445. _ACEOF
  4446. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4447.   $EGREP "memchr" >/dev/null 2>&1; then
  4448.   :
  4449. else
  4450.   ac_cv_header_stdc=no
  4451. fi
  4452. rm -f conftest*
  4453.  
  4454. fi
  4455.  
  4456. if test $ac_cv_header_stdc = yes; then
  4457.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4458.   cat >conftest.$ac_ext <<_ACEOF
  4459. /* confdefs.h.  */
  4460. _ACEOF
  4461. cat confdefs.h >>conftest.$ac_ext
  4462. cat >>conftest.$ac_ext <<_ACEOF
  4463. /* end confdefs.h.  */
  4464. #include <stdlib.h>
  4465.  
  4466. _ACEOF
  4467. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4468.   $EGREP "free" >/dev/null 2>&1; then
  4469.   :
  4470. else
  4471.   ac_cv_header_stdc=no
  4472. fi
  4473. rm -f conftest*
  4474.  
  4475. fi
  4476.  
  4477. if test $ac_cv_header_stdc = yes; then
  4478.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4479.   if test "$cross_compiling" = yes; then
  4480.   :
  4481. else
  4482.   cat >conftest.$ac_ext <<_ACEOF
  4483. /* confdefs.h.  */
  4484. _ACEOF
  4485. cat confdefs.h >>conftest.$ac_ext
  4486. cat >>conftest.$ac_ext <<_ACEOF
  4487. /* end confdefs.h.  */
  4488. #include <ctype.h>
  4489. #if ((' ' & 0x0FF) == 0x020)
  4490. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4491. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4492. #else
  4493. # define ISLOWER(c) \
  4494.            (('a' <= (c) && (c) <= 'i') \
  4495.              || ('j' <= (c) && (c) <= 'r') \
  4496.              || ('s' <= (c) && (c) <= 'z'))
  4497. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4498. #endif
  4499.  
  4500. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4501. int
  4502. main ()
  4503. {
  4504.   int i;
  4505.   for (i = 0; i < 256; i++)
  4506.     if (XOR (islower (i), ISLOWER (i))
  4507.     || toupper (i) != TOUPPER (i))
  4508.       exit(2);
  4509.   exit (0);
  4510. }
  4511. _ACEOF
  4512. rm -f conftest$ac_exeext
  4513. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4514.   (eval $ac_link) 2>&5
  4515.   ac_status=$?
  4516.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4517.   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4518.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4519.   (eval $ac_try) 2>&5
  4520.   ac_status=$?
  4521.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4522.   (exit $ac_status); }; }; then
  4523.   :
  4524. else
  4525.   echo "$as_me: program exited with status $ac_status" >&5
  4526. echo "$as_me: failed program was:" >&5
  4527. sed 's/^/| /' conftest.$ac_ext >&5
  4528.  
  4529. ( exit $ac_status )
  4530. ac_cv_header_stdc=no
  4531. fi
  4532. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4533. fi
  4534. fi
  4535. fi
  4536. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4537. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  4538. if test $ac_cv_header_stdc = yes; then
  4539.  
  4540. cat >>confdefs.h <<\_ACEOF
  4541. #define STDC_HEADERS 1
  4542. _ACEOF
  4543.  
  4544. fi
  4545.  
  4546. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4547.  
  4548.  
  4549.  
  4550.  
  4551.  
  4552.  
  4553.  
  4554.  
  4555.  
  4556. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4557.           inttypes.h stdint.h unistd.h
  4558. do
  4559. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4560. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4561. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4562. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4563.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4564. else
  4565.   cat >conftest.$ac_ext <<_ACEOF
  4566. /* confdefs.h.  */
  4567. _ACEOF
  4568. cat confdefs.h >>conftest.$ac_ext
  4569. cat >>conftest.$ac_ext <<_ACEOF
  4570. /* end confdefs.h.  */
  4571. $ac_includes_default
  4572.  
  4573. #include <$ac_header>
  4574. _ACEOF
  4575. rm -f conftest.$ac_objext
  4576. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4577.   (eval $ac_compile) 2>conftest.er1
  4578.   ac_status=$?
  4579.   grep -v '^ *+' conftest.er1 >conftest.err
  4580.   rm -f conftest.er1
  4581.   cat conftest.err >&5
  4582.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4583.   (exit $ac_status); } &&
  4584.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  4585.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4586.   (eval $ac_try) 2>&5
  4587.   ac_status=$?
  4588.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4589.   (exit $ac_status); }; } &&
  4590.      { ac_try='test -s conftest.$ac_objext'
  4591.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4592.   (eval $ac_try) 2>&5
  4593.   ac_status=$?
  4594.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4595.   (exit $ac_status); }; }; then
  4596.   eval "$as_ac_Header=yes"
  4597. else
  4598.   echo "$as_me: failed program was:" >&5
  4599. sed 's/^/| /' conftest.$ac_ext >&5
  4600.  
  4601. eval "$as_ac_Header=no"
  4602. fi
  4603. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4604. fi
  4605. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4606. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4607. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4608.   cat >>confdefs.h <<_ACEOF
  4609. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4610. _ACEOF
  4611.  
  4612. fi
  4613.  
  4614. done
  4615.  
  4616.  
  4617.  
  4618. for ac_header in dlfcn.h
  4619. do
  4620. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4621. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4622.   echo "$as_me:$LINENO: checking for $ac_header" >&5
  4623. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4624. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4625.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4626. fi
  4627. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4628. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4629. else
  4630.   # Is the header compilable?
  4631. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4632. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4633. cat >conftest.$ac_ext <<_ACEOF
  4634. /* confdefs.h.  */
  4635. _ACEOF
  4636. cat confdefs.h >>conftest.$ac_ext
  4637. cat >>conftest.$ac_ext <<_ACEOF
  4638. /* end confdefs.h.  */
  4639. $ac_includes_default
  4640. #include <$ac_header>
  4641. _ACEOF
  4642. rm -f conftest.$ac_objext
  4643. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4644.   (eval $ac_compile) 2>conftest.er1
  4645.   ac_status=$?
  4646.   grep -v '^ *+' conftest.er1 >conftest.err
  4647.   rm -f conftest.er1
  4648.   cat conftest.err >&5
  4649.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4650.   (exit $ac_status); } &&
  4651.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  4652.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4653.   (eval $ac_try) 2>&5
  4654.   ac_status=$?
  4655.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4656.   (exit $ac_status); }; } &&
  4657.      { ac_try='test -s conftest.$ac_objext'
  4658.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4659.   (eval $ac_try) 2>&5
  4660.   ac_status=$?
  4661.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4662.   (exit $ac_status); }; }; then
  4663.   ac_header_compiler=yes
  4664. else
  4665.   echo "$as_me: failed program was:" >&5
  4666. sed 's/^/| /' conftest.$ac_ext >&5
  4667.  
  4668. ac_header_compiler=no
  4669. fi
  4670. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4671. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4672. echo "${ECHO_T}$ac_header_compiler" >&6
  4673.  
  4674. # Is the header present?
  4675. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4676. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4677. cat >conftest.$ac_ext <<_ACEOF
  4678. /* confdefs.h.  */
  4679. _ACEOF
  4680. cat confdefs.h >>conftest.$ac_ext
  4681. cat >>conftest.$ac_ext <<_ACEOF
  4682. /* end confdefs.h.  */
  4683. #include <$ac_header>
  4684. _ACEOF
  4685. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4686.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4687.   ac_status=$?
  4688.   grep -v '^ *+' conftest.er1 >conftest.err
  4689.   rm -f conftest.er1
  4690.   cat conftest.err >&5
  4691.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4692.   (exit $ac_status); } >/dev/null; then
  4693.   if test -s conftest.err; then
  4694.     ac_cpp_err=$ac_c_preproc_warn_flag
  4695.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4696.   else
  4697.     ac_cpp_err=
  4698.   fi
  4699. else
  4700.   ac_cpp_err=yes
  4701. fi
  4702. if test -z "$ac_cpp_err"; then
  4703.   ac_header_preproc=yes
  4704. else
  4705.   echo "$as_me: failed program was:" >&5
  4706. sed 's/^/| /' conftest.$ac_ext >&5
  4707.  
  4708.   ac_header_preproc=no
  4709. fi
  4710. rm -f conftest.err conftest.$ac_ext
  4711. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4712. echo "${ECHO_T}$ac_header_preproc" >&6
  4713.  
  4714. # So?  What about this header?
  4715. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4716.   yes:no: )
  4717.     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4718. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4719.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4720. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4721.     ac_header_preproc=yes
  4722.     ;;
  4723.   no:yes:* )
  4724.     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4725. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4726.     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
  4727. echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
  4728.     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4729. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4730.     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
  4731. echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
  4732.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4733. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4734.     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4735. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4736.     (
  4737.       cat <<\_ASBOX
  4738. ## ------------------------------------------------------------------- ##
  4739. ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=GIMP ##
  4740. ## ------------------------------------------------------------------- ##
  4741. _ASBOX
  4742.     ) |
  4743.       sed "s/^/$as_me: WARNING:     /" >&2
  4744.     ;;
  4745. esac
  4746. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4747. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4748. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4749.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4750. else
  4751.   eval "$as_ac_Header=\$ac_header_preproc"
  4752. fi
  4753. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4754. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4755.  
  4756. fi
  4757. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4758.   cat >>confdefs.h <<_ACEOF
  4759. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4760. _ACEOF
  4761.  
  4762. fi
  4763.  
  4764. done
  4765.  
  4766. ac_ext=cc
  4767. ac_cpp='$CXXCPP $CPPFLAGS'
  4768. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4769. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4770. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4771. if test -n "$ac_tool_prefix"; then
  4772.   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  4773.   do
  4774.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4775. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4776. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4777. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4778. if test "${ac_cv_prog_CXX+set}" = set; then
  4779.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4780. else
  4781.   if test -n "$CXX"; then
  4782.   ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4783. else
  4784. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4785. for as_dir in $PATH
  4786. do
  4787.   IFS=$as_save_IFS
  4788.   test -z "$as_dir" && as_dir=.
  4789.   for ac_exec_ext in '' $ac_executable_extensions; do
  4790.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4791.     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4792.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4793.     break 2
  4794.   fi
  4795. done
  4796. done
  4797.  
  4798. fi
  4799. fi
  4800. CXX=$ac_cv_prog_CXX
  4801. if test -n "$CXX"; then
  4802.   echo "$as_me:$LINENO: result: $CXX" >&5
  4803. echo "${ECHO_T}$CXX" >&6
  4804. else
  4805.   echo "$as_me:$LINENO: result: no" >&5
  4806. echo "${ECHO_T}no" >&6
  4807. fi
  4808.  
  4809.     test -n "$CXX" && break
  4810.   done
  4811. fi
  4812. if test -z "$CXX"; then
  4813.   ac_ct_CXX=$CXX
  4814.   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  4815. do
  4816.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4817. set dummy $ac_prog; ac_word=$2
  4818. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4819. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4820. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  4821.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4822. else
  4823.   if test -n "$ac_ct_CXX"; then
  4824.   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4825. else
  4826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4827. for as_dir in $PATH
  4828. do
  4829.   IFS=$as_save_IFS
  4830.   test -z "$as_dir" && as_dir=.
  4831.   for ac_exec_ext in '' $ac_executable_extensions; do
  4832.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4833.     ac_cv_prog_ac_ct_CXX="$ac_prog"
  4834.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4835.     break 2
  4836.   fi
  4837. done
  4838. done
  4839.  
  4840. fi
  4841. fi
  4842. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4843. if test -n "$ac_ct_CXX"; then
  4844.   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  4845. echo "${ECHO_T}$ac_ct_CXX" >&6
  4846. else
  4847.   echo "$as_me:$LINENO: result: no" >&5
  4848. echo "${ECHO_T}no" >&6
  4849. fi
  4850.  
  4851.   test -n "$ac_ct_CXX" && break
  4852. done
  4853. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  4854.  
  4855.   CXX=$ac_ct_CXX
  4856. fi
  4857.  
  4858.  
  4859. # Provide some information about the compiler.
  4860. echo "$as_me:$LINENO:" \
  4861.      "checking for C++ compiler version" >&5
  4862. ac_compiler=`set X $ac_compile; echo $2`
  4863. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  4864.   (eval $ac_compiler --version </dev/null >&5) 2>&5
  4865.   ac_status=$?
  4866.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4867.   (exit $ac_status); }
  4868. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  4869.   (eval $ac_compiler -v </dev/null >&5) 2>&5
  4870.   ac_status=$?
  4871.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4872.   (exit $ac_status); }
  4873. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  4874.   (eval $ac_compiler -V </dev/null >&5) 2>&5
  4875.   ac_status=$?
  4876.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4877.   (exit $ac_status); }
  4878.  
  4879. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  4880. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  4881. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  4882.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4883. else
  4884.   cat >conftest.$ac_ext <<_ACEOF
  4885. /* confdefs.h.  */
  4886. _ACEOF
  4887. cat confdefs.h >>conftest.$ac_ext
  4888. cat >>conftest.$ac_ext <<_ACEOF
  4889. /* end confdefs.h.  */
  4890.  
  4891. int
  4892. main ()
  4893. {
  4894. #ifndef __GNUC__
  4895.        choke me
  4896. #endif
  4897.  
  4898.   ;
  4899.   return 0;
  4900. }
  4901. _ACEOF
  4902. rm -f conftest.$ac_objext
  4903. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4904.   (eval $ac_compile) 2>conftest.er1
  4905.   ac_status=$?
  4906.   grep -v '^ *+' conftest.er1 >conftest.err
  4907.   rm -f conftest.er1
  4908.   cat conftest.err >&5
  4909.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4910.   (exit $ac_status); } &&
  4911.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  4912.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4913.   (eval $ac_try) 2>&5
  4914.   ac_status=$?
  4915.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4916.   (exit $ac_status); }; } &&
  4917.      { ac_try='test -s conftest.$ac_objext'
  4918.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4919.   (eval $ac_try) 2>&5
  4920.   ac_status=$?
  4921.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4922.   (exit $ac_status); }; }; then
  4923.   ac_compiler_gnu=yes
  4924. else
  4925.   echo "$as_me: failed program was:" >&5
  4926. sed 's/^/| /' conftest.$ac_ext >&5
  4927.  
  4928. ac_compiler_gnu=no
  4929. fi
  4930. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4931. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4932.  
  4933. fi
  4934. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  4935. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  4936. GXX=`test $ac_compiler_gnu = yes && echo yes`
  4937. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4938. ac_save_CXXFLAGS=$CXXFLAGS
  4939. CXXFLAGS="-g"
  4940. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  4941. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  4942. if test "${ac_cv_prog_cxx_g+set}" = set; then
  4943.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4944. else
  4945.   cat >conftest.$ac_ext <<_ACEOF
  4946. /* confdefs.h.  */
  4947. _ACEOF
  4948. cat confdefs.h >>conftest.$ac_ext
  4949. cat >>conftest.$ac_ext <<_ACEOF
  4950. /* end confdefs.h.  */
  4951.  
  4952. int
  4953. main ()
  4954. {
  4955.  
  4956.   ;
  4957.   return 0;
  4958. }
  4959. _ACEOF
  4960. rm -f conftest.$ac_objext
  4961. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4962.   (eval $ac_compile) 2>conftest.er1
  4963.   ac_status=$?
  4964.   grep -v '^ *+' conftest.er1 >conftest.err
  4965.   rm -f conftest.er1
  4966.   cat conftest.err >&5
  4967.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4968.   (exit $ac_status); } &&
  4969.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  4970.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4971.   (eval $ac_try) 2>&5
  4972.   ac_status=$?
  4973.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4974.   (exit $ac_status); }; } &&
  4975.      { ac_try='test -s conftest.$ac_objext'
  4976.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4977.   (eval $ac_try) 2>&5
  4978.   ac_status=$?
  4979.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4980.   (exit $ac_status); }; }; then
  4981.   ac_cv_prog_cxx_g=yes
  4982. else
  4983.   echo "$as_me: failed program was:" >&5
  4984. sed 's/^/| /' conftest.$ac_ext >&5
  4985.  
  4986. ac_cv_prog_cxx_g=no
  4987. fi
  4988. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4989. fi
  4990. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  4991. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  4992. if test "$ac_test_CXXFLAGS" = set; then
  4993.   CXXFLAGS=$ac_save_CXXFLAGS
  4994. elif test $ac_cv_prog_cxx_g = yes; then
  4995.   if test "$GXX" = yes; then
  4996.     CXXFLAGS="-g -O2"
  4997.   else
  4998.     CXXFLAGS="-g"
  4999.   fi
  5000. else
  5001.   if test "$GXX" = yes; then
  5002.     CXXFLAGS="-O2"
  5003.   else
  5004.     CXXFLAGS=
  5005.   fi
  5006. fi
  5007. for ac_declaration in \
  5008.    '' \
  5009.    'extern "C" void std::exit (int) throw (); using std::exit;' \
  5010.    'extern "C" void std::exit (int); using std::exit;' \
  5011.    'extern "C" void exit (int) throw ();' \
  5012.    'extern "C" void exit (int);' \
  5013.    'void exit (int);'
  5014. do
  5015.   cat >conftest.$ac_ext <<_ACEOF
  5016. /* confdefs.h.  */
  5017. _ACEOF
  5018. cat confdefs.h >>conftest.$ac_ext
  5019. cat >>conftest.$ac_ext <<_ACEOF
  5020. /* end confdefs.h.  */
  5021. $ac_declaration
  5022. #include <stdlib.h>
  5023. int
  5024. main ()
  5025. {
  5026. exit (42);
  5027.   ;
  5028.   return 0;
  5029. }
  5030. _ACEOF
  5031. rm -f conftest.$ac_objext
  5032. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5033.   (eval $ac_compile) 2>conftest.er1
  5034.   ac_status=$?
  5035.   grep -v '^ *+' conftest.er1 >conftest.err
  5036.   rm -f conftest.er1
  5037.   cat conftest.err >&5
  5038.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5039.   (exit $ac_status); } &&
  5040.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  5041.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5042.   (eval $ac_try) 2>&5
  5043.   ac_status=$?
  5044.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5045.   (exit $ac_status); }; } &&
  5046.      { ac_try='test -s conftest.$ac_objext'
  5047.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5048.   (eval $ac_try) 2>&5
  5049.   ac_status=$?
  5050.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5051.   (exit $ac_status); }; }; then
  5052.   :
  5053. else
  5054.   echo "$as_me: failed program was:" >&5
  5055. sed 's/^/| /' conftest.$ac_ext >&5
  5056.  
  5057. continue
  5058. fi
  5059. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5060.   cat >conftest.$ac_ext <<_ACEOF
  5061. /* confdefs.h.  */
  5062. _ACEOF
  5063. cat confdefs.h >>conftest.$ac_ext
  5064. cat >>conftest.$ac_ext <<_ACEOF
  5065. /* end confdefs.h.  */
  5066. $ac_declaration
  5067. int
  5068. main ()
  5069. {
  5070. exit (42);
  5071.   ;
  5072.   return 0;
  5073. }
  5074. _ACEOF
  5075. rm -f conftest.$ac_objext
  5076. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5077.   (eval $ac_compile) 2>conftest.er1
  5078.   ac_status=$?
  5079.   grep -v '^ *+' conftest.er1 >conftest.err
  5080.   rm -f conftest.er1
  5081.   cat conftest.err >&5
  5082.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5083.   (exit $ac_status); } &&
  5084.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  5085.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5086.   (eval $ac_try) 2>&5
  5087.   ac_status=$?
  5088.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5089.   (exit $ac_status); }; } &&
  5090.      { ac_try='test -s conftest.$ac_objext'
  5091.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5092.   (eval $ac_try) 2>&5
  5093.   ac_status=$?
  5094.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5095.   (exit $ac_status); }; }; then
  5096.   break
  5097. else
  5098.   echo "$as_me: failed program was:" >&5
  5099. sed 's/^/| /' conftest.$ac_ext >&5
  5100.  
  5101. fi
  5102. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5103. done
  5104. rm -f conftest*
  5105. if test -n "$ac_declaration"; then
  5106.   echo '#ifdef __cplusplus' >>confdefs.h
  5107.   echo $ac_declaration      >>confdefs.h
  5108.   echo '#endif'             >>confdefs.h
  5109. fi
  5110.  
  5111. ac_ext=cc
  5112. ac_cpp='$CXXCPP $CPPFLAGS'
  5113. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5114. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5115. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5116.  
  5117. depcc="$CXX"  am_compiler_list=
  5118.  
  5119. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5120. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  5121. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  5122.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5123. else
  5124.   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5125.   # We make a subdir and do the tests there.  Otherwise we can end up
  5126.   # making bogus files that we don't know about and never remove.  For
  5127.   # instance it was reported that on HP-UX the gcc test will end up
  5128.   # making a dummy file named `D' -- because `-MD' means `put the output
  5129.   # in D'.
  5130.   mkdir conftest.dir
  5131.   # Copy depcomp to subdir because otherwise we won't find it if we're
  5132.   # using a relative directory.
  5133.   cp "$am_depcomp" conftest.dir
  5134.   cd conftest.dir
  5135.   # We will build objects and dependencies in a subdirectory because
  5136.   # it helps to detect inapplicable dependency modes.  For instance
  5137.   # both Tru64's cc and ICC support -MD to output dependencies as a
  5138.   # side effect of compilation, but ICC will put the dependencies in
  5139.   # the current directory while Tru64 will put them in the object
  5140.   # directory.
  5141.   mkdir sub
  5142.  
  5143.   am_cv_CXX_dependencies_compiler_type=none
  5144.   if test "$am_compiler_list" = ""; then
  5145.      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5146.   fi
  5147.   for depmode in $am_compiler_list; do
  5148.     # Setup a source with many dependencies, because some compilers
  5149.     # like to wrap large dependency lists on column 80 (with \), and
  5150.     # we should not choose a depcomp mode which is confused by this.
  5151.     #
  5152.     # We need to recreate these files for each test, as the compiler may
  5153.     # overwrite some of them when testing with obscure command lines.
  5154.     # This happens at least with the AIX C compiler.
  5155.     : > sub/conftest.c
  5156.     for i in 1 2 3 4 5 6; do
  5157.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5158.       : > sub/conftst$i.h
  5159.     done
  5160.     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5161.  
  5162.     case $depmode in
  5163.     nosideeffect)
  5164.       # after this tag, mechanisms are not by side-effect, so they'll
  5165.       # only be used when explicitly requested
  5166.       if test "x$enable_dependency_tracking" = xyes; then
  5167.     continue
  5168.       else
  5169.     break
  5170.       fi
  5171.       ;;
  5172.     none) break ;;
  5173.     esac
  5174.     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5175.     # mode.  It turns out that the SunPro C++ compiler does not properly
  5176.     # handle `-M -o', and we need to detect this.
  5177.     if depmode=$depmode \
  5178.        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5179.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5180.        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5181.          >/dev/null 2>conftest.err &&
  5182.        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5183.        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5184.        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5185.       # icc doesn't choke on unknown options, it will just issue warnings
  5186.       # (even with -Werror).  So we grep stderr for any message
  5187.       # that says an option was ignored.
  5188.       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
  5189.         am_cv_CXX_dependencies_compiler_type=$depmode
  5190.         break
  5191.       fi
  5192.     fi
  5193.   done
  5194.  
  5195.   cd ..
  5196.   rm -rf conftest.dir
  5197. else
  5198.   am_cv_CXX_dependencies_compiler_type=none
  5199. fi
  5200.  
  5201. fi
  5202. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  5203. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  5204. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  5205.  
  5206.  
  5207.  
  5208. if
  5209.   test "x$enable_dependency_tracking" != xno \
  5210.   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  5211.   am__fastdepCXX_TRUE=
  5212.   am__fastdepCXX_FALSE='#'
  5213. else
  5214.   am__fastdepCXX_TRUE='#'
  5215.   am__fastdepCXX_FALSE=
  5216. fi
  5217.  
  5218.  
  5219. ac_ext=cc
  5220. ac_cpp='$CXXCPP $CPPFLAGS'
  5221. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5222. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5223. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5224. echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  5225. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  5226. if test -z "$CXXCPP"; then
  5227.   if test "${ac_cv_prog_CXXCPP+set}" = set; then
  5228.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5229. else
  5230.       # Double quotes because CXXCPP needs to be expanded
  5231.     for CXXCPP in "$CXX -E" "/lib/cpp"
  5232.     do
  5233.       ac_preproc_ok=false
  5234. for ac_cxx_preproc_warn_flag in '' yes
  5235. do
  5236.   # Use a header file that comes with gcc, so configuring glibc
  5237.   # with a fresh cross-compiler works.
  5238.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5239.   # <limits.h> exists even on freestanding compilers.
  5240.   # On the NeXT, cc -E runs the code through the compiler's parser,
  5241.   # not just through cpp. "Syntax error" is here to catch this case.
  5242.   cat >conftest.$ac_ext <<_ACEOF
  5243. /* confdefs.h.  */
  5244. _ACEOF
  5245. cat confdefs.h >>conftest.$ac_ext
  5246. cat >>conftest.$ac_ext <<_ACEOF
  5247. /* end confdefs.h.  */
  5248. #ifdef __STDC__
  5249. # include <limits.h>
  5250. #else
  5251. # include <assert.h>
  5252. #endif
  5253.              Syntax error
  5254. _ACEOF
  5255. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5256.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5257.   ac_status=$?
  5258.   grep -v '^ *+' conftest.er1 >conftest.err
  5259.   rm -f conftest.er1
  5260.   cat conftest.err >&5
  5261.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5262.   (exit $ac_status); } >/dev/null; then
  5263.   if test -s conftest.err; then
  5264.     ac_cpp_err=$ac_cxx_preproc_warn_flag
  5265.     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  5266.   else
  5267.     ac_cpp_err=
  5268.   fi
  5269. else
  5270.   ac_cpp_err=yes
  5271. fi
  5272. if test -z "$ac_cpp_err"; then
  5273.   :
  5274. else
  5275.   echo "$as_me: failed program was:" >&5
  5276. sed 's/^/| /' conftest.$ac_ext >&5
  5277.  
  5278.   # Broken: fails on valid input.
  5279. continue
  5280. fi
  5281. rm -f conftest.err conftest.$ac_ext
  5282.  
  5283.   # OK, works on sane cases.  Now check whether non-existent headers
  5284.   # can be detected and how.
  5285.   cat >conftest.$ac_ext <<_ACEOF
  5286. /* confdefs.h.  */
  5287. _ACEOF
  5288. cat confdefs.h >>conftest.$ac_ext
  5289. cat >>conftest.$ac_ext <<_ACEOF
  5290. /* end confdefs.h.  */
  5291. #include <ac_nonexistent.h>
  5292. _ACEOF
  5293. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5294.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5295.   ac_status=$?
  5296.   grep -v '^ *+' conftest.er1 >conftest.err
  5297.   rm -f conftest.er1
  5298.   cat conftest.err >&5
  5299.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5300.   (exit $ac_status); } >/dev/null; then
  5301.   if test -s conftest.err; then
  5302.     ac_cpp_err=$ac_cxx_preproc_warn_flag
  5303.     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  5304.   else
  5305.     ac_cpp_err=
  5306.   fi
  5307. else
  5308.   ac_cpp_err=yes
  5309. fi
  5310. if test -z "$ac_cpp_err"; then
  5311.   # Broken: success on invalid input.
  5312. continue
  5313. else
  5314.   echo "$as_me: failed program was:" >&5
  5315. sed 's/^/| /' conftest.$ac_ext >&5
  5316.  
  5317.   # Passes both tests.
  5318. ac_preproc_ok=:
  5319. break
  5320. fi
  5321. rm -f conftest.err conftest.$ac_ext
  5322.  
  5323. done
  5324. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5325. rm -f conftest.err conftest.$ac_ext
  5326. if $ac_preproc_ok; then
  5327.   break
  5328. fi
  5329.  
  5330.     done
  5331.     ac_cv_prog_CXXCPP=$CXXCPP
  5332.  
  5333. fi
  5334.   CXXCPP=$ac_cv_prog_CXXCPP
  5335. else
  5336.   ac_cv_prog_CXXCPP=$CXXCPP
  5337. fi
  5338. echo "$as_me:$LINENO: result: $CXXCPP" >&5
  5339. echo "${ECHO_T}$CXXCPP" >&6
  5340. ac_preproc_ok=false
  5341. for ac_cxx_preproc_warn_flag in '' yes
  5342. do
  5343.   # Use a header file that comes with gcc, so configuring glibc
  5344.   # with a fresh cross-compiler works.
  5345.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5346.   # <limits.h> exists even on freestanding compilers.
  5347.   # On the NeXT, cc -E runs the code through the compiler's parser,
  5348.   # not just through cpp. "Syntax error" is here to catch this case.
  5349.   cat >conftest.$ac_ext <<_ACEOF
  5350. /* confdefs.h.  */
  5351. _ACEOF
  5352. cat confdefs.h >>conftest.$ac_ext
  5353. cat >>conftest.$ac_ext <<_ACEOF
  5354. /* end confdefs.h.  */
  5355. #ifdef __STDC__
  5356. # include <limits.h>
  5357. #else
  5358. # include <assert.h>
  5359. #endif
  5360.              Syntax error
  5361. _ACEOF
  5362. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5363.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5364.   ac_status=$?
  5365.   grep -v '^ *+' conftest.er1 >conftest.err
  5366.   rm -f conftest.er1
  5367.   cat conftest.err >&5
  5368.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5369.   (exit $ac_status); } >/dev/null; then
  5370.   if test -s conftest.err; then
  5371.     ac_cpp_err=$ac_cxx_preproc_warn_flag
  5372.     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  5373.   else
  5374.     ac_cpp_err=
  5375.   fi
  5376. else
  5377.   ac_cpp_err=yes
  5378. fi
  5379. if test -z "$ac_cpp_err"; then
  5380.   :
  5381. else
  5382.   echo "$as_me: failed program was:" >&5
  5383. sed 's/^/| /' conftest.$ac_ext >&5
  5384.  
  5385.   # Broken: fails on valid input.
  5386. continue
  5387. fi
  5388. rm -f conftest.err conftest.$ac_ext
  5389.  
  5390.   # OK, works on sane cases.  Now check whether non-existent headers
  5391.   # can be detected and how.
  5392.   cat >conftest.$ac_ext <<_ACEOF
  5393. /* confdefs.h.  */
  5394. _ACEOF
  5395. cat confdefs.h >>conftest.$ac_ext
  5396. cat >>conftest.$ac_ext <<_ACEOF
  5397. /* end confdefs.h.  */
  5398. #include <ac_nonexistent.h>
  5399. _ACEOF
  5400. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5401.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5402.   ac_status=$?
  5403.   grep -v '^ *+' conftest.er1 >conftest.err
  5404.   rm -f conftest.er1
  5405.   cat conftest.err >&5
  5406.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5407.   (exit $ac_status); } >/dev/null; then
  5408.   if test -s conftest.err; then
  5409.     ac_cpp_err=$ac_cxx_preproc_warn_flag
  5410.     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  5411.   else
  5412.     ac_cpp_err=
  5413.   fi
  5414. else
  5415.   ac_cpp_err=yes
  5416. fi
  5417. if test -z "$ac_cpp_err"; then
  5418.   # Broken: success on invalid input.
  5419. continue
  5420. else
  5421.   echo "$as_me: failed program was:" >&5
  5422. sed 's/^/| /' conftest.$ac_ext >&5
  5423.  
  5424.   # Passes both tests.
  5425. ac_preproc_ok=:
  5426. break
  5427. fi
  5428. rm -f conftest.err conftest.$ac_ext
  5429.  
  5430. done
  5431. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5432. rm -f conftest.err conftest.$ac_ext
  5433. if $ac_preproc_ok; then
  5434.   :
  5435. else
  5436.   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5437. See \`config.log' for more details." >&5
  5438. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5439. See \`config.log' for more details." >&2;}
  5440.    { (exit 1); exit 1; }; }
  5441. fi
  5442.  
  5443. ac_ext=cc
  5444. ac_cpp='$CXXCPP $CPPFLAGS'
  5445. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5446. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5447. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5448.  
  5449.  
  5450. ac_ext=f
  5451. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  5452. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5453. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  5454. if test -n "$ac_tool_prefix"; then
  5455.   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  5456.   do
  5457.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5458. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5459. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5460. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5461. if test "${ac_cv_prog_F77+set}" = set; then
  5462.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5463. else
  5464.   if test -n "$F77"; then
  5465.   ac_cv_prog_F77="$F77" # Let the user override the test.
  5466. else
  5467. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5468. for as_dir in $PATH
  5469. do
  5470.   IFS=$as_save_IFS
  5471.   test -z "$as_dir" && as_dir=.
  5472.   for ac_exec_ext in '' $ac_executable_extensions; do
  5473.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5474.     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  5475.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5476.     break 2
  5477.   fi
  5478. done
  5479. done
  5480.  
  5481. fi
  5482. fi
  5483. F77=$ac_cv_prog_F77
  5484. if test -n "$F77"; then
  5485.   echo "$as_me:$LINENO: result: $F77" >&5
  5486. echo "${ECHO_T}$F77" >&6
  5487. else
  5488.   echo "$as_me:$LINENO: result: no" >&5
  5489. echo "${ECHO_T}no" >&6
  5490. fi
  5491.  
  5492.     test -n "$F77" && break
  5493.   done
  5494. fi
  5495. if test -z "$F77"; then
  5496.   ac_ct_F77=$F77
  5497.   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  5498. do
  5499.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  5500. set dummy $ac_prog; ac_word=$2
  5501. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5502. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5503. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  5504.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5505. else
  5506.   if test -n "$ac_ct_F77"; then
  5507.   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  5508. else
  5509. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5510. for as_dir in $PATH
  5511. do
  5512.   IFS=$as_save_IFS
  5513.   test -z "$as_dir" && as_dir=.
  5514.   for ac_exec_ext in '' $ac_executable_extensions; do
  5515.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5516.     ac_cv_prog_ac_ct_F77="$ac_prog"
  5517.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5518.     break 2
  5519.   fi
  5520. done
  5521. done
  5522.  
  5523. fi
  5524. fi
  5525. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  5526. if test -n "$ac_ct_F77"; then
  5527.   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  5528. echo "${ECHO_T}$ac_ct_F77" >&6
  5529. else
  5530.   echo "$as_me:$LINENO: result: no" >&5
  5531. echo "${ECHO_T}no" >&6
  5532. fi
  5533.  
  5534.   test -n "$ac_ct_F77" && break
  5535. done
  5536.  
  5537.   F77=$ac_ct_F77
  5538. fi
  5539.  
  5540.  
  5541. # Provide some information about the compiler.
  5542. echo "$as_me:5542:" \
  5543.      "checking for Fortran 77 compiler version" >&5
  5544. ac_compiler=`set X $ac_compile; echo $2`
  5545. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  5546.   (eval $ac_compiler --version </dev/null >&5) 2>&5
  5547.   ac_status=$?
  5548.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5549.   (exit $ac_status); }
  5550. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  5551.   (eval $ac_compiler -v </dev/null >&5) 2>&5
  5552.   ac_status=$?
  5553.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5554.   (exit $ac_status); }
  5555. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  5556.   (eval $ac_compiler -V </dev/null >&5) 2>&5
  5557.   ac_status=$?
  5558.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5559.   (exit $ac_status); }
  5560. rm -f a.out
  5561.  
  5562. # If we don't use `.F' as extension, the preprocessor is not run on the
  5563. # input file.  (Note that this only needs to work for GNU compilers.)
  5564. ac_save_ext=$ac_ext
  5565. ac_ext=F
  5566. echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  5567. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
  5568. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  5569.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5570. else
  5571.   cat >conftest.$ac_ext <<_ACEOF
  5572.       program main
  5573. #ifndef __GNUC__
  5574.        choke me
  5575. #endif
  5576.  
  5577.       end
  5578. _ACEOF
  5579. rm -f conftest.$ac_objext
  5580. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5581.   (eval $ac_compile) 2>conftest.er1
  5582.   ac_status=$?
  5583.   grep -v '^ *+' conftest.er1 >conftest.err
  5584.   rm -f conftest.er1
  5585.   cat conftest.err >&5
  5586.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5587.   (exit $ac_status); } &&
  5588.      { ac_try='test -z "$ac_f77_werror_flag"             || test ! -s conftest.err'
  5589.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5590.   (eval $ac_try) 2>&5
  5591.   ac_status=$?
  5592.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5593.   (exit $ac_status); }; } &&
  5594.      { ac_try='test -s conftest.$ac_objext'
  5595.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5596.   (eval $ac_try) 2>&5
  5597.   ac_status=$?
  5598.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5599.   (exit $ac_status); }; }; then
  5600.   ac_compiler_gnu=yes
  5601. else
  5602.   echo "$as_me: failed program was:" >&5
  5603. sed 's/^/| /' conftest.$ac_ext >&5
  5604.  
  5605. ac_compiler_gnu=no
  5606. fi
  5607. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5608. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  5609.  
  5610. fi
  5611. echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  5612. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
  5613. ac_ext=$ac_save_ext
  5614. ac_test_FFLAGS=${FFLAGS+set}
  5615. ac_save_FFLAGS=$FFLAGS
  5616. FFLAGS=
  5617. echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  5618. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
  5619. if test "${ac_cv_prog_f77_g+set}" = set; then
  5620.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5621. else
  5622.   FFLAGS=-g
  5623. cat >conftest.$ac_ext <<_ACEOF
  5624.       program main
  5625.  
  5626.       end
  5627. _ACEOF
  5628. rm -f conftest.$ac_objext
  5629. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5630.   (eval $ac_compile) 2>conftest.er1
  5631.   ac_status=$?
  5632.   grep -v '^ *+' conftest.er1 >conftest.err
  5633.   rm -f conftest.er1
  5634.   cat conftest.err >&5
  5635.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5636.   (exit $ac_status); } &&
  5637.      { ac_try='test -z "$ac_f77_werror_flag"             || test ! -s conftest.err'
  5638.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5639.   (eval $ac_try) 2>&5
  5640.   ac_status=$?
  5641.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5642.   (exit $ac_status); }; } &&
  5643.      { ac_try='test -s conftest.$ac_objext'
  5644.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5645.   (eval $ac_try) 2>&5
  5646.   ac_status=$?
  5647.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5648.   (exit $ac_status); }; }; then
  5649.   ac_cv_prog_f77_g=yes
  5650. else
  5651.   echo "$as_me: failed program was:" >&5
  5652. sed 's/^/| /' conftest.$ac_ext >&5
  5653.  
  5654. ac_cv_prog_f77_g=no
  5655. fi
  5656. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5657.  
  5658. fi
  5659. echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5660. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
  5661. if test "$ac_test_FFLAGS" = set; then
  5662.   FFLAGS=$ac_save_FFLAGS
  5663. elif test $ac_cv_prog_f77_g = yes; then
  5664.   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5665.     FFLAGS="-g -O2"
  5666.   else
  5667.     FFLAGS="-g"
  5668.   fi
  5669. else
  5670.   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5671.     FFLAGS="-O2"
  5672.   else
  5673.     FFLAGS=
  5674.   fi
  5675. fi
  5676.  
  5677. G77=`test $ac_compiler_gnu = yes && echo yes`
  5678. ac_ext=c
  5679. ac_cpp='$CPP $CPPFLAGS'
  5680. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5681. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5682. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5683.  
  5684.  
  5685.  
  5686. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  5687.  
  5688. # find the maximum length of command line arguments
  5689. echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5690. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  5691. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5692.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5693. else
  5694.     i=0
  5695.   teststring="ABCD"
  5696.  
  5697.   case $build_os in
  5698.   msdosdjgpp*)
  5699.     # On DJGPP, this test can blow up pretty badly due to problems in libc
  5700.     # (any single argument exceeding 2000 bytes causes a buffer overrun
  5701.     # during glob expansion).  Even if it were fixed, the result of this
  5702.     # check would be larger than it should be.
  5703.     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
  5704.     ;;
  5705.  
  5706.   gnu*)
  5707.     # Under GNU Hurd, this test is not required because there is
  5708.     # no limit to the length of command line arguments.
  5709.     # Libtool will interpret -1 as no limit whatsoever
  5710.     lt_cv_sys_max_cmd_len=-1;
  5711.     ;;
  5712.  
  5713.   cygwin* | mingw*)
  5714.     # On Win9x/ME, this test blows up -- it succeeds, but takes
  5715.     # about 5 minutes as the teststring grows exponentially.
  5716.     # Worse, since 9x/ME are not pre-emptively multitasking,
  5717.     # you end up with a "frozen" computer, even though with patience
  5718.     # the test eventually succeeds (with a max line length of 256k).
  5719.     # Instead, let's just punt: use the minimum linelength reported by
  5720.     # all of the supported platforms: 8192 (on NT/2K/XP).
  5721.     lt_cv_sys_max_cmd_len=8192;
  5722.     ;;
  5723.  
  5724.   amigaos*)
  5725.     # On AmigaOS with pdksh, this test takes hours, literally.
  5726.     # So we just punt and use a minimum line length of 8192.
  5727.     lt_cv_sys_max_cmd_len=8192;
  5728.     ;;
  5729.  
  5730.  *)
  5731.     # If test is not a shell built-in, we'll probably end up computing a
  5732.     # maximum length that is only half of the actual maximum length, but
  5733.     # we can't tell.
  5734.     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  5735.            = "XX$teststring") >/dev/null 2>&1 &&
  5736.         new_result=`expr "X$teststring" : ".*" 2>&1` &&
  5737.         lt_cv_sys_max_cmd_len=$new_result &&
  5738.         test $i != 17 # 1/2 MB should be enough
  5739.     do
  5740.       i=`expr $i + 1`
  5741.       teststring=$teststring$teststring
  5742.     done
  5743.     teststring=
  5744.     # Add a significant safety factor because C++ compilers can tack on massive
  5745.     # amounts of additional arguments before passing them to the linker.
  5746.     # It appears as though 1/2 is a usable value.
  5747.     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5748.     ;;
  5749.   esac
  5750.  
  5751. fi
  5752.  
  5753. if test -n $lt_cv_sys_max_cmd_len ; then
  5754.   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5755. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  5756. else
  5757.   echo "$as_me:$LINENO: result: none" >&5
  5758. echo "${ECHO_T}none" >&6
  5759. fi
  5760.  
  5761.  
  5762.  
  5763.  
  5764. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5765. echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5766. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
  5767. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5768.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5769. else
  5770.  
  5771. # These are sane defaults that work on at least a few old systems.
  5772. # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
  5773.  
  5774. # Character class describing NM global symbol codes.
  5775. symcode='[BCDEGRST]'
  5776.  
  5777. # Regexp to match symbols that can be accessed directly from C.
  5778. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5779.  
  5780. # Transform the above into a raw symbol and a C symbol.
  5781. symxfrm='\1 \2\3 \3'
  5782.  
  5783. # Transform an extracted symbol line into a proper C declaration
  5784. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5785.  
  5786. # Transform an extracted symbol line into symbol name and symbol address
  5787. 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'"
  5788.  
  5789. # Define system-specific variables.
  5790. case $host_os in
  5791. aix*)
  5792.   symcode='[BCDT]'
  5793.   ;;
  5794. cygwin* | mingw* | pw32*)
  5795.   symcode='[ABCDGISTW]'
  5796.   ;;
  5797. hpux*) # Its linker distinguishes data from code symbols
  5798.   if test "$host_cpu" = ia64; then
  5799.     symcode='[ABCDEGRST]'
  5800.   fi
  5801.   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5802.   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'"
  5803.   ;;
  5804. irix* | nonstopux*)
  5805.   symcode='[BCDEGRST]'
  5806.   ;;
  5807. osf*)
  5808.   symcode='[BCDEGQRST]'
  5809.   ;;
  5810. solaris* | sysv5*)
  5811.   symcode='[BDRT]'
  5812.   ;;
  5813. sysv4)
  5814.   symcode='[DFNSTU]'
  5815.   ;;
  5816. esac
  5817.  
  5818. # Handle CRLF in mingw tool chain
  5819. opt_cr=
  5820. case $build_os in
  5821. mingw*)
  5822.   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5823.   ;;
  5824. esac
  5825.  
  5826. # If we're using GNU nm, then use its standard symbol codes.
  5827. case `$NM -V 2>&1` in
  5828. *GNU* | *'with BFD'*)
  5829.   symcode='[ABCDGIRSTW]' ;;
  5830. esac
  5831.  
  5832. # Try without a prefix undercore, then with it.
  5833. for ac_symprfx in "" "_"; do
  5834.  
  5835.   # Write the raw and C identifiers.
  5836.   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[     ]\($symcode$symcode*\)[     ][     ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  5837.  
  5838.   # Check to see that the pipe works correctly.
  5839.   pipe_works=no
  5840.  
  5841.   rm -f conftest*
  5842.   cat > conftest.$ac_ext <<EOF
  5843. #ifdef __cplusplus
  5844. extern "C" {
  5845. #endif
  5846. char nm_test_var;
  5847. void nm_test_func(){}
  5848. #ifdef __cplusplus
  5849. }
  5850. #endif
  5851. int main(){nm_test_var='a';nm_test_func();return(0);}
  5852. EOF
  5853.  
  5854.   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5855.   (eval $ac_compile) 2>&5
  5856.   ac_status=$?
  5857.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5858.   (exit $ac_status); }; then
  5859.     # Now try to grab the symbols.
  5860.     nlist=conftest.nm
  5861.     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5862.   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5863.   ac_status=$?
  5864.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5865.   (exit $ac_status); } && test -s "$nlist"; then
  5866.       # Try sorting and uniquifying the output.
  5867.       if sort "$nlist" | uniq > "$nlist"T; then
  5868.     mv -f "$nlist"T "$nlist"
  5869.       else
  5870.     rm -f "$nlist"T
  5871.       fi
  5872.  
  5873.       # Make sure that we snagged all the symbols we need.
  5874.       if grep ' nm_test_var$' "$nlist" >/dev/null; then
  5875.     if grep ' nm_test_func$' "$nlist" >/dev/null; then
  5876.       cat <<EOF > conftest.$ac_ext
  5877. #ifdef __cplusplus
  5878. extern "C" {
  5879. #endif
  5880.  
  5881. EOF
  5882.       # Now generate the symbol file.
  5883.       eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  5884.  
  5885.       cat <<EOF >> conftest.$ac_ext
  5886. #if defined (__STDC__) && __STDC__
  5887. # define lt_ptr_t void *
  5888. #else
  5889. # define lt_ptr_t char *
  5890. # define const
  5891. #endif
  5892.  
  5893. /* The mapping between symbol names and symbols. */
  5894. const struct {
  5895.   const char *name;
  5896.   lt_ptr_t address;
  5897. }
  5898. lt_preloaded_symbols[] =
  5899. {
  5900. EOF
  5901.       $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  5902.       cat <<\EOF >> conftest.$ac_ext
  5903.   {0, (lt_ptr_t) 0}
  5904. };
  5905.  
  5906. #ifdef __cplusplus
  5907. }
  5908. #endif
  5909. EOF
  5910.       # Now try linking the two files.
  5911.       mv conftest.$ac_objext conftstm.$ac_objext
  5912.       lt_save_LIBS="$LIBS"
  5913.       lt_save_CFLAGS="$CFLAGS"
  5914.       LIBS="conftstm.$ac_objext"
  5915.       CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5916.       if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5917.   (eval $ac_link) 2>&5
  5918.   ac_status=$?
  5919.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5920.   (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5921.         pipe_works=yes
  5922.       fi
  5923.       LIBS="$lt_save_LIBS"
  5924.       CFLAGS="$lt_save_CFLAGS"
  5925.     else
  5926.       echo "cannot find nm_test_func in $nlist" >&5
  5927.     fi
  5928.       else
  5929.     echo "cannot find nm_test_var in $nlist" >&5
  5930.       fi
  5931.     else
  5932.       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5933.     fi
  5934.   else
  5935.     echo "$progname: failed program was:" >&5
  5936.     cat conftest.$ac_ext >&5
  5937.   fi
  5938.   rm -f conftest* conftst*
  5939.  
  5940.   # Do not use the global_symbol_pipe unless it works.
  5941.   if test "$pipe_works" = yes; then
  5942.     break
  5943.   else
  5944.     lt_cv_sys_global_symbol_pipe=
  5945.   fi
  5946. done
  5947.  
  5948. fi
  5949.  
  5950. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5951.   lt_cv_sys_global_symbol_to_cdecl=
  5952. fi
  5953. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5954.   echo "$as_me:$LINENO: result: failed" >&5
  5955. echo "${ECHO_T}failed" >&6
  5956. else
  5957.   echo "$as_me:$LINENO: result: ok" >&5
  5958. echo "${ECHO_T}ok" >&6
  5959. fi
  5960.  
  5961. echo "$as_me:$LINENO: checking for objdir" >&5
  5962. echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  5963. if test "${lt_cv_objdir+set}" = set; then
  5964.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5965. else
  5966.   rm -f .libs 2>/dev/null
  5967. mkdir .libs 2>/dev/null
  5968. if test -d .libs; then
  5969.   lt_cv_objdir=.libs
  5970. else
  5971.   # MS-DOS does not allow filenames that begin with a dot.
  5972.   lt_cv_objdir=_libs
  5973. fi
  5974. rmdir .libs 2>/dev/null
  5975. fi
  5976. echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  5977. echo "${ECHO_T}$lt_cv_objdir" >&6
  5978. objdir=$lt_cv_objdir
  5979.  
  5980.  
  5981.  
  5982.  
  5983.  
  5984. case $host_os in
  5985. aix3*)
  5986.   # AIX sometimes has problems with the GCC collect2 program.  For some
  5987.   # reason, if we set the COLLECT_NAMES environment variable, the problems
  5988.   # vanish in a puff of smoke.
  5989.   if test "X${COLLECT_NAMES+set}" != Xset; then
  5990.     COLLECT_NAMES=
  5991.     export COLLECT_NAMES
  5992.   fi
  5993.   ;;
  5994. esac
  5995.  
  5996. # Sed substitution that helps us do robust quoting.  It backslashifies
  5997. # metacharacters that are still active within double-quoted strings.
  5998. Xsed='sed -e s/^X//'
  5999. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  6000.  
  6001. # Same as above, but do not quote variable references.
  6002. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  6003.  
  6004. # Sed substitution to delay expansion of an escaped shell variable in a
  6005. # double_quote_subst'ed string.
  6006. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6007.  
  6008. # Sed substitution to avoid accidental globbing in evaled expressions
  6009. no_glob_subst='s/\*/\\\*/g'
  6010.  
  6011. # Constants:
  6012. rm="rm -f"
  6013.  
  6014. # Global variables:
  6015. default_ofile=libtool
  6016. can_build_shared=yes
  6017.  
  6018. # All known linkers require a `.a' archive for static linking (except M$VC,
  6019. # which needs '.lib').
  6020. libext=a
  6021. ltmain="$ac_aux_dir/ltmain.sh"
  6022. ofile="$default_ofile"
  6023. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6024.  
  6025. if test -n "$ac_tool_prefix"; then
  6026.   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6027. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6028. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6029. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6030. if test "${ac_cv_prog_AR+set}" = set; then
  6031.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6032. else
  6033.   if test -n "$AR"; then
  6034.   ac_cv_prog_AR="$AR" # Let the user override the test.
  6035. else
  6036. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6037. for as_dir in $PATH
  6038. do
  6039.   IFS=$as_save_IFS
  6040.   test -z "$as_dir" && as_dir=.
  6041.   for ac_exec_ext in '' $ac_executable_extensions; do
  6042.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6043.     ac_cv_prog_AR="${ac_tool_prefix}ar"
  6044.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6045.     break 2
  6046.   fi
  6047. done
  6048. done
  6049.  
  6050. fi
  6051. fi
  6052. AR=$ac_cv_prog_AR
  6053. if test -n "$AR"; then
  6054.   echo "$as_me:$LINENO: result: $AR" >&5
  6055. echo "${ECHO_T}$AR" >&6
  6056. else
  6057.   echo "$as_me:$LINENO: result: no" >&5
  6058. echo "${ECHO_T}no" >&6
  6059. fi
  6060.  
  6061. fi
  6062. if test -z "$ac_cv_prog_AR"; then
  6063.   ac_ct_AR=$AR
  6064.   # Extract the first word of "ar", so it can be a program name with args.
  6065. set dummy ar; ac_word=$2
  6066. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6067. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6068. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  6069.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6070. else
  6071.   if test -n "$ac_ct_AR"; then
  6072.   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6073. else
  6074. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6075. for as_dir in $PATH
  6076. do
  6077.   IFS=$as_save_IFS
  6078.   test -z "$as_dir" && as_dir=.
  6079.   for ac_exec_ext in '' $ac_executable_extensions; do
  6080.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6081.     ac_cv_prog_ac_ct_AR="ar"
  6082.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6083.     break 2
  6084.   fi
  6085. done
  6086. done
  6087.  
  6088.   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
  6089. fi
  6090. fi
  6091. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6092. if test -n "$ac_ct_AR"; then
  6093.   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  6094. echo "${ECHO_T}$ac_ct_AR" >&6
  6095. else
  6096.   echo "$as_me:$LINENO: result: no" >&5
  6097. echo "${ECHO_T}no" >&6
  6098. fi
  6099.  
  6100.   AR=$ac_ct_AR
  6101. else
  6102.   AR="$ac_cv_prog_AR"
  6103. fi
  6104.  
  6105. if test -n "$ac_tool_prefix"; then
  6106.   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6107. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6108. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6109. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6110. if test "${ac_cv_prog_RANLIB+set}" = set; then
  6111.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6112. else
  6113.   if test -n "$RANLIB"; then
  6114.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6115. else
  6116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6117. for as_dir in $PATH
  6118. do
  6119.   IFS=$as_save_IFS
  6120.   test -z "$as_dir" && as_dir=.
  6121.   for ac_exec_ext in '' $ac_executable_extensions; do
  6122.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6123.     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6124.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6125.     break 2
  6126.   fi
  6127. done
  6128. done
  6129.  
  6130. fi
  6131. fi
  6132. RANLIB=$ac_cv_prog_RANLIB
  6133. if test -n "$RANLIB"; then
  6134.   echo "$as_me:$LINENO: result: $RANLIB" >&5
  6135. echo "${ECHO_T}$RANLIB" >&6
  6136. else
  6137.   echo "$as_me:$LINENO: result: no" >&5
  6138. echo "${ECHO_T}no" >&6
  6139. fi
  6140.  
  6141. fi
  6142. if test -z "$ac_cv_prog_RANLIB"; then
  6143.   ac_ct_RANLIB=$RANLIB
  6144.   # Extract the first word of "ranlib", so it can be a program name with args.
  6145. set dummy ranlib; ac_word=$2
  6146. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6147. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6148. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  6149.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6150. else
  6151.   if test -n "$ac_ct_RANLIB"; then
  6152.   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6153. else
  6154. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6155. for as_dir in $PATH
  6156. do
  6157.   IFS=$as_save_IFS
  6158.   test -z "$as_dir" && as_dir=.
  6159.   for ac_exec_ext in '' $ac_executable_extensions; do
  6160.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6161.     ac_cv_prog_ac_ct_RANLIB="ranlib"
  6162.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6163.     break 2
  6164.   fi
  6165. done
  6166. done
  6167.  
  6168.   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  6169. fi
  6170. fi
  6171. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6172. if test -n "$ac_ct_RANLIB"; then
  6173.   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  6174. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  6175. else
  6176.   echo "$as_me:$LINENO: result: no" >&5
  6177. echo "${ECHO_T}no" >&6
  6178. fi
  6179.  
  6180.   RANLIB=$ac_ct_RANLIB
  6181. else
  6182.   RANLIB="$ac_cv_prog_RANLIB"
  6183. fi
  6184.  
  6185. if test -n "$ac_tool_prefix"; then
  6186.   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6187. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6188. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6189. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6190. if test "${ac_cv_prog_STRIP+set}" = set; then
  6191.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6192. else
  6193.   if test -n "$STRIP"; then
  6194.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6195. else
  6196. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6197. for as_dir in $PATH
  6198. do
  6199.   IFS=$as_save_IFS
  6200.   test -z "$as_dir" && as_dir=.
  6201.   for ac_exec_ext in '' $ac_executable_extensions; do
  6202.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6203.     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6204.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6205.     break 2
  6206.   fi
  6207. done
  6208. done
  6209.  
  6210. fi
  6211. fi
  6212. STRIP=$ac_cv_prog_STRIP
  6213. if test -n "$STRIP"; then
  6214.   echo "$as_me:$LINENO: result: $STRIP" >&5
  6215. echo "${ECHO_T}$STRIP" >&6
  6216. else
  6217.   echo "$as_me:$LINENO: result: no" >&5
  6218. echo "${ECHO_T}no" >&6
  6219. fi
  6220.  
  6221. fi
  6222. if test -z "$ac_cv_prog_STRIP"; then
  6223.   ac_ct_STRIP=$STRIP
  6224.   # Extract the first word of "strip", so it can be a program name with args.
  6225. set dummy strip; ac_word=$2
  6226. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6227. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6228. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  6229.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6230. else
  6231.   if test -n "$ac_ct_STRIP"; then
  6232.   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6233. else
  6234. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6235. for as_dir in $PATH
  6236. do
  6237.   IFS=$as_save_IFS
  6238.   test -z "$as_dir" && as_dir=.
  6239.   for ac_exec_ext in '' $ac_executable_extensions; do
  6240.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6241.     ac_cv_prog_ac_ct_STRIP="strip"
  6242.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6243.     break 2
  6244.   fi
  6245. done
  6246. done
  6247.  
  6248.   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  6249. fi
  6250. fi
  6251. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6252. if test -n "$ac_ct_STRIP"; then
  6253.   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  6254. echo "${ECHO_T}$ac_ct_STRIP" >&6
  6255. else
  6256.   echo "$as_me:$LINENO: result: no" >&5
  6257. echo "${ECHO_T}no" >&6
  6258. fi
  6259.  
  6260.   STRIP=$ac_ct_STRIP
  6261. else
  6262.   STRIP="$ac_cv_prog_STRIP"
  6263. fi
  6264.  
  6265.  
  6266. old_CC="$CC"
  6267. old_CFLAGS="$CFLAGS"
  6268.  
  6269. # Set sane defaults for various variables
  6270. test -z "$AR" && AR=ar
  6271. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6272. test -z "$AS" && AS=as
  6273. test -z "$CC" && CC=cc
  6274. test -z "$LTCC" && LTCC=$CC
  6275. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6276. test -z "$LD" && LD=ld
  6277. test -z "$LN_S" && LN_S="ln -s"
  6278. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6279. test -z "$NM" && NM=nm
  6280. test -z "$SED" && SED=sed
  6281. test -z "$OBJDUMP" && OBJDUMP=objdump
  6282. test -z "$RANLIB" && RANLIB=:
  6283. test -z "$STRIP" && STRIP=:
  6284. test -z "$ac_objext" && ac_objext=o
  6285.  
  6286. # Determine commands to create old-style static archives.
  6287. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  6288. old_postinstall_cmds='chmod 644 $oldlib'
  6289. old_postuninstall_cmds=
  6290.  
  6291. if test -n "$RANLIB"; then
  6292.   case $host_os in
  6293.   openbsd*)
  6294.     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  6295.     ;;
  6296.   *)
  6297.     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  6298.     ;;
  6299.   esac
  6300.   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6301. fi
  6302.  
  6303. # Only perform the check for file, if the check method requires it
  6304. case $deplibs_check_method in
  6305. file_magic*)
  6306.   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6307.     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  6308. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  6309. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6310.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6311. else
  6312.   case $MAGIC_CMD in
  6313. [\\/*] |  ?:[\\/]*)
  6314.   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6315.   ;;
  6316. *)
  6317.   lt_save_MAGIC_CMD="$MAGIC_CMD"
  6318.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6319.   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6320.   for ac_dir in $ac_dummy; do
  6321.     IFS="$lt_save_ifs"
  6322.     test -z "$ac_dir" && ac_dir=.
  6323.     if test -f $ac_dir/${ac_tool_prefix}file; then
  6324.       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6325.       if test -n "$file_magic_test_file"; then
  6326.     case $deplibs_check_method in
  6327.     "file_magic "*)
  6328.       file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  6329.       MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6330.       if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6331.         $EGREP "$file_magic_regex" > /dev/null; then
  6332.         :
  6333.       else
  6334.         cat <<EOF 1>&2
  6335.  
  6336. *** Warning: the command libtool uses to detect shared libraries,
  6337. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6338. *** The result is that libtool may fail to recognize shared libraries
  6339. *** as such.  This will affect the creation of libtool libraries that
  6340. *** depend on shared libraries, but programs linked with such libtool
  6341. *** libraries will work regardless of this problem.  Nevertheless, you
  6342. *** may want to report the problem to your system manager and/or to
  6343. *** bug-libtool@gnu.org
  6344.  
  6345. EOF
  6346.       fi ;;
  6347.     esac
  6348.       fi
  6349.       break
  6350.     fi
  6351.   done
  6352.   IFS="$lt_save_ifs"
  6353.   MAGIC_CMD="$lt_save_MAGIC_CMD"
  6354.   ;;
  6355. esac
  6356. fi
  6357.  
  6358. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6359. if test -n "$MAGIC_CMD"; then
  6360.   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6361. echo "${ECHO_T}$MAGIC_CMD" >&6
  6362. else
  6363.   echo "$as_me:$LINENO: result: no" >&5
  6364. echo "${ECHO_T}no" >&6
  6365. fi
  6366.  
  6367. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6368.   if test -n "$ac_tool_prefix"; then
  6369.     echo "$as_me:$LINENO: checking for file" >&5
  6370. echo $ECHO_N "checking for file... $ECHO_C" >&6
  6371. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6372.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6373. else
  6374.   case $MAGIC_CMD in
  6375. [\\/*] |  ?:[\\/]*)
  6376.   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6377.   ;;
  6378. *)
  6379.   lt_save_MAGIC_CMD="$MAGIC_CMD"
  6380.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6381.   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6382.   for ac_dir in $ac_dummy; do
  6383.     IFS="$lt_save_ifs"
  6384.     test -z "$ac_dir" && ac_dir=.
  6385.     if test -f $ac_dir/file; then
  6386.       lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6387.       if test -n "$file_magic_test_file"; then
  6388.     case $deplibs_check_method in
  6389.     "file_magic "*)
  6390.       file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  6391.       MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6392.       if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6393.         $EGREP "$file_magic_regex" > /dev/null; then
  6394.         :
  6395.       else
  6396.         cat <<EOF 1>&2
  6397.  
  6398. *** Warning: the command libtool uses to detect shared libraries,
  6399. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6400. *** The result is that libtool may fail to recognize shared libraries
  6401. *** as such.  This will affect the creation of libtool libraries that
  6402. *** depend on shared libraries, but programs linked with such libtool
  6403. *** libraries will work regardless of this problem.  Nevertheless, you
  6404. *** may want to report the problem to your system manager and/or to
  6405. *** bug-libtool@gnu.org
  6406.  
  6407. EOF
  6408.       fi ;;
  6409.     esac
  6410.       fi
  6411.       break
  6412.     fi
  6413.   done
  6414.   IFS="$lt_save_ifs"
  6415.   MAGIC_CMD="$lt_save_MAGIC_CMD"
  6416.   ;;
  6417. esac
  6418. fi
  6419.  
  6420. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6421. if test -n "$MAGIC_CMD"; then
  6422.   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6423. echo "${ECHO_T}$MAGIC_CMD" >&6
  6424. else
  6425.   echo "$as_me:$LINENO: result: no" >&5
  6426. echo "${ECHO_T}no" >&6
  6427. fi
  6428.  
  6429.   else
  6430.     MAGIC_CMD=:
  6431.   fi
  6432. fi
  6433.  
  6434.   fi
  6435.   ;;
  6436. esac
  6437.  
  6438. enable_dlopen=no
  6439. enable_win32_dll=yes
  6440.  
  6441. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  6442. if test "${enable_libtool_lock+set}" = set; then
  6443.   enableval="$enable_libtool_lock"
  6444.  
  6445. fi;
  6446. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6447.  
  6448.  
  6449. # Check whether --with-pic or --without-pic was given.
  6450. if test "${with_pic+set}" = set; then
  6451.   withval="$with_pic"
  6452.   pic_mode="$withval"
  6453. else
  6454.   pic_mode=default
  6455. fi;
  6456. test -z "$pic_mode" && pic_mode=default
  6457.  
  6458. # Use C for the default configuration in the libtool script
  6459. tagname=
  6460. lt_save_CC="$CC"
  6461. ac_ext=c
  6462. ac_cpp='$CPP $CPPFLAGS'
  6463. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6464. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6465. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6466.  
  6467.  
  6468. # Source file extension for C test sources.
  6469. ac_ext=c
  6470.  
  6471. # Object file extension for compiled C test sources.
  6472. objext=o
  6473. objext=$objext
  6474.  
  6475. # Code to be used in simple compile tests
  6476. lt_simple_compile_test_code="int some_variable = 0;\n"
  6477.  
  6478. # Code to be used in simple link tests
  6479. lt_simple_link_test_code='int main(){return(0);}\n'
  6480.  
  6481.  
  6482. # If no C compiler was specified, use CC.
  6483. LTCC=${LTCC-"$CC"}
  6484.  
  6485. # Allow CC to be a program name with arguments.
  6486. compiler=$CC
  6487.  
  6488.  
  6489. #
  6490. # Check for any special shared library compilation flags.
  6491. #
  6492. lt_prog_cc_shlib=
  6493. if test "$GCC" = no; then
  6494.   case $host_os in
  6495.   sco3.2v5*)
  6496.     lt_prog_cc_shlib='-belf'
  6497.     ;;
  6498.   esac
  6499. fi
  6500. if test -n "$lt_prog_cc_shlib"; then
  6501.   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
  6502. echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
  6503.   if echo "$old_CC $old_CFLAGS " | grep "[     ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
  6504.   else
  6505.     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  6506. echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  6507.     lt_cv_prog_cc_can_build_shared=no
  6508.   fi
  6509. fi
  6510.  
  6511.  
  6512. #
  6513. # Check to make sure the static flag actually works.
  6514. #
  6515. echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
  6516. echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
  6517. if test "${lt_prog_compiler_static_works+set}" = set; then
  6518.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6519. else
  6520.   lt_prog_compiler_static_works=no
  6521.    save_LDFLAGS="$LDFLAGS"
  6522.    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
  6523.    printf "$lt_simple_link_test_code" > conftest.$ac_ext
  6524.    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6525.      # The compiler can only warn and ignore the option if not recognized
  6526.      # So say no if there are warnings
  6527.      if test -s conftest.err; then
  6528.        # Append any errors to the config.log.
  6529.        cat conftest.err 1>&5
  6530.      else
  6531.        lt_prog_compiler_static_works=yes
  6532.      fi
  6533.    fi
  6534.    $rm conftest*
  6535.    LDFLAGS="$save_LDFLAGS"
  6536.  
  6537. fi
  6538. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  6539. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
  6540.  
  6541. if test x"$lt_prog_compiler_static_works" = xyes; then
  6542.     :
  6543. else
  6544.     lt_prog_compiler_static=
  6545. fi
  6546.  
  6547.  
  6548.  
  6549.  
  6550. lt_prog_compiler_no_builtin_flag=
  6551.  
  6552. if test "$GCC" = yes; then
  6553.   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6554.  
  6555.  
  6556. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6557. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  6558. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  6559.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6560. else
  6561.   lt_cv_prog_compiler_rtti_exceptions=no
  6562.   ac_outfile=conftest.$ac_objext
  6563.    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6564.    lt_compiler_flag="-fno-rtti -fno-exceptions"
  6565.    # Insert the option either (1) after the last *FLAGS variable, or
  6566.    # (2) before a word containing "conftest.", or (3) at the end.
  6567.    # Note that $ac_compile itself does not contain backslashes and begins
  6568.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  6569.    # The option is referenced via a variable to avoid confusing sed.
  6570.    lt_compile=`echo "$ac_compile" | $SED \
  6571.    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  6572.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6573.    -e 's:$: $lt_compiler_flag:'`
  6574.    (eval echo "\"\$as_me:6574: $lt_compile\"" >&5)
  6575.    (eval "$lt_compile" 2>conftest.err)
  6576.    ac_status=$?
  6577.    cat conftest.err >&5
  6578.    echo "$as_me:6578: \$? = $ac_status" >&5
  6579.    if (exit $ac_status) && test -s "$ac_outfile"; then
  6580.      # The compiler can only warn and ignore the option if not recognized
  6581.      # So say no if there are warnings
  6582.      if test ! -s conftest.err; then
  6583.        lt_cv_prog_compiler_rtti_exceptions=yes
  6584.      fi
  6585.    fi
  6586.    $rm conftest*
  6587.  
  6588. fi
  6589. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6590. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  6591.  
  6592. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6593.     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6594. else
  6595.     :
  6596. fi
  6597.  
  6598. fi
  6599.  
  6600. lt_prog_compiler_wl=
  6601. lt_prog_compiler_pic=
  6602. lt_prog_compiler_static=
  6603.  
  6604. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  6605. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  6606.  
  6607.   if test "$GCC" = yes; then
  6608.     lt_prog_compiler_wl='-Wl,'
  6609.     lt_prog_compiler_static='-static'
  6610.  
  6611.     case $host_os in
  6612.       aix*)
  6613.       # All AIX code is PIC.
  6614.       if test "$host_cpu" = ia64; then
  6615.     # AIX 5 now supports IA64 processor
  6616.     lt_prog_compiler_static='-Bstatic'
  6617.       fi
  6618.       ;;
  6619.  
  6620.     amigaos*)
  6621.       # FIXME: we need at least 68020 code to build shared libraries, but
  6622.       # adding the `-m68020' flag to GCC prevents building anything better,
  6623.       # like `-m68040'.
  6624.       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6625.       ;;
  6626.  
  6627.     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6628.       # PIC is the default for these OSes.
  6629.       ;;
  6630.  
  6631.     mingw* | pw32* | os2*)
  6632.       # This hack is so that the source file can tell whether it is being
  6633.       # built for inclusion in a dll (and should export symbols for example).
  6634.       lt_prog_compiler_pic='-DDLL_EXPORT'
  6635.       ;;
  6636.  
  6637.     darwin* | rhapsody*)
  6638.       # PIC is the default on this platform
  6639.       # Common symbols not allowed in MH_DYLIB files
  6640.       lt_prog_compiler_pic='-fno-common'
  6641.       ;;
  6642.  
  6643.     msdosdjgpp*)
  6644.       # Just because we use GCC doesn't mean we suddenly get shared libraries
  6645.       # on systems that don't support them.
  6646.       lt_prog_compiler_can_build_shared=no
  6647.       enable_shared=no
  6648.       ;;
  6649.  
  6650.     sysv4*MP*)
  6651.       if test -d /usr/nec; then
  6652.     lt_prog_compiler_pic=-Kconform_pic
  6653.       fi
  6654.       ;;
  6655.  
  6656.     hpux*)
  6657.       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6658.       # not for PA HP-UX.
  6659.       case "$host_cpu" in
  6660.       hppa*64*|ia64*)
  6661.     # +Z the default
  6662.     ;;
  6663.       *)
  6664.     lt_prog_compiler_pic='-fPIC'
  6665.     ;;
  6666.       esac
  6667.       ;;
  6668.  
  6669.     *)
  6670.       lt_prog_compiler_pic='-fPIC'
  6671.       ;;
  6672.     esac
  6673.   else
  6674.     # PORTME Check for flag to pass linker flags through the system compiler.
  6675.     case $host_os in
  6676.     aix*)
  6677.       lt_prog_compiler_wl='-Wl,'
  6678.       if test "$host_cpu" = ia64; then
  6679.     # AIX 5 now supports IA64 processor
  6680.     lt_prog_compiler_static='-Bstatic'
  6681.       else
  6682.     lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6683.       fi
  6684.       ;;
  6685.  
  6686.     mingw* | pw32* | os2*)
  6687.       # This hack is so that the source file can tell whether it is being
  6688.       # built for inclusion in a dll (and should export symbols for example).
  6689.       lt_prog_compiler_pic='-DDLL_EXPORT'
  6690.       ;;
  6691.  
  6692.     hpux9* | hpux10* | hpux11*)
  6693.       lt_prog_compiler_wl='-Wl,'
  6694.       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6695.       # not for PA HP-UX.
  6696.       case "$host_cpu" in
  6697.       hppa*64*|ia64*)
  6698.     # +Z the default
  6699.     ;;
  6700.       *)
  6701.     lt_prog_compiler_pic='+Z'
  6702.     ;;
  6703.       esac
  6704.       # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6705.       lt_prog_compiler_static='${wl}-a ${wl}archive'
  6706.       ;;
  6707.  
  6708.     irix5* | irix6* | nonstopux*)
  6709.       lt_prog_compiler_wl='-Wl,'
  6710.       # PIC (with -KPIC) is the default.
  6711.       lt_prog_compiler_static='-non_shared'
  6712.       ;;
  6713.  
  6714.     newsos6)
  6715.       lt_prog_compiler_pic='-KPIC'
  6716.       lt_prog_compiler_static='-Bstatic'
  6717.       ;;
  6718.  
  6719.     linux*)
  6720.       case $CC in
  6721.       icc* | ecc*)
  6722.     lt_prog_compiler_wl='-Wl,'
  6723.     lt_prog_compiler_pic='-KPIC'
  6724.     lt_prog_compiler_static='-static'
  6725.         ;;
  6726.       ccc*)
  6727.         lt_prog_compiler_wl='-Wl,'
  6728.         # All Alpha code is PIC.
  6729.         lt_prog_compiler_static='-non_shared'
  6730.         ;;
  6731.       esac
  6732.       ;;
  6733.  
  6734.     osf3* | osf4* | osf5*)
  6735.       lt_prog_compiler_wl='-Wl,'
  6736.       # All OSF/1 code is PIC.
  6737.       lt_prog_compiler_static='-non_shared'
  6738.       ;;
  6739.  
  6740.     sco3.2v5*)
  6741.       lt_prog_compiler_pic='-Kpic'
  6742.       lt_prog_compiler_static='-dn'
  6743.       ;;
  6744.  
  6745.     solaris*)
  6746.       lt_prog_compiler_wl='-Wl,'
  6747.       lt_prog_compiler_pic='-KPIC'
  6748.       lt_prog_compiler_static='-Bstatic'
  6749.       ;;
  6750.  
  6751.     sunos4*)
  6752.       lt_prog_compiler_wl='-Qoption ld '
  6753.       lt_prog_compiler_pic='-PIC'
  6754.       lt_prog_compiler_static='-Bstatic'
  6755.       ;;
  6756.  
  6757.     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  6758.       lt_prog_compiler_wl='-Wl,'
  6759.       lt_prog_compiler_pic='-KPIC'
  6760.       lt_prog_compiler_static='-Bstatic'
  6761.       ;;
  6762.  
  6763.     sysv4*MP*)
  6764.       if test -d /usr/nec ;then
  6765.     lt_prog_compiler_pic='-Kconform_pic'
  6766.     lt_prog_compiler_static='-Bstatic'
  6767.       fi
  6768.       ;;
  6769.  
  6770.     uts4*)
  6771.       lt_prog_compiler_pic='-pic'
  6772.       lt_prog_compiler_static='-Bstatic'
  6773.       ;;
  6774.  
  6775.     *)
  6776.       lt_prog_compiler_can_build_shared=no
  6777.       ;;
  6778.     esac
  6779.   fi
  6780.  
  6781. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6782. echo "${ECHO_T}$lt_prog_compiler_pic" >&6
  6783.  
  6784. #
  6785. # Check to make sure the PIC flag actually works.
  6786. #
  6787. if test -n "$lt_prog_compiler_pic"; then
  6788.  
  6789. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6790. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
  6791. if test "${lt_prog_compiler_pic_works+set}" = set; then
  6792.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6793. else
  6794.   lt_prog_compiler_pic_works=no
  6795.   ac_outfile=conftest.$ac_objext
  6796.    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6797.    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6798.    # Insert the option either (1) after the last *FLAGS variable, or
  6799.    # (2) before a word containing "conftest.", or (3) at the end.
  6800.    # Note that $ac_compile itself does not contain backslashes and begins
  6801.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  6802.    # The option is referenced via a variable to avoid confusing sed.
  6803.    lt_compile=`echo "$ac_compile" | $SED \
  6804.    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  6805.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6806.    -e 's:$: $lt_compiler_flag:'`
  6807.    (eval echo "\"\$as_me:6807: $lt_compile\"" >&5)
  6808.    (eval "$lt_compile" 2>conftest.err)
  6809.    ac_status=$?
  6810.    cat conftest.err >&5
  6811.    echo "$as_me:6811: \$? = $ac_status" >&5
  6812.    if (exit $ac_status) && test -s "$ac_outfile"; then
  6813.      # The compiler can only warn and ignore the option if not recognized
  6814.      # So say no if there are warnings
  6815.      if test ! -s conftest.err; then
  6816.        lt_prog_compiler_pic_works=yes
  6817.      fi
  6818.    fi
  6819.    $rm conftest*
  6820.  
  6821. fi
  6822. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  6823. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
  6824.  
  6825. if test x"$lt_prog_compiler_pic_works" = xyes; then
  6826.     case $lt_prog_compiler_pic in
  6827.      "" | " "*) ;;
  6828.      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6829.      esac
  6830. else
  6831.     lt_prog_compiler_pic=
  6832.      lt_prog_compiler_can_build_shared=no
  6833. fi
  6834.  
  6835. fi
  6836. case "$host_os" in
  6837.   # For platforms which do not support PIC, -DPIC is meaningless:
  6838.   *djgpp*)
  6839.     lt_prog_compiler_pic=
  6840.     ;;
  6841.   *)
  6842.     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6843.     ;;
  6844. esac
  6845.  
  6846. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6847. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  6848. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6849.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6850. else
  6851.   lt_cv_prog_compiler_c_o=no
  6852.    $rm -r conftest 2>/dev/null
  6853.    mkdir conftest
  6854.    cd conftest
  6855.    mkdir out
  6856.    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6857.  
  6858.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  6859.    # Insert the option either (1) after the last *FLAGS variable, or
  6860.    # (2) before a word containing "conftest.", or (3) at the end.
  6861.    # Note that $ac_compile itself does not contain backslashes and begins
  6862.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  6863.    lt_compile=`echo "$ac_compile" | $SED \
  6864.    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  6865.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6866.    -e 's:$: $lt_compiler_flag:'`
  6867.    (eval echo "\"\$as_me:6867: $lt_compile\"" >&5)
  6868.    (eval "$lt_compile" 2>out/conftest.err)
  6869.    ac_status=$?
  6870.    cat out/conftest.err >&5
  6871.    echo "$as_me:6871: \$? = $ac_status" >&5
  6872.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6873.    then
  6874.      # The compiler can only warn and ignore the option if not recognized
  6875.      # So say no if there are warnings
  6876.      if test ! -s out/conftest.err; then
  6877.        lt_cv_prog_compiler_c_o=yes
  6878.      fi
  6879.    fi
  6880.    chmod u+w .
  6881.    $rm conftest*
  6882.    # SGI C++ compiler will create directory out/ii_files/ for
  6883.    # template instantiation
  6884.    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  6885.    $rm out/* && rmdir out
  6886.    cd ..
  6887.    rmdir conftest
  6888.    $rm conftest*
  6889.  
  6890. fi
  6891. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6892. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
  6893.  
  6894.  
  6895. hard_links="nottested"
  6896. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6897.   # do not overwrite the value of need_locks provided by the user
  6898.   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6899. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  6900.   hard_links=yes
  6901.   $rm conftest*
  6902.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6903.   touch conftest.a
  6904.   ln conftest.a conftest.b 2>&5 || hard_links=no
  6905.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6906.   echo "$as_me:$LINENO: result: $hard_links" >&5
  6907. echo "${ECHO_T}$hard_links" >&6
  6908.   if test "$hard_links" = no; then
  6909.     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6910. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6911.     need_locks=warn
  6912.   fi
  6913. else
  6914.   need_locks=no
  6915. fi
  6916.  
  6917. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6918. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  6919.  
  6920.   runpath_var=
  6921.   allow_undefined_flag=
  6922.   enable_shared_with_static_runtimes=no
  6923.   archive_cmds=
  6924.   archive_expsym_cmds=
  6925.   old_archive_From_new_cmds=
  6926.   old_archive_from_expsyms_cmds=
  6927.   export_dynamic_flag_spec=
  6928.   whole_archive_flag_spec=
  6929.   thread_safe_flag_spec=
  6930.   hardcode_libdir_flag_spec=
  6931.   hardcode_libdir_flag_spec_ld=
  6932.   hardcode_libdir_separator=
  6933.   hardcode_direct=no
  6934.   hardcode_minus_L=no
  6935.   hardcode_shlibpath_var=unsupported
  6936.   link_all_deplibs=unknown
  6937.   hardcode_automatic=no
  6938.   module_cmds=
  6939.   module_expsym_cmds=
  6940.   always_export_symbols=no
  6941.   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6942.   # include_expsyms should be a list of space-separated symbols to be *always*
  6943.   # included in the symbol list
  6944.   include_expsyms=
  6945.   # exclude_expsyms can be an extended regexp of symbols to exclude
  6946.   # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6947.   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6948.   # as well as any symbol that contains `d'.
  6949.   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  6950.   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6951.   # platforms (ab)use it in PIC code, but their linkers get confused if
  6952.   # the symbol is explicitly referenced.  Since portable code cannot
  6953.   # rely on this symbol name, it's probably fine to never include it in
  6954.   # preloaded symbol tables.
  6955.   extract_expsyms_cmds=
  6956.  
  6957.   case $host_os in
  6958.   cygwin* | mingw* | pw32*)
  6959.     # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6960.     # When not using gcc, we currently assume that we are using
  6961.     # Microsoft Visual C++.
  6962.     if test "$GCC" != yes; then
  6963.       with_gnu_ld=no
  6964.     fi
  6965.     ;;
  6966.   openbsd*)
  6967.     with_gnu_ld=no
  6968.     ;;
  6969.   esac
  6970.  
  6971.   ld_shlibs=yes
  6972.   if test "$with_gnu_ld" = yes; then
  6973.     # If archive_cmds runs LD, not CC, wlarc should be empty
  6974.     wlarc='${wl}'
  6975.  
  6976.     # See if GNU ld supports shared libraries.
  6977.     case $host_os in
  6978.     aix3* | aix4* | aix5*)
  6979.       # On AIX/PPC, the GNU linker is very broken
  6980.       if test "$host_cpu" != ia64; then
  6981.     ld_shlibs=no
  6982.     cat <<EOF 1>&2
  6983.  
  6984. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6985. *** to be unable to reliably create shared libraries on AIX.
  6986. *** Therefore, libtool is disabling shared libraries support.  If you
  6987. *** really care for shared libraries, you may want to modify your PATH
  6988. *** so that a non-GNU linker is found, and then restart.
  6989.  
  6990. EOF
  6991.       fi
  6992.       ;;
  6993.  
  6994.     amigaos*)
  6995.       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)'
  6996.       hardcode_libdir_flag_spec='-L$libdir'
  6997.       hardcode_minus_L=yes
  6998.  
  6999.       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  7000.       # that the semantics of dynamic libraries on AmigaOS, at least up
  7001.       # to version 4, is to share data among multiple programs linked
  7002.       # with the same dynamic library.  Since this doesn't match the
  7003.       # behavior of shared libraries on other platforms, we can't use
  7004.       # them.
  7005.       ld_shlibs=no
  7006.       ;;
  7007.  
  7008.     beos*)
  7009.       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7010.     allow_undefined_flag=unsupported
  7011.     # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7012.     # support --undefined.  This deserves some investigation.  FIXME
  7013.     archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7014.       else
  7015.     ld_shlibs=no
  7016.       fi
  7017.       ;;
  7018.  
  7019.     cygwin* | mingw* | pw32*)
  7020.       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7021.       # as there is no search path for DLLs.
  7022.       hardcode_libdir_flag_spec='-L$libdir'
  7023.       allow_undefined_flag=unsupported
  7024.       always_export_symbols=no
  7025.       enable_shared_with_static_runtimes=yes
  7026.       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  7027.  
  7028.       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  7029.         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  7030.     # If the export-symbols file already is a .def file (1st line
  7031.     # is EXPORTS), use it as is; otherwise, prepend...
  7032.     archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7033.       cp $export_symbols $output_objdir/$soname.def;
  7034.     else
  7035.       echo EXPORTS > $output_objdir/$soname.def;
  7036.       cat $export_symbols >> $output_objdir/$soname.def;
  7037.     fi~
  7038.     $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
  7039.       else
  7040.     ld_shlibs=no
  7041.       fi
  7042.       ;;
  7043.  
  7044.     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  7045.       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7046.     archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7047.     wlarc=
  7048.       else
  7049.     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7050.     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7051.       fi
  7052.       ;;
  7053.  
  7054.     solaris* | sysv5*)
  7055.       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  7056.     ld_shlibs=no
  7057.     cat <<EOF 1>&2
  7058.  
  7059. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7060. *** create shared libraries on Solaris systems.  Therefore, libtool
  7061. *** is disabling shared libraries support.  We urge you to upgrade GNU
  7062. *** binutils to release 2.9.1 or newer.  Another option is to modify
  7063. *** your PATH or compiler configuration so that the native linker is
  7064. *** used, and then restart.
  7065.  
  7066. EOF
  7067.       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7068.     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7069.     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7070.       else
  7071.     ld_shlibs=no
  7072.       fi
  7073.       ;;
  7074.  
  7075.     sunos4*)
  7076.       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7077.       wlarc=
  7078.       hardcode_direct=yes
  7079.       hardcode_shlibpath_var=no
  7080.       ;;
  7081.  
  7082.   linux*)
  7083.     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7084.         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7085.     archive_cmds="$tmp_archive_cmds"
  7086.       supports_anon_versioning=no
  7087.       case `$LD -v 2>/dev/null` in
  7088.         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7089.         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7090.         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7091.         *\ 2.11.*) ;; # other 2.11 versions
  7092.         *) supports_anon_versioning=yes ;;
  7093.       esac
  7094.       if test $supports_anon_versioning = yes; then
  7095.         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  7096. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7097. $echo "local: *; };" >> $output_objdir/$libname.ver~
  7098.         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7099.       else
  7100.         archive_expsym_cmds="$tmp_archive_cmds"
  7101.       fi
  7102.       link_all_deplibs=no
  7103.     else
  7104.       ld_shlibs=no
  7105.     fi
  7106.     ;;
  7107.  
  7108.     *)
  7109.       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7110.     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7111.     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7112.       else
  7113.     ld_shlibs=no
  7114.       fi
  7115.       ;;
  7116.     esac
  7117.  
  7118.     if test "$ld_shlibs" = yes; then
  7119.       runpath_var=LD_RUN_PATH
  7120.       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  7121.       export_dynamic_flag_spec='${wl}--export-dynamic'
  7122.       # ancient GNU ld didn't support --whole-archive et. al.
  7123.       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  7124.      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7125.       else
  7126.       whole_archive_flag_spec=
  7127.       fi
  7128.     fi
  7129.   else
  7130.     # PORTME fill in a description of your system's linker (not GNU ld)
  7131.     case $host_os in
  7132.     aix3*)
  7133.       allow_undefined_flag=unsupported
  7134.       always_export_symbols=yes
  7135.       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'
  7136.       # Note: this linker hardcodes the directories in LIBPATH if there
  7137.       # are no directories specified by -L.
  7138.       hardcode_minus_L=yes
  7139.       if test "$GCC" = yes && test -z "$link_static_flag"; then
  7140.     # Neither direct hardcoding nor static linking is supported with a
  7141.     # broken collect2.
  7142.     hardcode_direct=unsupported
  7143.       fi
  7144.       ;;
  7145.  
  7146.     aix4* | aix5*)
  7147.       if test "$host_cpu" = ia64; then
  7148.     # On IA64, the linker does run time linking by default, so we don't
  7149.     # have to do anything special.
  7150.     aix_use_runtimelinking=no
  7151.     exp_sym_flag='-Bexport'
  7152.     no_entry_flag=""
  7153.       else
  7154.     # If we're using GNU nm, then we don't want the "-C" option.
  7155.     # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7156.     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  7157.       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'
  7158.     else
  7159.       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'
  7160.     fi
  7161.     aix_use_runtimelinking=no
  7162.  
  7163.     # Test if we are trying to use run time linking or normal
  7164.     # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7165.     # need to do runtime linking.
  7166.     case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  7167.       for ld_flag in $LDFLAGS; do
  7168.         if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7169.           aix_use_runtimelinking=yes
  7170.           break
  7171.         fi
  7172.       done
  7173.     esac
  7174.  
  7175.     exp_sym_flag='-bexport'
  7176.     no_entry_flag='-bnoentry'
  7177.       fi
  7178.  
  7179.       # When large executables or shared objects are built, AIX ld can
  7180.       # have problems creating the table of contents.  If linking a library
  7181.       # or program results in "error TOC overflow" add -mminimal-toc to
  7182.       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  7183.       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7184.  
  7185.       archive_cmds=''
  7186.       hardcode_direct=yes
  7187.       hardcode_libdir_separator=':'
  7188.       link_all_deplibs=yes
  7189.  
  7190.       if test "$GCC" = yes; then
  7191.     case $host_os in aix4.012|aix4.012.*)
  7192.     # We only want to do this on AIX 4.2 and lower, the check
  7193.     # below for broken collect2 doesn't work under 4.3+
  7194.       collect2name=`${CC} -print-prog-name=collect2`
  7195.       if test -f "$collect2name" && \
  7196.          strings "$collect2name" | grep resolve_lib_name >/dev/null
  7197.       then
  7198.         # We have reworked collect2
  7199.         hardcode_direct=yes
  7200.       else
  7201.         # We have old collect2
  7202.         hardcode_direct=unsupported
  7203.         # It fails to find uninstalled libraries when the uninstalled
  7204.         # path is not listed in the libpath.  Setting hardcode_minus_L
  7205.         # to unsupported forces relinking
  7206.         hardcode_minus_L=yes
  7207.         hardcode_libdir_flag_spec='-L$libdir'
  7208.         hardcode_libdir_separator=
  7209.       fi
  7210.     esac
  7211.     shared_flag='-shared'
  7212.       else
  7213.     # not using gcc
  7214.     if test "$host_cpu" = ia64; then
  7215.       # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7216.       # chokes on -Wl,-G. The following line is correct:
  7217.       shared_flag='-G'
  7218.     else
  7219.       if test "$aix_use_runtimelinking" = yes; then
  7220.         shared_flag='${wl}-G'
  7221.       else
  7222.         shared_flag='${wl}-bM:SRE'
  7223.       fi
  7224.     fi
  7225.       fi
  7226.  
  7227.       # It seems that -bexpall does not export symbols beginning with
  7228.       # underscore (_), so it is better to generate a list of symbols to export.
  7229.       always_export_symbols=yes
  7230.       if test "$aix_use_runtimelinking" = yes; then
  7231.     # Warning - without using the other runtime loading flags (-brtl),
  7232.     # -berok will link without error, but may produce a broken library.
  7233.     allow_undefined_flag='-berok'
  7234.        # Determine the default libpath from the value encoded in an empty executable.
  7235.        cat >conftest.$ac_ext <<_ACEOF
  7236. /* confdefs.h.  */
  7237. _ACEOF
  7238. cat confdefs.h >>conftest.$ac_ext
  7239. cat >>conftest.$ac_ext <<_ACEOF
  7240. /* end confdefs.h.  */
  7241.  
  7242. int
  7243. main ()
  7244. {
  7245.  
  7246.   ;
  7247.   return 0;
  7248. }
  7249. _ACEOF
  7250. rm -f conftest.$ac_objext conftest$ac_exeext
  7251. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7252.   (eval $ac_link) 2>conftest.er1
  7253.   ac_status=$?
  7254.   grep -v '^ *+' conftest.er1 >conftest.err
  7255.   rm -f conftest.er1
  7256.   cat conftest.err >&5
  7257.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7258.   (exit $ac_status); } &&
  7259.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  7260.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7261.   (eval $ac_try) 2>&5
  7262.   ac_status=$?
  7263.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7264.   (exit $ac_status); }; } &&
  7265.      { ac_try='test -s conftest$ac_exeext'
  7266.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7267.   (eval $ac_try) 2>&5
  7268.   ac_status=$?
  7269.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7270.   (exit $ac_status); }; }; then
  7271.  
  7272. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
  7273. }'`
  7274. # Check for a 64-bit object if we didn't find anything.
  7275. 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; }
  7276. }'`; fi
  7277. else
  7278.   echo "$as_me: failed program was:" >&5
  7279. sed 's/^/| /' conftest.$ac_ext >&5
  7280.  
  7281. fi
  7282. rm -f conftest.err conftest.$ac_objext \
  7283.       conftest$ac_exeext conftest.$ac_ext
  7284. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7285.  
  7286.        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7287.     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"
  7288.        else
  7289.     if test "$host_cpu" = ia64; then
  7290.       hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7291.       allow_undefined_flag="-z nodefs"
  7292.       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"
  7293.     else
  7294.      # Determine the default libpath from the value encoded in an empty executable.
  7295.      cat >conftest.$ac_ext <<_ACEOF
  7296. /* confdefs.h.  */
  7297. _ACEOF
  7298. cat confdefs.h >>conftest.$ac_ext
  7299. cat >>conftest.$ac_ext <<_ACEOF
  7300. /* end confdefs.h.  */
  7301.  
  7302. int
  7303. main ()
  7304. {
  7305.  
  7306.   ;
  7307.   return 0;
  7308. }
  7309. _ACEOF
  7310. rm -f conftest.$ac_objext conftest$ac_exeext
  7311. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7312.   (eval $ac_link) 2>conftest.er1
  7313.   ac_status=$?
  7314.   grep -v '^ *+' conftest.er1 >conftest.err
  7315.   rm -f conftest.er1
  7316.   cat conftest.err >&5
  7317.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7318.   (exit $ac_status); } &&
  7319.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  7320.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7321.   (eval $ac_try) 2>&5
  7322.   ac_status=$?
  7323.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7324.   (exit $ac_status); }; } &&
  7325.      { ac_try='test -s conftest$ac_exeext'
  7326.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7327.   (eval $ac_try) 2>&5
  7328.   ac_status=$?
  7329.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7330.   (exit $ac_status); }; }; then
  7331.  
  7332. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
  7333. }'`
  7334. # Check for a 64-bit object if we didn't find anything.
  7335. 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; }
  7336. }'`; fi
  7337. else
  7338.   echo "$as_me: failed program was:" >&5
  7339. sed 's/^/| /' conftest.$ac_ext >&5
  7340.  
  7341. fi
  7342. rm -f conftest.err conftest.$ac_objext \
  7343.       conftest$ac_exeext conftest.$ac_ext
  7344. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7345.  
  7346.      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7347.       # Warning - without using the other run time loading flags,
  7348.       # -berok will link without error, but may produce a broken library.
  7349.       no_undefined_flag=' ${wl}-bernotok'
  7350.       allow_undefined_flag=' ${wl}-berok'
  7351.       # -bexpall does not export symbols beginning with underscore (_)
  7352.       always_export_symbols=yes
  7353.       # Exported symbols can be pulled into shared objects from archives
  7354.       whole_archive_flag_spec=' '
  7355.       archive_cmds_need_lc=yes
  7356.       # This is similar to how AIX traditionally builds it's shared libraries.
  7357.       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'
  7358.     fi
  7359.       fi
  7360.       ;;
  7361.  
  7362.     amigaos*)
  7363.       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)'
  7364.       hardcode_libdir_flag_spec='-L$libdir'
  7365.       hardcode_minus_L=yes
  7366.       # see comment about different semantics on the GNU ld section
  7367.       ld_shlibs=no
  7368.       ;;
  7369.  
  7370.     bsdi4*)
  7371.       export_dynamic_flag_spec=-rdynamic
  7372.       ;;
  7373.  
  7374.     cygwin* | mingw* | pw32*)
  7375.       # When not using gcc, we currently assume that we are using
  7376.       # Microsoft Visual C++.
  7377.       # hardcode_libdir_flag_spec is actually meaningless, as there is
  7378.       # no search path for DLLs.
  7379.       hardcode_libdir_flag_spec=' '
  7380.       allow_undefined_flag=unsupported
  7381.       # Tell ltmain to make .lib files, not .a files.
  7382.       libext=lib
  7383.       # Tell ltmain to make .dll files, not .so files.
  7384.       shrext_cmds=".dll"
  7385.       # FIXME: Setting linknames here is a bad hack.
  7386.       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7387.       # The linker will automatically build a .lib file if we build a DLL.
  7388.       old_archive_From_new_cmds='true'
  7389.       # FIXME: Should let the user specify the lib program.
  7390.       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  7391.       fix_srcfile_path='`cygpath -w "$srcfile"`'
  7392.       enable_shared_with_static_runtimes=yes
  7393.       ;;
  7394.  
  7395.     darwin* | rhapsody*)
  7396.     if test "$GXX" = yes ; then
  7397.       archive_cmds_need_lc=no
  7398.       case "$host_os" in
  7399.       rhapsody* | darwin1.[012])
  7400.     allow_undefined_flag='-undefined suppress'
  7401.     ;;
  7402.       *) # Darwin 1.3 on
  7403.       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  7404.           allow_undefined_flag='-flat_namespace -undefined suppress'
  7405.       else
  7406.         case ${MACOSX_DEPLOYMENT_TARGET} in
  7407.           10.[012])
  7408.             allow_undefined_flag='-flat_namespace -undefined suppress'
  7409.             ;;
  7410.           10.*)
  7411.             allow_undefined_flag='-undefined dynamic_lookup'
  7412.             ;;
  7413.         esac
  7414.       fi
  7415.     ;;
  7416.       esac
  7417.         lt_int_apple_cc_single_mod=no
  7418.         output_verbose_link_cmd='echo'
  7419.         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  7420.           lt_int_apple_cc_single_mod=yes
  7421.         fi
  7422.         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  7423.           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  7424.         else
  7425.         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'
  7426.       fi
  7427.       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7428.       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  7429.         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  7430.           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}'
  7431.         else
  7432.           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}'
  7433.         fi
  7434.           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}'
  7435.       hardcode_direct=no
  7436.       hardcode_automatic=yes
  7437.       hardcode_shlibpath_var=unsupported
  7438.       whole_archive_flag_spec='-all_load $convenience'
  7439.       link_all_deplibs=yes
  7440.     else
  7441.       ld_shlibs=no
  7442.     fi
  7443.       ;;
  7444.  
  7445.     dgux*)
  7446.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7447.       hardcode_libdir_flag_spec='-L$libdir'
  7448.       hardcode_shlibpath_var=no
  7449.       ;;
  7450.  
  7451.     freebsd1*)
  7452.       ld_shlibs=no
  7453.       ;;
  7454.  
  7455.     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7456.     # support.  Future versions do this automatically, but an explicit c++rt0.o
  7457.     # does not break anything, and helps significantly (at the cost of a little
  7458.     # extra space).
  7459.     freebsd2.2*)
  7460.       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7461.       hardcode_libdir_flag_spec='-R$libdir'
  7462.       hardcode_direct=yes
  7463.       hardcode_shlibpath_var=no
  7464.       ;;
  7465.  
  7466.     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7467.     freebsd2*)
  7468.       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7469.       hardcode_direct=yes
  7470.       hardcode_minus_L=yes
  7471.       hardcode_shlibpath_var=no
  7472.       ;;
  7473.  
  7474.     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7475.     freebsd* | kfreebsd*-gnu)
  7476.       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7477.       hardcode_libdir_flag_spec='-R$libdir'
  7478.       hardcode_direct=yes
  7479.       hardcode_shlibpath_var=no
  7480.       ;;
  7481.  
  7482.     hpux9*)
  7483.       if test "$GCC" = yes; then
  7484.     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'
  7485.       else
  7486.     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'
  7487.       fi
  7488.       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7489.       hardcode_libdir_separator=:
  7490.       hardcode_direct=yes
  7491.  
  7492.       # hardcode_minus_L: Not really in the search PATH,
  7493.       # but as the default location of the library.
  7494.       hardcode_minus_L=yes
  7495.       export_dynamic_flag_spec='${wl}-E'
  7496.       ;;
  7497.  
  7498.     hpux10* | hpux11*)
  7499.       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7500.     case "$host_cpu" in
  7501.     hppa*64*|ia64*)
  7502.       archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7503.       ;;
  7504.     *)
  7505.       archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7506.       ;;
  7507.     esac
  7508.       else
  7509.     case "$host_cpu" in
  7510.     hppa*64*|ia64*)
  7511.       archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  7512.       ;;
  7513.     *)
  7514.       archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7515.       ;;
  7516.     esac
  7517.       fi
  7518.       if test "$with_gnu_ld" = no; then
  7519.     case "$host_cpu" in
  7520.     hppa*64*)
  7521.       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7522.       hardcode_libdir_flag_spec_ld='+b $libdir'
  7523.       hardcode_libdir_separator=:
  7524.       hardcode_direct=no
  7525.       hardcode_shlibpath_var=no
  7526.       ;;
  7527.     ia64*)
  7528.       hardcode_libdir_flag_spec='-L$libdir'
  7529.       hardcode_direct=no
  7530.       hardcode_shlibpath_var=no
  7531.  
  7532.       # hardcode_minus_L: Not really in the search PATH,
  7533.       # but as the default location of the library.
  7534.       hardcode_minus_L=yes
  7535.       ;;
  7536.     *)
  7537.       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7538.       hardcode_libdir_separator=:
  7539.       hardcode_direct=yes
  7540.       export_dynamic_flag_spec='${wl}-E'
  7541.  
  7542.       # hardcode_minus_L: Not really in the search PATH,
  7543.       # but as the default location of the library.
  7544.       hardcode_minus_L=yes
  7545.       ;;
  7546.     esac
  7547.       fi
  7548.       ;;
  7549.  
  7550.     irix5* | irix6* | nonstopux*)
  7551.       if test "$GCC" = yes; then
  7552.     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'
  7553.       else
  7554.     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'
  7555.     hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7556.       fi
  7557.       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7558.       hardcode_libdir_separator=:
  7559.       link_all_deplibs=yes
  7560.       ;;
  7561.  
  7562.     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  7563.       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7564.     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
  7565.       else
  7566.     archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
  7567.       fi
  7568.       hardcode_libdir_flag_spec='-R$libdir'
  7569.       hardcode_direct=yes
  7570.       hardcode_shlibpath_var=no
  7571.       ;;
  7572.  
  7573.     newsos6)
  7574.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7575.       hardcode_direct=yes
  7576.       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7577.       hardcode_libdir_separator=:
  7578.       hardcode_shlibpath_var=no
  7579.       ;;
  7580.  
  7581.     openbsd*)
  7582.       hardcode_direct=yes
  7583.       hardcode_shlibpath_var=no
  7584.       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7585.     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7586.     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7587.     export_dynamic_flag_spec='${wl}-E'
  7588.       else
  7589.        case $host_os in
  7590.      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7591.        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7592.        hardcode_libdir_flag_spec='-R$libdir'
  7593.        ;;
  7594.      *)
  7595.        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7596.        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7597.        ;;
  7598.        esac
  7599.       fi
  7600.       ;;
  7601.  
  7602.     os2*)
  7603.       hardcode_libdir_flag_spec='-L$libdir'
  7604.       hardcode_minus_L=yes
  7605.       allow_undefined_flag=unsupported
  7606.       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'
  7607.       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7608.       ;;
  7609.  
  7610.     osf3*)
  7611.       if test "$GCC" = yes; then
  7612.     allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7613.     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'
  7614.       else
  7615.     allow_undefined_flag=' -expect_unresolved \*'
  7616.     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'
  7617.       fi
  7618.       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7619.       hardcode_libdir_separator=:
  7620.       ;;
  7621.  
  7622.     osf4* | osf5*)    # as osf3* with the addition of -msym flag
  7623.       if test "$GCC" = yes; then
  7624.     allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7625.     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'
  7626.     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7627.       else
  7628.     allow_undefined_flag=' -expect_unresolved \*'
  7629.     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'
  7630.     archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  7631.     $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'
  7632.  
  7633.     # Both c and cxx compiler support -rpath directly
  7634.     hardcode_libdir_flag_spec='-rpath $libdir'
  7635.       fi
  7636.       hardcode_libdir_separator=:
  7637.       ;;
  7638.  
  7639.     sco3.2v5*)
  7640.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7641.       hardcode_shlibpath_var=no
  7642.       export_dynamic_flag_spec='${wl}-Bexport'
  7643.       runpath_var=LD_RUN_PATH
  7644.       hardcode_runpath_var=yes
  7645.       ;;
  7646.  
  7647.     solaris*)
  7648.       no_undefined_flag=' -z text'
  7649.       if test "$GCC" = yes; then
  7650.     archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7651.     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7652.       $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  7653.       else
  7654.     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7655.     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7656.       $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7657.       fi
  7658.       hardcode_libdir_flag_spec='-R$libdir'
  7659.       hardcode_shlibpath_var=no
  7660.       case $host_os in
  7661.       solaris2.[0-5] | solaris2.[0-5].*) ;;
  7662.       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  7663.     whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  7664.       esac
  7665.       link_all_deplibs=yes
  7666.       ;;
  7667.  
  7668.     sunos4*)
  7669.       if test "x$host_vendor" = xsequent; then
  7670.     # Use $CC to link under sequent, because it throws in some extra .o
  7671.     # files that make .init and .fini sections work.
  7672.     archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7673.       else
  7674.     archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7675.       fi
  7676.       hardcode_libdir_flag_spec='-L$libdir'
  7677.       hardcode_direct=yes
  7678.       hardcode_minus_L=yes
  7679.       hardcode_shlibpath_var=no
  7680.       ;;
  7681.  
  7682.     sysv4)
  7683.       case $host_vendor in
  7684.     sni)
  7685.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7686.       hardcode_direct=yes # is this really true???
  7687.     ;;
  7688.     siemens)
  7689.       ## LD is ld it makes a PLAMLIB
  7690.       ## CC just makes a GrossModule.
  7691.       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7692.       reload_cmds='$CC -r -o $output$reload_objs'
  7693.       hardcode_direct=no
  7694.         ;;
  7695.     motorola)
  7696.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7697.       hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7698.     ;;
  7699.       esac
  7700.       runpath_var='LD_RUN_PATH'
  7701.       hardcode_shlibpath_var=no
  7702.       ;;
  7703.  
  7704.     sysv4.3*)
  7705.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7706.       hardcode_shlibpath_var=no
  7707.       export_dynamic_flag_spec='-Bexport'
  7708.       ;;
  7709.  
  7710.     sysv4*MP*)
  7711.       if test -d /usr/nec; then
  7712.     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7713.     hardcode_shlibpath_var=no
  7714.     runpath_var=LD_RUN_PATH
  7715.     hardcode_runpath_var=yes
  7716.     ld_shlibs=yes
  7717.       fi
  7718.       ;;
  7719.  
  7720.     sysv4.2uw2*)
  7721.       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7722.       hardcode_direct=yes
  7723.       hardcode_minus_L=no
  7724.       hardcode_shlibpath_var=no
  7725.       hardcode_runpath_var=yes
  7726.       runpath_var=LD_RUN_PATH
  7727.       ;;
  7728.  
  7729.    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
  7730.       no_undefined_flag='${wl}-z ${wl}text'
  7731.       if test "$GCC" = yes; then
  7732.     archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7733.       else
  7734.     archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7735.       fi
  7736.       runpath_var='LD_RUN_PATH'
  7737.       hardcode_shlibpath_var=no
  7738.       ;;
  7739.  
  7740.     sysv5*)
  7741.       no_undefined_flag=' -z text'
  7742.       # $CC -shared without GNU ld will not create a library from C++
  7743.       # object files and a static libstdc++, better avoid it by now
  7744.       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7745.       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7746.           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7747.       hardcode_libdir_flag_spec=
  7748.       hardcode_shlibpath_var=no
  7749.       runpath_var='LD_RUN_PATH'
  7750.       ;;
  7751.  
  7752.     uts4*)
  7753.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7754.       hardcode_libdir_flag_spec='-L$libdir'
  7755.       hardcode_shlibpath_var=no
  7756.       ;;
  7757.  
  7758.     *)
  7759.       ld_shlibs=no
  7760.       ;;
  7761.     esac
  7762.   fi
  7763.  
  7764. echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7765. echo "${ECHO_T}$ld_shlibs" >&6
  7766. test "$ld_shlibs" = no && can_build_shared=no
  7767.  
  7768. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  7769. if test "$GCC" = yes; then
  7770.   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  7771. fi
  7772.  
  7773. #
  7774. # Do we need to explicitly link libc?
  7775. #
  7776. case "x$archive_cmds_need_lc" in
  7777. x|xyes)
  7778.   # Assume -lc should be added
  7779.   archive_cmds_need_lc=yes
  7780.  
  7781.   if test "$enable_shared" = yes && test "$GCC" = yes; then
  7782.     case $archive_cmds in
  7783.     *'~'*)
  7784.       # FIXME: we may have to deal with multi-command sequences.
  7785.       ;;
  7786.     '$CC '*)
  7787.       # Test whether the compiler implicitly links with -lc since on some
  7788.       # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7789.       # to ld, don't add -lc before -lgcc.
  7790.       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7791. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  7792.       $rm conftest*
  7793.       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  7794.  
  7795.       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7796.   (eval $ac_compile) 2>&5
  7797.   ac_status=$?
  7798.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7799.   (exit $ac_status); } 2>conftest.err; then
  7800.         soname=conftest
  7801.         lib=conftest
  7802.         libobjs=conftest.$ac_objext
  7803.         deplibs=
  7804.         wl=$lt_prog_compiler_wl
  7805.         compiler_flags=-v
  7806.         linker_flags=-v
  7807.         verstring=
  7808.         output_objdir=.
  7809.         libname=conftest
  7810.         lt_save_allow_undefined_flag=$allow_undefined_flag
  7811.         allow_undefined_flag=
  7812.         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7813.   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7814.   ac_status=$?
  7815.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7816.   (exit $ac_status); }
  7817.         then
  7818.       archive_cmds_need_lc=no
  7819.         else
  7820.       archive_cmds_need_lc=yes
  7821.         fi
  7822.         allow_undefined_flag=$lt_save_allow_undefined_flag
  7823.       else
  7824.         cat conftest.err 1>&5
  7825.       fi
  7826.       $rm conftest*
  7827.       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  7828. echo "${ECHO_T}$archive_cmds_need_lc" >&6
  7829.       ;;
  7830.     esac
  7831.   fi
  7832.   ;;
  7833. esac
  7834.  
  7835. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7836. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  7837. library_names_spec=
  7838. libname_spec='lib$name'
  7839. soname_spec=
  7840. shrext_cmds=".so"
  7841. postinstall_cmds=
  7842. postuninstall_cmds=
  7843. finish_cmds=
  7844. finish_eval=
  7845. shlibpath_var=
  7846. shlibpath_overrides_runpath=unknown
  7847. version_type=none
  7848. dynamic_linker="$host_os ld.so"
  7849. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7850. if test "$GCC" = yes; then
  7851.   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7852.   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  7853.     # if the path contains ";" then we assume it to be the separator
  7854.     # otherwise default to the standard path separator (i.e. ":") - it is
  7855.     # assumed that no part of a normal pathname contains ";" but that should
  7856.     # okay in the real world where ";" in dirpaths is itself problematic.
  7857.     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7858.   else
  7859.     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  7860.   fi
  7861. else
  7862.   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7863. fi
  7864. need_lib_prefix=unknown
  7865. hardcode_into_libs=no
  7866.  
  7867. # when you set need_version to no, make sure it does not cause -set_version
  7868. # flags to be left without arguments
  7869. need_version=unknown
  7870.  
  7871. case $host_os in
  7872. aix3*)
  7873.   version_type=linux
  7874.   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7875.   shlibpath_var=LIBPATH
  7876.  
  7877.   # AIX 3 has no versioning support, so we append a major version to the name.
  7878.   soname_spec='${libname}${release}${shared_ext}$major'
  7879.   ;;
  7880.  
  7881. aix4* | aix5*)
  7882.   version_type=linux
  7883.   need_lib_prefix=no
  7884.   need_version=no
  7885.   hardcode_into_libs=yes
  7886.   if test "$host_cpu" = ia64; then
  7887.     # AIX 5 supports IA64
  7888.     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7889.     shlibpath_var=LD_LIBRARY_PATH
  7890.   else
  7891.     # With GCC up to 2.95.x, collect2 would create an import file
  7892.     # for dependence libraries.  The import file would start with
  7893.     # the line `#! .'.  This would cause the generated library to
  7894.     # depend on `.', always an invalid library.  This was fixed in
  7895.     # development snapshots of GCC prior to 3.0.
  7896.     case $host_os in
  7897.       aix4 | aix4.[01] | aix4.[01].*)
  7898.       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  7899.        echo ' yes '
  7900.        echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  7901.     :
  7902.       else
  7903.     can_build_shared=no
  7904.       fi
  7905.       ;;
  7906.     esac
  7907.     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  7908.     # soname into executable. Probably we can add versioning support to
  7909.     # collect2, so additional links can be useful in future.
  7910.     if test "$aix_use_runtimelinking" = yes; then
  7911.       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  7912.       # instead of lib<name>.a to let people know that these are not
  7913.       # typical AIX shared libraries.
  7914.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7915.     else
  7916.       # We preserve .a as extension for shared libraries through AIX4.2
  7917.       # and later when we are not doing run time linking.
  7918.       library_names_spec='${libname}${release}.a $libname.a'
  7919.       soname_spec='${libname}${release}${shared_ext}$major'
  7920.     fi
  7921.     shlibpath_var=LIBPATH
  7922.   fi
  7923.   ;;
  7924.  
  7925. amigaos*)
  7926.   library_names_spec='$libname.ixlibrary $libname.a'
  7927.   # Create ${libname}_ixlibrary.a entries in /sys/libs.
  7928.   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'
  7929.   ;;
  7930.  
  7931. beos*)
  7932.   library_names_spec='${libname}${shared_ext}'
  7933.   dynamic_linker="$host_os ld.so"
  7934.   shlibpath_var=LIBRARY_PATH
  7935.   ;;
  7936.  
  7937. bsdi4*)
  7938.   version_type=linux
  7939.   need_version=no
  7940.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7941.   soname_spec='${libname}${release}${shared_ext}$major'
  7942.   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  7943.   shlibpath_var=LD_LIBRARY_PATH
  7944.   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  7945.   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  7946.   # the default ld.so.conf also contains /usr/contrib/lib and
  7947.   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  7948.   # libtool to hard-code these into programs
  7949.   ;;
  7950.  
  7951. cygwin* | mingw* | pw32*)
  7952.   version_type=windows
  7953.   shrext_cmds=".dll"
  7954.   need_version=no
  7955.   need_lib_prefix=no
  7956.  
  7957.   case $GCC,$host_os in
  7958.   yes,cygwin* | yes,mingw* | yes,pw32*)
  7959.     library_names_spec='$libname.dll.a'
  7960.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  7961.     postinstall_cmds='base_file=`basename \${file}`~
  7962.       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  7963.       dldir=$destdir/`dirname \$dlpath`~
  7964.       test -d \$dldir || mkdir -p \$dldir~
  7965.       $install_prog $dir/$dlname \$dldir/$dlname'
  7966.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  7967.       dlpath=$dir/\$dldll~
  7968.        $rm \$dlpath'
  7969.     shlibpath_overrides_runpath=yes
  7970.  
  7971.     case $host_os in
  7972.     cygwin*)
  7973.       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  7974.       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7975.       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  7976.       ;;
  7977.     mingw*)
  7978.       # MinGW DLLs use traditional 'lib' prefix
  7979.       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7980.       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7981.       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  7982.         # It is most probably a Windows format PATH printed by
  7983.         # mingw gcc, but we are running on Cygwin. Gcc prints its search
  7984.         # path with ; separators, and with drive letters. We can handle the
  7985.         # drive letters (cygwin fileutils understands them), so leave them,
  7986.         # especially as we might pass files found there to a mingw objdump,
  7987.         # which wouldn't understand a cygwinified path. Ahh.
  7988.         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7989.       else
  7990.         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  7991.       fi
  7992.       ;;
  7993.     pw32*)
  7994.       # pw32 DLLs use 'pw' prefix rather than 'lib'
  7995.       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  7996.       ;;
  7997.     esac
  7998.     ;;
  7999.  
  8000.   *)
  8001.     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8002.     ;;
  8003.   esac
  8004.   dynamic_linker='Win32 ld.exe'
  8005.   # FIXME: first we should search . and the directory the executable is in
  8006.   shlibpath_var=PATH
  8007.   ;;
  8008.  
  8009. darwin* | rhapsody*)
  8010.   dynamic_linker="$host_os dyld"
  8011.   version_type=darwin
  8012.   need_lib_prefix=no
  8013.   need_version=no
  8014.   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8015.   soname_spec='${libname}${release}${major}$shared_ext'
  8016.   shlibpath_overrides_runpath=yes
  8017.   shlibpath_var=DYLD_LIBRARY_PATH
  8018.   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  8019.   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  8020.   if test "$GCC" = yes; then
  8021.     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"`
  8022.   else
  8023.     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  8024.   fi
  8025.   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8026.   ;;
  8027.  
  8028. dgux*)
  8029.   version_type=linux
  8030.   need_lib_prefix=no
  8031.   need_version=no
  8032.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8033.   soname_spec='${libname}${release}${shared_ext}$major'
  8034.   shlibpath_var=LD_LIBRARY_PATH
  8035.   ;;
  8036.  
  8037. freebsd1*)
  8038.   dynamic_linker=no
  8039.   ;;
  8040.  
  8041. kfreebsd*-gnu)
  8042.   version_type=linux
  8043.   need_lib_prefix=no
  8044.   need_version=no
  8045.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8046.   soname_spec='${libname}${release}${shared_ext}$major'
  8047.   shlibpath_var=LD_LIBRARY_PATH
  8048.   shlibpath_overrides_runpath=no
  8049.   hardcode_into_libs=yes
  8050.   dynamic_linker='GNU ld.so'
  8051.   ;;
  8052.  
  8053. freebsd*)
  8054.   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  8055.   version_type=freebsd-$objformat
  8056.   case $version_type in
  8057.     freebsd-elf*)
  8058.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8059.       need_version=no
  8060.       need_lib_prefix=no
  8061.       ;;
  8062.     freebsd-*)
  8063.       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8064.       need_version=yes
  8065.       ;;
  8066.   esac
  8067.   shlibpath_var=LD_LIBRARY_PATH
  8068.   case $host_os in
  8069.   freebsd2*)
  8070.     shlibpath_overrides_runpath=yes
  8071.     ;;
  8072.   freebsd3.01* | freebsdelf3.01*)
  8073.     shlibpath_overrides_runpath=yes
  8074.     hardcode_into_libs=yes
  8075.     ;;
  8076.   *) # from 3.2 on
  8077.     shlibpath_overrides_runpath=no
  8078.     hardcode_into_libs=yes
  8079.     ;;
  8080.   esac
  8081.   ;;
  8082.  
  8083. gnu*)
  8084.   version_type=linux
  8085.   need_lib_prefix=no
  8086.   need_version=no
  8087.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8088.   soname_spec='${libname}${release}${shared_ext}$major'
  8089.   shlibpath_var=LD_LIBRARY_PATH
  8090.   hardcode_into_libs=yes
  8091.   ;;
  8092.  
  8093. hpux9* | hpux10* | hpux11*)
  8094.   # Give a soname corresponding to the major version so that dld.sl refuses to
  8095.   # link against other versions.
  8096.   version_type=sunos
  8097.   need_lib_prefix=no
  8098.   need_version=no
  8099.   case "$host_cpu" in
  8100.   ia64*)
  8101.     shrext_cmds='.so'
  8102.     hardcode_into_libs=yes
  8103.     dynamic_linker="$host_os dld.so"
  8104.     shlibpath_var=LD_LIBRARY_PATH
  8105.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8106.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8107.     soname_spec='${libname}${release}${shared_ext}$major'
  8108.     if test "X$HPUX_IA64_MODE" = X32; then
  8109.       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8110.     else
  8111.       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8112.     fi
  8113.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8114.     ;;
  8115.    hppa*64*)
  8116.      shrext_cmds='.sl'
  8117.      hardcode_into_libs=yes
  8118.      dynamic_linker="$host_os dld.sl"
  8119.      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8120.      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8121.      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8122.      soname_spec='${libname}${release}${shared_ext}$major'
  8123.      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8124.      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8125.      ;;
  8126.    *)
  8127.     shrext_cmds='.sl'
  8128.     dynamic_linker="$host_os dld.sl"
  8129.     shlibpath_var=SHLIB_PATH
  8130.     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8131.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8132.     soname_spec='${libname}${release}${shared_ext}$major'
  8133.     ;;
  8134.   esac
  8135.   # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8136.   postinstall_cmds='chmod 555 $lib'
  8137.   ;;
  8138.  
  8139. irix5* | irix6* | nonstopux*)
  8140.   case $host_os in
  8141.     nonstopux*) version_type=nonstopux ;;
  8142.     *)
  8143.     if test "$lt_cv_prog_gnu_ld" = yes; then
  8144.         version_type=linux
  8145.     else
  8146.         version_type=irix
  8147.     fi ;;
  8148.   esac
  8149.   need_lib_prefix=no
  8150.   need_version=no
  8151.   soname_spec='${libname}${release}${shared_ext}$major'
  8152.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8153.   case $host_os in
  8154.   irix5* | nonstopux*)
  8155.     libsuff= shlibsuff=
  8156.     ;;
  8157.   *)
  8158.     case $LD in # libtool.m4 will add one of these switches to LD
  8159.     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8160.       libsuff= shlibsuff= libmagic=32-bit;;
  8161.     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8162.       libsuff=32 shlibsuff=N32 libmagic=N32;;
  8163.     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8164.       libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8165.     *) libsuff= shlibsuff= libmagic=never-match;;
  8166.     esac
  8167.     ;;
  8168.   esac
  8169.   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8170.   shlibpath_overrides_runpath=no
  8171.   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8172.   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8173.   hardcode_into_libs=yes
  8174.   ;;
  8175.  
  8176. # No shared lib support for Linux oldld, aout, or coff.
  8177. linux*oldld* | linux*aout* | linux*coff*)
  8178.   dynamic_linker=no
  8179.   ;;
  8180.  
  8181. # This must be Linux ELF.
  8182. linux*)
  8183.   version_type=linux
  8184.   need_lib_prefix=no
  8185.   need_version=no
  8186.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8187.   soname_spec='${libname}${release}${shared_ext}$major'
  8188.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8189.   shlibpath_var=LD_LIBRARY_PATH
  8190.   shlibpath_overrides_runpath=no
  8191.   # This implies no fast_install, which is unacceptable.
  8192.   # Some rework will be needed to allow for fast_install
  8193.   # before this can be enabled.
  8194.   hardcode_into_libs=yes
  8195.  
  8196.   # Append ld.so.conf contents to the search path
  8197.   if test -f /etc/ld.so.conf; then
  8198.     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
  8199.     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8200.   fi
  8201.  
  8202.   # We used to test for /lib/ld.so.1 and disable shared libraries on
  8203.   # powerpc, because MkLinux only supported shared libraries with the
  8204.   # GNU dynamic linker.  Since this was broken with cross compilers,
  8205.   # most powerpc-linux boxes support dynamic linking these days and
  8206.   # people can always --disable-shared, the test was removed, and we
  8207.   # assume the GNU/Linux dynamic linker is in use.
  8208.   dynamic_linker='GNU/Linux ld.so'
  8209.   ;;
  8210.  
  8211. netbsdelf*-gnu)
  8212.   version_type=linux
  8213.   need_lib_prefix=no
  8214.   need_version=no
  8215.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8216.   soname_spec='${libname}${release}${shared_ext}$major'
  8217.   shlibpath_var=LD_LIBRARY_PATH
  8218.   shlibpath_overrides_runpath=no
  8219.   hardcode_into_libs=yes
  8220.   dynamic_linker='NetBSD ld.elf_so'
  8221.   ;;
  8222.  
  8223. knetbsd*-gnu)
  8224.   version_type=linux
  8225.   need_lib_prefix=no
  8226.   need_version=no
  8227.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8228.   soname_spec='${libname}${release}${shared_ext}$major'
  8229.   shlibpath_var=LD_LIBRARY_PATH
  8230.   shlibpath_overrides_runpath=no
  8231.   hardcode_into_libs=yes
  8232.   dynamic_linker='GNU ld.so'
  8233.   ;;
  8234.  
  8235. netbsd*)
  8236.   version_type=sunos
  8237.   need_lib_prefix=no
  8238.   need_version=no
  8239.   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8240.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8241.     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8242.     dynamic_linker='NetBSD (a.out) ld.so'
  8243.   else
  8244.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8245.     soname_spec='${libname}${release}${shared_ext}$major'
  8246.     dynamic_linker='NetBSD ld.elf_so'
  8247.   fi
  8248.   shlibpath_var=LD_LIBRARY_PATH
  8249.   shlibpath_overrides_runpath=yes
  8250.   hardcode_into_libs=yes
  8251.   ;;
  8252.  
  8253. newsos6)
  8254.   version_type=linux
  8255.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8256.   shlibpath_var=LD_LIBRARY_PATH
  8257.   shlibpath_overrides_runpath=yes
  8258.   ;;
  8259.  
  8260. nto-qnx*)
  8261.   version_type=linux
  8262.   need_lib_prefix=no
  8263.   need_version=no
  8264.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8265.   soname_spec='${libname}${release}${shared_ext}$major'
  8266.   shlibpath_var=LD_LIBRARY_PATH
  8267.   shlibpath_overrides_runpath=yes
  8268.   ;;
  8269.  
  8270. openbsd*)
  8271.   version_type=sunos
  8272.   need_lib_prefix=no
  8273.   need_version=yes
  8274.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8275.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8276.   shlibpath_var=LD_LIBRARY_PATH
  8277.   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8278.     case $host_os in
  8279.       openbsd2.[89] | openbsd2.[89].*)
  8280.     shlibpath_overrides_runpath=no
  8281.     ;;
  8282.       *)
  8283.     shlibpath_overrides_runpath=yes
  8284.     ;;
  8285.       esac
  8286.   else
  8287.     shlibpath_overrides_runpath=yes
  8288.   fi
  8289.   ;;
  8290.  
  8291. os2*)
  8292.   libname_spec='$name'
  8293.   shrext_cmds=".dll"
  8294.   need_lib_prefix=no
  8295.   library_names_spec='$libname${shared_ext} $libname.a'
  8296.   dynamic_linker='OS/2 ld.exe'
  8297.   shlibpath_var=LIBPATH
  8298.   ;;
  8299.  
  8300. osf3* | osf4* | osf5*)
  8301.   version_type=osf
  8302.   need_lib_prefix=no
  8303.   need_version=no
  8304.   soname_spec='${libname}${release}${shared_ext}$major'
  8305.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8306.   shlibpath_var=LD_LIBRARY_PATH
  8307.   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8308.   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8309.   ;;
  8310.  
  8311. sco3.2v5*)
  8312.   version_type=osf
  8313.   soname_spec='${libname}${release}${shared_ext}$major'
  8314.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8315.   shlibpath_var=LD_LIBRARY_PATH
  8316.   ;;
  8317.  
  8318. solaris*)
  8319.   version_type=linux
  8320.   need_lib_prefix=no
  8321.   need_version=no
  8322.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8323.   soname_spec='${libname}${release}${shared_ext}$major'
  8324.   shlibpath_var=LD_LIBRARY_PATH
  8325.   shlibpath_overrides_runpath=yes
  8326.   hardcode_into_libs=yes
  8327.   # ldd complains unless libraries are executable
  8328.   postinstall_cmds='chmod +x $lib'
  8329.   ;;
  8330.  
  8331. sunos4*)
  8332.   version_type=sunos
  8333.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8334.   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8335.   shlibpath_var=LD_LIBRARY_PATH
  8336.   shlibpath_overrides_runpath=yes
  8337.   if test "$with_gnu_ld" = yes; then
  8338.     need_lib_prefix=no
  8339.   fi
  8340.   need_version=yes
  8341.   ;;
  8342.  
  8343. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8344.   version_type=linux
  8345.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8346.   soname_spec='${libname}${release}${shared_ext}$major'
  8347.   shlibpath_var=LD_LIBRARY_PATH
  8348.   case $host_vendor in
  8349.     sni)
  8350.       shlibpath_overrides_runpath=no
  8351.       need_lib_prefix=no
  8352.       export_dynamic_flag_spec='${wl}-Blargedynsym'
  8353.       runpath_var=LD_RUN_PATH
  8354.       ;;
  8355.     siemens)
  8356.       need_lib_prefix=no
  8357.       ;;
  8358.     motorola)
  8359.       need_lib_prefix=no
  8360.       need_version=no
  8361.       shlibpath_overrides_runpath=no
  8362.       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8363.       ;;
  8364.   esac
  8365.   ;;
  8366.  
  8367. sysv4*MP*)
  8368.   if test -d /usr/nec ;then
  8369.     version_type=linux
  8370.     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8371.     soname_spec='$libname${shared_ext}.$major'
  8372.     shlibpath_var=LD_LIBRARY_PATH
  8373.   fi
  8374.   ;;
  8375.  
  8376. uts4*)
  8377.   version_type=linux
  8378.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8379.   soname_spec='${libname}${release}${shared_ext}$major'
  8380.   shlibpath_var=LD_LIBRARY_PATH
  8381.   ;;
  8382.  
  8383. *)
  8384.   dynamic_linker=no
  8385.   ;;
  8386. esac
  8387. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8388. echo "${ECHO_T}$dynamic_linker" >&6
  8389. test "$dynamic_linker" = no && can_build_shared=no
  8390.  
  8391. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8392. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  8393. hardcode_action=
  8394. if test -n "$hardcode_libdir_flag_spec" || \
  8395.    test -n "$runpath_var " || \
  8396.    test "X$hardcode_automatic"="Xyes" ; then
  8397.  
  8398.   # We can hardcode non-existant directories.
  8399.   if test "$hardcode_direct" != no &&
  8400.      # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8401.      # have to relink, otherwise we might link with an installed library
  8402.      # when we should be linking with a yet-to-be-installed one
  8403.      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8404.      test "$hardcode_minus_L" != no; then
  8405.     # Linking always hardcodes the temporary library directory.
  8406.     hardcode_action=relink
  8407.   else
  8408.     # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8409.     hardcode_action=immediate
  8410.   fi
  8411. else
  8412.   # We cannot hardcode anything, or else we can only hardcode existing
  8413.   # directories.
  8414.   hardcode_action=unsupported
  8415. fi
  8416. echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8417. echo "${ECHO_T}$hardcode_action" >&6
  8418.  
  8419. if test "$hardcode_action" = relink; then
  8420.   # Fast installation is not supported
  8421.   enable_fast_install=no
  8422. elif test "$shlibpath_overrides_runpath" = yes ||
  8423.      test "$enable_shared" = no; then
  8424.   # Fast installation is not necessary
  8425.   enable_fast_install=needless
  8426. fi
  8427.  
  8428. striplib=
  8429. old_striplib=
  8430. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  8431. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  8432. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  8433.   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  8434.   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  8435.   echo "$as_me:$LINENO: result: yes" >&5
  8436. echo "${ECHO_T}yes" >&6
  8437. else
  8438. # FIXME - insert some real tests, host_os isn't really good enough
  8439.   case $host_os in
  8440.    darwin*)
  8441.        if test -n "$STRIP" ; then
  8442.          striplib="$STRIP -x"
  8443.          echo "$as_me:$LINENO: result: yes" >&5
  8444. echo "${ECHO_T}yes" >&6
  8445.        else
  8446.   echo "$as_me:$LINENO: result: no" >&5
  8447. echo "${ECHO_T}no" >&6
  8448. fi
  8449.        ;;
  8450.    *)
  8451.   echo "$as_me:$LINENO: result: no" >&5
  8452. echo "${ECHO_T}no" >&6
  8453.     ;;
  8454.   esac
  8455. fi
  8456.  
  8457. if test "x$enable_dlopen" != xyes; then
  8458.   enable_dlopen=unknown
  8459.   enable_dlopen_self=unknown
  8460.   enable_dlopen_self_static=unknown
  8461. else
  8462.   lt_cv_dlopen=no
  8463.   lt_cv_dlopen_libs=
  8464.  
  8465.   case $host_os in
  8466.   beos*)
  8467.     lt_cv_dlopen="load_add_on"
  8468.     lt_cv_dlopen_libs=
  8469.     lt_cv_dlopen_self=yes
  8470.     ;;
  8471.  
  8472.   mingw* | pw32*)
  8473.     lt_cv_dlopen="LoadLibrary"
  8474.     lt_cv_dlopen_libs=
  8475.    ;;
  8476.  
  8477.   cygwin*)
  8478.     lt_cv_dlopen="dlopen"
  8479.     lt_cv_dlopen_libs=
  8480.    ;;
  8481.  
  8482.   darwin*)
  8483.   # if libdl is installed we need to link against it
  8484.     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8485. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  8486. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8487.   echo $ECHO_N "(cached) $ECHO_C" >&6
  8488. else
  8489.   ac_check_lib_save_LIBS=$LIBS
  8490. LIBS="-ldl  $LIBS"
  8491. cat >conftest.$ac_ext <<_ACEOF
  8492. /* confdefs.h.  */
  8493. _ACEOF
  8494. cat confdefs.h >>conftest.$ac_ext
  8495. cat >>conftest.$ac_ext <<_ACEOF
  8496. /* end confdefs.h.  */
  8497.  
  8498. /* Override any gcc2 internal prototype to avoid an error.  */
  8499. #ifdef __cplusplus
  8500. extern "C"
  8501. #endif
  8502. /* We use char because int might match the return type of a gcc2
  8503.    builtin and then its argument prototype would still apply.  */
  8504. char dlopen ();
  8505. int
  8506. main ()
  8507. {
  8508. dlopen ();
  8509.   ;
  8510.   return 0;
  8511. }
  8512. _ACEOF
  8513. rm -f conftest.$ac_objext conftest$ac_exeext
  8514. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8515.   (eval $ac_link) 2>conftest.er1
  8516.   ac_status=$?
  8517.   grep -v '^ *+' conftest.er1 >conftest.err
  8518.   rm -f conftest.er1
  8519.   cat conftest.err >&5
  8520.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8521.   (exit $ac_status); } &&
  8522.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  8523.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8524.   (eval $ac_try) 2>&5
  8525.   ac_status=$?
  8526.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8527.   (exit $ac_status); }; } &&
  8528.      { ac_try='test -s conftest$ac_exeext'
  8529.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8530.   (eval $ac_try) 2>&5
  8531.   ac_status=$?
  8532.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8533.   (exit $ac_status); }; }; then
  8534.   ac_cv_lib_dl_dlopen=yes
  8535. else
  8536.   echo "$as_me: failed program was:" >&5
  8537. sed 's/^/| /' conftest.$ac_ext >&5
  8538.  
  8539. ac_cv_lib_dl_dlopen=no
  8540. fi
  8541. rm -f conftest.err conftest.$ac_objext \
  8542.       conftest$ac_exeext conftest.$ac_ext
  8543. LIBS=$ac_check_lib_save_LIBS
  8544. fi
  8545. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8546. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  8547. if test $ac_cv_lib_dl_dlopen = yes; then
  8548.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8549. else
  8550.  
  8551.     lt_cv_dlopen="dyld"
  8552.     lt_cv_dlopen_libs=
  8553.     lt_cv_dlopen_self=yes
  8554.  
  8555. fi
  8556.  
  8557.    ;;
  8558.  
  8559.   *)
  8560.     echo "$as_me:$LINENO: checking for shl_load" >&5
  8561. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  8562. if test "${ac_cv_func_shl_load+set}" = set; then
  8563.   echo $ECHO_N "(cached) $ECHO_C" >&6
  8564. else
  8565.   cat >conftest.$ac_ext <<_ACEOF
  8566. /* confdefs.h.  */
  8567. _ACEOF
  8568. cat confdefs.h >>conftest.$ac_ext
  8569. cat >>conftest.$ac_ext <<_ACEOF
  8570. /* end confdefs.h.  */
  8571. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8572.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  8573. #define shl_load innocuous_shl_load
  8574.  
  8575. /* System header to define __stub macros and hopefully few prototypes,
  8576.     which can conflict with char shl_load (); below.
  8577.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8578.     <limits.h> exists even on freestanding compilers.  */
  8579.  
  8580. #ifdef __STDC__
  8581. # include <limits.h>
  8582. #else
  8583. # include <assert.h>
  8584. #endif
  8585.  
  8586. #undef shl_load
  8587.  
  8588. /* Override any gcc2 internal prototype to avoid an error.  */
  8589. #ifdef __cplusplus
  8590. extern "C"
  8591. {
  8592. #endif
  8593. /* We use char because int might match the return type of a gcc2
  8594.    builtin and then its argument prototype would still apply.  */
  8595. char shl_load ();
  8596. /* The GNU C library defines this for functions which it implements
  8597.     to always fail with ENOSYS.  Some functions are actually named
  8598.     something starting with __ and the normal name is an alias.  */
  8599. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  8600. choke me
  8601. #else
  8602. char (*f) () = shl_load;
  8603. #endif
  8604. #ifdef __cplusplus
  8605. }
  8606. #endif
  8607.  
  8608. int
  8609. main ()
  8610. {
  8611. return f != shl_load;
  8612.   ;
  8613.   return 0;
  8614. }
  8615. _ACEOF
  8616. rm -f conftest.$ac_objext conftest$ac_exeext
  8617. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8618.   (eval $ac_link) 2>conftest.er1
  8619.   ac_status=$?
  8620.   grep -v '^ *+' conftest.er1 >conftest.err
  8621.   rm -f conftest.er1
  8622.   cat conftest.err >&5
  8623.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8624.   (exit $ac_status); } &&
  8625.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  8626.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8627.   (eval $ac_try) 2>&5
  8628.   ac_status=$?
  8629.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8630.   (exit $ac_status); }; } &&
  8631.      { ac_try='test -s conftest$ac_exeext'
  8632.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8633.   (eval $ac_try) 2>&5
  8634.   ac_status=$?
  8635.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8636.   (exit $ac_status); }; }; then
  8637.   ac_cv_func_shl_load=yes
  8638. else
  8639.   echo "$as_me: failed program was:" >&5
  8640. sed 's/^/| /' conftest.$ac_ext >&5
  8641.  
  8642. ac_cv_func_shl_load=no
  8643. fi
  8644. rm -f conftest.err conftest.$ac_objext \
  8645.       conftest$ac_exeext conftest.$ac_ext
  8646. fi
  8647. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8648. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  8649. if test $ac_cv_func_shl_load = yes; then
  8650.   lt_cv_dlopen="shl_load"
  8651. else
  8652.   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8653. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  8654. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8655.   echo $ECHO_N "(cached) $ECHO_C" >&6
  8656. else
  8657.   ac_check_lib_save_LIBS=$LIBS
  8658. LIBS="-ldld  $LIBS"
  8659. cat >conftest.$ac_ext <<_ACEOF
  8660. /* confdefs.h.  */
  8661. _ACEOF
  8662. cat confdefs.h >>conftest.$ac_ext
  8663. cat >>conftest.$ac_ext <<_ACEOF
  8664. /* end confdefs.h.  */
  8665.  
  8666. /* Override any gcc2 internal prototype to avoid an error.  */
  8667. #ifdef __cplusplus
  8668. extern "C"
  8669. #endif
  8670. /* We use char because int might match the return type of a gcc2
  8671.    builtin and then its argument prototype would still apply.  */
  8672. char shl_load ();
  8673. int
  8674. main ()
  8675. {
  8676. shl_load ();
  8677.   ;
  8678.   return 0;
  8679. }
  8680. _ACEOF
  8681. rm -f conftest.$ac_objext conftest$ac_exeext
  8682. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8683.   (eval $ac_link) 2>conftest.er1
  8684.   ac_status=$?
  8685.   grep -v '^ *+' conftest.er1 >conftest.err
  8686.   rm -f conftest.er1
  8687.   cat conftest.err >&5
  8688.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8689.   (exit $ac_status); } &&
  8690.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  8691.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8692.   (eval $ac_try) 2>&5
  8693.   ac_status=$?
  8694.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8695.   (exit $ac_status); }; } &&
  8696.      { ac_try='test -s conftest$ac_exeext'
  8697.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8698.   (eval $ac_try) 2>&5
  8699.   ac_status=$?
  8700.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8701.   (exit $ac_status); }; }; then
  8702.   ac_cv_lib_dld_shl_load=yes
  8703. else
  8704.   echo "$as_me: failed program was:" >&5
  8705. sed 's/^/| /' conftest.$ac_ext >&5
  8706.  
  8707. ac_cv_lib_dld_shl_load=no
  8708. fi
  8709. rm -f conftest.err conftest.$ac_objext \
  8710.       conftest$ac_exeext conftest.$ac_ext
  8711. LIBS=$ac_check_lib_save_LIBS
  8712. fi
  8713. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8714. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  8715. if test $ac_cv_lib_dld_shl_load = yes; then
  8716.   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  8717. else
  8718.   echo "$as_me:$LINENO: checking for dlopen" >&5
  8719. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  8720. if test "${ac_cv_func_dlopen+set}" = set; then
  8721.   echo $ECHO_N "(cached) $ECHO_C" >&6
  8722. else
  8723.   cat >conftest.$ac_ext <<_ACEOF
  8724. /* confdefs.h.  */
  8725. _ACEOF
  8726. cat confdefs.h >>conftest.$ac_ext
  8727. cat >>conftest.$ac_ext <<_ACEOF
  8728. /* end confdefs.h.  */
  8729. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8730.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  8731. #define dlopen innocuous_dlopen
  8732.  
  8733. /* System header to define __stub macros and hopefully few prototypes,
  8734.     which can conflict with char dlopen (); below.
  8735.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8736.     <limits.h> exists even on freestanding compilers.  */
  8737.  
  8738. #ifdef __STDC__
  8739. # include <limits.h>
  8740. #else
  8741. # include <assert.h>
  8742. #endif
  8743.  
  8744. #undef dlopen
  8745.  
  8746. /* Override any gcc2 internal prototype to avoid an error.  */
  8747. #ifdef __cplusplus
  8748. extern "C"
  8749. {
  8750. #endif
  8751. /* We use char because int might match the return type of a gcc2
  8752.    builtin and then its argument prototype would still apply.  */
  8753. char dlopen ();
  8754. /* The GNU C library defines this for functions which it implements
  8755.     to always fail with ENOSYS.  Some functions are actually named
  8756.     something starting with __ and the normal name is an alias.  */
  8757. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  8758. choke me
  8759. #else
  8760. char (*f) () = dlopen;
  8761. #endif
  8762. #ifdef __cplusplus
  8763. }
  8764. #endif
  8765.  
  8766. int
  8767. main ()
  8768. {
  8769. return f != dlopen;
  8770.   ;
  8771.   return 0;
  8772. }
  8773. _ACEOF
  8774. rm -f conftest.$ac_objext conftest$ac_exeext
  8775. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8776.   (eval $ac_link) 2>conftest.er1
  8777.   ac_status=$?
  8778.   grep -v '^ *+' conftest.er1 >conftest.err
  8779.   rm -f conftest.er1
  8780.   cat conftest.err >&5
  8781.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8782.   (exit $ac_status); } &&
  8783.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  8784.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8785.   (eval $ac_try) 2>&5
  8786.   ac_status=$?
  8787.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8788.   (exit $ac_status); }; } &&
  8789.      { ac_try='test -s conftest$ac_exeext'
  8790.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8791.   (eval $ac_try) 2>&5
  8792.   ac_status=$?
  8793.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8794.   (exit $ac_status); }; }; then
  8795.   ac_cv_func_dlopen=yes
  8796. else
  8797.   echo "$as_me: failed program was:" >&5
  8798. sed 's/^/| /' conftest.$ac_ext >&5
  8799.  
  8800. ac_cv_func_dlopen=no
  8801. fi
  8802. rm -f conftest.err conftest.$ac_objext \
  8803.       conftest$ac_exeext conftest.$ac_ext
  8804. fi
  8805. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8806. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  8807. if test $ac_cv_func_dlopen = yes; then
  8808.   lt_cv_dlopen="dlopen"
  8809. else
  8810.   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8811. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  8812. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8813.   echo $ECHO_N "(cached) $ECHO_C" >&6
  8814. else
  8815.   ac_check_lib_save_LIBS=$LIBS
  8816. LIBS="-ldl  $LIBS"
  8817. cat >conftest.$ac_ext <<_ACEOF
  8818. /* confdefs.h.  */
  8819. _ACEOF
  8820. cat confdefs.h >>conftest.$ac_ext
  8821. cat >>conftest.$ac_ext <<_ACEOF
  8822. /* end confdefs.h.  */
  8823.  
  8824. /* Override any gcc2 internal prototype to avoid an error.  */
  8825. #ifdef __cplusplus
  8826. extern "C"
  8827. #endif
  8828. /* We use char because int might match the return type of a gcc2
  8829.    builtin and then its argument prototype would still apply.  */
  8830. char dlopen ();
  8831. int
  8832. main ()
  8833. {
  8834. dlopen ();
  8835.   ;
  8836.   return 0;
  8837. }
  8838. _ACEOF
  8839. rm -f conftest.$ac_objext conftest$ac_exeext
  8840. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8841.   (eval $ac_link) 2>conftest.er1
  8842.   ac_status=$?
  8843.   grep -v '^ *+' conftest.er1 >conftest.err
  8844.   rm -f conftest.er1
  8845.   cat conftest.err >&5
  8846.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8847.   (exit $ac_status); } &&
  8848.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  8849.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8850.   (eval $ac_try) 2>&5
  8851.   ac_status=$?
  8852.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8853.   (exit $ac_status); }; } &&
  8854.      { ac_try='test -s conftest$ac_exeext'
  8855.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8856.   (eval $ac_try) 2>&5
  8857.   ac_status=$?
  8858.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8859.   (exit $ac_status); }; }; then
  8860.   ac_cv_lib_dl_dlopen=yes
  8861. else
  8862.   echo "$as_me: failed program was:" >&5
  8863. sed 's/^/| /' conftest.$ac_ext >&5
  8864.  
  8865. ac_cv_lib_dl_dlopen=no
  8866. fi
  8867. rm -f conftest.err conftest.$ac_objext \
  8868.       conftest$ac_exeext conftest.$ac_ext
  8869. LIBS=$ac_check_lib_save_LIBS
  8870. fi
  8871. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8872. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  8873. if test $ac_cv_lib_dl_dlopen = yes; then
  8874.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8875. else
  8876.   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8877. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  8878. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8879.   echo $ECHO_N "(cached) $ECHO_C" >&6
  8880. else
  8881.   ac_check_lib_save_LIBS=$LIBS
  8882. LIBS="-lsvld  $LIBS"
  8883. cat >conftest.$ac_ext <<_ACEOF
  8884. /* confdefs.h.  */
  8885. _ACEOF
  8886. cat confdefs.h >>conftest.$ac_ext
  8887. cat >>conftest.$ac_ext <<_ACEOF
  8888. /* end confdefs.h.  */
  8889.  
  8890. /* Override any gcc2 internal prototype to avoid an error.  */
  8891. #ifdef __cplusplus
  8892. extern "C"
  8893. #endif
  8894. /* We use char because int might match the return type of a gcc2
  8895.    builtin and then its argument prototype would still apply.  */
  8896. char dlopen ();
  8897. int
  8898. main ()
  8899. {
  8900. dlopen ();
  8901.   ;
  8902.   return 0;
  8903. }
  8904. _ACEOF
  8905. rm -f conftest.$ac_objext conftest$ac_exeext
  8906. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8907.   (eval $ac_link) 2>conftest.er1
  8908.   ac_status=$?
  8909.   grep -v '^ *+' conftest.er1 >conftest.err
  8910.   rm -f conftest.er1
  8911.   cat conftest.err >&5
  8912.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8913.   (exit $ac_status); } &&
  8914.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  8915.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8916.   (eval $ac_try) 2>&5
  8917.   ac_status=$?
  8918.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8919.   (exit $ac_status); }; } &&
  8920.      { ac_try='test -s conftest$ac_exeext'
  8921.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8922.   (eval $ac_try) 2>&5
  8923.   ac_status=$?
  8924.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8925.   (exit $ac_status); }; }; then
  8926.   ac_cv_lib_svld_dlopen=yes
  8927. else
  8928.   echo "$as_me: failed program was:" >&5
  8929. sed 's/^/| /' conftest.$ac_ext >&5
  8930.  
  8931. ac_cv_lib_svld_dlopen=no
  8932. fi
  8933. rm -f conftest.err conftest.$ac_objext \
  8934.       conftest$ac_exeext conftest.$ac_ext
  8935. LIBS=$ac_check_lib_save_LIBS
  8936. fi
  8937. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  8938. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  8939. if test $ac_cv_lib_svld_dlopen = yes; then
  8940.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8941. else
  8942.   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  8943. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  8944. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  8945.   echo $ECHO_N "(cached) $ECHO_C" >&6
  8946. else
  8947.   ac_check_lib_save_LIBS=$LIBS
  8948. LIBS="-ldld  $LIBS"
  8949. cat >conftest.$ac_ext <<_ACEOF
  8950. /* confdefs.h.  */
  8951. _ACEOF
  8952. cat confdefs.h >>conftest.$ac_ext
  8953. cat >>conftest.$ac_ext <<_ACEOF
  8954. /* end confdefs.h.  */
  8955.  
  8956. /* Override any gcc2 internal prototype to avoid an error.  */
  8957. #ifdef __cplusplus
  8958. extern "C"
  8959. #endif
  8960. /* We use char because int might match the return type of a gcc2
  8961.    builtin and then its argument prototype would still apply.  */
  8962. char dld_link ();
  8963. int
  8964. main ()
  8965. {
  8966. dld_link ();
  8967.   ;
  8968.   return 0;
  8969. }
  8970. _ACEOF
  8971. rm -f conftest.$ac_objext conftest$ac_exeext
  8972. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8973.   (eval $ac_link) 2>conftest.er1
  8974.   ac_status=$?
  8975.   grep -v '^ *+' conftest.er1 >conftest.err
  8976.   rm -f conftest.er1
  8977.   cat conftest.err >&5
  8978.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8979.   (exit $ac_status); } &&
  8980.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  8981.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8982.   (eval $ac_try) 2>&5
  8983.   ac_status=$?
  8984.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8985.   (exit $ac_status); }; } &&
  8986.      { ac_try='test -s conftest$ac_exeext'
  8987.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8988.   (eval $ac_try) 2>&5
  8989.   ac_status=$?
  8990.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8991.   (exit $ac_status); }; }; then
  8992.   ac_cv_lib_dld_dld_link=yes
  8993. else
  8994.   echo "$as_me: failed program was:" >&5
  8995. sed 's/^/| /' conftest.$ac_ext >&5
  8996.  
  8997. ac_cv_lib_dld_dld_link=no
  8998. fi
  8999. rm -f conftest.err conftest.$ac_objext \
  9000.       conftest$ac_exeext conftest.$ac_ext
  9001. LIBS=$ac_check_lib_save_LIBS
  9002. fi
  9003. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  9004. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  9005. if test $ac_cv_lib_dld_dld_link = yes; then
  9006.   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  9007. fi
  9008.  
  9009.  
  9010. fi
  9011.  
  9012.  
  9013. fi
  9014.  
  9015.  
  9016. fi
  9017.  
  9018.  
  9019. fi
  9020.  
  9021.  
  9022. fi
  9023.  
  9024.     ;;
  9025.   esac
  9026.  
  9027.   if test "x$lt_cv_dlopen" != xno; then
  9028.     enable_dlopen=yes
  9029.   else
  9030.     enable_dlopen=no
  9031.   fi
  9032.  
  9033.   case $lt_cv_dlopen in
  9034.   dlopen)
  9035.     save_CPPFLAGS="$CPPFLAGS"
  9036.     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9037.  
  9038.     save_LDFLAGS="$LDFLAGS"
  9039.     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9040.  
  9041.     save_LIBS="$LIBS"
  9042.     LIBS="$lt_cv_dlopen_libs $LIBS"
  9043.  
  9044.     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  9045. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  9046. if test "${lt_cv_dlopen_self+set}" = set; then
  9047.   echo $ECHO_N "(cached) $ECHO_C" >&6
  9048. else
  9049.         if test "$cross_compiling" = yes; then :
  9050.   lt_cv_dlopen_self=cross
  9051. else
  9052.   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9053.   lt_status=$lt_dlunknown
  9054.   cat > conftest.$ac_ext <<EOF
  9055. #line 9055 "configure"
  9056. #include "confdefs.h"
  9057.  
  9058. #if HAVE_DLFCN_H
  9059. #include <dlfcn.h>
  9060. #endif
  9061.  
  9062. #include <stdio.h>
  9063.  
  9064. #ifdef RTLD_GLOBAL
  9065. #  define LT_DLGLOBAL        RTLD_GLOBAL
  9066. #else
  9067. #  ifdef DL_GLOBAL
  9068. #    define LT_DLGLOBAL        DL_GLOBAL
  9069. #  else
  9070. #    define LT_DLGLOBAL        0
  9071. #  endif
  9072. #endif
  9073.  
  9074. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9075.    find out it does not work in some platform. */
  9076. #ifndef LT_DLLAZY_OR_NOW
  9077. #  ifdef RTLD_LAZY
  9078. #    define LT_DLLAZY_OR_NOW        RTLD_LAZY
  9079. #  else
  9080. #    ifdef DL_LAZY
  9081. #      define LT_DLLAZY_OR_NOW        DL_LAZY
  9082. #    else
  9083. #      ifdef RTLD_NOW
  9084. #        define LT_DLLAZY_OR_NOW    RTLD_NOW
  9085. #      else
  9086. #        ifdef DL_NOW
  9087. #          define LT_DLLAZY_OR_NOW    DL_NOW
  9088. #        else
  9089. #          define LT_DLLAZY_OR_NOW    0
  9090. #        endif
  9091. #      endif
  9092. #    endif
  9093. #  endif
  9094. #endif
  9095.  
  9096. #ifdef __cplusplus
  9097. extern "C" void exit (int);
  9098. #endif
  9099.  
  9100. void fnord() { int i=42;}
  9101. int main ()
  9102. {
  9103.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9104.   int status = $lt_dlunknown;
  9105.  
  9106.   if (self)
  9107.     {
  9108.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  9109.       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9110.       /* dlclose (self); */
  9111.     }
  9112.  
  9113.     exit (status);
  9114. }
  9115. EOF
  9116.   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9117.   (eval $ac_link) 2>&5
  9118.   ac_status=$?
  9119.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9120.   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9121.     (./conftest; exit; ) 2>/dev/null
  9122.     lt_status=$?
  9123.     case x$lt_status in
  9124.       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9125.       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9126.       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  9127.     esac
  9128.   else :
  9129.     # compilation failed
  9130.     lt_cv_dlopen_self=no
  9131.   fi
  9132. fi
  9133. rm -fr conftest*
  9134.  
  9135.  
  9136. fi
  9137. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  9138. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  9139.  
  9140.     if test "x$lt_cv_dlopen_self" = xyes; then
  9141.       LDFLAGS="$LDFLAGS $link_static_flag"
  9142.       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  9143. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  9144. if test "${lt_cv_dlopen_self_static+set}" = set; then
  9145.   echo $ECHO_N "(cached) $ECHO_C" >&6
  9146. else
  9147.         if test "$cross_compiling" = yes; then :
  9148.   lt_cv_dlopen_self_static=cross
  9149. else
  9150.   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9151.   lt_status=$lt_dlunknown
  9152.   cat > conftest.$ac_ext <<EOF
  9153. #line 9153 "configure"
  9154. #include "confdefs.h"
  9155.  
  9156. #if HAVE_DLFCN_H
  9157. #include <dlfcn.h>
  9158. #endif
  9159.  
  9160. #include <stdio.h>
  9161.  
  9162. #ifdef RTLD_GLOBAL
  9163. #  define LT_DLGLOBAL        RTLD_GLOBAL
  9164. #else
  9165. #  ifdef DL_GLOBAL
  9166. #    define LT_DLGLOBAL        DL_GLOBAL
  9167. #  else
  9168. #    define LT_DLGLOBAL        0
  9169. #  endif
  9170. #endif
  9171.  
  9172. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9173.    find out it does not work in some platform. */
  9174. #ifndef LT_DLLAZY_OR_NOW
  9175. #  ifdef RTLD_LAZY
  9176. #    define LT_DLLAZY_OR_NOW        RTLD_LAZY
  9177. #  else
  9178. #    ifdef DL_LAZY
  9179. #      define LT_DLLAZY_OR_NOW        DL_LAZY
  9180. #    else
  9181. #      ifdef RTLD_NOW
  9182. #        define LT_DLLAZY_OR_NOW    RTLD_NOW
  9183. #      else
  9184. #        ifdef DL_NOW
  9185. #          define LT_DLLAZY_OR_NOW    DL_NOW
  9186. #        else
  9187. #          define LT_DLLAZY_OR_NOW    0
  9188. #        endif
  9189. #      endif
  9190. #    endif
  9191. #  endif
  9192. #endif
  9193.  
  9194. #ifdef __cplusplus
  9195. extern "C" void exit (int);
  9196. #endif
  9197.  
  9198. void fnord() { int i=42;}
  9199. int main ()
  9200. {
  9201.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9202.   int status = $lt_dlunknown;
  9203.  
  9204.   if (self)
  9205.     {
  9206.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  9207.       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9208.       /* dlclose (self); */
  9209.     }
  9210.  
  9211.     exit (status);
  9212. }
  9213. EOF
  9214.   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9215.   (eval $ac_link) 2>&5
  9216.   ac_status=$?
  9217.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9218.   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9219.     (./conftest; exit; ) 2>/dev/null
  9220.     lt_status=$?
  9221.     case x$lt_status in
  9222.       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9223.       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9224.       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  9225.     esac
  9226.   else :
  9227.     # compilation failed
  9228.     lt_cv_dlopen_self_static=no
  9229.   fi
  9230. fi
  9231. rm -fr conftest*
  9232.  
  9233.  
  9234. fi
  9235. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  9236. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  9237.     fi
  9238.  
  9239.     CPPFLAGS="$save_CPPFLAGS"
  9240.     LDFLAGS="$save_LDFLAGS"
  9241.     LIBS="$save_LIBS"
  9242.     ;;
  9243.   esac
  9244.  
  9245.   case $lt_cv_dlopen_self in
  9246.   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9247.   *) enable_dlopen_self=unknown ;;
  9248.   esac
  9249.  
  9250.   case $lt_cv_dlopen_self_static in
  9251.   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9252.   *) enable_dlopen_self_static=unknown ;;
  9253.   esac
  9254. fi
  9255.  
  9256.  
  9257. # Report which librarie types wil actually be built
  9258. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  9259. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  9260. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  9261. echo "${ECHO_T}$can_build_shared" >&6
  9262.  
  9263. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  9264. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  9265. test "$can_build_shared" = "no" && enable_shared=no
  9266.  
  9267. # On AIX, shared libraries and static libraries use the same namespace, and
  9268. # are all built from PIC.
  9269. case "$host_os" in
  9270. aix3*)
  9271.   test "$enable_shared" = yes && enable_static=no
  9272.   if test -n "$RANLIB"; then
  9273.     archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9274.     postinstall_cmds='$RANLIB $lib'
  9275.   fi
  9276.   ;;
  9277.  
  9278. aix4* | aix5*)
  9279.   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9280.     test "$enable_shared" = yes && enable_static=no
  9281.   fi
  9282.   ;;
  9283.   darwin* | rhapsody*)
  9284.   if test "$GCC" = yes; then
  9285.     archive_cmds_need_lc=no
  9286.     case "$host_os" in
  9287.     rhapsody* | darwin1.[012])
  9288.       allow_undefined_flag='-undefined suppress'
  9289.       ;;
  9290.     *) # Darwin 1.3 on
  9291.       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  9292.           allow_undefined_flag='-flat_namespace -undefined suppress'
  9293.       else
  9294.         case ${MACOSX_DEPLOYMENT_TARGET} in
  9295.           10.[012])
  9296.             allow_undefined_flag='-flat_namespace -undefined suppress'
  9297.             ;;
  9298.           10.*)
  9299.             allow_undefined_flag='-undefined dynamic_lookup'
  9300.             ;;
  9301.         esac
  9302.       fi
  9303.       ;;
  9304.     esac
  9305.     output_verbose_link_cmd='echo'
  9306.     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
  9307.     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9308.     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  9309.     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}'
  9310.     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}'
  9311.     hardcode_direct=no
  9312.     hardcode_automatic=yes
  9313.     hardcode_shlibpath_var=unsupported
  9314.     whole_archive_flag_spec='-all_load $convenience'
  9315.     link_all_deplibs=yes
  9316.   else
  9317.     ld_shlibs=no
  9318.   fi
  9319.     ;;
  9320. esac
  9321. echo "$as_me:$LINENO: result: $enable_shared" >&5
  9322. echo "${ECHO_T}$enable_shared" >&6
  9323.  
  9324. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9325. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  9326. # Make sure either enable_shared or enable_static is yes.
  9327. test "$enable_shared" = yes || enable_static=yes
  9328. echo "$as_me:$LINENO: result: $enable_static" >&5
  9329. echo "${ECHO_T}$enable_static" >&6
  9330.  
  9331. # The else clause should only fire when bootstrapping the
  9332. # libtool distribution, otherwise you forgot to ship ltmain.sh
  9333. # with your package, and you will get complaints that there are
  9334. # no rules to generate ltmain.sh.
  9335. if test -f "$ltmain"; then
  9336.   # See if we are running on zsh, and set the options which allow our commands through
  9337.   # without removal of \ escapes.
  9338.   if test -n "${ZSH_VERSION+set}" ; then
  9339.     setopt NO_GLOB_SUBST
  9340.   fi
  9341.   # Now quote all the things that may contain metacharacters while being
  9342.   # careful not to overquote the AC_SUBSTed values.  We take copies of the
  9343.   # variables and quote the copies for generation of the libtool script.
  9344.   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  9345.     SED SHELL STRIP \
  9346.     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  9347.     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  9348.     deplibs_check_method reload_flag reload_cmds need_locks \
  9349.     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  9350.     lt_cv_sys_global_symbol_to_c_name_address \
  9351.     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  9352.     old_postinstall_cmds old_postuninstall_cmds \
  9353.     compiler \
  9354.     CC \
  9355.     LD \
  9356.     lt_prog_compiler_wl \
  9357.     lt_prog_compiler_pic \
  9358.     lt_prog_compiler_static \
  9359.     lt_prog_compiler_no_builtin_flag \
  9360.     export_dynamic_flag_spec \
  9361.     thread_safe_flag_spec \
  9362.     whole_archive_flag_spec \
  9363.     enable_shared_with_static_runtimes \
  9364.     old_archive_cmds \
  9365.     old_archive_from_new_cmds \
  9366.     predep_objects \
  9367.     postdep_objects \
  9368.     predeps \
  9369.     postdeps \
  9370.     compiler_lib_search_path \
  9371.     archive_cmds \
  9372.     archive_expsym_cmds \
  9373.     postinstall_cmds \
  9374.     postuninstall_cmds \
  9375.     old_archive_from_expsyms_cmds \
  9376.     allow_undefined_flag \
  9377.     no_undefined_flag \
  9378.     export_symbols_cmds \
  9379.     hardcode_libdir_flag_spec \
  9380.     hardcode_libdir_flag_spec_ld \
  9381.     hardcode_libdir_separator \
  9382.     hardcode_automatic \
  9383.     module_cmds \
  9384.     module_expsym_cmds \
  9385.     lt_cv_prog_compiler_c_o \
  9386.     exclude_expsyms \
  9387.     include_expsyms; do
  9388.  
  9389.     case $var in
  9390.     old_archive_cmds | \
  9391.     old_archive_from_new_cmds | \
  9392.     archive_cmds | \
  9393.     archive_expsym_cmds | \
  9394.     module_cmds | \
  9395.     module_expsym_cmds | \
  9396.     old_archive_from_expsyms_cmds | \
  9397.     export_symbols_cmds | \
  9398.     extract_expsyms_cmds | reload_cmds | finish_cmds | \
  9399.     postinstall_cmds | postuninstall_cmds | \
  9400.     old_postinstall_cmds | old_postuninstall_cmds | \
  9401.     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  9402.       # Double-quote double-evaled strings.
  9403.       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  9404.       ;;
  9405.     *)
  9406.       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  9407.       ;;
  9408.     esac
  9409.   done
  9410.  
  9411.   case $lt_echo in
  9412.   *'\$0 --fallback-echo"')
  9413.     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  9414.     ;;
  9415.   esac
  9416.  
  9417. cfgfile="${ofile}T"
  9418.   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  9419.   $rm -f "$cfgfile"
  9420.   { echo "$as_me:$LINENO: creating $ofile" >&5
  9421. echo "$as_me: creating $ofile" >&6;}
  9422.  
  9423.   cat <<__EOF__ >> "$cfgfile"
  9424. #! $SHELL
  9425.  
  9426. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  9427. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  9428. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  9429. #
  9430. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  9431. # Free Software Foundation, Inc.
  9432. #
  9433. # This file is part of GNU Libtool:
  9434. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  9435. #
  9436. # This program is free software; you can redistribute it and/or modify
  9437. # it under the terms of the GNU General Public License as published by
  9438. # the Free Software Foundation; either version 2 of the License, or
  9439. # (at your option) any later version.
  9440. #
  9441. # This program is distributed in the hope that it will be useful, but
  9442. # WITHOUT ANY WARRANTY; without even the implied warranty of
  9443. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  9444. # General Public License for more details.
  9445. #
  9446. # You should have received a copy of the GNU General Public License
  9447. # along with this program; if not, write to the Free Software
  9448. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  9449. #
  9450. # As a special exception to the GNU General Public License, if you
  9451. # distribute this file as part of a program that contains a
  9452. # configuration script generated by Autoconf, you may include it under
  9453. # the same distribution terms that you use for the rest of that program.
  9454.  
  9455. # A sed program that does not truncate output.
  9456. SED=$lt_SED
  9457.  
  9458. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  9459. Xsed="$SED -e s/^X//"
  9460.  
  9461. # The HP-UX ksh and POSIX shell print the target directory to stdout
  9462. # if CDPATH is set.
  9463. if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  9464.  
  9465. # The names of the tagged configurations supported by this script.
  9466. available_tags=
  9467.  
  9468. # ### BEGIN LIBTOOL CONFIG
  9469.  
  9470. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  9471.  
  9472. # Shell to use when invoking shell scripts.
  9473. SHELL=$lt_SHELL
  9474.  
  9475. # Whether or not to build shared libraries.
  9476. build_libtool_libs=$enable_shared
  9477.  
  9478. # Whether or not to build static libraries.
  9479. build_old_libs=$enable_static
  9480.  
  9481. # Whether or not to add -lc for building shared libraries.
  9482. build_libtool_need_lc=$archive_cmds_need_lc
  9483.  
  9484. # Whether or not to disallow shared libs when runtime libs are static
  9485. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  9486.  
  9487. # Whether or not to optimize for fast installation.
  9488. fast_install=$enable_fast_install
  9489.  
  9490. # The host system.
  9491. host_alias=$host_alias
  9492. host=$host
  9493.  
  9494. # An echo program that does not interpret backslashes.
  9495. echo=$lt_echo
  9496.  
  9497. # The archiver.
  9498. AR=$lt_AR
  9499. AR_FLAGS=$lt_AR_FLAGS
  9500.  
  9501. # A C compiler.
  9502. LTCC=$lt_LTCC
  9503.  
  9504. # A language-specific compiler.
  9505. CC=$lt_compiler
  9506.  
  9507. # Is the compiler the GNU C compiler?
  9508. with_gcc=$GCC
  9509.  
  9510. # An ERE matcher.
  9511. EGREP=$lt_EGREP
  9512.  
  9513. # The linker used to build libraries.
  9514. LD=$lt_LD
  9515.  
  9516. # Whether we need hard or soft links.
  9517. LN_S=$lt_LN_S
  9518.  
  9519. # A BSD-compatible nm program.
  9520. NM=$lt_NM
  9521.  
  9522. # A symbol stripping program
  9523. STRIP=$lt_STRIP
  9524.  
  9525. # Used to examine libraries when file_magic_cmd begins "file"
  9526. MAGIC_CMD=$MAGIC_CMD
  9527.  
  9528. # Used on cygwin: DLL creation program.
  9529. DLLTOOL="$DLLTOOL"
  9530.  
  9531. # Used on cygwin: object dumper.
  9532. OBJDUMP="$OBJDUMP"
  9533.  
  9534. # Used on cygwin: assembler.
  9535. AS="$AS"
  9536.  
  9537. # The name of the directory that contains temporary libtool files.
  9538. objdir=$objdir
  9539.  
  9540. # How to create reloadable object files.
  9541. reload_flag=$lt_reload_flag
  9542. reload_cmds=$lt_reload_cmds
  9543.  
  9544. # How to pass a linker flag through the compiler.
  9545. wl=$lt_lt_prog_compiler_wl
  9546.  
  9547. # Object file suffix (normally "o").
  9548. objext="$ac_objext"
  9549.  
  9550. # Old archive suffix (normally "a").
  9551. libext="$libext"
  9552.  
  9553. # Shared library suffix (normally ".so").
  9554. shrext_cmds='$shrext_cmds'
  9555.  
  9556. # Executable file suffix (normally "").
  9557. exeext="$exeext"
  9558.  
  9559. # Additional compiler flags for building library objects.
  9560. pic_flag=$lt_lt_prog_compiler_pic
  9561. pic_mode=$pic_mode
  9562.  
  9563. # What is the maximum length of a command?
  9564. max_cmd_len=$lt_cv_sys_max_cmd_len
  9565.  
  9566. # Does compiler simultaneously support -c and -o options?
  9567. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  9568.  
  9569. # Must we lock files when doing compilation ?
  9570. need_locks=$lt_need_locks
  9571.  
  9572. # Do we need the lib prefix for modules?
  9573. need_lib_prefix=$need_lib_prefix
  9574.  
  9575. # Do we need a version for libraries?
  9576. need_version=$need_version
  9577.  
  9578. # Whether dlopen is supported.
  9579. dlopen_support=$enable_dlopen
  9580.  
  9581. # Whether dlopen of programs is supported.
  9582. dlopen_self=$enable_dlopen_self
  9583.  
  9584. # Whether dlopen of statically linked programs is supported.
  9585. dlopen_self_static=$enable_dlopen_self_static
  9586.  
  9587. # Compiler flag to prevent dynamic linking.
  9588. link_static_flag=$lt_lt_prog_compiler_static
  9589.  
  9590. # Compiler flag to turn off builtin functions.
  9591. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  9592.  
  9593. # Compiler flag to allow reflexive dlopens.
  9594. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  9595.  
  9596. # Compiler flag to generate shared objects directly from archives.
  9597. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  9598.  
  9599. # Compiler flag to generate thread-safe objects.
  9600. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  9601.  
  9602. # Library versioning type.
  9603. version_type=$version_type
  9604.  
  9605. # Format of library name prefix.
  9606. libname_spec=$lt_libname_spec
  9607.  
  9608. # List of archive names.  First name is the real one, the rest are links.
  9609. # The last name is the one that the linker finds with -lNAME.
  9610. library_names_spec=$lt_library_names_spec
  9611.  
  9612. # The coded name of the library, if different from the real name.
  9613. soname_spec=$lt_soname_spec
  9614.  
  9615. # Commands used to build and install an old-style archive.
  9616. RANLIB=$lt_RANLIB
  9617. old_archive_cmds=$lt_old_archive_cmds
  9618. old_postinstall_cmds=$lt_old_postinstall_cmds
  9619. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  9620.  
  9621. # Create an old-style archive from a shared archive.
  9622. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  9623.  
  9624. # Create a temporary old-style archive to link instead of a shared archive.
  9625. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  9626.  
  9627. # Commands used to build and install a shared archive.
  9628. archive_cmds=$lt_archive_cmds
  9629. archive_expsym_cmds=$lt_archive_expsym_cmds
  9630. postinstall_cmds=$lt_postinstall_cmds
  9631. postuninstall_cmds=$lt_postuninstall_cmds
  9632.  
  9633. # Commands used to build a loadable module (assumed same as above if empty)
  9634. module_cmds=$lt_module_cmds
  9635. module_expsym_cmds=$lt_module_expsym_cmds
  9636.  
  9637. # Commands to strip libraries.
  9638. old_striplib=$lt_old_striplib
  9639. striplib=$lt_striplib
  9640.  
  9641. # Dependencies to place before the objects being linked to create a
  9642. # shared library.
  9643. predep_objects=$lt_predep_objects
  9644.  
  9645. # Dependencies to place after the objects being linked to create a
  9646. # shared library.
  9647. postdep_objects=$lt_postdep_objects
  9648.  
  9649. # Dependencies to place before the objects being linked to create a
  9650. # shared library.
  9651. predeps=$lt_predeps
  9652.  
  9653. # Dependencies to place after the objects being linked to create a
  9654. # shared library.
  9655. postdeps=$lt_postdeps
  9656.  
  9657. # The library search path used internally by the compiler when linking
  9658. # a shared library.
  9659. compiler_lib_search_path=$lt_compiler_lib_search_path
  9660.  
  9661. # Method to check whether dependent libraries are shared objects.
  9662. deplibs_check_method=$lt_deplibs_check_method
  9663.  
  9664. # Command to use when deplibs_check_method == file_magic.
  9665. file_magic_cmd=$lt_file_magic_cmd
  9666.  
  9667. # Flag that allows shared libraries with undefined symbols to be built.
  9668. allow_undefined_flag=$lt_allow_undefined_flag
  9669.  
  9670. # Flag that forces no undefined symbols.
  9671. no_undefined_flag=$lt_no_undefined_flag
  9672.  
  9673. # Commands used to finish a libtool library installation in a directory.
  9674. finish_cmds=$lt_finish_cmds
  9675.  
  9676. # Same as above, but a single script fragment to be evaled but not shown.
  9677. finish_eval=$lt_finish_eval
  9678.  
  9679. # Take the output of nm and produce a listing of raw symbols and C names.
  9680. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  9681.  
  9682. # Transform the output of nm in a proper C declaration
  9683. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  9684.  
  9685. # Transform the output of nm in a C name address pair
  9686. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  9687.  
  9688. # This is the shared library runtime path variable.
  9689. runpath_var=$runpath_var
  9690.  
  9691. # This is the shared library path variable.
  9692. shlibpath_var=$shlibpath_var
  9693.  
  9694. # Is shlibpath searched before the hard-coded library search path?
  9695. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  9696.  
  9697. # How to hardcode a shared library path into an executable.
  9698. hardcode_action=$hardcode_action
  9699.  
  9700. # Whether we should hardcode library paths into libraries.
  9701. hardcode_into_libs=$hardcode_into_libs
  9702.  
  9703. # Flag to hardcode \$libdir into a binary during linking.
  9704. # This must work even if \$libdir does not exist.
  9705. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  9706.  
  9707. # If ld is used when linking, flag to hardcode \$libdir into
  9708. # a binary during linking. This must work even if \$libdir does
  9709. # not exist.
  9710. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  9711.  
  9712. # Whether we need a single -rpath flag with a separated argument.
  9713. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  9714.  
  9715. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  9716. # resulting binary.
  9717. hardcode_direct=$hardcode_direct
  9718.  
  9719. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  9720. # resulting binary.
  9721. hardcode_minus_L=$hardcode_minus_L
  9722.  
  9723. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  9724. # the resulting binary.
  9725. hardcode_shlibpath_var=$hardcode_shlibpath_var
  9726.  
  9727. # Set to yes if building a shared library automatically hardcodes DIR into the library
  9728. # and all subsequent libraries and executables linked against it.
  9729. hardcode_automatic=$hardcode_automatic
  9730.  
  9731. # Variables whose values should be saved in libtool wrapper scripts and
  9732. # restored at relink time.
  9733. variables_saved_for_relink="$variables_saved_for_relink"
  9734.  
  9735. # Whether libtool must link a program against all its dependency libraries.
  9736. link_all_deplibs=$link_all_deplibs
  9737.  
  9738. # Compile-time system search path for libraries
  9739. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  9740.  
  9741. # Run-time system search path for libraries
  9742. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  9743.  
  9744. # Fix the shell variable \$srcfile for the compiler.
  9745. fix_srcfile_path="$fix_srcfile_path"
  9746.  
  9747. # Set to yes if exported symbols are required.
  9748. always_export_symbols=$always_export_symbols
  9749.  
  9750. # The commands to list exported symbols.
  9751. export_symbols_cmds=$lt_export_symbols_cmds
  9752.  
  9753. # The commands to extract the exported symbol list from a shared archive.
  9754. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  9755.  
  9756. # Symbols that should not be listed in the preloaded symbols.
  9757. exclude_expsyms=$lt_exclude_expsyms
  9758.  
  9759. # Symbols that must always be exported.
  9760. include_expsyms=$lt_include_expsyms
  9761.  
  9762. # ### END LIBTOOL CONFIG
  9763.  
  9764. __EOF__
  9765.  
  9766.  
  9767.   case $host_os in
  9768.   aix3*)
  9769.     cat <<\EOF >> "$cfgfile"
  9770.  
  9771. # AIX sometimes has problems with the GCC collect2 program.  For some
  9772. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9773. # vanish in a puff of smoke.
  9774. if test "X${COLLECT_NAMES+set}" != Xset; then
  9775.   COLLECT_NAMES=
  9776.   export COLLECT_NAMES
  9777. fi
  9778. EOF
  9779.     ;;
  9780.   esac
  9781.  
  9782.   # We use sed instead of cat because bash on DJGPP gets confused if
  9783.   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  9784.   # text mode, it properly converts lines to CR/LF.  This bash problem
  9785.   # is reportedly fixed, but why not run on old versions too?
  9786.   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  9787.  
  9788.   mv -f "$cfgfile" "$ofile" || \
  9789.     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  9790.   chmod +x "$ofile"
  9791.  
  9792. else
  9793.   # If there is no Makefile yet, we rely on a make rule to execute
  9794.   # `config.status --recheck' to rerun these tests and create the
  9795.   # libtool script then.
  9796.   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  9797.   if test -f "$ltmain_in"; then
  9798.     test -f Makefile && make "$ltmain"
  9799.   fi
  9800. fi
  9801.  
  9802.  
  9803. ac_ext=c
  9804. ac_cpp='$CPP $CPPFLAGS'
  9805. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9806. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9807. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9808.  
  9809. CC="$lt_save_CC"
  9810.  
  9811.  
  9812. # Check whether --with-tags or --without-tags was given.
  9813. if test "${with_tags+set}" = set; then
  9814.   withval="$with_tags"
  9815.   tagnames="$withval"
  9816. fi;
  9817.  
  9818. if test -f "$ltmain" && test -n "$tagnames"; then
  9819.   if test ! -f "${ofile}"; then
  9820.     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  9821. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  9822.   fi
  9823.  
  9824.   if test -z "$LTCC"; then
  9825.     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  9826.     if test -z "$LTCC"; then
  9827.       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  9828. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  9829.     else
  9830.       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  9831. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  9832.     fi
  9833.   fi
  9834.  
  9835.   # Extract list of available tagged configurations in $ofile.
  9836.   # Note that this assumes the entire list is on one line.
  9837.   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  9838.  
  9839.   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9840.   for tagname in $tagnames; do
  9841.     IFS="$lt_save_ifs"
  9842.     # Check whether tagname contains only valid characters
  9843.     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  9844.     "") ;;
  9845.     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  9846. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  9847.    { (exit 1); exit 1; }; }
  9848.     ;;
  9849.     esac
  9850.  
  9851.     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  9852.     then
  9853.       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  9854. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  9855.    { (exit 1); exit 1; }; }
  9856.     fi
  9857.  
  9858.     # Update the list of available tags.
  9859.     if test -n "$tagname"; then
  9860.       echo appending configuration tag \"$tagname\" to $ofile
  9861.  
  9862.       case $tagname in
  9863.       CXX)
  9864.     if test -n "$CXX" && test "X$CXX" != "Xno"; then
  9865.       ac_ext=cc
  9866. ac_cpp='$CXXCPP $CPPFLAGS'
  9867. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9868. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9869. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9870.  
  9871.  
  9872.  
  9873.  
  9874. archive_cmds_need_lc_CXX=no
  9875. allow_undefined_flag_CXX=
  9876. always_export_symbols_CXX=no
  9877. archive_expsym_cmds_CXX=
  9878. export_dynamic_flag_spec_CXX=
  9879. hardcode_direct_CXX=no
  9880. hardcode_libdir_flag_spec_CXX=
  9881. hardcode_libdir_flag_spec_ld_CXX=
  9882. hardcode_libdir_separator_CXX=
  9883. hardcode_minus_L_CXX=no
  9884. hardcode_automatic_CXX=no
  9885. module_cmds_CXX=
  9886. module_expsym_cmds_CXX=
  9887. link_all_deplibs_CXX=unknown
  9888. old_archive_cmds_CXX=$old_archive_cmds
  9889. no_undefined_flag_CXX=
  9890. whole_archive_flag_spec_CXX=
  9891. enable_shared_with_static_runtimes_CXX=no
  9892.  
  9893. # Dependencies to place before and after the object being linked:
  9894. predep_objects_CXX=
  9895. postdep_objects_CXX=
  9896. predeps_CXX=
  9897. postdeps_CXX=
  9898. compiler_lib_search_path_CXX=
  9899.  
  9900. # Source file extension for C++ test sources.
  9901. ac_ext=cc
  9902.  
  9903. # Object file extension for compiled C++ test sources.
  9904. objext=o
  9905. objext_CXX=$objext
  9906.  
  9907. # Code to be used in simple compile tests
  9908. lt_simple_compile_test_code="int some_variable = 0;\n"
  9909.  
  9910. # Code to be used in simple link tests
  9911. lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
  9912.  
  9913. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9914.  
  9915. # If no C compiler was specified, use CC.
  9916. LTCC=${LTCC-"$CC"}
  9917.  
  9918. # Allow CC to be a program name with arguments.
  9919. compiler=$CC
  9920.  
  9921.  
  9922. # Allow CC to be a program name with arguments.
  9923. lt_save_CC=$CC
  9924. lt_save_LD=$LD
  9925. lt_save_GCC=$GCC
  9926. GCC=$GXX
  9927. lt_save_with_gnu_ld=$with_gnu_ld
  9928. lt_save_path_LD=$lt_cv_path_LD
  9929. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9930.   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9931. else
  9932.   unset lt_cv_prog_gnu_ld
  9933. fi
  9934. if test -n "${lt_cv_path_LDCXX+set}"; then
  9935.   lt_cv_path_LD=$lt_cv_path_LDCXX
  9936. else
  9937.   unset lt_cv_path_LD
  9938. fi
  9939. test -z "${LDCXX+set}" || LD=$LDCXX
  9940. CC=${CXX-"c++"}
  9941. compiler=$CC
  9942. compiler_CXX=$CC
  9943. cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  9944.  
  9945. # We don't want -fno-exception wen compiling C++ code, so set the
  9946. # no_builtin_flag separately
  9947. if test "$GXX" = yes; then
  9948.   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9949. else
  9950.   lt_prog_compiler_no_builtin_flag_CXX=
  9951. fi
  9952.  
  9953. if test "$GXX" = yes; then
  9954.   # Set up default GNU C++ configuration
  9955.  
  9956.  
  9957. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  9958. if test "${with_gnu_ld+set}" = set; then
  9959.   withval="$with_gnu_ld"
  9960.   test "$withval" = no || with_gnu_ld=yes
  9961. else
  9962.   with_gnu_ld=no
  9963. fi;
  9964. ac_prog=ld
  9965. if test "$GCC" = yes; then
  9966.   # Check if gcc -print-prog-name=ld gives a path.
  9967.   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  9968. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  9969.   case $host in
  9970.   *-*-mingw*)
  9971.     # gcc leaves a trailing carriage return which upsets mingw
  9972.     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9973.   *)
  9974.     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9975.   esac
  9976.   case $ac_prog in
  9977.     # Accept absolute paths.
  9978.     [\\/]* | ?:[\\/]*)
  9979.       re_direlt='/[^/][^/]*/\.\./'
  9980.       # Canonicalize the pathname of ld
  9981.       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  9982.       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  9983.     ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  9984.       done
  9985.       test -z "$LD" && LD="$ac_prog"
  9986.       ;;
  9987.   "")
  9988.     # If it fails, then pretend we aren't using GCC.
  9989.     ac_prog=ld
  9990.     ;;
  9991.   *)
  9992.     # If it is relative, then search for the first ld in PATH.
  9993.     with_gnu_ld=unknown
  9994.     ;;
  9995.   esac
  9996. elif test "$with_gnu_ld" = yes; then
  9997.   echo "$as_me:$LINENO: checking for GNU ld" >&5
  9998. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  9999. else
  10000.   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  10001. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  10002. fi
  10003. if test "${lt_cv_path_LD+set}" = set; then
  10004.   echo $ECHO_N "(cached) $ECHO_C" >&6
  10005. else
  10006.   if test -z "$LD"; then
  10007.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10008.   for ac_dir in $PATH; do
  10009.     IFS="$lt_save_ifs"
  10010.     test -z "$ac_dir" && ac_dir=.
  10011.     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10012.       lt_cv_path_LD="$ac_dir/$ac_prog"
  10013.       # Check to see if the program is GNU ld.  I'd rather use --version,
  10014.       # but apparently some GNU ld's only accept -v.
  10015.       # Break only if it was the GNU/non-GNU ld that we prefer.
  10016.       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10017.       *GNU* | *'with BFD'*)
  10018.     test "$with_gnu_ld" != no && break
  10019.     ;;
  10020.       *)
  10021.     test "$with_gnu_ld" != yes && break
  10022.     ;;
  10023.       esac
  10024.     fi
  10025.   done
  10026.   IFS="$lt_save_ifs"
  10027. else
  10028.   lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10029. fi
  10030. fi
  10031.  
  10032. LD="$lt_cv_path_LD"
  10033. if test -n "$LD"; then
  10034.   echo "$as_me:$LINENO: result: $LD" >&5
  10035. echo "${ECHO_T}$LD" >&6
  10036. else
  10037.   echo "$as_me:$LINENO: result: no" >&5
  10038. echo "${ECHO_T}no" >&6
  10039. fi
  10040. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  10041. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  10042.    { (exit 1); exit 1; }; }
  10043. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  10044. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  10045. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  10046.   echo $ECHO_N "(cached) $ECHO_C" >&6
  10047. else
  10048.   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  10049. case `$LD -v 2>&1 </dev/null` in
  10050. *GNU* | *'with BFD'*)
  10051.   lt_cv_prog_gnu_ld=yes
  10052.   ;;
  10053. *)
  10054.   lt_cv_prog_gnu_ld=no
  10055.   ;;
  10056. esac
  10057. fi
  10058. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  10059. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  10060. with_gnu_ld=$lt_cv_prog_gnu_ld
  10061.  
  10062.  
  10063.  
  10064.   # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10065.   # archiving commands below assume that GNU ld is being used.
  10066.   if test "$with_gnu_ld" = yes; then
  10067.     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10068.     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'
  10069.  
  10070.     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10071.     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10072.  
  10073.     # If archive_cmds runs LD, not CC, wlarc should be empty
  10074.     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10075.     #     investigate it a little bit more. (MM)
  10076.     wlarc='${wl}'
  10077.  
  10078.     # ancient GNU ld didn't support --whole-archive et. al.
  10079.     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  10080.     grep 'no-whole-archive' > /dev/null; then
  10081.       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10082.     else
  10083.       whole_archive_flag_spec_CXX=
  10084.     fi
  10085.   else
  10086.     with_gnu_ld=no
  10087.     wlarc=
  10088.  
  10089.     # A generic and very simple default shared library creation
  10090.     # command for GNU C++ for the case where it uses the native
  10091.     # linker, instead of GNU ld.  If possible, this setting should
  10092.     # overridden to take advantage of the native linker features on
  10093.     # the platform it is being used on.
  10094.     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10095.   fi
  10096.  
  10097.   # Commands to make compiler produce verbose output that lists
  10098.   # what "hidden" libraries, object files and flags are used when
  10099.   # linking a shared library.
  10100.   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10101.  
  10102. else
  10103.   GXX=no
  10104.   with_gnu_ld=no
  10105.   wlarc=
  10106. fi
  10107.  
  10108. # PORTME: fill in a description of your system's C++ link characteristics
  10109. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10110. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  10111. ld_shlibs_CXX=yes
  10112. case $host_os in
  10113.   aix3*)
  10114.     # FIXME: insert proper C++ library support
  10115.     ld_shlibs_CXX=no
  10116.     ;;
  10117.   aix4* | aix5*)
  10118.     if test "$host_cpu" = ia64; then
  10119.       # On IA64, the linker does run time linking by default, so we don't
  10120.       # have to do anything special.
  10121.       aix_use_runtimelinking=no
  10122.       exp_sym_flag='-Bexport'
  10123.       no_entry_flag=""
  10124.     else
  10125.       aix_use_runtimelinking=no
  10126.  
  10127.       # Test if we are trying to use run time linking or normal
  10128.       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10129.       # need to do runtime linking.
  10130.       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  10131.     for ld_flag in $LDFLAGS; do
  10132.       case $ld_flag in
  10133.       *-brtl*)
  10134.         aix_use_runtimelinking=yes
  10135.         break
  10136.         ;;
  10137.       esac
  10138.     done
  10139.       esac
  10140.  
  10141.       exp_sym_flag='-bexport'
  10142.       no_entry_flag='-bnoentry'
  10143.     fi
  10144.  
  10145.     # When large executables or shared objects are built, AIX ld can
  10146.     # have problems creating the table of contents.  If linking a library
  10147.     # or program results in "error TOC overflow" add -mminimal-toc to
  10148.     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  10149.     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10150.  
  10151.     archive_cmds_CXX=''
  10152.     hardcode_direct_CXX=yes
  10153.     hardcode_libdir_separator_CXX=':'
  10154.     link_all_deplibs_CXX=yes
  10155.  
  10156.     if test "$GXX" = yes; then
  10157.       case $host_os in aix4.012|aix4.012.*)
  10158.       # We only want to do this on AIX 4.2 and lower, the check
  10159.       # below for broken collect2 doesn't work under 4.3+
  10160.     collect2name=`${CC} -print-prog-name=collect2`
  10161.     if test -f "$collect2name" && \
  10162.        strings "$collect2name" | grep resolve_lib_name >/dev/null
  10163.     then
  10164.       # We have reworked collect2
  10165.       hardcode_direct_CXX=yes
  10166.     else
  10167.       # We have old collect2
  10168.       hardcode_direct_CXX=unsupported
  10169.       # It fails to find uninstalled libraries when the uninstalled
  10170.       # path is not listed in the libpath.  Setting hardcode_minus_L
  10171.       # to unsupported forces relinking
  10172.       hardcode_minus_L_CXX=yes
  10173.       hardcode_libdir_flag_spec_CXX='-L$libdir'
  10174.       hardcode_libdir_separator_CXX=
  10175.     fi
  10176.       esac
  10177.       shared_flag='-shared'
  10178.     else
  10179.       # not using gcc
  10180.       if test "$host_cpu" = ia64; then
  10181.     # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10182.     # chokes on -Wl,-G. The following line is correct:
  10183.     shared_flag='-G'
  10184.       else
  10185.     if test "$aix_use_runtimelinking" = yes; then
  10186.       shared_flag='${wl}-G'
  10187.     else
  10188.       shared_flag='${wl}-bM:SRE'
  10189.     fi
  10190.       fi
  10191.     fi
  10192.  
  10193.     # It seems that -bexpall does not export symbols beginning with
  10194.     # underscore (_), so it is better to generate a list of symbols to export.
  10195.     always_export_symbols_CXX=yes
  10196.     if test "$aix_use_runtimelinking" = yes; then
  10197.       # Warning - without using the other runtime loading flags (-brtl),
  10198.       # -berok will link without error, but may produce a broken library.
  10199.       allow_undefined_flag_CXX='-berok'
  10200.       # Determine the default libpath from the value encoded in an empty executable.
  10201.       cat >conftest.$ac_ext <<_ACEOF
  10202. /* confdefs.h.  */
  10203. _ACEOF
  10204. cat confdefs.h >>conftest.$ac_ext
  10205. cat >>conftest.$ac_ext <<_ACEOF
  10206. /* end confdefs.h.  */
  10207.  
  10208. int
  10209. main ()
  10210. {
  10211.  
  10212.   ;
  10213.   return 0;
  10214. }
  10215. _ACEOF
  10216. rm -f conftest.$ac_objext conftest$ac_exeext
  10217. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10218.   (eval $ac_link) 2>conftest.er1
  10219.   ac_status=$?
  10220.   grep -v '^ *+' conftest.er1 >conftest.err
  10221.   rm -f conftest.er1
  10222.   cat conftest.err >&5
  10223.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10224.   (exit $ac_status); } &&
  10225.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  10226.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10227.   (eval $ac_try) 2>&5
  10228.   ac_status=$?
  10229.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10230.   (exit $ac_status); }; } &&
  10231.      { ac_try='test -s conftest$ac_exeext'
  10232.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10233.   (eval $ac_try) 2>&5
  10234.   ac_status=$?
  10235.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10236.   (exit $ac_status); }; }; then
  10237.  
  10238. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
  10239. }'`
  10240. # Check for a 64-bit object if we didn't find anything.
  10241. 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; }
  10242. }'`; fi
  10243. else
  10244.   echo "$as_me: failed program was:" >&5
  10245. sed 's/^/| /' conftest.$ac_ext >&5
  10246.  
  10247. fi
  10248. rm -f conftest.err conftest.$ac_objext \
  10249.       conftest$ac_exeext conftest.$ac_ext
  10250. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10251.  
  10252.       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10253.  
  10254.       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"
  10255.      else
  10256.       if test "$host_cpu" = ia64; then
  10257.     hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10258.     allow_undefined_flag_CXX="-z nodefs"
  10259.     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"
  10260.       else
  10261.     # Determine the default libpath from the value encoded in an empty executable.
  10262.     cat >conftest.$ac_ext <<_ACEOF
  10263. /* confdefs.h.  */
  10264. _ACEOF
  10265. cat confdefs.h >>conftest.$ac_ext
  10266. cat >>conftest.$ac_ext <<_ACEOF
  10267. /* end confdefs.h.  */
  10268.  
  10269. int
  10270. main ()
  10271. {
  10272.  
  10273.   ;
  10274.   return 0;
  10275. }
  10276. _ACEOF
  10277. rm -f conftest.$ac_objext conftest$ac_exeext
  10278. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10279.   (eval $ac_link) 2>conftest.er1
  10280.   ac_status=$?
  10281.   grep -v '^ *+' conftest.er1 >conftest.err
  10282.   rm -f conftest.er1
  10283.   cat conftest.err >&5
  10284.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10285.   (exit $ac_status); } &&
  10286.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  10287.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10288.   (eval $ac_try) 2>&5
  10289.   ac_status=$?
  10290.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10291.   (exit $ac_status); }; } &&
  10292.      { ac_try='test -s conftest$ac_exeext'
  10293.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10294.   (eval $ac_try) 2>&5
  10295.   ac_status=$?
  10296.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10297.   (exit $ac_status); }; }; then
  10298.  
  10299. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
  10300. }'`
  10301. # Check for a 64-bit object if we didn't find anything.
  10302. 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; }
  10303. }'`; fi
  10304. else
  10305.   echo "$as_me: failed program was:" >&5
  10306. sed 's/^/| /' conftest.$ac_ext >&5
  10307.  
  10308. fi
  10309. rm -f conftest.err conftest.$ac_objext \
  10310.       conftest$ac_exeext conftest.$ac_ext
  10311. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10312.  
  10313.     hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10314.     # Warning - without using the other run time loading flags,
  10315.     # -berok will link without error, but may produce a broken library.
  10316.     no_undefined_flag_CXX=' ${wl}-bernotok'
  10317.     allow_undefined_flag_CXX=' ${wl}-berok'
  10318.     # -bexpall does not export symbols beginning with underscore (_)
  10319.     always_export_symbols_CXX=yes
  10320.     # Exported symbols can be pulled into shared objects from archives
  10321.     whole_archive_flag_spec_CXX=' '
  10322.     archive_cmds_need_lc_CXX=yes
  10323.     # This is similar to how AIX traditionally builds it's shared libraries.
  10324.     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'
  10325.       fi
  10326.     fi
  10327.     ;;
  10328.   chorus*)
  10329.     case $cc_basename in
  10330.       *)
  10331.     # FIXME: insert proper C++ library support
  10332.     ld_shlibs_CXX=no
  10333.     ;;
  10334.     esac
  10335.     ;;
  10336.  
  10337.   cygwin* | mingw* | pw32*)
  10338.     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10339.     # as there is no search path for DLLs.
  10340.     hardcode_libdir_flag_spec_CXX='-L$libdir'
  10341.     allow_undefined_flag_CXX=unsupported
  10342.     always_export_symbols_CXX=no
  10343.     enable_shared_with_static_runtimes_CXX=yes
  10344.  
  10345.     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  10346.       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'
  10347.       # If the export-symbols file already is a .def file (1st line
  10348.       # is EXPORTS), use it as is; otherwise, prepend...
  10349.       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10350.     cp $export_symbols $output_objdir/$soname.def;
  10351.       else
  10352.     echo EXPORTS > $output_objdir/$soname.def;
  10353.     cat $export_symbols >> $output_objdir/$soname.def;
  10354.       fi~
  10355.       $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'
  10356.     else
  10357.       ld_shlibs_CXX=no
  10358.     fi
  10359.   ;;
  10360.  
  10361.   darwin* | rhapsody*)
  10362.   if test "$GXX" = yes; then
  10363.     archive_cmds_need_lc_CXX=no
  10364.     case "$host_os" in
  10365.     rhapsody* | darwin1.[012])
  10366.       allow_undefined_flag_CXX='-undefined suppress'
  10367.       ;;
  10368.     *) # Darwin 1.3 on
  10369.       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  10370.           allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
  10371.       else
  10372.         case ${MACOSX_DEPLOYMENT_TARGET} in
  10373.           10.[012])
  10374.             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
  10375.             ;;
  10376.           10.*)
  10377.             allow_undefined_flag_CXX='-undefined dynamic_lookup'
  10378.             ;;
  10379.         esac
  10380.       fi
  10381.       ;;
  10382.     esac
  10383.     lt_int_apple_cc_single_mod=no
  10384.     output_verbose_link_cmd='echo'
  10385.     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  10386.       lt_int_apple_cc_single_mod=yes
  10387.     fi
  10388.     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10389.       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  10390.     else
  10391.       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'
  10392.     fi
  10393.     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10394.  
  10395.     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  10396.     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10397.       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}'
  10398.     else
  10399.       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}'
  10400.     fi
  10401.     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}'
  10402.     hardcode_direct_CXX=no
  10403.     hardcode_automatic_CXX=yes
  10404.     hardcode_shlibpath_var_CXX=unsupported
  10405.     whole_archive_flag_spec_CXX='-all_load $convenience'
  10406.     link_all_deplibs_CXX=yes
  10407.   else
  10408.     ld_shlibs_CXX=no
  10409.   fi
  10410.     ;;
  10411.  
  10412.   dgux*)
  10413.     case $cc_basename in
  10414.       ec++)
  10415.     # FIXME: insert proper C++ library support
  10416.     ld_shlibs_CXX=no
  10417.     ;;
  10418.       ghcx)
  10419.     # Green Hills C++ Compiler
  10420.     # FIXME: insert proper C++ library support
  10421.     ld_shlibs_CXX=no
  10422.     ;;
  10423.       *)
  10424.     # FIXME: insert proper C++ library support
  10425.     ld_shlibs_CXX=no
  10426.     ;;
  10427.     esac
  10428.     ;;
  10429.   freebsd12*)
  10430.     # C++ shared libraries reported to be fairly broken before switch to ELF
  10431.     ld_shlibs_CXX=no
  10432.     ;;
  10433.   freebsd-elf*)
  10434.     archive_cmds_need_lc_CXX=no
  10435.     ;;
  10436.   freebsd* | kfreebsd*-gnu)
  10437.     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10438.     # conventions
  10439.     ld_shlibs_CXX=yes
  10440.     ;;
  10441.   gnu*)
  10442.     ;;
  10443.   hpux9*)
  10444.     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10445.     hardcode_libdir_separator_CXX=:
  10446.     export_dynamic_flag_spec_CXX='${wl}-E'
  10447.     hardcode_direct_CXX=yes
  10448.     hardcode_minus_L_CXX=yes # Not in the search PATH,
  10449.                 # but as the default
  10450.                 # location of the library.
  10451.  
  10452.     case $cc_basename in
  10453.     CC)
  10454.       # FIXME: insert proper C++ library support
  10455.       ld_shlibs_CXX=no
  10456.       ;;
  10457.     aCC)
  10458.       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'
  10459.       # Commands to make compiler produce verbose output that lists
  10460.       # what "hidden" libraries, object files and flags are used when
  10461.       # linking a shared library.
  10462.       #
  10463.       # There doesn't appear to be a way to prevent this compiler from
  10464.       # explicitly linking system object files so we need to strip them
  10465.       # from the output so that they don't get included in the library
  10466.       # dependencies.
  10467.       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'
  10468.       ;;
  10469.     *)
  10470.       if test "$GXX" = yes; then
  10471.         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'
  10472.       else
  10473.         # FIXME: insert proper C++ library support
  10474.         ld_shlibs_CXX=no
  10475.       fi
  10476.       ;;
  10477.     esac
  10478.     ;;
  10479.   hpux10*|hpux11*)
  10480.     if test $with_gnu_ld = no; then
  10481.       case "$host_cpu" in
  10482.       hppa*64*)
  10483.     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10484.     hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  10485.     hardcode_libdir_separator_CXX=:
  10486.         ;;
  10487.       ia64*)
  10488.     hardcode_libdir_flag_spec_CXX='-L$libdir'
  10489.         ;;
  10490.       *)
  10491.     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10492.     hardcode_libdir_separator_CXX=:
  10493.     export_dynamic_flag_spec_CXX='${wl}-E'
  10494.         ;;
  10495.       esac
  10496.     fi
  10497.     case "$host_cpu" in
  10498.     hppa*64*)
  10499.       hardcode_direct_CXX=no
  10500.       hardcode_shlibpath_var_CXX=no
  10501.       ;;
  10502.     ia64*)
  10503.       hardcode_direct_CXX=no
  10504.       hardcode_shlibpath_var_CXX=no
  10505.       hardcode_minus_L_CXX=yes # Not in the search PATH,
  10506.                           # but as the default
  10507.                           # location of the library.
  10508.       ;;
  10509.     *)
  10510.       hardcode_direct_CXX=yes
  10511.       hardcode_minus_L_CXX=yes # Not in the search PATH,
  10512.                           # but as the default
  10513.                           # location of the library.
  10514.       ;;
  10515.     esac
  10516.  
  10517.     case $cc_basename in
  10518.       CC)
  10519.     # FIXME: insert proper C++ library support
  10520.     ld_shlibs_CXX=no
  10521.     ;;
  10522.       aCC)
  10523.     case "$host_cpu" in
  10524.     hppa*64*|ia64*)
  10525.       archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  10526.       ;;
  10527.     *)
  10528.       archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10529.       ;;
  10530.     esac
  10531.     # Commands to make compiler produce verbose output that lists
  10532.     # what "hidden" libraries, object files and flags are used when
  10533.     # linking a shared library.
  10534.     #
  10535.     # There doesn't appear to be a way to prevent this compiler from
  10536.     # explicitly linking system object files so we need to strip them
  10537.     # from the output so that they don't get included in the library
  10538.     # dependencies.
  10539.     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'
  10540.     ;;
  10541.       *)
  10542.     if test "$GXX" = yes; then
  10543.       if test $with_gnu_ld = no; then
  10544.         case "$host_cpu" in
  10545.         ia64*|hppa*64*)
  10546.           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  10547.           ;;
  10548.         *)
  10549.           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'
  10550.           ;;
  10551.         esac
  10552.       fi
  10553.     else
  10554.       # FIXME: insert proper C++ library support
  10555.       ld_shlibs_CXX=no
  10556.     fi
  10557.     ;;
  10558.     esac
  10559.     ;;
  10560.   irix5* | irix6*)
  10561.     case $cc_basename in
  10562.       CC)
  10563.     # SGI C++
  10564.     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'
  10565.  
  10566.     # Archives containing C++ object files must be created using
  10567.     # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
  10568.     # necessary to make sure instantiated templates are included
  10569.     # in the archive.
  10570.     old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10571.     ;;
  10572.       *)
  10573.     if test "$GXX" = yes; then
  10574.       if test "$with_gnu_ld" = no; then
  10575.         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'
  10576.       else
  10577.         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'
  10578.       fi
  10579.     fi
  10580.     link_all_deplibs_CXX=yes
  10581.     ;;
  10582.     esac
  10583.     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10584.     hardcode_libdir_separator_CXX=:
  10585.     ;;
  10586.   linux*)
  10587.     case $cc_basename in
  10588.       KCC)
  10589.     # Kuck and Associates, Inc. (KAI) C++ Compiler
  10590.  
  10591.     # KCC will only create a shared library if the output file
  10592.     # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10593.     # to its proper name (with version) after linking.
  10594.     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'
  10595.     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'
  10596.     # Commands to make compiler produce verbose output that lists
  10597.     # what "hidden" libraries, object files and flags are used when
  10598.     # linking a shared library.
  10599.     #
  10600.     # There doesn't appear to be a way to prevent this compiler from
  10601.     # explicitly linking system object files so we need to strip them
  10602.     # from the output so that they don't get included in the library
  10603.     # dependencies.
  10604.     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'
  10605.  
  10606.     hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  10607.     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10608.  
  10609.     # Archives containing C++ object files must be created using
  10610.     # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10611.     old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10612.     ;;
  10613.       icpc)
  10614.     # Intel C++
  10615.     with_gnu_ld=yes
  10616.     archive_cmds_need_lc_CXX=no
  10617.     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10618.     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'
  10619.     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10620.     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10621.     whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10622.     ;;
  10623.       cxx)
  10624.     # Compaq C++
  10625.     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10626.     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'
  10627.  
  10628.     runpath_var=LD_RUN_PATH
  10629.     hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10630.     hardcode_libdir_separator_CXX=:
  10631.  
  10632.     # Commands to make compiler produce verbose output that lists
  10633.     # what "hidden" libraries, object files and flags are used when
  10634.     # linking a shared library.
  10635.     #
  10636.     # There doesn't appear to be a way to prevent this compiler from
  10637.     # explicitly linking system object files so we need to strip them
  10638.     # from the output so that they don't get included in the library
  10639.     # dependencies.
  10640.     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'
  10641.     ;;
  10642.     esac
  10643.     ;;
  10644.   lynxos*)
  10645.     # FIXME: insert proper C++ library support
  10646.     ld_shlibs_CXX=no
  10647.     ;;
  10648.   m88k*)
  10649.     # FIXME: insert proper C++ library support
  10650.     ld_shlibs_CXX=no
  10651.     ;;
  10652.   mvs*)
  10653.     case $cc_basename in
  10654.       cxx)
  10655.     # FIXME: insert proper C++ library support
  10656.     ld_shlibs_CXX=no
  10657.     ;;
  10658.       *)
  10659.     # FIXME: insert proper C++ library support
  10660.     ld_shlibs_CXX=no
  10661.     ;;
  10662.     esac
  10663.     ;;
  10664.   netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  10665.     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10666.       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10667.       wlarc=
  10668.       hardcode_libdir_flag_spec_CXX='-R$libdir'
  10669.       hardcode_direct_CXX=yes
  10670.       hardcode_shlibpath_var_CXX=no
  10671.     fi
  10672.     # Workaround some broken pre-1.5 toolchains
  10673.     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10674.     ;;
  10675.   osf3*)
  10676.     case $cc_basename in
  10677.       KCC)
  10678.     # Kuck and Associates, Inc. (KAI) C++ Compiler
  10679.  
  10680.     # KCC will only create a shared library if the output file
  10681.     # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10682.     # to its proper name (with version) after linking.
  10683.     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'
  10684.  
  10685.     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10686.     hardcode_libdir_separator_CXX=:
  10687.  
  10688.     # Archives containing C++ object files must be created using
  10689.     # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10690.     old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10691.  
  10692.     ;;
  10693.       RCC)
  10694.     # Rational C++ 2.4.1
  10695.     # FIXME: insert proper C++ library support
  10696.     ld_shlibs_CXX=no
  10697.     ;;
  10698.       cxx)
  10699.     allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10700.     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'
  10701.  
  10702.     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10703.     hardcode_libdir_separator_CXX=:
  10704.  
  10705.     # Commands to make compiler produce verbose output that lists
  10706.     # what "hidden" libraries, object files and flags are used when
  10707.     # linking a shared library.
  10708.     #
  10709.     # There doesn't appear to be a way to prevent this compiler from
  10710.     # explicitly linking system object files so we need to strip them
  10711.     # from the output so that they don't get included in the library
  10712.     # dependencies.
  10713.     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'
  10714.     ;;
  10715.       *)
  10716.     if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10717.       allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10718.       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'
  10719.  
  10720.       hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10721.       hardcode_libdir_separator_CXX=:
  10722.  
  10723.       # Commands to make compiler produce verbose output that lists
  10724.       # what "hidden" libraries, object files and flags are used when
  10725.       # linking a shared library.
  10726.       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10727.  
  10728.     else
  10729.       # FIXME: insert proper C++ library support
  10730.       ld_shlibs_CXX=no
  10731.     fi
  10732.     ;;
  10733.     esac
  10734.     ;;
  10735.   osf4* | osf5*)
  10736.     case $cc_basename in
  10737.       KCC)
  10738.     # Kuck and Associates, Inc. (KAI) C++ Compiler
  10739.  
  10740.     # KCC will only create a shared library if the output file
  10741.     # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10742.     # to its proper name (with version) after linking.
  10743.     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'
  10744.  
  10745.     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10746.     hardcode_libdir_separator_CXX=:
  10747.  
  10748.     # Archives containing C++ object files must be created using
  10749.     # the KAI C++ compiler.
  10750.     old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  10751.     ;;
  10752.       RCC)
  10753.     # Rational C++ 2.4.1
  10754.     # FIXME: insert proper C++ library support
  10755.     ld_shlibs_CXX=no
  10756.     ;;
  10757.       cxx)
  10758.     allow_undefined_flag_CXX=' -expect_unresolved \*'
  10759.     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'
  10760.     archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10761.       echo "-hidden">> $lib.exp~
  10762.       $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~
  10763.       $rm $lib.exp'
  10764.  
  10765.     hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10766.     hardcode_libdir_separator_CXX=:
  10767.  
  10768.     # Commands to make compiler produce verbose output that lists
  10769.     # what "hidden" libraries, object files and flags are used when
  10770.     # linking a shared library.
  10771.     #
  10772.     # There doesn't appear to be a way to prevent this compiler from
  10773.     # explicitly linking system object files so we need to strip them
  10774.     # from the output so that they don't get included in the library
  10775.     # dependencies.
  10776.     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'
  10777.     ;;
  10778.       *)
  10779.     if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10780.       allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10781.      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'
  10782.  
  10783.       hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10784.       hardcode_libdir_separator_CXX=:
  10785.  
  10786.       # Commands to make compiler produce verbose output that lists
  10787.       # what "hidden" libraries, object files and flags are used when
  10788.       # linking a shared library.
  10789.       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10790.  
  10791.     else
  10792.       # FIXME: insert proper C++ library support
  10793.       ld_shlibs_CXX=no
  10794.     fi
  10795.     ;;
  10796.     esac
  10797.     ;;
  10798.   psos*)
  10799.     # FIXME: insert proper C++ library support
  10800.     ld_shlibs_CXX=no
  10801.     ;;
  10802.   sco*)
  10803.     archive_cmds_need_lc_CXX=no
  10804.     case $cc_basename in
  10805.       CC)
  10806.     # FIXME: insert proper C++ library support
  10807.     ld_shlibs_CXX=no
  10808.     ;;
  10809.       *)
  10810.     # FIXME: insert proper C++ library support
  10811.     ld_shlibs_CXX=no
  10812.     ;;
  10813.     esac
  10814.     ;;
  10815.   sunos4*)
  10816.     case $cc_basename in
  10817.       CC)
  10818.     # Sun C++ 4.x
  10819.     # FIXME: insert proper C++ library support
  10820.     ld_shlibs_CXX=no
  10821.     ;;
  10822.       lcc)
  10823.     # Lucid
  10824.     # FIXME: insert proper C++ library support
  10825.     ld_shlibs_CXX=no
  10826.     ;;
  10827.       *)
  10828.     # FIXME: insert proper C++ library support
  10829.     ld_shlibs_CXX=no
  10830.     ;;
  10831.     esac
  10832.     ;;
  10833.   solaris*)
  10834.     case $cc_basename in
  10835.       CC)
  10836.     # Sun C++ 4.2, 5.x and Centerline C++
  10837.     no_undefined_flag_CXX=' -zdefs'
  10838.     archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10839.     archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10840.     $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'
  10841.  
  10842.     hardcode_libdir_flag_spec_CXX='-R$libdir'
  10843.     hardcode_shlibpath_var_CXX=no
  10844.     case $host_os in
  10845.       solaris2.0-5 | solaris2.0-5.*) ;;
  10846.       *)
  10847.         # The C++ compiler is used as linker so we must use $wl
  10848.         # flag to pass the commands to the underlying system
  10849.         # linker.
  10850.         # Supported since Solaris 2.6 (maybe 2.5.1?)
  10851.         whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10852.         ;;
  10853.     esac
  10854.     link_all_deplibs_CXX=yes
  10855.  
  10856.     # Commands to make compiler produce verbose output that lists
  10857.     # what "hidden" libraries, object files and flags are used when
  10858.     # linking a shared library.
  10859.     #
  10860.     # There doesn't appear to be a way to prevent this compiler from
  10861.     # explicitly linking system object files so we need to strip them
  10862.     # from the output so that they don't get included in the library
  10863.     # dependencies.
  10864.     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'
  10865.  
  10866.     # Archives containing C++ object files must be created using
  10867.     # "CC -xar", where "CC" is the Sun C++ compiler.  This is
  10868.     # necessary to make sure instantiated templates are included
  10869.     # in the archive.
  10870.     old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10871.     ;;
  10872.       gcx)
  10873.     # Green Hills C++ Compiler
  10874.     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10875.  
  10876.     # The C++ compiler must be used to create the archive.
  10877.     old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10878.     ;;
  10879.       *)
  10880.     # GNU C++ compiler with Solaris linker
  10881.     if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10882.       no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10883.       if $CC --version | grep -v '^2\.7' > /dev/null; then
  10884.         archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10885.         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10886.         $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10887.  
  10888.         # Commands to make compiler produce verbose output that lists
  10889.         # what "hidden" libraries, object files and flags are used when
  10890.         # linking a shared library.
  10891.         output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10892.       else
  10893.         # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10894.         # platform.
  10895.         archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10896.         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10897.         $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10898.  
  10899.         # Commands to make compiler produce verbose output that lists
  10900.         # what "hidden" libraries, object files and flags are used when
  10901.         # linking a shared library.
  10902.         output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10903.       fi
  10904.  
  10905.       hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10906.     fi
  10907.     ;;
  10908.     esac
  10909.     ;;
  10910.   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  10911.     archive_cmds_need_lc_CXX=no
  10912.     ;;
  10913.   tandem*)
  10914.     case $cc_basename in
  10915.       NCC)
  10916.     # NonStop-UX NCC 3.20
  10917.     # FIXME: insert proper C++ library support
  10918.     ld_shlibs_CXX=no
  10919.     ;;
  10920.       *)
  10921.     # FIXME: insert proper C++ library support
  10922.     ld_shlibs_CXX=no
  10923.     ;;
  10924.     esac
  10925.     ;;
  10926.   vxworks*)
  10927.     # FIXME: insert proper C++ library support
  10928.     ld_shlibs_CXX=no
  10929.     ;;
  10930.   *)
  10931.     # FIXME: insert proper C++ library support
  10932.     ld_shlibs_CXX=no
  10933.     ;;
  10934. esac
  10935. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10936. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  10937. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10938.  
  10939. GCC_CXX="$GXX"
  10940. LD_CXX="$LD"
  10941.  
  10942.  
  10943. cat > conftest.$ac_ext <<EOF
  10944. class Foo
  10945. {
  10946. public:
  10947.   Foo (void) { a = 0; }
  10948. private:
  10949.   int a;
  10950. };
  10951. EOF
  10952.  
  10953. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10954.   (eval $ac_compile) 2>&5
  10955.   ac_status=$?
  10956.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10957.   (exit $ac_status); }; then
  10958.   # Parse the compiler output and extract the necessary
  10959.   # objects, libraries and library flags.
  10960.  
  10961.   # Sentinel used to keep track of whether or not we are before
  10962.   # the conftest object file.
  10963.   pre_test_object_deps_done=no
  10964.  
  10965.   # The `*' in the case matches for architectures that use `case' in
  10966.   # $output_verbose_cmd can trigger glob expansion during the loop
  10967.   # eval without this substitution.
  10968.   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  10969.  
  10970.   for p in `eval $output_verbose_link_cmd`; do
  10971.     case $p in
  10972.  
  10973.     -L* | -R* | -l*)
  10974.        # Some compilers place space between "-{L,R}" and the path.
  10975.        # Remove the space.
  10976.        if test $p = "-L" \
  10977.       || test $p = "-R"; then
  10978.      prev=$p
  10979.      continue
  10980.        else
  10981.      prev=
  10982.        fi
  10983.  
  10984.        if test "$pre_test_object_deps_done" = no; then
  10985.      case $p in
  10986.      -L* | -R*)
  10987.        # Internal compiler library paths should come after those
  10988.        # provided the user.  The postdeps already come after the
  10989.        # user supplied libs so there is no need to process them.
  10990.        if test -z "$compiler_lib_search_path_CXX"; then
  10991.          compiler_lib_search_path_CXX="${prev}${p}"
  10992.        else
  10993.          compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10994.        fi
  10995.        ;;
  10996.      # The "-l" case would never come before the object being
  10997.      # linked, so don't bother handling this case.
  10998.      esac
  10999.        else
  11000.      if test -z "$postdeps_CXX"; then
  11001.        postdeps_CXX="${prev}${p}"
  11002.      else
  11003.        postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11004.      fi
  11005.        fi
  11006.        ;;
  11007.  
  11008.     *.$objext)
  11009.        # This assumes that the test object file only shows up
  11010.        # once in the compiler output.
  11011.        if test "$p" = "conftest.$objext"; then
  11012.      pre_test_object_deps_done=yes
  11013.      continue
  11014.        fi
  11015.  
  11016.        if test "$pre_test_object_deps_done" = no; then
  11017.      if test -z "$predep_objects_CXX"; then
  11018.        predep_objects_CXX="$p"
  11019.      else
  11020.        predep_objects_CXX="$predep_objects_CXX $p"
  11021.      fi
  11022.        else
  11023.      if test -z "$postdep_objects_CXX"; then
  11024.        postdep_objects_CXX="$p"
  11025.      else
  11026.        postdep_objects_CXX="$postdep_objects_CXX $p"
  11027.      fi
  11028.        fi
  11029.        ;;
  11030.  
  11031.     *) ;; # Ignore the rest.
  11032.  
  11033.     esac
  11034.   done
  11035.  
  11036.   # Clean up.
  11037.   rm -f a.out a.exe
  11038. else
  11039.   echo "libtool.m4: error: problem compiling CXX test program"
  11040. fi
  11041.  
  11042. $rm -f confest.$objext
  11043.  
  11044. case " $postdeps_CXX " in
  11045. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11046. esac
  11047.  
  11048. lt_prog_compiler_wl_CXX=
  11049. lt_prog_compiler_pic_CXX=
  11050. lt_prog_compiler_static_CXX=
  11051.  
  11052. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11053. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  11054.  
  11055.   # C++ specific cases for pic, static, wl, etc.
  11056.   if test "$GXX" = yes; then
  11057.     lt_prog_compiler_wl_CXX='-Wl,'
  11058.     lt_prog_compiler_static_CXX='-static'
  11059.  
  11060.     case $host_os in
  11061.     aix*)
  11062.       # All AIX code is PIC.
  11063.       if test "$host_cpu" = ia64; then
  11064.     # AIX 5 now supports IA64 processor
  11065.     lt_prog_compiler_static_CXX='-Bstatic'
  11066.       fi
  11067.       ;;
  11068.     amigaos*)
  11069.       # FIXME: we need at least 68020 code to build shared libraries, but
  11070.       # adding the `-m68020' flag to GCC prevents building anything better,
  11071.       # like `-m68040'.
  11072.       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11073.       ;;
  11074.     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11075.       # PIC is the default for these OSes.
  11076.       ;;
  11077.     mingw* | os2* | pw32*)
  11078.       # This hack is so that the source file can tell whether it is being
  11079.       # built for inclusion in a dll (and should export symbols for example).
  11080.       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11081.       ;;
  11082.     darwin* | rhapsody*)
  11083.       # PIC is the default on this platform
  11084.       # Common symbols not allowed in MH_DYLIB files
  11085.       lt_prog_compiler_pic_CXX='-fno-common'
  11086.       ;;
  11087.     *djgpp*)
  11088.       # DJGPP does not support shared libraries at all
  11089.       lt_prog_compiler_pic_CXX=
  11090.       ;;
  11091.     sysv4*MP*)
  11092.       if test -d /usr/nec; then
  11093.     lt_prog_compiler_pic_CXX=-Kconform_pic
  11094.       fi
  11095.       ;;
  11096.     hpux*)
  11097.       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11098.       # not for PA HP-UX.
  11099.       case "$host_cpu" in
  11100.       hppa*64*|ia64*)
  11101.     ;;
  11102.       *)
  11103.     lt_prog_compiler_pic_CXX='-fPIC'
  11104.     ;;
  11105.       esac
  11106.       ;;
  11107.     *)
  11108.       lt_prog_compiler_pic_CXX='-fPIC'
  11109.       ;;
  11110.     esac
  11111.   else
  11112.     case $host_os in
  11113.       aix4* | aix5*)
  11114.     # All AIX code is PIC.
  11115.     if test "$host_cpu" = ia64; then
  11116.       # AIX 5 now supports IA64 processor
  11117.       lt_prog_compiler_static_CXX='-Bstatic'
  11118.     else
  11119.       lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11120.     fi
  11121.     ;;
  11122.       chorus*)
  11123.     case $cc_basename in
  11124.     cxch68)
  11125.       # Green Hills C++ Compiler
  11126.       # _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"
  11127.       ;;
  11128.     esac
  11129.     ;;
  11130.       dgux*)
  11131.     case $cc_basename in
  11132.       ec++)
  11133.         lt_prog_compiler_pic_CXX='-KPIC'
  11134.         ;;
  11135.       ghcx)
  11136.         # Green Hills C++ Compiler
  11137.         lt_prog_compiler_pic_CXX='-pic'
  11138.         ;;
  11139.       *)
  11140.         ;;
  11141.     esac
  11142.     ;;
  11143.       freebsd* | kfreebsd*-gnu)
  11144.     # FreeBSD uses GNU C++
  11145.     ;;
  11146.       hpux9* | hpux10* | hpux11*)
  11147.     case $cc_basename in
  11148.       CC)
  11149.         lt_prog_compiler_wl_CXX='-Wl,'
  11150.         lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  11151.         if test "$host_cpu" != ia64; then
  11152.           lt_prog_compiler_pic_CXX='+Z'
  11153.         fi
  11154.         ;;
  11155.       aCC)
  11156.         lt_prog_compiler_wl_CXX='-Wl,'
  11157.         lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  11158.         case "$host_cpu" in
  11159.         hppa*64*|ia64*)
  11160.           # +Z the default
  11161.           ;;
  11162.         *)
  11163.           lt_prog_compiler_pic_CXX='+Z'
  11164.           ;;
  11165.         esac
  11166.         ;;
  11167.       *)
  11168.         ;;
  11169.     esac
  11170.     ;;
  11171.       irix5* | irix6* | nonstopux*)
  11172.     case $cc_basename in
  11173.       CC)
  11174.         lt_prog_compiler_wl_CXX='-Wl,'
  11175.         lt_prog_compiler_static_CXX='-non_shared'
  11176.         # CC pic flag -KPIC is the default.
  11177.         ;;
  11178.       *)
  11179.         ;;
  11180.     esac
  11181.     ;;
  11182.       linux*)
  11183.     case $cc_basename in
  11184.       KCC)
  11185.         # KAI C++ Compiler
  11186.         lt_prog_compiler_wl_CXX='--backend -Wl,'
  11187.         lt_prog_compiler_pic_CXX='-fPIC'
  11188.         ;;
  11189.       icpc)
  11190.         # Intel C++
  11191.         lt_prog_compiler_wl_CXX='-Wl,'
  11192.         lt_prog_compiler_pic_CXX='-KPIC'
  11193.         lt_prog_compiler_static_CXX='-static'
  11194.         ;;
  11195.       cxx)
  11196.         # Compaq C++
  11197.         # Make sure the PIC flag is empty.  It appears that all Alpha
  11198.         # Linux and Compaq Tru64 Unix objects are PIC.
  11199.         lt_prog_compiler_pic_CXX=
  11200.         lt_prog_compiler_static_CXX='-non_shared'
  11201.         ;;
  11202.       *)
  11203.         ;;
  11204.     esac
  11205.     ;;
  11206.       lynxos*)
  11207.     ;;
  11208.       m88k*)
  11209.     ;;
  11210.       mvs*)
  11211.     case $cc_basename in
  11212.       cxx)
  11213.         lt_prog_compiler_pic_CXX='-W c,exportall'
  11214.         ;;
  11215.       *)
  11216.         ;;
  11217.     esac
  11218.     ;;
  11219.       netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  11220.     ;;
  11221.       osf3* | osf4* | osf5*)
  11222.     case $cc_basename in
  11223.       KCC)
  11224.         lt_prog_compiler_wl_CXX='--backend -Wl,'
  11225.         ;;
  11226.       RCC)
  11227.         # Rational C++ 2.4.1
  11228.         lt_prog_compiler_pic_CXX='-pic'
  11229.         ;;
  11230.       cxx)
  11231.         # Digital/Compaq C++
  11232.         lt_prog_compiler_wl_CXX='-Wl,'
  11233.         # Make sure the PIC flag is empty.  It appears that all Alpha
  11234.         # Linux and Compaq Tru64 Unix objects are PIC.
  11235.         lt_prog_compiler_pic_CXX=
  11236.         lt_prog_compiler_static_CXX='-non_shared'
  11237.         ;;
  11238.       *)
  11239.         ;;
  11240.     esac
  11241.     ;;
  11242.       psos*)
  11243.     ;;
  11244.       sco*)
  11245.     case $cc_basename in
  11246.       CC)
  11247.         lt_prog_compiler_pic_CXX='-fPIC'
  11248.         ;;
  11249.       *)
  11250.         ;;
  11251.     esac
  11252.     ;;
  11253.       solaris*)
  11254.     case $cc_basename in
  11255.       CC)
  11256.         # Sun C++ 4.2, 5.x and Centerline C++
  11257.         lt_prog_compiler_pic_CXX='-KPIC'
  11258.         lt_prog_compiler_static_CXX='-Bstatic'
  11259.         lt_prog_compiler_wl_CXX='-Qoption ld '
  11260.         ;;
  11261.       gcx)
  11262.         # Green Hills C++ Compiler
  11263.         lt_prog_compiler_pic_CXX='-PIC'
  11264.         ;;
  11265.       *)
  11266.         ;;
  11267.     esac
  11268.     ;;
  11269.       sunos4*)
  11270.     case $cc_basename in
  11271.       CC)
  11272.         # Sun C++ 4.x
  11273.         lt_prog_compiler_pic_CXX='-pic'
  11274.         lt_prog_compiler_static_CXX='-Bstatic'
  11275.         ;;
  11276.       lcc)
  11277.         # Lucid
  11278.         lt_prog_compiler_pic_CXX='-pic'
  11279.         ;;
  11280.       *)
  11281.         ;;
  11282.     esac
  11283.     ;;
  11284.       tandem*)
  11285.     case $cc_basename in
  11286.       NCC)
  11287.         # NonStop-UX NCC 3.20
  11288.         lt_prog_compiler_pic_CXX='-KPIC'
  11289.         ;;
  11290.       *)
  11291.         ;;
  11292.     esac
  11293.     ;;
  11294.       unixware*)
  11295.     ;;
  11296.       vxworks*)
  11297.     ;;
  11298.       *)
  11299.     lt_prog_compiler_can_build_shared_CXX=no
  11300.     ;;
  11301.     esac
  11302.   fi
  11303.  
  11304. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  11305. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
  11306.  
  11307. #
  11308. # Check to make sure the PIC flag actually works.
  11309. #
  11310. if test -n "$lt_prog_compiler_pic_CXX"; then
  11311.  
  11312. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11313. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
  11314. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  11315.   echo $ECHO_N "(cached) $ECHO_C" >&6
  11316. else
  11317.   lt_prog_compiler_pic_works_CXX=no
  11318.   ac_outfile=conftest.$ac_objext
  11319.    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11320.    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11321.    # Insert the option either (1) after the last *FLAGS variable, or
  11322.    # (2) before a word containing "conftest.", or (3) at the end.
  11323.    # Note that $ac_compile itself does not contain backslashes and begins
  11324.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  11325.    # The option is referenced via a variable to avoid confusing sed.
  11326.    lt_compile=`echo "$ac_compile" | $SED \
  11327.    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  11328.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11329.    -e 's:$: $lt_compiler_flag:'`
  11330.    (eval echo "\"\$as_me:11330: $lt_compile\"" >&5)
  11331.    (eval "$lt_compile" 2>conftest.err)
  11332.    ac_status=$?
  11333.    cat conftest.err >&5
  11334.    echo "$as_me:11334: \$? = $ac_status" >&5
  11335.    if (exit $ac_status) && test -s "$ac_outfile"; then
  11336.      # The compiler can only warn and ignore the option if not recognized
  11337.      # So say no if there are warnings
  11338.      if test ! -s conftest.err; then
  11339.        lt_prog_compiler_pic_works_CXX=yes
  11340.      fi
  11341.    fi
  11342.    $rm conftest*
  11343.  
  11344. fi
  11345. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  11346. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
  11347.  
  11348. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  11349.     case $lt_prog_compiler_pic_CXX in
  11350.      "" | " "*) ;;
  11351.      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11352.      esac
  11353. else
  11354.     lt_prog_compiler_pic_CXX=
  11355.      lt_prog_compiler_can_build_shared_CXX=no
  11356. fi
  11357.  
  11358. fi
  11359. case "$host_os" in
  11360.   # For platforms which do not support PIC, -DPIC is meaningless:
  11361.   *djgpp*)
  11362.     lt_prog_compiler_pic_CXX=
  11363.     ;;
  11364.   *)
  11365.     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11366.     ;;
  11367. esac
  11368.  
  11369. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  11370. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  11371. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  11372.   echo $ECHO_N "(cached) $ECHO_C" >&6
  11373. else
  11374.   lt_cv_prog_compiler_c_o_CXX=no
  11375.    $rm -r conftest 2>/dev/null
  11376.    mkdir conftest
  11377.    cd conftest
  11378.    mkdir out
  11379.    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11380.  
  11381.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  11382.    # Insert the option either (1) after the last *FLAGS variable, or
  11383.    # (2) before a word containing "conftest.", or (3) at the end.
  11384.    # Note that $ac_compile itself does not contain backslashes and begins
  11385.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  11386.    lt_compile=`echo "$ac_compile" | $SED \
  11387.    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  11388.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11389.    -e 's:$: $lt_compiler_flag:'`
  11390.    (eval echo "\"\$as_me:11390: $lt_compile\"" >&5)
  11391.    (eval "$lt_compile" 2>out/conftest.err)
  11392.    ac_status=$?
  11393.    cat out/conftest.err >&5
  11394.    echo "$as_me:11394: \$? = $ac_status" >&5
  11395.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11396.    then
  11397.      # The compiler can only warn and ignore the option if not recognized
  11398.      # So say no if there are warnings
  11399.      if test ! -s out/conftest.err; then
  11400.        lt_cv_prog_compiler_c_o_CXX=yes
  11401.      fi
  11402.    fi
  11403.    chmod u+w .
  11404.    $rm conftest*
  11405.    # SGI C++ compiler will create directory out/ii_files/ for
  11406.    # template instantiation
  11407.    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  11408.    $rm out/* && rmdir out
  11409.    cd ..
  11410.    rmdir conftest
  11411.    $rm conftest*
  11412.  
  11413. fi
  11414. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11415. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
  11416.  
  11417.  
  11418. hard_links="nottested"
  11419. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11420.   # do not overwrite the value of need_locks provided by the user
  11421.   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  11422. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  11423.   hard_links=yes
  11424.   $rm conftest*
  11425.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11426.   touch conftest.a
  11427.   ln conftest.a conftest.b 2>&5 || hard_links=no
  11428.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11429.   echo "$as_me:$LINENO: result: $hard_links" >&5
  11430. echo "${ECHO_T}$hard_links" >&6
  11431.   if test "$hard_links" = no; then
  11432.     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11433. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11434.     need_locks=warn
  11435.   fi
  11436. else
  11437.   need_locks=no
  11438. fi
  11439.  
  11440. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11441. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  11442.  
  11443.   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11444.   case $host_os in
  11445.   aix4* | aix5*)
  11446.     # If we're using GNU nm, then we don't want the "-C" option.
  11447.     # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11448.     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11449.       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'
  11450.     else
  11451.       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'
  11452.     fi
  11453.     ;;
  11454.   pw32*)
  11455.     export_symbols_cmds_CXX="$ltdll_cmds"
  11456.   ;;
  11457.   cygwin* | mingw*)
  11458.     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  11459.   ;;
  11460.   linux*)
  11461.     link_all_deplibs_CXX=no
  11462.   ;;
  11463.   *)
  11464.     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11465.   ;;
  11466.   esac
  11467.  
  11468. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11469. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  11470. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11471.  
  11472. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11473. if test "$GCC" = yes; then
  11474.   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11475. fi
  11476.  
  11477. #
  11478. # Do we need to explicitly link libc?
  11479. #
  11480. case "x$archive_cmds_need_lc_CXX" in
  11481. x|xyes)
  11482.   # Assume -lc should be added
  11483.   archive_cmds_need_lc_CXX=yes
  11484.  
  11485.   if test "$enable_shared" = yes && test "$GCC" = yes; then
  11486.     case $archive_cmds_CXX in
  11487.     *'~'*)
  11488.       # FIXME: we may have to deal with multi-command sequences.
  11489.       ;;
  11490.     '$CC '*)
  11491.       # Test whether the compiler implicitly links with -lc since on some
  11492.       # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11493.       # to ld, don't add -lc before -lgcc.
  11494.       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  11495. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  11496.       $rm conftest*
  11497.       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11498.  
  11499.       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11500.   (eval $ac_compile) 2>&5
  11501.   ac_status=$?
  11502.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11503.   (exit $ac_status); } 2>conftest.err; then
  11504.         soname=conftest
  11505.         lib=conftest
  11506.         libobjs=conftest.$ac_objext
  11507.         deplibs=
  11508.         wl=$lt_prog_compiler_wl_CXX
  11509.         compiler_flags=-v
  11510.         linker_flags=-v
  11511.         verstring=
  11512.         output_objdir=.
  11513.         libname=conftest
  11514.         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11515.         allow_undefined_flag_CXX=
  11516.         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  11517.   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11518.   ac_status=$?
  11519.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11520.   (exit $ac_status); }
  11521.         then
  11522.       archive_cmds_need_lc_CXX=no
  11523.         else
  11524.       archive_cmds_need_lc_CXX=yes
  11525.         fi
  11526.         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11527.       else
  11528.         cat conftest.err 1>&5
  11529.       fi
  11530.       $rm conftest*
  11531.       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  11532. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
  11533.       ;;
  11534.     esac
  11535.   fi
  11536.   ;;
  11537. esac
  11538.  
  11539. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  11540. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  11541. library_names_spec=
  11542. libname_spec='lib$name'
  11543. soname_spec=
  11544. shrext_cmds=".so"
  11545. postinstall_cmds=
  11546. postuninstall_cmds=
  11547. finish_cmds=
  11548. finish_eval=
  11549. shlibpath_var=
  11550. shlibpath_overrides_runpath=unknown
  11551. version_type=none
  11552. dynamic_linker="$host_os ld.so"
  11553. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11554. if test "$GCC" = yes; then
  11555.   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11556.   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  11557.     # if the path contains ";" then we assume it to be the separator
  11558.     # otherwise default to the standard path separator (i.e. ":") - it is
  11559.     # assumed that no part of a normal pathname contains ";" but that should
  11560.     # okay in the real world where ";" in dirpaths is itself problematic.
  11561.     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11562.   else
  11563.     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  11564.   fi
  11565. else
  11566.   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11567. fi
  11568. need_lib_prefix=unknown
  11569. hardcode_into_libs=no
  11570.  
  11571. # when you set need_version to no, make sure it does not cause -set_version
  11572. # flags to be left without arguments
  11573. need_version=unknown
  11574.  
  11575. case $host_os in
  11576. aix3*)
  11577.   version_type=linux
  11578.   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11579.   shlibpath_var=LIBPATH
  11580.  
  11581.   # AIX 3 has no versioning support, so we append a major version to the name.
  11582.   soname_spec='${libname}${release}${shared_ext}$major'
  11583.   ;;
  11584.  
  11585. aix4* | aix5*)
  11586.   version_type=linux
  11587.   need_lib_prefix=no
  11588.   need_version=no
  11589.   hardcode_into_libs=yes
  11590.   if test "$host_cpu" = ia64; then
  11591.     # AIX 5 supports IA64
  11592.     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11593.     shlibpath_var=LD_LIBRARY_PATH
  11594.   else
  11595.     # With GCC up to 2.95.x, collect2 would create an import file
  11596.     # for dependence libraries.  The import file would start with
  11597.     # the line `#! .'.  This would cause the generated library to
  11598.     # depend on `.', always an invalid library.  This was fixed in
  11599.     # development snapshots of GCC prior to 3.0.
  11600.     case $host_os in
  11601.       aix4 | aix4.[01] | aix4.[01].*)
  11602.       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11603.        echo ' yes '
  11604.        echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  11605.     :
  11606.       else
  11607.     can_build_shared=no
  11608.       fi
  11609.       ;;
  11610.     esac
  11611.     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11612.     # soname into executable. Probably we can add versioning support to
  11613.     # collect2, so additional links can be useful in future.
  11614.     if test "$aix_use_runtimelinking" = yes; then
  11615.       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11616.       # instead of lib<name>.a to let people know that these are not
  11617.       # typical AIX shared libraries.
  11618.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11619.     else
  11620.       # We preserve .a as extension for shared libraries through AIX4.2
  11621.       # and later when we are not doing run time linking.
  11622.       library_names_spec='${libname}${release}.a $libname.a'
  11623.       soname_spec='${libname}${release}${shared_ext}$major'
  11624.     fi
  11625.     shlibpath_var=LIBPATH
  11626.   fi
  11627.   ;;
  11628.  
  11629. amigaos*)
  11630.   library_names_spec='$libname.ixlibrary $libname.a'
  11631.   # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11632.   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'
  11633.   ;;
  11634.  
  11635. beos*)
  11636.   library_names_spec='${libname}${shared_ext}'
  11637.   dynamic_linker="$host_os ld.so"
  11638.   shlibpath_var=LIBRARY_PATH
  11639.   ;;
  11640.  
  11641. bsdi4*)
  11642.   version_type=linux
  11643.   need_version=no
  11644.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11645.   soname_spec='${libname}${release}${shared_ext}$major'
  11646.   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11647.   shlibpath_var=LD_LIBRARY_PATH
  11648.   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11649.   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11650.   # the default ld.so.conf also contains /usr/contrib/lib and
  11651.   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11652.   # libtool to hard-code these into programs
  11653.   ;;
  11654.  
  11655. cygwin* | mingw* | pw32*)
  11656.   version_type=windows
  11657.   shrext_cmds=".dll"
  11658.   need_version=no
  11659.   need_lib_prefix=no
  11660.  
  11661.   case $GCC,$host_os in
  11662.   yes,cygwin* | yes,mingw* | yes,pw32*)
  11663.     library_names_spec='$libname.dll.a'
  11664.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11665.     postinstall_cmds='base_file=`basename \${file}`~
  11666.       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  11667.       dldir=$destdir/`dirname \$dlpath`~
  11668.       test -d \$dldir || mkdir -p \$dldir~
  11669.       $install_prog $dir/$dlname \$dldir/$dlname'
  11670.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11671.       dlpath=$dir/\$dldll~
  11672.        $rm \$dlpath'
  11673.     shlibpath_overrides_runpath=yes
  11674.  
  11675.     case $host_os in
  11676.     cygwin*)
  11677.       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11678.       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11679.       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11680.       ;;
  11681.     mingw*)
  11682.       # MinGW DLLs use traditional 'lib' prefix
  11683.       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11684.       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11685.       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  11686.         # It is most probably a Windows format PATH printed by
  11687.         # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11688.         # path with ; separators, and with drive letters. We can handle the
  11689.         # drive letters (cygwin fileutils understands them), so leave them,
  11690.         # especially as we might pass files found there to a mingw objdump,
  11691.         # which wouldn't understand a cygwinified path. Ahh.
  11692.         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11693.       else
  11694.         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  11695.       fi
  11696.       ;;
  11697.     pw32*)
  11698.       # pw32 DLLs use 'pw' prefix rather than 'lib'
  11699.       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  11700.       ;;
  11701.     esac
  11702.     ;;
  11703.  
  11704.   *)
  11705.     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11706.     ;;
  11707.   esac
  11708.   dynamic_linker='Win32 ld.exe'
  11709.   # FIXME: first we should search . and the directory the executable is in
  11710.   shlibpath_var=PATH
  11711.   ;;
  11712.  
  11713. darwin* | rhapsody*)
  11714.   dynamic_linker="$host_os dyld"
  11715.   version_type=darwin
  11716.   need_lib_prefix=no
  11717.   need_version=no
  11718.   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11719.   soname_spec='${libname}${release}${major}$shared_ext'
  11720.   shlibpath_overrides_runpath=yes
  11721.   shlibpath_var=DYLD_LIBRARY_PATH
  11722.   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  11723.   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  11724.   if test "$GCC" = yes; then
  11725.     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"`
  11726.   else
  11727.     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  11728.   fi
  11729.   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11730.   ;;
  11731.  
  11732. dgux*)
  11733.   version_type=linux
  11734.   need_lib_prefix=no
  11735.   need_version=no
  11736.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11737.   soname_spec='${libname}${release}${shared_ext}$major'
  11738.   shlibpath_var=LD_LIBRARY_PATH
  11739.   ;;
  11740.  
  11741. freebsd1*)
  11742.   dynamic_linker=no
  11743.   ;;
  11744.  
  11745. kfreebsd*-gnu)
  11746.   version_type=linux
  11747.   need_lib_prefix=no
  11748.   need_version=no
  11749.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11750.   soname_spec='${libname}${release}${shared_ext}$major'
  11751.   shlibpath_var=LD_LIBRARY_PATH
  11752.   shlibpath_overrides_runpath=no
  11753.   hardcode_into_libs=yes
  11754.   dynamic_linker='GNU ld.so'
  11755.   ;;
  11756.  
  11757. freebsd*)
  11758.   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  11759.   version_type=freebsd-$objformat
  11760.   case $version_type in
  11761.     freebsd-elf*)
  11762.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11763.       need_version=no
  11764.       need_lib_prefix=no
  11765.       ;;
  11766.     freebsd-*)
  11767.       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11768.       need_version=yes
  11769.       ;;
  11770.   esac
  11771.   shlibpath_var=LD_LIBRARY_PATH
  11772.   case $host_os in
  11773.   freebsd2*)
  11774.     shlibpath_overrides_runpath=yes
  11775.     ;;
  11776.   freebsd3.01* | freebsdelf3.01*)
  11777.     shlibpath_overrides_runpath=yes
  11778.     hardcode_into_libs=yes
  11779.     ;;
  11780.   *) # from 3.2 on
  11781.     shlibpath_overrides_runpath=no
  11782.     hardcode_into_libs=yes
  11783.     ;;
  11784.   esac
  11785.   ;;
  11786.  
  11787. gnu*)
  11788.   version_type=linux
  11789.   need_lib_prefix=no
  11790.   need_version=no
  11791.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11792.   soname_spec='${libname}${release}${shared_ext}$major'
  11793.   shlibpath_var=LD_LIBRARY_PATH
  11794.   hardcode_into_libs=yes
  11795.   ;;
  11796.  
  11797. hpux9* | hpux10* | hpux11*)
  11798.   # Give a soname corresponding to the major version so that dld.sl refuses to
  11799.   # link against other versions.
  11800.   version_type=sunos
  11801.   need_lib_prefix=no
  11802.   need_version=no
  11803.   case "$host_cpu" in
  11804.   ia64*)
  11805.     shrext_cmds='.so'
  11806.     hardcode_into_libs=yes
  11807.     dynamic_linker="$host_os dld.so"
  11808.     shlibpath_var=LD_LIBRARY_PATH
  11809.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11810.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11811.     soname_spec='${libname}${release}${shared_ext}$major'
  11812.     if test "X$HPUX_IA64_MODE" = X32; then
  11813.       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11814.     else
  11815.       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11816.     fi
  11817.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11818.     ;;
  11819.    hppa*64*)
  11820.      shrext_cmds='.sl'
  11821.      hardcode_into_libs=yes
  11822.      dynamic_linker="$host_os dld.sl"
  11823.      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11824.      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11825.      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11826.      soname_spec='${libname}${release}${shared_ext}$major'
  11827.      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11828.      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11829.      ;;
  11830.    *)
  11831.     shrext_cmds='.sl'
  11832.     dynamic_linker="$host_os dld.sl"
  11833.     shlibpath_var=SHLIB_PATH
  11834.     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11835.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11836.     soname_spec='${libname}${release}${shared_ext}$major'
  11837.     ;;
  11838.   esac
  11839.   # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11840.   postinstall_cmds='chmod 555 $lib'
  11841.   ;;
  11842.  
  11843. irix5* | irix6* | nonstopux*)
  11844.   case $host_os in
  11845.     nonstopux*) version_type=nonstopux ;;
  11846.     *)
  11847.     if test "$lt_cv_prog_gnu_ld" = yes; then
  11848.         version_type=linux
  11849.     else
  11850.         version_type=irix
  11851.     fi ;;
  11852.   esac
  11853.   need_lib_prefix=no
  11854.   need_version=no
  11855.   soname_spec='${libname}${release}${shared_ext}$major'
  11856.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11857.   case $host_os in
  11858.   irix5* | nonstopux*)
  11859.     libsuff= shlibsuff=
  11860.     ;;
  11861.   *)
  11862.     case $LD in # libtool.m4 will add one of these switches to LD
  11863.     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11864.       libsuff= shlibsuff= libmagic=32-bit;;
  11865.     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11866.       libsuff=32 shlibsuff=N32 libmagic=N32;;
  11867.     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11868.       libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11869.     *) libsuff= shlibsuff= libmagic=never-match;;
  11870.     esac
  11871.     ;;
  11872.   esac
  11873.   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11874.   shlibpath_overrides_runpath=no
  11875.   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11876.   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11877.   hardcode_into_libs=yes
  11878.   ;;
  11879.  
  11880. # No shared lib support for Linux oldld, aout, or coff.
  11881. linux*oldld* | linux*aout* | linux*coff*)
  11882.   dynamic_linker=no
  11883.   ;;
  11884.  
  11885. # This must be Linux ELF.
  11886. linux*)
  11887.   version_type=linux
  11888.   need_lib_prefix=no
  11889.   need_version=no
  11890.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11891.   soname_spec='${libname}${release}${shared_ext}$major'
  11892.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11893.   shlibpath_var=LD_LIBRARY_PATH
  11894.   shlibpath_overrides_runpath=no
  11895.   # This implies no fast_install, which is unacceptable.
  11896.   # Some rework will be needed to allow for fast_install
  11897.   # before this can be enabled.
  11898.   hardcode_into_libs=yes
  11899.  
  11900.   # Append ld.so.conf contents to the search path
  11901.   if test -f /etc/ld.so.conf; then
  11902.     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
  11903.     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11904.   fi
  11905.  
  11906.   # We used to test for /lib/ld.so.1 and disable shared libraries on
  11907.   # powerpc, because MkLinux only supported shared libraries with the
  11908.   # GNU dynamic linker.  Since this was broken with cross compilers,
  11909.   # most powerpc-linux boxes support dynamic linking these days and
  11910.   # people can always --disable-shared, the test was removed, and we
  11911.   # assume the GNU/Linux dynamic linker is in use.
  11912.   dynamic_linker='GNU/Linux ld.so'
  11913.   ;;
  11914.  
  11915. netbsdelf*-gnu)
  11916.   version_type=linux
  11917.   need_lib_prefix=no
  11918.   need_version=no
  11919.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11920.   soname_spec='${libname}${release}${shared_ext}$major'
  11921.   shlibpath_var=LD_LIBRARY_PATH
  11922.   shlibpath_overrides_runpath=no
  11923.   hardcode_into_libs=yes
  11924.   dynamic_linker='NetBSD ld.elf_so'
  11925.   ;;
  11926.  
  11927. knetbsd*-gnu)
  11928.   version_type=linux
  11929.   need_lib_prefix=no
  11930.   need_version=no
  11931.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11932.   soname_spec='${libname}${release}${shared_ext}$major'
  11933.   shlibpath_var=LD_LIBRARY_PATH
  11934.   shlibpath_overrides_runpath=no
  11935.   hardcode_into_libs=yes
  11936.   dynamic_linker='GNU ld.so'
  11937.   ;;
  11938.  
  11939. netbsd*)
  11940.   version_type=sunos
  11941.   need_lib_prefix=no
  11942.   need_version=no
  11943.   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11944.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11945.     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11946.     dynamic_linker='NetBSD (a.out) ld.so'
  11947.   else
  11948.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11949.     soname_spec='${libname}${release}${shared_ext}$major'
  11950.     dynamic_linker='NetBSD ld.elf_so'
  11951.   fi
  11952.   shlibpath_var=LD_LIBRARY_PATH
  11953.   shlibpath_overrides_runpath=yes
  11954.   hardcode_into_libs=yes
  11955.   ;;
  11956.  
  11957. newsos6)
  11958.   version_type=linux
  11959.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11960.   shlibpath_var=LD_LIBRARY_PATH
  11961.   shlibpath_overrides_runpath=yes
  11962.   ;;
  11963.  
  11964. nto-qnx*)
  11965.   version_type=linux
  11966.   need_lib_prefix=no
  11967.   need_version=no
  11968.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11969.   soname_spec='${libname}${release}${shared_ext}$major'
  11970.   shlibpath_var=LD_LIBRARY_PATH
  11971.   shlibpath_overrides_runpath=yes
  11972.   ;;
  11973.  
  11974. openbsd*)
  11975.   version_type=sunos
  11976.   need_lib_prefix=no
  11977.   need_version=yes
  11978.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11979.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11980.   shlibpath_var=LD_LIBRARY_PATH
  11981.   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11982.     case $host_os in
  11983.       openbsd2.[89] | openbsd2.[89].*)
  11984.     shlibpath_overrides_runpath=no
  11985.     ;;
  11986.       *)
  11987.     shlibpath_overrides_runpath=yes
  11988.     ;;
  11989.       esac
  11990.   else
  11991.     shlibpath_overrides_runpath=yes
  11992.   fi
  11993.   ;;
  11994.  
  11995. os2*)
  11996.   libname_spec='$name'
  11997.   shrext_cmds=".dll"
  11998.   need_lib_prefix=no
  11999.   library_names_spec='$libname${shared_ext} $libname.a'
  12000.   dynamic_linker='OS/2 ld.exe'
  12001.   shlibpath_var=LIBPATH
  12002.   ;;
  12003.  
  12004. osf3* | osf4* | osf5*)
  12005.   version_type=osf
  12006.   need_lib_prefix=no
  12007.   need_version=no
  12008.   soname_spec='${libname}${release}${shared_ext}$major'
  12009.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12010.   shlibpath_var=LD_LIBRARY_PATH
  12011.   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12012.   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12013.   ;;
  12014.  
  12015. sco3.2v5*)
  12016.   version_type=osf
  12017.   soname_spec='${libname}${release}${shared_ext}$major'
  12018.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12019.   shlibpath_var=LD_LIBRARY_PATH
  12020.   ;;
  12021.  
  12022. solaris*)
  12023.   version_type=linux
  12024.   need_lib_prefix=no
  12025.   need_version=no
  12026.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12027.   soname_spec='${libname}${release}${shared_ext}$major'
  12028.   shlibpath_var=LD_LIBRARY_PATH
  12029.   shlibpath_overrides_runpath=yes
  12030.   hardcode_into_libs=yes
  12031.   # ldd complains unless libraries are executable
  12032.   postinstall_cmds='chmod +x $lib'
  12033.   ;;
  12034.  
  12035. sunos4*)
  12036.   version_type=sunos
  12037.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12038.   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12039.   shlibpath_var=LD_LIBRARY_PATH
  12040.   shlibpath_overrides_runpath=yes
  12041.   if test "$with_gnu_ld" = yes; then
  12042.     need_lib_prefix=no
  12043.   fi
  12044.   need_version=yes
  12045.   ;;
  12046.  
  12047. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  12048.   version_type=linux
  12049.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12050.   soname_spec='${libname}${release}${shared_ext}$major'
  12051.   shlibpath_var=LD_LIBRARY_PATH
  12052.   case $host_vendor in
  12053.     sni)
  12054.       shlibpath_overrides_runpath=no
  12055.       need_lib_prefix=no
  12056.       export_dynamic_flag_spec='${wl}-Blargedynsym'
  12057.       runpath_var=LD_RUN_PATH
  12058.       ;;
  12059.     siemens)
  12060.       need_lib_prefix=no
  12061.       ;;
  12062.     motorola)
  12063.       need_lib_prefix=no
  12064.       need_version=no
  12065.       shlibpath_overrides_runpath=no
  12066.       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12067.       ;;
  12068.   esac
  12069.   ;;
  12070.  
  12071. sysv4*MP*)
  12072.   if test -d /usr/nec ;then
  12073.     version_type=linux
  12074.     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12075.     soname_spec='$libname${shared_ext}.$major'
  12076.     shlibpath_var=LD_LIBRARY_PATH
  12077.   fi
  12078.   ;;
  12079.  
  12080. uts4*)
  12081.   version_type=linux
  12082.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12083.   soname_spec='${libname}${release}${shared_ext}$major'
  12084.   shlibpath_var=LD_LIBRARY_PATH
  12085.   ;;
  12086.  
  12087. *)
  12088.   dynamic_linker=no
  12089.   ;;
  12090. esac
  12091. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  12092. echo "${ECHO_T}$dynamic_linker" >&6
  12093. test "$dynamic_linker" = no && can_build_shared=no
  12094.  
  12095. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  12096. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  12097. hardcode_action_CXX=
  12098. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  12099.    test -n "$runpath_var CXX" || \
  12100.    test "X$hardcode_automatic_CXX"="Xyes" ; then
  12101.  
  12102.   # We can hardcode non-existant directories.
  12103.   if test "$hardcode_direct_CXX" != no &&
  12104.      # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12105.      # have to relink, otherwise we might link with an installed library
  12106.      # when we should be linking with a yet-to-be-installed one
  12107.      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12108.      test "$hardcode_minus_L_CXX" != no; then
  12109.     # Linking always hardcodes the temporary library directory.
  12110.     hardcode_action_CXX=relink
  12111.   else
  12112.     # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12113.     hardcode_action_CXX=immediate
  12114.   fi
  12115. else
  12116.   # We cannot hardcode anything, or else we can only hardcode existing
  12117.   # directories.
  12118.   hardcode_action_CXX=unsupported
  12119. fi
  12120. echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  12121. echo "${ECHO_T}$hardcode_action_CXX" >&6
  12122.  
  12123. if test "$hardcode_action_CXX" = relink; then
  12124.   # Fast installation is not supported
  12125.   enable_fast_install=no
  12126. elif test "$shlibpath_overrides_runpath" = yes ||
  12127.      test "$enable_shared" = no; then
  12128.   # Fast installation is not necessary
  12129.   enable_fast_install=needless
  12130. fi
  12131.  
  12132. striplib=
  12133. old_striplib=
  12134. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  12135. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  12136. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  12137.   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  12138.   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  12139.   echo "$as_me:$LINENO: result: yes" >&5
  12140. echo "${ECHO_T}yes" >&6
  12141. else
  12142. # FIXME - insert some real tests, host_os isn't really good enough
  12143.   case $host_os in
  12144.    darwin*)
  12145.        if test -n "$STRIP" ; then
  12146.          striplib="$STRIP -x"
  12147.          echo "$as_me:$LINENO: result: yes" >&5
  12148. echo "${ECHO_T}yes" >&6
  12149.        else
  12150.   echo "$as_me:$LINENO: result: no" >&5
  12151. echo "${ECHO_T}no" >&6
  12152. fi
  12153.        ;;
  12154.    *)
  12155.   echo "$as_me:$LINENO: result: no" >&5
  12156. echo "${ECHO_T}no" >&6
  12157.     ;;
  12158.   esac
  12159. fi
  12160.  
  12161. if test "x$enable_dlopen" != xyes; then
  12162.   enable_dlopen=unknown
  12163.   enable_dlopen_self=unknown
  12164.   enable_dlopen_self_static=unknown
  12165. else
  12166.   lt_cv_dlopen=no
  12167.   lt_cv_dlopen_libs=
  12168.  
  12169.   case $host_os in
  12170.   beos*)
  12171.     lt_cv_dlopen="load_add_on"
  12172.     lt_cv_dlopen_libs=
  12173.     lt_cv_dlopen_self=yes
  12174.     ;;
  12175.  
  12176.   mingw* | pw32*)
  12177.     lt_cv_dlopen="LoadLibrary"
  12178.     lt_cv_dlopen_libs=
  12179.    ;;
  12180.  
  12181.   cygwin*)
  12182.     lt_cv_dlopen="dlopen"
  12183.     lt_cv_dlopen_libs=
  12184.    ;;
  12185.  
  12186.   darwin*)
  12187.   # if libdl is installed we need to link against it
  12188.     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  12189. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  12190. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  12191.   echo $ECHO_N "(cached) $ECHO_C" >&6
  12192. else
  12193.   ac_check_lib_save_LIBS=$LIBS
  12194. LIBS="-ldl  $LIBS"
  12195. cat >conftest.$ac_ext <<_ACEOF
  12196. /* confdefs.h.  */
  12197. _ACEOF
  12198. cat confdefs.h >>conftest.$ac_ext
  12199. cat >>conftest.$ac_ext <<_ACEOF
  12200. /* end confdefs.h.  */
  12201.  
  12202. /* Override any gcc2 internal prototype to avoid an error.  */
  12203. #ifdef __cplusplus
  12204. extern "C"
  12205. #endif
  12206. /* We use char because int might match the return type of a gcc2
  12207.    builtin and then its argument prototype would still apply.  */
  12208. char dlopen ();
  12209. int
  12210. main ()
  12211. {
  12212. dlopen ();
  12213.   ;
  12214.   return 0;
  12215. }
  12216. _ACEOF
  12217. rm -f conftest.$ac_objext conftest$ac_exeext
  12218. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12219.   (eval $ac_link) 2>conftest.er1
  12220.   ac_status=$?
  12221.   grep -v '^ *+' conftest.er1 >conftest.err
  12222.   rm -f conftest.er1
  12223.   cat conftest.err >&5
  12224.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12225.   (exit $ac_status); } &&
  12226.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  12227.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12228.   (eval $ac_try) 2>&5
  12229.   ac_status=$?
  12230.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12231.   (exit $ac_status); }; } &&
  12232.      { ac_try='test -s conftest$ac_exeext'
  12233.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12234.   (eval $ac_try) 2>&5
  12235.   ac_status=$?
  12236.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12237.   (exit $ac_status); }; }; then
  12238.   ac_cv_lib_dl_dlopen=yes
  12239. else
  12240.   echo "$as_me: failed program was:" >&5
  12241. sed 's/^/| /' conftest.$ac_ext >&5
  12242.  
  12243. ac_cv_lib_dl_dlopen=no
  12244. fi
  12245. rm -f conftest.err conftest.$ac_objext \
  12246.       conftest$ac_exeext conftest.$ac_ext
  12247. LIBS=$ac_check_lib_save_LIBS
  12248. fi
  12249. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  12250. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  12251. if test $ac_cv_lib_dl_dlopen = yes; then
  12252.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  12253. else
  12254.  
  12255.     lt_cv_dlopen="dyld"
  12256.     lt_cv_dlopen_libs=
  12257.     lt_cv_dlopen_self=yes
  12258.  
  12259. fi
  12260.  
  12261.    ;;
  12262.  
  12263.   *)
  12264.     echo "$as_me:$LINENO: checking for shl_load" >&5
  12265. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  12266. if test "${ac_cv_func_shl_load+set}" = set; then
  12267.   echo $ECHO_N "(cached) $ECHO_C" >&6
  12268. else
  12269.   cat >conftest.$ac_ext <<_ACEOF
  12270. /* confdefs.h.  */
  12271. _ACEOF
  12272. cat confdefs.h >>conftest.$ac_ext
  12273. cat >>conftest.$ac_ext <<_ACEOF
  12274. /* end confdefs.h.  */
  12275. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  12276.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  12277. #define shl_load innocuous_shl_load
  12278.  
  12279. /* System header to define __stub macros and hopefully few prototypes,
  12280.     which can conflict with char shl_load (); below.
  12281.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12282.     <limits.h> exists even on freestanding compilers.  */
  12283.  
  12284. #ifdef __STDC__
  12285. # include <limits.h>
  12286. #else
  12287. # include <assert.h>
  12288. #endif
  12289.  
  12290. #undef shl_load
  12291.  
  12292. /* Override any gcc2 internal prototype to avoid an error.  */
  12293. #ifdef __cplusplus
  12294. extern "C"
  12295. {
  12296. #endif
  12297. /* We use char because int might match the return type of a gcc2
  12298.    builtin and then its argument prototype would still apply.  */
  12299. char shl_load ();
  12300. /* The GNU C library defines this for functions which it implements
  12301.     to always fail with ENOSYS.  Some functions are actually named
  12302.     something starting with __ and the normal name is an alias.  */
  12303. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  12304. choke me
  12305. #else
  12306. char (*f) () = shl_load;
  12307. #endif
  12308. #ifdef __cplusplus
  12309. }
  12310. #endif
  12311.  
  12312. int
  12313. main ()
  12314. {
  12315. return f != shl_load;
  12316.   ;
  12317.   return 0;
  12318. }
  12319. _ACEOF
  12320. rm -f conftest.$ac_objext conftest$ac_exeext
  12321. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12322.   (eval $ac_link) 2>conftest.er1
  12323.   ac_status=$?
  12324.   grep -v '^ *+' conftest.er1 >conftest.err
  12325.   rm -f conftest.er1
  12326.   cat conftest.err >&5
  12327.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12328.   (exit $ac_status); } &&
  12329.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  12330.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12331.   (eval $ac_try) 2>&5
  12332.   ac_status=$?
  12333.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12334.   (exit $ac_status); }; } &&
  12335.      { ac_try='test -s conftest$ac_exeext'
  12336.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12337.   (eval $ac_try) 2>&5
  12338.   ac_status=$?
  12339.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12340.   (exit $ac_status); }; }; then
  12341.   ac_cv_func_shl_load=yes
  12342. else
  12343.   echo "$as_me: failed program was:" >&5
  12344. sed 's/^/| /' conftest.$ac_ext >&5
  12345.  
  12346. ac_cv_func_shl_load=no
  12347. fi
  12348. rm -f conftest.err conftest.$ac_objext \
  12349.       conftest$ac_exeext conftest.$ac_ext
  12350. fi
  12351. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  12352. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  12353. if test $ac_cv_func_shl_load = yes; then
  12354.   lt_cv_dlopen="shl_load"
  12355. else
  12356.   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  12357. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  12358. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  12359.   echo $ECHO_N "(cached) $ECHO_C" >&6
  12360. else
  12361.   ac_check_lib_save_LIBS=$LIBS
  12362. LIBS="-ldld  $LIBS"
  12363. cat >conftest.$ac_ext <<_ACEOF
  12364. /* confdefs.h.  */
  12365. _ACEOF
  12366. cat confdefs.h >>conftest.$ac_ext
  12367. cat >>conftest.$ac_ext <<_ACEOF
  12368. /* end confdefs.h.  */
  12369.  
  12370. /* Override any gcc2 internal prototype to avoid an error.  */
  12371. #ifdef __cplusplus
  12372. extern "C"
  12373. #endif
  12374. /* We use char because int might match the return type of a gcc2
  12375.    builtin and then its argument prototype would still apply.  */
  12376. char shl_load ();
  12377. int
  12378. main ()
  12379. {
  12380. shl_load ();
  12381.   ;
  12382.   return 0;
  12383. }
  12384. _ACEOF
  12385. rm -f conftest.$ac_objext conftest$ac_exeext
  12386. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12387.   (eval $ac_link) 2>conftest.er1
  12388.   ac_status=$?
  12389.   grep -v '^ *+' conftest.er1 >conftest.err
  12390.   rm -f conftest.er1
  12391.   cat conftest.err >&5
  12392.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12393.   (exit $ac_status); } &&
  12394.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  12395.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12396.   (eval $ac_try) 2>&5
  12397.   ac_status=$?
  12398.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12399.   (exit $ac_status); }; } &&
  12400.      { ac_try='test -s conftest$ac_exeext'
  12401.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12402.   (eval $ac_try) 2>&5
  12403.   ac_status=$?
  12404.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12405.   (exit $ac_status); }; }; then
  12406.   ac_cv_lib_dld_shl_load=yes
  12407. else
  12408.   echo "$as_me: failed program was:" >&5
  12409. sed 's/^/| /' conftest.$ac_ext >&5
  12410.  
  12411. ac_cv_lib_dld_shl_load=no
  12412. fi
  12413. rm -f conftest.err conftest.$ac_objext \
  12414.       conftest$ac_exeext conftest.$ac_ext
  12415. LIBS=$ac_check_lib_save_LIBS
  12416. fi
  12417. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  12418. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  12419. if test $ac_cv_lib_dld_shl_load = yes; then
  12420.   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  12421. else
  12422.   echo "$as_me:$LINENO: checking for dlopen" >&5
  12423. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  12424. if test "${ac_cv_func_dlopen+set}" = set; then
  12425.   echo $ECHO_N "(cached) $ECHO_C" >&6
  12426. else
  12427.   cat >conftest.$ac_ext <<_ACEOF
  12428. /* confdefs.h.  */
  12429. _ACEOF
  12430. cat confdefs.h >>conftest.$ac_ext
  12431. cat >>conftest.$ac_ext <<_ACEOF
  12432. /* end confdefs.h.  */
  12433. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  12434.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  12435. #define dlopen innocuous_dlopen
  12436.  
  12437. /* System header to define __stub macros and hopefully few prototypes,
  12438.     which can conflict with char dlopen (); below.
  12439.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12440.     <limits.h> exists even on freestanding compilers.  */
  12441.  
  12442. #ifdef __STDC__
  12443. # include <limits.h>
  12444. #else
  12445. # include <assert.h>
  12446. #endif
  12447.  
  12448. #undef dlopen
  12449.  
  12450. /* Override any gcc2 internal prototype to avoid an error.  */
  12451. #ifdef __cplusplus
  12452. extern "C"
  12453. {
  12454. #endif
  12455. /* We use char because int might match the return type of a gcc2
  12456.    builtin and then its argument prototype would still apply.  */
  12457. char dlopen ();
  12458. /* The GNU C library defines this for functions which it implements
  12459.     to always fail with ENOSYS.  Some functions are actually named
  12460.     something starting with __ and the normal name is an alias.  */
  12461. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  12462. choke me
  12463. #else
  12464. char (*f) () = dlopen;
  12465. #endif
  12466. #ifdef __cplusplus
  12467. }
  12468. #endif
  12469.  
  12470. int
  12471. main ()
  12472. {
  12473. return f != dlopen;
  12474.   ;
  12475.   return 0;
  12476. }
  12477. _ACEOF
  12478. rm -f conftest.$ac_objext conftest$ac_exeext
  12479. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12480.   (eval $ac_link) 2>conftest.er1
  12481.   ac_status=$?
  12482.   grep -v '^ *+' conftest.er1 >conftest.err
  12483.   rm -f conftest.er1
  12484.   cat conftest.err >&5
  12485.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12486.   (exit $ac_status); } &&
  12487.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  12488.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12489.   (eval $ac_try) 2>&5
  12490.   ac_status=$?
  12491.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12492.   (exit $ac_status); }; } &&
  12493.      { ac_try='test -s conftest$ac_exeext'
  12494.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12495.   (eval $ac_try) 2>&5
  12496.   ac_status=$?
  12497.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12498.   (exit $ac_status); }; }; then
  12499.   ac_cv_func_dlopen=yes
  12500. else
  12501.   echo "$as_me: failed program was:" >&5
  12502. sed 's/^/| /' conftest.$ac_ext >&5
  12503.  
  12504. ac_cv_func_dlopen=no
  12505. fi
  12506. rm -f conftest.err conftest.$ac_objext \
  12507.       conftest$ac_exeext conftest.$ac_ext
  12508. fi
  12509. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  12510. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  12511. if test $ac_cv_func_dlopen = yes; then
  12512.   lt_cv_dlopen="dlopen"
  12513. else
  12514.   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  12515. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  12516. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  12517.   echo $ECHO_N "(cached) $ECHO_C" >&6
  12518. else
  12519.   ac_check_lib_save_LIBS=$LIBS
  12520. LIBS="-ldl  $LIBS"
  12521. cat >conftest.$ac_ext <<_ACEOF
  12522. /* confdefs.h.  */
  12523. _ACEOF
  12524. cat confdefs.h >>conftest.$ac_ext
  12525. cat >>conftest.$ac_ext <<_ACEOF
  12526. /* end confdefs.h.  */
  12527.  
  12528. /* Override any gcc2 internal prototype to avoid an error.  */
  12529. #ifdef __cplusplus
  12530. extern "C"
  12531. #endif
  12532. /* We use char because int might match the return type of a gcc2
  12533.    builtin and then its argument prototype would still apply.  */
  12534. char dlopen ();
  12535. int
  12536. main ()
  12537. {
  12538. dlopen ();
  12539.   ;
  12540.   return 0;
  12541. }
  12542. _ACEOF
  12543. rm -f conftest.$ac_objext conftest$ac_exeext
  12544. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12545.   (eval $ac_link) 2>conftest.er1
  12546.   ac_status=$?
  12547.   grep -v '^ *+' conftest.er1 >conftest.err
  12548.   rm -f conftest.er1
  12549.   cat conftest.err >&5
  12550.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12551.   (exit $ac_status); } &&
  12552.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  12553.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12554.   (eval $ac_try) 2>&5
  12555.   ac_status=$?
  12556.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12557.   (exit $ac_status); }; } &&
  12558.      { ac_try='test -s conftest$ac_exeext'
  12559.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12560.   (eval $ac_try) 2>&5
  12561.   ac_status=$?
  12562.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12563.   (exit $ac_status); }; }; then
  12564.   ac_cv_lib_dl_dlopen=yes
  12565. else
  12566.   echo "$as_me: failed program was:" >&5
  12567. sed 's/^/| /' conftest.$ac_ext >&5
  12568.  
  12569. ac_cv_lib_dl_dlopen=no
  12570. fi
  12571. rm -f conftest.err conftest.$ac_objext \
  12572.       conftest$ac_exeext conftest.$ac_ext
  12573. LIBS=$ac_check_lib_save_LIBS
  12574. fi
  12575. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  12576. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  12577. if test $ac_cv_lib_dl_dlopen = yes; then
  12578.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  12579. else
  12580.   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  12581. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  12582. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  12583.   echo $ECHO_N "(cached) $ECHO_C" >&6
  12584. else
  12585.   ac_check_lib_save_LIBS=$LIBS
  12586. LIBS="-lsvld  $LIBS"
  12587. cat >conftest.$ac_ext <<_ACEOF
  12588. /* confdefs.h.  */
  12589. _ACEOF
  12590. cat confdefs.h >>conftest.$ac_ext
  12591. cat >>conftest.$ac_ext <<_ACEOF
  12592. /* end confdefs.h.  */
  12593.  
  12594. /* Override any gcc2 internal prototype to avoid an error.  */
  12595. #ifdef __cplusplus
  12596. extern "C"
  12597. #endif
  12598. /* We use char because int might match the return type of a gcc2
  12599.    builtin and then its argument prototype would still apply.  */
  12600. char dlopen ();
  12601. int
  12602. main ()
  12603. {
  12604. dlopen ();
  12605.   ;
  12606.   return 0;
  12607. }
  12608. _ACEOF
  12609. rm -f conftest.$ac_objext conftest$ac_exeext
  12610. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12611.   (eval $ac_link) 2>conftest.er1
  12612.   ac_status=$?
  12613.   grep -v '^ *+' conftest.er1 >conftest.err
  12614.   rm -f conftest.er1
  12615.   cat conftest.err >&5
  12616.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12617.   (exit $ac_status); } &&
  12618.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  12619.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12620.   (eval $ac_try) 2>&5
  12621.   ac_status=$?
  12622.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12623.   (exit $ac_status); }; } &&
  12624.      { ac_try='test -s conftest$ac_exeext'
  12625.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12626.   (eval $ac_try) 2>&5
  12627.   ac_status=$?
  12628.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12629.   (exit $ac_status); }; }; then
  12630.   ac_cv_lib_svld_dlopen=yes
  12631. else
  12632.   echo "$as_me: failed program was:" >&5
  12633. sed 's/^/| /' conftest.$ac_ext >&5
  12634.  
  12635. ac_cv_lib_svld_dlopen=no
  12636. fi
  12637. rm -f conftest.err conftest.$ac_objext \
  12638.       conftest$ac_exeext conftest.$ac_ext
  12639. LIBS=$ac_check_lib_save_LIBS
  12640. fi
  12641. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  12642. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  12643. if test $ac_cv_lib_svld_dlopen = yes; then
  12644.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  12645. else
  12646.   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  12647. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  12648. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  12649.   echo $ECHO_N "(cached) $ECHO_C" >&6
  12650. else
  12651.   ac_check_lib_save_LIBS=$LIBS
  12652. LIBS="-ldld  $LIBS"
  12653. cat >conftest.$ac_ext <<_ACEOF
  12654. /* confdefs.h.  */
  12655. _ACEOF
  12656. cat confdefs.h >>conftest.$ac_ext
  12657. cat >>conftest.$ac_ext <<_ACEOF
  12658. /* end confdefs.h.  */
  12659.  
  12660. /* Override any gcc2 internal prototype to avoid an error.  */
  12661. #ifdef __cplusplus
  12662. extern "C"
  12663. #endif
  12664. /* We use char because int might match the return type of a gcc2
  12665.    builtin and then its argument prototype would still apply.  */
  12666. char dld_link ();
  12667. int
  12668. main ()
  12669. {
  12670. dld_link ();
  12671.   ;
  12672.   return 0;
  12673. }
  12674. _ACEOF
  12675. rm -f conftest.$ac_objext conftest$ac_exeext
  12676. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12677.   (eval $ac_link) 2>conftest.er1
  12678.   ac_status=$?
  12679.   grep -v '^ *+' conftest.er1 >conftest.err
  12680.   rm -f conftest.er1
  12681.   cat conftest.err >&5
  12682.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12683.   (exit $ac_status); } &&
  12684.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  12685.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12686.   (eval $ac_try) 2>&5
  12687.   ac_status=$?
  12688.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12689.   (exit $ac_status); }; } &&
  12690.      { ac_try='test -s conftest$ac_exeext'
  12691.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12692.   (eval $ac_try) 2>&5
  12693.   ac_status=$?
  12694.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12695.   (exit $ac_status); }; }; then
  12696.   ac_cv_lib_dld_dld_link=yes
  12697. else
  12698.   echo "$as_me: failed program was:" >&5
  12699. sed 's/^/| /' conftest.$ac_ext >&5
  12700.  
  12701. ac_cv_lib_dld_dld_link=no
  12702. fi
  12703. rm -f conftest.err conftest.$ac_objext \
  12704.       conftest$ac_exeext conftest.$ac_ext
  12705. LIBS=$ac_check_lib_save_LIBS
  12706. fi
  12707. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  12708. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  12709. if test $ac_cv_lib_dld_dld_link = yes; then
  12710.   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  12711. fi
  12712.  
  12713.  
  12714. fi
  12715.  
  12716.  
  12717. fi
  12718.  
  12719.  
  12720. fi
  12721.  
  12722.  
  12723. fi
  12724.  
  12725.  
  12726. fi
  12727.  
  12728.     ;;
  12729.   esac
  12730.  
  12731.   if test "x$lt_cv_dlopen" != xno; then
  12732.     enable_dlopen=yes
  12733.   else
  12734.     enable_dlopen=no
  12735.   fi
  12736.  
  12737.   case $lt_cv_dlopen in
  12738.   dlopen)
  12739.     save_CPPFLAGS="$CPPFLAGS"
  12740.     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  12741.  
  12742.     save_LDFLAGS="$LDFLAGS"
  12743.     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  12744.  
  12745.     save_LIBS="$LIBS"
  12746.     LIBS="$lt_cv_dlopen_libs $LIBS"
  12747.  
  12748.     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  12749. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  12750. if test "${lt_cv_dlopen_self+set}" = set; then
  12751.   echo $ECHO_N "(cached) $ECHO_C" >&6
  12752. else
  12753.         if test "$cross_compiling" = yes; then :
  12754.   lt_cv_dlopen_self=cross
  12755. else
  12756.   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12757.   lt_status=$lt_dlunknown
  12758.   cat > conftest.$ac_ext <<EOF
  12759. #line 12759 "configure"
  12760. #include "confdefs.h"
  12761.  
  12762. #if HAVE_DLFCN_H
  12763. #include <dlfcn.h>
  12764. #endif
  12765.  
  12766. #include <stdio.h>
  12767.  
  12768. #ifdef RTLD_GLOBAL
  12769. #  define LT_DLGLOBAL        RTLD_GLOBAL
  12770. #else
  12771. #  ifdef DL_GLOBAL
  12772. #    define LT_DLGLOBAL        DL_GLOBAL
  12773. #  else
  12774. #    define LT_DLGLOBAL        0
  12775. #  endif
  12776. #endif
  12777.  
  12778. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12779.    find out it does not work in some platform. */
  12780. #ifndef LT_DLLAZY_OR_NOW
  12781. #  ifdef RTLD_LAZY
  12782. #    define LT_DLLAZY_OR_NOW        RTLD_LAZY
  12783. #  else
  12784. #    ifdef DL_LAZY
  12785. #      define LT_DLLAZY_OR_NOW        DL_LAZY
  12786. #    else
  12787. #      ifdef RTLD_NOW
  12788. #        define LT_DLLAZY_OR_NOW    RTLD_NOW
  12789. #      else
  12790. #        ifdef DL_NOW
  12791. #          define LT_DLLAZY_OR_NOW    DL_NOW
  12792. #        else
  12793. #          define LT_DLLAZY_OR_NOW    0
  12794. #        endif
  12795. #      endif
  12796. #    endif
  12797. #  endif
  12798. #endif
  12799.  
  12800. #ifdef __cplusplus
  12801. extern "C" void exit (int);
  12802. #endif
  12803.  
  12804. void fnord() { int i=42;}
  12805. int main ()
  12806. {
  12807.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12808.   int status = $lt_dlunknown;
  12809.  
  12810.   if (self)
  12811.     {
  12812.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  12813.       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12814.       /* dlclose (self); */
  12815.     }
  12816.  
  12817.     exit (status);
  12818. }
  12819. EOF
  12820.   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12821.   (eval $ac_link) 2>&5
  12822.   ac_status=$?
  12823.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12824.   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  12825.     (./conftest; exit; ) 2>/dev/null
  12826.     lt_status=$?
  12827.     case x$lt_status in
  12828.       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  12829.       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  12830.       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  12831.     esac
  12832.   else :
  12833.     # compilation failed
  12834.     lt_cv_dlopen_self=no
  12835.   fi
  12836. fi
  12837. rm -fr conftest*
  12838.  
  12839.  
  12840. fi
  12841. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  12842. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  12843.  
  12844.     if test "x$lt_cv_dlopen_self" = xyes; then
  12845.       LDFLAGS="$LDFLAGS $link_static_flag"
  12846.       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  12847. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  12848. if test "${lt_cv_dlopen_self_static+set}" = set; then
  12849.   echo $ECHO_N "(cached) $ECHO_C" >&6
  12850. else
  12851.         if test "$cross_compiling" = yes; then :
  12852.   lt_cv_dlopen_self_static=cross
  12853. else
  12854.   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12855.   lt_status=$lt_dlunknown
  12856.   cat > conftest.$ac_ext <<EOF
  12857. #line 12857 "configure"
  12858. #include "confdefs.h"
  12859.  
  12860. #if HAVE_DLFCN_H
  12861. #include <dlfcn.h>
  12862. #endif
  12863.  
  12864. #include <stdio.h>
  12865.  
  12866. #ifdef RTLD_GLOBAL
  12867. #  define LT_DLGLOBAL        RTLD_GLOBAL
  12868. #else
  12869. #  ifdef DL_GLOBAL
  12870. #    define LT_DLGLOBAL        DL_GLOBAL
  12871. #  else
  12872. #    define LT_DLGLOBAL        0
  12873. #  endif
  12874. #endif
  12875.  
  12876. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12877.    find out it does not work in some platform. */
  12878. #ifndef LT_DLLAZY_OR_NOW
  12879. #  ifdef RTLD_LAZY
  12880. #    define LT_DLLAZY_OR_NOW        RTLD_LAZY
  12881. #  else
  12882. #    ifdef DL_LAZY
  12883. #      define LT_DLLAZY_OR_NOW        DL_LAZY
  12884. #    else
  12885. #      ifdef RTLD_NOW
  12886. #        define LT_DLLAZY_OR_NOW    RTLD_NOW
  12887. #      else
  12888. #        ifdef DL_NOW
  12889. #          define LT_DLLAZY_OR_NOW    DL_NOW
  12890. #        else
  12891. #          define LT_DLLAZY_OR_NOW    0
  12892. #        endif
  12893. #      endif
  12894. #    endif
  12895. #  endif
  12896. #endif
  12897.  
  12898. #ifdef __cplusplus
  12899. extern "C" void exit (int);
  12900. #endif
  12901.  
  12902. void fnord() { int i=42;}
  12903. int main ()
  12904. {
  12905.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12906.   int status = $lt_dlunknown;
  12907.  
  12908.   if (self)
  12909.     {
  12910.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  12911.       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12912.       /* dlclose (self); */
  12913.     }
  12914.  
  12915.     exit (status);
  12916. }
  12917. EOF
  12918.   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12919.   (eval $ac_link) 2>&5
  12920.   ac_status=$?
  12921.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12922.   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  12923.     (./conftest; exit; ) 2>/dev/null
  12924.     lt_status=$?
  12925.     case x$lt_status in
  12926.       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  12927.       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  12928.       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  12929.     esac
  12930.   else :
  12931.     # compilation failed
  12932.     lt_cv_dlopen_self_static=no
  12933.   fi
  12934. fi
  12935. rm -fr conftest*
  12936.  
  12937.  
  12938. fi
  12939. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  12940. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  12941.     fi
  12942.  
  12943.     CPPFLAGS="$save_CPPFLAGS"
  12944.     LDFLAGS="$save_LDFLAGS"
  12945.     LIBS="$save_LIBS"
  12946.     ;;
  12947.   esac
  12948.  
  12949.   case $lt_cv_dlopen_self in
  12950.   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  12951.   *) enable_dlopen_self=unknown ;;
  12952.   esac
  12953.  
  12954.   case $lt_cv_dlopen_self_static in
  12955.   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  12956.   *) enable_dlopen_self_static=unknown ;;
  12957.   esac
  12958. fi
  12959.  
  12960.  
  12961. # The else clause should only fire when bootstrapping the
  12962. # libtool distribution, otherwise you forgot to ship ltmain.sh
  12963. # with your package, and you will get complaints that there are
  12964. # no rules to generate ltmain.sh.
  12965. if test -f "$ltmain"; then
  12966.   # See if we are running on zsh, and set the options which allow our commands through
  12967.   # without removal of \ escapes.
  12968.   if test -n "${ZSH_VERSION+set}" ; then
  12969.     setopt NO_GLOB_SUBST
  12970.   fi
  12971.   # Now quote all the things that may contain metacharacters while being
  12972.   # careful not to overquote the AC_SUBSTed values.  We take copies of the
  12973.   # variables and quote the copies for generation of the libtool script.
  12974.   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  12975.     SED SHELL STRIP \
  12976.     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  12977.     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  12978.     deplibs_check_method reload_flag reload_cmds need_locks \
  12979.     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  12980.     lt_cv_sys_global_symbol_to_c_name_address \
  12981.     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  12982.     old_postinstall_cmds old_postuninstall_cmds \
  12983.     compiler_CXX \
  12984.     CC_CXX \
  12985.     LD_CXX \
  12986.     lt_prog_compiler_wl_CXX \
  12987.     lt_prog_compiler_pic_CXX \
  12988.     lt_prog_compiler_static_CXX \
  12989.     lt_prog_compiler_no_builtin_flag_CXX \
  12990.     export_dynamic_flag_spec_CXX \
  12991.     thread_safe_flag_spec_CXX \
  12992.     whole_archive_flag_spec_CXX \
  12993.     enable_shared_with_static_runtimes_CXX \
  12994.     old_archive_cmds_CXX \
  12995.     old_archive_from_new_cmds_CXX \
  12996.     predep_objects_CXX \
  12997.     postdep_objects_CXX \
  12998.     predeps_CXX \
  12999.     postdeps_CXX \
  13000.     compiler_lib_search_path_CXX \
  13001.     archive_cmds_CXX \
  13002.     archive_expsym_cmds_CXX \
  13003.     postinstall_cmds_CXX \
  13004.     postuninstall_cmds_CXX \
  13005.     old_archive_from_expsyms_cmds_CXX \
  13006.     allow_undefined_flag_CXX \
  13007.     no_undefined_flag_CXX \
  13008.     export_symbols_cmds_CXX \
  13009.     hardcode_libdir_flag_spec_CXX \
  13010.     hardcode_libdir_flag_spec_ld_CXX \
  13011.     hardcode_libdir_separator_CXX \
  13012.     hardcode_automatic_CXX \
  13013.     module_cmds_CXX \
  13014.     module_expsym_cmds_CXX \
  13015.     lt_cv_prog_compiler_c_o_CXX \
  13016.     exclude_expsyms_CXX \
  13017.     include_expsyms_CXX; do
  13018.  
  13019.     case $var in
  13020.     old_archive_cmds_CXX | \
  13021.     old_archive_from_new_cmds_CXX | \
  13022.     archive_cmds_CXX | \
  13023.     archive_expsym_cmds_CXX | \
  13024.     module_cmds_CXX | \
  13025.     module_expsym_cmds_CXX | \
  13026.     old_archive_from_expsyms_cmds_CXX | \
  13027.     export_symbols_cmds_CXX | \
  13028.     extract_expsyms_cmds | reload_cmds | finish_cmds | \
  13029.     postinstall_cmds | postuninstall_cmds | \
  13030.     old_postinstall_cmds | old_postuninstall_cmds | \
  13031.     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  13032.       # Double-quote double-evaled strings.
  13033.       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  13034.       ;;
  13035.     *)
  13036.       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  13037.       ;;
  13038.     esac
  13039.   done
  13040.  
  13041.   case $lt_echo in
  13042.   *'\$0 --fallback-echo"')
  13043.     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  13044.     ;;
  13045.   esac
  13046.  
  13047. cfgfile="$ofile"
  13048.  
  13049.   cat <<__EOF__ >> "$cfgfile"
  13050. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  13051.  
  13052. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13053.  
  13054. # Shell to use when invoking shell scripts.
  13055. SHELL=$lt_SHELL
  13056.  
  13057. # Whether or not to build shared libraries.
  13058. build_libtool_libs=$enable_shared
  13059.  
  13060. # Whether or not to build static libraries.
  13061. build_old_libs=$enable_static
  13062.  
  13063. # Whether or not to add -lc for building shared libraries.
  13064. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  13065.  
  13066. # Whether or not to disallow shared libs when runtime libs are static
  13067. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  13068.  
  13069. # Whether or not to optimize for fast installation.
  13070. fast_install=$enable_fast_install
  13071.  
  13072. # The host system.
  13073. host_alias=$host_alias
  13074. host=$host
  13075.  
  13076. # An echo program that does not interpret backslashes.
  13077. echo=$lt_echo
  13078.  
  13079. # The archiver.
  13080. AR=$lt_AR
  13081. AR_FLAGS=$lt_AR_FLAGS
  13082.  
  13083. # A C compiler.
  13084. LTCC=$lt_LTCC
  13085.  
  13086. # A language-specific compiler.
  13087. CC=$lt_compiler_CXX
  13088.  
  13089. # Is the compiler the GNU C compiler?
  13090. with_gcc=$GCC_CXX
  13091.  
  13092. # An ERE matcher.
  13093. EGREP=$lt_EGREP
  13094.  
  13095. # The linker used to build libraries.
  13096. LD=$lt_LD_CXX
  13097.  
  13098. # Whether we need hard or soft links.
  13099. LN_S=$lt_LN_S
  13100.  
  13101. # A BSD-compatible nm program.
  13102. NM=$lt_NM
  13103.  
  13104. # A symbol stripping program
  13105. STRIP=$lt_STRIP
  13106.  
  13107. # Used to examine libraries when file_magic_cmd begins "file"
  13108. MAGIC_CMD=$MAGIC_CMD
  13109.  
  13110. # Used on cygwin: DLL creation program.
  13111. DLLTOOL="$DLLTOOL"
  13112.  
  13113. # Used on cygwin: object dumper.
  13114. OBJDUMP="$OBJDUMP"
  13115.  
  13116. # Used on cygwin: assembler.
  13117. AS="$AS"
  13118.  
  13119. # The name of the directory that contains temporary libtool files.
  13120. objdir=$objdir
  13121.  
  13122. # How to create reloadable object files.
  13123. reload_flag=$lt_reload_flag
  13124. reload_cmds=$lt_reload_cmds
  13125.  
  13126. # How to pass a linker flag through the compiler.
  13127. wl=$lt_lt_prog_compiler_wl_CXX
  13128.  
  13129. # Object file suffix (normally "o").
  13130. objext="$ac_objext"
  13131.  
  13132. # Old archive suffix (normally "a").
  13133. libext="$libext"
  13134.  
  13135. # Shared library suffix (normally ".so").
  13136. shrext_cmds='$shrext_cmds'
  13137.  
  13138. # Executable file suffix (normally "").
  13139. exeext="$exeext"
  13140.  
  13141. # Additional compiler flags for building library objects.
  13142. pic_flag=$lt_lt_prog_compiler_pic_CXX
  13143. pic_mode=$pic_mode
  13144.  
  13145. # What is the maximum length of a command?
  13146. max_cmd_len=$lt_cv_sys_max_cmd_len
  13147.  
  13148. # Does compiler simultaneously support -c and -o options?
  13149. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  13150.  
  13151. # Must we lock files when doing compilation ?
  13152. need_locks=$lt_need_locks
  13153.  
  13154. # Do we need the lib prefix for modules?
  13155. need_lib_prefix=$need_lib_prefix
  13156.  
  13157. # Do we need a version for libraries?
  13158. need_version=$need_version
  13159.  
  13160. # Whether dlopen is supported.
  13161. dlopen_support=$enable_dlopen
  13162.  
  13163. # Whether dlopen of programs is supported.
  13164. dlopen_self=$enable_dlopen_self
  13165.  
  13166. # Whether dlopen of statically linked programs is supported.
  13167. dlopen_self_static=$enable_dlopen_self_static
  13168.  
  13169. # Compiler flag to prevent dynamic linking.
  13170. link_static_flag=$lt_lt_prog_compiler_static_CXX
  13171.  
  13172. # Compiler flag to turn off builtin functions.
  13173. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  13174.  
  13175. # Compiler flag to allow reflexive dlopens.
  13176. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  13177.  
  13178. # Compiler flag to generate shared objects directly from archives.
  13179. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  13180.  
  13181. # Compiler flag to generate thread-safe objects.
  13182. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  13183.  
  13184. # Library versioning type.
  13185. version_type=$version_type
  13186.  
  13187. # Format of library name prefix.
  13188. libname_spec=$lt_libname_spec
  13189.  
  13190. # List of archive names.  First name is the real one, the rest are links.
  13191. # The last name is the one that the linker finds with -lNAME.
  13192. library_names_spec=$lt_library_names_spec
  13193.  
  13194. # The coded name of the library, if different from the real name.
  13195. soname_spec=$lt_soname_spec
  13196.  
  13197. # Commands used to build and install an old-style archive.
  13198. RANLIB=$lt_RANLIB
  13199. old_archive_cmds=$lt_old_archive_cmds_CXX
  13200. old_postinstall_cmds=$lt_old_postinstall_cmds
  13201. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13202.  
  13203. # Create an old-style archive from a shared archive.
  13204. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  13205.  
  13206. # Create a temporary old-style archive to link instead of a shared archive.
  13207. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  13208.  
  13209. # Commands used to build and install a shared archive.
  13210. archive_cmds=$lt_archive_cmds_CXX
  13211. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  13212. postinstall_cmds=$lt_postinstall_cmds
  13213. postuninstall_cmds=$lt_postuninstall_cmds
  13214.  
  13215. # Commands used to build a loadable module (assumed same as above if empty)
  13216. module_cmds=$lt_module_cmds_CXX
  13217. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  13218.  
  13219. # Commands to strip libraries.
  13220. old_striplib=$lt_old_striplib
  13221. striplib=$lt_striplib
  13222.  
  13223. # Dependencies to place before the objects being linked to create a
  13224. # shared library.
  13225. predep_objects=$lt_predep_objects_CXX
  13226.  
  13227. # Dependencies to place after the objects being linked to create a
  13228. # shared library.
  13229. postdep_objects=$lt_postdep_objects_CXX
  13230.  
  13231. # Dependencies to place before the objects being linked to create a
  13232. # shared library.
  13233. predeps=$lt_predeps_CXX
  13234.  
  13235. # Dependencies to place after the objects being linked to create a
  13236. # shared library.
  13237. postdeps=$lt_postdeps_CXX
  13238.  
  13239. # The library search path used internally by the compiler when linking
  13240. # a shared library.
  13241. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  13242.  
  13243. # Method to check whether dependent libraries are shared objects.
  13244. deplibs_check_method=$lt_deplibs_check_method
  13245.  
  13246. # Command to use when deplibs_check_method == file_magic.
  13247. file_magic_cmd=$lt_file_magic_cmd
  13248.  
  13249. # Flag that allows shared libraries with undefined symbols to be built.
  13250. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  13251.  
  13252. # Flag that forces no undefined symbols.
  13253. no_undefined_flag=$lt_no_undefined_flag_CXX
  13254.  
  13255. # Commands used to finish a libtool library installation in a directory.
  13256. finish_cmds=$lt_finish_cmds
  13257.  
  13258. # Same as above, but a single script fragment to be evaled but not shown.
  13259. finish_eval=$lt_finish_eval
  13260.  
  13261. # Take the output of nm and produce a listing of raw symbols and C names.
  13262. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13263.  
  13264. # Transform the output of nm in a proper C declaration
  13265. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13266.  
  13267. # Transform the output of nm in a C name address pair
  13268. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13269.  
  13270. # This is the shared library runtime path variable.
  13271. runpath_var=$runpath_var
  13272.  
  13273. # This is the shared library path variable.
  13274. shlibpath_var=$shlibpath_var
  13275.  
  13276. # Is shlibpath searched before the hard-coded library search path?
  13277. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13278.  
  13279. # How to hardcode a shared library path into an executable.
  13280. hardcode_action=$hardcode_action_CXX
  13281.  
  13282. # Whether we should hardcode library paths into libraries.
  13283. hardcode_into_libs=$hardcode_into_libs
  13284.  
  13285. # Flag to hardcode \$libdir into a binary during linking.
  13286. # This must work even if \$libdir does not exist.
  13287. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  13288.  
  13289. # If ld is used when linking, flag to hardcode \$libdir into
  13290. # a binary during linking. This must work even if \$libdir does
  13291. # not exist.
  13292. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  13293.  
  13294. # Whether we need a single -rpath flag with a separated argument.
  13295. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  13296.  
  13297. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  13298. # resulting binary.
  13299. hardcode_direct=$hardcode_direct_CXX
  13300.  
  13301. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  13302. # resulting binary.
  13303. hardcode_minus_L=$hardcode_minus_L_CXX
  13304.  
  13305. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  13306. # the resulting binary.
  13307. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  13308.  
  13309. # Set to yes if building a shared library automatically hardcodes DIR into the library
  13310. # and all subsequent libraries and executables linked against it.
  13311. hardcode_automatic=$hardcode_automatic_CXX
  13312.  
  13313. # Variables whose values should be saved in libtool wrapper scripts and
  13314. # restored at relink time.
  13315. variables_saved_for_relink="$variables_saved_for_relink"
  13316.  
  13317. # Whether libtool must link a program against all its dependency libraries.
  13318. link_all_deplibs=$link_all_deplibs_CXX
  13319.  
  13320. # Compile-time system search path for libraries
  13321. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13322.  
  13323. # Run-time system search path for libraries
  13324. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  13325.  
  13326. # Fix the shell variable \$srcfile for the compiler.
  13327. fix_srcfile_path="$fix_srcfile_path_CXX"
  13328.  
  13329. # Set to yes if exported symbols are required.
  13330. always_export_symbols=$always_export_symbols_CXX
  13331.  
  13332. # The commands to list exported symbols.
  13333. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  13334.  
  13335. # The commands to extract the exported symbol list from a shared archive.
  13336. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13337.  
  13338. # Symbols that should not be listed in the preloaded symbols.
  13339. exclude_expsyms=$lt_exclude_expsyms_CXX
  13340.  
  13341. # Symbols that must always be exported.
  13342. include_expsyms=$lt_include_expsyms_CXX
  13343.  
  13344. # ### END LIBTOOL TAG CONFIG: $tagname
  13345.  
  13346. __EOF__
  13347.  
  13348.  
  13349. else
  13350.   # If there is no Makefile yet, we rely on a make rule to execute
  13351.   # `config.status --recheck' to rerun these tests and create the
  13352.   # libtool script then.
  13353.   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  13354.   if test -f "$ltmain_in"; then
  13355.     test -f Makefile && make "$ltmain"
  13356.   fi
  13357. fi
  13358.  
  13359.  
  13360. ac_ext=c
  13361. ac_cpp='$CPP $CPPFLAGS'
  13362. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13363. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13364. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13365.  
  13366. CC=$lt_save_CC
  13367. LDCXX=$LD
  13368. LD=$lt_save_LD
  13369. GCC=$lt_save_GCC
  13370. with_gnu_ldcxx=$with_gnu_ld
  13371. with_gnu_ld=$lt_save_with_gnu_ld
  13372. lt_cv_path_LDCXX=$lt_cv_path_LD
  13373. lt_cv_path_LD=$lt_save_path_LD
  13374. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13375. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13376.  
  13377.     else
  13378.       tagname=""
  13379.     fi
  13380.     ;;
  13381.  
  13382.       F77)
  13383.     if test -n "$F77" && test "X$F77" != "Xno"; then
  13384.  
  13385. ac_ext=f
  13386. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  13387. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13388. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  13389.  
  13390.  
  13391. archive_cmds_need_lc_F77=no
  13392. allow_undefined_flag_F77=
  13393. always_export_symbols_F77=no
  13394. archive_expsym_cmds_F77=
  13395. export_dynamic_flag_spec_F77=
  13396. hardcode_direct_F77=no
  13397. hardcode_libdir_flag_spec_F77=
  13398. hardcode_libdir_flag_spec_ld_F77=
  13399. hardcode_libdir_separator_F77=
  13400. hardcode_minus_L_F77=no
  13401. hardcode_automatic_F77=no
  13402. module_cmds_F77=
  13403. module_expsym_cmds_F77=
  13404. link_all_deplibs_F77=unknown
  13405. old_archive_cmds_F77=$old_archive_cmds
  13406. no_undefined_flag_F77=
  13407. whole_archive_flag_spec_F77=
  13408. enable_shared_with_static_runtimes_F77=no
  13409.  
  13410. # Source file extension for f77 test sources.
  13411. ac_ext=f
  13412.  
  13413. # Object file extension for compiled f77 test sources.
  13414. objext=o
  13415. objext_F77=$objext
  13416.  
  13417. # Code to be used in simple compile tests
  13418. lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
  13419.  
  13420. # Code to be used in simple link tests
  13421. lt_simple_link_test_code="      program t\n      end\n"
  13422.  
  13423. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  13424.  
  13425. # If no C compiler was specified, use CC.
  13426. LTCC=${LTCC-"$CC"}
  13427.  
  13428. # Allow CC to be a program name with arguments.
  13429. compiler=$CC
  13430.  
  13431.  
  13432. # Allow CC to be a program name with arguments.
  13433. lt_save_CC="$CC"
  13434. CC=${F77-"f77"}
  13435. compiler=$CC
  13436. compiler_F77=$CC
  13437. cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  13438.  
  13439. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  13440. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  13441. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  13442. echo "${ECHO_T}$can_build_shared" >&6
  13443.  
  13444. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  13445. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  13446. test "$can_build_shared" = "no" && enable_shared=no
  13447.  
  13448. # On AIX, shared libraries and static libraries use the same namespace, and
  13449. # are all built from PIC.
  13450. case "$host_os" in
  13451. aix3*)
  13452.   test "$enable_shared" = yes && enable_static=no
  13453.   if test -n "$RANLIB"; then
  13454.     archive_cmds="$archive_cmds~\$RANLIB \$lib"
  13455.     postinstall_cmds='$RANLIB $lib'
  13456.   fi
  13457.   ;;
  13458. aix4* | aix5*)
  13459.   test "$enable_shared" = yes && enable_static=no
  13460.   ;;
  13461. esac
  13462. echo "$as_me:$LINENO: result: $enable_shared" >&5
  13463. echo "${ECHO_T}$enable_shared" >&6
  13464.  
  13465. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  13466. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  13467. # Make sure either enable_shared or enable_static is yes.
  13468. test "$enable_shared" = yes || enable_static=yes
  13469. echo "$as_me:$LINENO: result: $enable_static" >&5
  13470. echo "${ECHO_T}$enable_static" >&6
  13471.  
  13472. test "$ld_shlibs_F77" = no && can_build_shared=no
  13473.  
  13474. GCC_F77="$G77"
  13475. LD_F77="$LD"
  13476.  
  13477. lt_prog_compiler_wl_F77=
  13478. lt_prog_compiler_pic_F77=
  13479. lt_prog_compiler_static_F77=
  13480.  
  13481. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  13482. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  13483.  
  13484.   if test "$GCC" = yes; then
  13485.     lt_prog_compiler_wl_F77='-Wl,'
  13486.     lt_prog_compiler_static_F77='-static'
  13487.  
  13488.     case $host_os in
  13489.       aix*)
  13490.       # All AIX code is PIC.
  13491.       if test "$host_cpu" = ia64; then
  13492.     # AIX 5 now supports IA64 processor
  13493.     lt_prog_compiler_static_F77='-Bstatic'
  13494.       fi
  13495.       ;;
  13496.  
  13497.     amigaos*)
  13498.       # FIXME: we need at least 68020 code to build shared libraries, but
  13499.       # adding the `-m68020' flag to GCC prevents building anything better,
  13500.       # like `-m68040'.
  13501.       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  13502.       ;;
  13503.  
  13504.     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13505.       # PIC is the default for these OSes.
  13506.       ;;
  13507.  
  13508.     mingw* | pw32* | os2*)
  13509.       # This hack is so that the source file can tell whether it is being
  13510.       # built for inclusion in a dll (and should export symbols for example).
  13511.       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  13512.       ;;
  13513.  
  13514.     darwin* | rhapsody*)
  13515.       # PIC is the default on this platform
  13516.       # Common symbols not allowed in MH_DYLIB files
  13517.       lt_prog_compiler_pic_F77='-fno-common'
  13518.       ;;
  13519.  
  13520.     msdosdjgpp*)
  13521.       # Just because we use GCC doesn't mean we suddenly get shared libraries
  13522.       # on systems that don't support them.
  13523.       lt_prog_compiler_can_build_shared_F77=no
  13524.       enable_shared=no
  13525.       ;;
  13526.  
  13527.     sysv4*MP*)
  13528.       if test -d /usr/nec; then
  13529.     lt_prog_compiler_pic_F77=-Kconform_pic
  13530.       fi
  13531.       ;;
  13532.  
  13533.     hpux*)
  13534.       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13535.       # not for PA HP-UX.
  13536.       case "$host_cpu" in
  13537.       hppa*64*|ia64*)
  13538.     # +Z the default
  13539.     ;;
  13540.       *)
  13541.     lt_prog_compiler_pic_F77='-fPIC'
  13542.     ;;
  13543.       esac
  13544.       ;;
  13545.  
  13546.     *)
  13547.       lt_prog_compiler_pic_F77='-fPIC'
  13548.       ;;
  13549.     esac
  13550.   else
  13551.     # PORTME Check for flag to pass linker flags through the system compiler.
  13552.     case $host_os in
  13553.     aix*)
  13554.       lt_prog_compiler_wl_F77='-Wl,'
  13555.       if test "$host_cpu" = ia64; then
  13556.     # AIX 5 now supports IA64 processor
  13557.     lt_prog_compiler_static_F77='-Bstatic'
  13558.       else
  13559.     lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  13560.       fi
  13561.       ;;
  13562.  
  13563.     mingw* | pw32* | os2*)
  13564.       # This hack is so that the source file can tell whether it is being
  13565.       # built for inclusion in a dll (and should export symbols for example).
  13566.       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  13567.       ;;
  13568.  
  13569.     hpux9* | hpux10* | hpux11*)
  13570.       lt_prog_compiler_wl_F77='-Wl,'
  13571.       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13572.       # not for PA HP-UX.
  13573.       case "$host_cpu" in
  13574.       hppa*64*|ia64*)
  13575.     # +Z the default
  13576.     ;;
  13577.       *)
  13578.     lt_prog_compiler_pic_F77='+Z'
  13579.     ;;
  13580.       esac
  13581.       # Is there a better lt_prog_compiler_static that works with the bundled CC?
  13582.       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  13583.       ;;
  13584.  
  13585.     irix5* | irix6* | nonstopux*)
  13586.       lt_prog_compiler_wl_F77='-Wl,'
  13587.       # PIC (with -KPIC) is the default.
  13588.       lt_prog_compiler_static_F77='-non_shared'
  13589.       ;;
  13590.  
  13591.     newsos6)
  13592.       lt_prog_compiler_pic_F77='-KPIC'
  13593.       lt_prog_compiler_static_F77='-Bstatic'
  13594.       ;;
  13595.  
  13596.     linux*)
  13597.       case $CC in
  13598.       icc* | ecc*)
  13599.     lt_prog_compiler_wl_F77='-Wl,'
  13600.     lt_prog_compiler_pic_F77='-KPIC'
  13601.     lt_prog_compiler_static_F77='-static'
  13602.         ;;
  13603.       ccc*)
  13604.         lt_prog_compiler_wl_F77='-Wl,'
  13605.         # All Alpha code is PIC.
  13606.         lt_prog_compiler_static_F77='-non_shared'
  13607.         ;;
  13608.       esac
  13609.       ;;
  13610.  
  13611.     osf3* | osf4* | osf5*)
  13612.       lt_prog_compiler_wl_F77='-Wl,'
  13613.       # All OSF/1 code is PIC.
  13614.       lt_prog_compiler_static_F77='-non_shared'
  13615.       ;;
  13616.  
  13617.     sco3.2v5*)
  13618.       lt_prog_compiler_pic_F77='-Kpic'
  13619.       lt_prog_compiler_static_F77='-dn'
  13620.       ;;
  13621.  
  13622.     solaris*)
  13623.       lt_prog_compiler_wl_F77='-Wl,'
  13624.       lt_prog_compiler_pic_F77='-KPIC'
  13625.       lt_prog_compiler_static_F77='-Bstatic'
  13626.       ;;
  13627.  
  13628.     sunos4*)
  13629.       lt_prog_compiler_wl_F77='-Qoption ld '
  13630.       lt_prog_compiler_pic_F77='-PIC'
  13631.       lt_prog_compiler_static_F77='-Bstatic'
  13632.       ;;
  13633.  
  13634.     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  13635.       lt_prog_compiler_wl_F77='-Wl,'
  13636.       lt_prog_compiler_pic_F77='-KPIC'
  13637.       lt_prog_compiler_static_F77='-Bstatic'
  13638.       ;;
  13639.  
  13640.     sysv4*MP*)
  13641.       if test -d /usr/nec ;then
  13642.     lt_prog_compiler_pic_F77='-Kconform_pic'
  13643.     lt_prog_compiler_static_F77='-Bstatic'
  13644.       fi
  13645.       ;;
  13646.  
  13647.     uts4*)
  13648.       lt_prog_compiler_pic_F77='-pic'
  13649.       lt_prog_compiler_static_F77='-Bstatic'
  13650.       ;;
  13651.  
  13652.     *)
  13653.       lt_prog_compiler_can_build_shared_F77=no
  13654.       ;;
  13655.     esac
  13656.   fi
  13657.  
  13658. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  13659. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
  13660.  
  13661. #
  13662. # Check to make sure the PIC flag actually works.
  13663. #
  13664. if test -n "$lt_prog_compiler_pic_F77"; then
  13665.  
  13666. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  13667. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
  13668. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  13669.   echo $ECHO_N "(cached) $ECHO_C" >&6
  13670. else
  13671.   lt_prog_compiler_pic_works_F77=no
  13672.   ac_outfile=conftest.$ac_objext
  13673.    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13674.    lt_compiler_flag="$lt_prog_compiler_pic_F77"
  13675.    # Insert the option either (1) after the last *FLAGS variable, or
  13676.    # (2) before a word containing "conftest.", or (3) at the end.
  13677.    # Note that $ac_compile itself does not contain backslashes and begins
  13678.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  13679.    # The option is referenced via a variable to avoid confusing sed.
  13680.    lt_compile=`echo "$ac_compile" | $SED \
  13681.    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  13682.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13683.    -e 's:$: $lt_compiler_flag:'`
  13684.    (eval echo "\"\$as_me:13684: $lt_compile\"" >&5)
  13685.    (eval "$lt_compile" 2>conftest.err)
  13686.    ac_status=$?
  13687.    cat conftest.err >&5
  13688.    echo "$as_me:13688: \$? = $ac_status" >&5
  13689.    if (exit $ac_status) && test -s "$ac_outfile"; then
  13690.      # The compiler can only warn and ignore the option if not recognized
  13691.      # So say no if there are warnings
  13692.      if test ! -s conftest.err; then
  13693.        lt_prog_compiler_pic_works_F77=yes
  13694.      fi
  13695.    fi
  13696.    $rm conftest*
  13697.  
  13698. fi
  13699. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  13700. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
  13701.  
  13702. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  13703.     case $lt_prog_compiler_pic_F77 in
  13704.      "" | " "*) ;;
  13705.      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  13706.      esac
  13707. else
  13708.     lt_prog_compiler_pic_F77=
  13709.      lt_prog_compiler_can_build_shared_F77=no
  13710. fi
  13711.  
  13712. fi
  13713. case "$host_os" in
  13714.   # For platforms which do not support PIC, -DPIC is meaningless:
  13715.   *djgpp*)
  13716.     lt_prog_compiler_pic_F77=
  13717.     ;;
  13718.   *)
  13719.     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  13720.     ;;
  13721. esac
  13722.  
  13723. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  13724. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  13725. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  13726.   echo $ECHO_N "(cached) $ECHO_C" >&6
  13727. else
  13728.   lt_cv_prog_compiler_c_o_F77=no
  13729.    $rm -r conftest 2>/dev/null
  13730.    mkdir conftest
  13731.    cd conftest
  13732.    mkdir out
  13733.    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13734.  
  13735.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  13736.    # Insert the option either (1) after the last *FLAGS variable, or
  13737.    # (2) before a word containing "conftest.", or (3) at the end.
  13738.    # Note that $ac_compile itself does not contain backslashes and begins
  13739.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  13740.    lt_compile=`echo "$ac_compile" | $SED \
  13741.    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  13742.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13743.    -e 's:$: $lt_compiler_flag:'`
  13744.    (eval echo "\"\$as_me:13744: $lt_compile\"" >&5)
  13745.    (eval "$lt_compile" 2>out/conftest.err)
  13746.    ac_status=$?
  13747.    cat out/conftest.err >&5
  13748.    echo "$as_me:13748: \$? = $ac_status" >&5
  13749.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13750.    then
  13751.      # The compiler can only warn and ignore the option if not recognized
  13752.      # So say no if there are warnings
  13753.      if test ! -s out/conftest.err; then
  13754.        lt_cv_prog_compiler_c_o_F77=yes
  13755.      fi
  13756.    fi
  13757.    chmod u+w .
  13758.    $rm conftest*
  13759.    # SGI C++ compiler will create directory out/ii_files/ for
  13760.    # template instantiation
  13761.    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  13762.    $rm out/* && rmdir out
  13763.    cd ..
  13764.    rmdir conftest
  13765.    $rm conftest*
  13766.  
  13767. fi
  13768. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  13769. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
  13770.  
  13771.  
  13772. hard_links="nottested"
  13773. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  13774.   # do not overwrite the value of need_locks provided by the user
  13775.   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  13776. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  13777.   hard_links=yes
  13778.   $rm conftest*
  13779.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13780.   touch conftest.a
  13781.   ln conftest.a conftest.b 2>&5 || hard_links=no
  13782.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13783.   echo "$as_me:$LINENO: result: $hard_links" >&5
  13784. echo "${ECHO_T}$hard_links" >&6
  13785.   if test "$hard_links" = no; then
  13786.     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  13787. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  13788.     need_locks=warn
  13789.   fi
  13790. else
  13791.   need_locks=no
  13792. fi
  13793.  
  13794. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13795. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  13796.  
  13797.   runpath_var=
  13798.   allow_undefined_flag_F77=
  13799.   enable_shared_with_static_runtimes_F77=no
  13800.   archive_cmds_F77=
  13801.   archive_expsym_cmds_F77=
  13802.   old_archive_From_new_cmds_F77=
  13803.   old_archive_from_expsyms_cmds_F77=
  13804.   export_dynamic_flag_spec_F77=
  13805.   whole_archive_flag_spec_F77=
  13806.   thread_safe_flag_spec_F77=
  13807.   hardcode_libdir_flag_spec_F77=
  13808.   hardcode_libdir_flag_spec_ld_F77=
  13809.   hardcode_libdir_separator_F77=
  13810.   hardcode_direct_F77=no
  13811.   hardcode_minus_L_F77=no
  13812.   hardcode_shlibpath_var_F77=unsupported
  13813.   link_all_deplibs_F77=unknown
  13814.   hardcode_automatic_F77=no
  13815.   module_cmds_F77=
  13816.   module_expsym_cmds_F77=
  13817.   always_export_symbols_F77=no
  13818.   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13819.   # include_expsyms should be a list of space-separated symbols to be *always*
  13820.   # included in the symbol list
  13821.   include_expsyms_F77=
  13822.   # exclude_expsyms can be an extended regexp of symbols to exclude
  13823.   # it will be wrapped by ` (' and `)$', so one must not match beginning or
  13824.   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  13825.   # as well as any symbol that contains `d'.
  13826.   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  13827.   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  13828.   # platforms (ab)use it in PIC code, but their linkers get confused if
  13829.   # the symbol is explicitly referenced.  Since portable code cannot
  13830.   # rely on this symbol name, it's probably fine to never include it in
  13831.   # preloaded symbol tables.
  13832.   extract_expsyms_cmds=
  13833.  
  13834.   case $host_os in
  13835.   cygwin* | mingw* | pw32*)
  13836.     # FIXME: the MSVC++ port hasn't been tested in a loooong time
  13837.     # When not using gcc, we currently assume that we are using
  13838.     # Microsoft Visual C++.
  13839.     if test "$GCC" != yes; then
  13840.       with_gnu_ld=no
  13841.     fi
  13842.     ;;
  13843.   openbsd*)
  13844.     with_gnu_ld=no
  13845.     ;;
  13846.   esac
  13847.  
  13848.   ld_shlibs_F77=yes
  13849.   if test "$with_gnu_ld" = yes; then
  13850.     # If archive_cmds runs LD, not CC, wlarc should be empty
  13851.     wlarc='${wl}'
  13852.  
  13853.     # See if GNU ld supports shared libraries.
  13854.     case $host_os in
  13855.     aix3* | aix4* | aix5*)
  13856.       # On AIX/PPC, the GNU linker is very broken
  13857.       if test "$host_cpu" != ia64; then
  13858.     ld_shlibs_F77=no
  13859.     cat <<EOF 1>&2
  13860.  
  13861. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  13862. *** to be unable to reliably create shared libraries on AIX.
  13863. *** Therefore, libtool is disabling shared libraries support.  If you
  13864. *** really care for shared libraries, you may want to modify your PATH
  13865. *** so that a non-GNU linker is found, and then restart.
  13866.  
  13867. EOF
  13868.       fi
  13869.       ;;
  13870.  
  13871.     amigaos*)
  13872.       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)'
  13873.       hardcode_libdir_flag_spec_F77='-L$libdir'
  13874.       hardcode_minus_L_F77=yes
  13875.  
  13876.       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  13877.       # that the semantics of dynamic libraries on AmigaOS, at least up
  13878.       # to version 4, is to share data among multiple programs linked
  13879.       # with the same dynamic library.  Since this doesn't match the
  13880.       # behavior of shared libraries on other platforms, we can't use
  13881.       # them.
  13882.       ld_shlibs_F77=no
  13883.       ;;
  13884.  
  13885.     beos*)
  13886.       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13887.     allow_undefined_flag_F77=unsupported
  13888.     # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13889.     # support --undefined.  This deserves some investigation.  FIXME
  13890.     archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13891.       else
  13892.     ld_shlibs_F77=no
  13893.       fi
  13894.       ;;
  13895.  
  13896.     cygwin* | mingw* | pw32*)
  13897.       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  13898.       # as there is no search path for DLLs.
  13899.       hardcode_libdir_flag_spec_F77='-L$libdir'
  13900.       allow_undefined_flag_F77=unsupported
  13901.       always_export_symbols_F77=no
  13902.       enable_shared_with_static_runtimes_F77=yes
  13903.       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  13904.  
  13905.       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  13906.         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  13907.     # If the export-symbols file already is a .def file (1st line
  13908.     # is EXPORTS), use it as is; otherwise, prepend...
  13909.     archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13910.       cp $export_symbols $output_objdir/$soname.def;
  13911.     else
  13912.       echo EXPORTS > $output_objdir/$soname.def;
  13913.       cat $export_symbols >> $output_objdir/$soname.def;
  13914.     fi~
  13915.     $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
  13916.       else
  13917.     ld_shlibs=no
  13918.       fi
  13919.       ;;
  13920.  
  13921.     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  13922.       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13923.     archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  13924.     wlarc=
  13925.       else
  13926.     archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13927.     archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13928.       fi
  13929.       ;;
  13930.  
  13931.     solaris* | sysv5*)
  13932.       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  13933.     ld_shlibs_F77=no
  13934.     cat <<EOF 1>&2
  13935.  
  13936. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  13937. *** create shared libraries on Solaris systems.  Therefore, libtool
  13938. *** is disabling shared libraries support.  We urge you to upgrade GNU
  13939. *** binutils to release 2.9.1 or newer.  Another option is to modify
  13940. *** your PATH or compiler configuration so that the native linker is
  13941. *** used, and then restart.
  13942.  
  13943. EOF
  13944.       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13945.     archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13946.     archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13947.       else
  13948.     ld_shlibs_F77=no
  13949.       fi
  13950.       ;;
  13951.  
  13952.     sunos4*)
  13953.       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13954.       wlarc=
  13955.       hardcode_direct_F77=yes
  13956.       hardcode_shlibpath_var_F77=no
  13957.       ;;
  13958.  
  13959.   linux*)
  13960.     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13961.         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13962.     archive_cmds_F77="$tmp_archive_cmds"
  13963.       supports_anon_versioning=no
  13964.       case `$LD -v 2>/dev/null` in
  13965.         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  13966.         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  13967.         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  13968.         *\ 2.11.*) ;; # other 2.11 versions
  13969.         *) supports_anon_versioning=yes ;;
  13970.       esac
  13971.       if test $supports_anon_versioning = yes; then
  13972.         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  13973. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13974. $echo "local: *; };" >> $output_objdir/$libname.ver~
  13975.         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  13976.       else
  13977.         archive_expsym_cmds_F77="$tmp_archive_cmds"
  13978.       fi
  13979.       link_all_deplibs_F77=no
  13980.     else
  13981.       ld_shlibs_F77=no
  13982.     fi
  13983.     ;;
  13984.  
  13985.     *)
  13986.       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13987.     archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13988.     archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13989.       else
  13990.     ld_shlibs_F77=no
  13991.       fi
  13992.       ;;
  13993.     esac
  13994.  
  13995.     if test "$ld_shlibs_F77" = yes; then
  13996.       runpath_var=LD_RUN_PATH
  13997.       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  13998.       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  13999.       # ancient GNU ld didn't support --whole-archive et. al.
  14000.       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  14001.      whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  14002.       else
  14003.       whole_archive_flag_spec_F77=
  14004.       fi
  14005.     fi
  14006.   else
  14007.     # PORTME fill in a description of your system's linker (not GNU ld)
  14008.     case $host_os in
  14009.     aix3*)
  14010.       allow_undefined_flag_F77=unsupported
  14011.       always_export_symbols_F77=yes
  14012.       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'
  14013.       # Note: this linker hardcodes the directories in LIBPATH if there
  14014.       # are no directories specified by -L.
  14015.       hardcode_minus_L_F77=yes
  14016.       if test "$GCC" = yes && test -z "$link_static_flag"; then
  14017.     # Neither direct hardcoding nor static linking is supported with a
  14018.     # broken collect2.
  14019.     hardcode_direct_F77=unsupported
  14020.       fi
  14021.       ;;
  14022.  
  14023.     aix4* | aix5*)
  14024.       if test "$host_cpu" = ia64; then
  14025.     # On IA64, the linker does run time linking by default, so we don't
  14026.     # have to do anything special.
  14027.     aix_use_runtimelinking=no
  14028.     exp_sym_flag='-Bexport'
  14029.     no_entry_flag=""
  14030.       else
  14031.     # If we're using GNU nm, then we don't want the "-C" option.
  14032.     # -C means demangle to AIX nm, but means don't demangle with GNU nm
  14033.     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  14034.       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'
  14035.     else
  14036.       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'
  14037.     fi
  14038.     aix_use_runtimelinking=no
  14039.  
  14040.     # Test if we are trying to use run time linking or normal
  14041.     # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  14042.     # need to do runtime linking.
  14043.     case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  14044.       for ld_flag in $LDFLAGS; do
  14045.         if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  14046.           aix_use_runtimelinking=yes
  14047.           break
  14048.         fi
  14049.       done
  14050.     esac
  14051.  
  14052.     exp_sym_flag='-bexport'
  14053.     no_entry_flag='-bnoentry'
  14054.       fi
  14055.  
  14056.       # When large executables or shared objects are built, AIX ld can
  14057.       # have problems creating the table of contents.  If linking a library
  14058.       # or program results in "error TOC overflow" add -mminimal-toc to
  14059.       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  14060.       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  14061.  
  14062.       archive_cmds_F77=''
  14063.       hardcode_direct_F77=yes
  14064.       hardcode_libdir_separator_F77=':'
  14065.       link_all_deplibs_F77=yes
  14066.  
  14067.       if test "$GCC" = yes; then
  14068.     case $host_os in aix4.012|aix4.012.*)
  14069.     # We only want to do this on AIX 4.2 and lower, the check
  14070.     # below for broken collect2 doesn't work under 4.3+
  14071.       collect2name=`${CC} -print-prog-name=collect2`
  14072.       if test -f "$collect2name" && \
  14073.          strings "$collect2name" | grep resolve_lib_name >/dev/null
  14074.       then
  14075.         # We have reworked collect2
  14076.         hardcode_direct_F77=yes
  14077.       else
  14078.         # We have old collect2
  14079.         hardcode_direct_F77=unsupported
  14080.         # It fails to find uninstalled libraries when the uninstalled
  14081.         # path is not listed in the libpath.  Setting hardcode_minus_L
  14082.         # to unsupported forces relinking
  14083.         hardcode_minus_L_F77=yes
  14084.         hardcode_libdir_flag_spec_F77='-L$libdir'
  14085.         hardcode_libdir_separator_F77=
  14086.       fi
  14087.     esac
  14088.     shared_flag='-shared'
  14089.       else
  14090.     # not using gcc
  14091.     if test "$host_cpu" = ia64; then
  14092.       # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  14093.       # chokes on -Wl,-G. The following line is correct:
  14094.       shared_flag='-G'
  14095.     else
  14096.       if test "$aix_use_runtimelinking" = yes; then
  14097.         shared_flag='${wl}-G'
  14098.       else
  14099.         shared_flag='${wl}-bM:SRE'
  14100.       fi
  14101.     fi
  14102.       fi
  14103.  
  14104.       # It seems that -bexpall does not export symbols beginning with
  14105.       # underscore (_), so it is better to generate a list of symbols to export.
  14106.       always_export_symbols_F77=yes
  14107.       if test "$aix_use_runtimelinking" = yes; then
  14108.     # Warning - without using the other runtime loading flags (-brtl),
  14109.     # -berok will link without error, but may produce a broken library.
  14110.     allow_undefined_flag_F77='-berok'
  14111.        # Determine the default libpath from the value encoded in an empty executable.
  14112.        cat >conftest.$ac_ext <<_ACEOF
  14113.       program main
  14114.  
  14115.       end
  14116. _ACEOF
  14117. rm -f conftest.$ac_objext conftest$ac_exeext
  14118. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14119.   (eval $ac_link) 2>conftest.er1
  14120.   ac_status=$?
  14121.   grep -v '^ *+' conftest.er1 >conftest.err
  14122.   rm -f conftest.er1
  14123.   cat conftest.err >&5
  14124.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14125.   (exit $ac_status); } &&
  14126.      { ac_try='test -z "$ac_f77_werror_flag"             || test ! -s conftest.err'
  14127.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14128.   (eval $ac_try) 2>&5
  14129.   ac_status=$?
  14130.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14131.   (exit $ac_status); }; } &&
  14132.      { ac_try='test -s conftest$ac_exeext'
  14133.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14134.   (eval $ac_try) 2>&5
  14135.   ac_status=$?
  14136.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14137.   (exit $ac_status); }; }; then
  14138.  
  14139. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
  14140. }'`
  14141. # Check for a 64-bit object if we didn't find anything.
  14142. 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; }
  14143. }'`; fi
  14144. else
  14145.   echo "$as_me: failed program was:" >&5
  14146. sed 's/^/| /' conftest.$ac_ext >&5
  14147.  
  14148. fi
  14149. rm -f conftest.err conftest.$ac_objext \
  14150.       conftest$ac_exeext conftest.$ac_ext
  14151. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14152.  
  14153.        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  14154.     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"
  14155.        else
  14156.     if test "$host_cpu" = ia64; then
  14157.       hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  14158.       allow_undefined_flag_F77="-z nodefs"
  14159.       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"
  14160.     else
  14161.      # Determine the default libpath from the value encoded in an empty executable.
  14162.      cat >conftest.$ac_ext <<_ACEOF
  14163.       program main
  14164.  
  14165.       end
  14166. _ACEOF
  14167. rm -f conftest.$ac_objext conftest$ac_exeext
  14168. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14169.   (eval $ac_link) 2>conftest.er1
  14170.   ac_status=$?
  14171.   grep -v '^ *+' conftest.er1 >conftest.err
  14172.   rm -f conftest.er1
  14173.   cat conftest.err >&5
  14174.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14175.   (exit $ac_status); } &&
  14176.      { ac_try='test -z "$ac_f77_werror_flag"             || test ! -s conftest.err'
  14177.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14178.   (eval $ac_try) 2>&5
  14179.   ac_status=$?
  14180.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14181.   (exit $ac_status); }; } &&
  14182.      { ac_try='test -s conftest$ac_exeext'
  14183.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14184.   (eval $ac_try) 2>&5
  14185.   ac_status=$?
  14186.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14187.   (exit $ac_status); }; }; then
  14188.  
  14189. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
  14190. }'`
  14191. # Check for a 64-bit object if we didn't find anything.
  14192. 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; }
  14193. }'`; fi
  14194. else
  14195.   echo "$as_me: failed program was:" >&5
  14196. sed 's/^/| /' conftest.$ac_ext >&5
  14197.  
  14198. fi
  14199. rm -f conftest.err conftest.$ac_objext \
  14200.       conftest$ac_exeext conftest.$ac_ext
  14201. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14202.  
  14203.      hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  14204.       # Warning - without using the other run time loading flags,
  14205.       # -berok will link without error, but may produce a broken library.
  14206.       no_undefined_flag_F77=' ${wl}-bernotok'
  14207.       allow_undefined_flag_F77=' ${wl}-berok'
  14208.       # -bexpall does not export symbols beginning with underscore (_)
  14209.       always_export_symbols_F77=yes
  14210.       # Exported symbols can be pulled into shared objects from archives
  14211.       whole_archive_flag_spec_F77=' '
  14212.       archive_cmds_need_lc_F77=yes
  14213.       # This is similar to how AIX traditionally builds it's shared libraries.
  14214.       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'
  14215.     fi
  14216.       fi
  14217.       ;;
  14218.  
  14219.     amigaos*)
  14220.       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)'
  14221.       hardcode_libdir_flag_spec_F77='-L$libdir'
  14222.       hardcode_minus_L_F77=yes
  14223.       # see comment about different semantics on the GNU ld section
  14224.       ld_shlibs_F77=no
  14225.       ;;
  14226.  
  14227.     bsdi4*)
  14228.       export_dynamic_flag_spec_F77=-rdynamic
  14229.       ;;
  14230.  
  14231.     cygwin* | mingw* | pw32*)
  14232.       # When not using gcc, we currently assume that we are using
  14233.       # Microsoft Visual C++.
  14234.       # hardcode_libdir_flag_spec is actually meaningless, as there is
  14235.       # no search path for DLLs.
  14236.       hardcode_libdir_flag_spec_F77=' '
  14237.       allow_undefined_flag_F77=unsupported
  14238.       # Tell ltmain to make .lib files, not .a files.
  14239.       libext=lib
  14240.       # Tell ltmain to make .dll files, not .so files.
  14241.       shrext_cmds=".dll"
  14242.       # FIXME: Setting linknames here is a bad hack.
  14243.       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  14244.       # The linker will automatically build a .lib file if we build a DLL.
  14245.       old_archive_From_new_cmds_F77='true'
  14246.       # FIXME: Should let the user specify the lib program.
  14247.       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  14248.       fix_srcfile_path='`cygpath -w "$srcfile"`'
  14249.       enable_shared_with_static_runtimes_F77=yes
  14250.       ;;
  14251.  
  14252.     darwin* | rhapsody*)
  14253.     if test "$GXX" = yes ; then
  14254.       archive_cmds_need_lc_F77=no
  14255.       case "$host_os" in
  14256.       rhapsody* | darwin1.[012])
  14257.     allow_undefined_flag_F77='-undefined suppress'
  14258.     ;;
  14259.       *) # Darwin 1.3 on
  14260.       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  14261.           allow_undefined_flag_F77='-flat_namespace -undefined suppress'
  14262.       else
  14263.         case ${MACOSX_DEPLOYMENT_TARGET} in
  14264.           10.[012])
  14265.             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
  14266.             ;;
  14267.           10.*)
  14268.             allow_undefined_flag_F77='-undefined dynamic_lookup'
  14269.             ;;
  14270.         esac
  14271.       fi
  14272.     ;;
  14273.       esac
  14274.         lt_int_apple_cc_single_mod=no
  14275.         output_verbose_link_cmd='echo'
  14276.         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  14277.           lt_int_apple_cc_single_mod=yes
  14278.         fi
  14279.         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  14280.           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  14281.         else
  14282.         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'
  14283.       fi
  14284.       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  14285.       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  14286.         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  14287.           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}'
  14288.         else
  14289.           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}'
  14290.         fi
  14291.           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}'
  14292.       hardcode_direct_F77=no
  14293.       hardcode_automatic_F77=yes
  14294.       hardcode_shlibpath_var_F77=unsupported
  14295.       whole_archive_flag_spec_F77='-all_load $convenience'
  14296.       link_all_deplibs_F77=yes
  14297.     else
  14298.       ld_shlibs_F77=no
  14299.     fi
  14300.       ;;
  14301.  
  14302.     dgux*)
  14303.       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14304.       hardcode_libdir_flag_spec_F77='-L$libdir'
  14305.       hardcode_shlibpath_var_F77=no
  14306.       ;;
  14307.  
  14308.     freebsd1*)
  14309.       ld_shlibs_F77=no
  14310.       ;;
  14311.  
  14312.     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  14313.     # support.  Future versions do this automatically, but an explicit c++rt0.o
  14314.     # does not break anything, and helps significantly (at the cost of a little
  14315.     # extra space).
  14316.     freebsd2.2*)
  14317.       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  14318.       hardcode_libdir_flag_spec_F77='-R$libdir'
  14319.       hardcode_direct_F77=yes
  14320.       hardcode_shlibpath_var_F77=no
  14321.       ;;
  14322.  
  14323.     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  14324.     freebsd2*)
  14325.       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14326.       hardcode_direct_F77=yes
  14327.       hardcode_minus_L_F77=yes
  14328.       hardcode_shlibpath_var_F77=no
  14329.       ;;
  14330.  
  14331.     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  14332.     freebsd* | kfreebsd*-gnu)
  14333.       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  14334.       hardcode_libdir_flag_spec_F77='-R$libdir'
  14335.       hardcode_direct_F77=yes
  14336.       hardcode_shlibpath_var_F77=no
  14337.       ;;
  14338.  
  14339.     hpux9*)
  14340.       if test "$GCC" = yes; then
  14341.     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'
  14342.       else
  14343.     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'
  14344.       fi
  14345.       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  14346.       hardcode_libdir_separator_F77=:
  14347.       hardcode_direct_F77=yes
  14348.  
  14349.       # hardcode_minus_L: Not really in the search PATH,
  14350.       # but as the default location of the library.
  14351.       hardcode_minus_L_F77=yes
  14352.       export_dynamic_flag_spec_F77='${wl}-E'
  14353.       ;;
  14354.  
  14355.     hpux10* | hpux11*)
  14356.       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  14357.     case "$host_cpu" in
  14358.     hppa*64*|ia64*)
  14359.       archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14360.       ;;
  14361.     *)
  14362.       archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14363.       ;;
  14364.     esac
  14365.       else
  14366.     case "$host_cpu" in
  14367.     hppa*64*|ia64*)
  14368.       archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  14369.       ;;
  14370.     *)
  14371.       archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  14372.       ;;
  14373.     esac
  14374.       fi
  14375.       if test "$with_gnu_ld" = no; then
  14376.     case "$host_cpu" in
  14377.     hppa*64*)
  14378.       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  14379.       hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  14380.       hardcode_libdir_separator_F77=:
  14381.       hardcode_direct_F77=no
  14382.       hardcode_shlibpath_var_F77=no
  14383.       ;;
  14384.     ia64*)
  14385.       hardcode_libdir_flag_spec_F77='-L$libdir'
  14386.       hardcode_direct_F77=no
  14387.       hardcode_shlibpath_var_F77=no
  14388.  
  14389.       # hardcode_minus_L: Not really in the search PATH,
  14390.       # but as the default location of the library.
  14391.       hardcode_minus_L_F77=yes
  14392.       ;;
  14393.     *)
  14394.       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  14395.       hardcode_libdir_separator_F77=:
  14396.       hardcode_direct_F77=yes
  14397.       export_dynamic_flag_spec_F77='${wl}-E'
  14398.  
  14399.       # hardcode_minus_L: Not really in the search PATH,
  14400.       # but as the default location of the library.
  14401.       hardcode_minus_L_F77=yes
  14402.       ;;
  14403.     esac
  14404.       fi
  14405.       ;;
  14406.  
  14407.     irix5* | irix6* | nonstopux*)
  14408.       if test "$GCC" = yes; then
  14409.     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'
  14410.       else
  14411.     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'
  14412.     hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  14413.       fi
  14414.       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  14415.       hardcode_libdir_separator_F77=:
  14416.       link_all_deplibs_F77=yes
  14417.       ;;
  14418.  
  14419.     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  14420.       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14421.     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
  14422.       else
  14423.     archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
  14424.       fi
  14425.       hardcode_libdir_flag_spec_F77='-R$libdir'
  14426.       hardcode_direct_F77=yes
  14427.       hardcode_shlibpath_var_F77=no
  14428.       ;;
  14429.  
  14430.     newsos6)
  14431.       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14432.       hardcode_direct_F77=yes
  14433.       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  14434.       hardcode_libdir_separator_F77=:
  14435.       hardcode_shlibpath_var_F77=no
  14436.       ;;
  14437.  
  14438.     openbsd*)
  14439.       hardcode_direct_F77=yes
  14440.       hardcode_shlibpath_var_F77=no
  14441.       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14442.     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14443.     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  14444.     export_dynamic_flag_spec_F77='${wl}-E'
  14445.       else
  14446.        case $host_os in
  14447.      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  14448.        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14449.        hardcode_libdir_flag_spec_F77='-R$libdir'
  14450.        ;;
  14451.      *)
  14452.        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14453.        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  14454.        ;;
  14455.        esac
  14456.       fi
  14457.       ;;
  14458.  
  14459.     os2*)
  14460.       hardcode_libdir_flag_spec_F77='-L$libdir'
  14461.       hardcode_minus_L_F77=yes
  14462.       allow_undefined_flag_F77=unsupported
  14463.       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'
  14464.       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  14465.       ;;
  14466.  
  14467.     osf3*)
  14468.       if test "$GCC" = yes; then
  14469.     allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  14470.     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'
  14471.       else
  14472.     allow_undefined_flag_F77=' -expect_unresolved \*'
  14473.     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'
  14474.       fi
  14475.       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  14476.       hardcode_libdir_separator_F77=:
  14477.       ;;
  14478.  
  14479.     osf4* | osf5*)    # as osf3* with the addition of -msym flag
  14480.       if test "$GCC" = yes; then
  14481.     allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  14482.     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'
  14483.     hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  14484.       else
  14485.     allow_undefined_flag_F77=' -expect_unresolved \*'
  14486.     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'
  14487.     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~
  14488.     $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'
  14489.  
  14490.     # Both c and cxx compiler support -rpath directly
  14491.     hardcode_libdir_flag_spec_F77='-rpath $libdir'
  14492.       fi
  14493.       hardcode_libdir_separator_F77=:
  14494.       ;;
  14495.  
  14496.     sco3.2v5*)
  14497.       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14498.       hardcode_shlibpath_var_F77=no
  14499.       export_dynamic_flag_spec_F77='${wl}-Bexport'
  14500.       runpath_var=LD_RUN_PATH
  14501.       hardcode_runpath_var=yes
  14502.       ;;
  14503.  
  14504.     solaris*)
  14505.       no_undefined_flag_F77=' -z text'
  14506.       if test "$GCC" = yes; then
  14507.     archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14508.     archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14509.       $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  14510.       else
  14511.     archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14512.     archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14513.       $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  14514.       fi
  14515.       hardcode_libdir_flag_spec_F77='-R$libdir'
  14516.       hardcode_shlibpath_var_F77=no
  14517.       case $host_os in
  14518.       solaris2.[0-5] | solaris2.[0-5].*) ;;
  14519.       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  14520.     whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  14521.       esac
  14522.       link_all_deplibs_F77=yes
  14523.       ;;
  14524.  
  14525.     sunos4*)
  14526.       if test "x$host_vendor" = xsequent; then
  14527.     # Use $CC to link under sequent, because it throws in some extra .o
  14528.     # files that make .init and .fini sections work.
  14529.     archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  14530.       else
  14531.     archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  14532.       fi
  14533.       hardcode_libdir_flag_spec_F77='-L$libdir'
  14534.       hardcode_direct_F77=yes
  14535.       hardcode_minus_L_F77=yes
  14536.       hardcode_shlibpath_var_F77=no
  14537.       ;;
  14538.  
  14539.     sysv4)
  14540.       case $host_vendor in
  14541.     sni)
  14542.       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14543.       hardcode_direct_F77=yes # is this really true???
  14544.     ;;
  14545.     siemens)
  14546.       ## LD is ld it makes a PLAMLIB
  14547.       ## CC just makes a GrossModule.
  14548.       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  14549.       reload_cmds_F77='$CC -r -o $output$reload_objs'
  14550.       hardcode_direct_F77=no
  14551.         ;;
  14552.     motorola)
  14553.       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14554.       hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  14555.     ;;
  14556.       esac
  14557.       runpath_var='LD_RUN_PATH'
  14558.       hardcode_shlibpath_var_F77=no
  14559.       ;;
  14560.  
  14561.     sysv4.3*)
  14562.       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14563.       hardcode_shlibpath_var_F77=no
  14564.       export_dynamic_flag_spec_F77='-Bexport'
  14565.       ;;
  14566.  
  14567.     sysv4*MP*)
  14568.       if test -d /usr/nec; then
  14569.     archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14570.     hardcode_shlibpath_var_F77=no
  14571.     runpath_var=LD_RUN_PATH
  14572.     hardcode_runpath_var=yes
  14573.     ld_shlibs_F77=yes
  14574.       fi
  14575.       ;;
  14576.  
  14577.     sysv4.2uw2*)
  14578.       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  14579.       hardcode_direct_F77=yes
  14580.       hardcode_minus_L_F77=no
  14581.       hardcode_shlibpath_var_F77=no
  14582.       hardcode_runpath_var=yes
  14583.       runpath_var=LD_RUN_PATH
  14584.       ;;
  14585.  
  14586.    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
  14587.       no_undefined_flag_F77='${wl}-z ${wl}text'
  14588.       if test "$GCC" = yes; then
  14589.     archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14590.       else
  14591.     archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14592.       fi
  14593.       runpath_var='LD_RUN_PATH'
  14594.       hardcode_shlibpath_var_F77=no
  14595.       ;;
  14596.  
  14597.     sysv5*)
  14598.       no_undefined_flag_F77=' -z text'
  14599.       # $CC -shared without GNU ld will not create a library from C++
  14600.       # object files and a static libstdc++, better avoid it by now
  14601.       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14602.       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14603.           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  14604.       hardcode_libdir_flag_spec_F77=
  14605.       hardcode_shlibpath_var_F77=no
  14606.       runpath_var='LD_RUN_PATH'
  14607.       ;;
  14608.  
  14609.     uts4*)
  14610.       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14611.       hardcode_libdir_flag_spec_F77='-L$libdir'
  14612.       hardcode_shlibpath_var_F77=no
  14613.       ;;
  14614.  
  14615.     *)
  14616.       ld_shlibs_F77=no
  14617.       ;;
  14618.     esac
  14619.   fi
  14620.  
  14621. echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  14622. echo "${ECHO_T}$ld_shlibs_F77" >&6
  14623. test "$ld_shlibs_F77" = no && can_build_shared=no
  14624.  
  14625. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14626. if test "$GCC" = yes; then
  14627.   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14628. fi
  14629.  
  14630. #
  14631. # Do we need to explicitly link libc?
  14632. #
  14633. case "x$archive_cmds_need_lc_F77" in
  14634. x|xyes)
  14635.   # Assume -lc should be added
  14636.   archive_cmds_need_lc_F77=yes
  14637.  
  14638.   if test "$enable_shared" = yes && test "$GCC" = yes; then
  14639.     case $archive_cmds_F77 in
  14640.     *'~'*)
  14641.       # FIXME: we may have to deal with multi-command sequences.
  14642.       ;;
  14643.     '$CC '*)
  14644.       # Test whether the compiler implicitly links with -lc since on some
  14645.       # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14646.       # to ld, don't add -lc before -lgcc.
  14647.       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  14648. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  14649.       $rm conftest*
  14650.       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14651.  
  14652.       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14653.   (eval $ac_compile) 2>&5
  14654.   ac_status=$?
  14655.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14656.   (exit $ac_status); } 2>conftest.err; then
  14657.         soname=conftest
  14658.         lib=conftest
  14659.         libobjs=conftest.$ac_objext
  14660.         deplibs=
  14661.         wl=$lt_prog_compiler_wl_F77
  14662.         compiler_flags=-v
  14663.         linker_flags=-v
  14664.         verstring=
  14665.         output_objdir=.
  14666.         libname=conftest
  14667.         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  14668.         allow_undefined_flag_F77=
  14669.         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  14670.   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14671.   ac_status=$?
  14672.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14673.   (exit $ac_status); }
  14674.         then
  14675.       archive_cmds_need_lc_F77=no
  14676.         else
  14677.       archive_cmds_need_lc_F77=yes
  14678.         fi
  14679.         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  14680.       else
  14681.         cat conftest.err 1>&5
  14682.       fi
  14683.       $rm conftest*
  14684.       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  14685. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
  14686.       ;;
  14687.     esac
  14688.   fi
  14689.   ;;
  14690. esac
  14691.  
  14692. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  14693. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  14694. library_names_spec=
  14695. libname_spec='lib$name'
  14696. soname_spec=
  14697. shrext_cmds=".so"
  14698. postinstall_cmds=
  14699. postuninstall_cmds=
  14700. finish_cmds=
  14701. finish_eval=
  14702. shlibpath_var=
  14703. shlibpath_overrides_runpath=unknown
  14704. version_type=none
  14705. dynamic_linker="$host_os ld.so"
  14706. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14707. if test "$GCC" = yes; then
  14708.   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14709.   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  14710.     # if the path contains ";" then we assume it to be the separator
  14711.     # otherwise default to the standard path separator (i.e. ":") - it is
  14712.     # assumed that no part of a normal pathname contains ";" but that should
  14713.     # okay in the real world where ";" in dirpaths is itself problematic.
  14714.     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14715.   else
  14716.     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  14717.   fi
  14718. else
  14719.   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14720. fi
  14721. need_lib_prefix=unknown
  14722. hardcode_into_libs=no
  14723.  
  14724. # when you set need_version to no, make sure it does not cause -set_version
  14725. # flags to be left without arguments
  14726. need_version=unknown
  14727.  
  14728. case $host_os in
  14729. aix3*)
  14730.   version_type=linux
  14731.   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  14732.   shlibpath_var=LIBPATH
  14733.  
  14734.   # AIX 3 has no versioning support, so we append a major version to the name.
  14735.   soname_spec='${libname}${release}${shared_ext}$major'
  14736.   ;;
  14737.  
  14738. aix4* | aix5*)
  14739.   version_type=linux
  14740.   need_lib_prefix=no
  14741.   need_version=no
  14742.   hardcode_into_libs=yes
  14743.   if test "$host_cpu" = ia64; then
  14744.     # AIX 5 supports IA64
  14745.     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  14746.     shlibpath_var=LD_LIBRARY_PATH
  14747.   else
  14748.     # With GCC up to 2.95.x, collect2 would create an import file
  14749.     # for dependence libraries.  The import file would start with
  14750.     # the line `#! .'.  This would cause the generated library to
  14751.     # depend on `.', always an invalid library.  This was fixed in
  14752.     # development snapshots of GCC prior to 3.0.
  14753.     case $host_os in
  14754.       aix4 | aix4.[01] | aix4.[01].*)
  14755.       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14756.        echo ' yes '
  14757.        echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  14758.     :
  14759.       else
  14760.     can_build_shared=no
  14761.       fi
  14762.       ;;
  14763.     esac
  14764.     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  14765.     # soname into executable. Probably we can add versioning support to
  14766.     # collect2, so additional links can be useful in future.
  14767.     if test "$aix_use_runtimelinking" = yes; then
  14768.       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14769.       # instead of lib<name>.a to let people know that these are not
  14770.       # typical AIX shared libraries.
  14771.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14772.     else
  14773.       # We preserve .a as extension for shared libraries through AIX4.2
  14774.       # and later when we are not doing run time linking.
  14775.       library_names_spec='${libname}${release}.a $libname.a'
  14776.       soname_spec='${libname}${release}${shared_ext}$major'
  14777.     fi
  14778.     shlibpath_var=LIBPATH
  14779.   fi
  14780.   ;;
  14781.  
  14782. amigaos*)
  14783.   library_names_spec='$libname.ixlibrary $libname.a'
  14784.   # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14785.   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'
  14786.   ;;
  14787.  
  14788. beos*)
  14789.   library_names_spec='${libname}${shared_ext}'
  14790.   dynamic_linker="$host_os ld.so"
  14791.   shlibpath_var=LIBRARY_PATH
  14792.   ;;
  14793.  
  14794. bsdi4*)
  14795.   version_type=linux
  14796.   need_version=no
  14797.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14798.   soname_spec='${libname}${release}${shared_ext}$major'
  14799.   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14800.   shlibpath_var=LD_LIBRARY_PATH
  14801.   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14802.   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14803.   # the default ld.so.conf also contains /usr/contrib/lib and
  14804.   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14805.   # libtool to hard-code these into programs
  14806.   ;;
  14807.  
  14808. cygwin* | mingw* | pw32*)
  14809.   version_type=windows
  14810.   shrext_cmds=".dll"
  14811.   need_version=no
  14812.   need_lib_prefix=no
  14813.  
  14814.   case $GCC,$host_os in
  14815.   yes,cygwin* | yes,mingw* | yes,pw32*)
  14816.     library_names_spec='$libname.dll.a'
  14817.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14818.     postinstall_cmds='base_file=`basename \${file}`~
  14819.       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  14820.       dldir=$destdir/`dirname \$dlpath`~
  14821.       test -d \$dldir || mkdir -p \$dldir~
  14822.       $install_prog $dir/$dlname \$dldir/$dlname'
  14823.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14824.       dlpath=$dir/\$dldll~
  14825.        $rm \$dlpath'
  14826.     shlibpath_overrides_runpath=yes
  14827.  
  14828.     case $host_os in
  14829.     cygwin*)
  14830.       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14831.       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14832.       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  14833.       ;;
  14834.     mingw*)
  14835.       # MinGW DLLs use traditional 'lib' prefix
  14836.       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14837.       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14838.       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  14839.         # It is most probably a Windows format PATH printed by
  14840.         # mingw gcc, but we are running on Cygwin. Gcc prints its search
  14841.         # path with ; separators, and with drive letters. We can handle the
  14842.         # drive letters (cygwin fileutils understands them), so leave them,
  14843.         # especially as we might pass files found there to a mingw objdump,
  14844.         # which wouldn't understand a cygwinified path. Ahh.
  14845.         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14846.       else
  14847.         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  14848.       fi
  14849.       ;;
  14850.     pw32*)
  14851.       # pw32 DLLs use 'pw' prefix rather than 'lib'
  14852.       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  14853.       ;;
  14854.     esac
  14855.     ;;
  14856.  
  14857.   *)
  14858.     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  14859.     ;;
  14860.   esac
  14861.   dynamic_linker='Win32 ld.exe'
  14862.   # FIXME: first we should search . and the directory the executable is in
  14863.   shlibpath_var=PATH
  14864.   ;;
  14865.  
  14866. darwin* | rhapsody*)
  14867.   dynamic_linker="$host_os dyld"
  14868.   version_type=darwin
  14869.   need_lib_prefix=no
  14870.   need_version=no
  14871.   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  14872.   soname_spec='${libname}${release}${major}$shared_ext'
  14873.   shlibpath_overrides_runpath=yes
  14874.   shlibpath_var=DYLD_LIBRARY_PATH
  14875.   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  14876.   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  14877.   if test "$GCC" = yes; then
  14878.     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"`
  14879.   else
  14880.     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  14881.   fi
  14882.   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14883.   ;;
  14884.  
  14885. dgux*)
  14886.   version_type=linux
  14887.   need_lib_prefix=no
  14888.   need_version=no
  14889.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  14890.   soname_spec='${libname}${release}${shared_ext}$major'
  14891.   shlibpath_var=LD_LIBRARY_PATH
  14892.   ;;
  14893.  
  14894. freebsd1*)
  14895.   dynamic_linker=no
  14896.   ;;
  14897.  
  14898. kfreebsd*-gnu)
  14899.   version_type=linux
  14900.   need_lib_prefix=no
  14901.   need_version=no
  14902.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14903.   soname_spec='${libname}${release}${shared_ext}$major'
  14904.   shlibpath_var=LD_LIBRARY_PATH
  14905.   shlibpath_overrides_runpath=no
  14906.   hardcode_into_libs=yes
  14907.   dynamic_linker='GNU ld.so'
  14908.   ;;
  14909.  
  14910. freebsd*)
  14911.   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  14912.   version_type=freebsd-$objformat
  14913.   case $version_type in
  14914.     freebsd-elf*)
  14915.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14916.       need_version=no
  14917.       need_lib_prefix=no
  14918.       ;;
  14919.     freebsd-*)
  14920.       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  14921.       need_version=yes
  14922.       ;;
  14923.   esac
  14924.   shlibpath_var=LD_LIBRARY_PATH
  14925.   case $host_os in
  14926.   freebsd2*)
  14927.     shlibpath_overrides_runpath=yes
  14928.     ;;
  14929.   freebsd3.01* | freebsdelf3.01*)
  14930.     shlibpath_overrides_runpath=yes
  14931.     hardcode_into_libs=yes
  14932.     ;;
  14933.   *) # from 3.2 on
  14934.     shlibpath_overrides_runpath=no
  14935.     hardcode_into_libs=yes
  14936.     ;;
  14937.   esac
  14938.   ;;
  14939.  
  14940. gnu*)
  14941.   version_type=linux
  14942.   need_lib_prefix=no
  14943.   need_version=no
  14944.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14945.   soname_spec='${libname}${release}${shared_ext}$major'
  14946.   shlibpath_var=LD_LIBRARY_PATH
  14947.   hardcode_into_libs=yes
  14948.   ;;
  14949.  
  14950. hpux9* | hpux10* | hpux11*)
  14951.   # Give a soname corresponding to the major version so that dld.sl refuses to
  14952.   # link against other versions.
  14953.   version_type=sunos
  14954.   need_lib_prefix=no
  14955.   need_version=no
  14956.   case "$host_cpu" in
  14957.   ia64*)
  14958.     shrext_cmds='.so'
  14959.     hardcode_into_libs=yes
  14960.     dynamic_linker="$host_os dld.so"
  14961.     shlibpath_var=LD_LIBRARY_PATH
  14962.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14963.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14964.     soname_spec='${libname}${release}${shared_ext}$major'
  14965.     if test "X$HPUX_IA64_MODE" = X32; then
  14966.       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14967.     else
  14968.       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14969.     fi
  14970.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14971.     ;;
  14972.    hppa*64*)
  14973.      shrext_cmds='.sl'
  14974.      hardcode_into_libs=yes
  14975.      dynamic_linker="$host_os dld.sl"
  14976.      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14977.      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14978.      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14979.      soname_spec='${libname}${release}${shared_ext}$major'
  14980.      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14981.      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14982.      ;;
  14983.    *)
  14984.     shrext_cmds='.sl'
  14985.     dynamic_linker="$host_os dld.sl"
  14986.     shlibpath_var=SHLIB_PATH
  14987.     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14988.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14989.     soname_spec='${libname}${release}${shared_ext}$major'
  14990.     ;;
  14991.   esac
  14992.   # HP-UX runs *really* slowly unless shared libraries are mode 555.
  14993.   postinstall_cmds='chmod 555 $lib'
  14994.   ;;
  14995.  
  14996. irix5* | irix6* | nonstopux*)
  14997.   case $host_os in
  14998.     nonstopux*) version_type=nonstopux ;;
  14999.     *)
  15000.     if test "$lt_cv_prog_gnu_ld" = yes; then
  15001.         version_type=linux
  15002.     else
  15003.         version_type=irix
  15004.     fi ;;
  15005.   esac
  15006.   need_lib_prefix=no
  15007.   need_version=no
  15008.   soname_spec='${libname}${release}${shared_ext}$major'
  15009.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  15010.   case $host_os in
  15011.   irix5* | nonstopux*)
  15012.     libsuff= shlibsuff=
  15013.     ;;
  15014.   *)
  15015.     case $LD in # libtool.m4 will add one of these switches to LD
  15016.     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15017.       libsuff= shlibsuff= libmagic=32-bit;;
  15018.     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15019.       libsuff=32 shlibsuff=N32 libmagic=N32;;
  15020.     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15021.       libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15022.     *) libsuff= shlibsuff= libmagic=never-match;;
  15023.     esac
  15024.     ;;
  15025.   esac
  15026.   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15027.   shlibpath_overrides_runpath=no
  15028.   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  15029.   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15030.   hardcode_into_libs=yes
  15031.   ;;
  15032.  
  15033. # No shared lib support for Linux oldld, aout, or coff.
  15034. linux*oldld* | linux*aout* | linux*coff*)
  15035.   dynamic_linker=no
  15036.   ;;
  15037.  
  15038. # This must be Linux ELF.
  15039. linux*)
  15040.   version_type=linux
  15041.   need_lib_prefix=no
  15042.   need_version=no
  15043.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15044.   soname_spec='${libname}${release}${shared_ext}$major'
  15045.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15046.   shlibpath_var=LD_LIBRARY_PATH
  15047.   shlibpath_overrides_runpath=no
  15048.   # This implies no fast_install, which is unacceptable.
  15049.   # Some rework will be needed to allow for fast_install
  15050.   # before this can be enabled.
  15051.   hardcode_into_libs=yes
  15052.  
  15053.   # Append ld.so.conf contents to the search path
  15054.   if test -f /etc/ld.so.conf; then
  15055.     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
  15056.     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  15057.   fi
  15058.  
  15059.   # We used to test for /lib/ld.so.1 and disable shared libraries on
  15060.   # powerpc, because MkLinux only supported shared libraries with the
  15061.   # GNU dynamic linker.  Since this was broken with cross compilers,
  15062.   # most powerpc-linux boxes support dynamic linking these days and
  15063.   # people can always --disable-shared, the test was removed, and we
  15064.   # assume the GNU/Linux dynamic linker is in use.
  15065.   dynamic_linker='GNU/Linux ld.so'
  15066.   ;;
  15067.  
  15068. netbsdelf*-gnu)
  15069.   version_type=linux
  15070.   need_lib_prefix=no
  15071.   need_version=no
  15072.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15073.   soname_spec='${libname}${release}${shared_ext}$major'
  15074.   shlibpath_var=LD_LIBRARY_PATH
  15075.   shlibpath_overrides_runpath=no
  15076.   hardcode_into_libs=yes
  15077.   dynamic_linker='NetBSD ld.elf_so'
  15078.   ;;
  15079.  
  15080. knetbsd*-gnu)
  15081.   version_type=linux
  15082.   need_lib_prefix=no
  15083.   need_version=no
  15084.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15085.   soname_spec='${libname}${release}${shared_ext}$major'
  15086.   shlibpath_var=LD_LIBRARY_PATH
  15087.   shlibpath_overrides_runpath=no
  15088.   hardcode_into_libs=yes
  15089.   dynamic_linker='GNU ld.so'
  15090.   ;;
  15091.  
  15092. netbsd*)
  15093.   version_type=sunos
  15094.   need_lib_prefix=no
  15095.   need_version=no
  15096.   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15097.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15098.     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15099.     dynamic_linker='NetBSD (a.out) ld.so'
  15100.   else
  15101.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15102.     soname_spec='${libname}${release}${shared_ext}$major'
  15103.     dynamic_linker='NetBSD ld.elf_so'
  15104.   fi
  15105.   shlibpath_var=LD_LIBRARY_PATH
  15106.   shlibpath_overrides_runpath=yes
  15107.   hardcode_into_libs=yes
  15108.   ;;
  15109.  
  15110. newsos6)
  15111.   version_type=linux
  15112.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15113.   shlibpath_var=LD_LIBRARY_PATH
  15114.   shlibpath_overrides_runpath=yes
  15115.   ;;
  15116.  
  15117. nto-qnx*)
  15118.   version_type=linux
  15119.   need_lib_prefix=no
  15120.   need_version=no
  15121.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15122.   soname_spec='${libname}${release}${shared_ext}$major'
  15123.   shlibpath_var=LD_LIBRARY_PATH
  15124.   shlibpath_overrides_runpath=yes
  15125.   ;;
  15126.  
  15127. openbsd*)
  15128.   version_type=sunos
  15129.   need_lib_prefix=no
  15130.   need_version=yes
  15131.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15132.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15133.   shlibpath_var=LD_LIBRARY_PATH
  15134.   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15135.     case $host_os in
  15136.       openbsd2.[89] | openbsd2.[89].*)
  15137.     shlibpath_overrides_runpath=no
  15138.     ;;
  15139.       *)
  15140.     shlibpath_overrides_runpath=yes
  15141.     ;;
  15142.       esac
  15143.   else
  15144.     shlibpath_overrides_runpath=yes
  15145.   fi
  15146.   ;;
  15147.  
  15148. os2*)
  15149.   libname_spec='$name'
  15150.   shrext_cmds=".dll"
  15151.   need_lib_prefix=no
  15152.   library_names_spec='$libname${shared_ext} $libname.a'
  15153.   dynamic_linker='OS/2 ld.exe'
  15154.   shlibpath_var=LIBPATH
  15155.   ;;
  15156.  
  15157. osf3* | osf4* | osf5*)
  15158.   version_type=osf
  15159.   need_lib_prefix=no
  15160.   need_version=no
  15161.   soname_spec='${libname}${release}${shared_ext}$major'
  15162.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15163.   shlibpath_var=LD_LIBRARY_PATH
  15164.   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15165.   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  15166.   ;;
  15167.  
  15168. sco3.2v5*)
  15169.   version_type=osf
  15170.   soname_spec='${libname}${release}${shared_ext}$major'
  15171.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15172.   shlibpath_var=LD_LIBRARY_PATH
  15173.   ;;
  15174.  
  15175. solaris*)
  15176.   version_type=linux
  15177.   need_lib_prefix=no
  15178.   need_version=no
  15179.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15180.   soname_spec='${libname}${release}${shared_ext}$major'
  15181.   shlibpath_var=LD_LIBRARY_PATH
  15182.   shlibpath_overrides_runpath=yes
  15183.   hardcode_into_libs=yes
  15184.   # ldd complains unless libraries are executable
  15185.   postinstall_cmds='chmod +x $lib'
  15186.   ;;
  15187.  
  15188. sunos4*)
  15189.   version_type=sunos
  15190.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15191.   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15192.   shlibpath_var=LD_LIBRARY_PATH
  15193.   shlibpath_overrides_runpath=yes
  15194.   if test "$with_gnu_ld" = yes; then
  15195.     need_lib_prefix=no
  15196.   fi
  15197.   need_version=yes
  15198.   ;;
  15199.  
  15200. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  15201.   version_type=linux
  15202.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15203.   soname_spec='${libname}${release}${shared_ext}$major'
  15204.   shlibpath_var=LD_LIBRARY_PATH
  15205.   case $host_vendor in
  15206.     sni)
  15207.       shlibpath_overrides_runpath=no
  15208.       need_lib_prefix=no
  15209.       export_dynamic_flag_spec='${wl}-Blargedynsym'
  15210.       runpath_var=LD_RUN_PATH
  15211.       ;;
  15212.     siemens)
  15213.       need_lib_prefix=no
  15214.       ;;
  15215.     motorola)
  15216.       need_lib_prefix=no
  15217.       need_version=no
  15218.       shlibpath_overrides_runpath=no
  15219.       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15220.       ;;
  15221.   esac
  15222.   ;;
  15223.  
  15224. sysv4*MP*)
  15225.   if test -d /usr/nec ;then
  15226.     version_type=linux
  15227.     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  15228.     soname_spec='$libname${shared_ext}.$major'
  15229.     shlibpath_var=LD_LIBRARY_PATH
  15230.   fi
  15231.   ;;
  15232.  
  15233. uts4*)
  15234.   version_type=linux
  15235.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15236.   soname_spec='${libname}${release}${shared_ext}$major'
  15237.   shlibpath_var=LD_LIBRARY_PATH
  15238.   ;;
  15239.  
  15240. *)
  15241.   dynamic_linker=no
  15242.   ;;
  15243. esac
  15244. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  15245. echo "${ECHO_T}$dynamic_linker" >&6
  15246. test "$dynamic_linker" = no && can_build_shared=no
  15247.  
  15248. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  15249. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  15250. hardcode_action_F77=
  15251. if test -n "$hardcode_libdir_flag_spec_F77" || \
  15252.    test -n "$runpath_var F77" || \
  15253.    test "X$hardcode_automatic_F77"="Xyes" ; then
  15254.  
  15255.   # We can hardcode non-existant directories.
  15256.   if test "$hardcode_direct_F77" != no &&
  15257.      # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15258.      # have to relink, otherwise we might link with an installed library
  15259.      # when we should be linking with a yet-to-be-installed one
  15260.      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  15261.      test "$hardcode_minus_L_F77" != no; then
  15262.     # Linking always hardcodes the temporary library directory.
  15263.     hardcode_action_F77=relink
  15264.   else
  15265.     # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15266.     hardcode_action_F77=immediate
  15267.   fi
  15268. else
  15269.   # We cannot hardcode anything, or else we can only hardcode existing
  15270.   # directories.
  15271.   hardcode_action_F77=unsupported
  15272. fi
  15273. echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  15274. echo "${ECHO_T}$hardcode_action_F77" >&6
  15275.  
  15276. if test "$hardcode_action_F77" = relink; then
  15277.   # Fast installation is not supported
  15278.   enable_fast_install=no
  15279. elif test "$shlibpath_overrides_runpath" = yes ||
  15280.      test "$enable_shared" = no; then
  15281.   # Fast installation is not necessary
  15282.   enable_fast_install=needless
  15283. fi
  15284.  
  15285. striplib=
  15286. old_striplib=
  15287. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  15288. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  15289. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  15290.   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  15291.   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  15292.   echo "$as_me:$LINENO: result: yes" >&5
  15293. echo "${ECHO_T}yes" >&6
  15294. else
  15295. # FIXME - insert some real tests, host_os isn't really good enough
  15296.   case $host_os in
  15297.    darwin*)
  15298.        if test -n "$STRIP" ; then
  15299.          striplib="$STRIP -x"
  15300.          echo "$as_me:$LINENO: result: yes" >&5
  15301. echo "${ECHO_T}yes" >&6
  15302.        else
  15303.   echo "$as_me:$LINENO: result: no" >&5
  15304. echo "${ECHO_T}no" >&6
  15305. fi
  15306.        ;;
  15307.    *)
  15308.   echo "$as_me:$LINENO: result: no" >&5
  15309. echo "${ECHO_T}no" >&6
  15310.     ;;
  15311.   esac
  15312. fi
  15313.  
  15314.  
  15315.  
  15316. # The else clause should only fire when bootstrapping the
  15317. # libtool distribution, otherwise you forgot to ship ltmain.sh
  15318. # with your package, and you will get complaints that there are
  15319. # no rules to generate ltmain.sh.
  15320. if test -f "$ltmain"; then
  15321.   # See if we are running on zsh, and set the options which allow our commands through
  15322.   # without removal of \ escapes.
  15323.   if test -n "${ZSH_VERSION+set}" ; then
  15324.     setopt NO_GLOB_SUBST
  15325.   fi
  15326.   # Now quote all the things that may contain metacharacters while being
  15327.   # careful not to overquote the AC_SUBSTed values.  We take copies of the
  15328.   # variables and quote the copies for generation of the libtool script.
  15329.   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  15330.     SED SHELL STRIP \
  15331.     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  15332.     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  15333.     deplibs_check_method reload_flag reload_cmds need_locks \
  15334.     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  15335.     lt_cv_sys_global_symbol_to_c_name_address \
  15336.     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  15337.     old_postinstall_cmds old_postuninstall_cmds \
  15338.     compiler_F77 \
  15339.     CC_F77 \
  15340.     LD_F77 \
  15341.     lt_prog_compiler_wl_F77 \
  15342.     lt_prog_compiler_pic_F77 \
  15343.     lt_prog_compiler_static_F77 \
  15344.     lt_prog_compiler_no_builtin_flag_F77 \
  15345.     export_dynamic_flag_spec_F77 \
  15346.     thread_safe_flag_spec_F77 \
  15347.     whole_archive_flag_spec_F77 \
  15348.     enable_shared_with_static_runtimes_F77 \
  15349.     old_archive_cmds_F77 \
  15350.     old_archive_from_new_cmds_F77 \
  15351.     predep_objects_F77 \
  15352.     postdep_objects_F77 \
  15353.     predeps_F77 \
  15354.     postdeps_F77 \
  15355.     compiler_lib_search_path_F77 \
  15356.     archive_cmds_F77 \
  15357.     archive_expsym_cmds_F77 \
  15358.     postinstall_cmds_F77 \
  15359.     postuninstall_cmds_F77 \
  15360.     old_archive_from_expsyms_cmds_F77 \
  15361.     allow_undefined_flag_F77 \
  15362.     no_undefined_flag_F77 \
  15363.     export_symbols_cmds_F77 \
  15364.     hardcode_libdir_flag_spec_F77 \
  15365.     hardcode_libdir_flag_spec_ld_F77 \
  15366.     hardcode_libdir_separator_F77 \
  15367.     hardcode_automatic_F77 \
  15368.     module_cmds_F77 \
  15369.     module_expsym_cmds_F77 \
  15370.     lt_cv_prog_compiler_c_o_F77 \
  15371.     exclude_expsyms_F77 \
  15372.     include_expsyms_F77; do
  15373.  
  15374.     case $var in
  15375.     old_archive_cmds_F77 | \
  15376.     old_archive_from_new_cmds_F77 | \
  15377.     archive_cmds_F77 | \
  15378.     archive_expsym_cmds_F77 | \
  15379.     module_cmds_F77 | \
  15380.     module_expsym_cmds_F77 | \
  15381.     old_archive_from_expsyms_cmds_F77 | \
  15382.     export_symbols_cmds_F77 | \
  15383.     extract_expsyms_cmds | reload_cmds | finish_cmds | \
  15384.     postinstall_cmds | postuninstall_cmds | \
  15385.     old_postinstall_cmds | old_postuninstall_cmds | \
  15386.     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  15387.       # Double-quote double-evaled strings.
  15388.       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  15389.       ;;
  15390.     *)
  15391.       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  15392.       ;;
  15393.     esac
  15394.   done
  15395.  
  15396.   case $lt_echo in
  15397.   *'\$0 --fallback-echo"')
  15398.     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  15399.     ;;
  15400.   esac
  15401.  
  15402. cfgfile="$ofile"
  15403.  
  15404.   cat <<__EOF__ >> "$cfgfile"
  15405. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  15406.  
  15407. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15408.  
  15409. # Shell to use when invoking shell scripts.
  15410. SHELL=$lt_SHELL
  15411.  
  15412. # Whether or not to build shared libraries.
  15413. build_libtool_libs=$enable_shared
  15414.  
  15415. # Whether or not to build static libraries.
  15416. build_old_libs=$enable_static
  15417.  
  15418. # Whether or not to add -lc for building shared libraries.
  15419. build_libtool_need_lc=$archive_cmds_need_lc_F77
  15420.  
  15421. # Whether or not to disallow shared libs when runtime libs are static
  15422. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  15423.  
  15424. # Whether or not to optimize for fast installation.
  15425. fast_install=$enable_fast_install
  15426.  
  15427. # The host system.
  15428. host_alias=$host_alias
  15429. host=$host
  15430.  
  15431. # An echo program that does not interpret backslashes.
  15432. echo=$lt_echo
  15433.  
  15434. # The archiver.
  15435. AR=$lt_AR
  15436. AR_FLAGS=$lt_AR_FLAGS
  15437.  
  15438. # A C compiler.
  15439. LTCC=$lt_LTCC
  15440.  
  15441. # A language-specific compiler.
  15442. CC=$lt_compiler_F77
  15443.  
  15444. # Is the compiler the GNU C compiler?
  15445. with_gcc=$GCC_F77
  15446.  
  15447. # An ERE matcher.
  15448. EGREP=$lt_EGREP
  15449.  
  15450. # The linker used to build libraries.
  15451. LD=$lt_LD_F77
  15452.  
  15453. # Whether we need hard or soft links.
  15454. LN_S=$lt_LN_S
  15455.  
  15456. # A BSD-compatible nm program.
  15457. NM=$lt_NM
  15458.  
  15459. # A symbol stripping program
  15460. STRIP=$lt_STRIP
  15461.  
  15462. # Used to examine libraries when file_magic_cmd begins "file"
  15463. MAGIC_CMD=$MAGIC_CMD
  15464.  
  15465. # Used on cygwin: DLL creation program.
  15466. DLLTOOL="$DLLTOOL"
  15467.  
  15468. # Used on cygwin: object dumper.
  15469. OBJDUMP="$OBJDUMP"
  15470.  
  15471. # Used on cygwin: assembler.
  15472. AS="$AS"
  15473.  
  15474. # The name of the directory that contains temporary libtool files.
  15475. objdir=$objdir
  15476.  
  15477. # How to create reloadable object files.
  15478. reload_flag=$lt_reload_flag
  15479. reload_cmds=$lt_reload_cmds
  15480.  
  15481. # How to pass a linker flag through the compiler.
  15482. wl=$lt_lt_prog_compiler_wl_F77
  15483.  
  15484. # Object file suffix (normally "o").
  15485. objext="$ac_objext"
  15486.  
  15487. # Old archive suffix (normally "a").
  15488. libext="$libext"
  15489.  
  15490. # Shared library suffix (normally ".so").
  15491. shrext_cmds='$shrext_cmds'
  15492.  
  15493. # Executable file suffix (normally "").
  15494. exeext="$exeext"
  15495.  
  15496. # Additional compiler flags for building library objects.
  15497. pic_flag=$lt_lt_prog_compiler_pic_F77
  15498. pic_mode=$pic_mode
  15499.  
  15500. # What is the maximum length of a command?
  15501. max_cmd_len=$lt_cv_sys_max_cmd_len
  15502.  
  15503. # Does compiler simultaneously support -c and -o options?
  15504. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  15505.  
  15506. # Must we lock files when doing compilation ?
  15507. need_locks=$lt_need_locks
  15508.  
  15509. # Do we need the lib prefix for modules?
  15510. need_lib_prefix=$need_lib_prefix
  15511.  
  15512. # Do we need a version for libraries?
  15513. need_version=$need_version
  15514.  
  15515. # Whether dlopen is supported.
  15516. dlopen_support=$enable_dlopen
  15517.  
  15518. # Whether dlopen of programs is supported.
  15519. dlopen_self=$enable_dlopen_self
  15520.  
  15521. # Whether dlopen of statically linked programs is supported.
  15522. dlopen_self_static=$enable_dlopen_self_static
  15523.  
  15524. # Compiler flag to prevent dynamic linking.
  15525. link_static_flag=$lt_lt_prog_compiler_static_F77
  15526.  
  15527. # Compiler flag to turn off builtin functions.
  15528. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  15529.  
  15530. # Compiler flag to allow reflexive dlopens.
  15531. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  15532.  
  15533. # Compiler flag to generate shared objects directly from archives.
  15534. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  15535.  
  15536. # Compiler flag to generate thread-safe objects.
  15537. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  15538.  
  15539. # Library versioning type.
  15540. version_type=$version_type
  15541.  
  15542. # Format of library name prefix.
  15543. libname_spec=$lt_libname_spec
  15544.  
  15545. # List of archive names.  First name is the real one, the rest are links.
  15546. # The last name is the one that the linker finds with -lNAME.
  15547. library_names_spec=$lt_library_names_spec
  15548.  
  15549. # The coded name of the library, if different from the real name.
  15550. soname_spec=$lt_soname_spec
  15551.  
  15552. # Commands used to build and install an old-style archive.
  15553. RANLIB=$lt_RANLIB
  15554. old_archive_cmds=$lt_old_archive_cmds_F77
  15555. old_postinstall_cmds=$lt_old_postinstall_cmds
  15556. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15557.  
  15558. # Create an old-style archive from a shared archive.
  15559. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  15560.  
  15561. # Create a temporary old-style archive to link instead of a shared archive.
  15562. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  15563.  
  15564. # Commands used to build and install a shared archive.
  15565. archive_cmds=$lt_archive_cmds_F77
  15566. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  15567. postinstall_cmds=$lt_postinstall_cmds
  15568. postuninstall_cmds=$lt_postuninstall_cmds
  15569.  
  15570. # Commands used to build a loadable module (assumed same as above if empty)
  15571. module_cmds=$lt_module_cmds_F77
  15572. module_expsym_cmds=$lt_module_expsym_cmds_F77
  15573.  
  15574. # Commands to strip libraries.
  15575. old_striplib=$lt_old_striplib
  15576. striplib=$lt_striplib
  15577.  
  15578. # Dependencies to place before the objects being linked to create a
  15579. # shared library.
  15580. predep_objects=$lt_predep_objects_F77
  15581.  
  15582. # Dependencies to place after the objects being linked to create a
  15583. # shared library.
  15584. postdep_objects=$lt_postdep_objects_F77
  15585.  
  15586. # Dependencies to place before the objects being linked to create a
  15587. # shared library.
  15588. predeps=$lt_predeps_F77
  15589.  
  15590. # Dependencies to place after the objects being linked to create a
  15591. # shared library.
  15592. postdeps=$lt_postdeps_F77
  15593.  
  15594. # The library search path used internally by the compiler when linking
  15595. # a shared library.
  15596. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  15597.  
  15598. # Method to check whether dependent libraries are shared objects.
  15599. deplibs_check_method=$lt_deplibs_check_method
  15600.  
  15601. # Command to use when deplibs_check_method == file_magic.
  15602. file_magic_cmd=$lt_file_magic_cmd
  15603.  
  15604. # Flag that allows shared libraries with undefined symbols to be built.
  15605. allow_undefined_flag=$lt_allow_undefined_flag_F77
  15606.  
  15607. # Flag that forces no undefined symbols.
  15608. no_undefined_flag=$lt_no_undefined_flag_F77
  15609.  
  15610. # Commands used to finish a libtool library installation in a directory.
  15611. finish_cmds=$lt_finish_cmds
  15612.  
  15613. # Same as above, but a single script fragment to be evaled but not shown.
  15614. finish_eval=$lt_finish_eval
  15615.  
  15616. # Take the output of nm and produce a listing of raw symbols and C names.
  15617. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15618.  
  15619. # Transform the output of nm in a proper C declaration
  15620. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15621.  
  15622. # Transform the output of nm in a C name address pair
  15623. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15624.  
  15625. # This is the shared library runtime path variable.
  15626. runpath_var=$runpath_var
  15627.  
  15628. # This is the shared library path variable.
  15629. shlibpath_var=$shlibpath_var
  15630.  
  15631. # Is shlibpath searched before the hard-coded library search path?
  15632. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15633.  
  15634. # How to hardcode a shared library path into an executable.
  15635. hardcode_action=$hardcode_action_F77
  15636.  
  15637. # Whether we should hardcode library paths into libraries.
  15638. hardcode_into_libs=$hardcode_into_libs
  15639.  
  15640. # Flag to hardcode \$libdir into a binary during linking.
  15641. # This must work even if \$libdir does not exist.
  15642. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  15643.  
  15644. # If ld is used when linking, flag to hardcode \$libdir into
  15645. # a binary during linking. This must work even if \$libdir does
  15646. # not exist.
  15647. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  15648.  
  15649. # Whether we need a single -rpath flag with a separated argument.
  15650. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  15651.  
  15652. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  15653. # resulting binary.
  15654. hardcode_direct=$hardcode_direct_F77
  15655.  
  15656. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  15657. # resulting binary.
  15658. hardcode_minus_L=$hardcode_minus_L_F77
  15659.  
  15660. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  15661. # the resulting binary.
  15662. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  15663.  
  15664. # Set to yes if building a shared library automatically hardcodes DIR into the library
  15665. # and all subsequent libraries and executables linked against it.
  15666. hardcode_automatic=$hardcode_automatic_F77
  15667.  
  15668. # Variables whose values should be saved in libtool wrapper scripts and
  15669. # restored at relink time.
  15670. variables_saved_for_relink="$variables_saved_for_relink"
  15671.  
  15672. # Whether libtool must link a program against all its dependency libraries.
  15673. link_all_deplibs=$link_all_deplibs_F77
  15674.  
  15675. # Compile-time system search path for libraries
  15676. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15677.  
  15678. # Run-time system search path for libraries
  15679. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15680.  
  15681. # Fix the shell variable \$srcfile for the compiler.
  15682. fix_srcfile_path="$fix_srcfile_path_F77"
  15683.  
  15684. # Set to yes if exported symbols are required.
  15685. always_export_symbols=$always_export_symbols_F77
  15686.  
  15687. # The commands to list exported symbols.
  15688. export_symbols_cmds=$lt_export_symbols_cmds_F77
  15689.  
  15690. # The commands to extract the exported symbol list from a shared archive.
  15691. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15692.  
  15693. # Symbols that should not be listed in the preloaded symbols.
  15694. exclude_expsyms=$lt_exclude_expsyms_F77
  15695.  
  15696. # Symbols that must always be exported.
  15697. include_expsyms=$lt_include_expsyms_F77
  15698.  
  15699. # ### END LIBTOOL TAG CONFIG: $tagname
  15700.  
  15701. __EOF__
  15702.  
  15703.  
  15704. else
  15705.   # If there is no Makefile yet, we rely on a make rule to execute
  15706.   # `config.status --recheck' to rerun these tests and create the
  15707.   # libtool script then.
  15708.   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  15709.   if test -f "$ltmain_in"; then
  15710.     test -f Makefile && make "$ltmain"
  15711.   fi
  15712. fi
  15713.  
  15714.  
  15715. ac_ext=c
  15716. ac_cpp='$CPP $CPPFLAGS'
  15717. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15718. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15719. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15720.  
  15721. CC="$lt_save_CC"
  15722.  
  15723.     else
  15724.       tagname=""
  15725.     fi
  15726.     ;;
  15727.  
  15728.       GCJ)
  15729.     if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  15730.  
  15731.  
  15732.  
  15733. # Source file extension for Java test sources.
  15734. ac_ext=java
  15735.  
  15736. # Object file extension for compiled Java test sources.
  15737. objext=o
  15738. objext_GCJ=$objext
  15739.  
  15740. # Code to be used in simple compile tests
  15741. lt_simple_compile_test_code="class foo {}\n"
  15742.  
  15743. # Code to be used in simple link tests
  15744. lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
  15745.  
  15746. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  15747.  
  15748. # If no C compiler was specified, use CC.
  15749. LTCC=${LTCC-"$CC"}
  15750.  
  15751. # Allow CC to be a program name with arguments.
  15752. compiler=$CC
  15753.  
  15754.  
  15755. # Allow CC to be a program name with arguments.
  15756. lt_save_CC="$CC"
  15757. CC=${GCJ-"gcj"}
  15758. compiler=$CC
  15759. compiler_GCJ=$CC
  15760.  
  15761. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  15762. archive_cmds_need_lc_GCJ=no
  15763.  
  15764.  
  15765. lt_prog_compiler_no_builtin_flag_GCJ=
  15766.  
  15767. if test "$GCC" = yes; then
  15768.   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  15769.  
  15770.  
  15771. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  15772. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  15773. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  15774.   echo $ECHO_N "(cached) $ECHO_C" >&6
  15775. else
  15776.   lt_cv_prog_compiler_rtti_exceptions=no
  15777.   ac_outfile=conftest.$ac_objext
  15778.    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15779.    lt_compiler_flag="-fno-rtti -fno-exceptions"
  15780.    # Insert the option either (1) after the last *FLAGS variable, or
  15781.    # (2) before a word containing "conftest.", or (3) at the end.
  15782.    # Note that $ac_compile itself does not contain backslashes and begins
  15783.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  15784.    # The option is referenced via a variable to avoid confusing sed.
  15785.    lt_compile=`echo "$ac_compile" | $SED \
  15786.    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  15787.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15788.    -e 's:$: $lt_compiler_flag:'`
  15789.    (eval echo "\"\$as_me:15789: $lt_compile\"" >&5)
  15790.    (eval "$lt_compile" 2>conftest.err)
  15791.    ac_status=$?
  15792.    cat conftest.err >&5
  15793.    echo "$as_me:15793: \$? = $ac_status" >&5
  15794.    if (exit $ac_status) && test -s "$ac_outfile"; then
  15795.      # The compiler can only warn and ignore the option if not recognized
  15796.      # So say no if there are warnings
  15797.      if test ! -s conftest.err; then
  15798.        lt_cv_prog_compiler_rtti_exceptions=yes
  15799.      fi
  15800.    fi
  15801.    $rm conftest*
  15802.  
  15803. fi
  15804. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  15805. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  15806.  
  15807. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  15808.     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  15809. else
  15810.     :
  15811. fi
  15812.  
  15813. fi
  15814.  
  15815. lt_prog_compiler_wl_GCJ=
  15816. lt_prog_compiler_pic_GCJ=
  15817. lt_prog_compiler_static_GCJ=
  15818.  
  15819. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  15820. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  15821.  
  15822.   if test "$GCC" = yes; then
  15823.     lt_prog_compiler_wl_GCJ='-Wl,'
  15824.     lt_prog_compiler_static_GCJ='-static'
  15825.  
  15826.     case $host_os in
  15827.       aix*)
  15828.       # All AIX code is PIC.
  15829.       if test "$host_cpu" = ia64; then
  15830.     # AIX 5 now supports IA64 processor
  15831.     lt_prog_compiler_static_GCJ='-Bstatic'
  15832.       fi
  15833.       ;;
  15834.  
  15835.     amigaos*)
  15836.       # FIXME: we need at least 68020 code to build shared libraries, but
  15837.       # adding the `-m68020' flag to GCC prevents building anything better,
  15838.       # like `-m68040'.
  15839.       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  15840.       ;;
  15841.  
  15842.     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  15843.       # PIC is the default for these OSes.
  15844.       ;;
  15845.  
  15846.     mingw* | pw32* | os2*)
  15847.       # This hack is so that the source file can tell whether it is being
  15848.       # built for inclusion in a dll (and should export symbols for example).
  15849.       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  15850.       ;;
  15851.  
  15852.     darwin* | rhapsody*)
  15853.       # PIC is the default on this platform
  15854.       # Common symbols not allowed in MH_DYLIB files
  15855.       lt_prog_compiler_pic_GCJ='-fno-common'
  15856.       ;;
  15857.  
  15858.     msdosdjgpp*)
  15859.       # Just because we use GCC doesn't mean we suddenly get shared libraries
  15860.       # on systems that don't support them.
  15861.       lt_prog_compiler_can_build_shared_GCJ=no
  15862.       enable_shared=no
  15863.       ;;
  15864.  
  15865.     sysv4*MP*)
  15866.       if test -d /usr/nec; then
  15867.     lt_prog_compiler_pic_GCJ=-Kconform_pic
  15868.       fi
  15869.       ;;
  15870.  
  15871.     hpux*)
  15872.       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  15873.       # not for PA HP-UX.
  15874.       case "$host_cpu" in
  15875.       hppa*64*|ia64*)
  15876.     # +Z the default
  15877.     ;;
  15878.       *)
  15879.     lt_prog_compiler_pic_GCJ='-fPIC'
  15880.     ;;
  15881.       esac
  15882.       ;;
  15883.  
  15884.     *)
  15885.       lt_prog_compiler_pic_GCJ='-fPIC'
  15886.       ;;
  15887.     esac
  15888.   else
  15889.     # PORTME Check for flag to pass linker flags through the system compiler.
  15890.     case $host_os in
  15891.     aix*)
  15892.       lt_prog_compiler_wl_GCJ='-Wl,'
  15893.       if test "$host_cpu" = ia64; then
  15894.     # AIX 5 now supports IA64 processor
  15895.     lt_prog_compiler_static_GCJ='-Bstatic'
  15896.       else
  15897.     lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  15898.       fi
  15899.       ;;
  15900.  
  15901.     mingw* | pw32* | os2*)
  15902.       # This hack is so that the source file can tell whether it is being
  15903.       # built for inclusion in a dll (and should export symbols for example).
  15904.       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  15905.       ;;
  15906.  
  15907.     hpux9* | hpux10* | hpux11*)
  15908.       lt_prog_compiler_wl_GCJ='-Wl,'
  15909.       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  15910.       # not for PA HP-UX.
  15911.       case "$host_cpu" in
  15912.       hppa*64*|ia64*)
  15913.     # +Z the default
  15914.     ;;
  15915.       *)
  15916.     lt_prog_compiler_pic_GCJ='+Z'
  15917.     ;;
  15918.       esac
  15919.       # Is there a better lt_prog_compiler_static that works with the bundled CC?
  15920.       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  15921.       ;;
  15922.  
  15923.     irix5* | irix6* | nonstopux*)
  15924.       lt_prog_compiler_wl_GCJ='-Wl,'
  15925.       # PIC (with -KPIC) is the default.
  15926.       lt_prog_compiler_static_GCJ='-non_shared'
  15927.       ;;
  15928.  
  15929.     newsos6)
  15930.       lt_prog_compiler_pic_GCJ='-KPIC'
  15931.       lt_prog_compiler_static_GCJ='-Bstatic'
  15932.       ;;
  15933.  
  15934.     linux*)
  15935.       case $CC in
  15936.       icc* | ecc*)
  15937.     lt_prog_compiler_wl_GCJ='-Wl,'
  15938.     lt_prog_compiler_pic_GCJ='-KPIC'
  15939.     lt_prog_compiler_static_GCJ='-static'
  15940.         ;;
  15941.       ccc*)
  15942.         lt_prog_compiler_wl_GCJ='-Wl,'
  15943.         # All Alpha code is PIC.
  15944.         lt_prog_compiler_static_GCJ='-non_shared'
  15945.         ;;
  15946.       esac
  15947.       ;;
  15948.  
  15949.     osf3* | osf4* | osf5*)
  15950.       lt_prog_compiler_wl_GCJ='-Wl,'
  15951.       # All OSF/1 code is PIC.
  15952.       lt_prog_compiler_static_GCJ='-non_shared'
  15953.       ;;
  15954.  
  15955.     sco3.2v5*)
  15956.       lt_prog_compiler_pic_GCJ='-Kpic'
  15957.       lt_prog_compiler_static_GCJ='-dn'
  15958.       ;;
  15959.  
  15960.     solaris*)
  15961.       lt_prog_compiler_wl_GCJ='-Wl,'
  15962.       lt_prog_compiler_pic_GCJ='-KPIC'
  15963.       lt_prog_compiler_static_GCJ='-Bstatic'
  15964.       ;;
  15965.  
  15966.     sunos4*)
  15967.       lt_prog_compiler_wl_GCJ='-Qoption ld '
  15968.       lt_prog_compiler_pic_GCJ='-PIC'
  15969.       lt_prog_compiler_static_GCJ='-Bstatic'
  15970.       ;;
  15971.  
  15972.     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  15973.       lt_prog_compiler_wl_GCJ='-Wl,'
  15974.       lt_prog_compiler_pic_GCJ='-KPIC'
  15975.       lt_prog_compiler_static_GCJ='-Bstatic'
  15976.       ;;
  15977.  
  15978.     sysv4*MP*)
  15979.       if test -d /usr/nec ;then
  15980.     lt_prog_compiler_pic_GCJ='-Kconform_pic'
  15981.     lt_prog_compiler_static_GCJ='-Bstatic'
  15982.       fi
  15983.       ;;
  15984.  
  15985.     uts4*)
  15986.       lt_prog_compiler_pic_GCJ='-pic'
  15987.       lt_prog_compiler_static_GCJ='-Bstatic'
  15988.       ;;
  15989.  
  15990.     *)
  15991.       lt_prog_compiler_can_build_shared_GCJ=no
  15992.       ;;
  15993.     esac
  15994.   fi
  15995.  
  15996. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  15997. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
  15998.  
  15999. #
  16000. # Check to make sure the PIC flag actually works.
  16001. #
  16002. if test -n "$lt_prog_compiler_pic_GCJ"; then
  16003.  
  16004. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  16005. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
  16006. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  16007.   echo $ECHO_N "(cached) $ECHO_C" >&6
  16008. else
  16009.   lt_prog_compiler_pic_works_GCJ=no
  16010.   ac_outfile=conftest.$ac_objext
  16011.    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  16012.    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  16013.    # Insert the option either (1) after the last *FLAGS variable, or
  16014.    # (2) before a word containing "conftest.", or (3) at the end.
  16015.    # Note that $ac_compile itself does not contain backslashes and begins
  16016.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  16017.    # The option is referenced via a variable to avoid confusing sed.
  16018.    lt_compile=`echo "$ac_compile" | $SED \
  16019.    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  16020.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  16021.    -e 's:$: $lt_compiler_flag:'`
  16022.    (eval echo "\"\$as_me:16022: $lt_compile\"" >&5)
  16023.    (eval "$lt_compile" 2>conftest.err)
  16024.    ac_status=$?
  16025.    cat conftest.err >&5
  16026.    echo "$as_me:16026: \$? = $ac_status" >&5
  16027.    if (exit $ac_status) && test -s "$ac_outfile"; then
  16028.      # The compiler can only warn and ignore the option if not recognized
  16029.      # So say no if there are warnings
  16030.      if test ! -s conftest.err; then
  16031.        lt_prog_compiler_pic_works_GCJ=yes
  16032.      fi
  16033.    fi
  16034.    $rm conftest*
  16035.  
  16036. fi
  16037. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  16038. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
  16039.  
  16040. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  16041.     case $lt_prog_compiler_pic_GCJ in
  16042.      "" | " "*) ;;
  16043.      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  16044.      esac
  16045. else
  16046.     lt_prog_compiler_pic_GCJ=
  16047.      lt_prog_compiler_can_build_shared_GCJ=no
  16048. fi
  16049.  
  16050. fi
  16051. case "$host_os" in
  16052.   # For platforms which do not support PIC, -DPIC is meaningless:
  16053.   *djgpp*)
  16054.     lt_prog_compiler_pic_GCJ=
  16055.     ;;
  16056.   *)
  16057.     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  16058.     ;;
  16059. esac
  16060.  
  16061. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  16062. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  16063. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  16064.   echo $ECHO_N "(cached) $ECHO_C" >&6
  16065. else
  16066.   lt_cv_prog_compiler_c_o_GCJ=no
  16067.    $rm -r conftest 2>/dev/null
  16068.    mkdir conftest
  16069.    cd conftest
  16070.    mkdir out
  16071.    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  16072.  
  16073.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  16074.    # Insert the option either (1) after the last *FLAGS variable, or
  16075.    # (2) before a word containing "conftest.", or (3) at the end.
  16076.    # Note that $ac_compile itself does not contain backslashes and begins
  16077.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  16078.    lt_compile=`echo "$ac_compile" | $SED \
  16079.    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  16080.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  16081.    -e 's:$: $lt_compiler_flag:'`
  16082.    (eval echo "\"\$as_me:16082: $lt_compile\"" >&5)
  16083.    (eval "$lt_compile" 2>out/conftest.err)
  16084.    ac_status=$?
  16085.    cat out/conftest.err >&5
  16086.    echo "$as_me:16086: \$? = $ac_status" >&5
  16087.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  16088.    then
  16089.      # The compiler can only warn and ignore the option if not recognized
  16090.      # So say no if there are warnings
  16091.      if test ! -s out/conftest.err; then
  16092.        lt_cv_prog_compiler_c_o_GCJ=yes
  16093.      fi
  16094.    fi
  16095.    chmod u+w .
  16096.    $rm conftest*
  16097.    # SGI C++ compiler will create directory out/ii_files/ for
  16098.    # template instantiation
  16099.    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  16100.    $rm out/* && rmdir out
  16101.    cd ..
  16102.    rmdir conftest
  16103.    $rm conftest*
  16104.  
  16105. fi
  16106. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  16107. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
  16108.  
  16109.  
  16110. hard_links="nottested"
  16111. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  16112.   # do not overwrite the value of need_locks provided by the user
  16113.   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  16114. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  16115.   hard_links=yes
  16116.   $rm conftest*
  16117.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  16118.   touch conftest.a
  16119.   ln conftest.a conftest.b 2>&5 || hard_links=no
  16120.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  16121.   echo "$as_me:$LINENO: result: $hard_links" >&5
  16122. echo "${ECHO_T}$hard_links" >&6
  16123.   if test "$hard_links" = no; then
  16124.     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  16125. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  16126.     need_locks=warn
  16127.   fi
  16128. else
  16129.   need_locks=no
  16130. fi
  16131.  
  16132. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  16133. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  16134.  
  16135.   runpath_var=
  16136.   allow_undefined_flag_GCJ=
  16137.   enable_shared_with_static_runtimes_GCJ=no
  16138.   archive_cmds_GCJ=
  16139.   archive_expsym_cmds_GCJ=
  16140.   old_archive_From_new_cmds_GCJ=
  16141.   old_archive_from_expsyms_cmds_GCJ=
  16142.   export_dynamic_flag_spec_GCJ=
  16143.   whole_archive_flag_spec_GCJ=
  16144.   thread_safe_flag_spec_GCJ=
  16145.   hardcode_libdir_flag_spec_GCJ=
  16146.   hardcode_libdir_flag_spec_ld_GCJ=
  16147.   hardcode_libdir_separator_GCJ=
  16148.   hardcode_direct_GCJ=no
  16149.   hardcode_minus_L_GCJ=no
  16150.   hardcode_shlibpath_var_GCJ=unsupported
  16151.   link_all_deplibs_GCJ=unknown
  16152.   hardcode_automatic_GCJ=no
  16153.   module_cmds_GCJ=
  16154.   module_expsym_cmds_GCJ=
  16155.   always_export_symbols_GCJ=no
  16156.   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  16157.   # include_expsyms should be a list of space-separated symbols to be *always*
  16158.   # included in the symbol list
  16159.   include_expsyms_GCJ=
  16160.   # exclude_expsyms can be an extended regexp of symbols to exclude
  16161.   # it will be wrapped by ` (' and `)$', so one must not match beginning or
  16162.   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  16163.   # as well as any symbol that contains `d'.
  16164.   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  16165.   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  16166.   # platforms (ab)use it in PIC code, but their linkers get confused if
  16167.   # the symbol is explicitly referenced.  Since portable code cannot
  16168.   # rely on this symbol name, it's probably fine to never include it in
  16169.   # preloaded symbol tables.
  16170.   extract_expsyms_cmds=
  16171.  
  16172.   case $host_os in
  16173.   cygwin* | mingw* | pw32*)
  16174.     # FIXME: the MSVC++ port hasn't been tested in a loooong time
  16175.     # When not using gcc, we currently assume that we are using
  16176.     # Microsoft Visual C++.
  16177.     if test "$GCC" != yes; then
  16178.       with_gnu_ld=no
  16179.     fi
  16180.     ;;
  16181.   openbsd*)
  16182.     with_gnu_ld=no
  16183.     ;;
  16184.   esac
  16185.  
  16186.   ld_shlibs_GCJ=yes
  16187.   if test "$with_gnu_ld" = yes; then
  16188.     # If archive_cmds runs LD, not CC, wlarc should be empty
  16189.     wlarc='${wl}'
  16190.  
  16191.     # See if GNU ld supports shared libraries.
  16192.     case $host_os in
  16193.     aix3* | aix4* | aix5*)
  16194.       # On AIX/PPC, the GNU linker is very broken
  16195.       if test "$host_cpu" != ia64; then
  16196.     ld_shlibs_GCJ=no
  16197.     cat <<EOF 1>&2
  16198.  
  16199. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  16200. *** to be unable to reliably create shared libraries on AIX.
  16201. *** Therefore, libtool is disabling shared libraries support.  If you
  16202. *** really care for shared libraries, you may want to modify your PATH
  16203. *** so that a non-GNU linker is found, and then restart.
  16204.  
  16205. EOF
  16206.       fi
  16207.       ;;
  16208.  
  16209.     amigaos*)
  16210.       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)'
  16211.       hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16212.       hardcode_minus_L_GCJ=yes
  16213.  
  16214.       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  16215.       # that the semantics of dynamic libraries on AmigaOS, at least up
  16216.       # to version 4, is to share data among multiple programs linked
  16217.       # with the same dynamic library.  Since this doesn't match the
  16218.       # behavior of shared libraries on other platforms, we can't use
  16219.       # them.
  16220.       ld_shlibs_GCJ=no
  16221.       ;;
  16222.  
  16223.     beos*)
  16224.       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  16225.     allow_undefined_flag_GCJ=unsupported
  16226.     # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  16227.     # support --undefined.  This deserves some investigation.  FIXME
  16228.     archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16229.       else
  16230.     ld_shlibs_GCJ=no
  16231.       fi
  16232.       ;;
  16233.  
  16234.     cygwin* | mingw* | pw32*)
  16235.       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  16236.       # as there is no search path for DLLs.
  16237.       hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16238.       allow_undefined_flag_GCJ=unsupported
  16239.       always_export_symbols_GCJ=no
  16240.       enable_shared_with_static_runtimes_GCJ=yes
  16241.       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  16242.  
  16243.       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  16244.         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  16245.     # If the export-symbols file already is a .def file (1st line
  16246.     # is EXPORTS), use it as is; otherwise, prepend...
  16247.     archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  16248.       cp $export_symbols $output_objdir/$soname.def;
  16249.     else
  16250.       echo EXPORTS > $output_objdir/$soname.def;
  16251.       cat $export_symbols >> $output_objdir/$soname.def;
  16252.     fi~
  16253.     $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
  16254.       else
  16255.     ld_shlibs=no
  16256.       fi
  16257.       ;;
  16258.  
  16259.     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  16260.       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16261.     archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  16262.     wlarc=
  16263.       else
  16264.     archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16265.     archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  16266.       fi
  16267.       ;;
  16268.  
  16269.     solaris* | sysv5*)
  16270.       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  16271.     ld_shlibs_GCJ=no
  16272.     cat <<EOF 1>&2
  16273.  
  16274. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  16275. *** create shared libraries on Solaris systems.  Therefore, libtool
  16276. *** is disabling shared libraries support.  We urge you to upgrade GNU
  16277. *** binutils to release 2.9.1 or newer.  Another option is to modify
  16278. *** your PATH or compiler configuration so that the native linker is
  16279. *** used, and then restart.
  16280.  
  16281. EOF
  16282.       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  16283.     archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16284.     archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  16285.       else
  16286.     ld_shlibs_GCJ=no
  16287.       fi
  16288.       ;;
  16289.  
  16290.     sunos4*)
  16291.       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  16292.       wlarc=
  16293.       hardcode_direct_GCJ=yes
  16294.       hardcode_shlibpath_var_GCJ=no
  16295.       ;;
  16296.  
  16297.   linux*)
  16298.     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  16299.         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16300.     archive_cmds_GCJ="$tmp_archive_cmds"
  16301.       supports_anon_versioning=no
  16302.       case `$LD -v 2>/dev/null` in
  16303.         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  16304.         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  16305.         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  16306.         *\ 2.11.*) ;; # other 2.11 versions
  16307.         *) supports_anon_versioning=yes ;;
  16308.       esac
  16309.       if test $supports_anon_versioning = yes; then
  16310.         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  16311. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  16312. $echo "local: *; };" >> $output_objdir/$libname.ver~
  16313.         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  16314.       else
  16315.         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
  16316.       fi
  16317.       link_all_deplibs_GCJ=no
  16318.     else
  16319.       ld_shlibs_GCJ=no
  16320.     fi
  16321.     ;;
  16322.  
  16323.     *)
  16324.       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  16325.     archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16326.     archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  16327.       else
  16328.     ld_shlibs_GCJ=no
  16329.       fi
  16330.       ;;
  16331.     esac
  16332.  
  16333.     if test "$ld_shlibs_GCJ" = yes; then
  16334.       runpath_var=LD_RUN_PATH
  16335.       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  16336.       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  16337.       # ancient GNU ld didn't support --whole-archive et. al.
  16338.       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  16339.      whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  16340.       else
  16341.       whole_archive_flag_spec_GCJ=
  16342.       fi
  16343.     fi
  16344.   else
  16345.     # PORTME fill in a description of your system's linker (not GNU ld)
  16346.     case $host_os in
  16347.     aix3*)
  16348.       allow_undefined_flag_GCJ=unsupported
  16349.       always_export_symbols_GCJ=yes
  16350.       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'
  16351.       # Note: this linker hardcodes the directories in LIBPATH if there
  16352.       # are no directories specified by -L.
  16353.       hardcode_minus_L_GCJ=yes
  16354.       if test "$GCC" = yes && test -z "$link_static_flag"; then
  16355.     # Neither direct hardcoding nor static linking is supported with a
  16356.     # broken collect2.
  16357.     hardcode_direct_GCJ=unsupported
  16358.       fi
  16359.       ;;
  16360.  
  16361.     aix4* | aix5*)
  16362.       if test "$host_cpu" = ia64; then
  16363.     # On IA64, the linker does run time linking by default, so we don't
  16364.     # have to do anything special.
  16365.     aix_use_runtimelinking=no
  16366.     exp_sym_flag='-Bexport'
  16367.     no_entry_flag=""
  16368.       else
  16369.     # If we're using GNU nm, then we don't want the "-C" option.
  16370.     # -C means demangle to AIX nm, but means don't demangle with GNU nm
  16371.     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  16372.       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'
  16373.     else
  16374.       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'
  16375.     fi
  16376.     aix_use_runtimelinking=no
  16377.  
  16378.     # Test if we are trying to use run time linking or normal
  16379.     # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  16380.     # need to do runtime linking.
  16381.     case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  16382.       for ld_flag in $LDFLAGS; do
  16383.         if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  16384.           aix_use_runtimelinking=yes
  16385.           break
  16386.         fi
  16387.       done
  16388.     esac
  16389.  
  16390.     exp_sym_flag='-bexport'
  16391.     no_entry_flag='-bnoentry'
  16392.       fi
  16393.  
  16394.       # When large executables or shared objects are built, AIX ld can
  16395.       # have problems creating the table of contents.  If linking a library
  16396.       # or program results in "error TOC overflow" add -mminimal-toc to
  16397.       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  16398.       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  16399.  
  16400.       archive_cmds_GCJ=''
  16401.       hardcode_direct_GCJ=yes
  16402.       hardcode_libdir_separator_GCJ=':'
  16403.       link_all_deplibs_GCJ=yes
  16404.  
  16405.       if test "$GCC" = yes; then
  16406.     case $host_os in aix4.012|aix4.012.*)
  16407.     # We only want to do this on AIX 4.2 and lower, the check
  16408.     # below for broken collect2 doesn't work under 4.3+
  16409.       collect2name=`${CC} -print-prog-name=collect2`
  16410.       if test -f "$collect2name" && \
  16411.          strings "$collect2name" | grep resolve_lib_name >/dev/null
  16412.       then
  16413.         # We have reworked collect2
  16414.         hardcode_direct_GCJ=yes
  16415.       else
  16416.         # We have old collect2
  16417.         hardcode_direct_GCJ=unsupported
  16418.         # It fails to find uninstalled libraries when the uninstalled
  16419.         # path is not listed in the libpath.  Setting hardcode_minus_L
  16420.         # to unsupported forces relinking
  16421.         hardcode_minus_L_GCJ=yes
  16422.         hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16423.         hardcode_libdir_separator_GCJ=
  16424.       fi
  16425.     esac
  16426.     shared_flag='-shared'
  16427.       else
  16428.     # not using gcc
  16429.     if test "$host_cpu" = ia64; then
  16430.       # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  16431.       # chokes on -Wl,-G. The following line is correct:
  16432.       shared_flag='-G'
  16433.     else
  16434.       if test "$aix_use_runtimelinking" = yes; then
  16435.         shared_flag='${wl}-G'
  16436.       else
  16437.         shared_flag='${wl}-bM:SRE'
  16438.       fi
  16439.     fi
  16440.       fi
  16441.  
  16442.       # It seems that -bexpall does not export symbols beginning with
  16443.       # underscore (_), so it is better to generate a list of symbols to export.
  16444.       always_export_symbols_GCJ=yes
  16445.       if test "$aix_use_runtimelinking" = yes; then
  16446.     # Warning - without using the other runtime loading flags (-brtl),
  16447.     # -berok will link without error, but may produce a broken library.
  16448.     allow_undefined_flag_GCJ='-berok'
  16449.        # Determine the default libpath from the value encoded in an empty executable.
  16450.        cat >conftest.$ac_ext <<_ACEOF
  16451. /* confdefs.h.  */
  16452. _ACEOF
  16453. cat confdefs.h >>conftest.$ac_ext
  16454. cat >>conftest.$ac_ext <<_ACEOF
  16455. /* end confdefs.h.  */
  16456.  
  16457. int
  16458. main ()
  16459. {
  16460.  
  16461.   ;
  16462.   return 0;
  16463. }
  16464. _ACEOF
  16465. rm -f conftest.$ac_objext conftest$ac_exeext
  16466. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16467.   (eval $ac_link) 2>conftest.er1
  16468.   ac_status=$?
  16469.   grep -v '^ *+' conftest.er1 >conftest.err
  16470.   rm -f conftest.er1
  16471.   cat conftest.err >&5
  16472.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16473.   (exit $ac_status); } &&
  16474.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  16475.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16476.   (eval $ac_try) 2>&5
  16477.   ac_status=$?
  16478.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16479.   (exit $ac_status); }; } &&
  16480.      { ac_try='test -s conftest$ac_exeext'
  16481.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16482.   (eval $ac_try) 2>&5
  16483.   ac_status=$?
  16484.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16485.   (exit $ac_status); }; }; then
  16486.  
  16487. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
  16488. }'`
  16489. # Check for a 64-bit object if we didn't find anything.
  16490. 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; }
  16491. }'`; fi
  16492. else
  16493.   echo "$as_me: failed program was:" >&5
  16494. sed 's/^/| /' conftest.$ac_ext >&5
  16495.  
  16496. fi
  16497. rm -f conftest.err conftest.$ac_objext \
  16498.       conftest$ac_exeext conftest.$ac_ext
  16499. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  16500.  
  16501.        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  16502.     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"
  16503.        else
  16504.     if test "$host_cpu" = ia64; then
  16505.       hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  16506.       allow_undefined_flag_GCJ="-z nodefs"
  16507.       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"
  16508.     else
  16509.      # Determine the default libpath from the value encoded in an empty executable.
  16510.      cat >conftest.$ac_ext <<_ACEOF
  16511. /* confdefs.h.  */
  16512. _ACEOF
  16513. cat confdefs.h >>conftest.$ac_ext
  16514. cat >>conftest.$ac_ext <<_ACEOF
  16515. /* end confdefs.h.  */
  16516.  
  16517. int
  16518. main ()
  16519. {
  16520.  
  16521.   ;
  16522.   return 0;
  16523. }
  16524. _ACEOF
  16525. rm -f conftest.$ac_objext conftest$ac_exeext
  16526. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16527.   (eval $ac_link) 2>conftest.er1
  16528.   ac_status=$?
  16529.   grep -v '^ *+' conftest.er1 >conftest.err
  16530.   rm -f conftest.er1
  16531.   cat conftest.err >&5
  16532.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16533.   (exit $ac_status); } &&
  16534.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  16535.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16536.   (eval $ac_try) 2>&5
  16537.   ac_status=$?
  16538.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16539.   (exit $ac_status); }; } &&
  16540.      { ac_try='test -s conftest$ac_exeext'
  16541.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16542.   (eval $ac_try) 2>&5
  16543.   ac_status=$?
  16544.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16545.   (exit $ac_status); }; }; then
  16546.  
  16547. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
  16548. }'`
  16549. # Check for a 64-bit object if we didn't find anything.
  16550. 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; }
  16551. }'`; fi
  16552. else
  16553.   echo "$as_me: failed program was:" >&5
  16554. sed 's/^/| /' conftest.$ac_ext >&5
  16555.  
  16556. fi
  16557. rm -f conftest.err conftest.$ac_objext \
  16558.       conftest$ac_exeext conftest.$ac_ext
  16559. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  16560.  
  16561.      hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  16562.       # Warning - without using the other run time loading flags,
  16563.       # -berok will link without error, but may produce a broken library.
  16564.       no_undefined_flag_GCJ=' ${wl}-bernotok'
  16565.       allow_undefined_flag_GCJ=' ${wl}-berok'
  16566.       # -bexpall does not export symbols beginning with underscore (_)
  16567.       always_export_symbols_GCJ=yes
  16568.       # Exported symbols can be pulled into shared objects from archives
  16569.       whole_archive_flag_spec_GCJ=' '
  16570.       archive_cmds_need_lc_GCJ=yes
  16571.       # This is similar to how AIX traditionally builds it's shared libraries.
  16572.       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'
  16573.     fi
  16574.       fi
  16575.       ;;
  16576.  
  16577.     amigaos*)
  16578.       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)'
  16579.       hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16580.       hardcode_minus_L_GCJ=yes
  16581.       # see comment about different semantics on the GNU ld section
  16582.       ld_shlibs_GCJ=no
  16583.       ;;
  16584.  
  16585.     bsdi4*)
  16586.       export_dynamic_flag_spec_GCJ=-rdynamic
  16587.       ;;
  16588.  
  16589.     cygwin* | mingw* | pw32*)
  16590.       # When not using gcc, we currently assume that we are using
  16591.       # Microsoft Visual C++.
  16592.       # hardcode_libdir_flag_spec is actually meaningless, as there is
  16593.       # no search path for DLLs.
  16594.       hardcode_libdir_flag_spec_GCJ=' '
  16595.       allow_undefined_flag_GCJ=unsupported
  16596.       # Tell ltmain to make .lib files, not .a files.
  16597.       libext=lib
  16598.       # Tell ltmain to make .dll files, not .so files.
  16599.       shrext_cmds=".dll"
  16600.       # FIXME: Setting linknames here is a bad hack.
  16601.       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  16602.       # The linker will automatically build a .lib file if we build a DLL.
  16603.       old_archive_From_new_cmds_GCJ='true'
  16604.       # FIXME: Should let the user specify the lib program.
  16605.       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  16606.       fix_srcfile_path='`cygpath -w "$srcfile"`'
  16607.       enable_shared_with_static_runtimes_GCJ=yes
  16608.       ;;
  16609.  
  16610.     darwin* | rhapsody*)
  16611.     if test "$GXX" = yes ; then
  16612.       archive_cmds_need_lc_GCJ=no
  16613.       case "$host_os" in
  16614.       rhapsody* | darwin1.[012])
  16615.     allow_undefined_flag_GCJ='-undefined suppress'
  16616.     ;;
  16617.       *) # Darwin 1.3 on
  16618.       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  16619.           allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
  16620.       else
  16621.         case ${MACOSX_DEPLOYMENT_TARGET} in
  16622.           10.[012])
  16623.             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
  16624.             ;;
  16625.           10.*)
  16626.             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
  16627.             ;;
  16628.         esac
  16629.       fi
  16630.     ;;
  16631.       esac
  16632.         lt_int_apple_cc_single_mod=no
  16633.         output_verbose_link_cmd='echo'
  16634.         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  16635.           lt_int_apple_cc_single_mod=yes
  16636.         fi
  16637.         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  16638.           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  16639.         else
  16640.         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'
  16641.       fi
  16642.       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  16643.       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  16644.         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  16645.           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}'
  16646.         else
  16647.           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}'
  16648.         fi
  16649.           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}'
  16650.       hardcode_direct_GCJ=no
  16651.       hardcode_automatic_GCJ=yes
  16652.       hardcode_shlibpath_var_GCJ=unsupported
  16653.       whole_archive_flag_spec_GCJ='-all_load $convenience'
  16654.       link_all_deplibs_GCJ=yes
  16655.     else
  16656.       ld_shlibs_GCJ=no
  16657.     fi
  16658.       ;;
  16659.  
  16660.     dgux*)
  16661.       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16662.       hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16663.       hardcode_shlibpath_var_GCJ=no
  16664.       ;;
  16665.  
  16666.     freebsd1*)
  16667.       ld_shlibs_GCJ=no
  16668.       ;;
  16669.  
  16670.     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  16671.     # support.  Future versions do this automatically, but an explicit c++rt0.o
  16672.     # does not break anything, and helps significantly (at the cost of a little
  16673.     # extra space).
  16674.     freebsd2.2*)
  16675.       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  16676.       hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16677.       hardcode_direct_GCJ=yes
  16678.       hardcode_shlibpath_var_GCJ=no
  16679.       ;;
  16680.  
  16681.     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  16682.     freebsd2*)
  16683.       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  16684.       hardcode_direct_GCJ=yes
  16685.       hardcode_minus_L_GCJ=yes
  16686.       hardcode_shlibpath_var_GCJ=no
  16687.       ;;
  16688.  
  16689.     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  16690.     freebsd* | kfreebsd*-gnu)
  16691.       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  16692.       hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16693.       hardcode_direct_GCJ=yes
  16694.       hardcode_shlibpath_var_GCJ=no
  16695.       ;;
  16696.  
  16697.     hpux9*)
  16698.       if test "$GCC" = yes; then
  16699.     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'
  16700.       else
  16701.     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'
  16702.       fi
  16703.       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  16704.       hardcode_libdir_separator_GCJ=:
  16705.       hardcode_direct_GCJ=yes
  16706.  
  16707.       # hardcode_minus_L: Not really in the search PATH,
  16708.       # but as the default location of the library.
  16709.       hardcode_minus_L_GCJ=yes
  16710.       export_dynamic_flag_spec_GCJ='${wl}-E'
  16711.       ;;
  16712.  
  16713.     hpux10* | hpux11*)
  16714.       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  16715.     case "$host_cpu" in
  16716.     hppa*64*|ia64*)
  16717.       archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16718.       ;;
  16719.     *)
  16720.       archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  16721.       ;;
  16722.     esac
  16723.       else
  16724.     case "$host_cpu" in
  16725.     hppa*64*|ia64*)
  16726.       archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  16727.       ;;
  16728.     *)
  16729.       archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  16730.       ;;
  16731.     esac
  16732.       fi
  16733.       if test "$with_gnu_ld" = no; then
  16734.     case "$host_cpu" in
  16735.     hppa*64*)
  16736.       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  16737.       hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  16738.       hardcode_libdir_separator_GCJ=:
  16739.       hardcode_direct_GCJ=no
  16740.       hardcode_shlibpath_var_GCJ=no
  16741.       ;;
  16742.     ia64*)
  16743.       hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16744.       hardcode_direct_GCJ=no
  16745.       hardcode_shlibpath_var_GCJ=no
  16746.  
  16747.       # hardcode_minus_L: Not really in the search PATH,
  16748.       # but as the default location of the library.
  16749.       hardcode_minus_L_GCJ=yes
  16750.       ;;
  16751.     *)
  16752.       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  16753.       hardcode_libdir_separator_GCJ=:
  16754.       hardcode_direct_GCJ=yes
  16755.       export_dynamic_flag_spec_GCJ='${wl}-E'
  16756.  
  16757.       # hardcode_minus_L: Not really in the search PATH,
  16758.       # but as the default location of the library.
  16759.       hardcode_minus_L_GCJ=yes
  16760.       ;;
  16761.     esac
  16762.       fi
  16763.       ;;
  16764.  
  16765.     irix5* | irix6* | nonstopux*)
  16766.       if test "$GCC" = yes; then
  16767.     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'
  16768.       else
  16769.     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'
  16770.     hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  16771.       fi
  16772.       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16773.       hardcode_libdir_separator_GCJ=:
  16774.       link_all_deplibs_GCJ=yes
  16775.       ;;
  16776.  
  16777.     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  16778.       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16779.     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
  16780.       else
  16781.     archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
  16782.       fi
  16783.       hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16784.       hardcode_direct_GCJ=yes
  16785.       hardcode_shlibpath_var_GCJ=no
  16786.       ;;
  16787.  
  16788.     newsos6)
  16789.       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16790.       hardcode_direct_GCJ=yes
  16791.       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16792.       hardcode_libdir_separator_GCJ=:
  16793.       hardcode_shlibpath_var_GCJ=no
  16794.       ;;
  16795.  
  16796.     openbsd*)
  16797.       hardcode_direct_GCJ=yes
  16798.       hardcode_shlibpath_var_GCJ=no
  16799.       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16800.     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  16801.     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  16802.     export_dynamic_flag_spec_GCJ='${wl}-E'
  16803.       else
  16804.        case $host_os in
  16805.      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  16806.        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  16807.        hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16808.        ;;
  16809.      *)
  16810.        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  16811.        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  16812.        ;;
  16813.        esac
  16814.       fi
  16815.       ;;
  16816.  
  16817.     os2*)
  16818.       hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16819.       hardcode_minus_L_GCJ=yes
  16820.       allow_undefined_flag_GCJ=unsupported
  16821.       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'
  16822.       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  16823.       ;;
  16824.  
  16825.     osf3*)
  16826.       if test "$GCC" = yes; then
  16827.     allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  16828.     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'
  16829.       else
  16830.     allow_undefined_flag_GCJ=' -expect_unresolved \*'
  16831.     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'
  16832.       fi
  16833.       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16834.       hardcode_libdir_separator_GCJ=:
  16835.       ;;
  16836.  
  16837.     osf4* | osf5*)    # as osf3* with the addition of -msym flag
  16838.       if test "$GCC" = yes; then
  16839.     allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  16840.     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'
  16841.     hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16842.       else
  16843.     allow_undefined_flag_GCJ=' -expect_unresolved \*'
  16844.     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'
  16845.     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~
  16846.     $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'
  16847.  
  16848.     # Both c and cxx compiler support -rpath directly
  16849.     hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  16850.       fi
  16851.       hardcode_libdir_separator_GCJ=:
  16852.       ;;
  16853.  
  16854.     sco3.2v5*)
  16855.       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16856.       hardcode_shlibpath_var_GCJ=no
  16857.       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  16858.       runpath_var=LD_RUN_PATH
  16859.       hardcode_runpath_var=yes
  16860.       ;;
  16861.  
  16862.     solaris*)
  16863.       no_undefined_flag_GCJ=' -z text'
  16864.       if test "$GCC" = yes; then
  16865.     archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16866.     archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16867.       $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  16868.       else
  16869.     archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16870.     archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16871.       $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  16872.       fi
  16873.       hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16874.       hardcode_shlibpath_var_GCJ=no
  16875.       case $host_os in
  16876.       solaris2.[0-5] | solaris2.[0-5].*) ;;
  16877.       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  16878.     whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  16879.       esac
  16880.       link_all_deplibs_GCJ=yes
  16881.       ;;
  16882.  
  16883.     sunos4*)
  16884.       if test "x$host_vendor" = xsequent; then
  16885.     # Use $CC to link under sequent, because it throws in some extra .o
  16886.     # files that make .init and .fini sections work.
  16887.     archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  16888.       else
  16889.     archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  16890.       fi
  16891.       hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16892.       hardcode_direct_GCJ=yes
  16893.       hardcode_minus_L_GCJ=yes
  16894.       hardcode_shlibpath_var_GCJ=no
  16895.       ;;
  16896.  
  16897.     sysv4)
  16898.       case $host_vendor in
  16899.     sni)
  16900.       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16901.       hardcode_direct_GCJ=yes # is this really true???
  16902.     ;;
  16903.     siemens)
  16904.       ## LD is ld it makes a PLAMLIB
  16905.       ## CC just makes a GrossModule.
  16906.       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  16907.       reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  16908.       hardcode_direct_GCJ=no
  16909.         ;;
  16910.     motorola)
  16911.       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16912.       hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  16913.     ;;
  16914.       esac
  16915.       runpath_var='LD_RUN_PATH'
  16916.       hardcode_shlibpath_var_GCJ=no
  16917.       ;;
  16918.  
  16919.     sysv4.3*)
  16920.       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16921.       hardcode_shlibpath_var_GCJ=no
  16922.       export_dynamic_flag_spec_GCJ='-Bexport'
  16923.       ;;
  16924.  
  16925.     sysv4*MP*)
  16926.       if test -d /usr/nec; then
  16927.     archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16928.     hardcode_shlibpath_var_GCJ=no
  16929.     runpath_var=LD_RUN_PATH
  16930.     hardcode_runpath_var=yes
  16931.     ld_shlibs_GCJ=yes
  16932.       fi
  16933.       ;;
  16934.  
  16935.     sysv4.2uw2*)
  16936.       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  16937.       hardcode_direct_GCJ=yes
  16938.       hardcode_minus_L_GCJ=no
  16939.       hardcode_shlibpath_var_GCJ=no
  16940.       hardcode_runpath_var=yes
  16941.       runpath_var=LD_RUN_PATH
  16942.       ;;
  16943.  
  16944.    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
  16945.       no_undefined_flag_GCJ='${wl}-z ${wl}text'
  16946.       if test "$GCC" = yes; then
  16947.     archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16948.       else
  16949.     archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16950.       fi
  16951.       runpath_var='LD_RUN_PATH'
  16952.       hardcode_shlibpath_var_GCJ=no
  16953.       ;;
  16954.  
  16955.     sysv5*)
  16956.       no_undefined_flag_GCJ=' -z text'
  16957.       # $CC -shared without GNU ld will not create a library from C++
  16958.       # object files and a static libstdc++, better avoid it by now
  16959.       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16960.       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16961.           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  16962.       hardcode_libdir_flag_spec_GCJ=
  16963.       hardcode_shlibpath_var_GCJ=no
  16964.       runpath_var='LD_RUN_PATH'
  16965.       ;;
  16966.  
  16967.     uts4*)
  16968.       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16969.       hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16970.       hardcode_shlibpath_var_GCJ=no
  16971.       ;;
  16972.  
  16973.     *)
  16974.       ld_shlibs_GCJ=no
  16975.       ;;
  16976.     esac
  16977.   fi
  16978.  
  16979. echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  16980. echo "${ECHO_T}$ld_shlibs_GCJ" >&6
  16981. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  16982.  
  16983. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16984. if test "$GCC" = yes; then
  16985.   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16986. fi
  16987.  
  16988. #
  16989. # Do we need to explicitly link libc?
  16990. #
  16991. case "x$archive_cmds_need_lc_GCJ" in
  16992. x|xyes)
  16993.   # Assume -lc should be added
  16994.   archive_cmds_need_lc_GCJ=yes
  16995.  
  16996.   if test "$enable_shared" = yes && test "$GCC" = yes; then
  16997.     case $archive_cmds_GCJ in
  16998.     *'~'*)
  16999.       # FIXME: we may have to deal with multi-command sequences.
  17000.       ;;
  17001.     '$CC '*)
  17002.       # Test whether the compiler implicitly links with -lc since on some
  17003.       # systems, -lgcc has to come before -lc. If gcc already passes -lc
  17004.       # to ld, don't add -lc before -lgcc.
  17005.       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  17006. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  17007.       $rm conftest*
  17008.       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  17009.  
  17010.       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17011.   (eval $ac_compile) 2>&5
  17012.   ac_status=$?
  17013.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17014.   (exit $ac_status); } 2>conftest.err; then
  17015.         soname=conftest
  17016.         lib=conftest
  17017.         libobjs=conftest.$ac_objext
  17018.         deplibs=
  17019.         wl=$lt_prog_compiler_wl_GCJ
  17020.         compiler_flags=-v
  17021.         linker_flags=-v
  17022.         verstring=
  17023.         output_objdir=.
  17024.         libname=conftest
  17025.         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  17026.         allow_undefined_flag_GCJ=
  17027.         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  17028.   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  17029.   ac_status=$?
  17030.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17031.   (exit $ac_status); }
  17032.         then
  17033.       archive_cmds_need_lc_GCJ=no
  17034.         else
  17035.       archive_cmds_need_lc_GCJ=yes
  17036.         fi
  17037.         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  17038.       else
  17039.         cat conftest.err 1>&5
  17040.       fi
  17041.       $rm conftest*
  17042.       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  17043. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
  17044.       ;;
  17045.     esac
  17046.   fi
  17047.   ;;
  17048. esac
  17049.  
  17050. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  17051. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  17052. library_names_spec=
  17053. libname_spec='lib$name'
  17054. soname_spec=
  17055. shrext_cmds=".so"
  17056. postinstall_cmds=
  17057. postuninstall_cmds=
  17058. finish_cmds=
  17059. finish_eval=
  17060. shlibpath_var=
  17061. shlibpath_overrides_runpath=unknown
  17062. version_type=none
  17063. dynamic_linker="$host_os ld.so"
  17064. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  17065. if test "$GCC" = yes; then
  17066.   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  17067.   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  17068.     # if the path contains ";" then we assume it to be the separator
  17069.     # otherwise default to the standard path separator (i.e. ":") - it is
  17070.     # assumed that no part of a normal pathname contains ";" but that should
  17071.     # okay in the real world where ";" in dirpaths is itself problematic.
  17072.     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  17073.   else
  17074.     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  17075.   fi
  17076. else
  17077.   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  17078. fi
  17079. need_lib_prefix=unknown
  17080. hardcode_into_libs=no
  17081.  
  17082. # when you set need_version to no, make sure it does not cause -set_version
  17083. # flags to be left without arguments
  17084. need_version=unknown
  17085.  
  17086. case $host_os in
  17087. aix3*)
  17088.   version_type=linux
  17089.   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  17090.   shlibpath_var=LIBPATH
  17091.  
  17092.   # AIX 3 has no versioning support, so we append a major version to the name.
  17093.   soname_spec='${libname}${release}${shared_ext}$major'
  17094.   ;;
  17095.  
  17096. aix4* | aix5*)
  17097.   version_type=linux
  17098.   need_lib_prefix=no
  17099.   need_version=no
  17100.   hardcode_into_libs=yes
  17101.   if test "$host_cpu" = ia64; then
  17102.     # AIX 5 supports IA64
  17103.     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  17104.     shlibpath_var=LD_LIBRARY_PATH
  17105.   else
  17106.     # With GCC up to 2.95.x, collect2 would create an import file
  17107.     # for dependence libraries.  The import file would start with
  17108.     # the line `#! .'.  This would cause the generated library to
  17109.     # depend on `.', always an invalid library.  This was fixed in
  17110.     # development snapshots of GCC prior to 3.0.
  17111.     case $host_os in
  17112.       aix4 | aix4.[01] | aix4.[01].*)
  17113.       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  17114.        echo ' yes '
  17115.        echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  17116.     :
  17117.       else
  17118.     can_build_shared=no
  17119.       fi
  17120.       ;;
  17121.     esac
  17122.     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  17123.     # soname into executable. Probably we can add versioning support to
  17124.     # collect2, so additional links can be useful in future.
  17125.     if test "$aix_use_runtimelinking" = yes; then
  17126.       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  17127.       # instead of lib<name>.a to let people know that these are not
  17128.       # typical AIX shared libraries.
  17129.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17130.     else
  17131.       # We preserve .a as extension for shared libraries through AIX4.2
  17132.       # and later when we are not doing run time linking.
  17133.       library_names_spec='${libname}${release}.a $libname.a'
  17134.       soname_spec='${libname}${release}${shared_ext}$major'
  17135.     fi
  17136.     shlibpath_var=LIBPATH
  17137.   fi
  17138.   ;;
  17139.  
  17140. amigaos*)
  17141.   library_names_spec='$libname.ixlibrary $libname.a'
  17142.   # Create ${libname}_ixlibrary.a entries in /sys/libs.
  17143.   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'
  17144.   ;;
  17145.  
  17146. beos*)
  17147.   library_names_spec='${libname}${shared_ext}'
  17148.   dynamic_linker="$host_os ld.so"
  17149.   shlibpath_var=LIBRARY_PATH
  17150.   ;;
  17151.  
  17152. bsdi4*)
  17153.   version_type=linux
  17154.   need_version=no
  17155.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17156.   soname_spec='${libname}${release}${shared_ext}$major'
  17157.   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  17158.   shlibpath_var=LD_LIBRARY_PATH
  17159.   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  17160.   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  17161.   # the default ld.so.conf also contains /usr/contrib/lib and
  17162.   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  17163.   # libtool to hard-code these into programs
  17164.   ;;
  17165.  
  17166. cygwin* | mingw* | pw32*)
  17167.   version_type=windows
  17168.   shrext_cmds=".dll"
  17169.   need_version=no
  17170.   need_lib_prefix=no
  17171.  
  17172.   case $GCC,$host_os in
  17173.   yes,cygwin* | yes,mingw* | yes,pw32*)
  17174.     library_names_spec='$libname.dll.a'
  17175.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  17176.     postinstall_cmds='base_file=`basename \${file}`~
  17177.       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  17178.       dldir=$destdir/`dirname \$dlpath`~
  17179.       test -d \$dldir || mkdir -p \$dldir~
  17180.       $install_prog $dir/$dlname \$dldir/$dlname'
  17181.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  17182.       dlpath=$dir/\$dldll~
  17183.        $rm \$dlpath'
  17184.     shlibpath_overrides_runpath=yes
  17185.  
  17186.     case $host_os in
  17187.     cygwin*)
  17188.       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  17189.       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  17190.       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  17191.       ;;
  17192.     mingw*)
  17193.       # MinGW DLLs use traditional 'lib' prefix
  17194.       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  17195.       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  17196.       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  17197.         # It is most probably a Windows format PATH printed by
  17198.         # mingw gcc, but we are running on Cygwin. Gcc prints its search
  17199.         # path with ; separators, and with drive letters. We can handle the
  17200.         # drive letters (cygwin fileutils understands them), so leave them,
  17201.         # especially as we might pass files found there to a mingw objdump,
  17202.         # which wouldn't understand a cygwinified path. Ahh.
  17203.         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  17204.       else
  17205.         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  17206.       fi
  17207.       ;;
  17208.     pw32*)
  17209.       # pw32 DLLs use 'pw' prefix rather than 'lib'
  17210.       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  17211.       ;;
  17212.     esac
  17213.     ;;
  17214.  
  17215.   *)
  17216.     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  17217.     ;;
  17218.   esac
  17219.   dynamic_linker='Win32 ld.exe'
  17220.   # FIXME: first we should search . and the directory the executable is in
  17221.   shlibpath_var=PATH
  17222.   ;;
  17223.  
  17224. darwin* | rhapsody*)
  17225.   dynamic_linker="$host_os dyld"
  17226.   version_type=darwin
  17227.   need_lib_prefix=no
  17228.   need_version=no
  17229.   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  17230.   soname_spec='${libname}${release}${major}$shared_ext'
  17231.   shlibpath_overrides_runpath=yes
  17232.   shlibpath_var=DYLD_LIBRARY_PATH
  17233.   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  17234.   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  17235.   if test "$GCC" = yes; then
  17236.     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"`
  17237.   else
  17238.     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  17239.   fi
  17240.   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  17241.   ;;
  17242.  
  17243. dgux*)
  17244.   version_type=linux
  17245.   need_lib_prefix=no
  17246.   need_version=no
  17247.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  17248.   soname_spec='${libname}${release}${shared_ext}$major'
  17249.   shlibpath_var=LD_LIBRARY_PATH
  17250.   ;;
  17251.  
  17252. freebsd1*)
  17253.   dynamic_linker=no
  17254.   ;;
  17255.  
  17256. kfreebsd*-gnu)
  17257.   version_type=linux
  17258.   need_lib_prefix=no
  17259.   need_version=no
  17260.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  17261.   soname_spec='${libname}${release}${shared_ext}$major'
  17262.   shlibpath_var=LD_LIBRARY_PATH
  17263.   shlibpath_overrides_runpath=no
  17264.   hardcode_into_libs=yes
  17265.   dynamic_linker='GNU ld.so'
  17266.   ;;
  17267.  
  17268. freebsd*)
  17269.   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  17270.   version_type=freebsd-$objformat
  17271.   case $version_type in
  17272.     freebsd-elf*)
  17273.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  17274.       need_version=no
  17275.       need_lib_prefix=no
  17276.       ;;
  17277.     freebsd-*)
  17278.       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  17279.       need_version=yes
  17280.       ;;
  17281.   esac
  17282.   shlibpath_var=LD_LIBRARY_PATH
  17283.   case $host_os in
  17284.   freebsd2*)
  17285.     shlibpath_overrides_runpath=yes
  17286.     ;;
  17287.   freebsd3.01* | freebsdelf3.01*)
  17288.     shlibpath_overrides_runpath=yes
  17289.     hardcode_into_libs=yes
  17290.     ;;
  17291.   *) # from 3.2 on
  17292.     shlibpath_overrides_runpath=no
  17293.     hardcode_into_libs=yes
  17294.     ;;
  17295.   esac
  17296.   ;;
  17297.  
  17298. gnu*)
  17299.   version_type=linux
  17300.   need_lib_prefix=no
  17301.   need_version=no
  17302.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  17303.   soname_spec='${libname}${release}${shared_ext}$major'
  17304.   shlibpath_var=LD_LIBRARY_PATH
  17305.   hardcode_into_libs=yes
  17306.   ;;
  17307.  
  17308. hpux9* | hpux10* | hpux11*)
  17309.   # Give a soname corresponding to the major version so that dld.sl refuses to
  17310.   # link against other versions.
  17311.   version_type=sunos
  17312.   need_lib_prefix=no
  17313.   need_version=no
  17314.   case "$host_cpu" in
  17315.   ia64*)
  17316.     shrext_cmds='.so'
  17317.     hardcode_into_libs=yes
  17318.     dynamic_linker="$host_os dld.so"
  17319.     shlibpath_var=LD_LIBRARY_PATH
  17320.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  17321.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17322.     soname_spec='${libname}${release}${shared_ext}$major'
  17323.     if test "X$HPUX_IA64_MODE" = X32; then
  17324.       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  17325.     else
  17326.       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  17327.     fi
  17328.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  17329.     ;;
  17330.    hppa*64*)
  17331.      shrext_cmds='.sl'
  17332.      hardcode_into_libs=yes
  17333.      dynamic_linker="$host_os dld.sl"
  17334.      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  17335.      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  17336.      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17337.      soname_spec='${libname}${release}${shared_ext}$major'
  17338.      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  17339.      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  17340.      ;;
  17341.    *)
  17342.     shrext_cmds='.sl'
  17343.     dynamic_linker="$host_os dld.sl"
  17344.     shlibpath_var=SHLIB_PATH
  17345.     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  17346.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17347.     soname_spec='${libname}${release}${shared_ext}$major'
  17348.     ;;
  17349.   esac
  17350.   # HP-UX runs *really* slowly unless shared libraries are mode 555.
  17351.   postinstall_cmds='chmod 555 $lib'
  17352.   ;;
  17353.  
  17354. irix5* | irix6* | nonstopux*)
  17355.   case $host_os in
  17356.     nonstopux*) version_type=nonstopux ;;
  17357.     *)
  17358.     if test "$lt_cv_prog_gnu_ld" = yes; then
  17359.         version_type=linux
  17360.     else
  17361.         version_type=irix
  17362.     fi ;;
  17363.   esac
  17364.   need_lib_prefix=no
  17365.   need_version=no
  17366.   soname_spec='${libname}${release}${shared_ext}$major'
  17367.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  17368.   case $host_os in
  17369.   irix5* | nonstopux*)
  17370.     libsuff= shlibsuff=
  17371.     ;;
  17372.   *)
  17373.     case $LD in # libtool.m4 will add one of these switches to LD
  17374.     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  17375.       libsuff= shlibsuff= libmagic=32-bit;;
  17376.     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  17377.       libsuff=32 shlibsuff=N32 libmagic=N32;;
  17378.     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  17379.       libsuff=64 shlibsuff=64 libmagic=64-bit;;
  17380.     *) libsuff= shlibsuff= libmagic=never-match;;
  17381.     esac
  17382.     ;;
  17383.   esac
  17384.   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  17385.   shlibpath_overrides_runpath=no
  17386.   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  17387.   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  17388.   hardcode_into_libs=yes
  17389.   ;;
  17390.  
  17391. # No shared lib support for Linux oldld, aout, or coff.
  17392. linux*oldld* | linux*aout* | linux*coff*)
  17393.   dynamic_linker=no
  17394.   ;;
  17395.  
  17396. # This must be Linux ELF.
  17397. linux*)
  17398.   version_type=linux
  17399.   need_lib_prefix=no
  17400.   need_version=no
  17401.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17402.   soname_spec='${libname}${release}${shared_ext}$major'
  17403.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  17404.   shlibpath_var=LD_LIBRARY_PATH
  17405.   shlibpath_overrides_runpath=no
  17406.   # This implies no fast_install, which is unacceptable.
  17407.   # Some rework will be needed to allow for fast_install
  17408.   # before this can be enabled.
  17409.   hardcode_into_libs=yes
  17410.  
  17411.   # Append ld.so.conf contents to the search path
  17412.   if test -f /etc/ld.so.conf; then
  17413.     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
  17414.     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  17415.   fi
  17416.  
  17417.   # We used to test for /lib/ld.so.1 and disable shared libraries on
  17418.   # powerpc, because MkLinux only supported shared libraries with the
  17419.   # GNU dynamic linker.  Since this was broken with cross compilers,
  17420.   # most powerpc-linux boxes support dynamic linking these days and
  17421.   # people can always --disable-shared, the test was removed, and we
  17422.   # assume the GNU/Linux dynamic linker is in use.
  17423.   dynamic_linker='GNU/Linux ld.so'
  17424.   ;;
  17425.  
  17426. netbsdelf*-gnu)
  17427.   version_type=linux
  17428.   need_lib_prefix=no
  17429.   need_version=no
  17430.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  17431.   soname_spec='${libname}${release}${shared_ext}$major'
  17432.   shlibpath_var=LD_LIBRARY_PATH
  17433.   shlibpath_overrides_runpath=no
  17434.   hardcode_into_libs=yes
  17435.   dynamic_linker='NetBSD ld.elf_so'
  17436.   ;;
  17437.  
  17438. knetbsd*-gnu)
  17439.   version_type=linux
  17440.   need_lib_prefix=no
  17441.   need_version=no
  17442.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  17443.   soname_spec='${libname}${release}${shared_ext}$major'
  17444.   shlibpath_var=LD_LIBRARY_PATH
  17445.   shlibpath_overrides_runpath=no
  17446.   hardcode_into_libs=yes
  17447.   dynamic_linker='GNU ld.so'
  17448.   ;;
  17449.  
  17450. netbsd*)
  17451.   version_type=sunos
  17452.   need_lib_prefix=no
  17453.   need_version=no
  17454.   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  17455.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  17456.     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  17457.     dynamic_linker='NetBSD (a.out) ld.so'
  17458.   else
  17459.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  17460.     soname_spec='${libname}${release}${shared_ext}$major'
  17461.     dynamic_linker='NetBSD ld.elf_so'
  17462.   fi
  17463.   shlibpath_var=LD_LIBRARY_PATH
  17464.   shlibpath_overrides_runpath=yes
  17465.   hardcode_into_libs=yes
  17466.   ;;
  17467.  
  17468. newsos6)
  17469.   version_type=linux
  17470.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17471.   shlibpath_var=LD_LIBRARY_PATH
  17472.   shlibpath_overrides_runpath=yes
  17473.   ;;
  17474.  
  17475. nto-qnx*)
  17476.   version_type=linux
  17477.   need_lib_prefix=no
  17478.   need_version=no
  17479.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17480.   soname_spec='${libname}${release}${shared_ext}$major'
  17481.   shlibpath_var=LD_LIBRARY_PATH
  17482.   shlibpath_overrides_runpath=yes
  17483.   ;;
  17484.  
  17485. openbsd*)
  17486.   version_type=sunos
  17487.   need_lib_prefix=no
  17488.   need_version=yes
  17489.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  17490.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  17491.   shlibpath_var=LD_LIBRARY_PATH
  17492.   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  17493.     case $host_os in
  17494.       openbsd2.[89] | openbsd2.[89].*)
  17495.     shlibpath_overrides_runpath=no
  17496.     ;;
  17497.       *)
  17498.     shlibpath_overrides_runpath=yes
  17499.     ;;
  17500.       esac
  17501.   else
  17502.     shlibpath_overrides_runpath=yes
  17503.   fi
  17504.   ;;
  17505.  
  17506. os2*)
  17507.   libname_spec='$name'
  17508.   shrext_cmds=".dll"
  17509.   need_lib_prefix=no
  17510.   library_names_spec='$libname${shared_ext} $libname.a'
  17511.   dynamic_linker='OS/2 ld.exe'
  17512.   shlibpath_var=LIBPATH
  17513.   ;;
  17514.  
  17515. osf3* | osf4* | osf5*)
  17516.   version_type=osf
  17517.   need_lib_prefix=no
  17518.   need_version=no
  17519.   soname_spec='${libname}${release}${shared_ext}$major'
  17520.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17521.   shlibpath_var=LD_LIBRARY_PATH
  17522.   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  17523.   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  17524.   ;;
  17525.  
  17526. sco3.2v5*)
  17527.   version_type=osf
  17528.   soname_spec='${libname}${release}${shared_ext}$major'
  17529.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17530.   shlibpath_var=LD_LIBRARY_PATH
  17531.   ;;
  17532.  
  17533. solaris*)
  17534.   version_type=linux
  17535.   need_lib_prefix=no
  17536.   need_version=no
  17537.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17538.   soname_spec='${libname}${release}${shared_ext}$major'
  17539.   shlibpath_var=LD_LIBRARY_PATH
  17540.   shlibpath_overrides_runpath=yes
  17541.   hardcode_into_libs=yes
  17542.   # ldd complains unless libraries are executable
  17543.   postinstall_cmds='chmod +x $lib'
  17544.   ;;
  17545.  
  17546. sunos4*)
  17547.   version_type=sunos
  17548.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  17549.   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  17550.   shlibpath_var=LD_LIBRARY_PATH
  17551.   shlibpath_overrides_runpath=yes
  17552.   if test "$with_gnu_ld" = yes; then
  17553.     need_lib_prefix=no
  17554.   fi
  17555.   need_version=yes
  17556.   ;;
  17557.  
  17558. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  17559.   version_type=linux
  17560.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17561.   soname_spec='${libname}${release}${shared_ext}$major'
  17562.   shlibpath_var=LD_LIBRARY_PATH
  17563.   case $host_vendor in
  17564.     sni)
  17565.       shlibpath_overrides_runpath=no
  17566.       need_lib_prefix=no
  17567.       export_dynamic_flag_spec='${wl}-Blargedynsym'
  17568.       runpath_var=LD_RUN_PATH
  17569.       ;;
  17570.     siemens)
  17571.       need_lib_prefix=no
  17572.       ;;
  17573.     motorola)
  17574.       need_lib_prefix=no
  17575.       need_version=no
  17576.       shlibpath_overrides_runpath=no
  17577.       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  17578.       ;;
  17579.   esac
  17580.   ;;
  17581.  
  17582. sysv4*MP*)
  17583.   if test -d /usr/nec ;then
  17584.     version_type=linux
  17585.     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  17586.     soname_spec='$libname${shared_ext}.$major'
  17587.     shlibpath_var=LD_LIBRARY_PATH
  17588.   fi
  17589.   ;;
  17590.  
  17591. uts4*)
  17592.   version_type=linux
  17593.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17594.   soname_spec='${libname}${release}${shared_ext}$major'
  17595.   shlibpath_var=LD_LIBRARY_PATH
  17596.   ;;
  17597.  
  17598. *)
  17599.   dynamic_linker=no
  17600.   ;;
  17601. esac
  17602. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  17603. echo "${ECHO_T}$dynamic_linker" >&6
  17604. test "$dynamic_linker" = no && can_build_shared=no
  17605.  
  17606. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  17607. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  17608. hardcode_action_GCJ=
  17609. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  17610.    test -n "$runpath_var GCJ" || \
  17611.    test "X$hardcode_automatic_GCJ"="Xyes" ; then
  17612.  
  17613.   # We can hardcode non-existant directories.
  17614.   if test "$hardcode_direct_GCJ" != no &&
  17615.      # If the only mechanism to avoid hardcoding is shlibpath_var, we
  17616.      # have to relink, otherwise we might link with an installed library
  17617.      # when we should be linking with a yet-to-be-installed one
  17618.      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  17619.      test "$hardcode_minus_L_GCJ" != no; then
  17620.     # Linking always hardcodes the temporary library directory.
  17621.     hardcode_action_GCJ=relink
  17622.   else
  17623.     # We can link without hardcoding, and we can hardcode nonexisting dirs.
  17624.     hardcode_action_GCJ=immediate
  17625.   fi
  17626. else
  17627.   # We cannot hardcode anything, or else we can only hardcode existing
  17628.   # directories.
  17629.   hardcode_action_GCJ=unsupported
  17630. fi
  17631. echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  17632. echo "${ECHO_T}$hardcode_action_GCJ" >&6
  17633.  
  17634. if test "$hardcode_action_GCJ" = relink; then
  17635.   # Fast installation is not supported
  17636.   enable_fast_install=no
  17637. elif test "$shlibpath_overrides_runpath" = yes ||
  17638.      test "$enable_shared" = no; then
  17639.   # Fast installation is not necessary
  17640.   enable_fast_install=needless
  17641. fi
  17642.  
  17643. striplib=
  17644. old_striplib=
  17645. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  17646. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  17647. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  17648.   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  17649.   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  17650.   echo "$as_me:$LINENO: result: yes" >&5
  17651. echo "${ECHO_T}yes" >&6
  17652. else
  17653. # FIXME - insert some real tests, host_os isn't really good enough
  17654.   case $host_os in
  17655.    darwin*)
  17656.        if test -n "$STRIP" ; then
  17657.          striplib="$STRIP -x"
  17658.          echo "$as_me:$LINENO: result: yes" >&5
  17659. echo "${ECHO_T}yes" >&6
  17660.        else
  17661.   echo "$as_me:$LINENO: result: no" >&5
  17662. echo "${ECHO_T}no" >&6
  17663. fi
  17664.        ;;
  17665.    *)
  17666.   echo "$as_me:$LINENO: result: no" >&5
  17667. echo "${ECHO_T}no" >&6
  17668.     ;;
  17669.   esac
  17670. fi
  17671.  
  17672. if test "x$enable_dlopen" != xyes; then
  17673.   enable_dlopen=unknown
  17674.   enable_dlopen_self=unknown
  17675.   enable_dlopen_self_static=unknown
  17676. else
  17677.   lt_cv_dlopen=no
  17678.   lt_cv_dlopen_libs=
  17679.  
  17680.   case $host_os in
  17681.   beos*)
  17682.     lt_cv_dlopen="load_add_on"
  17683.     lt_cv_dlopen_libs=
  17684.     lt_cv_dlopen_self=yes
  17685.     ;;
  17686.  
  17687.   mingw* | pw32*)
  17688.     lt_cv_dlopen="LoadLibrary"
  17689.     lt_cv_dlopen_libs=
  17690.    ;;
  17691.  
  17692.   cygwin*)
  17693.     lt_cv_dlopen="dlopen"
  17694.     lt_cv_dlopen_libs=
  17695.    ;;
  17696.  
  17697.   darwin*)
  17698.   # if libdl is installed we need to link against it
  17699.     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  17700. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  17701. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  17702.   echo $ECHO_N "(cached) $ECHO_C" >&6
  17703. else
  17704.   ac_check_lib_save_LIBS=$LIBS
  17705. LIBS="-ldl  $LIBS"
  17706. cat >conftest.$ac_ext <<_ACEOF
  17707. /* confdefs.h.  */
  17708. _ACEOF
  17709. cat confdefs.h >>conftest.$ac_ext
  17710. cat >>conftest.$ac_ext <<_ACEOF
  17711. /* end confdefs.h.  */
  17712.  
  17713. /* Override any gcc2 internal prototype to avoid an error.  */
  17714. #ifdef __cplusplus
  17715. extern "C"
  17716. #endif
  17717. /* We use char because int might match the return type of a gcc2
  17718.    builtin and then its argument prototype would still apply.  */
  17719. char dlopen ();
  17720. int
  17721. main ()
  17722. {
  17723. dlopen ();
  17724.   ;
  17725.   return 0;
  17726. }
  17727. _ACEOF
  17728. rm -f conftest.$ac_objext conftest$ac_exeext
  17729. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17730.   (eval $ac_link) 2>conftest.er1
  17731.   ac_status=$?
  17732.   grep -v '^ *+' conftest.er1 >conftest.err
  17733.   rm -f conftest.er1
  17734.   cat conftest.err >&5
  17735.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17736.   (exit $ac_status); } &&
  17737.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  17738.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17739.   (eval $ac_try) 2>&5
  17740.   ac_status=$?
  17741.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17742.   (exit $ac_status); }; } &&
  17743.      { ac_try='test -s conftest$ac_exeext'
  17744.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17745.   (eval $ac_try) 2>&5
  17746.   ac_status=$?
  17747.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17748.   (exit $ac_status); }; }; then
  17749.   ac_cv_lib_dl_dlopen=yes
  17750. else
  17751.   echo "$as_me: failed program was:" >&5
  17752. sed 's/^/| /' conftest.$ac_ext >&5
  17753.  
  17754. ac_cv_lib_dl_dlopen=no
  17755. fi
  17756. rm -f conftest.err conftest.$ac_objext \
  17757.       conftest$ac_exeext conftest.$ac_ext
  17758. LIBS=$ac_check_lib_save_LIBS
  17759. fi
  17760. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  17761. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  17762. if test $ac_cv_lib_dl_dlopen = yes; then
  17763.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  17764. else
  17765.  
  17766.     lt_cv_dlopen="dyld"
  17767.     lt_cv_dlopen_libs=
  17768.     lt_cv_dlopen_self=yes
  17769.  
  17770. fi
  17771.  
  17772.    ;;
  17773.  
  17774.   *)
  17775.     echo "$as_me:$LINENO: checking for shl_load" >&5
  17776. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  17777. if test "${ac_cv_func_shl_load+set}" = set; then
  17778.   echo $ECHO_N "(cached) $ECHO_C" >&6
  17779. else
  17780.   cat >conftest.$ac_ext <<_ACEOF
  17781. /* confdefs.h.  */
  17782. _ACEOF
  17783. cat confdefs.h >>conftest.$ac_ext
  17784. cat >>conftest.$ac_ext <<_ACEOF
  17785. /* end confdefs.h.  */
  17786. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  17787.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  17788. #define shl_load innocuous_shl_load
  17789.  
  17790. /* System header to define __stub macros and hopefully few prototypes,
  17791.     which can conflict with char shl_load (); below.
  17792.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17793.     <limits.h> exists even on freestanding compilers.  */
  17794.  
  17795. #ifdef __STDC__
  17796. # include <limits.h>
  17797. #else
  17798. # include <assert.h>
  17799. #endif
  17800.  
  17801. #undef shl_load
  17802.  
  17803. /* Override any gcc2 internal prototype to avoid an error.  */
  17804. #ifdef __cplusplus
  17805. extern "C"
  17806. {
  17807. #endif
  17808. /* We use char because int might match the return type of a gcc2
  17809.    builtin and then its argument prototype would still apply.  */
  17810. char shl_load ();
  17811. /* The GNU C library defines this for functions which it implements
  17812.     to always fail with ENOSYS.  Some functions are actually named
  17813.     something starting with __ and the normal name is an alias.  */
  17814. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  17815. choke me
  17816. #else
  17817. char (*f) () = shl_load;
  17818. #endif
  17819. #ifdef __cplusplus
  17820. }
  17821. #endif
  17822.  
  17823. int
  17824. main ()
  17825. {
  17826. return f != shl_load;
  17827.   ;
  17828.   return 0;
  17829. }
  17830. _ACEOF
  17831. rm -f conftest.$ac_objext conftest$ac_exeext
  17832. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17833.   (eval $ac_link) 2>conftest.er1
  17834.   ac_status=$?
  17835.   grep -v '^ *+' conftest.er1 >conftest.err
  17836.   rm -f conftest.er1
  17837.   cat conftest.err >&5
  17838.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17839.   (exit $ac_status); } &&
  17840.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  17841.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17842.   (eval $ac_try) 2>&5
  17843.   ac_status=$?
  17844.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17845.   (exit $ac_status); }; } &&
  17846.      { ac_try='test -s conftest$ac_exeext'
  17847.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17848.   (eval $ac_try) 2>&5
  17849.   ac_status=$?
  17850.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17851.   (exit $ac_status); }; }; then
  17852.   ac_cv_func_shl_load=yes
  17853. else
  17854.   echo "$as_me: failed program was:" >&5
  17855. sed 's/^/| /' conftest.$ac_ext >&5
  17856.  
  17857. ac_cv_func_shl_load=no
  17858. fi
  17859. rm -f conftest.err conftest.$ac_objext \
  17860.       conftest$ac_exeext conftest.$ac_ext
  17861. fi
  17862. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  17863. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  17864. if test $ac_cv_func_shl_load = yes; then
  17865.   lt_cv_dlopen="shl_load"
  17866. else
  17867.   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  17868. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  17869. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  17870.   echo $ECHO_N "(cached) $ECHO_C" >&6
  17871. else
  17872.   ac_check_lib_save_LIBS=$LIBS
  17873. LIBS="-ldld  $LIBS"
  17874. cat >conftest.$ac_ext <<_ACEOF
  17875. /* confdefs.h.  */
  17876. _ACEOF
  17877. cat confdefs.h >>conftest.$ac_ext
  17878. cat >>conftest.$ac_ext <<_ACEOF
  17879. /* end confdefs.h.  */
  17880.  
  17881. /* Override any gcc2 internal prototype to avoid an error.  */
  17882. #ifdef __cplusplus
  17883. extern "C"
  17884. #endif
  17885. /* We use char because int might match the return type of a gcc2
  17886.    builtin and then its argument prototype would still apply.  */
  17887. char shl_load ();
  17888. int
  17889. main ()
  17890. {
  17891. shl_load ();
  17892.   ;
  17893.   return 0;
  17894. }
  17895. _ACEOF
  17896. rm -f conftest.$ac_objext conftest$ac_exeext
  17897. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17898.   (eval $ac_link) 2>conftest.er1
  17899.   ac_status=$?
  17900.   grep -v '^ *+' conftest.er1 >conftest.err
  17901.   rm -f conftest.er1
  17902.   cat conftest.err >&5
  17903.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17904.   (exit $ac_status); } &&
  17905.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  17906.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17907.   (eval $ac_try) 2>&5
  17908.   ac_status=$?
  17909.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17910.   (exit $ac_status); }; } &&
  17911.      { ac_try='test -s conftest$ac_exeext'
  17912.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17913.   (eval $ac_try) 2>&5
  17914.   ac_status=$?
  17915.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17916.   (exit $ac_status); }; }; then
  17917.   ac_cv_lib_dld_shl_load=yes
  17918. else
  17919.   echo "$as_me: failed program was:" >&5
  17920. sed 's/^/| /' conftest.$ac_ext >&5
  17921.  
  17922. ac_cv_lib_dld_shl_load=no
  17923. fi
  17924. rm -f conftest.err conftest.$ac_objext \
  17925.       conftest$ac_exeext conftest.$ac_ext
  17926. LIBS=$ac_check_lib_save_LIBS
  17927. fi
  17928. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  17929. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  17930. if test $ac_cv_lib_dld_shl_load = yes; then
  17931.   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  17932. else
  17933.   echo "$as_me:$LINENO: checking for dlopen" >&5
  17934. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  17935. if test "${ac_cv_func_dlopen+set}" = set; then
  17936.   echo $ECHO_N "(cached) $ECHO_C" >&6
  17937. else
  17938.   cat >conftest.$ac_ext <<_ACEOF
  17939. /* confdefs.h.  */
  17940. _ACEOF
  17941. cat confdefs.h >>conftest.$ac_ext
  17942. cat >>conftest.$ac_ext <<_ACEOF
  17943. /* end confdefs.h.  */
  17944. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  17945.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  17946. #define dlopen innocuous_dlopen
  17947.  
  17948. /* System header to define __stub macros and hopefully few prototypes,
  17949.     which can conflict with char dlopen (); below.
  17950.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17951.     <limits.h> exists even on freestanding compilers.  */
  17952.  
  17953. #ifdef __STDC__
  17954. # include <limits.h>
  17955. #else
  17956. # include <assert.h>
  17957. #endif
  17958.  
  17959. #undef dlopen
  17960.  
  17961. /* Override any gcc2 internal prototype to avoid an error.  */
  17962. #ifdef __cplusplus
  17963. extern "C"
  17964. {
  17965. #endif
  17966. /* We use char because int might match the return type of a gcc2
  17967.    builtin and then its argument prototype would still apply.  */
  17968. char dlopen ();
  17969. /* The GNU C library defines this for functions which it implements
  17970.     to always fail with ENOSYS.  Some functions are actually named
  17971.     something starting with __ and the normal name is an alias.  */
  17972. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  17973. choke me
  17974. #else
  17975. char (*f) () = dlopen;
  17976. #endif
  17977. #ifdef __cplusplus
  17978. }
  17979. #endif
  17980.  
  17981. int
  17982. main ()
  17983. {
  17984. return f != dlopen;
  17985.   ;
  17986.   return 0;
  17987. }
  17988. _ACEOF
  17989. rm -f conftest.$ac_objext conftest$ac_exeext
  17990. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17991.   (eval $ac_link) 2>conftest.er1
  17992.   ac_status=$?
  17993.   grep -v '^ *+' conftest.er1 >conftest.err
  17994.   rm -f conftest.er1
  17995.   cat conftest.err >&5
  17996.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17997.   (exit $ac_status); } &&
  17998.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  17999.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18000.   (eval $ac_try) 2>&5
  18001.   ac_status=$?
  18002.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18003.   (exit $ac_status); }; } &&
  18004.      { ac_try='test -s conftest$ac_exeext'
  18005.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18006.   (eval $ac_try) 2>&5
  18007.   ac_status=$?
  18008.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18009.   (exit $ac_status); }; }; then
  18010.   ac_cv_func_dlopen=yes
  18011. else
  18012.   echo "$as_me: failed program was:" >&5
  18013. sed 's/^/| /' conftest.$ac_ext >&5
  18014.  
  18015. ac_cv_func_dlopen=no
  18016. fi
  18017. rm -f conftest.err conftest.$ac_objext \
  18018.       conftest$ac_exeext conftest.$ac_ext
  18019. fi
  18020. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  18021. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  18022. if test $ac_cv_func_dlopen = yes; then
  18023.   lt_cv_dlopen="dlopen"
  18024. else
  18025.   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  18026. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  18027. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  18028.   echo $ECHO_N "(cached) $ECHO_C" >&6
  18029. else
  18030.   ac_check_lib_save_LIBS=$LIBS
  18031. LIBS="-ldl  $LIBS"
  18032. cat >conftest.$ac_ext <<_ACEOF
  18033. /* confdefs.h.  */
  18034. _ACEOF
  18035. cat confdefs.h >>conftest.$ac_ext
  18036. cat >>conftest.$ac_ext <<_ACEOF
  18037. /* end confdefs.h.  */
  18038.  
  18039. /* Override any gcc2 internal prototype to avoid an error.  */
  18040. #ifdef __cplusplus
  18041. extern "C"
  18042. #endif
  18043. /* We use char because int might match the return type of a gcc2
  18044.    builtin and then its argument prototype would still apply.  */
  18045. char dlopen ();
  18046. int
  18047. main ()
  18048. {
  18049. dlopen ();
  18050.   ;
  18051.   return 0;
  18052. }
  18053. _ACEOF
  18054. rm -f conftest.$ac_objext conftest$ac_exeext
  18055. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18056.   (eval $ac_link) 2>conftest.er1
  18057.   ac_status=$?
  18058.   grep -v '^ *+' conftest.er1 >conftest.err
  18059.   rm -f conftest.er1
  18060.   cat conftest.err >&5
  18061.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18062.   (exit $ac_status); } &&
  18063.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  18064.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18065.   (eval $ac_try) 2>&5
  18066.   ac_status=$?
  18067.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18068.   (exit $ac_status); }; } &&
  18069.      { ac_try='test -s conftest$ac_exeext'
  18070.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18071.   (eval $ac_try) 2>&5
  18072.   ac_status=$?
  18073.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18074.   (exit $ac_status); }; }; then
  18075.   ac_cv_lib_dl_dlopen=yes
  18076. else
  18077.   echo "$as_me: failed program was:" >&5
  18078. sed 's/^/| /' conftest.$ac_ext >&5
  18079.  
  18080. ac_cv_lib_dl_dlopen=no
  18081. fi
  18082. rm -f conftest.err conftest.$ac_objext \
  18083.       conftest$ac_exeext conftest.$ac_ext
  18084. LIBS=$ac_check_lib_save_LIBS
  18085. fi
  18086. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  18087. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  18088. if test $ac_cv_lib_dl_dlopen = yes; then
  18089.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  18090. else
  18091.   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  18092. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  18093. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  18094.   echo $ECHO_N "(cached) $ECHO_C" >&6
  18095. else
  18096.   ac_check_lib_save_LIBS=$LIBS
  18097. LIBS="-lsvld  $LIBS"
  18098. cat >conftest.$ac_ext <<_ACEOF
  18099. /* confdefs.h.  */
  18100. _ACEOF
  18101. cat confdefs.h >>conftest.$ac_ext
  18102. cat >>conftest.$ac_ext <<_ACEOF
  18103. /* end confdefs.h.  */
  18104.  
  18105. /* Override any gcc2 internal prototype to avoid an error.  */
  18106. #ifdef __cplusplus
  18107. extern "C"
  18108. #endif
  18109. /* We use char because int might match the return type of a gcc2
  18110.    builtin and then its argument prototype would still apply.  */
  18111. char dlopen ();
  18112. int
  18113. main ()
  18114. {
  18115. dlopen ();
  18116.   ;
  18117.   return 0;
  18118. }
  18119. _ACEOF
  18120. rm -f conftest.$ac_objext conftest$ac_exeext
  18121. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18122.   (eval $ac_link) 2>conftest.er1
  18123.   ac_status=$?
  18124.   grep -v '^ *+' conftest.er1 >conftest.err
  18125.   rm -f conftest.er1
  18126.   cat conftest.err >&5
  18127.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18128.   (exit $ac_status); } &&
  18129.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  18130.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18131.   (eval $ac_try) 2>&5
  18132.   ac_status=$?
  18133.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18134.   (exit $ac_status); }; } &&
  18135.      { ac_try='test -s conftest$ac_exeext'
  18136.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18137.   (eval $ac_try) 2>&5
  18138.   ac_status=$?
  18139.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18140.   (exit $ac_status); }; }; then
  18141.   ac_cv_lib_svld_dlopen=yes
  18142. else
  18143.   echo "$as_me: failed program was:" >&5
  18144. sed 's/^/| /' conftest.$ac_ext >&5
  18145.  
  18146. ac_cv_lib_svld_dlopen=no
  18147. fi
  18148. rm -f conftest.err conftest.$ac_objext \
  18149.       conftest$ac_exeext conftest.$ac_ext
  18150. LIBS=$ac_check_lib_save_LIBS
  18151. fi
  18152. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  18153. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  18154. if test $ac_cv_lib_svld_dlopen = yes; then
  18155.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  18156. else
  18157.   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  18158. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  18159. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  18160.   echo $ECHO_N "(cached) $ECHO_C" >&6
  18161. else
  18162.   ac_check_lib_save_LIBS=$LIBS
  18163. LIBS="-ldld  $LIBS"
  18164. cat >conftest.$ac_ext <<_ACEOF
  18165. /* confdefs.h.  */
  18166. _ACEOF
  18167. cat confdefs.h >>conftest.$ac_ext
  18168. cat >>conftest.$ac_ext <<_ACEOF
  18169. /* end confdefs.h.  */
  18170.  
  18171. /* Override any gcc2 internal prototype to avoid an error.  */
  18172. #ifdef __cplusplus
  18173. extern "C"
  18174. #endif
  18175. /* We use char because int might match the return type of a gcc2
  18176.    builtin and then its argument prototype would still apply.  */
  18177. char dld_link ();
  18178. int
  18179. main ()
  18180. {
  18181. dld_link ();
  18182.   ;
  18183.   return 0;
  18184. }
  18185. _ACEOF
  18186. rm -f conftest.$ac_objext conftest$ac_exeext
  18187. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18188.   (eval $ac_link) 2>conftest.er1
  18189.   ac_status=$?
  18190.   grep -v '^ *+' conftest.er1 >conftest.err
  18191.   rm -f conftest.er1
  18192.   cat conftest.err >&5
  18193.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18194.   (exit $ac_status); } &&
  18195.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  18196.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18197.   (eval $ac_try) 2>&5
  18198.   ac_status=$?
  18199.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18200.   (exit $ac_status); }; } &&
  18201.      { ac_try='test -s conftest$ac_exeext'
  18202.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18203.   (eval $ac_try) 2>&5
  18204.   ac_status=$?
  18205.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18206.   (exit $ac_status); }; }; then
  18207.   ac_cv_lib_dld_dld_link=yes
  18208. else
  18209.   echo "$as_me: failed program was:" >&5
  18210. sed 's/^/| /' conftest.$ac_ext >&5
  18211.  
  18212. ac_cv_lib_dld_dld_link=no
  18213. fi
  18214. rm -f conftest.err conftest.$ac_objext \
  18215.       conftest$ac_exeext conftest.$ac_ext
  18216. LIBS=$ac_check_lib_save_LIBS
  18217. fi
  18218. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  18219. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  18220. if test $ac_cv_lib_dld_dld_link = yes; then
  18221.   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  18222. fi
  18223.  
  18224.  
  18225. fi
  18226.  
  18227.  
  18228. fi
  18229.  
  18230.  
  18231. fi
  18232.  
  18233.  
  18234. fi
  18235.  
  18236.  
  18237. fi
  18238.  
  18239.     ;;
  18240.   esac
  18241.  
  18242.   if test "x$lt_cv_dlopen" != xno; then
  18243.     enable_dlopen=yes
  18244.   else
  18245.     enable_dlopen=no
  18246.   fi
  18247.  
  18248.   case $lt_cv_dlopen in
  18249.   dlopen)
  18250.     save_CPPFLAGS="$CPPFLAGS"
  18251.     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  18252.  
  18253.     save_LDFLAGS="$LDFLAGS"
  18254.     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  18255.  
  18256.     save_LIBS="$LIBS"
  18257.     LIBS="$lt_cv_dlopen_libs $LIBS"
  18258.  
  18259.     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  18260. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  18261. if test "${lt_cv_dlopen_self+set}" = set; then
  18262.   echo $ECHO_N "(cached) $ECHO_C" >&6
  18263. else
  18264.         if test "$cross_compiling" = yes; then :
  18265.   lt_cv_dlopen_self=cross
  18266. else
  18267.   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  18268.   lt_status=$lt_dlunknown
  18269.   cat > conftest.$ac_ext <<EOF
  18270. #line 18270 "configure"
  18271. #include "confdefs.h"
  18272.  
  18273. #if HAVE_DLFCN_H
  18274. #include <dlfcn.h>
  18275. #endif
  18276.  
  18277. #include <stdio.h>
  18278.  
  18279. #ifdef RTLD_GLOBAL
  18280. #  define LT_DLGLOBAL        RTLD_GLOBAL
  18281. #else
  18282. #  ifdef DL_GLOBAL
  18283. #    define LT_DLGLOBAL        DL_GLOBAL
  18284. #  else
  18285. #    define LT_DLGLOBAL        0
  18286. #  endif
  18287. #endif
  18288.  
  18289. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  18290.    find out it does not work in some platform. */
  18291. #ifndef LT_DLLAZY_OR_NOW
  18292. #  ifdef RTLD_LAZY
  18293. #    define LT_DLLAZY_OR_NOW        RTLD_LAZY
  18294. #  else
  18295. #    ifdef DL_LAZY
  18296. #      define LT_DLLAZY_OR_NOW        DL_LAZY
  18297. #    else
  18298. #      ifdef RTLD_NOW
  18299. #        define LT_DLLAZY_OR_NOW    RTLD_NOW
  18300. #      else
  18301. #        ifdef DL_NOW
  18302. #          define LT_DLLAZY_OR_NOW    DL_NOW
  18303. #        else
  18304. #          define LT_DLLAZY_OR_NOW    0
  18305. #        endif
  18306. #      endif
  18307. #    endif
  18308. #  endif
  18309. #endif
  18310.  
  18311. #ifdef __cplusplus
  18312. extern "C" void exit (int);
  18313. #endif
  18314.  
  18315. void fnord() { int i=42;}
  18316. int main ()
  18317. {
  18318.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  18319.   int status = $lt_dlunknown;
  18320.  
  18321.   if (self)
  18322.     {
  18323.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  18324.       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  18325.       /* dlclose (self); */
  18326.     }
  18327.  
  18328.     exit (status);
  18329. }
  18330. EOF
  18331.   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18332.   (eval $ac_link) 2>&5
  18333.   ac_status=$?
  18334.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18335.   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  18336.     (./conftest; exit; ) 2>/dev/null
  18337.     lt_status=$?
  18338.     case x$lt_status in
  18339.       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  18340.       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  18341.       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  18342.     esac
  18343.   else :
  18344.     # compilation failed
  18345.     lt_cv_dlopen_self=no
  18346.   fi
  18347. fi
  18348. rm -fr conftest*
  18349.  
  18350.  
  18351. fi
  18352. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  18353. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  18354.  
  18355.     if test "x$lt_cv_dlopen_self" = xyes; then
  18356.       LDFLAGS="$LDFLAGS $link_static_flag"
  18357.       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  18358. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  18359. if test "${lt_cv_dlopen_self_static+set}" = set; then
  18360.   echo $ECHO_N "(cached) $ECHO_C" >&6
  18361. else
  18362.         if test "$cross_compiling" = yes; then :
  18363.   lt_cv_dlopen_self_static=cross
  18364. else
  18365.   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  18366.   lt_status=$lt_dlunknown
  18367.   cat > conftest.$ac_ext <<EOF
  18368. #line 18368 "configure"
  18369. #include "confdefs.h"
  18370.  
  18371. #if HAVE_DLFCN_H
  18372. #include <dlfcn.h>
  18373. #endif
  18374.  
  18375. #include <stdio.h>
  18376.  
  18377. #ifdef RTLD_GLOBAL
  18378. #  define LT_DLGLOBAL        RTLD_GLOBAL
  18379. #else
  18380. #  ifdef DL_GLOBAL
  18381. #    define LT_DLGLOBAL        DL_GLOBAL
  18382. #  else
  18383. #    define LT_DLGLOBAL        0
  18384. #  endif
  18385. #endif
  18386.  
  18387. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  18388.    find out it does not work in some platform. */
  18389. #ifndef LT_DLLAZY_OR_NOW
  18390. #  ifdef RTLD_LAZY
  18391. #    define LT_DLLAZY_OR_NOW        RTLD_LAZY
  18392. #  else
  18393. #    ifdef DL_LAZY
  18394. #      define LT_DLLAZY_OR_NOW        DL_LAZY
  18395. #    else
  18396. #      ifdef RTLD_NOW
  18397. #        define LT_DLLAZY_OR_NOW    RTLD_NOW
  18398. #      else
  18399. #        ifdef DL_NOW
  18400. #          define LT_DLLAZY_OR_NOW    DL_NOW
  18401. #        else
  18402. #          define LT_DLLAZY_OR_NOW    0
  18403. #        endif
  18404. #      endif
  18405. #    endif
  18406. #  endif
  18407. #endif
  18408.  
  18409. #ifdef __cplusplus
  18410. extern "C" void exit (int);
  18411. #endif
  18412.  
  18413. void fnord() { int i=42;}
  18414. int main ()
  18415. {
  18416.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  18417.   int status = $lt_dlunknown;
  18418.  
  18419.   if (self)
  18420.     {
  18421.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  18422.       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  18423.       /* dlclose (self); */
  18424.     }
  18425.  
  18426.     exit (status);
  18427. }
  18428. EOF
  18429.   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18430.   (eval $ac_link) 2>&5
  18431.   ac_status=$?
  18432.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18433.   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  18434.     (./conftest; exit; ) 2>/dev/null
  18435.     lt_status=$?
  18436.     case x$lt_status in
  18437.       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  18438.       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  18439.       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  18440.     esac
  18441.   else :
  18442.     # compilation failed
  18443.     lt_cv_dlopen_self_static=no
  18444.   fi
  18445. fi
  18446. rm -fr conftest*
  18447.  
  18448.  
  18449. fi
  18450. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  18451. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  18452.     fi
  18453.  
  18454.     CPPFLAGS="$save_CPPFLAGS"
  18455.     LDFLAGS="$save_LDFLAGS"
  18456.     LIBS="$save_LIBS"
  18457.     ;;
  18458.   esac
  18459.  
  18460.   case $lt_cv_dlopen_self in
  18461.   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  18462.   *) enable_dlopen_self=unknown ;;
  18463.   esac
  18464.  
  18465.   case $lt_cv_dlopen_self_static in
  18466.   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  18467.   *) enable_dlopen_self_static=unknown ;;
  18468.   esac
  18469. fi
  18470.  
  18471.  
  18472. # The else clause should only fire when bootstrapping the
  18473. # libtool distribution, otherwise you forgot to ship ltmain.sh
  18474. # with your package, and you will get complaints that there are
  18475. # no rules to generate ltmain.sh.
  18476. if test -f "$ltmain"; then
  18477.   # See if we are running on zsh, and set the options which allow our commands through
  18478.   # without removal of \ escapes.
  18479.   if test -n "${ZSH_VERSION+set}" ; then
  18480.     setopt NO_GLOB_SUBST
  18481.   fi
  18482.   # Now quote all the things that may contain metacharacters while being
  18483.   # careful not to overquote the AC_SUBSTed values.  We take copies of the
  18484.   # variables and quote the copies for generation of the libtool script.
  18485.   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  18486.     SED SHELL STRIP \
  18487.     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  18488.     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  18489.     deplibs_check_method reload_flag reload_cmds need_locks \
  18490.     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  18491.     lt_cv_sys_global_symbol_to_c_name_address \
  18492.     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  18493.     old_postinstall_cmds old_postuninstall_cmds \
  18494.     compiler_GCJ \
  18495.     CC_GCJ \
  18496.     LD_GCJ \
  18497.     lt_prog_compiler_wl_GCJ \
  18498.     lt_prog_compiler_pic_GCJ \
  18499.     lt_prog_compiler_static_GCJ \
  18500.     lt_prog_compiler_no_builtin_flag_GCJ \
  18501.     export_dynamic_flag_spec_GCJ \
  18502.     thread_safe_flag_spec_GCJ \
  18503.     whole_archive_flag_spec_GCJ \
  18504.     enable_shared_with_static_runtimes_GCJ \
  18505.     old_archive_cmds_GCJ \
  18506.     old_archive_from_new_cmds_GCJ \
  18507.     predep_objects_GCJ \
  18508.     postdep_objects_GCJ \
  18509.     predeps_GCJ \
  18510.     postdeps_GCJ \
  18511.     compiler_lib_search_path_GCJ \
  18512.     archive_cmds_GCJ \
  18513.     archive_expsym_cmds_GCJ \
  18514.     postinstall_cmds_GCJ \
  18515.     postuninstall_cmds_GCJ \
  18516.     old_archive_from_expsyms_cmds_GCJ \
  18517.     allow_undefined_flag_GCJ \
  18518.     no_undefined_flag_GCJ \
  18519.     export_symbols_cmds_GCJ \
  18520.     hardcode_libdir_flag_spec_GCJ \
  18521.     hardcode_libdir_flag_spec_ld_GCJ \
  18522.     hardcode_libdir_separator_GCJ \
  18523.     hardcode_automatic_GCJ \
  18524.     module_cmds_GCJ \
  18525.     module_expsym_cmds_GCJ \
  18526.     lt_cv_prog_compiler_c_o_GCJ \
  18527.     exclude_expsyms_GCJ \
  18528.     include_expsyms_GCJ; do
  18529.  
  18530.     case $var in
  18531.     old_archive_cmds_GCJ | \
  18532.     old_archive_from_new_cmds_GCJ | \
  18533.     archive_cmds_GCJ | \
  18534.     archive_expsym_cmds_GCJ | \
  18535.     module_cmds_GCJ | \
  18536.     module_expsym_cmds_GCJ | \
  18537.     old_archive_from_expsyms_cmds_GCJ | \
  18538.     export_symbols_cmds_GCJ | \
  18539.     extract_expsyms_cmds | reload_cmds | finish_cmds | \
  18540.     postinstall_cmds | postuninstall_cmds | \
  18541.     old_postinstall_cmds | old_postuninstall_cmds | \
  18542.     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  18543.       # Double-quote double-evaled strings.
  18544.       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  18545.       ;;
  18546.     *)
  18547.       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  18548.       ;;
  18549.     esac
  18550.   done
  18551.  
  18552.   case $lt_echo in
  18553.   *'\$0 --fallback-echo"')
  18554.     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  18555.     ;;
  18556.   esac
  18557.  
  18558. cfgfile="$ofile"
  18559.  
  18560.   cat <<__EOF__ >> "$cfgfile"
  18561. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  18562.  
  18563. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  18564.  
  18565. # Shell to use when invoking shell scripts.
  18566. SHELL=$lt_SHELL
  18567.  
  18568. # Whether or not to build shared libraries.
  18569. build_libtool_libs=$enable_shared
  18570.  
  18571. # Whether or not to build static libraries.
  18572. build_old_libs=$enable_static
  18573.  
  18574. # Whether or not to add -lc for building shared libraries.
  18575. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  18576.  
  18577. # Whether or not to disallow shared libs when runtime libs are static
  18578. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  18579.  
  18580. # Whether or not to optimize for fast installation.
  18581. fast_install=$enable_fast_install
  18582.  
  18583. # The host system.
  18584. host_alias=$host_alias
  18585. host=$host
  18586.  
  18587. # An echo program that does not interpret backslashes.
  18588. echo=$lt_echo
  18589.  
  18590. # The archiver.
  18591. AR=$lt_AR
  18592. AR_FLAGS=$lt_AR_FLAGS
  18593.  
  18594. # A C compiler.
  18595. LTCC=$lt_LTCC
  18596.  
  18597. # A language-specific compiler.
  18598. CC=$lt_compiler_GCJ
  18599.  
  18600. # Is the compiler the GNU C compiler?
  18601. with_gcc=$GCC_GCJ
  18602.  
  18603. # An ERE matcher.
  18604. EGREP=$lt_EGREP
  18605.  
  18606. # The linker used to build libraries.
  18607. LD=$lt_LD_GCJ
  18608.  
  18609. # Whether we need hard or soft links.
  18610. LN_S=$lt_LN_S
  18611.  
  18612. # A BSD-compatible nm program.
  18613. NM=$lt_NM
  18614.  
  18615. # A symbol stripping program
  18616. STRIP=$lt_STRIP
  18617.  
  18618. # Used to examine libraries when file_magic_cmd begins "file"
  18619. MAGIC_CMD=$MAGIC_CMD
  18620.  
  18621. # Used on cygwin: DLL creation program.
  18622. DLLTOOL="$DLLTOOL"
  18623.  
  18624. # Used on cygwin: object dumper.
  18625. OBJDUMP="$OBJDUMP"
  18626.  
  18627. # Used on cygwin: assembler.
  18628. AS="$AS"
  18629.  
  18630. # The name of the directory that contains temporary libtool files.
  18631. objdir=$objdir
  18632.  
  18633. # How to create reloadable object files.
  18634. reload_flag=$lt_reload_flag
  18635. reload_cmds=$lt_reload_cmds
  18636.  
  18637. # How to pass a linker flag through the compiler.
  18638. wl=$lt_lt_prog_compiler_wl_GCJ
  18639.  
  18640. # Object file suffix (normally "o").
  18641. objext="$ac_objext"
  18642.  
  18643. # Old archive suffix (normally "a").
  18644. libext="$libext"
  18645.  
  18646. # Shared library suffix (normally ".so").
  18647. shrext_cmds='$shrext_cmds'
  18648.  
  18649. # Executable file suffix (normally "").
  18650. exeext="$exeext"
  18651.  
  18652. # Additional compiler flags for building library objects.
  18653. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  18654. pic_mode=$pic_mode
  18655.  
  18656. # What is the maximum length of a command?
  18657. max_cmd_len=$lt_cv_sys_max_cmd_len
  18658.  
  18659. # Does compiler simultaneously support -c and -o options?
  18660. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  18661.  
  18662. # Must we lock files when doing compilation ?
  18663. need_locks=$lt_need_locks
  18664.  
  18665. # Do we need the lib prefix for modules?
  18666. need_lib_prefix=$need_lib_prefix
  18667.  
  18668. # Do we need a version for libraries?
  18669. need_version=$need_version
  18670.  
  18671. # Whether dlopen is supported.
  18672. dlopen_support=$enable_dlopen
  18673.  
  18674. # Whether dlopen of programs is supported.
  18675. dlopen_self=$enable_dlopen_self
  18676.  
  18677. # Whether dlopen of statically linked programs is supported.
  18678. dlopen_self_static=$enable_dlopen_self_static
  18679.  
  18680. # Compiler flag to prevent dynamic linking.
  18681. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  18682.  
  18683. # Compiler flag to turn off builtin functions.
  18684. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  18685.  
  18686. # Compiler flag to allow reflexive dlopens.
  18687. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  18688.  
  18689. # Compiler flag to generate shared objects directly from archives.
  18690. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  18691.  
  18692. # Compiler flag to generate thread-safe objects.
  18693. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  18694.  
  18695. # Library versioning type.
  18696. version_type=$version_type
  18697.  
  18698. # Format of library name prefix.
  18699. libname_spec=$lt_libname_spec
  18700.  
  18701. # List of archive names.  First name is the real one, the rest are links.
  18702. # The last name is the one that the linker finds with -lNAME.
  18703. library_names_spec=$lt_library_names_spec
  18704.  
  18705. # The coded name of the library, if different from the real name.
  18706. soname_spec=$lt_soname_spec
  18707.  
  18708. # Commands used to build and install an old-style archive.
  18709. RANLIB=$lt_RANLIB
  18710. old_archive_cmds=$lt_old_archive_cmds_GCJ
  18711. old_postinstall_cmds=$lt_old_postinstall_cmds
  18712. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  18713.  
  18714. # Create an old-style archive from a shared archive.
  18715. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  18716.  
  18717. # Create a temporary old-style archive to link instead of a shared archive.
  18718. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  18719.  
  18720. # Commands used to build and install a shared archive.
  18721. archive_cmds=$lt_archive_cmds_GCJ
  18722. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  18723. postinstall_cmds=$lt_postinstall_cmds
  18724. postuninstall_cmds=$lt_postuninstall_cmds
  18725.  
  18726. # Commands used to build a loadable module (assumed same as above if empty)
  18727. module_cmds=$lt_module_cmds_GCJ
  18728. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  18729.  
  18730. # Commands to strip libraries.
  18731. old_striplib=$lt_old_striplib
  18732. striplib=$lt_striplib
  18733.  
  18734. # Dependencies to place before the objects being linked to create a
  18735. # shared library.
  18736. predep_objects=$lt_predep_objects_GCJ
  18737.  
  18738. # Dependencies to place after the objects being linked to create a
  18739. # shared library.
  18740. postdep_objects=$lt_postdep_objects_GCJ
  18741.  
  18742. # Dependencies to place before the objects being linked to create a
  18743. # shared library.
  18744. predeps=$lt_predeps_GCJ
  18745.  
  18746. # Dependencies to place after the objects being linked to create a
  18747. # shared library.
  18748. postdeps=$lt_postdeps_GCJ
  18749.  
  18750. # The library search path used internally by the compiler when linking
  18751. # a shared library.
  18752. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  18753.  
  18754. # Method to check whether dependent libraries are shared objects.
  18755. deplibs_check_method=$lt_deplibs_check_method
  18756.  
  18757. # Command to use when deplibs_check_method == file_magic.
  18758. file_magic_cmd=$lt_file_magic_cmd
  18759.  
  18760. # Flag that allows shared libraries with undefined symbols to be built.
  18761. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  18762.  
  18763. # Flag that forces no undefined symbols.
  18764. no_undefined_flag=$lt_no_undefined_flag_GCJ
  18765.  
  18766. # Commands used to finish a libtool library installation in a directory.
  18767. finish_cmds=$lt_finish_cmds
  18768.  
  18769. # Same as above, but a single script fragment to be evaled but not shown.
  18770. finish_eval=$lt_finish_eval
  18771.  
  18772. # Take the output of nm and produce a listing of raw symbols and C names.
  18773. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  18774.  
  18775. # Transform the output of nm in a proper C declaration
  18776. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  18777.  
  18778. # Transform the output of nm in a C name address pair
  18779. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  18780.  
  18781. # This is the shared library runtime path variable.
  18782. runpath_var=$runpath_var
  18783.  
  18784. # This is the shared library path variable.
  18785. shlibpath_var=$shlibpath_var
  18786.  
  18787. # Is shlibpath searched before the hard-coded library search path?
  18788. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  18789.  
  18790. # How to hardcode a shared library path into an executable.
  18791. hardcode_action=$hardcode_action_GCJ
  18792.  
  18793. # Whether we should hardcode library paths into libraries.
  18794. hardcode_into_libs=$hardcode_into_libs
  18795.  
  18796. # Flag to hardcode \$libdir into a binary during linking.
  18797. # This must work even if \$libdir does not exist.
  18798. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  18799.  
  18800. # If ld is used when linking, flag to hardcode \$libdir into
  18801. # a binary during linking. This must work even if \$libdir does
  18802. # not exist.
  18803. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  18804.  
  18805. # Whether we need a single -rpath flag with a separated argument.
  18806. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  18807.  
  18808. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  18809. # resulting binary.
  18810. hardcode_direct=$hardcode_direct_GCJ
  18811.  
  18812. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  18813. # resulting binary.
  18814. hardcode_minus_L=$hardcode_minus_L_GCJ
  18815.  
  18816. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  18817. # the resulting binary.
  18818. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  18819.  
  18820. # Set to yes if building a shared library automatically hardcodes DIR into the library
  18821. # and all subsequent libraries and executables linked against it.
  18822. hardcode_automatic=$hardcode_automatic_GCJ
  18823.  
  18824. # Variables whose values should be saved in libtool wrapper scripts and
  18825. # restored at relink time.
  18826. variables_saved_for_relink="$variables_saved_for_relink"
  18827.  
  18828. # Whether libtool must link a program against all its dependency libraries.
  18829. link_all_deplibs=$link_all_deplibs_GCJ
  18830.  
  18831. # Compile-time system search path for libraries
  18832. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  18833.  
  18834. # Run-time system search path for libraries
  18835. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  18836.  
  18837. # Fix the shell variable \$srcfile for the compiler.
  18838. fix_srcfile_path="$fix_srcfile_path_GCJ"
  18839.  
  18840. # Set to yes if exported symbols are required.
  18841. always_export_symbols=$always_export_symbols_GCJ
  18842.  
  18843. # The commands to list exported symbols.
  18844. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  18845.  
  18846. # The commands to extract the exported symbol list from a shared archive.
  18847. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  18848.  
  18849. # Symbols that should not be listed in the preloaded symbols.
  18850. exclude_expsyms=$lt_exclude_expsyms_GCJ
  18851.  
  18852. # Symbols that must always be exported.
  18853. include_expsyms=$lt_include_expsyms_GCJ
  18854.  
  18855. # ### END LIBTOOL TAG CONFIG: $tagname
  18856.  
  18857. __EOF__
  18858.  
  18859.  
  18860. else
  18861.   # If there is no Makefile yet, we rely on a make rule to execute
  18862.   # `config.status --recheck' to rerun these tests and create the
  18863.   # libtool script then.
  18864.   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  18865.   if test -f "$ltmain_in"; then
  18866.     test -f Makefile && make "$ltmain"
  18867.   fi
  18868. fi
  18869.  
  18870.  
  18871. ac_ext=c
  18872. ac_cpp='$CPP $CPPFLAGS'
  18873. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18874. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18875. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18876.  
  18877. CC="$lt_save_CC"
  18878.  
  18879.     else
  18880.       tagname=""
  18881.     fi
  18882.     ;;
  18883.  
  18884.       RC)
  18885.  
  18886.  
  18887.  
  18888. # Source file extension for RC test sources.
  18889. ac_ext=rc
  18890.  
  18891. # Object file extension for compiled RC test sources.
  18892. objext=o
  18893. objext_RC=$objext
  18894.  
  18895. # Code to be used in simple compile tests
  18896. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  18897.  
  18898. # Code to be used in simple link tests
  18899. lt_simple_link_test_code="$lt_simple_compile_test_code"
  18900.  
  18901. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  18902.  
  18903. # If no C compiler was specified, use CC.
  18904. LTCC=${LTCC-"$CC"}
  18905.  
  18906. # Allow CC to be a program name with arguments.
  18907. compiler=$CC
  18908.  
  18909.  
  18910. # Allow CC to be a program name with arguments.
  18911. lt_save_CC="$CC"
  18912. CC=${RC-"windres"}
  18913. compiler=$CC
  18914. compiler_RC=$CC
  18915. lt_cv_prog_compiler_c_o_RC=yes
  18916.  
  18917. # The else clause should only fire when bootstrapping the
  18918. # libtool distribution, otherwise you forgot to ship ltmain.sh
  18919. # with your package, and you will get complaints that there are
  18920. # no rules to generate ltmain.sh.
  18921. if test -f "$ltmain"; then
  18922.   # See if we are running on zsh, and set the options which allow our commands through
  18923.   # without removal of \ escapes.
  18924.   if test -n "${ZSH_VERSION+set}" ; then
  18925.     setopt NO_GLOB_SUBST
  18926.   fi
  18927.   # Now quote all the things that may contain metacharacters while being
  18928.   # careful not to overquote the AC_SUBSTed values.  We take copies of the
  18929.   # variables and quote the copies for generation of the libtool script.
  18930.   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  18931.     SED SHELL STRIP \
  18932.     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  18933.     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  18934.     deplibs_check_method reload_flag reload_cmds need_locks \
  18935.     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  18936.     lt_cv_sys_global_symbol_to_c_name_address \
  18937.     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  18938.     old_postinstall_cmds old_postuninstall_cmds \
  18939.     compiler_RC \
  18940.     CC_RC \
  18941.     LD_RC \
  18942.     lt_prog_compiler_wl_RC \
  18943.     lt_prog_compiler_pic_RC \
  18944.     lt_prog_compiler_static_RC \
  18945.     lt_prog_compiler_no_builtin_flag_RC \
  18946.     export_dynamic_flag_spec_RC \
  18947.     thread_safe_flag_spec_RC \
  18948.     whole_archive_flag_spec_RC \
  18949.     enable_shared_with_static_runtimes_RC \
  18950.     old_archive_cmds_RC \
  18951.     old_archive_from_new_cmds_RC \
  18952.     predep_objects_RC \
  18953.     postdep_objects_RC \
  18954.     predeps_RC \
  18955.     postdeps_RC \
  18956.     compiler_lib_search_path_RC \
  18957.     archive_cmds_RC \
  18958.     archive_expsym_cmds_RC \
  18959.     postinstall_cmds_RC \
  18960.     postuninstall_cmds_RC \
  18961.     old_archive_from_expsyms_cmds_RC \
  18962.     allow_undefined_flag_RC \
  18963.     no_undefined_flag_RC \
  18964.     export_symbols_cmds_RC \
  18965.     hardcode_libdir_flag_spec_RC \
  18966.     hardcode_libdir_flag_spec_ld_RC \
  18967.     hardcode_libdir_separator_RC \
  18968.     hardcode_automatic_RC \
  18969.     module_cmds_RC \
  18970.     module_expsym_cmds_RC \
  18971.     lt_cv_prog_compiler_c_o_RC \
  18972.     exclude_expsyms_RC \
  18973.     include_expsyms_RC; do
  18974.  
  18975.     case $var in
  18976.     old_archive_cmds_RC | \
  18977.     old_archive_from_new_cmds_RC | \
  18978.     archive_cmds_RC | \
  18979.     archive_expsym_cmds_RC | \
  18980.     module_cmds_RC | \
  18981.     module_expsym_cmds_RC | \
  18982.     old_archive_from_expsyms_cmds_RC | \
  18983.     export_symbols_cmds_RC | \
  18984.     extract_expsyms_cmds | reload_cmds | finish_cmds | \
  18985.     postinstall_cmds | postuninstall_cmds | \
  18986.     old_postinstall_cmds | old_postuninstall_cmds | \
  18987.     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  18988.       # Double-quote double-evaled strings.
  18989.       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  18990.       ;;
  18991.     *)
  18992.       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  18993.       ;;
  18994.     esac
  18995.   done
  18996.  
  18997.   case $lt_echo in
  18998.   *'\$0 --fallback-echo"')
  18999.     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  19000.     ;;
  19001.   esac
  19002.  
  19003. cfgfile="$ofile"
  19004.  
  19005.   cat <<__EOF__ >> "$cfgfile"
  19006. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  19007.  
  19008. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  19009.  
  19010. # Shell to use when invoking shell scripts.
  19011. SHELL=$lt_SHELL
  19012.  
  19013. # Whether or not to build shared libraries.
  19014. build_libtool_libs=$enable_shared
  19015.  
  19016. # Whether or not to build static libraries.
  19017. build_old_libs=$enable_static
  19018.  
  19019. # Whether or not to add -lc for building shared libraries.
  19020. build_libtool_need_lc=$archive_cmds_need_lc_RC
  19021.  
  19022. # Whether or not to disallow shared libs when runtime libs are static
  19023. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  19024.  
  19025. # Whether or not to optimize for fast installation.
  19026. fast_install=$enable_fast_install
  19027.  
  19028. # The host system.
  19029. host_alias=$host_alias
  19030. host=$host
  19031.  
  19032. # An echo program that does not interpret backslashes.
  19033. echo=$lt_echo
  19034.  
  19035. # The archiver.
  19036. AR=$lt_AR
  19037. AR_FLAGS=$lt_AR_FLAGS
  19038.  
  19039. # A C compiler.
  19040. LTCC=$lt_LTCC
  19041.  
  19042. # A language-specific compiler.
  19043. CC=$lt_compiler_RC
  19044.  
  19045. # Is the compiler the GNU C compiler?
  19046. with_gcc=$GCC_RC
  19047.  
  19048. # An ERE matcher.
  19049. EGREP=$lt_EGREP
  19050.  
  19051. # The linker used to build libraries.
  19052. LD=$lt_LD_RC
  19053.  
  19054. # Whether we need hard or soft links.
  19055. LN_S=$lt_LN_S
  19056.  
  19057. # A BSD-compatible nm program.
  19058. NM=$lt_NM
  19059.  
  19060. # A symbol stripping program
  19061. STRIP=$lt_STRIP
  19062.  
  19063. # Used to examine libraries when file_magic_cmd begins "file"
  19064. MAGIC_CMD=$MAGIC_CMD
  19065.  
  19066. # Used on cygwin: DLL creation program.
  19067. DLLTOOL="$DLLTOOL"
  19068.  
  19069. # Used on cygwin: object dumper.
  19070. OBJDUMP="$OBJDUMP"
  19071.  
  19072. # Used on cygwin: assembler.
  19073. AS="$AS"
  19074.  
  19075. # The name of the directory that contains temporary libtool files.
  19076. objdir=$objdir
  19077.  
  19078. # How to create reloadable object files.
  19079. reload_flag=$lt_reload_flag
  19080. reload_cmds=$lt_reload_cmds
  19081.  
  19082. # How to pass a linker flag through the compiler.
  19083. wl=$lt_lt_prog_compiler_wl_RC
  19084.  
  19085. # Object file suffix (normally "o").
  19086. objext="$ac_objext"
  19087.  
  19088. # Old archive suffix (normally "a").
  19089. libext="$libext"
  19090.  
  19091. # Shared library suffix (normally ".so").
  19092. shrext_cmds='$shrext_cmds'
  19093.  
  19094. # Executable file suffix (normally "").
  19095. exeext="$exeext"
  19096.  
  19097. # Additional compiler flags for building library objects.
  19098. pic_flag=$lt_lt_prog_compiler_pic_RC
  19099. pic_mode=$pic_mode
  19100.  
  19101. # What is the maximum length of a command?
  19102. max_cmd_len=$lt_cv_sys_max_cmd_len
  19103.  
  19104. # Does compiler simultaneously support -c and -o options?
  19105. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  19106.  
  19107. # Must we lock files when doing compilation ?
  19108. need_locks=$lt_need_locks
  19109.  
  19110. # Do we need the lib prefix for modules?
  19111. need_lib_prefix=$need_lib_prefix
  19112.  
  19113. # Do we need a version for libraries?
  19114. need_version=$need_version
  19115.  
  19116. # Whether dlopen is supported.
  19117. dlopen_support=$enable_dlopen
  19118.  
  19119. # Whether dlopen of programs is supported.
  19120. dlopen_self=$enable_dlopen_self
  19121.  
  19122. # Whether dlopen of statically linked programs is supported.
  19123. dlopen_self_static=$enable_dlopen_self_static
  19124.  
  19125. # Compiler flag to prevent dynamic linking.
  19126. link_static_flag=$lt_lt_prog_compiler_static_RC
  19127.  
  19128. # Compiler flag to turn off builtin functions.
  19129. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  19130.  
  19131. # Compiler flag to allow reflexive dlopens.
  19132. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  19133.  
  19134. # Compiler flag to generate shared objects directly from archives.
  19135. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  19136.  
  19137. # Compiler flag to generate thread-safe objects.
  19138. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  19139.  
  19140. # Library versioning type.
  19141. version_type=$version_type
  19142.  
  19143. # Format of library name prefix.
  19144. libname_spec=$lt_libname_spec
  19145.  
  19146. # List of archive names.  First name is the real one, the rest are links.
  19147. # The last name is the one that the linker finds with -lNAME.
  19148. library_names_spec=$lt_library_names_spec
  19149.  
  19150. # The coded name of the library, if different from the real name.
  19151. soname_spec=$lt_soname_spec
  19152.  
  19153. # Commands used to build and install an old-style archive.
  19154. RANLIB=$lt_RANLIB
  19155. old_archive_cmds=$lt_old_archive_cmds_RC
  19156. old_postinstall_cmds=$lt_old_postinstall_cmds
  19157. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  19158.  
  19159. # Create an old-style archive from a shared archive.
  19160. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  19161.  
  19162. # Create a temporary old-style archive to link instead of a shared archive.
  19163. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  19164.  
  19165. # Commands used to build and install a shared archive.
  19166. archive_cmds=$lt_archive_cmds_RC
  19167. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  19168. postinstall_cmds=$lt_postinstall_cmds
  19169. postuninstall_cmds=$lt_postuninstall_cmds
  19170.  
  19171. # Commands used to build a loadable module (assumed same as above if empty)
  19172. module_cmds=$lt_module_cmds_RC
  19173. module_expsym_cmds=$lt_module_expsym_cmds_RC
  19174.  
  19175. # Commands to strip libraries.
  19176. old_striplib=$lt_old_striplib
  19177. striplib=$lt_striplib
  19178.  
  19179. # Dependencies to place before the objects being linked to create a
  19180. # shared library.
  19181. predep_objects=$lt_predep_objects_RC
  19182.  
  19183. # Dependencies to place after the objects being linked to create a
  19184. # shared library.
  19185. postdep_objects=$lt_postdep_objects_RC
  19186.  
  19187. # Dependencies to place before the objects being linked to create a
  19188. # shared library.
  19189. predeps=$lt_predeps_RC
  19190.  
  19191. # Dependencies to place after the objects being linked to create a
  19192. # shared library.
  19193. postdeps=$lt_postdeps_RC
  19194.  
  19195. # The library search path used internally by the compiler when linking
  19196. # a shared library.
  19197. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  19198.  
  19199. # Method to check whether dependent libraries are shared objects.
  19200. deplibs_check_method=$lt_deplibs_check_method
  19201.  
  19202. # Command to use when deplibs_check_method == file_magic.
  19203. file_magic_cmd=$lt_file_magic_cmd
  19204.  
  19205. # Flag that allows shared libraries with undefined symbols to be built.
  19206. allow_undefined_flag=$lt_allow_undefined_flag_RC
  19207.  
  19208. # Flag that forces no undefined symbols.
  19209. no_undefined_flag=$lt_no_undefined_flag_RC
  19210.  
  19211. # Commands used to finish a libtool library installation in a directory.
  19212. finish_cmds=$lt_finish_cmds
  19213.  
  19214. # Same as above, but a single script fragment to be evaled but not shown.
  19215. finish_eval=$lt_finish_eval
  19216.  
  19217. # Take the output of nm and produce a listing of raw symbols and C names.
  19218. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  19219.  
  19220. # Transform the output of nm in a proper C declaration
  19221. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  19222.  
  19223. # Transform the output of nm in a C name address pair
  19224. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  19225.  
  19226. # This is the shared library runtime path variable.
  19227. runpath_var=$runpath_var
  19228.  
  19229. # This is the shared library path variable.
  19230. shlibpath_var=$shlibpath_var
  19231.  
  19232. # Is shlibpath searched before the hard-coded library search path?
  19233. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  19234.  
  19235. # How to hardcode a shared library path into an executable.
  19236. hardcode_action=$hardcode_action_RC
  19237.  
  19238. # Whether we should hardcode library paths into libraries.
  19239. hardcode_into_libs=$hardcode_into_libs
  19240.  
  19241. # Flag to hardcode \$libdir into a binary during linking.
  19242. # This must work even if \$libdir does not exist.
  19243. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  19244.  
  19245. # If ld is used when linking, flag to hardcode \$libdir into
  19246. # a binary during linking. This must work even if \$libdir does
  19247. # not exist.
  19248. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  19249.  
  19250. # Whether we need a single -rpath flag with a separated argument.
  19251. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  19252.  
  19253. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  19254. # resulting binary.
  19255. hardcode_direct=$hardcode_direct_RC
  19256.  
  19257. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  19258. # resulting binary.
  19259. hardcode_minus_L=$hardcode_minus_L_RC
  19260.  
  19261. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  19262. # the resulting binary.
  19263. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  19264.  
  19265. # Set to yes if building a shared library automatically hardcodes DIR into the library
  19266. # and all subsequent libraries and executables linked against it.
  19267. hardcode_automatic=$hardcode_automatic_RC
  19268.  
  19269. # Variables whose values should be saved in libtool wrapper scripts and
  19270. # restored at relink time.
  19271. variables_saved_for_relink="$variables_saved_for_relink"
  19272.  
  19273. # Whether libtool must link a program against all its dependency libraries.
  19274. link_all_deplibs=$link_all_deplibs_RC
  19275.  
  19276. # Compile-time system search path for libraries
  19277. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  19278.  
  19279. # Run-time system search path for libraries
  19280. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  19281.  
  19282. # Fix the shell variable \$srcfile for the compiler.
  19283. fix_srcfile_path="$fix_srcfile_path_RC"
  19284.  
  19285. # Set to yes if exported symbols are required.
  19286. always_export_symbols=$always_export_symbols_RC
  19287.  
  19288. # The commands to list exported symbols.
  19289. export_symbols_cmds=$lt_export_symbols_cmds_RC
  19290.  
  19291. # The commands to extract the exported symbol list from a shared archive.
  19292. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  19293.  
  19294. # Symbols that should not be listed in the preloaded symbols.
  19295. exclude_expsyms=$lt_exclude_expsyms_RC
  19296.  
  19297. # Symbols that must always be exported.
  19298. include_expsyms=$lt_include_expsyms_RC
  19299.  
  19300. # ### END LIBTOOL TAG CONFIG: $tagname
  19301.  
  19302. __EOF__
  19303.  
  19304.  
  19305. else
  19306.   # If there is no Makefile yet, we rely on a make rule to execute
  19307.   # `config.status --recheck' to rerun these tests and create the
  19308.   # libtool script then.
  19309.   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  19310.   if test -f "$ltmain_in"; then
  19311.     test -f Makefile && make "$ltmain"
  19312.   fi
  19313. fi
  19314.  
  19315.  
  19316. ac_ext=c
  19317. ac_cpp='$CPP $CPPFLAGS'
  19318. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19319. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19320. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19321.  
  19322. CC="$lt_save_CC"
  19323.  
  19324.     ;;
  19325.  
  19326.       *)
  19327.     { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  19328. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  19329.    { (exit 1); exit 1; }; }
  19330.     ;;
  19331.       esac
  19332.  
  19333.       # Append the new tag name to the list of available tags.
  19334.       if test -n "$tagname" ; then
  19335.       available_tags="$available_tags $tagname"
  19336.     fi
  19337.     fi
  19338.   done
  19339.   IFS="$lt_save_ifs"
  19340.  
  19341.   # Now substitute the updated list of available tags.
  19342.   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  19343.     mv "${ofile}T" "$ofile"
  19344.     chmod +x "$ofile"
  19345.   else
  19346.     rm -f "${ofile}T"
  19347.     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  19348. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  19349.    { (exit 1); exit 1; }; }
  19350.   fi
  19351. fi
  19352.  
  19353.  
  19354.  
  19355. # This can be used to rebuild libtool when needed
  19356. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  19357.  
  19358. # Always use our own libtool.
  19359. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  19360.  
  19361. # Prevent multiple expansion
  19362.  
  19363.  
  19364.  
  19365.  
  19366.  
  19367.  
  19368.  
  19369.  
  19370.  
  19371.  
  19372.  
  19373.  
  19374.  
  19375.  
  19376.  
  19377.  
  19378.  
  19379.  
  19380.  
  19381.  
  19382.  
  19383. # By default we simply use the C compiler to build assembly code.
  19384.  
  19385. : ${CCAS='$(CC)'}
  19386. # Set ASFLAGS if not already set.
  19387. : ${CCASFLAGS='$(CFLAGS)'}
  19388.  
  19389.  
  19390.  
  19391. echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  19392. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
  19393.     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  19394. if test "${enable_maintainer_mode+set}" = set; then
  19395.   enableval="$enable_maintainer_mode"
  19396.   USE_MAINTAINER_MODE=$enableval
  19397. else
  19398.   USE_MAINTAINER_MODE=no
  19399. fi;
  19400.   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  19401. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
  19402.  
  19403.  
  19404. if test $USE_MAINTAINER_MODE = yes; then
  19405.   MAINTAINER_MODE_TRUE=
  19406.   MAINTAINER_MODE_FALSE='#'
  19407. else
  19408.   MAINTAINER_MODE_TRUE='#'
  19409.   MAINTAINER_MODE_FALSE=
  19410. fi
  19411.  
  19412.   MAINT=$MAINTAINER_MODE_TRUE
  19413.  
  19414.  
  19415.  
  19416.  
  19417. ###########################
  19418. # Check target architecture
  19419. ###########################
  19420.  
  19421. echo "$as_me:$LINENO: checking for target architecture" >&5
  19422. echo $ECHO_N "checking for target architecture... $ECHO_C" >&6
  19423. case x"$target" in
  19424.   xNONE | x)
  19425.     target_or_host="$host" ;;
  19426.   *)
  19427.     target_or_host="$target" ;;
  19428. esac
  19429. echo "$as_me:$LINENO: result: $target_or_host" >&5
  19430. echo "${ECHO_T}$target_or_host" >&6
  19431.  
  19432. case "$target_or_host" in
  19433.   i*86-*-*)
  19434.     have_x86=yes
  19435.  
  19436. cat >>confdefs.h <<\_ACEOF
  19437. #define ARCH_X86 1
  19438. _ACEOF
  19439.  
  19440.     ;;
  19441.   x86_64-*-*)
  19442.     have_x86=yes
  19443.  
  19444. cat >>confdefs.h <<\_ACEOF
  19445. #define ARCH_X86 1
  19446. _ACEOF
  19447.  
  19448.  
  19449. cat >>confdefs.h <<\_ACEOF
  19450. #define ARCH_X86_64 1
  19451. _ACEOF
  19452.  
  19453.     ;;
  19454.   ppc-*-linux* | powerpc-*)
  19455.     have_ppc=yes
  19456.  
  19457. cat >>confdefs.h <<\_ACEOF
  19458. #define ARCH_PPC 1
  19459. _ACEOF
  19460.  
  19461.     ;;
  19462.   *)
  19463.     ;;
  19464. esac
  19465.  
  19466.  
  19467. #################
  19468. # Check for Win32
  19469. #################
  19470.  
  19471. echo "$as_me:$LINENO: checking for some Win32 platform" >&5
  19472. echo $ECHO_N "checking for some Win32 platform... $ECHO_C" >&6
  19473. case "$target_or_host" in
  19474.   *-*-mingw* | *-*-cygwin*)
  19475.     platform_win32=yes
  19476.     ;;
  19477.   *)
  19478.     platform_win32=no
  19479.     ;;
  19480. esac
  19481. echo "$as_me:$LINENO: result: $platform_win32" >&5
  19482. echo "${ECHO_T}$platform_win32" >&6
  19483.  
  19484.  
  19485. if test "$platform_win32" = "yes"; then
  19486.   PLATFORM_WIN32_TRUE=
  19487.   PLATFORM_WIN32_FALSE='#'
  19488. else
  19489.   PLATFORM_WIN32_TRUE='#'
  19490.   PLATFORM_WIN32_FALSE=
  19491. fi
  19492.  
  19493.  
  19494. echo "$as_me:$LINENO: checking for native Win32" >&5
  19495. echo $ECHO_N "checking for native Win32... $ECHO_C" >&6
  19496. case "$target_or_host" in
  19497.   *-*-mingw*)
  19498.     os_win32=yes
  19499.     PATHSEP=';'
  19500.     ;;
  19501.   *)
  19502.     os_win32=no
  19503.     PATHSEP=':'
  19504.     ;;
  19505. esac
  19506. echo "$as_me:$LINENO: result: $os_win32" >&5
  19507. echo "${ECHO_T}$os_win32" >&6
  19508.  
  19509.  
  19510.  
  19511. if test "$os_win32" = "yes"; then
  19512.   OS_WIN32_TRUE=
  19513.   OS_WIN32_FALSE='#'
  19514. else
  19515.   OS_WIN32_TRUE='#'
  19516.   OS_WIN32_FALSE=
  19517. fi
  19518.  
  19519.  
  19520.  
  19521. if test "$os_win32" != "yes"; then
  19522.   OS_UNIX_TRUE=
  19523.   OS_UNIX_FALSE='#'
  19524. else
  19525.   OS_UNIX_TRUE='#'
  19526.   OS_UNIX_FALSE=
  19527. fi
  19528.  
  19529.  
  19530. if test "$os_win32" = "yes"; then
  19531.   # Extract the first word of "lib.exe", so it can be a program name with args.
  19532. set dummy lib.exe; ac_word=$2
  19533. echo "$as_me:$LINENO: checking for $ac_word" >&5
  19534. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19535. if test "${ac_cv_prog_ms_librarian+set}" = set; then
  19536.   echo $ECHO_N "(cached) $ECHO_C" >&6
  19537. else
  19538.   if test -n "$ms_librarian"; then
  19539.   ac_cv_prog_ms_librarian="$ms_librarian" # Let the user override the test.
  19540. else
  19541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19542. for as_dir in $PATH
  19543. do
  19544.   IFS=$as_save_IFS
  19545.   test -z "$as_dir" && as_dir=.
  19546.   for ac_exec_ext in '' $ac_executable_extensions; do
  19547.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19548.     ac_cv_prog_ms_librarian="yes"
  19549.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19550.     break 2
  19551.   fi
  19552. done
  19553. done
  19554.  
  19555.   test -z "$ac_cv_prog_ms_librarian" && ac_cv_prog_ms_librarian="no"
  19556. fi
  19557. fi
  19558. ms_librarian=$ac_cv_prog_ms_librarian
  19559. if test -n "$ms_librarian"; then
  19560.   echo "$as_me:$LINENO: result: $ms_librarian" >&5
  19561. echo "${ECHO_T}$ms_librarian" >&6
  19562. else
  19563.   echo "$as_me:$LINENO: result: no" >&5
  19564. echo "${ECHO_T}no" >&6
  19565. fi
  19566.  
  19567.   if test -n "$ac_tool_prefix"; then
  19568.   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  19569. set dummy ${ac_tool_prefix}windres; ac_word=$2
  19570. echo "$as_me:$LINENO: checking for $ac_word" >&5
  19571. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19572. if test "${ac_cv_prog_WINDRES+set}" = set; then
  19573.   echo $ECHO_N "(cached) $ECHO_C" >&6
  19574. else
  19575.   if test -n "$WINDRES"; then
  19576.   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  19577. else
  19578. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19579. for as_dir in $PATH
  19580. do
  19581.   IFS=$as_save_IFS
  19582.   test -z "$as_dir" && as_dir=.
  19583.   for ac_exec_ext in '' $ac_executable_extensions; do
  19584.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19585.     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  19586.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19587.     break 2
  19588.   fi
  19589. done
  19590. done
  19591.  
  19592. fi
  19593. fi
  19594. WINDRES=$ac_cv_prog_WINDRES
  19595. if test -n "$WINDRES"; then
  19596.   echo "$as_me:$LINENO: result: $WINDRES" >&5
  19597. echo "${ECHO_T}$WINDRES" >&6
  19598. else
  19599.   echo "$as_me:$LINENO: result: no" >&5
  19600. echo "${ECHO_T}no" >&6
  19601. fi
  19602.  
  19603. fi
  19604. if test -z "$ac_cv_prog_WINDRES"; then
  19605.   ac_ct_WINDRES=$WINDRES
  19606.   # Extract the first word of "windres", so it can be a program name with args.
  19607. set dummy windres; ac_word=$2
  19608. echo "$as_me:$LINENO: checking for $ac_word" >&5
  19609. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19610. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
  19611.   echo $ECHO_N "(cached) $ECHO_C" >&6
  19612. else
  19613.   if test -n "$ac_ct_WINDRES"; then
  19614.   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  19615. else
  19616. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19617. for as_dir in $PATH
  19618. do
  19619.   IFS=$as_save_IFS
  19620.   test -z "$as_dir" && as_dir=.
  19621.   for ac_exec_ext in '' $ac_executable_extensions; do
  19622.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19623.     ac_cv_prog_ac_ct_WINDRES="windres"
  19624.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19625.     break 2
  19626.   fi
  19627. done
  19628. done
  19629.  
  19630.   test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES=":"
  19631. fi
  19632. fi
  19633. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  19634. if test -n "$ac_ct_WINDRES"; then
  19635.   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
  19636. echo "${ECHO_T}$ac_ct_WINDRES" >&6
  19637. else
  19638.   echo "$as_me:$LINENO: result: no" >&5
  19639. echo "${ECHO_T}no" >&6
  19640. fi
  19641.  
  19642.   WINDRES=$ac_ct_WINDRES
  19643. else
  19644.   WINDRES="$ac_cv_prog_WINDRES"
  19645. fi
  19646.  
  19647. else
  19648.   WINDRES=":"
  19649. fi
  19650.  
  19651.  
  19652.  
  19653. if test x$ms_librarian = xyes; then
  19654.   MS_LIB_AVAILABLE_TRUE=
  19655.   MS_LIB_AVAILABLE_FALSE='#'
  19656. else
  19657.   MS_LIB_AVAILABLE_TRUE='#'
  19658.   MS_LIB_AVAILABLE_FALSE=
  19659. fi
  19660.  
  19661.  
  19662.  
  19663. if test "x$WINDRES" != "x:"; then
  19664.   HAVE_WINDRES_TRUE=
  19665.   HAVE_WINDRES_FALSE='#'
  19666. else
  19667.   HAVE_WINDRES_TRUE='#'
  19668.   HAVE_WINDRES_FALSE=
  19669. fi
  19670.  
  19671.  
  19672.  
  19673.  
  19674. ###############
  19675. # Generic stuff
  19676. ###############
  19677.  
  19678.  
  19679.         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  19680. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
  19681. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  19682.   echo $ECHO_N "(cached) $ECHO_C" >&6
  19683. else
  19684.   ac_check_lib_save_LIBS=$LIBS
  19685. LIBS="-lcposix  $LIBS"
  19686. cat >conftest.$ac_ext <<_ACEOF
  19687. /* confdefs.h.  */
  19688. _ACEOF
  19689. cat confdefs.h >>conftest.$ac_ext
  19690. cat >>conftest.$ac_ext <<_ACEOF
  19691. /* end confdefs.h.  */
  19692.  
  19693. /* Override any gcc2 internal prototype to avoid an error.  */
  19694. #ifdef __cplusplus
  19695. extern "C"
  19696. #endif
  19697. /* We use char because int might match the return type of a gcc2
  19698.    builtin and then its argument prototype would still apply.  */
  19699. char strerror ();
  19700. int
  19701. main ()
  19702. {
  19703. strerror ();
  19704.   ;
  19705.   return 0;
  19706. }
  19707. _ACEOF
  19708. rm -f conftest.$ac_objext conftest$ac_exeext
  19709. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19710.   (eval $ac_link) 2>conftest.er1
  19711.   ac_status=$?
  19712.   grep -v '^ *+' conftest.er1 >conftest.err
  19713.   rm -f conftest.er1
  19714.   cat conftest.err >&5
  19715.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19716.   (exit $ac_status); } &&
  19717.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  19718.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19719.   (eval $ac_try) 2>&5
  19720.   ac_status=$?
  19721.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19722.   (exit $ac_status); }; } &&
  19723.      { ac_try='test -s conftest$ac_exeext'
  19724.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19725.   (eval $ac_try) 2>&5
  19726.   ac_status=$?
  19727.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19728.   (exit $ac_status); }; }; then
  19729.   ac_cv_lib_cposix_strerror=yes
  19730. else
  19731.   echo "$as_me: failed program was:" >&5
  19732. sed 's/^/| /' conftest.$ac_ext >&5
  19733.  
  19734. ac_cv_lib_cposix_strerror=no
  19735. fi
  19736. rm -f conftest.err conftest.$ac_objext \
  19737.       conftest$ac_exeext conftest.$ac_ext
  19738. LIBS=$ac_check_lib_save_LIBS
  19739. fi
  19740. echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  19741. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
  19742. if test $ac_cv_lib_cposix_strerror = yes; then
  19743.   LIBS="$LIBS -lcposix"
  19744. fi
  19745.  
  19746.  
  19747.  
  19748.  
  19749.  
  19750.  
  19751. echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
  19752. echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
  19753. if test "${am_cv_prog_cc_stdc+set}" = set; then
  19754.   echo $ECHO_N "(cached) $ECHO_C" >&6
  19755. else
  19756.   am_cv_prog_cc_stdc=no
  19757. ac_save_CC="$CC"
  19758. # Don't try gcc -ansi; that turns off useful extensions and
  19759. # breaks some systems' header files.
  19760. # AIX            -qlanglvl=ansi
  19761. # Ultrix and OSF/1    -std1
  19762. # HP-UX 10.20 and later    -Ae
  19763. # HP-UX older versions    -Aa -D_HPUX_SOURCE
  19764. # SVR4            -Xc -D__EXTENSIONS__
  19765. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  19766. do
  19767.   CC="$ac_save_CC $ac_arg"
  19768.   cat >conftest.$ac_ext <<_ACEOF
  19769. /* confdefs.h.  */
  19770. _ACEOF
  19771. cat confdefs.h >>conftest.$ac_ext
  19772. cat >>conftest.$ac_ext <<_ACEOF
  19773. /* end confdefs.h.  */
  19774. #include <stdarg.h>
  19775. #include <stdio.h>
  19776. #include <sys/types.h>
  19777. #include <sys/stat.h>
  19778. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  19779. struct buf { int x; };
  19780. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  19781. static char *e (p, i)
  19782.      char **p;
  19783.      int i;
  19784. {
  19785.   return p[i];
  19786. }
  19787. static char *f (char * (*g) (char **, int), char **p, ...)
  19788. {
  19789.   char *s;
  19790.   va_list v;
  19791.   va_start (v,p);
  19792.   s = g (p, va_arg (v,int));
  19793.   va_end (v);
  19794.   return s;
  19795. }
  19796. int test (int i, double x);
  19797. struct s1 {int (*f) (int a);};
  19798. struct s2 {int (*f) (double a);};
  19799. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  19800. int argc;
  19801. char **argv;
  19802.  
  19803. int
  19804. main ()
  19805. {
  19806.  
  19807. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  19808.  
  19809.   ;
  19810.   return 0;
  19811. }
  19812. _ACEOF
  19813. rm -f conftest.$ac_objext
  19814. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19815.   (eval $ac_compile) 2>conftest.er1
  19816.   ac_status=$?
  19817.   grep -v '^ *+' conftest.er1 >conftest.err
  19818.   rm -f conftest.er1
  19819.   cat conftest.err >&5
  19820.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19821.   (exit $ac_status); } &&
  19822.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  19823.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19824.   (eval $ac_try) 2>&5
  19825.   ac_status=$?
  19826.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19827.   (exit $ac_status); }; } &&
  19828.      { ac_try='test -s conftest.$ac_objext'
  19829.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19830.   (eval $ac_try) 2>&5
  19831.   ac_status=$?
  19832.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19833.   (exit $ac_status); }; }; then
  19834.   am_cv_prog_cc_stdc="$ac_arg"; break
  19835. else
  19836.   echo "$as_me: failed program was:" >&5
  19837. sed 's/^/| /' conftest.$ac_ext >&5
  19838.  
  19839. fi
  19840. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19841. done
  19842. CC="$ac_save_CC"
  19843.  
  19844. fi
  19845.  
  19846. if test -z "$am_cv_prog_cc_stdc"; then
  19847.   echo "$as_me:$LINENO: result: none needed" >&5
  19848. echo "${ECHO_T}none needed" >&6
  19849. else
  19850.   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
  19851. echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
  19852. fi
  19853. case "x$am_cv_prog_cc_stdc" in
  19854.   x|xno) ;;
  19855.   *) CC="$CC $am_cv_prog_cc_stdc" ;;
  19856. esac
  19857.  
  19858. # Find a good install program.  We prefer a C program (faster),
  19859. # so one script is as good as another.  But avoid the broken or
  19860. # incompatible versions:
  19861. # SysV /etc/install, /usr/sbin/install
  19862. # SunOS /usr/etc/install
  19863. # IRIX /sbin/install
  19864. # AIX /bin/install
  19865. # AmigaOS /C/install, which installs bootblocks on floppy discs
  19866. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  19867. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  19868. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  19869. # OS/2's system install, which has a completely different semantic
  19870. # ./install, which can be erroneously created by make from ./install.sh.
  19871. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  19872. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  19873. if test -z "$INSTALL"; then
  19874. if test "${ac_cv_path_install+set}" = set; then
  19875.   echo $ECHO_N "(cached) $ECHO_C" >&6
  19876. else
  19877.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19878. for as_dir in $PATH
  19879. do
  19880.   IFS=$as_save_IFS
  19881.   test -z "$as_dir" && as_dir=.
  19882.   # Account for people who put trailing slashes in PATH elements.
  19883. case $as_dir/ in
  19884.   ./ | .// | /cC/* | \
  19885.   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  19886.   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  19887.   /usr/ucb/* ) ;;
  19888.   *)
  19889.     # OSF1 and SCO ODT 3.0 have their own names for install.
  19890.     # Don't use installbsd from OSF since it installs stuff as root
  19891.     # by default.
  19892.     for ac_prog in ginstall scoinst install; do
  19893.       for ac_exec_ext in '' $ac_executable_extensions; do
  19894.     if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  19895.       if test $ac_prog = install &&
  19896.         grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  19897.         # AIX install.  It has an incompatible calling convention.
  19898.         :
  19899.       elif test $ac_prog = install &&
  19900.         grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  19901.         # program-specific install script used by HP pwplus--don't use.
  19902.         :
  19903.       else
  19904.         ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  19905.         break 3
  19906.       fi
  19907.     fi
  19908.       done
  19909.     done
  19910.     ;;
  19911. esac
  19912. done
  19913.  
  19914.  
  19915. fi
  19916.   if test "${ac_cv_path_install+set}" = set; then
  19917.     INSTALL=$ac_cv_path_install
  19918.   else
  19919.     # As a last resort, use the slow shell script.  We don't cache a
  19920.     # path for INSTALL within a source directory, because that will
  19921.     # break other packages using the cache if that directory is
  19922.     # removed, or if the path is relative.
  19923.     INSTALL=$ac_install_sh
  19924.   fi
  19925. fi
  19926. echo "$as_me:$LINENO: result: $INSTALL" >&5
  19927. echo "${ECHO_T}$INSTALL" >&6
  19928.  
  19929. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  19930. # It thinks the first close brace ends the variable substitution.
  19931. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  19932.  
  19933. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  19934.  
  19935. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  19936.  
  19937. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  19938. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  19939. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  19940. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  19941.   echo $ECHO_N "(cached) $ECHO_C" >&6
  19942. else
  19943.   cat >conftest.make <<\_ACEOF
  19944. all:
  19945.     @echo 'ac_maketemp="$(MAKE)"'
  19946. _ACEOF
  19947. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  19948. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  19949. if test -n "$ac_maketemp"; then
  19950.   eval ac_cv_prog_make_${ac_make}_set=yes
  19951. else
  19952.   eval ac_cv_prog_make_${ac_make}_set=no
  19953. fi
  19954. rm -f conftest.make
  19955. fi
  19956. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  19957.   echo "$as_me:$LINENO: result: yes" >&5
  19958. echo "${ECHO_T}yes" >&6
  19959.   SET_MAKE=
  19960. else
  19961.   echo "$as_me:$LINENO: result: no" >&5
  19962. echo "${ECHO_T}no" >&6
  19963.   SET_MAKE="MAKE=${MAKE-make}"
  19964. fi
  19965.  
  19966.  
  19967. # Check whether --enable-largefile or --disable-largefile was given.
  19968. if test "${enable_largefile+set}" = set; then
  19969.   enableval="$enable_largefile"
  19970.  
  19971. fi;
  19972. if test "$enable_largefile" != no; then
  19973.  
  19974.   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  19975. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
  19976. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  19977.   echo $ECHO_N "(cached) $ECHO_C" >&6
  19978. else
  19979.   ac_cv_sys_largefile_CC=no
  19980.      if test "$GCC" != yes; then
  19981.        ac_save_CC=$CC
  19982.        while :; do
  19983.           # IRIX 6.2 and later do not support large files by default,
  19984.           # so use the C compiler's -n32 option if that helps.
  19985.      cat >conftest.$ac_ext <<_ACEOF
  19986. /* confdefs.h.  */
  19987. _ACEOF
  19988. cat confdefs.h >>conftest.$ac_ext
  19989. cat >>conftest.$ac_ext <<_ACEOF
  19990. /* end confdefs.h.  */
  19991. #include <sys/types.h>
  19992.  /* Check that off_t can represent 2**63 - 1 correctly.
  19993.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  19994.     since some C++ compilers masquerading as C compilers
  19995.     incorrectly reject 9223372036854775807.  */
  19996. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19997.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19998.                && LARGE_OFF_T % 2147483647 == 1)
  19999.               ? 1 : -1];
  20000. int
  20001. main ()
  20002. {
  20003.  
  20004.   ;
  20005.   return 0;
  20006. }
  20007. _ACEOF
  20008.           rm -f conftest.$ac_objext
  20009. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20010.   (eval $ac_compile) 2>conftest.er1
  20011.   ac_status=$?
  20012.   grep -v '^ *+' conftest.er1 >conftest.err
  20013.   rm -f conftest.er1
  20014.   cat conftest.err >&5
  20015.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20016.   (exit $ac_status); } &&
  20017.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  20018.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20019.   (eval $ac_try) 2>&5
  20020.   ac_status=$?
  20021.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20022.   (exit $ac_status); }; } &&
  20023.      { ac_try='test -s conftest.$ac_objext'
  20024.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20025.   (eval $ac_try) 2>&5
  20026.   ac_status=$?
  20027.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20028.   (exit $ac_status); }; }; then
  20029.   break
  20030. else
  20031.   echo "$as_me: failed program was:" >&5
  20032. sed 's/^/| /' conftest.$ac_ext >&5
  20033.  
  20034. fi
  20035. rm -f conftest.err conftest.$ac_objext
  20036.           CC="$CC -n32"
  20037.           rm -f conftest.$ac_objext
  20038. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20039.   (eval $ac_compile) 2>conftest.er1
  20040.   ac_status=$?
  20041.   grep -v '^ *+' conftest.er1 >conftest.err
  20042.   rm -f conftest.er1
  20043.   cat conftest.err >&5
  20044.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20045.   (exit $ac_status); } &&
  20046.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  20047.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20048.   (eval $ac_try) 2>&5
  20049.   ac_status=$?
  20050.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20051.   (exit $ac_status); }; } &&
  20052.      { ac_try='test -s conftest.$ac_objext'
  20053.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20054.   (eval $ac_try) 2>&5
  20055.   ac_status=$?
  20056.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20057.   (exit $ac_status); }; }; then
  20058.   ac_cv_sys_largefile_CC=' -n32'; break
  20059. else
  20060.   echo "$as_me: failed program was:" >&5
  20061. sed 's/^/| /' conftest.$ac_ext >&5
  20062.  
  20063. fi
  20064. rm -f conftest.err conftest.$ac_objext
  20065.      break
  20066.        done
  20067.        CC=$ac_save_CC
  20068.        rm -f conftest.$ac_ext
  20069.     fi
  20070. fi
  20071. echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  20072. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
  20073.   if test "$ac_cv_sys_largefile_CC" != no; then
  20074.     CC=$CC$ac_cv_sys_largefile_CC
  20075.   fi
  20076.  
  20077.   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  20078. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
  20079. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  20080.   echo $ECHO_N "(cached) $ECHO_C" >&6
  20081. else
  20082.   while :; do
  20083.   ac_cv_sys_file_offset_bits=no
  20084.   cat >conftest.$ac_ext <<_ACEOF
  20085. /* confdefs.h.  */
  20086. _ACEOF
  20087. cat confdefs.h >>conftest.$ac_ext
  20088. cat >>conftest.$ac_ext <<_ACEOF
  20089. /* end confdefs.h.  */
  20090. #include <sys/types.h>
  20091.  /* Check that off_t can represent 2**63 - 1 correctly.
  20092.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20093.     since some C++ compilers masquerading as C compilers
  20094.     incorrectly reject 9223372036854775807.  */
  20095. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20096.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20097.                && LARGE_OFF_T % 2147483647 == 1)
  20098.               ? 1 : -1];
  20099. int
  20100. main ()
  20101. {
  20102.  
  20103.   ;
  20104.   return 0;
  20105. }
  20106. _ACEOF
  20107. rm -f conftest.$ac_objext
  20108. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20109.   (eval $ac_compile) 2>conftest.er1
  20110.   ac_status=$?
  20111.   grep -v '^ *+' conftest.er1 >conftest.err
  20112.   rm -f conftest.er1
  20113.   cat conftest.err >&5
  20114.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20115.   (exit $ac_status); } &&
  20116.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  20117.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20118.   (eval $ac_try) 2>&5
  20119.   ac_status=$?
  20120.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20121.   (exit $ac_status); }; } &&
  20122.      { ac_try='test -s conftest.$ac_objext'
  20123.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20124.   (eval $ac_try) 2>&5
  20125.   ac_status=$?
  20126.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20127.   (exit $ac_status); }; }; then
  20128.   break
  20129. else
  20130.   echo "$as_me: failed program was:" >&5
  20131. sed 's/^/| /' conftest.$ac_ext >&5
  20132.  
  20133. fi
  20134. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20135.   cat >conftest.$ac_ext <<_ACEOF
  20136. /* confdefs.h.  */
  20137. _ACEOF
  20138. cat confdefs.h >>conftest.$ac_ext
  20139. cat >>conftest.$ac_ext <<_ACEOF
  20140. /* end confdefs.h.  */
  20141. #define _FILE_OFFSET_BITS 64
  20142. #include <sys/types.h>
  20143.  /* Check that off_t can represent 2**63 - 1 correctly.
  20144.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20145.     since some C++ compilers masquerading as C compilers
  20146.     incorrectly reject 9223372036854775807.  */
  20147. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20148.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20149.                && LARGE_OFF_T % 2147483647 == 1)
  20150.               ? 1 : -1];
  20151. int
  20152. main ()
  20153. {
  20154.  
  20155.   ;
  20156.   return 0;
  20157. }
  20158. _ACEOF
  20159. rm -f conftest.$ac_objext
  20160. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20161.   (eval $ac_compile) 2>conftest.er1
  20162.   ac_status=$?
  20163.   grep -v '^ *+' conftest.er1 >conftest.err
  20164.   rm -f conftest.er1
  20165.   cat conftest.err >&5
  20166.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20167.   (exit $ac_status); } &&
  20168.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  20169.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20170.   (eval $ac_try) 2>&5
  20171.   ac_status=$?
  20172.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20173.   (exit $ac_status); }; } &&
  20174.      { ac_try='test -s conftest.$ac_objext'
  20175.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20176.   (eval $ac_try) 2>&5
  20177.   ac_status=$?
  20178.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20179.   (exit $ac_status); }; }; then
  20180.   ac_cv_sys_file_offset_bits=64; break
  20181. else
  20182.   echo "$as_me: failed program was:" >&5
  20183. sed 's/^/| /' conftest.$ac_ext >&5
  20184.  
  20185. fi
  20186. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20187.   break
  20188. done
  20189. fi
  20190. echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  20191. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
  20192. if test "$ac_cv_sys_file_offset_bits" != no; then
  20193.  
  20194. cat >>confdefs.h <<_ACEOF
  20195. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  20196. _ACEOF
  20197.  
  20198. fi
  20199. rm -f conftest*
  20200.   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  20201. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
  20202. if test "${ac_cv_sys_large_files+set}" = set; then
  20203.   echo $ECHO_N "(cached) $ECHO_C" >&6
  20204. else
  20205.   while :; do
  20206.   ac_cv_sys_large_files=no
  20207.   cat >conftest.$ac_ext <<_ACEOF
  20208. /* confdefs.h.  */
  20209. _ACEOF
  20210. cat confdefs.h >>conftest.$ac_ext
  20211. cat >>conftest.$ac_ext <<_ACEOF
  20212. /* end confdefs.h.  */
  20213. #include <sys/types.h>
  20214.  /* Check that off_t can represent 2**63 - 1 correctly.
  20215.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20216.     since some C++ compilers masquerading as C compilers
  20217.     incorrectly reject 9223372036854775807.  */
  20218. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20219.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20220.                && LARGE_OFF_T % 2147483647 == 1)
  20221.               ? 1 : -1];
  20222. int
  20223. main ()
  20224. {
  20225.  
  20226.   ;
  20227.   return 0;
  20228. }
  20229. _ACEOF
  20230. rm -f conftest.$ac_objext
  20231. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20232.   (eval $ac_compile) 2>conftest.er1
  20233.   ac_status=$?
  20234.   grep -v '^ *+' conftest.er1 >conftest.err
  20235.   rm -f conftest.er1
  20236.   cat conftest.err >&5
  20237.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20238.   (exit $ac_status); } &&
  20239.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  20240.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20241.   (eval $ac_try) 2>&5
  20242.   ac_status=$?
  20243.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20244.   (exit $ac_status); }; } &&
  20245.      { ac_try='test -s conftest.$ac_objext'
  20246.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20247.   (eval $ac_try) 2>&5
  20248.   ac_status=$?
  20249.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20250.   (exit $ac_status); }; }; then
  20251.   break
  20252. else
  20253.   echo "$as_me: failed program was:" >&5
  20254. sed 's/^/| /' conftest.$ac_ext >&5
  20255.  
  20256. fi
  20257. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20258.   cat >conftest.$ac_ext <<_ACEOF
  20259. /* confdefs.h.  */
  20260. _ACEOF
  20261. cat confdefs.h >>conftest.$ac_ext
  20262. cat >>conftest.$ac_ext <<_ACEOF
  20263. /* end confdefs.h.  */
  20264. #define _LARGE_FILES 1
  20265. #include <sys/types.h>
  20266.  /* Check that off_t can represent 2**63 - 1 correctly.
  20267.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20268.     since some C++ compilers masquerading as C compilers
  20269.     incorrectly reject 9223372036854775807.  */
  20270. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20271.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20272.                && LARGE_OFF_T % 2147483647 == 1)
  20273.               ? 1 : -1];
  20274. int
  20275. main ()
  20276. {
  20277.  
  20278.   ;
  20279.   return 0;
  20280. }
  20281. _ACEOF
  20282. rm -f conftest.$ac_objext
  20283. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20284.   (eval $ac_compile) 2>conftest.er1
  20285.   ac_status=$?
  20286.   grep -v '^ *+' conftest.er1 >conftest.err
  20287.   rm -f conftest.er1
  20288.   cat conftest.err >&5
  20289.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20290.   (exit $ac_status); } &&
  20291.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  20292.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20293.   (eval $ac_try) 2>&5
  20294.   ac_status=$?
  20295.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20296.   (exit $ac_status); }; } &&
  20297.      { ac_try='test -s conftest.$ac_objext'
  20298.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20299.   (eval $ac_try) 2>&5
  20300.   ac_status=$?
  20301.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20302.   (exit $ac_status); }; }; then
  20303.   ac_cv_sys_large_files=1; break
  20304. else
  20305.   echo "$as_me: failed program was:" >&5
  20306. sed 's/^/| /' conftest.$ac_ext >&5
  20307.  
  20308. fi
  20309. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20310.   break
  20311. done
  20312. fi
  20313. echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  20314. echo "${ECHO_T}$ac_cv_sys_large_files" >&6
  20315. if test "$ac_cv_sys_large_files" != no; then
  20316.  
  20317. cat >>confdefs.h <<_ACEOF
  20318. #define _LARGE_FILES $ac_cv_sys_large_files
  20319. _ACEOF
  20320.  
  20321. fi
  20322. rm -f conftest*
  20323. fi
  20324.  
  20325.  
  20326. echo "$as_me:$LINENO: checking whether to turn on debugging" >&5
  20327. echo $ECHO_N "checking whether to turn on debugging... $ECHO_C" >&6
  20328. # Check whether --enable-debug or --disable-debug was given.
  20329. if test "${enable_debug+set}" = set; then
  20330.   enableval="$enable_debug"
  20331.   if eval "test x$enable_debug = xyes"; then
  20332.                 DEBUGFLAG="-g"
  20333.               fi
  20334. fi;
  20335.  
  20336. if test -n "$DEBUGFLAG"; then
  20337.   echo "$as_me:$LINENO: result: yes" >&5
  20338. echo "${ECHO_T}yes" >&6
  20339.   CFLAGS="$DEBUGFLAG $CFLAGS"
  20340. else
  20341.   echo "$as_me:$LINENO: result: no" >&5
  20342. echo "${ECHO_T}no" >&6
  20343. fi
  20344.  
  20345. echo "$as_me:$LINENO: checking whether to turn on profiling" >&5
  20346. echo $ECHO_N "checking whether to turn on profiling... $ECHO_C" >&6
  20347. # Check whether --enable-profile or --disable-profile was given.
  20348. if test "${enable_profile+set}" = set; then
  20349.   enableval="$enable_profile"
  20350.   if eval "test x$enable_profile = xyes"; then
  20351.                 PROFFLAG="-pg"
  20352.               fi
  20353. fi;
  20354.  
  20355. if test -n "$PROFFLAG"; then
  20356.   echo "$as_me:$LINENO: result: yes" >&5
  20357. echo "${ECHO_T}yes" >&6
  20358.   CFLAGS="$PROFFLAG $CFLAGS"
  20359. else
  20360.   echo "$as_me:$LINENO: result: no" >&5
  20361. echo "${ECHO_T}no" >&6
  20362. fi
  20363.  
  20364. # Check whether --enable-ansi or --disable-ansi was given.
  20365. if test "${enable_ansi+set}" = set; then
  20366.   enableval="$enable_ansi"
  20367.  
  20368. else
  20369.   enable_ansi=no
  20370. fi;
  20371.  
  20372. if eval "test x$GCC = xyes"; then
  20373.   case " $CFLAGS " in
  20374.   *[\ \    ]-Wall[\ \    ]*) ;;
  20375.   *) CFLAGS="$CFLAGS -Wall" ;;
  20376.   esac
  20377.  
  20378.   if test "x$enable_ansi" = "xyes"; then
  20379.     case " $CFLAGS " in
  20380.     *[\ \    ]-ansi[\ \    ]*) ;;
  20381.     *) CFLAGS="$CFLAGS -ansi" ;;
  20382.     esac
  20383.  
  20384.     case " $CFLAGS " in
  20385.     *[\ \    ]-pedantic[\ \    ]*) ;;
  20386.     *) CFLAGS="$CFLAGS -pedantic" ;;
  20387.     esac
  20388.   fi
  20389. fi
  20390.  
  20391. # Ensure MSVC-compatible struct packing convention is used when
  20392. # compiling for Win32 with gcc.
  20393. # What flag to depends on gcc version: gcc3 uses "-mms-bitfields", while
  20394. # gcc2 uses "-fnative-struct".
  20395. if test x"$os_win32" = xyes; then
  20396.   if test x"$GCC" = xyes; then
  20397.     msnative_struct=''
  20398.     echo "$as_me:$LINENO: checking how to get MSVC-compatible struct packing" >&5
  20399. echo $ECHO_N "checking how to get MSVC-compatible struct packing... $ECHO_C" >&6
  20400.     if test -z "$ac_cv_prog_CC"; then
  20401.       our_gcc="$CC"
  20402.     else
  20403.       our_gcc="$ac_cv_prog_CC"
  20404.     fi
  20405.     case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
  20406.       2.)
  20407.     if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
  20408.       msnative_struct='-fnative-struct'
  20409.     fi
  20410.     ;;
  20411.       *)
  20412.     if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
  20413.       msnative_struct='-mms-bitfields'
  20414.     fi
  20415.     ;;
  20416.     esac
  20417.     if test x"$msnative_struct" = x ; then
  20418.       echo "$as_me:$LINENO: result: no way" >&5
  20419. echo "${ECHO_T}no way" >&6
  20420.       { echo "$as_me:$LINENO: WARNING: build will be incompatible with GTK+ DLLs" >&5
  20421. echo "$as_me: WARNING: build will be incompatible with GTK+ DLLs" >&2;}
  20422.     else
  20423.       CFLAGS="$CFLAGS $msnative_struct"
  20424.       echo "$as_me:$LINENO: result: ${msnative_struct}" >&5
  20425. echo "${ECHO_T}${msnative_struct}" >&6
  20426.     fi
  20427.   fi
  20428. fi
  20429.  
  20430. # Honor aclocal flags
  20431. ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
  20432.  
  20433.  
  20434.  
  20435.  
  20436.  
  20437.  
  20438.  
  20439. ac_header_dirent=no
  20440. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  20441.   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  20442. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  20443. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  20444. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20445.   echo $ECHO_N "(cached) $ECHO_C" >&6
  20446. else
  20447.   cat >conftest.$ac_ext <<_ACEOF
  20448. /* confdefs.h.  */
  20449. _ACEOF
  20450. cat confdefs.h >>conftest.$ac_ext
  20451. cat >>conftest.$ac_ext <<_ACEOF
  20452. /* end confdefs.h.  */
  20453. #include <sys/types.h>
  20454. #include <$ac_hdr>
  20455.  
  20456. int
  20457. main ()
  20458. {
  20459. if ((DIR *) 0)
  20460. return 0;
  20461.   ;
  20462.   return 0;
  20463. }
  20464. _ACEOF
  20465. rm -f conftest.$ac_objext
  20466. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20467.   (eval $ac_compile) 2>conftest.er1
  20468.   ac_status=$?
  20469.   grep -v '^ *+' conftest.er1 >conftest.err
  20470.   rm -f conftest.er1
  20471.   cat conftest.err >&5
  20472.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20473.   (exit $ac_status); } &&
  20474.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  20475.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20476.   (eval $ac_try) 2>&5
  20477.   ac_status=$?
  20478.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20479.   (exit $ac_status); }; } &&
  20480.      { ac_try='test -s conftest.$ac_objext'
  20481.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20482.   (eval $ac_try) 2>&5
  20483.   ac_status=$?
  20484.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20485.   (exit $ac_status); }; }; then
  20486.   eval "$as_ac_Header=yes"
  20487. else
  20488.   echo "$as_me: failed program was:" >&5
  20489. sed 's/^/| /' conftest.$ac_ext >&5
  20490.  
  20491. eval "$as_ac_Header=no"
  20492. fi
  20493. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20494. fi
  20495. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  20496. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  20497. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  20498.   cat >>confdefs.h <<_ACEOF
  20499. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  20500. _ACEOF
  20501.  
  20502. ac_header_dirent=$ac_hdr; break
  20503. fi
  20504.  
  20505. done
  20506. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  20507. if test $ac_header_dirent = dirent.h; then
  20508.   echo "$as_me:$LINENO: checking for library containing opendir" >&5
  20509. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  20510. if test "${ac_cv_search_opendir+set}" = set; then
  20511.   echo $ECHO_N "(cached) $ECHO_C" >&6
  20512. else
  20513.   ac_func_search_save_LIBS=$LIBS
  20514. ac_cv_search_opendir=no
  20515. cat >conftest.$ac_ext <<_ACEOF
  20516. /* confdefs.h.  */
  20517. _ACEOF
  20518. cat confdefs.h >>conftest.$ac_ext
  20519. cat >>conftest.$ac_ext <<_ACEOF
  20520. /* end confdefs.h.  */
  20521.  
  20522. /* Override any gcc2 internal prototype to avoid an error.  */
  20523. #ifdef __cplusplus
  20524. extern "C"
  20525. #endif
  20526. /* We use char because int might match the return type of a gcc2
  20527.    builtin and then its argument prototype would still apply.  */
  20528. char opendir ();
  20529. int
  20530. main ()
  20531. {
  20532. opendir ();
  20533.   ;
  20534.   return 0;
  20535. }
  20536. _ACEOF
  20537. rm -f conftest.$ac_objext conftest$ac_exeext
  20538. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20539.   (eval $ac_link) 2>conftest.er1
  20540.   ac_status=$?
  20541.   grep -v '^ *+' conftest.er1 >conftest.err
  20542.   rm -f conftest.er1
  20543.   cat conftest.err >&5
  20544.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20545.   (exit $ac_status); } &&
  20546.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  20547.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20548.   (eval $ac_try) 2>&5
  20549.   ac_status=$?
  20550.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20551.   (exit $ac_status); }; } &&
  20552.      { ac_try='test -s conftest$ac_exeext'
  20553.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20554.   (eval $ac_try) 2>&5
  20555.   ac_status=$?
  20556.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20557.   (exit $ac_status); }; }; then
  20558.   ac_cv_search_opendir="none required"
  20559. else
  20560.   echo "$as_me: failed program was:" >&5
  20561. sed 's/^/| /' conftest.$ac_ext >&5
  20562.  
  20563. fi
  20564. rm -f conftest.err conftest.$ac_objext \
  20565.       conftest$ac_exeext conftest.$ac_ext
  20566. if test "$ac_cv_search_opendir" = no; then
  20567.   for ac_lib in dir; do
  20568.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  20569.     cat >conftest.$ac_ext <<_ACEOF
  20570. /* confdefs.h.  */
  20571. _ACEOF
  20572. cat confdefs.h >>conftest.$ac_ext
  20573. cat >>conftest.$ac_ext <<_ACEOF
  20574. /* end confdefs.h.  */
  20575.  
  20576. /* Override any gcc2 internal prototype to avoid an error.  */
  20577. #ifdef __cplusplus
  20578. extern "C"
  20579. #endif
  20580. /* We use char because int might match the return type of a gcc2
  20581.    builtin and then its argument prototype would still apply.  */
  20582. char opendir ();
  20583. int
  20584. main ()
  20585. {
  20586. opendir ();
  20587.   ;
  20588.   return 0;
  20589. }
  20590. _ACEOF
  20591. rm -f conftest.$ac_objext conftest$ac_exeext
  20592. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20593.   (eval $ac_link) 2>conftest.er1
  20594.   ac_status=$?
  20595.   grep -v '^ *+' conftest.er1 >conftest.err
  20596.   rm -f conftest.er1
  20597.   cat conftest.err >&5
  20598.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20599.   (exit $ac_status); } &&
  20600.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  20601.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20602.   (eval $ac_try) 2>&5
  20603.   ac_status=$?
  20604.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20605.   (exit $ac_status); }; } &&
  20606.      { ac_try='test -s conftest$ac_exeext'
  20607.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20608.   (eval $ac_try) 2>&5
  20609.   ac_status=$?
  20610.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20611.   (exit $ac_status); }; }; then
  20612.   ac_cv_search_opendir="-l$ac_lib"
  20613. break
  20614. else
  20615.   echo "$as_me: failed program was:" >&5
  20616. sed 's/^/| /' conftest.$ac_ext >&5
  20617.  
  20618. fi
  20619. rm -f conftest.err conftest.$ac_objext \
  20620.       conftest$ac_exeext conftest.$ac_ext
  20621.   done
  20622. fi
  20623. LIBS=$ac_func_search_save_LIBS
  20624. fi
  20625. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  20626. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  20627. if test "$ac_cv_search_opendir" != no; then
  20628.   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  20629.  
  20630. fi
  20631.  
  20632. else
  20633.   echo "$as_me:$LINENO: checking for library containing opendir" >&5
  20634. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  20635. if test "${ac_cv_search_opendir+set}" = set; then
  20636.   echo $ECHO_N "(cached) $ECHO_C" >&6
  20637. else
  20638.   ac_func_search_save_LIBS=$LIBS
  20639. ac_cv_search_opendir=no
  20640. cat >conftest.$ac_ext <<_ACEOF
  20641. /* confdefs.h.  */
  20642. _ACEOF
  20643. cat confdefs.h >>conftest.$ac_ext
  20644. cat >>conftest.$ac_ext <<_ACEOF
  20645. /* end confdefs.h.  */
  20646.  
  20647. /* Override any gcc2 internal prototype to avoid an error.  */
  20648. #ifdef __cplusplus
  20649. extern "C"
  20650. #endif
  20651. /* We use char because int might match the return type of a gcc2
  20652.    builtin and then its argument prototype would still apply.  */
  20653. char opendir ();
  20654. int
  20655. main ()
  20656. {
  20657. opendir ();
  20658.   ;
  20659.   return 0;
  20660. }
  20661. _ACEOF
  20662. rm -f conftest.$ac_objext conftest$ac_exeext
  20663. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20664.   (eval $ac_link) 2>conftest.er1
  20665.   ac_status=$?
  20666.   grep -v '^ *+' conftest.er1 >conftest.err
  20667.   rm -f conftest.er1
  20668.   cat conftest.err >&5
  20669.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20670.   (exit $ac_status); } &&
  20671.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  20672.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20673.   (eval $ac_try) 2>&5
  20674.   ac_status=$?
  20675.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20676.   (exit $ac_status); }; } &&
  20677.      { ac_try='test -s conftest$ac_exeext'
  20678.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20679.   (eval $ac_try) 2>&5
  20680.   ac_status=$?
  20681.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20682.   (exit $ac_status); }; }; then
  20683.   ac_cv_search_opendir="none required"
  20684. else
  20685.   echo "$as_me: failed program was:" >&5
  20686. sed 's/^/| /' conftest.$ac_ext >&5
  20687.  
  20688. fi
  20689. rm -f conftest.err conftest.$ac_objext \
  20690.       conftest$ac_exeext conftest.$ac_ext
  20691. if test "$ac_cv_search_opendir" = no; then
  20692.   for ac_lib in x; do
  20693.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  20694.     cat >conftest.$ac_ext <<_ACEOF
  20695. /* confdefs.h.  */
  20696. _ACEOF
  20697. cat confdefs.h >>conftest.$ac_ext
  20698. cat >>conftest.$ac_ext <<_ACEOF
  20699. /* end confdefs.h.  */
  20700.  
  20701. /* Override any gcc2 internal prototype to avoid an error.  */
  20702. #ifdef __cplusplus
  20703. extern "C"
  20704. #endif
  20705. /* We use char because int might match the return type of a gcc2
  20706.    builtin and then its argument prototype would still apply.  */
  20707. char opendir ();
  20708. int
  20709. main ()
  20710. {
  20711. opendir ();
  20712.   ;
  20713.   return 0;
  20714. }
  20715. _ACEOF
  20716. rm -f conftest.$ac_objext conftest$ac_exeext
  20717. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20718.   (eval $ac_link) 2>conftest.er1
  20719.   ac_status=$?
  20720.   grep -v '^ *+' conftest.er1 >conftest.err
  20721.   rm -f conftest.er1
  20722.   cat conftest.err >&5
  20723.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20724.   (exit $ac_status); } &&
  20725.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  20726.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20727.   (eval $ac_try) 2>&5
  20728.   ac_status=$?
  20729.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20730.   (exit $ac_status); }; } &&
  20731.      { ac_try='test -s conftest$ac_exeext'
  20732.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20733.   (eval $ac_try) 2>&5
  20734.   ac_status=$?
  20735.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20736.   (exit $ac_status); }; }; then
  20737.   ac_cv_search_opendir="-l$ac_lib"
  20738. break
  20739. else
  20740.   echo "$as_me: failed program was:" >&5
  20741. sed 's/^/| /' conftest.$ac_ext >&5
  20742.  
  20743. fi
  20744. rm -f conftest.err conftest.$ac_objext \
  20745.       conftest$ac_exeext conftest.$ac_ext
  20746.   done
  20747. fi
  20748. LIBS=$ac_func_search_save_LIBS
  20749. fi
  20750. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  20751. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  20752. if test "$ac_cv_search_opendir" != no; then
  20753.   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  20754.  
  20755. fi
  20756.  
  20757. fi
  20758.  
  20759. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  20760. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  20761. if test "${ac_cv_header_stdc+set}" = set; then
  20762.   echo $ECHO_N "(cached) $ECHO_C" >&6
  20763. else
  20764.   cat >conftest.$ac_ext <<_ACEOF
  20765. /* confdefs.h.  */
  20766. _ACEOF
  20767. cat confdefs.h >>conftest.$ac_ext
  20768. cat >>conftest.$ac_ext <<_ACEOF
  20769. /* end confdefs.h.  */
  20770. #include <stdlib.h>
  20771. #include <stdarg.h>
  20772. #include <string.h>
  20773. #include <float.h>
  20774.  
  20775. int
  20776. main ()
  20777. {
  20778.  
  20779.   ;
  20780.   return 0;
  20781. }
  20782. _ACEOF
  20783. rm -f conftest.$ac_objext
  20784. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20785.   (eval $ac_compile) 2>conftest.er1
  20786.   ac_status=$?
  20787.   grep -v '^ *+' conftest.er1 >conftest.err
  20788.   rm -f conftest.er1
  20789.   cat conftest.err >&5
  20790.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20791.   (exit $ac_status); } &&
  20792.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  20793.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20794.   (eval $ac_try) 2>&5
  20795.   ac_status=$?
  20796.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20797.   (exit $ac_status); }; } &&
  20798.      { ac_try='test -s conftest.$ac_objext'
  20799.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20800.   (eval $ac_try) 2>&5
  20801.   ac_status=$?
  20802.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20803.   (exit $ac_status); }; }; then
  20804.   ac_cv_header_stdc=yes
  20805. else
  20806.   echo "$as_me: failed program was:" >&5
  20807. sed 's/^/| /' conftest.$ac_ext >&5
  20808.  
  20809. ac_cv_header_stdc=no
  20810. fi
  20811. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20812.  
  20813. if test $ac_cv_header_stdc = yes; then
  20814.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  20815.   cat >conftest.$ac_ext <<_ACEOF
  20816. /* confdefs.h.  */
  20817. _ACEOF
  20818. cat confdefs.h >>conftest.$ac_ext
  20819. cat >>conftest.$ac_ext <<_ACEOF
  20820. /* end confdefs.h.  */
  20821. #include <string.h>
  20822.  
  20823. _ACEOF
  20824. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  20825.   $EGREP "memchr" >/dev/null 2>&1; then
  20826.   :
  20827. else
  20828.   ac_cv_header_stdc=no
  20829. fi
  20830. rm -f conftest*
  20831.  
  20832. fi
  20833.  
  20834. if test $ac_cv_header_stdc = yes; then
  20835.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  20836.   cat >conftest.$ac_ext <<_ACEOF
  20837. /* confdefs.h.  */
  20838. _ACEOF
  20839. cat confdefs.h >>conftest.$ac_ext
  20840. cat >>conftest.$ac_ext <<_ACEOF
  20841. /* end confdefs.h.  */
  20842. #include <stdlib.h>
  20843.  
  20844. _ACEOF
  20845. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  20846.   $EGREP "free" >/dev/null 2>&1; then
  20847.   :
  20848. else
  20849.   ac_cv_header_stdc=no
  20850. fi
  20851. rm -f conftest*
  20852.  
  20853. fi
  20854.  
  20855. if test $ac_cv_header_stdc = yes; then
  20856.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  20857.   if test "$cross_compiling" = yes; then
  20858.   :
  20859. else
  20860.   cat >conftest.$ac_ext <<_ACEOF
  20861. /* confdefs.h.  */
  20862. _ACEOF
  20863. cat confdefs.h >>conftest.$ac_ext
  20864. cat >>conftest.$ac_ext <<_ACEOF
  20865. /* end confdefs.h.  */
  20866. #include <ctype.h>
  20867. #if ((' ' & 0x0FF) == 0x020)
  20868. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  20869. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  20870. #else
  20871. # define ISLOWER(c) \
  20872.            (('a' <= (c) && (c) <= 'i') \
  20873.              || ('j' <= (c) && (c) <= 'r') \
  20874.              || ('s' <= (c) && (c) <= 'z'))
  20875. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  20876. #endif
  20877.  
  20878. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  20879. int
  20880. main ()
  20881. {
  20882.   int i;
  20883.   for (i = 0; i < 256; i++)
  20884.     if (XOR (islower (i), ISLOWER (i))
  20885.     || toupper (i) != TOUPPER (i))
  20886.       exit(2);
  20887.   exit (0);
  20888. }
  20889. _ACEOF
  20890. rm -f conftest$ac_exeext
  20891. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20892.   (eval $ac_link) 2>&5
  20893.   ac_status=$?
  20894.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20895.   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20896.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20897.   (eval $ac_try) 2>&5
  20898.   ac_status=$?
  20899.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20900.   (exit $ac_status); }; }; then
  20901.   :
  20902. else
  20903.   echo "$as_me: program exited with status $ac_status" >&5
  20904. echo "$as_me: failed program was:" >&5
  20905. sed 's/^/| /' conftest.$ac_ext >&5
  20906.  
  20907. ( exit $ac_status )
  20908. ac_cv_header_stdc=no
  20909. fi
  20910. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20911. fi
  20912. fi
  20913. fi
  20914. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  20915. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  20916. if test $ac_cv_header_stdc = yes; then
  20917.  
  20918. cat >>confdefs.h <<\_ACEOF
  20919. #define STDC_HEADERS 1
  20920. _ACEOF
  20921.  
  20922. fi
  20923.  
  20924. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  20925. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  20926. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  20927.   echo $ECHO_N "(cached) $ECHO_C" >&6
  20928. else
  20929.   cat >conftest.$ac_ext <<_ACEOF
  20930. /* confdefs.h.  */
  20931. _ACEOF
  20932. cat confdefs.h >>conftest.$ac_ext
  20933. cat >>conftest.$ac_ext <<_ACEOF
  20934. /* end confdefs.h.  */
  20935. #include <sys/types.h>
  20936. #include <sys/wait.h>
  20937. #ifndef WEXITSTATUS
  20938. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  20939. #endif
  20940. #ifndef WIFEXITED
  20941. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  20942. #endif
  20943.  
  20944. int
  20945. main ()
  20946. {
  20947.   int s;
  20948.   wait (&s);
  20949.   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  20950.   ;
  20951.   return 0;
  20952. }
  20953. _ACEOF
  20954. rm -f conftest.$ac_objext
  20955. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20956.   (eval $ac_compile) 2>conftest.er1
  20957.   ac_status=$?
  20958.   grep -v '^ *+' conftest.er1 >conftest.err
  20959.   rm -f conftest.er1
  20960.   cat conftest.err >&5
  20961.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20962.   (exit $ac_status); } &&
  20963.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  20964.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20965.   (eval $ac_try) 2>&5
  20966.   ac_status=$?
  20967.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20968.   (exit $ac_status); }; } &&
  20969.      { ac_try='test -s conftest.$ac_objext'
  20970.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20971.   (eval $ac_try) 2>&5
  20972.   ac_status=$?
  20973.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20974.   (exit $ac_status); }; }; then
  20975.   ac_cv_header_sys_wait_h=yes
  20976. else
  20977.   echo "$as_me: failed program was:" >&5
  20978. sed 's/^/| /' conftest.$ac_ext >&5
  20979.  
  20980. ac_cv_header_sys_wait_h=no
  20981. fi
  20982. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20983. fi
  20984. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  20985. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  20986. if test $ac_cv_header_sys_wait_h = yes; then
  20987.  
  20988. cat >>confdefs.h <<\_ACEOF
  20989. #define HAVE_SYS_WAIT_H 1
  20990. _ACEOF
  20991.  
  20992. fi
  20993.  
  20994. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  20995. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  20996. if test "${ac_cv_header_time+set}" = set; then
  20997.   echo $ECHO_N "(cached) $ECHO_C" >&6
  20998. else
  20999.   cat >conftest.$ac_ext <<_ACEOF
  21000. /* confdefs.h.  */
  21001. _ACEOF
  21002. cat confdefs.h >>conftest.$ac_ext
  21003. cat >>conftest.$ac_ext <<_ACEOF
  21004. /* end confdefs.h.  */
  21005. #include <sys/types.h>
  21006. #include <sys/time.h>
  21007. #include <time.h>
  21008.  
  21009. int
  21010. main ()
  21011. {
  21012. if ((struct tm *) 0)
  21013. return 0;
  21014.   ;
  21015.   return 0;
  21016. }
  21017. _ACEOF
  21018. rm -f conftest.$ac_objext
  21019. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21020.   (eval $ac_compile) 2>conftest.er1
  21021.   ac_status=$?
  21022.   grep -v '^ *+' conftest.er1 >conftest.err
  21023.   rm -f conftest.er1
  21024.   cat conftest.err >&5
  21025.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21026.   (exit $ac_status); } &&
  21027.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  21028.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21029.   (eval $ac_try) 2>&5
  21030.   ac_status=$?
  21031.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21032.   (exit $ac_status); }; } &&
  21033.      { ac_try='test -s conftest.$ac_objext'
  21034.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21035.   (eval $ac_try) 2>&5
  21036.   ac_status=$?
  21037.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21038.   (exit $ac_status); }; }; then
  21039.   ac_cv_header_time=yes
  21040. else
  21041.   echo "$as_me: failed program was:" >&5
  21042. sed 's/^/| /' conftest.$ac_ext >&5
  21043.  
  21044. ac_cv_header_time=no
  21045. fi
  21046. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21047. fi
  21048. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  21049. echo "${ECHO_T}$ac_cv_header_time" >&6
  21050. if test $ac_cv_header_time = yes; then
  21051.  
  21052. cat >>confdefs.h <<\_ACEOF
  21053. #define TIME_WITH_SYS_TIME 1
  21054. _ACEOF
  21055.  
  21056. fi
  21057.  
  21058.  
  21059.  
  21060.  
  21061.  
  21062.  
  21063.  
  21064. for ac_header in sys/param.h sys/time.h sys/times.h sys/wait.h unistd.h
  21065. do
  21066. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21067. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  21068.   echo "$as_me:$LINENO: checking for $ac_header" >&5
  21069. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  21070. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  21071.   echo $ECHO_N "(cached) $ECHO_C" >&6
  21072. fi
  21073. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  21074. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  21075. else
  21076.   # Is the header compilable?
  21077. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  21078. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  21079. cat >conftest.$ac_ext <<_ACEOF
  21080. /* confdefs.h.  */
  21081. _ACEOF
  21082. cat confdefs.h >>conftest.$ac_ext
  21083. cat >>conftest.$ac_ext <<_ACEOF
  21084. /* end confdefs.h.  */
  21085. $ac_includes_default
  21086. #include <$ac_header>
  21087. _ACEOF
  21088. rm -f conftest.$ac_objext
  21089. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21090.   (eval $ac_compile) 2>conftest.er1
  21091.   ac_status=$?
  21092.   grep -v '^ *+' conftest.er1 >conftest.err
  21093.   rm -f conftest.er1
  21094.   cat conftest.err >&5
  21095.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21096.   (exit $ac_status); } &&
  21097.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  21098.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21099.   (eval $ac_try) 2>&5
  21100.   ac_status=$?
  21101.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21102.   (exit $ac_status); }; } &&
  21103.      { ac_try='test -s conftest.$ac_objext'
  21104.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21105.   (eval $ac_try) 2>&5
  21106.   ac_status=$?
  21107.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21108.   (exit $ac_status); }; }; then
  21109.   ac_header_compiler=yes
  21110. else
  21111.   echo "$as_me: failed program was:" >&5
  21112. sed 's/^/| /' conftest.$ac_ext >&5
  21113.  
  21114. ac_header_compiler=no
  21115. fi
  21116. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21117. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21118. echo "${ECHO_T}$ac_header_compiler" >&6
  21119.  
  21120. # Is the header present?
  21121. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  21122. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  21123. cat >conftest.$ac_ext <<_ACEOF
  21124. /* confdefs.h.  */
  21125. _ACEOF
  21126. cat confdefs.h >>conftest.$ac_ext
  21127. cat >>conftest.$ac_ext <<_ACEOF
  21128. /* end confdefs.h.  */
  21129. #include <$ac_header>
  21130. _ACEOF
  21131. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  21132.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  21133.   ac_status=$?
  21134.   grep -v '^ *+' conftest.er1 >conftest.err
  21135.   rm -f conftest.er1
  21136.   cat conftest.err >&5
  21137.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21138.   (exit $ac_status); } >/dev/null; then
  21139.   if test -s conftest.err; then
  21140.     ac_cpp_err=$ac_c_preproc_warn_flag
  21141.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  21142.   else
  21143.     ac_cpp_err=
  21144.   fi
  21145. else
  21146.   ac_cpp_err=yes
  21147. fi
  21148. if test -z "$ac_cpp_err"; then
  21149.   ac_header_preproc=yes
  21150. else
  21151.   echo "$as_me: failed program was:" >&5
  21152. sed 's/^/| /' conftest.$ac_ext >&5
  21153.  
  21154.   ac_header_preproc=no
  21155. fi
  21156. rm -f conftest.err conftest.$ac_ext
  21157. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21158. echo "${ECHO_T}$ac_header_preproc" >&6
  21159.  
  21160. # So?  What about this header?
  21161. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21162.   yes:no: )
  21163.     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  21164. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21165.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  21166. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  21167.     ac_header_preproc=yes
  21168.     ;;
  21169.   no:yes:* )
  21170.     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  21171. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  21172.     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
  21173. echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
  21174.     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  21175. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  21176.     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
  21177. echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
  21178.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  21179. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  21180.     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  21181. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  21182.     (
  21183.       cat <<\_ASBOX
  21184. ## ------------------------------------------------------------------- ##
  21185. ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=GIMP ##
  21186. ## ------------------------------------------------------------------- ##
  21187. _ASBOX
  21188.     ) |
  21189.       sed "s/^/$as_me: WARNING:     /" >&2
  21190.     ;;
  21191. esac
  21192. echo "$as_me:$LINENO: checking for $ac_header" >&5
  21193. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  21194. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  21195.   echo $ECHO_N "(cached) $ECHO_C" >&6
  21196. else
  21197.   eval "$as_ac_Header=\$ac_header_preproc"
  21198. fi
  21199. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  21200. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  21201.  
  21202. fi
  21203. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  21204.   cat >>confdefs.h <<_ACEOF
  21205. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21206. _ACEOF
  21207.  
  21208. fi
  21209.  
  21210. done
  21211.  
  21212.  
  21213. echo "$as_me:$LINENO: checking for pid_t" >&5
  21214. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  21215. if test "${ac_cv_type_pid_t+set}" = set; then
  21216.   echo $ECHO_N "(cached) $ECHO_C" >&6
  21217. else
  21218.   cat >conftest.$ac_ext <<_ACEOF
  21219. /* confdefs.h.  */
  21220. _ACEOF
  21221. cat confdefs.h >>conftest.$ac_ext
  21222. cat >>conftest.$ac_ext <<_ACEOF
  21223. /* end confdefs.h.  */
  21224. $ac_includes_default
  21225. int
  21226. main ()
  21227. {
  21228. if ((pid_t *) 0)
  21229.   return 0;
  21230. if (sizeof (pid_t))
  21231.   return 0;
  21232.   ;
  21233.   return 0;
  21234. }
  21235. _ACEOF
  21236. rm -f conftest.$ac_objext
  21237. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21238.   (eval $ac_compile) 2>conftest.er1
  21239.   ac_status=$?
  21240.   grep -v '^ *+' conftest.er1 >conftest.err
  21241.   rm -f conftest.er1
  21242.   cat conftest.err >&5
  21243.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21244.   (exit $ac_status); } &&
  21245.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  21246.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21247.   (eval $ac_try) 2>&5
  21248.   ac_status=$?
  21249.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21250.   (exit $ac_status); }; } &&
  21251.      { ac_try='test -s conftest.$ac_objext'
  21252.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21253.   (eval $ac_try) 2>&5
  21254.   ac_status=$?
  21255.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21256.   (exit $ac_status); }; }; then
  21257.   ac_cv_type_pid_t=yes
  21258. else
  21259.   echo "$as_me: failed program was:" >&5
  21260. sed 's/^/| /' conftest.$ac_ext >&5
  21261.  
  21262. ac_cv_type_pid_t=no
  21263. fi
  21264. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21265. fi
  21266. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  21267. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  21268. if test $ac_cv_type_pid_t = yes; then
  21269.   :
  21270. else
  21271.  
  21272. cat >>confdefs.h <<_ACEOF
  21273. #define pid_t int
  21274. _ACEOF
  21275.  
  21276. fi
  21277.  
  21278. echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  21279. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
  21280. if test "${ac_cv_type_signal+set}" = set; then
  21281.   echo $ECHO_N "(cached) $ECHO_C" >&6
  21282. else
  21283.   cat >conftest.$ac_ext <<_ACEOF
  21284. /* confdefs.h.  */
  21285. _ACEOF
  21286. cat confdefs.h >>conftest.$ac_ext
  21287. cat >>conftest.$ac_ext <<_ACEOF
  21288. /* end confdefs.h.  */
  21289. #include <sys/types.h>
  21290. #include <signal.h>
  21291. #ifdef signal
  21292. # undef signal
  21293. #endif
  21294. #ifdef __cplusplus
  21295. extern "C" void (*signal (int, void (*)(int)))(int);
  21296. #else
  21297. void (*signal ()) ();
  21298. #endif
  21299.  
  21300. int
  21301. main ()
  21302. {
  21303. int i;
  21304.   ;
  21305.   return 0;
  21306. }
  21307. _ACEOF
  21308. rm -f conftest.$ac_objext
  21309. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21310.   (eval $ac_compile) 2>conftest.er1
  21311.   ac_status=$?
  21312.   grep -v '^ *+' conftest.er1 >conftest.err
  21313.   rm -f conftest.er1
  21314.   cat conftest.err >&5
  21315.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21316.   (exit $ac_status); } &&
  21317.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  21318.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21319.   (eval $ac_try) 2>&5
  21320.   ac_status=$?
  21321.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21322.   (exit $ac_status); }; } &&
  21323.      { ac_try='test -s conftest.$ac_objext'
  21324.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21325.   (eval $ac_try) 2>&5
  21326.   ac_status=$?
  21327.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21328.   (exit $ac_status); }; }; then
  21329.   ac_cv_type_signal=void
  21330. else
  21331.   echo "$as_me: failed program was:" >&5
  21332. sed 's/^/| /' conftest.$ac_ext >&5
  21333.  
  21334. ac_cv_type_signal=int
  21335. fi
  21336. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21337. fi
  21338. echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  21339. echo "${ECHO_T}$ac_cv_type_signal" >&6
  21340.  
  21341. cat >>confdefs.h <<_ACEOF
  21342. #define RETSIGTYPE $ac_cv_type_signal
  21343. _ACEOF
  21344.  
  21345.  
  21346.  
  21347. for ac_func in vprintf
  21348. do
  21349. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21350. echo "$as_me:$LINENO: checking for $ac_func" >&5
  21351. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  21352. if eval "test \"\${$as_ac_var+set}\" = set"; then
  21353.   echo $ECHO_N "(cached) $ECHO_C" >&6
  21354. else
  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. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21362.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  21363. #define $ac_func innocuous_$ac_func
  21364.  
  21365. /* System header to define __stub macros and hopefully few prototypes,
  21366.     which can conflict with char $ac_func (); below.
  21367.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21368.     <limits.h> exists even on freestanding compilers.  */
  21369.  
  21370. #ifdef __STDC__
  21371. # include <limits.h>
  21372. #else
  21373. # include <assert.h>
  21374. #endif
  21375.  
  21376. #undef $ac_func
  21377.  
  21378. /* Override any gcc2 internal prototype to avoid an error.  */
  21379. #ifdef __cplusplus
  21380. extern "C"
  21381. {
  21382. #endif
  21383. /* We use char because int might match the return type of a gcc2
  21384.    builtin and then its argument prototype would still apply.  */
  21385. char $ac_func ();
  21386. /* The GNU C library defines this for functions which it implements
  21387.     to always fail with ENOSYS.  Some functions are actually named
  21388.     something starting with __ and the normal name is an alias.  */
  21389. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  21390. choke me
  21391. #else
  21392. char (*f) () = $ac_func;
  21393. #endif
  21394. #ifdef __cplusplus
  21395. }
  21396. #endif
  21397.  
  21398. int
  21399. main ()
  21400. {
  21401. return f != $ac_func;
  21402.   ;
  21403.   return 0;
  21404. }
  21405. _ACEOF
  21406. rm -f conftest.$ac_objext conftest$ac_exeext
  21407. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21408.   (eval $ac_link) 2>conftest.er1
  21409.   ac_status=$?
  21410.   grep -v '^ *+' conftest.er1 >conftest.err
  21411.   rm -f conftest.er1
  21412.   cat conftest.err >&5
  21413.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21414.   (exit $ac_status); } &&
  21415.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  21416.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21417.   (eval $ac_try) 2>&5
  21418.   ac_status=$?
  21419.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21420.   (exit $ac_status); }; } &&
  21421.      { ac_try='test -s conftest$ac_exeext'
  21422.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21423.   (eval $ac_try) 2>&5
  21424.   ac_status=$?
  21425.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21426.   (exit $ac_status); }; }; then
  21427.   eval "$as_ac_var=yes"
  21428. else
  21429.   echo "$as_me: failed program was:" >&5
  21430. sed 's/^/| /' conftest.$ac_ext >&5
  21431.  
  21432. eval "$as_ac_var=no"
  21433. fi
  21434. rm -f conftest.err conftest.$ac_objext \
  21435.       conftest$ac_exeext conftest.$ac_ext
  21436. fi
  21437. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  21438. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  21439. if test `eval echo '${'$as_ac_var'}'` = yes; then
  21440.   cat >>confdefs.h <<_ACEOF
  21441. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21442. _ACEOF
  21443.  
  21444. echo "$as_me:$LINENO: checking for _doprnt" >&5
  21445. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  21446. if test "${ac_cv_func__doprnt+set}" = set; then
  21447.   echo $ECHO_N "(cached) $ECHO_C" >&6
  21448. else
  21449.   cat >conftest.$ac_ext <<_ACEOF
  21450. /* confdefs.h.  */
  21451. _ACEOF
  21452. cat confdefs.h >>conftest.$ac_ext
  21453. cat >>conftest.$ac_ext <<_ACEOF
  21454. /* end confdefs.h.  */
  21455. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  21456.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  21457. #define _doprnt innocuous__doprnt
  21458.  
  21459. /* System header to define __stub macros and hopefully few prototypes,
  21460.     which can conflict with char _doprnt (); below.
  21461.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21462.     <limits.h> exists even on freestanding compilers.  */
  21463.  
  21464. #ifdef __STDC__
  21465. # include <limits.h>
  21466. #else
  21467. # include <assert.h>
  21468. #endif
  21469.  
  21470. #undef _doprnt
  21471.  
  21472. /* Override any gcc2 internal prototype to avoid an error.  */
  21473. #ifdef __cplusplus
  21474. extern "C"
  21475. {
  21476. #endif
  21477. /* We use char because int might match the return type of a gcc2
  21478.    builtin and then its argument prototype would still apply.  */
  21479. char _doprnt ();
  21480. /* The GNU C library defines this for functions which it implements
  21481.     to always fail with ENOSYS.  Some functions are actually named
  21482.     something starting with __ and the normal name is an alias.  */
  21483. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  21484. choke me
  21485. #else
  21486. char (*f) () = _doprnt;
  21487. #endif
  21488. #ifdef __cplusplus
  21489. }
  21490. #endif
  21491.  
  21492. int
  21493. main ()
  21494. {
  21495. return f != _doprnt;
  21496.   ;
  21497.   return 0;
  21498. }
  21499. _ACEOF
  21500. rm -f conftest.$ac_objext conftest$ac_exeext
  21501. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21502.   (eval $ac_link) 2>conftest.er1
  21503.   ac_status=$?
  21504.   grep -v '^ *+' conftest.er1 >conftest.err
  21505.   rm -f conftest.er1
  21506.   cat conftest.err >&5
  21507.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21508.   (exit $ac_status); } &&
  21509.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  21510.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21511.   (eval $ac_try) 2>&5
  21512.   ac_status=$?
  21513.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21514.   (exit $ac_status); }; } &&
  21515.      { ac_try='test -s conftest$ac_exeext'
  21516.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21517.   (eval $ac_try) 2>&5
  21518.   ac_status=$?
  21519.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21520.   (exit $ac_status); }; }; then
  21521.   ac_cv_func__doprnt=yes
  21522. else
  21523.   echo "$as_me: failed program was:" >&5
  21524. sed 's/^/| /' conftest.$ac_ext >&5
  21525.  
  21526. ac_cv_func__doprnt=no
  21527. fi
  21528. rm -f conftest.err conftest.$ac_objext \
  21529.       conftest$ac_exeext conftest.$ac_ext
  21530. fi
  21531. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  21532. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  21533. if test $ac_cv_func__doprnt = yes; then
  21534.  
  21535. cat >>confdefs.h <<\_ACEOF
  21536. #define HAVE_DOPRNT 1
  21537. _ACEOF
  21538.  
  21539. fi
  21540.  
  21541. fi
  21542. done
  21543.  
  21544.  
  21545.  
  21546. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  21547. # for constant arguments.  Useless!
  21548. echo "$as_me:$LINENO: checking for working alloca.h" >&5
  21549. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
  21550. if test "${ac_cv_working_alloca_h+set}" = set; then
  21551.   echo $ECHO_N "(cached) $ECHO_C" >&6
  21552. else
  21553.   cat >conftest.$ac_ext <<_ACEOF
  21554. /* confdefs.h.  */
  21555. _ACEOF
  21556. cat confdefs.h >>conftest.$ac_ext
  21557. cat >>conftest.$ac_ext <<_ACEOF
  21558. /* end confdefs.h.  */
  21559. #include <alloca.h>
  21560. int
  21561. main ()
  21562. {
  21563. char *p = (char *) alloca (2 * sizeof (int));
  21564.   ;
  21565.   return 0;
  21566. }
  21567. _ACEOF
  21568. rm -f conftest.$ac_objext conftest$ac_exeext
  21569. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21570.   (eval $ac_link) 2>conftest.er1
  21571.   ac_status=$?
  21572.   grep -v '^ *+' conftest.er1 >conftest.err
  21573.   rm -f conftest.er1
  21574.   cat conftest.err >&5
  21575.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21576.   (exit $ac_status); } &&
  21577.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  21578.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21579.   (eval $ac_try) 2>&5
  21580.   ac_status=$?
  21581.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21582.   (exit $ac_status); }; } &&
  21583.      { ac_try='test -s conftest$ac_exeext'
  21584.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21585.   (eval $ac_try) 2>&5
  21586.   ac_status=$?
  21587.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21588.   (exit $ac_status); }; }; then
  21589.   ac_cv_working_alloca_h=yes
  21590. else
  21591.   echo "$as_me: failed program was:" >&5
  21592. sed 's/^/| /' conftest.$ac_ext >&5
  21593.  
  21594. ac_cv_working_alloca_h=no
  21595. fi
  21596. rm -f conftest.err conftest.$ac_objext \
  21597.       conftest$ac_exeext conftest.$ac_ext
  21598. fi
  21599. echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  21600. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
  21601. if test $ac_cv_working_alloca_h = yes; then
  21602.  
  21603. cat >>confdefs.h <<\_ACEOF
  21604. #define HAVE_ALLOCA_H 1
  21605. _ACEOF
  21606.  
  21607. fi
  21608.  
  21609. echo "$as_me:$LINENO: checking for alloca" >&5
  21610. echo $ECHO_N "checking for alloca... $ECHO_C" >&6
  21611. if test "${ac_cv_func_alloca_works+set}" = set; then
  21612.   echo $ECHO_N "(cached) $ECHO_C" >&6
  21613. else
  21614.   cat >conftest.$ac_ext <<_ACEOF
  21615. /* confdefs.h.  */
  21616. _ACEOF
  21617. cat confdefs.h >>conftest.$ac_ext
  21618. cat >>conftest.$ac_ext <<_ACEOF
  21619. /* end confdefs.h.  */
  21620. #ifdef __GNUC__
  21621. # define alloca __builtin_alloca
  21622. #else
  21623. # ifdef _MSC_VER
  21624. #  include <malloc.h>
  21625. #  define alloca _alloca
  21626. # else
  21627. #  if HAVE_ALLOCA_H
  21628. #   include <alloca.h>
  21629. #  else
  21630. #   ifdef _AIX
  21631.  #pragma alloca
  21632. #   else
  21633. #    ifndef alloca /* predefined by HP cc +Olibcalls */
  21634. char *alloca ();
  21635. #    endif
  21636. #   endif
  21637. #  endif
  21638. # endif
  21639. #endif
  21640.  
  21641. int
  21642. main ()
  21643. {
  21644. char *p = (char *) alloca (1);
  21645.   ;
  21646.   return 0;
  21647. }
  21648. _ACEOF
  21649. rm -f conftest.$ac_objext conftest$ac_exeext
  21650. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21651.   (eval $ac_link) 2>conftest.er1
  21652.   ac_status=$?
  21653.   grep -v '^ *+' conftest.er1 >conftest.err
  21654.   rm -f conftest.er1
  21655.   cat conftest.err >&5
  21656.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21657.   (exit $ac_status); } &&
  21658.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  21659.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21660.   (eval $ac_try) 2>&5
  21661.   ac_status=$?
  21662.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21663.   (exit $ac_status); }; } &&
  21664.      { ac_try='test -s conftest$ac_exeext'
  21665.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21666.   (eval $ac_try) 2>&5
  21667.   ac_status=$?
  21668.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21669.   (exit $ac_status); }; }; then
  21670.   ac_cv_func_alloca_works=yes
  21671. else
  21672.   echo "$as_me: failed program was:" >&5
  21673. sed 's/^/| /' conftest.$ac_ext >&5
  21674.  
  21675. ac_cv_func_alloca_works=no
  21676. fi
  21677. rm -f conftest.err conftest.$ac_objext \
  21678.       conftest$ac_exeext conftest.$ac_ext
  21679. fi
  21680. echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  21681. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
  21682.  
  21683. if test $ac_cv_func_alloca_works = yes; then
  21684.  
  21685. cat >>confdefs.h <<\_ACEOF
  21686. #define HAVE_ALLOCA 1
  21687. _ACEOF
  21688.  
  21689. else
  21690.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  21691. # that cause trouble.  Some versions do not even contain alloca or
  21692. # contain a buggy version.  If you still want to use their alloca,
  21693. # use ar to extract alloca.o from them instead of compiling alloca.c.
  21694.  
  21695. ALLOCA=alloca.$ac_objext
  21696.  
  21697. cat >>confdefs.h <<\_ACEOF
  21698. #define C_ALLOCA 1
  21699. _ACEOF
  21700.  
  21701.  
  21702. echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  21703. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
  21704. if test "${ac_cv_os_cray+set}" = set; then
  21705.   echo $ECHO_N "(cached) $ECHO_C" >&6
  21706. else
  21707.   cat >conftest.$ac_ext <<_ACEOF
  21708. /* confdefs.h.  */
  21709. _ACEOF
  21710. cat confdefs.h >>conftest.$ac_ext
  21711. cat >>conftest.$ac_ext <<_ACEOF
  21712. /* end confdefs.h.  */
  21713. #if defined(CRAY) && ! defined(CRAY2)
  21714. webecray
  21715. #else
  21716. wenotbecray
  21717. #endif
  21718.  
  21719. _ACEOF
  21720. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  21721.   $EGREP "webecray" >/dev/null 2>&1; then
  21722.   ac_cv_os_cray=yes
  21723. else
  21724.   ac_cv_os_cray=no
  21725. fi
  21726. rm -f conftest*
  21727.  
  21728. fi
  21729. echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  21730. echo "${ECHO_T}$ac_cv_os_cray" >&6
  21731. if test $ac_cv_os_cray = yes; then
  21732.   for ac_func in _getb67 GETB67 getb67; do
  21733.     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21734. echo "$as_me:$LINENO: checking for $ac_func" >&5
  21735. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  21736. if eval "test \"\${$as_ac_var+set}\" = set"; then
  21737.   echo $ECHO_N "(cached) $ECHO_C" >&6
  21738. else
  21739.   cat >conftest.$ac_ext <<_ACEOF
  21740. /* confdefs.h.  */
  21741. _ACEOF
  21742. cat confdefs.h >>conftest.$ac_ext
  21743. cat >>conftest.$ac_ext <<_ACEOF
  21744. /* end confdefs.h.  */
  21745. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21746.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  21747. #define $ac_func innocuous_$ac_func
  21748.  
  21749. /* System header to define __stub macros and hopefully few prototypes,
  21750.     which can conflict with char $ac_func (); below.
  21751.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21752.     <limits.h> exists even on freestanding compilers.  */
  21753.  
  21754. #ifdef __STDC__
  21755. # include <limits.h>
  21756. #else
  21757. # include <assert.h>
  21758. #endif
  21759.  
  21760. #undef $ac_func
  21761.  
  21762. /* Override any gcc2 internal prototype to avoid an error.  */
  21763. #ifdef __cplusplus
  21764. extern "C"
  21765. {
  21766. #endif
  21767. /* We use char because int might match the return type of a gcc2
  21768.    builtin and then its argument prototype would still apply.  */
  21769. char $ac_func ();
  21770. /* The GNU C library defines this for functions which it implements
  21771.     to always fail with ENOSYS.  Some functions are actually named
  21772.     something starting with __ and the normal name is an alias.  */
  21773. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  21774. choke me
  21775. #else
  21776. char (*f) () = $ac_func;
  21777. #endif
  21778. #ifdef __cplusplus
  21779. }
  21780. #endif
  21781.  
  21782. int
  21783. main ()
  21784. {
  21785. return f != $ac_func;
  21786.   ;
  21787.   return 0;
  21788. }
  21789. _ACEOF
  21790. rm -f conftest.$ac_objext conftest$ac_exeext
  21791. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21792.   (eval $ac_link) 2>conftest.er1
  21793.   ac_status=$?
  21794.   grep -v '^ *+' conftest.er1 >conftest.err
  21795.   rm -f conftest.er1
  21796.   cat conftest.err >&5
  21797.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21798.   (exit $ac_status); } &&
  21799.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  21800.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21801.   (eval $ac_try) 2>&5
  21802.   ac_status=$?
  21803.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21804.   (exit $ac_status); }; } &&
  21805.      { ac_try='test -s conftest$ac_exeext'
  21806.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21807.   (eval $ac_try) 2>&5
  21808.   ac_status=$?
  21809.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21810.   (exit $ac_status); }; }; then
  21811.   eval "$as_ac_var=yes"
  21812. else
  21813.   echo "$as_me: failed program was:" >&5
  21814. sed 's/^/| /' conftest.$ac_ext >&5
  21815.  
  21816. eval "$as_ac_var=no"
  21817. fi
  21818. rm -f conftest.err conftest.$ac_objext \
  21819.       conftest$ac_exeext conftest.$ac_ext
  21820. fi
  21821. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  21822. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  21823. if test `eval echo '${'$as_ac_var'}'` = yes; then
  21824.  
  21825. cat >>confdefs.h <<_ACEOF
  21826. #define CRAY_STACKSEG_END $ac_func
  21827. _ACEOF
  21828.  
  21829.     break
  21830. fi
  21831.  
  21832.   done
  21833. fi
  21834.  
  21835. echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  21836. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
  21837. if test "${ac_cv_c_stack_direction+set}" = set; then
  21838.   echo $ECHO_N "(cached) $ECHO_C" >&6
  21839. else
  21840.   if test "$cross_compiling" = yes; then
  21841.   ac_cv_c_stack_direction=0
  21842. else
  21843.   cat >conftest.$ac_ext <<_ACEOF
  21844. /* confdefs.h.  */
  21845. _ACEOF
  21846. cat confdefs.h >>conftest.$ac_ext
  21847. cat >>conftest.$ac_ext <<_ACEOF
  21848. /* end confdefs.h.  */
  21849. int
  21850. find_stack_direction ()
  21851. {
  21852.   static char *addr = 0;
  21853.   auto char dummy;
  21854.   if (addr == 0)
  21855.     {
  21856.       addr = &dummy;
  21857.       return find_stack_direction ();
  21858.     }
  21859.   else
  21860.     return (&dummy > addr) ? 1 : -1;
  21861. }
  21862.  
  21863. int
  21864. main ()
  21865. {
  21866.   exit (find_stack_direction () < 0);
  21867. }
  21868. _ACEOF
  21869. rm -f conftest$ac_exeext
  21870. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21871.   (eval $ac_link) 2>&5
  21872.   ac_status=$?
  21873.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21874.   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21875.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21876.   (eval $ac_try) 2>&5
  21877.   ac_status=$?
  21878.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21879.   (exit $ac_status); }; }; then
  21880.   ac_cv_c_stack_direction=1
  21881. else
  21882.   echo "$as_me: program exited with status $ac_status" >&5
  21883. echo "$as_me: failed program was:" >&5
  21884. sed 's/^/| /' conftest.$ac_ext >&5
  21885.  
  21886. ( exit $ac_status )
  21887. ac_cv_c_stack_direction=-1
  21888. fi
  21889. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21890. fi
  21891. fi
  21892. echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  21893. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
  21894.  
  21895. cat >>confdefs.h <<_ACEOF
  21896. #define STACK_DIRECTION $ac_cv_c_stack_direction
  21897. _ACEOF
  21898.  
  21899.  
  21900. fi
  21901.  
  21902.  
  21903.  
  21904.  
  21905.  
  21906. for ac_func in difftime putenv mmap
  21907. do
  21908. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21909. echo "$as_me:$LINENO: checking for $ac_func" >&5
  21910. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  21911. if eval "test \"\${$as_ac_var+set}\" = set"; then
  21912.   echo $ECHO_N "(cached) $ECHO_C" >&6
  21913. else
  21914.   cat >conftest.$ac_ext <<_ACEOF
  21915. /* confdefs.h.  */
  21916. _ACEOF
  21917. cat confdefs.h >>conftest.$ac_ext
  21918. cat >>conftest.$ac_ext <<_ACEOF
  21919. /* end confdefs.h.  */
  21920. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21921.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  21922. #define $ac_func innocuous_$ac_func
  21923.  
  21924. /* System header to define __stub macros and hopefully few prototypes,
  21925.     which can conflict with char $ac_func (); below.
  21926.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21927.     <limits.h> exists even on freestanding compilers.  */
  21928.  
  21929. #ifdef __STDC__
  21930. # include <limits.h>
  21931. #else
  21932. # include <assert.h>
  21933. #endif
  21934.  
  21935. #undef $ac_func
  21936.  
  21937. /* Override any gcc2 internal prototype to avoid an error.  */
  21938. #ifdef __cplusplus
  21939. extern "C"
  21940. {
  21941. #endif
  21942. /* We use char because int might match the return type of a gcc2
  21943.    builtin and then its argument prototype would still apply.  */
  21944. char $ac_func ();
  21945. /* The GNU C library defines this for functions which it implements
  21946.     to always fail with ENOSYS.  Some functions are actually named
  21947.     something starting with __ and the normal name is an alias.  */
  21948. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  21949. choke me
  21950. #else
  21951. char (*f) () = $ac_func;
  21952. #endif
  21953. #ifdef __cplusplus
  21954. }
  21955. #endif
  21956.  
  21957. int
  21958. main ()
  21959. {
  21960. return f != $ac_func;
  21961.   ;
  21962.   return 0;
  21963. }
  21964. _ACEOF
  21965. rm -f conftest.$ac_objext conftest$ac_exeext
  21966. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21967.   (eval $ac_link) 2>conftest.er1
  21968.   ac_status=$?
  21969.   grep -v '^ *+' conftest.er1 >conftest.err
  21970.   rm -f conftest.er1
  21971.   cat conftest.err >&5
  21972.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21973.   (exit $ac_status); } &&
  21974.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  21975.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21976.   (eval $ac_try) 2>&5
  21977.   ac_status=$?
  21978.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21979.   (exit $ac_status); }; } &&
  21980.      { ac_try='test -s conftest$ac_exeext'
  21981.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21982.   (eval $ac_try) 2>&5
  21983.   ac_status=$?
  21984.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21985.   (exit $ac_status); }; }; then
  21986.   eval "$as_ac_var=yes"
  21987. else
  21988.   echo "$as_me: failed program was:" >&5
  21989. sed 's/^/| /' conftest.$ac_ext >&5
  21990.  
  21991. eval "$as_ac_var=no"
  21992. fi
  21993. rm -f conftest.err conftest.$ac_objext \
  21994.       conftest$ac_exeext conftest.$ac_ext
  21995. fi
  21996. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  21997. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  21998. if test `eval echo '${'$as_ac_var'}'` = yes; then
  21999.   cat >>confdefs.h <<_ACEOF
  22000. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  22001. _ACEOF
  22002.  
  22003. fi
  22004. done
  22005.  
  22006.  
  22007.  
  22008. ######################
  22009. # Internationalisation
  22010. ######################
  22011.  
  22012. ALL_LINGUAS="ca cs da de el en_CA en_GB es eu fi fr ga gl he hu hr id it ja ko lt ms nb nl no pa pl pt pt_BR ro ru sk sr sr@Latn sv tr uk vi yi zh_CN zh_TW"
  22013.  
  22014.  
  22015.  
  22016. if test -n ""; then
  22017.     echo "$as_me:$LINENO: checking for intltool >= " >&5
  22018. echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6
  22019.  
  22020.     INTLTOOL_REQUIRED_VERSION_AS_INT=`echo  | awk -F. '{ printf "%d", $1 * 100 + $2; }'`
  22021.     INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }'  < ${ac_aux_dir}/intltool-update.in`
  22022.  
  22023.     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`
  22024.  
  22025.  
  22026.     if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then
  22027.     echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
  22028. echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6
  22029.     else
  22030.     echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old.  You need intltool  or later." >&5
  22031. echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found. Your intltool is too old.  You need intltool  or later." >&6
  22032.     exit 1
  22033.     fi
  22034. fi
  22035.  
  22036.   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 $< $@'
  22037. 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 $< $@'
  22038.      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 $< $@'
  22039.      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 $< $@'
  22040.       INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
  22041.      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 $< $@'
  22042.    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 $< $@'
  22043.     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 $< $@'
  22044. 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 $< $@'
  22045.        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 $< $@'
  22046.       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 $< $@'
  22047.       INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
  22048.       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 $< $@'
  22049.       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 $< $@'
  22050.     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 $< $@'
  22051.   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 $< $@'
  22052.     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 $< $@'
  22053.  
  22054.  
  22055.  
  22056.  
  22057.  
  22058.  
  22059.  
  22060.  
  22061.  
  22062.  
  22063.  
  22064.  
  22065.  
  22066.  
  22067.  
  22068.  
  22069.  
  22070.  
  22071.  
  22072. # Use the tools built into the package, not the ones that are installed.
  22073.  
  22074. INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
  22075. INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
  22076. INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
  22077.  
  22078.  
  22079.  
  22080.  
  22081.  
  22082. # Extract the first word of "perl", so it can be a program name with args.
  22083. set dummy perl; ac_word=$2
  22084. echo "$as_me:$LINENO: checking for $ac_word" >&5
  22085. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22086. if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
  22087.   echo $ECHO_N "(cached) $ECHO_C" >&6
  22088. else
  22089.   case $INTLTOOL_PERL in
  22090.   [\\/]* | ?:[\\/]*)
  22091.   ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
  22092.   ;;
  22093.   *)
  22094.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22095. for as_dir in $PATH
  22096. do
  22097.   IFS=$as_save_IFS
  22098.   test -z "$as_dir" && as_dir=.
  22099.   for ac_exec_ext in '' $ac_executable_extensions; do
  22100.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22101.     ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
  22102.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22103.     break 2
  22104.   fi
  22105. done
  22106. done
  22107.  
  22108.   ;;
  22109. esac
  22110. fi
  22111. INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
  22112.  
  22113. if test -n "$INTLTOOL_PERL"; then
  22114.   echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
  22115. echo "${ECHO_T}$INTLTOOL_PERL" >&6
  22116. else
  22117.   echo "$as_me:$LINENO: result: no" >&5
  22118. echo "${ECHO_T}no" >&6
  22119. fi
  22120.  
  22121. if test -z "$INTLTOOL_PERL"; then
  22122.    { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
  22123. echo "$as_me: error: perl not found; required for intltool" >&2;}
  22124.    { (exit 1); exit 1; }; }
  22125. fi
  22126. if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
  22127.    { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
  22128. echo "$as_me: error: perl 5.x required for intltool" >&2;}
  22129.    { (exit 1); exit 1; }; }
  22130. fi
  22131. if test "x" != "xno-xml"; then
  22132.    echo "$as_me:$LINENO: checking for XML::Parser" >&5
  22133. echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6
  22134.    if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
  22135.        echo "$as_me:$LINENO: result: ok" >&5
  22136. echo "${ECHO_T}ok" >&6
  22137.    else
  22138.        { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
  22139. echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
  22140.    { (exit 1); exit 1; }; }
  22141.    fi
  22142. fi
  22143.  
  22144. # Extract the first word of "iconv", so it can be a program name with args.
  22145. set dummy iconv; ac_word=$2
  22146. echo "$as_me:$LINENO: checking for $ac_word" >&5
  22147. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22148. if test "${ac_cv_path_ICONV+set}" = set; then
  22149.   echo $ECHO_N "(cached) $ECHO_C" >&6
  22150. else
  22151.   case $ICONV in
  22152.   [\\/]* | ?:[\\/]*)
  22153.   ac_cv_path_ICONV="$ICONV" # Let the user override the test with a path.
  22154.   ;;
  22155.   *)
  22156.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22157. for as_dir in $PATH
  22158. do
  22159.   IFS=$as_save_IFS
  22160.   test -z "$as_dir" && as_dir=.
  22161.   for ac_exec_ext in '' $ac_executable_extensions; do
  22162.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22163.     ac_cv_path_ICONV="$as_dir/$ac_word$ac_exec_ext"
  22164.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22165.     break 2
  22166.   fi
  22167. done
  22168. done
  22169.  
  22170.   test -z "$ac_cv_path_ICONV" && ac_cv_path_ICONV="iconv"
  22171.   ;;
  22172. esac
  22173. fi
  22174. ICONV=$ac_cv_path_ICONV
  22175.  
  22176. if test -n "$ICONV"; then
  22177.   echo "$as_me:$LINENO: result: $ICONV" >&5
  22178. echo "${ECHO_T}$ICONV" >&6
  22179. else
  22180.   echo "$as_me:$LINENO: result: no" >&5
  22181. echo "${ECHO_T}no" >&6
  22182. fi
  22183.  
  22184. # Extract the first word of "msgfmt", so it can be a program name with args.
  22185. set dummy msgfmt; ac_word=$2
  22186. echo "$as_me:$LINENO: checking for $ac_word" >&5
  22187. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22188. if test "${ac_cv_path_MSGFMT+set}" = set; then
  22189.   echo $ECHO_N "(cached) $ECHO_C" >&6
  22190. else
  22191.   case $MSGFMT in
  22192.   [\\/]* | ?:[\\/]*)
  22193.   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  22194.   ;;
  22195.   *)
  22196.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22197. for as_dir in $PATH
  22198. do
  22199.   IFS=$as_save_IFS
  22200.   test -z "$as_dir" && as_dir=.
  22201.   for ac_exec_ext in '' $ac_executable_extensions; do
  22202.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22203.     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
  22204.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22205.     break 2
  22206.   fi
  22207. done
  22208. done
  22209.  
  22210.   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
  22211.   ;;
  22212. esac
  22213. fi
  22214. MSGFMT=$ac_cv_path_MSGFMT
  22215.  
  22216. if test -n "$MSGFMT"; then
  22217.   echo "$as_me:$LINENO: result: $MSGFMT" >&5
  22218. echo "${ECHO_T}$MSGFMT" >&6
  22219. else
  22220.   echo "$as_me:$LINENO: result: no" >&5
  22221. echo "${ECHO_T}no" >&6
  22222. fi
  22223.  
  22224. # Extract the first word of "msgmerge", so it can be a program name with args.
  22225. set dummy msgmerge; ac_word=$2
  22226. echo "$as_me:$LINENO: checking for $ac_word" >&5
  22227. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22228. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  22229.   echo $ECHO_N "(cached) $ECHO_C" >&6
  22230. else
  22231.   case $MSGMERGE in
  22232.   [\\/]* | ?:[\\/]*)
  22233.   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  22234.   ;;
  22235.   *)
  22236.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22237. for as_dir in $PATH
  22238. do
  22239.   IFS=$as_save_IFS
  22240.   test -z "$as_dir" && as_dir=.
  22241.   for ac_exec_ext in '' $ac_executable_extensions; do
  22242.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22243.     ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
  22244.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22245.     break 2
  22246.   fi
  22247. done
  22248. done
  22249.  
  22250.   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE="msgmerge"
  22251.   ;;
  22252. esac
  22253. fi
  22254. MSGMERGE=$ac_cv_path_MSGMERGE
  22255.  
  22256. if test -n "$MSGMERGE"; then
  22257.   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  22258. echo "${ECHO_T}$MSGMERGE" >&6
  22259. else
  22260.   echo "$as_me:$LINENO: result: no" >&5
  22261. echo "${ECHO_T}no" >&6
  22262. fi
  22263.  
  22264. # Extract the first word of "xgettext", so it can be a program name with args.
  22265. set dummy xgettext; ac_word=$2
  22266. echo "$as_me:$LINENO: checking for $ac_word" >&5
  22267. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22268. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  22269.   echo $ECHO_N "(cached) $ECHO_C" >&6
  22270. else
  22271.   case $XGETTEXT in
  22272.   [\\/]* | ?:[\\/]*)
  22273.   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  22274.   ;;
  22275.   *)
  22276.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22277. for as_dir in $PATH
  22278. do
  22279.   IFS=$as_save_IFS
  22280.   test -z "$as_dir" && as_dir=.
  22281.   for ac_exec_ext in '' $ac_executable_extensions; do
  22282.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22283.     ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
  22284.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22285.     break 2
  22286.   fi
  22287. done
  22288. done
  22289.  
  22290.   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="xgettext"
  22291.   ;;
  22292. esac
  22293. fi
  22294. XGETTEXT=$ac_cv_path_XGETTEXT
  22295.  
  22296. if test -n "$XGETTEXT"; then
  22297.   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  22298. echo "${ECHO_T}$XGETTEXT" >&6
  22299. else
  22300.   echo "$as_me:$LINENO: result: no" >&5
  22301. echo "${ECHO_T}no" >&6
  22302. fi
  22303.  
  22304.  
  22305. # Remove file type tags (using []) from po/POTFILES.
  22306.  
  22307.  
  22308.  
  22309.  
  22310.  
  22311.  
  22312. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  22313.   # Keeping the `.' argument allows $(mkdir_p) to be used without
  22314.   # argument.  Indeed, we sometimes output rules like
  22315.   #   $(mkdir_p) $(somedir)
  22316.   # where $(somedir) is conditionally defined.
  22317.   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
  22318.   # expensive solution, as it forces Make to start a sub-shell.)
  22319.   mkdir_p='mkdir -p -- .'
  22320. else
  22321.   # On NextStep and OpenStep, the `mkdir' command does not
  22322.   # recognize any option.  It will interpret all options as
  22323.   # directories to create, and then abort because `.' already
  22324.   # exists.
  22325.   for d in ./-p ./--version;
  22326.   do
  22327.     test -d $d && rmdir $d
  22328.   done
  22329.   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  22330.   if test -f "$ac_aux_dir/mkinstalldirs"; then
  22331.     mkdir_p='$(mkinstalldirs)'
  22332.   else
  22333.     mkdir_p='$(install_sh) -d'
  22334.   fi
  22335. fi
  22336.  
  22337.  
  22338.  
  22339. # Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
  22340.  
  22341.           ac_config_commands="$ac_config_commands intltool"
  22342.  
  22343.  
  22344.  
  22345.  
  22346.  
  22347. for ac_header in locale.h
  22348. do
  22349. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  22350. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  22351.   echo "$as_me:$LINENO: checking for $ac_header" >&5
  22352. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  22353. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  22354.   echo $ECHO_N "(cached) $ECHO_C" >&6
  22355. fi
  22356. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  22357. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  22358. else
  22359.   # Is the header compilable?
  22360. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  22361. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  22362. cat >conftest.$ac_ext <<_ACEOF
  22363. /* confdefs.h.  */
  22364. _ACEOF
  22365. cat confdefs.h >>conftest.$ac_ext
  22366. cat >>conftest.$ac_ext <<_ACEOF
  22367. /* end confdefs.h.  */
  22368. $ac_includes_default
  22369. #include <$ac_header>
  22370. _ACEOF
  22371. rm -f conftest.$ac_objext
  22372. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22373.   (eval $ac_compile) 2>conftest.er1
  22374.   ac_status=$?
  22375.   grep -v '^ *+' conftest.er1 >conftest.err
  22376.   rm -f conftest.er1
  22377.   cat conftest.err >&5
  22378.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22379.   (exit $ac_status); } &&
  22380.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  22381.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22382.   (eval $ac_try) 2>&5
  22383.   ac_status=$?
  22384.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22385.   (exit $ac_status); }; } &&
  22386.      { ac_try='test -s conftest.$ac_objext'
  22387.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22388.   (eval $ac_try) 2>&5
  22389.   ac_status=$?
  22390.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22391.   (exit $ac_status); }; }; then
  22392.   ac_header_compiler=yes
  22393. else
  22394.   echo "$as_me: failed program was:" >&5
  22395. sed 's/^/| /' conftest.$ac_ext >&5
  22396.  
  22397. ac_header_compiler=no
  22398. fi
  22399. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22400. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  22401. echo "${ECHO_T}$ac_header_compiler" >&6
  22402.  
  22403. # Is the header present?
  22404. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  22405. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  22406. cat >conftest.$ac_ext <<_ACEOF
  22407. /* confdefs.h.  */
  22408. _ACEOF
  22409. cat confdefs.h >>conftest.$ac_ext
  22410. cat >>conftest.$ac_ext <<_ACEOF
  22411. /* end confdefs.h.  */
  22412. #include <$ac_header>
  22413. _ACEOF
  22414. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  22415.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  22416.   ac_status=$?
  22417.   grep -v '^ *+' conftest.er1 >conftest.err
  22418.   rm -f conftest.er1
  22419.   cat conftest.err >&5
  22420.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22421.   (exit $ac_status); } >/dev/null; then
  22422.   if test -s conftest.err; then
  22423.     ac_cpp_err=$ac_c_preproc_warn_flag
  22424.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  22425.   else
  22426.     ac_cpp_err=
  22427.   fi
  22428. else
  22429.   ac_cpp_err=yes
  22430. fi
  22431. if test -z "$ac_cpp_err"; then
  22432.   ac_header_preproc=yes
  22433. else
  22434.   echo "$as_me: failed program was:" >&5
  22435. sed 's/^/| /' conftest.$ac_ext >&5
  22436.  
  22437.   ac_header_preproc=no
  22438. fi
  22439. rm -f conftest.err conftest.$ac_ext
  22440. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  22441. echo "${ECHO_T}$ac_header_preproc" >&6
  22442.  
  22443. # So?  What about this header?
  22444. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  22445.   yes:no: )
  22446.     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  22447. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  22448.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  22449. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  22450.     ac_header_preproc=yes
  22451.     ;;
  22452.   no:yes:* )
  22453.     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  22454. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  22455.     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
  22456. echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
  22457.     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  22458. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  22459.     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
  22460. echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
  22461.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  22462. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  22463.     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  22464. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  22465.     (
  22466.       cat <<\_ASBOX
  22467. ## ------------------------------------------------------------------- ##
  22468. ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=GIMP ##
  22469. ## ------------------------------------------------------------------- ##
  22470. _ASBOX
  22471.     ) |
  22472.       sed "s/^/$as_me: WARNING:     /" >&2
  22473.     ;;
  22474. esac
  22475. echo "$as_me:$LINENO: checking for $ac_header" >&5
  22476. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  22477. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  22478.   echo $ECHO_N "(cached) $ECHO_C" >&6
  22479. else
  22480.   eval "$as_ac_Header=\$ac_header_preproc"
  22481. fi
  22482. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  22483. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  22484.  
  22485. fi
  22486. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  22487.   cat >>confdefs.h <<_ACEOF
  22488. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  22489. _ACEOF
  22490.  
  22491. fi
  22492.  
  22493. done
  22494.  
  22495.     if test $ac_cv_header_locale_h = yes; then
  22496.     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  22497. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
  22498. if test "${am_cv_val_LC_MESSAGES+set}" = set; then
  22499.   echo $ECHO_N "(cached) $ECHO_C" >&6
  22500. else
  22501.   cat >conftest.$ac_ext <<_ACEOF
  22502. /* confdefs.h.  */
  22503. _ACEOF
  22504. cat confdefs.h >>conftest.$ac_ext
  22505. cat >>conftest.$ac_ext <<_ACEOF
  22506. /* end confdefs.h.  */
  22507. #include <locale.h>
  22508. int
  22509. main ()
  22510. {
  22511. return LC_MESSAGES
  22512.   ;
  22513.   return 0;
  22514. }
  22515. _ACEOF
  22516. rm -f conftest.$ac_objext conftest$ac_exeext
  22517. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22518.   (eval $ac_link) 2>conftest.er1
  22519.   ac_status=$?
  22520.   grep -v '^ *+' conftest.er1 >conftest.err
  22521.   rm -f conftest.er1
  22522.   cat conftest.err >&5
  22523.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22524.   (exit $ac_status); } &&
  22525.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  22526.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22527.   (eval $ac_try) 2>&5
  22528.   ac_status=$?
  22529.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22530.   (exit $ac_status); }; } &&
  22531.      { ac_try='test -s conftest$ac_exeext'
  22532.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22533.   (eval $ac_try) 2>&5
  22534.   ac_status=$?
  22535.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22536.   (exit $ac_status); }; }; then
  22537.   am_cv_val_LC_MESSAGES=yes
  22538. else
  22539.   echo "$as_me: failed program was:" >&5
  22540. sed 's/^/| /' conftest.$ac_ext >&5
  22541.  
  22542. am_cv_val_LC_MESSAGES=no
  22543. fi
  22544. rm -f conftest.err conftest.$ac_objext \
  22545.       conftest$ac_exeext conftest.$ac_ext
  22546. fi
  22547. echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
  22548. echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
  22549.     if test $am_cv_val_LC_MESSAGES = yes; then
  22550.  
  22551. cat >>confdefs.h <<\_ACEOF
  22552. #define HAVE_LC_MESSAGES 1
  22553. _ACEOF
  22554.  
  22555.     fi
  22556.   fi
  22557.      USE_NLS=yes
  22558.  
  22559.  
  22560.     gt_cv_have_gettext=no
  22561.  
  22562.     CATOBJEXT=NONE
  22563.     XGETTEXT=:
  22564.     INTLLIBS=
  22565.  
  22566.     if test "${ac_cv_header_libintl_h+set}" = set; then
  22567.   echo "$as_me:$LINENO: checking for libintl.h" >&5
  22568. echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
  22569. if test "${ac_cv_header_libintl_h+set}" = set; then
  22570.   echo $ECHO_N "(cached) $ECHO_C" >&6
  22571. fi
  22572. echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
  22573. echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
  22574. else
  22575.   # Is the header compilable?
  22576. echo "$as_me:$LINENO: checking libintl.h usability" >&5
  22577. echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
  22578. cat >conftest.$ac_ext <<_ACEOF
  22579. /* confdefs.h.  */
  22580. _ACEOF
  22581. cat confdefs.h >>conftest.$ac_ext
  22582. cat >>conftest.$ac_ext <<_ACEOF
  22583. /* end confdefs.h.  */
  22584. $ac_includes_default
  22585. #include <libintl.h>
  22586. _ACEOF
  22587. rm -f conftest.$ac_objext
  22588. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22589.   (eval $ac_compile) 2>conftest.er1
  22590.   ac_status=$?
  22591.   grep -v '^ *+' conftest.er1 >conftest.err
  22592.   rm -f conftest.er1
  22593.   cat conftest.err >&5
  22594.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22595.   (exit $ac_status); } &&
  22596.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  22597.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22598.   (eval $ac_try) 2>&5
  22599.   ac_status=$?
  22600.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22601.   (exit $ac_status); }; } &&
  22602.      { ac_try='test -s conftest.$ac_objext'
  22603.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22604.   (eval $ac_try) 2>&5
  22605.   ac_status=$?
  22606.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22607.   (exit $ac_status); }; }; then
  22608.   ac_header_compiler=yes
  22609. else
  22610.   echo "$as_me: failed program was:" >&5
  22611. sed 's/^/| /' conftest.$ac_ext >&5
  22612.  
  22613. ac_header_compiler=no
  22614. fi
  22615. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22616. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  22617. echo "${ECHO_T}$ac_header_compiler" >&6
  22618.  
  22619. # Is the header present?
  22620. echo "$as_me:$LINENO: checking libintl.h presence" >&5
  22621. echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
  22622. cat >conftest.$ac_ext <<_ACEOF
  22623. /* confdefs.h.  */
  22624. _ACEOF
  22625. cat confdefs.h >>conftest.$ac_ext
  22626. cat >>conftest.$ac_ext <<_ACEOF
  22627. /* end confdefs.h.  */
  22628. #include <libintl.h>
  22629. _ACEOF
  22630. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  22631.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  22632.   ac_status=$?
  22633.   grep -v '^ *+' conftest.er1 >conftest.err
  22634.   rm -f conftest.er1
  22635.   cat conftest.err >&5
  22636.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22637.   (exit $ac_status); } >/dev/null; then
  22638.   if test -s conftest.err; then
  22639.     ac_cpp_err=$ac_c_preproc_warn_flag
  22640.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  22641.   else
  22642.     ac_cpp_err=
  22643.   fi
  22644. else
  22645.   ac_cpp_err=yes
  22646. fi
  22647. if test -z "$ac_cpp_err"; then
  22648.   ac_header_preproc=yes
  22649. else
  22650.   echo "$as_me: failed program was:" >&5
  22651. sed 's/^/| /' conftest.$ac_ext >&5
  22652.  
  22653.   ac_header_preproc=no
  22654. fi
  22655. rm -f conftest.err conftest.$ac_ext
  22656. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  22657. echo "${ECHO_T}$ac_header_preproc" >&6
  22658.  
  22659. # So?  What about this header?
  22660. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  22661.   yes:no: )
  22662.     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
  22663. echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  22664.     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
  22665. echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
  22666.     ac_header_preproc=yes
  22667.     ;;
  22668.   no:yes:* )
  22669.     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
  22670. echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
  22671.     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
  22672. echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
  22673.     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
  22674. echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
  22675.     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
  22676. echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  22677.     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
  22678. echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
  22679.     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
  22680. echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
  22681.     (
  22682.       cat <<\_ASBOX
  22683. ## ------------------------------------------------------------------- ##
  22684. ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=GIMP ##
  22685. ## ------------------------------------------------------------------- ##
  22686. _ASBOX
  22687.     ) |
  22688.       sed "s/^/$as_me: WARNING:     /" >&2
  22689.     ;;
  22690. esac
  22691. echo "$as_me:$LINENO: checking for libintl.h" >&5
  22692. echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
  22693. if test "${ac_cv_header_libintl_h+set}" = set; then
  22694.   echo $ECHO_N "(cached) $ECHO_C" >&6
  22695. else
  22696.   ac_cv_header_libintl_h=$ac_header_preproc
  22697. fi
  22698. echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
  22699. echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
  22700.  
  22701. fi
  22702. if test $ac_cv_header_libintl_h = yes; then
  22703.   gt_cv_func_dgettext_libintl="no"
  22704.       libintl_extra_libs=""
  22705.  
  22706.       #
  22707.       # First check in libc
  22708.       #
  22709.       echo "$as_me:$LINENO: checking for dgettext in libc" >&5
  22710. echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
  22711. if test "${gt_cv_func_dgettext_libc+set}" = set; then
  22712.   echo $ECHO_N "(cached) $ECHO_C" >&6
  22713. else
  22714.   cat >conftest.$ac_ext <<_ACEOF
  22715. /* confdefs.h.  */
  22716. _ACEOF
  22717. cat confdefs.h >>conftest.$ac_ext
  22718. cat >>conftest.$ac_ext <<_ACEOF
  22719. /* end confdefs.h.  */
  22720.  
  22721. #include <libintl.h>
  22722.  
  22723. int
  22724. main ()
  22725. {
  22726. return (int) dgettext ("","")
  22727.   ;
  22728.   return 0;
  22729. }
  22730. _ACEOF
  22731. rm -f conftest.$ac_objext conftest$ac_exeext
  22732. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22733.   (eval $ac_link) 2>conftest.er1
  22734.   ac_status=$?
  22735.   grep -v '^ *+' conftest.er1 >conftest.err
  22736.   rm -f conftest.er1
  22737.   cat conftest.err >&5
  22738.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22739.   (exit $ac_status); } &&
  22740.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  22741.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22742.   (eval $ac_try) 2>&5
  22743.   ac_status=$?
  22744.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22745.   (exit $ac_status); }; } &&
  22746.      { ac_try='test -s conftest$ac_exeext'
  22747.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22748.   (eval $ac_try) 2>&5
  22749.   ac_status=$?
  22750.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22751.   (exit $ac_status); }; }; then
  22752.   gt_cv_func_dgettext_libc=yes
  22753. else
  22754.   echo "$as_me: failed program was:" >&5
  22755. sed 's/^/| /' conftest.$ac_ext >&5
  22756.  
  22757. gt_cv_func_dgettext_libc=no
  22758. fi
  22759. rm -f conftest.err conftest.$ac_objext \
  22760.       conftest$ac_exeext conftest.$ac_ext
  22761.  
  22762. fi
  22763. echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
  22764. echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
  22765.  
  22766.       if test "$gt_cv_func_dgettext_libc" = "yes" ; then
  22767.  
  22768. for ac_func in bind_textdomain_codeset
  22769. do
  22770. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  22771. echo "$as_me:$LINENO: checking for $ac_func" >&5
  22772. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  22773. if eval "test \"\${$as_ac_var+set}\" = set"; then
  22774.   echo $ECHO_N "(cached) $ECHO_C" >&6
  22775. else
  22776.   cat >conftest.$ac_ext <<_ACEOF
  22777. /* confdefs.h.  */
  22778. _ACEOF
  22779. cat confdefs.h >>conftest.$ac_ext
  22780. cat >>conftest.$ac_ext <<_ACEOF
  22781. /* end confdefs.h.  */
  22782. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  22783.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  22784. #define $ac_func innocuous_$ac_func
  22785.  
  22786. /* System header to define __stub macros and hopefully few prototypes,
  22787.     which can conflict with char $ac_func (); below.
  22788.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22789.     <limits.h> exists even on freestanding compilers.  */
  22790.  
  22791. #ifdef __STDC__
  22792. # include <limits.h>
  22793. #else
  22794. # include <assert.h>
  22795. #endif
  22796.  
  22797. #undef $ac_func
  22798.  
  22799. /* Override any gcc2 internal prototype to avoid an error.  */
  22800. #ifdef __cplusplus
  22801. extern "C"
  22802. {
  22803. #endif
  22804. /* We use char because int might match the return type of a gcc2
  22805.    builtin and then its argument prototype would still apply.  */
  22806. char $ac_func ();
  22807. /* The GNU C library defines this for functions which it implements
  22808.     to always fail with ENOSYS.  Some functions are actually named
  22809.     something starting with __ and the normal name is an alias.  */
  22810. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  22811. choke me
  22812. #else
  22813. char (*f) () = $ac_func;
  22814. #endif
  22815. #ifdef __cplusplus
  22816. }
  22817. #endif
  22818.  
  22819. int
  22820. main ()
  22821. {
  22822. return f != $ac_func;
  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_c_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.   eval "$as_ac_var=yes"
  22849. else
  22850.   echo "$as_me: failed program was:" >&5
  22851. sed 's/^/| /' conftest.$ac_ext >&5
  22852.  
  22853. eval "$as_ac_var=no"
  22854. fi
  22855. rm -f conftest.err conftest.$ac_objext \
  22856.       conftest$ac_exeext conftest.$ac_ext
  22857. fi
  22858. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  22859. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  22860. if test `eval echo '${'$as_ac_var'}'` = yes; then
  22861.   cat >>confdefs.h <<_ACEOF
  22862. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  22863. _ACEOF
  22864.  
  22865. fi
  22866. done
  22867.  
  22868.       fi
  22869.  
  22870.       #
  22871.       # If we don't have everything we want, check in libintl
  22872.       #
  22873.       if test "$gt_cv_func_dgettext_libc" != "yes" \
  22874.          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
  22875.  
  22876.         echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
  22877. echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
  22878. if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
  22879.   echo $ECHO_N "(cached) $ECHO_C" >&6
  22880. else
  22881.   ac_check_lib_save_LIBS=$LIBS
  22882. LIBS="-lintl  $LIBS"
  22883. cat >conftest.$ac_ext <<_ACEOF
  22884. /* confdefs.h.  */
  22885. _ACEOF
  22886. cat confdefs.h >>conftest.$ac_ext
  22887. cat >>conftest.$ac_ext <<_ACEOF
  22888. /* end confdefs.h.  */
  22889.  
  22890. /* Override any gcc2 internal prototype to avoid an error.  */
  22891. #ifdef __cplusplus
  22892. extern "C"
  22893. #endif
  22894. /* We use char because int might match the return type of a gcc2
  22895.    builtin and then its argument prototype would still apply.  */
  22896. char bindtextdomain ();
  22897. int
  22898. main ()
  22899. {
  22900. bindtextdomain ();
  22901.   ;
  22902.   return 0;
  22903. }
  22904. _ACEOF
  22905. rm -f conftest.$ac_objext conftest$ac_exeext
  22906. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22907.   (eval $ac_link) 2>conftest.er1
  22908.   ac_status=$?
  22909.   grep -v '^ *+' conftest.er1 >conftest.err
  22910.   rm -f conftest.er1
  22911.   cat conftest.err >&5
  22912.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22913.   (exit $ac_status); } &&
  22914.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  22915.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22916.   (eval $ac_try) 2>&5
  22917.   ac_status=$?
  22918.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22919.   (exit $ac_status); }; } &&
  22920.      { ac_try='test -s conftest$ac_exeext'
  22921.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22922.   (eval $ac_try) 2>&5
  22923.   ac_status=$?
  22924.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22925.   (exit $ac_status); }; }; then
  22926.   ac_cv_lib_intl_bindtextdomain=yes
  22927. else
  22928.   echo "$as_me: failed program was:" >&5
  22929. sed 's/^/| /' conftest.$ac_ext >&5
  22930.  
  22931. ac_cv_lib_intl_bindtextdomain=no
  22932. fi
  22933. rm -f conftest.err conftest.$ac_objext \
  22934.       conftest$ac_exeext conftest.$ac_ext
  22935. LIBS=$ac_check_lib_save_LIBS
  22936. fi
  22937. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
  22938. echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
  22939. if test $ac_cv_lib_intl_bindtextdomain = yes; then
  22940.   echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
  22941. echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
  22942. if test "${ac_cv_lib_intl_dgettext+set}" = set; then
  22943.   echo $ECHO_N "(cached) $ECHO_C" >&6
  22944. else
  22945.   ac_check_lib_save_LIBS=$LIBS
  22946. LIBS="-lintl  $LIBS"
  22947. cat >conftest.$ac_ext <<_ACEOF
  22948. /* confdefs.h.  */
  22949. _ACEOF
  22950. cat confdefs.h >>conftest.$ac_ext
  22951. cat >>conftest.$ac_ext <<_ACEOF
  22952. /* end confdefs.h.  */
  22953.  
  22954. /* Override any gcc2 internal prototype to avoid an error.  */
  22955. #ifdef __cplusplus
  22956. extern "C"
  22957. #endif
  22958. /* We use char because int might match the return type of a gcc2
  22959.    builtin and then its argument prototype would still apply.  */
  22960. char dgettext ();
  22961. int
  22962. main ()
  22963. {
  22964. dgettext ();
  22965.   ;
  22966.   return 0;
  22967. }
  22968. _ACEOF
  22969. rm -f conftest.$ac_objext conftest$ac_exeext
  22970. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22971.   (eval $ac_link) 2>conftest.er1
  22972.   ac_status=$?
  22973.   grep -v '^ *+' conftest.er1 >conftest.err
  22974.   rm -f conftest.er1
  22975.   cat conftest.err >&5
  22976.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22977.   (exit $ac_status); } &&
  22978.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  22979.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22980.   (eval $ac_try) 2>&5
  22981.   ac_status=$?
  22982.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22983.   (exit $ac_status); }; } &&
  22984.      { ac_try='test -s conftest$ac_exeext'
  22985.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22986.   (eval $ac_try) 2>&5
  22987.   ac_status=$?
  22988.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22989.   (exit $ac_status); }; }; then
  22990.   ac_cv_lib_intl_dgettext=yes
  22991. else
  22992.   echo "$as_me: failed program was:" >&5
  22993. sed 's/^/| /' conftest.$ac_ext >&5
  22994.  
  22995. ac_cv_lib_intl_dgettext=no
  22996. fi
  22997. rm -f conftest.err conftest.$ac_objext \
  22998.       conftest$ac_exeext conftest.$ac_ext
  22999. LIBS=$ac_check_lib_save_LIBS
  23000. fi
  23001. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
  23002. echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
  23003. if test $ac_cv_lib_intl_dgettext = yes; then
  23004.   gt_cv_func_dgettext_libintl=yes
  23005. fi
  23006.  
  23007. fi
  23008.  
  23009.  
  23010.     if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
  23011.       echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
  23012. echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6
  23013.       echo "$as_me:$LINENO: result: " >&5
  23014. echo "${ECHO_T}" >&6
  23015.           echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
  23016. echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6
  23017. if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
  23018.   echo $ECHO_N "(cached) $ECHO_C" >&6
  23019. else
  23020.   ac_check_lib_save_LIBS=$LIBS
  23021. LIBS="-lintl -liconv $LIBS"
  23022. cat >conftest.$ac_ext <<_ACEOF
  23023. /* confdefs.h.  */
  23024. _ACEOF
  23025. cat confdefs.h >>conftest.$ac_ext
  23026. cat >>conftest.$ac_ext <<_ACEOF
  23027. /* end confdefs.h.  */
  23028.  
  23029. /* Override any gcc2 internal prototype to avoid an error.  */
  23030. #ifdef __cplusplus
  23031. extern "C"
  23032. #endif
  23033. /* We use char because int might match the return type of a gcc2
  23034.    builtin and then its argument prototype would still apply.  */
  23035. char dcgettext ();
  23036. int
  23037. main ()
  23038. {
  23039. dcgettext ();
  23040.   ;
  23041.   return 0;
  23042. }
  23043. _ACEOF
  23044. rm -f conftest.$ac_objext conftest$ac_exeext
  23045. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23046.   (eval $ac_link) 2>conftest.er1
  23047.   ac_status=$?
  23048.   grep -v '^ *+' conftest.er1 >conftest.err
  23049.   rm -f conftest.er1
  23050.   cat conftest.err >&5
  23051.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23052.   (exit $ac_status); } &&
  23053.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  23054.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23055.   (eval $ac_try) 2>&5
  23056.   ac_status=$?
  23057.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23058.   (exit $ac_status); }; } &&
  23059.      { ac_try='test -s conftest$ac_exeext'
  23060.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23061.   (eval $ac_try) 2>&5
  23062.   ac_status=$?
  23063.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23064.   (exit $ac_status); }; }; then
  23065.   ac_cv_lib_intl_dcgettext=yes
  23066. else
  23067.   echo "$as_me: failed program was:" >&5
  23068. sed 's/^/| /' conftest.$ac_ext >&5
  23069.  
  23070. ac_cv_lib_intl_dcgettext=no
  23071. fi
  23072. rm -f conftest.err conftest.$ac_objext \
  23073.       conftest$ac_exeext conftest.$ac_ext
  23074. LIBS=$ac_check_lib_save_LIBS
  23075. fi
  23076. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
  23077. echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6
  23078. if test $ac_cv_lib_intl_dcgettext = yes; then
  23079.   gt_cv_func_dgettext_libintl=yes
  23080.             libintl_extra_libs=-liconv
  23081. else
  23082.   :
  23083. fi
  23084.  
  23085.         fi
  23086.  
  23087.         #
  23088.         # If we found libintl, then check in it for bind_textdomain_codeset();
  23089.         # we'll prefer libc if neither have bind_textdomain_codeset(),
  23090.         # and both have dgettext
  23091.         #
  23092.         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
  23093.           glib_save_LIBS="$LIBS"
  23094.           LIBS="$LIBS -lintl $libintl_extra_libs"
  23095.           unset ac_cv_func_bind_textdomain_codeset
  23096.  
  23097. for ac_func in bind_textdomain_codeset
  23098. do
  23099. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  23100. echo "$as_me:$LINENO: checking for $ac_func" >&5
  23101. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  23102. if eval "test \"\${$as_ac_var+set}\" = set"; then
  23103.   echo $ECHO_N "(cached) $ECHO_C" >&6
  23104. else
  23105.   cat >conftest.$ac_ext <<_ACEOF
  23106. /* confdefs.h.  */
  23107. _ACEOF
  23108. cat confdefs.h >>conftest.$ac_ext
  23109. cat >>conftest.$ac_ext <<_ACEOF
  23110. /* end confdefs.h.  */
  23111. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  23112.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  23113. #define $ac_func innocuous_$ac_func
  23114.  
  23115. /* System header to define __stub macros and hopefully few prototypes,
  23116.     which can conflict with char $ac_func (); below.
  23117.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23118.     <limits.h> exists even on freestanding compilers.  */
  23119.  
  23120. #ifdef __STDC__
  23121. # include <limits.h>
  23122. #else
  23123. # include <assert.h>
  23124. #endif
  23125.  
  23126. #undef $ac_func
  23127.  
  23128. /* Override any gcc2 internal prototype to avoid an error.  */
  23129. #ifdef __cplusplus
  23130. extern "C"
  23131. {
  23132. #endif
  23133. /* We use char because int might match the return type of a gcc2
  23134.    builtin and then its argument prototype would still apply.  */
  23135. char $ac_func ();
  23136. /* The GNU C library defines this for functions which it implements
  23137.     to always fail with ENOSYS.  Some functions are actually named
  23138.     something starting with __ and the normal name is an alias.  */
  23139. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  23140. choke me
  23141. #else
  23142. char (*f) () = $ac_func;
  23143. #endif
  23144. #ifdef __cplusplus
  23145. }
  23146. #endif
  23147.  
  23148. int
  23149. main ()
  23150. {
  23151. return f != $ac_func;
  23152.   ;
  23153.   return 0;
  23154. }
  23155. _ACEOF
  23156. rm -f conftest.$ac_objext conftest$ac_exeext
  23157. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23158.   (eval $ac_link) 2>conftest.er1
  23159.   ac_status=$?
  23160.   grep -v '^ *+' conftest.er1 >conftest.err
  23161.   rm -f conftest.er1
  23162.   cat conftest.err >&5
  23163.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23164.   (exit $ac_status); } &&
  23165.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  23166.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23167.   (eval $ac_try) 2>&5
  23168.   ac_status=$?
  23169.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23170.   (exit $ac_status); }; } &&
  23171.      { ac_try='test -s conftest$ac_exeext'
  23172.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23173.   (eval $ac_try) 2>&5
  23174.   ac_status=$?
  23175.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23176.   (exit $ac_status); }; }; then
  23177.   eval "$as_ac_var=yes"
  23178. else
  23179.   echo "$as_me: failed program was:" >&5
  23180. sed 's/^/| /' conftest.$ac_ext >&5
  23181.  
  23182. eval "$as_ac_var=no"
  23183. fi
  23184. rm -f conftest.err conftest.$ac_objext \
  23185.       conftest$ac_exeext conftest.$ac_ext
  23186. fi
  23187. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  23188. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  23189. if test `eval echo '${'$as_ac_var'}'` = yes; then
  23190.   cat >>confdefs.h <<_ACEOF
  23191. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  23192. _ACEOF
  23193.  
  23194. fi
  23195. done
  23196.  
  23197.           LIBS="$glib_save_LIBS"
  23198.  
  23199.           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
  23200.             gt_cv_func_dgettext_libc=no
  23201.           else
  23202.             if test "$gt_cv_func_dgettext_libc" = "yes"; then
  23203.               gt_cv_func_dgettext_libintl=no
  23204.             fi
  23205.           fi
  23206.         fi
  23207.       fi
  23208.  
  23209.       if test "$gt_cv_func_dgettext_libc" = "yes" \
  23210.     || test "$gt_cv_func_dgettext_libintl" = "yes"; then
  23211.         gt_cv_have_gettext=yes
  23212.       fi
  23213.  
  23214.       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
  23215.         INTLLIBS="-lintl $libintl_extra_libs"
  23216.       fi
  23217.  
  23218.       if test "$gt_cv_have_gettext" = "yes"; then
  23219.  
  23220. cat >>confdefs.h <<\_ACEOF
  23221. #define HAVE_GETTEXT 1
  23222. _ACEOF
  23223.  
  23224.     # Extract the first word of "msgfmt", so it can be a program name with args.
  23225. set dummy msgfmt; ac_word=$2
  23226. echo "$as_me:$LINENO: checking for $ac_word" >&5
  23227. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  23228. if test "${ac_cv_path_MSGFMT+set}" = set; then
  23229.   echo $ECHO_N "(cached) $ECHO_C" >&6
  23230. else
  23231.   case "$MSGFMT" in
  23232.   /*)
  23233.   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  23234.   ;;
  23235.   *)
  23236.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  23237.   for ac_dir in $PATH; do
  23238.     test -z "$ac_dir" && ac_dir=.
  23239.     if test -f $ac_dir/$ac_word; then
  23240.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
  23241.     ac_cv_path_MSGFMT="$ac_dir/$ac_word"
  23242.     break
  23243.       fi
  23244.     fi
  23245.   done
  23246.   IFS="$ac_save_ifs"
  23247.   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
  23248.   ;;
  23249. esac
  23250. fi
  23251. MSGFMT="$ac_cv_path_MSGFMT"
  23252. if test "$MSGFMT" != "no"; then
  23253.   echo "$as_me:$LINENO: result: $MSGFMT" >&5
  23254. echo "${ECHO_T}$MSGFMT" >&6
  23255. else
  23256.   echo "$as_me:$LINENO: result: no" >&5
  23257. echo "${ECHO_T}no" >&6
  23258. fi
  23259.     if test "$MSGFMT" != "no"; then
  23260.           glib_save_LIBS="$LIBS"
  23261.           LIBS="$LIBS $INTLLIBS"
  23262.  
  23263. for ac_func in dcgettext
  23264. do
  23265. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  23266. echo "$as_me:$LINENO: checking for $ac_func" >&5
  23267. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  23268. if eval "test \"\${$as_ac_var+set}\" = set"; then
  23269.   echo $ECHO_N "(cached) $ECHO_C" >&6
  23270. else
  23271.   cat >conftest.$ac_ext <<_ACEOF
  23272. /* confdefs.h.  */
  23273. _ACEOF
  23274. cat confdefs.h >>conftest.$ac_ext
  23275. cat >>conftest.$ac_ext <<_ACEOF
  23276. /* end confdefs.h.  */
  23277. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  23278.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  23279. #define $ac_func innocuous_$ac_func
  23280.  
  23281. /* System header to define __stub macros and hopefully few prototypes,
  23282.     which can conflict with char $ac_func (); below.
  23283.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23284.     <limits.h> exists even on freestanding compilers.  */
  23285.  
  23286. #ifdef __STDC__
  23287. # include <limits.h>
  23288. #else
  23289. # include <assert.h>
  23290. #endif
  23291.  
  23292. #undef $ac_func
  23293.  
  23294. /* Override any gcc2 internal prototype to avoid an error.  */
  23295. #ifdef __cplusplus
  23296. extern "C"
  23297. {
  23298. #endif
  23299. /* We use char because int might match the return type of a gcc2
  23300.    builtin and then its argument prototype would still apply.  */
  23301. char $ac_func ();
  23302. /* The GNU C library defines this for functions which it implements
  23303.     to always fail with ENOSYS.  Some functions are actually named
  23304.     something starting with __ and the normal name is an alias.  */
  23305. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  23306. choke me
  23307. #else
  23308. char (*f) () = $ac_func;
  23309. #endif
  23310. #ifdef __cplusplus
  23311. }
  23312. #endif
  23313.  
  23314. int
  23315. main ()
  23316. {
  23317. return f != $ac_func;
  23318.   ;
  23319.   return 0;
  23320. }
  23321. _ACEOF
  23322. rm -f conftest.$ac_objext conftest$ac_exeext
  23323. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23324.   (eval $ac_link) 2>conftest.er1
  23325.   ac_status=$?
  23326.   grep -v '^ *+' conftest.er1 >conftest.err
  23327.   rm -f conftest.er1
  23328.   cat conftest.err >&5
  23329.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23330.   (exit $ac_status); } &&
  23331.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  23332.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23333.   (eval $ac_try) 2>&5
  23334.   ac_status=$?
  23335.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23336.   (exit $ac_status); }; } &&
  23337.      { ac_try='test -s conftest$ac_exeext'
  23338.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23339.   (eval $ac_try) 2>&5
  23340.   ac_status=$?
  23341.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23342.   (exit $ac_status); }; }; then
  23343.   eval "$as_ac_var=yes"
  23344. else
  23345.   echo "$as_me: failed program was:" >&5
  23346. sed 's/^/| /' conftest.$ac_ext >&5
  23347.  
  23348. eval "$as_ac_var=no"
  23349. fi
  23350. rm -f conftest.err conftest.$ac_objext \
  23351.       conftest$ac_exeext conftest.$ac_ext
  23352. fi
  23353. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  23354. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  23355. if test `eval echo '${'$as_ac_var'}'` = yes; then
  23356.   cat >>confdefs.h <<_ACEOF
  23357. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  23358. _ACEOF
  23359.  
  23360. fi
  23361. done
  23362.  
  23363.       # Extract the first word of "gmsgfmt", so it can be a program name with args.
  23364. set dummy gmsgfmt; ac_word=$2
  23365. echo "$as_me:$LINENO: checking for $ac_word" >&5
  23366. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  23367. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  23368.   echo $ECHO_N "(cached) $ECHO_C" >&6
  23369. else
  23370.   case $GMSGFMT in
  23371.   [\\/]* | ?:[\\/]*)
  23372.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  23373.   ;;
  23374.   *)
  23375.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23376. for as_dir in $PATH
  23377. do
  23378.   IFS=$as_save_IFS
  23379.   test -z "$as_dir" && as_dir=.
  23380.   for ac_exec_ext in '' $ac_executable_extensions; do
  23381.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23382.     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  23383.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23384.     break 2
  23385.   fi
  23386. done
  23387. done
  23388.  
  23389.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  23390.   ;;
  23391. esac
  23392. fi
  23393. GMSGFMT=$ac_cv_path_GMSGFMT
  23394.  
  23395. if test -n "$GMSGFMT"; then
  23396.   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  23397. echo "${ECHO_T}$GMSGFMT" >&6
  23398. else
  23399.   echo "$as_me:$LINENO: result: no" >&5
  23400. echo "${ECHO_T}no" >&6
  23401. fi
  23402.  
  23403.       # Extract the first word of "xgettext", so it can be a program name with args.
  23404. set dummy xgettext; ac_word=$2
  23405. echo "$as_me:$LINENO: checking for $ac_word" >&5
  23406. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  23407. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  23408.   echo $ECHO_N "(cached) $ECHO_C" >&6
  23409. else
  23410.   case "$XGETTEXT" in
  23411.   /*)
  23412.   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  23413.   ;;
  23414.   *)
  23415.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  23416.   for ac_dir in $PATH; do
  23417.     test -z "$ac_dir" && ac_dir=.
  23418.     if test -f $ac_dir/$ac_word; then
  23419.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
  23420.     ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  23421.     break
  23422.       fi
  23423.     fi
  23424.   done
  23425.   IFS="$ac_save_ifs"
  23426.   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  23427.   ;;
  23428. esac
  23429. fi
  23430. XGETTEXT="$ac_cv_path_XGETTEXT"
  23431. if test "$XGETTEXT" != ":"; then
  23432.   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  23433. echo "${ECHO_T}$XGETTEXT" >&6
  23434. else
  23435.   echo "$as_me:$LINENO: result: no" >&5
  23436. echo "${ECHO_T}no" >&6
  23437. fi
  23438.  
  23439.       cat >conftest.$ac_ext <<_ACEOF
  23440. /* confdefs.h.  */
  23441. _ACEOF
  23442. cat confdefs.h >>conftest.$ac_ext
  23443. cat >>conftest.$ac_ext <<_ACEOF
  23444. /* end confdefs.h.  */
  23445.  
  23446. int
  23447. main ()
  23448. {
  23449. extern int _nl_msg_cat_cntr;
  23450.              return _nl_msg_cat_cntr
  23451.   ;
  23452.   return 0;
  23453. }
  23454. _ACEOF
  23455. rm -f conftest.$ac_objext conftest$ac_exeext
  23456. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23457.   (eval $ac_link) 2>conftest.er1
  23458.   ac_status=$?
  23459.   grep -v '^ *+' conftest.er1 >conftest.err
  23460.   rm -f conftest.er1
  23461.   cat conftest.err >&5
  23462.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23463.   (exit $ac_status); } &&
  23464.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  23465.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23466.   (eval $ac_try) 2>&5
  23467.   ac_status=$?
  23468.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23469.   (exit $ac_status); }; } &&
  23470.      { ac_try='test -s conftest$ac_exeext'
  23471.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23472.   (eval $ac_try) 2>&5
  23473.   ac_status=$?
  23474.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23475.   (exit $ac_status); }; }; then
  23476.   CATOBJEXT=.gmo
  23477.              DATADIRNAME=share
  23478. else
  23479.   echo "$as_me: failed program was:" >&5
  23480. sed 's/^/| /' conftest.$ac_ext >&5
  23481.  
  23482. case $host in
  23483.         *-*-solaris*)
  23484.                                                         echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
  23485. echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6
  23486. if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
  23487.   echo $ECHO_N "(cached) $ECHO_C" >&6
  23488. else
  23489.   cat >conftest.$ac_ext <<_ACEOF
  23490. /* confdefs.h.  */
  23491. _ACEOF
  23492. cat confdefs.h >>conftest.$ac_ext
  23493. cat >>conftest.$ac_ext <<_ACEOF
  23494. /* end confdefs.h.  */
  23495. /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
  23496.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  23497. #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
  23498.  
  23499. /* System header to define __stub macros and hopefully few prototypes,
  23500.     which can conflict with char bind_textdomain_codeset (); below.
  23501.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23502.     <limits.h> exists even on freestanding compilers.  */
  23503.  
  23504. #ifdef __STDC__
  23505. # include <limits.h>
  23506. #else
  23507. # include <assert.h>
  23508. #endif
  23509.  
  23510. #undef bind_textdomain_codeset
  23511.  
  23512. /* Override any gcc2 internal prototype to avoid an error.  */
  23513. #ifdef __cplusplus
  23514. extern "C"
  23515. {
  23516. #endif
  23517. /* We use char because int might match the return type of a gcc2
  23518.    builtin and then its argument prototype would still apply.  */
  23519. char bind_textdomain_codeset ();
  23520. /* The GNU C library defines this for functions which it implements
  23521.     to always fail with ENOSYS.  Some functions are actually named
  23522.     something starting with __ and the normal name is an alias.  */
  23523. #if defined (__stub_bind_textdomain_codeset) || defined (__stub___bind_textdomain_codeset)
  23524. choke me
  23525. #else
  23526. char (*f) () = bind_textdomain_codeset;
  23527. #endif
  23528. #ifdef __cplusplus
  23529. }
  23530. #endif
  23531.  
  23532. int
  23533. main ()
  23534. {
  23535. return f != bind_textdomain_codeset;
  23536.   ;
  23537.   return 0;
  23538. }
  23539. _ACEOF
  23540. rm -f conftest.$ac_objext conftest$ac_exeext
  23541. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23542.   (eval $ac_link) 2>conftest.er1
  23543.   ac_status=$?
  23544.   grep -v '^ *+' conftest.er1 >conftest.err
  23545.   rm -f conftest.er1
  23546.   cat conftest.err >&5
  23547.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23548.   (exit $ac_status); } &&
  23549.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  23550.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23551.   (eval $ac_try) 2>&5
  23552.   ac_status=$?
  23553.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23554.   (exit $ac_status); }; } &&
  23555.      { ac_try='test -s conftest$ac_exeext'
  23556.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23557.   (eval $ac_try) 2>&5
  23558.   ac_status=$?
  23559.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23560.   (exit $ac_status); }; }; then
  23561.   ac_cv_func_bind_textdomain_codeset=yes
  23562. else
  23563.   echo "$as_me: failed program was:" >&5
  23564. sed 's/^/| /' conftest.$ac_ext >&5
  23565.  
  23566. ac_cv_func_bind_textdomain_codeset=no
  23567. fi
  23568. rm -f conftest.err conftest.$ac_objext \
  23569.       conftest$ac_exeext conftest.$ac_ext
  23570. fi
  23571. echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
  23572. echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6
  23573. if test $ac_cv_func_bind_textdomain_codeset = yes; then
  23574.   CATOBJEXT=.gmo
  23575.                DATADIRNAME=share
  23576. else
  23577.   CATOBJEXT=.mo
  23578.                DATADIRNAME=lib
  23579. fi
  23580.  
  23581.         ;;
  23582.         *)
  23583.         CATOBJEXT=.mo
  23584.             DATADIRNAME=lib
  23585.         ;;
  23586.         esac
  23587. fi
  23588. rm -f conftest.err conftest.$ac_objext \
  23589.       conftest$ac_exeext conftest.$ac_ext
  23590.           LIBS="$glib_save_LIBS"
  23591.       INSTOBJEXT=.mo
  23592.     else
  23593.       gt_cv_have_gettext=no
  23594.     fi
  23595.       fi
  23596.  
  23597. fi
  23598.  
  23599.  
  23600.  
  23601.     if test "$gt_cv_have_gettext" = "yes" ; then
  23602.  
  23603. cat >>confdefs.h <<\_ACEOF
  23604. #define ENABLE_NLS 1
  23605. _ACEOF
  23606.  
  23607.     fi
  23608.  
  23609.         if test "$XGETTEXT" != ":"; then
  23610.                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
  23611.         : ;
  23612.       else
  23613.         echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
  23614. echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
  23615.         XGETTEXT=":"
  23616.       fi
  23617.     fi
  23618.  
  23619.     # We need to process the po/ directory.
  23620.     POSUB=po
  23621.  
  23622.               ac_config_commands="$ac_config_commands default-1"
  23623.  
  23624.  
  23625.                 for lang in $ALL_LINGUAS; do
  23626.       GMOFILES="$GMOFILES $lang.gmo"
  23627.       POFILES="$POFILES $lang.po"
  23628.     done
  23629.  
  23630.  
  23631.  
  23632.  
  23633.  
  23634.  
  23635.  
  23636.  
  23637.  
  23638.  
  23639.  
  23640.  
  23641.  
  23642.    if test "$gt_cv_have_gettext" = "yes"; then
  23643.      if test "x$ALL_LINGUAS" = "x"; then
  23644.        LINGUAS=
  23645.      else
  23646.        echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
  23647. echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
  23648.        NEW_LINGUAS=
  23649.        for presentlang in $ALL_LINGUAS; do
  23650.          useit=no
  23651.          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
  23652.            desiredlanguages="$LINGUAS"
  23653.          else
  23654.            desiredlanguages="$ALL_LINGUAS"
  23655.          fi
  23656.          for desiredlang in $desiredlanguages; do
  23657.         # Use the presentlang catalog if desiredlang is
  23658.            #   a. equal to presentlang, or
  23659.            #   b. a variant of presentlang (because in this case,
  23660.            #      presentlang can be used as a fallback for messages
  23661.            #      which are not translated in the desiredlang catalog).
  23662.            case "$desiredlang" in
  23663.              "$presentlang"*) useit=yes;;
  23664.            esac
  23665.          done
  23666.          if test $useit = yes; then
  23667.            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
  23668.          fi
  23669.        done
  23670.        LINGUAS=$NEW_LINGUAS
  23671.        echo "$as_me:$LINENO: result: $LINGUAS" >&5
  23672. echo "${ECHO_T}$LINGUAS" >&6
  23673.      fi
  23674.  
  23675.           if test -n "$LINGUAS"; then
  23676.        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
  23677.      fi
  23678.    fi
  23679.  
  23680.             MKINSTALLDIRS=
  23681.    if test -n "$ac_aux_dir"; then
  23682.      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
  23683.    fi
  23684.    if test -z "$MKINSTALLDIRS"; then
  23685.      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  23686.    fi
  23687.  
  23688.  
  23689.          test -d po || mkdir po
  23690.    if test "x$srcdir" != "x."; then
  23691.      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
  23692.        posrcprefix="$srcdir/"
  23693.      else
  23694.        posrcprefix="../$srcdir/"
  23695.      fi
  23696.    else
  23697.      posrcprefix="../"
  23698.    fi
  23699.    rm -f po/POTFILES
  23700.    sed -e "/^#/d" -e "/^\$/d" -e "s,.*,    $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
  23701.     < $srcdir/po/POTFILES.in > po/POTFILES
  23702.  
  23703.  
  23704.  
  23705. ###############################
  23706. # Checks for required libraries
  23707. ###############################
  23708.  
  23709. # Check whether --enable-glibtest or --disable-glibtest was given.
  23710. if test "${enable_glibtest+set}" = set; then
  23711.   enableval="$enable_glibtest"
  23712.  
  23713. else
  23714.   enable_glibtest=yes
  23715. fi;
  23716.  
  23717.   pkg_config_args=glib-2.0
  23718.   for module in . gobject
  23719.   do
  23720.       case "$module" in
  23721.          gmodule)
  23722.              pkg_config_args="$pkg_config_args gmodule-2.0"
  23723.          ;;
  23724.          gobject)
  23725.              pkg_config_args="$pkg_config_args gobject-2.0"
  23726.          ;;
  23727.          gthread)
  23728.              pkg_config_args="$pkg_config_args gthread-2.0"
  23729.          ;;
  23730.       esac
  23731.   done
  23732.  
  23733.   # Extract the first word of "pkg-config", so it can be a program name with args.
  23734. set dummy pkg-config; ac_word=$2
  23735. echo "$as_me:$LINENO: checking for $ac_word" >&5
  23736. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  23737. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  23738.   echo $ECHO_N "(cached) $ECHO_C" >&6
  23739. else
  23740.   case $PKG_CONFIG in
  23741.   [\\/]* | ?:[\\/]*)
  23742.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  23743.   ;;
  23744.   *)
  23745.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23746. for as_dir in $PATH
  23747. do
  23748.   IFS=$as_save_IFS
  23749.   test -z "$as_dir" && as_dir=.
  23750.   for ac_exec_ext in '' $ac_executable_extensions; do
  23751.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23752.     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  23753.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23754.     break 2
  23755.   fi
  23756. done
  23757. done
  23758.  
  23759.   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  23760.   ;;
  23761. esac
  23762. fi
  23763. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  23764.  
  23765. if test -n "$PKG_CONFIG"; then
  23766.   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  23767. echo "${ECHO_T}$PKG_CONFIG" >&6
  23768. else
  23769.   echo "$as_me:$LINENO: result: no" >&5
  23770. echo "${ECHO_T}no" >&6
  23771. fi
  23772.  
  23773.  
  23774.   no_glib=""
  23775.  
  23776.   if test x$PKG_CONFIG != xno ; then
  23777.     if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
  23778.       :
  23779.     else
  23780.       echo *** pkg-config too old; version 0.7 or better required.
  23781.       no_glib=yes
  23782.       PKG_CONFIG=no
  23783.     fi
  23784.   else
  23785.     no_glib=yes
  23786.   fi
  23787.  
  23788.   min_glib_version=2.4.5
  23789.   echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
  23790. echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6
  23791.  
  23792.   if test x$PKG_CONFIG != xno ; then
  23793.     ## don't try to run the test against uninstalled libtool libs
  23794.     if $PKG_CONFIG --uninstalled $pkg_config_args; then
  23795.       echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
  23796.       enable_glibtest=no
  23797.     fi
  23798.  
  23799.     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
  23800.       :
  23801.     else
  23802.       no_glib=yes
  23803.     fi
  23804.   fi
  23805.  
  23806.   if test x"$no_glib" = x ; then
  23807.     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
  23808.     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
  23809.     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
  23810.  
  23811.     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
  23812.     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
  23813.     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
  23814.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  23815.     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
  23816.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  23817.     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
  23818.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  23819.     if test "x$enable_glibtest" = "xyes" ; then
  23820.       ac_save_CFLAGS="$CFLAGS"
  23821.       ac_save_LIBS="$LIBS"
  23822.       CFLAGS="$CFLAGS $GLIB_CFLAGS"
  23823.       LIBS="$GLIB_LIBS $LIBS"
  23824.       rm -f conf.glibtest
  23825.       if test "$cross_compiling" = yes; then
  23826.   echo $ac_n "cross compiling; assumed OK... $ac_c"
  23827. else
  23828.   cat >conftest.$ac_ext <<_ACEOF
  23829. /* confdefs.h.  */
  23830. _ACEOF
  23831. cat confdefs.h >>conftest.$ac_ext
  23832. cat >>conftest.$ac_ext <<_ACEOF
  23833. /* end confdefs.h.  */
  23834.  
  23835. #include <glib.h>
  23836. #include <stdio.h>
  23837. #include <stdlib.h>
  23838.  
  23839. int
  23840. main ()
  23841. {
  23842.   int major, minor, micro;
  23843.   char *tmp_version;
  23844.  
  23845.   system ("touch conf.glibtest");
  23846.  
  23847.   /* HP/UX 9 (%@#!) writes to sscanf strings */
  23848.   tmp_version = g_strdup("$min_glib_version");
  23849.   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
  23850.      printf("%s, bad version string\n", "$min_glib_version");
  23851.      exit(1);
  23852.    }
  23853.  
  23854.   if ((glib_major_version != $glib_config_major_version) ||
  23855.       (glib_minor_version != $glib_config_minor_version) ||
  23856.       (glib_micro_version != $glib_config_micro_version))
  23857.     {
  23858.       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
  23859.              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
  23860.              glib_major_version, glib_minor_version, glib_micro_version);
  23861.       printf ("*** was found! If pkg-config was correct, then it is best\n");
  23862.       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
  23863.       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  23864.       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  23865.       printf("*** required on your system.\n");
  23866.       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
  23867.       printf("*** to point to the correct configuration files\n");
  23868.     }
  23869.   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
  23870.        (glib_minor_version != GLIB_MINOR_VERSION) ||
  23871.            (glib_micro_version != GLIB_MICRO_VERSION))
  23872.     {
  23873.       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
  23874.          GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
  23875.       printf("*** library (version %d.%d.%d)\n",
  23876.          glib_major_version, glib_minor_version, glib_micro_version);
  23877.     }
  23878.   else
  23879.     {
  23880.       if ((glib_major_version > major) ||
  23881.         ((glib_major_version == major) && (glib_minor_version > minor)) ||
  23882.         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
  23883.       {
  23884.         return 0;
  23885.        }
  23886.      else
  23887.       {
  23888.         printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
  23889.                glib_major_version, glib_minor_version, glib_micro_version);
  23890.         printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
  23891.            major, minor, micro);
  23892.         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
  23893.         printf("***\n");
  23894.         printf("*** If you have already installed a sufficiently new version, this error\n");
  23895.         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
  23896.         printf("*** being found. The easiest way to fix this is to remove the old version\n");
  23897.         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
  23898.         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
  23899.         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  23900.         printf("*** so that the correct libraries are found at run-time))\n");
  23901.       }
  23902.     }
  23903.   return 1;
  23904. }
  23905.  
  23906. _ACEOF
  23907. rm -f conftest$ac_exeext
  23908. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23909.   (eval $ac_link) 2>&5
  23910.   ac_status=$?
  23911.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23912.   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23913.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23914.   (eval $ac_try) 2>&5
  23915.   ac_status=$?
  23916.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23917.   (exit $ac_status); }; }; then
  23918.   :
  23919. else
  23920.   echo "$as_me: program exited with status $ac_status" >&5
  23921. echo "$as_me: failed program was:" >&5
  23922. sed 's/^/| /' conftest.$ac_ext >&5
  23923.  
  23924. ( exit $ac_status )
  23925. no_glib=yes
  23926. fi
  23927. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23928. fi
  23929.        CFLAGS="$ac_save_CFLAGS"
  23930.        LIBS="$ac_save_LIBS"
  23931.      fi
  23932.   fi
  23933.   if test "x$no_glib" = x ; then
  23934.      echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
  23935. echo "${ECHO_T}yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6
  23936.      :
  23937.   else
  23938.      echo "$as_me:$LINENO: result: no" >&5
  23939. echo "${ECHO_T}no" >&6
  23940.      if test "$PKG_CONFIG" = "no" ; then
  23941.        echo "*** A new enough version of pkg-config was not found."
  23942.        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
  23943.      else
  23944.        if test -f conf.glibtest ; then
  23945.         :
  23946.        else
  23947.           echo "*** Could not run GLIB test program, checking why..."
  23948.           ac_save_CFLAGS="$CFLAGS"
  23949.           ac_save_LIBS="$LIBS"
  23950.           CFLAGS="$CFLAGS $GLIB_CFLAGS"
  23951.           LIBS="$LIBS $GLIB_LIBS"
  23952.           cat >conftest.$ac_ext <<_ACEOF
  23953. /* confdefs.h.  */
  23954. _ACEOF
  23955. cat confdefs.h >>conftest.$ac_ext
  23956. cat >>conftest.$ac_ext <<_ACEOF
  23957. /* end confdefs.h.  */
  23958.  
  23959. #include <glib.h>
  23960. #include <stdio.h>
  23961.  
  23962. int
  23963. main ()
  23964. {
  23965.  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
  23966.   ;
  23967.   return 0;
  23968. }
  23969. _ACEOF
  23970. rm -f conftest.$ac_objext conftest$ac_exeext
  23971. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23972.   (eval $ac_link) 2>conftest.er1
  23973.   ac_status=$?
  23974.   grep -v '^ *+' conftest.er1 >conftest.err
  23975.   rm -f conftest.er1
  23976.   cat conftest.err >&5
  23977.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23978.   (exit $ac_status); } &&
  23979.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  23980.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23981.   (eval $ac_try) 2>&5
  23982.   ac_status=$?
  23983.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23984.   (exit $ac_status); }; } &&
  23985.      { ac_try='test -s conftest$ac_exeext'
  23986.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23987.   (eval $ac_try) 2>&5
  23988.   ac_status=$?
  23989.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23990.   (exit $ac_status); }; }; then
  23991.    echo "*** The test program compiled, but did not run. This usually means"
  23992.           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
  23993.           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
  23994.           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  23995.           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
  23996.           echo "*** is required on your system"
  23997.       echo "***"
  23998.           echo "*** If you have an old version installed, it is best to remove it, although"
  23999.           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  24000. else
  24001.   echo "$as_me: failed program was:" >&5
  24002. sed 's/^/| /' conftest.$ac_ext >&5
  24003.  
  24004.  echo "*** The test program failed to compile or link. See the file config.log for the"
  24005.           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
  24006. fi
  24007. rm -f conftest.err conftest.$ac_objext \
  24008.       conftest$ac_exeext conftest.$ac_ext
  24009.           CFLAGS="$ac_save_CFLAGS"
  24010.           LIBS="$ac_save_LIBS"
  24011.        fi
  24012.      fi
  24013.      GLIB_CFLAGS=""
  24014.      GLIB_LIBS=""
  24015.      GLIB_GENMARSHAL=""
  24016.      GOBJECT_QUERY=""
  24017.      GLIB_MKENUMS=""
  24018.      { { echo "$as_me:$LINENO: error: Test for GLIB failed. See the file 'INSTALL' for help." >&5
  24019. echo "$as_me: error: Test for GLIB failed. See the file 'INSTALL' for help." >&2;}
  24020.    { (exit 1); exit 1; }; }
  24021.   fi
  24022.  
  24023.  
  24024.  
  24025.  
  24026.  
  24027.   rm -f conf.glibtest
  24028.  
  24029.  
  24030.  
  24031.   succeeded=no
  24032.  
  24033.   if test -z "$PKG_CONFIG"; then
  24034.     # Extract the first word of "pkg-config", so it can be a program name with args.
  24035. set dummy pkg-config; ac_word=$2
  24036. echo "$as_me:$LINENO: checking for $ac_word" >&5
  24037. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  24038. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  24039.   echo $ECHO_N "(cached) $ECHO_C" >&6
  24040. else
  24041.   case $PKG_CONFIG in
  24042.   [\\/]* | ?:[\\/]*)
  24043.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  24044.   ;;
  24045.   *)
  24046.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24047. for as_dir in $PATH
  24048. do
  24049.   IFS=$as_save_IFS
  24050.   test -z "$as_dir" && as_dir=.
  24051.   for ac_exec_ext in '' $ac_executable_extensions; do
  24052.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  24053.     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  24054.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24055.     break 2
  24056.   fi
  24057. done
  24058. done
  24059.  
  24060.   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  24061.   ;;
  24062. esac
  24063. fi
  24064. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  24065.  
  24066. if test -n "$PKG_CONFIG"; then
  24067.   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  24068. echo "${ECHO_T}$PKG_CONFIG" >&6
  24069. else
  24070.   echo "$as_me:$LINENO: result: no" >&5
  24071. echo "${ECHO_T}no" >&6
  24072. fi
  24073.  
  24074.   fi
  24075.  
  24076.   if test "$PKG_CONFIG" = "no" ; then
  24077.      echo "*** The pkg-config script could not be found. Make sure it is"
  24078.      echo "*** in your path, or set the PKG_CONFIG environment variable"
  24079.      echo "*** to the full path to pkg-config."
  24080.      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  24081.   else
  24082.      PKG_CONFIG_MIN_VERSION=0.9.0
  24083.      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  24084.         echo "$as_me:$LINENO: checking for gmodule-2.0 gobject-2.0" >&5
  24085. echo $ECHO_N "checking for gmodule-2.0 gobject-2.0... $ECHO_C" >&6
  24086.  
  24087.         if $PKG_CONFIG --exists "gmodule-2.0 gobject-2.0" ; then
  24088.             echo "$as_me:$LINENO: result: yes" >&5
  24089. echo "${ECHO_T}yes" >&6
  24090.             succeeded=yes
  24091.  
  24092.             echo "$as_me:$LINENO: checking GMODULE_CFLAGS" >&5
  24093. echo $ECHO_N "checking GMODULE_CFLAGS... $ECHO_C" >&6
  24094.             GMODULE_CFLAGS=`$PKG_CONFIG --cflags "gmodule-2.0 gobject-2.0"`
  24095.             echo "$as_me:$LINENO: result: $GMODULE_CFLAGS" >&5
  24096. echo "${ECHO_T}$GMODULE_CFLAGS" >&6
  24097.  
  24098.             echo "$as_me:$LINENO: checking GMODULE_LIBS" >&5
  24099. echo $ECHO_N "checking GMODULE_LIBS... $ECHO_C" >&6
  24100.             GMODULE_LIBS=`$PKG_CONFIG --libs "gmodule-2.0 gobject-2.0"`
  24101.             echo "$as_me:$LINENO: result: $GMODULE_LIBS" >&5
  24102. echo "${ECHO_T}$GMODULE_LIBS" >&6
  24103.         else
  24104.             GMODULE_CFLAGS=""
  24105.             GMODULE_LIBS=""
  24106.             ## If we have a custom action on failure, don't print errors, but
  24107.             ## do set a variable so people can do so.
  24108.             GMODULE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gmodule-2.0 gobject-2.0"`
  24109.             echo $GMODULE_PKG_ERRORS
  24110.         fi
  24111.  
  24112.  
  24113.  
  24114.      else
  24115.         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  24116.         echo "*** See http://www.freedesktop.org/software/pkgconfig"
  24117.      fi
  24118.   fi
  24119.  
  24120.   if test $succeeded = yes; then
  24121.      :
  24122.   else
  24123.      { { echo "$as_me:$LINENO: error: Library requirements (gmodule-2.0 gobject-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
  24124. echo "$as_me: error: Library requirements (gmodule-2.0 gobject-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
  24125.    { (exit 1); exit 1; }; }
  24126.   fi
  24127.  
  24128.  
  24129.  
  24130.  
  24131. echo "$as_me:$LINENO: checking if GLib is version 2.7.0 or newer" >&5
  24132. echo $ECHO_N "checking if GLib is version 2.7.0 or newer... $ECHO_C" >&6
  24133. if $PKG_CONFIG --atleast-version=2.7.0 glib-2.0; then
  24134.   have_glib_2_7=yes
  24135. else
  24136.   have_glib_2_7=no
  24137. fi
  24138. echo "$as_me:$LINENO: result: $have_glib_2_7" >&5
  24139. echo "${ECHO_T}$have_glib_2_7" >&6
  24140.  
  24141. gimp_save_LIBS=$LIBS
  24142. LIBS="$LIBS $GLIB_LIBS"
  24143.  
  24144. for ac_func in bind_textdomain_codeset
  24145. do
  24146. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  24147. echo "$as_me:$LINENO: checking for $ac_func" >&5
  24148. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  24149. if eval "test \"\${$as_ac_var+set}\" = set"; then
  24150.   echo $ECHO_N "(cached) $ECHO_C" >&6
  24151. else
  24152.   cat >conftest.$ac_ext <<_ACEOF
  24153. /* confdefs.h.  */
  24154. _ACEOF
  24155. cat confdefs.h >>conftest.$ac_ext
  24156. cat >>conftest.$ac_ext <<_ACEOF
  24157. /* end confdefs.h.  */
  24158. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  24159.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  24160. #define $ac_func innocuous_$ac_func
  24161.  
  24162. /* System header to define __stub macros and hopefully few prototypes,
  24163.     which can conflict with char $ac_func (); below.
  24164.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  24165.     <limits.h> exists even on freestanding compilers.  */
  24166.  
  24167. #ifdef __STDC__
  24168. # include <limits.h>
  24169. #else
  24170. # include <assert.h>
  24171. #endif
  24172.  
  24173. #undef $ac_func
  24174.  
  24175. /* Override any gcc2 internal prototype to avoid an error.  */
  24176. #ifdef __cplusplus
  24177. extern "C"
  24178. {
  24179. #endif
  24180. /* We use char because int might match the return type of a gcc2
  24181.    builtin and then its argument prototype would still apply.  */
  24182. char $ac_func ();
  24183. /* The GNU C library defines this for functions which it implements
  24184.     to always fail with ENOSYS.  Some functions are actually named
  24185.     something starting with __ and the normal name is an alias.  */
  24186. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  24187. choke me
  24188. #else
  24189. char (*f) () = $ac_func;
  24190. #endif
  24191. #ifdef __cplusplus
  24192. }
  24193. #endif
  24194.  
  24195. int
  24196. main ()
  24197. {
  24198. return f != $ac_func;
  24199.   ;
  24200.   return 0;
  24201. }
  24202. _ACEOF
  24203. rm -f conftest.$ac_objext conftest$ac_exeext
  24204. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24205.   (eval $ac_link) 2>conftest.er1
  24206.   ac_status=$?
  24207.   grep -v '^ *+' conftest.er1 >conftest.err
  24208.   rm -f conftest.er1
  24209.   cat conftest.err >&5
  24210.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24211.   (exit $ac_status); } &&
  24212.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  24213.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24214.   (eval $ac_try) 2>&5
  24215.   ac_status=$?
  24216.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24217.   (exit $ac_status); }; } &&
  24218.      { ac_try='test -s conftest$ac_exeext'
  24219.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24220.   (eval $ac_try) 2>&5
  24221.   ac_status=$?
  24222.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24223.   (exit $ac_status); }; }; then
  24224.   eval "$as_ac_var=yes"
  24225. else
  24226.   echo "$as_me: failed program was:" >&5
  24227. sed 's/^/| /' conftest.$ac_ext >&5
  24228.  
  24229. eval "$as_ac_var=no"
  24230. fi
  24231. rm -f conftest.err conftest.$ac_objext \
  24232.       conftest$ac_exeext conftest.$ac_ext
  24233. fi
  24234. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  24235. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  24236. if test `eval echo '${'$as_ac_var'}'` = yes; then
  24237.   cat >>confdefs.h <<_ACEOF
  24238. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  24239. _ACEOF
  24240.  
  24241. fi
  24242. done
  24243.  
  24244. LIBS=$gimp_save_LIBS
  24245.  
  24246.  
  24247.  
  24248. if test "x$ac_path_x_has_been_run" != xyes; then
  24249.   echo "$as_me:$LINENO: checking for X" >&5
  24250. echo $ECHO_N "checking for X... $ECHO_C" >&6
  24251.  
  24252. ac_path_x_has_been_run=yes
  24253.  
  24254. # Check whether --with-x or --without-x was given.
  24255. if test "${with_x+set}" = set; then
  24256.   withval="$with_x"
  24257.  
  24258. fi;
  24259. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  24260. if test "x$with_x" = xno; then
  24261.   # The user explicitly disabled X.
  24262.   have_x=disabled
  24263. else
  24264.   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  24265.     # Both variables are already set.
  24266.     have_x=yes
  24267.   else
  24268.     if test "${ac_cv_have_x+set}" = set; then
  24269.   echo $ECHO_N "(cached) $ECHO_C" >&6
  24270. else
  24271.   # One or both of the vars are not set, and there is no cached value.
  24272. ac_x_includes=no ac_x_libraries=no
  24273. rm -fr conftest.dir
  24274. if mkdir conftest.dir; then
  24275.   cd conftest.dir
  24276.   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  24277.   cat >Imakefile <<'_ACEOF'
  24278. acfindx:
  24279.     @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  24280. _ACEOF
  24281.   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  24282.     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  24283.     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  24284.     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  24285.     for ac_extension in a so sl; do
  24286.       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  24287.      test -f $ac_im_libdir/libX11.$ac_extension; then
  24288.     ac_im_usrlibdir=$ac_im_libdir; break
  24289.       fi
  24290.     done
  24291.     # Screen out bogus values from the imake configuration.  They are
  24292.     # bogus both because they are the default anyway, and because
  24293.     # using them would break gcc on systems where it needs fixed includes.
  24294.     case $ac_im_incroot in
  24295.     /usr/include) ;;
  24296.     *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  24297.     esac
  24298.     case $ac_im_usrlibdir in
  24299.     /usr/lib | /lib) ;;
  24300.     *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  24301.     esac
  24302.   fi
  24303.   cd ..
  24304.   rm -fr conftest.dir
  24305. fi
  24306.  
  24307. # Standard set of common directories for X headers.
  24308. # Check X11 before X11Rn because it is often a symlink to the current release.
  24309. ac_x_header_dirs='
  24310. /usr/X11/include
  24311. /usr/X11R6/include
  24312. /usr/X11R5/include
  24313. /usr/X11R4/include
  24314.  
  24315. /usr/include/X11
  24316. /usr/include/X11R6
  24317. /usr/include/X11R5
  24318. /usr/include/X11R4
  24319.  
  24320. /usr/local/X11/include
  24321. /usr/local/X11R6/include
  24322. /usr/local/X11R5/include
  24323. /usr/local/X11R4/include
  24324.  
  24325. /usr/local/include/X11
  24326. /usr/local/include/X11R6
  24327. /usr/local/include/X11R5
  24328. /usr/local/include/X11R4
  24329.  
  24330. /usr/X386/include
  24331. /usr/x386/include
  24332. /usr/XFree86/include/X11
  24333.  
  24334. /usr/include
  24335. /usr/local/include
  24336. /usr/unsupported/include
  24337. /usr/athena/include
  24338. /usr/local/x11r5/include
  24339. /usr/lpp/Xamples/include
  24340.  
  24341. /usr/openwin/include
  24342. /usr/openwin/share/include'
  24343.  
  24344. if test "$ac_x_includes" = no; then
  24345.   # Guess where to find include files, by looking for a specified header file.
  24346.   # First, try using that file with no special directory specified.
  24347.   cat >conftest.$ac_ext <<_ACEOF
  24348. /* confdefs.h.  */
  24349. _ACEOF
  24350. cat confdefs.h >>conftest.$ac_ext
  24351. cat >>conftest.$ac_ext <<_ACEOF
  24352. /* end confdefs.h.  */
  24353. #include <X11/Intrinsic.h>
  24354. _ACEOF
  24355. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  24356.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  24357.   ac_status=$?
  24358.   grep -v '^ *+' conftest.er1 >conftest.err
  24359.   rm -f conftest.er1
  24360.   cat conftest.err >&5
  24361.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24362.   (exit $ac_status); } >/dev/null; then
  24363.   if test -s conftest.err; then
  24364.     ac_cpp_err=$ac_c_preproc_warn_flag
  24365.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  24366.   else
  24367.     ac_cpp_err=
  24368.   fi
  24369. else
  24370.   ac_cpp_err=yes
  24371. fi
  24372. if test -z "$ac_cpp_err"; then
  24373.   # We can compile using X headers with no special include directory.
  24374. ac_x_includes=
  24375. else
  24376.   echo "$as_me: failed program was:" >&5
  24377. sed 's/^/| /' conftest.$ac_ext >&5
  24378.  
  24379.   for ac_dir in $ac_x_header_dirs; do
  24380.   if test -r "$ac_dir/X11/Intrinsic.h"; then
  24381.     ac_x_includes=$ac_dir
  24382.     break
  24383.   fi
  24384. done
  24385. fi
  24386. rm -f conftest.err conftest.$ac_ext
  24387. fi # $ac_x_includes = no
  24388.  
  24389. if test "$ac_x_libraries" = no; then
  24390.   # Check for the libraries.
  24391.   # See if we find them without any special options.
  24392.   # Don't add to $LIBS permanently.
  24393.   ac_save_LIBS=$LIBS
  24394.   LIBS="-lXt $LIBS"
  24395.   cat >conftest.$ac_ext <<_ACEOF
  24396. /* confdefs.h.  */
  24397. _ACEOF
  24398. cat confdefs.h >>conftest.$ac_ext
  24399. cat >>conftest.$ac_ext <<_ACEOF
  24400. /* end confdefs.h.  */
  24401. #include <X11/Intrinsic.h>
  24402. int
  24403. main ()
  24404. {
  24405. XtMalloc (0)
  24406.   ;
  24407.   return 0;
  24408. }
  24409. _ACEOF
  24410. rm -f conftest.$ac_objext conftest$ac_exeext
  24411. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24412.   (eval $ac_link) 2>conftest.er1
  24413.   ac_status=$?
  24414.   grep -v '^ *+' conftest.er1 >conftest.err
  24415.   rm -f conftest.er1
  24416.   cat conftest.err >&5
  24417.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24418.   (exit $ac_status); } &&
  24419.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  24420.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24421.   (eval $ac_try) 2>&5
  24422.   ac_status=$?
  24423.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24424.   (exit $ac_status); }; } &&
  24425.      { ac_try='test -s conftest$ac_exeext'
  24426.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24427.   (eval $ac_try) 2>&5
  24428.   ac_status=$?
  24429.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24430.   (exit $ac_status); }; }; then
  24431.   LIBS=$ac_save_LIBS
  24432. # We can link X programs with no special library path.
  24433. ac_x_libraries=
  24434. else
  24435.   echo "$as_me: failed program was:" >&5
  24436. sed 's/^/| /' conftest.$ac_ext >&5
  24437.  
  24438. LIBS=$ac_save_LIBS
  24439. for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  24440. do
  24441.   # Don't even attempt the hair of trying to link an X program!
  24442.   for ac_extension in a so sl; do
  24443.     if test -r $ac_dir/libXt.$ac_extension; then
  24444.       ac_x_libraries=$ac_dir
  24445.       break 2
  24446.     fi
  24447.   done
  24448. done
  24449. fi
  24450. rm -f conftest.err conftest.$ac_objext \
  24451.       conftest$ac_exeext conftest.$ac_ext
  24452. fi # $ac_x_libraries = no
  24453.  
  24454. if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
  24455.   # Didn't find X anywhere.  Cache the known absence of X.
  24456.   ac_cv_have_x="have_x=no"
  24457. else
  24458.   # Record where we found X for the cache.
  24459.   ac_cv_have_x="have_x=yes \
  24460.         ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  24461. fi
  24462. fi
  24463.  
  24464.   fi
  24465.   eval "$ac_cv_have_x"
  24466. fi # $with_x != no
  24467.  
  24468. if test "$have_x" != yes; then
  24469.   echo "$as_me:$LINENO: result: $have_x" >&5
  24470. echo "${ECHO_T}$have_x" >&6
  24471.   no_x=yes
  24472. else
  24473.   # If each of the values was on the command line, it overrides each guess.
  24474.   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  24475.   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  24476.   # Update the cache value to reflect the command line values.
  24477.   ac_cv_have_x="have_x=yes \
  24478.         ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  24479.   # It might be that x_includes is empty (headers are found in the
  24480.   # standard search path. Then output the corresponding message
  24481.   ac_out_x_includes=$x_includes
  24482.   test "x$x_includes" = x && ac_out_x_includes="in standard search path"
  24483.   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
  24484. echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
  24485. fi
  24486.  
  24487. fi
  24488. if test "$no_x" = yes; then
  24489.   # Not all programs may use this symbol, but it does not hurt to define it.
  24490.  
  24491. cat >>confdefs.h <<\_ACEOF
  24492. #define X_DISPLAY_MISSING 1
  24493. _ACEOF
  24494.  
  24495.   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  24496. else
  24497.   if test -n "$x_includes"; then
  24498.     X_CFLAGS="$X_CFLAGS -I$x_includes"
  24499.   fi
  24500.  
  24501.   # It would also be nice to do this for all -L options, not just this one.
  24502.   if test -n "$x_libraries"; then
  24503.     X_LIBS="$X_LIBS -L$x_libraries"
  24504.     # For Solaris; some versions of Sun CC require a space after -R and
  24505.     # others require no space.  Words are not sufficient . . . .
  24506.     case `(uname -sr) 2>/dev/null` in
  24507.     "SunOS 5"*)
  24508.       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
  24509. echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
  24510.       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  24511.       cat >conftest.$ac_ext <<_ACEOF
  24512. /* confdefs.h.  */
  24513. _ACEOF
  24514. cat confdefs.h >>conftest.$ac_ext
  24515. cat >>conftest.$ac_ext <<_ACEOF
  24516. /* end confdefs.h.  */
  24517.  
  24518. int
  24519. main ()
  24520. {
  24521.  
  24522.   ;
  24523.   return 0;
  24524. }
  24525. _ACEOF
  24526. rm -f conftest.$ac_objext conftest$ac_exeext
  24527. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24528.   (eval $ac_link) 2>conftest.er1
  24529.   ac_status=$?
  24530.   grep -v '^ *+' conftest.er1 >conftest.err
  24531.   rm -f conftest.er1
  24532.   cat conftest.err >&5
  24533.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24534.   (exit $ac_status); } &&
  24535.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  24536.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24537.   (eval $ac_try) 2>&5
  24538.   ac_status=$?
  24539.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24540.   (exit $ac_status); }; } &&
  24541.      { ac_try='test -s conftest$ac_exeext'
  24542.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24543.   (eval $ac_try) 2>&5
  24544.   ac_status=$?
  24545.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24546.   (exit $ac_status); }; }; then
  24547.   ac_R_nospace=yes
  24548. else
  24549.   echo "$as_me: failed program was:" >&5
  24550. sed 's/^/| /' conftest.$ac_ext >&5
  24551.  
  24552. ac_R_nospace=no
  24553. fi
  24554. rm -f conftest.err conftest.$ac_objext \
  24555.       conftest$ac_exeext conftest.$ac_ext
  24556.       if test $ac_R_nospace = yes; then
  24557.     echo "$as_me:$LINENO: result: no" >&5
  24558. echo "${ECHO_T}no" >&6
  24559.     X_LIBS="$X_LIBS -R$x_libraries"
  24560.       else
  24561.     LIBS="$ac_xsave_LIBS -R $x_libraries"
  24562.     cat >conftest.$ac_ext <<_ACEOF
  24563. /* confdefs.h.  */
  24564. _ACEOF
  24565. cat confdefs.h >>conftest.$ac_ext
  24566. cat >>conftest.$ac_ext <<_ACEOF
  24567. /* end confdefs.h.  */
  24568.  
  24569. int
  24570. main ()
  24571. {
  24572.  
  24573.   ;
  24574.   return 0;
  24575. }
  24576. _ACEOF
  24577. rm -f conftest.$ac_objext conftest$ac_exeext
  24578. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24579.   (eval $ac_link) 2>conftest.er1
  24580.   ac_status=$?
  24581.   grep -v '^ *+' conftest.er1 >conftest.err
  24582.   rm -f conftest.er1
  24583.   cat conftest.err >&5
  24584.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24585.   (exit $ac_status); } &&
  24586.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  24587.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24588.   (eval $ac_try) 2>&5
  24589.   ac_status=$?
  24590.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24591.   (exit $ac_status); }; } &&
  24592.      { ac_try='test -s conftest$ac_exeext'
  24593.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24594.   (eval $ac_try) 2>&5
  24595.   ac_status=$?
  24596.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24597.   (exit $ac_status); }; }; then
  24598.   ac_R_space=yes
  24599. else
  24600.   echo "$as_me: failed program was:" >&5
  24601. sed 's/^/| /' conftest.$ac_ext >&5
  24602.  
  24603. ac_R_space=no
  24604. fi
  24605. rm -f conftest.err conftest.$ac_objext \
  24606.       conftest$ac_exeext conftest.$ac_ext
  24607.     if test $ac_R_space = yes; then
  24608.       echo "$as_me:$LINENO: result: yes" >&5
  24609. echo "${ECHO_T}yes" >&6
  24610.       X_LIBS="$X_LIBS -R $x_libraries"
  24611.     else
  24612.       echo "$as_me:$LINENO: result: neither works" >&5
  24613. echo "${ECHO_T}neither works" >&6
  24614.     fi
  24615.       fi
  24616.       LIBS=$ac_xsave_LIBS
  24617.     esac
  24618.   fi
  24619.  
  24620.   # Check for system-dependent libraries X programs must link with.
  24621.   # Do this before checking for the system-independent R6 libraries
  24622.   # (-lICE), since we may need -lsocket or whatever for X linking.
  24623.  
  24624.   if test "$ISC" = yes; then
  24625.     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  24626.   else
  24627.     # Martyn Johnson says this is needed for Ultrix, if the X
  24628.     # libraries were built with DECnet support.  And Karl Berry says
  24629.     # the Alpha needs dnet_stub (dnet does not exist).
  24630.     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  24631.     cat >conftest.$ac_ext <<_ACEOF
  24632. /* confdefs.h.  */
  24633. _ACEOF
  24634. cat confdefs.h >>conftest.$ac_ext
  24635. cat >>conftest.$ac_ext <<_ACEOF
  24636. /* end confdefs.h.  */
  24637.  
  24638. /* Override any gcc2 internal prototype to avoid an error.  */
  24639. #ifdef __cplusplus
  24640. extern "C"
  24641. #endif
  24642. /* We use char because int might match the return type of a gcc2
  24643.    builtin and then its argument prototype would still apply.  */
  24644. char XOpenDisplay ();
  24645. int
  24646. main ()
  24647. {
  24648. XOpenDisplay ();
  24649.   ;
  24650.   return 0;
  24651. }
  24652. _ACEOF
  24653. rm -f conftest.$ac_objext conftest$ac_exeext
  24654. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24655.   (eval $ac_link) 2>conftest.er1
  24656.   ac_status=$?
  24657.   grep -v '^ *+' conftest.er1 >conftest.err
  24658.   rm -f conftest.er1
  24659.   cat conftest.err >&5
  24660.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24661.   (exit $ac_status); } &&
  24662.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  24663.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24664.   (eval $ac_try) 2>&5
  24665.   ac_status=$?
  24666.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24667.   (exit $ac_status); }; } &&
  24668.      { ac_try='test -s conftest$ac_exeext'
  24669.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24670.   (eval $ac_try) 2>&5
  24671.   ac_status=$?
  24672.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24673.   (exit $ac_status); }; }; then
  24674.   :
  24675. else
  24676.   echo "$as_me: failed program was:" >&5
  24677. sed 's/^/| /' conftest.$ac_ext >&5
  24678.  
  24679. echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
  24680. echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
  24681. if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
  24682.   echo $ECHO_N "(cached) $ECHO_C" >&6
  24683. else
  24684.   ac_check_lib_save_LIBS=$LIBS
  24685. LIBS="-ldnet  $LIBS"
  24686. cat >conftest.$ac_ext <<_ACEOF
  24687. /* confdefs.h.  */
  24688. _ACEOF
  24689. cat confdefs.h >>conftest.$ac_ext
  24690. cat >>conftest.$ac_ext <<_ACEOF
  24691. /* end confdefs.h.  */
  24692.  
  24693. /* Override any gcc2 internal prototype to avoid an error.  */
  24694. #ifdef __cplusplus
  24695. extern "C"
  24696. #endif
  24697. /* We use char because int might match the return type of a gcc2
  24698.    builtin and then its argument prototype would still apply.  */
  24699. char dnet_ntoa ();
  24700. int
  24701. main ()
  24702. {
  24703. dnet_ntoa ();
  24704.   ;
  24705.   return 0;
  24706. }
  24707. _ACEOF
  24708. rm -f conftest.$ac_objext conftest$ac_exeext
  24709. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24710.   (eval $ac_link) 2>conftest.er1
  24711.   ac_status=$?
  24712.   grep -v '^ *+' conftest.er1 >conftest.err
  24713.   rm -f conftest.er1
  24714.   cat conftest.err >&5
  24715.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24716.   (exit $ac_status); } &&
  24717.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  24718.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24719.   (eval $ac_try) 2>&5
  24720.   ac_status=$?
  24721.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24722.   (exit $ac_status); }; } &&
  24723.      { ac_try='test -s conftest$ac_exeext'
  24724.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24725.   (eval $ac_try) 2>&5
  24726.   ac_status=$?
  24727.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24728.   (exit $ac_status); }; }; then
  24729.   ac_cv_lib_dnet_dnet_ntoa=yes
  24730. else
  24731.   echo "$as_me: failed program was:" >&5
  24732. sed 's/^/| /' conftest.$ac_ext >&5
  24733.  
  24734. ac_cv_lib_dnet_dnet_ntoa=no
  24735. fi
  24736. rm -f conftest.err conftest.$ac_objext \
  24737.       conftest$ac_exeext conftest.$ac_ext
  24738. LIBS=$ac_check_lib_save_LIBS
  24739. fi
  24740. echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  24741. echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
  24742. if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
  24743.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  24744. fi
  24745.  
  24746.     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  24747.       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
  24748. echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
  24749. if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
  24750.   echo $ECHO_N "(cached) $ECHO_C" >&6
  24751. else
  24752.   ac_check_lib_save_LIBS=$LIBS
  24753. LIBS="-ldnet_stub  $LIBS"
  24754. cat >conftest.$ac_ext <<_ACEOF
  24755. /* confdefs.h.  */
  24756. _ACEOF
  24757. cat confdefs.h >>conftest.$ac_ext
  24758. cat >>conftest.$ac_ext <<_ACEOF
  24759. /* end confdefs.h.  */
  24760.  
  24761. /* Override any gcc2 internal prototype to avoid an error.  */
  24762. #ifdef __cplusplus
  24763. extern "C"
  24764. #endif
  24765. /* We use char because int might match the return type of a gcc2
  24766.    builtin and then its argument prototype would still apply.  */
  24767. char dnet_ntoa ();
  24768. int
  24769. main ()
  24770. {
  24771. dnet_ntoa ();
  24772.   ;
  24773.   return 0;
  24774. }
  24775. _ACEOF
  24776. rm -f conftest.$ac_objext conftest$ac_exeext
  24777. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24778.   (eval $ac_link) 2>conftest.er1
  24779.   ac_status=$?
  24780.   grep -v '^ *+' conftest.er1 >conftest.err
  24781.   rm -f conftest.er1
  24782.   cat conftest.err >&5
  24783.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24784.   (exit $ac_status); } &&
  24785.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  24786.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24787.   (eval $ac_try) 2>&5
  24788.   ac_status=$?
  24789.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24790.   (exit $ac_status); }; } &&
  24791.      { ac_try='test -s conftest$ac_exeext'
  24792.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24793.   (eval $ac_try) 2>&5
  24794.   ac_status=$?
  24795.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24796.   (exit $ac_status); }; }; then
  24797.   ac_cv_lib_dnet_stub_dnet_ntoa=yes
  24798. else
  24799.   echo "$as_me: failed program was:" >&5
  24800. sed 's/^/| /' conftest.$ac_ext >&5
  24801.  
  24802. ac_cv_lib_dnet_stub_dnet_ntoa=no
  24803. fi
  24804. rm -f conftest.err conftest.$ac_objext \
  24805.       conftest$ac_exeext conftest.$ac_ext
  24806. LIBS=$ac_check_lib_save_LIBS
  24807. fi
  24808. echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  24809. echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
  24810. if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
  24811.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  24812. fi
  24813.  
  24814.     fi
  24815. fi
  24816. rm -f conftest.err conftest.$ac_objext \
  24817.       conftest$ac_exeext conftest.$ac_ext
  24818.     LIBS="$ac_xsave_LIBS"
  24819.  
  24820.     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  24821.     # to get the SysV transport functions.
  24822.     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  24823.     # needs -lnsl.
  24824.     # The nsl library prevents programs from opening the X display
  24825.     # on Irix 5.2, according to T.E. Dickey.
  24826.     # The functions gethostbyname, getservbyname, and inet_addr are
  24827.     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  24828.     echo "$as_me:$LINENO: checking for gethostbyname" >&5
  24829. echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
  24830. if test "${ac_cv_func_gethostbyname+set}" = set; then
  24831.   echo $ECHO_N "(cached) $ECHO_C" >&6
  24832. else
  24833.   cat >conftest.$ac_ext <<_ACEOF
  24834. /* confdefs.h.  */
  24835. _ACEOF
  24836. cat confdefs.h >>conftest.$ac_ext
  24837. cat >>conftest.$ac_ext <<_ACEOF
  24838. /* end confdefs.h.  */
  24839. /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
  24840.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  24841. #define gethostbyname innocuous_gethostbyname
  24842.  
  24843. /* System header to define __stub macros and hopefully few prototypes,
  24844.     which can conflict with char gethostbyname (); below.
  24845.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  24846.     <limits.h> exists even on freestanding compilers.  */
  24847.  
  24848. #ifdef __STDC__
  24849. # include <limits.h>
  24850. #else
  24851. # include <assert.h>
  24852. #endif
  24853.  
  24854. #undef gethostbyname
  24855.  
  24856. /* Override any gcc2 internal prototype to avoid an error.  */
  24857. #ifdef __cplusplus
  24858. extern "C"
  24859. {
  24860. #endif
  24861. /* We use char because int might match the return type of a gcc2
  24862.    builtin and then its argument prototype would still apply.  */
  24863. char gethostbyname ();
  24864. /* The GNU C library defines this for functions which it implements
  24865.     to always fail with ENOSYS.  Some functions are actually named
  24866.     something starting with __ and the normal name is an alias.  */
  24867. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  24868. choke me
  24869. #else
  24870. char (*f) () = gethostbyname;
  24871. #endif
  24872. #ifdef __cplusplus
  24873. }
  24874. #endif
  24875.  
  24876. int
  24877. main ()
  24878. {
  24879. return f != gethostbyname;
  24880.   ;
  24881.   return 0;
  24882. }
  24883. _ACEOF
  24884. rm -f conftest.$ac_objext conftest$ac_exeext
  24885. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24886.   (eval $ac_link) 2>conftest.er1
  24887.   ac_status=$?
  24888.   grep -v '^ *+' conftest.er1 >conftest.err
  24889.   rm -f conftest.er1
  24890.   cat conftest.err >&5
  24891.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24892.   (exit $ac_status); } &&
  24893.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  24894.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24895.   (eval $ac_try) 2>&5
  24896.   ac_status=$?
  24897.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24898.   (exit $ac_status); }; } &&
  24899.      { ac_try='test -s conftest$ac_exeext'
  24900.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24901.   (eval $ac_try) 2>&5
  24902.   ac_status=$?
  24903.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24904.   (exit $ac_status); }; }; then
  24905.   ac_cv_func_gethostbyname=yes
  24906. else
  24907.   echo "$as_me: failed program was:" >&5
  24908. sed 's/^/| /' conftest.$ac_ext >&5
  24909.  
  24910. ac_cv_func_gethostbyname=no
  24911. fi
  24912. rm -f conftest.err conftest.$ac_objext \
  24913.       conftest$ac_exeext conftest.$ac_ext
  24914. fi
  24915. echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
  24916. echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
  24917.  
  24918.     if test $ac_cv_func_gethostbyname = no; then
  24919.       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  24920. echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
  24921. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  24922.   echo $ECHO_N "(cached) $ECHO_C" >&6
  24923. else
  24924.   ac_check_lib_save_LIBS=$LIBS
  24925. LIBS="-lnsl  $LIBS"
  24926. cat >conftest.$ac_ext <<_ACEOF
  24927. /* confdefs.h.  */
  24928. _ACEOF
  24929. cat confdefs.h >>conftest.$ac_ext
  24930. cat >>conftest.$ac_ext <<_ACEOF
  24931. /* end confdefs.h.  */
  24932.  
  24933. /* Override any gcc2 internal prototype to avoid an error.  */
  24934. #ifdef __cplusplus
  24935. extern "C"
  24936. #endif
  24937. /* We use char because int might match the return type of a gcc2
  24938.    builtin and then its argument prototype would still apply.  */
  24939. char gethostbyname ();
  24940. int
  24941. main ()
  24942. {
  24943. gethostbyname ();
  24944.   ;
  24945.   return 0;
  24946. }
  24947. _ACEOF
  24948. rm -f conftest.$ac_objext conftest$ac_exeext
  24949. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24950.   (eval $ac_link) 2>conftest.er1
  24951.   ac_status=$?
  24952.   grep -v '^ *+' conftest.er1 >conftest.err
  24953.   rm -f conftest.er1
  24954.   cat conftest.err >&5
  24955.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24956.   (exit $ac_status); } &&
  24957.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  24958.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24959.   (eval $ac_try) 2>&5
  24960.   ac_status=$?
  24961.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24962.   (exit $ac_status); }; } &&
  24963.      { ac_try='test -s conftest$ac_exeext'
  24964.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24965.   (eval $ac_try) 2>&5
  24966.   ac_status=$?
  24967.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24968.   (exit $ac_status); }; }; then
  24969.   ac_cv_lib_nsl_gethostbyname=yes
  24970. else
  24971.   echo "$as_me: failed program was:" >&5
  24972. sed 's/^/| /' conftest.$ac_ext >&5
  24973.  
  24974. ac_cv_lib_nsl_gethostbyname=no
  24975. fi
  24976. rm -f conftest.err conftest.$ac_objext \
  24977.       conftest$ac_exeext conftest.$ac_ext
  24978. LIBS=$ac_check_lib_save_LIBS
  24979. fi
  24980. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  24981. echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
  24982. if test $ac_cv_lib_nsl_gethostbyname = yes; then
  24983.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  24984. fi
  24985.  
  24986.       if test $ac_cv_lib_nsl_gethostbyname = no; then
  24987.     echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
  24988. echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
  24989. if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
  24990.   echo $ECHO_N "(cached) $ECHO_C" >&6
  24991. else
  24992.   ac_check_lib_save_LIBS=$LIBS
  24993. LIBS="-lbsd  $LIBS"
  24994. cat >conftest.$ac_ext <<_ACEOF
  24995. /* confdefs.h.  */
  24996. _ACEOF
  24997. cat confdefs.h >>conftest.$ac_ext
  24998. cat >>conftest.$ac_ext <<_ACEOF
  24999. /* end confdefs.h.  */
  25000.  
  25001. /* Override any gcc2 internal prototype to avoid an error.  */
  25002. #ifdef __cplusplus
  25003. extern "C"
  25004. #endif
  25005. /* We use char because int might match the return type of a gcc2
  25006.    builtin and then its argument prototype would still apply.  */
  25007. char gethostbyname ();
  25008. int
  25009. main ()
  25010. {
  25011. gethostbyname ();
  25012.   ;
  25013.   return 0;
  25014. }
  25015. _ACEOF
  25016. rm -f conftest.$ac_objext conftest$ac_exeext
  25017. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25018.   (eval $ac_link) 2>conftest.er1
  25019.   ac_status=$?
  25020.   grep -v '^ *+' conftest.er1 >conftest.err
  25021.   rm -f conftest.er1
  25022.   cat conftest.err >&5
  25023.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25024.   (exit $ac_status); } &&
  25025.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  25026.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25027.   (eval $ac_try) 2>&5
  25028.   ac_status=$?
  25029.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25030.   (exit $ac_status); }; } &&
  25031.      { ac_try='test -s conftest$ac_exeext'
  25032.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25033.   (eval $ac_try) 2>&5
  25034.   ac_status=$?
  25035.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25036.   (exit $ac_status); }; }; then
  25037.   ac_cv_lib_bsd_gethostbyname=yes
  25038. else
  25039.   echo "$as_me: failed program was:" >&5
  25040. sed 's/^/| /' conftest.$ac_ext >&5
  25041.  
  25042. ac_cv_lib_bsd_gethostbyname=no
  25043. fi
  25044. rm -f conftest.err conftest.$ac_objext \
  25045.       conftest$ac_exeext conftest.$ac_ext
  25046. LIBS=$ac_check_lib_save_LIBS
  25047. fi
  25048. echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
  25049. echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
  25050. if test $ac_cv_lib_bsd_gethostbyname = yes; then
  25051.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  25052. fi
  25053.  
  25054.       fi
  25055.     fi
  25056.  
  25057.     # lieder@skyler.mavd.honeywell.com says without -lsocket,
  25058.     # socket/setsockopt and other routines are undefined under SCO ODT
  25059.     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
  25060.     # on later versions), says Simon Leinen: it contains gethostby*
  25061.     # variants that don't use the name server (or something).  -lsocket
  25062.     # must be given before -lnsl if both are needed.  We assume that
  25063.     # if connect needs -lnsl, so does gethostbyname.
  25064.     echo "$as_me:$LINENO: checking for connect" >&5
  25065. echo $ECHO_N "checking for connect... $ECHO_C" >&6
  25066. if test "${ac_cv_func_connect+set}" = set; then
  25067.   echo $ECHO_N "(cached) $ECHO_C" >&6
  25068. else
  25069.   cat >conftest.$ac_ext <<_ACEOF
  25070. /* confdefs.h.  */
  25071. _ACEOF
  25072. cat confdefs.h >>conftest.$ac_ext
  25073. cat >>conftest.$ac_ext <<_ACEOF
  25074. /* end confdefs.h.  */
  25075. /* Define connect to an innocuous variant, in case <limits.h> declares connect.
  25076.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  25077. #define connect innocuous_connect
  25078.  
  25079. /* System header to define __stub macros and hopefully few prototypes,
  25080.     which can conflict with char connect (); below.
  25081.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  25082.     <limits.h> exists even on freestanding compilers.  */
  25083.  
  25084. #ifdef __STDC__
  25085. # include <limits.h>
  25086. #else
  25087. # include <assert.h>
  25088. #endif
  25089.  
  25090. #undef connect
  25091.  
  25092. /* Override any gcc2 internal prototype to avoid an error.  */
  25093. #ifdef __cplusplus
  25094. extern "C"
  25095. {
  25096. #endif
  25097. /* We use char because int might match the return type of a gcc2
  25098.    builtin and then its argument prototype would still apply.  */
  25099. char connect ();
  25100. /* The GNU C library defines this for functions which it implements
  25101.     to always fail with ENOSYS.  Some functions are actually named
  25102.     something starting with __ and the normal name is an alias.  */
  25103. #if defined (__stub_connect) || defined (__stub___connect)
  25104. choke me
  25105. #else
  25106. char (*f) () = connect;
  25107. #endif
  25108. #ifdef __cplusplus
  25109. }
  25110. #endif
  25111.  
  25112. int
  25113. main ()
  25114. {
  25115. return f != connect;
  25116.   ;
  25117.   return 0;
  25118. }
  25119. _ACEOF
  25120. rm -f conftest.$ac_objext conftest$ac_exeext
  25121. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25122.   (eval $ac_link) 2>conftest.er1
  25123.   ac_status=$?
  25124.   grep -v '^ *+' conftest.er1 >conftest.err
  25125.   rm -f conftest.er1
  25126.   cat conftest.err >&5
  25127.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25128.   (exit $ac_status); } &&
  25129.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  25130.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25131.   (eval $ac_try) 2>&5
  25132.   ac_status=$?
  25133.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25134.   (exit $ac_status); }; } &&
  25135.      { ac_try='test -s conftest$ac_exeext'
  25136.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25137.   (eval $ac_try) 2>&5
  25138.   ac_status=$?
  25139.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25140.   (exit $ac_status); }; }; then
  25141.   ac_cv_func_connect=yes
  25142. else
  25143.   echo "$as_me: failed program was:" >&5
  25144. sed 's/^/| /' conftest.$ac_ext >&5
  25145.  
  25146. ac_cv_func_connect=no
  25147. fi
  25148. rm -f conftest.err conftest.$ac_objext \
  25149.       conftest$ac_exeext conftest.$ac_ext
  25150. fi
  25151. echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
  25152. echo "${ECHO_T}$ac_cv_func_connect" >&6
  25153.  
  25154.     if test $ac_cv_func_connect = no; then
  25155.       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
  25156. echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
  25157. if test "${ac_cv_lib_socket_connect+set}" = set; then
  25158.   echo $ECHO_N "(cached) $ECHO_C" >&6
  25159. else
  25160.   ac_check_lib_save_LIBS=$LIBS
  25161. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  25162. cat >conftest.$ac_ext <<_ACEOF
  25163. /* confdefs.h.  */
  25164. _ACEOF
  25165. cat confdefs.h >>conftest.$ac_ext
  25166. cat >>conftest.$ac_ext <<_ACEOF
  25167. /* end confdefs.h.  */
  25168.  
  25169. /* Override any gcc2 internal prototype to avoid an error.  */
  25170. #ifdef __cplusplus
  25171. extern "C"
  25172. #endif
  25173. /* We use char because int might match the return type of a gcc2
  25174.    builtin and then its argument prototype would still apply.  */
  25175. char connect ();
  25176. int
  25177. main ()
  25178. {
  25179. connect ();
  25180.   ;
  25181.   return 0;
  25182. }
  25183. _ACEOF
  25184. rm -f conftest.$ac_objext conftest$ac_exeext
  25185. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25186.   (eval $ac_link) 2>conftest.er1
  25187.   ac_status=$?
  25188.   grep -v '^ *+' conftest.er1 >conftest.err
  25189.   rm -f conftest.er1
  25190.   cat conftest.err >&5
  25191.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25192.   (exit $ac_status); } &&
  25193.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  25194.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25195.   (eval $ac_try) 2>&5
  25196.   ac_status=$?
  25197.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25198.   (exit $ac_status); }; } &&
  25199.      { ac_try='test -s conftest$ac_exeext'
  25200.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25201.   (eval $ac_try) 2>&5
  25202.   ac_status=$?
  25203.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25204.   (exit $ac_status); }; }; then
  25205.   ac_cv_lib_socket_connect=yes
  25206. else
  25207.   echo "$as_me: failed program was:" >&5
  25208. sed 's/^/| /' conftest.$ac_ext >&5
  25209.  
  25210. ac_cv_lib_socket_connect=no
  25211. fi
  25212. rm -f conftest.err conftest.$ac_objext \
  25213.       conftest$ac_exeext conftest.$ac_ext
  25214. LIBS=$ac_check_lib_save_LIBS
  25215. fi
  25216. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
  25217. echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
  25218. if test $ac_cv_lib_socket_connect = yes; then
  25219.   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  25220. fi
  25221.  
  25222.     fi
  25223.  
  25224.     # Guillermo Gomez says -lposix is necessary on A/UX.
  25225.     echo "$as_me:$LINENO: checking for remove" >&5
  25226. echo $ECHO_N "checking for remove... $ECHO_C" >&6
  25227. if test "${ac_cv_func_remove+set}" = set; then
  25228.   echo $ECHO_N "(cached) $ECHO_C" >&6
  25229. else
  25230.   cat >conftest.$ac_ext <<_ACEOF
  25231. /* confdefs.h.  */
  25232. _ACEOF
  25233. cat confdefs.h >>conftest.$ac_ext
  25234. cat >>conftest.$ac_ext <<_ACEOF
  25235. /* end confdefs.h.  */
  25236. /* Define remove to an innocuous variant, in case <limits.h> declares remove.
  25237.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  25238. #define remove innocuous_remove
  25239.  
  25240. /* System header to define __stub macros and hopefully few prototypes,
  25241.     which can conflict with char remove (); below.
  25242.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  25243.     <limits.h> exists even on freestanding compilers.  */
  25244.  
  25245. #ifdef __STDC__
  25246. # include <limits.h>
  25247. #else
  25248. # include <assert.h>
  25249. #endif
  25250.  
  25251. #undef remove
  25252.  
  25253. /* Override any gcc2 internal prototype to avoid an error.  */
  25254. #ifdef __cplusplus
  25255. extern "C"
  25256. {
  25257. #endif
  25258. /* We use char because int might match the return type of a gcc2
  25259.    builtin and then its argument prototype would still apply.  */
  25260. char remove ();
  25261. /* The GNU C library defines this for functions which it implements
  25262.     to always fail with ENOSYS.  Some functions are actually named
  25263.     something starting with __ and the normal name is an alias.  */
  25264. #if defined (__stub_remove) || defined (__stub___remove)
  25265. choke me
  25266. #else
  25267. char (*f) () = remove;
  25268. #endif
  25269. #ifdef __cplusplus
  25270. }
  25271. #endif
  25272.  
  25273. int
  25274. main ()
  25275. {
  25276. return f != remove;
  25277.   ;
  25278.   return 0;
  25279. }
  25280. _ACEOF
  25281. rm -f conftest.$ac_objext conftest$ac_exeext
  25282. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25283.   (eval $ac_link) 2>conftest.er1
  25284.   ac_status=$?
  25285.   grep -v '^ *+' conftest.er1 >conftest.err
  25286.   rm -f conftest.er1
  25287.   cat conftest.err >&5
  25288.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25289.   (exit $ac_status); } &&
  25290.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  25291.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25292.   (eval $ac_try) 2>&5
  25293.   ac_status=$?
  25294.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25295.   (exit $ac_status); }; } &&
  25296.      { ac_try='test -s conftest$ac_exeext'
  25297.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25298.   (eval $ac_try) 2>&5
  25299.   ac_status=$?
  25300.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25301.   (exit $ac_status); }; }; then
  25302.   ac_cv_func_remove=yes
  25303. else
  25304.   echo "$as_me: failed program was:" >&5
  25305. sed 's/^/| /' conftest.$ac_ext >&5
  25306.  
  25307. ac_cv_func_remove=no
  25308. fi
  25309. rm -f conftest.err conftest.$ac_objext \
  25310.       conftest$ac_exeext conftest.$ac_ext
  25311. fi
  25312. echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
  25313. echo "${ECHO_T}$ac_cv_func_remove" >&6
  25314.  
  25315.     if test $ac_cv_func_remove = no; then
  25316.       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
  25317. echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
  25318. if test "${ac_cv_lib_posix_remove+set}" = set; then
  25319.   echo $ECHO_N "(cached) $ECHO_C" >&6
  25320. else
  25321.   ac_check_lib_save_LIBS=$LIBS
  25322. LIBS="-lposix  $LIBS"
  25323. cat >conftest.$ac_ext <<_ACEOF
  25324. /* confdefs.h.  */
  25325. _ACEOF
  25326. cat confdefs.h >>conftest.$ac_ext
  25327. cat >>conftest.$ac_ext <<_ACEOF
  25328. /* end confdefs.h.  */
  25329.  
  25330. /* Override any gcc2 internal prototype to avoid an error.  */
  25331. #ifdef __cplusplus
  25332. extern "C"
  25333. #endif
  25334. /* We use char because int might match the return type of a gcc2
  25335.    builtin and then its argument prototype would still apply.  */
  25336. char remove ();
  25337. int
  25338. main ()
  25339. {
  25340. remove ();
  25341.   ;
  25342.   return 0;
  25343. }
  25344. _ACEOF
  25345. rm -f conftest.$ac_objext conftest$ac_exeext
  25346. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25347.   (eval $ac_link) 2>conftest.er1
  25348.   ac_status=$?
  25349.   grep -v '^ *+' conftest.er1 >conftest.err
  25350.   rm -f conftest.er1
  25351.   cat conftest.err >&5
  25352.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25353.   (exit $ac_status); } &&
  25354.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  25355.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25356.   (eval $ac_try) 2>&5
  25357.   ac_status=$?
  25358.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25359.   (exit $ac_status); }; } &&
  25360.      { ac_try='test -s conftest$ac_exeext'
  25361.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25362.   (eval $ac_try) 2>&5
  25363.   ac_status=$?
  25364.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25365.   (exit $ac_status); }; }; then
  25366.   ac_cv_lib_posix_remove=yes
  25367. else
  25368.   echo "$as_me: failed program was:" >&5
  25369. sed 's/^/| /' conftest.$ac_ext >&5
  25370.  
  25371. ac_cv_lib_posix_remove=no
  25372. fi
  25373. rm -f conftest.err conftest.$ac_objext \
  25374.       conftest$ac_exeext conftest.$ac_ext
  25375. LIBS=$ac_check_lib_save_LIBS
  25376. fi
  25377. echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
  25378. echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
  25379. if test $ac_cv_lib_posix_remove = yes; then
  25380.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  25381. fi
  25382.  
  25383.     fi
  25384.  
  25385.     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  25386.     echo "$as_me:$LINENO: checking for shmat" >&5
  25387. echo $ECHO_N "checking for shmat... $ECHO_C" >&6
  25388. if test "${ac_cv_func_shmat+set}" = set; then
  25389.   echo $ECHO_N "(cached) $ECHO_C" >&6
  25390. else
  25391.   cat >conftest.$ac_ext <<_ACEOF
  25392. /* confdefs.h.  */
  25393. _ACEOF
  25394. cat confdefs.h >>conftest.$ac_ext
  25395. cat >>conftest.$ac_ext <<_ACEOF
  25396. /* end confdefs.h.  */
  25397. /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
  25398.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  25399. #define shmat innocuous_shmat
  25400.  
  25401. /* System header to define __stub macros and hopefully few prototypes,
  25402.     which can conflict with char shmat (); below.
  25403.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  25404.     <limits.h> exists even on freestanding compilers.  */
  25405.  
  25406. #ifdef __STDC__
  25407. # include <limits.h>
  25408. #else
  25409. # include <assert.h>
  25410. #endif
  25411.  
  25412. #undef shmat
  25413.  
  25414. /* Override any gcc2 internal prototype to avoid an error.  */
  25415. #ifdef __cplusplus
  25416. extern "C"
  25417. {
  25418. #endif
  25419. /* We use char because int might match the return type of a gcc2
  25420.    builtin and then its argument prototype would still apply.  */
  25421. char shmat ();
  25422. /* The GNU C library defines this for functions which it implements
  25423.     to always fail with ENOSYS.  Some functions are actually named
  25424.     something starting with __ and the normal name is an alias.  */
  25425. #if defined (__stub_shmat) || defined (__stub___shmat)
  25426. choke me
  25427. #else
  25428. char (*f) () = shmat;
  25429. #endif
  25430. #ifdef __cplusplus
  25431. }
  25432. #endif
  25433.  
  25434. int
  25435. main ()
  25436. {
  25437. return f != shmat;
  25438.   ;
  25439.   return 0;
  25440. }
  25441. _ACEOF
  25442. rm -f conftest.$ac_objext conftest$ac_exeext
  25443. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25444.   (eval $ac_link) 2>conftest.er1
  25445.   ac_status=$?
  25446.   grep -v '^ *+' conftest.er1 >conftest.err
  25447.   rm -f conftest.er1
  25448.   cat conftest.err >&5
  25449.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25450.   (exit $ac_status); } &&
  25451.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  25452.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25453.   (eval $ac_try) 2>&5
  25454.   ac_status=$?
  25455.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25456.   (exit $ac_status); }; } &&
  25457.      { ac_try='test -s conftest$ac_exeext'
  25458.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25459.   (eval $ac_try) 2>&5
  25460.   ac_status=$?
  25461.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25462.   (exit $ac_status); }; }; then
  25463.   ac_cv_func_shmat=yes
  25464. else
  25465.   echo "$as_me: failed program was:" >&5
  25466. sed 's/^/| /' conftest.$ac_ext >&5
  25467.  
  25468. ac_cv_func_shmat=no
  25469. fi
  25470. rm -f conftest.err conftest.$ac_objext \
  25471.       conftest$ac_exeext conftest.$ac_ext
  25472. fi
  25473. echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
  25474. echo "${ECHO_T}$ac_cv_func_shmat" >&6
  25475.  
  25476.     if test $ac_cv_func_shmat = no; then
  25477.       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
  25478. echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
  25479. if test "${ac_cv_lib_ipc_shmat+set}" = set; then
  25480.   echo $ECHO_N "(cached) $ECHO_C" >&6
  25481. else
  25482.   ac_check_lib_save_LIBS=$LIBS
  25483. LIBS="-lipc  $LIBS"
  25484. cat >conftest.$ac_ext <<_ACEOF
  25485. /* confdefs.h.  */
  25486. _ACEOF
  25487. cat confdefs.h >>conftest.$ac_ext
  25488. cat >>conftest.$ac_ext <<_ACEOF
  25489. /* end confdefs.h.  */
  25490.  
  25491. /* Override any gcc2 internal prototype to avoid an error.  */
  25492. #ifdef __cplusplus
  25493. extern "C"
  25494. #endif
  25495. /* We use char because int might match the return type of a gcc2
  25496.    builtin and then its argument prototype would still apply.  */
  25497. char shmat ();
  25498. int
  25499. main ()
  25500. {
  25501. shmat ();
  25502.   ;
  25503.   return 0;
  25504. }
  25505. _ACEOF
  25506. rm -f conftest.$ac_objext conftest$ac_exeext
  25507. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25508.   (eval $ac_link) 2>conftest.er1
  25509.   ac_status=$?
  25510.   grep -v '^ *+' conftest.er1 >conftest.err
  25511.   rm -f conftest.er1
  25512.   cat conftest.err >&5
  25513.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25514.   (exit $ac_status); } &&
  25515.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  25516.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25517.   (eval $ac_try) 2>&5
  25518.   ac_status=$?
  25519.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25520.   (exit $ac_status); }; } &&
  25521.      { ac_try='test -s conftest$ac_exeext'
  25522.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25523.   (eval $ac_try) 2>&5
  25524.   ac_status=$?
  25525.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25526.   (exit $ac_status); }; }; then
  25527.   ac_cv_lib_ipc_shmat=yes
  25528. else
  25529.   echo "$as_me: failed program was:" >&5
  25530. sed 's/^/| /' conftest.$ac_ext >&5
  25531.  
  25532. ac_cv_lib_ipc_shmat=no
  25533. fi
  25534. rm -f conftest.err conftest.$ac_objext \
  25535.       conftest$ac_exeext conftest.$ac_ext
  25536. LIBS=$ac_check_lib_save_LIBS
  25537. fi
  25538. echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
  25539. echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
  25540. if test $ac_cv_lib_ipc_shmat = yes; then
  25541.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  25542. fi
  25543.  
  25544.     fi
  25545.   fi
  25546.  
  25547.   # Check for libraries that X11R6 Xt/Xaw programs need.
  25548.   ac_save_LDFLAGS=$LDFLAGS
  25549.   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  25550.   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  25551.   # check for ICE first), but we must link in the order -lSM -lICE or
  25552.   # we get undefined symbols.  So assume we have SM if we have ICE.
  25553.   # These have to be linked with before -lX11, unlike the other
  25554.   # libraries we check for below, so use a different variable.
  25555.   # John Interrante, Karl Berry
  25556.   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
  25557. echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
  25558. if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
  25559.   echo $ECHO_N "(cached) $ECHO_C" >&6
  25560. else
  25561.   ac_check_lib_save_LIBS=$LIBS
  25562. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  25563. cat >conftest.$ac_ext <<_ACEOF
  25564. /* confdefs.h.  */
  25565. _ACEOF
  25566. cat confdefs.h >>conftest.$ac_ext
  25567. cat >>conftest.$ac_ext <<_ACEOF
  25568. /* end confdefs.h.  */
  25569.  
  25570. /* Override any gcc2 internal prototype to avoid an error.  */
  25571. #ifdef __cplusplus
  25572. extern "C"
  25573. #endif
  25574. /* We use char because int might match the return type of a gcc2
  25575.    builtin and then its argument prototype would still apply.  */
  25576. char IceConnectionNumber ();
  25577. int
  25578. main ()
  25579. {
  25580. IceConnectionNumber ();
  25581.   ;
  25582.   return 0;
  25583. }
  25584. _ACEOF
  25585. rm -f conftest.$ac_objext conftest$ac_exeext
  25586. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25587.   (eval $ac_link) 2>conftest.er1
  25588.   ac_status=$?
  25589.   grep -v '^ *+' conftest.er1 >conftest.err
  25590.   rm -f conftest.er1
  25591.   cat conftest.err >&5
  25592.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25593.   (exit $ac_status); } &&
  25594.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  25595.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25596.   (eval $ac_try) 2>&5
  25597.   ac_status=$?
  25598.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25599.   (exit $ac_status); }; } &&
  25600.      { ac_try='test -s conftest$ac_exeext'
  25601.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25602.   (eval $ac_try) 2>&5
  25603.   ac_status=$?
  25604.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25605.   (exit $ac_status); }; }; then
  25606.   ac_cv_lib_ICE_IceConnectionNumber=yes
  25607. else
  25608.   echo "$as_me: failed program was:" >&5
  25609. sed 's/^/| /' conftest.$ac_ext >&5
  25610.  
  25611. ac_cv_lib_ICE_IceConnectionNumber=no
  25612. fi
  25613. rm -f conftest.err conftest.$ac_objext \
  25614.       conftest$ac_exeext conftest.$ac_ext
  25615. LIBS=$ac_check_lib_save_LIBS
  25616. fi
  25617. echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  25618. echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
  25619. if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
  25620.   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  25621. fi
  25622.  
  25623.   LDFLAGS=$ac_save_LDFLAGS
  25624.  
  25625. fi
  25626.  
  25627.  
  25628. # Check whether --enable-gtktest or --disable-gtktest was given.
  25629. if test "${enable_gtktest+set}" = set; then
  25630.   enableval="$enable_gtktest"
  25631.  
  25632. else
  25633.   enable_gtktest=yes
  25634. fi;
  25635.  
  25636.   pkg_config_args=gtk+-2.0
  25637.   for module in .
  25638.   do
  25639.       case "$module" in
  25640.          gthread)
  25641.              pkg_config_args="$pkg_config_args gthread-2.0"
  25642.          ;;
  25643.       esac
  25644.   done
  25645.  
  25646.   no_gtk=""
  25647.  
  25648.   # Extract the first word of "pkg-config", so it can be a program name with args.
  25649. set dummy pkg-config; ac_word=$2
  25650. echo "$as_me:$LINENO: checking for $ac_word" >&5
  25651. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  25652. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  25653.   echo $ECHO_N "(cached) $ECHO_C" >&6
  25654. else
  25655.   case $PKG_CONFIG in
  25656.   [\\/]* | ?:[\\/]*)
  25657.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  25658.   ;;
  25659.   *)
  25660.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25661. for as_dir in $PATH
  25662. do
  25663.   IFS=$as_save_IFS
  25664.   test -z "$as_dir" && as_dir=.
  25665.   for ac_exec_ext in '' $ac_executable_extensions; do
  25666.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25667.     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  25668.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  25669.     break 2
  25670.   fi
  25671. done
  25672. done
  25673.  
  25674.   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  25675.   ;;
  25676. esac
  25677. fi
  25678. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  25679.  
  25680. if test -n "$PKG_CONFIG"; then
  25681.   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  25682. echo "${ECHO_T}$PKG_CONFIG" >&6
  25683. else
  25684.   echo "$as_me:$LINENO: result: no" >&5
  25685. echo "${ECHO_T}no" >&6
  25686. fi
  25687.  
  25688.  
  25689.   if test x$PKG_CONFIG != xno ; then
  25690.     if pkg-config --atleast-pkgconfig-version 0.7 ; then
  25691.       :
  25692.     else
  25693.       echo "*** pkg-config too old; version 0.7 or better required."
  25694.       no_gtk=yes
  25695.       PKG_CONFIG=no
  25696.     fi
  25697.   else
  25698.     no_gtk=yes
  25699.   fi
  25700.  
  25701.   min_gtk_version=2.4.4
  25702.   echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
  25703. echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
  25704.  
  25705.   if test x$PKG_CONFIG != xno ; then
  25706.     ## don't try to run the test against uninstalled libtool libs
  25707.     if $PKG_CONFIG --uninstalled $pkg_config_args; then
  25708.       echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
  25709.       enable_gtktest=no
  25710.     fi
  25711.  
  25712.     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
  25713.       :
  25714.     else
  25715.       no_gtk=yes
  25716.     fi
  25717.   fi
  25718.  
  25719.   if test x"$no_gtk" = x ; then
  25720.     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
  25721.     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
  25722.     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
  25723.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  25724.     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
  25725.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  25726.     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
  25727.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  25728.     if test "x$enable_gtktest" = "xyes" ; then
  25729.       ac_save_CFLAGS="$CFLAGS"
  25730.       ac_save_LIBS="$LIBS"
  25731.       CFLAGS="$CFLAGS $GTK_CFLAGS"
  25732.       LIBS="$GTK_LIBS $LIBS"
  25733.       rm -f conf.gtktest
  25734.       if test "$cross_compiling" = yes; then
  25735.   echo $ac_n "cross compiling; assumed OK... $ac_c"
  25736. else
  25737.   cat >conftest.$ac_ext <<_ACEOF
  25738. /* confdefs.h.  */
  25739. _ACEOF
  25740. cat confdefs.h >>conftest.$ac_ext
  25741. cat >>conftest.$ac_ext <<_ACEOF
  25742. /* end confdefs.h.  */
  25743.  
  25744. #include <gtk/gtk.h>
  25745. #include <stdio.h>
  25746. #include <stdlib.h>
  25747.  
  25748. int
  25749. main ()
  25750. {
  25751.   int major, minor, micro;
  25752.   char *tmp_version;
  25753.  
  25754.   system ("touch conf.gtktest");
  25755.  
  25756.   /* HP/UX 9 (%@#!) writes to sscanf strings */
  25757.   tmp_version = g_strdup("$min_gtk_version");
  25758.   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
  25759.      printf("%s, bad version string\n", "$min_gtk_version");
  25760.      exit(1);
  25761.    }
  25762.  
  25763.   if ((gtk_major_version != $gtk_config_major_version) ||
  25764.       (gtk_minor_version != $gtk_config_minor_version) ||
  25765.       (gtk_micro_version != $gtk_config_micro_version))
  25766.     {
  25767.       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
  25768.              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
  25769.              gtk_major_version, gtk_minor_version, gtk_micro_version);
  25770.       printf ("*** was found! If pkg-config was correct, then it is best\n");
  25771.       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
  25772.       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  25773.       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  25774.       printf("*** required on your system.\n");
  25775.       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
  25776.       printf("*** to point to the correct configuration files\n");
  25777.     }
  25778.   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
  25779.        (gtk_minor_version != GTK_MINOR_VERSION) ||
  25780.            (gtk_micro_version != GTK_MICRO_VERSION))
  25781.     {
  25782.       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
  25783.          GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
  25784.       printf("*** library (version %d.%d.%d)\n",
  25785.          gtk_major_version, gtk_minor_version, gtk_micro_version);
  25786.     }
  25787.   else
  25788.     {
  25789.       if ((gtk_major_version > major) ||
  25790.         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
  25791.         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
  25792.       {
  25793.         return 0;
  25794.        }
  25795.      else
  25796.       {
  25797.         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
  25798.                gtk_major_version, gtk_minor_version, gtk_micro_version);
  25799.         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
  25800.            major, minor, micro);
  25801.         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
  25802.         printf("***\n");
  25803.         printf("*** If you have already installed a sufficiently new version, this error\n");
  25804.         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
  25805.         printf("*** being found. The easiest way to fix this is to remove the old version\n");
  25806.         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
  25807.         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
  25808.         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  25809.         printf("*** so that the correct libraries are found at run-time))\n");
  25810.       }
  25811.     }
  25812.   return 1;
  25813. }
  25814.  
  25815. _ACEOF
  25816. rm -f conftest$ac_exeext
  25817. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25818.   (eval $ac_link) 2>&5
  25819.   ac_status=$?
  25820.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25821.   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  25822.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25823.   (eval $ac_try) 2>&5
  25824.   ac_status=$?
  25825.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25826.   (exit $ac_status); }; }; then
  25827.   :
  25828. else
  25829.   echo "$as_me: program exited with status $ac_status" >&5
  25830. echo "$as_me: failed program was:" >&5
  25831. sed 's/^/| /' conftest.$ac_ext >&5
  25832.  
  25833. ( exit $ac_status )
  25834. no_gtk=yes
  25835. fi
  25836. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  25837. fi
  25838.        CFLAGS="$ac_save_CFLAGS"
  25839.        LIBS="$ac_save_LIBS"
  25840.      fi
  25841.   fi
  25842.   if test "x$no_gtk" = x ; then
  25843.      echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
  25844. echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
  25845.      :
  25846.   else
  25847.      echo "$as_me:$LINENO: result: no" >&5
  25848. echo "${ECHO_T}no" >&6
  25849.      if test "$PKG_CONFIG" = "no" ; then
  25850.        echo "*** A new enough version of pkg-config was not found."
  25851.        echo "*** See http://pkgconfig.sourceforge.net"
  25852.      else
  25853.        if test -f conf.gtktest ; then
  25854.         :
  25855.        else
  25856.           echo "*** Could not run GTK+ test program, checking why..."
  25857.       ac_save_CFLAGS="$CFLAGS"
  25858.       ac_save_LIBS="$LIBS"
  25859.           CFLAGS="$CFLAGS $GTK_CFLAGS"
  25860.           LIBS="$LIBS $GTK_LIBS"
  25861.           cat >conftest.$ac_ext <<_ACEOF
  25862. /* confdefs.h.  */
  25863. _ACEOF
  25864. cat confdefs.h >>conftest.$ac_ext
  25865. cat >>conftest.$ac_ext <<_ACEOF
  25866. /* end confdefs.h.  */
  25867.  
  25868. #include <gtk/gtk.h>
  25869. #include <stdio.h>
  25870.  
  25871. int
  25872. main ()
  25873. {
  25874.  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
  25875.   ;
  25876.   return 0;
  25877. }
  25878. _ACEOF
  25879. rm -f conftest.$ac_objext conftest$ac_exeext
  25880. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25881.   (eval $ac_link) 2>conftest.er1
  25882.   ac_status=$?
  25883.   grep -v '^ *+' conftest.er1 >conftest.err
  25884.   rm -f conftest.er1
  25885.   cat conftest.err >&5
  25886.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25887.   (exit $ac_status); } &&
  25888.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  25889.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25890.   (eval $ac_try) 2>&5
  25891.   ac_status=$?
  25892.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25893.   (exit $ac_status); }; } &&
  25894.      { ac_try='test -s conftest$ac_exeext'
  25895.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25896.   (eval $ac_try) 2>&5
  25897.   ac_status=$?
  25898.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25899.   (exit $ac_status); }; }; then
  25900.    echo "*** The test program compiled, but did not run. This usually means"
  25901.           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
  25902.           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
  25903.           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  25904.           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
  25905.           echo "*** is required on your system"
  25906.       echo "***"
  25907.           echo "*** If you have an old version installed, it is best to remove it, although"
  25908.           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  25909. else
  25910.   echo "$as_me: failed program was:" >&5
  25911. sed 's/^/| /' conftest.$ac_ext >&5
  25912.  
  25913.  echo "*** The test program failed to compile or link. See the file config.log for the"
  25914.           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
  25915. fi
  25916. rm -f conftest.err conftest.$ac_objext \
  25917.       conftest$ac_exeext conftest.$ac_ext
  25918.           CFLAGS="$ac_save_CFLAGS"
  25919.           LIBS="$ac_save_LIBS"
  25920.        fi
  25921.      fi
  25922.      GTK_CFLAGS=""
  25923.      GTK_LIBS=""
  25924.      { { echo "$as_me:$LINENO: error: Test for GTK+ failed. See the file 'INSTALL' for help." >&5
  25925. echo "$as_me: error: Test for GTK+ failed. See the file 'INSTALL' for help." >&2;}
  25926.    { (exit 1); exit 1; }; }
  25927.   fi
  25928.  
  25929.  
  25930.   rm -f conf.gtktest
  25931.  
  25932.  
  25933. echo "$as_me:$LINENO: checking if GTK+ is version 2.7.0 or newer" >&5
  25934. echo $ECHO_N "checking if GTK+ is version 2.7.0 or newer... $ECHO_C" >&6
  25935. if $PKG_CONFIG --atleast-version=2.7.0 gtk+-2.0; then
  25936.   have_gtk_2_7=yes
  25937. else
  25938.   have_gtk_2_7=no
  25939. fi
  25940. echo "$as_me:$LINENO: result: $have_gtk_2_7" >&5
  25941. echo "${ECHO_T}$have_gtk_2_7" >&6
  25942.  
  25943.  
  25944.   succeeded=no
  25945.  
  25946.   if test -z "$PKG_CONFIG"; then
  25947.     # Extract the first word of "pkg-config", so it can be a program name with args.
  25948. set dummy pkg-config; ac_word=$2
  25949. echo "$as_me:$LINENO: checking for $ac_word" >&5
  25950. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  25951. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  25952.   echo $ECHO_N "(cached) $ECHO_C" >&6
  25953. else
  25954.   case $PKG_CONFIG in
  25955.   [\\/]* | ?:[\\/]*)
  25956.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  25957.   ;;
  25958.   *)
  25959.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25960. for as_dir in $PATH
  25961. do
  25962.   IFS=$as_save_IFS
  25963.   test -z "$as_dir" && as_dir=.
  25964.   for ac_exec_ext in '' $ac_executable_extensions; do
  25965.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25966.     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  25967.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  25968.     break 2
  25969.   fi
  25970. done
  25971. done
  25972.  
  25973.   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  25974.   ;;
  25975. esac
  25976. fi
  25977. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  25978.  
  25979. if test -n "$PKG_CONFIG"; then
  25980.   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  25981. echo "${ECHO_T}$PKG_CONFIG" >&6
  25982. else
  25983.   echo "$as_me:$LINENO: result: no" >&5
  25984. echo "${ECHO_T}no" >&6
  25985. fi
  25986.  
  25987.   fi
  25988.  
  25989.   if test "$PKG_CONFIG" = "no" ; then
  25990.      echo "*** The pkg-config script could not be found. Make sure it is"
  25991.      echo "*** in your path, or set the PKG_CONFIG environment variable"
  25992.      echo "*** to the full path to pkg-config."
  25993.      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  25994.   else
  25995.      PKG_CONFIG_MIN_VERSION=0.9.0
  25996.      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  25997.         echo "$as_me:$LINENO: checking for gdk-pixbuf-2.0 >= 2.4.4" >&5
  25998. echo $ECHO_N "checking for gdk-pixbuf-2.0 >= 2.4.4... $ECHO_C" >&6
  25999.  
  26000.         if $PKG_CONFIG --exists "gdk-pixbuf-2.0 >= 2.4.4" ; then
  26001.             echo "$as_me:$LINENO: result: yes" >&5
  26002. echo "${ECHO_T}yes" >&6
  26003.             succeeded=yes
  26004.  
  26005.             echo "$as_me:$LINENO: checking GDK_PIXBUF_CFLAGS" >&5
  26006. echo $ECHO_N "checking GDK_PIXBUF_CFLAGS... $ECHO_C" >&6
  26007.             GDK_PIXBUF_CFLAGS=`$PKG_CONFIG --cflags "gdk-pixbuf-2.0 >= 2.4.4"`
  26008.             echo "$as_me:$LINENO: result: $GDK_PIXBUF_CFLAGS" >&5
  26009. echo "${ECHO_T}$GDK_PIXBUF_CFLAGS" >&6
  26010.  
  26011.             echo "$as_me:$LINENO: checking GDK_PIXBUF_LIBS" >&5
  26012. echo $ECHO_N "checking GDK_PIXBUF_LIBS... $ECHO_C" >&6
  26013.             GDK_PIXBUF_LIBS=`$PKG_CONFIG --libs "gdk-pixbuf-2.0 >= 2.4.4"`
  26014.             echo "$as_me:$LINENO: result: $GDK_PIXBUF_LIBS" >&5
  26015. echo "${ECHO_T}$GDK_PIXBUF_LIBS" >&6
  26016.         else
  26017.             GDK_PIXBUF_CFLAGS=""
  26018.             GDK_PIXBUF_LIBS=""
  26019.             ## If we have a custom action on failure, don't print errors, but
  26020.             ## do set a variable so people can do so.
  26021.             GDK_PIXBUF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-pixbuf-2.0 >= 2.4.4"`
  26022.             echo $GDK_PIXBUF_PKG_ERRORS
  26023.         fi
  26024.  
  26025.  
  26026.  
  26027.      else
  26028.         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  26029.         echo "*** See http://www.freedesktop.org/software/pkgconfig"
  26030.      fi
  26031.   fi
  26032.  
  26033.   if test $succeeded = yes; then
  26034.      :
  26035.   else
  26036.      { { echo "$as_me:$LINENO: error: Library requirements (gdk-pixbuf-2.0 >= 2.4.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
  26037. echo "$as_me: error: Library requirements (gdk-pixbuf-2.0 >= 2.4.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
  26038.    { (exit 1); exit 1; }; }
  26039.   fi
  26040.  
  26041.  
  26042.  
  26043.  
  26044. # Extract the first word of "gdk-pixbuf-csource", so it can be a program name with args.
  26045. set dummy gdk-pixbuf-csource; ac_word=$2
  26046. echo "$as_me:$LINENO: checking for $ac_word" >&5
  26047. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  26048. if test "${ac_cv_path_GDK_PIXBUF_CSOURCE+set}" = set; then
  26049.   echo $ECHO_N "(cached) $ECHO_C" >&6
  26050. else
  26051.   case $GDK_PIXBUF_CSOURCE in
  26052.   [\\/]* | ?:[\\/]*)
  26053.   ac_cv_path_GDK_PIXBUF_CSOURCE="$GDK_PIXBUF_CSOURCE" # Let the user override the test with a path.
  26054.   ;;
  26055.   *)
  26056.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26057. for as_dir in $PATH
  26058. do
  26059.   IFS=$as_save_IFS
  26060.   test -z "$as_dir" && as_dir=.
  26061.   for ac_exec_ext in '' $ac_executable_extensions; do
  26062.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  26063.     ac_cv_path_GDK_PIXBUF_CSOURCE="$as_dir/$ac_word$ac_exec_ext"
  26064.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  26065.     break 2
  26066.   fi
  26067. done
  26068. done
  26069.  
  26070.   test -z "$ac_cv_path_GDK_PIXBUF_CSOURCE" && ac_cv_path_GDK_PIXBUF_CSOURCE="no"
  26071.   ;;
  26072. esac
  26073. fi
  26074. GDK_PIXBUF_CSOURCE=$ac_cv_path_GDK_PIXBUF_CSOURCE
  26075.  
  26076. if test -n "$GDK_PIXBUF_CSOURCE"; then
  26077.   echo "$as_me:$LINENO: result: $GDK_PIXBUF_CSOURCE" >&5
  26078. echo "${ECHO_T}$GDK_PIXBUF_CSOURCE" >&6
  26079. else
  26080.   echo "$as_me:$LINENO: result: no" >&5
  26081. echo "${ECHO_T}no" >&6
  26082. fi
  26083.  
  26084. if test x$GDK_PIXBUF_CSOURCE = xno; then
  26085.   { { echo "$as_me:$LINENO: error: Could not find gdk-pixbuf-csource in your PATH" >&5
  26086. echo "$as_me: error: Could not find gdk-pixbuf-csource in your PATH" >&2;}
  26087.    { (exit 1); exit 1; }; }
  26088. fi
  26089.  
  26090.  
  26091.   succeeded=no
  26092.  
  26093.   if test -z "$PKG_CONFIG"; then
  26094.     # Extract the first word of "pkg-config", so it can be a program name with args.
  26095. set dummy pkg-config; ac_word=$2
  26096. echo "$as_me:$LINENO: checking for $ac_word" >&5
  26097. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  26098. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  26099.   echo $ECHO_N "(cached) $ECHO_C" >&6
  26100. else
  26101.   case $PKG_CONFIG in
  26102.   [\\/]* | ?:[\\/]*)
  26103.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  26104.   ;;
  26105.   *)
  26106.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26107. for as_dir in $PATH
  26108. do
  26109.   IFS=$as_save_IFS
  26110.   test -z "$as_dir" && as_dir=.
  26111.   for ac_exec_ext in '' $ac_executable_extensions; do
  26112.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  26113.     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  26114.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  26115.     break 2
  26116.   fi
  26117. done
  26118. done
  26119.  
  26120.   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  26121.   ;;
  26122. esac
  26123. fi
  26124. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  26125.  
  26126. if test -n "$PKG_CONFIG"; then
  26127.   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  26128. echo "${ECHO_T}$PKG_CONFIG" >&6
  26129. else
  26130.   echo "$as_me:$LINENO: result: no" >&5
  26131. echo "${ECHO_T}no" >&6
  26132. fi
  26133.  
  26134.   fi
  26135.  
  26136.   if test "$PKG_CONFIG" = "no" ; then
  26137.      echo "*** The pkg-config script could not be found. Make sure it is"
  26138.      echo "*** in your path, or set the PKG_CONFIG environment variable"
  26139.      echo "*** to the full path to pkg-config."
  26140.      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  26141.   else
  26142.      PKG_CONFIG_MIN_VERSION=0.9.0
  26143.      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  26144.         echo "$as_me:$LINENO: checking for libart-2.0" >&5
  26145. echo $ECHO_N "checking for libart-2.0... $ECHO_C" >&6
  26146.  
  26147.         if $PKG_CONFIG --exists "libart-2.0" ; then
  26148.             echo "$as_me:$LINENO: result: yes" >&5
  26149. echo "${ECHO_T}yes" >&6
  26150.             succeeded=yes
  26151.  
  26152.             echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
  26153. echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
  26154.             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0"`
  26155.             echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
  26156. echo "${ECHO_T}$LIBART_CFLAGS" >&6
  26157.  
  26158.             echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
  26159. echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
  26160.             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0"`
  26161.             echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
  26162. echo "${ECHO_T}$LIBART_LIBS" >&6
  26163.         else
  26164.             LIBART_CFLAGS=""
  26165.             LIBART_LIBS=""
  26166.             ## If we have a custom action on failure, don't print errors, but
  26167.             ## do set a variable so people can do so.
  26168.             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0"`
  26169.             echo $LIBART_PKG_ERRORS
  26170.         fi
  26171.  
  26172.  
  26173.  
  26174.      else
  26175.         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  26176.         echo "*** See http://www.freedesktop.org/software/pkgconfig"
  26177.      fi
  26178.   fi
  26179.  
  26180.   if test $succeeded = yes; then
  26181.      :
  26182.   else
  26183.      { { echo "$as_me:$LINENO: error: Library requirements (libart-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
  26184. echo "$as_me: error: Library requirements (libart-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
  26185.    { (exit 1); exit 1; }; }
  26186.   fi
  26187.  
  26188.  
  26189.  
  26190.  
  26191.  
  26192.   succeeded=no
  26193.  
  26194.   if test -z "$PKG_CONFIG"; then
  26195.     # Extract the first word of "pkg-config", so it can be a program name with args.
  26196. set dummy pkg-config; ac_word=$2
  26197. echo "$as_me:$LINENO: checking for $ac_word" >&5
  26198. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  26199. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  26200.   echo $ECHO_N "(cached) $ECHO_C" >&6
  26201. else
  26202.   case $PKG_CONFIG in
  26203.   [\\/]* | ?:[\\/]*)
  26204.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  26205.   ;;
  26206.   *)
  26207.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26208. for as_dir in $PATH
  26209. do
  26210.   IFS=$as_save_IFS
  26211.   test -z "$as_dir" && as_dir=.
  26212.   for ac_exec_ext in '' $ac_executable_extensions; do
  26213.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  26214.     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  26215.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  26216.     break 2
  26217.   fi
  26218. done
  26219. done
  26220.  
  26221.   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  26222.   ;;
  26223. esac
  26224. fi
  26225. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  26226.  
  26227. if test -n "$PKG_CONFIG"; then
  26228.   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  26229. echo "${ECHO_T}$PKG_CONFIG" >&6
  26230. else
  26231.   echo "$as_me:$LINENO: result: no" >&5
  26232. echo "${ECHO_T}no" >&6
  26233. fi
  26234.  
  26235.   fi
  26236.  
  26237.   if test "$PKG_CONFIG" = "no" ; then
  26238.      echo "*** The pkg-config script could not be found. Make sure it is"
  26239.      echo "*** in your path, or set the PKG_CONFIG environment variable"
  26240.      echo "*** to the full path to pkg-config."
  26241.      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  26242.   else
  26243.      PKG_CONFIG_MIN_VERSION=0.9.0
  26244.      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  26245.         echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
  26246. echo $ECHO_N "checking for fontconfig >= 2.2.0... $ECHO_C" >&6
  26247.  
  26248.         if $PKG_CONFIG --exists "fontconfig >= 2.2.0" ; then
  26249.             echo "$as_me:$LINENO: result: yes" >&5
  26250. echo "${ECHO_T}yes" >&6
  26251.             succeeded=yes
  26252.  
  26253.             echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
  26254. echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6
  26255.             FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"`
  26256.             echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
  26257. echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6
  26258.  
  26259.             echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
  26260. echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6
  26261.             FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"`
  26262.             echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
  26263. echo "${ECHO_T}$FONTCONFIG_LIBS" >&6
  26264.         else
  26265.             FONTCONFIG_CFLAGS=""
  26266.             FONTCONFIG_LIBS=""
  26267.             ## If we have a custom action on failure, don't print errors, but
  26268.             ## do set a variable so people can do so.
  26269.             FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
  26270.             echo $FONTCONFIG_PKG_ERRORS
  26271.         fi
  26272.  
  26273.  
  26274.  
  26275.      else
  26276.         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  26277.         echo "*** See http://www.freedesktop.org/software/pkgconfig"
  26278.      fi
  26279.   fi
  26280.  
  26281.   if test $succeeded = yes; then
  26282.      :
  26283.   else
  26284.      { { echo "$as_me:$LINENO: error: Library requirements (fontconfig >= 2.2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
  26285. echo "$as_me: error: Library requirements (fontconfig >= 2.2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
  26286.    { (exit 1); exit 1; }; }
  26287.   fi
  26288.  
  26289.  
  26290.  
  26291.   succeeded=no
  26292.  
  26293.   if test -z "$PKG_CONFIG"; then
  26294.     # Extract the first word of "pkg-config", so it can be a program name with args.
  26295. set dummy pkg-config; ac_word=$2
  26296. echo "$as_me:$LINENO: checking for $ac_word" >&5
  26297. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  26298. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  26299.   echo $ECHO_N "(cached) $ECHO_C" >&6
  26300. else
  26301.   case $PKG_CONFIG in
  26302.   [\\/]* | ?:[\\/]*)
  26303.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  26304.   ;;
  26305.   *)
  26306.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26307. for as_dir in $PATH
  26308. do
  26309.   IFS=$as_save_IFS
  26310.   test -z "$as_dir" && as_dir=.
  26311.   for ac_exec_ext in '' $ac_executable_extensions; do
  26312.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  26313.     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  26314.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  26315.     break 2
  26316.   fi
  26317. done
  26318. done
  26319.  
  26320.   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  26321.   ;;
  26322. esac
  26323. fi
  26324. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  26325.  
  26326. if test -n "$PKG_CONFIG"; then
  26327.   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  26328. echo "${ECHO_T}$PKG_CONFIG" >&6
  26329. else
  26330.   echo "$as_me:$LINENO: result: no" >&5
  26331. echo "${ECHO_T}no" >&6
  26332. fi
  26333.  
  26334.   fi
  26335.  
  26336.   if test "$PKG_CONFIG" = "no" ; then
  26337.      echo "*** The pkg-config script could not be found. Make sure it is"
  26338.      echo "*** in your path, or set the PKG_CONFIG environment variable"
  26339.      echo "*** to the full path to pkg-config."
  26340.      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  26341.   else
  26342.      PKG_CONFIG_MIN_VERSION=0.9.0
  26343.      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  26344.         echo "$as_me:$LINENO: checking for pangoft2 >= 1.4.0" >&5
  26345. echo $ECHO_N "checking for pangoft2 >= 1.4.0... $ECHO_C" >&6
  26346.  
  26347.         if $PKG_CONFIG --exists "pangoft2 >= 1.4.0" ; then
  26348.             echo "$as_me:$LINENO: result: yes" >&5
  26349. echo "${ECHO_T}yes" >&6
  26350.             succeeded=yes
  26351.  
  26352.             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
  26353. echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
  26354.             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.4.0"`
  26355.             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
  26356. echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
  26357.  
  26358.             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
  26359. echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
  26360.             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.4.0"`
  26361.             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
  26362. echo "${ECHO_T}$PANGOFT2_LIBS" >&6
  26363.         else
  26364.             PANGOFT2_CFLAGS=""
  26365.             PANGOFT2_LIBS=""
  26366.             ## If we have a custom action on failure, don't print errors, but
  26367.             ## do set a variable so people can do so.
  26368.             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2 >= 1.4.0"`
  26369.  
  26370.         fi
  26371.  
  26372.  
  26373.  
  26374.      else
  26375.         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  26376.         echo "*** See http://www.freedesktop.org/software/pkgconfig"
  26377.      fi
  26378.   fi
  26379.  
  26380.   if test $succeeded = yes; then
  26381.      :
  26382.   else
  26383.      { { echo "$as_me:$LINENO: error: Test for PangoFT2 failed.
  26384. *** We require Pango with the optional support for FreeType2 compiled in.
  26385. *** See the file 'INSTALL' for more help." >&5
  26386. echo "$as_me: error: Test for PangoFT2 failed.
  26387. *** We require Pango with the optional support for FreeType2 compiled in.
  26388. *** See the file 'INSTALL' for more help." >&2;}
  26389.    { (exit 1); exit 1; }; }
  26390.   fi
  26391.  
  26392.  
  26393.  
  26394.  
  26395. echo "$as_me:$LINENO: checking if Pango is version 1.9.0 or newer" >&5
  26396. echo $ECHO_N "checking if Pango is version 1.9.0 or newer... $ECHO_C" >&6
  26397. if $PKG_CONFIG --atleast-version=1.9.0 pango; then
  26398.   have_pango_1_9=yes
  26399. else
  26400.   have_pango_1_9=no
  26401. fi
  26402. echo "$as_me:$LINENO: result: $have_pango_1_9" >&5
  26403. echo "${ECHO_T}$have_pango_1_9" >&6
  26404.  
  26405. gimp_save_CFLAGS=$CFLAGS
  26406. CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
  26407.  
  26408. echo "$as_me:$LINENO: checking if Pango is built with a recent fontconfig" >&5
  26409. echo $ECHO_N "checking if Pango is built with a recent fontconfig... $ECHO_C" >&6
  26410. cat >conftest.$ac_ext <<_ACEOF
  26411. /* confdefs.h.  */
  26412. _ACEOF
  26413. cat confdefs.h >>conftest.$ac_ext
  26414. cat >>conftest.$ac_ext <<_ACEOF
  26415. /* end confdefs.h.  */
  26416. #include <fontconfig/fontconfig.h>
  26417. int
  26418. main ()
  26419. {
  26420. FcObjectSet *os; os = FcObjectSetBuild (FC_FAMILY, FC_WIDTH);
  26421.   ;
  26422.   return 0;
  26423. }
  26424. _ACEOF
  26425. rm -f conftest.$ac_objext
  26426. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  26427.   (eval $ac_compile) 2>conftest.er1
  26428.   ac_status=$?
  26429.   grep -v '^ *+' conftest.er1 >conftest.err
  26430.   rm -f conftest.er1
  26431.   cat conftest.err >&5
  26432.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26433.   (exit $ac_status); } &&
  26434.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  26435.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26436.   (eval $ac_try) 2>&5
  26437.   ac_status=$?
  26438.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26439.   (exit $ac_status); }; } &&
  26440.      { ac_try='test -s conftest.$ac_objext'
  26441.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26442.   (eval $ac_try) 2>&5
  26443.   ac_status=$?
  26444.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26445.   (exit $ac_status); }; }; then
  26446.   fontconfig_ok=yes
  26447. else
  26448.   echo "$as_me: failed program was:" >&5
  26449. sed 's/^/| /' conftest.$ac_ext >&5
  26450.  
  26451. fontconfig_ok=no
  26452. fi
  26453. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  26454. echo "$as_me:$LINENO: result: $fontconfig_ok" >&5
  26455. echo "${ECHO_T}$fontconfig_ok" >&6
  26456.  
  26457. CFLAGS=$gimp_save_CFLAGS
  26458.  
  26459. if test "x$fontconfig_ok" = xno; then
  26460.   { { echo "$as_me:$LINENO: error:
  26461. *** You have a fontconfig >= 2.2.0 installed on your system, but your
  26462. *** PangoFT2 is using an older version. This old version is probably in
  26463. *** /usr/X11R6. Look at the above output, and note that the result for
  26464. *** FONTCONFIG_CFLAGS is not in the result for PANGOFT2_CFLAGS, and that
  26465. *** there is likely an extra -I line, other than the ones for GLIB,
  26466. *** Freetype, and Pango itself. That's where your old fontconfig files are.
  26467. *** Rebuild pango, and make sure that it uses the newer fontconfig. The
  26468. *** easiest way be sure of this is to simply get rid of the old fontconfig.
  26469. *** When you rebuild pango, make sure the result for FONTCONFIG_CFLAGS is
  26470. *** the same as the result here." >&5
  26471. echo "$as_me: error:
  26472. *** You have a fontconfig >= 2.2.0 installed on your system, but your
  26473. *** PangoFT2 is using an older version. This old version is probably in
  26474. *** /usr/X11R6. Look at the above output, and note that the result for
  26475. *** FONTCONFIG_CFLAGS is not in the result for PANGOFT2_CFLAGS, and that
  26476. *** there is likely an extra -I line, other than the ones for GLIB,
  26477. *** Freetype, and Pango itself. That's where your old fontconfig files are.
  26478. *** Rebuild pango, and make sure that it uses the newer fontconfig. The
  26479. *** easiest way be sure of this is to simply get rid of the old fontconfig.
  26480. *** When you rebuild pango, make sure the result for FONTCONFIG_CFLAGS is
  26481. *** the same as the result here." >&2;}
  26482.    { (exit 1); exit 1; }; }
  26483. fi
  26484.  
  26485. # Extract the first word of "freetype-config", so it can be a program name with args.
  26486. set dummy freetype-config; ac_word=$2
  26487. echo "$as_me:$LINENO: checking for $ac_word" >&5
  26488. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  26489. if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
  26490.   echo $ECHO_N "(cached) $ECHO_C" >&6
  26491. else
  26492.   case $FREETYPE_CONFIG in
  26493.   [\\/]* | ?:[\\/]*)
  26494.   ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
  26495.   ;;
  26496.   *)
  26497.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26498. for as_dir in $PATH
  26499. do
  26500.   IFS=$as_save_IFS
  26501.   test -z "$as_dir" && as_dir=.
  26502.   for ac_exec_ext in '' $ac_executable_extensions; do
  26503.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  26504.     ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  26505.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  26506.     break 2
  26507.   fi
  26508. done
  26509. done
  26510.  
  26511.   test -z "$ac_cv_path_FREETYPE_CONFIG" && ac_cv_path_FREETYPE_CONFIG="no"
  26512.   ;;
  26513. esac
  26514. fi
  26515. FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
  26516.  
  26517. if test -n "$FREETYPE_CONFIG"; then
  26518.   echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
  26519. echo "${ECHO_T}$FREETYPE_CONFIG" >&6
  26520. else
  26521.   echo "$as_me:$LINENO: result: no" >&5
  26522. echo "${ECHO_T}no" >&6
  26523. fi
  26524.  
  26525. if test "x$FREETYPE_CONFIG" != "xno" ; then
  26526.   echo "$as_me:$LINENO: checking for freetype libraries" >&5
  26527. echo $ECHO_N "checking for freetype libraries... $ECHO_C" >&6
  26528.   FREETYPE_LIBS=`$FREETYPE_CONFIG --libs`
  26529.   echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
  26530. echo "${ECHO_T}$FREETYPE_LIBS" >&6
  26531. fi
  26532.  
  26533.  
  26534.  
  26535. ##########################################
  26536. # Check for some special functions we need
  26537. ##########################################
  26538.  
  26539.  
  26540.  
  26541. for ac_header in math.h ieeefp.h
  26542. do
  26543. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  26544. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  26545.   echo "$as_me:$LINENO: checking for $ac_header" >&5
  26546. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  26547. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  26548.   echo $ECHO_N "(cached) $ECHO_C" >&6
  26549. fi
  26550. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  26551. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  26552. else
  26553.   # Is the header compilable?
  26554. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  26555. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  26556. cat >conftest.$ac_ext <<_ACEOF
  26557. /* confdefs.h.  */
  26558. _ACEOF
  26559. cat confdefs.h >>conftest.$ac_ext
  26560. cat >>conftest.$ac_ext <<_ACEOF
  26561. /* end confdefs.h.  */
  26562. $ac_includes_default
  26563. #include <$ac_header>
  26564. _ACEOF
  26565. rm -f conftest.$ac_objext
  26566. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  26567.   (eval $ac_compile) 2>conftest.er1
  26568.   ac_status=$?
  26569.   grep -v '^ *+' conftest.er1 >conftest.err
  26570.   rm -f conftest.er1
  26571.   cat conftest.err >&5
  26572.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26573.   (exit $ac_status); } &&
  26574.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  26575.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26576.   (eval $ac_try) 2>&5
  26577.   ac_status=$?
  26578.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26579.   (exit $ac_status); }; } &&
  26580.      { ac_try='test -s conftest.$ac_objext'
  26581.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26582.   (eval $ac_try) 2>&5
  26583.   ac_status=$?
  26584.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26585.   (exit $ac_status); }; }; then
  26586.   ac_header_compiler=yes
  26587. else
  26588.   echo "$as_me: failed program was:" >&5
  26589. sed 's/^/| /' conftest.$ac_ext >&5
  26590.  
  26591. ac_header_compiler=no
  26592. fi
  26593. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  26594. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  26595. echo "${ECHO_T}$ac_header_compiler" >&6
  26596.  
  26597. # Is the header present?
  26598. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  26599. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  26600. cat >conftest.$ac_ext <<_ACEOF
  26601. /* confdefs.h.  */
  26602. _ACEOF
  26603. cat confdefs.h >>conftest.$ac_ext
  26604. cat >>conftest.$ac_ext <<_ACEOF
  26605. /* end confdefs.h.  */
  26606. #include <$ac_header>
  26607. _ACEOF
  26608. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  26609.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  26610.   ac_status=$?
  26611.   grep -v '^ *+' conftest.er1 >conftest.err
  26612.   rm -f conftest.er1
  26613.   cat conftest.err >&5
  26614.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26615.   (exit $ac_status); } >/dev/null; then
  26616.   if test -s conftest.err; then
  26617.     ac_cpp_err=$ac_c_preproc_warn_flag
  26618.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  26619.   else
  26620.     ac_cpp_err=
  26621.   fi
  26622. else
  26623.   ac_cpp_err=yes
  26624. fi
  26625. if test -z "$ac_cpp_err"; then
  26626.   ac_header_preproc=yes
  26627. else
  26628.   echo "$as_me: failed program was:" >&5
  26629. sed 's/^/| /' conftest.$ac_ext >&5
  26630.  
  26631.   ac_header_preproc=no
  26632. fi
  26633. rm -f conftest.err conftest.$ac_ext
  26634. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  26635. echo "${ECHO_T}$ac_header_preproc" >&6
  26636.  
  26637. # So?  What about this header?
  26638. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  26639.   yes:no: )
  26640.     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  26641. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  26642.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  26643. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  26644.     ac_header_preproc=yes
  26645.     ;;
  26646.   no:yes:* )
  26647.     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  26648. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  26649.     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
  26650. echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
  26651.     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  26652. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  26653.     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
  26654. echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
  26655.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  26656. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  26657.     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  26658. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  26659.     (
  26660.       cat <<\_ASBOX
  26661. ## ------------------------------------------------------------------- ##
  26662. ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=GIMP ##
  26663. ## ------------------------------------------------------------------- ##
  26664. _ASBOX
  26665.     ) |
  26666.       sed "s/^/$as_me: WARNING:     /" >&2
  26667.     ;;
  26668. esac
  26669. echo "$as_me:$LINENO: checking for $ac_header" >&5
  26670. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  26671. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  26672.   echo $ECHO_N "(cached) $ECHO_C" >&6
  26673. else
  26674.   eval "$as_ac_Header=\$ac_header_preproc"
  26675. fi
  26676. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  26677. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  26678.  
  26679. fi
  26680. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  26681.   cat >>confdefs.h <<_ACEOF
  26682. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  26683. _ACEOF
  26684.  
  26685. fi
  26686.  
  26687. done
  26688.  
  26689.  
  26690. echo "$as_me:$LINENO: checking for extra flags to get ANSI library prototypes" >&5
  26691. echo $ECHO_N "checking for extra flags to get ANSI library prototypes... $ECHO_C" >&6
  26692. gimp_save_LIBS=$LIBS
  26693. LIBS="$LIBS -lm"
  26694. if test "$cross_compiling" = yes; then
  26695.   echo "$as_me:$LINENO: result: " >&5
  26696. echo "${ECHO_T}" >&6
  26697. else
  26698.   cat >conftest.$ac_ext <<_ACEOF
  26699. /* confdefs.h.  */
  26700. _ACEOF
  26701. cat confdefs.h >>conftest.$ac_ext
  26702. cat >>conftest.$ac_ext <<_ACEOF
  26703. /* end confdefs.h.  */
  26704. #include <math.h>
  26705.              int main (void) { return (log(1) != log(1.)); }
  26706. _ACEOF
  26707. rm -f conftest$ac_exeext
  26708. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26709.   (eval $ac_link) 2>&5
  26710.   ac_status=$?
  26711.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26712.   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  26713.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26714.   (eval $ac_try) 2>&5
  26715.   ac_status=$?
  26716.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26717.   (exit $ac_status); }; }; then
  26718.   echo "$as_me:$LINENO: result: none needed" >&5
  26719. echo "${ECHO_T}none needed" >&6
  26720. else
  26721.   echo "$as_me: program exited with status $ac_status" >&5
  26722. echo "$as_me: failed program was:" >&5
  26723. sed 's/^/| /' conftest.$ac_ext >&5
  26724.  
  26725. ( exit $ac_status )
  26726. gimp_save_CFLAGS=$CFLAGS
  26727.   CFLAGS="$CFLAGS -std1"
  26728.   if test "$cross_compiling" = yes; then
  26729.   echo "$as_me:$LINENO: result: " >&5
  26730. echo "${ECHO_T}" >&6
  26731. else
  26732.   cat >conftest.$ac_ext <<_ACEOF
  26733. /* confdefs.h.  */
  26734. _ACEOF
  26735. cat confdefs.h >>conftest.$ac_ext
  26736. cat >>conftest.$ac_ext <<_ACEOF
  26737. /* end confdefs.h.  */
  26738. #include <math.h>
  26739.                int main (void) { return (log(1) != log(1.)); }
  26740. _ACEOF
  26741. rm -f conftest$ac_exeext
  26742. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26743.   (eval $ac_link) 2>&5
  26744.   ac_status=$?
  26745.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26746.   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  26747.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26748.   (eval $ac_try) 2>&5
  26749.   ac_status=$?
  26750.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26751.   (exit $ac_status); }; }; then
  26752.   echo "$as_me:$LINENO: result: -std1" >&5
  26753. echo "${ECHO_T}-std1" >&6
  26754. else
  26755.   echo "$as_me: program exited with status $ac_status" >&5
  26756. echo "$as_me: failed program was:" >&5
  26757. sed 's/^/| /' conftest.$ac_ext >&5
  26758.  
  26759. ( exit $ac_status )
  26760. echo "$as_me:$LINENO: result: " >&5
  26761. echo "${ECHO_T}" >&6
  26762.     CFLAGS=$gimp_save_CFLAGS
  26763.     { echo "$as_me:$LINENO: WARNING: No ANSI prototypes found in library. (-std1 didn't work.)" >&5
  26764. echo "$as_me: WARNING: No ANSI prototypes found in library. (-std1 didn't work.)" >&2;}
  26765. fi
  26766. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  26767. fi
  26768. fi
  26769. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  26770. fi
  26771.  
  26772.  
  26773. for ac_func in finite
  26774. do
  26775. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  26776. echo "$as_me:$LINENO: checking for $ac_func" >&5
  26777. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  26778. if eval "test \"\${$as_ac_var+set}\" = set"; then
  26779.   echo $ECHO_N "(cached) $ECHO_C" >&6
  26780. else
  26781.   cat >conftest.$ac_ext <<_ACEOF
  26782. /* confdefs.h.  */
  26783. _ACEOF
  26784. cat confdefs.h >>conftest.$ac_ext
  26785. cat >>conftest.$ac_ext <<_ACEOF
  26786. /* end confdefs.h.  */
  26787. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  26788.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  26789. #define $ac_func innocuous_$ac_func
  26790.  
  26791. /* System header to define __stub macros and hopefully few prototypes,
  26792.     which can conflict with char $ac_func (); below.
  26793.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  26794.     <limits.h> exists even on freestanding compilers.  */
  26795.  
  26796. #ifdef __STDC__
  26797. # include <limits.h>
  26798. #else
  26799. # include <assert.h>
  26800. #endif
  26801.  
  26802. #undef $ac_func
  26803.  
  26804. /* Override any gcc2 internal prototype to avoid an error.  */
  26805. #ifdef __cplusplus
  26806. extern "C"
  26807. {
  26808. #endif
  26809. /* We use char because int might match the return type of a gcc2
  26810.    builtin and then its argument prototype would still apply.  */
  26811. char $ac_func ();
  26812. /* The GNU C library defines this for functions which it implements
  26813.     to always fail with ENOSYS.  Some functions are actually named
  26814.     something starting with __ and the normal name is an alias.  */
  26815. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  26816. choke me
  26817. #else
  26818. char (*f) () = $ac_func;
  26819. #endif
  26820. #ifdef __cplusplus
  26821. }
  26822. #endif
  26823.  
  26824. int
  26825. main ()
  26826. {
  26827. return f != $ac_func;
  26828.   ;
  26829.   return 0;
  26830. }
  26831. _ACEOF
  26832. rm -f conftest.$ac_objext conftest$ac_exeext
  26833. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26834.   (eval $ac_link) 2>conftest.er1
  26835.   ac_status=$?
  26836.   grep -v '^ *+' conftest.er1 >conftest.err
  26837.   rm -f conftest.er1
  26838.   cat conftest.err >&5
  26839.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26840.   (exit $ac_status); } &&
  26841.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  26842.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26843.   (eval $ac_try) 2>&5
  26844.   ac_status=$?
  26845.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26846.   (exit $ac_status); }; } &&
  26847.      { ac_try='test -s conftest$ac_exeext'
  26848.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26849.   (eval $ac_try) 2>&5
  26850.   ac_status=$?
  26851.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26852.   (exit $ac_status); }; }; then
  26853.   eval "$as_ac_var=yes"
  26854. else
  26855.   echo "$as_me: failed program was:" >&5
  26856. sed 's/^/| /' conftest.$ac_ext >&5
  26857.  
  26858. eval "$as_ac_var=no"
  26859. fi
  26860. rm -f conftest.err conftest.$ac_objext \
  26861.       conftest$ac_exeext conftest.$ac_ext
  26862. fi
  26863. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  26864. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  26865. if test `eval echo '${'$as_ac_var'}'` = yes; then
  26866.   cat >>confdefs.h <<_ACEOF
  26867. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  26868. _ACEOF
  26869.  
  26870. else
  26871.  
  26872.   echo "$as_me:$LINENO: checking for finite in <math.h>" >&5
  26873. echo $ECHO_N "checking for finite in <math.h>... $ECHO_C" >&6
  26874.   cat >conftest.$ac_ext <<_ACEOF
  26875. /* confdefs.h.  */
  26876. _ACEOF
  26877. cat confdefs.h >>conftest.$ac_ext
  26878. cat >>conftest.$ac_ext <<_ACEOF
  26879. /* end confdefs.h.  */
  26880. #include <math.h>
  26881. int
  26882. main ()
  26883. {
  26884. double f = 0.0; finite (f)
  26885.   ;
  26886.   return 0;
  26887. }
  26888. _ACEOF
  26889. rm -f conftest.$ac_objext conftest$ac_exeext
  26890. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26891.   (eval $ac_link) 2>conftest.er1
  26892.   ac_status=$?
  26893.   grep -v '^ *+' conftest.er1 >conftest.err
  26894.   rm -f conftest.er1
  26895.   cat conftest.err >&5
  26896.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26897.   (exit $ac_status); } &&
  26898.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  26899.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26900.   (eval $ac_try) 2>&5
  26901.   ac_status=$?
  26902.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26903.   (exit $ac_status); }; } &&
  26904.      { ac_try='test -s conftest$ac_exeext'
  26905.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26906.   (eval $ac_try) 2>&5
  26907.   ac_status=$?
  26908.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26909.   (exit $ac_status); }; }; then
  26910.  
  26911.     cat >>confdefs.h <<\_ACEOF
  26912. #define HAVE_FINITE 1
  26913. _ACEOF
  26914.  
  26915.     echo "$as_me:$LINENO: result: yes" >&5
  26916. echo "${ECHO_T}yes" >&6
  26917. else
  26918.   echo "$as_me: failed program was:" >&5
  26919. sed 's/^/| /' conftest.$ac_ext >&5
  26920.  
  26921.  
  26922.     echo "$as_me:$LINENO: result: no" >&5
  26923. echo "${ECHO_T}no" >&6
  26924.     echo "$as_me:$LINENO: checking for isfinite in <math.h>" >&5
  26925. echo $ECHO_N "checking for isfinite in <math.h>... $ECHO_C" >&6
  26926.     cat >conftest.$ac_ext <<_ACEOF
  26927. /* confdefs.h.  */
  26928. _ACEOF
  26929. cat confdefs.h >>conftest.$ac_ext
  26930. cat >>conftest.$ac_ext <<_ACEOF
  26931. /* end confdefs.h.  */
  26932. #include <math.h>
  26933. int
  26934. main ()
  26935. {
  26936. float f = 0.0; isfinite(f)
  26937.   ;
  26938.   return 0;
  26939. }
  26940. _ACEOF
  26941. rm -f conftest.$ac_objext conftest$ac_exeext
  26942. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26943.   (eval $ac_link) 2>conftest.er1
  26944.   ac_status=$?
  26945.   grep -v '^ *+' conftest.er1 >conftest.err
  26946.   rm -f conftest.er1
  26947.   cat conftest.err >&5
  26948.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26949.   (exit $ac_status); } &&
  26950.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  26951.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26952.   (eval $ac_try) 2>&5
  26953.   ac_status=$?
  26954.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26955.   (exit $ac_status); }; } &&
  26956.      { ac_try='test -s conftest$ac_exeext'
  26957.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26958.   (eval $ac_try) 2>&5
  26959.   ac_status=$?
  26960.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26961.   (exit $ac_status); }; }; then
  26962.  
  26963.  
  26964. cat >>confdefs.h <<\_ACEOF
  26965. #define HAVE_ISFINITE 1
  26966. _ACEOF
  26967.  
  26968.       echo "$as_me:$LINENO: result: yes" >&5
  26969. echo "${ECHO_T}yes" >&6
  26970. else
  26971.   echo "$as_me: failed program was:" >&5
  26972. sed 's/^/| /' conftest.$ac_ext >&5
  26973.  
  26974. echo "$as_me:$LINENO: result: no" >&5
  26975. echo "${ECHO_T}no" >&6
  26976. fi
  26977. rm -f conftest.err conftest.$ac_objext \
  26978.       conftest$ac_exeext conftest.$ac_ext
  26979. fi
  26980. rm -f conftest.err conftest.$ac_objext \
  26981.       conftest$ac_exeext conftest.$ac_ext
  26982. fi
  26983. done
  26984.  
  26985.  
  26986.  
  26987.  
  26988. LIBS=$gimp_save_LIBS
  26989.  
  26990.  
  26991. echo "$as_me:$LINENO: checking for extra flags for POSIX compliance" >&5
  26992. echo $ECHO_N "checking for extra flags for POSIX compliance... $ECHO_C" >&6
  26993. cat >conftest.$ac_ext <<_ACEOF
  26994. /* confdefs.h.  */
  26995. _ACEOF
  26996. cat confdefs.h >>conftest.$ac_ext
  26997. cat >>conftest.$ac_ext <<_ACEOF
  26998. /* end confdefs.h.  */
  26999. #include <dirent.h>
  27000. int
  27001. main ()
  27002. {
  27003. DIR *dir;
  27004.   ;
  27005.   return 0;
  27006. }
  27007. _ACEOF
  27008. rm -f conftest.$ac_objext
  27009. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  27010.   (eval $ac_compile) 2>conftest.er1
  27011.   ac_status=$?
  27012.   grep -v '^ *+' conftest.er1 >conftest.err
  27013.   rm -f conftest.er1
  27014.   cat conftest.err >&5
  27015.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27016.   (exit $ac_status); } &&
  27017.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  27018.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27019.   (eval $ac_try) 2>&5
  27020.   ac_status=$?
  27021.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27022.   (exit $ac_status); }; } &&
  27023.      { ac_try='test -s conftest.$ac_objext'
  27024.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27025.   (eval $ac_try) 2>&5
  27026.   ac_status=$?
  27027.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27028.   (exit $ac_status); }; }; then
  27029.   echo "$as_me:$LINENO: result: none needed" >&5
  27030. echo "${ECHO_T}none needed" >&6
  27031. else
  27032.   echo "$as_me: failed program was:" >&5
  27033. sed 's/^/| /' conftest.$ac_ext >&5
  27034.  
  27035. gimp_save_CFLAGS=$CFLAGS
  27036.   CFLAGS="$CFLAGS -posix"
  27037.   cat >conftest.$ac_ext <<_ACEOF
  27038. /* confdefs.h.  */
  27039. _ACEOF
  27040. cat confdefs.h >>conftest.$ac_ext
  27041. cat >>conftest.$ac_ext <<_ACEOF
  27042. /* end confdefs.h.  */
  27043. #include <dirent.h>
  27044. int
  27045. main ()
  27046. {
  27047. DIR *dir;
  27048.   ;
  27049.   return 0;
  27050. }
  27051. _ACEOF
  27052. rm -f conftest.$ac_objext
  27053. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  27054.   (eval $ac_compile) 2>conftest.er1
  27055.   ac_status=$?
  27056.   grep -v '^ *+' conftest.er1 >conftest.err
  27057.   rm -f conftest.er1
  27058.   cat conftest.err >&5
  27059.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27060.   (exit $ac_status); } &&
  27061.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  27062.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27063.   (eval $ac_try) 2>&5
  27064.   ac_status=$?
  27065.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27066.   (exit $ac_status); }; } &&
  27067.      { ac_try='test -s conftest.$ac_objext'
  27068.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27069.   (eval $ac_try) 2>&5
  27070.   ac_status=$?
  27071.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27072.   (exit $ac_status); }; }; then
  27073.   echo "$as_me:$LINENO: result: -posix" >&5
  27074. echo "${ECHO_T}-posix" >&6
  27075. else
  27076.   echo "$as_me: failed program was:" >&5
  27077. sed 's/^/| /' conftest.$ac_ext >&5
  27078.  
  27079. echo "$as_me:$LINENO: result: " >&5
  27080. echo "${ECHO_T}" >&6
  27081.     CFLAGS=$gimp_save_CFLAGS
  27082.     { echo "$as_me:$LINENO: WARNING: Could not determine POSIX flag. (-posix didn't work.)" >&5
  27083. echo "$as_me: WARNING: Could not determine POSIX flag. (-posix didn't work.)" >&2;}
  27084. fi
  27085. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  27086. fi
  27087. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  27088.  
  27089. echo "$as_me:$LINENO: checking for rint" >&5
  27090. echo $ECHO_N "checking for rint... $ECHO_C" >&6
  27091. if test "${ac_cv_func_rint+set}" = set; then
  27092.   echo $ECHO_N "(cached) $ECHO_C" >&6
  27093. else
  27094.   cat >conftest.$ac_ext <<_ACEOF
  27095. /* confdefs.h.  */
  27096. _ACEOF
  27097. cat confdefs.h >>conftest.$ac_ext
  27098. cat >>conftest.$ac_ext <<_ACEOF
  27099. /* end confdefs.h.  */
  27100. /* Define rint to an innocuous variant, in case <limits.h> declares rint.
  27101.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  27102. #define rint innocuous_rint
  27103.  
  27104. /* System header to define __stub macros and hopefully few prototypes,
  27105.     which can conflict with char rint (); below.
  27106.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  27107.     <limits.h> exists even on freestanding compilers.  */
  27108.  
  27109. #ifdef __STDC__
  27110. # include <limits.h>
  27111. #else
  27112. # include <assert.h>
  27113. #endif
  27114.  
  27115. #undef rint
  27116.  
  27117. /* Override any gcc2 internal prototype to avoid an error.  */
  27118. #ifdef __cplusplus
  27119. extern "C"
  27120. {
  27121. #endif
  27122. /* We use char because int might match the return type of a gcc2
  27123.    builtin and then its argument prototype would still apply.  */
  27124. char rint ();
  27125. /* The GNU C library defines this for functions which it implements
  27126.     to always fail with ENOSYS.  Some functions are actually named
  27127.     something starting with __ and the normal name is an alias.  */
  27128. #if defined (__stub_rint) || defined (__stub___rint)
  27129. choke me
  27130. #else
  27131. char (*f) () = rint;
  27132. #endif
  27133. #ifdef __cplusplus
  27134. }
  27135. #endif
  27136.  
  27137. int
  27138. main ()
  27139. {
  27140. return f != rint;
  27141.   ;
  27142.   return 0;
  27143. }
  27144. _ACEOF
  27145. rm -f conftest.$ac_objext conftest$ac_exeext
  27146. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27147.   (eval $ac_link) 2>conftest.er1
  27148.   ac_status=$?
  27149.   grep -v '^ *+' conftest.er1 >conftest.err
  27150.   rm -f conftest.er1
  27151.   cat conftest.err >&5
  27152.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27153.   (exit $ac_status); } &&
  27154.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  27155.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27156.   (eval $ac_try) 2>&5
  27157.   ac_status=$?
  27158.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27159.   (exit $ac_status); }; } &&
  27160.      { ac_try='test -s conftest$ac_exeext'
  27161.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27162.   (eval $ac_try) 2>&5
  27163.   ac_status=$?
  27164.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27165.   (exit $ac_status); }; }; then
  27166.   ac_cv_func_rint=yes
  27167. else
  27168.   echo "$as_me: failed program was:" >&5
  27169. sed 's/^/| /' conftest.$ac_ext >&5
  27170.  
  27171. ac_cv_func_rint=no
  27172. fi
  27173. rm -f conftest.err conftest.$ac_objext \
  27174.       conftest$ac_exeext conftest.$ac_ext
  27175. fi
  27176. echo "$as_me:$LINENO: result: $ac_cv_func_rint" >&5
  27177. echo "${ECHO_T}$ac_cv_func_rint" >&6
  27178. if test $ac_cv_func_rint = yes; then
  27179.  
  27180. cat >>confdefs.h <<\_ACEOF
  27181. #define HAVE_RINT 1
  27182. _ACEOF
  27183.  
  27184. else
  27185.  
  27186.   echo "$as_me:$LINENO: checking for rint in -lm" >&5
  27187. echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
  27188. if test "${ac_cv_lib_m_rint+set}" = set; then
  27189.   echo $ECHO_N "(cached) $ECHO_C" >&6
  27190. else
  27191.   ac_check_lib_save_LIBS=$LIBS
  27192. LIBS="-lm  $LIBS"
  27193. cat >conftest.$ac_ext <<_ACEOF
  27194. /* confdefs.h.  */
  27195. _ACEOF
  27196. cat confdefs.h >>conftest.$ac_ext
  27197. cat >>conftest.$ac_ext <<_ACEOF
  27198. /* end confdefs.h.  */
  27199.  
  27200. /* Override any gcc2 internal prototype to avoid an error.  */
  27201. #ifdef __cplusplus
  27202. extern "C"
  27203. #endif
  27204. /* We use char because int might match the return type of a gcc2
  27205.    builtin and then its argument prototype would still apply.  */
  27206. char rint ();
  27207. int
  27208. main ()
  27209. {
  27210. rint ();
  27211.   ;
  27212.   return 0;
  27213. }
  27214. _ACEOF
  27215. rm -f conftest.$ac_objext conftest$ac_exeext
  27216. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27217.   (eval $ac_link) 2>conftest.er1
  27218.   ac_status=$?
  27219.   grep -v '^ *+' conftest.er1 >conftest.err
  27220.   rm -f conftest.er1
  27221.   cat conftest.err >&5
  27222.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27223.   (exit $ac_status); } &&
  27224.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  27225.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27226.   (eval $ac_try) 2>&5
  27227.   ac_status=$?
  27228.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27229.   (exit $ac_status); }; } &&
  27230.      { ac_try='test -s conftest$ac_exeext'
  27231.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27232.   (eval $ac_try) 2>&5
  27233.   ac_status=$?
  27234.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27235.   (exit $ac_status); }; }; then
  27236.   ac_cv_lib_m_rint=yes
  27237. else
  27238.   echo "$as_me: failed program was:" >&5
  27239. sed 's/^/| /' conftest.$ac_ext >&5
  27240.  
  27241. ac_cv_lib_m_rint=no
  27242. fi
  27243. rm -f conftest.err conftest.$ac_objext \
  27244.       conftest$ac_exeext conftest.$ac_ext
  27245. LIBS=$ac_check_lib_save_LIBS
  27246. fi
  27247. echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
  27248. echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
  27249. if test $ac_cv_lib_m_rint = yes; then
  27250.  
  27251.     cat >>confdefs.h <<\_ACEOF
  27252. #define HAVE_RINT 1
  27253. _ACEOF
  27254.  
  27255. fi
  27256.  
  27257. fi
  27258.  
  27259.  
  27260.  
  27261. ######################################################
  27262. # Check for extra libs needed for inet_ntoa and socket
  27263. ######################################################
  27264.  
  27265. gimp_save_LIBS=$LIBS
  27266. LIBS=""
  27267.  
  27268.  
  27269. for ac_func in inet_ntoa
  27270. do
  27271. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  27272. echo "$as_me:$LINENO: checking for $ac_func" >&5
  27273. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  27274. if eval "test \"\${$as_ac_var+set}\" = set"; then
  27275.   echo $ECHO_N "(cached) $ECHO_C" >&6
  27276. else
  27277.   cat >conftest.$ac_ext <<_ACEOF
  27278. /* confdefs.h.  */
  27279. _ACEOF
  27280. cat confdefs.h >>conftest.$ac_ext
  27281. cat >>conftest.$ac_ext <<_ACEOF
  27282. /* end confdefs.h.  */
  27283. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  27284.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  27285. #define $ac_func innocuous_$ac_func
  27286.  
  27287. /* System header to define __stub macros and hopefully few prototypes,
  27288.     which can conflict with char $ac_func (); below.
  27289.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  27290.     <limits.h> exists even on freestanding compilers.  */
  27291.  
  27292. #ifdef __STDC__
  27293. # include <limits.h>
  27294. #else
  27295. # include <assert.h>
  27296. #endif
  27297.  
  27298. #undef $ac_func
  27299.  
  27300. /* Override any gcc2 internal prototype to avoid an error.  */
  27301. #ifdef __cplusplus
  27302. extern "C"
  27303. {
  27304. #endif
  27305. /* We use char because int might match the return type of a gcc2
  27306.    builtin and then its argument prototype would still apply.  */
  27307. char $ac_func ();
  27308. /* The GNU C library defines this for functions which it implements
  27309.     to always fail with ENOSYS.  Some functions are actually named
  27310.     something starting with __ and the normal name is an alias.  */
  27311. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  27312. choke me
  27313. #else
  27314. char (*f) () = $ac_func;
  27315. #endif
  27316. #ifdef __cplusplus
  27317. }
  27318. #endif
  27319.  
  27320. int
  27321. main ()
  27322. {
  27323. return f != $ac_func;
  27324.   ;
  27325.   return 0;
  27326. }
  27327. _ACEOF
  27328. rm -f conftest.$ac_objext conftest$ac_exeext
  27329. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27330.   (eval $ac_link) 2>conftest.er1
  27331.   ac_status=$?
  27332.   grep -v '^ *+' conftest.er1 >conftest.err
  27333.   rm -f conftest.er1
  27334.   cat conftest.err >&5
  27335.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27336.   (exit $ac_status); } &&
  27337.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  27338.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27339.   (eval $ac_try) 2>&5
  27340.   ac_status=$?
  27341.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27342.   (exit $ac_status); }; } &&
  27343.      { ac_try='test -s conftest$ac_exeext'
  27344.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27345.   (eval $ac_try) 2>&5
  27346.   ac_status=$?
  27347.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27348.   (exit $ac_status); }; }; then
  27349.   eval "$as_ac_var=yes"
  27350. else
  27351.   echo "$as_me: failed program was:" >&5
  27352. sed 's/^/| /' conftest.$ac_ext >&5
  27353.  
  27354. eval "$as_ac_var=no"
  27355. fi
  27356. rm -f conftest.err conftest.$ac_objext \
  27357.       conftest$ac_exeext conftest.$ac_ext
  27358. fi
  27359. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  27360. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  27361. if test `eval echo '${'$as_ac_var'}'` = yes; then
  27362.   cat >>confdefs.h <<_ACEOF
  27363. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  27364. _ACEOF
  27365.  
  27366. else
  27367.  
  27368. echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
  27369. echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
  27370. if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
  27371.   echo $ECHO_N "(cached) $ECHO_C" >&6
  27372. else
  27373.   ac_check_lib_save_LIBS=$LIBS
  27374. LIBS="-lnsl  $LIBS"
  27375. cat >conftest.$ac_ext <<_ACEOF
  27376. /* confdefs.h.  */
  27377. _ACEOF
  27378. cat confdefs.h >>conftest.$ac_ext
  27379. cat >>conftest.$ac_ext <<_ACEOF
  27380. /* end confdefs.h.  */
  27381.  
  27382. /* Override any gcc2 internal prototype to avoid an error.  */
  27383. #ifdef __cplusplus
  27384. extern "C"
  27385. #endif
  27386. /* We use char because int might match the return type of a gcc2
  27387.    builtin and then its argument prototype would still apply.  */
  27388. char inet_ntoa ();
  27389. int
  27390. main ()
  27391. {
  27392. inet_ntoa ();
  27393.   ;
  27394.   return 0;
  27395. }
  27396. _ACEOF
  27397. rm -f conftest.$ac_objext conftest$ac_exeext
  27398. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27399.   (eval $ac_link) 2>conftest.er1
  27400.   ac_status=$?
  27401.   grep -v '^ *+' conftest.er1 >conftest.err
  27402.   rm -f conftest.er1
  27403.   cat conftest.err >&5
  27404.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27405.   (exit $ac_status); } &&
  27406.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  27407.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27408.   (eval $ac_try) 2>&5
  27409.   ac_status=$?
  27410.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27411.   (exit $ac_status); }; } &&
  27412.      { ac_try='test -s conftest$ac_exeext'
  27413.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27414.   (eval $ac_try) 2>&5
  27415.   ac_status=$?
  27416.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27417.   (exit $ac_status); }; }; then
  27418.   ac_cv_lib_nsl_inet_ntoa=yes
  27419. else
  27420.   echo "$as_me: failed program was:" >&5
  27421. sed 's/^/| /' conftest.$ac_ext >&5
  27422.  
  27423. ac_cv_lib_nsl_inet_ntoa=no
  27424. fi
  27425. rm -f conftest.err conftest.$ac_objext \
  27426.       conftest$ac_exeext conftest.$ac_ext
  27427. LIBS=$ac_check_lib_save_LIBS
  27428. fi
  27429. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
  27430. echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
  27431. if test $ac_cv_lib_nsl_inet_ntoa = yes; then
  27432.   cat >>confdefs.h <<_ACEOF
  27433. #define HAVE_LIBNSL 1
  27434. _ACEOF
  27435.  
  27436.   LIBS="-lnsl $LIBS"
  27437.  
  27438. fi
  27439.  
  27440. fi
  27441. done
  27442.  
  27443.  
  27444. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  27445. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  27446. if test "${ac_cv_lib_socket_socket+set}" = set; then
  27447.   echo $ECHO_N "(cached) $ECHO_C" >&6
  27448. else
  27449.   ac_check_lib_save_LIBS=$LIBS
  27450. LIBS="-lsocket  $LIBS"
  27451. cat >conftest.$ac_ext <<_ACEOF
  27452. /* confdefs.h.  */
  27453. _ACEOF
  27454. cat confdefs.h >>conftest.$ac_ext
  27455. cat >>conftest.$ac_ext <<_ACEOF
  27456. /* end confdefs.h.  */
  27457.  
  27458. /* Override any gcc2 internal prototype to avoid an error.  */
  27459. #ifdef __cplusplus
  27460. extern "C"
  27461. #endif
  27462. /* We use char because int might match the return type of a gcc2
  27463.    builtin and then its argument prototype would still apply.  */
  27464. char socket ();
  27465. int
  27466. main ()
  27467. {
  27468. socket ();
  27469.   ;
  27470.   return 0;
  27471. }
  27472. _ACEOF
  27473. rm -f conftest.$ac_objext conftest$ac_exeext
  27474. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27475.   (eval $ac_link) 2>conftest.er1
  27476.   ac_status=$?
  27477.   grep -v '^ *+' conftest.er1 >conftest.err
  27478.   rm -f conftest.er1
  27479.   cat conftest.err >&5
  27480.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27481.   (exit $ac_status); } &&
  27482.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  27483.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27484.   (eval $ac_try) 2>&5
  27485.   ac_status=$?
  27486.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27487.   (exit $ac_status); }; } &&
  27488.      { ac_try='test -s conftest$ac_exeext'
  27489.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27490.   (eval $ac_try) 2>&5
  27491.   ac_status=$?
  27492.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27493.   (exit $ac_status); }; }; then
  27494.   ac_cv_lib_socket_socket=yes
  27495. else
  27496.   echo "$as_me: failed program was:" >&5
  27497. sed 's/^/| /' conftest.$ac_ext >&5
  27498.  
  27499. ac_cv_lib_socket_socket=no
  27500. fi
  27501. rm -f conftest.err conftest.$ac_objext \
  27502.       conftest$ac_exeext conftest.$ac_ext
  27503. LIBS=$ac_check_lib_save_LIBS
  27504. fi
  27505. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  27506. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  27507. if test $ac_cv_lib_socket_socket = yes; then
  27508.   cat >>confdefs.h <<_ACEOF
  27509. #define HAVE_LIBSOCKET 1
  27510. _ACEOF
  27511.  
  27512.   LIBS="-lsocket $LIBS"
  27513.  
  27514. fi
  27515.  
  27516.  
  27517. SOCKET_LIBS="$LIBS"
  27518. LIBS=$gimp_save_LIBS
  27519.  
  27520.  
  27521.  
  27522.  
  27523. ########################
  27524. # Check for MMX assembly
  27525. ########################
  27526.  
  27527. # Check whether --enable-mmx or --disable-mmx was given.
  27528. if test "${enable_mmx+set}" = set; then
  27529.   enableval="$enable_mmx"
  27530.  
  27531. else
  27532.   enable_mmx=$have_x86
  27533. fi;
  27534.  
  27535. # Check whether --enable-sse or --disable-sse was given.
  27536. if test "${enable_sse+set}" = set; then
  27537.   enableval="$enable_sse"
  27538.  
  27539. else
  27540.   enable_sse=$enable_mmx
  27541. fi;
  27542.  
  27543. if test "x$enable_mmx" = xyes; then
  27544.  
  27545.   echo "$as_me:$LINENO: checking whether we can compile MMX code" >&5
  27546. echo $ECHO_N "checking whether we can compile MMX code... $ECHO_C" >&6
  27547.  
  27548.   cat >conftest.$ac_ext <<_ACEOF
  27549. asm ("movq 0, %mm0");
  27550. _ACEOF
  27551. rm -f conftest.$ac_objext
  27552. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  27553.   (eval $ac_compile) 2>conftest.er1
  27554.   ac_status=$?
  27555.   grep -v '^ *+' conftest.er1 >conftest.err
  27556.   rm -f conftest.er1
  27557.   cat conftest.err >&5
  27558.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27559.   (exit $ac_status); } &&
  27560.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  27561.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27562.   (eval $ac_try) 2>&5
  27563.   ac_status=$?
  27564.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27565.   (exit $ac_status); }; } &&
  27566.      { ac_try='test -s conftest.$ac_objext'
  27567.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27568.   (eval $ac_try) 2>&5
  27569.   ac_status=$?
  27570.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27571.   (exit $ac_status); }; }; then
  27572.  
  27573. cat >>confdefs.h <<\_ACEOF
  27574. #define USE_MMX 1
  27575. _ACEOF
  27576.  
  27577.     echo "$as_me:$LINENO: result: yes" >&5
  27578. echo "${ECHO_T}yes" >&6
  27579.  
  27580.     if test "x$enable_sse" = xyes; then
  27581.  
  27582.       echo "$as_me:$LINENO: checking whether we can compile SSE code" >&5
  27583. echo $ECHO_N "checking whether we can compile SSE code... $ECHO_C" >&6
  27584.  
  27585.       cat >conftest.$ac_ext <<_ACEOF
  27586. asm ("movntps %xmm0, 0");
  27587. _ACEOF
  27588. rm -f conftest.$ac_objext
  27589. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  27590.   (eval $ac_compile) 2>conftest.er1
  27591.   ac_status=$?
  27592.   grep -v '^ *+' conftest.er1 >conftest.err
  27593.   rm -f conftest.er1
  27594.   cat conftest.err >&5
  27595.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27596.   (exit $ac_status); } &&
  27597.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  27598.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27599.   (eval $ac_try) 2>&5
  27600.   ac_status=$?
  27601.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27602.   (exit $ac_status); }; } &&
  27603.      { ac_try='test -s conftest.$ac_objext'
  27604.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27605.   (eval $ac_try) 2>&5
  27606.   ac_status=$?
  27607.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27608.   (exit $ac_status); }; }; then
  27609.  
  27610. cat >>confdefs.h <<\_ACEOF
  27611. #define USE_SSE 1
  27612. _ACEOF
  27613.  
  27614.         echo "$as_me:$LINENO: result: yes" >&5
  27615. echo "${ECHO_T}yes" >&6
  27616.  
  27617. else
  27618.   echo "$as_me: failed program was:" >&5
  27619. sed 's/^/| /' conftest.$ac_ext >&5
  27620.  
  27621. enable_sse=no
  27622.         echo "$as_me:$LINENO: result: no" >&5
  27623. echo "${ECHO_T}no" >&6
  27624.         { echo "$as_me:$LINENO: WARNING: The assembler does not support the SSE command set." >&5
  27625. echo "$as_me: WARNING: The assembler does not support the SSE command set." >&2;}
  27626.  
  27627. fi
  27628. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  27629.  
  27630.     fi
  27631.  
  27632. else
  27633.   echo "$as_me: failed program was:" >&5
  27634. sed 's/^/| /' conftest.$ac_ext >&5
  27635.  
  27636. enable_mmx=no
  27637.     echo "$as_me:$LINENO: result: no" >&5
  27638. echo "${ECHO_T}no" >&6
  27639.     { echo "$as_me:$LINENO: WARNING: The assembler does not support the MMX command set." >&5
  27640. echo "$as_me: WARNING: The assembler does not support the MMX command set." >&2;}
  27641.  
  27642. fi
  27643. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  27644.  
  27645. fi
  27646.  
  27647.  
  27648. ############################
  27649. # Check for Altivec assembly
  27650. ############################
  27651.  
  27652. # Check whether --enable-altivec or --disable-altivec was given.
  27653. if test "${enable_altivec+set}" = set; then
  27654.   enableval="$enable_altivec"
  27655.  
  27656. else
  27657.   enable_altivec=$have_ppc
  27658. fi;
  27659.  
  27660. if test "x$enable_altivec" = xyes; then
  27661.  
  27662.   echo "$as_me:$LINENO: checking whether we can compile Altivec code" >&5
  27663. echo $ECHO_N "checking whether we can compile Altivec code... $ECHO_C" >&6
  27664.  
  27665.   cat >conftest.$ac_ext <<_ACEOF
  27666. asm ("vand %v0, %v0, %v0");
  27667. _ACEOF
  27668. rm -f conftest.$ac_objext
  27669. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  27670.   (eval $ac_compile) 2>conftest.er1
  27671.   ac_status=$?
  27672.   grep -v '^ *+' conftest.er1 >conftest.err
  27673.   rm -f conftest.er1
  27674.   cat conftest.err >&5
  27675.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27676.   (exit $ac_status); } &&
  27677.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  27678.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27679.   (eval $ac_try) 2>&5
  27680.   ac_status=$?
  27681.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27682.   (exit $ac_status); }; } &&
  27683.      { ac_try='test -s conftest.$ac_objext'
  27684.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27685.   (eval $ac_try) 2>&5
  27686.   ac_status=$?
  27687.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27688.   (exit $ac_status); }; }; then
  27689.  
  27690. cat >>confdefs.h <<\_ACEOF
  27691. #define USE_ALTIVEC 1
  27692. _ACEOF
  27693.  
  27694.     echo "$as_me:$LINENO: result: yes" >&5
  27695. echo "${ECHO_T}yes" >&6
  27696.  
  27697. else
  27698.   echo "$as_me: failed program was:" >&5
  27699. sed 's/^/| /' conftest.$ac_ext >&5
  27700.  
  27701. enable_altivec=no
  27702.     echo "$as_me:$LINENO: result: no" >&5
  27703. echo "${ECHO_T}no" >&6
  27704.     { echo "$as_me:$LINENO: WARNING: The assembler does not support the Altivec command set." >&5
  27705. echo "$as_me: WARNING: The assembler does not support the Altivec command set." >&2;}
  27706.  
  27707. fi
  27708. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  27709.  
  27710. fi
  27711.  
  27712.  
  27713. ###################################
  27714. # Checks for shared memory handling
  27715. ###################################
  27716.  
  27717. case "$host_os" in
  27718.   darwin* | rhapsody* | machten*)
  27719.     shmdefault=posix
  27720.     ;;
  27721.   *)
  27722.     shmdefault=sysv
  27723.     ;;
  27724. esac
  27725.  
  27726. shmtype=auto
  27727.  
  27728. # Check whether --with-shm or --without-shm was given.
  27729. if test "${with_shm+set}" = set; then
  27730.   withval="$with_shm"
  27731.   shmtype=$with_shm
  27732. fi;
  27733.  
  27734. case $shmtype in
  27735.   none|sysv|posix) ;;
  27736.   auto) shmtype=$shmdefault ;;
  27737.   *) { { echo "$as_me:$LINENO: error: Invalid shared memory transport type: use none, sysv, posix, or auto." >&5
  27738. echo "$as_me: error: Invalid shared memory transport type: use none, sysv, posix, or auto." >&2;}
  27739.    { (exit 1); exit 1; }; };;
  27740. esac
  27741.  
  27742.  
  27743. if test "x$platform_win32" = "xyes"; then
  27744.   shmtype=win32
  27745. elif test "x$shmtype" = "xsysv"; then
  27746.   if test "${ac_cv_header_sys_ipc_h+set}" = set; then
  27747.   echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
  27748. echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
  27749. if test "${ac_cv_header_sys_ipc_h+set}" = set; then
  27750.   echo $ECHO_N "(cached) $ECHO_C" >&6
  27751. fi
  27752. echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
  27753. echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6
  27754. else
  27755.   # Is the header compilable?
  27756. echo "$as_me:$LINENO: checking sys/ipc.h usability" >&5
  27757. echo $ECHO_N "checking sys/ipc.h usability... $ECHO_C" >&6
  27758. cat >conftest.$ac_ext <<_ACEOF
  27759. /* confdefs.h.  */
  27760. _ACEOF
  27761. cat confdefs.h >>conftest.$ac_ext
  27762. cat >>conftest.$ac_ext <<_ACEOF
  27763. /* end confdefs.h.  */
  27764. $ac_includes_default
  27765. #include <sys/ipc.h>
  27766. _ACEOF
  27767. rm -f conftest.$ac_objext
  27768. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  27769.   (eval $ac_compile) 2>conftest.er1
  27770.   ac_status=$?
  27771.   grep -v '^ *+' conftest.er1 >conftest.err
  27772.   rm -f conftest.er1
  27773.   cat conftest.err >&5
  27774.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27775.   (exit $ac_status); } &&
  27776.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  27777.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27778.   (eval $ac_try) 2>&5
  27779.   ac_status=$?
  27780.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27781.   (exit $ac_status); }; } &&
  27782.      { ac_try='test -s conftest.$ac_objext'
  27783.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27784.   (eval $ac_try) 2>&5
  27785.   ac_status=$?
  27786.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27787.   (exit $ac_status); }; }; then
  27788.   ac_header_compiler=yes
  27789. else
  27790.   echo "$as_me: failed program was:" >&5
  27791. sed 's/^/| /' conftest.$ac_ext >&5
  27792.  
  27793. ac_header_compiler=no
  27794. fi
  27795. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  27796. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  27797. echo "${ECHO_T}$ac_header_compiler" >&6
  27798.  
  27799. # Is the header present?
  27800. echo "$as_me:$LINENO: checking sys/ipc.h presence" >&5
  27801. echo $ECHO_N "checking sys/ipc.h presence... $ECHO_C" >&6
  27802. cat >conftest.$ac_ext <<_ACEOF
  27803. /* confdefs.h.  */
  27804. _ACEOF
  27805. cat confdefs.h >>conftest.$ac_ext
  27806. cat >>conftest.$ac_ext <<_ACEOF
  27807. /* end confdefs.h.  */
  27808. #include <sys/ipc.h>
  27809. _ACEOF
  27810. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  27811.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  27812.   ac_status=$?
  27813.   grep -v '^ *+' conftest.er1 >conftest.err
  27814.   rm -f conftest.er1
  27815.   cat conftest.err >&5
  27816.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27817.   (exit $ac_status); } >/dev/null; then
  27818.   if test -s conftest.err; then
  27819.     ac_cpp_err=$ac_c_preproc_warn_flag
  27820.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  27821.   else
  27822.     ac_cpp_err=
  27823.   fi
  27824. else
  27825.   ac_cpp_err=yes
  27826. fi
  27827. if test -z "$ac_cpp_err"; then
  27828.   ac_header_preproc=yes
  27829. else
  27830.   echo "$as_me: failed program was:" >&5
  27831. sed 's/^/| /' conftest.$ac_ext >&5
  27832.  
  27833.   ac_header_preproc=no
  27834. fi
  27835. rm -f conftest.err conftest.$ac_ext
  27836. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  27837. echo "${ECHO_T}$ac_header_preproc" >&6
  27838.  
  27839. # So?  What about this header?
  27840. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  27841.   yes:no: )
  27842.     { echo "$as_me:$LINENO: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&5
  27843. echo "$as_me: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  27844.     { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the compiler's result" >&5
  27845. echo "$as_me: WARNING: sys/ipc.h: proceeding with the compiler's result" >&2;}
  27846.     ac_header_preproc=yes
  27847.     ;;
  27848.   no:yes:* )
  27849.     { echo "$as_me:$LINENO: WARNING: sys/ipc.h: present but cannot be compiled" >&5
  27850. echo "$as_me: WARNING: sys/ipc.h: present but cannot be compiled" >&2;}
  27851.     { echo "$as_me:$LINENO: WARNING: sys/ipc.h:     check for missing prerequisite headers?" >&5
  27852. echo "$as_me: WARNING: sys/ipc.h:     check for missing prerequisite headers?" >&2;}
  27853.     { echo "$as_me:$LINENO: WARNING: sys/ipc.h: see the Autoconf documentation" >&5
  27854. echo "$as_me: WARNING: sys/ipc.h: see the Autoconf documentation" >&2;}
  27855.     { echo "$as_me:$LINENO: WARNING: sys/ipc.h:     section \"Present But Cannot Be Compiled\"" >&5
  27856. echo "$as_me: WARNING: sys/ipc.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  27857.     { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&5
  27858. echo "$as_me: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&2;}
  27859.     { echo "$as_me:$LINENO: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&5
  27860. echo "$as_me: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&2;}
  27861.     (
  27862.       cat <<\_ASBOX
  27863. ## ------------------------------------------------------------------- ##
  27864. ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=GIMP ##
  27865. ## ------------------------------------------------------------------- ##
  27866. _ASBOX
  27867.     ) |
  27868.       sed "s/^/$as_me: WARNING:     /" >&2
  27869.     ;;
  27870. esac
  27871. echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
  27872. echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
  27873. if test "${ac_cv_header_sys_ipc_h+set}" = set; then
  27874.   echo $ECHO_N "(cached) $ECHO_C" >&6
  27875. else
  27876.   ac_cv_header_sys_ipc_h=$ac_header_preproc
  27877. fi
  27878. echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
  27879. echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6
  27880.  
  27881. fi
  27882. if test $ac_cv_header_sys_ipc_h = yes; then
  27883.  
  27884. cat >>confdefs.h <<\_ACEOF
  27885. #define HAVE_IPC_H 1
  27886. _ACEOF
  27887.  
  27888. else
  27889.   no_sys_ipc=yes
  27890. fi
  27891.  
  27892.  
  27893.   if test "${ac_cv_header_sys_shm_h+set}" = set; then
  27894.   echo "$as_me:$LINENO: checking for sys/shm.h" >&5
  27895. echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6
  27896. if test "${ac_cv_header_sys_shm_h+set}" = set; then
  27897.   echo $ECHO_N "(cached) $ECHO_C" >&6
  27898. fi
  27899. echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
  27900. echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6
  27901. else
  27902.   # Is the header compilable?
  27903. echo "$as_me:$LINENO: checking sys/shm.h usability" >&5
  27904. echo $ECHO_N "checking sys/shm.h usability... $ECHO_C" >&6
  27905. cat >conftest.$ac_ext <<_ACEOF
  27906. /* confdefs.h.  */
  27907. _ACEOF
  27908. cat confdefs.h >>conftest.$ac_ext
  27909. cat >>conftest.$ac_ext <<_ACEOF
  27910. /* end confdefs.h.  */
  27911. $ac_includes_default
  27912. #include <sys/shm.h>
  27913. _ACEOF
  27914. rm -f conftest.$ac_objext
  27915. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  27916.   (eval $ac_compile) 2>conftest.er1
  27917.   ac_status=$?
  27918.   grep -v '^ *+' conftest.er1 >conftest.err
  27919.   rm -f conftest.er1
  27920.   cat conftest.err >&5
  27921.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27922.   (exit $ac_status); } &&
  27923.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  27924.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27925.   (eval $ac_try) 2>&5
  27926.   ac_status=$?
  27927.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27928.   (exit $ac_status); }; } &&
  27929.      { ac_try='test -s conftest.$ac_objext'
  27930.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27931.   (eval $ac_try) 2>&5
  27932.   ac_status=$?
  27933.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27934.   (exit $ac_status); }; }; then
  27935.   ac_header_compiler=yes
  27936. else
  27937.   echo "$as_me: failed program was:" >&5
  27938. sed 's/^/| /' conftest.$ac_ext >&5
  27939.  
  27940. ac_header_compiler=no
  27941. fi
  27942. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  27943. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  27944. echo "${ECHO_T}$ac_header_compiler" >&6
  27945.  
  27946. # Is the header present?
  27947. echo "$as_me:$LINENO: checking sys/shm.h presence" >&5
  27948. echo $ECHO_N "checking sys/shm.h presence... $ECHO_C" >&6
  27949. cat >conftest.$ac_ext <<_ACEOF
  27950. /* confdefs.h.  */
  27951. _ACEOF
  27952. cat confdefs.h >>conftest.$ac_ext
  27953. cat >>conftest.$ac_ext <<_ACEOF
  27954. /* end confdefs.h.  */
  27955. #include <sys/shm.h>
  27956. _ACEOF
  27957. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  27958.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  27959.   ac_status=$?
  27960.   grep -v '^ *+' conftest.er1 >conftest.err
  27961.   rm -f conftest.er1
  27962.   cat conftest.err >&5
  27963.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27964.   (exit $ac_status); } >/dev/null; then
  27965.   if test -s conftest.err; then
  27966.     ac_cpp_err=$ac_c_preproc_warn_flag
  27967.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  27968.   else
  27969.     ac_cpp_err=
  27970.   fi
  27971. else
  27972.   ac_cpp_err=yes
  27973. fi
  27974. if test -z "$ac_cpp_err"; then
  27975.   ac_header_preproc=yes
  27976. else
  27977.   echo "$as_me: failed program was:" >&5
  27978. sed 's/^/| /' conftest.$ac_ext >&5
  27979.  
  27980.   ac_header_preproc=no
  27981. fi
  27982. rm -f conftest.err conftest.$ac_ext
  27983. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  27984. echo "${ECHO_T}$ac_header_preproc" >&6
  27985.  
  27986. # So?  What about this header?
  27987. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  27988.   yes:no: )
  27989.     { echo "$as_me:$LINENO: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&5
  27990. echo "$as_me: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  27991.     { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the compiler's result" >&5
  27992. echo "$as_me: WARNING: sys/shm.h: proceeding with the compiler's result" >&2;}
  27993.     ac_header_preproc=yes
  27994.     ;;
  27995.   no:yes:* )
  27996.     { echo "$as_me:$LINENO: WARNING: sys/shm.h: present but cannot be compiled" >&5
  27997. echo "$as_me: WARNING: sys/shm.h: present but cannot be compiled" >&2;}
  27998.     { echo "$as_me:$LINENO: WARNING: sys/shm.h:     check for missing prerequisite headers?" >&5
  27999. echo "$as_me: WARNING: sys/shm.h:     check for missing prerequisite headers?" >&2;}
  28000.     { echo "$as_me:$LINENO: WARNING: sys/shm.h: see the Autoconf documentation" >&5
  28001. echo "$as_me: WARNING: sys/shm.h: see the Autoconf documentation" >&2;}
  28002.     { echo "$as_me:$LINENO: WARNING: sys/shm.h:     section \"Present But Cannot Be Compiled\"" >&5
  28003. echo "$as_me: WARNING: sys/shm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  28004.     { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&5
  28005. echo "$as_me: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&2;}
  28006.     { echo "$as_me:$LINENO: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&5
  28007. echo "$as_me: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&2;}
  28008.     (
  28009.       cat <<\_ASBOX
  28010. ## ------------------------------------------------------------------- ##
  28011. ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=GIMP ##
  28012. ## ------------------------------------------------------------------- ##
  28013. _ASBOX
  28014.     ) |
  28015.       sed "s/^/$as_me: WARNING:     /" >&2
  28016.     ;;
  28017. esac
  28018. echo "$as_me:$LINENO: checking for sys/shm.h" >&5
  28019. echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6
  28020. if test "${ac_cv_header_sys_shm_h+set}" = set; then
  28021.   echo $ECHO_N "(cached) $ECHO_C" >&6
  28022. else
  28023.   ac_cv_header_sys_shm_h=$ac_header_preproc
  28024. fi
  28025. echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
  28026. echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6
  28027.  
  28028. fi
  28029. if test $ac_cv_header_sys_shm_h = yes; then
  28030.  
  28031. cat >>confdefs.h <<\_ACEOF
  28032. #define HAVE_SHM_H 1
  28033. _ACEOF
  28034.  
  28035. else
  28036.   no_sys_shm=yes
  28037. fi
  28038.  
  28039.  
  28040.  
  28041.   if test "$ac_cv_header_sys_shm_h" = "yes"; then
  28042.     echo "$as_me:$LINENO: checking whether shmctl IPC_RMID allowes subsequent attaches" >&5
  28043. echo $ECHO_N "checking whether shmctl IPC_RMID allowes subsequent attaches... $ECHO_C" >&6
  28044.     if test "$cross_compiling" = yes; then
  28045.   echo "$as_me:$LINENO: result: assuming no" >&5
  28046. echo "${ECHO_T}assuming no" >&6
  28047. else
  28048.   cat >conftest.$ac_ext <<_ACEOF
  28049. /* confdefs.h.  */
  28050. _ACEOF
  28051. cat confdefs.h >>conftest.$ac_ext
  28052. cat >>conftest.$ac_ext <<_ACEOF
  28053. /* end confdefs.h.  */
  28054.  
  28055.     #include <sys/types.h>
  28056.     #include <sys/ipc.h>
  28057.     #include <sys/shm.h>
  28058.     int main()
  28059.     {
  28060.       int id;
  28061.       char *shmaddr;
  28062.     id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
  28063.     if (id == -1)
  28064.       exit (2);
  28065.       shmaddr = shmat (id, 0, 0);
  28066.       shmctl (id, IPC_RMID, 0);
  28067.       if ((char*) shmat (id, 0, 0) == (char*) -1)
  28068.       {
  28069.         shmdt (shmaddr);
  28070.         exit (1);
  28071.       }
  28072.       shmdt (shmaddr);
  28073.       shmdt (shmaddr);
  28074.       exit (0);
  28075.     }
  28076.  
  28077. _ACEOF
  28078. rm -f conftest$ac_exeext
  28079. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  28080.   (eval $ac_link) 2>&5
  28081.   ac_status=$?
  28082.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28083.   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28084.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28085.   (eval $ac_try) 2>&5
  28086.   ac_status=$?
  28087.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28088.   (exit $ac_status); }; }; then
  28089.  
  28090. cat >>confdefs.h <<\_ACEOF
  28091. #define IPC_RMID_DEFERRED_RELEASE 1
  28092. _ACEOF
  28093.  
  28094.         echo "$as_me:$LINENO: result: yes" >&5
  28095. echo "${ECHO_T}yes" >&6
  28096. else
  28097.   echo "$as_me: program exited with status $ac_status" >&5
  28098. echo "$as_me: failed program was:" >&5
  28099. sed 's/^/| /' conftest.$ac_ext >&5
  28100.  
  28101. ( exit $ac_status )
  28102. echo "$as_me:$LINENO: result: no" >&5
  28103. echo "${ECHO_T}no" >&6
  28104. fi
  28105. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28106. fi
  28107.  
  28108.  
  28109. cat >>confdefs.h <<\_ACEOF
  28110. #define USE_SYSV_SHM 1
  28111. _ACEOF
  28112.  
  28113.   else
  28114.     shmtype=none
  28115.   fi
  28116. elif test "x$shmtype" = "xposix"; then
  28117.   have_shm_open=no
  28118.  
  28119.   echo "$as_me:$LINENO: checking for shm_open" >&5
  28120. echo $ECHO_N "checking for shm_open... $ECHO_C" >&6
  28121. if test "${ac_cv_func_shm_open+set}" = set; then
  28122.   echo $ECHO_N "(cached) $ECHO_C" >&6
  28123. else
  28124.   cat >conftest.$ac_ext <<_ACEOF
  28125. /* confdefs.h.  */
  28126. _ACEOF
  28127. cat confdefs.h >>conftest.$ac_ext
  28128. cat >>conftest.$ac_ext <<_ACEOF
  28129. /* end confdefs.h.  */
  28130. /* Define shm_open to an innocuous variant, in case <limits.h> declares shm_open.
  28131.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  28132. #define shm_open innocuous_shm_open
  28133.  
  28134. /* System header to define __stub macros and hopefully few prototypes,
  28135.     which can conflict with char shm_open (); below.
  28136.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  28137.     <limits.h> exists even on freestanding compilers.  */
  28138.  
  28139. #ifdef __STDC__
  28140. # include <limits.h>
  28141. #else
  28142. # include <assert.h>
  28143. #endif
  28144.  
  28145. #undef shm_open
  28146.  
  28147. /* Override any gcc2 internal prototype to avoid an error.  */
  28148. #ifdef __cplusplus
  28149. extern "C"
  28150. {
  28151. #endif
  28152. /* We use char because int might match the return type of a gcc2
  28153.    builtin and then its argument prototype would still apply.  */
  28154. char shm_open ();
  28155. /* The GNU C library defines this for functions which it implements
  28156.     to always fail with ENOSYS.  Some functions are actually named
  28157.     something starting with __ and the normal name is an alias.  */
  28158. #if defined (__stub_shm_open) || defined (__stub___shm_open)
  28159. choke me
  28160. #else
  28161. char (*f) () = shm_open;
  28162. #endif
  28163. #ifdef __cplusplus
  28164. }
  28165. #endif
  28166.  
  28167. int
  28168. main ()
  28169. {
  28170. return f != shm_open;
  28171.   ;
  28172.   return 0;
  28173. }
  28174. _ACEOF
  28175. rm -f conftest.$ac_objext conftest$ac_exeext
  28176. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  28177.   (eval $ac_link) 2>conftest.er1
  28178.   ac_status=$?
  28179.   grep -v '^ *+' conftest.er1 >conftest.err
  28180.   rm -f conftest.er1
  28181.   cat conftest.err >&5
  28182.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28183.   (exit $ac_status); } &&
  28184.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  28185.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28186.   (eval $ac_try) 2>&5
  28187.   ac_status=$?
  28188.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28189.   (exit $ac_status); }; } &&
  28190.      { ac_try='test -s conftest$ac_exeext'
  28191.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28192.   (eval $ac_try) 2>&5
  28193.   ac_status=$?
  28194.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28195.   (exit $ac_status); }; }; then
  28196.   ac_cv_func_shm_open=yes
  28197. else
  28198.   echo "$as_me: failed program was:" >&5
  28199. sed 's/^/| /' conftest.$ac_ext >&5
  28200.  
  28201. ac_cv_func_shm_open=no
  28202. fi
  28203. rm -f conftest.err conftest.$ac_objext \
  28204.       conftest$ac_exeext conftest.$ac_ext
  28205. fi
  28206. echo "$as_me:$LINENO: result: $ac_cv_func_shm_open" >&5
  28207. echo "${ECHO_T}$ac_cv_func_shm_open" >&6
  28208. if test $ac_cv_func_shm_open = yes; then
  28209.   have_shm_open=yes
  28210. fi
  28211.  
  28212.  
  28213.   RT_LIBS=
  28214.   if test "$have_shm_open" != "yes"; then
  28215.     echo "$as_me:$LINENO: checking for shm_open in -lrt" >&5
  28216. echo $ECHO_N "checking for shm_open in -lrt... $ECHO_C" >&6
  28217. if test "${ac_cv_lib_rt_shm_open+set}" = set; then
  28218.   echo $ECHO_N "(cached) $ECHO_C" >&6
  28219. else
  28220.   ac_check_lib_save_LIBS=$LIBS
  28221. LIBS="-lrt  $LIBS"
  28222. cat >conftest.$ac_ext <<_ACEOF
  28223. /* confdefs.h.  */
  28224. _ACEOF
  28225. cat confdefs.h >>conftest.$ac_ext
  28226. cat >>conftest.$ac_ext <<_ACEOF
  28227. /* end confdefs.h.  */
  28228.  
  28229. /* Override any gcc2 internal prototype to avoid an error.  */
  28230. #ifdef __cplusplus
  28231. extern "C"
  28232. #endif
  28233. /* We use char because int might match the return type of a gcc2
  28234.    builtin and then its argument prototype would still apply.  */
  28235. char shm_open ();
  28236. int
  28237. main ()
  28238. {
  28239. shm_open ();
  28240.   ;
  28241.   return 0;
  28242. }
  28243. _ACEOF
  28244. rm -f conftest.$ac_objext conftest$ac_exeext
  28245. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  28246.   (eval $ac_link) 2>conftest.er1
  28247.   ac_status=$?
  28248.   grep -v '^ *+' conftest.er1 >conftest.err
  28249.   rm -f conftest.er1
  28250.   cat conftest.err >&5
  28251.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28252.   (exit $ac_status); } &&
  28253.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  28254.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28255.   (eval $ac_try) 2>&5
  28256.   ac_status=$?
  28257.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28258.   (exit $ac_status); }; } &&
  28259.      { ac_try='test -s conftest$ac_exeext'
  28260.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28261.   (eval $ac_try) 2>&5
  28262.   ac_status=$?
  28263.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28264.   (exit $ac_status); }; }; then
  28265.   ac_cv_lib_rt_shm_open=yes
  28266. else
  28267.   echo "$as_me: failed program was:" >&5
  28268. sed 's/^/| /' conftest.$ac_ext >&5
  28269.  
  28270. ac_cv_lib_rt_shm_open=no
  28271. fi
  28272. rm -f conftest.err conftest.$ac_objext \
  28273.       conftest$ac_exeext conftest.$ac_ext
  28274. LIBS=$ac_check_lib_save_LIBS
  28275. fi
  28276. echo "$as_me:$LINENO: result: $ac_cv_lib_rt_shm_open" >&5
  28277. echo "${ECHO_T}$ac_cv_lib_rt_shm_open" >&6
  28278. if test $ac_cv_lib_rt_shm_open = yes; then
  28279.   RT_LIBS="-lrt" have_shm_open=yes
  28280. fi
  28281.  
  28282.   fi
  28283.  
  28284.  
  28285.   if test "${ac_cv_header_sys_mman_h+set}" = set; then
  28286.   echo "$as_me:$LINENO: checking for sys/mman.h" >&5
  28287. echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
  28288. if test "${ac_cv_header_sys_mman_h+set}" = set; then
  28289.   echo $ECHO_N "(cached) $ECHO_C" >&6
  28290. fi
  28291. echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
  28292. echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
  28293. else
  28294.   # Is the header compilable?
  28295. echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
  28296. echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6
  28297. cat >conftest.$ac_ext <<_ACEOF
  28298. /* confdefs.h.  */
  28299. _ACEOF
  28300. cat confdefs.h >>conftest.$ac_ext
  28301. cat >>conftest.$ac_ext <<_ACEOF
  28302. /* end confdefs.h.  */
  28303. $ac_includes_default
  28304. #include <sys/mman.h>
  28305. _ACEOF
  28306. rm -f conftest.$ac_objext
  28307. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28308.   (eval $ac_compile) 2>conftest.er1
  28309.   ac_status=$?
  28310.   grep -v '^ *+' conftest.er1 >conftest.err
  28311.   rm -f conftest.er1
  28312.   cat conftest.err >&5
  28313.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28314.   (exit $ac_status); } &&
  28315.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  28316.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28317.   (eval $ac_try) 2>&5
  28318.   ac_status=$?
  28319.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28320.   (exit $ac_status); }; } &&
  28321.      { ac_try='test -s conftest.$ac_objext'
  28322.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28323.   (eval $ac_try) 2>&5
  28324.   ac_status=$?
  28325.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28326.   (exit $ac_status); }; }; then
  28327.   ac_header_compiler=yes
  28328. else
  28329.   echo "$as_me: failed program was:" >&5
  28330. sed 's/^/| /' conftest.$ac_ext >&5
  28331.  
  28332. ac_header_compiler=no
  28333. fi
  28334. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28335. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  28336. echo "${ECHO_T}$ac_header_compiler" >&6
  28337.  
  28338. # Is the header present?
  28339. echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
  28340. echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6
  28341. cat >conftest.$ac_ext <<_ACEOF
  28342. /* confdefs.h.  */
  28343. _ACEOF
  28344. cat confdefs.h >>conftest.$ac_ext
  28345. cat >>conftest.$ac_ext <<_ACEOF
  28346. /* end confdefs.h.  */
  28347. #include <sys/mman.h>
  28348. _ACEOF
  28349. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  28350.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  28351.   ac_status=$?
  28352.   grep -v '^ *+' conftest.er1 >conftest.err
  28353.   rm -f conftest.er1
  28354.   cat conftest.err >&5
  28355.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28356.   (exit $ac_status); } >/dev/null; then
  28357.   if test -s conftest.err; then
  28358.     ac_cpp_err=$ac_c_preproc_warn_flag
  28359.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  28360.   else
  28361.     ac_cpp_err=
  28362.   fi
  28363. else
  28364.   ac_cpp_err=yes
  28365. fi
  28366. if test -z "$ac_cpp_err"; then
  28367.   ac_header_preproc=yes
  28368. else
  28369.   echo "$as_me: failed program was:" >&5
  28370. sed 's/^/| /' conftest.$ac_ext >&5
  28371.  
  28372.   ac_header_preproc=no
  28373. fi
  28374. rm -f conftest.err conftest.$ac_ext
  28375. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  28376. echo "${ECHO_T}$ac_header_preproc" >&6
  28377.  
  28378. # So?  What about this header?
  28379. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  28380.   yes:no: )
  28381.     { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
  28382. echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  28383.     { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
  28384. echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
  28385.     ac_header_preproc=yes
  28386.     ;;
  28387.   no:yes:* )
  28388.     { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
  28389. echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
  28390.     { echo "$as_me:$LINENO: WARNING: sys/mman.h:     check for missing prerequisite headers?" >&5
  28391. echo "$as_me: WARNING: sys/mman.h:     check for missing prerequisite headers?" >&2;}
  28392.     { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
  28393. echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
  28394.     { echo "$as_me:$LINENO: WARNING: sys/mman.h:     section \"Present But Cannot Be Compiled\"" >&5
  28395. echo "$as_me: WARNING: sys/mman.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  28396.     { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
  28397. echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
  28398.     { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
  28399. echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
  28400.     (
  28401.       cat <<\_ASBOX
  28402. ## ------------------------------------------------------------------- ##
  28403. ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=GIMP ##
  28404. ## ------------------------------------------------------------------- ##
  28405. _ASBOX
  28406.     ) |
  28407.       sed "s/^/$as_me: WARNING:     /" >&2
  28408.     ;;
  28409. esac
  28410. echo "$as_me:$LINENO: checking for sys/mman.h" >&5
  28411. echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
  28412. if test "${ac_cv_header_sys_mman_h+set}" = set; then
  28413.   echo $ECHO_N "(cached) $ECHO_C" >&6
  28414. else
  28415.   ac_cv_header_sys_mman_h=$ac_header_preproc
  28416. fi
  28417. echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
  28418. echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
  28419.  
  28420. fi
  28421. if test $ac_cv_header_sys_mman_h = yes; then
  28422.  
  28423. cat >>confdefs.h <<\_ACEOF
  28424. #define HAVE_MMAN_H 1
  28425. _ACEOF
  28426.  
  28427. else
  28428.   no_sys_mman=yes
  28429. fi
  28430.  
  28431.  
  28432.  
  28433.   if test "$ac_cv_func_mmap" = "yes" &&
  28434.      test "$ac_cv_header_sys_mman_h" = "yes" &&
  28435.      test "$have_shm_open" = "yes"; then
  28436.  
  28437. cat >>confdefs.h <<\_ACEOF
  28438. #define USE_POSIX_SHM 1
  28439. _ACEOF
  28440.  
  28441.   else
  28442.     shmtype=none
  28443.   fi
  28444. fi
  28445.  
  28446. echo "$as_me:$LINENO: checking for shared memory transport type" >&5
  28447. echo $ECHO_N "checking for shared memory transport type... $ECHO_C" >&6
  28448. echo "$as_me:$LINENO: result: $shmtype" >&5
  28449. echo "${ECHO_T}$shmtype" >&6
  28450.  
  28451.  
  28452. ########################
  28453. # Define a symbol prefix
  28454. ########################
  28455.  
  28456. echo "$as_me:$LINENO: checking whether symbols are prefixed" >&5
  28457. echo $ECHO_N "checking whether symbols are prefixed... $ECHO_C" >&6
  28458.  
  28459. case "$host_os" in
  28460.   mingw*)
  28461.     SYMPREFIX='_'
  28462.     ;;
  28463.   darwin* | rhapsody* | machten*)
  28464.     SYMPREFIX='_'
  28465.     ;;
  28466.   *)
  28467.     ;;
  28468. esac
  28469.  
  28470. if test -n "$SYMPREFIX"; then
  28471.   echo "$as_me:$LINENO: result: yes, with a $SYMPREFIX" >&5
  28472. echo "${ECHO_T}yes, with a $SYMPREFIX" >&6
  28473. else
  28474.   echo "$as_me:$LINENO: result: no" >&5
  28475. echo "${ECHO_T}no" >&6
  28476. fi
  28477.  
  28478.  
  28479.  
  28480.  
  28481. ##################################
  28482. # Check for regex support in glibc
  28483. ##################################
  28484.  
  28485. echo "$as_me:$LINENO: checking checking for regex in glibc" >&5
  28486. echo $ECHO_N "checking checking for regex in glibc... $ECHO_C" >&6
  28487. if test "$cross_compiling" = yes; then
  28488.   echo "$as_me:$LINENO: result: assuming no" >&5
  28489. echo "${ECHO_T}assuming no" >&6
  28490. else
  28491.   cat >conftest.$ac_ext <<_ACEOF
  28492. /* confdefs.h.  */
  28493. _ACEOF
  28494. cat confdefs.h >>conftest.$ac_ext
  28495. cat >>conftest.$ac_ext <<_ACEOF
  28496. /* end confdefs.h.  */
  28497.  
  28498. #include <features.h>
  28499. #include <stdio.h>
  28500. #include <regex.h>
  28501. int main()
  28502. {
  28503. #if __GLIBC__ >= 2
  28504.   return (0);
  28505. #else
  28506.   return (1);
  28507. #endif
  28508. }
  28509. _ACEOF
  28510. rm -f conftest$ac_exeext
  28511. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  28512.   (eval $ac_link) 2>&5
  28513.   ac_status=$?
  28514.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28515.   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28516.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28517.   (eval $ac_try) 2>&5
  28518.   ac_status=$?
  28519.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28520.   (exit $ac_status); }; }; then
  28521.  
  28522. cat >>confdefs.h <<\_ACEOF
  28523. #define HAVE_GLIBC_REGEX 1
  28524. _ACEOF
  28525.  
  28526.     have_glibc_regex=yes
  28527.     echo "$as_me:$LINENO: result: yes" >&5
  28528. echo "${ECHO_T}yes" >&6
  28529. else
  28530.   echo "$as_me: program exited with status $ac_status" >&5
  28531. echo "$as_me: failed program was:" >&5
  28532. sed 's/^/| /' conftest.$ac_ext >&5
  28533.  
  28534. ( exit $ac_status )
  28535. echo "$as_me:$LINENO: result: no" >&5
  28536. echo "${ECHO_T}no" >&6
  28537. fi
  28538. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28539. fi
  28540.  
  28541.  
  28542. if test x$have_glibc_regex = xyes; then
  28543.   HAVE_GLIBC_REGEX_TRUE=
  28544.   HAVE_GLIBC_REGEX_FALSE='#'
  28545. else
  28546.   HAVE_GLIBC_REGEX_TRUE='#'
  28547.   HAVE_GLIBC_REGEX_FALSE=
  28548. fi
  28549.  
  28550.  
  28551.  
  28552.  
  28553.  
  28554. ############################
  28555. # Check for select and fdset
  28556. ############################
  28557.  
  28558. echo "$as_me:$LINENO: checking fd_set and sys/select" >&5
  28559. echo $ECHO_N "checking fd_set and sys/select... $ECHO_C" >&6
  28560. cat >conftest.$ac_ext <<_ACEOF
  28561. /* confdefs.h.  */
  28562. _ACEOF
  28563. cat confdefs.h >>conftest.$ac_ext
  28564. cat >>conftest.$ac_ext <<_ACEOF
  28565. /* end confdefs.h.  */
  28566. #include <sys/types.h>
  28567. int
  28568. main ()
  28569. {
  28570. fd_set readMask, writeMask;
  28571.   ;
  28572.   return 0;
  28573. }
  28574. _ACEOF
  28575. rm -f conftest.$ac_objext
  28576. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28577.   (eval $ac_compile) 2>conftest.er1
  28578.   ac_status=$?
  28579.   grep -v '^ *+' conftest.er1 >conftest.err
  28580.   rm -f conftest.er1
  28581.   cat conftest.err >&5
  28582.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28583.   (exit $ac_status); } &&
  28584.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  28585.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28586.   (eval $ac_try) 2>&5
  28587.   ac_status=$?
  28588.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28589.   (exit $ac_status); }; } &&
  28590.      { ac_try='test -s conftest.$ac_objext'
  28591.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28592.   (eval $ac_try) 2>&5
  28593.   ac_status=$?
  28594.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28595.   (exit $ac_status); }; }; then
  28596.   gimp_ok=yes
  28597. else
  28598.   echo "$as_me: failed program was:" >&5
  28599. sed 's/^/| /' conftest.$ac_ext >&5
  28600.  
  28601. gimp_ok=no
  28602. fi
  28603. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28604. if test $gimp_ok = no; then
  28605.     cat >conftest.$ac_ext <<_ACEOF
  28606. /* confdefs.h.  */
  28607. _ACEOF
  28608. cat confdefs.h >>conftest.$ac_ext
  28609. cat >>conftest.$ac_ext <<_ACEOF
  28610. /* end confdefs.h.  */
  28611. #include <sys/select.h>
  28612.  
  28613. _ACEOF
  28614. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  28615.   $EGREP "fd_mask" >/dev/null 2>&1; then
  28616.   gimp_ok=yes
  28617. fi
  28618. rm -f conftest*
  28619.  
  28620.     if test $gimp_ok = yes; then
  28621.  
  28622. cat >>confdefs.h <<\_ACEOF
  28623. #define HAVE_SYS_SELECT_H 1
  28624. _ACEOF
  28625.  
  28626.     fi
  28627. fi
  28628. echo "$as_me:$LINENO: result: $gimp_ok" >&5
  28629. echo "${ECHO_T}$gimp_ok" >&6
  28630. if test $gimp_ok = no; then
  28631.  
  28632. cat >>confdefs.h <<\_ACEOF
  28633. #define NO_FD_SET 1
  28634. _ACEOF
  28635.  
  28636. fi
  28637.  
  28638.  
  28639. #############################
  28640. # Threads and multi processor
  28641. #############################
  28642.  
  28643.  
  28644.  
  28645.  
  28646.  
  28647.  
  28648. # Check whether --enable-mp or --disable-mp was given.
  28649. if test "${enable_mp+set}" = set; then
  28650.   enableval="$enable_mp"
  28651.  
  28652. fi;
  28653. if test "x$enable_mp" = "xyes"; then
  28654.   echo "$as_me:$LINENO: checking for pthread_attr_init in -lpthread" >&5
  28655. echo $ECHO_N "checking for pthread_attr_init in -lpthread... $ECHO_C" >&6
  28656. if test "${ac_cv_lib_pthread_pthread_attr_init+set}" = set; then
  28657.   echo $ECHO_N "(cached) $ECHO_C" >&6
  28658. else
  28659.   ac_check_lib_save_LIBS=$LIBS
  28660. LIBS="-lpthread  $LIBS"
  28661. cat >conftest.$ac_ext <<_ACEOF
  28662. /* confdefs.h.  */
  28663. _ACEOF
  28664. cat confdefs.h >>conftest.$ac_ext
  28665. cat >>conftest.$ac_ext <<_ACEOF
  28666. /* end confdefs.h.  */
  28667.  
  28668. /* Override any gcc2 internal prototype to avoid an error.  */
  28669. #ifdef __cplusplus
  28670. extern "C"
  28671. #endif
  28672. /* We use char because int might match the return type of a gcc2
  28673.    builtin and then its argument prototype would still apply.  */
  28674. char pthread_attr_init ();
  28675. int
  28676. main ()
  28677. {
  28678. pthread_attr_init ();
  28679.   ;
  28680.   return 0;
  28681. }
  28682. _ACEOF
  28683. rm -f conftest.$ac_objext conftest$ac_exeext
  28684. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  28685.   (eval $ac_link) 2>conftest.er1
  28686.   ac_status=$?
  28687.   grep -v '^ *+' conftest.er1 >conftest.err
  28688.   rm -f conftest.er1
  28689.   cat conftest.err >&5
  28690.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28691.   (exit $ac_status); } &&
  28692.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  28693.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28694.   (eval $ac_try) 2>&5
  28695.   ac_status=$?
  28696.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28697.   (exit $ac_status); }; } &&
  28698.      { ac_try='test -s conftest$ac_exeext'
  28699.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28700.   (eval $ac_try) 2>&5
  28701.   ac_status=$?
  28702.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28703.   (exit $ac_status); }; }; then
  28704.   ac_cv_lib_pthread_pthread_attr_init=yes
  28705. else
  28706.   echo "$as_me: failed program was:" >&5
  28707. sed 's/^/| /' conftest.$ac_ext >&5
  28708.  
  28709. ac_cv_lib_pthread_pthread_attr_init=no
  28710. fi
  28711. rm -f conftest.err conftest.$ac_objext \
  28712.       conftest$ac_exeext conftest.$ac_ext
  28713. LIBS=$ac_check_lib_save_LIBS
  28714. fi
  28715. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_attr_init" >&5
  28716. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_attr_init" >&6
  28717. if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
  28718.  
  28719. cat >>confdefs.h <<\_ACEOF
  28720. #define ENABLE_MP 1
  28721. _ACEOF
  28722.  
  28723.     GIMP_MP_LIBS="-lpthread"
  28724.     GIMP_MP_FLAGS="-D_REENTRANT"
  28725. else
  28726.   # AIX has libpthreads, cause they're special. Special friends (TM)
  28727.     echo "$as_me:$LINENO: checking for pthread_attr_init in -lpthreads" >&5
  28728. echo $ECHO_N "checking for pthread_attr_init in -lpthreads... $ECHO_C" >&6
  28729. if test "${ac_cv_lib_pthreads_pthread_attr_init+set}" = set; then
  28730.   echo $ECHO_N "(cached) $ECHO_C" >&6
  28731. else
  28732.   ac_check_lib_save_LIBS=$LIBS
  28733. LIBS="-lpthreads  $LIBS"
  28734. cat >conftest.$ac_ext <<_ACEOF
  28735. /* confdefs.h.  */
  28736. _ACEOF
  28737. cat confdefs.h >>conftest.$ac_ext
  28738. cat >>conftest.$ac_ext <<_ACEOF
  28739. /* end confdefs.h.  */
  28740.  
  28741. /* Override any gcc2 internal prototype to avoid an error.  */
  28742. #ifdef __cplusplus
  28743. extern "C"
  28744. #endif
  28745. /* We use char because int might match the return type of a gcc2
  28746.    builtin and then its argument prototype would still apply.  */
  28747. char pthread_attr_init ();
  28748. int
  28749. main ()
  28750. {
  28751. pthread_attr_init ();
  28752.   ;
  28753.   return 0;
  28754. }
  28755. _ACEOF
  28756. rm -f conftest.$ac_objext conftest$ac_exeext
  28757. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  28758.   (eval $ac_link) 2>conftest.er1
  28759.   ac_status=$?
  28760.   grep -v '^ *+' conftest.er1 >conftest.err
  28761.   rm -f conftest.er1
  28762.   cat conftest.err >&5
  28763.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28764.   (exit $ac_status); } &&
  28765.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  28766.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28767.   (eval $ac_try) 2>&5
  28768.   ac_status=$?
  28769.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28770.   (exit $ac_status); }; } &&
  28771.      { ac_try='test -s conftest$ac_exeext'
  28772.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28773.   (eval $ac_try) 2>&5
  28774.   ac_status=$?
  28775.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28776.   (exit $ac_status); }; }; then
  28777.   ac_cv_lib_pthreads_pthread_attr_init=yes
  28778. else
  28779.   echo "$as_me: failed program was:" >&5
  28780. sed 's/^/| /' conftest.$ac_ext >&5
  28781.  
  28782. ac_cv_lib_pthreads_pthread_attr_init=no
  28783. fi
  28784. rm -f conftest.err conftest.$ac_objext \
  28785.       conftest$ac_exeext conftest.$ac_ext
  28786. LIBS=$ac_check_lib_save_LIBS
  28787. fi
  28788. echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_attr_init" >&5
  28789. echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_attr_init" >&6
  28790. if test $ac_cv_lib_pthreads_pthread_attr_init = yes; then
  28791.   cat >>confdefs.h <<\_ACEOF
  28792. #define ENABLE_MP 1
  28793. _ACEOF
  28794.  
  28795.       GIMP_MP_LIBS="-lpthreads"
  28796.       GIMP_MP_FLAGS="-D_REENTRANT -D_THREAD_SAFE"
  28797. fi
  28798.  
  28799. fi
  28800.  
  28801. fi
  28802.  
  28803.  
  28804.  
  28805.  
  28806.  
  28807. ################################
  28808. # Some plug-ins are X11 specific
  28809. ################################
  28810.  
  28811. gdk_target=`$PKG_CONFIG --variable=target gtk+-2.0`
  28812. if test "$gdk_target" = x11; then
  28813.         if test -z "$LIBXMU"; then
  28814.       gimp_save_CFLAGS="$CFLAGS"
  28815.       gimp_save_LDFLAGS="$LDFLAGS"
  28816.       CFLAGS="$CFLAGS $GTK_CFLAGS"
  28817.       LDFLAGS="$LDFLAGS $X_LIBS"
  28818.       echo "$as_me:$LINENO: checking for XmuClientWindow in -lXmu" >&5
  28819. echo $ECHO_N "checking for XmuClientWindow in -lXmu... $ECHO_C" >&6
  28820. if test "${ac_cv_lib_Xmu_XmuClientWindow+set}" = set; then
  28821.   echo $ECHO_N "(cached) $ECHO_C" >&6
  28822. else
  28823.   ac_check_lib_save_LIBS=$LIBS
  28824. LIBS="-lXmu -lXt -lX11 $LIBS"
  28825. cat >conftest.$ac_ext <<_ACEOF
  28826. /* confdefs.h.  */
  28827. _ACEOF
  28828. cat confdefs.h >>conftest.$ac_ext
  28829. cat >>conftest.$ac_ext <<_ACEOF
  28830. /* end confdefs.h.  */
  28831.  
  28832. /* Override any gcc2 internal prototype to avoid an error.  */
  28833. #ifdef __cplusplus
  28834. extern "C"
  28835. #endif
  28836. /* We use char because int might match the return type of a gcc2
  28837.    builtin and then its argument prototype would still apply.  */
  28838. char XmuClientWindow ();
  28839. int
  28840. main ()
  28841. {
  28842. XmuClientWindow ();
  28843.   ;
  28844.   return 0;
  28845. }
  28846. _ACEOF
  28847. rm -f conftest.$ac_objext conftest$ac_exeext
  28848. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  28849.   (eval $ac_link) 2>conftest.er1
  28850.   ac_status=$?
  28851.   grep -v '^ *+' conftest.er1 >conftest.err
  28852.   rm -f conftest.er1
  28853.   cat conftest.err >&5
  28854.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28855.   (exit $ac_status); } &&
  28856.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  28857.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28858.   (eval $ac_try) 2>&5
  28859.   ac_status=$?
  28860.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28861.   (exit $ac_status); }; } &&
  28862.      { ac_try='test -s conftest$ac_exeext'
  28863.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28864.   (eval $ac_try) 2>&5
  28865.   ac_status=$?
  28866.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28867.   (exit $ac_status); }; }; then
  28868.   ac_cv_lib_Xmu_XmuClientWindow=yes
  28869. else
  28870.   echo "$as_me: failed program was:" >&5
  28871. sed 's/^/| /' conftest.$ac_ext >&5
  28872.  
  28873. ac_cv_lib_Xmu_XmuClientWindow=no
  28874. fi
  28875. rm -f conftest.err conftest.$ac_objext \
  28876.       conftest$ac_exeext conftest.$ac_ext
  28877. LIBS=$ac_check_lib_save_LIBS
  28878. fi
  28879. echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuClientWindow" >&5
  28880. echo "${ECHO_T}$ac_cv_lib_Xmu_XmuClientWindow" >&6
  28881. if test $ac_cv_lib_Xmu_XmuClientWindow = yes; then
  28882.  
  28883. for ac_header in X11/Xmu/WinUtil.h
  28884. do
  28885. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  28886. echo "$as_me:$LINENO: checking for $ac_header" >&5
  28887. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  28888. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  28889.   echo $ECHO_N "(cached) $ECHO_C" >&6
  28890. else
  28891.   cat >conftest.$ac_ext <<_ACEOF
  28892. /* confdefs.h.  */
  28893. _ACEOF
  28894. cat confdefs.h >>conftest.$ac_ext
  28895. cat >>conftest.$ac_ext <<_ACEOF
  28896. /* end confdefs.h.  */
  28897. #include <gdk/gdkx.h>
  28898.  
  28899. #include <$ac_header>
  28900. _ACEOF
  28901. rm -f conftest.$ac_objext
  28902. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28903.   (eval $ac_compile) 2>conftest.er1
  28904.   ac_status=$?
  28905.   grep -v '^ *+' conftest.er1 >conftest.err
  28906.   rm -f conftest.er1
  28907.   cat conftest.err >&5
  28908.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28909.   (exit $ac_status); } &&
  28910.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  28911.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28912.   (eval $ac_try) 2>&5
  28913.   ac_status=$?
  28914.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28915.   (exit $ac_status); }; } &&
  28916.      { ac_try='test -s conftest.$ac_objext'
  28917.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28918.   (eval $ac_try) 2>&5
  28919.   ac_status=$?
  28920.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28921.   (exit $ac_status); }; }; then
  28922.   eval "$as_ac_Header=yes"
  28923. else
  28924.   echo "$as_me: failed program was:" >&5
  28925. sed 's/^/| /' conftest.$ac_ext >&5
  28926.  
  28927. eval "$as_ac_Header=no"
  28928. fi
  28929. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28930. fi
  28931. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  28932. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  28933. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  28934.   cat >>confdefs.h <<_ACEOF
  28935. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  28936. _ACEOF
  28937.  GIMP_REMOTE='gimp-remote-2.2';
  28938.       have_libxmu=yes
  28939.           LIBXMU="$X_LIBS $X_PRE_LIBS -lX11 -lXmu -lXt"
  28940. else
  28941.   { echo "$as_me:$LINENO: WARNING: *** gimp-remote will not be built (XMU header file not found) ***" >&5
  28942. echo "$as_me: WARNING: *** gimp-remote will not be built (XMU header file not found) ***" >&2;}
  28943. fi
  28944.  
  28945. done
  28946.  
  28947. else
  28948.   { echo "$as_me:$LINENO: WARNING: *** gimp-remote will not be built (XMU library not found) ***" >&5
  28949. echo "$as_me: WARNING: *** gimp-remote will not be built (XMU library not found) ***" >&2;}
  28950. fi
  28951.  
  28952.       CFLAGS="$gimp_save_CFLAGS"
  28953.       LDFLAGS="$gimp_save_LDFLAGS"
  28954.     fi
  28955.  
  28956.       LIBSCREENSHOT="$X_LIBS -lX11"
  28957. fi
  28958.  
  28959.  
  28960.  
  28961.  
  28962.  
  28963.  
  28964. ###################
  28965. # Check for libtiff
  28966. ###################
  28967.  
  28968.  
  28969. # Check whether --with-libtiff or --without-libtiff was given.
  28970. if test "${with_libtiff+set}" = set; then
  28971.   withval="$with_libtiff"
  28972.  
  28973. fi;
  28974.   if test x$with_libtiff != xno && test -z "$LIBTIFF"; then
  28975.     echo "$as_me:$LINENO: checking for TIFFReadScanline in -ltiff" >&5
  28976. echo $ECHO_N "checking for TIFFReadScanline in -ltiff... $ECHO_C" >&6
  28977. if test "${ac_cv_lib_tiff_TIFFReadScanline+set}" = set; then
  28978.   echo $ECHO_N "(cached) $ECHO_C" >&6
  28979. else
  28980.   ac_check_lib_save_LIBS=$LIBS
  28981. LIBS="-ltiff -lm $LIBS"
  28982. cat >conftest.$ac_ext <<_ACEOF
  28983. /* confdefs.h.  */
  28984. _ACEOF
  28985. cat confdefs.h >>conftest.$ac_ext
  28986. cat >>conftest.$ac_ext <<_ACEOF
  28987. /* end confdefs.h.  */
  28988.  
  28989. /* Override any gcc2 internal prototype to avoid an error.  */
  28990. #ifdef __cplusplus
  28991. extern "C"
  28992. #endif
  28993. /* We use char because int might match the return type of a gcc2
  28994.    builtin and then its argument prototype would still apply.  */
  28995. char TIFFReadScanline ();
  28996. int
  28997. main ()
  28998. {
  28999. TIFFReadScanline ();
  29000.   ;
  29001.   return 0;
  29002. }
  29003. _ACEOF
  29004. rm -f conftest.$ac_objext conftest$ac_exeext
  29005. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  29006.   (eval $ac_link) 2>conftest.er1
  29007.   ac_status=$?
  29008.   grep -v '^ *+' conftest.er1 >conftest.err
  29009.   rm -f conftest.er1
  29010.   cat conftest.err >&5
  29011.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29012.   (exit $ac_status); } &&
  29013.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  29014.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29015.   (eval $ac_try) 2>&5
  29016.   ac_status=$?
  29017.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29018.   (exit $ac_status); }; } &&
  29019.      { ac_try='test -s conftest$ac_exeext'
  29020.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29021.   (eval $ac_try) 2>&5
  29022.   ac_status=$?
  29023.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29024.   (exit $ac_status); }; }; then
  29025.   ac_cv_lib_tiff_TIFFReadScanline=yes
  29026. else
  29027.   echo "$as_me: failed program was:" >&5
  29028. sed 's/^/| /' conftest.$ac_ext >&5
  29029.  
  29030. ac_cv_lib_tiff_TIFFReadScanline=no
  29031. fi
  29032. rm -f conftest.err conftest.$ac_objext \
  29033.       conftest$ac_exeext conftest.$ac_ext
  29034. LIBS=$ac_check_lib_save_LIBS
  29035. fi
  29036. echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFReadScanline" >&5
  29037. echo "${ECHO_T}$ac_cv_lib_tiff_TIFFReadScanline" >&6
  29038. if test $ac_cv_lib_tiff_TIFFReadScanline = yes; then
  29039.   if test "${ac_cv_header_tiffio_h+set}" = set; then
  29040.   echo "$as_me:$LINENO: checking for tiffio.h" >&5
  29041. echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
  29042. if test "${ac_cv_header_tiffio_h+set}" = set; then
  29043.   echo $ECHO_N "(cached) $ECHO_C" >&6
  29044. fi
  29045. echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
  29046. echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
  29047. else
  29048.   # Is the header compilable?
  29049. echo "$as_me:$LINENO: checking tiffio.h usability" >&5
  29050. echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
  29051. cat >conftest.$ac_ext <<_ACEOF
  29052. /* confdefs.h.  */
  29053. _ACEOF
  29054. cat confdefs.h >>conftest.$ac_ext
  29055. cat >>conftest.$ac_ext <<_ACEOF
  29056. /* end confdefs.h.  */
  29057. $ac_includes_default
  29058. #include <tiffio.h>
  29059. _ACEOF
  29060. rm -f conftest.$ac_objext
  29061. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29062.   (eval $ac_compile) 2>conftest.er1
  29063.   ac_status=$?
  29064.   grep -v '^ *+' conftest.er1 >conftest.err
  29065.   rm -f conftest.er1
  29066.   cat conftest.err >&5
  29067.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29068.   (exit $ac_status); } &&
  29069.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  29070.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29071.   (eval $ac_try) 2>&5
  29072.   ac_status=$?
  29073.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29074.   (exit $ac_status); }; } &&
  29075.      { ac_try='test -s conftest.$ac_objext'
  29076.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29077.   (eval $ac_try) 2>&5
  29078.   ac_status=$?
  29079.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29080.   (exit $ac_status); }; }; then
  29081.   ac_header_compiler=yes
  29082. else
  29083.   echo "$as_me: failed program was:" >&5
  29084. sed 's/^/| /' conftest.$ac_ext >&5
  29085.  
  29086. ac_header_compiler=no
  29087. fi
  29088. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29089. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  29090. echo "${ECHO_T}$ac_header_compiler" >&6
  29091.  
  29092. # Is the header present?
  29093. echo "$as_me:$LINENO: checking tiffio.h presence" >&5
  29094. echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
  29095. cat >conftest.$ac_ext <<_ACEOF
  29096. /* confdefs.h.  */
  29097. _ACEOF
  29098. cat confdefs.h >>conftest.$ac_ext
  29099. cat >>conftest.$ac_ext <<_ACEOF
  29100. /* end confdefs.h.  */
  29101. #include <tiffio.h>
  29102. _ACEOF
  29103. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  29104.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  29105.   ac_status=$?
  29106.   grep -v '^ *+' conftest.er1 >conftest.err
  29107.   rm -f conftest.er1
  29108.   cat conftest.err >&5
  29109.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29110.   (exit $ac_status); } >/dev/null; then
  29111.   if test -s conftest.err; then
  29112.     ac_cpp_err=$ac_c_preproc_warn_flag
  29113.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  29114.   else
  29115.     ac_cpp_err=
  29116.   fi
  29117. else
  29118.   ac_cpp_err=yes
  29119. fi
  29120. if test -z "$ac_cpp_err"; then
  29121.   ac_header_preproc=yes
  29122. else
  29123.   echo "$as_me: failed program was:" >&5
  29124. sed 's/^/| /' conftest.$ac_ext >&5
  29125.  
  29126.   ac_header_preproc=no
  29127. fi
  29128. rm -f conftest.err conftest.$ac_ext
  29129. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  29130. echo "${ECHO_T}$ac_header_preproc" >&6
  29131.  
  29132. # So?  What about this header?
  29133. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  29134.   yes:no: )
  29135.     { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
  29136. echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  29137.     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
  29138. echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
  29139.     ac_header_preproc=yes
  29140.     ;;
  29141.   no:yes:* )
  29142.     { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
  29143. echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
  29144.     { echo "$as_me:$LINENO: WARNING: tiffio.h:     check for missing prerequisite headers?" >&5
  29145. echo "$as_me: WARNING: tiffio.h:     check for missing prerequisite headers?" >&2;}
  29146.     { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
  29147. echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
  29148.     { echo "$as_me:$LINENO: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&5
  29149. echo "$as_me: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  29150.     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
  29151. echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
  29152.     { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
  29153. echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
  29154.     (
  29155.       cat <<\_ASBOX
  29156. ## ------------------------------------------------------------------- ##
  29157. ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=GIMP ##
  29158. ## ------------------------------------------------------------------- ##
  29159. _ASBOX
  29160.     ) |
  29161.       sed "s/^/$as_me: WARNING:     /" >&2
  29162.     ;;
  29163. esac
  29164. echo "$as_me:$LINENO: checking for tiffio.h" >&5
  29165. echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
  29166. if test "${ac_cv_header_tiffio_h+set}" = set; then
  29167.   echo $ECHO_N "(cached) $ECHO_C" >&6
  29168. else
  29169.   ac_cv_header_tiffio_h=$ac_header_preproc
  29170. fi
  29171. echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
  29172. echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
  29173.  
  29174. fi
  29175. if test $ac_cv_header_tiffio_h = yes; then
  29176.   TIFF='tiff$(EXEEXT)'; LIBTIFF='-ltiff'
  29177. else
  29178.   { echo "$as_me:$LINENO: WARNING: *** TIFF plug-in will not be built (TIFF header files not found) ***" >&5
  29179. echo "$as_me: WARNING: *** TIFF plug-in will not be built (TIFF header files not found) ***" >&2;}
  29180. fi
  29181.  
  29182.  
  29183. else
  29184.   echo "$as_me:$LINENO: checking for TIFFWriteScanline in -ltiff" >&5
  29185. echo $ECHO_N "checking for TIFFWriteScanline in -ltiff... $ECHO_C" >&6
  29186. if test "${ac_cv_lib_tiff_TIFFWriteScanline+set}" = set; then
  29187.   echo $ECHO_N "(cached) $ECHO_C" >&6
  29188. else
  29189.   ac_check_lib_save_LIBS=$LIBS
  29190. LIBS="-ltiff -ljpeg -lz -lm $LIBS"
  29191. cat >conftest.$ac_ext <<_ACEOF
  29192. /* confdefs.h.  */
  29193. _ACEOF
  29194. cat confdefs.h >>conftest.$ac_ext
  29195. cat >>conftest.$ac_ext <<_ACEOF
  29196. /* end confdefs.h.  */
  29197.  
  29198. /* Override any gcc2 internal prototype to avoid an error.  */
  29199. #ifdef __cplusplus
  29200. extern "C"
  29201. #endif
  29202. /* We use char because int might match the return type of a gcc2
  29203.    builtin and then its argument prototype would still apply.  */
  29204. char TIFFWriteScanline ();
  29205. int
  29206. main ()
  29207. {
  29208. TIFFWriteScanline ();
  29209.   ;
  29210.   return 0;
  29211. }
  29212. _ACEOF
  29213. rm -f conftest.$ac_objext conftest$ac_exeext
  29214. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  29215.   (eval $ac_link) 2>conftest.er1
  29216.   ac_status=$?
  29217.   grep -v '^ *+' conftest.er1 >conftest.err
  29218.   rm -f conftest.er1
  29219.   cat conftest.err >&5
  29220.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29221.   (exit $ac_status); } &&
  29222.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  29223.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29224.   (eval $ac_try) 2>&5
  29225.   ac_status=$?
  29226.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29227.   (exit $ac_status); }; } &&
  29228.      { ac_try='test -s conftest$ac_exeext'
  29229.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29230.   (eval $ac_try) 2>&5
  29231.   ac_status=$?
  29232.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29233.   (exit $ac_status); }; }; then
  29234.   ac_cv_lib_tiff_TIFFWriteScanline=yes
  29235. else
  29236.   echo "$as_me: failed program was:" >&5
  29237. sed 's/^/| /' conftest.$ac_ext >&5
  29238.  
  29239. ac_cv_lib_tiff_TIFFWriteScanline=no
  29240. fi
  29241. rm -f conftest.err conftest.$ac_objext \
  29242.       conftest$ac_exeext conftest.$ac_ext
  29243. LIBS=$ac_check_lib_save_LIBS
  29244. fi
  29245. echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFWriteScanline" >&5
  29246. echo "${ECHO_T}$ac_cv_lib_tiff_TIFFWriteScanline" >&6
  29247. if test $ac_cv_lib_tiff_TIFFWriteScanline = yes; then
  29248.   if test "${ac_cv_header_tiffio_h+set}" = set; then
  29249.   echo "$as_me:$LINENO: checking for tiffio.h" >&5
  29250. echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
  29251. if test "${ac_cv_header_tiffio_h+set}" = set; then
  29252.   echo $ECHO_N "(cached) $ECHO_C" >&6
  29253. fi
  29254. echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
  29255. echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
  29256. else
  29257.   # Is the header compilable?
  29258. echo "$as_me:$LINENO: checking tiffio.h usability" >&5
  29259. echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
  29260. cat >conftest.$ac_ext <<_ACEOF
  29261. /* confdefs.h.  */
  29262. _ACEOF
  29263. cat confdefs.h >>conftest.$ac_ext
  29264. cat >>conftest.$ac_ext <<_ACEOF
  29265. /* end confdefs.h.  */
  29266. $ac_includes_default
  29267. #include <tiffio.h>
  29268. _ACEOF
  29269. rm -f conftest.$ac_objext
  29270. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29271.   (eval $ac_compile) 2>conftest.er1
  29272.   ac_status=$?
  29273.   grep -v '^ *+' conftest.er1 >conftest.err
  29274.   rm -f conftest.er1
  29275.   cat conftest.err >&5
  29276.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29277.   (exit $ac_status); } &&
  29278.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  29279.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29280.   (eval $ac_try) 2>&5
  29281.   ac_status=$?
  29282.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29283.   (exit $ac_status); }; } &&
  29284.      { ac_try='test -s conftest.$ac_objext'
  29285.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29286.   (eval $ac_try) 2>&5
  29287.   ac_status=$?
  29288.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29289.   (exit $ac_status); }; }; then
  29290.   ac_header_compiler=yes
  29291. else
  29292.   echo "$as_me: failed program was:" >&5
  29293. sed 's/^/| /' conftest.$ac_ext >&5
  29294.  
  29295. ac_header_compiler=no
  29296. fi
  29297. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29298. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  29299. echo "${ECHO_T}$ac_header_compiler" >&6
  29300.  
  29301. # Is the header present?
  29302. echo "$as_me:$LINENO: checking tiffio.h presence" >&5
  29303. echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
  29304. cat >conftest.$ac_ext <<_ACEOF
  29305. /* confdefs.h.  */
  29306. _ACEOF
  29307. cat confdefs.h >>conftest.$ac_ext
  29308. cat >>conftest.$ac_ext <<_ACEOF
  29309. /* end confdefs.h.  */
  29310. #include <tiffio.h>
  29311. _ACEOF
  29312. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  29313.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  29314.   ac_status=$?
  29315.   grep -v '^ *+' conftest.er1 >conftest.err
  29316.   rm -f conftest.er1
  29317.   cat conftest.err >&5
  29318.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29319.   (exit $ac_status); } >/dev/null; then
  29320.   if test -s conftest.err; then
  29321.     ac_cpp_err=$ac_c_preproc_warn_flag
  29322.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  29323.   else
  29324.     ac_cpp_err=
  29325.   fi
  29326. else
  29327.   ac_cpp_err=yes
  29328. fi
  29329. if test -z "$ac_cpp_err"; then
  29330.   ac_header_preproc=yes
  29331. else
  29332.   echo "$as_me: failed program was:" >&5
  29333. sed 's/^/| /' conftest.$ac_ext >&5
  29334.  
  29335.   ac_header_preproc=no
  29336. fi
  29337. rm -f conftest.err conftest.$ac_ext
  29338. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  29339. echo "${ECHO_T}$ac_header_preproc" >&6
  29340.  
  29341. # So?  What about this header?
  29342. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  29343.   yes:no: )
  29344.     { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
  29345. echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  29346.     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
  29347. echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
  29348.     ac_header_preproc=yes
  29349.     ;;
  29350.   no:yes:* )
  29351.     { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
  29352. echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
  29353.     { echo "$as_me:$LINENO: WARNING: tiffio.h:     check for missing prerequisite headers?" >&5
  29354. echo "$as_me: WARNING: tiffio.h:     check for missing prerequisite headers?" >&2;}
  29355.     { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
  29356. echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
  29357.     { echo "$as_me:$LINENO: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&5
  29358. echo "$as_me: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  29359.     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
  29360. echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
  29361.     { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
  29362. echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
  29363.     (
  29364.       cat <<\_ASBOX
  29365. ## ------------------------------------------------------------------- ##
  29366. ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=GIMP ##
  29367. ## ------------------------------------------------------------------- ##
  29368. _ASBOX
  29369.     ) |
  29370.       sed "s/^/$as_me: WARNING:     /" >&2
  29371.     ;;
  29372. esac
  29373. echo "$as_me:$LINENO: checking for tiffio.h" >&5
  29374. echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
  29375. if test "${ac_cv_header_tiffio_h+set}" = set; then
  29376.   echo $ECHO_N "(cached) $ECHO_C" >&6
  29377. else
  29378.   ac_cv_header_tiffio_h=$ac_header_preproc
  29379. fi
  29380. echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
  29381. echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
  29382.  
  29383. fi
  29384. if test $ac_cv_header_tiffio_h = yes; then
  29385.   TIFF='tiff$(EXEEXT)'; LIBTIFF='-ltiff -ljpeg -lz'
  29386. else
  29387.   { echo "$as_me:$LINENO: WARNING: *** TIFF plug-in will not be built (TIFF header files not found) ***" >&5
  29388. echo "$as_me: WARNING: *** TIFF plug-in will not be built (TIFF header files not found) ***" >&2;}
  29389. fi
  29390.  
  29391.  
  29392. else
  29393.   echo "$as_me:$LINENO: checking for TIFFFlushData in -ltiff34" >&5
  29394. echo $ECHO_N "checking for TIFFFlushData in -ltiff34... $ECHO_C" >&6
  29395. if test "${ac_cv_lib_tiff34_TIFFFlushData+set}" = set; then
  29396.   echo $ECHO_N "(cached) $ECHO_C" >&6
  29397. else
  29398.   ac_check_lib_save_LIBS=$LIBS
  29399. LIBS="-ltiff34 -ljpeg -lz -lm $LIBS"
  29400. cat >conftest.$ac_ext <<_ACEOF
  29401. /* confdefs.h.  */
  29402. _ACEOF
  29403. cat confdefs.h >>conftest.$ac_ext
  29404. cat >>conftest.$ac_ext <<_ACEOF
  29405. /* end confdefs.h.  */
  29406.  
  29407. /* Override any gcc2 internal prototype to avoid an error.  */
  29408. #ifdef __cplusplus
  29409. extern "C"
  29410. #endif
  29411. /* We use char because int might match the return type of a gcc2
  29412.    builtin and then its argument prototype would still apply.  */
  29413. char TIFFFlushData ();
  29414. int
  29415. main ()
  29416. {
  29417. TIFFFlushData ();
  29418.   ;
  29419.   return 0;
  29420. }
  29421. _ACEOF
  29422. rm -f conftest.$ac_objext conftest$ac_exeext
  29423. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  29424.   (eval $ac_link) 2>conftest.er1
  29425.   ac_status=$?
  29426.   grep -v '^ *+' conftest.er1 >conftest.err
  29427.   rm -f conftest.er1
  29428.   cat conftest.err >&5
  29429.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29430.   (exit $ac_status); } &&
  29431.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  29432.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29433.   (eval $ac_try) 2>&5
  29434.   ac_status=$?
  29435.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29436.   (exit $ac_status); }; } &&
  29437.      { ac_try='test -s conftest$ac_exeext'
  29438.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29439.   (eval $ac_try) 2>&5
  29440.   ac_status=$?
  29441.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29442.   (exit $ac_status); }; }; then
  29443.   ac_cv_lib_tiff34_TIFFFlushData=yes
  29444. else
  29445.   echo "$as_me: failed program was:" >&5
  29446. sed 's/^/| /' conftest.$ac_ext >&5
  29447.  
  29448. ac_cv_lib_tiff34_TIFFFlushData=no
  29449. fi
  29450. rm -f conftest.err conftest.$ac_objext \
  29451.       conftest$ac_exeext conftest.$ac_ext
  29452. LIBS=$ac_check_lib_save_LIBS
  29453. fi
  29454. echo "$as_me:$LINENO: result: $ac_cv_lib_tiff34_TIFFFlushData" >&5
  29455. echo "${ECHO_T}$ac_cv_lib_tiff34_TIFFFlushData" >&6
  29456. if test $ac_cv_lib_tiff34_TIFFFlushData = yes; then
  29457.   if test "${ac_cv_header_tiffio_h+set}" = set; then
  29458.   echo "$as_me:$LINENO: checking for tiffio.h" >&5
  29459. echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
  29460. if test "${ac_cv_header_tiffio_h+set}" = set; then
  29461.   echo $ECHO_N "(cached) $ECHO_C" >&6
  29462. fi
  29463. echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
  29464. echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
  29465. else
  29466.   # Is the header compilable?
  29467. echo "$as_me:$LINENO: checking tiffio.h usability" >&5
  29468. echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
  29469. cat >conftest.$ac_ext <<_ACEOF
  29470. /* confdefs.h.  */
  29471. _ACEOF
  29472. cat confdefs.h >>conftest.$ac_ext
  29473. cat >>conftest.$ac_ext <<_ACEOF
  29474. /* end confdefs.h.  */
  29475. $ac_includes_default
  29476. #include <tiffio.h>
  29477. _ACEOF
  29478. rm -f conftest.$ac_objext
  29479. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29480.   (eval $ac_compile) 2>conftest.er1
  29481.   ac_status=$?
  29482.   grep -v '^ *+' conftest.er1 >conftest.err
  29483.   rm -f conftest.er1
  29484.   cat conftest.err >&5
  29485.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29486.   (exit $ac_status); } &&
  29487.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  29488.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29489.   (eval $ac_try) 2>&5
  29490.   ac_status=$?
  29491.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29492.   (exit $ac_status); }; } &&
  29493.      { ac_try='test -s conftest.$ac_objext'
  29494.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29495.   (eval $ac_try) 2>&5
  29496.   ac_status=$?
  29497.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29498.   (exit $ac_status); }; }; then
  29499.   ac_header_compiler=yes
  29500. else
  29501.   echo "$as_me: failed program was:" >&5
  29502. sed 's/^/| /' conftest.$ac_ext >&5
  29503.  
  29504. ac_header_compiler=no
  29505. fi
  29506. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29507. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  29508. echo "${ECHO_T}$ac_header_compiler" >&6
  29509.  
  29510. # Is the header present?
  29511. echo "$as_me:$LINENO: checking tiffio.h presence" >&5
  29512. echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
  29513. cat >conftest.$ac_ext <<_ACEOF
  29514. /* confdefs.h.  */
  29515. _ACEOF
  29516. cat confdefs.h >>conftest.$ac_ext
  29517. cat >>conftest.$ac_ext <<_ACEOF
  29518. /* end confdefs.h.  */
  29519. #include <tiffio.h>
  29520. _ACEOF
  29521. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  29522.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  29523.   ac_status=$?
  29524.   grep -v '^ *+' conftest.er1 >conftest.err
  29525.   rm -f conftest.er1
  29526.   cat conftest.err >&5
  29527.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29528.   (exit $ac_status); } >/dev/null; then
  29529.   if test -s conftest.err; then
  29530.     ac_cpp_err=$ac_c_preproc_warn_flag
  29531.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  29532.   else
  29533.     ac_cpp_err=
  29534.   fi
  29535. else
  29536.   ac_cpp_err=yes
  29537. fi
  29538. if test -z "$ac_cpp_err"; then
  29539.   ac_header_preproc=yes
  29540. else
  29541.   echo "$as_me: failed program was:" >&5
  29542. sed 's/^/| /' conftest.$ac_ext >&5
  29543.  
  29544.   ac_header_preproc=no
  29545. fi
  29546. rm -f conftest.err conftest.$ac_ext
  29547. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  29548. echo "${ECHO_T}$ac_header_preproc" >&6
  29549.  
  29550. # So?  What about this header?
  29551. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  29552.   yes:no: )
  29553.     { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
  29554. echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  29555.     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
  29556. echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
  29557.     ac_header_preproc=yes
  29558.     ;;
  29559.   no:yes:* )
  29560.     { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
  29561. echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
  29562.     { echo "$as_me:$LINENO: WARNING: tiffio.h:     check for missing prerequisite headers?" >&5
  29563. echo "$as_me: WARNING: tiffio.h:     check for missing prerequisite headers?" >&2;}
  29564.     { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
  29565. echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
  29566.     { echo "$as_me:$LINENO: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&5
  29567. echo "$as_me: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  29568.     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
  29569. echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
  29570.     { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
  29571. echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
  29572.     (
  29573.       cat <<\_ASBOX
  29574. ## ------------------------------------------------------------------- ##
  29575. ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=GIMP ##
  29576. ## ------------------------------------------------------------------- ##
  29577. _ASBOX
  29578.     ) |
  29579.       sed "s/^/$as_me: WARNING:     /" >&2
  29580.     ;;
  29581. esac
  29582. echo "$as_me:$LINENO: checking for tiffio.h" >&5
  29583. echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
  29584. if test "${ac_cv_header_tiffio_h+set}" = set; then
  29585.   echo $ECHO_N "(cached) $ECHO_C" >&6
  29586. else
  29587.   ac_cv_header_tiffio_h=$ac_header_preproc
  29588. fi
  29589. echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
  29590. echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
  29591.  
  29592. fi
  29593. if test $ac_cv_header_tiffio_h = yes; then
  29594.   TIFF='tiff$(EXEEXT)'; LIBTIFF='-ltiff34 -ljpeg -lz'
  29595. else
  29596.   { echo "$as_me:$LINENO: WARNING: *** TIFF plug-in will not be built (TIFF header files not found) ***" >&5
  29597. echo "$as_me: WARNING: *** TIFF plug-in will not be built (TIFF header files not found) ***" >&2;}
  29598. fi
  29599.  
  29600.  
  29601. else
  29602.   { echo "$as_me:$LINENO: WARNING: *** TIFF plug-in will not be built (TIFF library not found) ***" >&5
  29603. echo "$as_me: WARNING: *** TIFF plug-in will not be built (TIFF library not found) ***" >&2;}
  29604. fi
  29605.  
  29606. fi
  29607.  
  29608. fi
  29609.  
  29610.   fi
  29611.  
  29612.   if test x$with_libtiff != xno && test -z "$LIBTIFF"; then
  29613.      { { echo "$as_me:$LINENO: error:
  29614. *** Checks for TIFF libary failed. You can build without it by passing
  29615. *** --without-libtiff to configure but you won't be able to use TIFFs then." >&5
  29616. echo "$as_me: error:
  29617. *** Checks for TIFF libary failed. You can build without it by passing
  29618. *** --without-libtiff to configure but you won't be able to use TIFFs then." >&2;}
  29619.    { (exit 1); exit 1; }; }
  29620.   fi
  29621.  
  29622.  
  29623.  
  29624.  
  29625.  
  29626. ###################
  29627. # Check for libjpeg
  29628. ###################
  29629.  
  29630.  
  29631. # Check whether --with-libjpeg or --without-libjpeg was given.
  29632. if test "${with_libjpeg+set}" = set; then
  29633.   withval="$with_libjpeg"
  29634.  
  29635. fi;
  29636.   if test x$with_libjpeg != xno && test -z "$LIBJPEG"; then
  29637.     echo "$as_me:$LINENO: checking for jpeg_destroy_decompress in -ljpeg" >&5
  29638. echo $ECHO_N "checking for jpeg_destroy_decompress in -ljpeg... $ECHO_C" >&6
  29639. if test "${ac_cv_lib_jpeg_jpeg_destroy_decompress+set}" = set; then
  29640.   echo $ECHO_N "(cached) $ECHO_C" >&6
  29641. else
  29642.   ac_check_lib_save_LIBS=$LIBS
  29643. LIBS="-ljpeg  $LIBS"
  29644. cat >conftest.$ac_ext <<_ACEOF
  29645. /* confdefs.h.  */
  29646. _ACEOF
  29647. cat confdefs.h >>conftest.$ac_ext
  29648. cat >>conftest.$ac_ext <<_ACEOF
  29649. /* end confdefs.h.  */
  29650.  
  29651. /* Override any gcc2 internal prototype to avoid an error.  */
  29652. #ifdef __cplusplus
  29653. extern "C"
  29654. #endif
  29655. /* We use char because int might match the return type of a gcc2
  29656.    builtin and then its argument prototype would still apply.  */
  29657. char jpeg_destroy_decompress ();
  29658. int
  29659. main ()
  29660. {
  29661. jpeg_destroy_decompress ();
  29662.   ;
  29663.   return 0;
  29664. }
  29665. _ACEOF
  29666. rm -f conftest.$ac_objext conftest$ac_exeext
  29667. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  29668.   (eval $ac_link) 2>conftest.er1
  29669.   ac_status=$?
  29670.   grep -v '^ *+' conftest.er1 >conftest.err
  29671.   rm -f conftest.er1
  29672.   cat conftest.err >&5
  29673.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29674.   (exit $ac_status); } &&
  29675.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  29676.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29677.   (eval $ac_try) 2>&5
  29678.   ac_status=$?
  29679.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29680.   (exit $ac_status); }; } &&
  29681.      { ac_try='test -s conftest$ac_exeext'
  29682.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29683.   (eval $ac_try) 2>&5
  29684.   ac_status=$?
  29685.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29686.   (exit $ac_status); }; }; then
  29687.   ac_cv_lib_jpeg_jpeg_destroy_decompress=yes
  29688. else
  29689.   echo "$as_me: failed program was:" >&5
  29690. sed 's/^/| /' conftest.$ac_ext >&5
  29691.  
  29692. ac_cv_lib_jpeg_jpeg_destroy_decompress=no
  29693. fi
  29694. rm -f conftest.err conftest.$ac_objext \
  29695.       conftest$ac_exeext conftest.$ac_ext
  29696. LIBS=$ac_check_lib_save_LIBS
  29697. fi
  29698. echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_decompress" >&5
  29699. echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_decompress" >&6
  29700. if test $ac_cv_lib_jpeg_jpeg_destroy_decompress = yes; then
  29701.   jpeg_ok=yes
  29702. else
  29703.   jpeg_ok=no
  29704.       { echo "$as_me:$LINENO: WARNING: *** JPEG plug-in will not be built (JPEG library not found) ***" >&5
  29705. echo "$as_me: WARNING: *** JPEG plug-in will not be built (JPEG library not found) ***" >&2;}
  29706.       { echo "$as_me:$LINENO: WARNING: *** XJT plug-in will not be built (JPEG library not found) ***" >&5
  29707. echo "$as_me: WARNING: *** XJT plug-in will not be built (JPEG library not found) ***" >&2;}
  29708. fi
  29709.  
  29710.     if test "$jpeg_ok" = yes; then
  29711.       echo "$as_me:$LINENO: checking for jpeglib.h" >&5
  29712. echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
  29713.       cat >conftest.$ac_ext <<_ACEOF
  29714. /* confdefs.h.  */
  29715. _ACEOF
  29716. cat confdefs.h >>conftest.$ac_ext
  29717. cat >>conftest.$ac_ext <<_ACEOF
  29718. /* end confdefs.h.  */
  29719.  
  29720. #include <stdio.h>
  29721. #undef HAVE_STDDEF_H
  29722. #undef HAVE_STDLIB_H
  29723. #undef PACKAGE
  29724. #undef VERSION
  29725. #include <jpeglib.h>
  29726. _ACEOF
  29727. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  29728.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  29729.   ac_status=$?
  29730.   grep -v '^ *+' conftest.er1 >conftest.err
  29731.   rm -f conftest.er1
  29732.   cat conftest.err >&5
  29733.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29734.   (exit $ac_status); } >/dev/null; then
  29735.   if test -s conftest.err; then
  29736.     ac_cpp_err=$ac_c_preproc_warn_flag
  29737.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  29738.   else
  29739.     ac_cpp_err=
  29740.   fi
  29741. else
  29742.   ac_cpp_err=yes
  29743. fi
  29744. if test -z "$ac_cpp_err"; then
  29745.   jpeg_ok=yes
  29746. else
  29747.   echo "$as_me: failed program was:" >&5
  29748. sed 's/^/| /' conftest.$ac_ext >&5
  29749.  
  29750.   jpeg_ok=no
  29751. fi
  29752. rm -f conftest.err conftest.$ac_ext
  29753.       echo "$as_me:$LINENO: result: $jpeg_ok" >&5
  29754. echo "${ECHO_T}$jpeg_ok" >&6
  29755.       if test "$jpeg_ok" = yes; then
  29756.     JPEG='jpeg$(EXEEXT)'; LIBJPEG='-ljpeg'
  29757.     echo "$as_me:$LINENO: checking for jpeg_simple_progression in -ljpeg" >&5
  29758. echo $ECHO_N "checking for jpeg_simple_progression in -ljpeg... $ECHO_C" >&6
  29759. if test "${ac_cv_lib_jpeg_jpeg_simple_progression+set}" = set; then
  29760.   echo $ECHO_N "(cached) $ECHO_C" >&6
  29761. else
  29762.   ac_check_lib_save_LIBS=$LIBS
  29763. LIBS="-ljpeg  $LIBS"
  29764. cat >conftest.$ac_ext <<_ACEOF
  29765. /* confdefs.h.  */
  29766. _ACEOF
  29767. cat confdefs.h >>conftest.$ac_ext
  29768. cat >>conftest.$ac_ext <<_ACEOF
  29769. /* end confdefs.h.  */
  29770.  
  29771. /* Override any gcc2 internal prototype to avoid an error.  */
  29772. #ifdef __cplusplus
  29773. extern "C"
  29774. #endif
  29775. /* We use char because int might match the return type of a gcc2
  29776.    builtin and then its argument prototype would still apply.  */
  29777. char jpeg_simple_progression ();
  29778. int
  29779. main ()
  29780. {
  29781. jpeg_simple_progression ();
  29782.   ;
  29783.   return 0;
  29784. }
  29785. _ACEOF
  29786. rm -f conftest.$ac_objext conftest$ac_exeext
  29787. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  29788.   (eval $ac_link) 2>conftest.er1
  29789.   ac_status=$?
  29790.   grep -v '^ *+' conftest.er1 >conftest.err
  29791.   rm -f conftest.er1
  29792.   cat conftest.err >&5
  29793.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29794.   (exit $ac_status); } &&
  29795.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  29796.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29797.   (eval $ac_try) 2>&5
  29798.   ac_status=$?
  29799.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29800.   (exit $ac_status); }; } &&
  29801.      { ac_try='test -s conftest$ac_exeext'
  29802.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29803.   (eval $ac_try) 2>&5
  29804.   ac_status=$?
  29805.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29806.   (exit $ac_status); }; }; then
  29807.   ac_cv_lib_jpeg_jpeg_simple_progression=yes
  29808. else
  29809.   echo "$as_me: failed program was:" >&5
  29810. sed 's/^/| /' conftest.$ac_ext >&5
  29811.  
  29812. ac_cv_lib_jpeg_jpeg_simple_progression=no
  29813. fi
  29814. rm -f conftest.err conftest.$ac_objext \
  29815.       conftest$ac_exeext conftest.$ac_ext
  29816. LIBS=$ac_check_lib_save_LIBS
  29817. fi
  29818. echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_simple_progression" >&5
  29819. echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_simple_progression" >&6
  29820. if test $ac_cv_lib_jpeg_jpeg_simple_progression = yes; then
  29821.  
  29822. cat >>confdefs.h <<\_ACEOF
  29823. #define HAVE_PROGRESSIVE_JPEG 1
  29824. _ACEOF
  29825.  
  29826. else
  29827.   { echo "$as_me:$LINENO: WARNING: JPEG library does not support progressive saving." >&5
  29828. echo "$as_me: WARNING: JPEG library does not support progressive saving." >&2;}
  29829. fi
  29830.  
  29831.       else
  29832.     { echo "$as_me:$LINENO: WARNING: *** JPEG plug-in will not be built (JPEG header file not found) ***" >&5
  29833. echo "$as_me: WARNING: *** JPEG plug-in will not be built (JPEG header file not found) ***" >&2;}
  29834.         { echo "$as_me:$LINENO: WARNING: *** XJT plug-in will not be built (JPEG header file not found) ***" >&5
  29835. echo "$as_me: WARNING: *** XJT plug-in will not be built (JPEG header file not found) ***" >&2;}
  29836.       fi
  29837.     fi
  29838.   fi
  29839.  
  29840.   if test x$with_libjpeg != xno && test -z "$LIBJPEG"; then
  29841.      { { echo "$as_me:$LINENO: error:
  29842. *** Checks for JPEG library failed. You can build without it by passing
  29843. *** --without-libjpeg to configure but you won't be able to use JPEGs then." >&5
  29844. echo "$as_me: error:
  29845. *** Checks for JPEG library failed. You can build without it by passing
  29846. *** --without-libjpeg to configure but you won't be able to use JPEGs then." >&2;}
  29847.    { (exit 1); exit 1; }; }
  29848.   fi
  29849.  
  29850.  
  29851.  
  29852.  
  29853. ## xjt does build, but it is more confusing than useful on Win32,
  29854. ## as it wants to run tar, mv and bzip2, which seldom are available
  29855.  
  29856.  
  29857. if test x$jpeg_ok = xyes && test x"$os_win32" = xno; then
  29858.   BUILD_XJT_TRUE=
  29859.   BUILD_XJT_FALSE='#'
  29860. else
  29861.   BUILD_XJT_TRUE='#'
  29862.   BUILD_XJT_FALSE=
  29863. fi
  29864.  
  29865.  
  29866.  
  29867. ################
  29868. # Check for libz
  29869. ################
  29870.  
  29871. if test -z "$LIBZ"; then
  29872.   echo "$as_me:$LINENO: checking for gzsetparams in -lz" >&5
  29873. echo $ECHO_N "checking for gzsetparams in -lz... $ECHO_C" >&6
  29874. if test "${ac_cv_lib_z_gzsetparams+set}" = set; then
  29875.   echo $ECHO_N "(cached) $ECHO_C" >&6
  29876. else
  29877.   ac_check_lib_save_LIBS=$LIBS
  29878. LIBS="-lz  $LIBS"
  29879. cat >conftest.$ac_ext <<_ACEOF
  29880. /* confdefs.h.  */
  29881. _ACEOF
  29882. cat confdefs.h >>conftest.$ac_ext
  29883. cat >>conftest.$ac_ext <<_ACEOF
  29884. /* end confdefs.h.  */
  29885.  
  29886. /* Override any gcc2 internal prototype to avoid an error.  */
  29887. #ifdef __cplusplus
  29888. extern "C"
  29889. #endif
  29890. /* We use char because int might match the return type of a gcc2
  29891.    builtin and then its argument prototype would still apply.  */
  29892. char gzsetparams ();
  29893. int
  29894. main ()
  29895. {
  29896. gzsetparams ();
  29897.   ;
  29898.   return 0;
  29899. }
  29900. _ACEOF
  29901. rm -f conftest.$ac_objext conftest$ac_exeext
  29902. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  29903.   (eval $ac_link) 2>conftest.er1
  29904.   ac_status=$?
  29905.   grep -v '^ *+' conftest.er1 >conftest.err
  29906.   rm -f conftest.er1
  29907.   cat conftest.err >&5
  29908.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29909.   (exit $ac_status); } &&
  29910.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  29911.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29912.   (eval $ac_try) 2>&5
  29913.   ac_status=$?
  29914.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29915.   (exit $ac_status); }; } &&
  29916.      { ac_try='test -s conftest$ac_exeext'
  29917.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29918.   (eval $ac_try) 2>&5
  29919.   ac_status=$?
  29920.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29921.   (exit $ac_status); }; }; then
  29922.   ac_cv_lib_z_gzsetparams=yes
  29923. else
  29924.   echo "$as_me: failed program was:" >&5
  29925. sed 's/^/| /' conftest.$ac_ext >&5
  29926.  
  29927. ac_cv_lib_z_gzsetparams=no
  29928. fi
  29929. rm -f conftest.err conftest.$ac_objext \
  29930.       conftest$ac_exeext conftest.$ac_ext
  29931. LIBS=$ac_check_lib_save_LIBS
  29932. fi
  29933. echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzsetparams" >&5
  29934. echo "${ECHO_T}$ac_cv_lib_z_gzsetparams" >&6
  29935. if test $ac_cv_lib_z_gzsetparams = yes; then
  29936.   if test "${ac_cv_header_zlib_h+set}" = set; then
  29937.   echo "$as_me:$LINENO: checking for zlib.h" >&5
  29938. echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
  29939. if test "${ac_cv_header_zlib_h+set}" = set; then
  29940.   echo $ECHO_N "(cached) $ECHO_C" >&6
  29941. fi
  29942. echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
  29943. echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
  29944. else
  29945.   # Is the header compilable?
  29946. echo "$as_me:$LINENO: checking zlib.h usability" >&5
  29947. echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
  29948. cat >conftest.$ac_ext <<_ACEOF
  29949. /* confdefs.h.  */
  29950. _ACEOF
  29951. cat confdefs.h >>conftest.$ac_ext
  29952. cat >>conftest.$ac_ext <<_ACEOF
  29953. /* end confdefs.h.  */
  29954. $ac_includes_default
  29955. #include <zlib.h>
  29956. _ACEOF
  29957. rm -f conftest.$ac_objext
  29958. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29959.   (eval $ac_compile) 2>conftest.er1
  29960.   ac_status=$?
  29961.   grep -v '^ *+' conftest.er1 >conftest.err
  29962.   rm -f conftest.er1
  29963.   cat conftest.err >&5
  29964.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29965.   (exit $ac_status); } &&
  29966.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  29967.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29968.   (eval $ac_try) 2>&5
  29969.   ac_status=$?
  29970.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29971.   (exit $ac_status); }; } &&
  29972.      { ac_try='test -s conftest.$ac_objext'
  29973.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29974.   (eval $ac_try) 2>&5
  29975.   ac_status=$?
  29976.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29977.   (exit $ac_status); }; }; then
  29978.   ac_header_compiler=yes
  29979. else
  29980.   echo "$as_me: failed program was:" >&5
  29981. sed 's/^/| /' conftest.$ac_ext >&5
  29982.  
  29983. ac_header_compiler=no
  29984. fi
  29985. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29986. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  29987. echo "${ECHO_T}$ac_header_compiler" >&6
  29988.  
  29989. # Is the header present?
  29990. echo "$as_me:$LINENO: checking zlib.h presence" >&5
  29991. echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
  29992. cat >conftest.$ac_ext <<_ACEOF
  29993. /* confdefs.h.  */
  29994. _ACEOF
  29995. cat confdefs.h >>conftest.$ac_ext
  29996. cat >>conftest.$ac_ext <<_ACEOF
  29997. /* end confdefs.h.  */
  29998. #include <zlib.h>
  29999. _ACEOF
  30000. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  30001.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  30002.   ac_status=$?
  30003.   grep -v '^ *+' conftest.er1 >conftest.err
  30004.   rm -f conftest.er1
  30005.   cat conftest.err >&5
  30006.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30007.   (exit $ac_status); } >/dev/null; then
  30008.   if test -s conftest.err; then
  30009.     ac_cpp_err=$ac_c_preproc_warn_flag
  30010.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  30011.   else
  30012.     ac_cpp_err=
  30013.   fi
  30014. else
  30015.   ac_cpp_err=yes
  30016. fi
  30017. if test -z "$ac_cpp_err"; then
  30018.   ac_header_preproc=yes
  30019. else
  30020.   echo "$as_me: failed program was:" >&5
  30021. sed 's/^/| /' conftest.$ac_ext >&5
  30022.  
  30023.   ac_header_preproc=no
  30024. fi
  30025. rm -f conftest.err conftest.$ac_ext
  30026. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  30027. echo "${ECHO_T}$ac_header_preproc" >&6
  30028.  
  30029. # So?  What about this header?
  30030. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  30031.   yes:no: )
  30032.     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  30033. echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  30034.     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
  30035. echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
  30036.     ac_header_preproc=yes
  30037.     ;;
  30038.   no:yes:* )
  30039.     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
  30040. echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
  30041.     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
  30042. echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
  30043.     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
  30044. echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
  30045.     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
  30046. echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  30047.     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
  30048. echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
  30049.     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
  30050. echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
  30051.     (
  30052.       cat <<\_ASBOX
  30053. ## ------------------------------------------------------------------- ##
  30054. ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=GIMP ##
  30055. ## ------------------------------------------------------------------- ##
  30056. _ASBOX
  30057.     ) |
  30058.       sed "s/^/$as_me: WARNING:     /" >&2
  30059.     ;;
  30060. esac
  30061. echo "$as_me:$LINENO: checking for zlib.h" >&5
  30062. echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
  30063. if test "${ac_cv_header_zlib_h+set}" = set; then
  30064.   echo $ECHO_N "(cached) $ECHO_C" >&6
  30065. else
  30066.   ac_cv_header_zlib_h=$ac_header_preproc
  30067. fi
  30068. echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
  30069. echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
  30070.  
  30071. fi
  30072. if test $ac_cv_header_zlib_h = yes; then
  30073.   PSP='psp$(EXEEXT)'; LIBZ='-lz'
  30074. else
  30075.   { echo "$as_me:$LINENO: WARNING: *** PSP and PNG plug-ins will not be built (ZLIB header files not found) ***" >&5
  30076. echo "$as_me: WARNING: *** PSP and PNG plug-ins will not be built (ZLIB header files not found) ***" >&2;}
  30077. fi
  30078.  
  30079.  
  30080. else
  30081.   { echo "$as_me:$LINENO: WARNING: *** PSP and PNG plug-ins will not be built (ZLIB library not found) ***" >&5
  30082. echo "$as_me: WARNING: *** PSP and PNG plug-ins will not be built (ZLIB library not found) ***" >&2;}
  30083. fi
  30084.  
  30085. fi
  30086.  
  30087.  
  30088.  
  30089.  
  30090.  
  30091. ##################
  30092. # Check for libpng
  30093. ##################
  30094.  
  30095.  
  30096. # Check whether --with-libpng or --without-libpng was given.
  30097. if test "${with_libpng+set}" = set; then
  30098.   withval="$with_libpng"
  30099.  
  30100. fi;
  30101.   if test x$with_libpng != xno && test -z "$LIBPNG" && test -n "$LIBZ"; then
  30102.     echo "$as_me:$LINENO: checking for png_read_info in -lpng" >&5
  30103. echo $ECHO_N "checking for png_read_info in -lpng... $ECHO_C" >&6
  30104. if test "${ac_cv_lib_png_png_read_info+set}" = set; then
  30105.   echo $ECHO_N "(cached) $ECHO_C" >&6
  30106. else
  30107.   ac_check_lib_save_LIBS=$LIBS
  30108. LIBS="-lpng -lz -lm $LIBS"
  30109. cat >conftest.$ac_ext <<_ACEOF
  30110. /* confdefs.h.  */
  30111. _ACEOF
  30112. cat confdefs.h >>conftest.$ac_ext
  30113. cat >>conftest.$ac_ext <<_ACEOF
  30114. /* end confdefs.h.  */
  30115.  
  30116. /* Override any gcc2 internal prototype to avoid an error.  */
  30117. #ifdef __cplusplus
  30118. extern "C"
  30119. #endif
  30120. /* We use char because int might match the return type of a gcc2
  30121.    builtin and then its argument prototype would still apply.  */
  30122. char png_read_info ();
  30123. int
  30124. main ()
  30125. {
  30126. png_read_info ();
  30127.   ;
  30128.   return 0;
  30129. }
  30130. _ACEOF
  30131. rm -f conftest.$ac_objext conftest$ac_exeext
  30132. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  30133.   (eval $ac_link) 2>conftest.er1
  30134.   ac_status=$?
  30135.   grep -v '^ *+' conftest.er1 >conftest.err
  30136.   rm -f conftest.er1
  30137.   cat conftest.err >&5
  30138.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30139.   (exit $ac_status); } &&
  30140.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  30141.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30142.   (eval $ac_try) 2>&5
  30143.   ac_status=$?
  30144.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30145.   (exit $ac_status); }; } &&
  30146.      { ac_try='test -s conftest$ac_exeext'
  30147.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30148.   (eval $ac_try) 2>&5
  30149.   ac_status=$?
  30150.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30151.   (exit $ac_status); }; }; then
  30152.   ac_cv_lib_png_png_read_info=yes
  30153. else
  30154.   echo "$as_me: failed program was:" >&5
  30155. sed 's/^/| /' conftest.$ac_ext >&5
  30156.  
  30157. ac_cv_lib_png_png_read_info=no
  30158. fi
  30159. rm -f conftest.err conftest.$ac_objext \
  30160.       conftest$ac_exeext conftest.$ac_ext
  30161. LIBS=$ac_check_lib_save_LIBS
  30162. fi
  30163. echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_read_info" >&5
  30164. echo "${ECHO_T}$ac_cv_lib_png_png_read_info" >&6
  30165. if test $ac_cv_lib_png_png_read_info = yes; then
  30166.   if test "${ac_cv_header_png_h+set}" = set; then
  30167.   echo "$as_me:$LINENO: checking for png.h" >&5
  30168. echo $ECHO_N "checking for png.h... $ECHO_C" >&6
  30169. if test "${ac_cv_header_png_h+set}" = set; then
  30170.   echo $ECHO_N "(cached) $ECHO_C" >&6
  30171. fi
  30172. echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
  30173. echo "${ECHO_T}$ac_cv_header_png_h" >&6
  30174. else
  30175.   # Is the header compilable?
  30176. echo "$as_me:$LINENO: checking png.h usability" >&5
  30177. echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
  30178. cat >conftest.$ac_ext <<_ACEOF
  30179. /* confdefs.h.  */
  30180. _ACEOF
  30181. cat confdefs.h >>conftest.$ac_ext
  30182. cat >>conftest.$ac_ext <<_ACEOF
  30183. /* end confdefs.h.  */
  30184. $ac_includes_default
  30185. #include <png.h>
  30186. _ACEOF
  30187. rm -f conftest.$ac_objext
  30188. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  30189.   (eval $ac_compile) 2>conftest.er1
  30190.   ac_status=$?
  30191.   grep -v '^ *+' conftest.er1 >conftest.err
  30192.   rm -f conftest.er1
  30193.   cat conftest.err >&5
  30194.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30195.   (exit $ac_status); } &&
  30196.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  30197.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30198.   (eval $ac_try) 2>&5
  30199.   ac_status=$?
  30200.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30201.   (exit $ac_status); }; } &&
  30202.      { ac_try='test -s conftest.$ac_objext'
  30203.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30204.   (eval $ac_try) 2>&5
  30205.   ac_status=$?
  30206.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30207.   (exit $ac_status); }; }; then
  30208.   ac_header_compiler=yes
  30209. else
  30210.   echo "$as_me: failed program was:" >&5
  30211. sed 's/^/| /' conftest.$ac_ext >&5
  30212.  
  30213. ac_header_compiler=no
  30214. fi
  30215. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  30216. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  30217. echo "${ECHO_T}$ac_header_compiler" >&6
  30218.  
  30219. # Is the header present?
  30220. echo "$as_me:$LINENO: checking png.h presence" >&5
  30221. echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
  30222. cat >conftest.$ac_ext <<_ACEOF
  30223. /* confdefs.h.  */
  30224. _ACEOF
  30225. cat confdefs.h >>conftest.$ac_ext
  30226. cat >>conftest.$ac_ext <<_ACEOF
  30227. /* end confdefs.h.  */
  30228. #include <png.h>
  30229. _ACEOF
  30230. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  30231.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  30232.   ac_status=$?
  30233.   grep -v '^ *+' conftest.er1 >conftest.err
  30234.   rm -f conftest.er1
  30235.   cat conftest.err >&5
  30236.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30237.   (exit $ac_status); } >/dev/null; then
  30238.   if test -s conftest.err; then
  30239.     ac_cpp_err=$ac_c_preproc_warn_flag
  30240.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  30241.   else
  30242.     ac_cpp_err=
  30243.   fi
  30244. else
  30245.   ac_cpp_err=yes
  30246. fi
  30247. if test -z "$ac_cpp_err"; then
  30248.   ac_header_preproc=yes
  30249. else
  30250.   echo "$as_me: failed program was:" >&5
  30251. sed 's/^/| /' conftest.$ac_ext >&5
  30252.  
  30253.   ac_header_preproc=no
  30254. fi
  30255. rm -f conftest.err conftest.$ac_ext
  30256. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  30257. echo "${ECHO_T}$ac_header_preproc" >&6
  30258.  
  30259. # So?  What about this header?
  30260. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  30261.   yes:no: )
  30262.     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
  30263. echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  30264.     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
  30265. echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
  30266.     ac_header_preproc=yes
  30267.     ;;
  30268.   no:yes:* )
  30269.     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
  30270. echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
  30271.     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
  30272. echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
  30273.     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
  30274. echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
  30275.     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
  30276. echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  30277.     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
  30278. echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
  30279.     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
  30280. echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
  30281.     (
  30282.       cat <<\_ASBOX
  30283. ## ------------------------------------------------------------------- ##
  30284. ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=GIMP ##
  30285. ## ------------------------------------------------------------------- ##
  30286. _ASBOX
  30287.     ) |
  30288.       sed "s/^/$as_me: WARNING:     /" >&2
  30289.     ;;
  30290. esac
  30291. echo "$as_me:$LINENO: checking for png.h" >&5
  30292. echo $ECHO_N "checking for png.h... $ECHO_C" >&6
  30293. if test "${ac_cv_header_png_h+set}" = set; then
  30294.   echo $ECHO_N "(cached) $ECHO_C" >&6
  30295. else
  30296.   ac_cv_header_png_h=$ac_header_preproc
  30297. fi
  30298. echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
  30299. echo "${ECHO_T}$ac_cv_header_png_h" >&6
  30300.  
  30301. fi
  30302. if test $ac_cv_header_png_h = yes; then
  30303.   png_ok=yes
  30304. else
  30305.   png_ok=no
  30306. fi
  30307.  
  30308.  
  30309. else
  30310.   { echo "$as_me:$LINENO: WARNING: *** PNG plug-in will not be built (PNG library not found) ***" >&5
  30311. echo "$as_me: WARNING: *** PNG plug-in will not be built (PNG library not found) ***" >&2;}
  30312. fi
  30313.  
  30314.     if test "$png_ok" = yes; then
  30315.       echo "$as_me:$LINENO: checking for png_structp in png.h" >&5
  30316. echo $ECHO_N "checking for png_structp in png.h... $ECHO_C" >&6
  30317.       cat >conftest.$ac_ext <<_ACEOF
  30318. /* confdefs.h.  */
  30319. _ACEOF
  30320. cat confdefs.h >>conftest.$ac_ext
  30321. cat >>conftest.$ac_ext <<_ACEOF
  30322. /* end confdefs.h.  */
  30323. #include <png.h>
  30324. int
  30325. main ()
  30326. {
  30327. png_structp pp; png_infop info; png_colorp cmap; png_create_read_struct;
  30328.   ;
  30329.   return 0;
  30330. }
  30331. _ACEOF
  30332. rm -f conftest.$ac_objext
  30333. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  30334.   (eval $ac_compile) 2>conftest.er1
  30335.   ac_status=$?
  30336.   grep -v '^ *+' conftest.er1 >conftest.err
  30337.   rm -f conftest.er1
  30338.   cat conftest.err >&5
  30339.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30340.   (exit $ac_status); } &&
  30341.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  30342.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30343.   (eval $ac_try) 2>&5
  30344.   ac_status=$?
  30345.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30346.   (exit $ac_status); }; } &&
  30347.      { ac_try='test -s conftest.$ac_objext'
  30348.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30349.   (eval $ac_try) 2>&5
  30350.   ac_status=$?
  30351.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30352.   (exit $ac_status); }; }; then
  30353.   png_ok=yes
  30354. else
  30355.   echo "$as_me: failed program was:" >&5
  30356. sed 's/^/| /' conftest.$ac_ext >&5
  30357.  
  30358. png_ok=no
  30359. fi
  30360. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  30361.       echo "$as_me:$LINENO: result: $png_ok" >&5
  30362. echo "${ECHO_T}$png_ok" >&6
  30363.       if test "$png_ok" = yes; then
  30364.         PNG='png$(EXEEXT)'; LIBPNG="-lpng $LIBZ"
  30365.       else
  30366.         { echo "$as_me:$LINENO: WARNING: *** PNG plug-in will not be built (PNG library is too old) ***" >&5
  30367. echo "$as_me: WARNING: *** PNG plug-in will not be built (PNG library is too old) ***" >&2;}
  30368.       fi
  30369.     else
  30370.       { echo "$as_me:$LINENO: WARNING: *** PNG plug-in will not be built (PNG header file not found) ***" >&5
  30371. echo "$as_me: WARNING: *** PNG plug-in will not be built (PNG header file not found) ***" >&2;}
  30372.     fi
  30373.   fi
  30374.  
  30375.   if test x$with_libpng != xno && test -z "$LIBPNG"; then
  30376.      { { echo "$as_me:$LINENO: error:
  30377. *** Checks for PNG library failed. You can build without it by passing
  30378. *** --without-libpng to configure but you won't be able to use PNGs then." >&5
  30379. echo "$as_me: error:
  30380. *** Checks for PNG library failed. You can build without it by passing
  30381. *** --without-libpng to configure but you won't be able to use PNGs then." >&2;}
  30382.    { (exit 1); exit 1; }; }
  30383.   fi
  30384.  
  30385.  
  30386.  
  30387.  
  30388.  
  30389. ##################
  30390. # Check for libmng
  30391. ##################
  30392.  
  30393.  
  30394. # Check whether --with-libmng or --without-libmng was given.
  30395. if test "${with_libmng+set}" = set; then
  30396.   withval="$with_libmng"
  30397.  
  30398. fi;
  30399.   if test x$with_libmng != xno && test -z "$LIBMNG" &&
  30400.      test -n "$LIBPNG" && test -n "$LIBJPEG" && test -n "$LIBZ"; then
  30401.     echo "$as_me:$LINENO: checking for mng_create in -lmng" >&5
  30402. echo $ECHO_N "checking for mng_create in -lmng... $ECHO_C" >&6
  30403. if test "${ac_cv_lib_mng_mng_create+set}" = set; then
  30404.   echo $ECHO_N "(cached) $ECHO_C" >&6
  30405. else
  30406.   ac_check_lib_save_LIBS=$LIBS
  30407. LIBS="-lmng -lz -lm $LIBS"
  30408. cat >conftest.$ac_ext <<_ACEOF
  30409. /* confdefs.h.  */
  30410. _ACEOF
  30411. cat confdefs.h >>conftest.$ac_ext
  30412. cat >>conftest.$ac_ext <<_ACEOF
  30413. /* end confdefs.h.  */
  30414.  
  30415. /* Override any gcc2 internal prototype to avoid an error.  */
  30416. #ifdef __cplusplus
  30417. extern "C"
  30418. #endif
  30419. /* We use char because int might match the return type of a gcc2
  30420.    builtin and then its argument prototype would still apply.  */
  30421. char mng_create ();
  30422. int
  30423. main ()
  30424. {
  30425. mng_create ();
  30426.   ;
  30427.   return 0;
  30428. }
  30429. _ACEOF
  30430. rm -f conftest.$ac_objext conftest$ac_exeext
  30431. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  30432.   (eval $ac_link) 2>conftest.er1
  30433.   ac_status=$?
  30434.   grep -v '^ *+' conftest.er1 >conftest.err
  30435.   rm -f conftest.er1
  30436.   cat conftest.err >&5
  30437.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30438.   (exit $ac_status); } &&
  30439.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  30440.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30441.   (eval $ac_try) 2>&5
  30442.   ac_status=$?
  30443.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30444.   (exit $ac_status); }; } &&
  30445.      { ac_try='test -s conftest$ac_exeext'
  30446.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30447.   (eval $ac_try) 2>&5
  30448.   ac_status=$?
  30449.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30450.   (exit $ac_status); }; }; then
  30451.   ac_cv_lib_mng_mng_create=yes
  30452. else
  30453.   echo "$as_me: failed program was:" >&5
  30454. sed 's/^/| /' conftest.$ac_ext >&5
  30455.  
  30456. ac_cv_lib_mng_mng_create=no
  30457. fi
  30458. rm -f conftest.err conftest.$ac_objext \
  30459.       conftest$ac_exeext conftest.$ac_ext
  30460. LIBS=$ac_check_lib_save_LIBS
  30461. fi
  30462. echo "$as_me:$LINENO: result: $ac_cv_lib_mng_mng_create" >&5
  30463. echo "${ECHO_T}$ac_cv_lib_mng_mng_create" >&6
  30464. if test $ac_cv_lib_mng_mng_create = yes; then
  30465.   if test "${ac_cv_header_libmng_h+set}" = set; then
  30466.   echo "$as_me:$LINENO: checking for libmng.h" >&5
  30467. echo $ECHO_N "checking for libmng.h... $ECHO_C" >&6
  30468. if test "${ac_cv_header_libmng_h+set}" = set; then
  30469.   echo $ECHO_N "(cached) $ECHO_C" >&6
  30470. fi
  30471. echo "$as_me:$LINENO: result: $ac_cv_header_libmng_h" >&5
  30472. echo "${ECHO_T}$ac_cv_header_libmng_h" >&6
  30473. else
  30474.   # Is the header compilable?
  30475. echo "$as_me:$LINENO: checking libmng.h usability" >&5
  30476. echo $ECHO_N "checking libmng.h usability... $ECHO_C" >&6
  30477. cat >conftest.$ac_ext <<_ACEOF
  30478. /* confdefs.h.  */
  30479. _ACEOF
  30480. cat confdefs.h >>conftest.$ac_ext
  30481. cat >>conftest.$ac_ext <<_ACEOF
  30482. /* end confdefs.h.  */
  30483. $ac_includes_default
  30484. #include <libmng.h>
  30485. _ACEOF
  30486. rm -f conftest.$ac_objext
  30487. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  30488.   (eval $ac_compile) 2>conftest.er1
  30489.   ac_status=$?
  30490.   grep -v '^ *+' conftest.er1 >conftest.err
  30491.   rm -f conftest.er1
  30492.   cat conftest.err >&5
  30493.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30494.   (exit $ac_status); } &&
  30495.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  30496.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30497.   (eval $ac_try) 2>&5
  30498.   ac_status=$?
  30499.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30500.   (exit $ac_status); }; } &&
  30501.      { ac_try='test -s conftest.$ac_objext'
  30502.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30503.   (eval $ac_try) 2>&5
  30504.   ac_status=$?
  30505.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30506.   (exit $ac_status); }; }; then
  30507.   ac_header_compiler=yes
  30508. else
  30509.   echo "$as_me: failed program was:" >&5
  30510. sed 's/^/| /' conftest.$ac_ext >&5
  30511.  
  30512. ac_header_compiler=no
  30513. fi
  30514. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  30515. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  30516. echo "${ECHO_T}$ac_header_compiler" >&6
  30517.  
  30518. # Is the header present?
  30519. echo "$as_me:$LINENO: checking libmng.h presence" >&5
  30520. echo $ECHO_N "checking libmng.h presence... $ECHO_C" >&6
  30521. cat >conftest.$ac_ext <<_ACEOF
  30522. /* confdefs.h.  */
  30523. _ACEOF
  30524. cat confdefs.h >>conftest.$ac_ext
  30525. cat >>conftest.$ac_ext <<_ACEOF
  30526. /* end confdefs.h.  */
  30527. #include <libmng.h>
  30528. _ACEOF
  30529. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  30530.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  30531.   ac_status=$?
  30532.   grep -v '^ *+' conftest.er1 >conftest.err
  30533.   rm -f conftest.er1
  30534.   cat conftest.err >&5
  30535.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30536.   (exit $ac_status); } >/dev/null; then
  30537.   if test -s conftest.err; then
  30538.     ac_cpp_err=$ac_c_preproc_warn_flag
  30539.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  30540.   else
  30541.     ac_cpp_err=
  30542.   fi
  30543. else
  30544.   ac_cpp_err=yes
  30545. fi
  30546. if test -z "$ac_cpp_err"; then
  30547.   ac_header_preproc=yes
  30548. else
  30549.   echo "$as_me: failed program was:" >&5
  30550. sed 's/^/| /' conftest.$ac_ext >&5
  30551.  
  30552.   ac_header_preproc=no
  30553. fi
  30554. rm -f conftest.err conftest.$ac_ext
  30555. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  30556. echo "${ECHO_T}$ac_header_preproc" >&6
  30557.  
  30558. # So?  What about this header?
  30559. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  30560.   yes:no: )
  30561.     { echo "$as_me:$LINENO: WARNING: libmng.h: accepted by the compiler, rejected by the preprocessor!" >&5
  30562. echo "$as_me: WARNING: libmng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  30563.     { echo "$as_me:$LINENO: WARNING: libmng.h: proceeding with the compiler's result" >&5
  30564. echo "$as_me: WARNING: libmng.h: proceeding with the compiler's result" >&2;}
  30565.     ac_header_preproc=yes
  30566.     ;;
  30567.   no:yes:* )
  30568.     { echo "$as_me:$LINENO: WARNING: libmng.h: present but cannot be compiled" >&5
  30569. echo "$as_me: WARNING: libmng.h: present but cannot be compiled" >&2;}
  30570.     { echo "$as_me:$LINENO: WARNING: libmng.h:     check for missing prerequisite headers?" >&5
  30571. echo "$as_me: WARNING: libmng.h:     check for missing prerequisite headers?" >&2;}
  30572.     { echo "$as_me:$LINENO: WARNING: libmng.h: see the Autoconf documentation" >&5
  30573. echo "$as_me: WARNING: libmng.h: see the Autoconf documentation" >&2;}
  30574.     { echo "$as_me:$LINENO: WARNING: libmng.h:     section \"Present But Cannot Be Compiled\"" >&5
  30575. echo "$as_me: WARNING: libmng.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  30576.     { echo "$as_me:$LINENO: WARNING: libmng.h: proceeding with the preprocessor's result" >&5
  30577. echo "$as_me: WARNING: libmng.h: proceeding with the preprocessor's result" >&2;}
  30578.     { echo "$as_me:$LINENO: WARNING: libmng.h: in the future, the compiler will take precedence" >&5
  30579. echo "$as_me: WARNING: libmng.h: in the future, the compiler will take precedence" >&2;}
  30580.     (
  30581.       cat <<\_ASBOX
  30582. ## ------------------------------------------------------------------- ##
  30583. ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=GIMP ##
  30584. ## ------------------------------------------------------------------- ##
  30585. _ASBOX
  30586.     ) |
  30587.       sed "s/^/$as_me: WARNING:     /" >&2
  30588.     ;;
  30589. esac
  30590. echo "$as_me:$LINENO: checking for libmng.h" >&5
  30591. echo $ECHO_N "checking for libmng.h... $ECHO_C" >&6
  30592. if test "${ac_cv_header_libmng_h+set}" = set; then
  30593.   echo $ECHO_N "(cached) $ECHO_C" >&6
  30594. else
  30595.   ac_cv_header_libmng_h=$ac_header_preproc
  30596. fi
  30597. echo "$as_me:$LINENO: result: $ac_cv_header_libmng_h" >&5
  30598. echo "${ECHO_T}$ac_cv_header_libmng_h" >&6
  30599.  
  30600. fi
  30601. if test $ac_cv_header_libmng_h = yes; then
  30602.   mng_ok=yes
  30603. fi
  30604.  
  30605.  
  30606. else
  30607.   { echo "$as_me:$LINENO: WARNING: *** MNG plug-in will not be built (MNG library not found) ***" >&5
  30608. echo "$as_me: WARNING: *** MNG plug-in will not be built (MNG library not found) ***" >&2;}
  30609. fi
  30610.  
  30611.     if test "$mng_ok" = yes; then
  30612.       MNG='mng$(EXEEXT)'; LIBMNG="-lmng $LIBJPEG $LIBPNG"
  30613.     else
  30614.       { echo "$as_me:$LINENO: WARNING: *** MNG plug-in will not be built (MNG header file not found) ***" >&5
  30615. echo "$as_me: WARNING: *** MNG plug-in will not be built (MNG header file not found) ***" >&2;}
  30616.     fi
  30617.   fi
  30618.  
  30619.  
  30620.  
  30621.  
  30622.  
  30623. ############################################################
  30624. # libexif: Library to allow exif tags to be read from, and
  30625. # saved to, jpeg files. Currently, this permits exif data to
  30626. # avoid destruction, but no data modification is performed.
  30627. ############################################################
  30628.  
  30629.  
  30630. # Check whether --with-libexif or --without-libexif was given.
  30631. if test "${with_libexif+set}" = set; then
  30632.   withval="$with_libexif"
  30633.  
  30634. fi;
  30635. if test x$with_libexif != xno && test -z "$LIBEXIF" && test -n "$LIBJPEG"; then
  30636.  
  30637.   succeeded=no
  30638.  
  30639.   if test -z "$PKG_CONFIG"; then
  30640.     # Extract the first word of "pkg-config", so it can be a program name with args.
  30641. set dummy pkg-config; ac_word=$2
  30642. echo "$as_me:$LINENO: checking for $ac_word" >&5
  30643. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  30644. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  30645.   echo $ECHO_N "(cached) $ECHO_C" >&6
  30646. else
  30647.   case $PKG_CONFIG in
  30648.   [\\/]* | ?:[\\/]*)
  30649.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  30650.   ;;
  30651.   *)
  30652.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  30653. for as_dir in $PATH
  30654. do
  30655.   IFS=$as_save_IFS
  30656.   test -z "$as_dir" && as_dir=.
  30657.   for ac_exec_ext in '' $ac_executable_extensions; do
  30658.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  30659.     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  30660.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  30661.     break 2
  30662.   fi
  30663. done
  30664. done
  30665.  
  30666.   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  30667.   ;;
  30668. esac
  30669. fi
  30670. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  30671.  
  30672. if test -n "$PKG_CONFIG"; then
  30673.   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  30674. echo "${ECHO_T}$PKG_CONFIG" >&6
  30675. else
  30676.   echo "$as_me:$LINENO: result: no" >&5
  30677. echo "${ECHO_T}no" >&6
  30678. fi
  30679.  
  30680.   fi
  30681.  
  30682.   if test "$PKG_CONFIG" = "no" ; then
  30683.      echo "*** The pkg-config script could not be found. Make sure it is"
  30684.      echo "*** in your path, or set the PKG_CONFIG environment variable"
  30685.      echo "*** to the full path to pkg-config."
  30686.      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  30687.   else
  30688.      PKG_CONFIG_MIN_VERSION=0.9.0
  30689.      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  30690.         echo "$as_me:$LINENO: checking for libexif" >&5
  30691. echo $ECHO_N "checking for libexif... $ECHO_C" >&6
  30692.  
  30693.         if $PKG_CONFIG --exists "libexif" ; then
  30694.             echo "$as_me:$LINENO: result: yes" >&5
  30695. echo "${ECHO_T}yes" >&6
  30696.             succeeded=yes
  30697.  
  30698.             echo "$as_me:$LINENO: checking EXIF_CFLAGS" >&5
  30699. echo $ECHO_N "checking EXIF_CFLAGS... $ECHO_C" >&6
  30700.             EXIF_CFLAGS=`$PKG_CONFIG --cflags "libexif"`
  30701.             echo "$as_me:$LINENO: result: $EXIF_CFLAGS" >&5
  30702. echo "${ECHO_T}$EXIF_CFLAGS" >&6
  30703.  
  30704.             echo "$as_me:$LINENO: checking EXIF_LIBS" >&5
  30705. echo $ECHO_N "checking EXIF_LIBS... $ECHO_C" >&6
  30706.             EXIF_LIBS=`$PKG_CONFIG --libs "libexif"`
  30707.             echo "$as_me:$LINENO: result: $EXIF_LIBS" >&5
  30708. echo "${ECHO_T}$EXIF_LIBS" >&6
  30709.         else
  30710.             EXIF_CFLAGS=""
  30711.             EXIF_LIBS=""
  30712.             ## If we have a custom action on failure, don't print errors, but
  30713.             ## do set a variable so people can do so.
  30714.             EXIF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libexif"`
  30715.  
  30716.         fi
  30717.  
  30718.  
  30719.  
  30720.      else
  30721.         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  30722.         echo "*** See http://www.freedesktop.org/software/pkgconfig"
  30723.      fi
  30724.   fi
  30725.  
  30726.   if test $succeeded = yes; then
  30727.  
  30728. cat >>confdefs.h <<\_ACEOF
  30729. #define HAVE_EXIF 1
  30730. _ACEOF
  30731.  
  30732.   else
  30733.      { echo "$as_me:$LINENO: WARNING: libexif not found!
  30734. EXIF support will not be built into the JPEG plug-in.
  30735. libexif is available from http://www.sourceforge.net/projects/libexif" >&5
  30736. echo "$as_me: WARNING: libexif not found!
  30737. EXIF support will not be built into the JPEG plug-in.
  30738. libexif is available from http://www.sourceforge.net/projects/libexif" >&2;}
  30739.   fi
  30740.  
  30741. fi
  30742.  
  30743.  
  30744.  
  30745.  
  30746. #################
  30747. # Check for libaa
  30748. #################
  30749.  
  30750.  
  30751.  
  30752. # Check whether --with-aa or --without-aa was given.
  30753. if test "${with_aa+set}" = set; then
  30754.   withval="$with_aa"
  30755.  
  30756. fi;
  30757. if test x$with_aa != xno && test -z "$LIBAA"; then
  30758.   echo "$as_me:$LINENO: checking for aa_printf in -laa" >&5
  30759. echo $ECHO_N "checking for aa_printf in -laa... $ECHO_C" >&6
  30760. if test "${ac_cv_lib_aa_aa_printf+set}" = set; then
  30761.   echo $ECHO_N "(cached) $ECHO_C" >&6
  30762. else
  30763.   ac_check_lib_save_LIBS=$LIBS
  30764. LIBS="-laa  $LIBS"
  30765. cat >conftest.$ac_ext <<_ACEOF
  30766. /* confdefs.h.  */
  30767. _ACEOF
  30768. cat confdefs.h >>conftest.$ac_ext
  30769. cat >>conftest.$ac_ext <<_ACEOF
  30770. /* end confdefs.h.  */
  30771.  
  30772. /* Override any gcc2 internal prototype to avoid an error.  */
  30773. #ifdef __cplusplus
  30774. extern "C"
  30775. #endif
  30776. /* We use char because int might match the return type of a gcc2
  30777.    builtin and then its argument prototype would still apply.  */
  30778. char aa_printf ();
  30779. int
  30780. main ()
  30781. {
  30782. aa_printf ();
  30783.   ;
  30784.   return 0;
  30785. }
  30786. _ACEOF
  30787. rm -f conftest.$ac_objext conftest$ac_exeext
  30788. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  30789.   (eval $ac_link) 2>conftest.er1
  30790.   ac_status=$?
  30791.   grep -v '^ *+' conftest.er1 >conftest.err
  30792.   rm -f conftest.er1
  30793.   cat conftest.err >&5
  30794.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30795.   (exit $ac_status); } &&
  30796.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  30797.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30798.   (eval $ac_try) 2>&5
  30799.   ac_status=$?
  30800.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30801.   (exit $ac_status); }; } &&
  30802.      { ac_try='test -s conftest$ac_exeext'
  30803.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30804.   (eval $ac_try) 2>&5
  30805.   ac_status=$?
  30806.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30807.   (exit $ac_status); }; }; then
  30808.   ac_cv_lib_aa_aa_printf=yes
  30809. else
  30810.   echo "$as_me: failed program was:" >&5
  30811. sed 's/^/| /' conftest.$ac_ext >&5
  30812.  
  30813. ac_cv_lib_aa_aa_printf=no
  30814. fi
  30815. rm -f conftest.err conftest.$ac_objext \
  30816.       conftest$ac_exeext conftest.$ac_ext
  30817. LIBS=$ac_check_lib_save_LIBS
  30818. fi
  30819. echo "$as_me:$LINENO: result: $ac_cv_lib_aa_aa_printf" >&5
  30820. echo "${ECHO_T}$ac_cv_lib_aa_aa_printf" >&6
  30821. if test $ac_cv_lib_aa_aa_printf = yes; then
  30822.   if test "${ac_cv_header_aalib_h+set}" = set; then
  30823.   echo "$as_me:$LINENO: checking for aalib.h" >&5
  30824. echo $ECHO_N "checking for aalib.h... $ECHO_C" >&6
  30825. if test "${ac_cv_header_aalib_h+set}" = set; then
  30826.   echo $ECHO_N "(cached) $ECHO_C" >&6
  30827. fi
  30828. echo "$as_me:$LINENO: result: $ac_cv_header_aalib_h" >&5
  30829. echo "${ECHO_T}$ac_cv_header_aalib_h" >&6
  30830. else
  30831.   # Is the header compilable?
  30832. echo "$as_me:$LINENO: checking aalib.h usability" >&5
  30833. echo $ECHO_N "checking aalib.h usability... $ECHO_C" >&6
  30834. cat >conftest.$ac_ext <<_ACEOF
  30835. /* confdefs.h.  */
  30836. _ACEOF
  30837. cat confdefs.h >>conftest.$ac_ext
  30838. cat >>conftest.$ac_ext <<_ACEOF
  30839. /* end confdefs.h.  */
  30840. $ac_includes_default
  30841. #include <aalib.h>
  30842. _ACEOF
  30843. rm -f conftest.$ac_objext
  30844. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  30845.   (eval $ac_compile) 2>conftest.er1
  30846.   ac_status=$?
  30847.   grep -v '^ *+' conftest.er1 >conftest.err
  30848.   rm -f conftest.er1
  30849.   cat conftest.err >&5
  30850.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30851.   (exit $ac_status); } &&
  30852.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  30853.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30854.   (eval $ac_try) 2>&5
  30855.   ac_status=$?
  30856.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30857.   (exit $ac_status); }; } &&
  30858.      { ac_try='test -s conftest.$ac_objext'
  30859.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30860.   (eval $ac_try) 2>&5
  30861.   ac_status=$?
  30862.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30863.   (exit $ac_status); }; }; then
  30864.   ac_header_compiler=yes
  30865. else
  30866.   echo "$as_me: failed program was:" >&5
  30867. sed 's/^/| /' conftest.$ac_ext >&5
  30868.  
  30869. ac_header_compiler=no
  30870. fi
  30871. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  30872. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  30873. echo "${ECHO_T}$ac_header_compiler" >&6
  30874.  
  30875. # Is the header present?
  30876. echo "$as_me:$LINENO: checking aalib.h presence" >&5
  30877. echo $ECHO_N "checking aalib.h presence... $ECHO_C" >&6
  30878. cat >conftest.$ac_ext <<_ACEOF
  30879. /* confdefs.h.  */
  30880. _ACEOF
  30881. cat confdefs.h >>conftest.$ac_ext
  30882. cat >>conftest.$ac_ext <<_ACEOF
  30883. /* end confdefs.h.  */
  30884. #include <aalib.h>
  30885. _ACEOF
  30886. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  30887.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  30888.   ac_status=$?
  30889.   grep -v '^ *+' conftest.er1 >conftest.err
  30890.   rm -f conftest.er1
  30891.   cat conftest.err >&5
  30892.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30893.   (exit $ac_status); } >/dev/null; then
  30894.   if test -s conftest.err; then
  30895.     ac_cpp_err=$ac_c_preproc_warn_flag
  30896.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  30897.   else
  30898.     ac_cpp_err=
  30899.   fi
  30900. else
  30901.   ac_cpp_err=yes
  30902. fi
  30903. if test -z "$ac_cpp_err"; then
  30904.   ac_header_preproc=yes
  30905. else
  30906.   echo "$as_me: failed program was:" >&5
  30907. sed 's/^/| /' conftest.$ac_ext >&5
  30908.  
  30909.   ac_header_preproc=no
  30910. fi
  30911. rm -f conftest.err conftest.$ac_ext
  30912. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  30913. echo "${ECHO_T}$ac_header_preproc" >&6
  30914.  
  30915. # So?  What about this header?
  30916. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  30917.   yes:no: )
  30918.     { echo "$as_me:$LINENO: WARNING: aalib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  30919. echo "$as_me: WARNING: aalib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  30920.     { echo "$as_me:$LINENO: WARNING: aalib.h: proceeding with the compiler's result" >&5
  30921. echo "$as_me: WARNING: aalib.h: proceeding with the compiler's result" >&2;}
  30922.     ac_header_preproc=yes
  30923.     ;;
  30924.   no:yes:* )
  30925.     { echo "$as_me:$LINENO: WARNING: aalib.h: present but cannot be compiled" >&5
  30926. echo "$as_me: WARNING: aalib.h: present but cannot be compiled" >&2;}
  30927.     { echo "$as_me:$LINENO: WARNING: aalib.h:     check for missing prerequisite headers?" >&5
  30928. echo "$as_me: WARNING: aalib.h:     check for missing prerequisite headers?" >&2;}
  30929.     { echo "$as_me:$LINENO: WARNING: aalib.h: see the Autoconf documentation" >&5
  30930. echo "$as_me: WARNING: aalib.h: see the Autoconf documentation" >&2;}
  30931.     { echo "$as_me:$LINENO: WARNING: aalib.h:     section \"Present But Cannot Be Compiled\"" >&5
  30932. echo "$as_me: WARNING: aalib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  30933.     { echo "$as_me:$LINENO: WARNING: aalib.h: proceeding with the preprocessor's result" >&5
  30934. echo "$as_me: WARNING: aalib.h: proceeding with the preprocessor's result" >&2;}
  30935.     { echo "$as_me:$LINENO: WARNING: aalib.h: in the future, the compiler will take precedence" >&5
  30936. echo "$as_me: WARNING: aalib.h: in the future, the compiler will take precedence" >&2;}
  30937.     (
  30938.       cat <<\_ASBOX
  30939. ## ------------------------------------------------------------------- ##
  30940. ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=GIMP ##
  30941. ## ------------------------------------------------------------------- ##
  30942. _ASBOX
  30943.     ) |
  30944.       sed "s/^/$as_me: WARNING:     /" >&2
  30945.     ;;
  30946. esac
  30947. echo "$as_me:$LINENO: checking for aalib.h" >&5
  30948. echo $ECHO_N "checking for aalib.h... $ECHO_C" >&6
  30949. if test "${ac_cv_header_aalib_h+set}" = set; then
  30950.   echo $ECHO_N "(cached) $ECHO_C" >&6
  30951. else
  30952.   ac_cv_header_aalib_h=$ac_header_preproc
  30953. fi
  30954. echo "$as_me:$LINENO: result: $ac_cv_header_aalib_h" >&5
  30955. echo "${ECHO_T}$ac_cv_header_aalib_h" >&6
  30956.  
  30957. fi
  30958. if test $ac_cv_header_aalib_h = yes; then
  30959.   AA='aa$(EXEEXT)'; LIBAA='-laa'
  30960. else
  30961.   { echo "$as_me:$LINENO: WARNING: *** AA plug-in will not be built (AA header file not found) ***" >&5
  30962. echo "$as_me: WARNING: *** AA plug-in will not be built (AA header file not found) ***" >&2;}
  30963. fi
  30964.  
  30965.  
  30966. else
  30967.   { echo "$as_me:$LINENO: WARNING: *** AA plug-in will not be built (AA library not found) ***" >&5
  30968. echo "$as_me: WARNING: *** AA plug-in will not be built (AA library not found) ***" >&2;}
  30969. fi
  30970.  
  30971. fi
  30972.  
  30973.  
  30974.  
  30975.  
  30976.  
  30977. ##################
  30978. # Check for libxpm
  30979. ##################
  30980.  
  30981. gimp_save_CFLAGS="$CFLAGS"
  30982. CFLAGS="$CFLAGS $X_CFLAGS"
  30983. gimp_save_LDFLAGS="$LDFLAGS"
  30984. LDFLAGS="$LDFLAGS $X_LIBS"
  30985. if test "$gdk_target" = x11; then
  30986.   lib_X11=-lX11
  30987. fi
  30988. if test -z "$LIBXPM"; then
  30989.   echo "$as_me:$LINENO: checking for XpmReadFileToXpmImage in -lXpm" >&5
  30990. echo $ECHO_N "checking for XpmReadFileToXpmImage in -lXpm... $ECHO_C" >&6
  30991. if test "${ac_cv_lib_Xpm_XpmReadFileToXpmImage+set}" = set; then
  30992.   echo $ECHO_N "(cached) $ECHO_C" >&6
  30993. else
  30994.   ac_check_lib_save_LIBS=$LIBS
  30995. LIBS="-lXpm $X_PRE_LIBS $lib_X11 $LIBS"
  30996. cat >conftest.$ac_ext <<_ACEOF
  30997. /* confdefs.h.  */
  30998. _ACEOF
  30999. cat confdefs.h >>conftest.$ac_ext
  31000. cat >>conftest.$ac_ext <<_ACEOF
  31001. /* end confdefs.h.  */
  31002.  
  31003. /* Override any gcc2 internal prototype to avoid an error.  */
  31004. #ifdef __cplusplus
  31005. extern "C"
  31006. #endif
  31007. /* We use char because int might match the return type of a gcc2
  31008.    builtin and then its argument prototype would still apply.  */
  31009. char XpmReadFileToXpmImage ();
  31010. int
  31011. main ()
  31012. {
  31013. XpmReadFileToXpmImage ();
  31014.   ;
  31015.   return 0;
  31016. }
  31017. _ACEOF
  31018. rm -f conftest.$ac_objext conftest$ac_exeext
  31019. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  31020.   (eval $ac_link) 2>conftest.er1
  31021.   ac_status=$?
  31022.   grep -v '^ *+' conftest.er1 >conftest.err
  31023.   rm -f conftest.er1
  31024.   cat conftest.err >&5
  31025.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31026.   (exit $ac_status); } &&
  31027.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  31028.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  31029.   (eval $ac_try) 2>&5
  31030.   ac_status=$?
  31031.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31032.   (exit $ac_status); }; } &&
  31033.      { ac_try='test -s conftest$ac_exeext'
  31034.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  31035.   (eval $ac_try) 2>&5
  31036.   ac_status=$?
  31037.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31038.   (exit $ac_status); }; }; then
  31039.   ac_cv_lib_Xpm_XpmReadFileToXpmImage=yes
  31040. else
  31041.   echo "$as_me: failed program was:" >&5
  31042. sed 's/^/| /' conftest.$ac_ext >&5
  31043.  
  31044. ac_cv_lib_Xpm_XpmReadFileToXpmImage=no
  31045. fi
  31046. rm -f conftest.err conftest.$ac_objext \
  31047.       conftest$ac_exeext conftest.$ac_ext
  31048. LIBS=$ac_check_lib_save_LIBS
  31049. fi
  31050. echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToXpmImage" >&5
  31051. echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToXpmImage" >&6
  31052. if test $ac_cv_lib_Xpm_XpmReadFileToXpmImage = yes; then
  31053.   if test "${ac_cv_header_X11_xpm_h+set}" = set; then
  31054.   echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
  31055. echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
  31056. if test "${ac_cv_header_X11_xpm_h+set}" = set; then
  31057.   echo $ECHO_N "(cached) $ECHO_C" >&6
  31058. fi
  31059. echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
  31060. echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
  31061. else
  31062.   # Is the header compilable?
  31063. echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
  31064. echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
  31065. cat >conftest.$ac_ext <<_ACEOF
  31066. /* confdefs.h.  */
  31067. _ACEOF
  31068. cat confdefs.h >>conftest.$ac_ext
  31069. cat >>conftest.$ac_ext <<_ACEOF
  31070. /* end confdefs.h.  */
  31071. $ac_includes_default
  31072. #include <X11/xpm.h>
  31073. _ACEOF
  31074. rm -f conftest.$ac_objext
  31075. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  31076.   (eval $ac_compile) 2>conftest.er1
  31077.   ac_status=$?
  31078.   grep -v '^ *+' conftest.er1 >conftest.err
  31079.   rm -f conftest.er1
  31080.   cat conftest.err >&5
  31081.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31082.   (exit $ac_status); } &&
  31083.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  31084.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  31085.   (eval $ac_try) 2>&5
  31086.   ac_status=$?
  31087.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31088.   (exit $ac_status); }; } &&
  31089.      { ac_try='test -s conftest.$ac_objext'
  31090.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  31091.   (eval $ac_try) 2>&5
  31092.   ac_status=$?
  31093.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31094.   (exit $ac_status); }; }; then
  31095.   ac_header_compiler=yes
  31096. else
  31097.   echo "$as_me: failed program was:" >&5
  31098. sed 's/^/| /' conftest.$ac_ext >&5
  31099.  
  31100. ac_header_compiler=no
  31101. fi
  31102. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  31103. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  31104. echo "${ECHO_T}$ac_header_compiler" >&6
  31105.  
  31106. # Is the header present?
  31107. echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
  31108. echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
  31109. cat >conftest.$ac_ext <<_ACEOF
  31110. /* confdefs.h.  */
  31111. _ACEOF
  31112. cat confdefs.h >>conftest.$ac_ext
  31113. cat >>conftest.$ac_ext <<_ACEOF
  31114. /* end confdefs.h.  */
  31115. #include <X11/xpm.h>
  31116. _ACEOF
  31117. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  31118.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  31119.   ac_status=$?
  31120.   grep -v '^ *+' conftest.er1 >conftest.err
  31121.   rm -f conftest.er1
  31122.   cat conftest.err >&5
  31123.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31124.   (exit $ac_status); } >/dev/null; then
  31125.   if test -s conftest.err; then
  31126.     ac_cpp_err=$ac_c_preproc_warn_flag
  31127.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  31128.   else
  31129.     ac_cpp_err=
  31130.   fi
  31131. else
  31132.   ac_cpp_err=yes
  31133. fi
  31134. if test -z "$ac_cpp_err"; then
  31135.   ac_header_preproc=yes
  31136. else
  31137.   echo "$as_me: failed program was:" >&5
  31138. sed 's/^/| /' conftest.$ac_ext >&5
  31139.  
  31140.   ac_header_preproc=no
  31141. fi
  31142. rm -f conftest.err conftest.$ac_ext
  31143. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  31144. echo "${ECHO_T}$ac_header_preproc" >&6
  31145.  
  31146. # So?  What about this header?
  31147. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  31148.   yes:no: )
  31149.     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
  31150. echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  31151.     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
  31152. echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
  31153.     ac_header_preproc=yes
  31154.     ;;
  31155.   no:yes:* )
  31156.     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
  31157. echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
  31158.     { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&5
  31159. echo "$as_me: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&2;}
  31160.     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
  31161. echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
  31162.     { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&5
  31163. echo "$as_me: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  31164.     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
  31165. echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
  31166.     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
  31167. echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
  31168.     (
  31169.       cat <<\_ASBOX
  31170. ## ------------------------------------------------------------------- ##
  31171. ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=GIMP ##
  31172. ## ------------------------------------------------------------------- ##
  31173. _ASBOX
  31174.     ) |
  31175.       sed "s/^/$as_me: WARNING:     /" >&2
  31176.     ;;
  31177. esac
  31178. echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
  31179. echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
  31180. if test "${ac_cv_header_X11_xpm_h+set}" = set; then
  31181.   echo $ECHO_N "(cached) $ECHO_C" >&6
  31182. else
  31183.   ac_cv_header_X11_xpm_h=$ac_header_preproc
  31184. fi
  31185. echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
  31186. echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
  31187.  
  31188. fi
  31189. if test $ac_cv_header_X11_xpm_h = yes; then
  31190.   XPM='xpm$(EXEEXT)'; LIBXPM="$X_LIBS $X_PRE_LIBS $lib_X11 -lXpm"
  31191. else
  31192.   { echo "$as_me:$LINENO: WARNING: *** XPM plug-in will not be built (XPM header file not found) ***" >&5
  31193. echo "$as_me: WARNING: *** XPM plug-in will not be built (XPM header file not found) ***" >&2;}
  31194. fi
  31195.  
  31196.  
  31197. else
  31198.   { echo "$as_me:$LINENO: WARNING: *** XPM plug-in will not be built (XPM library not found) ***" >&5
  31199. echo "$as_me: WARNING: *** XPM plug-in will not be built (XPM library not found) ***" >&2;}
  31200. fi
  31201.  
  31202. fi
  31203. CFLAGS="$gimp_save_CFLAGS"
  31204. LDFLAGS="$gimp_save_LDFLAGS"
  31205.  
  31206.  
  31207.  
  31208.  
  31209.  
  31210. ####################
  31211. # Check for gtkhtml2
  31212. ####################
  31213.  
  31214.  
  31215.   succeeded=no
  31216.  
  31217.   if test -z "$PKG_CONFIG"; then
  31218.     # Extract the first word of "pkg-config", so it can be a program name with args.
  31219. set dummy pkg-config; ac_word=$2
  31220. echo "$as_me:$LINENO: checking for $ac_word" >&5
  31221. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  31222. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  31223.   echo $ECHO_N "(cached) $ECHO_C" >&6
  31224. else
  31225.   case $PKG_CONFIG in
  31226.   [\\/]* | ?:[\\/]*)
  31227.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  31228.   ;;
  31229.   *)
  31230.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31231. for as_dir in $PATH
  31232. do
  31233.   IFS=$as_save_IFS
  31234.   test -z "$as_dir" && as_dir=.
  31235.   for ac_exec_ext in '' $ac_executable_extensions; do
  31236.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  31237.     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  31238.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  31239.     break 2
  31240.   fi
  31241. done
  31242. done
  31243.  
  31244.   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  31245.   ;;
  31246. esac
  31247. fi
  31248. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  31249.  
  31250. if test -n "$PKG_CONFIG"; then
  31251.   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  31252. echo "${ECHO_T}$PKG_CONFIG" >&6
  31253. else
  31254.   echo "$as_me:$LINENO: result: no" >&5
  31255. echo "${ECHO_T}no" >&6
  31256. fi
  31257.  
  31258.   fi
  31259.  
  31260.   if test "$PKG_CONFIG" = "no" ; then
  31261.      echo "*** The pkg-config script could not be found. Make sure it is"
  31262.      echo "*** in your path, or set the PKG_CONFIG environment variable"
  31263.      echo "*** to the full path to pkg-config."
  31264.      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  31265.   else
  31266.      PKG_CONFIG_MIN_VERSION=0.9.0
  31267.      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  31268.         echo "$as_me:$LINENO: checking for libgtkhtml-2.0 >= 2.0.0" >&5
  31269. echo $ECHO_N "checking for libgtkhtml-2.0 >= 2.0.0... $ECHO_C" >&6
  31270.  
  31271.         if $PKG_CONFIG --exists "libgtkhtml-2.0 >= 2.0.0" ; then
  31272.             echo "$as_me:$LINENO: result: yes" >&5
  31273. echo "${ECHO_T}yes" >&6
  31274.             succeeded=yes
  31275.  
  31276.             echo "$as_me:$LINENO: checking GTKHTML2_CFLAGS" >&5
  31277. echo $ECHO_N "checking GTKHTML2_CFLAGS... $ECHO_C" >&6
  31278.             GTKHTML2_CFLAGS=`$PKG_CONFIG --cflags "libgtkhtml-2.0 >= 2.0.0"`
  31279.             echo "$as_me:$LINENO: result: $GTKHTML2_CFLAGS" >&5
  31280. echo "${ECHO_T}$GTKHTML2_CFLAGS" >&6
  31281.  
  31282.             echo "$as_me:$LINENO: checking GTKHTML2_LIBS" >&5
  31283. echo $ECHO_N "checking GTKHTML2_LIBS... $ECHO_C" >&6
  31284.             GTKHTML2_LIBS=`$PKG_CONFIG --libs "libgtkhtml-2.0 >= 2.0.0"`
  31285.             echo "$as_me:$LINENO: result: $GTKHTML2_LIBS" >&5
  31286. echo "${ECHO_T}$GTKHTML2_LIBS" >&6
  31287.         else
  31288.             GTKHTML2_CFLAGS=""
  31289.             GTKHTML2_LIBS=""
  31290.             ## If we have a custom action on failure, don't print errors, but
  31291.             ## do set a variable so people can do so.
  31292.             GTKHTML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgtkhtml-2.0 >= 2.0.0"`
  31293.  
  31294.         fi
  31295.  
  31296.  
  31297.  
  31298.      else
  31299.         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  31300.         echo "*** See http://www.freedesktop.org/software/pkgconfig"
  31301.      fi
  31302.   fi
  31303.  
  31304.   if test $succeeded = yes; then
  31305.      have_gtkhtml2=yes
  31306.   else
  31307.      { echo "$as_me:$LINENO: WARNING: *** Help browser plug-in will not be built (GtkHtml2 not found) ***" >&5
  31308. echo "$as_me: WARNING: *** Help browser plug-in will not be built (GtkHtml2 not found) ***" >&2;}
  31309.   fi
  31310.  
  31311.  
  31312.  
  31313.  
  31314.  
  31315. if test x$have_gtkhtml2 = xyes; then
  31316.   BUILD_HELPBROWSER_TRUE=
  31317.   BUILD_HELPBROWSER_FALSE='#'
  31318. else
  31319.   BUILD_HELPBROWSER_TRUE='#'
  31320.   BUILD_HELPBROWSER_FALSE=
  31321. fi
  31322.  
  31323.  
  31324.  
  31325. ###################
  31326. # Check for librsvg
  31327. ###################
  31328.  
  31329.  
  31330.   succeeded=no
  31331.  
  31332.   if test -z "$PKG_CONFIG"; then
  31333.     # Extract the first word of "pkg-config", so it can be a program name with args.
  31334. set dummy pkg-config; ac_word=$2
  31335. echo "$as_me:$LINENO: checking for $ac_word" >&5
  31336. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  31337. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  31338.   echo $ECHO_N "(cached) $ECHO_C" >&6
  31339. else
  31340.   case $PKG_CONFIG in
  31341.   [\\/]* | ?:[\\/]*)
  31342.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  31343.   ;;
  31344.   *)
  31345.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31346. for as_dir in $PATH
  31347. do
  31348.   IFS=$as_save_IFS
  31349.   test -z "$as_dir" && as_dir=.
  31350.   for ac_exec_ext in '' $ac_executable_extensions; do
  31351.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  31352.     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  31353.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  31354.     break 2
  31355.   fi
  31356. done
  31357. done
  31358.  
  31359.   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  31360.   ;;
  31361. esac
  31362. fi
  31363. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  31364.  
  31365. if test -n "$PKG_CONFIG"; then
  31366.   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  31367. echo "${ECHO_T}$PKG_CONFIG" >&6
  31368. else
  31369.   echo "$as_me:$LINENO: result: no" >&5
  31370. echo "${ECHO_T}no" >&6
  31371. fi
  31372.  
  31373.   fi
  31374.  
  31375.   if test "$PKG_CONFIG" = "no" ; then
  31376.      echo "*** The pkg-config script could not be found. Make sure it is"
  31377.      echo "*** in your path, or set the PKG_CONFIG environment variable"
  31378.      echo "*** to the full path to pkg-config."
  31379.      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  31380.   else
  31381.      PKG_CONFIG_MIN_VERSION=0.9.0
  31382.      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  31383.         echo "$as_me:$LINENO: checking for librsvg-2.0 >= 2.2.0" >&5
  31384. echo $ECHO_N "checking for librsvg-2.0 >= 2.2.0... $ECHO_C" >&6
  31385.  
  31386.         if $PKG_CONFIG --exists "librsvg-2.0 >= 2.2.0" ; then
  31387.             echo "$as_me:$LINENO: result: yes" >&5
  31388. echo "${ECHO_T}yes" >&6
  31389.             succeeded=yes
  31390.  
  31391.             echo "$as_me:$LINENO: checking SVG_CFLAGS" >&5
  31392. echo $ECHO_N "checking SVG_CFLAGS... $ECHO_C" >&6
  31393.             SVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.2.0"`
  31394.             echo "$as_me:$LINENO: result: $SVG_CFLAGS" >&5
  31395. echo "${ECHO_T}$SVG_CFLAGS" >&6
  31396.  
  31397.             echo "$as_me:$LINENO: checking SVG_LIBS" >&5
  31398. echo $ECHO_N "checking SVG_LIBS... $ECHO_C" >&6
  31399.             SVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.2.0"`
  31400.             echo "$as_me:$LINENO: result: $SVG_LIBS" >&5
  31401. echo "${ECHO_T}$SVG_LIBS" >&6
  31402.         else
  31403.             SVG_CFLAGS=""
  31404.             SVG_LIBS=""
  31405.             ## If we have a custom action on failure, don't print errors, but
  31406.             ## do set a variable so people can do so.
  31407.             SVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librsvg-2.0 >= 2.2.0"`
  31408.  
  31409.         fi
  31410.  
  31411.  
  31412.  
  31413.      else
  31414.         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  31415.         echo "*** See http://www.freedesktop.org/software/pkgconfig"
  31416.      fi
  31417.   fi
  31418.  
  31419.   if test $succeeded = yes; then
  31420.      SVG='svg$(EXEEXT)'
  31421.   LIBSVG=$SVG_LIBS
  31422.   else
  31423.      { echo "$as_me:$LINENO: WARNING: *** SVG import plug-in will not be built (librsvg not found) ***" >&5
  31424. echo "$as_me: WARNING: *** SVG import plug-in will not be built (librsvg not found) ***" >&2;}
  31425.   fi
  31426.  
  31427.  
  31428.  
  31429.  
  31430.  
  31431.  
  31432. ######################
  31433. # Check for gimp-print
  31434. ######################
  31435.  
  31436. # Check whether --enable-print or --disable-print was given.
  31437. if test "${enable_print+set}" = set; then
  31438.   enableval="$enable_print"
  31439.  
  31440. fi;
  31441.  
  31442. have_gimp_print=no
  31443. if test "x$enable_print" != "xno"; then
  31444.  
  31445. # Check whether --with-gimpprint-prefix or --without-gimpprint-prefix was given.
  31446. if test "${with_gimpprint_prefix+set}" = set; then
  31447.   withval="$with_gimpprint_prefix"
  31448.   gimpprint_config_prefix="$withval"
  31449. else
  31450.   gimpprint_config_prefix=""
  31451. fi;
  31452.  
  31453. # Check whether --with-gimpprint-exec-prefix or --without-gimpprint-exec-prefix was given.
  31454. if test "${with_gimpprint_exec_prefix+set}" = set; then
  31455.   withval="$with_gimpprint_exec_prefix"
  31456.   gimpprint_config_exec_prefix="$withval"
  31457. else
  31458.   gimpprint_config_exec_prefix=""
  31459. fi;
  31460. # Check whether --enable-gimpprinttest or --disable-gimpprinttest was given.
  31461. if test "${enable_gimpprinttest+set}" = set; then
  31462.   enableval="$enable_gimpprinttest"
  31463.  
  31464. else
  31465.   enable_gimpprinttest=yes
  31466. fi;
  31467.  
  31468.   if test x$gimpprint_config_exec_prefix != x ; then
  31469.      gimpprint_config_args="$gimpprint_config_args --exec-prefix=$gimpprint_config_exec_prefix"
  31470.      if test x${GIMPPRINT_CONFIG+set} != xset ; then
  31471.         GIMPPRINT_CONFIG=$gimpprint_config_exec_prefix/bin/gimpprint-config
  31472.      fi
  31473.   fi
  31474.   if test x$gimpprint_config_prefix != x ; then
  31475.      gimpprint_config_args="$gimpprint_config_args --prefix=$gimpprint_config_prefix"
  31476.      if test x${GIMPPRINT_CONFIG+set} != xset ; then
  31477.         GIMPPRINT_CONFIG=$gimpprint_config_prefix/bin/gimpprint-config
  31478.      fi
  31479.   fi
  31480.  
  31481.   # Extract the first word of "gimpprint-config", so it can be a program name with args.
  31482. set dummy gimpprint-config; ac_word=$2
  31483. echo "$as_me:$LINENO: checking for $ac_word" >&5
  31484. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  31485. if test "${ac_cv_path_GIMPPRINT_CONFIG+set}" = set; then
  31486.   echo $ECHO_N "(cached) $ECHO_C" >&6
  31487. else
  31488.   case $GIMPPRINT_CONFIG in
  31489.   [\\/]* | ?:[\\/]*)
  31490.   ac_cv_path_GIMPPRINT_CONFIG="$GIMPPRINT_CONFIG" # Let the user override the test with a path.
  31491.   ;;
  31492.   *)
  31493.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31494. for as_dir in $PATH
  31495. do
  31496.   IFS=$as_save_IFS
  31497.   test -z "$as_dir" && as_dir=.
  31498.   for ac_exec_ext in '' $ac_executable_extensions; do
  31499.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  31500.     ac_cv_path_GIMPPRINT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  31501.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  31502.     break 2
  31503.   fi
  31504. done
  31505. done
  31506.  
  31507.   test -z "$ac_cv_path_GIMPPRINT_CONFIG" && ac_cv_path_GIMPPRINT_CONFIG="no"
  31508.   ;;
  31509. esac
  31510. fi
  31511. GIMPPRINT_CONFIG=$ac_cv_path_GIMPPRINT_CONFIG
  31512.  
  31513. if test -n "$GIMPPRINT_CONFIG"; then
  31514.   echo "$as_me:$LINENO: result: $GIMPPRINT_CONFIG" >&5
  31515. echo "${ECHO_T}$GIMPPRINT_CONFIG" >&6
  31516. else
  31517.   echo "$as_me:$LINENO: result: no" >&5
  31518. echo "${ECHO_T}no" >&6
  31519. fi
  31520.  
  31521.   min_gimpprint_version=4.2.0
  31522.   echo "$as_me:$LINENO: checking for GIMP-PRINT - version >= $min_gimpprint_version" >&5
  31523. echo $ECHO_N "checking for GIMP-PRINT - version >= $min_gimpprint_version... $ECHO_C" >&6
  31524.   no_gimpprint=""
  31525.   if test "$GIMPPRINT_CONFIG" = "no" ; then
  31526.     no_gimpprint=yes
  31527.   else
  31528.     GIMPPRINT_CFLAGS=`$GIMPPRINT_CONFIG $gimpprint_config_args --cflags`
  31529.     GIMPPRINT_LIBS=`$GIMPPRINT_CONFIG $gimpprint_config_args --libs`
  31530.     gimpprint_config_major_version=`$GIMPPRINT_CONFIG $gimpprint_config_args --version | \
  31531.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  31532.     gimpprint_config_minor_version=`$GIMPPRINT_CONFIG $gimpprint_config_args --version | \
  31533.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  31534.     gimpprint_config_micro_version=`$GIMPPRINT_CONFIG $gimpprint_config_args --version | \
  31535.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  31536.     if test "x$enable_gimpprinttest" = "xyes" ; then
  31537.       ac_save_CFLAGS="$CFLAGS"
  31538.       ac_save_LIBS="$LIBS"
  31539.       CFLAGS="$CFLAGS $GIMPPRINT_CFLAGS"
  31540.       LIBS="$GIMPPRINT_LIBS $LIBS"
  31541.       rm -f conf.gimpprinttest
  31542.       if test "$cross_compiling" = yes; then
  31543.   echo $ac_n "cross compiling; assumed OK... $ac_c"
  31544. else
  31545.   cat >conftest.$ac_ext <<_ACEOF
  31546. /* confdefs.h.  */
  31547. _ACEOF
  31548. cat confdefs.h >>conftest.$ac_ext
  31549. cat >>conftest.$ac_ext <<_ACEOF
  31550. /* end confdefs.h.  */
  31551.  
  31552. #include <gimp-print/gimp-print.h>
  31553. #include <stdio.h>
  31554. #include <stdlib.h>
  31555. #include <string.h>
  31556.  
  31557. int
  31558. main ()
  31559. {
  31560.   int major, minor, micro;
  31561.   char *tmp_version;
  31562.  
  31563.   system ("touch conf.gimpprinttest");
  31564.  
  31565.   /* HP/UX 9 (%@#!) writes to sscanf strings */
  31566.   tmp_version = strdup("$min_gimpprint_version");
  31567.   if (!tmp_version) {
  31568.      exit(1);
  31569.    }
  31570.   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
  31571.      printf("%s, bad version string\n", "$min_gimpprint_version");
  31572.      exit(1);
  31573.    }
  31574.  
  31575.   if ((gimpprint_major_version != $gimpprint_config_major_version) ||
  31576.       (gimpprint_minor_version != $gimpprint_config_minor_version) ||
  31577.       (gimpprint_micro_version != $gimpprint_config_micro_version))
  31578.     {
  31579.       printf("\n*** 'gimpprint-config --version' returned %d.%d.%d, but GIMP-PRINT (%d.%d.%d)\n",
  31580.              $gimpprint_config_major_version, $gimpprint_config_minor_version, $gimpprint_config_micro_version,
  31581.              gimpprint_major_version, gimpprint_minor_version, gimpprint_micro_version);
  31582.       printf ("*** was found! If gimpprint-config was correct, then it is best\n");
  31583.       printf ("*** to remove the old version of GIMP-PRINT. You may also be able to fix the\n");
  31584.       printf("*** error by modifying your LD_LIBRARY_PATH enviroment variable, or by\n");
  31585.       printf("*** editing /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  31586.       printf("*** required on your system.\n");
  31587.       printf("*** If gimpprint-config was wrong, set the environment variable GIMPPRINT_CONFIG\n");
  31588.       printf("*** to point to the correct copy of gimpprint-config, and remove the file\n");
  31589.       printf("*** config.cache before re-running configure\n");
  31590.     }
  31591. #if defined (GIMPPRINT_MAJOR_VERSION) && defined (GIMPPRINT_MINOR_VERSION) && defined (GIMPPRINT_MICRO_VERSION)
  31592.   else if ((gimpprint_major_version != GIMPPRINT_MAJOR_VERSION) ||
  31593.        (gimpprint_minor_version != GIMPPRINT_MINOR_VERSION) ||
  31594.            (gimpprint_micro_version != GIMPPRINT_MICRO_VERSION))
  31595.     {
  31596.       printf("\n*** GIMP-PRINT header files (version %d.%d.%d) do not match\n",
  31597.          GIMPPRINT_MAJOR_VERSION, GIMPPRINT_MINOR_VERSION, GIMPPRINT_MICRO_VERSION);
  31598.       printf("*** library (version %d.%d.%d)\n",
  31599.          gimpprint_major_version, gimpprint_minor_version, gimpprint_micro_version);
  31600.     }
  31601. #endif /* defined (GIMPPRINT_MAJOR_VERSION) ... */
  31602.   else
  31603.     {
  31604.       if ((gimpprint_major_version > major) ||
  31605.         ((gimpprint_major_version == major) && (gimpprint_minor_version > minor)) ||
  31606.         ((gimpprint_major_version == major) && (gimpprint_minor_version == minor) && (gimpprint_micro_version >= micro)))
  31607.       {
  31608.         return 0;
  31609.        }
  31610.      else
  31611.       {
  31612.         printf("\n*** An old version of GIMP-PRINT (%d.%d.%d) was found.\n",
  31613.                gimpprint_major_version, gimpprint_minor_version, gimpprint_micro_version);
  31614.         printf("*** You need a version of GIMP-PRINT newer than %d.%d.%d. The latest version of\n",
  31615.            major, minor, micro);
  31616.         printf("*** GIMP-PRINT is always available from\n");
  31617.     printf("*** http://sourceforge.net/project/showfiles.php?group_id=1537.\n");
  31618.         printf("***\n");
  31619.         printf("*** If you have already installed a sufficiently new version, this error\n");
  31620.         printf("*** probably means that the wrong copy of the gimpprint-config shell script is\n");
  31621.         printf("*** being found. The easiest way to fix this is to remove the old version\n");
  31622.         printf("*** of GIMP-PRINT, but you can also set the GIMPPRINT_CONFIG environment to\n");
  31623.         printf("*** point to the correct copy of gimpprint-config. (In this case, you will have\n");
  31624.         printf("*** to modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  31625.         printf("*** so that the correct libraries are found at run-time))\n");
  31626.       }
  31627.     }
  31628.   return 1;
  31629. }
  31630.  
  31631. _ACEOF
  31632. rm -f conftest$ac_exeext
  31633. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  31634.   (eval $ac_link) 2>&5
  31635.   ac_status=$?
  31636.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31637.   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  31638.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  31639.   (eval $ac_try) 2>&5
  31640.   ac_status=$?
  31641.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31642.   (exit $ac_status); }; }; then
  31643.   :
  31644. else
  31645.   echo "$as_me: program exited with status $ac_status" >&5
  31646. echo "$as_me: failed program was:" >&5
  31647. sed 's/^/| /' conftest.$ac_ext >&5
  31648.  
  31649. ( exit $ac_status )
  31650. no_gimpprint=yes
  31651. fi
  31652. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  31653. fi
  31654.        CFLAGS="$ac_save_CFLAGS"
  31655.        LIBS="$ac_save_LIBS"
  31656.      fi
  31657.   fi
  31658.   if test "x$no_gimpprint" = x ; then
  31659.      echo "$as_me:$LINENO: result: yes" >&5
  31660. echo "${ECHO_T}yes" >&6
  31661.      print_version=`$GIMPPRINT_CONFIG --version`
  31662.       if expr $print_version \>= 4.3.0 >/dev/null; then
  31663.         { echo "$as_me:$LINENO: WARNING:
  31664. *** libgimpprint version $print_version is too new.
  31665. *** It is likely an unstable development version.
  31666. *** You need a version before 4.3.0." >&5
  31667. echo "$as_me: WARNING:
  31668. *** libgimpprint version $print_version is too new.
  31669. *** It is likely an unstable development version.
  31670. *** You need a version before 4.3.0." >&2;}
  31671.       else
  31672.         have_gimp_print=yes
  31673.         if expr $print_version \< 4.2.6 >/dev/null; then
  31674.           { echo "$as_me:$LINENO: WARNING:
  31675. *** libgimpprint version $print_version causes problems under certain locales.
  31676. *** We strongly suggest you upgrade to version 4.2.6." >&5
  31677. echo "$as_me: WARNING:
  31678. *** libgimpprint version $print_version causes problems under certain locales.
  31679. *** We strongly suggest you upgrade to version 4.2.6." >&2;}
  31680.         fi
  31681.       fi
  31682.  
  31683.   else
  31684.      echo "$as_me:$LINENO: result: no" >&5
  31685. echo "${ECHO_T}no" >&6
  31686.      if test "$GIMPPRINT_CONFIG" = "no" ; then
  31687.        echo "*** The gimpprint-config script installed by GIMP-PRINT could not be found"
  31688.        echo "*** If GIMP-PRINT was installed in PREFIX, make sure PREFIX/bin is in"
  31689.        echo "*** your path, or set the GIMPPRINT_CONFIG environment variable to the"
  31690.        echo "*** full path to gimpprint-config."
  31691.      else
  31692.        if test -f conf.gimpprinttest ; then
  31693.         :
  31694.        else
  31695.           echo "*** Could not run GIMP-PRINT test program, checking why..."
  31696.           CFLAGS="$CFLAGS $GIMPPRINT_CFLAGS"
  31697.           LIBS="$LIBS $GIMPPRINT_LIBS"
  31698.           cat >conftest.$ac_ext <<_ACEOF
  31699. /* confdefs.h.  */
  31700. _ACEOF
  31701. cat confdefs.h >>conftest.$ac_ext
  31702. cat >>conftest.$ac_ext <<_ACEOF
  31703. /* end confdefs.h.  */
  31704.  
  31705. #include <gimp-print/gimp-print.h>
  31706. #include <stdio.h>
  31707. #include <string.h>
  31708.  
  31709. int
  31710. main ()
  31711. {
  31712.  return ((gimpprint_major_version) || (gimpprint_minor_version) || (gimpprint_micro_version));
  31713.   ;
  31714.   return 0;
  31715. }
  31716. _ACEOF
  31717. rm -f conftest.$ac_objext conftest$ac_exeext
  31718. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  31719.   (eval $ac_link) 2>conftest.er1
  31720.   ac_status=$?
  31721.   grep -v '^ *+' conftest.er1 >conftest.err
  31722.   rm -f conftest.er1
  31723.   cat conftest.err >&5
  31724.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31725.   (exit $ac_status); } &&
  31726.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  31727.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  31728.   (eval $ac_try) 2>&5
  31729.   ac_status=$?
  31730.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31731.   (exit $ac_status); }; } &&
  31732.      { ac_try='test -s conftest$ac_exeext'
  31733.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  31734.   (eval $ac_try) 2>&5
  31735.   ac_status=$?
  31736.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31737.   (exit $ac_status); }; }; then
  31738.    echo "*** The test program compiled, but did not run. This usually means"
  31739.           echo "*** that the run-time linker is not finding GIMP-PRINT or finding the wrong"
  31740.           echo "*** version of GIMP-PRINT. If it is not finding GIMP-PRINT, you'll need to set"
  31741.           echo "*** your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  31742.           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
  31743.           echo "*** is required on your system"
  31744.       echo "***"
  31745.           echo "*** If you have an old version installed, it is best to remove it, although"
  31746.           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  31747. else
  31748.   echo "$as_me: failed program was:" >&5
  31749. sed 's/^/| /' conftest.$ac_ext >&5
  31750.  
  31751.  echo "*** The test program failed to compile or link. See the file config.log for the"
  31752.           echo "*** exact error that occured. This usually means GIMP-PRINT was incorrectly"
  31753.           echo "*** installed or that you have moved GIMP-PRINT since it was installed. In the"
  31754.           echo "*** latter case, you may want to edit the gimpprint-config script:"
  31755.       echo "*** $GIMPPRINT_CONFIG"
  31756. fi
  31757. rm -f conftest.err conftest.$ac_objext \
  31758.       conftest$ac_exeext conftest.$ac_ext
  31759.           CFLAGS="$ac_save_CFLAGS"
  31760.           LIBS="$ac_save_LIBS"
  31761.        fi
  31762.      fi
  31763.      GIMPPRINT_CFLAGS=""
  31764.      GIMPPRINT_LIBS=""
  31765.      :
  31766.   fi
  31767.  
  31768.  
  31769.   rm -f conf.gimpprinttest
  31770.  
  31771. fi
  31772.  
  31773. if test x$enable_print != xno && test x$have_gimp_print != xyes; then
  31774.   { { echo "$as_me:$LINENO: error:
  31775. *** Check for libgimpprint failed. You can download it from
  31776. *** http://gimp-print.sourceforge.net/ or you can build without it by passing
  31777. *** --disable-print to configure (but you won't be able to print then)." >&5
  31778. echo "$as_me: error:
  31779. *** Check for libgimpprint failed. You can download it from
  31780. *** http://gimp-print.sourceforge.net/ or you can build without it by passing
  31781. *** --disable-print to configure (but you won't be able to print then)." >&2;}
  31782.    { (exit 1); exit 1; }; }
  31783. fi
  31784.  
  31785.  
  31786.  
  31787.  
  31788.  
  31789. if test x$enable_print != xno && test x$have_gimp_print = xyes; then
  31790.   BUILD_PRINT_TRUE=
  31791.   BUILD_PRINT_FALSE='#'
  31792. else
  31793.   BUILD_PRINT_TRUE='#'
  31794.   BUILD_PRINT_FALSE=
  31795. fi
  31796.  
  31797.  
  31798.  
  31799. ###################
  31800. # Check for libwmf2
  31801. ###################
  31802.  
  31803. # Extract the first word of "libwmf-config", so it can be a program name with args.
  31804. set dummy libwmf-config; ac_word=$2
  31805. echo "$as_me:$LINENO: checking for $ac_word" >&5
  31806. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  31807. if test "${ac_cv_path_WMF_CONFIG+set}" = set; then
  31808.   echo $ECHO_N "(cached) $ECHO_C" >&6
  31809. else
  31810.   case $WMF_CONFIG in
  31811.   [\\/]* | ?:[\\/]*)
  31812.   ac_cv_path_WMF_CONFIG="$WMF_CONFIG" # Let the user override the test with a path.
  31813.   ;;
  31814.   *)
  31815.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31816. for as_dir in $PATH
  31817. do
  31818.   IFS=$as_save_IFS
  31819.   test -z "$as_dir" && as_dir=.
  31820.   for ac_exec_ext in '' $ac_executable_extensions; do
  31821.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  31822.     ac_cv_path_WMF_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  31823.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  31824.     break 2
  31825.   fi
  31826. done
  31827. done
  31828.  
  31829.   test -z "$ac_cv_path_WMF_CONFIG" && ac_cv_path_WMF_CONFIG="no"
  31830.   ;;
  31831. esac
  31832. fi
  31833. WMF_CONFIG=$ac_cv_path_WMF_CONFIG
  31834.  
  31835. if test -n "$WMF_CONFIG"; then
  31836.   echo "$as_me:$LINENO: result: $WMF_CONFIG" >&5
  31837. echo "${ECHO_T}$WMF_CONFIG" >&6
  31838. else
  31839.   echo "$as_me:$LINENO: result: no" >&5
  31840. echo "${ECHO_T}no" >&6
  31841. fi
  31842.  
  31843. if test "x$WMF_CONFIG" != "xno" ; then
  31844.   echo "$as_me:$LINENO: checking for libwmf >= 0.2.8" >&5
  31845. echo $ECHO_N "checking for libwmf >= 0.2.8... $ECHO_C" >&6
  31846.   wmf_version=`$WMF_CONFIG --version`
  31847.   if expr $wmf_version \>= 0.2.8 >/dev/null; then
  31848.     echo "$as_me:$LINENO: result: yes (version $wmf_version)" >&5
  31849. echo "${ECHO_T}yes (version $wmf_version)" >&6
  31850.     WMF='wmf$(EXEEXT)'
  31851.     LIBWMF=`$WMF_CONFIG --libs`
  31852.     WMF_CFLAGS=`$WMF_CONFIG --cflags`
  31853.   else
  31854.     { echo "$as_me:$LINENO: WARNING: *** WMF plug-in will not be built (libwmf is too old)" >&5
  31855. echo "$as_me: WARNING: *** WMF plug-in will not be built (libwmf is too old)" >&2;}
  31856.   fi
  31857. else
  31858.   { echo "$as_me:$LINENO: WARNING: *** WMF plug-in will not be built (libwmf not found) ***" >&5
  31859. echo "$as_me: WARNING: *** WMF plug-in will not be built (libwmf not found) ***" >&2;}
  31860. fi
  31861.  
  31862.  
  31863.  
  31864.  
  31865. ################
  31866. # Check for lcms
  31867. ################
  31868.  
  31869. have_lcms=no
  31870. echo "$as_me:$LINENO: checking for cmsCreate_sRGBProfile in -llcms" >&5
  31871. echo $ECHO_N "checking for cmsCreate_sRGBProfile in -llcms... $ECHO_C" >&6
  31872. if test "${ac_cv_lib_lcms_cmsCreate_sRGBProfile+set}" = set; then
  31873.   echo $ECHO_N "(cached) $ECHO_C" >&6
  31874. else
  31875.   ac_check_lib_save_LIBS=$LIBS
  31876. LIBS="-llcms  $LIBS"
  31877. cat >conftest.$ac_ext <<_ACEOF
  31878. /* confdefs.h.  */
  31879. _ACEOF
  31880. cat confdefs.h >>conftest.$ac_ext
  31881. cat >>conftest.$ac_ext <<_ACEOF
  31882. /* end confdefs.h.  */
  31883.  
  31884. /* Override any gcc2 internal prototype to avoid an error.  */
  31885. #ifdef __cplusplus
  31886. extern "C"
  31887. #endif
  31888. /* We use char because int might match the return type of a gcc2
  31889.    builtin and then its argument prototype would still apply.  */
  31890. char cmsCreate_sRGBProfile ();
  31891. int
  31892. main ()
  31893. {
  31894. cmsCreate_sRGBProfile ();
  31895.   ;
  31896.   return 0;
  31897. }
  31898. _ACEOF
  31899. rm -f conftest.$ac_objext conftest$ac_exeext
  31900. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  31901.   (eval $ac_link) 2>conftest.er1
  31902.   ac_status=$?
  31903.   grep -v '^ *+' conftest.er1 >conftest.err
  31904.   rm -f conftest.er1
  31905.   cat conftest.err >&5
  31906.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31907.   (exit $ac_status); } &&
  31908.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  31909.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  31910.   (eval $ac_try) 2>&5
  31911.   ac_status=$?
  31912.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31913.   (exit $ac_status); }; } &&
  31914.      { ac_try='test -s conftest$ac_exeext'
  31915.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  31916.   (eval $ac_try) 2>&5
  31917.   ac_status=$?
  31918.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31919.   (exit $ac_status); }; }; then
  31920.   ac_cv_lib_lcms_cmsCreate_sRGBProfile=yes
  31921. else
  31922.   echo "$as_me: failed program was:" >&5
  31923. sed 's/^/| /' conftest.$ac_ext >&5
  31924.  
  31925. ac_cv_lib_lcms_cmsCreate_sRGBProfile=no
  31926. fi
  31927. rm -f conftest.err conftest.$ac_objext \
  31928.       conftest$ac_exeext conftest.$ac_ext
  31929. LIBS=$ac_check_lib_save_LIBS
  31930. fi
  31931. echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsCreate_sRGBProfile" >&5
  31932. echo "${ECHO_T}$ac_cv_lib_lcms_cmsCreate_sRGBProfile" >&6
  31933. if test $ac_cv_lib_lcms_cmsCreate_sRGBProfile = yes; then
  31934.  
  31935.   if test "${ac_cv_header_lcms_h+set}" = set; then
  31936.   echo "$as_me:$LINENO: checking for lcms.h" >&5
  31937. echo $ECHO_N "checking for lcms.h... $ECHO_C" >&6
  31938. if test "${ac_cv_header_lcms_h+set}" = set; then
  31939.   echo $ECHO_N "(cached) $ECHO_C" >&6
  31940. fi
  31941. echo "$as_me:$LINENO: result: $ac_cv_header_lcms_h" >&5
  31942. echo "${ECHO_T}$ac_cv_header_lcms_h" >&6
  31943. else
  31944.   # Is the header compilable?
  31945. echo "$as_me:$LINENO: checking lcms.h usability" >&5
  31946. echo $ECHO_N "checking lcms.h usability... $ECHO_C" >&6
  31947. cat >conftest.$ac_ext <<_ACEOF
  31948. /* confdefs.h.  */
  31949. _ACEOF
  31950. cat confdefs.h >>conftest.$ac_ext
  31951. cat >>conftest.$ac_ext <<_ACEOF
  31952. /* end confdefs.h.  */
  31953. $ac_includes_default
  31954. #include <lcms.h>
  31955. _ACEOF
  31956. rm -f conftest.$ac_objext
  31957. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  31958.   (eval $ac_compile) 2>conftest.er1
  31959.   ac_status=$?
  31960.   grep -v '^ *+' conftest.er1 >conftest.err
  31961.   rm -f conftest.er1
  31962.   cat conftest.err >&5
  31963.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31964.   (exit $ac_status); } &&
  31965.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  31966.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  31967.   (eval $ac_try) 2>&5
  31968.   ac_status=$?
  31969.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31970.   (exit $ac_status); }; } &&
  31971.      { ac_try='test -s conftest.$ac_objext'
  31972.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  31973.   (eval $ac_try) 2>&5
  31974.   ac_status=$?
  31975.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31976.   (exit $ac_status); }; }; then
  31977.   ac_header_compiler=yes
  31978. else
  31979.   echo "$as_me: failed program was:" >&5
  31980. sed 's/^/| /' conftest.$ac_ext >&5
  31981.  
  31982. ac_header_compiler=no
  31983. fi
  31984. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  31985. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  31986. echo "${ECHO_T}$ac_header_compiler" >&6
  31987.  
  31988. # Is the header present?
  31989. echo "$as_me:$LINENO: checking lcms.h presence" >&5
  31990. echo $ECHO_N "checking lcms.h presence... $ECHO_C" >&6
  31991. cat >conftest.$ac_ext <<_ACEOF
  31992. /* confdefs.h.  */
  31993. _ACEOF
  31994. cat confdefs.h >>conftest.$ac_ext
  31995. cat >>conftest.$ac_ext <<_ACEOF
  31996. /* end confdefs.h.  */
  31997. #include <lcms.h>
  31998. _ACEOF
  31999. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  32000.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  32001.   ac_status=$?
  32002.   grep -v '^ *+' conftest.er1 >conftest.err
  32003.   rm -f conftest.er1
  32004.   cat conftest.err >&5
  32005.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32006.   (exit $ac_status); } >/dev/null; then
  32007.   if test -s conftest.err; then
  32008.     ac_cpp_err=$ac_c_preproc_warn_flag
  32009.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  32010.   else
  32011.     ac_cpp_err=
  32012.   fi
  32013. else
  32014.   ac_cpp_err=yes
  32015. fi
  32016. if test -z "$ac_cpp_err"; then
  32017.   ac_header_preproc=yes
  32018. else
  32019.   echo "$as_me: failed program was:" >&5
  32020. sed 's/^/| /' conftest.$ac_ext >&5
  32021.  
  32022.   ac_header_preproc=no
  32023. fi
  32024. rm -f conftest.err conftest.$ac_ext
  32025. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  32026. echo "${ECHO_T}$ac_header_preproc" >&6
  32027.  
  32028. # So?  What about this header?
  32029. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  32030.   yes:no: )
  32031.     { echo "$as_me:$LINENO: WARNING: lcms.h: accepted by the compiler, rejected by the preprocessor!" >&5
  32032. echo "$as_me: WARNING: lcms.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  32033.     { echo "$as_me:$LINENO: WARNING: lcms.h: proceeding with the compiler's result" >&5
  32034. echo "$as_me: WARNING: lcms.h: proceeding with the compiler's result" >&2;}
  32035.     ac_header_preproc=yes
  32036.     ;;
  32037.   no:yes:* )
  32038.     { echo "$as_me:$LINENO: WARNING: lcms.h: present but cannot be compiled" >&5
  32039. echo "$as_me: WARNING: lcms.h: present but cannot be compiled" >&2;}
  32040.     { echo "$as_me:$LINENO: WARNING: lcms.h:     check for missing prerequisite headers?" >&5
  32041. echo "$as_me: WARNING: lcms.h:     check for missing prerequisite headers?" >&2;}
  32042.     { echo "$as_me:$LINENO: WARNING: lcms.h: see the Autoconf documentation" >&5
  32043. echo "$as_me: WARNING: lcms.h: see the Autoconf documentation" >&2;}
  32044.     { echo "$as_me:$LINENO: WARNING: lcms.h:     section \"Present But Cannot Be Compiled\"" >&5
  32045. echo "$as_me: WARNING: lcms.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  32046.     { echo "$as_me:$LINENO: WARNING: lcms.h: proceeding with the preprocessor's result" >&5
  32047. echo "$as_me: WARNING: lcms.h: proceeding with the preprocessor's result" >&2;}
  32048.     { echo "$as_me:$LINENO: WARNING: lcms.h: in the future, the compiler will take precedence" >&5
  32049. echo "$as_me: WARNING: lcms.h: in the future, the compiler will take precedence" >&2;}
  32050.     (
  32051.       cat <<\_ASBOX
  32052. ## ------------------------------------------------------------------- ##
  32053. ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=GIMP ##
  32054. ## ------------------------------------------------------------------- ##
  32055. _ASBOX
  32056.     ) |
  32057.       sed "s/^/$as_me: WARNING:     /" >&2
  32058.     ;;
  32059. esac
  32060. echo "$as_me:$LINENO: checking for lcms.h" >&5
  32061. echo $ECHO_N "checking for lcms.h... $ECHO_C" >&6
  32062. if test "${ac_cv_header_lcms_h+set}" = set; then
  32063.   echo $ECHO_N "(cached) $ECHO_C" >&6
  32064. else
  32065.   ac_cv_header_lcms_h=$ac_header_preproc
  32066. fi
  32067. echo "$as_me:$LINENO: result: $ac_cv_header_lcms_h" >&5
  32068. echo "${ECHO_T}$ac_cv_header_lcms_h" >&6
  32069.  
  32070. fi
  32071. if test $ac_cv_header_lcms_h = yes; then
  32072.   have_lcms=yes
  32073. else
  32074.  
  32075.     if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
  32076.   echo "$as_me:$LINENO: checking for lcms/lcms.h" >&5
  32077. echo $ECHO_N "checking for lcms/lcms.h... $ECHO_C" >&6
  32078. if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
  32079.   echo $ECHO_N "(cached) $ECHO_C" >&6
  32080. fi
  32081. echo "$as_me:$LINENO: result: $ac_cv_header_lcms_lcms_h" >&5
  32082. echo "${ECHO_T}$ac_cv_header_lcms_lcms_h" >&6
  32083. else
  32084.   # Is the header compilable?
  32085. echo "$as_me:$LINENO: checking lcms/lcms.h usability" >&5
  32086. echo $ECHO_N "checking lcms/lcms.h usability... $ECHO_C" >&6
  32087. cat >conftest.$ac_ext <<_ACEOF
  32088. /* confdefs.h.  */
  32089. _ACEOF
  32090. cat confdefs.h >>conftest.$ac_ext
  32091. cat >>conftest.$ac_ext <<_ACEOF
  32092. /* end confdefs.h.  */
  32093. $ac_includes_default
  32094. #include <lcms/lcms.h>
  32095. _ACEOF
  32096. rm -f conftest.$ac_objext
  32097. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  32098.   (eval $ac_compile) 2>conftest.er1
  32099.   ac_status=$?
  32100.   grep -v '^ *+' conftest.er1 >conftest.err
  32101.   rm -f conftest.er1
  32102.   cat conftest.err >&5
  32103.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32104.   (exit $ac_status); } &&
  32105.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  32106.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  32107.   (eval $ac_try) 2>&5
  32108.   ac_status=$?
  32109.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32110.   (exit $ac_status); }; } &&
  32111.      { ac_try='test -s conftest.$ac_objext'
  32112.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  32113.   (eval $ac_try) 2>&5
  32114.   ac_status=$?
  32115.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32116.   (exit $ac_status); }; }; then
  32117.   ac_header_compiler=yes
  32118. else
  32119.   echo "$as_me: failed program was:" >&5
  32120. sed 's/^/| /' conftest.$ac_ext >&5
  32121.  
  32122. ac_header_compiler=no
  32123. fi
  32124. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  32125. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  32126. echo "${ECHO_T}$ac_header_compiler" >&6
  32127.  
  32128. # Is the header present?
  32129. echo "$as_me:$LINENO: checking lcms/lcms.h presence" >&5
  32130. echo $ECHO_N "checking lcms/lcms.h presence... $ECHO_C" >&6
  32131. cat >conftest.$ac_ext <<_ACEOF
  32132. /* confdefs.h.  */
  32133. _ACEOF
  32134. cat confdefs.h >>conftest.$ac_ext
  32135. cat >>conftest.$ac_ext <<_ACEOF
  32136. /* end confdefs.h.  */
  32137. #include <lcms/lcms.h>
  32138. _ACEOF
  32139. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  32140.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  32141.   ac_status=$?
  32142.   grep -v '^ *+' conftest.er1 >conftest.err
  32143.   rm -f conftest.er1
  32144.   cat conftest.err >&5
  32145.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32146.   (exit $ac_status); } >/dev/null; then
  32147.   if test -s conftest.err; then
  32148.     ac_cpp_err=$ac_c_preproc_warn_flag
  32149.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  32150.   else
  32151.     ac_cpp_err=
  32152.   fi
  32153. else
  32154.   ac_cpp_err=yes
  32155. fi
  32156. if test -z "$ac_cpp_err"; then
  32157.   ac_header_preproc=yes
  32158. else
  32159.   echo "$as_me: failed program was:" >&5
  32160. sed 's/^/| /' conftest.$ac_ext >&5
  32161.  
  32162.   ac_header_preproc=no
  32163. fi
  32164. rm -f conftest.err conftest.$ac_ext
  32165. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  32166. echo "${ECHO_T}$ac_header_preproc" >&6
  32167.  
  32168. # So?  What about this header?
  32169. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  32170.   yes:no: )
  32171.     { echo "$as_me:$LINENO: WARNING: lcms/lcms.h: accepted by the compiler, rejected by the preprocessor!" >&5
  32172. echo "$as_me: WARNING: lcms/lcms.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  32173.     { echo "$as_me:$LINENO: WARNING: lcms/lcms.h: proceeding with the compiler's result" >&5
  32174. echo "$as_me: WARNING: lcms/lcms.h: proceeding with the compiler's result" >&2;}
  32175.     ac_header_preproc=yes
  32176.     ;;
  32177.   no:yes:* )
  32178.     { echo "$as_me:$LINENO: WARNING: lcms/lcms.h: present but cannot be compiled" >&5
  32179. echo "$as_me: WARNING: lcms/lcms.h: present but cannot be compiled" >&2;}
  32180.     { echo "$as_me:$LINENO: WARNING: lcms/lcms.h:     check for missing prerequisite headers?" >&5
  32181. echo "$as_me: WARNING: lcms/lcms.h:     check for missing prerequisite headers?" >&2;}
  32182.     { echo "$as_me:$LINENO: WARNING: lcms/lcms.h: see the Autoconf documentation" >&5
  32183. echo "$as_me: WARNING: lcms/lcms.h: see the Autoconf documentation" >&2;}
  32184.     { echo "$as_me:$LINENO: WARNING: lcms/lcms.h:     section \"Present But Cannot Be Compiled\"" >&5
  32185. echo "$as_me: WARNING: lcms/lcms.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  32186.     { echo "$as_me:$LINENO: WARNING: lcms/lcms.h: proceeding with the preprocessor's result" >&5
  32187. echo "$as_me: WARNING: lcms/lcms.h: proceeding with the preprocessor's result" >&2;}
  32188.     { echo "$as_me:$LINENO: WARNING: lcms/lcms.h: in the future, the compiler will take precedence" >&5
  32189. echo "$as_me: WARNING: lcms/lcms.h: in the future, the compiler will take precedence" >&2;}
  32190.     (
  32191.       cat <<\_ASBOX
  32192. ## ------------------------------------------------------------------- ##
  32193. ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=GIMP ##
  32194. ## ------------------------------------------------------------------- ##
  32195. _ASBOX
  32196.     ) |
  32197.       sed "s/^/$as_me: WARNING:     /" >&2
  32198.     ;;
  32199. esac
  32200. echo "$as_me:$LINENO: checking for lcms/lcms.h" >&5
  32201. echo $ECHO_N "checking for lcms/lcms.h... $ECHO_C" >&6
  32202. if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
  32203.   echo $ECHO_N "(cached) $ECHO_C" >&6
  32204. else
  32205.   ac_cv_header_lcms_lcms_h=$ac_header_preproc
  32206. fi
  32207. echo "$as_me:$LINENO: result: $ac_cv_header_lcms_lcms_h" >&5
  32208. echo "${ECHO_T}$ac_cv_header_lcms_lcms_h" >&6
  32209.  
  32210. fi
  32211. if test $ac_cv_header_lcms_lcms_h = yes; then
  32212.   have_lcms=yes
  32213.  
  32214. cat >>confdefs.h <<\_ACEOF
  32215. #define HAVE_LCMS_LCMS_H 1
  32216. _ACEOF
  32217.  
  32218. fi
  32219.  
  32220.  
  32221.  
  32222. fi
  32223.  
  32224.  
  32225.  
  32226. fi
  32227.  
  32228.  
  32229. if test $have_lcms = yes; then
  32230.   LCMS_LIBS="-llcms"
  32231. else
  32232.   { echo "$as_me:$LINENO: WARNING: *** color proof module will not be built (lcms not found or unuseable) ***" >&5
  32233. echo "$as_me: WARNING: *** color proof module will not be built (lcms not found or unuseable) ***" >&2;}
  32234. fi
  32235.  
  32236.  
  32237.  
  32238.  
  32239. if test $have_lcms = yes; then
  32240.   HAVE_LCMS_TRUE=
  32241.   HAVE_LCMS_FALSE='#'
  32242. else
  32243.   HAVE_LCMS_TRUE='#'
  32244.   HAVE_LCMS_FALSE=
  32245. fi
  32246.  
  32247.  
  32248.  
  32249. ################
  32250. # Check for alsa
  32251. ################
  32252.  
  32253. alsa_save_CFLAGS="$CFLAGS"
  32254. alsa_save_LDFLAGS="$LDFLAGS"
  32255. alsa_save_LIBS="$LIBS"
  32256. alsa_found=yes
  32257.  
  32258.  
  32259. # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
  32260. if test "${with_alsa_prefix+set}" = set; then
  32261.   withval="$with_alsa_prefix"
  32262.   alsa_prefix="$withval"
  32263. else
  32264.   alsa_prefix=""
  32265. fi;
  32266.  
  32267.  
  32268. # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
  32269. if test "${with_alsa_inc_prefix+set}" = set; then
  32270.   withval="$with_alsa_inc_prefix"
  32271.   alsa_inc_prefix="$withval"
  32272. else
  32273.   alsa_inc_prefix=""
  32274. fi;
  32275.  
  32276. # Check whether --enable-alsatest or --disable-alsatest was given.
  32277. if test "${enable_alsatest+set}" = set; then
  32278.   enableval="$enable_alsatest"
  32279.   enable_alsatest="$enableval"
  32280. else
  32281.   enable_alsatest=yes
  32282. fi;
  32283.  
  32284. echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
  32285. echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
  32286. if test "$alsa_inc_prefix" != "" ; then
  32287.     ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  32288.     CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  32289. fi
  32290. echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
  32291. echo "${ECHO_T}$ALSA_CFLAGS" >&6
  32292. CFLAGS="$alsa_save_CFLAGS"
  32293.  
  32294. echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
  32295. echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
  32296. if test "$alsa_prefix" != "" ; then
  32297.     ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  32298.     LDFLAGS="$LDFLAGS $ALSA_LIBS"
  32299. fi
  32300.  
  32301. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  32302. LIBS=`echo $LIBS | sed 's/-lm//'`
  32303. LIBS=`echo $LIBS | sed 's/-ldl//'`
  32304. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  32305. LIBS=`echo $LIBS | sed 's/  //'`
  32306. LIBS="$ALSA_LIBS $LIBS"
  32307. echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
  32308. echo "${ECHO_T}$ALSA_LIBS" >&6
  32309.  
  32310. min_alsa_version=1.0.0
  32311. echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
  32312. echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
  32313. no_alsa=""
  32314.     alsa_min_major_version=`echo $min_alsa_version | \
  32315.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  32316.     alsa_min_minor_version=`echo $min_alsa_version | \
  32317.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  32318.     alsa_min_micro_version=`echo $min_alsa_version | \
  32319.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  32320.  
  32321.  
  32322.  
  32323. ac_ext=c
  32324. ac_cpp='$CPP $CPPFLAGS'
  32325. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32326. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32327. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  32328.  
  32329. cat >conftest.$ac_ext <<_ACEOF
  32330. /* confdefs.h.  */
  32331. _ACEOF
  32332. cat confdefs.h >>conftest.$ac_ext
  32333. cat >>conftest.$ac_ext <<_ACEOF
  32334. /* end confdefs.h.  */
  32335.  
  32336. #include <alsa/asoundlib.h>
  32337.  
  32338. int
  32339. main ()
  32340. {
  32341.  
  32342. /* ensure backward compatibility */
  32343. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  32344. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  32345. #endif
  32346. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  32347. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  32348. #endif
  32349. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  32350. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  32351. #endif
  32352.  
  32353. #  if(SND_LIB_MAJOR > $alsa_min_major_version)
  32354.   exit(0);
  32355. #  else
  32356. #    if(SND_LIB_MAJOR < $alsa_min_major_version)
  32357. #       error not present
  32358. #    endif
  32359.  
  32360. #   if(SND_LIB_MINOR > $alsa_min_minor_version)
  32361.   exit(0);
  32362. #   else
  32363. #     if(SND_LIB_MINOR < $alsa_min_minor_version)
  32364. #          error not present
  32365. #      endif
  32366.  
  32367. #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  32368. #        error not present
  32369. #      endif
  32370. #    endif
  32371. #  endif
  32372. exit(0);
  32373.  
  32374.   ;
  32375.   return 0;
  32376. }
  32377. _ACEOF
  32378. rm -f conftest.$ac_objext
  32379. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  32380.   (eval $ac_compile) 2>conftest.er1
  32381.   ac_status=$?
  32382.   grep -v '^ *+' conftest.er1 >conftest.err
  32383.   rm -f conftest.er1
  32384.   cat conftest.err >&5
  32385.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32386.   (exit $ac_status); } &&
  32387.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  32388.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  32389.   (eval $ac_try) 2>&5
  32390.   ac_status=$?
  32391.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32392.   (exit $ac_status); }; } &&
  32393.      { ac_try='test -s conftest.$ac_objext'
  32394.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  32395.   (eval $ac_try) 2>&5
  32396.   ac_status=$?
  32397.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32398.   (exit $ac_status); }; }; then
  32399.   echo "$as_me:$LINENO: result: found." >&5
  32400. echo "${ECHO_T}found." >&6
  32401. else
  32402.   echo "$as_me: failed program was:" >&5
  32403. sed 's/^/| /' conftest.$ac_ext >&5
  32404.  
  32405. echo "$as_me:$LINENO: result: not present." >&5
  32406. echo "${ECHO_T}not present." >&6
  32407.  
  32408.    alsa_found=no
  32409.  
  32410. fi
  32411. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  32412. ac_ext=c
  32413. ac_cpp='$CPP $CPPFLAGS'
  32414. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32415. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32416. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  32417.  
  32418.  
  32419. if test "x$enable_alsatest" = "xyes"; then
  32420.  
  32421. echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
  32422. echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
  32423. if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
  32424.   echo $ECHO_N "(cached) $ECHO_C" >&6
  32425. else
  32426.   ac_check_lib_save_LIBS=$LIBS
  32427. LIBS="-lasound  $LIBS"
  32428. cat >conftest.$ac_ext <<_ACEOF
  32429. /* confdefs.h.  */
  32430. _ACEOF
  32431. cat confdefs.h >>conftest.$ac_ext
  32432. cat >>conftest.$ac_ext <<_ACEOF
  32433. /* end confdefs.h.  */
  32434.  
  32435. /* Override any gcc2 internal prototype to avoid an error.  */
  32436. #ifdef __cplusplus
  32437. extern "C"
  32438. #endif
  32439. /* We use char because int might match the return type of a gcc2
  32440.    builtin and then its argument prototype would still apply.  */
  32441. char snd_ctl_open ();
  32442. int
  32443. main ()
  32444. {
  32445. snd_ctl_open ();
  32446.   ;
  32447.   return 0;
  32448. }
  32449. _ACEOF
  32450. rm -f conftest.$ac_objext conftest$ac_exeext
  32451. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  32452.   (eval $ac_link) 2>conftest.er1
  32453.   ac_status=$?
  32454.   grep -v '^ *+' conftest.er1 >conftest.err
  32455.   rm -f conftest.er1
  32456.   cat conftest.err >&5
  32457.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32458.   (exit $ac_status); } &&
  32459.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  32460.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  32461.   (eval $ac_try) 2>&5
  32462.   ac_status=$?
  32463.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32464.   (exit $ac_status); }; } &&
  32465.      { ac_try='test -s conftest$ac_exeext'
  32466.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  32467.   (eval $ac_try) 2>&5
  32468.   ac_status=$?
  32469.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32470.   (exit $ac_status); }; }; then
  32471.   ac_cv_lib_asound_snd_ctl_open=yes
  32472. else
  32473.   echo "$as_me: failed program was:" >&5
  32474. sed 's/^/| /' conftest.$ac_ext >&5
  32475.  
  32476. ac_cv_lib_asound_snd_ctl_open=no
  32477. fi
  32478. rm -f conftest.err conftest.$ac_objext \
  32479.       conftest$ac_exeext conftest.$ac_ext
  32480. LIBS=$ac_check_lib_save_LIBS
  32481. fi
  32482. echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  32483. echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
  32484. if test $ac_cv_lib_asound_snd_ctl_open = yes; then
  32485.   cat >>confdefs.h <<_ACEOF
  32486. #define HAVE_LIBASOUND 1
  32487. _ACEOF
  32488.  
  32489.   LIBS="-lasound $LIBS"
  32490.  
  32491. else
  32492.  
  32493.      alsa_found=no
  32494.  
  32495. fi
  32496.  
  32497. fi
  32498.  
  32499. LDFLAGS="$alsa_save_LDFLAGS"
  32500. LIBS="$alsa_save_LIBS"
  32501.  
  32502. if test "x$alsa_found" = "xyes" ; then
  32503.  
  32504. cat >>confdefs.h <<\_ACEOF
  32505. #define HAVE_ALSA 1
  32506. _ACEOF
  32507.  
  32508. else
  32509.    ALSA_CFLAGS=""
  32510.    ALSA_LIBS=""
  32511.    { echo "$as_me:$LINENO: WARNING: *** midi input controller will be built without alsa support (alsa not found or unuseable) ***" >&5
  32512. echo "$as_me: WARNING: *** midi input controller will be built without alsa support (alsa not found or unuseable) ***" >&2;}
  32513. fi
  32514.  
  32515.  
  32516.  
  32517.  
  32518.  
  32519.  
  32520. #######################
  32521. # Check for linux input
  32522. #######################
  32523.  
  32524.  
  32525. # Check whether --with-linux-input or --without-linux-input was given.
  32526. if test "${with_linux_input+set}" = set; then
  32527.   withval="$with_linux_input"
  32528.  
  32529. fi;
  32530.  
  32531. have_linux_input=no
  32532. if test "x$with_linux_input" != "xno"; then
  32533.   if test "${ac_cv_header_linux_input_h+set}" = set; then
  32534.   echo "$as_me:$LINENO: checking for linux/input.h" >&5
  32535. echo $ECHO_N "checking for linux/input.h... $ECHO_C" >&6
  32536. if test "${ac_cv_header_linux_input_h+set}" = set; then
  32537.   echo $ECHO_N "(cached) $ECHO_C" >&6
  32538. fi
  32539. echo "$as_me:$LINENO: result: $ac_cv_header_linux_input_h" >&5
  32540. echo "${ECHO_T}$ac_cv_header_linux_input_h" >&6
  32541. else
  32542.   # Is the header compilable?
  32543. echo "$as_me:$LINENO: checking linux/input.h usability" >&5
  32544. echo $ECHO_N "checking linux/input.h usability... $ECHO_C" >&6
  32545. cat >conftest.$ac_ext <<_ACEOF
  32546. /* confdefs.h.  */
  32547. _ACEOF
  32548. cat confdefs.h >>conftest.$ac_ext
  32549. cat >>conftest.$ac_ext <<_ACEOF
  32550. /* end confdefs.h.  */
  32551. $ac_includes_default
  32552. #include <linux/input.h>
  32553. _ACEOF
  32554. rm -f conftest.$ac_objext
  32555. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  32556.   (eval $ac_compile) 2>conftest.er1
  32557.   ac_status=$?
  32558.   grep -v '^ *+' conftest.er1 >conftest.err
  32559.   rm -f conftest.er1
  32560.   cat conftest.err >&5
  32561.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32562.   (exit $ac_status); } &&
  32563.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  32564.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  32565.   (eval $ac_try) 2>&5
  32566.   ac_status=$?
  32567.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32568.   (exit $ac_status); }; } &&
  32569.      { ac_try='test -s conftest.$ac_objext'
  32570.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  32571.   (eval $ac_try) 2>&5
  32572.   ac_status=$?
  32573.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32574.   (exit $ac_status); }; }; then
  32575.   ac_header_compiler=yes
  32576. else
  32577.   echo "$as_me: failed program was:" >&5
  32578. sed 's/^/| /' conftest.$ac_ext >&5
  32579.  
  32580. ac_header_compiler=no
  32581. fi
  32582. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  32583. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  32584. echo "${ECHO_T}$ac_header_compiler" >&6
  32585.  
  32586. # Is the header present?
  32587. echo "$as_me:$LINENO: checking linux/input.h presence" >&5
  32588. echo $ECHO_N "checking linux/input.h presence... $ECHO_C" >&6
  32589. cat >conftest.$ac_ext <<_ACEOF
  32590. /* confdefs.h.  */
  32591. _ACEOF
  32592. cat confdefs.h >>conftest.$ac_ext
  32593. cat >>conftest.$ac_ext <<_ACEOF
  32594. /* end confdefs.h.  */
  32595. #include <linux/input.h>
  32596. _ACEOF
  32597. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  32598.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  32599.   ac_status=$?
  32600.   grep -v '^ *+' conftest.er1 >conftest.err
  32601.   rm -f conftest.er1
  32602.   cat conftest.err >&5
  32603.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32604.   (exit $ac_status); } >/dev/null; then
  32605.   if test -s conftest.err; then
  32606.     ac_cpp_err=$ac_c_preproc_warn_flag
  32607.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  32608.   else
  32609.     ac_cpp_err=
  32610.   fi
  32611. else
  32612.   ac_cpp_err=yes
  32613. fi
  32614. if test -z "$ac_cpp_err"; then
  32615.   ac_header_preproc=yes
  32616. else
  32617.   echo "$as_me: failed program was:" >&5
  32618. sed 's/^/| /' conftest.$ac_ext >&5
  32619.  
  32620.   ac_header_preproc=no
  32621. fi
  32622. rm -f conftest.err conftest.$ac_ext
  32623. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  32624. echo "${ECHO_T}$ac_header_preproc" >&6
  32625.  
  32626. # So?  What about this header?
  32627. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  32628.   yes:no: )
  32629.     { echo "$as_me:$LINENO: WARNING: linux/input.h: accepted by the compiler, rejected by the preprocessor!" >&5
  32630. echo "$as_me: WARNING: linux/input.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  32631.     { echo "$as_me:$LINENO: WARNING: linux/input.h: proceeding with the compiler's result" >&5
  32632. echo "$as_me: WARNING: linux/input.h: proceeding with the compiler's result" >&2;}
  32633.     ac_header_preproc=yes
  32634.     ;;
  32635.   no:yes:* )
  32636.     { echo "$as_me:$LINENO: WARNING: linux/input.h: present but cannot be compiled" >&5
  32637. echo "$as_me: WARNING: linux/input.h: present but cannot be compiled" >&2;}
  32638.     { echo "$as_me:$LINENO: WARNING: linux/input.h:     check for missing prerequisite headers?" >&5
  32639. echo "$as_me: WARNING: linux/input.h:     check for missing prerequisite headers?" >&2;}
  32640.     { echo "$as_me:$LINENO: WARNING: linux/input.h: see the Autoconf documentation" >&5
  32641. echo "$as_me: WARNING: linux/input.h: see the Autoconf documentation" >&2;}
  32642.     { echo "$as_me:$LINENO: WARNING: linux/input.h:     section \"Present But Cannot Be Compiled\"" >&5
  32643. echo "$as_me: WARNING: linux/input.h:     section \"Present But Cannot Be Compiled\"" >&2;}
  32644.     { echo "$as_me:$LINENO: WARNING: linux/input.h: proceeding with the preprocessor's result" >&5
  32645. echo "$as_me: WARNING: linux/input.h: proceeding with the preprocessor's result" >&2;}
  32646.     { echo "$as_me:$LINENO: WARNING: linux/input.h: in the future, the compiler will take precedence" >&5
  32647. echo "$as_me: WARNING: linux/input.h: in the future, the compiler will take precedence" >&2;}
  32648.     (
  32649.       cat <<\_ASBOX
  32650. ## ------------------------------------------------------------------- ##
  32651. ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=GIMP ##
  32652. ## ------------------------------------------------------------------- ##
  32653. _ASBOX
  32654.     ) |
  32655.       sed "s/^/$as_me: WARNING:     /" >&2
  32656.     ;;
  32657. esac
  32658. echo "$as_me:$LINENO: checking for linux/input.h" >&5
  32659. echo $ECHO_N "checking for linux/input.h... $ECHO_C" >&6
  32660. if test "${ac_cv_header_linux_input_h+set}" = set; then
  32661.   echo $ECHO_N "(cached) $ECHO_C" >&6
  32662. else
  32663.   ac_cv_header_linux_input_h=$ac_header_preproc
  32664. fi
  32665. echo "$as_me:$LINENO: result: $ac_cv_header_linux_input_h" >&5
  32666. echo "${ECHO_T}$ac_cv_header_linux_input_h" >&6
  32667.  
  32668. fi
  32669. if test $ac_cv_header_linux_input_h = yes; then
  32670.   have_linux_input=yes
  32671. fi
  32672.  
  32673.  
  32674. fi
  32675.  
  32676.  
  32677.  
  32678. if test $have_linux_input = yes; then
  32679.   HAVE_LINUX_INPUT_TRUE=
  32680.   HAVE_LINUX_INPUT_FALSE='#'
  32681. else
  32682.   HAVE_LINUX_INPUT_TRUE='#'
  32683.   HAVE_LINUX_INPUT_FALSE=
  32684. fi
  32685.  
  32686.  
  32687.  
  32688. ############################################################
  32689. # GIF compression: Allow builder to specify at compile time
  32690. # which compression style she wants to use for GIFs.
  32691. # LZW: Unisys patented Lempel-Ziff encoding.
  32692. # RLE: Runlength encoding (produces files about twice as big
  32693. #               as the LZW compressed equivalent).
  32694. # None: Raw data.
  32695. ############################################################
  32696.  
  32697.  
  32698. # Check whether --with-gif-compression or --without-gif-compression was given.
  32699. if test "${with_gif_compression+set}" = set; then
  32700.   withval="$with_gif_compression"
  32701.  
  32702. fi;
  32703.  
  32704. case x"$with_gif_compression" in
  32705.   xnone)
  32706.  
  32707. cat >>confdefs.h <<\_ACEOF
  32708. #define GIF_UN 1
  32709. _ACEOF
  32710.  ;;
  32711.   xrle)
  32712.  
  32713. cat >>confdefs.h <<\_ACEOF
  32714. #define GIF_RLE 1
  32715. _ACEOF
  32716.  ;;
  32717. esac
  32718.  
  32719.  
  32720. ####################
  32721. # Check for sendmail
  32722. ####################
  32723.  
  32724.  
  32725. # Check whether --with-sendmail or --without-sendmail was given.
  32726. if test "${with_sendmail+set}" = set; then
  32727.   withval="$with_sendmail"
  32728.  
  32729. fi;
  32730.  
  32731. if test "x$with_sendmail" != "x"; then
  32732.   sendmail_path=$with_sendmail
  32733. else
  32734.   sendmail_path=$PATH:/usr/sbin:/usr/lib
  32735. fi
  32736.  
  32737. # Extract the first word of "sendmail", so it can be a program name with args.
  32738. set dummy sendmail; ac_word=$2
  32739. echo "$as_me:$LINENO: checking for $ac_word" >&5
  32740. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  32741. if test "${ac_cv_path_SENDMAIL+set}" = set; then
  32742.   echo $ECHO_N "(cached) $ECHO_C" >&6
  32743. else
  32744.   case $SENDMAIL in
  32745.   [\\/]* | ?:[\\/]*)
  32746.   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
  32747.   ;;
  32748.   *)
  32749.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  32750. for as_dir in $sendmail_path
  32751. do
  32752.   IFS=$as_save_IFS
  32753.   test -z "$as_dir" && as_dir=.
  32754.   for ac_exec_ext in '' $ac_executable_extensions; do
  32755.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  32756.     ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
  32757.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  32758.     break 2
  32759.   fi
  32760. done
  32761. done
  32762.  
  32763.   ;;
  32764. esac
  32765. fi
  32766. SENDMAIL=$ac_cv_path_SENDMAIL
  32767.  
  32768. if test -n "$SENDMAIL"; then
  32769.   echo "$as_me:$LINENO: result: $SENDMAIL" >&5
  32770. echo "${ECHO_T}$SENDMAIL" >&6
  32771. else
  32772.   echo "$as_me:$LINENO: result: no" >&5
  32773. echo "${ECHO_T}no" >&6
  32774. fi
  32775.  
  32776. if test "x$SENDMAIL" != "x"; then
  32777.  
  32778. cat >>confdefs.h <<_ACEOF
  32779. #define SENDMAIL "$SENDMAIL"
  32780. _ACEOF
  32781.  
  32782. fi
  32783.  
  32784.  
  32785. ################
  32786. # Check for perl
  32787. ################
  32788.  
  32789. for ac_prog in perl5 perl perl5.005 perl5.004
  32790. do
  32791.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  32792. set dummy $ac_prog; ac_word=$2
  32793. echo "$as_me:$LINENO: checking for $ac_word" >&5
  32794. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  32795. if test "${ac_cv_path_PERL+set}" = set; then
  32796.   echo $ECHO_N "(cached) $ECHO_C" >&6
  32797. else
  32798.   case $PERL in
  32799.   [\\/]* | ?:[\\/]*)
  32800.   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  32801.   ;;
  32802.   *)
  32803.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  32804. for as_dir in $PATH
  32805. do
  32806.   IFS=$as_save_IFS
  32807.   test -z "$as_dir" && as_dir=.
  32808.   for ac_exec_ext in '' $ac_executable_extensions; do
  32809.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  32810.     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  32811.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  32812.     break 2
  32813.   fi
  32814. done
  32815. done
  32816.  
  32817.   ;;
  32818. esac
  32819. fi
  32820. PERL=$ac_cv_path_PERL
  32821.  
  32822. if test -n "$PERL"; then
  32823.   echo "$as_me:$LINENO: result: $PERL" >&5
  32824. echo "${ECHO_T}$PERL" >&6
  32825. else
  32826.   echo "$as_me:$LINENO: result: no" >&5
  32827. echo "${ECHO_T}no" >&6
  32828. fi
  32829.  
  32830.   test -n "$PERL" && break
  32831. done
  32832. test -n "$PERL" || PERL="perl"
  32833.  
  32834.  
  32835.  
  32836.  
  32837. # Check whether --with-pdbgen or --without-pdbgen was given.
  32838. if test "${with_pdbgen+set}" = set; then
  32839.   withval="$with_pdbgen"
  32840.  
  32841. else
  32842.   with_pdbgen=$enable_maintainer_mode
  32843. fi;
  32844.  
  32845.  
  32846.  
  32847. if test x$with_pdbgen = xyes; then
  32848.   WITH_PDBGEN_TRUE=
  32849.   WITH_PDBGEN_FALSE='#'
  32850. else
  32851.   WITH_PDBGEN_TRUE='#'
  32852.   WITH_PDBGEN_FALSE=
  32853. fi
  32854.  
  32855.  
  32856.  
  32857. ##################
  32858. # Check for python
  32859. ##################
  32860.  
  32861. # Check whether --enable-python or --disable-python was given.
  32862. if test "${enable_python+set}" = set; then
  32863.   enableval="$enable_python"
  32864.  
  32865. else
  32866.   enable_python=no
  32867. fi;
  32868.  
  32869.  
  32870. if test "x$enable_python" != xno; then
  32871.  
  32872.  
  32873.  
  32874.  
  32875.         if test -n "$PYTHON"; then
  32876.       # If the user set $PYTHON, use it and don't search something else.
  32877.       echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.2" >&5
  32878. echo $ECHO_N "checking whether $PYTHON version >= 2.2... $ECHO_C" >&6
  32879.       prog="import sys, string
  32880. # split strings by '.' and convert to numeric.  Append some zeros
  32881. # because we need at least 4 digits for the hex conversion.
  32882. minver = map(int, string.split('2.2', '.')) + [0, 0, 0]
  32883. minverhex = 0
  32884. for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
  32885. sys.exit(sys.hexversion < minverhex)"
  32886.   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
  32887.    ($PYTHON -c "$prog") >&5 2>&5
  32888.    ac_status=$?
  32889.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32890.    (exit $ac_status); }; then
  32891.   echo "$as_me:$LINENO: result: yes" >&5
  32892. echo "${ECHO_T}yes" >&6
  32893. else
  32894.   { { echo "$as_me:$LINENO: error: too old" >&5
  32895. echo "$as_me: error: too old" >&2;}
  32896.    { (exit 1); exit 1; }; }
  32897. fi
  32898.  
  32899.     else
  32900.       # Otherwise, try each interpreter until we find one that satisfies
  32901.       # VERSION.
  32902.       echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.2" >&5
  32903. echo $ECHO_N "checking for a Python interpreter with version >= 2.2... $ECHO_C" >&6
  32904. if test "${am_cv_pathless_PYTHON+set}" = set; then
  32905.   echo $ECHO_N "(cached) $ECHO_C" >&6
  32906. else
  32907.  
  32908.     for am_cv_pathless_PYTHON in python python2 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 : ; do
  32909.           if test "$am_cv_pathless_PYTHON" = : ; then
  32910.             { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
  32911. echo "$as_me: error: no suitable Python interpreter found" >&2;}
  32912.    { (exit 1); exit 1; }; }
  32913.       fi
  32914.           prog="import sys, string
  32915. # split strings by '.' and convert to numeric.  Append some zeros
  32916. # because we need at least 4 digits for the hex conversion.
  32917. minver = map(int, string.split('2.2', '.')) + [0, 0, 0]
  32918. minverhex = 0
  32919. for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
  32920. sys.exit(sys.hexversion < minverhex)"
  32921.   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
  32922.    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
  32923.    ac_status=$?
  32924.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32925.    (exit $ac_status); }; then
  32926.   break
  32927. fi
  32928.  
  32929.         done
  32930. fi
  32931. echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
  32932. echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6
  32933.       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
  32934.       # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
  32935. set dummy $am_cv_pathless_PYTHON; ac_word=$2
  32936. echo "$as_me:$LINENO: checking for $ac_word" >&5
  32937. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  32938. if test "${ac_cv_path_PYTHON+set}" = set; then
  32939.   echo $ECHO_N "(cached) $ECHO_C" >&6
  32940. else
  32941.   case $PYTHON in
  32942.   [\\/]* | ?:[\\/]*)
  32943.   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
  32944.   ;;
  32945.   *)
  32946.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  32947. for as_dir in $PATH
  32948. do
  32949.   IFS=$as_save_IFS
  32950.   test -z "$as_dir" && as_dir=.
  32951.   for ac_exec_ext in '' $ac_executable_extensions; do
  32952.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  32953.     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
  32954.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  32955.     break 2
  32956.   fi
  32957. done
  32958. done
  32959.  
  32960.   ;;
  32961. esac
  32962. fi
  32963. PYTHON=$ac_cv_path_PYTHON
  32964.  
  32965. if test -n "$PYTHON"; then
  32966.   echo "$as_me:$LINENO: result: $PYTHON" >&5
  32967. echo "${ECHO_T}$PYTHON" >&6
  32968. else
  32969.   echo "$as_me:$LINENO: result: no" >&5
  32970. echo "${ECHO_T}no" >&6
  32971. fi
  32972.  
  32973.       am_display_PYTHON=$am_cv_pathless_PYTHON
  32974.     fi
  32975.  
  32976.  
  32977.  
  32978.   echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
  32979. echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6
  32980. if test "${am_cv_python_version+set}" = set; then
  32981.   echo $ECHO_N "(cached) $ECHO_C" >&6
  32982. else
  32983.   am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
  32984. fi
  32985. echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
  32986. echo "${ECHO_T}$am_cv_python_version" >&6
  32987.   PYTHON_VERSION=$am_cv_python_version
  32988.  
  32989.  
  32990.  
  32991.   PYTHON_PREFIX='${prefix}'
  32992.  
  32993.   PYTHON_EXEC_PREFIX='${exec_prefix}'
  32994.  
  32995.  
  32996.  
  32997.   echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
  32998. echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6
  32999. if test "${am_cv_python_platform+set}" = set; then
  33000.   echo $ECHO_N "(cached) $ECHO_C" >&6
  33001. else
  33002.   am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
  33003. fi
  33004. echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
  33005. echo "${ECHO_T}$am_cv_python_platform" >&6
  33006.   PYTHON_PLATFORM=$am_cv_python_platform
  33007.  
  33008.  
  33009.  
  33010.  
  33011.                 echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
  33012. echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6
  33013. if test "${am_cv_python_pythondir+set}" = set; then
  33014.   echo $ECHO_N "(cached) $ECHO_C" >&6
  33015. else
  33016.   am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
  33017.      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
  33018. fi
  33019. echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
  33020. echo "${ECHO_T}$am_cv_python_pythondir" >&6
  33021.   pythondir=$am_cv_python_pythondir
  33022.  
  33023.  
  33024.  
  33025.   pkgpythondir=\${pythondir}/$PACKAGE
  33026.  
  33027.  
  33028.             echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
  33029. echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6
  33030. if test "${am_cv_python_pyexecdir+set}" = set; then
  33031.   echo $ECHO_N "(cached) $ECHO_C" >&6
  33032. else
  33033.   am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
  33034.      echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
  33035. fi
  33036. echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
  33037. echo "${ECHO_T}$am_cv_python_pyexecdir" >&6
  33038.   pyexecdir=$am_cv_python_pyexecdir
  33039.  
  33040.  
  33041.  
  33042.   pkgpyexecdir=\${pyexecdir}/$PACKAGE
  33043.  
  33044.  
  33045.  
  33046. echo "$as_me:$LINENO: checking for headers required to compile python extensions" >&5
  33047. echo $ECHO_N "checking for headers required to compile python extensions... $ECHO_C" >&6
  33048. py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
  33049. py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
  33050. PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
  33051. if test "$py_prefix" != "$py_exec_prefix"; then
  33052.   PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
  33053. fi
  33054.  
  33055. save_CPPFLAGS="$CPPFLAGS"
  33056. CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
  33057. cat >conftest.$ac_ext <<_ACEOF
  33058. /* confdefs.h.  */
  33059. _ACEOF
  33060. cat confdefs.h >>conftest.$ac_ext
  33061. cat >>conftest.$ac_ext <<_ACEOF
  33062. /* end confdefs.h.  */
  33063. #include <Python.h>
  33064. _ACEOF
  33065. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  33066.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  33067.   ac_status=$?
  33068.   grep -v '^ *+' conftest.er1 >conftest.err
  33069.   rm -f conftest.er1
  33070.   cat conftest.err >&5
  33071.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33072.   (exit $ac_status); } >/dev/null; then
  33073.   if test -s conftest.err; then
  33074.     ac_cpp_err=$ac_c_preproc_warn_flag
  33075.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  33076.   else
  33077.     ac_cpp_err=
  33078.   fi
  33079. else
  33080.   ac_cpp_err=yes
  33081. fi
  33082. if test -z "$ac_cpp_err"; then
  33083.   echo "$as_me:$LINENO: result: found" >&5
  33084. echo "${ECHO_T}found" >&6
  33085.  
  33086. else
  33087.   echo "$as_me: failed program was:" >&5
  33088. sed 's/^/| /' conftest.$ac_ext >&5
  33089.  
  33090.   echo "$as_me:$LINENO: result: not found" >&5
  33091. echo "${ECHO_T}not found" >&6
  33092. { { echo "$as_me:$LINENO: error: could not find Python headers" >&5
  33093. echo "$as_me: error: could not find Python headers" >&2;}
  33094.    { (exit 1); exit 1; }; }
  33095. fi
  33096. rm -f conftest.err conftest.$ac_ext
  33097. CPPFLAGS="$save_CPPFLAGS"
  33098.  
  33099.  
  33100.  
  33101.   succeeded=no
  33102.  
  33103.   if test -z "$PKG_CONFIG"; then
  33104.     # Extract the first word of "pkg-config", so it can be a program name with args.
  33105. set dummy pkg-config; ac_word=$2
  33106. echo "$as_me:$LINENO: checking for $ac_word" >&5
  33107. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  33108. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  33109.   echo $ECHO_N "(cached) $ECHO_C" >&6
  33110. else
  33111.   case $PKG_CONFIG in
  33112.   [\\/]* | ?:[\\/]*)
  33113.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  33114.   ;;
  33115.   *)
  33116.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  33117. for as_dir in $PATH
  33118. do
  33119.   IFS=$as_save_IFS
  33120.   test -z "$as_dir" && as_dir=.
  33121.   for ac_exec_ext in '' $ac_executable_extensions; do
  33122.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  33123.     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  33124.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  33125.     break 2
  33126.   fi
  33127. done
  33128. done
  33129.  
  33130.   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  33131.   ;;
  33132. esac
  33133. fi
  33134. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  33135.  
  33136. if test -n "$PKG_CONFIG"; then
  33137.   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  33138. echo "${ECHO_T}$PKG_CONFIG" >&6
  33139. else
  33140.   echo "$as_me:$LINENO: result: no" >&5
  33141. echo "${ECHO_T}no" >&6
  33142. fi
  33143.  
  33144.   fi
  33145.  
  33146.   if test "$PKG_CONFIG" = "no" ; then
  33147.      echo "*** The pkg-config script could not be found. Make sure it is"
  33148.      echo "*** in your path, or set the PKG_CONFIG environment variable"
  33149.      echo "*** to the full path to pkg-config."
  33150.      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  33151.   else
  33152.      PKG_CONFIG_MIN_VERSION=0.9.0
  33153.      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  33154.         echo "$as_me:$LINENO: checking for pygtk-2.0 >= 1.99.15" >&5
  33155. echo $ECHO_N "checking for pygtk-2.0 >= 1.99.15... $ECHO_C" >&6
  33156.  
  33157.         if $PKG_CONFIG --exists "pygtk-2.0 >= 1.99.15" ; then
  33158.             echo "$as_me:$LINENO: result: yes" >&5
  33159. echo "${ECHO_T}yes" >&6
  33160.             succeeded=yes
  33161.  
  33162.             echo "$as_me:$LINENO: checking PYGTK_CFLAGS" >&5
  33163. echo $ECHO_N "checking PYGTK_CFLAGS... $ECHO_C" >&6
  33164.             PYGTK_CFLAGS=`$PKG_CONFIG --cflags "pygtk-2.0 >= 1.99.15"`
  33165.             echo "$as_me:$LINENO: result: $PYGTK_CFLAGS" >&5
  33166. echo "${ECHO_T}$PYGTK_CFLAGS" >&6
  33167.  
  33168.             echo "$as_me:$LINENO: checking PYGTK_LIBS" >&5
  33169. echo $ECHO_N "checking PYGTK_LIBS... $ECHO_C" >&6
  33170.             PYGTK_LIBS=`$PKG_CONFIG --libs "pygtk-2.0 >= 1.99.15"`
  33171.             echo "$as_me:$LINENO: result: $PYGTK_LIBS" >&5
  33172. echo "${ECHO_T}$PYGTK_LIBS" >&6
  33173.         else
  33174.             PYGTK_CFLAGS=""
  33175.             PYGTK_LIBS=""
  33176.             ## If we have a custom action on failure, don't print errors, but
  33177.             ## do set a variable so people can do so.
  33178.             PYGTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pygtk-2.0 >= 1.99.15"`
  33179.             echo $PYGTK_PKG_ERRORS
  33180.         fi
  33181.  
  33182.  
  33183.  
  33184.      else
  33185.         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  33186.         echo "*** See http://www.freedesktop.org/software/pkgconfig"
  33187.      fi
  33188.   fi
  33189.  
  33190.   if test $succeeded = yes; then
  33191.      :
  33192.   else
  33193.      { { echo "$as_me:$LINENO: error: Library requirements (pygtk-2.0 >= 1.99.15) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
  33194. echo "$as_me: error: Library requirements (pygtk-2.0 >= 1.99.15) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
  33195.    { (exit 1); exit 1; }; }
  33196.   fi
  33197.  
  33198.  
  33199.  
  33200.     PYGIMP_EXTRA_CFLAGS=
  33201.   case " $CFLAGS " in
  33202.   *[\    \ ]-fno-strict-aliasing[\    \ ]*)
  33203.     ;;
  33204.   *)
  33205.     pygimp_save_CFLAGS="$CFLAGS"
  33206.     CFLAGS="$CFLAGS -fno-strict-aliasing"
  33207.     echo "$as_me:$LINENO: checking whether $CC understands -fno-strict-aliasing" >&5
  33208. echo $ECHO_N "checking whether $CC understands -fno-strict-aliasing... $ECHO_C" >&6
  33209.     cat >conftest.$ac_ext <<_ACEOF
  33210. /* confdefs.h.  */
  33211. _ACEOF
  33212. cat confdefs.h >>conftest.$ac_ext
  33213. cat >>conftest.$ac_ext <<_ACEOF
  33214. /* end confdefs.h.  */
  33215.  
  33216. int
  33217. main ()
  33218. {
  33219.  
  33220.   ;
  33221.   return 0;
  33222. }
  33223. _ACEOF
  33224. rm -f conftest.$ac_objext
  33225. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  33226.   (eval $ac_compile) 2>conftest.er1
  33227.   ac_status=$?
  33228.   grep -v '^ *+' conftest.er1 >conftest.err
  33229.   rm -f conftest.er1
  33230.   cat conftest.err >&5
  33231.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33232.   (exit $ac_status); } &&
  33233.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  33234.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  33235.   (eval $ac_try) 2>&5
  33236.   ac_status=$?
  33237.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33238.   (exit $ac_status); }; } &&
  33239.      { ac_try='test -s conftest.$ac_objext'
  33240.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  33241.   (eval $ac_try) 2>&5
  33242.   ac_status=$?
  33243.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33244.   (exit $ac_status); }; }; then
  33245.   pygimp_has_option=yes
  33246. else
  33247.   echo "$as_me: failed program was:" >&5
  33248. sed 's/^/| /' conftest.$ac_ext >&5
  33249.  
  33250. pygimp_has_option=no
  33251. fi
  33252. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  33253.     echo "$as_me:$LINENO: result: $pygimp_has_option" >&5
  33254. echo "${ECHO_T}$pygimp_has_option" >&6
  33255.     CFLAGS="$pygimp_save_CFLAGS"
  33256.     if test "x$pygimp_has_option" = "xyes"; then
  33257.       PYGIMP_EXTRA_CFLAGS="-fno-strict-aliasing"
  33258.     fi
  33259.     ;;
  33260.   esac
  33261.  
  33262. fi
  33263.  
  33264.  
  33265. if test "x$enable_python" != xno; then
  33266.   BUILD_PYTHON_TRUE=
  33267.   BUILD_PYTHON_FALSE='#'
  33268. else
  33269.   BUILD_PYTHON_TRUE='#'
  33270.   BUILD_PYTHON_FALSE=
  33271. fi
  33272.  
  33273.  
  33274.  
  33275. ###########################################################
  33276. # Some plug-ins don't build on Win32, others are Win32-only
  33277. ###########################################################
  33278.  
  33279. if test x"$os_win32" = xyes; then
  33280.   WINCLIPBOARD='winclipboard$(EXEEXT)'
  33281.   WINPRINT='winprint$(EXEEXT)'
  33282. else
  33283.   MAIL='mail$(EXEEXT)'
  33284.   SCREENSHOT='screenshot$(EXEEXT)'
  33285.   URL='url$(EXEEXT)'
  33286. fi
  33287.  
  33288.  
  33289.  
  33290.  
  33291.  
  33292.  
  33293.  
  33294.  
  33295.  
  33296. ############################################################
  33297. # Check for Mac OS X TWAIN framework (can't build on Darwin)
  33298. ############################################################
  33299.  
  33300. echo "$as_me:$LINENO: checking checking for Mac OS X TWAIN support" >&5
  33301. echo $ECHO_N "checking checking for Mac OS X TWAIN support... $ECHO_C" >&6
  33302. cat >conftest.$ac_ext <<_ACEOF
  33303. /* confdefs.h.  */
  33304. _ACEOF
  33305. cat confdefs.h >>conftest.$ac_ext
  33306. cat >>conftest.$ac_ext <<_ACEOF
  33307. /* end confdefs.h.  */
  33308.  
  33309. #include <Carbon/Carbon.h>
  33310. #include <TWAIN/TWAIN.h>
  33311.  
  33312. _ACEOF
  33313. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  33314.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  33315.   ac_status=$?
  33316.   grep -v '^ *+' conftest.er1 >conftest.err
  33317.   rm -f conftest.er1
  33318.   cat conftest.err >&5
  33319.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33320.   (exit $ac_status); } >/dev/null; then
  33321.   if test -s conftest.err; then
  33322.     ac_cpp_err=$ac_c_preproc_warn_flag
  33323.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  33324.   else
  33325.     ac_cpp_err=
  33326.   fi
  33327. else
  33328.   ac_cpp_err=yes
  33329. fi
  33330. if test -z "$ac_cpp_err"; then
  33331.   twain_ok=yes
  33332. else
  33333.   echo "$as_me: failed program was:" >&5
  33334. sed 's/^/| /' conftest.$ac_ext >&5
  33335.  
  33336.   twain_ok=no
  33337. fi
  33338. rm -f conftest.err conftest.$ac_ext
  33339. echo "$as_me:$LINENO: result: $twain_ok" >&5
  33340. echo "${ECHO_T}$twain_ok" >&6
  33341.  
  33342.  
  33343. if test x$twain_ok = xyes; then
  33344.   HAVE_MAC_TWAIN_TRUE=
  33345.   HAVE_MAC_TWAIN_FALSE='#'
  33346. else
  33347.   HAVE_MAC_TWAIN_TRUE='#'
  33348.   HAVE_MAC_TWAIN_FALSE=
  33349. fi
  33350.  
  33351.  
  33352.  
  33353. ##########################################################
  33354. # Determine where to install the desktop & mime info files
  33355. ##########################################################
  33356.  
  33357.  
  33358. # Check whether --with-desktop-dir or --without-desktop-dir was given.
  33359. if test "${with_desktop_dir+set}" = set; then
  33360.   withval="$with_desktop_dir"
  33361.  
  33362. fi;
  33363.  
  33364. if test "x$with_desktop_dir" != x; then
  33365.   DESKTOP_DATADIR=$with_desktop_dir
  33366. else
  33367.   DESKTOP_DATADIR="$datadir"
  33368. fi
  33369.  
  33370.  
  33371.  
  33372. if test "x$with_desktop_dir" != xno; then
  33373.   DESKTOP_DATADIR_TRUE=
  33374.   DESKTOP_DATADIR_FALSE='#'
  33375. else
  33376.   DESKTOP_DATADIR_TRUE='#'
  33377.   DESKTOP_DATADIR_FALSE=
  33378. fi
  33379.  
  33380.  
  33381.  
  33382.  
  33383. #####################
  33384. # Check for XML tools
  33385. #####################
  33386.  
  33387. # Extract the first word of "xmllint", so it can be a program name with args.
  33388. set dummy xmllint; ac_word=$2
  33389. echo "$as_me:$LINENO: checking for $ac_word" >&5
  33390. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  33391. if test "${ac_cv_path_XMLLINT+set}" = set; then
  33392.   echo $ECHO_N "(cached) $ECHO_C" >&6
  33393. else
  33394.   case $XMLLINT in
  33395.   [\\/]* | ?:[\\/]*)
  33396.   ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
  33397.   ;;
  33398.   *)
  33399.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  33400. for as_dir in $PATH
  33401. do
  33402.   IFS=$as_save_IFS
  33403.   test -z "$as_dir" && as_dir=.
  33404.   for ac_exec_ext in '' $ac_executable_extensions; do
  33405.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  33406.     ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
  33407.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  33408.     break 2
  33409.   fi
  33410. done
  33411. done
  33412.  
  33413.   test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="no"
  33414.   ;;
  33415. esac
  33416. fi
  33417. XMLLINT=$ac_cv_path_XMLLINT
  33418.  
  33419. if test -n "$XMLLINT"; then
  33420.   echo "$as_me:$LINENO: result: $XMLLINT" >&5
  33421. echo "${ECHO_T}$XMLLINT" >&6
  33422. else
  33423.   echo "$as_me:$LINENO: result: no" >&5
  33424. echo "${ECHO_T}no" >&6
  33425. fi
  33426.  
  33427.  
  33428.  
  33429. if test "x$XMLLINT" != "xno"; then
  33430.   HAVE_XMLLINT_TRUE=
  33431.   HAVE_XMLLINT_FALSE='#'
  33432. else
  33433.   HAVE_XMLLINT_TRUE='#'
  33434.   HAVE_XMLLINT_FALSE=
  33435. fi
  33436.  
  33437.  
  33438. # Extract the first word of "xsltproc", so it can be a program name with args.
  33439. set dummy xsltproc; ac_word=$2
  33440. echo "$as_me:$LINENO: checking for $ac_word" >&5
  33441. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  33442. if test "${ac_cv_path_XSLTPROC+set}" = set; then
  33443.   echo $ECHO_N "(cached) $ECHO_C" >&6
  33444. else
  33445.   case $XSLTPROC in
  33446.   [\\/]* | ?:[\\/]*)
  33447.   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
  33448.   ;;
  33449.   *)
  33450.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  33451. for as_dir in $PATH
  33452. do
  33453.   IFS=$as_save_IFS
  33454.   test -z "$as_dir" && as_dir=.
  33455.   for ac_exec_ext in '' $ac_executable_extensions; do
  33456.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  33457.     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
  33458.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  33459.     break 2
  33460.   fi
  33461. done
  33462. done
  33463.  
  33464.   test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="no"
  33465.   ;;
  33466. esac
  33467. fi
  33468. XSLTPROC=$ac_cv_path_XSLTPROC
  33469.  
  33470. if test -n "$XSLTPROC"; then
  33471.   echo "$as_me:$LINENO: result: $XSLTPROC" >&5
  33472. echo "${ECHO_T}$XSLTPROC" >&6
  33473. else
  33474.   echo "$as_me:$LINENO: result: no" >&5
  33475. echo "${ECHO_T}no" >&6
  33476. fi
  33477.  
  33478.  
  33479.  
  33480. if test "x$XSLTPROC" != "xno"; then
  33481.   HAVE_XSLTPROC_TRUE=
  33482.   HAVE_XSLTPROC_FALSE='#'
  33483. else
  33484.   HAVE_XSLTPROC_TRUE='#'
  33485.   HAVE_XSLTPROC_FALSE=
  33486. fi
  33487.  
  33488.  
  33489.  
  33490. ######################################
  33491. # Checks for gtk-doc and docbook-tools
  33492. ######################################
  33493.  
  33494.  
  33495.  
  33496. # Check whether --with-html-dir or --without-html-dir was given.
  33497. if test "${with_html_dir+set}" = set; then
  33498.   withval="$with_html_dir"
  33499.  
  33500. else
  33501.   with_html_dir='${datadir}/gtk-doc/html'
  33502. fi;
  33503.   HTML_DIR="$with_html_dir"
  33504.  
  33505.  
  33506.     # Check whether --enable-gtk-doc or --disable-gtk-doc was given.
  33507. if test "${enable_gtk_doc+set}" = set; then
  33508.   enableval="$enable_gtk_doc"
  33509.  
  33510. else
  33511.   enable_gtk_doc=no
  33512. fi;
  33513.  
  33514.   have_gtk_doc=no
  33515.   if test x$enable_gtk_doc = xyes; then
  33516.     if test -z "$PKG_CONFIG"; then
  33517.       # Extract the first word of "pkg-config", so it can be a program name with args.
  33518. set dummy pkg-config; ac_word=$2
  33519. echo "$as_me:$LINENO: checking for $ac_word" >&5
  33520. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  33521. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  33522.   echo $ECHO_N "(cached) $ECHO_C" >&6
  33523. else
  33524.   case $PKG_CONFIG in
  33525.   [\\/]* | ?:[\\/]*)
  33526.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  33527.   ;;
  33528.   *)
  33529.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  33530. for as_dir in $PATH
  33531. do
  33532.   IFS=$as_save_IFS
  33533.   test -z "$as_dir" && as_dir=.
  33534.   for ac_exec_ext in '' $ac_executable_extensions; do
  33535.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  33536.     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  33537.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  33538.     break 2
  33539.   fi
  33540. done
  33541. done
  33542.  
  33543.   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  33544.   ;;
  33545. esac
  33546. fi
  33547. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  33548.  
  33549. if test -n "$PKG_CONFIG"; then
  33550.   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  33551. echo "${ECHO_T}$PKG_CONFIG" >&6
  33552. else
  33553.   echo "$as_me:$LINENO: result: no" >&5
  33554. echo "${ECHO_T}no" >&6
  33555. fi
  33556.  
  33557.     fi
  33558.     if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
  33559.       have_gtk_doc=yes
  33560.     fi
  33561.  
  33562.   gtk_doc_min_version=1.0
  33563.     if test "$have_gtk_doc" = yes; then
  33564.       echo "$as_me:$LINENO: checking gtk-doc version >= $gtk_doc_min_version" >&5
  33565. echo $ECHO_N "checking gtk-doc version >= $gtk_doc_min_version... $ECHO_C" >&6
  33566.       if $PKG_CONFIG --atleast-version $gtk_doc_min_version gtk-doc; then
  33567.         echo "$as_me:$LINENO: result: yes" >&5
  33568. echo "${ECHO_T}yes" >&6
  33569.       else
  33570.         echo "$as_me:$LINENO: result: no" >&5
  33571. echo "${ECHO_T}no" >&6
  33572.         have_gtk_doc=no
  33573.       fi
  33574.     fi
  33575.  
  33576.     if test "$have_gtk_doc" != yes; then
  33577.       enable_gtk_doc=no
  33578.     fi
  33579.   fi
  33580.  
  33581.  
  33582.  
  33583. if test x$enable_gtk_doc = xyes; then
  33584.   ENABLE_GTK_DOC_TRUE=
  33585.   ENABLE_GTK_DOC_FALSE='#'
  33586. else
  33587.   ENABLE_GTK_DOC_TRUE='#'
  33588.   ENABLE_GTK_DOC_FALSE=
  33589. fi
  33590.  
  33591.  
  33592.  
  33593. if test -n "$LIBTOOL"; then
  33594.   GTK_DOC_USE_LIBTOOL_TRUE=
  33595.   GTK_DOC_USE_LIBTOOL_FALSE='#'
  33596. else
  33597.   GTK_DOC_USE_LIBTOOL_TRUE='#'
  33598.   GTK_DOC_USE_LIBTOOL_FALSE=
  33599. fi
  33600.  
  33601.  
  33602.  
  33603. # Check whether --enable-devel-docs or --disable-devel-docs was given.
  33604. if test "${enable_devel_docs+set}" = set; then
  33605.   enableval="$enable_devel_docs"
  33606.  
  33607. else
  33608.   enable_devel_docs=yes
  33609. fi;
  33610.  
  33611. GIMP_DEVEL_DOCS=devel-docs
  33612. if test x$enable_devel_docs = xno; then
  33613.   enable_gtk_doc=no
  33614.   GIMP_DEVEL_DOCS=
  33615. fi
  33616.  
  33617.  
  33618.  
  33619.  
  33620.  
  33621. if test x$enable_gtk_doc = xyes; then
  33622.   ENABLE_GTK_DOC_TRUE=
  33623.   ENABLE_GTK_DOC_FALSE='#'
  33624. else
  33625.   ENABLE_GTK_DOC_TRUE='#'
  33626.   ENABLE_GTK_DOC_FALSE=
  33627. fi
  33628.  
  33629.  
  33630.  
  33631. #########################################
  33632. # Allow to configure the gimp environment
  33633. #########################################
  33634.  
  33635. # Check whether --enable-default-binary or --disable-default-binary was given.
  33636. if test "${enable_default_binary+set}" = set; then
  33637.   enableval="$enable_default_binary"
  33638.  
  33639. else
  33640.   enable_default_binary=yes
  33641. fi;
  33642.  
  33643.  
  33644.  
  33645. if test x$enable_default_binary = xyes; then
  33646.   DEFAULT_BINARY_TRUE=
  33647.   DEFAULT_BINARY_FALSE='#'
  33648. else
  33649.   DEFAULT_BINARY_TRUE='#'
  33650.   DEFAULT_BINARY_FALSE=
  33651. fi
  33652.  
  33653.  
  33654.  
  33655. # Check whether --enable-gimp-console or --disable-gimp-console was given.
  33656. if test "${enable_gimp_console+set}" = set; then
  33657.   enableval="$enable_gimp_console"
  33658.  
  33659. else
  33660.   enable_gimp_console=no
  33661. fi;
  33662.  
  33663.  
  33664.  
  33665. if test x$enable_gimp_console = xyes; then
  33666.   ENABLE_GIMP_CONSOLE_TRUE=
  33667.   ENABLE_GIMP_CONSOLE_FALSE='#'
  33668. else
  33669.   ENABLE_GIMP_CONSOLE_TRUE='#'
  33670.   ENABLE_GIMP_CONSOLE_FALSE=
  33671. fi
  33672.  
  33673.  
  33674.  
  33675. gimpdir=.gimp-2.2
  33676.  
  33677. # Check whether --with-gimpdir or --without-gimpdir was given.
  33678. if test "${with_gimpdir+set}" = set; then
  33679.   withval="$with_gimpdir"
  33680.   if eval "test x$with_gimpdir != x"; then
  33681.   if eval "test x$with_gimpdir != xyes"; then
  33682.     gimpdir=$with_gimpdir
  33683.   fi
  33684. fi
  33685. fi;
  33686.  
  33687. gimpdatadir="$datadir/$PACKAGE/2.0"
  33688. gimpplugindir="$libdir/$PACKAGE/2.0"
  33689. gimpsysconfdir="$sysconfdir/$PACKAGE/2.0"
  33690.  
  33691. localedir='${prefix}/${DATADIRNAME}/locale'
  33692.  
  33693.  
  33694.  
  33695.  
  33696.  
  33697.  
  33698.  
  33699.  
  33700. ############################
  33701. # Some defines for the build
  33702. ############################
  33703.  
  33704. GIMPINSTALL=
  33705. if test "$INSTALL" = "$ac_install_sh"; then
  33706.   GIMPINSTALL="gimpinstall-2.0"
  33707. fi
  33708.  
  33709.  
  33710.  
  33711.  
  33712. if test x$enable_static = xyes; then
  33713.   STATICLIBS_TRUE=
  33714.   STATICLIBS_FALSE='#'
  33715. else
  33716.   STATICLIBS_TRUE='#'
  33717.   STATICLIBS_FALSE=
  33718. fi
  33719.  
  33720.  
  33721. GIMP_MKENUMS="\$(PERL) \$(top_srcdir)/tools/gimp-mkenums"
  33722.  
  33723.  
  33724.  
  33725. #############################
  33726. # Disable deprecated GIMP API
  33727. #############################
  33728.  
  33729. CPPFLAGS="${CPPFLAGS} -DGIMP_DISABLE_DEPRECATED"
  33730.  
  33731. ##############################################################
  33732. # Default to disable deprecated GTK+ stuff for 2.4.x and 2.6.x
  33733. ##############################################################
  33734.  
  33735. if test "x$have_glib_2_7" != "xyes"; then
  33736.   CPPFLAGS="${CPPFLAGS} -DG_DISABLE_DEPRECATED"
  33737. fi
  33738.  
  33739. if test "x$have_gtk_2_7" != "xyes"; then
  33740.   CPPFLAGS="${CPPFLAGS} -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
  33741. fi
  33742.  
  33743. if test "x$have_pango_1_9" != "xyes"; then
  33744.   CPPFLAGS="${CPPFLAGS} -DPANGO_DISABLE_DEPRECATED"
  33745. fi
  33746.  
  33747. ############################
  33748. # Require multihead safe API
  33749. ############################
  33750.  
  33751. CPPFLAGS="${CPPFLAGS} -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE"
  33752.  
  33753.  
  33754. ##################
  33755. # configure output
  33756. ##################
  33757.  
  33758. GIMP_PLUGINS=plug-ins
  33759. GIMP_MODULES=modules
  33760.  
  33761.  
  33762.  
  33763.           ac_config_commands="$ac_config_commands libgimpbase/gimpversion.h"
  33764.  
  33765.  
  33766.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ac_config_files="$ac_config_files gimptool-win32.c tools/Makefile tools/pdbgen/Makefile regexrepl/Makefile libgimp/Makefile libgimpbase/Makefile libgimpcolor/Makefile libgimpmath/Makefile libgimpmodule/Makefile libgimpthumb/Makefile libgimpwidgets/Makefile app/Makefile app/actions/Makefile app/base/Makefile app/config/Makefile app/core/Makefile app/dialogs/Makefile app/display/Makefile app/file/Makefile app/gui/Makefile app/menus/Makefile app/paint/Makefile app/paint-funcs/Makefile app/composite/Makefile app/pdb/Makefile app/plug-in/Makefile app/text/Makefile app/tools/Makefile app/vectors/Makefile app/widgets/Makefile app/xcf/Makefile plug-ins/Makefile plug-ins/dbbrowser/Makefile plug-ins/script-fu/Makefile plug-ins/script-fu/siod/Makefile plug-ins/script-fu/scripts/Makefile plug-ins/script-fu/scripts/images/Makefile plug-ins/xjt/Makefile plug-ins/FractalExplorer/Makefile plug-ins/FractalExplorer/examples/Makefile plug-ins/Lighting/Makefile plug-ins/Lighting/images/Makefile plug-ins/MapObject/Makefile plug-ins/bmp/Makefile plug-ins/common/Makefile plug-ins/faxg3/Makefile plug-ins/fits/Makefile plug-ins/flame/Makefile plug-ins/gfig/Makefile plug-ins/gfig/gfig-examples/Makefile plug-ins/gfig/images/Makefile plug-ins/gflare/Makefile plug-ins/gflare/gflares/Makefile plug-ins/gfli/Makefile plug-ins/gimpressionist/Makefile plug-ins/gimpressionist/Brushes/Makefile plug-ins/gimpressionist/Paper/Makefile plug-ins/gimpressionist/Presets/Makefile plug-ins/help/Makefile plug-ins/helpbrowser/Makefile plug-ins/ifscompose/Makefile plug-ins/imagemap/Makefile plug-ins/imagemap/images/Makefile plug-ins/maze/Makefile plug-ins/pagecurl/Makefile plug-ins/print/Makefile plug-ins/pygimp/Makefile plug-ins/pygimp/doc/Makefile plug-ins/pygimp/plug-ins/Makefile plug-ins/rcm/Makefile plug-ins/rcm/images/Makefile plug-ins/sel2path/Makefile plug-ins/sgi/Makefile plug-ins/twain/Makefile plug-ins/winicon/Makefile plug-ins/winsnap/Makefile modules/Makefile devel-docs/Makefile devel-docs/app/Makefile devel-docs/app/version devel-docs/libgimp/Makefile devel-docs/libgimp/version devel-docs/libgimpbase/Makefile devel-docs/libgimpbase/version devel-docs/libgimpcolor/Makefile devel-docs/libgimpcolor/version devel-docs/libgimpmath/Makefile devel-docs/libgimpmath/version devel-docs/libgimpmodule/Makefile devel-docs/libgimpmodule/version devel-docs/libgimpthumb/Makefile devel-docs/libgimpthumb/version devel-docs/libgimpwidgets/Makefile devel-docs/libgimpwidgets/version docs/Makefile menus/Makefile tips/Makefile cursors/Makefile themes/Makefile themes/Default/Makefile themes/Default/images/Makefile themes/Default/images/preferences/Makefile themes/Small/Makefile data/Makefile data/environ/Makefile data/misc/Makefile data/misc/gimp.desktop.in data/misc/gimp.keys data/misc/gimp.applications data/images/Makefile data/brushes/Makefile data/gradients/Makefile data/palettes/Makefile data/patterns/Makefile etc/Makefile m4macros/Makefile po/Makefile.in po-libgimp/Makefile.in po-plug-ins/Makefile.in po-script-fu/Makefile.in gimp-zip Makefile"
  33767.  
  33768.  
  33769.                                                                                 ac_config_files="$ac_config_files docs/gimp-2.2.1:docs/gimp.1.in docs/gimprc-2.2.5:docs/gimprc.5.in docs/gimptool-2.0.1:docs/gimptool.1.in docs/gimp-remote-2.2.1:docs/gimp-remote.1.in gimptool-2.0:gimptool-2.0.in gimp-2.0.pc:gimp.pc.in gimpthumb-2.0.pc:gimpthumb.pc.in gimpui-2.0.pc:gimpui.pc.in"
  33770.  
  33771.  
  33772.           ac_config_commands="$ac_config_commands chmod-scripts"
  33773.  
  33774.  
  33775.           ac_config_commands="$ac_config_commands sed-po-makefiles"
  33776.  
  33777.  
  33778. cat >confcache <<\_ACEOF
  33779. # This file is a shell script that caches the results of configure
  33780. # tests run on this system so they can be shared between configure
  33781. # scripts and configure runs, see configure's option --config-cache.
  33782. # It is not useful on other systems.  If it contains results you don't
  33783. # want to keep, you may remove or edit it.
  33784. #
  33785. # config.status only pays attention to the cache file if you give it
  33786. # the --recheck option to rerun configure.
  33787. #
  33788. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  33789. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  33790. # following values.
  33791.  
  33792. _ACEOF
  33793.  
  33794. # The following way of writing the cache mishandles newlines in values,
  33795. # but we know of no workaround that is simple, portable, and efficient.
  33796. # So, don't put newlines in cache variables' values.
  33797. # Ultrix sh set writes to stderr and can't be redirected directly,
  33798. # and sets the high bit in the cache file unless we assign to the vars.
  33799. {
  33800.   (set) 2>&1 |
  33801.     case `(ac_space=' '; set | grep ac_space) 2>&1` in
  33802.     *ac_space=\ *)
  33803.       # `set' does not quote correctly, so add quotes (double-quote
  33804.       # substitution turns \\\\ into \\, and sed turns \\ into \).
  33805.       sed -n \
  33806.     "s/'/'\\\\''/g;
  33807.       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  33808.       ;;
  33809.     *)
  33810.       # `set' quotes correctly as required by POSIX, so do not add quotes.
  33811.       sed -n \
  33812.     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  33813.       ;;
  33814.     esac;
  33815. } |
  33816.   sed '
  33817.      t clear
  33818.      : clear
  33819.      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  33820.      t end
  33821.      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  33822.      : end' >>confcache
  33823. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  33824.   if test -w $cache_file; then
  33825.     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  33826.     cat confcache >$cache_file
  33827.   else
  33828.     echo "not updating unwritable cache $cache_file"
  33829.   fi
  33830. fi
  33831. rm -f confcache
  33832.  
  33833. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  33834. # Let make expand exec_prefix.
  33835. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  33836.  
  33837. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  33838. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  33839. # trailing colons and then remove the whole line if VPATH becomes empty
  33840. # (actually we leave an empty line to preserve line numbers).
  33841. if test "x$srcdir" = x.; then
  33842.   ac_vpsub='/^[     ]*VPATH[     ]*=/{
  33843. s/:*\$(srcdir):*/:/;
  33844. s/:*\${srcdir}:*/:/;
  33845. s/:*@srcdir@:*/:/;
  33846. s/^\([^=]*=[     ]*\):*/\1/;
  33847. s/:*$//;
  33848. s/^[^=]*=[     ]*$//;
  33849. }'
  33850. fi
  33851.  
  33852. DEFS=-DHAVE_CONFIG_H
  33853.  
  33854. ac_libobjs=
  33855. ac_ltlibobjs=
  33856. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  33857.   # 1. Remove the extension, and $U if already installed.
  33858.   ac_i=`echo "$ac_i" |
  33859.      sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  33860.   # 2. Add them.
  33861.   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  33862.   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  33863. done
  33864. LIBOBJS=$ac_libobjs
  33865.  
  33866. LTLIBOBJS=$ac_ltlibobjs
  33867.  
  33868.  
  33869. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  33870.   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  33871. Usually this means the macro was only invoked conditionally." >&5
  33872. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  33873. Usually this means the macro was only invoked conditionally." >&2;}
  33874.    { (exit 1); exit 1; }; }
  33875. fi
  33876. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  33877.   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  33878. Usually this means the macro was only invoked conditionally." >&5
  33879. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  33880. Usually this means the macro was only invoked conditionally." >&2;}
  33881.    { (exit 1); exit 1; }; }
  33882. fi
  33883. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  33884.   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  33885. Usually this means the macro was only invoked conditionally." >&5
  33886. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  33887. Usually this means the macro was only invoked conditionally." >&2;}
  33888.    { (exit 1); exit 1; }; }
  33889. fi
  33890. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  33891.   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  33892. Usually this means the macro was only invoked conditionally." >&5
  33893. echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  33894. Usually this means the macro was only invoked conditionally." >&2;}
  33895.    { (exit 1); exit 1; }; }
  33896. fi
  33897. if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
  33898.   { { echo "$as_me:$LINENO: error: conditional \"PLATFORM_WIN32\" was never defined.
  33899. Usually this means the macro was only invoked conditionally." >&5
  33900. echo "$as_me: error: conditional \"PLATFORM_WIN32\" was never defined.
  33901. Usually this means the macro was only invoked conditionally." >&2;}
  33902.    { (exit 1); exit 1; }; }
  33903. fi
  33904. if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
  33905.   { { echo "$as_me:$LINENO: error: conditional \"OS_WIN32\" was never defined.
  33906. Usually this means the macro was only invoked conditionally." >&5
  33907. echo "$as_me: error: conditional \"OS_WIN32\" was never defined.
  33908. Usually this means the macro was only invoked conditionally." >&2;}
  33909.    { (exit 1); exit 1; }; }
  33910. fi
  33911. if test -z "${OS_UNIX_TRUE}" && test -z "${OS_UNIX_FALSE}"; then
  33912.   { { echo "$as_me:$LINENO: error: conditional \"OS_UNIX\" was never defined.
  33913. Usually this means the macro was only invoked conditionally." >&5
  33914. echo "$as_me: error: conditional \"OS_UNIX\" was never defined.
  33915. Usually this means the macro was only invoked conditionally." >&2;}
  33916.    { (exit 1); exit 1; }; }
  33917. fi
  33918. if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then
  33919.   { { echo "$as_me:$LINENO: error: conditional \"MS_LIB_AVAILABLE\" was never defined.
  33920. Usually this means the macro was only invoked conditionally." >&5
  33921. echo "$as_me: error: conditional \"MS_LIB_AVAILABLE\" was never defined.
  33922. Usually this means the macro was only invoked conditionally." >&2;}
  33923.    { (exit 1); exit 1; }; }
  33924. fi
  33925. if test -z "${HAVE_WINDRES_TRUE}" && test -z "${HAVE_WINDRES_FALSE}"; then
  33926.   { { echo "$as_me:$LINENO: error: conditional \"HAVE_WINDRES\" was never defined.
  33927. Usually this means the macro was only invoked conditionally." >&5
  33928. echo "$as_me: error: conditional \"HAVE_WINDRES\" was never defined.
  33929. Usually this means the macro was only invoked conditionally." >&2;}
  33930.    { (exit 1); exit 1; }; }
  33931. fi
  33932.  
  33933.  
  33934.         mv -f po/POTFILES po/POTFILES.tmp
  33935.         sed -e '/\[encoding.*\]/d' -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
  33936.         rm -f po/POTFILES.tmp
  33937.  
  33938.  
  33939. if test -z "${HAVE_GLIBC_REGEX_TRUE}" && test -z "${HAVE_GLIBC_REGEX_FALSE}"; then
  33940.   { { echo "$as_me:$LINENO: error: conditional \"HAVE_GLIBC_REGEX\" was never defined.
  33941. Usually this means the macro was only invoked conditionally." >&5
  33942. echo "$as_me: error: conditional \"HAVE_GLIBC_REGEX\" was never defined.
  33943. Usually this means the macro was only invoked conditionally." >&2;}
  33944.    { (exit 1); exit 1; }; }
  33945. fi
  33946. if test -z "${BUILD_XJT_TRUE}" && test -z "${BUILD_XJT_FALSE}"; then
  33947.   { { echo "$as_me:$LINENO: error: conditional \"BUILD_XJT\" was never defined.
  33948. Usually this means the macro was only invoked conditionally." >&5
  33949. echo "$as_me: error: conditional \"BUILD_XJT\" was never defined.
  33950. Usually this means the macro was only invoked conditionally." >&2;}
  33951.    { (exit 1); exit 1; }; }
  33952. fi
  33953. if test -z "${BUILD_HELPBROWSER_TRUE}" && test -z "${BUILD_HELPBROWSER_FALSE}"; then
  33954.   { { echo "$as_me:$LINENO: error: conditional \"BUILD_HELPBROWSER\" was never defined.
  33955. Usually this means the macro was only invoked conditionally." >&5
  33956. echo "$as_me: error: conditional \"BUILD_HELPBROWSER\" was never defined.
  33957. Usually this means the macro was only invoked conditionally." >&2;}
  33958.    { (exit 1); exit 1; }; }
  33959. fi
  33960. if test -z "${BUILD_PRINT_TRUE}" && test -z "${BUILD_PRINT_FALSE}"; then
  33961.   { { echo "$as_me:$LINENO: error: conditional \"BUILD_PRINT\" was never defined.
  33962. Usually this means the macro was only invoked conditionally." >&5
  33963. echo "$as_me: error: conditional \"BUILD_PRINT\" was never defined.
  33964. Usually this means the macro was only invoked conditionally." >&2;}
  33965.    { (exit 1); exit 1; }; }
  33966. fi
  33967. if test -z "${HAVE_LCMS_TRUE}" && test -z "${HAVE_LCMS_FALSE}"; then
  33968.   { { echo "$as_me:$LINENO: error: conditional \"HAVE_LCMS\" was never defined.
  33969. Usually this means the macro was only invoked conditionally." >&5
  33970. echo "$as_me: error: conditional \"HAVE_LCMS\" was never defined.
  33971. Usually this means the macro was only invoked conditionally." >&2;}
  33972.    { (exit 1); exit 1; }; }
  33973. fi
  33974. if test -z "${HAVE_LINUX_INPUT_TRUE}" && test -z "${HAVE_LINUX_INPUT_FALSE}"; then
  33975.   { { echo "$as_me:$LINENO: error: conditional \"HAVE_LINUX_INPUT\" was never defined.
  33976. Usually this means the macro was only invoked conditionally." >&5
  33977. echo "$as_me: error: conditional \"HAVE_LINUX_INPUT\" was never defined.
  33978. Usually this means the macro was only invoked conditionally." >&2;}
  33979.    { (exit 1); exit 1; }; }
  33980. fi
  33981. if test -z "${WITH_PDBGEN_TRUE}" && test -z "${WITH_PDBGEN_FALSE}"; then
  33982.   { { echo "$as_me:$LINENO: error: conditional \"WITH_PDBGEN\" was never defined.
  33983. Usually this means the macro was only invoked conditionally." >&5
  33984. echo "$as_me: error: conditional \"WITH_PDBGEN\" was never defined.
  33985. Usually this means the macro was only invoked conditionally." >&2;}
  33986.    { (exit 1); exit 1; }; }
  33987. fi
  33988. if test -z "${BUILD_PYTHON_TRUE}" && test -z "${BUILD_PYTHON_FALSE}"; then
  33989.   { { echo "$as_me:$LINENO: error: conditional \"BUILD_PYTHON\" was never defined.
  33990. Usually this means the macro was only invoked conditionally." >&5
  33991. echo "$as_me: error: conditional \"BUILD_PYTHON\" was never defined.
  33992. Usually this means the macro was only invoked conditionally." >&2;}
  33993.    { (exit 1); exit 1; }; }
  33994. fi
  33995. if test -z "${HAVE_MAC_TWAIN_TRUE}" && test -z "${HAVE_MAC_TWAIN_FALSE}"; then
  33996.   { { echo "$as_me:$LINENO: error: conditional \"HAVE_MAC_TWAIN\" was never defined.
  33997. Usually this means the macro was only invoked conditionally." >&5
  33998. echo "$as_me: error: conditional \"HAVE_MAC_TWAIN\" was never defined.
  33999. Usually this means the macro was only invoked conditionally." >&2;}
  34000.    { (exit 1); exit 1; }; }
  34001. fi
  34002. if test -z "${DESKTOP_DATADIR_TRUE}" && test -z "${DESKTOP_DATADIR_FALSE}"; then
  34003.   { { echo "$as_me:$LINENO: error: conditional \"DESKTOP_DATADIR\" was never defined.
  34004. Usually this means the macro was only invoked conditionally." >&5
  34005. echo "$as_me: error: conditional \"DESKTOP_DATADIR\" was never defined.
  34006. Usually this means the macro was only invoked conditionally." >&2;}
  34007.    { (exit 1); exit 1; }; }
  34008. fi
  34009. if test -z "${HAVE_XMLLINT_TRUE}" && test -z "${HAVE_XMLLINT_FALSE}"; then
  34010.   { { echo "$as_me:$LINENO: error: conditional \"HAVE_XMLLINT\" was never defined.
  34011. Usually this means the macro was only invoked conditionally." >&5
  34012. echo "$as_me: error: conditional \"HAVE_XMLLINT\" was never defined.
  34013. Usually this means the macro was only invoked conditionally." >&2;}
  34014.    { (exit 1); exit 1; }; }
  34015. fi
  34016. if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
  34017.   { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTPROC\" was never defined.
  34018. Usually this means the macro was only invoked conditionally." >&5
  34019. echo "$as_me: error: conditional \"HAVE_XSLTPROC\" was never defined.
  34020. Usually this means the macro was only invoked conditionally." >&2;}
  34021.    { (exit 1); exit 1; }; }
  34022. fi
  34023. if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
  34024.   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
  34025. Usually this means the macro was only invoked conditionally." >&5
  34026. echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
  34027. Usually this means the macro was only invoked conditionally." >&2;}
  34028.    { (exit 1); exit 1; }; }
  34029. fi
  34030. if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
  34031.   { { echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
  34032. Usually this means the macro was only invoked conditionally." >&5
  34033. echo "$as_me: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
  34034. Usually this means the macro was only invoked conditionally." >&2;}
  34035.    { (exit 1); exit 1; }; }
  34036. fi
  34037. if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
  34038.   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
  34039. Usually this means the macro was only invoked conditionally." >&5
  34040. echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
  34041. Usually this means the macro was only invoked conditionally." >&2;}
  34042.    { (exit 1); exit 1; }; }
  34043. fi
  34044. if test -z "${DEFAULT_BINARY_TRUE}" && test -z "${DEFAULT_BINARY_FALSE}"; then
  34045.   { { echo "$as_me:$LINENO: error: conditional \"DEFAULT_BINARY\" was never defined.
  34046. Usually this means the macro was only invoked conditionally." >&5
  34047. echo "$as_me: error: conditional \"DEFAULT_BINARY\" was never defined.
  34048. Usually this means the macro was only invoked conditionally." >&2;}
  34049.    { (exit 1); exit 1; }; }
  34050. fi
  34051. if test -z "${ENABLE_GIMP_CONSOLE_TRUE}" && test -z "${ENABLE_GIMP_CONSOLE_FALSE}"; then
  34052.   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GIMP_CONSOLE\" was never defined.
  34053. Usually this means the macro was only invoked conditionally." >&5
  34054. echo "$as_me: error: conditional \"ENABLE_GIMP_CONSOLE\" was never defined.
  34055. Usually this means the macro was only invoked conditionally." >&2;}
  34056.    { (exit 1); exit 1; }; }
  34057. fi
  34058. if test -z "${STATICLIBS_TRUE}" && test -z "${STATICLIBS_FALSE}"; then
  34059.   { { echo "$as_me:$LINENO: error: conditional \"STATICLIBS\" was never defined.
  34060. Usually this means the macro was only invoked conditionally." >&5
  34061. echo "$as_me: error: conditional \"STATICLIBS\" was never defined.
  34062. Usually this means the macro was only invoked conditionally." >&2;}
  34063.    { (exit 1); exit 1; }; }
  34064. fi
  34065.  
  34066. : ${CONFIG_STATUS=./config.status}
  34067. ac_clean_files_save=$ac_clean_files
  34068. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  34069. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  34070. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  34071. cat >$CONFIG_STATUS <<_ACEOF
  34072. #! $SHELL
  34073. # Generated by $as_me.
  34074. # Run this file to recreate the current configuration.
  34075. # Compiler output produced by configure, useful for debugging
  34076. # configure, is in config.log if it exists.
  34077.  
  34078. debug=false
  34079. ac_cs_recheck=false
  34080. ac_cs_silent=false
  34081. SHELL=\${CONFIG_SHELL-$SHELL}
  34082. _ACEOF
  34083.  
  34084. cat >>$CONFIG_STATUS <<\_ACEOF
  34085. ## --------------------- ##
  34086. ## M4sh Initialization.  ##
  34087. ## --------------------- ##
  34088.  
  34089. # Be Bourne compatible
  34090. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  34091.   emulate sh
  34092.   NULLCMD=:
  34093.   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  34094.   # is contrary to our usage.  Disable this feature.
  34095.   alias -g '${1+"$@"}'='"$@"'
  34096. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  34097.   set -o posix
  34098. fi
  34099. DUALCASE=1; export DUALCASE # for MKS sh
  34100.  
  34101. # Support unset when possible.
  34102. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  34103.   as_unset=unset
  34104. else
  34105.   as_unset=false
  34106. fi
  34107.  
  34108.  
  34109. # Work around bugs in pre-3.0 UWIN ksh.
  34110. $as_unset ENV MAIL MAILPATH
  34111. PS1='$ '
  34112. PS2='> '
  34113. PS4='+ '
  34114.  
  34115. # NLS nuisances.
  34116. for as_var in \
  34117.   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  34118.   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  34119.   LC_TELEPHONE LC_TIME
  34120. do
  34121.   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  34122.     eval $as_var=C; export $as_var
  34123.   else
  34124.     $as_unset $as_var
  34125.   fi
  34126. done
  34127.  
  34128. # Required to use basename.
  34129. if expr a : '\(a\)' >/dev/null 2>&1; then
  34130.   as_expr=expr
  34131. else
  34132.   as_expr=false
  34133. fi
  34134.  
  34135. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  34136.   as_basename=basename
  34137. else
  34138.   as_basename=false
  34139. fi
  34140.  
  34141.  
  34142. # Name of the executable.
  34143. as_me=`$as_basename "$0" ||
  34144. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  34145.      X"$0" : 'X\(//\)$' \| \
  34146.      X"$0" : 'X\(/\)$' \| \
  34147.      .     : '\(.\)' 2>/dev/null ||
  34148. echo X/"$0" |
  34149.     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  34150.         /^X\/\(\/\/\)$/{ s//\1/; q; }
  34151.         /^X\/\(\/\).*/{ s//\1/; q; }
  34152.         s/.*/./; q'`
  34153.  
  34154.  
  34155. # PATH needs CR, and LINENO needs CR and PATH.
  34156. # Avoid depending upon Character Ranges.
  34157. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  34158. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  34159. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  34160. as_cr_digits='0123456789'
  34161. as_cr_alnum=$as_cr_Letters$as_cr_digits
  34162.  
  34163. # The user is always right.
  34164. if test "${PATH_SEPARATOR+set}" != set; then
  34165.   echo "#! /bin/sh" >conf$$.sh
  34166.   echo  "exit 0"   >>conf$$.sh
  34167.   chmod +x conf$$.sh
  34168.   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  34169.     PATH_SEPARATOR=';'
  34170.   else
  34171.     PATH_SEPARATOR=:
  34172.   fi
  34173.   rm -f conf$$.sh
  34174. fi
  34175.  
  34176.  
  34177.   as_lineno_1=$LINENO
  34178.   as_lineno_2=$LINENO
  34179.   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  34180.   test "x$as_lineno_1" != "x$as_lineno_2" &&
  34181.   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
  34182.   # Find who we are.  Look in the path if we contain no path at all
  34183.   # relative or not.
  34184.   case $0 in
  34185.     *[\\/]* ) as_myself=$0 ;;
  34186.     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  34187. for as_dir in $PATH
  34188. do
  34189.   IFS=$as_save_IFS
  34190.   test -z "$as_dir" && as_dir=.
  34191.   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  34192. done
  34193.  
  34194.        ;;
  34195.   esac
  34196.   # We did not find ourselves, most probably we were run as `sh COMMAND'
  34197.   # in which case we are not to be found in the path.
  34198.   if test "x$as_myself" = x; then
  34199.     as_myself=$0
  34200.   fi
  34201.   if test ! -f "$as_myself"; then
  34202.     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  34203. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  34204.    { (exit 1); exit 1; }; }
  34205.   fi
  34206.   case $CONFIG_SHELL in
  34207.   '')
  34208.     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  34209. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  34210. do
  34211.   IFS=$as_save_IFS
  34212.   test -z "$as_dir" && as_dir=.
  34213.   for as_base in sh bash ksh sh5; do
  34214.      case $as_dir in
  34215.      /*)
  34216.        if ("$as_dir/$as_base" -c '
  34217.   as_lineno_1=$LINENO
  34218.   as_lineno_2=$LINENO
  34219.   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  34220.   test "x$as_lineno_1" != "x$as_lineno_2" &&
  34221.   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
  34222.          $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  34223.          $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  34224.          CONFIG_SHELL=$as_dir/$as_base
  34225.          export CONFIG_SHELL
  34226.          exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  34227.        fi;;
  34228.      esac
  34229.        done
  34230. done
  34231. ;;
  34232.   esac
  34233.  
  34234.   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  34235.   # uniformly replaced by the line number.  The first 'sed' inserts a
  34236.   # line-number line before each line; the second 'sed' does the real
  34237.   # work.  The second script uses 'N' to pair each line-number line
  34238.   # with the numbered line, and appends trailing '-' during
  34239.   # substitution so that $LINENO is not a special case at line end.
  34240.   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  34241.   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
  34242.   sed '=' <$as_myself |
  34243.     sed '
  34244.       N
  34245.       s,$,-,
  34246.       : loop
  34247.       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  34248.       t loop
  34249.       s,-$,,
  34250.       s,^['$as_cr_digits']*\n,,
  34251.     ' >$as_me.lineno &&
  34252.   chmod +x $as_me.lineno ||
  34253.     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  34254. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  34255.    { (exit 1); exit 1; }; }
  34256.  
  34257.   # Don't try to exec as it changes $[0], causing all sort of problems
  34258.   # (the dirname of $[0] is not the place where we might find the
  34259.   # original and so on.  Autoconf is especially sensible to this).
  34260.   . ./$as_me.lineno
  34261.   # Exit status is that of the last command.
  34262.   exit
  34263. }
  34264.  
  34265.  
  34266. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  34267.   *c*,-n*) ECHO_N= ECHO_C='
  34268. ' ECHO_T='    ' ;;
  34269.   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  34270.   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
  34271. esac
  34272.  
  34273. if expr a : '\(a\)' >/dev/null 2>&1; then
  34274.   as_expr=expr
  34275. else
  34276.   as_expr=false
  34277. fi
  34278.  
  34279. rm -f conf$$ conf$$.exe conf$$.file
  34280. echo >conf$$.file
  34281. if ln -s conf$$.file conf$$ 2>/dev/null; then
  34282.   # We could just check for DJGPP; but this test a) works b) is more generic
  34283.   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  34284.   if test -f conf$$.exe; then
  34285.     # Don't use ln at all; we don't have any links
  34286.     as_ln_s='cp -p'
  34287.   else
  34288.     as_ln_s='ln -s'
  34289.   fi
  34290. elif ln conf$$.file conf$$ 2>/dev/null; then
  34291.   as_ln_s=ln
  34292. else
  34293.   as_ln_s='cp -p'
  34294. fi
  34295. rm -f conf$$ conf$$.exe conf$$.file
  34296.  
  34297. if mkdir -p . 2>/dev/null; then
  34298.   as_mkdir_p=:
  34299. else
  34300.   test -d ./-p && rmdir ./-p
  34301.   as_mkdir_p=false
  34302. fi
  34303.  
  34304. as_executable_p="test -f"
  34305.  
  34306. # Sed expression to map a string onto a valid CPP name.
  34307. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  34308.  
  34309. # Sed expression to map a string onto a valid variable name.
  34310. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  34311.  
  34312.  
  34313. # IFS
  34314. # We need space, tab and new line, in precisely that order.
  34315. as_nl='
  34316. '
  34317. IFS="     $as_nl"
  34318.  
  34319. # CDPATH.
  34320. $as_unset CDPATH
  34321.  
  34322. exec 6>&1
  34323.  
  34324. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  34325. # report actual input values of CONFIG_FILES etc. instead of their
  34326. # values after options handling.  Logging --version etc. is OK.
  34327. exec 5>>config.log
  34328. {
  34329.   echo
  34330.   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  34331. ## Running $as_me. ##
  34332. _ASBOX
  34333. } >&5
  34334. cat >&5 <<_CSEOF
  34335.  
  34336. This file was extended by GIMP $as_me 2.2.0, which was
  34337. generated by GNU Autoconf 2.59.  Invocation command line was
  34338.  
  34339.   CONFIG_FILES    = $CONFIG_FILES
  34340.   CONFIG_HEADERS  = $CONFIG_HEADERS
  34341.   CONFIG_LINKS    = $CONFIG_LINKS
  34342.   CONFIG_COMMANDS = $CONFIG_COMMANDS
  34343.   $ $0 $@
  34344.  
  34345. _CSEOF
  34346. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  34347. echo >&5
  34348. _ACEOF
  34349.  
  34350. # Files that config.status was made for.
  34351. if test -n "$ac_config_files"; then
  34352.   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  34353. fi
  34354.  
  34355. if test -n "$ac_config_headers"; then
  34356.   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  34357. fi
  34358.  
  34359. if test -n "$ac_config_links"; then
  34360.   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  34361. fi
  34362.  
  34363. if test -n "$ac_config_commands"; then
  34364.   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  34365. fi
  34366.  
  34367. cat >>$CONFIG_STATUS <<\_ACEOF
  34368.  
  34369. ac_cs_usage="\
  34370. \`$as_me' instantiates files from templates according to the
  34371. current configuration.
  34372.  
  34373. Usage: $0 [OPTIONS] [FILE]...
  34374.  
  34375.   -h, --help       print this help, then exit
  34376.   -V, --version    print version number, then exit
  34377.   -q, --quiet      do not print progress messages
  34378.   -d, --debug      don't remove temporary files
  34379.       --recheck    update $as_me by reconfiguring in the same conditions
  34380.   --file=FILE[:TEMPLATE]
  34381.            instantiate the configuration file FILE
  34382.   --header=FILE[:TEMPLATE]
  34383.            instantiate the configuration header FILE
  34384.  
  34385. Configuration files:
  34386. $config_files
  34387.  
  34388. Configuration headers:
  34389. $config_headers
  34390.  
  34391. Configuration commands:
  34392. $config_commands
  34393.  
  34394. Report bugs to <bug-autoconf@gnu.org>."
  34395. _ACEOF
  34396.  
  34397. cat >>$CONFIG_STATUS <<_ACEOF
  34398. ac_cs_version="\\
  34399. GIMP config.status 2.2.0
  34400. configured by $0, generated by GNU Autoconf 2.59,
  34401.   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  34402.  
  34403. Copyright (C) 2003 Free Software Foundation, Inc.
  34404. This config.status script is free software; the Free Software Foundation
  34405. gives unlimited permission to copy, distribute and modify it."
  34406. srcdir=$srcdir
  34407. INSTALL="$INSTALL"
  34408. _ACEOF
  34409.  
  34410. cat >>$CONFIG_STATUS <<\_ACEOF
  34411. # If no file are specified by the user, then we need to provide default
  34412. # value.  By we need to know if files were specified by the user.
  34413. ac_need_defaults=:
  34414. while test $# != 0
  34415. do
  34416.   case $1 in
  34417.   --*=*)
  34418.     ac_option=`expr "x$1" : 'x\([^=]*\)='`
  34419.     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  34420.     ac_shift=:
  34421.     ;;
  34422.   -*)
  34423.     ac_option=$1
  34424.     ac_optarg=$2
  34425.     ac_shift=shift
  34426.     ;;
  34427.   *) # This is not an option, so the user has probably given explicit
  34428.      # arguments.
  34429.      ac_option=$1
  34430.      ac_need_defaults=false;;
  34431.   esac
  34432.  
  34433.   case $ac_option in
  34434.   # Handling of the options.
  34435. _ACEOF
  34436. cat >>$CONFIG_STATUS <<\_ACEOF
  34437.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  34438.     ac_cs_recheck=: ;;
  34439.   --version | --vers* | -V )
  34440.     echo "$ac_cs_version"; exit 0 ;;
  34441.   --he | --h)
  34442.     # Conflict between --help and --header
  34443.     { { echo "$as_me:$LINENO: error: ambiguous option: $1
  34444. Try \`$0 --help' for more information." >&5
  34445. echo "$as_me: error: ambiguous option: $1
  34446. Try \`$0 --help' for more information." >&2;}
  34447.    { (exit 1); exit 1; }; };;
  34448.   --help | --hel | -h )
  34449.     echo "$ac_cs_usage"; exit 0 ;;
  34450.   --debug | --d* | -d )
  34451.     debug=: ;;
  34452.   --file | --fil | --fi | --f )
  34453.     $ac_shift
  34454.     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  34455.     ac_need_defaults=false;;
  34456.   --header | --heade | --head | --hea )
  34457.     $ac_shift
  34458.     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  34459.     ac_need_defaults=false;;
  34460.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  34461.   | -silent | --silent | --silen | --sile | --sil | --si | --s)
  34462.     ac_cs_silent=: ;;
  34463.  
  34464.   # This is an error.
  34465.   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  34466. Try \`$0 --help' for more information." >&5
  34467. echo "$as_me: error: unrecognized option: $1
  34468. Try \`$0 --help' for more information." >&2;}
  34469.    { (exit 1); exit 1; }; } ;;
  34470.  
  34471.   *) ac_config_targets="$ac_config_targets $1" ;;
  34472.  
  34473.   esac
  34474.   shift
  34475. done
  34476.  
  34477. ac_configure_extra_args=
  34478.  
  34479. if $ac_cs_silent; then
  34480.   exec 6>/dev/null
  34481.   ac_configure_extra_args="$ac_configure_extra_args --silent"
  34482. fi
  34483.  
  34484. _ACEOF
  34485. cat >>$CONFIG_STATUS <<_ACEOF
  34486. if \$ac_cs_recheck; then
  34487.   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  34488.   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  34489. fi
  34490.  
  34491. _ACEOF
  34492.  
  34493. cat >>$CONFIG_STATUS <<_ACEOF
  34494. #
  34495. # INIT-COMMANDS section.
  34496. #
  34497.  
  34498. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  34499. INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir=${ac_aux_dir}
  34500. INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' ICONV='${ICONV}'
  34501. MSGFMT='${MSGFMT}' MSGMERGE='${MSGMERGE}' XGETTEXT='${XGETTEXT}'
  34502.  
  34503.  
  34504.   gimp_major_ver=2
  34505.   gimp_minor_ver=2
  34506.   gimp_micro_ver=0
  34507.   gimp_ver=2.2.0
  34508.   gimp_api_ver=2.0
  34509.  
  34510.  
  34511. _ACEOF
  34512.  
  34513.  
  34514.  
  34515. cat >>$CONFIG_STATUS <<\_ACEOF
  34516. for ac_config_target in $ac_config_targets
  34517. do
  34518.   case "$ac_config_target" in
  34519.   # Handling of arguments.
  34520.   "gimptool-win32.c" ) CONFIG_FILES="$CONFIG_FILES gimptool-win32.c" ;;
  34521.   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
  34522.   "tools/pdbgen/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/pdbgen/Makefile" ;;
  34523.   "regexrepl/Makefile" ) CONFIG_FILES="$CONFIG_FILES regexrepl/Makefile" ;;
  34524.   "libgimp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libgimp/Makefile" ;;
  34525.   "libgimpbase/Makefile" ) CONFIG_FILES="$CONFIG_FILES libgimpbase/Makefile" ;;
  34526.   "libgimpcolor/Makefile" ) CONFIG_FILES="$CONFIG_FILES libgimpcolor/Makefile" ;;
  34527.   "libgimpmath/Makefile" ) CONFIG_FILES="$CONFIG_FILES libgimpmath/Makefile" ;;
  34528.   "libgimpmodule/Makefile" ) CONFIG_FILES="$CONFIG_FILES libgimpmodule/Makefile" ;;
  34529.   "libgimpthumb/Makefile" ) CONFIG_FILES="$CONFIG_FILES libgimpthumb/Makefile" ;;
  34530.   "libgimpwidgets/Makefile" ) CONFIG_FILES="$CONFIG_FILES libgimpwidgets/Makefile" ;;
  34531.   "app/Makefile" ) CONFIG_FILES="$CONFIG_FILES app/Makefile" ;;
  34532.   "app/actions/Makefile" ) CONFIG_FILES="$CONFIG_FILES app/actions/Makefile" ;;
  34533.   "app/base/Makefile" ) CONFIG_FILES="$CONFIG_FILES app/base/Makefile" ;;
  34534.   "app/config/Makefile" ) CONFIG_FILES="$CONFIG_FILES app/config/Makefile" ;;
  34535.   "app/core/Makefile" ) CONFIG_FILES="$CONFIG_FILES app/core/Makefile" ;;
  34536.   "app/dialogs/Makefile" ) CONFIG_FILES="$CONFIG_FILES app/dialogs/Makefile" ;;
  34537.   "app/display/Makefile" ) CONFIG_FILES="$CONFIG_FILES app/display/Makefile" ;;
  34538.   "app/file/Makefile" ) CONFIG_FILES="$CONFIG_FILES app/file/Makefile" ;;
  34539.   "app/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES app/gui/Makefile" ;;
  34540.   "app/menus/Makefile" ) CONFIG_FILES="$CONFIG_FILES app/menus/Makefile" ;;
  34541.   "app/paint/Makefile" ) CONFIG_FILES="$CONFIG_FILES app/paint/Makefile" ;;
  34542.   "app/paint-funcs/Makefile" ) CONFIG_FILES="$CONFIG_FILES app/paint-funcs/Makefile" ;;
  34543.   "app/composite/Makefile" ) CONFIG_FILES="$CONFIG_FILES app/composite/Makefile" ;;
  34544.   "app/pdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES app/pdb/Makefile" ;;
  34545.   "app/plug-in/Makefile" ) CONFIG_FILES="$CONFIG_FILES app/plug-in/Makefile" ;;
  34546.   "app/text/Makefile" ) CONFIG_FILES="$CONFIG_FILES app/text/Makefile" ;;
  34547.   "app/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES app/tools/Makefile" ;;
  34548.   "app/vectors/Makefile" ) CONFIG_FILES="$CONFIG_FILES app/vectors/Makefile" ;;
  34549.   "app/widgets/Makefile" ) CONFIG_FILES="$CONFIG_FILES app/widgets/Makefile" ;;
  34550.   "app/xcf/Makefile" ) CONFIG_FILES="$CONFIG_FILES app/xcf/Makefile" ;;
  34551.   "plug-ins/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/Makefile" ;;
  34552.   "plug-ins/dbbrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/dbbrowser/Makefile" ;;
  34553.   "plug-ins/script-fu/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/script-fu/Makefile" ;;
  34554.   "plug-ins/script-fu/siod/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/script-fu/siod/Makefile" ;;
  34555.   "plug-ins/script-fu/scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/script-fu/scripts/Makefile" ;;
  34556.   "plug-ins/script-fu/scripts/images/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/script-fu/scripts/images/Makefile" ;;
  34557.   "plug-ins/xjt/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/xjt/Makefile" ;;
  34558.   "plug-ins/FractalExplorer/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/FractalExplorer/Makefile" ;;
  34559.   "plug-ins/FractalExplorer/examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/FractalExplorer/examples/Makefile" ;;
  34560.   "plug-ins/Lighting/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/Lighting/Makefile" ;;
  34561.   "plug-ins/Lighting/images/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/Lighting/images/Makefile" ;;
  34562.   "plug-ins/MapObject/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/MapObject/Makefile" ;;
  34563.   "plug-ins/bmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/bmp/Makefile" ;;
  34564.   "plug-ins/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/common/Makefile" ;;
  34565.   "plug-ins/faxg3/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/faxg3/Makefile" ;;
  34566.   "plug-ins/fits/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/fits/Makefile" ;;
  34567.   "plug-ins/flame/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/flame/Makefile" ;;
  34568.   "plug-ins/gfig/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/gfig/Makefile" ;;
  34569.   "plug-ins/gfig/gfig-examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/gfig/gfig-examples/Makefile" ;;
  34570.   "plug-ins/gfig/images/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/gfig/images/Makefile" ;;
  34571.   "plug-ins/gflare/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/gflare/Makefile" ;;
  34572.   "plug-ins/gflare/gflares/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/gflare/gflares/Makefile" ;;
  34573.   "plug-ins/gfli/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/gfli/Makefile" ;;
  34574.   "plug-ins/gimpressionist/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/gimpressionist/Makefile" ;;
  34575.   "plug-ins/gimpressionist/Brushes/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/gimpressionist/Brushes/Makefile" ;;
  34576.   "plug-ins/gimpressionist/Paper/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/gimpressionist/Paper/Makefile" ;;
  34577.   "plug-ins/gimpressionist/Presets/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/gimpressionist/Presets/Makefile" ;;
  34578.   "plug-ins/help/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/help/Makefile" ;;
  34579.   "plug-ins/helpbrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/helpbrowser/Makefile" ;;
  34580.   "plug-ins/ifscompose/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/ifscompose/Makefile" ;;
  34581.   "plug-ins/imagemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/imagemap/Makefile" ;;
  34582.   "plug-ins/imagemap/images/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/imagemap/images/Makefile" ;;
  34583.   "plug-ins/maze/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/maze/Makefile" ;;
  34584.   "plug-ins/pagecurl/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/pagecurl/Makefile" ;;
  34585.   "plug-ins/print/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/print/Makefile" ;;
  34586.   "plug-ins/pygimp/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/pygimp/Makefile" ;;
  34587.   "plug-ins/pygimp/doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/pygimp/doc/Makefile" ;;
  34588.   "plug-ins/pygimp/plug-ins/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/pygimp/plug-ins/Makefile" ;;
  34589.   "plug-ins/rcm/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/rcm/Makefile" ;;
  34590.   "plug-ins/rcm/images/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/rcm/images/Makefile" ;;
  34591.   "plug-ins/sel2path/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/sel2path/Makefile" ;;
  34592.   "plug-ins/sgi/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/sgi/Makefile" ;;
  34593.   "plug-ins/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/twain/Makefile" ;;
  34594.   "plug-ins/winicon/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/winicon/Makefile" ;;
  34595.   "plug-ins/winsnap/Makefile" ) CONFIG_FILES="$CONFIG_FILES plug-ins/winsnap/Makefile" ;;
  34596.   "modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
  34597.   "devel-docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES devel-docs/Makefile" ;;
  34598.   "devel-docs/app/Makefile" ) CONFIG_FILES="$CONFIG_FILES devel-docs/app/Makefile" ;;
  34599.   "devel-docs/app/version" ) CONFIG_FILES="$CONFIG_FILES devel-docs/app/version" ;;
  34600.   "devel-docs/libgimp/Makefile" ) CONFIG_FILES="$CONFIG_FILES devel-docs/libgimp/Makefile" ;;
  34601.   "devel-docs/libgimp/version" ) CONFIG_FILES="$CONFIG_FILES devel-docs/libgimp/version" ;;
  34602.   "devel-docs/libgimpbase/Makefile" ) CONFIG_FILES="$CONFIG_FILES devel-docs/libgimpbase/Makefile" ;;
  34603.   "devel-docs/libgimpbase/version" ) CONFIG_FILES="$CONFIG_FILES devel-docs/libgimpbase/version" ;;
  34604.   "devel-docs/libgimpcolor/Makefile" ) CONFIG_FILES="$CONFIG_FILES devel-docs/libgimpcolor/Makefile" ;;
  34605.   "devel-docs/libgimpcolor/version" ) CONFIG_FILES="$CONFIG_FILES devel-docs/libgimpcolor/version" ;;
  34606.   "devel-docs/libgimpmath/Makefile" ) CONFIG_FILES="$CONFIG_FILES devel-docs/libgimpmath/Makefile" ;;
  34607.   "devel-docs/libgimpmath/version" ) CONFIG_FILES="$CONFIG_FILES devel-docs/libgimpmath/version" ;;
  34608.   "devel-docs/libgimpmodule/Makefile" ) CONFIG_FILES="$CONFIG_FILES devel-docs/libgimpmodule/Makefile" ;;
  34609.   "devel-docs/libgimpmodule/version" ) CONFIG_FILES="$CONFIG_FILES devel-docs/libgimpmodule/version" ;;
  34610.   "devel-docs/libgimpthumb/Makefile" ) CONFIG_FILES="$CONFIG_FILES devel-docs/libgimpthumb/Makefile" ;;
  34611.   "devel-docs/libgimpthumb/version" ) CONFIG_FILES="$CONFIG_FILES devel-docs/libgimpthumb/version" ;;
  34612.   "devel-docs/libgimpwidgets/Makefile" ) CONFIG_FILES="$CONFIG_FILES devel-docs/libgimpwidgets/Makefile" ;;
  34613.   "devel-docs/libgimpwidgets/version" ) CONFIG_FILES="$CONFIG_FILES devel-docs/libgimpwidgets/version" ;;
  34614.   "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  34615.   "menus/Makefile" ) CONFIG_FILES="$CONFIG_FILES menus/Makefile" ;;
  34616.   "tips/Makefile" ) CONFIG_FILES="$CONFIG_FILES tips/Makefile" ;;
  34617.   "cursors/Makefile" ) CONFIG_FILES="$CONFIG_FILES cursors/Makefile" ;;
  34618.   "themes/Makefile" ) CONFIG_FILES="$CONFIG_FILES themes/Makefile" ;;
  34619.   "themes/Default/Makefile" ) CONFIG_FILES="$CONFIG_FILES themes/Default/Makefile" ;;
  34620.   "themes/Default/images/Makefile" ) CONFIG_FILES="$CONFIG_FILES themes/Default/images/Makefile" ;;
  34621.   "themes/Default/images/preferences/Makefile" ) CONFIG_FILES="$CONFIG_FILES themes/Default/images/preferences/Makefile" ;;
  34622.   "themes/Small/Makefile" ) CONFIG_FILES="$CONFIG_FILES themes/Small/Makefile" ;;
  34623.   "data/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
  34624.   "data/environ/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/environ/Makefile" ;;
  34625.   "data/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/misc/Makefile" ;;
  34626.   "data/misc/gimp.desktop.in" ) CONFIG_FILES="$CONFIG_FILES data/misc/gimp.desktop.in" ;;
  34627.   "data/misc/gimp.keys" ) CONFIG_FILES="$CONFIG_FILES data/misc/gimp.keys" ;;
  34628.   "data/misc/gimp.applications" ) CONFIG_FILES="$CONFIG_FILES data/misc/gimp.applications" ;;
  34629.   "data/images/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/images/Makefile" ;;
  34630.   "data/brushes/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/brushes/Makefile" ;;
  34631.   "data/gradients/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/gradients/Makefile" ;;
  34632.   "data/palettes/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/palettes/Makefile" ;;
  34633.   "data/patterns/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/patterns/Makefile" ;;
  34634.   "etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
  34635.   "m4macros/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4macros/Makefile" ;;
  34636.   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  34637.   "po-libgimp/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po-libgimp/Makefile.in" ;;
  34638.   "po-plug-ins/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po-plug-ins/Makefile.in" ;;
  34639.   "po-script-fu/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po-script-fu/Makefile.in" ;;
  34640.   "gimp-zip" ) CONFIG_FILES="$CONFIG_FILES gimp-zip" ;;
  34641.   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  34642.   "docs/gimp-2.2.1" ) CONFIG_FILES="$CONFIG_FILES docs/gimp-2.2.1:docs/gimp.1.in" ;;
  34643.   "docs/gimprc-2.2.5" ) CONFIG_FILES="$CONFIG_FILES docs/gimprc-2.2.5:docs/gimprc.5.in" ;;
  34644.   "docs/gimptool-2.0.1" ) CONFIG_FILES="$CONFIG_FILES docs/gimptool-2.0.1:docs/gimptool.1.in" ;;
  34645.   "docs/gimp-remote-2.2.1" ) CONFIG_FILES="$CONFIG_FILES docs/gimp-remote-2.2.1:docs/gimp-remote.1.in" ;;
  34646.   "gimptool-2.0" ) CONFIG_FILES="$CONFIG_FILES gimptool-2.0:gimptool-2.0.in" ;;
  34647.   "gimp-2.0.pc" ) CONFIG_FILES="$CONFIG_FILES gimp-2.0.pc:gimp.pc.in" ;;
  34648.   "gimpthumb-2.0.pc" ) CONFIG_FILES="$CONFIG_FILES gimpthumb-2.0.pc:gimpthumb.pc.in" ;;
  34649.   "gimpui-2.0.pc" ) CONFIG_FILES="$CONFIG_FILES gimpui-2.0.pc:gimpui.pc.in" ;;
  34650.   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  34651.   "intltool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;;
  34652.   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  34653.   "libgimpbase/gimpversion.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libgimpbase/gimpversion.h" ;;
  34654.   "chmod-scripts" ) CONFIG_COMMANDS="$CONFIG_COMMANDS chmod-scripts" ;;
  34655.   "sed-po-makefiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS sed-po-makefiles" ;;
  34656.   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  34657.   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  34658. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  34659.    { (exit 1); exit 1; }; };;
  34660.   esac
  34661. done
  34662.  
  34663. # If the user did not use the arguments to specify the items to instantiate,
  34664. # then the envvar interface is used.  Set only those that are not.
  34665. # We use the long form for the default assignment because of an extremely
  34666. # bizarre bug on SunOS 4.1.3.
  34667. if $ac_need_defaults; then
  34668.   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  34669.   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  34670.   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  34671. fi
  34672.  
  34673. # Have a temporary directory for convenience.  Make it in the build tree
  34674. # simply because there is no reason to put it here, and in addition,
  34675. # creating and moving files from /tmp can sometimes cause problems.
  34676. # Create a temporary directory, and hook for its removal unless debugging.
  34677. $debug ||
  34678. {
  34679.   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  34680.   trap '{ (exit 1); exit 1; }' 1 2 13 15
  34681. }
  34682.  
  34683. # Create a (secure) tmp directory for tmp files.
  34684.  
  34685. {
  34686.   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  34687.   test -n "$tmp" && test -d "$tmp"
  34688. }  ||
  34689. {
  34690.   tmp=./confstat$$-$RANDOM
  34691.   (umask 077 && mkdir $tmp)
  34692. } ||
  34693. {
  34694.    echo "$me: cannot create a temporary directory in ." >&2
  34695.    { (exit 1); exit 1; }
  34696. }
  34697.  
  34698. _ACEOF
  34699.  
  34700. cat >>$CONFIG_STATUS <<_ACEOF
  34701.  
  34702. #
  34703. # CONFIG_FILES section.
  34704. #
  34705.  
  34706. # No need to generate the scripts if there are no CONFIG_FILES.
  34707. # This happens for instance when ./config.status config.h
  34708. if test -n "\$CONFIG_FILES"; then
  34709.   # Protect against being on the right side of a sed subst in config.status.
  34710.   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  34711.    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  34712. s,@SHELL@,$SHELL,;t t
  34713. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  34714. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  34715. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  34716. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  34717. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  34718. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  34719. s,@exec_prefix@,$exec_prefix,;t t
  34720. s,@prefix@,$prefix,;t t
  34721. s,@program_transform_name@,$program_transform_name,;t t
  34722. s,@bindir@,$bindir,;t t
  34723. s,@sbindir@,$sbindir,;t t
  34724. s,@libexecdir@,$libexecdir,;t t
  34725. s,@datadir@,$datadir,;t t
  34726. s,@sysconfdir@,$sysconfdir,;t t
  34727. s,@sharedstatedir@,$sharedstatedir,;t t
  34728. s,@localstatedir@,$localstatedir,;t t
  34729. s,@libdir@,$libdir,;t t
  34730. s,@includedir@,$includedir,;t t
  34731. s,@oldincludedir@,$oldincludedir,;t t
  34732. s,@infodir@,$infodir,;t t
  34733. s,@mandir@,$mandir,;t t
  34734. s,@build_alias@,$build_alias,;t t
  34735. s,@host_alias@,$host_alias,;t t
  34736. s,@target_alias@,$target_alias,;t t
  34737. s,@DEFS@,$DEFS,;t t
  34738. s,@ECHO_C@,$ECHO_C,;t t
  34739. s,@ECHO_N@,$ECHO_N,;t t
  34740. s,@ECHO_T@,$ECHO_T,;t t
  34741. s,@LIBS@,$LIBS,;t t
  34742. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  34743. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  34744. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  34745. s,@CYGPATH_W@,$CYGPATH_W,;t t
  34746. s,@PACKAGE@,$PACKAGE,;t t
  34747. s,@VERSION@,$VERSION,;t t
  34748. s,@ACLOCAL@,$ACLOCAL,;t t
  34749. s,@AUTOCONF@,$AUTOCONF,;t t
  34750. s,@AUTOMAKE@,$AUTOMAKE,;t t
  34751. s,@AUTOHEADER@,$AUTOHEADER,;t t
  34752. s,@MAKEINFO@,$MAKEINFO,;t t
  34753. s,@AMTAR@,$AMTAR,;t t
  34754. s,@install_sh@,$install_sh,;t t
  34755. s,@STRIP@,$STRIP,;t t
  34756. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  34757. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  34758. s,@AWK@,$AWK,;t t
  34759. s,@SET_MAKE@,$SET_MAKE,;t t
  34760. s,@am__leading_dot@,$am__leading_dot,;t t
  34761. s,@GIMP_MAJOR_VERSION@,$GIMP_MAJOR_VERSION,;t t
  34762. s,@GIMP_MINOR_VERSION@,$GIMP_MINOR_VERSION,;t t
  34763. s,@GIMP_MICRO_VERSION@,$GIMP_MICRO_VERSION,;t t
  34764. s,@GIMP_INTERFACE_AGE@,$GIMP_INTERFACE_AGE,;t t
  34765. s,@GIMP_BINARY_AGE@,$GIMP_BINARY_AGE,;t t
  34766. s,@GIMP_API_VERSION@,$GIMP_API_VERSION,;t t
  34767. s,@GIMP_VERSION@,$GIMP_VERSION,;t t
  34768. s,@GIMP_REAL_VERSION@,$GIMP_REAL_VERSION,;t t
  34769. s,@GIMP_APP_VERSION@,$GIMP_APP_VERSION,;t t
  34770. s,@GIMP_PLUGIN_VERSION@,$GIMP_PLUGIN_VERSION,;t t
  34771. s,@GIMP_TOOL_VERSION@,$GIMP_TOOL_VERSION,;t t
  34772. s,@GIMP_PKGCONFIG_VERSION@,$GIMP_PKGCONFIG_VERSION,;t t
  34773. s,@GIMP_DATA_VERSION@,$GIMP_DATA_VERSION,;t t
  34774. s,@GIMP_SYSCONF_VERSION@,$GIMP_SYSCONF_VERSION,;t t
  34775. s,@GIMP_USER_VERSION@,$GIMP_USER_VERSION,;t t
  34776. s,@GIMP_UNSTABLE@,$GIMP_UNSTABLE,;t t
  34777. s,@GIMP_FULL_NAME@,$GIMP_FULL_NAME,;t t
  34778. s,@GIMP_DESKTOP_ICON@,$GIMP_DESKTOP_ICON,;t t
  34779. s,@LT_VERSION_INFO@,$LT_VERSION_INFO,;t t
  34780. s,@LT_CURRENT_MINUS_AGE@,$LT_CURRENT_MINUS_AGE,;t t
  34781. s,@GLIB_REQUIRED_VERSION@,$GLIB_REQUIRED_VERSION,;t t
  34782. s,@GTK_REQUIRED_VERSION@,$GTK_REQUIRED_VERSION,;t t
  34783. s,@GDK_PIXBUF_REQUIRED_VERSION@,$GDK_PIXBUF_REQUIRED_VERSION,;t t
  34784. s,@PANGOFT2_REQUIRED_VERSION@,$PANGOFT2_REQUIRED_VERSION,;t t
  34785. s,@FONTCONFIG_REQUIRED_VERSION@,$FONTCONFIG_REQUIRED_VERSION,;t t
  34786. s,@GTKDOC_REQUIRED_VERSION@,$GTKDOC_REQUIRED_VERSION,;t t
  34787. s,@GTKHTML2_REQUIRED_VERSION@,$GTKHTML2_REQUIRED_VERSION,;t t
  34788. s,@GIMPPRINT_REQUIRED_VERSION@,$GIMPPRINT_REQUIRED_VERSION,;t t
  34789. s,@GIMPPRINT_TOONEW_VERSION@,$GIMPPRINT_TOONEW_VERSION,;t t
  34790. s,@RSVG_REQUIRED_VERSION@,$RSVG_REQUIRED_VERSION,;t t
  34791. s,@WMF_REQUIRED_VERSION@,$WMF_REQUIRED_VERSION,;t t
  34792. s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
  34793. s,@CC@,$CC,;t t
  34794. s,@CFLAGS@,$CFLAGS,;t t
  34795. s,@LDFLAGS@,$LDFLAGS,;t t
  34796. s,@CPPFLAGS@,$CPPFLAGS,;t t
  34797. s,@ac_ct_CC@,$ac_ct_CC,;t t
  34798. s,@EXEEXT@,$EXEEXT,;t t
  34799. s,@OBJEXT@,$OBJEXT,;t t
  34800. s,@DEPDIR@,$DEPDIR,;t t
  34801. s,@am__include@,$am__include,;t t
  34802. s,@am__quote@,$am__quote,;t t
  34803. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  34804. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  34805. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  34806. s,@CCDEPMODE@,$CCDEPMODE,;t t
  34807. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  34808. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  34809. s,@build@,$build,;t t
  34810. s,@build_cpu@,$build_cpu,;t t
  34811. s,@build_vendor@,$build_vendor,;t t
  34812. s,@build_os@,$build_os,;t t
  34813. s,@host@,$host,;t t
  34814. s,@host_cpu@,$host_cpu,;t t
  34815. s,@host_vendor@,$host_vendor,;t t
  34816. s,@host_os@,$host_os,;t t
  34817. s,@EGREP@,$EGREP,;t t
  34818. s,@LN_S@,$LN_S,;t t
  34819. s,@ECHO@,$ECHO,;t t
  34820. s,@AR@,$AR,;t t
  34821. s,@ac_ct_AR@,$ac_ct_AR,;t t
  34822. s,@RANLIB@,$RANLIB,;t t
  34823. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  34824. s,@DLLTOOL@,$DLLTOOL,;t t
  34825. s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
  34826. s,@AS@,$AS,;t t
  34827. s,@ac_ct_AS@,$ac_ct_AS,;t t
  34828. s,@OBJDUMP@,$OBJDUMP,;t t
  34829. s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
  34830. s,@CPP@,$CPP,;t t
  34831. s,@CXX@,$CXX,;t t
  34832. s,@CXXFLAGS@,$CXXFLAGS,;t t
  34833. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  34834. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  34835. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  34836. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  34837. s,@CXXCPP@,$CXXCPP,;t t
  34838. s,@F77@,$F77,;t t
  34839. s,@FFLAGS@,$FFLAGS,;t t
  34840. s,@ac_ct_F77@,$ac_ct_F77,;t t
  34841. s,@LIBTOOL@,$LIBTOOL,;t t
  34842. s,@CCAS@,$CCAS,;t t
  34843. s,@CCASFLAGS@,$CCASFLAGS,;t t
  34844. s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
  34845. s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
  34846. s,@MAINT@,$MAINT,;t t
  34847. s,@PLATFORM_WIN32_TRUE@,$PLATFORM_WIN32_TRUE,;t t
  34848. s,@PLATFORM_WIN32_FALSE@,$PLATFORM_WIN32_FALSE,;t t
  34849. s,@PATHSEP@,$PATHSEP,;t t
  34850. s,@OS_WIN32_TRUE@,$OS_WIN32_TRUE,;t t
  34851. s,@OS_WIN32_FALSE@,$OS_WIN32_FALSE,;t t
  34852. s,@OS_UNIX_TRUE@,$OS_UNIX_TRUE,;t t
  34853. s,@OS_UNIX_FALSE@,$OS_UNIX_FALSE,;t t
  34854. s,@ms_librarian@,$ms_librarian,;t t
  34855. s,@WINDRES@,$WINDRES,;t t
  34856. s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
  34857. s,@MS_LIB_AVAILABLE_TRUE@,$MS_LIB_AVAILABLE_TRUE,;t t
  34858. s,@MS_LIB_AVAILABLE_FALSE@,$MS_LIB_AVAILABLE_FALSE,;t t
  34859. s,@HAVE_WINDRES_TRUE@,$HAVE_WINDRES_TRUE,;t t
  34860. s,@HAVE_WINDRES_FALSE@,$HAVE_WINDRES_FALSE,;t t
  34861. s,@ALLOCA@,$ALLOCA,;t t
  34862. s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t
  34863. s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t
  34864. s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t
  34865. s,@INTLTOOL_PROP_RULE@,$INTLTOOL_PROP_RULE,;t t
  34866. s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t
  34867. s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t
  34868. s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t
  34869. s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t
  34870. s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t
  34871. s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t
  34872. s,@INTLTOOL_XAM_RULE@,$INTLTOOL_XAM_RULE,;t t
  34873. s,@INTLTOOL_KBD_RULE@,$INTLTOOL_KBD_RULE,;t t
  34874. s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t
  34875. s,@INTLTOOL_XML_NOMERGE_RULE@,$INTLTOOL_XML_NOMERGE_RULE,;t t
  34876. s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t
  34877. s,@INTLTOOL_SCHEMAS_RULE@,$INTLTOOL_SCHEMAS_RULE,;t t
  34878. s,@INTLTOOL_THEME_RULE@,$INTLTOOL_THEME_RULE,;t t
  34879. s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t
  34880. s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t
  34881. s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t
  34882. s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t
  34883. s,@ICONV@,$ICONV,;t t
  34884. s,@MSGFMT@,$MSGFMT,;t t
  34885. s,@MSGMERGE@,$MSGMERGE,;t t
  34886. s,@XGETTEXT@,$XGETTEXT,;t t
  34887. s,@mkdir_p@,$mkdir_p,;t t
  34888. s,@USE_NLS@,$USE_NLS,;t t
  34889. s,@GMSGFMT@,$GMSGFMT,;t t
  34890. s,@CATALOGS@,$CATALOGS,;t t
  34891. s,@CATOBJEXT@,$CATOBJEXT,;t t
  34892. s,@DATADIRNAME@,$DATADIRNAME,;t t
  34893. s,@GMOFILES@,$GMOFILES,;t t
  34894. s,@INSTOBJEXT@,$INSTOBJEXT,;t t
  34895. s,@INTLLIBS@,$INTLLIBS,;t t
  34896. s,@PO_IN_DATADIR_TRUE@,$PO_IN_DATADIR_TRUE,;t t
  34897. s,@PO_IN_DATADIR_FALSE@,$PO_IN_DATADIR_FALSE,;t t
  34898. s,@POFILES@,$POFILES,;t t
  34899. s,@POSUB@,$POSUB,;t t
  34900. s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
  34901. s,@PKG_CONFIG@,$PKG_CONFIG,;t t
  34902. s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
  34903. s,@GLIB_LIBS@,$GLIB_LIBS,;t t
  34904. s,@GLIB_GENMARSHAL@,$GLIB_GENMARSHAL,;t t
  34905. s,@GOBJECT_QUERY@,$GOBJECT_QUERY,;t t
  34906. s,@GLIB_MKENUMS@,$GLIB_MKENUMS,;t t
  34907. s,@GMODULE_CFLAGS@,$GMODULE_CFLAGS,;t t
  34908. s,@GMODULE_LIBS@,$GMODULE_LIBS,;t t
  34909. s,@X_CFLAGS@,$X_CFLAGS,;t t
  34910. s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
  34911. s,@X_LIBS@,$X_LIBS,;t t
  34912. s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
  34913. s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
  34914. s,@GTK_LIBS@,$GTK_LIBS,;t t
  34915. s,@GDK_PIXBUF_CFLAGS@,$GDK_PIXBUF_CFLAGS,;t t
  34916. s,@GDK_PIXBUF_LIBS@,$GDK_PIXBUF_LIBS,;t t
  34917. s,@GDK_PIXBUF_CSOURCE@,$GDK_PIXBUF_CSOURCE,;t t
  34918. s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
  34919. s,@LIBART_LIBS@,$LIBART_LIBS,;t t
  34920. s,@FONTCONFIG_CFLAGS@,$FONTCONFIG_CFLAGS,;t t
  34921. s,@FONTCONFIG_LIBS@,$FONTCONFIG_LIBS,;t t
  34922. s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
  34923. s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
  34924. s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
  34925. s,@FREETYPE_LIBS@,$FREETYPE_LIBS,;t t
  34926. s,@HAVE_FINITE@,$HAVE_FINITE,;t t
  34927. s,@HAVE_ISFINITE@,$HAVE_ISFINITE,;t t
  34928. s,@SOCKET_LIBS@,$SOCKET_LIBS,;t t
  34929. s,@RT_LIBS@,$RT_LIBS,;t t
  34930. s,@SYMPREFIX@,$SYMPREFIX,;t t
  34931. s,@HAVE_GLIBC_REGEX_TRUE@,$HAVE_GLIBC_REGEX_TRUE,;t t
  34932. s,@HAVE_GLIBC_REGEX_FALSE@,$HAVE_GLIBC_REGEX_FALSE,;t t
  34933. s,@HAVE_GLIBC_REGEX@,$HAVE_GLIBC_REGEX,;t t
  34934. s,@GIMP_THREAD_FLAGS@,$GIMP_THREAD_FLAGS,;t t
  34935. s,@GIMP_THREAD_LIBS@,$GIMP_THREAD_LIBS,;t t
  34936. s,@GIMP_MP_FLAGS@,$GIMP_MP_FLAGS,;t t
  34937. s,@GIMP_MP_LIBS@,$GIMP_MP_LIBS,;t t
  34938. s,@LIBXMU@,$LIBXMU,;t t
  34939. s,@LIBSCREENSHOT@,$LIBSCREENSHOT,;t t
  34940. s,@GIMP_REMOTE@,$GIMP_REMOTE,;t t
  34941. s,@TIFF@,$TIFF,;t t
  34942. s,@LIBTIFF@,$LIBTIFF,;t t
  34943. s,@JPEG@,$JPEG,;t t
  34944. s,@LIBJPEG@,$LIBJPEG,;t t
  34945. s,@BUILD_XJT_TRUE@,$BUILD_XJT_TRUE,;t t
  34946. s,@BUILD_XJT_FALSE@,$BUILD_XJT_FALSE,;t t
  34947. s,@LIBZ@,$LIBZ,;t t
  34948. s,@PSP@,$PSP,;t t
  34949. s,@PNG@,$PNG,;t t
  34950. s,@LIBPNG@,$LIBPNG,;t t
  34951. s,@MNG@,$MNG,;t t
  34952. s,@LIBMNG@,$LIBMNG,;t t
  34953. s,@EXIF_CFLAGS@,$EXIF_CFLAGS,;t t
  34954. s,@EXIF_LIBS@,$EXIF_LIBS,;t t
  34955. s,@AA@,$AA,;t t
  34956. s,@LIBAA@,$LIBAA,;t t
  34957. s,@XPM@,$XPM,;t t
  34958. s,@LIBXPM@,$LIBXPM,;t t
  34959. s,@GTKHTML2_CFLAGS@,$GTKHTML2_CFLAGS,;t t
  34960. s,@GTKHTML2_LIBS@,$GTKHTML2_LIBS,;t t
  34961. s,@BUILD_HELPBROWSER_TRUE@,$BUILD_HELPBROWSER_TRUE,;t t
  34962. s,@BUILD_HELPBROWSER_FALSE@,$BUILD_HELPBROWSER_FALSE,;t t
  34963. s,@SVG_CFLAGS@,$SVG_CFLAGS,;t t
  34964. s,@SVG_LIBS@,$SVG_LIBS,;t t
  34965. s,@SVG@,$SVG,;t t
  34966. s,@LIBSVG@,$LIBSVG,;t t
  34967. s,@GIMPPRINT_CONFIG@,$GIMPPRINT_CONFIG,;t t
  34968. s,@GIMPPRINT_CFLAGS@,$GIMPPRINT_CFLAGS,;t t
  34969. s,@GIMPPRINT_LIBS@,$GIMPPRINT_LIBS,;t t
  34970. s,@PRINT_LIBS@,$PRINT_LIBS,;t t
  34971. s,@PRINT_CFLAGS@,$PRINT_CFLAGS,;t t
  34972. s,@BUILD_PRINT_TRUE@,$BUILD_PRINT_TRUE,;t t
  34973. s,@BUILD_PRINT_FALSE@,$BUILD_PRINT_FALSE,;t t
  34974. s,@WMF_CONFIG@,$WMF_CONFIG,;t t
  34975. s,@LIBWMF@,$LIBWMF,;t t
  34976. s,@WMF_CFLAGS@,$WMF_CFLAGS,;t t
  34977. s,@LCMS_LIBS@,$LCMS_LIBS,;t t
  34978. s,@HAVE_LCMS_TRUE@,$HAVE_LCMS_TRUE,;t t
  34979. s,@HAVE_LCMS_FALSE@,$HAVE_LCMS_FALSE,;t t
  34980. s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
  34981. s,@ALSA_LIBS@,$ALSA_LIBS,;t t
  34982. s,@HAVE_LINUX_INPUT_TRUE@,$HAVE_LINUX_INPUT_TRUE,;t t
  34983. s,@HAVE_LINUX_INPUT_FALSE@,$HAVE_LINUX_INPUT_FALSE,;t t
  34984. s,@SENDMAIL@,$SENDMAIL,;t t
  34985. s,@PERL@,$PERL,;t t
  34986. s,@WITH_PDBGEN_TRUE@,$WITH_PDBGEN_TRUE,;t t
  34987. s,@WITH_PDBGEN_FALSE@,$WITH_PDBGEN_FALSE,;t t
  34988. s,@PYTHON@,$PYTHON,;t t
  34989. s,@PYTHON_VERSION@,$PYTHON_VERSION,;t t
  34990. s,@PYTHON_PREFIX@,$PYTHON_PREFIX,;t t
  34991. s,@PYTHON_EXEC_PREFIX@,$PYTHON_EXEC_PREFIX,;t t
  34992. s,@PYTHON_PLATFORM@,$PYTHON_PLATFORM,;t t
  34993. s,@pythondir@,$pythondir,;t t
  34994. s,@pkgpythondir@,$pkgpythondir,;t t
  34995. s,@pyexecdir@,$pyexecdir,;t t
  34996. s,@pkgpyexecdir@,$pkgpyexecdir,;t t
  34997. s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
  34998. s,@PYGTK_CFLAGS@,$PYGTK_CFLAGS,;t t
  34999. s,@PYGTK_LIBS@,$PYGTK_LIBS,;t t
  35000. s,@PYGIMP_EXTRA_CFLAGS@,$PYGIMP_EXTRA_CFLAGS,;t t
  35001. s,@BUILD_PYTHON_TRUE@,$BUILD_PYTHON_TRUE,;t t
  35002. s,@BUILD_PYTHON_FALSE@,$BUILD_PYTHON_FALSE,;t t
  35003. s,@MAIL@,$MAIL,;t t
  35004. s,@SCREENSHOT@,$SCREENSHOT,;t t
  35005. s,@URL@,$URL,;t t
  35006. s,@WINCLIPBOARD@,$WINCLIPBOARD,;t t
  35007. s,@WINPRINT@,$WINPRINT,;t t
  35008. s,@WMF@,$WMF,;t t
  35009. s,@HAVE_MAC_TWAIN_TRUE@,$HAVE_MAC_TWAIN_TRUE,;t t
  35010. s,@HAVE_MAC_TWAIN_FALSE@,$HAVE_MAC_TWAIN_FALSE,;t t
  35011. s,@DESKTOP_DATADIR_TRUE@,$DESKTOP_DATADIR_TRUE,;t t
  35012. s,@DESKTOP_DATADIR_FALSE@,$DESKTOP_DATADIR_FALSE,;t t
  35013. s,@DESKTOP_DATADIR@,$DESKTOP_DATADIR,;t t
  35014. s,@XMLLINT@,$XMLLINT,;t t
  35015. s,@HAVE_XMLLINT_TRUE@,$HAVE_XMLLINT_TRUE,;t t
  35016. s,@HAVE_XMLLINT_FALSE@,$HAVE_XMLLINT_FALSE,;t t
  35017. s,@XSLTPROC@,$XSLTPROC,;t t
  35018. s,@HAVE_XSLTPROC_TRUE@,$HAVE_XSLTPROC_TRUE,;t t
  35019. s,@HAVE_XSLTPROC_FALSE@,$HAVE_XSLTPROC_FALSE,;t t
  35020. s,@HTML_DIR@,$HTML_DIR,;t t
  35021. s,@ENABLE_GTK_DOC_TRUE@,$ENABLE_GTK_DOC_TRUE,;t t
  35022. s,@ENABLE_GTK_DOC_FALSE@,$ENABLE_GTK_DOC_FALSE,;t t
  35023. s,@GTK_DOC_USE_LIBTOOL_TRUE@,$GTK_DOC_USE_LIBTOOL_TRUE,;t t
  35024. s,@GTK_DOC_USE_LIBTOOL_FALSE@,$GTK_DOC_USE_LIBTOOL_FALSE,;t t
  35025. s,@GIMP_DEVEL_DOCS@,$GIMP_DEVEL_DOCS,;t t
  35026. s,@DEFAULT_BINARY_TRUE@,$DEFAULT_BINARY_TRUE,;t t
  35027. s,@DEFAULT_BINARY_FALSE@,$DEFAULT_BINARY_FALSE,;t t
  35028. s,@ENABLE_GIMP_CONSOLE_TRUE@,$ENABLE_GIMP_CONSOLE_TRUE,;t t
  35029. s,@ENABLE_GIMP_CONSOLE_FALSE@,$ENABLE_GIMP_CONSOLE_FALSE,;t t
  35030. s,@gimpdir@,$gimpdir,;t t
  35031. s,@gimpdatadir@,$gimpdatadir,;t t
  35032. s,@gimpplugindir@,$gimpplugindir,;t t
  35033. s,@gimpsysconfdir@,$gimpsysconfdir,;t t
  35034. s,@localedir@,$localedir,;t t
  35035. s,@GIMPINSTALL@,$GIMPINSTALL,;t t
  35036. s,@STATICLIBS_TRUE@,$STATICLIBS_TRUE,;t t
  35037. s,@STATICLIBS_FALSE@,$STATICLIBS_FALSE,;t t
  35038. s,@GIMP_MKENUMS@,$GIMP_MKENUMS,;t t
  35039. s,@GIMP_PLUGINS@,$GIMP_PLUGINS,;t t
  35040. s,@GIMP_MODULES@,$GIMP_MODULES,;t t
  35041. s,@LIBOBJS@,$LIBOBJS,;t t
  35042. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  35043. CEOF
  35044.  
  35045. _ACEOF
  35046.  
  35047.   cat >>$CONFIG_STATUS <<\_ACEOF
  35048.   # Split the substitutions into bite-sized pieces for seds with
  35049.   # small command number limits, like on Digital OSF/1 and HP-UX.
  35050.   ac_max_sed_lines=48
  35051.   ac_sed_frag=1 # Number of current file.
  35052.   ac_beg=1 # First line for current file.
  35053.   ac_end=$ac_max_sed_lines # Line after last line for current file.
  35054.   ac_more_lines=:
  35055.   ac_sed_cmds=
  35056.   while $ac_more_lines; do
  35057.     if test $ac_beg -gt 1; then
  35058.       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  35059.     else
  35060.       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  35061.     fi
  35062.     if test ! -s $tmp/subs.frag; then
  35063.       ac_more_lines=false
  35064.     else
  35065.       # The purpose of the label and of the branching condition is to
  35066.       # speed up the sed processing (if there are no `@' at all, there
  35067.       # is no need to browse any of the substitutions).
  35068.       # These are the two extra sed commands mentioned above.
  35069.       (echo ':t
  35070.   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  35071.       if test -z "$ac_sed_cmds"; then
  35072.     ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  35073.       else
  35074.     ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  35075.       fi
  35076.       ac_sed_frag=`expr $ac_sed_frag + 1`
  35077.       ac_beg=$ac_end
  35078.       ac_end=`expr $ac_end + $ac_max_sed_lines`
  35079.     fi
  35080.   done
  35081.   if test -z "$ac_sed_cmds"; then
  35082.     ac_sed_cmds=cat
  35083.   fi
  35084. fi # test -n "$CONFIG_FILES"
  35085.  
  35086. _ACEOF
  35087. cat >>$CONFIG_STATUS <<\_ACEOF
  35088. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  35089.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  35090.   case $ac_file in
  35091.   - | *:- | *:-:* ) # input from stdin
  35092.     cat >$tmp/stdin
  35093.     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  35094.     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  35095.   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  35096.     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  35097.   * )   ac_file_in=$ac_file.in ;;
  35098.   esac
  35099.  
  35100.   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  35101.   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  35102. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  35103.      X"$ac_file" : 'X\(//\)[^/]' \| \
  35104.      X"$ac_file" : 'X\(//\)$' \| \
  35105.      X"$ac_file" : 'X\(/\)' \| \
  35106.      .     : '\(.\)' 2>/dev/null ||
  35107. echo X"$ac_file" |
  35108.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  35109.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  35110.         /^X\(\/\/\)$/{ s//\1/; q; }
  35111.         /^X\(\/\).*/{ s//\1/; q; }
  35112.         s/.*/./; q'`
  35113.   { if $as_mkdir_p; then
  35114.     mkdir -p "$ac_dir"
  35115.   else
  35116.     as_dir="$ac_dir"
  35117.     as_dirs=
  35118.     while test ! -d "$as_dir"; do
  35119.       as_dirs="$as_dir $as_dirs"
  35120.       as_dir=`(dirname "$as_dir") 2>/dev/null ||
  35121. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  35122.      X"$as_dir" : 'X\(//\)[^/]' \| \
  35123.      X"$as_dir" : 'X\(//\)$' \| \
  35124.      X"$as_dir" : 'X\(/\)' \| \
  35125.      .     : '\(.\)' 2>/dev/null ||
  35126. echo X"$as_dir" |
  35127.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  35128.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  35129.         /^X\(\/\/\)$/{ s//\1/; q; }
  35130.         /^X\(\/\).*/{ s//\1/; q; }
  35131.         s/.*/./; q'`
  35132.     done
  35133.     test ! -n "$as_dirs" || mkdir $as_dirs
  35134.   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  35135. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  35136.    { (exit 1); exit 1; }; }; }
  35137.  
  35138.   ac_builddir=.
  35139.  
  35140. if test "$ac_dir" != .; then
  35141.   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  35142.   # A "../" for each directory in $ac_dir_suffix.
  35143.   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  35144. else
  35145.   ac_dir_suffix= ac_top_builddir=
  35146. fi
  35147.  
  35148. case $srcdir in
  35149.   .)  # No --srcdir option.  We are building in place.
  35150.     ac_srcdir=.
  35151.     if test -z "$ac_top_builddir"; then
  35152.        ac_top_srcdir=.
  35153.     else
  35154.        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  35155.     fi ;;
  35156.   [\\/]* | ?:[\\/]* )  # Absolute path.
  35157.     ac_srcdir=$srcdir$ac_dir_suffix;
  35158.     ac_top_srcdir=$srcdir ;;
  35159.   *) # Relative path.
  35160.     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  35161.     ac_top_srcdir=$ac_top_builddir$srcdir ;;
  35162. esac
  35163.  
  35164. # Do not use `cd foo && pwd` to compute absolute paths, because
  35165. # the directories may not exist.
  35166. case `pwd` in
  35167. .) ac_abs_builddir="$ac_dir";;
  35168. *)
  35169.   case "$ac_dir" in
  35170.   .) ac_abs_builddir=`pwd`;;
  35171.   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  35172.   *) ac_abs_builddir=`pwd`/"$ac_dir";;
  35173.   esac;;
  35174. esac
  35175. case $ac_abs_builddir in
  35176. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  35177. *)
  35178.   case ${ac_top_builddir}. in
  35179.   .) ac_abs_top_builddir=$ac_abs_builddir;;
  35180.   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  35181.   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  35182.   esac;;
  35183. esac
  35184. case $ac_abs_builddir in
  35185. .) ac_abs_srcdir=$ac_srcdir;;
  35186. *)
  35187.   case $ac_srcdir in
  35188.   .) ac_abs_srcdir=$ac_abs_builddir;;
  35189.   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  35190.   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  35191.   esac;;
  35192. esac
  35193. case $ac_abs_builddir in
  35194. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  35195. *)
  35196.   case $ac_top_srcdir in
  35197.   .) ac_abs_top_srcdir=$ac_abs_builddir;;
  35198.   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  35199.   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  35200.   esac;;
  35201. esac
  35202.  
  35203.  
  35204.   case $INSTALL in
  35205.   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  35206.   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  35207.   esac
  35208.  
  35209.   # Let's still pretend it is `configure' which instantiates (i.e., don't
  35210.   # use $as_me), people would be surprised to read:
  35211.   #    /* config.h.  Generated by config.status.  */
  35212.   if test x"$ac_file" = x-; then
  35213.     configure_input=
  35214.   else
  35215.     configure_input="$ac_file.  "
  35216.   fi
  35217.   configure_input=$configure_input"Generated from `echo $ac_file_in |
  35218.                      sed 's,.*/,,'` by configure."
  35219.  
  35220.   # First look for the input files in the build tree, otherwise in the
  35221.   # src tree.
  35222.   ac_file_inputs=`IFS=:
  35223.     for f in $ac_file_in; do
  35224.       case $f in
  35225.       -) echo $tmp/stdin ;;
  35226.       [\\/$]*)
  35227.      # Absolute (can't be DOS-style, as IFS=:)
  35228.      test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  35229. echo "$as_me: error: cannot find input file: $f" >&2;}
  35230.    { (exit 1); exit 1; }; }
  35231.      echo "$f";;
  35232.       *) # Relative
  35233.      if test -f "$f"; then
  35234.        # Build tree
  35235.        echo "$f"
  35236.      elif test -f "$srcdir/$f"; then
  35237.        # Source tree
  35238.        echo "$srcdir/$f"
  35239.      else
  35240.        # /dev/null tree
  35241.        { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  35242. echo "$as_me: error: cannot find input file: $f" >&2;}
  35243.    { (exit 1); exit 1; }; }
  35244.      fi;;
  35245.       esac
  35246.     done` || { (exit 1); exit 1; }
  35247.  
  35248.   if test x"$ac_file" != x-; then
  35249.     { echo "$as_me:$LINENO: creating $ac_file" >&5
  35250. echo "$as_me: creating $ac_file" >&6;}
  35251.     rm -f "$ac_file"
  35252.   fi
  35253. _ACEOF
  35254. cat >>$CONFIG_STATUS <<_ACEOF
  35255.   sed "$ac_vpsub
  35256. $extrasub
  35257. _ACEOF
  35258. cat >>$CONFIG_STATUS <<\_ACEOF
  35259. :t
  35260. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  35261. s,@configure_input@,$configure_input,;t t
  35262. s,@srcdir@,$ac_srcdir,;t t
  35263. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  35264. s,@top_srcdir@,$ac_top_srcdir,;t t
  35265. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  35266. s,@builddir@,$ac_builddir,;t t
  35267. s,@abs_builddir@,$ac_abs_builddir,;t t
  35268. s,@top_builddir@,$ac_top_builddir,;t t
  35269. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  35270. s,@INSTALL@,$ac_INSTALL,;t t
  35271. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  35272.   rm -f $tmp/stdin
  35273.   if test x"$ac_file" != x-; then
  35274.     mv $tmp/out $ac_file
  35275.   else
  35276.     cat $tmp/out
  35277.     rm -f $tmp/out
  35278.   fi
  35279.  
  35280. done
  35281. _ACEOF
  35282. cat >>$CONFIG_STATUS <<\_ACEOF
  35283.  
  35284. #
  35285. # CONFIG_HEADER section.
  35286. #
  35287.  
  35288. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  35289. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  35290. #
  35291. # ac_d sets the value in "#define NAME VALUE" lines.
  35292. ac_dA='s,^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  35293. ac_dB='[     ].*$,\1#\2'
  35294. ac_dC=' '
  35295. ac_dD=',;t'
  35296. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  35297. ac_uA='s,^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  35298. ac_uB='$,\1#\2define\3'
  35299. ac_uC=' '
  35300. ac_uD=',;t'
  35301.  
  35302. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  35303.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  35304.   case $ac_file in
  35305.   - | *:- | *:-:* ) # input from stdin
  35306.     cat >$tmp/stdin
  35307.     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  35308.     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  35309.   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  35310.     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  35311.   * )   ac_file_in=$ac_file.in ;;
  35312.   esac
  35313.  
  35314.   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  35315. echo "$as_me: creating $ac_file" >&6;}
  35316.  
  35317.   # First look for the input files in the build tree, otherwise in the
  35318.   # src tree.
  35319.   ac_file_inputs=`IFS=:
  35320.     for f in $ac_file_in; do
  35321.       case $f in
  35322.       -) echo $tmp/stdin ;;
  35323.       [\\/$]*)
  35324.      # Absolute (can't be DOS-style, as IFS=:)
  35325.      test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  35326. echo "$as_me: error: cannot find input file: $f" >&2;}
  35327.    { (exit 1); exit 1; }; }
  35328.      # Do quote $f, to prevent DOS paths from being IFS'd.
  35329.      echo "$f";;
  35330.       *) # Relative
  35331.      if test -f "$f"; then
  35332.        # Build tree
  35333.        echo "$f"
  35334.      elif test -f "$srcdir/$f"; then
  35335.        # Source tree
  35336.        echo "$srcdir/$f"
  35337.      else
  35338.        # /dev/null tree
  35339.        { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  35340. echo "$as_me: error: cannot find input file: $f" >&2;}
  35341.    { (exit 1); exit 1; }; }
  35342.      fi;;
  35343.       esac
  35344.     done` || { (exit 1); exit 1; }
  35345.   # Remove the trailing spaces.
  35346.   sed 's/[     ]*$//' $ac_file_inputs >$tmp/in
  35347.  
  35348. _ACEOF
  35349.  
  35350. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  35351. # `conftest.undefs', that substitutes the proper values into
  35352. # config.h.in to produce config.h.  The first handles `#define'
  35353. # templates, and the second `#undef' templates.
  35354. # And first: Protect against being on the right side of a sed subst in
  35355. # config.status.  Protect against being in an unquoted here document
  35356. # in config.status.
  35357. rm -f conftest.defines conftest.undefs
  35358. # Using a here document instead of a string reduces the quoting nightmare.
  35359. # Putting comments in sed scripts is not portable.
  35360. #
  35361. # `end' is used to avoid that the second main sed command (meant for
  35362. # 0-ary CPP macros) applies to n-ary macro definitions.
  35363. # See the Autoconf documentation for `clear'.
  35364. cat >confdef2sed.sed <<\_ACEOF
  35365. s/[\\&,]/\\&/g
  35366. s,[\\$`],\\&,g
  35367. t clear
  35368. : clear
  35369. s,^[     ]*#[     ]*define[     ][     ]*\([^     (][^     (]*\)\(([^)]*)\)[     ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  35370. t end
  35371. s,^[     ]*#[     ]*define[     ][     ]*\([^     ][^     ]*\)[     ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  35372. : end
  35373. _ACEOF
  35374. # If some macros were called several times there might be several times
  35375. # the same #defines, which is useless.  Nevertheless, we may not want to
  35376. # sort them, since we want the *last* AC-DEFINE to be honored.
  35377. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  35378. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  35379. rm -f confdef2sed.sed
  35380.  
  35381. # This sed command replaces #undef with comments.  This is necessary, for
  35382. # example, in the case of _POSIX_SOURCE, which is predefined and required
  35383. # on some systems where configure will not decide to define it.
  35384. cat >>conftest.undefs <<\_ACEOF
  35385. s,^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  35386. _ACEOF
  35387.  
  35388. # Break up conftest.defines because some shells have a limit on the size
  35389. # of here documents, and old seds have small limits too (100 cmds).
  35390. echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  35391. echo '  if grep "^[     ]*#[     ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  35392. echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  35393. echo '  :' >>$CONFIG_STATUS
  35394. rm -f conftest.tail
  35395. while grep . conftest.defines >/dev/null
  35396. do
  35397.   # Write a limited-size here document to $tmp/defines.sed.
  35398.   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  35399.   # Speed up: don't consider the non `#define' lines.
  35400.   echo '/^[     ]*#[     ]*define/!b' >>$CONFIG_STATUS
  35401.   # Work around the forget-to-reset-the-flag bug.
  35402.   echo 't clr' >>$CONFIG_STATUS
  35403.   echo ': clr' >>$CONFIG_STATUS
  35404.   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  35405.   echo 'CEOF
  35406.   sed -f $tmp/defines.sed $tmp/in >$tmp/out
  35407.   rm -f $tmp/in
  35408.   mv $tmp/out $tmp/in
  35409. ' >>$CONFIG_STATUS
  35410.   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  35411.   rm -f conftest.defines
  35412.   mv conftest.tail conftest.defines
  35413. done
  35414. rm -f conftest.defines
  35415. echo '  fi # grep' >>$CONFIG_STATUS
  35416. echo >>$CONFIG_STATUS
  35417.  
  35418. # Break up conftest.undefs because some shells have a limit on the size
  35419. # of here documents, and old seds have small limits too (100 cmds).
  35420. echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
  35421. rm -f conftest.tail
  35422. while grep . conftest.undefs >/dev/null
  35423. do
  35424.   # Write a limited-size here document to $tmp/undefs.sed.
  35425.   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  35426.   # Speed up: don't consider the non `#undef'
  35427.   echo '/^[     ]*#[     ]*undef/!b' >>$CONFIG_STATUS
  35428.   # Work around the forget-to-reset-the-flag bug.
  35429.   echo 't clr' >>$CONFIG_STATUS
  35430.   echo ': clr' >>$CONFIG_STATUS
  35431.   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  35432.   echo 'CEOF
  35433.   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  35434.   rm -f $tmp/in
  35435.   mv $tmp/out $tmp/in
  35436. ' >>$CONFIG_STATUS
  35437.   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  35438.   rm -f conftest.undefs
  35439.   mv conftest.tail conftest.undefs
  35440. done
  35441. rm -f conftest.undefs
  35442.  
  35443. cat >>$CONFIG_STATUS <<\_ACEOF
  35444.   # Let's still pretend it is `configure' which instantiates (i.e., don't
  35445.   # use $as_me), people would be surprised to read:
  35446.   #    /* config.h.  Generated by config.status.  */
  35447.   if test x"$ac_file" = x-; then
  35448.     echo "/* Generated by configure.  */" >$tmp/config.h
  35449.   else
  35450.     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
  35451.   fi
  35452.   cat $tmp/in >>$tmp/config.h
  35453.   rm -f $tmp/in
  35454.   if test x"$ac_file" != x-; then
  35455.     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  35456.       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  35457. echo "$as_me: $ac_file is unchanged" >&6;}
  35458.     else
  35459.       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  35460. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  35461.      X"$ac_file" : 'X\(//\)[^/]' \| \
  35462.      X"$ac_file" : 'X\(//\)$' \| \
  35463.      X"$ac_file" : 'X\(/\)' \| \
  35464.      .     : '\(.\)' 2>/dev/null ||
  35465. echo X"$ac_file" |
  35466.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  35467.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  35468.         /^X\(\/\/\)$/{ s//\1/; q; }
  35469.         /^X\(\/\).*/{ s//\1/; q; }
  35470.         s/.*/./; q'`
  35471.       { if $as_mkdir_p; then
  35472.     mkdir -p "$ac_dir"
  35473.   else
  35474.     as_dir="$ac_dir"
  35475.     as_dirs=
  35476.     while test ! -d "$as_dir"; do
  35477.       as_dirs="$as_dir $as_dirs"
  35478.       as_dir=`(dirname "$as_dir") 2>/dev/null ||
  35479. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  35480.      X"$as_dir" : 'X\(//\)[^/]' \| \
  35481.      X"$as_dir" : 'X\(//\)$' \| \
  35482.      X"$as_dir" : 'X\(/\)' \| \
  35483.      .     : '\(.\)' 2>/dev/null ||
  35484. echo X"$as_dir" |
  35485.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  35486.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  35487.         /^X\(\/\/\)$/{ s//\1/; q; }
  35488.         /^X\(\/\).*/{ s//\1/; q; }
  35489.         s/.*/./; q'`
  35490.     done
  35491.     test ! -n "$as_dirs" || mkdir $as_dirs
  35492.   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  35493. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  35494.    { (exit 1); exit 1; }; }; }
  35495.  
  35496.       rm -f $ac_file
  35497.       mv $tmp/config.h $ac_file
  35498.     fi
  35499.   else
  35500.     cat $tmp/config.h
  35501.     rm -f $tmp/config.h
  35502.   fi
  35503. # Compute $ac_file's index in $config_headers.
  35504. _am_stamp_count=1
  35505. for _am_header in $config_headers :; do
  35506.   case $_am_header in
  35507.     $ac_file | $ac_file:* )
  35508.       break ;;
  35509.     * )
  35510.       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  35511.   esac
  35512. done
  35513. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  35514. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  35515.      X$ac_file : 'X\(//\)[^/]' \| \
  35516.      X$ac_file : 'X\(//\)$' \| \
  35517.      X$ac_file : 'X\(/\)' \| \
  35518.      .     : '\(.\)' 2>/dev/null ||
  35519. echo X$ac_file |
  35520.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  35521.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  35522.         /^X\(\/\/\)$/{ s//\1/; q; }
  35523.         /^X\(\/\).*/{ s//\1/; q; }
  35524.         s/.*/./; q'`/stamp-h$_am_stamp_count
  35525. done
  35526. _ACEOF
  35527. cat >>$CONFIG_STATUS <<\_ACEOF
  35528.  
  35529. #
  35530. # CONFIG_COMMANDS section.
  35531. #
  35532. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  35533.   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  35534.   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  35535.   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  35536. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  35537.      X"$ac_dest" : 'X\(//\)[^/]' \| \
  35538.      X"$ac_dest" : 'X\(//\)$' \| \
  35539.      X"$ac_dest" : 'X\(/\)' \| \
  35540.      .     : '\(.\)' 2>/dev/null ||
  35541. echo X"$ac_dest" |
  35542.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  35543.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  35544.         /^X\(\/\/\)$/{ s//\1/; q; }
  35545.         /^X\(\/\).*/{ s//\1/; q; }
  35546.         s/.*/./; q'`
  35547.   { if $as_mkdir_p; then
  35548.     mkdir -p "$ac_dir"
  35549.   else
  35550.     as_dir="$ac_dir"
  35551.     as_dirs=
  35552.     while test ! -d "$as_dir"; do
  35553.       as_dirs="$as_dir $as_dirs"
  35554.       as_dir=`(dirname "$as_dir") 2>/dev/null ||
  35555. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  35556.      X"$as_dir" : 'X\(//\)[^/]' \| \
  35557.      X"$as_dir" : 'X\(//\)$' \| \
  35558.      X"$as_dir" : 'X\(/\)' \| \
  35559.      .     : '\(.\)' 2>/dev/null ||
  35560. echo X"$as_dir" |
  35561.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  35562.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  35563.         /^X\(\/\/\)$/{ s//\1/; q; }
  35564.         /^X\(\/\).*/{ s//\1/; q; }
  35565.         s/.*/./; q'`
  35566.     done
  35567.     test ! -n "$as_dirs" || mkdir $as_dirs
  35568.   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  35569. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  35570.    { (exit 1); exit 1; }; }; }
  35571.  
  35572.   ac_builddir=.
  35573.  
  35574. if test "$ac_dir" != .; then
  35575.   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  35576.   # A "../" for each directory in $ac_dir_suffix.
  35577.   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  35578. else
  35579.   ac_dir_suffix= ac_top_builddir=
  35580. fi
  35581.  
  35582. case $srcdir in
  35583.   .)  # No --srcdir option.  We are building in place.
  35584.     ac_srcdir=.
  35585.     if test -z "$ac_top_builddir"; then
  35586.        ac_top_srcdir=.
  35587.     else
  35588.        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  35589.     fi ;;
  35590.   [\\/]* | ?:[\\/]* )  # Absolute path.
  35591.     ac_srcdir=$srcdir$ac_dir_suffix;
  35592.     ac_top_srcdir=$srcdir ;;
  35593.   *) # Relative path.
  35594.     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  35595.     ac_top_srcdir=$ac_top_builddir$srcdir ;;
  35596. esac
  35597.  
  35598. # Do not use `cd foo && pwd` to compute absolute paths, because
  35599. # the directories may not exist.
  35600. case `pwd` in
  35601. .) ac_abs_builddir="$ac_dir";;
  35602. *)
  35603.   case "$ac_dir" in
  35604.   .) ac_abs_builddir=`pwd`;;
  35605.   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  35606.   *) ac_abs_builddir=`pwd`/"$ac_dir";;
  35607.   esac;;
  35608. esac
  35609. case $ac_abs_builddir in
  35610. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  35611. *)
  35612.   case ${ac_top_builddir}. in
  35613.   .) ac_abs_top_builddir=$ac_abs_builddir;;
  35614.   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  35615.   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  35616.   esac;;
  35617. esac
  35618. case $ac_abs_builddir in
  35619. .) ac_abs_srcdir=$ac_srcdir;;
  35620. *)
  35621.   case $ac_srcdir in
  35622.   .) ac_abs_srcdir=$ac_abs_builddir;;
  35623.   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  35624.   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  35625.   esac;;
  35626. esac
  35627. case $ac_abs_builddir in
  35628. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  35629. *)
  35630.   case $ac_top_srcdir in
  35631.   .) ac_abs_top_srcdir=$ac_abs_builddir;;
  35632.   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  35633.   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  35634.   esac;;
  35635. esac
  35636.  
  35637.  
  35638.   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  35639. echo "$as_me: executing $ac_dest commands" >&6;}
  35640.   case $ac_dest in
  35641.     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  35642.   # Strip MF so we end up with the name of the file.
  35643.   mf=`echo "$mf" | sed -e 's/:.*$//'`
  35644.   # Check whether this is an Automake generated Makefile or not.
  35645.   # We used to match only the files named `Makefile.in', but
  35646.   # some people rename them; so instead we look at the file content.
  35647.   # Grep'ing the first line is not enough: some people post-process
  35648.   # each Makefile.in and add a new line on top of each file to say so.
  35649.   # So let's grep whole file.
  35650.   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  35651.     dirpart=`(dirname "$mf") 2>/dev/null ||
  35652. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  35653.      X"$mf" : 'X\(//\)[^/]' \| \
  35654.      X"$mf" : 'X\(//\)$' \| \
  35655.      X"$mf" : 'X\(/\)' \| \
  35656.      .     : '\(.\)' 2>/dev/null ||
  35657. echo X"$mf" |
  35658.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  35659.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  35660.         /^X\(\/\/\)$/{ s//\1/; q; }
  35661.         /^X\(\/\).*/{ s//\1/; q; }
  35662.         s/.*/./; q'`
  35663.   else
  35664.     continue
  35665.   fi
  35666.   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
  35667.   # Extract the definition of DEP_FILES from the Makefile without
  35668.   # running `make'.
  35669.   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
  35670.   test -z "$DEPDIR" && continue
  35671.   # When using ansi2knr, U may be empty or an underscore; expand it
  35672.   U=`sed -n -e '/^U = / s///p' < "$mf"`
  35673.   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
  35674.   # We invoke sed twice because it is the simplest approach to
  35675.   # changing $(DEPDIR) to its actual value in the expansion.
  35676.   for file in `sed -n -e '
  35677.     /^DEP_FILES = .*\\\\$/ {
  35678.       s/^DEP_FILES = //
  35679.       :loop
  35680.     s/\\\\$//
  35681.     p
  35682.     n
  35683.     /\\\\$/ b loop
  35684.       p
  35685.     }
  35686.     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
  35687.        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  35688.     # Make sure the directory exists.
  35689.     test -f "$dirpart/$file" && continue
  35690.     fdir=`(dirname "$file") 2>/dev/null ||
  35691. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  35692.      X"$file" : 'X\(//\)[^/]' \| \
  35693.      X"$file" : 'X\(//\)$' \| \
  35694.      X"$file" : 'X\(/\)' \| \
  35695.      .     : '\(.\)' 2>/dev/null ||
  35696. echo X"$file" |
  35697.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  35698.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  35699.         /^X\(\/\/\)$/{ s//\1/; q; }
  35700.         /^X\(\/\).*/{ s//\1/; q; }
  35701.         s/.*/./; q'`
  35702.     { if $as_mkdir_p; then
  35703.     mkdir -p $dirpart/$fdir
  35704.   else
  35705.     as_dir=$dirpart/$fdir
  35706.     as_dirs=
  35707.     while test ! -d "$as_dir"; do
  35708.       as_dirs="$as_dir $as_dirs"
  35709.       as_dir=`(dirname "$as_dir") 2>/dev/null ||
  35710. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  35711.      X"$as_dir" : 'X\(//\)[^/]' \| \
  35712.      X"$as_dir" : 'X\(//\)$' \| \
  35713.      X"$as_dir" : 'X\(/\)' \| \
  35714.      .     : '\(.\)' 2>/dev/null ||
  35715. echo X"$as_dir" |
  35716.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  35717.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  35718.         /^X\(\/\/\)$/{ s//\1/; q; }
  35719.         /^X\(\/\).*/{ s//\1/; q; }
  35720.         s/.*/./; q'`
  35721.     done
  35722.     test ! -n "$as_dirs" || mkdir $as_dirs
  35723.   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  35724. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  35725.    { (exit 1); exit 1; }; }; }
  35726.  
  35727.     # echo "creating $dirpart/$file"
  35728.     echo '# dummy' > "$dirpart/$file"
  35729.   done
  35730. done
  35731.  ;;
  35732.     intltool )
  35733.  
  35734. intltool_edit="-e 's:@INTLTOOL_EXTRACT@:`pwd`/intltool-extract:g' \
  35735.                -e 's:@INTLTOOL_ICONV@:${ICONV}:g' \
  35736.                -e 's:@INTLTOOL_MSGFMT@:${MSGFMT}:g' \
  35737.                -e 's:@INTLTOOL_MSGMERGE@:${MSGMERGE}:g' \
  35738.                -e 's:@INTLTOOL_XGETTEXT@:${XGETTEXT}:g' \
  35739.                -e 's:@INTLTOOL_PERL@:${INTLTOOL_PERL}:g'"
  35740.  
  35741. eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-extract.in \
  35742.   > intltool-extract.out
  35743. if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
  35744.   rm -f intltool-extract.out
  35745. else
  35746.   mv -f intltool-extract.out intltool-extract
  35747. fi
  35748. chmod ugo+x intltool-extract
  35749. chmod u+w intltool-extract
  35750.  
  35751. eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-merge.in \
  35752.   > intltool-merge.out
  35753. if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
  35754.   rm -f intltool-merge.out
  35755. else
  35756.   mv -f intltool-merge.out intltool-merge
  35757. fi
  35758. chmod ugo+x intltool-merge
  35759. chmod u+w intltool-merge
  35760.  
  35761. eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-update.in \
  35762.   > intltool-update.out
  35763. if cmp -s intltool-update intltool-update.out 2>/dev/null; then
  35764.   rm -f intltool-update.out
  35765. else
  35766.   mv -f intltool-update.out intltool-update
  35767. fi
  35768. chmod ugo+x intltool-update
  35769. chmod u+w intltool-update
  35770.  
  35771.  ;;
  35772.     default-1 ) case "$CONFIG_FILES" in *po/Makefile.in*)
  35773.         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
  35774.       esac ;;
  35775.     libgimpbase/gimpversion.h )
  35776.   outfile=gimpversion.h-tmp
  35777.   cat > $outfile <<\_______EOF
  35778. /* gimpversion.h
  35779.  *
  35780.  * This is a generated file.  Please modify 'configure.in'
  35781.  */
  35782.  
  35783. #ifndef __GIMP_VERSION_H__
  35784. #define __GIMP_VERSION_H__
  35785.  
  35786. G_BEGIN_DECLS
  35787.  
  35788.  
  35789. _______EOF
  35790.  
  35791.   cat >>$outfile <<_______EOF
  35792. #define GIMP_MAJOR_VERSION                              ($gimp_major_ver)
  35793. #define GIMP_MINOR_VERSION                              ($gimp_minor_ver)
  35794. #define GIMP_MICRO_VERSION                              ($gimp_micro_ver)
  35795. #define GIMP_VERSION                                    "$gimp_ver"
  35796. #define GIMP_API_VERSION                                "$gimp_api_ver"
  35797. _______EOF
  35798.  
  35799.   cat >>$outfile <<\_______EOF
  35800. #define GIMP_CHECK_VERSION(major, minor, micro) \
  35801.     (GIMP_MAJOR_VERSION > (major) || \
  35802.      (GIMP_MAJOR_VERSION == (major) && GIMP_MINOR_VERSION > (minor)) || \
  35803.      (GIMP_MAJOR_VERSION == (major) && GIMP_MINOR_VERSION == (minor) && \
  35804.       GIMP_MICRO_VERSION >= (micro)))
  35805.  
  35806.  
  35807. G_END_DECLS
  35808.  
  35809. #endif /* __GIMP_VERSION_H__ */
  35810. _______EOF
  35811.  
  35812.   if cmp -s $outfile libgimpbase/gimpversion.h; then
  35813.     { echo "$as_me:$LINENO: libgimpbase/gimpversion.h is unchanged" >&5
  35814. echo "$as_me: libgimpbase/gimpversion.h is unchanged" >&6;}
  35815.     rm -f $outfile
  35816.   else
  35817.     mv $outfile libgimpbase/gimpversion.h
  35818.   fi
  35819.  ;;
  35820.     chmod-scripts ) chmod +x gimptool-2.0 ;;
  35821.     sed-po-makefiles ) sed -e "/POTFILES =/r po-libgimp/POTFILES" po-libgimp/Makefile.in > po-libgimp/Makefile
  35822. sed -e "/POTFILES =/r po-plug-ins/POTFILES" po-plug-ins/Makefile.in > po-plug-ins/Makefile
  35823. sed -e "/POTFILES =/r po-script-fu/POTFILES" po-script-fu/Makefile.in > po-script-fu/Makefile ;;
  35824.   esac
  35825. done
  35826. _ACEOF
  35827.  
  35828. cat >>$CONFIG_STATUS <<\_ACEOF
  35829.  
  35830. { (exit 0); exit 0; }
  35831. _ACEOF
  35832. chmod +x $CONFIG_STATUS
  35833. ac_clean_files=$ac_clean_files_save
  35834.  
  35835.  
  35836. # configure is writing to config.log, and then calls config.status.
  35837. # config.status does its own redirection, appending to config.log.
  35838. # Unfortunately, on DOS this fails, as config.log is still kept open
  35839. # by configure, so config.status won't be able to write to it; its
  35840. # output is simply discarded.  So we exec the FD to /dev/null,
  35841. # effectively closing config.log, so it can be properly (re)opened and
  35842. # appended to by config.status.  When coming back to configure, we
  35843. # need to make the FD available again.
  35844. if test "$no_create" != yes; then
  35845.   ac_cs_success=:
  35846.   ac_config_status_args=
  35847.   test "$silent" = yes &&
  35848.     ac_config_status_args="$ac_config_status_args --quiet"
  35849.   exec 5>/dev/null
  35850.   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  35851.   exec 5>>config.log
  35852.   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  35853.   # would make configure fail if this is the last instruction.
  35854.   $ac_cs_success || { (exit 1); exit 1; }
  35855. fi
  35856.  
  35857.