configure revision 96a81b41
18b22bf3fSmrg#! /bin/sh
28b22bf3fSmrg# Guess values for system-dependent variables and create Makefiles.
396a81b41Smrg# Generated by GNU Autoconf 2.63 for xrdb 1.0.6.
48b22bf3fSmrg#
58b22bf3fSmrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
68b22bf3fSmrg#
78b22bf3fSmrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
896a81b41Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
98b22bf3fSmrg# This configure script is free software; the Free Software Foundation
108b22bf3fSmrg# gives unlimited permission to copy, distribute and modify it.
118b22bf3fSmrg## --------------------- ##
128b22bf3fSmrg## M4sh Initialization.  ##
138b22bf3fSmrg## --------------------- ##
148b22bf3fSmrg
158b22bf3fSmrg# Be more Bourne compatible
168b22bf3fSmrgDUALCASE=1; export DUALCASE # for MKS sh
178b22bf3fSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
188b22bf3fSmrg  emulate sh
198b22bf3fSmrg  NULLCMD=:
2096a81b41Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
218b22bf3fSmrg  # is contrary to our usage.  Disable this feature.
228b22bf3fSmrg  alias -g '${1+"$@"}'='"$@"'
238b22bf3fSmrg  setopt NO_GLOB_SUBST
248b22bf3fSmrgelse
258b22bf3fSmrg  case `(set -o) 2>/dev/null` in
268b22bf3fSmrg  *posix*) set -o posix ;;
278b22bf3fSmrgesac
288b22bf3fSmrg
298b22bf3fSmrgfi
308b22bf3fSmrg
318b22bf3fSmrg
328b22bf3fSmrg
338b22bf3fSmrg
348b22bf3fSmrg# PATH needs CR
358b22bf3fSmrg# Avoid depending upon Character Ranges.
368b22bf3fSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
378b22bf3fSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
388b22bf3fSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
398b22bf3fSmrgas_cr_digits='0123456789'
408b22bf3fSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
418b22bf3fSmrg
4296a81b41Smrgas_nl='
4396a81b41Smrg'
4496a81b41Smrgexport as_nl
4596a81b41Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
4696a81b41Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4796a81b41Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4896a81b41Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4996a81b41Smrgif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5096a81b41Smrg  as_echo='printf %s\n'
5196a81b41Smrg  as_echo_n='printf %s'
5296a81b41Smrgelse
5396a81b41Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5496a81b41Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5596a81b41Smrg    as_echo_n='/usr/ucb/echo -n'
568b22bf3fSmrg  else
5796a81b41Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5896a81b41Smrg    as_echo_n_body='eval
5996a81b41Smrg      arg=$1;
6096a81b41Smrg      case $arg in
6196a81b41Smrg      *"$as_nl"*)
6296a81b41Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
6396a81b41Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6496a81b41Smrg      esac;
6596a81b41Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6696a81b41Smrg    '
6796a81b41Smrg    export as_echo_n_body
6896a81b41Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
698b22bf3fSmrg  fi
7096a81b41Smrg  export as_echo_body
7196a81b41Smrg  as_echo='sh -c $as_echo_body as_echo'
7296a81b41Smrgfi
7396a81b41Smrg
7496a81b41Smrg# The user is always right.
7596a81b41Smrgif test "${PATH_SEPARATOR+set}" != set; then
7696a81b41Smrg  PATH_SEPARATOR=:
7796a81b41Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7896a81b41Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7996a81b41Smrg      PATH_SEPARATOR=';'
8096a81b41Smrg  }
818b22bf3fSmrgfi
828b22bf3fSmrg
838b22bf3fSmrg# Support unset when possible.
848b22bf3fSmrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
858b22bf3fSmrg  as_unset=unset
868b22bf3fSmrgelse
878b22bf3fSmrg  as_unset=false
888b22bf3fSmrgfi
898b22bf3fSmrg
908b22bf3fSmrg
918b22bf3fSmrg# IFS
928b22bf3fSmrg# We need space, tab and new line, in precisely that order.  Quoting is
938b22bf3fSmrg# there to prevent editors from complaining about space-tab.
948b22bf3fSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
958b22bf3fSmrg# splitting by setting IFS to empty value.)
968b22bf3fSmrgIFS=" ""	$as_nl"
978b22bf3fSmrg
988b22bf3fSmrg# Find who we are.  Look in the path if we contain no directory separator.
998b22bf3fSmrgcase $0 in
1008b22bf3fSmrg  *[\\/]* ) as_myself=$0 ;;
1018b22bf3fSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1028b22bf3fSmrgfor as_dir in $PATH
1038b22bf3fSmrgdo
1048b22bf3fSmrg  IFS=$as_save_IFS
1058b22bf3fSmrg  test -z "$as_dir" && as_dir=.
1068b22bf3fSmrg  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1078b22bf3fSmrgdone
1088b22bf3fSmrgIFS=$as_save_IFS
1098b22bf3fSmrg
1108b22bf3fSmrg     ;;
1118b22bf3fSmrgesac
1128b22bf3fSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
1138b22bf3fSmrg# in which case we are not to be found in the path.
1148b22bf3fSmrgif test "x$as_myself" = x; then
1158b22bf3fSmrg  as_myself=$0
1168b22bf3fSmrgfi
1178b22bf3fSmrgif test ! -f "$as_myself"; then
11896a81b41Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1198b22bf3fSmrg  { (exit 1); exit 1; }
1208b22bf3fSmrgfi
1218b22bf3fSmrg
1228b22bf3fSmrg# Work around bugs in pre-3.0 UWIN ksh.
1238b22bf3fSmrgfor as_var in ENV MAIL MAILPATH
1248b22bf3fSmrgdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
1258b22bf3fSmrgdone
1268b22bf3fSmrgPS1='$ '
1278b22bf3fSmrgPS2='> '
1288b22bf3fSmrgPS4='+ '
1298b22bf3fSmrg
1308b22bf3fSmrg# NLS nuisances.
13196a81b41SmrgLC_ALL=C
13296a81b41Smrgexport LC_ALL
13396a81b41SmrgLANGUAGE=C
13496a81b41Smrgexport LANGUAGE
1358b22bf3fSmrg
1368b22bf3fSmrg# Required to use basename.
1378b22bf3fSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
1388b22bf3fSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
1398b22bf3fSmrg  as_expr=expr
1408b22bf3fSmrgelse
1418b22bf3fSmrg  as_expr=false
1428b22bf3fSmrgfi
1438b22bf3fSmrg
1448b22bf3fSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1458b22bf3fSmrg  as_basename=basename
1468b22bf3fSmrgelse
1478b22bf3fSmrg  as_basename=false
1488b22bf3fSmrgfi
1498b22bf3fSmrg
1508b22bf3fSmrg
1518b22bf3fSmrg# Name of the executable.
1528b22bf3fSmrgas_me=`$as_basename -- "$0" ||
1538b22bf3fSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1548b22bf3fSmrg	 X"$0" : 'X\(//\)$' \| \
1558b22bf3fSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15696a81b41Smrg$as_echo X/"$0" |
1578b22bf3fSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
1588b22bf3fSmrg	    s//\1/
1598b22bf3fSmrg	    q
1608b22bf3fSmrg	  }
1618b22bf3fSmrg	  /^X\/\(\/\/\)$/{
1628b22bf3fSmrg	    s//\1/
1638b22bf3fSmrg	    q
1648b22bf3fSmrg	  }
1658b22bf3fSmrg	  /^X\/\(\/\).*/{
1668b22bf3fSmrg	    s//\1/
1678b22bf3fSmrg	    q
1688b22bf3fSmrg	  }
1698b22bf3fSmrg	  s/.*/./; q'`
1708b22bf3fSmrg
1718b22bf3fSmrg# CDPATH.
1728b22bf3fSmrg$as_unset CDPATH
1738b22bf3fSmrg
1748b22bf3fSmrg
1758b22bf3fSmrgif test "x$CONFIG_SHELL" = x; then
1768b22bf3fSmrg  if (eval ":") 2>/dev/null; then
1778b22bf3fSmrg  as_have_required=yes
1788b22bf3fSmrgelse
1798b22bf3fSmrg  as_have_required=no
1808b22bf3fSmrgfi
1818b22bf3fSmrg
18296a81b41Smrg  if test $as_have_required = yes &&	 (eval ":
1838b22bf3fSmrg(as_func_return () {
1848b22bf3fSmrg  (exit \$1)
1858b22bf3fSmrg}
1868b22bf3fSmrgas_func_success () {
1878b22bf3fSmrg  as_func_return 0
1888b22bf3fSmrg}
1898b22bf3fSmrgas_func_failure () {
1908b22bf3fSmrg  as_func_return 1
1918b22bf3fSmrg}
1928b22bf3fSmrgas_func_ret_success () {
1938b22bf3fSmrg  return 0
1948b22bf3fSmrg}
1958b22bf3fSmrgas_func_ret_failure () {
1968b22bf3fSmrg  return 1
1978b22bf3fSmrg}
1988b22bf3fSmrg
1998b22bf3fSmrgexitcode=0
2008b22bf3fSmrgif as_func_success; then
2018b22bf3fSmrg  :
2028b22bf3fSmrgelse
2038b22bf3fSmrg  exitcode=1
2048b22bf3fSmrg  echo as_func_success failed.
2058b22bf3fSmrgfi
2068b22bf3fSmrg
2078b22bf3fSmrgif as_func_failure; then
2088b22bf3fSmrg  exitcode=1
2098b22bf3fSmrg  echo as_func_failure succeeded.
2108b22bf3fSmrgfi
2118b22bf3fSmrg
2128b22bf3fSmrgif as_func_ret_success; then
2138b22bf3fSmrg  :
2148b22bf3fSmrgelse
2158b22bf3fSmrg  exitcode=1
2168b22bf3fSmrg  echo as_func_ret_success failed.
2178b22bf3fSmrgfi
2188b22bf3fSmrg
2198b22bf3fSmrgif as_func_ret_failure; then
2208b22bf3fSmrg  exitcode=1
2218b22bf3fSmrg  echo as_func_ret_failure succeeded.
2228b22bf3fSmrgfi
2238b22bf3fSmrg
2248b22bf3fSmrgif ( set x; as_func_ret_success y && test x = \"\$1\" ); then
2258b22bf3fSmrg  :
2268b22bf3fSmrgelse
2278b22bf3fSmrg  exitcode=1
2288b22bf3fSmrg  echo positional parameters were not saved.
2298b22bf3fSmrgfi
2308b22bf3fSmrg
2318b22bf3fSmrgtest \$exitcode = 0) || { (exit 1); exit 1; }
2328b22bf3fSmrg
2338b22bf3fSmrg(
2348b22bf3fSmrg  as_lineno_1=\$LINENO
2358b22bf3fSmrg  as_lineno_2=\$LINENO
2368b22bf3fSmrg  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
2378b22bf3fSmrg  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
2388b22bf3fSmrg") 2> /dev/null; then
2398b22bf3fSmrg  :
2408b22bf3fSmrgelse
2418b22bf3fSmrg  as_candidate_shells=
2428b22bf3fSmrg    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438b22bf3fSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2448b22bf3fSmrgdo
2458b22bf3fSmrg  IFS=$as_save_IFS
2468b22bf3fSmrg  test -z "$as_dir" && as_dir=.
2478b22bf3fSmrg  case $as_dir in
2488b22bf3fSmrg	 /*)
2498b22bf3fSmrg	   for as_base in sh bash ksh sh5; do
2508b22bf3fSmrg	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
2518b22bf3fSmrg	   done;;
2528b22bf3fSmrg       esac
2538b22bf3fSmrgdone
2548b22bf3fSmrgIFS=$as_save_IFS
2558b22bf3fSmrg
2568b22bf3fSmrg
2578b22bf3fSmrg      for as_shell in $as_candidate_shells $SHELL; do
2588b22bf3fSmrg	 # Try only shells that exist, to save several forks.
2598b22bf3fSmrg	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
2608b22bf3fSmrg		{ ("$as_shell") 2> /dev/null <<\_ASEOF
2618b22bf3fSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2628b22bf3fSmrg  emulate sh
2638b22bf3fSmrg  NULLCMD=:
26496a81b41Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2658b22bf3fSmrg  # is contrary to our usage.  Disable this feature.
2668b22bf3fSmrg  alias -g '${1+"$@"}'='"$@"'
2678b22bf3fSmrg  setopt NO_GLOB_SUBST
2688b22bf3fSmrgelse
2698b22bf3fSmrg  case `(set -o) 2>/dev/null` in
2708b22bf3fSmrg  *posix*) set -o posix ;;
2718b22bf3fSmrgesac
2728b22bf3fSmrg
2738b22bf3fSmrgfi
2748b22bf3fSmrg
2758b22bf3fSmrg
2768b22bf3fSmrg:
2778b22bf3fSmrg_ASEOF
2788b22bf3fSmrg}; then
2798b22bf3fSmrg  CONFIG_SHELL=$as_shell
2808b22bf3fSmrg	       as_have_required=yes
2818b22bf3fSmrg	       if { "$as_shell" 2> /dev/null <<\_ASEOF
2828b22bf3fSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2838b22bf3fSmrg  emulate sh
2848b22bf3fSmrg  NULLCMD=:
28596a81b41Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2868b22bf3fSmrg  # is contrary to our usage.  Disable this feature.
2878b22bf3fSmrg  alias -g '${1+"$@"}'='"$@"'
2888b22bf3fSmrg  setopt NO_GLOB_SUBST
2898b22bf3fSmrgelse
2908b22bf3fSmrg  case `(set -o) 2>/dev/null` in
2918b22bf3fSmrg  *posix*) set -o posix ;;
2928b22bf3fSmrgesac
2938b22bf3fSmrg
2948b22bf3fSmrgfi
2958b22bf3fSmrg
2968b22bf3fSmrg
2978b22bf3fSmrg:
2988b22bf3fSmrg(as_func_return () {
2998b22bf3fSmrg  (exit $1)
3008b22bf3fSmrg}
3018b22bf3fSmrgas_func_success () {
3028b22bf3fSmrg  as_func_return 0
3038b22bf3fSmrg}
3048b22bf3fSmrgas_func_failure () {
3058b22bf3fSmrg  as_func_return 1
3068b22bf3fSmrg}
3078b22bf3fSmrgas_func_ret_success () {
3088b22bf3fSmrg  return 0
3098b22bf3fSmrg}
3108b22bf3fSmrgas_func_ret_failure () {
3118b22bf3fSmrg  return 1
3128b22bf3fSmrg}
3138b22bf3fSmrg
3148b22bf3fSmrgexitcode=0
3158b22bf3fSmrgif as_func_success; then
3168b22bf3fSmrg  :
3178b22bf3fSmrgelse
3188b22bf3fSmrg  exitcode=1
3198b22bf3fSmrg  echo as_func_success failed.
3208b22bf3fSmrgfi
3218b22bf3fSmrg
3228b22bf3fSmrgif as_func_failure; then
3238b22bf3fSmrg  exitcode=1
3248b22bf3fSmrg  echo as_func_failure succeeded.
3258b22bf3fSmrgfi
3268b22bf3fSmrg
3278b22bf3fSmrgif as_func_ret_success; then
3288b22bf3fSmrg  :
3298b22bf3fSmrgelse
3308b22bf3fSmrg  exitcode=1
3318b22bf3fSmrg  echo as_func_ret_success failed.
3328b22bf3fSmrgfi
3338b22bf3fSmrg
3348b22bf3fSmrgif as_func_ret_failure; then
3358b22bf3fSmrg  exitcode=1
3368b22bf3fSmrg  echo as_func_ret_failure succeeded.
3378b22bf3fSmrgfi
3388b22bf3fSmrg
3398b22bf3fSmrgif ( set x; as_func_ret_success y && test x = "$1" ); then
3408b22bf3fSmrg  :
3418b22bf3fSmrgelse
3428b22bf3fSmrg  exitcode=1
3438b22bf3fSmrg  echo positional parameters were not saved.
3448b22bf3fSmrgfi
3458b22bf3fSmrg
3468b22bf3fSmrgtest $exitcode = 0) || { (exit 1); exit 1; }
3478b22bf3fSmrg
3488b22bf3fSmrg(
3498b22bf3fSmrg  as_lineno_1=$LINENO
3508b22bf3fSmrg  as_lineno_2=$LINENO
3518b22bf3fSmrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
3528b22bf3fSmrg  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
3538b22bf3fSmrg
3548b22bf3fSmrg_ASEOF
3558b22bf3fSmrg}; then
3568b22bf3fSmrg  break
3578b22bf3fSmrgfi
3588b22bf3fSmrg
3598b22bf3fSmrgfi
3608b22bf3fSmrg
3618b22bf3fSmrg      done
3628b22bf3fSmrg
3638b22bf3fSmrg      if test "x$CONFIG_SHELL" != x; then
3648b22bf3fSmrg  for as_var in BASH_ENV ENV
36596a81b41Smrg	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
36696a81b41Smrg	done
36796a81b41Smrg	export CONFIG_SHELL
36896a81b41Smrg	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
3698b22bf3fSmrgfi
3708b22bf3fSmrg
3718b22bf3fSmrg
3728b22bf3fSmrg    if test $as_have_required = no; then
3738b22bf3fSmrg  echo This script requires a shell more modern than all the
3748b22bf3fSmrg      echo shells that I found on your system.  Please install a
3758b22bf3fSmrg      echo modern shell, or manually run the script under such a
3768b22bf3fSmrg      echo shell if you do have one.
3778b22bf3fSmrg      { (exit 1); exit 1; }
3788b22bf3fSmrgfi
3798b22bf3fSmrg
3808b22bf3fSmrg
3818b22bf3fSmrgfi
3828b22bf3fSmrg
3838b22bf3fSmrgfi
3848b22bf3fSmrg
3858b22bf3fSmrg
3868b22bf3fSmrg
3878b22bf3fSmrg(eval "as_func_return () {
3888b22bf3fSmrg  (exit \$1)
3898b22bf3fSmrg}
3908b22bf3fSmrgas_func_success () {
3918b22bf3fSmrg  as_func_return 0
3928b22bf3fSmrg}
3938b22bf3fSmrgas_func_failure () {
3948b22bf3fSmrg  as_func_return 1
3958b22bf3fSmrg}
3968b22bf3fSmrgas_func_ret_success () {
3978b22bf3fSmrg  return 0
3988b22bf3fSmrg}
3998b22bf3fSmrgas_func_ret_failure () {
4008b22bf3fSmrg  return 1
4018b22bf3fSmrg}
4028b22bf3fSmrg
4038b22bf3fSmrgexitcode=0
4048b22bf3fSmrgif as_func_success; then
4058b22bf3fSmrg  :
4068b22bf3fSmrgelse
4078b22bf3fSmrg  exitcode=1
4088b22bf3fSmrg  echo as_func_success failed.
4098b22bf3fSmrgfi
4108b22bf3fSmrg
4118b22bf3fSmrgif as_func_failure; then
4128b22bf3fSmrg  exitcode=1
4138b22bf3fSmrg  echo as_func_failure succeeded.
4148b22bf3fSmrgfi
4158b22bf3fSmrg
4168b22bf3fSmrgif as_func_ret_success; then
4178b22bf3fSmrg  :
4188b22bf3fSmrgelse
4198b22bf3fSmrg  exitcode=1
4208b22bf3fSmrg  echo as_func_ret_success failed.
4218b22bf3fSmrgfi
4228b22bf3fSmrg
4238b22bf3fSmrgif as_func_ret_failure; then
4248b22bf3fSmrg  exitcode=1
4258b22bf3fSmrg  echo as_func_ret_failure succeeded.
4268b22bf3fSmrgfi
4278b22bf3fSmrg
4288b22bf3fSmrgif ( set x; as_func_ret_success y && test x = \"\$1\" ); then
4298b22bf3fSmrg  :
4308b22bf3fSmrgelse
4318b22bf3fSmrg  exitcode=1
4328b22bf3fSmrg  echo positional parameters were not saved.
4338b22bf3fSmrgfi
4348b22bf3fSmrg
4358b22bf3fSmrgtest \$exitcode = 0") || {
4368b22bf3fSmrg  echo No shell found that supports shell functions.
43796a81b41Smrg  echo Please tell bug-autoconf@gnu.org about your system,
43896a81b41Smrg  echo including any error possibly output before this message.
43996a81b41Smrg  echo This can help us improve future autoconf versions.
44096a81b41Smrg  echo Configuration will now proceed without shell functions.
4418b22bf3fSmrg}
4428b22bf3fSmrg
4438b22bf3fSmrg
4448b22bf3fSmrg
4458b22bf3fSmrg  as_lineno_1=$LINENO
4468b22bf3fSmrg  as_lineno_2=$LINENO
4478b22bf3fSmrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
4488b22bf3fSmrg  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
4498b22bf3fSmrg
4508b22bf3fSmrg  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4518b22bf3fSmrg  # uniformly replaced by the line number.  The first 'sed' inserts a
4528b22bf3fSmrg  # line-number line after each line using $LINENO; the second 'sed'
4538b22bf3fSmrg  # does the real work.  The second script uses 'N' to pair each
4548b22bf3fSmrg  # line-number line with the line containing $LINENO, and appends
4558b22bf3fSmrg  # trailing '-' during substitution so that $LINENO is not a special
4568b22bf3fSmrg  # case at line end.
4578b22bf3fSmrg  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4588b22bf3fSmrg  # scripts with optimization help from Paolo Bonzini.  Blame Lee
4598b22bf3fSmrg  # E. McMahon (1931-1989) for sed's syntax.  :-)
4608b22bf3fSmrg  sed -n '
4618b22bf3fSmrg    p
4628b22bf3fSmrg    /[$]LINENO/=
4638b22bf3fSmrg  ' <$as_myself |
4648b22bf3fSmrg    sed '
4658b22bf3fSmrg      s/[$]LINENO.*/&-/
4668b22bf3fSmrg      t lineno
4678b22bf3fSmrg      b
4688b22bf3fSmrg      :lineno
4698b22bf3fSmrg      N
4708b22bf3fSmrg      :loop
4718b22bf3fSmrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4728b22bf3fSmrg      t loop
4738b22bf3fSmrg      s/-\n.*//
4748b22bf3fSmrg    ' >$as_me.lineno &&
4758b22bf3fSmrg  chmod +x "$as_me.lineno" ||
47696a81b41Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
4778b22bf3fSmrg   { (exit 1); exit 1; }; }
4788b22bf3fSmrg
4798b22bf3fSmrg  # Don't try to exec as it changes $[0], causing all sort of problems
4808b22bf3fSmrg  # (the dirname of $[0] is not the place where we might find the
4818b22bf3fSmrg  # original and so on.  Autoconf is especially sensitive to this).
4828b22bf3fSmrg  . "./$as_me.lineno"
4838b22bf3fSmrg  # Exit status is that of the last command.
4848b22bf3fSmrg  exit
4858b22bf3fSmrg}
4868b22bf3fSmrg
4878b22bf3fSmrg
4888b22bf3fSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4898b22bf3fSmrg  as_dirname=dirname
4908b22bf3fSmrgelse
4918b22bf3fSmrg  as_dirname=false
4928b22bf3fSmrgfi
4938b22bf3fSmrg
4948b22bf3fSmrgECHO_C= ECHO_N= ECHO_T=
4958b22bf3fSmrgcase `echo -n x` in
4968b22bf3fSmrg-n*)
4978b22bf3fSmrg  case `echo 'x\c'` in
4988b22bf3fSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
4998b22bf3fSmrg  *)   ECHO_C='\c';;
5008b22bf3fSmrg  esac;;
5018b22bf3fSmrg*)
5028b22bf3fSmrg  ECHO_N='-n';;
5038b22bf3fSmrgesac
5048b22bf3fSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
5058b22bf3fSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5068b22bf3fSmrg  as_expr=expr
5078b22bf3fSmrgelse
5088b22bf3fSmrg  as_expr=false
5098b22bf3fSmrgfi
5108b22bf3fSmrg
5118b22bf3fSmrgrm -f conf$$ conf$$.exe conf$$.file
5128b22bf3fSmrgif test -d conf$$.dir; then
5138b22bf3fSmrg  rm -f conf$$.dir/conf$$.file
5148b22bf3fSmrgelse
5158b22bf3fSmrg  rm -f conf$$.dir
51696a81b41Smrg  mkdir conf$$.dir 2>/dev/null
51796a81b41Smrgfi
51896a81b41Smrgif (echo >conf$$.file) 2>/dev/null; then
51996a81b41Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
52096a81b41Smrg    as_ln_s='ln -s'
52196a81b41Smrg    # ... but there are two gotchas:
52296a81b41Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
52396a81b41Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
52496a81b41Smrg    # In both cases, we have to default to `cp -p'.
52596a81b41Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
52696a81b41Smrg      as_ln_s='cp -p'
52796a81b41Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
52896a81b41Smrg    as_ln_s=ln
52996a81b41Smrg  else
5308b22bf3fSmrg    as_ln_s='cp -p'
53196a81b41Smrg  fi
5328b22bf3fSmrgelse
5338b22bf3fSmrg  as_ln_s='cp -p'
5348b22bf3fSmrgfi
5358b22bf3fSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5368b22bf3fSmrgrmdir conf$$.dir 2>/dev/null
5378b22bf3fSmrg
5388b22bf3fSmrgif mkdir -p . 2>/dev/null; then
5398b22bf3fSmrg  as_mkdir_p=:
5408b22bf3fSmrgelse
5418b22bf3fSmrg  test -d ./-p && rmdir ./-p
5428b22bf3fSmrg  as_mkdir_p=false
5438b22bf3fSmrgfi
5448b22bf3fSmrg
5458b22bf3fSmrgif test -x / >/dev/null 2>&1; then
5468b22bf3fSmrg  as_test_x='test -x'
5478b22bf3fSmrgelse
5488b22bf3fSmrg  if ls -dL / >/dev/null 2>&1; then
5498b22bf3fSmrg    as_ls_L_option=L
5508b22bf3fSmrg  else
5518b22bf3fSmrg    as_ls_L_option=
5528b22bf3fSmrg  fi
5538b22bf3fSmrg  as_test_x='
5548b22bf3fSmrg    eval sh -c '\''
5558b22bf3fSmrg      if test -d "$1"; then
55696a81b41Smrg	test -d "$1/.";
5578b22bf3fSmrg      else
5588b22bf3fSmrg	case $1 in
55996a81b41Smrg	-*)set "./$1";;
5608b22bf3fSmrg	esac;
5618b22bf3fSmrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5628b22bf3fSmrg	???[sx]*):;;*)false;;esac;fi
5638b22bf3fSmrg    '\'' sh
5648b22bf3fSmrg  '
5658b22bf3fSmrgfi
5668b22bf3fSmrgas_executable_p=$as_test_x
5678b22bf3fSmrg
5688b22bf3fSmrg# Sed expression to map a string onto a valid CPP name.
5698b22bf3fSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5708b22bf3fSmrg
5718b22bf3fSmrg# Sed expression to map a string onto a valid variable name.
5728b22bf3fSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5738b22bf3fSmrg
5748b22bf3fSmrg
5758b22bf3fSmrg
5768b22bf3fSmrgexec 7<&0 </dev/null 6>&1
5778b22bf3fSmrg
5788b22bf3fSmrg# Name of the host.
5798b22bf3fSmrg# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
5808b22bf3fSmrg# so uname gets run too.
5818b22bf3fSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
5828b22bf3fSmrg
5838b22bf3fSmrg#
5848b22bf3fSmrg# Initializations.
5858b22bf3fSmrg#
5868b22bf3fSmrgac_default_prefix=/usr/local
5878b22bf3fSmrgac_clean_files=
5888b22bf3fSmrgac_config_libobj_dir=.
5898b22bf3fSmrgLIBOBJS=
5908b22bf3fSmrgcross_compiling=no
5918b22bf3fSmrgsubdirs=
5928b22bf3fSmrgMFLAGS=
5938b22bf3fSmrgMAKEFLAGS=
5948b22bf3fSmrgSHELL=${CONFIG_SHELL-/bin/sh}
5958b22bf3fSmrg
5968b22bf3fSmrg# Identity of this package.
5978b22bf3fSmrgPACKAGE_NAME='xrdb'
5988b22bf3fSmrgPACKAGE_TARNAME='xrdb'
59996a81b41SmrgPACKAGE_VERSION='1.0.6'
60096a81b41SmrgPACKAGE_STRING='xrdb 1.0.6'
6018b22bf3fSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
6028b22bf3fSmrg
6038b22bf3fSmrg# Factoring default headers for most tests.
6048b22bf3fSmrgac_includes_default="\
6058b22bf3fSmrg#include <stdio.h>
6068b22bf3fSmrg#ifdef HAVE_SYS_TYPES_H
6078b22bf3fSmrg# include <sys/types.h>
6088b22bf3fSmrg#endif
6098b22bf3fSmrg#ifdef HAVE_SYS_STAT_H
6108b22bf3fSmrg# include <sys/stat.h>
6118b22bf3fSmrg#endif
6128b22bf3fSmrg#ifdef STDC_HEADERS
6138b22bf3fSmrg# include <stdlib.h>
6148b22bf3fSmrg# include <stddef.h>
6158b22bf3fSmrg#else
6168b22bf3fSmrg# ifdef HAVE_STDLIB_H
6178b22bf3fSmrg#  include <stdlib.h>
6188b22bf3fSmrg# endif
6198b22bf3fSmrg#endif
6208b22bf3fSmrg#ifdef HAVE_STRING_H
6218b22bf3fSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
6228b22bf3fSmrg#  include <memory.h>
6238b22bf3fSmrg# endif
6248b22bf3fSmrg# include <string.h>
6258b22bf3fSmrg#endif
6268b22bf3fSmrg#ifdef HAVE_STRINGS_H
6278b22bf3fSmrg# include <strings.h>
6288b22bf3fSmrg#endif
6298b22bf3fSmrg#ifdef HAVE_INTTYPES_H
6308b22bf3fSmrg# include <inttypes.h>
6318b22bf3fSmrg#endif
6328b22bf3fSmrg#ifdef HAVE_STDINT_H
6338b22bf3fSmrg# include <stdint.h>
6348b22bf3fSmrg#endif
6358b22bf3fSmrg#ifdef HAVE_UNISTD_H
6368b22bf3fSmrg# include <unistd.h>
6378b22bf3fSmrg#endif"
6388b22bf3fSmrg
63996a81b41Smrgac_subst_vars='am__EXEEXT_FALSE
64096a81b41Smrgam__EXEEXT_TRUE
64196a81b41SmrgLTLIBOBJS
64296a81b41SmrgLIBOBJS
6438b22bf3fSmrgXRDB_LIBS
64496a81b41SmrgXRDB_CFLAGS
64596a81b41SmrgPKG_CONFIG
64696a81b41SmrgCPP_PATH
6478b22bf3fSmrgADMIN_MAN_DIR
64896a81b41SmrgDRIVER_MAN_DIR
64996a81b41SmrgMISC_MAN_DIR
65096a81b41SmrgFILE_MAN_DIR
65196a81b41SmrgLIB_MAN_DIR
65296a81b41SmrgAPP_MAN_DIR
65396a81b41SmrgADMIN_MAN_SUFFIX
65496a81b41SmrgDRIVER_MAN_SUFFIX
65596a81b41SmrgMISC_MAN_SUFFIX
65696a81b41SmrgFILE_MAN_SUFFIX
65796a81b41SmrgLIB_MAN_SUFFIX
65896a81b41SmrgAPP_MAN_SUFFIX
65996a81b41Smrghost_os
66096a81b41Smrghost_vendor
66196a81b41Smrghost_cpu
66296a81b41Smrghost
66396a81b41Smrgbuild_os
66496a81b41Smrgbuild_vendor
66596a81b41Smrgbuild_cpu
66696a81b41Smrgbuild
66796a81b41Smrgdistcleancheck_listfiles
66896a81b41SmrgCHANGELOG_CMD
66996a81b41SmrgAM_BACKSLASH
67096a81b41SmrgAM_DEFAULT_VERBOSITY
67196a81b41SmrgCWARNFLAGS
67296a81b41SmrgEGREP
67396a81b41SmrgGREP
67496a81b41SmrgCPP
67596a81b41Smrgam__fastdepCC_FALSE
67696a81b41Smrgam__fastdepCC_TRUE
67796a81b41SmrgCCDEPMODE
67896a81b41SmrgAMDEPBACKSLASH
67996a81b41SmrgAMDEP_FALSE
68096a81b41SmrgAMDEP_TRUE
68196a81b41Smrgam__quote
68296a81b41Smrgam__include
68396a81b41SmrgDEPDIR
68496a81b41SmrgOBJEXT
68596a81b41SmrgEXEEXT
68696a81b41Smrgac_ct_CC
68796a81b41SmrgCPPFLAGS
68896a81b41SmrgLDFLAGS
68996a81b41SmrgCFLAGS
69096a81b41SmrgCC
69196a81b41SmrgMAINT
69296a81b41SmrgMAINTAINER_MODE_FALSE
69396a81b41SmrgMAINTAINER_MODE_TRUE
69496a81b41Smrgam__untar
69596a81b41Smrgam__tar
69696a81b41SmrgAMTAR
69796a81b41Smrgam__leading_dot
69896a81b41SmrgSET_MAKE
69996a81b41SmrgAWK
70096a81b41Smrgmkdir_p
70196a81b41SmrgMKDIR_P
70296a81b41SmrgINSTALL_STRIP_PROGRAM
70396a81b41SmrgSTRIP
70496a81b41Smrginstall_sh
70596a81b41SmrgMAKEINFO
70696a81b41SmrgAUTOHEADER
70796a81b41SmrgAUTOMAKE
70896a81b41SmrgAUTOCONF
70996a81b41SmrgACLOCAL
71096a81b41SmrgVERSION
71196a81b41SmrgPACKAGE
71296a81b41SmrgCYGPATH_W
71396a81b41Smrgam__isrc
71496a81b41SmrgINSTALL_DATA
71596a81b41SmrgINSTALL_SCRIPT
71696a81b41SmrgINSTALL_PROGRAM
71796a81b41Smrgtarget_alias
71896a81b41Smrghost_alias
71996a81b41Smrgbuild_alias
72096a81b41SmrgLIBS
72196a81b41SmrgECHO_T
72296a81b41SmrgECHO_N
72396a81b41SmrgECHO_C
72496a81b41SmrgDEFS
72596a81b41Smrgmandir
72696a81b41Smrglocaledir
72796a81b41Smrglibdir
72896a81b41Smrgpsdir
72996a81b41Smrgpdfdir
73096a81b41Smrgdvidir
73196a81b41Smrghtmldir
73296a81b41Smrginfodir
73396a81b41Smrgdocdir
73496a81b41Smrgoldincludedir
73596a81b41Smrgincludedir
73696a81b41Smrglocalstatedir
73796a81b41Smrgsharedstatedir
73896a81b41Smrgsysconfdir
73996a81b41Smrgdatadir
74096a81b41Smrgdatarootdir
74196a81b41Smrglibexecdir
74296a81b41Smrgsbindir
74396a81b41Smrgbindir
74496a81b41Smrgprogram_transform_name
74596a81b41Smrgprefix
74696a81b41Smrgexec_prefix
74796a81b41SmrgPACKAGE_BUGREPORT
74896a81b41SmrgPACKAGE_STRING
74996a81b41SmrgPACKAGE_VERSION
75096a81b41SmrgPACKAGE_TARNAME
75196a81b41SmrgPACKAGE_NAME
75296a81b41SmrgPATH_SEPARATOR
75396a81b41SmrgSHELL'
7548b22bf3fSmrgac_subst_files=''
75596a81b41Smrgac_user_opts='
75696a81b41Smrgenable_option_checking
75796a81b41Smrgenable_maintainer_mode
75896a81b41Smrgenable_dependency_tracking
75996a81b41Smrgenable_silent_rules
76096a81b41Smrgenable_strict_compilation
76196a81b41Smrgwith_release_version
76296a81b41Smrgwith_cpp
76396a81b41Smrg'
7648b22bf3fSmrg      ac_precious_vars='build_alias
7658b22bf3fSmrghost_alias
7668b22bf3fSmrgtarget_alias
7678b22bf3fSmrgCC
7688b22bf3fSmrgCFLAGS
7698b22bf3fSmrgLDFLAGS
7708b22bf3fSmrgLIBS
7718b22bf3fSmrgCPPFLAGS
7728b22bf3fSmrgCPP
7738b22bf3fSmrgPKG_CONFIG
7748b22bf3fSmrgXRDB_CFLAGS
7758b22bf3fSmrgXRDB_LIBS'
7768b22bf3fSmrg
7778b22bf3fSmrg
7788b22bf3fSmrg# Initialize some variables set by options.
7798b22bf3fSmrgac_init_help=
7808b22bf3fSmrgac_init_version=false
78196a81b41Smrgac_unrecognized_opts=
78296a81b41Smrgac_unrecognized_sep=
7838b22bf3fSmrg# The variables have the same names as the options, with
7848b22bf3fSmrg# dashes changed to underlines.
7858b22bf3fSmrgcache_file=/dev/null
7868b22bf3fSmrgexec_prefix=NONE
7878b22bf3fSmrgno_create=
7888b22bf3fSmrgno_recursion=
7898b22bf3fSmrgprefix=NONE
7908b22bf3fSmrgprogram_prefix=NONE
7918b22bf3fSmrgprogram_suffix=NONE
7928b22bf3fSmrgprogram_transform_name=s,x,x,
7938b22bf3fSmrgsilent=
7948b22bf3fSmrgsite=
7958b22bf3fSmrgsrcdir=
7968b22bf3fSmrgverbose=
7978b22bf3fSmrgx_includes=NONE
7988b22bf3fSmrgx_libraries=NONE
7998b22bf3fSmrg
8008b22bf3fSmrg# Installation directory options.
8018b22bf3fSmrg# These are left unexpanded so users can "make install exec_prefix=/foo"
8028b22bf3fSmrg# and all the variables that are supposed to be based on exec_prefix
8038b22bf3fSmrg# by default will actually change.
8048b22bf3fSmrg# Use braces instead of parens because sh, perl, etc. also accept them.
8058b22bf3fSmrg# (The list follows the same order as the GNU Coding Standards.)
8068b22bf3fSmrgbindir='${exec_prefix}/bin'
8078b22bf3fSmrgsbindir='${exec_prefix}/sbin'
8088b22bf3fSmrglibexecdir='${exec_prefix}/libexec'
8098b22bf3fSmrgdatarootdir='${prefix}/share'
8108b22bf3fSmrgdatadir='${datarootdir}'
8118b22bf3fSmrgsysconfdir='${prefix}/etc'
8128b22bf3fSmrgsharedstatedir='${prefix}/com'
8138b22bf3fSmrglocalstatedir='${prefix}/var'
8148b22bf3fSmrgincludedir='${prefix}/include'
8158b22bf3fSmrgoldincludedir='/usr/include'
8168b22bf3fSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
8178b22bf3fSmrginfodir='${datarootdir}/info'
8188b22bf3fSmrghtmldir='${docdir}'
8198b22bf3fSmrgdvidir='${docdir}'
8208b22bf3fSmrgpdfdir='${docdir}'
8218b22bf3fSmrgpsdir='${docdir}'
8228b22bf3fSmrglibdir='${exec_prefix}/lib'
8238b22bf3fSmrglocaledir='${datarootdir}/locale'
8248b22bf3fSmrgmandir='${datarootdir}/man'
8258b22bf3fSmrg
8268b22bf3fSmrgac_prev=
8278b22bf3fSmrgac_dashdash=
8288b22bf3fSmrgfor ac_option
8298b22bf3fSmrgdo
8308b22bf3fSmrg  # If the previous option needs an argument, assign it.
8318b22bf3fSmrg  if test -n "$ac_prev"; then
8328b22bf3fSmrg    eval $ac_prev=\$ac_option
8338b22bf3fSmrg    ac_prev=
8348b22bf3fSmrg    continue
8358b22bf3fSmrg  fi
8368b22bf3fSmrg
8378b22bf3fSmrg  case $ac_option in
8388b22bf3fSmrg  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
8398b22bf3fSmrg  *)	ac_optarg=yes ;;
8408b22bf3fSmrg  esac
8418b22bf3fSmrg
8428b22bf3fSmrg  # Accept the important Cygnus configure options, so we can diagnose typos.
8438b22bf3fSmrg
8448b22bf3fSmrg  case $ac_dashdash$ac_option in
8458b22bf3fSmrg  --)
8468b22bf3fSmrg    ac_dashdash=yes ;;
8478b22bf3fSmrg
8488b22bf3fSmrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
8498b22bf3fSmrg    ac_prev=bindir ;;
8508b22bf3fSmrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
8518b22bf3fSmrg    bindir=$ac_optarg ;;
8528b22bf3fSmrg
8538b22bf3fSmrg  -build | --build | --buil | --bui | --bu)
8548b22bf3fSmrg    ac_prev=build_alias ;;
8558b22bf3fSmrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
8568b22bf3fSmrg    build_alias=$ac_optarg ;;
8578b22bf3fSmrg
8588b22bf3fSmrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
8598b22bf3fSmrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8608b22bf3fSmrg    ac_prev=cache_file ;;
8618b22bf3fSmrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8628b22bf3fSmrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8638b22bf3fSmrg    cache_file=$ac_optarg ;;
8648b22bf3fSmrg
8658b22bf3fSmrg  --config-cache | -C)
8668b22bf3fSmrg    cache_file=config.cache ;;
8678b22bf3fSmrg
8688b22bf3fSmrg  -datadir | --datadir | --datadi | --datad)
8698b22bf3fSmrg    ac_prev=datadir ;;
8708b22bf3fSmrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
8718b22bf3fSmrg    datadir=$ac_optarg ;;
8728b22bf3fSmrg
8738b22bf3fSmrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
8748b22bf3fSmrg  | --dataroo | --dataro | --datar)
8758b22bf3fSmrg    ac_prev=datarootdir ;;
8768b22bf3fSmrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
8778b22bf3fSmrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
8788b22bf3fSmrg    datarootdir=$ac_optarg ;;
8798b22bf3fSmrg
8808b22bf3fSmrg  -disable-* | --disable-*)
88196a81b41Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
8828b22bf3fSmrg    # Reject names that are not valid shell variable names.
88396a81b41Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
88496a81b41Smrg      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
8858b22bf3fSmrg   { (exit 1); exit 1; }; }
88696a81b41Smrg    ac_useropt_orig=$ac_useropt
88796a81b41Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
88896a81b41Smrg    case $ac_user_opts in
88996a81b41Smrg      *"
89096a81b41Smrg"enable_$ac_useropt"
89196a81b41Smrg"*) ;;
89296a81b41Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
89396a81b41Smrg	 ac_unrecognized_sep=', ';;
89496a81b41Smrg    esac
89596a81b41Smrg    eval enable_$ac_useropt=no ;;
8968b22bf3fSmrg
8978b22bf3fSmrg  -docdir | --docdir | --docdi | --doc | --do)
8988b22bf3fSmrg    ac_prev=docdir ;;
8998b22bf3fSmrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
9008b22bf3fSmrg    docdir=$ac_optarg ;;
9018b22bf3fSmrg
9028b22bf3fSmrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
9038b22bf3fSmrg    ac_prev=dvidir ;;
9048b22bf3fSmrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
9058b22bf3fSmrg    dvidir=$ac_optarg ;;
9068b22bf3fSmrg
9078b22bf3fSmrg  -enable-* | --enable-*)
90896a81b41Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
9098b22bf3fSmrg    # Reject names that are not valid shell variable names.
91096a81b41Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
91196a81b41Smrg      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
9128b22bf3fSmrg   { (exit 1); exit 1; }; }
91396a81b41Smrg    ac_useropt_orig=$ac_useropt
91496a81b41Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
91596a81b41Smrg    case $ac_user_opts in
91696a81b41Smrg      *"
91796a81b41Smrg"enable_$ac_useropt"
91896a81b41Smrg"*) ;;
91996a81b41Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
92096a81b41Smrg	 ac_unrecognized_sep=', ';;
92196a81b41Smrg    esac
92296a81b41Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
9238b22bf3fSmrg
9248b22bf3fSmrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
9258b22bf3fSmrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
9268b22bf3fSmrg  | --exec | --exe | --ex)
9278b22bf3fSmrg    ac_prev=exec_prefix ;;
9288b22bf3fSmrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
9298b22bf3fSmrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
9308b22bf3fSmrg  | --exec=* | --exe=* | --ex=*)
9318b22bf3fSmrg    exec_prefix=$ac_optarg ;;
9328b22bf3fSmrg
9338b22bf3fSmrg  -gas | --gas | --ga | --g)
9348b22bf3fSmrg    # Obsolete; use --with-gas.
9358b22bf3fSmrg    with_gas=yes ;;
9368b22bf3fSmrg
9378b22bf3fSmrg  -help | --help | --hel | --he | -h)
9388b22bf3fSmrg    ac_init_help=long ;;
9398b22bf3fSmrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
9408b22bf3fSmrg    ac_init_help=recursive ;;
9418b22bf3fSmrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
9428b22bf3fSmrg    ac_init_help=short ;;
9438b22bf3fSmrg
9448b22bf3fSmrg  -host | --host | --hos | --ho)
9458b22bf3fSmrg    ac_prev=host_alias ;;
9468b22bf3fSmrg  -host=* | --host=* | --hos=* | --ho=*)
9478b22bf3fSmrg    host_alias=$ac_optarg ;;
9488b22bf3fSmrg
9498b22bf3fSmrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
9508b22bf3fSmrg    ac_prev=htmldir ;;
9518b22bf3fSmrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
9528b22bf3fSmrg  | --ht=*)
9538b22bf3fSmrg    htmldir=$ac_optarg ;;
9548b22bf3fSmrg
9558b22bf3fSmrg  -includedir | --includedir | --includedi | --included | --include \
9568b22bf3fSmrg  | --includ | --inclu | --incl | --inc)
9578b22bf3fSmrg    ac_prev=includedir ;;
9588b22bf3fSmrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
9598b22bf3fSmrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
9608b22bf3fSmrg    includedir=$ac_optarg ;;
9618b22bf3fSmrg
9628b22bf3fSmrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
9638b22bf3fSmrg    ac_prev=infodir ;;
9648b22bf3fSmrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
9658b22bf3fSmrg    infodir=$ac_optarg ;;
9668b22bf3fSmrg
9678b22bf3fSmrg  -libdir | --libdir | --libdi | --libd)
9688b22bf3fSmrg    ac_prev=libdir ;;
9698b22bf3fSmrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
9708b22bf3fSmrg    libdir=$ac_optarg ;;
9718b22bf3fSmrg
9728b22bf3fSmrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
9738b22bf3fSmrg  | --libexe | --libex | --libe)
9748b22bf3fSmrg    ac_prev=libexecdir ;;
9758b22bf3fSmrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
9768b22bf3fSmrg  | --libexe=* | --libex=* | --libe=*)
9778b22bf3fSmrg    libexecdir=$ac_optarg ;;
9788b22bf3fSmrg
9798b22bf3fSmrg  -localedir | --localedir | --localedi | --localed | --locale)
9808b22bf3fSmrg    ac_prev=localedir ;;
9818b22bf3fSmrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
9828b22bf3fSmrg    localedir=$ac_optarg ;;
9838b22bf3fSmrg
9848b22bf3fSmrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
9858b22bf3fSmrg  | --localstate | --localstat | --localsta | --localst | --locals)
9868b22bf3fSmrg    ac_prev=localstatedir ;;
9878b22bf3fSmrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
9888b22bf3fSmrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
9898b22bf3fSmrg    localstatedir=$ac_optarg ;;
9908b22bf3fSmrg
9918b22bf3fSmrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
9928b22bf3fSmrg    ac_prev=mandir ;;
9938b22bf3fSmrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
9948b22bf3fSmrg    mandir=$ac_optarg ;;
9958b22bf3fSmrg
9968b22bf3fSmrg  -nfp | --nfp | --nf)
9978b22bf3fSmrg    # Obsolete; use --without-fp.
9988b22bf3fSmrg    with_fp=no ;;
9998b22bf3fSmrg
10008b22bf3fSmrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
10018b22bf3fSmrg  | --no-cr | --no-c | -n)
10028b22bf3fSmrg    no_create=yes ;;
10038b22bf3fSmrg
10048b22bf3fSmrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
10058b22bf3fSmrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
10068b22bf3fSmrg    no_recursion=yes ;;
10078b22bf3fSmrg
10088b22bf3fSmrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
10098b22bf3fSmrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
10108b22bf3fSmrg  | --oldin | --oldi | --old | --ol | --o)
10118b22bf3fSmrg    ac_prev=oldincludedir ;;
10128b22bf3fSmrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
10138b22bf3fSmrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
10148b22bf3fSmrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
10158b22bf3fSmrg    oldincludedir=$ac_optarg ;;
10168b22bf3fSmrg
10178b22bf3fSmrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10188b22bf3fSmrg    ac_prev=prefix ;;
10198b22bf3fSmrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10208b22bf3fSmrg    prefix=$ac_optarg ;;
10218b22bf3fSmrg
10228b22bf3fSmrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
10238b22bf3fSmrg  | --program-pre | --program-pr | --program-p)
10248b22bf3fSmrg    ac_prev=program_prefix ;;
10258b22bf3fSmrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
10268b22bf3fSmrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
10278b22bf3fSmrg    program_prefix=$ac_optarg ;;
10288b22bf3fSmrg
10298b22bf3fSmrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
10308b22bf3fSmrg  | --program-suf | --program-su | --program-s)
10318b22bf3fSmrg    ac_prev=program_suffix ;;
10328b22bf3fSmrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
10338b22bf3fSmrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
10348b22bf3fSmrg    program_suffix=$ac_optarg ;;
10358b22bf3fSmrg
10368b22bf3fSmrg  -program-transform-name | --program-transform-name \
10378b22bf3fSmrg  | --program-transform-nam | --program-transform-na \
10388b22bf3fSmrg  | --program-transform-n | --program-transform- \
10398b22bf3fSmrg  | --program-transform | --program-transfor \
10408b22bf3fSmrg  | --program-transfo | --program-transf \
10418b22bf3fSmrg  | --program-trans | --program-tran \
10428b22bf3fSmrg  | --progr-tra | --program-tr | --program-t)
10438b22bf3fSmrg    ac_prev=program_transform_name ;;
10448b22bf3fSmrg  -program-transform-name=* | --program-transform-name=* \
10458b22bf3fSmrg  | --program-transform-nam=* | --program-transform-na=* \
10468b22bf3fSmrg  | --program-transform-n=* | --program-transform-=* \
10478b22bf3fSmrg  | --program-transform=* | --program-transfor=* \
10488b22bf3fSmrg  | --program-transfo=* | --program-transf=* \
10498b22bf3fSmrg  | --program-trans=* | --program-tran=* \
10508b22bf3fSmrg  | --progr-tra=* | --program-tr=* | --program-t=*)
10518b22bf3fSmrg    program_transform_name=$ac_optarg ;;
10528b22bf3fSmrg
10538b22bf3fSmrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
10548b22bf3fSmrg    ac_prev=pdfdir ;;
10558b22bf3fSmrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
10568b22bf3fSmrg    pdfdir=$ac_optarg ;;
10578b22bf3fSmrg
10588b22bf3fSmrg  -psdir | --psdir | --psdi | --psd | --ps)
10598b22bf3fSmrg    ac_prev=psdir ;;
10608b22bf3fSmrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
10618b22bf3fSmrg    psdir=$ac_optarg ;;
10628b22bf3fSmrg
10638b22bf3fSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10648b22bf3fSmrg  | -silent | --silent | --silen | --sile | --sil)
10658b22bf3fSmrg    silent=yes ;;
10668b22bf3fSmrg
10678b22bf3fSmrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
10688b22bf3fSmrg    ac_prev=sbindir ;;
10698b22bf3fSmrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
10708b22bf3fSmrg  | --sbi=* | --sb=*)
10718b22bf3fSmrg    sbindir=$ac_optarg ;;
10728b22bf3fSmrg
10738b22bf3fSmrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
10748b22bf3fSmrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
10758b22bf3fSmrg  | --sharedst | --shareds | --shared | --share | --shar \
10768b22bf3fSmrg  | --sha | --sh)
10778b22bf3fSmrg    ac_prev=sharedstatedir ;;
10788b22bf3fSmrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
10798b22bf3fSmrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
10808b22bf3fSmrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
10818b22bf3fSmrg  | --sha=* | --sh=*)
10828b22bf3fSmrg    sharedstatedir=$ac_optarg ;;
10838b22bf3fSmrg
10848b22bf3fSmrg  -site | --site | --sit)
10858b22bf3fSmrg    ac_prev=site ;;
10868b22bf3fSmrg  -site=* | --site=* | --sit=*)
10878b22bf3fSmrg    site=$ac_optarg ;;
10888b22bf3fSmrg
10898b22bf3fSmrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10908b22bf3fSmrg    ac_prev=srcdir ;;
10918b22bf3fSmrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10928b22bf3fSmrg    srcdir=$ac_optarg ;;
10938b22bf3fSmrg
10948b22bf3fSmrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
10958b22bf3fSmrg  | --syscon | --sysco | --sysc | --sys | --sy)
10968b22bf3fSmrg    ac_prev=sysconfdir ;;
10978b22bf3fSmrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
10988b22bf3fSmrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
10998b22bf3fSmrg    sysconfdir=$ac_optarg ;;
11008b22bf3fSmrg
11018b22bf3fSmrg  -target | --target | --targe | --targ | --tar | --ta | --t)
11028b22bf3fSmrg    ac_prev=target_alias ;;
11038b22bf3fSmrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
11048b22bf3fSmrg    target_alias=$ac_optarg ;;
11058b22bf3fSmrg
11068b22bf3fSmrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
11078b22bf3fSmrg    verbose=yes ;;
11088b22bf3fSmrg
11098b22bf3fSmrg  -version | --version | --versio | --versi | --vers | -V)
11108b22bf3fSmrg    ac_init_version=: ;;
11118b22bf3fSmrg
11128b22bf3fSmrg  -with-* | --with-*)
111396a81b41Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
11148b22bf3fSmrg    # Reject names that are not valid shell variable names.
111596a81b41Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
111696a81b41Smrg      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
11178b22bf3fSmrg   { (exit 1); exit 1; }; }
111896a81b41Smrg    ac_useropt_orig=$ac_useropt
111996a81b41Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
112096a81b41Smrg    case $ac_user_opts in
112196a81b41Smrg      *"
112296a81b41Smrg"with_$ac_useropt"
112396a81b41Smrg"*) ;;
112496a81b41Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
112596a81b41Smrg	 ac_unrecognized_sep=', ';;
112696a81b41Smrg    esac
112796a81b41Smrg    eval with_$ac_useropt=\$ac_optarg ;;
11288b22bf3fSmrg
11298b22bf3fSmrg  -without-* | --without-*)
113096a81b41Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
11318b22bf3fSmrg    # Reject names that are not valid shell variable names.
113296a81b41Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
113396a81b41Smrg      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
11348b22bf3fSmrg   { (exit 1); exit 1; }; }
113596a81b41Smrg    ac_useropt_orig=$ac_useropt
113696a81b41Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
113796a81b41Smrg    case $ac_user_opts in
113896a81b41Smrg      *"
113996a81b41Smrg"with_$ac_useropt"
114096a81b41Smrg"*) ;;
114196a81b41Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
114296a81b41Smrg	 ac_unrecognized_sep=', ';;
114396a81b41Smrg    esac
114496a81b41Smrg    eval with_$ac_useropt=no ;;
11458b22bf3fSmrg
11468b22bf3fSmrg  --x)
11478b22bf3fSmrg    # Obsolete; use --with-x.
11488b22bf3fSmrg    with_x=yes ;;
11498b22bf3fSmrg
11508b22bf3fSmrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
11518b22bf3fSmrg  | --x-incl | --x-inc | --x-in | --x-i)
11528b22bf3fSmrg    ac_prev=x_includes ;;
11538b22bf3fSmrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
11548b22bf3fSmrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
11558b22bf3fSmrg    x_includes=$ac_optarg ;;
11568b22bf3fSmrg
11578b22bf3fSmrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
11588b22bf3fSmrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
11598b22bf3fSmrg    ac_prev=x_libraries ;;
11608b22bf3fSmrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
11618b22bf3fSmrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
11628b22bf3fSmrg    x_libraries=$ac_optarg ;;
11638b22bf3fSmrg
116496a81b41Smrg  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
11658b22bf3fSmrgTry \`$0 --help' for more information." >&2
11668b22bf3fSmrg   { (exit 1); exit 1; }; }
11678b22bf3fSmrg    ;;
11688b22bf3fSmrg
11698b22bf3fSmrg  *=*)
11708b22bf3fSmrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
11718b22bf3fSmrg    # Reject names that are not valid shell variable names.
11728b22bf3fSmrg    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
117396a81b41Smrg      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
11748b22bf3fSmrg   { (exit 1); exit 1; }; }
11758b22bf3fSmrg    eval $ac_envvar=\$ac_optarg
11768b22bf3fSmrg    export $ac_envvar ;;
11778b22bf3fSmrg
11788b22bf3fSmrg  *)
11798b22bf3fSmrg    # FIXME: should be removed in autoconf 3.0.
118096a81b41Smrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
11818b22bf3fSmrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
118296a81b41Smrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
11838b22bf3fSmrg    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
11848b22bf3fSmrg    ;;
11858b22bf3fSmrg
11868b22bf3fSmrg  esac
11878b22bf3fSmrgdone
11888b22bf3fSmrg
11898b22bf3fSmrgif test -n "$ac_prev"; then
11908b22bf3fSmrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
119196a81b41Smrg  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
11928b22bf3fSmrg   { (exit 1); exit 1; }; }
11938b22bf3fSmrgfi
11948b22bf3fSmrg
119596a81b41Smrgif test -n "$ac_unrecognized_opts"; then
119696a81b41Smrg  case $enable_option_checking in
119796a81b41Smrg    no) ;;
119896a81b41Smrg    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
119996a81b41Smrg   { (exit 1); exit 1; }; } ;;
120096a81b41Smrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
120196a81b41Smrg  esac
120296a81b41Smrgfi
120396a81b41Smrg
120496a81b41Smrg# Check all directory arguments for consistency.
12058b22bf3fSmrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
12068b22bf3fSmrg		datadir sysconfdir sharedstatedir localstatedir includedir \
12078b22bf3fSmrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
12088b22bf3fSmrg		libdir localedir mandir
12098b22bf3fSmrgdo
12108b22bf3fSmrg  eval ac_val=\$$ac_var
121196a81b41Smrg  # Remove trailing slashes.
121296a81b41Smrg  case $ac_val in
121396a81b41Smrg    */ )
121496a81b41Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
121596a81b41Smrg      eval $ac_var=\$ac_val;;
121696a81b41Smrg  esac
121796a81b41Smrg  # Be sure to have absolute directory names.
12188b22bf3fSmrg  case $ac_val in
12198b22bf3fSmrg    [\\/$]* | ?:[\\/]* )  continue;;
12208b22bf3fSmrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
12218b22bf3fSmrg  esac
122296a81b41Smrg  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
12238b22bf3fSmrg   { (exit 1); exit 1; }; }
12248b22bf3fSmrgdone
12258b22bf3fSmrg
12268b22bf3fSmrg# There might be people who depend on the old broken behavior: `$host'
12278b22bf3fSmrg# used to hold the argument of --host etc.
12288b22bf3fSmrg# FIXME: To remove some day.
12298b22bf3fSmrgbuild=$build_alias
12308b22bf3fSmrghost=$host_alias
12318b22bf3fSmrgtarget=$target_alias
12328b22bf3fSmrg
12338b22bf3fSmrg# FIXME: To remove some day.
12348b22bf3fSmrgif test "x$host_alias" != x; then
12358b22bf3fSmrg  if test "x$build_alias" = x; then
12368b22bf3fSmrg    cross_compiling=maybe
123796a81b41Smrg    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
12388b22bf3fSmrg    If a cross compiler is detected then cross compile mode will be used." >&2
12398b22bf3fSmrg  elif test "x$build_alias" != "x$host_alias"; then
12408b22bf3fSmrg    cross_compiling=yes
12418b22bf3fSmrg  fi
12428b22bf3fSmrgfi
12438b22bf3fSmrg
12448b22bf3fSmrgac_tool_prefix=
12458b22bf3fSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
12468b22bf3fSmrg
12478b22bf3fSmrgtest "$silent" = yes && exec 6>/dev/null
12488b22bf3fSmrg
12498b22bf3fSmrg
12508b22bf3fSmrgac_pwd=`pwd` && test -n "$ac_pwd" &&
12518b22bf3fSmrgac_ls_di=`ls -di .` &&
12528b22bf3fSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
125396a81b41Smrg  { $as_echo "$as_me: error: working directory cannot be determined" >&2
12548b22bf3fSmrg   { (exit 1); exit 1; }; }
12558b22bf3fSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
125696a81b41Smrg  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
12578b22bf3fSmrg   { (exit 1); exit 1; }; }
12588b22bf3fSmrg
12598b22bf3fSmrg
12608b22bf3fSmrg# Find the source files, if location was not specified.
12618b22bf3fSmrgif test -z "$srcdir"; then
12628b22bf3fSmrg  ac_srcdir_defaulted=yes
12638b22bf3fSmrg  # Try the directory containing this script, then the parent directory.
126496a81b41Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
126596a81b41Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
126696a81b41Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
126796a81b41Smrg	 X"$as_myself" : 'X\(//\)$' \| \
126896a81b41Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
126996a81b41Smrg$as_echo X"$as_myself" |
12708b22bf3fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12718b22bf3fSmrg	    s//\1/
12728b22bf3fSmrg	    q
12738b22bf3fSmrg	  }
12748b22bf3fSmrg	  /^X\(\/\/\)[^/].*/{
12758b22bf3fSmrg	    s//\1/
12768b22bf3fSmrg	    q
12778b22bf3fSmrg	  }
12788b22bf3fSmrg	  /^X\(\/\/\)$/{
12798b22bf3fSmrg	    s//\1/
12808b22bf3fSmrg	    q
12818b22bf3fSmrg	  }
12828b22bf3fSmrg	  /^X\(\/\).*/{
12838b22bf3fSmrg	    s//\1/
12848b22bf3fSmrg	    q
12858b22bf3fSmrg	  }
12868b22bf3fSmrg	  s/.*/./; q'`
12878b22bf3fSmrg  srcdir=$ac_confdir
12888b22bf3fSmrg  if test ! -r "$srcdir/$ac_unique_file"; then
12898b22bf3fSmrg    srcdir=..
12908b22bf3fSmrg  fi
12918b22bf3fSmrgelse
12928b22bf3fSmrg  ac_srcdir_defaulted=no
12938b22bf3fSmrgfi
12948b22bf3fSmrgif test ! -r "$srcdir/$ac_unique_file"; then
12958b22bf3fSmrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
129696a81b41Smrg  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
12978b22bf3fSmrg   { (exit 1); exit 1; }; }
12988b22bf3fSmrgfi
12998b22bf3fSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
13008b22bf3fSmrgac_abs_confdir=`(
130196a81b41Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
13028b22bf3fSmrg   { (exit 1); exit 1; }; }
13038b22bf3fSmrg	pwd)`
13048b22bf3fSmrg# When building in place, set srcdir=.
13058b22bf3fSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then
13068b22bf3fSmrg  srcdir=.
13078b22bf3fSmrgfi
13088b22bf3fSmrg# Remove unnecessary trailing slashes from srcdir.
13098b22bf3fSmrg# Double slashes in file names in object file debugging info
13108b22bf3fSmrg# mess up M-x gdb in Emacs.
13118b22bf3fSmrgcase $srcdir in
13128b22bf3fSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
13138b22bf3fSmrgesac
13148b22bf3fSmrgfor ac_var in $ac_precious_vars; do
13158b22bf3fSmrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
13168b22bf3fSmrg  eval ac_env_${ac_var}_value=\$${ac_var}
13178b22bf3fSmrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
13188b22bf3fSmrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
13198b22bf3fSmrgdone
13208b22bf3fSmrg
13218b22bf3fSmrg#
13228b22bf3fSmrg# Report the --help message.
13238b22bf3fSmrg#
13248b22bf3fSmrgif test "$ac_init_help" = "long"; then
13258b22bf3fSmrg  # Omit some internal or obsolete options to make the list less imposing.
13268b22bf3fSmrg  # This message is too long to be a string in the A/UX 3.1 sh.
13278b22bf3fSmrg  cat <<_ACEOF
132896a81b41Smrg\`configure' configures xrdb 1.0.6 to adapt to many kinds of systems.
13298b22bf3fSmrg
13308b22bf3fSmrgUsage: $0 [OPTION]... [VAR=VALUE]...
13318b22bf3fSmrg
13328b22bf3fSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
13338b22bf3fSmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
13348b22bf3fSmrg
13358b22bf3fSmrgDefaults for the options are specified in brackets.
13368b22bf3fSmrg
13378b22bf3fSmrgConfiguration:
13388b22bf3fSmrg  -h, --help              display this help and exit
13398b22bf3fSmrg      --help=short        display options specific to this package
13408b22bf3fSmrg      --help=recursive    display the short help of all the included packages
13418b22bf3fSmrg  -V, --version           display version information and exit
13428b22bf3fSmrg  -q, --quiet, --silent   do not print \`checking...' messages
13438b22bf3fSmrg      --cache-file=FILE   cache test results in FILE [disabled]
13448b22bf3fSmrg  -C, --config-cache      alias for \`--cache-file=config.cache'
13458b22bf3fSmrg  -n, --no-create         do not create output files
13468b22bf3fSmrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
13478b22bf3fSmrg
13488b22bf3fSmrgInstallation directories:
13498b22bf3fSmrg  --prefix=PREFIX         install architecture-independent files in PREFIX
135096a81b41Smrg                          [$ac_default_prefix]
13518b22bf3fSmrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
135296a81b41Smrg                          [PREFIX]
13538b22bf3fSmrg
13548b22bf3fSmrgBy default, \`make install' will install all the files in
13558b22bf3fSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
13568b22bf3fSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
13578b22bf3fSmrgfor instance \`--prefix=\$HOME'.
13588b22bf3fSmrg
13598b22bf3fSmrgFor better control, use the options below.
13608b22bf3fSmrg
13618b22bf3fSmrgFine tuning of the installation directories:
136296a81b41Smrg  --bindir=DIR            user executables [EPREFIX/bin]
136396a81b41Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
136496a81b41Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
136596a81b41Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
136696a81b41Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
136796a81b41Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
136896a81b41Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
136996a81b41Smrg  --includedir=DIR        C header files [PREFIX/include]
137096a81b41Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
137196a81b41Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
137296a81b41Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
137396a81b41Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
137496a81b41Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
137596a81b41Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
137696a81b41Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xrdb]
137796a81b41Smrg  --htmldir=DIR           html documentation [DOCDIR]
137896a81b41Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
137996a81b41Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
138096a81b41Smrg  --psdir=DIR             ps documentation [DOCDIR]
13818b22bf3fSmrg_ACEOF
13828b22bf3fSmrg
13838b22bf3fSmrg  cat <<\_ACEOF
13848b22bf3fSmrg
13858b22bf3fSmrgProgram names:
13868b22bf3fSmrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
13878b22bf3fSmrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
13888b22bf3fSmrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
13898b22bf3fSmrg
13908b22bf3fSmrgSystem types:
13918b22bf3fSmrg  --build=BUILD     configure for building on BUILD [guessed]
13928b22bf3fSmrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
13938b22bf3fSmrg_ACEOF
13948b22bf3fSmrgfi
13958b22bf3fSmrg
13968b22bf3fSmrgif test -n "$ac_init_help"; then
13978b22bf3fSmrg  case $ac_init_help in
139896a81b41Smrg     short | recursive ) echo "Configuration of xrdb 1.0.6:";;
13998b22bf3fSmrg   esac
14008b22bf3fSmrg  cat <<\_ACEOF
14018b22bf3fSmrg
14028b22bf3fSmrgOptional Features:
140396a81b41Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
14048b22bf3fSmrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
14058b22bf3fSmrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
14068b22bf3fSmrg  --enable-maintainer-mode  enable make rules and dependencies not useful
14078b22bf3fSmrg			  (and sometimes confusing) to the casual installer
14088b22bf3fSmrg  --disable-dependency-tracking  speeds up one-time build
14098b22bf3fSmrg  --enable-dependency-tracking   do not reject slow dependency extractors
141096a81b41Smrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
141196a81b41Smrg  --disable-silent-rules         verbose build output (undo: `make V=0')
141296a81b41Smrg  --enable-strict-compilation
141396a81b41Smrg                          Enable all warnings from compiler and make them
141496a81b41Smrg                          errors (default: disabled)
14158b22bf3fSmrg
14168b22bf3fSmrgOptional Packages:
14178b22bf3fSmrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
14188b22bf3fSmrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
14198b22bf3fSmrg  --with-release-version=STRING
14208b22bf3fSmrg                          Use release version string in package name
142196a81b41Smrg  --with-cpp=path         comma-separated list of paths to cpp command for
142296a81b41Smrg                          xrdb to use at runtime
14238b22bf3fSmrg
14248b22bf3fSmrgSome influential environment variables:
14258b22bf3fSmrg  CC          C compiler command
14268b22bf3fSmrg  CFLAGS      C compiler flags
14278b22bf3fSmrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
14288b22bf3fSmrg              nonstandard directory <lib dir>
14298b22bf3fSmrg  LIBS        libraries to pass to the linker, e.g. -l<library>
14308b22bf3fSmrg  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
14318b22bf3fSmrg              you have headers in a nonstandard directory <include dir>
14328b22bf3fSmrg  CPP         C preprocessor
14338b22bf3fSmrg  PKG_CONFIG  path to pkg-config utility
14348b22bf3fSmrg  XRDB_CFLAGS C compiler flags for XRDB, overriding pkg-config
14358b22bf3fSmrg  XRDB_LIBS   linker flags for XRDB, overriding pkg-config
14368b22bf3fSmrg
14378b22bf3fSmrgUse these variables to override the choices made by `configure' or to help
14388b22bf3fSmrgit to find libraries and programs with nonstandard names/locations.
14398b22bf3fSmrg
14408b22bf3fSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
14418b22bf3fSmrg_ACEOF
14428b22bf3fSmrgac_status=$?
14438b22bf3fSmrgfi
14448b22bf3fSmrg
14458b22bf3fSmrgif test "$ac_init_help" = "recursive"; then
14468b22bf3fSmrg  # If there are subdirs, report their specific --help.
14478b22bf3fSmrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
144896a81b41Smrg    test -d "$ac_dir" ||
144996a81b41Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
145096a81b41Smrg      continue
14518b22bf3fSmrg    ac_builddir=.
14528b22bf3fSmrg
14538b22bf3fSmrgcase "$ac_dir" in
14548b22bf3fSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14558b22bf3fSmrg*)
145696a81b41Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14578b22bf3fSmrg  # A ".." for each directory in $ac_dir_suffix.
145896a81b41Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14598b22bf3fSmrg  case $ac_top_builddir_sub in
14608b22bf3fSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14618b22bf3fSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14628b22bf3fSmrg  esac ;;
14638b22bf3fSmrgesac
14648b22bf3fSmrgac_abs_top_builddir=$ac_pwd
14658b22bf3fSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
14668b22bf3fSmrg# for backward compatibility:
14678b22bf3fSmrgac_top_builddir=$ac_top_build_prefix
14688b22bf3fSmrg
14698b22bf3fSmrgcase $srcdir in
14708b22bf3fSmrg  .)  # We are building in place.
14718b22bf3fSmrg    ac_srcdir=.
14728b22bf3fSmrg    ac_top_srcdir=$ac_top_builddir_sub
14738b22bf3fSmrg    ac_abs_top_srcdir=$ac_pwd ;;
14748b22bf3fSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
14758b22bf3fSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
14768b22bf3fSmrg    ac_top_srcdir=$srcdir
14778b22bf3fSmrg    ac_abs_top_srcdir=$srcdir ;;
14788b22bf3fSmrg  *) # Relative name.
14798b22bf3fSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14808b22bf3fSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
14818b22bf3fSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14828b22bf3fSmrgesac
14838b22bf3fSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14848b22bf3fSmrg
14858b22bf3fSmrg    cd "$ac_dir" || { ac_status=$?; continue; }
14868b22bf3fSmrg    # Check for guested configure.
14878b22bf3fSmrg    if test -f "$ac_srcdir/configure.gnu"; then
14888b22bf3fSmrg      echo &&
14898b22bf3fSmrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
14908b22bf3fSmrg    elif test -f "$ac_srcdir/configure"; then
14918b22bf3fSmrg      echo &&
14928b22bf3fSmrg      $SHELL "$ac_srcdir/configure" --help=recursive
14938b22bf3fSmrg    else
149496a81b41Smrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
14958b22bf3fSmrg    fi || ac_status=$?
14968b22bf3fSmrg    cd "$ac_pwd" || { ac_status=$?; break; }
14978b22bf3fSmrg  done
14988b22bf3fSmrgfi
14998b22bf3fSmrg
15008b22bf3fSmrgtest -n "$ac_init_help" && exit $ac_status
15018b22bf3fSmrgif $ac_init_version; then
15028b22bf3fSmrg  cat <<\_ACEOF
150396a81b41Smrgxrdb configure 1.0.6
150496a81b41Smrggenerated by GNU Autoconf 2.63
15058b22bf3fSmrg
15068b22bf3fSmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
150796a81b41Smrg2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
15088b22bf3fSmrgThis configure script is free software; the Free Software Foundation
15098b22bf3fSmrggives unlimited permission to copy, distribute and modify it.
15108b22bf3fSmrg_ACEOF
15118b22bf3fSmrg  exit
15128b22bf3fSmrgfi
15138b22bf3fSmrgcat >config.log <<_ACEOF
15148b22bf3fSmrgThis file contains any messages produced by compilers while
15158b22bf3fSmrgrunning configure, to aid debugging if configure makes a mistake.
15168b22bf3fSmrg
151796a81b41SmrgIt was created by xrdb $as_me 1.0.6, which was
151896a81b41Smrggenerated by GNU Autoconf 2.63.  Invocation command line was
15198b22bf3fSmrg
15208b22bf3fSmrg  $ $0 $@
15218b22bf3fSmrg
15228b22bf3fSmrg_ACEOF
15238b22bf3fSmrgexec 5>>config.log
15248b22bf3fSmrg{
15258b22bf3fSmrgcat <<_ASUNAME
15268b22bf3fSmrg## --------- ##
15278b22bf3fSmrg## Platform. ##
15288b22bf3fSmrg## --------- ##
15298b22bf3fSmrg
15308b22bf3fSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
15318b22bf3fSmrguname -m = `(uname -m) 2>/dev/null || echo unknown`
15328b22bf3fSmrguname -r = `(uname -r) 2>/dev/null || echo unknown`
15338b22bf3fSmrguname -s = `(uname -s) 2>/dev/null || echo unknown`
15348b22bf3fSmrguname -v = `(uname -v) 2>/dev/null || echo unknown`
15358b22bf3fSmrg
15368b22bf3fSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
15378b22bf3fSmrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
15388b22bf3fSmrg
15398b22bf3fSmrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
15408b22bf3fSmrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
15418b22bf3fSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
15428b22bf3fSmrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
15438b22bf3fSmrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
15448b22bf3fSmrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
15458b22bf3fSmrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
15468b22bf3fSmrg
15478b22bf3fSmrg_ASUNAME
15488b22bf3fSmrg
15498b22bf3fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15508b22bf3fSmrgfor as_dir in $PATH
15518b22bf3fSmrgdo
15528b22bf3fSmrg  IFS=$as_save_IFS
15538b22bf3fSmrg  test -z "$as_dir" && as_dir=.
155496a81b41Smrg  $as_echo "PATH: $as_dir"
15558b22bf3fSmrgdone
15568b22bf3fSmrgIFS=$as_save_IFS
15578b22bf3fSmrg
15588b22bf3fSmrg} >&5
15598b22bf3fSmrg
15608b22bf3fSmrgcat >&5 <<_ACEOF
15618b22bf3fSmrg
15628b22bf3fSmrg
15638b22bf3fSmrg## ----------- ##
15648b22bf3fSmrg## Core tests. ##
15658b22bf3fSmrg## ----------- ##
15668b22bf3fSmrg
15678b22bf3fSmrg_ACEOF
15688b22bf3fSmrg
15698b22bf3fSmrg
15708b22bf3fSmrg# Keep a trace of the command line.
15718b22bf3fSmrg# Strip out --no-create and --no-recursion so they do not pile up.
15728b22bf3fSmrg# Strip out --silent because we don't want to record it for future runs.
15738b22bf3fSmrg# Also quote any args containing shell meta-characters.
15748b22bf3fSmrg# Make two passes to allow for proper duplicate-argument suppression.
15758b22bf3fSmrgac_configure_args=
15768b22bf3fSmrgac_configure_args0=
15778b22bf3fSmrgac_configure_args1=
15788b22bf3fSmrgac_must_keep_next=false
15798b22bf3fSmrgfor ac_pass in 1 2
15808b22bf3fSmrgdo
15818b22bf3fSmrg  for ac_arg
15828b22bf3fSmrg  do
15838b22bf3fSmrg    case $ac_arg in
15848b22bf3fSmrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
15858b22bf3fSmrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15868b22bf3fSmrg    | -silent | --silent | --silen | --sile | --sil)
15878b22bf3fSmrg      continue ;;
15888b22bf3fSmrg    *\'*)
158996a81b41Smrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15908b22bf3fSmrg    esac
15918b22bf3fSmrg    case $ac_pass in
15928b22bf3fSmrg    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
15938b22bf3fSmrg    2)
15948b22bf3fSmrg      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
15958b22bf3fSmrg      if test $ac_must_keep_next = true; then
15968b22bf3fSmrg	ac_must_keep_next=false # Got value, back to normal.
15978b22bf3fSmrg      else
15988b22bf3fSmrg	case $ac_arg in
15998b22bf3fSmrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
16008b22bf3fSmrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
16018b22bf3fSmrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
16028b22bf3fSmrg	  | -with-* | --with-* | -without-* | --without-* | --x)
16038b22bf3fSmrg	    case "$ac_configure_args0 " in
16048b22bf3fSmrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
16058b22bf3fSmrg	    esac
16068b22bf3fSmrg	    ;;
16078b22bf3fSmrg	  -* ) ac_must_keep_next=true ;;
16088b22bf3fSmrg	esac
16098b22bf3fSmrg      fi
16108b22bf3fSmrg      ac_configure_args="$ac_configure_args '$ac_arg'"
16118b22bf3fSmrg      ;;
16128b22bf3fSmrg    esac
16138b22bf3fSmrg  done
16148b22bf3fSmrgdone
16158b22bf3fSmrg$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
16168b22bf3fSmrg$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
16178b22bf3fSmrg
16188b22bf3fSmrg# When interrupted or exit'd, cleanup temporary files, and complete
16198b22bf3fSmrg# config.log.  We remove comments because anyway the quotes in there
16208b22bf3fSmrg# would cause problems or look ugly.
16218b22bf3fSmrg# WARNING: Use '\'' to represent an apostrophe within the trap.
16228b22bf3fSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
16238b22bf3fSmrgtrap 'exit_status=$?
16248b22bf3fSmrg  # Save into config.log some information that might help in debugging.
16258b22bf3fSmrg  {
16268b22bf3fSmrg    echo
16278b22bf3fSmrg
16288b22bf3fSmrg    cat <<\_ASBOX
16298b22bf3fSmrg## ---------------- ##
16308b22bf3fSmrg## Cache variables. ##
16318b22bf3fSmrg## ---------------- ##
16328b22bf3fSmrg_ASBOX
16338b22bf3fSmrg    echo
16348b22bf3fSmrg    # The following way of writing the cache mishandles newlines in values,
16358b22bf3fSmrg(
16368b22bf3fSmrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
16378b22bf3fSmrg    eval ac_val=\$$ac_var
16388b22bf3fSmrg    case $ac_val in #(
16398b22bf3fSmrg    *${as_nl}*)
16408b22bf3fSmrg      case $ac_var in #(
164196a81b41Smrg      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
164296a81b41Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16438b22bf3fSmrg      esac
16448b22bf3fSmrg      case $ac_var in #(
16458b22bf3fSmrg      _ | IFS | as_nl) ;; #(
164696a81b41Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16478b22bf3fSmrg      *) $as_unset $ac_var ;;
16488b22bf3fSmrg      esac ;;
16498b22bf3fSmrg    esac
16508b22bf3fSmrg  done
16518b22bf3fSmrg  (set) 2>&1 |
16528b22bf3fSmrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
16538b22bf3fSmrg    *${as_nl}ac_space=\ *)
16548b22bf3fSmrg      sed -n \
16558b22bf3fSmrg	"s/'\''/'\''\\\\'\'''\''/g;
16568b22bf3fSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
16578b22bf3fSmrg      ;; #(
16588b22bf3fSmrg    *)
16598b22bf3fSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16608b22bf3fSmrg      ;;
16618b22bf3fSmrg    esac |
16628b22bf3fSmrg    sort
16638b22bf3fSmrg)
16648b22bf3fSmrg    echo
16658b22bf3fSmrg
16668b22bf3fSmrg    cat <<\_ASBOX
16678b22bf3fSmrg## ----------------- ##
16688b22bf3fSmrg## Output variables. ##
16698b22bf3fSmrg## ----------------- ##
16708b22bf3fSmrg_ASBOX
16718b22bf3fSmrg    echo
16728b22bf3fSmrg    for ac_var in $ac_subst_vars
16738b22bf3fSmrg    do
16748b22bf3fSmrg      eval ac_val=\$$ac_var
16758b22bf3fSmrg      case $ac_val in
167696a81b41Smrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
16778b22bf3fSmrg      esac
167896a81b41Smrg      $as_echo "$ac_var='\''$ac_val'\''"
16798b22bf3fSmrg    done | sort
16808b22bf3fSmrg    echo
16818b22bf3fSmrg
16828b22bf3fSmrg    if test -n "$ac_subst_files"; then
16838b22bf3fSmrg      cat <<\_ASBOX
16848b22bf3fSmrg## ------------------- ##
16858b22bf3fSmrg## File substitutions. ##
16868b22bf3fSmrg## ------------------- ##
16878b22bf3fSmrg_ASBOX
16888b22bf3fSmrg      echo
16898b22bf3fSmrg      for ac_var in $ac_subst_files
16908b22bf3fSmrg      do
16918b22bf3fSmrg	eval ac_val=\$$ac_var
16928b22bf3fSmrg	case $ac_val in
169396a81b41Smrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
16948b22bf3fSmrg	esac
169596a81b41Smrg	$as_echo "$ac_var='\''$ac_val'\''"
16968b22bf3fSmrg      done | sort
16978b22bf3fSmrg      echo
16988b22bf3fSmrg    fi
16998b22bf3fSmrg
17008b22bf3fSmrg    if test -s confdefs.h; then
17018b22bf3fSmrg      cat <<\_ASBOX
17028b22bf3fSmrg## ----------- ##
17038b22bf3fSmrg## confdefs.h. ##
17048b22bf3fSmrg## ----------- ##
17058b22bf3fSmrg_ASBOX
17068b22bf3fSmrg      echo
17078b22bf3fSmrg      cat confdefs.h
17088b22bf3fSmrg      echo
17098b22bf3fSmrg    fi
17108b22bf3fSmrg    test "$ac_signal" != 0 &&
171196a81b41Smrg      $as_echo "$as_me: caught signal $ac_signal"
171296a81b41Smrg    $as_echo "$as_me: exit $exit_status"
17138b22bf3fSmrg  } >&5
17148b22bf3fSmrg  rm -f core *.core core.conftest.* &&
17158b22bf3fSmrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
17168b22bf3fSmrg    exit $exit_status
17178b22bf3fSmrg' 0
17188b22bf3fSmrgfor ac_signal in 1 2 13 15; do
17198b22bf3fSmrg  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
17208b22bf3fSmrgdone
17218b22bf3fSmrgac_signal=0
17228b22bf3fSmrg
17238b22bf3fSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
17248b22bf3fSmrgrm -f -r conftest* confdefs.h
17258b22bf3fSmrg
17268b22bf3fSmrg# Predefined preprocessor variables.
17278b22bf3fSmrg
17288b22bf3fSmrgcat >>confdefs.h <<_ACEOF
17298b22bf3fSmrg#define PACKAGE_NAME "$PACKAGE_NAME"
17308b22bf3fSmrg_ACEOF
17318b22bf3fSmrg
17328b22bf3fSmrg
17338b22bf3fSmrgcat >>confdefs.h <<_ACEOF
17348b22bf3fSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
17358b22bf3fSmrg_ACEOF
17368b22bf3fSmrg
17378b22bf3fSmrg
17388b22bf3fSmrgcat >>confdefs.h <<_ACEOF
17398b22bf3fSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
17408b22bf3fSmrg_ACEOF
17418b22bf3fSmrg
17428b22bf3fSmrg
17438b22bf3fSmrgcat >>confdefs.h <<_ACEOF
17448b22bf3fSmrg#define PACKAGE_STRING "$PACKAGE_STRING"
17458b22bf3fSmrg_ACEOF
17468b22bf3fSmrg
17478b22bf3fSmrg
17488b22bf3fSmrgcat >>confdefs.h <<_ACEOF
17498b22bf3fSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
17508b22bf3fSmrg_ACEOF
17518b22bf3fSmrg
17528b22bf3fSmrg
17538b22bf3fSmrg# Let the site file select an alternate cache file if it wants to.
175496a81b41Smrg# Prefer an explicitly selected file to automatically selected ones.
175596a81b41Smrgac_site_file1=NONE
175696a81b41Smrgac_site_file2=NONE
17578b22bf3fSmrgif test -n "$CONFIG_SITE"; then
175896a81b41Smrg  ac_site_file1=$CONFIG_SITE
17598b22bf3fSmrgelif test "x$prefix" != xNONE; then
176096a81b41Smrg  ac_site_file1=$prefix/share/config.site
176196a81b41Smrg  ac_site_file2=$prefix/etc/config.site
17628b22bf3fSmrgelse
176396a81b41Smrg  ac_site_file1=$ac_default_prefix/share/config.site
176496a81b41Smrg  ac_site_file2=$ac_default_prefix/etc/config.site
17658b22bf3fSmrgfi
176696a81b41Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
17678b22bf3fSmrgdo
176896a81b41Smrg  test "x$ac_site_file" = xNONE && continue
17698b22bf3fSmrg  if test -r "$ac_site_file"; then
177096a81b41Smrg    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
177196a81b41Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
17728b22bf3fSmrg    sed 's/^/| /' "$ac_site_file" >&5
17738b22bf3fSmrg    . "$ac_site_file"
17748b22bf3fSmrg  fi
17758b22bf3fSmrgdone
17768b22bf3fSmrg
17778b22bf3fSmrgif test -r "$cache_file"; then
17788b22bf3fSmrg  # Some versions of bash will fail to source /dev/null (special
17798b22bf3fSmrg  # files actually), so we avoid doing that.
17808b22bf3fSmrg  if test -f "$cache_file"; then
178196a81b41Smrg    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
178296a81b41Smrg$as_echo "$as_me: loading cache $cache_file" >&6;}
17838b22bf3fSmrg    case $cache_file in
17848b22bf3fSmrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
17858b22bf3fSmrg      *)                      . "./$cache_file";;
17868b22bf3fSmrg    esac
17878b22bf3fSmrg  fi
17888b22bf3fSmrgelse
178996a81b41Smrg  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
179096a81b41Smrg$as_echo "$as_me: creating cache $cache_file" >&6;}
17918b22bf3fSmrg  >$cache_file
17928b22bf3fSmrgfi
17938b22bf3fSmrg
17948b22bf3fSmrg# Check that the precious variables saved in the cache have kept the same
17958b22bf3fSmrg# value.
17968b22bf3fSmrgac_cache_corrupted=false
17978b22bf3fSmrgfor ac_var in $ac_precious_vars; do
17988b22bf3fSmrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
17998b22bf3fSmrg  eval ac_new_set=\$ac_env_${ac_var}_set
18008b22bf3fSmrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
18018b22bf3fSmrg  eval ac_new_val=\$ac_env_${ac_var}_value
18028b22bf3fSmrg  case $ac_old_set,$ac_new_set in
18038b22bf3fSmrg    set,)
180496a81b41Smrg      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
180596a81b41Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
18068b22bf3fSmrg      ac_cache_corrupted=: ;;
18078b22bf3fSmrg    ,set)
180896a81b41Smrg      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
180996a81b41Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
18108b22bf3fSmrg      ac_cache_corrupted=: ;;
18118b22bf3fSmrg    ,);;
18128b22bf3fSmrg    *)
18138b22bf3fSmrg      if test "x$ac_old_val" != "x$ac_new_val"; then
181496a81b41Smrg	# differences in whitespace do not lead to failure.
181596a81b41Smrg	ac_old_val_w=`echo x $ac_old_val`
181696a81b41Smrg	ac_new_val_w=`echo x $ac_new_val`
181796a81b41Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
181896a81b41Smrg	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
181996a81b41Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
182096a81b41Smrg	  ac_cache_corrupted=:
182196a81b41Smrg	else
182296a81b41Smrg	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
182396a81b41Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
182496a81b41Smrg	  eval $ac_var=\$ac_old_val
182596a81b41Smrg	fi
182696a81b41Smrg	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
182796a81b41Smrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
182896a81b41Smrg	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
182996a81b41Smrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
18308b22bf3fSmrg      fi;;
18318b22bf3fSmrg  esac
18328b22bf3fSmrg  # Pass precious variables to config.status.
18338b22bf3fSmrg  if test "$ac_new_set" = set; then
18348b22bf3fSmrg    case $ac_new_val in
183596a81b41Smrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
18368b22bf3fSmrg    *) ac_arg=$ac_var=$ac_new_val ;;
18378b22bf3fSmrg    esac
18388b22bf3fSmrg    case " $ac_configure_args " in
18398b22bf3fSmrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
18408b22bf3fSmrg      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
18418b22bf3fSmrg    esac
18428b22bf3fSmrg  fi
18438b22bf3fSmrgdone
18448b22bf3fSmrgif $ac_cache_corrupted; then
184596a81b41Smrg  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
184696a81b41Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
184796a81b41Smrg  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
184896a81b41Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
184996a81b41Smrg  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
185096a81b41Smrg$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
18518b22bf3fSmrg   { (exit 1); exit 1; }; }
18528b22bf3fSmrgfi
18538b22bf3fSmrg
18548b22bf3fSmrg
18558b22bf3fSmrg
18568b22bf3fSmrg
18578b22bf3fSmrg
18588b22bf3fSmrg
18598b22bf3fSmrg
18608b22bf3fSmrg
18618b22bf3fSmrg
18628b22bf3fSmrg
18638b22bf3fSmrg
18648b22bf3fSmrg
18658b22bf3fSmrg
18668b22bf3fSmrg
18678b22bf3fSmrg
18688b22bf3fSmrg
18698b22bf3fSmrg
18708b22bf3fSmrg
18718b22bf3fSmrg
18728b22bf3fSmrg
18738b22bf3fSmrg
18748b22bf3fSmrg
18758b22bf3fSmrg
18768b22bf3fSmrg
18778b22bf3fSmrg
18788b22bf3fSmrgac_ext=c
18798b22bf3fSmrgac_cpp='$CPP $CPPFLAGS'
18808b22bf3fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18818b22bf3fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18828b22bf3fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
18838b22bf3fSmrg
18848b22bf3fSmrg
188596a81b41Smrgam__api_version='1.11'
18868b22bf3fSmrg
18878b22bf3fSmrgac_aux_dir=
18888b22bf3fSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
18898b22bf3fSmrg  if test -f "$ac_dir/install-sh"; then
18908b22bf3fSmrg    ac_aux_dir=$ac_dir
18918b22bf3fSmrg    ac_install_sh="$ac_aux_dir/install-sh -c"
18928b22bf3fSmrg    break
18938b22bf3fSmrg  elif test -f "$ac_dir/install.sh"; then
18948b22bf3fSmrg    ac_aux_dir=$ac_dir
18958b22bf3fSmrg    ac_install_sh="$ac_aux_dir/install.sh -c"
18968b22bf3fSmrg    break
18978b22bf3fSmrg  elif test -f "$ac_dir/shtool"; then
18988b22bf3fSmrg    ac_aux_dir=$ac_dir
18998b22bf3fSmrg    ac_install_sh="$ac_aux_dir/shtool install -c"
19008b22bf3fSmrg    break
19018b22bf3fSmrg  fi
19028b22bf3fSmrgdone
19038b22bf3fSmrgif test -z "$ac_aux_dir"; then
190496a81b41Smrg  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
190596a81b41Smrg$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
19068b22bf3fSmrg   { (exit 1); exit 1; }; }
19078b22bf3fSmrgfi
19088b22bf3fSmrg
19098b22bf3fSmrg# These three variables are undocumented and unsupported,
19108b22bf3fSmrg# and are intended to be withdrawn in a future Autoconf release.
19118b22bf3fSmrg# They can cause serious problems if a builder's source tree is in a directory
19128b22bf3fSmrg# whose full name contains unusual characters.
19138b22bf3fSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
19148b22bf3fSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
19158b22bf3fSmrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
19168b22bf3fSmrg
19178b22bf3fSmrg
19188b22bf3fSmrg# Find a good install program.  We prefer a C program (faster),
19198b22bf3fSmrg# so one script is as good as another.  But avoid the broken or
19208b22bf3fSmrg# incompatible versions:
19218b22bf3fSmrg# SysV /etc/install, /usr/sbin/install
19228b22bf3fSmrg# SunOS /usr/etc/install
19238b22bf3fSmrg# IRIX /sbin/install
19248b22bf3fSmrg# AIX /bin/install
19258b22bf3fSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs
19268b22bf3fSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19278b22bf3fSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
19288b22bf3fSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19298b22bf3fSmrg# OS/2's system install, which has a completely different semantic
19308b22bf3fSmrg# ./install, which can be erroneously created by make from ./install.sh.
193196a81b41Smrg# Reject install programs that cannot install multiple files.
193296a81b41Smrg{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
193396a81b41Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
19348b22bf3fSmrgif test -z "$INSTALL"; then
19358b22bf3fSmrgif test "${ac_cv_path_install+set}" = set; then
193696a81b41Smrg  $as_echo_n "(cached) " >&6
19378b22bf3fSmrgelse
19388b22bf3fSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19398b22bf3fSmrgfor as_dir in $PATH
19408b22bf3fSmrgdo
19418b22bf3fSmrg  IFS=$as_save_IFS
19428b22bf3fSmrg  test -z "$as_dir" && as_dir=.
19438b22bf3fSmrg  # Account for people who put trailing slashes in PATH elements.
19448b22bf3fSmrgcase $as_dir/ in
19458b22bf3fSmrg  ./ | .// | /cC/* | \
19468b22bf3fSmrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19478b22bf3fSmrg  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19488b22bf3fSmrg  /usr/ucb/* ) ;;
19498b22bf3fSmrg  *)
19508b22bf3fSmrg    # OSF1 and SCO ODT 3.0 have their own names for install.
19518b22bf3fSmrg    # Don't use installbsd from OSF since it installs stuff as root
19528b22bf3fSmrg    # by default.
19538b22bf3fSmrg    for ac_prog in ginstall scoinst install; do
19548b22bf3fSmrg      for ac_exec_ext in '' $ac_executable_extensions; do
19558b22bf3fSmrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19568b22bf3fSmrg	  if test $ac_prog = install &&
19578b22bf3fSmrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19588b22bf3fSmrg	    # AIX install.  It has an incompatible calling convention.
19598b22bf3fSmrg	    :
19608b22bf3fSmrg	  elif test $ac_prog = install &&
19618b22bf3fSmrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19628b22bf3fSmrg	    # program-specific install script used by HP pwplus--don't use.
19638b22bf3fSmrg	    :
19648b22bf3fSmrg	  else
196596a81b41Smrg	    rm -rf conftest.one conftest.two conftest.dir
196696a81b41Smrg	    echo one > conftest.one
196796a81b41Smrg	    echo two > conftest.two
196896a81b41Smrg	    mkdir conftest.dir
196996a81b41Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
197096a81b41Smrg	      test -s conftest.one && test -s conftest.two &&
197196a81b41Smrg	      test -s conftest.dir/conftest.one &&
197296a81b41Smrg	      test -s conftest.dir/conftest.two
197396a81b41Smrg	    then
197496a81b41Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
197596a81b41Smrg	      break 3
197696a81b41Smrg	    fi
19778b22bf3fSmrg	  fi
19788b22bf3fSmrg	fi
19798b22bf3fSmrg      done
19808b22bf3fSmrg    done
19818b22bf3fSmrg    ;;
19828b22bf3fSmrgesac
198396a81b41Smrg
19848b22bf3fSmrgdone
19858b22bf3fSmrgIFS=$as_save_IFS
19868b22bf3fSmrg
198796a81b41Smrgrm -rf conftest.one conftest.two conftest.dir
19888b22bf3fSmrg
19898b22bf3fSmrgfi
19908b22bf3fSmrg  if test "${ac_cv_path_install+set}" = set; then
19918b22bf3fSmrg    INSTALL=$ac_cv_path_install
19928b22bf3fSmrg  else
19938b22bf3fSmrg    # As a last resort, use the slow shell script.  Don't cache a
19948b22bf3fSmrg    # value for INSTALL within a source directory, because that will
19958b22bf3fSmrg    # break other packages using the cache if that directory is
19968b22bf3fSmrg    # removed, or if the value is a relative name.
19978b22bf3fSmrg    INSTALL=$ac_install_sh
19988b22bf3fSmrg  fi
19998b22bf3fSmrgfi
200096a81b41Smrg{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
200196a81b41Smrg$as_echo "$INSTALL" >&6; }
20028b22bf3fSmrg
20038b22bf3fSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20048b22bf3fSmrg# It thinks the first close brace ends the variable substitution.
20058b22bf3fSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20068b22bf3fSmrg
20078b22bf3fSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20088b22bf3fSmrg
20098b22bf3fSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20108b22bf3fSmrg
201196a81b41Smrg{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
201296a81b41Smrg$as_echo_n "checking whether build environment is sane... " >&6; }
20138b22bf3fSmrg# Just in case
20148b22bf3fSmrgsleep 1
20158b22bf3fSmrgecho timestamp > conftest.file
201696a81b41Smrg# Reject unsafe characters in $srcdir or the absolute working directory
201796a81b41Smrg# name.  Accept space and tab only in the latter.
201896a81b41Smrgam_lf='
201996a81b41Smrg'
202096a81b41Smrgcase `pwd` in
202196a81b41Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
202296a81b41Smrg    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
202396a81b41Smrg$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
202496a81b41Smrg   { (exit 1); exit 1; }; };;
202596a81b41Smrgesac
202696a81b41Smrgcase $srcdir in
202796a81b41Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
202896a81b41Smrg    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
202996a81b41Smrg$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
203096a81b41Smrg   { (exit 1); exit 1; }; };;
203196a81b41Smrgesac
203296a81b41Smrg
20338b22bf3fSmrg# Do `set' in a subshell so we don't clobber the current shell's
20348b22bf3fSmrg# arguments.  Must try -L first in case configure is actually a
20358b22bf3fSmrg# symlink; some systems play weird games with the mod time of symlinks
20368b22bf3fSmrg# (eg FreeBSD returns the mod time of the symlink's containing
20378b22bf3fSmrg# directory).
20388b22bf3fSmrgif (
203996a81b41Smrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
20408b22bf3fSmrg   if test "$*" = "X"; then
20418b22bf3fSmrg      # -L didn't work.
204296a81b41Smrg      set X `ls -t "$srcdir/configure" conftest.file`
20438b22bf3fSmrg   fi
20448b22bf3fSmrg   rm -f conftest.file
20458b22bf3fSmrg   if test "$*" != "X $srcdir/configure conftest.file" \
20468b22bf3fSmrg      && test "$*" != "X conftest.file $srcdir/configure"; then
20478b22bf3fSmrg
20488b22bf3fSmrg      # If neither matched, then we have a broken ls.  This can happen
20498b22bf3fSmrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
20508b22bf3fSmrg      # broken ls alias from the environment.  This has actually
20518b22bf3fSmrg      # happened.  Such a system could not be considered "sane".
205296a81b41Smrg      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
20538b22bf3fSmrgalias in your environment" >&5
205496a81b41Smrg$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
20558b22bf3fSmrgalias in your environment" >&2;}
20568b22bf3fSmrg   { (exit 1); exit 1; }; }
20578b22bf3fSmrg   fi
20588b22bf3fSmrg
20598b22bf3fSmrg   test "$2" = conftest.file
20608b22bf3fSmrg   )
20618b22bf3fSmrgthen
20628b22bf3fSmrg   # Ok.
20638b22bf3fSmrg   :
20648b22bf3fSmrgelse
206596a81b41Smrg   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20668b22bf3fSmrgCheck your system clock" >&5
206796a81b41Smrg$as_echo "$as_me: error: newly created file is older than distributed files!
20688b22bf3fSmrgCheck your system clock" >&2;}
20698b22bf3fSmrg   { (exit 1); exit 1; }; }
20708b22bf3fSmrgfi
207196a81b41Smrg{ $as_echo "$as_me:$LINENO: result: yes" >&5
207296a81b41Smrg$as_echo "yes" >&6; }
20738b22bf3fSmrgtest "$program_prefix" != NONE &&
20748b22bf3fSmrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
20758b22bf3fSmrg# Use a double $ so make ignores it.
20768b22bf3fSmrgtest "$program_suffix" != NONE &&
20778b22bf3fSmrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
207896a81b41Smrg# Double any \ or $.
20798b22bf3fSmrg# By default was `s,x,x', remove it if useless.
208096a81b41Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
208196a81b41Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
20828b22bf3fSmrg
20838b22bf3fSmrg# expand $ac_aux_dir to an absolute path
20848b22bf3fSmrgam_aux_dir=`cd $ac_aux_dir && pwd`
20858b22bf3fSmrg
208696a81b41Smrgif test x"${MISSING+set}" != xset; then
208796a81b41Smrg  case $am_aux_dir in
208896a81b41Smrg  *\ * | *\	*)
208996a81b41Smrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
209096a81b41Smrg  *)
209196a81b41Smrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
209296a81b41Smrg  esac
209396a81b41Smrgfi
20948b22bf3fSmrg# Use eval to expand $SHELL
20958b22bf3fSmrgif eval "$MISSING --run true"; then
20968b22bf3fSmrg  am_missing_run="$MISSING --run "
20978b22bf3fSmrgelse
20988b22bf3fSmrg  am_missing_run=
209996a81b41Smrg  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
210096a81b41Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
21018b22bf3fSmrgfi
21028b22bf3fSmrg
210396a81b41Smrgif test x"${install_sh}" != xset; then
210496a81b41Smrg  case $am_aux_dir in
210596a81b41Smrg  *\ * | *\	*)
210696a81b41Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
210796a81b41Smrg  *)
210896a81b41Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
210996a81b41Smrg  esac
211096a81b41Smrgfi
211196a81b41Smrg
211296a81b41Smrg# Installed binaries are usually stripped using `strip' when the user
211396a81b41Smrg# run `make install-strip'.  However `strip' might not be the right
211496a81b41Smrg# tool to use in cross-compilation environments, therefore Automake
211596a81b41Smrg# will honor the `STRIP' environment variable to overrule this program.
211696a81b41Smrgif test "$cross_compiling" != no; then
211796a81b41Smrg  if test -n "$ac_tool_prefix"; then
211896a81b41Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
211996a81b41Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
212096a81b41Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
212196a81b41Smrg$as_echo_n "checking for $ac_word... " >&6; }
212296a81b41Smrgif test "${ac_cv_prog_STRIP+set}" = set; then
212396a81b41Smrg  $as_echo_n "(cached) " >&6
212496a81b41Smrgelse
212596a81b41Smrg  if test -n "$STRIP"; then
212696a81b41Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
212796a81b41Smrgelse
212896a81b41Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212996a81b41Smrgfor as_dir in $PATH
213096a81b41Smrgdo
213196a81b41Smrg  IFS=$as_save_IFS
213296a81b41Smrg  test -z "$as_dir" && as_dir=.
213396a81b41Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
213496a81b41Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
213596a81b41Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
213696a81b41Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
213796a81b41Smrg    break 2
213896a81b41Smrg  fi
213996a81b41Smrgdone
214096a81b41Smrgdone
214196a81b41SmrgIFS=$as_save_IFS
214296a81b41Smrg
214396a81b41Smrgfi
214496a81b41Smrgfi
214596a81b41SmrgSTRIP=$ac_cv_prog_STRIP
214696a81b41Smrgif test -n "$STRIP"; then
214796a81b41Smrg  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
214896a81b41Smrg$as_echo "$STRIP" >&6; }
214996a81b41Smrgelse
215096a81b41Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
215196a81b41Smrg$as_echo "no" >&6; }
215296a81b41Smrgfi
215396a81b41Smrg
215496a81b41Smrg
215596a81b41Smrgfi
215696a81b41Smrgif test -z "$ac_cv_prog_STRIP"; then
215796a81b41Smrg  ac_ct_STRIP=$STRIP
215896a81b41Smrg  # Extract the first word of "strip", so it can be a program name with args.
215996a81b41Smrgset dummy strip; ac_word=$2
216096a81b41Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
216196a81b41Smrg$as_echo_n "checking for $ac_word... " >&6; }
216296a81b41Smrgif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
216396a81b41Smrg  $as_echo_n "(cached) " >&6
216496a81b41Smrgelse
216596a81b41Smrg  if test -n "$ac_ct_STRIP"; then
216696a81b41Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
216796a81b41Smrgelse
216896a81b41Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
216996a81b41Smrgfor as_dir in $PATH
217096a81b41Smrgdo
217196a81b41Smrg  IFS=$as_save_IFS
217296a81b41Smrg  test -z "$as_dir" && as_dir=.
217396a81b41Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
217496a81b41Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
217596a81b41Smrg    ac_cv_prog_ac_ct_STRIP="strip"
217696a81b41Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
217796a81b41Smrg    break 2
217896a81b41Smrg  fi
217996a81b41Smrgdone
218096a81b41Smrgdone
218196a81b41SmrgIFS=$as_save_IFS
218296a81b41Smrg
218396a81b41Smrgfi
218496a81b41Smrgfi
218596a81b41Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
218696a81b41Smrgif test -n "$ac_ct_STRIP"; then
218796a81b41Smrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
218896a81b41Smrg$as_echo "$ac_ct_STRIP" >&6; }
218996a81b41Smrgelse
219096a81b41Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
219196a81b41Smrg$as_echo "no" >&6; }
219296a81b41Smrgfi
219396a81b41Smrg
219496a81b41Smrg  if test "x$ac_ct_STRIP" = x; then
219596a81b41Smrg    STRIP=":"
219696a81b41Smrg  else
219796a81b41Smrg    case $cross_compiling:$ac_tool_warned in
219896a81b41Smrgyes:)
219996a81b41Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
220096a81b41Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
220196a81b41Smrgac_tool_warned=yes ;;
220296a81b41Smrgesac
220396a81b41Smrg    STRIP=$ac_ct_STRIP
220496a81b41Smrg  fi
220596a81b41Smrgelse
220696a81b41Smrg  STRIP="$ac_cv_prog_STRIP"
220796a81b41Smrgfi
220896a81b41Smrg
220996a81b41Smrgfi
221096a81b41SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
221196a81b41Smrg
221296a81b41Smrg{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
221396a81b41Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
221496a81b41Smrgif test -z "$MKDIR_P"; then
221596a81b41Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
221696a81b41Smrg  $as_echo_n "(cached) " >&6
221796a81b41Smrgelse
221896a81b41Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221996a81b41Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
22208b22bf3fSmrgdo
22218b22bf3fSmrg  IFS=$as_save_IFS
22228b22bf3fSmrg  test -z "$as_dir" && as_dir=.
22238b22bf3fSmrg  for ac_prog in mkdir gmkdir; do
22248b22bf3fSmrg	 for ac_exec_ext in '' $ac_executable_extensions; do
22258b22bf3fSmrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
22268b22bf3fSmrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
22278b22bf3fSmrg	     'mkdir (GNU coreutils) '* | \
22288b22bf3fSmrg	     'mkdir (coreutils) '* | \
22298b22bf3fSmrg	     'mkdir (fileutils) '4.1*)
22308b22bf3fSmrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
22318b22bf3fSmrg	       break 3;;
22328b22bf3fSmrg	   esac
22338b22bf3fSmrg	 done
22348b22bf3fSmrg       done
22358b22bf3fSmrgdone
22368b22bf3fSmrgIFS=$as_save_IFS
22378b22bf3fSmrg
22388b22bf3fSmrgfi
22398b22bf3fSmrg
22408b22bf3fSmrg  if test "${ac_cv_path_mkdir+set}" = set; then
22418b22bf3fSmrg    MKDIR_P="$ac_cv_path_mkdir -p"
22428b22bf3fSmrg  else
22438b22bf3fSmrg    # As a last resort, use the slow shell script.  Don't cache a
22448b22bf3fSmrg    # value for MKDIR_P within a source directory, because that will
22458b22bf3fSmrg    # break other packages using the cache if that directory is
22468b22bf3fSmrg    # removed, or if the value is a relative name.
22478b22bf3fSmrg    test -d ./--version && rmdir ./--version
22488b22bf3fSmrg    MKDIR_P="$ac_install_sh -d"
22498b22bf3fSmrg  fi
22508b22bf3fSmrgfi
225196a81b41Smrg{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
225296a81b41Smrg$as_echo "$MKDIR_P" >&6; }
22538b22bf3fSmrg
22548b22bf3fSmrgmkdir_p="$MKDIR_P"
22558b22bf3fSmrgcase $mkdir_p in
22568b22bf3fSmrg  [\\/$]* | ?:[\\/]*) ;;
22578b22bf3fSmrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
22588b22bf3fSmrgesac
22598b22bf3fSmrg
22608b22bf3fSmrgfor ac_prog in gawk mawk nawk awk
22618b22bf3fSmrgdo
22628b22bf3fSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
22638b22bf3fSmrgset dummy $ac_prog; ac_word=$2
226496a81b41Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
226596a81b41Smrg$as_echo_n "checking for $ac_word... " >&6; }
22668b22bf3fSmrgif test "${ac_cv_prog_AWK+set}" = set; then
226796a81b41Smrg  $as_echo_n "(cached) " >&6
22688b22bf3fSmrgelse
22698b22bf3fSmrg  if test -n "$AWK"; then
22708b22bf3fSmrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
22718b22bf3fSmrgelse
22728b22bf3fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22738b22bf3fSmrgfor as_dir in $PATH
22748b22bf3fSmrgdo
22758b22bf3fSmrg  IFS=$as_save_IFS
22768b22bf3fSmrg  test -z "$as_dir" && as_dir=.
22778b22bf3fSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
22788b22bf3fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22798b22bf3fSmrg    ac_cv_prog_AWK="$ac_prog"
228096a81b41Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22818b22bf3fSmrg    break 2
22828b22bf3fSmrg  fi
22838b22bf3fSmrgdone
22848b22bf3fSmrgdone
22858b22bf3fSmrgIFS=$as_save_IFS
22868b22bf3fSmrg
22878b22bf3fSmrgfi
22888b22bf3fSmrgfi
22898b22bf3fSmrgAWK=$ac_cv_prog_AWK
22908b22bf3fSmrgif test -n "$AWK"; then
229196a81b41Smrg  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
229296a81b41Smrg$as_echo "$AWK" >&6; }
22938b22bf3fSmrgelse
229496a81b41Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
229596a81b41Smrg$as_echo "no" >&6; }
22968b22bf3fSmrgfi
22978b22bf3fSmrg
22988b22bf3fSmrg
22998b22bf3fSmrg  test -n "$AWK" && break
23008b22bf3fSmrgdone
23018b22bf3fSmrg
230296a81b41Smrg{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
230396a81b41Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
230496a81b41Smrgset x ${MAKE-make}
230596a81b41Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
23068b22bf3fSmrgif { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
230796a81b41Smrg  $as_echo_n "(cached) " >&6
23088b22bf3fSmrgelse
23098b22bf3fSmrg  cat >conftest.make <<\_ACEOF
23108b22bf3fSmrgSHELL = /bin/sh
23118b22bf3fSmrgall:
23128b22bf3fSmrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
23138b22bf3fSmrg_ACEOF
23148b22bf3fSmrg# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23158b22bf3fSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
23168b22bf3fSmrg  *@@@%%%=?*=@@@%%%*)
23178b22bf3fSmrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
23188b22bf3fSmrg  *)
23198b22bf3fSmrg    eval ac_cv_prog_make_${ac_make}_set=no;;
23208b22bf3fSmrgesac
23218b22bf3fSmrgrm -f conftest.make
23228b22bf3fSmrgfi
23238b22bf3fSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
232496a81b41Smrg  { $as_echo "$as_me:$LINENO: result: yes" >&5
232596a81b41Smrg$as_echo "yes" >&6; }
23268b22bf3fSmrg  SET_MAKE=
23278b22bf3fSmrgelse
232896a81b41Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
232996a81b41Smrg$as_echo "no" >&6; }
23308b22bf3fSmrg  SET_MAKE="MAKE=${MAKE-make}"
23318b22bf3fSmrgfi
23328b22bf3fSmrg
23338b22bf3fSmrgrm -rf .tst 2>/dev/null
23348b22bf3fSmrgmkdir .tst 2>/dev/null
23358b22bf3fSmrgif test -d .tst; then
23368b22bf3fSmrg  am__leading_dot=.
23378b22bf3fSmrgelse
23388b22bf3fSmrg  am__leading_dot=_
23398b22bf3fSmrgfi
23408b22bf3fSmrgrmdir .tst 2>/dev/null
23418b22bf3fSmrg
23428b22bf3fSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
23438b22bf3fSmrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
23448b22bf3fSmrg  # is not polluted with repeated "-I."
23458b22bf3fSmrg  am__isrc=' -I$(srcdir)'
23468b22bf3fSmrg  # test to see if srcdir already configured
23478b22bf3fSmrg  if test -f $srcdir/config.status; then
234896a81b41Smrg    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
234996a81b41Smrg$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
23508b22bf3fSmrg   { (exit 1); exit 1; }; }
23518b22bf3fSmrg  fi
23528b22bf3fSmrgfi
23538b22bf3fSmrg
23548b22bf3fSmrg# test whether we have cygpath
23558b22bf3fSmrgif test -z "$CYGPATH_W"; then
23568b22bf3fSmrg  if (cygpath --version) >/dev/null 2>/dev/null; then
23578b22bf3fSmrg    CYGPATH_W='cygpath -w'
23588b22bf3fSmrg  else
23598b22bf3fSmrg    CYGPATH_W=echo
23608b22bf3fSmrg  fi
23618b22bf3fSmrgfi
23628b22bf3fSmrg
23638b22bf3fSmrg
23648b22bf3fSmrg# Define the identity of the package.
23658b22bf3fSmrg PACKAGE='xrdb'
236696a81b41Smrg VERSION='1.0.6'
23678b22bf3fSmrg
23688b22bf3fSmrg
23698b22bf3fSmrgcat >>confdefs.h <<_ACEOF
23708b22bf3fSmrg#define PACKAGE "$PACKAGE"
23718b22bf3fSmrg_ACEOF
23728b22bf3fSmrg
23738b22bf3fSmrg
23748b22bf3fSmrgcat >>confdefs.h <<_ACEOF
23758b22bf3fSmrg#define VERSION "$VERSION"
23768b22bf3fSmrg_ACEOF
23778b22bf3fSmrg
23788b22bf3fSmrg# Some tools Automake needs.
23798b22bf3fSmrg
23808b22bf3fSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
23818b22bf3fSmrg
23828b22bf3fSmrg
23838b22bf3fSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
23848b22bf3fSmrg
23858b22bf3fSmrg
23868b22bf3fSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
23878b22bf3fSmrg
23888b22bf3fSmrg
23898b22bf3fSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
23908b22bf3fSmrg
23918b22bf3fSmrg
23928b22bf3fSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
23938b22bf3fSmrg
23948b22bf3fSmrg# We need awk for the "check" target.  The system "awk" is bad on
23958b22bf3fSmrg# some platforms.
23968b22bf3fSmrg# Always define AMTAR for backward compatibility.
23978b22bf3fSmrg
23988b22bf3fSmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
23998b22bf3fSmrg
24008b22bf3fSmrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
24018b22bf3fSmrg
24028b22bf3fSmrg
24038b22bf3fSmrg
24048b22bf3fSmrg
24058b22bf3fSmrg
240696a81b41Smrg
240796a81b41Smrg{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
240896a81b41Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
24098b22bf3fSmrg    # Check whether --enable-maintainer-mode was given.
24108b22bf3fSmrgif test "${enable_maintainer_mode+set}" = set; then
24118b22bf3fSmrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
24128b22bf3fSmrgelse
24138b22bf3fSmrg  USE_MAINTAINER_MODE=no
24148b22bf3fSmrgfi
24158b22bf3fSmrg
241696a81b41Smrg  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
241796a81b41Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
24188b22bf3fSmrg   if test $USE_MAINTAINER_MODE = yes; then
24198b22bf3fSmrg  MAINTAINER_MODE_TRUE=
24208b22bf3fSmrg  MAINTAINER_MODE_FALSE='#'
24218b22bf3fSmrgelse
24228b22bf3fSmrg  MAINTAINER_MODE_TRUE='#'
24238b22bf3fSmrg  MAINTAINER_MODE_FALSE=
24248b22bf3fSmrgfi
24258b22bf3fSmrg
24268b22bf3fSmrg  MAINT=$MAINTAINER_MODE_TRUE
24278b22bf3fSmrg
24288b22bf3fSmrg
24298b22bf3fSmrgac_config_headers="$ac_config_headers config.h"
24308b22bf3fSmrg
24318b22bf3fSmrg
243296a81b41Smrg# Require xorg-macros 1.3 or later: XORG_DEFAULT_OPTIONS
243396a81b41Smrg
243496a81b41Smrg
243596a81b41Smrg
243696a81b41Smrg
243796a81b41Smrg
243896a81b41Smrg
243996a81b41Smrg
244096a81b41Smrg
244196a81b41Smrg
244296a81b41Smrg
244396a81b41Smrg
244496a81b41Smrg
24458b22bf3fSmrgac_ext=c
24468b22bf3fSmrgac_cpp='$CPP $CPPFLAGS'
24478b22bf3fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24488b22bf3fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24498b22bf3fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
24508b22bf3fSmrgif test -n "$ac_tool_prefix"; then
24518b22bf3fSmrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
24528b22bf3fSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
245396a81b41Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
245496a81b41Smrg$as_echo_n "checking for $ac_word... " >&6; }
24558b22bf3fSmrgif test "${ac_cv_prog_CC+set}" = set; then
245696a81b41Smrg  $as_echo_n "(cached) " >&6
24578b22bf3fSmrgelse
24588b22bf3fSmrg  if test -n "$CC"; then
24598b22bf3fSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
24608b22bf3fSmrgelse
24618b22bf3fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24628b22bf3fSmrgfor as_dir in $PATH
24638b22bf3fSmrgdo
24648b22bf3fSmrg  IFS=$as_save_IFS
24658b22bf3fSmrg  test -z "$as_dir" && as_dir=.
24668b22bf3fSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
24678b22bf3fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24688b22bf3fSmrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
246996a81b41Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24708b22bf3fSmrg    break 2
24718b22bf3fSmrg  fi
24728b22bf3fSmrgdone
24738b22bf3fSmrgdone
24748b22bf3fSmrgIFS=$as_save_IFS
24758b22bf3fSmrg
24768b22bf3fSmrgfi
24778b22bf3fSmrgfi
24788b22bf3fSmrgCC=$ac_cv_prog_CC
24798b22bf3fSmrgif test -n "$CC"; then
248096a81b41Smrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
248196a81b41Smrg$as_echo "$CC" >&6; }
24828b22bf3fSmrgelse
248396a81b41Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
248496a81b41Smrg$as_echo "no" >&6; }
24858b22bf3fSmrgfi
24868b22bf3fSmrg
24878b22bf3fSmrg
24888b22bf3fSmrgfi
24898b22bf3fSmrgif test -z "$ac_cv_prog_CC"; then
24908b22bf3fSmrg  ac_ct_CC=$CC
24918b22bf3fSmrg  # Extract the first word of "gcc", so it can be a program name with args.
24928b22bf3fSmrgset dummy gcc; ac_word=$2
249396a81b41Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
249496a81b41Smrg$as_echo_n "checking for $ac_word... " >&6; }
24958b22bf3fSmrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
249696a81b41Smrg  $as_echo_n "(cached) " >&6
24978b22bf3fSmrgelse
24988b22bf3fSmrg  if test -n "$ac_ct_CC"; then
24998b22bf3fSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
25008b22bf3fSmrgelse
25018b22bf3fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25028b22bf3fSmrgfor as_dir in $PATH
25038b22bf3fSmrgdo
25048b22bf3fSmrg  IFS=$as_save_IFS
25058b22bf3fSmrg  test -z "$as_dir" && as_dir=.
25068b22bf3fSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
25078b22bf3fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25088b22bf3fSmrg    ac_cv_prog_ac_ct_CC="gcc"
250996a81b41Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25108b22bf3fSmrg    break 2
25118b22bf3fSmrg  fi
25128b22bf3fSmrgdone
25138b22bf3fSmrgdone
25148b22bf3fSmrgIFS=$as_save_IFS
25158b22bf3fSmrg
25168b22bf3fSmrgfi
25178b22bf3fSmrgfi
25188b22bf3fSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
25198b22bf3fSmrgif test -n "$ac_ct_CC"; then
252096a81b41Smrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
252196a81b41Smrg$as_echo "$ac_ct_CC" >&6; }
25228b22bf3fSmrgelse
252396a81b41Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
252496a81b41Smrg$as_echo "no" >&6; }
25258b22bf3fSmrgfi
25268b22bf3fSmrg
25278b22bf3fSmrg  if test "x$ac_ct_CC" = x; then
25288b22bf3fSmrg    CC=""
25298b22bf3fSmrg  else
25308b22bf3fSmrg    case $cross_compiling:$ac_tool_warned in
25318b22bf3fSmrgyes:)
253296a81b41Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
253396a81b41Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25348b22bf3fSmrgac_tool_warned=yes ;;
25358b22bf3fSmrgesac
25368b22bf3fSmrg    CC=$ac_ct_CC
25378b22bf3fSmrg  fi
25388b22bf3fSmrgelse
25398b22bf3fSmrg  CC="$ac_cv_prog_CC"
25408b22bf3fSmrgfi
25418b22bf3fSmrg
25428b22bf3fSmrgif test -z "$CC"; then
25438b22bf3fSmrg          if test -n "$ac_tool_prefix"; then
25448b22bf3fSmrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
25458b22bf3fSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2
254696a81b41Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
254796a81b41Smrg$as_echo_n "checking for $ac_word... " >&6; }
25488b22bf3fSmrgif test "${ac_cv_prog_CC+set}" = set; then
254996a81b41Smrg  $as_echo_n "(cached) " >&6
25508b22bf3fSmrgelse
25518b22bf3fSmrg  if test -n "$CC"; then
25528b22bf3fSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
25538b22bf3fSmrgelse
25548b22bf3fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25558b22bf3fSmrgfor as_dir in $PATH
25568b22bf3fSmrgdo
25578b22bf3fSmrg  IFS=$as_save_IFS
25588b22bf3fSmrg  test -z "$as_dir" && as_dir=.
25598b22bf3fSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
25608b22bf3fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25618b22bf3fSmrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
256296a81b41Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25638b22bf3fSmrg    break 2
25648b22bf3fSmrg  fi
25658b22bf3fSmrgdone
25668b22bf3fSmrgdone
25678b22bf3fSmrgIFS=$as_save_IFS
25688b22bf3fSmrg
25698b22bf3fSmrgfi
25708b22bf3fSmrgfi
25718b22bf3fSmrgCC=$ac_cv_prog_CC
25728b22bf3fSmrgif test -n "$CC"; then
257396a81b41Smrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
257496a81b41Smrg$as_echo "$CC" >&6; }
25758b22bf3fSmrgelse
257696a81b41Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
257796a81b41Smrg$as_echo "no" >&6; }
25788b22bf3fSmrgfi
25798b22bf3fSmrg
25808b22bf3fSmrg
25818b22bf3fSmrg  fi
25828b22bf3fSmrgfi
25838b22bf3fSmrgif test -z "$CC"; then
25848b22bf3fSmrg  # Extract the first word of "cc", so it can be a program name with args.
25858b22bf3fSmrgset dummy cc; ac_word=$2
258696a81b41Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
258796a81b41Smrg$as_echo_n "checking for $ac_word... " >&6; }
25888b22bf3fSmrgif test "${ac_cv_prog_CC+set}" = set; then
258996a81b41Smrg  $as_echo_n "(cached) " >&6
25908b22bf3fSmrgelse
25918b22bf3fSmrg  if test -n "$CC"; then
25928b22bf3fSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
25938b22bf3fSmrgelse
25948b22bf3fSmrg  ac_prog_rejected=no
25958b22bf3fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25968b22bf3fSmrgfor as_dir in $PATH
25978b22bf3fSmrgdo
25988b22bf3fSmrg  IFS=$as_save_IFS
25998b22bf3fSmrg  test -z "$as_dir" && as_dir=.
26008b22bf3fSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
26018b22bf3fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26028b22bf3fSmrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
26038b22bf3fSmrg       ac_prog_rejected=yes
26048b22bf3fSmrg       continue
26058b22bf3fSmrg     fi
26068b22bf3fSmrg    ac_cv_prog_CC="cc"
260796a81b41Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26088b22bf3fSmrg    break 2
26098b22bf3fSmrg  fi
26108b22bf3fSmrgdone
26118b22bf3fSmrgdone
26128b22bf3fSmrgIFS=$as_save_IFS
26138b22bf3fSmrg
26148b22bf3fSmrgif test $ac_prog_rejected = yes; then
26158b22bf3fSmrg  # We found a bogon in the path, so make sure we never use it.
26168b22bf3fSmrg  set dummy $ac_cv_prog_CC
26178b22bf3fSmrg  shift
26188b22bf3fSmrg  if test $# != 0; then
26198b22bf3fSmrg    # We chose a different compiler from the bogus one.
26208b22bf3fSmrg    # However, it has the same basename, so the bogon will be chosen
26218b22bf3fSmrg    # first if we set CC to just the basename; use the full file name.
26228b22bf3fSmrg    shift
26238b22bf3fSmrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
26248b22bf3fSmrg  fi
26258b22bf3fSmrgfi
26268b22bf3fSmrgfi
26278b22bf3fSmrgfi
26288b22bf3fSmrgCC=$ac_cv_prog_CC
26298b22bf3fSmrgif test -n "$CC"; then
263096a81b41Smrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
263196a81b41Smrg$as_echo "$CC" >&6; }
26328b22bf3fSmrgelse
263396a81b41Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
263496a81b41Smrg$as_echo "no" >&6; }
26358b22bf3fSmrgfi
26368b22bf3fSmrg
26378b22bf3fSmrg
26388b22bf3fSmrgfi
26398b22bf3fSmrgif test -z "$CC"; then
26408b22bf3fSmrg  if test -n "$ac_tool_prefix"; then
26418b22bf3fSmrg  for ac_prog in cl.exe
26428b22bf3fSmrg  do
26438b22bf3fSmrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
26448b22bf3fSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
264596a81b41Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
264696a81b41Smrg$as_echo_n "checking for $ac_word... " >&6; }
26478b22bf3fSmrgif test "${ac_cv_prog_CC+set}" = set; then
264896a81b41Smrg  $as_echo_n "(cached) " >&6
26498b22bf3fSmrgelse
26508b22bf3fSmrg  if test -n "$CC"; then
26518b22bf3fSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
26528b22bf3fSmrgelse
26538b22bf3fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26548b22bf3fSmrgfor as_dir in $PATH
26558b22bf3fSmrgdo
26568b22bf3fSmrg  IFS=$as_save_IFS
26578b22bf3fSmrg  test -z "$as_dir" && as_dir=.
26588b22bf3fSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
26598b22bf3fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26608b22bf3fSmrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
266196a81b41Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26628b22bf3fSmrg    break 2
26638b22bf3fSmrg  fi
26648b22bf3fSmrgdone
26658b22bf3fSmrgdone
26668b22bf3fSmrgIFS=$as_save_IFS
26678b22bf3fSmrg
26688b22bf3fSmrgfi
26698b22bf3fSmrgfi
26708b22bf3fSmrgCC=$ac_cv_prog_CC
26718b22bf3fSmrgif test -n "$CC"; then
267296a81b41Smrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
267396a81b41Smrg$as_echo "$CC" >&6; }
26748b22bf3fSmrgelse
267596a81b41Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
267696a81b41Smrg$as_echo "no" >&6; }
26778b22bf3fSmrgfi
26788b22bf3fSmrg
26798b22bf3fSmrg
26808b22bf3fSmrg    test -n "$CC" && break
26818b22bf3fSmrg  done
26828b22bf3fSmrgfi
26838b22bf3fSmrgif test -z "$CC"; then
26848b22bf3fSmrg  ac_ct_CC=$CC
26858b22bf3fSmrg  for ac_prog in cl.exe
26868b22bf3fSmrgdo
26878b22bf3fSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
26888b22bf3fSmrgset dummy $ac_prog; ac_word=$2
268996a81b41Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
269096a81b41Smrg$as_echo_n "checking for $ac_word... " >&6; }
26918b22bf3fSmrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
269296a81b41Smrg  $as_echo_n "(cached) " >&6
26938b22bf3fSmrgelse
26948b22bf3fSmrg  if test -n "$ac_ct_CC"; then
26958b22bf3fSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
26968b22bf3fSmrgelse
26978b22bf3fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26988b22bf3fSmrgfor as_dir in $PATH
26998b22bf3fSmrgdo
27008b22bf3fSmrg  IFS=$as_save_IFS
27018b22bf3fSmrg  test -z "$as_dir" && as_dir=.
27028b22bf3fSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
27038b22bf3fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27048b22bf3fSmrg    ac_cv_prog_ac_ct_CC="$ac_prog"
270596a81b41Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27068b22bf3fSmrg    break 2
27078b22bf3fSmrg  fi
27088b22bf3fSmrgdone
27098b22bf3fSmrgdone
27108b22bf3fSmrgIFS=$as_save_IFS
27118b22bf3fSmrg
27128b22bf3fSmrgfi
27138b22bf3fSmrgfi
27148b22bf3fSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
27158b22bf3fSmrgif test -n "$ac_ct_CC"; then
271696a81b41Smrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
271796a81b41Smrg$as_echo "$ac_ct_CC" >&6; }
27188b22bf3fSmrgelse
271996a81b41Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
272096a81b41Smrg$as_echo "no" >&6; }
27218b22bf3fSmrgfi
27228b22bf3fSmrg
27238b22bf3fSmrg
27248b22bf3fSmrg  test -n "$ac_ct_CC" && break
27258b22bf3fSmrgdone
27268b22bf3fSmrg
27278b22bf3fSmrg  if test "x$ac_ct_CC" = x; then
27288b22bf3fSmrg    CC=""
27298b22bf3fSmrg  else
27308b22bf3fSmrg    case $cross_compiling:$ac_tool_warned in
27318b22bf3fSmrgyes:)
273296a81b41Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
273396a81b41Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27348b22bf3fSmrgac_tool_warned=yes ;;
27358b22bf3fSmrgesac
27368b22bf3fSmrg    CC=$ac_ct_CC
27378b22bf3fSmrg  fi
27388b22bf3fSmrgfi
27398b22bf3fSmrg
27408b22bf3fSmrgfi
27418b22bf3fSmrg
27428b22bf3fSmrg
274396a81b41Smrgtest -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
274496a81b41Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
274596a81b41Smrg{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
27468b22bf3fSmrgSee \`config.log' for more details." >&5
274796a81b41Smrg$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
27488b22bf3fSmrgSee \`config.log' for more details." >&2;}
274996a81b41Smrg   { (exit 1); exit 1; }; }; }
27508b22bf3fSmrg
27518b22bf3fSmrg# Provide some information about the compiler.
275296a81b41Smrg$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
275396a81b41Smrgset X $ac_compile
275496a81b41Smrgac_compiler=$2
27558b22bf3fSmrg{ (ac_try="$ac_compiler --version >&5"
27568b22bf3fSmrgcase "(($ac_try" in
27578b22bf3fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27588b22bf3fSmrg  *) ac_try_echo=$ac_try;;
27598b22bf3fSmrgesac
276096a81b41Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
276196a81b41Smrg$as_echo "$ac_try_echo") >&5
27628b22bf3fSmrg  (eval "$ac_compiler --version >&5") 2>&5
27638b22bf3fSmrg  ac_status=$?
276496a81b41Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27658b22bf3fSmrg  (exit $ac_status); }
27668b22bf3fSmrg{ (ac_try="$ac_compiler -v >&5"
27678b22bf3fSmrgcase "(($ac_try" in
27688b22bf3fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27698b22bf3fSmrg  *) ac_try_echo=$ac_try;;
27708b22bf3fSmrgesac
277196a81b41Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
277296a81b41Smrg$as_echo "$ac_try_echo") >&5
27738b22bf3fSmrg  (eval "$ac_compiler -v >&5") 2>&5
27748b22bf3fSmrg  ac_status=$?
277596a81b41Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27768b22bf3fSmrg  (exit $ac_status); }
27778b22bf3fSmrg{ (ac_try="$ac_compiler -V >&5"
27788b22bf3fSmrgcase "(($ac_try" in
27798b22bf3fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27808b22bf3fSmrg  *) ac_try_echo=$ac_try;;
27818b22bf3fSmrgesac
278296a81b41Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
278396a81b41Smrg$as_echo "$ac_try_echo") >&5
27848b22bf3fSmrg  (eval "$ac_compiler -V >&5") 2>&5
27858b22bf3fSmrg  ac_status=$?
278696a81b41Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27878b22bf3fSmrg  (exit $ac_status); }
27888b22bf3fSmrg
27898b22bf3fSmrgcat >conftest.$ac_ext <<_ACEOF
27908b22bf3fSmrg/* confdefs.h.  */
27918b22bf3fSmrg_ACEOF
27928b22bf3fSmrgcat confdefs.h >>conftest.$ac_ext
27938b22bf3fSmrgcat >>conftest.$ac_ext <<_ACEOF
27948b22bf3fSmrg/* end confdefs.h.  */
27958b22bf3fSmrg
27968b22bf3fSmrgint
27978b22bf3fSmrgmain ()
27988b22bf3fSmrg{
27998b22bf3fSmrg
28008b22bf3fSmrg  ;
28018b22bf3fSmrg  return 0;
28028b22bf3fSmrg}
28038b22bf3fSmrg_ACEOF
28048b22bf3fSmrgac_clean_files_save=$ac_clean_files
280596a81b41Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
28068b22bf3fSmrg# Try to create an executable without -o first, disregard a.out.
28078b22bf3fSmrg# It will help us diagnose broken compilers, and finding out an intuition
28088b22bf3fSmrg# of exeext.
280996a81b41Smrg{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
281096a81b41Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
281196a81b41Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
281296a81b41Smrg
281396a81b41Smrg# The possible output files:
281496a81b41Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
281596a81b41Smrg
28168b22bf3fSmrgac_rmfiles=
28178b22bf3fSmrgfor ac_file in $ac_files
28188b22bf3fSmrgdo
28198b22bf3fSmrg  case $ac_file in
282096a81b41Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
28218b22bf3fSmrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
28228b22bf3fSmrg  esac
28238b22bf3fSmrgdone
28248b22bf3fSmrgrm -f $ac_rmfiles
28258b22bf3fSmrg
28268b22bf3fSmrgif { (ac_try="$ac_link_default"
28278b22bf3fSmrgcase "(($ac_try" in
28288b22bf3fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28298b22bf3fSmrg  *) ac_try_echo=$ac_try;;
28308b22bf3fSmrgesac
283196a81b41Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
283296a81b41Smrg$as_echo "$ac_try_echo") >&5
28338b22bf3fSmrg  (eval "$ac_link_default") 2>&5
28348b22bf3fSmrg  ac_status=$?
283596a81b41Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368b22bf3fSmrg  (exit $ac_status); }; then
28378b22bf3fSmrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
28388b22bf3fSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
28398b22bf3fSmrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
28408b22bf3fSmrg# so that the user can short-circuit this test for compilers unknown to
28418b22bf3fSmrg# Autoconf.
28428b22bf3fSmrgfor ac_file in $ac_files ''
28438b22bf3fSmrgdo
28448b22bf3fSmrg  test -f "$ac_file" || continue
28458b22bf3fSmrg  case $ac_file in
284696a81b41Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
28478b22bf3fSmrg	;;
28488b22bf3fSmrg    [ab].out )
28498b22bf3fSmrg	# We found the default executable, but exeext='' is most
28508b22bf3fSmrg	# certainly right.
28518b22bf3fSmrg	break;;
28528b22bf3fSmrg    *.* )
28538b22bf3fSmrg        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
28548b22bf3fSmrg	then :; else
28558b22bf3fSmrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
28568b22bf3fSmrg	fi
28578b22bf3fSmrg	# We set ac_cv_exeext here because the later test for it is not
28588b22bf3fSmrg	# safe: cross compilers may not add the suffix if given an `-o'
28598b22bf3fSmrg	# argument, so we may need to know it at that point already.
28608b22bf3fSmrg	# Even if this section looks crufty: it has the advantage of
28618b22bf3fSmrg	# actually working.
28628b22bf3fSmrg	break;;
28638b22bf3fSmrg    * )
28648b22bf3fSmrg	break;;
28658b22bf3fSmrg  esac
28668b22bf3fSmrgdone
28678b22bf3fSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
28688b22bf3fSmrg
28698b22bf3fSmrgelse
28708b22bf3fSmrg  ac_file=''
28718b22bf3fSmrgfi
28728b22bf3fSmrg
287396a81b41Smrg{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
287496a81b41Smrg$as_echo "$ac_file" >&6; }
28758b22bf3fSmrgif test -z "$ac_file"; then
287696a81b41Smrg  $as_echo "$as_me: failed program was:" >&5
28778b22bf3fSmrgsed 's/^/| /' conftest.$ac_ext >&5
28788b22bf3fSmrg
287996a81b41Smrg{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
288096a81b41Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
288196a81b41Smrg{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
28828b22bf3fSmrgSee \`config.log' for more details." >&5
288396a81b41Smrg$as_echo "$as_me: error: C compiler cannot create executables
28848b22bf3fSmrgSee \`config.log' for more details." >&2;}
288596a81b41Smrg   { (exit 77); exit 77; }; }; }
28868b22bf3fSmrgfi
28878b22bf3fSmrg
28888b22bf3fSmrgac_exeext=$ac_cv_exeext
28898b22bf3fSmrg
28908b22bf3fSmrg# Check that the compiler produces executables we can run.  If not, either
28918b22bf3fSmrg# the compiler is broken, or we cross compile.
289296a81b41Smrg{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
289396a81b41Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
28948b22bf3fSmrg# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
28958b22bf3fSmrg# If not cross compiling, check that we can run a simple program.
28968b22bf3fSmrgif test "$cross_compiling" != yes; then
28978b22bf3fSmrg  if { ac_try='./$ac_file'
28988b22bf3fSmrg  { (case "(($ac_try" in
28998b22bf3fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29008b22bf3fSmrg  *) ac_try_echo=$ac_try;;
29018b22bf3fSmrgesac
290296a81b41Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
290396a81b41Smrg$as_echo "$ac_try_echo") >&5
29048b22bf3fSmrg  (eval "$ac_try") 2>&5
29058b22bf3fSmrg  ac_status=$?
290696a81b41Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29078b22bf3fSmrg  (exit $ac_status); }; }; then
29088b22bf3fSmrg    cross_compiling=no
29098b22bf3fSmrg  else
29108b22bf3fSmrg    if test "$cross_compiling" = maybe; then
29118b22bf3fSmrg	cross_compiling=yes
29128b22bf3fSmrg    else
291396a81b41Smrg	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
291496a81b41Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
291596a81b41Smrg{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
29168b22bf3fSmrgIf you meant to cross compile, use \`--host'.
29178b22bf3fSmrgSee \`config.log' for more details." >&5
291896a81b41Smrg$as_echo "$as_me: error: cannot run C compiled programs.
29198b22bf3fSmrgIf you meant to cross compile, use \`--host'.
29208b22bf3fSmrgSee \`config.log' for more details." >&2;}
292196a81b41Smrg   { (exit 1); exit 1; }; }; }
29228b22bf3fSmrg    fi
29238b22bf3fSmrg  fi
29248b22bf3fSmrgfi
292596a81b41Smrg{ $as_echo "$as_me:$LINENO: result: yes" >&5
292696a81b41Smrg$as_echo "yes" >&6; }
29278b22bf3fSmrg
292896a81b41Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
29298b22bf3fSmrgac_clean_files=$ac_clean_files_save
29308b22bf3fSmrg# Check that the compiler produces executables we can run.  If not, either
29318b22bf3fSmrg# the compiler is broken, or we cross compile.
293296a81b41Smrg{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
293396a81b41Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
293496a81b41Smrg{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
293596a81b41Smrg$as_echo "$cross_compiling" >&6; }
29368b22bf3fSmrg
293796a81b41Smrg{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
293896a81b41Smrg$as_echo_n "checking for suffix of executables... " >&6; }
29398b22bf3fSmrgif { (ac_try="$ac_link"
29408b22bf3fSmrgcase "(($ac_try" in
29418b22bf3fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29428b22bf3fSmrg  *) ac_try_echo=$ac_try;;
29438b22bf3fSmrgesac
294496a81b41Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
294596a81b41Smrg$as_echo "$ac_try_echo") >&5
29468b22bf3fSmrg  (eval "$ac_link") 2>&5
29478b22bf3fSmrg  ac_status=$?
294896a81b41Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29498b22bf3fSmrg  (exit $ac_status); }; then
29508b22bf3fSmrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
29518b22bf3fSmrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
29528b22bf3fSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with
29538b22bf3fSmrg# `rm'.
29548b22bf3fSmrgfor ac_file in conftest.exe conftest conftest.*; do
29558b22bf3fSmrg  test -f "$ac_file" || continue
29568b22bf3fSmrg  case $ac_file in
295796a81b41Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
29588b22bf3fSmrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
29598b22bf3fSmrg	  break;;
29608b22bf3fSmrg    * ) break;;
29618b22bf3fSmrg  esac
29628b22bf3fSmrgdone
29638b22bf3fSmrgelse
296496a81b41Smrg  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
296596a81b41Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
296696a81b41Smrg{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
29678b22bf3fSmrgSee \`config.log' for more details." >&5
296896a81b41Smrg$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
29698b22bf3fSmrgSee \`config.log' for more details." >&2;}
297096a81b41Smrg   { (exit 1); exit 1; }; }; }
29718b22bf3fSmrgfi
29728b22bf3fSmrg
29738b22bf3fSmrgrm -f conftest$ac_cv_exeext
297496a81b41Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
297596a81b41Smrg$as_echo "$ac_cv_exeext" >&6; }
29768b22bf3fSmrg
29778b22bf3fSmrgrm -f conftest.$ac_ext
29788b22bf3fSmrgEXEEXT=$ac_cv_exeext
29798b22bf3fSmrgac_exeext=$EXEEXT
298096a81b41Smrg{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
298196a81b41Smrg$as_echo_n "checking for suffix of object files... " >&6; }
29828b22bf3fSmrgif test "${ac_cv_objext+set}" = set; then
298396a81b41Smrg  $as_echo_n "(cached) " >&6
29848b22bf3fSmrgelse
29858b22bf3fSmrg  cat >conftest.$ac_ext <<_ACEOF
29868b22bf3fSmrg/* confdefs.h.  */
29878b22bf3fSmrg_ACEOF
29888b22bf3fSmrgcat confdefs.h >>conftest.$ac_ext
29898b22bf3fSmrgcat >>conftest.$ac_ext <<_ACEOF
29908b22bf3fSmrg/* end confdefs.h.  */
29918b22bf3fSmrg
29928b22bf3fSmrgint
29938b22bf3fSmrgmain ()
29948b22bf3fSmrg{
29958b22bf3fSmrg
29968b22bf3fSmrg  ;
29978b22bf3fSmrg  return 0;
29988b22bf3fSmrg}
29998b22bf3fSmrg_ACEOF
30008b22bf3fSmrgrm -f conftest.o conftest.obj
30018b22bf3fSmrgif { (ac_try="$ac_compile"
30028b22bf3fSmrgcase "(($ac_try" in
30038b22bf3fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30048b22bf3fSmrg  *) ac_try_echo=$ac_try;;
30058b22bf3fSmrgesac
300696a81b41Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
300796a81b41Smrg$as_echo "$ac_try_echo") >&5
30088b22bf3fSmrg  (eval "$ac_compile") 2>&5
30098b22bf3fSmrg  ac_status=$?
301096a81b41Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30118b22bf3fSmrg  (exit $ac_status); }; then
30128b22bf3fSmrg  for ac_file in conftest.o conftest.obj conftest.*; do
30138b22bf3fSmrg  test -f "$ac_file" || continue;
30148b22bf3fSmrg  case $ac_file in
301596a81b41Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
30168b22bf3fSmrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
30178b22bf3fSmrg       break;;
30188b22bf3fSmrg  esac
30198b22bf3fSmrgdone
30208b22bf3fSmrgelse
302196a81b41Smrg  $as_echo "$as_me: failed program was:" >&5
30228b22bf3fSmrgsed 's/^/| /' conftest.$ac_ext >&5
30238b22bf3fSmrg
302496a81b41Smrg{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
302596a81b41Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
302696a81b41Smrg{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
30278b22bf3fSmrgSee \`config.log' for more details." >&5
302896a81b41Smrg$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
30298b22bf3fSmrgSee \`config.log' for more details." >&2;}
303096a81b41Smrg   { (exit 1); exit 1; }; }; }
30318b22bf3fSmrgfi
30328b22bf3fSmrg
30338b22bf3fSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
30348b22bf3fSmrgfi
303596a81b41Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
303696a81b41Smrg$as_echo "$ac_cv_objext" >&6; }
30378b22bf3fSmrgOBJEXT=$ac_cv_objext
30388b22bf3fSmrgac_objext=$OBJEXT
303996a81b41Smrg{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
304096a81b41Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
30418b22bf3fSmrgif test "${ac_cv_c_compiler_gnu+set}" = set; then
304296a81b41Smrg  $as_echo_n "(cached) " >&6
30438b22bf3fSmrgelse
30448b22bf3fSmrg  cat >conftest.$ac_ext <<_ACEOF
30458b22bf3fSmrg/* confdefs.h.  */
30468b22bf3fSmrg_ACEOF
30478b22bf3fSmrgcat confdefs.h >>conftest.$ac_ext
30488b22bf3fSmrgcat >>conftest.$ac_ext <<_ACEOF
30498b22bf3fSmrg/* end confdefs.h.  */
30508b22bf3fSmrg
30518b22bf3fSmrgint
30528b22bf3fSmrgmain ()
30538b22bf3fSmrg{
30548b22bf3fSmrg#ifndef __GNUC__
30558b22bf3fSmrg       choke me
30568b22bf3fSmrg#endif
30578b22bf3fSmrg
30588b22bf3fSmrg  ;
30598b22bf3fSmrg  return 0;
30608b22bf3fSmrg}
30618b22bf3fSmrg_ACEOF
30628b22bf3fSmrgrm -f conftest.$ac_objext
30638b22bf3fSmrgif { (ac_try="$ac_compile"
30648b22bf3fSmrgcase "(($ac_try" in
30658b22bf3fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30668b22bf3fSmrg  *) ac_try_echo=$ac_try;;
30678b22bf3fSmrgesac
306896a81b41Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
306996a81b41Smrg$as_echo "$ac_try_echo") >&5
30708b22bf3fSmrg  (eval "$ac_compile") 2>conftest.er1
30718b22bf3fSmrg  ac_status=$?
30728b22bf3fSmrg  grep -v '^ *+' conftest.er1 >conftest.err
30738b22bf3fSmrg  rm -f conftest.er1
30748b22bf3fSmrg  cat conftest.err >&5
307596a81b41Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30768b22bf3fSmrg  (exit $ac_status); } && {
30778b22bf3fSmrg	 test -z "$ac_c_werror_flag" ||
30788b22bf3fSmrg	 test ! -s conftest.err
30798b22bf3fSmrg       } && test -s conftest.$ac_objext; then
30808b22bf3fSmrg  ac_compiler_gnu=yes
30818b22bf3fSmrgelse
308296a81b41Smrg  $as_echo "$as_me: failed program was:" >&5
30838b22bf3fSmrgsed 's/^/| /' conftest.$ac_ext >&5
30848b22bf3fSmrg
30858b22bf3fSmrg	ac_compiler_gnu=no
30868b22bf3fSmrgfi
30878b22bf3fSmrg
30888b22bf3fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30898b22bf3fSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu
30908b22bf3fSmrg
30918b22bf3fSmrgfi
309296a81b41Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
309396a81b41Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
309496a81b41Smrgif test $ac_compiler_gnu = yes; then
309596a81b41Smrg  GCC=yes
309696a81b41Smrgelse
309796a81b41Smrg  GCC=
309896a81b41Smrgfi
30998b22bf3fSmrgac_test_CFLAGS=${CFLAGS+set}
31008b22bf3fSmrgac_save_CFLAGS=$CFLAGS
310196a81b41Smrg{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
310296a81b41Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
31038b22bf3fSmrgif test "${ac_cv_prog_cc_g+set}" = set; then
310496a81b41Smrg  $as_echo_n "(cached) " >&6
31058b22bf3fSmrgelse
31068b22bf3fSmrg  ac_save_c_werror_flag=$ac_c_werror_flag
31078b22bf3fSmrg   ac_c_werror_flag=yes
31088b22bf3fSmrg   ac_cv_prog_cc_g=no
31098b22bf3fSmrg   CFLAGS="-g"
31108b22bf3fSmrg   cat >conftest.$ac_ext <<_ACEOF
31118b22bf3fSmrg/* confdefs.h.  */
31128b22bf3fSmrg_ACEOF
31138b22bf3fSmrgcat confdefs.h >>conftest.$ac_ext
31148b22bf3fSmrgcat >>conftest.$ac_ext <<_ACEOF
31158b22bf3fSmrg/* end confdefs.h.  */
31168b22bf3fSmrg
31178b22bf3fSmrgint
31188b22bf3fSmrgmain ()
31198b22bf3fSmrg{
31208b22bf3fSmrg
31218b22bf3fSmrg  ;
31228b22bf3fSmrg  return 0;
31238b22bf3fSmrg}
31248b22bf3fSmrg_ACEOF
31258b22bf3fSmrgrm -f conftest.$ac_objext
31268b22bf3fSmrgif { (ac_try="$ac_compile"
31278b22bf3fSmrgcase "(($ac_try" in
31288b22bf3fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31298b22bf3fSmrg  *) ac_try_echo=$ac_try;;
31308b22bf3fSmrgesac
313196a81b41Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
313296a81b41Smrg$as_echo "$ac_try_echo") >&5
31338b22bf3fSmrg  (eval "$ac_compile") 2>conftest.er1
31348b22bf3fSmrg  ac_status=$?
31358b22bf3fSmrg  grep -v '^ *+' conftest.er1 >conftest.err
31368b22bf3fSmrg  rm -f conftest.er1
31378b22bf3fSmrg  cat conftest.err >&5
313896a81b41Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31398b22bf3fSmrg  (exit $ac_status); } && {
31408b22bf3fSmrg	 test -z "$ac_c_werror_flag" ||
31418b22bf3fSmrg	 test ! -s conftest.err
31428b22bf3fSmrg       } && test -s conftest.$ac_objext; then
31438b22bf3fSmrg  ac_cv_prog_cc_g=yes
31448b22bf3fSmrgelse
314596a81b41Smrg  $as_echo "$as_me: failed program was:" >&5
31468b22bf3fSmrgsed 's/^/| /' conftest.$ac_ext >&5
31478b22bf3fSmrg
31488b22bf3fSmrg	CFLAGS=""
31498b22bf3fSmrg      cat >conftest.$ac_ext <<_ACEOF
31508b22bf3fSmrg/* confdefs.h.  */
31518b22bf3fSmrg_ACEOF
31528b22bf3fSmrgcat confdefs.h >>conftest.$ac_ext
31538b22bf3fSmrgcat >>conftest.$ac_ext <<_ACEOF
31548b22bf3fSmrg/* end confdefs.h.  */
31558b22bf3fSmrg
31568b22bf3fSmrgint
31578b22bf3fSmrgmain ()
31588b22bf3fSmrg{
31598b22bf3fSmrg
31608b22bf3fSmrg  ;
31618b22bf3fSmrg  return 0;
31628b22bf3fSmrg}
31638b22bf3fSmrg_ACEOF
31648b22bf3fSmrgrm -f conftest.$ac_objext
31658b22bf3fSmrgif { (ac_try="$ac_compile"
31668b22bf3fSmrgcase "(($ac_try" in
31678b22bf3fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31688b22bf3fSmrg  *) ac_try_echo=$ac_try;;
31698b22bf3fSmrgesac
317096a81b41Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
317196a81b41Smrg$as_echo "$ac_try_echo") >&5
31728b22bf3fSmrg  (eval "$ac_compile") 2>conftest.er1
31738b22bf3fSmrg  ac_status=$?
31748b22bf3fSmrg  grep -v '^ *+' conftest.er1 >conftest.err
31758b22bf3fSmrg  rm -f conftest.er1
31768b22bf3fSmrg  cat conftest.err >&5
317796a81b41Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31788b22bf3fSmrg  (exit $ac_status); } && {
31798b22bf3fSmrg	 test -z "$ac_c_werror_flag" ||
31808b22bf3fSmrg	 test ! -s conftest.err
31818b22bf3fSmrg       } && test -s conftest.$ac_objext; then
31828b22bf3fSmrg  :
31838b22bf3fSmrgelse
318496a81b41Smrg  $as_echo "$as_me: failed program was:" >&5
31858b22bf3fSmrgsed 's/^/| /' conftest.$ac_ext >&5
31868b22bf3fSmrg
31878b22bf3fSmrg	ac_c_werror_flag=$ac_save_c_werror_flag
31888b22bf3fSmrg	 CFLAGS="-g"
31898b22bf3fSmrg	 cat >conftest.$ac_ext <<_ACEOF
31908b22bf3fSmrg/* confdefs.h.  */
31918b22bf3fSmrg_ACEOF
31928b22bf3fSmrgcat confdefs.h >>conftest.$ac_ext
31938b22bf3fSmrgcat >>conftest.$ac_ext <<_ACEOF
31948b22bf3fSmrg/* end confdefs.h.  */
31958b22bf3fSmrg
31968b22bf3fSmrgint
31978b22bf3fSmrgmain ()
31988b22bf3fSmrg{
31998b22bf3fSmrg
32008b22bf3fSmrg  ;
32018b22bf3fSmrg  return 0;
32028b22bf3fSmrg}
32038b22bf3fSmrg_ACEOF
32048b22bf3fSmrgrm -f conftest.$ac_objext
32058b22bf3fSmrgif { (ac_try="$ac_compile"
32068b22bf3fSmrgcase "(($ac_try" in
32078b22bf3fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32088b22bf3fSmrg  *) ac_try_echo=$ac_try;;
32098b22bf3fSmrgesac
321096a81b41Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
321196a81b41Smrg$as_echo "$ac_try_echo") >&5
32128b22bf3fSmrg  (eval "$ac_compile") 2>conftest.er1
32138b22bf3fSmrg  ac_status=$?
32148b22bf3fSmrg  grep -v '^ *+' conftest.er1 >conftest.err
32158b22bf3fSmrg  rm -f conftest.er1
32168b22bf3fSmrg  cat conftest.err >&5
321796a81b41Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32188b22bf3fSmrg  (exit $ac_status); } && {
32198b22bf3fSmrg	 test -z "$ac_c_werror_flag" ||
32208b22bf3fSmrg	 test ! -s conftest.err
32218b22bf3fSmrg       } && test -s conftest.$ac_objext; then
32228b22bf3fSmrg  ac_cv_prog_cc_g=yes
32238b22bf3fSmrgelse
322496a81b41Smrg  $as_echo "$as_me: failed program was:" >&5
32258b22bf3fSmrgsed 's/^/| /' conftest.$ac_ext >&5
32268b22bf3fSmrg
32278b22bf3fSmrg
32288b22bf3fSmrgfi
32298b22bf3fSmrg
32308b22bf3fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32318b22bf3fSmrgfi
32328b22bf3fSmrg
32338b22bf3fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32348b22bf3fSmrgfi
32358b22bf3fSmrg
32368b22bf3fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32378b22bf3fSmrg   ac_c_werror_flag=$ac_save_c_werror_flag
32388b22bf3fSmrgfi
323996a81b41Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
324096a81b41Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
32418b22bf3fSmrgif test "$ac_test_CFLAGS" = set; then
32428b22bf3fSmrg  CFLAGS=$ac_save_CFLAGS
32438b22bf3fSmrgelif test $ac_cv_prog_cc_g = yes; then
32448b22bf3fSmrg  if test "$GCC" = yes; then
32458b22bf3fSmrg    CFLAGS="-g -O2"
32468b22bf3fSmrg  else
32478b22bf3fSmrg    CFLAGS="-g"
32488b22bf3fSmrg  fi
32498b22bf3fSmrgelse
32508b22bf3fSmrg  if test "$GCC" = yes; then
32518b22bf3fSmrg    CFLAGS="-O2"
32528b22bf3fSmrg  else
32538b22bf3fSmrg    CFLAGS=
32548b22bf3fSmrg  fi
32558b22bf3fSmrgfi
325696a81b41Smrg{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
325796a81b41Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
32588b22bf3fSmrgif test "${ac_cv_prog_cc_c89+set}" = set; then
325996a81b41Smrg  $as_echo_n "(cached) " >&6
32608b22bf3fSmrgelse
32618b22bf3fSmrg  ac_cv_prog_cc_c89=no
32628b22bf3fSmrgac_save_CC=$CC
32638b22bf3fSmrgcat >conftest.$ac_ext <<_ACEOF
32648b22bf3fSmrg/* confdefs.h.  */
32658b22bf3fSmrg_ACEOF
32668b22bf3fSmrgcat confdefs.h >>conftest.$ac_ext
32678b22bf3fSmrgcat >>conftest.$ac_ext <<_ACEOF
32688b22bf3fSmrg/* end confdefs.h.  */
32698b22bf3fSmrg#include <stdarg.h>
32708b22bf3fSmrg#include <stdio.h>
32718b22bf3fSmrg#include <sys/types.h>
32728b22bf3fSmrg#include <sys/stat.h>
32738b22bf3fSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
32748b22bf3fSmrgstruct buf { int x; };
32758b22bf3fSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
32768b22bf3fSmrgstatic char *e (p, i)
32778b22bf3fSmrg     char **p;
32788b22bf3fSmrg     int i;
32798b22bf3fSmrg{
32808b22bf3fSmrg  return p[i];
32818b22bf3fSmrg}
32828b22bf3fSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
32838b22bf3fSmrg{
32848b22bf3fSmrg  char *s;
32858b22bf3fSmrg  va_list v;
32868b22bf3fSmrg  va_start (v,p);
32878b22bf3fSmrg  s = g (p, va_arg (v,int));
32888b22bf3fSmrg  va_end (v);
32898b22bf3fSmrg  return s;
32908b22bf3fSmrg}
32918b22bf3fSmrg
32928b22bf3fSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
32938b22bf3fSmrg   function prototypes and stuff, but not '\xHH' hex character constants.
32948b22bf3fSmrg   These don't provoke an error unfortunately, instead are silently treated
32958b22bf3fSmrg   as 'x'.  The following induces an error, until -std is added to get
32968b22bf3fSmrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
32978b22bf3fSmrg   array size at least.  It's necessary to write '\x00'==0 to get something
32988b22bf3fSmrg   that's true only with -std.  */
32998b22bf3fSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
33008b22bf3fSmrg
33018b22bf3fSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
33028b22bf3fSmrg   inside strings and character constants.  */
33038b22bf3fSmrg#define FOO(x) 'x'
33048b22bf3fSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
33058b22bf3fSmrg
33068b22bf3fSmrgint test (int i, double x);
33078b22bf3fSmrgstruct s1 {int (*f) (int a);};
33088b22bf3fSmrgstruct s2 {int (*f) (double a);};
33098b22bf3fSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
33108b22bf3fSmrgint argc;
33118b22bf3fSmrgchar **argv;
33128b22bf3fSmrgint
33138b22bf3fSmrgmain ()
33148b22bf3fSmrg{
33158b22bf3fSmrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
33168b22bf3fSmrg  ;
33178b22bf3fSmrg  return 0;
33188b22bf3fSmrg}
33198b22bf3fSmrg_ACEOF
33208b22bf3fSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
33218b22bf3fSmrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
33228b22bf3fSmrgdo
33238b22bf3fSmrg  CC="$ac_save_CC $ac_arg"
33248b22bf3fSmrg  rm -f conftest.$ac_objext
33258b22bf3fSmrgif { (ac_try="$ac_compile"
33268b22bf3fSmrgcase "(($ac_try" in
33278b22bf3fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33288b22bf3fSmrg  *) ac_try_echo=$ac_try;;
33298b22bf3fSmrgesac
333096a81b41Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
333196a81b41Smrg$as_echo "$ac_try_echo") >&5
33328b22bf3fSmrg  (eval "$ac_compile") 2>conftest.er1
33338b22bf3fSmrg  ac_status=$?
33348b22bf3fSmrg  grep -v '^ *+' conftest.er1 >conftest.err
33358b22bf3fSmrg  rm -f conftest.er1
33368b22bf3fSmrg  cat conftest.err >&5
333796a81b41Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33388b22bf3fSmrg  (exit $ac_status); } && {
33398b22bf3fSmrg	 test -z "$ac_c_werror_flag" ||
33408b22bf3fSmrg	 test ! -s conftest.err
33418b22bf3fSmrg       } && test -s conftest.$ac_objext; then
33428b22bf3fSmrg  ac_cv_prog_cc_c89=$ac_arg
33438b22bf3fSmrgelse
334496a81b41Smrg  $as_echo "$as_me: failed program was:" >&5
33458b22bf3fSmrgsed 's/^/| /' conftest.$ac_ext >&5
33468b22bf3fSmrg
33478b22bf3fSmrg
33488b22bf3fSmrgfi
33498b22bf3fSmrg
33508b22bf3fSmrgrm -f core conftest.err conftest.$ac_objext
33518b22bf3fSmrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
33528b22bf3fSmrgdone
33538b22bf3fSmrgrm -f conftest.$ac_ext
33548b22bf3fSmrgCC=$ac_save_CC
33558b22bf3fSmrg
33568b22bf3fSmrgfi
33578b22bf3fSmrg# AC_CACHE_VAL
33588b22bf3fSmrgcase "x$ac_cv_prog_cc_c89" in
33598b22bf3fSmrg  x)
336096a81b41Smrg    { $as_echo "$as_me:$LINENO: result: none needed" >&5
336196a81b41Smrg$as_echo "none needed" >&6; } ;;
33628b22bf3fSmrg  xno)
336396a81b41Smrg    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
336496a81b41Smrg$as_echo "unsupported" >&6; } ;;
33658b22bf3fSmrg  *)
33668b22bf3fSmrg    CC="$CC $ac_cv_prog_cc_c89"
336796a81b41Smrg    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
336896a81b41Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
33698b22bf3fSmrgesac
33708b22bf3fSmrg
33718b22bf3fSmrg
33728b22bf3fSmrgac_ext=c
33738b22bf3fSmrgac_cpp='$CPP $CPPFLAGS'
33748b22bf3fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33758b22bf3fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33768b22bf3fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
33778b22bf3fSmrgDEPDIR="${am__leading_dot}deps"
33788b22bf3fSmrg
33798b22bf3fSmrgac_config_commands="$ac_config_commands depfiles"
33808b22bf3fSmrg
33818b22bf3fSmrg
33828b22bf3fSmrgam_make=${MAKE-make}
33838b22bf3fSmrgcat > confinc << 'END'
33848b22bf3fSmrgam__doit:
338596a81b41Smrg	@echo this is the am__doit target
33868b22bf3fSmrg.PHONY: am__doit
33878b22bf3fSmrgEND
33888b22bf3fSmrg# If we don't find an include directive, just comment out the code.
338996a81b41Smrg{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
339096a81b41Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
33918b22bf3fSmrgam__include="#"
33928b22bf3fSmrgam__quote=
33938b22bf3fSmrg_am_result=none
33948b22bf3fSmrg# First try GNU make style include.
33958b22bf3fSmrgecho "include confinc" > confmf
339696a81b41Smrg# Ignore all kinds of additional output from `make'.
339796a81b41Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
339896a81b41Smrg*the\ am__doit\ target*)
339996a81b41Smrg  am__include=include
340096a81b41Smrg  am__quote=
340196a81b41Smrg  _am_result=GNU
340296a81b41Smrg  ;;
340396a81b41Smrgesac
34048b22bf3fSmrg# Now try BSD make style include.
34058b22bf3fSmrgif test "$am__include" = "#"; then
34068b22bf3fSmrg   echo '.include "confinc"' > confmf
340796a81b41Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
340896a81b41Smrg   *the\ am__doit\ target*)
340996a81b41Smrg     am__include=.include
341096a81b41Smrg     am__quote="\""
341196a81b41Smrg     _am_result=BSD
341296a81b41Smrg     ;;
341396a81b41Smrg   esac
34148b22bf3fSmrgfi
34158b22bf3fSmrg
34168b22bf3fSmrg
341796a81b41Smrg{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
341896a81b41Smrg$as_echo "$_am_result" >&6; }
34198b22bf3fSmrgrm -f confinc confmf
34208b22bf3fSmrg
34218b22bf3fSmrg# Check whether --enable-dependency-tracking was given.
34228b22bf3fSmrgif test "${enable_dependency_tracking+set}" = set; then
34238b22bf3fSmrg  enableval=$enable_dependency_tracking;
34248b22bf3fSmrgfi
34258b22bf3fSmrg
34268b22bf3fSmrgif test "x$enable_dependency_tracking" != xno; then
34278b22bf3fSmrg  am_depcomp="$ac_aux_dir/depcomp"
34288b22bf3fSmrg  AMDEPBACKSLASH='\'
34298b22bf3fSmrgfi
34308b22bf3fSmrg if test "x$enable_dependency_tracking" != xno; then
34318b22bf3fSmrg  AMDEP_TRUE=
34328b22bf3fSmrg  AMDEP_FALSE='#'
34338b22bf3fSmrgelse
34348b22bf3fSmrg  AMDEP_TRUE='#'
34358b22bf3fSmrg  AMDEP_FALSE=
34368b22bf3fSmrgfi
34378b22bf3fSmrg
34388b22bf3fSmrg
34398b22bf3fSmrg
34408b22bf3fSmrgdepcc="$CC"   am_compiler_list=
34418b22bf3fSmrg
344296a81b41Smrg{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
344396a81b41Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
34448b22bf3fSmrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
344596a81b41Smrg  $as_echo_n "(cached) " >&6
34468b22bf3fSmrgelse
34478b22bf3fSmrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
34488b22bf3fSmrg  # We make a subdir and do the tests there.  Otherwise we can end up
34498b22bf3fSmrg  # making bogus files that we don't know about and never remove.  For
34508b22bf3fSmrg  # instance it was reported that on HP-UX the gcc test will end up
34518b22bf3fSmrg  # making a dummy file named `D' -- because `-MD' means `put the output
34528b22bf3fSmrg  # in D'.
34538b22bf3fSmrg  mkdir conftest.dir
34548b22bf3fSmrg  # Copy depcomp to subdir because otherwise we won't find it if we're
34558b22bf3fSmrg  # using a relative directory.
34568b22bf3fSmrg  cp "$am_depcomp" conftest.dir
34578b22bf3fSmrg  cd conftest.dir
34588b22bf3fSmrg  # We will build objects and dependencies in a subdirectory because
34598b22bf3fSmrg  # it helps to detect inapplicable dependency modes.  For instance
34608b22bf3fSmrg  # both Tru64's cc and ICC support -MD to output dependencies as a
34618b22bf3fSmrg  # side effect of compilation, but ICC will put the dependencies in
34628b22bf3fSmrg  # the current directory while Tru64 will put them in the object
34638b22bf3fSmrg  # directory.
34648b22bf3fSmrg  mkdir sub
34658b22bf3fSmrg
34668b22bf3fSmrg  am_cv_CC_dependencies_compiler_type=none
34678b22bf3fSmrg  if test "$am_compiler_list" = ""; then
34688b22bf3fSmrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
34698b22bf3fSmrg  fi
347096a81b41Smrg  am__universal=false
347196a81b41Smrg  case " $depcc " in #(
347296a81b41Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
347396a81b41Smrg     esac
347496a81b41Smrg
34758b22bf3fSmrg  for depmode in $am_compiler_list; do
34768b22bf3fSmrg    # Setup a source with many dependencies, because some compilers
34778b22bf3fSmrg    # like to wrap large dependency lists on column 80 (with \), and
34788b22bf3fSmrg    # we should not choose a depcomp mode which is confused by this.
34798b22bf3fSmrg    #
34808b22bf3fSmrg    # We need to recreate these files for each test, as the compiler may
34818b22bf3fSmrg    # overwrite some of them when testing with obscure command lines.
34828b22bf3fSmrg    # This happens at least with the AIX C compiler.
34838b22bf3fSmrg    : > sub/conftest.c
34848b22bf3fSmrg    for i in 1 2 3 4 5 6; do
34858b22bf3fSmrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
34868b22bf3fSmrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
34878b22bf3fSmrg      # Solaris 8's {/usr,}/bin/sh.
34888b22bf3fSmrg      touch sub/conftst$i.h
34898b22bf3fSmrg    done
34908b22bf3fSmrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
34918b22bf3fSmrg
349296a81b41Smrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
349396a81b41Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
349496a81b41Smrg    # handle `-M -o', and we need to detect this.  Also, some Intel
349596a81b41Smrg    # versions had trouble with output in subdirs
349696a81b41Smrg    am__obj=sub/conftest.${OBJEXT-o}
349796a81b41Smrg    am__minus_obj="-o $am__obj"
34988b22bf3fSmrg    case $depmode in
349996a81b41Smrg    gcc)
350096a81b41Smrg      # This depmode causes a compiler race in universal mode.
350196a81b41Smrg      test "$am__universal" = false || continue
350296a81b41Smrg      ;;
35038b22bf3fSmrg    nosideeffect)
35048b22bf3fSmrg      # after this tag, mechanisms are not by side-effect, so they'll
35058b22bf3fSmrg      # only be used when explicitly requested
35068b22bf3fSmrg      if test "x$enable_dependency_tracking" = xyes; then
35078b22bf3fSmrg	continue
35088b22bf3fSmrg      else
35098b22bf3fSmrg	break
35108b22bf3fSmrg      fi
35118b22bf3fSmrg      ;;
351296a81b41Smrg    msvisualcpp | msvcmsys)
351396a81b41Smrg      # This compiler won't grok `-c -o', but also, the minuso test has
351496a81b41Smrg      # not run yet.  These depmodes are late enough in the game, and
351596a81b41Smrg      # so weak that their functioning should not be impacted.
351696a81b41Smrg      am__obj=conftest.${OBJEXT-o}
351796a81b41Smrg      am__minus_obj=
351896a81b41Smrg      ;;
35198b22bf3fSmrg    none) break ;;
35208b22bf3fSmrg    esac
35218b22bf3fSmrg    if depmode=$depmode \
352296a81b41Smrg       source=sub/conftest.c object=$am__obj \
35238b22bf3fSmrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
352496a81b41Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
35258b22bf3fSmrg         >/dev/null 2>conftest.err &&
35268b22bf3fSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
35278b22bf3fSmrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
352896a81b41Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
35298b22bf3fSmrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
35308b22bf3fSmrg      # icc doesn't choke on unknown options, it will just issue warnings
35318b22bf3fSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
35328b22bf3fSmrg      # that says an option was ignored or not supported.
35338b22bf3fSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
35348b22bf3fSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
35358b22bf3fSmrg      # The diagnosis changed in icc 8.0:
35368b22bf3fSmrg      #   icc: Command line remark: option '-MP' not supported
35378b22bf3fSmrg      if (grep 'ignoring option' conftest.err ||
35388b22bf3fSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
35398b22bf3fSmrg        am_cv_CC_dependencies_compiler_type=$depmode
35408b22bf3fSmrg        break
35418b22bf3fSmrg      fi
35428b22bf3fSmrg    fi
35438b22bf3fSmrg  done
35448b22bf3fSmrg
35458b22bf3fSmrg  cd ..
35468b22bf3fSmrg  rm -rf conftest.dir
35478b22bf3fSmrgelse
35488b22bf3fSmrg  am_cv_CC_dependencies_compiler_type=none
35498b22bf3fSmrgfi
35508b22bf3fSmrg
35518b22bf3fSmrgfi
355296a81b41Smrg{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
355396a81b41Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
35548b22bf3fSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
35558b22bf3fSmrg
35568b22bf3fSmrg if
35578b22bf3fSmrg  test "x$enable_dependency_tracking" != xno \
35588b22bf3fSmrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
35598b22bf3fSmrg  am__fastdepCC_TRUE=
35608b22bf3fSmrg  am__fastdepCC_FALSE='#'
35618b22bf3fSmrgelse
35628b22bf3fSmrg  am__fastdepCC_TRUE='#'
35638b22bf3fSmrg  am__fastdepCC_FALSE=
35648b22bf3fSmrgfi
35658b22bf3fSmrg
35668b22bf3fSmrg
35678b22bf3fSmrg# Find a good install program.  We prefer a C program (faster),
35688b22bf3fSmrg# so one script is as good as another.  But avoid the broken or
35698b22bf3fSmrg# incompatible versions:
35708b22bf3fSmrg# SysV /etc/install, /usr/sbin/install
35718b22bf3fSmrg# SunOS /usr/etc/install
35728b22bf3fSmrg# IRIX /sbin/install
35738b22bf3fSmrg# AIX /bin/install
35748b22bf3fSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs
35758b22bf3fSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
35768b22bf3fSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
35778b22bf3fSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
35788b22bf3fSmrg# OS/2's system install, which has a completely different semantic
35798b22bf3fSmrg# ./install, which can be erroneously created by make from ./install.sh.
358096a81b41Smrg# Reject install programs that cannot install multiple files.
358196a81b41Smrg{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
358296a81b41Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
35838b22bf3fSmrgif test -z "$INSTALL"; then
35848b22bf3fSmrgif test "${ac_cv_path_install+set}" = set; then
358596a81b41Smrg  $as_echo_n "(cached) " >&6
35868b22bf3fSmrgelse
35878b22bf3fSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35888b22bf3fSmrgfor as_dir in $PATH
35898b22bf3fSmrgdo
35908b22bf3fSmrg  IFS=$as_save_IFS
35918b22bf3fSmrg  test -z "$as_dir" && as_dir=.
35928b22bf3fSmrg  # Account for people who put trailing slashes in PATH elements.
35938b22bf3fSmrgcase $as_dir/ in
35948b22bf3fSmrg  ./ | .// | /cC/* | \
35958b22bf3fSmrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
35968b22bf3fSmrg  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
35978b22bf3fSmrg  /usr/ucb/* ) ;;
35988b22bf3fSmrg  *)
35998b22bf3fSmrg    # OSF1 and SCO ODT 3.0 have their own names for install.
36008b22bf3fSmrg    # Don't use installbsd from OSF since it installs stuff as root
36018b22bf3fSmrg    # by default.
36028b22bf3fSmrg    for ac_prog in ginstall scoinst install; do
36038b22bf3fSmrg      for ac_exec_ext in '' $ac_executable_extensions; do
36048b22bf3fSmrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
36058b22bf3fSmrg	  if test $ac_prog = install &&
36068b22bf3fSmrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
36078b22bf3fSmrg	    # AIX install.  It has an incompatible calling convention.
36088b22bf3fSmrg	    :
36098b22bf3fSmrg	  elif test $ac_prog = install &&
36108b22bf3fSmrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
36118b22bf3fSmrg	    # program-specific install script used by HP pwplus--don't use.
36128b22bf3fSmrg	    :
36138b22bf3fSmrg	  else
361496a81b41Smrg	    rm -rf conftest.one conftest.two conftest.dir
361596a81b41Smrg	    echo one > conftest.one
361696a81b41Smrg	    echo two > conftest.two
361796a81b41Smrg	    mkdir conftest.dir
361896a81b41Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
361996a81b41Smrg	      test -s conftest.one && test -s conftest.two &&
362096a81b41Smrg	      test -s conftest.dir/conftest.one &&
362196a81b41Smrg	      test -s conftest.dir/conftest.two
362296a81b41Smrg	    then
362396a81b41Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
362496a81b41Smrg	      break 3
362596a81b41Smrg	    fi
36268b22bf3fSmrg	  fi
36278b22bf3fSmrg	fi
36288b22bf3fSmrg      done
36298b22bf3fSmrg    done
36308b22bf3fSmrg    ;;
36318b22bf3fSmrgesac
363296a81b41Smrg
36338b22bf3fSmrgdone
36348b22bf3fSmrgIFS=$as_save_IFS
36358b22bf3fSmrg
363696a81b41Smrgrm -rf conftest.one conftest.two conftest.dir
36378b22bf3fSmrg
36388b22bf3fSmrgfi
36398b22bf3fSmrg  if test "${ac_cv_path_install+set}" = set; then
36408b22bf3fSmrg    INSTALL=$ac_cv_path_install
36418b22bf3fSmrg  else
36428b22bf3fSmrg    # As a last resort, use the slow shell script.  Don't cache a
36438b22bf3fSmrg    # value for INSTALL within a source directory, because that will
36448b22bf3fSmrg    # break other packages using the cache if that directory is
36458b22bf3fSmrg    # removed, or if the value is a relative name.
36468b22bf3fSmrg    INSTALL=$ac_install_sh
36478b22bf3fSmrg  fi
36488b22bf3fSmrgfi
364996a81b41Smrg{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
365096a81b41Smrg$as_echo "$INSTALL" >&6; }
36518b22bf3fSmrg
36528b22bf3fSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
36538b22bf3fSmrg# It thinks the first close brace ends the variable substitution.
36548b22bf3fSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
36558b22bf3fSmrg
36568b22bf3fSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
36578b22bf3fSmrg
36588b22bf3fSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
36598b22bf3fSmrg
36608b22bf3fSmrg
36618b22bf3fSmrg
366296a81b41Smrgac_ext=c
366396a81b41Smrgac_cpp='$CPP $CPPFLAGS'
366496a81b41Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
366596a81b41Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
366696a81b41Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
366796a81b41Smrg{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
366896a81b41Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
366996a81b41Smrg# On Suns, sometimes $CPP names a directory.
367096a81b41Smrgif test -n "$CPP" && test -d "$CPP"; then
367196a81b41Smrg  CPP=
367296a81b41Smrgfi
367396a81b41Smrgif test -z "$CPP"; then
367496a81b41Smrg  if test "${ac_cv_prog_CPP+set}" = set; then
367596a81b41Smrg  $as_echo_n "(cached) " >&6
36768b22bf3fSmrgelse
367796a81b41Smrg      # Double quotes because CPP needs to be expanded
367896a81b41Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
367996a81b41Smrg    do
368096a81b41Smrg      ac_preproc_ok=false
368196a81b41Smrgfor ac_c_preproc_warn_flag in '' yes
368296a81b41Smrgdo
368396a81b41Smrg  # Use a header file that comes with gcc, so configuring glibc
368496a81b41Smrg  # with a fresh cross-compiler works.
368596a81b41Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
368696a81b41Smrg  # <limits.h> exists even on freestanding compilers.
368796a81b41Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
368896a81b41Smrg  # not just through cpp. "Syntax error" is here to catch this case.
36898b22bf3fSmrg  cat >conftest.$ac_ext <<_ACEOF
36908b22bf3fSmrg/* confdefs.h.  */
36918b22bf3fSmrg_ACEOF
36928b22bf3fSmrgcat confdefs.h >>conftest.$ac_ext
36938b22bf3fSmrgcat >>conftest.$ac_ext <<_ACEOF
36948b22bf3fSmrg/* end confdefs.h.  */
36958b22bf3fSmrg#ifdef __STDC__
36968b22bf3fSmrg# include <limits.h>
36978b22bf3fSmrg#else
36988b22bf3fSmrg# include <assert.h>
36998b22bf3fSmrg#endif
37008b22bf3fSmrg		     Syntax error
37018b22bf3fSmrg_ACEOF
37028b22bf3fSmrgif { (ac_try="$ac_cpp conftest.$ac_ext"
37038b22bf3fSmrgcase "(($ac_try" in
37048b22bf3fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37058b22bf3fSmrg  *) ac_try_echo=$ac_try;;
37068b22bf3fSmrgesac
370796a81b41Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
370896a81b41Smrg$as_echo "$ac_try_echo") >&5
37098b22bf3fSmrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37108b22bf3fSmrg  ac_status=$?
37118b22bf3fSmrg  grep -v '^ *+' conftest.er1 >conftest.err
37128b22bf3fSmrg  rm -f conftest.er1
37138b22bf3fSmrg  cat conftest.err >&5
371496a81b41Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37158b22bf3fSmrg  (exit $ac_status); } >/dev/null && {
37168b22bf3fSmrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37178b22bf3fSmrg	 test ! -s conftest.err
37188b22bf3fSmrg       }; then
37198b22bf3fSmrg  :
37208b22bf3fSmrgelse
372196a81b41Smrg  $as_echo "$as_me: failed program was:" >&5
37228b22bf3fSmrgsed 's/^/| /' conftest.$ac_ext >&5
37238b22bf3fSmrg
37248b22bf3fSmrg  # Broken: fails on valid input.
37258b22bf3fSmrgcontinue
37268b22bf3fSmrgfi
37278b22bf3fSmrg
37288b22bf3fSmrgrm -f conftest.err conftest.$ac_ext
37298b22bf3fSmrg
37308b22bf3fSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
37318b22bf3fSmrg  # can be detected and how.
37328b22bf3fSmrg  cat >conftest.$ac_ext <<_ACEOF
37338b22bf3fSmrg/* confdefs.h.  */
37348b22bf3fSmrg_ACEOF
37358b22bf3fSmrgcat confdefs.h >>conftest.$ac_ext
37368b22bf3fSmrgcat >>conftest.$ac_ext <<_ACEOF
37378b22bf3fSmrg/* end confdefs.h.  */
37388b22bf3fSmrg#include <ac_nonexistent.h>
37398b22bf3fSmrg_ACEOF
37408b22bf3fSmrgif { (ac_try="$ac_cpp conftest.$ac_ext"
37418b22bf3fSmrgcase "(($ac_try" in
37428b22bf3fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37438b22bf3fSmrg  *) ac_try_echo=$ac_try;;
37448b22bf3fSmrgesac
374596a81b41Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
374696a81b41Smrg$as_echo "$ac_try_echo") >&5
37478b22bf3fSmrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37488b22bf3fSmrg  ac_status=$?
37498b22bf3fSmrg  grep -v '^ *+' conftest.er1 >conftest.err
37508b22bf3fSmrg  rm -f conftest.er1
37518b22bf3fSmrg  cat conftest.err >&5
375296a81b41Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37538b22bf3fSmrg  (exit $ac_status); } >/dev/null && {
37548b22bf3fSmrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37558b22bf3fSmrg	 test ! -s conftest.err
37568b22bf3fSmrg       }; then
37578b22bf3fSmrg  # Broken: success on invalid input.
37588b22bf3fSmrgcontinue
37598b22bf3fSmrgelse
376096a81b41Smrg  $as_echo "$as_me: failed program was:" >&5
37618b22bf3fSmrgsed 's/^/| /' conftest.$ac_ext >&5
37628b22bf3fSmrg
37638b22bf3fSmrg  # Passes both tests.
37648b22bf3fSmrgac_preproc_ok=:
37658b22bf3fSmrgbreak
37668b22bf3fSmrgfi
37678b22bf3fSmrg
37688b22bf3fSmrgrm -f conftest.err conftest.$ac_ext
37698b22bf3fSmrg
37708b22bf3fSmrgdone
37718b22bf3fSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
37728b22bf3fSmrgrm -f conftest.err conftest.$ac_ext
37738b22bf3fSmrgif $ac_preproc_ok; then
37748b22bf3fSmrg  break
37758b22bf3fSmrgfi
37768b22bf3fSmrg
37778b22bf3fSmrg    done
37788b22bf3fSmrg    ac_cv_prog_CPP=$CPP
37798b22bf3fSmrg
37808b22bf3fSmrgfi
37818b22bf3fSmrg  CPP=$ac_cv_prog_CPP
37828b22bf3fSmrgelse
37838b22bf3fSmrg  ac_cv_prog_CPP=$CPP
37848b22bf3fSmrgfi
378596a81b41Smrg{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
378696a81b41Smrg$as_echo "$CPP" >&6; }
37878b22bf3fSmrgac_preproc_ok=false
37888b22bf3fSmrgfor ac_c_preproc_warn_flag in '' yes
37898b22bf3fSmrgdo
37908b22bf3fSmrg  # Use a header file that comes with gcc, so configuring glibc
37918b22bf3fSmrg  # with a fresh cross-compiler works.
37928b22bf3fSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37938b22bf3fSmrg  # <limits.h> exists even on freestanding compilers.
37948b22bf3fSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
37958b22bf3fSmrg  # not just through cpp. "Syntax error" is here to catch this case.
37968b22bf3fSmrg  cat >conftest.$ac_ext <<_ACEOF
37978b22bf3fSmrg/* confdefs.h.  */
37988b22bf3fSmrg_ACEOF
37998b22bf3fSmrgcat confdefs.h >>conftest.$ac_ext
38008b22bf3fSmrgcat >>conftest.$ac_ext <<_ACEOF
38018b22bf3fSmrg/* end confdefs.h.  */
38028b22bf3fSmrg#ifdef __STDC__
38038b22bf3fSmrg# include <limits.h>
38048b22bf3fSmrg#else
38058b22bf3fSmrg# include <assert.h>
38068b22bf3fSmrg#endif
38078b22bf3fSmrg		     Syntax error
38088b22bf3fSmrg_ACEOF
38098b22bf3fSmrgif { (ac_try="$ac_cpp conftest.$ac_ext"
38108b22bf3fSmrgcase "(($ac_try" in
38118b22bf3fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38128b22bf3fSmrg  *) ac_try_echo=$ac_try;;
38138b22bf3fSmrgesac
381496a81b41Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
381596a81b41Smrg$as_echo "$ac_try_echo") >&5
38168b22bf3fSmrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38178b22bf3fSmrg  ac_status=$?
38188b22bf3fSmrg  grep -v '^ *+' conftest.er1 >conftest.err
38198b22bf3fSmrg  rm -f conftest.er1
38208b22bf3fSmrg  cat conftest.err >&5
382196a81b41Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38228b22bf3fSmrg  (exit $ac_status); } >/dev/null && {
38238b22bf3fSmrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38248b22bf3fSmrg	 test ! -s conftest.err
38258b22bf3fSmrg       }; then
38268b22bf3fSmrg  :
38278b22bf3fSmrgelse
382896a81b41Smrg  $as_echo "$as_me: failed program was:" >&5
38298b22bf3fSmrgsed 's/^/| /' conftest.$ac_ext >&5
38308b22bf3fSmrg
38318b22bf3fSmrg  # Broken: fails on valid input.
38328b22bf3fSmrgcontinue
38338b22bf3fSmrgfi
38348b22bf3fSmrg
38358b22bf3fSmrgrm -f conftest.err conftest.$ac_ext
38368b22bf3fSmrg
38378b22bf3fSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
38388b22bf3fSmrg  # can be detected and how.
38398b22bf3fSmrg  cat >conftest.$ac_ext <<_ACEOF
38408b22bf3fSmrg/* confdefs.h.  */
38418b22bf3fSmrg_ACEOF
38428b22bf3fSmrgcat confdefs.h >>conftest.$ac_ext
38438b22bf3fSmrgcat >>conftest.$ac_ext <<_ACEOF
38448b22bf3fSmrg/* end confdefs.h.  */
38458b22bf3fSmrg#include <ac_nonexistent.h>
38468b22bf3fSmrg_ACEOF
38478b22bf3fSmrgif { (ac_try="$ac_cpp conftest.$ac_ext"
38488b22bf3fSmrgcase "(($ac_try" in
38498b22bf3fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38508b22bf3fSmrg  *) ac_try_echo=$ac_try;;
38518b22bf3fSmrgesac
385296a81b41Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
385396a81b41Smrg$as_echo "$ac_try_echo") >&5
38548b22bf3fSmrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38558b22bf3fSmrg  ac_status=$?
38568b22bf3fSmrg  grep -v '^ *+' conftest.er1 >conftest.err
38578b22bf3fSmrg  rm -f conftest.er1
38588b22bf3fSmrg  cat conftest.err >&5
385996a81b41Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38608b22bf3fSmrg  (exit $ac_status); } >/dev/null && {
38618b22bf3fSmrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38628b22bf3fSmrg	 test ! -s conftest.err
38638b22bf3fSmrg       }; then
38648b22bf3fSmrg  # Broken: success on invalid input.
38658b22bf3fSmrgcontinue
38668b22bf3fSmrgelse
386796a81b41Smrg  $as_echo "$as_me: failed program was:" >&5
38688b22bf3fSmrgsed 's/^/| /' conftest.$ac_ext >&5
38698b22bf3fSmrg
38708b22bf3fSmrg  # Passes both tests.
38718b22bf3fSmrgac_preproc_ok=:
38728b22bf3fSmrgbreak
38738b22bf3fSmrgfi
38748b22bf3fSmrg
38758b22bf3fSmrgrm -f conftest.err conftest.$ac_ext
38768b22bf3fSmrg
38778b22bf3fSmrgdone
38788b22bf3fSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
38798b22bf3fSmrgrm -f conftest.err conftest.$ac_ext
38808b22bf3fSmrgif $ac_preproc_ok; then
38818b22bf3fSmrg  :
38828b22bf3fSmrgelse
388396a81b41Smrg  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
388496a81b41Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
388596a81b41Smrg{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
38868b22bf3fSmrgSee \`config.log' for more details." >&5
388796a81b41Smrg$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
38888b22bf3fSmrgSee \`config.log' for more details." >&2;}
388996a81b41Smrg   { (exit 1); exit 1; }; }; }
38908b22bf3fSmrgfi
38918b22bf3fSmrg
38928b22bf3fSmrgac_ext=c
38938b22bf3fSmrgac_cpp='$CPP $CPPFLAGS'
38948b22bf3fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38958b22bf3fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38968b22bf3fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
38978b22bf3fSmrg
38988b22bf3fSmrg
389996a81b41Smrg{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
390096a81b41Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
39018b22bf3fSmrgif test "${ac_cv_path_GREP+set}" = set; then
390296a81b41Smrg  $as_echo_n "(cached) " >&6
39038b22bf3fSmrgelse
390496a81b41Smrg  if test -z "$GREP"; then
39058b22bf3fSmrg  ac_path_GREP_found=false
390696a81b41Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
390796a81b41Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39088b22bf3fSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
39098b22bf3fSmrgdo
39108b22bf3fSmrg  IFS=$as_save_IFS
39118b22bf3fSmrg  test -z "$as_dir" && as_dir=.
39128b22bf3fSmrg  for ac_prog in grep ggrep; do
391396a81b41Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
391496a81b41Smrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
391596a81b41Smrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
391696a81b41Smrg# Check for GNU ac_path_GREP and select it if it is found.
39178b22bf3fSmrg  # Check for GNU $ac_path_GREP
39188b22bf3fSmrgcase `"$ac_path_GREP" --version 2>&1` in
39198b22bf3fSmrg*GNU*)
39208b22bf3fSmrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
39218b22bf3fSmrg*)
39228b22bf3fSmrg  ac_count=0
392396a81b41Smrg  $as_echo_n 0123456789 >"conftest.in"
39248b22bf3fSmrg  while :
39258b22bf3fSmrg  do
39268b22bf3fSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
39278b22bf3fSmrg    mv "conftest.tmp" "conftest.in"
39288b22bf3fSmrg    cp "conftest.in" "conftest.nl"
392996a81b41Smrg    $as_echo 'GREP' >> "conftest.nl"
39308b22bf3fSmrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
39318b22bf3fSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
39328b22bf3fSmrg    ac_count=`expr $ac_count + 1`
39338b22bf3fSmrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
39348b22bf3fSmrg      # Best one so far, save it but keep looking for a better one
39358b22bf3fSmrg      ac_cv_path_GREP="$ac_path_GREP"
39368b22bf3fSmrg      ac_path_GREP_max=$ac_count
39378b22bf3fSmrg    fi
39388b22bf3fSmrg    # 10*(2^10) chars as input seems more than enough
39398b22bf3fSmrg    test $ac_count -gt 10 && break
39408b22bf3fSmrg  done
39418b22bf3fSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
39428b22bf3fSmrgesac
39438b22bf3fSmrg
394496a81b41Smrg      $ac_path_GREP_found && break 3
394596a81b41Smrg    done
39468b22bf3fSmrg  done
39478b22bf3fSmrgdone
39488b22bf3fSmrgIFS=$as_save_IFS
394996a81b41Smrg  if test -z "$ac_cv_path_GREP"; then
395096a81b41Smrg    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
395196a81b41Smrg$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
39528b22bf3fSmrg   { (exit 1); exit 1; }; }
395396a81b41Smrg  fi
39548b22bf3fSmrgelse
39558b22bf3fSmrg  ac_cv_path_GREP=$GREP
39568b22bf3fSmrgfi
39578b22bf3fSmrg
39588b22bf3fSmrgfi
395996a81b41Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
396096a81b41Smrg$as_echo "$ac_cv_path_GREP" >&6; }
39618b22bf3fSmrg GREP="$ac_cv_path_GREP"
39628b22bf3fSmrg
39638b22bf3fSmrg
396496a81b41Smrg{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
396596a81b41Smrg$as_echo_n "checking for egrep... " >&6; }
39668b22bf3fSmrgif test "${ac_cv_path_EGREP+set}" = set; then
396796a81b41Smrg  $as_echo_n "(cached) " >&6
39688b22bf3fSmrgelse
39698b22bf3fSmrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
39708b22bf3fSmrg   then ac_cv_path_EGREP="$GREP -E"
39718b22bf3fSmrg   else
397296a81b41Smrg     if test -z "$EGREP"; then
39738b22bf3fSmrg  ac_path_EGREP_found=false
397496a81b41Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
397596a81b41Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39768b22bf3fSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
39778b22bf3fSmrgdo
39788b22bf3fSmrg  IFS=$as_save_IFS
39798b22bf3fSmrg  test -z "$as_dir" && as_dir=.
39808b22bf3fSmrg  for ac_prog in egrep; do
398196a81b41Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
398296a81b41Smrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
398396a81b41Smrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
398496a81b41Smrg# Check for GNU ac_path_EGREP and select it if it is found.
39858b22bf3fSmrg  # Check for GNU $ac_path_EGREP
39868b22bf3fSmrgcase `"$ac_path_EGREP" --version 2>&1` in
39878b22bf3fSmrg*GNU*)
39888b22bf3fSmrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
39898b22bf3fSmrg*)
39908b22bf3fSmrg  ac_count=0
399196a81b41Smrg  $as_echo_n 0123456789 >"conftest.in"
39928b22bf3fSmrg  while :
39938b22bf3fSmrg  do
39948b22bf3fSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
39958b22bf3fSmrg    mv "conftest.tmp" "conftest.in"
39968b22bf3fSmrg    cp "conftest.in" "conftest.nl"
399796a81b41Smrg    $as_echo 'EGREP' >> "conftest.nl"
39988b22bf3fSmrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
39998b22bf3fSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
40008b22bf3fSmrg    ac_count=`expr $ac_count + 1`
40018b22bf3fSmrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
40028b22bf3fSmrg      # Best one so far, save it but keep looking for a better one
40038b22bf3fSmrg      ac_cv_path_EGREP="$ac_path_EGREP"
40048b22bf3fSmrg      ac_path_EGREP_max=$ac_count
40058b22bf3fSmrg    fi
40068b22bf3fSmrg    # 10*(2^10) chars as input seems more than enough
40078b22bf3fSmrg    test $ac_count -gt 10 && break
40088b22bf3fSmrg  done
40098b22bf3fSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
40108b22bf3fSmrgesac
40118b22bf3fSmrg
401296a81b41Smrg      $ac_path_EGREP_found && break 3
401396a81b41Smrg    done
40148b22bf3fSmrg  done
40158b22bf3fSmrgdone
40168b22bf3fSmrgIFS=$as_save_IFS
401796a81b41Smrg  if test -z "$ac_cv_path_EGREP"; then
401896a81b41Smrg    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
401996a81b41Smrg$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
40208b22bf3fSmrg   { (exit 1); exit 1; }; }
402196a81b41Smrg  fi
40228b22bf3fSmrgelse
40238b22bf3fSmrg  ac_cv_path_EGREP=$EGREP
40248b22bf3fSmrgfi
40258b22bf3fSmrg
40268b22bf3fSmrg   fi
40278b22bf3fSmrgfi
402896a81b41Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
402996a81b41Smrg$as_echo "$ac_cv_path_EGREP" >&6; }
40308b22bf3fSmrg EGREP="$ac_cv_path_EGREP"
40318b22bf3fSmrg
40328b22bf3fSmrg
403396a81b41Smrg{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
403496a81b41Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
40358b22bf3fSmrgif test "${ac_cv_header_stdc+set}" = set; then
403696a81b41Smrg  $as_echo_n "(cached) " >&6
40378b22bf3fSmrgelse
40388b22bf3fSmrg  cat >conftest.$ac_ext <<_ACEOF
40398b22bf3fSmrg/* confdefs.h.  */
40408b22bf3fSmrg_ACEOF
40418b22bf3fSmrgcat confdefs.h >>conftest.$ac_ext
40428b22bf3fSmrgcat >>conftest.$ac_ext <<_ACEOF
40438b22bf3fSmrg/* end confdefs.h.  */
40448b22bf3fSmrg#include <stdlib.h>
40458b22bf3fSmrg#include <stdarg.h>
40468b22bf3fSmrg#include <string.h>
40478b22bf3fSmrg#include <float.h>
40488b22bf3fSmrg
40498b22bf3fSmrgint
40508b22bf3fSmrgmain ()
40518b22bf3fSmrg{
40528b22bf3fSmrg
40538b22bf3fSmrg  ;
40548b22bf3fSmrg  return 0;
40558b22bf3fSmrg}
40568b22bf3fSmrg_ACEOF
40578b22bf3fSmrgrm -f conftest.$ac_objext
40588b22bf3fSmrgif { (ac_try="$ac_compile"
40598b22bf3fSmrgcase "(($ac_try" in
40608b22bf3fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40618b22bf3fSmrg  *) ac_try_echo=$ac_try;;
40628b22bf3fSmrgesac
406396a81b41Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
406496a81b41Smrg$as_echo "$ac_try_echo") >&5
40658b22bf3fSmrg  (eval "$ac_compile") 2>conftest.er1
40668b22bf3fSmrg  ac_status=$?
40678b22bf3fSmrg  grep -v '^ *+' conftest.er1 >conftest.err
40688b22bf3fSmrg  rm -f conftest.er1
40698b22bf3fSmrg  cat conftest.err >&5
407096a81b41Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40718b22bf3fSmrg  (exit $ac_status); } && {
40728b22bf3fSmrg	 test -z "$ac_c_werror_flag" ||
40738b22bf3fSmrg	 test ! -s conftest.err
40748b22bf3fSmrg       } && test -s conftest.$ac_objext; then
40758b22bf3fSmrg  ac_cv_header_stdc=yes
40768b22bf3fSmrgelse
407796a81b41Smrg  $as_echo "$as_me: failed program was:" >&5
40788b22bf3fSmrgsed 's/^/| /' conftest.$ac_ext >&5
40798b22bf3fSmrg
40808b22bf3fSmrg	ac_cv_header_stdc=no
40818b22bf3fSmrgfi
40828b22bf3fSmrg
40838b22bf3fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40848b22bf3fSmrg
40858b22bf3fSmrgif test $ac_cv_header_stdc = yes; then
40868b22bf3fSmrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
40878b22bf3fSmrg  cat >conftest.$ac_ext <<_ACEOF
40888b22bf3fSmrg/* confdefs.h.  */
40898b22bf3fSmrg_ACEOF
40908b22bf3fSmrgcat confdefs.h >>conftest.$ac_ext
40918b22bf3fSmrgcat >>conftest.$ac_ext <<_ACEOF
40928b22bf3fSmrg/* end confdefs.h.  */
40938b22bf3fSmrg#include <string.h>
40948b22bf3fSmrg
40958b22bf3fSmrg_ACEOF
40968b22bf3fSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40978b22bf3fSmrg  $EGREP "memchr" >/dev/null 2>&1; then
40988b22bf3fSmrg  :
40998b22bf3fSmrgelse
41008b22bf3fSmrg  ac_cv_header_stdc=no
41018b22bf3fSmrgfi
41028b22bf3fSmrgrm -f conftest*
41038b22bf3fSmrg
41048b22bf3fSmrgfi
41058b22bf3fSmrg
41068b22bf3fSmrgif test $ac_cv_header_stdc = yes; then
41078b22bf3fSmrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
41088b22bf3fSmrg  cat >conftest.$ac_ext <<_ACEOF
41098b22bf3fSmrg/* confdefs.h.  */
41108b22bf3fSmrg_ACEOF
41118b22bf3fSmrgcat confdefs.h >>conftest.$ac_ext
41128b22bf3fSmrgcat >>conftest.$ac_ext <<_ACEOF
41138b22bf3fSmrg/* end confdefs.h.  */
41148b22bf3fSmrg#include <stdlib.h>
41158b22bf3fSmrg
41168b22bf3fSmrg_ACEOF
41178b22bf3fSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41188b22bf3fSmrg  $EGREP "free" >/dev/null 2>&1; then
41198b22bf3fSmrg  :
41208b22bf3fSmrgelse
41218b22bf3fSmrg  ac_cv_header_stdc=no
41228b22bf3fSmrgfi
41238b22bf3fSmrgrm -f conftest*
41248b22bf3fSmrg
41258b22bf3fSmrgfi
41268b22bf3fSmrg
41278b22bf3fSmrgif test $ac_cv_header_stdc = yes; then
41288b22bf3fSmrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
41298b22bf3fSmrg  if test "$cross_compiling" = yes; then
41308b22bf3fSmrg  :
41318b22bf3fSmrgelse
41328b22bf3fSmrg  cat >conftest.$ac_ext <<_ACEOF
41338b22bf3fSmrg/* confdefs.h.  */
41348b22bf3fSmrg_ACEOF
41358b22bf3fSmrgcat confdefs.h >>conftest.$ac_ext
41368b22bf3fSmrgcat >>conftest.$ac_ext <<_ACEOF
41378b22bf3fSmrg/* end confdefs.h.  */
41388b22bf3fSmrg#include <ctype.h>
41398b22bf3fSmrg#include <stdlib.h>
41408b22bf3fSmrg#if ((' ' & 0x0FF) == 0x020)
41418b22bf3fSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
41428b22bf3fSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
41438b22bf3fSmrg#else
41448b22bf3fSmrg# define ISLOWER(c) \
41458b22bf3fSmrg		   (('a' <= (c) && (c) <= 'i') \
41468b22bf3fSmrg		     || ('j' <= (c) && (c) <= 'r') \
41478b22bf3fSmrg		     || ('s' <= (c) && (c) <= 'z'))
41488b22bf3fSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
41498b22bf3fSmrg#endif
41508b22bf3fSmrg
41518b22bf3fSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
41528b22bf3fSmrgint
41538b22bf3fSmrgmain ()
41548b22bf3fSmrg{
41558b22bf3fSmrg  int i;
41568b22bf3fSmrg  for (i = 0; i < 256; i++)
41578b22bf3fSmrg    if (XOR (islower (i), ISLOWER (i))
41588b22bf3fSmrg	|| toupper (i) != TOUPPER (i))
41598b22bf3fSmrg      return 2;
41608b22bf3fSmrg  return 0;
41618b22bf3fSmrg}
41628b22bf3fSmrg_ACEOF
41638b22bf3fSmrgrm -f conftest$ac_exeext
41648b22bf3fSmrgif { (ac_try="$ac_link"
41658b22bf3fSmrgcase "(($ac_try" in
41668b22bf3fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41678b22bf3fSmrg  *) ac_try_echo=$ac_try;;
41688b22bf3fSmrgesac
416996a81b41Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
417096a81b41Smrg$as_echo "$ac_try_echo") >&5
41718b22bf3fSmrg  (eval "$ac_link") 2>&5
41728b22bf3fSmrg  ac_status=$?
417396a81b41Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41748b22bf3fSmrg  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41758b22bf3fSmrg  { (case "(($ac_try" in
41768b22bf3fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41778b22bf3fSmrg  *) ac_try_echo=$ac_try;;
41788b22bf3fSmrgesac
417996a81b41Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
418096a81b41Smrg$as_echo "$ac_try_echo") >&5
41818b22bf3fSmrg  (eval "$ac_try") 2>&5
41828b22bf3fSmrg  ac_status=$?
418396a81b41Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41848b22bf3fSmrg  (exit $ac_status); }; }; then
41858b22bf3fSmrg  :
41868b22bf3fSmrgelse
418796a81b41Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
418896a81b41Smrg$as_echo "$as_me: failed program was:" >&5
41898b22bf3fSmrgsed 's/^/| /' conftest.$ac_ext >&5
41908b22bf3fSmrg
41918b22bf3fSmrg( exit $ac_status )
41928b22bf3fSmrgac_cv_header_stdc=no
41938b22bf3fSmrgfi
419496a81b41Smrgrm -rf conftest.dSYM
41958b22bf3fSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41968b22bf3fSmrgfi
41978b22bf3fSmrg
41988b22bf3fSmrg
41998b22bf3fSmrgfi
42008b22bf3fSmrgfi
420196a81b41Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
420296a81b41Smrg$as_echo "$ac_cv_header_stdc" >&6; }
42038b22bf3fSmrgif test $ac_cv_header_stdc = yes; then
42048b22bf3fSmrg
42058b22bf3fSmrgcat >>confdefs.h <<\_ACEOF
42068b22bf3fSmrg#define STDC_HEADERS 1
42078b22bf3fSmrg_ACEOF
42088b22bf3fSmrg
42098b22bf3fSmrgfi
42108b22bf3fSmrg
42118b22bf3fSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
42128b22bf3fSmrg
42138b22bf3fSmrg
42148b22bf3fSmrg
42158b22bf3fSmrg
42168b22bf3fSmrg
42178b22bf3fSmrg
42188b22bf3fSmrg
42198b22bf3fSmrg
42208b22bf3fSmrg
42218b22bf3fSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
42228b22bf3fSmrg		  inttypes.h stdint.h unistd.h
42238b22bf3fSmrgdo
422496a81b41Smrgas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
422596a81b41Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
422696a81b41Smrg$as_echo_n "checking for $ac_header... " >&6; }
42278b22bf3fSmrgif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
422896a81b41Smrg  $as_echo_n "(cached) " >&6
42298b22bf3fSmrgelse
42308b22bf3fSmrg  cat >conftest.$ac_ext <<_ACEOF
42318b22bf3fSmrg/* confdefs.h.  */
42328b22bf3fSmrg_ACEOF
42338b22bf3fSmrgcat confdefs.h >>conftest.$ac_ext
42348b22bf3fSmrgcat >>conftest.$ac_ext <<_ACEOF
42358b22bf3fSmrg/* end confdefs.h.  */
42368b22bf3fSmrg$ac_includes_default
42378b22bf3fSmrg
42388b22bf3fSmrg#include <$ac_header>
42398b22bf3fSmrg_ACEOF
42408b22bf3fSmrgrm -f conftest.$ac_objext
42418b22bf3fSmrgif { (ac_try="$ac_compile"
42428b22bf3fSmrgcase "(($ac_try" in
42438b22bf3fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42448b22bf3fSmrg  *) ac_try_echo=$ac_try;;
42458b22bf3fSmrgesac
424696a81b41Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
424796a81b41Smrg$as_echo "$ac_try_echo") >&5
42488b22bf3fSmrg  (eval "$ac_compile") 2>conftest.er1
42498b22bf3fSmrg  ac_status=$?
42508b22bf3fSmrg  grep -v '^ *+' conftest.er1 >conftest.err
42518b22bf3fSmrg  rm -f conftest.er1
42528b22bf3fSmrg  cat conftest.err >&5
425396a81b41Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42548b22bf3fSmrg  (exit $ac_status); } && {
42558b22bf3fSmrg	 test -z "$ac_c_werror_flag" ||
42568b22bf3fSmrg	 test ! -s conftest.err
42578b22bf3fSmrg       } && test -s conftest.$ac_objext; then
42588b22bf3fSmrg  eval "$as_ac_Header=yes"
42598b22bf3fSmrgelse
426096a81b41Smrg  $as_echo "$as_me: failed program was:" >&5
42618b22bf3fSmrgsed 's/^/| /' conftest.$ac_ext >&5
42628b22bf3fSmrg
42638b22bf3fSmrg	eval "$as_ac_Header=no"
42648b22bf3fSmrgfi
42658b22bf3fSmrg
42668b22bf3fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42678b22bf3fSmrgfi
426896a81b41Smrgac_res=`eval 'as_val=${'$as_ac_Header'}
426996a81b41Smrg		 $as_echo "$as_val"'`
427096a81b41Smrg	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
427196a81b41Smrg$as_echo "$ac_res" >&6; }
427296a81b41Smrgas_val=`eval 'as_val=${'$as_ac_Header'}
427396a81b41Smrg		 $as_echo "$as_val"'`
427496a81b41Smrg   if test "x$as_val" = x""yes; then
42758b22bf3fSmrg  cat >>confdefs.h <<_ACEOF
427696a81b41Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42778b22bf3fSmrg_ACEOF
42788b22bf3fSmrg
42798b22bf3fSmrgfi
42808b22bf3fSmrg
42818b22bf3fSmrgdone
42828b22bf3fSmrg
42838b22bf3fSmrg
428496a81b41Smrg   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
428596a81b41Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
428696a81b41Smrgif test "${ac_cv_prog_cc_c99+set}" = set; then
428796a81b41Smrg  $as_echo_n "(cached) " >&6
42888b22bf3fSmrgelse
428996a81b41Smrg  ac_cv_prog_cc_c99=no
429096a81b41Smrgac_save_CC=$CC
429196a81b41Smrgcat >conftest.$ac_ext <<_ACEOF
42928b22bf3fSmrg/* confdefs.h.  */
42938b22bf3fSmrg_ACEOF
42948b22bf3fSmrgcat confdefs.h >>conftest.$ac_ext
42958b22bf3fSmrgcat >>conftest.$ac_ext <<_ACEOF
42968b22bf3fSmrg/* end confdefs.h.  */
429796a81b41Smrg#include <stdarg.h>
429896a81b41Smrg#include <stdbool.h>
429996a81b41Smrg#include <stdlib.h>
430096a81b41Smrg#include <wchar.h>
430196a81b41Smrg#include <stdio.h>
43028b22bf3fSmrg
430396a81b41Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
430496a81b41Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
430596a81b41Smrg#define showlist(...) puts (#__VA_ARGS__)
430696a81b41Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
430796a81b41Smrgstatic void
430896a81b41Smrgtest_varargs_macros (void)
430996a81b41Smrg{
431096a81b41Smrg  int x = 1234;
431196a81b41Smrg  int y = 5678;
431296a81b41Smrg  debug ("Flag");
431396a81b41Smrg  debug ("X = %d\n", x);
431496a81b41Smrg  showlist (The first, second, and third items.);
431596a81b41Smrg  report (x>y, "x is %d but y is %d", x, y);
43168b22bf3fSmrg}
43178b22bf3fSmrg
431896a81b41Smrg// Check long long types.
431996a81b41Smrg#define BIG64 18446744073709551615ull
432096a81b41Smrg#define BIG32 4294967295ul
432196a81b41Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
432296a81b41Smrg#if !BIG_OK
432396a81b41Smrg  your preprocessor is broken;
432496a81b41Smrg#endif
432596a81b41Smrg#if BIG_OK
432696a81b41Smrg#else
432796a81b41Smrg  your preprocessor is broken;
432896a81b41Smrg#endif
432996a81b41Smrgstatic long long int bignum = -9223372036854775807LL;
433096a81b41Smrgstatic unsigned long long int ubignum = BIG64;
43318b22bf3fSmrg
433296a81b41Smrgstruct incomplete_array
433396a81b41Smrg{
433496a81b41Smrg  int datasize;
433596a81b41Smrg  double data[];
433696a81b41Smrg};
43378b22bf3fSmrg
433896a81b41Smrgstruct named_init {
433996a81b41Smrg  int number;
434096a81b41Smrg  const wchar_t *name;
434196a81b41Smrg  double average;
434296a81b41Smrg};
43438b22bf3fSmrg
434496a81b41Smrgtypedef const char *ccp;
43458b22bf3fSmrg
434696a81b41Smrgstatic inline int
434796a81b41Smrgtest_restrict (ccp restrict text)
434896a81b41Smrg{
434996a81b41Smrg  // See if C++-style comments work.
435096a81b41Smrg  // Iterate through items via the restricted pointer.
435196a81b41Smrg  // Also check for declarations in for loops.
435296a81b41Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
435396a81b41Smrg    continue;
435496a81b41Smrg  return 0;
435596a81b41Smrg}
435696a81b41Smrg
435796a81b41Smrg// Check varargs and va_copy.
435896a81b41Smrgstatic void
435996a81b41Smrgtest_varargs (const char *format, ...)
436096a81b41Smrg{
436196a81b41Smrg  va_list args;
436296a81b41Smrg  va_start (args, format);
436396a81b41Smrg  va_list args_copy;
436496a81b41Smrg  va_copy (args_copy, args);
436596a81b41Smrg
436696a81b41Smrg  const char *str;
436796a81b41Smrg  int number;
436896a81b41Smrg  float fnumber;
436996a81b41Smrg
437096a81b41Smrg  while (*format)
437196a81b41Smrg    {
437296a81b41Smrg      switch (*format++)
437396a81b41Smrg	{
437496a81b41Smrg	case 's': // string
437596a81b41Smrg	  str = va_arg (args_copy, const char *);
437696a81b41Smrg	  break;
437796a81b41Smrg	case 'd': // int
437896a81b41Smrg	  number = va_arg (args_copy, int);
437996a81b41Smrg	  break;
438096a81b41Smrg	case 'f': // float
438196a81b41Smrg	  fnumber = va_arg (args_copy, double);
438296a81b41Smrg	  break;
438396a81b41Smrg	default:
438496a81b41Smrg	  break;
438596a81b41Smrg	}
438696a81b41Smrg    }
438796a81b41Smrg  va_end (args_copy);
438896a81b41Smrg  va_end (args);
438996a81b41Smrg}
43908b22bf3fSmrg
43918b22bf3fSmrgint
43928b22bf3fSmrgmain ()
43938b22bf3fSmrg{
43948b22bf3fSmrg
439596a81b41Smrg  // Check bool.
439696a81b41Smrg  _Bool success = false;
43978b22bf3fSmrg
439896a81b41Smrg  // Check restrict.
439996a81b41Smrg  if (test_restrict ("String literal") == 0)
440096a81b41Smrg    success = true;
440196a81b41Smrg  char *restrict newvar = "Another string";
44028b22bf3fSmrg
440396a81b41Smrg  // Check varargs.
440496a81b41Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
440596a81b41Smrg  test_varargs_macros ();
44068b22bf3fSmrg
440796a81b41Smrg  // Check flexible array members.
440896a81b41Smrg  struct incomplete_array *ia =
440996a81b41Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
441096a81b41Smrg  ia->datasize = 10;
441196a81b41Smrg  for (int i = 0; i < ia->datasize; ++i)
441296a81b41Smrg    ia->data[i] = i * 1.234;
44138b22bf3fSmrg
441496a81b41Smrg  // Check named initializers.
441596a81b41Smrg  struct named_init ni = {
441696a81b41Smrg    .number = 34,
441796a81b41Smrg    .name = L"Test wide string",
441896a81b41Smrg    .average = 543.34343,
441996a81b41Smrg  };
442096a81b41Smrg
442196a81b41Smrg  ni.number = 58;
442296a81b41Smrg
442396a81b41Smrg  int dynamic_array[ni.number];
442496a81b41Smrg  dynamic_array[ni.number - 1] = 543;
442596a81b41Smrg
442696a81b41Smrg  // work around unused variable warnings
442796a81b41Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
442896a81b41Smrg	  || dynamic_array[ni.number - 1] != 543);
44298b22bf3fSmrg
44308b22bf3fSmrg  ;
44318b22bf3fSmrg  return 0;
44328b22bf3fSmrg}
44338b22bf3fSmrg_ACEOF
443496a81b41Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
443596a81b41Smrgdo
443696a81b41Smrg  CC="$ac_save_CC $ac_arg"
443796a81b41Smrg  rm -f conftest.$ac_objext
44388b22bf3fSmrgif { (ac_try="$ac_compile"
44398b22bf3fSmrgcase "(($ac_try" in
44408b22bf3fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44418b22bf3fSmrg  *) ac_try_echo=$ac_try;;
44428b22bf3fSmrgesac
444396a81b41Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
444496a81b41Smrg$as_echo "$ac_try_echo") >&5
44458b22bf3fSmrg  (eval "$ac_compile") 2>conftest.er1
44468b22bf3fSmrg  ac_status=$?
44478b22bf3fSmrg  grep -v '^ *+' conftest.er1 >conftest.err
44488b22bf3fSmrg  rm -f conftest.er1
44498b22bf3fSmrg  cat conftest.err >&5
445096a81b41Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44518b22bf3fSmrg  (exit $ac_status); } && {
44528b22bf3fSmrg	 test -z "$ac_c_werror_flag" ||
44538b22bf3fSmrg	 test ! -s conftest.err
44548b22bf3fSmrg       } && test -s conftest.$ac_objext; then
445596a81b41Smrg  ac_cv_prog_cc_c99=$ac_arg
44568b22bf3fSmrgelse
445796a81b41Smrg  $as_echo "$as_me: failed program was:" >&5
44588b22bf3fSmrgsed 's/^/| /' conftest.$ac_ext >&5
44598b22bf3fSmrg
44608b22bf3fSmrg
44618b22bf3fSmrgfi
44628b22bf3fSmrg
446396a81b41Smrgrm -f core conftest.err conftest.$ac_objext
446496a81b41Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
446596a81b41Smrgdone
446696a81b41Smrgrm -f conftest.$ac_ext
446796a81b41SmrgCC=$ac_save_CC
44688b22bf3fSmrg
44698b22bf3fSmrgfi
447096a81b41Smrg# AC_CACHE_VAL
447196a81b41Smrgcase "x$ac_cv_prog_cc_c99" in
447296a81b41Smrg  x)
447396a81b41Smrg    { $as_echo "$as_me:$LINENO: result: none needed" >&5
447496a81b41Smrg$as_echo "none needed" >&6; } ;;
447596a81b41Smrg  xno)
447696a81b41Smrg    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
447796a81b41Smrg$as_echo "unsupported" >&6; } ;;
447896a81b41Smrg  *)
447996a81b41Smrg    CC="$CC $ac_cv_prog_cc_c99"
448096a81b41Smrg    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
448196a81b41Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
448296a81b41Smrgesac
44838b22bf3fSmrg
44848b22bf3fSmrg
448596a81b41Smrg
448696a81b41Smrg# Make sure we can run config.sub.
448796a81b41Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
448896a81b41Smrg  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
448996a81b41Smrg$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
449096a81b41Smrg   { (exit 1); exit 1; }; }
449196a81b41Smrg
449296a81b41Smrg{ $as_echo "$as_me:$LINENO: checking build system type" >&5
449396a81b41Smrg$as_echo_n "checking build system type... " >&6; }
449496a81b41Smrgif test "${ac_cv_build+set}" = set; then
449596a81b41Smrg  $as_echo_n "(cached) " >&6
449696a81b41Smrgelse
449796a81b41Smrg  ac_build_alias=$build_alias
449896a81b41Smrgtest "x$ac_build_alias" = x &&
449996a81b41Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
450096a81b41Smrgtest "x$ac_build_alias" = x &&
450196a81b41Smrg  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
450296a81b41Smrg$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
450396a81b41Smrg   { (exit 1); exit 1; }; }
450496a81b41Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
450596a81b41Smrg  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
450696a81b41Smrg$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
450796a81b41Smrg   { (exit 1); exit 1; }; }
450896a81b41Smrg
450996a81b41Smrgfi
451096a81b41Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
451196a81b41Smrg$as_echo "$ac_cv_build" >&6; }
451296a81b41Smrgcase $ac_cv_build in
451396a81b41Smrg*-*-*) ;;
451496a81b41Smrg*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
451596a81b41Smrg$as_echo "$as_me: error: invalid value of canonical build" >&2;}
451696a81b41Smrg   { (exit 1); exit 1; }; };;
451796a81b41Smrgesac
451896a81b41Smrgbuild=$ac_cv_build
451996a81b41Smrgac_save_IFS=$IFS; IFS='-'
452096a81b41Smrgset x $ac_cv_build
452196a81b41Smrgshift
452296a81b41Smrgbuild_cpu=$1
452396a81b41Smrgbuild_vendor=$2
452496a81b41Smrgshift; shift
452596a81b41Smrg# Remember, the first character of IFS is used to create $*,
452696a81b41Smrg# except with old shells:
452796a81b41Smrgbuild_os=$*
452896a81b41SmrgIFS=$ac_save_IFS
452996a81b41Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
453096a81b41Smrg
453196a81b41Smrg
453296a81b41Smrg{ $as_echo "$as_me:$LINENO: checking host system type" >&5
453396a81b41Smrg$as_echo_n "checking host system type... " >&6; }
453496a81b41Smrgif test "${ac_cv_host+set}" = set; then
453596a81b41Smrg  $as_echo_n "(cached) " >&6
453696a81b41Smrgelse
453796a81b41Smrg  if test "x$host_alias" = x; then
453896a81b41Smrg  ac_cv_host=$ac_cv_build
453996a81b41Smrgelse
454096a81b41Smrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
454196a81b41Smrg    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
454296a81b41Smrg$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
454396a81b41Smrg   { (exit 1); exit 1; }; }
454496a81b41Smrgfi
454596a81b41Smrg
454696a81b41Smrgfi
454796a81b41Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
454896a81b41Smrg$as_echo "$ac_cv_host" >&6; }
454996a81b41Smrgcase $ac_cv_host in
455096a81b41Smrg*-*-*) ;;
455196a81b41Smrg*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
455296a81b41Smrg$as_echo "$as_me: error: invalid value of canonical host" >&2;}
455396a81b41Smrg   { (exit 1); exit 1; }; };;
455496a81b41Smrgesac
455596a81b41Smrghost=$ac_cv_host
455696a81b41Smrgac_save_IFS=$IFS; IFS='-'
455796a81b41Smrgset x $ac_cv_host
455896a81b41Smrgshift
455996a81b41Smrghost_cpu=$1
456096a81b41Smrghost_vendor=$2
456196a81b41Smrgshift; shift
456296a81b41Smrg# Remember, the first character of IFS is used to create $*,
456396a81b41Smrg# except with old shells:
456496a81b41Smrghost_os=$*
456596a81b41SmrgIFS=$ac_save_IFS
456696a81b41Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
456796a81b41Smrg
456896a81b41Smrg
456996a81b41Smrg
457096a81b41Smrg
457196a81b41Smrg
457296a81b41Smrgif  test "x$GCC" = xyes ; then
457396a81b41Smrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
457496a81b41Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
457596a81b41Smrg-Wbad-function-cast"
457696a81b41Smrg    case `$CC -dumpversion` in
457796a81b41Smrg    3.4.* | 4.*)
457896a81b41Smrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
457996a81b41Smrg	;;
458096a81b41Smrg    esac
458196a81b41Smrgelse
458296a81b41Smrg    { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
458396a81b41Smrg$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
458496a81b41Smrgif test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
458596a81b41Smrg  $as_echo_n "(cached) " >&6
458696a81b41Smrgelse
458796a81b41Smrg  cat >conftest.$ac_ext <<_ACEOF
458896a81b41Smrg/* confdefs.h.  */
458996a81b41Smrg_ACEOF
459096a81b41Smrgcat confdefs.h >>conftest.$ac_ext
459196a81b41Smrgcat >>conftest.$ac_ext <<_ACEOF
459296a81b41Smrg/* end confdefs.h.  */
459396a81b41Smrg$ac_includes_default
459496a81b41Smrgint
459596a81b41Smrgmain ()
459696a81b41Smrg{
459796a81b41Smrg#ifndef __SUNPRO_C
459896a81b41Smrg  (void) __SUNPRO_C;
459996a81b41Smrg#endif
460096a81b41Smrg
460196a81b41Smrg  ;
460296a81b41Smrg  return 0;
460396a81b41Smrg}
460496a81b41Smrg_ACEOF
460596a81b41Smrgrm -f conftest.$ac_objext
460696a81b41Smrgif { (ac_try="$ac_compile"
460796a81b41Smrgcase "(($ac_try" in
460896a81b41Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
460996a81b41Smrg  *) ac_try_echo=$ac_try;;
461096a81b41Smrgesac
461196a81b41Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
461296a81b41Smrg$as_echo "$ac_try_echo") >&5
461396a81b41Smrg  (eval "$ac_compile") 2>conftest.er1
461496a81b41Smrg  ac_status=$?
461596a81b41Smrg  grep -v '^ *+' conftest.er1 >conftest.err
461696a81b41Smrg  rm -f conftest.er1
461796a81b41Smrg  cat conftest.err >&5
461896a81b41Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
461996a81b41Smrg  (exit $ac_status); } && {
462096a81b41Smrg	 test -z "$ac_c_werror_flag" ||
462196a81b41Smrg	 test ! -s conftest.err
462296a81b41Smrg       } && test -s conftest.$ac_objext; then
462396a81b41Smrg  ac_cv_have_decl___SUNPRO_C=yes
462496a81b41Smrgelse
462596a81b41Smrg  $as_echo "$as_me: failed program was:" >&5
462696a81b41Smrgsed 's/^/| /' conftest.$ac_ext >&5
462796a81b41Smrg
462896a81b41Smrg	ac_cv_have_decl___SUNPRO_C=no
462996a81b41Smrgfi
463096a81b41Smrg
463196a81b41Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
463296a81b41Smrgfi
463396a81b41Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
463496a81b41Smrg$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
463596a81b41Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
463696a81b41Smrg  SUNCC="yes"
463796a81b41Smrgelse
463896a81b41Smrg  SUNCC="no"
463996a81b41Smrgfi
464096a81b41Smrg
464196a81b41Smrg    if test "x$SUNCC" = "xyes"; then
464296a81b41Smrg	CWARNFLAGS="-v"
464396a81b41Smrg    fi
464496a81b41Smrgfi
464596a81b41Smrg
464696a81b41Smrg# Check whether --enable-silent-rules was given.
464796a81b41Smrgif test "${enable_silent_rules+set}" = set; then
464896a81b41Smrg  enableval=$enable_silent_rules;
464996a81b41Smrgfi
465096a81b41Smrg
465196a81b41Smrgcase $enable_silent_rules in
465296a81b41Smrgyes) AM_DEFAULT_VERBOSITY=0;;
465396a81b41Smrgno)  AM_DEFAULT_VERBOSITY=1;;
465496a81b41Smrg*)   AM_DEFAULT_VERBOSITY=0;;
465596a81b41Smrgesac
465696a81b41SmrgAM_BACKSLASH='\'
465796a81b41Smrg
465896a81b41Smrg
465996a81b41Smrg
466096a81b41Smrg
466196a81b41Smrg
466296a81b41Smrg
466396a81b41Smrg
466496a81b41Smrg# Check whether --enable-strict-compilation was given.
466596a81b41Smrgif test "${enable_strict_compilation+set}" = set; then
466696a81b41Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
466796a81b41Smrgelse
466896a81b41Smrg  STRICT_COMPILE=no
466996a81b41Smrgfi
467096a81b41Smrg
467196a81b41Smrgif test "x$STRICT_COMPILE" = "xyes"; then
467296a81b41Smrg	{ $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
467396a81b41Smrg$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
467496a81b41Smrgif test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
467596a81b41Smrg  $as_echo_n "(cached) " >&6
467696a81b41Smrgelse
467796a81b41Smrg  cat >conftest.$ac_ext <<_ACEOF
467896a81b41Smrg/* confdefs.h.  */
467996a81b41Smrg_ACEOF
468096a81b41Smrgcat confdefs.h >>conftest.$ac_ext
468196a81b41Smrgcat >>conftest.$ac_ext <<_ACEOF
468296a81b41Smrg/* end confdefs.h.  */
468396a81b41Smrg$ac_includes_default
468496a81b41Smrgint
468596a81b41Smrgmain ()
468696a81b41Smrg{
468796a81b41Smrg#ifndef __SUNPRO_C
468896a81b41Smrg  (void) __SUNPRO_C;
468996a81b41Smrg#endif
469096a81b41Smrg
469196a81b41Smrg  ;
469296a81b41Smrg  return 0;
469396a81b41Smrg}
469496a81b41Smrg_ACEOF
469596a81b41Smrgrm -f conftest.$ac_objext
469696a81b41Smrgif { (ac_try="$ac_compile"
469796a81b41Smrgcase "(($ac_try" in
469896a81b41Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
469996a81b41Smrg  *) ac_try_echo=$ac_try;;
470096a81b41Smrgesac
470196a81b41Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
470296a81b41Smrg$as_echo "$ac_try_echo") >&5
470396a81b41Smrg  (eval "$ac_compile") 2>conftest.er1
470496a81b41Smrg  ac_status=$?
470596a81b41Smrg  grep -v '^ *+' conftest.er1 >conftest.err
470696a81b41Smrg  rm -f conftest.er1
470796a81b41Smrg  cat conftest.err >&5
470896a81b41Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
470996a81b41Smrg  (exit $ac_status); } && {
471096a81b41Smrg	 test -z "$ac_c_werror_flag" ||
471196a81b41Smrg	 test ! -s conftest.err
471296a81b41Smrg       } && test -s conftest.$ac_objext; then
471396a81b41Smrg  ac_cv_have_decl___SUNPRO_C=yes
471496a81b41Smrgelse
471596a81b41Smrg  $as_echo "$as_me: failed program was:" >&5
471696a81b41Smrgsed 's/^/| /' conftest.$ac_ext >&5
471796a81b41Smrg
471896a81b41Smrg	ac_cv_have_decl___SUNPRO_C=no
471996a81b41Smrgfi
472096a81b41Smrg
472196a81b41Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
472296a81b41Smrgfi
472396a81b41Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
472496a81b41Smrg$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
472596a81b41Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
472696a81b41Smrg  SUNCC="yes"
472796a81b41Smrgelse
472896a81b41Smrg  SUNCC="no"
472996a81b41Smrgfi
473096a81b41Smrg
473196a81b41Smrg	{ $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
473296a81b41Smrg$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
473396a81b41Smrgif test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
473496a81b41Smrg  $as_echo_n "(cached) " >&6
473596a81b41Smrgelse
473696a81b41Smrg  cat >conftest.$ac_ext <<_ACEOF
473796a81b41Smrg/* confdefs.h.  */
473896a81b41Smrg_ACEOF
473996a81b41Smrgcat confdefs.h >>conftest.$ac_ext
474096a81b41Smrgcat >>conftest.$ac_ext <<_ACEOF
474196a81b41Smrg/* end confdefs.h.  */
474296a81b41Smrg$ac_includes_default
474396a81b41Smrgint
474496a81b41Smrgmain ()
474596a81b41Smrg{
474696a81b41Smrg#ifndef __INTEL_COMPILER
474796a81b41Smrg  (void) __INTEL_COMPILER;
474896a81b41Smrg#endif
474996a81b41Smrg
475096a81b41Smrg  ;
475196a81b41Smrg  return 0;
475296a81b41Smrg}
475396a81b41Smrg_ACEOF
475496a81b41Smrgrm -f conftest.$ac_objext
475596a81b41Smrgif { (ac_try="$ac_compile"
475696a81b41Smrgcase "(($ac_try" in
475796a81b41Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
475896a81b41Smrg  *) ac_try_echo=$ac_try;;
475996a81b41Smrgesac
476096a81b41Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
476196a81b41Smrg$as_echo "$ac_try_echo") >&5
476296a81b41Smrg  (eval "$ac_compile") 2>conftest.er1
476396a81b41Smrg  ac_status=$?
476496a81b41Smrg  grep -v '^ *+' conftest.er1 >conftest.err
476596a81b41Smrg  rm -f conftest.er1
476696a81b41Smrg  cat conftest.err >&5
476796a81b41Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
476896a81b41Smrg  (exit $ac_status); } && {
476996a81b41Smrg	 test -z "$ac_c_werror_flag" ||
477096a81b41Smrg	 test ! -s conftest.err
477196a81b41Smrg       } && test -s conftest.$ac_objext; then
477296a81b41Smrg  ac_cv_have_decl___INTEL_COMPILER=yes
477396a81b41Smrgelse
477496a81b41Smrg  $as_echo "$as_me: failed program was:" >&5
477596a81b41Smrgsed 's/^/| /' conftest.$ac_ext >&5
477696a81b41Smrg
477796a81b41Smrg	ac_cv_have_decl___INTEL_COMPILER=no
477896a81b41Smrgfi
477996a81b41Smrg
478096a81b41Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
478196a81b41Smrgfi
478296a81b41Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
478396a81b41Smrg$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
478496a81b41Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then
478596a81b41Smrg  INTELCC="yes"
478696a81b41Smrgelse
478796a81b41Smrg  INTELCC="no"
478896a81b41Smrgfi
478996a81b41Smrg
479096a81b41Smrg	if test "x$GCC" = xyes ; then
479196a81b41Smrg		STRICT_CFLAGS="-pedantic -Werror"
479296a81b41Smrg	elif test "x$SUNCC" = "xyes"; then
479396a81b41Smrg		STRICT_CFLAGS="-errwarn"
479496a81b41Smrg    elif test "x$INTELCC" = "xyes"; then
479596a81b41Smrg		STRICT_CFLAGS="-Werror"
479696a81b41Smrg	fi
479796a81b41Smrgfi
479896a81b41SmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
479996a81b41Smrg
480096a81b41Smrg
480196a81b41Smrg
480296a81b41Smrg
480396a81b41Smrg# Check whether --with-release-version was given.
480496a81b41Smrgif test "${with_release_version+set}" = set; then
480596a81b41Smrg  withval=$with_release_version; RELEASE_VERSION="$withval"
480696a81b41Smrgelse
480796a81b41Smrg  RELEASE_VERSION=""
480896a81b41Smrgfi
480996a81b41Smrg
481096a81b41Smrg	if test "x$RELEASE_VERSION" != "x"; then
481196a81b41Smrg		PACKAGE="$PACKAGE-$RELEASE_VERSION"
481296a81b41Smrg		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
481396a81b41Smrg		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
481496a81b41Smrg$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
481596a81b41Smrg	fi
481696a81b41Smrg
481796a81b41Smrgcat >>confdefs.h <<_ACEOF
481896a81b41Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
481996a81b41Smrg_ACEOF
482096a81b41Smrg
482196a81b41Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
482296a81b41Smrg	if test "x$PVM" = "x"; then
482396a81b41Smrg		PVM="0"
482496a81b41Smrg	fi
482596a81b41Smrg
482696a81b41Smrgcat >>confdefs.h <<_ACEOF
482796a81b41Smrg#define PACKAGE_VERSION_MINOR $PVM
482896a81b41Smrg_ACEOF
482996a81b41Smrg
483096a81b41Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
483196a81b41Smrg	if test "x$PVP" = "x"; then
483296a81b41Smrg		PVP="0"
483396a81b41Smrg	fi
483496a81b41Smrg
483596a81b41Smrgcat >>confdefs.h <<_ACEOF
483696a81b41Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
483796a81b41Smrg_ACEOF
483896a81b41Smrg
483996a81b41Smrg
484096a81b41Smrg
484196a81b41SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
484296a81b41Smrgmv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
484396a81b41Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
484496a81b41Smrg
484596a81b41Smrgdistcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
484696a81b41Smrg
484796a81b41Smrg
484896a81b41Smrg
484996a81b41Smrg
485096a81b41Smrg
485196a81b41Smrgif test x$APP_MAN_SUFFIX = x    ; then
485296a81b41Smrg    APP_MAN_SUFFIX=1
485396a81b41Smrgfi
485496a81b41Smrgif test x$APP_MAN_DIR = x    ; then
485596a81b41Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
485696a81b41Smrgfi
485796a81b41Smrg
485896a81b41Smrgif test x$LIB_MAN_SUFFIX = x    ; then
485996a81b41Smrg    LIB_MAN_SUFFIX=3
486096a81b41Smrgfi
486196a81b41Smrgif test x$LIB_MAN_DIR = x    ; then
486296a81b41Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
486396a81b41Smrgfi
486496a81b41Smrg
486596a81b41Smrgif test x$FILE_MAN_SUFFIX = x    ; then
486696a81b41Smrg    case $host_os in
486796a81b41Smrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
486896a81b41Smrg	*)		FILE_MAN_SUFFIX=5  ;;
486996a81b41Smrg    esac
487096a81b41Smrgfi
487196a81b41Smrgif test x$FILE_MAN_DIR = x    ; then
487296a81b41Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
487396a81b41Smrgfi
487496a81b41Smrg
487596a81b41Smrgif test x$MISC_MAN_SUFFIX = x    ; then
487696a81b41Smrg    case $host_os in
487796a81b41Smrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
487896a81b41Smrg	*)		MISC_MAN_SUFFIX=7  ;;
487996a81b41Smrg    esac
488096a81b41Smrgfi
488196a81b41Smrgif test x$MISC_MAN_DIR = x    ; then
488296a81b41Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
488396a81b41Smrgfi
488496a81b41Smrg
488596a81b41Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
488696a81b41Smrg    case $host_os in
488796a81b41Smrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
488896a81b41Smrg	*)		DRIVER_MAN_SUFFIX=4  ;;
488996a81b41Smrg    esac
489096a81b41Smrgfi
489196a81b41Smrgif test x$DRIVER_MAN_DIR = x    ; then
489296a81b41Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
489396a81b41Smrgfi
489496a81b41Smrg
489596a81b41Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
489696a81b41Smrg    case $host_os in
489796a81b41Smrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
489896a81b41Smrg	*)		ADMIN_MAN_SUFFIX=8  ;;
489996a81b41Smrg    esac
490096a81b41Smrgfi
490196a81b41Smrgif test x$ADMIN_MAN_DIR = x    ; then
490296a81b41Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
490396a81b41Smrgfi
490496a81b41Smrg
490596a81b41Smrg
490696a81b41Smrg
490796a81b41Smrg
490896a81b41Smrg
490996a81b41Smrg
491096a81b41Smrg
491196a81b41Smrg
491296a81b41Smrg
491396a81b41Smrg
491496a81b41Smrg
491596a81b41Smrg
491696a81b41Smrg
491796a81b41Smrg
491896a81b41Smrg
491996a81b41Smrg
492096a81b41Smrg
492196a81b41Smrg{ $as_echo "$as_me:$LINENO: checking for mkstemp" >&5
492296a81b41Smrg$as_echo_n "checking for mkstemp... " >&6; }
492396a81b41Smrgif test "${ac_cv_func_mkstemp+set}" = set; then
492496a81b41Smrg  $as_echo_n "(cached) " >&6
492596a81b41Smrgelse
492696a81b41Smrg  cat >conftest.$ac_ext <<_ACEOF
492796a81b41Smrg/* confdefs.h.  */
492896a81b41Smrg_ACEOF
492996a81b41Smrgcat confdefs.h >>conftest.$ac_ext
493096a81b41Smrgcat >>conftest.$ac_ext <<_ACEOF
493196a81b41Smrg/* end confdefs.h.  */
493296a81b41Smrg/* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
493396a81b41Smrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
493496a81b41Smrg#define mkstemp innocuous_mkstemp
493596a81b41Smrg
493696a81b41Smrg/* System header to define __stub macros and hopefully few prototypes,
493796a81b41Smrg    which can conflict with char mkstemp (); below.
493896a81b41Smrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
493996a81b41Smrg    <limits.h> exists even on freestanding compilers.  */
494096a81b41Smrg
494196a81b41Smrg#ifdef __STDC__
494296a81b41Smrg# include <limits.h>
494396a81b41Smrg#else
494496a81b41Smrg# include <assert.h>
494596a81b41Smrg#endif
494696a81b41Smrg
494796a81b41Smrg#undef mkstemp
494896a81b41Smrg
494996a81b41Smrg/* Override any GCC internal prototype to avoid an error.
495096a81b41Smrg   Use char because int might match the return type of a GCC
495196a81b41Smrg   builtin and then its argument prototype would still apply.  */
495296a81b41Smrg#ifdef __cplusplus
495396a81b41Smrgextern "C"
495496a81b41Smrg#endif
495596a81b41Smrgchar mkstemp ();
495696a81b41Smrg/* The GNU C library defines this for functions which it implements
495796a81b41Smrg    to always fail with ENOSYS.  Some functions are actually named
495896a81b41Smrg    something starting with __ and the normal name is an alias.  */
495996a81b41Smrg#if defined __stub_mkstemp || defined __stub___mkstemp
496096a81b41Smrgchoke me
496196a81b41Smrg#endif
496296a81b41Smrg
496396a81b41Smrgint
496496a81b41Smrgmain ()
496596a81b41Smrg{
496696a81b41Smrgreturn mkstemp ();
496796a81b41Smrg  ;
496896a81b41Smrg  return 0;
496996a81b41Smrg}
497096a81b41Smrg_ACEOF
497196a81b41Smrgrm -f conftest.$ac_objext conftest$ac_exeext
497296a81b41Smrgif { (ac_try="$ac_link"
497396a81b41Smrgcase "(($ac_try" in
497496a81b41Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
497596a81b41Smrg  *) ac_try_echo=$ac_try;;
497696a81b41Smrgesac
497796a81b41Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
497896a81b41Smrg$as_echo "$ac_try_echo") >&5
497996a81b41Smrg  (eval "$ac_link") 2>conftest.er1
498096a81b41Smrg  ac_status=$?
498196a81b41Smrg  grep -v '^ *+' conftest.er1 >conftest.err
498296a81b41Smrg  rm -f conftest.er1
498396a81b41Smrg  cat conftest.err >&5
498496a81b41Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
498596a81b41Smrg  (exit $ac_status); } && {
498696a81b41Smrg	 test -z "$ac_c_werror_flag" ||
498796a81b41Smrg	 test ! -s conftest.err
498896a81b41Smrg       } && test -s conftest$ac_exeext && {
498996a81b41Smrg	 test "$cross_compiling" = yes ||
499096a81b41Smrg	 $as_test_x conftest$ac_exeext
499196a81b41Smrg       }; then
499296a81b41Smrg  ac_cv_func_mkstemp=yes
499396a81b41Smrgelse
499496a81b41Smrg  $as_echo "$as_me: failed program was:" >&5
499596a81b41Smrgsed 's/^/| /' conftest.$ac_ext >&5
499696a81b41Smrg
499796a81b41Smrg	ac_cv_func_mkstemp=no
499896a81b41Smrgfi
499996a81b41Smrg
500096a81b41Smrgrm -rf conftest.dSYM
500196a81b41Smrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
500296a81b41Smrg      conftest$ac_exeext conftest.$ac_ext
500396a81b41Smrgfi
500496a81b41Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
500596a81b41Smrg$as_echo "$ac_cv_func_mkstemp" >&6; }
500696a81b41Smrgif test "x$ac_cv_func_mkstemp" = x""yes; then
500796a81b41Smrg
500896a81b41Smrgcat >>confdefs.h <<\_ACEOF
500996a81b41Smrg#define HAS_MKSTEMP 1
501096a81b41Smrg_ACEOF
501196a81b41Smrg
501296a81b41Smrgfi
501396a81b41Smrg
501496a81b41Smrg
501596a81b41Smrg# Find MAXHOSTNAMELEN definition
501696a81b41Smrg# Common hidey holes:
501796a81b41Smrg#  BSD & Linux - <sys/param.h>
501896a81b41Smrg#  Solaris - <netdb.h>
501996a81b41Smrg
502096a81b41Smrg{ $as_echo "$as_me:$LINENO: checking whether MAXHOSTNAMELEN is declared" >&5
502196a81b41Smrg$as_echo_n "checking whether MAXHOSTNAMELEN is declared... " >&6; }
502296a81b41Smrgif test "${ac_cv_have_decl_MAXHOSTNAMELEN+set}" = set; then
502396a81b41Smrg  $as_echo_n "(cached) " >&6
502496a81b41Smrgelse
502596a81b41Smrg  cat >conftest.$ac_ext <<_ACEOF
502696a81b41Smrg/* confdefs.h.  */
502796a81b41Smrg_ACEOF
502896a81b41Smrgcat confdefs.h >>conftest.$ac_ext
502996a81b41Smrgcat >>conftest.$ac_ext <<_ACEOF
503096a81b41Smrg/* end confdefs.h.  */
503196a81b41Smrg$ac_includes_default
503296a81b41Smrgint
503396a81b41Smrgmain ()
503496a81b41Smrg{
503596a81b41Smrg#ifndef MAXHOSTNAMELEN
503696a81b41Smrg  (void) MAXHOSTNAMELEN;
503796a81b41Smrg#endif
503896a81b41Smrg
503996a81b41Smrg  ;
504096a81b41Smrg  return 0;
504196a81b41Smrg}
504296a81b41Smrg_ACEOF
504396a81b41Smrgrm -f conftest.$ac_objext
504496a81b41Smrgif { (ac_try="$ac_compile"
504596a81b41Smrgcase "(($ac_try" in
504696a81b41Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
504796a81b41Smrg  *) ac_try_echo=$ac_try;;
504896a81b41Smrgesac
504996a81b41Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
505096a81b41Smrg$as_echo "$ac_try_echo") >&5
505196a81b41Smrg  (eval "$ac_compile") 2>conftest.er1
505296a81b41Smrg  ac_status=$?
505396a81b41Smrg  grep -v '^ *+' conftest.er1 >conftest.err
505496a81b41Smrg  rm -f conftest.er1
505596a81b41Smrg  cat conftest.err >&5
505696a81b41Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
505796a81b41Smrg  (exit $ac_status); } && {
505896a81b41Smrg	 test -z "$ac_c_werror_flag" ||
505996a81b41Smrg	 test ! -s conftest.err
506096a81b41Smrg       } && test -s conftest.$ac_objext; then
506196a81b41Smrg  ac_cv_have_decl_MAXHOSTNAMELEN=yes
506296a81b41Smrgelse
506396a81b41Smrg  $as_echo "$as_me: failed program was:" >&5
506496a81b41Smrgsed 's/^/| /' conftest.$ac_ext >&5
506596a81b41Smrg
506696a81b41Smrg	ac_cv_have_decl_MAXHOSTNAMELEN=no
506796a81b41Smrgfi
506896a81b41Smrg
506996a81b41Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
507096a81b41Smrgfi
507196a81b41Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_MAXHOSTNAMELEN" >&5
507296a81b41Smrg$as_echo "$ac_cv_have_decl_MAXHOSTNAMELEN" >&6; }
507396a81b41Smrgif test "x$ac_cv_have_decl_MAXHOSTNAMELEN" = x""yes; then
507496a81b41Smrg  FOUND_MAXHOSTNAMELEN=yes
507596a81b41Smrgfi
507696a81b41Smrg
507796a81b41Smrg
507896a81b41Smrgif test x$FOUND_MAXHOSTNAMELEN != xyes ; then
507996a81b41Smrg	{ $as_echo "$as_me:$LINENO: checking for header that defines MAXHOSTNAMELEN" >&5
508096a81b41Smrg$as_echo_n "checking for header that defines MAXHOSTNAMELEN... " >&6; }
508196a81b41Smrg
508296a81b41Smrg	FOUND_MAXHOSTNAMELEN='not found'
508396a81b41Smrg
508496a81b41Smrg	cat >conftest.$ac_ext <<_ACEOF
508596a81b41Smrg/* confdefs.h.  */
508696a81b41Smrg_ACEOF
508796a81b41Smrgcat confdefs.h >>conftest.$ac_ext
508896a81b41Smrgcat >>conftest.$ac_ext <<_ACEOF
508996a81b41Smrg/* end confdefs.h.  */
509096a81b41Smrg#include <sys/param.h>
509196a81b41Smrgint
509296a81b41Smrgmain ()
509396a81b41Smrg{
509496a81b41Smrgint h = MAXHOSTNAMELEN;
509596a81b41Smrg  ;
509696a81b41Smrg  return 0;
509796a81b41Smrg}
509896a81b41Smrg_ACEOF
509996a81b41Smrgrm -f conftest.$ac_objext
510096a81b41Smrgif { (ac_try="$ac_compile"
510196a81b41Smrgcase "(($ac_try" in
510296a81b41Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
510396a81b41Smrg  *) ac_try_echo=$ac_try;;
510496a81b41Smrgesac
510596a81b41Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
510696a81b41Smrg$as_echo "$ac_try_echo") >&5
510796a81b41Smrg  (eval "$ac_compile") 2>conftest.er1
510896a81b41Smrg  ac_status=$?
510996a81b41Smrg  grep -v '^ *+' conftest.er1 >conftest.err
511096a81b41Smrg  rm -f conftest.er1
511196a81b41Smrg  cat conftest.err >&5
511296a81b41Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
511396a81b41Smrg  (exit $ac_status); } && {
511496a81b41Smrg	 test -z "$ac_c_werror_flag" ||
511596a81b41Smrg	 test ! -s conftest.err
511696a81b41Smrg       } && test -s conftest.$ac_objext; then
511796a81b41Smrg  FOUND_MAXHOSTNAMELEN='sys/param.h'
511896a81b41Smrg
511996a81b41Smrgcat >>confdefs.h <<\_ACEOF
512096a81b41Smrg#define NEED_SYS_PARAM_H 1
512196a81b41Smrg_ACEOF
512296a81b41Smrg
512396a81b41Smrgelse
512496a81b41Smrg  $as_echo "$as_me: failed program was:" >&5
512596a81b41Smrgsed 's/^/| /' conftest.$ac_ext >&5
512696a81b41Smrg
512796a81b41Smrg
512896a81b41Smrgfi
512996a81b41Smrg
513096a81b41Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
513196a81b41Smrg
513296a81b41Smrg	cat >conftest.$ac_ext <<_ACEOF
513396a81b41Smrg/* confdefs.h.  */
513496a81b41Smrg_ACEOF
513596a81b41Smrgcat confdefs.h >>conftest.$ac_ext
513696a81b41Smrgcat >>conftest.$ac_ext <<_ACEOF
513796a81b41Smrg/* end confdefs.h.  */
513896a81b41Smrg#include <netdb.h>
513996a81b41Smrgint
514096a81b41Smrgmain ()
514196a81b41Smrg{
514296a81b41Smrgint h = MAXHOSTNAMELEN;
514396a81b41Smrg  ;
514496a81b41Smrg  return 0;
514596a81b41Smrg}
514696a81b41Smrg_ACEOF
514796a81b41Smrgrm -f conftest.$ac_objext
514896a81b41Smrgif { (ac_try="$ac_compile"
514996a81b41Smrgcase "(($ac_try" in
515096a81b41Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
515196a81b41Smrg  *) ac_try_echo=$ac_try;;
515296a81b41Smrgesac
515396a81b41Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
515496a81b41Smrg$as_echo "$ac_try_echo") >&5
515596a81b41Smrg  (eval "$ac_compile") 2>conftest.er1
515696a81b41Smrg  ac_status=$?
515796a81b41Smrg  grep -v '^ *+' conftest.er1 >conftest.err
515896a81b41Smrg  rm -f conftest.er1
515996a81b41Smrg  cat conftest.err >&5
516096a81b41Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
516196a81b41Smrg  (exit $ac_status); } && {
516296a81b41Smrg	 test -z "$ac_c_werror_flag" ||
516396a81b41Smrg	 test ! -s conftest.err
516496a81b41Smrg       } && test -s conftest.$ac_objext; then
516596a81b41Smrg  FOUND_MAXHOSTNAMELEN='netdb.h'
516696a81b41Smrg
516796a81b41Smrgcat >>confdefs.h <<\_ACEOF
516896a81b41Smrg#define NEED_NETDB_H 1
516996a81b41Smrg_ACEOF
517096a81b41Smrg
517196a81b41Smrgelse
517296a81b41Smrg  $as_echo "$as_me: failed program was:" >&5
517396a81b41Smrgsed 's/^/| /' conftest.$ac_ext >&5
517496a81b41Smrg
517596a81b41Smrg
517696a81b41Smrgfi
517796a81b41Smrg
517896a81b41Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
517996a81b41Smrg
518096a81b41Smrg	{ $as_echo "$as_me:$LINENO: result: $FOUND_MAXHOSTNAMELEN" >&5
518196a81b41Smrg$as_echo "$FOUND_MAXHOSTNAMELEN" >&6; }
518296a81b41Smrgfi
518396a81b41Smrg
518496a81b41Smrg# xrdb needs to know where to find cpp at runtime - previously set as CppCmd
518596a81b41Smrg# in Imake config files for each OS
518696a81b41Smrg
518796a81b41Smrg# Check whether --with-cpp was given.
518896a81b41Smrgif test "${with_cpp+set}" = set; then
518996a81b41Smrg  withval=$with_cpp; { $as_echo "$as_me:$LINENO: checking for cpp" >&5
519096a81b41Smrg$as_echo_n "checking for cpp... " >&6; }
519196a81b41Smrg	CPP_PATH=$withval
519296a81b41Smrg	{ $as_echo "$as_me:$LINENO: result: --with-cpp specified $CPP_PATH" >&5
519396a81b41Smrg$as_echo "--with-cpp specified $CPP_PATH" >&6; }
519496a81b41Smrgelse
519596a81b41Smrg  # Extract the first word of "cpp", so it can be a program name with args.
51968b22bf3fSmrgset dummy cpp; ac_word=$2
519796a81b41Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
519896a81b41Smrg$as_echo_n "checking for $ac_word... " >&6; }
51998b22bf3fSmrgif test "${ac_cv_path_CPP_PATH+set}" = set; then
520096a81b41Smrg  $as_echo_n "(cached) " >&6
52018b22bf3fSmrgelse
52028b22bf3fSmrg  case $CPP_PATH in
52038b22bf3fSmrg  [\\/]* | ?:[\\/]*)
52048b22bf3fSmrg  ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a path.
52058b22bf3fSmrg  ;;
52068b22bf3fSmrg  *)
52078b22bf3fSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52088b22bf3fSmrgas_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
52098b22bf3fSmrgfor as_dir in $as_dummy
52108b22bf3fSmrgdo
52118b22bf3fSmrg  IFS=$as_save_IFS
52128b22bf3fSmrg  test -z "$as_dir" && as_dir=.
52138b22bf3fSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
52148b22bf3fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52158b22bf3fSmrg    ac_cv_path_CPP_PATH="$as_dir/$ac_word$ac_exec_ext"
521696a81b41Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52178b22bf3fSmrg    break 2
52188b22bf3fSmrg  fi
52198b22bf3fSmrgdone
52208b22bf3fSmrgdone
52218b22bf3fSmrgIFS=$as_save_IFS
52228b22bf3fSmrg
52238b22bf3fSmrg  test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH="cpp"
52248b22bf3fSmrg  ;;
52258b22bf3fSmrgesac
52268b22bf3fSmrgfi
52278b22bf3fSmrgCPP_PATH=$ac_cv_path_CPP_PATH
52288b22bf3fSmrgif test -n "$CPP_PATH"; then
522996a81b41Smrg  { $as_echo "$as_me:$LINENO: result: $CPP_PATH" >&5
523096a81b41Smrg$as_echo "$CPP_PATH" >&6; }
52318b22bf3fSmrgelse
523296a81b41Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
523396a81b41Smrg$as_echo "no" >&6; }
52348b22bf3fSmrgfi
52358b22bf3fSmrg
52368b22bf3fSmrg
52378b22bf3fSmrgfi
52388b22bf3fSmrg
523996a81b41SmrgCPP_PATH=`echo ${CPP_PATH} | sed 's/,/\\",\\"/g'`
52408b22bf3fSmrg
52418b22bf3fSmrgcat >>confdefs.h <<_ACEOF
52428b22bf3fSmrg#define CPP "$CPP_PATH"
52438b22bf3fSmrg_ACEOF
52448b22bf3fSmrg
52458b22bf3fSmrg
52468b22bf3fSmrg# Checks for pkg-config packages
52478b22bf3fSmrg
52488b22bf3fSmrg
52498b22bf3fSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
52508b22bf3fSmrg	if test -n "$ac_tool_prefix"; then
52518b22bf3fSmrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
52528b22bf3fSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
525396a81b41Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
525496a81b41Smrg$as_echo_n "checking for $ac_word... " >&6; }
52558b22bf3fSmrgif test "${ac_cv_path_PKG_CONFIG+set}" = set; then
525696a81b41Smrg  $as_echo_n "(cached) " >&6
52578b22bf3fSmrgelse
52588b22bf3fSmrg  case $PKG_CONFIG in
52598b22bf3fSmrg  [\\/]* | ?:[\\/]*)
52608b22bf3fSmrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
52618b22bf3fSmrg  ;;
52628b22bf3fSmrg  *)
52638b22bf3fSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52648b22bf3fSmrgfor as_dir in $PATH
52658b22bf3fSmrgdo
52668b22bf3fSmrg  IFS=$as_save_IFS
52678b22bf3fSmrg  test -z "$as_dir" && as_dir=.
52688b22bf3fSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
52698b22bf3fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52708b22bf3fSmrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
527196a81b41Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52728b22bf3fSmrg    break 2
52738b22bf3fSmrg  fi
52748b22bf3fSmrgdone
52758b22bf3fSmrgdone
52768b22bf3fSmrgIFS=$as_save_IFS
52778b22bf3fSmrg
52788b22bf3fSmrg  ;;
52798b22bf3fSmrgesac
52808b22bf3fSmrgfi
52818b22bf3fSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
52828b22bf3fSmrgif test -n "$PKG_CONFIG"; then
528396a81b41Smrg  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
528496a81b41Smrg$as_echo "$PKG_CONFIG" >&6; }
52858b22bf3fSmrgelse
528696a81b41Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
528796a81b41Smrg$as_echo "no" >&6; }
52888b22bf3fSmrgfi
52898b22bf3fSmrg
52908b22bf3fSmrg
52918b22bf3fSmrgfi
52928b22bf3fSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then
52938b22bf3fSmrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
52948b22bf3fSmrg  # Extract the first word of "pkg-config", so it can be a program name with args.
52958b22bf3fSmrgset dummy pkg-config; ac_word=$2
529696a81b41Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
529796a81b41Smrg$as_echo_n "checking for $ac_word... " >&6; }
52988b22bf3fSmrgif test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
529996a81b41Smrg  $as_echo_n "(cached) " >&6
53008b22bf3fSmrgelse
53018b22bf3fSmrg  case $ac_pt_PKG_CONFIG in
53028b22bf3fSmrg  [\\/]* | ?:[\\/]*)
53038b22bf3fSmrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
53048b22bf3fSmrg  ;;
53058b22bf3fSmrg  *)
53068b22bf3fSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
530796a81b41Smrgfor as_dir in $PATH
530896a81b41Smrgdo
530996a81b41Smrg  IFS=$as_save_IFS
531096a81b41Smrg  test -z "$as_dir" && as_dir=.
531196a81b41Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
531296a81b41Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
531396a81b41Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
531496a81b41Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
531596a81b41Smrg    break 2
531696a81b41Smrg  fi
531796a81b41Smrgdone
531896a81b41Smrgdone
531996a81b41SmrgIFS=$as_save_IFS
53208b22bf3fSmrg
532196a81b41Smrg  ;;
532296a81b41Smrgesac
53238b22bf3fSmrgfi
532496a81b41Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
532596a81b41Smrgif test -n "$ac_pt_PKG_CONFIG"; then
532696a81b41Smrg  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
532796a81b41Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
532896a81b41Smrgelse
532996a81b41Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
533096a81b41Smrg$as_echo "no" >&6; }
53318b22bf3fSmrgfi
53328b22bf3fSmrg
533396a81b41Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
533496a81b41Smrg    PKG_CONFIG=""
533596a81b41Smrg  else
533696a81b41Smrg    case $cross_compiling:$ac_tool_warned in
533796a81b41Smrgyes:)
533896a81b41Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
533996a81b41Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
534096a81b41Smrgac_tool_warned=yes ;;
534196a81b41Smrgesac
534296a81b41Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
534396a81b41Smrg  fi
534496a81b41Smrgelse
534596a81b41Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
53468b22bf3fSmrgfi
53478b22bf3fSmrg
53488b22bf3fSmrgfi
534996a81b41Smrgif test -n "$PKG_CONFIG"; then
535096a81b41Smrg	_pkg_min_version=0.9.0
535196a81b41Smrg	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
535296a81b41Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
535396a81b41Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
535496a81b41Smrg		{ $as_echo "$as_me:$LINENO: result: yes" >&5
535596a81b41Smrg$as_echo "yes" >&6; }
535696a81b41Smrg	else
535796a81b41Smrg		{ $as_echo "$as_me:$LINENO: result: no" >&5
535896a81b41Smrg$as_echo "no" >&6; }
535996a81b41Smrg		PKG_CONFIG=""
536096a81b41Smrg	fi
53618b22bf3fSmrg
53628b22bf3fSmrgfi
53638b22bf3fSmrg
536496a81b41Smrgpkg_failed=no
536596a81b41Smrg{ $as_echo "$as_me:$LINENO: checking for XRDB" >&5
536696a81b41Smrg$as_echo_n "checking for XRDB... " >&6; }
536796a81b41Smrg
536896a81b41Smrgif test -n "$XRDB_CFLAGS"; then
536996a81b41Smrg    pkg_cv_XRDB_CFLAGS="$XRDB_CFLAGS"
537096a81b41Smrg elif test -n "$PKG_CONFIG"; then
537196a81b41Smrg    if test -n "$PKG_CONFIG" && \
537296a81b41Smrg    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xmuu x11\"") >&5
537396a81b41Smrg  ($PKG_CONFIG --exists --print-errors "xmuu x11") 2>&5
537496a81b41Smrg  ac_status=$?
537596a81b41Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
537696a81b41Smrg  (exit $ac_status); }; then
537796a81b41Smrg  pkg_cv_XRDB_CFLAGS=`$PKG_CONFIG --cflags "xmuu x11" 2>/dev/null`
537896a81b41Smrgelse
537996a81b41Smrg  pkg_failed=yes
53808b22bf3fSmrgfi
538196a81b41Smrg else
538296a81b41Smrg    pkg_failed=untried
53838b22bf3fSmrgfi
538496a81b41Smrgif test -n "$XRDB_LIBS"; then
538596a81b41Smrg    pkg_cv_XRDB_LIBS="$XRDB_LIBS"
538696a81b41Smrg elif test -n "$PKG_CONFIG"; then
538796a81b41Smrg    if test -n "$PKG_CONFIG" && \
538896a81b41Smrg    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xmuu x11\"") >&5
538996a81b41Smrg  ($PKG_CONFIG --exists --print-errors "xmuu x11") 2>&5
539096a81b41Smrg  ac_status=$?
539196a81b41Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
539296a81b41Smrg  (exit $ac_status); }; then
539396a81b41Smrg  pkg_cv_XRDB_LIBS=`$PKG_CONFIG --libs "xmuu x11" 2>/dev/null`
539496a81b41Smrgelse
539596a81b41Smrg  pkg_failed=yes
53968b22bf3fSmrgfi
539796a81b41Smrg else
539896a81b41Smrg    pkg_failed=untried
53998b22bf3fSmrgfi
54008b22bf3fSmrg
54018b22bf3fSmrg
54028b22bf3fSmrg
540396a81b41Smrgif test $pkg_failed = yes; then
54048b22bf3fSmrg
540596a81b41Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
540696a81b41Smrg        _pkg_short_errors_supported=yes
540796a81b41Smrgelse
540896a81b41Smrg        _pkg_short_errors_supported=no
540996a81b41Smrgfi
541096a81b41Smrg        if test $_pkg_short_errors_supported = yes; then
541196a81b41Smrg	        XRDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xmuu x11" 2>&1`
541296a81b41Smrg        else
541396a81b41Smrg	        XRDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "xmuu x11" 2>&1`
541496a81b41Smrg        fi
541596a81b41Smrg	# Put the nasty error message in config.log where it belongs
541696a81b41Smrg	echo "$XRDB_PKG_ERRORS" >&5
54178b22bf3fSmrg
541896a81b41Smrg	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xmuu x11) were not met:
54198b22bf3fSmrg
542096a81b41Smrg$XRDB_PKG_ERRORS
54218b22bf3fSmrg
542296a81b41SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
542396a81b41Smrginstalled software in a non-standard prefix.
54248b22bf3fSmrg
542596a81b41SmrgAlternatively, you may set the environment variables XRDB_CFLAGS
542696a81b41Smrgand XRDB_LIBS to avoid the need to call pkg-config.
542796a81b41SmrgSee the pkg-config man page for more details.
542896a81b41Smrg" >&5
542996a81b41Smrg$as_echo "$as_me: error: Package requirements (xmuu x11) were not met:
54308b22bf3fSmrg
543196a81b41Smrg$XRDB_PKG_ERRORS
54328b22bf3fSmrg
543396a81b41SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
543496a81b41Smrginstalled software in a non-standard prefix.
54358b22bf3fSmrg
543696a81b41SmrgAlternatively, you may set the environment variables XRDB_CFLAGS
543796a81b41Smrgand XRDB_LIBS to avoid the need to call pkg-config.
543896a81b41SmrgSee the pkg-config man page for more details.
543996a81b41Smrg" >&2;}
544096a81b41Smrg   { (exit 1); exit 1; }; }
544196a81b41Smrgelif test $pkg_failed = untried; then
544296a81b41Smrg	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
544396a81b41Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
544496a81b41Smrg{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
544596a81b41Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
544696a81b41Smrgpath to pkg-config.
54478b22bf3fSmrg
544896a81b41SmrgAlternatively, you may set the environment variables XRDB_CFLAGS
544996a81b41Smrgand XRDB_LIBS to avoid the need to call pkg-config.
545096a81b41SmrgSee the pkg-config man page for more details.
54518b22bf3fSmrg
545296a81b41SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
545396a81b41SmrgSee \`config.log' for more details." >&5
545496a81b41Smrg$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
545596a81b41Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
545696a81b41Smrgpath to pkg-config.
54578b22bf3fSmrg
545896a81b41SmrgAlternatively, you may set the environment variables XRDB_CFLAGS
545996a81b41Smrgand XRDB_LIBS to avoid the need to call pkg-config.
546096a81b41SmrgSee the pkg-config man page for more details.
54618b22bf3fSmrg
546296a81b41SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
546396a81b41SmrgSee \`config.log' for more details." >&2;}
546496a81b41Smrg   { (exit 1); exit 1; }; }; }
54658b22bf3fSmrgelse
546696a81b41Smrg	XRDB_CFLAGS=$pkg_cv_XRDB_CFLAGS
546796a81b41Smrg	XRDB_LIBS=$pkg_cv_XRDB_LIBS
546896a81b41Smrg        { $as_echo "$as_me:$LINENO: result: yes" >&5
546996a81b41Smrg$as_echo "yes" >&6; }
547096a81b41Smrg	:
54718b22bf3fSmrgfi
54728b22bf3fSmrg
54738b22bf3fSmrg
54748b22bf3fSmrg
54758b22bf3fSmrgac_config_files="$ac_config_files Makefile"
54768b22bf3fSmrg
54778b22bf3fSmrgcat >confcache <<\_ACEOF
54788b22bf3fSmrg# This file is a shell script that caches the results of configure
54798b22bf3fSmrg# tests run on this system so they can be shared between configure
54808b22bf3fSmrg# scripts and configure runs, see configure's option --config-cache.
54818b22bf3fSmrg# It is not useful on other systems.  If it contains results you don't
54828b22bf3fSmrg# want to keep, you may remove or edit it.
54838b22bf3fSmrg#
54848b22bf3fSmrg# config.status only pays attention to the cache file if you give it
54858b22bf3fSmrg# the --recheck option to rerun configure.
54868b22bf3fSmrg#
54878b22bf3fSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
54888b22bf3fSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
54898b22bf3fSmrg# following values.
54908b22bf3fSmrg
54918b22bf3fSmrg_ACEOF
54928b22bf3fSmrg
54938b22bf3fSmrg# The following way of writing the cache mishandles newlines in values,
54948b22bf3fSmrg# but we know of no workaround that is simple, portable, and efficient.
54958b22bf3fSmrg# So, we kill variables containing newlines.
54968b22bf3fSmrg# Ultrix sh set writes to stderr and can't be redirected directly,
54978b22bf3fSmrg# and sets the high bit in the cache file unless we assign to the vars.
54988b22bf3fSmrg(
54998b22bf3fSmrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
55008b22bf3fSmrg    eval ac_val=\$$ac_var
55018b22bf3fSmrg    case $ac_val in #(
55028b22bf3fSmrg    *${as_nl}*)
55038b22bf3fSmrg      case $ac_var in #(
550496a81b41Smrg      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
550596a81b41Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
55068b22bf3fSmrg      esac
55078b22bf3fSmrg      case $ac_var in #(
55088b22bf3fSmrg      _ | IFS | as_nl) ;; #(
550996a81b41Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
55108b22bf3fSmrg      *) $as_unset $ac_var ;;
55118b22bf3fSmrg      esac ;;
55128b22bf3fSmrg    esac
55138b22bf3fSmrg  done
55148b22bf3fSmrg
55158b22bf3fSmrg  (set) 2>&1 |
55168b22bf3fSmrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
55178b22bf3fSmrg    *${as_nl}ac_space=\ *)
55188b22bf3fSmrg      # `set' does not quote correctly, so add quotes (double-quote
55198b22bf3fSmrg      # substitution turns \\\\ into \\, and sed turns \\ into \).
55208b22bf3fSmrg      sed -n \
55218b22bf3fSmrg	"s/'/'\\\\''/g;
55228b22bf3fSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
55238b22bf3fSmrg      ;; #(
55248b22bf3fSmrg    *)
55258b22bf3fSmrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
55268b22bf3fSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
55278b22bf3fSmrg      ;;
55288b22bf3fSmrg    esac |
55298b22bf3fSmrg    sort
55308b22bf3fSmrg) |
55318b22bf3fSmrg  sed '
55328b22bf3fSmrg     /^ac_cv_env_/b end
55338b22bf3fSmrg     t clear
55348b22bf3fSmrg     :clear
55358b22bf3fSmrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
55368b22bf3fSmrg     t end
55378b22bf3fSmrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
55388b22bf3fSmrg     :end' >>confcache
55398b22bf3fSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
55408b22bf3fSmrg  if test -w "$cache_file"; then
55418b22bf3fSmrg    test "x$cache_file" != "x/dev/null" &&
554296a81b41Smrg      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
554396a81b41Smrg$as_echo "$as_me: updating cache $cache_file" >&6;}
55448b22bf3fSmrg    cat confcache >$cache_file
55458b22bf3fSmrg  else
554696a81b41Smrg    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
554796a81b41Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
55488b22bf3fSmrg  fi
55498b22bf3fSmrgfi
55508b22bf3fSmrgrm -f confcache
55518b22bf3fSmrg
55528b22bf3fSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
55538b22bf3fSmrg# Let make expand exec_prefix.
55548b22bf3fSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
55558b22bf3fSmrg
55568b22bf3fSmrgDEFS=-DHAVE_CONFIG_H
55578b22bf3fSmrg
55588b22bf3fSmrgac_libobjs=
55598b22bf3fSmrgac_ltlibobjs=
55608b22bf3fSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
55618b22bf3fSmrg  # 1. Remove the extension, and $U if already installed.
55628b22bf3fSmrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
556396a81b41Smrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
55648b22bf3fSmrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
55658b22bf3fSmrg  #    will be set to the directory where LIBOBJS objects are built.
55668b22bf3fSmrg  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
55678b22bf3fSmrg  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
55688b22bf3fSmrgdone
55698b22bf3fSmrgLIBOBJS=$ac_libobjs
55708b22bf3fSmrg
55718b22bf3fSmrgLTLIBOBJS=$ac_ltlibobjs
55728b22bf3fSmrg
55738b22bf3fSmrg
557496a81b41Smrg if test -n "$EXEEXT"; then
557596a81b41Smrg  am__EXEEXT_TRUE=
557696a81b41Smrg  am__EXEEXT_FALSE='#'
557796a81b41Smrgelse
557896a81b41Smrg  am__EXEEXT_TRUE='#'
557996a81b41Smrg  am__EXEEXT_FALSE=
558096a81b41Smrgfi
558196a81b41Smrg
55828b22bf3fSmrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
558396a81b41Smrg  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
55848b22bf3fSmrgUsually this means the macro was only invoked conditionally." >&5
558596a81b41Smrg$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
55868b22bf3fSmrgUsually this means the macro was only invoked conditionally." >&2;}
55878b22bf3fSmrg   { (exit 1); exit 1; }; }
55888b22bf3fSmrgfi
55898b22bf3fSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
559096a81b41Smrg  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
55918b22bf3fSmrgUsually this means the macro was only invoked conditionally." >&5
559296a81b41Smrg$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
55938b22bf3fSmrgUsually this means the macro was only invoked conditionally." >&2;}
55948b22bf3fSmrg   { (exit 1); exit 1; }; }
55958b22bf3fSmrgfi
55968b22bf3fSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
559796a81b41Smrg  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
55988b22bf3fSmrgUsually this means the macro was only invoked conditionally." >&5
559996a81b41Smrg$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
56008b22bf3fSmrgUsually this means the macro was only invoked conditionally." >&2;}
56018b22bf3fSmrg   { (exit 1); exit 1; }; }
56028b22bf3fSmrgfi
56038b22bf3fSmrg
56048b22bf3fSmrg: ${CONFIG_STATUS=./config.status}
560596a81b41Smrgac_write_fail=0
56068b22bf3fSmrgac_clean_files_save=$ac_clean_files
56078b22bf3fSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
560896a81b41Smrg{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
560996a81b41Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
561096a81b41Smrgcat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
56118b22bf3fSmrg#! $SHELL
56128b22bf3fSmrg# Generated by $as_me.
56138b22bf3fSmrg# Run this file to recreate the current configuration.
56148b22bf3fSmrg# Compiler output produced by configure, useful for debugging
56158b22bf3fSmrg# configure, is in config.log if it exists.
56168b22bf3fSmrg
56178b22bf3fSmrgdebug=false
56188b22bf3fSmrgac_cs_recheck=false
56198b22bf3fSmrgac_cs_silent=false
56208b22bf3fSmrgSHELL=\${CONFIG_SHELL-$SHELL}
56218b22bf3fSmrg_ACEOF
56228b22bf3fSmrg
562396a81b41Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
56248b22bf3fSmrg## --------------------- ##
56258b22bf3fSmrg## M4sh Initialization.  ##
56268b22bf3fSmrg## --------------------- ##
56278b22bf3fSmrg
56288b22bf3fSmrg# Be more Bourne compatible
56298b22bf3fSmrgDUALCASE=1; export DUALCASE # for MKS sh
56308b22bf3fSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
56318b22bf3fSmrg  emulate sh
56328b22bf3fSmrg  NULLCMD=:
563396a81b41Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
56348b22bf3fSmrg  # is contrary to our usage.  Disable this feature.
56358b22bf3fSmrg  alias -g '${1+"$@"}'='"$@"'
56368b22bf3fSmrg  setopt NO_GLOB_SUBST
56378b22bf3fSmrgelse
56388b22bf3fSmrg  case `(set -o) 2>/dev/null` in
56398b22bf3fSmrg  *posix*) set -o posix ;;
56408b22bf3fSmrgesac
56418b22bf3fSmrg
56428b22bf3fSmrgfi
56438b22bf3fSmrg
56448b22bf3fSmrg
56458b22bf3fSmrg
56468b22bf3fSmrg
56478b22bf3fSmrg# PATH needs CR
56488b22bf3fSmrg# Avoid depending upon Character Ranges.
56498b22bf3fSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
56508b22bf3fSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
56518b22bf3fSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
56528b22bf3fSmrgas_cr_digits='0123456789'
56538b22bf3fSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
56548b22bf3fSmrg
565596a81b41Smrgas_nl='
565696a81b41Smrg'
565796a81b41Smrgexport as_nl
565896a81b41Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
565996a81b41Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
566096a81b41Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
566196a81b41Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
566296a81b41Smrgif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
566396a81b41Smrg  as_echo='printf %s\n'
566496a81b41Smrg  as_echo_n='printf %s'
566596a81b41Smrgelse
566696a81b41Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
566796a81b41Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
566896a81b41Smrg    as_echo_n='/usr/ucb/echo -n'
56698b22bf3fSmrg  else
567096a81b41Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
567196a81b41Smrg    as_echo_n_body='eval
567296a81b41Smrg      arg=$1;
567396a81b41Smrg      case $arg in
567496a81b41Smrg      *"$as_nl"*)
567596a81b41Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
567696a81b41Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
567796a81b41Smrg      esac;
567896a81b41Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
567996a81b41Smrg    '
568096a81b41Smrg    export as_echo_n_body
568196a81b41Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
56828b22bf3fSmrg  fi
568396a81b41Smrg  export as_echo_body
568496a81b41Smrg  as_echo='sh -c $as_echo_body as_echo'
568596a81b41Smrgfi
568696a81b41Smrg
568796a81b41Smrg# The user is always right.
568896a81b41Smrgif test "${PATH_SEPARATOR+set}" != set; then
568996a81b41Smrg  PATH_SEPARATOR=:
569096a81b41Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
569196a81b41Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
569296a81b41Smrg      PATH_SEPARATOR=';'
569396a81b41Smrg  }
56948b22bf3fSmrgfi
56958b22bf3fSmrg
56968b22bf3fSmrg# Support unset when possible.
56978b22bf3fSmrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56988b22bf3fSmrg  as_unset=unset
56998b22bf3fSmrgelse
57008b22bf3fSmrg  as_unset=false
57018b22bf3fSmrgfi
57028b22bf3fSmrg
57038b22bf3fSmrg
57048b22bf3fSmrg# IFS
57058b22bf3fSmrg# We need space, tab and new line, in precisely that order.  Quoting is
57068b22bf3fSmrg# there to prevent editors from complaining about space-tab.
57078b22bf3fSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
57088b22bf3fSmrg# splitting by setting IFS to empty value.)
57098b22bf3fSmrgIFS=" ""	$as_nl"
57108b22bf3fSmrg
57118b22bf3fSmrg# Find who we are.  Look in the path if we contain no directory separator.
57128b22bf3fSmrgcase $0 in
57138b22bf3fSmrg  *[\\/]* ) as_myself=$0 ;;
57148b22bf3fSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
57158b22bf3fSmrgfor as_dir in $PATH
57168b22bf3fSmrgdo
57178b22bf3fSmrg  IFS=$as_save_IFS
57188b22bf3fSmrg  test -z "$as_dir" && as_dir=.
57198b22bf3fSmrg  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
57208b22bf3fSmrgdone
57218b22bf3fSmrgIFS=$as_save_IFS
57228b22bf3fSmrg
57238b22bf3fSmrg     ;;
57248b22bf3fSmrgesac
57258b22bf3fSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
57268b22bf3fSmrg# in which case we are not to be found in the path.
57278b22bf3fSmrgif test "x$as_myself" = x; then
57288b22bf3fSmrg  as_myself=$0
57298b22bf3fSmrgfi
57308b22bf3fSmrgif test ! -f "$as_myself"; then
573196a81b41Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
57328b22bf3fSmrg  { (exit 1); exit 1; }
57338b22bf3fSmrgfi
57348b22bf3fSmrg
57358b22bf3fSmrg# Work around bugs in pre-3.0 UWIN ksh.
57368b22bf3fSmrgfor as_var in ENV MAIL MAILPATH
57378b22bf3fSmrgdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
57388b22bf3fSmrgdone
57398b22bf3fSmrgPS1='$ '
57408b22bf3fSmrgPS2='> '
57418b22bf3fSmrgPS4='+ '
57428b22bf3fSmrg
57438b22bf3fSmrg# NLS nuisances.
574496a81b41SmrgLC_ALL=C
574596a81b41Smrgexport LC_ALL
574696a81b41SmrgLANGUAGE=C
574796a81b41Smrgexport LANGUAGE
57488b22bf3fSmrg
57498b22bf3fSmrg# Required to use basename.
57508b22bf3fSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
57518b22bf3fSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
57528b22bf3fSmrg  as_expr=expr
57538b22bf3fSmrgelse
57548b22bf3fSmrg  as_expr=false
57558b22bf3fSmrgfi
57568b22bf3fSmrg
57578b22bf3fSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
57588b22bf3fSmrg  as_basename=basename
57598b22bf3fSmrgelse
57608b22bf3fSmrg  as_basename=false
57618b22bf3fSmrgfi
57628b22bf3fSmrg
57638b22bf3fSmrg
57648b22bf3fSmrg# Name of the executable.
57658b22bf3fSmrgas_me=`$as_basename -- "$0" ||
57668b22bf3fSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
57678b22bf3fSmrg	 X"$0" : 'X\(//\)$' \| \
57688b22bf3fSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
576996a81b41Smrg$as_echo X/"$0" |
57708b22bf3fSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
57718b22bf3fSmrg	    s//\1/
57728b22bf3fSmrg	    q
57738b22bf3fSmrg	  }
57748b22bf3fSmrg	  /^X\/\(\/\/\)$/{
57758b22bf3fSmrg	    s//\1/
57768b22bf3fSmrg	    q
57778b22bf3fSmrg	  }
57788b22bf3fSmrg	  /^X\/\(\/\).*/{
57798b22bf3fSmrg	    s//\1/
57808b22bf3fSmrg	    q
57818b22bf3fSmrg	  }
57828b22bf3fSmrg	  s/.*/./; q'`
57838b22bf3fSmrg
57848b22bf3fSmrg# CDPATH.
57858b22bf3fSmrg$as_unset CDPATH
57868b22bf3fSmrg
57878b22bf3fSmrg
57888b22bf3fSmrg
57898b22bf3fSmrg  as_lineno_1=$LINENO
57908b22bf3fSmrg  as_lineno_2=$LINENO
57918b22bf3fSmrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
57928b22bf3fSmrg  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
57938b22bf3fSmrg
57948b22bf3fSmrg  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
57958b22bf3fSmrg  # uniformly replaced by the line number.  The first 'sed' inserts a
57968b22bf3fSmrg  # line-number line after each line using $LINENO; the second 'sed'
57978b22bf3fSmrg  # does the real work.  The second script uses 'N' to pair each
57988b22bf3fSmrg  # line-number line with the line containing $LINENO, and appends
57998b22bf3fSmrg  # trailing '-' during substitution so that $LINENO is not a special
58008b22bf3fSmrg  # case at line end.
58018b22bf3fSmrg  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
58028b22bf3fSmrg  # scripts with optimization help from Paolo Bonzini.  Blame Lee
58038b22bf3fSmrg  # E. McMahon (1931-1989) for sed's syntax.  :-)
58048b22bf3fSmrg  sed -n '
58058b22bf3fSmrg    p
58068b22bf3fSmrg    /[$]LINENO/=
58078b22bf3fSmrg  ' <$as_myself |
58088b22bf3fSmrg    sed '
58098b22bf3fSmrg      s/[$]LINENO.*/&-/
58108b22bf3fSmrg      t lineno
58118b22bf3fSmrg      b
58128b22bf3fSmrg      :lineno
58138b22bf3fSmrg      N
58148b22bf3fSmrg      :loop
58158b22bf3fSmrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
58168b22bf3fSmrg      t loop
58178b22bf3fSmrg      s/-\n.*//
58188b22bf3fSmrg    ' >$as_me.lineno &&
58198b22bf3fSmrg  chmod +x "$as_me.lineno" ||
582096a81b41Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
58218b22bf3fSmrg   { (exit 1); exit 1; }; }
58228b22bf3fSmrg
58238b22bf3fSmrg  # Don't try to exec as it changes $[0], causing all sort of problems
58248b22bf3fSmrg  # (the dirname of $[0] is not the place where we might find the
58258b22bf3fSmrg  # original and so on.  Autoconf is especially sensitive to this).
58268b22bf3fSmrg  . "./$as_me.lineno"
58278b22bf3fSmrg  # Exit status is that of the last command.
58288b22bf3fSmrg  exit
58298b22bf3fSmrg}
58308b22bf3fSmrg
58318b22bf3fSmrg
58328b22bf3fSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
58338b22bf3fSmrg  as_dirname=dirname
58348b22bf3fSmrgelse
58358b22bf3fSmrg  as_dirname=false
58368b22bf3fSmrgfi
58378b22bf3fSmrg
58388b22bf3fSmrgECHO_C= ECHO_N= ECHO_T=
58398b22bf3fSmrgcase `echo -n x` in
58408b22bf3fSmrg-n*)
58418b22bf3fSmrg  case `echo 'x\c'` in
58428b22bf3fSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
58438b22bf3fSmrg  *)   ECHO_C='\c';;
58448b22bf3fSmrg  esac;;
58458b22bf3fSmrg*)
58468b22bf3fSmrg  ECHO_N='-n';;
58478b22bf3fSmrgesac
58488b22bf3fSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
58498b22bf3fSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
58508b22bf3fSmrg  as_expr=expr
58518b22bf3fSmrgelse
58528b22bf3fSmrg  as_expr=false
58538b22bf3fSmrgfi
58548b22bf3fSmrg
58558b22bf3fSmrgrm -f conf$$ conf$$.exe conf$$.file
58568b22bf3fSmrgif test -d conf$$.dir; then
58578b22bf3fSmrg  rm -f conf$$.dir/conf$$.file
58588b22bf3fSmrgelse
58598b22bf3fSmrg  rm -f conf$$.dir
586096a81b41Smrg  mkdir conf$$.dir 2>/dev/null
586196a81b41Smrgfi
586296a81b41Smrgif (echo >conf$$.file) 2>/dev/null; then
586396a81b41Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
586496a81b41Smrg    as_ln_s='ln -s'
586596a81b41Smrg    # ... but there are two gotchas:
586696a81b41Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
586796a81b41Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
586896a81b41Smrg    # In both cases, we have to default to `cp -p'.
586996a81b41Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
587096a81b41Smrg      as_ln_s='cp -p'
587196a81b41Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
587296a81b41Smrg    as_ln_s=ln
587396a81b41Smrg  else
58748b22bf3fSmrg    as_ln_s='cp -p'
587596a81b41Smrg  fi
58768b22bf3fSmrgelse
58778b22bf3fSmrg  as_ln_s='cp -p'
58788b22bf3fSmrgfi
58798b22bf3fSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
58808b22bf3fSmrgrmdir conf$$.dir 2>/dev/null
58818b22bf3fSmrg
58828b22bf3fSmrgif mkdir -p . 2>/dev/null; then
58838b22bf3fSmrg  as_mkdir_p=:
58848b22bf3fSmrgelse
58858b22bf3fSmrg  test -d ./-p && rmdir ./-p
58868b22bf3fSmrg  as_mkdir_p=false
58878b22bf3fSmrgfi
58888b22bf3fSmrg
58898b22bf3fSmrgif test -x / >/dev/null 2>&1; then
58908b22bf3fSmrg  as_test_x='test -x'
58918b22bf3fSmrgelse
58928b22bf3fSmrg  if ls -dL / >/dev/null 2>&1; then
58938b22bf3fSmrg    as_ls_L_option=L
58948b22bf3fSmrg  else
58958b22bf3fSmrg    as_ls_L_option=
58968b22bf3fSmrg  fi
58978b22bf3fSmrg  as_test_x='
58988b22bf3fSmrg    eval sh -c '\''
58998b22bf3fSmrg      if test -d "$1"; then
590096a81b41Smrg	test -d "$1/.";
59018b22bf3fSmrg      else
59028b22bf3fSmrg	case $1 in
590396a81b41Smrg	-*)set "./$1";;
59048b22bf3fSmrg	esac;
59058b22bf3fSmrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
59068b22bf3fSmrg	???[sx]*):;;*)false;;esac;fi
59078b22bf3fSmrg    '\'' sh
59088b22bf3fSmrg  '
59098b22bf3fSmrgfi
59108b22bf3fSmrgas_executable_p=$as_test_x
59118b22bf3fSmrg
59128b22bf3fSmrg# Sed expression to map a string onto a valid CPP name.
59138b22bf3fSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
59148b22bf3fSmrg
59158b22bf3fSmrg# Sed expression to map a string onto a valid variable name.
59168b22bf3fSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
59178b22bf3fSmrg
59188b22bf3fSmrg
59198b22bf3fSmrgexec 6>&1
59208b22bf3fSmrg
59218b22bf3fSmrg# Save the log message, to keep $[0] and so on meaningful, and to
59228b22bf3fSmrg# report actual input values of CONFIG_FILES etc. instead of their
59238b22bf3fSmrg# values after options handling.
59248b22bf3fSmrgac_log="
592596a81b41SmrgThis file was extended by xrdb $as_me 1.0.6, which was
592696a81b41Smrggenerated by GNU Autoconf 2.63.  Invocation command line was
59278b22bf3fSmrg
59288b22bf3fSmrg  CONFIG_FILES    = $CONFIG_FILES
59298b22bf3fSmrg  CONFIG_HEADERS  = $CONFIG_HEADERS
59308b22bf3fSmrg  CONFIG_LINKS    = $CONFIG_LINKS
59318b22bf3fSmrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
59328b22bf3fSmrg  $ $0 $@
59338b22bf3fSmrg
59348b22bf3fSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
59358b22bf3fSmrg"
59368b22bf3fSmrg
59378b22bf3fSmrg_ACEOF
59388b22bf3fSmrg
593996a81b41Smrgcase $ac_config_files in *"
594096a81b41Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
594196a81b41Smrgesac
594296a81b41Smrg
594396a81b41Smrgcase $ac_config_headers in *"
594496a81b41Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
594596a81b41Smrgesac
594696a81b41Smrg
594796a81b41Smrg
594896a81b41Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
59498b22bf3fSmrg# Files that config.status was made for.
59508b22bf3fSmrgconfig_files="$ac_config_files"
59518b22bf3fSmrgconfig_headers="$ac_config_headers"
59528b22bf3fSmrgconfig_commands="$ac_config_commands"
59538b22bf3fSmrg
59548b22bf3fSmrg_ACEOF
59558b22bf3fSmrg
595696a81b41Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
59578b22bf3fSmrgac_cs_usage="\
59588b22bf3fSmrg\`$as_me' instantiates files from templates according to the
59598b22bf3fSmrgcurrent configuration.
59608b22bf3fSmrg
596196a81b41SmrgUsage: $0 [OPTION]... [FILE]...
59628b22bf3fSmrg
59638b22bf3fSmrg  -h, --help       print this help, then exit
59648b22bf3fSmrg  -V, --version    print version number and configuration settings, then exit
596596a81b41Smrg  -q, --quiet, --silent
596696a81b41Smrg                   do not print progress messages
59678b22bf3fSmrg  -d, --debug      don't remove temporary files
59688b22bf3fSmrg      --recheck    update $as_me by reconfiguring in the same conditions
596996a81b41Smrg      --file=FILE[:TEMPLATE]
597096a81b41Smrg                   instantiate the configuration file FILE
597196a81b41Smrg      --header=FILE[:TEMPLATE]
597296a81b41Smrg                   instantiate the configuration header FILE
59738b22bf3fSmrg
59748b22bf3fSmrgConfiguration files:
59758b22bf3fSmrg$config_files
59768b22bf3fSmrg
59778b22bf3fSmrgConfiguration headers:
59788b22bf3fSmrg$config_headers
59798b22bf3fSmrg
59808b22bf3fSmrgConfiguration commands:
59818b22bf3fSmrg$config_commands
59828b22bf3fSmrg
59838b22bf3fSmrgReport bugs to <bug-autoconf@gnu.org>."
59848b22bf3fSmrg
59858b22bf3fSmrg_ACEOF
598696a81b41Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
59878b22bf3fSmrgac_cs_version="\\
598896a81b41Smrgxrdb config.status 1.0.6
598996a81b41Smrgconfigured by $0, generated by GNU Autoconf 2.63,
599096a81b41Smrg  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
59918b22bf3fSmrg
599296a81b41SmrgCopyright (C) 2008 Free Software Foundation, Inc.
59938b22bf3fSmrgThis config.status script is free software; the Free Software Foundation
59948b22bf3fSmrggives unlimited permission to copy, distribute and modify it."
59958b22bf3fSmrg
59968b22bf3fSmrgac_pwd='$ac_pwd'
59978b22bf3fSmrgsrcdir='$srcdir'
59988b22bf3fSmrgINSTALL='$INSTALL'
59998b22bf3fSmrgMKDIR_P='$MKDIR_P'
600096a81b41SmrgAWK='$AWK'
600196a81b41Smrgtest -n "\$AWK" || AWK=awk
60028b22bf3fSmrg_ACEOF
60038b22bf3fSmrg
600496a81b41Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
600596a81b41Smrg# The default lists apply if the user does not specify any file.
60068b22bf3fSmrgac_need_defaults=:
60078b22bf3fSmrgwhile test $# != 0
60088b22bf3fSmrgdo
60098b22bf3fSmrg  case $1 in
60108b22bf3fSmrg  --*=*)
60118b22bf3fSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
60128b22bf3fSmrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
60138b22bf3fSmrg    ac_shift=:
60148b22bf3fSmrg    ;;
60158b22bf3fSmrg  *)
60168b22bf3fSmrg    ac_option=$1
60178b22bf3fSmrg    ac_optarg=$2
60188b22bf3fSmrg    ac_shift=shift
60198b22bf3fSmrg    ;;
60208b22bf3fSmrg  esac
60218b22bf3fSmrg
60228b22bf3fSmrg  case $ac_option in
60238b22bf3fSmrg  # Handling of the options.
60248b22bf3fSmrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
60258b22bf3fSmrg    ac_cs_recheck=: ;;
60268b22bf3fSmrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
602796a81b41Smrg    $as_echo "$ac_cs_version"; exit ;;
60288b22bf3fSmrg  --debug | --debu | --deb | --de | --d | -d )
60298b22bf3fSmrg    debug=: ;;
60308b22bf3fSmrg  --file | --fil | --fi | --f )
60318b22bf3fSmrg    $ac_shift
603296a81b41Smrg    case $ac_optarg in
603396a81b41Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
603496a81b41Smrg    esac
603596a81b41Smrg    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
60368b22bf3fSmrg    ac_need_defaults=false;;
60378b22bf3fSmrg  --header | --heade | --head | --hea )
60388b22bf3fSmrg    $ac_shift
603996a81b41Smrg    case $ac_optarg in
604096a81b41Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
604196a81b41Smrg    esac
604296a81b41Smrg    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
60438b22bf3fSmrg    ac_need_defaults=false;;
60448b22bf3fSmrg  --he | --h)
60458b22bf3fSmrg    # Conflict between --help and --header
604696a81b41Smrg    { $as_echo "$as_me: error: ambiguous option: $1
60478b22bf3fSmrgTry \`$0 --help' for more information." >&2
60488b22bf3fSmrg   { (exit 1); exit 1; }; };;
60498b22bf3fSmrg  --help | --hel | -h )
605096a81b41Smrg    $as_echo "$ac_cs_usage"; exit ;;
60518b22bf3fSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
60528b22bf3fSmrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
60538b22bf3fSmrg    ac_cs_silent=: ;;
60548b22bf3fSmrg
60558b22bf3fSmrg  # This is an error.
605696a81b41Smrg  -*) { $as_echo "$as_me: error: unrecognized option: $1
60578b22bf3fSmrgTry \`$0 --help' for more information." >&2
60588b22bf3fSmrg   { (exit 1); exit 1; }; } ;;
60598b22bf3fSmrg
60608b22bf3fSmrg  *) ac_config_targets="$ac_config_targets $1"
60618b22bf3fSmrg     ac_need_defaults=false ;;
60628b22bf3fSmrg
60638b22bf3fSmrg  esac
60648b22bf3fSmrg  shift
60658b22bf3fSmrgdone
60668b22bf3fSmrg
60678b22bf3fSmrgac_configure_extra_args=
60688b22bf3fSmrg
60698b22bf3fSmrgif $ac_cs_silent; then
60708b22bf3fSmrg  exec 6>/dev/null
60718b22bf3fSmrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
60728b22bf3fSmrgfi
60738b22bf3fSmrg
60748b22bf3fSmrg_ACEOF
607596a81b41Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
60768b22bf3fSmrgif \$ac_cs_recheck; then
607796a81b41Smrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
607896a81b41Smrg  shift
607996a81b41Smrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
608096a81b41Smrg  CONFIG_SHELL='$SHELL'
60818b22bf3fSmrg  export CONFIG_SHELL
608296a81b41Smrg  exec "\$@"
60838b22bf3fSmrgfi
60848b22bf3fSmrg
60858b22bf3fSmrg_ACEOF
608696a81b41Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
60878b22bf3fSmrgexec 5>>config.log
60888b22bf3fSmrg{
60898b22bf3fSmrg  echo
60908b22bf3fSmrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
60918b22bf3fSmrg## Running $as_me. ##
60928b22bf3fSmrg_ASBOX
609396a81b41Smrg  $as_echo "$ac_log"
60948b22bf3fSmrg} >&5
60958b22bf3fSmrg
60968b22bf3fSmrg_ACEOF
609796a81b41Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
60988b22bf3fSmrg#
60998b22bf3fSmrg# INIT-COMMANDS
61008b22bf3fSmrg#
61018b22bf3fSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
61028b22bf3fSmrg
61038b22bf3fSmrg_ACEOF
61048b22bf3fSmrg
610596a81b41Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
61068b22bf3fSmrg
61078b22bf3fSmrg# Handling of arguments.
61088b22bf3fSmrgfor ac_config_target in $ac_config_targets
61098b22bf3fSmrgdo
61108b22bf3fSmrg  case $ac_config_target in
61118b22bf3fSmrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
61128b22bf3fSmrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
61138b22bf3fSmrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
61148b22bf3fSmrg
611596a81b41Smrg  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
611696a81b41Smrg$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
61178b22bf3fSmrg   { (exit 1); exit 1; }; };;
61188b22bf3fSmrg  esac
61198b22bf3fSmrgdone
61208b22bf3fSmrg
61218b22bf3fSmrg
61228b22bf3fSmrg# If the user did not use the arguments to specify the items to instantiate,
61238b22bf3fSmrg# then the envvar interface is used.  Set only those that are not.
61248b22bf3fSmrg# We use the long form for the default assignment because of an extremely
61258b22bf3fSmrg# bizarre bug on SunOS 4.1.3.
61268b22bf3fSmrgif $ac_need_defaults; then
61278b22bf3fSmrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
61288b22bf3fSmrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
61298b22bf3fSmrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
61308b22bf3fSmrgfi
61318b22bf3fSmrg
61328b22bf3fSmrg# Have a temporary directory for convenience.  Make it in the build tree
61338b22bf3fSmrg# simply because there is no reason against having it here, and in addition,
61348b22bf3fSmrg# creating and moving files from /tmp can sometimes cause problems.
61358b22bf3fSmrg# Hook for its removal unless debugging.
61368b22bf3fSmrg# Note that there is a small window in which the directory will not be cleaned:
61378b22bf3fSmrg# after its creation but before its name has been assigned to `$tmp'.
61388b22bf3fSmrg$debug ||
61398b22bf3fSmrg{
61408b22bf3fSmrg  tmp=
61418b22bf3fSmrg  trap 'exit_status=$?
61428b22bf3fSmrg  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
61438b22bf3fSmrg' 0
61448b22bf3fSmrg  trap '{ (exit 1); exit 1; }' 1 2 13 15
61458b22bf3fSmrg}
61468b22bf3fSmrg# Create a (secure) tmp directory for tmp files.
61478b22bf3fSmrg
61488b22bf3fSmrg{
61498b22bf3fSmrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
61508b22bf3fSmrg  test -n "$tmp" && test -d "$tmp"
61518b22bf3fSmrg}  ||
61528b22bf3fSmrg{
61538b22bf3fSmrg  tmp=./conf$$-$RANDOM
61548b22bf3fSmrg  (umask 077 && mkdir "$tmp")
61558b22bf3fSmrg} ||
61568b22bf3fSmrg{
615796a81b41Smrg   $as_echo "$as_me: cannot create a temporary directory in ." >&2
61588b22bf3fSmrg   { (exit 1); exit 1; }
61598b22bf3fSmrg}
61608b22bf3fSmrg
616196a81b41Smrg# Set up the scripts for CONFIG_FILES section.
616296a81b41Smrg# No need to generate them if there are no CONFIG_FILES.
616396a81b41Smrg# This happens for instance with `./config.status config.h'.
61648b22bf3fSmrgif test -n "$CONFIG_FILES"; then
61658b22bf3fSmrg
61668b22bf3fSmrg
616796a81b41Smrgac_cr='
616896a81b41Smrg'
616996a81b41Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
617096a81b41Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
617196a81b41Smrg  ac_cs_awk_cr='\\r'
617296a81b41Smrgelse
61738b22bf3fSmrg  ac_cs_awk_cr=$ac_cr
61748b22bf3fSmrgfi
617596a81b41Smrg
61768b22bf3fSmrgecho 'BEGIN {' >"$tmp/subs1.awk" &&
61778b22bf3fSmrg_ACEOF
61788b22bf3fSmrg
617996a81b41Smrg
618096a81b41Smrg{
618196a81b41Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
618296a81b41Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
618396a81b41Smrg  echo "_ACEOF"
618496a81b41Smrg} >conf$$subs.sh ||
618596a81b41Smrg  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
618696a81b41Smrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
618796a81b41Smrg   { (exit 1); exit 1; }; }
61888b22bf3fSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
61898b22bf3fSmrgac_delim='%!_!# '
619096a81b41Smrgfor ac_last_try in false false false false false :; do
619196a81b41Smrg  . ./conf$$subs.sh ||
619296a81b41Smrg    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
619396a81b41Smrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
61948b22bf3fSmrg   { (exit 1); exit 1; }; }
619596a81b41Smrg
619696a81b41Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
61978b22bf3fSmrg  if test $ac_delim_n = $ac_delim_num; then
61988b22bf3fSmrg    break
619996a81b41Smrg  elif $ac_last_try; then
620096a81b41Smrg    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
62018b22bf3fSmrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
62028b22bf3fSmrg   { (exit 1); exit 1; }; }
62038b22bf3fSmrg  else
62048b22bf3fSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
62058b22bf3fSmrg  fi
620696a81b41Smrgdone
62078b22bf3fSmrgrm -f conf$$subs.sh
620896a81b41Smrg
620996a81b41Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
621096a81b41Smrgcat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
621196a81b41Smrg_ACEOF
621296a81b41Smrgsed -n '
621396a81b41Smrgh
621496a81b41Smrgs/^/S["/; s/!.*/"]=/
621596a81b41Smrgp
621696a81b41Smrgg
621796a81b41Smrgs/^[^!]*!//
621896a81b41Smrg:repl
621996a81b41Smrgt repl
622096a81b41Smrgs/'"$ac_delim"'$//
622196a81b41Smrgt delim
622296a81b41Smrg:nl
622396a81b41Smrgh
622496a81b41Smrgs/\(.\{148\}\).*/\1/
622596a81b41Smrgt more1
622696a81b41Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
622796a81b41Smrgp
622896a81b41Smrgn
622996a81b41Smrgb repl
623096a81b41Smrg:more1
623196a81b41Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
623296a81b41Smrgp
623396a81b41Smrgg
623496a81b41Smrgs/.\{148\}//
623596a81b41Smrgt nl
623696a81b41Smrg:delim
623796a81b41Smrgh
623896a81b41Smrgs/\(.\{148\}\).*/\1/
623996a81b41Smrgt more2
624096a81b41Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
624196a81b41Smrgp
624296a81b41Smrgb
624396a81b41Smrg:more2
624496a81b41Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
624596a81b41Smrgp
624696a81b41Smrgg
624796a81b41Smrgs/.\{148\}//
624896a81b41Smrgt delim
624996a81b41Smrg' <conf$$subs.awk | sed '
625096a81b41Smrg/^[^""]/{
625196a81b41Smrg  N
625296a81b41Smrg  s/\n//
625396a81b41Smrg}
625496a81b41Smrg' >>$CONFIG_STATUS || ac_write_fail=1
625596a81b41Smrgrm -f conf$$subs.awk
625696a81b41Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
625796a81b41Smrg_ACAWK
625896a81b41Smrgcat >>"\$tmp/subs1.awk" <<_ACAWK &&
625996a81b41Smrg  for (key in S) S_is_set[key] = 1
626096a81b41Smrg  FS = ""
626196a81b41Smrg
626296a81b41Smrg}
626396a81b41Smrg{
626496a81b41Smrg  line = $ 0
626596a81b41Smrg  nfields = split(line, field, "@")
626696a81b41Smrg  substed = 0
626796a81b41Smrg  len = length(field[1])
626896a81b41Smrg  for (i = 2; i < nfields; i++) {
626996a81b41Smrg    key = field[i]
627096a81b41Smrg    keylen = length(key)
627196a81b41Smrg    if (S_is_set[key]) {
627296a81b41Smrg      value = S[key]
627396a81b41Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
627496a81b41Smrg      len += length(value) + length(field[++i])
627596a81b41Smrg      substed = 1
627696a81b41Smrg    } else
627796a81b41Smrg      len += 1 + keylen
627896a81b41Smrg  }
627996a81b41Smrg
628096a81b41Smrg  print line
62818b22bf3fSmrg}
628296a81b41Smrg
62838b22bf3fSmrg_ACAWK
628496a81b41Smrg_ACEOF
628596a81b41Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
628696a81b41Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
628796a81b41Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
628896a81b41Smrgelse
628996a81b41Smrg  cat
629096a81b41Smrgfi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
629196a81b41Smrg  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
629296a81b41Smrg$as_echo "$as_me: error: could not setup config files machinery" >&2;}
62938b22bf3fSmrg   { (exit 1); exit 1; }; }
62948b22bf3fSmrg_ACEOF
62958b22bf3fSmrg
62968b22bf3fSmrg# VPATH may cause trouble with some makes, so we remove $(srcdir),
62978b22bf3fSmrg# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
62988b22bf3fSmrg# trailing colons and then remove the whole line if VPATH becomes empty
62998b22bf3fSmrg# (actually we leave an empty line to preserve line numbers).
63008b22bf3fSmrgif test "x$srcdir" = x.; then
63018b22bf3fSmrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
63028b22bf3fSmrgs/:*\$(srcdir):*/:/
63038b22bf3fSmrgs/:*\${srcdir}:*/:/
63048b22bf3fSmrgs/:*@srcdir@:*/:/
63058b22bf3fSmrgs/^\([^=]*=[	 ]*\):*/\1/
63068b22bf3fSmrgs/:*$//
63078b22bf3fSmrgs/^[^=]*=[	 ]*$//
63088b22bf3fSmrg}'
63098b22bf3fSmrgfi
631096a81b41Smrg
63118b22bf3fSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
63128b22bf3fSmrgfi # test -n "$CONFIG_FILES"
631396a81b41Smrg
631496a81b41Smrg# Set up the scripts for CONFIG_HEADERS section.
631596a81b41Smrg# No need to generate them if there are no CONFIG_HEADERS.
631696a81b41Smrg# This happens for instance with `./config.status Makefile'.
631796a81b41Smrgif test -n "$CONFIG_HEADERS"; then
631896a81b41Smrgcat >"$tmp/defines.awk" <<\_ACAWK ||
631996a81b41SmrgBEGIN {
632096a81b41Smrg_ACEOF
632196a81b41Smrg
632296a81b41Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
632396a81b41Smrg# here-document in config.status, that substitutes the proper values into
632496a81b41Smrg# config.h.in to produce config.h.
632596a81b41Smrg
632696a81b41Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
632796a81b41Smrg# handling of long lines.
632896a81b41Smrgac_delim='%!_!# '
632996a81b41Smrgfor ac_last_try in false false :; do
633096a81b41Smrg  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
633196a81b41Smrg  if test -z "$ac_t"; then
633296a81b41Smrg    break
633396a81b41Smrg  elif $ac_last_try; then
633496a81b41Smrg    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
633596a81b41Smrg$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
633696a81b41Smrg   { (exit 1); exit 1; }; }
633796a81b41Smrg  else
633896a81b41Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
633996a81b41Smrg  fi
634096a81b41Smrgdone
634196a81b41Smrg
634296a81b41Smrg# For the awk script, D is an array of macro values keyed by name,
634396a81b41Smrg# likewise P contains macro parameters if any.  Preserve backslash
634496a81b41Smrg# newline sequences.
634596a81b41Smrg
634696a81b41Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
634796a81b41Smrgsed -n '
634896a81b41Smrgs/.\{148\}/&'"$ac_delim"'/g
634996a81b41Smrgt rset
635096a81b41Smrg:rset
635196a81b41Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
635296a81b41Smrgt def
635396a81b41Smrgd
635496a81b41Smrg:def
635596a81b41Smrgs/\\$//
635696a81b41Smrgt bsnl
635796a81b41Smrgs/["\\]/\\&/g
635896a81b41Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
635996a81b41SmrgD["\1"]=" \3"/p
636096a81b41Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
636196a81b41Smrgd
636296a81b41Smrg:bsnl
636396a81b41Smrgs/["\\]/\\&/g
636496a81b41Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
636596a81b41SmrgD["\1"]=" \3\\\\\\n"\\/p
636696a81b41Smrgt cont
636796a81b41Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
636896a81b41Smrgt cont
636996a81b41Smrgd
637096a81b41Smrg:cont
637196a81b41Smrgn
637296a81b41Smrgs/.\{148\}/&'"$ac_delim"'/g
637396a81b41Smrgt clear
637496a81b41Smrg:clear
637596a81b41Smrgs/\\$//
637696a81b41Smrgt bsnlc
637796a81b41Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
637896a81b41Smrgd
637996a81b41Smrg:bsnlc
638096a81b41Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
638196a81b41Smrgb cont
638296a81b41Smrg' <confdefs.h | sed '
638396a81b41Smrgs/'"$ac_delim"'/"\\\
638496a81b41Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
638596a81b41Smrg
638696a81b41Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
638796a81b41Smrg  for (key in D) D_is_set[key] = 1
638896a81b41Smrg  FS = ""
638996a81b41Smrg}
639096a81b41Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
639196a81b41Smrg  line = \$ 0
639296a81b41Smrg  split(line, arg, " ")
639396a81b41Smrg  if (arg[1] == "#") {
639496a81b41Smrg    defundef = arg[2]
639596a81b41Smrg    mac1 = arg[3]
639696a81b41Smrg  } else {
639796a81b41Smrg    defundef = substr(arg[1], 2)
639896a81b41Smrg    mac1 = arg[2]
639996a81b41Smrg  }
640096a81b41Smrg  split(mac1, mac2, "(") #)
640196a81b41Smrg  macro = mac2[1]
640296a81b41Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
640396a81b41Smrg  if (D_is_set[macro]) {
640496a81b41Smrg    # Preserve the white space surrounding the "#".
640596a81b41Smrg    print prefix "define", macro P[macro] D[macro]
640696a81b41Smrg    next
640796a81b41Smrg  } else {
640896a81b41Smrg    # Replace #undef with comments.  This is necessary, for example,
640996a81b41Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
641096a81b41Smrg    # on some systems where configure will not decide to define it.
641196a81b41Smrg    if (defundef == "undef") {
641296a81b41Smrg      print "/*", prefix defundef, macro, "*/"
641396a81b41Smrg      next
641496a81b41Smrg    }
641596a81b41Smrg  }
641696a81b41Smrg}
641796a81b41Smrg{ print }
641896a81b41Smrg_ACAWK
641996a81b41Smrg_ACEOF
642096a81b41Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
642196a81b41Smrg  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
642296a81b41Smrg$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
642396a81b41Smrg   { (exit 1); exit 1; }; }
642496a81b41Smrgfi # test -n "$CONFIG_HEADERS"
64258b22bf3fSmrg
642696a81b41Smrg
642796a81b41Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
642896a81b41Smrgshift
64298b22bf3fSmrgfor ac_tag
64308b22bf3fSmrgdo
64318b22bf3fSmrg  case $ac_tag in
64328b22bf3fSmrg  :[FHLC]) ac_mode=$ac_tag; continue;;
64338b22bf3fSmrg  esac
64348b22bf3fSmrg  case $ac_mode$ac_tag in
643596a81b41Smrg  :[FHL]*:*);;
643696a81b41Smrg  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
64378b22bf3fSmrg$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
64388b22bf3fSmrg   { (exit 1); exit 1; }; };;
64398b22bf3fSmrg  :[FH]-) ac_tag=-:-;;
64408b22bf3fSmrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
64418b22bf3fSmrg  esac
64428b22bf3fSmrg  ac_save_IFS=$IFS
64438b22bf3fSmrg  IFS=:
64448b22bf3fSmrg  set x $ac_tag
64458b22bf3fSmrg  IFS=$ac_save_IFS
64468b22bf3fSmrg  shift
64478b22bf3fSmrg  ac_file=$1
64488b22bf3fSmrg  shift
64498b22bf3fSmrg
64508b22bf3fSmrg  case $ac_mode in
64518b22bf3fSmrg  :L) ac_source=$1;;
64528b22bf3fSmrg  :[FH])
64538b22bf3fSmrg    ac_file_inputs=
64548b22bf3fSmrg    for ac_f
64558b22bf3fSmrg    do
64568b22bf3fSmrg      case $ac_f in
64578b22bf3fSmrg      -) ac_f="$tmp/stdin";;
64588b22bf3fSmrg      *) # Look for the file first in the build tree, then in the source tree
64598b22bf3fSmrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
64608b22bf3fSmrg	 # because $ac_f cannot contain `:'.
64618b22bf3fSmrg	 test -f "$ac_f" ||
64628b22bf3fSmrg	   case $ac_f in
64638b22bf3fSmrg	   [\\/$]*) false;;
64648b22bf3fSmrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
646596a81b41Smrg	   esac ||
646696a81b41Smrg	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
64678b22bf3fSmrg$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
64688b22bf3fSmrg   { (exit 1); exit 1; }; };;
646996a81b41Smrg      esac
647096a81b41Smrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
64718b22bf3fSmrg      ac_file_inputs="$ac_file_inputs '$ac_f'"
64728b22bf3fSmrg    done
64738b22bf3fSmrg
64748b22bf3fSmrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
64758b22bf3fSmrg    # use $as_me), people would be surprised to read:
647696a81b41Smrg    #    /* config.h.  Generated by config.status.  */
647796a81b41Smrg    configure_input='Generated from '`
647896a81b41Smrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
64798b22bf3fSmrg	`' by configure.'
64808b22bf3fSmrg    if test x"$ac_file" != x-; then
648196a81b41Smrg      configure_input="$ac_file.  $configure_input"
648296a81b41Smrg      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
64838b22bf3fSmrg$as_echo "$as_me: creating $ac_file" >&6;}
648496a81b41Smrg    fi
648596a81b41Smrg    # Neutralize special characters interpreted by sed in replacement strings.
648696a81b41Smrg    case $configure_input in #(
648796a81b41Smrg    *\&* | *\|* | *\\* )
648896a81b41Smrg       ac_sed_conf_input=`$as_echo "$configure_input" |
648996a81b41Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
649096a81b41Smrg    *) ac_sed_conf_input=$configure_input;;
64918b22bf3fSmrg    esac
64928b22bf3fSmrg
649396a81b41Smrg    case $ac_tag in
649496a81b41Smrg    *:-:* | *:-) cat >"$tmp/stdin" \
649596a81b41Smrg      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
649696a81b41Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
64978b22bf3fSmrg   { (exit 1); exit 1; }; } ;;
64988b22bf3fSmrg    esac
64998b22bf3fSmrg    ;;
65008b22bf3fSmrg  esac
65018b22bf3fSmrg
65028b22bf3fSmrg  ac_dir=`$as_dirname -- "$ac_file" ||
65038b22bf3fSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
65048b22bf3fSmrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
65058b22bf3fSmrg	 X"$ac_file" : 'X\(//\)$' \| \
650696a81b41Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
65078b22bf3fSmrg$as_echo X"$ac_file" |
65088b22bf3fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
65098b22bf3fSmrg	    s//\1/
65108b22bf3fSmrg	    q
65118b22bf3fSmrg	  }
65128b22bf3fSmrg	  /^X\(\/\/\)[^/].*/{
65138b22bf3fSmrg	    s//\1/
65148b22bf3fSmrg	    q
65158b22bf3fSmrg	  }
65168b22bf3fSmrg	  /^X\(\/\/\)$/{
65178b22bf3fSmrg	    s//\1/
65188b22bf3fSmrg	    q
65198b22bf3fSmrg	  }
65208b22bf3fSmrg	  /^X\(\/\).*/{
65218b22bf3fSmrg	    s//\1/
65228b22bf3fSmrg	    q
65238b22bf3fSmrg	  }
65248b22bf3fSmrg	  s/.*/./; q'`
65258b22bf3fSmrg  { as_dir="$ac_dir"
65268b22bf3fSmrg  case $as_dir in #(
65278b22bf3fSmrg  -*) as_dir=./$as_dir;;
65288b22bf3fSmrg  esac
65298b22bf3fSmrg  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
65308b22bf3fSmrg    as_dirs=
65318b22bf3fSmrg    while :; do
653296a81b41Smrg      case $as_dir in #(
65338b22bf3fSmrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
65348b22bf3fSmrg      *) as_qdir=$as_dir;;
65358b22bf3fSmrg      esac
65368b22bf3fSmrg      as_dirs="'$as_qdir' $as_dirs"
65378b22bf3fSmrg      as_dir=`$as_dirname -- "$as_dir" ||
65388b22bf3fSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
65398b22bf3fSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
65408b22bf3fSmrg	 X"$as_dir" : 'X\(//\)$' \| \
654196a81b41Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
65428b22bf3fSmrg$as_echo X"$as_dir" |
65438b22bf3fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
65448b22bf3fSmrg	    s//\1/
65458b22bf3fSmrg	    q
65468b22bf3fSmrg	  }
65478b22bf3fSmrg	  /^X\(\/\/\)[^/].*/{
65488b22bf3fSmrg	    s//\1/
65498b22bf3fSmrg	    q
65508b22bf3fSmrg	  }
65518b22bf3fSmrg	  /^X\(\/\/\)$/{
65528b22bf3fSmrg	    s//\1/
65538b22bf3fSmrg	    q
65548b22bf3fSmrg	  }
65558b22bf3fSmrg	  /^X\(\/\).*/{
65568b22bf3fSmrg	    s//\1/
65578b22bf3fSmrg	    q
65588b22bf3fSmrg	  }
65598b22bf3fSmrg	  s/.*/./; q'`
65608b22bf3fSmrg      test -d "$as_dir" && break
65618b22bf3fSmrg    done
656296a81b41Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
656396a81b41Smrg  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
65648b22bf3fSmrg$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
65658b22bf3fSmrg   { (exit 1); exit 1; }; }; }
65668b22bf3fSmrg  ac_builddir=.
65678b22bf3fSmrg
65688b22bf3fSmrgcase "$ac_dir" in
65698b22bf3fSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
657096a81b41Smrg*)
65718b22bf3fSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
657296a81b41Smrg  # A ".." for each directory in $ac_dir_suffix.
65738b22bf3fSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
65748b22bf3fSmrg  case $ac_top_builddir_sub in
65758b22bf3fSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
65768b22bf3fSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
65778b22bf3fSmrg  esac ;;
65788b22bf3fSmrgesac
65798b22bf3fSmrgac_abs_top_builddir=$ac_pwd
65808b22bf3fSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
65818b22bf3fSmrg# for backward compatibility:
65828b22bf3fSmrgac_top_builddir=$ac_top_build_prefix
65838b22bf3fSmrg
65848b22bf3fSmrgcase $srcdir in
65858b22bf3fSmrg  .)  # We are building in place.
65868b22bf3fSmrg    ac_srcdir=.
65878b22bf3fSmrg    ac_top_srcdir=$ac_top_builddir_sub
65888b22bf3fSmrg    ac_abs_top_srcdir=$ac_pwd ;;
65898b22bf3fSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
65908b22bf3fSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
65918b22bf3fSmrg    ac_top_srcdir=$srcdir
65928b22bf3fSmrg    ac_abs_top_srcdir=$srcdir ;;
65938b22bf3fSmrg  *) # Relative name.
65948b22bf3fSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
65958b22bf3fSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
65968b22bf3fSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
65978b22bf3fSmrgesac
65988b22bf3fSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
65998b22bf3fSmrg
66008b22bf3fSmrg
66018b22bf3fSmrg  case $ac_mode in
66028b22bf3fSmrg  :F)
66038b22bf3fSmrg  #
66048b22bf3fSmrg  # CONFIG_FILE
66058b22bf3fSmrg  #
66068b22bf3fSmrg
66078b22bf3fSmrg  case $INSTALL in
66088b22bf3fSmrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
66098b22bf3fSmrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
66108b22bf3fSmrg  esac
66118b22bf3fSmrg  ac_MKDIR_P=$MKDIR_P
66128b22bf3fSmrg  case $MKDIR_P in
66138b22bf3fSmrg  [\\/$]* | ?:[\\/]* ) ;;
66148b22bf3fSmrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
66158b22bf3fSmrg  esac
66168b22bf3fSmrg_ACEOF
661796a81b41Smrg
66188b22bf3fSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
66198b22bf3fSmrg# If the template does not know about datarootdir, expand it.
66208b22bf3fSmrg# FIXME: This hack should be removed a few years after 2.60.
66218b22bf3fSmrgac_datarootdir_hack=; ac_datarootdir_seen=
662296a81b41Smrg
662396a81b41Smrgac_sed_dataroot='
66248b22bf3fSmrg/datarootdir/ {
66258b22bf3fSmrg  p
66268b22bf3fSmrg  q
66278b22bf3fSmrg}
66288b22bf3fSmrg/@datadir@/p
66298b22bf3fSmrg/@docdir@/p
66308b22bf3fSmrg/@infodir@/p
66318b22bf3fSmrg/@localedir@/p
663296a81b41Smrg/@mandir@/p
663396a81b41Smrg'
66348b22bf3fSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
66358b22bf3fSmrg*datarootdir*) ac_datarootdir_seen=yes;;
663696a81b41Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
663796a81b41Smrg  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
66388b22bf3fSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
663996a81b41Smrg_ACEOF
66408b22bf3fSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
66418b22bf3fSmrg  ac_datarootdir_hack='
66428b22bf3fSmrg  s&@datadir@&$datadir&g
66438b22bf3fSmrg  s&@docdir@&$docdir&g
66448b22bf3fSmrg  s&@infodir@&$infodir&g
66458b22bf3fSmrg  s&@localedir@&$localedir&g
66468b22bf3fSmrg  s&@mandir@&$mandir&g
66478b22bf3fSmrg    s&\\\${datarootdir}&$datarootdir&g' ;;
66488b22bf3fSmrgesac
66498b22bf3fSmrg_ACEOF
66508b22bf3fSmrg
66518b22bf3fSmrg# Neutralize VPATH when `$srcdir' = `.'.
66528b22bf3fSmrg# Shell code in configure.ac might set extrasub.
665396a81b41Smrg# FIXME: do we really want to maintain this feature?
665496a81b41Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
66558b22bf3fSmrgac_sed_extra="$ac_vpsub
66568b22bf3fSmrg$extrasub
665796a81b41Smrg_ACEOF
66588b22bf3fSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
66598b22bf3fSmrg:t
666096a81b41Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
66618b22bf3fSmrgs|@configure_input@|$ac_sed_conf_input|;t t
666296a81b41Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
66638b22bf3fSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
66648b22bf3fSmrgs&@srcdir@&$ac_srcdir&;t t
66658b22bf3fSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
66668b22bf3fSmrgs&@top_srcdir@&$ac_top_srcdir&;t t
66678b22bf3fSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
66688b22bf3fSmrgs&@builddir@&$ac_builddir&;t t
66698b22bf3fSmrgs&@abs_builddir@&$ac_abs_builddir&;t t
66708b22bf3fSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
66718b22bf3fSmrgs&@INSTALL@&$ac_INSTALL&;t t
66728b22bf3fSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
667396a81b41Smrg$ac_datarootdir_hack
667496a81b41Smrg"
667596a81b41Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
667696a81b41Smrg  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
667796a81b41Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
66788b22bf3fSmrg   { (exit 1); exit 1; }; }
66798b22bf3fSmrg
66808b22bf3fSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
66818b22bf3fSmrg  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
668296a81b41Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
66838b22bf3fSmrg  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
668496a81b41Smrgwhich seems to be undefined.  Please make sure it is defined." >&5
66858b22bf3fSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
66868b22bf3fSmrgwhich seems to be undefined.  Please make sure it is defined." >&2;}
66878b22bf3fSmrg
66888b22bf3fSmrg  rm -f "$tmp/stdin"
668996a81b41Smrg  case $ac_file in
669096a81b41Smrg  -) cat "$tmp/out" && rm -f "$tmp/out";;
669196a81b41Smrg  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
669296a81b41Smrg  esac \
669396a81b41Smrg  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
669496a81b41Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
66958b22bf3fSmrg   { (exit 1); exit 1; }; }
66968b22bf3fSmrg ;;
66978b22bf3fSmrg  :H)
66988b22bf3fSmrg  #
66998b22bf3fSmrg  # CONFIG_HEADER
67008b22bf3fSmrg  #
670196a81b41Smrg  if test x"$ac_file" != x-; then
670296a81b41Smrg    {
670396a81b41Smrg      $as_echo "/* $configure_input  */" \
670496a81b41Smrg      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
670596a81b41Smrg    } >"$tmp/config.h" \
670696a81b41Smrg      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
670796a81b41Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
670896a81b41Smrg   { (exit 1); exit 1; }; }
670996a81b41Smrg    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
671096a81b41Smrg      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
67118b22bf3fSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
671296a81b41Smrg    else
671396a81b41Smrg      rm -f "$ac_file"
671496a81b41Smrg      mv "$tmp/config.h" "$ac_file" \
671596a81b41Smrg	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
671696a81b41Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
67178b22bf3fSmrg   { (exit 1); exit 1; }; }
67188b22bf3fSmrg    fi
671996a81b41Smrg  else
672096a81b41Smrg    $as_echo "/* $configure_input  */" \
672196a81b41Smrg      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
672296a81b41Smrg      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
672396a81b41Smrg$as_echo "$as_me: error: could not create -" >&2;}
67248b22bf3fSmrg   { (exit 1); exit 1; }; }
672596a81b41Smrg  fi
672696a81b41Smrg# Compute "$ac_file"'s index in $config_headers.
67278b22bf3fSmrg_am_arg="$ac_file"
67288b22bf3fSmrg_am_stamp_count=1
67298b22bf3fSmrgfor _am_header in $config_headers :; do
673096a81b41Smrg  case $_am_header in
67318b22bf3fSmrg    $_am_arg | $_am_arg:* )
67328b22bf3fSmrg      break ;;
67338b22bf3fSmrg    * )
67348b22bf3fSmrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
67358b22bf3fSmrg  esac
673696a81b41Smrgdone
673796a81b41Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
673896a81b41Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
673996a81b41Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
674096a81b41Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
674196a81b41Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
67428b22bf3fSmrg$as_echo X"$_am_arg" |
67438b22bf3fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
67448b22bf3fSmrg	    s//\1/
67458b22bf3fSmrg	    q
67468b22bf3fSmrg	  }
67478b22bf3fSmrg	  /^X\(\/\/\)[^/].*/{
67488b22bf3fSmrg	    s//\1/
67498b22bf3fSmrg	    q
67508b22bf3fSmrg	  }
67518b22bf3fSmrg	  /^X\(\/\/\)$/{
67528b22bf3fSmrg	    s//\1/
67538b22bf3fSmrg	    q
67548b22bf3fSmrg	  }
67558b22bf3fSmrg	  /^X\(\/\).*/{
67568b22bf3fSmrg	    s//\1/
67578b22bf3fSmrg	    q
67588b22bf3fSmrg	  }
67598b22bf3fSmrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
67608b22bf3fSmrg ;;
676196a81b41Smrg
676296a81b41Smrg  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
67638b22bf3fSmrg$as_echo "$as_me: executing $ac_file commands" >&6;}
67648b22bf3fSmrg ;;
67658b22bf3fSmrg  esac
67668b22bf3fSmrg
67678b22bf3fSmrg
676896a81b41Smrg  case $ac_file$ac_mode in
676996a81b41Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
677096a81b41Smrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
677196a81b41Smrg  # are listed without --file.  Let's play safe and only enable the eval
677296a81b41Smrg  # if we detect the quoting.
677396a81b41Smrg  case $CONFIG_FILES in
677496a81b41Smrg  *\'*) eval set x "$CONFIG_FILES" ;;
677596a81b41Smrg  *)   set x $CONFIG_FILES ;;
677696a81b41Smrg  esac
677796a81b41Smrg  shift
677896a81b41Smrg  for mf
677996a81b41Smrg  do
678096a81b41Smrg    # Strip MF so we end up with the name of the file.
678196a81b41Smrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
678296a81b41Smrg    # Check whether this is an Automake generated Makefile or not.
678396a81b41Smrg    # We used to match only the files named `Makefile.in', but
678496a81b41Smrg    # some people rename them; so instead we look at the file content.
678596a81b41Smrg    # Grep'ing the first line is not enough: some people post-process
678696a81b41Smrg    # each Makefile.in and add a new line on top of each file to say so.
678796a81b41Smrg    # Grep'ing the whole file is not good either: AIX grep has a line
678896a81b41Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
678996a81b41Smrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
67908b22bf3fSmrg      dirpart=`$as_dirname -- "$mf" ||
67918b22bf3fSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
67928b22bf3fSmrg	 X"$mf" : 'X\(//\)[^/]' \| \
67938b22bf3fSmrg	 X"$mf" : 'X\(//\)$' \| \
679496a81b41Smrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
67958b22bf3fSmrg$as_echo X"$mf" |
67968b22bf3fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
67978b22bf3fSmrg	    s//\1/
67988b22bf3fSmrg	    q
67998b22bf3fSmrg	  }
68008b22bf3fSmrg	  /^X\(\/\/\)[^/].*/{
68018b22bf3fSmrg	    s//\1/
68028b22bf3fSmrg	    q
68038b22bf3fSmrg	  }
68048b22bf3fSmrg	  /^X\(\/\/\)$/{
68058b22bf3fSmrg	    s//\1/
68068b22bf3fSmrg	    q
68078b22bf3fSmrg	  }
68088b22bf3fSmrg	  /^X\(\/\).*/{
68098b22bf3fSmrg	    s//\1/
68108b22bf3fSmrg	    q
68118b22bf3fSmrg	  }
681296a81b41Smrg	  s/.*/./; q'`
681396a81b41Smrg    else
681496a81b41Smrg      continue
681596a81b41Smrg    fi
681696a81b41Smrg    # Extract the definition of DEPDIR, am__include, and am__quote
681796a81b41Smrg    # from the Makefile without running `make'.
681896a81b41Smrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
681996a81b41Smrg    test -z "$DEPDIR" && continue
682096a81b41Smrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
682196a81b41Smrg    test -z "am__include" && continue
682296a81b41Smrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
682396a81b41Smrg    # When using ansi2knr, U may be empty or an underscore; expand it
682496a81b41Smrg    U=`sed -n 's/^U = //p' < "$mf"`
682596a81b41Smrg    # Find all dependency output files, they are included files with
682696a81b41Smrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
682796a81b41Smrg    # simplest approach to changing $(DEPDIR) to its actual value in the
682896a81b41Smrg    # expansion.
682996a81b41Smrg    for file in `sed -n "
683096a81b41Smrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
683196a81b41Smrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
683296a81b41Smrg      # Make sure the directory exists.
683396a81b41Smrg      test -f "$dirpart/$file" && continue
68348b22bf3fSmrg      fdir=`$as_dirname -- "$file" ||
68358b22bf3fSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
68368b22bf3fSmrg	 X"$file" : 'X\(//\)[^/]' \| \
68378b22bf3fSmrg	 X"$file" : 'X\(//\)$' \| \
683896a81b41Smrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
68398b22bf3fSmrg$as_echo X"$file" |
68408b22bf3fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
68418b22bf3fSmrg	    s//\1/
68428b22bf3fSmrg	    q
68438b22bf3fSmrg	  }
68448b22bf3fSmrg	  /^X\(\/\/\)[^/].*/{
68458b22bf3fSmrg	    s//\1/
68468b22bf3fSmrg	    q
68478b22bf3fSmrg	  }
68488b22bf3fSmrg	  /^X\(\/\/\)$/{
68498b22bf3fSmrg	    s//\1/
68508b22bf3fSmrg	    q
68518b22bf3fSmrg	  }
68528b22bf3fSmrg	  /^X\(\/\).*/{
68538b22bf3fSmrg	    s//\1/
68548b22bf3fSmrg	    q
68558b22bf3fSmrg	  }
685696a81b41Smrg	  s/.*/./; q'`
68578b22bf3fSmrg      { as_dir=$dirpart/$fdir
68588b22bf3fSmrg  case $as_dir in #(
68598b22bf3fSmrg  -*) as_dir=./$as_dir;;
68608b22bf3fSmrg  esac
68618b22bf3fSmrg  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
68628b22bf3fSmrg    as_dirs=
68638b22bf3fSmrg    while :; do
686496a81b41Smrg      case $as_dir in #(
68658b22bf3fSmrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
68668b22bf3fSmrg      *) as_qdir=$as_dir;;
68678b22bf3fSmrg      esac
68688b22bf3fSmrg      as_dirs="'$as_qdir' $as_dirs"
68698b22bf3fSmrg      as_dir=`$as_dirname -- "$as_dir" ||
68708b22bf3fSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
68718b22bf3fSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
68728b22bf3fSmrg	 X"$as_dir" : 'X\(//\)$' \| \
687396a81b41Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
68748b22bf3fSmrg$as_echo X"$as_dir" |
68758b22bf3fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
68768b22bf3fSmrg	    s//\1/
68778b22bf3fSmrg	    q
68788b22bf3fSmrg	  }
68798b22bf3fSmrg	  /^X\(\/\/\)[^/].*/{
68808b22bf3fSmrg	    s//\1/
68818b22bf3fSmrg	    q
68828b22bf3fSmrg	  }
68838b22bf3fSmrg	  /^X\(\/\/\)$/{
68848b22bf3fSmrg	    s//\1/
68858b22bf3fSmrg	    q
68868b22bf3fSmrg	  }
68878b22bf3fSmrg	  /^X\(\/\).*/{
68888b22bf3fSmrg	    s//\1/
68898b22bf3fSmrg	    q
68908b22bf3fSmrg	  }
68918b22bf3fSmrg	  s/.*/./; q'`
68928b22bf3fSmrg      test -d "$as_dir" && break
68938b22bf3fSmrg    done
689496a81b41Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
689596a81b41Smrg  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
68968b22bf3fSmrg$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
689796a81b41Smrg   { (exit 1); exit 1; }; }; }
689896a81b41Smrg      # echo "creating $dirpart/$file"
689996a81b41Smrg      echo '# dummy' > "$dirpart/$file"
69008b22bf3fSmrg    done
690196a81b41Smrg  done
69028b22bf3fSmrg}
69038b22bf3fSmrg ;;
69048b22bf3fSmrg
69058b22bf3fSmrg  esac
69068b22bf3fSmrgdone # for ac_tag
69078b22bf3fSmrg
69088b22bf3fSmrg
69098b22bf3fSmrg{ (exit 0); exit 0; }
69108b22bf3fSmrg_ACEOF
69118b22bf3fSmrgchmod +x $CONFIG_STATUS
69128b22bf3fSmrgac_clean_files=$ac_clean_files_save
691396a81b41Smrg
691496a81b41Smrgtest $ac_write_fail = 0 ||
691596a81b41Smrg  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
691696a81b41Smrg$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
691796a81b41Smrg   { (exit 1); exit 1; }; }
69188b22bf3fSmrg
69198b22bf3fSmrg
69208b22bf3fSmrg# configure is writing to config.log, and then calls config.status.
69218b22bf3fSmrg# config.status does its own redirection, appending to config.log.
69228b22bf3fSmrg# Unfortunately, on DOS this fails, as config.log is still kept open
69238b22bf3fSmrg# by configure, so config.status won't be able to write to it; its
69248b22bf3fSmrg# output is simply discarded.  So we exec the FD to /dev/null,
69258b22bf3fSmrg# effectively closing config.log, so it can be properly (re)opened and
69268b22bf3fSmrg# appended to by config.status.  When coming back to configure, we
69278b22bf3fSmrg# need to make the FD available again.
69288b22bf3fSmrgif test "$no_create" != yes; then
69298b22bf3fSmrg  ac_cs_success=:
69308b22bf3fSmrg  ac_config_status_args=
69318b22bf3fSmrg  test "$silent" = yes &&
69328b22bf3fSmrg    ac_config_status_args="$ac_config_status_args --quiet"
69338b22bf3fSmrg  exec 5>/dev/null
69348b22bf3fSmrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
69358b22bf3fSmrg  exec 5>>config.log
69368b22bf3fSmrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
69378b22bf3fSmrg  # would make configure fail if this is the last instruction.
69388b22bf3fSmrg  $ac_cs_success || { (exit 1); exit 1; }
693996a81b41Smrgfi
694096a81b41Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
694196a81b41Smrg  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
694296a81b41Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
69438b22bf3fSmrgfi
6944
6945