configure revision 8b6d6341
11abf7346Smrg#! /bin/sh
21abf7346Smrg# Guess values for system-dependent variables and create Makefiles.
38b6d6341Smrg# Generated by GNU Autoconf 2.63 for xman 1.1.0.
41abf7346Smrg#
51abf7346Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
61abf7346Smrg#
71abf7346Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
88b6d6341Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
91abf7346Smrg# This configure script is free software; the Free Software Foundation
101abf7346Smrg# gives unlimited permission to copy, distribute and modify it.
111abf7346Smrg## --------------------- ##
121abf7346Smrg## M4sh Initialization.  ##
131abf7346Smrg## --------------------- ##
141abf7346Smrg
151abf7346Smrg# Be more Bourne compatible
161abf7346SmrgDUALCASE=1; export DUALCASE # for MKS sh
171abf7346Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
181abf7346Smrg  emulate sh
191abf7346Smrg  NULLCMD=:
208b6d6341Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
211abf7346Smrg  # is contrary to our usage.  Disable this feature.
221abf7346Smrg  alias -g '${1+"$@"}'='"$@"'
231abf7346Smrg  setopt NO_GLOB_SUBST
241abf7346Smrgelse
251abf7346Smrg  case `(set -o) 2>/dev/null` in
261abf7346Smrg  *posix*) set -o posix ;;
271abf7346Smrgesac
281abf7346Smrg
291abf7346Smrgfi
301abf7346Smrg
311abf7346Smrg
321abf7346Smrg
331abf7346Smrg
341abf7346Smrg# PATH needs CR
351abf7346Smrg# Avoid depending upon Character Ranges.
361abf7346Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
371abf7346Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
381abf7346Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
391abf7346Smrgas_cr_digits='0123456789'
401abf7346Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
411abf7346Smrg
428b6d6341Smrgas_nl='
438b6d6341Smrg'
448b6d6341Smrgexport as_nl
458b6d6341Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
468b6d6341Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
478b6d6341Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
488b6d6341Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
498b6d6341Smrgif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
508b6d6341Smrg  as_echo='printf %s\n'
518b6d6341Smrg  as_echo_n='printf %s'
528b6d6341Smrgelse
538b6d6341Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
548b6d6341Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
558b6d6341Smrg    as_echo_n='/usr/ucb/echo -n'
561abf7346Smrg  else
578b6d6341Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
588b6d6341Smrg    as_echo_n_body='eval
598b6d6341Smrg      arg=$1;
608b6d6341Smrg      case $arg in
618b6d6341Smrg      *"$as_nl"*)
628b6d6341Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
638b6d6341Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
648b6d6341Smrg      esac;
658b6d6341Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
668b6d6341Smrg    '
678b6d6341Smrg    export as_echo_n_body
688b6d6341Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
691abf7346Smrg  fi
708b6d6341Smrg  export as_echo_body
718b6d6341Smrg  as_echo='sh -c $as_echo_body as_echo'
728b6d6341Smrgfi
738b6d6341Smrg
748b6d6341Smrg# The user is always right.
758b6d6341Smrgif test "${PATH_SEPARATOR+set}" != set; then
768b6d6341Smrg  PATH_SEPARATOR=:
778b6d6341Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
788b6d6341Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
798b6d6341Smrg      PATH_SEPARATOR=';'
808b6d6341Smrg  }
811abf7346Smrgfi
821abf7346Smrg
831abf7346Smrg# Support unset when possible.
841abf7346Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
851abf7346Smrg  as_unset=unset
861abf7346Smrgelse
871abf7346Smrg  as_unset=false
881abf7346Smrgfi
891abf7346Smrg
901abf7346Smrg
911abf7346Smrg# IFS
921abf7346Smrg# We need space, tab and new line, in precisely that order.  Quoting is
931abf7346Smrg# there to prevent editors from complaining about space-tab.
941abf7346Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
951abf7346Smrg# splitting by setting IFS to empty value.)
961abf7346SmrgIFS=" ""	$as_nl"
971abf7346Smrg
981abf7346Smrg# Find who we are.  Look in the path if we contain no directory separator.
991abf7346Smrgcase $0 in
1001abf7346Smrg  *[\\/]* ) as_myself=$0 ;;
1011abf7346Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1021abf7346Smrgfor as_dir in $PATH
1031abf7346Smrgdo
1041abf7346Smrg  IFS=$as_save_IFS
1051abf7346Smrg  test -z "$as_dir" && as_dir=.
1061abf7346Smrg  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1071abf7346Smrgdone
1081abf7346SmrgIFS=$as_save_IFS
1091abf7346Smrg
1101abf7346Smrg     ;;
1111abf7346Smrgesac
1121abf7346Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
1131abf7346Smrg# in which case we are not to be found in the path.
1141abf7346Smrgif test "x$as_myself" = x; then
1151abf7346Smrg  as_myself=$0
1161abf7346Smrgfi
1171abf7346Smrgif test ! -f "$as_myself"; then
1188b6d6341Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1191abf7346Smrg  { (exit 1); exit 1; }
1201abf7346Smrgfi
1211abf7346Smrg
1221abf7346Smrg# Work around bugs in pre-3.0 UWIN ksh.
1231abf7346Smrgfor as_var in ENV MAIL MAILPATH
1241abf7346Smrgdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
1251abf7346Smrgdone
1261abf7346SmrgPS1='$ '
1271abf7346SmrgPS2='> '
1281abf7346SmrgPS4='+ '
1291abf7346Smrg
1301abf7346Smrg# NLS nuisances.
1318b6d6341SmrgLC_ALL=C
1328b6d6341Smrgexport LC_ALL
1338b6d6341SmrgLANGUAGE=C
1348b6d6341Smrgexport LANGUAGE
1351abf7346Smrg
1361abf7346Smrg# Required to use basename.
1371abf7346Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
1381abf7346Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
1391abf7346Smrg  as_expr=expr
1401abf7346Smrgelse
1411abf7346Smrg  as_expr=false
1421abf7346Smrgfi
1431abf7346Smrg
1441abf7346Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1451abf7346Smrg  as_basename=basename
1461abf7346Smrgelse
1471abf7346Smrg  as_basename=false
1481abf7346Smrgfi
1491abf7346Smrg
1501abf7346Smrg
1511abf7346Smrg# Name of the executable.
1521abf7346Smrgas_me=`$as_basename -- "$0" ||
1531abf7346Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1541abf7346Smrg	 X"$0" : 'X\(//\)$' \| \
1551abf7346Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1568b6d6341Smrg$as_echo X/"$0" |
1571abf7346Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
1581abf7346Smrg	    s//\1/
1591abf7346Smrg	    q
1601abf7346Smrg	  }
1611abf7346Smrg	  /^X\/\(\/\/\)$/{
1621abf7346Smrg	    s//\1/
1631abf7346Smrg	    q
1641abf7346Smrg	  }
1651abf7346Smrg	  /^X\/\(\/\).*/{
1661abf7346Smrg	    s//\1/
1671abf7346Smrg	    q
1681abf7346Smrg	  }
1691abf7346Smrg	  s/.*/./; q'`
1701abf7346Smrg
1711abf7346Smrg# CDPATH.
1721abf7346Smrg$as_unset CDPATH
1731abf7346Smrg
1741abf7346Smrg
1751abf7346Smrgif test "x$CONFIG_SHELL" = x; then
1761abf7346Smrg  if (eval ":") 2>/dev/null; then
1771abf7346Smrg  as_have_required=yes
1781abf7346Smrgelse
1791abf7346Smrg  as_have_required=no
1801abf7346Smrgfi
1811abf7346Smrg
1828b6d6341Smrg  if test $as_have_required = yes &&	 (eval ":
1831abf7346Smrg(as_func_return () {
1841abf7346Smrg  (exit \$1)
1851abf7346Smrg}
1861abf7346Smrgas_func_success () {
1871abf7346Smrg  as_func_return 0
1881abf7346Smrg}
1891abf7346Smrgas_func_failure () {
1901abf7346Smrg  as_func_return 1
1911abf7346Smrg}
1921abf7346Smrgas_func_ret_success () {
1931abf7346Smrg  return 0
1941abf7346Smrg}
1951abf7346Smrgas_func_ret_failure () {
1961abf7346Smrg  return 1
1971abf7346Smrg}
1981abf7346Smrg
1991abf7346Smrgexitcode=0
2001abf7346Smrgif as_func_success; then
2011abf7346Smrg  :
2021abf7346Smrgelse
2031abf7346Smrg  exitcode=1
2041abf7346Smrg  echo as_func_success failed.
2051abf7346Smrgfi
2061abf7346Smrg
2071abf7346Smrgif as_func_failure; then
2081abf7346Smrg  exitcode=1
2091abf7346Smrg  echo as_func_failure succeeded.
2101abf7346Smrgfi
2111abf7346Smrg
2121abf7346Smrgif as_func_ret_success; then
2131abf7346Smrg  :
2141abf7346Smrgelse
2151abf7346Smrg  exitcode=1
2161abf7346Smrg  echo as_func_ret_success failed.
2171abf7346Smrgfi
2181abf7346Smrg
2191abf7346Smrgif as_func_ret_failure; then
2201abf7346Smrg  exitcode=1
2211abf7346Smrg  echo as_func_ret_failure succeeded.
2221abf7346Smrgfi
2231abf7346Smrg
2241abf7346Smrgif ( set x; as_func_ret_success y && test x = \"\$1\" ); then
2251abf7346Smrg  :
2261abf7346Smrgelse
2271abf7346Smrg  exitcode=1
2281abf7346Smrg  echo positional parameters were not saved.
2291abf7346Smrgfi
2301abf7346Smrg
2311abf7346Smrgtest \$exitcode = 0) || { (exit 1); exit 1; }
2321abf7346Smrg
2331abf7346Smrg(
2341abf7346Smrg  as_lineno_1=\$LINENO
2351abf7346Smrg  as_lineno_2=\$LINENO
2361abf7346Smrg  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
2371abf7346Smrg  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
2381abf7346Smrg") 2> /dev/null; then
2391abf7346Smrg  :
2401abf7346Smrgelse
2411abf7346Smrg  as_candidate_shells=
2421abf7346Smrg    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431abf7346Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2441abf7346Smrgdo
2451abf7346Smrg  IFS=$as_save_IFS
2461abf7346Smrg  test -z "$as_dir" && as_dir=.
2471abf7346Smrg  case $as_dir in
2481abf7346Smrg	 /*)
2491abf7346Smrg	   for as_base in sh bash ksh sh5; do
2501abf7346Smrg	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
2511abf7346Smrg	   done;;
2521abf7346Smrg       esac
2531abf7346Smrgdone
2541abf7346SmrgIFS=$as_save_IFS
2551abf7346Smrg
2561abf7346Smrg
2571abf7346Smrg      for as_shell in $as_candidate_shells $SHELL; do
2581abf7346Smrg	 # Try only shells that exist, to save several forks.
2591abf7346Smrg	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
2601abf7346Smrg		{ ("$as_shell") 2> /dev/null <<\_ASEOF
2611abf7346Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2621abf7346Smrg  emulate sh
2631abf7346Smrg  NULLCMD=:
2648b6d6341Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2651abf7346Smrg  # is contrary to our usage.  Disable this feature.
2661abf7346Smrg  alias -g '${1+"$@"}'='"$@"'
2671abf7346Smrg  setopt NO_GLOB_SUBST
2681abf7346Smrgelse
2691abf7346Smrg  case `(set -o) 2>/dev/null` in
2701abf7346Smrg  *posix*) set -o posix ;;
2711abf7346Smrgesac
2721abf7346Smrg
2731abf7346Smrgfi
2741abf7346Smrg
2751abf7346Smrg
2761abf7346Smrg:
2771abf7346Smrg_ASEOF
2781abf7346Smrg}; then
2791abf7346Smrg  CONFIG_SHELL=$as_shell
2801abf7346Smrg	       as_have_required=yes
2811abf7346Smrg	       if { "$as_shell" 2> /dev/null <<\_ASEOF
2821abf7346Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2831abf7346Smrg  emulate sh
2841abf7346Smrg  NULLCMD=:
2858b6d6341Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2861abf7346Smrg  # is contrary to our usage.  Disable this feature.
2871abf7346Smrg  alias -g '${1+"$@"}'='"$@"'
2881abf7346Smrg  setopt NO_GLOB_SUBST
2891abf7346Smrgelse
2901abf7346Smrg  case `(set -o) 2>/dev/null` in
2911abf7346Smrg  *posix*) set -o posix ;;
2921abf7346Smrgesac
2931abf7346Smrg
2941abf7346Smrgfi
2951abf7346Smrg
2961abf7346Smrg
2971abf7346Smrg:
2981abf7346Smrg(as_func_return () {
2991abf7346Smrg  (exit $1)
3001abf7346Smrg}
3011abf7346Smrgas_func_success () {
3021abf7346Smrg  as_func_return 0
3031abf7346Smrg}
3041abf7346Smrgas_func_failure () {
3051abf7346Smrg  as_func_return 1
3061abf7346Smrg}
3071abf7346Smrgas_func_ret_success () {
3081abf7346Smrg  return 0
3091abf7346Smrg}
3101abf7346Smrgas_func_ret_failure () {
3111abf7346Smrg  return 1
3121abf7346Smrg}
3131abf7346Smrg
3141abf7346Smrgexitcode=0
3151abf7346Smrgif as_func_success; then
3161abf7346Smrg  :
3171abf7346Smrgelse
3181abf7346Smrg  exitcode=1
3191abf7346Smrg  echo as_func_success failed.
3201abf7346Smrgfi
3211abf7346Smrg
3221abf7346Smrgif as_func_failure; then
3231abf7346Smrg  exitcode=1
3241abf7346Smrg  echo as_func_failure succeeded.
3251abf7346Smrgfi
3261abf7346Smrg
3271abf7346Smrgif as_func_ret_success; then
3281abf7346Smrg  :
3291abf7346Smrgelse
3301abf7346Smrg  exitcode=1
3311abf7346Smrg  echo as_func_ret_success failed.
3321abf7346Smrgfi
3331abf7346Smrg
3341abf7346Smrgif as_func_ret_failure; then
3351abf7346Smrg  exitcode=1
3361abf7346Smrg  echo as_func_ret_failure succeeded.
3371abf7346Smrgfi
3381abf7346Smrg
3391abf7346Smrgif ( set x; as_func_ret_success y && test x = "$1" ); then
3401abf7346Smrg  :
3411abf7346Smrgelse
3421abf7346Smrg  exitcode=1
3431abf7346Smrg  echo positional parameters were not saved.
3441abf7346Smrgfi
3451abf7346Smrg
3461abf7346Smrgtest $exitcode = 0) || { (exit 1); exit 1; }
3471abf7346Smrg
3481abf7346Smrg(
3491abf7346Smrg  as_lineno_1=$LINENO
3501abf7346Smrg  as_lineno_2=$LINENO
3511abf7346Smrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
3521abf7346Smrg  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
3531abf7346Smrg
3541abf7346Smrg_ASEOF
3551abf7346Smrg}; then
3561abf7346Smrg  break
3571abf7346Smrgfi
3581abf7346Smrg
3591abf7346Smrgfi
3601abf7346Smrg
3611abf7346Smrg      done
3621abf7346Smrg
3631abf7346Smrg      if test "x$CONFIG_SHELL" != x; then
3641abf7346Smrg  for as_var in BASH_ENV ENV
3658b6d6341Smrg	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
3668b6d6341Smrg	done
3678b6d6341Smrg	export CONFIG_SHELL
3688b6d6341Smrg	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
3691abf7346Smrgfi
3701abf7346Smrg
3711abf7346Smrg
3721abf7346Smrg    if test $as_have_required = no; then
3731abf7346Smrg  echo This script requires a shell more modern than all the
3741abf7346Smrg      echo shells that I found on your system.  Please install a
3751abf7346Smrg      echo modern shell, or manually run the script under such a
3761abf7346Smrg      echo shell if you do have one.
3771abf7346Smrg      { (exit 1); exit 1; }
3781abf7346Smrgfi
3791abf7346Smrg
3801abf7346Smrg
3811abf7346Smrgfi
3821abf7346Smrg
3831abf7346Smrgfi
3841abf7346Smrg
3851abf7346Smrg
3861abf7346Smrg
3871abf7346Smrg(eval "as_func_return () {
3881abf7346Smrg  (exit \$1)
3891abf7346Smrg}
3901abf7346Smrgas_func_success () {
3911abf7346Smrg  as_func_return 0
3921abf7346Smrg}
3931abf7346Smrgas_func_failure () {
3941abf7346Smrg  as_func_return 1
3951abf7346Smrg}
3961abf7346Smrgas_func_ret_success () {
3971abf7346Smrg  return 0
3981abf7346Smrg}
3991abf7346Smrgas_func_ret_failure () {
4001abf7346Smrg  return 1
4011abf7346Smrg}
4021abf7346Smrg
4031abf7346Smrgexitcode=0
4041abf7346Smrgif as_func_success; then
4051abf7346Smrg  :
4061abf7346Smrgelse
4071abf7346Smrg  exitcode=1
4081abf7346Smrg  echo as_func_success failed.
4091abf7346Smrgfi
4101abf7346Smrg
4111abf7346Smrgif as_func_failure; then
4121abf7346Smrg  exitcode=1
4131abf7346Smrg  echo as_func_failure succeeded.
4141abf7346Smrgfi
4151abf7346Smrg
4161abf7346Smrgif as_func_ret_success; then
4171abf7346Smrg  :
4181abf7346Smrgelse
4191abf7346Smrg  exitcode=1
4201abf7346Smrg  echo as_func_ret_success failed.
4211abf7346Smrgfi
4221abf7346Smrg
4231abf7346Smrgif as_func_ret_failure; then
4241abf7346Smrg  exitcode=1
4251abf7346Smrg  echo as_func_ret_failure succeeded.
4261abf7346Smrgfi
4271abf7346Smrg
4281abf7346Smrgif ( set x; as_func_ret_success y && test x = \"\$1\" ); then
4291abf7346Smrg  :
4301abf7346Smrgelse
4311abf7346Smrg  exitcode=1
4321abf7346Smrg  echo positional parameters were not saved.
4331abf7346Smrgfi
4341abf7346Smrg
4351abf7346Smrgtest \$exitcode = 0") || {
4361abf7346Smrg  echo No shell found that supports shell functions.
4378b6d6341Smrg  echo Please tell bug-autoconf@gnu.org about your system,
4388b6d6341Smrg  echo including any error possibly output before this message.
4398b6d6341Smrg  echo This can help us improve future autoconf versions.
4408b6d6341Smrg  echo Configuration will now proceed without shell functions.
4411abf7346Smrg}
4421abf7346Smrg
4431abf7346Smrg
4441abf7346Smrg
4451abf7346Smrg  as_lineno_1=$LINENO
4461abf7346Smrg  as_lineno_2=$LINENO
4471abf7346Smrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
4481abf7346Smrg  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
4491abf7346Smrg
4501abf7346Smrg  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4511abf7346Smrg  # uniformly replaced by the line number.  The first 'sed' inserts a
4521abf7346Smrg  # line-number line after each line using $LINENO; the second 'sed'
4531abf7346Smrg  # does the real work.  The second script uses 'N' to pair each
4541abf7346Smrg  # line-number line with the line containing $LINENO, and appends
4551abf7346Smrg  # trailing '-' during substitution so that $LINENO is not a special
4561abf7346Smrg  # case at line end.
4571abf7346Smrg  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4581abf7346Smrg  # scripts with optimization help from Paolo Bonzini.  Blame Lee
4591abf7346Smrg  # E. McMahon (1931-1989) for sed's syntax.  :-)
4601abf7346Smrg  sed -n '
4611abf7346Smrg    p
4621abf7346Smrg    /[$]LINENO/=
4631abf7346Smrg  ' <$as_myself |
4641abf7346Smrg    sed '
4651abf7346Smrg      s/[$]LINENO.*/&-/
4661abf7346Smrg      t lineno
4671abf7346Smrg      b
4681abf7346Smrg      :lineno
4691abf7346Smrg      N
4701abf7346Smrg      :loop
4711abf7346Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4721abf7346Smrg      t loop
4731abf7346Smrg      s/-\n.*//
4741abf7346Smrg    ' >$as_me.lineno &&
4751abf7346Smrg  chmod +x "$as_me.lineno" ||
4768b6d6341Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
4771abf7346Smrg   { (exit 1); exit 1; }; }
4781abf7346Smrg
4791abf7346Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
4801abf7346Smrg  # (the dirname of $[0] is not the place where we might find the
4811abf7346Smrg  # original and so on.  Autoconf is especially sensitive to this).
4821abf7346Smrg  . "./$as_me.lineno"
4831abf7346Smrg  # Exit status is that of the last command.
4841abf7346Smrg  exit
4851abf7346Smrg}
4861abf7346Smrg
4871abf7346Smrg
4881abf7346Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4891abf7346Smrg  as_dirname=dirname
4901abf7346Smrgelse
4911abf7346Smrg  as_dirname=false
4921abf7346Smrgfi
4931abf7346Smrg
4941abf7346SmrgECHO_C= ECHO_N= ECHO_T=
4951abf7346Smrgcase `echo -n x` in
4961abf7346Smrg-n*)
4971abf7346Smrg  case `echo 'x\c'` in
4981abf7346Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
4991abf7346Smrg  *)   ECHO_C='\c';;
5001abf7346Smrg  esac;;
5011abf7346Smrg*)
5021abf7346Smrg  ECHO_N='-n';;
5031abf7346Smrgesac
5041abf7346Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
5051abf7346Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5061abf7346Smrg  as_expr=expr
5071abf7346Smrgelse
5081abf7346Smrg  as_expr=false
5091abf7346Smrgfi
5101abf7346Smrg
5111abf7346Smrgrm -f conf$$ conf$$.exe conf$$.file
5121abf7346Smrgif test -d conf$$.dir; then
5131abf7346Smrg  rm -f conf$$.dir/conf$$.file
5141abf7346Smrgelse
5151abf7346Smrg  rm -f conf$$.dir
5168b6d6341Smrg  mkdir conf$$.dir 2>/dev/null
5178b6d6341Smrgfi
5188b6d6341Smrgif (echo >conf$$.file) 2>/dev/null; then
5198b6d6341Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
5208b6d6341Smrg    as_ln_s='ln -s'
5218b6d6341Smrg    # ... but there are two gotchas:
5228b6d6341Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5238b6d6341Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5248b6d6341Smrg    # In both cases, we have to default to `cp -p'.
5258b6d6341Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5268b6d6341Smrg      as_ln_s='cp -p'
5278b6d6341Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
5288b6d6341Smrg    as_ln_s=ln
5298b6d6341Smrg  else
5301abf7346Smrg    as_ln_s='cp -p'
5318b6d6341Smrg  fi
5321abf7346Smrgelse
5331abf7346Smrg  as_ln_s='cp -p'
5341abf7346Smrgfi
5351abf7346Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5361abf7346Smrgrmdir conf$$.dir 2>/dev/null
5371abf7346Smrg
5381abf7346Smrgif mkdir -p . 2>/dev/null; then
5391abf7346Smrg  as_mkdir_p=:
5401abf7346Smrgelse
5411abf7346Smrg  test -d ./-p && rmdir ./-p
5421abf7346Smrg  as_mkdir_p=false
5431abf7346Smrgfi
5441abf7346Smrg
5451abf7346Smrgif test -x / >/dev/null 2>&1; then
5461abf7346Smrg  as_test_x='test -x'
5471abf7346Smrgelse
5481abf7346Smrg  if ls -dL / >/dev/null 2>&1; then
5491abf7346Smrg    as_ls_L_option=L
5501abf7346Smrg  else
5511abf7346Smrg    as_ls_L_option=
5521abf7346Smrg  fi
5531abf7346Smrg  as_test_x='
5541abf7346Smrg    eval sh -c '\''
5551abf7346Smrg      if test -d "$1"; then
5568b6d6341Smrg	test -d "$1/.";
5571abf7346Smrg      else
5581abf7346Smrg	case $1 in
5598b6d6341Smrg	-*)set "./$1";;
5601abf7346Smrg	esac;
5611abf7346Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5621abf7346Smrg	???[sx]*):;;*)false;;esac;fi
5631abf7346Smrg    '\'' sh
5641abf7346Smrg  '
5651abf7346Smrgfi
5661abf7346Smrgas_executable_p=$as_test_x
5671abf7346Smrg
5681abf7346Smrg# Sed expression to map a string onto a valid CPP name.
5691abf7346Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5701abf7346Smrg
5711abf7346Smrg# Sed expression to map a string onto a valid variable name.
5721abf7346Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5731abf7346Smrg
5741abf7346Smrg
5751abf7346Smrg
5761abf7346Smrgexec 7<&0 </dev/null 6>&1
5771abf7346Smrg
5781abf7346Smrg# Name of the host.
5791abf7346Smrg# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
5801abf7346Smrg# so uname gets run too.
5811abf7346Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
5821abf7346Smrg
5831abf7346Smrg#
5841abf7346Smrg# Initializations.
5851abf7346Smrg#
5861abf7346Smrgac_default_prefix=/usr/local
5871abf7346Smrgac_clean_files=
5881abf7346Smrgac_config_libobj_dir=.
5891abf7346SmrgLIBOBJS=
5901abf7346Smrgcross_compiling=no
5911abf7346Smrgsubdirs=
5921abf7346SmrgMFLAGS=
5931abf7346SmrgMAKEFLAGS=
5941abf7346SmrgSHELL=${CONFIG_SHELL-/bin/sh}
5951abf7346Smrg
5961abf7346Smrg# Identity of this package.
5971abf7346SmrgPACKAGE_NAME='xman'
5981abf7346SmrgPACKAGE_TARNAME='xman'
5998b6d6341SmrgPACKAGE_VERSION='1.1.0'
6008b6d6341SmrgPACKAGE_STRING='xman 1.1.0'
6011abf7346SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
6021abf7346Smrg
6038b6d6341Smrg# Factoring default headers for most tests.
6048b6d6341Smrgac_includes_default="\
6058b6d6341Smrg#include <stdio.h>
6068b6d6341Smrg#ifdef HAVE_SYS_TYPES_H
6078b6d6341Smrg# include <sys/types.h>
6088b6d6341Smrg#endif
6098b6d6341Smrg#ifdef HAVE_SYS_STAT_H
6108b6d6341Smrg# include <sys/stat.h>
6118b6d6341Smrg#endif
6128b6d6341Smrg#ifdef STDC_HEADERS
6138b6d6341Smrg# include <stdlib.h>
6148b6d6341Smrg# include <stddef.h>
6158b6d6341Smrg#else
6168b6d6341Smrg# ifdef HAVE_STDLIB_H
6178b6d6341Smrg#  include <stdlib.h>
6188b6d6341Smrg# endif
6198b6d6341Smrg#endif
6208b6d6341Smrg#ifdef HAVE_STRING_H
6218b6d6341Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
6228b6d6341Smrg#  include <memory.h>
6238b6d6341Smrg# endif
6248b6d6341Smrg# include <string.h>
6258b6d6341Smrg#endif
6268b6d6341Smrg#ifdef HAVE_STRINGS_H
6278b6d6341Smrg# include <strings.h>
6288b6d6341Smrg#endif
6298b6d6341Smrg#ifdef HAVE_INTTYPES_H
6308b6d6341Smrg# include <inttypes.h>
6318b6d6341Smrg#endif
6328b6d6341Smrg#ifdef HAVE_STDINT_H
6338b6d6341Smrg# include <stdint.h>
6348b6d6341Smrg#endif
6358b6d6341Smrg#ifdef HAVE_UNISTD_H
6368b6d6341Smrg# include <unistd.h>
6378b6d6341Smrg#endif"
6388b6d6341Smrg
6398b6d6341Smrgac_subst_vars='am__EXEEXT_FALSE
6408b6d6341Smrgam__EXEEXT_TRUE
6418b6d6341SmrgLTLIBOBJS
6428b6d6341SmrgLIBOBJS
6431abf7346Smrgappdefaultdir
6448b6d6341SmrgAPPDEFS_LIBS
6458b6d6341SmrgAPPDEFS_CFLAGS
6468b6d6341SmrgXMAN_LIBS
6478b6d6341SmrgXMAN_CFLAGS
6488b6d6341SmrgPKG_CONFIG
6498b6d6341SmrgHELPDIR
6501abf7346SmrgADMIN_MAN_DIR
6518b6d6341SmrgDRIVER_MAN_DIR
6528b6d6341SmrgMISC_MAN_DIR
6538b6d6341SmrgFILE_MAN_DIR
6548b6d6341SmrgLIB_MAN_DIR
6558b6d6341SmrgAPP_MAN_DIR
6568b6d6341SmrgADMIN_MAN_SUFFIX
6578b6d6341SmrgDRIVER_MAN_SUFFIX
6588b6d6341SmrgMISC_MAN_SUFFIX
6598b6d6341SmrgFILE_MAN_SUFFIX
6608b6d6341SmrgLIB_MAN_SUFFIX
6618b6d6341SmrgAPP_MAN_SUFFIX
6628b6d6341Smrgdistcleancheck_listfiles
6638b6d6341SmrgCHANGELOG_CMD
6648b6d6341SmrgAM_BACKSLASH
6658b6d6341SmrgAM_DEFAULT_VERBOSITY
6668b6d6341SmrgCWARNFLAGS
6678b6d6341SmrgEGREP
6688b6d6341SmrgGREP
6698b6d6341SmrgCPP
6708b6d6341Smrghost_os
6718b6d6341Smrghost_vendor
6728b6d6341Smrghost_cpu
6738b6d6341Smrghost
6748b6d6341Smrgbuild_os
6758b6d6341Smrgbuild_vendor
6768b6d6341Smrgbuild_cpu
6778b6d6341Smrgbuild
6788b6d6341Smrgam__fastdepCC_FALSE
6798b6d6341Smrgam__fastdepCC_TRUE
6808b6d6341SmrgCCDEPMODE
6818b6d6341SmrgAMDEPBACKSLASH
6828b6d6341SmrgAMDEP_FALSE
6838b6d6341SmrgAMDEP_TRUE
6848b6d6341Smrgam__quote
6858b6d6341Smrgam__include
6868b6d6341SmrgDEPDIR
6878b6d6341SmrgOBJEXT
6888b6d6341SmrgEXEEXT
6898b6d6341Smrgac_ct_CC
6908b6d6341SmrgCPPFLAGS
6918b6d6341SmrgLDFLAGS
6928b6d6341SmrgCFLAGS
6938b6d6341SmrgCC
6948b6d6341SmrgMAINT
6958b6d6341SmrgMAINTAINER_MODE_FALSE
6968b6d6341SmrgMAINTAINER_MODE_TRUE
6978b6d6341Smrgam__untar
6988b6d6341Smrgam__tar
6998b6d6341SmrgAMTAR
7008b6d6341Smrgam__leading_dot
7018b6d6341SmrgSET_MAKE
7028b6d6341SmrgAWK
7038b6d6341Smrgmkdir_p
7048b6d6341SmrgMKDIR_P
7058b6d6341SmrgINSTALL_STRIP_PROGRAM
7068b6d6341SmrgSTRIP
7078b6d6341Smrginstall_sh
7088b6d6341SmrgMAKEINFO
7098b6d6341SmrgAUTOHEADER
7108b6d6341SmrgAUTOMAKE
7118b6d6341SmrgAUTOCONF
7128b6d6341SmrgACLOCAL
7138b6d6341SmrgVERSION
7148b6d6341SmrgPACKAGE
7158b6d6341SmrgCYGPATH_W
7168b6d6341Smrgam__isrc
7178b6d6341SmrgINSTALL_DATA
7188b6d6341SmrgINSTALL_SCRIPT
7198b6d6341SmrgINSTALL_PROGRAM
7208b6d6341Smrgtarget_alias
7218b6d6341Smrghost_alias
7228b6d6341Smrgbuild_alias
7238b6d6341SmrgLIBS
7248b6d6341SmrgECHO_T
7258b6d6341SmrgECHO_N
7268b6d6341SmrgECHO_C
7278b6d6341SmrgDEFS
7288b6d6341Smrgmandir
7298b6d6341Smrglocaledir
7308b6d6341Smrglibdir
7318b6d6341Smrgpsdir
7328b6d6341Smrgpdfdir
7338b6d6341Smrgdvidir
7348b6d6341Smrghtmldir
7358b6d6341Smrginfodir
7368b6d6341Smrgdocdir
7378b6d6341Smrgoldincludedir
7388b6d6341Smrgincludedir
7398b6d6341Smrglocalstatedir
7408b6d6341Smrgsharedstatedir
7418b6d6341Smrgsysconfdir
7428b6d6341Smrgdatadir
7438b6d6341Smrgdatarootdir
7448b6d6341Smrglibexecdir
7458b6d6341Smrgsbindir
7468b6d6341Smrgbindir
7478b6d6341Smrgprogram_transform_name
7488b6d6341Smrgprefix
7498b6d6341Smrgexec_prefix
7508b6d6341SmrgPACKAGE_BUGREPORT
7518b6d6341SmrgPACKAGE_STRING
7528b6d6341SmrgPACKAGE_VERSION
7538b6d6341SmrgPACKAGE_TARNAME
7548b6d6341SmrgPACKAGE_NAME
7558b6d6341SmrgPATH_SEPARATOR
7568b6d6341SmrgSHELL'
7571abf7346Smrgac_subst_files=''
7588b6d6341Smrgac_user_opts='
7598b6d6341Smrgenable_option_checking
7608b6d6341Smrgenable_maintainer_mode
7618b6d6341Smrgenable_dependency_tracking
7628b6d6341Smrgenable_silent_rules
7638b6d6341Smrgenable_strict_compilation
7648b6d6341Smrgwith_release_version
7658b6d6341Smrgwith_helpdir
7668b6d6341Smrgwith_sysmanpath
7678b6d6341Smrgwith_localmanpath
7688b6d6341Smrgwith_manconfig
7698b6d6341Smrgwith_appdefaultdir
7708b6d6341Smrg'
7711abf7346Smrg      ac_precious_vars='build_alias
7721abf7346Smrghost_alias
7731abf7346Smrgtarget_alias
7741abf7346SmrgCC
7751abf7346SmrgCFLAGS
7761abf7346SmrgLDFLAGS
7771abf7346SmrgLIBS
7781abf7346SmrgCPPFLAGS
7798b6d6341SmrgCPP
7801abf7346SmrgPKG_CONFIG
7818b6d6341SmrgXMAN_CFLAGS
7828b6d6341SmrgXMAN_LIBS
7831abf7346SmrgAPPDEFS_CFLAGS
7841abf7346SmrgAPPDEFS_LIBS'
7851abf7346Smrg
7861abf7346Smrg
7871abf7346Smrg# Initialize some variables set by options.
7881abf7346Smrgac_init_help=
7891abf7346Smrgac_init_version=false
7908b6d6341Smrgac_unrecognized_opts=
7918b6d6341Smrgac_unrecognized_sep=
7921abf7346Smrg# The variables have the same names as the options, with
7931abf7346Smrg# dashes changed to underlines.
7941abf7346Smrgcache_file=/dev/null
7951abf7346Smrgexec_prefix=NONE
7961abf7346Smrgno_create=
7971abf7346Smrgno_recursion=
7981abf7346Smrgprefix=NONE
7991abf7346Smrgprogram_prefix=NONE
8001abf7346Smrgprogram_suffix=NONE
8011abf7346Smrgprogram_transform_name=s,x,x,
8021abf7346Smrgsilent=
8031abf7346Smrgsite=
8041abf7346Smrgsrcdir=
8051abf7346Smrgverbose=
8061abf7346Smrgx_includes=NONE
8071abf7346Smrgx_libraries=NONE
8081abf7346Smrg
8091abf7346Smrg# Installation directory options.
8101abf7346Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
8111abf7346Smrg# and all the variables that are supposed to be based on exec_prefix
8121abf7346Smrg# by default will actually change.
8131abf7346Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
8141abf7346Smrg# (The list follows the same order as the GNU Coding Standards.)
8151abf7346Smrgbindir='${exec_prefix}/bin'
8161abf7346Smrgsbindir='${exec_prefix}/sbin'
8171abf7346Smrglibexecdir='${exec_prefix}/libexec'
8181abf7346Smrgdatarootdir='${prefix}/share'
8191abf7346Smrgdatadir='${datarootdir}'
8201abf7346Smrgsysconfdir='${prefix}/etc'
8211abf7346Smrgsharedstatedir='${prefix}/com'
8221abf7346Smrglocalstatedir='${prefix}/var'
8231abf7346Smrgincludedir='${prefix}/include'
8241abf7346Smrgoldincludedir='/usr/include'
8251abf7346Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
8261abf7346Smrginfodir='${datarootdir}/info'
8271abf7346Smrghtmldir='${docdir}'
8281abf7346Smrgdvidir='${docdir}'
8291abf7346Smrgpdfdir='${docdir}'
8301abf7346Smrgpsdir='${docdir}'
8311abf7346Smrglibdir='${exec_prefix}/lib'
8321abf7346Smrglocaledir='${datarootdir}/locale'
8331abf7346Smrgmandir='${datarootdir}/man'
8341abf7346Smrg
8351abf7346Smrgac_prev=
8361abf7346Smrgac_dashdash=
8371abf7346Smrgfor ac_option
8381abf7346Smrgdo
8391abf7346Smrg  # If the previous option needs an argument, assign it.
8401abf7346Smrg  if test -n "$ac_prev"; then
8411abf7346Smrg    eval $ac_prev=\$ac_option
8421abf7346Smrg    ac_prev=
8431abf7346Smrg    continue
8441abf7346Smrg  fi
8451abf7346Smrg
8461abf7346Smrg  case $ac_option in
8471abf7346Smrg  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
8481abf7346Smrg  *)	ac_optarg=yes ;;
8491abf7346Smrg  esac
8501abf7346Smrg
8511abf7346Smrg  # Accept the important Cygnus configure options, so we can diagnose typos.
8521abf7346Smrg
8531abf7346Smrg  case $ac_dashdash$ac_option in
8541abf7346Smrg  --)
8551abf7346Smrg    ac_dashdash=yes ;;
8561abf7346Smrg
8571abf7346Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
8581abf7346Smrg    ac_prev=bindir ;;
8591abf7346Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
8601abf7346Smrg    bindir=$ac_optarg ;;
8611abf7346Smrg
8621abf7346Smrg  -build | --build | --buil | --bui | --bu)
8631abf7346Smrg    ac_prev=build_alias ;;
8641abf7346Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
8651abf7346Smrg    build_alias=$ac_optarg ;;
8661abf7346Smrg
8671abf7346Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
8681abf7346Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8691abf7346Smrg    ac_prev=cache_file ;;
8701abf7346Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8711abf7346Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8721abf7346Smrg    cache_file=$ac_optarg ;;
8731abf7346Smrg
8741abf7346Smrg  --config-cache | -C)
8751abf7346Smrg    cache_file=config.cache ;;
8761abf7346Smrg
8771abf7346Smrg  -datadir | --datadir | --datadi | --datad)
8781abf7346Smrg    ac_prev=datadir ;;
8791abf7346Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
8801abf7346Smrg    datadir=$ac_optarg ;;
8811abf7346Smrg
8821abf7346Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
8831abf7346Smrg  | --dataroo | --dataro | --datar)
8841abf7346Smrg    ac_prev=datarootdir ;;
8851abf7346Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
8861abf7346Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
8871abf7346Smrg    datarootdir=$ac_optarg ;;
8881abf7346Smrg
8891abf7346Smrg  -disable-* | --disable-*)
8908b6d6341Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
8911abf7346Smrg    # Reject names that are not valid shell variable names.
8928b6d6341Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8938b6d6341Smrg      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
8941abf7346Smrg   { (exit 1); exit 1; }; }
8958b6d6341Smrg    ac_useropt_orig=$ac_useropt
8968b6d6341Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8978b6d6341Smrg    case $ac_user_opts in
8988b6d6341Smrg      *"
8998b6d6341Smrg"enable_$ac_useropt"
9008b6d6341Smrg"*) ;;
9018b6d6341Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
9028b6d6341Smrg	 ac_unrecognized_sep=', ';;
9038b6d6341Smrg    esac
9048b6d6341Smrg    eval enable_$ac_useropt=no ;;
9051abf7346Smrg
9061abf7346Smrg  -docdir | --docdir | --docdi | --doc | --do)
9071abf7346Smrg    ac_prev=docdir ;;
9081abf7346Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
9091abf7346Smrg    docdir=$ac_optarg ;;
9101abf7346Smrg
9111abf7346Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
9121abf7346Smrg    ac_prev=dvidir ;;
9131abf7346Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
9141abf7346Smrg    dvidir=$ac_optarg ;;
9151abf7346Smrg
9161abf7346Smrg  -enable-* | --enable-*)
9178b6d6341Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
9181abf7346Smrg    # Reject names that are not valid shell variable names.
9198b6d6341Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
9208b6d6341Smrg      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
9211abf7346Smrg   { (exit 1); exit 1; }; }
9228b6d6341Smrg    ac_useropt_orig=$ac_useropt
9238b6d6341Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
9248b6d6341Smrg    case $ac_user_opts in
9258b6d6341Smrg      *"
9268b6d6341Smrg"enable_$ac_useropt"
9278b6d6341Smrg"*) ;;
9288b6d6341Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
9298b6d6341Smrg	 ac_unrecognized_sep=', ';;
9308b6d6341Smrg    esac
9318b6d6341Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
9321abf7346Smrg
9331abf7346Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
9341abf7346Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
9351abf7346Smrg  | --exec | --exe | --ex)
9361abf7346Smrg    ac_prev=exec_prefix ;;
9371abf7346Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
9381abf7346Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
9391abf7346Smrg  | --exec=* | --exe=* | --ex=*)
9401abf7346Smrg    exec_prefix=$ac_optarg ;;
9411abf7346Smrg
9421abf7346Smrg  -gas | --gas | --ga | --g)
9431abf7346Smrg    # Obsolete; use --with-gas.
9441abf7346Smrg    with_gas=yes ;;
9451abf7346Smrg
9461abf7346Smrg  -help | --help | --hel | --he | -h)
9471abf7346Smrg    ac_init_help=long ;;
9481abf7346Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
9491abf7346Smrg    ac_init_help=recursive ;;
9501abf7346Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
9511abf7346Smrg    ac_init_help=short ;;
9521abf7346Smrg
9531abf7346Smrg  -host | --host | --hos | --ho)
9541abf7346Smrg    ac_prev=host_alias ;;
9551abf7346Smrg  -host=* | --host=* | --hos=* | --ho=*)
9561abf7346Smrg    host_alias=$ac_optarg ;;
9571abf7346Smrg
9581abf7346Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
9591abf7346Smrg    ac_prev=htmldir ;;
9601abf7346Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
9611abf7346Smrg  | --ht=*)
9621abf7346Smrg    htmldir=$ac_optarg ;;
9631abf7346Smrg
9641abf7346Smrg  -includedir | --includedir | --includedi | --included | --include \
9651abf7346Smrg  | --includ | --inclu | --incl | --inc)
9661abf7346Smrg    ac_prev=includedir ;;
9671abf7346Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
9681abf7346Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
9691abf7346Smrg    includedir=$ac_optarg ;;
9701abf7346Smrg
9711abf7346Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
9721abf7346Smrg    ac_prev=infodir ;;
9731abf7346Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
9741abf7346Smrg    infodir=$ac_optarg ;;
9751abf7346Smrg
9761abf7346Smrg  -libdir | --libdir | --libdi | --libd)
9771abf7346Smrg    ac_prev=libdir ;;
9781abf7346Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
9791abf7346Smrg    libdir=$ac_optarg ;;
9801abf7346Smrg
9811abf7346Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
9821abf7346Smrg  | --libexe | --libex | --libe)
9831abf7346Smrg    ac_prev=libexecdir ;;
9841abf7346Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
9851abf7346Smrg  | --libexe=* | --libex=* | --libe=*)
9861abf7346Smrg    libexecdir=$ac_optarg ;;
9871abf7346Smrg
9881abf7346Smrg  -localedir | --localedir | --localedi | --localed | --locale)
9891abf7346Smrg    ac_prev=localedir ;;
9901abf7346Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
9911abf7346Smrg    localedir=$ac_optarg ;;
9921abf7346Smrg
9931abf7346Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
9941abf7346Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
9951abf7346Smrg    ac_prev=localstatedir ;;
9961abf7346Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
9971abf7346Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
9981abf7346Smrg    localstatedir=$ac_optarg ;;
9991abf7346Smrg
10001abf7346Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
10011abf7346Smrg    ac_prev=mandir ;;
10021abf7346Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
10031abf7346Smrg    mandir=$ac_optarg ;;
10041abf7346Smrg
10051abf7346Smrg  -nfp | --nfp | --nf)
10061abf7346Smrg    # Obsolete; use --without-fp.
10071abf7346Smrg    with_fp=no ;;
10081abf7346Smrg
10091abf7346Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
10101abf7346Smrg  | --no-cr | --no-c | -n)
10111abf7346Smrg    no_create=yes ;;
10121abf7346Smrg
10131abf7346Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
10141abf7346Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
10151abf7346Smrg    no_recursion=yes ;;
10161abf7346Smrg
10171abf7346Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
10181abf7346Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
10191abf7346Smrg  | --oldin | --oldi | --old | --ol | --o)
10201abf7346Smrg    ac_prev=oldincludedir ;;
10211abf7346Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
10221abf7346Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
10231abf7346Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
10241abf7346Smrg    oldincludedir=$ac_optarg ;;
10251abf7346Smrg
10261abf7346Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10271abf7346Smrg    ac_prev=prefix ;;
10281abf7346Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10291abf7346Smrg    prefix=$ac_optarg ;;
10301abf7346Smrg
10311abf7346Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
10321abf7346Smrg  | --program-pre | --program-pr | --program-p)
10331abf7346Smrg    ac_prev=program_prefix ;;
10341abf7346Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
10351abf7346Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
10361abf7346Smrg    program_prefix=$ac_optarg ;;
10371abf7346Smrg
10381abf7346Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
10391abf7346Smrg  | --program-suf | --program-su | --program-s)
10401abf7346Smrg    ac_prev=program_suffix ;;
10411abf7346Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
10421abf7346Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
10431abf7346Smrg    program_suffix=$ac_optarg ;;
10441abf7346Smrg
10451abf7346Smrg  -program-transform-name | --program-transform-name \
10461abf7346Smrg  | --program-transform-nam | --program-transform-na \
10471abf7346Smrg  | --program-transform-n | --program-transform- \
10481abf7346Smrg  | --program-transform | --program-transfor \
10491abf7346Smrg  | --program-transfo | --program-transf \
10501abf7346Smrg  | --program-trans | --program-tran \
10511abf7346Smrg  | --progr-tra | --program-tr | --program-t)
10521abf7346Smrg    ac_prev=program_transform_name ;;
10531abf7346Smrg  -program-transform-name=* | --program-transform-name=* \
10541abf7346Smrg  | --program-transform-nam=* | --program-transform-na=* \
10551abf7346Smrg  | --program-transform-n=* | --program-transform-=* \
10561abf7346Smrg  | --program-transform=* | --program-transfor=* \
10571abf7346Smrg  | --program-transfo=* | --program-transf=* \
10581abf7346Smrg  | --program-trans=* | --program-tran=* \
10591abf7346Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
10601abf7346Smrg    program_transform_name=$ac_optarg ;;
10611abf7346Smrg
10621abf7346Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
10631abf7346Smrg    ac_prev=pdfdir ;;
10641abf7346Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
10651abf7346Smrg    pdfdir=$ac_optarg ;;
10661abf7346Smrg
10671abf7346Smrg  -psdir | --psdir | --psdi | --psd | --ps)
10681abf7346Smrg    ac_prev=psdir ;;
10691abf7346Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
10701abf7346Smrg    psdir=$ac_optarg ;;
10711abf7346Smrg
10721abf7346Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10731abf7346Smrg  | -silent | --silent | --silen | --sile | --sil)
10741abf7346Smrg    silent=yes ;;
10751abf7346Smrg
10761abf7346Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
10771abf7346Smrg    ac_prev=sbindir ;;
10781abf7346Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
10791abf7346Smrg  | --sbi=* | --sb=*)
10801abf7346Smrg    sbindir=$ac_optarg ;;
10811abf7346Smrg
10821abf7346Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
10831abf7346Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
10841abf7346Smrg  | --sharedst | --shareds | --shared | --share | --shar \
10851abf7346Smrg  | --sha | --sh)
10861abf7346Smrg    ac_prev=sharedstatedir ;;
10871abf7346Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
10881abf7346Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
10891abf7346Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
10901abf7346Smrg  | --sha=* | --sh=*)
10911abf7346Smrg    sharedstatedir=$ac_optarg ;;
10921abf7346Smrg
10931abf7346Smrg  -site | --site | --sit)
10941abf7346Smrg    ac_prev=site ;;
10951abf7346Smrg  -site=* | --site=* | --sit=*)
10961abf7346Smrg    site=$ac_optarg ;;
10971abf7346Smrg
10981abf7346Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10991abf7346Smrg    ac_prev=srcdir ;;
11001abf7346Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
11011abf7346Smrg    srcdir=$ac_optarg ;;
11021abf7346Smrg
11031abf7346Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
11041abf7346Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
11051abf7346Smrg    ac_prev=sysconfdir ;;
11061abf7346Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
11071abf7346Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
11081abf7346Smrg    sysconfdir=$ac_optarg ;;
11091abf7346Smrg
11101abf7346Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
11111abf7346Smrg    ac_prev=target_alias ;;
11121abf7346Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
11131abf7346Smrg    target_alias=$ac_optarg ;;
11141abf7346Smrg
11151abf7346Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
11161abf7346Smrg    verbose=yes ;;
11171abf7346Smrg
11181abf7346Smrg  -version | --version | --versio | --versi | --vers | -V)
11191abf7346Smrg    ac_init_version=: ;;
11201abf7346Smrg
11211abf7346Smrg  -with-* | --with-*)
11228b6d6341Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
11231abf7346Smrg    # Reject names that are not valid shell variable names.
11248b6d6341Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11258b6d6341Smrg      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
11261abf7346Smrg   { (exit 1); exit 1; }; }
11278b6d6341Smrg    ac_useropt_orig=$ac_useropt
11288b6d6341Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11298b6d6341Smrg    case $ac_user_opts in
11308b6d6341Smrg      *"
11318b6d6341Smrg"with_$ac_useropt"
11328b6d6341Smrg"*) ;;
11338b6d6341Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
11348b6d6341Smrg	 ac_unrecognized_sep=', ';;
11358b6d6341Smrg    esac
11368b6d6341Smrg    eval with_$ac_useropt=\$ac_optarg ;;
11371abf7346Smrg
11381abf7346Smrg  -without-* | --without-*)
11398b6d6341Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
11401abf7346Smrg    # Reject names that are not valid shell variable names.
11418b6d6341Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11428b6d6341Smrg      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
11431abf7346Smrg   { (exit 1); exit 1; }; }
11448b6d6341Smrg    ac_useropt_orig=$ac_useropt
11458b6d6341Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11468b6d6341Smrg    case $ac_user_opts in
11478b6d6341Smrg      *"
11488b6d6341Smrg"with_$ac_useropt"
11498b6d6341Smrg"*) ;;
11508b6d6341Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
11518b6d6341Smrg	 ac_unrecognized_sep=', ';;
11528b6d6341Smrg    esac
11538b6d6341Smrg    eval with_$ac_useropt=no ;;
11541abf7346Smrg
11551abf7346Smrg  --x)
11561abf7346Smrg    # Obsolete; use --with-x.
11571abf7346Smrg    with_x=yes ;;
11581abf7346Smrg
11591abf7346Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
11601abf7346Smrg  | --x-incl | --x-inc | --x-in | --x-i)
11611abf7346Smrg    ac_prev=x_includes ;;
11621abf7346Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
11631abf7346Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
11641abf7346Smrg    x_includes=$ac_optarg ;;
11651abf7346Smrg
11661abf7346Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
11671abf7346Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
11681abf7346Smrg    ac_prev=x_libraries ;;
11691abf7346Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
11701abf7346Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
11711abf7346Smrg    x_libraries=$ac_optarg ;;
11721abf7346Smrg
11738b6d6341Smrg  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
11741abf7346SmrgTry \`$0 --help' for more information." >&2
11751abf7346Smrg   { (exit 1); exit 1; }; }
11761abf7346Smrg    ;;
11771abf7346Smrg
11781abf7346Smrg  *=*)
11791abf7346Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
11801abf7346Smrg    # Reject names that are not valid shell variable names.
11811abf7346Smrg    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
11828b6d6341Smrg      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
11831abf7346Smrg   { (exit 1); exit 1; }; }
11841abf7346Smrg    eval $ac_envvar=\$ac_optarg
11851abf7346Smrg    export $ac_envvar ;;
11861abf7346Smrg
11871abf7346Smrg  *)
11881abf7346Smrg    # FIXME: should be removed in autoconf 3.0.
11898b6d6341Smrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
11901abf7346Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
11918b6d6341Smrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
11921abf7346Smrg    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
11931abf7346Smrg    ;;
11941abf7346Smrg
11951abf7346Smrg  esac
11961abf7346Smrgdone
11971abf7346Smrg
11981abf7346Smrgif test -n "$ac_prev"; then
11991abf7346Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
12008b6d6341Smrg  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
12011abf7346Smrg   { (exit 1); exit 1; }; }
12021abf7346Smrgfi
12031abf7346Smrg
12048b6d6341Smrgif test -n "$ac_unrecognized_opts"; then
12058b6d6341Smrg  case $enable_option_checking in
12068b6d6341Smrg    no) ;;
12078b6d6341Smrg    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
12088b6d6341Smrg   { (exit 1); exit 1; }; } ;;
12098b6d6341Smrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
12108b6d6341Smrg  esac
12118b6d6341Smrgfi
12128b6d6341Smrg
12138b6d6341Smrg# Check all directory arguments for consistency.
12141abf7346Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
12151abf7346Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
12161abf7346Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
12171abf7346Smrg		libdir localedir mandir
12181abf7346Smrgdo
12191abf7346Smrg  eval ac_val=\$$ac_var
12208b6d6341Smrg  # Remove trailing slashes.
12218b6d6341Smrg  case $ac_val in
12228b6d6341Smrg    */ )
12238b6d6341Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
12248b6d6341Smrg      eval $ac_var=\$ac_val;;
12258b6d6341Smrg  esac
12268b6d6341Smrg  # Be sure to have absolute directory names.
12271abf7346Smrg  case $ac_val in
12281abf7346Smrg    [\\/$]* | ?:[\\/]* )  continue;;
12291abf7346Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
12301abf7346Smrg  esac
12318b6d6341Smrg  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
12321abf7346Smrg   { (exit 1); exit 1; }; }
12331abf7346Smrgdone
12341abf7346Smrg
12351abf7346Smrg# There might be people who depend on the old broken behavior: `$host'
12361abf7346Smrg# used to hold the argument of --host etc.
12371abf7346Smrg# FIXME: To remove some day.
12381abf7346Smrgbuild=$build_alias
12391abf7346Smrghost=$host_alias
12401abf7346Smrgtarget=$target_alias
12411abf7346Smrg
12421abf7346Smrg# FIXME: To remove some day.
12431abf7346Smrgif test "x$host_alias" != x; then
12441abf7346Smrg  if test "x$build_alias" = x; then
12451abf7346Smrg    cross_compiling=maybe
12468b6d6341Smrg    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
12471abf7346Smrg    If a cross compiler is detected then cross compile mode will be used." >&2
12481abf7346Smrg  elif test "x$build_alias" != "x$host_alias"; then
12491abf7346Smrg    cross_compiling=yes
12501abf7346Smrg  fi
12511abf7346Smrgfi
12521abf7346Smrg
12531abf7346Smrgac_tool_prefix=
12541abf7346Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
12551abf7346Smrg
12561abf7346Smrgtest "$silent" = yes && exec 6>/dev/null
12571abf7346Smrg
12581abf7346Smrg
12591abf7346Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
12601abf7346Smrgac_ls_di=`ls -di .` &&
12611abf7346Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12628b6d6341Smrg  { $as_echo "$as_me: error: working directory cannot be determined" >&2
12631abf7346Smrg   { (exit 1); exit 1; }; }
12641abf7346Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12658b6d6341Smrg  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
12661abf7346Smrg   { (exit 1); exit 1; }; }
12671abf7346Smrg
12681abf7346Smrg
12691abf7346Smrg# Find the source files, if location was not specified.
12701abf7346Smrgif test -z "$srcdir"; then
12711abf7346Smrg  ac_srcdir_defaulted=yes
12721abf7346Smrg  # Try the directory containing this script, then the parent directory.
12738b6d6341Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
12748b6d6341Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12758b6d6341Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
12768b6d6341Smrg	 X"$as_myself" : 'X\(//\)$' \| \
12778b6d6341Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
12788b6d6341Smrg$as_echo X"$as_myself" |
12791abf7346Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12801abf7346Smrg	    s//\1/
12811abf7346Smrg	    q
12821abf7346Smrg	  }
12831abf7346Smrg	  /^X\(\/\/\)[^/].*/{
12841abf7346Smrg	    s//\1/
12851abf7346Smrg	    q
12861abf7346Smrg	  }
12871abf7346Smrg	  /^X\(\/\/\)$/{
12881abf7346Smrg	    s//\1/
12891abf7346Smrg	    q
12901abf7346Smrg	  }
12911abf7346Smrg	  /^X\(\/\).*/{
12921abf7346Smrg	    s//\1/
12931abf7346Smrg	    q
12941abf7346Smrg	  }
12951abf7346Smrg	  s/.*/./; q'`
12961abf7346Smrg  srcdir=$ac_confdir
12971abf7346Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
12981abf7346Smrg    srcdir=..
12991abf7346Smrg  fi
13001abf7346Smrgelse
13011abf7346Smrg  ac_srcdir_defaulted=no
13021abf7346Smrgfi
13031abf7346Smrgif test ! -r "$srcdir/$ac_unique_file"; then
13041abf7346Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
13058b6d6341Smrg  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
13061abf7346Smrg   { (exit 1); exit 1; }; }
13071abf7346Smrgfi
13081abf7346Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
13091abf7346Smrgac_abs_confdir=`(
13108b6d6341Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
13111abf7346Smrg   { (exit 1); exit 1; }; }
13121abf7346Smrg	pwd)`
13131abf7346Smrg# When building in place, set srcdir=.
13141abf7346Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
13151abf7346Smrg  srcdir=.
13161abf7346Smrgfi
13171abf7346Smrg# Remove unnecessary trailing slashes from srcdir.
13181abf7346Smrg# Double slashes in file names in object file debugging info
13191abf7346Smrg# mess up M-x gdb in Emacs.
13201abf7346Smrgcase $srcdir in
13211abf7346Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
13221abf7346Smrgesac
13231abf7346Smrgfor ac_var in $ac_precious_vars; do
13241abf7346Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
13251abf7346Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
13261abf7346Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
13271abf7346Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
13281abf7346Smrgdone
13291abf7346Smrg
13301abf7346Smrg#
13311abf7346Smrg# Report the --help message.
13321abf7346Smrg#
13331abf7346Smrgif test "$ac_init_help" = "long"; then
13341abf7346Smrg  # Omit some internal or obsolete options to make the list less imposing.
13351abf7346Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
13361abf7346Smrg  cat <<_ACEOF
13378b6d6341Smrg\`configure' configures xman 1.1.0 to adapt to many kinds of systems.
13381abf7346Smrg
13391abf7346SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
13401abf7346Smrg
13411abf7346SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
13421abf7346SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
13431abf7346Smrg
13441abf7346SmrgDefaults for the options are specified in brackets.
13451abf7346Smrg
13461abf7346SmrgConfiguration:
13471abf7346Smrg  -h, --help              display this help and exit
13481abf7346Smrg      --help=short        display options specific to this package
13491abf7346Smrg      --help=recursive    display the short help of all the included packages
13501abf7346Smrg  -V, --version           display version information and exit
13511abf7346Smrg  -q, --quiet, --silent   do not print \`checking...' messages
13521abf7346Smrg      --cache-file=FILE   cache test results in FILE [disabled]
13531abf7346Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
13541abf7346Smrg  -n, --no-create         do not create output files
13551abf7346Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
13561abf7346Smrg
13571abf7346SmrgInstallation directories:
13581abf7346Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
13598b6d6341Smrg                          [$ac_default_prefix]
13601abf7346Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
13618b6d6341Smrg                          [PREFIX]
13621abf7346Smrg
13631abf7346SmrgBy default, \`make install' will install all the files in
13641abf7346Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
13651abf7346Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
13661abf7346Smrgfor instance \`--prefix=\$HOME'.
13671abf7346Smrg
13681abf7346SmrgFor better control, use the options below.
13691abf7346Smrg
13701abf7346SmrgFine tuning of the installation directories:
13718b6d6341Smrg  --bindir=DIR            user executables [EPREFIX/bin]
13728b6d6341Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
13738b6d6341Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
13748b6d6341Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
13758b6d6341Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
13768b6d6341Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
13778b6d6341Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
13788b6d6341Smrg  --includedir=DIR        C header files [PREFIX/include]
13798b6d6341Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
13808b6d6341Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
13818b6d6341Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
13828b6d6341Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
13838b6d6341Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
13848b6d6341Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
13858b6d6341Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xman]
13868b6d6341Smrg  --htmldir=DIR           html documentation [DOCDIR]
13878b6d6341Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
13888b6d6341Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
13898b6d6341Smrg  --psdir=DIR             ps documentation [DOCDIR]
13901abf7346Smrg_ACEOF
13911abf7346Smrg
13921abf7346Smrg  cat <<\_ACEOF
13931abf7346Smrg
13941abf7346SmrgProgram names:
13951abf7346Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
13961abf7346Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
13971abf7346Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
13981abf7346Smrg
13991abf7346SmrgSystem types:
14001abf7346Smrg  --build=BUILD     configure for building on BUILD [guessed]
14011abf7346Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
14021abf7346Smrg_ACEOF
14031abf7346Smrgfi
14041abf7346Smrg
14051abf7346Smrgif test -n "$ac_init_help"; then
14061abf7346Smrg  case $ac_init_help in
14078b6d6341Smrg     short | recursive ) echo "Configuration of xman 1.1.0:";;
14081abf7346Smrg   esac
14091abf7346Smrg  cat <<\_ACEOF
14101abf7346Smrg
14111abf7346SmrgOptional Features:
14128b6d6341Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
14131abf7346Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
14141abf7346Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
14151abf7346Smrg  --enable-maintainer-mode  enable make rules and dependencies not useful
14161abf7346Smrg			  (and sometimes confusing) to the casual installer
14171abf7346Smrg  --disable-dependency-tracking  speeds up one-time build
14181abf7346Smrg  --enable-dependency-tracking   do not reject slow dependency extractors
14198b6d6341Smrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
14208b6d6341Smrg  --disable-silent-rules         verbose build output (undo: `make V=0')
14218b6d6341Smrg  --enable-strict-compilation
14228b6d6341Smrg                          Enable all warnings from compiler and make them
14238b6d6341Smrg                          errors (default: disabled)
14241abf7346Smrg
14251abf7346SmrgOptional Packages:
14261abf7346Smrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
14271abf7346Smrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
14288b6d6341Smrg  --with-release-version=STRING
14298b6d6341Smrg                          Use release version string in package name
14301abf7346Smrg  --with-helpdir=<path>   Set default directory for xman.help (default:
14311abf7346Smrg                          ${datadir}/X11)
14321abf7346Smrg  --with-sysmanpath=<path>
14331abf7346Smrg                          Set default system man page search path
14341abf7346Smrg  --with-localmanpath=<path>
14351abf7346Smrg                          Set default local man page search path
14368b6d6341Smrg  --with-manconfig=<filename>
14378b6d6341Smrg                          Set default system man configuration file
14388b6d6341Smrg  --with-appdefaultdir=<pathname>
14398b6d6341Smrg                          specify directory for app-defaults files (default is
14408b6d6341Smrg                          autodetected)
14411abf7346Smrg
14421abf7346SmrgSome influential environment variables:
14431abf7346Smrg  CC          C compiler command
14441abf7346Smrg  CFLAGS      C compiler flags
14451abf7346Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
14461abf7346Smrg              nonstandard directory <lib dir>
14471abf7346Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
14481abf7346Smrg  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
14491abf7346Smrg              you have headers in a nonstandard directory <include dir>
14508b6d6341Smrg  CPP         C preprocessor
14511abf7346Smrg  PKG_CONFIG  path to pkg-config utility
14528b6d6341Smrg  XMAN_CFLAGS C compiler flags for XMAN, overriding pkg-config
14538b6d6341Smrg  XMAN_LIBS   linker flags for XMAN, overriding pkg-config
14541abf7346Smrg  APPDEFS_CFLAGS
14551abf7346Smrg              C compiler flags for APPDEFS, overriding pkg-config
14561abf7346Smrg  APPDEFS_LIBS
14571abf7346Smrg              linker flags for APPDEFS, overriding pkg-config
14581abf7346Smrg
14591abf7346SmrgUse these variables to override the choices made by `configure' or to help
14601abf7346Smrgit to find libraries and programs with nonstandard names/locations.
14611abf7346Smrg
14621abf7346SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
14631abf7346Smrg_ACEOF
14641abf7346Smrgac_status=$?
14651abf7346Smrgfi
14661abf7346Smrg
14671abf7346Smrgif test "$ac_init_help" = "recursive"; then
14681abf7346Smrg  # If there are subdirs, report their specific --help.
14691abf7346Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
14708b6d6341Smrg    test -d "$ac_dir" ||
14718b6d6341Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
14728b6d6341Smrg      continue
14731abf7346Smrg    ac_builddir=.
14741abf7346Smrg
14751abf7346Smrgcase "$ac_dir" in
14761abf7346Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14771abf7346Smrg*)
14788b6d6341Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14791abf7346Smrg  # A ".." for each directory in $ac_dir_suffix.
14808b6d6341Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14811abf7346Smrg  case $ac_top_builddir_sub in
14821abf7346Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14831abf7346Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14841abf7346Smrg  esac ;;
14851abf7346Smrgesac
14861abf7346Smrgac_abs_top_builddir=$ac_pwd
14871abf7346Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
14881abf7346Smrg# for backward compatibility:
14891abf7346Smrgac_top_builddir=$ac_top_build_prefix
14901abf7346Smrg
14911abf7346Smrgcase $srcdir in
14921abf7346Smrg  .)  # We are building in place.
14931abf7346Smrg    ac_srcdir=.
14941abf7346Smrg    ac_top_srcdir=$ac_top_builddir_sub
14951abf7346Smrg    ac_abs_top_srcdir=$ac_pwd ;;
14961abf7346Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
14971abf7346Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
14981abf7346Smrg    ac_top_srcdir=$srcdir
14991abf7346Smrg    ac_abs_top_srcdir=$srcdir ;;
15001abf7346Smrg  *) # Relative name.
15011abf7346Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15021abf7346Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
15031abf7346Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15041abf7346Smrgesac
15051abf7346Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15061abf7346Smrg
15071abf7346Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
15081abf7346Smrg    # Check for guested configure.
15091abf7346Smrg    if test -f "$ac_srcdir/configure.gnu"; then
15101abf7346Smrg      echo &&
15111abf7346Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
15121abf7346Smrg    elif test -f "$ac_srcdir/configure"; then
15131abf7346Smrg      echo &&
15141abf7346Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
15151abf7346Smrg    else
15168b6d6341Smrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
15171abf7346Smrg    fi || ac_status=$?
15181abf7346Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
15191abf7346Smrg  done
15201abf7346Smrgfi
15211abf7346Smrg
15221abf7346Smrgtest -n "$ac_init_help" && exit $ac_status
15231abf7346Smrgif $ac_init_version; then
15241abf7346Smrg  cat <<\_ACEOF
15258b6d6341Smrgxman configure 1.1.0
15268b6d6341Smrggenerated by GNU Autoconf 2.63
15271abf7346Smrg
15281abf7346SmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15298b6d6341Smrg2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
15301abf7346SmrgThis configure script is free software; the Free Software Foundation
15311abf7346Smrggives unlimited permission to copy, distribute and modify it.
15321abf7346Smrg_ACEOF
15331abf7346Smrg  exit
15341abf7346Smrgfi
15351abf7346Smrgcat >config.log <<_ACEOF
15361abf7346SmrgThis file contains any messages produced by compilers while
15371abf7346Smrgrunning configure, to aid debugging if configure makes a mistake.
15381abf7346Smrg
15398b6d6341SmrgIt was created by xman $as_me 1.1.0, which was
15408b6d6341Smrggenerated by GNU Autoconf 2.63.  Invocation command line was
15411abf7346Smrg
15421abf7346Smrg  $ $0 $@
15431abf7346Smrg
15441abf7346Smrg_ACEOF
15451abf7346Smrgexec 5>>config.log
15461abf7346Smrg{
15471abf7346Smrgcat <<_ASUNAME
15481abf7346Smrg## --------- ##
15491abf7346Smrg## Platform. ##
15501abf7346Smrg## --------- ##
15511abf7346Smrg
15521abf7346Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
15531abf7346Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
15541abf7346Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
15551abf7346Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
15561abf7346Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
15571abf7346Smrg
15581abf7346Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
15591abf7346Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
15601abf7346Smrg
15611abf7346Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
15621abf7346Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
15631abf7346Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
15641abf7346Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
15651abf7346Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
15661abf7346Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
15671abf7346Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
15681abf7346Smrg
15691abf7346Smrg_ASUNAME
15701abf7346Smrg
15711abf7346Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15721abf7346Smrgfor as_dir in $PATH
15731abf7346Smrgdo
15741abf7346Smrg  IFS=$as_save_IFS
15751abf7346Smrg  test -z "$as_dir" && as_dir=.
15768b6d6341Smrg  $as_echo "PATH: $as_dir"
15771abf7346Smrgdone
15781abf7346SmrgIFS=$as_save_IFS
15791abf7346Smrg
15801abf7346Smrg} >&5
15811abf7346Smrg
15821abf7346Smrgcat >&5 <<_ACEOF
15831abf7346Smrg
15841abf7346Smrg
15851abf7346Smrg## ----------- ##
15861abf7346Smrg## Core tests. ##
15871abf7346Smrg## ----------- ##
15881abf7346Smrg
15891abf7346Smrg_ACEOF
15901abf7346Smrg
15911abf7346Smrg
15921abf7346Smrg# Keep a trace of the command line.
15931abf7346Smrg# Strip out --no-create and --no-recursion so they do not pile up.
15941abf7346Smrg# Strip out --silent because we don't want to record it for future runs.
15951abf7346Smrg# Also quote any args containing shell meta-characters.
15961abf7346Smrg# Make two passes to allow for proper duplicate-argument suppression.
15971abf7346Smrgac_configure_args=
15981abf7346Smrgac_configure_args0=
15991abf7346Smrgac_configure_args1=
16001abf7346Smrgac_must_keep_next=false
16011abf7346Smrgfor ac_pass in 1 2
16021abf7346Smrgdo
16031abf7346Smrg  for ac_arg
16041abf7346Smrg  do
16051abf7346Smrg    case $ac_arg in
16061abf7346Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
16071abf7346Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16081abf7346Smrg    | -silent | --silent | --silen | --sile | --sil)
16091abf7346Smrg      continue ;;
16101abf7346Smrg    *\'*)
16118b6d6341Smrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16121abf7346Smrg    esac
16131abf7346Smrg    case $ac_pass in
16141abf7346Smrg    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
16151abf7346Smrg    2)
16161abf7346Smrg      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
16171abf7346Smrg      if test $ac_must_keep_next = true; then
16181abf7346Smrg	ac_must_keep_next=false # Got value, back to normal.
16191abf7346Smrg      else
16201abf7346Smrg	case $ac_arg in
16211abf7346Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
16221abf7346Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
16231abf7346Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
16241abf7346Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
16251abf7346Smrg	    case "$ac_configure_args0 " in
16261abf7346Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
16271abf7346Smrg	    esac
16281abf7346Smrg	    ;;
16291abf7346Smrg	  -* ) ac_must_keep_next=true ;;
16301abf7346Smrg	esac
16311abf7346Smrg      fi
16321abf7346Smrg      ac_configure_args="$ac_configure_args '$ac_arg'"
16331abf7346Smrg      ;;
16341abf7346Smrg    esac
16351abf7346Smrg  done
16361abf7346Smrgdone
16371abf7346Smrg$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
16381abf7346Smrg$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
16391abf7346Smrg
16401abf7346Smrg# When interrupted or exit'd, cleanup temporary files, and complete
16411abf7346Smrg# config.log.  We remove comments because anyway the quotes in there
16421abf7346Smrg# would cause problems or look ugly.
16431abf7346Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
16441abf7346Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
16451abf7346Smrgtrap 'exit_status=$?
16461abf7346Smrg  # Save into config.log some information that might help in debugging.
16471abf7346Smrg  {
16481abf7346Smrg    echo
16491abf7346Smrg
16501abf7346Smrg    cat <<\_ASBOX
16511abf7346Smrg## ---------------- ##
16521abf7346Smrg## Cache variables. ##
16531abf7346Smrg## ---------------- ##
16541abf7346Smrg_ASBOX
16551abf7346Smrg    echo
16561abf7346Smrg    # The following way of writing the cache mishandles newlines in values,
16571abf7346Smrg(
16581abf7346Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
16591abf7346Smrg    eval ac_val=\$$ac_var
16601abf7346Smrg    case $ac_val in #(
16611abf7346Smrg    *${as_nl}*)
16621abf7346Smrg      case $ac_var in #(
16638b6d6341Smrg      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
16648b6d6341Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16651abf7346Smrg      esac
16661abf7346Smrg      case $ac_var in #(
16671abf7346Smrg      _ | IFS | as_nl) ;; #(
16688b6d6341Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16691abf7346Smrg      *) $as_unset $ac_var ;;
16701abf7346Smrg      esac ;;
16711abf7346Smrg    esac
16721abf7346Smrg  done
16731abf7346Smrg  (set) 2>&1 |
16741abf7346Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
16751abf7346Smrg    *${as_nl}ac_space=\ *)
16761abf7346Smrg      sed -n \
16771abf7346Smrg	"s/'\''/'\''\\\\'\'''\''/g;
16781abf7346Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
16791abf7346Smrg      ;; #(
16801abf7346Smrg    *)
16811abf7346Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16821abf7346Smrg      ;;
16831abf7346Smrg    esac |
16841abf7346Smrg    sort
16851abf7346Smrg)
16861abf7346Smrg    echo
16871abf7346Smrg
16881abf7346Smrg    cat <<\_ASBOX
16891abf7346Smrg## ----------------- ##
16901abf7346Smrg## Output variables. ##
16911abf7346Smrg## ----------------- ##
16921abf7346Smrg_ASBOX
16931abf7346Smrg    echo
16941abf7346Smrg    for ac_var in $ac_subst_vars
16951abf7346Smrg    do
16961abf7346Smrg      eval ac_val=\$$ac_var
16971abf7346Smrg      case $ac_val in
16988b6d6341Smrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
16991abf7346Smrg      esac
17008b6d6341Smrg      $as_echo "$ac_var='\''$ac_val'\''"
17011abf7346Smrg    done | sort
17021abf7346Smrg    echo
17031abf7346Smrg
17041abf7346Smrg    if test -n "$ac_subst_files"; then
17051abf7346Smrg      cat <<\_ASBOX
17061abf7346Smrg## ------------------- ##
17071abf7346Smrg## File substitutions. ##
17081abf7346Smrg## ------------------- ##
17091abf7346Smrg_ASBOX
17101abf7346Smrg      echo
17111abf7346Smrg      for ac_var in $ac_subst_files
17121abf7346Smrg      do
17131abf7346Smrg	eval ac_val=\$$ac_var
17141abf7346Smrg	case $ac_val in
17158b6d6341Smrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
17161abf7346Smrg	esac
17178b6d6341Smrg	$as_echo "$ac_var='\''$ac_val'\''"
17181abf7346Smrg      done | sort
17191abf7346Smrg      echo
17201abf7346Smrg    fi
17211abf7346Smrg
17221abf7346Smrg    if test -s confdefs.h; then
17231abf7346Smrg      cat <<\_ASBOX
17241abf7346Smrg## ----------- ##
17251abf7346Smrg## confdefs.h. ##
17261abf7346Smrg## ----------- ##
17271abf7346Smrg_ASBOX
17281abf7346Smrg      echo
17291abf7346Smrg      cat confdefs.h
17301abf7346Smrg      echo
17311abf7346Smrg    fi
17321abf7346Smrg    test "$ac_signal" != 0 &&
17338b6d6341Smrg      $as_echo "$as_me: caught signal $ac_signal"
17348b6d6341Smrg    $as_echo "$as_me: exit $exit_status"
17351abf7346Smrg  } >&5
17361abf7346Smrg  rm -f core *.core core.conftest.* &&
17371abf7346Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
17381abf7346Smrg    exit $exit_status
17391abf7346Smrg' 0
17401abf7346Smrgfor ac_signal in 1 2 13 15; do
17411abf7346Smrg  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
17421abf7346Smrgdone
17431abf7346Smrgac_signal=0
17441abf7346Smrg
17451abf7346Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
17461abf7346Smrgrm -f -r conftest* confdefs.h
17471abf7346Smrg
17481abf7346Smrg# Predefined preprocessor variables.
17491abf7346Smrg
17501abf7346Smrgcat >>confdefs.h <<_ACEOF
17511abf7346Smrg#define PACKAGE_NAME "$PACKAGE_NAME"
17521abf7346Smrg_ACEOF
17531abf7346Smrg
17541abf7346Smrg
17551abf7346Smrgcat >>confdefs.h <<_ACEOF
17561abf7346Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
17571abf7346Smrg_ACEOF
17581abf7346Smrg
17591abf7346Smrg
17601abf7346Smrgcat >>confdefs.h <<_ACEOF
17611abf7346Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
17621abf7346Smrg_ACEOF
17631abf7346Smrg
17641abf7346Smrg
17651abf7346Smrgcat >>confdefs.h <<_ACEOF
17661abf7346Smrg#define PACKAGE_STRING "$PACKAGE_STRING"
17671abf7346Smrg_ACEOF
17681abf7346Smrg
17691abf7346Smrg
17701abf7346Smrgcat >>confdefs.h <<_ACEOF
17711abf7346Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
17721abf7346Smrg_ACEOF
17731abf7346Smrg
17741abf7346Smrg
17751abf7346Smrg# Let the site file select an alternate cache file if it wants to.
17768b6d6341Smrg# Prefer an explicitly selected file to automatically selected ones.
17778b6d6341Smrgac_site_file1=NONE
17788b6d6341Smrgac_site_file2=NONE
17791abf7346Smrgif test -n "$CONFIG_SITE"; then
17808b6d6341Smrg  ac_site_file1=$CONFIG_SITE
17811abf7346Smrgelif test "x$prefix" != xNONE; then
17828b6d6341Smrg  ac_site_file1=$prefix/share/config.site
17838b6d6341Smrg  ac_site_file2=$prefix/etc/config.site
17841abf7346Smrgelse
17858b6d6341Smrg  ac_site_file1=$ac_default_prefix/share/config.site
17868b6d6341Smrg  ac_site_file2=$ac_default_prefix/etc/config.site
17871abf7346Smrgfi
17888b6d6341Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
17891abf7346Smrgdo
17908b6d6341Smrg  test "x$ac_site_file" = xNONE && continue
17911abf7346Smrg  if test -r "$ac_site_file"; then
17928b6d6341Smrg    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
17938b6d6341Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
17941abf7346Smrg    sed 's/^/| /' "$ac_site_file" >&5
17951abf7346Smrg    . "$ac_site_file"
17961abf7346Smrg  fi
17971abf7346Smrgdone
17981abf7346Smrg
17991abf7346Smrgif test -r "$cache_file"; then
18001abf7346Smrg  # Some versions of bash will fail to source /dev/null (special
18011abf7346Smrg  # files actually), so we avoid doing that.
18021abf7346Smrg  if test -f "$cache_file"; then
18038b6d6341Smrg    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
18048b6d6341Smrg$as_echo "$as_me: loading cache $cache_file" >&6;}
18051abf7346Smrg    case $cache_file in
18061abf7346Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
18071abf7346Smrg      *)                      . "./$cache_file";;
18081abf7346Smrg    esac
18091abf7346Smrg  fi
18101abf7346Smrgelse
18118b6d6341Smrg  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
18128b6d6341Smrg$as_echo "$as_me: creating cache $cache_file" >&6;}
18131abf7346Smrg  >$cache_file
18141abf7346Smrgfi
18151abf7346Smrg
18161abf7346Smrg# Check that the precious variables saved in the cache have kept the same
18171abf7346Smrg# value.
18181abf7346Smrgac_cache_corrupted=false
18191abf7346Smrgfor ac_var in $ac_precious_vars; do
18201abf7346Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
18211abf7346Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
18221abf7346Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
18231abf7346Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
18241abf7346Smrg  case $ac_old_set,$ac_new_set in
18251abf7346Smrg    set,)
18268b6d6341Smrg      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
18278b6d6341Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
18281abf7346Smrg      ac_cache_corrupted=: ;;
18291abf7346Smrg    ,set)
18308b6d6341Smrg      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
18318b6d6341Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
18321abf7346Smrg      ac_cache_corrupted=: ;;
18331abf7346Smrg    ,);;
18341abf7346Smrg    *)
18351abf7346Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
18368b6d6341Smrg	# differences in whitespace do not lead to failure.
18378b6d6341Smrg	ac_old_val_w=`echo x $ac_old_val`
18388b6d6341Smrg	ac_new_val_w=`echo x $ac_new_val`
18398b6d6341Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
18408b6d6341Smrg	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
18418b6d6341Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
18428b6d6341Smrg	  ac_cache_corrupted=:
18438b6d6341Smrg	else
18448b6d6341Smrg	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
18458b6d6341Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
18468b6d6341Smrg	  eval $ac_var=\$ac_old_val
18478b6d6341Smrg	fi
18488b6d6341Smrg	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
18498b6d6341Smrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
18508b6d6341Smrg	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
18518b6d6341Smrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
18521abf7346Smrg      fi;;
18531abf7346Smrg  esac
18541abf7346Smrg  # Pass precious variables to config.status.
18551abf7346Smrg  if test "$ac_new_set" = set; then
18561abf7346Smrg    case $ac_new_val in
18578b6d6341Smrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
18581abf7346Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
18591abf7346Smrg    esac
18601abf7346Smrg    case " $ac_configure_args " in
18611abf7346Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
18621abf7346Smrg      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
18631abf7346Smrg    esac
18641abf7346Smrg  fi
18651abf7346Smrgdone
18661abf7346Smrgif $ac_cache_corrupted; then
18678b6d6341Smrg  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18688b6d6341Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18698b6d6341Smrg  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
18708b6d6341Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
18718b6d6341Smrg  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
18728b6d6341Smrg$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
18731abf7346Smrg   { (exit 1); exit 1; }; }
18741abf7346Smrgfi
18751abf7346Smrg
18761abf7346Smrg
18771abf7346Smrg
18781abf7346Smrg
18791abf7346Smrg
18801abf7346Smrg
18811abf7346Smrg
18821abf7346Smrg
18831abf7346Smrg
18841abf7346Smrg
18851abf7346Smrg
18861abf7346Smrg
18871abf7346Smrg
18881abf7346Smrg
18891abf7346Smrg
18901abf7346Smrg
18911abf7346Smrg
18921abf7346Smrg
18931abf7346Smrg
18941abf7346Smrg
18951abf7346Smrg
18961abf7346Smrg
18971abf7346Smrg
18981abf7346Smrg
18991abf7346Smrg
19001abf7346Smrgac_ext=c
19011abf7346Smrgac_cpp='$CPP $CPPFLAGS'
19021abf7346Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19031abf7346Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19041abf7346Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
19051abf7346Smrg
19061abf7346Smrg
19078b6d6341Smrgam__api_version='1.11'
19081abf7346Smrg
19091abf7346Smrgac_aux_dir=
19101abf7346Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
19111abf7346Smrg  if test -f "$ac_dir/install-sh"; then
19121abf7346Smrg    ac_aux_dir=$ac_dir
19131abf7346Smrg    ac_install_sh="$ac_aux_dir/install-sh -c"
19141abf7346Smrg    break
19151abf7346Smrg  elif test -f "$ac_dir/install.sh"; then
19161abf7346Smrg    ac_aux_dir=$ac_dir
19171abf7346Smrg    ac_install_sh="$ac_aux_dir/install.sh -c"
19181abf7346Smrg    break
19191abf7346Smrg  elif test -f "$ac_dir/shtool"; then
19201abf7346Smrg    ac_aux_dir=$ac_dir
19211abf7346Smrg    ac_install_sh="$ac_aux_dir/shtool install -c"
19221abf7346Smrg    break
19231abf7346Smrg  fi
19241abf7346Smrgdone
19251abf7346Smrgif test -z "$ac_aux_dir"; then
19268b6d6341Smrg  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
19278b6d6341Smrg$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
19281abf7346Smrg   { (exit 1); exit 1; }; }
19291abf7346Smrgfi
19301abf7346Smrg
19311abf7346Smrg# These three variables are undocumented and unsupported,
19321abf7346Smrg# and are intended to be withdrawn in a future Autoconf release.
19331abf7346Smrg# They can cause serious problems if a builder's source tree is in a directory
19341abf7346Smrg# whose full name contains unusual characters.
19351abf7346Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
19361abf7346Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
19371abf7346Smrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
19381abf7346Smrg
19391abf7346Smrg
19401abf7346Smrg# Find a good install program.  We prefer a C program (faster),
19411abf7346Smrg# so one script is as good as another.  But avoid the broken or
19421abf7346Smrg# incompatible versions:
19431abf7346Smrg# SysV /etc/install, /usr/sbin/install
19441abf7346Smrg# SunOS /usr/etc/install
19451abf7346Smrg# IRIX /sbin/install
19461abf7346Smrg# AIX /bin/install
19471abf7346Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
19481abf7346Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19491abf7346Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
19501abf7346Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19511abf7346Smrg# OS/2's system install, which has a completely different semantic
19521abf7346Smrg# ./install, which can be erroneously created by make from ./install.sh.
19538b6d6341Smrg# Reject install programs that cannot install multiple files.
19548b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19558b6d6341Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
19561abf7346Smrgif test -z "$INSTALL"; then
19571abf7346Smrgif test "${ac_cv_path_install+set}" = set; then
19588b6d6341Smrg  $as_echo_n "(cached) " >&6
19591abf7346Smrgelse
19601abf7346Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19611abf7346Smrgfor as_dir in $PATH
19621abf7346Smrgdo
19631abf7346Smrg  IFS=$as_save_IFS
19641abf7346Smrg  test -z "$as_dir" && as_dir=.
19651abf7346Smrg  # Account for people who put trailing slashes in PATH elements.
19661abf7346Smrgcase $as_dir/ in
19671abf7346Smrg  ./ | .// | /cC/* | \
19681abf7346Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19691abf7346Smrg  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19701abf7346Smrg  /usr/ucb/* ) ;;
19711abf7346Smrg  *)
19721abf7346Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
19731abf7346Smrg    # Don't use installbsd from OSF since it installs stuff as root
19741abf7346Smrg    # by default.
19751abf7346Smrg    for ac_prog in ginstall scoinst install; do
19761abf7346Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
19771abf7346Smrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19781abf7346Smrg	  if test $ac_prog = install &&
19791abf7346Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19801abf7346Smrg	    # AIX install.  It has an incompatible calling convention.
19811abf7346Smrg	    :
19821abf7346Smrg	  elif test $ac_prog = install &&
19831abf7346Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19841abf7346Smrg	    # program-specific install script used by HP pwplus--don't use.
19851abf7346Smrg	    :
19861abf7346Smrg	  else
19878b6d6341Smrg	    rm -rf conftest.one conftest.two conftest.dir
19888b6d6341Smrg	    echo one > conftest.one
19898b6d6341Smrg	    echo two > conftest.two
19908b6d6341Smrg	    mkdir conftest.dir
19918b6d6341Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
19928b6d6341Smrg	      test -s conftest.one && test -s conftest.two &&
19938b6d6341Smrg	      test -s conftest.dir/conftest.one &&
19948b6d6341Smrg	      test -s conftest.dir/conftest.two
19958b6d6341Smrg	    then
19968b6d6341Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19978b6d6341Smrg	      break 3
19988b6d6341Smrg	    fi
19991abf7346Smrg	  fi
20001abf7346Smrg	fi
20011abf7346Smrg      done
20021abf7346Smrg    done
20031abf7346Smrg    ;;
20041abf7346Smrgesac
20058b6d6341Smrg
20061abf7346Smrgdone
20071abf7346SmrgIFS=$as_save_IFS
20081abf7346Smrg
20098b6d6341Smrgrm -rf conftest.one conftest.two conftest.dir
20101abf7346Smrg
20111abf7346Smrgfi
20121abf7346Smrg  if test "${ac_cv_path_install+set}" = set; then
20131abf7346Smrg    INSTALL=$ac_cv_path_install
20141abf7346Smrg  else
20151abf7346Smrg    # As a last resort, use the slow shell script.  Don't cache a
20161abf7346Smrg    # value for INSTALL within a source directory, because that will
20171abf7346Smrg    # break other packages using the cache if that directory is
20181abf7346Smrg    # removed, or if the value is a relative name.
20191abf7346Smrg    INSTALL=$ac_install_sh
20201abf7346Smrg  fi
20211abf7346Smrgfi
20228b6d6341Smrg{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
20238b6d6341Smrg$as_echo "$INSTALL" >&6; }
20241abf7346Smrg
20251abf7346Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20261abf7346Smrg# It thinks the first close brace ends the variable substitution.
20271abf7346Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20281abf7346Smrg
20291abf7346Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20301abf7346Smrg
20311abf7346Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20321abf7346Smrg
20338b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20348b6d6341Smrg$as_echo_n "checking whether build environment is sane... " >&6; }
20351abf7346Smrg# Just in case
20361abf7346Smrgsleep 1
20371abf7346Smrgecho timestamp > conftest.file
20388b6d6341Smrg# Reject unsafe characters in $srcdir or the absolute working directory
20398b6d6341Smrg# name.  Accept space and tab only in the latter.
20408b6d6341Smrgam_lf='
20418b6d6341Smrg'
20428b6d6341Smrgcase `pwd` in
20438b6d6341Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
20448b6d6341Smrg    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
20458b6d6341Smrg$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
20468b6d6341Smrg   { (exit 1); exit 1; }; };;
20478b6d6341Smrgesac
20488b6d6341Smrgcase $srcdir in
20498b6d6341Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
20508b6d6341Smrg    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
20518b6d6341Smrg$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
20528b6d6341Smrg   { (exit 1); exit 1; }; };;
20538b6d6341Smrgesac
20548b6d6341Smrg
20551abf7346Smrg# Do `set' in a subshell so we don't clobber the current shell's
20561abf7346Smrg# arguments.  Must try -L first in case configure is actually a
20571abf7346Smrg# symlink; some systems play weird games with the mod time of symlinks
20581abf7346Smrg# (eg FreeBSD returns the mod time of the symlink's containing
20591abf7346Smrg# directory).
20601abf7346Smrgif (
20618b6d6341Smrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
20621abf7346Smrg   if test "$*" = "X"; then
20631abf7346Smrg      # -L didn't work.
20648b6d6341Smrg      set X `ls -t "$srcdir/configure" conftest.file`
20651abf7346Smrg   fi
20661abf7346Smrg   rm -f conftest.file
20671abf7346Smrg   if test "$*" != "X $srcdir/configure conftest.file" \
20681abf7346Smrg      && test "$*" != "X conftest.file $srcdir/configure"; then
20691abf7346Smrg
20701abf7346Smrg      # If neither matched, then we have a broken ls.  This can happen
20711abf7346Smrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
20721abf7346Smrg      # broken ls alias from the environment.  This has actually
20731abf7346Smrg      # happened.  Such a system could not be considered "sane".
20748b6d6341Smrg      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
20751abf7346Smrgalias in your environment" >&5
20768b6d6341Smrg$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
20771abf7346Smrgalias in your environment" >&2;}
20781abf7346Smrg   { (exit 1); exit 1; }; }
20791abf7346Smrg   fi
20801abf7346Smrg
20811abf7346Smrg   test "$2" = conftest.file
20821abf7346Smrg   )
20831abf7346Smrgthen
20841abf7346Smrg   # Ok.
20851abf7346Smrg   :
20861abf7346Smrgelse
20878b6d6341Smrg   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20881abf7346SmrgCheck your system clock" >&5
20898b6d6341Smrg$as_echo "$as_me: error: newly created file is older than distributed files!
20901abf7346SmrgCheck your system clock" >&2;}
20911abf7346Smrg   { (exit 1); exit 1; }; }
20921abf7346Smrgfi
20938b6d6341Smrg{ $as_echo "$as_me:$LINENO: result: yes" >&5
20948b6d6341Smrg$as_echo "yes" >&6; }
20951abf7346Smrgtest "$program_prefix" != NONE &&
20961abf7346Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
20971abf7346Smrg# Use a double $ so make ignores it.
20981abf7346Smrgtest "$program_suffix" != NONE &&
20991abf7346Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
21008b6d6341Smrg# Double any \ or $.
21011abf7346Smrg# By default was `s,x,x', remove it if useless.
21028b6d6341Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
21038b6d6341Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
21041abf7346Smrg
21051abf7346Smrg# expand $ac_aux_dir to an absolute path
21061abf7346Smrgam_aux_dir=`cd $ac_aux_dir && pwd`
21071abf7346Smrg
21088b6d6341Smrgif test x"${MISSING+set}" != xset; then
21098b6d6341Smrg  case $am_aux_dir in
21108b6d6341Smrg  *\ * | *\	*)
21118b6d6341Smrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
21128b6d6341Smrg  *)
21138b6d6341Smrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
21148b6d6341Smrg  esac
21158b6d6341Smrgfi
21161abf7346Smrg# Use eval to expand $SHELL
21171abf7346Smrgif eval "$MISSING --run true"; then
21181abf7346Smrg  am_missing_run="$MISSING --run "
21191abf7346Smrgelse
21201abf7346Smrg  am_missing_run=
21218b6d6341Smrg  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
21228b6d6341Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
21238b6d6341Smrgfi
21248b6d6341Smrg
21258b6d6341Smrgif test x"${install_sh}" != xset; then
21268b6d6341Smrg  case $am_aux_dir in
21278b6d6341Smrg  *\ * | *\	*)
21288b6d6341Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
21298b6d6341Smrg  *)
21308b6d6341Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
21318b6d6341Smrg  esac
21328b6d6341Smrgfi
21338b6d6341Smrg
21348b6d6341Smrg# Installed binaries are usually stripped using `strip' when the user
21358b6d6341Smrg# run `make install-strip'.  However `strip' might not be the right
21368b6d6341Smrg# tool to use in cross-compilation environments, therefore Automake
21378b6d6341Smrg# will honor the `STRIP' environment variable to overrule this program.
21388b6d6341Smrgif test "$cross_compiling" != no; then
21398b6d6341Smrg  if test -n "$ac_tool_prefix"; then
21408b6d6341Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
21418b6d6341Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
21428b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21438b6d6341Smrg$as_echo_n "checking for $ac_word... " >&6; }
21448b6d6341Smrgif test "${ac_cv_prog_STRIP+set}" = set; then
21458b6d6341Smrg  $as_echo_n "(cached) " >&6
21468b6d6341Smrgelse
21478b6d6341Smrg  if test -n "$STRIP"; then
21488b6d6341Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
21498b6d6341Smrgelse
21508b6d6341Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21518b6d6341Smrgfor as_dir in $PATH
21528b6d6341Smrgdo
21538b6d6341Smrg  IFS=$as_save_IFS
21548b6d6341Smrg  test -z "$as_dir" && as_dir=.
21558b6d6341Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
21568b6d6341Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21578b6d6341Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
21588b6d6341Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21598b6d6341Smrg    break 2
21608b6d6341Smrg  fi
21618b6d6341Smrgdone
21628b6d6341Smrgdone
21638b6d6341SmrgIFS=$as_save_IFS
21648b6d6341Smrg
21658b6d6341Smrgfi
21668b6d6341Smrgfi
21678b6d6341SmrgSTRIP=$ac_cv_prog_STRIP
21688b6d6341Smrgif test -n "$STRIP"; then
21698b6d6341Smrg  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
21708b6d6341Smrg$as_echo "$STRIP" >&6; }
21718b6d6341Smrgelse
21728b6d6341Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
21738b6d6341Smrg$as_echo "no" >&6; }
21748b6d6341Smrgfi
21758b6d6341Smrg
21768b6d6341Smrg
21778b6d6341Smrgfi
21788b6d6341Smrgif test -z "$ac_cv_prog_STRIP"; then
21798b6d6341Smrg  ac_ct_STRIP=$STRIP
21808b6d6341Smrg  # Extract the first word of "strip", so it can be a program name with args.
21818b6d6341Smrgset dummy strip; ac_word=$2
21828b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21838b6d6341Smrg$as_echo_n "checking for $ac_word... " >&6; }
21848b6d6341Smrgif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
21858b6d6341Smrg  $as_echo_n "(cached) " >&6
21868b6d6341Smrgelse
21878b6d6341Smrg  if test -n "$ac_ct_STRIP"; then
21888b6d6341Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
21898b6d6341Smrgelse
21908b6d6341Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21918b6d6341Smrgfor as_dir in $PATH
21928b6d6341Smrgdo
21938b6d6341Smrg  IFS=$as_save_IFS
21948b6d6341Smrg  test -z "$as_dir" && as_dir=.
21958b6d6341Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
21968b6d6341Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21978b6d6341Smrg    ac_cv_prog_ac_ct_STRIP="strip"
21988b6d6341Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21998b6d6341Smrg    break 2
22008b6d6341Smrg  fi
22018b6d6341Smrgdone
22028b6d6341Smrgdone
22038b6d6341SmrgIFS=$as_save_IFS
22048b6d6341Smrg
22058b6d6341Smrgfi
22068b6d6341Smrgfi
22078b6d6341Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
22088b6d6341Smrgif test -n "$ac_ct_STRIP"; then
22098b6d6341Smrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
22108b6d6341Smrg$as_echo "$ac_ct_STRIP" >&6; }
22118b6d6341Smrgelse
22128b6d6341Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
22138b6d6341Smrg$as_echo "no" >&6; }
22148b6d6341Smrgfi
22158b6d6341Smrg
22168b6d6341Smrg  if test "x$ac_ct_STRIP" = x; then
22178b6d6341Smrg    STRIP=":"
22188b6d6341Smrg  else
22198b6d6341Smrg    case $cross_compiling:$ac_tool_warned in
22208b6d6341Smrgyes:)
22218b6d6341Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
22228b6d6341Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22238b6d6341Smrgac_tool_warned=yes ;;
22248b6d6341Smrgesac
22258b6d6341Smrg    STRIP=$ac_ct_STRIP
22268b6d6341Smrg  fi
22278b6d6341Smrgelse
22288b6d6341Smrg  STRIP="$ac_cv_prog_STRIP"
22298b6d6341Smrgfi
22308b6d6341Smrg
22311abf7346Smrgfi
22328b6d6341SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
22331abf7346Smrg
22348b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
22358b6d6341Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
22361abf7346Smrgif test -z "$MKDIR_P"; then
22371abf7346Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
22388b6d6341Smrg  $as_echo_n "(cached) " >&6
22391abf7346Smrgelse
22401abf7346Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22411abf7346Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
22421abf7346Smrgdo
22431abf7346Smrg  IFS=$as_save_IFS
22441abf7346Smrg  test -z "$as_dir" && as_dir=.
22451abf7346Smrg  for ac_prog in mkdir gmkdir; do
22461abf7346Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
22471abf7346Smrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
22481abf7346Smrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
22491abf7346Smrg	     'mkdir (GNU coreutils) '* | \
22501abf7346Smrg	     'mkdir (coreutils) '* | \
22511abf7346Smrg	     'mkdir (fileutils) '4.1*)
22521abf7346Smrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
22531abf7346Smrg	       break 3;;
22541abf7346Smrg	   esac
22551abf7346Smrg	 done
22561abf7346Smrg       done
22571abf7346Smrgdone
22581abf7346SmrgIFS=$as_save_IFS
22591abf7346Smrg
22601abf7346Smrgfi
22611abf7346Smrg
22621abf7346Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
22631abf7346Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
22641abf7346Smrg  else
22651abf7346Smrg    # As a last resort, use the slow shell script.  Don't cache a
22661abf7346Smrg    # value for MKDIR_P within a source directory, because that will
22671abf7346Smrg    # break other packages using the cache if that directory is
22681abf7346Smrg    # removed, or if the value is a relative name.
22691abf7346Smrg    test -d ./--version && rmdir ./--version
22701abf7346Smrg    MKDIR_P="$ac_install_sh -d"
22711abf7346Smrg  fi
22721abf7346Smrgfi
22738b6d6341Smrg{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
22748b6d6341Smrg$as_echo "$MKDIR_P" >&6; }
22751abf7346Smrg
22761abf7346Smrgmkdir_p="$MKDIR_P"
22771abf7346Smrgcase $mkdir_p in
22781abf7346Smrg  [\\/$]* | ?:[\\/]*) ;;
22791abf7346Smrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
22801abf7346Smrgesac
22811abf7346Smrg
22821abf7346Smrgfor ac_prog in gawk mawk nawk awk
22831abf7346Smrgdo
22841abf7346Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
22851abf7346Smrgset dummy $ac_prog; ac_word=$2
22868b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22878b6d6341Smrg$as_echo_n "checking for $ac_word... " >&6; }
22881abf7346Smrgif test "${ac_cv_prog_AWK+set}" = set; then
22898b6d6341Smrg  $as_echo_n "(cached) " >&6
22901abf7346Smrgelse
22911abf7346Smrg  if test -n "$AWK"; then
22921abf7346Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
22931abf7346Smrgelse
22941abf7346Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22951abf7346Smrgfor as_dir in $PATH
22961abf7346Smrgdo
22971abf7346Smrg  IFS=$as_save_IFS
22981abf7346Smrg  test -z "$as_dir" && as_dir=.
22991abf7346Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
23001abf7346Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23011abf7346Smrg    ac_cv_prog_AWK="$ac_prog"
23028b6d6341Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23031abf7346Smrg    break 2
23041abf7346Smrg  fi
23051abf7346Smrgdone
23061abf7346Smrgdone
23071abf7346SmrgIFS=$as_save_IFS
23081abf7346Smrg
23091abf7346Smrgfi
23101abf7346Smrgfi
23111abf7346SmrgAWK=$ac_cv_prog_AWK
23121abf7346Smrgif test -n "$AWK"; then
23138b6d6341Smrg  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
23148b6d6341Smrg$as_echo "$AWK" >&6; }
23151abf7346Smrgelse
23168b6d6341Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
23178b6d6341Smrg$as_echo "no" >&6; }
23181abf7346Smrgfi
23191abf7346Smrg
23201abf7346Smrg
23211abf7346Smrg  test -n "$AWK" && break
23221abf7346Smrgdone
23231abf7346Smrg
23248b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
23258b6d6341Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
23268b6d6341Smrgset x ${MAKE-make}
23278b6d6341Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
23281abf7346Smrgif { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
23298b6d6341Smrg  $as_echo_n "(cached) " >&6
23301abf7346Smrgelse
23311abf7346Smrg  cat >conftest.make <<\_ACEOF
23321abf7346SmrgSHELL = /bin/sh
23331abf7346Smrgall:
23341abf7346Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
23351abf7346Smrg_ACEOF
23361abf7346Smrg# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23371abf7346Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
23381abf7346Smrg  *@@@%%%=?*=@@@%%%*)
23391abf7346Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
23401abf7346Smrg  *)
23411abf7346Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
23421abf7346Smrgesac
23431abf7346Smrgrm -f conftest.make
23441abf7346Smrgfi
23451abf7346Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
23468b6d6341Smrg  { $as_echo "$as_me:$LINENO: result: yes" >&5
23478b6d6341Smrg$as_echo "yes" >&6; }
23481abf7346Smrg  SET_MAKE=
23491abf7346Smrgelse
23508b6d6341Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
23518b6d6341Smrg$as_echo "no" >&6; }
23521abf7346Smrg  SET_MAKE="MAKE=${MAKE-make}"
23531abf7346Smrgfi
23541abf7346Smrg
23551abf7346Smrgrm -rf .tst 2>/dev/null
23561abf7346Smrgmkdir .tst 2>/dev/null
23571abf7346Smrgif test -d .tst; then
23581abf7346Smrg  am__leading_dot=.
23591abf7346Smrgelse
23601abf7346Smrg  am__leading_dot=_
23611abf7346Smrgfi
23621abf7346Smrgrmdir .tst 2>/dev/null
23631abf7346Smrg
23641abf7346Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
23651abf7346Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
23661abf7346Smrg  # is not polluted with repeated "-I."
23671abf7346Smrg  am__isrc=' -I$(srcdir)'
23681abf7346Smrg  # test to see if srcdir already configured
23691abf7346Smrg  if test -f $srcdir/config.status; then
23708b6d6341Smrg    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
23718b6d6341Smrg$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
23721abf7346Smrg   { (exit 1); exit 1; }; }
23731abf7346Smrg  fi
23741abf7346Smrgfi
23751abf7346Smrg
23761abf7346Smrg# test whether we have cygpath
23771abf7346Smrgif test -z "$CYGPATH_W"; then
23781abf7346Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
23791abf7346Smrg    CYGPATH_W='cygpath -w'
23801abf7346Smrg  else
23811abf7346Smrg    CYGPATH_W=echo
23821abf7346Smrg  fi
23831abf7346Smrgfi
23841abf7346Smrg
23851abf7346Smrg
23861abf7346Smrg# Define the identity of the package.
23871abf7346Smrg PACKAGE='xman'
23888b6d6341Smrg VERSION='1.1.0'
23891abf7346Smrg
23901abf7346Smrg
23911abf7346Smrgcat >>confdefs.h <<_ACEOF
23921abf7346Smrg#define PACKAGE "$PACKAGE"
23931abf7346Smrg_ACEOF
23941abf7346Smrg
23951abf7346Smrg
23961abf7346Smrgcat >>confdefs.h <<_ACEOF
23971abf7346Smrg#define VERSION "$VERSION"
23981abf7346Smrg_ACEOF
23991abf7346Smrg
24001abf7346Smrg# Some tools Automake needs.
24011abf7346Smrg
24021abf7346SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
24031abf7346Smrg
24041abf7346Smrg
24051abf7346SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
24061abf7346Smrg
24071abf7346Smrg
24081abf7346SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
24091abf7346Smrg
24101abf7346Smrg
24111abf7346SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
24121abf7346Smrg
24131abf7346Smrg
24141abf7346SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
24151abf7346Smrg
24161abf7346Smrg# We need awk for the "check" target.  The system "awk" is bad on
24171abf7346Smrg# some platforms.
24181abf7346Smrg# Always define AMTAR for backward compatibility.
24191abf7346Smrg
24201abf7346SmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
24211abf7346Smrg
24221abf7346Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
24231abf7346Smrg
24241abf7346Smrg
24251abf7346Smrg
24261abf7346Smrg
24271abf7346Smrg
24288b6d6341Smrg
24298b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
24308b6d6341Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
24311abf7346Smrg    # Check whether --enable-maintainer-mode was given.
24321abf7346Smrgif test "${enable_maintainer_mode+set}" = set; then
24331abf7346Smrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
24341abf7346Smrgelse
24351abf7346Smrg  USE_MAINTAINER_MODE=no
24361abf7346Smrgfi
24371abf7346Smrg
24388b6d6341Smrg  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
24398b6d6341Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
24401abf7346Smrg   if test $USE_MAINTAINER_MODE = yes; then
24411abf7346Smrg  MAINTAINER_MODE_TRUE=
24421abf7346Smrg  MAINTAINER_MODE_FALSE='#'
24431abf7346Smrgelse
24441abf7346Smrg  MAINTAINER_MODE_TRUE='#'
24451abf7346Smrg  MAINTAINER_MODE_FALSE=
24461abf7346Smrgfi
24471abf7346Smrg
24481abf7346Smrg  MAINT=$MAINTAINER_MODE_TRUE
24491abf7346Smrg
24501abf7346Smrg
24511abf7346Smrg
24528b6d6341Smrg# Require xorg-macros 1.3 or later: XORG_DEFAULT_OPTIONS
24538b6d6341Smrg
24548b6d6341Smrg
24558b6d6341Smrg
24568b6d6341Smrg
24578b6d6341Smrg
24588b6d6341Smrg
24598b6d6341Smrg
24608b6d6341Smrg
24618b6d6341Smrg
24628b6d6341Smrg
24638b6d6341Smrg
24648b6d6341Smrg
24651abf7346Smrgac_config_headers="$ac_config_headers config.h"
24661abf7346Smrg
24671abf7346Smrg
24681abf7346Smrgac_ext=c
24691abf7346Smrgac_cpp='$CPP $CPPFLAGS'
24701abf7346Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24711abf7346Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24721abf7346Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
24731abf7346Smrgif test -n "$ac_tool_prefix"; then
24741abf7346Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
24751abf7346Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
24768b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24778b6d6341Smrg$as_echo_n "checking for $ac_word... " >&6; }
24781abf7346Smrgif test "${ac_cv_prog_CC+set}" = set; then
24798b6d6341Smrg  $as_echo_n "(cached) " >&6
24801abf7346Smrgelse
24811abf7346Smrg  if test -n "$CC"; then
24821abf7346Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
24831abf7346Smrgelse
24841abf7346Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24851abf7346Smrgfor as_dir in $PATH
24861abf7346Smrgdo
24871abf7346Smrg  IFS=$as_save_IFS
24881abf7346Smrg  test -z "$as_dir" && as_dir=.
24891abf7346Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
24901abf7346Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24911abf7346Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
24928b6d6341Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24931abf7346Smrg    break 2
24941abf7346Smrg  fi
24951abf7346Smrgdone
24961abf7346Smrgdone
24971abf7346SmrgIFS=$as_save_IFS
24981abf7346Smrg
24991abf7346Smrgfi
25001abf7346Smrgfi
25011abf7346SmrgCC=$ac_cv_prog_CC
25021abf7346Smrgif test -n "$CC"; then
25038b6d6341Smrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
25048b6d6341Smrg$as_echo "$CC" >&6; }
25051abf7346Smrgelse
25068b6d6341Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
25078b6d6341Smrg$as_echo "no" >&6; }
25081abf7346Smrgfi
25091abf7346Smrg
25101abf7346Smrg
25111abf7346Smrgfi
25121abf7346Smrgif test -z "$ac_cv_prog_CC"; then
25131abf7346Smrg  ac_ct_CC=$CC
25141abf7346Smrg  # Extract the first word of "gcc", so it can be a program name with args.
25151abf7346Smrgset dummy gcc; ac_word=$2
25168b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
25178b6d6341Smrg$as_echo_n "checking for $ac_word... " >&6; }
25181abf7346Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
25198b6d6341Smrg  $as_echo_n "(cached) " >&6
25201abf7346Smrgelse
25211abf7346Smrg  if test -n "$ac_ct_CC"; then
25221abf7346Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
25231abf7346Smrgelse
25241abf7346Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25251abf7346Smrgfor as_dir in $PATH
25261abf7346Smrgdo
25271abf7346Smrg  IFS=$as_save_IFS
25281abf7346Smrg  test -z "$as_dir" && as_dir=.
25291abf7346Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
25301abf7346Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25311abf7346Smrg    ac_cv_prog_ac_ct_CC="gcc"
25328b6d6341Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25331abf7346Smrg    break 2
25341abf7346Smrg  fi
25351abf7346Smrgdone
25361abf7346Smrgdone
25371abf7346SmrgIFS=$as_save_IFS
25381abf7346Smrg
25391abf7346Smrgfi
25401abf7346Smrgfi
25411abf7346Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
25421abf7346Smrgif test -n "$ac_ct_CC"; then
25438b6d6341Smrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
25448b6d6341Smrg$as_echo "$ac_ct_CC" >&6; }
25451abf7346Smrgelse
25468b6d6341Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
25478b6d6341Smrg$as_echo "no" >&6; }
25481abf7346Smrgfi
25491abf7346Smrg
25501abf7346Smrg  if test "x$ac_ct_CC" = x; then
25511abf7346Smrg    CC=""
25521abf7346Smrg  else
25531abf7346Smrg    case $cross_compiling:$ac_tool_warned in
25541abf7346Smrgyes:)
25558b6d6341Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
25568b6d6341Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25571abf7346Smrgac_tool_warned=yes ;;
25581abf7346Smrgesac
25591abf7346Smrg    CC=$ac_ct_CC
25601abf7346Smrg  fi
25611abf7346Smrgelse
25621abf7346Smrg  CC="$ac_cv_prog_CC"
25631abf7346Smrgfi
25641abf7346Smrg
25651abf7346Smrgif test -z "$CC"; then
25661abf7346Smrg          if test -n "$ac_tool_prefix"; then
25671abf7346Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
25681abf7346Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
25698b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
25708b6d6341Smrg$as_echo_n "checking for $ac_word... " >&6; }
25711abf7346Smrgif test "${ac_cv_prog_CC+set}" = set; then
25728b6d6341Smrg  $as_echo_n "(cached) " >&6
25731abf7346Smrgelse
25741abf7346Smrg  if test -n "$CC"; then
25751abf7346Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
25761abf7346Smrgelse
25771abf7346Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25781abf7346Smrgfor as_dir in $PATH
25791abf7346Smrgdo
25801abf7346Smrg  IFS=$as_save_IFS
25811abf7346Smrg  test -z "$as_dir" && as_dir=.
25821abf7346Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
25831abf7346Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25841abf7346Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
25858b6d6341Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25861abf7346Smrg    break 2
25871abf7346Smrg  fi
25881abf7346Smrgdone
25891abf7346Smrgdone
25901abf7346SmrgIFS=$as_save_IFS
25911abf7346Smrg
25921abf7346Smrgfi
25931abf7346Smrgfi
25941abf7346SmrgCC=$ac_cv_prog_CC
25951abf7346Smrgif test -n "$CC"; then
25968b6d6341Smrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
25978b6d6341Smrg$as_echo "$CC" >&6; }
25981abf7346Smrgelse
25998b6d6341Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
26008b6d6341Smrg$as_echo "no" >&6; }
26011abf7346Smrgfi
26021abf7346Smrg
26031abf7346Smrg
26041abf7346Smrg  fi
26051abf7346Smrgfi
26061abf7346Smrgif test -z "$CC"; then
26071abf7346Smrg  # Extract the first word of "cc", so it can be a program name with args.
26081abf7346Smrgset dummy cc; ac_word=$2
26098b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26108b6d6341Smrg$as_echo_n "checking for $ac_word... " >&6; }
26111abf7346Smrgif test "${ac_cv_prog_CC+set}" = set; then
26128b6d6341Smrg  $as_echo_n "(cached) " >&6
26131abf7346Smrgelse
26141abf7346Smrg  if test -n "$CC"; then
26151abf7346Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
26161abf7346Smrgelse
26171abf7346Smrg  ac_prog_rejected=no
26181abf7346Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26191abf7346Smrgfor as_dir in $PATH
26201abf7346Smrgdo
26211abf7346Smrg  IFS=$as_save_IFS
26221abf7346Smrg  test -z "$as_dir" && as_dir=.
26231abf7346Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
26241abf7346Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26251abf7346Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
26261abf7346Smrg       ac_prog_rejected=yes
26271abf7346Smrg       continue
26281abf7346Smrg     fi
26291abf7346Smrg    ac_cv_prog_CC="cc"
26308b6d6341Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26311abf7346Smrg    break 2
26321abf7346Smrg  fi
26331abf7346Smrgdone
26341abf7346Smrgdone
26351abf7346SmrgIFS=$as_save_IFS
26361abf7346Smrg
26371abf7346Smrgif test $ac_prog_rejected = yes; then
26381abf7346Smrg  # We found a bogon in the path, so make sure we never use it.
26391abf7346Smrg  set dummy $ac_cv_prog_CC
26401abf7346Smrg  shift
26411abf7346Smrg  if test $# != 0; then
26421abf7346Smrg    # We chose a different compiler from the bogus one.
26431abf7346Smrg    # However, it has the same basename, so the bogon will be chosen
26441abf7346Smrg    # first if we set CC to just the basename; use the full file name.
26451abf7346Smrg    shift
26461abf7346Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
26471abf7346Smrg  fi
26481abf7346Smrgfi
26491abf7346Smrgfi
26501abf7346Smrgfi
26511abf7346SmrgCC=$ac_cv_prog_CC
26521abf7346Smrgif test -n "$CC"; then
26538b6d6341Smrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
26548b6d6341Smrg$as_echo "$CC" >&6; }
26551abf7346Smrgelse
26568b6d6341Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
26578b6d6341Smrg$as_echo "no" >&6; }
26581abf7346Smrgfi
26591abf7346Smrg
26601abf7346Smrg
26611abf7346Smrgfi
26621abf7346Smrgif test -z "$CC"; then
26631abf7346Smrg  if test -n "$ac_tool_prefix"; then
26641abf7346Smrg  for ac_prog in cl.exe
26651abf7346Smrg  do
26661abf7346Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
26671abf7346Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
26688b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26698b6d6341Smrg$as_echo_n "checking for $ac_word... " >&6; }
26701abf7346Smrgif test "${ac_cv_prog_CC+set}" = set; then
26718b6d6341Smrg  $as_echo_n "(cached) " >&6
26721abf7346Smrgelse
26731abf7346Smrg  if test -n "$CC"; then
26741abf7346Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
26751abf7346Smrgelse
26761abf7346Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26771abf7346Smrgfor as_dir in $PATH
26781abf7346Smrgdo
26791abf7346Smrg  IFS=$as_save_IFS
26801abf7346Smrg  test -z "$as_dir" && as_dir=.
26811abf7346Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
26821abf7346Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26831abf7346Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
26848b6d6341Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26851abf7346Smrg    break 2
26861abf7346Smrg  fi
26871abf7346Smrgdone
26881abf7346Smrgdone
26891abf7346SmrgIFS=$as_save_IFS
26901abf7346Smrg
26911abf7346Smrgfi
26921abf7346Smrgfi
26931abf7346SmrgCC=$ac_cv_prog_CC
26941abf7346Smrgif test -n "$CC"; then
26958b6d6341Smrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
26968b6d6341Smrg$as_echo "$CC" >&6; }
26971abf7346Smrgelse
26988b6d6341Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
26998b6d6341Smrg$as_echo "no" >&6; }
27001abf7346Smrgfi
27011abf7346Smrg
27021abf7346Smrg
27031abf7346Smrg    test -n "$CC" && break
27041abf7346Smrg  done
27051abf7346Smrgfi
27061abf7346Smrgif test -z "$CC"; then
27071abf7346Smrg  ac_ct_CC=$CC
27081abf7346Smrg  for ac_prog in cl.exe
27091abf7346Smrgdo
27101abf7346Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
27111abf7346Smrgset dummy $ac_prog; ac_word=$2
27128b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27138b6d6341Smrg$as_echo_n "checking for $ac_word... " >&6; }
27141abf7346Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
27158b6d6341Smrg  $as_echo_n "(cached) " >&6
27161abf7346Smrgelse
27171abf7346Smrg  if test -n "$ac_ct_CC"; then
27181abf7346Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
27191abf7346Smrgelse
27201abf7346Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27211abf7346Smrgfor as_dir in $PATH
27221abf7346Smrgdo
27231abf7346Smrg  IFS=$as_save_IFS
27241abf7346Smrg  test -z "$as_dir" && as_dir=.
27251abf7346Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
27261abf7346Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27271abf7346Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
27288b6d6341Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27291abf7346Smrg    break 2
27301abf7346Smrg  fi
27311abf7346Smrgdone
27321abf7346Smrgdone
27331abf7346SmrgIFS=$as_save_IFS
27341abf7346Smrg
27351abf7346Smrgfi
27361abf7346Smrgfi
27371abf7346Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
27381abf7346Smrgif test -n "$ac_ct_CC"; then
27398b6d6341Smrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
27408b6d6341Smrg$as_echo "$ac_ct_CC" >&6; }
27411abf7346Smrgelse
27428b6d6341Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
27438b6d6341Smrg$as_echo "no" >&6; }
27441abf7346Smrgfi
27451abf7346Smrg
27461abf7346Smrg
27471abf7346Smrg  test -n "$ac_ct_CC" && break
27481abf7346Smrgdone
27491abf7346Smrg
27501abf7346Smrg  if test "x$ac_ct_CC" = x; then
27511abf7346Smrg    CC=""
27521abf7346Smrg  else
27531abf7346Smrg    case $cross_compiling:$ac_tool_warned in
27541abf7346Smrgyes:)
27558b6d6341Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
27568b6d6341Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27571abf7346Smrgac_tool_warned=yes ;;
27581abf7346Smrgesac
27591abf7346Smrg    CC=$ac_ct_CC
27601abf7346Smrg  fi
27611abf7346Smrgfi
27621abf7346Smrg
27631abf7346Smrgfi
27641abf7346Smrg
27651abf7346Smrg
27668b6d6341Smrgtest -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27678b6d6341Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27688b6d6341Smrg{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
27691abf7346SmrgSee \`config.log' for more details." >&5
27708b6d6341Smrg$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
27711abf7346SmrgSee \`config.log' for more details." >&2;}
27728b6d6341Smrg   { (exit 1); exit 1; }; }; }
27731abf7346Smrg
27741abf7346Smrg# Provide some information about the compiler.
27758b6d6341Smrg$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
27768b6d6341Smrgset X $ac_compile
27778b6d6341Smrgac_compiler=$2
27781abf7346Smrg{ (ac_try="$ac_compiler --version >&5"
27791abf7346Smrgcase "(($ac_try" in
27801abf7346Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27811abf7346Smrg  *) ac_try_echo=$ac_try;;
27821abf7346Smrgesac
27838b6d6341Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27848b6d6341Smrg$as_echo "$ac_try_echo") >&5
27851abf7346Smrg  (eval "$ac_compiler --version >&5") 2>&5
27861abf7346Smrg  ac_status=$?
27878b6d6341Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881abf7346Smrg  (exit $ac_status); }
27891abf7346Smrg{ (ac_try="$ac_compiler -v >&5"
27901abf7346Smrgcase "(($ac_try" in
27911abf7346Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27921abf7346Smrg  *) ac_try_echo=$ac_try;;
27931abf7346Smrgesac
27948b6d6341Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27958b6d6341Smrg$as_echo "$ac_try_echo") >&5
27961abf7346Smrg  (eval "$ac_compiler -v >&5") 2>&5
27971abf7346Smrg  ac_status=$?
27988b6d6341Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991abf7346Smrg  (exit $ac_status); }
28001abf7346Smrg{ (ac_try="$ac_compiler -V >&5"
28011abf7346Smrgcase "(($ac_try" in
28021abf7346Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28031abf7346Smrg  *) ac_try_echo=$ac_try;;
28041abf7346Smrgesac
28058b6d6341Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28068b6d6341Smrg$as_echo "$ac_try_echo") >&5
28071abf7346Smrg  (eval "$ac_compiler -V >&5") 2>&5
28081abf7346Smrg  ac_status=$?
28098b6d6341Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28101abf7346Smrg  (exit $ac_status); }
28111abf7346Smrg
28121abf7346Smrgcat >conftest.$ac_ext <<_ACEOF
28131abf7346Smrg/* confdefs.h.  */
28141abf7346Smrg_ACEOF
28151abf7346Smrgcat confdefs.h >>conftest.$ac_ext
28161abf7346Smrgcat >>conftest.$ac_ext <<_ACEOF
28171abf7346Smrg/* end confdefs.h.  */
28181abf7346Smrg
28191abf7346Smrgint
28201abf7346Smrgmain ()
28211abf7346Smrg{
28221abf7346Smrg
28231abf7346Smrg  ;
28241abf7346Smrg  return 0;
28251abf7346Smrg}
28261abf7346Smrg_ACEOF
28271abf7346Smrgac_clean_files_save=$ac_clean_files
28288b6d6341Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
28291abf7346Smrg# Try to create an executable without -o first, disregard a.out.
28301abf7346Smrg# It will help us diagnose broken compilers, and finding out an intuition
28311abf7346Smrg# of exeext.
28328b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
28338b6d6341Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
28348b6d6341Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
28358b6d6341Smrg
28368b6d6341Smrg# The possible output files:
28378b6d6341Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
28388b6d6341Smrg
28391abf7346Smrgac_rmfiles=
28401abf7346Smrgfor ac_file in $ac_files
28411abf7346Smrgdo
28421abf7346Smrg  case $ac_file in
28438b6d6341Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
28441abf7346Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
28451abf7346Smrg  esac
28461abf7346Smrgdone
28471abf7346Smrgrm -f $ac_rmfiles
28481abf7346Smrg
28491abf7346Smrgif { (ac_try="$ac_link_default"
28501abf7346Smrgcase "(($ac_try" in
28511abf7346Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28521abf7346Smrg  *) ac_try_echo=$ac_try;;
28531abf7346Smrgesac
28548b6d6341Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28558b6d6341Smrg$as_echo "$ac_try_echo") >&5
28561abf7346Smrg  (eval "$ac_link_default") 2>&5
28571abf7346Smrg  ac_status=$?
28588b6d6341Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28591abf7346Smrg  (exit $ac_status); }; then
28601abf7346Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
28611abf7346Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
28621abf7346Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
28631abf7346Smrg# so that the user can short-circuit this test for compilers unknown to
28641abf7346Smrg# Autoconf.
28651abf7346Smrgfor ac_file in $ac_files ''
28661abf7346Smrgdo
28671abf7346Smrg  test -f "$ac_file" || continue
28681abf7346Smrg  case $ac_file in
28698b6d6341Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
28701abf7346Smrg	;;
28711abf7346Smrg    [ab].out )
28721abf7346Smrg	# We found the default executable, but exeext='' is most
28731abf7346Smrg	# certainly right.
28741abf7346Smrg	break;;
28751abf7346Smrg    *.* )
28761abf7346Smrg        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
28771abf7346Smrg	then :; else
28781abf7346Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
28791abf7346Smrg	fi
28801abf7346Smrg	# We set ac_cv_exeext here because the later test for it is not
28811abf7346Smrg	# safe: cross compilers may not add the suffix if given an `-o'
28821abf7346Smrg	# argument, so we may need to know it at that point already.
28831abf7346Smrg	# Even if this section looks crufty: it has the advantage of
28841abf7346Smrg	# actually working.
28851abf7346Smrg	break;;
28861abf7346Smrg    * )
28871abf7346Smrg	break;;
28881abf7346Smrg  esac
28891abf7346Smrgdone
28901abf7346Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
28911abf7346Smrg
28921abf7346Smrgelse
28931abf7346Smrg  ac_file=''
28941abf7346Smrgfi
28951abf7346Smrg
28968b6d6341Smrg{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
28978b6d6341Smrg$as_echo "$ac_file" >&6; }
28981abf7346Smrgif test -z "$ac_file"; then
28998b6d6341Smrg  $as_echo "$as_me: failed program was:" >&5
29001abf7346Smrgsed 's/^/| /' conftest.$ac_ext >&5
29011abf7346Smrg
29028b6d6341Smrg{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29038b6d6341Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29048b6d6341Smrg{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
29051abf7346SmrgSee \`config.log' for more details." >&5
29068b6d6341Smrg$as_echo "$as_me: error: C compiler cannot create executables
29071abf7346SmrgSee \`config.log' for more details." >&2;}
29088b6d6341Smrg   { (exit 77); exit 77; }; }; }
29091abf7346Smrgfi
29101abf7346Smrg
29111abf7346Smrgac_exeext=$ac_cv_exeext
29121abf7346Smrg
29131abf7346Smrg# Check that the compiler produces executables we can run.  If not, either
29141abf7346Smrg# the compiler is broken, or we cross compile.
29158b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
29168b6d6341Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
29171abf7346Smrg# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
29181abf7346Smrg# If not cross compiling, check that we can run a simple program.
29191abf7346Smrgif test "$cross_compiling" != yes; then
29201abf7346Smrg  if { ac_try='./$ac_file'
29211abf7346Smrg  { (case "(($ac_try" in
29221abf7346Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29231abf7346Smrg  *) ac_try_echo=$ac_try;;
29241abf7346Smrgesac
29258b6d6341Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29268b6d6341Smrg$as_echo "$ac_try_echo") >&5
29271abf7346Smrg  (eval "$ac_try") 2>&5
29281abf7346Smrg  ac_status=$?
29298b6d6341Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29301abf7346Smrg  (exit $ac_status); }; }; then
29311abf7346Smrg    cross_compiling=no
29321abf7346Smrg  else
29331abf7346Smrg    if test "$cross_compiling" = maybe; then
29341abf7346Smrg	cross_compiling=yes
29351abf7346Smrg    else
29368b6d6341Smrg	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29378b6d6341Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29388b6d6341Smrg{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
29391abf7346SmrgIf you meant to cross compile, use \`--host'.
29401abf7346SmrgSee \`config.log' for more details." >&5
29418b6d6341Smrg$as_echo "$as_me: error: cannot run C compiled programs.
29421abf7346SmrgIf you meant to cross compile, use \`--host'.
29431abf7346SmrgSee \`config.log' for more details." >&2;}
29448b6d6341Smrg   { (exit 1); exit 1; }; }; }
29451abf7346Smrg    fi
29461abf7346Smrg  fi
29471abf7346Smrgfi
29488b6d6341Smrg{ $as_echo "$as_me:$LINENO: result: yes" >&5
29498b6d6341Smrg$as_echo "yes" >&6; }
29501abf7346Smrg
29518b6d6341Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
29521abf7346Smrgac_clean_files=$ac_clean_files_save
29531abf7346Smrg# Check that the compiler produces executables we can run.  If not, either
29541abf7346Smrg# the compiler is broken, or we cross compile.
29558b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
29568b6d6341Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
29578b6d6341Smrg{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
29588b6d6341Smrg$as_echo "$cross_compiling" >&6; }
29591abf7346Smrg
29608b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
29618b6d6341Smrg$as_echo_n "checking for suffix of executables... " >&6; }
29621abf7346Smrgif { (ac_try="$ac_link"
29631abf7346Smrgcase "(($ac_try" in
29641abf7346Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29651abf7346Smrg  *) ac_try_echo=$ac_try;;
29661abf7346Smrgesac
29678b6d6341Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29688b6d6341Smrg$as_echo "$ac_try_echo") >&5
29691abf7346Smrg  (eval "$ac_link") 2>&5
29701abf7346Smrg  ac_status=$?
29718b6d6341Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29721abf7346Smrg  (exit $ac_status); }; then
29731abf7346Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
29741abf7346Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
29751abf7346Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
29761abf7346Smrg# `rm'.
29771abf7346Smrgfor ac_file in conftest.exe conftest conftest.*; do
29781abf7346Smrg  test -f "$ac_file" || continue
29791abf7346Smrg  case $ac_file in
29808b6d6341Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
29811abf7346Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
29821abf7346Smrg	  break;;
29831abf7346Smrg    * ) break;;
29841abf7346Smrg  esac
29851abf7346Smrgdone
29861abf7346Smrgelse
29878b6d6341Smrg  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29888b6d6341Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29898b6d6341Smrg{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
29901abf7346SmrgSee \`config.log' for more details." >&5
29918b6d6341Smrg$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
29921abf7346SmrgSee \`config.log' for more details." >&2;}
29938b6d6341Smrg   { (exit 1); exit 1; }; }; }
29941abf7346Smrgfi
29951abf7346Smrg
29961abf7346Smrgrm -f conftest$ac_cv_exeext
29978b6d6341Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
29988b6d6341Smrg$as_echo "$ac_cv_exeext" >&6; }
29991abf7346Smrg
30001abf7346Smrgrm -f conftest.$ac_ext
30011abf7346SmrgEXEEXT=$ac_cv_exeext
30021abf7346Smrgac_exeext=$EXEEXT
30038b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
30048b6d6341Smrg$as_echo_n "checking for suffix of object files... " >&6; }
30051abf7346Smrgif test "${ac_cv_objext+set}" = set; then
30068b6d6341Smrg  $as_echo_n "(cached) " >&6
30071abf7346Smrgelse
30081abf7346Smrg  cat >conftest.$ac_ext <<_ACEOF
30091abf7346Smrg/* confdefs.h.  */
30101abf7346Smrg_ACEOF
30111abf7346Smrgcat confdefs.h >>conftest.$ac_ext
30121abf7346Smrgcat >>conftest.$ac_ext <<_ACEOF
30131abf7346Smrg/* end confdefs.h.  */
30141abf7346Smrg
30151abf7346Smrgint
30161abf7346Smrgmain ()
30171abf7346Smrg{
30181abf7346Smrg
30191abf7346Smrg  ;
30201abf7346Smrg  return 0;
30211abf7346Smrg}
30221abf7346Smrg_ACEOF
30231abf7346Smrgrm -f conftest.o conftest.obj
30241abf7346Smrgif { (ac_try="$ac_compile"
30251abf7346Smrgcase "(($ac_try" in
30261abf7346Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30271abf7346Smrg  *) ac_try_echo=$ac_try;;
30281abf7346Smrgesac
30298b6d6341Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30308b6d6341Smrg$as_echo "$ac_try_echo") >&5
30311abf7346Smrg  (eval "$ac_compile") 2>&5
30321abf7346Smrg  ac_status=$?
30338b6d6341Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30341abf7346Smrg  (exit $ac_status); }; then
30351abf7346Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
30361abf7346Smrg  test -f "$ac_file" || continue;
30371abf7346Smrg  case $ac_file in
30388b6d6341Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
30391abf7346Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
30401abf7346Smrg       break;;
30411abf7346Smrg  esac
30421abf7346Smrgdone
30431abf7346Smrgelse
30448b6d6341Smrg  $as_echo "$as_me: failed program was:" >&5
30451abf7346Smrgsed 's/^/| /' conftest.$ac_ext >&5
30461abf7346Smrg
30478b6d6341Smrg{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30488b6d6341Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30498b6d6341Smrg{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
30501abf7346SmrgSee \`config.log' for more details." >&5
30518b6d6341Smrg$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
30521abf7346SmrgSee \`config.log' for more details." >&2;}
30538b6d6341Smrg   { (exit 1); exit 1; }; }; }
30541abf7346Smrgfi
30551abf7346Smrg
30561abf7346Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
30571abf7346Smrgfi
30588b6d6341Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
30598b6d6341Smrg$as_echo "$ac_cv_objext" >&6; }
30601abf7346SmrgOBJEXT=$ac_cv_objext
30611abf7346Smrgac_objext=$OBJEXT
30628b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
30638b6d6341Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
30641abf7346Smrgif test "${ac_cv_c_compiler_gnu+set}" = set; then
30658b6d6341Smrg  $as_echo_n "(cached) " >&6
30661abf7346Smrgelse
30671abf7346Smrg  cat >conftest.$ac_ext <<_ACEOF
30681abf7346Smrg/* confdefs.h.  */
30691abf7346Smrg_ACEOF
30701abf7346Smrgcat confdefs.h >>conftest.$ac_ext
30711abf7346Smrgcat >>conftest.$ac_ext <<_ACEOF
30721abf7346Smrg/* end confdefs.h.  */
30731abf7346Smrg
30741abf7346Smrgint
30751abf7346Smrgmain ()
30761abf7346Smrg{
30771abf7346Smrg#ifndef __GNUC__
30781abf7346Smrg       choke me
30791abf7346Smrg#endif
30801abf7346Smrg
30811abf7346Smrg  ;
30821abf7346Smrg  return 0;
30831abf7346Smrg}
30841abf7346Smrg_ACEOF
30851abf7346Smrgrm -f conftest.$ac_objext
30861abf7346Smrgif { (ac_try="$ac_compile"
30871abf7346Smrgcase "(($ac_try" in
30881abf7346Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30891abf7346Smrg  *) ac_try_echo=$ac_try;;
30901abf7346Smrgesac
30918b6d6341Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30928b6d6341Smrg$as_echo "$ac_try_echo") >&5
30931abf7346Smrg  (eval "$ac_compile") 2>conftest.er1
30941abf7346Smrg  ac_status=$?
30951abf7346Smrg  grep -v '^ *+' conftest.er1 >conftest.err
30961abf7346Smrg  rm -f conftest.er1
30971abf7346Smrg  cat conftest.err >&5
30988b6d6341Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30991abf7346Smrg  (exit $ac_status); } && {
31001abf7346Smrg	 test -z "$ac_c_werror_flag" ||
31011abf7346Smrg	 test ! -s conftest.err
31021abf7346Smrg       } && test -s conftest.$ac_objext; then
31031abf7346Smrg  ac_compiler_gnu=yes
31041abf7346Smrgelse
31058b6d6341Smrg  $as_echo "$as_me: failed program was:" >&5
31061abf7346Smrgsed 's/^/| /' conftest.$ac_ext >&5
31071abf7346Smrg
31081abf7346Smrg	ac_compiler_gnu=no
31091abf7346Smrgfi
31101abf7346Smrg
31111abf7346Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31121abf7346Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
31131abf7346Smrg
31141abf7346Smrgfi
31158b6d6341Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
31168b6d6341Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
31178b6d6341Smrgif test $ac_compiler_gnu = yes; then
31188b6d6341Smrg  GCC=yes
31198b6d6341Smrgelse
31208b6d6341Smrg  GCC=
31218b6d6341Smrgfi
31221abf7346Smrgac_test_CFLAGS=${CFLAGS+set}
31231abf7346Smrgac_save_CFLAGS=$CFLAGS
31248b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
31258b6d6341Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
31261abf7346Smrgif test "${ac_cv_prog_cc_g+set}" = set; then
31278b6d6341Smrg  $as_echo_n "(cached) " >&6
31281abf7346Smrgelse
31291abf7346Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
31301abf7346Smrg   ac_c_werror_flag=yes
31311abf7346Smrg   ac_cv_prog_cc_g=no
31321abf7346Smrg   CFLAGS="-g"
31331abf7346Smrg   cat >conftest.$ac_ext <<_ACEOF
31341abf7346Smrg/* confdefs.h.  */
31351abf7346Smrg_ACEOF
31361abf7346Smrgcat confdefs.h >>conftest.$ac_ext
31371abf7346Smrgcat >>conftest.$ac_ext <<_ACEOF
31381abf7346Smrg/* end confdefs.h.  */
31391abf7346Smrg
31401abf7346Smrgint
31411abf7346Smrgmain ()
31421abf7346Smrg{
31431abf7346Smrg
31441abf7346Smrg  ;
31451abf7346Smrg  return 0;
31461abf7346Smrg}
31471abf7346Smrg_ACEOF
31481abf7346Smrgrm -f conftest.$ac_objext
31491abf7346Smrgif { (ac_try="$ac_compile"
31501abf7346Smrgcase "(($ac_try" in
31511abf7346Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31521abf7346Smrg  *) ac_try_echo=$ac_try;;
31531abf7346Smrgesac
31548b6d6341Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31558b6d6341Smrg$as_echo "$ac_try_echo") >&5
31561abf7346Smrg  (eval "$ac_compile") 2>conftest.er1
31571abf7346Smrg  ac_status=$?
31581abf7346Smrg  grep -v '^ *+' conftest.er1 >conftest.err
31591abf7346Smrg  rm -f conftest.er1
31601abf7346Smrg  cat conftest.err >&5
31618b6d6341Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31621abf7346Smrg  (exit $ac_status); } && {
31631abf7346Smrg	 test -z "$ac_c_werror_flag" ||
31641abf7346Smrg	 test ! -s conftest.err
31651abf7346Smrg       } && test -s conftest.$ac_objext; then
31661abf7346Smrg  ac_cv_prog_cc_g=yes
31671abf7346Smrgelse
31688b6d6341Smrg  $as_echo "$as_me: failed program was:" >&5
31691abf7346Smrgsed 's/^/| /' conftest.$ac_ext >&5
31701abf7346Smrg
31711abf7346Smrg	CFLAGS=""
31721abf7346Smrg      cat >conftest.$ac_ext <<_ACEOF
31731abf7346Smrg/* confdefs.h.  */
31741abf7346Smrg_ACEOF
31751abf7346Smrgcat confdefs.h >>conftest.$ac_ext
31761abf7346Smrgcat >>conftest.$ac_ext <<_ACEOF
31771abf7346Smrg/* end confdefs.h.  */
31781abf7346Smrg
31791abf7346Smrgint
31801abf7346Smrgmain ()
31811abf7346Smrg{
31821abf7346Smrg
31831abf7346Smrg  ;
31841abf7346Smrg  return 0;
31851abf7346Smrg}
31861abf7346Smrg_ACEOF
31871abf7346Smrgrm -f conftest.$ac_objext
31881abf7346Smrgif { (ac_try="$ac_compile"
31891abf7346Smrgcase "(($ac_try" in
31901abf7346Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31911abf7346Smrg  *) ac_try_echo=$ac_try;;
31921abf7346Smrgesac
31938b6d6341Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31948b6d6341Smrg$as_echo "$ac_try_echo") >&5
31951abf7346Smrg  (eval "$ac_compile") 2>conftest.er1
31961abf7346Smrg  ac_status=$?
31971abf7346Smrg  grep -v '^ *+' conftest.er1 >conftest.err
31981abf7346Smrg  rm -f conftest.er1
31991abf7346Smrg  cat conftest.err >&5
32008b6d6341Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32011abf7346Smrg  (exit $ac_status); } && {
32021abf7346Smrg	 test -z "$ac_c_werror_flag" ||
32031abf7346Smrg	 test ! -s conftest.err
32041abf7346Smrg       } && test -s conftest.$ac_objext; then
32051abf7346Smrg  :
32061abf7346Smrgelse
32078b6d6341Smrg  $as_echo "$as_me: failed program was:" >&5
32081abf7346Smrgsed 's/^/| /' conftest.$ac_ext >&5
32091abf7346Smrg
32101abf7346Smrg	ac_c_werror_flag=$ac_save_c_werror_flag
32111abf7346Smrg	 CFLAGS="-g"
32121abf7346Smrg	 cat >conftest.$ac_ext <<_ACEOF
32131abf7346Smrg/* confdefs.h.  */
32141abf7346Smrg_ACEOF
32151abf7346Smrgcat confdefs.h >>conftest.$ac_ext
32161abf7346Smrgcat >>conftest.$ac_ext <<_ACEOF
32171abf7346Smrg/* end confdefs.h.  */
32181abf7346Smrg
32191abf7346Smrgint
32201abf7346Smrgmain ()
32211abf7346Smrg{
32221abf7346Smrg
32231abf7346Smrg  ;
32241abf7346Smrg  return 0;
32251abf7346Smrg}
32261abf7346Smrg_ACEOF
32271abf7346Smrgrm -f conftest.$ac_objext
32281abf7346Smrgif { (ac_try="$ac_compile"
32291abf7346Smrgcase "(($ac_try" in
32301abf7346Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32311abf7346Smrg  *) ac_try_echo=$ac_try;;
32321abf7346Smrgesac
32338b6d6341Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32348b6d6341Smrg$as_echo "$ac_try_echo") >&5
32351abf7346Smrg  (eval "$ac_compile") 2>conftest.er1
32361abf7346Smrg  ac_status=$?
32371abf7346Smrg  grep -v '^ *+' conftest.er1 >conftest.err
32381abf7346Smrg  rm -f conftest.er1
32391abf7346Smrg  cat conftest.err >&5
32408b6d6341Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32411abf7346Smrg  (exit $ac_status); } && {
32421abf7346Smrg	 test -z "$ac_c_werror_flag" ||
32431abf7346Smrg	 test ! -s conftest.err
32441abf7346Smrg       } && test -s conftest.$ac_objext; then
32451abf7346Smrg  ac_cv_prog_cc_g=yes
32461abf7346Smrgelse
32478b6d6341Smrg  $as_echo "$as_me: failed program was:" >&5
32481abf7346Smrgsed 's/^/| /' conftest.$ac_ext >&5
32491abf7346Smrg
32501abf7346Smrg
32511abf7346Smrgfi
32521abf7346Smrg
32531abf7346Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32541abf7346Smrgfi
32551abf7346Smrg
32561abf7346Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32571abf7346Smrgfi
32581abf7346Smrg
32591abf7346Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32601abf7346Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
32611abf7346Smrgfi
32628b6d6341Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
32638b6d6341Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
32641abf7346Smrgif test "$ac_test_CFLAGS" = set; then
32651abf7346Smrg  CFLAGS=$ac_save_CFLAGS
32661abf7346Smrgelif test $ac_cv_prog_cc_g = yes; then
32671abf7346Smrg  if test "$GCC" = yes; then
32681abf7346Smrg    CFLAGS="-g -O2"
32691abf7346Smrg  else
32701abf7346Smrg    CFLAGS="-g"
32711abf7346Smrg  fi
32721abf7346Smrgelse
32731abf7346Smrg  if test "$GCC" = yes; then
32741abf7346Smrg    CFLAGS="-O2"
32751abf7346Smrg  else
32761abf7346Smrg    CFLAGS=
32771abf7346Smrg  fi
32781abf7346Smrgfi
32798b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
32808b6d6341Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
32811abf7346Smrgif test "${ac_cv_prog_cc_c89+set}" = set; then
32828b6d6341Smrg  $as_echo_n "(cached) " >&6
32831abf7346Smrgelse
32841abf7346Smrg  ac_cv_prog_cc_c89=no
32851abf7346Smrgac_save_CC=$CC
32861abf7346Smrgcat >conftest.$ac_ext <<_ACEOF
32871abf7346Smrg/* confdefs.h.  */
32881abf7346Smrg_ACEOF
32891abf7346Smrgcat confdefs.h >>conftest.$ac_ext
32901abf7346Smrgcat >>conftest.$ac_ext <<_ACEOF
32911abf7346Smrg/* end confdefs.h.  */
32921abf7346Smrg#include <stdarg.h>
32931abf7346Smrg#include <stdio.h>
32941abf7346Smrg#include <sys/types.h>
32951abf7346Smrg#include <sys/stat.h>
32961abf7346Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
32971abf7346Smrgstruct buf { int x; };
32981abf7346SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
32991abf7346Smrgstatic char *e (p, i)
33001abf7346Smrg     char **p;
33011abf7346Smrg     int i;
33021abf7346Smrg{
33031abf7346Smrg  return p[i];
33041abf7346Smrg}
33051abf7346Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
33061abf7346Smrg{
33071abf7346Smrg  char *s;
33081abf7346Smrg  va_list v;
33091abf7346Smrg  va_start (v,p);
33101abf7346Smrg  s = g (p, va_arg (v,int));
33111abf7346Smrg  va_end (v);
33121abf7346Smrg  return s;
33131abf7346Smrg}
33141abf7346Smrg
33151abf7346Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
33161abf7346Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
33171abf7346Smrg   These don't provoke an error unfortunately, instead are silently treated
33181abf7346Smrg   as 'x'.  The following induces an error, until -std is added to get
33191abf7346Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
33201abf7346Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
33211abf7346Smrg   that's true only with -std.  */
33221abf7346Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
33231abf7346Smrg
33241abf7346Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
33251abf7346Smrg   inside strings and character constants.  */
33261abf7346Smrg#define FOO(x) 'x'
33271abf7346Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
33281abf7346Smrg
33291abf7346Smrgint test (int i, double x);
33301abf7346Smrgstruct s1 {int (*f) (int a);};
33311abf7346Smrgstruct s2 {int (*f) (double a);};
33321abf7346Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
33331abf7346Smrgint argc;
33341abf7346Smrgchar **argv;
33351abf7346Smrgint
33361abf7346Smrgmain ()
33371abf7346Smrg{
33381abf7346Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
33391abf7346Smrg  ;
33401abf7346Smrg  return 0;
33411abf7346Smrg}
33421abf7346Smrg_ACEOF
33431abf7346Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
33441abf7346Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
33451abf7346Smrgdo
33461abf7346Smrg  CC="$ac_save_CC $ac_arg"
33471abf7346Smrg  rm -f conftest.$ac_objext
33481abf7346Smrgif { (ac_try="$ac_compile"
33491abf7346Smrgcase "(($ac_try" in
33501abf7346Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33511abf7346Smrg  *) ac_try_echo=$ac_try;;
33521abf7346Smrgesac
33538b6d6341Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33548b6d6341Smrg$as_echo "$ac_try_echo") >&5
33551abf7346Smrg  (eval "$ac_compile") 2>conftest.er1
33561abf7346Smrg  ac_status=$?
33571abf7346Smrg  grep -v '^ *+' conftest.er1 >conftest.err
33581abf7346Smrg  rm -f conftest.er1
33591abf7346Smrg  cat conftest.err >&5
33608b6d6341Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33611abf7346Smrg  (exit $ac_status); } && {
33621abf7346Smrg	 test -z "$ac_c_werror_flag" ||
33631abf7346Smrg	 test ! -s conftest.err
33641abf7346Smrg       } && test -s conftest.$ac_objext; then
33651abf7346Smrg  ac_cv_prog_cc_c89=$ac_arg
33661abf7346Smrgelse
33678b6d6341Smrg  $as_echo "$as_me: failed program was:" >&5
33681abf7346Smrgsed 's/^/| /' conftest.$ac_ext >&5
33691abf7346Smrg
33701abf7346Smrg
33711abf7346Smrgfi
33721abf7346Smrg
33731abf7346Smrgrm -f core conftest.err conftest.$ac_objext
33741abf7346Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
33751abf7346Smrgdone
33761abf7346Smrgrm -f conftest.$ac_ext
33771abf7346SmrgCC=$ac_save_CC
33781abf7346Smrg
33791abf7346Smrgfi
33801abf7346Smrg# AC_CACHE_VAL
33811abf7346Smrgcase "x$ac_cv_prog_cc_c89" in
33821abf7346Smrg  x)
33838b6d6341Smrg    { $as_echo "$as_me:$LINENO: result: none needed" >&5
33848b6d6341Smrg$as_echo "none needed" >&6; } ;;
33851abf7346Smrg  xno)
33868b6d6341Smrg    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
33878b6d6341Smrg$as_echo "unsupported" >&6; } ;;
33881abf7346Smrg  *)
33891abf7346Smrg    CC="$CC $ac_cv_prog_cc_c89"
33908b6d6341Smrg    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
33918b6d6341Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
33921abf7346Smrgesac
33931abf7346Smrg
33941abf7346Smrg
33951abf7346Smrgac_ext=c
33961abf7346Smrgac_cpp='$CPP $CPPFLAGS'
33971abf7346Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33981abf7346Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33991abf7346Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
34001abf7346SmrgDEPDIR="${am__leading_dot}deps"
34011abf7346Smrg
34021abf7346Smrgac_config_commands="$ac_config_commands depfiles"
34031abf7346Smrg
34041abf7346Smrg
34051abf7346Smrgam_make=${MAKE-make}
34061abf7346Smrgcat > confinc << 'END'
34071abf7346Smrgam__doit:
34088b6d6341Smrg	@echo this is the am__doit target
34091abf7346Smrg.PHONY: am__doit
34101abf7346SmrgEND
34111abf7346Smrg# If we don't find an include directive, just comment out the code.
34128b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
34138b6d6341Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
34141abf7346Smrgam__include="#"
34151abf7346Smrgam__quote=
34161abf7346Smrg_am_result=none
34171abf7346Smrg# First try GNU make style include.
34181abf7346Smrgecho "include confinc" > confmf
34198b6d6341Smrg# Ignore all kinds of additional output from `make'.
34208b6d6341Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
34218b6d6341Smrg*the\ am__doit\ target*)
34228b6d6341Smrg  am__include=include
34238b6d6341Smrg  am__quote=
34248b6d6341Smrg  _am_result=GNU
34258b6d6341Smrg  ;;
34268b6d6341Smrgesac
34271abf7346Smrg# Now try BSD make style include.
34281abf7346Smrgif test "$am__include" = "#"; then
34291abf7346Smrg   echo '.include "confinc"' > confmf
34308b6d6341Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
34318b6d6341Smrg   *the\ am__doit\ target*)
34328b6d6341Smrg     am__include=.include
34338b6d6341Smrg     am__quote="\""
34348b6d6341Smrg     _am_result=BSD
34358b6d6341Smrg     ;;
34368b6d6341Smrg   esac
34371abf7346Smrgfi
34381abf7346Smrg
34391abf7346Smrg
34408b6d6341Smrg{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
34418b6d6341Smrg$as_echo "$_am_result" >&6; }
34421abf7346Smrgrm -f confinc confmf
34431abf7346Smrg
34441abf7346Smrg# Check whether --enable-dependency-tracking was given.
34451abf7346Smrgif test "${enable_dependency_tracking+set}" = set; then
34461abf7346Smrg  enableval=$enable_dependency_tracking;
34471abf7346Smrgfi
34481abf7346Smrg
34491abf7346Smrgif test "x$enable_dependency_tracking" != xno; then
34501abf7346Smrg  am_depcomp="$ac_aux_dir/depcomp"
34511abf7346Smrg  AMDEPBACKSLASH='\'
34521abf7346Smrgfi
34531abf7346Smrg if test "x$enable_dependency_tracking" != xno; then
34541abf7346Smrg  AMDEP_TRUE=
34551abf7346Smrg  AMDEP_FALSE='#'
34561abf7346Smrgelse
34571abf7346Smrg  AMDEP_TRUE='#'
34581abf7346Smrg  AMDEP_FALSE=
34591abf7346Smrgfi
34601abf7346Smrg
34611abf7346Smrg
34621abf7346Smrg
34631abf7346Smrgdepcc="$CC"   am_compiler_list=
34641abf7346Smrg
34658b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
34668b6d6341Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
34671abf7346Smrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
34688b6d6341Smrg  $as_echo_n "(cached) " >&6
34691abf7346Smrgelse
34701abf7346Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
34711abf7346Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
34721abf7346Smrg  # making bogus files that we don't know about and never remove.  For
34731abf7346Smrg  # instance it was reported that on HP-UX the gcc test will end up
34741abf7346Smrg  # making a dummy file named `D' -- because `-MD' means `put the output
34751abf7346Smrg  # in D'.
34761abf7346Smrg  mkdir conftest.dir
34771abf7346Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
34781abf7346Smrg  # using a relative directory.
34791abf7346Smrg  cp "$am_depcomp" conftest.dir
34801abf7346Smrg  cd conftest.dir
34811abf7346Smrg  # We will build objects and dependencies in a subdirectory because
34821abf7346Smrg  # it helps to detect inapplicable dependency modes.  For instance
34831abf7346Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
34841abf7346Smrg  # side effect of compilation, but ICC will put the dependencies in
34851abf7346Smrg  # the current directory while Tru64 will put them in the object
34861abf7346Smrg  # directory.
34871abf7346Smrg  mkdir sub
34881abf7346Smrg
34891abf7346Smrg  am_cv_CC_dependencies_compiler_type=none
34901abf7346Smrg  if test "$am_compiler_list" = ""; then
34911abf7346Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
34921abf7346Smrg  fi
34938b6d6341Smrg  am__universal=false
34948b6d6341Smrg  case " $depcc " in #(
34958b6d6341Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
34968b6d6341Smrg     esac
34978b6d6341Smrg
34981abf7346Smrg  for depmode in $am_compiler_list; do
34991abf7346Smrg    # Setup a source with many dependencies, because some compilers
35001abf7346Smrg    # like to wrap large dependency lists on column 80 (with \), and
35011abf7346Smrg    # we should not choose a depcomp mode which is confused by this.
35021abf7346Smrg    #
35031abf7346Smrg    # We need to recreate these files for each test, as the compiler may
35041abf7346Smrg    # overwrite some of them when testing with obscure command lines.
35051abf7346Smrg    # This happens at least with the AIX C compiler.
35061abf7346Smrg    : > sub/conftest.c
35071abf7346Smrg    for i in 1 2 3 4 5 6; do
35081abf7346Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
35091abf7346Smrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
35101abf7346Smrg      # Solaris 8's {/usr,}/bin/sh.
35111abf7346Smrg      touch sub/conftst$i.h
35121abf7346Smrg    done
35131abf7346Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
35141abf7346Smrg
35158b6d6341Smrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
35168b6d6341Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
35178b6d6341Smrg    # handle `-M -o', and we need to detect this.  Also, some Intel
35188b6d6341Smrg    # versions had trouble with output in subdirs
35198b6d6341Smrg    am__obj=sub/conftest.${OBJEXT-o}
35208b6d6341Smrg    am__minus_obj="-o $am__obj"
35211abf7346Smrg    case $depmode in
35228b6d6341Smrg    gcc)
35238b6d6341Smrg      # This depmode causes a compiler race in universal mode.
35248b6d6341Smrg      test "$am__universal" = false || continue
35258b6d6341Smrg      ;;
35261abf7346Smrg    nosideeffect)
35271abf7346Smrg      # after this tag, mechanisms are not by side-effect, so they'll
35281abf7346Smrg      # only be used when explicitly requested
35291abf7346Smrg      if test "x$enable_dependency_tracking" = xyes; then
35301abf7346Smrg	continue
35311abf7346Smrg      else
35321abf7346Smrg	break
35331abf7346Smrg      fi
35341abf7346Smrg      ;;
35358b6d6341Smrg    msvisualcpp | msvcmsys)
35368b6d6341Smrg      # This compiler won't grok `-c -o', but also, the minuso test has
35378b6d6341Smrg      # not run yet.  These depmodes are late enough in the game, and
35388b6d6341Smrg      # so weak that their functioning should not be impacted.
35398b6d6341Smrg      am__obj=conftest.${OBJEXT-o}
35408b6d6341Smrg      am__minus_obj=
35418b6d6341Smrg      ;;
35421abf7346Smrg    none) break ;;
35431abf7346Smrg    esac
35441abf7346Smrg    if depmode=$depmode \
35458b6d6341Smrg       source=sub/conftest.c object=$am__obj \
35461abf7346Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
35478b6d6341Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
35481abf7346Smrg         >/dev/null 2>conftest.err &&
35491abf7346Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
35501abf7346Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
35518b6d6341Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
35521abf7346Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
35531abf7346Smrg      # icc doesn't choke on unknown options, it will just issue warnings
35541abf7346Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
35551abf7346Smrg      # that says an option was ignored or not supported.
35561abf7346Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
35571abf7346Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
35581abf7346Smrg      # The diagnosis changed in icc 8.0:
35591abf7346Smrg      #   icc: Command line remark: option '-MP' not supported
35601abf7346Smrg      if (grep 'ignoring option' conftest.err ||
35611abf7346Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
35621abf7346Smrg        am_cv_CC_dependencies_compiler_type=$depmode
35631abf7346Smrg        break
35641abf7346Smrg      fi
35651abf7346Smrg    fi
35661abf7346Smrg  done
35671abf7346Smrg
35681abf7346Smrg  cd ..
35691abf7346Smrg  rm -rf conftest.dir
35701abf7346Smrgelse
35711abf7346Smrg  am_cv_CC_dependencies_compiler_type=none
35721abf7346Smrgfi
35731abf7346Smrg
35741abf7346Smrgfi
35758b6d6341Smrg{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
35768b6d6341Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
35771abf7346SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
35781abf7346Smrg
35791abf7346Smrg if
35801abf7346Smrg  test "x$enable_dependency_tracking" != xno \
35811abf7346Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
35821abf7346Smrg  am__fastdepCC_TRUE=
35831abf7346Smrg  am__fastdepCC_FALSE='#'
35841abf7346Smrgelse
35851abf7346Smrg  am__fastdepCC_TRUE='#'
35861abf7346Smrg  am__fastdepCC_FALSE=
35871abf7346Smrgfi
35881abf7346Smrg
35891abf7346Smrg
35901abf7346Smrg# Find a good install program.  We prefer a C program (faster),
35911abf7346Smrg# so one script is as good as another.  But avoid the broken or
35921abf7346Smrg# incompatible versions:
35931abf7346Smrg# SysV /etc/install, /usr/sbin/install
35941abf7346Smrg# SunOS /usr/etc/install
35951abf7346Smrg# IRIX /sbin/install
35961abf7346Smrg# AIX /bin/install
35971abf7346Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
35981abf7346Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
35991abf7346Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
36001abf7346Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
36011abf7346Smrg# OS/2's system install, which has a completely different semantic
36021abf7346Smrg# ./install, which can be erroneously created by make from ./install.sh.
36038b6d6341Smrg# Reject install programs that cannot install multiple files.
36048b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
36058b6d6341Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
36061abf7346Smrgif test -z "$INSTALL"; then
36071abf7346Smrgif test "${ac_cv_path_install+set}" = set; then
36088b6d6341Smrg  $as_echo_n "(cached) " >&6
36091abf7346Smrgelse
36101abf7346Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36111abf7346Smrgfor as_dir in $PATH
36121abf7346Smrgdo
36131abf7346Smrg  IFS=$as_save_IFS
36141abf7346Smrg  test -z "$as_dir" && as_dir=.
36151abf7346Smrg  # Account for people who put trailing slashes in PATH elements.
36161abf7346Smrgcase $as_dir/ in
36171abf7346Smrg  ./ | .// | /cC/* | \
36181abf7346Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
36191abf7346Smrg  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
36201abf7346Smrg  /usr/ucb/* ) ;;
36211abf7346Smrg  *)
36221abf7346Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
36231abf7346Smrg    # Don't use installbsd from OSF since it installs stuff as root
36241abf7346Smrg    # by default.
36251abf7346Smrg    for ac_prog in ginstall scoinst install; do
36261abf7346Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
36271abf7346Smrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
36281abf7346Smrg	  if test $ac_prog = install &&
36291abf7346Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
36301abf7346Smrg	    # AIX install.  It has an incompatible calling convention.
36311abf7346Smrg	    :
36321abf7346Smrg	  elif test $ac_prog = install &&
36331abf7346Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
36341abf7346Smrg	    # program-specific install script used by HP pwplus--don't use.
36351abf7346Smrg	    :
36361abf7346Smrg	  else
36378b6d6341Smrg	    rm -rf conftest.one conftest.two conftest.dir
36388b6d6341Smrg	    echo one > conftest.one
36398b6d6341Smrg	    echo two > conftest.two
36408b6d6341Smrg	    mkdir conftest.dir
36418b6d6341Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
36428b6d6341Smrg	      test -s conftest.one && test -s conftest.two &&
36438b6d6341Smrg	      test -s conftest.dir/conftest.one &&
36448b6d6341Smrg	      test -s conftest.dir/conftest.two
36458b6d6341Smrg	    then
36468b6d6341Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
36478b6d6341Smrg	      break 3
36488b6d6341Smrg	    fi
36491abf7346Smrg	  fi
36501abf7346Smrg	fi
36511abf7346Smrg      done
36521abf7346Smrg    done
36531abf7346Smrg    ;;
36541abf7346Smrgesac
36558b6d6341Smrg
36561abf7346Smrgdone
36571abf7346SmrgIFS=$as_save_IFS
36581abf7346Smrg
36598b6d6341Smrgrm -rf conftest.one conftest.two conftest.dir
36601abf7346Smrg
36611abf7346Smrgfi
36621abf7346Smrg  if test "${ac_cv_path_install+set}" = set; then
36631abf7346Smrg    INSTALL=$ac_cv_path_install
36641abf7346Smrg  else
36651abf7346Smrg    # As a last resort, use the slow shell script.  Don't cache a
36661abf7346Smrg    # value for INSTALL within a source directory, because that will
36671abf7346Smrg    # break other packages using the cache if that directory is
36681abf7346Smrg    # removed, or if the value is a relative name.
36691abf7346Smrg    INSTALL=$ac_install_sh
36701abf7346Smrg  fi
36711abf7346Smrgfi
36728b6d6341Smrg{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
36738b6d6341Smrg$as_echo "$INSTALL" >&6; }
36741abf7346Smrg
36751abf7346Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
36761abf7346Smrg# It thinks the first close brace ends the variable substitution.
36771abf7346Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
36781abf7346Smrg
36791abf7346Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
36801abf7346Smrg
36811abf7346Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
36821abf7346Smrg
36831abf7346Smrg# Make sure we can run config.sub.
36841abf7346Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
36858b6d6341Smrg  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
36868b6d6341Smrg$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
36871abf7346Smrg   { (exit 1); exit 1; }; }
36881abf7346Smrg
36898b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking build system type" >&5
36908b6d6341Smrg$as_echo_n "checking build system type... " >&6; }
36911abf7346Smrgif test "${ac_cv_build+set}" = set; then
36928b6d6341Smrg  $as_echo_n "(cached) " >&6
36931abf7346Smrgelse
36941abf7346Smrg  ac_build_alias=$build_alias
36951abf7346Smrgtest "x$ac_build_alias" = x &&
36961abf7346Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
36971abf7346Smrgtest "x$ac_build_alias" = x &&
36988b6d6341Smrg  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
36998b6d6341Smrg$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
37001abf7346Smrg   { (exit 1); exit 1; }; }
37011abf7346Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
37028b6d6341Smrg  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
37038b6d6341Smrg$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
37041abf7346Smrg   { (exit 1); exit 1; }; }
37051abf7346Smrg
37061abf7346Smrgfi
37078b6d6341Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
37088b6d6341Smrg$as_echo "$ac_cv_build" >&6; }
37091abf7346Smrgcase $ac_cv_build in
37101abf7346Smrg*-*-*) ;;
37118b6d6341Smrg*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
37128b6d6341Smrg$as_echo "$as_me: error: invalid value of canonical build" >&2;}
37131abf7346Smrg   { (exit 1); exit 1; }; };;
37141abf7346Smrgesac
37151abf7346Smrgbuild=$ac_cv_build
37161abf7346Smrgac_save_IFS=$IFS; IFS='-'
37171abf7346Smrgset x $ac_cv_build
37181abf7346Smrgshift
37191abf7346Smrgbuild_cpu=$1
37201abf7346Smrgbuild_vendor=$2
37211abf7346Smrgshift; shift
37221abf7346Smrg# Remember, the first character of IFS is used to create $*,
37231abf7346Smrg# except with old shells:
37241abf7346Smrgbuild_os=$*
37251abf7346SmrgIFS=$ac_save_IFS
37261abf7346Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
37271abf7346Smrg
37281abf7346Smrg
37298b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking host system type" >&5
37308b6d6341Smrg$as_echo_n "checking host system type... " >&6; }
37311abf7346Smrgif test "${ac_cv_host+set}" = set; then
37328b6d6341Smrg  $as_echo_n "(cached) " >&6
37331abf7346Smrgelse
37341abf7346Smrg  if test "x$host_alias" = x; then
37351abf7346Smrg  ac_cv_host=$ac_cv_build
37361abf7346Smrgelse
37371abf7346Smrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
37388b6d6341Smrg    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
37398b6d6341Smrg$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
37401abf7346Smrg   { (exit 1); exit 1; }; }
37411abf7346Smrgfi
37421abf7346Smrg
37431abf7346Smrgfi
37448b6d6341Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
37458b6d6341Smrg$as_echo "$ac_cv_host" >&6; }
37461abf7346Smrgcase $ac_cv_host in
37471abf7346Smrg*-*-*) ;;
37488b6d6341Smrg*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
37498b6d6341Smrg$as_echo "$as_me: error: invalid value of canonical host" >&2;}
37501abf7346Smrg   { (exit 1); exit 1; }; };;
37511abf7346Smrgesac
37521abf7346Smrghost=$ac_cv_host
37531abf7346Smrgac_save_IFS=$IFS; IFS='-'
37541abf7346Smrgset x $ac_cv_host
37551abf7346Smrgshift
37561abf7346Smrghost_cpu=$1
37571abf7346Smrghost_vendor=$2
37581abf7346Smrgshift; shift
37591abf7346Smrg# Remember, the first character of IFS is used to create $*,
37601abf7346Smrg# except with old shells:
37611abf7346Smrghost_os=$*
37621abf7346SmrgIFS=$ac_save_IFS
37631abf7346Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
37641abf7346Smrg
37651abf7346Smrg
37661abf7346Smrg
37671abf7346Smrg
37688b6d6341Smrgac_ext=c
37698b6d6341Smrgac_cpp='$CPP $CPPFLAGS'
37708b6d6341Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37718b6d6341Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37728b6d6341Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
37738b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
37748b6d6341Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
37758b6d6341Smrg# On Suns, sometimes $CPP names a directory.
37768b6d6341Smrgif test -n "$CPP" && test -d "$CPP"; then
37778b6d6341Smrg  CPP=
37788b6d6341Smrgfi
37798b6d6341Smrgif test -z "$CPP"; then
37808b6d6341Smrg  if test "${ac_cv_prog_CPP+set}" = set; then
37818b6d6341Smrg  $as_echo_n "(cached) " >&6
37828b6d6341Smrgelse
37838b6d6341Smrg      # Double quotes because CPP needs to be expanded
37848b6d6341Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
37858b6d6341Smrg    do
37868b6d6341Smrg      ac_preproc_ok=false
37878b6d6341Smrgfor ac_c_preproc_warn_flag in '' yes
37888b6d6341Smrgdo
37898b6d6341Smrg  # Use a header file that comes with gcc, so configuring glibc
37908b6d6341Smrg  # with a fresh cross-compiler works.
37918b6d6341Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37928b6d6341Smrg  # <limits.h> exists even on freestanding compilers.
37938b6d6341Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
37948b6d6341Smrg  # not just through cpp. "Syntax error" is here to catch this case.
37951abf7346Smrg  cat >conftest.$ac_ext <<_ACEOF
37961abf7346Smrg/* confdefs.h.  */
37971abf7346Smrg_ACEOF
37981abf7346Smrgcat confdefs.h >>conftest.$ac_ext
37991abf7346Smrgcat >>conftest.$ac_ext <<_ACEOF
38001abf7346Smrg/* end confdefs.h.  */
38011abf7346Smrg#ifdef __STDC__
38021abf7346Smrg# include <limits.h>
38031abf7346Smrg#else
38041abf7346Smrg# include <assert.h>
38051abf7346Smrg#endif
38068b6d6341Smrg		     Syntax error
38078b6d6341Smrg_ACEOF
38088b6d6341Smrgif { (ac_try="$ac_cpp conftest.$ac_ext"
38098b6d6341Smrgcase "(($ac_try" in
38108b6d6341Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38118b6d6341Smrg  *) ac_try_echo=$ac_try;;
38128b6d6341Smrgesac
38138b6d6341Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38148b6d6341Smrg$as_echo "$ac_try_echo") >&5
38158b6d6341Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38168b6d6341Smrg  ac_status=$?
38178b6d6341Smrg  grep -v '^ *+' conftest.er1 >conftest.err
38188b6d6341Smrg  rm -f conftest.er1
38198b6d6341Smrg  cat conftest.err >&5
38208b6d6341Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38218b6d6341Smrg  (exit $ac_status); } >/dev/null && {
38228b6d6341Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38238b6d6341Smrg	 test ! -s conftest.err
38248b6d6341Smrg       }; then
38258b6d6341Smrg  :
38268b6d6341Smrgelse
38278b6d6341Smrg  $as_echo "$as_me: failed program was:" >&5
38288b6d6341Smrgsed 's/^/| /' conftest.$ac_ext >&5
38291abf7346Smrg
38308b6d6341Smrg  # Broken: fails on valid input.
38318b6d6341Smrgcontinue
38328b6d6341Smrgfi
38331abf7346Smrg
38348b6d6341Smrgrm -f conftest.err conftest.$ac_ext
38358b6d6341Smrg
38368b6d6341Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
38378b6d6341Smrg  # can be detected and how.
38388b6d6341Smrg  cat >conftest.$ac_ext <<_ACEOF
38398b6d6341Smrg/* confdefs.h.  */
38408b6d6341Smrg_ACEOF
38418b6d6341Smrgcat confdefs.h >>conftest.$ac_ext
38428b6d6341Smrgcat >>conftest.$ac_ext <<_ACEOF
38438b6d6341Smrg/* end confdefs.h.  */
38448b6d6341Smrg#include <ac_nonexistent.h>
38458b6d6341Smrg_ACEOF
38468b6d6341Smrgif { (ac_try="$ac_cpp conftest.$ac_ext"
38478b6d6341Smrgcase "(($ac_try" in
38488b6d6341Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38498b6d6341Smrg  *) ac_try_echo=$ac_try;;
38508b6d6341Smrgesac
38518b6d6341Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38528b6d6341Smrg$as_echo "$ac_try_echo") >&5
38538b6d6341Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38548b6d6341Smrg  ac_status=$?
38558b6d6341Smrg  grep -v '^ *+' conftest.er1 >conftest.err
38568b6d6341Smrg  rm -f conftest.er1
38578b6d6341Smrg  cat conftest.err >&5
38588b6d6341Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38598b6d6341Smrg  (exit $ac_status); } >/dev/null && {
38608b6d6341Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38618b6d6341Smrg	 test ! -s conftest.err
38628b6d6341Smrg       }; then
38638b6d6341Smrg  # Broken: success on invalid input.
38648b6d6341Smrgcontinue
38658b6d6341Smrgelse
38668b6d6341Smrg  $as_echo "$as_me: failed program was:" >&5
38678b6d6341Smrgsed 's/^/| /' conftest.$ac_ext >&5
38688b6d6341Smrg
38698b6d6341Smrg  # Passes both tests.
38708b6d6341Smrgac_preproc_ok=:
38718b6d6341Smrgbreak
38728b6d6341Smrgfi
38738b6d6341Smrg
38748b6d6341Smrgrm -f conftest.err conftest.$ac_ext
38758b6d6341Smrg
38768b6d6341Smrgdone
38778b6d6341Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
38788b6d6341Smrgrm -f conftest.err conftest.$ac_ext
38798b6d6341Smrgif $ac_preproc_ok; then
38808b6d6341Smrg  break
38818b6d6341Smrgfi
38828b6d6341Smrg
38838b6d6341Smrg    done
38848b6d6341Smrg    ac_cv_prog_CPP=$CPP
38858b6d6341Smrg
38868b6d6341Smrgfi
38878b6d6341Smrg  CPP=$ac_cv_prog_CPP
38888b6d6341Smrgelse
38898b6d6341Smrg  ac_cv_prog_CPP=$CPP
38908b6d6341Smrgfi
38918b6d6341Smrg{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
38928b6d6341Smrg$as_echo "$CPP" >&6; }
38938b6d6341Smrgac_preproc_ok=false
38948b6d6341Smrgfor ac_c_preproc_warn_flag in '' yes
38958b6d6341Smrgdo
38968b6d6341Smrg  # Use a header file that comes with gcc, so configuring glibc
38978b6d6341Smrg  # with a fresh cross-compiler works.
38988b6d6341Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38998b6d6341Smrg  # <limits.h> exists even on freestanding compilers.
39008b6d6341Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
39018b6d6341Smrg  # not just through cpp. "Syntax error" is here to catch this case.
39028b6d6341Smrg  cat >conftest.$ac_ext <<_ACEOF
39038b6d6341Smrg/* confdefs.h.  */
39048b6d6341Smrg_ACEOF
39058b6d6341Smrgcat confdefs.h >>conftest.$ac_ext
39068b6d6341Smrgcat >>conftest.$ac_ext <<_ACEOF
39078b6d6341Smrg/* end confdefs.h.  */
39088b6d6341Smrg#ifdef __STDC__
39098b6d6341Smrg# include <limits.h>
39108b6d6341Smrg#else
39118b6d6341Smrg# include <assert.h>
39128b6d6341Smrg#endif
39138b6d6341Smrg		     Syntax error
39148b6d6341Smrg_ACEOF
39158b6d6341Smrgif { (ac_try="$ac_cpp conftest.$ac_ext"
39168b6d6341Smrgcase "(($ac_try" in
39178b6d6341Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39188b6d6341Smrg  *) ac_try_echo=$ac_try;;
39198b6d6341Smrgesac
39208b6d6341Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39218b6d6341Smrg$as_echo "$ac_try_echo") >&5
39228b6d6341Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39238b6d6341Smrg  ac_status=$?
39248b6d6341Smrg  grep -v '^ *+' conftest.er1 >conftest.err
39258b6d6341Smrg  rm -f conftest.er1
39268b6d6341Smrg  cat conftest.err >&5
39278b6d6341Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39288b6d6341Smrg  (exit $ac_status); } >/dev/null && {
39298b6d6341Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39308b6d6341Smrg	 test ! -s conftest.err
39318b6d6341Smrg       }; then
39328b6d6341Smrg  :
39338b6d6341Smrgelse
39348b6d6341Smrg  $as_echo "$as_me: failed program was:" >&5
39358b6d6341Smrgsed 's/^/| /' conftest.$ac_ext >&5
39368b6d6341Smrg
39378b6d6341Smrg  # Broken: fails on valid input.
39388b6d6341Smrgcontinue
39398b6d6341Smrgfi
39408b6d6341Smrg
39418b6d6341Smrgrm -f conftest.err conftest.$ac_ext
39428b6d6341Smrg
39438b6d6341Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
39448b6d6341Smrg  # can be detected and how.
39458b6d6341Smrg  cat >conftest.$ac_ext <<_ACEOF
39468b6d6341Smrg/* confdefs.h.  */
39478b6d6341Smrg_ACEOF
39488b6d6341Smrgcat confdefs.h >>conftest.$ac_ext
39498b6d6341Smrgcat >>conftest.$ac_ext <<_ACEOF
39508b6d6341Smrg/* end confdefs.h.  */
39518b6d6341Smrg#include <ac_nonexistent.h>
39528b6d6341Smrg_ACEOF
39538b6d6341Smrgif { (ac_try="$ac_cpp conftest.$ac_ext"
39548b6d6341Smrgcase "(($ac_try" in
39558b6d6341Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39568b6d6341Smrg  *) ac_try_echo=$ac_try;;
39578b6d6341Smrgesac
39588b6d6341Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39598b6d6341Smrg$as_echo "$ac_try_echo") >&5
39608b6d6341Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39618b6d6341Smrg  ac_status=$?
39628b6d6341Smrg  grep -v '^ *+' conftest.er1 >conftest.err
39638b6d6341Smrg  rm -f conftest.er1
39648b6d6341Smrg  cat conftest.err >&5
39658b6d6341Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39668b6d6341Smrg  (exit $ac_status); } >/dev/null && {
39678b6d6341Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39688b6d6341Smrg	 test ! -s conftest.err
39698b6d6341Smrg       }; then
39708b6d6341Smrg  # Broken: success on invalid input.
39718b6d6341Smrgcontinue
39728b6d6341Smrgelse
39738b6d6341Smrg  $as_echo "$as_me: failed program was:" >&5
39748b6d6341Smrgsed 's/^/| /' conftest.$ac_ext >&5
39758b6d6341Smrg
39768b6d6341Smrg  # Passes both tests.
39778b6d6341Smrgac_preproc_ok=:
39788b6d6341Smrgbreak
39798b6d6341Smrgfi
39808b6d6341Smrg
39818b6d6341Smrgrm -f conftest.err conftest.$ac_ext
39828b6d6341Smrg
39838b6d6341Smrgdone
39848b6d6341Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
39858b6d6341Smrgrm -f conftest.err conftest.$ac_ext
39868b6d6341Smrgif $ac_preproc_ok; then
39878b6d6341Smrg  :
39888b6d6341Smrgelse
39898b6d6341Smrg  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
39908b6d6341Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
39918b6d6341Smrg{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
39928b6d6341SmrgSee \`config.log' for more details." >&5
39938b6d6341Smrg$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
39948b6d6341SmrgSee \`config.log' for more details." >&2;}
39958b6d6341Smrg   { (exit 1); exit 1; }; }; }
39968b6d6341Smrgfi
39978b6d6341Smrg
39988b6d6341Smrgac_ext=c
39998b6d6341Smrgac_cpp='$CPP $CPPFLAGS'
40008b6d6341Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40018b6d6341Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40028b6d6341Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
40038b6d6341Smrg
40048b6d6341Smrg
40058b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
40068b6d6341Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
40078b6d6341Smrgif test "${ac_cv_path_GREP+set}" = set; then
40088b6d6341Smrg  $as_echo_n "(cached) " >&6
40098b6d6341Smrgelse
40108b6d6341Smrg  if test -z "$GREP"; then
40118b6d6341Smrg  ac_path_GREP_found=false
40128b6d6341Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
40138b6d6341Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40148b6d6341Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
40158b6d6341Smrgdo
40168b6d6341Smrg  IFS=$as_save_IFS
40178b6d6341Smrg  test -z "$as_dir" && as_dir=.
40188b6d6341Smrg  for ac_prog in grep ggrep; do
40198b6d6341Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
40208b6d6341Smrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
40218b6d6341Smrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
40228b6d6341Smrg# Check for GNU ac_path_GREP and select it if it is found.
40238b6d6341Smrg  # Check for GNU $ac_path_GREP
40248b6d6341Smrgcase `"$ac_path_GREP" --version 2>&1` in
40258b6d6341Smrg*GNU*)
40268b6d6341Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
40278b6d6341Smrg*)
40288b6d6341Smrg  ac_count=0
40298b6d6341Smrg  $as_echo_n 0123456789 >"conftest.in"
40308b6d6341Smrg  while :
40318b6d6341Smrg  do
40328b6d6341Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
40338b6d6341Smrg    mv "conftest.tmp" "conftest.in"
40348b6d6341Smrg    cp "conftest.in" "conftest.nl"
40358b6d6341Smrg    $as_echo 'GREP' >> "conftest.nl"
40368b6d6341Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
40378b6d6341Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
40388b6d6341Smrg    ac_count=`expr $ac_count + 1`
40398b6d6341Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
40408b6d6341Smrg      # Best one so far, save it but keep looking for a better one
40418b6d6341Smrg      ac_cv_path_GREP="$ac_path_GREP"
40428b6d6341Smrg      ac_path_GREP_max=$ac_count
40438b6d6341Smrg    fi
40448b6d6341Smrg    # 10*(2^10) chars as input seems more than enough
40458b6d6341Smrg    test $ac_count -gt 10 && break
40468b6d6341Smrg  done
40478b6d6341Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
40488b6d6341Smrgesac
40498b6d6341Smrg
40508b6d6341Smrg      $ac_path_GREP_found && break 3
40518b6d6341Smrg    done
40528b6d6341Smrg  done
40538b6d6341Smrgdone
40548b6d6341SmrgIFS=$as_save_IFS
40558b6d6341Smrg  if test -z "$ac_cv_path_GREP"; then
40568b6d6341Smrg    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
40578b6d6341Smrg$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
40588b6d6341Smrg   { (exit 1); exit 1; }; }
40598b6d6341Smrg  fi
40608b6d6341Smrgelse
40618b6d6341Smrg  ac_cv_path_GREP=$GREP
40628b6d6341Smrgfi
40638b6d6341Smrg
40648b6d6341Smrgfi
40658b6d6341Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
40668b6d6341Smrg$as_echo "$ac_cv_path_GREP" >&6; }
40678b6d6341Smrg GREP="$ac_cv_path_GREP"
40688b6d6341Smrg
40698b6d6341Smrg
40708b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
40718b6d6341Smrg$as_echo_n "checking for egrep... " >&6; }
40728b6d6341Smrgif test "${ac_cv_path_EGREP+set}" = set; then
40738b6d6341Smrg  $as_echo_n "(cached) " >&6
40748b6d6341Smrgelse
40758b6d6341Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
40768b6d6341Smrg   then ac_cv_path_EGREP="$GREP -E"
40778b6d6341Smrg   else
40788b6d6341Smrg     if test -z "$EGREP"; then
40798b6d6341Smrg  ac_path_EGREP_found=false
40808b6d6341Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
40818b6d6341Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40828b6d6341Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
40838b6d6341Smrgdo
40848b6d6341Smrg  IFS=$as_save_IFS
40858b6d6341Smrg  test -z "$as_dir" && as_dir=.
40868b6d6341Smrg  for ac_prog in egrep; do
40878b6d6341Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
40888b6d6341Smrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
40898b6d6341Smrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
40908b6d6341Smrg# Check for GNU ac_path_EGREP and select it if it is found.
40918b6d6341Smrg  # Check for GNU $ac_path_EGREP
40928b6d6341Smrgcase `"$ac_path_EGREP" --version 2>&1` in
40938b6d6341Smrg*GNU*)
40948b6d6341Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
40958b6d6341Smrg*)
40968b6d6341Smrg  ac_count=0
40978b6d6341Smrg  $as_echo_n 0123456789 >"conftest.in"
40988b6d6341Smrg  while :
40998b6d6341Smrg  do
41008b6d6341Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
41018b6d6341Smrg    mv "conftest.tmp" "conftest.in"
41028b6d6341Smrg    cp "conftest.in" "conftest.nl"
41038b6d6341Smrg    $as_echo 'EGREP' >> "conftest.nl"
41048b6d6341Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
41058b6d6341Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
41068b6d6341Smrg    ac_count=`expr $ac_count + 1`
41078b6d6341Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
41088b6d6341Smrg      # Best one so far, save it but keep looking for a better one
41098b6d6341Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
41108b6d6341Smrg      ac_path_EGREP_max=$ac_count
41118b6d6341Smrg    fi
41128b6d6341Smrg    # 10*(2^10) chars as input seems more than enough
41138b6d6341Smrg    test $ac_count -gt 10 && break
41148b6d6341Smrg  done
41158b6d6341Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
41168b6d6341Smrgesac
41178b6d6341Smrg
41188b6d6341Smrg      $ac_path_EGREP_found && break 3
41198b6d6341Smrg    done
41208b6d6341Smrg  done
41218b6d6341Smrgdone
41228b6d6341SmrgIFS=$as_save_IFS
41238b6d6341Smrg  if test -z "$ac_cv_path_EGREP"; then
41248b6d6341Smrg    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
41258b6d6341Smrg$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
41268b6d6341Smrg   { (exit 1); exit 1; }; }
41278b6d6341Smrg  fi
41288b6d6341Smrgelse
41298b6d6341Smrg  ac_cv_path_EGREP=$EGREP
41308b6d6341Smrgfi
41318b6d6341Smrg
41328b6d6341Smrg   fi
41338b6d6341Smrgfi
41348b6d6341Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
41358b6d6341Smrg$as_echo "$ac_cv_path_EGREP" >&6; }
41368b6d6341Smrg EGREP="$ac_cv_path_EGREP"
41378b6d6341Smrg
41388b6d6341Smrg
41398b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
41408b6d6341Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
41418b6d6341Smrgif test "${ac_cv_header_stdc+set}" = set; then
41428b6d6341Smrg  $as_echo_n "(cached) " >&6
41438b6d6341Smrgelse
41448b6d6341Smrg  cat >conftest.$ac_ext <<_ACEOF
41458b6d6341Smrg/* confdefs.h.  */
41468b6d6341Smrg_ACEOF
41478b6d6341Smrgcat confdefs.h >>conftest.$ac_ext
41488b6d6341Smrgcat >>conftest.$ac_ext <<_ACEOF
41498b6d6341Smrg/* end confdefs.h.  */
41508b6d6341Smrg#include <stdlib.h>
41518b6d6341Smrg#include <stdarg.h>
41528b6d6341Smrg#include <string.h>
41538b6d6341Smrg#include <float.h>
41548b6d6341Smrg
41558b6d6341Smrgint
41568b6d6341Smrgmain ()
41578b6d6341Smrg{
41588b6d6341Smrg
41598b6d6341Smrg  ;
41608b6d6341Smrg  return 0;
41618b6d6341Smrg}
41628b6d6341Smrg_ACEOF
41638b6d6341Smrgrm -f conftest.$ac_objext
41648b6d6341Smrgif { (ac_try="$ac_compile"
41658b6d6341Smrgcase "(($ac_try" in
41668b6d6341Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41678b6d6341Smrg  *) ac_try_echo=$ac_try;;
41688b6d6341Smrgesac
41698b6d6341Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41708b6d6341Smrg$as_echo "$ac_try_echo") >&5
41718b6d6341Smrg  (eval "$ac_compile") 2>conftest.er1
41728b6d6341Smrg  ac_status=$?
41738b6d6341Smrg  grep -v '^ *+' conftest.er1 >conftest.err
41748b6d6341Smrg  rm -f conftest.er1
41758b6d6341Smrg  cat conftest.err >&5
41768b6d6341Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41778b6d6341Smrg  (exit $ac_status); } && {
41788b6d6341Smrg	 test -z "$ac_c_werror_flag" ||
41798b6d6341Smrg	 test ! -s conftest.err
41808b6d6341Smrg       } && test -s conftest.$ac_objext; then
41818b6d6341Smrg  ac_cv_header_stdc=yes
41828b6d6341Smrgelse
41838b6d6341Smrg  $as_echo "$as_me: failed program was:" >&5
41848b6d6341Smrgsed 's/^/| /' conftest.$ac_ext >&5
41858b6d6341Smrg
41868b6d6341Smrg	ac_cv_header_stdc=no
41878b6d6341Smrgfi
41888b6d6341Smrg
41898b6d6341Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41908b6d6341Smrg
41918b6d6341Smrgif test $ac_cv_header_stdc = yes; then
41928b6d6341Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
41938b6d6341Smrg  cat >conftest.$ac_ext <<_ACEOF
41948b6d6341Smrg/* confdefs.h.  */
41958b6d6341Smrg_ACEOF
41968b6d6341Smrgcat confdefs.h >>conftest.$ac_ext
41978b6d6341Smrgcat >>conftest.$ac_ext <<_ACEOF
41988b6d6341Smrg/* end confdefs.h.  */
41998b6d6341Smrg#include <string.h>
42008b6d6341Smrg
42018b6d6341Smrg_ACEOF
42028b6d6341Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42038b6d6341Smrg  $EGREP "memchr" >/dev/null 2>&1; then
42048b6d6341Smrg  :
42058b6d6341Smrgelse
42068b6d6341Smrg  ac_cv_header_stdc=no
42078b6d6341Smrgfi
42088b6d6341Smrgrm -f conftest*
42098b6d6341Smrg
42108b6d6341Smrgfi
42118b6d6341Smrg
42128b6d6341Smrgif test $ac_cv_header_stdc = yes; then
42138b6d6341Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
42148b6d6341Smrg  cat >conftest.$ac_ext <<_ACEOF
42158b6d6341Smrg/* confdefs.h.  */
42168b6d6341Smrg_ACEOF
42178b6d6341Smrgcat confdefs.h >>conftest.$ac_ext
42188b6d6341Smrgcat >>conftest.$ac_ext <<_ACEOF
42198b6d6341Smrg/* end confdefs.h.  */
42208b6d6341Smrg#include <stdlib.h>
42218b6d6341Smrg
42228b6d6341Smrg_ACEOF
42238b6d6341Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42248b6d6341Smrg  $EGREP "free" >/dev/null 2>&1; then
42258b6d6341Smrg  :
42268b6d6341Smrgelse
42278b6d6341Smrg  ac_cv_header_stdc=no
42288b6d6341Smrgfi
42298b6d6341Smrgrm -f conftest*
42308b6d6341Smrg
42318b6d6341Smrgfi
42328b6d6341Smrg
42338b6d6341Smrgif test $ac_cv_header_stdc = yes; then
42348b6d6341Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
42358b6d6341Smrg  if test "$cross_compiling" = yes; then
42368b6d6341Smrg  :
42378b6d6341Smrgelse
42388b6d6341Smrg  cat >conftest.$ac_ext <<_ACEOF
42398b6d6341Smrg/* confdefs.h.  */
42408b6d6341Smrg_ACEOF
42418b6d6341Smrgcat confdefs.h >>conftest.$ac_ext
42428b6d6341Smrgcat >>conftest.$ac_ext <<_ACEOF
42438b6d6341Smrg/* end confdefs.h.  */
42448b6d6341Smrg#include <ctype.h>
42458b6d6341Smrg#include <stdlib.h>
42468b6d6341Smrg#if ((' ' & 0x0FF) == 0x020)
42478b6d6341Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
42488b6d6341Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
42498b6d6341Smrg#else
42508b6d6341Smrg# define ISLOWER(c) \
42518b6d6341Smrg		   (('a' <= (c) && (c) <= 'i') \
42528b6d6341Smrg		     || ('j' <= (c) && (c) <= 'r') \
42538b6d6341Smrg		     || ('s' <= (c) && (c) <= 'z'))
42548b6d6341Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
42558b6d6341Smrg#endif
42568b6d6341Smrg
42578b6d6341Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
42588b6d6341Smrgint
42598b6d6341Smrgmain ()
42608b6d6341Smrg{
42618b6d6341Smrg  int i;
42628b6d6341Smrg  for (i = 0; i < 256; i++)
42638b6d6341Smrg    if (XOR (islower (i), ISLOWER (i))
42648b6d6341Smrg	|| toupper (i) != TOUPPER (i))
42658b6d6341Smrg      return 2;
42668b6d6341Smrg  return 0;
42678b6d6341Smrg}
42688b6d6341Smrg_ACEOF
42698b6d6341Smrgrm -f conftest$ac_exeext
42708b6d6341Smrgif { (ac_try="$ac_link"
42718b6d6341Smrgcase "(($ac_try" in
42728b6d6341Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42738b6d6341Smrg  *) ac_try_echo=$ac_try;;
42748b6d6341Smrgesac
42758b6d6341Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42768b6d6341Smrg$as_echo "$ac_try_echo") >&5
42778b6d6341Smrg  (eval "$ac_link") 2>&5
42788b6d6341Smrg  ac_status=$?
42798b6d6341Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42808b6d6341Smrg  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42818b6d6341Smrg  { (case "(($ac_try" in
42828b6d6341Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42838b6d6341Smrg  *) ac_try_echo=$ac_try;;
42848b6d6341Smrgesac
42858b6d6341Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42868b6d6341Smrg$as_echo "$ac_try_echo") >&5
42878b6d6341Smrg  (eval "$ac_try") 2>&5
42888b6d6341Smrg  ac_status=$?
42898b6d6341Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42908b6d6341Smrg  (exit $ac_status); }; }; then
42918b6d6341Smrg  :
42928b6d6341Smrgelse
42938b6d6341Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
42948b6d6341Smrg$as_echo "$as_me: failed program was:" >&5
42958b6d6341Smrgsed 's/^/| /' conftest.$ac_ext >&5
42968b6d6341Smrg
42978b6d6341Smrg( exit $ac_status )
42988b6d6341Smrgac_cv_header_stdc=no
42998b6d6341Smrgfi
43008b6d6341Smrgrm -rf conftest.dSYM
43018b6d6341Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43028b6d6341Smrgfi
43038b6d6341Smrg
43048b6d6341Smrg
43058b6d6341Smrgfi
43068b6d6341Smrgfi
43078b6d6341Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
43088b6d6341Smrg$as_echo "$ac_cv_header_stdc" >&6; }
43098b6d6341Smrgif test $ac_cv_header_stdc = yes; then
43108b6d6341Smrg
43118b6d6341Smrgcat >>confdefs.h <<\_ACEOF
43128b6d6341Smrg#define STDC_HEADERS 1
43138b6d6341Smrg_ACEOF
43148b6d6341Smrg
43158b6d6341Smrgfi
43168b6d6341Smrg
43178b6d6341Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
43188b6d6341Smrg
43198b6d6341Smrg
43208b6d6341Smrg
43218b6d6341Smrg
43228b6d6341Smrg
43238b6d6341Smrg
43248b6d6341Smrg
43258b6d6341Smrg
43268b6d6341Smrg
43278b6d6341Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
43288b6d6341Smrg		  inttypes.h stdint.h unistd.h
43298b6d6341Smrgdo
43308b6d6341Smrgas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
43318b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
43328b6d6341Smrg$as_echo_n "checking for $ac_header... " >&6; }
43338b6d6341Smrgif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43348b6d6341Smrg  $as_echo_n "(cached) " >&6
43358b6d6341Smrgelse
43368b6d6341Smrg  cat >conftest.$ac_ext <<_ACEOF
43378b6d6341Smrg/* confdefs.h.  */
43388b6d6341Smrg_ACEOF
43398b6d6341Smrgcat confdefs.h >>conftest.$ac_ext
43408b6d6341Smrgcat >>conftest.$ac_ext <<_ACEOF
43418b6d6341Smrg/* end confdefs.h.  */
43428b6d6341Smrg$ac_includes_default
43438b6d6341Smrg
43448b6d6341Smrg#include <$ac_header>
43458b6d6341Smrg_ACEOF
43468b6d6341Smrgrm -f conftest.$ac_objext
43478b6d6341Smrgif { (ac_try="$ac_compile"
43488b6d6341Smrgcase "(($ac_try" in
43498b6d6341Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43508b6d6341Smrg  *) ac_try_echo=$ac_try;;
43518b6d6341Smrgesac
43528b6d6341Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43538b6d6341Smrg$as_echo "$ac_try_echo") >&5
43548b6d6341Smrg  (eval "$ac_compile") 2>conftest.er1
43558b6d6341Smrg  ac_status=$?
43568b6d6341Smrg  grep -v '^ *+' conftest.er1 >conftest.err
43578b6d6341Smrg  rm -f conftest.er1
43588b6d6341Smrg  cat conftest.err >&5
43598b6d6341Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43608b6d6341Smrg  (exit $ac_status); } && {
43618b6d6341Smrg	 test -z "$ac_c_werror_flag" ||
43628b6d6341Smrg	 test ! -s conftest.err
43638b6d6341Smrg       } && test -s conftest.$ac_objext; then
43648b6d6341Smrg  eval "$as_ac_Header=yes"
43658b6d6341Smrgelse
43668b6d6341Smrg  $as_echo "$as_me: failed program was:" >&5
43678b6d6341Smrgsed 's/^/| /' conftest.$ac_ext >&5
43688b6d6341Smrg
43698b6d6341Smrg	eval "$as_ac_Header=no"
43708b6d6341Smrgfi
43718b6d6341Smrg
43728b6d6341Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43738b6d6341Smrgfi
43748b6d6341Smrgac_res=`eval 'as_val=${'$as_ac_Header'}
43758b6d6341Smrg		 $as_echo "$as_val"'`
43768b6d6341Smrg	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43778b6d6341Smrg$as_echo "$ac_res" >&6; }
43788b6d6341Smrgas_val=`eval 'as_val=${'$as_ac_Header'}
43798b6d6341Smrg		 $as_echo "$as_val"'`
43808b6d6341Smrg   if test "x$as_val" = x""yes; then
43818b6d6341Smrg  cat >>confdefs.h <<_ACEOF
43828b6d6341Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
43838b6d6341Smrg_ACEOF
43848b6d6341Smrg
43858b6d6341Smrgfi
43868b6d6341Smrg
43878b6d6341Smrgdone
43888b6d6341Smrg
43898b6d6341Smrg
43908b6d6341Smrg   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
43918b6d6341Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
43928b6d6341Smrgif test "${ac_cv_prog_cc_c99+set}" = set; then
43938b6d6341Smrg  $as_echo_n "(cached) " >&6
43948b6d6341Smrgelse
43958b6d6341Smrg  ac_cv_prog_cc_c99=no
43968b6d6341Smrgac_save_CC=$CC
43978b6d6341Smrgcat >conftest.$ac_ext <<_ACEOF
43988b6d6341Smrg/* confdefs.h.  */
43998b6d6341Smrg_ACEOF
44008b6d6341Smrgcat confdefs.h >>conftest.$ac_ext
44018b6d6341Smrgcat >>conftest.$ac_ext <<_ACEOF
44028b6d6341Smrg/* end confdefs.h.  */
44038b6d6341Smrg#include <stdarg.h>
44048b6d6341Smrg#include <stdbool.h>
44058b6d6341Smrg#include <stdlib.h>
44068b6d6341Smrg#include <wchar.h>
44078b6d6341Smrg#include <stdio.h>
44088b6d6341Smrg
44098b6d6341Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
44108b6d6341Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
44118b6d6341Smrg#define showlist(...) puts (#__VA_ARGS__)
44128b6d6341Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
44138b6d6341Smrgstatic void
44148b6d6341Smrgtest_varargs_macros (void)
44158b6d6341Smrg{
44168b6d6341Smrg  int x = 1234;
44178b6d6341Smrg  int y = 5678;
44188b6d6341Smrg  debug ("Flag");
44198b6d6341Smrg  debug ("X = %d\n", x);
44208b6d6341Smrg  showlist (The first, second, and third items.);
44218b6d6341Smrg  report (x>y, "x is %d but y is %d", x, y);
44228b6d6341Smrg}
44238b6d6341Smrg
44248b6d6341Smrg// Check long long types.
44258b6d6341Smrg#define BIG64 18446744073709551615ull
44268b6d6341Smrg#define BIG32 4294967295ul
44278b6d6341Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
44288b6d6341Smrg#if !BIG_OK
44298b6d6341Smrg  your preprocessor is broken;
44308b6d6341Smrg#endif
44318b6d6341Smrg#if BIG_OK
44328b6d6341Smrg#else
44338b6d6341Smrg  your preprocessor is broken;
44348b6d6341Smrg#endif
44358b6d6341Smrgstatic long long int bignum = -9223372036854775807LL;
44368b6d6341Smrgstatic unsigned long long int ubignum = BIG64;
44378b6d6341Smrg
44388b6d6341Smrgstruct incomplete_array
44398b6d6341Smrg{
44408b6d6341Smrg  int datasize;
44418b6d6341Smrg  double data[];
44428b6d6341Smrg};
44438b6d6341Smrg
44448b6d6341Smrgstruct named_init {
44458b6d6341Smrg  int number;
44468b6d6341Smrg  const wchar_t *name;
44478b6d6341Smrg  double average;
44488b6d6341Smrg};
44498b6d6341Smrg
44508b6d6341Smrgtypedef const char *ccp;
44518b6d6341Smrg
44528b6d6341Smrgstatic inline int
44538b6d6341Smrgtest_restrict (ccp restrict text)
44548b6d6341Smrg{
44558b6d6341Smrg  // See if C++-style comments work.
44568b6d6341Smrg  // Iterate through items via the restricted pointer.
44578b6d6341Smrg  // Also check for declarations in for loops.
44588b6d6341Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
44598b6d6341Smrg    continue;
44608b6d6341Smrg  return 0;
44618b6d6341Smrg}
44628b6d6341Smrg
44638b6d6341Smrg// Check varargs and va_copy.
44648b6d6341Smrgstatic void
44658b6d6341Smrgtest_varargs (const char *format, ...)
44668b6d6341Smrg{
44678b6d6341Smrg  va_list args;
44688b6d6341Smrg  va_start (args, format);
44698b6d6341Smrg  va_list args_copy;
44708b6d6341Smrg  va_copy (args_copy, args);
44718b6d6341Smrg
44728b6d6341Smrg  const char *str;
44738b6d6341Smrg  int number;
44748b6d6341Smrg  float fnumber;
44758b6d6341Smrg
44768b6d6341Smrg  while (*format)
44778b6d6341Smrg    {
44788b6d6341Smrg      switch (*format++)
44798b6d6341Smrg	{
44808b6d6341Smrg	case 's': // string
44818b6d6341Smrg	  str = va_arg (args_copy, const char *);
44828b6d6341Smrg	  break;
44838b6d6341Smrg	case 'd': // int
44848b6d6341Smrg	  number = va_arg (args_copy, int);
44858b6d6341Smrg	  break;
44868b6d6341Smrg	case 'f': // float
44878b6d6341Smrg	  fnumber = va_arg (args_copy, double);
44888b6d6341Smrg	  break;
44898b6d6341Smrg	default:
44908b6d6341Smrg	  break;
44918b6d6341Smrg	}
44928b6d6341Smrg    }
44938b6d6341Smrg  va_end (args_copy);
44948b6d6341Smrg  va_end (args);
44958b6d6341Smrg}
44968b6d6341Smrg
44978b6d6341Smrgint
44988b6d6341Smrgmain ()
44998b6d6341Smrg{
45008b6d6341Smrg
45018b6d6341Smrg  // Check bool.
45028b6d6341Smrg  _Bool success = false;
45038b6d6341Smrg
45048b6d6341Smrg  // Check restrict.
45058b6d6341Smrg  if (test_restrict ("String literal") == 0)
45068b6d6341Smrg    success = true;
45078b6d6341Smrg  char *restrict newvar = "Another string";
45088b6d6341Smrg
45098b6d6341Smrg  // Check varargs.
45108b6d6341Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
45118b6d6341Smrg  test_varargs_macros ();
45128b6d6341Smrg
45138b6d6341Smrg  // Check flexible array members.
45148b6d6341Smrg  struct incomplete_array *ia =
45158b6d6341Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
45168b6d6341Smrg  ia->datasize = 10;
45178b6d6341Smrg  for (int i = 0; i < ia->datasize; ++i)
45188b6d6341Smrg    ia->data[i] = i * 1.234;
45198b6d6341Smrg
45208b6d6341Smrg  // Check named initializers.
45218b6d6341Smrg  struct named_init ni = {
45228b6d6341Smrg    .number = 34,
45238b6d6341Smrg    .name = L"Test wide string",
45248b6d6341Smrg    .average = 543.34343,
45258b6d6341Smrg  };
45268b6d6341Smrg
45278b6d6341Smrg  ni.number = 58;
45288b6d6341Smrg
45298b6d6341Smrg  int dynamic_array[ni.number];
45308b6d6341Smrg  dynamic_array[ni.number - 1] = 543;
45318b6d6341Smrg
45328b6d6341Smrg  // work around unused variable warnings
45338b6d6341Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
45348b6d6341Smrg	  || dynamic_array[ni.number - 1] != 543);
45358b6d6341Smrg
45368b6d6341Smrg  ;
45378b6d6341Smrg  return 0;
45388b6d6341Smrg}
45398b6d6341Smrg_ACEOF
45408b6d6341Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
45418b6d6341Smrgdo
45428b6d6341Smrg  CC="$ac_save_CC $ac_arg"
45438b6d6341Smrg  rm -f conftest.$ac_objext
45448b6d6341Smrgif { (ac_try="$ac_compile"
45458b6d6341Smrgcase "(($ac_try" in
45468b6d6341Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45478b6d6341Smrg  *) ac_try_echo=$ac_try;;
45488b6d6341Smrgesac
45498b6d6341Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45508b6d6341Smrg$as_echo "$ac_try_echo") >&5
45518b6d6341Smrg  (eval "$ac_compile") 2>conftest.er1
45528b6d6341Smrg  ac_status=$?
45538b6d6341Smrg  grep -v '^ *+' conftest.er1 >conftest.err
45548b6d6341Smrg  rm -f conftest.er1
45558b6d6341Smrg  cat conftest.err >&5
45568b6d6341Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45578b6d6341Smrg  (exit $ac_status); } && {
45588b6d6341Smrg	 test -z "$ac_c_werror_flag" ||
45598b6d6341Smrg	 test ! -s conftest.err
45608b6d6341Smrg       } && test -s conftest.$ac_objext; then
45618b6d6341Smrg  ac_cv_prog_cc_c99=$ac_arg
45628b6d6341Smrgelse
45638b6d6341Smrg  $as_echo "$as_me: failed program was:" >&5
45648b6d6341Smrgsed 's/^/| /' conftest.$ac_ext >&5
45658b6d6341Smrg
45668b6d6341Smrg
45678b6d6341Smrgfi
45688b6d6341Smrg
45698b6d6341Smrgrm -f core conftest.err conftest.$ac_objext
45708b6d6341Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
45718b6d6341Smrgdone
45728b6d6341Smrgrm -f conftest.$ac_ext
45738b6d6341SmrgCC=$ac_save_CC
45748b6d6341Smrg
45758b6d6341Smrgfi
45768b6d6341Smrg# AC_CACHE_VAL
45778b6d6341Smrgcase "x$ac_cv_prog_cc_c99" in
45788b6d6341Smrg  x)
45798b6d6341Smrg    { $as_echo "$as_me:$LINENO: result: none needed" >&5
45808b6d6341Smrg$as_echo "none needed" >&6; } ;;
45818b6d6341Smrg  xno)
45828b6d6341Smrg    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
45838b6d6341Smrg$as_echo "unsupported" >&6; } ;;
45848b6d6341Smrg  *)
45858b6d6341Smrg    CC="$CC $ac_cv_prog_cc_c99"
45868b6d6341Smrg    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
45878b6d6341Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
45888b6d6341Smrgesac
45898b6d6341Smrg
45908b6d6341Smrg
45918b6d6341Smrg
45928b6d6341Smrg
45938b6d6341Smrg
45948b6d6341Smrg
45958b6d6341Smrgif  test "x$GCC" = xyes ; then
45968b6d6341Smrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
45978b6d6341Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
45988b6d6341Smrg-Wbad-function-cast"
45998b6d6341Smrg    case `$CC -dumpversion` in
46008b6d6341Smrg    3.4.* | 4.*)
46018b6d6341Smrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
46028b6d6341Smrg	;;
46038b6d6341Smrg    esac
46048b6d6341Smrgelse
46058b6d6341Smrg    { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
46068b6d6341Smrg$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
46078b6d6341Smrgif test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
46088b6d6341Smrg  $as_echo_n "(cached) " >&6
46098b6d6341Smrgelse
46108b6d6341Smrg  cat >conftest.$ac_ext <<_ACEOF
46118b6d6341Smrg/* confdefs.h.  */
46128b6d6341Smrg_ACEOF
46138b6d6341Smrgcat confdefs.h >>conftest.$ac_ext
46148b6d6341Smrgcat >>conftest.$ac_ext <<_ACEOF
46158b6d6341Smrg/* end confdefs.h.  */
46168b6d6341Smrg$ac_includes_default
46178b6d6341Smrgint
46188b6d6341Smrgmain ()
46198b6d6341Smrg{
46208b6d6341Smrg#ifndef __SUNPRO_C
46218b6d6341Smrg  (void) __SUNPRO_C;
46228b6d6341Smrg#endif
46238b6d6341Smrg
46248b6d6341Smrg  ;
46258b6d6341Smrg  return 0;
46268b6d6341Smrg}
46278b6d6341Smrg_ACEOF
46288b6d6341Smrgrm -f conftest.$ac_objext
46298b6d6341Smrgif { (ac_try="$ac_compile"
46308b6d6341Smrgcase "(($ac_try" in
46318b6d6341Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46328b6d6341Smrg  *) ac_try_echo=$ac_try;;
46338b6d6341Smrgesac
46348b6d6341Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46358b6d6341Smrg$as_echo "$ac_try_echo") >&5
46368b6d6341Smrg  (eval "$ac_compile") 2>conftest.er1
46378b6d6341Smrg  ac_status=$?
46388b6d6341Smrg  grep -v '^ *+' conftest.er1 >conftest.err
46398b6d6341Smrg  rm -f conftest.er1
46408b6d6341Smrg  cat conftest.err >&5
46418b6d6341Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46428b6d6341Smrg  (exit $ac_status); } && {
46438b6d6341Smrg	 test -z "$ac_c_werror_flag" ||
46448b6d6341Smrg	 test ! -s conftest.err
46458b6d6341Smrg       } && test -s conftest.$ac_objext; then
46468b6d6341Smrg  ac_cv_have_decl___SUNPRO_C=yes
46478b6d6341Smrgelse
46488b6d6341Smrg  $as_echo "$as_me: failed program was:" >&5
46498b6d6341Smrgsed 's/^/| /' conftest.$ac_ext >&5
46508b6d6341Smrg
46518b6d6341Smrg	ac_cv_have_decl___SUNPRO_C=no
46528b6d6341Smrgfi
46538b6d6341Smrg
46548b6d6341Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46558b6d6341Smrgfi
46568b6d6341Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
46578b6d6341Smrg$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
46588b6d6341Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
46598b6d6341Smrg  SUNCC="yes"
46608b6d6341Smrgelse
46618b6d6341Smrg  SUNCC="no"
46628b6d6341Smrgfi
46638b6d6341Smrg
46648b6d6341Smrg    if test "x$SUNCC" = "xyes"; then
46658b6d6341Smrg	CWARNFLAGS="-v"
46668b6d6341Smrg    fi
46678b6d6341Smrgfi
46688b6d6341Smrg
46698b6d6341Smrg# Check whether --enable-silent-rules was given.
46708b6d6341Smrgif test "${enable_silent_rules+set}" = set; then
46718b6d6341Smrg  enableval=$enable_silent_rules;
46728b6d6341Smrgfi
46738b6d6341Smrg
46748b6d6341Smrgcase $enable_silent_rules in
46758b6d6341Smrgyes) AM_DEFAULT_VERBOSITY=0;;
46768b6d6341Smrgno)  AM_DEFAULT_VERBOSITY=1;;
46778b6d6341Smrg*)   AM_DEFAULT_VERBOSITY=0;;
46788b6d6341Smrgesac
46798b6d6341SmrgAM_BACKSLASH='\'
46808b6d6341Smrg
46818b6d6341Smrg
46828b6d6341Smrg
46838b6d6341Smrg
46848b6d6341Smrg
46858b6d6341Smrg
46868b6d6341Smrg
46878b6d6341Smrg# Check whether --enable-strict-compilation was given.
46888b6d6341Smrgif test "${enable_strict_compilation+set}" = set; then
46898b6d6341Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
46908b6d6341Smrgelse
46918b6d6341Smrg  STRICT_COMPILE=no
46928b6d6341Smrgfi
46938b6d6341Smrg
46948b6d6341Smrgif test "x$STRICT_COMPILE" = "xyes"; then
46958b6d6341Smrg	{ $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
46968b6d6341Smrg$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
46978b6d6341Smrgif test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
46988b6d6341Smrg  $as_echo_n "(cached) " >&6
46998b6d6341Smrgelse
47008b6d6341Smrg  cat >conftest.$ac_ext <<_ACEOF
47018b6d6341Smrg/* confdefs.h.  */
47028b6d6341Smrg_ACEOF
47038b6d6341Smrgcat confdefs.h >>conftest.$ac_ext
47048b6d6341Smrgcat >>conftest.$ac_ext <<_ACEOF
47058b6d6341Smrg/* end confdefs.h.  */
47068b6d6341Smrg$ac_includes_default
47078b6d6341Smrgint
47088b6d6341Smrgmain ()
47098b6d6341Smrg{
47108b6d6341Smrg#ifndef __SUNPRO_C
47118b6d6341Smrg  (void) __SUNPRO_C;
47128b6d6341Smrg#endif
47138b6d6341Smrg
47148b6d6341Smrg  ;
47158b6d6341Smrg  return 0;
47168b6d6341Smrg}
47178b6d6341Smrg_ACEOF
47188b6d6341Smrgrm -f conftest.$ac_objext
47198b6d6341Smrgif { (ac_try="$ac_compile"
47208b6d6341Smrgcase "(($ac_try" in
47218b6d6341Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47228b6d6341Smrg  *) ac_try_echo=$ac_try;;
47238b6d6341Smrgesac
47248b6d6341Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47258b6d6341Smrg$as_echo "$ac_try_echo") >&5
47268b6d6341Smrg  (eval "$ac_compile") 2>conftest.er1
47278b6d6341Smrg  ac_status=$?
47288b6d6341Smrg  grep -v '^ *+' conftest.er1 >conftest.err
47298b6d6341Smrg  rm -f conftest.er1
47308b6d6341Smrg  cat conftest.err >&5
47318b6d6341Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47328b6d6341Smrg  (exit $ac_status); } && {
47338b6d6341Smrg	 test -z "$ac_c_werror_flag" ||
47348b6d6341Smrg	 test ! -s conftest.err
47358b6d6341Smrg       } && test -s conftest.$ac_objext; then
47368b6d6341Smrg  ac_cv_have_decl___SUNPRO_C=yes
47378b6d6341Smrgelse
47388b6d6341Smrg  $as_echo "$as_me: failed program was:" >&5
47398b6d6341Smrgsed 's/^/| /' conftest.$ac_ext >&5
47408b6d6341Smrg
47418b6d6341Smrg	ac_cv_have_decl___SUNPRO_C=no
47428b6d6341Smrgfi
47438b6d6341Smrg
47448b6d6341Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47458b6d6341Smrgfi
47468b6d6341Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
47478b6d6341Smrg$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
47488b6d6341Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
47498b6d6341Smrg  SUNCC="yes"
47508b6d6341Smrgelse
47518b6d6341Smrg  SUNCC="no"
47528b6d6341Smrgfi
47538b6d6341Smrg
47548b6d6341Smrg	{ $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
47558b6d6341Smrg$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
47568b6d6341Smrgif test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
47578b6d6341Smrg  $as_echo_n "(cached) " >&6
47588b6d6341Smrgelse
47598b6d6341Smrg  cat >conftest.$ac_ext <<_ACEOF
47608b6d6341Smrg/* confdefs.h.  */
47618b6d6341Smrg_ACEOF
47628b6d6341Smrgcat confdefs.h >>conftest.$ac_ext
47638b6d6341Smrgcat >>conftest.$ac_ext <<_ACEOF
47648b6d6341Smrg/* end confdefs.h.  */
47658b6d6341Smrg$ac_includes_default
47668b6d6341Smrgint
47678b6d6341Smrgmain ()
47688b6d6341Smrg{
47698b6d6341Smrg#ifndef __INTEL_COMPILER
47708b6d6341Smrg  (void) __INTEL_COMPILER;
47718b6d6341Smrg#endif
47728b6d6341Smrg
47738b6d6341Smrg  ;
47748b6d6341Smrg  return 0;
47758b6d6341Smrg}
47768b6d6341Smrg_ACEOF
47778b6d6341Smrgrm -f conftest.$ac_objext
47788b6d6341Smrgif { (ac_try="$ac_compile"
47798b6d6341Smrgcase "(($ac_try" in
47808b6d6341Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47818b6d6341Smrg  *) ac_try_echo=$ac_try;;
47828b6d6341Smrgesac
47838b6d6341Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47848b6d6341Smrg$as_echo "$ac_try_echo") >&5
47858b6d6341Smrg  (eval "$ac_compile") 2>conftest.er1
47868b6d6341Smrg  ac_status=$?
47878b6d6341Smrg  grep -v '^ *+' conftest.er1 >conftest.err
47888b6d6341Smrg  rm -f conftest.er1
47898b6d6341Smrg  cat conftest.err >&5
47908b6d6341Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47918b6d6341Smrg  (exit $ac_status); } && {
47928b6d6341Smrg	 test -z "$ac_c_werror_flag" ||
47938b6d6341Smrg	 test ! -s conftest.err
47948b6d6341Smrg       } && test -s conftest.$ac_objext; then
47958b6d6341Smrg  ac_cv_have_decl___INTEL_COMPILER=yes
47968b6d6341Smrgelse
47978b6d6341Smrg  $as_echo "$as_me: failed program was:" >&5
47988b6d6341Smrgsed 's/^/| /' conftest.$ac_ext >&5
47998b6d6341Smrg
48008b6d6341Smrg	ac_cv_have_decl___INTEL_COMPILER=no
48018b6d6341Smrgfi
48028b6d6341Smrg
48038b6d6341Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48048b6d6341Smrgfi
48058b6d6341Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
48068b6d6341Smrg$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
48078b6d6341Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then
48088b6d6341Smrg  INTELCC="yes"
48098b6d6341Smrgelse
48108b6d6341Smrg  INTELCC="no"
48118b6d6341Smrgfi
48128b6d6341Smrg
48138b6d6341Smrg	if test "x$GCC" = xyes ; then
48148b6d6341Smrg		STRICT_CFLAGS="-pedantic -Werror"
48158b6d6341Smrg	elif test "x$SUNCC" = "xyes"; then
48168b6d6341Smrg		STRICT_CFLAGS="-errwarn"
48178b6d6341Smrg    elif test "x$INTELCC" = "xyes"; then
48188b6d6341Smrg		STRICT_CFLAGS="-Werror"
48198b6d6341Smrg	fi
48208b6d6341Smrgfi
48218b6d6341SmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
48228b6d6341Smrg
48238b6d6341Smrg
48248b6d6341Smrg
48258b6d6341Smrg
48268b6d6341Smrg# Check whether --with-release-version was given.
48278b6d6341Smrgif test "${with_release_version+set}" = set; then
48288b6d6341Smrg  withval=$with_release_version; RELEASE_VERSION="$withval"
48298b6d6341Smrgelse
48308b6d6341Smrg  RELEASE_VERSION=""
48318b6d6341Smrgfi
48328b6d6341Smrg
48338b6d6341Smrg	if test "x$RELEASE_VERSION" != "x"; then
48348b6d6341Smrg		PACKAGE="$PACKAGE-$RELEASE_VERSION"
48358b6d6341Smrg		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
48368b6d6341Smrg		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
48378b6d6341Smrg$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
48388b6d6341Smrg	fi
48398b6d6341Smrg
48408b6d6341Smrgcat >>confdefs.h <<_ACEOF
48418b6d6341Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
48428b6d6341Smrg_ACEOF
48438b6d6341Smrg
48448b6d6341Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
48458b6d6341Smrg	if test "x$PVM" = "x"; then
48468b6d6341Smrg		PVM="0"
48478b6d6341Smrg	fi
48488b6d6341Smrg
48498b6d6341Smrgcat >>confdefs.h <<_ACEOF
48508b6d6341Smrg#define PACKAGE_VERSION_MINOR $PVM
48518b6d6341Smrg_ACEOF
48528b6d6341Smrg
48538b6d6341Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
48548b6d6341Smrg	if test "x$PVP" = "x"; then
48558b6d6341Smrg		PVP="0"
48568b6d6341Smrg	fi
48578b6d6341Smrg
48588b6d6341Smrgcat >>confdefs.h <<_ACEOF
48598b6d6341Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
48608b6d6341Smrg_ACEOF
48618b6d6341Smrg
48628b6d6341Smrg
48638b6d6341Smrg
48648b6d6341SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
48658b6d6341Smrgmv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
48668b6d6341Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
48678b6d6341Smrg
48688b6d6341Smrgdistcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
48698b6d6341Smrg
48708b6d6341Smrg
48718b6d6341Smrg
48728b6d6341Smrg
48738b6d6341Smrg
48748b6d6341Smrgif test x$APP_MAN_SUFFIX = x    ; then
48758b6d6341Smrg    APP_MAN_SUFFIX=1
48768b6d6341Smrgfi
48778b6d6341Smrgif test x$APP_MAN_DIR = x    ; then
48788b6d6341Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
48798b6d6341Smrgfi
48808b6d6341Smrg
48818b6d6341Smrgif test x$LIB_MAN_SUFFIX = x    ; then
48828b6d6341Smrg    LIB_MAN_SUFFIX=3
48838b6d6341Smrgfi
48848b6d6341Smrgif test x$LIB_MAN_DIR = x    ; then
48858b6d6341Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
48868b6d6341Smrgfi
48878b6d6341Smrg
48888b6d6341Smrgif test x$FILE_MAN_SUFFIX = x    ; then
48898b6d6341Smrg    case $host_os in
48908b6d6341Smrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
48918b6d6341Smrg	*)		FILE_MAN_SUFFIX=5  ;;
48928b6d6341Smrg    esac
48938b6d6341Smrgfi
48948b6d6341Smrgif test x$FILE_MAN_DIR = x    ; then
48958b6d6341Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
48968b6d6341Smrgfi
48978b6d6341Smrg
48988b6d6341Smrgif test x$MISC_MAN_SUFFIX = x    ; then
48998b6d6341Smrg    case $host_os in
49008b6d6341Smrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
49018b6d6341Smrg	*)		MISC_MAN_SUFFIX=7  ;;
49028b6d6341Smrg    esac
49038b6d6341Smrgfi
49048b6d6341Smrgif test x$MISC_MAN_DIR = x    ; then
49058b6d6341Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
49068b6d6341Smrgfi
49078b6d6341Smrg
49088b6d6341Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
49098b6d6341Smrg    case $host_os in
49108b6d6341Smrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
49118b6d6341Smrg	*)		DRIVER_MAN_SUFFIX=4  ;;
49128b6d6341Smrg    esac
49138b6d6341Smrgfi
49148b6d6341Smrgif test x$DRIVER_MAN_DIR = x    ; then
49158b6d6341Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
49168b6d6341Smrgfi
49178b6d6341Smrg
49188b6d6341Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
49198b6d6341Smrg    case $host_os in
49208b6d6341Smrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
49218b6d6341Smrg	*)		ADMIN_MAN_SUFFIX=8  ;;
49228b6d6341Smrg    esac
49238b6d6341Smrgfi
49248b6d6341Smrgif test x$ADMIN_MAN_DIR = x    ; then
49258b6d6341Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
49268b6d6341Smrgfi
49278b6d6341Smrg
49288b6d6341Smrg
49298b6d6341Smrg
49308b6d6341Smrg
49318b6d6341Smrg
49328b6d6341Smrg
49338b6d6341Smrg
49348b6d6341Smrg
49358b6d6341Smrg
49368b6d6341Smrg
49378b6d6341Smrg
49388b6d6341Smrg
49398b6d6341Smrg
49408b6d6341Smrg
49418b6d6341Smrg
49428b6d6341Smrg
49438b6d6341Smrg
49448b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking for mkstemp" >&5
49458b6d6341Smrg$as_echo_n "checking for mkstemp... " >&6; }
49468b6d6341Smrgif test "${ac_cv_func_mkstemp+set}" = set; then
49478b6d6341Smrg  $as_echo_n "(cached) " >&6
49488b6d6341Smrgelse
49498b6d6341Smrg  cat >conftest.$ac_ext <<_ACEOF
49508b6d6341Smrg/* confdefs.h.  */
49518b6d6341Smrg_ACEOF
49528b6d6341Smrgcat confdefs.h >>conftest.$ac_ext
49538b6d6341Smrgcat >>conftest.$ac_ext <<_ACEOF
49548b6d6341Smrg/* end confdefs.h.  */
49558b6d6341Smrg/* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
49568b6d6341Smrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49578b6d6341Smrg#define mkstemp innocuous_mkstemp
49588b6d6341Smrg
49598b6d6341Smrg/* System header to define __stub macros and hopefully few prototypes,
49608b6d6341Smrg    which can conflict with char mkstemp (); below.
49618b6d6341Smrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49628b6d6341Smrg    <limits.h> exists even on freestanding compilers.  */
49638b6d6341Smrg
49648b6d6341Smrg#ifdef __STDC__
49658b6d6341Smrg# include <limits.h>
49668b6d6341Smrg#else
49678b6d6341Smrg# include <assert.h>
49688b6d6341Smrg#endif
49698b6d6341Smrg
49708b6d6341Smrg#undef mkstemp
49718b6d6341Smrg
49728b6d6341Smrg/* Override any GCC internal prototype to avoid an error.
49738b6d6341Smrg   Use char because int might match the return type of a GCC
49741abf7346Smrg   builtin and then its argument prototype would still apply.  */
49751abf7346Smrg#ifdef __cplusplus
49761abf7346Smrgextern "C"
49771abf7346Smrg#endif
49781abf7346Smrgchar mkstemp ();
49791abf7346Smrg/* The GNU C library defines this for functions which it implements
49801abf7346Smrg    to always fail with ENOSYS.  Some functions are actually named
49811abf7346Smrg    something starting with __ and the normal name is an alias.  */
49821abf7346Smrg#if defined __stub_mkstemp || defined __stub___mkstemp
49831abf7346Smrgchoke me
49841abf7346Smrg#endif
49851abf7346Smrg
49861abf7346Smrgint
49871abf7346Smrgmain ()
49881abf7346Smrg{
49891abf7346Smrgreturn mkstemp ();
49901abf7346Smrg  ;
49911abf7346Smrg  return 0;
49921abf7346Smrg}
49931abf7346Smrg_ACEOF
49941abf7346Smrgrm -f conftest.$ac_objext conftest$ac_exeext
49951abf7346Smrgif { (ac_try="$ac_link"
49961abf7346Smrgcase "(($ac_try" in
49971abf7346Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49981abf7346Smrg  *) ac_try_echo=$ac_try;;
49991abf7346Smrgesac
50008b6d6341Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50018b6d6341Smrg$as_echo "$ac_try_echo") >&5
50021abf7346Smrg  (eval "$ac_link") 2>conftest.er1
50031abf7346Smrg  ac_status=$?
50041abf7346Smrg  grep -v '^ *+' conftest.er1 >conftest.err
50051abf7346Smrg  rm -f conftest.er1
50061abf7346Smrg  cat conftest.err >&5
50078b6d6341Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50081abf7346Smrg  (exit $ac_status); } && {
50091abf7346Smrg	 test -z "$ac_c_werror_flag" ||
50101abf7346Smrg	 test ! -s conftest.err
50118b6d6341Smrg       } && test -s conftest$ac_exeext && {
50128b6d6341Smrg	 test "$cross_compiling" = yes ||
50138b6d6341Smrg	 $as_test_x conftest$ac_exeext
50148b6d6341Smrg       }; then
50151abf7346Smrg  ac_cv_func_mkstemp=yes
50161abf7346Smrgelse
50178b6d6341Smrg  $as_echo "$as_me: failed program was:" >&5
50181abf7346Smrgsed 's/^/| /' conftest.$ac_ext >&5
50191abf7346Smrg
50201abf7346Smrg	ac_cv_func_mkstemp=no
50211abf7346Smrgfi
50221abf7346Smrg
50238b6d6341Smrgrm -rf conftest.dSYM
50241abf7346Smrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50251abf7346Smrg      conftest$ac_exeext conftest.$ac_ext
50261abf7346Smrgfi
50278b6d6341Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
50288b6d6341Smrg$as_echo "$ac_cv_func_mkstemp" >&6; }
50298b6d6341Smrgif test "x$ac_cv_func_mkstemp" = x""yes; then
50301abf7346Smrg
50311abf7346Smrgcat >>confdefs.h <<\_ACEOF
50321abf7346Smrg#define HAS_MKSTEMP 1
50331abf7346Smrg_ACEOF
50341abf7346Smrg
50351abf7346Smrgfi
50361abf7346Smrg
50371abf7346Smrg
50381abf7346Smrg
50391abf7346Smrg# Check whether --with-helpdir was given.
50401abf7346Smrgif test "${with_helpdir+set}" = set; then
50411abf7346Smrg  withval=$with_helpdir; HELPDIR="$withval"
50421abf7346Smrgelse
50431abf7346Smrg  HELPDIR=${datadir}/X11
50441abf7346Smrgfi
50451abf7346Smrg
50461abf7346Smrg
50471abf7346Smrg
50481abf7346Smrg
50491abf7346Smrg# Check whether --with-sysmanpath was given.
50501abf7346Smrgif test "${with_sysmanpath+set}" = set; then
50511abf7346Smrg  withval=$with_sysmanpath; SYSMANPATH="$withval"
50521abf7346Smrgfi
50531abf7346Smrg
50541abf7346Smrgif test x$SYSMANPATH != x; then
50551abf7346Smrg
50561abf7346Smrgcat >>confdefs.h <<_ACEOF
50571abf7346Smrg#define SYSMANPATH "$SYSMANPATH"
50581abf7346Smrg_ACEOF
50591abf7346Smrg
50601abf7346Smrgfi
50611abf7346Smrg
50621abf7346Smrg
50631abf7346Smrg# Check whether --with-localmanpath was given.
50641abf7346Smrgif test "${with_localmanpath+set}" = set; then
50651abf7346Smrg  withval=$with_localmanpath; LOCALMANPATH="$withval"
50661abf7346Smrgfi
50671abf7346Smrg
50681abf7346Smrgif test x$LOCALMANPATH != x; then
50691abf7346Smrg
50701abf7346Smrgcat >>confdefs.h <<_ACEOF
50711abf7346Smrg#define LOCALMANPATH "$LOCALMANPATH"
50721abf7346Smrg_ACEOF
50731abf7346Smrg
50741abf7346Smrgfi
50751abf7346Smrg
50761abf7346Smrg# Checks for pkg-config packages
50771abf7346Smrg
50781abf7346Smrg
50791abf7346Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
50801abf7346Smrg	if test -n "$ac_tool_prefix"; then
50811abf7346Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
50821abf7346Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
50838b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
50848b6d6341Smrg$as_echo_n "checking for $ac_word... " >&6; }
50851abf7346Smrgif test "${ac_cv_path_PKG_CONFIG+set}" = set; then
50868b6d6341Smrg  $as_echo_n "(cached) " >&6
50871abf7346Smrgelse
50881abf7346Smrg  case $PKG_CONFIG in
50891abf7346Smrg  [\\/]* | ?:[\\/]*)
50901abf7346Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
50911abf7346Smrg  ;;
50921abf7346Smrg  *)
50931abf7346Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50941abf7346Smrgfor as_dir in $PATH
50951abf7346Smrgdo
50961abf7346Smrg  IFS=$as_save_IFS
50971abf7346Smrg  test -z "$as_dir" && as_dir=.
50981abf7346Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
50991abf7346Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51001abf7346Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
51018b6d6341Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51021abf7346Smrg    break 2
51031abf7346Smrg  fi
51041abf7346Smrgdone
51051abf7346Smrgdone
51061abf7346SmrgIFS=$as_save_IFS
51071abf7346Smrg
51081abf7346Smrg  ;;
51091abf7346Smrgesac
51101abf7346Smrgfi
51111abf7346SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
51121abf7346Smrgif test -n "$PKG_CONFIG"; then
51138b6d6341Smrg  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
51148b6d6341Smrg$as_echo "$PKG_CONFIG" >&6; }
51151abf7346Smrgelse
51168b6d6341Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
51178b6d6341Smrg$as_echo "no" >&6; }
51181abf7346Smrgfi
51191abf7346Smrg
51201abf7346Smrg
51211abf7346Smrgfi
51221abf7346Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
51231abf7346Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
51241abf7346Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
51251abf7346Smrgset dummy pkg-config; ac_word=$2
51268b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
51278b6d6341Smrg$as_echo_n "checking for $ac_word... " >&6; }
51281abf7346Smrgif test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
51298b6d6341Smrg  $as_echo_n "(cached) " >&6
51301abf7346Smrgelse
51311abf7346Smrg  case $ac_pt_PKG_CONFIG in
51321abf7346Smrg  [\\/]* | ?:[\\/]*)
51331abf7346Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
51341abf7346Smrg  ;;
51351abf7346Smrg  *)
51361abf7346Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51371abf7346Smrgfor as_dir in $PATH
51381abf7346Smrgdo
51391abf7346Smrg  IFS=$as_save_IFS
51401abf7346Smrg  test -z "$as_dir" && as_dir=.
51411abf7346Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
51421abf7346Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51431abf7346Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
51448b6d6341Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51451abf7346Smrg    break 2
51461abf7346Smrg  fi
51471abf7346Smrgdone
51481abf7346Smrgdone
51491abf7346SmrgIFS=$as_save_IFS
51501abf7346Smrg
51511abf7346Smrg  ;;
51521abf7346Smrgesac
51531abf7346Smrgfi
51541abf7346Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
51551abf7346Smrgif test -n "$ac_pt_PKG_CONFIG"; then
51568b6d6341Smrg  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
51578b6d6341Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
51581abf7346Smrgelse
51598b6d6341Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
51608b6d6341Smrg$as_echo "no" >&6; }
51611abf7346Smrgfi
51621abf7346Smrg
51631abf7346Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
51641abf7346Smrg    PKG_CONFIG=""
51651abf7346Smrg  else
51661abf7346Smrg    case $cross_compiling:$ac_tool_warned in
51671abf7346Smrgyes:)
51688b6d6341Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
51698b6d6341Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
51701abf7346Smrgac_tool_warned=yes ;;
51711abf7346Smrgesac
51721abf7346Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
51731abf7346Smrg  fi
51741abf7346Smrgelse
51751abf7346Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
51761abf7346Smrgfi
51771abf7346Smrg
51781abf7346Smrgfi
51791abf7346Smrgif test -n "$PKG_CONFIG"; then
51801abf7346Smrg	_pkg_min_version=0.9.0
51818b6d6341Smrg	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
51828b6d6341Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
51831abf7346Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
51848b6d6341Smrg		{ $as_echo "$as_me:$LINENO: result: yes" >&5
51858b6d6341Smrg$as_echo "yes" >&6; }
51861abf7346Smrg	else
51878b6d6341Smrg		{ $as_echo "$as_me:$LINENO: result: no" >&5
51888b6d6341Smrg$as_echo "no" >&6; }
51891abf7346Smrg		PKG_CONFIG=""
51901abf7346Smrg	fi
51911abf7346Smrg
51921abf7346Smrgfi
51931abf7346Smrg
51941abf7346Smrgpkg_failed=no
51958b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking for XMAN" >&5
51968b6d6341Smrg$as_echo_n "checking for XMAN... " >&6; }
51978b6d6341Smrg
51988b6d6341Smrgif test -n "$XMAN_CFLAGS"; then
51998b6d6341Smrg    pkg_cv_XMAN_CFLAGS="$XMAN_CFLAGS"
52008b6d6341Smrg elif test -n "$PKG_CONFIG"; then
52018b6d6341Smrg    if test -n "$PKG_CONFIG" && \
52028b6d6341Smrg    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xaw7\"") >&5
52038b6d6341Smrg  ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5
52041abf7346Smrg  ac_status=$?
52058b6d6341Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52061abf7346Smrg  (exit $ac_status); }; then
52078b6d6341Smrg  pkg_cv_XMAN_CFLAGS=`$PKG_CONFIG --cflags "xaw7" 2>/dev/null`
52081abf7346Smrgelse
52091abf7346Smrg  pkg_failed=yes
52101abf7346Smrgfi
52118b6d6341Smrg else
52128b6d6341Smrg    pkg_failed=untried
52131abf7346Smrgfi
52148b6d6341Smrgif test -n "$XMAN_LIBS"; then
52158b6d6341Smrg    pkg_cv_XMAN_LIBS="$XMAN_LIBS"
52168b6d6341Smrg elif test -n "$PKG_CONFIG"; then
52178b6d6341Smrg    if test -n "$PKG_CONFIG" && \
52188b6d6341Smrg    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xaw7\"") >&5
52198b6d6341Smrg  ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5
52201abf7346Smrg  ac_status=$?
52218b6d6341Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52221abf7346Smrg  (exit $ac_status); }; then
52238b6d6341Smrg  pkg_cv_XMAN_LIBS=`$PKG_CONFIG --libs "xaw7" 2>/dev/null`
52241abf7346Smrgelse
52251abf7346Smrg  pkg_failed=yes
52261abf7346Smrgfi
52278b6d6341Smrg else
52288b6d6341Smrg    pkg_failed=untried
52291abf7346Smrgfi
52301abf7346Smrg
52311abf7346Smrg
52321abf7346Smrg
52331abf7346Smrgif test $pkg_failed = yes; then
52341abf7346Smrg
52351abf7346Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
52361abf7346Smrg        _pkg_short_errors_supported=yes
52371abf7346Smrgelse
52381abf7346Smrg        _pkg_short_errors_supported=no
52391abf7346Smrgfi
52401abf7346Smrg        if test $_pkg_short_errors_supported = yes; then
52418b6d6341Smrg	        XMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7" 2>&1`
52421abf7346Smrg        else
52438b6d6341Smrg	        XMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7" 2>&1`
52441abf7346Smrg        fi
52451abf7346Smrg	# Put the nasty error message in config.log where it belongs
52468b6d6341Smrg	echo "$XMAN_PKG_ERRORS" >&5
52471abf7346Smrg
52488b6d6341Smrg	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xaw7) were not met:
52491abf7346Smrg
52508b6d6341Smrg$XMAN_PKG_ERRORS
52511abf7346Smrg
52528b6d6341SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
52538b6d6341Smrginstalled software in a non-standard prefix.
52541abf7346Smrg
52558b6d6341SmrgAlternatively, you may set the environment variables XMAN_CFLAGS
52568b6d6341Smrgand XMAN_LIBS to avoid the need to call pkg-config.
52578b6d6341SmrgSee the pkg-config man page for more details.
52588b6d6341Smrg" >&5
52598b6d6341Smrg$as_echo "$as_me: error: Package requirements (xaw7) were not met:
52601abf7346Smrg
52618b6d6341Smrg$XMAN_PKG_ERRORS
52621abf7346Smrg
52638b6d6341SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
52648b6d6341Smrginstalled software in a non-standard prefix.
52651abf7346Smrg
52668b6d6341SmrgAlternatively, you may set the environment variables XMAN_CFLAGS
52678b6d6341Smrgand XMAN_LIBS to avoid the need to call pkg-config.
52688b6d6341SmrgSee the pkg-config man page for more details.
52698b6d6341Smrg" >&2;}
52708b6d6341Smrg   { (exit 1); exit 1; }; }
52711abf7346Smrgelif test $pkg_failed = untried; then
52728b6d6341Smrg	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
52738b6d6341Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52748b6d6341Smrg{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
52758b6d6341Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
52768b6d6341Smrgpath to pkg-config.
52778b6d6341Smrg
52788b6d6341SmrgAlternatively, you may set the environment variables XMAN_CFLAGS
52798b6d6341Smrgand XMAN_LIBS to avoid the need to call pkg-config.
52808b6d6341SmrgSee the pkg-config man page for more details.
52811abf7346Smrg
52828b6d6341SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
52838b6d6341SmrgSee \`config.log' for more details." >&5
52848b6d6341Smrg$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
52858b6d6341Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
52868b6d6341Smrgpath to pkg-config.
52878b6d6341Smrg
52888b6d6341SmrgAlternatively, you may set the environment variables XMAN_CFLAGS
52898b6d6341Smrgand XMAN_LIBS to avoid the need to call pkg-config.
52908b6d6341SmrgSee the pkg-config man page for more details.
52911abf7346Smrg
52928b6d6341SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
52938b6d6341SmrgSee \`config.log' for more details." >&2;}
52948b6d6341Smrg   { (exit 1); exit 1; }; }; }
52951abf7346Smrgelse
52968b6d6341Smrg	XMAN_CFLAGS=$pkg_cv_XMAN_CFLAGS
52978b6d6341Smrg	XMAN_LIBS=$pkg_cv_XMAN_LIBS
52988b6d6341Smrg        { $as_echo "$as_me:$LINENO: result: yes" >&5
52998b6d6341Smrg$as_echo "yes" >&6; }
53008b6d6341Smrg	:
53011abf7346Smrgfi
53021abf7346Smrg
53031abf7346Smrg
53048b6d6341Smrg# Check whether --with-manconfig was given.
53058b6d6341Smrgif test "${with_manconfig+set}" = set; then
53068b6d6341Smrg  withval=$with_manconfig; MANCONF="$withval"
53078b6d6341Smrgfi
53081abf7346Smrg
53098b6d6341Smrgif test x$MANCONF = x; then
53101abf7346Smrg# Check for man page config files
53118b6d6341Smrg    { $as_echo "$as_me:$LINENO: checking for /etc/man.conf" >&5
53128b6d6341Smrg$as_echo_n "checking for /etc/man.conf... " >&6; }
53131abf7346Smrgif test "${ac_cv_file__etc_man_conf+set}" = set; then
53148b6d6341Smrg  $as_echo_n "(cached) " >&6
53151abf7346Smrgelse
53161abf7346Smrg  test "$cross_compiling" = yes &&
53178b6d6341Smrg  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
53188b6d6341Smrg$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
53191abf7346Smrg   { (exit 1); exit 1; }; }
53201abf7346Smrgif test -r "/etc/man.conf"; then
53211abf7346Smrg  ac_cv_file__etc_man_conf=yes
53221abf7346Smrgelse
53231abf7346Smrg  ac_cv_file__etc_man_conf=no
53241abf7346Smrgfi
53251abf7346Smrgfi
53268b6d6341Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__etc_man_conf" >&5
53278b6d6341Smrg$as_echo "$ac_cv_file__etc_man_conf" >&6; }
53288b6d6341Smrgif test "x$ac_cv_file__etc_man_conf" = x""yes; then
53291abf7346Smrg  MANCONF="/etc/man.conf"
53301abf7346Smrgelse
53318b6d6341Smrg  { $as_echo "$as_me:$LINENO: checking for /etc/man.config" >&5
53328b6d6341Smrg$as_echo_n "checking for /etc/man.config... " >&6; }
53331abf7346Smrgif test "${ac_cv_file__etc_man_config+set}" = set; then
53348b6d6341Smrg  $as_echo_n "(cached) " >&6
53351abf7346Smrgelse
53361abf7346Smrg  test "$cross_compiling" = yes &&
53378b6d6341Smrg  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
53388b6d6341Smrg$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
53391abf7346Smrg   { (exit 1); exit 1; }; }
53401abf7346Smrgif test -r "/etc/man.config"; then
53411abf7346Smrg  ac_cv_file__etc_man_config=yes
53421abf7346Smrgelse
53431abf7346Smrg  ac_cv_file__etc_man_config=no
53441abf7346Smrgfi
53451abf7346Smrgfi
53468b6d6341Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__etc_man_config" >&5
53478b6d6341Smrg$as_echo "$ac_cv_file__etc_man_config" >&6; }
53488b6d6341Smrgif test "x$ac_cv_file__etc_man_config" = x""yes; then
53491abf7346Smrg  MANCONF="/etc/man.config"
53501abf7346Smrgelse
53518b6d6341Smrg  { $as_echo "$as_me:$LINENO: checking for /etc/manpath.config" >&5
53528b6d6341Smrg$as_echo_n "checking for /etc/manpath.config... " >&6; }
53531abf7346Smrgif test "${ac_cv_file__etc_manpath_config+set}" = set; then
53548b6d6341Smrg  $as_echo_n "(cached) " >&6
53551abf7346Smrgelse
53561abf7346Smrg  test "$cross_compiling" = yes &&
53578b6d6341Smrg  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
53588b6d6341Smrg$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
53591abf7346Smrg   { (exit 1); exit 1; }; }
53601abf7346Smrgif test -r "/etc/manpath.config"; then
53611abf7346Smrg  ac_cv_file__etc_manpath_config=yes
53621abf7346Smrgelse
53631abf7346Smrg  ac_cv_file__etc_manpath_config=no
53641abf7346Smrgfi
53651abf7346Smrgfi
53668b6d6341Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__etc_manpath_config" >&5
53678b6d6341Smrg$as_echo "$ac_cv_file__etc_manpath_config" >&6; }
53688b6d6341Smrgif test "x$ac_cv_file__etc_manpath_config" = x""yes; then
53691abf7346Smrg  MANCONF="/etc/manpath.config"
53708b6d6341Smrgelse
53718b6d6341Smrg  { $as_echo "$as_me:$LINENO: checking for /usr/share/misc/man.conf" >&5
53728b6d6341Smrg$as_echo_n "checking for /usr/share/misc/man.conf... " >&6; }
53738b6d6341Smrgif test "${ac_cv_file__usr_share_misc_man_conf+set}" = set; then
53748b6d6341Smrg  $as_echo_n "(cached) " >&6
53758b6d6341Smrgelse
53768b6d6341Smrg  test "$cross_compiling" = yes &&
53778b6d6341Smrg  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
53788b6d6341Smrg$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
53798b6d6341Smrg   { (exit 1); exit 1; }; }
53808b6d6341Smrgif test -r "/usr/share/misc/man.conf"; then
53818b6d6341Smrg  ac_cv_file__usr_share_misc_man_conf=yes
53828b6d6341Smrgelse
53838b6d6341Smrg  ac_cv_file__usr_share_misc_man_conf=no
53848b6d6341Smrgfi
53858b6d6341Smrgfi
53868b6d6341Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_misc_man_conf" >&5
53878b6d6341Smrg$as_echo "$ac_cv_file__usr_share_misc_man_conf" >&6; }
53888b6d6341Smrgif test "x$ac_cv_file__usr_share_misc_man_conf" = x""yes; then
53898b6d6341Smrg  MANCONF="/usr/share/misc/man.conf"
53908b6d6341Smrgfi
53918b6d6341Smrg
53921abf7346Smrgfi
53931abf7346Smrg
53941abf7346Smrgfi
53951abf7346Smrg
53961abf7346Smrgfi
53971abf7346Smrg
53988b6d6341Smrgfi
53991abf7346Smrg
54001abf7346Smrgif test x$MANCONF != x ; then
54011abf7346Smrg
54021abf7346Smrgcat >>confdefs.h <<_ACEOF
54031abf7346Smrg#define MANCONF "$MANCONF"
54041abf7346Smrg_ACEOF
54051abf7346Smrg
54061abf7346Smrg
54071abf7346Smrg    # Try to determine format of config file
54081abf7346Smrg    # would be better to somehow determine from the files themselves, but
54091abf7346Smrg    # we'll guess based on pathname and OS for now (mirrors old Imake tests)
54108b6d6341Smrg    { $as_echo "$as_me:$LINENO: checking man config file format" >&5
54118b6d6341Smrg$as_echo_n "checking man config file format... " >&6; }
54121abf7346Smrg    if test x$MANCONF = x/etc/manpath.config ; then
54131abf7346Smrg	MAN_CONFIG_STYLE="FreeBSD"
54141abf7346Smrg    else
54151abf7346Smrg	case $host_os in
54161abf7346Smrg	*darwin* | *openbsd* | *netbsd* )
54171abf7346Smrg	    MAN_CONFIG_STYLE="OpenBSD"
54181abf7346Smrg	    ;;
54198b6d6341Smrg	*linux* | cygwin* )
54201abf7346Smrg	    MAN_CONFIG_STYLE="Linux"
54211abf7346Smrg	    ;;
54228b6d6341Smrg	*bsd* )
54231abf7346Smrg	    MAN_CONFIG_STYLE="BSD"
54241abf7346Smrg	    ;;
54251abf7346Smrg	*)
54261abf7346Smrg	    ;;
54271abf7346Smrg	esac
54281abf7346Smrg    fi
54298b6d6341Smrg    { $as_echo "$as_me:$LINENO: result: $MAN_CONFIG_STYLE" >&5
54308b6d6341Smrg$as_echo "$MAN_CONFIG_STYLE" >&6; }
54311abf7346Smrg
54321abf7346Smrg    case $MAN_CONFIG_STYLE in
54331abf7346Smrg	FreeBSD)
54341abf7346Smrg
54351abf7346Smrgcat >>confdefs.h <<\_ACEOF
54361abf7346Smrg#define MANCONFIGSTYLE_FreeBSD 1
54371abf7346Smrg_ACEOF
54381abf7346Smrg
54391abf7346Smrg	    ;;
54401abf7346Smrg	OpenBSD)
54411abf7346Smrg
54421abf7346Smrgcat >>confdefs.h <<\_ACEOF
54431abf7346Smrg#define MANCONFIGSTYLE_OpenBSD 1
54441abf7346Smrg_ACEOF
54451abf7346Smrg
54461abf7346Smrg	    ;;
54471abf7346Smrg	BSD)
54481abf7346Smrg
54491abf7346Smrgcat >>confdefs.h <<\_ACEOF
54508b6d6341Smrg#define MANCONFIGSTYLE_BSD 1
54518b6d6341Smrg_ACEOF
54521abf7346Smrg
54538b6d6341Smrg	    ;;
54548b6d6341Smrg	Linux)
54551abf7346Smrg
54568b6d6341Smrgcat >>confdefs.h <<\_ACEOF
54578b6d6341Smrg#define MANCONFIGSTYLE_Linux 1
54588b6d6341Smrg_ACEOF
54591abf7346Smrg
54608b6d6341Smrg	    ;;
54618b6d6341Smrg	*)
54628b6d6341Smrg	    { { $as_echo "$as_me:$LINENO: error: Could not determine man page file config format." >&5
54638b6d6341Smrg$as_echo "$as_me: error: Could not determine man page file config format." >&2;}
54641abf7346Smrg   { (exit 1); exit 1; }; }
54658b6d6341Smrg    esac
54661abf7346Smrgfi
54671abf7346Smrg
54681abf7346Smrg
54691abf7346Smrg
54701abf7346Smrg
54711abf7346Smrgpkg_failed=no
54728b6d6341Smrg{ $as_echo "$as_me:$LINENO: checking for APPDEFS" >&5
54738b6d6341Smrg$as_echo_n "checking for APPDEFS... " >&6; }
54748b6d6341Smrg
54758b6d6341Smrgif test -n "$APPDEFS_CFLAGS"; then
54768b6d6341Smrg    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
54778b6d6341Smrg elif test -n "$PKG_CONFIG"; then
54788b6d6341Smrg    if test -n "$PKG_CONFIG" && \
54798b6d6341Smrg    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt\"") >&5
54801abf7346Smrg  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
54811abf7346Smrg  ac_status=$?
54828b6d6341Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54831abf7346Smrg  (exit $ac_status); }; then
54841abf7346Smrg  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
54851abf7346Smrgelse
54861abf7346Smrg  pkg_failed=yes
54871abf7346Smrgfi
54888b6d6341Smrg else
54898b6d6341Smrg    pkg_failed=untried
54901abf7346Smrgfi
54918b6d6341Smrgif test -n "$APPDEFS_LIBS"; then
54928b6d6341Smrg    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
54938b6d6341Smrg elif test -n "$PKG_CONFIG"; then
54948b6d6341Smrg    if test -n "$PKG_CONFIG" && \
54958b6d6341Smrg    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt\"") >&5
54961abf7346Smrg  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
54971abf7346Smrg  ac_status=$?
54988b6d6341Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54991abf7346Smrg  (exit $ac_status); }; then
55001abf7346Smrg  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
55011abf7346Smrgelse
55021abf7346Smrg  pkg_failed=yes
55031abf7346Smrgfi
55048b6d6341Smrg else
55058b6d6341Smrg    pkg_failed=untried
55061abf7346Smrgfi
55071abf7346Smrg
55081abf7346Smrg
55091abf7346Smrg
55101abf7346Smrgif test $pkg_failed = yes; then
55111abf7346Smrg
55121abf7346Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
55131abf7346Smrg        _pkg_short_errors_supported=yes
55141abf7346Smrgelse
55151abf7346Smrg        _pkg_short_errors_supported=no
55161abf7346Smrgfi
55171abf7346Smrg        if test $_pkg_short_errors_supported = yes; then
55188b6d6341Smrg	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1`
55191abf7346Smrg        else
55208b6d6341Smrg	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1`
55211abf7346Smrg        fi
55221abf7346Smrg	# Put the nasty error message in config.log where it belongs
55231abf7346Smrg	echo "$APPDEFS_PKG_ERRORS" >&5
55241abf7346Smrg
55258b6d6341Smrg	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xt) were not met:
55261abf7346Smrg
55271abf7346Smrg$APPDEFS_PKG_ERRORS
55281abf7346Smrg
55291abf7346SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
55301abf7346Smrginstalled software in a non-standard prefix.
55311abf7346Smrg
55321abf7346SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS
55331abf7346Smrgand APPDEFS_LIBS to avoid the need to call pkg-config.
55341abf7346SmrgSee the pkg-config man page for more details.
55351abf7346Smrg" >&5
55368b6d6341Smrg$as_echo "$as_me: error: Package requirements (xt) were not met:
55371abf7346Smrg
55381abf7346Smrg$APPDEFS_PKG_ERRORS
55391abf7346Smrg
55401abf7346SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
55411abf7346Smrginstalled software in a non-standard prefix.
55421abf7346Smrg
55431abf7346SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS
55441abf7346Smrgand APPDEFS_LIBS to avoid the need to call pkg-config.
55451abf7346SmrgSee the pkg-config man page for more details.
55461abf7346Smrg" >&2;}
55471abf7346Smrg   { (exit 1); exit 1; }; }
55481abf7346Smrgelif test $pkg_failed = untried; then
55498b6d6341Smrg	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
55508b6d6341Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
55518b6d6341Smrg{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
55521abf7346Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
55531abf7346Smrgpath to pkg-config.
55541abf7346Smrg
55551abf7346SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS
55561abf7346Smrgand APPDEFS_LIBS to avoid the need to call pkg-config.
55571abf7346SmrgSee the pkg-config man page for more details.
55581abf7346Smrg
55598b6d6341SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
55601abf7346SmrgSee \`config.log' for more details." >&5
55618b6d6341Smrg$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
55621abf7346Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
55631abf7346Smrgpath to pkg-config.
55641abf7346Smrg
55651abf7346SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS
55661abf7346Smrgand APPDEFS_LIBS to avoid the need to call pkg-config.
55671abf7346SmrgSee the pkg-config man page for more details.
55681abf7346Smrg
55698b6d6341SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
55701abf7346SmrgSee \`config.log' for more details." >&2;}
55718b6d6341Smrg   { (exit 1); exit 1; }; }; }
55721abf7346Smrgelse
55731abf7346Smrg	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
55741abf7346Smrg	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
55758b6d6341Smrg        { $as_echo "$as_me:$LINENO: result: yes" >&5
55768b6d6341Smrg$as_echo "yes" >&6; }
55771abf7346Smrg	:
55781abf7346Smrgfi
55798b6d6341Smrgxt_appdefaultdir=$(pkg-config --variable=appdefaultdir xt)
55801abf7346Smrg
55818b6d6341Smrg# Check whether --with-appdefaultdir was given.
55828b6d6341Smrgif test "${with_appdefaultdir+set}" = set; then
55838b6d6341Smrg  withval=$with_appdefaultdir; appdefaultdir="$withval"
55841abf7346Smrgelse
55858b6d6341Smrg  appdefaultdir="${xt_appdefaultdir}"
55861abf7346Smrgfi
55871abf7346Smrg
55881abf7346Smrg
55891abf7346Smrg
55901abf7346Smrgac_config_files="$ac_config_files Makefile"
55911abf7346Smrg
55921abf7346Smrgcat >confcache <<\_ACEOF
55931abf7346Smrg# This file is a shell script that caches the results of configure
55941abf7346Smrg# tests run on this system so they can be shared between configure
55951abf7346Smrg# scripts and configure runs, see configure's option --config-cache.
55961abf7346Smrg# It is not useful on other systems.  If it contains results you don't
55971abf7346Smrg# want to keep, you may remove or edit it.
55981abf7346Smrg#
55991abf7346Smrg# config.status only pays attention to the cache file if you give it
56001abf7346Smrg# the --recheck option to rerun configure.
56011abf7346Smrg#
56021abf7346Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
56031abf7346Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
56041abf7346Smrg# following values.
56051abf7346Smrg
56061abf7346Smrg_ACEOF
56071abf7346Smrg
56081abf7346Smrg# The following way of writing the cache mishandles newlines in values,
56091abf7346Smrg# but we know of no workaround that is simple, portable, and efficient.
56101abf7346Smrg# So, we kill variables containing newlines.
56111abf7346Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
56121abf7346Smrg# and sets the high bit in the cache file unless we assign to the vars.
56131abf7346Smrg(
56141abf7346Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
56151abf7346Smrg    eval ac_val=\$$ac_var
56161abf7346Smrg    case $ac_val in #(
56171abf7346Smrg    *${as_nl}*)
56181abf7346Smrg      case $ac_var in #(
56198b6d6341Smrg      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
56208b6d6341Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
56211abf7346Smrg      esac
56221abf7346Smrg      case $ac_var in #(
56231abf7346Smrg      _ | IFS | as_nl) ;; #(
56248b6d6341Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
56251abf7346Smrg      *) $as_unset $ac_var ;;
56261abf7346Smrg      esac ;;
56271abf7346Smrg    esac
56281abf7346Smrg  done
56291abf7346Smrg
56301abf7346Smrg  (set) 2>&1 |
56311abf7346Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
56321abf7346Smrg    *${as_nl}ac_space=\ *)
56331abf7346Smrg      # `set' does not quote correctly, so add quotes (double-quote
56341abf7346Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \).
56351abf7346Smrg      sed -n \
56361abf7346Smrg	"s/'/'\\\\''/g;
56371abf7346Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
56381abf7346Smrg      ;; #(
56391abf7346Smrg    *)
56401abf7346Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
56411abf7346Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
56421abf7346Smrg      ;;
56431abf7346Smrg    esac |
56441abf7346Smrg    sort
56451abf7346Smrg) |
56461abf7346Smrg  sed '
56471abf7346Smrg     /^ac_cv_env_/b end
56481abf7346Smrg     t clear
56491abf7346Smrg     :clear
56501abf7346Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
56511abf7346Smrg     t end
56521abf7346Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
56531abf7346Smrg     :end' >>confcache
56541abf7346Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
56551abf7346Smrg  if test -w "$cache_file"; then
56561abf7346Smrg    test "x$cache_file" != "x/dev/null" &&
56578b6d6341Smrg      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
56588b6d6341Smrg$as_echo "$as_me: updating cache $cache_file" >&6;}
56591abf7346Smrg    cat confcache >$cache_file
56601abf7346Smrg  else
56618b6d6341Smrg    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
56628b6d6341Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
56631abf7346Smrg  fi
56641abf7346Smrgfi
56651abf7346Smrgrm -f confcache
56661abf7346Smrg
56671abf7346Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
56681abf7346Smrg# Let make expand exec_prefix.
56691abf7346Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
56701abf7346Smrg
56711abf7346SmrgDEFS=-DHAVE_CONFIG_H
56721abf7346Smrg
56731abf7346Smrgac_libobjs=
56741abf7346Smrgac_ltlibobjs=
56751abf7346Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
56761abf7346Smrg  # 1. Remove the extension, and $U if already installed.
56771abf7346Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
56788b6d6341Smrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
56791abf7346Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
56801abf7346Smrg  #    will be set to the directory where LIBOBJS objects are built.
56811abf7346Smrg  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
56821abf7346Smrg  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
56831abf7346Smrgdone
56841abf7346SmrgLIBOBJS=$ac_libobjs
56851abf7346Smrg
56861abf7346SmrgLTLIBOBJS=$ac_ltlibobjs
56871abf7346Smrg
56881abf7346Smrg
56898b6d6341Smrg if test -n "$EXEEXT"; then
56908b6d6341Smrg  am__EXEEXT_TRUE=
56918b6d6341Smrg  am__EXEEXT_FALSE='#'
56928b6d6341Smrgelse
56938b6d6341Smrg  am__EXEEXT_TRUE='#'
56948b6d6341Smrg  am__EXEEXT_FALSE=
56958b6d6341Smrgfi
56968b6d6341Smrg
56971abf7346Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
56988b6d6341Smrg  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
56991abf7346SmrgUsually this means the macro was only invoked conditionally." >&5
57008b6d6341Smrg$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
57011abf7346SmrgUsually this means the macro was only invoked conditionally." >&2;}
57021abf7346Smrg   { (exit 1); exit 1; }; }
57031abf7346Smrgfi
57041abf7346Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
57058b6d6341Smrg  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
57061abf7346SmrgUsually this means the macro was only invoked conditionally." >&5
57078b6d6341Smrg$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
57081abf7346SmrgUsually this means the macro was only invoked conditionally." >&2;}
57091abf7346Smrg   { (exit 1); exit 1; }; }
57101abf7346Smrgfi
57111abf7346Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
57128b6d6341Smrg  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
57131abf7346SmrgUsually this means the macro was only invoked conditionally." >&5
57148b6d6341Smrg$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
57151abf7346SmrgUsually this means the macro was only invoked conditionally." >&2;}
57161abf7346Smrg   { (exit 1); exit 1; }; }
57171abf7346Smrgfi
57181abf7346Smrg
57191abf7346Smrg: ${CONFIG_STATUS=./config.status}
57208b6d6341Smrgac_write_fail=0
57211abf7346Smrgac_clean_files_save=$ac_clean_files
57221abf7346Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
57238b6d6341Smrg{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
57248b6d6341Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
57258b6d6341Smrgcat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57261abf7346Smrg#! $SHELL
57271abf7346Smrg# Generated by $as_me.
57281abf7346Smrg# Run this file to recreate the current configuration.
57291abf7346Smrg# Compiler output produced by configure, useful for debugging
57301abf7346Smrg# configure, is in config.log if it exists.
57311abf7346Smrg
57321abf7346Smrgdebug=false
57331abf7346Smrgac_cs_recheck=false
57341abf7346Smrgac_cs_silent=false
57351abf7346SmrgSHELL=\${CONFIG_SHELL-$SHELL}
57361abf7346Smrg_ACEOF
57371abf7346Smrg
57388b6d6341Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57391abf7346Smrg## --------------------- ##
57401abf7346Smrg## M4sh Initialization.  ##
57411abf7346Smrg## --------------------- ##
57421abf7346Smrg
57431abf7346Smrg# Be more Bourne compatible
57441abf7346SmrgDUALCASE=1; export DUALCASE # for MKS sh
57451abf7346Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
57461abf7346Smrg  emulate sh
57471abf7346Smrg  NULLCMD=:
57488b6d6341Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
57491abf7346Smrg  # is contrary to our usage.  Disable this feature.
57501abf7346Smrg  alias -g '${1+"$@"}'='"$@"'
57511abf7346Smrg  setopt NO_GLOB_SUBST
57521abf7346Smrgelse
57531abf7346Smrg  case `(set -o) 2>/dev/null` in
57541abf7346Smrg  *posix*) set -o posix ;;
57551abf7346Smrgesac
57561abf7346Smrg
57571abf7346Smrgfi
57581abf7346Smrg
57591abf7346Smrg
57601abf7346Smrg
57611abf7346Smrg
57621abf7346Smrg# PATH needs CR
57631abf7346Smrg# Avoid depending upon Character Ranges.
57641abf7346Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
57651abf7346Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
57661abf7346Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
57671abf7346Smrgas_cr_digits='0123456789'
57681abf7346Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
57691abf7346Smrg
57708b6d6341Smrgas_nl='
57718b6d6341Smrg'
57728b6d6341Smrgexport as_nl
57738b6d6341Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
57748b6d6341Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
57758b6d6341Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
57768b6d6341Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
57778b6d6341Smrgif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
57788b6d6341Smrg  as_echo='printf %s\n'
57798b6d6341Smrg  as_echo_n='printf %s'
57808b6d6341Smrgelse
57818b6d6341Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57828b6d6341Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57838b6d6341Smrg    as_echo_n='/usr/ucb/echo -n'
57841abf7346Smrg  else
57858b6d6341Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57868b6d6341Smrg    as_echo_n_body='eval
57878b6d6341Smrg      arg=$1;
57888b6d6341Smrg      case $arg in
57898b6d6341Smrg      *"$as_nl"*)
57908b6d6341Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
57918b6d6341Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
57928b6d6341Smrg      esac;
57938b6d6341Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
57948b6d6341Smrg    '
57958b6d6341Smrg    export as_echo_n_body
57968b6d6341Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
57971abf7346Smrg  fi
57988b6d6341Smrg  export as_echo_body
57998b6d6341Smrg  as_echo='sh -c $as_echo_body as_echo'
58008b6d6341Smrgfi
58018b6d6341Smrg
58028b6d6341Smrg# The user is always right.
58038b6d6341Smrgif test "${PATH_SEPARATOR+set}" != set; then
58048b6d6341Smrg  PATH_SEPARATOR=:
58058b6d6341Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
58068b6d6341Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
58078b6d6341Smrg      PATH_SEPARATOR=';'
58088b6d6341Smrg  }
58091abf7346Smrgfi
58101abf7346Smrg
58111abf7346Smrg# Support unset when possible.
58121abf7346Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58131abf7346Smrg  as_unset=unset
58141abf7346Smrgelse
58151abf7346Smrg  as_unset=false
58161abf7346Smrgfi
58171abf7346Smrg
58181abf7346Smrg
58191abf7346Smrg# IFS
58201abf7346Smrg# We need space, tab and new line, in precisely that order.  Quoting is
58211abf7346Smrg# there to prevent editors from complaining about space-tab.
58221abf7346Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
58231abf7346Smrg# splitting by setting IFS to empty value.)
58241abf7346SmrgIFS=" ""	$as_nl"
58251abf7346Smrg
58261abf7346Smrg# Find who we are.  Look in the path if we contain no directory separator.
58271abf7346Smrgcase $0 in
58281abf7346Smrg  *[\\/]* ) as_myself=$0 ;;
58291abf7346Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
58301abf7346Smrgfor as_dir in $PATH
58311abf7346Smrgdo
58321abf7346Smrg  IFS=$as_save_IFS
58331abf7346Smrg  test -z "$as_dir" && as_dir=.
58341abf7346Smrg  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
58351abf7346Smrgdone
58361abf7346SmrgIFS=$as_save_IFS
58371abf7346Smrg
58381abf7346Smrg     ;;
58391abf7346Smrgesac
58401abf7346Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
58411abf7346Smrg# in which case we are not to be found in the path.
58421abf7346Smrgif test "x$as_myself" = x; then
58431abf7346Smrg  as_myself=$0
58441abf7346Smrgfi
58451abf7346Smrgif test ! -f "$as_myself"; then
58468b6d6341Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
58471abf7346Smrg  { (exit 1); exit 1; }
58481abf7346Smrgfi
58491abf7346Smrg
58501abf7346Smrg# Work around bugs in pre-3.0 UWIN ksh.
58511abf7346Smrgfor as_var in ENV MAIL MAILPATH
58521abf7346Smrgdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
58531abf7346Smrgdone
58541abf7346SmrgPS1='$ '
58551abf7346SmrgPS2='> '
58561abf7346SmrgPS4='+ '
58571abf7346Smrg
58581abf7346Smrg# NLS nuisances.
58598b6d6341SmrgLC_ALL=C
58608b6d6341Smrgexport LC_ALL
58618b6d6341SmrgLANGUAGE=C
58628b6d6341Smrgexport LANGUAGE
58631abf7346Smrg
58641abf7346Smrg# Required to use basename.
58651abf7346Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
58661abf7346Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
58671abf7346Smrg  as_expr=expr
58681abf7346Smrgelse
58691abf7346Smrg  as_expr=false
58701abf7346Smrgfi
58711abf7346Smrg
58721abf7346Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
58731abf7346Smrg  as_basename=basename
58741abf7346Smrgelse
58751abf7346Smrg  as_basename=false
58761abf7346Smrgfi
58771abf7346Smrg
58781abf7346Smrg
58791abf7346Smrg# Name of the executable.
58801abf7346Smrgas_me=`$as_basename -- "$0" ||
58811abf7346Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
58821abf7346Smrg	 X"$0" : 'X\(//\)$' \| \
58831abf7346Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
58848b6d6341Smrg$as_echo X/"$0" |
58851abf7346Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
58861abf7346Smrg	    s//\1/
58871abf7346Smrg	    q
58881abf7346Smrg	  }
58891abf7346Smrg	  /^X\/\(\/\/\)$/{
58901abf7346Smrg	    s//\1/
58911abf7346Smrg	    q
58921abf7346Smrg	  }
58931abf7346Smrg	  /^X\/\(\/\).*/{
58941abf7346Smrg	    s//\1/
58951abf7346Smrg	    q
58961abf7346Smrg	  }
58971abf7346Smrg	  s/.*/./; q'`
58981abf7346Smrg
58991abf7346Smrg# CDPATH.
59001abf7346Smrg$as_unset CDPATH
59011abf7346Smrg
59021abf7346Smrg
59031abf7346Smrg
59041abf7346Smrg  as_lineno_1=$LINENO
59051abf7346Smrg  as_lineno_2=$LINENO
59061abf7346Smrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
59071abf7346Smrg  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
59081abf7346Smrg
59091abf7346Smrg  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
59101abf7346Smrg  # uniformly replaced by the line number.  The first 'sed' inserts a
59111abf7346Smrg  # line-number line after each line using $LINENO; the second 'sed'
59121abf7346Smrg  # does the real work.  The second script uses 'N' to pair each
59131abf7346Smrg  # line-number line with the line containing $LINENO, and appends
59141abf7346Smrg  # trailing '-' during substitution so that $LINENO is not a special
59151abf7346Smrg  # case at line end.
59161abf7346Smrg  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
59171abf7346Smrg  # scripts with optimization help from Paolo Bonzini.  Blame Lee
59181abf7346Smrg  # E. McMahon (1931-1989) for sed's syntax.  :-)
59191abf7346Smrg  sed -n '
59201abf7346Smrg    p
59211abf7346Smrg    /[$]LINENO/=
59221abf7346Smrg  ' <$as_myself |
59231abf7346Smrg    sed '
59241abf7346Smrg      s/[$]LINENO.*/&-/
59251abf7346Smrg      t lineno
59261abf7346Smrg      b
59271abf7346Smrg      :lineno
59281abf7346Smrg      N
59291abf7346Smrg      :loop
59301abf7346Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
59311abf7346Smrg      t loop
59321abf7346Smrg      s/-\n.*//
59331abf7346Smrg    ' >$as_me.lineno &&
59341abf7346Smrg  chmod +x "$as_me.lineno" ||
59358b6d6341Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
59361abf7346Smrg   { (exit 1); exit 1; }; }
59371abf7346Smrg
59381abf7346Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
59391abf7346Smrg  # (the dirname of $[0] is not the place where we might find the
59401abf7346Smrg  # original and so on.  Autoconf is especially sensitive to this).
59411abf7346Smrg  . "./$as_me.lineno"
59421abf7346Smrg  # Exit status is that of the last command.
59431abf7346Smrg  exit
59441abf7346Smrg}
59451abf7346Smrg
59461abf7346Smrg
59471abf7346Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
59481abf7346Smrg  as_dirname=dirname
59491abf7346Smrgelse
59501abf7346Smrg  as_dirname=false
59511abf7346Smrgfi
59521abf7346Smrg
59531abf7346SmrgECHO_C= ECHO_N= ECHO_T=
59541abf7346Smrgcase `echo -n x` in
59551abf7346Smrg-n*)
59561abf7346Smrg  case `echo 'x\c'` in
59571abf7346Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
59581abf7346Smrg  *)   ECHO_C='\c';;
59591abf7346Smrg  esac;;
59601abf7346Smrg*)
59611abf7346Smrg  ECHO_N='-n';;
59621abf7346Smrgesac
59631abf7346Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
59641abf7346Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
59651abf7346Smrg  as_expr=expr
59661abf7346Smrgelse
59671abf7346Smrg  as_expr=false
59681abf7346Smrgfi
59691abf7346Smrg
59701abf7346Smrgrm -f conf$$ conf$$.exe conf$$.file
59711abf7346Smrgif test -d conf$$.dir; then
59721abf7346Smrg  rm -f conf$$.dir/conf$$.file
59731abf7346Smrgelse
59741abf7346Smrg  rm -f conf$$.dir
59758b6d6341Smrg  mkdir conf$$.dir 2>/dev/null
59768b6d6341Smrgfi
59778b6d6341Smrgif (echo >conf$$.file) 2>/dev/null; then
59788b6d6341Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
59798b6d6341Smrg    as_ln_s='ln -s'
59808b6d6341Smrg    # ... but there are two gotchas:
59818b6d6341Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
59828b6d6341Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
59838b6d6341Smrg    # In both cases, we have to default to `cp -p'.
59848b6d6341Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
59858b6d6341Smrg      as_ln_s='cp -p'
59868b6d6341Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
59878b6d6341Smrg    as_ln_s=ln
59888b6d6341Smrg  else
59891abf7346Smrg    as_ln_s='cp -p'
59908b6d6341Smrg  fi
59911abf7346Smrgelse
59921abf7346Smrg  as_ln_s='cp -p'
59931abf7346Smrgfi
59941abf7346Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
59951abf7346Smrgrmdir conf$$.dir 2>/dev/null
59961abf7346Smrg
59971abf7346Smrgif mkdir -p . 2>/dev/null; then
59981abf7346Smrg  as_mkdir_p=:
59991abf7346Smrgelse
60001abf7346Smrg  test -d ./-p && rmdir ./-p
60011abf7346Smrg  as_mkdir_p=false
60021abf7346Smrgfi
60031abf7346Smrg
60041abf7346Smrgif test -x / >/dev/null 2>&1; then
60051abf7346Smrg  as_test_x='test -x'
60061abf7346Smrgelse
60071abf7346Smrg  if ls -dL / >/dev/null 2>&1; then
60081abf7346Smrg    as_ls_L_option=L
60091abf7346Smrg  else
60101abf7346Smrg    as_ls_L_option=
60111abf7346Smrg  fi
60121abf7346Smrg  as_test_x='
60131abf7346Smrg    eval sh -c '\''
60141abf7346Smrg      if test -d "$1"; then
60158b6d6341Smrg	test -d "$1/.";
60161abf7346Smrg      else
60171abf7346Smrg	case $1 in
60188b6d6341Smrg	-*)set "./$1";;
60191abf7346Smrg	esac;
60201abf7346Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
60211abf7346Smrg	???[sx]*):;;*)false;;esac;fi
60221abf7346Smrg    '\'' sh
60231abf7346Smrg  '
60241abf7346Smrgfi
60251abf7346Smrgas_executable_p=$as_test_x
60261abf7346Smrg
60271abf7346Smrg# Sed expression to map a string onto a valid CPP name.
60281abf7346Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
60291abf7346Smrg
60301abf7346Smrg# Sed expression to map a string onto a valid variable name.
60311abf7346Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
60321abf7346Smrg
60331abf7346Smrg
60341abf7346Smrgexec 6>&1
60351abf7346Smrg
60361abf7346Smrg# Save the log message, to keep $[0] and so on meaningful, and to
60371abf7346Smrg# report actual input values of CONFIG_FILES etc. instead of their
60381abf7346Smrg# values after options handling.
60391abf7346Smrgac_log="
60408b6d6341SmrgThis file was extended by xman $as_me 1.1.0, which was
60418b6d6341Smrggenerated by GNU Autoconf 2.63.  Invocation command line was
60421abf7346Smrg
60431abf7346Smrg  CONFIG_FILES    = $CONFIG_FILES
60441abf7346Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
60451abf7346Smrg  CONFIG_LINKS    = $CONFIG_LINKS
60461abf7346Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
60471abf7346Smrg  $ $0 $@
60481abf7346Smrg
60491abf7346Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
60501abf7346Smrg"
60511abf7346Smrg
60521abf7346Smrg_ACEOF
60531abf7346Smrg
60548b6d6341Smrgcase $ac_config_files in *"
60558b6d6341Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
60568b6d6341Smrgesac
60578b6d6341Smrg
60588b6d6341Smrgcase $ac_config_headers in *"
60598b6d6341Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
60608b6d6341Smrgesac
60618b6d6341Smrg
60628b6d6341Smrg
60638b6d6341Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
60641abf7346Smrg# Files that config.status was made for.
60651abf7346Smrgconfig_files="$ac_config_files"
60661abf7346Smrgconfig_headers="$ac_config_headers"
60671abf7346Smrgconfig_commands="$ac_config_commands"
60681abf7346Smrg
60691abf7346Smrg_ACEOF
60701abf7346Smrg
60718b6d6341Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
60721abf7346Smrgac_cs_usage="\
60731abf7346Smrg\`$as_me' instantiates files from templates according to the
60741abf7346Smrgcurrent configuration.
60751abf7346Smrg
60768b6d6341SmrgUsage: $0 [OPTION]... [FILE]...
60771abf7346Smrg
60781abf7346Smrg  -h, --help       print this help, then exit
60791abf7346Smrg  -V, --version    print version number and configuration settings, then exit
60808b6d6341Smrg  -q, --quiet, --silent
60818b6d6341Smrg                   do not print progress messages
60821abf7346Smrg  -d, --debug      don't remove temporary files
60831abf7346Smrg      --recheck    update $as_me by reconfiguring in the same conditions
60848b6d6341Smrg      --file=FILE[:TEMPLATE]
60858b6d6341Smrg                   instantiate the configuration file FILE
60868b6d6341Smrg      --header=FILE[:TEMPLATE]
60878b6d6341Smrg                   instantiate the configuration header FILE
60881abf7346Smrg
60891abf7346SmrgConfiguration files:
60901abf7346Smrg$config_files
60911abf7346Smrg
60921abf7346SmrgConfiguration headers:
60931abf7346Smrg$config_headers
60941abf7346Smrg
60951abf7346SmrgConfiguration commands:
60961abf7346Smrg$config_commands
60971abf7346Smrg
60981abf7346SmrgReport bugs to <bug-autoconf@gnu.org>."
60991abf7346Smrg
61001abf7346Smrg_ACEOF
61018b6d6341Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
61021abf7346Smrgac_cs_version="\\
61038b6d6341Smrgxman config.status 1.1.0
61048b6d6341Smrgconfigured by $0, generated by GNU Autoconf 2.63,
61058b6d6341Smrg  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
61061abf7346Smrg
61078b6d6341SmrgCopyright (C) 2008 Free Software Foundation, Inc.
61081abf7346SmrgThis config.status script is free software; the Free Software Foundation
61091abf7346Smrggives unlimited permission to copy, distribute and modify it."
61101abf7346Smrg
61111abf7346Smrgac_pwd='$ac_pwd'
61121abf7346Smrgsrcdir='$srcdir'
61131abf7346SmrgINSTALL='$INSTALL'
61141abf7346SmrgMKDIR_P='$MKDIR_P'
61158b6d6341SmrgAWK='$AWK'
61168b6d6341Smrgtest -n "\$AWK" || AWK=awk
61171abf7346Smrg_ACEOF
61181abf7346Smrg
61198b6d6341Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
61208b6d6341Smrg# The default lists apply if the user does not specify any file.
61211abf7346Smrgac_need_defaults=:
61221abf7346Smrgwhile test $# != 0
61231abf7346Smrgdo
61241abf7346Smrg  case $1 in
61251abf7346Smrg  --*=*)
61261abf7346Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
61271abf7346Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
61281abf7346Smrg    ac_shift=:
61291abf7346Smrg    ;;
61301abf7346Smrg  *)
61311abf7346Smrg    ac_option=$1
61321abf7346Smrg    ac_optarg=$2
61331abf7346Smrg    ac_shift=shift
61341abf7346Smrg    ;;
61351abf7346Smrg  esac
61361abf7346Smrg
61371abf7346Smrg  case $ac_option in
61381abf7346Smrg  # Handling of the options.
61391abf7346Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
61401abf7346Smrg    ac_cs_recheck=: ;;
61411abf7346Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
61428b6d6341Smrg    $as_echo "$ac_cs_version"; exit ;;
61431abf7346Smrg  --debug | --debu | --deb | --de | --d | -d )
61441abf7346Smrg    debug=: ;;
61451abf7346Smrg  --file | --fil | --fi | --f )
61461abf7346Smrg    $ac_shift
61478b6d6341Smrg    case $ac_optarg in
61488b6d6341Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
61498b6d6341Smrg    esac
61508b6d6341Smrg    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
61511abf7346Smrg    ac_need_defaults=false;;
61521abf7346Smrg  --header | --heade | --head | --hea )
61531abf7346Smrg    $ac_shift
61548b6d6341Smrg    case $ac_optarg in
61558b6d6341Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
61568b6d6341Smrg    esac
61578b6d6341Smrg    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
61581abf7346Smrg    ac_need_defaults=false;;
61591abf7346Smrg  --he | --h)
61601abf7346Smrg    # Conflict between --help and --header
61618b6d6341Smrg    { $as_echo "$as_me: error: ambiguous option: $1
61621abf7346SmrgTry \`$0 --help' for more information." >&2
61631abf7346Smrg   { (exit 1); exit 1; }; };;
61641abf7346Smrg  --help | --hel | -h )
61658b6d6341Smrg    $as_echo "$ac_cs_usage"; exit ;;
61661abf7346Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
61671abf7346Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
61681abf7346Smrg    ac_cs_silent=: ;;
61691abf7346Smrg
61701abf7346Smrg  # This is an error.
61718b6d6341Smrg  -*) { $as_echo "$as_me: error: unrecognized option: $1
61721abf7346SmrgTry \`$0 --help' for more information." >&2
61731abf7346Smrg   { (exit 1); exit 1; }; } ;;
61741abf7346Smrg
61751abf7346Smrg  *) ac_config_targets="$ac_config_targets $1"
61761abf7346Smrg     ac_need_defaults=false ;;
61771abf7346Smrg
61781abf7346Smrg  esac
61791abf7346Smrg  shift
61801abf7346Smrgdone
61811abf7346Smrg
61821abf7346Smrgac_configure_extra_args=
61831abf7346Smrg
61841abf7346Smrgif $ac_cs_silent; then
61851abf7346Smrg  exec 6>/dev/null
61861abf7346Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
61871abf7346Smrgfi
61881abf7346Smrg
61891abf7346Smrg_ACEOF
61908b6d6341Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
61911abf7346Smrgif \$ac_cs_recheck; then
61928b6d6341Smrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
61938b6d6341Smrg  shift
61948b6d6341Smrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
61958b6d6341Smrg  CONFIG_SHELL='$SHELL'
61961abf7346Smrg  export CONFIG_SHELL
61978b6d6341Smrg  exec "\$@"
61981abf7346Smrgfi
61991abf7346Smrg
62001abf7346Smrg_ACEOF
62018b6d6341Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
62021abf7346Smrgexec 5>>config.log
62031abf7346Smrg{
62041abf7346Smrg  echo
62051abf7346Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
62061abf7346Smrg## Running $as_me. ##
62071abf7346Smrg_ASBOX
62088b6d6341Smrg  $as_echo "$ac_log"
62091abf7346Smrg} >&5
62101abf7346Smrg
62111abf7346Smrg_ACEOF
62128b6d6341Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
62131abf7346Smrg#
62141abf7346Smrg# INIT-COMMANDS
62151abf7346Smrg#
62161abf7346SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
62171abf7346Smrg
62181abf7346Smrg_ACEOF
62191abf7346Smrg
62208b6d6341Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
62211abf7346Smrg
62221abf7346Smrg# Handling of arguments.
62231abf7346Smrgfor ac_config_target in $ac_config_targets
62241abf7346Smrgdo
62251abf7346Smrg  case $ac_config_target in
62261abf7346Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
62271abf7346Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
62281abf7346Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
62291abf7346Smrg
62308b6d6341Smrg  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
62318b6d6341Smrg$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
62321abf7346Smrg   { (exit 1); exit 1; }; };;
62331abf7346Smrg  esac
62341abf7346Smrgdone
62351abf7346Smrg
62361abf7346Smrg
62371abf7346Smrg# If the user did not use the arguments to specify the items to instantiate,
62381abf7346Smrg# then the envvar interface is used.  Set only those that are not.
62391abf7346Smrg# We use the long form for the default assignment because of an extremely
62401abf7346Smrg# bizarre bug on SunOS 4.1.3.
62411abf7346Smrgif $ac_need_defaults; then
62421abf7346Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
62431abf7346Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
62441abf7346Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
62451abf7346Smrgfi
62461abf7346Smrg
62471abf7346Smrg# Have a temporary directory for convenience.  Make it in the build tree
62481abf7346Smrg# simply because there is no reason against having it here, and in addition,
62491abf7346Smrg# creating and moving files from /tmp can sometimes cause problems.
62501abf7346Smrg# Hook for its removal unless debugging.
62511abf7346Smrg# Note that there is a small window in which the directory will not be cleaned:
62521abf7346Smrg# after its creation but before its name has been assigned to `$tmp'.
62531abf7346Smrg$debug ||
62541abf7346Smrg{
62551abf7346Smrg  tmp=
62561abf7346Smrg  trap 'exit_status=$?
62571abf7346Smrg  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
62581abf7346Smrg' 0
62591abf7346Smrg  trap '{ (exit 1); exit 1; }' 1 2 13 15
62601abf7346Smrg}
62611abf7346Smrg# Create a (secure) tmp directory for tmp files.
62621abf7346Smrg
62631abf7346Smrg{
62641abf7346Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
62651abf7346Smrg  test -n "$tmp" && test -d "$tmp"
62661abf7346Smrg}  ||
62671abf7346Smrg{
62681abf7346Smrg  tmp=./conf$$-$RANDOM
62691abf7346Smrg  (umask 077 && mkdir "$tmp")
62701abf7346Smrg} ||
62711abf7346Smrg{
62728b6d6341Smrg   $as_echo "$as_me: cannot create a temporary directory in ." >&2
62731abf7346Smrg   { (exit 1); exit 1; }
62741abf7346Smrg}
62751abf7346Smrg
62768b6d6341Smrg# Set up the scripts for CONFIG_FILES section.
62778b6d6341Smrg# No need to generate them if there are no CONFIG_FILES.
62788b6d6341Smrg# This happens for instance with `./config.status config.h'.
62791abf7346Smrgif test -n "$CONFIG_FILES"; then
62801abf7346Smrg
62811abf7346Smrg
62828b6d6341Smrgac_cr='
62838b6d6341Smrg'
62848b6d6341Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
62858b6d6341Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
62868b6d6341Smrg  ac_cs_awk_cr='\\r'
62878b6d6341Smrgelse
62881abf7346Smrg  ac_cs_awk_cr=$ac_cr
62891abf7346Smrgfi
62908b6d6341Smrg
62911abf7346Smrgecho 'BEGIN {' >"$tmp/subs1.awk" &&
62921abf7346Smrg_ACEOF
62931abf7346Smrg
62948b6d6341Smrg
62958b6d6341Smrg{
62968b6d6341Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
62978b6d6341Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
62988b6d6341Smrg  echo "_ACEOF"
62998b6d6341Smrg} >conf$$subs.sh ||
63008b6d6341Smrg  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
63018b6d6341Smrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
63028b6d6341Smrg   { (exit 1); exit 1; }; }
63031abf7346Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
63041abf7346Smrgac_delim='%!_!# '
63058b6d6341Smrgfor ac_last_try in false false false false false :; do
63068b6d6341Smrg  . ./conf$$subs.sh ||
63078b6d6341Smrg    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
63088b6d6341Smrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
63091abf7346Smrg   { (exit 1); exit 1; }; }
63108b6d6341Smrg
63118b6d6341Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
63121abf7346Smrg  if test $ac_delim_n = $ac_delim_num; then
63131abf7346Smrg    break
63148b6d6341Smrg  elif $ac_last_try; then
63158b6d6341Smrg    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
63161abf7346Smrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
63171abf7346Smrg   { (exit 1); exit 1; }; }
63181abf7346Smrg  else
63191abf7346Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
63201abf7346Smrg  fi
63218b6d6341Smrgdone
63221abf7346Smrgrm -f conf$$subs.sh
63238b6d6341Smrg
63248b6d6341Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
63258b6d6341Smrgcat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
63268b6d6341Smrg_ACEOF
63278b6d6341Smrgsed -n '
63288b6d6341Smrgh
63298b6d6341Smrgs/^/S["/; s/!.*/"]=/
63308b6d6341Smrgp
63318b6d6341Smrgg
63328b6d6341Smrgs/^[^!]*!//
63338b6d6341Smrg:repl
63348b6d6341Smrgt repl
63358b6d6341Smrgs/'"$ac_delim"'$//
63368b6d6341Smrgt delim
63378b6d6341Smrg:nl
63388b6d6341Smrgh
63398b6d6341Smrgs/\(.\{148\}\).*/\1/
63408b6d6341Smrgt more1
63418b6d6341Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
63428b6d6341Smrgp
63438b6d6341Smrgn
63448b6d6341Smrgb repl
63458b6d6341Smrg:more1
63468b6d6341Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
63478b6d6341Smrgp
63488b6d6341Smrgg
63498b6d6341Smrgs/.\{148\}//
63508b6d6341Smrgt nl
63518b6d6341Smrg:delim
63528b6d6341Smrgh
63538b6d6341Smrgs/\(.\{148\}\).*/\1/
63548b6d6341Smrgt more2
63558b6d6341Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
63568b6d6341Smrgp
63578b6d6341Smrgb
63588b6d6341Smrg:more2
63598b6d6341Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
63608b6d6341Smrgp
63618b6d6341Smrgg
63628b6d6341Smrgs/.\{148\}//
63638b6d6341Smrgt delim
63648b6d6341Smrg' <conf$$subs.awk | sed '
63658b6d6341Smrg/^[^""]/{
63668b6d6341Smrg  N
63678b6d6341Smrg  s/\n//
63688b6d6341Smrg}
63698b6d6341Smrg' >>$CONFIG_STATUS || ac_write_fail=1
63708b6d6341Smrgrm -f conf$$subs.awk
63718b6d6341Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
63728b6d6341Smrg_ACAWK
63738b6d6341Smrgcat >>"\$tmp/subs1.awk" <<_ACAWK &&
63748b6d6341Smrg  for (key in S) S_is_set[key] = 1
63758b6d6341Smrg  FS = ""
63768b6d6341Smrg
63778b6d6341Smrg}
63788b6d6341Smrg{
63798b6d6341Smrg  line = $ 0
63808b6d6341Smrg  nfields = split(line, field, "@")
63818b6d6341Smrg  substed = 0
63828b6d6341Smrg  len = length(field[1])
63838b6d6341Smrg  for (i = 2; i < nfields; i++) {
63848b6d6341Smrg    key = field[i]
63858b6d6341Smrg    keylen = length(key)
63868b6d6341Smrg    if (S_is_set[key]) {
63878b6d6341Smrg      value = S[key]
63888b6d6341Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
63898b6d6341Smrg      len += length(value) + length(field[++i])
63908b6d6341Smrg      substed = 1
63918b6d6341Smrg    } else
63928b6d6341Smrg      len += 1 + keylen
63938b6d6341Smrg  }
63948b6d6341Smrg
63958b6d6341Smrg  print line
63961abf7346Smrg}
63978b6d6341Smrg
63981abf7346Smrg_ACAWK
63998b6d6341Smrg_ACEOF
64008b6d6341Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
64018b6d6341Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
64028b6d6341Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
64038b6d6341Smrgelse
64048b6d6341Smrg  cat
64058b6d6341Smrgfi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
64068b6d6341Smrg  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
64078b6d6341Smrg$as_echo "$as_me: error: could not setup config files machinery" >&2;}
64081abf7346Smrg   { (exit 1); exit 1; }; }
64091abf7346Smrg_ACEOF
64101abf7346Smrg
64111abf7346Smrg# VPATH may cause trouble with some makes, so we remove $(srcdir),
64121abf7346Smrg# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
64131abf7346Smrg# trailing colons and then remove the whole line if VPATH becomes empty
64141abf7346Smrg# (actually we leave an empty line to preserve line numbers).
64151abf7346Smrgif test "x$srcdir" = x.; then
64161abf7346Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
64171abf7346Smrgs/:*\$(srcdir):*/:/
64181abf7346Smrgs/:*\${srcdir}:*/:/
64191abf7346Smrgs/:*@srcdir@:*/:/
64201abf7346Smrgs/^\([^=]*=[	 ]*\):*/\1/
64211abf7346Smrgs/:*$//
64221abf7346Smrgs/^[^=]*=[	 ]*$//
64231abf7346Smrg}'
64241abf7346Smrgfi
64258b6d6341Smrg
64261abf7346Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
64271abf7346Smrgfi # test -n "$CONFIG_FILES"
64288b6d6341Smrg
64298b6d6341Smrg# Set up the scripts for CONFIG_HEADERS section.
64308b6d6341Smrg# No need to generate them if there are no CONFIG_HEADERS.
64318b6d6341Smrg# This happens for instance with `./config.status Makefile'.
64328b6d6341Smrgif test -n "$CONFIG_HEADERS"; then
64338b6d6341Smrgcat >"$tmp/defines.awk" <<\_ACAWK ||
64348b6d6341SmrgBEGIN {
64358b6d6341Smrg_ACEOF
64368b6d6341Smrg
64378b6d6341Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
64388b6d6341Smrg# here-document in config.status, that substitutes the proper values into
64398b6d6341Smrg# config.h.in to produce config.h.
64408b6d6341Smrg
64418b6d6341Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
64428b6d6341Smrg# handling of long lines.
64438b6d6341Smrgac_delim='%!_!# '
64448b6d6341Smrgfor ac_last_try in false false :; do
64458b6d6341Smrg  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
64468b6d6341Smrg  if test -z "$ac_t"; then
64478b6d6341Smrg    break
64488b6d6341Smrg  elif $ac_last_try; then
64498b6d6341Smrg    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
64508b6d6341Smrg$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
64518b6d6341Smrg   { (exit 1); exit 1; }; }
64528b6d6341Smrg  else
64538b6d6341Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
64548b6d6341Smrg  fi
64558b6d6341Smrgdone
64568b6d6341Smrg
64578b6d6341Smrg# For the awk script, D is an array of macro values keyed by name,
64588b6d6341Smrg# likewise P contains macro parameters if any.  Preserve backslash
64598b6d6341Smrg# newline sequences.
64608b6d6341Smrg
64618b6d6341Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
64628b6d6341Smrgsed -n '
64638b6d6341Smrgs/.\{148\}/&'"$ac_delim"'/g
64648b6d6341Smrgt rset
64658b6d6341Smrg:rset
64668b6d6341Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
64678b6d6341Smrgt def
64688b6d6341Smrgd
64698b6d6341Smrg:def
64708b6d6341Smrgs/\\$//
64718b6d6341Smrgt bsnl
64728b6d6341Smrgs/["\\]/\\&/g
64738b6d6341Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
64748b6d6341SmrgD["\1"]=" \3"/p
64758b6d6341Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
64768b6d6341Smrgd
64778b6d6341Smrg:bsnl
64788b6d6341Smrgs/["\\]/\\&/g
64798b6d6341Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
64808b6d6341SmrgD["\1"]=" \3\\\\\\n"\\/p
64818b6d6341Smrgt cont
64828b6d6341Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
64838b6d6341Smrgt cont
64848b6d6341Smrgd
64858b6d6341Smrg:cont
64868b6d6341Smrgn
64878b6d6341Smrgs/.\{148\}/&'"$ac_delim"'/g
64888b6d6341Smrgt clear
64898b6d6341Smrg:clear
64908b6d6341Smrgs/\\$//
64918b6d6341Smrgt bsnlc
64928b6d6341Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
64938b6d6341Smrgd
64948b6d6341Smrg:bsnlc
64958b6d6341Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
64968b6d6341Smrgb cont
64978b6d6341Smrg' <confdefs.h | sed '
64988b6d6341Smrgs/'"$ac_delim"'/"\\\
64998b6d6341Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
65008b6d6341Smrg
65018b6d6341Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
65028b6d6341Smrg  for (key in D) D_is_set[key] = 1
65038b6d6341Smrg  FS = ""
65048b6d6341Smrg}
65058b6d6341Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
65068b6d6341Smrg  line = \$ 0
65078b6d6341Smrg  split(line, arg, " ")
65088b6d6341Smrg  if (arg[1] == "#") {
65098b6d6341Smrg    defundef = arg[2]
65108b6d6341Smrg    mac1 = arg[3]
65118b6d6341Smrg  } else {
65128b6d6341Smrg    defundef = substr(arg[1], 2)
65138b6d6341Smrg    mac1 = arg[2]
65148b6d6341Smrg  }
65158b6d6341Smrg  split(mac1, mac2, "(") #)
65168b6d6341Smrg  macro = mac2[1]
65178b6d6341Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
65188b6d6341Smrg  if (D_is_set[macro]) {
65198b6d6341Smrg    # Preserve the white space surrounding the "#".
65208b6d6341Smrg    print prefix "define", macro P[macro] D[macro]
65218b6d6341Smrg    next
65228b6d6341Smrg  } else {
65238b6d6341Smrg    # Replace #undef with comments.  This is necessary, for example,
65248b6d6341Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
65258b6d6341Smrg    # on some systems where configure will not decide to define it.
65268b6d6341Smrg    if (defundef == "undef") {
65278b6d6341Smrg      print "/*", prefix defundef, macro, "*/"
65288b6d6341Smrg      next
65298b6d6341Smrg    }
65308b6d6341Smrg  }
65318b6d6341Smrg}
65328b6d6341Smrg{ print }
65338b6d6341Smrg_ACAWK
65348b6d6341Smrg_ACEOF
65358b6d6341Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
65368b6d6341Smrg  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
65378b6d6341Smrg$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
65388b6d6341Smrg   { (exit 1); exit 1; }; }
65398b6d6341Smrgfi # test -n "$CONFIG_HEADERS"
65401abf7346Smrg
65418b6d6341Smrg
65428b6d6341Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
65438b6d6341Smrgshift
65441abf7346Smrgfor ac_tag
65451abf7346Smrgdo
65461abf7346Smrg  case $ac_tag in
65471abf7346Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
65481abf7346Smrg  esac
65491abf7346Smrg  case $ac_mode$ac_tag in
65508b6d6341Smrg  :[FHL]*:*);;
65518b6d6341Smrg  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
65521abf7346Smrg$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
65531abf7346Smrg   { (exit 1); exit 1; }; };;
65541abf7346Smrg  :[FH]-) ac_tag=-:-;;
65551abf7346Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
65561abf7346Smrg  esac
65571abf7346Smrg  ac_save_IFS=$IFS
65581abf7346Smrg  IFS=:
65591abf7346Smrg  set x $ac_tag
65601abf7346Smrg  IFS=$ac_save_IFS
65611abf7346Smrg  shift
65621abf7346Smrg  ac_file=$1
65631abf7346Smrg  shift
65641abf7346Smrg
65651abf7346Smrg  case $ac_mode in
65661abf7346Smrg  :L) ac_source=$1;;
65671abf7346Smrg  :[FH])
65681abf7346Smrg    ac_file_inputs=
65691abf7346Smrg    for ac_f
65701abf7346Smrg    do
65711abf7346Smrg      case $ac_f in
65721abf7346Smrg      -) ac_f="$tmp/stdin";;
65731abf7346Smrg      *) # Look for the file first in the build tree, then in the source tree
65741abf7346Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
65751abf7346Smrg	 # because $ac_f cannot contain `:'.
65761abf7346Smrg	 test -f "$ac_f" ||
65771abf7346Smrg	   case $ac_f in
65781abf7346Smrg	   [\\/$]*) false;;
65791abf7346Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
65808b6d6341Smrg	   esac ||
65818b6d6341Smrg	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
65821abf7346Smrg$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
65831abf7346Smrg   { (exit 1); exit 1; }; };;
65848b6d6341Smrg      esac
65858b6d6341Smrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
65861abf7346Smrg      ac_file_inputs="$ac_file_inputs '$ac_f'"
65871abf7346Smrg    done
65881abf7346Smrg
65891abf7346Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
65901abf7346Smrg    # use $as_me), people would be surprised to read:
65918b6d6341Smrg    #    /* config.h.  Generated by config.status.  */
65928b6d6341Smrg    configure_input='Generated from '`
65938b6d6341Smrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
65941abf7346Smrg	`' by configure.'
65951abf7346Smrg    if test x"$ac_file" != x-; then
65968b6d6341Smrg      configure_input="$ac_file.  $configure_input"
65978b6d6341Smrg      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
65981abf7346Smrg$as_echo "$as_me: creating $ac_file" >&6;}
65998b6d6341Smrg    fi
66008b6d6341Smrg    # Neutralize special characters interpreted by sed in replacement strings.
66018b6d6341Smrg    case $configure_input in #(
66028b6d6341Smrg    *\&* | *\|* | *\\* )
66038b6d6341Smrg       ac_sed_conf_input=`$as_echo "$configure_input" |
66048b6d6341Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
66058b6d6341Smrg    *) ac_sed_conf_input=$configure_input;;
66061abf7346Smrg    esac
66071abf7346Smrg
66088b6d6341Smrg    case $ac_tag in
66098b6d6341Smrg    *:-:* | *:-) cat >"$tmp/stdin" \
66108b6d6341Smrg      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
66118b6d6341Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
66121abf7346Smrg   { (exit 1); exit 1; }; } ;;
66131abf7346Smrg    esac
66141abf7346Smrg    ;;
66151abf7346Smrg  esac
66161abf7346Smrg
66171abf7346Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
66181abf7346Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
66191abf7346Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
66201abf7346Smrg	 X"$ac_file" : 'X\(//\)$' \| \
66218b6d6341Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
66221abf7346Smrg$as_echo X"$ac_file" |
66231abf7346Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
66241abf7346Smrg	    s//\1/
66251abf7346Smrg	    q
66261abf7346Smrg	  }
66271abf7346Smrg	  /^X\(\/\/\)[^/].*/{
66281abf7346Smrg	    s//\1/
66291abf7346Smrg	    q
66301abf7346Smrg	  }
66311abf7346Smrg	  /^X\(\/\/\)$/{
66321abf7346Smrg	    s//\1/
66331abf7346Smrg	    q
66341abf7346Smrg	  }
66351abf7346Smrg	  /^X\(\/\).*/{
66361abf7346Smrg	    s//\1/
66371abf7346Smrg	    q
66381abf7346Smrg	  }
66391abf7346Smrg	  s/.*/./; q'`
66401abf7346Smrg  { as_dir="$ac_dir"
66411abf7346Smrg  case $as_dir in #(
66421abf7346Smrg  -*) as_dir=./$as_dir;;
66431abf7346Smrg  esac
66441abf7346Smrg  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
66451abf7346Smrg    as_dirs=
66461abf7346Smrg    while :; do
66478b6d6341Smrg      case $as_dir in #(
66481abf7346Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
66491abf7346Smrg      *) as_qdir=$as_dir;;
66501abf7346Smrg      esac
66511abf7346Smrg      as_dirs="'$as_qdir' $as_dirs"
66521abf7346Smrg      as_dir=`$as_dirname -- "$as_dir" ||
66531abf7346Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
66541abf7346Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
66551abf7346Smrg	 X"$as_dir" : 'X\(//\)$' \| \
66568b6d6341Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
66571abf7346Smrg$as_echo X"$as_dir" |
66581abf7346Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
66591abf7346Smrg	    s//\1/
66601abf7346Smrg	    q
66611abf7346Smrg	  }
66621abf7346Smrg	  /^X\(\/\/\)[^/].*/{
66631abf7346Smrg	    s//\1/
66641abf7346Smrg	    q
66651abf7346Smrg	  }
66661abf7346Smrg	  /^X\(\/\/\)$/{
66671abf7346Smrg	    s//\1/
66681abf7346Smrg	    q
66691abf7346Smrg	  }
66701abf7346Smrg	  /^X\(\/\).*/{
66711abf7346Smrg	    s//\1/
66721abf7346Smrg	    q
66731abf7346Smrg	  }
66741abf7346Smrg	  s/.*/./; q'`
66751abf7346Smrg      test -d "$as_dir" && break
66761abf7346Smrg    done
66778b6d6341Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
66788b6d6341Smrg  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
66791abf7346Smrg$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
66801abf7346Smrg   { (exit 1); exit 1; }; }; }
66811abf7346Smrg  ac_builddir=.
66821abf7346Smrg
66831abf7346Smrgcase "$ac_dir" in
66841abf7346Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
66858b6d6341Smrg*)
66861abf7346Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
66878b6d6341Smrg  # A ".." for each directory in $ac_dir_suffix.
66881abf7346Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
66891abf7346Smrg  case $ac_top_builddir_sub in
66901abf7346Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
66911abf7346Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
66921abf7346Smrg  esac ;;
66931abf7346Smrgesac
66941abf7346Smrgac_abs_top_builddir=$ac_pwd
66951abf7346Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
66961abf7346Smrg# for backward compatibility:
66971abf7346Smrgac_top_builddir=$ac_top_build_prefix
66981abf7346Smrg
66991abf7346Smrgcase $srcdir in
67001abf7346Smrg  .)  # We are building in place.
67011abf7346Smrg    ac_srcdir=.
67021abf7346Smrg    ac_top_srcdir=$ac_top_builddir_sub
67031abf7346Smrg    ac_abs_top_srcdir=$ac_pwd ;;
67041abf7346Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
67051abf7346Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
67061abf7346Smrg    ac_top_srcdir=$srcdir
67071abf7346Smrg    ac_abs_top_srcdir=$srcdir ;;
67081abf7346Smrg  *) # Relative name.
67091abf7346Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
67101abf7346Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
67111abf7346Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
67121abf7346Smrgesac
67131abf7346Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
67141abf7346Smrg
67151abf7346Smrg
67161abf7346Smrg  case $ac_mode in
67171abf7346Smrg  :F)
67181abf7346Smrg  #
67191abf7346Smrg  # CONFIG_FILE
67201abf7346Smrg  #
67211abf7346Smrg
67221abf7346Smrg  case $INSTALL in
67231abf7346Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
67241abf7346Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
67251abf7346Smrg  esac
67261abf7346Smrg  ac_MKDIR_P=$MKDIR_P
67271abf7346Smrg  case $MKDIR_P in
67281abf7346Smrg  [\\/$]* | ?:[\\/]* ) ;;
67291abf7346Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
67301abf7346Smrg  esac
67311abf7346Smrg_ACEOF
67328b6d6341Smrg
67331abf7346Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
67341abf7346Smrg# If the template does not know about datarootdir, expand it.
67351abf7346Smrg# FIXME: This hack should be removed a few years after 2.60.
67361abf7346Smrgac_datarootdir_hack=; ac_datarootdir_seen=
67378b6d6341Smrg
67388b6d6341Smrgac_sed_dataroot='
67391abf7346Smrg/datarootdir/ {
67401abf7346Smrg  p
67411abf7346Smrg  q
67421abf7346Smrg}
67431abf7346Smrg/@datadir@/p
67441abf7346Smrg/@docdir@/p
67451abf7346Smrg/@infodir@/p
67461abf7346Smrg/@localedir@/p
67478b6d6341Smrg/@mandir@/p
67488b6d6341Smrg'
67491abf7346Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
67501abf7346Smrg*datarootdir*) ac_datarootdir_seen=yes;;
67518b6d6341Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
67528b6d6341Smrg  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
67531abf7346Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
67548b6d6341Smrg_ACEOF
67551abf7346Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
67561abf7346Smrg  ac_datarootdir_hack='
67571abf7346Smrg  s&@datadir@&$datadir&g
67581abf7346Smrg  s&@docdir@&$docdir&g
67591abf7346Smrg  s&@infodir@&$infodir&g
67601abf7346Smrg  s&@localedir@&$localedir&g
67611abf7346Smrg  s&@mandir@&$mandir&g
67621abf7346Smrg    s&\\\${datarootdir}&$datarootdir&g' ;;
67631abf7346Smrgesac
67641abf7346Smrg_ACEOF
67651abf7346Smrg
67661abf7346Smrg# Neutralize VPATH when `$srcdir' = `.'.
67671abf7346Smrg# Shell code in configure.ac might set extrasub.
67688b6d6341Smrg# FIXME: do we really want to maintain this feature?
67698b6d6341Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
67701abf7346Smrgac_sed_extra="$ac_vpsub
67711abf7346Smrg$extrasub
67728b6d6341Smrg_ACEOF
67731abf7346Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
67741abf7346Smrg:t
67758b6d6341Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
67761abf7346Smrgs|@configure_input@|$ac_sed_conf_input|;t t
67778b6d6341Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
67781abf7346Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
67791abf7346Smrgs&@srcdir@&$ac_srcdir&;t t
67801abf7346Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
67811abf7346Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
67821abf7346Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
67831abf7346Smrgs&@builddir@&$ac_builddir&;t t
67841abf7346Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
67851abf7346Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
67861abf7346Smrgs&@INSTALL@&$ac_INSTALL&;t t
67871abf7346Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
67888b6d6341Smrg$ac_datarootdir_hack
67898b6d6341Smrg"
67908b6d6341Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
67918b6d6341Smrg  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
67928b6d6341Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
67931abf7346Smrg   { (exit 1); exit 1; }; }
67941abf7346Smrg
67951abf7346Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
67961abf7346Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
67978b6d6341Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
67981abf7346Smrg  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
67998b6d6341Smrgwhich seems to be undefined.  Please make sure it is defined." >&5
68001abf7346Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
68011abf7346Smrgwhich seems to be undefined.  Please make sure it is defined." >&2;}
68021abf7346Smrg
68031abf7346Smrg  rm -f "$tmp/stdin"
68048b6d6341Smrg  case $ac_file in
68058b6d6341Smrg  -) cat "$tmp/out" && rm -f "$tmp/out";;
68068b6d6341Smrg  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
68078b6d6341Smrg  esac \
68088b6d6341Smrg  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
68098b6d6341Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
68101abf7346Smrg   { (exit 1); exit 1; }; }
68111abf7346Smrg ;;
68121abf7346Smrg  :H)
68131abf7346Smrg  #
68141abf7346Smrg  # CONFIG_HEADER
68151abf7346Smrg  #
68168b6d6341Smrg  if test x"$ac_file" != x-; then
68178b6d6341Smrg    {
68188b6d6341Smrg      $as_echo "/* $configure_input  */" \
68198b6d6341Smrg      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
68208b6d6341Smrg    } >"$tmp/config.h" \
68218b6d6341Smrg      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
68228b6d6341Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
68238b6d6341Smrg   { (exit 1); exit 1; }; }
68248b6d6341Smrg    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
68258b6d6341Smrg      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
68261abf7346Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
68278b6d6341Smrg    else
68288b6d6341Smrg      rm -f "$ac_file"
68298b6d6341Smrg      mv "$tmp/config.h" "$ac_file" \
68308b6d6341Smrg	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
68318b6d6341Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
68321abf7346Smrg   { (exit 1); exit 1; }; }
68331abf7346Smrg    fi
68348b6d6341Smrg  else
68358b6d6341Smrg    $as_echo "/* $configure_input  */" \
68368b6d6341Smrg      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
68378b6d6341Smrg      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
68388b6d6341Smrg$as_echo "$as_me: error: could not create -" >&2;}
68391abf7346Smrg   { (exit 1); exit 1; }; }
68408b6d6341Smrg  fi
68418b6d6341Smrg# Compute "$ac_file"'s index in $config_headers.
68421abf7346Smrg_am_arg="$ac_file"
68431abf7346Smrg_am_stamp_count=1
68441abf7346Smrgfor _am_header in $config_headers :; do
68458b6d6341Smrg  case $_am_header in
68461abf7346Smrg    $_am_arg | $_am_arg:* )
68471abf7346Smrg      break ;;
68481abf7346Smrg    * )
68491abf7346Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
68501abf7346Smrg  esac
68518b6d6341Smrgdone
68528b6d6341Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
68538b6d6341Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
68548b6d6341Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
68558b6d6341Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
68568b6d6341Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
68571abf7346Smrg$as_echo X"$_am_arg" |
68581abf7346Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
68591abf7346Smrg	    s//\1/
68601abf7346Smrg	    q
68611abf7346Smrg	  }
68621abf7346Smrg	  /^X\(\/\/\)[^/].*/{
68631abf7346Smrg	    s//\1/
68641abf7346Smrg	    q
68651abf7346Smrg	  }
68661abf7346Smrg	  /^X\(\/\/\)$/{
68671abf7346Smrg	    s//\1/
68681abf7346Smrg	    q
68691abf7346Smrg	  }
68701abf7346Smrg	  /^X\(\/\).*/{
68711abf7346Smrg	    s//\1/
68721abf7346Smrg	    q
68731abf7346Smrg	  }
68741abf7346Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
68751abf7346Smrg ;;
68768b6d6341Smrg
68778b6d6341Smrg  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
68781abf7346Smrg$as_echo "$as_me: executing $ac_file commands" >&6;}
68791abf7346Smrg ;;
68801abf7346Smrg  esac
68811abf7346Smrg
68821abf7346Smrg
68838b6d6341Smrg  case $ac_file$ac_mode in
68848b6d6341Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
68858b6d6341Smrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
68868b6d6341Smrg  # are listed without --file.  Let's play safe and only enable the eval
68878b6d6341Smrg  # if we detect the quoting.
68888b6d6341Smrg  case $CONFIG_FILES in
68898b6d6341Smrg  *\'*) eval set x "$CONFIG_FILES" ;;
68908b6d6341Smrg  *)   set x $CONFIG_FILES ;;
68918b6d6341Smrg  esac
68928b6d6341Smrg  shift
68938b6d6341Smrg  for mf
68948b6d6341Smrg  do
68958b6d6341Smrg    # Strip MF so we end up with the name of the file.
68968b6d6341Smrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
68978b6d6341Smrg    # Check whether this is an Automake generated Makefile or not.
68988b6d6341Smrg    # We used to match only the files named `Makefile.in', but
68998b6d6341Smrg    # some people rename them; so instead we look at the file content.
69008b6d6341Smrg    # Grep'ing the first line is not enough: some people post-process
69018b6d6341Smrg    # each Makefile.in and add a new line on top of each file to say so.
69028b6d6341Smrg    # Grep'ing the whole file is not good either: AIX grep has a line
69038b6d6341Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
69048b6d6341Smrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
69051abf7346Smrg      dirpart=`$as_dirname -- "$mf" ||
69061abf7346Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
69071abf7346Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
69081abf7346Smrg	 X"$mf" : 'X\(//\)$' \| \
69098b6d6341Smrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
69101abf7346Smrg$as_echo X"$mf" |
69111abf7346Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
69121abf7346Smrg	    s//\1/
69131abf7346Smrg	    q
69141abf7346Smrg	  }
69151abf7346Smrg	  /^X\(\/\/\)[^/].*/{
69161abf7346Smrg	    s//\1/
69171abf7346Smrg	    q
69181abf7346Smrg	  }
69191abf7346Smrg	  /^X\(\/\/\)$/{
69201abf7346Smrg	    s//\1/
69211abf7346Smrg	    q
69221abf7346Smrg	  }
69231abf7346Smrg	  /^X\(\/\).*/{
69241abf7346Smrg	    s//\1/
69251abf7346Smrg	    q
69261abf7346Smrg	  }
69278b6d6341Smrg	  s/.*/./; q'`
69288b6d6341Smrg    else
69298b6d6341Smrg      continue
69308b6d6341Smrg    fi
69318b6d6341Smrg    # Extract the definition of DEPDIR, am__include, and am__quote
69328b6d6341Smrg    # from the Makefile without running `make'.
69338b6d6341Smrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
69348b6d6341Smrg    test -z "$DEPDIR" && continue
69358b6d6341Smrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
69368b6d6341Smrg    test -z "am__include" && continue
69378b6d6341Smrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
69388b6d6341Smrg    # When using ansi2knr, U may be empty or an underscore; expand it
69398b6d6341Smrg    U=`sed -n 's/^U = //p' < "$mf"`
69408b6d6341Smrg    # Find all dependency output files, they are included files with
69418b6d6341Smrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
69428b6d6341Smrg    # simplest approach to changing $(DEPDIR) to its actual value in the
69438b6d6341Smrg    # expansion.
69448b6d6341Smrg    for file in `sed -n "
69458b6d6341Smrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
69468b6d6341Smrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
69478b6d6341Smrg      # Make sure the directory exists.
69488b6d6341Smrg      test -f "$dirpart/$file" && continue
69491abf7346Smrg      fdir=`$as_dirname -- "$file" ||
69501abf7346Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
69511abf7346Smrg	 X"$file" : 'X\(//\)[^/]' \| \
69521abf7346Smrg	 X"$file" : 'X\(//\)$' \| \
69538b6d6341Smrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
69541abf7346Smrg$as_echo X"$file" |
69551abf7346Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
69561abf7346Smrg	    s//\1/
69571abf7346Smrg	    q
69581abf7346Smrg	  }
69591abf7346Smrg	  /^X\(\/\/\)[^/].*/{
69601abf7346Smrg	    s//\1/
69611abf7346Smrg	    q
69621abf7346Smrg	  }
69631abf7346Smrg	  /^X\(\/\/\)$/{
69641abf7346Smrg	    s//\1/
69651abf7346Smrg	    q
69661abf7346Smrg	  }
69671abf7346Smrg	  /^X\(\/\).*/{
69681abf7346Smrg	    s//\1/
69691abf7346Smrg	    q
69701abf7346Smrg	  }
69718b6d6341Smrg	  s/.*/./; q'`
69721abf7346Smrg      { as_dir=$dirpart/$fdir
69731abf7346Smrg  case $as_dir in #(
69741abf7346Smrg  -*) as_dir=./$as_dir;;
69751abf7346Smrg  esac
69761abf7346Smrg  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
69771abf7346Smrg    as_dirs=
69781abf7346Smrg    while :; do
69798b6d6341Smrg      case $as_dir in #(
69801abf7346Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
69811abf7346Smrg      *) as_qdir=$as_dir;;
69821abf7346Smrg      esac
69831abf7346Smrg      as_dirs="'$as_qdir' $as_dirs"
69841abf7346Smrg      as_dir=`$as_dirname -- "$as_dir" ||
69851abf7346Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
69861abf7346Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
69871abf7346Smrg	 X"$as_dir" : 'X\(//\)$' \| \
69888b6d6341Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
69891abf7346Smrg$as_echo X"$as_dir" |
69901abf7346Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
69911abf7346Smrg	    s//\1/
69921abf7346Smrg	    q
69931abf7346Smrg	  }
69941abf7346Smrg	  /^X\(\/\/\)[^/].*/{
69951abf7346Smrg	    s//\1/
69961abf7346Smrg	    q
69971abf7346Smrg	  }
69981abf7346Smrg	  /^X\(\/\/\)$/{
69991abf7346Smrg	    s//\1/
70001abf7346Smrg	    q
70011abf7346Smrg	  }
70021abf7346Smrg	  /^X\(\/\).*/{
70031abf7346Smrg	    s//\1/
70041abf7346Smrg	    q
70051abf7346Smrg	  }
70061abf7346Smrg	  s/.*/./; q'`
70071abf7346Smrg      test -d "$as_dir" && break
70081abf7346Smrg    done
70098b6d6341Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
70108b6d6341Smrg  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
70111abf7346Smrg$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
70128b6d6341Smrg   { (exit 1); exit 1; }; }; }
70138b6d6341Smrg      # echo "creating $dirpart/$file"
70148b6d6341Smrg      echo '# dummy' > "$dirpart/$file"
70151abf7346Smrg    done
70168b6d6341Smrg  done
70171abf7346Smrg}
70181abf7346Smrg ;;
70191abf7346Smrg
70201abf7346Smrg  esac
70211abf7346Smrgdone # for ac_tag
70221abf7346Smrg
70231abf7346Smrg
70241abf7346Smrg{ (exit 0); exit 0; }
70251abf7346Smrg_ACEOF
70261abf7346Smrgchmod +x $CONFIG_STATUS
70271abf7346Smrgac_clean_files=$ac_clean_files_save
70288b6d6341Smrg
70298b6d6341Smrgtest $ac_write_fail = 0 ||
70308b6d6341Smrg  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
70318b6d6341Smrg$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
70328b6d6341Smrg   { (exit 1); exit 1; }; }
70331abf7346Smrg
70341abf7346Smrg
70351abf7346Smrg# configure is writing to config.log, and then calls config.status.
70361abf7346Smrg# config.status does its own redirection, appending to config.log.
70371abf7346Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
70381abf7346Smrg# by configure, so config.status won't be able to write to it; its
70391abf7346Smrg# output is simply discarded.  So we exec the FD to /dev/null,
70401abf7346Smrg# effectively closing config.log, so it can be properly (re)opened and
70411abf7346Smrg# appended to by config.status.  When coming back to configure, we
70421abf7346Smrg# need to make the FD available again.
70431abf7346Smrgif test "$no_create" != yes; then
70441abf7346Smrg  ac_cs_success=:
70451abf7346Smrg  ac_config_status_args=
70461abf7346Smrg  test "$silent" = yes &&
70471abf7346Smrg    ac_config_status_args="$ac_config_status_args --quiet"
70481abf7346Smrg  exec 5>/dev/null
70491abf7346Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
70501abf7346Smrg  exec 5>>config.log
70511abf7346Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
70521abf7346Smrg  # would make configure fail if this is the last instruction.
70531abf7346Smrg  $ac_cs_success || { (exit 1); exit 1; }
70548b6d6341Smrgfi
70558b6d6341Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
70568b6d6341Smrg  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
70578b6d6341Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
70581abf7346Smrgfi
7059
7060