configure revision dd77ae96
172b4363aSmrg#! /bin/sh
272b4363aSmrg# Guess values for system-dependent variables and create Makefiles.
3dd77ae96Smrg# Generated by GNU Autoconf 2.63 for xgamma 1.0.3.
472b4363aSmrg#
572b4363aSmrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
672b4363aSmrg#
772b4363aSmrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8dd77ae96Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
972b4363aSmrg# This configure script is free software; the Free Software Foundation
1072b4363aSmrg# gives unlimited permission to copy, distribute and modify it.
1172b4363aSmrg## --------------------- ##
1272b4363aSmrg## M4sh Initialization.  ##
1372b4363aSmrg## --------------------- ##
1472b4363aSmrg
1572b4363aSmrg# Be more Bourne compatible
1672b4363aSmrgDUALCASE=1; export DUALCASE # for MKS sh
1772b4363aSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1872b4363aSmrg  emulate sh
1972b4363aSmrg  NULLCMD=:
20dd77ae96Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2172b4363aSmrg  # is contrary to our usage.  Disable this feature.
2272b4363aSmrg  alias -g '${1+"$@"}'='"$@"'
2372b4363aSmrg  setopt NO_GLOB_SUBST
2472b4363aSmrgelse
2572b4363aSmrg  case `(set -o) 2>/dev/null` in
2672b4363aSmrg  *posix*) set -o posix ;;
2772b4363aSmrgesac
2872b4363aSmrg
2972b4363aSmrgfi
3072b4363aSmrg
3172b4363aSmrg
3272b4363aSmrg
3372b4363aSmrg
3472b4363aSmrg# PATH needs CR
3572b4363aSmrg# Avoid depending upon Character Ranges.
3672b4363aSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
3772b4363aSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3872b4363aSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
3972b4363aSmrgas_cr_digits='0123456789'
4072b4363aSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
4172b4363aSmrg
42dd77ae96Smrgas_nl='
43dd77ae96Smrg'
44dd77ae96Smrgexport as_nl
45dd77ae96Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
46dd77ae96Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47dd77ae96Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48dd77ae96Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49dd77ae96Smrgif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50dd77ae96Smrg  as_echo='printf %s\n'
51dd77ae96Smrg  as_echo_n='printf %s'
52dd77ae96Smrgelse
53dd77ae96Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54dd77ae96Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55dd77ae96Smrg    as_echo_n='/usr/ucb/echo -n'
5672b4363aSmrg  else
57dd77ae96Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58dd77ae96Smrg    as_echo_n_body='eval
59dd77ae96Smrg      arg=$1;
60dd77ae96Smrg      case $arg in
61dd77ae96Smrg      *"$as_nl"*)
62dd77ae96Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
63dd77ae96Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64dd77ae96Smrg      esac;
65dd77ae96Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66dd77ae96Smrg    '
67dd77ae96Smrg    export as_echo_n_body
68dd77ae96Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
6972b4363aSmrg  fi
70dd77ae96Smrg  export as_echo_body
71dd77ae96Smrg  as_echo='sh -c $as_echo_body as_echo'
72dd77ae96Smrgfi
73dd77ae96Smrg
74dd77ae96Smrg# The user is always right.
75dd77ae96Smrgif test "${PATH_SEPARATOR+set}" != set; then
76dd77ae96Smrg  PATH_SEPARATOR=:
77dd77ae96Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78dd77ae96Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79dd77ae96Smrg      PATH_SEPARATOR=';'
80dd77ae96Smrg  }
8172b4363aSmrgfi
8272b4363aSmrg
8372b4363aSmrg# Support unset when possible.
8472b4363aSmrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8572b4363aSmrg  as_unset=unset
8672b4363aSmrgelse
8772b4363aSmrg  as_unset=false
8872b4363aSmrgfi
8972b4363aSmrg
9072b4363aSmrg
9172b4363aSmrg# IFS
9272b4363aSmrg# We need space, tab and new line, in precisely that order.  Quoting is
9372b4363aSmrg# there to prevent editors from complaining about space-tab.
9472b4363aSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9572b4363aSmrg# splitting by setting IFS to empty value.)
9672b4363aSmrgIFS=" ""	$as_nl"
9772b4363aSmrg
9872b4363aSmrg# Find who we are.  Look in the path if we contain no directory separator.
9972b4363aSmrgcase $0 in
10072b4363aSmrg  *[\\/]* ) as_myself=$0 ;;
10172b4363aSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10272b4363aSmrgfor as_dir in $PATH
10372b4363aSmrgdo
10472b4363aSmrg  IFS=$as_save_IFS
10572b4363aSmrg  test -z "$as_dir" && as_dir=.
10672b4363aSmrg  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10772b4363aSmrgdone
10872b4363aSmrgIFS=$as_save_IFS
10972b4363aSmrg
11072b4363aSmrg     ;;
11172b4363aSmrgesac
11272b4363aSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
11372b4363aSmrg# in which case we are not to be found in the path.
11472b4363aSmrgif test "x$as_myself" = x; then
11572b4363aSmrg  as_myself=$0
11672b4363aSmrgfi
11772b4363aSmrgif test ! -f "$as_myself"; then
118dd77ae96Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11972b4363aSmrg  { (exit 1); exit 1; }
12072b4363aSmrgfi
12172b4363aSmrg
12272b4363aSmrg# Work around bugs in pre-3.0 UWIN ksh.
12372b4363aSmrgfor as_var in ENV MAIL MAILPATH
12472b4363aSmrgdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12572b4363aSmrgdone
12672b4363aSmrgPS1='$ '
12772b4363aSmrgPS2='> '
12872b4363aSmrgPS4='+ '
12972b4363aSmrg
13072b4363aSmrg# NLS nuisances.
131dd77ae96SmrgLC_ALL=C
132dd77ae96Smrgexport LC_ALL
133dd77ae96SmrgLANGUAGE=C
134dd77ae96Smrgexport LANGUAGE
13572b4363aSmrg
13672b4363aSmrg# Required to use basename.
13772b4363aSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
13872b4363aSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13972b4363aSmrg  as_expr=expr
14072b4363aSmrgelse
14172b4363aSmrg  as_expr=false
14272b4363aSmrgfi
14372b4363aSmrg
14472b4363aSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14572b4363aSmrg  as_basename=basename
14672b4363aSmrgelse
14772b4363aSmrg  as_basename=false
14872b4363aSmrgfi
14972b4363aSmrg
15072b4363aSmrg
15172b4363aSmrg# Name of the executable.
15272b4363aSmrgas_me=`$as_basename -- "$0" ||
15372b4363aSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15472b4363aSmrg	 X"$0" : 'X\(//\)$' \| \
15572b4363aSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156dd77ae96Smrg$as_echo X/"$0" |
15772b4363aSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
15872b4363aSmrg	    s//\1/
15972b4363aSmrg	    q
16072b4363aSmrg	  }
16172b4363aSmrg	  /^X\/\(\/\/\)$/{
16272b4363aSmrg	    s//\1/
16372b4363aSmrg	    q
16472b4363aSmrg	  }
16572b4363aSmrg	  /^X\/\(\/\).*/{
16672b4363aSmrg	    s//\1/
16772b4363aSmrg	    q
16872b4363aSmrg	  }
16972b4363aSmrg	  s/.*/./; q'`
17072b4363aSmrg
17172b4363aSmrg# CDPATH.
17272b4363aSmrg$as_unset CDPATH
17372b4363aSmrg
17472b4363aSmrg
17572b4363aSmrgif test "x$CONFIG_SHELL" = x; then
17672b4363aSmrg  if (eval ":") 2>/dev/null; then
17772b4363aSmrg  as_have_required=yes
17872b4363aSmrgelse
17972b4363aSmrg  as_have_required=no
18072b4363aSmrgfi
18172b4363aSmrg
182dd77ae96Smrg  if test $as_have_required = yes &&	 (eval ":
18372b4363aSmrg(as_func_return () {
18472b4363aSmrg  (exit \$1)
18572b4363aSmrg}
18672b4363aSmrgas_func_success () {
18772b4363aSmrg  as_func_return 0
18872b4363aSmrg}
18972b4363aSmrgas_func_failure () {
19072b4363aSmrg  as_func_return 1
19172b4363aSmrg}
19272b4363aSmrgas_func_ret_success () {
19372b4363aSmrg  return 0
19472b4363aSmrg}
19572b4363aSmrgas_func_ret_failure () {
19672b4363aSmrg  return 1
19772b4363aSmrg}
19872b4363aSmrg
19972b4363aSmrgexitcode=0
20072b4363aSmrgif as_func_success; then
20172b4363aSmrg  :
20272b4363aSmrgelse
20372b4363aSmrg  exitcode=1
20472b4363aSmrg  echo as_func_success failed.
20572b4363aSmrgfi
20672b4363aSmrg
20772b4363aSmrgif as_func_failure; then
20872b4363aSmrg  exitcode=1
20972b4363aSmrg  echo as_func_failure succeeded.
21072b4363aSmrgfi
21172b4363aSmrg
21272b4363aSmrgif as_func_ret_success; then
21372b4363aSmrg  :
21472b4363aSmrgelse
21572b4363aSmrg  exitcode=1
21672b4363aSmrg  echo as_func_ret_success failed.
21772b4363aSmrgfi
21872b4363aSmrg
21972b4363aSmrgif as_func_ret_failure; then
22072b4363aSmrg  exitcode=1
22172b4363aSmrg  echo as_func_ret_failure succeeded.
22272b4363aSmrgfi
22372b4363aSmrg
22472b4363aSmrgif ( set x; as_func_ret_success y && test x = \"\$1\" ); then
22572b4363aSmrg  :
22672b4363aSmrgelse
22772b4363aSmrg  exitcode=1
22872b4363aSmrg  echo positional parameters were not saved.
22972b4363aSmrgfi
23072b4363aSmrg
23172b4363aSmrgtest \$exitcode = 0) || { (exit 1); exit 1; }
23272b4363aSmrg
23372b4363aSmrg(
23472b4363aSmrg  as_lineno_1=\$LINENO
23572b4363aSmrg  as_lineno_2=\$LINENO
23672b4363aSmrg  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
23772b4363aSmrg  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
23872b4363aSmrg") 2> /dev/null; then
23972b4363aSmrg  :
24072b4363aSmrgelse
24172b4363aSmrg  as_candidate_shells=
24272b4363aSmrg    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24372b4363aSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24472b4363aSmrgdo
24572b4363aSmrg  IFS=$as_save_IFS
24672b4363aSmrg  test -z "$as_dir" && as_dir=.
24772b4363aSmrg  case $as_dir in
24872b4363aSmrg	 /*)
24972b4363aSmrg	   for as_base in sh bash ksh sh5; do
25072b4363aSmrg	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
25172b4363aSmrg	   done;;
25272b4363aSmrg       esac
25372b4363aSmrgdone
25472b4363aSmrgIFS=$as_save_IFS
25572b4363aSmrg
25672b4363aSmrg
25772b4363aSmrg      for as_shell in $as_candidate_shells $SHELL; do
25872b4363aSmrg	 # Try only shells that exist, to save several forks.
25972b4363aSmrg	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
26072b4363aSmrg		{ ("$as_shell") 2> /dev/null <<\_ASEOF
26172b4363aSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26272b4363aSmrg  emulate sh
26372b4363aSmrg  NULLCMD=:
264dd77ae96Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26572b4363aSmrg  # is contrary to our usage.  Disable this feature.
26672b4363aSmrg  alias -g '${1+"$@"}'='"$@"'
26772b4363aSmrg  setopt NO_GLOB_SUBST
26872b4363aSmrgelse
26972b4363aSmrg  case `(set -o) 2>/dev/null` in
27072b4363aSmrg  *posix*) set -o posix ;;
27172b4363aSmrgesac
27272b4363aSmrg
27372b4363aSmrgfi
27472b4363aSmrg
27572b4363aSmrg
27672b4363aSmrg:
27772b4363aSmrg_ASEOF
27872b4363aSmrg}; then
27972b4363aSmrg  CONFIG_SHELL=$as_shell
28072b4363aSmrg	       as_have_required=yes
28172b4363aSmrg	       if { "$as_shell" 2> /dev/null <<\_ASEOF
28272b4363aSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28372b4363aSmrg  emulate sh
28472b4363aSmrg  NULLCMD=:
285dd77ae96Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28672b4363aSmrg  # is contrary to our usage.  Disable this feature.
28772b4363aSmrg  alias -g '${1+"$@"}'='"$@"'
28872b4363aSmrg  setopt NO_GLOB_SUBST
28972b4363aSmrgelse
29072b4363aSmrg  case `(set -o) 2>/dev/null` in
29172b4363aSmrg  *posix*) set -o posix ;;
29272b4363aSmrgesac
29372b4363aSmrg
29472b4363aSmrgfi
29572b4363aSmrg
29672b4363aSmrg
29772b4363aSmrg:
29872b4363aSmrg(as_func_return () {
29972b4363aSmrg  (exit $1)
30072b4363aSmrg}
30172b4363aSmrgas_func_success () {
30272b4363aSmrg  as_func_return 0
30372b4363aSmrg}
30472b4363aSmrgas_func_failure () {
30572b4363aSmrg  as_func_return 1
30672b4363aSmrg}
30772b4363aSmrgas_func_ret_success () {
30872b4363aSmrg  return 0
30972b4363aSmrg}
31072b4363aSmrgas_func_ret_failure () {
31172b4363aSmrg  return 1
31272b4363aSmrg}
31372b4363aSmrg
31472b4363aSmrgexitcode=0
31572b4363aSmrgif as_func_success; then
31672b4363aSmrg  :
31772b4363aSmrgelse
31872b4363aSmrg  exitcode=1
31972b4363aSmrg  echo as_func_success failed.
32072b4363aSmrgfi
32172b4363aSmrg
32272b4363aSmrgif as_func_failure; then
32372b4363aSmrg  exitcode=1
32472b4363aSmrg  echo as_func_failure succeeded.
32572b4363aSmrgfi
32672b4363aSmrg
32772b4363aSmrgif as_func_ret_success; then
32872b4363aSmrg  :
32972b4363aSmrgelse
33072b4363aSmrg  exitcode=1
33172b4363aSmrg  echo as_func_ret_success failed.
33272b4363aSmrgfi
33372b4363aSmrg
33472b4363aSmrgif as_func_ret_failure; then
33572b4363aSmrg  exitcode=1
33672b4363aSmrg  echo as_func_ret_failure succeeded.
33772b4363aSmrgfi
33872b4363aSmrg
33972b4363aSmrgif ( set x; as_func_ret_success y && test x = "$1" ); then
34072b4363aSmrg  :
34172b4363aSmrgelse
34272b4363aSmrg  exitcode=1
34372b4363aSmrg  echo positional parameters were not saved.
34472b4363aSmrgfi
34572b4363aSmrg
34672b4363aSmrgtest $exitcode = 0) || { (exit 1); exit 1; }
34772b4363aSmrg
34872b4363aSmrg(
34972b4363aSmrg  as_lineno_1=$LINENO
35072b4363aSmrg  as_lineno_2=$LINENO
35172b4363aSmrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
35272b4363aSmrg  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
35372b4363aSmrg
35472b4363aSmrg_ASEOF
35572b4363aSmrg}; then
35672b4363aSmrg  break
35772b4363aSmrgfi
35872b4363aSmrg
35972b4363aSmrgfi
36072b4363aSmrg
36172b4363aSmrg      done
36272b4363aSmrg
36372b4363aSmrg      if test "x$CONFIG_SHELL" != x; then
36472b4363aSmrg  for as_var in BASH_ENV ENV
365dd77ae96Smrg	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366dd77ae96Smrg	done
367dd77ae96Smrg	export CONFIG_SHELL
368dd77ae96Smrg	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
36972b4363aSmrgfi
37072b4363aSmrg
37172b4363aSmrg
37272b4363aSmrg    if test $as_have_required = no; then
37372b4363aSmrg  echo This script requires a shell more modern than all the
37472b4363aSmrg      echo shells that I found on your system.  Please install a
37572b4363aSmrg      echo modern shell, or manually run the script under such a
37672b4363aSmrg      echo shell if you do have one.
37772b4363aSmrg      { (exit 1); exit 1; }
37872b4363aSmrgfi
37972b4363aSmrg
38072b4363aSmrg
38172b4363aSmrgfi
38272b4363aSmrg
38372b4363aSmrgfi
38472b4363aSmrg
38572b4363aSmrg
38672b4363aSmrg
38772b4363aSmrg(eval "as_func_return () {
38872b4363aSmrg  (exit \$1)
38972b4363aSmrg}
39072b4363aSmrgas_func_success () {
39172b4363aSmrg  as_func_return 0
39272b4363aSmrg}
39372b4363aSmrgas_func_failure () {
39472b4363aSmrg  as_func_return 1
39572b4363aSmrg}
39672b4363aSmrgas_func_ret_success () {
39772b4363aSmrg  return 0
39872b4363aSmrg}
39972b4363aSmrgas_func_ret_failure () {
40072b4363aSmrg  return 1
40172b4363aSmrg}
40272b4363aSmrg
40372b4363aSmrgexitcode=0
40472b4363aSmrgif as_func_success; then
40572b4363aSmrg  :
40672b4363aSmrgelse
40772b4363aSmrg  exitcode=1
40872b4363aSmrg  echo as_func_success failed.
40972b4363aSmrgfi
41072b4363aSmrg
41172b4363aSmrgif as_func_failure; then
41272b4363aSmrg  exitcode=1
41372b4363aSmrg  echo as_func_failure succeeded.
41472b4363aSmrgfi
41572b4363aSmrg
41672b4363aSmrgif as_func_ret_success; then
41772b4363aSmrg  :
41872b4363aSmrgelse
41972b4363aSmrg  exitcode=1
42072b4363aSmrg  echo as_func_ret_success failed.
42172b4363aSmrgfi
42272b4363aSmrg
42372b4363aSmrgif as_func_ret_failure; then
42472b4363aSmrg  exitcode=1
42572b4363aSmrg  echo as_func_ret_failure succeeded.
42672b4363aSmrgfi
42772b4363aSmrg
42872b4363aSmrgif ( set x; as_func_ret_success y && test x = \"\$1\" ); then
42972b4363aSmrg  :
43072b4363aSmrgelse
43172b4363aSmrg  exitcode=1
43272b4363aSmrg  echo positional parameters were not saved.
43372b4363aSmrgfi
43472b4363aSmrg
43572b4363aSmrgtest \$exitcode = 0") || {
43672b4363aSmrg  echo No shell found that supports shell functions.
437dd77ae96Smrg  echo Please tell bug-autoconf@gnu.org about your system,
438dd77ae96Smrg  echo including any error possibly output before this message.
439dd77ae96Smrg  echo This can help us improve future autoconf versions.
440dd77ae96Smrg  echo Configuration will now proceed without shell functions.
44172b4363aSmrg}
44272b4363aSmrg
44372b4363aSmrg
44472b4363aSmrg
44572b4363aSmrg  as_lineno_1=$LINENO
44672b4363aSmrg  as_lineno_2=$LINENO
44772b4363aSmrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
44872b4363aSmrg  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
44972b4363aSmrg
45072b4363aSmrg  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45172b4363aSmrg  # uniformly replaced by the line number.  The first 'sed' inserts a
45272b4363aSmrg  # line-number line after each line using $LINENO; the second 'sed'
45372b4363aSmrg  # does the real work.  The second script uses 'N' to pair each
45472b4363aSmrg  # line-number line with the line containing $LINENO, and appends
45572b4363aSmrg  # trailing '-' during substitution so that $LINENO is not a special
45672b4363aSmrg  # case at line end.
45772b4363aSmrg  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45872b4363aSmrg  # scripts with optimization help from Paolo Bonzini.  Blame Lee
45972b4363aSmrg  # E. McMahon (1931-1989) for sed's syntax.  :-)
46072b4363aSmrg  sed -n '
46172b4363aSmrg    p
46272b4363aSmrg    /[$]LINENO/=
46372b4363aSmrg  ' <$as_myself |
46472b4363aSmrg    sed '
46572b4363aSmrg      s/[$]LINENO.*/&-/
46672b4363aSmrg      t lineno
46772b4363aSmrg      b
46872b4363aSmrg      :lineno
46972b4363aSmrg      N
47072b4363aSmrg      :loop
47172b4363aSmrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
47272b4363aSmrg      t loop
47372b4363aSmrg      s/-\n.*//
47472b4363aSmrg    ' >$as_me.lineno &&
47572b4363aSmrg  chmod +x "$as_me.lineno" ||
476dd77ae96Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
47772b4363aSmrg   { (exit 1); exit 1; }; }
47872b4363aSmrg
47972b4363aSmrg  # Don't try to exec as it changes $[0], causing all sort of problems
48072b4363aSmrg  # (the dirname of $[0] is not the place where we might find the
48172b4363aSmrg  # original and so on.  Autoconf is especially sensitive to this).
48272b4363aSmrg  . "./$as_me.lineno"
48372b4363aSmrg  # Exit status is that of the last command.
48472b4363aSmrg  exit
48572b4363aSmrg}
48672b4363aSmrg
48772b4363aSmrg
48872b4363aSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
48972b4363aSmrg  as_dirname=dirname
49072b4363aSmrgelse
49172b4363aSmrg  as_dirname=false
49272b4363aSmrgfi
49372b4363aSmrg
49472b4363aSmrgECHO_C= ECHO_N= ECHO_T=
49572b4363aSmrgcase `echo -n x` in
49672b4363aSmrg-n*)
49772b4363aSmrg  case `echo 'x\c'` in
49872b4363aSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
49972b4363aSmrg  *)   ECHO_C='\c';;
50072b4363aSmrg  esac;;
50172b4363aSmrg*)
50272b4363aSmrg  ECHO_N='-n';;
50372b4363aSmrgesac
50472b4363aSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
50572b4363aSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
50672b4363aSmrg  as_expr=expr
50772b4363aSmrgelse
50872b4363aSmrg  as_expr=false
50972b4363aSmrgfi
51072b4363aSmrg
51172b4363aSmrgrm -f conf$$ conf$$.exe conf$$.file
51272b4363aSmrgif test -d conf$$.dir; then
51372b4363aSmrg  rm -f conf$$.dir/conf$$.file
51472b4363aSmrgelse
51572b4363aSmrg  rm -f conf$$.dir
516dd77ae96Smrg  mkdir conf$$.dir 2>/dev/null
517dd77ae96Smrgfi
518dd77ae96Smrgif (echo >conf$$.file) 2>/dev/null; then
519dd77ae96Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
520dd77ae96Smrg    as_ln_s='ln -s'
521dd77ae96Smrg    # ... but there are two gotchas:
522dd77ae96Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523dd77ae96Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524dd77ae96Smrg    # In both cases, we have to default to `cp -p'.
525dd77ae96Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526dd77ae96Smrg      as_ln_s='cp -p'
527dd77ae96Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
528dd77ae96Smrg    as_ln_s=ln
529dd77ae96Smrg  else
53072b4363aSmrg    as_ln_s='cp -p'
531dd77ae96Smrg  fi
53272b4363aSmrgelse
53372b4363aSmrg  as_ln_s='cp -p'
53472b4363aSmrgfi
53572b4363aSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
53672b4363aSmrgrmdir conf$$.dir 2>/dev/null
53772b4363aSmrg
53872b4363aSmrgif mkdir -p . 2>/dev/null; then
53972b4363aSmrg  as_mkdir_p=:
54072b4363aSmrgelse
54172b4363aSmrg  test -d ./-p && rmdir ./-p
54272b4363aSmrg  as_mkdir_p=false
54372b4363aSmrgfi
54472b4363aSmrg
54572b4363aSmrgif test -x / >/dev/null 2>&1; then
54672b4363aSmrg  as_test_x='test -x'
54772b4363aSmrgelse
54872b4363aSmrg  if ls -dL / >/dev/null 2>&1; then
54972b4363aSmrg    as_ls_L_option=L
55072b4363aSmrg  else
55172b4363aSmrg    as_ls_L_option=
55272b4363aSmrg  fi
55372b4363aSmrg  as_test_x='
55472b4363aSmrg    eval sh -c '\''
55572b4363aSmrg      if test -d "$1"; then
556dd77ae96Smrg	test -d "$1/.";
55772b4363aSmrg      else
55872b4363aSmrg	case $1 in
559dd77ae96Smrg	-*)set "./$1";;
56072b4363aSmrg	esac;
56172b4363aSmrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
56272b4363aSmrg	???[sx]*):;;*)false;;esac;fi
56372b4363aSmrg    '\'' sh
56472b4363aSmrg  '
56572b4363aSmrgfi
56672b4363aSmrgas_executable_p=$as_test_x
56772b4363aSmrg
56872b4363aSmrg# Sed expression to map a string onto a valid CPP name.
56972b4363aSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
57072b4363aSmrg
57172b4363aSmrg# Sed expression to map a string onto a valid variable name.
57272b4363aSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
57372b4363aSmrg
57472b4363aSmrg
57572b4363aSmrg
57672b4363aSmrgexec 7<&0 </dev/null 6>&1
57772b4363aSmrg
57872b4363aSmrg# Name of the host.
57972b4363aSmrg# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
58072b4363aSmrg# so uname gets run too.
58172b4363aSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
58272b4363aSmrg
58372b4363aSmrg#
58472b4363aSmrg# Initializations.
58572b4363aSmrg#
58672b4363aSmrgac_default_prefix=/usr/local
58772b4363aSmrgac_clean_files=
58872b4363aSmrgac_config_libobj_dir=.
58972b4363aSmrgLIBOBJS=
59072b4363aSmrgcross_compiling=no
59172b4363aSmrgsubdirs=
59272b4363aSmrgMFLAGS=
59372b4363aSmrgMAKEFLAGS=
59472b4363aSmrgSHELL=${CONFIG_SHELL-/bin/sh}
59572b4363aSmrg
59672b4363aSmrg# Identity of this package.
59772b4363aSmrgPACKAGE_NAME='xgamma'
59872b4363aSmrgPACKAGE_TARNAME='xgamma'
599dd77ae96SmrgPACKAGE_VERSION='1.0.3'
600dd77ae96SmrgPACKAGE_STRING='xgamma 1.0.3'
60172b4363aSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
60272b4363aSmrg
603dd77ae96Smrg# Factoring default headers for most tests.
604dd77ae96Smrgac_includes_default="\
605dd77ae96Smrg#include <stdio.h>
606dd77ae96Smrg#ifdef HAVE_SYS_TYPES_H
607dd77ae96Smrg# include <sys/types.h>
608dd77ae96Smrg#endif
609dd77ae96Smrg#ifdef HAVE_SYS_STAT_H
610dd77ae96Smrg# include <sys/stat.h>
611dd77ae96Smrg#endif
612dd77ae96Smrg#ifdef STDC_HEADERS
613dd77ae96Smrg# include <stdlib.h>
614dd77ae96Smrg# include <stddef.h>
615dd77ae96Smrg#else
616dd77ae96Smrg# ifdef HAVE_STDLIB_H
617dd77ae96Smrg#  include <stdlib.h>
618dd77ae96Smrg# endif
619dd77ae96Smrg#endif
620dd77ae96Smrg#ifdef HAVE_STRING_H
621dd77ae96Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622dd77ae96Smrg#  include <memory.h>
623dd77ae96Smrg# endif
624dd77ae96Smrg# include <string.h>
625dd77ae96Smrg#endif
626dd77ae96Smrg#ifdef HAVE_STRINGS_H
627dd77ae96Smrg# include <strings.h>
628dd77ae96Smrg#endif
629dd77ae96Smrg#ifdef HAVE_INTTYPES_H
630dd77ae96Smrg# include <inttypes.h>
631dd77ae96Smrg#endif
632dd77ae96Smrg#ifdef HAVE_STDINT_H
633dd77ae96Smrg# include <stdint.h>
634dd77ae96Smrg#endif
635dd77ae96Smrg#ifdef HAVE_UNISTD_H
636dd77ae96Smrg# include <unistd.h>
637dd77ae96Smrg#endif"
638dd77ae96Smrg
639dd77ae96Smrgac_subst_vars='am__EXEEXT_FALSE
640dd77ae96Smrgam__EXEEXT_TRUE
641dd77ae96SmrgLTLIBOBJS
642dd77ae96SmrgLIBOBJS
64372b4363aSmrgXGAMMA_LIBS
644dd77ae96SmrgXGAMMA_CFLAGS
645dd77ae96SmrgPKG_CONFIG
64672b4363aSmrgADMIN_MAN_DIR
647dd77ae96SmrgDRIVER_MAN_DIR
648dd77ae96SmrgMISC_MAN_DIR
649dd77ae96SmrgFILE_MAN_DIR
650dd77ae96SmrgLIB_MAN_DIR
651dd77ae96SmrgAPP_MAN_DIR
652dd77ae96SmrgADMIN_MAN_SUFFIX
653dd77ae96SmrgDRIVER_MAN_SUFFIX
654dd77ae96SmrgMISC_MAN_SUFFIX
655dd77ae96SmrgFILE_MAN_SUFFIX
656dd77ae96SmrgLIB_MAN_SUFFIX
657dd77ae96SmrgAPP_MAN_SUFFIX
658dd77ae96Smrghost_os
659dd77ae96Smrghost_vendor
660dd77ae96Smrghost_cpu
661dd77ae96Smrghost
662dd77ae96Smrgbuild_os
663dd77ae96Smrgbuild_vendor
664dd77ae96Smrgbuild_cpu
665dd77ae96Smrgbuild
666dd77ae96Smrgdistcleancheck_listfiles
667dd77ae96SmrgCHANGELOG_CMD
668dd77ae96SmrgAM_BACKSLASH
669dd77ae96SmrgAM_DEFAULT_VERBOSITY
670dd77ae96SmrgCWARNFLAGS
671dd77ae96SmrgEGREP
672dd77ae96SmrgGREP
673dd77ae96SmrgCPP
674dd77ae96Smrgam__fastdepCC_FALSE
675dd77ae96Smrgam__fastdepCC_TRUE
676dd77ae96SmrgCCDEPMODE
677dd77ae96SmrgAMDEPBACKSLASH
678dd77ae96SmrgAMDEP_FALSE
679dd77ae96SmrgAMDEP_TRUE
680dd77ae96Smrgam__quote
681dd77ae96Smrgam__include
682dd77ae96SmrgDEPDIR
683dd77ae96SmrgOBJEXT
684dd77ae96SmrgEXEEXT
685dd77ae96Smrgac_ct_CC
686dd77ae96SmrgCPPFLAGS
687dd77ae96SmrgLDFLAGS
688dd77ae96SmrgCFLAGS
689dd77ae96SmrgCC
690dd77ae96SmrgMAINT
691dd77ae96SmrgMAINTAINER_MODE_FALSE
692dd77ae96SmrgMAINTAINER_MODE_TRUE
693dd77ae96Smrgam__untar
694dd77ae96Smrgam__tar
695dd77ae96SmrgAMTAR
696dd77ae96Smrgam__leading_dot
697dd77ae96SmrgSET_MAKE
698dd77ae96SmrgAWK
699dd77ae96Smrgmkdir_p
700dd77ae96SmrgMKDIR_P
701dd77ae96SmrgINSTALL_STRIP_PROGRAM
702dd77ae96SmrgSTRIP
703dd77ae96Smrginstall_sh
704dd77ae96SmrgMAKEINFO
705dd77ae96SmrgAUTOHEADER
706dd77ae96SmrgAUTOMAKE
707dd77ae96SmrgAUTOCONF
708dd77ae96SmrgACLOCAL
709dd77ae96SmrgVERSION
710dd77ae96SmrgPACKAGE
711dd77ae96SmrgCYGPATH_W
712dd77ae96Smrgam__isrc
713dd77ae96SmrgINSTALL_DATA
714dd77ae96SmrgINSTALL_SCRIPT
715dd77ae96SmrgINSTALL_PROGRAM
716dd77ae96Smrgtarget_alias
717dd77ae96Smrghost_alias
718dd77ae96Smrgbuild_alias
719dd77ae96SmrgLIBS
720dd77ae96SmrgECHO_T
721dd77ae96SmrgECHO_N
722dd77ae96SmrgECHO_C
723dd77ae96SmrgDEFS
724dd77ae96Smrgmandir
725dd77ae96Smrglocaledir
726dd77ae96Smrglibdir
727dd77ae96Smrgpsdir
728dd77ae96Smrgpdfdir
729dd77ae96Smrgdvidir
730dd77ae96Smrghtmldir
731dd77ae96Smrginfodir
732dd77ae96Smrgdocdir
733dd77ae96Smrgoldincludedir
734dd77ae96Smrgincludedir
735dd77ae96Smrglocalstatedir
736dd77ae96Smrgsharedstatedir
737dd77ae96Smrgsysconfdir
738dd77ae96Smrgdatadir
739dd77ae96Smrgdatarootdir
740dd77ae96Smrglibexecdir
741dd77ae96Smrgsbindir
742dd77ae96Smrgbindir
743dd77ae96Smrgprogram_transform_name
744dd77ae96Smrgprefix
745dd77ae96Smrgexec_prefix
746dd77ae96SmrgPACKAGE_BUGREPORT
747dd77ae96SmrgPACKAGE_STRING
748dd77ae96SmrgPACKAGE_VERSION
749dd77ae96SmrgPACKAGE_TARNAME
750dd77ae96SmrgPACKAGE_NAME
751dd77ae96SmrgPATH_SEPARATOR
752dd77ae96SmrgSHELL'
75372b4363aSmrgac_subst_files=''
754dd77ae96Smrgac_user_opts='
755dd77ae96Smrgenable_option_checking
756dd77ae96Smrgenable_maintainer_mode
757dd77ae96Smrgenable_dependency_tracking
758dd77ae96Smrgenable_silent_rules
759dd77ae96Smrgenable_strict_compilation
760dd77ae96Smrgwith_release_version
761dd77ae96Smrg'
76272b4363aSmrg      ac_precious_vars='build_alias
76372b4363aSmrghost_alias
76472b4363aSmrgtarget_alias
76572b4363aSmrgCC
76672b4363aSmrgCFLAGS
76772b4363aSmrgLDFLAGS
76872b4363aSmrgLIBS
76972b4363aSmrgCPPFLAGS
770dd77ae96SmrgCPP
77172b4363aSmrgPKG_CONFIG
77272b4363aSmrgXGAMMA_CFLAGS
77372b4363aSmrgXGAMMA_LIBS'
77472b4363aSmrg
77572b4363aSmrg
77672b4363aSmrg# Initialize some variables set by options.
77772b4363aSmrgac_init_help=
77872b4363aSmrgac_init_version=false
779dd77ae96Smrgac_unrecognized_opts=
780dd77ae96Smrgac_unrecognized_sep=
78172b4363aSmrg# The variables have the same names as the options, with
78272b4363aSmrg# dashes changed to underlines.
78372b4363aSmrgcache_file=/dev/null
78472b4363aSmrgexec_prefix=NONE
78572b4363aSmrgno_create=
78672b4363aSmrgno_recursion=
78772b4363aSmrgprefix=NONE
78872b4363aSmrgprogram_prefix=NONE
78972b4363aSmrgprogram_suffix=NONE
79072b4363aSmrgprogram_transform_name=s,x,x,
79172b4363aSmrgsilent=
79272b4363aSmrgsite=
79372b4363aSmrgsrcdir=
79472b4363aSmrgverbose=
79572b4363aSmrgx_includes=NONE
79672b4363aSmrgx_libraries=NONE
79772b4363aSmrg
79872b4363aSmrg# Installation directory options.
79972b4363aSmrg# These are left unexpanded so users can "make install exec_prefix=/foo"
80072b4363aSmrg# and all the variables that are supposed to be based on exec_prefix
80172b4363aSmrg# by default will actually change.
80272b4363aSmrg# Use braces instead of parens because sh, perl, etc. also accept them.
80372b4363aSmrg# (The list follows the same order as the GNU Coding Standards.)
80472b4363aSmrgbindir='${exec_prefix}/bin'
80572b4363aSmrgsbindir='${exec_prefix}/sbin'
80672b4363aSmrglibexecdir='${exec_prefix}/libexec'
80772b4363aSmrgdatarootdir='${prefix}/share'
80872b4363aSmrgdatadir='${datarootdir}'
80972b4363aSmrgsysconfdir='${prefix}/etc'
81072b4363aSmrgsharedstatedir='${prefix}/com'
81172b4363aSmrglocalstatedir='${prefix}/var'
81272b4363aSmrgincludedir='${prefix}/include'
81372b4363aSmrgoldincludedir='/usr/include'
81472b4363aSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81572b4363aSmrginfodir='${datarootdir}/info'
81672b4363aSmrghtmldir='${docdir}'
81772b4363aSmrgdvidir='${docdir}'
81872b4363aSmrgpdfdir='${docdir}'
81972b4363aSmrgpsdir='${docdir}'
82072b4363aSmrglibdir='${exec_prefix}/lib'
82172b4363aSmrglocaledir='${datarootdir}/locale'
82272b4363aSmrgmandir='${datarootdir}/man'
82372b4363aSmrg
82472b4363aSmrgac_prev=
82572b4363aSmrgac_dashdash=
82672b4363aSmrgfor ac_option
82772b4363aSmrgdo
82872b4363aSmrg  # If the previous option needs an argument, assign it.
82972b4363aSmrg  if test -n "$ac_prev"; then
83072b4363aSmrg    eval $ac_prev=\$ac_option
83172b4363aSmrg    ac_prev=
83272b4363aSmrg    continue
83372b4363aSmrg  fi
83472b4363aSmrg
83572b4363aSmrg  case $ac_option in
83672b4363aSmrg  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
83772b4363aSmrg  *)	ac_optarg=yes ;;
83872b4363aSmrg  esac
83972b4363aSmrg
84072b4363aSmrg  # Accept the important Cygnus configure options, so we can diagnose typos.
84172b4363aSmrg
84272b4363aSmrg  case $ac_dashdash$ac_option in
84372b4363aSmrg  --)
84472b4363aSmrg    ac_dashdash=yes ;;
84572b4363aSmrg
84672b4363aSmrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
84772b4363aSmrg    ac_prev=bindir ;;
84872b4363aSmrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
84972b4363aSmrg    bindir=$ac_optarg ;;
85072b4363aSmrg
85172b4363aSmrg  -build | --build | --buil | --bui | --bu)
85272b4363aSmrg    ac_prev=build_alias ;;
85372b4363aSmrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
85472b4363aSmrg    build_alias=$ac_optarg ;;
85572b4363aSmrg
85672b4363aSmrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
85772b4363aSmrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
85872b4363aSmrg    ac_prev=cache_file ;;
85972b4363aSmrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
86072b4363aSmrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
86172b4363aSmrg    cache_file=$ac_optarg ;;
86272b4363aSmrg
86372b4363aSmrg  --config-cache | -C)
86472b4363aSmrg    cache_file=config.cache ;;
86572b4363aSmrg
86672b4363aSmrg  -datadir | --datadir | --datadi | --datad)
86772b4363aSmrg    ac_prev=datadir ;;
86872b4363aSmrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
86972b4363aSmrg    datadir=$ac_optarg ;;
87072b4363aSmrg
87172b4363aSmrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
87272b4363aSmrg  | --dataroo | --dataro | --datar)
87372b4363aSmrg    ac_prev=datarootdir ;;
87472b4363aSmrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
87572b4363aSmrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
87672b4363aSmrg    datarootdir=$ac_optarg ;;
87772b4363aSmrg
87872b4363aSmrg  -disable-* | --disable-*)
879dd77ae96Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
88072b4363aSmrg    # Reject names that are not valid shell variable names.
881dd77ae96Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
882dd77ae96Smrg      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
88372b4363aSmrg   { (exit 1); exit 1; }; }
884dd77ae96Smrg    ac_useropt_orig=$ac_useropt
885dd77ae96Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886dd77ae96Smrg    case $ac_user_opts in
887dd77ae96Smrg      *"
888dd77ae96Smrg"enable_$ac_useropt"
889dd77ae96Smrg"*) ;;
890dd77ae96Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
891dd77ae96Smrg	 ac_unrecognized_sep=', ';;
892dd77ae96Smrg    esac
893dd77ae96Smrg    eval enable_$ac_useropt=no ;;
89472b4363aSmrg
89572b4363aSmrg  -docdir | --docdir | --docdi | --doc | --do)
89672b4363aSmrg    ac_prev=docdir ;;
89772b4363aSmrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
89872b4363aSmrg    docdir=$ac_optarg ;;
89972b4363aSmrg
90072b4363aSmrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
90172b4363aSmrg    ac_prev=dvidir ;;
90272b4363aSmrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
90372b4363aSmrg    dvidir=$ac_optarg ;;
90472b4363aSmrg
90572b4363aSmrg  -enable-* | --enable-*)
906dd77ae96Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
90772b4363aSmrg    # Reject names that are not valid shell variable names.
908dd77ae96Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909dd77ae96Smrg      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
91072b4363aSmrg   { (exit 1); exit 1; }; }
911dd77ae96Smrg    ac_useropt_orig=$ac_useropt
912dd77ae96Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913dd77ae96Smrg    case $ac_user_opts in
914dd77ae96Smrg      *"
915dd77ae96Smrg"enable_$ac_useropt"
916dd77ae96Smrg"*) ;;
917dd77ae96Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
918dd77ae96Smrg	 ac_unrecognized_sep=', ';;
919dd77ae96Smrg    esac
920dd77ae96Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
92172b4363aSmrg
92272b4363aSmrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
92372b4363aSmrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
92472b4363aSmrg  | --exec | --exe | --ex)
92572b4363aSmrg    ac_prev=exec_prefix ;;
92672b4363aSmrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
92772b4363aSmrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
92872b4363aSmrg  | --exec=* | --exe=* | --ex=*)
92972b4363aSmrg    exec_prefix=$ac_optarg ;;
93072b4363aSmrg
93172b4363aSmrg  -gas | --gas | --ga | --g)
93272b4363aSmrg    # Obsolete; use --with-gas.
93372b4363aSmrg    with_gas=yes ;;
93472b4363aSmrg
93572b4363aSmrg  -help | --help | --hel | --he | -h)
93672b4363aSmrg    ac_init_help=long ;;
93772b4363aSmrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
93872b4363aSmrg    ac_init_help=recursive ;;
93972b4363aSmrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
94072b4363aSmrg    ac_init_help=short ;;
94172b4363aSmrg
94272b4363aSmrg  -host | --host | --hos | --ho)
94372b4363aSmrg    ac_prev=host_alias ;;
94472b4363aSmrg  -host=* | --host=* | --hos=* | --ho=*)
94572b4363aSmrg    host_alias=$ac_optarg ;;
94672b4363aSmrg
94772b4363aSmrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
94872b4363aSmrg    ac_prev=htmldir ;;
94972b4363aSmrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
95072b4363aSmrg  | --ht=*)
95172b4363aSmrg    htmldir=$ac_optarg ;;
95272b4363aSmrg
95372b4363aSmrg  -includedir | --includedir | --includedi | --included | --include \
95472b4363aSmrg  | --includ | --inclu | --incl | --inc)
95572b4363aSmrg    ac_prev=includedir ;;
95672b4363aSmrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
95772b4363aSmrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
95872b4363aSmrg    includedir=$ac_optarg ;;
95972b4363aSmrg
96072b4363aSmrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
96172b4363aSmrg    ac_prev=infodir ;;
96272b4363aSmrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
96372b4363aSmrg    infodir=$ac_optarg ;;
96472b4363aSmrg
96572b4363aSmrg  -libdir | --libdir | --libdi | --libd)
96672b4363aSmrg    ac_prev=libdir ;;
96772b4363aSmrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
96872b4363aSmrg    libdir=$ac_optarg ;;
96972b4363aSmrg
97072b4363aSmrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
97172b4363aSmrg  | --libexe | --libex | --libe)
97272b4363aSmrg    ac_prev=libexecdir ;;
97372b4363aSmrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
97472b4363aSmrg  | --libexe=* | --libex=* | --libe=*)
97572b4363aSmrg    libexecdir=$ac_optarg ;;
97672b4363aSmrg
97772b4363aSmrg  -localedir | --localedir | --localedi | --localed | --locale)
97872b4363aSmrg    ac_prev=localedir ;;
97972b4363aSmrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
98072b4363aSmrg    localedir=$ac_optarg ;;
98172b4363aSmrg
98272b4363aSmrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
98372b4363aSmrg  | --localstate | --localstat | --localsta | --localst | --locals)
98472b4363aSmrg    ac_prev=localstatedir ;;
98572b4363aSmrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
98672b4363aSmrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
98772b4363aSmrg    localstatedir=$ac_optarg ;;
98872b4363aSmrg
98972b4363aSmrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
99072b4363aSmrg    ac_prev=mandir ;;
99172b4363aSmrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
99272b4363aSmrg    mandir=$ac_optarg ;;
99372b4363aSmrg
99472b4363aSmrg  -nfp | --nfp | --nf)
99572b4363aSmrg    # Obsolete; use --without-fp.
99672b4363aSmrg    with_fp=no ;;
99772b4363aSmrg
99872b4363aSmrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
99972b4363aSmrg  | --no-cr | --no-c | -n)
100072b4363aSmrg    no_create=yes ;;
100172b4363aSmrg
100272b4363aSmrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
100372b4363aSmrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
100472b4363aSmrg    no_recursion=yes ;;
100572b4363aSmrg
100672b4363aSmrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
100772b4363aSmrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
100872b4363aSmrg  | --oldin | --oldi | --old | --ol | --o)
100972b4363aSmrg    ac_prev=oldincludedir ;;
101072b4363aSmrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
101172b4363aSmrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
101272b4363aSmrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
101372b4363aSmrg    oldincludedir=$ac_optarg ;;
101472b4363aSmrg
101572b4363aSmrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
101672b4363aSmrg    ac_prev=prefix ;;
101772b4363aSmrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
101872b4363aSmrg    prefix=$ac_optarg ;;
101972b4363aSmrg
102072b4363aSmrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
102172b4363aSmrg  | --program-pre | --program-pr | --program-p)
102272b4363aSmrg    ac_prev=program_prefix ;;
102372b4363aSmrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
102472b4363aSmrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
102572b4363aSmrg    program_prefix=$ac_optarg ;;
102672b4363aSmrg
102772b4363aSmrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
102872b4363aSmrg  | --program-suf | --program-su | --program-s)
102972b4363aSmrg    ac_prev=program_suffix ;;
103072b4363aSmrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
103172b4363aSmrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
103272b4363aSmrg    program_suffix=$ac_optarg ;;
103372b4363aSmrg
103472b4363aSmrg  -program-transform-name | --program-transform-name \
103572b4363aSmrg  | --program-transform-nam | --program-transform-na \
103672b4363aSmrg  | --program-transform-n | --program-transform- \
103772b4363aSmrg  | --program-transform | --program-transfor \
103872b4363aSmrg  | --program-transfo | --program-transf \
103972b4363aSmrg  | --program-trans | --program-tran \
104072b4363aSmrg  | --progr-tra | --program-tr | --program-t)
104172b4363aSmrg    ac_prev=program_transform_name ;;
104272b4363aSmrg  -program-transform-name=* | --program-transform-name=* \
104372b4363aSmrg  | --program-transform-nam=* | --program-transform-na=* \
104472b4363aSmrg  | --program-transform-n=* | --program-transform-=* \
104572b4363aSmrg  | --program-transform=* | --program-transfor=* \
104672b4363aSmrg  | --program-transfo=* | --program-transf=* \
104772b4363aSmrg  | --program-trans=* | --program-tran=* \
104872b4363aSmrg  | --progr-tra=* | --program-tr=* | --program-t=*)
104972b4363aSmrg    program_transform_name=$ac_optarg ;;
105072b4363aSmrg
105172b4363aSmrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
105272b4363aSmrg    ac_prev=pdfdir ;;
105372b4363aSmrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
105472b4363aSmrg    pdfdir=$ac_optarg ;;
105572b4363aSmrg
105672b4363aSmrg  -psdir | --psdir | --psdi | --psd | --ps)
105772b4363aSmrg    ac_prev=psdir ;;
105872b4363aSmrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
105972b4363aSmrg    psdir=$ac_optarg ;;
106072b4363aSmrg
106172b4363aSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
106272b4363aSmrg  | -silent | --silent | --silen | --sile | --sil)
106372b4363aSmrg    silent=yes ;;
106472b4363aSmrg
106572b4363aSmrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
106672b4363aSmrg    ac_prev=sbindir ;;
106772b4363aSmrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
106872b4363aSmrg  | --sbi=* | --sb=*)
106972b4363aSmrg    sbindir=$ac_optarg ;;
107072b4363aSmrg
107172b4363aSmrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
107272b4363aSmrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
107372b4363aSmrg  | --sharedst | --shareds | --shared | --share | --shar \
107472b4363aSmrg  | --sha | --sh)
107572b4363aSmrg    ac_prev=sharedstatedir ;;
107672b4363aSmrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
107772b4363aSmrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
107872b4363aSmrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
107972b4363aSmrg  | --sha=* | --sh=*)
108072b4363aSmrg    sharedstatedir=$ac_optarg ;;
108172b4363aSmrg
108272b4363aSmrg  -site | --site | --sit)
108372b4363aSmrg    ac_prev=site ;;
108472b4363aSmrg  -site=* | --site=* | --sit=*)
108572b4363aSmrg    site=$ac_optarg ;;
108672b4363aSmrg
108772b4363aSmrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
108872b4363aSmrg    ac_prev=srcdir ;;
108972b4363aSmrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
109072b4363aSmrg    srcdir=$ac_optarg ;;
109172b4363aSmrg
109272b4363aSmrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
109372b4363aSmrg  | --syscon | --sysco | --sysc | --sys | --sy)
109472b4363aSmrg    ac_prev=sysconfdir ;;
109572b4363aSmrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
109672b4363aSmrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
109772b4363aSmrg    sysconfdir=$ac_optarg ;;
109872b4363aSmrg
109972b4363aSmrg  -target | --target | --targe | --targ | --tar | --ta | --t)
110072b4363aSmrg    ac_prev=target_alias ;;
110172b4363aSmrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
110272b4363aSmrg    target_alias=$ac_optarg ;;
110372b4363aSmrg
110472b4363aSmrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
110572b4363aSmrg    verbose=yes ;;
110672b4363aSmrg
110772b4363aSmrg  -version | --version | --versio | --versi | --vers | -V)
110872b4363aSmrg    ac_init_version=: ;;
110972b4363aSmrg
111072b4363aSmrg  -with-* | --with-*)
1111dd77ae96Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
111272b4363aSmrg    # Reject names that are not valid shell variable names.
1113dd77ae96Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114dd77ae96Smrg      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
111572b4363aSmrg   { (exit 1); exit 1; }; }
1116dd77ae96Smrg    ac_useropt_orig=$ac_useropt
1117dd77ae96Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118dd77ae96Smrg    case $ac_user_opts in
1119dd77ae96Smrg      *"
1120dd77ae96Smrg"with_$ac_useropt"
1121dd77ae96Smrg"*) ;;
1122dd77ae96Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1123dd77ae96Smrg	 ac_unrecognized_sep=', ';;
1124dd77ae96Smrg    esac
1125dd77ae96Smrg    eval with_$ac_useropt=\$ac_optarg ;;
112672b4363aSmrg
112772b4363aSmrg  -without-* | --without-*)
1128dd77ae96Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
112972b4363aSmrg    # Reject names that are not valid shell variable names.
1130dd77ae96Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131dd77ae96Smrg      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
113272b4363aSmrg   { (exit 1); exit 1; }; }
1133dd77ae96Smrg    ac_useropt_orig=$ac_useropt
1134dd77ae96Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135dd77ae96Smrg    case $ac_user_opts in
1136dd77ae96Smrg      *"
1137dd77ae96Smrg"with_$ac_useropt"
1138dd77ae96Smrg"*) ;;
1139dd77ae96Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1140dd77ae96Smrg	 ac_unrecognized_sep=', ';;
1141dd77ae96Smrg    esac
1142dd77ae96Smrg    eval with_$ac_useropt=no ;;
114372b4363aSmrg
114472b4363aSmrg  --x)
114572b4363aSmrg    # Obsolete; use --with-x.
114672b4363aSmrg    with_x=yes ;;
114772b4363aSmrg
114872b4363aSmrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
114972b4363aSmrg  | --x-incl | --x-inc | --x-in | --x-i)
115072b4363aSmrg    ac_prev=x_includes ;;
115172b4363aSmrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
115272b4363aSmrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
115372b4363aSmrg    x_includes=$ac_optarg ;;
115472b4363aSmrg
115572b4363aSmrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
115672b4363aSmrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
115772b4363aSmrg    ac_prev=x_libraries ;;
115872b4363aSmrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
115972b4363aSmrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
116072b4363aSmrg    x_libraries=$ac_optarg ;;
116172b4363aSmrg
1162dd77ae96Smrg  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
116372b4363aSmrgTry \`$0 --help' for more information." >&2
116472b4363aSmrg   { (exit 1); exit 1; }; }
116572b4363aSmrg    ;;
116672b4363aSmrg
116772b4363aSmrg  *=*)
116872b4363aSmrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
116972b4363aSmrg    # Reject names that are not valid shell variable names.
117072b4363aSmrg    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1171dd77ae96Smrg      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
117272b4363aSmrg   { (exit 1); exit 1; }; }
117372b4363aSmrg    eval $ac_envvar=\$ac_optarg
117472b4363aSmrg    export $ac_envvar ;;
117572b4363aSmrg
117672b4363aSmrg  *)
117772b4363aSmrg    # FIXME: should be removed in autoconf 3.0.
1178dd77ae96Smrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
117972b4363aSmrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1180dd77ae96Smrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
118172b4363aSmrg    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
118272b4363aSmrg    ;;
118372b4363aSmrg
118472b4363aSmrg  esac
118572b4363aSmrgdone
118672b4363aSmrg
118772b4363aSmrgif test -n "$ac_prev"; then
118872b4363aSmrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1189dd77ae96Smrg  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
119072b4363aSmrg   { (exit 1); exit 1; }; }
119172b4363aSmrgfi
119272b4363aSmrg
1193dd77ae96Smrgif test -n "$ac_unrecognized_opts"; then
1194dd77ae96Smrg  case $enable_option_checking in
1195dd77ae96Smrg    no) ;;
1196dd77ae96Smrg    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1197dd77ae96Smrg   { (exit 1); exit 1; }; } ;;
1198dd77ae96Smrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1199dd77ae96Smrg  esac
1200dd77ae96Smrgfi
1201dd77ae96Smrg
1202dd77ae96Smrg# Check all directory arguments for consistency.
120372b4363aSmrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
120472b4363aSmrg		datadir sysconfdir sharedstatedir localstatedir includedir \
120572b4363aSmrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
120672b4363aSmrg		libdir localedir mandir
120772b4363aSmrgdo
120872b4363aSmrg  eval ac_val=\$$ac_var
1209dd77ae96Smrg  # Remove trailing slashes.
1210dd77ae96Smrg  case $ac_val in
1211dd77ae96Smrg    */ )
1212dd77ae96Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213dd77ae96Smrg      eval $ac_var=\$ac_val;;
1214dd77ae96Smrg  esac
1215dd77ae96Smrg  # Be sure to have absolute directory names.
121672b4363aSmrg  case $ac_val in
121772b4363aSmrg    [\\/$]* | ?:[\\/]* )  continue;;
121872b4363aSmrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
121972b4363aSmrg  esac
1220dd77ae96Smrg  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
122172b4363aSmrg   { (exit 1); exit 1; }; }
122272b4363aSmrgdone
122372b4363aSmrg
122472b4363aSmrg# There might be people who depend on the old broken behavior: `$host'
122572b4363aSmrg# used to hold the argument of --host etc.
122672b4363aSmrg# FIXME: To remove some day.
122772b4363aSmrgbuild=$build_alias
122872b4363aSmrghost=$host_alias
122972b4363aSmrgtarget=$target_alias
123072b4363aSmrg
123172b4363aSmrg# FIXME: To remove some day.
123272b4363aSmrgif test "x$host_alias" != x; then
123372b4363aSmrg  if test "x$build_alias" = x; then
123472b4363aSmrg    cross_compiling=maybe
1235dd77ae96Smrg    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
123672b4363aSmrg    If a cross compiler is detected then cross compile mode will be used." >&2
123772b4363aSmrg  elif test "x$build_alias" != "x$host_alias"; then
123872b4363aSmrg    cross_compiling=yes
123972b4363aSmrg  fi
124072b4363aSmrgfi
124172b4363aSmrg
124272b4363aSmrgac_tool_prefix=
124372b4363aSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
124472b4363aSmrg
124572b4363aSmrgtest "$silent" = yes && exec 6>/dev/null
124672b4363aSmrg
124772b4363aSmrg
124872b4363aSmrgac_pwd=`pwd` && test -n "$ac_pwd" &&
124972b4363aSmrgac_ls_di=`ls -di .` &&
125072b4363aSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1251dd77ae96Smrg  { $as_echo "$as_me: error: working directory cannot be determined" >&2
125272b4363aSmrg   { (exit 1); exit 1; }; }
125372b4363aSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254dd77ae96Smrg  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
125572b4363aSmrg   { (exit 1); exit 1; }; }
125672b4363aSmrg
125772b4363aSmrg
125872b4363aSmrg# Find the source files, if location was not specified.
125972b4363aSmrgif test -z "$srcdir"; then
126072b4363aSmrg  ac_srcdir_defaulted=yes
126172b4363aSmrg  # Try the directory containing this script, then the parent directory.
1262dd77ae96Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
1263dd77ae96Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264dd77ae96Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
1265dd77ae96Smrg	 X"$as_myself" : 'X\(//\)$' \| \
1266dd77ae96Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1267dd77ae96Smrg$as_echo X"$as_myself" |
126872b4363aSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
126972b4363aSmrg	    s//\1/
127072b4363aSmrg	    q
127172b4363aSmrg	  }
127272b4363aSmrg	  /^X\(\/\/\)[^/].*/{
127372b4363aSmrg	    s//\1/
127472b4363aSmrg	    q
127572b4363aSmrg	  }
127672b4363aSmrg	  /^X\(\/\/\)$/{
127772b4363aSmrg	    s//\1/
127872b4363aSmrg	    q
127972b4363aSmrg	  }
128072b4363aSmrg	  /^X\(\/\).*/{
128172b4363aSmrg	    s//\1/
128272b4363aSmrg	    q
128372b4363aSmrg	  }
128472b4363aSmrg	  s/.*/./; q'`
128572b4363aSmrg  srcdir=$ac_confdir
128672b4363aSmrg  if test ! -r "$srcdir/$ac_unique_file"; then
128772b4363aSmrg    srcdir=..
128872b4363aSmrg  fi
128972b4363aSmrgelse
129072b4363aSmrg  ac_srcdir_defaulted=no
129172b4363aSmrgfi
129272b4363aSmrgif test ! -r "$srcdir/$ac_unique_file"; then
129372b4363aSmrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1294dd77ae96Smrg  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
129572b4363aSmrg   { (exit 1); exit 1; }; }
129672b4363aSmrgfi
129772b4363aSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
129872b4363aSmrgac_abs_confdir=`(
1299dd77ae96Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
130072b4363aSmrg   { (exit 1); exit 1; }; }
130172b4363aSmrg	pwd)`
130272b4363aSmrg# When building in place, set srcdir=.
130372b4363aSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then
130472b4363aSmrg  srcdir=.
130572b4363aSmrgfi
130672b4363aSmrg# Remove unnecessary trailing slashes from srcdir.
130772b4363aSmrg# Double slashes in file names in object file debugging info
130872b4363aSmrg# mess up M-x gdb in Emacs.
130972b4363aSmrgcase $srcdir in
131072b4363aSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
131172b4363aSmrgesac
131272b4363aSmrgfor ac_var in $ac_precious_vars; do
131372b4363aSmrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
131472b4363aSmrg  eval ac_env_${ac_var}_value=\$${ac_var}
131572b4363aSmrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
131672b4363aSmrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
131772b4363aSmrgdone
131872b4363aSmrg
131972b4363aSmrg#
132072b4363aSmrg# Report the --help message.
132172b4363aSmrg#
132272b4363aSmrgif test "$ac_init_help" = "long"; then
132372b4363aSmrg  # Omit some internal or obsolete options to make the list less imposing.
132472b4363aSmrg  # This message is too long to be a string in the A/UX 3.1 sh.
132572b4363aSmrg  cat <<_ACEOF
1326dd77ae96Smrg\`configure' configures xgamma 1.0.3 to adapt to many kinds of systems.
132772b4363aSmrg
132872b4363aSmrgUsage: $0 [OPTION]... [VAR=VALUE]...
132972b4363aSmrg
133072b4363aSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
133172b4363aSmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
133272b4363aSmrg
133372b4363aSmrgDefaults for the options are specified in brackets.
133472b4363aSmrg
133572b4363aSmrgConfiguration:
133672b4363aSmrg  -h, --help              display this help and exit
133772b4363aSmrg      --help=short        display options specific to this package
133872b4363aSmrg      --help=recursive    display the short help of all the included packages
133972b4363aSmrg  -V, --version           display version information and exit
134072b4363aSmrg  -q, --quiet, --silent   do not print \`checking...' messages
134172b4363aSmrg      --cache-file=FILE   cache test results in FILE [disabled]
134272b4363aSmrg  -C, --config-cache      alias for \`--cache-file=config.cache'
134372b4363aSmrg  -n, --no-create         do not create output files
134472b4363aSmrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
134572b4363aSmrg
134672b4363aSmrgInstallation directories:
134772b4363aSmrg  --prefix=PREFIX         install architecture-independent files in PREFIX
1348dd77ae96Smrg                          [$ac_default_prefix]
134972b4363aSmrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1350dd77ae96Smrg                          [PREFIX]
135172b4363aSmrg
135272b4363aSmrgBy default, \`make install' will install all the files in
135372b4363aSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
135472b4363aSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
135572b4363aSmrgfor instance \`--prefix=\$HOME'.
135672b4363aSmrg
135772b4363aSmrgFor better control, use the options below.
135872b4363aSmrg
135972b4363aSmrgFine tuning of the installation directories:
1360dd77ae96Smrg  --bindir=DIR            user executables [EPREFIX/bin]
1361dd77ae96Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1362dd77ae96Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
1363dd77ae96Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1364dd77ae96Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1365dd77ae96Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1366dd77ae96Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
1367dd77ae96Smrg  --includedir=DIR        C header files [PREFIX/include]
1368dd77ae96Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1369dd77ae96Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1370dd77ae96Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1371dd77ae96Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
1372dd77ae96Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1373dd77ae96Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
1374dd77ae96Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xgamma]
1375dd77ae96Smrg  --htmldir=DIR           html documentation [DOCDIR]
1376dd77ae96Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
1377dd77ae96Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
1378dd77ae96Smrg  --psdir=DIR             ps documentation [DOCDIR]
137972b4363aSmrg_ACEOF
138072b4363aSmrg
138172b4363aSmrg  cat <<\_ACEOF
138272b4363aSmrg
138372b4363aSmrgProgram names:
138472b4363aSmrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
138572b4363aSmrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
138672b4363aSmrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
138772b4363aSmrg
138872b4363aSmrgSystem types:
138972b4363aSmrg  --build=BUILD     configure for building on BUILD [guessed]
139072b4363aSmrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
139172b4363aSmrg_ACEOF
139272b4363aSmrgfi
139372b4363aSmrg
139472b4363aSmrgif test -n "$ac_init_help"; then
139572b4363aSmrg  case $ac_init_help in
1396dd77ae96Smrg     short | recursive ) echo "Configuration of xgamma 1.0.3:";;
139772b4363aSmrg   esac
139872b4363aSmrg  cat <<\_ACEOF
139972b4363aSmrg
140072b4363aSmrgOptional Features:
1401dd77ae96Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
140272b4363aSmrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
140372b4363aSmrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
140472b4363aSmrg  --enable-maintainer-mode  enable make rules and dependencies not useful
140572b4363aSmrg			  (and sometimes confusing) to the casual installer
140672b4363aSmrg  --disable-dependency-tracking  speeds up one-time build
140772b4363aSmrg  --enable-dependency-tracking   do not reject slow dependency extractors
1408dd77ae96Smrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
1409dd77ae96Smrg  --disable-silent-rules         verbose build output (undo: `make V=0')
1410dd77ae96Smrg  --enable-strict-compilation
1411dd77ae96Smrg                          Enable all warnings from compiler and make them
1412dd77ae96Smrg                          errors (default: disabled)
141372b4363aSmrg
141472b4363aSmrgOptional Packages:
141572b4363aSmrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
141672b4363aSmrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
141772b4363aSmrg  --with-release-version=STRING
141872b4363aSmrg                          Use release version string in package name
141972b4363aSmrg
142072b4363aSmrgSome influential environment variables:
142172b4363aSmrg  CC          C compiler command
142272b4363aSmrg  CFLAGS      C compiler flags
142372b4363aSmrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
142472b4363aSmrg              nonstandard directory <lib dir>
142572b4363aSmrg  LIBS        libraries to pass to the linker, e.g. -l<library>
142672b4363aSmrg  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
142772b4363aSmrg              you have headers in a nonstandard directory <include dir>
1428dd77ae96Smrg  CPP         C preprocessor
142972b4363aSmrg  PKG_CONFIG  path to pkg-config utility
143072b4363aSmrg  XGAMMA_CFLAGS
143172b4363aSmrg              C compiler flags for XGAMMA, overriding pkg-config
143272b4363aSmrg  XGAMMA_LIBS linker flags for XGAMMA, overriding pkg-config
143372b4363aSmrg
143472b4363aSmrgUse these variables to override the choices made by `configure' or to help
143572b4363aSmrgit to find libraries and programs with nonstandard names/locations.
143672b4363aSmrg
143772b4363aSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
143872b4363aSmrg_ACEOF
143972b4363aSmrgac_status=$?
144072b4363aSmrgfi
144172b4363aSmrg
144272b4363aSmrgif test "$ac_init_help" = "recursive"; then
144372b4363aSmrg  # If there are subdirs, report their specific --help.
144472b4363aSmrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1445dd77ae96Smrg    test -d "$ac_dir" ||
1446dd77ae96Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1447dd77ae96Smrg      continue
144872b4363aSmrg    ac_builddir=.
144972b4363aSmrg
145072b4363aSmrgcase "$ac_dir" in
145172b4363aSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
145272b4363aSmrg*)
1453dd77ae96Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
145472b4363aSmrg  # A ".." for each directory in $ac_dir_suffix.
1455dd77ae96Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
145672b4363aSmrg  case $ac_top_builddir_sub in
145772b4363aSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
145872b4363aSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
145972b4363aSmrg  esac ;;
146072b4363aSmrgesac
146172b4363aSmrgac_abs_top_builddir=$ac_pwd
146272b4363aSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
146372b4363aSmrg# for backward compatibility:
146472b4363aSmrgac_top_builddir=$ac_top_build_prefix
146572b4363aSmrg
146672b4363aSmrgcase $srcdir in
146772b4363aSmrg  .)  # We are building in place.
146872b4363aSmrg    ac_srcdir=.
146972b4363aSmrg    ac_top_srcdir=$ac_top_builddir_sub
147072b4363aSmrg    ac_abs_top_srcdir=$ac_pwd ;;
147172b4363aSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
147272b4363aSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
147372b4363aSmrg    ac_top_srcdir=$srcdir
147472b4363aSmrg    ac_abs_top_srcdir=$srcdir ;;
147572b4363aSmrg  *) # Relative name.
147672b4363aSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
147772b4363aSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
147872b4363aSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
147972b4363aSmrgesac
148072b4363aSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
148172b4363aSmrg
148272b4363aSmrg    cd "$ac_dir" || { ac_status=$?; continue; }
148372b4363aSmrg    # Check for guested configure.
148472b4363aSmrg    if test -f "$ac_srcdir/configure.gnu"; then
148572b4363aSmrg      echo &&
148672b4363aSmrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
148772b4363aSmrg    elif test -f "$ac_srcdir/configure"; then
148872b4363aSmrg      echo &&
148972b4363aSmrg      $SHELL "$ac_srcdir/configure" --help=recursive
149072b4363aSmrg    else
1491dd77ae96Smrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
149272b4363aSmrg    fi || ac_status=$?
149372b4363aSmrg    cd "$ac_pwd" || { ac_status=$?; break; }
149472b4363aSmrg  done
149572b4363aSmrgfi
149672b4363aSmrg
149772b4363aSmrgtest -n "$ac_init_help" && exit $ac_status
149872b4363aSmrgif $ac_init_version; then
149972b4363aSmrg  cat <<\_ACEOF
1500dd77ae96Smrgxgamma configure 1.0.3
1501dd77ae96Smrggenerated by GNU Autoconf 2.63
150272b4363aSmrg
150372b4363aSmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1504dd77ae96Smrg2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
150572b4363aSmrgThis configure script is free software; the Free Software Foundation
150672b4363aSmrggives unlimited permission to copy, distribute and modify it.
150772b4363aSmrg_ACEOF
150872b4363aSmrg  exit
150972b4363aSmrgfi
151072b4363aSmrgcat >config.log <<_ACEOF
151172b4363aSmrgThis file contains any messages produced by compilers while
151272b4363aSmrgrunning configure, to aid debugging if configure makes a mistake.
151372b4363aSmrg
1514dd77ae96SmrgIt was created by xgamma $as_me 1.0.3, which was
1515dd77ae96Smrggenerated by GNU Autoconf 2.63.  Invocation command line was
151672b4363aSmrg
151772b4363aSmrg  $ $0 $@
151872b4363aSmrg
151972b4363aSmrg_ACEOF
152072b4363aSmrgexec 5>>config.log
152172b4363aSmrg{
152272b4363aSmrgcat <<_ASUNAME
152372b4363aSmrg## --------- ##
152472b4363aSmrg## Platform. ##
152572b4363aSmrg## --------- ##
152672b4363aSmrg
152772b4363aSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
152872b4363aSmrguname -m = `(uname -m) 2>/dev/null || echo unknown`
152972b4363aSmrguname -r = `(uname -r) 2>/dev/null || echo unknown`
153072b4363aSmrguname -s = `(uname -s) 2>/dev/null || echo unknown`
153172b4363aSmrguname -v = `(uname -v) 2>/dev/null || echo unknown`
153272b4363aSmrg
153372b4363aSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
153472b4363aSmrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
153572b4363aSmrg
153672b4363aSmrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
153772b4363aSmrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
153872b4363aSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
153972b4363aSmrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
154072b4363aSmrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
154172b4363aSmrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
154272b4363aSmrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
154372b4363aSmrg
154472b4363aSmrg_ASUNAME
154572b4363aSmrg
154672b4363aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
154772b4363aSmrgfor as_dir in $PATH
154872b4363aSmrgdo
154972b4363aSmrg  IFS=$as_save_IFS
155072b4363aSmrg  test -z "$as_dir" && as_dir=.
1551dd77ae96Smrg  $as_echo "PATH: $as_dir"
155272b4363aSmrgdone
155372b4363aSmrgIFS=$as_save_IFS
155472b4363aSmrg
155572b4363aSmrg} >&5
155672b4363aSmrg
155772b4363aSmrgcat >&5 <<_ACEOF
155872b4363aSmrg
155972b4363aSmrg
156072b4363aSmrg## ----------- ##
156172b4363aSmrg## Core tests. ##
156272b4363aSmrg## ----------- ##
156372b4363aSmrg
156472b4363aSmrg_ACEOF
156572b4363aSmrg
156672b4363aSmrg
156772b4363aSmrg# Keep a trace of the command line.
156872b4363aSmrg# Strip out --no-create and --no-recursion so they do not pile up.
156972b4363aSmrg# Strip out --silent because we don't want to record it for future runs.
157072b4363aSmrg# Also quote any args containing shell meta-characters.
157172b4363aSmrg# Make two passes to allow for proper duplicate-argument suppression.
157272b4363aSmrgac_configure_args=
157372b4363aSmrgac_configure_args0=
157472b4363aSmrgac_configure_args1=
157572b4363aSmrgac_must_keep_next=false
157672b4363aSmrgfor ac_pass in 1 2
157772b4363aSmrgdo
157872b4363aSmrg  for ac_arg
157972b4363aSmrg  do
158072b4363aSmrg    case $ac_arg in
158172b4363aSmrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
158272b4363aSmrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
158372b4363aSmrg    | -silent | --silent | --silen | --sile | --sil)
158472b4363aSmrg      continue ;;
158572b4363aSmrg    *\'*)
1586dd77ae96Smrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
158772b4363aSmrg    esac
158872b4363aSmrg    case $ac_pass in
158972b4363aSmrg    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
159072b4363aSmrg    2)
159172b4363aSmrg      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
159272b4363aSmrg      if test $ac_must_keep_next = true; then
159372b4363aSmrg	ac_must_keep_next=false # Got value, back to normal.
159472b4363aSmrg      else
159572b4363aSmrg	case $ac_arg in
159672b4363aSmrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
159772b4363aSmrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
159872b4363aSmrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
159972b4363aSmrg	  | -with-* | --with-* | -without-* | --without-* | --x)
160072b4363aSmrg	    case "$ac_configure_args0 " in
160172b4363aSmrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
160272b4363aSmrg	    esac
160372b4363aSmrg	    ;;
160472b4363aSmrg	  -* ) ac_must_keep_next=true ;;
160572b4363aSmrg	esac
160672b4363aSmrg      fi
160772b4363aSmrg      ac_configure_args="$ac_configure_args '$ac_arg'"
160872b4363aSmrg      ;;
160972b4363aSmrg    esac
161072b4363aSmrg  done
161172b4363aSmrgdone
161272b4363aSmrg$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
161372b4363aSmrg$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
161472b4363aSmrg
161572b4363aSmrg# When interrupted or exit'd, cleanup temporary files, and complete
161672b4363aSmrg# config.log.  We remove comments because anyway the quotes in there
161772b4363aSmrg# would cause problems or look ugly.
161872b4363aSmrg# WARNING: Use '\'' to represent an apostrophe within the trap.
161972b4363aSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
162072b4363aSmrgtrap 'exit_status=$?
162172b4363aSmrg  # Save into config.log some information that might help in debugging.
162272b4363aSmrg  {
162372b4363aSmrg    echo
162472b4363aSmrg
162572b4363aSmrg    cat <<\_ASBOX
162672b4363aSmrg## ---------------- ##
162772b4363aSmrg## Cache variables. ##
162872b4363aSmrg## ---------------- ##
162972b4363aSmrg_ASBOX
163072b4363aSmrg    echo
163172b4363aSmrg    # The following way of writing the cache mishandles newlines in values,
163272b4363aSmrg(
163372b4363aSmrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
163472b4363aSmrg    eval ac_val=\$$ac_var
163572b4363aSmrg    case $ac_val in #(
163672b4363aSmrg    *${as_nl}*)
163772b4363aSmrg      case $ac_var in #(
1638dd77ae96Smrg      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1639dd77ae96Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
164072b4363aSmrg      esac
164172b4363aSmrg      case $ac_var in #(
164272b4363aSmrg      _ | IFS | as_nl) ;; #(
1643dd77ae96Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
164472b4363aSmrg      *) $as_unset $ac_var ;;
164572b4363aSmrg      esac ;;
164672b4363aSmrg    esac
164772b4363aSmrg  done
164872b4363aSmrg  (set) 2>&1 |
164972b4363aSmrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
165072b4363aSmrg    *${as_nl}ac_space=\ *)
165172b4363aSmrg      sed -n \
165272b4363aSmrg	"s/'\''/'\''\\\\'\'''\''/g;
165372b4363aSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
165472b4363aSmrg      ;; #(
165572b4363aSmrg    *)
165672b4363aSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
165772b4363aSmrg      ;;
165872b4363aSmrg    esac |
165972b4363aSmrg    sort
166072b4363aSmrg)
166172b4363aSmrg    echo
166272b4363aSmrg
166372b4363aSmrg    cat <<\_ASBOX
166472b4363aSmrg## ----------------- ##
166572b4363aSmrg## Output variables. ##
166672b4363aSmrg## ----------------- ##
166772b4363aSmrg_ASBOX
166872b4363aSmrg    echo
166972b4363aSmrg    for ac_var in $ac_subst_vars
167072b4363aSmrg    do
167172b4363aSmrg      eval ac_val=\$$ac_var
167272b4363aSmrg      case $ac_val in
1673dd77ae96Smrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
167472b4363aSmrg      esac
1675dd77ae96Smrg      $as_echo "$ac_var='\''$ac_val'\''"
167672b4363aSmrg    done | sort
167772b4363aSmrg    echo
167872b4363aSmrg
167972b4363aSmrg    if test -n "$ac_subst_files"; then
168072b4363aSmrg      cat <<\_ASBOX
168172b4363aSmrg## ------------------- ##
168272b4363aSmrg## File substitutions. ##
168372b4363aSmrg## ------------------- ##
168472b4363aSmrg_ASBOX
168572b4363aSmrg      echo
168672b4363aSmrg      for ac_var in $ac_subst_files
168772b4363aSmrg      do
168872b4363aSmrg	eval ac_val=\$$ac_var
168972b4363aSmrg	case $ac_val in
1690dd77ae96Smrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
169172b4363aSmrg	esac
1692dd77ae96Smrg	$as_echo "$ac_var='\''$ac_val'\''"
169372b4363aSmrg      done | sort
169472b4363aSmrg      echo
169572b4363aSmrg    fi
169672b4363aSmrg
169772b4363aSmrg    if test -s confdefs.h; then
169872b4363aSmrg      cat <<\_ASBOX
169972b4363aSmrg## ----------- ##
170072b4363aSmrg## confdefs.h. ##
170172b4363aSmrg## ----------- ##
170272b4363aSmrg_ASBOX
170372b4363aSmrg      echo
170472b4363aSmrg      cat confdefs.h
170572b4363aSmrg      echo
170672b4363aSmrg    fi
170772b4363aSmrg    test "$ac_signal" != 0 &&
1708dd77ae96Smrg      $as_echo "$as_me: caught signal $ac_signal"
1709dd77ae96Smrg    $as_echo "$as_me: exit $exit_status"
171072b4363aSmrg  } >&5
171172b4363aSmrg  rm -f core *.core core.conftest.* &&
171272b4363aSmrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
171372b4363aSmrg    exit $exit_status
171472b4363aSmrg' 0
171572b4363aSmrgfor ac_signal in 1 2 13 15; do
171672b4363aSmrg  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
171772b4363aSmrgdone
171872b4363aSmrgac_signal=0
171972b4363aSmrg
172072b4363aSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
172172b4363aSmrgrm -f -r conftest* confdefs.h
172272b4363aSmrg
172372b4363aSmrg# Predefined preprocessor variables.
172472b4363aSmrg
172572b4363aSmrgcat >>confdefs.h <<_ACEOF
172672b4363aSmrg#define PACKAGE_NAME "$PACKAGE_NAME"
172772b4363aSmrg_ACEOF
172872b4363aSmrg
172972b4363aSmrg
173072b4363aSmrgcat >>confdefs.h <<_ACEOF
173172b4363aSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
173272b4363aSmrg_ACEOF
173372b4363aSmrg
173472b4363aSmrg
173572b4363aSmrgcat >>confdefs.h <<_ACEOF
173672b4363aSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
173772b4363aSmrg_ACEOF
173872b4363aSmrg
173972b4363aSmrg
174072b4363aSmrgcat >>confdefs.h <<_ACEOF
174172b4363aSmrg#define PACKAGE_STRING "$PACKAGE_STRING"
174272b4363aSmrg_ACEOF
174372b4363aSmrg
174472b4363aSmrg
174572b4363aSmrgcat >>confdefs.h <<_ACEOF
174672b4363aSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
174772b4363aSmrg_ACEOF
174872b4363aSmrg
174972b4363aSmrg
175072b4363aSmrg# Let the site file select an alternate cache file if it wants to.
1751dd77ae96Smrg# Prefer an explicitly selected file to automatically selected ones.
1752dd77ae96Smrgac_site_file1=NONE
1753dd77ae96Smrgac_site_file2=NONE
175472b4363aSmrgif test -n "$CONFIG_SITE"; then
1755dd77ae96Smrg  ac_site_file1=$CONFIG_SITE
175672b4363aSmrgelif test "x$prefix" != xNONE; then
1757dd77ae96Smrg  ac_site_file1=$prefix/share/config.site
1758dd77ae96Smrg  ac_site_file2=$prefix/etc/config.site
175972b4363aSmrgelse
1760dd77ae96Smrg  ac_site_file1=$ac_default_prefix/share/config.site
1761dd77ae96Smrg  ac_site_file2=$ac_default_prefix/etc/config.site
176272b4363aSmrgfi
1763dd77ae96Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
176472b4363aSmrgdo
1765dd77ae96Smrg  test "x$ac_site_file" = xNONE && continue
176672b4363aSmrg  if test -r "$ac_site_file"; then
1767dd77ae96Smrg    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1768dd77ae96Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
176972b4363aSmrg    sed 's/^/| /' "$ac_site_file" >&5
177072b4363aSmrg    . "$ac_site_file"
177172b4363aSmrg  fi
177272b4363aSmrgdone
177372b4363aSmrg
177472b4363aSmrgif test -r "$cache_file"; then
177572b4363aSmrg  # Some versions of bash will fail to source /dev/null (special
177672b4363aSmrg  # files actually), so we avoid doing that.
177772b4363aSmrg  if test -f "$cache_file"; then
1778dd77ae96Smrg    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1779dd77ae96Smrg$as_echo "$as_me: loading cache $cache_file" >&6;}
178072b4363aSmrg    case $cache_file in
178172b4363aSmrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
178272b4363aSmrg      *)                      . "./$cache_file";;
178372b4363aSmrg    esac
178472b4363aSmrg  fi
178572b4363aSmrgelse
1786dd77ae96Smrg  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1787dd77ae96Smrg$as_echo "$as_me: creating cache $cache_file" >&6;}
178872b4363aSmrg  >$cache_file
178972b4363aSmrgfi
179072b4363aSmrg
179172b4363aSmrg# Check that the precious variables saved in the cache have kept the same
179272b4363aSmrg# value.
179372b4363aSmrgac_cache_corrupted=false
179472b4363aSmrgfor ac_var in $ac_precious_vars; do
179572b4363aSmrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
179672b4363aSmrg  eval ac_new_set=\$ac_env_${ac_var}_set
179772b4363aSmrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
179872b4363aSmrg  eval ac_new_val=\$ac_env_${ac_var}_value
179972b4363aSmrg  case $ac_old_set,$ac_new_set in
180072b4363aSmrg    set,)
1801dd77ae96Smrg      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1802dd77ae96Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
180372b4363aSmrg      ac_cache_corrupted=: ;;
180472b4363aSmrg    ,set)
1805dd77ae96Smrg      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1806dd77ae96Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
180772b4363aSmrg      ac_cache_corrupted=: ;;
180872b4363aSmrg    ,);;
180972b4363aSmrg    *)
181072b4363aSmrg      if test "x$ac_old_val" != "x$ac_new_val"; then
1811dd77ae96Smrg	# differences in whitespace do not lead to failure.
1812dd77ae96Smrg	ac_old_val_w=`echo x $ac_old_val`
1813dd77ae96Smrg	ac_new_val_w=`echo x $ac_new_val`
1814dd77ae96Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1815dd77ae96Smrg	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1816dd77ae96Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1817dd77ae96Smrg	  ac_cache_corrupted=:
1818dd77ae96Smrg	else
1819dd77ae96Smrg	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1820dd77ae96Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1821dd77ae96Smrg	  eval $ac_var=\$ac_old_val
1822dd77ae96Smrg	fi
1823dd77ae96Smrg	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1824dd77ae96Smrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1825dd77ae96Smrg	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1826dd77ae96Smrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
182772b4363aSmrg      fi;;
182872b4363aSmrg  esac
182972b4363aSmrg  # Pass precious variables to config.status.
183072b4363aSmrg  if test "$ac_new_set" = set; then
183172b4363aSmrg    case $ac_new_val in
1832dd77ae96Smrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
183372b4363aSmrg    *) ac_arg=$ac_var=$ac_new_val ;;
183472b4363aSmrg    esac
183572b4363aSmrg    case " $ac_configure_args " in
183672b4363aSmrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
183772b4363aSmrg      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
183872b4363aSmrg    esac
183972b4363aSmrg  fi
184072b4363aSmrgdone
184172b4363aSmrgif $ac_cache_corrupted; then
1842dd77ae96Smrg  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1843dd77ae96Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1844dd77ae96Smrg  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1845dd77ae96Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1846dd77ae96Smrg  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1847dd77ae96Smrg$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
184872b4363aSmrg   { (exit 1); exit 1; }; }
184972b4363aSmrgfi
185072b4363aSmrg
185172b4363aSmrg
185272b4363aSmrg
185372b4363aSmrg
185472b4363aSmrg
185572b4363aSmrg
185672b4363aSmrg
185772b4363aSmrg
185872b4363aSmrg
185972b4363aSmrg
186072b4363aSmrg
186172b4363aSmrg
186272b4363aSmrg
186372b4363aSmrg
186472b4363aSmrg
186572b4363aSmrg
186672b4363aSmrg
186772b4363aSmrg
186872b4363aSmrg
186972b4363aSmrg
187072b4363aSmrg
187172b4363aSmrg
187272b4363aSmrg
187372b4363aSmrg
187472b4363aSmrg
187572b4363aSmrgac_ext=c
187672b4363aSmrgac_cpp='$CPP $CPPFLAGS'
187772b4363aSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
187872b4363aSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
187972b4363aSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
188072b4363aSmrg
188172b4363aSmrg
1882dd77ae96Smrgam__api_version='1.11'
188372b4363aSmrg
188472b4363aSmrgac_aux_dir=
188572b4363aSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
188672b4363aSmrg  if test -f "$ac_dir/install-sh"; then
188772b4363aSmrg    ac_aux_dir=$ac_dir
188872b4363aSmrg    ac_install_sh="$ac_aux_dir/install-sh -c"
188972b4363aSmrg    break
189072b4363aSmrg  elif test -f "$ac_dir/install.sh"; then
189172b4363aSmrg    ac_aux_dir=$ac_dir
189272b4363aSmrg    ac_install_sh="$ac_aux_dir/install.sh -c"
189372b4363aSmrg    break
189472b4363aSmrg  elif test -f "$ac_dir/shtool"; then
189572b4363aSmrg    ac_aux_dir=$ac_dir
189672b4363aSmrg    ac_install_sh="$ac_aux_dir/shtool install -c"
189772b4363aSmrg    break
189872b4363aSmrg  fi
189972b4363aSmrgdone
190072b4363aSmrgif test -z "$ac_aux_dir"; then
1901dd77ae96Smrg  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1902dd77ae96Smrg$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
190372b4363aSmrg   { (exit 1); exit 1; }; }
190472b4363aSmrgfi
190572b4363aSmrg
190672b4363aSmrg# These three variables are undocumented and unsupported,
190772b4363aSmrg# and are intended to be withdrawn in a future Autoconf release.
190872b4363aSmrg# They can cause serious problems if a builder's source tree is in a directory
190972b4363aSmrg# whose full name contains unusual characters.
191072b4363aSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
191172b4363aSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
191272b4363aSmrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
191372b4363aSmrg
191472b4363aSmrg
191572b4363aSmrg# Find a good install program.  We prefer a C program (faster),
191672b4363aSmrg# so one script is as good as another.  But avoid the broken or
191772b4363aSmrg# incompatible versions:
191872b4363aSmrg# SysV /etc/install, /usr/sbin/install
191972b4363aSmrg# SunOS /usr/etc/install
192072b4363aSmrg# IRIX /sbin/install
192172b4363aSmrg# AIX /bin/install
192272b4363aSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs
192372b4363aSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
192472b4363aSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
192572b4363aSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
192672b4363aSmrg# OS/2's system install, which has a completely different semantic
192772b4363aSmrg# ./install, which can be erroneously created by make from ./install.sh.
1928dd77ae96Smrg# Reject install programs that cannot install multiple files.
1929dd77ae96Smrg{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1930dd77ae96Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
193172b4363aSmrgif test -z "$INSTALL"; then
193272b4363aSmrgif test "${ac_cv_path_install+set}" = set; then
1933dd77ae96Smrg  $as_echo_n "(cached) " >&6
193472b4363aSmrgelse
193572b4363aSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193672b4363aSmrgfor as_dir in $PATH
193772b4363aSmrgdo
193872b4363aSmrg  IFS=$as_save_IFS
193972b4363aSmrg  test -z "$as_dir" && as_dir=.
194072b4363aSmrg  # Account for people who put trailing slashes in PATH elements.
194172b4363aSmrgcase $as_dir/ in
194272b4363aSmrg  ./ | .// | /cC/* | \
194372b4363aSmrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
194472b4363aSmrg  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
194572b4363aSmrg  /usr/ucb/* ) ;;
194672b4363aSmrg  *)
194772b4363aSmrg    # OSF1 and SCO ODT 3.0 have their own names for install.
194872b4363aSmrg    # Don't use installbsd from OSF since it installs stuff as root
194972b4363aSmrg    # by default.
195072b4363aSmrg    for ac_prog in ginstall scoinst install; do
195172b4363aSmrg      for ac_exec_ext in '' $ac_executable_extensions; do
195272b4363aSmrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
195372b4363aSmrg	  if test $ac_prog = install &&
195472b4363aSmrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
195572b4363aSmrg	    # AIX install.  It has an incompatible calling convention.
195672b4363aSmrg	    :
195772b4363aSmrg	  elif test $ac_prog = install &&
195872b4363aSmrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
195972b4363aSmrg	    # program-specific install script used by HP pwplus--don't use.
196072b4363aSmrg	    :
196172b4363aSmrg	  else
1962dd77ae96Smrg	    rm -rf conftest.one conftest.two conftest.dir
1963dd77ae96Smrg	    echo one > conftest.one
1964dd77ae96Smrg	    echo two > conftest.two
1965dd77ae96Smrg	    mkdir conftest.dir
1966dd77ae96Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1967dd77ae96Smrg	      test -s conftest.one && test -s conftest.two &&
1968dd77ae96Smrg	      test -s conftest.dir/conftest.one &&
1969dd77ae96Smrg	      test -s conftest.dir/conftest.two
1970dd77ae96Smrg	    then
1971dd77ae96Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1972dd77ae96Smrg	      break 3
1973dd77ae96Smrg	    fi
197472b4363aSmrg	  fi
197572b4363aSmrg	fi
197672b4363aSmrg      done
197772b4363aSmrg    done
197872b4363aSmrg    ;;
197972b4363aSmrgesac
1980dd77ae96Smrg
198172b4363aSmrgdone
198272b4363aSmrgIFS=$as_save_IFS
198372b4363aSmrg
1984dd77ae96Smrgrm -rf conftest.one conftest.two conftest.dir
198572b4363aSmrg
198672b4363aSmrgfi
198772b4363aSmrg  if test "${ac_cv_path_install+set}" = set; then
198872b4363aSmrg    INSTALL=$ac_cv_path_install
198972b4363aSmrg  else
199072b4363aSmrg    # As a last resort, use the slow shell script.  Don't cache a
199172b4363aSmrg    # value for INSTALL within a source directory, because that will
199272b4363aSmrg    # break other packages using the cache if that directory is
199372b4363aSmrg    # removed, or if the value is a relative name.
199472b4363aSmrg    INSTALL=$ac_install_sh
199572b4363aSmrg  fi
199672b4363aSmrgfi
1997dd77ae96Smrg{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
1998dd77ae96Smrg$as_echo "$INSTALL" >&6; }
199972b4363aSmrg
200072b4363aSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
200172b4363aSmrg# It thinks the first close brace ends the variable substitution.
200272b4363aSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
200372b4363aSmrg
200472b4363aSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
200572b4363aSmrg
200672b4363aSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
200772b4363aSmrg
2008dd77ae96Smrg{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2009dd77ae96Smrg$as_echo_n "checking whether build environment is sane... " >&6; }
201072b4363aSmrg# Just in case
201172b4363aSmrgsleep 1
201272b4363aSmrgecho timestamp > conftest.file
2013dd77ae96Smrg# Reject unsafe characters in $srcdir or the absolute working directory
2014dd77ae96Smrg# name.  Accept space and tab only in the latter.
2015dd77ae96Smrgam_lf='
2016dd77ae96Smrg'
2017dd77ae96Smrgcase `pwd` in
2018dd77ae96Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
2019dd77ae96Smrg    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2020dd77ae96Smrg$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2021dd77ae96Smrg   { (exit 1); exit 1; }; };;
2022dd77ae96Smrgesac
2023dd77ae96Smrgcase $srcdir in
2024dd77ae96Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2025dd77ae96Smrg    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2026dd77ae96Smrg$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2027dd77ae96Smrg   { (exit 1); exit 1; }; };;
2028dd77ae96Smrgesac
2029dd77ae96Smrg
203072b4363aSmrg# Do `set' in a subshell so we don't clobber the current shell's
203172b4363aSmrg# arguments.  Must try -L first in case configure is actually a
203272b4363aSmrg# symlink; some systems play weird games with the mod time of symlinks
203372b4363aSmrg# (eg FreeBSD returns the mod time of the symlink's containing
203472b4363aSmrg# directory).
203572b4363aSmrgif (
2036dd77ae96Smrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
203772b4363aSmrg   if test "$*" = "X"; then
203872b4363aSmrg      # -L didn't work.
2039dd77ae96Smrg      set X `ls -t "$srcdir/configure" conftest.file`
204072b4363aSmrg   fi
204172b4363aSmrg   rm -f conftest.file
204272b4363aSmrg   if test "$*" != "X $srcdir/configure conftest.file" \
204372b4363aSmrg      && test "$*" != "X conftest.file $srcdir/configure"; then
204472b4363aSmrg
204572b4363aSmrg      # If neither matched, then we have a broken ls.  This can happen
204672b4363aSmrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
204772b4363aSmrg      # broken ls alias from the environment.  This has actually
204872b4363aSmrg      # happened.  Such a system could not be considered "sane".
2049dd77ae96Smrg      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
205072b4363aSmrgalias in your environment" >&5
2051dd77ae96Smrg$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
205272b4363aSmrgalias in your environment" >&2;}
205372b4363aSmrg   { (exit 1); exit 1; }; }
205472b4363aSmrg   fi
205572b4363aSmrg
205672b4363aSmrg   test "$2" = conftest.file
205772b4363aSmrg   )
205872b4363aSmrgthen
205972b4363aSmrg   # Ok.
206072b4363aSmrg   :
206172b4363aSmrgelse
2062dd77ae96Smrg   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
206372b4363aSmrgCheck your system clock" >&5
2064dd77ae96Smrg$as_echo "$as_me: error: newly created file is older than distributed files!
206572b4363aSmrgCheck your system clock" >&2;}
206672b4363aSmrg   { (exit 1); exit 1; }; }
206772b4363aSmrgfi
2068dd77ae96Smrg{ $as_echo "$as_me:$LINENO: result: yes" >&5
2069dd77ae96Smrg$as_echo "yes" >&6; }
207072b4363aSmrgtest "$program_prefix" != NONE &&
207172b4363aSmrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
207272b4363aSmrg# Use a double $ so make ignores it.
207372b4363aSmrgtest "$program_suffix" != NONE &&
207472b4363aSmrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2075dd77ae96Smrg# Double any \ or $.
207672b4363aSmrg# By default was `s,x,x', remove it if useless.
2077dd77ae96Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2078dd77ae96Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
207972b4363aSmrg
208072b4363aSmrg# expand $ac_aux_dir to an absolute path
208172b4363aSmrgam_aux_dir=`cd $ac_aux_dir && pwd`
208272b4363aSmrg
2083dd77ae96Smrgif test x"${MISSING+set}" != xset; then
2084dd77ae96Smrg  case $am_aux_dir in
2085dd77ae96Smrg  *\ * | *\	*)
2086dd77ae96Smrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2087dd77ae96Smrg  *)
2088dd77ae96Smrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2089dd77ae96Smrg  esac
2090dd77ae96Smrgfi
209172b4363aSmrg# Use eval to expand $SHELL
209272b4363aSmrgif eval "$MISSING --run true"; then
209372b4363aSmrg  am_missing_run="$MISSING --run "
209472b4363aSmrgelse
209572b4363aSmrg  am_missing_run=
2096dd77ae96Smrg  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2097dd77ae96Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
209872b4363aSmrgfi
209972b4363aSmrg
2100dd77ae96Smrgif test x"${install_sh}" != xset; then
2101dd77ae96Smrg  case $am_aux_dir in
2102dd77ae96Smrg  *\ * | *\	*)
2103dd77ae96Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2104dd77ae96Smrg  *)
2105dd77ae96Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
2106dd77ae96Smrg  esac
2107dd77ae96Smrgfi
2108dd77ae96Smrg
2109dd77ae96Smrg# Installed binaries are usually stripped using `strip' when the user
2110dd77ae96Smrg# run `make install-strip'.  However `strip' might not be the right
2111dd77ae96Smrg# tool to use in cross-compilation environments, therefore Automake
2112dd77ae96Smrg# will honor the `STRIP' environment variable to overrule this program.
2113dd77ae96Smrgif test "$cross_compiling" != no; then
2114dd77ae96Smrg  if test -n "$ac_tool_prefix"; then
2115dd77ae96Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2116dd77ae96Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
2117dd77ae96Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2118dd77ae96Smrg$as_echo_n "checking for $ac_word... " >&6; }
2119dd77ae96Smrgif test "${ac_cv_prog_STRIP+set}" = set; then
2120dd77ae96Smrg  $as_echo_n "(cached) " >&6
2121dd77ae96Smrgelse
2122dd77ae96Smrg  if test -n "$STRIP"; then
2123dd77ae96Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2124dd77ae96Smrgelse
2125dd77ae96Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126dd77ae96Smrgfor as_dir in $PATH
2127dd77ae96Smrgdo
2128dd77ae96Smrg  IFS=$as_save_IFS
2129dd77ae96Smrg  test -z "$as_dir" && as_dir=.
2130dd77ae96Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2131dd77ae96Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2132dd77ae96Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2133dd77ae96Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2134dd77ae96Smrg    break 2
2135dd77ae96Smrg  fi
2136dd77ae96Smrgdone
2137dd77ae96Smrgdone
2138dd77ae96SmrgIFS=$as_save_IFS
2139dd77ae96Smrg
2140dd77ae96Smrgfi
2141dd77ae96Smrgfi
2142dd77ae96SmrgSTRIP=$ac_cv_prog_STRIP
2143dd77ae96Smrgif test -n "$STRIP"; then
2144dd77ae96Smrg  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2145dd77ae96Smrg$as_echo "$STRIP" >&6; }
2146dd77ae96Smrgelse
2147dd77ae96Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2148dd77ae96Smrg$as_echo "no" >&6; }
2149dd77ae96Smrgfi
2150dd77ae96Smrg
2151dd77ae96Smrg
2152dd77ae96Smrgfi
2153dd77ae96Smrgif test -z "$ac_cv_prog_STRIP"; then
2154dd77ae96Smrg  ac_ct_STRIP=$STRIP
2155dd77ae96Smrg  # Extract the first word of "strip", so it can be a program name with args.
2156dd77ae96Smrgset dummy strip; ac_word=$2
2157dd77ae96Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2158dd77ae96Smrg$as_echo_n "checking for $ac_word... " >&6; }
2159dd77ae96Smrgif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2160dd77ae96Smrg  $as_echo_n "(cached) " >&6
2161dd77ae96Smrgelse
2162dd77ae96Smrg  if test -n "$ac_ct_STRIP"; then
2163dd77ae96Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2164dd77ae96Smrgelse
2165dd77ae96Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166dd77ae96Smrgfor as_dir in $PATH
2167dd77ae96Smrgdo
2168dd77ae96Smrg  IFS=$as_save_IFS
2169dd77ae96Smrg  test -z "$as_dir" && as_dir=.
2170dd77ae96Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2171dd77ae96Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2172dd77ae96Smrg    ac_cv_prog_ac_ct_STRIP="strip"
2173dd77ae96Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2174dd77ae96Smrg    break 2
2175dd77ae96Smrg  fi
2176dd77ae96Smrgdone
2177dd77ae96Smrgdone
2178dd77ae96SmrgIFS=$as_save_IFS
2179dd77ae96Smrg
2180dd77ae96Smrgfi
2181dd77ae96Smrgfi
2182dd77ae96Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2183dd77ae96Smrgif test -n "$ac_ct_STRIP"; then
2184dd77ae96Smrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2185dd77ae96Smrg$as_echo "$ac_ct_STRIP" >&6; }
2186dd77ae96Smrgelse
2187dd77ae96Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2188dd77ae96Smrg$as_echo "no" >&6; }
2189dd77ae96Smrgfi
2190dd77ae96Smrg
2191dd77ae96Smrg  if test "x$ac_ct_STRIP" = x; then
2192dd77ae96Smrg    STRIP=":"
2193dd77ae96Smrg  else
2194dd77ae96Smrg    case $cross_compiling:$ac_tool_warned in
2195dd77ae96Smrgyes:)
2196dd77ae96Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2197dd77ae96Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2198dd77ae96Smrgac_tool_warned=yes ;;
2199dd77ae96Smrgesac
2200dd77ae96Smrg    STRIP=$ac_ct_STRIP
2201dd77ae96Smrg  fi
2202dd77ae96Smrgelse
2203dd77ae96Smrg  STRIP="$ac_cv_prog_STRIP"
2204dd77ae96Smrgfi
2205dd77ae96Smrg
2206dd77ae96Smrgfi
2207dd77ae96SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2208dd77ae96Smrg
2209dd77ae96Smrg{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2210dd77ae96Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2211dd77ae96Smrgif test -z "$MKDIR_P"; then
2212dd77ae96Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
2213dd77ae96Smrg  $as_echo_n "(cached) " >&6
2214dd77ae96Smrgelse
221572b4363aSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221672b4363aSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
221772b4363aSmrgdo
221872b4363aSmrg  IFS=$as_save_IFS
221972b4363aSmrg  test -z "$as_dir" && as_dir=.
222072b4363aSmrg  for ac_prog in mkdir gmkdir; do
222172b4363aSmrg	 for ac_exec_ext in '' $ac_executable_extensions; do
222272b4363aSmrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
222372b4363aSmrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
222472b4363aSmrg	     'mkdir (GNU coreutils) '* | \
222572b4363aSmrg	     'mkdir (coreutils) '* | \
222672b4363aSmrg	     'mkdir (fileutils) '4.1*)
222772b4363aSmrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
222872b4363aSmrg	       break 3;;
222972b4363aSmrg	   esac
223072b4363aSmrg	 done
223172b4363aSmrg       done
223272b4363aSmrgdone
223372b4363aSmrgIFS=$as_save_IFS
223472b4363aSmrg
223572b4363aSmrgfi
223672b4363aSmrg
223772b4363aSmrg  if test "${ac_cv_path_mkdir+set}" = set; then
223872b4363aSmrg    MKDIR_P="$ac_cv_path_mkdir -p"
223972b4363aSmrg  else
224072b4363aSmrg    # As a last resort, use the slow shell script.  Don't cache a
224172b4363aSmrg    # value for MKDIR_P within a source directory, because that will
224272b4363aSmrg    # break other packages using the cache if that directory is
224372b4363aSmrg    # removed, or if the value is a relative name.
224472b4363aSmrg    test -d ./--version && rmdir ./--version
224572b4363aSmrg    MKDIR_P="$ac_install_sh -d"
224672b4363aSmrg  fi
224772b4363aSmrgfi
2248dd77ae96Smrg{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2249dd77ae96Smrg$as_echo "$MKDIR_P" >&6; }
225072b4363aSmrg
225172b4363aSmrgmkdir_p="$MKDIR_P"
225272b4363aSmrgcase $mkdir_p in
225372b4363aSmrg  [\\/$]* | ?:[\\/]*) ;;
225472b4363aSmrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
225572b4363aSmrgesac
225672b4363aSmrg
225772b4363aSmrgfor ac_prog in gawk mawk nawk awk
225872b4363aSmrgdo
225972b4363aSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
226072b4363aSmrgset dummy $ac_prog; ac_word=$2
2261dd77ae96Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2262dd77ae96Smrg$as_echo_n "checking for $ac_word... " >&6; }
226372b4363aSmrgif test "${ac_cv_prog_AWK+set}" = set; then
2264dd77ae96Smrg  $as_echo_n "(cached) " >&6
226572b4363aSmrgelse
226672b4363aSmrg  if test -n "$AWK"; then
226772b4363aSmrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
226872b4363aSmrgelse
226972b4363aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
227072b4363aSmrgfor as_dir in $PATH
227172b4363aSmrgdo
227272b4363aSmrg  IFS=$as_save_IFS
227372b4363aSmrg  test -z "$as_dir" && as_dir=.
227472b4363aSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
227572b4363aSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
227672b4363aSmrg    ac_cv_prog_AWK="$ac_prog"
2277dd77ae96Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
227872b4363aSmrg    break 2
227972b4363aSmrg  fi
228072b4363aSmrgdone
228172b4363aSmrgdone
228272b4363aSmrgIFS=$as_save_IFS
228372b4363aSmrg
228472b4363aSmrgfi
228572b4363aSmrgfi
228672b4363aSmrgAWK=$ac_cv_prog_AWK
228772b4363aSmrgif test -n "$AWK"; then
2288dd77ae96Smrg  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2289dd77ae96Smrg$as_echo "$AWK" >&6; }
229072b4363aSmrgelse
2291dd77ae96Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2292dd77ae96Smrg$as_echo "no" >&6; }
229372b4363aSmrgfi
229472b4363aSmrg
229572b4363aSmrg
229672b4363aSmrg  test -n "$AWK" && break
229772b4363aSmrgdone
229872b4363aSmrg
2299dd77ae96Smrg{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2300dd77ae96Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2301dd77ae96Smrgset x ${MAKE-make}
2302dd77ae96Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
230372b4363aSmrgif { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2304dd77ae96Smrg  $as_echo_n "(cached) " >&6
230572b4363aSmrgelse
230672b4363aSmrg  cat >conftest.make <<\_ACEOF
230772b4363aSmrgSHELL = /bin/sh
230872b4363aSmrgall:
230972b4363aSmrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
231072b4363aSmrg_ACEOF
231172b4363aSmrg# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
231272b4363aSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
231372b4363aSmrg  *@@@%%%=?*=@@@%%%*)
231472b4363aSmrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
231572b4363aSmrg  *)
231672b4363aSmrg    eval ac_cv_prog_make_${ac_make}_set=no;;
231772b4363aSmrgesac
231872b4363aSmrgrm -f conftest.make
231972b4363aSmrgfi
232072b4363aSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2321dd77ae96Smrg  { $as_echo "$as_me:$LINENO: result: yes" >&5
2322dd77ae96Smrg$as_echo "yes" >&6; }
232372b4363aSmrg  SET_MAKE=
232472b4363aSmrgelse
2325dd77ae96Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2326dd77ae96Smrg$as_echo "no" >&6; }
232772b4363aSmrg  SET_MAKE="MAKE=${MAKE-make}"
232872b4363aSmrgfi
232972b4363aSmrg
233072b4363aSmrgrm -rf .tst 2>/dev/null
233172b4363aSmrgmkdir .tst 2>/dev/null
233272b4363aSmrgif test -d .tst; then
233372b4363aSmrg  am__leading_dot=.
233472b4363aSmrgelse
233572b4363aSmrg  am__leading_dot=_
233672b4363aSmrgfi
233772b4363aSmrgrmdir .tst 2>/dev/null
233872b4363aSmrg
233972b4363aSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
234072b4363aSmrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
234172b4363aSmrg  # is not polluted with repeated "-I."
234272b4363aSmrg  am__isrc=' -I$(srcdir)'
234372b4363aSmrg  # test to see if srcdir already configured
234472b4363aSmrg  if test -f $srcdir/config.status; then
2345dd77ae96Smrg    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2346dd77ae96Smrg$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
234772b4363aSmrg   { (exit 1); exit 1; }; }
234872b4363aSmrg  fi
234972b4363aSmrgfi
235072b4363aSmrg
235172b4363aSmrg# test whether we have cygpath
235272b4363aSmrgif test -z "$CYGPATH_W"; then
235372b4363aSmrg  if (cygpath --version) >/dev/null 2>/dev/null; then
235472b4363aSmrg    CYGPATH_W='cygpath -w'
235572b4363aSmrg  else
235672b4363aSmrg    CYGPATH_W=echo
235772b4363aSmrg  fi
235872b4363aSmrgfi
235972b4363aSmrg
236072b4363aSmrg
236172b4363aSmrg# Define the identity of the package.
236272b4363aSmrg PACKAGE='xgamma'
2363dd77ae96Smrg VERSION='1.0.3'
236472b4363aSmrg
236572b4363aSmrg
236672b4363aSmrgcat >>confdefs.h <<_ACEOF
236772b4363aSmrg#define PACKAGE "$PACKAGE"
236872b4363aSmrg_ACEOF
236972b4363aSmrg
237072b4363aSmrg
237172b4363aSmrgcat >>confdefs.h <<_ACEOF
237272b4363aSmrg#define VERSION "$VERSION"
237372b4363aSmrg_ACEOF
237472b4363aSmrg
237572b4363aSmrg# Some tools Automake needs.
237672b4363aSmrg
237772b4363aSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
237872b4363aSmrg
237972b4363aSmrg
238072b4363aSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
238172b4363aSmrg
238272b4363aSmrg
238372b4363aSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
238472b4363aSmrg
238572b4363aSmrg
238672b4363aSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
238772b4363aSmrg
238872b4363aSmrg
238972b4363aSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
239072b4363aSmrg
239172b4363aSmrg# We need awk for the "check" target.  The system "awk" is bad on
239272b4363aSmrg# some platforms.
239372b4363aSmrg# Always define AMTAR for backward compatibility.
239472b4363aSmrg
239572b4363aSmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
239672b4363aSmrg
239772b4363aSmrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
239872b4363aSmrg
239972b4363aSmrg
240072b4363aSmrg
240172b4363aSmrg
240272b4363aSmrg
2403dd77ae96Smrg
2404dd77ae96Smrg{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2405dd77ae96Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
240672b4363aSmrg    # Check whether --enable-maintainer-mode was given.
240772b4363aSmrgif test "${enable_maintainer_mode+set}" = set; then
240872b4363aSmrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
240972b4363aSmrgelse
241072b4363aSmrg  USE_MAINTAINER_MODE=no
241172b4363aSmrgfi
241272b4363aSmrg
2413dd77ae96Smrg  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2414dd77ae96Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
241572b4363aSmrg   if test $USE_MAINTAINER_MODE = yes; then
241672b4363aSmrg  MAINTAINER_MODE_TRUE=
241772b4363aSmrg  MAINTAINER_MODE_FALSE='#'
241872b4363aSmrgelse
241972b4363aSmrg  MAINTAINER_MODE_TRUE='#'
242072b4363aSmrg  MAINTAINER_MODE_FALSE=
242172b4363aSmrgfi
242272b4363aSmrg
242372b4363aSmrg  MAINT=$MAINTAINER_MODE_TRUE
242472b4363aSmrg
242572b4363aSmrg
242672b4363aSmrg
2427dd77ae96Smrg# Require xorg-macros 1.3 or later: XORG_DEFAULT_OPTIONS
2428dd77ae96Smrg
2429dd77ae96Smrg
2430dd77ae96Smrg
2431dd77ae96Smrg
2432dd77ae96Smrg
2433dd77ae96Smrg
2434dd77ae96Smrg
2435dd77ae96Smrg
2436dd77ae96Smrg
2437dd77ae96Smrg
2438dd77ae96Smrg
2439dd77ae96Smrg
244072b4363aSmrgac_config_headers="$ac_config_headers config.h"
244172b4363aSmrg
244272b4363aSmrg
244372b4363aSmrgac_ext=c
244472b4363aSmrgac_cpp='$CPP $CPPFLAGS'
244572b4363aSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
244672b4363aSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
244772b4363aSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
244872b4363aSmrgif test -n "$ac_tool_prefix"; then
244972b4363aSmrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
245072b4363aSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
2451dd77ae96Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2452dd77ae96Smrg$as_echo_n "checking for $ac_word... " >&6; }
245372b4363aSmrgif test "${ac_cv_prog_CC+set}" = set; then
2454dd77ae96Smrg  $as_echo_n "(cached) " >&6
245572b4363aSmrgelse
245672b4363aSmrg  if test -n "$CC"; then
245772b4363aSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
245872b4363aSmrgelse
245972b4363aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
246072b4363aSmrgfor as_dir in $PATH
246172b4363aSmrgdo
246272b4363aSmrg  IFS=$as_save_IFS
246372b4363aSmrg  test -z "$as_dir" && as_dir=.
246472b4363aSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
246572b4363aSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
246672b4363aSmrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2467dd77ae96Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
246872b4363aSmrg    break 2
246972b4363aSmrg  fi
247072b4363aSmrgdone
247172b4363aSmrgdone
247272b4363aSmrgIFS=$as_save_IFS
247372b4363aSmrg
247472b4363aSmrgfi
247572b4363aSmrgfi
247672b4363aSmrgCC=$ac_cv_prog_CC
247772b4363aSmrgif test -n "$CC"; then
2478dd77ae96Smrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2479dd77ae96Smrg$as_echo "$CC" >&6; }
248072b4363aSmrgelse
2481dd77ae96Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2482dd77ae96Smrg$as_echo "no" >&6; }
248372b4363aSmrgfi
248472b4363aSmrg
248572b4363aSmrg
248672b4363aSmrgfi
248772b4363aSmrgif test -z "$ac_cv_prog_CC"; then
248872b4363aSmrg  ac_ct_CC=$CC
248972b4363aSmrg  # Extract the first word of "gcc", so it can be a program name with args.
249072b4363aSmrgset dummy gcc; ac_word=$2
2491dd77ae96Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2492dd77ae96Smrg$as_echo_n "checking for $ac_word... " >&6; }
249372b4363aSmrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2494dd77ae96Smrg  $as_echo_n "(cached) " >&6
249572b4363aSmrgelse
249672b4363aSmrg  if test -n "$ac_ct_CC"; then
249772b4363aSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
249872b4363aSmrgelse
249972b4363aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
250072b4363aSmrgfor as_dir in $PATH
250172b4363aSmrgdo
250272b4363aSmrg  IFS=$as_save_IFS
250372b4363aSmrg  test -z "$as_dir" && as_dir=.
250472b4363aSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
250572b4363aSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
250672b4363aSmrg    ac_cv_prog_ac_ct_CC="gcc"
2507dd77ae96Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
250872b4363aSmrg    break 2
250972b4363aSmrg  fi
251072b4363aSmrgdone
251172b4363aSmrgdone
251272b4363aSmrgIFS=$as_save_IFS
251372b4363aSmrg
251472b4363aSmrgfi
251572b4363aSmrgfi
251672b4363aSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
251772b4363aSmrgif test -n "$ac_ct_CC"; then
2518dd77ae96Smrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2519dd77ae96Smrg$as_echo "$ac_ct_CC" >&6; }
252072b4363aSmrgelse
2521dd77ae96Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2522dd77ae96Smrg$as_echo "no" >&6; }
252372b4363aSmrgfi
252472b4363aSmrg
252572b4363aSmrg  if test "x$ac_ct_CC" = x; then
252672b4363aSmrg    CC=""
252772b4363aSmrg  else
252872b4363aSmrg    case $cross_compiling:$ac_tool_warned in
252972b4363aSmrgyes:)
2530dd77ae96Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2531dd77ae96Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
253272b4363aSmrgac_tool_warned=yes ;;
253372b4363aSmrgesac
253472b4363aSmrg    CC=$ac_ct_CC
253572b4363aSmrg  fi
253672b4363aSmrgelse
253772b4363aSmrg  CC="$ac_cv_prog_CC"
253872b4363aSmrgfi
253972b4363aSmrg
254072b4363aSmrgif test -z "$CC"; then
254172b4363aSmrg          if test -n "$ac_tool_prefix"; then
254272b4363aSmrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
254372b4363aSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2
2544dd77ae96Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2545dd77ae96Smrg$as_echo_n "checking for $ac_word... " >&6; }
254672b4363aSmrgif test "${ac_cv_prog_CC+set}" = set; then
2547dd77ae96Smrg  $as_echo_n "(cached) " >&6
254872b4363aSmrgelse
254972b4363aSmrg  if test -n "$CC"; then
255072b4363aSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
255172b4363aSmrgelse
255272b4363aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
255372b4363aSmrgfor as_dir in $PATH
255472b4363aSmrgdo
255572b4363aSmrg  IFS=$as_save_IFS
255672b4363aSmrg  test -z "$as_dir" && as_dir=.
255772b4363aSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
255872b4363aSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
255972b4363aSmrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
2560dd77ae96Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
256172b4363aSmrg    break 2
256272b4363aSmrg  fi
256372b4363aSmrgdone
256472b4363aSmrgdone
256572b4363aSmrgIFS=$as_save_IFS
256672b4363aSmrg
256772b4363aSmrgfi
256872b4363aSmrgfi
256972b4363aSmrgCC=$ac_cv_prog_CC
257072b4363aSmrgif test -n "$CC"; then
2571dd77ae96Smrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2572dd77ae96Smrg$as_echo "$CC" >&6; }
257372b4363aSmrgelse
2574dd77ae96Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2575dd77ae96Smrg$as_echo "no" >&6; }
257672b4363aSmrgfi
257772b4363aSmrg
257872b4363aSmrg
257972b4363aSmrg  fi
258072b4363aSmrgfi
258172b4363aSmrgif test -z "$CC"; then
258272b4363aSmrg  # Extract the first word of "cc", so it can be a program name with args.
258372b4363aSmrgset dummy cc; ac_word=$2
2584dd77ae96Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2585dd77ae96Smrg$as_echo_n "checking for $ac_word... " >&6; }
258672b4363aSmrgif test "${ac_cv_prog_CC+set}" = set; then
2587dd77ae96Smrg  $as_echo_n "(cached) " >&6
258872b4363aSmrgelse
258972b4363aSmrg  if test -n "$CC"; then
259072b4363aSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
259172b4363aSmrgelse
259272b4363aSmrg  ac_prog_rejected=no
259372b4363aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
259472b4363aSmrgfor as_dir in $PATH
259572b4363aSmrgdo
259672b4363aSmrg  IFS=$as_save_IFS
259772b4363aSmrg  test -z "$as_dir" && as_dir=.
259872b4363aSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
259972b4363aSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
260072b4363aSmrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
260172b4363aSmrg       ac_prog_rejected=yes
260272b4363aSmrg       continue
260372b4363aSmrg     fi
260472b4363aSmrg    ac_cv_prog_CC="cc"
2605dd77ae96Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
260672b4363aSmrg    break 2
260772b4363aSmrg  fi
260872b4363aSmrgdone
260972b4363aSmrgdone
261072b4363aSmrgIFS=$as_save_IFS
261172b4363aSmrg
261272b4363aSmrgif test $ac_prog_rejected = yes; then
261372b4363aSmrg  # We found a bogon in the path, so make sure we never use it.
261472b4363aSmrg  set dummy $ac_cv_prog_CC
261572b4363aSmrg  shift
261672b4363aSmrg  if test $# != 0; then
261772b4363aSmrg    # We chose a different compiler from the bogus one.
261872b4363aSmrg    # However, it has the same basename, so the bogon will be chosen
261972b4363aSmrg    # first if we set CC to just the basename; use the full file name.
262072b4363aSmrg    shift
262172b4363aSmrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
262272b4363aSmrg  fi
262372b4363aSmrgfi
262472b4363aSmrgfi
262572b4363aSmrgfi
262672b4363aSmrgCC=$ac_cv_prog_CC
262772b4363aSmrgif test -n "$CC"; then
2628dd77ae96Smrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2629dd77ae96Smrg$as_echo "$CC" >&6; }
263072b4363aSmrgelse
2631dd77ae96Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2632dd77ae96Smrg$as_echo "no" >&6; }
263372b4363aSmrgfi
263472b4363aSmrg
263572b4363aSmrg
263672b4363aSmrgfi
263772b4363aSmrgif test -z "$CC"; then
263872b4363aSmrg  if test -n "$ac_tool_prefix"; then
263972b4363aSmrg  for ac_prog in cl.exe
264072b4363aSmrg  do
264172b4363aSmrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
264272b4363aSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
2643dd77ae96Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2644dd77ae96Smrg$as_echo_n "checking for $ac_word... " >&6; }
264572b4363aSmrgif test "${ac_cv_prog_CC+set}" = set; then
2646dd77ae96Smrg  $as_echo_n "(cached) " >&6
264772b4363aSmrgelse
264872b4363aSmrg  if test -n "$CC"; then
264972b4363aSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
265072b4363aSmrgelse
265172b4363aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
265272b4363aSmrgfor as_dir in $PATH
265372b4363aSmrgdo
265472b4363aSmrg  IFS=$as_save_IFS
265572b4363aSmrg  test -z "$as_dir" && as_dir=.
265672b4363aSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
265772b4363aSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
265872b4363aSmrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2659dd77ae96Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
266072b4363aSmrg    break 2
266172b4363aSmrg  fi
266272b4363aSmrgdone
266372b4363aSmrgdone
266472b4363aSmrgIFS=$as_save_IFS
266572b4363aSmrg
266672b4363aSmrgfi
266772b4363aSmrgfi
266872b4363aSmrgCC=$ac_cv_prog_CC
266972b4363aSmrgif test -n "$CC"; then
2670dd77ae96Smrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2671dd77ae96Smrg$as_echo "$CC" >&6; }
267272b4363aSmrgelse
2673dd77ae96Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2674dd77ae96Smrg$as_echo "no" >&6; }
267572b4363aSmrgfi
267672b4363aSmrg
267772b4363aSmrg
267872b4363aSmrg    test -n "$CC" && break
267972b4363aSmrg  done
268072b4363aSmrgfi
268172b4363aSmrgif test -z "$CC"; then
268272b4363aSmrg  ac_ct_CC=$CC
268372b4363aSmrg  for ac_prog in cl.exe
268472b4363aSmrgdo
268572b4363aSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
268672b4363aSmrgset dummy $ac_prog; ac_word=$2
2687dd77ae96Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2688dd77ae96Smrg$as_echo_n "checking for $ac_word... " >&6; }
268972b4363aSmrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2690dd77ae96Smrg  $as_echo_n "(cached) " >&6
269172b4363aSmrgelse
269272b4363aSmrg  if test -n "$ac_ct_CC"; then
269372b4363aSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
269472b4363aSmrgelse
269572b4363aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
269672b4363aSmrgfor as_dir in $PATH
269772b4363aSmrgdo
269872b4363aSmrg  IFS=$as_save_IFS
269972b4363aSmrg  test -z "$as_dir" && as_dir=.
270072b4363aSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
270172b4363aSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
270272b4363aSmrg    ac_cv_prog_ac_ct_CC="$ac_prog"
2703dd77ae96Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
270472b4363aSmrg    break 2
270572b4363aSmrg  fi
270672b4363aSmrgdone
270772b4363aSmrgdone
270872b4363aSmrgIFS=$as_save_IFS
270972b4363aSmrg
271072b4363aSmrgfi
271172b4363aSmrgfi
271272b4363aSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
271372b4363aSmrgif test -n "$ac_ct_CC"; then
2714dd77ae96Smrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2715dd77ae96Smrg$as_echo "$ac_ct_CC" >&6; }
271672b4363aSmrgelse
2717dd77ae96Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2718dd77ae96Smrg$as_echo "no" >&6; }
271972b4363aSmrgfi
272072b4363aSmrg
272172b4363aSmrg
272272b4363aSmrg  test -n "$ac_ct_CC" && break
272372b4363aSmrgdone
272472b4363aSmrg
272572b4363aSmrg  if test "x$ac_ct_CC" = x; then
272672b4363aSmrg    CC=""
272772b4363aSmrg  else
272872b4363aSmrg    case $cross_compiling:$ac_tool_warned in
272972b4363aSmrgyes:)
2730dd77ae96Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2731dd77ae96Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
273272b4363aSmrgac_tool_warned=yes ;;
273372b4363aSmrgesac
273472b4363aSmrg    CC=$ac_ct_CC
273572b4363aSmrg  fi
273672b4363aSmrgfi
273772b4363aSmrg
273872b4363aSmrgfi
273972b4363aSmrg
274072b4363aSmrg
2741dd77ae96Smrgtest -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2742dd77ae96Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2743dd77ae96Smrg{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
274472b4363aSmrgSee \`config.log' for more details." >&5
2745dd77ae96Smrg$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
274672b4363aSmrgSee \`config.log' for more details." >&2;}
2747dd77ae96Smrg   { (exit 1); exit 1; }; }; }
274872b4363aSmrg
274972b4363aSmrg# Provide some information about the compiler.
2750dd77ae96Smrg$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2751dd77ae96Smrgset X $ac_compile
2752dd77ae96Smrgac_compiler=$2
275372b4363aSmrg{ (ac_try="$ac_compiler --version >&5"
275472b4363aSmrgcase "(($ac_try" in
275572b4363aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
275672b4363aSmrg  *) ac_try_echo=$ac_try;;
275772b4363aSmrgesac
2758dd77ae96Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2759dd77ae96Smrg$as_echo "$ac_try_echo") >&5
276072b4363aSmrg  (eval "$ac_compiler --version >&5") 2>&5
276172b4363aSmrg  ac_status=$?
2762dd77ae96Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
276372b4363aSmrg  (exit $ac_status); }
276472b4363aSmrg{ (ac_try="$ac_compiler -v >&5"
276572b4363aSmrgcase "(($ac_try" in
276672b4363aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
276772b4363aSmrg  *) ac_try_echo=$ac_try;;
276872b4363aSmrgesac
2769dd77ae96Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2770dd77ae96Smrg$as_echo "$ac_try_echo") >&5
277172b4363aSmrg  (eval "$ac_compiler -v >&5") 2>&5
277272b4363aSmrg  ac_status=$?
2773dd77ae96Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
277472b4363aSmrg  (exit $ac_status); }
277572b4363aSmrg{ (ac_try="$ac_compiler -V >&5"
277672b4363aSmrgcase "(($ac_try" in
277772b4363aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
277872b4363aSmrg  *) ac_try_echo=$ac_try;;
277972b4363aSmrgesac
2780dd77ae96Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2781dd77ae96Smrg$as_echo "$ac_try_echo") >&5
278272b4363aSmrg  (eval "$ac_compiler -V >&5") 2>&5
278372b4363aSmrg  ac_status=$?
2784dd77ae96Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
278572b4363aSmrg  (exit $ac_status); }
278672b4363aSmrg
278772b4363aSmrgcat >conftest.$ac_ext <<_ACEOF
278872b4363aSmrg/* confdefs.h.  */
278972b4363aSmrg_ACEOF
279072b4363aSmrgcat confdefs.h >>conftest.$ac_ext
279172b4363aSmrgcat >>conftest.$ac_ext <<_ACEOF
279272b4363aSmrg/* end confdefs.h.  */
279372b4363aSmrg
279472b4363aSmrgint
279572b4363aSmrgmain ()
279672b4363aSmrg{
279772b4363aSmrg
279872b4363aSmrg  ;
279972b4363aSmrg  return 0;
280072b4363aSmrg}
280172b4363aSmrg_ACEOF
280272b4363aSmrgac_clean_files_save=$ac_clean_files
2803dd77ae96Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
280472b4363aSmrg# Try to create an executable without -o first, disregard a.out.
280572b4363aSmrg# It will help us diagnose broken compilers, and finding out an intuition
280672b4363aSmrg# of exeext.
2807dd77ae96Smrg{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2808dd77ae96Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
2809dd77ae96Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2810dd77ae96Smrg
2811dd77ae96Smrg# The possible output files:
2812dd77ae96Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2813dd77ae96Smrg
281472b4363aSmrgac_rmfiles=
281572b4363aSmrgfor ac_file in $ac_files
281672b4363aSmrgdo
281772b4363aSmrg  case $ac_file in
2818dd77ae96Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
281972b4363aSmrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
282072b4363aSmrg  esac
282172b4363aSmrgdone
282272b4363aSmrgrm -f $ac_rmfiles
282372b4363aSmrg
282472b4363aSmrgif { (ac_try="$ac_link_default"
282572b4363aSmrgcase "(($ac_try" in
282672b4363aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
282772b4363aSmrg  *) ac_try_echo=$ac_try;;
282872b4363aSmrgesac
2829dd77ae96Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2830dd77ae96Smrg$as_echo "$ac_try_echo") >&5
283172b4363aSmrg  (eval "$ac_link_default") 2>&5
283272b4363aSmrg  ac_status=$?
2833dd77ae96Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
283472b4363aSmrg  (exit $ac_status); }; then
283572b4363aSmrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
283672b4363aSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
283772b4363aSmrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
283872b4363aSmrg# so that the user can short-circuit this test for compilers unknown to
283972b4363aSmrg# Autoconf.
284072b4363aSmrgfor ac_file in $ac_files ''
284172b4363aSmrgdo
284272b4363aSmrg  test -f "$ac_file" || continue
284372b4363aSmrg  case $ac_file in
2844dd77ae96Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
284572b4363aSmrg	;;
284672b4363aSmrg    [ab].out )
284772b4363aSmrg	# We found the default executable, but exeext='' is most
284872b4363aSmrg	# certainly right.
284972b4363aSmrg	break;;
285072b4363aSmrg    *.* )
285172b4363aSmrg        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
285272b4363aSmrg	then :; else
285372b4363aSmrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
285472b4363aSmrg	fi
285572b4363aSmrg	# We set ac_cv_exeext here because the later test for it is not
285672b4363aSmrg	# safe: cross compilers may not add the suffix if given an `-o'
285772b4363aSmrg	# argument, so we may need to know it at that point already.
285872b4363aSmrg	# Even if this section looks crufty: it has the advantage of
285972b4363aSmrg	# actually working.
286072b4363aSmrg	break;;
286172b4363aSmrg    * )
286272b4363aSmrg	break;;
286372b4363aSmrg  esac
286472b4363aSmrgdone
286572b4363aSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
286672b4363aSmrg
286772b4363aSmrgelse
286872b4363aSmrg  ac_file=''
286972b4363aSmrgfi
287072b4363aSmrg
2871dd77ae96Smrg{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2872dd77ae96Smrg$as_echo "$ac_file" >&6; }
287372b4363aSmrgif test -z "$ac_file"; then
2874dd77ae96Smrg  $as_echo "$as_me: failed program was:" >&5
287572b4363aSmrgsed 's/^/| /' conftest.$ac_ext >&5
287672b4363aSmrg
2877dd77ae96Smrg{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2878dd77ae96Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2879dd77ae96Smrg{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
288072b4363aSmrgSee \`config.log' for more details." >&5
2881dd77ae96Smrg$as_echo "$as_me: error: C compiler cannot create executables
288272b4363aSmrgSee \`config.log' for more details." >&2;}
2883dd77ae96Smrg   { (exit 77); exit 77; }; }; }
288472b4363aSmrgfi
288572b4363aSmrg
288672b4363aSmrgac_exeext=$ac_cv_exeext
288772b4363aSmrg
288872b4363aSmrg# Check that the compiler produces executables we can run.  If not, either
288972b4363aSmrg# the compiler is broken, or we cross compile.
2890dd77ae96Smrg{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2891dd77ae96Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
289272b4363aSmrg# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
289372b4363aSmrg# If not cross compiling, check that we can run a simple program.
289472b4363aSmrgif test "$cross_compiling" != yes; then
289572b4363aSmrg  if { ac_try='./$ac_file'
289672b4363aSmrg  { (case "(($ac_try" in
289772b4363aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
289872b4363aSmrg  *) ac_try_echo=$ac_try;;
289972b4363aSmrgesac
2900dd77ae96Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2901dd77ae96Smrg$as_echo "$ac_try_echo") >&5
290272b4363aSmrg  (eval "$ac_try") 2>&5
290372b4363aSmrg  ac_status=$?
2904dd77ae96Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
290572b4363aSmrg  (exit $ac_status); }; }; then
290672b4363aSmrg    cross_compiling=no
290772b4363aSmrg  else
290872b4363aSmrg    if test "$cross_compiling" = maybe; then
290972b4363aSmrg	cross_compiling=yes
291072b4363aSmrg    else
2911dd77ae96Smrg	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2912dd77ae96Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2913dd77ae96Smrg{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
291472b4363aSmrgIf you meant to cross compile, use \`--host'.
291572b4363aSmrgSee \`config.log' for more details." >&5
2916dd77ae96Smrg$as_echo "$as_me: error: cannot run C compiled programs.
291772b4363aSmrgIf you meant to cross compile, use \`--host'.
291872b4363aSmrgSee \`config.log' for more details." >&2;}
2919dd77ae96Smrg   { (exit 1); exit 1; }; }; }
292072b4363aSmrg    fi
292172b4363aSmrg  fi
292272b4363aSmrgfi
2923dd77ae96Smrg{ $as_echo "$as_me:$LINENO: result: yes" >&5
2924dd77ae96Smrg$as_echo "yes" >&6; }
292572b4363aSmrg
2926dd77ae96Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
292772b4363aSmrgac_clean_files=$ac_clean_files_save
292872b4363aSmrg# Check that the compiler produces executables we can run.  If not, either
292972b4363aSmrg# the compiler is broken, or we cross compile.
2930dd77ae96Smrg{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2931dd77ae96Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
2932dd77ae96Smrg{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2933dd77ae96Smrg$as_echo "$cross_compiling" >&6; }
293472b4363aSmrg
2935dd77ae96Smrg{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2936dd77ae96Smrg$as_echo_n "checking for suffix of executables... " >&6; }
293772b4363aSmrgif { (ac_try="$ac_link"
293872b4363aSmrgcase "(($ac_try" in
293972b4363aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
294072b4363aSmrg  *) ac_try_echo=$ac_try;;
294172b4363aSmrgesac
2942dd77ae96Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2943dd77ae96Smrg$as_echo "$ac_try_echo") >&5
294472b4363aSmrg  (eval "$ac_link") 2>&5
294572b4363aSmrg  ac_status=$?
2946dd77ae96Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
294772b4363aSmrg  (exit $ac_status); }; then
294872b4363aSmrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
294972b4363aSmrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
295072b4363aSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with
295172b4363aSmrg# `rm'.
295272b4363aSmrgfor ac_file in conftest.exe conftest conftest.*; do
295372b4363aSmrg  test -f "$ac_file" || continue
295472b4363aSmrg  case $ac_file in
2955dd77ae96Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
295672b4363aSmrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
295772b4363aSmrg	  break;;
295872b4363aSmrg    * ) break;;
295972b4363aSmrg  esac
296072b4363aSmrgdone
296172b4363aSmrgelse
2962dd77ae96Smrg  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2963dd77ae96Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2964dd77ae96Smrg{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
296572b4363aSmrgSee \`config.log' for more details." >&5
2966dd77ae96Smrg$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
296772b4363aSmrgSee \`config.log' for more details." >&2;}
2968dd77ae96Smrg   { (exit 1); exit 1; }; }; }
296972b4363aSmrgfi
297072b4363aSmrg
297172b4363aSmrgrm -f conftest$ac_cv_exeext
2972dd77ae96Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2973dd77ae96Smrg$as_echo "$ac_cv_exeext" >&6; }
297472b4363aSmrg
297572b4363aSmrgrm -f conftest.$ac_ext
297672b4363aSmrgEXEEXT=$ac_cv_exeext
297772b4363aSmrgac_exeext=$EXEEXT
2978dd77ae96Smrg{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2979dd77ae96Smrg$as_echo_n "checking for suffix of object files... " >&6; }
298072b4363aSmrgif test "${ac_cv_objext+set}" = set; then
2981dd77ae96Smrg  $as_echo_n "(cached) " >&6
298272b4363aSmrgelse
298372b4363aSmrg  cat >conftest.$ac_ext <<_ACEOF
298472b4363aSmrg/* confdefs.h.  */
298572b4363aSmrg_ACEOF
298672b4363aSmrgcat confdefs.h >>conftest.$ac_ext
298772b4363aSmrgcat >>conftest.$ac_ext <<_ACEOF
298872b4363aSmrg/* end confdefs.h.  */
298972b4363aSmrg
299072b4363aSmrgint
299172b4363aSmrgmain ()
299272b4363aSmrg{
299372b4363aSmrg
299472b4363aSmrg  ;
299572b4363aSmrg  return 0;
299672b4363aSmrg}
299772b4363aSmrg_ACEOF
299872b4363aSmrgrm -f conftest.o conftest.obj
299972b4363aSmrgif { (ac_try="$ac_compile"
300072b4363aSmrgcase "(($ac_try" in
300172b4363aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
300272b4363aSmrg  *) ac_try_echo=$ac_try;;
300372b4363aSmrgesac
3004dd77ae96Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3005dd77ae96Smrg$as_echo "$ac_try_echo") >&5
300672b4363aSmrg  (eval "$ac_compile") 2>&5
300772b4363aSmrg  ac_status=$?
3008dd77ae96Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
300972b4363aSmrg  (exit $ac_status); }; then
301072b4363aSmrg  for ac_file in conftest.o conftest.obj conftest.*; do
301172b4363aSmrg  test -f "$ac_file" || continue;
301272b4363aSmrg  case $ac_file in
3013dd77ae96Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
301472b4363aSmrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
301572b4363aSmrg       break;;
301672b4363aSmrg  esac
301772b4363aSmrgdone
301872b4363aSmrgelse
3019dd77ae96Smrg  $as_echo "$as_me: failed program was:" >&5
302072b4363aSmrgsed 's/^/| /' conftest.$ac_ext >&5
302172b4363aSmrg
3022dd77ae96Smrg{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3023dd77ae96Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3024dd77ae96Smrg{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
302572b4363aSmrgSee \`config.log' for more details." >&5
3026dd77ae96Smrg$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
302772b4363aSmrgSee \`config.log' for more details." >&2;}
3028dd77ae96Smrg   { (exit 1); exit 1; }; }; }
302972b4363aSmrgfi
303072b4363aSmrg
303172b4363aSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
303272b4363aSmrgfi
3033dd77ae96Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3034dd77ae96Smrg$as_echo "$ac_cv_objext" >&6; }
303572b4363aSmrgOBJEXT=$ac_cv_objext
303672b4363aSmrgac_objext=$OBJEXT
3037dd77ae96Smrg{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3038dd77ae96Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
303972b4363aSmrgif test "${ac_cv_c_compiler_gnu+set}" = set; then
3040dd77ae96Smrg  $as_echo_n "(cached) " >&6
304172b4363aSmrgelse
304272b4363aSmrg  cat >conftest.$ac_ext <<_ACEOF
304372b4363aSmrg/* confdefs.h.  */
304472b4363aSmrg_ACEOF
304572b4363aSmrgcat confdefs.h >>conftest.$ac_ext
304672b4363aSmrgcat >>conftest.$ac_ext <<_ACEOF
304772b4363aSmrg/* end confdefs.h.  */
304872b4363aSmrg
304972b4363aSmrgint
305072b4363aSmrgmain ()
305172b4363aSmrg{
305272b4363aSmrg#ifndef __GNUC__
305372b4363aSmrg       choke me
305472b4363aSmrg#endif
305572b4363aSmrg
305672b4363aSmrg  ;
305772b4363aSmrg  return 0;
305872b4363aSmrg}
305972b4363aSmrg_ACEOF
306072b4363aSmrgrm -f conftest.$ac_objext
306172b4363aSmrgif { (ac_try="$ac_compile"
306272b4363aSmrgcase "(($ac_try" in
306372b4363aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
306472b4363aSmrg  *) ac_try_echo=$ac_try;;
306572b4363aSmrgesac
3066dd77ae96Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3067dd77ae96Smrg$as_echo "$ac_try_echo") >&5
306872b4363aSmrg  (eval "$ac_compile") 2>conftest.er1
306972b4363aSmrg  ac_status=$?
307072b4363aSmrg  grep -v '^ *+' conftest.er1 >conftest.err
307172b4363aSmrg  rm -f conftest.er1
307272b4363aSmrg  cat conftest.err >&5
3073dd77ae96Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
307472b4363aSmrg  (exit $ac_status); } && {
307572b4363aSmrg	 test -z "$ac_c_werror_flag" ||
307672b4363aSmrg	 test ! -s conftest.err
307772b4363aSmrg       } && test -s conftest.$ac_objext; then
307872b4363aSmrg  ac_compiler_gnu=yes
307972b4363aSmrgelse
3080dd77ae96Smrg  $as_echo "$as_me: failed program was:" >&5
308172b4363aSmrgsed 's/^/| /' conftest.$ac_ext >&5
308272b4363aSmrg
308372b4363aSmrg	ac_compiler_gnu=no
308472b4363aSmrgfi
308572b4363aSmrg
308672b4363aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
308772b4363aSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu
308872b4363aSmrg
308972b4363aSmrgfi
3090dd77ae96Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3091dd77ae96Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3092dd77ae96Smrgif test $ac_compiler_gnu = yes; then
3093dd77ae96Smrg  GCC=yes
3094dd77ae96Smrgelse
3095dd77ae96Smrg  GCC=
3096dd77ae96Smrgfi
309772b4363aSmrgac_test_CFLAGS=${CFLAGS+set}
309872b4363aSmrgac_save_CFLAGS=$CFLAGS
3099dd77ae96Smrg{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3100dd77ae96Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
310172b4363aSmrgif test "${ac_cv_prog_cc_g+set}" = set; then
3102dd77ae96Smrg  $as_echo_n "(cached) " >&6
310372b4363aSmrgelse
310472b4363aSmrg  ac_save_c_werror_flag=$ac_c_werror_flag
310572b4363aSmrg   ac_c_werror_flag=yes
310672b4363aSmrg   ac_cv_prog_cc_g=no
310772b4363aSmrg   CFLAGS="-g"
310872b4363aSmrg   cat >conftest.$ac_ext <<_ACEOF
310972b4363aSmrg/* confdefs.h.  */
311072b4363aSmrg_ACEOF
311172b4363aSmrgcat confdefs.h >>conftest.$ac_ext
311272b4363aSmrgcat >>conftest.$ac_ext <<_ACEOF
311372b4363aSmrg/* end confdefs.h.  */
311472b4363aSmrg
311572b4363aSmrgint
311672b4363aSmrgmain ()
311772b4363aSmrg{
311872b4363aSmrg
311972b4363aSmrg  ;
312072b4363aSmrg  return 0;
312172b4363aSmrg}
312272b4363aSmrg_ACEOF
312372b4363aSmrgrm -f conftest.$ac_objext
312472b4363aSmrgif { (ac_try="$ac_compile"
312572b4363aSmrgcase "(($ac_try" in
312672b4363aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
312772b4363aSmrg  *) ac_try_echo=$ac_try;;
312872b4363aSmrgesac
3129dd77ae96Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3130dd77ae96Smrg$as_echo "$ac_try_echo") >&5
313172b4363aSmrg  (eval "$ac_compile") 2>conftest.er1
313272b4363aSmrg  ac_status=$?
313372b4363aSmrg  grep -v '^ *+' conftest.er1 >conftest.err
313472b4363aSmrg  rm -f conftest.er1
313572b4363aSmrg  cat conftest.err >&5
3136dd77ae96Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
313772b4363aSmrg  (exit $ac_status); } && {
313872b4363aSmrg	 test -z "$ac_c_werror_flag" ||
313972b4363aSmrg	 test ! -s conftest.err
314072b4363aSmrg       } && test -s conftest.$ac_objext; then
314172b4363aSmrg  ac_cv_prog_cc_g=yes
314272b4363aSmrgelse
3143dd77ae96Smrg  $as_echo "$as_me: failed program was:" >&5
314472b4363aSmrgsed 's/^/| /' conftest.$ac_ext >&5
314572b4363aSmrg
314672b4363aSmrg	CFLAGS=""
314772b4363aSmrg      cat >conftest.$ac_ext <<_ACEOF
314872b4363aSmrg/* confdefs.h.  */
314972b4363aSmrg_ACEOF
315072b4363aSmrgcat confdefs.h >>conftest.$ac_ext
315172b4363aSmrgcat >>conftest.$ac_ext <<_ACEOF
315272b4363aSmrg/* end confdefs.h.  */
315372b4363aSmrg
315472b4363aSmrgint
315572b4363aSmrgmain ()
315672b4363aSmrg{
315772b4363aSmrg
315872b4363aSmrg  ;
315972b4363aSmrg  return 0;
316072b4363aSmrg}
316172b4363aSmrg_ACEOF
316272b4363aSmrgrm -f conftest.$ac_objext
316372b4363aSmrgif { (ac_try="$ac_compile"
316472b4363aSmrgcase "(($ac_try" in
316572b4363aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
316672b4363aSmrg  *) ac_try_echo=$ac_try;;
316772b4363aSmrgesac
3168dd77ae96Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3169dd77ae96Smrg$as_echo "$ac_try_echo") >&5
317072b4363aSmrg  (eval "$ac_compile") 2>conftest.er1
317172b4363aSmrg  ac_status=$?
317272b4363aSmrg  grep -v '^ *+' conftest.er1 >conftest.err
317372b4363aSmrg  rm -f conftest.er1
317472b4363aSmrg  cat conftest.err >&5
3175dd77ae96Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
317672b4363aSmrg  (exit $ac_status); } && {
317772b4363aSmrg	 test -z "$ac_c_werror_flag" ||
317872b4363aSmrg	 test ! -s conftest.err
317972b4363aSmrg       } && test -s conftest.$ac_objext; then
318072b4363aSmrg  :
318172b4363aSmrgelse
3182dd77ae96Smrg  $as_echo "$as_me: failed program was:" >&5
318372b4363aSmrgsed 's/^/| /' conftest.$ac_ext >&5
318472b4363aSmrg
318572b4363aSmrg	ac_c_werror_flag=$ac_save_c_werror_flag
318672b4363aSmrg	 CFLAGS="-g"
318772b4363aSmrg	 cat >conftest.$ac_ext <<_ACEOF
318872b4363aSmrg/* confdefs.h.  */
318972b4363aSmrg_ACEOF
319072b4363aSmrgcat confdefs.h >>conftest.$ac_ext
319172b4363aSmrgcat >>conftest.$ac_ext <<_ACEOF
319272b4363aSmrg/* end confdefs.h.  */
319372b4363aSmrg
319472b4363aSmrgint
319572b4363aSmrgmain ()
319672b4363aSmrg{
319772b4363aSmrg
319872b4363aSmrg  ;
319972b4363aSmrg  return 0;
320072b4363aSmrg}
320172b4363aSmrg_ACEOF
320272b4363aSmrgrm -f conftest.$ac_objext
320372b4363aSmrgif { (ac_try="$ac_compile"
320472b4363aSmrgcase "(($ac_try" in
320572b4363aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
320672b4363aSmrg  *) ac_try_echo=$ac_try;;
320772b4363aSmrgesac
3208dd77ae96Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3209dd77ae96Smrg$as_echo "$ac_try_echo") >&5
321072b4363aSmrg  (eval "$ac_compile") 2>conftest.er1
321172b4363aSmrg  ac_status=$?
321272b4363aSmrg  grep -v '^ *+' conftest.er1 >conftest.err
321372b4363aSmrg  rm -f conftest.er1
321472b4363aSmrg  cat conftest.err >&5
3215dd77ae96Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
321672b4363aSmrg  (exit $ac_status); } && {
321772b4363aSmrg	 test -z "$ac_c_werror_flag" ||
321872b4363aSmrg	 test ! -s conftest.err
321972b4363aSmrg       } && test -s conftest.$ac_objext; then
322072b4363aSmrg  ac_cv_prog_cc_g=yes
322172b4363aSmrgelse
3222dd77ae96Smrg  $as_echo "$as_me: failed program was:" >&5
322372b4363aSmrgsed 's/^/| /' conftest.$ac_ext >&5
322472b4363aSmrg
322572b4363aSmrg
322672b4363aSmrgfi
322772b4363aSmrg
322872b4363aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
322972b4363aSmrgfi
323072b4363aSmrg
323172b4363aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
323272b4363aSmrgfi
323372b4363aSmrg
323472b4363aSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
323572b4363aSmrg   ac_c_werror_flag=$ac_save_c_werror_flag
323672b4363aSmrgfi
3237dd77ae96Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3238dd77ae96Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
323972b4363aSmrgif test "$ac_test_CFLAGS" = set; then
324072b4363aSmrg  CFLAGS=$ac_save_CFLAGS
324172b4363aSmrgelif test $ac_cv_prog_cc_g = yes; then
324272b4363aSmrg  if test "$GCC" = yes; then
324372b4363aSmrg    CFLAGS="-g -O2"
324472b4363aSmrg  else
324572b4363aSmrg    CFLAGS="-g"
324672b4363aSmrg  fi
324772b4363aSmrgelse
324872b4363aSmrg  if test "$GCC" = yes; then
324972b4363aSmrg    CFLAGS="-O2"
325072b4363aSmrg  else
325172b4363aSmrg    CFLAGS=
325272b4363aSmrg  fi
325372b4363aSmrgfi
3254dd77ae96Smrg{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3255dd77ae96Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
325672b4363aSmrgif test "${ac_cv_prog_cc_c89+set}" = set; then
3257dd77ae96Smrg  $as_echo_n "(cached) " >&6
325872b4363aSmrgelse
325972b4363aSmrg  ac_cv_prog_cc_c89=no
326072b4363aSmrgac_save_CC=$CC
326172b4363aSmrgcat >conftest.$ac_ext <<_ACEOF
326272b4363aSmrg/* confdefs.h.  */
326372b4363aSmrg_ACEOF
326472b4363aSmrgcat confdefs.h >>conftest.$ac_ext
326572b4363aSmrgcat >>conftest.$ac_ext <<_ACEOF
326672b4363aSmrg/* end confdefs.h.  */
326772b4363aSmrg#include <stdarg.h>
326872b4363aSmrg#include <stdio.h>
326972b4363aSmrg#include <sys/types.h>
327072b4363aSmrg#include <sys/stat.h>
327172b4363aSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
327272b4363aSmrgstruct buf { int x; };
327372b4363aSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
327472b4363aSmrgstatic char *e (p, i)
327572b4363aSmrg     char **p;
327672b4363aSmrg     int i;
327772b4363aSmrg{
327872b4363aSmrg  return p[i];
327972b4363aSmrg}
328072b4363aSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
328172b4363aSmrg{
328272b4363aSmrg  char *s;
328372b4363aSmrg  va_list v;
328472b4363aSmrg  va_start (v,p);
328572b4363aSmrg  s = g (p, va_arg (v,int));
328672b4363aSmrg  va_end (v);
328772b4363aSmrg  return s;
328872b4363aSmrg}
328972b4363aSmrg
329072b4363aSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
329172b4363aSmrg   function prototypes and stuff, but not '\xHH' hex character constants.
329272b4363aSmrg   These don't provoke an error unfortunately, instead are silently treated
329372b4363aSmrg   as 'x'.  The following induces an error, until -std is added to get
329472b4363aSmrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
329572b4363aSmrg   array size at least.  It's necessary to write '\x00'==0 to get something
329672b4363aSmrg   that's true only with -std.  */
329772b4363aSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
329872b4363aSmrg
329972b4363aSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
330072b4363aSmrg   inside strings and character constants.  */
330172b4363aSmrg#define FOO(x) 'x'
330272b4363aSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
330372b4363aSmrg
330472b4363aSmrgint test (int i, double x);
330572b4363aSmrgstruct s1 {int (*f) (int a);};
330672b4363aSmrgstruct s2 {int (*f) (double a);};
330772b4363aSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
330872b4363aSmrgint argc;
330972b4363aSmrgchar **argv;
331072b4363aSmrgint
331172b4363aSmrgmain ()
331272b4363aSmrg{
331372b4363aSmrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
331472b4363aSmrg  ;
331572b4363aSmrg  return 0;
331672b4363aSmrg}
331772b4363aSmrg_ACEOF
331872b4363aSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
331972b4363aSmrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
332072b4363aSmrgdo
332172b4363aSmrg  CC="$ac_save_CC $ac_arg"
332272b4363aSmrg  rm -f conftest.$ac_objext
332372b4363aSmrgif { (ac_try="$ac_compile"
332472b4363aSmrgcase "(($ac_try" in
332572b4363aSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
332672b4363aSmrg  *) ac_try_echo=$ac_try;;
332772b4363aSmrgesac
3328dd77ae96Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3329dd77ae96Smrg$as_echo "$ac_try_echo") >&5
333072b4363aSmrg  (eval "$ac_compile") 2>conftest.er1
333172b4363aSmrg  ac_status=$?
333272b4363aSmrg  grep -v '^ *+' conftest.er1 >conftest.err
333372b4363aSmrg  rm -f conftest.er1
333472b4363aSmrg  cat conftest.err >&5
3335dd77ae96Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
333672b4363aSmrg  (exit $ac_status); } && {
333772b4363aSmrg	 test -z "$ac_c_werror_flag" ||
333872b4363aSmrg	 test ! -s conftest.err
333972b4363aSmrg       } && test -s conftest.$ac_objext; then
334072b4363aSmrg  ac_cv_prog_cc_c89=$ac_arg
334172b4363aSmrgelse
3342dd77ae96Smrg  $as_echo "$as_me: failed program was:" >&5
334372b4363aSmrgsed 's/^/| /' conftest.$ac_ext >&5
334472b4363aSmrg
334572b4363aSmrg
334672b4363aSmrgfi
334772b4363aSmrg
334872b4363aSmrgrm -f core conftest.err conftest.$ac_objext
334972b4363aSmrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
335072b4363aSmrgdone
335172b4363aSmrgrm -f conftest.$ac_ext
335272b4363aSmrgCC=$ac_save_CC
335372b4363aSmrg
335472b4363aSmrgfi
335572b4363aSmrg# AC_CACHE_VAL
335672b4363aSmrgcase "x$ac_cv_prog_cc_c89" in
335772b4363aSmrg  x)
3358dd77ae96Smrg    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3359dd77ae96Smrg$as_echo "none needed" >&6; } ;;
336072b4363aSmrg  xno)
3361dd77ae96Smrg    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3362dd77ae96Smrg$as_echo "unsupported" >&6; } ;;
336372b4363aSmrg  *)
336472b4363aSmrg    CC="$CC $ac_cv_prog_cc_c89"
3365dd77ae96Smrg    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3366dd77ae96Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
336772b4363aSmrgesac
336872b4363aSmrg
336972b4363aSmrg
337072b4363aSmrgac_ext=c
337172b4363aSmrgac_cpp='$CPP $CPPFLAGS'
337272b4363aSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
337372b4363aSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
337472b4363aSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
337572b4363aSmrgDEPDIR="${am__leading_dot}deps"
337672b4363aSmrg
337772b4363aSmrgac_config_commands="$ac_config_commands depfiles"
337872b4363aSmrg
337972b4363aSmrg
338072b4363aSmrgam_make=${MAKE-make}
338172b4363aSmrgcat > confinc << 'END'
338272b4363aSmrgam__doit:
3383dd77ae96Smrg	@echo this is the am__doit target
338472b4363aSmrg.PHONY: am__doit
338572b4363aSmrgEND
338672b4363aSmrg# If we don't find an include directive, just comment out the code.
3387dd77ae96Smrg{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3388dd77ae96Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
338972b4363aSmrgam__include="#"
339072b4363aSmrgam__quote=
339172b4363aSmrg_am_result=none
339272b4363aSmrg# First try GNU make style include.
339372b4363aSmrgecho "include confinc" > confmf
3394dd77ae96Smrg# Ignore all kinds of additional output from `make'.
3395dd77ae96Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
3396dd77ae96Smrg*the\ am__doit\ target*)
3397dd77ae96Smrg  am__include=include
3398dd77ae96Smrg  am__quote=
3399dd77ae96Smrg  _am_result=GNU
3400dd77ae96Smrg  ;;
3401dd77ae96Smrgesac
340272b4363aSmrg# Now try BSD make style include.
340372b4363aSmrgif test "$am__include" = "#"; then
340472b4363aSmrg   echo '.include "confinc"' > confmf
3405dd77ae96Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
3406dd77ae96Smrg   *the\ am__doit\ target*)
3407dd77ae96Smrg     am__include=.include
3408dd77ae96Smrg     am__quote="\""
3409dd77ae96Smrg     _am_result=BSD
3410dd77ae96Smrg     ;;
3411dd77ae96Smrg   esac
341272b4363aSmrgfi
341372b4363aSmrg
341472b4363aSmrg
3415dd77ae96Smrg{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3416dd77ae96Smrg$as_echo "$_am_result" >&6; }
341772b4363aSmrgrm -f confinc confmf
341872b4363aSmrg
341972b4363aSmrg# Check whether --enable-dependency-tracking was given.
342072b4363aSmrgif test "${enable_dependency_tracking+set}" = set; then
342172b4363aSmrg  enableval=$enable_dependency_tracking;
342272b4363aSmrgfi
342372b4363aSmrg
342472b4363aSmrgif test "x$enable_dependency_tracking" != xno; then
342572b4363aSmrg  am_depcomp="$ac_aux_dir/depcomp"
342672b4363aSmrg  AMDEPBACKSLASH='\'
342772b4363aSmrgfi
342872b4363aSmrg if test "x$enable_dependency_tracking" != xno; then
342972b4363aSmrg  AMDEP_TRUE=
343072b4363aSmrg  AMDEP_FALSE='#'
343172b4363aSmrgelse
343272b4363aSmrg  AMDEP_TRUE='#'
343372b4363aSmrg  AMDEP_FALSE=
343472b4363aSmrgfi
343572b4363aSmrg
343672b4363aSmrg
343772b4363aSmrg
343872b4363aSmrgdepcc="$CC"   am_compiler_list=
343972b4363aSmrg
3440dd77ae96Smrg{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3441dd77ae96Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
344272b4363aSmrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3443dd77ae96Smrg  $as_echo_n "(cached) " >&6
344472b4363aSmrgelse
344572b4363aSmrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
344672b4363aSmrg  # We make a subdir and do the tests there.  Otherwise we can end up
344772b4363aSmrg  # making bogus files that we don't know about and never remove.  For
344872b4363aSmrg  # instance it was reported that on HP-UX the gcc test will end up
344972b4363aSmrg  # making a dummy file named `D' -- because `-MD' means `put the output
345072b4363aSmrg  # in D'.
345172b4363aSmrg  mkdir conftest.dir
345272b4363aSmrg  # Copy depcomp to subdir because otherwise we won't find it if we're
345372b4363aSmrg  # using a relative directory.
345472b4363aSmrg  cp "$am_depcomp" conftest.dir
345572b4363aSmrg  cd conftest.dir
345672b4363aSmrg  # We will build objects and dependencies in a subdirectory because
345772b4363aSmrg  # it helps to detect inapplicable dependency modes.  For instance
345872b4363aSmrg  # both Tru64's cc and ICC support -MD to output dependencies as a
345972b4363aSmrg  # side effect of compilation, but ICC will put the dependencies in
346072b4363aSmrg  # the current directory while Tru64 will put them in the object
346172b4363aSmrg  # directory.
346272b4363aSmrg  mkdir sub
346372b4363aSmrg
346472b4363aSmrg  am_cv_CC_dependencies_compiler_type=none
346572b4363aSmrg  if test "$am_compiler_list" = ""; then
346672b4363aSmrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
346772b4363aSmrg  fi
3468dd77ae96Smrg  am__universal=false
3469dd77ae96Smrg  case " $depcc " in #(
3470dd77ae96Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3471dd77ae96Smrg     esac
3472dd77ae96Smrg
347372b4363aSmrg  for depmode in $am_compiler_list; do
347472b4363aSmrg    # Setup a source with many dependencies, because some compilers
347572b4363aSmrg    # like to wrap large dependency lists on column 80 (with \), and
347672b4363aSmrg    # we should not choose a depcomp mode which is confused by this.
347772b4363aSmrg    #
347872b4363aSmrg    # We need to recreate these files for each test, as the compiler may
347972b4363aSmrg    # overwrite some of them when testing with obscure command lines.
348072b4363aSmrg    # This happens at least with the AIX C compiler.
348172b4363aSmrg    : > sub/conftest.c
348272b4363aSmrg    for i in 1 2 3 4 5 6; do
348372b4363aSmrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
348472b4363aSmrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
348572b4363aSmrg      # Solaris 8's {/usr,}/bin/sh.
348672b4363aSmrg      touch sub/conftst$i.h
348772b4363aSmrg    done
348872b4363aSmrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
348972b4363aSmrg
3490dd77ae96Smrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3491dd77ae96Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
3492dd77ae96Smrg    # handle `-M -o', and we need to detect this.  Also, some Intel
3493dd77ae96Smrg    # versions had trouble with output in subdirs
3494dd77ae96Smrg    am__obj=sub/conftest.${OBJEXT-o}
3495dd77ae96Smrg    am__minus_obj="-o $am__obj"
349672b4363aSmrg    case $depmode in
3497dd77ae96Smrg    gcc)
3498dd77ae96Smrg      # This depmode causes a compiler race in universal mode.
3499dd77ae96Smrg      test "$am__universal" = false || continue
3500dd77ae96Smrg      ;;
350172b4363aSmrg    nosideeffect)
350272b4363aSmrg      # after this tag, mechanisms are not by side-effect, so they'll
350372b4363aSmrg      # only be used when explicitly requested
350472b4363aSmrg      if test "x$enable_dependency_tracking" = xyes; then
350572b4363aSmrg	continue
350672b4363aSmrg      else
350772b4363aSmrg	break
350872b4363aSmrg      fi
350972b4363aSmrg      ;;
3510dd77ae96Smrg    msvisualcpp | msvcmsys)
3511dd77ae96Smrg      # This compiler won't grok `-c -o', but also, the minuso test has
3512dd77ae96Smrg      # not run yet.  These depmodes are late enough in the game, and
3513dd77ae96Smrg      # so weak that their functioning should not be impacted.
3514dd77ae96Smrg      am__obj=conftest.${OBJEXT-o}
3515dd77ae96Smrg      am__minus_obj=
3516dd77ae96Smrg      ;;
351772b4363aSmrg    none) break ;;
351872b4363aSmrg    esac
351972b4363aSmrg    if depmode=$depmode \
3520dd77ae96Smrg       source=sub/conftest.c object=$am__obj \
352172b4363aSmrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3522dd77ae96Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
352372b4363aSmrg         >/dev/null 2>conftest.err &&
352472b4363aSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
352572b4363aSmrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3526dd77ae96Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
352772b4363aSmrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
352872b4363aSmrg      # icc doesn't choke on unknown options, it will just issue warnings
352972b4363aSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
353072b4363aSmrg      # that says an option was ignored or not supported.
353172b4363aSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
353272b4363aSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
353372b4363aSmrg      # The diagnosis changed in icc 8.0:
353472b4363aSmrg      #   icc: Command line remark: option '-MP' not supported
353572b4363aSmrg      if (grep 'ignoring option' conftest.err ||
353672b4363aSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
353772b4363aSmrg        am_cv_CC_dependencies_compiler_type=$depmode
353872b4363aSmrg        break
353972b4363aSmrg      fi
354072b4363aSmrg    fi
354172b4363aSmrg  done
354272b4363aSmrg
354372b4363aSmrg  cd ..
354472b4363aSmrg  rm -rf conftest.dir
354572b4363aSmrgelse
354672b4363aSmrg  am_cv_CC_dependencies_compiler_type=none
354772b4363aSmrgfi
354872b4363aSmrg
354972b4363aSmrgfi
3550dd77ae96Smrg{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3551dd77ae96Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
355272b4363aSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
355372b4363aSmrg
355472b4363aSmrg if
355572b4363aSmrg  test "x$enable_dependency_tracking" != xno \
355672b4363aSmrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
355772b4363aSmrg  am__fastdepCC_TRUE=
355872b4363aSmrg  am__fastdepCC_FALSE='#'
355972b4363aSmrgelse
356072b4363aSmrg  am__fastdepCC_TRUE='#'
356172b4363aSmrg  am__fastdepCC_FALSE=
356272b4363aSmrgfi
356372b4363aSmrg
356472b4363aSmrg
356572b4363aSmrg# Find a good install program.  We prefer a C program (faster),
356672b4363aSmrg# so one script is as good as another.  But avoid the broken or
356772b4363aSmrg# incompatible versions:
356872b4363aSmrg# SysV /etc/install, /usr/sbin/install
356972b4363aSmrg# SunOS /usr/etc/install
357072b4363aSmrg# IRIX /sbin/install
357172b4363aSmrg# AIX /bin/install
357272b4363aSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs
357372b4363aSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
357472b4363aSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
357572b4363aSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
357672b4363aSmrg# OS/2's system install, which has a completely different semantic
357772b4363aSmrg# ./install, which can be erroneously created by make from ./install.sh.
3578dd77ae96Smrg# Reject install programs that cannot install multiple files.
3579dd77ae96Smrg{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3580dd77ae96Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
358172b4363aSmrgif test -z "$INSTALL"; then
358272b4363aSmrgif test "${ac_cv_path_install+set}" = set; then
3583dd77ae96Smrg  $as_echo_n "(cached) " >&6
358472b4363aSmrgelse
358572b4363aSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
358672b4363aSmrgfor as_dir in $PATH
358772b4363aSmrgdo
358872b4363aSmrg  IFS=$as_save_IFS
358972b4363aSmrg  test -z "$as_dir" && as_dir=.
359072b4363aSmrg  # Account for people who put trailing slashes in PATH elements.
359172b4363aSmrgcase $as_dir/ in
359272b4363aSmrg  ./ | .// | /cC/* | \
359372b4363aSmrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
359472b4363aSmrg  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
359572b4363aSmrg  /usr/ucb/* ) ;;
359672b4363aSmrg  *)
359772b4363aSmrg    # OSF1 and SCO ODT 3.0 have their own names for install.
359872b4363aSmrg    # Don't use installbsd from OSF since it installs stuff as root
359972b4363aSmrg    # by default.
360072b4363aSmrg    for ac_prog in ginstall scoinst install; do
360172b4363aSmrg      for ac_exec_ext in '' $ac_executable_extensions; do
360272b4363aSmrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
360372b4363aSmrg	  if test $ac_prog = install &&
360472b4363aSmrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
360572b4363aSmrg	    # AIX install.  It has an incompatible calling convention.
360672b4363aSmrg	    :
360772b4363aSmrg	  elif test $ac_prog = install &&
360872b4363aSmrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
360972b4363aSmrg	    # program-specific install script used by HP pwplus--don't use.
361072b4363aSmrg	    :
361172b4363aSmrg	  else
3612dd77ae96Smrg	    rm -rf conftest.one conftest.two conftest.dir
3613dd77ae96Smrg	    echo one > conftest.one
3614dd77ae96Smrg	    echo two > conftest.two
3615dd77ae96Smrg	    mkdir conftest.dir
3616dd77ae96Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3617dd77ae96Smrg	      test -s conftest.one && test -s conftest.two &&
3618dd77ae96Smrg	      test -s conftest.dir/conftest.one &&
3619dd77ae96Smrg	      test -s conftest.dir/conftest.two
3620dd77ae96Smrg	    then
3621dd77ae96Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3622dd77ae96Smrg	      break 3
3623dd77ae96Smrg	    fi
362472b4363aSmrg	  fi
362572b4363aSmrg	fi
362672b4363aSmrg      done
362772b4363aSmrg    done
362872b4363aSmrg    ;;
362972b4363aSmrgesac
3630dd77ae96Smrg
363172b4363aSmrgdone
363272b4363aSmrgIFS=$as_save_IFS
363372b4363aSmrg
3634dd77ae96Smrgrm -rf conftest.one conftest.two conftest.dir
363572b4363aSmrg
363672b4363aSmrgfi
363772b4363aSmrg  if test "${ac_cv_path_install+set}" = set; then
363872b4363aSmrg    INSTALL=$ac_cv_path_install
363972b4363aSmrg  else
364072b4363aSmrg    # As a last resort, use the slow shell script.  Don't cache a
364172b4363aSmrg    # value for INSTALL within a source directory, because that will
364272b4363aSmrg    # break other packages using the cache if that directory is
364372b4363aSmrg    # removed, or if the value is a relative name.
364472b4363aSmrg    INSTALL=$ac_install_sh
364572b4363aSmrg  fi
364672b4363aSmrgfi
3647dd77ae96Smrg{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3648dd77ae96Smrg$as_echo "$INSTALL" >&6; }
364972b4363aSmrg
365072b4363aSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
365172b4363aSmrg# It thinks the first close brace ends the variable substitution.
365272b4363aSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
365372b4363aSmrg
365472b4363aSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
365572b4363aSmrg
365672b4363aSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
365772b4363aSmrg
365872b4363aSmrg
365972b4363aSmrg
3660dd77ae96Smrgac_ext=c
3661dd77ae96Smrgac_cpp='$CPP $CPPFLAGS'
3662dd77ae96Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663dd77ae96Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664dd77ae96Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3665dd77ae96Smrg{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3666dd77ae96Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
3667dd77ae96Smrg# On Suns, sometimes $CPP names a directory.
3668dd77ae96Smrgif test -n "$CPP" && test -d "$CPP"; then
3669dd77ae96Smrg  CPP=
3670dd77ae96Smrgfi
3671dd77ae96Smrgif test -z "$CPP"; then
3672dd77ae96Smrg  if test "${ac_cv_prog_CPP+set}" = set; then
3673dd77ae96Smrg  $as_echo_n "(cached) " >&6
367472b4363aSmrgelse
3675dd77ae96Smrg      # Double quotes because CPP needs to be expanded
3676dd77ae96Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3677dd77ae96Smrg    do
3678dd77ae96Smrg      ac_preproc_ok=false
3679dd77ae96Smrgfor ac_c_preproc_warn_flag in '' yes
368072b4363aSmrgdo
3681dd77ae96Smrg  # Use a header file that comes with gcc, so configuring glibc
3682dd77ae96Smrg  # with a fresh cross-compiler works.
3683dd77ae96Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3684dd77ae96Smrg  # <limits.h> exists even on freestanding compilers.
3685dd77ae96Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
3686dd77ae96Smrg  # not just through cpp. "Syntax error" is here to catch this case.
3687dd77ae96Smrg  cat >conftest.$ac_ext <<_ACEOF
3688dd77ae96Smrg/* confdefs.h.  */
3689dd77ae96Smrg_ACEOF
3690dd77ae96Smrgcat confdefs.h >>conftest.$ac_ext
3691dd77ae96Smrgcat >>conftest.$ac_ext <<_ACEOF
3692dd77ae96Smrg/* end confdefs.h.  */
3693dd77ae96Smrg#ifdef __STDC__
3694dd77ae96Smrg# include <limits.h>
3695dd77ae96Smrg#else
3696dd77ae96Smrg# include <assert.h>
3697dd77ae96Smrg#endif
3698dd77ae96Smrg		     Syntax error
3699dd77ae96Smrg_ACEOF
3700dd77ae96Smrgif { (ac_try="$ac_cpp conftest.$ac_ext"
3701dd77ae96Smrgcase "(($ac_try" in
3702dd77ae96Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703dd77ae96Smrg  *) ac_try_echo=$ac_try;;
370472b4363aSmrgesac
3705dd77ae96Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3706dd77ae96Smrg$as_echo "$ac_try_echo") >&5
3707dd77ae96Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3708dd77ae96Smrg  ac_status=$?
3709dd77ae96Smrg  grep -v '^ *+' conftest.er1 >conftest.err
3710dd77ae96Smrg  rm -f conftest.er1
3711dd77ae96Smrg  cat conftest.err >&5
3712dd77ae96Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713dd77ae96Smrg  (exit $ac_status); } >/dev/null && {
3714dd77ae96Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3715dd77ae96Smrg	 test ! -s conftest.err
3716dd77ae96Smrg       }; then
3717dd77ae96Smrg  :
371872b4363aSmrgelse
3719dd77ae96Smrg  $as_echo "$as_me: failed program was:" >&5
3720dd77ae96Smrgsed 's/^/| /' conftest.$ac_ext >&5
372172b4363aSmrg
3722dd77ae96Smrg  # Broken: fails on valid input.
3723dd77ae96Smrgcontinue
372472b4363aSmrgfi
372572b4363aSmrg
3726dd77ae96Smrgrm -f conftest.err conftest.$ac_ext
372772b4363aSmrg
3728dd77ae96Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
3729dd77ae96Smrg  # can be detected and how.
3730dd77ae96Smrg  cat >conftest.$ac_ext <<_ACEOF
3731dd77ae96Smrg/* confdefs.h.  */
3732dd77ae96Smrg_ACEOF
3733dd77ae96Smrgcat confdefs.h >>conftest.$ac_ext
3734dd77ae96Smrgcat >>conftest.$ac_ext <<_ACEOF
3735dd77ae96Smrg/* end confdefs.h.  */
3736dd77ae96Smrg#include <ac_nonexistent.h>
3737dd77ae96Smrg_ACEOF
3738dd77ae96Smrgif { (ac_try="$ac_cpp conftest.$ac_ext"
3739dd77ae96Smrgcase "(($ac_try" in
3740dd77ae96Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741dd77ae96Smrg  *) ac_try_echo=$ac_try;;
374272b4363aSmrgesac
3743dd77ae96Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3744dd77ae96Smrg$as_echo "$ac_try_echo") >&5
3745dd77ae96Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3746dd77ae96Smrg  ac_status=$?
3747dd77ae96Smrg  grep -v '^ *+' conftest.er1 >conftest.err
3748dd77ae96Smrg  rm -f conftest.er1
3749dd77ae96Smrg  cat conftest.err >&5
3750dd77ae96Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751dd77ae96Smrg  (exit $ac_status); } >/dev/null && {
3752dd77ae96Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3753dd77ae96Smrg	 test ! -s conftest.err
3754dd77ae96Smrg       }; then
3755dd77ae96Smrg  # Broken: success on invalid input.
3756dd77ae96Smrgcontinue
375772b4363aSmrgelse
3758dd77ae96Smrg  $as_echo "$as_me: failed program was:" >&5
3759dd77ae96Smrgsed 's/^/| /' conftest.$ac_ext >&5
376072b4363aSmrg
3761dd77ae96Smrg  # Passes both tests.
3762dd77ae96Smrgac_preproc_ok=:
3763dd77ae96Smrgbreak
376472b4363aSmrgfi
376572b4363aSmrg
3766dd77ae96Smrgrm -f conftest.err conftest.$ac_ext
3767dd77ae96Smrg
3768dd77ae96Smrgdone
3769dd77ae96Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3770dd77ae96Smrgrm -f conftest.err conftest.$ac_ext
3771dd77ae96Smrgif $ac_preproc_ok; then
3772dd77ae96Smrg  break
377372b4363aSmrgfi
377472b4363aSmrg
3775dd77ae96Smrg    done
3776dd77ae96Smrg    ac_cv_prog_CPP=$CPP
377772b4363aSmrg
377872b4363aSmrgfi
3779dd77ae96Smrg  CPP=$ac_cv_prog_CPP
378072b4363aSmrgelse
3781dd77ae96Smrg  ac_cv_prog_CPP=$CPP
378272b4363aSmrgfi
3783dd77ae96Smrg{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3784dd77ae96Smrg$as_echo "$CPP" >&6; }
3785dd77ae96Smrgac_preproc_ok=false
3786dd77ae96Smrgfor ac_c_preproc_warn_flag in '' yes
3787dd77ae96Smrgdo
3788dd77ae96Smrg  # Use a header file that comes with gcc, so configuring glibc
3789dd77ae96Smrg  # with a fresh cross-compiler works.
3790dd77ae96Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3791dd77ae96Smrg  # <limits.h> exists even on freestanding compilers.
3792dd77ae96Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
3793dd77ae96Smrg  # not just through cpp. "Syntax error" is here to catch this case.
3794dd77ae96Smrg  cat >conftest.$ac_ext <<_ACEOF
3795dd77ae96Smrg/* confdefs.h.  */
3796dd77ae96Smrg_ACEOF
3797dd77ae96Smrgcat confdefs.h >>conftest.$ac_ext
3798dd77ae96Smrgcat >>conftest.$ac_ext <<_ACEOF
3799dd77ae96Smrg/* end confdefs.h.  */
3800dd77ae96Smrg#ifdef __STDC__
3801dd77ae96Smrg# include <limits.h>
3802dd77ae96Smrg#else
3803dd77ae96Smrg# include <assert.h>
3804dd77ae96Smrg#endif
3805dd77ae96Smrg		     Syntax error
3806dd77ae96Smrg_ACEOF
3807dd77ae96Smrgif { (ac_try="$ac_cpp conftest.$ac_ext"
3808dd77ae96Smrgcase "(($ac_try" in
3809dd77ae96Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810dd77ae96Smrg  *) ac_try_echo=$ac_try;;
3811dd77ae96Smrgesac
3812dd77ae96Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3813dd77ae96Smrg$as_echo "$ac_try_echo") >&5
3814dd77ae96Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
381572b4363aSmrg  ac_status=$?
3816dd77ae96Smrg  grep -v '^ *+' conftest.er1 >conftest.err
3817dd77ae96Smrg  rm -f conftest.er1
3818dd77ae96Smrg  cat conftest.err >&5
3819dd77ae96Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820dd77ae96Smrg  (exit $ac_status); } >/dev/null && {
3821dd77ae96Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3822dd77ae96Smrg	 test ! -s conftest.err
3823dd77ae96Smrg       }; then
3824dd77ae96Smrg  :
382572b4363aSmrgelse
3826dd77ae96Smrg  $as_echo "$as_me: failed program was:" >&5
3827dd77ae96Smrgsed 's/^/| /' conftest.$ac_ext >&5
382872b4363aSmrg
3829dd77ae96Smrg  # Broken: fails on valid input.
3830dd77ae96Smrgcontinue
3831dd77ae96Smrgfi
383272b4363aSmrg
3833dd77ae96Smrgrm -f conftest.err conftest.$ac_ext
383472b4363aSmrg
3835dd77ae96Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
3836dd77ae96Smrg  # can be detected and how.
3837dd77ae96Smrg  cat >conftest.$ac_ext <<_ACEOF
3838dd77ae96Smrg/* confdefs.h.  */
3839dd77ae96Smrg_ACEOF
3840dd77ae96Smrgcat confdefs.h >>conftest.$ac_ext
3841dd77ae96Smrgcat >>conftest.$ac_ext <<_ACEOF
3842dd77ae96Smrg/* end confdefs.h.  */
3843dd77ae96Smrg#include <ac_nonexistent.h>
3844dd77ae96Smrg_ACEOF
3845dd77ae96Smrgif { (ac_try="$ac_cpp conftest.$ac_ext"
3846dd77ae96Smrgcase "(($ac_try" in
3847dd77ae96Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848dd77ae96Smrg  *) ac_try_echo=$ac_try;;
3849dd77ae96Smrgesac
3850dd77ae96Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3851dd77ae96Smrg$as_echo "$ac_try_echo") >&5
3852dd77ae96Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3853dd77ae96Smrg  ac_status=$?
3854dd77ae96Smrg  grep -v '^ *+' conftest.er1 >conftest.err
3855dd77ae96Smrg  rm -f conftest.er1
3856dd77ae96Smrg  cat conftest.err >&5
3857dd77ae96Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858dd77ae96Smrg  (exit $ac_status); } >/dev/null && {
3859dd77ae96Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3860dd77ae96Smrg	 test ! -s conftest.err
3861dd77ae96Smrg       }; then
3862dd77ae96Smrg  # Broken: success on invalid input.
3863dd77ae96Smrgcontinue
3864dd77ae96Smrgelse
3865dd77ae96Smrg  $as_echo "$as_me: failed program was:" >&5
3866dd77ae96Smrgsed 's/^/| /' conftest.$ac_ext >&5
386772b4363aSmrg
3868dd77ae96Smrg  # Passes both tests.
3869dd77ae96Smrgac_preproc_ok=:
3870dd77ae96Smrgbreak
3871dd77ae96Smrgfi
387272b4363aSmrg
3873dd77ae96Smrgrm -f conftest.err conftest.$ac_ext
387472b4363aSmrg
3875dd77ae96Smrgdone
3876dd77ae96Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3877dd77ae96Smrgrm -f conftest.err conftest.$ac_ext
3878dd77ae96Smrgif $ac_preproc_ok; then
3879dd77ae96Smrg  :
3880dd77ae96Smrgelse
3881dd77ae96Smrg  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3882dd77ae96Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3883dd77ae96Smrg{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
388472b4363aSmrgSee \`config.log' for more details." >&5
3885dd77ae96Smrg$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
388672b4363aSmrgSee \`config.log' for more details." >&2;}
3887dd77ae96Smrg   { (exit 1); exit 1; }; }; }
388872b4363aSmrgfi
388972b4363aSmrg
3890dd77ae96Smrgac_ext=c
3891dd77ae96Smrgac_cpp='$CPP $CPPFLAGS'
3892dd77ae96Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3893dd77ae96Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3894dd77ae96Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
389572b4363aSmrg
389672b4363aSmrg
3897dd77ae96Smrg{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3898dd77ae96Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3899dd77ae96Smrgif test "${ac_cv_path_GREP+set}" = set; then
3900dd77ae96Smrg  $as_echo_n "(cached) " >&6
390172b4363aSmrgelse
3902dd77ae96Smrg  if test -z "$GREP"; then
3903dd77ae96Smrg  ac_path_GREP_found=false
3904dd77ae96Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
3905dd77ae96Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906dd77ae96Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3907dd77ae96Smrgdo
3908dd77ae96Smrg  IFS=$as_save_IFS
3909dd77ae96Smrg  test -z "$as_dir" && as_dir=.
3910dd77ae96Smrg  for ac_prog in grep ggrep; do
3911dd77ae96Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3912dd77ae96Smrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3913dd77ae96Smrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3914dd77ae96Smrg# Check for GNU ac_path_GREP and select it if it is found.
3915dd77ae96Smrg  # Check for GNU $ac_path_GREP
3916dd77ae96Smrgcase `"$ac_path_GREP" --version 2>&1` in
3917dd77ae96Smrg*GNU*)
3918dd77ae96Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3919dd77ae96Smrg*)
3920dd77ae96Smrg  ac_count=0
3921dd77ae96Smrg  $as_echo_n 0123456789 >"conftest.in"
3922dd77ae96Smrg  while :
3923dd77ae96Smrg  do
3924dd77ae96Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
3925dd77ae96Smrg    mv "conftest.tmp" "conftest.in"
3926dd77ae96Smrg    cp "conftest.in" "conftest.nl"
3927dd77ae96Smrg    $as_echo 'GREP' >> "conftest.nl"
3928dd77ae96Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3929dd77ae96Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3930dd77ae96Smrg    ac_count=`expr $ac_count + 1`
3931dd77ae96Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3932dd77ae96Smrg      # Best one so far, save it but keep looking for a better one
3933dd77ae96Smrg      ac_cv_path_GREP="$ac_path_GREP"
3934dd77ae96Smrg      ac_path_GREP_max=$ac_count
3935dd77ae96Smrg    fi
3936dd77ae96Smrg    # 10*(2^10) chars as input seems more than enough
3937dd77ae96Smrg    test $ac_count -gt 10 && break
3938dd77ae96Smrg  done
3939dd77ae96Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3940dd77ae96Smrgesac
3941dd77ae96Smrg
3942dd77ae96Smrg      $ac_path_GREP_found && break 3
3943dd77ae96Smrg    done
3944dd77ae96Smrg  done
3945dd77ae96Smrgdone
3946dd77ae96SmrgIFS=$as_save_IFS
3947dd77ae96Smrg  if test -z "$ac_cv_path_GREP"; then
3948dd77ae96Smrg    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3949dd77ae96Smrg$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
395072b4363aSmrg   { (exit 1); exit 1; }; }
3951dd77ae96Smrg  fi
3952dd77ae96Smrgelse
3953dd77ae96Smrg  ac_cv_path_GREP=$GREP
3954dd77ae96Smrgfi
395572b4363aSmrg
395672b4363aSmrgfi
3957dd77ae96Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3958dd77ae96Smrg$as_echo "$ac_cv_path_GREP" >&6; }
3959dd77ae96Smrg GREP="$ac_cv_path_GREP"
396072b4363aSmrg
396172b4363aSmrg
3962dd77ae96Smrg{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3963dd77ae96Smrg$as_echo_n "checking for egrep... " >&6; }
3964dd77ae96Smrgif test "${ac_cv_path_EGREP+set}" = set; then
3965dd77ae96Smrg  $as_echo_n "(cached) " >&6
396672b4363aSmrgelse
3967dd77ae96Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3968dd77ae96Smrg   then ac_cv_path_EGREP="$GREP -E"
3969dd77ae96Smrg   else
3970dd77ae96Smrg     if test -z "$EGREP"; then
3971dd77ae96Smrg  ac_path_EGREP_found=false
3972dd77ae96Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
3973dd77ae96Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974dd77ae96Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3975dd77ae96Smrgdo
3976dd77ae96Smrg  IFS=$as_save_IFS
3977dd77ae96Smrg  test -z "$as_dir" && as_dir=.
3978dd77ae96Smrg  for ac_prog in egrep; do
3979dd77ae96Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3980dd77ae96Smrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3981dd77ae96Smrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3982dd77ae96Smrg# Check for GNU ac_path_EGREP and select it if it is found.
3983dd77ae96Smrg  # Check for GNU $ac_path_EGREP
3984dd77ae96Smrgcase `"$ac_path_EGREP" --version 2>&1` in
3985dd77ae96Smrg*GNU*)
3986dd77ae96Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3987dd77ae96Smrg*)
3988dd77ae96Smrg  ac_count=0
3989dd77ae96Smrg  $as_echo_n 0123456789 >"conftest.in"
3990dd77ae96Smrg  while :
3991dd77ae96Smrg  do
3992dd77ae96Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
3993dd77ae96Smrg    mv "conftest.tmp" "conftest.in"
3994dd77ae96Smrg    cp "conftest.in" "conftest.nl"
3995dd77ae96Smrg    $as_echo 'EGREP' >> "conftest.nl"
3996dd77ae96Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3997dd77ae96Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3998dd77ae96Smrg    ac_count=`expr $ac_count + 1`
3999dd77ae96Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4000dd77ae96Smrg      # Best one so far, save it but keep looking for a better one
4001dd77ae96Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
4002dd77ae96Smrg      ac_path_EGREP_max=$ac_count
4003dd77ae96Smrg    fi
4004dd77ae96Smrg    # 10*(2^10) chars as input seems more than enough
4005dd77ae96Smrg    test $ac_count -gt 10 && break
4006dd77ae96Smrg  done
4007dd77ae96Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4008dd77ae96Smrgesac
4009dd77ae96Smrg
4010dd77ae96Smrg      $ac_path_EGREP_found && break 3
4011dd77ae96Smrg    done
4012dd77ae96Smrg  done
4013dd77ae96Smrgdone
4014dd77ae96SmrgIFS=$as_save_IFS
4015dd77ae96Smrg  if test -z "$ac_cv_path_EGREP"; then
4016dd77ae96Smrg    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4017dd77ae96Smrg$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
401872b4363aSmrg   { (exit 1); exit 1; }; }
4019dd77ae96Smrg  fi
4020dd77ae96Smrgelse
4021dd77ae96Smrg  ac_cv_path_EGREP=$EGREP
402272b4363aSmrgfi
402372b4363aSmrg
4024dd77ae96Smrg   fi
402572b4363aSmrgfi
4026dd77ae96Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4027dd77ae96Smrg$as_echo "$ac_cv_path_EGREP" >&6; }
4028dd77ae96Smrg EGREP="$ac_cv_path_EGREP"
402972b4363aSmrg
403072b4363aSmrg
4031dd77ae96Smrg{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4032dd77ae96Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
4033dd77ae96Smrgif test "${ac_cv_header_stdc+set}" = set; then
4034dd77ae96Smrg  $as_echo_n "(cached) " >&6
4035dd77ae96Smrgelse
4036dd77ae96Smrg  cat >conftest.$ac_ext <<_ACEOF
4037dd77ae96Smrg/* confdefs.h.  */
4038dd77ae96Smrg_ACEOF
4039dd77ae96Smrgcat confdefs.h >>conftest.$ac_ext
4040dd77ae96Smrgcat >>conftest.$ac_ext <<_ACEOF
4041dd77ae96Smrg/* end confdefs.h.  */
4042dd77ae96Smrg#include <stdlib.h>
4043dd77ae96Smrg#include <stdarg.h>
4044dd77ae96Smrg#include <string.h>
4045dd77ae96Smrg#include <float.h>
404672b4363aSmrg
4047dd77ae96Smrgint
4048dd77ae96Smrgmain ()
4049dd77ae96Smrg{
405072b4363aSmrg
4051dd77ae96Smrg  ;
4052dd77ae96Smrg  return 0;
4053dd77ae96Smrg}
4054dd77ae96Smrg_ACEOF
4055dd77ae96Smrgrm -f conftest.$ac_objext
4056dd77ae96Smrgif { (ac_try="$ac_compile"
4057dd77ae96Smrgcase "(($ac_try" in
4058dd77ae96Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059dd77ae96Smrg  *) ac_try_echo=$ac_try;;
4060dd77ae96Smrgesac
4061dd77ae96Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4062dd77ae96Smrg$as_echo "$ac_try_echo") >&5
4063dd77ae96Smrg  (eval "$ac_compile") 2>conftest.er1
4064dd77ae96Smrg  ac_status=$?
4065dd77ae96Smrg  grep -v '^ *+' conftest.er1 >conftest.err
4066dd77ae96Smrg  rm -f conftest.er1
4067dd77ae96Smrg  cat conftest.err >&5
4068dd77ae96Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069dd77ae96Smrg  (exit $ac_status); } && {
4070dd77ae96Smrg	 test -z "$ac_c_werror_flag" ||
4071dd77ae96Smrg	 test ! -s conftest.err
4072dd77ae96Smrg       } && test -s conftest.$ac_objext; then
4073dd77ae96Smrg  ac_cv_header_stdc=yes
4074dd77ae96Smrgelse
4075dd77ae96Smrg  $as_echo "$as_me: failed program was:" >&5
4076dd77ae96Smrgsed 's/^/| /' conftest.$ac_ext >&5
4077dd77ae96Smrg
4078dd77ae96Smrg	ac_cv_header_stdc=no
4079dd77ae96Smrgfi
4080dd77ae96Smrg
4081dd77ae96Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4082dd77ae96Smrg
4083dd77ae96Smrgif test $ac_cv_header_stdc = yes; then
4084dd77ae96Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4085dd77ae96Smrg  cat >conftest.$ac_ext <<_ACEOF
4086dd77ae96Smrg/* confdefs.h.  */
4087dd77ae96Smrg_ACEOF
4088dd77ae96Smrgcat confdefs.h >>conftest.$ac_ext
4089dd77ae96Smrgcat >>conftest.$ac_ext <<_ACEOF
4090dd77ae96Smrg/* end confdefs.h.  */
4091dd77ae96Smrg#include <string.h>
4092dd77ae96Smrg
4093dd77ae96Smrg_ACEOF
4094dd77ae96Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4095dd77ae96Smrg  $EGREP "memchr" >/dev/null 2>&1; then
4096dd77ae96Smrg  :
4097dd77ae96Smrgelse
4098dd77ae96Smrg  ac_cv_header_stdc=no
4099dd77ae96Smrgfi
4100dd77ae96Smrgrm -f conftest*
4101dd77ae96Smrg
4102dd77ae96Smrgfi
4103dd77ae96Smrg
4104dd77ae96Smrgif test $ac_cv_header_stdc = yes; then
4105dd77ae96Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4106dd77ae96Smrg  cat >conftest.$ac_ext <<_ACEOF
4107dd77ae96Smrg/* confdefs.h.  */
4108dd77ae96Smrg_ACEOF
4109dd77ae96Smrgcat confdefs.h >>conftest.$ac_ext
4110dd77ae96Smrgcat >>conftest.$ac_ext <<_ACEOF
4111dd77ae96Smrg/* end confdefs.h.  */
4112dd77ae96Smrg#include <stdlib.h>
4113dd77ae96Smrg
4114dd77ae96Smrg_ACEOF
4115dd77ae96Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4116dd77ae96Smrg  $EGREP "free" >/dev/null 2>&1; then
4117dd77ae96Smrg  :
4118dd77ae96Smrgelse
4119dd77ae96Smrg  ac_cv_header_stdc=no
4120dd77ae96Smrgfi
4121dd77ae96Smrgrm -f conftest*
4122dd77ae96Smrg
4123dd77ae96Smrgfi
4124dd77ae96Smrg
4125dd77ae96Smrgif test $ac_cv_header_stdc = yes; then
4126dd77ae96Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4127dd77ae96Smrg  if test "$cross_compiling" = yes; then
4128dd77ae96Smrg  :
4129dd77ae96Smrgelse
4130dd77ae96Smrg  cat >conftest.$ac_ext <<_ACEOF
4131dd77ae96Smrg/* confdefs.h.  */
4132dd77ae96Smrg_ACEOF
4133dd77ae96Smrgcat confdefs.h >>conftest.$ac_ext
4134dd77ae96Smrgcat >>conftest.$ac_ext <<_ACEOF
4135dd77ae96Smrg/* end confdefs.h.  */
4136dd77ae96Smrg#include <ctype.h>
4137dd77ae96Smrg#include <stdlib.h>
4138dd77ae96Smrg#if ((' ' & 0x0FF) == 0x020)
4139dd77ae96Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4140dd77ae96Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4141dd77ae96Smrg#else
4142dd77ae96Smrg# define ISLOWER(c) \
4143dd77ae96Smrg		   (('a' <= (c) && (c) <= 'i') \
4144dd77ae96Smrg		     || ('j' <= (c) && (c) <= 'r') \
4145dd77ae96Smrg		     || ('s' <= (c) && (c) <= 'z'))
4146dd77ae96Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4147dd77ae96Smrg#endif
4148dd77ae96Smrg
4149dd77ae96Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4150dd77ae96Smrgint
4151dd77ae96Smrgmain ()
4152dd77ae96Smrg{
4153dd77ae96Smrg  int i;
4154dd77ae96Smrg  for (i = 0; i < 256; i++)
4155dd77ae96Smrg    if (XOR (islower (i), ISLOWER (i))
4156dd77ae96Smrg	|| toupper (i) != TOUPPER (i))
4157dd77ae96Smrg      return 2;
4158dd77ae96Smrg  return 0;
4159dd77ae96Smrg}
4160dd77ae96Smrg_ACEOF
4161dd77ae96Smrgrm -f conftest$ac_exeext
4162dd77ae96Smrgif { (ac_try="$ac_link"
4163dd77ae96Smrgcase "(($ac_try" in
4164dd77ae96Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165dd77ae96Smrg  *) ac_try_echo=$ac_try;;
4166dd77ae96Smrgesac
4167dd77ae96Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4168dd77ae96Smrg$as_echo "$ac_try_echo") >&5
4169dd77ae96Smrg  (eval "$ac_link") 2>&5
4170dd77ae96Smrg  ac_status=$?
4171dd77ae96Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172dd77ae96Smrg  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4173dd77ae96Smrg  { (case "(($ac_try" in
4174dd77ae96Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175dd77ae96Smrg  *) ac_try_echo=$ac_try;;
4176dd77ae96Smrgesac
4177dd77ae96Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4178dd77ae96Smrg$as_echo "$ac_try_echo") >&5
4179dd77ae96Smrg  (eval "$ac_try") 2>&5
4180dd77ae96Smrg  ac_status=$?
4181dd77ae96Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182dd77ae96Smrg  (exit $ac_status); }; }; then
4183dd77ae96Smrg  :
4184dd77ae96Smrgelse
4185dd77ae96Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
4186dd77ae96Smrg$as_echo "$as_me: failed program was:" >&5
4187dd77ae96Smrgsed 's/^/| /' conftest.$ac_ext >&5
4188dd77ae96Smrg
4189dd77ae96Smrg( exit $ac_status )
4190dd77ae96Smrgac_cv_header_stdc=no
4191dd77ae96Smrgfi
4192dd77ae96Smrgrm -rf conftest.dSYM
4193dd77ae96Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4194dd77ae96Smrgfi
4195dd77ae96Smrg
4196dd77ae96Smrg
4197dd77ae96Smrgfi
4198dd77ae96Smrgfi
4199dd77ae96Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4200dd77ae96Smrg$as_echo "$ac_cv_header_stdc" >&6; }
4201dd77ae96Smrgif test $ac_cv_header_stdc = yes; then
4202dd77ae96Smrg
4203dd77ae96Smrgcat >>confdefs.h <<\_ACEOF
4204dd77ae96Smrg#define STDC_HEADERS 1
4205dd77ae96Smrg_ACEOF
4206dd77ae96Smrg
4207dd77ae96Smrgfi
4208dd77ae96Smrg
4209dd77ae96Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4210dd77ae96Smrg
4211dd77ae96Smrg
4212dd77ae96Smrg
4213dd77ae96Smrg
4214dd77ae96Smrg
4215dd77ae96Smrg
4216dd77ae96Smrg
4217dd77ae96Smrg
4218dd77ae96Smrg
4219dd77ae96Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4220dd77ae96Smrg		  inttypes.h stdint.h unistd.h
4221dd77ae96Smrgdo
4222dd77ae96Smrgas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4223dd77ae96Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4224dd77ae96Smrg$as_echo_n "checking for $ac_header... " >&6; }
4225dd77ae96Smrgif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4226dd77ae96Smrg  $as_echo_n "(cached) " >&6
4227dd77ae96Smrgelse
4228dd77ae96Smrg  cat >conftest.$ac_ext <<_ACEOF
4229dd77ae96Smrg/* confdefs.h.  */
4230dd77ae96Smrg_ACEOF
4231dd77ae96Smrgcat confdefs.h >>conftest.$ac_ext
4232dd77ae96Smrgcat >>conftest.$ac_ext <<_ACEOF
4233dd77ae96Smrg/* end confdefs.h.  */
4234dd77ae96Smrg$ac_includes_default
4235dd77ae96Smrg
4236dd77ae96Smrg#include <$ac_header>
4237dd77ae96Smrg_ACEOF
4238dd77ae96Smrgrm -f conftest.$ac_objext
4239dd77ae96Smrgif { (ac_try="$ac_compile"
4240dd77ae96Smrgcase "(($ac_try" in
4241dd77ae96Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242dd77ae96Smrg  *) ac_try_echo=$ac_try;;
4243dd77ae96Smrgesac
4244dd77ae96Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4245dd77ae96Smrg$as_echo "$ac_try_echo") >&5
4246dd77ae96Smrg  (eval "$ac_compile") 2>conftest.er1
4247dd77ae96Smrg  ac_status=$?
4248dd77ae96Smrg  grep -v '^ *+' conftest.er1 >conftest.err
4249dd77ae96Smrg  rm -f conftest.er1
4250dd77ae96Smrg  cat conftest.err >&5
4251dd77ae96Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252dd77ae96Smrg  (exit $ac_status); } && {
4253dd77ae96Smrg	 test -z "$ac_c_werror_flag" ||
4254dd77ae96Smrg	 test ! -s conftest.err
4255dd77ae96Smrg       } && test -s conftest.$ac_objext; then
4256dd77ae96Smrg  eval "$as_ac_Header=yes"
4257dd77ae96Smrgelse
4258dd77ae96Smrg  $as_echo "$as_me: failed program was:" >&5
4259dd77ae96Smrgsed 's/^/| /' conftest.$ac_ext >&5
4260dd77ae96Smrg
4261dd77ae96Smrg	eval "$as_ac_Header=no"
4262dd77ae96Smrgfi
4263dd77ae96Smrg
4264dd77ae96Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4265dd77ae96Smrgfi
4266dd77ae96Smrgac_res=`eval 'as_val=${'$as_ac_Header'}
4267dd77ae96Smrg		 $as_echo "$as_val"'`
4268dd77ae96Smrg	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4269dd77ae96Smrg$as_echo "$ac_res" >&6; }
4270dd77ae96Smrgas_val=`eval 'as_val=${'$as_ac_Header'}
4271dd77ae96Smrg		 $as_echo "$as_val"'`
4272dd77ae96Smrg   if test "x$as_val" = x""yes; then
4273dd77ae96Smrg  cat >>confdefs.h <<_ACEOF
4274dd77ae96Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4275dd77ae96Smrg_ACEOF
4276dd77ae96Smrg
4277dd77ae96Smrgfi
4278dd77ae96Smrg
4279dd77ae96Smrgdone
4280dd77ae96Smrg
4281dd77ae96Smrg
4282dd77ae96Smrg   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
4283dd77ae96Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4284dd77ae96Smrgif test "${ac_cv_prog_cc_c99+set}" = set; then
4285dd77ae96Smrg  $as_echo_n "(cached) " >&6
4286dd77ae96Smrgelse
4287dd77ae96Smrg  ac_cv_prog_cc_c99=no
4288dd77ae96Smrgac_save_CC=$CC
4289dd77ae96Smrgcat >conftest.$ac_ext <<_ACEOF
4290dd77ae96Smrg/* confdefs.h.  */
4291dd77ae96Smrg_ACEOF
4292dd77ae96Smrgcat confdefs.h >>conftest.$ac_ext
4293dd77ae96Smrgcat >>conftest.$ac_ext <<_ACEOF
4294dd77ae96Smrg/* end confdefs.h.  */
4295dd77ae96Smrg#include <stdarg.h>
4296dd77ae96Smrg#include <stdbool.h>
4297dd77ae96Smrg#include <stdlib.h>
4298dd77ae96Smrg#include <wchar.h>
4299dd77ae96Smrg#include <stdio.h>
4300dd77ae96Smrg
4301dd77ae96Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4302dd77ae96Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
4303dd77ae96Smrg#define showlist(...) puts (#__VA_ARGS__)
4304dd77ae96Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4305dd77ae96Smrgstatic void
4306dd77ae96Smrgtest_varargs_macros (void)
4307dd77ae96Smrg{
4308dd77ae96Smrg  int x = 1234;
4309dd77ae96Smrg  int y = 5678;
4310dd77ae96Smrg  debug ("Flag");
4311dd77ae96Smrg  debug ("X = %d\n", x);
4312dd77ae96Smrg  showlist (The first, second, and third items.);
4313dd77ae96Smrg  report (x>y, "x is %d but y is %d", x, y);
4314dd77ae96Smrg}
4315dd77ae96Smrg
4316dd77ae96Smrg// Check long long types.
4317dd77ae96Smrg#define BIG64 18446744073709551615ull
4318dd77ae96Smrg#define BIG32 4294967295ul
4319dd77ae96Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4320dd77ae96Smrg#if !BIG_OK
4321dd77ae96Smrg  your preprocessor is broken;
4322dd77ae96Smrg#endif
4323dd77ae96Smrg#if BIG_OK
4324dd77ae96Smrg#else
4325dd77ae96Smrg  your preprocessor is broken;
4326dd77ae96Smrg#endif
4327dd77ae96Smrgstatic long long int bignum = -9223372036854775807LL;
4328dd77ae96Smrgstatic unsigned long long int ubignum = BIG64;
4329dd77ae96Smrg
4330dd77ae96Smrgstruct incomplete_array
4331dd77ae96Smrg{
4332dd77ae96Smrg  int datasize;
4333dd77ae96Smrg  double data[];
4334dd77ae96Smrg};
4335dd77ae96Smrg
4336dd77ae96Smrgstruct named_init {
4337dd77ae96Smrg  int number;
4338dd77ae96Smrg  const wchar_t *name;
4339dd77ae96Smrg  double average;
4340dd77ae96Smrg};
4341dd77ae96Smrg
4342dd77ae96Smrgtypedef const char *ccp;
4343dd77ae96Smrg
4344dd77ae96Smrgstatic inline int
4345dd77ae96Smrgtest_restrict (ccp restrict text)
4346dd77ae96Smrg{
4347dd77ae96Smrg  // See if C++-style comments work.
4348dd77ae96Smrg  // Iterate through items via the restricted pointer.
4349dd77ae96Smrg  // Also check for declarations in for loops.
4350dd77ae96Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4351dd77ae96Smrg    continue;
4352dd77ae96Smrg  return 0;
4353dd77ae96Smrg}
4354dd77ae96Smrg
4355dd77ae96Smrg// Check varargs and va_copy.
4356dd77ae96Smrgstatic void
4357dd77ae96Smrgtest_varargs (const char *format, ...)
4358dd77ae96Smrg{
4359dd77ae96Smrg  va_list args;
4360dd77ae96Smrg  va_start (args, format);
4361dd77ae96Smrg  va_list args_copy;
4362dd77ae96Smrg  va_copy (args_copy, args);
4363dd77ae96Smrg
4364dd77ae96Smrg  const char *str;
4365dd77ae96Smrg  int number;
4366dd77ae96Smrg  float fnumber;
4367dd77ae96Smrg
4368dd77ae96Smrg  while (*format)
4369dd77ae96Smrg    {
4370dd77ae96Smrg      switch (*format++)
4371dd77ae96Smrg	{
4372dd77ae96Smrg	case 's': // string
4373dd77ae96Smrg	  str = va_arg (args_copy, const char *);
4374dd77ae96Smrg	  break;
4375dd77ae96Smrg	case 'd': // int
4376dd77ae96Smrg	  number = va_arg (args_copy, int);
4377dd77ae96Smrg	  break;
4378dd77ae96Smrg	case 'f': // float
4379dd77ae96Smrg	  fnumber = va_arg (args_copy, double);
4380dd77ae96Smrg	  break;
4381dd77ae96Smrg	default:
4382dd77ae96Smrg	  break;
4383dd77ae96Smrg	}
4384dd77ae96Smrg    }
4385dd77ae96Smrg  va_end (args_copy);
4386dd77ae96Smrg  va_end (args);
4387dd77ae96Smrg}
4388dd77ae96Smrg
4389dd77ae96Smrgint
4390dd77ae96Smrgmain ()
4391dd77ae96Smrg{
4392dd77ae96Smrg
4393dd77ae96Smrg  // Check bool.
4394dd77ae96Smrg  _Bool success = false;
4395dd77ae96Smrg
4396dd77ae96Smrg  // Check restrict.
4397dd77ae96Smrg  if (test_restrict ("String literal") == 0)
4398dd77ae96Smrg    success = true;
4399dd77ae96Smrg  char *restrict newvar = "Another string";
4400dd77ae96Smrg
4401dd77ae96Smrg  // Check varargs.
4402dd77ae96Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
4403dd77ae96Smrg  test_varargs_macros ();
4404dd77ae96Smrg
4405dd77ae96Smrg  // Check flexible array members.
4406dd77ae96Smrg  struct incomplete_array *ia =
4407dd77ae96Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4408dd77ae96Smrg  ia->datasize = 10;
4409dd77ae96Smrg  for (int i = 0; i < ia->datasize; ++i)
4410dd77ae96Smrg    ia->data[i] = i * 1.234;
4411dd77ae96Smrg
4412dd77ae96Smrg  // Check named initializers.
4413dd77ae96Smrg  struct named_init ni = {
4414dd77ae96Smrg    .number = 34,
4415dd77ae96Smrg    .name = L"Test wide string",
4416dd77ae96Smrg    .average = 543.34343,
4417dd77ae96Smrg  };
4418dd77ae96Smrg
4419dd77ae96Smrg  ni.number = 58;
4420dd77ae96Smrg
4421dd77ae96Smrg  int dynamic_array[ni.number];
4422dd77ae96Smrg  dynamic_array[ni.number - 1] = 543;
4423dd77ae96Smrg
4424dd77ae96Smrg  // work around unused variable warnings
4425dd77ae96Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4426dd77ae96Smrg	  || dynamic_array[ni.number - 1] != 543);
4427dd77ae96Smrg
4428dd77ae96Smrg  ;
4429dd77ae96Smrg  return 0;
4430dd77ae96Smrg}
4431dd77ae96Smrg_ACEOF
4432dd77ae96Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4433dd77ae96Smrgdo
4434dd77ae96Smrg  CC="$ac_save_CC $ac_arg"
4435dd77ae96Smrg  rm -f conftest.$ac_objext
4436dd77ae96Smrgif { (ac_try="$ac_compile"
4437dd77ae96Smrgcase "(($ac_try" in
4438dd77ae96Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439dd77ae96Smrg  *) ac_try_echo=$ac_try;;
4440dd77ae96Smrgesac
4441dd77ae96Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4442dd77ae96Smrg$as_echo "$ac_try_echo") >&5
4443dd77ae96Smrg  (eval "$ac_compile") 2>conftest.er1
4444dd77ae96Smrg  ac_status=$?
4445dd77ae96Smrg  grep -v '^ *+' conftest.er1 >conftest.err
4446dd77ae96Smrg  rm -f conftest.er1
4447dd77ae96Smrg  cat conftest.err >&5
4448dd77ae96Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449dd77ae96Smrg  (exit $ac_status); } && {
4450dd77ae96Smrg	 test -z "$ac_c_werror_flag" ||
4451dd77ae96Smrg	 test ! -s conftest.err
4452dd77ae96Smrg       } && test -s conftest.$ac_objext; then
4453dd77ae96Smrg  ac_cv_prog_cc_c99=$ac_arg
4454dd77ae96Smrgelse
4455dd77ae96Smrg  $as_echo "$as_me: failed program was:" >&5
4456dd77ae96Smrgsed 's/^/| /' conftest.$ac_ext >&5
4457dd77ae96Smrg
4458dd77ae96Smrg
4459dd77ae96Smrgfi
4460dd77ae96Smrg
4461dd77ae96Smrgrm -f core conftest.err conftest.$ac_objext
4462dd77ae96Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
4463dd77ae96Smrgdone
4464dd77ae96Smrgrm -f conftest.$ac_ext
4465dd77ae96SmrgCC=$ac_save_CC
4466dd77ae96Smrg
4467dd77ae96Smrgfi
4468dd77ae96Smrg# AC_CACHE_VAL
4469dd77ae96Smrgcase "x$ac_cv_prog_cc_c99" in
4470dd77ae96Smrg  x)
4471dd77ae96Smrg    { $as_echo "$as_me:$LINENO: result: none needed" >&5
4472dd77ae96Smrg$as_echo "none needed" >&6; } ;;
4473dd77ae96Smrg  xno)
4474dd77ae96Smrg    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4475dd77ae96Smrg$as_echo "unsupported" >&6; } ;;
4476dd77ae96Smrg  *)
4477dd77ae96Smrg    CC="$CC $ac_cv_prog_cc_c99"
4478dd77ae96Smrg    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4479dd77ae96Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4480dd77ae96Smrgesac
4481dd77ae96Smrg
4482dd77ae96Smrg
4483dd77ae96Smrg
4484dd77ae96Smrg# Make sure we can run config.sub.
4485dd77ae96Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4486dd77ae96Smrg  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4487dd77ae96Smrg$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4488dd77ae96Smrg   { (exit 1); exit 1; }; }
4489dd77ae96Smrg
4490dd77ae96Smrg{ $as_echo "$as_me:$LINENO: checking build system type" >&5
4491dd77ae96Smrg$as_echo_n "checking build system type... " >&6; }
4492dd77ae96Smrgif test "${ac_cv_build+set}" = set; then
4493dd77ae96Smrg  $as_echo_n "(cached) " >&6
4494dd77ae96Smrgelse
4495dd77ae96Smrg  ac_build_alias=$build_alias
4496dd77ae96Smrgtest "x$ac_build_alias" = x &&
4497dd77ae96Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4498dd77ae96Smrgtest "x$ac_build_alias" = x &&
4499dd77ae96Smrg  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4500dd77ae96Smrg$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4501dd77ae96Smrg   { (exit 1); exit 1; }; }
4502dd77ae96Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4503dd77ae96Smrg  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4504dd77ae96Smrg$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4505dd77ae96Smrg   { (exit 1); exit 1; }; }
4506dd77ae96Smrg
4507dd77ae96Smrgfi
4508dd77ae96Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4509dd77ae96Smrg$as_echo "$ac_cv_build" >&6; }
4510dd77ae96Smrgcase $ac_cv_build in
4511dd77ae96Smrg*-*-*) ;;
4512dd77ae96Smrg*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4513dd77ae96Smrg$as_echo "$as_me: error: invalid value of canonical build" >&2;}
4514dd77ae96Smrg   { (exit 1); exit 1; }; };;
4515dd77ae96Smrgesac
4516dd77ae96Smrgbuild=$ac_cv_build
4517dd77ae96Smrgac_save_IFS=$IFS; IFS='-'
4518dd77ae96Smrgset x $ac_cv_build
4519dd77ae96Smrgshift
4520dd77ae96Smrgbuild_cpu=$1
4521dd77ae96Smrgbuild_vendor=$2
4522dd77ae96Smrgshift; shift
4523dd77ae96Smrg# Remember, the first character of IFS is used to create $*,
4524dd77ae96Smrg# except with old shells:
4525dd77ae96Smrgbuild_os=$*
4526dd77ae96SmrgIFS=$ac_save_IFS
4527dd77ae96Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4528dd77ae96Smrg
4529dd77ae96Smrg
4530dd77ae96Smrg{ $as_echo "$as_me:$LINENO: checking host system type" >&5
4531dd77ae96Smrg$as_echo_n "checking host system type... " >&6; }
4532dd77ae96Smrgif test "${ac_cv_host+set}" = set; then
4533dd77ae96Smrg  $as_echo_n "(cached) " >&6
4534dd77ae96Smrgelse
4535dd77ae96Smrg  if test "x$host_alias" = x; then
4536dd77ae96Smrg  ac_cv_host=$ac_cv_build
4537dd77ae96Smrgelse
4538dd77ae96Smrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4539dd77ae96Smrg    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4540dd77ae96Smrg$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4541dd77ae96Smrg   { (exit 1); exit 1; }; }
4542dd77ae96Smrgfi
4543dd77ae96Smrg
4544dd77ae96Smrgfi
4545dd77ae96Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4546dd77ae96Smrg$as_echo "$ac_cv_host" >&6; }
4547dd77ae96Smrgcase $ac_cv_host in
4548dd77ae96Smrg*-*-*) ;;
4549dd77ae96Smrg*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4550dd77ae96Smrg$as_echo "$as_me: error: invalid value of canonical host" >&2;}
4551dd77ae96Smrg   { (exit 1); exit 1; }; };;
4552dd77ae96Smrgesac
4553dd77ae96Smrghost=$ac_cv_host
4554dd77ae96Smrgac_save_IFS=$IFS; IFS='-'
4555dd77ae96Smrgset x $ac_cv_host
4556dd77ae96Smrgshift
4557dd77ae96Smrghost_cpu=$1
4558dd77ae96Smrghost_vendor=$2
4559dd77ae96Smrgshift; shift
4560dd77ae96Smrg# Remember, the first character of IFS is used to create $*,
4561dd77ae96Smrg# except with old shells:
4562dd77ae96Smrghost_os=$*
4563dd77ae96SmrgIFS=$ac_save_IFS
4564dd77ae96Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4565dd77ae96Smrg
4566dd77ae96Smrg
4567dd77ae96Smrg
4568dd77ae96Smrg
4569dd77ae96Smrg
4570dd77ae96Smrgif  test "x$GCC" = xyes ; then
4571dd77ae96Smrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4572dd77ae96Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4573dd77ae96Smrg-Wbad-function-cast"
4574dd77ae96Smrg    case `$CC -dumpversion` in
4575dd77ae96Smrg    3.4.* | 4.*)
4576dd77ae96Smrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4577dd77ae96Smrg	;;
4578dd77ae96Smrg    esac
4579dd77ae96Smrgelse
4580dd77ae96Smrg    { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4581dd77ae96Smrg$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4582dd77ae96Smrgif test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4583dd77ae96Smrg  $as_echo_n "(cached) " >&6
4584dd77ae96Smrgelse
4585dd77ae96Smrg  cat >conftest.$ac_ext <<_ACEOF
4586dd77ae96Smrg/* confdefs.h.  */
4587dd77ae96Smrg_ACEOF
4588dd77ae96Smrgcat confdefs.h >>conftest.$ac_ext
4589dd77ae96Smrgcat >>conftest.$ac_ext <<_ACEOF
4590dd77ae96Smrg/* end confdefs.h.  */
4591dd77ae96Smrg$ac_includes_default
4592dd77ae96Smrgint
4593dd77ae96Smrgmain ()
4594dd77ae96Smrg{
4595dd77ae96Smrg#ifndef __SUNPRO_C
4596dd77ae96Smrg  (void) __SUNPRO_C;
4597dd77ae96Smrg#endif
4598dd77ae96Smrg
4599dd77ae96Smrg  ;
4600dd77ae96Smrg  return 0;
4601dd77ae96Smrg}
4602dd77ae96Smrg_ACEOF
4603dd77ae96Smrgrm -f conftest.$ac_objext
4604dd77ae96Smrgif { (ac_try="$ac_compile"
4605dd77ae96Smrgcase "(($ac_try" in
4606dd77ae96Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607dd77ae96Smrg  *) ac_try_echo=$ac_try;;
4608dd77ae96Smrgesac
4609dd77ae96Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4610dd77ae96Smrg$as_echo "$ac_try_echo") >&5
4611dd77ae96Smrg  (eval "$ac_compile") 2>conftest.er1
4612dd77ae96Smrg  ac_status=$?
4613dd77ae96Smrg  grep -v '^ *+' conftest.er1 >conftest.err
4614dd77ae96Smrg  rm -f conftest.er1
4615dd77ae96Smrg  cat conftest.err >&5
4616dd77ae96Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617dd77ae96Smrg  (exit $ac_status); } && {
4618dd77ae96Smrg	 test -z "$ac_c_werror_flag" ||
4619dd77ae96Smrg	 test ! -s conftest.err
4620dd77ae96Smrg       } && test -s conftest.$ac_objext; then
4621dd77ae96Smrg  ac_cv_have_decl___SUNPRO_C=yes
4622dd77ae96Smrgelse
4623dd77ae96Smrg  $as_echo "$as_me: failed program was:" >&5
4624dd77ae96Smrgsed 's/^/| /' conftest.$ac_ext >&5
4625dd77ae96Smrg
4626dd77ae96Smrg	ac_cv_have_decl___SUNPRO_C=no
4627dd77ae96Smrgfi
4628dd77ae96Smrg
4629dd77ae96Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630dd77ae96Smrgfi
4631dd77ae96Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4632dd77ae96Smrg$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4633dd77ae96Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
4634dd77ae96Smrg  SUNCC="yes"
4635dd77ae96Smrgelse
4636dd77ae96Smrg  SUNCC="no"
4637dd77ae96Smrgfi
4638dd77ae96Smrg
4639dd77ae96Smrg    if test "x$SUNCC" = "xyes"; then
4640dd77ae96Smrg	CWARNFLAGS="-v"
4641dd77ae96Smrg    fi
4642dd77ae96Smrgfi
4643dd77ae96Smrg
4644dd77ae96Smrg# Check whether --enable-silent-rules was given.
4645dd77ae96Smrgif test "${enable_silent_rules+set}" = set; then
4646dd77ae96Smrg  enableval=$enable_silent_rules;
4647dd77ae96Smrgfi
4648dd77ae96Smrg
4649dd77ae96Smrgcase $enable_silent_rules in
4650dd77ae96Smrgyes) AM_DEFAULT_VERBOSITY=0;;
4651dd77ae96Smrgno)  AM_DEFAULT_VERBOSITY=1;;
4652dd77ae96Smrg*)   AM_DEFAULT_VERBOSITY=0;;
4653dd77ae96Smrgesac
4654dd77ae96SmrgAM_BACKSLASH='\'
4655dd77ae96Smrg
4656dd77ae96Smrg
4657dd77ae96Smrg
4658dd77ae96Smrg
4659dd77ae96Smrg
4660dd77ae96Smrg
4661dd77ae96Smrg
4662dd77ae96Smrg# Check whether --enable-strict-compilation was given.
4663dd77ae96Smrgif test "${enable_strict_compilation+set}" = set; then
4664dd77ae96Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4665dd77ae96Smrgelse
4666dd77ae96Smrg  STRICT_COMPILE=no
4667dd77ae96Smrgfi
4668dd77ae96Smrg
4669dd77ae96Smrgif test "x$STRICT_COMPILE" = "xyes"; then
4670dd77ae96Smrg	{ $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4671dd77ae96Smrg$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4672dd77ae96Smrgif test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4673dd77ae96Smrg  $as_echo_n "(cached) " >&6
4674dd77ae96Smrgelse
4675dd77ae96Smrg  cat >conftest.$ac_ext <<_ACEOF
4676dd77ae96Smrg/* confdefs.h.  */
4677dd77ae96Smrg_ACEOF
4678dd77ae96Smrgcat confdefs.h >>conftest.$ac_ext
4679dd77ae96Smrgcat >>conftest.$ac_ext <<_ACEOF
4680dd77ae96Smrg/* end confdefs.h.  */
4681dd77ae96Smrg$ac_includes_default
4682dd77ae96Smrgint
4683dd77ae96Smrgmain ()
4684dd77ae96Smrg{
4685dd77ae96Smrg#ifndef __SUNPRO_C
4686dd77ae96Smrg  (void) __SUNPRO_C;
4687dd77ae96Smrg#endif
4688dd77ae96Smrg
4689dd77ae96Smrg  ;
4690dd77ae96Smrg  return 0;
4691dd77ae96Smrg}
4692dd77ae96Smrg_ACEOF
4693dd77ae96Smrgrm -f conftest.$ac_objext
4694dd77ae96Smrgif { (ac_try="$ac_compile"
4695dd77ae96Smrgcase "(($ac_try" in
4696dd77ae96Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4697dd77ae96Smrg  *) ac_try_echo=$ac_try;;
4698dd77ae96Smrgesac
4699dd77ae96Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4700dd77ae96Smrg$as_echo "$ac_try_echo") >&5
4701dd77ae96Smrg  (eval "$ac_compile") 2>conftest.er1
4702dd77ae96Smrg  ac_status=$?
4703dd77ae96Smrg  grep -v '^ *+' conftest.er1 >conftest.err
4704dd77ae96Smrg  rm -f conftest.er1
4705dd77ae96Smrg  cat conftest.err >&5
4706dd77ae96Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707dd77ae96Smrg  (exit $ac_status); } && {
4708dd77ae96Smrg	 test -z "$ac_c_werror_flag" ||
4709dd77ae96Smrg	 test ! -s conftest.err
4710dd77ae96Smrg       } && test -s conftest.$ac_objext; then
4711dd77ae96Smrg  ac_cv_have_decl___SUNPRO_C=yes
4712dd77ae96Smrgelse
4713dd77ae96Smrg  $as_echo "$as_me: failed program was:" >&5
4714dd77ae96Smrgsed 's/^/| /' conftest.$ac_ext >&5
4715dd77ae96Smrg
4716dd77ae96Smrg	ac_cv_have_decl___SUNPRO_C=no
4717dd77ae96Smrgfi
4718dd77ae96Smrg
4719dd77ae96Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4720dd77ae96Smrgfi
4721dd77ae96Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4722dd77ae96Smrg$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4723dd77ae96Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
4724dd77ae96Smrg  SUNCC="yes"
4725dd77ae96Smrgelse
4726dd77ae96Smrg  SUNCC="no"
4727dd77ae96Smrgfi
4728dd77ae96Smrg
4729dd77ae96Smrg	{ $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
4730dd77ae96Smrg$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
4731dd77ae96Smrgif test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
4732dd77ae96Smrg  $as_echo_n "(cached) " >&6
4733dd77ae96Smrgelse
4734dd77ae96Smrg  cat >conftest.$ac_ext <<_ACEOF
4735dd77ae96Smrg/* confdefs.h.  */
4736dd77ae96Smrg_ACEOF
4737dd77ae96Smrgcat confdefs.h >>conftest.$ac_ext
4738dd77ae96Smrgcat >>conftest.$ac_ext <<_ACEOF
4739dd77ae96Smrg/* end confdefs.h.  */
4740dd77ae96Smrg$ac_includes_default
4741dd77ae96Smrgint
4742dd77ae96Smrgmain ()
4743dd77ae96Smrg{
4744dd77ae96Smrg#ifndef __INTEL_COMPILER
4745dd77ae96Smrg  (void) __INTEL_COMPILER;
4746dd77ae96Smrg#endif
4747dd77ae96Smrg
4748dd77ae96Smrg  ;
4749dd77ae96Smrg  return 0;
4750dd77ae96Smrg}
4751dd77ae96Smrg_ACEOF
4752dd77ae96Smrgrm -f conftest.$ac_objext
4753dd77ae96Smrgif { (ac_try="$ac_compile"
4754dd77ae96Smrgcase "(($ac_try" in
4755dd77ae96Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756dd77ae96Smrg  *) ac_try_echo=$ac_try;;
4757dd77ae96Smrgesac
4758dd77ae96Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4759dd77ae96Smrg$as_echo "$ac_try_echo") >&5
4760dd77ae96Smrg  (eval "$ac_compile") 2>conftest.er1
4761dd77ae96Smrg  ac_status=$?
4762dd77ae96Smrg  grep -v '^ *+' conftest.er1 >conftest.err
4763dd77ae96Smrg  rm -f conftest.er1
4764dd77ae96Smrg  cat conftest.err >&5
4765dd77ae96Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766dd77ae96Smrg  (exit $ac_status); } && {
4767dd77ae96Smrg	 test -z "$ac_c_werror_flag" ||
4768dd77ae96Smrg	 test ! -s conftest.err
4769dd77ae96Smrg       } && test -s conftest.$ac_objext; then
4770dd77ae96Smrg  ac_cv_have_decl___INTEL_COMPILER=yes
4771dd77ae96Smrgelse
4772dd77ae96Smrg  $as_echo "$as_me: failed program was:" >&5
4773dd77ae96Smrgsed 's/^/| /' conftest.$ac_ext >&5
4774dd77ae96Smrg
4775dd77ae96Smrg	ac_cv_have_decl___INTEL_COMPILER=no
4776dd77ae96Smrgfi
4777dd77ae96Smrg
4778dd77ae96Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779dd77ae96Smrgfi
4780dd77ae96Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
4781dd77ae96Smrg$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
4782dd77ae96Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then
4783dd77ae96Smrg  INTELCC="yes"
4784dd77ae96Smrgelse
4785dd77ae96Smrg  INTELCC="no"
4786dd77ae96Smrgfi
4787dd77ae96Smrg
4788dd77ae96Smrg	if test "x$GCC" = xyes ; then
4789dd77ae96Smrg		STRICT_CFLAGS="-pedantic -Werror"
4790dd77ae96Smrg	elif test "x$SUNCC" = "xyes"; then
4791dd77ae96Smrg		STRICT_CFLAGS="-errwarn"
4792dd77ae96Smrg    elif test "x$INTELCC" = "xyes"; then
4793dd77ae96Smrg		STRICT_CFLAGS="-Werror"
4794dd77ae96Smrg	fi
4795dd77ae96Smrgfi
4796dd77ae96SmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4797dd77ae96Smrg
4798dd77ae96Smrg
4799dd77ae96Smrg
4800dd77ae96Smrg
4801dd77ae96Smrg# Check whether --with-release-version was given.
4802dd77ae96Smrgif test "${with_release_version+set}" = set; then
4803dd77ae96Smrg  withval=$with_release_version; RELEASE_VERSION="$withval"
4804dd77ae96Smrgelse
4805dd77ae96Smrg  RELEASE_VERSION=""
4806dd77ae96Smrgfi
4807dd77ae96Smrg
4808dd77ae96Smrg	if test "x$RELEASE_VERSION" != "x"; then
4809dd77ae96Smrg		PACKAGE="$PACKAGE-$RELEASE_VERSION"
4810dd77ae96Smrg		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
4811dd77ae96Smrg		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
4812dd77ae96Smrg$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
4813dd77ae96Smrg	fi
4814dd77ae96Smrg
4815dd77ae96Smrgcat >>confdefs.h <<_ACEOF
4816dd77ae96Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4817dd77ae96Smrg_ACEOF
4818dd77ae96Smrg
4819dd77ae96Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4820dd77ae96Smrg	if test "x$PVM" = "x"; then
4821dd77ae96Smrg		PVM="0"
4822dd77ae96Smrg	fi
4823dd77ae96Smrg
4824dd77ae96Smrgcat >>confdefs.h <<_ACEOF
4825dd77ae96Smrg#define PACKAGE_VERSION_MINOR $PVM
4826dd77ae96Smrg_ACEOF
4827dd77ae96Smrg
4828dd77ae96Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4829dd77ae96Smrg	if test "x$PVP" = "x"; then
4830dd77ae96Smrg		PVP="0"
4831dd77ae96Smrg	fi
4832dd77ae96Smrg
4833dd77ae96Smrgcat >>confdefs.h <<_ACEOF
4834dd77ae96Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
4835dd77ae96Smrg_ACEOF
4836dd77ae96Smrg
4837dd77ae96Smrg
4838dd77ae96Smrg
4839dd77ae96SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
4840dd77ae96Smrgmv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
4841dd77ae96Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
4842dd77ae96Smrg
4843dd77ae96Smrgdistcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
4844dd77ae96Smrg
4845dd77ae96Smrg
4846dd77ae96Smrg
4847dd77ae96Smrg
4848dd77ae96Smrg
4849dd77ae96Smrgif test x$APP_MAN_SUFFIX = x    ; then
4850dd77ae96Smrg    APP_MAN_SUFFIX=1
4851dd77ae96Smrgfi
4852dd77ae96Smrgif test x$APP_MAN_DIR = x    ; then
4853dd77ae96Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4854dd77ae96Smrgfi
4855dd77ae96Smrg
4856dd77ae96Smrgif test x$LIB_MAN_SUFFIX = x    ; then
4857dd77ae96Smrg    LIB_MAN_SUFFIX=3
4858dd77ae96Smrgfi
4859dd77ae96Smrgif test x$LIB_MAN_DIR = x    ; then
4860dd77ae96Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4861dd77ae96Smrgfi
4862dd77ae96Smrg
4863dd77ae96Smrgif test x$FILE_MAN_SUFFIX = x    ; then
4864dd77ae96Smrg    case $host_os in
4865dd77ae96Smrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
4866dd77ae96Smrg	*)		FILE_MAN_SUFFIX=5  ;;
4867dd77ae96Smrg    esac
4868dd77ae96Smrgfi
4869dd77ae96Smrgif test x$FILE_MAN_DIR = x    ; then
4870dd77ae96Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4871dd77ae96Smrgfi
4872dd77ae96Smrg
4873dd77ae96Smrgif test x$MISC_MAN_SUFFIX = x    ; then
4874dd77ae96Smrg    case $host_os in
4875dd77ae96Smrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
4876dd77ae96Smrg	*)		MISC_MAN_SUFFIX=7  ;;
4877dd77ae96Smrg    esac
4878dd77ae96Smrgfi
4879dd77ae96Smrgif test x$MISC_MAN_DIR = x    ; then
4880dd77ae96Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4881dd77ae96Smrgfi
4882dd77ae96Smrg
4883dd77ae96Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
4884dd77ae96Smrg    case $host_os in
4885dd77ae96Smrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
4886dd77ae96Smrg	*)		DRIVER_MAN_SUFFIX=4  ;;
4887dd77ae96Smrg    esac
4888dd77ae96Smrgfi
4889dd77ae96Smrgif test x$DRIVER_MAN_DIR = x    ; then
4890dd77ae96Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4891dd77ae96Smrgfi
4892dd77ae96Smrg
4893dd77ae96Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
4894dd77ae96Smrg    case $host_os in
4895dd77ae96Smrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
4896dd77ae96Smrg	*)		ADMIN_MAN_SUFFIX=8  ;;
4897dd77ae96Smrg    esac
4898dd77ae96Smrgfi
4899dd77ae96Smrgif test x$ADMIN_MAN_DIR = x    ; then
4900dd77ae96Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4901dd77ae96Smrgfi
4902dd77ae96Smrg
4903dd77ae96Smrg
4904dd77ae96Smrg
4905dd77ae96Smrg
4906dd77ae96Smrg
4907dd77ae96Smrg
4908dd77ae96Smrg
4909dd77ae96Smrg
4910dd77ae96Smrg
4911dd77ae96Smrg
4912dd77ae96Smrg
4913dd77ae96Smrg
4914dd77ae96Smrg
4915dd77ae96Smrg
4916dd77ae96Smrg
4917dd77ae96Smrg
4918dd77ae96Smrg
4919dd77ae96Smrg# Checks for pkg-config packages
4920dd77ae96Smrg
4921dd77ae96Smrg
4922dd77ae96Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4923dd77ae96Smrg	if test -n "$ac_tool_prefix"; then
4924dd77ae96Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4925dd77ae96Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4926dd77ae96Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4927dd77ae96Smrg$as_echo_n "checking for $ac_word... " >&6; }
4928dd77ae96Smrgif test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4929dd77ae96Smrg  $as_echo_n "(cached) " >&6
4930dd77ae96Smrgelse
4931dd77ae96Smrg  case $PKG_CONFIG in
4932dd77ae96Smrg  [\\/]* | ?:[\\/]*)
4933dd77ae96Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4934dd77ae96Smrg  ;;
4935dd77ae96Smrg  *)
4936dd77ae96Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937dd77ae96Smrgfor as_dir in $PATH
4938dd77ae96Smrgdo
4939dd77ae96Smrg  IFS=$as_save_IFS
4940dd77ae96Smrg  test -z "$as_dir" && as_dir=.
4941dd77ae96Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
4942dd77ae96Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4943dd77ae96Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4944dd77ae96Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4945dd77ae96Smrg    break 2
4946dd77ae96Smrg  fi
4947dd77ae96Smrgdone
4948dd77ae96Smrgdone
4949dd77ae96SmrgIFS=$as_save_IFS
4950dd77ae96Smrg
4951dd77ae96Smrg  ;;
4952dd77ae96Smrgesac
4953dd77ae96Smrgfi
4954dd77ae96SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
4955dd77ae96Smrgif test -n "$PKG_CONFIG"; then
4956dd77ae96Smrg  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4957dd77ae96Smrg$as_echo "$PKG_CONFIG" >&6; }
4958dd77ae96Smrgelse
4959dd77ae96Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
4960dd77ae96Smrg$as_echo "no" >&6; }
4961dd77ae96Smrgfi
4962dd77ae96Smrg
4963dd77ae96Smrg
4964dd77ae96Smrgfi
4965dd77ae96Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
4966dd77ae96Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
4967dd77ae96Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
4968dd77ae96Smrgset dummy pkg-config; ac_word=$2
4969dd77ae96Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4970dd77ae96Smrg$as_echo_n "checking for $ac_word... " >&6; }
4971dd77ae96Smrgif test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4972dd77ae96Smrg  $as_echo_n "(cached) " >&6
4973dd77ae96Smrgelse
4974dd77ae96Smrg  case $ac_pt_PKG_CONFIG in
4975dd77ae96Smrg  [\\/]* | ?:[\\/]*)
4976dd77ae96Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4977dd77ae96Smrg  ;;
4978dd77ae96Smrg  *)
4979dd77ae96Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980dd77ae96Smrgfor as_dir in $PATH
4981dd77ae96Smrgdo
4982dd77ae96Smrg  IFS=$as_save_IFS
4983dd77ae96Smrg  test -z "$as_dir" && as_dir=.
4984dd77ae96Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
4985dd77ae96Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4986dd77ae96Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4987dd77ae96Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4988dd77ae96Smrg    break 2
4989dd77ae96Smrg  fi
4990dd77ae96Smrgdone
4991dd77ae96Smrgdone
4992dd77ae96SmrgIFS=$as_save_IFS
499372b4363aSmrg
4994dd77ae96Smrg  ;;
4995dd77ae96Smrgesac
499672b4363aSmrgfi
4997dd77ae96Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4998dd77ae96Smrgif test -n "$ac_pt_PKG_CONFIG"; then
4999dd77ae96Smrg  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5000dd77ae96Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5001dd77ae96Smrgelse
5002dd77ae96Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
5003dd77ae96Smrg$as_echo "no" >&6; }
500472b4363aSmrgfi
500572b4363aSmrg
5006dd77ae96Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
5007dd77ae96Smrg    PKG_CONFIG=""
5008dd77ae96Smrg  else
5009dd77ae96Smrg    case $cross_compiling:$ac_tool_warned in
5010dd77ae96Smrgyes:)
5011dd77ae96Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5012dd77ae96Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5013dd77ae96Smrgac_tool_warned=yes ;;
5014dd77ae96Smrgesac
5015dd77ae96Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
5016dd77ae96Smrg  fi
5017dd77ae96Smrgelse
5018dd77ae96Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
501972b4363aSmrgfi
502072b4363aSmrg
502172b4363aSmrgfi
5022dd77ae96Smrgif test -n "$PKG_CONFIG"; then
5023dd77ae96Smrg	_pkg_min_version=0.9.0
5024dd77ae96Smrg	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5025dd77ae96Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5026dd77ae96Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5027dd77ae96Smrg		{ $as_echo "$as_me:$LINENO: result: yes" >&5
5028dd77ae96Smrg$as_echo "yes" >&6; }
5029dd77ae96Smrg	else
5030dd77ae96Smrg		{ $as_echo "$as_me:$LINENO: result: no" >&5
5031dd77ae96Smrg$as_echo "no" >&6; }
5032dd77ae96Smrg		PKG_CONFIG=""
5033dd77ae96Smrg	fi
503472b4363aSmrg
503572b4363aSmrgfi
503672b4363aSmrg
5037dd77ae96Smrgpkg_failed=no
5038dd77ae96Smrg{ $as_echo "$as_me:$LINENO: checking for XGAMMA" >&5
5039dd77ae96Smrg$as_echo_n "checking for XGAMMA... " >&6; }
5040dd77ae96Smrg
5041dd77ae96Smrgif test -n "$XGAMMA_CFLAGS"; then
5042dd77ae96Smrg    pkg_cv_XGAMMA_CFLAGS="$XGAMMA_CFLAGS"
5043dd77ae96Smrg elif test -n "$PKG_CONFIG"; then
5044dd77ae96Smrg    if test -n "$PKG_CONFIG" && \
5045dd77ae96Smrg    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xxf86vm\"") >&5
5046dd77ae96Smrg  ($PKG_CONFIG --exists --print-errors "x11 xxf86vm") 2>&5
5047dd77ae96Smrg  ac_status=$?
5048dd77ae96Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049dd77ae96Smrg  (exit $ac_status); }; then
5050dd77ae96Smrg  pkg_cv_XGAMMA_CFLAGS=`$PKG_CONFIG --cflags "x11 xxf86vm" 2>/dev/null`
5051dd77ae96Smrgelse
5052dd77ae96Smrg  pkg_failed=yes
505372b4363aSmrgfi
5054dd77ae96Smrg else
5055dd77ae96Smrg    pkg_failed=untried
505672b4363aSmrgfi
5057dd77ae96Smrgif test -n "$XGAMMA_LIBS"; then
5058dd77ae96Smrg    pkg_cv_XGAMMA_LIBS="$XGAMMA_LIBS"
5059dd77ae96Smrg elif test -n "$PKG_CONFIG"; then
5060dd77ae96Smrg    if test -n "$PKG_CONFIG" && \
5061dd77ae96Smrg    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xxf86vm\"") >&5
5062dd77ae96Smrg  ($PKG_CONFIG --exists --print-errors "x11 xxf86vm") 2>&5
5063dd77ae96Smrg  ac_status=$?
5064dd77ae96Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065dd77ae96Smrg  (exit $ac_status); }; then
5066dd77ae96Smrg  pkg_cv_XGAMMA_LIBS=`$PKG_CONFIG --libs "x11 xxf86vm" 2>/dev/null`
5067dd77ae96Smrgelse
5068dd77ae96Smrg  pkg_failed=yes
506972b4363aSmrgfi
5070dd77ae96Smrg else
5071dd77ae96Smrg    pkg_failed=untried
507272b4363aSmrgfi
507372b4363aSmrg
507472b4363aSmrg
507572b4363aSmrg
5076dd77ae96Smrgif test $pkg_failed = yes; then
507772b4363aSmrg
5078dd77ae96Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5079dd77ae96Smrg        _pkg_short_errors_supported=yes
5080dd77ae96Smrgelse
5081dd77ae96Smrg        _pkg_short_errors_supported=no
5082dd77ae96Smrgfi
5083dd77ae96Smrg        if test $_pkg_short_errors_supported = yes; then
5084dd77ae96Smrg	        XGAMMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xxf86vm" 2>&1`
5085dd77ae96Smrg        else
5086dd77ae96Smrg	        XGAMMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xxf86vm" 2>&1`
5087dd77ae96Smrg        fi
5088dd77ae96Smrg	# Put the nasty error message in config.log where it belongs
5089dd77ae96Smrg	echo "$XGAMMA_PKG_ERRORS" >&5
509072b4363aSmrg
5091dd77ae96Smrg	{ { $as_echo "$as_me:$LINENO: error: Package requirements (x11 xxf86vm) were not met:
509272b4363aSmrg
5093dd77ae96Smrg$XGAMMA_PKG_ERRORS
509472b4363aSmrg
5095dd77ae96SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
5096dd77ae96Smrginstalled software in a non-standard prefix.
509772b4363aSmrg
5098dd77ae96SmrgAlternatively, you may set the environment variables XGAMMA_CFLAGS
5099dd77ae96Smrgand XGAMMA_LIBS to avoid the need to call pkg-config.
5100dd77ae96SmrgSee the pkg-config man page for more details.
5101dd77ae96Smrg" >&5
5102dd77ae96Smrg$as_echo "$as_me: error: Package requirements (x11 xxf86vm) were not met:
510372b4363aSmrg
5104dd77ae96Smrg$XGAMMA_PKG_ERRORS
510572b4363aSmrg
5106dd77ae96SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
5107dd77ae96Smrginstalled software in a non-standard prefix.
510872b4363aSmrg
5109dd77ae96SmrgAlternatively, you may set the environment variables XGAMMA_CFLAGS
5110dd77ae96Smrgand XGAMMA_LIBS to avoid the need to call pkg-config.
5111dd77ae96SmrgSee the pkg-config man page for more details.
5112dd77ae96Smrg" >&2;}
5113dd77ae96Smrg   { (exit 1); exit 1; }; }
5114dd77ae96Smrgelif test $pkg_failed = untried; then
5115dd77ae96Smrg	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5116dd77ae96Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5117dd77ae96Smrg{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
5118dd77ae96Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
5119dd77ae96Smrgpath to pkg-config.
512072b4363aSmrg
5121dd77ae96SmrgAlternatively, you may set the environment variables XGAMMA_CFLAGS
5122dd77ae96Smrgand XGAMMA_LIBS to avoid the need to call pkg-config.
5123dd77ae96SmrgSee the pkg-config man page for more details.
512472b4363aSmrg
5125dd77ae96SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
5126dd77ae96SmrgSee \`config.log' for more details." >&5
5127dd77ae96Smrg$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
5128dd77ae96Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
5129dd77ae96Smrgpath to pkg-config.
513072b4363aSmrg
5131dd77ae96SmrgAlternatively, you may set the environment variables XGAMMA_CFLAGS
5132dd77ae96Smrgand XGAMMA_LIBS to avoid the need to call pkg-config.
5133dd77ae96SmrgSee the pkg-config man page for more details.
513472b4363aSmrg
5135dd77ae96SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
5136dd77ae96SmrgSee \`config.log' for more details." >&2;}
5137dd77ae96Smrg   { (exit 1); exit 1; }; }; }
513872b4363aSmrgelse
5139dd77ae96Smrg	XGAMMA_CFLAGS=$pkg_cv_XGAMMA_CFLAGS
5140dd77ae96Smrg	XGAMMA_LIBS=$pkg_cv_XGAMMA_LIBS
5141dd77ae96Smrg        { $as_echo "$as_me:$LINENO: result: yes" >&5
5142dd77ae96Smrg$as_echo "yes" >&6; }
5143dd77ae96Smrg	:
514472b4363aSmrgfi
514572b4363aSmrg
514672b4363aSmrg
514772b4363aSmrg
514872b4363aSmrgac_config_files="$ac_config_files Makefile"
514972b4363aSmrg
515072b4363aSmrgcat >confcache <<\_ACEOF
515172b4363aSmrg# This file is a shell script that caches the results of configure
515272b4363aSmrg# tests run on this system so they can be shared between configure
515372b4363aSmrg# scripts and configure runs, see configure's option --config-cache.
515472b4363aSmrg# It is not useful on other systems.  If it contains results you don't
515572b4363aSmrg# want to keep, you may remove or edit it.
515672b4363aSmrg#
515772b4363aSmrg# config.status only pays attention to the cache file if you give it
515872b4363aSmrg# the --recheck option to rerun configure.
515972b4363aSmrg#
516072b4363aSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
516172b4363aSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
516272b4363aSmrg# following values.
516372b4363aSmrg
516472b4363aSmrg_ACEOF
516572b4363aSmrg
516672b4363aSmrg# The following way of writing the cache mishandles newlines in values,
516772b4363aSmrg# but we know of no workaround that is simple, portable, and efficient.
516872b4363aSmrg# So, we kill variables containing newlines.
516972b4363aSmrg# Ultrix sh set writes to stderr and can't be redirected directly,
517072b4363aSmrg# and sets the high bit in the cache file unless we assign to the vars.
517172b4363aSmrg(
517272b4363aSmrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
517372b4363aSmrg    eval ac_val=\$$ac_var
517472b4363aSmrg    case $ac_val in #(
517572b4363aSmrg    *${as_nl}*)
517672b4363aSmrg      case $ac_var in #(
5177dd77ae96Smrg      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
5178dd77ae96Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
517972b4363aSmrg      esac
518072b4363aSmrg      case $ac_var in #(
518172b4363aSmrg      _ | IFS | as_nl) ;; #(
5182dd77ae96Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
518372b4363aSmrg      *) $as_unset $ac_var ;;
518472b4363aSmrg      esac ;;
518572b4363aSmrg    esac
518672b4363aSmrg  done
518772b4363aSmrg
518872b4363aSmrg  (set) 2>&1 |
518972b4363aSmrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
519072b4363aSmrg    *${as_nl}ac_space=\ *)
519172b4363aSmrg      # `set' does not quote correctly, so add quotes (double-quote
519272b4363aSmrg      # substitution turns \\\\ into \\, and sed turns \\ into \).
519372b4363aSmrg      sed -n \
519472b4363aSmrg	"s/'/'\\\\''/g;
519572b4363aSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
519672b4363aSmrg      ;; #(
519772b4363aSmrg    *)
519872b4363aSmrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
519972b4363aSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
520072b4363aSmrg      ;;
520172b4363aSmrg    esac |
520272b4363aSmrg    sort
520372b4363aSmrg) |
520472b4363aSmrg  sed '
520572b4363aSmrg     /^ac_cv_env_/b end
520672b4363aSmrg     t clear
520772b4363aSmrg     :clear
520872b4363aSmrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
520972b4363aSmrg     t end
521072b4363aSmrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
521172b4363aSmrg     :end' >>confcache
521272b4363aSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
521372b4363aSmrg  if test -w "$cache_file"; then
521472b4363aSmrg    test "x$cache_file" != "x/dev/null" &&
5215dd77ae96Smrg      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
5216dd77ae96Smrg$as_echo "$as_me: updating cache $cache_file" >&6;}
521772b4363aSmrg    cat confcache >$cache_file
521872b4363aSmrg  else
5219dd77ae96Smrg    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5220dd77ae96Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
522172b4363aSmrg  fi
522272b4363aSmrgfi
522372b4363aSmrgrm -f confcache
522472b4363aSmrg
522572b4363aSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
522672b4363aSmrg# Let make expand exec_prefix.
522772b4363aSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
522872b4363aSmrg
522972b4363aSmrgDEFS=-DHAVE_CONFIG_H
523072b4363aSmrg
523172b4363aSmrgac_libobjs=
523272b4363aSmrgac_ltlibobjs=
523372b4363aSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
523472b4363aSmrg  # 1. Remove the extension, and $U if already installed.
523572b4363aSmrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5236dd77ae96Smrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
523772b4363aSmrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
523872b4363aSmrg  #    will be set to the directory where LIBOBJS objects are built.
523972b4363aSmrg  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
524072b4363aSmrg  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
524172b4363aSmrgdone
524272b4363aSmrgLIBOBJS=$ac_libobjs
524372b4363aSmrg
524472b4363aSmrgLTLIBOBJS=$ac_ltlibobjs
524572b4363aSmrg
524672b4363aSmrg
5247dd77ae96Smrg if test -n "$EXEEXT"; then
5248dd77ae96Smrg  am__EXEEXT_TRUE=
5249dd77ae96Smrg  am__EXEEXT_FALSE='#'
5250dd77ae96Smrgelse
5251dd77ae96Smrg  am__EXEEXT_TRUE='#'
5252dd77ae96Smrg  am__EXEEXT_FALSE=
5253dd77ae96Smrgfi
5254dd77ae96Smrg
525572b4363aSmrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5256dd77ae96Smrg  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
525772b4363aSmrgUsually this means the macro was only invoked conditionally." >&5
5258dd77ae96Smrg$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
525972b4363aSmrgUsually this means the macro was only invoked conditionally." >&2;}
526072b4363aSmrg   { (exit 1); exit 1; }; }
526172b4363aSmrgfi
526272b4363aSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5263dd77ae96Smrg  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
526472b4363aSmrgUsually this means the macro was only invoked conditionally." >&5
5265dd77ae96Smrg$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
526672b4363aSmrgUsually this means the macro was only invoked conditionally." >&2;}
526772b4363aSmrg   { (exit 1); exit 1; }; }
526872b4363aSmrgfi
526972b4363aSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5270dd77ae96Smrg  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
527172b4363aSmrgUsually this means the macro was only invoked conditionally." >&5
5272dd77ae96Smrg$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
527372b4363aSmrgUsually this means the macro was only invoked conditionally." >&2;}
527472b4363aSmrg   { (exit 1); exit 1; }; }
527572b4363aSmrgfi
527672b4363aSmrg
527772b4363aSmrg: ${CONFIG_STATUS=./config.status}
5278dd77ae96Smrgac_write_fail=0
527972b4363aSmrgac_clean_files_save=$ac_clean_files
528072b4363aSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
5281dd77ae96Smrg{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5282dd77ae96Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5283dd77ae96Smrgcat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
528472b4363aSmrg#! $SHELL
528572b4363aSmrg# Generated by $as_me.
528672b4363aSmrg# Run this file to recreate the current configuration.
528772b4363aSmrg# Compiler output produced by configure, useful for debugging
528872b4363aSmrg# configure, is in config.log if it exists.
528972b4363aSmrg
529072b4363aSmrgdebug=false
529172b4363aSmrgac_cs_recheck=false
529272b4363aSmrgac_cs_silent=false
529372b4363aSmrgSHELL=\${CONFIG_SHELL-$SHELL}
529472b4363aSmrg_ACEOF
529572b4363aSmrg
5296dd77ae96Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
529772b4363aSmrg## --------------------- ##
529872b4363aSmrg## M4sh Initialization.  ##
529972b4363aSmrg## --------------------- ##
530072b4363aSmrg
530172b4363aSmrg# Be more Bourne compatible
530272b4363aSmrgDUALCASE=1; export DUALCASE # for MKS sh
530372b4363aSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
530472b4363aSmrg  emulate sh
530572b4363aSmrg  NULLCMD=:
5306dd77ae96Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
530772b4363aSmrg  # is contrary to our usage.  Disable this feature.
530872b4363aSmrg  alias -g '${1+"$@"}'='"$@"'
530972b4363aSmrg  setopt NO_GLOB_SUBST
531072b4363aSmrgelse
531172b4363aSmrg  case `(set -o) 2>/dev/null` in
531272b4363aSmrg  *posix*) set -o posix ;;
531372b4363aSmrgesac
531472b4363aSmrg
531572b4363aSmrgfi
531672b4363aSmrg
531772b4363aSmrg
531872b4363aSmrg
531972b4363aSmrg
532072b4363aSmrg# PATH needs CR
532172b4363aSmrg# Avoid depending upon Character Ranges.
532272b4363aSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
532372b4363aSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
532472b4363aSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
532572b4363aSmrgas_cr_digits='0123456789'
532672b4363aSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
532772b4363aSmrg
5328dd77ae96Smrgas_nl='
5329dd77ae96Smrg'
5330dd77ae96Smrgexport as_nl
5331dd77ae96Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
5332dd77ae96Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5333dd77ae96Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5334dd77ae96Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5335dd77ae96Smrgif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5336dd77ae96Smrg  as_echo='printf %s\n'
5337dd77ae96Smrg  as_echo_n='printf %s'
5338dd77ae96Smrgelse
5339dd77ae96Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5340dd77ae96Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5341dd77ae96Smrg    as_echo_n='/usr/ucb/echo -n'
534272b4363aSmrg  else
5343dd77ae96Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5344dd77ae96Smrg    as_echo_n_body='eval
5345dd77ae96Smrg      arg=$1;
5346dd77ae96Smrg      case $arg in
5347dd77ae96Smrg      *"$as_nl"*)
5348dd77ae96Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
5349dd77ae96Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5350dd77ae96Smrg      esac;
5351dd77ae96Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5352dd77ae96Smrg    '
5353dd77ae96Smrg    export as_echo_n_body
5354dd77ae96Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
535572b4363aSmrg  fi
5356dd77ae96Smrg  export as_echo_body
5357dd77ae96Smrg  as_echo='sh -c $as_echo_body as_echo'
5358dd77ae96Smrgfi
5359dd77ae96Smrg
5360dd77ae96Smrg# The user is always right.
5361dd77ae96Smrgif test "${PATH_SEPARATOR+set}" != set; then
5362dd77ae96Smrg  PATH_SEPARATOR=:
5363dd77ae96Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5364dd77ae96Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5365dd77ae96Smrg      PATH_SEPARATOR=';'
5366dd77ae96Smrg  }
536772b4363aSmrgfi
536872b4363aSmrg
536972b4363aSmrg# Support unset when possible.
537072b4363aSmrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
537172b4363aSmrg  as_unset=unset
537272b4363aSmrgelse
537372b4363aSmrg  as_unset=false
537472b4363aSmrgfi
537572b4363aSmrg
537672b4363aSmrg
537772b4363aSmrg# IFS
537872b4363aSmrg# We need space, tab and new line, in precisely that order.  Quoting is
537972b4363aSmrg# there to prevent editors from complaining about space-tab.
538072b4363aSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
538172b4363aSmrg# splitting by setting IFS to empty value.)
538272b4363aSmrgIFS=" ""	$as_nl"
538372b4363aSmrg
538472b4363aSmrg# Find who we are.  Look in the path if we contain no directory separator.
538572b4363aSmrgcase $0 in
538672b4363aSmrg  *[\\/]* ) as_myself=$0 ;;
538772b4363aSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
538872b4363aSmrgfor as_dir in $PATH
538972b4363aSmrgdo
539072b4363aSmrg  IFS=$as_save_IFS
539172b4363aSmrg  test -z "$as_dir" && as_dir=.
539272b4363aSmrg  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
539372b4363aSmrgdone
539472b4363aSmrgIFS=$as_save_IFS
539572b4363aSmrg
539672b4363aSmrg     ;;
539772b4363aSmrgesac
539872b4363aSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
539972b4363aSmrg# in which case we are not to be found in the path.
540072b4363aSmrgif test "x$as_myself" = x; then
540172b4363aSmrg  as_myself=$0
540272b4363aSmrgfi
540372b4363aSmrgif test ! -f "$as_myself"; then
5404dd77ae96Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
540572b4363aSmrg  { (exit 1); exit 1; }
540672b4363aSmrgfi
540772b4363aSmrg
540872b4363aSmrg# Work around bugs in pre-3.0 UWIN ksh.
540972b4363aSmrgfor as_var in ENV MAIL MAILPATH
541072b4363aSmrgdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
541172b4363aSmrgdone
541272b4363aSmrgPS1='$ '
541372b4363aSmrgPS2='> '
541472b4363aSmrgPS4='+ '
541572b4363aSmrg
541672b4363aSmrg# NLS nuisances.
5417dd77ae96SmrgLC_ALL=C
5418dd77ae96Smrgexport LC_ALL
5419dd77ae96SmrgLANGUAGE=C
5420dd77ae96Smrgexport LANGUAGE
542172b4363aSmrg
542272b4363aSmrg# Required to use basename.
542372b4363aSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
542472b4363aSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
542572b4363aSmrg  as_expr=expr
542672b4363aSmrgelse
542772b4363aSmrg  as_expr=false
542872b4363aSmrgfi
542972b4363aSmrg
543072b4363aSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
543172b4363aSmrg  as_basename=basename
543272b4363aSmrgelse
543372b4363aSmrg  as_basename=false
543472b4363aSmrgfi
543572b4363aSmrg
543672b4363aSmrg
543772b4363aSmrg# Name of the executable.
543872b4363aSmrgas_me=`$as_basename -- "$0" ||
543972b4363aSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
544072b4363aSmrg	 X"$0" : 'X\(//\)$' \| \
544172b4363aSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5442dd77ae96Smrg$as_echo X/"$0" |
544372b4363aSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
544472b4363aSmrg	    s//\1/
544572b4363aSmrg	    q
544672b4363aSmrg	  }
544772b4363aSmrg	  /^X\/\(\/\/\)$/{
544872b4363aSmrg	    s//\1/
544972b4363aSmrg	    q
545072b4363aSmrg	  }
545172b4363aSmrg	  /^X\/\(\/\).*/{
545272b4363aSmrg	    s//\1/
545372b4363aSmrg	    q
545472b4363aSmrg	  }
545572b4363aSmrg	  s/.*/./; q'`
545672b4363aSmrg
545772b4363aSmrg# CDPATH.
545872b4363aSmrg$as_unset CDPATH
545972b4363aSmrg
546072b4363aSmrg
546172b4363aSmrg
546272b4363aSmrg  as_lineno_1=$LINENO
546372b4363aSmrg  as_lineno_2=$LINENO
546472b4363aSmrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
546572b4363aSmrg  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
546672b4363aSmrg
546772b4363aSmrg  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
546872b4363aSmrg  # uniformly replaced by the line number.  The first 'sed' inserts a
546972b4363aSmrg  # line-number line after each line using $LINENO; the second 'sed'
547072b4363aSmrg  # does the real work.  The second script uses 'N' to pair each
547172b4363aSmrg  # line-number line with the line containing $LINENO, and appends
547272b4363aSmrg  # trailing '-' during substitution so that $LINENO is not a special
547372b4363aSmrg  # case at line end.
547472b4363aSmrg  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
547572b4363aSmrg  # scripts with optimization help from Paolo Bonzini.  Blame Lee
547672b4363aSmrg  # E. McMahon (1931-1989) for sed's syntax.  :-)
547772b4363aSmrg  sed -n '
547872b4363aSmrg    p
547972b4363aSmrg    /[$]LINENO/=
548072b4363aSmrg  ' <$as_myself |
548172b4363aSmrg    sed '
548272b4363aSmrg      s/[$]LINENO.*/&-/
548372b4363aSmrg      t lineno
548472b4363aSmrg      b
548572b4363aSmrg      :lineno
548672b4363aSmrg      N
548772b4363aSmrg      :loop
548872b4363aSmrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
548972b4363aSmrg      t loop
549072b4363aSmrg      s/-\n.*//
549172b4363aSmrg    ' >$as_me.lineno &&
549272b4363aSmrg  chmod +x "$as_me.lineno" ||
5493dd77ae96Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
549472b4363aSmrg   { (exit 1); exit 1; }; }
549572b4363aSmrg
549672b4363aSmrg  # Don't try to exec as it changes $[0], causing all sort of problems
549772b4363aSmrg  # (the dirname of $[0] is not the place where we might find the
549872b4363aSmrg  # original and so on.  Autoconf is especially sensitive to this).
549972b4363aSmrg  . "./$as_me.lineno"
550072b4363aSmrg  # Exit status is that of the last command.
550172b4363aSmrg  exit
550272b4363aSmrg}
550372b4363aSmrg
550472b4363aSmrg
550572b4363aSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
550672b4363aSmrg  as_dirname=dirname
550772b4363aSmrgelse
550872b4363aSmrg  as_dirname=false
550972b4363aSmrgfi
551072b4363aSmrg
551172b4363aSmrgECHO_C= ECHO_N= ECHO_T=
551272b4363aSmrgcase `echo -n x` in
551372b4363aSmrg-n*)
551472b4363aSmrg  case `echo 'x\c'` in
551572b4363aSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
551672b4363aSmrg  *)   ECHO_C='\c';;
551772b4363aSmrg  esac;;
551872b4363aSmrg*)
551972b4363aSmrg  ECHO_N='-n';;
552072b4363aSmrgesac
552172b4363aSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
552272b4363aSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
552372b4363aSmrg  as_expr=expr
552472b4363aSmrgelse
552572b4363aSmrg  as_expr=false
552672b4363aSmrgfi
552772b4363aSmrg
552872b4363aSmrgrm -f conf$$ conf$$.exe conf$$.file
552972b4363aSmrgif test -d conf$$.dir; then
553072b4363aSmrg  rm -f conf$$.dir/conf$$.file
553172b4363aSmrgelse
553272b4363aSmrg  rm -f conf$$.dir
5533dd77ae96Smrg  mkdir conf$$.dir 2>/dev/null
5534dd77ae96Smrgfi
5535dd77ae96Smrgif (echo >conf$$.file) 2>/dev/null; then
5536dd77ae96Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
5537dd77ae96Smrg    as_ln_s='ln -s'
5538dd77ae96Smrg    # ... but there are two gotchas:
5539dd77ae96Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5540dd77ae96Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5541dd77ae96Smrg    # In both cases, we have to default to `cp -p'.
5542dd77ae96Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5543dd77ae96Smrg      as_ln_s='cp -p'
5544dd77ae96Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
5545dd77ae96Smrg    as_ln_s=ln
5546dd77ae96Smrg  else
554772b4363aSmrg    as_ln_s='cp -p'
5548dd77ae96Smrg  fi
554972b4363aSmrgelse
555072b4363aSmrg  as_ln_s='cp -p'
555172b4363aSmrgfi
555272b4363aSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
555372b4363aSmrgrmdir conf$$.dir 2>/dev/null
555472b4363aSmrg
555572b4363aSmrgif mkdir -p . 2>/dev/null; then
555672b4363aSmrg  as_mkdir_p=:
555772b4363aSmrgelse
555872b4363aSmrg  test -d ./-p && rmdir ./-p
555972b4363aSmrg  as_mkdir_p=false
556072b4363aSmrgfi
556172b4363aSmrg
556272b4363aSmrgif test -x / >/dev/null 2>&1; then
556372b4363aSmrg  as_test_x='test -x'
556472b4363aSmrgelse
556572b4363aSmrg  if ls -dL / >/dev/null 2>&1; then
556672b4363aSmrg    as_ls_L_option=L
556772b4363aSmrg  else
556872b4363aSmrg    as_ls_L_option=
556972b4363aSmrg  fi
557072b4363aSmrg  as_test_x='
557172b4363aSmrg    eval sh -c '\''
557272b4363aSmrg      if test -d "$1"; then
5573dd77ae96Smrg	test -d "$1/.";
557472b4363aSmrg      else
557572b4363aSmrg	case $1 in
5576dd77ae96Smrg	-*)set "./$1";;
557772b4363aSmrg	esac;
557872b4363aSmrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
557972b4363aSmrg	???[sx]*):;;*)false;;esac;fi
558072b4363aSmrg    '\'' sh
558172b4363aSmrg  '
558272b4363aSmrgfi
558372b4363aSmrgas_executable_p=$as_test_x
558472b4363aSmrg
558572b4363aSmrg# Sed expression to map a string onto a valid CPP name.
558672b4363aSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
558772b4363aSmrg
558872b4363aSmrg# Sed expression to map a string onto a valid variable name.
558972b4363aSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559072b4363aSmrg
559172b4363aSmrg
559272b4363aSmrgexec 6>&1
559372b4363aSmrg
559472b4363aSmrg# Save the log message, to keep $[0] and so on meaningful, and to
559572b4363aSmrg# report actual input values of CONFIG_FILES etc. instead of their
559672b4363aSmrg# values after options handling.
559772b4363aSmrgac_log="
5598dd77ae96SmrgThis file was extended by xgamma $as_me 1.0.3, which was
5599dd77ae96Smrggenerated by GNU Autoconf 2.63.  Invocation command line was
560072b4363aSmrg
560172b4363aSmrg  CONFIG_FILES    = $CONFIG_FILES
560272b4363aSmrg  CONFIG_HEADERS  = $CONFIG_HEADERS
560372b4363aSmrg  CONFIG_LINKS    = $CONFIG_LINKS
560472b4363aSmrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
560572b4363aSmrg  $ $0 $@
560672b4363aSmrg
560772b4363aSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
560872b4363aSmrg"
560972b4363aSmrg
561072b4363aSmrg_ACEOF
561172b4363aSmrg
5612dd77ae96Smrgcase $ac_config_files in *"
5613dd77ae96Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
5614dd77ae96Smrgesac
5615dd77ae96Smrg
5616dd77ae96Smrgcase $ac_config_headers in *"
5617dd77ae96Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5618dd77ae96Smrgesac
5619dd77ae96Smrg
5620dd77ae96Smrg
5621dd77ae96Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
562272b4363aSmrg# Files that config.status was made for.
562372b4363aSmrgconfig_files="$ac_config_files"
562472b4363aSmrgconfig_headers="$ac_config_headers"
562572b4363aSmrgconfig_commands="$ac_config_commands"
562672b4363aSmrg
562772b4363aSmrg_ACEOF
562872b4363aSmrg
5629dd77ae96Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
563072b4363aSmrgac_cs_usage="\
563172b4363aSmrg\`$as_me' instantiates files from templates according to the
563272b4363aSmrgcurrent configuration.
563372b4363aSmrg
5634dd77ae96SmrgUsage: $0 [OPTION]... [FILE]...
563572b4363aSmrg
563672b4363aSmrg  -h, --help       print this help, then exit
563772b4363aSmrg  -V, --version    print version number and configuration settings, then exit
5638dd77ae96Smrg  -q, --quiet, --silent
5639dd77ae96Smrg                   do not print progress messages
564072b4363aSmrg  -d, --debug      don't remove temporary files
564172b4363aSmrg      --recheck    update $as_me by reconfiguring in the same conditions
5642dd77ae96Smrg      --file=FILE[:TEMPLATE]
5643dd77ae96Smrg                   instantiate the configuration file FILE
5644dd77ae96Smrg      --header=FILE[:TEMPLATE]
5645dd77ae96Smrg                   instantiate the configuration header FILE
564672b4363aSmrg
564772b4363aSmrgConfiguration files:
564872b4363aSmrg$config_files
564972b4363aSmrg
565072b4363aSmrgConfiguration headers:
565172b4363aSmrg$config_headers
565272b4363aSmrg
565372b4363aSmrgConfiguration commands:
565472b4363aSmrg$config_commands
565572b4363aSmrg
565672b4363aSmrgReport bugs to <bug-autoconf@gnu.org>."
565772b4363aSmrg
565872b4363aSmrg_ACEOF
5659dd77ae96Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
566072b4363aSmrgac_cs_version="\\
5661dd77ae96Smrgxgamma config.status 1.0.3
5662dd77ae96Smrgconfigured by $0, generated by GNU Autoconf 2.63,
5663dd77ae96Smrg  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
566472b4363aSmrg
5665dd77ae96SmrgCopyright (C) 2008 Free Software Foundation, Inc.
566672b4363aSmrgThis config.status script is free software; the Free Software Foundation
566772b4363aSmrggives unlimited permission to copy, distribute and modify it."
566872b4363aSmrg
566972b4363aSmrgac_pwd='$ac_pwd'
567072b4363aSmrgsrcdir='$srcdir'
567172b4363aSmrgINSTALL='$INSTALL'
567272b4363aSmrgMKDIR_P='$MKDIR_P'
5673dd77ae96SmrgAWK='$AWK'
5674dd77ae96Smrgtest -n "\$AWK" || AWK=awk
567572b4363aSmrg_ACEOF
567672b4363aSmrg
5677dd77ae96Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5678dd77ae96Smrg# The default lists apply if the user does not specify any file.
567972b4363aSmrgac_need_defaults=:
568072b4363aSmrgwhile test $# != 0
568172b4363aSmrgdo
568272b4363aSmrg  case $1 in
568372b4363aSmrg  --*=*)
568472b4363aSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
568572b4363aSmrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
568672b4363aSmrg    ac_shift=:
568772b4363aSmrg    ;;
568872b4363aSmrg  *)
568972b4363aSmrg    ac_option=$1
569072b4363aSmrg    ac_optarg=$2
569172b4363aSmrg    ac_shift=shift
569272b4363aSmrg    ;;
569372b4363aSmrg  esac
569472b4363aSmrg
569572b4363aSmrg  case $ac_option in
569672b4363aSmrg  # Handling of the options.
569772b4363aSmrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
569872b4363aSmrg    ac_cs_recheck=: ;;
569972b4363aSmrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5700dd77ae96Smrg    $as_echo "$ac_cs_version"; exit ;;
570172b4363aSmrg  --debug | --debu | --deb | --de | --d | -d )
570272b4363aSmrg    debug=: ;;
570372b4363aSmrg  --file | --fil | --fi | --f )
570472b4363aSmrg    $ac_shift
5705dd77ae96Smrg    case $ac_optarg in
5706dd77ae96Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5707dd77ae96Smrg    esac
5708dd77ae96Smrg    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
570972b4363aSmrg    ac_need_defaults=false;;
571072b4363aSmrg  --header | --heade | --head | --hea )
571172b4363aSmrg    $ac_shift
5712dd77ae96Smrg    case $ac_optarg in
5713dd77ae96Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5714dd77ae96Smrg    esac
5715dd77ae96Smrg    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
571672b4363aSmrg    ac_need_defaults=false;;
571772b4363aSmrg  --he | --h)
571872b4363aSmrg    # Conflict between --help and --header
5719dd77ae96Smrg    { $as_echo "$as_me: error: ambiguous option: $1
572072b4363aSmrgTry \`$0 --help' for more information." >&2
572172b4363aSmrg   { (exit 1); exit 1; }; };;
572272b4363aSmrg  --help | --hel | -h )
5723dd77ae96Smrg    $as_echo "$ac_cs_usage"; exit ;;
572472b4363aSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
572572b4363aSmrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
572672b4363aSmrg    ac_cs_silent=: ;;
572772b4363aSmrg
572872b4363aSmrg  # This is an error.
5729dd77ae96Smrg  -*) { $as_echo "$as_me: error: unrecognized option: $1
573072b4363aSmrgTry \`$0 --help' for more information." >&2
573172b4363aSmrg   { (exit 1); exit 1; }; } ;;
573272b4363aSmrg
573372b4363aSmrg  *) ac_config_targets="$ac_config_targets $1"
573472b4363aSmrg     ac_need_defaults=false ;;
573572b4363aSmrg
573672b4363aSmrg  esac
573772b4363aSmrg  shift
573872b4363aSmrgdone
573972b4363aSmrg
574072b4363aSmrgac_configure_extra_args=
574172b4363aSmrg
574272b4363aSmrgif $ac_cs_silent; then
574372b4363aSmrg  exec 6>/dev/null
574472b4363aSmrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
574572b4363aSmrgfi
574672b4363aSmrg
574772b4363aSmrg_ACEOF
5748dd77ae96Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
574972b4363aSmrgif \$ac_cs_recheck; then
5750dd77ae96Smrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5751dd77ae96Smrg  shift
5752dd77ae96Smrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5753dd77ae96Smrg  CONFIG_SHELL='$SHELL'
575472b4363aSmrg  export CONFIG_SHELL
5755dd77ae96Smrg  exec "\$@"
575672b4363aSmrgfi
575772b4363aSmrg
575872b4363aSmrg_ACEOF
5759dd77ae96Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
576072b4363aSmrgexec 5>>config.log
576172b4363aSmrg{
576272b4363aSmrg  echo
576372b4363aSmrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
576472b4363aSmrg## Running $as_me. ##
576572b4363aSmrg_ASBOX
5766dd77ae96Smrg  $as_echo "$ac_log"
576772b4363aSmrg} >&5
576872b4363aSmrg
576972b4363aSmrg_ACEOF
5770dd77ae96Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
577172b4363aSmrg#
577272b4363aSmrg# INIT-COMMANDS
577372b4363aSmrg#
577472b4363aSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
577572b4363aSmrg
577672b4363aSmrg_ACEOF
577772b4363aSmrg
5778dd77ae96Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
577972b4363aSmrg
578072b4363aSmrg# Handling of arguments.
578172b4363aSmrgfor ac_config_target in $ac_config_targets
578272b4363aSmrgdo
578372b4363aSmrg  case $ac_config_target in
578472b4363aSmrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
578572b4363aSmrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
578672b4363aSmrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
578772b4363aSmrg
5788dd77ae96Smrg  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5789dd77ae96Smrg$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
579072b4363aSmrg   { (exit 1); exit 1; }; };;
579172b4363aSmrg  esac
579272b4363aSmrgdone
579372b4363aSmrg
579472b4363aSmrg
579572b4363aSmrg# If the user did not use the arguments to specify the items to instantiate,
579672b4363aSmrg# then the envvar interface is used.  Set only those that are not.
579772b4363aSmrg# We use the long form for the default assignment because of an extremely
579872b4363aSmrg# bizarre bug on SunOS 4.1.3.
579972b4363aSmrgif $ac_need_defaults; then
580072b4363aSmrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
580172b4363aSmrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
580272b4363aSmrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
580372b4363aSmrgfi
580472b4363aSmrg
580572b4363aSmrg# Have a temporary directory for convenience.  Make it in the build tree
580672b4363aSmrg# simply because there is no reason against having it here, and in addition,
580772b4363aSmrg# creating and moving files from /tmp can sometimes cause problems.
580872b4363aSmrg# Hook for its removal unless debugging.
580972b4363aSmrg# Note that there is a small window in which the directory will not be cleaned:
581072b4363aSmrg# after its creation but before its name has been assigned to `$tmp'.
581172b4363aSmrg$debug ||
581272b4363aSmrg{
581372b4363aSmrg  tmp=
581472b4363aSmrg  trap 'exit_status=$?
581572b4363aSmrg  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
581672b4363aSmrg' 0
581772b4363aSmrg  trap '{ (exit 1); exit 1; }' 1 2 13 15
581872b4363aSmrg}
581972b4363aSmrg# Create a (secure) tmp directory for tmp files.
582072b4363aSmrg
582172b4363aSmrg{
582272b4363aSmrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
582372b4363aSmrg  test -n "$tmp" && test -d "$tmp"
582472b4363aSmrg}  ||
582572b4363aSmrg{
582672b4363aSmrg  tmp=./conf$$-$RANDOM
582772b4363aSmrg  (umask 077 && mkdir "$tmp")
582872b4363aSmrg} ||
582972b4363aSmrg{
5830dd77ae96Smrg   $as_echo "$as_me: cannot create a temporary directory in ." >&2
583172b4363aSmrg   { (exit 1); exit 1; }
583272b4363aSmrg}
583372b4363aSmrg
5834dd77ae96Smrg# Set up the scripts for CONFIG_FILES section.
5835dd77ae96Smrg# No need to generate them if there are no CONFIG_FILES.
5836dd77ae96Smrg# This happens for instance with `./config.status config.h'.
583772b4363aSmrgif test -n "$CONFIG_FILES"; then
583872b4363aSmrg
583972b4363aSmrg
5840dd77ae96Smrgac_cr='
5841dd77ae96Smrg'
5842dd77ae96Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5843dd77ae96Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5844dd77ae96Smrg  ac_cs_awk_cr='\\r'
5845dd77ae96Smrgelse
584672b4363aSmrg  ac_cs_awk_cr=$ac_cr
584772b4363aSmrgfi
5848dd77ae96Smrg
584972b4363aSmrgecho 'BEGIN {' >"$tmp/subs1.awk" &&
585072b4363aSmrg_ACEOF
585172b4363aSmrg
5852dd77ae96Smrg
5853dd77ae96Smrg{
5854dd77ae96Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
5855dd77ae96Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5856dd77ae96Smrg  echo "_ACEOF"
5857dd77ae96Smrg} >conf$$subs.sh ||
5858dd77ae96Smrg  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5859dd77ae96Smrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5860dd77ae96Smrg   { (exit 1); exit 1; }; }
586172b4363aSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
586272b4363aSmrgac_delim='%!_!# '
5863dd77ae96Smrgfor ac_last_try in false false false false false :; do
5864dd77ae96Smrg  . ./conf$$subs.sh ||
5865dd77ae96Smrg    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5866dd77ae96Smrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
586772b4363aSmrg   { (exit 1); exit 1; }; }
5868dd77ae96Smrg
5869dd77ae96Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
587072b4363aSmrg  if test $ac_delim_n = $ac_delim_num; then
587172b4363aSmrg    break
5872dd77ae96Smrg  elif $ac_last_try; then
5873dd77ae96Smrg    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
587472b4363aSmrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
587572b4363aSmrg   { (exit 1); exit 1; }; }
587672b4363aSmrg  else
587772b4363aSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
587872b4363aSmrg  fi
5879dd77ae96Smrgdone
588072b4363aSmrgrm -f conf$$subs.sh
5881dd77ae96Smrg
5882dd77ae96Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5883dd77ae96Smrgcat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5884dd77ae96Smrg_ACEOF
5885dd77ae96Smrgsed -n '
5886dd77ae96Smrgh
5887dd77ae96Smrgs/^/S["/; s/!.*/"]=/
5888dd77ae96Smrgp
5889dd77ae96Smrgg
5890dd77ae96Smrgs/^[^!]*!//
5891dd77ae96Smrg:repl
5892dd77ae96Smrgt repl
5893dd77ae96Smrgs/'"$ac_delim"'$//
5894dd77ae96Smrgt delim
5895dd77ae96Smrg:nl
5896dd77ae96Smrgh
5897dd77ae96Smrgs/\(.\{148\}\).*/\1/
5898dd77ae96Smrgt more1
5899dd77ae96Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5900dd77ae96Smrgp
5901dd77ae96Smrgn
5902dd77ae96Smrgb repl
5903dd77ae96Smrg:more1
5904dd77ae96Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
5905dd77ae96Smrgp
5906dd77ae96Smrgg
5907dd77ae96Smrgs/.\{148\}//
5908dd77ae96Smrgt nl
5909dd77ae96Smrg:delim
5910dd77ae96Smrgh
5911dd77ae96Smrgs/\(.\{148\}\).*/\1/
5912dd77ae96Smrgt more2
5913dd77ae96Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
5914dd77ae96Smrgp
5915dd77ae96Smrgb
5916dd77ae96Smrg:more2
5917dd77ae96Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
5918dd77ae96Smrgp
5919dd77ae96Smrgg
5920dd77ae96Smrgs/.\{148\}//
5921dd77ae96Smrgt delim
5922dd77ae96Smrg' <conf$$subs.awk | sed '
5923dd77ae96Smrg/^[^""]/{
5924dd77ae96Smrg  N
5925dd77ae96Smrg  s/\n//
5926dd77ae96Smrg}
5927dd77ae96Smrg' >>$CONFIG_STATUS || ac_write_fail=1
5928dd77ae96Smrgrm -f conf$$subs.awk
5929dd77ae96Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5930dd77ae96Smrg_ACAWK
5931dd77ae96Smrgcat >>"\$tmp/subs1.awk" <<_ACAWK &&
5932dd77ae96Smrg  for (key in S) S_is_set[key] = 1
5933dd77ae96Smrg  FS = ""
5934dd77ae96Smrg
5935dd77ae96Smrg}
5936dd77ae96Smrg{
5937dd77ae96Smrg  line = $ 0
5938dd77ae96Smrg  nfields = split(line, field, "@")
5939dd77ae96Smrg  substed = 0
5940dd77ae96Smrg  len = length(field[1])
5941dd77ae96Smrg  for (i = 2; i < nfields; i++) {
5942dd77ae96Smrg    key = field[i]
5943dd77ae96Smrg    keylen = length(key)
5944dd77ae96Smrg    if (S_is_set[key]) {
5945dd77ae96Smrg      value = S[key]
5946dd77ae96Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5947dd77ae96Smrg      len += length(value) + length(field[++i])
5948dd77ae96Smrg      substed = 1
5949dd77ae96Smrg    } else
5950dd77ae96Smrg      len += 1 + keylen
5951dd77ae96Smrg  }
5952dd77ae96Smrg
5953dd77ae96Smrg  print line
595472b4363aSmrg}
5955dd77ae96Smrg
595672b4363aSmrg_ACAWK
5957dd77ae96Smrg_ACEOF
5958dd77ae96Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5959dd77ae96Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5960dd77ae96Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5961dd77ae96Smrgelse
5962dd77ae96Smrg  cat
5963dd77ae96Smrgfi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5964dd77ae96Smrg  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
5965dd77ae96Smrg$as_echo "$as_me: error: could not setup config files machinery" >&2;}
596672b4363aSmrg   { (exit 1); exit 1; }; }
596772b4363aSmrg_ACEOF
596872b4363aSmrg
596972b4363aSmrg# VPATH may cause trouble with some makes, so we remove $(srcdir),
597072b4363aSmrg# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
597172b4363aSmrg# trailing colons and then remove the whole line if VPATH becomes empty
597272b4363aSmrg# (actually we leave an empty line to preserve line numbers).
597372b4363aSmrgif test "x$srcdir" = x.; then
597472b4363aSmrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
597572b4363aSmrgs/:*\$(srcdir):*/:/
597672b4363aSmrgs/:*\${srcdir}:*/:/
597772b4363aSmrgs/:*@srcdir@:*/:/
597872b4363aSmrgs/^\([^=]*=[	 ]*\):*/\1/
597972b4363aSmrgs/:*$//
598072b4363aSmrgs/^[^=]*=[	 ]*$//
598172b4363aSmrg}'
598272b4363aSmrgfi
5983dd77ae96Smrg
598472b4363aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
598572b4363aSmrgfi # test -n "$CONFIG_FILES"
5986dd77ae96Smrg
5987dd77ae96Smrg# Set up the scripts for CONFIG_HEADERS section.
5988dd77ae96Smrg# No need to generate them if there are no CONFIG_HEADERS.
5989dd77ae96Smrg# This happens for instance with `./config.status Makefile'.
5990dd77ae96Smrgif test -n "$CONFIG_HEADERS"; then
5991dd77ae96Smrgcat >"$tmp/defines.awk" <<\_ACAWK ||
5992dd77ae96SmrgBEGIN {
5993dd77ae96Smrg_ACEOF
5994dd77ae96Smrg
5995dd77ae96Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
5996dd77ae96Smrg# here-document in config.status, that substitutes the proper values into
5997dd77ae96Smrg# config.h.in to produce config.h.
5998dd77ae96Smrg
5999dd77ae96Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
6000dd77ae96Smrg# handling of long lines.
6001dd77ae96Smrgac_delim='%!_!# '
6002dd77ae96Smrgfor ac_last_try in false false :; do
6003dd77ae96Smrg  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6004dd77ae96Smrg  if test -z "$ac_t"; then
6005dd77ae96Smrg    break
6006dd77ae96Smrg  elif $ac_last_try; then
6007dd77ae96Smrg    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
6008dd77ae96Smrg$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
6009dd77ae96Smrg   { (exit 1); exit 1; }; }
6010dd77ae96Smrg  else
6011dd77ae96Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6012dd77ae96Smrg  fi
6013dd77ae96Smrgdone
6014dd77ae96Smrg
6015dd77ae96Smrg# For the awk script, D is an array of macro values keyed by name,
6016dd77ae96Smrg# likewise P contains macro parameters if any.  Preserve backslash
6017dd77ae96Smrg# newline sequences.
6018dd77ae96Smrg
6019dd77ae96Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6020dd77ae96Smrgsed -n '
6021dd77ae96Smrgs/.\{148\}/&'"$ac_delim"'/g
6022dd77ae96Smrgt rset
6023dd77ae96Smrg:rset
6024dd77ae96Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
6025dd77ae96Smrgt def
6026dd77ae96Smrgd
6027dd77ae96Smrg:def
6028dd77ae96Smrgs/\\$//
6029dd77ae96Smrgt bsnl
6030dd77ae96Smrgs/["\\]/\\&/g
6031dd77ae96Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6032dd77ae96SmrgD["\1"]=" \3"/p
6033dd77ae96Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
6034dd77ae96Smrgd
6035dd77ae96Smrg:bsnl
6036dd77ae96Smrgs/["\\]/\\&/g
6037dd77ae96Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6038dd77ae96SmrgD["\1"]=" \3\\\\\\n"\\/p
6039dd77ae96Smrgt cont
6040dd77ae96Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6041dd77ae96Smrgt cont
6042dd77ae96Smrgd
6043dd77ae96Smrg:cont
6044dd77ae96Smrgn
6045dd77ae96Smrgs/.\{148\}/&'"$ac_delim"'/g
6046dd77ae96Smrgt clear
6047dd77ae96Smrg:clear
6048dd77ae96Smrgs/\\$//
6049dd77ae96Smrgt bsnlc
6050dd77ae96Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
6051dd77ae96Smrgd
6052dd77ae96Smrg:bsnlc
6053dd77ae96Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6054dd77ae96Smrgb cont
6055dd77ae96Smrg' <confdefs.h | sed '
6056dd77ae96Smrgs/'"$ac_delim"'/"\\\
6057dd77ae96Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
6058dd77ae96Smrg
6059dd77ae96Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6060dd77ae96Smrg  for (key in D) D_is_set[key] = 1
6061dd77ae96Smrg  FS = ""
6062dd77ae96Smrg}
6063dd77ae96Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6064dd77ae96Smrg  line = \$ 0
6065dd77ae96Smrg  split(line, arg, " ")
6066dd77ae96Smrg  if (arg[1] == "#") {
6067dd77ae96Smrg    defundef = arg[2]
6068dd77ae96Smrg    mac1 = arg[3]
6069dd77ae96Smrg  } else {
6070dd77ae96Smrg    defundef = substr(arg[1], 2)
6071dd77ae96Smrg    mac1 = arg[2]
6072dd77ae96Smrg  }
6073dd77ae96Smrg  split(mac1, mac2, "(") #)
6074dd77ae96Smrg  macro = mac2[1]
6075dd77ae96Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
6076dd77ae96Smrg  if (D_is_set[macro]) {
6077dd77ae96Smrg    # Preserve the white space surrounding the "#".
6078dd77ae96Smrg    print prefix "define", macro P[macro] D[macro]
6079dd77ae96Smrg    next
6080dd77ae96Smrg  } else {
6081dd77ae96Smrg    # Replace #undef with comments.  This is necessary, for example,
6082dd77ae96Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
6083dd77ae96Smrg    # on some systems where configure will not decide to define it.
6084dd77ae96Smrg    if (defundef == "undef") {
6085dd77ae96Smrg      print "/*", prefix defundef, macro, "*/"
6086dd77ae96Smrg      next
6087dd77ae96Smrg    }
6088dd77ae96Smrg  }
6089dd77ae96Smrg}
6090dd77ae96Smrg{ print }
6091dd77ae96Smrg_ACAWK
6092dd77ae96Smrg_ACEOF
6093dd77ae96Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6094dd77ae96Smrg  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
6095dd77ae96Smrg$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
6096dd77ae96Smrg   { (exit 1); exit 1; }; }
6097dd77ae96Smrgfi # test -n "$CONFIG_HEADERS"
609872b4363aSmrg
6099dd77ae96Smrg
6100dd77ae96Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
6101dd77ae96Smrgshift
610272b4363aSmrgfor ac_tag
610372b4363aSmrgdo
610472b4363aSmrg  case $ac_tag in
610572b4363aSmrg  :[FHLC]) ac_mode=$ac_tag; continue;;
610672b4363aSmrg  esac
610772b4363aSmrg  case $ac_mode$ac_tag in
6108dd77ae96Smrg  :[FHL]*:*);;
6109dd77ae96Smrg  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
611072b4363aSmrg$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
611172b4363aSmrg   { (exit 1); exit 1; }; };;
611272b4363aSmrg  :[FH]-) ac_tag=-:-;;
611372b4363aSmrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
611472b4363aSmrg  esac
611572b4363aSmrg  ac_save_IFS=$IFS
611672b4363aSmrg  IFS=:
611772b4363aSmrg  set x $ac_tag
611872b4363aSmrg  IFS=$ac_save_IFS
611972b4363aSmrg  shift
612072b4363aSmrg  ac_file=$1
612172b4363aSmrg  shift
612272b4363aSmrg
612372b4363aSmrg  case $ac_mode in
612472b4363aSmrg  :L) ac_source=$1;;
612572b4363aSmrg  :[FH])
612672b4363aSmrg    ac_file_inputs=
612772b4363aSmrg    for ac_f
612872b4363aSmrg    do
612972b4363aSmrg      case $ac_f in
613072b4363aSmrg      -) ac_f="$tmp/stdin";;
613172b4363aSmrg      *) # Look for the file first in the build tree, then in the source tree
613272b4363aSmrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
613372b4363aSmrg	 # because $ac_f cannot contain `:'.
613472b4363aSmrg	 test -f "$ac_f" ||
613572b4363aSmrg	   case $ac_f in
613672b4363aSmrg	   [\\/$]*) false;;
613772b4363aSmrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6138dd77ae96Smrg	   esac ||
6139dd77ae96Smrg	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
614072b4363aSmrg$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
614172b4363aSmrg   { (exit 1); exit 1; }; };;
6142dd77ae96Smrg      esac
6143dd77ae96Smrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
614472b4363aSmrg      ac_file_inputs="$ac_file_inputs '$ac_f'"
614572b4363aSmrg    done
614672b4363aSmrg
614772b4363aSmrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
614872b4363aSmrg    # use $as_me), people would be surprised to read:
6149dd77ae96Smrg    #    /* config.h.  Generated by config.status.  */
6150dd77ae96Smrg    configure_input='Generated from '`
6151dd77ae96Smrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
615272b4363aSmrg	`' by configure.'
615372b4363aSmrg    if test x"$ac_file" != x-; then
6154dd77ae96Smrg      configure_input="$ac_file.  $configure_input"
6155dd77ae96Smrg      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
615672b4363aSmrg$as_echo "$as_me: creating $ac_file" >&6;}
6157dd77ae96Smrg    fi
6158dd77ae96Smrg    # Neutralize special characters interpreted by sed in replacement strings.
6159dd77ae96Smrg    case $configure_input in #(
6160dd77ae96Smrg    *\&* | *\|* | *\\* )
6161dd77ae96Smrg       ac_sed_conf_input=`$as_echo "$configure_input" |
6162dd77ae96Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
6163dd77ae96Smrg    *) ac_sed_conf_input=$configure_input;;
616472b4363aSmrg    esac
616572b4363aSmrg
6166dd77ae96Smrg    case $ac_tag in
6167dd77ae96Smrg    *:-:* | *:-) cat >"$tmp/stdin" \
6168dd77ae96Smrg      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6169dd77ae96Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
617072b4363aSmrg   { (exit 1); exit 1; }; } ;;
617172b4363aSmrg    esac
617272b4363aSmrg    ;;
617372b4363aSmrg  esac
617472b4363aSmrg
617572b4363aSmrg  ac_dir=`$as_dirname -- "$ac_file" ||
617672b4363aSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
617772b4363aSmrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
617872b4363aSmrg	 X"$ac_file" : 'X\(//\)$' \| \
6179dd77ae96Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
618072b4363aSmrg$as_echo X"$ac_file" |
618172b4363aSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
618272b4363aSmrg	    s//\1/
618372b4363aSmrg	    q
618472b4363aSmrg	  }
618572b4363aSmrg	  /^X\(\/\/\)[^/].*/{
618672b4363aSmrg	    s//\1/
618772b4363aSmrg	    q
618872b4363aSmrg	  }
618972b4363aSmrg	  /^X\(\/\/\)$/{
619072b4363aSmrg	    s//\1/
619172b4363aSmrg	    q
619272b4363aSmrg	  }
619372b4363aSmrg	  /^X\(\/\).*/{
619472b4363aSmrg	    s//\1/
619572b4363aSmrg	    q
619672b4363aSmrg	  }
619772b4363aSmrg	  s/.*/./; q'`
619872b4363aSmrg  { as_dir="$ac_dir"
619972b4363aSmrg  case $as_dir in #(
620072b4363aSmrg  -*) as_dir=./$as_dir;;
620172b4363aSmrg  esac
620272b4363aSmrg  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
620372b4363aSmrg    as_dirs=
620472b4363aSmrg    while :; do
6205dd77ae96Smrg      case $as_dir in #(
620672b4363aSmrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
620772b4363aSmrg      *) as_qdir=$as_dir;;
620872b4363aSmrg      esac
620972b4363aSmrg      as_dirs="'$as_qdir' $as_dirs"
621072b4363aSmrg      as_dir=`$as_dirname -- "$as_dir" ||
621172b4363aSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
621272b4363aSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
621372b4363aSmrg	 X"$as_dir" : 'X\(//\)$' \| \
6214dd77ae96Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
621572b4363aSmrg$as_echo X"$as_dir" |
621672b4363aSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
621772b4363aSmrg	    s//\1/
621872b4363aSmrg	    q
621972b4363aSmrg	  }
622072b4363aSmrg	  /^X\(\/\/\)[^/].*/{
622172b4363aSmrg	    s//\1/
622272b4363aSmrg	    q
622372b4363aSmrg	  }
622472b4363aSmrg	  /^X\(\/\/\)$/{
622572b4363aSmrg	    s//\1/
622672b4363aSmrg	    q
622772b4363aSmrg	  }
622872b4363aSmrg	  /^X\(\/\).*/{
622972b4363aSmrg	    s//\1/
623072b4363aSmrg	    q
623172b4363aSmrg	  }
623272b4363aSmrg	  s/.*/./; q'`
623372b4363aSmrg      test -d "$as_dir" && break
623472b4363aSmrg    done
6235dd77ae96Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
6236dd77ae96Smrg  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
623772b4363aSmrg$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
623872b4363aSmrg   { (exit 1); exit 1; }; }; }
623972b4363aSmrg  ac_builddir=.
624072b4363aSmrg
624172b4363aSmrgcase "$ac_dir" in
624272b4363aSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6243dd77ae96Smrg*)
624472b4363aSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6245dd77ae96Smrg  # A ".." for each directory in $ac_dir_suffix.
624672b4363aSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
624772b4363aSmrg  case $ac_top_builddir_sub in
624872b4363aSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
624972b4363aSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
625072b4363aSmrg  esac ;;
625172b4363aSmrgesac
625272b4363aSmrgac_abs_top_builddir=$ac_pwd
625372b4363aSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
625472b4363aSmrg# for backward compatibility:
625572b4363aSmrgac_top_builddir=$ac_top_build_prefix
625672b4363aSmrg
625772b4363aSmrgcase $srcdir in
625872b4363aSmrg  .)  # We are building in place.
625972b4363aSmrg    ac_srcdir=.
626072b4363aSmrg    ac_top_srcdir=$ac_top_builddir_sub
626172b4363aSmrg    ac_abs_top_srcdir=$ac_pwd ;;
626272b4363aSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
626372b4363aSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
626472b4363aSmrg    ac_top_srcdir=$srcdir
626572b4363aSmrg    ac_abs_top_srcdir=$srcdir ;;
626672b4363aSmrg  *) # Relative name.
626772b4363aSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
626872b4363aSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
626972b4363aSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
627072b4363aSmrgesac
627172b4363aSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
627272b4363aSmrg
627372b4363aSmrg
627472b4363aSmrg  case $ac_mode in
627572b4363aSmrg  :F)
627672b4363aSmrg  #
627772b4363aSmrg  # CONFIG_FILE
627872b4363aSmrg  #
627972b4363aSmrg
628072b4363aSmrg  case $INSTALL in
628172b4363aSmrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
628272b4363aSmrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
628372b4363aSmrg  esac
628472b4363aSmrg  ac_MKDIR_P=$MKDIR_P
628572b4363aSmrg  case $MKDIR_P in
628672b4363aSmrg  [\\/$]* | ?:[\\/]* ) ;;
628772b4363aSmrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
628872b4363aSmrg  esac
628972b4363aSmrg_ACEOF
6290dd77ae96Smrg
629172b4363aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
629272b4363aSmrg# If the template does not know about datarootdir, expand it.
629372b4363aSmrg# FIXME: This hack should be removed a few years after 2.60.
629472b4363aSmrgac_datarootdir_hack=; ac_datarootdir_seen=
6295dd77ae96Smrg
6296dd77ae96Smrgac_sed_dataroot='
629772b4363aSmrg/datarootdir/ {
629872b4363aSmrg  p
629972b4363aSmrg  q
630072b4363aSmrg}
630172b4363aSmrg/@datadir@/p
630272b4363aSmrg/@docdir@/p
630372b4363aSmrg/@infodir@/p
630472b4363aSmrg/@localedir@/p
6305dd77ae96Smrg/@mandir@/p
6306dd77ae96Smrg'
630772b4363aSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
630872b4363aSmrg*datarootdir*) ac_datarootdir_seen=yes;;
6309dd77ae96Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6310dd77ae96Smrg  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
631172b4363aSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6312dd77ae96Smrg_ACEOF
631372b4363aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
631472b4363aSmrg  ac_datarootdir_hack='
631572b4363aSmrg  s&@datadir@&$datadir&g
631672b4363aSmrg  s&@docdir@&$docdir&g
631772b4363aSmrg  s&@infodir@&$infodir&g
631872b4363aSmrg  s&@localedir@&$localedir&g
631972b4363aSmrg  s&@mandir@&$mandir&g
632072b4363aSmrg    s&\\\${datarootdir}&$datarootdir&g' ;;
632172b4363aSmrgesac
632272b4363aSmrg_ACEOF
632372b4363aSmrg
632472b4363aSmrg# Neutralize VPATH when `$srcdir' = `.'.
632572b4363aSmrg# Shell code in configure.ac might set extrasub.
6326dd77ae96Smrg# FIXME: do we really want to maintain this feature?
6327dd77ae96Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
632872b4363aSmrgac_sed_extra="$ac_vpsub
632972b4363aSmrg$extrasub
6330dd77ae96Smrg_ACEOF
633172b4363aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
633272b4363aSmrg:t
6333dd77ae96Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
633472b4363aSmrgs|@configure_input@|$ac_sed_conf_input|;t t
6335dd77ae96Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
633672b4363aSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
633772b4363aSmrgs&@srcdir@&$ac_srcdir&;t t
633872b4363aSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
633972b4363aSmrgs&@top_srcdir@&$ac_top_srcdir&;t t
634072b4363aSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
634172b4363aSmrgs&@builddir@&$ac_builddir&;t t
634272b4363aSmrgs&@abs_builddir@&$ac_abs_builddir&;t t
634372b4363aSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
634472b4363aSmrgs&@INSTALL@&$ac_INSTALL&;t t
634572b4363aSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
6346dd77ae96Smrg$ac_datarootdir_hack
6347dd77ae96Smrg"
6348dd77ae96Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6349dd77ae96Smrg  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6350dd77ae96Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
635172b4363aSmrg   { (exit 1); exit 1; }; }
635272b4363aSmrg
635372b4363aSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
635472b4363aSmrg  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6355dd77ae96Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
635672b4363aSmrg  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6357dd77ae96Smrgwhich seems to be undefined.  Please make sure it is defined." >&5
635872b4363aSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
635972b4363aSmrgwhich seems to be undefined.  Please make sure it is defined." >&2;}
636072b4363aSmrg
636172b4363aSmrg  rm -f "$tmp/stdin"
6362dd77ae96Smrg  case $ac_file in
6363dd77ae96Smrg  -) cat "$tmp/out" && rm -f "$tmp/out";;
6364dd77ae96Smrg  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6365dd77ae96Smrg  esac \
6366dd77ae96Smrg  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6367dd77ae96Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
636872b4363aSmrg   { (exit 1); exit 1; }; }
636972b4363aSmrg ;;
637072b4363aSmrg  :H)
637172b4363aSmrg  #
637272b4363aSmrg  # CONFIG_HEADER
637372b4363aSmrg  #
6374dd77ae96Smrg  if test x"$ac_file" != x-; then
6375dd77ae96Smrg    {
6376dd77ae96Smrg      $as_echo "/* $configure_input  */" \
6377dd77ae96Smrg      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6378dd77ae96Smrg    } >"$tmp/config.h" \
6379dd77ae96Smrg      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6380dd77ae96Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
6381dd77ae96Smrg   { (exit 1); exit 1; }; }
6382dd77ae96Smrg    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6383dd77ae96Smrg      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
638472b4363aSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
6385dd77ae96Smrg    else
6386dd77ae96Smrg      rm -f "$ac_file"
6387dd77ae96Smrg      mv "$tmp/config.h" "$ac_file" \
6388dd77ae96Smrg	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6389dd77ae96Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
639072b4363aSmrg   { (exit 1); exit 1; }; }
639172b4363aSmrg    fi
6392dd77ae96Smrg  else
6393dd77ae96Smrg    $as_echo "/* $configure_input  */" \
6394dd77ae96Smrg      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6395dd77ae96Smrg      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
6396dd77ae96Smrg$as_echo "$as_me: error: could not create -" >&2;}
639772b4363aSmrg   { (exit 1); exit 1; }; }
6398dd77ae96Smrg  fi
6399dd77ae96Smrg# Compute "$ac_file"'s index in $config_headers.
640072b4363aSmrg_am_arg="$ac_file"
640172b4363aSmrg_am_stamp_count=1
640272b4363aSmrgfor _am_header in $config_headers :; do
6403dd77ae96Smrg  case $_am_header in
640472b4363aSmrg    $_am_arg | $_am_arg:* )
640572b4363aSmrg      break ;;
640672b4363aSmrg    * )
640772b4363aSmrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
640872b4363aSmrg  esac
6409dd77ae96Smrgdone
6410dd77ae96Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6411dd77ae96Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6412dd77ae96Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
6413dd77ae96Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
6414dd77ae96Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
641572b4363aSmrg$as_echo X"$_am_arg" |
641672b4363aSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
641772b4363aSmrg	    s//\1/
641872b4363aSmrg	    q
641972b4363aSmrg	  }
642072b4363aSmrg	  /^X\(\/\/\)[^/].*/{
642172b4363aSmrg	    s//\1/
642272b4363aSmrg	    q
642372b4363aSmrg	  }
642472b4363aSmrg	  /^X\(\/\/\)$/{
642572b4363aSmrg	    s//\1/
642672b4363aSmrg	    q
642772b4363aSmrg	  }
642872b4363aSmrg	  /^X\(\/\).*/{
642972b4363aSmrg	    s//\1/
643072b4363aSmrg	    q
643172b4363aSmrg	  }
643272b4363aSmrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
643372b4363aSmrg ;;
6434dd77ae96Smrg
6435dd77ae96Smrg  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
643672b4363aSmrg$as_echo "$as_me: executing $ac_file commands" >&6;}
643772b4363aSmrg ;;
643872b4363aSmrg  esac
643972b4363aSmrg
644072b4363aSmrg
6441dd77ae96Smrg  case $ac_file$ac_mode in
6442dd77ae96Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6443dd77ae96Smrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
6444dd77ae96Smrg  # are listed without --file.  Let's play safe and only enable the eval
6445dd77ae96Smrg  # if we detect the quoting.
6446dd77ae96Smrg  case $CONFIG_FILES in
6447dd77ae96Smrg  *\'*) eval set x "$CONFIG_FILES" ;;
6448dd77ae96Smrg  *)   set x $CONFIG_FILES ;;
6449dd77ae96Smrg  esac
6450dd77ae96Smrg  shift
6451dd77ae96Smrg  for mf
6452dd77ae96Smrg  do
6453dd77ae96Smrg    # Strip MF so we end up with the name of the file.
6454dd77ae96Smrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
6455dd77ae96Smrg    # Check whether this is an Automake generated Makefile or not.
6456dd77ae96Smrg    # We used to match only the files named `Makefile.in', but
6457dd77ae96Smrg    # some people rename them; so instead we look at the file content.
6458dd77ae96Smrg    # Grep'ing the first line is not enough: some people post-process
6459dd77ae96Smrg    # each Makefile.in and add a new line on top of each file to say so.
6460dd77ae96Smrg    # Grep'ing the whole file is not good either: AIX grep has a line
6461dd77ae96Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
6462dd77ae96Smrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
646372b4363aSmrg      dirpart=`$as_dirname -- "$mf" ||
646472b4363aSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
646572b4363aSmrg	 X"$mf" : 'X\(//\)[^/]' \| \
646672b4363aSmrg	 X"$mf" : 'X\(//\)$' \| \
6467dd77ae96Smrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
646872b4363aSmrg$as_echo X"$mf" |
646972b4363aSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
647072b4363aSmrg	    s//\1/
647172b4363aSmrg	    q
647272b4363aSmrg	  }
647372b4363aSmrg	  /^X\(\/\/\)[^/].*/{
647472b4363aSmrg	    s//\1/
647572b4363aSmrg	    q
647672b4363aSmrg	  }
647772b4363aSmrg	  /^X\(\/\/\)$/{
647872b4363aSmrg	    s//\1/
647972b4363aSmrg	    q
648072b4363aSmrg	  }
648172b4363aSmrg	  /^X\(\/\).*/{
648272b4363aSmrg	    s//\1/
648372b4363aSmrg	    q
648472b4363aSmrg	  }
6485dd77ae96Smrg	  s/.*/./; q'`
6486dd77ae96Smrg    else
6487dd77ae96Smrg      continue
6488dd77ae96Smrg    fi
6489dd77ae96Smrg    # Extract the definition of DEPDIR, am__include, and am__quote
6490dd77ae96Smrg    # from the Makefile without running `make'.
6491dd77ae96Smrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6492dd77ae96Smrg    test -z "$DEPDIR" && continue
6493dd77ae96Smrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
6494dd77ae96Smrg    test -z "am__include" && continue
6495dd77ae96Smrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6496dd77ae96Smrg    # When using ansi2knr, U may be empty or an underscore; expand it
6497dd77ae96Smrg    U=`sed -n 's/^U = //p' < "$mf"`
6498dd77ae96Smrg    # Find all dependency output files, they are included files with
6499dd77ae96Smrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
6500dd77ae96Smrg    # simplest approach to changing $(DEPDIR) to its actual value in the
6501dd77ae96Smrg    # expansion.
6502dd77ae96Smrg    for file in `sed -n "
6503dd77ae96Smrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6504dd77ae96Smrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6505dd77ae96Smrg      # Make sure the directory exists.
6506dd77ae96Smrg      test -f "$dirpart/$file" && continue
650772b4363aSmrg      fdir=`$as_dirname -- "$file" ||
650872b4363aSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
650972b4363aSmrg	 X"$file" : 'X\(//\)[^/]' \| \
651072b4363aSmrg	 X"$file" : 'X\(//\)$' \| \
6511dd77ae96Smrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
651272b4363aSmrg$as_echo X"$file" |
651372b4363aSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
651472b4363aSmrg	    s//\1/
651572b4363aSmrg	    q
651672b4363aSmrg	  }
651772b4363aSmrg	  /^X\(\/\/\)[^/].*/{
651872b4363aSmrg	    s//\1/
651972b4363aSmrg	    q
652072b4363aSmrg	  }
652172b4363aSmrg	  /^X\(\/\/\)$/{
652272b4363aSmrg	    s//\1/
652372b4363aSmrg	    q
652472b4363aSmrg	  }
652572b4363aSmrg	  /^X\(\/\).*/{
652672b4363aSmrg	    s//\1/
652772b4363aSmrg	    q
652872b4363aSmrg	  }
6529dd77ae96Smrg	  s/.*/./; q'`
653072b4363aSmrg      { as_dir=$dirpart/$fdir
653172b4363aSmrg  case $as_dir in #(
653272b4363aSmrg  -*) as_dir=./$as_dir;;
653372b4363aSmrg  esac
653472b4363aSmrg  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
653572b4363aSmrg    as_dirs=
653672b4363aSmrg    while :; do
6537dd77ae96Smrg      case $as_dir in #(
653872b4363aSmrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
653972b4363aSmrg      *) as_qdir=$as_dir;;
654072b4363aSmrg      esac
654172b4363aSmrg      as_dirs="'$as_qdir' $as_dirs"
654272b4363aSmrg      as_dir=`$as_dirname -- "$as_dir" ||
654372b4363aSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
654472b4363aSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
654572b4363aSmrg	 X"$as_dir" : 'X\(//\)$' \| \
6546dd77ae96Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
654772b4363aSmrg$as_echo X"$as_dir" |
654872b4363aSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
654972b4363aSmrg	    s//\1/
655072b4363aSmrg	    q
655172b4363aSmrg	  }
655272b4363aSmrg	  /^X\(\/\/\)[^/].*/{
655372b4363aSmrg	    s//\1/
655472b4363aSmrg	    q
655572b4363aSmrg	  }
655672b4363aSmrg	  /^X\(\/\/\)$/{
655772b4363aSmrg	    s//\1/
655872b4363aSmrg	    q
655972b4363aSmrg	  }
656072b4363aSmrg	  /^X\(\/\).*/{
656172b4363aSmrg	    s//\1/
656272b4363aSmrg	    q
656372b4363aSmrg	  }
656472b4363aSmrg	  s/.*/./; q'`
656572b4363aSmrg      test -d "$as_dir" && break
656672b4363aSmrg    done
6567dd77ae96Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
6568dd77ae96Smrg  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
656972b4363aSmrg$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
6570dd77ae96Smrg   { (exit 1); exit 1; }; }; }
6571dd77ae96Smrg      # echo "creating $dirpart/$file"
6572dd77ae96Smrg      echo '# dummy' > "$dirpart/$file"
657372b4363aSmrg    done
6574dd77ae96Smrg  done
657572b4363aSmrg}
657672b4363aSmrg ;;
657772b4363aSmrg
657872b4363aSmrg  esac
657972b4363aSmrgdone # for ac_tag
658072b4363aSmrg
658172b4363aSmrg
658272b4363aSmrg{ (exit 0); exit 0; }
658372b4363aSmrg_ACEOF
658472b4363aSmrgchmod +x $CONFIG_STATUS
658572b4363aSmrgac_clean_files=$ac_clean_files_save
6586dd77ae96Smrg
6587dd77ae96Smrgtest $ac_write_fail = 0 ||
6588dd77ae96Smrg  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
6589dd77ae96Smrg$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
6590dd77ae96Smrg   { (exit 1); exit 1; }; }
659172b4363aSmrg
659272b4363aSmrg
659372b4363aSmrg# configure is writing to config.log, and then calls config.status.
659472b4363aSmrg# config.status does its own redirection, appending to config.log.
659572b4363aSmrg# Unfortunately, on DOS this fails, as config.log is still kept open
659672b4363aSmrg# by configure, so config.status won't be able to write to it; its
659772b4363aSmrg# output is simply discarded.  So we exec the FD to /dev/null,
659872b4363aSmrg# effectively closing config.log, so it can be properly (re)opened and
659972b4363aSmrg# appended to by config.status.  When coming back to configure, we
660072b4363aSmrg# need to make the FD available again.
660172b4363aSmrgif test "$no_create" != yes; then
660272b4363aSmrg  ac_cs_success=:
660372b4363aSmrg  ac_config_status_args=
660472b4363aSmrg  test "$silent" = yes &&
660572b4363aSmrg    ac_config_status_args="$ac_config_status_args --quiet"
660672b4363aSmrg  exec 5>/dev/null
660772b4363aSmrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
660872b4363aSmrg  exec 5>>config.log
660972b4363aSmrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
661072b4363aSmrg  # would make configure fail if this is the last instruction.
661172b4363aSmrg  $ac_cs_success || { (exit 1); exit 1; }
6612dd77ae96Smrgfi
6613dd77ae96Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6614dd77ae96Smrg  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6615dd77ae96Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
661672b4363aSmrgfi
6617
6618