configure revision 1568b75b
17d5e3a19Smrg#! /bin/sh
27d5e3a19Smrg# Guess values for system-dependent variables and create Makefiles.
31568b75bSmrg# Generated by GNU Autoconf 2.63 for setxkbmap 1.1.0.
47d5e3a19Smrg#
57d5e3a19Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
67d5e3a19Smrg#
77d5e3a19Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
81568b75bSmrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
97d5e3a19Smrg# This configure script is free software; the Free Software Foundation
107d5e3a19Smrg# gives unlimited permission to copy, distribute and modify it.
117d5e3a19Smrg## --------------------- ##
127d5e3a19Smrg## M4sh Initialization.  ##
137d5e3a19Smrg## --------------------- ##
147d5e3a19Smrg
157d5e3a19Smrg# Be more Bourne compatible
167d5e3a19SmrgDUALCASE=1; export DUALCASE # for MKS sh
177d5e3a19Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
187d5e3a19Smrg  emulate sh
197d5e3a19Smrg  NULLCMD=:
201568b75bSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
217d5e3a19Smrg  # is contrary to our usage.  Disable this feature.
227d5e3a19Smrg  alias -g '${1+"$@"}'='"$@"'
237d5e3a19Smrg  setopt NO_GLOB_SUBST
247d5e3a19Smrgelse
257d5e3a19Smrg  case `(set -o) 2>/dev/null` in
267d5e3a19Smrg  *posix*) set -o posix ;;
277d5e3a19Smrgesac
287d5e3a19Smrg
297d5e3a19Smrgfi
307d5e3a19Smrg
317d5e3a19Smrg
327d5e3a19Smrg
337d5e3a19Smrg
347d5e3a19Smrg# PATH needs CR
357d5e3a19Smrg# Avoid depending upon Character Ranges.
367d5e3a19Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
377d5e3a19Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
387d5e3a19Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
397d5e3a19Smrgas_cr_digits='0123456789'
407d5e3a19Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
417d5e3a19Smrg
421568b75bSmrgas_nl='
431568b75bSmrg'
441568b75bSmrgexport as_nl
451568b75bSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
461568b75bSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
471568b75bSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
481568b75bSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
491568b75bSmrgif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
501568b75bSmrg  as_echo='printf %s\n'
511568b75bSmrg  as_echo_n='printf %s'
521568b75bSmrgelse
531568b75bSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
541568b75bSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
551568b75bSmrg    as_echo_n='/usr/ucb/echo -n'
567d5e3a19Smrg  else
571568b75bSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
581568b75bSmrg    as_echo_n_body='eval
591568b75bSmrg      arg=$1;
601568b75bSmrg      case $arg in
611568b75bSmrg      *"$as_nl"*)
621568b75bSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
631568b75bSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
641568b75bSmrg      esac;
651568b75bSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
661568b75bSmrg    '
671568b75bSmrg    export as_echo_n_body
681568b75bSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
697d5e3a19Smrg  fi
701568b75bSmrg  export as_echo_body
711568b75bSmrg  as_echo='sh -c $as_echo_body as_echo'
721568b75bSmrgfi
731568b75bSmrg
741568b75bSmrg# The user is always right.
751568b75bSmrgif test "${PATH_SEPARATOR+set}" != set; then
761568b75bSmrg  PATH_SEPARATOR=:
771568b75bSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
781568b75bSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
791568b75bSmrg      PATH_SEPARATOR=';'
801568b75bSmrg  }
817d5e3a19Smrgfi
827d5e3a19Smrg
837d5e3a19Smrg# Support unset when possible.
847d5e3a19Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
857d5e3a19Smrg  as_unset=unset
867d5e3a19Smrgelse
877d5e3a19Smrg  as_unset=false
887d5e3a19Smrgfi
897d5e3a19Smrg
907d5e3a19Smrg
917d5e3a19Smrg# IFS
927d5e3a19Smrg# We need space, tab and new line, in precisely that order.  Quoting is
937d5e3a19Smrg# there to prevent editors from complaining about space-tab.
947d5e3a19Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
957d5e3a19Smrg# splitting by setting IFS to empty value.)
967d5e3a19SmrgIFS=" ""	$as_nl"
977d5e3a19Smrg
987d5e3a19Smrg# Find who we are.  Look in the path if we contain no directory separator.
997d5e3a19Smrgcase $0 in
1007d5e3a19Smrg  *[\\/]* ) as_myself=$0 ;;
1017d5e3a19Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1027d5e3a19Smrgfor as_dir in $PATH
1037d5e3a19Smrgdo
1047d5e3a19Smrg  IFS=$as_save_IFS
1057d5e3a19Smrg  test -z "$as_dir" && as_dir=.
1067d5e3a19Smrg  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1077d5e3a19Smrgdone
1087d5e3a19SmrgIFS=$as_save_IFS
1097d5e3a19Smrg
1107d5e3a19Smrg     ;;
1117d5e3a19Smrgesac
1127d5e3a19Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
1137d5e3a19Smrg# in which case we are not to be found in the path.
1147d5e3a19Smrgif test "x$as_myself" = x; then
1157d5e3a19Smrg  as_myself=$0
1167d5e3a19Smrgfi
1177d5e3a19Smrgif test ! -f "$as_myself"; then
1181568b75bSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1197d5e3a19Smrg  { (exit 1); exit 1; }
1207d5e3a19Smrgfi
1217d5e3a19Smrg
1227d5e3a19Smrg# Work around bugs in pre-3.0 UWIN ksh.
1237d5e3a19Smrgfor as_var in ENV MAIL MAILPATH
1247d5e3a19Smrgdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
1257d5e3a19Smrgdone
1267d5e3a19SmrgPS1='$ '
1277d5e3a19SmrgPS2='> '
1287d5e3a19SmrgPS4='+ '
1297d5e3a19Smrg
1307d5e3a19Smrg# NLS nuisances.
1311568b75bSmrgLC_ALL=C
1321568b75bSmrgexport LC_ALL
1331568b75bSmrgLANGUAGE=C
1341568b75bSmrgexport LANGUAGE
1357d5e3a19Smrg
1367d5e3a19Smrg# Required to use basename.
1377d5e3a19Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
1387d5e3a19Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
1397d5e3a19Smrg  as_expr=expr
1407d5e3a19Smrgelse
1417d5e3a19Smrg  as_expr=false
1427d5e3a19Smrgfi
1437d5e3a19Smrg
1447d5e3a19Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1457d5e3a19Smrg  as_basename=basename
1467d5e3a19Smrgelse
1477d5e3a19Smrg  as_basename=false
1487d5e3a19Smrgfi
1497d5e3a19Smrg
1507d5e3a19Smrg
1517d5e3a19Smrg# Name of the executable.
1527d5e3a19Smrgas_me=`$as_basename -- "$0" ||
1537d5e3a19Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1547d5e3a19Smrg	 X"$0" : 'X\(//\)$' \| \
1557d5e3a19Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1561568b75bSmrg$as_echo X/"$0" |
1577d5e3a19Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
1587d5e3a19Smrg	    s//\1/
1597d5e3a19Smrg	    q
1607d5e3a19Smrg	  }
1617d5e3a19Smrg	  /^X\/\(\/\/\)$/{
1627d5e3a19Smrg	    s//\1/
1637d5e3a19Smrg	    q
1647d5e3a19Smrg	  }
1657d5e3a19Smrg	  /^X\/\(\/\).*/{
1667d5e3a19Smrg	    s//\1/
1677d5e3a19Smrg	    q
1687d5e3a19Smrg	  }
1697d5e3a19Smrg	  s/.*/./; q'`
1707d5e3a19Smrg
1717d5e3a19Smrg# CDPATH.
1727d5e3a19Smrg$as_unset CDPATH
1737d5e3a19Smrg
1747d5e3a19Smrg
1757d5e3a19Smrgif test "x$CONFIG_SHELL" = x; then
1767d5e3a19Smrg  if (eval ":") 2>/dev/null; then
1777d5e3a19Smrg  as_have_required=yes
1787d5e3a19Smrgelse
1797d5e3a19Smrg  as_have_required=no
1807d5e3a19Smrgfi
1817d5e3a19Smrg
1821568b75bSmrg  if test $as_have_required = yes &&	 (eval ":
1837d5e3a19Smrg(as_func_return () {
1847d5e3a19Smrg  (exit \$1)
1857d5e3a19Smrg}
1867d5e3a19Smrgas_func_success () {
1877d5e3a19Smrg  as_func_return 0
1887d5e3a19Smrg}
1897d5e3a19Smrgas_func_failure () {
1907d5e3a19Smrg  as_func_return 1
1917d5e3a19Smrg}
1927d5e3a19Smrgas_func_ret_success () {
1937d5e3a19Smrg  return 0
1947d5e3a19Smrg}
1957d5e3a19Smrgas_func_ret_failure () {
1967d5e3a19Smrg  return 1
1977d5e3a19Smrg}
1987d5e3a19Smrg
1997d5e3a19Smrgexitcode=0
2007d5e3a19Smrgif as_func_success; then
2017d5e3a19Smrg  :
2027d5e3a19Smrgelse
2037d5e3a19Smrg  exitcode=1
2047d5e3a19Smrg  echo as_func_success failed.
2057d5e3a19Smrgfi
2067d5e3a19Smrg
2077d5e3a19Smrgif as_func_failure; then
2087d5e3a19Smrg  exitcode=1
2097d5e3a19Smrg  echo as_func_failure succeeded.
2107d5e3a19Smrgfi
2117d5e3a19Smrg
2127d5e3a19Smrgif as_func_ret_success; then
2137d5e3a19Smrg  :
2147d5e3a19Smrgelse
2157d5e3a19Smrg  exitcode=1
2167d5e3a19Smrg  echo as_func_ret_success failed.
2177d5e3a19Smrgfi
2187d5e3a19Smrg
2197d5e3a19Smrgif as_func_ret_failure; then
2207d5e3a19Smrg  exitcode=1
2217d5e3a19Smrg  echo as_func_ret_failure succeeded.
2227d5e3a19Smrgfi
2237d5e3a19Smrg
2247d5e3a19Smrgif ( set x; as_func_ret_success y && test x = \"\$1\" ); then
2257d5e3a19Smrg  :
2267d5e3a19Smrgelse
2277d5e3a19Smrg  exitcode=1
2287d5e3a19Smrg  echo positional parameters were not saved.
2297d5e3a19Smrgfi
2307d5e3a19Smrg
2317d5e3a19Smrgtest \$exitcode = 0) || { (exit 1); exit 1; }
2327d5e3a19Smrg
2337d5e3a19Smrg(
2347d5e3a19Smrg  as_lineno_1=\$LINENO
2357d5e3a19Smrg  as_lineno_2=\$LINENO
2367d5e3a19Smrg  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
2377d5e3a19Smrg  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
2387d5e3a19Smrg") 2> /dev/null; then
2397d5e3a19Smrg  :
2407d5e3a19Smrgelse
2417d5e3a19Smrg  as_candidate_shells=
2427d5e3a19Smrg    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437d5e3a19Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2447d5e3a19Smrgdo
2457d5e3a19Smrg  IFS=$as_save_IFS
2467d5e3a19Smrg  test -z "$as_dir" && as_dir=.
2477d5e3a19Smrg  case $as_dir in
2487d5e3a19Smrg	 /*)
2497d5e3a19Smrg	   for as_base in sh bash ksh sh5; do
2507d5e3a19Smrg	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
2517d5e3a19Smrg	   done;;
2527d5e3a19Smrg       esac
2537d5e3a19Smrgdone
2547d5e3a19SmrgIFS=$as_save_IFS
2557d5e3a19Smrg
2567d5e3a19Smrg
2577d5e3a19Smrg      for as_shell in $as_candidate_shells $SHELL; do
2587d5e3a19Smrg	 # Try only shells that exist, to save several forks.
2597d5e3a19Smrg	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
2607d5e3a19Smrg		{ ("$as_shell") 2> /dev/null <<\_ASEOF
2617d5e3a19Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2627d5e3a19Smrg  emulate sh
2637d5e3a19Smrg  NULLCMD=:
2641568b75bSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2657d5e3a19Smrg  # is contrary to our usage.  Disable this feature.
2667d5e3a19Smrg  alias -g '${1+"$@"}'='"$@"'
2677d5e3a19Smrg  setopt NO_GLOB_SUBST
2687d5e3a19Smrgelse
2697d5e3a19Smrg  case `(set -o) 2>/dev/null` in
2707d5e3a19Smrg  *posix*) set -o posix ;;
2717d5e3a19Smrgesac
2727d5e3a19Smrg
2737d5e3a19Smrgfi
2747d5e3a19Smrg
2757d5e3a19Smrg
2767d5e3a19Smrg:
2777d5e3a19Smrg_ASEOF
2787d5e3a19Smrg}; then
2797d5e3a19Smrg  CONFIG_SHELL=$as_shell
2807d5e3a19Smrg	       as_have_required=yes
2817d5e3a19Smrg	       if { "$as_shell" 2> /dev/null <<\_ASEOF
2827d5e3a19Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2837d5e3a19Smrg  emulate sh
2847d5e3a19Smrg  NULLCMD=:
2851568b75bSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2867d5e3a19Smrg  # is contrary to our usage.  Disable this feature.
2877d5e3a19Smrg  alias -g '${1+"$@"}'='"$@"'
2887d5e3a19Smrg  setopt NO_GLOB_SUBST
2897d5e3a19Smrgelse
2907d5e3a19Smrg  case `(set -o) 2>/dev/null` in
2917d5e3a19Smrg  *posix*) set -o posix ;;
2927d5e3a19Smrgesac
2937d5e3a19Smrg
2947d5e3a19Smrgfi
2957d5e3a19Smrg
2967d5e3a19Smrg
2977d5e3a19Smrg:
2987d5e3a19Smrg(as_func_return () {
2997d5e3a19Smrg  (exit $1)
3007d5e3a19Smrg}
3017d5e3a19Smrgas_func_success () {
3027d5e3a19Smrg  as_func_return 0
3037d5e3a19Smrg}
3047d5e3a19Smrgas_func_failure () {
3057d5e3a19Smrg  as_func_return 1
3067d5e3a19Smrg}
3077d5e3a19Smrgas_func_ret_success () {
3087d5e3a19Smrg  return 0
3097d5e3a19Smrg}
3107d5e3a19Smrgas_func_ret_failure () {
3117d5e3a19Smrg  return 1
3127d5e3a19Smrg}
3137d5e3a19Smrg
3147d5e3a19Smrgexitcode=0
3157d5e3a19Smrgif as_func_success; then
3167d5e3a19Smrg  :
3177d5e3a19Smrgelse
3187d5e3a19Smrg  exitcode=1
3197d5e3a19Smrg  echo as_func_success failed.
3207d5e3a19Smrgfi
3217d5e3a19Smrg
3227d5e3a19Smrgif as_func_failure; then
3237d5e3a19Smrg  exitcode=1
3247d5e3a19Smrg  echo as_func_failure succeeded.
3257d5e3a19Smrgfi
3267d5e3a19Smrg
3277d5e3a19Smrgif as_func_ret_success; then
3287d5e3a19Smrg  :
3297d5e3a19Smrgelse
3307d5e3a19Smrg  exitcode=1
3317d5e3a19Smrg  echo as_func_ret_success failed.
3327d5e3a19Smrgfi
3337d5e3a19Smrg
3347d5e3a19Smrgif as_func_ret_failure; then
3357d5e3a19Smrg  exitcode=1
3367d5e3a19Smrg  echo as_func_ret_failure succeeded.
3377d5e3a19Smrgfi
3387d5e3a19Smrg
3397d5e3a19Smrgif ( set x; as_func_ret_success y && test x = "$1" ); then
3407d5e3a19Smrg  :
3417d5e3a19Smrgelse
3427d5e3a19Smrg  exitcode=1
3437d5e3a19Smrg  echo positional parameters were not saved.
3447d5e3a19Smrgfi
3457d5e3a19Smrg
3467d5e3a19Smrgtest $exitcode = 0) || { (exit 1); exit 1; }
3477d5e3a19Smrg
3487d5e3a19Smrg(
3497d5e3a19Smrg  as_lineno_1=$LINENO
3507d5e3a19Smrg  as_lineno_2=$LINENO
3517d5e3a19Smrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
3527d5e3a19Smrg  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
3537d5e3a19Smrg
3547d5e3a19Smrg_ASEOF
3557d5e3a19Smrg}; then
3567d5e3a19Smrg  break
3577d5e3a19Smrgfi
3587d5e3a19Smrg
3597d5e3a19Smrgfi
3607d5e3a19Smrg
3617d5e3a19Smrg      done
3627d5e3a19Smrg
3637d5e3a19Smrg      if test "x$CONFIG_SHELL" != x; then
3647d5e3a19Smrg  for as_var in BASH_ENV ENV
3651568b75bSmrg	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
3661568b75bSmrg	done
3671568b75bSmrg	export CONFIG_SHELL
3681568b75bSmrg	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
3697d5e3a19Smrgfi
3707d5e3a19Smrg
3717d5e3a19Smrg
3727d5e3a19Smrg    if test $as_have_required = no; then
3737d5e3a19Smrg  echo This script requires a shell more modern than all the
3747d5e3a19Smrg      echo shells that I found on your system.  Please install a
3757d5e3a19Smrg      echo modern shell, or manually run the script under such a
3767d5e3a19Smrg      echo shell if you do have one.
3777d5e3a19Smrg      { (exit 1); exit 1; }
3787d5e3a19Smrgfi
3797d5e3a19Smrg
3807d5e3a19Smrg
3817d5e3a19Smrgfi
3827d5e3a19Smrg
3837d5e3a19Smrgfi
3847d5e3a19Smrg
3857d5e3a19Smrg
3867d5e3a19Smrg
3877d5e3a19Smrg(eval "as_func_return () {
3887d5e3a19Smrg  (exit \$1)
3897d5e3a19Smrg}
3907d5e3a19Smrgas_func_success () {
3917d5e3a19Smrg  as_func_return 0
3927d5e3a19Smrg}
3937d5e3a19Smrgas_func_failure () {
3947d5e3a19Smrg  as_func_return 1
3957d5e3a19Smrg}
3967d5e3a19Smrgas_func_ret_success () {
3977d5e3a19Smrg  return 0
3987d5e3a19Smrg}
3997d5e3a19Smrgas_func_ret_failure () {
4007d5e3a19Smrg  return 1
4017d5e3a19Smrg}
4027d5e3a19Smrg
4037d5e3a19Smrgexitcode=0
4047d5e3a19Smrgif as_func_success; then
4057d5e3a19Smrg  :
4067d5e3a19Smrgelse
4077d5e3a19Smrg  exitcode=1
4087d5e3a19Smrg  echo as_func_success failed.
4097d5e3a19Smrgfi
4107d5e3a19Smrg
4117d5e3a19Smrgif as_func_failure; then
4127d5e3a19Smrg  exitcode=1
4137d5e3a19Smrg  echo as_func_failure succeeded.
4147d5e3a19Smrgfi
4157d5e3a19Smrg
4167d5e3a19Smrgif as_func_ret_success; then
4177d5e3a19Smrg  :
4187d5e3a19Smrgelse
4197d5e3a19Smrg  exitcode=1
4207d5e3a19Smrg  echo as_func_ret_success failed.
4217d5e3a19Smrgfi
4227d5e3a19Smrg
4237d5e3a19Smrgif as_func_ret_failure; then
4247d5e3a19Smrg  exitcode=1
4257d5e3a19Smrg  echo as_func_ret_failure succeeded.
4267d5e3a19Smrgfi
4277d5e3a19Smrg
4287d5e3a19Smrgif ( set x; as_func_ret_success y && test x = \"\$1\" ); then
4297d5e3a19Smrg  :
4307d5e3a19Smrgelse
4317d5e3a19Smrg  exitcode=1
4327d5e3a19Smrg  echo positional parameters were not saved.
4337d5e3a19Smrgfi
4347d5e3a19Smrg
4357d5e3a19Smrgtest \$exitcode = 0") || {
4367d5e3a19Smrg  echo No shell found that supports shell functions.
4371568b75bSmrg  echo Please tell bug-autoconf@gnu.org about your system,
4381568b75bSmrg  echo including any error possibly output before this message.
4391568b75bSmrg  echo This can help us improve future autoconf versions.
4401568b75bSmrg  echo Configuration will now proceed without shell functions.
4417d5e3a19Smrg}
4427d5e3a19Smrg
4437d5e3a19Smrg
4447d5e3a19Smrg
4457d5e3a19Smrg  as_lineno_1=$LINENO
4467d5e3a19Smrg  as_lineno_2=$LINENO
4477d5e3a19Smrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
4487d5e3a19Smrg  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
4497d5e3a19Smrg
4507d5e3a19Smrg  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4517d5e3a19Smrg  # uniformly replaced by the line number.  The first 'sed' inserts a
4527d5e3a19Smrg  # line-number line after each line using $LINENO; the second 'sed'
4537d5e3a19Smrg  # does the real work.  The second script uses 'N' to pair each
4547d5e3a19Smrg  # line-number line with the line containing $LINENO, and appends
4557d5e3a19Smrg  # trailing '-' during substitution so that $LINENO is not a special
4567d5e3a19Smrg  # case at line end.
4577d5e3a19Smrg  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4587d5e3a19Smrg  # scripts with optimization help from Paolo Bonzini.  Blame Lee
4597d5e3a19Smrg  # E. McMahon (1931-1989) for sed's syntax.  :-)
4607d5e3a19Smrg  sed -n '
4617d5e3a19Smrg    p
4627d5e3a19Smrg    /[$]LINENO/=
4637d5e3a19Smrg  ' <$as_myself |
4647d5e3a19Smrg    sed '
4657d5e3a19Smrg      s/[$]LINENO.*/&-/
4667d5e3a19Smrg      t lineno
4677d5e3a19Smrg      b
4687d5e3a19Smrg      :lineno
4697d5e3a19Smrg      N
4707d5e3a19Smrg      :loop
4717d5e3a19Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4727d5e3a19Smrg      t loop
4737d5e3a19Smrg      s/-\n.*//
4747d5e3a19Smrg    ' >$as_me.lineno &&
4757d5e3a19Smrg  chmod +x "$as_me.lineno" ||
4761568b75bSmrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
4777d5e3a19Smrg   { (exit 1); exit 1; }; }
4787d5e3a19Smrg
4797d5e3a19Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
4807d5e3a19Smrg  # (the dirname of $[0] is not the place where we might find the
4817d5e3a19Smrg  # original and so on.  Autoconf is especially sensitive to this).
4827d5e3a19Smrg  . "./$as_me.lineno"
4837d5e3a19Smrg  # Exit status is that of the last command.
4847d5e3a19Smrg  exit
4857d5e3a19Smrg}
4867d5e3a19Smrg
4877d5e3a19Smrg
4887d5e3a19Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4897d5e3a19Smrg  as_dirname=dirname
4907d5e3a19Smrgelse
4917d5e3a19Smrg  as_dirname=false
4927d5e3a19Smrgfi
4937d5e3a19Smrg
4947d5e3a19SmrgECHO_C= ECHO_N= ECHO_T=
4957d5e3a19Smrgcase `echo -n x` in
4967d5e3a19Smrg-n*)
4977d5e3a19Smrg  case `echo 'x\c'` in
4987d5e3a19Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
4997d5e3a19Smrg  *)   ECHO_C='\c';;
5007d5e3a19Smrg  esac;;
5017d5e3a19Smrg*)
5027d5e3a19Smrg  ECHO_N='-n';;
5037d5e3a19Smrgesac
5047d5e3a19Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
5057d5e3a19Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5067d5e3a19Smrg  as_expr=expr
5077d5e3a19Smrgelse
5087d5e3a19Smrg  as_expr=false
5097d5e3a19Smrgfi
5107d5e3a19Smrg
5117d5e3a19Smrgrm -f conf$$ conf$$.exe conf$$.file
5127d5e3a19Smrgif test -d conf$$.dir; then
5137d5e3a19Smrg  rm -f conf$$.dir/conf$$.file
5147d5e3a19Smrgelse
5157d5e3a19Smrg  rm -f conf$$.dir
5161568b75bSmrg  mkdir conf$$.dir 2>/dev/null
5171568b75bSmrgfi
5181568b75bSmrgif (echo >conf$$.file) 2>/dev/null; then
5191568b75bSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
5201568b75bSmrg    as_ln_s='ln -s'
5211568b75bSmrg    # ... but there are two gotchas:
5221568b75bSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5231568b75bSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5241568b75bSmrg    # In both cases, we have to default to `cp -p'.
5251568b75bSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5261568b75bSmrg      as_ln_s='cp -p'
5271568b75bSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
5281568b75bSmrg    as_ln_s=ln
5291568b75bSmrg  else
5307d5e3a19Smrg    as_ln_s='cp -p'
5311568b75bSmrg  fi
5327d5e3a19Smrgelse
5337d5e3a19Smrg  as_ln_s='cp -p'
5347d5e3a19Smrgfi
5357d5e3a19Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5367d5e3a19Smrgrmdir conf$$.dir 2>/dev/null
5377d5e3a19Smrg
5387d5e3a19Smrgif mkdir -p . 2>/dev/null; then
5397d5e3a19Smrg  as_mkdir_p=:
5407d5e3a19Smrgelse
5417d5e3a19Smrg  test -d ./-p && rmdir ./-p
5427d5e3a19Smrg  as_mkdir_p=false
5437d5e3a19Smrgfi
5447d5e3a19Smrg
5457d5e3a19Smrgif test -x / >/dev/null 2>&1; then
5467d5e3a19Smrg  as_test_x='test -x'
5477d5e3a19Smrgelse
5487d5e3a19Smrg  if ls -dL / >/dev/null 2>&1; then
5497d5e3a19Smrg    as_ls_L_option=L
5507d5e3a19Smrg  else
5517d5e3a19Smrg    as_ls_L_option=
5527d5e3a19Smrg  fi
5537d5e3a19Smrg  as_test_x='
5547d5e3a19Smrg    eval sh -c '\''
5557d5e3a19Smrg      if test -d "$1"; then
5561568b75bSmrg	test -d "$1/.";
5577d5e3a19Smrg      else
5587d5e3a19Smrg	case $1 in
5591568b75bSmrg	-*)set "./$1";;
5607d5e3a19Smrg	esac;
5617d5e3a19Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5627d5e3a19Smrg	???[sx]*):;;*)false;;esac;fi
5637d5e3a19Smrg    '\'' sh
5647d5e3a19Smrg  '
5657d5e3a19Smrgfi
5667d5e3a19Smrgas_executable_p=$as_test_x
5677d5e3a19Smrg
5687d5e3a19Smrg# Sed expression to map a string onto a valid CPP name.
5697d5e3a19Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5707d5e3a19Smrg
5717d5e3a19Smrg# Sed expression to map a string onto a valid variable name.
5727d5e3a19Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5737d5e3a19Smrg
5747d5e3a19Smrg
5757d5e3a19Smrg
5767d5e3a19Smrgexec 7<&0 </dev/null 6>&1
5777d5e3a19Smrg
5787d5e3a19Smrg# Name of the host.
5797d5e3a19Smrg# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
5807d5e3a19Smrg# so uname gets run too.
5817d5e3a19Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
5827d5e3a19Smrg
5837d5e3a19Smrg#
5847d5e3a19Smrg# Initializations.
5857d5e3a19Smrg#
5867d5e3a19Smrgac_default_prefix=/usr/local
5877d5e3a19Smrgac_clean_files=
5887d5e3a19Smrgac_config_libobj_dir=.
5897d5e3a19SmrgLIBOBJS=
5907d5e3a19Smrgcross_compiling=no
5917d5e3a19Smrgsubdirs=
5927d5e3a19SmrgMFLAGS=
5937d5e3a19SmrgMAKEFLAGS=
5947d5e3a19SmrgSHELL=${CONFIG_SHELL-/bin/sh}
5957d5e3a19Smrg
5967d5e3a19Smrg# Identity of this package.
5977d5e3a19SmrgPACKAGE_NAME='setxkbmap'
5987d5e3a19SmrgPACKAGE_TARNAME='setxkbmap'
5991568b75bSmrgPACKAGE_VERSION='1.1.0'
6001568b75bSmrgPACKAGE_STRING='setxkbmap 1.1.0'
6017d5e3a19SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
6027d5e3a19Smrg
6031568b75bSmrg# Factoring default headers for most tests.
6041568b75bSmrgac_includes_default="\
6051568b75bSmrg#include <stdio.h>
6061568b75bSmrg#ifdef HAVE_SYS_TYPES_H
6071568b75bSmrg# include <sys/types.h>
6081568b75bSmrg#endif
6091568b75bSmrg#ifdef HAVE_SYS_STAT_H
6101568b75bSmrg# include <sys/stat.h>
6111568b75bSmrg#endif
6121568b75bSmrg#ifdef STDC_HEADERS
6131568b75bSmrg# include <stdlib.h>
6141568b75bSmrg# include <stddef.h>
6151568b75bSmrg#else
6161568b75bSmrg# ifdef HAVE_STDLIB_H
6171568b75bSmrg#  include <stdlib.h>
6181568b75bSmrg# endif
6191568b75bSmrg#endif
6201568b75bSmrg#ifdef HAVE_STRING_H
6211568b75bSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
6221568b75bSmrg#  include <memory.h>
6231568b75bSmrg# endif
6241568b75bSmrg# include <string.h>
6251568b75bSmrg#endif
6261568b75bSmrg#ifdef HAVE_STRINGS_H
6271568b75bSmrg# include <strings.h>
6281568b75bSmrg#endif
6291568b75bSmrg#ifdef HAVE_INTTYPES_H
6301568b75bSmrg# include <inttypes.h>
6311568b75bSmrg#endif
6321568b75bSmrg#ifdef HAVE_STDINT_H
6331568b75bSmrg# include <stdint.h>
6341568b75bSmrg#endif
6351568b75bSmrg#ifdef HAVE_UNISTD_H
6361568b75bSmrg# include <unistd.h>
6371568b75bSmrg#endif"
6381568b75bSmrg
6391568b75bSmrgac_subst_vars='am__EXEEXT_FALSE
6401568b75bSmrgam__EXEEXT_TRUE
6411568b75bSmrgLTLIBOBJS
6427d5e3a19SmrgLIBOBJS
6431568b75bSmrgdistcleancheck_listfiles
6441568b75bSmrgCHANGELOG_CMD
6451568b75bSmrgADMIN_MAN_DIR
6461568b75bSmrgDRIVER_MAN_DIR
6471568b75bSmrgMISC_MAN_DIR
6481568b75bSmrgFILE_MAN_DIR
6491568b75bSmrgLIB_MAN_DIR
6501568b75bSmrgAPP_MAN_DIR
6511568b75bSmrgADMIN_MAN_SUFFIX
6521568b75bSmrgDRIVER_MAN_SUFFIX
6531568b75bSmrgMISC_MAN_SUFFIX
6541568b75bSmrgFILE_MAN_SUFFIX
6551568b75bSmrgLIB_MAN_SUFFIX
6561568b75bSmrgAPP_MAN_SUFFIX
6571568b75bSmrghost_os
6581568b75bSmrghost_vendor
6591568b75bSmrghost_cpu
6601568b75bSmrghost
6611568b75bSmrgbuild_os
6621568b75bSmrgbuild_vendor
6631568b75bSmrgbuild_cpu
6641568b75bSmrgbuild
6651568b75bSmrgLINT_FALSE
6661568b75bSmrgLINT_TRUE
6671568b75bSmrgLINT_FLAGS
6681568b75bSmrgLINT
6691568b75bSmrgSETXKBMAP_LIBS
6701568b75bSmrgSETXKBMAP_CFLAGS
6711568b75bSmrgPKG_CONFIG
6721568b75bSmrgXKBCONFIGROOT
6731568b75bSmrgCWARNFLAGS
6741568b75bSmrgEGREP
6751568b75bSmrgGREP
6761568b75bSmrgCPP
6771568b75bSmrgam__fastdepCC_FALSE
6781568b75bSmrgam__fastdepCC_TRUE
6791568b75bSmrgCCDEPMODE
6801568b75bSmrgAMDEPBACKSLASH
6811568b75bSmrgAMDEP_FALSE
6821568b75bSmrgAMDEP_TRUE
6831568b75bSmrgam__quote
6841568b75bSmrgam__include
6851568b75bSmrgDEPDIR
6861568b75bSmrgOBJEXT
6871568b75bSmrgEXEEXT
6881568b75bSmrgac_ct_CC
6891568b75bSmrgCPPFLAGS
6901568b75bSmrgLDFLAGS
6911568b75bSmrgCFLAGS
6921568b75bSmrgCC
6931568b75bSmrgMAINT
6941568b75bSmrgMAINTAINER_MODE_FALSE
6951568b75bSmrgMAINTAINER_MODE_TRUE
6961568b75bSmrgam__untar
6971568b75bSmrgam__tar
6981568b75bSmrgAMTAR
6991568b75bSmrgam__leading_dot
7001568b75bSmrgSET_MAKE
7011568b75bSmrgAWK
7021568b75bSmrgmkdir_p
7031568b75bSmrgMKDIR_P
7041568b75bSmrgINSTALL_STRIP_PROGRAM
7051568b75bSmrgSTRIP
7061568b75bSmrginstall_sh
7071568b75bSmrgMAKEINFO
7081568b75bSmrgAUTOHEADER
7091568b75bSmrgAUTOMAKE
7101568b75bSmrgAUTOCONF
7111568b75bSmrgACLOCAL
7121568b75bSmrgVERSION
7131568b75bSmrgPACKAGE
7141568b75bSmrgCYGPATH_W
7151568b75bSmrgam__isrc
7161568b75bSmrgINSTALL_DATA
7171568b75bSmrgINSTALL_SCRIPT
7181568b75bSmrgINSTALL_PROGRAM
7191568b75bSmrgtarget_alias
7201568b75bSmrghost_alias
7211568b75bSmrgbuild_alias
7221568b75bSmrgLIBS
7231568b75bSmrgECHO_T
7241568b75bSmrgECHO_N
7251568b75bSmrgECHO_C
7261568b75bSmrgDEFS
7271568b75bSmrgmandir
7281568b75bSmrglocaledir
7291568b75bSmrglibdir
7301568b75bSmrgpsdir
7311568b75bSmrgpdfdir
7321568b75bSmrgdvidir
7331568b75bSmrghtmldir
7341568b75bSmrginfodir
7351568b75bSmrgdocdir
7361568b75bSmrgoldincludedir
7371568b75bSmrgincludedir
7381568b75bSmrglocalstatedir
7391568b75bSmrgsharedstatedir
7401568b75bSmrgsysconfdir
7411568b75bSmrgdatadir
7421568b75bSmrgdatarootdir
7431568b75bSmrglibexecdir
7441568b75bSmrgsbindir
7451568b75bSmrgbindir
7461568b75bSmrgprogram_transform_name
7471568b75bSmrgprefix
7481568b75bSmrgexec_prefix
7491568b75bSmrgPACKAGE_BUGREPORT
7501568b75bSmrgPACKAGE_STRING
7511568b75bSmrgPACKAGE_VERSION
7521568b75bSmrgPACKAGE_TARNAME
7531568b75bSmrgPACKAGE_NAME
7541568b75bSmrgPATH_SEPARATOR
7551568b75bSmrgSHELL'
7567d5e3a19Smrgac_subst_files=''
7571568b75bSmrgac_user_opts='
7581568b75bSmrgenable_option_checking
7591568b75bSmrgenable_maintainer_mode
7601568b75bSmrgenable_dependency_tracking
7611568b75bSmrgwith_xkb_config_root
7621568b75bSmrgwith_lint
7631568b75bSmrgwith_release_version
7641568b75bSmrg'
7657d5e3a19Smrg      ac_precious_vars='build_alias
7667d5e3a19Smrghost_alias
7677d5e3a19Smrgtarget_alias
7687d5e3a19SmrgCC
7697d5e3a19SmrgCFLAGS
7707d5e3a19SmrgLDFLAGS
7717d5e3a19SmrgLIBS
7727d5e3a19SmrgCPPFLAGS
7731568b75bSmrgCPP
7747d5e3a19SmrgPKG_CONFIG
7757d5e3a19SmrgSETXKBMAP_CFLAGS
7767d5e3a19SmrgSETXKBMAP_LIBS'
7777d5e3a19Smrg
7787d5e3a19Smrg
7797d5e3a19Smrg# Initialize some variables set by options.
7807d5e3a19Smrgac_init_help=
7817d5e3a19Smrgac_init_version=false
7821568b75bSmrgac_unrecognized_opts=
7831568b75bSmrgac_unrecognized_sep=
7847d5e3a19Smrg# The variables have the same names as the options, with
7857d5e3a19Smrg# dashes changed to underlines.
7867d5e3a19Smrgcache_file=/dev/null
7877d5e3a19Smrgexec_prefix=NONE
7887d5e3a19Smrgno_create=
7897d5e3a19Smrgno_recursion=
7907d5e3a19Smrgprefix=NONE
7917d5e3a19Smrgprogram_prefix=NONE
7927d5e3a19Smrgprogram_suffix=NONE
7937d5e3a19Smrgprogram_transform_name=s,x,x,
7947d5e3a19Smrgsilent=
7957d5e3a19Smrgsite=
7967d5e3a19Smrgsrcdir=
7977d5e3a19Smrgverbose=
7987d5e3a19Smrgx_includes=NONE
7997d5e3a19Smrgx_libraries=NONE
8007d5e3a19Smrg
8017d5e3a19Smrg# Installation directory options.
8027d5e3a19Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
8037d5e3a19Smrg# and all the variables that are supposed to be based on exec_prefix
8047d5e3a19Smrg# by default will actually change.
8057d5e3a19Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
8067d5e3a19Smrg# (The list follows the same order as the GNU Coding Standards.)
8077d5e3a19Smrgbindir='${exec_prefix}/bin'
8087d5e3a19Smrgsbindir='${exec_prefix}/sbin'
8097d5e3a19Smrglibexecdir='${exec_prefix}/libexec'
8107d5e3a19Smrgdatarootdir='${prefix}/share'
8117d5e3a19Smrgdatadir='${datarootdir}'
8127d5e3a19Smrgsysconfdir='${prefix}/etc'
8137d5e3a19Smrgsharedstatedir='${prefix}/com'
8147d5e3a19Smrglocalstatedir='${prefix}/var'
8157d5e3a19Smrgincludedir='${prefix}/include'
8167d5e3a19Smrgoldincludedir='/usr/include'
8177d5e3a19Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
8187d5e3a19Smrginfodir='${datarootdir}/info'
8197d5e3a19Smrghtmldir='${docdir}'
8207d5e3a19Smrgdvidir='${docdir}'
8217d5e3a19Smrgpdfdir='${docdir}'
8227d5e3a19Smrgpsdir='${docdir}'
8237d5e3a19Smrglibdir='${exec_prefix}/lib'
8247d5e3a19Smrglocaledir='${datarootdir}/locale'
8257d5e3a19Smrgmandir='${datarootdir}/man'
8267d5e3a19Smrg
8277d5e3a19Smrgac_prev=
8287d5e3a19Smrgac_dashdash=
8297d5e3a19Smrgfor ac_option
8307d5e3a19Smrgdo
8317d5e3a19Smrg  # If the previous option needs an argument, assign it.
8327d5e3a19Smrg  if test -n "$ac_prev"; then
8337d5e3a19Smrg    eval $ac_prev=\$ac_option
8347d5e3a19Smrg    ac_prev=
8357d5e3a19Smrg    continue
8367d5e3a19Smrg  fi
8377d5e3a19Smrg
8387d5e3a19Smrg  case $ac_option in
8397d5e3a19Smrg  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
8407d5e3a19Smrg  *)	ac_optarg=yes ;;
8417d5e3a19Smrg  esac
8427d5e3a19Smrg
8437d5e3a19Smrg  # Accept the important Cygnus configure options, so we can diagnose typos.
8447d5e3a19Smrg
8457d5e3a19Smrg  case $ac_dashdash$ac_option in
8467d5e3a19Smrg  --)
8477d5e3a19Smrg    ac_dashdash=yes ;;
8487d5e3a19Smrg
8497d5e3a19Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
8507d5e3a19Smrg    ac_prev=bindir ;;
8517d5e3a19Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
8527d5e3a19Smrg    bindir=$ac_optarg ;;
8537d5e3a19Smrg
8547d5e3a19Smrg  -build | --build | --buil | --bui | --bu)
8557d5e3a19Smrg    ac_prev=build_alias ;;
8567d5e3a19Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
8577d5e3a19Smrg    build_alias=$ac_optarg ;;
8587d5e3a19Smrg
8597d5e3a19Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
8607d5e3a19Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8617d5e3a19Smrg    ac_prev=cache_file ;;
8627d5e3a19Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8637d5e3a19Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8647d5e3a19Smrg    cache_file=$ac_optarg ;;
8657d5e3a19Smrg
8667d5e3a19Smrg  --config-cache | -C)
8677d5e3a19Smrg    cache_file=config.cache ;;
8687d5e3a19Smrg
8697d5e3a19Smrg  -datadir | --datadir | --datadi | --datad)
8707d5e3a19Smrg    ac_prev=datadir ;;
8717d5e3a19Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
8727d5e3a19Smrg    datadir=$ac_optarg ;;
8737d5e3a19Smrg
8747d5e3a19Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
8757d5e3a19Smrg  | --dataroo | --dataro | --datar)
8767d5e3a19Smrg    ac_prev=datarootdir ;;
8777d5e3a19Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
8787d5e3a19Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
8797d5e3a19Smrg    datarootdir=$ac_optarg ;;
8807d5e3a19Smrg
8817d5e3a19Smrg  -disable-* | --disable-*)
8821568b75bSmrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
8837d5e3a19Smrg    # Reject names that are not valid shell variable names.
8841568b75bSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8851568b75bSmrg      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
8867d5e3a19Smrg   { (exit 1); exit 1; }; }
8871568b75bSmrg    ac_useropt_orig=$ac_useropt
8881568b75bSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8891568b75bSmrg    case $ac_user_opts in
8901568b75bSmrg      *"
8911568b75bSmrg"enable_$ac_useropt"
8921568b75bSmrg"*) ;;
8931568b75bSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
8941568b75bSmrg	 ac_unrecognized_sep=', ';;
8951568b75bSmrg    esac
8961568b75bSmrg    eval enable_$ac_useropt=no ;;
8977d5e3a19Smrg
8987d5e3a19Smrg  -docdir | --docdir | --docdi | --doc | --do)
8997d5e3a19Smrg    ac_prev=docdir ;;
9007d5e3a19Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
9017d5e3a19Smrg    docdir=$ac_optarg ;;
9027d5e3a19Smrg
9037d5e3a19Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
9047d5e3a19Smrg    ac_prev=dvidir ;;
9057d5e3a19Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
9067d5e3a19Smrg    dvidir=$ac_optarg ;;
9077d5e3a19Smrg
9087d5e3a19Smrg  -enable-* | --enable-*)
9091568b75bSmrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
9107d5e3a19Smrg    # Reject names that are not valid shell variable names.
9111568b75bSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
9121568b75bSmrg      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
9137d5e3a19Smrg   { (exit 1); exit 1; }; }
9141568b75bSmrg    ac_useropt_orig=$ac_useropt
9151568b75bSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
9161568b75bSmrg    case $ac_user_opts in
9171568b75bSmrg      *"
9181568b75bSmrg"enable_$ac_useropt"
9191568b75bSmrg"*) ;;
9201568b75bSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
9211568b75bSmrg	 ac_unrecognized_sep=', ';;
9221568b75bSmrg    esac
9231568b75bSmrg    eval enable_$ac_useropt=\$ac_optarg ;;
9247d5e3a19Smrg
9257d5e3a19Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
9267d5e3a19Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
9277d5e3a19Smrg  | --exec | --exe | --ex)
9287d5e3a19Smrg    ac_prev=exec_prefix ;;
9297d5e3a19Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
9307d5e3a19Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
9317d5e3a19Smrg  | --exec=* | --exe=* | --ex=*)
9327d5e3a19Smrg    exec_prefix=$ac_optarg ;;
9337d5e3a19Smrg
9347d5e3a19Smrg  -gas | --gas | --ga | --g)
9357d5e3a19Smrg    # Obsolete; use --with-gas.
9367d5e3a19Smrg    with_gas=yes ;;
9377d5e3a19Smrg
9387d5e3a19Smrg  -help | --help | --hel | --he | -h)
9397d5e3a19Smrg    ac_init_help=long ;;
9407d5e3a19Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
9417d5e3a19Smrg    ac_init_help=recursive ;;
9427d5e3a19Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
9437d5e3a19Smrg    ac_init_help=short ;;
9447d5e3a19Smrg
9457d5e3a19Smrg  -host | --host | --hos | --ho)
9467d5e3a19Smrg    ac_prev=host_alias ;;
9477d5e3a19Smrg  -host=* | --host=* | --hos=* | --ho=*)
9487d5e3a19Smrg    host_alias=$ac_optarg ;;
9497d5e3a19Smrg
9507d5e3a19Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
9517d5e3a19Smrg    ac_prev=htmldir ;;
9527d5e3a19Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
9537d5e3a19Smrg  | --ht=*)
9547d5e3a19Smrg    htmldir=$ac_optarg ;;
9557d5e3a19Smrg
9567d5e3a19Smrg  -includedir | --includedir | --includedi | --included | --include \
9577d5e3a19Smrg  | --includ | --inclu | --incl | --inc)
9587d5e3a19Smrg    ac_prev=includedir ;;
9597d5e3a19Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
9607d5e3a19Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
9617d5e3a19Smrg    includedir=$ac_optarg ;;
9627d5e3a19Smrg
9637d5e3a19Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
9647d5e3a19Smrg    ac_prev=infodir ;;
9657d5e3a19Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
9667d5e3a19Smrg    infodir=$ac_optarg ;;
9677d5e3a19Smrg
9687d5e3a19Smrg  -libdir | --libdir | --libdi | --libd)
9697d5e3a19Smrg    ac_prev=libdir ;;
9707d5e3a19Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
9717d5e3a19Smrg    libdir=$ac_optarg ;;
9727d5e3a19Smrg
9737d5e3a19Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
9747d5e3a19Smrg  | --libexe | --libex | --libe)
9757d5e3a19Smrg    ac_prev=libexecdir ;;
9767d5e3a19Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
9777d5e3a19Smrg  | --libexe=* | --libex=* | --libe=*)
9787d5e3a19Smrg    libexecdir=$ac_optarg ;;
9797d5e3a19Smrg
9807d5e3a19Smrg  -localedir | --localedir | --localedi | --localed | --locale)
9817d5e3a19Smrg    ac_prev=localedir ;;
9827d5e3a19Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
9837d5e3a19Smrg    localedir=$ac_optarg ;;
9847d5e3a19Smrg
9857d5e3a19Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
9867d5e3a19Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
9877d5e3a19Smrg    ac_prev=localstatedir ;;
9887d5e3a19Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
9897d5e3a19Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
9907d5e3a19Smrg    localstatedir=$ac_optarg ;;
9917d5e3a19Smrg
9927d5e3a19Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
9937d5e3a19Smrg    ac_prev=mandir ;;
9947d5e3a19Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
9957d5e3a19Smrg    mandir=$ac_optarg ;;
9967d5e3a19Smrg
9977d5e3a19Smrg  -nfp | --nfp | --nf)
9987d5e3a19Smrg    # Obsolete; use --without-fp.
9997d5e3a19Smrg    with_fp=no ;;
10007d5e3a19Smrg
10017d5e3a19Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
10027d5e3a19Smrg  | --no-cr | --no-c | -n)
10037d5e3a19Smrg    no_create=yes ;;
10047d5e3a19Smrg
10057d5e3a19Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
10067d5e3a19Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
10077d5e3a19Smrg    no_recursion=yes ;;
10087d5e3a19Smrg
10097d5e3a19Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
10107d5e3a19Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
10117d5e3a19Smrg  | --oldin | --oldi | --old | --ol | --o)
10127d5e3a19Smrg    ac_prev=oldincludedir ;;
10137d5e3a19Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
10147d5e3a19Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
10157d5e3a19Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
10167d5e3a19Smrg    oldincludedir=$ac_optarg ;;
10177d5e3a19Smrg
10187d5e3a19Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10197d5e3a19Smrg    ac_prev=prefix ;;
10207d5e3a19Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10217d5e3a19Smrg    prefix=$ac_optarg ;;
10227d5e3a19Smrg
10237d5e3a19Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
10247d5e3a19Smrg  | --program-pre | --program-pr | --program-p)
10257d5e3a19Smrg    ac_prev=program_prefix ;;
10267d5e3a19Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
10277d5e3a19Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
10287d5e3a19Smrg    program_prefix=$ac_optarg ;;
10297d5e3a19Smrg
10307d5e3a19Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
10317d5e3a19Smrg  | --program-suf | --program-su | --program-s)
10327d5e3a19Smrg    ac_prev=program_suffix ;;
10337d5e3a19Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
10347d5e3a19Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
10357d5e3a19Smrg    program_suffix=$ac_optarg ;;
10367d5e3a19Smrg
10377d5e3a19Smrg  -program-transform-name | --program-transform-name \
10387d5e3a19Smrg  | --program-transform-nam | --program-transform-na \
10397d5e3a19Smrg  | --program-transform-n | --program-transform- \
10407d5e3a19Smrg  | --program-transform | --program-transfor \
10417d5e3a19Smrg  | --program-transfo | --program-transf \
10427d5e3a19Smrg  | --program-trans | --program-tran \
10437d5e3a19Smrg  | --progr-tra | --program-tr | --program-t)
10447d5e3a19Smrg    ac_prev=program_transform_name ;;
10457d5e3a19Smrg  -program-transform-name=* | --program-transform-name=* \
10467d5e3a19Smrg  | --program-transform-nam=* | --program-transform-na=* \
10477d5e3a19Smrg  | --program-transform-n=* | --program-transform-=* \
10487d5e3a19Smrg  | --program-transform=* | --program-transfor=* \
10497d5e3a19Smrg  | --program-transfo=* | --program-transf=* \
10507d5e3a19Smrg  | --program-trans=* | --program-tran=* \
10517d5e3a19Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
10527d5e3a19Smrg    program_transform_name=$ac_optarg ;;
10537d5e3a19Smrg
10547d5e3a19Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
10557d5e3a19Smrg    ac_prev=pdfdir ;;
10567d5e3a19Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
10577d5e3a19Smrg    pdfdir=$ac_optarg ;;
10587d5e3a19Smrg
10597d5e3a19Smrg  -psdir | --psdir | --psdi | --psd | --ps)
10607d5e3a19Smrg    ac_prev=psdir ;;
10617d5e3a19Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
10627d5e3a19Smrg    psdir=$ac_optarg ;;
10637d5e3a19Smrg
10647d5e3a19Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10657d5e3a19Smrg  | -silent | --silent | --silen | --sile | --sil)
10667d5e3a19Smrg    silent=yes ;;
10677d5e3a19Smrg
10687d5e3a19Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
10697d5e3a19Smrg    ac_prev=sbindir ;;
10707d5e3a19Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
10717d5e3a19Smrg  | --sbi=* | --sb=*)
10727d5e3a19Smrg    sbindir=$ac_optarg ;;
10737d5e3a19Smrg
10747d5e3a19Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
10757d5e3a19Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
10767d5e3a19Smrg  | --sharedst | --shareds | --shared | --share | --shar \
10777d5e3a19Smrg  | --sha | --sh)
10787d5e3a19Smrg    ac_prev=sharedstatedir ;;
10797d5e3a19Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
10807d5e3a19Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
10817d5e3a19Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
10827d5e3a19Smrg  | --sha=* | --sh=*)
10837d5e3a19Smrg    sharedstatedir=$ac_optarg ;;
10847d5e3a19Smrg
10857d5e3a19Smrg  -site | --site | --sit)
10867d5e3a19Smrg    ac_prev=site ;;
10877d5e3a19Smrg  -site=* | --site=* | --sit=*)
10887d5e3a19Smrg    site=$ac_optarg ;;
10897d5e3a19Smrg
10907d5e3a19Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10917d5e3a19Smrg    ac_prev=srcdir ;;
10927d5e3a19Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10937d5e3a19Smrg    srcdir=$ac_optarg ;;
10947d5e3a19Smrg
10957d5e3a19Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
10967d5e3a19Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
10977d5e3a19Smrg    ac_prev=sysconfdir ;;
10987d5e3a19Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
10997d5e3a19Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
11007d5e3a19Smrg    sysconfdir=$ac_optarg ;;
11017d5e3a19Smrg
11027d5e3a19Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
11037d5e3a19Smrg    ac_prev=target_alias ;;
11047d5e3a19Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
11057d5e3a19Smrg    target_alias=$ac_optarg ;;
11067d5e3a19Smrg
11077d5e3a19Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
11087d5e3a19Smrg    verbose=yes ;;
11097d5e3a19Smrg
11107d5e3a19Smrg  -version | --version | --versio | --versi | --vers | -V)
11117d5e3a19Smrg    ac_init_version=: ;;
11127d5e3a19Smrg
11137d5e3a19Smrg  -with-* | --with-*)
11141568b75bSmrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
11157d5e3a19Smrg    # Reject names that are not valid shell variable names.
11161568b75bSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11171568b75bSmrg      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
11187d5e3a19Smrg   { (exit 1); exit 1; }; }
11191568b75bSmrg    ac_useropt_orig=$ac_useropt
11201568b75bSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11211568b75bSmrg    case $ac_user_opts in
11221568b75bSmrg      *"
11231568b75bSmrg"with_$ac_useropt"
11241568b75bSmrg"*) ;;
11251568b75bSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
11261568b75bSmrg	 ac_unrecognized_sep=', ';;
11271568b75bSmrg    esac
11281568b75bSmrg    eval with_$ac_useropt=\$ac_optarg ;;
11297d5e3a19Smrg
11307d5e3a19Smrg  -without-* | --without-*)
11311568b75bSmrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
11327d5e3a19Smrg    # Reject names that are not valid shell variable names.
11331568b75bSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11341568b75bSmrg      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
11357d5e3a19Smrg   { (exit 1); exit 1; }; }
11361568b75bSmrg    ac_useropt_orig=$ac_useropt
11371568b75bSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11381568b75bSmrg    case $ac_user_opts in
11391568b75bSmrg      *"
11401568b75bSmrg"with_$ac_useropt"
11411568b75bSmrg"*) ;;
11421568b75bSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
11431568b75bSmrg	 ac_unrecognized_sep=', ';;
11441568b75bSmrg    esac
11451568b75bSmrg    eval with_$ac_useropt=no ;;
11467d5e3a19Smrg
11477d5e3a19Smrg  --x)
11487d5e3a19Smrg    # Obsolete; use --with-x.
11497d5e3a19Smrg    with_x=yes ;;
11507d5e3a19Smrg
11517d5e3a19Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
11527d5e3a19Smrg  | --x-incl | --x-inc | --x-in | --x-i)
11537d5e3a19Smrg    ac_prev=x_includes ;;
11547d5e3a19Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
11557d5e3a19Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
11567d5e3a19Smrg    x_includes=$ac_optarg ;;
11577d5e3a19Smrg
11587d5e3a19Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
11597d5e3a19Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
11607d5e3a19Smrg    ac_prev=x_libraries ;;
11617d5e3a19Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
11627d5e3a19Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
11637d5e3a19Smrg    x_libraries=$ac_optarg ;;
11647d5e3a19Smrg
11651568b75bSmrg  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
11667d5e3a19SmrgTry \`$0 --help' for more information." >&2
11677d5e3a19Smrg   { (exit 1); exit 1; }; }
11687d5e3a19Smrg    ;;
11697d5e3a19Smrg
11707d5e3a19Smrg  *=*)
11717d5e3a19Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
11727d5e3a19Smrg    # Reject names that are not valid shell variable names.
11737d5e3a19Smrg    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
11741568b75bSmrg      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
11757d5e3a19Smrg   { (exit 1); exit 1; }; }
11767d5e3a19Smrg    eval $ac_envvar=\$ac_optarg
11777d5e3a19Smrg    export $ac_envvar ;;
11787d5e3a19Smrg
11797d5e3a19Smrg  *)
11807d5e3a19Smrg    # FIXME: should be removed in autoconf 3.0.
11811568b75bSmrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
11827d5e3a19Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
11831568b75bSmrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
11847d5e3a19Smrg    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
11857d5e3a19Smrg    ;;
11867d5e3a19Smrg
11877d5e3a19Smrg  esac
11887d5e3a19Smrgdone
11897d5e3a19Smrg
11907d5e3a19Smrgif test -n "$ac_prev"; then
11917d5e3a19Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
11921568b75bSmrg  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
11937d5e3a19Smrg   { (exit 1); exit 1; }; }
11947d5e3a19Smrgfi
11957d5e3a19Smrg
11961568b75bSmrgif test -n "$ac_unrecognized_opts"; then
11971568b75bSmrg  case $enable_option_checking in
11981568b75bSmrg    no) ;;
11991568b75bSmrg    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
12001568b75bSmrg   { (exit 1); exit 1; }; } ;;
12011568b75bSmrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
12021568b75bSmrg  esac
12031568b75bSmrgfi
12041568b75bSmrg
12051568b75bSmrg# Check all directory arguments for consistency.
12067d5e3a19Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
12077d5e3a19Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
12087d5e3a19Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
12097d5e3a19Smrg		libdir localedir mandir
12107d5e3a19Smrgdo
12117d5e3a19Smrg  eval ac_val=\$$ac_var
12121568b75bSmrg  # Remove trailing slashes.
12131568b75bSmrg  case $ac_val in
12141568b75bSmrg    */ )
12151568b75bSmrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
12161568b75bSmrg      eval $ac_var=\$ac_val;;
12171568b75bSmrg  esac
12181568b75bSmrg  # Be sure to have absolute directory names.
12197d5e3a19Smrg  case $ac_val in
12207d5e3a19Smrg    [\\/$]* | ?:[\\/]* )  continue;;
12217d5e3a19Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
12227d5e3a19Smrg  esac
12231568b75bSmrg  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
12247d5e3a19Smrg   { (exit 1); exit 1; }; }
12257d5e3a19Smrgdone
12267d5e3a19Smrg
12277d5e3a19Smrg# There might be people who depend on the old broken behavior: `$host'
12287d5e3a19Smrg# used to hold the argument of --host etc.
12297d5e3a19Smrg# FIXME: To remove some day.
12307d5e3a19Smrgbuild=$build_alias
12317d5e3a19Smrghost=$host_alias
12327d5e3a19Smrgtarget=$target_alias
12337d5e3a19Smrg
12347d5e3a19Smrg# FIXME: To remove some day.
12357d5e3a19Smrgif test "x$host_alias" != x; then
12367d5e3a19Smrg  if test "x$build_alias" = x; then
12377d5e3a19Smrg    cross_compiling=maybe
12381568b75bSmrg    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
12397d5e3a19Smrg    If a cross compiler is detected then cross compile mode will be used." >&2
12407d5e3a19Smrg  elif test "x$build_alias" != "x$host_alias"; then
12417d5e3a19Smrg    cross_compiling=yes
12427d5e3a19Smrg  fi
12437d5e3a19Smrgfi
12447d5e3a19Smrg
12457d5e3a19Smrgac_tool_prefix=
12467d5e3a19Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
12477d5e3a19Smrg
12487d5e3a19Smrgtest "$silent" = yes && exec 6>/dev/null
12497d5e3a19Smrg
12507d5e3a19Smrg
12517d5e3a19Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
12527d5e3a19Smrgac_ls_di=`ls -di .` &&
12537d5e3a19Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12541568b75bSmrg  { $as_echo "$as_me: error: working directory cannot be determined" >&2
12557d5e3a19Smrg   { (exit 1); exit 1; }; }
12567d5e3a19Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12571568b75bSmrg  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
12587d5e3a19Smrg   { (exit 1); exit 1; }; }
12597d5e3a19Smrg
12607d5e3a19Smrg
12617d5e3a19Smrg# Find the source files, if location was not specified.
12627d5e3a19Smrgif test -z "$srcdir"; then
12637d5e3a19Smrg  ac_srcdir_defaulted=yes
12647d5e3a19Smrg  # Try the directory containing this script, then the parent directory.
12651568b75bSmrg  ac_confdir=`$as_dirname -- "$as_myself" ||
12661568b75bSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12671568b75bSmrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
12681568b75bSmrg	 X"$as_myself" : 'X\(//\)$' \| \
12691568b75bSmrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
12701568b75bSmrg$as_echo X"$as_myself" |
12717d5e3a19Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12727d5e3a19Smrg	    s//\1/
12737d5e3a19Smrg	    q
12747d5e3a19Smrg	  }
12757d5e3a19Smrg	  /^X\(\/\/\)[^/].*/{
12767d5e3a19Smrg	    s//\1/
12777d5e3a19Smrg	    q
12787d5e3a19Smrg	  }
12797d5e3a19Smrg	  /^X\(\/\/\)$/{
12807d5e3a19Smrg	    s//\1/
12817d5e3a19Smrg	    q
12827d5e3a19Smrg	  }
12837d5e3a19Smrg	  /^X\(\/\).*/{
12847d5e3a19Smrg	    s//\1/
12857d5e3a19Smrg	    q
12867d5e3a19Smrg	  }
12877d5e3a19Smrg	  s/.*/./; q'`
12887d5e3a19Smrg  srcdir=$ac_confdir
12897d5e3a19Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
12907d5e3a19Smrg    srcdir=..
12917d5e3a19Smrg  fi
12927d5e3a19Smrgelse
12937d5e3a19Smrg  ac_srcdir_defaulted=no
12947d5e3a19Smrgfi
12957d5e3a19Smrgif test ! -r "$srcdir/$ac_unique_file"; then
12967d5e3a19Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12971568b75bSmrg  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
12987d5e3a19Smrg   { (exit 1); exit 1; }; }
12997d5e3a19Smrgfi
13007d5e3a19Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
13017d5e3a19Smrgac_abs_confdir=`(
13021568b75bSmrg	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
13037d5e3a19Smrg   { (exit 1); exit 1; }; }
13047d5e3a19Smrg	pwd)`
13057d5e3a19Smrg# When building in place, set srcdir=.
13067d5e3a19Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
13077d5e3a19Smrg  srcdir=.
13087d5e3a19Smrgfi
13097d5e3a19Smrg# Remove unnecessary trailing slashes from srcdir.
13107d5e3a19Smrg# Double slashes in file names in object file debugging info
13117d5e3a19Smrg# mess up M-x gdb in Emacs.
13127d5e3a19Smrgcase $srcdir in
13137d5e3a19Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
13147d5e3a19Smrgesac
13157d5e3a19Smrgfor ac_var in $ac_precious_vars; do
13167d5e3a19Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
13177d5e3a19Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
13187d5e3a19Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
13197d5e3a19Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
13207d5e3a19Smrgdone
13217d5e3a19Smrg
13227d5e3a19Smrg#
13237d5e3a19Smrg# Report the --help message.
13247d5e3a19Smrg#
13257d5e3a19Smrgif test "$ac_init_help" = "long"; then
13267d5e3a19Smrg  # Omit some internal or obsolete options to make the list less imposing.
13277d5e3a19Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
13287d5e3a19Smrg  cat <<_ACEOF
13291568b75bSmrg\`configure' configures setxkbmap 1.1.0 to adapt to many kinds of systems.
13307d5e3a19Smrg
13317d5e3a19SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
13327d5e3a19Smrg
13337d5e3a19SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
13347d5e3a19SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
13357d5e3a19Smrg
13367d5e3a19SmrgDefaults for the options are specified in brackets.
13377d5e3a19Smrg
13387d5e3a19SmrgConfiguration:
13397d5e3a19Smrg  -h, --help              display this help and exit
13407d5e3a19Smrg      --help=short        display options specific to this package
13417d5e3a19Smrg      --help=recursive    display the short help of all the included packages
13427d5e3a19Smrg  -V, --version           display version information and exit
13437d5e3a19Smrg  -q, --quiet, --silent   do not print \`checking...' messages
13447d5e3a19Smrg      --cache-file=FILE   cache test results in FILE [disabled]
13457d5e3a19Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
13467d5e3a19Smrg  -n, --no-create         do not create output files
13477d5e3a19Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
13487d5e3a19Smrg
13497d5e3a19SmrgInstallation directories:
13507d5e3a19Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
13511568b75bSmrg                          [$ac_default_prefix]
13527d5e3a19Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
13531568b75bSmrg                          [PREFIX]
13547d5e3a19Smrg
13557d5e3a19SmrgBy default, \`make install' will install all the files in
13567d5e3a19Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
13577d5e3a19Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
13587d5e3a19Smrgfor instance \`--prefix=\$HOME'.
13597d5e3a19Smrg
13607d5e3a19SmrgFor better control, use the options below.
13617d5e3a19Smrg
13627d5e3a19SmrgFine tuning of the installation directories:
13631568b75bSmrg  --bindir=DIR            user executables [EPREFIX/bin]
13641568b75bSmrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
13651568b75bSmrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
13661568b75bSmrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
13671568b75bSmrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
13681568b75bSmrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
13691568b75bSmrg  --libdir=DIR            object code libraries [EPREFIX/lib]
13701568b75bSmrg  --includedir=DIR        C header files [PREFIX/include]
13711568b75bSmrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
13721568b75bSmrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
13731568b75bSmrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
13741568b75bSmrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
13751568b75bSmrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
13761568b75bSmrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
13771568b75bSmrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/setxkbmap]
13781568b75bSmrg  --htmldir=DIR           html documentation [DOCDIR]
13791568b75bSmrg  --dvidir=DIR            dvi documentation [DOCDIR]
13801568b75bSmrg  --pdfdir=DIR            pdf documentation [DOCDIR]
13811568b75bSmrg  --psdir=DIR             ps documentation [DOCDIR]
13827d5e3a19Smrg_ACEOF
13837d5e3a19Smrg
13847d5e3a19Smrg  cat <<\_ACEOF
13857d5e3a19Smrg
13867d5e3a19SmrgProgram names:
13877d5e3a19Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
13887d5e3a19Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
13897d5e3a19Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
13907d5e3a19Smrg
13917d5e3a19SmrgSystem types:
13927d5e3a19Smrg  --build=BUILD     configure for building on BUILD [guessed]
13937d5e3a19Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
13947d5e3a19Smrg_ACEOF
13957d5e3a19Smrgfi
13967d5e3a19Smrg
13977d5e3a19Smrgif test -n "$ac_init_help"; then
13987d5e3a19Smrg  case $ac_init_help in
13991568b75bSmrg     short | recursive ) echo "Configuration of setxkbmap 1.1.0:";;
14007d5e3a19Smrg   esac
14017d5e3a19Smrg  cat <<\_ACEOF
14027d5e3a19Smrg
14037d5e3a19SmrgOptional Features:
14041568b75bSmrg  --disable-option-checking  ignore unrecognized --enable/--with options
14057d5e3a19Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
14067d5e3a19Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
14077d5e3a19Smrg  --enable-maintainer-mode  enable make rules and dependencies not useful
14087d5e3a19Smrg			  (and sometimes confusing) to the casual installer
14097d5e3a19Smrg  --disable-dependency-tracking  speeds up one-time build
14107d5e3a19Smrg  --enable-dependency-tracking   do not reject slow dependency extractors
14117d5e3a19Smrg
14127d5e3a19SmrgOptional Packages:
14137d5e3a19Smrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
14147d5e3a19Smrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
14157d5e3a19Smrg  --with-xkb-config-root=<paths>
14167d5e3a19Smrg                          Set default XKB config root (default:
14177d5e3a19Smrg                          ${datadir}/X11/xkb)
14187d5e3a19Smrg  --with-lint             Use a lint-style source code checker (default:
14197d5e3a19Smrg                          disabled)
14207d5e3a19Smrg  --with-release-version=STRING
14217d5e3a19Smrg                          Use release version string in package name
14227d5e3a19Smrg
14237d5e3a19SmrgSome influential environment variables:
14247d5e3a19Smrg  CC          C compiler command
14257d5e3a19Smrg  CFLAGS      C compiler flags
14267d5e3a19Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
14277d5e3a19Smrg              nonstandard directory <lib dir>
14287d5e3a19Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
14297d5e3a19Smrg  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
14307d5e3a19Smrg              you have headers in a nonstandard directory <include dir>
14311568b75bSmrg  CPP         C preprocessor
14327d5e3a19Smrg  PKG_CONFIG  path to pkg-config utility
14337d5e3a19Smrg  SETXKBMAP_CFLAGS
14347d5e3a19Smrg              C compiler flags for SETXKBMAP, overriding pkg-config
14357d5e3a19Smrg  SETXKBMAP_LIBS
14367d5e3a19Smrg              linker flags for SETXKBMAP, overriding pkg-config
14377d5e3a19Smrg
14387d5e3a19SmrgUse these variables to override the choices made by `configure' or to help
14397d5e3a19Smrgit to find libraries and programs with nonstandard names/locations.
14407d5e3a19Smrg
14417d5e3a19SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
14427d5e3a19Smrg_ACEOF
14437d5e3a19Smrgac_status=$?
14447d5e3a19Smrgfi
14457d5e3a19Smrg
14467d5e3a19Smrgif test "$ac_init_help" = "recursive"; then
14477d5e3a19Smrg  # If there are subdirs, report their specific --help.
14487d5e3a19Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
14491568b75bSmrg    test -d "$ac_dir" ||
14501568b75bSmrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
14511568b75bSmrg      continue
14527d5e3a19Smrg    ac_builddir=.
14537d5e3a19Smrg
14547d5e3a19Smrgcase "$ac_dir" in
14557d5e3a19Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14567d5e3a19Smrg*)
14571568b75bSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14587d5e3a19Smrg  # A ".." for each directory in $ac_dir_suffix.
14591568b75bSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14607d5e3a19Smrg  case $ac_top_builddir_sub in
14617d5e3a19Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14627d5e3a19Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14637d5e3a19Smrg  esac ;;
14647d5e3a19Smrgesac
14657d5e3a19Smrgac_abs_top_builddir=$ac_pwd
14667d5e3a19Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
14677d5e3a19Smrg# for backward compatibility:
14687d5e3a19Smrgac_top_builddir=$ac_top_build_prefix
14697d5e3a19Smrg
14707d5e3a19Smrgcase $srcdir in
14717d5e3a19Smrg  .)  # We are building in place.
14727d5e3a19Smrg    ac_srcdir=.
14737d5e3a19Smrg    ac_top_srcdir=$ac_top_builddir_sub
14747d5e3a19Smrg    ac_abs_top_srcdir=$ac_pwd ;;
14757d5e3a19Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
14767d5e3a19Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
14777d5e3a19Smrg    ac_top_srcdir=$srcdir
14787d5e3a19Smrg    ac_abs_top_srcdir=$srcdir ;;
14797d5e3a19Smrg  *) # Relative name.
14807d5e3a19Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14817d5e3a19Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
14827d5e3a19Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14837d5e3a19Smrgesac
14847d5e3a19Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14857d5e3a19Smrg
14867d5e3a19Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
14877d5e3a19Smrg    # Check for guested configure.
14887d5e3a19Smrg    if test -f "$ac_srcdir/configure.gnu"; then
14897d5e3a19Smrg      echo &&
14907d5e3a19Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
14917d5e3a19Smrg    elif test -f "$ac_srcdir/configure"; then
14927d5e3a19Smrg      echo &&
14937d5e3a19Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
14947d5e3a19Smrg    else
14951568b75bSmrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
14967d5e3a19Smrg    fi || ac_status=$?
14977d5e3a19Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
14987d5e3a19Smrg  done
14997d5e3a19Smrgfi
15007d5e3a19Smrg
15017d5e3a19Smrgtest -n "$ac_init_help" && exit $ac_status
15027d5e3a19Smrgif $ac_init_version; then
15037d5e3a19Smrg  cat <<\_ACEOF
15041568b75bSmrgsetxkbmap configure 1.1.0
15051568b75bSmrggenerated by GNU Autoconf 2.63
15067d5e3a19Smrg
15077d5e3a19SmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15081568b75bSmrg2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
15097d5e3a19SmrgThis configure script is free software; the Free Software Foundation
15107d5e3a19Smrggives unlimited permission to copy, distribute and modify it.
15117d5e3a19Smrg_ACEOF
15127d5e3a19Smrg  exit
15137d5e3a19Smrgfi
15147d5e3a19Smrgcat >config.log <<_ACEOF
15157d5e3a19SmrgThis file contains any messages produced by compilers while
15167d5e3a19Smrgrunning configure, to aid debugging if configure makes a mistake.
15177d5e3a19Smrg
15181568b75bSmrgIt was created by setxkbmap $as_me 1.1.0, which was
15191568b75bSmrggenerated by GNU Autoconf 2.63.  Invocation command line was
15207d5e3a19Smrg
15217d5e3a19Smrg  $ $0 $@
15227d5e3a19Smrg
15237d5e3a19Smrg_ACEOF
15247d5e3a19Smrgexec 5>>config.log
15257d5e3a19Smrg{
15267d5e3a19Smrgcat <<_ASUNAME
15277d5e3a19Smrg## --------- ##
15287d5e3a19Smrg## Platform. ##
15297d5e3a19Smrg## --------- ##
15307d5e3a19Smrg
15317d5e3a19Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
15327d5e3a19Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
15337d5e3a19Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
15347d5e3a19Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
15357d5e3a19Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
15367d5e3a19Smrg
15377d5e3a19Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
15387d5e3a19Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
15397d5e3a19Smrg
15407d5e3a19Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
15417d5e3a19Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
15427d5e3a19Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
15437d5e3a19Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
15447d5e3a19Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
15457d5e3a19Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
15467d5e3a19Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
15477d5e3a19Smrg
15487d5e3a19Smrg_ASUNAME
15497d5e3a19Smrg
15507d5e3a19Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15517d5e3a19Smrgfor as_dir in $PATH
15527d5e3a19Smrgdo
15537d5e3a19Smrg  IFS=$as_save_IFS
15547d5e3a19Smrg  test -z "$as_dir" && as_dir=.
15551568b75bSmrg  $as_echo "PATH: $as_dir"
15567d5e3a19Smrgdone
15577d5e3a19SmrgIFS=$as_save_IFS
15587d5e3a19Smrg
15597d5e3a19Smrg} >&5
15607d5e3a19Smrg
15617d5e3a19Smrgcat >&5 <<_ACEOF
15627d5e3a19Smrg
15637d5e3a19Smrg
15647d5e3a19Smrg## ----------- ##
15657d5e3a19Smrg## Core tests. ##
15667d5e3a19Smrg## ----------- ##
15677d5e3a19Smrg
15687d5e3a19Smrg_ACEOF
15697d5e3a19Smrg
15707d5e3a19Smrg
15717d5e3a19Smrg# Keep a trace of the command line.
15727d5e3a19Smrg# Strip out --no-create and --no-recursion so they do not pile up.
15737d5e3a19Smrg# Strip out --silent because we don't want to record it for future runs.
15747d5e3a19Smrg# Also quote any args containing shell meta-characters.
15757d5e3a19Smrg# Make two passes to allow for proper duplicate-argument suppression.
15767d5e3a19Smrgac_configure_args=
15777d5e3a19Smrgac_configure_args0=
15787d5e3a19Smrgac_configure_args1=
15797d5e3a19Smrgac_must_keep_next=false
15807d5e3a19Smrgfor ac_pass in 1 2
15817d5e3a19Smrgdo
15827d5e3a19Smrg  for ac_arg
15837d5e3a19Smrg  do
15847d5e3a19Smrg    case $ac_arg in
15857d5e3a19Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
15867d5e3a19Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15877d5e3a19Smrg    | -silent | --silent | --silen | --sile | --sil)
15887d5e3a19Smrg      continue ;;
15897d5e3a19Smrg    *\'*)
15901568b75bSmrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15917d5e3a19Smrg    esac
15927d5e3a19Smrg    case $ac_pass in
15937d5e3a19Smrg    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
15947d5e3a19Smrg    2)
15957d5e3a19Smrg      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
15967d5e3a19Smrg      if test $ac_must_keep_next = true; then
15977d5e3a19Smrg	ac_must_keep_next=false # Got value, back to normal.
15987d5e3a19Smrg      else
15997d5e3a19Smrg	case $ac_arg in
16007d5e3a19Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
16017d5e3a19Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
16027d5e3a19Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
16037d5e3a19Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
16047d5e3a19Smrg	    case "$ac_configure_args0 " in
16057d5e3a19Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
16067d5e3a19Smrg	    esac
16077d5e3a19Smrg	    ;;
16087d5e3a19Smrg	  -* ) ac_must_keep_next=true ;;
16097d5e3a19Smrg	esac
16107d5e3a19Smrg      fi
16117d5e3a19Smrg      ac_configure_args="$ac_configure_args '$ac_arg'"
16127d5e3a19Smrg      ;;
16137d5e3a19Smrg    esac
16147d5e3a19Smrg  done
16157d5e3a19Smrgdone
16167d5e3a19Smrg$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
16177d5e3a19Smrg$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
16187d5e3a19Smrg
16197d5e3a19Smrg# When interrupted or exit'd, cleanup temporary files, and complete
16207d5e3a19Smrg# config.log.  We remove comments because anyway the quotes in there
16217d5e3a19Smrg# would cause problems or look ugly.
16227d5e3a19Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
16237d5e3a19Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
16247d5e3a19Smrgtrap 'exit_status=$?
16257d5e3a19Smrg  # Save into config.log some information that might help in debugging.
16267d5e3a19Smrg  {
16277d5e3a19Smrg    echo
16287d5e3a19Smrg
16297d5e3a19Smrg    cat <<\_ASBOX
16307d5e3a19Smrg## ---------------- ##
16317d5e3a19Smrg## Cache variables. ##
16327d5e3a19Smrg## ---------------- ##
16337d5e3a19Smrg_ASBOX
16347d5e3a19Smrg    echo
16357d5e3a19Smrg    # The following way of writing the cache mishandles newlines in values,
16367d5e3a19Smrg(
16377d5e3a19Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
16387d5e3a19Smrg    eval ac_val=\$$ac_var
16397d5e3a19Smrg    case $ac_val in #(
16407d5e3a19Smrg    *${as_nl}*)
16417d5e3a19Smrg      case $ac_var in #(
16421568b75bSmrg      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
16431568b75bSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16447d5e3a19Smrg      esac
16457d5e3a19Smrg      case $ac_var in #(
16467d5e3a19Smrg      _ | IFS | as_nl) ;; #(
16471568b75bSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16487d5e3a19Smrg      *) $as_unset $ac_var ;;
16497d5e3a19Smrg      esac ;;
16507d5e3a19Smrg    esac
16517d5e3a19Smrg  done
16527d5e3a19Smrg  (set) 2>&1 |
16537d5e3a19Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
16547d5e3a19Smrg    *${as_nl}ac_space=\ *)
16557d5e3a19Smrg      sed -n \
16567d5e3a19Smrg	"s/'\''/'\''\\\\'\'''\''/g;
16577d5e3a19Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
16587d5e3a19Smrg      ;; #(
16597d5e3a19Smrg    *)
16607d5e3a19Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16617d5e3a19Smrg      ;;
16627d5e3a19Smrg    esac |
16637d5e3a19Smrg    sort
16647d5e3a19Smrg)
16657d5e3a19Smrg    echo
16667d5e3a19Smrg
16677d5e3a19Smrg    cat <<\_ASBOX
16687d5e3a19Smrg## ----------------- ##
16697d5e3a19Smrg## Output variables. ##
16707d5e3a19Smrg## ----------------- ##
16717d5e3a19Smrg_ASBOX
16727d5e3a19Smrg    echo
16737d5e3a19Smrg    for ac_var in $ac_subst_vars
16747d5e3a19Smrg    do
16757d5e3a19Smrg      eval ac_val=\$$ac_var
16767d5e3a19Smrg      case $ac_val in
16771568b75bSmrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
16787d5e3a19Smrg      esac
16791568b75bSmrg      $as_echo "$ac_var='\''$ac_val'\''"
16807d5e3a19Smrg    done | sort
16817d5e3a19Smrg    echo
16827d5e3a19Smrg
16837d5e3a19Smrg    if test -n "$ac_subst_files"; then
16847d5e3a19Smrg      cat <<\_ASBOX
16857d5e3a19Smrg## ------------------- ##
16867d5e3a19Smrg## File substitutions. ##
16877d5e3a19Smrg## ------------------- ##
16887d5e3a19Smrg_ASBOX
16897d5e3a19Smrg      echo
16907d5e3a19Smrg      for ac_var in $ac_subst_files
16917d5e3a19Smrg      do
16927d5e3a19Smrg	eval ac_val=\$$ac_var
16937d5e3a19Smrg	case $ac_val in
16941568b75bSmrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
16957d5e3a19Smrg	esac
16961568b75bSmrg	$as_echo "$ac_var='\''$ac_val'\''"
16977d5e3a19Smrg      done | sort
16987d5e3a19Smrg      echo
16997d5e3a19Smrg    fi
17007d5e3a19Smrg
17017d5e3a19Smrg    if test -s confdefs.h; then
17027d5e3a19Smrg      cat <<\_ASBOX
17037d5e3a19Smrg## ----------- ##
17047d5e3a19Smrg## confdefs.h. ##
17057d5e3a19Smrg## ----------- ##
17067d5e3a19Smrg_ASBOX
17077d5e3a19Smrg      echo
17087d5e3a19Smrg      cat confdefs.h
17097d5e3a19Smrg      echo
17107d5e3a19Smrg    fi
17117d5e3a19Smrg    test "$ac_signal" != 0 &&
17121568b75bSmrg      $as_echo "$as_me: caught signal $ac_signal"
17131568b75bSmrg    $as_echo "$as_me: exit $exit_status"
17147d5e3a19Smrg  } >&5
17157d5e3a19Smrg  rm -f core *.core core.conftest.* &&
17167d5e3a19Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
17177d5e3a19Smrg    exit $exit_status
17187d5e3a19Smrg' 0
17197d5e3a19Smrgfor ac_signal in 1 2 13 15; do
17207d5e3a19Smrg  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
17217d5e3a19Smrgdone
17227d5e3a19Smrgac_signal=0
17237d5e3a19Smrg
17247d5e3a19Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
17257d5e3a19Smrgrm -f -r conftest* confdefs.h
17267d5e3a19Smrg
17277d5e3a19Smrg# Predefined preprocessor variables.
17287d5e3a19Smrg
17297d5e3a19Smrgcat >>confdefs.h <<_ACEOF
17307d5e3a19Smrg#define PACKAGE_NAME "$PACKAGE_NAME"
17317d5e3a19Smrg_ACEOF
17327d5e3a19Smrg
17337d5e3a19Smrg
17347d5e3a19Smrgcat >>confdefs.h <<_ACEOF
17357d5e3a19Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
17367d5e3a19Smrg_ACEOF
17377d5e3a19Smrg
17387d5e3a19Smrg
17397d5e3a19Smrgcat >>confdefs.h <<_ACEOF
17407d5e3a19Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
17417d5e3a19Smrg_ACEOF
17427d5e3a19Smrg
17437d5e3a19Smrg
17447d5e3a19Smrgcat >>confdefs.h <<_ACEOF
17457d5e3a19Smrg#define PACKAGE_STRING "$PACKAGE_STRING"
17467d5e3a19Smrg_ACEOF
17477d5e3a19Smrg
17487d5e3a19Smrg
17497d5e3a19Smrgcat >>confdefs.h <<_ACEOF
17507d5e3a19Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
17517d5e3a19Smrg_ACEOF
17527d5e3a19Smrg
17537d5e3a19Smrg
17547d5e3a19Smrg# Let the site file select an alternate cache file if it wants to.
17551568b75bSmrg# Prefer an explicitly selected file to automatically selected ones.
17561568b75bSmrgac_site_file1=NONE
17571568b75bSmrgac_site_file2=NONE
17587d5e3a19Smrgif test -n "$CONFIG_SITE"; then
17591568b75bSmrg  ac_site_file1=$CONFIG_SITE
17607d5e3a19Smrgelif test "x$prefix" != xNONE; then
17611568b75bSmrg  ac_site_file1=$prefix/share/config.site
17621568b75bSmrg  ac_site_file2=$prefix/etc/config.site
17637d5e3a19Smrgelse
17641568b75bSmrg  ac_site_file1=$ac_default_prefix/share/config.site
17651568b75bSmrg  ac_site_file2=$ac_default_prefix/etc/config.site
17667d5e3a19Smrgfi
17671568b75bSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
17687d5e3a19Smrgdo
17691568b75bSmrg  test "x$ac_site_file" = xNONE && continue
17707d5e3a19Smrg  if test -r "$ac_site_file"; then
17711568b75bSmrg    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
17721568b75bSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
17737d5e3a19Smrg    sed 's/^/| /' "$ac_site_file" >&5
17747d5e3a19Smrg    . "$ac_site_file"
17757d5e3a19Smrg  fi
17767d5e3a19Smrgdone
17777d5e3a19Smrg
17787d5e3a19Smrgif test -r "$cache_file"; then
17797d5e3a19Smrg  # Some versions of bash will fail to source /dev/null (special
17807d5e3a19Smrg  # files actually), so we avoid doing that.
17817d5e3a19Smrg  if test -f "$cache_file"; then
17821568b75bSmrg    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
17831568b75bSmrg$as_echo "$as_me: loading cache $cache_file" >&6;}
17847d5e3a19Smrg    case $cache_file in
17857d5e3a19Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
17867d5e3a19Smrg      *)                      . "./$cache_file";;
17877d5e3a19Smrg    esac
17887d5e3a19Smrg  fi
17897d5e3a19Smrgelse
17901568b75bSmrg  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
17911568b75bSmrg$as_echo "$as_me: creating cache $cache_file" >&6;}
17927d5e3a19Smrg  >$cache_file
17937d5e3a19Smrgfi
17947d5e3a19Smrg
17957d5e3a19Smrg# Check that the precious variables saved in the cache have kept the same
17967d5e3a19Smrg# value.
17977d5e3a19Smrgac_cache_corrupted=false
17987d5e3a19Smrgfor ac_var in $ac_precious_vars; do
17997d5e3a19Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
18007d5e3a19Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
18017d5e3a19Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
18027d5e3a19Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
18037d5e3a19Smrg  case $ac_old_set,$ac_new_set in
18047d5e3a19Smrg    set,)
18051568b75bSmrg      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
18061568b75bSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
18077d5e3a19Smrg      ac_cache_corrupted=: ;;
18087d5e3a19Smrg    ,set)
18091568b75bSmrg      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
18101568b75bSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
18117d5e3a19Smrg      ac_cache_corrupted=: ;;
18127d5e3a19Smrg    ,);;
18137d5e3a19Smrg    *)
18147d5e3a19Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
18151568b75bSmrg	# differences in whitespace do not lead to failure.
18161568b75bSmrg	ac_old_val_w=`echo x $ac_old_val`
18171568b75bSmrg	ac_new_val_w=`echo x $ac_new_val`
18181568b75bSmrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
18191568b75bSmrg	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
18201568b75bSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
18211568b75bSmrg	  ac_cache_corrupted=:
18221568b75bSmrg	else
18231568b75bSmrg	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
18241568b75bSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
18251568b75bSmrg	  eval $ac_var=\$ac_old_val
18261568b75bSmrg	fi
18271568b75bSmrg	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
18281568b75bSmrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
18291568b75bSmrg	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
18301568b75bSmrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
18317d5e3a19Smrg      fi;;
18327d5e3a19Smrg  esac
18337d5e3a19Smrg  # Pass precious variables to config.status.
18347d5e3a19Smrg  if test "$ac_new_set" = set; then
18357d5e3a19Smrg    case $ac_new_val in
18361568b75bSmrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
18377d5e3a19Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
18387d5e3a19Smrg    esac
18397d5e3a19Smrg    case " $ac_configure_args " in
18407d5e3a19Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
18417d5e3a19Smrg      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
18427d5e3a19Smrg    esac
18437d5e3a19Smrg  fi
18447d5e3a19Smrgdone
18457d5e3a19Smrgif $ac_cache_corrupted; then
18461568b75bSmrg  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18471568b75bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18481568b75bSmrg  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
18491568b75bSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
18501568b75bSmrg  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
18511568b75bSmrg$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
18527d5e3a19Smrg   { (exit 1); exit 1; }; }
18537d5e3a19Smrgfi
18547d5e3a19Smrg
18557d5e3a19Smrg
18567d5e3a19Smrg
18577d5e3a19Smrg
18587d5e3a19Smrg
18597d5e3a19Smrg
18607d5e3a19Smrg
18617d5e3a19Smrg
18627d5e3a19Smrg
18637d5e3a19Smrg
18647d5e3a19Smrg
18657d5e3a19Smrg
18667d5e3a19Smrg
18677d5e3a19Smrg
18687d5e3a19Smrg
18697d5e3a19Smrg
18707d5e3a19Smrg
18717d5e3a19Smrg
18727d5e3a19Smrg
18737d5e3a19Smrg
18747d5e3a19Smrg
18757d5e3a19Smrg
18767d5e3a19Smrg
18777d5e3a19Smrg
18787d5e3a19Smrg
18797d5e3a19Smrgac_ext=c
18807d5e3a19Smrgac_cpp='$CPP $CPPFLAGS'
18817d5e3a19Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18827d5e3a19Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18837d5e3a19Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
18847d5e3a19Smrg
18857d5e3a19Smrg
18861568b75bSmrgam__api_version='1.11'
18877d5e3a19Smrg
18887d5e3a19Smrgac_aux_dir=
18897d5e3a19Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
18907d5e3a19Smrg  if test -f "$ac_dir/install-sh"; then
18917d5e3a19Smrg    ac_aux_dir=$ac_dir
18927d5e3a19Smrg    ac_install_sh="$ac_aux_dir/install-sh -c"
18937d5e3a19Smrg    break
18947d5e3a19Smrg  elif test -f "$ac_dir/install.sh"; then
18957d5e3a19Smrg    ac_aux_dir=$ac_dir
18967d5e3a19Smrg    ac_install_sh="$ac_aux_dir/install.sh -c"
18977d5e3a19Smrg    break
18987d5e3a19Smrg  elif test -f "$ac_dir/shtool"; then
18997d5e3a19Smrg    ac_aux_dir=$ac_dir
19007d5e3a19Smrg    ac_install_sh="$ac_aux_dir/shtool install -c"
19017d5e3a19Smrg    break
19027d5e3a19Smrg  fi
19037d5e3a19Smrgdone
19047d5e3a19Smrgif test -z "$ac_aux_dir"; then
19051568b75bSmrg  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
19061568b75bSmrg$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
19077d5e3a19Smrg   { (exit 1); exit 1; }; }
19087d5e3a19Smrgfi
19097d5e3a19Smrg
19107d5e3a19Smrg# These three variables are undocumented and unsupported,
19117d5e3a19Smrg# and are intended to be withdrawn in a future Autoconf release.
19127d5e3a19Smrg# They can cause serious problems if a builder's source tree is in a directory
19137d5e3a19Smrg# whose full name contains unusual characters.
19147d5e3a19Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
19157d5e3a19Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
19167d5e3a19Smrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
19177d5e3a19Smrg
19187d5e3a19Smrg
19197d5e3a19Smrg# Find a good install program.  We prefer a C program (faster),
19207d5e3a19Smrg# so one script is as good as another.  But avoid the broken or
19217d5e3a19Smrg# incompatible versions:
19227d5e3a19Smrg# SysV /etc/install, /usr/sbin/install
19237d5e3a19Smrg# SunOS /usr/etc/install
19247d5e3a19Smrg# IRIX /sbin/install
19257d5e3a19Smrg# AIX /bin/install
19267d5e3a19Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
19277d5e3a19Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19287d5e3a19Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
19297d5e3a19Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19307d5e3a19Smrg# OS/2's system install, which has a completely different semantic
19317d5e3a19Smrg# ./install, which can be erroneously created by make from ./install.sh.
19321568b75bSmrg# Reject install programs that cannot install multiple files.
19331568b75bSmrg{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19341568b75bSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
19357d5e3a19Smrgif test -z "$INSTALL"; then
19367d5e3a19Smrgif test "${ac_cv_path_install+set}" = set; then
19371568b75bSmrg  $as_echo_n "(cached) " >&6
19387d5e3a19Smrgelse
19397d5e3a19Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19407d5e3a19Smrgfor as_dir in $PATH
19417d5e3a19Smrgdo
19427d5e3a19Smrg  IFS=$as_save_IFS
19437d5e3a19Smrg  test -z "$as_dir" && as_dir=.
19447d5e3a19Smrg  # Account for people who put trailing slashes in PATH elements.
19457d5e3a19Smrgcase $as_dir/ in
19467d5e3a19Smrg  ./ | .// | /cC/* | \
19477d5e3a19Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19487d5e3a19Smrg  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19497d5e3a19Smrg  /usr/ucb/* ) ;;
19507d5e3a19Smrg  *)
19517d5e3a19Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
19527d5e3a19Smrg    # Don't use installbsd from OSF since it installs stuff as root
19537d5e3a19Smrg    # by default.
19547d5e3a19Smrg    for ac_prog in ginstall scoinst install; do
19557d5e3a19Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
19567d5e3a19Smrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19577d5e3a19Smrg	  if test $ac_prog = install &&
19587d5e3a19Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19597d5e3a19Smrg	    # AIX install.  It has an incompatible calling convention.
19607d5e3a19Smrg	    :
19617d5e3a19Smrg	  elif test $ac_prog = install &&
19627d5e3a19Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19637d5e3a19Smrg	    # program-specific install script used by HP pwplus--don't use.
19647d5e3a19Smrg	    :
19657d5e3a19Smrg	  else
19661568b75bSmrg	    rm -rf conftest.one conftest.two conftest.dir
19671568b75bSmrg	    echo one > conftest.one
19681568b75bSmrg	    echo two > conftest.two
19691568b75bSmrg	    mkdir conftest.dir
19701568b75bSmrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
19711568b75bSmrg	      test -s conftest.one && test -s conftest.two &&
19721568b75bSmrg	      test -s conftest.dir/conftest.one &&
19731568b75bSmrg	      test -s conftest.dir/conftest.two
19741568b75bSmrg	    then
19751568b75bSmrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19761568b75bSmrg	      break 3
19771568b75bSmrg	    fi
19787d5e3a19Smrg	  fi
19797d5e3a19Smrg	fi
19807d5e3a19Smrg      done
19817d5e3a19Smrg    done
19827d5e3a19Smrg    ;;
19837d5e3a19Smrgesac
19841568b75bSmrg
19857d5e3a19Smrgdone
19867d5e3a19SmrgIFS=$as_save_IFS
19877d5e3a19Smrg
19881568b75bSmrgrm -rf conftest.one conftest.two conftest.dir
19897d5e3a19Smrg
19907d5e3a19Smrgfi
19917d5e3a19Smrg  if test "${ac_cv_path_install+set}" = set; then
19927d5e3a19Smrg    INSTALL=$ac_cv_path_install
19937d5e3a19Smrg  else
19947d5e3a19Smrg    # As a last resort, use the slow shell script.  Don't cache a
19957d5e3a19Smrg    # value for INSTALL within a source directory, because that will
19967d5e3a19Smrg    # break other packages using the cache if that directory is
19977d5e3a19Smrg    # removed, or if the value is a relative name.
19987d5e3a19Smrg    INSTALL=$ac_install_sh
19997d5e3a19Smrg  fi
20007d5e3a19Smrgfi
20011568b75bSmrg{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
20021568b75bSmrg$as_echo "$INSTALL" >&6; }
20037d5e3a19Smrg
20047d5e3a19Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20057d5e3a19Smrg# It thinks the first close brace ends the variable substitution.
20067d5e3a19Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20077d5e3a19Smrg
20087d5e3a19Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20097d5e3a19Smrg
20107d5e3a19Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20117d5e3a19Smrg
20121568b75bSmrg{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20131568b75bSmrg$as_echo_n "checking whether build environment is sane... " >&6; }
20147d5e3a19Smrg# Just in case
20157d5e3a19Smrgsleep 1
20167d5e3a19Smrgecho timestamp > conftest.file
20171568b75bSmrg# Reject unsafe characters in $srcdir or the absolute working directory
20181568b75bSmrg# name.  Accept space and tab only in the latter.
20191568b75bSmrgam_lf='
20201568b75bSmrg'
20211568b75bSmrgcase `pwd` in
20221568b75bSmrg  *[\\\"\#\$\&\'\`$am_lf]*)
20231568b75bSmrg    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
20241568b75bSmrg$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
20251568b75bSmrg   { (exit 1); exit 1; }; };;
20261568b75bSmrgesac
20271568b75bSmrgcase $srcdir in
20281568b75bSmrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
20291568b75bSmrg    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
20301568b75bSmrg$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
20311568b75bSmrg   { (exit 1); exit 1; }; };;
20321568b75bSmrgesac
20331568b75bSmrg
20341568b75bSmrg# Do `set' in a subshell so we don't clobber the current shell's
20351568b75bSmrg# arguments.  Must try -L first in case configure is actually a
20367d5e3a19Smrg# symlink; some systems play weird games with the mod time of symlinks
20377d5e3a19Smrg# (eg FreeBSD returns the mod time of the symlink's containing
20387d5e3a19Smrg# directory).
20397d5e3a19Smrgif (
20401568b75bSmrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
20417d5e3a19Smrg   if test "$*" = "X"; then
20427d5e3a19Smrg      # -L didn't work.
20431568b75bSmrg      set X `ls -t "$srcdir/configure" conftest.file`
20447d5e3a19Smrg   fi
20457d5e3a19Smrg   rm -f conftest.file
20467d5e3a19Smrg   if test "$*" != "X $srcdir/configure conftest.file" \
20477d5e3a19Smrg      && test "$*" != "X conftest.file $srcdir/configure"; then
20487d5e3a19Smrg
20497d5e3a19Smrg      # If neither matched, then we have a broken ls.  This can happen
20507d5e3a19Smrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
20517d5e3a19Smrg      # broken ls alias from the environment.  This has actually
20527d5e3a19Smrg      # happened.  Such a system could not be considered "sane".
20531568b75bSmrg      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
20547d5e3a19Smrgalias in your environment" >&5
20551568b75bSmrg$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
20567d5e3a19Smrgalias in your environment" >&2;}
20577d5e3a19Smrg   { (exit 1); exit 1; }; }
20587d5e3a19Smrg   fi
20597d5e3a19Smrg
20607d5e3a19Smrg   test "$2" = conftest.file
20617d5e3a19Smrg   )
20627d5e3a19Smrgthen
20637d5e3a19Smrg   # Ok.
20647d5e3a19Smrg   :
20657d5e3a19Smrgelse
20661568b75bSmrg   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20677d5e3a19SmrgCheck your system clock" >&5
20681568b75bSmrg$as_echo "$as_me: error: newly created file is older than distributed files!
20697d5e3a19SmrgCheck your system clock" >&2;}
20707d5e3a19Smrg   { (exit 1); exit 1; }; }
20717d5e3a19Smrgfi
20721568b75bSmrg{ $as_echo "$as_me:$LINENO: result: yes" >&5
20731568b75bSmrg$as_echo "yes" >&6; }
20747d5e3a19Smrgtest "$program_prefix" != NONE &&
20757d5e3a19Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
20767d5e3a19Smrg# Use a double $ so make ignores it.
20777d5e3a19Smrgtest "$program_suffix" != NONE &&
20787d5e3a19Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
20791568b75bSmrg# Double any \ or $.
20807d5e3a19Smrg# By default was `s,x,x', remove it if useless.
20811568b75bSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
20821568b75bSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
20837d5e3a19Smrg
20847d5e3a19Smrg# expand $ac_aux_dir to an absolute path
20857d5e3a19Smrgam_aux_dir=`cd $ac_aux_dir && pwd`
20867d5e3a19Smrg
20871568b75bSmrgif test x"${MISSING+set}" != xset; then
20881568b75bSmrg  case $am_aux_dir in
20891568b75bSmrg  *\ * | *\	*)
20901568b75bSmrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
20911568b75bSmrg  *)
20921568b75bSmrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
20931568b75bSmrg  esac
20941568b75bSmrgfi
20957d5e3a19Smrg# Use eval to expand $SHELL
20967d5e3a19Smrgif eval "$MISSING --run true"; then
20977d5e3a19Smrg  am_missing_run="$MISSING --run "
20987d5e3a19Smrgelse
20997d5e3a19Smrg  am_missing_run=
21001568b75bSmrg  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
21011568b75bSmrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
21021568b75bSmrgfi
21031568b75bSmrg
21041568b75bSmrgif test x"${install_sh}" != xset; then
21051568b75bSmrg  case $am_aux_dir in
21061568b75bSmrg  *\ * | *\	*)
21071568b75bSmrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
21081568b75bSmrg  *)
21091568b75bSmrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
21101568b75bSmrg  esac
21111568b75bSmrgfi
21121568b75bSmrg
21131568b75bSmrg# Installed binaries are usually stripped using `strip' when the user
21141568b75bSmrg# run `make install-strip'.  However `strip' might not be the right
21151568b75bSmrg# tool to use in cross-compilation environments, therefore Automake
21161568b75bSmrg# will honor the `STRIP' environment variable to overrule this program.
21171568b75bSmrgif test "$cross_compiling" != no; then
21181568b75bSmrg  if test -n "$ac_tool_prefix"; then
21191568b75bSmrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
21201568b75bSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2
21211568b75bSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21221568b75bSmrg$as_echo_n "checking for $ac_word... " >&6; }
21231568b75bSmrgif test "${ac_cv_prog_STRIP+set}" = set; then
21241568b75bSmrg  $as_echo_n "(cached) " >&6
21251568b75bSmrgelse
21261568b75bSmrg  if test -n "$STRIP"; then
21271568b75bSmrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
21281568b75bSmrgelse
21291568b75bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21301568b75bSmrgfor as_dir in $PATH
21311568b75bSmrgdo
21321568b75bSmrg  IFS=$as_save_IFS
21331568b75bSmrg  test -z "$as_dir" && as_dir=.
21341568b75bSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
21351568b75bSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21361568b75bSmrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
21371568b75bSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21381568b75bSmrg    break 2
21391568b75bSmrg  fi
21401568b75bSmrgdone
21411568b75bSmrgdone
21421568b75bSmrgIFS=$as_save_IFS
21431568b75bSmrg
21441568b75bSmrgfi
21451568b75bSmrgfi
21461568b75bSmrgSTRIP=$ac_cv_prog_STRIP
21471568b75bSmrgif test -n "$STRIP"; then
21481568b75bSmrg  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
21491568b75bSmrg$as_echo "$STRIP" >&6; }
21501568b75bSmrgelse
21511568b75bSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
21521568b75bSmrg$as_echo "no" >&6; }
21531568b75bSmrgfi
21541568b75bSmrg
21551568b75bSmrg
21561568b75bSmrgfi
21571568b75bSmrgif test -z "$ac_cv_prog_STRIP"; then
21581568b75bSmrg  ac_ct_STRIP=$STRIP
21591568b75bSmrg  # Extract the first word of "strip", so it can be a program name with args.
21601568b75bSmrgset dummy strip; ac_word=$2
21611568b75bSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21621568b75bSmrg$as_echo_n "checking for $ac_word... " >&6; }
21631568b75bSmrgif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
21641568b75bSmrg  $as_echo_n "(cached) " >&6
21651568b75bSmrgelse
21661568b75bSmrg  if test -n "$ac_ct_STRIP"; then
21671568b75bSmrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
21681568b75bSmrgelse
21691568b75bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21701568b75bSmrgfor as_dir in $PATH
21711568b75bSmrgdo
21721568b75bSmrg  IFS=$as_save_IFS
21731568b75bSmrg  test -z "$as_dir" && as_dir=.
21741568b75bSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
21751568b75bSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21761568b75bSmrg    ac_cv_prog_ac_ct_STRIP="strip"
21771568b75bSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21781568b75bSmrg    break 2
21791568b75bSmrg  fi
21801568b75bSmrgdone
21811568b75bSmrgdone
21821568b75bSmrgIFS=$as_save_IFS
21831568b75bSmrg
21841568b75bSmrgfi
21851568b75bSmrgfi
21861568b75bSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
21871568b75bSmrgif test -n "$ac_ct_STRIP"; then
21881568b75bSmrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
21891568b75bSmrg$as_echo "$ac_ct_STRIP" >&6; }
21901568b75bSmrgelse
21911568b75bSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
21921568b75bSmrg$as_echo "no" >&6; }
21931568b75bSmrgfi
21941568b75bSmrg
21951568b75bSmrg  if test "x$ac_ct_STRIP" = x; then
21961568b75bSmrg    STRIP=":"
21971568b75bSmrg  else
21981568b75bSmrg    case $cross_compiling:$ac_tool_warned in
21991568b75bSmrgyes:)
22001568b75bSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
22011568b75bSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22021568b75bSmrgac_tool_warned=yes ;;
22031568b75bSmrgesac
22041568b75bSmrg    STRIP=$ac_ct_STRIP
22051568b75bSmrg  fi
22061568b75bSmrgelse
22071568b75bSmrg  STRIP="$ac_cv_prog_STRIP"
22087d5e3a19Smrgfi
22097d5e3a19Smrg
22101568b75bSmrgfi
22111568b75bSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
22121568b75bSmrg
22131568b75bSmrg{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
22141568b75bSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
22157d5e3a19Smrgif test -z "$MKDIR_P"; then
22167d5e3a19Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
22171568b75bSmrg  $as_echo_n "(cached) " >&6
22187d5e3a19Smrgelse
22197d5e3a19Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22207d5e3a19Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
22217d5e3a19Smrgdo
22227d5e3a19Smrg  IFS=$as_save_IFS
22237d5e3a19Smrg  test -z "$as_dir" && as_dir=.
22247d5e3a19Smrg  for ac_prog in mkdir gmkdir; do
22257d5e3a19Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
22267d5e3a19Smrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
22277d5e3a19Smrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
22287d5e3a19Smrg	     'mkdir (GNU coreutils) '* | \
22297d5e3a19Smrg	     'mkdir (coreutils) '* | \
22307d5e3a19Smrg	     'mkdir (fileutils) '4.1*)
22317d5e3a19Smrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
22327d5e3a19Smrg	       break 3;;
22337d5e3a19Smrg	   esac
22347d5e3a19Smrg	 done
22357d5e3a19Smrg       done
22367d5e3a19Smrgdone
22377d5e3a19SmrgIFS=$as_save_IFS
22387d5e3a19Smrg
22397d5e3a19Smrgfi
22407d5e3a19Smrg
22417d5e3a19Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
22427d5e3a19Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
22437d5e3a19Smrg  else
22447d5e3a19Smrg    # As a last resort, use the slow shell script.  Don't cache a
22457d5e3a19Smrg    # value for MKDIR_P within a source directory, because that will
22467d5e3a19Smrg    # break other packages using the cache if that directory is
22477d5e3a19Smrg    # removed, or if the value is a relative name.
22487d5e3a19Smrg    test -d ./--version && rmdir ./--version
22497d5e3a19Smrg    MKDIR_P="$ac_install_sh -d"
22507d5e3a19Smrg  fi
22517d5e3a19Smrgfi
22521568b75bSmrg{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
22531568b75bSmrg$as_echo "$MKDIR_P" >&6; }
22547d5e3a19Smrg
22557d5e3a19Smrgmkdir_p="$MKDIR_P"
22567d5e3a19Smrgcase $mkdir_p in
22577d5e3a19Smrg  [\\/$]* | ?:[\\/]*) ;;
22587d5e3a19Smrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
22597d5e3a19Smrgesac
22607d5e3a19Smrg
22617d5e3a19Smrgfor ac_prog in gawk mawk nawk awk
22627d5e3a19Smrgdo
22637d5e3a19Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
22647d5e3a19Smrgset dummy $ac_prog; ac_word=$2
22651568b75bSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22661568b75bSmrg$as_echo_n "checking for $ac_word... " >&6; }
22677d5e3a19Smrgif test "${ac_cv_prog_AWK+set}" = set; then
22681568b75bSmrg  $as_echo_n "(cached) " >&6
22697d5e3a19Smrgelse
22707d5e3a19Smrg  if test -n "$AWK"; then
22717d5e3a19Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
22727d5e3a19Smrgelse
22737d5e3a19Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22747d5e3a19Smrgfor as_dir in $PATH
22757d5e3a19Smrgdo
22767d5e3a19Smrg  IFS=$as_save_IFS
22777d5e3a19Smrg  test -z "$as_dir" && as_dir=.
22787d5e3a19Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
22797d5e3a19Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22807d5e3a19Smrg    ac_cv_prog_AWK="$ac_prog"
22811568b75bSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22827d5e3a19Smrg    break 2
22837d5e3a19Smrg  fi
22847d5e3a19Smrgdone
22857d5e3a19Smrgdone
22867d5e3a19SmrgIFS=$as_save_IFS
22877d5e3a19Smrg
22887d5e3a19Smrgfi
22897d5e3a19Smrgfi
22907d5e3a19SmrgAWK=$ac_cv_prog_AWK
22917d5e3a19Smrgif test -n "$AWK"; then
22921568b75bSmrg  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
22931568b75bSmrg$as_echo "$AWK" >&6; }
22947d5e3a19Smrgelse
22951568b75bSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
22961568b75bSmrg$as_echo "no" >&6; }
22977d5e3a19Smrgfi
22987d5e3a19Smrg
22997d5e3a19Smrg
23007d5e3a19Smrg  test -n "$AWK" && break
23017d5e3a19Smrgdone
23027d5e3a19Smrg
23031568b75bSmrg{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
23041568b75bSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
23051568b75bSmrgset x ${MAKE-make}
23061568b75bSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
23077d5e3a19Smrgif { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
23081568b75bSmrg  $as_echo_n "(cached) " >&6
23097d5e3a19Smrgelse
23107d5e3a19Smrg  cat >conftest.make <<\_ACEOF
23117d5e3a19SmrgSHELL = /bin/sh
23127d5e3a19Smrgall:
23137d5e3a19Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
23147d5e3a19Smrg_ACEOF
23157d5e3a19Smrg# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23167d5e3a19Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
23177d5e3a19Smrg  *@@@%%%=?*=@@@%%%*)
23187d5e3a19Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
23197d5e3a19Smrg  *)
23207d5e3a19Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
23217d5e3a19Smrgesac
23227d5e3a19Smrgrm -f conftest.make
23237d5e3a19Smrgfi
23247d5e3a19Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
23251568b75bSmrg  { $as_echo "$as_me:$LINENO: result: yes" >&5
23261568b75bSmrg$as_echo "yes" >&6; }
23277d5e3a19Smrg  SET_MAKE=
23287d5e3a19Smrgelse
23291568b75bSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
23301568b75bSmrg$as_echo "no" >&6; }
23317d5e3a19Smrg  SET_MAKE="MAKE=${MAKE-make}"
23327d5e3a19Smrgfi
23337d5e3a19Smrg
23347d5e3a19Smrgrm -rf .tst 2>/dev/null
23357d5e3a19Smrgmkdir .tst 2>/dev/null
23367d5e3a19Smrgif test -d .tst; then
23377d5e3a19Smrg  am__leading_dot=.
23387d5e3a19Smrgelse
23397d5e3a19Smrg  am__leading_dot=_
23407d5e3a19Smrgfi
23417d5e3a19Smrgrmdir .tst 2>/dev/null
23427d5e3a19Smrg
23437d5e3a19Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
23447d5e3a19Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
23457d5e3a19Smrg  # is not polluted with repeated "-I."
23467d5e3a19Smrg  am__isrc=' -I$(srcdir)'
23477d5e3a19Smrg  # test to see if srcdir already configured
23487d5e3a19Smrg  if test -f $srcdir/config.status; then
23491568b75bSmrg    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
23501568b75bSmrg$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
23517d5e3a19Smrg   { (exit 1); exit 1; }; }
23527d5e3a19Smrg  fi
23537d5e3a19Smrgfi
23547d5e3a19Smrg
23557d5e3a19Smrg# test whether we have cygpath
23567d5e3a19Smrgif test -z "$CYGPATH_W"; then
23577d5e3a19Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
23587d5e3a19Smrg    CYGPATH_W='cygpath -w'
23597d5e3a19Smrg  else
23607d5e3a19Smrg    CYGPATH_W=echo
23617d5e3a19Smrg  fi
23627d5e3a19Smrgfi
23637d5e3a19Smrg
23647d5e3a19Smrg
23657d5e3a19Smrg# Define the identity of the package.
23667d5e3a19Smrg PACKAGE='setxkbmap'
23671568b75bSmrg VERSION='1.1.0'
23687d5e3a19Smrg
23697d5e3a19Smrg
23707d5e3a19Smrgcat >>confdefs.h <<_ACEOF
23717d5e3a19Smrg#define PACKAGE "$PACKAGE"
23727d5e3a19Smrg_ACEOF
23737d5e3a19Smrg
23747d5e3a19Smrg
23757d5e3a19Smrgcat >>confdefs.h <<_ACEOF
23767d5e3a19Smrg#define VERSION "$VERSION"
23777d5e3a19Smrg_ACEOF
23787d5e3a19Smrg
23797d5e3a19Smrg# Some tools Automake needs.
23807d5e3a19Smrg
23817d5e3a19SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
23827d5e3a19Smrg
23837d5e3a19Smrg
23847d5e3a19SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
23857d5e3a19Smrg
23867d5e3a19Smrg
23877d5e3a19SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
23887d5e3a19Smrg
23897d5e3a19Smrg
23907d5e3a19SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
23917d5e3a19Smrg
23927d5e3a19Smrg
23937d5e3a19SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
23947d5e3a19Smrg
23957d5e3a19Smrg# We need awk for the "check" target.  The system "awk" is bad on
23967d5e3a19Smrg# some platforms.
23977d5e3a19Smrg# Always define AMTAR for backward compatibility.
23987d5e3a19Smrg
23997d5e3a19SmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
24007d5e3a19Smrg
24017d5e3a19Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
24027d5e3a19Smrg
24037d5e3a19Smrg
24047d5e3a19Smrg
24057d5e3a19Smrg
24067d5e3a19Smrg
24071568b75bSmrg
24081568b75bSmrg{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
24091568b75bSmrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
24107d5e3a19Smrg    # Check whether --enable-maintainer-mode was given.
24117d5e3a19Smrgif test "${enable_maintainer_mode+set}" = set; then
24127d5e3a19Smrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
24137d5e3a19Smrgelse
24147d5e3a19Smrg  USE_MAINTAINER_MODE=no
24157d5e3a19Smrgfi
24167d5e3a19Smrg
24171568b75bSmrg  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
24181568b75bSmrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
24197d5e3a19Smrg   if test $USE_MAINTAINER_MODE = yes; then
24207d5e3a19Smrg  MAINTAINER_MODE_TRUE=
24217d5e3a19Smrg  MAINTAINER_MODE_FALSE='#'
24227d5e3a19Smrgelse
24237d5e3a19Smrg  MAINTAINER_MODE_TRUE='#'
24247d5e3a19Smrg  MAINTAINER_MODE_FALSE=
24257d5e3a19Smrgfi
24267d5e3a19Smrg
24277d5e3a19Smrg  MAINT=$MAINTAINER_MODE_TRUE
24287d5e3a19Smrg
24297d5e3a19Smrg
24307d5e3a19Smrg
24311568b75bSmrg# Require xorg-macros: XORG_CWARNFLAGS, XORG_CHANGELOG
24321568b75bSmrg
24331568b75bSmrg
24341568b75bSmrg	XORG_MACROS_needed_version=1.2
24351568b75bSmrg	XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'`
24361568b75bSmrg	XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
24371568b75bSmrg	{ $as_echo "$as_me:$LINENO: checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}" >&5
24381568b75bSmrg$as_echo_n "checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}... " >&6; }
24391568b75bSmrg	XORG_MACROS_version=1.2.1
24401568b75bSmrg	XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'`
24411568b75bSmrg	XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
24421568b75bSmrg	if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then
24431568b75bSmrg		{ { $as_echo "$as_me:$LINENO: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_needed_major}.x" >&5
24441568b75bSmrg$as_echo "$as_me: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_needed_major}.x" >&2;}
24451568b75bSmrg   { (exit 1); exit 1; }; }
24461568b75bSmrg	fi
24471568b75bSmrg	if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then
24481568b75bSmrg		{ { $as_echo "$as_me:$LINENO: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}.0 or newer" >&5
24491568b75bSmrg$as_echo "$as_me: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}.0 or newer" >&2;}
24501568b75bSmrg   { (exit 1); exit 1; }; }
24511568b75bSmrg	fi
24521568b75bSmrg	{ $as_echo "$as_me:$LINENO: result: yes, $XORG_MACROS_version" >&5
24531568b75bSmrg$as_echo "yes, $XORG_MACROS_version" >&6; }
24541568b75bSmrg
24551568b75bSmrg
24567d5e3a19Smrgac_config_headers="$ac_config_headers config.h"
24577d5e3a19Smrg
24587d5e3a19Smrg
24597d5e3a19Smrgac_ext=c
24607d5e3a19Smrgac_cpp='$CPP $CPPFLAGS'
24617d5e3a19Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24627d5e3a19Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24637d5e3a19Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
24647d5e3a19Smrgif test -n "$ac_tool_prefix"; then
24657d5e3a19Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
24667d5e3a19Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
24671568b75bSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24681568b75bSmrg$as_echo_n "checking for $ac_word... " >&6; }
24697d5e3a19Smrgif test "${ac_cv_prog_CC+set}" = set; then
24701568b75bSmrg  $as_echo_n "(cached) " >&6
24717d5e3a19Smrgelse
24727d5e3a19Smrg  if test -n "$CC"; then
24737d5e3a19Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
24747d5e3a19Smrgelse
24757d5e3a19Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24767d5e3a19Smrgfor as_dir in $PATH
24777d5e3a19Smrgdo
24787d5e3a19Smrg  IFS=$as_save_IFS
24797d5e3a19Smrg  test -z "$as_dir" && as_dir=.
24807d5e3a19Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
24817d5e3a19Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24827d5e3a19Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
24831568b75bSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24847d5e3a19Smrg    break 2
24857d5e3a19Smrg  fi
24867d5e3a19Smrgdone
24877d5e3a19Smrgdone
24887d5e3a19SmrgIFS=$as_save_IFS
24897d5e3a19Smrg
24907d5e3a19Smrgfi
24917d5e3a19Smrgfi
24927d5e3a19SmrgCC=$ac_cv_prog_CC
24937d5e3a19Smrgif test -n "$CC"; then
24941568b75bSmrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
24951568b75bSmrg$as_echo "$CC" >&6; }
24967d5e3a19Smrgelse
24971568b75bSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
24981568b75bSmrg$as_echo "no" >&6; }
24997d5e3a19Smrgfi
25007d5e3a19Smrg
25017d5e3a19Smrg
25027d5e3a19Smrgfi
25037d5e3a19Smrgif test -z "$ac_cv_prog_CC"; then
25047d5e3a19Smrg  ac_ct_CC=$CC
25057d5e3a19Smrg  # Extract the first word of "gcc", so it can be a program name with args.
25067d5e3a19Smrgset dummy gcc; ac_word=$2
25071568b75bSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
25081568b75bSmrg$as_echo_n "checking for $ac_word... " >&6; }
25097d5e3a19Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
25101568b75bSmrg  $as_echo_n "(cached) " >&6
25117d5e3a19Smrgelse
25127d5e3a19Smrg  if test -n "$ac_ct_CC"; then
25137d5e3a19Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
25147d5e3a19Smrgelse
25157d5e3a19Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25167d5e3a19Smrgfor as_dir in $PATH
25177d5e3a19Smrgdo
25187d5e3a19Smrg  IFS=$as_save_IFS
25197d5e3a19Smrg  test -z "$as_dir" && as_dir=.
25207d5e3a19Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
25217d5e3a19Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25227d5e3a19Smrg    ac_cv_prog_ac_ct_CC="gcc"
25231568b75bSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25247d5e3a19Smrg    break 2
25257d5e3a19Smrg  fi
25267d5e3a19Smrgdone
25277d5e3a19Smrgdone
25287d5e3a19SmrgIFS=$as_save_IFS
25297d5e3a19Smrg
25307d5e3a19Smrgfi
25317d5e3a19Smrgfi
25327d5e3a19Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
25337d5e3a19Smrgif test -n "$ac_ct_CC"; then
25341568b75bSmrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
25351568b75bSmrg$as_echo "$ac_ct_CC" >&6; }
25367d5e3a19Smrgelse
25371568b75bSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
25381568b75bSmrg$as_echo "no" >&6; }
25397d5e3a19Smrgfi
25407d5e3a19Smrg
25417d5e3a19Smrg  if test "x$ac_ct_CC" = x; then
25427d5e3a19Smrg    CC=""
25437d5e3a19Smrg  else
25447d5e3a19Smrg    case $cross_compiling:$ac_tool_warned in
25457d5e3a19Smrgyes:)
25461568b75bSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
25471568b75bSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25487d5e3a19Smrgac_tool_warned=yes ;;
25497d5e3a19Smrgesac
25507d5e3a19Smrg    CC=$ac_ct_CC
25517d5e3a19Smrg  fi
25527d5e3a19Smrgelse
25537d5e3a19Smrg  CC="$ac_cv_prog_CC"
25547d5e3a19Smrgfi
25557d5e3a19Smrg
25567d5e3a19Smrgif test -z "$CC"; then
25577d5e3a19Smrg          if test -n "$ac_tool_prefix"; then
25587d5e3a19Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
25597d5e3a19Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
25601568b75bSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
25611568b75bSmrg$as_echo_n "checking for $ac_word... " >&6; }
25627d5e3a19Smrgif test "${ac_cv_prog_CC+set}" = set; then
25631568b75bSmrg  $as_echo_n "(cached) " >&6
25647d5e3a19Smrgelse
25657d5e3a19Smrg  if test -n "$CC"; then
25667d5e3a19Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
25677d5e3a19Smrgelse
25687d5e3a19Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25697d5e3a19Smrgfor as_dir in $PATH
25707d5e3a19Smrgdo
25717d5e3a19Smrg  IFS=$as_save_IFS
25727d5e3a19Smrg  test -z "$as_dir" && as_dir=.
25737d5e3a19Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
25747d5e3a19Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25757d5e3a19Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
25761568b75bSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25777d5e3a19Smrg    break 2
25787d5e3a19Smrg  fi
25797d5e3a19Smrgdone
25807d5e3a19Smrgdone
25817d5e3a19SmrgIFS=$as_save_IFS
25827d5e3a19Smrg
25837d5e3a19Smrgfi
25847d5e3a19Smrgfi
25857d5e3a19SmrgCC=$ac_cv_prog_CC
25867d5e3a19Smrgif test -n "$CC"; then
25871568b75bSmrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
25881568b75bSmrg$as_echo "$CC" >&6; }
25897d5e3a19Smrgelse
25901568b75bSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
25911568b75bSmrg$as_echo "no" >&6; }
25927d5e3a19Smrgfi
25937d5e3a19Smrg
25947d5e3a19Smrg
25957d5e3a19Smrg  fi
25967d5e3a19Smrgfi
25977d5e3a19Smrgif test -z "$CC"; then
25987d5e3a19Smrg  # Extract the first word of "cc", so it can be a program name with args.
25997d5e3a19Smrgset dummy cc; ac_word=$2
26001568b75bSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26011568b75bSmrg$as_echo_n "checking for $ac_word... " >&6; }
26027d5e3a19Smrgif test "${ac_cv_prog_CC+set}" = set; then
26031568b75bSmrg  $as_echo_n "(cached) " >&6
26047d5e3a19Smrgelse
26057d5e3a19Smrg  if test -n "$CC"; then
26067d5e3a19Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
26077d5e3a19Smrgelse
26087d5e3a19Smrg  ac_prog_rejected=no
26097d5e3a19Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26107d5e3a19Smrgfor as_dir in $PATH
26117d5e3a19Smrgdo
26127d5e3a19Smrg  IFS=$as_save_IFS
26137d5e3a19Smrg  test -z "$as_dir" && as_dir=.
26147d5e3a19Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
26157d5e3a19Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26167d5e3a19Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
26177d5e3a19Smrg       ac_prog_rejected=yes
26187d5e3a19Smrg       continue
26197d5e3a19Smrg     fi
26207d5e3a19Smrg    ac_cv_prog_CC="cc"
26211568b75bSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26227d5e3a19Smrg    break 2
26237d5e3a19Smrg  fi
26247d5e3a19Smrgdone
26257d5e3a19Smrgdone
26267d5e3a19SmrgIFS=$as_save_IFS
26277d5e3a19Smrg
26287d5e3a19Smrgif test $ac_prog_rejected = yes; then
26297d5e3a19Smrg  # We found a bogon in the path, so make sure we never use it.
26307d5e3a19Smrg  set dummy $ac_cv_prog_CC
26317d5e3a19Smrg  shift
26327d5e3a19Smrg  if test $# != 0; then
26337d5e3a19Smrg    # We chose a different compiler from the bogus one.
26347d5e3a19Smrg    # However, it has the same basename, so the bogon will be chosen
26357d5e3a19Smrg    # first if we set CC to just the basename; use the full file name.
26367d5e3a19Smrg    shift
26377d5e3a19Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
26387d5e3a19Smrg  fi
26397d5e3a19Smrgfi
26407d5e3a19Smrgfi
26417d5e3a19Smrgfi
26427d5e3a19SmrgCC=$ac_cv_prog_CC
26437d5e3a19Smrgif test -n "$CC"; then
26441568b75bSmrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
26451568b75bSmrg$as_echo "$CC" >&6; }
26467d5e3a19Smrgelse
26471568b75bSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
26481568b75bSmrg$as_echo "no" >&6; }
26497d5e3a19Smrgfi
26507d5e3a19Smrg
26517d5e3a19Smrg
26527d5e3a19Smrgfi
26537d5e3a19Smrgif test -z "$CC"; then
26547d5e3a19Smrg  if test -n "$ac_tool_prefix"; then
26557d5e3a19Smrg  for ac_prog in cl.exe
26567d5e3a19Smrg  do
26577d5e3a19Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
26587d5e3a19Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
26591568b75bSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26601568b75bSmrg$as_echo_n "checking for $ac_word... " >&6; }
26617d5e3a19Smrgif test "${ac_cv_prog_CC+set}" = set; then
26621568b75bSmrg  $as_echo_n "(cached) " >&6
26637d5e3a19Smrgelse
26647d5e3a19Smrg  if test -n "$CC"; then
26657d5e3a19Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
26667d5e3a19Smrgelse
26677d5e3a19Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26687d5e3a19Smrgfor as_dir in $PATH
26697d5e3a19Smrgdo
26707d5e3a19Smrg  IFS=$as_save_IFS
26717d5e3a19Smrg  test -z "$as_dir" && as_dir=.
26727d5e3a19Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
26737d5e3a19Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26747d5e3a19Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
26751568b75bSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26767d5e3a19Smrg    break 2
26777d5e3a19Smrg  fi
26787d5e3a19Smrgdone
26797d5e3a19Smrgdone
26807d5e3a19SmrgIFS=$as_save_IFS
26817d5e3a19Smrg
26827d5e3a19Smrgfi
26837d5e3a19Smrgfi
26847d5e3a19SmrgCC=$ac_cv_prog_CC
26857d5e3a19Smrgif test -n "$CC"; then
26861568b75bSmrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
26871568b75bSmrg$as_echo "$CC" >&6; }
26887d5e3a19Smrgelse
26891568b75bSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
26901568b75bSmrg$as_echo "no" >&6; }
26917d5e3a19Smrgfi
26927d5e3a19Smrg
26937d5e3a19Smrg
26947d5e3a19Smrg    test -n "$CC" && break
26957d5e3a19Smrg  done
26967d5e3a19Smrgfi
26977d5e3a19Smrgif test -z "$CC"; then
26987d5e3a19Smrg  ac_ct_CC=$CC
26997d5e3a19Smrg  for ac_prog in cl.exe
27007d5e3a19Smrgdo
27017d5e3a19Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
27027d5e3a19Smrgset dummy $ac_prog; ac_word=$2
27031568b75bSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27041568b75bSmrg$as_echo_n "checking for $ac_word... " >&6; }
27057d5e3a19Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
27061568b75bSmrg  $as_echo_n "(cached) " >&6
27077d5e3a19Smrgelse
27087d5e3a19Smrg  if test -n "$ac_ct_CC"; then
27097d5e3a19Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
27107d5e3a19Smrgelse
27117d5e3a19Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27127d5e3a19Smrgfor as_dir in $PATH
27137d5e3a19Smrgdo
27147d5e3a19Smrg  IFS=$as_save_IFS
27157d5e3a19Smrg  test -z "$as_dir" && as_dir=.
27167d5e3a19Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
27177d5e3a19Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27187d5e3a19Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
27191568b75bSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27207d5e3a19Smrg    break 2
27217d5e3a19Smrg  fi
27227d5e3a19Smrgdone
27237d5e3a19Smrgdone
27247d5e3a19SmrgIFS=$as_save_IFS
27257d5e3a19Smrg
27267d5e3a19Smrgfi
27277d5e3a19Smrgfi
27287d5e3a19Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
27297d5e3a19Smrgif test -n "$ac_ct_CC"; then
27301568b75bSmrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
27311568b75bSmrg$as_echo "$ac_ct_CC" >&6; }
27327d5e3a19Smrgelse
27331568b75bSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
27341568b75bSmrg$as_echo "no" >&6; }
27357d5e3a19Smrgfi
27367d5e3a19Smrg
27377d5e3a19Smrg
27387d5e3a19Smrg  test -n "$ac_ct_CC" && break
27397d5e3a19Smrgdone
27407d5e3a19Smrg
27417d5e3a19Smrg  if test "x$ac_ct_CC" = x; then
27427d5e3a19Smrg    CC=""
27437d5e3a19Smrg  else
27447d5e3a19Smrg    case $cross_compiling:$ac_tool_warned in
27457d5e3a19Smrgyes:)
27461568b75bSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
27471568b75bSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27487d5e3a19Smrgac_tool_warned=yes ;;
27497d5e3a19Smrgesac
27507d5e3a19Smrg    CC=$ac_ct_CC
27517d5e3a19Smrg  fi
27527d5e3a19Smrgfi
27537d5e3a19Smrg
27547d5e3a19Smrgfi
27557d5e3a19Smrg
27567d5e3a19Smrg
27571568b75bSmrgtest -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27581568b75bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27591568b75bSmrg{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
27607d5e3a19SmrgSee \`config.log' for more details." >&5
27611568b75bSmrg$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
27627d5e3a19SmrgSee \`config.log' for more details." >&2;}
27631568b75bSmrg   { (exit 1); exit 1; }; }; }
27647d5e3a19Smrg
27657d5e3a19Smrg# Provide some information about the compiler.
27661568b75bSmrg$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
27671568b75bSmrgset X $ac_compile
27681568b75bSmrgac_compiler=$2
27697d5e3a19Smrg{ (ac_try="$ac_compiler --version >&5"
27707d5e3a19Smrgcase "(($ac_try" in
27717d5e3a19Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27727d5e3a19Smrg  *) ac_try_echo=$ac_try;;
27737d5e3a19Smrgesac
27741568b75bSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27751568b75bSmrg$as_echo "$ac_try_echo") >&5
27767d5e3a19Smrg  (eval "$ac_compiler --version >&5") 2>&5
27777d5e3a19Smrg  ac_status=$?
27781568b75bSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27797d5e3a19Smrg  (exit $ac_status); }
27807d5e3a19Smrg{ (ac_try="$ac_compiler -v >&5"
27817d5e3a19Smrgcase "(($ac_try" in
27827d5e3a19Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27837d5e3a19Smrg  *) ac_try_echo=$ac_try;;
27847d5e3a19Smrgesac
27851568b75bSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27861568b75bSmrg$as_echo "$ac_try_echo") >&5
27877d5e3a19Smrg  (eval "$ac_compiler -v >&5") 2>&5
27887d5e3a19Smrg  ac_status=$?
27891568b75bSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27907d5e3a19Smrg  (exit $ac_status); }
27917d5e3a19Smrg{ (ac_try="$ac_compiler -V >&5"
27927d5e3a19Smrgcase "(($ac_try" in
27937d5e3a19Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27947d5e3a19Smrg  *) ac_try_echo=$ac_try;;
27957d5e3a19Smrgesac
27961568b75bSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27971568b75bSmrg$as_echo "$ac_try_echo") >&5
27987d5e3a19Smrg  (eval "$ac_compiler -V >&5") 2>&5
27997d5e3a19Smrg  ac_status=$?
28001568b75bSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28017d5e3a19Smrg  (exit $ac_status); }
28027d5e3a19Smrg
28037d5e3a19Smrgcat >conftest.$ac_ext <<_ACEOF
28047d5e3a19Smrg/* confdefs.h.  */
28057d5e3a19Smrg_ACEOF
28067d5e3a19Smrgcat confdefs.h >>conftest.$ac_ext
28077d5e3a19Smrgcat >>conftest.$ac_ext <<_ACEOF
28087d5e3a19Smrg/* end confdefs.h.  */
28097d5e3a19Smrg
28107d5e3a19Smrgint
28117d5e3a19Smrgmain ()
28127d5e3a19Smrg{
28137d5e3a19Smrg
28147d5e3a19Smrg  ;
28157d5e3a19Smrg  return 0;
28167d5e3a19Smrg}
28177d5e3a19Smrg_ACEOF
28187d5e3a19Smrgac_clean_files_save=$ac_clean_files
28191568b75bSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
28207d5e3a19Smrg# Try to create an executable without -o first, disregard a.out.
28217d5e3a19Smrg# It will help us diagnose broken compilers, and finding out an intuition
28227d5e3a19Smrg# of exeext.
28231568b75bSmrg{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
28241568b75bSmrg$as_echo_n "checking for C compiler default output file name... " >&6; }
28251568b75bSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
28261568b75bSmrg
28271568b75bSmrg# The possible output files:
28281568b75bSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
28291568b75bSmrg
28307d5e3a19Smrgac_rmfiles=
28317d5e3a19Smrgfor ac_file in $ac_files
28327d5e3a19Smrgdo
28337d5e3a19Smrg  case $ac_file in
28341568b75bSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
28357d5e3a19Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
28367d5e3a19Smrg  esac
28377d5e3a19Smrgdone
28387d5e3a19Smrgrm -f $ac_rmfiles
28397d5e3a19Smrg
28407d5e3a19Smrgif { (ac_try="$ac_link_default"
28417d5e3a19Smrgcase "(($ac_try" in
28427d5e3a19Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28437d5e3a19Smrg  *) ac_try_echo=$ac_try;;
28447d5e3a19Smrgesac
28451568b75bSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28461568b75bSmrg$as_echo "$ac_try_echo") >&5
28477d5e3a19Smrg  (eval "$ac_link_default") 2>&5
28487d5e3a19Smrg  ac_status=$?
28491568b75bSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28507d5e3a19Smrg  (exit $ac_status); }; then
28517d5e3a19Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
28527d5e3a19Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
28537d5e3a19Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
28547d5e3a19Smrg# so that the user can short-circuit this test for compilers unknown to
28557d5e3a19Smrg# Autoconf.
28567d5e3a19Smrgfor ac_file in $ac_files ''
28577d5e3a19Smrgdo
28587d5e3a19Smrg  test -f "$ac_file" || continue
28597d5e3a19Smrg  case $ac_file in
28601568b75bSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
28617d5e3a19Smrg	;;
28627d5e3a19Smrg    [ab].out )
28637d5e3a19Smrg	# We found the default executable, but exeext='' is most
28647d5e3a19Smrg	# certainly right.
28657d5e3a19Smrg	break;;
28667d5e3a19Smrg    *.* )
28677d5e3a19Smrg        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
28687d5e3a19Smrg	then :; else
28697d5e3a19Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
28707d5e3a19Smrg	fi
28717d5e3a19Smrg	# We set ac_cv_exeext here because the later test for it is not
28727d5e3a19Smrg	# safe: cross compilers may not add the suffix if given an `-o'
28737d5e3a19Smrg	# argument, so we may need to know it at that point already.
28747d5e3a19Smrg	# Even if this section looks crufty: it has the advantage of
28757d5e3a19Smrg	# actually working.
28767d5e3a19Smrg	break;;
28777d5e3a19Smrg    * )
28787d5e3a19Smrg	break;;
28797d5e3a19Smrg  esac
28807d5e3a19Smrgdone
28817d5e3a19Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
28827d5e3a19Smrg
28837d5e3a19Smrgelse
28847d5e3a19Smrg  ac_file=''
28857d5e3a19Smrgfi
28867d5e3a19Smrg
28871568b75bSmrg{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
28881568b75bSmrg$as_echo "$ac_file" >&6; }
28897d5e3a19Smrgif test -z "$ac_file"; then
28901568b75bSmrg  $as_echo "$as_me: failed program was:" >&5
28917d5e3a19Smrgsed 's/^/| /' conftest.$ac_ext >&5
28927d5e3a19Smrg
28931568b75bSmrg{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28941568b75bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28951568b75bSmrg{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
28967d5e3a19SmrgSee \`config.log' for more details." >&5
28971568b75bSmrg$as_echo "$as_me: error: C compiler cannot create executables
28987d5e3a19SmrgSee \`config.log' for more details." >&2;}
28991568b75bSmrg   { (exit 77); exit 77; }; }; }
29007d5e3a19Smrgfi
29017d5e3a19Smrg
29027d5e3a19Smrgac_exeext=$ac_cv_exeext
29037d5e3a19Smrg
29047d5e3a19Smrg# Check that the compiler produces executables we can run.  If not, either
29057d5e3a19Smrg# the compiler is broken, or we cross compile.
29061568b75bSmrg{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
29071568b75bSmrg$as_echo_n "checking whether the C compiler works... " >&6; }
29087d5e3a19Smrg# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
29097d5e3a19Smrg# If not cross compiling, check that we can run a simple program.
29107d5e3a19Smrgif test "$cross_compiling" != yes; then
29117d5e3a19Smrg  if { ac_try='./$ac_file'
29127d5e3a19Smrg  { (case "(($ac_try" in
29137d5e3a19Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29147d5e3a19Smrg  *) ac_try_echo=$ac_try;;
29157d5e3a19Smrgesac
29161568b75bSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29171568b75bSmrg$as_echo "$ac_try_echo") >&5
29187d5e3a19Smrg  (eval "$ac_try") 2>&5
29197d5e3a19Smrg  ac_status=$?
29201568b75bSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29217d5e3a19Smrg  (exit $ac_status); }; }; then
29227d5e3a19Smrg    cross_compiling=no
29237d5e3a19Smrg  else
29247d5e3a19Smrg    if test "$cross_compiling" = maybe; then
29257d5e3a19Smrg	cross_compiling=yes
29267d5e3a19Smrg    else
29271568b75bSmrg	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29281568b75bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29291568b75bSmrg{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
29307d5e3a19SmrgIf you meant to cross compile, use \`--host'.
29317d5e3a19SmrgSee \`config.log' for more details." >&5
29321568b75bSmrg$as_echo "$as_me: error: cannot run C compiled programs.
29337d5e3a19SmrgIf you meant to cross compile, use \`--host'.
29347d5e3a19SmrgSee \`config.log' for more details." >&2;}
29351568b75bSmrg   { (exit 1); exit 1; }; }; }
29367d5e3a19Smrg    fi
29377d5e3a19Smrg  fi
29387d5e3a19Smrgfi
29391568b75bSmrg{ $as_echo "$as_me:$LINENO: result: yes" >&5
29401568b75bSmrg$as_echo "yes" >&6; }
29417d5e3a19Smrg
29421568b75bSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
29437d5e3a19Smrgac_clean_files=$ac_clean_files_save
29447d5e3a19Smrg# Check that the compiler produces executables we can run.  If not, either
29457d5e3a19Smrg# the compiler is broken, or we cross compile.
29461568b75bSmrg{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
29471568b75bSmrg$as_echo_n "checking whether we are cross compiling... " >&6; }
29481568b75bSmrg{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
29491568b75bSmrg$as_echo "$cross_compiling" >&6; }
29507d5e3a19Smrg
29511568b75bSmrg{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
29521568b75bSmrg$as_echo_n "checking for suffix of executables... " >&6; }
29537d5e3a19Smrgif { (ac_try="$ac_link"
29547d5e3a19Smrgcase "(($ac_try" in
29557d5e3a19Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29567d5e3a19Smrg  *) ac_try_echo=$ac_try;;
29577d5e3a19Smrgesac
29581568b75bSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29591568b75bSmrg$as_echo "$ac_try_echo") >&5
29607d5e3a19Smrg  (eval "$ac_link") 2>&5
29617d5e3a19Smrg  ac_status=$?
29621568b75bSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29637d5e3a19Smrg  (exit $ac_status); }; then
29647d5e3a19Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
29657d5e3a19Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
29667d5e3a19Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
29677d5e3a19Smrg# `rm'.
29687d5e3a19Smrgfor ac_file in conftest.exe conftest conftest.*; do
29697d5e3a19Smrg  test -f "$ac_file" || continue
29707d5e3a19Smrg  case $ac_file in
29711568b75bSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
29727d5e3a19Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
29737d5e3a19Smrg	  break;;
29747d5e3a19Smrg    * ) break;;
29757d5e3a19Smrg  esac
29767d5e3a19Smrgdone
29777d5e3a19Smrgelse
29781568b75bSmrg  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29791568b75bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29801568b75bSmrg{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
29817d5e3a19SmrgSee \`config.log' for more details." >&5
29821568b75bSmrg$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
29837d5e3a19SmrgSee \`config.log' for more details." >&2;}
29841568b75bSmrg   { (exit 1); exit 1; }; }; }
29857d5e3a19Smrgfi
29867d5e3a19Smrg
29877d5e3a19Smrgrm -f conftest$ac_cv_exeext
29881568b75bSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
29891568b75bSmrg$as_echo "$ac_cv_exeext" >&6; }
29907d5e3a19Smrg
29917d5e3a19Smrgrm -f conftest.$ac_ext
29927d5e3a19SmrgEXEEXT=$ac_cv_exeext
29937d5e3a19Smrgac_exeext=$EXEEXT
29941568b75bSmrg{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
29951568b75bSmrg$as_echo_n "checking for suffix of object files... " >&6; }
29967d5e3a19Smrgif test "${ac_cv_objext+set}" = set; then
29971568b75bSmrg  $as_echo_n "(cached) " >&6
29987d5e3a19Smrgelse
29997d5e3a19Smrg  cat >conftest.$ac_ext <<_ACEOF
30007d5e3a19Smrg/* confdefs.h.  */
30017d5e3a19Smrg_ACEOF
30027d5e3a19Smrgcat confdefs.h >>conftest.$ac_ext
30037d5e3a19Smrgcat >>conftest.$ac_ext <<_ACEOF
30047d5e3a19Smrg/* end confdefs.h.  */
30057d5e3a19Smrg
30067d5e3a19Smrgint
30077d5e3a19Smrgmain ()
30087d5e3a19Smrg{
30097d5e3a19Smrg
30107d5e3a19Smrg  ;
30117d5e3a19Smrg  return 0;
30127d5e3a19Smrg}
30137d5e3a19Smrg_ACEOF
30147d5e3a19Smrgrm -f conftest.o conftest.obj
30157d5e3a19Smrgif { (ac_try="$ac_compile"
30167d5e3a19Smrgcase "(($ac_try" in
30177d5e3a19Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30187d5e3a19Smrg  *) ac_try_echo=$ac_try;;
30197d5e3a19Smrgesac
30201568b75bSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30211568b75bSmrg$as_echo "$ac_try_echo") >&5
30227d5e3a19Smrg  (eval "$ac_compile") 2>&5
30237d5e3a19Smrg  ac_status=$?
30241568b75bSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30257d5e3a19Smrg  (exit $ac_status); }; then
30267d5e3a19Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
30277d5e3a19Smrg  test -f "$ac_file" || continue;
30287d5e3a19Smrg  case $ac_file in
30291568b75bSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
30307d5e3a19Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
30317d5e3a19Smrg       break;;
30327d5e3a19Smrg  esac
30337d5e3a19Smrgdone
30347d5e3a19Smrgelse
30351568b75bSmrg  $as_echo "$as_me: failed program was:" >&5
30367d5e3a19Smrgsed 's/^/| /' conftest.$ac_ext >&5
30377d5e3a19Smrg
30381568b75bSmrg{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30391568b75bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30401568b75bSmrg{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
30417d5e3a19SmrgSee \`config.log' for more details." >&5
30421568b75bSmrg$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
30437d5e3a19SmrgSee \`config.log' for more details." >&2;}
30441568b75bSmrg   { (exit 1); exit 1; }; }; }
30457d5e3a19Smrgfi
30467d5e3a19Smrg
30477d5e3a19Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
30487d5e3a19Smrgfi
30491568b75bSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
30501568b75bSmrg$as_echo "$ac_cv_objext" >&6; }
30517d5e3a19SmrgOBJEXT=$ac_cv_objext
30527d5e3a19Smrgac_objext=$OBJEXT
30531568b75bSmrg{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
30541568b75bSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
30557d5e3a19Smrgif test "${ac_cv_c_compiler_gnu+set}" = set; then
30561568b75bSmrg  $as_echo_n "(cached) " >&6
30577d5e3a19Smrgelse
30587d5e3a19Smrg  cat >conftest.$ac_ext <<_ACEOF
30597d5e3a19Smrg/* confdefs.h.  */
30607d5e3a19Smrg_ACEOF
30617d5e3a19Smrgcat confdefs.h >>conftest.$ac_ext
30627d5e3a19Smrgcat >>conftest.$ac_ext <<_ACEOF
30637d5e3a19Smrg/* end confdefs.h.  */
30647d5e3a19Smrg
30657d5e3a19Smrgint
30667d5e3a19Smrgmain ()
30677d5e3a19Smrg{
30687d5e3a19Smrg#ifndef __GNUC__
30697d5e3a19Smrg       choke me
30707d5e3a19Smrg#endif
30717d5e3a19Smrg
30727d5e3a19Smrg  ;
30737d5e3a19Smrg  return 0;
30747d5e3a19Smrg}
30757d5e3a19Smrg_ACEOF
30767d5e3a19Smrgrm -f conftest.$ac_objext
30777d5e3a19Smrgif { (ac_try="$ac_compile"
30787d5e3a19Smrgcase "(($ac_try" in
30797d5e3a19Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30807d5e3a19Smrg  *) ac_try_echo=$ac_try;;
30817d5e3a19Smrgesac
30821568b75bSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30831568b75bSmrg$as_echo "$ac_try_echo") >&5
30847d5e3a19Smrg  (eval "$ac_compile") 2>conftest.er1
30857d5e3a19Smrg  ac_status=$?
30867d5e3a19Smrg  grep -v '^ *+' conftest.er1 >conftest.err
30877d5e3a19Smrg  rm -f conftest.er1
30887d5e3a19Smrg  cat conftest.err >&5
30891568b75bSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30907d5e3a19Smrg  (exit $ac_status); } && {
30917d5e3a19Smrg	 test -z "$ac_c_werror_flag" ||
30927d5e3a19Smrg	 test ! -s conftest.err
30937d5e3a19Smrg       } && test -s conftest.$ac_objext; then
30947d5e3a19Smrg  ac_compiler_gnu=yes
30957d5e3a19Smrgelse
30961568b75bSmrg  $as_echo "$as_me: failed program was:" >&5
30977d5e3a19Smrgsed 's/^/| /' conftest.$ac_ext >&5
30987d5e3a19Smrg
30997d5e3a19Smrg	ac_compiler_gnu=no
31007d5e3a19Smrgfi
31017d5e3a19Smrg
31027d5e3a19Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31037d5e3a19Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
31047d5e3a19Smrg
31057d5e3a19Smrgfi
31061568b75bSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
31071568b75bSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
31081568b75bSmrgif test $ac_compiler_gnu = yes; then
31091568b75bSmrg  GCC=yes
31101568b75bSmrgelse
31111568b75bSmrg  GCC=
31121568b75bSmrgfi
31137d5e3a19Smrgac_test_CFLAGS=${CFLAGS+set}
31147d5e3a19Smrgac_save_CFLAGS=$CFLAGS
31151568b75bSmrg{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
31161568b75bSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
31177d5e3a19Smrgif test "${ac_cv_prog_cc_g+set}" = set; then
31181568b75bSmrg  $as_echo_n "(cached) " >&6
31197d5e3a19Smrgelse
31207d5e3a19Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
31217d5e3a19Smrg   ac_c_werror_flag=yes
31227d5e3a19Smrg   ac_cv_prog_cc_g=no
31237d5e3a19Smrg   CFLAGS="-g"
31247d5e3a19Smrg   cat >conftest.$ac_ext <<_ACEOF
31257d5e3a19Smrg/* confdefs.h.  */
31267d5e3a19Smrg_ACEOF
31277d5e3a19Smrgcat confdefs.h >>conftest.$ac_ext
31287d5e3a19Smrgcat >>conftest.$ac_ext <<_ACEOF
31297d5e3a19Smrg/* end confdefs.h.  */
31307d5e3a19Smrg
31317d5e3a19Smrgint
31327d5e3a19Smrgmain ()
31337d5e3a19Smrg{
31347d5e3a19Smrg
31357d5e3a19Smrg  ;
31367d5e3a19Smrg  return 0;
31377d5e3a19Smrg}
31387d5e3a19Smrg_ACEOF
31397d5e3a19Smrgrm -f conftest.$ac_objext
31407d5e3a19Smrgif { (ac_try="$ac_compile"
31417d5e3a19Smrgcase "(($ac_try" in
31427d5e3a19Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31437d5e3a19Smrg  *) ac_try_echo=$ac_try;;
31447d5e3a19Smrgesac
31451568b75bSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31461568b75bSmrg$as_echo "$ac_try_echo") >&5
31477d5e3a19Smrg  (eval "$ac_compile") 2>conftest.er1
31487d5e3a19Smrg  ac_status=$?
31497d5e3a19Smrg  grep -v '^ *+' conftest.er1 >conftest.err
31507d5e3a19Smrg  rm -f conftest.er1
31517d5e3a19Smrg  cat conftest.err >&5
31521568b75bSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31537d5e3a19Smrg  (exit $ac_status); } && {
31547d5e3a19Smrg	 test -z "$ac_c_werror_flag" ||
31557d5e3a19Smrg	 test ! -s conftest.err
31567d5e3a19Smrg       } && test -s conftest.$ac_objext; then
31577d5e3a19Smrg  ac_cv_prog_cc_g=yes
31587d5e3a19Smrgelse
31591568b75bSmrg  $as_echo "$as_me: failed program was:" >&5
31607d5e3a19Smrgsed 's/^/| /' conftest.$ac_ext >&5
31617d5e3a19Smrg
31627d5e3a19Smrg	CFLAGS=""
31637d5e3a19Smrg      cat >conftest.$ac_ext <<_ACEOF
31647d5e3a19Smrg/* confdefs.h.  */
31657d5e3a19Smrg_ACEOF
31667d5e3a19Smrgcat confdefs.h >>conftest.$ac_ext
31677d5e3a19Smrgcat >>conftest.$ac_ext <<_ACEOF
31687d5e3a19Smrg/* end confdefs.h.  */
31697d5e3a19Smrg
31707d5e3a19Smrgint
31717d5e3a19Smrgmain ()
31727d5e3a19Smrg{
31737d5e3a19Smrg
31747d5e3a19Smrg  ;
31757d5e3a19Smrg  return 0;
31767d5e3a19Smrg}
31777d5e3a19Smrg_ACEOF
31787d5e3a19Smrgrm -f conftest.$ac_objext
31797d5e3a19Smrgif { (ac_try="$ac_compile"
31807d5e3a19Smrgcase "(($ac_try" in
31817d5e3a19Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31827d5e3a19Smrg  *) ac_try_echo=$ac_try;;
31837d5e3a19Smrgesac
31841568b75bSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31851568b75bSmrg$as_echo "$ac_try_echo") >&5
31867d5e3a19Smrg  (eval "$ac_compile") 2>conftest.er1
31877d5e3a19Smrg  ac_status=$?
31887d5e3a19Smrg  grep -v '^ *+' conftest.er1 >conftest.err
31897d5e3a19Smrg  rm -f conftest.er1
31907d5e3a19Smrg  cat conftest.err >&5
31911568b75bSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31927d5e3a19Smrg  (exit $ac_status); } && {
31937d5e3a19Smrg	 test -z "$ac_c_werror_flag" ||
31947d5e3a19Smrg	 test ! -s conftest.err
31957d5e3a19Smrg       } && test -s conftest.$ac_objext; then
31967d5e3a19Smrg  :
31977d5e3a19Smrgelse
31981568b75bSmrg  $as_echo "$as_me: failed program was:" >&5
31997d5e3a19Smrgsed 's/^/| /' conftest.$ac_ext >&5
32007d5e3a19Smrg
32017d5e3a19Smrg	ac_c_werror_flag=$ac_save_c_werror_flag
32027d5e3a19Smrg	 CFLAGS="-g"
32037d5e3a19Smrg	 cat >conftest.$ac_ext <<_ACEOF
32047d5e3a19Smrg/* confdefs.h.  */
32057d5e3a19Smrg_ACEOF
32067d5e3a19Smrgcat confdefs.h >>conftest.$ac_ext
32077d5e3a19Smrgcat >>conftest.$ac_ext <<_ACEOF
32087d5e3a19Smrg/* end confdefs.h.  */
32097d5e3a19Smrg
32107d5e3a19Smrgint
32117d5e3a19Smrgmain ()
32127d5e3a19Smrg{
32137d5e3a19Smrg
32147d5e3a19Smrg  ;
32157d5e3a19Smrg  return 0;
32167d5e3a19Smrg}
32177d5e3a19Smrg_ACEOF
32187d5e3a19Smrgrm -f conftest.$ac_objext
32197d5e3a19Smrgif { (ac_try="$ac_compile"
32207d5e3a19Smrgcase "(($ac_try" in
32217d5e3a19Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32227d5e3a19Smrg  *) ac_try_echo=$ac_try;;
32237d5e3a19Smrgesac
32241568b75bSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32251568b75bSmrg$as_echo "$ac_try_echo") >&5
32267d5e3a19Smrg  (eval "$ac_compile") 2>conftest.er1
32277d5e3a19Smrg  ac_status=$?
32287d5e3a19Smrg  grep -v '^ *+' conftest.er1 >conftest.err
32297d5e3a19Smrg  rm -f conftest.er1
32307d5e3a19Smrg  cat conftest.err >&5
32311568b75bSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32327d5e3a19Smrg  (exit $ac_status); } && {
32337d5e3a19Smrg	 test -z "$ac_c_werror_flag" ||
32347d5e3a19Smrg	 test ! -s conftest.err
32357d5e3a19Smrg       } && test -s conftest.$ac_objext; then
32367d5e3a19Smrg  ac_cv_prog_cc_g=yes
32377d5e3a19Smrgelse
32381568b75bSmrg  $as_echo "$as_me: failed program was:" >&5
32397d5e3a19Smrgsed 's/^/| /' conftest.$ac_ext >&5
32407d5e3a19Smrg
32417d5e3a19Smrg
32427d5e3a19Smrgfi
32437d5e3a19Smrg
32447d5e3a19Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32457d5e3a19Smrgfi
32467d5e3a19Smrg
32477d5e3a19Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32487d5e3a19Smrgfi
32497d5e3a19Smrg
32507d5e3a19Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32517d5e3a19Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
32527d5e3a19Smrgfi
32531568b75bSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
32541568b75bSmrg$as_echo "$ac_cv_prog_cc_g" >&6; }
32557d5e3a19Smrgif test "$ac_test_CFLAGS" = set; then
32567d5e3a19Smrg  CFLAGS=$ac_save_CFLAGS
32577d5e3a19Smrgelif test $ac_cv_prog_cc_g = yes; then
32587d5e3a19Smrg  if test "$GCC" = yes; then
32597d5e3a19Smrg    CFLAGS="-g -O2"
32607d5e3a19Smrg  else
32617d5e3a19Smrg    CFLAGS="-g"
32627d5e3a19Smrg  fi
32637d5e3a19Smrgelse
32647d5e3a19Smrg  if test "$GCC" = yes; then
32657d5e3a19Smrg    CFLAGS="-O2"
32667d5e3a19Smrg  else
32677d5e3a19Smrg    CFLAGS=
32687d5e3a19Smrg  fi
32697d5e3a19Smrgfi
32701568b75bSmrg{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
32711568b75bSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
32727d5e3a19Smrgif test "${ac_cv_prog_cc_c89+set}" = set; then
32731568b75bSmrg  $as_echo_n "(cached) " >&6
32747d5e3a19Smrgelse
32757d5e3a19Smrg  ac_cv_prog_cc_c89=no
32767d5e3a19Smrgac_save_CC=$CC
32777d5e3a19Smrgcat >conftest.$ac_ext <<_ACEOF
32787d5e3a19Smrg/* confdefs.h.  */
32797d5e3a19Smrg_ACEOF
32807d5e3a19Smrgcat confdefs.h >>conftest.$ac_ext
32817d5e3a19Smrgcat >>conftest.$ac_ext <<_ACEOF
32827d5e3a19Smrg/* end confdefs.h.  */
32837d5e3a19Smrg#include <stdarg.h>
32847d5e3a19Smrg#include <stdio.h>
32857d5e3a19Smrg#include <sys/types.h>
32867d5e3a19Smrg#include <sys/stat.h>
32877d5e3a19Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
32887d5e3a19Smrgstruct buf { int x; };
32897d5e3a19SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
32907d5e3a19Smrgstatic char *e (p, i)
32917d5e3a19Smrg     char **p;
32927d5e3a19Smrg     int i;
32937d5e3a19Smrg{
32947d5e3a19Smrg  return p[i];
32957d5e3a19Smrg}
32967d5e3a19Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
32977d5e3a19Smrg{
32987d5e3a19Smrg  char *s;
32997d5e3a19Smrg  va_list v;
33007d5e3a19Smrg  va_start (v,p);
33017d5e3a19Smrg  s = g (p, va_arg (v,int));
33027d5e3a19Smrg  va_end (v);
33037d5e3a19Smrg  return s;
33047d5e3a19Smrg}
33057d5e3a19Smrg
33067d5e3a19Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
33077d5e3a19Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
33087d5e3a19Smrg   These don't provoke an error unfortunately, instead are silently treated
33097d5e3a19Smrg   as 'x'.  The following induces an error, until -std is added to get
33107d5e3a19Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
33117d5e3a19Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
33127d5e3a19Smrg   that's true only with -std.  */
33137d5e3a19Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
33147d5e3a19Smrg
33157d5e3a19Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
33167d5e3a19Smrg   inside strings and character constants.  */
33177d5e3a19Smrg#define FOO(x) 'x'
33187d5e3a19Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
33197d5e3a19Smrg
33207d5e3a19Smrgint test (int i, double x);
33217d5e3a19Smrgstruct s1 {int (*f) (int a);};
33227d5e3a19Smrgstruct s2 {int (*f) (double a);};
33237d5e3a19Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
33247d5e3a19Smrgint argc;
33257d5e3a19Smrgchar **argv;
33267d5e3a19Smrgint
33277d5e3a19Smrgmain ()
33287d5e3a19Smrg{
33297d5e3a19Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
33307d5e3a19Smrg  ;
33317d5e3a19Smrg  return 0;
33327d5e3a19Smrg}
33337d5e3a19Smrg_ACEOF
33347d5e3a19Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
33357d5e3a19Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
33367d5e3a19Smrgdo
33377d5e3a19Smrg  CC="$ac_save_CC $ac_arg"
33387d5e3a19Smrg  rm -f conftest.$ac_objext
33397d5e3a19Smrgif { (ac_try="$ac_compile"
33407d5e3a19Smrgcase "(($ac_try" in
33417d5e3a19Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33427d5e3a19Smrg  *) ac_try_echo=$ac_try;;
33437d5e3a19Smrgesac
33441568b75bSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33451568b75bSmrg$as_echo "$ac_try_echo") >&5
33467d5e3a19Smrg  (eval "$ac_compile") 2>conftest.er1
33477d5e3a19Smrg  ac_status=$?
33487d5e3a19Smrg  grep -v '^ *+' conftest.er1 >conftest.err
33497d5e3a19Smrg  rm -f conftest.er1
33507d5e3a19Smrg  cat conftest.err >&5
33511568b75bSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33527d5e3a19Smrg  (exit $ac_status); } && {
33537d5e3a19Smrg	 test -z "$ac_c_werror_flag" ||
33547d5e3a19Smrg	 test ! -s conftest.err
33557d5e3a19Smrg       } && test -s conftest.$ac_objext; then
33567d5e3a19Smrg  ac_cv_prog_cc_c89=$ac_arg
33577d5e3a19Smrgelse
33581568b75bSmrg  $as_echo "$as_me: failed program was:" >&5
33597d5e3a19Smrgsed 's/^/| /' conftest.$ac_ext >&5
33607d5e3a19Smrg
33617d5e3a19Smrg
33627d5e3a19Smrgfi
33637d5e3a19Smrg
33647d5e3a19Smrgrm -f core conftest.err conftest.$ac_objext
33657d5e3a19Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
33667d5e3a19Smrgdone
33677d5e3a19Smrgrm -f conftest.$ac_ext
33687d5e3a19SmrgCC=$ac_save_CC
33697d5e3a19Smrg
33707d5e3a19Smrgfi
33717d5e3a19Smrg# AC_CACHE_VAL
33727d5e3a19Smrgcase "x$ac_cv_prog_cc_c89" in
33737d5e3a19Smrg  x)
33741568b75bSmrg    { $as_echo "$as_me:$LINENO: result: none needed" >&5
33751568b75bSmrg$as_echo "none needed" >&6; } ;;
33767d5e3a19Smrg  xno)
33771568b75bSmrg    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
33781568b75bSmrg$as_echo "unsupported" >&6; } ;;
33797d5e3a19Smrg  *)
33807d5e3a19Smrg    CC="$CC $ac_cv_prog_cc_c89"
33811568b75bSmrg    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
33821568b75bSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
33837d5e3a19Smrgesac
33847d5e3a19Smrg
33857d5e3a19Smrg
33867d5e3a19Smrgac_ext=c
33877d5e3a19Smrgac_cpp='$CPP $CPPFLAGS'
33887d5e3a19Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33897d5e3a19Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33907d5e3a19Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
33917d5e3a19SmrgDEPDIR="${am__leading_dot}deps"
33927d5e3a19Smrg
33937d5e3a19Smrgac_config_commands="$ac_config_commands depfiles"
33947d5e3a19Smrg
33957d5e3a19Smrg
33967d5e3a19Smrgam_make=${MAKE-make}
33977d5e3a19Smrgcat > confinc << 'END'
33987d5e3a19Smrgam__doit:
33991568b75bSmrg	@echo this is the am__doit target
34007d5e3a19Smrg.PHONY: am__doit
34017d5e3a19SmrgEND
34027d5e3a19Smrg# If we don't find an include directive, just comment out the code.
34031568b75bSmrg{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
34041568b75bSmrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
34057d5e3a19Smrgam__include="#"
34067d5e3a19Smrgam__quote=
34077d5e3a19Smrg_am_result=none
34087d5e3a19Smrg# First try GNU make style include.
34097d5e3a19Smrgecho "include confinc" > confmf
34101568b75bSmrg# Ignore all kinds of additional output from `make'.
34111568b75bSmrgcase `$am_make -s -f confmf 2> /dev/null` in #(
34121568b75bSmrg*the\ am__doit\ target*)
34131568b75bSmrg  am__include=include
34141568b75bSmrg  am__quote=
34151568b75bSmrg  _am_result=GNU
34161568b75bSmrg  ;;
34171568b75bSmrgesac
34187d5e3a19Smrg# Now try BSD make style include.
34197d5e3a19Smrgif test "$am__include" = "#"; then
34207d5e3a19Smrg   echo '.include "confinc"' > confmf
34211568b75bSmrg   case `$am_make -s -f confmf 2> /dev/null` in #(
34221568b75bSmrg   *the\ am__doit\ target*)
34231568b75bSmrg     am__include=.include
34241568b75bSmrg     am__quote="\""
34251568b75bSmrg     _am_result=BSD
34261568b75bSmrg     ;;
34271568b75bSmrg   esac
34287d5e3a19Smrgfi
34297d5e3a19Smrg
34307d5e3a19Smrg
34311568b75bSmrg{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
34321568b75bSmrg$as_echo "$_am_result" >&6; }
34337d5e3a19Smrgrm -f confinc confmf
34347d5e3a19Smrg
34357d5e3a19Smrg# Check whether --enable-dependency-tracking was given.
34367d5e3a19Smrgif test "${enable_dependency_tracking+set}" = set; then
34377d5e3a19Smrg  enableval=$enable_dependency_tracking;
34387d5e3a19Smrgfi
34397d5e3a19Smrg
34407d5e3a19Smrgif test "x$enable_dependency_tracking" != xno; then
34417d5e3a19Smrg  am_depcomp="$ac_aux_dir/depcomp"
34427d5e3a19Smrg  AMDEPBACKSLASH='\'
34437d5e3a19Smrgfi
34447d5e3a19Smrg if test "x$enable_dependency_tracking" != xno; then
34457d5e3a19Smrg  AMDEP_TRUE=
34467d5e3a19Smrg  AMDEP_FALSE='#'
34477d5e3a19Smrgelse
34487d5e3a19Smrg  AMDEP_TRUE='#'
34497d5e3a19Smrg  AMDEP_FALSE=
34507d5e3a19Smrgfi
34517d5e3a19Smrg
34527d5e3a19Smrg
34537d5e3a19Smrg
34547d5e3a19Smrgdepcc="$CC"   am_compiler_list=
34557d5e3a19Smrg
34561568b75bSmrg{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
34571568b75bSmrg$as_echo_n "checking dependency style of $depcc... " >&6; }
34587d5e3a19Smrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
34591568b75bSmrg  $as_echo_n "(cached) " >&6
34607d5e3a19Smrgelse
34617d5e3a19Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
34627d5e3a19Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
34637d5e3a19Smrg  # making bogus files that we don't know about and never remove.  For
34647d5e3a19Smrg  # instance it was reported that on HP-UX the gcc test will end up
34657d5e3a19Smrg  # making a dummy file named `D' -- because `-MD' means `put the output
34667d5e3a19Smrg  # in D'.
34677d5e3a19Smrg  mkdir conftest.dir
34687d5e3a19Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
34697d5e3a19Smrg  # using a relative directory.
34707d5e3a19Smrg  cp "$am_depcomp" conftest.dir
34717d5e3a19Smrg  cd conftest.dir
34727d5e3a19Smrg  # We will build objects and dependencies in a subdirectory because
34737d5e3a19Smrg  # it helps to detect inapplicable dependency modes.  For instance
34747d5e3a19Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
34757d5e3a19Smrg  # side effect of compilation, but ICC will put the dependencies in
34767d5e3a19Smrg  # the current directory while Tru64 will put them in the object
34777d5e3a19Smrg  # directory.
34787d5e3a19Smrg  mkdir sub
34797d5e3a19Smrg
34807d5e3a19Smrg  am_cv_CC_dependencies_compiler_type=none
34817d5e3a19Smrg  if test "$am_compiler_list" = ""; then
34827d5e3a19Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
34837d5e3a19Smrg  fi
34841568b75bSmrg  am__universal=false
34851568b75bSmrg  case " $depcc " in #(
34861568b75bSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
34871568b75bSmrg     esac
34881568b75bSmrg
34897d5e3a19Smrg  for depmode in $am_compiler_list; do
34907d5e3a19Smrg    # Setup a source with many dependencies, because some compilers
34917d5e3a19Smrg    # like to wrap large dependency lists on column 80 (with \), and
34927d5e3a19Smrg    # we should not choose a depcomp mode which is confused by this.
34937d5e3a19Smrg    #
34947d5e3a19Smrg    # We need to recreate these files for each test, as the compiler may
34957d5e3a19Smrg    # overwrite some of them when testing with obscure command lines.
34967d5e3a19Smrg    # This happens at least with the AIX C compiler.
34977d5e3a19Smrg    : > sub/conftest.c
34987d5e3a19Smrg    for i in 1 2 3 4 5 6; do
34997d5e3a19Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
35007d5e3a19Smrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
35017d5e3a19Smrg      # Solaris 8's {/usr,}/bin/sh.
35027d5e3a19Smrg      touch sub/conftst$i.h
35037d5e3a19Smrg    done
35047d5e3a19Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
35057d5e3a19Smrg
35061568b75bSmrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
35071568b75bSmrg    # mode.  It turns out that the SunPro C++ compiler does not properly
35081568b75bSmrg    # handle `-M -o', and we need to detect this.  Also, some Intel
35091568b75bSmrg    # versions had trouble with output in subdirs
35101568b75bSmrg    am__obj=sub/conftest.${OBJEXT-o}
35111568b75bSmrg    am__minus_obj="-o $am__obj"
35127d5e3a19Smrg    case $depmode in
35131568b75bSmrg    gcc)
35141568b75bSmrg      # This depmode causes a compiler race in universal mode.
35151568b75bSmrg      test "$am__universal" = false || continue
35161568b75bSmrg      ;;
35177d5e3a19Smrg    nosideeffect)
35187d5e3a19Smrg      # after this tag, mechanisms are not by side-effect, so they'll
35197d5e3a19Smrg      # only be used when explicitly requested
35207d5e3a19Smrg      if test "x$enable_dependency_tracking" = xyes; then
35217d5e3a19Smrg	continue
35227d5e3a19Smrg      else
35237d5e3a19Smrg	break
35247d5e3a19Smrg      fi
35257d5e3a19Smrg      ;;
35261568b75bSmrg    msvisualcpp | msvcmsys)
35271568b75bSmrg      # This compiler won't grok `-c -o', but also, the minuso test has
35281568b75bSmrg      # not run yet.  These depmodes are late enough in the game, and
35291568b75bSmrg      # so weak that their functioning should not be impacted.
35301568b75bSmrg      am__obj=conftest.${OBJEXT-o}
35311568b75bSmrg      am__minus_obj=
35321568b75bSmrg      ;;
35337d5e3a19Smrg    none) break ;;
35347d5e3a19Smrg    esac
35357d5e3a19Smrg    if depmode=$depmode \
35361568b75bSmrg       source=sub/conftest.c object=$am__obj \
35377d5e3a19Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
35381568b75bSmrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
35397d5e3a19Smrg         >/dev/null 2>conftest.err &&
35407d5e3a19Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
35417d5e3a19Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
35421568b75bSmrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
35437d5e3a19Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
35447d5e3a19Smrg      # icc doesn't choke on unknown options, it will just issue warnings
35457d5e3a19Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
35467d5e3a19Smrg      # that says an option was ignored or not supported.
35477d5e3a19Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
35487d5e3a19Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
35497d5e3a19Smrg      # The diagnosis changed in icc 8.0:
35507d5e3a19Smrg      #   icc: Command line remark: option '-MP' not supported
35517d5e3a19Smrg      if (grep 'ignoring option' conftest.err ||
35527d5e3a19Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
35537d5e3a19Smrg        am_cv_CC_dependencies_compiler_type=$depmode
35547d5e3a19Smrg        break
35557d5e3a19Smrg      fi
35567d5e3a19Smrg    fi
35577d5e3a19Smrg  done
35587d5e3a19Smrg
35597d5e3a19Smrg  cd ..
35607d5e3a19Smrg  rm -rf conftest.dir
35617d5e3a19Smrgelse
35627d5e3a19Smrg  am_cv_CC_dependencies_compiler_type=none
35637d5e3a19Smrgfi
35647d5e3a19Smrg
35657d5e3a19Smrgfi
35661568b75bSmrg{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
35671568b75bSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
35681568b75bSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
35691568b75bSmrg
35701568b75bSmrg if
35711568b75bSmrg  test "x$enable_dependency_tracking" != xno \
35721568b75bSmrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
35731568b75bSmrg  am__fastdepCC_TRUE=
35741568b75bSmrg  am__fastdepCC_FALSE='#'
35751568b75bSmrgelse
35761568b75bSmrg  am__fastdepCC_TRUE='#'
35771568b75bSmrg  am__fastdepCC_FALSE=
35781568b75bSmrgfi
35791568b75bSmrg
35801568b75bSmrg
35811568b75bSmrg# Find a good install program.  We prefer a C program (faster),
35821568b75bSmrg# so one script is as good as another.  But avoid the broken or
35831568b75bSmrg# incompatible versions:
35841568b75bSmrg# SysV /etc/install, /usr/sbin/install
35851568b75bSmrg# SunOS /usr/etc/install
35861568b75bSmrg# IRIX /sbin/install
35871568b75bSmrg# AIX /bin/install
35881568b75bSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs
35891568b75bSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
35901568b75bSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
35911568b75bSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
35921568b75bSmrg# OS/2's system install, which has a completely different semantic
35931568b75bSmrg# ./install, which can be erroneously created by make from ./install.sh.
35941568b75bSmrg# Reject install programs that cannot install multiple files.
35951568b75bSmrg{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
35961568b75bSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
35971568b75bSmrgif test -z "$INSTALL"; then
35981568b75bSmrgif test "${ac_cv_path_install+set}" = set; then
35991568b75bSmrg  $as_echo_n "(cached) " >&6
36001568b75bSmrgelse
36011568b75bSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36021568b75bSmrgfor as_dir in $PATH
36031568b75bSmrgdo
36041568b75bSmrg  IFS=$as_save_IFS
36051568b75bSmrg  test -z "$as_dir" && as_dir=.
36061568b75bSmrg  # Account for people who put trailing slashes in PATH elements.
36071568b75bSmrgcase $as_dir/ in
36081568b75bSmrg  ./ | .// | /cC/* | \
36091568b75bSmrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
36101568b75bSmrg  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
36111568b75bSmrg  /usr/ucb/* ) ;;
36121568b75bSmrg  *)
36131568b75bSmrg    # OSF1 and SCO ODT 3.0 have their own names for install.
36141568b75bSmrg    # Don't use installbsd from OSF since it installs stuff as root
36151568b75bSmrg    # by default.
36161568b75bSmrg    for ac_prog in ginstall scoinst install; do
36171568b75bSmrg      for ac_exec_ext in '' $ac_executable_extensions; do
36181568b75bSmrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
36191568b75bSmrg	  if test $ac_prog = install &&
36201568b75bSmrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
36211568b75bSmrg	    # AIX install.  It has an incompatible calling convention.
36221568b75bSmrg	    :
36231568b75bSmrg	  elif test $ac_prog = install &&
36241568b75bSmrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
36251568b75bSmrg	    # program-specific install script used by HP pwplus--don't use.
36261568b75bSmrg	    :
36271568b75bSmrg	  else
36281568b75bSmrg	    rm -rf conftest.one conftest.two conftest.dir
36291568b75bSmrg	    echo one > conftest.one
36301568b75bSmrg	    echo two > conftest.two
36311568b75bSmrg	    mkdir conftest.dir
36321568b75bSmrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
36331568b75bSmrg	      test -s conftest.one && test -s conftest.two &&
36341568b75bSmrg	      test -s conftest.dir/conftest.one &&
36351568b75bSmrg	      test -s conftest.dir/conftest.two
36361568b75bSmrg	    then
36371568b75bSmrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
36381568b75bSmrg	      break 3
36391568b75bSmrg	    fi
36401568b75bSmrg	  fi
36411568b75bSmrg	fi
36421568b75bSmrg      done
36431568b75bSmrg    done
36441568b75bSmrg    ;;
36451568b75bSmrgesac
36461568b75bSmrg
36471568b75bSmrgdone
36481568b75bSmrgIFS=$as_save_IFS
36491568b75bSmrg
36501568b75bSmrgrm -rf conftest.one conftest.two conftest.dir
36511568b75bSmrg
36521568b75bSmrgfi
36531568b75bSmrg  if test "${ac_cv_path_install+set}" = set; then
36541568b75bSmrg    INSTALL=$ac_cv_path_install
36551568b75bSmrg  else
36561568b75bSmrg    # As a last resort, use the slow shell script.  Don't cache a
36571568b75bSmrg    # value for INSTALL within a source directory, because that will
36581568b75bSmrg    # break other packages using the cache if that directory is
36591568b75bSmrg    # removed, or if the value is a relative name.
36601568b75bSmrg    INSTALL=$ac_install_sh
36611568b75bSmrg  fi
36621568b75bSmrgfi
36631568b75bSmrg{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
36641568b75bSmrg$as_echo "$INSTALL" >&6; }
36651568b75bSmrg
36661568b75bSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
36671568b75bSmrg# It thinks the first close brace ends the variable substitution.
36681568b75bSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
36691568b75bSmrg
36701568b75bSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
36711568b75bSmrg
36721568b75bSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
36731568b75bSmrg
36741568b75bSmrg
36751568b75bSmrg
36761568b75bSmrgac_ext=c
36771568b75bSmrgac_cpp='$CPP $CPPFLAGS'
36781568b75bSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36791568b75bSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36801568b75bSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
36811568b75bSmrg{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
36821568b75bSmrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
36831568b75bSmrg# On Suns, sometimes $CPP names a directory.
36841568b75bSmrgif test -n "$CPP" && test -d "$CPP"; then
36851568b75bSmrg  CPP=
36861568b75bSmrgfi
36871568b75bSmrgif test -z "$CPP"; then
36881568b75bSmrg  if test "${ac_cv_prog_CPP+set}" = set; then
36891568b75bSmrg  $as_echo_n "(cached) " >&6
36901568b75bSmrgelse
36911568b75bSmrg      # Double quotes because CPP needs to be expanded
36921568b75bSmrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
36931568b75bSmrg    do
36941568b75bSmrg      ac_preproc_ok=false
36951568b75bSmrgfor ac_c_preproc_warn_flag in '' yes
36961568b75bSmrgdo
36971568b75bSmrg  # Use a header file that comes with gcc, so configuring glibc
36981568b75bSmrg  # with a fresh cross-compiler works.
36991568b75bSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37001568b75bSmrg  # <limits.h> exists even on freestanding compilers.
37011568b75bSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
37021568b75bSmrg  # not just through cpp. "Syntax error" is here to catch this case.
37031568b75bSmrg  cat >conftest.$ac_ext <<_ACEOF
37041568b75bSmrg/* confdefs.h.  */
37051568b75bSmrg_ACEOF
37061568b75bSmrgcat confdefs.h >>conftest.$ac_ext
37071568b75bSmrgcat >>conftest.$ac_ext <<_ACEOF
37081568b75bSmrg/* end confdefs.h.  */
37091568b75bSmrg#ifdef __STDC__
37101568b75bSmrg# include <limits.h>
37111568b75bSmrg#else
37121568b75bSmrg# include <assert.h>
37131568b75bSmrg#endif
37141568b75bSmrg		     Syntax error
37151568b75bSmrg_ACEOF
37161568b75bSmrgif { (ac_try="$ac_cpp conftest.$ac_ext"
37171568b75bSmrgcase "(($ac_try" in
37181568b75bSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37191568b75bSmrg  *) ac_try_echo=$ac_try;;
37201568b75bSmrgesac
37211568b75bSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37221568b75bSmrg$as_echo "$ac_try_echo") >&5
37231568b75bSmrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37241568b75bSmrg  ac_status=$?
37251568b75bSmrg  grep -v '^ *+' conftest.er1 >conftest.err
37261568b75bSmrg  rm -f conftest.er1
37271568b75bSmrg  cat conftest.err >&5
37281568b75bSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37291568b75bSmrg  (exit $ac_status); } >/dev/null && {
37301568b75bSmrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37311568b75bSmrg	 test ! -s conftest.err
37321568b75bSmrg       }; then
37331568b75bSmrg  :
37341568b75bSmrgelse
37351568b75bSmrg  $as_echo "$as_me: failed program was:" >&5
37361568b75bSmrgsed 's/^/| /' conftest.$ac_ext >&5
37371568b75bSmrg
37381568b75bSmrg  # Broken: fails on valid input.
37391568b75bSmrgcontinue
37401568b75bSmrgfi
37411568b75bSmrg
37421568b75bSmrgrm -f conftest.err conftest.$ac_ext
37431568b75bSmrg
37441568b75bSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
37451568b75bSmrg  # can be detected and how.
37461568b75bSmrg  cat >conftest.$ac_ext <<_ACEOF
37471568b75bSmrg/* confdefs.h.  */
37481568b75bSmrg_ACEOF
37491568b75bSmrgcat confdefs.h >>conftest.$ac_ext
37501568b75bSmrgcat >>conftest.$ac_ext <<_ACEOF
37511568b75bSmrg/* end confdefs.h.  */
37521568b75bSmrg#include <ac_nonexistent.h>
37531568b75bSmrg_ACEOF
37541568b75bSmrgif { (ac_try="$ac_cpp conftest.$ac_ext"
37551568b75bSmrgcase "(($ac_try" in
37561568b75bSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37571568b75bSmrg  *) ac_try_echo=$ac_try;;
37581568b75bSmrgesac
37591568b75bSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37601568b75bSmrg$as_echo "$ac_try_echo") >&5
37611568b75bSmrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37621568b75bSmrg  ac_status=$?
37631568b75bSmrg  grep -v '^ *+' conftest.er1 >conftest.err
37641568b75bSmrg  rm -f conftest.er1
37651568b75bSmrg  cat conftest.err >&5
37661568b75bSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37671568b75bSmrg  (exit $ac_status); } >/dev/null && {
37681568b75bSmrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37691568b75bSmrg	 test ! -s conftest.err
37701568b75bSmrg       }; then
37711568b75bSmrg  # Broken: success on invalid input.
37721568b75bSmrgcontinue
37731568b75bSmrgelse
37741568b75bSmrg  $as_echo "$as_me: failed program was:" >&5
37751568b75bSmrgsed 's/^/| /' conftest.$ac_ext >&5
37761568b75bSmrg
37771568b75bSmrg  # Passes both tests.
37781568b75bSmrgac_preproc_ok=:
37791568b75bSmrgbreak
37801568b75bSmrgfi
37811568b75bSmrg
37821568b75bSmrgrm -f conftest.err conftest.$ac_ext
37831568b75bSmrg
37841568b75bSmrgdone
37851568b75bSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
37861568b75bSmrgrm -f conftest.err conftest.$ac_ext
37871568b75bSmrgif $ac_preproc_ok; then
37881568b75bSmrg  break
37891568b75bSmrgfi
37901568b75bSmrg
37911568b75bSmrg    done
37921568b75bSmrg    ac_cv_prog_CPP=$CPP
37931568b75bSmrg
37941568b75bSmrgfi
37951568b75bSmrg  CPP=$ac_cv_prog_CPP
37961568b75bSmrgelse
37971568b75bSmrg  ac_cv_prog_CPP=$CPP
37981568b75bSmrgfi
37991568b75bSmrg{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
38001568b75bSmrg$as_echo "$CPP" >&6; }
38011568b75bSmrgac_preproc_ok=false
38021568b75bSmrgfor ac_c_preproc_warn_flag in '' yes
38031568b75bSmrgdo
38041568b75bSmrg  # Use a header file that comes with gcc, so configuring glibc
38051568b75bSmrg  # with a fresh cross-compiler works.
38061568b75bSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38071568b75bSmrg  # <limits.h> exists even on freestanding compilers.
38081568b75bSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
38091568b75bSmrg  # not just through cpp. "Syntax error" is here to catch this case.
38101568b75bSmrg  cat >conftest.$ac_ext <<_ACEOF
38111568b75bSmrg/* confdefs.h.  */
38121568b75bSmrg_ACEOF
38131568b75bSmrgcat confdefs.h >>conftest.$ac_ext
38141568b75bSmrgcat >>conftest.$ac_ext <<_ACEOF
38151568b75bSmrg/* end confdefs.h.  */
38161568b75bSmrg#ifdef __STDC__
38171568b75bSmrg# include <limits.h>
38181568b75bSmrg#else
38191568b75bSmrg# include <assert.h>
38201568b75bSmrg#endif
38211568b75bSmrg		     Syntax error
38221568b75bSmrg_ACEOF
38231568b75bSmrgif { (ac_try="$ac_cpp conftest.$ac_ext"
38241568b75bSmrgcase "(($ac_try" in
38251568b75bSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38261568b75bSmrg  *) ac_try_echo=$ac_try;;
38271568b75bSmrgesac
38281568b75bSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38291568b75bSmrg$as_echo "$ac_try_echo") >&5
38301568b75bSmrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38311568b75bSmrg  ac_status=$?
38321568b75bSmrg  grep -v '^ *+' conftest.er1 >conftest.err
38331568b75bSmrg  rm -f conftest.er1
38341568b75bSmrg  cat conftest.err >&5
38351568b75bSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38361568b75bSmrg  (exit $ac_status); } >/dev/null && {
38371568b75bSmrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38381568b75bSmrg	 test ! -s conftest.err
38391568b75bSmrg       }; then
38401568b75bSmrg  :
38411568b75bSmrgelse
38421568b75bSmrg  $as_echo "$as_me: failed program was:" >&5
38431568b75bSmrgsed 's/^/| /' conftest.$ac_ext >&5
38441568b75bSmrg
38451568b75bSmrg  # Broken: fails on valid input.
38461568b75bSmrgcontinue
38471568b75bSmrgfi
38481568b75bSmrg
38491568b75bSmrgrm -f conftest.err conftest.$ac_ext
38501568b75bSmrg
38511568b75bSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
38521568b75bSmrg  # can be detected and how.
38531568b75bSmrg  cat >conftest.$ac_ext <<_ACEOF
38541568b75bSmrg/* confdefs.h.  */
38551568b75bSmrg_ACEOF
38561568b75bSmrgcat confdefs.h >>conftest.$ac_ext
38571568b75bSmrgcat >>conftest.$ac_ext <<_ACEOF
38581568b75bSmrg/* end confdefs.h.  */
38591568b75bSmrg#include <ac_nonexistent.h>
38601568b75bSmrg_ACEOF
38611568b75bSmrgif { (ac_try="$ac_cpp conftest.$ac_ext"
38621568b75bSmrgcase "(($ac_try" in
38631568b75bSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38641568b75bSmrg  *) ac_try_echo=$ac_try;;
38651568b75bSmrgesac
38661568b75bSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38671568b75bSmrg$as_echo "$ac_try_echo") >&5
38681568b75bSmrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38691568b75bSmrg  ac_status=$?
38701568b75bSmrg  grep -v '^ *+' conftest.er1 >conftest.err
38711568b75bSmrg  rm -f conftest.er1
38721568b75bSmrg  cat conftest.err >&5
38731568b75bSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38741568b75bSmrg  (exit $ac_status); } >/dev/null && {
38751568b75bSmrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38761568b75bSmrg	 test ! -s conftest.err
38771568b75bSmrg       }; then
38781568b75bSmrg  # Broken: success on invalid input.
38791568b75bSmrgcontinue
38801568b75bSmrgelse
38811568b75bSmrg  $as_echo "$as_me: failed program was:" >&5
38821568b75bSmrgsed 's/^/| /' conftest.$ac_ext >&5
38831568b75bSmrg
38841568b75bSmrg  # Passes both tests.
38851568b75bSmrgac_preproc_ok=:
38861568b75bSmrgbreak
38871568b75bSmrgfi
38881568b75bSmrg
38891568b75bSmrgrm -f conftest.err conftest.$ac_ext
38901568b75bSmrg
38911568b75bSmrgdone
38921568b75bSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
38931568b75bSmrgrm -f conftest.err conftest.$ac_ext
38941568b75bSmrgif $ac_preproc_ok; then
38951568b75bSmrg  :
38961568b75bSmrgelse
38971568b75bSmrg  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
38981568b75bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38991568b75bSmrg{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
39001568b75bSmrgSee \`config.log' for more details." >&5
39011568b75bSmrg$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
39021568b75bSmrgSee \`config.log' for more details." >&2;}
39031568b75bSmrg   { (exit 1); exit 1; }; }; }
39041568b75bSmrgfi
39051568b75bSmrg
39061568b75bSmrgac_ext=c
39071568b75bSmrgac_cpp='$CPP $CPPFLAGS'
39081568b75bSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39091568b75bSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39101568b75bSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
39111568b75bSmrg
39121568b75bSmrg
39131568b75bSmrg{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
39141568b75bSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
39151568b75bSmrgif test "${ac_cv_path_GREP+set}" = set; then
39161568b75bSmrg  $as_echo_n "(cached) " >&6
39171568b75bSmrgelse
39181568b75bSmrg  if test -z "$GREP"; then
39191568b75bSmrg  ac_path_GREP_found=false
39201568b75bSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
39211568b75bSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39221568b75bSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
39231568b75bSmrgdo
39241568b75bSmrg  IFS=$as_save_IFS
39251568b75bSmrg  test -z "$as_dir" && as_dir=.
39261568b75bSmrg  for ac_prog in grep ggrep; do
39271568b75bSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
39281568b75bSmrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
39291568b75bSmrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
39301568b75bSmrg# Check for GNU ac_path_GREP and select it if it is found.
39311568b75bSmrg  # Check for GNU $ac_path_GREP
39321568b75bSmrgcase `"$ac_path_GREP" --version 2>&1` in
39331568b75bSmrg*GNU*)
39341568b75bSmrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
39351568b75bSmrg*)
39361568b75bSmrg  ac_count=0
39371568b75bSmrg  $as_echo_n 0123456789 >"conftest.in"
39381568b75bSmrg  while :
39391568b75bSmrg  do
39401568b75bSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
39411568b75bSmrg    mv "conftest.tmp" "conftest.in"
39421568b75bSmrg    cp "conftest.in" "conftest.nl"
39431568b75bSmrg    $as_echo 'GREP' >> "conftest.nl"
39441568b75bSmrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
39451568b75bSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
39461568b75bSmrg    ac_count=`expr $ac_count + 1`
39471568b75bSmrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
39481568b75bSmrg      # Best one so far, save it but keep looking for a better one
39491568b75bSmrg      ac_cv_path_GREP="$ac_path_GREP"
39501568b75bSmrg      ac_path_GREP_max=$ac_count
39511568b75bSmrg    fi
39521568b75bSmrg    # 10*(2^10) chars as input seems more than enough
39531568b75bSmrg    test $ac_count -gt 10 && break
39541568b75bSmrg  done
39551568b75bSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
39561568b75bSmrgesac
39571568b75bSmrg
39581568b75bSmrg      $ac_path_GREP_found && break 3
39591568b75bSmrg    done
39601568b75bSmrg  done
39611568b75bSmrgdone
39621568b75bSmrgIFS=$as_save_IFS
39631568b75bSmrg  if test -z "$ac_cv_path_GREP"; then
39641568b75bSmrg    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
39651568b75bSmrg$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
39661568b75bSmrg   { (exit 1); exit 1; }; }
39671568b75bSmrg  fi
39681568b75bSmrgelse
39691568b75bSmrg  ac_cv_path_GREP=$GREP
39701568b75bSmrgfi
39711568b75bSmrg
39721568b75bSmrgfi
39731568b75bSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
39741568b75bSmrg$as_echo "$ac_cv_path_GREP" >&6; }
39751568b75bSmrg GREP="$ac_cv_path_GREP"
39761568b75bSmrg
39771568b75bSmrg
39781568b75bSmrg{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
39791568b75bSmrg$as_echo_n "checking for egrep... " >&6; }
39801568b75bSmrgif test "${ac_cv_path_EGREP+set}" = set; then
39811568b75bSmrg  $as_echo_n "(cached) " >&6
39821568b75bSmrgelse
39831568b75bSmrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
39841568b75bSmrg   then ac_cv_path_EGREP="$GREP -E"
39851568b75bSmrg   else
39861568b75bSmrg     if test -z "$EGREP"; then
39871568b75bSmrg  ac_path_EGREP_found=false
39881568b75bSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
39891568b75bSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39901568b75bSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
39911568b75bSmrgdo
39921568b75bSmrg  IFS=$as_save_IFS
39931568b75bSmrg  test -z "$as_dir" && as_dir=.
39941568b75bSmrg  for ac_prog in egrep; do
39951568b75bSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
39961568b75bSmrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
39971568b75bSmrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
39981568b75bSmrg# Check for GNU ac_path_EGREP and select it if it is found.
39991568b75bSmrg  # Check for GNU $ac_path_EGREP
40001568b75bSmrgcase `"$ac_path_EGREP" --version 2>&1` in
40011568b75bSmrg*GNU*)
40021568b75bSmrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
40031568b75bSmrg*)
40041568b75bSmrg  ac_count=0
40051568b75bSmrg  $as_echo_n 0123456789 >"conftest.in"
40061568b75bSmrg  while :
40071568b75bSmrg  do
40081568b75bSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
40091568b75bSmrg    mv "conftest.tmp" "conftest.in"
40101568b75bSmrg    cp "conftest.in" "conftest.nl"
40111568b75bSmrg    $as_echo 'EGREP' >> "conftest.nl"
40121568b75bSmrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
40131568b75bSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
40141568b75bSmrg    ac_count=`expr $ac_count + 1`
40151568b75bSmrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
40161568b75bSmrg      # Best one so far, save it but keep looking for a better one
40171568b75bSmrg      ac_cv_path_EGREP="$ac_path_EGREP"
40181568b75bSmrg      ac_path_EGREP_max=$ac_count
40191568b75bSmrg    fi
40201568b75bSmrg    # 10*(2^10) chars as input seems more than enough
40211568b75bSmrg    test $ac_count -gt 10 && break
40221568b75bSmrg  done
40231568b75bSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
40241568b75bSmrgesac
40251568b75bSmrg
40261568b75bSmrg      $ac_path_EGREP_found && break 3
40271568b75bSmrg    done
40281568b75bSmrg  done
40291568b75bSmrgdone
40301568b75bSmrgIFS=$as_save_IFS
40311568b75bSmrg  if test -z "$ac_cv_path_EGREP"; then
40321568b75bSmrg    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
40331568b75bSmrg$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
40341568b75bSmrg   { (exit 1); exit 1; }; }
40351568b75bSmrg  fi
40361568b75bSmrgelse
40371568b75bSmrg  ac_cv_path_EGREP=$EGREP
40381568b75bSmrgfi
40391568b75bSmrg
40401568b75bSmrg   fi
40411568b75bSmrgfi
40421568b75bSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
40431568b75bSmrg$as_echo "$ac_cv_path_EGREP" >&6; }
40441568b75bSmrg EGREP="$ac_cv_path_EGREP"
40451568b75bSmrg
40461568b75bSmrg
40471568b75bSmrg{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
40481568b75bSmrg$as_echo_n "checking for ANSI C header files... " >&6; }
40491568b75bSmrgif test "${ac_cv_header_stdc+set}" = set; then
40501568b75bSmrg  $as_echo_n "(cached) " >&6
40511568b75bSmrgelse
40521568b75bSmrg  cat >conftest.$ac_ext <<_ACEOF
40531568b75bSmrg/* confdefs.h.  */
40541568b75bSmrg_ACEOF
40551568b75bSmrgcat confdefs.h >>conftest.$ac_ext
40561568b75bSmrgcat >>conftest.$ac_ext <<_ACEOF
40571568b75bSmrg/* end confdefs.h.  */
40581568b75bSmrg#include <stdlib.h>
40591568b75bSmrg#include <stdarg.h>
40601568b75bSmrg#include <string.h>
40611568b75bSmrg#include <float.h>
40621568b75bSmrg
40631568b75bSmrgint
40641568b75bSmrgmain ()
40651568b75bSmrg{
40661568b75bSmrg
40671568b75bSmrg  ;
40681568b75bSmrg  return 0;
40691568b75bSmrg}
40701568b75bSmrg_ACEOF
40711568b75bSmrgrm -f conftest.$ac_objext
40721568b75bSmrgif { (ac_try="$ac_compile"
40731568b75bSmrgcase "(($ac_try" in
40741568b75bSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40751568b75bSmrg  *) ac_try_echo=$ac_try;;
40761568b75bSmrgesac
40771568b75bSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40781568b75bSmrg$as_echo "$ac_try_echo") >&5
40791568b75bSmrg  (eval "$ac_compile") 2>conftest.er1
40801568b75bSmrg  ac_status=$?
40811568b75bSmrg  grep -v '^ *+' conftest.er1 >conftest.err
40821568b75bSmrg  rm -f conftest.er1
40831568b75bSmrg  cat conftest.err >&5
40841568b75bSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40851568b75bSmrg  (exit $ac_status); } && {
40861568b75bSmrg	 test -z "$ac_c_werror_flag" ||
40871568b75bSmrg	 test ! -s conftest.err
40881568b75bSmrg       } && test -s conftest.$ac_objext; then
40891568b75bSmrg  ac_cv_header_stdc=yes
40901568b75bSmrgelse
40911568b75bSmrg  $as_echo "$as_me: failed program was:" >&5
40921568b75bSmrgsed 's/^/| /' conftest.$ac_ext >&5
40931568b75bSmrg
40941568b75bSmrg	ac_cv_header_stdc=no
40951568b75bSmrgfi
40961568b75bSmrg
40971568b75bSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40981568b75bSmrg
40991568b75bSmrgif test $ac_cv_header_stdc = yes; then
41001568b75bSmrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
41011568b75bSmrg  cat >conftest.$ac_ext <<_ACEOF
41021568b75bSmrg/* confdefs.h.  */
41031568b75bSmrg_ACEOF
41041568b75bSmrgcat confdefs.h >>conftest.$ac_ext
41051568b75bSmrgcat >>conftest.$ac_ext <<_ACEOF
41061568b75bSmrg/* end confdefs.h.  */
41071568b75bSmrg#include <string.h>
41081568b75bSmrg
41091568b75bSmrg_ACEOF
41101568b75bSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41111568b75bSmrg  $EGREP "memchr" >/dev/null 2>&1; then
41121568b75bSmrg  :
41131568b75bSmrgelse
41141568b75bSmrg  ac_cv_header_stdc=no
41151568b75bSmrgfi
41161568b75bSmrgrm -f conftest*
41171568b75bSmrg
41181568b75bSmrgfi
41191568b75bSmrg
41201568b75bSmrgif test $ac_cv_header_stdc = yes; then
41211568b75bSmrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
41221568b75bSmrg  cat >conftest.$ac_ext <<_ACEOF
41231568b75bSmrg/* confdefs.h.  */
41241568b75bSmrg_ACEOF
41251568b75bSmrgcat confdefs.h >>conftest.$ac_ext
41261568b75bSmrgcat >>conftest.$ac_ext <<_ACEOF
41271568b75bSmrg/* end confdefs.h.  */
41281568b75bSmrg#include <stdlib.h>
41291568b75bSmrg
41301568b75bSmrg_ACEOF
41311568b75bSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41321568b75bSmrg  $EGREP "free" >/dev/null 2>&1; then
41331568b75bSmrg  :
41341568b75bSmrgelse
41351568b75bSmrg  ac_cv_header_stdc=no
41361568b75bSmrgfi
41371568b75bSmrgrm -f conftest*
41381568b75bSmrg
41391568b75bSmrgfi
41401568b75bSmrg
41411568b75bSmrgif test $ac_cv_header_stdc = yes; then
41421568b75bSmrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
41431568b75bSmrg  if test "$cross_compiling" = yes; then
41441568b75bSmrg  :
41451568b75bSmrgelse
41461568b75bSmrg  cat >conftest.$ac_ext <<_ACEOF
41471568b75bSmrg/* confdefs.h.  */
41481568b75bSmrg_ACEOF
41491568b75bSmrgcat confdefs.h >>conftest.$ac_ext
41501568b75bSmrgcat >>conftest.$ac_ext <<_ACEOF
41511568b75bSmrg/* end confdefs.h.  */
41521568b75bSmrg#include <ctype.h>
41531568b75bSmrg#include <stdlib.h>
41541568b75bSmrg#if ((' ' & 0x0FF) == 0x020)
41551568b75bSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
41561568b75bSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
41571568b75bSmrg#else
41581568b75bSmrg# define ISLOWER(c) \
41591568b75bSmrg		   (('a' <= (c) && (c) <= 'i') \
41601568b75bSmrg		     || ('j' <= (c) && (c) <= 'r') \
41611568b75bSmrg		     || ('s' <= (c) && (c) <= 'z'))
41621568b75bSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
41631568b75bSmrg#endif
41641568b75bSmrg
41651568b75bSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
41661568b75bSmrgint
41671568b75bSmrgmain ()
41681568b75bSmrg{
41691568b75bSmrg  int i;
41701568b75bSmrg  for (i = 0; i < 256; i++)
41711568b75bSmrg    if (XOR (islower (i), ISLOWER (i))
41721568b75bSmrg	|| toupper (i) != TOUPPER (i))
41731568b75bSmrg      return 2;
41741568b75bSmrg  return 0;
41751568b75bSmrg}
41761568b75bSmrg_ACEOF
41771568b75bSmrgrm -f conftest$ac_exeext
41781568b75bSmrgif { (ac_try="$ac_link"
41791568b75bSmrgcase "(($ac_try" in
41801568b75bSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41811568b75bSmrg  *) ac_try_echo=$ac_try;;
41821568b75bSmrgesac
41831568b75bSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41841568b75bSmrg$as_echo "$ac_try_echo") >&5
41851568b75bSmrg  (eval "$ac_link") 2>&5
41861568b75bSmrg  ac_status=$?
41871568b75bSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41881568b75bSmrg  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41891568b75bSmrg  { (case "(($ac_try" in
41901568b75bSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41911568b75bSmrg  *) ac_try_echo=$ac_try;;
41921568b75bSmrgesac
41931568b75bSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41941568b75bSmrg$as_echo "$ac_try_echo") >&5
41951568b75bSmrg  (eval "$ac_try") 2>&5
41961568b75bSmrg  ac_status=$?
41971568b75bSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41981568b75bSmrg  (exit $ac_status); }; }; then
41991568b75bSmrg  :
42001568b75bSmrgelse
42011568b75bSmrg  $as_echo "$as_me: program exited with status $ac_status" >&5
42021568b75bSmrg$as_echo "$as_me: failed program was:" >&5
42031568b75bSmrgsed 's/^/| /' conftest.$ac_ext >&5
42041568b75bSmrg
42051568b75bSmrg( exit $ac_status )
42061568b75bSmrgac_cv_header_stdc=no
42071568b75bSmrgfi
42081568b75bSmrgrm -rf conftest.dSYM
42091568b75bSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42101568b75bSmrgfi
42111568b75bSmrg
42121568b75bSmrg
42131568b75bSmrgfi
42141568b75bSmrgfi
42151568b75bSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
42161568b75bSmrg$as_echo "$ac_cv_header_stdc" >&6; }
42171568b75bSmrgif test $ac_cv_header_stdc = yes; then
42181568b75bSmrg
42191568b75bSmrgcat >>confdefs.h <<\_ACEOF
42201568b75bSmrg#define STDC_HEADERS 1
42211568b75bSmrg_ACEOF
42221568b75bSmrg
42231568b75bSmrgfi
42241568b75bSmrg
42251568b75bSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
42261568b75bSmrg
42271568b75bSmrg
42281568b75bSmrg
42291568b75bSmrg
42301568b75bSmrg
42311568b75bSmrg
42321568b75bSmrg
42331568b75bSmrg
42341568b75bSmrg
42351568b75bSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
42361568b75bSmrg		  inttypes.h stdint.h unistd.h
42371568b75bSmrgdo
42381568b75bSmrgas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
42391568b75bSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42401568b75bSmrg$as_echo_n "checking for $ac_header... " >&6; }
42411568b75bSmrgif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42421568b75bSmrg  $as_echo_n "(cached) " >&6
42431568b75bSmrgelse
42441568b75bSmrg  cat >conftest.$ac_ext <<_ACEOF
42451568b75bSmrg/* confdefs.h.  */
42461568b75bSmrg_ACEOF
42471568b75bSmrgcat confdefs.h >>conftest.$ac_ext
42481568b75bSmrgcat >>conftest.$ac_ext <<_ACEOF
42491568b75bSmrg/* end confdefs.h.  */
42501568b75bSmrg$ac_includes_default
42511568b75bSmrg
42521568b75bSmrg#include <$ac_header>
42531568b75bSmrg_ACEOF
42541568b75bSmrgrm -f conftest.$ac_objext
42551568b75bSmrgif { (ac_try="$ac_compile"
42561568b75bSmrgcase "(($ac_try" in
42571568b75bSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42581568b75bSmrg  *) ac_try_echo=$ac_try;;
42591568b75bSmrgesac
42601568b75bSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42611568b75bSmrg$as_echo "$ac_try_echo") >&5
42621568b75bSmrg  (eval "$ac_compile") 2>conftest.er1
42631568b75bSmrg  ac_status=$?
42641568b75bSmrg  grep -v '^ *+' conftest.er1 >conftest.err
42651568b75bSmrg  rm -f conftest.er1
42661568b75bSmrg  cat conftest.err >&5
42671568b75bSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42681568b75bSmrg  (exit $ac_status); } && {
42691568b75bSmrg	 test -z "$ac_c_werror_flag" ||
42701568b75bSmrg	 test ! -s conftest.err
42711568b75bSmrg       } && test -s conftest.$ac_objext; then
42721568b75bSmrg  eval "$as_ac_Header=yes"
42731568b75bSmrgelse
42741568b75bSmrg  $as_echo "$as_me: failed program was:" >&5
42751568b75bSmrgsed 's/^/| /' conftest.$ac_ext >&5
42761568b75bSmrg
42771568b75bSmrg	eval "$as_ac_Header=no"
42781568b75bSmrgfi
42791568b75bSmrg
42801568b75bSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42811568b75bSmrgfi
42821568b75bSmrgac_res=`eval 'as_val=${'$as_ac_Header'}
42831568b75bSmrg		 $as_echo "$as_val"'`
42841568b75bSmrg	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42851568b75bSmrg$as_echo "$ac_res" >&6; }
42861568b75bSmrgas_val=`eval 'as_val=${'$as_ac_Header'}
42871568b75bSmrg		 $as_echo "$as_val"'`
42881568b75bSmrg   if test "x$as_val" = x""yes; then
42891568b75bSmrg  cat >>confdefs.h <<_ACEOF
42901568b75bSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42911568b75bSmrg_ACEOF
42921568b75bSmrg
42931568b75bSmrgfi
42947d5e3a19Smrg
42951568b75bSmrgdone
42967d5e3a19Smrg
42977d5e3a19Smrg
42981568b75bSmrg
42991568b75bSmrg
43001568b75bSmrgif  test "x$GCC" = xyes ; then
43011568b75bSmrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
43021568b75bSmrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
43031568b75bSmrg-Wbad-function-cast"
43041568b75bSmrg    case `gcc -dumpversion` in
43051568b75bSmrg    3.4.* | 4.*)
43061568b75bSmrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
43071568b75bSmrg	;;
43081568b75bSmrg    esac
43097d5e3a19Smrgelse
43101568b75bSmrg    { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
43111568b75bSmrg$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
43121568b75bSmrgif test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
43131568b75bSmrg  $as_echo_n "(cached) " >&6
43141568b75bSmrgelse
43151568b75bSmrg  cat >conftest.$ac_ext <<_ACEOF
43161568b75bSmrg/* confdefs.h.  */
43171568b75bSmrg_ACEOF
43181568b75bSmrgcat confdefs.h >>conftest.$ac_ext
43191568b75bSmrgcat >>conftest.$ac_ext <<_ACEOF
43201568b75bSmrg/* end confdefs.h.  */
43211568b75bSmrg$ac_includes_default
43221568b75bSmrgint
43231568b75bSmrgmain ()
43241568b75bSmrg{
43251568b75bSmrg#ifndef __SUNPRO_C
43261568b75bSmrg  (void) __SUNPRO_C;
43271568b75bSmrg#endif
43281568b75bSmrg
43291568b75bSmrg  ;
43301568b75bSmrg  return 0;
43311568b75bSmrg}
43321568b75bSmrg_ACEOF
43331568b75bSmrgrm -f conftest.$ac_objext
43341568b75bSmrgif { (ac_try="$ac_compile"
43351568b75bSmrgcase "(($ac_try" in
43361568b75bSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43371568b75bSmrg  *) ac_try_echo=$ac_try;;
43387d5e3a19Smrgesac
43391568b75bSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43401568b75bSmrg$as_echo "$ac_try_echo") >&5
43411568b75bSmrg  (eval "$ac_compile") 2>conftest.er1
43421568b75bSmrg  ac_status=$?
43431568b75bSmrg  grep -v '^ *+' conftest.er1 >conftest.err
43441568b75bSmrg  rm -f conftest.er1
43451568b75bSmrg  cat conftest.err >&5
43461568b75bSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43471568b75bSmrg  (exit $ac_status); } && {
43481568b75bSmrg	 test -z "$ac_c_werror_flag" ||
43491568b75bSmrg	 test ! -s conftest.err
43501568b75bSmrg       } && test -s conftest.$ac_objext; then
43511568b75bSmrg  ac_cv_have_decl___SUNPRO_C=yes
43521568b75bSmrgelse
43531568b75bSmrg  $as_echo "$as_me: failed program was:" >&5
43541568b75bSmrgsed 's/^/| /' conftest.$ac_ext >&5
43557d5e3a19Smrg
43561568b75bSmrg	ac_cv_have_decl___SUNPRO_C=no
43571568b75bSmrgfi
43587d5e3a19Smrg
43591568b75bSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43607d5e3a19Smrgfi
43611568b75bSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
43621568b75bSmrg$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
43631568b75bSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
43641568b75bSmrg  SUNCC="yes"
43651568b75bSmrgelse
43661568b75bSmrg  SUNCC="no"
43677d5e3a19Smrgfi
43687d5e3a19Smrg
43691568b75bSmrg    if test "x$SUNCC" = "xyes"; then
43701568b75bSmrg	CWARNFLAGS="-v"
43711568b75bSmrg    fi
43721568b75bSmrgfi
43737d5e3a19Smrg
43747d5e3a19Smrg
43757d5e3a19Smrg
43767d5e3a19Smrg
43777d5e3a19Smrg# Check whether --with-xkb-config-root was given.
43787d5e3a19Smrgif test "${with_xkb_config_root+set}" = set; then
43797d5e3a19Smrg  withval=$with_xkb_config_root; XKBCONFIGROOT="$withval"
43807d5e3a19Smrgelse
43817d5e3a19Smrg  XKBCONFIGROOT=${datadir}/X11/xkb
43827d5e3a19Smrgfi
43837d5e3a19Smrg
43847d5e3a19Smrg
43857d5e3a19Smrg
43867d5e3a19Smrg# Checks for pkg-config packages
43877d5e3a19Smrg
43887d5e3a19Smrg
43897d5e3a19Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
43907d5e3a19Smrg	if test -n "$ac_tool_prefix"; then
43917d5e3a19Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
43927d5e3a19Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
43931568b75bSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43941568b75bSmrg$as_echo_n "checking for $ac_word... " >&6; }
43957d5e3a19Smrgif test "${ac_cv_path_PKG_CONFIG+set}" = set; then
43961568b75bSmrg  $as_echo_n "(cached) " >&6
43977d5e3a19Smrgelse
43987d5e3a19Smrg  case $PKG_CONFIG in
43997d5e3a19Smrg  [\\/]* | ?:[\\/]*)
44007d5e3a19Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44017d5e3a19Smrg  ;;
44027d5e3a19Smrg  *)
44037d5e3a19Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44047d5e3a19Smrgfor as_dir in $PATH
44057d5e3a19Smrgdo
44067d5e3a19Smrg  IFS=$as_save_IFS
44077d5e3a19Smrg  test -z "$as_dir" && as_dir=.
44087d5e3a19Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
44097d5e3a19Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44107d5e3a19Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44111568b75bSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44127d5e3a19Smrg    break 2
44137d5e3a19Smrg  fi
44147d5e3a19Smrgdone
44157d5e3a19Smrgdone
44167d5e3a19SmrgIFS=$as_save_IFS
44177d5e3a19Smrg
44187d5e3a19Smrg  ;;
44197d5e3a19Smrgesac
44207d5e3a19Smrgfi
44217d5e3a19SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
44227d5e3a19Smrgif test -n "$PKG_CONFIG"; then
44231568b75bSmrg  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44241568b75bSmrg$as_echo "$PKG_CONFIG" >&6; }
44257d5e3a19Smrgelse
44261568b75bSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
44271568b75bSmrg$as_echo "no" >&6; }
44287d5e3a19Smrgfi
44297d5e3a19Smrg
44307d5e3a19Smrg
44317d5e3a19Smrgfi
44327d5e3a19Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
44337d5e3a19Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
44347d5e3a19Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
44357d5e3a19Smrgset dummy pkg-config; ac_word=$2
44361568b75bSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44371568b75bSmrg$as_echo_n "checking for $ac_word... " >&6; }
44387d5e3a19Smrgif test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
44391568b75bSmrg  $as_echo_n "(cached) " >&6
44407d5e3a19Smrgelse
44417d5e3a19Smrg  case $ac_pt_PKG_CONFIG in
44427d5e3a19Smrg  [\\/]* | ?:[\\/]*)
44437d5e3a19Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
44447d5e3a19Smrg  ;;
44457d5e3a19Smrg  *)
44467d5e3a19Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44477d5e3a19Smrgfor as_dir in $PATH
44487d5e3a19Smrgdo
44497d5e3a19Smrg  IFS=$as_save_IFS
44507d5e3a19Smrg  test -z "$as_dir" && as_dir=.
44517d5e3a19Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
44527d5e3a19Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44537d5e3a19Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44541568b75bSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44557d5e3a19Smrg    break 2
44567d5e3a19Smrg  fi
44577d5e3a19Smrgdone
44587d5e3a19Smrgdone
44597d5e3a19SmrgIFS=$as_save_IFS
44607d5e3a19Smrg
44617d5e3a19Smrg  ;;
44627d5e3a19Smrgesac
44637d5e3a19Smrgfi
44647d5e3a19Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
44657d5e3a19Smrgif test -n "$ac_pt_PKG_CONFIG"; then
44661568b75bSmrg  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
44671568b75bSmrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
44687d5e3a19Smrgelse
44691568b75bSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
44701568b75bSmrg$as_echo "no" >&6; }
44717d5e3a19Smrgfi
44727d5e3a19Smrg
44737d5e3a19Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
44747d5e3a19Smrg    PKG_CONFIG=""
44757d5e3a19Smrg  else
44767d5e3a19Smrg    case $cross_compiling:$ac_tool_warned in
44777d5e3a19Smrgyes:)
44781568b75bSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
44791568b75bSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
44807d5e3a19Smrgac_tool_warned=yes ;;
44817d5e3a19Smrgesac
44827d5e3a19Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
44837d5e3a19Smrg  fi
44847d5e3a19Smrgelse
44857d5e3a19Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
44867d5e3a19Smrgfi
44877d5e3a19Smrg
44887d5e3a19Smrgfi
44897d5e3a19Smrgif test -n "$PKG_CONFIG"; then
44907d5e3a19Smrg	_pkg_min_version=0.9.0
44911568b75bSmrg	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
44921568b75bSmrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
44937d5e3a19Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
44941568b75bSmrg		{ $as_echo "$as_me:$LINENO: result: yes" >&5
44951568b75bSmrg$as_echo "yes" >&6; }
44967d5e3a19Smrg	else
44971568b75bSmrg		{ $as_echo "$as_me:$LINENO: result: no" >&5
44981568b75bSmrg$as_echo "no" >&6; }
44997d5e3a19Smrg		PKG_CONFIG=""
45007d5e3a19Smrg	fi
45017d5e3a19Smrg
45027d5e3a19Smrgfi
45037d5e3a19Smrg
45047d5e3a19Smrgpkg_failed=no
45051568b75bSmrg{ $as_echo "$as_me:$LINENO: checking for SETXKBMAP" >&5
45061568b75bSmrg$as_echo_n "checking for SETXKBMAP... " >&6; }
45071568b75bSmrg
45081568b75bSmrgif test -n "$SETXKBMAP_CFLAGS"; then
45091568b75bSmrg    pkg_cv_SETXKBMAP_CFLAGS="$SETXKBMAP_CFLAGS"
45101568b75bSmrg elif test -n "$PKG_CONFIG"; then
45111568b75bSmrg    if test -n "$PKG_CONFIG" && \
45121568b75bSmrg    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xkbfile x11\"") >&5
45137d5e3a19Smrg  ($PKG_CONFIG --exists --print-errors "xkbfile x11") 2>&5
45147d5e3a19Smrg  ac_status=$?
45151568b75bSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45167d5e3a19Smrg  (exit $ac_status); }; then
45177d5e3a19Smrg  pkg_cv_SETXKBMAP_CFLAGS=`$PKG_CONFIG --cflags "xkbfile x11" 2>/dev/null`
45187d5e3a19Smrgelse
45197d5e3a19Smrg  pkg_failed=yes
45207d5e3a19Smrgfi
45211568b75bSmrg else
45221568b75bSmrg    pkg_failed=untried
45237d5e3a19Smrgfi
45241568b75bSmrgif test -n "$SETXKBMAP_LIBS"; then
45251568b75bSmrg    pkg_cv_SETXKBMAP_LIBS="$SETXKBMAP_LIBS"
45261568b75bSmrg elif test -n "$PKG_CONFIG"; then
45271568b75bSmrg    if test -n "$PKG_CONFIG" && \
45281568b75bSmrg    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xkbfile x11\"") >&5
45297d5e3a19Smrg  ($PKG_CONFIG --exists --print-errors "xkbfile x11") 2>&5
45307d5e3a19Smrg  ac_status=$?
45311568b75bSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45327d5e3a19Smrg  (exit $ac_status); }; then
45337d5e3a19Smrg  pkg_cv_SETXKBMAP_LIBS=`$PKG_CONFIG --libs "xkbfile x11" 2>/dev/null`
45347d5e3a19Smrgelse
45357d5e3a19Smrg  pkg_failed=yes
45367d5e3a19Smrgfi
45371568b75bSmrg else
45381568b75bSmrg    pkg_failed=untried
45397d5e3a19Smrgfi
45407d5e3a19Smrg
45411568b75bSmrg
45421568b75bSmrg
45437d5e3a19Smrgif test $pkg_failed = yes; then
45441568b75bSmrg
45451568b75bSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45461568b75bSmrg        _pkg_short_errors_supported=yes
45471568b75bSmrgelse
45481568b75bSmrg        _pkg_short_errors_supported=no
45491568b75bSmrgfi
45501568b75bSmrg        if test $_pkg_short_errors_supported = yes; then
45511568b75bSmrg	        SETXKBMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xkbfile x11" 2>&1`
45521568b75bSmrg        else
45531568b75bSmrg	        SETXKBMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors "xkbfile x11" 2>&1`
45541568b75bSmrg        fi
45557d5e3a19Smrg	# Put the nasty error message in config.log where it belongs
45561568b75bSmrg	echo "$SETXKBMAP_PKG_ERRORS" >&5
45571568b75bSmrg
45581568b75bSmrg	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xkbfile x11) were not met:
45591568b75bSmrg
45601568b75bSmrg$SETXKBMAP_PKG_ERRORS
45617d5e3a19Smrg
45627d5e3a19SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
45637d5e3a19Smrginstalled software in a non-standard prefix.
45647d5e3a19Smrg
45651568b75bSmrgAlternatively, you may set the environment variables SETXKBMAP_CFLAGS
45661568b75bSmrgand SETXKBMAP_LIBS to avoid the need to call pkg-config.
45671568b75bSmrgSee the pkg-config man page for more details.
45681568b75bSmrg" >&5
45691568b75bSmrg$as_echo "$as_me: error: Package requirements (xkbfile x11) were not met:
45701568b75bSmrg
45711568b75bSmrg$SETXKBMAP_PKG_ERRORS
45721568b75bSmrg
45737d5e3a19SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
45747d5e3a19Smrginstalled software in a non-standard prefix.
45757d5e3a19Smrg
45761568b75bSmrgAlternatively, you may set the environment variables SETXKBMAP_CFLAGS
45771568b75bSmrgand SETXKBMAP_LIBS to avoid the need to call pkg-config.
45781568b75bSmrgSee the pkg-config man page for more details.
45791568b75bSmrg" >&2;}
45807d5e3a19Smrg   { (exit 1); exit 1; }; }
45817d5e3a19Smrgelif test $pkg_failed = untried; then
45821568b75bSmrg	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
45831568b75bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
45841568b75bSmrg{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
45857d5e3a19Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
45867d5e3a19Smrgpath to pkg-config.
45877d5e3a19Smrg
45881568b75bSmrgAlternatively, you may set the environment variables SETXKBMAP_CFLAGS
45891568b75bSmrgand SETXKBMAP_LIBS to avoid the need to call pkg-config.
45901568b75bSmrgSee the pkg-config man page for more details.
45917d5e3a19Smrg
45921568b75bSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
45937d5e3a19SmrgSee \`config.log' for more details." >&5
45941568b75bSmrg$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
45957d5e3a19Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
45967d5e3a19Smrgpath to pkg-config.
45977d5e3a19Smrg
45981568b75bSmrgAlternatively, you may set the environment variables SETXKBMAP_CFLAGS
45991568b75bSmrgand SETXKBMAP_LIBS to avoid the need to call pkg-config.
46001568b75bSmrgSee the pkg-config man page for more details.
46017d5e3a19Smrg
46021568b75bSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
46037d5e3a19SmrgSee \`config.log' for more details." >&2;}
46041568b75bSmrg   { (exit 1); exit 1; }; }; }
46057d5e3a19Smrgelse
46067d5e3a19Smrg	SETXKBMAP_CFLAGS=$pkg_cv_SETXKBMAP_CFLAGS
46077d5e3a19Smrg	SETXKBMAP_LIBS=$pkg_cv_SETXKBMAP_LIBS
46081568b75bSmrg        { $as_echo "$as_me:$LINENO: result: yes" >&5
46091568b75bSmrg$as_echo "yes" >&6; }
46107d5e3a19Smrg	:
46117d5e3a19Smrgfi
46121568b75bSmrgSETXKBMAP_CFLAGS="$CWARNFLAGS $SETXKBMAP_CFLAGS"
46137d5e3a19Smrg
46147d5e3a19Smrg
46157d5e3a19Smrg
46167d5e3a19Smrg# Allow checking code with lint, sparse, etc.
46177d5e3a19Smrg
46187d5e3a19Smrg
46197d5e3a19Smrg# Allow checking code with lint, sparse, etc.
46207d5e3a19Smrg
46217d5e3a19Smrg# Check whether --with-lint was given.
46227d5e3a19Smrgif test "${with_lint+set}" = set; then
46237d5e3a19Smrg  withval=$with_lint; use_lint=$withval
46247d5e3a19Smrgelse
46257d5e3a19Smrg  use_lint=no
46267d5e3a19Smrgfi
46277d5e3a19Smrg
46287d5e3a19Smrgif test "x$use_lint" = "xyes" ; then
46297d5e3a19Smrg	LINT="lint"
46307d5e3a19Smrgelse
46317d5e3a19Smrg	LINT="$use_lint"
46327d5e3a19Smrgfi
46337d5e3a19Smrgif test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then
46347d5e3a19Smrg    case $LINT in
46357d5e3a19Smrg	lint|*/lint)
46367d5e3a19Smrg	    case $host_os in
46377d5e3a19Smrg		solaris*)
46387d5e3a19Smrg			LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
46397d5e3a19Smrg			;;
46407d5e3a19Smrg	    esac
46417d5e3a19Smrg	    ;;
46427d5e3a19Smrg    esac
46437d5e3a19Smrgfi
46447d5e3a19Smrg
46457d5e3a19Smrg
46467d5e3a19Smrg
46477d5e3a19Smrg if test x$LINT != xno; then
46487d5e3a19Smrg  LINT_TRUE=
46497d5e3a19Smrg  LINT_FALSE='#'
46507d5e3a19Smrgelse
46517d5e3a19Smrg  LINT_TRUE='#'
46527d5e3a19Smrg  LINT_FALSE=
46537d5e3a19Smrgfi
46547d5e3a19Smrg
46557d5e3a19Smrg
46567d5e3a19Smrg
46577d5e3a19Smrg
46587d5e3a19Smrg# Make sure we can run config.sub.
46597d5e3a19Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
46601568b75bSmrg  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
46611568b75bSmrg$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
46627d5e3a19Smrg   { (exit 1); exit 1; }; }
46637d5e3a19Smrg
46641568b75bSmrg{ $as_echo "$as_me:$LINENO: checking build system type" >&5
46651568b75bSmrg$as_echo_n "checking build system type... " >&6; }
46667d5e3a19Smrgif test "${ac_cv_build+set}" = set; then
46671568b75bSmrg  $as_echo_n "(cached) " >&6
46687d5e3a19Smrgelse
46697d5e3a19Smrg  ac_build_alias=$build_alias
46707d5e3a19Smrgtest "x$ac_build_alias" = x &&
46717d5e3a19Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
46727d5e3a19Smrgtest "x$ac_build_alias" = x &&
46731568b75bSmrg  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
46741568b75bSmrg$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
46757d5e3a19Smrg   { (exit 1); exit 1; }; }
46767d5e3a19Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
46771568b75bSmrg  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
46781568b75bSmrg$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
46797d5e3a19Smrg   { (exit 1); exit 1; }; }
46807d5e3a19Smrg
46817d5e3a19Smrgfi
46821568b75bSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
46831568b75bSmrg$as_echo "$ac_cv_build" >&6; }
46847d5e3a19Smrgcase $ac_cv_build in
46857d5e3a19Smrg*-*-*) ;;
46861568b75bSmrg*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
46871568b75bSmrg$as_echo "$as_me: error: invalid value of canonical build" >&2;}
46887d5e3a19Smrg   { (exit 1); exit 1; }; };;
46897d5e3a19Smrgesac
46907d5e3a19Smrgbuild=$ac_cv_build
46917d5e3a19Smrgac_save_IFS=$IFS; IFS='-'
46927d5e3a19Smrgset x $ac_cv_build
46937d5e3a19Smrgshift
46947d5e3a19Smrgbuild_cpu=$1
46957d5e3a19Smrgbuild_vendor=$2
46967d5e3a19Smrgshift; shift
46977d5e3a19Smrg# Remember, the first character of IFS is used to create $*,
46987d5e3a19Smrg# except with old shells:
46997d5e3a19Smrgbuild_os=$*
47007d5e3a19SmrgIFS=$ac_save_IFS
47017d5e3a19Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
47027d5e3a19Smrg
47037d5e3a19Smrg
47041568b75bSmrg{ $as_echo "$as_me:$LINENO: checking host system type" >&5
47051568b75bSmrg$as_echo_n "checking host system type... " >&6; }
47067d5e3a19Smrgif test "${ac_cv_host+set}" = set; then
47071568b75bSmrg  $as_echo_n "(cached) " >&6
47087d5e3a19Smrgelse
47097d5e3a19Smrg  if test "x$host_alias" = x; then
47107d5e3a19Smrg  ac_cv_host=$ac_cv_build
47117d5e3a19Smrgelse
47127d5e3a19Smrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
47131568b75bSmrg    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
47141568b75bSmrg$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
47157d5e3a19Smrg   { (exit 1); exit 1; }; }
47167d5e3a19Smrgfi
47177d5e3a19Smrg
47187d5e3a19Smrgfi
47191568b75bSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
47201568b75bSmrg$as_echo "$ac_cv_host" >&6; }
47217d5e3a19Smrgcase $ac_cv_host in
47227d5e3a19Smrg*-*-*) ;;
47231568b75bSmrg*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
47241568b75bSmrg$as_echo "$as_me: error: invalid value of canonical host" >&2;}
47257d5e3a19Smrg   { (exit 1); exit 1; }; };;
47267d5e3a19Smrgesac
47277d5e3a19Smrghost=$ac_cv_host
47287d5e3a19Smrgac_save_IFS=$IFS; IFS='-'
47297d5e3a19Smrgset x $ac_cv_host
47307d5e3a19Smrgshift
47317d5e3a19Smrghost_cpu=$1
47327d5e3a19Smrghost_vendor=$2
47337d5e3a19Smrgshift; shift
47347d5e3a19Smrg# Remember, the first character of IFS is used to create $*,
47357d5e3a19Smrg# except with old shells:
47367d5e3a19Smrghost_os=$*
47377d5e3a19SmrgIFS=$ac_save_IFS
47387d5e3a19Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
47397d5e3a19Smrg
47407d5e3a19Smrg
47417d5e3a19Smrg
47427d5e3a19Smrg
47437d5e3a19Smrg
47447d5e3a19Smrgif test x$APP_MAN_SUFFIX = x    ; then
47457d5e3a19Smrg    APP_MAN_SUFFIX=1
47467d5e3a19Smrgfi
47477d5e3a19Smrgif test x$APP_MAN_DIR = x    ; then
47487d5e3a19Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
47497d5e3a19Smrgfi
47507d5e3a19Smrg
47517d5e3a19Smrgif test x$LIB_MAN_SUFFIX = x    ; then
47527d5e3a19Smrg    LIB_MAN_SUFFIX=3
47537d5e3a19Smrgfi
47547d5e3a19Smrgif test x$LIB_MAN_DIR = x    ; then
47557d5e3a19Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
47567d5e3a19Smrgfi
47577d5e3a19Smrg
47587d5e3a19Smrgif test x$FILE_MAN_SUFFIX = x    ; then
47597d5e3a19Smrg    case $host_os in
47607d5e3a19Smrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
47617d5e3a19Smrg	*)		FILE_MAN_SUFFIX=5  ;;
47627d5e3a19Smrg    esac
47637d5e3a19Smrgfi
47647d5e3a19Smrgif test x$FILE_MAN_DIR = x    ; then
47657d5e3a19Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
47667d5e3a19Smrgfi
47677d5e3a19Smrg
47687d5e3a19Smrgif test x$MISC_MAN_SUFFIX = x    ; then
47697d5e3a19Smrg    case $host_os in
47707d5e3a19Smrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
47717d5e3a19Smrg	*)		MISC_MAN_SUFFIX=7  ;;
47727d5e3a19Smrg    esac
47737d5e3a19Smrgfi
47747d5e3a19Smrgif test x$MISC_MAN_DIR = x    ; then
47757d5e3a19Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
47767d5e3a19Smrgfi
47777d5e3a19Smrg
47787d5e3a19Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
47797d5e3a19Smrg    case $host_os in
47807d5e3a19Smrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
47817d5e3a19Smrg	*)		DRIVER_MAN_SUFFIX=4  ;;
47827d5e3a19Smrg    esac
47837d5e3a19Smrgfi
47847d5e3a19Smrgif test x$DRIVER_MAN_DIR = x    ; then
47857d5e3a19Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
47867d5e3a19Smrgfi
47877d5e3a19Smrg
47887d5e3a19Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
47897d5e3a19Smrg    case $host_os in
47907d5e3a19Smrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
47917d5e3a19Smrg	*)		ADMIN_MAN_SUFFIX=8  ;;
47927d5e3a19Smrg    esac
47937d5e3a19Smrgfi
47947d5e3a19Smrgif test x$ADMIN_MAN_DIR = x    ; then
47957d5e3a19Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
47967d5e3a19Smrgfi
47977d5e3a19Smrg
47987d5e3a19Smrg
47997d5e3a19Smrg
48007d5e3a19Smrg
48017d5e3a19Smrg
48027d5e3a19Smrg
48037d5e3a19Smrg
48047d5e3a19Smrg
48057d5e3a19Smrg
48067d5e3a19Smrg
48077d5e3a19Smrg
48087d5e3a19Smrg
48097d5e3a19Smrg
48107d5e3a19Smrg
48117d5e3a19Smrg
48127d5e3a19Smrg
48137d5e3a19Smrg
48147d5e3a19Smrg# Check whether --with-release-version was given.
48157d5e3a19Smrgif test "${with_release_version+set}" = set; then
48167d5e3a19Smrg  withval=$with_release_version; RELEASE_VERSION="$withval"
48177d5e3a19Smrgelse
48187d5e3a19Smrg  RELEASE_VERSION=""
48197d5e3a19Smrgfi
48207d5e3a19Smrg
48217d5e3a19Smrg	if test "x$RELEASE_VERSION" != "x"; then
48227d5e3a19Smrg		PACKAGE="$PACKAGE-$RELEASE_VERSION"
48237d5e3a19Smrg		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
48241568b75bSmrg		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
48251568b75bSmrg$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
48267d5e3a19Smrg	fi
48277d5e3a19Smrg
48287d5e3a19Smrgcat >>confdefs.h <<_ACEOF
48297d5e3a19Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
48307d5e3a19Smrg_ACEOF
48317d5e3a19Smrg
48321568b75bSmrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
48337d5e3a19Smrg	if test "x$PVM" = "x"; then
48347d5e3a19Smrg		PVM="0"
48357d5e3a19Smrg	fi
48367d5e3a19Smrg
48377d5e3a19Smrgcat >>confdefs.h <<_ACEOF
48387d5e3a19Smrg#define PACKAGE_VERSION_MINOR $PVM
48397d5e3a19Smrg_ACEOF
48407d5e3a19Smrg
48411568b75bSmrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
48427d5e3a19Smrg	if test "x$PVP" = "x"; then
48437d5e3a19Smrg		PVP="0"
48447d5e3a19Smrg	fi
48457d5e3a19Smrg
48467d5e3a19Smrgcat >>confdefs.h <<_ACEOF
48477d5e3a19Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
48487d5e3a19Smrg_ACEOF
48497d5e3a19Smrg
48507d5e3a19Smrg
48517d5e3a19Smrg
48521568b75bSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
48531568b75bSmrgmv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
48541568b75bSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
48551568b75bSmrg
48561568b75bSmrgdistcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
48571568b75bSmrg
48581568b75bSmrg
48591568b75bSmrg
48607d5e3a19Smrgac_config_files="$ac_config_files Makefile"
48617d5e3a19Smrg
48627d5e3a19Smrgcat >confcache <<\_ACEOF
48637d5e3a19Smrg# This file is a shell script that caches the results of configure
48647d5e3a19Smrg# tests run on this system so they can be shared between configure
48657d5e3a19Smrg# scripts and configure runs, see configure's option --config-cache.
48667d5e3a19Smrg# It is not useful on other systems.  If it contains results you don't
48677d5e3a19Smrg# want to keep, you may remove or edit it.
48687d5e3a19Smrg#
48697d5e3a19Smrg# config.status only pays attention to the cache file if you give it
48707d5e3a19Smrg# the --recheck option to rerun configure.
48717d5e3a19Smrg#
48727d5e3a19Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
48737d5e3a19Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
48747d5e3a19Smrg# following values.
48757d5e3a19Smrg
48767d5e3a19Smrg_ACEOF
48777d5e3a19Smrg
48787d5e3a19Smrg# The following way of writing the cache mishandles newlines in values,
48797d5e3a19Smrg# but we know of no workaround that is simple, portable, and efficient.
48807d5e3a19Smrg# So, we kill variables containing newlines.
48817d5e3a19Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
48827d5e3a19Smrg# and sets the high bit in the cache file unless we assign to the vars.
48837d5e3a19Smrg(
48847d5e3a19Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
48857d5e3a19Smrg    eval ac_val=\$$ac_var
48867d5e3a19Smrg    case $ac_val in #(
48877d5e3a19Smrg    *${as_nl}*)
48887d5e3a19Smrg      case $ac_var in #(
48891568b75bSmrg      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
48901568b75bSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
48917d5e3a19Smrg      esac
48927d5e3a19Smrg      case $ac_var in #(
48937d5e3a19Smrg      _ | IFS | as_nl) ;; #(
48941568b75bSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
48957d5e3a19Smrg      *) $as_unset $ac_var ;;
48967d5e3a19Smrg      esac ;;
48977d5e3a19Smrg    esac
48987d5e3a19Smrg  done
48997d5e3a19Smrg
49007d5e3a19Smrg  (set) 2>&1 |
49017d5e3a19Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
49027d5e3a19Smrg    *${as_nl}ac_space=\ *)
49037d5e3a19Smrg      # `set' does not quote correctly, so add quotes (double-quote
49047d5e3a19Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \).
49057d5e3a19Smrg      sed -n \
49067d5e3a19Smrg	"s/'/'\\\\''/g;
49077d5e3a19Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
49087d5e3a19Smrg      ;; #(
49097d5e3a19Smrg    *)
49107d5e3a19Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
49117d5e3a19Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
49127d5e3a19Smrg      ;;
49137d5e3a19Smrg    esac |
49147d5e3a19Smrg    sort
49157d5e3a19Smrg) |
49167d5e3a19Smrg  sed '
49177d5e3a19Smrg     /^ac_cv_env_/b end
49187d5e3a19Smrg     t clear
49197d5e3a19Smrg     :clear
49207d5e3a19Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
49217d5e3a19Smrg     t end
49227d5e3a19Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
49237d5e3a19Smrg     :end' >>confcache
49247d5e3a19Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
49257d5e3a19Smrg  if test -w "$cache_file"; then
49267d5e3a19Smrg    test "x$cache_file" != "x/dev/null" &&
49271568b75bSmrg      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
49281568b75bSmrg$as_echo "$as_me: updating cache $cache_file" >&6;}
49297d5e3a19Smrg    cat confcache >$cache_file
49307d5e3a19Smrg  else
49311568b75bSmrg    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
49321568b75bSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
49337d5e3a19Smrg  fi
49347d5e3a19Smrgfi
49357d5e3a19Smrgrm -f confcache
49367d5e3a19Smrg
49377d5e3a19Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
49387d5e3a19Smrg# Let make expand exec_prefix.
49397d5e3a19Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
49407d5e3a19Smrg
49417d5e3a19SmrgDEFS=-DHAVE_CONFIG_H
49427d5e3a19Smrg
49437d5e3a19Smrgac_libobjs=
49447d5e3a19Smrgac_ltlibobjs=
49457d5e3a19Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
49467d5e3a19Smrg  # 1. Remove the extension, and $U if already installed.
49477d5e3a19Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
49481568b75bSmrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
49497d5e3a19Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
49507d5e3a19Smrg  #    will be set to the directory where LIBOBJS objects are built.
49517d5e3a19Smrg  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
49527d5e3a19Smrg  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
49537d5e3a19Smrgdone
49547d5e3a19SmrgLIBOBJS=$ac_libobjs
49557d5e3a19Smrg
49567d5e3a19SmrgLTLIBOBJS=$ac_ltlibobjs
49577d5e3a19Smrg
49587d5e3a19Smrg
49591568b75bSmrg if test -n "$EXEEXT"; then
49601568b75bSmrg  am__EXEEXT_TRUE=
49611568b75bSmrg  am__EXEEXT_FALSE='#'
49621568b75bSmrgelse
49631568b75bSmrg  am__EXEEXT_TRUE='#'
49641568b75bSmrg  am__EXEEXT_FALSE=
49651568b75bSmrgfi
49661568b75bSmrg
49677d5e3a19Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
49681568b75bSmrg  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
49697d5e3a19SmrgUsually this means the macro was only invoked conditionally." >&5
49701568b75bSmrg$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
49717d5e3a19SmrgUsually this means the macro was only invoked conditionally." >&2;}
49727d5e3a19Smrg   { (exit 1); exit 1; }; }
49737d5e3a19Smrgfi
49747d5e3a19Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
49751568b75bSmrg  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
49767d5e3a19SmrgUsually this means the macro was only invoked conditionally." >&5
49771568b75bSmrg$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
49787d5e3a19SmrgUsually this means the macro was only invoked conditionally." >&2;}
49797d5e3a19Smrg   { (exit 1); exit 1; }; }
49807d5e3a19Smrgfi
49817d5e3a19Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
49821568b75bSmrg  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
49837d5e3a19SmrgUsually this means the macro was only invoked conditionally." >&5
49841568b75bSmrg$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
49857d5e3a19SmrgUsually this means the macro was only invoked conditionally." >&2;}
49867d5e3a19Smrg   { (exit 1); exit 1; }; }
49877d5e3a19Smrgfi
49887d5e3a19Smrgif test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
49891568b75bSmrg  { { $as_echo "$as_me:$LINENO: error: conditional \"LINT\" was never defined.
49907d5e3a19SmrgUsually this means the macro was only invoked conditionally." >&5
49911568b75bSmrg$as_echo "$as_me: error: conditional \"LINT\" was never defined.
49927d5e3a19SmrgUsually this means the macro was only invoked conditionally." >&2;}
49937d5e3a19Smrg   { (exit 1); exit 1; }; }
49947d5e3a19Smrgfi
49957d5e3a19Smrg
49967d5e3a19Smrg: ${CONFIG_STATUS=./config.status}
49971568b75bSmrgac_write_fail=0
49987d5e3a19Smrgac_clean_files_save=$ac_clean_files
49997d5e3a19Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
50001568b75bSmrg{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
50011568b75bSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
50021568b75bSmrgcat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
50037d5e3a19Smrg#! $SHELL
50047d5e3a19Smrg# Generated by $as_me.
50057d5e3a19Smrg# Run this file to recreate the current configuration.
50067d5e3a19Smrg# Compiler output produced by configure, useful for debugging
50077d5e3a19Smrg# configure, is in config.log if it exists.
50087d5e3a19Smrg
50097d5e3a19Smrgdebug=false
50107d5e3a19Smrgac_cs_recheck=false
50117d5e3a19Smrgac_cs_silent=false
50127d5e3a19SmrgSHELL=\${CONFIG_SHELL-$SHELL}
50137d5e3a19Smrg_ACEOF
50147d5e3a19Smrg
50151568b75bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
50167d5e3a19Smrg## --------------------- ##
50177d5e3a19Smrg## M4sh Initialization.  ##
50187d5e3a19Smrg## --------------------- ##
50197d5e3a19Smrg
50207d5e3a19Smrg# Be more Bourne compatible
50217d5e3a19SmrgDUALCASE=1; export DUALCASE # for MKS sh
50227d5e3a19Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
50237d5e3a19Smrg  emulate sh
50247d5e3a19Smrg  NULLCMD=:
50251568b75bSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
50267d5e3a19Smrg  # is contrary to our usage.  Disable this feature.
50277d5e3a19Smrg  alias -g '${1+"$@"}'='"$@"'
50287d5e3a19Smrg  setopt NO_GLOB_SUBST
50297d5e3a19Smrgelse
50307d5e3a19Smrg  case `(set -o) 2>/dev/null` in
50317d5e3a19Smrg  *posix*) set -o posix ;;
50327d5e3a19Smrgesac
50337d5e3a19Smrg
50347d5e3a19Smrgfi
50357d5e3a19Smrg
50367d5e3a19Smrg
50377d5e3a19Smrg
50387d5e3a19Smrg
50397d5e3a19Smrg# PATH needs CR
50407d5e3a19Smrg# Avoid depending upon Character Ranges.
50417d5e3a19Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
50427d5e3a19Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
50437d5e3a19Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
50447d5e3a19Smrgas_cr_digits='0123456789'
50457d5e3a19Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
50467d5e3a19Smrg
50471568b75bSmrgas_nl='
50481568b75bSmrg'
50491568b75bSmrgexport as_nl
50501568b75bSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
50511568b75bSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
50521568b75bSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
50531568b75bSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50541568b75bSmrgif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50551568b75bSmrg  as_echo='printf %s\n'
50561568b75bSmrg  as_echo_n='printf %s'
50571568b75bSmrgelse
50581568b75bSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
50591568b75bSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
50601568b75bSmrg    as_echo_n='/usr/ucb/echo -n'
50617d5e3a19Smrg  else
50621568b75bSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
50631568b75bSmrg    as_echo_n_body='eval
50641568b75bSmrg      arg=$1;
50651568b75bSmrg      case $arg in
50661568b75bSmrg      *"$as_nl"*)
50671568b75bSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
50681568b75bSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
50691568b75bSmrg      esac;
50701568b75bSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
50711568b75bSmrg    '
50721568b75bSmrg    export as_echo_n_body
50731568b75bSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
50747d5e3a19Smrg  fi
50751568b75bSmrg  export as_echo_body
50761568b75bSmrg  as_echo='sh -c $as_echo_body as_echo'
50771568b75bSmrgfi
50781568b75bSmrg
50791568b75bSmrg# The user is always right.
50801568b75bSmrgif test "${PATH_SEPARATOR+set}" != set; then
50811568b75bSmrg  PATH_SEPARATOR=:
50821568b75bSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
50831568b75bSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
50841568b75bSmrg      PATH_SEPARATOR=';'
50851568b75bSmrg  }
50867d5e3a19Smrgfi
50877d5e3a19Smrg
50887d5e3a19Smrg# Support unset when possible.
50897d5e3a19Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
50907d5e3a19Smrg  as_unset=unset
50917d5e3a19Smrgelse
50927d5e3a19Smrg  as_unset=false
50937d5e3a19Smrgfi
50947d5e3a19Smrg
50957d5e3a19Smrg
50967d5e3a19Smrg# IFS
50977d5e3a19Smrg# We need space, tab and new line, in precisely that order.  Quoting is
50987d5e3a19Smrg# there to prevent editors from complaining about space-tab.
50997d5e3a19Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
51007d5e3a19Smrg# splitting by setting IFS to empty value.)
51017d5e3a19SmrgIFS=" ""	$as_nl"
51027d5e3a19Smrg
51037d5e3a19Smrg# Find who we are.  Look in the path if we contain no directory separator.
51047d5e3a19Smrgcase $0 in
51057d5e3a19Smrg  *[\\/]* ) as_myself=$0 ;;
51067d5e3a19Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51077d5e3a19Smrgfor as_dir in $PATH
51087d5e3a19Smrgdo
51097d5e3a19Smrg  IFS=$as_save_IFS
51107d5e3a19Smrg  test -z "$as_dir" && as_dir=.
51117d5e3a19Smrg  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51127d5e3a19Smrgdone
51137d5e3a19SmrgIFS=$as_save_IFS
51147d5e3a19Smrg
51157d5e3a19Smrg     ;;
51167d5e3a19Smrgesac
51177d5e3a19Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
51187d5e3a19Smrg# in which case we are not to be found in the path.
51197d5e3a19Smrgif test "x$as_myself" = x; then
51207d5e3a19Smrg  as_myself=$0
51217d5e3a19Smrgfi
51227d5e3a19Smrgif test ! -f "$as_myself"; then
51231568b75bSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
51247d5e3a19Smrg  { (exit 1); exit 1; }
51257d5e3a19Smrgfi
51267d5e3a19Smrg
51277d5e3a19Smrg# Work around bugs in pre-3.0 UWIN ksh.
51287d5e3a19Smrgfor as_var in ENV MAIL MAILPATH
51297d5e3a19Smrgdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
51307d5e3a19Smrgdone
51317d5e3a19SmrgPS1='$ '
51327d5e3a19SmrgPS2='> '
51337d5e3a19SmrgPS4='+ '
51347d5e3a19Smrg
51357d5e3a19Smrg# NLS nuisances.
51361568b75bSmrgLC_ALL=C
51371568b75bSmrgexport LC_ALL
51381568b75bSmrgLANGUAGE=C
51391568b75bSmrgexport LANGUAGE
51407d5e3a19Smrg
51417d5e3a19Smrg# Required to use basename.
51427d5e3a19Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
51437d5e3a19Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
51447d5e3a19Smrg  as_expr=expr
51457d5e3a19Smrgelse
51467d5e3a19Smrg  as_expr=false
51477d5e3a19Smrgfi
51487d5e3a19Smrg
51497d5e3a19Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
51507d5e3a19Smrg  as_basename=basename
51517d5e3a19Smrgelse
51527d5e3a19Smrg  as_basename=false
51537d5e3a19Smrgfi
51547d5e3a19Smrg
51557d5e3a19Smrg
51567d5e3a19Smrg# Name of the executable.
51577d5e3a19Smrgas_me=`$as_basename -- "$0" ||
51587d5e3a19Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51597d5e3a19Smrg	 X"$0" : 'X\(//\)$' \| \
51607d5e3a19Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
51611568b75bSmrg$as_echo X/"$0" |
51627d5e3a19Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
51637d5e3a19Smrg	    s//\1/
51647d5e3a19Smrg	    q
51657d5e3a19Smrg	  }
51667d5e3a19Smrg	  /^X\/\(\/\/\)$/{
51677d5e3a19Smrg	    s//\1/
51687d5e3a19Smrg	    q
51697d5e3a19Smrg	  }
51707d5e3a19Smrg	  /^X\/\(\/\).*/{
51717d5e3a19Smrg	    s//\1/
51727d5e3a19Smrg	    q
51737d5e3a19Smrg	  }
51747d5e3a19Smrg	  s/.*/./; q'`
51757d5e3a19Smrg
51767d5e3a19Smrg# CDPATH.
51777d5e3a19Smrg$as_unset CDPATH
51787d5e3a19Smrg
51797d5e3a19Smrg
51807d5e3a19Smrg
51817d5e3a19Smrg  as_lineno_1=$LINENO
51827d5e3a19Smrg  as_lineno_2=$LINENO
51837d5e3a19Smrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
51847d5e3a19Smrg  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
51857d5e3a19Smrg
51867d5e3a19Smrg  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
51877d5e3a19Smrg  # uniformly replaced by the line number.  The first 'sed' inserts a
51887d5e3a19Smrg  # line-number line after each line using $LINENO; the second 'sed'
51897d5e3a19Smrg  # does the real work.  The second script uses 'N' to pair each
51907d5e3a19Smrg  # line-number line with the line containing $LINENO, and appends
51917d5e3a19Smrg  # trailing '-' during substitution so that $LINENO is not a special
51927d5e3a19Smrg  # case at line end.
51937d5e3a19Smrg  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
51947d5e3a19Smrg  # scripts with optimization help from Paolo Bonzini.  Blame Lee
51957d5e3a19Smrg  # E. McMahon (1931-1989) for sed's syntax.  :-)
51967d5e3a19Smrg  sed -n '
51977d5e3a19Smrg    p
51987d5e3a19Smrg    /[$]LINENO/=
51997d5e3a19Smrg  ' <$as_myself |
52007d5e3a19Smrg    sed '
52017d5e3a19Smrg      s/[$]LINENO.*/&-/
52027d5e3a19Smrg      t lineno
52037d5e3a19Smrg      b
52047d5e3a19Smrg      :lineno
52057d5e3a19Smrg      N
52067d5e3a19Smrg      :loop
52077d5e3a19Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
52087d5e3a19Smrg      t loop
52097d5e3a19Smrg      s/-\n.*//
52107d5e3a19Smrg    ' >$as_me.lineno &&
52117d5e3a19Smrg  chmod +x "$as_me.lineno" ||
52121568b75bSmrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
52137d5e3a19Smrg   { (exit 1); exit 1; }; }
52147d5e3a19Smrg
52157d5e3a19Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
52167d5e3a19Smrg  # (the dirname of $[0] is not the place where we might find the
52177d5e3a19Smrg  # original and so on.  Autoconf is especially sensitive to this).
52187d5e3a19Smrg  . "./$as_me.lineno"
52197d5e3a19Smrg  # Exit status is that of the last command.
52207d5e3a19Smrg  exit
52217d5e3a19Smrg}
52227d5e3a19Smrg
52237d5e3a19Smrg
52247d5e3a19Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
52257d5e3a19Smrg  as_dirname=dirname
52267d5e3a19Smrgelse
52277d5e3a19Smrg  as_dirname=false
52287d5e3a19Smrgfi
52297d5e3a19Smrg
52307d5e3a19SmrgECHO_C= ECHO_N= ECHO_T=
52317d5e3a19Smrgcase `echo -n x` in
52327d5e3a19Smrg-n*)
52337d5e3a19Smrg  case `echo 'x\c'` in
52347d5e3a19Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
52357d5e3a19Smrg  *)   ECHO_C='\c';;
52367d5e3a19Smrg  esac;;
52377d5e3a19Smrg*)
52387d5e3a19Smrg  ECHO_N='-n';;
52397d5e3a19Smrgesac
52407d5e3a19Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
52417d5e3a19Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
52427d5e3a19Smrg  as_expr=expr
52437d5e3a19Smrgelse
52447d5e3a19Smrg  as_expr=false
52457d5e3a19Smrgfi
52467d5e3a19Smrg
52477d5e3a19Smrgrm -f conf$$ conf$$.exe conf$$.file
52487d5e3a19Smrgif test -d conf$$.dir; then
52497d5e3a19Smrg  rm -f conf$$.dir/conf$$.file
52507d5e3a19Smrgelse
52517d5e3a19Smrg  rm -f conf$$.dir
52521568b75bSmrg  mkdir conf$$.dir 2>/dev/null
52531568b75bSmrgfi
52541568b75bSmrgif (echo >conf$$.file) 2>/dev/null; then
52551568b75bSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
52561568b75bSmrg    as_ln_s='ln -s'
52571568b75bSmrg    # ... but there are two gotchas:
52581568b75bSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
52591568b75bSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
52601568b75bSmrg    # In both cases, we have to default to `cp -p'.
52611568b75bSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
52621568b75bSmrg      as_ln_s='cp -p'
52631568b75bSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
52641568b75bSmrg    as_ln_s=ln
52651568b75bSmrg  else
52667d5e3a19Smrg    as_ln_s='cp -p'
52671568b75bSmrg  fi
52687d5e3a19Smrgelse
52697d5e3a19Smrg  as_ln_s='cp -p'
52707d5e3a19Smrgfi
52717d5e3a19Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
52727d5e3a19Smrgrmdir conf$$.dir 2>/dev/null
52737d5e3a19Smrg
52747d5e3a19Smrgif mkdir -p . 2>/dev/null; then
52757d5e3a19Smrg  as_mkdir_p=:
52767d5e3a19Smrgelse
52777d5e3a19Smrg  test -d ./-p && rmdir ./-p
52787d5e3a19Smrg  as_mkdir_p=false
52797d5e3a19Smrgfi
52807d5e3a19Smrg
52817d5e3a19Smrgif test -x / >/dev/null 2>&1; then
52827d5e3a19Smrg  as_test_x='test -x'
52837d5e3a19Smrgelse
52847d5e3a19Smrg  if ls -dL / >/dev/null 2>&1; then
52857d5e3a19Smrg    as_ls_L_option=L
52867d5e3a19Smrg  else
52877d5e3a19Smrg    as_ls_L_option=
52887d5e3a19Smrg  fi
52897d5e3a19Smrg  as_test_x='
52907d5e3a19Smrg    eval sh -c '\''
52917d5e3a19Smrg      if test -d "$1"; then
52921568b75bSmrg	test -d "$1/.";
52937d5e3a19Smrg      else
52947d5e3a19Smrg	case $1 in
52951568b75bSmrg	-*)set "./$1";;
52967d5e3a19Smrg	esac;
52977d5e3a19Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
52987d5e3a19Smrg	???[sx]*):;;*)false;;esac;fi
52997d5e3a19Smrg    '\'' sh
53007d5e3a19Smrg  '
53017d5e3a19Smrgfi
53027d5e3a19Smrgas_executable_p=$as_test_x
53037d5e3a19Smrg
53047d5e3a19Smrg# Sed expression to map a string onto a valid CPP name.
53057d5e3a19Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53067d5e3a19Smrg
53077d5e3a19Smrg# Sed expression to map a string onto a valid variable name.
53087d5e3a19Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53097d5e3a19Smrg
53107d5e3a19Smrg
53117d5e3a19Smrgexec 6>&1
53127d5e3a19Smrg
53137d5e3a19Smrg# Save the log message, to keep $[0] and so on meaningful, and to
53147d5e3a19Smrg# report actual input values of CONFIG_FILES etc. instead of their
53157d5e3a19Smrg# values after options handling.
53167d5e3a19Smrgac_log="
53171568b75bSmrgThis file was extended by setxkbmap $as_me 1.1.0, which was
53181568b75bSmrggenerated by GNU Autoconf 2.63.  Invocation command line was
53197d5e3a19Smrg
53207d5e3a19Smrg  CONFIG_FILES    = $CONFIG_FILES
53217d5e3a19Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
53227d5e3a19Smrg  CONFIG_LINKS    = $CONFIG_LINKS
53237d5e3a19Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
53247d5e3a19Smrg  $ $0 $@
53257d5e3a19Smrg
53267d5e3a19Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
53277d5e3a19Smrg"
53287d5e3a19Smrg
53297d5e3a19Smrg_ACEOF
53307d5e3a19Smrg
53311568b75bSmrgcase $ac_config_files in *"
53321568b75bSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
53331568b75bSmrgesac
53341568b75bSmrg
53351568b75bSmrgcase $ac_config_headers in *"
53361568b75bSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
53371568b75bSmrgesac
53381568b75bSmrg
53391568b75bSmrg
53401568b75bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
53417d5e3a19Smrg# Files that config.status was made for.
53427d5e3a19Smrgconfig_files="$ac_config_files"
53437d5e3a19Smrgconfig_headers="$ac_config_headers"
53447d5e3a19Smrgconfig_commands="$ac_config_commands"
53457d5e3a19Smrg
53467d5e3a19Smrg_ACEOF
53477d5e3a19Smrg
53481568b75bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
53497d5e3a19Smrgac_cs_usage="\
53507d5e3a19Smrg\`$as_me' instantiates files from templates according to the
53517d5e3a19Smrgcurrent configuration.
53527d5e3a19Smrg
53531568b75bSmrgUsage: $0 [OPTION]... [FILE]...
53547d5e3a19Smrg
53557d5e3a19Smrg  -h, --help       print this help, then exit
53567d5e3a19Smrg  -V, --version    print version number and configuration settings, then exit
53571568b75bSmrg  -q, --quiet, --silent
53581568b75bSmrg                   do not print progress messages
53597d5e3a19Smrg  -d, --debug      don't remove temporary files
53607d5e3a19Smrg      --recheck    update $as_me by reconfiguring in the same conditions
53611568b75bSmrg      --file=FILE[:TEMPLATE]
53621568b75bSmrg                   instantiate the configuration file FILE
53631568b75bSmrg      --header=FILE[:TEMPLATE]
53641568b75bSmrg                   instantiate the configuration header FILE
53657d5e3a19Smrg
53667d5e3a19SmrgConfiguration files:
53677d5e3a19Smrg$config_files
53687d5e3a19Smrg
53697d5e3a19SmrgConfiguration headers:
53707d5e3a19Smrg$config_headers
53717d5e3a19Smrg
53727d5e3a19SmrgConfiguration commands:
53737d5e3a19Smrg$config_commands
53747d5e3a19Smrg
53757d5e3a19SmrgReport bugs to <bug-autoconf@gnu.org>."
53767d5e3a19Smrg
53777d5e3a19Smrg_ACEOF
53781568b75bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
53797d5e3a19Smrgac_cs_version="\\
53801568b75bSmrgsetxkbmap config.status 1.1.0
53811568b75bSmrgconfigured by $0, generated by GNU Autoconf 2.63,
53821568b75bSmrg  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
53837d5e3a19Smrg
53841568b75bSmrgCopyright (C) 2008 Free Software Foundation, Inc.
53857d5e3a19SmrgThis config.status script is free software; the Free Software Foundation
53867d5e3a19Smrggives unlimited permission to copy, distribute and modify it."
53877d5e3a19Smrg
53887d5e3a19Smrgac_pwd='$ac_pwd'
53897d5e3a19Smrgsrcdir='$srcdir'
53907d5e3a19SmrgINSTALL='$INSTALL'
53917d5e3a19SmrgMKDIR_P='$MKDIR_P'
53921568b75bSmrgAWK='$AWK'
53931568b75bSmrgtest -n "\$AWK" || AWK=awk
53947d5e3a19Smrg_ACEOF
53957d5e3a19Smrg
53961568b75bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
53971568b75bSmrg# The default lists apply if the user does not specify any file.
53987d5e3a19Smrgac_need_defaults=:
53997d5e3a19Smrgwhile test $# != 0
54007d5e3a19Smrgdo
54017d5e3a19Smrg  case $1 in
54027d5e3a19Smrg  --*=*)
54037d5e3a19Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
54047d5e3a19Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
54057d5e3a19Smrg    ac_shift=:
54067d5e3a19Smrg    ;;
54077d5e3a19Smrg  *)
54087d5e3a19Smrg    ac_option=$1
54097d5e3a19Smrg    ac_optarg=$2
54107d5e3a19Smrg    ac_shift=shift
54117d5e3a19Smrg    ;;
54127d5e3a19Smrg  esac
54137d5e3a19Smrg
54147d5e3a19Smrg  case $ac_option in
54157d5e3a19Smrg  # Handling of the options.
54167d5e3a19Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
54177d5e3a19Smrg    ac_cs_recheck=: ;;
54187d5e3a19Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
54191568b75bSmrg    $as_echo "$ac_cs_version"; exit ;;
54207d5e3a19Smrg  --debug | --debu | --deb | --de | --d | -d )
54217d5e3a19Smrg    debug=: ;;
54227d5e3a19Smrg  --file | --fil | --fi | --f )
54237d5e3a19Smrg    $ac_shift
54241568b75bSmrg    case $ac_optarg in
54251568b75bSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
54261568b75bSmrg    esac
54271568b75bSmrg    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
54287d5e3a19Smrg    ac_need_defaults=false;;
54297d5e3a19Smrg  --header | --heade | --head | --hea )
54307d5e3a19Smrg    $ac_shift
54311568b75bSmrg    case $ac_optarg in
54321568b75bSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
54331568b75bSmrg    esac
54341568b75bSmrg    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
54357d5e3a19Smrg    ac_need_defaults=false;;
54367d5e3a19Smrg  --he | --h)
54377d5e3a19Smrg    # Conflict between --help and --header
54381568b75bSmrg    { $as_echo "$as_me: error: ambiguous option: $1
54397d5e3a19SmrgTry \`$0 --help' for more information." >&2
54407d5e3a19Smrg   { (exit 1); exit 1; }; };;
54417d5e3a19Smrg  --help | --hel | -h )
54421568b75bSmrg    $as_echo "$ac_cs_usage"; exit ;;
54437d5e3a19Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
54447d5e3a19Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
54457d5e3a19Smrg    ac_cs_silent=: ;;
54467d5e3a19Smrg
54477d5e3a19Smrg  # This is an error.
54481568b75bSmrg  -*) { $as_echo "$as_me: error: unrecognized option: $1
54497d5e3a19SmrgTry \`$0 --help' for more information." >&2
54507d5e3a19Smrg   { (exit 1); exit 1; }; } ;;
54517d5e3a19Smrg
54527d5e3a19Smrg  *) ac_config_targets="$ac_config_targets $1"
54537d5e3a19Smrg     ac_need_defaults=false ;;
54547d5e3a19Smrg
54557d5e3a19Smrg  esac
54567d5e3a19Smrg  shift
54577d5e3a19Smrgdone
54587d5e3a19Smrg
54597d5e3a19Smrgac_configure_extra_args=
54607d5e3a19Smrg
54617d5e3a19Smrgif $ac_cs_silent; then
54627d5e3a19Smrg  exec 6>/dev/null
54637d5e3a19Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
54647d5e3a19Smrgfi
54657d5e3a19Smrg
54667d5e3a19Smrg_ACEOF
54671568b75bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
54687d5e3a19Smrgif \$ac_cs_recheck; then
54691568b75bSmrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
54701568b75bSmrg  shift
54711568b75bSmrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
54721568b75bSmrg  CONFIG_SHELL='$SHELL'
54737d5e3a19Smrg  export CONFIG_SHELL
54741568b75bSmrg  exec "\$@"
54757d5e3a19Smrgfi
54767d5e3a19Smrg
54777d5e3a19Smrg_ACEOF
54781568b75bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
54797d5e3a19Smrgexec 5>>config.log
54807d5e3a19Smrg{
54817d5e3a19Smrg  echo
54827d5e3a19Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
54837d5e3a19Smrg## Running $as_me. ##
54847d5e3a19Smrg_ASBOX
54851568b75bSmrg  $as_echo "$ac_log"
54867d5e3a19Smrg} >&5
54877d5e3a19Smrg
54887d5e3a19Smrg_ACEOF
54891568b75bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
54907d5e3a19Smrg#
54917d5e3a19Smrg# INIT-COMMANDS
54927d5e3a19Smrg#
54937d5e3a19SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
54947d5e3a19Smrg
54957d5e3a19Smrg_ACEOF
54967d5e3a19Smrg
54971568b75bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
54987d5e3a19Smrg
54997d5e3a19Smrg# Handling of arguments.
55007d5e3a19Smrgfor ac_config_target in $ac_config_targets
55017d5e3a19Smrgdo
55027d5e3a19Smrg  case $ac_config_target in
55037d5e3a19Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
55047d5e3a19Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
55057d5e3a19Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
55067d5e3a19Smrg
55071568b75bSmrg  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
55081568b75bSmrg$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
55097d5e3a19Smrg   { (exit 1); exit 1; }; };;
55107d5e3a19Smrg  esac
55117d5e3a19Smrgdone
55127d5e3a19Smrg
55137d5e3a19Smrg
55147d5e3a19Smrg# If the user did not use the arguments to specify the items to instantiate,
55157d5e3a19Smrg# then the envvar interface is used.  Set only those that are not.
55167d5e3a19Smrg# We use the long form for the default assignment because of an extremely
55177d5e3a19Smrg# bizarre bug on SunOS 4.1.3.
55187d5e3a19Smrgif $ac_need_defaults; then
55197d5e3a19Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
55207d5e3a19Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
55217d5e3a19Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
55227d5e3a19Smrgfi
55237d5e3a19Smrg
55247d5e3a19Smrg# Have a temporary directory for convenience.  Make it in the build tree
55257d5e3a19Smrg# simply because there is no reason against having it here, and in addition,
55267d5e3a19Smrg# creating and moving files from /tmp can sometimes cause problems.
55277d5e3a19Smrg# Hook for its removal unless debugging.
55287d5e3a19Smrg# Note that there is a small window in which the directory will not be cleaned:
55297d5e3a19Smrg# after its creation but before its name has been assigned to `$tmp'.
55307d5e3a19Smrg$debug ||
55317d5e3a19Smrg{
55327d5e3a19Smrg  tmp=
55337d5e3a19Smrg  trap 'exit_status=$?
55347d5e3a19Smrg  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
55357d5e3a19Smrg' 0
55367d5e3a19Smrg  trap '{ (exit 1); exit 1; }' 1 2 13 15
55377d5e3a19Smrg}
55387d5e3a19Smrg# Create a (secure) tmp directory for tmp files.
55397d5e3a19Smrg
55407d5e3a19Smrg{
55417d5e3a19Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
55427d5e3a19Smrg  test -n "$tmp" && test -d "$tmp"
55437d5e3a19Smrg}  ||
55447d5e3a19Smrg{
55457d5e3a19Smrg  tmp=./conf$$-$RANDOM
55467d5e3a19Smrg  (umask 077 && mkdir "$tmp")
55477d5e3a19Smrg} ||
55487d5e3a19Smrg{
55491568b75bSmrg   $as_echo "$as_me: cannot create a temporary directory in ." >&2
55507d5e3a19Smrg   { (exit 1); exit 1; }
55517d5e3a19Smrg}
55527d5e3a19Smrg
55531568b75bSmrg# Set up the scripts for CONFIG_FILES section.
55541568b75bSmrg# No need to generate them if there are no CONFIG_FILES.
55551568b75bSmrg# This happens for instance with `./config.status config.h'.
55567d5e3a19Smrgif test -n "$CONFIG_FILES"; then
55577d5e3a19Smrg
55587d5e3a19Smrg
55591568b75bSmrgac_cr='
55601568b75bSmrg'
55611568b75bSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
55621568b75bSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
55631568b75bSmrg  ac_cs_awk_cr='\\r'
55641568b75bSmrgelse
55657d5e3a19Smrg  ac_cs_awk_cr=$ac_cr
55667d5e3a19Smrgfi
55671568b75bSmrg
55687d5e3a19Smrgecho 'BEGIN {' >"$tmp/subs1.awk" &&
55697d5e3a19Smrg_ACEOF
55707d5e3a19Smrg
55711568b75bSmrg
55721568b75bSmrg{
55731568b75bSmrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
55741568b75bSmrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
55751568b75bSmrg  echo "_ACEOF"
55761568b75bSmrg} >conf$$subs.sh ||
55771568b75bSmrg  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
55781568b75bSmrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
55791568b75bSmrg   { (exit 1); exit 1; }; }
55807d5e3a19Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
55817d5e3a19Smrgac_delim='%!_!# '
55821568b75bSmrgfor ac_last_try in false false false false false :; do
55831568b75bSmrg  . ./conf$$subs.sh ||
55841568b75bSmrg    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
55851568b75bSmrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
55867d5e3a19Smrg   { (exit 1); exit 1; }; }
55871568b75bSmrg
55881568b75bSmrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
55897d5e3a19Smrg  if test $ac_delim_n = $ac_delim_num; then
55907d5e3a19Smrg    break
55911568b75bSmrg  elif $ac_last_try; then
55921568b75bSmrg    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
55937d5e3a19Smrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
55947d5e3a19Smrg   { (exit 1); exit 1; }; }
55957d5e3a19Smrg  else
55967d5e3a19Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
55977d5e3a19Smrg  fi
55981568b75bSmrgdone
55997d5e3a19Smrgrm -f conf$$subs.sh
56001568b75bSmrg
56011568b75bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
56021568b75bSmrgcat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
56031568b75bSmrg_ACEOF
56041568b75bSmrgsed -n '
56051568b75bSmrgh
56061568b75bSmrgs/^/S["/; s/!.*/"]=/
56071568b75bSmrgp
56081568b75bSmrgg
56091568b75bSmrgs/^[^!]*!//
56101568b75bSmrg:repl
56111568b75bSmrgt repl
56121568b75bSmrgs/'"$ac_delim"'$//
56131568b75bSmrgt delim
56141568b75bSmrg:nl
56151568b75bSmrgh
56161568b75bSmrgs/\(.\{148\}\).*/\1/
56171568b75bSmrgt more1
56181568b75bSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
56191568b75bSmrgp
56201568b75bSmrgn
56211568b75bSmrgb repl
56221568b75bSmrg:more1
56231568b75bSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
56241568b75bSmrgp
56251568b75bSmrgg
56261568b75bSmrgs/.\{148\}//
56271568b75bSmrgt nl
56281568b75bSmrg:delim
56291568b75bSmrgh
56301568b75bSmrgs/\(.\{148\}\).*/\1/
56311568b75bSmrgt more2
56321568b75bSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/
56331568b75bSmrgp
56341568b75bSmrgb
56351568b75bSmrg:more2
56361568b75bSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
56371568b75bSmrgp
56381568b75bSmrgg
56391568b75bSmrgs/.\{148\}//
56401568b75bSmrgt delim
56411568b75bSmrg' <conf$$subs.awk | sed '
56421568b75bSmrg/^[^""]/{
56431568b75bSmrg  N
56441568b75bSmrg  s/\n//
56451568b75bSmrg}
56461568b75bSmrg' >>$CONFIG_STATUS || ac_write_fail=1
56471568b75bSmrgrm -f conf$$subs.awk
56481568b75bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
56491568b75bSmrg_ACAWK
56501568b75bSmrgcat >>"\$tmp/subs1.awk" <<_ACAWK &&
56511568b75bSmrg  for (key in S) S_is_set[key] = 1
56521568b75bSmrg  FS = ""
56531568b75bSmrg
56541568b75bSmrg}
56551568b75bSmrg{
56561568b75bSmrg  line = $ 0
56571568b75bSmrg  nfields = split(line, field, "@")
56581568b75bSmrg  substed = 0
56591568b75bSmrg  len = length(field[1])
56601568b75bSmrg  for (i = 2; i < nfields; i++) {
56611568b75bSmrg    key = field[i]
56621568b75bSmrg    keylen = length(key)
56631568b75bSmrg    if (S_is_set[key]) {
56641568b75bSmrg      value = S[key]
56651568b75bSmrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
56661568b75bSmrg      len += length(value) + length(field[++i])
56671568b75bSmrg      substed = 1
56681568b75bSmrg    } else
56691568b75bSmrg      len += 1 + keylen
56701568b75bSmrg  }
56711568b75bSmrg
56721568b75bSmrg  print line
56737d5e3a19Smrg}
56741568b75bSmrg
56757d5e3a19Smrg_ACAWK
56761568b75bSmrg_ACEOF
56771568b75bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
56781568b75bSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
56791568b75bSmrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
56801568b75bSmrgelse
56811568b75bSmrg  cat
56821568b75bSmrgfi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
56831568b75bSmrg  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
56841568b75bSmrg$as_echo "$as_me: error: could not setup config files machinery" >&2;}
56857d5e3a19Smrg   { (exit 1); exit 1; }; }
56867d5e3a19Smrg_ACEOF
56877d5e3a19Smrg
56887d5e3a19Smrg# VPATH may cause trouble with some makes, so we remove $(srcdir),
56897d5e3a19Smrg# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
56907d5e3a19Smrg# trailing colons and then remove the whole line if VPATH becomes empty
56917d5e3a19Smrg# (actually we leave an empty line to preserve line numbers).
56927d5e3a19Smrgif test "x$srcdir" = x.; then
56937d5e3a19Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
56947d5e3a19Smrgs/:*\$(srcdir):*/:/
56957d5e3a19Smrgs/:*\${srcdir}:*/:/
56967d5e3a19Smrgs/:*@srcdir@:*/:/
56977d5e3a19Smrgs/^\([^=]*=[	 ]*\):*/\1/
56987d5e3a19Smrgs/:*$//
56997d5e3a19Smrgs/^[^=]*=[	 ]*$//
57007d5e3a19Smrg}'
57017d5e3a19Smrgfi
57021568b75bSmrg
57037d5e3a19Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57047d5e3a19Smrgfi # test -n "$CONFIG_FILES"
57051568b75bSmrg
57061568b75bSmrg# Set up the scripts for CONFIG_HEADERS section.
57071568b75bSmrg# No need to generate them if there are no CONFIG_HEADERS.
57081568b75bSmrg# This happens for instance with `./config.status Makefile'.
57091568b75bSmrgif test -n "$CONFIG_HEADERS"; then
57101568b75bSmrgcat >"$tmp/defines.awk" <<\_ACAWK ||
57111568b75bSmrgBEGIN {
57121568b75bSmrg_ACEOF
57131568b75bSmrg
57141568b75bSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as
57151568b75bSmrg# here-document in config.status, that substitutes the proper values into
57161568b75bSmrg# config.h.in to produce config.h.
57171568b75bSmrg
57181568b75bSmrg# Create a delimiter string that does not exist in confdefs.h, to ease
57191568b75bSmrg# handling of long lines.
57201568b75bSmrgac_delim='%!_!# '
57211568b75bSmrgfor ac_last_try in false false :; do
57221568b75bSmrg  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
57231568b75bSmrg  if test -z "$ac_t"; then
57241568b75bSmrg    break
57251568b75bSmrg  elif $ac_last_try; then
57261568b75bSmrg    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
57271568b75bSmrg$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
57281568b75bSmrg   { (exit 1); exit 1; }; }
57291568b75bSmrg  else
57301568b75bSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
57311568b75bSmrg  fi
57321568b75bSmrgdone
57331568b75bSmrg
57341568b75bSmrg# For the awk script, D is an array of macro values keyed by name,
57351568b75bSmrg# likewise P contains macro parameters if any.  Preserve backslash
57361568b75bSmrg# newline sequences.
57371568b75bSmrg
57381568b75bSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
57391568b75bSmrgsed -n '
57401568b75bSmrgs/.\{148\}/&'"$ac_delim"'/g
57411568b75bSmrgt rset
57421568b75bSmrg:rset
57431568b75bSmrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
57441568b75bSmrgt def
57451568b75bSmrgd
57461568b75bSmrg:def
57471568b75bSmrgs/\\$//
57481568b75bSmrgt bsnl
57491568b75bSmrgs/["\\]/\\&/g
57501568b75bSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
57511568b75bSmrgD["\1"]=" \3"/p
57521568b75bSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
57531568b75bSmrgd
57541568b75bSmrg:bsnl
57551568b75bSmrgs/["\\]/\\&/g
57561568b75bSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
57571568b75bSmrgD["\1"]=" \3\\\\\\n"\\/p
57581568b75bSmrgt cont
57591568b75bSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
57601568b75bSmrgt cont
57611568b75bSmrgd
57621568b75bSmrg:cont
57631568b75bSmrgn
57641568b75bSmrgs/.\{148\}/&'"$ac_delim"'/g
57651568b75bSmrgt clear
57661568b75bSmrg:clear
57671568b75bSmrgs/\\$//
57681568b75bSmrgt bsnlc
57691568b75bSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
57701568b75bSmrgd
57711568b75bSmrg:bsnlc
57721568b75bSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
57731568b75bSmrgb cont
57741568b75bSmrg' <confdefs.h | sed '
57751568b75bSmrgs/'"$ac_delim"'/"\\\
57761568b75bSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
57771568b75bSmrg
57781568b75bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57791568b75bSmrg  for (key in D) D_is_set[key] = 1
57801568b75bSmrg  FS = ""
57811568b75bSmrg}
57821568b75bSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
57831568b75bSmrg  line = \$ 0
57841568b75bSmrg  split(line, arg, " ")
57851568b75bSmrg  if (arg[1] == "#") {
57861568b75bSmrg    defundef = arg[2]
57871568b75bSmrg    mac1 = arg[3]
57881568b75bSmrg  } else {
57891568b75bSmrg    defundef = substr(arg[1], 2)
57901568b75bSmrg    mac1 = arg[2]
57911568b75bSmrg  }
57921568b75bSmrg  split(mac1, mac2, "(") #)
57931568b75bSmrg  macro = mac2[1]
57941568b75bSmrg  prefix = substr(line, 1, index(line, defundef) - 1)
57951568b75bSmrg  if (D_is_set[macro]) {
57961568b75bSmrg    # Preserve the white space surrounding the "#".
57971568b75bSmrg    print prefix "define", macro P[macro] D[macro]
57981568b75bSmrg    next
57991568b75bSmrg  } else {
58001568b75bSmrg    # Replace #undef with comments.  This is necessary, for example,
58011568b75bSmrg    # in the case of _POSIX_SOURCE, which is predefined and required
58021568b75bSmrg    # on some systems where configure will not decide to define it.
58031568b75bSmrg    if (defundef == "undef") {
58041568b75bSmrg      print "/*", prefix defundef, macro, "*/"
58051568b75bSmrg      next
58061568b75bSmrg    }
58071568b75bSmrg  }
58081568b75bSmrg}
58091568b75bSmrg{ print }
58101568b75bSmrg_ACAWK
58111568b75bSmrg_ACEOF
58121568b75bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
58131568b75bSmrg  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
58141568b75bSmrg$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
58151568b75bSmrg   { (exit 1); exit 1; }; }
58161568b75bSmrgfi # test -n "$CONFIG_HEADERS"
58177d5e3a19Smrg
58181568b75bSmrg
58191568b75bSmrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
58201568b75bSmrgshift
58217d5e3a19Smrgfor ac_tag
58227d5e3a19Smrgdo
58237d5e3a19Smrg  case $ac_tag in
58247d5e3a19Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
58257d5e3a19Smrg  esac
58267d5e3a19Smrg  case $ac_mode$ac_tag in
58271568b75bSmrg  :[FHL]*:*);;
58281568b75bSmrg  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
58297d5e3a19Smrg$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
58307d5e3a19Smrg   { (exit 1); exit 1; }; };;
58317d5e3a19Smrg  :[FH]-) ac_tag=-:-;;
58327d5e3a19Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
58337d5e3a19Smrg  esac
58347d5e3a19Smrg  ac_save_IFS=$IFS
58357d5e3a19Smrg  IFS=:
58367d5e3a19Smrg  set x $ac_tag
58377d5e3a19Smrg  IFS=$ac_save_IFS
58387d5e3a19Smrg  shift
58397d5e3a19Smrg  ac_file=$1
58407d5e3a19Smrg  shift
58417d5e3a19Smrg
58427d5e3a19Smrg  case $ac_mode in
58437d5e3a19Smrg  :L) ac_source=$1;;
58447d5e3a19Smrg  :[FH])
58457d5e3a19Smrg    ac_file_inputs=
58467d5e3a19Smrg    for ac_f
58477d5e3a19Smrg    do
58487d5e3a19Smrg      case $ac_f in
58497d5e3a19Smrg      -) ac_f="$tmp/stdin";;
58507d5e3a19Smrg      *) # Look for the file first in the build tree, then in the source tree
58517d5e3a19Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
58527d5e3a19Smrg	 # because $ac_f cannot contain `:'.
58537d5e3a19Smrg	 test -f "$ac_f" ||
58547d5e3a19Smrg	   case $ac_f in
58557d5e3a19Smrg	   [\\/$]*) false;;
58567d5e3a19Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
58571568b75bSmrg	   esac ||
58581568b75bSmrg	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
58597d5e3a19Smrg$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
58607d5e3a19Smrg   { (exit 1); exit 1; }; };;
58611568b75bSmrg      esac
58621568b75bSmrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
58637d5e3a19Smrg      ac_file_inputs="$ac_file_inputs '$ac_f'"
58647d5e3a19Smrg    done
58657d5e3a19Smrg
58667d5e3a19Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
58677d5e3a19Smrg    # use $as_me), people would be surprised to read:
58681568b75bSmrg    #    /* config.h.  Generated by config.status.  */
58691568b75bSmrg    configure_input='Generated from '`
58701568b75bSmrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
58717d5e3a19Smrg	`' by configure.'
58727d5e3a19Smrg    if test x"$ac_file" != x-; then
58731568b75bSmrg      configure_input="$ac_file.  $configure_input"
58741568b75bSmrg      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
58757d5e3a19Smrg$as_echo "$as_me: creating $ac_file" >&6;}
58761568b75bSmrg    fi
58771568b75bSmrg    # Neutralize special characters interpreted by sed in replacement strings.
58781568b75bSmrg    case $configure_input in #(
58791568b75bSmrg    *\&* | *\|* | *\\* )
58801568b75bSmrg       ac_sed_conf_input=`$as_echo "$configure_input" |
58811568b75bSmrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
58821568b75bSmrg    *) ac_sed_conf_input=$configure_input;;
58837d5e3a19Smrg    esac
58847d5e3a19Smrg
58851568b75bSmrg    case $ac_tag in
58861568b75bSmrg    *:-:* | *:-) cat >"$tmp/stdin" \
58871568b75bSmrg      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
58881568b75bSmrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
58897d5e3a19Smrg   { (exit 1); exit 1; }; } ;;
58907d5e3a19Smrg    esac
58917d5e3a19Smrg    ;;
58927d5e3a19Smrg  esac
58937d5e3a19Smrg
58947d5e3a19Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
58957d5e3a19Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
58967d5e3a19Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
58977d5e3a19Smrg	 X"$ac_file" : 'X\(//\)$' \| \
58981568b75bSmrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
58997d5e3a19Smrg$as_echo X"$ac_file" |
59007d5e3a19Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
59017d5e3a19Smrg	    s//\1/
59027d5e3a19Smrg	    q
59037d5e3a19Smrg	  }
59047d5e3a19Smrg	  /^X\(\/\/\)[^/].*/{
59057d5e3a19Smrg	    s//\1/
59067d5e3a19Smrg	    q
59077d5e3a19Smrg	  }
59087d5e3a19Smrg	  /^X\(\/\/\)$/{
59097d5e3a19Smrg	    s//\1/
59107d5e3a19Smrg	    q
59117d5e3a19Smrg	  }
59127d5e3a19Smrg	  /^X\(\/\).*/{
59137d5e3a19Smrg	    s//\1/
59147d5e3a19Smrg	    q
59157d5e3a19Smrg	  }
59167d5e3a19Smrg	  s/.*/./; q'`
59177d5e3a19Smrg  { as_dir="$ac_dir"
59187d5e3a19Smrg  case $as_dir in #(
59197d5e3a19Smrg  -*) as_dir=./$as_dir;;
59207d5e3a19Smrg  esac
59217d5e3a19Smrg  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
59227d5e3a19Smrg    as_dirs=
59237d5e3a19Smrg    while :; do
59241568b75bSmrg      case $as_dir in #(
59257d5e3a19Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
59267d5e3a19Smrg      *) as_qdir=$as_dir;;
59277d5e3a19Smrg      esac
59287d5e3a19Smrg      as_dirs="'$as_qdir' $as_dirs"
59297d5e3a19Smrg      as_dir=`$as_dirname -- "$as_dir" ||
59307d5e3a19Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
59317d5e3a19Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
59327d5e3a19Smrg	 X"$as_dir" : 'X\(//\)$' \| \
59331568b75bSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
59347d5e3a19Smrg$as_echo X"$as_dir" |
59357d5e3a19Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
59367d5e3a19Smrg	    s//\1/
59377d5e3a19Smrg	    q
59387d5e3a19Smrg	  }
59397d5e3a19Smrg	  /^X\(\/\/\)[^/].*/{
59407d5e3a19Smrg	    s//\1/
59417d5e3a19Smrg	    q
59427d5e3a19Smrg	  }
59437d5e3a19Smrg	  /^X\(\/\/\)$/{
59447d5e3a19Smrg	    s//\1/
59457d5e3a19Smrg	    q
59467d5e3a19Smrg	  }
59477d5e3a19Smrg	  /^X\(\/\).*/{
59487d5e3a19Smrg	    s//\1/
59497d5e3a19Smrg	    q
59507d5e3a19Smrg	  }
59517d5e3a19Smrg	  s/.*/./; q'`
59527d5e3a19Smrg      test -d "$as_dir" && break
59537d5e3a19Smrg    done
59541568b75bSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
59551568b75bSmrg  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
59567d5e3a19Smrg$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
59577d5e3a19Smrg   { (exit 1); exit 1; }; }; }
59587d5e3a19Smrg  ac_builddir=.
59597d5e3a19Smrg
59607d5e3a19Smrgcase "$ac_dir" in
59617d5e3a19Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
59621568b75bSmrg*)
59637d5e3a19Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
59641568b75bSmrg  # A ".." for each directory in $ac_dir_suffix.
59657d5e3a19Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
59667d5e3a19Smrg  case $ac_top_builddir_sub in
59677d5e3a19Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
59687d5e3a19Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
59697d5e3a19Smrg  esac ;;
59707d5e3a19Smrgesac
59717d5e3a19Smrgac_abs_top_builddir=$ac_pwd
59727d5e3a19Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
59737d5e3a19Smrg# for backward compatibility:
59747d5e3a19Smrgac_top_builddir=$ac_top_build_prefix
59757d5e3a19Smrg
59767d5e3a19Smrgcase $srcdir in
59777d5e3a19Smrg  .)  # We are building in place.
59787d5e3a19Smrg    ac_srcdir=.
59797d5e3a19Smrg    ac_top_srcdir=$ac_top_builddir_sub
59807d5e3a19Smrg    ac_abs_top_srcdir=$ac_pwd ;;
59817d5e3a19Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
59827d5e3a19Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
59837d5e3a19Smrg    ac_top_srcdir=$srcdir
59847d5e3a19Smrg    ac_abs_top_srcdir=$srcdir ;;
59857d5e3a19Smrg  *) # Relative name.
59867d5e3a19Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
59877d5e3a19Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
59887d5e3a19Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
59897d5e3a19Smrgesac
59907d5e3a19Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
59917d5e3a19Smrg
59927d5e3a19Smrg
59937d5e3a19Smrg  case $ac_mode in
59947d5e3a19Smrg  :F)
59957d5e3a19Smrg  #
59967d5e3a19Smrg  # CONFIG_FILE
59977d5e3a19Smrg  #
59987d5e3a19Smrg
59997d5e3a19Smrg  case $INSTALL in
60007d5e3a19Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
60017d5e3a19Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
60027d5e3a19Smrg  esac
60037d5e3a19Smrg  ac_MKDIR_P=$MKDIR_P
60047d5e3a19Smrg  case $MKDIR_P in
60057d5e3a19Smrg  [\\/$]* | ?:[\\/]* ) ;;
60067d5e3a19Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
60077d5e3a19Smrg  esac
60087d5e3a19Smrg_ACEOF
60091568b75bSmrg
60107d5e3a19Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
60117d5e3a19Smrg# If the template does not know about datarootdir, expand it.
60127d5e3a19Smrg# FIXME: This hack should be removed a few years after 2.60.
60137d5e3a19Smrgac_datarootdir_hack=; ac_datarootdir_seen=
60141568b75bSmrg
60151568b75bSmrgac_sed_dataroot='
60167d5e3a19Smrg/datarootdir/ {
60177d5e3a19Smrg  p
60187d5e3a19Smrg  q
60197d5e3a19Smrg}
60207d5e3a19Smrg/@datadir@/p
60217d5e3a19Smrg/@docdir@/p
60227d5e3a19Smrg/@infodir@/p
60237d5e3a19Smrg/@localedir@/p
60241568b75bSmrg/@mandir@/p
60251568b75bSmrg'
60267d5e3a19Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
60277d5e3a19Smrg*datarootdir*) ac_datarootdir_seen=yes;;
60281568b75bSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
60291568b75bSmrg  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
60307d5e3a19Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
60311568b75bSmrg_ACEOF
60327d5e3a19Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
60337d5e3a19Smrg  ac_datarootdir_hack='
60347d5e3a19Smrg  s&@datadir@&$datadir&g
60357d5e3a19Smrg  s&@docdir@&$docdir&g
60367d5e3a19Smrg  s&@infodir@&$infodir&g
60377d5e3a19Smrg  s&@localedir@&$localedir&g
60387d5e3a19Smrg  s&@mandir@&$mandir&g
60397d5e3a19Smrg    s&\\\${datarootdir}&$datarootdir&g' ;;
60407d5e3a19Smrgesac
60417d5e3a19Smrg_ACEOF
60427d5e3a19Smrg
60437d5e3a19Smrg# Neutralize VPATH when `$srcdir' = `.'.
60447d5e3a19Smrg# Shell code in configure.ac might set extrasub.
60451568b75bSmrg# FIXME: do we really want to maintain this feature?
60461568b75bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
60477d5e3a19Smrgac_sed_extra="$ac_vpsub
60487d5e3a19Smrg$extrasub
60491568b75bSmrg_ACEOF
60507d5e3a19Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
60517d5e3a19Smrg:t
60521568b75bSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
60537d5e3a19Smrgs|@configure_input@|$ac_sed_conf_input|;t t
60541568b75bSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t
60557d5e3a19Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
60567d5e3a19Smrgs&@srcdir@&$ac_srcdir&;t t
60577d5e3a19Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
60587d5e3a19Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
60597d5e3a19Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
60607d5e3a19Smrgs&@builddir@&$ac_builddir&;t t
60617d5e3a19Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
60627d5e3a19Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
60637d5e3a19Smrgs&@INSTALL@&$ac_INSTALL&;t t
60647d5e3a19Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
60651568b75bSmrg$ac_datarootdir_hack
60661568b75bSmrg"
60671568b75bSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
60681568b75bSmrg  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
60691568b75bSmrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
60707d5e3a19Smrg   { (exit 1); exit 1; }; }
60717d5e3a19Smrg
60727d5e3a19Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
60737d5e3a19Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
60741568b75bSmrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
60757d5e3a19Smrg  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
60761568b75bSmrgwhich seems to be undefined.  Please make sure it is defined." >&5
60777d5e3a19Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
60787d5e3a19Smrgwhich seems to be undefined.  Please make sure it is defined." >&2;}
60797d5e3a19Smrg
60807d5e3a19Smrg  rm -f "$tmp/stdin"
60811568b75bSmrg  case $ac_file in
60821568b75bSmrg  -) cat "$tmp/out" && rm -f "$tmp/out";;
60831568b75bSmrg  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
60841568b75bSmrg  esac \
60851568b75bSmrg  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
60861568b75bSmrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
60877d5e3a19Smrg   { (exit 1); exit 1; }; }
60887d5e3a19Smrg ;;
60897d5e3a19Smrg  :H)
60907d5e3a19Smrg  #
60917d5e3a19Smrg  # CONFIG_HEADER
60927d5e3a19Smrg  #
60931568b75bSmrg  if test x"$ac_file" != x-; then
60941568b75bSmrg    {
60951568b75bSmrg      $as_echo "/* $configure_input  */" \
60961568b75bSmrg      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
60971568b75bSmrg    } >"$tmp/config.h" \
60981568b75bSmrg      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
60991568b75bSmrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
61001568b75bSmrg   { (exit 1); exit 1; }; }
61011568b75bSmrg    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
61021568b75bSmrg      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
61037d5e3a19Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
61041568b75bSmrg    else
61051568b75bSmrg      rm -f "$ac_file"
61061568b75bSmrg      mv "$tmp/config.h" "$ac_file" \
61071568b75bSmrg	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
61081568b75bSmrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
61097d5e3a19Smrg   { (exit 1); exit 1; }; }
61107d5e3a19Smrg    fi
61111568b75bSmrg  else
61121568b75bSmrg    $as_echo "/* $configure_input  */" \
61131568b75bSmrg      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
61141568b75bSmrg      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
61151568b75bSmrg$as_echo "$as_me: error: could not create -" >&2;}
61167d5e3a19Smrg   { (exit 1); exit 1; }; }
61171568b75bSmrg  fi
61181568b75bSmrg# Compute "$ac_file"'s index in $config_headers.
61197d5e3a19Smrg_am_arg="$ac_file"
61207d5e3a19Smrg_am_stamp_count=1
61217d5e3a19Smrgfor _am_header in $config_headers :; do
61221568b75bSmrg  case $_am_header in
61237d5e3a19Smrg    $_am_arg | $_am_arg:* )
61247d5e3a19Smrg      break ;;
61257d5e3a19Smrg    * )
61267d5e3a19Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
61277d5e3a19Smrg  esac
61281568b75bSmrgdone
61291568b75bSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
61301568b75bSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
61311568b75bSmrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
61321568b75bSmrg	 X"$_am_arg" : 'X\(//\)$' \| \
61331568b75bSmrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
61347d5e3a19Smrg$as_echo X"$_am_arg" |
61357d5e3a19Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
61367d5e3a19Smrg	    s//\1/
61377d5e3a19Smrg	    q
61387d5e3a19Smrg	  }
61397d5e3a19Smrg	  /^X\(\/\/\)[^/].*/{
61407d5e3a19Smrg	    s//\1/
61417d5e3a19Smrg	    q
61427d5e3a19Smrg	  }
61437d5e3a19Smrg	  /^X\(\/\/\)$/{
61447d5e3a19Smrg	    s//\1/
61457d5e3a19Smrg	    q
61467d5e3a19Smrg	  }
61477d5e3a19Smrg	  /^X\(\/\).*/{
61487d5e3a19Smrg	    s//\1/
61497d5e3a19Smrg	    q
61507d5e3a19Smrg	  }
61517d5e3a19Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
61527d5e3a19Smrg ;;
61531568b75bSmrg
61541568b75bSmrg  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
61557d5e3a19Smrg$as_echo "$as_me: executing $ac_file commands" >&6;}
61567d5e3a19Smrg ;;
61577d5e3a19Smrg  esac
61587d5e3a19Smrg
61597d5e3a19Smrg
61601568b75bSmrg  case $ac_file$ac_mode in
61611568b75bSmrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
61621568b75bSmrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
61631568b75bSmrg  # are listed without --file.  Let's play safe and only enable the eval
61641568b75bSmrg  # if we detect the quoting.
61651568b75bSmrg  case $CONFIG_FILES in
61661568b75bSmrg  *\'*) eval set x "$CONFIG_FILES" ;;
61671568b75bSmrg  *)   set x $CONFIG_FILES ;;
61681568b75bSmrg  esac
61691568b75bSmrg  shift
61701568b75bSmrg  for mf
61711568b75bSmrg  do
61721568b75bSmrg    # Strip MF so we end up with the name of the file.
61731568b75bSmrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
61741568b75bSmrg    # Check whether this is an Automake generated Makefile or not.
61751568b75bSmrg    # We used to match only the files named `Makefile.in', but
61761568b75bSmrg    # some people rename them; so instead we look at the file content.
61771568b75bSmrg    # Grep'ing the first line is not enough: some people post-process
61781568b75bSmrg    # each Makefile.in and add a new line on top of each file to say so.
61791568b75bSmrg    # Grep'ing the whole file is not good either: AIX grep has a line
61801568b75bSmrg    # limit of 2048, but all sed's we know have understand at least 4000.
61811568b75bSmrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
61827d5e3a19Smrg      dirpart=`$as_dirname -- "$mf" ||
61837d5e3a19Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
61847d5e3a19Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
61857d5e3a19Smrg	 X"$mf" : 'X\(//\)$' \| \
61861568b75bSmrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
61877d5e3a19Smrg$as_echo X"$mf" |
61887d5e3a19Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
61897d5e3a19Smrg	    s//\1/
61907d5e3a19Smrg	    q
61917d5e3a19Smrg	  }
61927d5e3a19Smrg	  /^X\(\/\/\)[^/].*/{
61937d5e3a19Smrg	    s//\1/
61947d5e3a19Smrg	    q
61957d5e3a19Smrg	  }
61967d5e3a19Smrg	  /^X\(\/\/\)$/{
61977d5e3a19Smrg	    s//\1/
61987d5e3a19Smrg	    q
61997d5e3a19Smrg	  }
62007d5e3a19Smrg	  /^X\(\/\).*/{
62017d5e3a19Smrg	    s//\1/
62027d5e3a19Smrg	    q
62037d5e3a19Smrg	  }
62041568b75bSmrg	  s/.*/./; q'`
62051568b75bSmrg    else
62061568b75bSmrg      continue
62071568b75bSmrg    fi
62081568b75bSmrg    # Extract the definition of DEPDIR, am__include, and am__quote
62091568b75bSmrg    # from the Makefile without running `make'.
62101568b75bSmrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
62111568b75bSmrg    test -z "$DEPDIR" && continue
62121568b75bSmrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
62131568b75bSmrg    test -z "am__include" && continue
62141568b75bSmrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
62151568b75bSmrg    # When using ansi2knr, U may be empty or an underscore; expand it
62161568b75bSmrg    U=`sed -n 's/^U = //p' < "$mf"`
62171568b75bSmrg    # Find all dependency output files, they are included files with
62181568b75bSmrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
62191568b75bSmrg    # simplest approach to changing $(DEPDIR) to its actual value in the
62201568b75bSmrg    # expansion.
62211568b75bSmrg    for file in `sed -n "
62221568b75bSmrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
62231568b75bSmrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
62241568b75bSmrg      # Make sure the directory exists.
62251568b75bSmrg      test -f "$dirpart/$file" && continue
62267d5e3a19Smrg      fdir=`$as_dirname -- "$file" ||
62277d5e3a19Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
62287d5e3a19Smrg	 X"$file" : 'X\(//\)[^/]' \| \
62297d5e3a19Smrg	 X"$file" : 'X\(//\)$' \| \
62301568b75bSmrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
62317d5e3a19Smrg$as_echo X"$file" |
62327d5e3a19Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
62337d5e3a19Smrg	    s//\1/
62347d5e3a19Smrg	    q
62357d5e3a19Smrg	  }
62367d5e3a19Smrg	  /^X\(\/\/\)[^/].*/{
62377d5e3a19Smrg	    s//\1/
62387d5e3a19Smrg	    q
62397d5e3a19Smrg	  }
62407d5e3a19Smrg	  /^X\(\/\/\)$/{
62417d5e3a19Smrg	    s//\1/
62427d5e3a19Smrg	    q
62437d5e3a19Smrg	  }
62447d5e3a19Smrg	  /^X\(\/\).*/{
62457d5e3a19Smrg	    s//\1/
62467d5e3a19Smrg	    q
62477d5e3a19Smrg	  }
62481568b75bSmrg	  s/.*/./; q'`
62497d5e3a19Smrg      { as_dir=$dirpart/$fdir
62507d5e3a19Smrg  case $as_dir in #(
62517d5e3a19Smrg  -*) as_dir=./$as_dir;;
62527d5e3a19Smrg  esac
62537d5e3a19Smrg  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
62547d5e3a19Smrg    as_dirs=
62557d5e3a19Smrg    while :; do
62561568b75bSmrg      case $as_dir in #(
62577d5e3a19Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
62587d5e3a19Smrg      *) as_qdir=$as_dir;;
62597d5e3a19Smrg      esac
62607d5e3a19Smrg      as_dirs="'$as_qdir' $as_dirs"
62617d5e3a19Smrg      as_dir=`$as_dirname -- "$as_dir" ||
62627d5e3a19Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
62637d5e3a19Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
62647d5e3a19Smrg	 X"$as_dir" : 'X\(//\)$' \| \
62651568b75bSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
62667d5e3a19Smrg$as_echo X"$as_dir" |
62677d5e3a19Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
62687d5e3a19Smrg	    s//\1/
62697d5e3a19Smrg	    q
62707d5e3a19Smrg	  }
62717d5e3a19Smrg	  /^X\(\/\/\)[^/].*/{
62727d5e3a19Smrg	    s//\1/
62737d5e3a19Smrg	    q
62747d5e3a19Smrg	  }
62757d5e3a19Smrg	  /^X\(\/\/\)$/{
62767d5e3a19Smrg	    s//\1/
62777d5e3a19Smrg	    q
62787d5e3a19Smrg	  }
62797d5e3a19Smrg	  /^X\(\/\).*/{
62807d5e3a19Smrg	    s//\1/
62817d5e3a19Smrg	    q
62827d5e3a19Smrg	  }
62837d5e3a19Smrg	  s/.*/./; q'`
62847d5e3a19Smrg      test -d "$as_dir" && break
62857d5e3a19Smrg    done
62861568b75bSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
62871568b75bSmrg  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
62887d5e3a19Smrg$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
62891568b75bSmrg   { (exit 1); exit 1; }; }; }
62901568b75bSmrg      # echo "creating $dirpart/$file"
62911568b75bSmrg      echo '# dummy' > "$dirpart/$file"
62927d5e3a19Smrg    done
62931568b75bSmrg  done
62947d5e3a19Smrg}
62957d5e3a19Smrg ;;
62967d5e3a19Smrg
62977d5e3a19Smrg  esac
62987d5e3a19Smrgdone # for ac_tag
62997d5e3a19Smrg
63007d5e3a19Smrg
63017d5e3a19Smrg{ (exit 0); exit 0; }
63027d5e3a19Smrg_ACEOF
63037d5e3a19Smrgchmod +x $CONFIG_STATUS
63047d5e3a19Smrgac_clean_files=$ac_clean_files_save
63051568b75bSmrg
63061568b75bSmrgtest $ac_write_fail = 0 ||
63071568b75bSmrg  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
63081568b75bSmrg$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
63091568b75bSmrg   { (exit 1); exit 1; }; }
63107d5e3a19Smrg
63117d5e3a19Smrg
63127d5e3a19Smrg# configure is writing to config.log, and then calls config.status.
63137d5e3a19Smrg# config.status does its own redirection, appending to config.log.
63147d5e3a19Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
63157d5e3a19Smrg# by configure, so config.status won't be able to write to it; its
63167d5e3a19Smrg# output is simply discarded.  So we exec the FD to /dev/null,
63177d5e3a19Smrg# effectively closing config.log, so it can be properly (re)opened and
63187d5e3a19Smrg# appended to by config.status.  When coming back to configure, we
63197d5e3a19Smrg# need to make the FD available again.
63207d5e3a19Smrgif test "$no_create" != yes; then
63217d5e3a19Smrg  ac_cs_success=:
63227d5e3a19Smrg  ac_config_status_args=
63237d5e3a19Smrg  test "$silent" = yes &&
63247d5e3a19Smrg    ac_config_status_args="$ac_config_status_args --quiet"
63257d5e3a19Smrg  exec 5>/dev/null
63267d5e3a19Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
63277d5e3a19Smrg  exec 5>>config.log
63287d5e3a19Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
63297d5e3a19Smrg  # would make configure fail if this is the last instruction.
63307d5e3a19Smrg  $ac_cs_success || { (exit 1); exit 1; }
63311568b75bSmrgfi
63321568b75bSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
63331568b75bSmrg  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
63341568b75bSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
63357d5e3a19Smrgfi
6336
6337