home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 July / CMCD0704.ISO / Software / Freeware / Utilitare / VisualBoyAdvance-1.7.2 / configure < prev    next >
Text File  |  2004-05-13  |  283KB  |  9,307 lines

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59.
  4. #
  5. # Copyright (C) 2003 Free Software Foundation, Inc.
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. ## --------------------- ##
  9. ## M4sh Initialization.  ##
  10. ## --------------------- ##
  11.  
  12. # Be Bourne compatible
  13. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  14.   emulate sh
  15.   NULLCMD=:
  16.   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  17.   # is contrary to our usage.  Disable this feature.
  18.   alias -g '${1+"$@"}'='"$@"'
  19. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  20.   set -o posix
  21. fi
  22. DUALCASE=1; export DUALCASE # for MKS sh
  23.  
  24. # Support unset when possible.
  25. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  26.   as_unset=unset
  27. else
  28.   as_unset=false
  29. fi
  30.  
  31.  
  32. # Work around bugs in pre-3.0 UWIN ksh.
  33. $as_unset ENV MAIL MAILPATH
  34. PS1='$ '
  35. PS2='> '
  36. PS4='+ '
  37.  
  38. # NLS nuisances.
  39. for as_var in \
  40.   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  41.   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  42.   LC_TELEPHONE LC_TIME
  43. do
  44.   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  45.     eval $as_var=C; export $as_var
  46.   else
  47.     $as_unset $as_var
  48.   fi
  49. done
  50.  
  51. # Required to use basename.
  52. if expr a : '\(a\)' >/dev/null 2>&1; then
  53.   as_expr=expr
  54. else
  55.   as_expr=false
  56. fi
  57.  
  58. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  59.   as_basename=basename
  60. else
  61.   as_basename=false
  62. fi
  63.  
  64.  
  65. # Name of the executable.
  66. as_me=`$as_basename "$0" ||
  67. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  68.      X"$0" : 'X\(//\)$' \| \
  69.      X"$0" : 'X\(/\)$' \| \
  70.      .     : '\(.\)' 2>/dev/null ||
  71. echo X/"$0" |
  72.     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  73.         /^X\/\(\/\/\)$/{ s//\1/; q; }
  74.         /^X\/\(\/\).*/{ s//\1/; q; }
  75.         s/.*/./; q'`
  76.  
  77.  
  78. # PATH needs CR, and LINENO needs CR and PATH.
  79. # Avoid depending upon Character Ranges.
  80. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  81. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  82. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  83. as_cr_digits='0123456789'
  84. as_cr_alnum=$as_cr_Letters$as_cr_digits
  85.  
  86. # The user is always right.
  87. if test "${PATH_SEPARATOR+set}" != set; then
  88.   echo "#! /bin/sh" >conf$$.sh
  89.   echo  "exit 0"   >>conf$$.sh
  90.   chmod +x conf$$.sh
  91.   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  92.     PATH_SEPARATOR=';'
  93.   else
  94.     PATH_SEPARATOR=:
  95.   fi
  96.   rm -f conf$$.sh
  97. fi
  98.  
  99.  
  100.   as_lineno_1=$LINENO
  101.   as_lineno_2=$LINENO
  102.   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  103.   test "x$as_lineno_1" != "x$as_lineno_2" &&
  104.   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
  105.   # Find who we are.  Look in the path if we contain no path at all
  106.   # relative or not.
  107.   case $0 in
  108.     *[\\/]* ) as_myself=$0 ;;
  109.     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  110. for as_dir in $PATH
  111. do
  112.   IFS=$as_save_IFS
  113.   test -z "$as_dir" && as_dir=.
  114.   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  115. done
  116.  
  117.        ;;
  118.   esac
  119.   # We did not find ourselves, most probably we were run as `sh COMMAND'
  120.   # in which case we are not to be found in the path.
  121.   if test "x$as_myself" = x; then
  122.     as_myself=$0
  123.   fi
  124.   if test ! -f "$as_myself"; then
  125.     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  126.    { (exit 1); exit 1; }; }
  127.   fi
  128.   case $CONFIG_SHELL in
  129.   '')
  130.     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  131. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  132. do
  133.   IFS=$as_save_IFS
  134.   test -z "$as_dir" && as_dir=.
  135.   for as_base in sh bash ksh sh5; do
  136.      case $as_dir in
  137.      /*)
  138.        if ("$as_dir/$as_base" -c '
  139.   as_lineno_1=$LINENO
  140.   as_lineno_2=$LINENO
  141.   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  142.   test "x$as_lineno_1" != "x$as_lineno_2" &&
  143.   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
  144.          $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  145.          $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  146.          CONFIG_SHELL=$as_dir/$as_base
  147.          export CONFIG_SHELL
  148.          exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  149.        fi;;
  150.      esac
  151.        done
  152. done
  153. ;;
  154.   esac
  155.  
  156.   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  157.   # uniformly replaced by the line number.  The first 'sed' inserts a
  158.   # line-number line before each line; the second 'sed' does the real
  159.   # work.  The second script uses 'N' to pair each line-number line
  160.   # with the numbered line, and appends trailing '-' during
  161.   # substitution so that $LINENO is not a special case at line end.
  162.   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  163.   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
  164.   sed '=' <$as_myself |
  165.     sed '
  166.       N
  167.       s,$,-,
  168.       : loop
  169.       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  170.       t loop
  171.       s,-$,,
  172.       s,^['$as_cr_digits']*\n,,
  173.     ' >$as_me.lineno &&
  174.   chmod +x $as_me.lineno ||
  175.     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  176.    { (exit 1); exit 1; }; }
  177.  
  178.   # Don't try to exec as it changes $[0], causing all sort of problems
  179.   # (the dirname of $[0] is not the place where we might find the
  180.   # original and so on.  Autoconf is especially sensible to this).
  181.   . ./$as_me.lineno
  182.   # Exit status is that of the last command.
  183.   exit
  184. }
  185.  
  186.  
  187. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  188.   *c*,-n*) ECHO_N= ECHO_C='
  189. ' ECHO_T='    ' ;;
  190.   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  191.   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
  192. esac
  193.  
  194. if expr a : '\(a\)' >/dev/null 2>&1; then
  195.   as_expr=expr
  196. else
  197.   as_expr=false
  198. fi
  199.  
  200. rm -f conf$$ conf$$.exe conf$$.file
  201. echo >conf$$.file
  202. if ln -s conf$$.file conf$$ 2>/dev/null; then
  203.   # We could just check for DJGPP; but this test a) works b) is more generic
  204.   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  205.   if test -f conf$$.exe; then
  206.     # Don't use ln at all; we don't have any links
  207.     as_ln_s='cp -p'
  208.   else
  209.     as_ln_s='ln -s'
  210.   fi
  211. elif ln conf$$.file conf$$ 2>/dev/null; then
  212.   as_ln_s=ln
  213. else
  214.   as_ln_s='cp -p'
  215. fi
  216. rm -f conf$$ conf$$.exe conf$$.file
  217.  
  218. if mkdir -p . 2>/dev/null; then
  219.   as_mkdir_p=:
  220. else
  221.   test -d ./-p && rmdir ./-p
  222.   as_mkdir_p=false
  223. fi
  224.  
  225. as_executable_p="test -f"
  226.  
  227. # Sed expression to map a string onto a valid CPP name.
  228. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  229.  
  230. # Sed expression to map a string onto a valid variable name.
  231. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  232.  
  233.  
  234. # IFS
  235. # We need space, tab and new line, in precisely that order.
  236. as_nl='
  237. '
  238. IFS="     $as_nl"
  239.  
  240. # CDPATH.
  241. $as_unset CDPATH
  242.  
  243.  
  244. # Name of the host.
  245. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  246. # so uname gets run too.
  247. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  248.  
  249. exec 6>&1
  250.  
  251. #
  252. # Initializations.
  253. #
  254. ac_default_prefix=/usr/local
  255. ac_config_libobj_dir=.
  256. cross_compiling=no
  257. subdirs=
  258. MFLAGS=
  259. MAKEFLAGS=
  260. SHELL=${CONFIG_SHELL-/bin/sh}
  261.  
  262. # Maximum number of lines to put in a shell here document.
  263. # This variable seems obsolete.  It should probably be removed, and
  264. # only ac_max_sed_lines should be used.
  265. : ${ac_max_here_lines=38}
  266.  
  267. # Identity of this package.
  268. PACKAGE_NAME=
  269. PACKAGE_TARNAME=
  270. PACKAGE_VERSION=
  271. PACKAGE_STRING=
  272. PACKAGE_BUGREPORT=
  273.  
  274. ac_unique_file="src/armdis.h"
  275. # Factoring default headers for most tests.
  276. ac_includes_default="\
  277. #include <stdio.h>
  278. #if HAVE_SYS_TYPES_H
  279. # include <sys/types.h>
  280. #endif
  281. #if HAVE_SYS_STAT_H
  282. # include <sys/stat.h>
  283. #endif
  284. #if STDC_HEADERS
  285. # include <stdlib.h>
  286. # include <stddef.h>
  287. #else
  288. # if HAVE_STDLIB_H
  289. #  include <stdlib.h>
  290. # endif
  291. #endif
  292. #if HAVE_STRING_H
  293. # if !STDC_HEADERS && HAVE_MEMORY_H
  294. #  include <memory.h>
  295. # endif
  296. # include <string.h>
  297. #endif
  298. #if HAVE_STRINGS_H
  299. # include <strings.h>
  300. #endif
  301. #if HAVE_INTTYPES_H
  302. # include <inttypes.h>
  303. #else
  304. # if HAVE_STDINT_H
  305. #  include <stdint.h>
  306. # endif
  307. #endif
  308. #if HAVE_UNISTD_H
  309. # include <unistd.h>
  310. #endif"
  311.  
  312. 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os 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 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 YACC LEX LEXLIB LEX_OUTPUT_ROOT CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE RANLIB ac_ct_RANLIB NASM CPP EGREP SDL_CONFIG SDL_CFLAGS SDL_LIBS MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB GETTEXT_PACKAGE PKG_CONFIG GTKMM_CFLAGS GTKMM_LIBS GTKMM_CPPFLAGS VBA_EXTRA VBA_SRC_EXTRA VBA_LIBS LIBOBJS LTLIBOBJS'
  313. ac_subst_files=''
  314.  
  315. # Initialize some variables set by options.
  316. ac_init_help=
  317. ac_init_version=false
  318. # The variables have the same names as the options, with
  319. # dashes changed to underlines.
  320. cache_file=/dev/null
  321. exec_prefix=NONE
  322. no_create=
  323. no_recursion=
  324. prefix=NONE
  325. program_prefix=NONE
  326. program_suffix=NONE
  327. program_transform_name=s,x,x,
  328. silent=
  329. site=
  330. srcdir=
  331. verbose=
  332. x_includes=NONE
  333. x_libraries=NONE
  334.  
  335. # Installation directory options.
  336. # These are left unexpanded so users can "make install exec_prefix=/foo"
  337. # and all the variables that are supposed to be based on exec_prefix
  338. # by default will actually change.
  339. # Use braces instead of parens because sh, perl, etc. also accept them.
  340. bindir='${exec_prefix}/bin'
  341. sbindir='${exec_prefix}/sbin'
  342. libexecdir='${exec_prefix}/libexec'
  343. datadir='${prefix}/share'
  344. sysconfdir='${prefix}/etc'
  345. sharedstatedir='${prefix}/com'
  346. localstatedir='${prefix}/var'
  347. libdir='${exec_prefix}/lib'
  348. includedir='${prefix}/include'
  349. oldincludedir='/usr/include'
  350. infodir='${prefix}/info'
  351. mandir='${prefix}/man'
  352.  
  353. ac_prev=
  354. for ac_option
  355. do
  356.   # If the previous option needs an argument, assign it.
  357.   if test -n "$ac_prev"; then
  358.     eval "$ac_prev=\$ac_option"
  359.     ac_prev=
  360.     continue
  361.   fi
  362.  
  363.   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  364.  
  365.   # Accept the important Cygnus configure options, so we can diagnose typos.
  366.  
  367.   case $ac_option in
  368.  
  369.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  370.     ac_prev=bindir ;;
  371.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  372.     bindir=$ac_optarg ;;
  373.  
  374.   -build | --build | --buil | --bui | --bu)
  375.     ac_prev=build_alias ;;
  376.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  377.     build_alias=$ac_optarg ;;
  378.  
  379.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  380.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  381.     ac_prev=cache_file ;;
  382.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  383.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  384.     cache_file=$ac_optarg ;;
  385.  
  386.   --config-cache | -C)
  387.     cache_file=config.cache ;;
  388.  
  389.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  390.     ac_prev=datadir ;;
  391.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  392.   | --da=*)
  393.     datadir=$ac_optarg ;;
  394.  
  395.   -disable-* | --disable-*)
  396.     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  397.     # Reject names that are not valid shell variable names.
  398.     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  399.       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  400.    { (exit 1); exit 1; }; }
  401.     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  402.     eval "enable_$ac_feature=no" ;;
  403.  
  404.   -enable-* | --enable-*)
  405.     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  406.     # Reject names that are not valid shell variable names.
  407.     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  408.       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  409.    { (exit 1); exit 1; }; }
  410.     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  411.     case $ac_option in
  412.       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  413.       *) ac_optarg=yes ;;
  414.     esac
  415.     eval "enable_$ac_feature='$ac_optarg'" ;;
  416.  
  417.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  418.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  419.   | --exec | --exe | --ex)
  420.     ac_prev=exec_prefix ;;
  421.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  422.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  423.   | --exec=* | --exe=* | --ex=*)
  424.     exec_prefix=$ac_optarg ;;
  425.  
  426.   -gas | --gas | --ga | --g)
  427.     # Obsolete; use --with-gas.
  428.     with_gas=yes ;;
  429.  
  430.   -help | --help | --hel | --he | -h)
  431.     ac_init_help=long ;;
  432.   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  433.     ac_init_help=recursive ;;
  434.   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  435.     ac_init_help=short ;;
  436.  
  437.   -host | --host | --hos | --ho)
  438.     ac_prev=host_alias ;;
  439.   -host=* | --host=* | --hos=* | --ho=*)
  440.     host_alias=$ac_optarg ;;
  441.  
  442.   -includedir | --includedir | --includedi | --included | --include \
  443.   | --includ | --inclu | --incl | --inc)
  444.     ac_prev=includedir ;;
  445.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  446.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  447.     includedir=$ac_optarg ;;
  448.  
  449.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  450.     ac_prev=infodir ;;
  451.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  452.     infodir=$ac_optarg ;;
  453.  
  454.   -libdir | --libdir | --libdi | --libd)
  455.     ac_prev=libdir ;;
  456.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  457.     libdir=$ac_optarg ;;
  458.  
  459.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  460.   | --libexe | --libex | --libe)
  461.     ac_prev=libexecdir ;;
  462.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  463.   | --libexe=* | --libex=* | --libe=*)
  464.     libexecdir=$ac_optarg ;;
  465.  
  466.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  467.   | --localstate | --localstat | --localsta | --localst \
  468.   | --locals | --local | --loca | --loc | --lo)
  469.     ac_prev=localstatedir ;;
  470.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  471.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  472.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  473.     localstatedir=$ac_optarg ;;
  474.  
  475.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  476.     ac_prev=mandir ;;
  477.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  478.     mandir=$ac_optarg ;;
  479.  
  480.   -nfp | --nfp | --nf)
  481.     # Obsolete; use --without-fp.
  482.     with_fp=no ;;
  483.  
  484.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  485.   | --no-cr | --no-c | -n)
  486.     no_create=yes ;;
  487.  
  488.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  489.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  490.     no_recursion=yes ;;
  491.  
  492.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  493.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  494.   | --oldin | --oldi | --old | --ol | --o)
  495.     ac_prev=oldincludedir ;;
  496.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  497.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  498.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  499.     oldincludedir=$ac_optarg ;;
  500.  
  501.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  502.     ac_prev=prefix ;;
  503.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  504.     prefix=$ac_optarg ;;
  505.  
  506.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  507.   | --program-pre | --program-pr | --program-p)
  508.     ac_prev=program_prefix ;;
  509.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  510.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  511.     program_prefix=$ac_optarg ;;
  512.  
  513.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  514.   | --program-suf | --program-su | --program-s)
  515.     ac_prev=program_suffix ;;
  516.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  517.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  518.     program_suffix=$ac_optarg ;;
  519.  
  520.   -program-transform-name | --program-transform-name \
  521.   | --program-transform-nam | --program-transform-na \
  522.   | --program-transform-n | --program-transform- \
  523.   | --program-transform | --program-transfor \
  524.   | --program-transfo | --program-transf \
  525.   | --program-trans | --program-tran \
  526.   | --progr-tra | --program-tr | --program-t)
  527.     ac_prev=program_transform_name ;;
  528.   -program-transform-name=* | --program-transform-name=* \
  529.   | --program-transform-nam=* | --program-transform-na=* \
  530.   | --program-transform-n=* | --program-transform-=* \
  531.   | --program-transform=* | --program-transfor=* \
  532.   | --program-transfo=* | --program-transf=* \
  533.   | --program-trans=* | --program-tran=* \
  534.   | --progr-tra=* | --program-tr=* | --program-t=*)
  535.     program_transform_name=$ac_optarg ;;
  536.  
  537.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  538.   | -silent | --silent | --silen | --sile | --sil)
  539.     silent=yes ;;
  540.  
  541.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  542.     ac_prev=sbindir ;;
  543.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  544.   | --sbi=* | --sb=*)
  545.     sbindir=$ac_optarg ;;
  546.  
  547.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  548.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  549.   | --sharedst | --shareds | --shared | --share | --shar \
  550.   | --sha | --sh)
  551.     ac_prev=sharedstatedir ;;
  552.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  553.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  554.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  555.   | --sha=* | --sh=*)
  556.     sharedstatedir=$ac_optarg ;;
  557.  
  558.   -site | --site | --sit)
  559.     ac_prev=site ;;
  560.   -site=* | --site=* | --sit=*)
  561.     site=$ac_optarg ;;
  562.  
  563.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  564.     ac_prev=srcdir ;;
  565.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  566.     srcdir=$ac_optarg ;;
  567.  
  568.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  569.   | --syscon | --sysco | --sysc | --sys | --sy)
  570.     ac_prev=sysconfdir ;;
  571.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  572.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  573.     sysconfdir=$ac_optarg ;;
  574.  
  575.   -target | --target | --targe | --targ | --tar | --ta | --t)
  576.     ac_prev=target_alias ;;
  577.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  578.     target_alias=$ac_optarg ;;
  579.  
  580.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  581.     verbose=yes ;;
  582.  
  583.   -version | --version | --versio | --versi | --vers | -V)
  584.     ac_init_version=: ;;
  585.  
  586.   -with-* | --with-*)
  587.     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  588.     # Reject names that are not valid shell variable names.
  589.     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  590.       { echo "$as_me: error: invalid package name: $ac_package" >&2
  591.    { (exit 1); exit 1; }; }
  592.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  593.     case $ac_option in
  594.       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  595.       *) ac_optarg=yes ;;
  596.     esac
  597.     eval "with_$ac_package='$ac_optarg'" ;;
  598.  
  599.   -without-* | --without-*)
  600.     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  601.     # Reject names that are not valid shell variable names.
  602.     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  603.       { echo "$as_me: error: invalid package name: $ac_package" >&2
  604.    { (exit 1); exit 1; }; }
  605.     ac_package=`echo $ac_package | sed 's/-/_/g'`
  606.     eval "with_$ac_package=no" ;;
  607.  
  608.   --x)
  609.     # Obsolete; use --with-x.
  610.     with_x=yes ;;
  611.  
  612.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  613.   | --x-incl | --x-inc | --x-in | --x-i)
  614.     ac_prev=x_includes ;;
  615.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  616.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  617.     x_includes=$ac_optarg ;;
  618.  
  619.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  620.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  621.     ac_prev=x_libraries ;;
  622.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  623.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  624.     x_libraries=$ac_optarg ;;
  625.  
  626.   -*) { echo "$as_me: error: unrecognized option: $ac_option
  627. Try \`$0 --help' for more information." >&2
  628.    { (exit 1); exit 1; }; }
  629.     ;;
  630.  
  631.   *=*)
  632.     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  633.     # Reject names that are not valid shell variable names.
  634.     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  635.       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  636.    { (exit 1); exit 1; }; }
  637.     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  638.     eval "$ac_envvar='$ac_optarg'"
  639.     export $ac_envvar ;;
  640.  
  641.   *)
  642.     # FIXME: should be removed in autoconf 3.0.
  643.     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  644.     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  645.       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  646.     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  647.     ;;
  648.  
  649.   esac
  650. done
  651.  
  652. if test -n "$ac_prev"; then
  653.   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  654.   { echo "$as_me: error: missing argument to $ac_option" >&2
  655.    { (exit 1); exit 1; }; }
  656. fi
  657.  
  658. # Be sure to have absolute paths.
  659. for ac_var in exec_prefix prefix
  660. do
  661.   eval ac_val=$`echo $ac_var`
  662.   case $ac_val in
  663.     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  664.     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  665.    { (exit 1); exit 1; }; };;
  666.   esac
  667. done
  668.  
  669. # Be sure to have absolute paths.
  670. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  671.           localstatedir libdir includedir oldincludedir infodir mandir
  672. do
  673.   eval ac_val=$`echo $ac_var`
  674.   case $ac_val in
  675.     [\\/$]* | ?:[\\/]* ) ;;
  676.     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  677.    { (exit 1); exit 1; }; };;
  678.   esac
  679. done
  680.  
  681. # There might be people who depend on the old broken behavior: `$host'
  682. # used to hold the argument of --host etc.
  683. # FIXME: To remove some day.
  684. build=$build_alias
  685. host=$host_alias
  686. target=$target_alias
  687.  
  688. # FIXME: To remove some day.
  689. if test "x$host_alias" != x; then
  690.   if test "x$build_alias" = x; then
  691.     cross_compiling=maybe
  692.     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  693.     If a cross compiler is detected then cross compile mode will be used." >&2
  694.   elif test "x$build_alias" != "x$host_alias"; then
  695.     cross_compiling=yes
  696.   fi
  697. fi
  698.  
  699. ac_tool_prefix=
  700. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  701.  
  702. test "$silent" = yes && exec 6>/dev/null
  703.  
  704.  
  705. # Find the source files, if location was not specified.
  706. if test -z "$srcdir"; then
  707.   ac_srcdir_defaulted=yes
  708.   # Try the directory containing this script, then its parent.
  709.   ac_confdir=`(dirname "$0") 2>/dev/null ||
  710. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  711.      X"$0" : 'X\(//\)[^/]' \| \
  712.      X"$0" : 'X\(//\)$' \| \
  713.      X"$0" : 'X\(/\)' \| \
  714.      .     : '\(.\)' 2>/dev/null ||
  715. echo X"$0" |
  716.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  717.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  718.         /^X\(\/\/\)$/{ s//\1/; q; }
  719.         /^X\(\/\).*/{ s//\1/; q; }
  720.         s/.*/./; q'`
  721.   srcdir=$ac_confdir
  722.   if test ! -r $srcdir/$ac_unique_file; then
  723.     srcdir=..
  724.   fi
  725. else
  726.   ac_srcdir_defaulted=no
  727. fi
  728. if test ! -r $srcdir/$ac_unique_file; then
  729.   if test "$ac_srcdir_defaulted" = yes; then
  730.     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  731.    { (exit 1); exit 1; }; }
  732.   else
  733.     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  734.    { (exit 1); exit 1; }; }
  735.   fi
  736. fi
  737. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  738.   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  739.    { (exit 1); exit 1; }; }
  740. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  741. ac_env_build_alias_set=${build_alias+set}
  742. ac_env_build_alias_value=$build_alias
  743. ac_cv_env_build_alias_set=${build_alias+set}
  744. ac_cv_env_build_alias_value=$build_alias
  745. ac_env_host_alias_set=${host_alias+set}
  746. ac_env_host_alias_value=$host_alias
  747. ac_cv_env_host_alias_set=${host_alias+set}
  748. ac_cv_env_host_alias_value=$host_alias
  749. ac_env_target_alias_set=${target_alias+set}
  750. ac_env_target_alias_value=$target_alias
  751. ac_cv_env_target_alias_set=${target_alias+set}
  752. ac_cv_env_target_alias_value=$target_alias
  753. ac_env_CC_set=${CC+set}
  754. ac_env_CC_value=$CC
  755. ac_cv_env_CC_set=${CC+set}
  756. ac_cv_env_CC_value=$CC
  757. ac_env_CFLAGS_set=${CFLAGS+set}
  758. ac_env_CFLAGS_value=$CFLAGS
  759. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  760. ac_cv_env_CFLAGS_value=$CFLAGS
  761. ac_env_LDFLAGS_set=${LDFLAGS+set}
  762. ac_env_LDFLAGS_value=$LDFLAGS
  763. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  764. ac_cv_env_LDFLAGS_value=$LDFLAGS
  765. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  766. ac_env_CPPFLAGS_value=$CPPFLAGS
  767. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  768. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  769. ac_env_CXX_set=${CXX+set}
  770. ac_env_CXX_value=$CXX
  771. ac_cv_env_CXX_set=${CXX+set}
  772. ac_cv_env_CXX_value=$CXX
  773. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  774. ac_env_CXXFLAGS_value=$CXXFLAGS
  775. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  776. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  777. ac_env_CPP_set=${CPP+set}
  778. ac_env_CPP_value=$CPP
  779. ac_cv_env_CPP_set=${CPP+set}
  780. ac_cv_env_CPP_value=$CPP
  781.  
  782. #
  783. # Report the --help message.
  784. #
  785. if test "$ac_init_help" = "long"; then
  786.   # Omit some internal or obsolete options to make the list less imposing.
  787.   # This message is too long to be a string in the A/UX 3.1 sh.
  788.   cat <<_ACEOF
  789. \`configure' configures this package to adapt to many kinds of systems.
  790.  
  791. Usage: $0 [OPTION]... [VAR=VALUE]...
  792.  
  793. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  794. VAR=VALUE.  See below for descriptions of some of the useful variables.
  795.  
  796. Defaults for the options are specified in brackets.
  797.  
  798. Configuration:
  799.   -h, --help              display this help and exit
  800.       --help=short        display options specific to this package
  801.       --help=recursive    display the short help of all the included packages
  802.   -V, --version           display version information and exit
  803.   -q, --quiet, --silent   do not print \`checking...' messages
  804.       --cache-file=FILE   cache test results in FILE [disabled]
  805.   -C, --config-cache      alias for \`--cache-file=config.cache'
  806.   -n, --no-create         do not create output files
  807.       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  808.  
  809. _ACEOF
  810.  
  811.   cat <<_ACEOF
  812. Installation directories:
  813.   --prefix=PREFIX         install architecture-independent files in PREFIX
  814.               [$ac_default_prefix]
  815.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  816.               [PREFIX]
  817.  
  818. By default, \`make install' will install all the files in
  819. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  820. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  821. for instance \`--prefix=\$HOME'.
  822.  
  823. For better control, use the options below.
  824.  
  825. Fine tuning of the installation directories:
  826.   --bindir=DIR           user executables [EPREFIX/bin]
  827.   --sbindir=DIR          system admin executables [EPREFIX/sbin]
  828.   --libexecdir=DIR       program executables [EPREFIX/libexec]
  829.   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
  830.   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  831.   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  832.   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  833.   --libdir=DIR           object code libraries [EPREFIX/lib]
  834.   --includedir=DIR       C header files [PREFIX/include]
  835.   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  836.   --infodir=DIR          info documentation [PREFIX/info]
  837.   --mandir=DIR           man documentation [PREFIX/man]
  838. _ACEOF
  839.  
  840.   cat <<\_ACEOF
  841.  
  842. Program names:
  843.   --program-prefix=PREFIX            prepend PREFIX to installed program names
  844.   --program-suffix=SUFFIX            append SUFFIX to installed program names
  845.   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  846.  
  847. X features:
  848.   --x-includes=DIR    X include files are in DIR
  849.   --x-libraries=DIR   X library files are in DIR
  850.  
  851. System types:
  852.   --build=BUILD     configure for building on BUILD [guessed]
  853.   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  854.   --target=TARGET   configure for building compilers for TARGET [HOST]
  855. _ACEOF
  856. fi
  857.  
  858. if test -n "$ac_init_help"; then
  859.  
  860.   cat <<\_ACEOF
  861.  
  862. Optional Features:
  863.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  864.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  865.   --enable-c-core         enable C core (default is no on x86 targets)
  866.   --enable-profiling      enable profiling (default is yes)
  867.   --enable-sdl            build the SDL interface (default is yes)
  868.   --enable-gtk=[VERSION]  build the GTK+ interface (default is no)
  869.   --enable-dev            enable development features (default is yes)
  870.   --disable-dependency-tracking Speeds up one-time builds
  871.   --enable-dependency-tracking  Do not reject slow dependency extractors
  872.   --disable-sdltest       Do not try to compile and run a test SDL program
  873.   --disable-nls           do not use Native Language Support
  874.   --disable-rpath         do not hardcode runtime library paths
  875.  
  876. Optional Packages:
  877.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  878.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  879.   --with-mmx              use MMX (default is yes on x86 targets)
  880.   --with-x                use the X Window System
  881.   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
  882.   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
  883.   --with-gnu-ld           assume the C compiler uses GNU ld default=no
  884.   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
  885.   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
  886.   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
  887.   --without-libintl-prefix     don't search for libintl in includedir and libdir
  888.  
  889. Some influential environment variables:
  890.   CC          C compiler command
  891.   CFLAGS      C compiler flags
  892.   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  893.               nonstandard directory <lib dir>
  894.   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
  895.               headers in a nonstandard directory <include dir>
  896.   CXX         C++ compiler command
  897.   CXXFLAGS    C++ compiler flags
  898.   CPP         C preprocessor
  899.  
  900. Use these variables to override the choices made by `configure' or to help
  901. it to find libraries and programs with nonstandard names/locations.
  902.  
  903. _ACEOF
  904. fi
  905.  
  906. if test "$ac_init_help" = "recursive"; then
  907.   # If there are subdirs, report their specific --help.
  908.   ac_popdir=`pwd`
  909.   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  910.     test -d $ac_dir || continue
  911.     ac_builddir=.
  912.  
  913. if test "$ac_dir" != .; then
  914.   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  915.   # A "../" for each directory in $ac_dir_suffix.
  916.   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  917. else
  918.   ac_dir_suffix= ac_top_builddir=
  919. fi
  920.  
  921. case $srcdir in
  922.   .)  # No --srcdir option.  We are building in place.
  923.     ac_srcdir=.
  924.     if test -z "$ac_top_builddir"; then
  925.        ac_top_srcdir=.
  926.     else
  927.        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  928.     fi ;;
  929.   [\\/]* | ?:[\\/]* )  # Absolute path.
  930.     ac_srcdir=$srcdir$ac_dir_suffix;
  931.     ac_top_srcdir=$srcdir ;;
  932.   *) # Relative path.
  933.     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  934.     ac_top_srcdir=$ac_top_builddir$srcdir ;;
  935. esac
  936.  
  937. # Do not use `cd foo && pwd` to compute absolute paths, because
  938. # the directories may not exist.
  939. case `pwd` in
  940. .) ac_abs_builddir="$ac_dir";;
  941. *)
  942.   case "$ac_dir" in
  943.   .) ac_abs_builddir=`pwd`;;
  944.   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  945.   *) ac_abs_builddir=`pwd`/"$ac_dir";;
  946.   esac;;
  947. esac
  948. case $ac_abs_builddir in
  949. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  950. *)
  951.   case ${ac_top_builddir}. in
  952.   .) ac_abs_top_builddir=$ac_abs_builddir;;
  953.   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  954.   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  955.   esac;;
  956. esac
  957. case $ac_abs_builddir in
  958. .) ac_abs_srcdir=$ac_srcdir;;
  959. *)
  960.   case $ac_srcdir in
  961.   .) ac_abs_srcdir=$ac_abs_builddir;;
  962.   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  963.   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  964.   esac;;
  965. esac
  966. case $ac_abs_builddir in
  967. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  968. *)
  969.   case $ac_top_srcdir in
  970.   .) ac_abs_top_srcdir=$ac_abs_builddir;;
  971.   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  972.   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  973.   esac;;
  974. esac
  975.  
  976.     cd $ac_dir
  977.     # Check for guested configure; otherwise get Cygnus style configure.
  978.     if test -f $ac_srcdir/configure.gnu; then
  979.       echo
  980.       $SHELL $ac_srcdir/configure.gnu  --help=recursive
  981.     elif test -f $ac_srcdir/configure; then
  982.       echo
  983.       $SHELL $ac_srcdir/configure  --help=recursive
  984.     elif test -f $ac_srcdir/configure.ac ||
  985.        test -f $ac_srcdir/configure.in; then
  986.       echo
  987.       $ac_configure --help
  988.     else
  989.       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  990.     fi
  991.     cd "$ac_popdir"
  992.   done
  993. fi
  994.  
  995. test -n "$ac_init_help" && exit 0
  996. if $ac_init_version; then
  997.   cat <<\_ACEOF
  998.  
  999. Copyright (C) 2003 Free Software Foundation, Inc.
  1000. This configure script is free software; the Free Software Foundation
  1001. gives unlimited permission to copy, distribute and modify it.
  1002. _ACEOF
  1003.   exit 0
  1004. fi
  1005. exec 5>config.log
  1006. cat >&5 <<_ACEOF
  1007. This file contains any messages produced by compilers while
  1008. running configure, to aid debugging if configure makes a mistake.
  1009.  
  1010. It was created by $as_me, which was
  1011. generated by GNU Autoconf 2.59.  Invocation command line was
  1012.  
  1013.   $ $0 $@
  1014.  
  1015. _ACEOF
  1016. {
  1017. cat <<_ASUNAME
  1018. ## --------- ##
  1019. ## Platform. ##
  1020. ## --------- ##
  1021.  
  1022. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1023. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1024. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1025. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1026. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1027.  
  1028. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1029. /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  1030.  
  1031. /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  1032. /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  1033. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1034. hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
  1035. /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  1036. /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  1037. /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  1038.  
  1039. _ASUNAME
  1040.  
  1041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1042. for as_dir in $PATH
  1043. do
  1044.   IFS=$as_save_IFS
  1045.   test -z "$as_dir" && as_dir=.
  1046.   echo "PATH: $as_dir"
  1047. done
  1048.  
  1049. } >&5
  1050.  
  1051. cat >&5 <<_ACEOF
  1052.  
  1053.  
  1054. ## ----------- ##
  1055. ## Core tests. ##
  1056. ## ----------- ##
  1057.  
  1058. _ACEOF
  1059.  
  1060.  
  1061. # Keep a trace of the command line.
  1062. # Strip out --no-create and --no-recursion so they do not pile up.
  1063. # Strip out --silent because we don't want to record it for future runs.
  1064. # Also quote any args containing shell meta-characters.
  1065. # Make two passes to allow for proper duplicate-argument suppression.
  1066. ac_configure_args=
  1067. ac_configure_args0=
  1068. ac_configure_args1=
  1069. ac_sep=
  1070. ac_must_keep_next=false
  1071. for ac_pass in 1 2
  1072. do
  1073.   for ac_arg
  1074.   do
  1075.     case $ac_arg in
  1076.     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1077.     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1078.     | -silent | --silent | --silen | --sile | --sil)
  1079.       continue ;;
  1080.     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1081.       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1082.     esac
  1083.     case $ac_pass in
  1084.     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1085.     2)
  1086.       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1087.       if test $ac_must_keep_next = true; then
  1088.     ac_must_keep_next=false # Got value, back to normal.
  1089.       else
  1090.     case $ac_arg in
  1091.       *=* | --config-cache | -C | -disable-* | --disable-* \
  1092.       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1093.       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1094.       | -with-* | --with-* | -without-* | --without-* | --x)
  1095.         case "$ac_configure_args0 " in
  1096.           "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1097.         esac
  1098.         ;;
  1099.       -* ) ac_must_keep_next=true ;;
  1100.     esac
  1101.       fi
  1102.       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1103.       # Get rid of the leading space.
  1104.       ac_sep=" "
  1105.       ;;
  1106.     esac
  1107.   done
  1108. done
  1109. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1110. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1111.  
  1112. # When interrupted or exit'd, cleanup temporary files, and complete
  1113. # config.log.  We remove comments because anyway the quotes in there
  1114. # would cause problems or look ugly.
  1115. # WARNING: Be sure not to use single quotes in there, as some shells,
  1116. # such as our DU 5.0 friend, will then `close' the trap.
  1117. trap 'exit_status=$?
  1118.   # Save into config.log some information that might help in debugging.
  1119.   {
  1120.     echo
  1121.  
  1122.     cat <<\_ASBOX
  1123. ## ---------------- ##
  1124. ## Cache variables. ##
  1125. ## ---------------- ##
  1126. _ASBOX
  1127.     echo
  1128.     # The following way of writing the cache mishandles newlines in values,
  1129. {
  1130.   (set) 2>&1 |
  1131.     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1132.     *ac_space=\ *)
  1133.       sed -n \
  1134.     "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1135.       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1136.       ;;
  1137.     *)
  1138.       sed -n \
  1139.     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1140.       ;;
  1141.     esac;
  1142. }
  1143.     echo
  1144.  
  1145.     cat <<\_ASBOX
  1146. ## ----------------- ##
  1147. ## Output variables. ##
  1148. ## ----------------- ##
  1149. _ASBOX
  1150.     echo
  1151.     for ac_var in $ac_subst_vars
  1152.     do
  1153.       eval ac_val=$`echo $ac_var`
  1154.       echo "$ac_var='"'"'$ac_val'"'"'"
  1155.     done | sort
  1156.     echo
  1157.  
  1158.     if test -n "$ac_subst_files"; then
  1159.       cat <<\_ASBOX
  1160. ## ------------- ##
  1161. ## Output files. ##
  1162. ## ------------- ##
  1163. _ASBOX
  1164.       echo
  1165.       for ac_var in $ac_subst_files
  1166.       do
  1167.     eval ac_val=$`echo $ac_var`
  1168.     echo "$ac_var='"'"'$ac_val'"'"'"
  1169.       done | sort
  1170.       echo
  1171.     fi
  1172.  
  1173.     if test -s confdefs.h; then
  1174.       cat <<\_ASBOX
  1175. ## ----------- ##
  1176. ## confdefs.h. ##
  1177. ## ----------- ##
  1178. _ASBOX
  1179.       echo
  1180.       sed "/^$/d" confdefs.h | sort
  1181.       echo
  1182.     fi
  1183.     test "$ac_signal" != 0 &&
  1184.       echo "$as_me: caught signal $ac_signal"
  1185.     echo "$as_me: exit $exit_status"
  1186.   } >&5
  1187.   rm -f core *.core &&
  1188.   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1189.     exit $exit_status
  1190.      ' 0
  1191. for ac_signal in 1 2 13 15; do
  1192.   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1193. done
  1194. ac_signal=0
  1195.  
  1196. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1197. rm -rf conftest* confdefs.h
  1198. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1199. echo >confdefs.h
  1200.  
  1201. # Predefined preprocessor variables.
  1202.  
  1203. cat >>confdefs.h <<_ACEOF
  1204. #define PACKAGE_NAME "$PACKAGE_NAME"
  1205. _ACEOF
  1206.  
  1207.  
  1208. cat >>confdefs.h <<_ACEOF
  1209. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1210. _ACEOF
  1211.  
  1212.  
  1213. cat >>confdefs.h <<_ACEOF
  1214. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1215. _ACEOF
  1216.  
  1217.  
  1218. cat >>confdefs.h <<_ACEOF
  1219. #define PACKAGE_STRING "$PACKAGE_STRING"
  1220. _ACEOF
  1221.  
  1222.  
  1223. cat >>confdefs.h <<_ACEOF
  1224. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1225. _ACEOF
  1226.  
  1227.  
  1228. # Let the site file select an alternate cache file if it wants to.
  1229. # Prefer explicitly selected file to automatically selected ones.
  1230. if test -z "$CONFIG_SITE"; then
  1231.   if test "x$prefix" != xNONE; then
  1232.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1233.   else
  1234.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1235.   fi
  1236. fi
  1237. for ac_site_file in $CONFIG_SITE; do
  1238.   if test -r "$ac_site_file"; then
  1239.     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1240. echo "$as_me: loading site script $ac_site_file" >&6;}
  1241.     sed 's/^/| /' "$ac_site_file" >&5
  1242.     . "$ac_site_file"
  1243.   fi
  1244. done
  1245.  
  1246. if test -r "$cache_file"; then
  1247.   # Some versions of bash will fail to source /dev/null (special
  1248.   # files actually), so we avoid doing that.
  1249.   if test -f "$cache_file"; then
  1250.     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1251. echo "$as_me: loading cache $cache_file" >&6;}
  1252.     case $cache_file in
  1253.       [\\/]* | ?:[\\/]* ) . $cache_file;;
  1254.       *)                      . ./$cache_file;;
  1255.     esac
  1256.   fi
  1257. else
  1258.   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1259. echo "$as_me: creating cache $cache_file" >&6;}
  1260.   >$cache_file
  1261. fi
  1262.  
  1263. # Check that the precious variables saved in the cache have kept the same
  1264. # value.
  1265. ac_cache_corrupted=false
  1266. for ac_var in `(set) 2>&1 |
  1267.            sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1268.   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1269.   eval ac_new_set=\$ac_env_${ac_var}_set
  1270.   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1271.   eval ac_new_val="\$ac_env_${ac_var}_value"
  1272.   case $ac_old_set,$ac_new_set in
  1273.     set,)
  1274.       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1275. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1276.       ac_cache_corrupted=: ;;
  1277.     ,set)
  1278.       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1279. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1280.       ac_cache_corrupted=: ;;
  1281.     ,);;
  1282.     *)
  1283.       if test "x$ac_old_val" != "x$ac_new_val"; then
  1284.     { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1285. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1286.     { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
  1287. echo "$as_me:   former value:  $ac_old_val" >&2;}
  1288.     { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
  1289. echo "$as_me:   current value: $ac_new_val" >&2;}
  1290.     ac_cache_corrupted=:
  1291.       fi;;
  1292.   esac
  1293.   # Pass precious variables to config.status.
  1294.   if test "$ac_new_set" = set; then
  1295.     case $ac_new_val in
  1296.     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1297.       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1298.     *) ac_arg=$ac_var=$ac_new_val ;;
  1299.     esac
  1300.     case " $ac_configure_args " in
  1301.       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  1302.       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1303.     esac
  1304.   fi
  1305. done
  1306. if $ac_cache_corrupted; then
  1307.   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1308. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1309.   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1310. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1311.    { (exit 1); exit 1; }; }
  1312. fi
  1313.  
  1314. ac_ext=c
  1315. ac_cpp='$CPP $CPPFLAGS'
  1316. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1317. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1318. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1319.  
  1320.  
  1321.  
  1322.  
  1323.  
  1324.  
  1325.  
  1326.  
  1327.  
  1328.  
  1329.  
  1330.  
  1331.  
  1332.  
  1333.  
  1334.  
  1335.  
  1336.  
  1337.  
  1338.  
  1339. ac_aux_dir=
  1340. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1341.   if test -f $ac_dir/install-sh; then
  1342.     ac_aux_dir=$ac_dir
  1343.     ac_install_sh="$ac_aux_dir/install-sh -c"
  1344.     break
  1345.   elif test -f $ac_dir/install.sh; then
  1346.     ac_aux_dir=$ac_dir
  1347.     ac_install_sh="$ac_aux_dir/install.sh -c"
  1348.     break
  1349.   elif test -f $ac_dir/shtool; then
  1350.     ac_aux_dir=$ac_dir
  1351.     ac_install_sh="$ac_aux_dir/shtool install -c"
  1352.     break
  1353.   fi
  1354. done
  1355. if test -z "$ac_aux_dir"; then
  1356.   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1357. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1358.    { (exit 1); exit 1; }; }
  1359. fi
  1360. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1361. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1362. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1363.  
  1364. # Make sure we can run config.sub.
  1365. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1366.   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1367. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1368.    { (exit 1); exit 1; }; }
  1369.  
  1370. echo "$as_me:$LINENO: checking build system type" >&5
  1371. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1372. if test "${ac_cv_build+set}" = set; then
  1373.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1374. else
  1375.   ac_cv_build_alias=$build_alias
  1376. test -z "$ac_cv_build_alias" &&
  1377.   ac_cv_build_alias=`$ac_config_guess`
  1378. test -z "$ac_cv_build_alias" &&
  1379.   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1380. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1381.    { (exit 1); exit 1; }; }
  1382. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1383.   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1384. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1385.    { (exit 1); exit 1; }; }
  1386.  
  1387. fi
  1388. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1389. echo "${ECHO_T}$ac_cv_build" >&6
  1390. build=$ac_cv_build
  1391. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1392. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1393. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1394.  
  1395.  
  1396. echo "$as_me:$LINENO: checking host system type" >&5
  1397. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1398. if test "${ac_cv_host+set}" = set; then
  1399.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1400. else
  1401.   ac_cv_host_alias=$host_alias
  1402. test -z "$ac_cv_host_alias" &&
  1403.   ac_cv_host_alias=$ac_cv_build_alias
  1404. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1405.   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1406. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1407.    { (exit 1); exit 1; }; }
  1408.  
  1409. fi
  1410. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1411. echo "${ECHO_T}$ac_cv_host" >&6
  1412. host=$ac_cv_host
  1413. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1414. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1415. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1416.  
  1417.  
  1418. echo "$as_me:$LINENO: checking target system type" >&5
  1419. echo $ECHO_N "checking target system type... $ECHO_C" >&6
  1420. if test "${ac_cv_target+set}" = set; then
  1421.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1422. else
  1423.   ac_cv_target_alias=$target_alias
  1424. test "x$ac_cv_target_alias" = "x" &&
  1425.   ac_cv_target_alias=$ac_cv_host_alias
  1426. ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
  1427.   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
  1428. echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
  1429.    { (exit 1); exit 1; }; }
  1430.  
  1431. fi
  1432. echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1433. echo "${ECHO_T}$ac_cv_target" >&6
  1434. target=$ac_cv_target
  1435. target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1436. target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1437. target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1438.  
  1439.  
  1440. # The aliases save the names the user supplied, while $host etc.
  1441. # will get canonicalized.
  1442. test -n "$target_alias" &&
  1443.   test "$program_prefix$program_suffix$program_transform_name" = \
  1444.     NONENONEs,x,x, &&
  1445.   program_prefix=${target_alias}-
  1446.  
  1447. case "$target" in
  1448.   i?86-*-*)
  1449.     VBA_USE_C_CORE=no
  1450.     VBA_USE_MMX=yes
  1451.     ;;
  1452.   *)
  1453.     VBA_USE_C_CORE=yes
  1454.     VBA_USE_MMX=no
  1455.     ;;
  1456. esac
  1457.  
  1458. am__api_version="1.7"
  1459. # Find a good install program.  We prefer a C program (faster),
  1460. # so one script is as good as another.  But avoid the broken or
  1461. # incompatible versions:
  1462. # SysV /etc/install, /usr/sbin/install
  1463. # SunOS /usr/etc/install
  1464. # IRIX /sbin/install
  1465. # AIX /bin/install
  1466. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1467. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1468. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1469. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1470. # OS/2's system install, which has a completely different semantic
  1471. # ./install, which can be erroneously created by make from ./install.sh.
  1472. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1473. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1474. if test -z "$INSTALL"; then
  1475. if test "${ac_cv_path_install+set}" = set; then
  1476.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1477. else
  1478.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1479. for as_dir in $PATH
  1480. do
  1481.   IFS=$as_save_IFS
  1482.   test -z "$as_dir" && as_dir=.
  1483.   # Account for people who put trailing slashes in PATH elements.
  1484. case $as_dir/ in
  1485.   ./ | .// | /cC/* | \
  1486.   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1487.   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1488.   /usr/ucb/* ) ;;
  1489.   *)
  1490.     # OSF1 and SCO ODT 3.0 have their own names for install.
  1491.     # Don't use installbsd from OSF since it installs stuff as root
  1492.     # by default.
  1493.     for ac_prog in ginstall scoinst install; do
  1494.       for ac_exec_ext in '' $ac_executable_extensions; do
  1495.     if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1496.       if test $ac_prog = install &&
  1497.         grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1498.         # AIX install.  It has an incompatible calling convention.
  1499.         :
  1500.       elif test $ac_prog = install &&
  1501.         grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1502.         # program-specific install script used by HP pwplus--don't use.
  1503.         :
  1504.       else
  1505.         ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1506.         break 3
  1507.       fi
  1508.     fi
  1509.       done
  1510.     done
  1511.     ;;
  1512. esac
  1513. done
  1514.  
  1515.  
  1516. fi
  1517.   if test "${ac_cv_path_install+set}" = set; then
  1518.     INSTALL=$ac_cv_path_install
  1519.   else
  1520.     # As a last resort, use the slow shell script.  We don't cache a
  1521.     # path for INSTALL within a source directory, because that will
  1522.     # break other packages using the cache if that directory is
  1523.     # removed, or if the path is relative.
  1524.     INSTALL=$ac_install_sh
  1525.   fi
  1526. fi
  1527. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1528. echo "${ECHO_T}$INSTALL" >&6
  1529.  
  1530. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1531. # It thinks the first close brace ends the variable substitution.
  1532. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1533.  
  1534. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1535.  
  1536. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1537.  
  1538. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1539. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1540. # Just in case
  1541. sleep 1
  1542. echo timestamp > conftest.file
  1543. # Do `set' in a subshell so we don't clobber the current shell's
  1544. # arguments.  Must try -L first in case configure is actually a
  1545. # symlink; some systems play weird games with the mod time of symlinks
  1546. # (eg FreeBSD returns the mod time of the symlink's containing
  1547. # directory).
  1548. if (
  1549.    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1550.    if test "$*" = "X"; then
  1551.       # -L didn't work.
  1552.       set X `ls -t $srcdir/configure conftest.file`
  1553.    fi
  1554.    rm -f conftest.file
  1555.    if test "$*" != "X $srcdir/configure conftest.file" \
  1556.       && test "$*" != "X conftest.file $srcdir/configure"; then
  1557.  
  1558.       # If neither matched, then we have a broken ls.  This can happen
  1559.       # if, for instance, CONFIG_SHELL is bash and it inherits a
  1560.       # broken ls alias from the environment.  This has actually
  1561.       # happened.  Such a system could not be considered "sane".
  1562.       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
  1563. alias in your environment" >&5
  1564. echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
  1565. alias in your environment" >&2;}
  1566.    { (exit 1); exit 1; }; }
  1567.    fi
  1568.  
  1569.    test "$2" = conftest.file
  1570.    )
  1571. then
  1572.    # Ok.
  1573.    :
  1574. else
  1575.    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1576. Check your system clock" >&5
  1577. echo "$as_me: error: newly created file is older than distributed files!
  1578. Check your system clock" >&2;}
  1579.    { (exit 1); exit 1; }; }
  1580. fi
  1581. echo "$as_me:$LINENO: result: yes" >&5
  1582. echo "${ECHO_T}yes" >&6
  1583. test "$program_prefix" != NONE &&
  1584.   program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1585. # Use a double $ so make ignores it.
  1586. test "$program_suffix" != NONE &&
  1587.   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1588. # Double any \ or $.  echo might interpret backslashes.
  1589. # By default was `s,x,x', remove it if useless.
  1590. cat <<\_ACEOF >conftest.sed
  1591. s/[\\$]/&&/g;s/;s,x,x,$//
  1592. _ACEOF
  1593. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1594. rm conftest.sed
  1595.  
  1596.  
  1597. # expand $ac_aux_dir to an absolute path
  1598. am_aux_dir=`cd $ac_aux_dir && pwd`
  1599.  
  1600. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1601. # Use eval to expand $SHELL
  1602. if eval "$MISSING --run true"; then
  1603.   am_missing_run="$MISSING --run "
  1604. else
  1605.   am_missing_run=
  1606.   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1607. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1608. fi
  1609.  
  1610. for ac_prog in gawk mawk nawk awk
  1611. do
  1612.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  1613. set dummy $ac_prog; ac_word=$2
  1614. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1615. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1616. if test "${ac_cv_prog_AWK+set}" = set; then
  1617.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1618. else
  1619.   if test -n "$AWK"; then
  1620.   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1621. else
  1622. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1623. for as_dir in $PATH
  1624. do
  1625.   IFS=$as_save_IFS
  1626.   test -z "$as_dir" && as_dir=.
  1627.   for ac_exec_ext in '' $ac_executable_extensions; do
  1628.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1629.     ac_cv_prog_AWK="$ac_prog"
  1630.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1631.     break 2
  1632.   fi
  1633. done
  1634. done
  1635.  
  1636. fi
  1637. fi
  1638. AWK=$ac_cv_prog_AWK
  1639. if test -n "$AWK"; then
  1640.   echo "$as_me:$LINENO: result: $AWK" >&5
  1641. echo "${ECHO_T}$AWK" >&6
  1642. else
  1643.   echo "$as_me:$LINENO: result: no" >&5
  1644. echo "${ECHO_T}no" >&6
  1645. fi
  1646.  
  1647.   test -n "$AWK" && break
  1648. done
  1649.  
  1650. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1651. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1652. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1653. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1654.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1655. else
  1656.   cat >conftest.make <<\_ACEOF
  1657. all:
  1658.     @echo 'ac_maketemp="$(MAKE)"'
  1659. _ACEOF
  1660. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1661. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1662. if test -n "$ac_maketemp"; then
  1663.   eval ac_cv_prog_make_${ac_make}_set=yes
  1664. else
  1665.   eval ac_cv_prog_make_${ac_make}_set=no
  1666. fi
  1667. rm -f conftest.make
  1668. fi
  1669. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1670.   echo "$as_me:$LINENO: result: yes" >&5
  1671. echo "${ECHO_T}yes" >&6
  1672.   SET_MAKE=
  1673. else
  1674.   echo "$as_me:$LINENO: result: no" >&5
  1675. echo "${ECHO_T}no" >&6
  1676.   SET_MAKE="MAKE=${MAKE-make}"
  1677. fi
  1678.  
  1679. rm -rf .tst 2>/dev/null
  1680. mkdir .tst 2>/dev/null
  1681. if test -d .tst; then
  1682.   am__leading_dot=.
  1683. else
  1684.   am__leading_dot=_
  1685. fi
  1686. rmdir .tst 2>/dev/null
  1687.  
  1688.  # test to see if srcdir already configured
  1689. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1690.    test -f $srcdir/config.status; then
  1691.   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1692. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1693.    { (exit 1); exit 1; }; }
  1694. fi
  1695.  
  1696. # test whether we have cygpath
  1697. if test -z "$CYGPATH_W"; then
  1698.   if (cygpath --version) >/dev/null 2>/dev/null; then
  1699.     CYGPATH_W='cygpath -w'
  1700.   else
  1701.     CYGPATH_W=echo
  1702.   fi
  1703. fi
  1704.  
  1705.  
  1706. # Define the identity of the package.
  1707.  PACKAGE=VisualBoyAdvance
  1708.  VERSION=1.7.2
  1709.  
  1710.  
  1711. cat >>confdefs.h <<_ACEOF
  1712. #define PACKAGE "$PACKAGE"
  1713. _ACEOF
  1714.  
  1715.  
  1716. cat >>confdefs.h <<_ACEOF
  1717. #define VERSION "$VERSION"
  1718. _ACEOF
  1719.  
  1720. # Some tools Automake needs.
  1721.  
  1722. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1723.  
  1724.  
  1725. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1726.  
  1727.  
  1728. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1729.  
  1730.  
  1731. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1732.  
  1733.  
  1734. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1735.  
  1736.  
  1737. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1738.  
  1739. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1740.  
  1741. # Installed binaries are usually stripped using `strip' when the user
  1742. # run `make install-strip'.  However `strip' might not be the right
  1743. # tool to use in cross-compilation environments, therefore Automake
  1744. # will honor the `STRIP' environment variable to overrule this program.
  1745. if test "$cross_compiling" != no; then
  1746.   if test -n "$ac_tool_prefix"; then
  1747.   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1748. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1749. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1750. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1751. if test "${ac_cv_prog_STRIP+set}" = set; then
  1752.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1753. else
  1754.   if test -n "$STRIP"; then
  1755.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1756. else
  1757. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1758. for as_dir in $PATH
  1759. do
  1760.   IFS=$as_save_IFS
  1761.   test -z "$as_dir" && as_dir=.
  1762.   for ac_exec_ext in '' $ac_executable_extensions; do
  1763.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1764.     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1765.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1766.     break 2
  1767.   fi
  1768. done
  1769. done
  1770.  
  1771. fi
  1772. fi
  1773. STRIP=$ac_cv_prog_STRIP
  1774. if test -n "$STRIP"; then
  1775.   echo "$as_me:$LINENO: result: $STRIP" >&5
  1776. echo "${ECHO_T}$STRIP" >&6
  1777. else
  1778.   echo "$as_me:$LINENO: result: no" >&5
  1779. echo "${ECHO_T}no" >&6
  1780. fi
  1781.  
  1782. fi
  1783. if test -z "$ac_cv_prog_STRIP"; then
  1784.   ac_ct_STRIP=$STRIP
  1785.   # Extract the first word of "strip", so it can be a program name with args.
  1786. set dummy strip; ac_word=$2
  1787. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1788. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1789. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1790.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1791. else
  1792.   if test -n "$ac_ct_STRIP"; then
  1793.   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1794. else
  1795. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1796. for as_dir in $PATH
  1797. do
  1798.   IFS=$as_save_IFS
  1799.   test -z "$as_dir" && as_dir=.
  1800.   for ac_exec_ext in '' $ac_executable_extensions; do
  1801.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1802.     ac_cv_prog_ac_ct_STRIP="strip"
  1803.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1804.     break 2
  1805.   fi
  1806. done
  1807. done
  1808.  
  1809.   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1810. fi
  1811. fi
  1812. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1813. if test -n "$ac_ct_STRIP"; then
  1814.   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1815. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1816. else
  1817.   echo "$as_me:$LINENO: result: no" >&5
  1818. echo "${ECHO_T}no" >&6
  1819. fi
  1820.  
  1821.   STRIP=$ac_ct_STRIP
  1822. else
  1823.   STRIP="$ac_cv_prog_STRIP"
  1824. fi
  1825.  
  1826. fi
  1827. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1828.  
  1829. # We need awk for the "check" target.  The system "awk" is bad on
  1830. # some platforms.
  1831.  
  1832.  
  1833.  
  1834.  
  1835. # Check whether --enable-c-core or --disable-c-core was given.
  1836. if test "${enable_c_core+set}" = set; then
  1837.   enableval="$enable_c_core"
  1838.  
  1839. else
  1840.   enable_c_core=$VBA_USE_C_CORE
  1841. fi;
  1842.  
  1843. # Check whether --enable-profiling or --disable-profiling was given.
  1844. if test "${enable_profiling+set}" = set; then
  1845.   enableval="$enable_profiling"
  1846.  
  1847. else
  1848.   enable_profiling=yes
  1849. fi;
  1850.  
  1851.  
  1852. # Check whether --with-mmx or --without-mmx was given.
  1853. if test "${with_mmx+set}" = set; then
  1854.   withval="$with_mmx"
  1855.  
  1856. else
  1857.   with_mmx=$VBA_USE_MMX
  1858. fi;
  1859.  
  1860. # Check whether --enable-sdl or --disable-sdl was given.
  1861. if test "${enable_sdl+set}" = set; then
  1862.   enableval="$enable_sdl"
  1863.  
  1864. else
  1865.   enable_sdl=yes
  1866. fi;
  1867.  
  1868. # Check whether --enable-gtk or --disable-gtk was given.
  1869. if test "${enable_gtk+set}" = set; then
  1870.   enableval="$enable_gtk"
  1871.  
  1872. if test "x$enable_gtk" != xno; then
  1873.   enable_gtk=yes
  1874.   if test "x$enableval" = xyes; then
  1875.     gtk_version=2.0
  1876.   else
  1877.     gtk_version=$enableval
  1878.   fi
  1879. fi
  1880.  
  1881. else
  1882.  
  1883. enable_gtk=no
  1884.  
  1885. fi;
  1886.  
  1887. # Check whether --enable-dev or --disable-dev was given.
  1888. if test "${enable_dev+set}" = set; then
  1889.   enableval="$enable_dev"
  1890.  
  1891. else
  1892.   enable_dev=yes
  1893. fi;
  1894.  
  1895. ac_ext=c
  1896. ac_cpp='$CPP $CPPFLAGS'
  1897. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1898. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1899. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1900. if test -n "$ac_tool_prefix"; then
  1901.   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1902. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1903. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1904. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1905. if test "${ac_cv_prog_CC+set}" = set; then
  1906.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1907. else
  1908.   if test -n "$CC"; then
  1909.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1910. else
  1911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1912. for as_dir in $PATH
  1913. do
  1914.   IFS=$as_save_IFS
  1915.   test -z "$as_dir" && as_dir=.
  1916.   for ac_exec_ext in '' $ac_executable_extensions; do
  1917.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1918.     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1919.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1920.     break 2
  1921.   fi
  1922. done
  1923. done
  1924.  
  1925. fi
  1926. fi
  1927. CC=$ac_cv_prog_CC
  1928. if test -n "$CC"; then
  1929.   echo "$as_me:$LINENO: result: $CC" >&5
  1930. echo "${ECHO_T}$CC" >&6
  1931. else
  1932.   echo "$as_me:$LINENO: result: no" >&5
  1933. echo "${ECHO_T}no" >&6
  1934. fi
  1935.  
  1936. fi
  1937. if test -z "$ac_cv_prog_CC"; then
  1938.   ac_ct_CC=$CC
  1939.   # Extract the first word of "gcc", so it can be a program name with args.
  1940. set dummy gcc; ac_word=$2
  1941. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1942. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1943. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1944.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1945. else
  1946.   if test -n "$ac_ct_CC"; then
  1947.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1948. else
  1949. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1950. for as_dir in $PATH
  1951. do
  1952.   IFS=$as_save_IFS
  1953.   test -z "$as_dir" && as_dir=.
  1954.   for ac_exec_ext in '' $ac_executable_extensions; do
  1955.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1956.     ac_cv_prog_ac_ct_CC="gcc"
  1957.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1958.     break 2
  1959.   fi
  1960. done
  1961. done
  1962.  
  1963. fi
  1964. fi
  1965. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1966. if test -n "$ac_ct_CC"; then
  1967.   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1968. echo "${ECHO_T}$ac_ct_CC" >&6
  1969. else
  1970.   echo "$as_me:$LINENO: result: no" >&5
  1971. echo "${ECHO_T}no" >&6
  1972. fi
  1973.  
  1974.   CC=$ac_ct_CC
  1975. else
  1976.   CC="$ac_cv_prog_CC"
  1977. fi
  1978.  
  1979. if test -z "$CC"; then
  1980.   if test -n "$ac_tool_prefix"; then
  1981.   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1982. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1983. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1984. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1985. if test "${ac_cv_prog_CC+set}" = set; then
  1986.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1987. else
  1988.   if test -n "$CC"; then
  1989.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1990. else
  1991. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1992. for as_dir in $PATH
  1993. do
  1994.   IFS=$as_save_IFS
  1995.   test -z "$as_dir" && as_dir=.
  1996.   for ac_exec_ext in '' $ac_executable_extensions; do
  1997.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1998.     ac_cv_prog_CC="${ac_tool_prefix}cc"
  1999.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2000.     break 2
  2001.   fi
  2002. done
  2003. done
  2004.  
  2005. fi
  2006. fi
  2007. CC=$ac_cv_prog_CC
  2008. if test -n "$CC"; then
  2009.   echo "$as_me:$LINENO: result: $CC" >&5
  2010. echo "${ECHO_T}$CC" >&6
  2011. else
  2012.   echo "$as_me:$LINENO: result: no" >&5
  2013. echo "${ECHO_T}no" >&6
  2014. fi
  2015.  
  2016. fi
  2017. if test -z "$ac_cv_prog_CC"; then
  2018.   ac_ct_CC=$CC
  2019.   # Extract the first word of "cc", so it can be a program name with args.
  2020. set dummy cc; ac_word=$2
  2021. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2022. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2023. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2024.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2025. else
  2026.   if test -n "$ac_ct_CC"; then
  2027.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2028. else
  2029. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2030. for as_dir in $PATH
  2031. do
  2032.   IFS=$as_save_IFS
  2033.   test -z "$as_dir" && as_dir=.
  2034.   for ac_exec_ext in '' $ac_executable_extensions; do
  2035.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2036.     ac_cv_prog_ac_ct_CC="cc"
  2037.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2038.     break 2
  2039.   fi
  2040. done
  2041. done
  2042.  
  2043. fi
  2044. fi
  2045. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2046. if test -n "$ac_ct_CC"; then
  2047.   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2048. echo "${ECHO_T}$ac_ct_CC" >&6
  2049. else
  2050.   echo "$as_me:$LINENO: result: no" >&5
  2051. echo "${ECHO_T}no" >&6
  2052. fi
  2053.  
  2054.   CC=$ac_ct_CC
  2055. else
  2056.   CC="$ac_cv_prog_CC"
  2057. fi
  2058.  
  2059. fi
  2060. if test -z "$CC"; then
  2061.   # Extract the first word of "cc", so it can be a program name with args.
  2062. set dummy cc; ac_word=$2
  2063. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2064. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2065. if test "${ac_cv_prog_CC+set}" = set; then
  2066.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2067. else
  2068.   if test -n "$CC"; then
  2069.   ac_cv_prog_CC="$CC" # Let the user override the test.
  2070. else
  2071.   ac_prog_rejected=no
  2072. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2073. for as_dir in $PATH
  2074. do
  2075.   IFS=$as_save_IFS
  2076.   test -z "$as_dir" && as_dir=.
  2077.   for ac_exec_ext in '' $ac_executable_extensions; do
  2078.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2079.     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2080.        ac_prog_rejected=yes
  2081.        continue
  2082.      fi
  2083.     ac_cv_prog_CC="cc"
  2084.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2085.     break 2
  2086.   fi
  2087. done
  2088. done
  2089.  
  2090. if test $ac_prog_rejected = yes; then
  2091.   # We found a bogon in the path, so make sure we never use it.
  2092.   set dummy $ac_cv_prog_CC
  2093.   shift
  2094.   if test $# != 0; then
  2095.     # We chose a different compiler from the bogus one.
  2096.     # However, it has the same basename, so the bogon will be chosen
  2097.     # first if we set CC to just the basename; use the full file name.
  2098.     shift
  2099.     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2100.   fi
  2101. fi
  2102. fi
  2103. fi
  2104. CC=$ac_cv_prog_CC
  2105. if test -n "$CC"; then
  2106.   echo "$as_me:$LINENO: result: $CC" >&5
  2107. echo "${ECHO_T}$CC" >&6
  2108. else
  2109.   echo "$as_me:$LINENO: result: no" >&5
  2110. echo "${ECHO_T}no" >&6
  2111. fi
  2112.  
  2113. fi
  2114. if test -z "$CC"; then
  2115.   if test -n "$ac_tool_prefix"; then
  2116.   for ac_prog in cl
  2117.   do
  2118.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2119. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2120. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2121. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2122. if test "${ac_cv_prog_CC+set}" = set; then
  2123.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2124. else
  2125.   if test -n "$CC"; then
  2126.   ac_cv_prog_CC="$CC" # Let the user override the test.
  2127. else
  2128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2129. for as_dir in $PATH
  2130. do
  2131.   IFS=$as_save_IFS
  2132.   test -z "$as_dir" && as_dir=.
  2133.   for ac_exec_ext in '' $ac_executable_extensions; do
  2134.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2135.     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2136.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2137.     break 2
  2138.   fi
  2139. done
  2140. done
  2141.  
  2142. fi
  2143. fi
  2144. CC=$ac_cv_prog_CC
  2145. if test -n "$CC"; then
  2146.   echo "$as_me:$LINENO: result: $CC" >&5
  2147. echo "${ECHO_T}$CC" >&6
  2148. else
  2149.   echo "$as_me:$LINENO: result: no" >&5
  2150. echo "${ECHO_T}no" >&6
  2151. fi
  2152.  
  2153.     test -n "$CC" && break
  2154.   done
  2155. fi
  2156. if test -z "$CC"; then
  2157.   ac_ct_CC=$CC
  2158.   for ac_prog in cl
  2159. do
  2160.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2161. set dummy $ac_prog; ac_word=$2
  2162. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2163. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2164. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2165.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2166. else
  2167.   if test -n "$ac_ct_CC"; then
  2168.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2169. else
  2170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2171. for as_dir in $PATH
  2172. do
  2173.   IFS=$as_save_IFS
  2174.   test -z "$as_dir" && as_dir=.
  2175.   for ac_exec_ext in '' $ac_executable_extensions; do
  2176.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2177.     ac_cv_prog_ac_ct_CC="$ac_prog"
  2178.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2179.     break 2
  2180.   fi
  2181. done
  2182. done
  2183.  
  2184. fi
  2185. fi
  2186. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2187. if test -n "$ac_ct_CC"; then
  2188.   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2189. echo "${ECHO_T}$ac_ct_CC" >&6
  2190. else
  2191.   echo "$as_me:$LINENO: result: no" >&5
  2192. echo "${ECHO_T}no" >&6
  2193. fi
  2194.  
  2195.   test -n "$ac_ct_CC" && break
  2196. done
  2197.  
  2198.   CC=$ac_ct_CC
  2199. fi
  2200.  
  2201. fi
  2202.  
  2203.  
  2204. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2205. See \`config.log' for more details." >&5
  2206. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2207. See \`config.log' for more details." >&2;}
  2208.    { (exit 1); exit 1; }; }
  2209.  
  2210. # Provide some information about the compiler.
  2211. echo "$as_me:$LINENO:" \
  2212.      "checking for C compiler version" >&5
  2213. ac_compiler=`set X $ac_compile; echo $2`
  2214. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2215.   (eval $ac_compiler --version </dev/null >&5) 2>&5
  2216.   ac_status=$?
  2217.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2218.   (exit $ac_status); }
  2219. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2220.   (eval $ac_compiler -v </dev/null >&5) 2>&5
  2221.   ac_status=$?
  2222.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2223.   (exit $ac_status); }
  2224. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2225.   (eval $ac_compiler -V </dev/null >&5) 2>&5
  2226.   ac_status=$?
  2227.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2228.   (exit $ac_status); }
  2229.  
  2230. cat >conftest.$ac_ext <<_ACEOF
  2231. /* confdefs.h.  */
  2232. _ACEOF
  2233. cat confdefs.h >>conftest.$ac_ext
  2234. cat >>conftest.$ac_ext <<_ACEOF
  2235. /* end confdefs.h.  */
  2236.  
  2237. int
  2238. main ()
  2239. {
  2240.  
  2241.   ;
  2242.   return 0;
  2243. }
  2244. _ACEOF
  2245. ac_clean_files_save=$ac_clean_files
  2246. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2247. # Try to create an executable without -o first, disregard a.out.
  2248. # It will help us diagnose broken compilers, and finding out an intuition
  2249. # of exeext.
  2250. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2251. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  2252. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2253. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  2254.   (eval $ac_link_default) 2>&5
  2255.   ac_status=$?
  2256.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2257.   (exit $ac_status); }; then
  2258.   # Find the output, starting from the most likely.  This scheme is
  2259. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  2260. # resort.
  2261.  
  2262. # Be careful to initialize this variable, since it used to be cached.
  2263. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  2264. ac_cv_exeext=
  2265. # b.out is created by i960 compilers.
  2266. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  2267. do
  2268.   test -f "$ac_file" || continue
  2269.   case $ac_file in
  2270.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  2271.     ;;
  2272.     conftest.$ac_ext )
  2273.     # This is the source file.
  2274.     ;;
  2275.     [ab].out )
  2276.     # We found the default executable, but exeext='' is most
  2277.     # certainly right.
  2278.     break;;
  2279.     *.* )
  2280.     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2281.     # FIXME: I believe we export ac_cv_exeext for Libtool,
  2282.     # but it would be cool to find out if it's true.  Does anybody
  2283.     # maintain Libtool? --akim.
  2284.     export ac_cv_exeext
  2285.     break;;
  2286.     * )
  2287.     break;;
  2288.   esac
  2289. done
  2290. else
  2291.   echo "$as_me: failed program was:" >&5
  2292. sed 's/^/| /' conftest.$ac_ext >&5
  2293.  
  2294. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2295. See \`config.log' for more details." >&5
  2296. echo "$as_me: error: C compiler cannot create executables
  2297. See \`config.log' for more details." >&2;}
  2298.    { (exit 77); exit 77; }; }
  2299. fi
  2300.  
  2301. ac_exeext=$ac_cv_exeext
  2302. echo "$as_me:$LINENO: result: $ac_file" >&5
  2303. echo "${ECHO_T}$ac_file" >&6
  2304.  
  2305. # Check the compiler produces executables we can run.  If not, either
  2306. # the compiler is broken, or we cross compile.
  2307. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2308. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  2309. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2310. # If not cross compiling, check that we can run a simple program.
  2311. if test "$cross_compiling" != yes; then
  2312.   if { ac_try='./$ac_file'
  2313.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2314.   (eval $ac_try) 2>&5
  2315.   ac_status=$?
  2316.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2317.   (exit $ac_status); }; }; then
  2318.     cross_compiling=no
  2319.   else
  2320.     if test "$cross_compiling" = maybe; then
  2321.     cross_compiling=yes
  2322.     else
  2323.     { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2324. If you meant to cross compile, use \`--host'.
  2325. See \`config.log' for more details." >&5
  2326. echo "$as_me: error: cannot run C compiled programs.
  2327. If you meant to cross compile, use \`--host'.
  2328. See \`config.log' for more details." >&2;}
  2329.    { (exit 1); exit 1; }; }
  2330.     fi
  2331.   fi
  2332. fi
  2333. echo "$as_me:$LINENO: result: yes" >&5
  2334. echo "${ECHO_T}yes" >&6
  2335.  
  2336. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2337. ac_clean_files=$ac_clean_files_save
  2338. # Check the compiler produces executables we can run.  If not, either
  2339. # the compiler is broken, or we cross compile.
  2340. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2341. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2342. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2343. echo "${ECHO_T}$cross_compiling" >&6
  2344.  
  2345. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2346. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2347. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2348.   (eval $ac_link) 2>&5
  2349.   ac_status=$?
  2350.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2351.   (exit $ac_status); }; then
  2352.   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2353. # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  2354. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2355. # `rm'.
  2356. for ac_file in conftest.exe conftest conftest.*; do
  2357.   test -f "$ac_file" || continue
  2358.   case $ac_file in
  2359.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2360.     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2361.       export ac_cv_exeext
  2362.       break;;
  2363.     * ) break;;
  2364.   esac
  2365. done
  2366. else
  2367.   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2368. See \`config.log' for more details." >&5
  2369. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2370. See \`config.log' for more details." >&2;}
  2371.    { (exit 1); exit 1; }; }
  2372. fi
  2373.  
  2374. rm -f conftest$ac_cv_exeext
  2375. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2376. echo "${ECHO_T}$ac_cv_exeext" >&6
  2377.  
  2378. rm -f conftest.$ac_ext
  2379. EXEEXT=$ac_cv_exeext
  2380. ac_exeext=$EXEEXT
  2381. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2382. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2383. if test "${ac_cv_objext+set}" = set; then
  2384.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2385. else
  2386.   cat >conftest.$ac_ext <<_ACEOF
  2387. /* confdefs.h.  */
  2388. _ACEOF
  2389. cat confdefs.h >>conftest.$ac_ext
  2390. cat >>conftest.$ac_ext <<_ACEOF
  2391. /* end confdefs.h.  */
  2392.  
  2393. int
  2394. main ()
  2395. {
  2396.  
  2397.   ;
  2398.   return 0;
  2399. }
  2400. _ACEOF
  2401. rm -f conftest.o conftest.obj
  2402. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2403.   (eval $ac_compile) 2>&5
  2404.   ac_status=$?
  2405.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2406.   (exit $ac_status); }; then
  2407.   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2408.   case $ac_file in
  2409.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2410.     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2411.        break;;
  2412.   esac
  2413. done
  2414. else
  2415.   echo "$as_me: failed program was:" >&5
  2416. sed 's/^/| /' conftest.$ac_ext >&5
  2417.  
  2418. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2419. See \`config.log' for more details." >&5
  2420. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2421. See \`config.log' for more details." >&2;}
  2422.    { (exit 1); exit 1; }; }
  2423. fi
  2424.  
  2425. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2426. fi
  2427. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2428. echo "${ECHO_T}$ac_cv_objext" >&6
  2429. OBJEXT=$ac_cv_objext
  2430. ac_objext=$OBJEXT
  2431. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2432. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2433. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2434.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2435. else
  2436.   cat >conftest.$ac_ext <<_ACEOF
  2437. /* confdefs.h.  */
  2438. _ACEOF
  2439. cat confdefs.h >>conftest.$ac_ext
  2440. cat >>conftest.$ac_ext <<_ACEOF
  2441. /* end confdefs.h.  */
  2442.  
  2443. int
  2444. main ()
  2445. {
  2446. #ifndef __GNUC__
  2447.        choke me
  2448. #endif
  2449.  
  2450.   ;
  2451.   return 0;
  2452. }
  2453. _ACEOF
  2454. rm -f conftest.$ac_objext
  2455. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2456.   (eval $ac_compile) 2>conftest.er1
  2457.   ac_status=$?
  2458.   grep -v '^ *+' conftest.er1 >conftest.err
  2459.   rm -f conftest.er1
  2460.   cat conftest.err >&5
  2461.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2462.   (exit $ac_status); } &&
  2463.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  2464.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2465.   (eval $ac_try) 2>&5
  2466.   ac_status=$?
  2467.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2468.   (exit $ac_status); }; } &&
  2469.      { ac_try='test -s conftest.$ac_objext'
  2470.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2471.   (eval $ac_try) 2>&5
  2472.   ac_status=$?
  2473.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2474.   (exit $ac_status); }; }; then
  2475.   ac_compiler_gnu=yes
  2476. else
  2477.   echo "$as_me: failed program was:" >&5
  2478. sed 's/^/| /' conftest.$ac_ext >&5
  2479.  
  2480. ac_compiler_gnu=no
  2481. fi
  2482. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2483. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2484.  
  2485. fi
  2486. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2487. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2488. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2489. ac_test_CFLAGS=${CFLAGS+set}
  2490. ac_save_CFLAGS=$CFLAGS
  2491. CFLAGS="-g"
  2492. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2493. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2494. if test "${ac_cv_prog_cc_g+set}" = set; then
  2495.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2496. else
  2497.   cat >conftest.$ac_ext <<_ACEOF
  2498. /* confdefs.h.  */
  2499. _ACEOF
  2500. cat confdefs.h >>conftest.$ac_ext
  2501. cat >>conftest.$ac_ext <<_ACEOF
  2502. /* end confdefs.h.  */
  2503.  
  2504. int
  2505. main ()
  2506. {
  2507.  
  2508.   ;
  2509.   return 0;
  2510. }
  2511. _ACEOF
  2512. rm -f conftest.$ac_objext
  2513. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2514.   (eval $ac_compile) 2>conftest.er1
  2515.   ac_status=$?
  2516.   grep -v '^ *+' conftest.er1 >conftest.err
  2517.   rm -f conftest.er1
  2518.   cat conftest.err >&5
  2519.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2520.   (exit $ac_status); } &&
  2521.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  2522.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2523.   (eval $ac_try) 2>&5
  2524.   ac_status=$?
  2525.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2526.   (exit $ac_status); }; } &&
  2527.      { ac_try='test -s conftest.$ac_objext'
  2528.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2529.   (eval $ac_try) 2>&5
  2530.   ac_status=$?
  2531.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2532.   (exit $ac_status); }; }; then
  2533.   ac_cv_prog_cc_g=yes
  2534. else
  2535.   echo "$as_me: failed program was:" >&5
  2536. sed 's/^/| /' conftest.$ac_ext >&5
  2537.  
  2538. ac_cv_prog_cc_g=no
  2539. fi
  2540. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2541. fi
  2542. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2543. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2544. if test "$ac_test_CFLAGS" = set; then
  2545.   CFLAGS=$ac_save_CFLAGS
  2546. elif test $ac_cv_prog_cc_g = yes; then
  2547.   if test "$GCC" = yes; then
  2548.     CFLAGS="-g -O2"
  2549.   else
  2550.     CFLAGS="-g"
  2551.   fi
  2552. else
  2553.   if test "$GCC" = yes; then
  2554.     CFLAGS="-O2"
  2555.   else
  2556.     CFLAGS=
  2557.   fi
  2558. fi
  2559. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2560. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2561. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2562.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2563. else
  2564.   ac_cv_prog_cc_stdc=no
  2565. ac_save_CC=$CC
  2566. cat >conftest.$ac_ext <<_ACEOF
  2567. /* confdefs.h.  */
  2568. _ACEOF
  2569. cat confdefs.h >>conftest.$ac_ext
  2570. cat >>conftest.$ac_ext <<_ACEOF
  2571. /* end confdefs.h.  */
  2572. #include <stdarg.h>
  2573. #include <stdio.h>
  2574. #include <sys/types.h>
  2575. #include <sys/stat.h>
  2576. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  2577. struct buf { int x; };
  2578. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2579. static char *e (p, i)
  2580.      char **p;
  2581.      int i;
  2582. {
  2583.   return p[i];
  2584. }
  2585. static char *f (char * (*g) (char **, int), char **p, ...)
  2586. {
  2587.   char *s;
  2588.   va_list v;
  2589.   va_start (v,p);
  2590.   s = g (p, va_arg (v,int));
  2591.   va_end (v);
  2592.   return s;
  2593. }
  2594.  
  2595. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  2596.    function prototypes and stuff, but not '\xHH' hex character constants.
  2597.    These don't provoke an error unfortunately, instead are silently treated
  2598.    as 'x'.  The following induces an error, until -std1 is added to get
  2599.    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  2600.    array size at least.  It's necessary to write '\x00'==0 to get something
  2601.    that's true only with -std1.  */
  2602. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2603.  
  2604. int test (int i, double x);
  2605. struct s1 {int (*f) (int a);};
  2606. struct s2 {int (*f) (double a);};
  2607. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2608. int argc;
  2609. char **argv;
  2610. int
  2611. main ()
  2612. {
  2613. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  2614.   ;
  2615.   return 0;
  2616. }
  2617. _ACEOF
  2618. # Don't try gcc -ansi; that turns off useful extensions and
  2619. # breaks some systems' header files.
  2620. # AIX            -qlanglvl=ansi
  2621. # Ultrix and OSF/1    -std1
  2622. # HP-UX 10.20 and later    -Ae
  2623. # HP-UX older versions    -Aa -D_HPUX_SOURCE
  2624. # SVR4            -Xc -D__EXTENSIONS__
  2625. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2626. do
  2627.   CC="$ac_save_CC $ac_arg"
  2628.   rm -f conftest.$ac_objext
  2629. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2630.   (eval $ac_compile) 2>conftest.er1
  2631.   ac_status=$?
  2632.   grep -v '^ *+' conftest.er1 >conftest.err
  2633.   rm -f conftest.er1
  2634.   cat conftest.err >&5
  2635.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2636.   (exit $ac_status); } &&
  2637.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  2638.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2639.   (eval $ac_try) 2>&5
  2640.   ac_status=$?
  2641.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2642.   (exit $ac_status); }; } &&
  2643.      { ac_try='test -s conftest.$ac_objext'
  2644.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2645.   (eval $ac_try) 2>&5
  2646.   ac_status=$?
  2647.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2648.   (exit $ac_status); }; }; then
  2649.   ac_cv_prog_cc_stdc=$ac_arg
  2650. break
  2651. else
  2652.   echo "$as_me: failed program was:" >&5
  2653. sed 's/^/| /' conftest.$ac_ext >&5
  2654.  
  2655. fi
  2656. rm -f conftest.err conftest.$ac_objext
  2657. done
  2658. rm -f conftest.$ac_ext conftest.$ac_objext
  2659. CC=$ac_save_CC
  2660.  
  2661. fi
  2662.  
  2663. case "x$ac_cv_prog_cc_stdc" in
  2664.   x|xno)
  2665.     echo "$as_me:$LINENO: result: none needed" >&5
  2666. echo "${ECHO_T}none needed" >&6 ;;
  2667.   *)
  2668.     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2669. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2670.     CC="$CC $ac_cv_prog_cc_stdc" ;;
  2671. esac
  2672.  
  2673. # Some people use a C++ compiler to compile C.  Since we use `exit',
  2674. # in C++ we need to declare it.  In case someone uses the same compiler
  2675. # for both compiling C and C++ we need to have the C++ compiler decide
  2676. # the declaration of exit, since it's the most demanding environment.
  2677. cat >conftest.$ac_ext <<_ACEOF
  2678. #ifndef __cplusplus
  2679.   choke me
  2680. #endif
  2681. _ACEOF
  2682. rm -f conftest.$ac_objext
  2683. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2684.   (eval $ac_compile) 2>conftest.er1
  2685.   ac_status=$?
  2686.   grep -v '^ *+' conftest.er1 >conftest.err
  2687.   rm -f conftest.er1
  2688.   cat conftest.err >&5
  2689.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2690.   (exit $ac_status); } &&
  2691.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  2692.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2693.   (eval $ac_try) 2>&5
  2694.   ac_status=$?
  2695.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2696.   (exit $ac_status); }; } &&
  2697.      { ac_try='test -s conftest.$ac_objext'
  2698.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2699.   (eval $ac_try) 2>&5
  2700.   ac_status=$?
  2701.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2702.   (exit $ac_status); }; }; then
  2703.   for ac_declaration in \
  2704.    '' \
  2705.    'extern "C" void std::exit (int) throw (); using std::exit;' \
  2706.    'extern "C" void std::exit (int); using std::exit;' \
  2707.    'extern "C" void exit (int) throw ();' \
  2708.    'extern "C" void exit (int);' \
  2709.    'void exit (int);'
  2710. do
  2711.   cat >conftest.$ac_ext <<_ACEOF
  2712. /* confdefs.h.  */
  2713. _ACEOF
  2714. cat confdefs.h >>conftest.$ac_ext
  2715. cat >>conftest.$ac_ext <<_ACEOF
  2716. /* end confdefs.h.  */
  2717. $ac_declaration
  2718. #include <stdlib.h>
  2719. int
  2720. main ()
  2721. {
  2722. exit (42);
  2723.   ;
  2724.   return 0;
  2725. }
  2726. _ACEOF
  2727. rm -f conftest.$ac_objext
  2728. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2729.   (eval $ac_compile) 2>conftest.er1
  2730.   ac_status=$?
  2731.   grep -v '^ *+' conftest.er1 >conftest.err
  2732.   rm -f conftest.er1
  2733.   cat conftest.err >&5
  2734.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2735.   (exit $ac_status); } &&
  2736.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  2737.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2738.   (eval $ac_try) 2>&5
  2739.   ac_status=$?
  2740.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2741.   (exit $ac_status); }; } &&
  2742.      { ac_try='test -s conftest.$ac_objext'
  2743.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2744.   (eval $ac_try) 2>&5
  2745.   ac_status=$?
  2746.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2747.   (exit $ac_status); }; }; then
  2748.   :
  2749. else
  2750.   echo "$as_me: failed program was:" >&5
  2751. sed 's/^/| /' conftest.$ac_ext >&5
  2752.  
  2753. continue
  2754. fi
  2755. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2756.   cat >conftest.$ac_ext <<_ACEOF
  2757. /* confdefs.h.  */
  2758. _ACEOF
  2759. cat confdefs.h >>conftest.$ac_ext
  2760. cat >>conftest.$ac_ext <<_ACEOF
  2761. /* end confdefs.h.  */
  2762. $ac_declaration
  2763. int
  2764. main ()
  2765. {
  2766. exit (42);
  2767.   ;
  2768.   return 0;
  2769. }
  2770. _ACEOF
  2771. rm -f conftest.$ac_objext
  2772. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2773.   (eval $ac_compile) 2>conftest.er1
  2774.   ac_status=$?
  2775.   grep -v '^ *+' conftest.er1 >conftest.err
  2776.   rm -f conftest.er1
  2777.   cat conftest.err >&5
  2778.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2779.   (exit $ac_status); } &&
  2780.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  2781.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2782.   (eval $ac_try) 2>&5
  2783.   ac_status=$?
  2784.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2785.   (exit $ac_status); }; } &&
  2786.      { ac_try='test -s conftest.$ac_objext'
  2787.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2788.   (eval $ac_try) 2>&5
  2789.   ac_status=$?
  2790.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2791.   (exit $ac_status); }; }; then
  2792.   break
  2793. else
  2794.   echo "$as_me: failed program was:" >&5
  2795. sed 's/^/| /' conftest.$ac_ext >&5
  2796.  
  2797. fi
  2798. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2799. done
  2800. rm -f conftest*
  2801. if test -n "$ac_declaration"; then
  2802.   echo '#ifdef __cplusplus' >>confdefs.h
  2803.   echo $ac_declaration      >>confdefs.h
  2804.   echo '#endif'             >>confdefs.h
  2805. fi
  2806.  
  2807. else
  2808.   echo "$as_me: failed program was:" >&5
  2809. sed 's/^/| /' conftest.$ac_ext >&5
  2810.  
  2811. fi
  2812. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2813. ac_ext=c
  2814. ac_cpp='$CPP $CPPFLAGS'
  2815. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2816. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2817. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2818. DEPDIR="${am__leading_dot}deps"
  2819.  
  2820.           ac_config_commands="$ac_config_commands depfiles"
  2821.  
  2822.  
  2823. am_make=${MAKE-make}
  2824. cat > confinc << 'END'
  2825. am__doit:
  2826.     @echo done
  2827. .PHONY: am__doit
  2828. END
  2829. # If we don't find an include directive, just comment out the code.
  2830. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2831. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2832. am__include="#"
  2833. am__quote=
  2834. _am_result=none
  2835. # First try GNU make style include.
  2836. echo "include confinc" > confmf
  2837. # We grep out `Entering directory' and `Leaving directory'
  2838. # messages which can occur if `w' ends up in MAKEFLAGS.
  2839. # In particular we don't look at `^make:' because GNU make might
  2840. # be invoked under some other name (usually "gmake"), in which
  2841. # case it prints its new name instead of `make'.
  2842. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2843.    am__include=include
  2844.    am__quote=
  2845.    _am_result=GNU
  2846. fi
  2847. # Now try BSD make style include.
  2848. if test "$am__include" = "#"; then
  2849.    echo '.include "confinc"' > confmf
  2850.    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2851.       am__include=.include
  2852.       am__quote="\""
  2853.       _am_result=BSD
  2854.    fi
  2855. fi
  2856.  
  2857.  
  2858. echo "$as_me:$LINENO: result: $_am_result" >&5
  2859. echo "${ECHO_T}$_am_result" >&6
  2860. rm -f confinc confmf
  2861.  
  2862. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2863. if test "${enable_dependency_tracking+set}" = set; then
  2864.   enableval="$enable_dependency_tracking"
  2865.  
  2866. fi;
  2867. if test "x$enable_dependency_tracking" != xno; then
  2868.   am_depcomp="$ac_aux_dir/depcomp"
  2869.   AMDEPBACKSLASH='\'
  2870. fi
  2871.  
  2872.  
  2873. if test "x$enable_dependency_tracking" != xno; then
  2874.   AMDEP_TRUE=
  2875.   AMDEP_FALSE='#'
  2876. else
  2877.   AMDEP_TRUE='#'
  2878.   AMDEP_FALSE=
  2879. fi
  2880.  
  2881.  
  2882.  
  2883.  
  2884. depcc="$CC"   am_compiler_list=
  2885.  
  2886. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2887. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2888. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  2889.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2890. else
  2891.   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2892.   # We make a subdir and do the tests there.  Otherwise we can end up
  2893.   # making bogus files that we don't know about and never remove.  For
  2894.   # instance it was reported that on HP-UX the gcc test will end up
  2895.   # making a dummy file named `D' -- because `-MD' means `put the output
  2896.   # in D'.
  2897.   mkdir conftest.dir
  2898.   # Copy depcomp to subdir because otherwise we won't find it if we're
  2899.   # using a relative directory.
  2900.   cp "$am_depcomp" conftest.dir
  2901.   cd conftest.dir
  2902.   # We will build objects and dependencies in a subdirectory because
  2903.   # it helps to detect inapplicable dependency modes.  For instance
  2904.   # both Tru64's cc and ICC support -MD to output dependencies as a
  2905.   # side effect of compilation, but ICC will put the dependencies in
  2906.   # the current directory while Tru64 will put them in the object
  2907.   # directory.
  2908.   mkdir sub
  2909.  
  2910.   am_cv_CC_dependencies_compiler_type=none
  2911.   if test "$am_compiler_list" = ""; then
  2912.      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2913.   fi
  2914.   for depmode in $am_compiler_list; do
  2915.     # Setup a source with many dependencies, because some compilers
  2916.     # like to wrap large dependency lists on column 80 (with \), and
  2917.     # we should not choose a depcomp mode which is confused by this.
  2918.     #
  2919.     # We need to recreate these files for each test, as the compiler may
  2920.     # overwrite some of them when testing with obscure command lines.
  2921.     # This happens at least with the AIX C compiler.
  2922.     : > sub/conftest.c
  2923.     for i in 1 2 3 4 5 6; do
  2924.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2925.       : > sub/conftst$i.h
  2926.     done
  2927.     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2928.  
  2929.     case $depmode in
  2930.     nosideeffect)
  2931.       # after this tag, mechanisms are not by side-effect, so they'll
  2932.       # only be used when explicitly requested
  2933.       if test "x$enable_dependency_tracking" = xyes; then
  2934.     continue
  2935.       else
  2936.     break
  2937.       fi
  2938.       ;;
  2939.     none) break ;;
  2940.     esac
  2941.     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2942.     # mode.  It turns out that the SunPro C++ compiler does not properly
  2943.     # handle `-M -o', and we need to detect this.
  2944.     if depmode=$depmode \
  2945.        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2946.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2947.        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2948.          >/dev/null 2>conftest.err &&
  2949.        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2950.        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2951.        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2952.       # icc doesn't choke on unknown options, it will just issue warnings
  2953.       # (even with -Werror).  So we grep stderr for any message
  2954.       # that says an option was ignored.
  2955.       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
  2956.         am_cv_CC_dependencies_compiler_type=$depmode
  2957.         break
  2958.       fi
  2959.     fi
  2960.   done
  2961.  
  2962.   cd ..
  2963.   rm -rf conftest.dir
  2964. else
  2965.   am_cv_CC_dependencies_compiler_type=none
  2966. fi
  2967.  
  2968. fi
  2969. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  2970. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  2971. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  2972.  
  2973.  
  2974.  
  2975. if
  2976.   test "x$enable_dependency_tracking" != xno \
  2977.   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  2978.   am__fastdepCC_TRUE=
  2979.   am__fastdepCC_FALSE='#'
  2980. else
  2981.   am__fastdepCC_TRUE='#'
  2982.   am__fastdepCC_FALSE=
  2983. fi
  2984.  
  2985.  
  2986. for ac_prog in 'bison -y' byacc
  2987. do
  2988.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2989. set dummy $ac_prog; ac_word=$2
  2990. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2991. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2992. if test "${ac_cv_prog_YACC+set}" = set; then
  2993.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2994. else
  2995.   if test -n "$YACC"; then
  2996.   ac_cv_prog_YACC="$YACC" # Let the user override the test.
  2997. else
  2998. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2999. for as_dir in $PATH
  3000. do
  3001.   IFS=$as_save_IFS
  3002.   test -z "$as_dir" && as_dir=.
  3003.   for ac_exec_ext in '' $ac_executable_extensions; do
  3004.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3005.     ac_cv_prog_YACC="$ac_prog"
  3006.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3007.     break 2
  3008.   fi
  3009. done
  3010. done
  3011.  
  3012. fi
  3013. fi
  3014. YACC=$ac_cv_prog_YACC
  3015. if test -n "$YACC"; then
  3016.   echo "$as_me:$LINENO: result: $YACC" >&5
  3017. echo "${ECHO_T}$YACC" >&6
  3018. else
  3019.   echo "$as_me:$LINENO: result: no" >&5
  3020. echo "${ECHO_T}no" >&6
  3021. fi
  3022.  
  3023.   test -n "$YACC" && break
  3024. done
  3025. test -n "$YACC" || YACC="yacc"
  3026.  
  3027.  
  3028. for ac_prog in flex lex
  3029. do
  3030.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3031. set dummy $ac_prog; ac_word=$2
  3032. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3033. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3034. if test "${ac_cv_prog_LEX+set}" = set; then
  3035.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3036. else
  3037.   if test -n "$LEX"; then
  3038.   ac_cv_prog_LEX="$LEX" # Let the user override the test.
  3039. else
  3040. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3041. for as_dir in $PATH
  3042. do
  3043.   IFS=$as_save_IFS
  3044.   test -z "$as_dir" && as_dir=.
  3045.   for ac_exec_ext in '' $ac_executable_extensions; do
  3046.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3047.     ac_cv_prog_LEX="$ac_prog"
  3048.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3049.     break 2
  3050.   fi
  3051. done
  3052. done
  3053.  
  3054. fi
  3055. fi
  3056. LEX=$ac_cv_prog_LEX
  3057. if test -n "$LEX"; then
  3058.   echo "$as_me:$LINENO: result: $LEX" >&5
  3059. echo "${ECHO_T}$LEX" >&6
  3060. else
  3061.   echo "$as_me:$LINENO: result: no" >&5
  3062. echo "${ECHO_T}no" >&6
  3063. fi
  3064.  
  3065.   test -n "$LEX" && break
  3066. done
  3067. test -n "$LEX" || LEX=":"
  3068.  
  3069. if test -z "$LEXLIB"
  3070. then
  3071.   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
  3072. echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
  3073. if test "${ac_cv_lib_fl_yywrap+set}" = set; then
  3074.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3075. else
  3076.   ac_check_lib_save_LIBS=$LIBS
  3077. LIBS="-lfl  $LIBS"
  3078. cat >conftest.$ac_ext <<_ACEOF
  3079. /* confdefs.h.  */
  3080. _ACEOF
  3081. cat confdefs.h >>conftest.$ac_ext
  3082. cat >>conftest.$ac_ext <<_ACEOF
  3083. /* end confdefs.h.  */
  3084.  
  3085. /* Override any gcc2 internal prototype to avoid an error.  */
  3086. #ifdef __cplusplus
  3087. extern "C"
  3088. #endif
  3089. /* We use char because int might match the return type of a gcc2
  3090.    builtin and then its argument prototype would still apply.  */
  3091. char yywrap ();
  3092. int
  3093. main ()
  3094. {
  3095. yywrap ();
  3096.   ;
  3097.   return 0;
  3098. }
  3099. _ACEOF
  3100. rm -f conftest.$ac_objext conftest$ac_exeext
  3101. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3102.   (eval $ac_link) 2>conftest.er1
  3103.   ac_status=$?
  3104.   grep -v '^ *+' conftest.er1 >conftest.err
  3105.   rm -f conftest.er1
  3106.   cat conftest.err >&5
  3107.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3108.   (exit $ac_status); } &&
  3109.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  3110.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3111.   (eval $ac_try) 2>&5
  3112.   ac_status=$?
  3113.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3114.   (exit $ac_status); }; } &&
  3115.      { ac_try='test -s conftest$ac_exeext'
  3116.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3117.   (eval $ac_try) 2>&5
  3118.   ac_status=$?
  3119.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3120.   (exit $ac_status); }; }; then
  3121.   ac_cv_lib_fl_yywrap=yes
  3122. else
  3123.   echo "$as_me: failed program was:" >&5
  3124. sed 's/^/| /' conftest.$ac_ext >&5
  3125.  
  3126. ac_cv_lib_fl_yywrap=no
  3127. fi
  3128. rm -f conftest.err conftest.$ac_objext \
  3129.       conftest$ac_exeext conftest.$ac_ext
  3130. LIBS=$ac_check_lib_save_LIBS
  3131. fi
  3132. echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
  3133. echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
  3134. if test $ac_cv_lib_fl_yywrap = yes; then
  3135.   LEXLIB="-lfl"
  3136. else
  3137.   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
  3138. echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
  3139. if test "${ac_cv_lib_l_yywrap+set}" = set; then
  3140.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3141. else
  3142.   ac_check_lib_save_LIBS=$LIBS
  3143. LIBS="-ll  $LIBS"
  3144. cat >conftest.$ac_ext <<_ACEOF
  3145. /* confdefs.h.  */
  3146. _ACEOF
  3147. cat confdefs.h >>conftest.$ac_ext
  3148. cat >>conftest.$ac_ext <<_ACEOF
  3149. /* end confdefs.h.  */
  3150.  
  3151. /* Override any gcc2 internal prototype to avoid an error.  */
  3152. #ifdef __cplusplus
  3153. extern "C"
  3154. #endif
  3155. /* We use char because int might match the return type of a gcc2
  3156.    builtin and then its argument prototype would still apply.  */
  3157. char yywrap ();
  3158. int
  3159. main ()
  3160. {
  3161. yywrap ();
  3162.   ;
  3163.   return 0;
  3164. }
  3165. _ACEOF
  3166. rm -f conftest.$ac_objext conftest$ac_exeext
  3167. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3168.   (eval $ac_link) 2>conftest.er1
  3169.   ac_status=$?
  3170.   grep -v '^ *+' conftest.er1 >conftest.err
  3171.   rm -f conftest.er1
  3172.   cat conftest.err >&5
  3173.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3174.   (exit $ac_status); } &&
  3175.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  3176.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3177.   (eval $ac_try) 2>&5
  3178.   ac_status=$?
  3179.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3180.   (exit $ac_status); }; } &&
  3181.      { ac_try='test -s conftest$ac_exeext'
  3182.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3183.   (eval $ac_try) 2>&5
  3184.   ac_status=$?
  3185.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3186.   (exit $ac_status); }; }; then
  3187.   ac_cv_lib_l_yywrap=yes
  3188. else
  3189.   echo "$as_me: failed program was:" >&5
  3190. sed 's/^/| /' conftest.$ac_ext >&5
  3191.  
  3192. ac_cv_lib_l_yywrap=no
  3193. fi
  3194. rm -f conftest.err conftest.$ac_objext \
  3195.       conftest$ac_exeext conftest.$ac_ext
  3196. LIBS=$ac_check_lib_save_LIBS
  3197. fi
  3198. echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
  3199. echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
  3200. if test $ac_cv_lib_l_yywrap = yes; then
  3201.   LEXLIB="-ll"
  3202. fi
  3203.  
  3204. fi
  3205.  
  3206. fi
  3207.  
  3208. if test "x$LEX" != "x:"; then
  3209.   echo "$as_me:$LINENO: checking lex output file root" >&5
  3210. echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
  3211. if test "${ac_cv_prog_lex_root+set}" = set; then
  3212.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3213. else
  3214.   # The minimal lex program is just a single line: %%.  But some broken lexes
  3215. # (Solaris, I think it was) want two %% lines, so accommodate them.
  3216. cat >conftest.l <<_ACEOF
  3217. %%
  3218. %%
  3219. _ACEOF
  3220. { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
  3221.   (eval $LEX conftest.l) 2>&5
  3222.   ac_status=$?
  3223.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3224.   (exit $ac_status); }
  3225. if test -f lex.yy.c; then
  3226.   ac_cv_prog_lex_root=lex.yy
  3227. elif test -f lexyy.c; then
  3228.   ac_cv_prog_lex_root=lexyy
  3229. else
  3230.   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
  3231. echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
  3232.    { (exit 1); exit 1; }; }
  3233. fi
  3234. fi
  3235. echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
  3236. echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
  3237. rm -f conftest.l
  3238. LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
  3239.  
  3240. echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
  3241. echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
  3242. if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
  3243.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3244. else
  3245.   # POSIX says lex can declare yytext either as a pointer or an array; the
  3246. # default is implementation-dependent. Figure out which it is, since
  3247. # not all implementations provide the %pointer and %array declarations.
  3248. ac_cv_prog_lex_yytext_pointer=no
  3249. echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
  3250. ac_save_LIBS=$LIBS
  3251. LIBS="$LIBS $LEXLIB"
  3252. cat >conftest.$ac_ext <<_ACEOF
  3253. `cat $LEX_OUTPUT_ROOT.c`
  3254. _ACEOF
  3255. rm -f conftest.$ac_objext conftest$ac_exeext
  3256. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3257.   (eval $ac_link) 2>conftest.er1
  3258.   ac_status=$?
  3259.   grep -v '^ *+' conftest.er1 >conftest.err
  3260.   rm -f conftest.er1
  3261.   cat conftest.err >&5
  3262.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3263.   (exit $ac_status); } &&
  3264.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  3265.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3266.   (eval $ac_try) 2>&5
  3267.   ac_status=$?
  3268.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3269.   (exit $ac_status); }; } &&
  3270.      { ac_try='test -s conftest$ac_exeext'
  3271.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3272.   (eval $ac_try) 2>&5
  3273.   ac_status=$?
  3274.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3275.   (exit $ac_status); }; }; then
  3276.   ac_cv_prog_lex_yytext_pointer=yes
  3277. else
  3278.   echo "$as_me: failed program was:" >&5
  3279. sed 's/^/| /' conftest.$ac_ext >&5
  3280.  
  3281. fi
  3282. rm -f conftest.err conftest.$ac_objext \
  3283.       conftest$ac_exeext conftest.$ac_ext
  3284. LIBS=$ac_save_LIBS
  3285. rm -f "${LEX_OUTPUT_ROOT}.c"
  3286.  
  3287. fi
  3288. echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
  3289. echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
  3290. if test $ac_cv_prog_lex_yytext_pointer = yes; then
  3291.  
  3292. cat >>confdefs.h <<\_ACEOF
  3293. #define YYTEXT_POINTER 1
  3294. _ACEOF
  3295.  
  3296. fi
  3297.  
  3298. fi
  3299. if test "$LEX" = :; then
  3300.   LEX=${am_missing_run}flex
  3301. fi
  3302. ac_ext=cc
  3303. ac_cpp='$CXXCPP $CPPFLAGS'
  3304. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3305. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3306. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3307. if test -n "$ac_tool_prefix"; then
  3308.   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  3309.   do
  3310.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3311. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3312. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3313. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3314. if test "${ac_cv_prog_CXX+set}" = set; then
  3315.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3316. else
  3317.   if test -n "$CXX"; then
  3318.   ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3319. else
  3320. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3321. for as_dir in $PATH
  3322. do
  3323.   IFS=$as_save_IFS
  3324.   test -z "$as_dir" && as_dir=.
  3325.   for ac_exec_ext in '' $ac_executable_extensions; do
  3326.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3327.     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3328.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3329.     break 2
  3330.   fi
  3331. done
  3332. done
  3333.  
  3334. fi
  3335. fi
  3336. CXX=$ac_cv_prog_CXX
  3337. if test -n "$CXX"; then
  3338.   echo "$as_me:$LINENO: result: $CXX" >&5
  3339. echo "${ECHO_T}$CXX" >&6
  3340. else
  3341.   echo "$as_me:$LINENO: result: no" >&5
  3342. echo "${ECHO_T}no" >&6
  3343. fi
  3344.  
  3345.     test -n "$CXX" && break
  3346.   done
  3347. fi
  3348. if test -z "$CXX"; then
  3349.   ac_ct_CXX=$CXX
  3350.   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  3351. do
  3352.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3353. set dummy $ac_prog; ac_word=$2
  3354. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3355. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3356. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  3357.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3358. else
  3359.   if test -n "$ac_ct_CXX"; then
  3360.   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3361. else
  3362. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3363. for as_dir in $PATH
  3364. do
  3365.   IFS=$as_save_IFS
  3366.   test -z "$as_dir" && as_dir=.
  3367.   for ac_exec_ext in '' $ac_executable_extensions; do
  3368.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3369.     ac_cv_prog_ac_ct_CXX="$ac_prog"
  3370.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3371.     break 2
  3372.   fi
  3373. done
  3374. done
  3375.  
  3376. fi
  3377. fi
  3378. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3379. if test -n "$ac_ct_CXX"; then
  3380.   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  3381. echo "${ECHO_T}$ac_ct_CXX" >&6
  3382. else
  3383.   echo "$as_me:$LINENO: result: no" >&5
  3384. echo "${ECHO_T}no" >&6
  3385. fi
  3386.  
  3387.   test -n "$ac_ct_CXX" && break
  3388. done
  3389. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  3390.  
  3391.   CXX=$ac_ct_CXX
  3392. fi
  3393.  
  3394.  
  3395. # Provide some information about the compiler.
  3396. echo "$as_me:$LINENO:" \
  3397.      "checking for C++ compiler version" >&5
  3398. ac_compiler=`set X $ac_compile; echo $2`
  3399. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  3400.   (eval $ac_compiler --version </dev/null >&5) 2>&5
  3401.   ac_status=$?
  3402.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3403.   (exit $ac_status); }
  3404. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  3405.   (eval $ac_compiler -v </dev/null >&5) 2>&5
  3406.   ac_status=$?
  3407.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3408.   (exit $ac_status); }
  3409. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  3410.   (eval $ac_compiler -V </dev/null >&5) 2>&5
  3411.   ac_status=$?
  3412.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3413.   (exit $ac_status); }
  3414.  
  3415. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  3416. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  3417. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  3418.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3419. else
  3420.   cat >conftest.$ac_ext <<_ACEOF
  3421. /* confdefs.h.  */
  3422. _ACEOF
  3423. cat confdefs.h >>conftest.$ac_ext
  3424. cat >>conftest.$ac_ext <<_ACEOF
  3425. /* end confdefs.h.  */
  3426.  
  3427. int
  3428. main ()
  3429. {
  3430. #ifndef __GNUC__
  3431.        choke me
  3432. #endif
  3433.  
  3434.   ;
  3435.   return 0;
  3436. }
  3437. _ACEOF
  3438. rm -f conftest.$ac_objext
  3439. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3440.   (eval $ac_compile) 2>conftest.er1
  3441.   ac_status=$?
  3442.   grep -v '^ *+' conftest.er1 >conftest.err
  3443.   rm -f conftest.er1
  3444.   cat conftest.err >&5
  3445.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3446.   (exit $ac_status); } &&
  3447.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  3448.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3449.   (eval $ac_try) 2>&5
  3450.   ac_status=$?
  3451.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3452.   (exit $ac_status); }; } &&
  3453.      { ac_try='test -s conftest.$ac_objext'
  3454.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3455.   (eval $ac_try) 2>&5
  3456.   ac_status=$?
  3457.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3458.   (exit $ac_status); }; }; then
  3459.   ac_compiler_gnu=yes
  3460. else
  3461.   echo "$as_me: failed program was:" >&5
  3462. sed 's/^/| /' conftest.$ac_ext >&5
  3463.  
  3464. ac_compiler_gnu=no
  3465. fi
  3466. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3467. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3468.  
  3469. fi
  3470. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  3471. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  3472. GXX=`test $ac_compiler_gnu = yes && echo yes`
  3473. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3474. ac_save_CXXFLAGS=$CXXFLAGS
  3475. CXXFLAGS="-g"
  3476. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  3477. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  3478. if test "${ac_cv_prog_cxx_g+set}" = set; then
  3479.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3480. else
  3481.   cat >conftest.$ac_ext <<_ACEOF
  3482. /* confdefs.h.  */
  3483. _ACEOF
  3484. cat confdefs.h >>conftest.$ac_ext
  3485. cat >>conftest.$ac_ext <<_ACEOF
  3486. /* end confdefs.h.  */
  3487.  
  3488. int
  3489. main ()
  3490. {
  3491.  
  3492.   ;
  3493.   return 0;
  3494. }
  3495. _ACEOF
  3496. rm -f conftest.$ac_objext
  3497. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3498.   (eval $ac_compile) 2>conftest.er1
  3499.   ac_status=$?
  3500.   grep -v '^ *+' conftest.er1 >conftest.err
  3501.   rm -f conftest.er1
  3502.   cat conftest.err >&5
  3503.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3504.   (exit $ac_status); } &&
  3505.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  3506.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3507.   (eval $ac_try) 2>&5
  3508.   ac_status=$?
  3509.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3510.   (exit $ac_status); }; } &&
  3511.      { ac_try='test -s conftest.$ac_objext'
  3512.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3513.   (eval $ac_try) 2>&5
  3514.   ac_status=$?
  3515.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3516.   (exit $ac_status); }; }; then
  3517.   ac_cv_prog_cxx_g=yes
  3518. else
  3519.   echo "$as_me: failed program was:" >&5
  3520. sed 's/^/| /' conftest.$ac_ext >&5
  3521.  
  3522. ac_cv_prog_cxx_g=no
  3523. fi
  3524. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3525. fi
  3526. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  3527. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  3528. if test "$ac_test_CXXFLAGS" = set; then
  3529.   CXXFLAGS=$ac_save_CXXFLAGS
  3530. elif test $ac_cv_prog_cxx_g = yes; then
  3531.   if test "$GXX" = yes; then
  3532.     CXXFLAGS="-g -O2"
  3533.   else
  3534.     CXXFLAGS="-g"
  3535.   fi
  3536. else
  3537.   if test "$GXX" = yes; then
  3538.     CXXFLAGS="-O2"
  3539.   else
  3540.     CXXFLAGS=
  3541.   fi
  3542. fi
  3543. for ac_declaration in \
  3544.    '' \
  3545.    'extern "C" void std::exit (int) throw (); using std::exit;' \
  3546.    'extern "C" void std::exit (int); using std::exit;' \
  3547.    'extern "C" void exit (int) throw ();' \
  3548.    'extern "C" void exit (int);' \
  3549.    'void exit (int);'
  3550. do
  3551.   cat >conftest.$ac_ext <<_ACEOF
  3552. /* confdefs.h.  */
  3553. _ACEOF
  3554. cat confdefs.h >>conftest.$ac_ext
  3555. cat >>conftest.$ac_ext <<_ACEOF
  3556. /* end confdefs.h.  */
  3557. $ac_declaration
  3558. #include <stdlib.h>
  3559. int
  3560. main ()
  3561. {
  3562. exit (42);
  3563.   ;
  3564.   return 0;
  3565. }
  3566. _ACEOF
  3567. rm -f conftest.$ac_objext
  3568. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3569.   (eval $ac_compile) 2>conftest.er1
  3570.   ac_status=$?
  3571.   grep -v '^ *+' conftest.er1 >conftest.err
  3572.   rm -f conftest.er1
  3573.   cat conftest.err >&5
  3574.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3575.   (exit $ac_status); } &&
  3576.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  3577.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3578.   (eval $ac_try) 2>&5
  3579.   ac_status=$?
  3580.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3581.   (exit $ac_status); }; } &&
  3582.      { ac_try='test -s conftest.$ac_objext'
  3583.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3584.   (eval $ac_try) 2>&5
  3585.   ac_status=$?
  3586.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3587.   (exit $ac_status); }; }; then
  3588.   :
  3589. else
  3590.   echo "$as_me: failed program was:" >&5
  3591. sed 's/^/| /' conftest.$ac_ext >&5
  3592.  
  3593. continue
  3594. fi
  3595. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3596.   cat >conftest.$ac_ext <<_ACEOF
  3597. /* confdefs.h.  */
  3598. _ACEOF
  3599. cat confdefs.h >>conftest.$ac_ext
  3600. cat >>conftest.$ac_ext <<_ACEOF
  3601. /* end confdefs.h.  */
  3602. $ac_declaration
  3603. int
  3604. main ()
  3605. {
  3606. exit (42);
  3607.   ;
  3608.   return 0;
  3609. }
  3610. _ACEOF
  3611. rm -f conftest.$ac_objext
  3612. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3613.   (eval $ac_compile) 2>conftest.er1
  3614.   ac_status=$?
  3615.   grep -v '^ *+' conftest.er1 >conftest.err
  3616.   rm -f conftest.er1
  3617.   cat conftest.err >&5
  3618.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3619.   (exit $ac_status); } &&
  3620.      { ac_try='test -z "$ac_cxx_werror_flag"             || test ! -s conftest.err'
  3621.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3622.   (eval $ac_try) 2>&5
  3623.   ac_status=$?
  3624.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3625.   (exit $ac_status); }; } &&
  3626.      { ac_try='test -s conftest.$ac_objext'
  3627.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3628.   (eval $ac_try) 2>&5
  3629.   ac_status=$?
  3630.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3631.   (exit $ac_status); }; }; then
  3632.   break
  3633. else
  3634.   echo "$as_me: failed program was:" >&5
  3635. sed 's/^/| /' conftest.$ac_ext >&5
  3636.  
  3637. fi
  3638. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3639. done
  3640. rm -f conftest*
  3641. if test -n "$ac_declaration"; then
  3642.   echo '#ifdef __cplusplus' >>confdefs.h
  3643.   echo $ac_declaration      >>confdefs.h
  3644.   echo '#endif'             >>confdefs.h
  3645. fi
  3646.  
  3647. ac_ext=c
  3648. ac_cpp='$CPP $CPPFLAGS'
  3649. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3650. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3651. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3652.  
  3653. depcc="$CXX"  am_compiler_list=
  3654.  
  3655. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3656. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  3657. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  3658.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3659. else
  3660.   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3661.   # We make a subdir and do the tests there.  Otherwise we can end up
  3662.   # making bogus files that we don't know about and never remove.  For
  3663.   # instance it was reported that on HP-UX the gcc test will end up
  3664.   # making a dummy file named `D' -- because `-MD' means `put the output
  3665.   # in D'.
  3666.   mkdir conftest.dir
  3667.   # Copy depcomp to subdir because otherwise we won't find it if we're
  3668.   # using a relative directory.
  3669.   cp "$am_depcomp" conftest.dir
  3670.   cd conftest.dir
  3671.   # We will build objects and dependencies in a subdirectory because
  3672.   # it helps to detect inapplicable dependency modes.  For instance
  3673.   # both Tru64's cc and ICC support -MD to output dependencies as a
  3674.   # side effect of compilation, but ICC will put the dependencies in
  3675.   # the current directory while Tru64 will put them in the object
  3676.   # directory.
  3677.   mkdir sub
  3678.  
  3679.   am_cv_CXX_dependencies_compiler_type=none
  3680.   if test "$am_compiler_list" = ""; then
  3681.      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3682.   fi
  3683.   for depmode in $am_compiler_list; do
  3684.     # Setup a source with many dependencies, because some compilers
  3685.     # like to wrap large dependency lists on column 80 (with \), and
  3686.     # we should not choose a depcomp mode which is confused by this.
  3687.     #
  3688.     # We need to recreate these files for each test, as the compiler may
  3689.     # overwrite some of them when testing with obscure command lines.
  3690.     # This happens at least with the AIX C compiler.
  3691.     : > sub/conftest.c
  3692.     for i in 1 2 3 4 5 6; do
  3693.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3694.       : > sub/conftst$i.h
  3695.     done
  3696.     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3697.  
  3698.     case $depmode in
  3699.     nosideeffect)
  3700.       # after this tag, mechanisms are not by side-effect, so they'll
  3701.       # only be used when explicitly requested
  3702.       if test "x$enable_dependency_tracking" = xyes; then
  3703.     continue
  3704.       else
  3705.     break
  3706.       fi
  3707.       ;;
  3708.     none) break ;;
  3709.     esac
  3710.     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3711.     # mode.  It turns out that the SunPro C++ compiler does not properly
  3712.     # handle `-M -o', and we need to detect this.
  3713.     if depmode=$depmode \
  3714.        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3715.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3716.        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3717.          >/dev/null 2>conftest.err &&
  3718.        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3719.        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3720.        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3721.       # icc doesn't choke on unknown options, it will just issue warnings
  3722.       # (even with -Werror).  So we grep stderr for any message
  3723.       # that says an option was ignored.
  3724.       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
  3725.         am_cv_CXX_dependencies_compiler_type=$depmode
  3726.         break
  3727.       fi
  3728.     fi
  3729.   done
  3730.  
  3731.   cd ..
  3732.   rm -rf conftest.dir
  3733. else
  3734.   am_cv_CXX_dependencies_compiler_type=none
  3735. fi
  3736.  
  3737. fi
  3738. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3739. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  3740. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3741.  
  3742.  
  3743.  
  3744. if
  3745.   test "x$enable_dependency_tracking" != xno \
  3746.   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3747.   am__fastdepCXX_TRUE=
  3748.   am__fastdepCXX_FALSE='#'
  3749. else
  3750.   am__fastdepCXX_TRUE='#'
  3751.   am__fastdepCXX_FALSE=
  3752. fi
  3753.  
  3754.  
  3755. if test -n "$ac_tool_prefix"; then
  3756.   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3757. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3758. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3759. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3760. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3761.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3762. else
  3763.   if test -n "$RANLIB"; then
  3764.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3765. else
  3766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3767. for as_dir in $PATH
  3768. do
  3769.   IFS=$as_save_IFS
  3770.   test -z "$as_dir" && as_dir=.
  3771.   for ac_exec_ext in '' $ac_executable_extensions; do
  3772.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3773.     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3774.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3775.     break 2
  3776.   fi
  3777. done
  3778. done
  3779.  
  3780. fi
  3781. fi
  3782. RANLIB=$ac_cv_prog_RANLIB
  3783. if test -n "$RANLIB"; then
  3784.   echo "$as_me:$LINENO: result: $RANLIB" >&5
  3785. echo "${ECHO_T}$RANLIB" >&6
  3786. else
  3787.   echo "$as_me:$LINENO: result: no" >&5
  3788. echo "${ECHO_T}no" >&6
  3789. fi
  3790.  
  3791. fi
  3792. if test -z "$ac_cv_prog_RANLIB"; then
  3793.   ac_ct_RANLIB=$RANLIB
  3794.   # Extract the first word of "ranlib", so it can be a program name with args.
  3795. set dummy ranlib; ac_word=$2
  3796. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3797. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3798. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3799.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3800. else
  3801.   if test -n "$ac_ct_RANLIB"; then
  3802.   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3803. else
  3804. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3805. for as_dir in $PATH
  3806. do
  3807.   IFS=$as_save_IFS
  3808.   test -z "$as_dir" && as_dir=.
  3809.   for ac_exec_ext in '' $ac_executable_extensions; do
  3810.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3811.     ac_cv_prog_ac_ct_RANLIB="ranlib"
  3812.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3813.     break 2
  3814.   fi
  3815. done
  3816. done
  3817.  
  3818.   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  3819. fi
  3820. fi
  3821. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3822. if test -n "$ac_ct_RANLIB"; then
  3823.   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3824. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  3825. else
  3826.   echo "$as_me:$LINENO: result: no" >&5
  3827. echo "${ECHO_T}no" >&6
  3828. fi
  3829.  
  3830.   RANLIB=$ac_ct_RANLIB
  3831. else
  3832.   RANLIB="$ac_cv_prog_RANLIB"
  3833. fi
  3834.  
  3835. # Extract the first word of "nasm", so it can be a program name with args.
  3836. set dummy nasm; ac_word=$2
  3837. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3838. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3839. if test "${ac_cv_path_NASM+set}" = set; then
  3840.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3841. else
  3842.   case $NASM in
  3843.   [\\/]* | ?:[\\/]*)
  3844.   ac_cv_path_NASM="$NASM" # Let the user override the test with a path.
  3845.   ;;
  3846.   *)
  3847.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3848. for as_dir in $PATH
  3849. do
  3850.   IFS=$as_save_IFS
  3851.   test -z "$as_dir" && as_dir=.
  3852.   for ac_exec_ext in '' $ac_executable_extensions; do
  3853.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3854.     ac_cv_path_NASM="$as_dir/$ac_word$ac_exec_ext"
  3855.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3856.     break 2
  3857.   fi
  3858. done
  3859. done
  3860.  
  3861.   ;;
  3862. esac
  3863. fi
  3864. NASM=$ac_cv_path_NASM
  3865.  
  3866. if test -n "$NASM"; then
  3867.   echo "$as_me:$LINENO: result: $NASM" >&5
  3868. echo "${ECHO_T}$NASM" >&6
  3869. else
  3870.   echo "$as_me:$LINENO: result: no" >&5
  3871. echo "${ECHO_T}no" >&6
  3872. fi
  3873.  
  3874.  
  3875.  
  3876. echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
  3877. echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
  3878. if test "${ac_cv_lib_z_gzopen+set}" = set; then
  3879.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3880. else
  3881.   ac_check_lib_save_LIBS=$LIBS
  3882. LIBS="-lz  $LIBS"
  3883. cat >conftest.$ac_ext <<_ACEOF
  3884. /* confdefs.h.  */
  3885. _ACEOF
  3886. cat confdefs.h >>conftest.$ac_ext
  3887. cat >>conftest.$ac_ext <<_ACEOF
  3888. /* end confdefs.h.  */
  3889.  
  3890. /* Override any gcc2 internal prototype to avoid an error.  */
  3891. #ifdef __cplusplus
  3892. extern "C"
  3893. #endif
  3894. /* We use char because int might match the return type of a gcc2
  3895.    builtin and then its argument prototype would still apply.  */
  3896. char gzopen ();
  3897. int
  3898. main ()
  3899. {
  3900. gzopen ();
  3901.   ;
  3902.   return 0;
  3903. }
  3904. _ACEOF
  3905. rm -f conftest.$ac_objext conftest$ac_exeext
  3906. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3907.   (eval $ac_link) 2>conftest.er1
  3908.   ac_status=$?
  3909.   grep -v '^ *+' conftest.er1 >conftest.err
  3910.   rm -f conftest.er1
  3911.   cat conftest.err >&5
  3912.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3913.   (exit $ac_status); } &&
  3914.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  3915.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3916.   (eval $ac_try) 2>&5
  3917.   ac_status=$?
  3918.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3919.   (exit $ac_status); }; } &&
  3920.      { ac_try='test -s conftest$ac_exeext'
  3921.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3922.   (eval $ac_try) 2>&5
  3923.   ac_status=$?
  3924.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3925.   (exit $ac_status); }; }; then
  3926.   ac_cv_lib_z_gzopen=yes
  3927. else
  3928.   echo "$as_me: failed program was:" >&5
  3929. sed 's/^/| /' conftest.$ac_ext >&5
  3930.  
  3931. ac_cv_lib_z_gzopen=no
  3932. fi
  3933. rm -f conftest.err conftest.$ac_objext \
  3934.       conftest$ac_exeext conftest.$ac_ext
  3935. LIBS=$ac_check_lib_save_LIBS
  3936. fi
  3937. echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
  3938. echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
  3939. if test $ac_cv_lib_z_gzopen = yes; then
  3940.   cat >>confdefs.h <<_ACEOF
  3941. #define HAVE_LIBZ 1
  3942. _ACEOF
  3943.  
  3944.   LIBS="-lz $LIBS"
  3945.  
  3946. else
  3947.   { { echo "$as_me:$LINENO: error: *** Cannot compile without zlib." >&5
  3948. echo "$as_me: error: *** Cannot compile without zlib." >&2;}
  3949.    { (exit 1); exit 1; }; }
  3950. fi
  3951.  
  3952.  
  3953. echo "$as_me:$LINENO: checking for png_create_write_struct in -lpng" >&5
  3954. echo $ECHO_N "checking for png_create_write_struct in -lpng... $ECHO_C" >&6
  3955. if test "${ac_cv_lib_png_png_create_write_struct+set}" = set; then
  3956.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3957. else
  3958.   ac_check_lib_save_LIBS=$LIBS
  3959. LIBS="-lpng -lz $LIBS"
  3960. cat >conftest.$ac_ext <<_ACEOF
  3961. /* confdefs.h.  */
  3962. _ACEOF
  3963. cat confdefs.h >>conftest.$ac_ext
  3964. cat >>conftest.$ac_ext <<_ACEOF
  3965. /* end confdefs.h.  */
  3966.  
  3967. /* Override any gcc2 internal prototype to avoid an error.  */
  3968. #ifdef __cplusplus
  3969. extern "C"
  3970. #endif
  3971. /* We use char because int might match the return type of a gcc2
  3972.    builtin and then its argument prototype would still apply.  */
  3973. char png_create_write_struct ();
  3974. int
  3975. main ()
  3976. {
  3977. png_create_write_struct ();
  3978.   ;
  3979.   return 0;
  3980. }
  3981. _ACEOF
  3982. rm -f conftest.$ac_objext conftest$ac_exeext
  3983. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3984.   (eval $ac_link) 2>conftest.er1
  3985.   ac_status=$?
  3986.   grep -v '^ *+' conftest.er1 >conftest.err
  3987.   rm -f conftest.er1
  3988.   cat conftest.err >&5
  3989.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3990.   (exit $ac_status); } &&
  3991.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  3992.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3993.   (eval $ac_try) 2>&5
  3994.   ac_status=$?
  3995.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3996.   (exit $ac_status); }; } &&
  3997.      { ac_try='test -s conftest$ac_exeext'
  3998.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3999.   (eval $ac_try) 2>&5
  4000.   ac_status=$?
  4001.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4002.   (exit $ac_status); }; }; then
  4003.   ac_cv_lib_png_png_create_write_struct=yes
  4004. else
  4005.   echo "$as_me: failed program was:" >&5
  4006. sed 's/^/| /' conftest.$ac_ext >&5
  4007.  
  4008. ac_cv_lib_png_png_create_write_struct=no
  4009. fi
  4010. rm -f conftest.err conftest.$ac_objext \
  4011.       conftest$ac_exeext conftest.$ac_ext
  4012. LIBS=$ac_check_lib_save_LIBS
  4013. fi
  4014. echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_create_write_struct" >&5
  4015. echo "${ECHO_T}$ac_cv_lib_png_png_create_write_struct" >&6
  4016. if test $ac_cv_lib_png_png_create_write_struct = yes; then
  4017.   cat >>confdefs.h <<_ACEOF
  4018. #define HAVE_LIBPNG 1
  4019. _ACEOF
  4020.  
  4021.   LIBS="-lpng $LIBS"
  4022.  
  4023. else
  4024.   { { echo "$as_me:$LINENO: error: *** Cannot compile without libpng." >&5
  4025. echo "$as_me: error: *** Cannot compile without libpng." >&2;}
  4026.    { (exit 1); exit 1; }; }
  4027. fi
  4028.  
  4029.  
  4030. echo "$as_me:$LINENO: checking for pthread_yield in -lpthread" >&5
  4031. echo $ECHO_N "checking for pthread_yield in -lpthread... $ECHO_C" >&6
  4032. if test "${ac_cv_lib_pthread_pthread_yield+set}" = set; then
  4033.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4034. else
  4035.   ac_check_lib_save_LIBS=$LIBS
  4036. LIBS="-lpthread  $LIBS"
  4037. cat >conftest.$ac_ext <<_ACEOF
  4038. /* confdefs.h.  */
  4039. _ACEOF
  4040. cat confdefs.h >>conftest.$ac_ext
  4041. cat >>conftest.$ac_ext <<_ACEOF
  4042. /* end confdefs.h.  */
  4043.  
  4044. /* Override any gcc2 internal prototype to avoid an error.  */
  4045. #ifdef __cplusplus
  4046. extern "C"
  4047. #endif
  4048. /* We use char because int might match the return type of a gcc2
  4049.    builtin and then its argument prototype would still apply.  */
  4050. char pthread_yield ();
  4051. int
  4052. main ()
  4053. {
  4054. pthread_yield ();
  4055.   ;
  4056.   return 0;
  4057. }
  4058. _ACEOF
  4059. rm -f conftest.$ac_objext conftest$ac_exeext
  4060. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4061.   (eval $ac_link) 2>conftest.er1
  4062.   ac_status=$?
  4063.   grep -v '^ *+' conftest.er1 >conftest.err
  4064.   rm -f conftest.er1
  4065.   cat conftest.err >&5
  4066.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4067.   (exit $ac_status); } &&
  4068.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  4069.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4070.   (eval $ac_try) 2>&5
  4071.   ac_status=$?
  4072.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4073.   (exit $ac_status); }; } &&
  4074.      { ac_try='test -s conftest$ac_exeext'
  4075.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4076.   (eval $ac_try) 2>&5
  4077.   ac_status=$?
  4078.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4079.   (exit $ac_status); }; }; then
  4080.   ac_cv_lib_pthread_pthread_yield=yes
  4081. else
  4082.   echo "$as_me: failed program was:" >&5
  4083. sed 's/^/| /' conftest.$ac_ext >&5
  4084.  
  4085. ac_cv_lib_pthread_pthread_yield=no
  4086. fi
  4087. rm -f conftest.err conftest.$ac_objext \
  4088.       conftest$ac_exeext conftest.$ac_ext
  4089. LIBS=$ac_check_lib_save_LIBS
  4090. fi
  4091. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_yield" >&5
  4092. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_yield" >&6
  4093. if test $ac_cv_lib_pthread_pthread_yield = yes; then
  4094.   cat >>confdefs.h <<_ACEOF
  4095. #define HAVE_LIBPTHREAD 1
  4096. _ACEOF
  4097.  
  4098.   LIBS="-lpthread $LIBS"
  4099.  
  4100. fi
  4101.  
  4102.  
  4103. ac_ext=c
  4104. ac_cpp='$CPP $CPPFLAGS'
  4105. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4106. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4107. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4108. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4109. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  4110. # On Suns, sometimes $CPP names a directory.
  4111. if test -n "$CPP" && test -d "$CPP"; then
  4112.   CPP=
  4113. fi
  4114. if test -z "$CPP"; then
  4115.   if test "${ac_cv_prog_CPP+set}" = set; then
  4116.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4117. else
  4118.       # Double quotes because CPP needs to be expanded
  4119.     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4120.     do
  4121.       ac_preproc_ok=false
  4122. for ac_c_preproc_warn_flag in '' yes
  4123. do
  4124.   # Use a header file that comes with gcc, so configuring glibc
  4125.   # with a fresh cross-compiler works.
  4126.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4127.   # <limits.h> exists even on freestanding compilers.
  4128.   # On the NeXT, cc -E runs the code through the compiler's parser,
  4129.   # not just through cpp. "Syntax error" is here to catch this case.
  4130.   cat >conftest.$ac_ext <<_ACEOF
  4131. /* confdefs.h.  */
  4132. _ACEOF
  4133. cat confdefs.h >>conftest.$ac_ext
  4134. cat >>conftest.$ac_ext <<_ACEOF
  4135. /* end confdefs.h.  */
  4136. #ifdef __STDC__
  4137. # include <limits.h>
  4138. #else
  4139. # include <assert.h>
  4140. #endif
  4141.              Syntax error
  4142. _ACEOF
  4143. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4144.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4145.   ac_status=$?
  4146.   grep -v '^ *+' conftest.er1 >conftest.err
  4147.   rm -f conftest.er1
  4148.   cat conftest.err >&5
  4149.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4150.   (exit $ac_status); } >/dev/null; then
  4151.   if test -s conftest.err; then
  4152.     ac_cpp_err=$ac_c_preproc_warn_flag
  4153.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4154.   else
  4155.     ac_cpp_err=
  4156.   fi
  4157. else
  4158.   ac_cpp_err=yes
  4159. fi
  4160. if test -z "$ac_cpp_err"; then
  4161.   :
  4162. else
  4163.   echo "$as_me: failed program was:" >&5
  4164. sed 's/^/| /' conftest.$ac_ext >&5
  4165.  
  4166.   # Broken: fails on valid input.
  4167. continue
  4168. fi
  4169. rm -f conftest.err conftest.$ac_ext
  4170.  
  4171.   # OK, works on sane cases.  Now check whether non-existent headers
  4172.   # can be detected and how.
  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. #include <ac_nonexistent.h>
  4180. _ACEOF
  4181. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4182.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4183.   ac_status=$?
  4184.   grep -v '^ *+' conftest.er1 >conftest.err
  4185.   rm -f conftest.er1
  4186.   cat conftest.err >&5
  4187.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4188.   (exit $ac_status); } >/dev/null; then
  4189.   if test -s conftest.err; then
  4190.     ac_cpp_err=$ac_c_preproc_warn_flag
  4191.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4192.   else
  4193.     ac_cpp_err=
  4194.   fi
  4195. else
  4196.   ac_cpp_err=yes
  4197. fi
  4198. if test -z "$ac_cpp_err"; then
  4199.   # Broken: success on invalid input.
  4200. continue
  4201. else
  4202.   echo "$as_me: failed program was:" >&5
  4203. sed 's/^/| /' conftest.$ac_ext >&5
  4204.  
  4205.   # Passes both tests.
  4206. ac_preproc_ok=:
  4207. break
  4208. fi
  4209. rm -f conftest.err conftest.$ac_ext
  4210.  
  4211. done
  4212. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4213. rm -f conftest.err conftest.$ac_ext
  4214. if $ac_preproc_ok; then
  4215.   break
  4216. fi
  4217.  
  4218.     done
  4219.     ac_cv_prog_CPP=$CPP
  4220.  
  4221. fi
  4222.   CPP=$ac_cv_prog_CPP
  4223. else
  4224.   ac_cv_prog_CPP=$CPP
  4225. fi
  4226. echo "$as_me:$LINENO: result: $CPP" >&5
  4227. echo "${ECHO_T}$CPP" >&6
  4228. ac_preproc_ok=false
  4229. for ac_c_preproc_warn_flag in '' yes
  4230. do
  4231.   # Use a header file that comes with gcc, so configuring glibc
  4232.   # with a fresh cross-compiler works.
  4233.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4234.   # <limits.h> exists even on freestanding compilers.
  4235.   # On the NeXT, cc -E runs the code through the compiler's parser,
  4236.   # not just through cpp. "Syntax error" is here to catch this case.
  4237.   cat >conftest.$ac_ext <<_ACEOF
  4238. /* confdefs.h.  */
  4239. _ACEOF
  4240. cat confdefs.h >>conftest.$ac_ext
  4241. cat >>conftest.$ac_ext <<_ACEOF
  4242. /* end confdefs.h.  */
  4243. #ifdef __STDC__
  4244. # include <limits.h>
  4245. #else
  4246. # include <assert.h>
  4247. #endif
  4248.              Syntax error
  4249. _ACEOF
  4250. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4251.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4252.   ac_status=$?
  4253.   grep -v '^ *+' conftest.er1 >conftest.err
  4254.   rm -f conftest.er1
  4255.   cat conftest.err >&5
  4256.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4257.   (exit $ac_status); } >/dev/null; then
  4258.   if test -s conftest.err; then
  4259.     ac_cpp_err=$ac_c_preproc_warn_flag
  4260.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4261.   else
  4262.     ac_cpp_err=
  4263.   fi
  4264. else
  4265.   ac_cpp_err=yes
  4266. fi
  4267. if test -z "$ac_cpp_err"; then
  4268.   :
  4269. else
  4270.   echo "$as_me: failed program was:" >&5
  4271. sed 's/^/| /' conftest.$ac_ext >&5
  4272.  
  4273.   # Broken: fails on valid input.
  4274. continue
  4275. fi
  4276. rm -f conftest.err conftest.$ac_ext
  4277.  
  4278.   # OK, works on sane cases.  Now check whether non-existent headers
  4279.   # can be detected and how.
  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. #include <ac_nonexistent.h>
  4287. _ACEOF
  4288. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4289.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4290.   ac_status=$?
  4291.   grep -v '^ *+' conftest.er1 >conftest.err
  4292.   rm -f conftest.er1
  4293.   cat conftest.err >&5
  4294.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4295.   (exit $ac_status); } >/dev/null; then
  4296.   if test -s conftest.err; then
  4297.     ac_cpp_err=$ac_c_preproc_warn_flag
  4298.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4299.   else
  4300.     ac_cpp_err=
  4301.   fi
  4302. else
  4303.   ac_cpp_err=yes
  4304. fi
  4305. if test -z "$ac_cpp_err"; then
  4306.   # Broken: success on invalid input.
  4307. continue
  4308. else
  4309.   echo "$as_me: failed program was:" >&5
  4310. sed 's/^/| /' conftest.$ac_ext >&5
  4311.  
  4312.   # Passes both tests.
  4313. ac_preproc_ok=:
  4314. break
  4315. fi
  4316. rm -f conftest.err conftest.$ac_ext
  4317.  
  4318. done
  4319. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4320. rm -f conftest.err conftest.$ac_ext
  4321. if $ac_preproc_ok; then
  4322.   :
  4323. else
  4324.   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4325. See \`config.log' for more details." >&5
  4326. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4327. See \`config.log' for more details." >&2;}
  4328.    { (exit 1); exit 1; }; }
  4329. fi
  4330.  
  4331. ac_ext=c
  4332. ac_cpp='$CPP $CPPFLAGS'
  4333. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4334. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4335. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4336.  
  4337.  
  4338. echo "$as_me:$LINENO: checking for X" >&5
  4339. echo $ECHO_N "checking for X... $ECHO_C" >&6
  4340.  
  4341.  
  4342. # Check whether --with-x or --without-x was given.
  4343. if test "${with_x+set}" = set; then
  4344.   withval="$with_x"
  4345.  
  4346. fi;
  4347. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  4348. if test "x$with_x" = xno; then
  4349.   # The user explicitly disabled X.
  4350.   have_x=disabled
  4351. else
  4352.   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  4353.     # Both variables are already set.
  4354.     have_x=yes
  4355.   else
  4356.     if test "${ac_cv_have_x+set}" = set; then
  4357.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4358. else
  4359.   # One or both of the vars are not set, and there is no cached value.
  4360. ac_x_includes=no ac_x_libraries=no
  4361. rm -fr conftest.dir
  4362. if mkdir conftest.dir; then
  4363.   cd conftest.dir
  4364.   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  4365.   cat >Imakefile <<'_ACEOF'
  4366. acfindx:
  4367.     @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  4368. _ACEOF
  4369.   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  4370.     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  4371.     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  4372.     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  4373.     for ac_extension in a so sl; do
  4374.       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  4375.      test -f $ac_im_libdir/libX11.$ac_extension; then
  4376.     ac_im_usrlibdir=$ac_im_libdir; break
  4377.       fi
  4378.     done
  4379.     # Screen out bogus values from the imake configuration.  They are
  4380.     # bogus both because they are the default anyway, and because
  4381.     # using them would break gcc on systems where it needs fixed includes.
  4382.     case $ac_im_incroot in
  4383.     /usr/include) ;;
  4384.     *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  4385.     esac
  4386.     case $ac_im_usrlibdir in
  4387.     /usr/lib | /lib) ;;
  4388.     *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  4389.     esac
  4390.   fi
  4391.   cd ..
  4392.   rm -fr conftest.dir
  4393. fi
  4394.  
  4395. # Standard set of common directories for X headers.
  4396. # Check X11 before X11Rn because it is often a symlink to the current release.
  4397. ac_x_header_dirs='
  4398. /usr/X11/include
  4399. /usr/X11R6/include
  4400. /usr/X11R5/include
  4401. /usr/X11R4/include
  4402.  
  4403. /usr/include/X11
  4404. /usr/include/X11R6
  4405. /usr/include/X11R5
  4406. /usr/include/X11R4
  4407.  
  4408. /usr/local/X11/include
  4409. /usr/local/X11R6/include
  4410. /usr/local/X11R5/include
  4411. /usr/local/X11R4/include
  4412.  
  4413. /usr/local/include/X11
  4414. /usr/local/include/X11R6
  4415. /usr/local/include/X11R5
  4416. /usr/local/include/X11R4
  4417.  
  4418. /usr/X386/include
  4419. /usr/x386/include
  4420. /usr/XFree86/include/X11
  4421.  
  4422. /usr/include
  4423. /usr/local/include
  4424. /usr/unsupported/include
  4425. /usr/athena/include
  4426. /usr/local/x11r5/include
  4427. /usr/lpp/Xamples/include
  4428.  
  4429. /usr/openwin/include
  4430. /usr/openwin/share/include'
  4431.  
  4432. if test "$ac_x_includes" = no; then
  4433.   # Guess where to find include files, by looking for Intrinsic.h.
  4434.   # First, try using that file with no special directory specified.
  4435.   cat >conftest.$ac_ext <<_ACEOF
  4436. /* confdefs.h.  */
  4437. _ACEOF
  4438. cat confdefs.h >>conftest.$ac_ext
  4439. cat >>conftest.$ac_ext <<_ACEOF
  4440. /* end confdefs.h.  */
  4441. #include <X11/Intrinsic.h>
  4442. _ACEOF
  4443. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4444.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4445.   ac_status=$?
  4446.   grep -v '^ *+' conftest.er1 >conftest.err
  4447.   rm -f conftest.er1
  4448.   cat conftest.err >&5
  4449.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4450.   (exit $ac_status); } >/dev/null; then
  4451.   if test -s conftest.err; then
  4452.     ac_cpp_err=$ac_c_preproc_warn_flag
  4453.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4454.   else
  4455.     ac_cpp_err=
  4456.   fi
  4457. else
  4458.   ac_cpp_err=yes
  4459. fi
  4460. if test -z "$ac_cpp_err"; then
  4461.   # We can compile using X headers with no special include directory.
  4462. ac_x_includes=
  4463. else
  4464.   echo "$as_me: failed program was:" >&5
  4465. sed 's/^/| /' conftest.$ac_ext >&5
  4466.  
  4467.   for ac_dir in $ac_x_header_dirs; do
  4468.   if test -r "$ac_dir/X11/Intrinsic.h"; then
  4469.     ac_x_includes=$ac_dir
  4470.     break
  4471.   fi
  4472. done
  4473. fi
  4474. rm -f conftest.err conftest.$ac_ext
  4475. fi # $ac_x_includes = no
  4476.  
  4477. if test "$ac_x_libraries" = no; then
  4478.   # Check for the libraries.
  4479.   # See if we find them without any special options.
  4480.   # Don't add to $LIBS permanently.
  4481.   ac_save_LIBS=$LIBS
  4482.   LIBS="-lXt $LIBS"
  4483.   cat >conftest.$ac_ext <<_ACEOF
  4484. /* confdefs.h.  */
  4485. _ACEOF
  4486. cat confdefs.h >>conftest.$ac_ext
  4487. cat >>conftest.$ac_ext <<_ACEOF
  4488. /* end confdefs.h.  */
  4489. #include <X11/Intrinsic.h>
  4490. int
  4491. main ()
  4492. {
  4493. XtMalloc (0)
  4494.   ;
  4495.   return 0;
  4496. }
  4497. _ACEOF
  4498. rm -f conftest.$ac_objext conftest$ac_exeext
  4499. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4500.   (eval $ac_link) 2>conftest.er1
  4501.   ac_status=$?
  4502.   grep -v '^ *+' conftest.er1 >conftest.err
  4503.   rm -f conftest.er1
  4504.   cat conftest.err >&5
  4505.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4506.   (exit $ac_status); } &&
  4507.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  4508.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4509.   (eval $ac_try) 2>&5
  4510.   ac_status=$?
  4511.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4512.   (exit $ac_status); }; } &&
  4513.      { ac_try='test -s conftest$ac_exeext'
  4514.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4515.   (eval $ac_try) 2>&5
  4516.   ac_status=$?
  4517.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4518.   (exit $ac_status); }; }; then
  4519.   LIBS=$ac_save_LIBS
  4520. # We can link X programs with no special library path.
  4521. ac_x_libraries=
  4522. else
  4523.   echo "$as_me: failed program was:" >&5
  4524. sed 's/^/| /' conftest.$ac_ext >&5
  4525.  
  4526. LIBS=$ac_save_LIBS
  4527. for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  4528. do
  4529.   # Don't even attempt the hair of trying to link an X program!
  4530.   for ac_extension in a so sl; do
  4531.     if test -r $ac_dir/libXt.$ac_extension; then
  4532.       ac_x_libraries=$ac_dir
  4533.       break 2
  4534.     fi
  4535.   done
  4536. done
  4537. fi
  4538. rm -f conftest.err conftest.$ac_objext \
  4539.       conftest$ac_exeext conftest.$ac_ext
  4540. fi # $ac_x_libraries = no
  4541.  
  4542. if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
  4543.   # Didn't find X anywhere.  Cache the known absence of X.
  4544.   ac_cv_have_x="have_x=no"
  4545. else
  4546.   # Record where we found X for the cache.
  4547.   ac_cv_have_x="have_x=yes \
  4548.         ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  4549. fi
  4550. fi
  4551.  
  4552.   fi
  4553.   eval "$ac_cv_have_x"
  4554. fi # $with_x != no
  4555.  
  4556. if test "$have_x" != yes; then
  4557.   echo "$as_me:$LINENO: result: $have_x" >&5
  4558. echo "${ECHO_T}$have_x" >&6
  4559.   no_x=yes
  4560. else
  4561.   # If each of the values was on the command line, it overrides each guess.
  4562.   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  4563.   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  4564.   # Update the cache value to reflect the command line values.
  4565.   ac_cv_have_x="have_x=yes \
  4566.         ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  4567.   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
  4568. echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
  4569. fi
  4570.  
  4571. echo "$as_me:$LINENO: checking for egrep" >&5
  4572. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  4573. if test "${ac_cv_prog_egrep+set}" = set; then
  4574.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4575. else
  4576.   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  4577.     then ac_cv_prog_egrep='grep -E'
  4578.     else ac_cv_prog_egrep='egrep'
  4579.     fi
  4580. fi
  4581. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  4582. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  4583.  EGREP=$ac_cv_prog_egrep
  4584.  
  4585.  
  4586. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4587. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  4588. if test "${ac_cv_header_stdc+set}" = set; then
  4589.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4590. else
  4591.   cat >conftest.$ac_ext <<_ACEOF
  4592. /* confdefs.h.  */
  4593. _ACEOF
  4594. cat confdefs.h >>conftest.$ac_ext
  4595. cat >>conftest.$ac_ext <<_ACEOF
  4596. /* end confdefs.h.  */
  4597. #include <stdlib.h>
  4598. #include <stdarg.h>
  4599. #include <string.h>
  4600. #include <float.h>
  4601.  
  4602. int
  4603. main ()
  4604. {
  4605.  
  4606.   ;
  4607.   return 0;
  4608. }
  4609. _ACEOF
  4610. rm -f conftest.$ac_objext
  4611. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4612.   (eval $ac_compile) 2>conftest.er1
  4613.   ac_status=$?
  4614.   grep -v '^ *+' conftest.er1 >conftest.err
  4615.   rm -f conftest.er1
  4616.   cat conftest.err >&5
  4617.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4618.   (exit $ac_status); } &&
  4619.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  4620.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4621.   (eval $ac_try) 2>&5
  4622.   ac_status=$?
  4623.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4624.   (exit $ac_status); }; } &&
  4625.      { ac_try='test -s conftest.$ac_objext'
  4626.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4627.   (eval $ac_try) 2>&5
  4628.   ac_status=$?
  4629.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4630.   (exit $ac_status); }; }; then
  4631.   ac_cv_header_stdc=yes
  4632. else
  4633.   echo "$as_me: failed program was:" >&5
  4634. sed 's/^/| /' conftest.$ac_ext >&5
  4635.  
  4636. ac_cv_header_stdc=no
  4637. fi
  4638. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4639.  
  4640. if test $ac_cv_header_stdc = yes; then
  4641.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4642.   cat >conftest.$ac_ext <<_ACEOF
  4643. /* confdefs.h.  */
  4644. _ACEOF
  4645. cat confdefs.h >>conftest.$ac_ext
  4646. cat >>conftest.$ac_ext <<_ACEOF
  4647. /* end confdefs.h.  */
  4648. #include <string.h>
  4649.  
  4650. _ACEOF
  4651. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4652.   $EGREP "memchr" >/dev/null 2>&1; then
  4653.   :
  4654. else
  4655.   ac_cv_header_stdc=no
  4656. fi
  4657. rm -f conftest*
  4658.  
  4659. fi
  4660.  
  4661. if test $ac_cv_header_stdc = yes; then
  4662.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4663.   cat >conftest.$ac_ext <<_ACEOF
  4664. /* confdefs.h.  */
  4665. _ACEOF
  4666. cat confdefs.h >>conftest.$ac_ext
  4667. cat >>conftest.$ac_ext <<_ACEOF
  4668. /* end confdefs.h.  */
  4669. #include <stdlib.h>
  4670.  
  4671. _ACEOF
  4672. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4673.   $EGREP "free" >/dev/null 2>&1; then
  4674.   :
  4675. else
  4676.   ac_cv_header_stdc=no
  4677. fi
  4678. rm -f conftest*
  4679.  
  4680. fi
  4681.  
  4682. if test $ac_cv_header_stdc = yes; then
  4683.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4684.   if test "$cross_compiling" = yes; then
  4685.   :
  4686. else
  4687.   cat >conftest.$ac_ext <<_ACEOF
  4688. /* confdefs.h.  */
  4689. _ACEOF
  4690. cat confdefs.h >>conftest.$ac_ext
  4691. cat >>conftest.$ac_ext <<_ACEOF
  4692. /* end confdefs.h.  */
  4693. #include <ctype.h>
  4694. #if ((' ' & 0x0FF) == 0x020)
  4695. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4696. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4697. #else
  4698. # define ISLOWER(c) \
  4699.            (('a' <= (c) && (c) <= 'i') \
  4700.              || ('j' <= (c) && (c) <= 'r') \
  4701.              || ('s' <= (c) && (c) <= 'z'))
  4702. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4703. #endif
  4704.  
  4705. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4706. int
  4707. main ()
  4708. {
  4709.   int i;
  4710.   for (i = 0; i < 256; i++)
  4711.     if (XOR (islower (i), ISLOWER (i))
  4712.     || toupper (i) != TOUPPER (i))
  4713.       exit(2);
  4714.   exit (0);
  4715. }
  4716. _ACEOF
  4717. rm -f conftest$ac_exeext
  4718. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4719.   (eval $ac_link) 2>&5
  4720.   ac_status=$?
  4721.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4722.   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4723.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4724.   (eval $ac_try) 2>&5
  4725.   ac_status=$?
  4726.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4727.   (exit $ac_status); }; }; then
  4728.   :
  4729. else
  4730.   echo "$as_me: program exited with status $ac_status" >&5
  4731. echo "$as_me: failed program was:" >&5
  4732. sed 's/^/| /' conftest.$ac_ext >&5
  4733.  
  4734. ( exit $ac_status )
  4735. ac_cv_header_stdc=no
  4736. fi
  4737. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4738. fi
  4739. fi
  4740. fi
  4741. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4742. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  4743. if test $ac_cv_header_stdc = yes; then
  4744.  
  4745. cat >>confdefs.h <<\_ACEOF
  4746. #define STDC_HEADERS 1
  4747. _ACEOF
  4748.  
  4749. fi
  4750.  
  4751. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4752.  
  4753.  
  4754.  
  4755.  
  4756.  
  4757.  
  4758.  
  4759.  
  4760.  
  4761. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4762.           inttypes.h stdint.h unistd.h
  4763. do
  4764. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4765. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4766. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4767. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4768.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4769. else
  4770.   cat >conftest.$ac_ext <<_ACEOF
  4771. /* confdefs.h.  */
  4772. _ACEOF
  4773. cat confdefs.h >>conftest.$ac_ext
  4774. cat >>conftest.$ac_ext <<_ACEOF
  4775. /* end confdefs.h.  */
  4776. $ac_includes_default
  4777.  
  4778. #include <$ac_header>
  4779. _ACEOF
  4780. rm -f conftest.$ac_objext
  4781. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4782.   (eval $ac_compile) 2>conftest.er1
  4783.   ac_status=$?
  4784.   grep -v '^ *+' conftest.er1 >conftest.err
  4785.   rm -f conftest.er1
  4786.   cat conftest.err >&5
  4787.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4788.   (exit $ac_status); } &&
  4789.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  4790.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4791.   (eval $ac_try) 2>&5
  4792.   ac_status=$?
  4793.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4794.   (exit $ac_status); }; } &&
  4795.      { ac_try='test -s conftest.$ac_objext'
  4796.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4797.   (eval $ac_try) 2>&5
  4798.   ac_status=$?
  4799.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4800.   (exit $ac_status); }; }; then
  4801.   eval "$as_ac_Header=yes"
  4802. else
  4803.   echo "$as_me: failed program was:" >&5
  4804. sed 's/^/| /' conftest.$ac_ext >&5
  4805.  
  4806. eval "$as_ac_Header=no"
  4807. fi
  4808. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4809. fi
  4810. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4811. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4812. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4813.   cat >>confdefs.h <<_ACEOF
  4814. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4815. _ACEOF
  4816.  
  4817. fi
  4818.  
  4819. done
  4820.  
  4821.  
  4822.  
  4823.  
  4824.  
  4825.  
  4826.  
  4827.  
  4828. for ac_header in malloc.h strings.h unistd.h arpa/inet.h netinet/in.h zutil.h
  4829. do
  4830. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4831. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4832.   echo "$as_me:$LINENO: checking for $ac_header" >&5
  4833. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4834. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4835.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4836. fi
  4837. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4838. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4839. else
  4840.   # Is the header compilable?
  4841. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4842. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4843. cat >conftest.$ac_ext <<_ACEOF
  4844. /* confdefs.h.  */
  4845. _ACEOF
  4846. cat confdefs.h >>conftest.$ac_ext
  4847. cat >>conftest.$ac_ext <<_ACEOF
  4848. /* end confdefs.h.  */
  4849. $ac_includes_default
  4850. #include <$ac_header>
  4851. _ACEOF
  4852. rm -f conftest.$ac_objext
  4853. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4854.   (eval $ac_compile) 2>conftest.er1
  4855.   ac_status=$?
  4856.   grep -v '^ *+' conftest.er1 >conftest.err
  4857.   rm -f conftest.er1
  4858.   cat conftest.err >&5
  4859.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4860.   (exit $ac_status); } &&
  4861.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  4862.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4863.   (eval $ac_try) 2>&5
  4864.   ac_status=$?
  4865.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4866.   (exit $ac_status); }; } &&
  4867.      { ac_try='test -s conftest.$ac_objext'
  4868.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4869.   (eval $ac_try) 2>&5
  4870.   ac_status=$?
  4871.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4872.   (exit $ac_status); }; }; then
  4873.   ac_header_compiler=yes
  4874. else
  4875.   echo "$as_me: failed program was:" >&5
  4876. sed 's/^/| /' conftest.$ac_ext >&5
  4877.  
  4878. ac_header_compiler=no
  4879. fi
  4880. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4881. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4882. echo "${ECHO_T}$ac_header_compiler" >&6
  4883.  
  4884. # Is the header present?
  4885. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4886. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4887. cat >conftest.$ac_ext <<_ACEOF
  4888. /* confdefs.h.  */
  4889. _ACEOF
  4890. cat confdefs.h >>conftest.$ac_ext
  4891. cat >>conftest.$ac_ext <<_ACEOF
  4892. /* end confdefs.h.  */
  4893. #include <$ac_header>
  4894. _ACEOF
  4895. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4896.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4897.   ac_status=$?
  4898.   grep -v '^ *+' conftest.er1 >conftest.err
  4899.   rm -f conftest.er1
  4900.   cat conftest.err >&5
  4901.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4902.   (exit $ac_status); } >/dev/null; then
  4903.   if test -s conftest.err; then
  4904.     ac_cpp_err=$ac_c_preproc_warn_flag
  4905.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4906.   else
  4907.     ac_cpp_err=
  4908.   fi
  4909. else
  4910.   ac_cpp_err=yes
  4911. fi
  4912. if test -z "$ac_cpp_err"; then
  4913.   ac_header_preproc=yes
  4914. else
  4915.   echo "$as_me: failed program was:" >&5
  4916. sed 's/^/| /' conftest.$ac_ext >&5
  4917.  
  4918.   ac_header_preproc=no
  4919. fi
  4920. rm -f conftest.err conftest.$ac_ext
  4921. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4922. echo "${ECHO_T}$ac_header_preproc" >&6
  4923.  
  4924. # So?  What about this header?
  4925. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4926.   yes:no: )
  4927.     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4928. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4929.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4930. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4931.     ac_header_preproc=yes
  4932.     ;;
  4933.   no:yes:* )
  4934.     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4935. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4936.     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
  4937. echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
  4938.     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4939. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4940.     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
  4941. echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
  4942.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4943. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4944.     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4945. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4946.     (
  4947.       cat <<\_ASBOX
  4948. ## ------------------------------------------ ##
  4949. ## Report this to the AC_PACKAGE_NAME lists.  ##
  4950. ## ------------------------------------------ ##
  4951. _ASBOX
  4952.     ) |
  4953.       sed "s/^/$as_me: WARNING:     /" >&2
  4954.     ;;
  4955. esac
  4956. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4957. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4958. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4959.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4960. else
  4961.   eval "$as_ac_Header=\$ac_header_preproc"
  4962. fi
  4963. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4964. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4965.  
  4966. fi
  4967. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4968.   cat >>confdefs.h <<_ACEOF
  4969. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4970. _ACEOF
  4971.  
  4972. fi
  4973.  
  4974. done
  4975.  
  4976.  
  4977. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  4978. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  4979. if test "${ac_cv_c_const+set}" = set; then
  4980.   echo $ECHO_N "(cached) $ECHO_C" >&6
  4981. else
  4982.   cat >conftest.$ac_ext <<_ACEOF
  4983. /* confdefs.h.  */
  4984. _ACEOF
  4985. cat confdefs.h >>conftest.$ac_ext
  4986. cat >>conftest.$ac_ext <<_ACEOF
  4987. /* end confdefs.h.  */
  4988.  
  4989. int
  4990. main ()
  4991. {
  4992. /* FIXME: Include the comments suggested by Paul. */
  4993. #ifndef __cplusplus
  4994.   /* Ultrix mips cc rejects this.  */
  4995.   typedef int charset[2];
  4996.   const charset x;
  4997.   /* SunOS 4.1.1 cc rejects this.  */
  4998.   char const *const *ccp;
  4999.   char **p;
  5000.   /* NEC SVR4.0.2 mips cc rejects this.  */
  5001.   struct point {int x, y;};
  5002.   static struct point const zero = {0,0};
  5003.   /* AIX XL C 1.02.0.0 rejects this.
  5004.      It does not let you subtract one const X* pointer from another in
  5005.      an arm of an if-expression whose if-part is not a constant
  5006.      expression */
  5007.   const char *g = "string";
  5008.   ccp = &g + (g ? g-g : 0);
  5009.   /* HPUX 7.0 cc rejects these. */
  5010.   ++ccp;
  5011.   p = (char**) ccp;
  5012.   ccp = (char const *const *) p;
  5013.   { /* SCO 3.2v4 cc rejects this.  */
  5014.     char *t;
  5015.     char const *s = 0 ? (char *) 0 : (char const *) 0;
  5016.  
  5017.     *t++ = 0;
  5018.   }
  5019.   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  5020.     int x[] = {25, 17};
  5021.     const int *foo = &x[0];
  5022.     ++foo;
  5023.   }
  5024.   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5025.     typedef const int *iptr;
  5026.     iptr p = 0;
  5027.     ++p;
  5028.   }
  5029.   { /* AIX XL C 1.02.0.0 rejects this saying
  5030.        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5031.     struct s { int j; const int *ap[3]; };
  5032.     struct s *b; b->j = 5;
  5033.   }
  5034.   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5035.     const int foo = 10;
  5036.   }
  5037. #endif
  5038.  
  5039.   ;
  5040.   return 0;
  5041. }
  5042. _ACEOF
  5043. rm -f conftest.$ac_objext
  5044. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5045.   (eval $ac_compile) 2>conftest.er1
  5046.   ac_status=$?
  5047.   grep -v '^ *+' conftest.er1 >conftest.err
  5048.   rm -f conftest.er1
  5049.   cat conftest.err >&5
  5050.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5051.   (exit $ac_status); } &&
  5052.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  5053.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5054.   (eval $ac_try) 2>&5
  5055.   ac_status=$?
  5056.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5057.   (exit $ac_status); }; } &&
  5058.      { ac_try='test -s conftest.$ac_objext'
  5059.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5060.   (eval $ac_try) 2>&5
  5061.   ac_status=$?
  5062.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5063.   (exit $ac_status); }; }; then
  5064.   ac_cv_c_const=yes
  5065. else
  5066.   echo "$as_me: failed program was:" >&5
  5067. sed 's/^/| /' conftest.$ac_ext >&5
  5068.  
  5069. ac_cv_c_const=no
  5070. fi
  5071. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5072. fi
  5073. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5074. echo "${ECHO_T}$ac_cv_c_const" >&6
  5075. if test $ac_cv_c_const = no; then
  5076.  
  5077. cat >>confdefs.h <<\_ACEOF
  5078. #define const
  5079. _ACEOF
  5080.  
  5081. fi
  5082.  
  5083. echo "$as_me:$LINENO: checking for inline" >&5
  5084. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  5085. if test "${ac_cv_c_inline+set}" = set; then
  5086.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5087. else
  5088.   ac_cv_c_inline=no
  5089. for ac_kw in inline __inline__ __inline; do
  5090.   cat >conftest.$ac_ext <<_ACEOF
  5091. /* confdefs.h.  */
  5092. _ACEOF
  5093. cat confdefs.h >>conftest.$ac_ext
  5094. cat >>conftest.$ac_ext <<_ACEOF
  5095. /* end confdefs.h.  */
  5096. #ifndef __cplusplus
  5097. typedef int foo_t;
  5098. static $ac_kw foo_t static_foo () {return 0; }
  5099. $ac_kw foo_t foo () {return 0; }
  5100. #endif
  5101.  
  5102. _ACEOF
  5103. rm -f conftest.$ac_objext
  5104. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5105.   (eval $ac_compile) 2>conftest.er1
  5106.   ac_status=$?
  5107.   grep -v '^ *+' conftest.er1 >conftest.err
  5108.   rm -f conftest.er1
  5109.   cat conftest.err >&5
  5110.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5111.   (exit $ac_status); } &&
  5112.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  5113.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5114.   (eval $ac_try) 2>&5
  5115.   ac_status=$?
  5116.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5117.   (exit $ac_status); }; } &&
  5118.      { ac_try='test -s conftest.$ac_objext'
  5119.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5120.   (eval $ac_try) 2>&5
  5121.   ac_status=$?
  5122.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5123.   (exit $ac_status); }; }; then
  5124.   ac_cv_c_inline=$ac_kw; break
  5125. else
  5126.   echo "$as_me: failed program was:" >&5
  5127. sed 's/^/| /' conftest.$ac_ext >&5
  5128.  
  5129. fi
  5130. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5131. done
  5132.  
  5133. fi
  5134. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  5135. echo "${ECHO_T}$ac_cv_c_inline" >&6
  5136.  
  5137.  
  5138. case $ac_cv_c_inline in
  5139.   inline | yes) ;;
  5140.   *)
  5141.     case $ac_cv_c_inline in
  5142.       no) ac_val=;;
  5143.       *) ac_val=$ac_cv_c_inline;;
  5144.     esac
  5145.     cat >>confdefs.h <<_ACEOF
  5146. #ifndef __cplusplus
  5147. #define inline $ac_val
  5148. #endif
  5149. _ACEOF
  5150.     ;;
  5151. esac
  5152.  
  5153. echo "$as_me:$LINENO: checking for size_t" >&5
  5154. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5155. if test "${ac_cv_type_size_t+set}" = set; then
  5156.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5157. else
  5158.   cat >conftest.$ac_ext <<_ACEOF
  5159. /* confdefs.h.  */
  5160. _ACEOF
  5161. cat confdefs.h >>conftest.$ac_ext
  5162. cat >>conftest.$ac_ext <<_ACEOF
  5163. /* end confdefs.h.  */
  5164. $ac_includes_default
  5165. int
  5166. main ()
  5167. {
  5168. if ((size_t *) 0)
  5169.   return 0;
  5170. if (sizeof (size_t))
  5171.   return 0;
  5172.   ;
  5173.   return 0;
  5174. }
  5175. _ACEOF
  5176. rm -f conftest.$ac_objext
  5177. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5178.   (eval $ac_compile) 2>conftest.er1
  5179.   ac_status=$?
  5180.   grep -v '^ *+' conftest.er1 >conftest.err
  5181.   rm -f conftest.er1
  5182.   cat conftest.err >&5
  5183.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5184.   (exit $ac_status); } &&
  5185.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  5186.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5187.   (eval $ac_try) 2>&5
  5188.   ac_status=$?
  5189.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5190.   (exit $ac_status); }; } &&
  5191.      { ac_try='test -s conftest.$ac_objext'
  5192.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5193.   (eval $ac_try) 2>&5
  5194.   ac_status=$?
  5195.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5196.   (exit $ac_status); }; }; then
  5197.   ac_cv_type_size_t=yes
  5198. else
  5199.   echo "$as_me: failed program was:" >&5
  5200. sed 's/^/| /' conftest.$ac_ext >&5
  5201.  
  5202. ac_cv_type_size_t=no
  5203. fi
  5204. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5205. fi
  5206. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5207. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5208. if test $ac_cv_type_size_t = yes; then
  5209.   :
  5210. else
  5211.  
  5212. cat >>confdefs.h <<_ACEOF
  5213. #define size_t unsigned
  5214. _ACEOF
  5215.  
  5216. fi
  5217.  
  5218. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  5219. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  5220. if test "${ac_cv_struct_tm+set}" = set; then
  5221.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5222. else
  5223.   cat >conftest.$ac_ext <<_ACEOF
  5224. /* confdefs.h.  */
  5225. _ACEOF
  5226. cat confdefs.h >>conftest.$ac_ext
  5227. cat >>conftest.$ac_ext <<_ACEOF
  5228. /* end confdefs.h.  */
  5229. #include <sys/types.h>
  5230. #include <time.h>
  5231.  
  5232. int
  5233. main ()
  5234. {
  5235. struct tm *tp; tp->tm_sec;
  5236.   ;
  5237.   return 0;
  5238. }
  5239. _ACEOF
  5240. rm -f conftest.$ac_objext
  5241. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5242.   (eval $ac_compile) 2>conftest.er1
  5243.   ac_status=$?
  5244.   grep -v '^ *+' conftest.er1 >conftest.err
  5245.   rm -f conftest.er1
  5246.   cat conftest.err >&5
  5247.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5248.   (exit $ac_status); } &&
  5249.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  5250.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5251.   (eval $ac_try) 2>&5
  5252.   ac_status=$?
  5253.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5254.   (exit $ac_status); }; } &&
  5255.      { ac_try='test -s conftest.$ac_objext'
  5256.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5257.   (eval $ac_try) 2>&5
  5258.   ac_status=$?
  5259.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5260.   (exit $ac_status); }; }; then
  5261.   ac_cv_struct_tm=time.h
  5262. else
  5263.   echo "$as_me: failed program was:" >&5
  5264. sed 's/^/| /' conftest.$ac_ext >&5
  5265.  
  5266. ac_cv_struct_tm=sys/time.h
  5267. fi
  5268. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5269. fi
  5270. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  5271. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  5272. if test $ac_cv_struct_tm = sys/time.h; then
  5273.  
  5274. cat >>confdefs.h <<\_ACEOF
  5275. #define TM_IN_SYS_TIME 1
  5276. _ACEOF
  5277.  
  5278. fi
  5279.  
  5280. echo "$as_me:$LINENO: checking for socklen_t" >&5
  5281. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  5282. cat >conftest.$ac_ext <<_ACEOF
  5283. /* confdefs.h.  */
  5284. _ACEOF
  5285. cat confdefs.h >>conftest.$ac_ext
  5286. cat >>conftest.$ac_ext <<_ACEOF
  5287. /* end confdefs.h.  */
  5288.  
  5289. #include <sys/socket.h>
  5290. socklen_t x;
  5291.  
  5292. int
  5293. main ()
  5294. {
  5295.  
  5296.  
  5297.   ;
  5298.   return 0;
  5299. }
  5300. _ACEOF
  5301. rm -f conftest.$ac_objext
  5302. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5303.   (eval $ac_compile) 2>conftest.er1
  5304.   ac_status=$?
  5305.   grep -v '^ *+' conftest.er1 >conftest.err
  5306.   rm -f conftest.er1
  5307.   cat conftest.err >&5
  5308.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5309.   (exit $ac_status); } &&
  5310.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  5311.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5312.   (eval $ac_try) 2>&5
  5313.   ac_status=$?
  5314.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5315.   (exit $ac_status); }; } &&
  5316.      { ac_try='test -s conftest.$ac_objext'
  5317.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5318.   (eval $ac_try) 2>&5
  5319.   ac_status=$?
  5320.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5321.   (exit $ac_status); }; }; then
  5322.  
  5323. echo "$as_me:$LINENO: result: yes" >&5
  5324. echo "${ECHO_T}yes" >&6
  5325.  
  5326. else
  5327.   echo "$as_me: failed program was:" >&5
  5328. sed 's/^/| /' conftest.$ac_ext >&5
  5329.  
  5330.  
  5331. cat >conftest.$ac_ext <<_ACEOF
  5332. /* confdefs.h.  */
  5333. _ACEOF
  5334. cat confdefs.h >>conftest.$ac_ext
  5335. cat >>conftest.$ac_ext <<_ACEOF
  5336. /* end confdefs.h.  */
  5337.  
  5338. #include <sys/socket.h>
  5339. int accept (int, struct sockaddr *, size_t *);
  5340.  
  5341. int
  5342. main ()
  5343. {
  5344.  
  5345.  
  5346.   ;
  5347.   return 0;
  5348. }
  5349. _ACEOF
  5350. rm -f conftest.$ac_objext
  5351. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5352.   (eval $ac_compile) 2>conftest.er1
  5353.   ac_status=$?
  5354.   grep -v '^ *+' conftest.er1 >conftest.err
  5355.   rm -f conftest.er1
  5356.   cat conftest.err >&5
  5357.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5358.   (exit $ac_status); } &&
  5359.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  5360.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5361.   (eval $ac_try) 2>&5
  5362.   ac_status=$?
  5363.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5364.   (exit $ac_status); }; } &&
  5365.      { ac_try='test -s conftest.$ac_objext'
  5366.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5367.   (eval $ac_try) 2>&5
  5368.   ac_status=$?
  5369.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5370.   (exit $ac_status); }; }; then
  5371.  
  5372. echo "$as_me:$LINENO: result: size_t" >&5
  5373. echo "${ECHO_T}size_t" >&6
  5374. cat >>confdefs.h <<\_ACEOF
  5375. #define socklen_t size_t
  5376. _ACEOF
  5377.  
  5378.  
  5379. else
  5380.   echo "$as_me: failed program was:" >&5
  5381. sed 's/^/| /' conftest.$ac_ext >&5
  5382.  
  5383.  
  5384. echo "$as_me:$LINENO: result: int" >&5
  5385. echo "${ECHO_T}int" >&6
  5386. cat >>confdefs.h <<\_ACEOF
  5387. #define socklen_t int
  5388. _ACEOF
  5389.  
  5390.  
  5391. fi
  5392. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5393.  
  5394. fi
  5395. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5396.  
  5397. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5398. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  5399. if test "${ac_cv_c_bigendian+set}" = set; then
  5400.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5401. else
  5402.   # See if sys/param.h defines the BYTE_ORDER macro.
  5403. cat >conftest.$ac_ext <<_ACEOF
  5404. /* confdefs.h.  */
  5405. _ACEOF
  5406. cat confdefs.h >>conftest.$ac_ext
  5407. cat >>conftest.$ac_ext <<_ACEOF
  5408. /* end confdefs.h.  */
  5409. #include <sys/types.h>
  5410. #include <sys/param.h>
  5411.  
  5412. int
  5413. main ()
  5414. {
  5415. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  5416.  bogus endian macros
  5417. #endif
  5418.  
  5419.   ;
  5420.   return 0;
  5421. }
  5422. _ACEOF
  5423. rm -f conftest.$ac_objext
  5424. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5425.   (eval $ac_compile) 2>conftest.er1
  5426.   ac_status=$?
  5427.   grep -v '^ *+' conftest.er1 >conftest.err
  5428.   rm -f conftest.er1
  5429.   cat conftest.err >&5
  5430.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5431.   (exit $ac_status); } &&
  5432.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  5433.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5434.   (eval $ac_try) 2>&5
  5435.   ac_status=$?
  5436.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5437.   (exit $ac_status); }; } &&
  5438.      { ac_try='test -s conftest.$ac_objext'
  5439.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5440.   (eval $ac_try) 2>&5
  5441.   ac_status=$?
  5442.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5443.   (exit $ac_status); }; }; then
  5444.   # It does; now see whether it defined to BIG_ENDIAN or not.
  5445. cat >conftest.$ac_ext <<_ACEOF
  5446. /* confdefs.h.  */
  5447. _ACEOF
  5448. cat confdefs.h >>conftest.$ac_ext
  5449. cat >>conftest.$ac_ext <<_ACEOF
  5450. /* end confdefs.h.  */
  5451. #include <sys/types.h>
  5452. #include <sys/param.h>
  5453.  
  5454. int
  5455. main ()
  5456. {
  5457. #if BYTE_ORDER != BIG_ENDIAN
  5458.  not big endian
  5459. #endif
  5460.  
  5461.   ;
  5462.   return 0;
  5463. }
  5464. _ACEOF
  5465. rm -f conftest.$ac_objext
  5466. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5467.   (eval $ac_compile) 2>conftest.er1
  5468.   ac_status=$?
  5469.   grep -v '^ *+' conftest.er1 >conftest.err
  5470.   rm -f conftest.er1
  5471.   cat conftest.err >&5
  5472.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5473.   (exit $ac_status); } &&
  5474.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  5475.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5476.   (eval $ac_try) 2>&5
  5477.   ac_status=$?
  5478.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5479.   (exit $ac_status); }; } &&
  5480.      { ac_try='test -s conftest.$ac_objext'
  5481.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5482.   (eval $ac_try) 2>&5
  5483.   ac_status=$?
  5484.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5485.   (exit $ac_status); }; }; then
  5486.   ac_cv_c_bigendian=yes
  5487. else
  5488.   echo "$as_me: failed program was:" >&5
  5489. sed 's/^/| /' conftest.$ac_ext >&5
  5490.  
  5491. ac_cv_c_bigendian=no
  5492. fi
  5493. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5494. else
  5495.   echo "$as_me: failed program was:" >&5
  5496. sed 's/^/| /' conftest.$ac_ext >&5
  5497.  
  5498. # It does not; compile a test program.
  5499. if test "$cross_compiling" = yes; then
  5500.   # try to guess the endianness by grepping values into an object file
  5501.   ac_cv_c_bigendian=unknown
  5502.   cat >conftest.$ac_ext <<_ACEOF
  5503. /* confdefs.h.  */
  5504. _ACEOF
  5505. cat confdefs.h >>conftest.$ac_ext
  5506. cat >>conftest.$ac_ext <<_ACEOF
  5507. /* end confdefs.h.  */
  5508. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5509. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5510. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  5511. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5512. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5513. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  5514. int
  5515. main ()
  5516. {
  5517.  _ascii (); _ebcdic ();
  5518.   ;
  5519.   return 0;
  5520. }
  5521. _ACEOF
  5522. rm -f conftest.$ac_objext
  5523. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5524.   (eval $ac_compile) 2>conftest.er1
  5525.   ac_status=$?
  5526.   grep -v '^ *+' conftest.er1 >conftest.err
  5527.   rm -f conftest.er1
  5528.   cat conftest.err >&5
  5529.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5530.   (exit $ac_status); } &&
  5531.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  5532.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5533.   (eval $ac_try) 2>&5
  5534.   ac_status=$?
  5535.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5536.   (exit $ac_status); }; } &&
  5537.      { ac_try='test -s conftest.$ac_objext'
  5538.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5539.   (eval $ac_try) 2>&5
  5540.   ac_status=$?
  5541.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5542.   (exit $ac_status); }; }; then
  5543.   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  5544.   ac_cv_c_bigendian=yes
  5545. fi
  5546. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5547.   if test "$ac_cv_c_bigendian" = unknown; then
  5548.     ac_cv_c_bigendian=no
  5549.   else
  5550.     # finding both strings is unlikely to happen, but who knows?
  5551.     ac_cv_c_bigendian=unknown
  5552.   fi
  5553. fi
  5554. else
  5555.   echo "$as_me: failed program was:" >&5
  5556. sed 's/^/| /' conftest.$ac_ext >&5
  5557.  
  5558. fi
  5559. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5560. else
  5561.   cat >conftest.$ac_ext <<_ACEOF
  5562. /* confdefs.h.  */
  5563. _ACEOF
  5564. cat confdefs.h >>conftest.$ac_ext
  5565. cat >>conftest.$ac_ext <<_ACEOF
  5566. /* end confdefs.h.  */
  5567. int
  5568. main ()
  5569. {
  5570.   /* Are we little or big endian?  From Harbison&Steele.  */
  5571.   union
  5572.   {
  5573.     long l;
  5574.     char c[sizeof (long)];
  5575.   } u;
  5576.   u.l = 1;
  5577.   exit (u.c[sizeof (long) - 1] == 1);
  5578. }
  5579. _ACEOF
  5580. rm -f conftest$ac_exeext
  5581. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5582.   (eval $ac_link) 2>&5
  5583.   ac_status=$?
  5584.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5585.   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5586.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5587.   (eval $ac_try) 2>&5
  5588.   ac_status=$?
  5589.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5590.   (exit $ac_status); }; }; then
  5591.   ac_cv_c_bigendian=no
  5592. else
  5593.   echo "$as_me: program exited with status $ac_status" >&5
  5594. echo "$as_me: failed program was:" >&5
  5595. sed 's/^/| /' conftest.$ac_ext >&5
  5596.  
  5597. ( exit $ac_status )
  5598. ac_cv_c_bigendian=yes
  5599. fi
  5600. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5601. fi
  5602. fi
  5603. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5604. fi
  5605. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  5606. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  5607. case $ac_cv_c_bigendian in
  5608.   yes)
  5609.  
  5610. cat >>confdefs.h <<\_ACEOF
  5611. #define WORDS_BIGENDIAN 1
  5612. _ACEOF
  5613.  ;;
  5614.   no)
  5615.      ;;
  5616.   *)
  5617.     { { echo "$as_me:$LINENO: error: unknown endianness
  5618. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  5619. echo "$as_me: error: unknown endianness
  5620. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  5621.    { (exit 1); exit 1; }; } ;;
  5622. esac
  5623.  
  5624.  
  5625. VBA_LIBS="../gb/libgb.a"
  5626.  
  5627. if test "x$enable_c_core" = xyes; then
  5628.   CXXFLAGS="$CXXFLAGS -DC_CORE"
  5629. fi
  5630.  
  5631. if test "x$enable_profiling" = xyes; then
  5632.   CXXFLAGS="$CXXFLAGS -DPROFILING"
  5633.   VBA_SRC_EXTRA="$VBA_SRC_EXTRA prof"
  5634.   VBA_LIBS="$VBA_LIBS ../prof/libprof.a"
  5635. fi
  5636.  
  5637. if test "x$with_mmx" = xyes; then
  5638.   if test "x$NASM" = x; then
  5639.     { { echo "$as_me:$LINENO: error: *** Couldn't find nasm program." >&5
  5640. echo "$as_me: error: *** Couldn't find nasm program." >&2;}
  5641.    { (exit 1); exit 1; }; }
  5642.   fi
  5643.   CXXFLAGS="$CXXFLAGS -DMMX"
  5644.   VBA_SRC_EXTRA="$VBA_SRC_EXTRA i386"
  5645.   VBA_LIBS="$VBA_LIBS ../i386/lib386.a"
  5646. fi
  5647.  
  5648. if test "x$enable_sdl" = xyes || test "x$enable_gtk" = xyes; then
  5649.   SDL_VERSION=1.2.2
  5650.  
  5651. # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
  5652. if test "${with_sdl_prefix+set}" = set; then
  5653.   withval="$with_sdl_prefix"
  5654.   sdl_prefix="$withval"
  5655. else
  5656.   sdl_prefix=""
  5657. fi;
  5658.  
  5659. # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
  5660. if test "${with_sdl_exec_prefix+set}" = set; then
  5661.   withval="$with_sdl_exec_prefix"
  5662.   sdl_exec_prefix="$withval"
  5663. else
  5664.   sdl_exec_prefix=""
  5665. fi;
  5666. # Check whether --enable-sdltest or --disable-sdltest was given.
  5667. if test "${enable_sdltest+set}" = set; then
  5668.   enableval="$enable_sdltest"
  5669.  
  5670. else
  5671.   enable_sdltest=yes
  5672. fi;
  5673.  
  5674.   if test x$sdl_exec_prefix != x ; then
  5675.      sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
  5676.      if test x${SDL_CONFIG+set} != xset ; then
  5677.         SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
  5678.      fi
  5679.   fi
  5680.   if test x$sdl_prefix != x ; then
  5681.      sdl_args="$sdl_args --prefix=$sdl_prefix"
  5682.      if test x${SDL_CONFIG+set} != xset ; then
  5683.         SDL_CONFIG=$sdl_prefix/bin/sdl-config
  5684.      fi
  5685.   fi
  5686.  
  5687.  
  5688.   # Extract the first word of "sdl-config", so it can be a program name with args.
  5689. set dummy sdl-config; ac_word=$2
  5690. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5691. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5692. if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
  5693.   echo $ECHO_N "(cached) $ECHO_C" >&6
  5694. else
  5695.   case $SDL_CONFIG in
  5696.   [\\/]* | ?:[\\/]*)
  5697.   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
  5698.   ;;
  5699.   *)
  5700.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5701. for as_dir in $PATH
  5702. do
  5703.   IFS=$as_save_IFS
  5704.   test -z "$as_dir" && as_dir=.
  5705.   for ac_exec_ext in '' $ac_executable_extensions; do
  5706.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5707.     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5708.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5709.     break 2
  5710.   fi
  5711. done
  5712. done
  5713.  
  5714.   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
  5715.   ;;
  5716. esac
  5717. fi
  5718. SDL_CONFIG=$ac_cv_path_SDL_CONFIG
  5719.  
  5720. if test -n "$SDL_CONFIG"; then
  5721.   echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
  5722. echo "${ECHO_T}$SDL_CONFIG" >&6
  5723. else
  5724.   echo "$as_me:$LINENO: result: no" >&5
  5725. echo "${ECHO_T}no" >&6
  5726. fi
  5727.  
  5728.   min_sdl_version=$SDL_VERSION
  5729.   echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
  5730. echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
  5731.   no_sdl=""
  5732.   if test "$SDL_CONFIG" = "no" ; then
  5733.     no_sdl=yes
  5734.   else
  5735.     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
  5736.     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
  5737.  
  5738.     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
  5739.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  5740.     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
  5741.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  5742.     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
  5743.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  5744.     if test "x$enable_sdltest" = "xyes" ; then
  5745.       ac_save_CFLAGS="$CFLAGS"
  5746.       ac_save_LIBS="$LIBS"
  5747.       CFLAGS="$CFLAGS $SDL_CFLAGS"
  5748.       LIBS="$LIBS $SDL_LIBS"
  5749.       rm -f conf.sdltest
  5750.       if test "$cross_compiling" = yes; then
  5751.   echo $ac_n "cross compiling; assumed OK... $ac_c"
  5752. else
  5753.   cat >conftest.$ac_ext <<_ACEOF
  5754. /* confdefs.h.  */
  5755. _ACEOF
  5756. cat confdefs.h >>conftest.$ac_ext
  5757. cat >>conftest.$ac_ext <<_ACEOF
  5758. /* end confdefs.h.  */
  5759.  
  5760. #include <stdio.h>
  5761. #include <stdlib.h>
  5762. #include <string.h>
  5763. #include "SDL.h"
  5764.  
  5765. char*
  5766. my_strdup (char *str)
  5767. {
  5768.   char *new_str;
  5769.  
  5770.   if (str)
  5771.     {
  5772.       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
  5773.       strcpy (new_str, str);
  5774.     }
  5775.   else
  5776.     new_str = NULL;
  5777.  
  5778.   return new_str;
  5779. }
  5780.  
  5781. int main (int argc, char *argv[])
  5782. {
  5783.   int major, minor, micro;
  5784.   char *tmp_version;
  5785.  
  5786.   /* This hangs on some systems (?)
  5787.   system ("touch conf.sdltest");
  5788.   */
  5789.   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
  5790.  
  5791.   /* HP/UX 9 (%@#!) writes to sscanf strings */
  5792.   tmp_version = my_strdup("$min_sdl_version");
  5793.   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
  5794.      printf("%s, bad version string\n", "$min_sdl_version");
  5795.      exit(1);
  5796.    }
  5797.  
  5798.    if (($sdl_major_version > major) ||
  5799.       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
  5800.       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
  5801.     {
  5802.       return 0;
  5803.     }
  5804.   else
  5805.     {
  5806.       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
  5807.       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
  5808.       printf("*** best to upgrade to the required version.\n");
  5809.       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
  5810.       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
  5811.       printf("*** config.cache before re-running configure\n");
  5812.       return 1;
  5813.     }
  5814. }
  5815.  
  5816.  
  5817. _ACEOF
  5818. rm -f conftest$ac_exeext
  5819. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5820.   (eval $ac_link) 2>&5
  5821.   ac_status=$?
  5822.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5823.   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5824.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5825.   (eval $ac_try) 2>&5
  5826.   ac_status=$?
  5827.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5828.   (exit $ac_status); }; }; then
  5829.   :
  5830. else
  5831.   echo "$as_me: program exited with status $ac_status" >&5
  5832. echo "$as_me: failed program was:" >&5
  5833. sed 's/^/| /' conftest.$ac_ext >&5
  5834.  
  5835. ( exit $ac_status )
  5836. no_sdl=yes
  5837. fi
  5838. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5839. fi
  5840.        CFLAGS="$ac_save_CFLAGS"
  5841.        LIBS="$ac_save_LIBS"
  5842.      fi
  5843.   fi
  5844.   if test "x$no_sdl" = x ; then
  5845.      echo "$as_me:$LINENO: result: yes" >&5
  5846. echo "${ECHO_T}yes" >&6
  5847.  
  5848.  
  5849.   else
  5850.      echo "$as_me:$LINENO: result: no" >&5
  5851. echo "${ECHO_T}no" >&6
  5852.      if test "$SDL_CONFIG" = "no" ; then
  5853.        echo "*** The sdl-config script installed by SDL could not be found"
  5854.        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
  5855.        echo "*** your path, or set the SDL_CONFIG environment variable to the"
  5856.        echo "*** full path to sdl-config."
  5857.      else
  5858.        if test -f conf.sdltest ; then
  5859.         :
  5860.        else
  5861.           echo "*** Could not run SDL test program, checking why..."
  5862.           CFLAGS="$CFLAGS $SDL_CFLAGS"
  5863.           LIBS="$LIBS $SDL_LIBS"
  5864.           cat >conftest.$ac_ext <<_ACEOF
  5865. /* confdefs.h.  */
  5866. _ACEOF
  5867. cat confdefs.h >>conftest.$ac_ext
  5868. cat >>conftest.$ac_ext <<_ACEOF
  5869. /* end confdefs.h.  */
  5870.  
  5871. #include <stdio.h>
  5872. #include "SDL.h"
  5873.  
  5874. int main(int argc, char *argv[])
  5875. { return 0; }
  5876. #undef  main
  5877. #define main K_and_R_C_main
  5878.  
  5879. int
  5880. main ()
  5881. {
  5882.  return 0;
  5883.   ;
  5884.   return 0;
  5885. }
  5886. _ACEOF
  5887. rm -f conftest.$ac_objext conftest$ac_exeext
  5888. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5889.   (eval $ac_link) 2>conftest.er1
  5890.   ac_status=$?
  5891.   grep -v '^ *+' conftest.er1 >conftest.err
  5892.   rm -f conftest.er1
  5893.   cat conftest.err >&5
  5894.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5895.   (exit $ac_status); } &&
  5896.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  5897.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5898.   (eval $ac_try) 2>&5
  5899.   ac_status=$?
  5900.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5901.   (exit $ac_status); }; } &&
  5902.      { ac_try='test -s conftest$ac_exeext'
  5903.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5904.   (eval $ac_try) 2>&5
  5905.   ac_status=$?
  5906.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5907.   (exit $ac_status); }; }; then
  5908.    echo "*** The test program compiled, but did not run. This usually means"
  5909.           echo "*** that the run-time linker is not finding SDL or finding the wrong"
  5910.           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
  5911.           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5912.           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
  5913.           echo "*** is required on your system"
  5914.       echo "***"
  5915.           echo "*** If you have an old version installed, it is best to remove it, although"
  5916.           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5917. else
  5918.   echo "$as_me: failed program was:" >&5
  5919. sed 's/^/| /' conftest.$ac_ext >&5
  5920.  
  5921.  echo "*** The test program failed to compile or link. See the file config.log for the"
  5922.           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
  5923.           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
  5924.           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
  5925. fi
  5926. rm -f conftest.err conftest.$ac_objext \
  5927.       conftest$ac_exeext conftest.$ac_ext
  5928.           CFLAGS="$ac_save_CFLAGS"
  5929.           LIBS="$ac_save_LIBS"
  5930.        fi
  5931.      fi
  5932.      SDL_CFLAGS=""
  5933.      SDL_LIBS=""
  5934.  
  5935.   { { echo "$as_me:$LINENO: error: *** Couldn't find SDL library (version >= $SDL_VERSION)." >&5
  5936. echo "$as_me: error: *** Couldn't find SDL library (version >= $SDL_VERSION)." >&2;}
  5937.    { (exit 1); exit 1; }; }
  5938.  
  5939.   fi
  5940.  
  5941.  
  5942.   rm -f conf.sdltest
  5943.  
  5944. fi
  5945.  
  5946. if test "x$enable_sdl" = xyes; then
  5947.   VBA_SRC_EXTRA="$VBA_SRC_EXTRA sdl"
  5948. fi
  5949.  
  5950. if test "x$enable_gtk" = xyes; then
  5951.     ALL_LINGUAS="fr"
  5952.  
  5953.         MKINSTALLDIRS=
  5954.   if test -n "$ac_aux_dir"; then
  5955.     case "$ac_aux_dir" in
  5956.       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  5957.       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  5958.     esac
  5959.   fi
  5960.   if test -z "$MKINSTALLDIRS"; then
  5961.     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  5962.   fi
  5963.  
  5964.  
  5965.  
  5966.   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  5967. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
  5968.     # Check whether --enable-nls or --disable-nls was given.
  5969. if test "${enable_nls+set}" = set; then
  5970.   enableval="$enable_nls"
  5971.   USE_NLS=$enableval
  5972. else
  5973.   USE_NLS=yes
  5974. fi;
  5975.   echo "$as_me:$LINENO: result: $USE_NLS" >&5
  5976. echo "${ECHO_T}$USE_NLS" >&6
  5977.  
  5978.  
  5979.  
  5980.  
  5981.  
  5982.  
  5983. # Prepare PATH_SEPARATOR.
  5984. # The user is always right.
  5985. if test "${PATH_SEPARATOR+set}" != set; then
  5986.   echo "#! /bin/sh" >conf$$.sh
  5987.   echo  "exit 0"   >>conf$$.sh
  5988.   chmod +x conf$$.sh
  5989.   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5990.     PATH_SEPARATOR=';'
  5991.   else
  5992.     PATH_SEPARATOR=:
  5993.   fi
  5994.   rm -f conf$$.sh
  5995. fi
  5996.  
  5997. # Find out how to test for executable files. Don't use a zero-byte file,
  5998. # as systems may use methods other than mode bits to determine executability.
  5999. cat >conf$$.file <<_ASEOF
  6000. #! /bin/sh
  6001. exit 0
  6002. _ASEOF
  6003. chmod +x conf$$.file
  6004. if test -x conf$$.file >/dev/null 2>&1; then
  6005.   ac_executable_p="test -x"
  6006. else
  6007.   ac_executable_p="test -f"
  6008. fi
  6009. rm -f conf$$.file
  6010.  
  6011. # Extract the first word of "msgfmt", so it can be a program name with args.
  6012. set dummy msgfmt; ac_word=$2
  6013. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6014. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6015. if test "${ac_cv_path_MSGFMT+set}" = set; then
  6016.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6017. else
  6018.   case "$MSGFMT" in
  6019.   [\\/]* | ?:[\\/]*)
  6020.     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  6021.     ;;
  6022.   *)
  6023.     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  6024.     for ac_dir in $PATH; do
  6025.       IFS="$ac_save_IFS"
  6026.       test -z "$ac_dir" && ac_dir=.
  6027.       for ac_exec_ext in '' $ac_executable_extensions; do
  6028.         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  6029.           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  6030.      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  6031.             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  6032.             break 2
  6033.           fi
  6034.         fi
  6035.       done
  6036.     done
  6037.     IFS="$ac_save_IFS"
  6038.   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  6039.     ;;
  6040. esac
  6041. fi
  6042. MSGFMT="$ac_cv_path_MSGFMT"
  6043. if test "$MSGFMT" != ":"; then
  6044.   echo "$as_me:$LINENO: result: $MSGFMT" >&5
  6045. echo "${ECHO_T}$MSGFMT" >&6
  6046. else
  6047.   echo "$as_me:$LINENO: result: no" >&5
  6048. echo "${ECHO_T}no" >&6
  6049. fi
  6050.  
  6051.   # Extract the first word of "gmsgfmt", so it can be a program name with args.
  6052. set dummy gmsgfmt; ac_word=$2
  6053. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6054. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6055. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  6056.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6057. else
  6058.   case $GMSGFMT in
  6059.   [\\/]* | ?:[\\/]*)
  6060.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  6061.   ;;
  6062.   *)
  6063.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6064. for as_dir in $PATH
  6065. do
  6066.   IFS=$as_save_IFS
  6067.   test -z "$as_dir" && as_dir=.
  6068.   for ac_exec_ext in '' $ac_executable_extensions; do
  6069.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6070.     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  6071.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6072.     break 2
  6073.   fi
  6074. done
  6075. done
  6076.  
  6077.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  6078.   ;;
  6079. esac
  6080. fi
  6081. GMSGFMT=$ac_cv_path_GMSGFMT
  6082.  
  6083. if test -n "$GMSGFMT"; then
  6084.   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  6085. echo "${ECHO_T}$GMSGFMT" >&6
  6086. else
  6087.   echo "$as_me:$LINENO: result: no" >&5
  6088. echo "${ECHO_T}no" >&6
  6089. fi
  6090.  
  6091.  
  6092.  
  6093. # Prepare PATH_SEPARATOR.
  6094. # The user is always right.
  6095. if test "${PATH_SEPARATOR+set}" != set; then
  6096.   echo "#! /bin/sh" >conf$$.sh
  6097.   echo  "exit 0"   >>conf$$.sh
  6098.   chmod +x conf$$.sh
  6099.   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6100.     PATH_SEPARATOR=';'
  6101.   else
  6102.     PATH_SEPARATOR=:
  6103.   fi
  6104.   rm -f conf$$.sh
  6105. fi
  6106.  
  6107. # Find out how to test for executable files. Don't use a zero-byte file,
  6108. # as systems may use methods other than mode bits to determine executability.
  6109. cat >conf$$.file <<_ASEOF
  6110. #! /bin/sh
  6111. exit 0
  6112. _ASEOF
  6113. chmod +x conf$$.file
  6114. if test -x conf$$.file >/dev/null 2>&1; then
  6115.   ac_executable_p="test -x"
  6116. else
  6117.   ac_executable_p="test -f"
  6118. fi
  6119. rm -f conf$$.file
  6120.  
  6121. # Extract the first word of "xgettext", so it can be a program name with args.
  6122. set dummy xgettext; ac_word=$2
  6123. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6124. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6125. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  6126.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6127. else
  6128.   case "$XGETTEXT" in
  6129.   [\\/]* | ?:[\\/]*)
  6130.     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  6131.     ;;
  6132.   *)
  6133.     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  6134.     for ac_dir in $PATH; do
  6135.       IFS="$ac_save_IFS"
  6136.       test -z "$ac_dir" && ac_dir=.
  6137.       for ac_exec_ext in '' $ac_executable_extensions; do
  6138.         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  6139.           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  6140.      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  6141.             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  6142.             break 2
  6143.           fi
  6144.         fi
  6145.       done
  6146.     done
  6147.     IFS="$ac_save_IFS"
  6148.   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  6149.     ;;
  6150. esac
  6151. fi
  6152. XGETTEXT="$ac_cv_path_XGETTEXT"
  6153. if test "$XGETTEXT" != ":"; then
  6154.   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  6155. echo "${ECHO_T}$XGETTEXT" >&6
  6156. else
  6157.   echo "$as_me:$LINENO: result: no" >&5
  6158. echo "${ECHO_T}no" >&6
  6159. fi
  6160.  
  6161.     rm -f messages.po
  6162.  
  6163.  
  6164. # Prepare PATH_SEPARATOR.
  6165. # The user is always right.
  6166. if test "${PATH_SEPARATOR+set}" != set; then
  6167.   echo "#! /bin/sh" >conf$$.sh
  6168.   echo  "exit 0"   >>conf$$.sh
  6169.   chmod +x conf$$.sh
  6170.   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6171.     PATH_SEPARATOR=';'
  6172.   else
  6173.     PATH_SEPARATOR=:
  6174.   fi
  6175.   rm -f conf$$.sh
  6176. fi
  6177.  
  6178. # Find out how to test for executable files. Don't use a zero-byte file,
  6179. # as systems may use methods other than mode bits to determine executability.
  6180. cat >conf$$.file <<_ASEOF
  6181. #! /bin/sh
  6182. exit 0
  6183. _ASEOF
  6184. chmod +x conf$$.file
  6185. if test -x conf$$.file >/dev/null 2>&1; then
  6186.   ac_executable_p="test -x"
  6187. else
  6188.   ac_executable_p="test -f"
  6189. fi
  6190. rm -f conf$$.file
  6191.  
  6192. # Extract the first word of "msgmerge", so it can be a program name with args.
  6193. set dummy msgmerge; ac_word=$2
  6194. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6195. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6196. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  6197.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6198. else
  6199.   case "$MSGMERGE" in
  6200.   [\\/]* | ?:[\\/]*)
  6201.     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  6202.     ;;
  6203.   *)
  6204.     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  6205.     for ac_dir in $PATH; do
  6206.       IFS="$ac_save_IFS"
  6207.       test -z "$ac_dir" && ac_dir=.
  6208.       for ac_exec_ext in '' $ac_executable_extensions; do
  6209.         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  6210.           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  6211.             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  6212.             break 2
  6213.           fi
  6214.         fi
  6215.       done
  6216.     done
  6217.     IFS="$ac_save_IFS"
  6218.   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  6219.     ;;
  6220. esac
  6221. fi
  6222. MSGMERGE="$ac_cv_path_MSGMERGE"
  6223. if test "$MSGMERGE" != ":"; then
  6224.   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  6225. echo "${ECHO_T}$MSGMERGE" >&6
  6226. else
  6227.   echo "$as_me:$LINENO: result: no" >&5
  6228. echo "${ECHO_T}no" >&6
  6229. fi
  6230.  
  6231.  
  6232.       if test "$GMSGFMT" != ":"; then
  6233.             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  6234.        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  6235.       : ;
  6236.     else
  6237.       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  6238.       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  6239. echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
  6240.       GMSGFMT=":"
  6241.     fi
  6242.   fi
  6243.  
  6244.       if test "$XGETTEXT" != ":"; then
  6245.             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  6246.        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  6247.       : ;
  6248.     else
  6249.       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
  6250. echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
  6251.       XGETTEXT=":"
  6252.     fi
  6253.         rm -f messages.po
  6254.   fi
  6255.  
  6256.             ac_config_commands="$ac_config_commands default-1"
  6257.  
  6258.  
  6259.  
  6260.       if test "X$prefix" = "XNONE"; then
  6261.     acl_final_prefix="$ac_default_prefix"
  6262.   else
  6263.     acl_final_prefix="$prefix"
  6264.   fi
  6265.   if test "X$exec_prefix" = "XNONE"; then
  6266.     acl_final_exec_prefix='${prefix}'
  6267.   else
  6268.     acl_final_exec_prefix="$exec_prefix"
  6269.   fi
  6270.   acl_save_prefix="$prefix"
  6271.   prefix="$acl_final_prefix"
  6272.   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  6273.   prefix="$acl_save_prefix"
  6274.  
  6275.  
  6276. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  6277. if test "${with_gnu_ld+set}" = set; then
  6278.   withval="$with_gnu_ld"
  6279.   test "$withval" = no || with_gnu_ld=yes
  6280. else
  6281.   with_gnu_ld=no
  6282. fi;
  6283. # Prepare PATH_SEPARATOR.
  6284. # The user is always right.
  6285. if test "${PATH_SEPARATOR+set}" != set; then
  6286.   echo "#! /bin/sh" >conf$$.sh
  6287.   echo  "exit 0"   >>conf$$.sh
  6288.   chmod +x conf$$.sh
  6289.   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6290.     PATH_SEPARATOR=';'
  6291.   else
  6292.     PATH_SEPARATOR=:
  6293.   fi
  6294.   rm -f conf$$.sh
  6295. fi
  6296. ac_prog=ld
  6297. if test "$GCC" = yes; then
  6298.   # Check if gcc -print-prog-name=ld gives a path.
  6299.   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  6300. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
  6301.   case $host in
  6302.   *-*-mingw*)
  6303.     # gcc leaves a trailing carriage return which upsets mingw
  6304.     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  6305.   *)
  6306.     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  6307.   esac
  6308.   case $ac_prog in
  6309.     # Accept absolute paths.
  6310.     [\\/]* | [A-Za-z]:[\\/]*)
  6311.       re_direlt='/[^/][^/]*/\.\./'
  6312.       # Canonicalize the path of ld
  6313.       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  6314.       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  6315.     ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  6316.       done
  6317.       test -z "$LD" && LD="$ac_prog"
  6318.       ;;
  6319.   "")
  6320.     # If it fails, then pretend we aren't using GCC.
  6321.     ac_prog=ld
  6322.     ;;
  6323.   *)
  6324.     # If it is relative, then search for the first ld in PATH.
  6325.     with_gnu_ld=unknown
  6326.     ;;
  6327.   esac
  6328. elif test "$with_gnu_ld" = yes; then
  6329.   echo "$as_me:$LINENO: checking for GNU ld" >&5
  6330. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  6331. else
  6332.   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  6333. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  6334. fi
  6335. if test "${acl_cv_path_LD+set}" = set; then
  6336.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6337. else
  6338.   if test -z "$LD"; then
  6339.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  6340.   for ac_dir in $PATH; do
  6341.     test -z "$ac_dir" && ac_dir=.
  6342.     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  6343.       acl_cv_path_LD="$ac_dir/$ac_prog"
  6344.       # Check to see if the program is GNU ld.  I'd rather use --version,
  6345.       # but apparently some GNU ld's only accept -v.
  6346.       # Break only if it was the GNU/non-GNU ld that we prefer.
  6347.       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  6348.       *GNU* | *'with BFD'*)
  6349.     test "$with_gnu_ld" != no && break ;;
  6350.       *)
  6351.     test "$with_gnu_ld" != yes && break ;;
  6352.       esac
  6353.     fi
  6354.   done
  6355.   IFS="$ac_save_ifs"
  6356. else
  6357.   acl_cv_path_LD="$LD" # Let the user override the test with a path.
  6358. fi
  6359. fi
  6360.  
  6361. LD="$acl_cv_path_LD"
  6362. if test -n "$LD"; then
  6363.   echo "$as_me:$LINENO: result: $LD" >&5
  6364. echo "${ECHO_T}$LD" >&6
  6365. else
  6366.   echo "$as_me:$LINENO: result: no" >&5
  6367. echo "${ECHO_T}no" >&6
  6368. fi
  6369. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  6370. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  6371.    { (exit 1); exit 1; }; }
  6372. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  6373. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  6374. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  6375.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6376. else
  6377.   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  6378. case `$LD -v 2>&1 </dev/null` in
  6379. *GNU* | *'with BFD'*)
  6380.   acl_cv_prog_gnu_ld=yes ;;
  6381. *)
  6382.   acl_cv_prog_gnu_ld=no ;;
  6383. esac
  6384. fi
  6385. echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  6386. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
  6387. with_gnu_ld=$acl_cv_prog_gnu_ld
  6388.  
  6389.  
  6390.  
  6391.                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  6392. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
  6393. if test "${acl_cv_rpath+set}" = set; then
  6394.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6395. else
  6396.  
  6397.     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  6398.     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  6399.     . ./conftest.sh
  6400.     rm -f ./conftest.sh
  6401.     acl_cv_rpath=done
  6402.  
  6403. fi
  6404. echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  6405. echo "${ECHO_T}$acl_cv_rpath" >&6
  6406.   wl="$acl_cv_wl"
  6407.   libext="$acl_cv_libext"
  6408.   shlibext="$acl_cv_shlibext"
  6409.   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  6410.   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  6411.   hardcode_direct="$acl_cv_hardcode_direct"
  6412.   hardcode_minus_L="$acl_cv_hardcode_minus_L"
  6413.     # Check whether --enable-rpath or --disable-rpath was given.
  6414. if test "${enable_rpath+set}" = set; then
  6415.   enableval="$enable_rpath"
  6416.   :
  6417. else
  6418.   enable_rpath=yes
  6419. fi;
  6420.  
  6421.  
  6422.  
  6423.  
  6424.  
  6425.  
  6426.  
  6427.     use_additional=yes
  6428.  
  6429.   acl_save_prefix="$prefix"
  6430.   prefix="$acl_final_prefix"
  6431.   acl_save_exec_prefix="$exec_prefix"
  6432.   exec_prefix="$acl_final_exec_prefix"
  6433.  
  6434.     eval additional_includedir=\"$includedir\"
  6435.     eval additional_libdir=\"$libdir\"
  6436.  
  6437.   exec_prefix="$acl_save_exec_prefix"
  6438.   prefix="$acl_save_prefix"
  6439.  
  6440.  
  6441. # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
  6442. if test "${with_libiconv_prefix+set}" = set; then
  6443.   withval="$with_libiconv_prefix"
  6444.  
  6445.     if test "X$withval" = "Xno"; then
  6446.       use_additional=no
  6447.     else
  6448.       if test "X$withval" = "X"; then
  6449.  
  6450.   acl_save_prefix="$prefix"
  6451.   prefix="$acl_final_prefix"
  6452.   acl_save_exec_prefix="$exec_prefix"
  6453.   exec_prefix="$acl_final_exec_prefix"
  6454.  
  6455.           eval additional_includedir=\"$includedir\"
  6456.           eval additional_libdir=\"$libdir\"
  6457.  
  6458.   exec_prefix="$acl_save_exec_prefix"
  6459.   prefix="$acl_save_prefix"
  6460.  
  6461.       else
  6462.         additional_includedir="$withval/include"
  6463.         additional_libdir="$withval/lib"
  6464.       fi
  6465.     fi
  6466.  
  6467. fi;
  6468.       LIBICONV=
  6469.   LTLIBICONV=
  6470.   INCICONV=
  6471.   rpathdirs=
  6472.   ltrpathdirs=
  6473.   names_already_handled=
  6474.   names_next_round='iconv '
  6475.   while test -n "$names_next_round"; do
  6476.     names_this_round="$names_next_round"
  6477.     names_next_round=
  6478.     for name in $names_this_round; do
  6479.       already_handled=
  6480.       for n in $names_already_handled; do
  6481.         if test "$n" = "$name"; then
  6482.           already_handled=yes
  6483.           break
  6484.         fi
  6485.       done
  6486.       if test -z "$already_handled"; then
  6487.         names_already_handled="$names_already_handled $name"
  6488.                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  6489.         eval value=\"\$HAVE_LIB$uppername\"
  6490.         if test -n "$value"; then
  6491.           if test "$value" = yes; then
  6492.             eval value=\"\$LIB$uppername\"
  6493.             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  6494.             eval value=\"\$LTLIB$uppername\"
  6495.             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  6496.           else
  6497.                                     :
  6498.           fi
  6499.         else
  6500.                               found_dir=
  6501.           found_la=
  6502.           found_so=
  6503.           found_a=
  6504.           if test $use_additional = yes; then
  6505.             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  6506.               found_dir="$additional_libdir"
  6507.               found_so="$additional_libdir/lib$name.$shlibext"
  6508.               if test -f "$additional_libdir/lib$name.la"; then
  6509.                 found_la="$additional_libdir/lib$name.la"
  6510.               fi
  6511.             else
  6512.               if test -f "$additional_libdir/lib$name.$libext"; then
  6513.                 found_dir="$additional_libdir"
  6514.                 found_a="$additional_libdir/lib$name.$libext"
  6515.                 if test -f "$additional_libdir/lib$name.la"; then
  6516.                   found_la="$additional_libdir/lib$name.la"
  6517.                 fi
  6518.               fi
  6519.             fi
  6520.           fi
  6521.           if test "X$found_dir" = "X"; then
  6522.             for x in $LDFLAGS $LTLIBICONV; do
  6523.  
  6524.   acl_save_prefix="$prefix"
  6525.   prefix="$acl_final_prefix"
  6526.   acl_save_exec_prefix="$exec_prefix"
  6527.   exec_prefix="$acl_final_exec_prefix"
  6528.   eval x=\"$x\"
  6529.   exec_prefix="$acl_save_exec_prefix"
  6530.   prefix="$acl_save_prefix"
  6531.  
  6532.               case "$x" in
  6533.                 -L*)
  6534.                   dir=`echo "X$x" | sed -e 's/^X-L//'`
  6535.                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  6536.                     found_dir="$dir"
  6537.                     found_so="$dir/lib$name.$shlibext"
  6538.                     if test -f "$dir/lib$name.la"; then
  6539.                       found_la="$dir/lib$name.la"
  6540.                     fi
  6541.                   else
  6542.                     if test -f "$dir/lib$name.$libext"; then
  6543.                       found_dir="$dir"
  6544.                       found_a="$dir/lib$name.$libext"
  6545.                       if test -f "$dir/lib$name.la"; then
  6546.                         found_la="$dir/lib$name.la"
  6547.                       fi
  6548.                     fi
  6549.                   fi
  6550.                   ;;
  6551.               esac
  6552.               if test "X$found_dir" != "X"; then
  6553.                 break
  6554.               fi
  6555.             done
  6556.           fi
  6557.           if test "X$found_dir" != "X"; then
  6558.                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  6559.             if test "X$found_so" != "X"; then
  6560.                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  6561.                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  6562.               else
  6563.                                                                                 haveit=
  6564.                 for x in $ltrpathdirs; do
  6565.                   if test "X$x" = "X$found_dir"; then
  6566.                     haveit=yes
  6567.                     break
  6568.                   fi
  6569.                 done
  6570.                 if test -z "$haveit"; then
  6571.                   ltrpathdirs="$ltrpathdirs $found_dir"
  6572.                 fi
  6573.                                 if test "$hardcode_direct" = yes; then
  6574.                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  6575.                 else
  6576.                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  6577.                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  6578.                                                             haveit=
  6579.                     for x in $rpathdirs; do
  6580.                       if test "X$x" = "X$found_dir"; then
  6581.                         haveit=yes
  6582.                         break
  6583.                       fi
  6584.                     done
  6585.                     if test -z "$haveit"; then
  6586.                       rpathdirs="$rpathdirs $found_dir"
  6587.                     fi
  6588.                   else
  6589.                                                                                 haveit=
  6590.                     for x in $LDFLAGS $LIBICONV; do
  6591.  
  6592.   acl_save_prefix="$prefix"
  6593.   prefix="$acl_final_prefix"
  6594.   acl_save_exec_prefix="$exec_prefix"
  6595.   exec_prefix="$acl_final_exec_prefix"
  6596.   eval x=\"$x\"
  6597.   exec_prefix="$acl_save_exec_prefix"
  6598.   prefix="$acl_save_prefix"
  6599.  
  6600.                       if test "X$x" = "X-L$found_dir"; then
  6601.                         haveit=yes
  6602.                         break
  6603.                       fi
  6604.                     done
  6605.                     if test -z "$haveit"; then
  6606.                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  6607.                     fi
  6608.                     if test "$hardcode_minus_L" != no; then
  6609.                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  6610.                     else
  6611.                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  6612.                     fi
  6613.                   fi
  6614.                 fi
  6615.               fi
  6616.             else
  6617.               if test "X$found_a" != "X"; then
  6618.                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  6619.               else
  6620.                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  6621.               fi
  6622.             fi
  6623.                         additional_includedir=
  6624.             case "$found_dir" in
  6625.               */lib | */lib/)
  6626.                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  6627.                 additional_includedir="$basedir/include"
  6628.                 ;;
  6629.             esac
  6630.             if test "X$additional_includedir" != "X"; then
  6631.                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
  6632.                 haveit=
  6633.                 if test "X$additional_includedir" = "X/usr/local/include"; then
  6634.                   if test -n "$GCC"; then
  6635.                     case $host_os in
  6636.                       linux*) haveit=yes;;
  6637.                     esac
  6638.                   fi
  6639.                 fi
  6640.                 if test -z "$haveit"; then
  6641.                   for x in $CPPFLAGS $INCICONV; do
  6642.  
  6643.   acl_save_prefix="$prefix"
  6644.   prefix="$acl_final_prefix"
  6645.   acl_save_exec_prefix="$exec_prefix"
  6646.   exec_prefix="$acl_final_exec_prefix"
  6647.   eval x=\"$x\"
  6648.   exec_prefix="$acl_save_exec_prefix"
  6649.   prefix="$acl_save_prefix"
  6650.  
  6651.                     if test "X$x" = "X-I$additional_includedir"; then
  6652.                       haveit=yes
  6653.                       break
  6654.                     fi
  6655.                   done
  6656.                   if test -z "$haveit"; then
  6657.                     if test -d "$additional_includedir"; then
  6658.                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  6659.                     fi
  6660.                   fi
  6661.                 fi
  6662.               fi
  6663.             fi
  6664.                         if test -n "$found_la"; then
  6665.                                                         save_libdir="$libdir"
  6666.               case "$found_la" in
  6667.                 */* | *\\*) . "$found_la" ;;
  6668.                 *) . "./$found_la" ;;
  6669.               esac
  6670.               libdir="$save_libdir"
  6671.                             for dep in $dependency_libs; do
  6672.                 case "$dep" in
  6673.                   -L*)
  6674.                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  6675.                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
  6676.                       haveit=
  6677.                       if test "X$additional_libdir" = "X/usr/local/lib"; then
  6678.                         if test -n "$GCC"; then
  6679.                           case $host_os in
  6680.                             linux*) haveit=yes;;
  6681.                           esac
  6682.                         fi
  6683.                       fi
  6684.                       if test -z "$haveit"; then
  6685.                         haveit=
  6686.                         for x in $LDFLAGS $LIBICONV; do
  6687.  
  6688.   acl_save_prefix="$prefix"
  6689.   prefix="$acl_final_prefix"
  6690.   acl_save_exec_prefix="$exec_prefix"
  6691.   exec_prefix="$acl_final_exec_prefix"
  6692.   eval x=\"$x\"
  6693.   exec_prefix="$acl_save_exec_prefix"
  6694.   prefix="$acl_save_prefix"
  6695.  
  6696.                           if test "X$x" = "X-L$additional_libdir"; then
  6697.                             haveit=yes
  6698.                             break
  6699.                           fi
  6700.                         done
  6701.                         if test -z "$haveit"; then
  6702.                           if test -d "$additional_libdir"; then
  6703.                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  6704.                           fi
  6705.                         fi
  6706.                         haveit=
  6707.                         for x in $LDFLAGS $LTLIBICONV; do
  6708.  
  6709.   acl_save_prefix="$prefix"
  6710.   prefix="$acl_final_prefix"
  6711.   acl_save_exec_prefix="$exec_prefix"
  6712.   exec_prefix="$acl_final_exec_prefix"
  6713.   eval x=\"$x\"
  6714.   exec_prefix="$acl_save_exec_prefix"
  6715.   prefix="$acl_save_prefix"
  6716.  
  6717.                           if test "X$x" = "X-L$additional_libdir"; then
  6718.                             haveit=yes
  6719.                             break
  6720.                           fi
  6721.                         done
  6722.                         if test -z "$haveit"; then
  6723.                           if test -d "$additional_libdir"; then
  6724.                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  6725.                           fi
  6726.                         fi
  6727.                       fi
  6728.                     fi
  6729.                     ;;
  6730.                   -R*)
  6731.                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
  6732.                     if test "$enable_rpath" != no; then
  6733.                                                                   haveit=
  6734.                       for x in $rpathdirs; do
  6735.                         if test "X$x" = "X$dir"; then
  6736.                           haveit=yes
  6737.                           break
  6738.                         fi
  6739.                       done
  6740.                       if test -z "$haveit"; then
  6741.                         rpathdirs="$rpathdirs $dir"
  6742.                       fi
  6743.                                                                   haveit=
  6744.                       for x in $ltrpathdirs; do
  6745.                         if test "X$x" = "X$dir"; then
  6746.                           haveit=yes
  6747.                           break
  6748.                         fi
  6749.                       done
  6750.                       if test -z "$haveit"; then
  6751.                         ltrpathdirs="$ltrpathdirs $dir"
  6752.                       fi
  6753.                     fi
  6754.                     ;;
  6755.                   -l*)
  6756.                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  6757.                     ;;
  6758.                   *.la)
  6759.                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  6760.                     ;;
  6761.                   *)
  6762.                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  6763.                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  6764.                     ;;
  6765.                 esac
  6766.               done
  6767.             fi
  6768.           else
  6769.                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  6770.             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  6771.           fi
  6772.         fi
  6773.       fi
  6774.     done
  6775.   done
  6776.   if test "X$rpathdirs" != "X"; then
  6777.     if test -n "$hardcode_libdir_separator"; then
  6778.                         alldirs=
  6779.       for found_dir in $rpathdirs; do
  6780.         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  6781.       done
  6782.             acl_save_libdir="$libdir"
  6783.       libdir="$alldirs"
  6784.       eval flag=\"$hardcode_libdir_flag_spec\"
  6785.       libdir="$acl_save_libdir"
  6786.       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  6787.     else
  6788.             for found_dir in $rpathdirs; do
  6789.         acl_save_libdir="$libdir"
  6790.         libdir="$found_dir"
  6791.         eval flag=\"$hardcode_libdir_flag_spec\"
  6792.         libdir="$acl_save_libdir"
  6793.         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  6794.       done
  6795.     fi
  6796.   fi
  6797.   if test "X$ltrpathdirs" != "X"; then
  6798.             for found_dir in $ltrpathdirs; do
  6799.       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  6800.     done
  6801.   fi
  6802.  
  6803.  
  6804.  
  6805.  
  6806.  
  6807.  
  6808.  
  6809.  
  6810.  
  6811.  
  6812.  
  6813.  
  6814.  
  6815.  
  6816.  
  6817.  
  6818.  
  6819.  
  6820.   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  6821. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
  6822.     # Check whether --enable-nls or --disable-nls was given.
  6823. if test "${enable_nls+set}" = set; then
  6824.   enableval="$enable_nls"
  6825.   USE_NLS=$enableval
  6826. else
  6827.   USE_NLS=yes
  6828. fi;
  6829.   echo "$as_me:$LINENO: result: $USE_NLS" >&5
  6830. echo "${ECHO_T}$USE_NLS" >&6
  6831.  
  6832.  
  6833.  
  6834.  
  6835.   LIBINTL=
  6836.   LTLIBINTL=
  6837.   POSUB=
  6838.  
  6839.     if test "$USE_NLS" = "yes"; then
  6840.     gt_use_preinstalled_gnugettext=no
  6841.  
  6842.  
  6843.  
  6844.  
  6845.  
  6846.  
  6847.         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  6848. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
  6849. if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
  6850.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6851. else
  6852.   cat >conftest.$ac_ext <<_ACEOF
  6853. /* confdefs.h.  */
  6854. _ACEOF
  6855. cat confdefs.h >>conftest.$ac_ext
  6856. cat >>conftest.$ac_ext <<_ACEOF
  6857. /* end confdefs.h.  */
  6858. #include <libintl.h>
  6859. extern int _nl_msg_cat_cntr;
  6860. extern int *_nl_domain_bindings;
  6861. int
  6862. main ()
  6863. {
  6864. bindtextdomain ("", "");
  6865. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
  6866.   ;
  6867.   return 0;
  6868. }
  6869. _ACEOF
  6870. rm -f conftest.$ac_objext conftest$ac_exeext
  6871. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6872.   (eval $ac_link) 2>conftest.er1
  6873.   ac_status=$?
  6874.   grep -v '^ *+' conftest.er1 >conftest.err
  6875.   rm -f conftest.er1
  6876.   cat conftest.err >&5
  6877.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6878.   (exit $ac_status); } &&
  6879.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  6880.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6881.   (eval $ac_try) 2>&5
  6882.   ac_status=$?
  6883.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6884.   (exit $ac_status); }; } &&
  6885.      { ac_try='test -s conftest$ac_exeext'
  6886.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6887.   (eval $ac_try) 2>&5
  6888.   ac_status=$?
  6889.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6890.   (exit $ac_status); }; }; then
  6891.   gt_cv_func_gnugettext1_libc=yes
  6892. else
  6893.   echo "$as_me: failed program was:" >&5
  6894. sed 's/^/| /' conftest.$ac_ext >&5
  6895.  
  6896. gt_cv_func_gnugettext1_libc=no
  6897. fi
  6898. rm -f conftest.err conftest.$ac_objext \
  6899.       conftest$ac_exeext conftest.$ac_ext
  6900. fi
  6901. echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
  6902. echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
  6903.  
  6904.         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
  6905.  
  6906.  
  6907.  
  6908.  
  6909.  
  6910.           am_save_CPPFLAGS="$CPPFLAGS"
  6911.  
  6912.   for element in $INCICONV; do
  6913.     haveit=
  6914.     for x in $CPPFLAGS; do
  6915.  
  6916.   acl_save_prefix="$prefix"
  6917.   prefix="$acl_final_prefix"
  6918.   acl_save_exec_prefix="$exec_prefix"
  6919.   exec_prefix="$acl_final_exec_prefix"
  6920.   eval x=\"$x\"
  6921.   exec_prefix="$acl_save_exec_prefix"
  6922.   prefix="$acl_save_prefix"
  6923.  
  6924.       if test "X$x" = "X$element"; then
  6925.         haveit=yes
  6926.         break
  6927.       fi
  6928.     done
  6929.     if test -z "$haveit"; then
  6930.       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  6931.     fi
  6932.   done
  6933.  
  6934.  
  6935.   echo "$as_me:$LINENO: checking for iconv" >&5
  6936. echo $ECHO_N "checking for iconv... $ECHO_C" >&6
  6937. if test "${am_cv_func_iconv+set}" = set; then
  6938.   echo $ECHO_N "(cached) $ECHO_C" >&6
  6939. else
  6940.  
  6941.     am_cv_func_iconv="no, consider installing GNU libiconv"
  6942.     am_cv_lib_iconv=no
  6943.     cat >conftest.$ac_ext <<_ACEOF
  6944. /* confdefs.h.  */
  6945. _ACEOF
  6946. cat confdefs.h >>conftest.$ac_ext
  6947. cat >>conftest.$ac_ext <<_ACEOF
  6948. /* end confdefs.h.  */
  6949. #include <stdlib.h>
  6950. #include <iconv.h>
  6951. int
  6952. main ()
  6953. {
  6954. iconv_t cd = iconv_open("","");
  6955.        iconv(cd,NULL,NULL,NULL,NULL);
  6956.        iconv_close(cd);
  6957.   ;
  6958.   return 0;
  6959. }
  6960. _ACEOF
  6961. rm -f conftest.$ac_objext conftest$ac_exeext
  6962. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6963.   (eval $ac_link) 2>conftest.er1
  6964.   ac_status=$?
  6965.   grep -v '^ *+' conftest.er1 >conftest.err
  6966.   rm -f conftest.er1
  6967.   cat conftest.err >&5
  6968.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6969.   (exit $ac_status); } &&
  6970.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  6971.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6972.   (eval $ac_try) 2>&5
  6973.   ac_status=$?
  6974.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6975.   (exit $ac_status); }; } &&
  6976.      { ac_try='test -s conftest$ac_exeext'
  6977.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6978.   (eval $ac_try) 2>&5
  6979.   ac_status=$?
  6980.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6981.   (exit $ac_status); }; }; then
  6982.   am_cv_func_iconv=yes
  6983. else
  6984.   echo "$as_me: failed program was:" >&5
  6985. sed 's/^/| /' conftest.$ac_ext >&5
  6986.  
  6987. fi
  6988. rm -f conftest.err conftest.$ac_objext \
  6989.       conftest$ac_exeext conftest.$ac_ext
  6990.     if test "$am_cv_func_iconv" != yes; then
  6991.       am_save_LIBS="$LIBS"
  6992.       LIBS="$LIBS $LIBICONV"
  6993.       cat >conftest.$ac_ext <<_ACEOF
  6994. /* confdefs.h.  */
  6995. _ACEOF
  6996. cat confdefs.h >>conftest.$ac_ext
  6997. cat >>conftest.$ac_ext <<_ACEOF
  6998. /* end confdefs.h.  */
  6999. #include <stdlib.h>
  7000. #include <iconv.h>
  7001. int
  7002. main ()
  7003. {
  7004. iconv_t cd = iconv_open("","");
  7005.          iconv(cd,NULL,NULL,NULL,NULL);
  7006.          iconv_close(cd);
  7007.   ;
  7008.   return 0;
  7009. }
  7010. _ACEOF
  7011. rm -f conftest.$ac_objext conftest$ac_exeext
  7012. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7013.   (eval $ac_link) 2>conftest.er1
  7014.   ac_status=$?
  7015.   grep -v '^ *+' conftest.er1 >conftest.err
  7016.   rm -f conftest.er1
  7017.   cat conftest.err >&5
  7018.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7019.   (exit $ac_status); } &&
  7020.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  7021.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7022.   (eval $ac_try) 2>&5
  7023.   ac_status=$?
  7024.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7025.   (exit $ac_status); }; } &&
  7026.      { ac_try='test -s conftest$ac_exeext'
  7027.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7028.   (eval $ac_try) 2>&5
  7029.   ac_status=$?
  7030.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7031.   (exit $ac_status); }; }; then
  7032.   am_cv_lib_iconv=yes
  7033.         am_cv_func_iconv=yes
  7034. else
  7035.   echo "$as_me: failed program was:" >&5
  7036. sed 's/^/| /' conftest.$ac_ext >&5
  7037.  
  7038. fi
  7039. rm -f conftest.err conftest.$ac_objext \
  7040.       conftest$ac_exeext conftest.$ac_ext
  7041.       LIBS="$am_save_LIBS"
  7042.     fi
  7043.  
  7044. fi
  7045. echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  7046. echo "${ECHO_T}$am_cv_func_iconv" >&6
  7047.   if test "$am_cv_func_iconv" = yes; then
  7048.  
  7049. cat >>confdefs.h <<\_ACEOF
  7050. #define HAVE_ICONV 1
  7051. _ACEOF
  7052.  
  7053.   fi
  7054.   if test "$am_cv_lib_iconv" = yes; then
  7055.     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  7056. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
  7057.     echo "$as_me:$LINENO: result: $LIBICONV" >&5
  7058. echo "${ECHO_T}$LIBICONV" >&6
  7059.   else
  7060.             CPPFLAGS="$am_save_CPPFLAGS"
  7061.     LIBICONV=
  7062.     LTLIBICONV=
  7063.   fi
  7064.  
  7065.  
  7066.  
  7067.  
  7068.  
  7069.  
  7070.     use_additional=yes
  7071.  
  7072.   acl_save_prefix="$prefix"
  7073.   prefix="$acl_final_prefix"
  7074.   acl_save_exec_prefix="$exec_prefix"
  7075.   exec_prefix="$acl_final_exec_prefix"
  7076.  
  7077.     eval additional_includedir=\"$includedir\"
  7078.     eval additional_libdir=\"$libdir\"
  7079.  
  7080.   exec_prefix="$acl_save_exec_prefix"
  7081.   prefix="$acl_save_prefix"
  7082.  
  7083.  
  7084. # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
  7085. if test "${with_libintl_prefix+set}" = set; then
  7086.   withval="$with_libintl_prefix"
  7087.  
  7088.     if test "X$withval" = "Xno"; then
  7089.       use_additional=no
  7090.     else
  7091.       if test "X$withval" = "X"; then
  7092.  
  7093.   acl_save_prefix="$prefix"
  7094.   prefix="$acl_final_prefix"
  7095.   acl_save_exec_prefix="$exec_prefix"
  7096.   exec_prefix="$acl_final_exec_prefix"
  7097.  
  7098.           eval additional_includedir=\"$includedir\"
  7099.           eval additional_libdir=\"$libdir\"
  7100.  
  7101.   exec_prefix="$acl_save_exec_prefix"
  7102.   prefix="$acl_save_prefix"
  7103.  
  7104.       else
  7105.         additional_includedir="$withval/include"
  7106.         additional_libdir="$withval/lib"
  7107.       fi
  7108.     fi
  7109.  
  7110. fi;
  7111.       LIBINTL=
  7112.   LTLIBINTL=
  7113.   INCINTL=
  7114.   rpathdirs=
  7115.   ltrpathdirs=
  7116.   names_already_handled=
  7117.   names_next_round='intl '
  7118.   while test -n "$names_next_round"; do
  7119.     names_this_round="$names_next_round"
  7120.     names_next_round=
  7121.     for name in $names_this_round; do
  7122.       already_handled=
  7123.       for n in $names_already_handled; do
  7124.         if test "$n" = "$name"; then
  7125.           already_handled=yes
  7126.           break
  7127.         fi
  7128.       done
  7129.       if test -z "$already_handled"; then
  7130.         names_already_handled="$names_already_handled $name"
  7131.                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  7132.         eval value=\"\$HAVE_LIB$uppername\"
  7133.         if test -n "$value"; then
  7134.           if test "$value" = yes; then
  7135.             eval value=\"\$LIB$uppername\"
  7136.             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  7137.             eval value=\"\$LTLIB$uppername\"
  7138.             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  7139.           else
  7140.                                     :
  7141.           fi
  7142.         else
  7143.                               found_dir=
  7144.           found_la=
  7145.           found_so=
  7146.           found_a=
  7147.           if test $use_additional = yes; then
  7148.             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  7149.               found_dir="$additional_libdir"
  7150.               found_so="$additional_libdir/lib$name.$shlibext"
  7151.               if test -f "$additional_libdir/lib$name.la"; then
  7152.                 found_la="$additional_libdir/lib$name.la"
  7153.               fi
  7154.             else
  7155.               if test -f "$additional_libdir/lib$name.$libext"; then
  7156.                 found_dir="$additional_libdir"
  7157.                 found_a="$additional_libdir/lib$name.$libext"
  7158.                 if test -f "$additional_libdir/lib$name.la"; then
  7159.                   found_la="$additional_libdir/lib$name.la"
  7160.                 fi
  7161.               fi
  7162.             fi
  7163.           fi
  7164.           if test "X$found_dir" = "X"; then
  7165.             for x in $LDFLAGS $LTLIBINTL; do
  7166.  
  7167.   acl_save_prefix="$prefix"
  7168.   prefix="$acl_final_prefix"
  7169.   acl_save_exec_prefix="$exec_prefix"
  7170.   exec_prefix="$acl_final_exec_prefix"
  7171.   eval x=\"$x\"
  7172.   exec_prefix="$acl_save_exec_prefix"
  7173.   prefix="$acl_save_prefix"
  7174.  
  7175.               case "$x" in
  7176.                 -L*)
  7177.                   dir=`echo "X$x" | sed -e 's/^X-L//'`
  7178.                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  7179.                     found_dir="$dir"
  7180.                     found_so="$dir/lib$name.$shlibext"
  7181.                     if test -f "$dir/lib$name.la"; then
  7182.                       found_la="$dir/lib$name.la"
  7183.                     fi
  7184.                   else
  7185.                     if test -f "$dir/lib$name.$libext"; then
  7186.                       found_dir="$dir"
  7187.                       found_a="$dir/lib$name.$libext"
  7188.                       if test -f "$dir/lib$name.la"; then
  7189.                         found_la="$dir/lib$name.la"
  7190.                       fi
  7191.                     fi
  7192.                   fi
  7193.                   ;;
  7194.               esac
  7195.               if test "X$found_dir" != "X"; then
  7196.                 break
  7197.               fi
  7198.             done
  7199.           fi
  7200.           if test "X$found_dir" != "X"; then
  7201.                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  7202.             if test "X$found_so" != "X"; then
  7203.                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  7204.                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  7205.               else
  7206.                                                                                 haveit=
  7207.                 for x in $ltrpathdirs; do
  7208.                   if test "X$x" = "X$found_dir"; then
  7209.                     haveit=yes
  7210.                     break
  7211.                   fi
  7212.                 done
  7213.                 if test -z "$haveit"; then
  7214.                   ltrpathdirs="$ltrpathdirs $found_dir"
  7215.                 fi
  7216.                                 if test "$hardcode_direct" = yes; then
  7217.                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  7218.                 else
  7219.                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  7220.                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  7221.                                                             haveit=
  7222.                     for x in $rpathdirs; do
  7223.                       if test "X$x" = "X$found_dir"; then
  7224.                         haveit=yes
  7225.                         break
  7226.                       fi
  7227.                     done
  7228.                     if test -z "$haveit"; then
  7229.                       rpathdirs="$rpathdirs $found_dir"
  7230.                     fi
  7231.                   else
  7232.                                                                                 haveit=
  7233.                     for x in $LDFLAGS $LIBINTL; do
  7234.  
  7235.   acl_save_prefix="$prefix"
  7236.   prefix="$acl_final_prefix"
  7237.   acl_save_exec_prefix="$exec_prefix"
  7238.   exec_prefix="$acl_final_exec_prefix"
  7239.   eval x=\"$x\"
  7240.   exec_prefix="$acl_save_exec_prefix"
  7241.   prefix="$acl_save_prefix"
  7242.  
  7243.                       if test "X$x" = "X-L$found_dir"; then
  7244.                         haveit=yes
  7245.                         break
  7246.                       fi
  7247.                     done
  7248.                     if test -z "$haveit"; then
  7249.                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  7250.                     fi
  7251.                     if test "$hardcode_minus_L" != no; then
  7252.                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  7253.                     else
  7254.                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  7255.                     fi
  7256.                   fi
  7257.                 fi
  7258.               fi
  7259.             else
  7260.               if test "X$found_a" != "X"; then
  7261.                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  7262.               else
  7263.                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  7264.               fi
  7265.             fi
  7266.                         additional_includedir=
  7267.             case "$found_dir" in
  7268.               */lib | */lib/)
  7269.                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  7270.                 additional_includedir="$basedir/include"
  7271.                 ;;
  7272.             esac
  7273.             if test "X$additional_includedir" != "X"; then
  7274.                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
  7275.                 haveit=
  7276.                 if test "X$additional_includedir" = "X/usr/local/include"; then
  7277.                   if test -n "$GCC"; then
  7278.                     case $host_os in
  7279.                       linux*) haveit=yes;;
  7280.                     esac
  7281.                   fi
  7282.                 fi
  7283.                 if test -z "$haveit"; then
  7284.                   for x in $CPPFLAGS $INCINTL; do
  7285.  
  7286.   acl_save_prefix="$prefix"
  7287.   prefix="$acl_final_prefix"
  7288.   acl_save_exec_prefix="$exec_prefix"
  7289.   exec_prefix="$acl_final_exec_prefix"
  7290.   eval x=\"$x\"
  7291.   exec_prefix="$acl_save_exec_prefix"
  7292.   prefix="$acl_save_prefix"
  7293.  
  7294.                     if test "X$x" = "X-I$additional_includedir"; then
  7295.                       haveit=yes
  7296.                       break
  7297.                     fi
  7298.                   done
  7299.                   if test -z "$haveit"; then
  7300.                     if test -d "$additional_includedir"; then
  7301.                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  7302.                     fi
  7303.                   fi
  7304.                 fi
  7305.               fi
  7306.             fi
  7307.                         if test -n "$found_la"; then
  7308.                                                         save_libdir="$libdir"
  7309.               case "$found_la" in
  7310.                 */* | *\\*) . "$found_la" ;;
  7311.                 *) . "./$found_la" ;;
  7312.               esac
  7313.               libdir="$save_libdir"
  7314.                             for dep in $dependency_libs; do
  7315.                 case "$dep" in
  7316.                   -L*)
  7317.                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  7318.                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
  7319.                       haveit=
  7320.                       if test "X$additional_libdir" = "X/usr/local/lib"; then
  7321.                         if test -n "$GCC"; then
  7322.                           case $host_os in
  7323.                             linux*) haveit=yes;;
  7324.                           esac
  7325.                         fi
  7326.                       fi
  7327.                       if test -z "$haveit"; then
  7328.                         haveit=
  7329.                         for x in $LDFLAGS $LIBINTL; do
  7330.  
  7331.   acl_save_prefix="$prefix"
  7332.   prefix="$acl_final_prefix"
  7333.   acl_save_exec_prefix="$exec_prefix"
  7334.   exec_prefix="$acl_final_exec_prefix"
  7335.   eval x=\"$x\"
  7336.   exec_prefix="$acl_save_exec_prefix"
  7337.   prefix="$acl_save_prefix"
  7338.  
  7339.                           if test "X$x" = "X-L$additional_libdir"; then
  7340.                             haveit=yes
  7341.                             break
  7342.                           fi
  7343.                         done
  7344.                         if test -z "$haveit"; then
  7345.                           if test -d "$additional_libdir"; then
  7346.                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  7347.                           fi
  7348.                         fi
  7349.                         haveit=
  7350.                         for x in $LDFLAGS $LTLIBINTL; do
  7351.  
  7352.   acl_save_prefix="$prefix"
  7353.   prefix="$acl_final_prefix"
  7354.   acl_save_exec_prefix="$exec_prefix"
  7355.   exec_prefix="$acl_final_exec_prefix"
  7356.   eval x=\"$x\"
  7357.   exec_prefix="$acl_save_exec_prefix"
  7358.   prefix="$acl_save_prefix"
  7359.  
  7360.                           if test "X$x" = "X-L$additional_libdir"; then
  7361.                             haveit=yes
  7362.                             break
  7363.                           fi
  7364.                         done
  7365.                         if test -z "$haveit"; then
  7366.                           if test -d "$additional_libdir"; then
  7367.                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  7368.                           fi
  7369.                         fi
  7370.                       fi
  7371.                     fi
  7372.                     ;;
  7373.                   -R*)
  7374.                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
  7375.                     if test "$enable_rpath" != no; then
  7376.                                                                   haveit=
  7377.                       for x in $rpathdirs; do
  7378.                         if test "X$x" = "X$dir"; then
  7379.                           haveit=yes
  7380.                           break
  7381.                         fi
  7382.                       done
  7383.                       if test -z "$haveit"; then
  7384.                         rpathdirs="$rpathdirs $dir"
  7385.                       fi
  7386.                                                                   haveit=
  7387.                       for x in $ltrpathdirs; do
  7388.                         if test "X$x" = "X$dir"; then
  7389.                           haveit=yes
  7390.                           break
  7391.                         fi
  7392.                       done
  7393.                       if test -z "$haveit"; then
  7394.                         ltrpathdirs="$ltrpathdirs $dir"
  7395.                       fi
  7396.                     fi
  7397.                     ;;
  7398.                   -l*)
  7399.                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  7400.                     ;;
  7401.                   *.la)
  7402.                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  7403.                     ;;
  7404.                   *)
  7405.                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  7406.                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  7407.                     ;;
  7408.                 esac
  7409.               done
  7410.             fi
  7411.           else
  7412.                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  7413.             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  7414.           fi
  7415.         fi
  7416.       fi
  7417.     done
  7418.   done
  7419.   if test "X$rpathdirs" != "X"; then
  7420.     if test -n "$hardcode_libdir_separator"; then
  7421.                         alldirs=
  7422.       for found_dir in $rpathdirs; do
  7423.         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  7424.       done
  7425.             acl_save_libdir="$libdir"
  7426.       libdir="$alldirs"
  7427.       eval flag=\"$hardcode_libdir_flag_spec\"
  7428.       libdir="$acl_save_libdir"
  7429.       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  7430.     else
  7431.             for found_dir in $rpathdirs; do
  7432.         acl_save_libdir="$libdir"
  7433.         libdir="$found_dir"
  7434.         eval flag=\"$hardcode_libdir_flag_spec\"
  7435.         libdir="$acl_save_libdir"
  7436.         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  7437.       done
  7438.     fi
  7439.   fi
  7440.   if test "X$ltrpathdirs" != "X"; then
  7441.             for found_dir in $ltrpathdirs; do
  7442.       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  7443.     done
  7444.   fi
  7445.  
  7446.           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  7447. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
  7448. if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
  7449.   echo $ECHO_N "(cached) $ECHO_C" >&6
  7450. else
  7451.   gt_save_CPPFLAGS="$CPPFLAGS"
  7452.             CPPFLAGS="$CPPFLAGS $INCINTL"
  7453.             gt_save_LIBS="$LIBS"
  7454.             LIBS="$LIBS $LIBINTL"
  7455.                         cat >conftest.$ac_ext <<_ACEOF
  7456. /* confdefs.h.  */
  7457. _ACEOF
  7458. cat confdefs.h >>conftest.$ac_ext
  7459. cat >>conftest.$ac_ext <<_ACEOF
  7460. /* end confdefs.h.  */
  7461. #include <libintl.h>
  7462. extern int _nl_msg_cat_cntr;
  7463. extern
  7464. #ifdef __cplusplus
  7465. "C"
  7466. #endif
  7467. const char *_nl_expand_alias ();
  7468. int
  7469. main ()
  7470. {
  7471. bindtextdomain ("", "");
  7472. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  7473.   ;
  7474.   return 0;
  7475. }
  7476. _ACEOF
  7477. rm -f conftest.$ac_objext conftest$ac_exeext
  7478. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7479.   (eval $ac_link) 2>conftest.er1
  7480.   ac_status=$?
  7481.   grep -v '^ *+' conftest.er1 >conftest.err
  7482.   rm -f conftest.er1
  7483.   cat conftest.err >&5
  7484.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7485.   (exit $ac_status); } &&
  7486.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  7487.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7488.   (eval $ac_try) 2>&5
  7489.   ac_status=$?
  7490.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7491.   (exit $ac_status); }; } &&
  7492.      { ac_try='test -s conftest$ac_exeext'
  7493.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7494.   (eval $ac_try) 2>&5
  7495.   ac_status=$?
  7496.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7497.   (exit $ac_status); }; }; then
  7498.   gt_cv_func_gnugettext1_libintl=yes
  7499. else
  7500.   echo "$as_me: failed program was:" >&5
  7501. sed 's/^/| /' conftest.$ac_ext >&5
  7502.  
  7503. gt_cv_func_gnugettext1_libintl=no
  7504. fi
  7505. rm -f conftest.err conftest.$ac_objext \
  7506.       conftest$ac_exeext conftest.$ac_ext
  7507.                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
  7508.               LIBS="$LIBS $LIBICONV"
  7509.               cat >conftest.$ac_ext <<_ACEOF
  7510. /* confdefs.h.  */
  7511. _ACEOF
  7512. cat confdefs.h >>conftest.$ac_ext
  7513. cat >>conftest.$ac_ext <<_ACEOF
  7514. /* end confdefs.h.  */
  7515. #include <libintl.h>
  7516. extern int _nl_msg_cat_cntr;
  7517. extern
  7518. #ifdef __cplusplus
  7519. "C"
  7520. #endif
  7521. const char *_nl_expand_alias ();
  7522. int
  7523. main ()
  7524. {
  7525. bindtextdomain ("", "");
  7526. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  7527.   ;
  7528.   return 0;
  7529. }
  7530. _ACEOF
  7531. rm -f conftest.$ac_objext conftest$ac_exeext
  7532. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7533.   (eval $ac_link) 2>conftest.er1
  7534.   ac_status=$?
  7535.   grep -v '^ *+' conftest.er1 >conftest.err
  7536.   rm -f conftest.er1
  7537.   cat conftest.err >&5
  7538.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7539.   (exit $ac_status); } &&
  7540.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  7541.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7542.   (eval $ac_try) 2>&5
  7543.   ac_status=$?
  7544.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7545.   (exit $ac_status); }; } &&
  7546.      { ac_try='test -s conftest$ac_exeext'
  7547.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7548.   (eval $ac_try) 2>&5
  7549.   ac_status=$?
  7550.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7551.   (exit $ac_status); }; }; then
  7552.   LIBINTL="$LIBINTL $LIBICONV"
  7553.                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  7554.                 gt_cv_func_gnugettext1_libintl=yes
  7555.  
  7556. else
  7557.   echo "$as_me: failed program was:" >&5
  7558. sed 's/^/| /' conftest.$ac_ext >&5
  7559.  
  7560. fi
  7561. rm -f conftest.err conftest.$ac_objext \
  7562.       conftest$ac_exeext conftest.$ac_ext
  7563.             fi
  7564.             CPPFLAGS="$gt_save_CPPFLAGS"
  7565.             LIBS="$gt_save_LIBS"
  7566. fi
  7567. echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
  7568. echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
  7569.         fi
  7570.  
  7571.                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
  7572.            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
  7573.                 && test "$PACKAGE" != gettext-runtime \
  7574.                 && test "$PACKAGE" != gettext-tools; }; then
  7575.           gt_use_preinstalled_gnugettext=yes
  7576.         else
  7577.                     LIBINTL=
  7578.           LTLIBINTL=
  7579.           INCINTL=
  7580.         fi
  7581.  
  7582.  
  7583.  
  7584.     if test "$gt_use_preinstalled_gnugettext" = "yes" \
  7585.        || test "$nls_cv_use_gnu_gettext" = "yes"; then
  7586.  
  7587. cat >>confdefs.h <<\_ACEOF
  7588. #define ENABLE_NLS 1
  7589. _ACEOF
  7590.  
  7591.     else
  7592.       USE_NLS=no
  7593.     fi
  7594.   fi
  7595.  
  7596.   echo "$as_me:$LINENO: checking whether to use NLS" >&5
  7597. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
  7598.   echo "$as_me:$LINENO: result: $USE_NLS" >&5
  7599. echo "${ECHO_T}$USE_NLS" >&6
  7600.   if test "$USE_NLS" = "yes"; then
  7601.     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  7602. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
  7603.     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  7604.       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  7605.         gt_source="external libintl"
  7606.       else
  7607.         gt_source="libc"
  7608.       fi
  7609.     else
  7610.       gt_source="included intl directory"
  7611.     fi
  7612.     echo "$as_me:$LINENO: result: $gt_source" >&5
  7613. echo "${ECHO_T}$gt_source" >&6
  7614.   fi
  7615.  
  7616.   if test "$USE_NLS" = "yes"; then
  7617.  
  7618.     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  7619.       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  7620.         echo "$as_me:$LINENO: checking how to link with libintl" >&5
  7621. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
  7622.         echo "$as_me:$LINENO: result: $LIBINTL" >&5
  7623. echo "${ECHO_T}$LIBINTL" >&6
  7624.  
  7625.   for element in $INCINTL; do
  7626.     haveit=
  7627.     for x in $CPPFLAGS; do
  7628.  
  7629.   acl_save_prefix="$prefix"
  7630.   prefix="$acl_final_prefix"
  7631.   acl_save_exec_prefix="$exec_prefix"
  7632.   exec_prefix="$acl_final_exec_prefix"
  7633.   eval x=\"$x\"
  7634.   exec_prefix="$acl_save_exec_prefix"
  7635.   prefix="$acl_save_prefix"
  7636.  
  7637.       if test "X$x" = "X$element"; then
  7638.         haveit=yes
  7639.         break
  7640.       fi
  7641.     done
  7642.     if test -z "$haveit"; then
  7643.       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  7644.     fi
  7645.   done
  7646.  
  7647.       fi
  7648.  
  7649.  
  7650. cat >>confdefs.h <<\_ACEOF
  7651. #define HAVE_GETTEXT 1
  7652. _ACEOF
  7653.  
  7654.  
  7655. cat >>confdefs.h <<\_ACEOF
  7656. #define HAVE_DCGETTEXT 1
  7657. _ACEOF
  7658.  
  7659.     fi
  7660.  
  7661.         POSUB=po
  7662.   fi
  7663.  
  7664.  
  7665.  
  7666.     INTLLIBS="$LIBINTL"
  7667.  
  7668.  
  7669.  
  7670.  
  7671.  
  7672.  
  7673.  
  7674. for ac_header in libintl.h
  7675. do
  7676. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7677. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7678.   echo "$as_me:$LINENO: checking for $ac_header" >&5
  7679. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7680. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7681.   echo $ECHO_N "(cached) $ECHO_C" >&6
  7682. fi
  7683. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7684. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7685. else
  7686.   # Is the header compilable?
  7687. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7688. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7689. cat >conftest.$ac_ext <<_ACEOF
  7690. /* confdefs.h.  */
  7691. _ACEOF
  7692. cat confdefs.h >>conftest.$ac_ext
  7693. cat >>conftest.$ac_ext <<_ACEOF
  7694. /* end confdefs.h.  */
  7695. $ac_includes_default
  7696. #include <$ac_header>
  7697. _ACEOF
  7698. rm -f conftest.$ac_objext
  7699. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7700.   (eval $ac_compile) 2>conftest.er1
  7701.   ac_status=$?
  7702.   grep -v '^ *+' conftest.er1 >conftest.err
  7703.   rm -f conftest.er1
  7704.   cat conftest.err >&5
  7705.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7706.   (exit $ac_status); } &&
  7707.      { ac_try='test -z "$ac_c_werror_flag"             || test ! -s conftest.err'
  7708.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7709.   (eval $ac_try) 2>&5
  7710.   ac_status=$?
  7711.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7712.   (exit $ac_status); }; } &&
  7713.      { ac_try='test -s conftest.$ac_objext'
  7714.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7715.   (eval $ac_try) 2>&5
  7716.   ac_status=$?
  7717.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7718.   (exit $ac_status); }; }; then
  7719.   ac_header_compiler=yes
  7720. else
  7721.   echo "$as_me: failed program was:" >&5
  7722. sed 's/^/| /' conftest.$ac_ext >&5
  7723.  
  7724. ac_header_compiler=no
  7725. fi
  7726. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7727. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7728. echo "${ECHO_T}$ac_header_compiler" >&6
  7729.  
  7730. # Is the header present?
  7731. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7732. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7733. cat >conftest.$ac_ext <<_ACEOF
  7734. /* confdefs.h.  */
  7735. _ACEOF
  7736. cat confdefs.h >>conftest.$ac_ext
  7737. cat >>conftest.$ac_ext <<_ACEOF
  7738. /* end confdefs.h.  */
  7739. #include <$ac_header>
  7740. _ACEOF
  7741. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7742.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7743.   ac_status=$?
  7744.   grep -v '^ *+' conftest.er1 >conftest.err
  7745.   rm -f conftest.er1
  7746.   cat conftest.err >&5
  7747.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7748.   (exit $ac_status); } >/dev/null; then
  7749.   if test -s conftest.err; then
  7750.     ac_cpp_err=$ac_c_preproc_warn_flag
  7751.     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7752.   else
  7753.     ac_cpp_err=
  7754.   fi
  7755. else
  7756.   ac_cpp_err=yes
  7757. fi
  7758. if test -z "$ac_cpp_err"; then
  7759.   ac_header_preproc=yes
  7760. else
  7761.   echo "$as_me: failed program was:" >&5
  7762. sed 's/^/| /' conftest.$ac_ext >&5
  7763.  
  7764.   ac_header_preproc=no
  7765. fi
  7766. rm -f conftest.err conftest.$ac_ext
  7767. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7768. echo "${ECHO_T}$ac_header_preproc" >&6
  7769.  
  7770. # So?  What about this header?
  7771. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7772.   yes:no: )
  7773.     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7774. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7775.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7776. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7777.     ac_header_preproc=yes
  7778.     ;;
  7779.   no:yes:* )
  7780.     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7781. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7782.     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
  7783. echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
  7784.     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7785. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7786.     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
  7787. echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
  7788.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7789. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7790.     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7791. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7792.     (
  7793.       cat <<\_ASBOX
  7794. ## ------------------------------------------ ##
  7795. ## Report this to the AC_PACKAGE_NAME lists.  ##
  7796. ## ------------------------------------------ ##
  7797. _ASBOX
  7798.     ) |
  7799.       sed "s/^/$as_me: WARNING:     /" >&2
  7800.     ;;
  7801. esac
  7802. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7803. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7804. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7805.   echo $ECHO_N "(cached) $ECHO_C" >&6
  7806. else
  7807.   eval "$as_ac_Header=\$ac_header_preproc"
  7808. fi
  7809. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7810. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7811.  
  7812. fi
  7813. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7814.   cat >>confdefs.h <<_ACEOF
  7815. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7816. _ACEOF
  7817.  
  7818. fi
  7819.  
  7820. done
  7821.  
  7822.   GETTEXT_PACKAGE=vba-1.7.2
  7823.  
  7824.  
  7825.  
  7826.   succeeded=no
  7827.  
  7828.   if test -z "$PKG_CONFIG"; then
  7829.     # Extract the first word of "pkg-config", so it can be a program name with args.
  7830. set dummy pkg-config; ac_word=$2
  7831. echo "$as_me:$LINENO: checking for $ac_word" >&5
  7832. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  7833. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  7834.   echo $ECHO_N "(cached) $ECHO_C" >&6
  7835. else
  7836.   case $PKG_CONFIG in
  7837.   [\\/]* | ?:[\\/]*)
  7838.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  7839.   ;;
  7840.   *)
  7841.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7842. for as_dir in $PATH
  7843. do
  7844.   IFS=$as_save_IFS
  7845.   test -z "$as_dir" && as_dir=.
  7846.   for ac_exec_ext in '' $ac_executable_extensions; do
  7847.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7848.     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  7849.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7850.     break 2
  7851.   fi
  7852. done
  7853. done
  7854.  
  7855.   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  7856.   ;;
  7857. esac
  7858. fi
  7859. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  7860.  
  7861. if test -n "$PKG_CONFIG"; then
  7862.   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  7863. echo "${ECHO_T}$PKG_CONFIG" >&6
  7864. else
  7865.   echo "$as_me:$LINENO: result: no" >&5
  7866. echo "${ECHO_T}no" >&6
  7867. fi
  7868.  
  7869.   fi
  7870.  
  7871.   if test "$PKG_CONFIG" = "no" ; then
  7872.      echo "*** The pkg-config script could not be found. Make sure it is"
  7873.      echo "*** in your path, or set the PKG_CONFIG environment variable"
  7874.      echo "*** to the full path to pkg-config."
  7875.      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  7876.   else
  7877.      PKG_CONFIG_MIN_VERSION=0.9.0
  7878.      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  7879.         echo "$as_me:$LINENO: checking for gtkmm-$gtk_version >= 2.0.0 libglademm-$gtk_version >= 2.1.0" >&5
  7880. echo $ECHO_N "checking for gtkmm-$gtk_version >= 2.0.0 libglademm-$gtk_version >= 2.1.0... $ECHO_C" >&6
  7881.  
  7882.         if $PKG_CONFIG --exists "gtkmm-$gtk_version >= 2.0.0 libglademm-$gtk_version >= 2.1.0" ; then
  7883.             echo "$as_me:$LINENO: result: yes" >&5
  7884. echo "${ECHO_T}yes" >&6
  7885.             succeeded=yes
  7886.  
  7887.             echo "$as_me:$LINENO: checking GTKMM_CFLAGS" >&5
  7888. echo $ECHO_N "checking GTKMM_CFLAGS... $ECHO_C" >&6
  7889.             GTKMM_CFLAGS=`$PKG_CONFIG --cflags "gtkmm-$gtk_version >= 2.0.0 libglademm-$gtk_version >= 2.1.0"`
  7890.             echo "$as_me:$LINENO: result: $GTKMM_CFLAGS" >&5
  7891. echo "${ECHO_T}$GTKMM_CFLAGS" >&6
  7892.  
  7893.             echo "$as_me:$LINENO: checking GTKMM_LIBS" >&5
  7894. echo $ECHO_N "checking GTKMM_LIBS... $ECHO_C" >&6
  7895.             GTKMM_LIBS=`$PKG_CONFIG --libs "gtkmm-$gtk_version >= 2.0.0 libglademm-$gtk_version >= 2.1.0"`
  7896.             echo "$as_me:$LINENO: result: $GTKMM_LIBS" >&5
  7897. echo "${ECHO_T}$GTKMM_LIBS" >&6
  7898.         else
  7899.             GTKMM_CFLAGS=""
  7900.             GTKMM_LIBS=""
  7901.             ## If we have a custom action on failure, don't print errors, but
  7902.             ## do set a variable so people can do so.
  7903.             GTKMM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtkmm-$gtk_version >= 2.0.0 libglademm-$gtk_version >= 2.1.0"`
  7904.             echo $GTKMM_PKG_ERRORS
  7905.         fi
  7906.  
  7907.  
  7908.  
  7909.      else
  7910.         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  7911.         echo "*** See http://www.freedesktop.org/software/pkgconfig"
  7912.      fi
  7913.   fi
  7914.  
  7915.   if test $succeeded = yes; then
  7916.      :
  7917.   else
  7918.      { { echo "$as_me:$LINENO: error: Library requirements (gtkmm-$gtk_version >= 2.0.0 libglademm-$gtk_version >= 2.1.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
  7919. echo "$as_me: error: Library requirements (gtkmm-$gtk_version >= 2.0.0 libglademm-$gtk_version >= 2.1.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;}
  7920.    { (exit 1); exit 1; }; }
  7921.   fi
  7922.  
  7923.  
  7924.  
  7925.   if test "x$gtk_version" = x2.0; then
  7926.     GTKMM_CPPFLAGS="-DGTKMM20"
  7927.   fi
  7928.  
  7929.   VBA_EXTRA="$VBA_EXTRA po"
  7930.   VBA_SRC_EXTRA="$VBA_SRC_EXTRA gtk"
  7931. fi
  7932.  
  7933. if test "x$enable_dev" = xyes; then
  7934.   CXXFLAGS="$CXXFLAGS -DDEV_VERSION"
  7935. fi
  7936.  
  7937. if test "x$enable_sdl" != xyes && test "x$enable_gtk" != xyes; then
  7938.   { echo "$as_me:$LINENO: WARNING: *** You have chosen not to build any frontend." >&5
  7939. echo "$as_me: WARNING: *** You have chosen not to build any frontend." >&2;}
  7940. fi
  7941.  
  7942.  
  7943.  
  7944.  
  7945.  
  7946.                                                                                                               ac_config_files="$ac_config_files Makefile m4/Makefile po/Makefile.in src/Makefile src/gb/Makefile src/gtk/Makefile src/gtk/images/Makefile src/i386/Makefile src/prof/Makefile src/sdl/Makefile win32/Makefile"
  7947.  
  7948. cat >confcache <<\_ACEOF
  7949. # This file is a shell script that caches the results of configure
  7950. # tests run on this system so they can be shared between configure
  7951. # scripts and configure runs, see configure's option --config-cache.
  7952. # It is not useful on other systems.  If it contains results you don't
  7953. # want to keep, you may remove or edit it.
  7954. #
  7955. # config.status only pays attention to the cache file if you give it
  7956. # the --recheck option to rerun configure.
  7957. #
  7958. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7959. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7960. # following values.
  7961.  
  7962. _ACEOF
  7963.  
  7964. # The following way of writing the cache mishandles newlines in values,
  7965. # but we know of no workaround that is simple, portable, and efficient.
  7966. # So, don't put newlines in cache variables' values.
  7967. # Ultrix sh set writes to stderr and can't be redirected directly,
  7968. # and sets the high bit in the cache file unless we assign to the vars.
  7969. {
  7970.   (set) 2>&1 |
  7971.     case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7972.     *ac_space=\ *)
  7973.       # `set' does not quote correctly, so add quotes (double-quote
  7974.       # substitution turns \\\\ into \\, and sed turns \\ into \).
  7975.       sed -n \
  7976.     "s/'/'\\\\''/g;
  7977.       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7978.       ;;
  7979.     *)
  7980.       # `set' quotes correctly as required by POSIX, so do not add quotes.
  7981.       sed -n \
  7982.     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7983.       ;;
  7984.     esac;
  7985. } |
  7986.   sed '
  7987.      t clear
  7988.      : clear
  7989.      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7990.      t end
  7991.      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7992.      : end' >>confcache
  7993. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7994.   if test -w $cache_file; then
  7995.     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  7996.     cat confcache >$cache_file
  7997.   else
  7998.     echo "not updating unwritable cache $cache_file"
  7999.   fi
  8000. fi
  8001. rm -f confcache
  8002.  
  8003. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8004. # Let make expand exec_prefix.
  8005. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8006.  
  8007. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  8008. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  8009. # trailing colons and then remove the whole line if VPATH becomes empty
  8010. # (actually we leave an empty line to preserve line numbers).
  8011. if test "x$srcdir" = x.; then
  8012.   ac_vpsub='/^[     ]*VPATH[     ]*=/{
  8013. s/:*\$(srcdir):*/:/;
  8014. s/:*\${srcdir}:*/:/;
  8015. s/:*@srcdir@:*/:/;
  8016. s/^\([^=]*=[     ]*\):*/\1/;
  8017. s/:*$//;
  8018. s/^[^=]*=[     ]*$//;
  8019. }'
  8020. fi
  8021.  
  8022. # Transform confdefs.h into DEFS.
  8023. # Protect against shell expansion while executing Makefile rules.
  8024. # Protect against Makefile macro expansion.
  8025. #
  8026. # If the first sed substitution is executed (which looks for macros that
  8027. # take arguments), then we branch to the quote section.  Otherwise,
  8028. # look for a macro that doesn't take arguments.
  8029. cat >confdef2opt.sed <<\_ACEOF
  8030. t clear
  8031. : clear
  8032. s,^[     ]*#[     ]*define[     ][     ]*\([^     (][^     (]*([^)]*)\)[     ]*\(.*\),-D\1=\2,g
  8033. t quote
  8034. s,^[     ]*#[     ]*define[     ][     ]*\([^     ][^     ]*\)[     ]*\(.*\),-D\1=\2,g
  8035. t quote
  8036. d
  8037. : quote
  8038. s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
  8039. s,\[,\\&,g
  8040. s,\],\\&,g
  8041. s,\$,$$,g
  8042. p
  8043. _ACEOF
  8044. # We use echo to avoid assuming a particular line-breaking character.
  8045. # The extra dot is to prevent the shell from consuming trailing
  8046. # line-breaks from the sub-command output.  A line-break within
  8047. # single-quotes doesn't work because, if this script is created in a
  8048. # platform that uses two characters for line-breaks (e.g., DOS), tr
  8049. # would break.
  8050. ac_LF_and_DOT=`echo; echo .`
  8051. DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
  8052. rm -f confdef2opt.sed
  8053.  
  8054.  
  8055. ac_libobjs=
  8056. ac_ltlibobjs=
  8057. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  8058.   # 1. Remove the extension, and $U if already installed.
  8059.   ac_i=`echo "$ac_i" |
  8060.      sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  8061.   # 2. Add them.
  8062.   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  8063.   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  8064. done
  8065. LIBOBJS=$ac_libobjs
  8066.  
  8067. LTLIBOBJS=$ac_ltlibobjs
  8068.  
  8069.  
  8070. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  8071.   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  8072. Usually this means the macro was only invoked conditionally." >&5
  8073. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  8074. Usually this means the macro was only invoked conditionally." >&2;}
  8075.    { (exit 1); exit 1; }; }
  8076. fi
  8077. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  8078.   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  8079. Usually this means the macro was only invoked conditionally." >&5
  8080. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  8081. Usually this means the macro was only invoked conditionally." >&2;}
  8082.    { (exit 1); exit 1; }; }
  8083. fi
  8084. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  8085.   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  8086. Usually this means the macro was only invoked conditionally." >&5
  8087. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  8088. Usually this means the macro was only invoked conditionally." >&2;}
  8089.    { (exit 1); exit 1; }; }
  8090. fi
  8091.  
  8092. : ${CONFIG_STATUS=./config.status}
  8093. ac_clean_files_save=$ac_clean_files
  8094. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8095. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  8096. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  8097. cat >$CONFIG_STATUS <<_ACEOF
  8098. #! $SHELL
  8099. # Generated by $as_me.
  8100. # Run this file to recreate the current configuration.
  8101. # Compiler output produced by configure, useful for debugging
  8102. # configure, is in config.log if it exists.
  8103.  
  8104. debug=false
  8105. ac_cs_recheck=false
  8106. ac_cs_silent=false
  8107. SHELL=\${CONFIG_SHELL-$SHELL}
  8108. _ACEOF
  8109.  
  8110. cat >>$CONFIG_STATUS <<\_ACEOF
  8111. ## --------------------- ##
  8112. ## M4sh Initialization.  ##
  8113. ## --------------------- ##
  8114.  
  8115. # Be Bourne compatible
  8116. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  8117.   emulate sh
  8118.   NULLCMD=:
  8119.   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  8120.   # is contrary to our usage.  Disable this feature.
  8121.   alias -g '${1+"$@"}'='"$@"'
  8122. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  8123.   set -o posix
  8124. fi
  8125. DUALCASE=1; export DUALCASE # for MKS sh
  8126.  
  8127. # Support unset when possible.
  8128. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  8129.   as_unset=unset
  8130. else
  8131.   as_unset=false
  8132. fi
  8133.  
  8134.  
  8135. # Work around bugs in pre-3.0 UWIN ksh.
  8136. $as_unset ENV MAIL MAILPATH
  8137. PS1='$ '
  8138. PS2='> '
  8139. PS4='+ '
  8140.  
  8141. # NLS nuisances.
  8142. for as_var in \
  8143.   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  8144.   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  8145.   LC_TELEPHONE LC_TIME
  8146. do
  8147.   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  8148.     eval $as_var=C; export $as_var
  8149.   else
  8150.     $as_unset $as_var
  8151.   fi
  8152. done
  8153.  
  8154. # Required to use basename.
  8155. if expr a : '\(a\)' >/dev/null 2>&1; then
  8156.   as_expr=expr
  8157. else
  8158.   as_expr=false
  8159. fi
  8160.  
  8161. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  8162.   as_basename=basename
  8163. else
  8164.   as_basename=false
  8165. fi
  8166.  
  8167.  
  8168. # Name of the executable.
  8169. as_me=`$as_basename "$0" ||
  8170. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8171.      X"$0" : 'X\(//\)$' \| \
  8172.      X"$0" : 'X\(/\)$' \| \
  8173.      .     : '\(.\)' 2>/dev/null ||
  8174. echo X/"$0" |
  8175.     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  8176.         /^X\/\(\/\/\)$/{ s//\1/; q; }
  8177.         /^X\/\(\/\).*/{ s//\1/; q; }
  8178.         s/.*/./; q'`
  8179.  
  8180.  
  8181. # PATH needs CR, and LINENO needs CR and PATH.
  8182. # Avoid depending upon Character Ranges.
  8183. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8184. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8185. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8186. as_cr_digits='0123456789'
  8187. as_cr_alnum=$as_cr_Letters$as_cr_digits
  8188.  
  8189. # The user is always right.
  8190. if test "${PATH_SEPARATOR+set}" != set; then
  8191.   echo "#! /bin/sh" >conf$$.sh
  8192.   echo  "exit 0"   >>conf$$.sh
  8193.   chmod +x conf$$.sh
  8194.   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8195.     PATH_SEPARATOR=';'
  8196.   else
  8197.     PATH_SEPARATOR=:
  8198.   fi
  8199.   rm -f conf$$.sh
  8200. fi
  8201.  
  8202.  
  8203.   as_lineno_1=$LINENO
  8204.   as_lineno_2=$LINENO
  8205.   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  8206.   test "x$as_lineno_1" != "x$as_lineno_2" &&
  8207.   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
  8208.   # Find who we are.  Look in the path if we contain no path at all
  8209.   # relative or not.
  8210.   case $0 in
  8211.     *[\\/]* ) as_myself=$0 ;;
  8212.     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8213. for as_dir in $PATH
  8214. do
  8215.   IFS=$as_save_IFS
  8216.   test -z "$as_dir" && as_dir=.
  8217.   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8218. done
  8219.  
  8220.        ;;
  8221.   esac
  8222.   # We did not find ourselves, most probably we were run as `sh COMMAND'
  8223.   # in which case we are not to be found in the path.
  8224.   if test "x$as_myself" = x; then
  8225.     as_myself=$0
  8226.   fi
  8227.   if test ! -f "$as_myself"; then
  8228.     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  8229. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  8230.    { (exit 1); exit 1; }; }
  8231.   fi
  8232.   case $CONFIG_SHELL in
  8233.   '')
  8234.     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8235. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  8236. do
  8237.   IFS=$as_save_IFS
  8238.   test -z "$as_dir" && as_dir=.
  8239.   for as_base in sh bash ksh sh5; do
  8240.      case $as_dir in
  8241.      /*)
  8242.        if ("$as_dir/$as_base" -c '
  8243.   as_lineno_1=$LINENO
  8244.   as_lineno_2=$LINENO
  8245.   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  8246.   test "x$as_lineno_1" != "x$as_lineno_2" &&
  8247.   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
  8248.          $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  8249.          $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  8250.          CONFIG_SHELL=$as_dir/$as_base
  8251.          export CONFIG_SHELL
  8252.          exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  8253.        fi;;
  8254.      esac
  8255.        done
  8256. done
  8257. ;;
  8258.   esac
  8259.  
  8260.   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  8261.   # uniformly replaced by the line number.  The first 'sed' inserts a
  8262.   # line-number line before each line; the second 'sed' does the real
  8263.   # work.  The second script uses 'N' to pair each line-number line
  8264.   # with the numbered line, and appends trailing '-' during
  8265.   # substitution so that $LINENO is not a special case at line end.
  8266.   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  8267.   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
  8268.   sed '=' <$as_myself |
  8269.     sed '
  8270.       N
  8271.       s,$,-,
  8272.       : loop
  8273.       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  8274.       t loop
  8275.       s,-$,,
  8276.       s,^['$as_cr_digits']*\n,,
  8277.     ' >$as_me.lineno &&
  8278.   chmod +x $as_me.lineno ||
  8279.     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  8280. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  8281.    { (exit 1); exit 1; }; }
  8282.  
  8283.   # Don't try to exec as it changes $[0], causing all sort of problems
  8284.   # (the dirname of $[0] is not the place where we might find the
  8285.   # original and so on.  Autoconf is especially sensible to this).
  8286.   . ./$as_me.lineno
  8287.   # Exit status is that of the last command.
  8288.   exit
  8289. }
  8290.  
  8291.  
  8292. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  8293.   *c*,-n*) ECHO_N= ECHO_C='
  8294. ' ECHO_T='    ' ;;
  8295.   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  8296.   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
  8297. esac
  8298.  
  8299. if expr a : '\(a\)' >/dev/null 2>&1; then
  8300.   as_expr=expr
  8301. else
  8302.   as_expr=false
  8303. fi
  8304.  
  8305. rm -f conf$$ conf$$.exe conf$$.file
  8306. echo >conf$$.file
  8307. if ln -s conf$$.file conf$$ 2>/dev/null; then
  8308.   # We could just check for DJGPP; but this test a) works b) is more generic
  8309.   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  8310.   if test -f conf$$.exe; then
  8311.     # Don't use ln at all; we don't have any links
  8312.     as_ln_s='cp -p'
  8313.   else
  8314.     as_ln_s='ln -s'
  8315.   fi
  8316. elif ln conf$$.file conf$$ 2>/dev/null; then
  8317.   as_ln_s=ln
  8318. else
  8319.   as_ln_s='cp -p'
  8320. fi
  8321. rm -f conf$$ conf$$.exe conf$$.file
  8322.  
  8323. if mkdir -p . 2>/dev/null; then
  8324.   as_mkdir_p=:
  8325. else
  8326.   test -d ./-p && rmdir ./-p
  8327.   as_mkdir_p=false
  8328. fi
  8329.  
  8330. as_executable_p="test -f"
  8331.  
  8332. # Sed expression to map a string onto a valid CPP name.
  8333. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  8334.  
  8335. # Sed expression to map a string onto a valid variable name.
  8336. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  8337.  
  8338.  
  8339. # IFS
  8340. # We need space, tab and new line, in precisely that order.
  8341. as_nl='
  8342. '
  8343. IFS="     $as_nl"
  8344.  
  8345. # CDPATH.
  8346. $as_unset CDPATH
  8347.  
  8348. exec 6>&1
  8349.  
  8350. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  8351. # report actual input values of CONFIG_FILES etc. instead of their
  8352. # values after options handling.  Logging --version etc. is OK.
  8353. exec 5>>config.log
  8354. {
  8355.   echo
  8356.   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  8357. ## Running $as_me. ##
  8358. _ASBOX
  8359. } >&5
  8360. cat >&5 <<_CSEOF
  8361.  
  8362. This file was extended by $as_me, which was
  8363. generated by GNU Autoconf 2.59.  Invocation command line was
  8364.  
  8365.   CONFIG_FILES    = $CONFIG_FILES
  8366.   CONFIG_HEADERS  = $CONFIG_HEADERS
  8367.   CONFIG_LINKS    = $CONFIG_LINKS
  8368.   CONFIG_COMMANDS = $CONFIG_COMMANDS
  8369.   $ $0 $@
  8370.  
  8371. _CSEOF
  8372. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  8373. echo >&5
  8374. _ACEOF
  8375.  
  8376. # Files that config.status was made for.
  8377. if test -n "$ac_config_files"; then
  8378.   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  8379. fi
  8380.  
  8381. if test -n "$ac_config_headers"; then
  8382.   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  8383. fi
  8384.  
  8385. if test -n "$ac_config_links"; then
  8386.   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  8387. fi
  8388.  
  8389. if test -n "$ac_config_commands"; then
  8390.   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  8391. fi
  8392.  
  8393. cat >>$CONFIG_STATUS <<\_ACEOF
  8394.  
  8395. ac_cs_usage="\
  8396. \`$as_me' instantiates files from templates according to the
  8397. current configuration.
  8398.  
  8399. Usage: $0 [OPTIONS] [FILE]...
  8400.  
  8401.   -h, --help       print this help, then exit
  8402.   -V, --version    print version number, then exit
  8403.   -q, --quiet      do not print progress messages
  8404.   -d, --debug      don't remove temporary files
  8405.       --recheck    update $as_me by reconfiguring in the same conditions
  8406.   --file=FILE[:TEMPLATE]
  8407.            instantiate the configuration file FILE
  8408.  
  8409. Configuration files:
  8410. $config_files
  8411.  
  8412. Configuration commands:
  8413. $config_commands
  8414.  
  8415. Report bugs to <bug-autoconf@gnu.org>."
  8416. _ACEOF
  8417.  
  8418. cat >>$CONFIG_STATUS <<_ACEOF
  8419. ac_cs_version="\\
  8420. config.status
  8421. configured by $0, generated by GNU Autoconf 2.59,
  8422.   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  8423.  
  8424. Copyright (C) 2003 Free Software Foundation, Inc.
  8425. This config.status script is free software; the Free Software Foundation
  8426. gives unlimited permission to copy, distribute and modify it."
  8427. srcdir=$srcdir
  8428. INSTALL="$INSTALL"
  8429. _ACEOF
  8430.  
  8431. cat >>$CONFIG_STATUS <<\_ACEOF
  8432. # If no file are specified by the user, then we need to provide default
  8433. # value.  By we need to know if files were specified by the user.
  8434. ac_need_defaults=:
  8435. while test $# != 0
  8436. do
  8437.   case $1 in
  8438.   --*=*)
  8439.     ac_option=`expr "x$1" : 'x\([^=]*\)='`
  8440.     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  8441.     ac_shift=:
  8442.     ;;
  8443.   -*)
  8444.     ac_option=$1
  8445.     ac_optarg=$2
  8446.     ac_shift=shift
  8447.     ;;
  8448.   *) # This is not an option, so the user has probably given explicit
  8449.      # arguments.
  8450.      ac_option=$1
  8451.      ac_need_defaults=false;;
  8452.   esac
  8453.  
  8454.   case $ac_option in
  8455.   # Handling of the options.
  8456. _ACEOF
  8457. cat >>$CONFIG_STATUS <<\_ACEOF
  8458.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  8459.     ac_cs_recheck=: ;;
  8460.   --version | --vers* | -V )
  8461.     echo "$ac_cs_version"; exit 0 ;;
  8462.   --he | --h)
  8463.     # Conflict between --help and --header
  8464.     { { echo "$as_me:$LINENO: error: ambiguous option: $1
  8465. Try \`$0 --help' for more information." >&5
  8466. echo "$as_me: error: ambiguous option: $1
  8467. Try \`$0 --help' for more information." >&2;}
  8468.    { (exit 1); exit 1; }; };;
  8469.   --help | --hel | -h )
  8470.     echo "$ac_cs_usage"; exit 0 ;;
  8471.   --debug | --d* | -d )
  8472.     debug=: ;;
  8473.   --file | --fil | --fi | --f )
  8474.     $ac_shift
  8475.     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  8476.     ac_need_defaults=false;;
  8477.   --header | --heade | --head | --hea )
  8478.     $ac_shift
  8479.     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  8480.     ac_need_defaults=false;;
  8481.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  8482.   | -silent | --silent | --silen | --sile | --sil | --si | --s)
  8483.     ac_cs_silent=: ;;
  8484.  
  8485.   # This is an error.
  8486.   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  8487. Try \`$0 --help' for more information." >&5
  8488. echo "$as_me: error: unrecognized option: $1
  8489. Try \`$0 --help' for more information." >&2;}
  8490.    { (exit 1); exit 1; }; } ;;
  8491.  
  8492.   *) ac_config_targets="$ac_config_targets $1" ;;
  8493.  
  8494.   esac
  8495.   shift
  8496. done
  8497.  
  8498. ac_configure_extra_args=
  8499.  
  8500. if $ac_cs_silent; then
  8501.   exec 6>/dev/null
  8502.   ac_configure_extra_args="$ac_configure_extra_args --silent"
  8503. fi
  8504.  
  8505. _ACEOF
  8506. cat >>$CONFIG_STATUS <<_ACEOF
  8507. if \$ac_cs_recheck; then
  8508.   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  8509.   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  8510. fi
  8511.  
  8512. _ACEOF
  8513.  
  8514. cat >>$CONFIG_STATUS <<_ACEOF
  8515. #
  8516. # INIT-COMMANDS section.
  8517. #
  8518.  
  8519. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  8520. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  8521.     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  8522.     # from automake.
  8523.     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  8524.     # Capture the value of LINGUAS because we need it to compute CATALOGS.
  8525.     LINGUAS="${LINGUAS-%UNSET%}"
  8526.  
  8527.  
  8528. _ACEOF
  8529.  
  8530.  
  8531.  
  8532. cat >>$CONFIG_STATUS <<\_ACEOF
  8533. for ac_config_target in $ac_config_targets
  8534. do
  8535.   case "$ac_config_target" in
  8536.   # Handling of arguments.
  8537.   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  8538.   "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  8539.   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  8540.   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  8541.   "src/gb/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gb/Makefile" ;;
  8542.   "src/gtk/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gtk/Makefile" ;;
  8543.   "src/gtk/images/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gtk/images/Makefile" ;;
  8544.   "src/i386/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/i386/Makefile" ;;
  8545.   "src/prof/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/prof/Makefile" ;;
  8546.   "src/sdl/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/sdl/Makefile" ;;
  8547.   "win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
  8548.   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  8549.   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  8550.   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  8551. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  8552.    { (exit 1); exit 1; }; };;
  8553.   esac
  8554. done
  8555.  
  8556. # If the user did not use the arguments to specify the items to instantiate,
  8557. # then the envvar interface is used.  Set only those that are not.
  8558. # We use the long form for the default assignment because of an extremely
  8559. # bizarre bug on SunOS 4.1.3.
  8560. if $ac_need_defaults; then
  8561.   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  8562.   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  8563. fi
  8564.  
  8565. # Have a temporary directory for convenience.  Make it in the build tree
  8566. # simply because there is no reason to put it here, and in addition,
  8567. # creating and moving files from /tmp can sometimes cause problems.
  8568. # Create a temporary directory, and hook for its removal unless debugging.
  8569. $debug ||
  8570. {
  8571.   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  8572.   trap '{ (exit 1); exit 1; }' 1 2 13 15
  8573. }
  8574.  
  8575. # Create a (secure) tmp directory for tmp files.
  8576.  
  8577. {
  8578.   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  8579.   test -n "$tmp" && test -d "$tmp"
  8580. }  ||
  8581. {
  8582.   tmp=./confstat$$-$RANDOM
  8583.   (umask 077 && mkdir $tmp)
  8584. } ||
  8585. {
  8586.    echo "$me: cannot create a temporary directory in ." >&2
  8587.    { (exit 1); exit 1; }
  8588. }
  8589.  
  8590. _ACEOF
  8591.  
  8592. cat >>$CONFIG_STATUS <<_ACEOF
  8593.  
  8594. #
  8595. # CONFIG_FILES section.
  8596. #
  8597.  
  8598. # No need to generate the scripts if there are no CONFIG_FILES.
  8599. # This happens for instance when ./config.status config.h
  8600. if test -n "\$CONFIG_FILES"; then
  8601.   # Protect against being on the right side of a sed subst in config.status.
  8602.   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  8603.    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  8604. s,@SHELL@,$SHELL,;t t
  8605. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  8606. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  8607. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  8608. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  8609. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  8610. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  8611. s,@exec_prefix@,$exec_prefix,;t t
  8612. s,@prefix@,$prefix,;t t
  8613. s,@program_transform_name@,$program_transform_name,;t t
  8614. s,@bindir@,$bindir,;t t
  8615. s,@sbindir@,$sbindir,;t t
  8616. s,@libexecdir@,$libexecdir,;t t
  8617. s,@datadir@,$datadir,;t t
  8618. s,@sysconfdir@,$sysconfdir,;t t
  8619. s,@sharedstatedir@,$sharedstatedir,;t t
  8620. s,@localstatedir@,$localstatedir,;t t
  8621. s,@libdir@,$libdir,;t t
  8622. s,@includedir@,$includedir,;t t
  8623. s,@oldincludedir@,$oldincludedir,;t t
  8624. s,@infodir@,$infodir,;t t
  8625. s,@mandir@,$mandir,;t t
  8626. s,@build_alias@,$build_alias,;t t
  8627. s,@host_alias@,$host_alias,;t t
  8628. s,@target_alias@,$target_alias,;t t
  8629. s,@DEFS@,$DEFS,;t t
  8630. s,@ECHO_C@,$ECHO_C,;t t
  8631. s,@ECHO_N@,$ECHO_N,;t t
  8632. s,@ECHO_T@,$ECHO_T,;t t
  8633. s,@LIBS@,$LIBS,;t t
  8634. s,@build@,$build,;t t
  8635. s,@build_cpu@,$build_cpu,;t t
  8636. s,@build_vendor@,$build_vendor,;t t
  8637. s,@build_os@,$build_os,;t t
  8638. s,@host@,$host,;t t
  8639. s,@host_cpu@,$host_cpu,;t t
  8640. s,@host_vendor@,$host_vendor,;t t
  8641. s,@host_os@,$host_os,;t t
  8642. s,@target@,$target,;t t
  8643. s,@target_cpu@,$target_cpu,;t t
  8644. s,@target_vendor@,$target_vendor,;t t
  8645. s,@target_os@,$target_os,;t t
  8646. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  8647. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  8648. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  8649. s,@CYGPATH_W@,$CYGPATH_W,;t t
  8650. s,@PACKAGE@,$PACKAGE,;t t
  8651. s,@VERSION@,$VERSION,;t t
  8652. s,@ACLOCAL@,$ACLOCAL,;t t
  8653. s,@AUTOCONF@,$AUTOCONF,;t t
  8654. s,@AUTOMAKE@,$AUTOMAKE,;t t
  8655. s,@AUTOHEADER@,$AUTOHEADER,;t t
  8656. s,@MAKEINFO@,$MAKEINFO,;t t
  8657. s,@AMTAR@,$AMTAR,;t t
  8658. s,@install_sh@,$install_sh,;t t
  8659. s,@STRIP@,$STRIP,;t t
  8660. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  8661. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  8662. s,@AWK@,$AWK,;t t
  8663. s,@SET_MAKE@,$SET_MAKE,;t t
  8664. s,@am__leading_dot@,$am__leading_dot,;t t
  8665. s,@CC@,$CC,;t t
  8666. s,@CFLAGS@,$CFLAGS,;t t
  8667. s,@LDFLAGS@,$LDFLAGS,;t t
  8668. s,@CPPFLAGS@,$CPPFLAGS,;t t
  8669. s,@ac_ct_CC@,$ac_ct_CC,;t t
  8670. s,@EXEEXT@,$EXEEXT,;t t
  8671. s,@OBJEXT@,$OBJEXT,;t t
  8672. s,@DEPDIR@,$DEPDIR,;t t
  8673. s,@am__include@,$am__include,;t t
  8674. s,@am__quote@,$am__quote,;t t
  8675. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  8676. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  8677. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  8678. s,@CCDEPMODE@,$CCDEPMODE,;t t
  8679. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  8680. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  8681. s,@YACC@,$YACC,;t t
  8682. s,@LEX@,$LEX,;t t
  8683. s,@LEXLIB@,$LEXLIB,;t t
  8684. s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
  8685. s,@CXX@,$CXX,;t t
  8686. s,@CXXFLAGS@,$CXXFLAGS,;t t
  8687. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  8688. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  8689. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  8690. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  8691. s,@RANLIB@,$RANLIB,;t t
  8692. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  8693. s,@NASM@,$NASM,;t t
  8694. s,@CPP@,$CPP,;t t
  8695. s,@EGREP@,$EGREP,;t t
  8696. s,@SDL_CONFIG@,$SDL_CONFIG,;t t
  8697. s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
  8698. s,@SDL_LIBS@,$SDL_LIBS,;t t
  8699. s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
  8700. s,@USE_NLS@,$USE_NLS,;t t
  8701. s,@MSGFMT@,$MSGFMT,;t t
  8702. s,@GMSGFMT@,$GMSGFMT,;t t
  8703. s,@XGETTEXT@,$XGETTEXT,;t t
  8704. s,@MSGMERGE@,$MSGMERGE,;t t
  8705. s,@LIBICONV@,$LIBICONV,;t t
  8706. s,@LTLIBICONV@,$LTLIBICONV,;t t
  8707. s,@INTLLIBS@,$INTLLIBS,;t t
  8708. s,@LIBINTL@,$LIBINTL,;t t
  8709. s,@LTLIBINTL@,$LTLIBINTL,;t t
  8710. s,@POSUB@,$POSUB,;t t
  8711. s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
  8712. s,@PKG_CONFIG@,$PKG_CONFIG,;t t
  8713. s,@GTKMM_CFLAGS@,$GTKMM_CFLAGS,;t t
  8714. s,@GTKMM_LIBS@,$GTKMM_LIBS,;t t
  8715. s,@GTKMM_CPPFLAGS@,$GTKMM_CPPFLAGS,;t t
  8716. s,@VBA_EXTRA@,$VBA_EXTRA,;t t
  8717. s,@VBA_SRC_EXTRA@,$VBA_SRC_EXTRA,;t t
  8718. s,@VBA_LIBS@,$VBA_LIBS,;t t
  8719. s,@LIBOBJS@,$LIBOBJS,;t t
  8720. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  8721. CEOF
  8722.  
  8723. _ACEOF
  8724.  
  8725.   cat >>$CONFIG_STATUS <<\_ACEOF
  8726.   # Split the substitutions into bite-sized pieces for seds with
  8727.   # small command number limits, like on Digital OSF/1 and HP-UX.
  8728.   ac_max_sed_lines=48
  8729.   ac_sed_frag=1 # Number of current file.
  8730.   ac_beg=1 # First line for current file.
  8731.   ac_end=$ac_max_sed_lines # Line after last line for current file.
  8732.   ac_more_lines=:
  8733.   ac_sed_cmds=
  8734.   while $ac_more_lines; do
  8735.     if test $ac_beg -gt 1; then
  8736.       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  8737.     else
  8738.       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  8739.     fi
  8740.     if test ! -s $tmp/subs.frag; then
  8741.       ac_more_lines=false
  8742.     else
  8743.       # The purpose of the label and of the branching condition is to
  8744.       # speed up the sed processing (if there are no `@' at all, there
  8745.       # is no need to browse any of the substitutions).
  8746.       # These are the two extra sed commands mentioned above.
  8747.       (echo ':t
  8748.   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  8749.       if test -z "$ac_sed_cmds"; then
  8750.     ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  8751.       else
  8752.     ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  8753.       fi
  8754.       ac_sed_frag=`expr $ac_sed_frag + 1`
  8755.       ac_beg=$ac_end
  8756.       ac_end=`expr $ac_end + $ac_max_sed_lines`
  8757.     fi
  8758.   done
  8759.   if test -z "$ac_sed_cmds"; then
  8760.     ac_sed_cmds=cat
  8761.   fi
  8762. fi # test -n "$CONFIG_FILES"
  8763.  
  8764. _ACEOF
  8765. cat >>$CONFIG_STATUS <<\_ACEOF
  8766. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  8767.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  8768.   case $ac_file in
  8769.   - | *:- | *:-:* ) # input from stdin
  8770.     cat >$tmp/stdin
  8771.     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  8772.     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  8773.   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  8774.     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  8775.   * )   ac_file_in=$ac_file.in ;;
  8776.   esac
  8777.  
  8778.   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  8779.   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  8780. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8781.      X"$ac_file" : 'X\(//\)[^/]' \| \
  8782.      X"$ac_file" : 'X\(//\)$' \| \
  8783.      X"$ac_file" : 'X\(/\)' \| \
  8784.      .     : '\(.\)' 2>/dev/null ||
  8785. echo X"$ac_file" |
  8786.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8787.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8788.         /^X\(\/\/\)$/{ s//\1/; q; }
  8789.         /^X\(\/\).*/{ s//\1/; q; }
  8790.         s/.*/./; q'`
  8791.   { if $as_mkdir_p; then
  8792.     mkdir -p "$ac_dir"
  8793.   else
  8794.     as_dir="$ac_dir"
  8795.     as_dirs=
  8796.     while test ! -d "$as_dir"; do
  8797.       as_dirs="$as_dir $as_dirs"
  8798.       as_dir=`(dirname "$as_dir") 2>/dev/null ||
  8799. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8800.      X"$as_dir" : 'X\(//\)[^/]' \| \
  8801.      X"$as_dir" : 'X\(//\)$' \| \
  8802.      X"$as_dir" : 'X\(/\)' \| \
  8803.      .     : '\(.\)' 2>/dev/null ||
  8804. echo X"$as_dir" |
  8805.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8806.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8807.         /^X\(\/\/\)$/{ s//\1/; q; }
  8808.         /^X\(\/\).*/{ s//\1/; q; }
  8809.         s/.*/./; q'`
  8810.     done
  8811.     test ! -n "$as_dirs" || mkdir $as_dirs
  8812.   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  8813. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  8814.    { (exit 1); exit 1; }; }; }
  8815.  
  8816.   ac_builddir=.
  8817.  
  8818. if test "$ac_dir" != .; then
  8819.   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  8820.   # A "../" for each directory in $ac_dir_suffix.
  8821.   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  8822. else
  8823.   ac_dir_suffix= ac_top_builddir=
  8824. fi
  8825.  
  8826. case $srcdir in
  8827.   .)  # No --srcdir option.  We are building in place.
  8828.     ac_srcdir=.
  8829.     if test -z "$ac_top_builddir"; then
  8830.        ac_top_srcdir=.
  8831.     else
  8832.        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  8833.     fi ;;
  8834.   [\\/]* | ?:[\\/]* )  # Absolute path.
  8835.     ac_srcdir=$srcdir$ac_dir_suffix;
  8836.     ac_top_srcdir=$srcdir ;;
  8837.   *) # Relative path.
  8838.     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  8839.     ac_top_srcdir=$ac_top_builddir$srcdir ;;
  8840. esac
  8841.  
  8842. # Do not use `cd foo && pwd` to compute absolute paths, because
  8843. # the directories may not exist.
  8844. case `pwd` in
  8845. .) ac_abs_builddir="$ac_dir";;
  8846. *)
  8847.   case "$ac_dir" in
  8848.   .) ac_abs_builddir=`pwd`;;
  8849.   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  8850.   *) ac_abs_builddir=`pwd`/"$ac_dir";;
  8851.   esac;;
  8852. esac
  8853. case $ac_abs_builddir in
  8854. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  8855. *)
  8856.   case ${ac_top_builddir}. in
  8857.   .) ac_abs_top_builddir=$ac_abs_builddir;;
  8858.   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  8859.   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  8860.   esac;;
  8861. esac
  8862. case $ac_abs_builddir in
  8863. .) ac_abs_srcdir=$ac_srcdir;;
  8864. *)
  8865.   case $ac_srcdir in
  8866.   .) ac_abs_srcdir=$ac_abs_builddir;;
  8867.   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  8868.   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  8869.   esac;;
  8870. esac
  8871. case $ac_abs_builddir in
  8872. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  8873. *)
  8874.   case $ac_top_srcdir in
  8875.   .) ac_abs_top_srcdir=$ac_abs_builddir;;
  8876.   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  8877.   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  8878.   esac;;
  8879. esac
  8880.  
  8881.  
  8882.   case $INSTALL in
  8883.   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  8884.   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  8885.   esac
  8886.  
  8887.   # Let's still pretend it is `configure' which instantiates (i.e., don't
  8888.   # use $as_me), people would be surprised to read:
  8889.   #    /* config.h.  Generated by config.status.  */
  8890.   if test x"$ac_file" = x-; then
  8891.     configure_input=
  8892.   else
  8893.     configure_input="$ac_file.  "
  8894.   fi
  8895.   configure_input=$configure_input"Generated from `echo $ac_file_in |
  8896.                      sed 's,.*/,,'` by configure."
  8897.  
  8898.   # First look for the input files in the build tree, otherwise in the
  8899.   # src tree.
  8900.   ac_file_inputs=`IFS=:
  8901.     for f in $ac_file_in; do
  8902.       case $f in
  8903.       -) echo $tmp/stdin ;;
  8904.       [\\/$]*)
  8905.      # Absolute (can't be DOS-style, as IFS=:)
  8906.      test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  8907. echo "$as_me: error: cannot find input file: $f" >&2;}
  8908.    { (exit 1); exit 1; }; }
  8909.      echo "$f";;
  8910.       *) # Relative
  8911.      if test -f "$f"; then
  8912.        # Build tree
  8913.        echo "$f"
  8914.      elif test -f "$srcdir/$f"; then
  8915.        # Source tree
  8916.        echo "$srcdir/$f"
  8917.      else
  8918.        # /dev/null tree
  8919.        { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  8920. echo "$as_me: error: cannot find input file: $f" >&2;}
  8921.    { (exit 1); exit 1; }; }
  8922.      fi;;
  8923.       esac
  8924.     done` || { (exit 1); exit 1; }
  8925.  
  8926.   if test x"$ac_file" != x-; then
  8927.     { echo "$as_me:$LINENO: creating $ac_file" >&5
  8928. echo "$as_me: creating $ac_file" >&6;}
  8929.     rm -f "$ac_file"
  8930.   fi
  8931. _ACEOF
  8932. cat >>$CONFIG_STATUS <<_ACEOF
  8933.   sed "$ac_vpsub
  8934. $extrasub
  8935. _ACEOF
  8936. cat >>$CONFIG_STATUS <<\_ACEOF
  8937. :t
  8938. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  8939. s,@configure_input@,$configure_input,;t t
  8940. s,@srcdir@,$ac_srcdir,;t t
  8941. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  8942. s,@top_srcdir@,$ac_top_srcdir,;t t
  8943. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  8944. s,@builddir@,$ac_builddir,;t t
  8945. s,@abs_builddir@,$ac_abs_builddir,;t t
  8946. s,@top_builddir@,$ac_top_builddir,;t t
  8947. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  8948. s,@INSTALL@,$ac_INSTALL,;t t
  8949. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  8950.   rm -f $tmp/stdin
  8951.   if test x"$ac_file" != x-; then
  8952.     mv $tmp/out $ac_file
  8953.   else
  8954.     cat $tmp/out
  8955.     rm -f $tmp/out
  8956.   fi
  8957.  
  8958. done
  8959. _ACEOF
  8960. cat >>$CONFIG_STATUS <<\_ACEOF
  8961.  
  8962. #
  8963. # CONFIG_COMMANDS section.
  8964. #
  8965. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  8966.   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  8967.   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  8968.   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  8969. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8970.      X"$ac_dest" : 'X\(//\)[^/]' \| \
  8971.      X"$ac_dest" : 'X\(//\)$' \| \
  8972.      X"$ac_dest" : 'X\(/\)' \| \
  8973.      .     : '\(.\)' 2>/dev/null ||
  8974. echo X"$ac_dest" |
  8975.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8976.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8977.         /^X\(\/\/\)$/{ s//\1/; q; }
  8978.         /^X\(\/\).*/{ s//\1/; q; }
  8979.         s/.*/./; q'`
  8980.   { if $as_mkdir_p; then
  8981.     mkdir -p "$ac_dir"
  8982.   else
  8983.     as_dir="$ac_dir"
  8984.     as_dirs=
  8985.     while test ! -d "$as_dir"; do
  8986.       as_dirs="$as_dir $as_dirs"
  8987.       as_dir=`(dirname "$as_dir") 2>/dev/null ||
  8988. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8989.      X"$as_dir" : 'X\(//\)[^/]' \| \
  8990.      X"$as_dir" : 'X\(//\)$' \| \
  8991.      X"$as_dir" : 'X\(/\)' \| \
  8992.      .     : '\(.\)' 2>/dev/null ||
  8993. echo X"$as_dir" |
  8994.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8995.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8996.         /^X\(\/\/\)$/{ s//\1/; q; }
  8997.         /^X\(\/\).*/{ s//\1/; q; }
  8998.         s/.*/./; q'`
  8999.     done
  9000.     test ! -n "$as_dirs" || mkdir $as_dirs
  9001.   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  9002. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  9003.    { (exit 1); exit 1; }; }; }
  9004.  
  9005.   ac_builddir=.
  9006.  
  9007. if test "$ac_dir" != .; then
  9008.   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  9009.   # A "../" for each directory in $ac_dir_suffix.
  9010.   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  9011. else
  9012.   ac_dir_suffix= ac_top_builddir=
  9013. fi
  9014.  
  9015. case $srcdir in
  9016.   .)  # No --srcdir option.  We are building in place.
  9017.     ac_srcdir=.
  9018.     if test -z "$ac_top_builddir"; then
  9019.        ac_top_srcdir=.
  9020.     else
  9021.        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  9022.     fi ;;
  9023.   [\\/]* | ?:[\\/]* )  # Absolute path.
  9024.     ac_srcdir=$srcdir$ac_dir_suffix;
  9025.     ac_top_srcdir=$srcdir ;;
  9026.   *) # Relative path.
  9027.     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  9028.     ac_top_srcdir=$ac_top_builddir$srcdir ;;
  9029. esac
  9030.  
  9031. # Do not use `cd foo && pwd` to compute absolute paths, because
  9032. # the directories may not exist.
  9033. case `pwd` in
  9034. .) ac_abs_builddir="$ac_dir";;
  9035. *)
  9036.   case "$ac_dir" in
  9037.   .) ac_abs_builddir=`pwd`;;
  9038.   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  9039.   *) ac_abs_builddir=`pwd`/"$ac_dir";;
  9040.   esac;;
  9041. esac
  9042. case $ac_abs_builddir in
  9043. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  9044. *)
  9045.   case ${ac_top_builddir}. in
  9046.   .) ac_abs_top_builddir=$ac_abs_builddir;;
  9047.   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  9048.   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  9049.   esac;;
  9050. esac
  9051. case $ac_abs_builddir in
  9052. .) ac_abs_srcdir=$ac_srcdir;;
  9053. *)
  9054.   case $ac_srcdir in
  9055.   .) ac_abs_srcdir=$ac_abs_builddir;;
  9056.   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  9057.   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  9058.   esac;;
  9059. esac
  9060. case $ac_abs_builddir in
  9061. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  9062. *)
  9063.   case $ac_top_srcdir in
  9064.   .) ac_abs_top_srcdir=$ac_abs_builddir;;
  9065.   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  9066.   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  9067.   esac;;
  9068. esac
  9069.  
  9070.  
  9071.   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  9072. echo "$as_me: executing $ac_dest commands" >&6;}
  9073.   case $ac_dest in
  9074.     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  9075.   # Strip MF so we end up with the name of the file.
  9076.   mf=`echo "$mf" | sed -e 's/:.*$//'`
  9077.   # Check whether this is an Automake generated Makefile or not.
  9078.   # We used to match only the files named `Makefile.in', but
  9079.   # some people rename them; so instead we look at the file content.
  9080.   # Grep'ing the first line is not enough: some people post-process
  9081.   # each Makefile.in and add a new line on top of each file to say so.
  9082.   # So let's grep whole file.
  9083.   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  9084.     dirpart=`(dirname "$mf") 2>/dev/null ||
  9085. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9086.      X"$mf" : 'X\(//\)[^/]' \| \
  9087.      X"$mf" : 'X\(//\)$' \| \
  9088.      X"$mf" : 'X\(/\)' \| \
  9089.      .     : '\(.\)' 2>/dev/null ||
  9090. echo X"$mf" |
  9091.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9092.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9093.         /^X\(\/\/\)$/{ s//\1/; q; }
  9094.         /^X\(\/\).*/{ s//\1/; q; }
  9095.         s/.*/./; q'`
  9096.   else
  9097.     continue
  9098.   fi
  9099.   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
  9100.   # Extract the definition of DEP_FILES from the Makefile without
  9101.   # running `make'.
  9102.   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
  9103.   test -z "$DEPDIR" && continue
  9104.   # When using ansi2knr, U may be empty or an underscore; expand it
  9105.   U=`sed -n -e '/^U = / s///p' < "$mf"`
  9106.   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
  9107.   # We invoke sed twice because it is the simplest approach to
  9108.   # changing $(DEPDIR) to its actual value in the expansion.
  9109.   for file in `sed -n -e '
  9110.     /^DEP_FILES = .*\\\\$/ {
  9111.       s/^DEP_FILES = //
  9112.       :loop
  9113.     s/\\\\$//
  9114.     p
  9115.     n
  9116.     /\\\\$/ b loop
  9117.       p
  9118.     }
  9119.     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
  9120.        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  9121.     # Make sure the directory exists.
  9122.     test -f "$dirpart/$file" && continue
  9123.     fdir=`(dirname "$file") 2>/dev/null ||
  9124. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9125.      X"$file" : 'X\(//\)[^/]' \| \
  9126.      X"$file" : 'X\(//\)$' \| \
  9127.      X"$file" : 'X\(/\)' \| \
  9128.      .     : '\(.\)' 2>/dev/null ||
  9129. echo X"$file" |
  9130.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9131.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9132.         /^X\(\/\/\)$/{ s//\1/; q; }
  9133.         /^X\(\/\).*/{ s//\1/; q; }
  9134.         s/.*/./; q'`
  9135.     { if $as_mkdir_p; then
  9136.     mkdir -p $dirpart/$fdir
  9137.   else
  9138.     as_dir=$dirpart/$fdir
  9139.     as_dirs=
  9140.     while test ! -d "$as_dir"; do
  9141.       as_dirs="$as_dir $as_dirs"
  9142.       as_dir=`(dirname "$as_dir") 2>/dev/null ||
  9143. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9144.      X"$as_dir" : 'X\(//\)[^/]' \| \
  9145.      X"$as_dir" : 'X\(//\)$' \| \
  9146.      X"$as_dir" : 'X\(/\)' \| \
  9147.      .     : '\(.\)' 2>/dev/null ||
  9148. echo X"$as_dir" |
  9149.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9150.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9151.         /^X\(\/\/\)$/{ s//\1/; q; }
  9152.         /^X\(\/\).*/{ s//\1/; q; }
  9153.         s/.*/./; q'`
  9154.     done
  9155.     test ! -n "$as_dirs" || mkdir $as_dirs
  9156.   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  9157. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  9158.    { (exit 1); exit 1; }; }; }
  9159.  
  9160.     # echo "creating $dirpart/$file"
  9161.     echo '# dummy' > "$dirpart/$file"
  9162.   done
  9163. done
  9164.  ;;
  9165.     default-1 )
  9166.     for ac_file in $CONFIG_FILES; do
  9167.       # Support "outfile[:infile[:infile...]]"
  9168.       case "$ac_file" in
  9169.         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  9170.       esac
  9171.       # PO directories have a Makefile.in generated from Makefile.in.in.
  9172.       case "$ac_file" in */Makefile.in)
  9173.         # Adjust a relative srcdir.
  9174.         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  9175.         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  9176.         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  9177.         # In autoconf-2.13 it is called $ac_given_srcdir.
  9178.         # In autoconf-2.50 it is called $srcdir.
  9179.         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  9180.         case "$ac_given_srcdir" in
  9181.           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  9182.           /*) top_srcdir="$ac_given_srcdir" ;;
  9183.           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
  9184.         esac
  9185.         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  9186.           rm -f "$ac_dir/POTFILES"
  9187.           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  9188.           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[     ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  9189.           POMAKEFILEDEPS="POTFILES.in"
  9190.           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  9191.           # on $ac_dir but don't depend on user-specified configuration
  9192.           # parameters.
  9193.           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  9194.             # The LINGUAS file contains the set of available languages.
  9195.             if test -n "$OBSOLETE_ALL_LINGUAS"; then
  9196.               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  9197.             fi
  9198.             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  9199.             # Hide the ALL_LINGUAS assigment from automake.
  9200.             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  9201.             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  9202.           else
  9203.             # The set of available languages was given in configure.in.
  9204.             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  9205.           fi
  9206.           # Compute POFILES
  9207.           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  9208.           # Compute UPDATEPOFILES
  9209.           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  9210.           # Compute DUMMYPOFILES
  9211.           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  9212.           # Compute GMOFILES
  9213.           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  9214.           case "$ac_given_srcdir" in
  9215.             .) srcdirpre= ;;
  9216.             *) srcdirpre='$(srcdir)/' ;;
  9217.           esac
  9218.           POFILES=
  9219.           UPDATEPOFILES=
  9220.           DUMMYPOFILES=
  9221.           GMOFILES=
  9222.           for lang in $ALL_LINGUAS; do
  9223.             POFILES="$POFILES $srcdirpre$lang.po"
  9224.             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  9225.             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  9226.             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  9227.           done
  9228.           # CATALOGS depends on both $ac_dir and the user's LINGUAS
  9229.           # environment variable.
  9230.           INST_LINGUAS=
  9231.           if test -n "$ALL_LINGUAS"; then
  9232.             for presentlang in $ALL_LINGUAS; do
  9233.               useit=no
  9234.               if test "%UNSET%" != "$LINGUAS"; then
  9235.                 desiredlanguages="$LINGUAS"
  9236.               else
  9237.                 desiredlanguages="$ALL_LINGUAS"
  9238.               fi
  9239.               for desiredlang in $desiredlanguages; do
  9240.                 # Use the presentlang catalog if desiredlang is
  9241.                 #   a. equal to presentlang, or
  9242.                 #   b. a variant of presentlang (because in this case,
  9243.                 #      presentlang can be used as a fallback for messages
  9244.                 #      which are not translated in the desiredlang catalog).
  9245.                 case "$desiredlang" in
  9246.                   "$presentlang"*) useit=yes;;
  9247.                 esac
  9248.               done
  9249.               if test $useit = yes; then
  9250.                 INST_LINGUAS="$INST_LINGUAS $presentlang"
  9251.               fi
  9252.             done
  9253.           fi
  9254.           CATALOGS=
  9255.           if test -n "$INST_LINGUAS"; then
  9256.             for lang in $INST_LINGUAS; do
  9257.               CATALOGS="$CATALOGS $lang.gmo"
  9258.             done
  9259.           fi
  9260.           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  9261.           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
  9262.           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  9263.             if test -f "$f"; then
  9264.               case "$f" in
  9265.                 *.orig | *.bak | *~) ;;
  9266.                 *) cat "$f" >> "$ac_dir/Makefile" ;;
  9267.               esac
  9268.             fi
  9269.           done
  9270.         fi
  9271.         ;;
  9272.       esac
  9273.     done ;;
  9274.   esac
  9275. done
  9276. _ACEOF
  9277.  
  9278. cat >>$CONFIG_STATUS <<\_ACEOF
  9279.  
  9280. { (exit 0); exit 0; }
  9281. _ACEOF
  9282. chmod +x $CONFIG_STATUS
  9283. ac_clean_files=$ac_clean_files_save
  9284.  
  9285.  
  9286. # configure is writing to config.log, and then calls config.status.
  9287. # config.status does its own redirection, appending to config.log.
  9288. # Unfortunately, on DOS this fails, as config.log is still kept open
  9289. # by configure, so config.status won't be able to write to it; its
  9290. # output is simply discarded.  So we exec the FD to /dev/null,
  9291. # effectively closing config.log, so it can be properly (re)opened and
  9292. # appended to by config.status.  When coming back to configure, we
  9293. # need to make the FD available again.
  9294. if test "$no_create" != yes; then
  9295.   ac_cs_success=:
  9296.   ac_config_status_args=
  9297.   test "$silent" = yes &&
  9298.     ac_config_status_args="$ac_config_status_args --quiet"
  9299.   exec 5>/dev/null
  9300.   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  9301.   exec 5>>config.log
  9302.   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  9303.   # would make configure fail if this is the last instruction.
  9304.   $ac_cs_success || { (exit 1); exit 1; }
  9305. fi
  9306.  
  9307.