configure revision 54e0bb33
1b1297603Smrg#! /bin/sh
2b1297603Smrg# Guess values for system-dependent variables and create Makefiles.
354e0bb33Smrg# Generated by GNU Autoconf 2.66 for xinput 1.5.3.
4b1297603Smrg#
5b1297603Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6b1297603Smrg#
754e0bb33Smrg#
8b1297603Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
954e0bb33Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
1054e0bb33Smrg# Foundation, Inc.
1154e0bb33Smrg#
1254e0bb33Smrg#
13b1297603Smrg# This configure script is free software; the Free Software Foundation
14b1297603Smrg# gives unlimited permission to copy, distribute and modify it.
1554e0bb33Smrg## -------------------- ##
1654e0bb33Smrg## M4sh Initialization. ##
1754e0bb33Smrg## -------------------- ##
18b1297603Smrg
19b1297603Smrg# Be more Bourne compatible
20b1297603SmrgDUALCASE=1; export DUALCASE # for MKS sh
2154e0bb33Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22b1297603Smrg  emulate sh
23b1297603Smrg  NULLCMD=:
245b944e2aSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25b1297603Smrg  # is contrary to our usage.  Disable this feature.
26b1297603Smrg  alias -g '${1+"$@"}'='"$@"'
27b1297603Smrg  setopt NO_GLOB_SUBST
28b1297603Smrgelse
2954e0bb33Smrg  case `(set -o) 2>/dev/null` in #(
3054e0bb33Smrg  *posix*) :
3154e0bb33Smrg    set -o posix ;; #(
3254e0bb33Smrg  *) :
3354e0bb33Smrg     ;;
34b1297603Smrgesac
35b1297603Smrgfi
36b1297603Smrg
37b1297603Smrg
385b944e2aSmrgas_nl='
395b944e2aSmrg'
405b944e2aSmrgexport as_nl
415b944e2aSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
425b944e2aSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
435b944e2aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
445b944e2aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4554e0bb33Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
4654e0bb33Smrg# but without wasting forks for bash or zsh.
4754e0bb33Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
4854e0bb33Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4954e0bb33Smrg  as_echo='print -r --'
5054e0bb33Smrg  as_echo_n='print -rn --'
5154e0bb33Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
525b944e2aSmrg  as_echo='printf %s\n'
535b944e2aSmrg  as_echo_n='printf %s'
545b944e2aSmrgelse
555b944e2aSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
565b944e2aSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
575b944e2aSmrg    as_echo_n='/usr/ucb/echo -n'
58b1297603Smrg  else
595b944e2aSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
605b944e2aSmrg    as_echo_n_body='eval
615b944e2aSmrg      arg=$1;
6254e0bb33Smrg      case $arg in #(
635b944e2aSmrg      *"$as_nl"*)
645b944e2aSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
655b944e2aSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
665b944e2aSmrg      esac;
675b944e2aSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
685b944e2aSmrg    '
695b944e2aSmrg    export as_echo_n_body
705b944e2aSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
71b1297603Smrg  fi
725b944e2aSmrg  export as_echo_body
735b944e2aSmrg  as_echo='sh -c $as_echo_body as_echo'
745b944e2aSmrgfi
755b944e2aSmrg
765b944e2aSmrg# The user is always right.
775b944e2aSmrgif test "${PATH_SEPARATOR+set}" != set; then
785b944e2aSmrg  PATH_SEPARATOR=:
795b944e2aSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
805b944e2aSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
815b944e2aSmrg      PATH_SEPARATOR=';'
825b944e2aSmrg  }
83b1297603Smrgfi
84b1297603Smrg
85b1297603Smrg
86b1297603Smrg# IFS
87b1297603Smrg# We need space, tab and new line, in precisely that order.  Quoting is
88b1297603Smrg# there to prevent editors from complaining about space-tab.
89b1297603Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90b1297603Smrg# splitting by setting IFS to empty value.)
91b1297603SmrgIFS=" ""	$as_nl"
92b1297603Smrg
93b1297603Smrg# Find who we are.  Look in the path if we contain no directory separator.
9454e0bb33Smrgcase $0 in #((
95b1297603Smrg  *[\\/]* ) as_myself=$0 ;;
96b1297603Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97b1297603Smrgfor as_dir in $PATH
98b1297603Smrgdo
99b1297603Smrg  IFS=$as_save_IFS
100b1297603Smrg  test -z "$as_dir" && as_dir=.
10154e0bb33Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10254e0bb33Smrg  done
103b1297603SmrgIFS=$as_save_IFS
104b1297603Smrg
105b1297603Smrg     ;;
106b1297603Smrgesac
107b1297603Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
108b1297603Smrg# in which case we are not to be found in the path.
109b1297603Smrgif test "x$as_myself" = x; then
110b1297603Smrg  as_myself=$0
111b1297603Smrgfi
112b1297603Smrgif test ! -f "$as_myself"; then
1135b944e2aSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11454e0bb33Smrg  exit 1
115b1297603Smrgfi
116b1297603Smrg
11754e0bb33Smrg# Unset variables that we do not need and which cause bugs (e.g. in
11854e0bb33Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11954e0bb33Smrg# suppresses any "Segmentation fault" message there.  '((' could
12054e0bb33Smrg# trigger a bug in pdksh 5.2.14.
12154e0bb33Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
12254e0bb33Smrgdo eval test x\${$as_var+set} = xset \
12354e0bb33Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124b1297603Smrgdone
125b1297603SmrgPS1='$ '
126b1297603SmrgPS2='> '
127b1297603SmrgPS4='+ '
128b1297603Smrg
129b1297603Smrg# NLS nuisances.
1305b944e2aSmrgLC_ALL=C
1315b944e2aSmrgexport LC_ALL
1325b944e2aSmrgLANGUAGE=C
1335b944e2aSmrgexport LANGUAGE
134b1297603Smrg
135b1297603Smrg# CDPATH.
13654e0bb33Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137b1297603Smrg
138b1297603Smrgif test "x$CONFIG_SHELL" = x; then
13954e0bb33Smrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
14054e0bb33Smrg  emulate sh
14154e0bb33Smrg  NULLCMD=:
14254e0bb33Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
14354e0bb33Smrg  # is contrary to our usage.  Disable this feature.
14454e0bb33Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
14554e0bb33Smrg  setopt NO_GLOB_SUBST
146b1297603Smrgelse
14754e0bb33Smrg  case \`(set -o) 2>/dev/null\` in #(
14854e0bb33Smrg  *posix*) :
14954e0bb33Smrg    set -o posix ;; #(
15054e0bb33Smrg  *) :
15154e0bb33Smrg     ;;
15254e0bb33Smrgesac
153b1297603Smrgfi
15454e0bb33Smrg"
15554e0bb33Smrg  as_required="as_fn_return () { (exit \$1); }
15654e0bb33Smrgas_fn_success () { as_fn_return 0; }
15754e0bb33Smrgas_fn_failure () { as_fn_return 1; }
15854e0bb33Smrgas_fn_ret_success () { return 0; }
15954e0bb33Smrgas_fn_ret_failure () { return 1; }
160b1297603Smrg
161b1297603Smrgexitcode=0
16254e0bb33Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
16354e0bb33Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
16454e0bb33Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
16554e0bb33Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
16654e0bb33Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
16754e0bb33Smrg
16854e0bb33Smrgelse
16954e0bb33Smrg  exitcode=1; echo positional parameters were not saved.
17054e0bb33Smrgfi
17154e0bb33Smrgtest x\$exitcode = x0 || exit 1"
17254e0bb33Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
17354e0bb33Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
17454e0bb33Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
17554e0bb33Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
17654e0bb33Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
17754e0bb33Smrg  if (eval "$as_required") 2>/dev/null; then :
17854e0bb33Smrg  as_have_required=yes
179b1297603Smrgelse
18054e0bb33Smrg  as_have_required=no
181b1297603Smrgfi
18254e0bb33Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183b1297603Smrg
184b1297603Smrgelse
18554e0bb33Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18654e0bb33Smrgas_found=false
187b1297603Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188b1297603Smrgdo
189b1297603Smrg  IFS=$as_save_IFS
190b1297603Smrg  test -z "$as_dir" && as_dir=.
19154e0bb33Smrg  as_found=:
19254e0bb33Smrg  case $as_dir in #(
193b1297603Smrg	 /*)
194b1297603Smrg	   for as_base in sh bash ksh sh5; do
19554e0bb33Smrg	     # Try only shells that exist, to save several forks.
19654e0bb33Smrg	     as_shell=$as_dir/$as_base
19754e0bb33Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
19854e0bb33Smrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
19954e0bb33Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
20054e0bb33Smrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
20154e0bb33Smrg  break 2
20254e0bb33Smrgfi
20354e0bb33Smrgfi
204b1297603Smrg	   done;;
205b1297603Smrg       esac
20654e0bb33Smrg  as_found=false
207b1297603Smrgdone
20854e0bb33Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
20954e0bb33Smrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
21054e0bb33Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
21154e0bb33Smrgfi; }
212b1297603SmrgIFS=$as_save_IFS
213b1297603Smrg
214b1297603Smrg
21554e0bb33Smrg      if test "x$CONFIG_SHELL" != x; then :
21654e0bb33Smrg  # We cannot yet assume a decent shell, so we have to provide a
21754e0bb33Smrg	# neutralization value for shells without unset; and this also
21854e0bb33Smrg	# works around shells that cannot unset nonexistent variables.
21954e0bb33Smrg	BASH_ENV=/dev/null
22054e0bb33Smrg	ENV=/dev/null
22154e0bb33Smrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
2225b944e2aSmrg	export CONFIG_SHELL
2235b944e2aSmrg	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224b1297603Smrgfi
225b1297603Smrg
22654e0bb33Smrg    if test x$as_have_required = xno; then :
22754e0bb33Smrg  $as_echo "$0: This script requires a shell more modern than all"
22854e0bb33Smrg  $as_echo "$0: the shells that I found on your system."
22954e0bb33Smrg  if test x${ZSH_VERSION+set} = xset ; then
23054e0bb33Smrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
23154e0bb33Smrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
23254e0bb33Smrg  else
23354e0bb33Smrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
23454e0bb33Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
23554e0bb33Smrg$0: about your system, including any error possibly output
23654e0bb33Smrg$0: before this message. Then install a modern shell, or
23754e0bb33Smrg$0: manually run the script under such a shell if you do
23854e0bb33Smrg$0: have one."
23954e0bb33Smrg  fi
24054e0bb33Smrg  exit 1
241b1297603Smrgfi
242b1297603Smrgfi
243b1297603Smrgfi
24454e0bb33SmrgSHELL=${CONFIG_SHELL-/bin/sh}
24554e0bb33Smrgexport SHELL
24654e0bb33Smrg# Unset more variables known to interfere with behavior of common tools.
24754e0bb33SmrgCLICOLOR_FORCE= GREP_OPTIONS=
24854e0bb33Smrgunset CLICOLOR_FORCE GREP_OPTIONS
249b1297603Smrg
25054e0bb33Smrg## --------------------- ##
25154e0bb33Smrg## M4sh Shell Functions. ##
25254e0bb33Smrg## --------------------- ##
25354e0bb33Smrg# as_fn_unset VAR
25454e0bb33Smrg# ---------------
25554e0bb33Smrg# Portably unset VAR.
25654e0bb33Smrgas_fn_unset ()
25754e0bb33Smrg{
25854e0bb33Smrg  { eval $1=; unset $1;}
25954e0bb33Smrg}
26054e0bb33Smrgas_unset=as_fn_unset
261b1297603Smrg
26254e0bb33Smrg# as_fn_set_status STATUS
26354e0bb33Smrg# -----------------------
26454e0bb33Smrg# Set $? to STATUS, without forking.
26554e0bb33Smrgas_fn_set_status ()
26654e0bb33Smrg{
26754e0bb33Smrg  return $1
26854e0bb33Smrg} # as_fn_set_status
269b1297603Smrg
27054e0bb33Smrg# as_fn_exit STATUS
27154e0bb33Smrg# -----------------
27254e0bb33Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27354e0bb33Smrgas_fn_exit ()
27454e0bb33Smrg{
27554e0bb33Smrg  set +e
27654e0bb33Smrg  as_fn_set_status $1
27754e0bb33Smrg  exit $1
27854e0bb33Smrg} # as_fn_exit
27954e0bb33Smrg
28054e0bb33Smrg# as_fn_mkdir_p
28154e0bb33Smrg# -------------
28254e0bb33Smrg# Create "$as_dir" as a directory, including parents if necessary.
28354e0bb33Smrgas_fn_mkdir_p ()
28454e0bb33Smrg{
285b1297603Smrg
28654e0bb33Smrg  case $as_dir in #(
28754e0bb33Smrg  -*) as_dir=./$as_dir;;
28854e0bb33Smrg  esac
28954e0bb33Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
29054e0bb33Smrg    as_dirs=
29154e0bb33Smrg    while :; do
29254e0bb33Smrg      case $as_dir in #(
29354e0bb33Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29454e0bb33Smrg      *) as_qdir=$as_dir;;
29554e0bb33Smrg      esac
29654e0bb33Smrg      as_dirs="'$as_qdir' $as_dirs"
29754e0bb33Smrg      as_dir=`$as_dirname -- "$as_dir" ||
29854e0bb33Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29954e0bb33Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
30054e0bb33Smrg	 X"$as_dir" : 'X\(//\)$' \| \
30154e0bb33Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30254e0bb33Smrg$as_echo X"$as_dir" |
30354e0bb33Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30454e0bb33Smrg	    s//\1/
30554e0bb33Smrg	    q
30654e0bb33Smrg	  }
30754e0bb33Smrg	  /^X\(\/\/\)[^/].*/{
30854e0bb33Smrg	    s//\1/
30954e0bb33Smrg	    q
31054e0bb33Smrg	  }
31154e0bb33Smrg	  /^X\(\/\/\)$/{
31254e0bb33Smrg	    s//\1/
31354e0bb33Smrg	    q
31454e0bb33Smrg	  }
31554e0bb33Smrg	  /^X\(\/\).*/{
31654e0bb33Smrg	    s//\1/
31754e0bb33Smrg	    q
31854e0bb33Smrg	  }
31954e0bb33Smrg	  s/.*/./; q'`
32054e0bb33Smrg      test -d "$as_dir" && break
32154e0bb33Smrg    done
32254e0bb33Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
32354e0bb33Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
32454e0bb33Smrg
32554e0bb33Smrg
32654e0bb33Smrg} # as_fn_mkdir_p
32754e0bb33Smrg# as_fn_append VAR VALUE
32854e0bb33Smrg# ----------------------
32954e0bb33Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
33054e0bb33Smrg# advantage of any shell optimizations that allow amortized linear growth over
33154e0bb33Smrg# repeated appends, instead of the typical quadratic growth present in naive
33254e0bb33Smrg# implementations.
33354e0bb33Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33454e0bb33Smrg  eval 'as_fn_append ()
33554e0bb33Smrg  {
33654e0bb33Smrg    eval $1+=\$2
33754e0bb33Smrg  }'
338b1297603Smrgelse
33954e0bb33Smrg  as_fn_append ()
34054e0bb33Smrg  {
34154e0bb33Smrg    eval $1=\$$1\$2
34254e0bb33Smrg  }
34354e0bb33Smrgfi # as_fn_append
34454e0bb33Smrg
34554e0bb33Smrg# as_fn_arith ARG...
34654e0bb33Smrg# ------------------
34754e0bb33Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
34854e0bb33Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
34954e0bb33Smrg# must be portable across $(()) and expr.
35054e0bb33Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35154e0bb33Smrg  eval 'as_fn_arith ()
35254e0bb33Smrg  {
35354e0bb33Smrg    as_val=$(( $* ))
35454e0bb33Smrg  }'
35554e0bb33Smrgelse
35654e0bb33Smrg  as_fn_arith ()
35754e0bb33Smrg  {
35854e0bb33Smrg    as_val=`expr "$@" || test $? -eq 1`
35954e0bb33Smrg  }
36054e0bb33Smrgfi # as_fn_arith
361b1297603Smrg
362b1297603Smrg
36354e0bb33Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
36454e0bb33Smrg# ----------------------------------------
36554e0bb33Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36654e0bb33Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
36754e0bb33Smrg# script with STATUS, using 1 if that was 0.
36854e0bb33Smrgas_fn_error ()
36954e0bb33Smrg{
37054e0bb33Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
37154e0bb33Smrg  if test "$4"; then
37254e0bb33Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
37354e0bb33Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
37454e0bb33Smrg  fi
37554e0bb33Smrg  $as_echo "$as_me: error: $2" >&2
37654e0bb33Smrg  as_fn_exit $as_status
37754e0bb33Smrg} # as_fn_error
37854e0bb33Smrg
37954e0bb33Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
38054e0bb33Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
38154e0bb33Smrg  as_expr=expr
382b1297603Smrgelse
38354e0bb33Smrg  as_expr=false
384b1297603Smrgfi
385b1297603Smrg
38654e0bb33Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
38754e0bb33Smrg  as_basename=basename
38854e0bb33Smrgelse
38954e0bb33Smrg  as_basename=false
390b1297603Smrgfi
391b1297603Smrg
39254e0bb33Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
39354e0bb33Smrg  as_dirname=dirname
394b1297603Smrgelse
39554e0bb33Smrg  as_dirname=false
396b1297603Smrgfi
397b1297603Smrg
39854e0bb33Smrgas_me=`$as_basename -- "$0" ||
39954e0bb33Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40054e0bb33Smrg	 X"$0" : 'X\(//\)$' \| \
40154e0bb33Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
40254e0bb33Smrg$as_echo X/"$0" |
40354e0bb33Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
40454e0bb33Smrg	    s//\1/
40554e0bb33Smrg	    q
40654e0bb33Smrg	  }
40754e0bb33Smrg	  /^X\/\(\/\/\)$/{
40854e0bb33Smrg	    s//\1/
40954e0bb33Smrg	    q
41054e0bb33Smrg	  }
41154e0bb33Smrg	  /^X\/\(\/\).*/{
41254e0bb33Smrg	    s//\1/
41354e0bb33Smrg	    q
41454e0bb33Smrg	  }
41554e0bb33Smrg	  s/.*/./; q'`
416b1297603Smrg
41754e0bb33Smrg# Avoid depending upon Character Ranges.
41854e0bb33Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
41954e0bb33Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42054e0bb33Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
42154e0bb33Smrgas_cr_digits='0123456789'
42254e0bb33Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
423b1297603Smrg
424b1297603Smrg
42554e0bb33Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
42654e0bb33Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
42754e0bb33Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
42854e0bb33Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
42954e0bb33Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
430b1297603Smrg  sed -n '
431b1297603Smrg    p
432b1297603Smrg    /[$]LINENO/=
433b1297603Smrg  ' <$as_myself |
434b1297603Smrg    sed '
435b1297603Smrg      s/[$]LINENO.*/&-/
436b1297603Smrg      t lineno
437b1297603Smrg      b
438b1297603Smrg      :lineno
439b1297603Smrg      N
440b1297603Smrg      :loop
441b1297603Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442b1297603Smrg      t loop
443b1297603Smrg      s/-\n.*//
444b1297603Smrg    ' >$as_me.lineno &&
445b1297603Smrg  chmod +x "$as_me.lineno" ||
44654e0bb33Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447b1297603Smrg
448b1297603Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
449b1297603Smrg  # (the dirname of $[0] is not the place where we might find the
450b1297603Smrg  # original and so on.  Autoconf is especially sensitive to this).
451b1297603Smrg  . "./$as_me.lineno"
452b1297603Smrg  # Exit status is that of the last command.
453b1297603Smrg  exit
454b1297603Smrg}
455b1297603Smrg
456b1297603SmrgECHO_C= ECHO_N= ECHO_T=
45754e0bb33Smrgcase `echo -n x` in #(((((
458b1297603Smrg-n*)
45954e0bb33Smrg  case `echo 'xy\c'` in
460b1297603Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
46154e0bb33Smrg  xy)  ECHO_C='\c';;
46254e0bb33Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
46354e0bb33Smrg       ECHO_T='	';;
464b1297603Smrg  esac;;
465b1297603Smrg*)
466b1297603Smrg  ECHO_N='-n';;
467b1297603Smrgesac
468b1297603Smrg
469b1297603Smrgrm -f conf$$ conf$$.exe conf$$.file
470b1297603Smrgif test -d conf$$.dir; then
471b1297603Smrg  rm -f conf$$.dir/conf$$.file
472b1297603Smrgelse
473b1297603Smrg  rm -f conf$$.dir
4745b944e2aSmrg  mkdir conf$$.dir 2>/dev/null
4755b944e2aSmrgfi
4765b944e2aSmrgif (echo >conf$$.file) 2>/dev/null; then
4775b944e2aSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
4785b944e2aSmrg    as_ln_s='ln -s'
4795b944e2aSmrg    # ... but there are two gotchas:
4805b944e2aSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4815b944e2aSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4825b944e2aSmrg    # In both cases, we have to default to `cp -p'.
4835b944e2aSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4845b944e2aSmrg      as_ln_s='cp -p'
4855b944e2aSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
4865b944e2aSmrg    as_ln_s=ln
4875b944e2aSmrg  else
488b1297603Smrg    as_ln_s='cp -p'
4895b944e2aSmrg  fi
490b1297603Smrgelse
491b1297603Smrg  as_ln_s='cp -p'
492b1297603Smrgfi
493b1297603Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494b1297603Smrgrmdir conf$$.dir 2>/dev/null
495b1297603Smrg
496b1297603Smrgif mkdir -p . 2>/dev/null; then
49754e0bb33Smrg  as_mkdir_p='mkdir -p "$as_dir"'
498b1297603Smrgelse
499b1297603Smrg  test -d ./-p && rmdir ./-p
500b1297603Smrg  as_mkdir_p=false
501b1297603Smrgfi
502b1297603Smrg
503b1297603Smrgif test -x / >/dev/null 2>&1; then
504b1297603Smrg  as_test_x='test -x'
505b1297603Smrgelse
506b1297603Smrg  if ls -dL / >/dev/null 2>&1; then
507b1297603Smrg    as_ls_L_option=L
508b1297603Smrg  else
509b1297603Smrg    as_ls_L_option=
510b1297603Smrg  fi
511b1297603Smrg  as_test_x='
512b1297603Smrg    eval sh -c '\''
513b1297603Smrg      if test -d "$1"; then
5145b944e2aSmrg	test -d "$1/.";
515b1297603Smrg      else
51654e0bb33Smrg	case $1 in #(
5175b944e2aSmrg	-*)set "./$1";;
518b1297603Smrg	esac;
51954e0bb33Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520b1297603Smrg	???[sx]*):;;*)false;;esac;fi
521b1297603Smrg    '\'' sh
522b1297603Smrg  '
523b1297603Smrgfi
524b1297603Smrgas_executable_p=$as_test_x
525b1297603Smrg
526b1297603Smrg# Sed expression to map a string onto a valid CPP name.
527b1297603Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528b1297603Smrg
529b1297603Smrg# Sed expression to map a string onto a valid variable name.
530b1297603Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531b1297603Smrg
532b1297603Smrg
53354e0bb33Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
53454e0bb33Smrgexec 6>&1
535b1297603Smrg
536b1297603Smrg# Name of the host.
53754e0bb33Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
538b1297603Smrg# so uname gets run too.
539b1297603Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
540b1297603Smrg
541b1297603Smrg#
542b1297603Smrg# Initializations.
543b1297603Smrg#
544b1297603Smrgac_default_prefix=/usr/local
545b1297603Smrgac_clean_files=
546b1297603Smrgac_config_libobj_dir=.
547b1297603SmrgLIBOBJS=
548b1297603Smrgcross_compiling=no
549b1297603Smrgsubdirs=
550b1297603SmrgMFLAGS=
551b1297603SmrgMAKEFLAGS=
552b1297603Smrg
553b1297603Smrg# Identity of this package.
554b1297603SmrgPACKAGE_NAME='xinput'
555b1297603SmrgPACKAGE_TARNAME='xinput'
55654e0bb33SmrgPACKAGE_VERSION='1.5.3'
55754e0bb33SmrgPACKAGE_STRING='xinput 1.5.3'
558b1297603SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
55954e0bb33SmrgPACKAGE_URL=''
560b1297603Smrg
561d3263506Smrg# Factoring default headers for most tests.
562d3263506Smrgac_includes_default="\
563d3263506Smrg#include <stdio.h>
564d3263506Smrg#ifdef HAVE_SYS_TYPES_H
565d3263506Smrg# include <sys/types.h>
566d3263506Smrg#endif
567d3263506Smrg#ifdef HAVE_SYS_STAT_H
568d3263506Smrg# include <sys/stat.h>
569d3263506Smrg#endif
570d3263506Smrg#ifdef STDC_HEADERS
571d3263506Smrg# include <stdlib.h>
572d3263506Smrg# include <stddef.h>
573d3263506Smrg#else
574d3263506Smrg# ifdef HAVE_STDLIB_H
575d3263506Smrg#  include <stdlib.h>
576d3263506Smrg# endif
577d3263506Smrg#endif
578d3263506Smrg#ifdef HAVE_STRING_H
579d3263506Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580d3263506Smrg#  include <memory.h>
581d3263506Smrg# endif
582d3263506Smrg# include <string.h>
583d3263506Smrg#endif
584d3263506Smrg#ifdef HAVE_STRINGS_H
585d3263506Smrg# include <strings.h>
586d3263506Smrg#endif
587d3263506Smrg#ifdef HAVE_INTTYPES_H
588d3263506Smrg# include <inttypes.h>
589d3263506Smrg#endif
590d3263506Smrg#ifdef HAVE_STDINT_H
591d3263506Smrg# include <stdint.h>
592d3263506Smrg#endif
593d3263506Smrg#ifdef HAVE_UNISTD_H
594d3263506Smrg# include <unistd.h>
595d3263506Smrg#endif"
596d3263506Smrg
59753719b08Smrgac_subst_vars='am__EXEEXT_FALSE
59853719b08Smrgam__EXEEXT_TRUE
59953719b08SmrgLTLIBOBJS
600b1297603SmrgLIBOBJS
60153719b08SmrgHAVE_XI2
60253719b08SmrgHAVE_XI2_FALSE
60353719b08SmrgHAVE_XI2_TRUE
60453719b08SmrgXI2_LIBS
60553719b08SmrgXI2_CFLAGS
60653719b08SmrgXINPUT_LIBS
60753719b08SmrgXINPUT_CFLAGS
608cea37944SmrgAM_BACKSLASH
609cea37944SmrgAM_DEFAULT_VERBOSITY
610cea37944SmrgMAN_SUBSTS
611cea37944SmrgXORG_MAN_PAGE
6125b944e2aSmrgADMIN_MAN_DIR
6135b944e2aSmrgDRIVER_MAN_DIR
6145b944e2aSmrgMISC_MAN_DIR
6155b944e2aSmrgFILE_MAN_DIR
6165b944e2aSmrgLIB_MAN_DIR
6175b944e2aSmrgAPP_MAN_DIR
6185b944e2aSmrgADMIN_MAN_SUFFIX
6195b944e2aSmrgDRIVER_MAN_SUFFIX
6205b944e2aSmrgMISC_MAN_SUFFIX
6215b944e2aSmrgFILE_MAN_SUFFIX
6225b944e2aSmrgLIB_MAN_SUFFIX
6235b944e2aSmrgAPP_MAN_SUFFIX
624cea37944SmrgSED
6255b944e2aSmrghost_os
6265b944e2aSmrghost_vendor
6275b944e2aSmrghost_cpu
6285b944e2aSmrghost
6295b944e2aSmrgbuild_os
6305b944e2aSmrgbuild_vendor
6315b944e2aSmrgbuild_cpu
6325b944e2aSmrgbuild
63353719b08SmrgINSTALL_CMD
63454e0bb33SmrgPKG_CONFIG_LIBDIR
63554e0bb33SmrgPKG_CONFIG_PATH
6365b944e2aSmrgPKG_CONFIG
63753719b08SmrgCHANGELOG_CMD
638d3263506SmrgCWARNFLAGS
639d3263506SmrgEGREP
640d3263506SmrgGREP
641d3263506SmrgCPP
6425b944e2aSmrgam__fastdepCC_FALSE
6435b944e2aSmrgam__fastdepCC_TRUE
6445b944e2aSmrgCCDEPMODE
6455b944e2aSmrgAMDEPBACKSLASH
6465b944e2aSmrgAMDEP_FALSE
6475b944e2aSmrgAMDEP_TRUE
6485b944e2aSmrgam__quote
6495b944e2aSmrgam__include
6505b944e2aSmrgDEPDIR
6515b944e2aSmrgOBJEXT
6525b944e2aSmrgEXEEXT
6535b944e2aSmrgac_ct_CC
6545b944e2aSmrgCPPFLAGS
6555b944e2aSmrgLDFLAGS
6565b944e2aSmrgCFLAGS
6575b944e2aSmrgCC
6585b944e2aSmrgMAINT
6595b944e2aSmrgMAINTAINER_MODE_FALSE
6605b944e2aSmrgMAINTAINER_MODE_TRUE
6615b944e2aSmrgam__untar
6625b944e2aSmrgam__tar
6635b944e2aSmrgAMTAR
6645b944e2aSmrgam__leading_dot
6655b944e2aSmrgSET_MAKE
6665b944e2aSmrgAWK
6675b944e2aSmrgmkdir_p
6685b944e2aSmrgMKDIR_P
6695b944e2aSmrgINSTALL_STRIP_PROGRAM
6705b944e2aSmrgSTRIP
6715b944e2aSmrginstall_sh
6725b944e2aSmrgMAKEINFO
6735b944e2aSmrgAUTOHEADER
6745b944e2aSmrgAUTOMAKE
6755b944e2aSmrgAUTOCONF
6765b944e2aSmrgACLOCAL
6775b944e2aSmrgVERSION
6785b944e2aSmrgPACKAGE
6795b944e2aSmrgCYGPATH_W
6805b944e2aSmrgam__isrc
6815b944e2aSmrgINSTALL_DATA
6825b944e2aSmrgINSTALL_SCRIPT
6835b944e2aSmrgINSTALL_PROGRAM
6845b944e2aSmrgtarget_alias
6855b944e2aSmrghost_alias
6865b944e2aSmrgbuild_alias
6875b944e2aSmrgLIBS
6885b944e2aSmrgECHO_T
6895b944e2aSmrgECHO_N
6905b944e2aSmrgECHO_C
6915b944e2aSmrgDEFS
6925b944e2aSmrgmandir
6935b944e2aSmrglocaledir
6945b944e2aSmrglibdir
6955b944e2aSmrgpsdir
6965b944e2aSmrgpdfdir
6975b944e2aSmrgdvidir
6985b944e2aSmrghtmldir
6995b944e2aSmrginfodir
7005b944e2aSmrgdocdir
7015b944e2aSmrgoldincludedir
7025b944e2aSmrgincludedir
7035b944e2aSmrglocalstatedir
7045b944e2aSmrgsharedstatedir
7055b944e2aSmrgsysconfdir
7065b944e2aSmrgdatadir
7075b944e2aSmrgdatarootdir
7085b944e2aSmrglibexecdir
7095b944e2aSmrgsbindir
7105b944e2aSmrgbindir
7115b944e2aSmrgprogram_transform_name
7125b944e2aSmrgprefix
7135b944e2aSmrgexec_prefix
71454e0bb33SmrgPACKAGE_URL
7155b944e2aSmrgPACKAGE_BUGREPORT
7165b944e2aSmrgPACKAGE_STRING
7175b944e2aSmrgPACKAGE_VERSION
7185b944e2aSmrgPACKAGE_TARNAME
7195b944e2aSmrgPACKAGE_NAME
7205b944e2aSmrgPATH_SEPARATOR
7215b944e2aSmrgSHELL'
722b1297603Smrgac_subst_files=''
7235b944e2aSmrgac_user_opts='
7245b944e2aSmrgenable_option_checking
7255b944e2aSmrgenable_maintainer_mode
7265b944e2aSmrgenable_dependency_tracking
72753719b08Smrgenable_strict_compilation
728cea37944Smrgenable_silent_rules
7295b944e2aSmrg'
730b1297603Smrg      ac_precious_vars='build_alias
731b1297603Smrghost_alias
732b1297603Smrgtarget_alias
733b1297603SmrgCC
734b1297603SmrgCFLAGS
735b1297603SmrgLDFLAGS
736b1297603SmrgLIBS
737b1297603SmrgCPPFLAGS
738d3263506SmrgCPP
739b1297603SmrgPKG_CONFIG
74054e0bb33SmrgPKG_CONFIG_PATH
74154e0bb33SmrgPKG_CONFIG_LIBDIR
742b1297603SmrgXINPUT_CFLAGS
74353719b08SmrgXINPUT_LIBS
74453719b08SmrgXI2_CFLAGS
74553719b08SmrgXI2_LIBS'
746b1297603Smrg
747b1297603Smrg
748b1297603Smrg# Initialize some variables set by options.
749b1297603Smrgac_init_help=
750b1297603Smrgac_init_version=false
7515b944e2aSmrgac_unrecognized_opts=
7525b944e2aSmrgac_unrecognized_sep=
753b1297603Smrg# The variables have the same names as the options, with
754b1297603Smrg# dashes changed to underlines.
755b1297603Smrgcache_file=/dev/null
756b1297603Smrgexec_prefix=NONE
757b1297603Smrgno_create=
758b1297603Smrgno_recursion=
759b1297603Smrgprefix=NONE
760b1297603Smrgprogram_prefix=NONE
761b1297603Smrgprogram_suffix=NONE
762b1297603Smrgprogram_transform_name=s,x,x,
763b1297603Smrgsilent=
764b1297603Smrgsite=
765b1297603Smrgsrcdir=
766b1297603Smrgverbose=
767b1297603Smrgx_includes=NONE
768b1297603Smrgx_libraries=NONE
769b1297603Smrg
770b1297603Smrg# Installation directory options.
771b1297603Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
772b1297603Smrg# and all the variables that are supposed to be based on exec_prefix
773b1297603Smrg# by default will actually change.
774b1297603Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
775b1297603Smrg# (The list follows the same order as the GNU Coding Standards.)
776b1297603Smrgbindir='${exec_prefix}/bin'
777b1297603Smrgsbindir='${exec_prefix}/sbin'
778b1297603Smrglibexecdir='${exec_prefix}/libexec'
779b1297603Smrgdatarootdir='${prefix}/share'
780b1297603Smrgdatadir='${datarootdir}'
781b1297603Smrgsysconfdir='${prefix}/etc'
782b1297603Smrgsharedstatedir='${prefix}/com'
783b1297603Smrglocalstatedir='${prefix}/var'
784b1297603Smrgincludedir='${prefix}/include'
785b1297603Smrgoldincludedir='/usr/include'
786b1297603Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
787b1297603Smrginfodir='${datarootdir}/info'
788b1297603Smrghtmldir='${docdir}'
789b1297603Smrgdvidir='${docdir}'
790b1297603Smrgpdfdir='${docdir}'
791b1297603Smrgpsdir='${docdir}'
792b1297603Smrglibdir='${exec_prefix}/lib'
793b1297603Smrglocaledir='${datarootdir}/locale'
794b1297603Smrgmandir='${datarootdir}/man'
795b1297603Smrg
796b1297603Smrgac_prev=
797b1297603Smrgac_dashdash=
798b1297603Smrgfor ac_option
799b1297603Smrgdo
800b1297603Smrg  # If the previous option needs an argument, assign it.
801b1297603Smrg  if test -n "$ac_prev"; then
802b1297603Smrg    eval $ac_prev=\$ac_option
803b1297603Smrg    ac_prev=
804b1297603Smrg    continue
805b1297603Smrg  fi
806b1297603Smrg
807b1297603Smrg  case $ac_option in
808b1297603Smrg  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
809b1297603Smrg  *)	ac_optarg=yes ;;
810b1297603Smrg  esac
811b1297603Smrg
812b1297603Smrg  # Accept the important Cygnus configure options, so we can diagnose typos.
813b1297603Smrg
814b1297603Smrg  case $ac_dashdash$ac_option in
815b1297603Smrg  --)
816b1297603Smrg    ac_dashdash=yes ;;
817b1297603Smrg
818b1297603Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
819b1297603Smrg    ac_prev=bindir ;;
820b1297603Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
821b1297603Smrg    bindir=$ac_optarg ;;
822b1297603Smrg
823b1297603Smrg  -build | --build | --buil | --bui | --bu)
824b1297603Smrg    ac_prev=build_alias ;;
825b1297603Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
826b1297603Smrg    build_alias=$ac_optarg ;;
827b1297603Smrg
828b1297603Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
829b1297603Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
830b1297603Smrg    ac_prev=cache_file ;;
831b1297603Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
832b1297603Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
833b1297603Smrg    cache_file=$ac_optarg ;;
834b1297603Smrg
835b1297603Smrg  --config-cache | -C)
836b1297603Smrg    cache_file=config.cache ;;
837b1297603Smrg
838b1297603Smrg  -datadir | --datadir | --datadi | --datad)
839b1297603Smrg    ac_prev=datadir ;;
840b1297603Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
841b1297603Smrg    datadir=$ac_optarg ;;
842b1297603Smrg
843b1297603Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
844b1297603Smrg  | --dataroo | --dataro | --datar)
845b1297603Smrg    ac_prev=datarootdir ;;
846b1297603Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
847b1297603Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
848b1297603Smrg    datarootdir=$ac_optarg ;;
849b1297603Smrg
850b1297603Smrg  -disable-* | --disable-*)
8515b944e2aSmrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
852b1297603Smrg    # Reject names that are not valid shell variable names.
8535b944e2aSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
85454e0bb33Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
8555b944e2aSmrg    ac_useropt_orig=$ac_useropt
8565b944e2aSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8575b944e2aSmrg    case $ac_user_opts in
8585b944e2aSmrg      *"
8595b944e2aSmrg"enable_$ac_useropt"
8605b944e2aSmrg"*) ;;
8615b944e2aSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
8625b944e2aSmrg	 ac_unrecognized_sep=', ';;
8635b944e2aSmrg    esac
8645b944e2aSmrg    eval enable_$ac_useropt=no ;;
865b1297603Smrg
866b1297603Smrg  -docdir | --docdir | --docdi | --doc | --do)
867b1297603Smrg    ac_prev=docdir ;;
868b1297603Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
869b1297603Smrg    docdir=$ac_optarg ;;
870b1297603Smrg
871b1297603Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
872b1297603Smrg    ac_prev=dvidir ;;
873b1297603Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
874b1297603Smrg    dvidir=$ac_optarg ;;
875b1297603Smrg
876b1297603Smrg  -enable-* | --enable-*)
8775b944e2aSmrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
878b1297603Smrg    # Reject names that are not valid shell variable names.
8795b944e2aSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
88054e0bb33Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
8815b944e2aSmrg    ac_useropt_orig=$ac_useropt
8825b944e2aSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8835b944e2aSmrg    case $ac_user_opts in
8845b944e2aSmrg      *"
8855b944e2aSmrg"enable_$ac_useropt"
8865b944e2aSmrg"*) ;;
8875b944e2aSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
8885b944e2aSmrg	 ac_unrecognized_sep=', ';;
8895b944e2aSmrg    esac
8905b944e2aSmrg    eval enable_$ac_useropt=\$ac_optarg ;;
891b1297603Smrg
892b1297603Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
893b1297603Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
894b1297603Smrg  | --exec | --exe | --ex)
895b1297603Smrg    ac_prev=exec_prefix ;;
896b1297603Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
897b1297603Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
898b1297603Smrg  | --exec=* | --exe=* | --ex=*)
899b1297603Smrg    exec_prefix=$ac_optarg ;;
900b1297603Smrg
901b1297603Smrg  -gas | --gas | --ga | --g)
902b1297603Smrg    # Obsolete; use --with-gas.
903b1297603Smrg    with_gas=yes ;;
904b1297603Smrg
905b1297603Smrg  -help | --help | --hel | --he | -h)
906b1297603Smrg    ac_init_help=long ;;
907b1297603Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
908b1297603Smrg    ac_init_help=recursive ;;
909b1297603Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
910b1297603Smrg    ac_init_help=short ;;
911b1297603Smrg
912b1297603Smrg  -host | --host | --hos | --ho)
913b1297603Smrg    ac_prev=host_alias ;;
914b1297603Smrg  -host=* | --host=* | --hos=* | --ho=*)
915b1297603Smrg    host_alias=$ac_optarg ;;
916b1297603Smrg
917b1297603Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
918b1297603Smrg    ac_prev=htmldir ;;
919b1297603Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
920b1297603Smrg  | --ht=*)
921b1297603Smrg    htmldir=$ac_optarg ;;
922b1297603Smrg
923b1297603Smrg  -includedir | --includedir | --includedi | --included | --include \
924b1297603Smrg  | --includ | --inclu | --incl | --inc)
925b1297603Smrg    ac_prev=includedir ;;
926b1297603Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
927b1297603Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
928b1297603Smrg    includedir=$ac_optarg ;;
929b1297603Smrg
930b1297603Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
931b1297603Smrg    ac_prev=infodir ;;
932b1297603Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
933b1297603Smrg    infodir=$ac_optarg ;;
934b1297603Smrg
935b1297603Smrg  -libdir | --libdir | --libdi | --libd)
936b1297603Smrg    ac_prev=libdir ;;
937b1297603Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
938b1297603Smrg    libdir=$ac_optarg ;;
939b1297603Smrg
940b1297603Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
941b1297603Smrg  | --libexe | --libex | --libe)
942b1297603Smrg    ac_prev=libexecdir ;;
943b1297603Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
944b1297603Smrg  | --libexe=* | --libex=* | --libe=*)
945b1297603Smrg    libexecdir=$ac_optarg ;;
946b1297603Smrg
947b1297603Smrg  -localedir | --localedir | --localedi | --localed | --locale)
948b1297603Smrg    ac_prev=localedir ;;
949b1297603Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
950b1297603Smrg    localedir=$ac_optarg ;;
951b1297603Smrg
952b1297603Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
953b1297603Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
954b1297603Smrg    ac_prev=localstatedir ;;
955b1297603Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
956b1297603Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
957b1297603Smrg    localstatedir=$ac_optarg ;;
958b1297603Smrg
959b1297603Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
960b1297603Smrg    ac_prev=mandir ;;
961b1297603Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
962b1297603Smrg    mandir=$ac_optarg ;;
963b1297603Smrg
964b1297603Smrg  -nfp | --nfp | --nf)
965b1297603Smrg    # Obsolete; use --without-fp.
966b1297603Smrg    with_fp=no ;;
967b1297603Smrg
968b1297603Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
969b1297603Smrg  | --no-cr | --no-c | -n)
970b1297603Smrg    no_create=yes ;;
971b1297603Smrg
972b1297603Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
973b1297603Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
974b1297603Smrg    no_recursion=yes ;;
975b1297603Smrg
976b1297603Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
977b1297603Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
978b1297603Smrg  | --oldin | --oldi | --old | --ol | --o)
979b1297603Smrg    ac_prev=oldincludedir ;;
980b1297603Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
981b1297603Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
982b1297603Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
983b1297603Smrg    oldincludedir=$ac_optarg ;;
984b1297603Smrg
985b1297603Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
986b1297603Smrg    ac_prev=prefix ;;
987b1297603Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
988b1297603Smrg    prefix=$ac_optarg ;;
989b1297603Smrg
990b1297603Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
991b1297603Smrg  | --program-pre | --program-pr | --program-p)
992b1297603Smrg    ac_prev=program_prefix ;;
993b1297603Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
994b1297603Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
995b1297603Smrg    program_prefix=$ac_optarg ;;
996b1297603Smrg
997b1297603Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
998b1297603Smrg  | --program-suf | --program-su | --program-s)
999b1297603Smrg    ac_prev=program_suffix ;;
1000b1297603Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1001b1297603Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1002b1297603Smrg    program_suffix=$ac_optarg ;;
1003b1297603Smrg
1004b1297603Smrg  -program-transform-name | --program-transform-name \
1005b1297603Smrg  | --program-transform-nam | --program-transform-na \
1006b1297603Smrg  | --program-transform-n | --program-transform- \
1007b1297603Smrg  | --program-transform | --program-transfor \
1008b1297603Smrg  | --program-transfo | --program-transf \
1009b1297603Smrg  | --program-trans | --program-tran \
1010b1297603Smrg  | --progr-tra | --program-tr | --program-t)
1011b1297603Smrg    ac_prev=program_transform_name ;;
1012b1297603Smrg  -program-transform-name=* | --program-transform-name=* \
1013b1297603Smrg  | --program-transform-nam=* | --program-transform-na=* \
1014b1297603Smrg  | --program-transform-n=* | --program-transform-=* \
1015b1297603Smrg  | --program-transform=* | --program-transfor=* \
1016b1297603Smrg  | --program-transfo=* | --program-transf=* \
1017b1297603Smrg  | --program-trans=* | --program-tran=* \
1018b1297603Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
1019b1297603Smrg    program_transform_name=$ac_optarg ;;
1020b1297603Smrg
1021b1297603Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1022b1297603Smrg    ac_prev=pdfdir ;;
1023b1297603Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1024b1297603Smrg    pdfdir=$ac_optarg ;;
1025b1297603Smrg
1026b1297603Smrg  -psdir | --psdir | --psdi | --psd | --ps)
1027b1297603Smrg    ac_prev=psdir ;;
1028b1297603Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1029b1297603Smrg    psdir=$ac_optarg ;;
1030b1297603Smrg
1031b1297603Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1032b1297603Smrg  | -silent | --silent | --silen | --sile | --sil)
1033b1297603Smrg    silent=yes ;;
1034b1297603Smrg
1035b1297603Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1036b1297603Smrg    ac_prev=sbindir ;;
1037b1297603Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1038b1297603Smrg  | --sbi=* | --sb=*)
1039b1297603Smrg    sbindir=$ac_optarg ;;
1040b1297603Smrg
1041b1297603Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1042b1297603Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1043b1297603Smrg  | --sharedst | --shareds | --shared | --share | --shar \
1044b1297603Smrg  | --sha | --sh)
1045b1297603Smrg    ac_prev=sharedstatedir ;;
1046b1297603Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1047b1297603Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1048b1297603Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1049b1297603Smrg  | --sha=* | --sh=*)
1050b1297603Smrg    sharedstatedir=$ac_optarg ;;
1051b1297603Smrg
1052b1297603Smrg  -site | --site | --sit)
1053b1297603Smrg    ac_prev=site ;;
1054b1297603Smrg  -site=* | --site=* | --sit=*)
1055b1297603Smrg    site=$ac_optarg ;;
1056b1297603Smrg
1057b1297603Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1058b1297603Smrg    ac_prev=srcdir ;;
1059b1297603Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1060b1297603Smrg    srcdir=$ac_optarg ;;
1061b1297603Smrg
1062b1297603Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1063b1297603Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
1064b1297603Smrg    ac_prev=sysconfdir ;;
1065b1297603Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1066b1297603Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1067b1297603Smrg    sysconfdir=$ac_optarg ;;
1068b1297603Smrg
1069b1297603Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
1070b1297603Smrg    ac_prev=target_alias ;;
1071b1297603Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1072b1297603Smrg    target_alias=$ac_optarg ;;
1073b1297603Smrg
1074b1297603Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1075b1297603Smrg    verbose=yes ;;
1076b1297603Smrg
1077b1297603Smrg  -version | --version | --versio | --versi | --vers | -V)
1078b1297603Smrg    ac_init_version=: ;;
1079b1297603Smrg
1080b1297603Smrg  -with-* | --with-*)
10815b944e2aSmrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1082b1297603Smrg    # Reject names that are not valid shell variable names.
10835b944e2aSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
108454e0bb33Smrg      as_fn_error $? "invalid package name: $ac_useropt"
10855b944e2aSmrg    ac_useropt_orig=$ac_useropt
10865b944e2aSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
10875b944e2aSmrg    case $ac_user_opts in
10885b944e2aSmrg      *"
10895b944e2aSmrg"with_$ac_useropt"
10905b944e2aSmrg"*) ;;
10915b944e2aSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
10925b944e2aSmrg	 ac_unrecognized_sep=', ';;
10935b944e2aSmrg    esac
10945b944e2aSmrg    eval with_$ac_useropt=\$ac_optarg ;;
1095b1297603Smrg
1096b1297603Smrg  -without-* | --without-*)
10975b944e2aSmrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1098b1297603Smrg    # Reject names that are not valid shell variable names.
10995b944e2aSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
110054e0bb33Smrg      as_fn_error $? "invalid package name: $ac_useropt"
11015b944e2aSmrg    ac_useropt_orig=$ac_useropt
11025b944e2aSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11035b944e2aSmrg    case $ac_user_opts in
11045b944e2aSmrg      *"
11055b944e2aSmrg"with_$ac_useropt"
11065b944e2aSmrg"*) ;;
11075b944e2aSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
11085b944e2aSmrg	 ac_unrecognized_sep=', ';;
11095b944e2aSmrg    esac
11105b944e2aSmrg    eval with_$ac_useropt=no ;;
1111b1297603Smrg
1112b1297603Smrg  --x)
1113b1297603Smrg    # Obsolete; use --with-x.
1114b1297603Smrg    with_x=yes ;;
1115b1297603Smrg
1116b1297603Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1117b1297603Smrg  | --x-incl | --x-inc | --x-in | --x-i)
1118b1297603Smrg    ac_prev=x_includes ;;
1119b1297603Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1120b1297603Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1121b1297603Smrg    x_includes=$ac_optarg ;;
1122b1297603Smrg
1123b1297603Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1124b1297603Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1125b1297603Smrg    ac_prev=x_libraries ;;
1126b1297603Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1127b1297603Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1128b1297603Smrg    x_libraries=$ac_optarg ;;
1129b1297603Smrg
113054e0bb33Smrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
113154e0bb33SmrgTry \`$0 --help' for more information"
1132b1297603Smrg    ;;
1133b1297603Smrg
1134b1297603Smrg  *=*)
1135b1297603Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1136b1297603Smrg    # Reject names that are not valid shell variable names.
113754e0bb33Smrg    case $ac_envvar in #(
113854e0bb33Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
113954e0bb33Smrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
114054e0bb33Smrg    esac
1141b1297603Smrg    eval $ac_envvar=\$ac_optarg
1142b1297603Smrg    export $ac_envvar ;;
1143b1297603Smrg
1144b1297603Smrg  *)
1145b1297603Smrg    # FIXME: should be removed in autoconf 3.0.
11465b944e2aSmrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1147b1297603Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
11485b944e2aSmrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1149b1297603Smrg    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1150b1297603Smrg    ;;
1151b1297603Smrg
1152b1297603Smrg  esac
1153b1297603Smrgdone
1154b1297603Smrg
1155b1297603Smrgif test -n "$ac_prev"; then
1156b1297603Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
115754e0bb33Smrg  as_fn_error $? "missing argument to $ac_option"
1158b1297603Smrgfi
1159b1297603Smrg
11605b944e2aSmrgif test -n "$ac_unrecognized_opts"; then
11615b944e2aSmrg  case $enable_option_checking in
11625b944e2aSmrg    no) ;;
116354e0bb33Smrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
11645b944e2aSmrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
11655b944e2aSmrg  esac
11665b944e2aSmrgfi
11675b944e2aSmrg
11685b944e2aSmrg# Check all directory arguments for consistency.
1169b1297603Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1170b1297603Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1171b1297603Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1172b1297603Smrg		libdir localedir mandir
1173b1297603Smrgdo
1174b1297603Smrg  eval ac_val=\$$ac_var
11755b944e2aSmrg  # Remove trailing slashes.
11765b944e2aSmrg  case $ac_val in
11775b944e2aSmrg    */ )
11785b944e2aSmrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
11795b944e2aSmrg      eval $ac_var=\$ac_val;;
11805b944e2aSmrg  esac
11815b944e2aSmrg  # Be sure to have absolute directory names.
1182b1297603Smrg  case $ac_val in
1183b1297603Smrg    [\\/$]* | ?:[\\/]* )  continue;;
1184b1297603Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1185b1297603Smrg  esac
118654e0bb33Smrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1187b1297603Smrgdone
1188b1297603Smrg
1189b1297603Smrg# There might be people who depend on the old broken behavior: `$host'
1190b1297603Smrg# used to hold the argument of --host etc.
1191b1297603Smrg# FIXME: To remove some day.
1192b1297603Smrgbuild=$build_alias
1193b1297603Smrghost=$host_alias
1194b1297603Smrgtarget=$target_alias
1195b1297603Smrg
1196b1297603Smrg# FIXME: To remove some day.
1197b1297603Smrgif test "x$host_alias" != x; then
1198b1297603Smrg  if test "x$build_alias" = x; then
1199b1297603Smrg    cross_compiling=maybe
120054e0bb33Smrg    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
120154e0bb33Smrg    If a cross compiler is detected then cross compile mode will be used" >&2
1202b1297603Smrg  elif test "x$build_alias" != "x$host_alias"; then
1203b1297603Smrg    cross_compiling=yes
1204b1297603Smrg  fi
1205b1297603Smrgfi
1206b1297603Smrg
1207b1297603Smrgac_tool_prefix=
1208b1297603Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
1209b1297603Smrg
1210b1297603Smrgtest "$silent" = yes && exec 6>/dev/null
1211b1297603Smrg
1212b1297603Smrg
1213b1297603Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1214b1297603Smrgac_ls_di=`ls -di .` &&
1215b1297603Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
121654e0bb33Smrg  as_fn_error $? "working directory cannot be determined"
1217b1297603Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
121854e0bb33Smrg  as_fn_error $? "pwd does not report name of working directory"
1219b1297603Smrg
1220b1297603Smrg
1221b1297603Smrg# Find the source files, if location was not specified.
1222b1297603Smrgif test -z "$srcdir"; then
1223b1297603Smrg  ac_srcdir_defaulted=yes
1224b1297603Smrg  # Try the directory containing this script, then the parent directory.
12255b944e2aSmrg  ac_confdir=`$as_dirname -- "$as_myself" ||
12265b944e2aSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12275b944e2aSmrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
12285b944e2aSmrg	 X"$as_myself" : 'X\(//\)$' \| \
12295b944e2aSmrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
12305b944e2aSmrg$as_echo X"$as_myself" |
1231b1297603Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1232b1297603Smrg	    s//\1/
1233b1297603Smrg	    q
1234b1297603Smrg	  }
1235b1297603Smrg	  /^X\(\/\/\)[^/].*/{
1236b1297603Smrg	    s//\1/
1237b1297603Smrg	    q
1238b1297603Smrg	  }
1239b1297603Smrg	  /^X\(\/\/\)$/{
1240b1297603Smrg	    s//\1/
1241b1297603Smrg	    q
1242b1297603Smrg	  }
1243b1297603Smrg	  /^X\(\/\).*/{
1244b1297603Smrg	    s//\1/
1245b1297603Smrg	    q
1246b1297603Smrg	  }
1247b1297603Smrg	  s/.*/./; q'`
1248b1297603Smrg  srcdir=$ac_confdir
1249b1297603Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
1250b1297603Smrg    srcdir=..
1251b1297603Smrg  fi
1252b1297603Smrgelse
1253b1297603Smrg  ac_srcdir_defaulted=no
1254b1297603Smrgfi
1255b1297603Smrgif test ! -r "$srcdir/$ac_unique_file"; then
1256b1297603Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
125754e0bb33Smrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1258b1297603Smrgfi
1259b1297603Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1260b1297603Smrgac_abs_confdir=`(
126154e0bb33Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1262b1297603Smrg	pwd)`
1263b1297603Smrg# When building in place, set srcdir=.
1264b1297603Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1265b1297603Smrg  srcdir=.
1266b1297603Smrgfi
1267b1297603Smrg# Remove unnecessary trailing slashes from srcdir.
1268b1297603Smrg# Double slashes in file names in object file debugging info
1269b1297603Smrg# mess up M-x gdb in Emacs.
1270b1297603Smrgcase $srcdir in
1271b1297603Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1272b1297603Smrgesac
1273b1297603Smrgfor ac_var in $ac_precious_vars; do
1274b1297603Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1275b1297603Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
1276b1297603Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1277b1297603Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1278b1297603Smrgdone
1279b1297603Smrg
1280b1297603Smrg#
1281b1297603Smrg# Report the --help message.
1282b1297603Smrg#
1283b1297603Smrgif test "$ac_init_help" = "long"; then
1284b1297603Smrg  # Omit some internal or obsolete options to make the list less imposing.
1285b1297603Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
1286b1297603Smrg  cat <<_ACEOF
128754e0bb33Smrg\`configure' configures xinput 1.5.3 to adapt to many kinds of systems.
1288b1297603Smrg
1289b1297603SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
1290b1297603Smrg
1291b1297603SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1292b1297603SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
1293b1297603Smrg
1294b1297603SmrgDefaults for the options are specified in brackets.
1295b1297603Smrg
1296b1297603SmrgConfiguration:
1297b1297603Smrg  -h, --help              display this help and exit
1298b1297603Smrg      --help=short        display options specific to this package
1299b1297603Smrg      --help=recursive    display the short help of all the included packages
1300b1297603Smrg  -V, --version           display version information and exit
130154e0bb33Smrg  -q, --quiet, --silent   do not print \`checking ...' messages
1302b1297603Smrg      --cache-file=FILE   cache test results in FILE [disabled]
1303b1297603Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
1304b1297603Smrg  -n, --no-create         do not create output files
1305b1297603Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1306b1297603Smrg
1307b1297603SmrgInstallation directories:
1308b1297603Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
13095b944e2aSmrg                          [$ac_default_prefix]
1310b1297603Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
13115b944e2aSmrg                          [PREFIX]
1312b1297603Smrg
1313b1297603SmrgBy default, \`make install' will install all the files in
1314b1297603Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1315b1297603Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1316b1297603Smrgfor instance \`--prefix=\$HOME'.
1317b1297603Smrg
1318b1297603SmrgFor better control, use the options below.
1319b1297603Smrg
1320b1297603SmrgFine tuning of the installation directories:
13215b944e2aSmrg  --bindir=DIR            user executables [EPREFIX/bin]
13225b944e2aSmrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
13235b944e2aSmrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
13245b944e2aSmrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
13255b944e2aSmrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
13265b944e2aSmrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
13275b944e2aSmrg  --libdir=DIR            object code libraries [EPREFIX/lib]
13285b944e2aSmrg  --includedir=DIR        C header files [PREFIX/include]
13295b944e2aSmrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
13305b944e2aSmrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
13315b944e2aSmrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
13325b944e2aSmrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
13335b944e2aSmrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
13345b944e2aSmrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
13355b944e2aSmrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xinput]
13365b944e2aSmrg  --htmldir=DIR           html documentation [DOCDIR]
13375b944e2aSmrg  --dvidir=DIR            dvi documentation [DOCDIR]
13385b944e2aSmrg  --pdfdir=DIR            pdf documentation [DOCDIR]
13395b944e2aSmrg  --psdir=DIR             ps documentation [DOCDIR]
1340b1297603Smrg_ACEOF
1341b1297603Smrg
1342b1297603Smrg  cat <<\_ACEOF
1343b1297603Smrg
1344b1297603SmrgProgram names:
1345b1297603Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
1346b1297603Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
1347b1297603Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1348b1297603Smrg
1349b1297603SmrgSystem types:
1350b1297603Smrg  --build=BUILD     configure for building on BUILD [guessed]
1351b1297603Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1352b1297603Smrg_ACEOF
1353b1297603Smrgfi
1354b1297603Smrg
1355b1297603Smrgif test -n "$ac_init_help"; then
1356b1297603Smrg  case $ac_init_help in
135754e0bb33Smrg     short | recursive ) echo "Configuration of xinput 1.5.3:";;
1358b1297603Smrg   esac
1359b1297603Smrg  cat <<\_ACEOF
1360b1297603Smrg
1361b1297603SmrgOptional Features:
13625b944e2aSmrg  --disable-option-checking  ignore unrecognized --enable/--with options
1363b1297603Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1364b1297603Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1365b1297603Smrg  --enable-maintainer-mode  enable make rules and dependencies not useful
1366b1297603Smrg			  (and sometimes confusing) to the casual installer
1367b1297603Smrg  --disable-dependency-tracking  speeds up one-time build
1368b1297603Smrg  --enable-dependency-tracking   do not reject slow dependency extractors
136953719b08Smrg  --enable-strict-compilation
137053719b08Smrg                          Enable all warnings from compiler and make them
137153719b08Smrg                          errors (default: disabled)
1372cea37944Smrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
1373cea37944Smrg  --disable-silent-rules         verbose build output (undo: `make V=0')
1374b1297603Smrg
1375b1297603SmrgSome influential environment variables:
1376b1297603Smrg  CC          C compiler command
1377b1297603Smrg  CFLAGS      C compiler flags
1378b1297603Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1379b1297603Smrg              nonstandard directory <lib dir>
1380b1297603Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
138154e0bb33Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1382b1297603Smrg              you have headers in a nonstandard directory <include dir>
1383d3263506Smrg  CPP         C preprocessor
1384b1297603Smrg  PKG_CONFIG  path to pkg-config utility
138554e0bb33Smrg  PKG_CONFIG_PATH
138654e0bb33Smrg              directories to add to pkg-config's search path
138754e0bb33Smrg  PKG_CONFIG_LIBDIR
138854e0bb33Smrg              path overriding pkg-config's built-in search path
1389b1297603Smrg  XINPUT_CFLAGS
1390b1297603Smrg              C compiler flags for XINPUT, overriding pkg-config
1391b1297603Smrg  XINPUT_LIBS linker flags for XINPUT, overriding pkg-config
139253719b08Smrg  XI2_CFLAGS  C compiler flags for XI2, overriding pkg-config
139353719b08Smrg  XI2_LIBS    linker flags for XI2, overriding pkg-config
1394b1297603Smrg
1395b1297603SmrgUse these variables to override the choices made by `configure' or to help
1396b1297603Smrgit to find libraries and programs with nonstandard names/locations.
1397b1297603Smrg
1398b1297603SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1399b1297603Smrg_ACEOF
1400b1297603Smrgac_status=$?
1401b1297603Smrgfi
1402b1297603Smrg
1403b1297603Smrgif test "$ac_init_help" = "recursive"; then
1404b1297603Smrg  # If there are subdirs, report their specific --help.
1405b1297603Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
14065b944e2aSmrg    test -d "$ac_dir" ||
14075b944e2aSmrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
14085b944e2aSmrg      continue
1409b1297603Smrg    ac_builddir=.
1410b1297603Smrg
1411b1297603Smrgcase "$ac_dir" in
1412b1297603Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1413b1297603Smrg*)
14145b944e2aSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1415b1297603Smrg  # A ".." for each directory in $ac_dir_suffix.
14165b944e2aSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1417b1297603Smrg  case $ac_top_builddir_sub in
1418b1297603Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1419b1297603Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1420b1297603Smrg  esac ;;
1421b1297603Smrgesac
1422b1297603Smrgac_abs_top_builddir=$ac_pwd
1423b1297603Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1424b1297603Smrg# for backward compatibility:
1425b1297603Smrgac_top_builddir=$ac_top_build_prefix
1426b1297603Smrg
142754e0bb33Smrgcase $srcdir in
142854e0bb33Smrg  .)  # We are building in place.
142954e0bb33Smrg    ac_srcdir=.
143054e0bb33Smrg    ac_top_srcdir=$ac_top_builddir_sub
143154e0bb33Smrg    ac_abs_top_srcdir=$ac_pwd ;;
143254e0bb33Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
143354e0bb33Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
143454e0bb33Smrg    ac_top_srcdir=$srcdir
143554e0bb33Smrg    ac_abs_top_srcdir=$srcdir ;;
143654e0bb33Smrg  *) # Relative name.
143754e0bb33Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
143854e0bb33Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
143954e0bb33Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
144054e0bb33Smrgesac
144154e0bb33Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
144254e0bb33Smrg
144354e0bb33Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
144454e0bb33Smrg    # Check for guested configure.
144554e0bb33Smrg    if test -f "$ac_srcdir/configure.gnu"; then
144654e0bb33Smrg      echo &&
144754e0bb33Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
144854e0bb33Smrg    elif test -f "$ac_srcdir/configure"; then
144954e0bb33Smrg      echo &&
145054e0bb33Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
145154e0bb33Smrg    else
145254e0bb33Smrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
145354e0bb33Smrg    fi || ac_status=$?
145454e0bb33Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
145554e0bb33Smrg  done
145654e0bb33Smrgfi
145754e0bb33Smrg
145854e0bb33Smrgtest -n "$ac_init_help" && exit $ac_status
145954e0bb33Smrgif $ac_init_version; then
146054e0bb33Smrg  cat <<\_ACEOF
146154e0bb33Smrgxinput configure 1.5.3
146254e0bb33Smrggenerated by GNU Autoconf 2.66
146354e0bb33Smrg
146454e0bb33SmrgCopyright (C) 2010 Free Software Foundation, Inc.
146554e0bb33SmrgThis configure script is free software; the Free Software Foundation
146654e0bb33Smrggives unlimited permission to copy, distribute and modify it.
146754e0bb33Smrg_ACEOF
146854e0bb33Smrg  exit
146954e0bb33Smrgfi
147054e0bb33Smrg
147154e0bb33Smrg## ------------------------ ##
147254e0bb33Smrg## Autoconf initialization. ##
147354e0bb33Smrg## ------------------------ ##
147454e0bb33Smrg
147554e0bb33Smrg# ac_fn_c_try_compile LINENO
147654e0bb33Smrg# --------------------------
147754e0bb33Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
147854e0bb33Smrgac_fn_c_try_compile ()
147954e0bb33Smrg{
148054e0bb33Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
148154e0bb33Smrg  rm -f conftest.$ac_objext
148254e0bb33Smrg  if { { ac_try="$ac_compile"
148354e0bb33Smrgcase "(($ac_try" in
148454e0bb33Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
148554e0bb33Smrg  *) ac_try_echo=$ac_try;;
148654e0bb33Smrgesac
148754e0bb33Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
148854e0bb33Smrg$as_echo "$ac_try_echo"; } >&5
148954e0bb33Smrg  (eval "$ac_compile") 2>conftest.err
149054e0bb33Smrg  ac_status=$?
149154e0bb33Smrg  if test -s conftest.err; then
149254e0bb33Smrg    grep -v '^ *+' conftest.err >conftest.er1
149354e0bb33Smrg    cat conftest.er1 >&5
149454e0bb33Smrg    mv -f conftest.er1 conftest.err
149554e0bb33Smrg  fi
149654e0bb33Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
149754e0bb33Smrg  test $ac_status = 0; } && {
149854e0bb33Smrg	 test -z "$ac_c_werror_flag" ||
149954e0bb33Smrg	 test ! -s conftest.err
150054e0bb33Smrg       } && test -s conftest.$ac_objext; then :
150154e0bb33Smrg  ac_retval=0
150254e0bb33Smrgelse
150354e0bb33Smrg  $as_echo "$as_me: failed program was:" >&5
150454e0bb33Smrgsed 's/^/| /' conftest.$ac_ext >&5
150554e0bb33Smrg
150654e0bb33Smrg	ac_retval=1
150754e0bb33Smrgfi
150854e0bb33Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
150954e0bb33Smrg  as_fn_set_status $ac_retval
151054e0bb33Smrg
151154e0bb33Smrg} # ac_fn_c_try_compile
151254e0bb33Smrg
151354e0bb33Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
151454e0bb33Smrg# ---------------------------------------------
151554e0bb33Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
151654e0bb33Smrg# accordingly.
151754e0bb33Smrgac_fn_c_check_decl ()
151854e0bb33Smrg{
151954e0bb33Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
152054e0bb33Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
152154e0bb33Smrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
152254e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
152354e0bb33Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
152454e0bb33Smrgif eval "test \"\${$3+set}\"" = set; then :
152554e0bb33Smrg  $as_echo_n "(cached) " >&6
152654e0bb33Smrgelse
152754e0bb33Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
152854e0bb33Smrg/* end confdefs.h.  */
152954e0bb33Smrg$4
153054e0bb33Smrgint
153154e0bb33Smrgmain ()
153254e0bb33Smrg{
153354e0bb33Smrg#ifndef $as_decl_name
153454e0bb33Smrg#ifdef __cplusplus
153554e0bb33Smrg  (void) $as_decl_use;
153654e0bb33Smrg#else
153754e0bb33Smrg  (void) $as_decl_name;
153854e0bb33Smrg#endif
153954e0bb33Smrg#endif
154054e0bb33Smrg
154154e0bb33Smrg  ;
154254e0bb33Smrg  return 0;
154354e0bb33Smrg}
154454e0bb33Smrg_ACEOF
154554e0bb33Smrgif ac_fn_c_try_compile "$LINENO"; then :
154654e0bb33Smrg  eval "$3=yes"
154754e0bb33Smrgelse
154854e0bb33Smrg  eval "$3=no"
154954e0bb33Smrgfi
155054e0bb33Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
155154e0bb33Smrgfi
155254e0bb33Smrgeval ac_res=\$$3
155354e0bb33Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
155454e0bb33Smrg$as_echo "$ac_res" >&6; }
155554e0bb33Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
155654e0bb33Smrg
155754e0bb33Smrg} # ac_fn_c_check_decl
155854e0bb33Smrg
155954e0bb33Smrg# ac_fn_c_try_cpp LINENO
156054e0bb33Smrg# ----------------------
156154e0bb33Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
156254e0bb33Smrgac_fn_c_try_cpp ()
156354e0bb33Smrg{
156454e0bb33Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
156554e0bb33Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
156654e0bb33Smrgcase "(($ac_try" in
156754e0bb33Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
156854e0bb33Smrg  *) ac_try_echo=$ac_try;;
156954e0bb33Smrgesac
157054e0bb33Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
157154e0bb33Smrg$as_echo "$ac_try_echo"; } >&5
157254e0bb33Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
157354e0bb33Smrg  ac_status=$?
157454e0bb33Smrg  if test -s conftest.err; then
157554e0bb33Smrg    grep -v '^ *+' conftest.err >conftest.er1
157654e0bb33Smrg    cat conftest.er1 >&5
157754e0bb33Smrg    mv -f conftest.er1 conftest.err
157854e0bb33Smrg  fi
157954e0bb33Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
158054e0bb33Smrg  test $ac_status = 0; } >/dev/null && {
158154e0bb33Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
158254e0bb33Smrg	 test ! -s conftest.err
158354e0bb33Smrg       }; then :
158454e0bb33Smrg  ac_retval=0
158554e0bb33Smrgelse
158654e0bb33Smrg  $as_echo "$as_me: failed program was:" >&5
158754e0bb33Smrgsed 's/^/| /' conftest.$ac_ext >&5
158854e0bb33Smrg
158954e0bb33Smrg    ac_retval=1
159054e0bb33Smrgfi
159154e0bb33Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
159254e0bb33Smrg  as_fn_set_status $ac_retval
159354e0bb33Smrg
159454e0bb33Smrg} # ac_fn_c_try_cpp
159554e0bb33Smrg
159654e0bb33Smrg# ac_fn_c_try_run LINENO
159754e0bb33Smrg# ----------------------
159854e0bb33Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
159954e0bb33Smrg# that executables *can* be run.
160054e0bb33Smrgac_fn_c_try_run ()
160154e0bb33Smrg{
160254e0bb33Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
160354e0bb33Smrg  if { { ac_try="$ac_link"
160454e0bb33Smrgcase "(($ac_try" in
160554e0bb33Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
160654e0bb33Smrg  *) ac_try_echo=$ac_try;;
1607b1297603Smrgesac
160854e0bb33Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
160954e0bb33Smrg$as_echo "$ac_try_echo"; } >&5
161054e0bb33Smrg  (eval "$ac_link") 2>&5
161154e0bb33Smrg  ac_status=$?
161254e0bb33Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
161354e0bb33Smrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
161454e0bb33Smrg  { { case "(($ac_try" in
161554e0bb33Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
161654e0bb33Smrg  *) ac_try_echo=$ac_try;;
161754e0bb33Smrgesac
161854e0bb33Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
161954e0bb33Smrg$as_echo "$ac_try_echo"; } >&5
162054e0bb33Smrg  (eval "$ac_try") 2>&5
162154e0bb33Smrg  ac_status=$?
162254e0bb33Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
162354e0bb33Smrg  test $ac_status = 0; }; }; then :
162454e0bb33Smrg  ac_retval=0
162554e0bb33Smrgelse
162654e0bb33Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
162754e0bb33Smrg       $as_echo "$as_me: failed program was:" >&5
162854e0bb33Smrgsed 's/^/| /' conftest.$ac_ext >&5
1629b1297603Smrg
163054e0bb33Smrg       ac_retval=$ac_status
1631b1297603Smrgfi
163254e0bb33Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
163354e0bb33Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
163454e0bb33Smrg  as_fn_set_status $ac_retval
1635b1297603Smrg
163654e0bb33Smrg} # ac_fn_c_try_run
1637b1297603Smrg
163854e0bb33Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
163954e0bb33Smrg# -------------------------------------------------------
164054e0bb33Smrg# Tests whether HEADER exists and can be compiled using the include files in
164154e0bb33Smrg# INCLUDES, setting the cache variable VAR accordingly.
164254e0bb33Smrgac_fn_c_check_header_compile ()
164354e0bb33Smrg{
164454e0bb33Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
164554e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
164654e0bb33Smrg$as_echo_n "checking for $2... " >&6; }
164754e0bb33Smrgif eval "test \"\${$3+set}\"" = set; then :
164854e0bb33Smrg  $as_echo_n "(cached) " >&6
164954e0bb33Smrgelse
165054e0bb33Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
165154e0bb33Smrg/* end confdefs.h.  */
165254e0bb33Smrg$4
165354e0bb33Smrg#include <$2>
1654b1297603Smrg_ACEOF
165554e0bb33Smrgif ac_fn_c_try_compile "$LINENO"; then :
165654e0bb33Smrg  eval "$3=yes"
165754e0bb33Smrgelse
165854e0bb33Smrg  eval "$3=no"
165954e0bb33Smrgfi
166054e0bb33Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1661b1297603Smrgfi
166254e0bb33Smrgeval ac_res=\$$3
166354e0bb33Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
166454e0bb33Smrg$as_echo "$ac_res" >&6; }
166554e0bb33Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
166654e0bb33Smrg
166754e0bb33Smrg} # ac_fn_c_check_header_compile
1668b1297603Smrgcat >config.log <<_ACEOF
1669b1297603SmrgThis file contains any messages produced by compilers while
1670b1297603Smrgrunning configure, to aid debugging if configure makes a mistake.
1671b1297603Smrg
167254e0bb33SmrgIt was created by xinput $as_me 1.5.3, which was
167354e0bb33Smrggenerated by GNU Autoconf 2.66.  Invocation command line was
1674b1297603Smrg
1675b1297603Smrg  $ $0 $@
1676b1297603Smrg
1677b1297603Smrg_ACEOF
1678b1297603Smrgexec 5>>config.log
1679b1297603Smrg{
1680b1297603Smrgcat <<_ASUNAME
1681b1297603Smrg## --------- ##
1682b1297603Smrg## Platform. ##
1683b1297603Smrg## --------- ##
1684b1297603Smrg
1685b1297603Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1686b1297603Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
1687b1297603Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
1688b1297603Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
1689b1297603Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
1690b1297603Smrg
1691b1297603Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1692b1297603Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1693b1297603Smrg
1694b1297603Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1695b1297603Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1696b1297603Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1697b1297603Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1698b1297603Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1699b1297603Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1700b1297603Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1701b1297603Smrg
1702b1297603Smrg_ASUNAME
1703b1297603Smrg
1704b1297603Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705b1297603Smrgfor as_dir in $PATH
1706b1297603Smrgdo
1707b1297603Smrg  IFS=$as_save_IFS
1708b1297603Smrg  test -z "$as_dir" && as_dir=.
170954e0bb33Smrg    $as_echo "PATH: $as_dir"
171054e0bb33Smrg  done
1711b1297603SmrgIFS=$as_save_IFS
1712b1297603Smrg
1713b1297603Smrg} >&5
1714b1297603Smrg
1715b1297603Smrgcat >&5 <<_ACEOF
1716b1297603Smrg
1717b1297603Smrg
1718b1297603Smrg## ----------- ##
1719b1297603Smrg## Core tests. ##
1720b1297603Smrg## ----------- ##
1721b1297603Smrg
1722b1297603Smrg_ACEOF
1723b1297603Smrg
1724b1297603Smrg
1725b1297603Smrg# Keep a trace of the command line.
1726b1297603Smrg# Strip out --no-create and --no-recursion so they do not pile up.
1727b1297603Smrg# Strip out --silent because we don't want to record it for future runs.
1728b1297603Smrg# Also quote any args containing shell meta-characters.
1729b1297603Smrg# Make two passes to allow for proper duplicate-argument suppression.
1730b1297603Smrgac_configure_args=
1731b1297603Smrgac_configure_args0=
1732b1297603Smrgac_configure_args1=
1733b1297603Smrgac_must_keep_next=false
1734b1297603Smrgfor ac_pass in 1 2
1735b1297603Smrgdo
1736b1297603Smrg  for ac_arg
1737b1297603Smrg  do
1738b1297603Smrg    case $ac_arg in
1739b1297603Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1740b1297603Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1741b1297603Smrg    | -silent | --silent | --silen | --sile | --sil)
1742b1297603Smrg      continue ;;
1743b1297603Smrg    *\'*)
17445b944e2aSmrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1745b1297603Smrg    esac
1746b1297603Smrg    case $ac_pass in
174754e0bb33Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1748b1297603Smrg    2)
174954e0bb33Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
1750b1297603Smrg      if test $ac_must_keep_next = true; then
1751b1297603Smrg	ac_must_keep_next=false # Got value, back to normal.
1752b1297603Smrg      else
1753b1297603Smrg	case $ac_arg in
1754b1297603Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
1755b1297603Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1756b1297603Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1757b1297603Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
1758b1297603Smrg	    case "$ac_configure_args0 " in
1759b1297603Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1760b1297603Smrg	    esac
1761b1297603Smrg	    ;;
1762b1297603Smrg	  -* ) ac_must_keep_next=true ;;
1763b1297603Smrg	esac
1764b1297603Smrg      fi
176554e0bb33Smrg      as_fn_append ac_configure_args " '$ac_arg'"
1766b1297603Smrg      ;;
1767b1297603Smrg    esac
1768b1297603Smrg  done
1769b1297603Smrgdone
177054e0bb33Smrg{ ac_configure_args0=; unset ac_configure_args0;}
177154e0bb33Smrg{ ac_configure_args1=; unset ac_configure_args1;}
1772b1297603Smrg
1773b1297603Smrg# When interrupted or exit'd, cleanup temporary files, and complete
1774b1297603Smrg# config.log.  We remove comments because anyway the quotes in there
1775b1297603Smrg# would cause problems or look ugly.
1776b1297603Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
1777b1297603Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1778b1297603Smrgtrap 'exit_status=$?
1779b1297603Smrg  # Save into config.log some information that might help in debugging.
1780b1297603Smrg  {
1781b1297603Smrg    echo
1782b1297603Smrg
178354e0bb33Smrg    $as_echo "## ---------------- ##
1784b1297603Smrg## Cache variables. ##
178554e0bb33Smrg## ---------------- ##"
1786b1297603Smrg    echo
1787b1297603Smrg    # The following way of writing the cache mishandles newlines in values,
1788b1297603Smrg(
1789b1297603Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1790b1297603Smrg    eval ac_val=\$$ac_var
1791b1297603Smrg    case $ac_val in #(
1792b1297603Smrg    *${as_nl}*)
1793b1297603Smrg      case $ac_var in #(
179454e0bb33Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17955b944e2aSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1796b1297603Smrg      esac
1797b1297603Smrg      case $ac_var in #(
1798b1297603Smrg      _ | IFS | as_nl) ;; #(
17995b944e2aSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
180054e0bb33Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
1801b1297603Smrg      esac ;;
1802b1297603Smrg    esac
1803b1297603Smrg  done
1804b1297603Smrg  (set) 2>&1 |
1805b1297603Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1806b1297603Smrg    *${as_nl}ac_space=\ *)
1807b1297603Smrg      sed -n \
1808b1297603Smrg	"s/'\''/'\''\\\\'\'''\''/g;
1809b1297603Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1810b1297603Smrg      ;; #(
1811b1297603Smrg    *)
1812b1297603Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1813b1297603Smrg      ;;
1814b1297603Smrg    esac |
1815b1297603Smrg    sort
1816b1297603Smrg)
1817b1297603Smrg    echo
1818b1297603Smrg
181954e0bb33Smrg    $as_echo "## ----------------- ##
1820b1297603Smrg## Output variables. ##
182154e0bb33Smrg## ----------------- ##"
1822b1297603Smrg    echo
1823b1297603Smrg    for ac_var in $ac_subst_vars
1824b1297603Smrg    do
1825b1297603Smrg      eval ac_val=\$$ac_var
1826b1297603Smrg      case $ac_val in
18275b944e2aSmrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1828b1297603Smrg      esac
18295b944e2aSmrg      $as_echo "$ac_var='\''$ac_val'\''"
1830b1297603Smrg    done | sort
1831b1297603Smrg    echo
1832b1297603Smrg
1833b1297603Smrg    if test -n "$ac_subst_files"; then
183454e0bb33Smrg      $as_echo "## ------------------- ##
1835b1297603Smrg## File substitutions. ##
183654e0bb33Smrg## ------------------- ##"
1837b1297603Smrg      echo
1838b1297603Smrg      for ac_var in $ac_subst_files
1839b1297603Smrg      do
1840b1297603Smrg	eval ac_val=\$$ac_var
1841b1297603Smrg	case $ac_val in
18425b944e2aSmrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1843b1297603Smrg	esac
18445b944e2aSmrg	$as_echo "$ac_var='\''$ac_val'\''"
1845b1297603Smrg      done | sort
1846b1297603Smrg      echo
1847b1297603Smrg    fi
1848b1297603Smrg
1849b1297603Smrg    if test -s confdefs.h; then
185054e0bb33Smrg      $as_echo "## ----------- ##
1851b1297603Smrg## confdefs.h. ##
185254e0bb33Smrg## ----------- ##"
1853b1297603Smrg      echo
1854b1297603Smrg      cat confdefs.h
1855b1297603Smrg      echo
1856b1297603Smrg    fi
1857b1297603Smrg    test "$ac_signal" != 0 &&
18585b944e2aSmrg      $as_echo "$as_me: caught signal $ac_signal"
18595b944e2aSmrg    $as_echo "$as_me: exit $exit_status"
1860b1297603Smrg  } >&5
1861b1297603Smrg  rm -f core *.core core.conftest.* &&
1862b1297603Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1863b1297603Smrg    exit $exit_status
1864b1297603Smrg' 0
1865b1297603Smrgfor ac_signal in 1 2 13 15; do
186654e0bb33Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1867b1297603Smrgdone
1868b1297603Smrgac_signal=0
1869b1297603Smrg
1870b1297603Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
1871b1297603Smrgrm -f -r conftest* confdefs.h
1872b1297603Smrg
187354e0bb33Smrg$as_echo "/* confdefs.h */" > confdefs.h
187454e0bb33Smrg
1875b1297603Smrg# Predefined preprocessor variables.
1876b1297603Smrg
1877b1297603Smrgcat >>confdefs.h <<_ACEOF
1878b1297603Smrg#define PACKAGE_NAME "$PACKAGE_NAME"
1879b1297603Smrg_ACEOF
1880b1297603Smrg
1881b1297603Smrgcat >>confdefs.h <<_ACEOF
1882b1297603Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1883b1297603Smrg_ACEOF
1884b1297603Smrg
1885b1297603Smrgcat >>confdefs.h <<_ACEOF
1886b1297603Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
1887b1297603Smrg_ACEOF
1888b1297603Smrg
1889b1297603Smrgcat >>confdefs.h <<_ACEOF
1890b1297603Smrg#define PACKAGE_STRING "$PACKAGE_STRING"
1891b1297603Smrg_ACEOF
1892b1297603Smrg
1893b1297603Smrgcat >>confdefs.h <<_ACEOF
1894b1297603Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1895b1297603Smrg_ACEOF
1896b1297603Smrg
189754e0bb33Smrgcat >>confdefs.h <<_ACEOF
189854e0bb33Smrg#define PACKAGE_URL "$PACKAGE_URL"
189954e0bb33Smrg_ACEOF
190054e0bb33Smrg
1901b1297603Smrg
1902b1297603Smrg# Let the site file select an alternate cache file if it wants to.
19035b944e2aSmrg# Prefer an explicitly selected file to automatically selected ones.
19045b944e2aSmrgac_site_file1=NONE
19055b944e2aSmrgac_site_file2=NONE
1906b1297603Smrgif test -n "$CONFIG_SITE"; then
190754e0bb33Smrg  # We do not want a PATH search for config.site.
190854e0bb33Smrg  case $CONFIG_SITE in #((
190954e0bb33Smrg    -*)  ac_site_file1=./$CONFIG_SITE;;
191054e0bb33Smrg    */*) ac_site_file1=$CONFIG_SITE;;
191154e0bb33Smrg    *)   ac_site_file1=./$CONFIG_SITE;;
191254e0bb33Smrg  esac
1913b1297603Smrgelif test "x$prefix" != xNONE; then
19145b944e2aSmrg  ac_site_file1=$prefix/share/config.site
19155b944e2aSmrg  ac_site_file2=$prefix/etc/config.site
1916b1297603Smrgelse
19175b944e2aSmrg  ac_site_file1=$ac_default_prefix/share/config.site
19185b944e2aSmrg  ac_site_file2=$ac_default_prefix/etc/config.site
1919b1297603Smrgfi
19205b944e2aSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
1921b1297603Smrgdo
19225b944e2aSmrg  test "x$ac_site_file" = xNONE && continue
192354e0bb33Smrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
192454e0bb33Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
19255b944e2aSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1926b1297603Smrg    sed 's/^/| /' "$ac_site_file" >&5
192754e0bb33Smrg    . "$ac_site_file" \
192854e0bb33Smrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
192954e0bb33Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
193054e0bb33Smrgas_fn_error $? "failed to load site script $ac_site_file
193154e0bb33SmrgSee \`config.log' for more details" "$LINENO" 5; }
1932b1297603Smrg  fi
1933b1297603Smrgdone
1934b1297603Smrg
1935b1297603Smrgif test -r "$cache_file"; then
193654e0bb33Smrg  # Some versions of bash will fail to source /dev/null (special files
193754e0bb33Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
193854e0bb33Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
193954e0bb33Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
19405b944e2aSmrg$as_echo "$as_me: loading cache $cache_file" >&6;}
1941b1297603Smrg    case $cache_file in
1942b1297603Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1943b1297603Smrg      *)                      . "./$cache_file";;
1944b1297603Smrg    esac
1945b1297603Smrg  fi
1946b1297603Smrgelse
194754e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
19485b944e2aSmrg$as_echo "$as_me: creating cache $cache_file" >&6;}
1949b1297603Smrg  >$cache_file
1950b1297603Smrgfi
1951b1297603Smrg
1952b1297603Smrg# Check that the precious variables saved in the cache have kept the same
1953b1297603Smrg# value.
1954b1297603Smrgac_cache_corrupted=false
1955b1297603Smrgfor ac_var in $ac_precious_vars; do
1956b1297603Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1957b1297603Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
1958b1297603Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1959b1297603Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
1960b1297603Smrg  case $ac_old_set,$ac_new_set in
1961b1297603Smrg    set,)
196254e0bb33Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
19635b944e2aSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1964b1297603Smrg      ac_cache_corrupted=: ;;
1965b1297603Smrg    ,set)
196654e0bb33Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
19675b944e2aSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1968b1297603Smrg      ac_cache_corrupted=: ;;
1969b1297603Smrg    ,);;
1970b1297603Smrg    *)
1971b1297603Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
19725b944e2aSmrg	# differences in whitespace do not lead to failure.
19735b944e2aSmrg	ac_old_val_w=`echo x $ac_old_val`
19745b944e2aSmrg	ac_new_val_w=`echo x $ac_new_val`
19755b944e2aSmrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
197654e0bb33Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
19775b944e2aSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
19785b944e2aSmrg	  ac_cache_corrupted=:
19795b944e2aSmrg	else
198054e0bb33Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
19815b944e2aSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
19825b944e2aSmrg	  eval $ac_var=\$ac_old_val
19835b944e2aSmrg	fi
198454e0bb33Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
19855b944e2aSmrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
198654e0bb33Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
19875b944e2aSmrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1988b1297603Smrg      fi;;
1989b1297603Smrg  esac
1990b1297603Smrg  # Pass precious variables to config.status.
1991b1297603Smrg  if test "$ac_new_set" = set; then
1992b1297603Smrg    case $ac_new_val in
19935b944e2aSmrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1994b1297603Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
1995b1297603Smrg    esac
1996b1297603Smrg    case " $ac_configure_args " in
1997b1297603Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
199854e0bb33Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1999b1297603Smrg    esac
2000b1297603Smrg  fi
2001b1297603Smrgdone
2002b1297603Smrgif $ac_cache_corrupted; then
200354e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20045b944e2aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
200554e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
20065b944e2aSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
200754e0bb33Smrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2008b1297603Smrgfi
200954e0bb33Smrg## -------------------- ##
201054e0bb33Smrg## Main body of script. ##
201154e0bb33Smrg## -------------------- ##
2012b1297603Smrg
2013b1297603Smrgac_ext=c
2014b1297603Smrgac_cpp='$CPP $CPPFLAGS'
2015b1297603Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2016b1297603Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2017b1297603Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2018b1297603Smrg
2019b1297603Smrg
202053719b08Smrgam__api_version='1.11'
20215b944e2aSmrg
2022b1297603Smrgac_aux_dir=
2023b1297603Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2024b1297603Smrg  if test -f "$ac_dir/install-sh"; then
2025b1297603Smrg    ac_aux_dir=$ac_dir
2026b1297603Smrg    ac_install_sh="$ac_aux_dir/install-sh -c"
2027b1297603Smrg    break
2028b1297603Smrg  elif test -f "$ac_dir/install.sh"; then
2029b1297603Smrg    ac_aux_dir=$ac_dir
2030b1297603Smrg    ac_install_sh="$ac_aux_dir/install.sh -c"
2031b1297603Smrg    break
2032b1297603Smrg  elif test -f "$ac_dir/shtool"; then
2033b1297603Smrg    ac_aux_dir=$ac_dir
2034b1297603Smrg    ac_install_sh="$ac_aux_dir/shtool install -c"
2035b1297603Smrg    break
2036b1297603Smrg  fi
2037b1297603Smrgdone
2038b1297603Smrgif test -z "$ac_aux_dir"; then
203954e0bb33Smrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2040b1297603Smrgfi
2041b1297603Smrg
2042b1297603Smrg# These three variables are undocumented and unsupported,
2043b1297603Smrg# and are intended to be withdrawn in a future Autoconf release.
2044b1297603Smrg# They can cause serious problems if a builder's source tree is in a directory
2045b1297603Smrg# whose full name contains unusual characters.
2046b1297603Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2047b1297603Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2048b1297603Smrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2049b1297603Smrg
2050b1297603Smrg
2051b1297603Smrg# Find a good install program.  We prefer a C program (faster),
2052b1297603Smrg# so one script is as good as another.  But avoid the broken or
2053b1297603Smrg# incompatible versions:
2054b1297603Smrg# SysV /etc/install, /usr/sbin/install
2055b1297603Smrg# SunOS /usr/etc/install
2056b1297603Smrg# IRIX /sbin/install
2057b1297603Smrg# AIX /bin/install
2058b1297603Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
2059b1297603Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2060b1297603Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2061b1297603Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2062b1297603Smrg# OS/2's system install, which has a completely different semantic
2063b1297603Smrg# ./install, which can be erroneously created by make from ./install.sh.
20645b944e2aSmrg# Reject install programs that cannot install multiple files.
206554e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
20665b944e2aSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
2067b1297603Smrgif test -z "$INSTALL"; then
206854e0bb33Smrgif test "${ac_cv_path_install+set}" = set; then :
20695b944e2aSmrg  $as_echo_n "(cached) " >&6
2070b1297603Smrgelse
2071b1297603Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072b1297603Smrgfor as_dir in $PATH
2073b1297603Smrgdo
2074b1297603Smrg  IFS=$as_save_IFS
2075b1297603Smrg  test -z "$as_dir" && as_dir=.
207654e0bb33Smrg    # Account for people who put trailing slashes in PATH elements.
207754e0bb33Smrgcase $as_dir/ in #((
207854e0bb33Smrg  ./ | .// | /[cC]/* | \
2079b1297603Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
208054e0bb33Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2081b1297603Smrg  /usr/ucb/* ) ;;
2082b1297603Smrg  *)
2083b1297603Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
2084b1297603Smrg    # Don't use installbsd from OSF since it installs stuff as root
2085b1297603Smrg    # by default.
2086b1297603Smrg    for ac_prog in ginstall scoinst install; do
2087b1297603Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
2088b1297603Smrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2089b1297603Smrg	  if test $ac_prog = install &&
2090b1297603Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2091b1297603Smrg	    # AIX install.  It has an incompatible calling convention.
2092b1297603Smrg	    :
2093b1297603Smrg	  elif test $ac_prog = install &&
2094b1297603Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2095b1297603Smrg	    # program-specific install script used by HP pwplus--don't use.
2096b1297603Smrg	    :
2097b1297603Smrg	  else
20985b944e2aSmrg	    rm -rf conftest.one conftest.two conftest.dir
20995b944e2aSmrg	    echo one > conftest.one
21005b944e2aSmrg	    echo two > conftest.two
21015b944e2aSmrg	    mkdir conftest.dir
21025b944e2aSmrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
21035b944e2aSmrg	      test -s conftest.one && test -s conftest.two &&
21045b944e2aSmrg	      test -s conftest.dir/conftest.one &&
21055b944e2aSmrg	      test -s conftest.dir/conftest.two
21065b944e2aSmrg	    then
21075b944e2aSmrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
21085b944e2aSmrg	      break 3
21095b944e2aSmrg	    fi
2110b1297603Smrg	  fi
2111b1297603Smrg	fi
2112b1297603Smrg      done
2113b1297603Smrg    done
2114b1297603Smrg    ;;
2115b1297603Smrgesac
21165b944e2aSmrg
211754e0bb33Smrg  done
2118b1297603SmrgIFS=$as_save_IFS
2119b1297603Smrg
21205b944e2aSmrgrm -rf conftest.one conftest.two conftest.dir
2121b1297603Smrg
2122b1297603Smrgfi
2123b1297603Smrg  if test "${ac_cv_path_install+set}" = set; then
2124b1297603Smrg    INSTALL=$ac_cv_path_install
2125b1297603Smrg  else
2126b1297603Smrg    # As a last resort, use the slow shell script.  Don't cache a
2127b1297603Smrg    # value for INSTALL within a source directory, because that will
2128b1297603Smrg    # break other packages using the cache if that directory is
2129b1297603Smrg    # removed, or if the value is a relative name.
2130b1297603Smrg    INSTALL=$ac_install_sh
2131b1297603Smrg  fi
2132b1297603Smrgfi
213354e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
21345b944e2aSmrg$as_echo "$INSTALL" >&6; }
2135b1297603Smrg
2136b1297603Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2137b1297603Smrg# It thinks the first close brace ends the variable substitution.
2138b1297603Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2139b1297603Smrg
2140b1297603Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2141b1297603Smrg
2142b1297603Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2143b1297603Smrg
214454e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
21455b944e2aSmrg$as_echo_n "checking whether build environment is sane... " >&6; }
2146b1297603Smrg# Just in case
2147b1297603Smrgsleep 1
2148b1297603Smrgecho timestamp > conftest.file
214953719b08Smrg# Reject unsafe characters in $srcdir or the absolute working directory
215053719b08Smrg# name.  Accept space and tab only in the latter.
215153719b08Smrgam_lf='
215253719b08Smrg'
215353719b08Smrgcase `pwd` in
215453719b08Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
215554e0bb33Smrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
215653719b08Smrgesac
215753719b08Smrgcase $srcdir in
215853719b08Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
215954e0bb33Smrg    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
216053719b08Smrgesac
216153719b08Smrg
2162b1297603Smrg# Do `set' in a subshell so we don't clobber the current shell's
2163b1297603Smrg# arguments.  Must try -L first in case configure is actually a
2164b1297603Smrg# symlink; some systems play weird games with the mod time of symlinks
2165b1297603Smrg# (eg FreeBSD returns the mod time of the symlink's containing
2166b1297603Smrg# directory).
2167b1297603Smrgif (
216853719b08Smrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2169b1297603Smrg   if test "$*" = "X"; then
2170b1297603Smrg      # -L didn't work.
217153719b08Smrg      set X `ls -t "$srcdir/configure" conftest.file`
2172b1297603Smrg   fi
2173b1297603Smrg   rm -f conftest.file
2174b1297603Smrg   if test "$*" != "X $srcdir/configure conftest.file" \
2175b1297603Smrg      && test "$*" != "X conftest.file $srcdir/configure"; then
2176b1297603Smrg
2177b1297603Smrg      # If neither matched, then we have a broken ls.  This can happen
2178b1297603Smrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
2179b1297603Smrg      # broken ls alias from the environment.  This has actually
2180b1297603Smrg      # happened.  Such a system could not be considered "sane".
218154e0bb33Smrg      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
218254e0bb33Smrgalias in your environment" "$LINENO" 5
2183b1297603Smrg   fi
2184b1297603Smrg
2185b1297603Smrg   test "$2" = conftest.file
2186b1297603Smrg   )
2187b1297603Smrgthen
2188b1297603Smrg   # Ok.
2189b1297603Smrg   :
2190b1297603Smrgelse
219154e0bb33Smrg   as_fn_error $? "newly created file is older than distributed files!
219254e0bb33SmrgCheck your system clock" "$LINENO" 5
2193b1297603Smrgfi
219454e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21955b944e2aSmrg$as_echo "yes" >&6; }
2196b1297603Smrgtest "$program_prefix" != NONE &&
2197b1297603Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2198b1297603Smrg# Use a double $ so make ignores it.
2199b1297603Smrgtest "$program_suffix" != NONE &&
2200b1297603Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
22015b944e2aSmrg# Double any \ or $.
2202b1297603Smrg# By default was `s,x,x', remove it if useless.
22035b944e2aSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
22045b944e2aSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2205b1297603Smrg
2206b1297603Smrg# expand $ac_aux_dir to an absolute path
2207b1297603Smrgam_aux_dir=`cd $ac_aux_dir && pwd`
2208b1297603Smrg
220953719b08Smrgif test x"${MISSING+set}" != xset; then
221053719b08Smrg  case $am_aux_dir in
221153719b08Smrg  *\ * | *\	*)
221253719b08Smrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
221353719b08Smrg  *)
221453719b08Smrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
221553719b08Smrg  esac
221653719b08Smrgfi
2217b1297603Smrg# Use eval to expand $SHELL
2218b1297603Smrgif eval "$MISSING --run true"; then
2219b1297603Smrg  am_missing_run="$MISSING --run "
2220b1297603Smrgelse
2221b1297603Smrg  am_missing_run=
222254e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
22235b944e2aSmrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
22245b944e2aSmrgfi
22255b944e2aSmrg
222653719b08Smrgif test x"${install_sh}" != xset; then
222753719b08Smrg  case $am_aux_dir in
222853719b08Smrg  *\ * | *\	*)
222953719b08Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
223053719b08Smrg  *)
223153719b08Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
223253719b08Smrg  esac
223353719b08Smrgfi
223453719b08Smrg
223553719b08Smrg# Installed binaries are usually stripped using `strip' when the user
223653719b08Smrg# run `make install-strip'.  However `strip' might not be the right
223753719b08Smrg# tool to use in cross-compilation environments, therefore Automake
223853719b08Smrg# will honor the `STRIP' environment variable to overrule this program.
223953719b08Smrgif test "$cross_compiling" != no; then
224053719b08Smrg  if test -n "$ac_tool_prefix"; then
224153719b08Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
224253719b08Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
224354e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
224453719b08Smrg$as_echo_n "checking for $ac_word... " >&6; }
224554e0bb33Smrgif test "${ac_cv_prog_STRIP+set}" = set; then :
224653719b08Smrg  $as_echo_n "(cached) " >&6
224753719b08Smrgelse
224853719b08Smrg  if test -n "$STRIP"; then
224953719b08Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
225053719b08Smrgelse
225153719b08Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225253719b08Smrgfor as_dir in $PATH
225353719b08Smrgdo
225453719b08Smrg  IFS=$as_save_IFS
225553719b08Smrg  test -z "$as_dir" && as_dir=.
225654e0bb33Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
225753719b08Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
225853719b08Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
225954e0bb33Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
226053719b08Smrg    break 2
226153719b08Smrg  fi
226253719b08Smrgdone
226354e0bb33Smrg  done
226453719b08SmrgIFS=$as_save_IFS
226553719b08Smrg
226653719b08Smrgfi
226753719b08Smrgfi
226853719b08SmrgSTRIP=$ac_cv_prog_STRIP
226953719b08Smrgif test -n "$STRIP"; then
227054e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
227153719b08Smrg$as_echo "$STRIP" >&6; }
227253719b08Smrgelse
227354e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
227453719b08Smrg$as_echo "no" >&6; }
227553719b08Smrgfi
227653719b08Smrg
227753719b08Smrg
227853719b08Smrgfi
227953719b08Smrgif test -z "$ac_cv_prog_STRIP"; then
228053719b08Smrg  ac_ct_STRIP=$STRIP
228153719b08Smrg  # Extract the first word of "strip", so it can be a program name with args.
228253719b08Smrgset dummy strip; ac_word=$2
228354e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
228453719b08Smrg$as_echo_n "checking for $ac_word... " >&6; }
228554e0bb33Smrgif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
228653719b08Smrg  $as_echo_n "(cached) " >&6
228753719b08Smrgelse
228853719b08Smrg  if test -n "$ac_ct_STRIP"; then
228953719b08Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
229053719b08Smrgelse
229153719b08Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
229253719b08Smrgfor as_dir in $PATH
229353719b08Smrgdo
229453719b08Smrg  IFS=$as_save_IFS
229553719b08Smrg  test -z "$as_dir" && as_dir=.
229654e0bb33Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
229753719b08Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
229853719b08Smrg    ac_cv_prog_ac_ct_STRIP="strip"
229954e0bb33Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
230053719b08Smrg    break 2
230153719b08Smrg  fi
230253719b08Smrgdone
230354e0bb33Smrg  done
230453719b08SmrgIFS=$as_save_IFS
230553719b08Smrg
230653719b08Smrgfi
230753719b08Smrgfi
230853719b08Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
230953719b08Smrgif test -n "$ac_ct_STRIP"; then
231054e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
231153719b08Smrg$as_echo "$ac_ct_STRIP" >&6; }
231253719b08Smrgelse
231354e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
231453719b08Smrg$as_echo "no" >&6; }
231553719b08Smrgfi
231653719b08Smrg
231753719b08Smrg  if test "x$ac_ct_STRIP" = x; then
231853719b08Smrg    STRIP=":"
231953719b08Smrg  else
232053719b08Smrg    case $cross_compiling:$ac_tool_warned in
232153719b08Smrgyes:)
232254e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
232353719b08Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
232453719b08Smrgac_tool_warned=yes ;;
232553719b08Smrgesac
232653719b08Smrg    STRIP=$ac_ct_STRIP
232753719b08Smrg  fi
232853719b08Smrgelse
232953719b08Smrg  STRIP="$ac_cv_prog_STRIP"
233053719b08Smrgfi
233153719b08Smrg
233253719b08Smrgfi
233353719b08SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
233453719b08Smrg
233554e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
23365b944e2aSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
23375b944e2aSmrgif test -z "$MKDIR_P"; then
233854e0bb33Smrg  if test "${ac_cv_path_mkdir+set}" = set; then :
23395b944e2aSmrg  $as_echo_n "(cached) " >&6
2340b1297603Smrgelse
23415b944e2aSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23425b944e2aSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
23435b944e2aSmrgdo
23445b944e2aSmrg  IFS=$as_save_IFS
23455b944e2aSmrg  test -z "$as_dir" && as_dir=.
234654e0bb33Smrg    for ac_prog in mkdir gmkdir; do
23475b944e2aSmrg	 for ac_exec_ext in '' $ac_executable_extensions; do
23485b944e2aSmrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
23495b944e2aSmrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
23505b944e2aSmrg	     'mkdir (GNU coreutils) '* | \
23515b944e2aSmrg	     'mkdir (coreutils) '* | \
23525b944e2aSmrg	     'mkdir (fileutils) '4.1*)
23535b944e2aSmrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
23545b944e2aSmrg	       break 3;;
23555b944e2aSmrg	   esac
23565b944e2aSmrg	 done
23575b944e2aSmrg       done
235854e0bb33Smrg  done
23595b944e2aSmrgIFS=$as_save_IFS
23605b944e2aSmrg
23615b944e2aSmrgfi
23625b944e2aSmrg
236354e0bb33Smrg  test -d ./--version && rmdir ./--version
23645b944e2aSmrg  if test "${ac_cv_path_mkdir+set}" = set; then
23655b944e2aSmrg    MKDIR_P="$ac_cv_path_mkdir -p"
2366b1297603Smrg  else
23675b944e2aSmrg    # As a last resort, use the slow shell script.  Don't cache a
23685b944e2aSmrg    # value for MKDIR_P within a source directory, because that will
23695b944e2aSmrg    # break other packages using the cache if that directory is
23705b944e2aSmrg    # removed, or if the value is a relative name.
23715b944e2aSmrg    MKDIR_P="$ac_install_sh -d"
2372b1297603Smrg  fi
2373b1297603Smrgfi
237454e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
23755b944e2aSmrg$as_echo "$MKDIR_P" >&6; }
23765b944e2aSmrg
23775b944e2aSmrgmkdir_p="$MKDIR_P"
23785b944e2aSmrgcase $mkdir_p in
23795b944e2aSmrg  [\\/$]* | ?:[\\/]*) ;;
23805b944e2aSmrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
23815b944e2aSmrgesac
2382b1297603Smrg
2383b1297603Smrgfor ac_prog in gawk mawk nawk awk
2384b1297603Smrgdo
2385b1297603Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
2386b1297603Smrgset dummy $ac_prog; ac_word=$2
238754e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23885b944e2aSmrg$as_echo_n "checking for $ac_word... " >&6; }
238954e0bb33Smrgif test "${ac_cv_prog_AWK+set}" = set; then :
23905b944e2aSmrg  $as_echo_n "(cached) " >&6
2391b1297603Smrgelse
2392b1297603Smrg  if test -n "$AWK"; then
2393b1297603Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2394b1297603Smrgelse
2395b1297603Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396b1297603Smrgfor as_dir in $PATH
2397b1297603Smrgdo
2398b1297603Smrg  IFS=$as_save_IFS
2399b1297603Smrg  test -z "$as_dir" && as_dir=.
240054e0bb33Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2401b1297603Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2402b1297603Smrg    ac_cv_prog_AWK="$ac_prog"
240354e0bb33Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2404b1297603Smrg    break 2
2405b1297603Smrg  fi
2406b1297603Smrgdone
240754e0bb33Smrg  done
2408b1297603SmrgIFS=$as_save_IFS
2409b1297603Smrg
2410b1297603Smrgfi
2411b1297603Smrgfi
2412b1297603SmrgAWK=$ac_cv_prog_AWK
2413b1297603Smrgif test -n "$AWK"; then
241454e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
24155b944e2aSmrg$as_echo "$AWK" >&6; }
2416b1297603Smrgelse
241754e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24185b944e2aSmrg$as_echo "no" >&6; }
2419b1297603Smrgfi
2420b1297603Smrg
2421b1297603Smrg
2422b1297603Smrg  test -n "$AWK" && break
2423b1297603Smrgdone
2424b1297603Smrg
242554e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
24265b944e2aSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
24275b944e2aSmrgset x ${MAKE-make}
24285b944e2aSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
242954e0bb33Smrgif eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
24305b944e2aSmrg  $as_echo_n "(cached) " >&6
2431b1297603Smrgelse
2432b1297603Smrg  cat >conftest.make <<\_ACEOF
2433b1297603SmrgSHELL = /bin/sh
2434b1297603Smrgall:
2435b1297603Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
2436b1297603Smrg_ACEOF
243754e0bb33Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2438b1297603Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
2439b1297603Smrg  *@@@%%%=?*=@@@%%%*)
2440b1297603Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
2441b1297603Smrg  *)
2442b1297603Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
2443b1297603Smrgesac
2444b1297603Smrgrm -f conftest.make
2445b1297603Smrgfi
2446b1297603Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
244754e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24485b944e2aSmrg$as_echo "yes" >&6; }
2449b1297603Smrg  SET_MAKE=
2450b1297603Smrgelse
245154e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24525b944e2aSmrg$as_echo "no" >&6; }
2453b1297603Smrg  SET_MAKE="MAKE=${MAKE-make}"
2454b1297603Smrgfi
2455b1297603Smrg
2456b1297603Smrgrm -rf .tst 2>/dev/null
2457b1297603Smrgmkdir .tst 2>/dev/null
2458b1297603Smrgif test -d .tst; then
2459b1297603Smrg  am__leading_dot=.
2460b1297603Smrgelse
2461b1297603Smrg  am__leading_dot=_
2462b1297603Smrgfi
2463b1297603Smrgrmdir .tst 2>/dev/null
2464b1297603Smrg
24655b944e2aSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
24665b944e2aSmrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
24675b944e2aSmrg  # is not polluted with repeated "-I."
24685b944e2aSmrg  am__isrc=' -I$(srcdir)'
24695b944e2aSmrg  # test to see if srcdir already configured
24705b944e2aSmrg  if test -f $srcdir/config.status; then
247154e0bb33Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
24725b944e2aSmrg  fi
2473b1297603Smrgfi
2474b1297603Smrg
2475b1297603Smrg# test whether we have cygpath
2476b1297603Smrgif test -z "$CYGPATH_W"; then
2477b1297603Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
2478b1297603Smrg    CYGPATH_W='cygpath -w'
2479b1297603Smrg  else
2480b1297603Smrg    CYGPATH_W=echo
2481b1297603Smrg  fi
2482b1297603Smrgfi
2483b1297603Smrg
2484b1297603Smrg
2485b1297603Smrg# Define the identity of the package.
2486b1297603Smrg PACKAGE='xinput'
248754e0bb33Smrg VERSION='1.5.3'
2488b1297603Smrg
2489b1297603Smrg
2490b1297603Smrgcat >>confdefs.h <<_ACEOF
2491b1297603Smrg#define PACKAGE "$PACKAGE"
2492b1297603Smrg_ACEOF
2493b1297603Smrg
2494b1297603Smrg
2495b1297603Smrgcat >>confdefs.h <<_ACEOF
2496b1297603Smrg#define VERSION "$VERSION"
2497b1297603Smrg_ACEOF
2498b1297603Smrg
2499b1297603Smrg# Some tools Automake needs.
2500b1297603Smrg
2501b1297603SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2502b1297603Smrg
2503b1297603Smrg
2504b1297603SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2505b1297603Smrg
2506b1297603Smrg
2507b1297603SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2508b1297603Smrg
2509b1297603Smrg
2510b1297603SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2511b1297603Smrg
2512b1297603Smrg
2513b1297603SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2514b1297603Smrg
2515b1297603Smrg# We need awk for the "check" target.  The system "awk" is bad on
2516b1297603Smrg# some platforms.
2517b1297603Smrg# Always define AMTAR for backward compatibility.
2518b1297603Smrg
2519b1297603SmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
2520b1297603Smrg
2521b1297603Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2522b1297603Smrg
2523b1297603Smrg
2524b1297603Smrg
2525b1297603Smrg
2526b1297603Smrg
252753719b08Smrg
252854e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
25295b944e2aSmrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2530b1297603Smrg    # Check whether --enable-maintainer-mode was given.
253154e0bb33Smrgif test "${enable_maintainer_mode+set}" = set; then :
2532b1297603Smrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2533b1297603Smrgelse
2534b1297603Smrg  USE_MAINTAINER_MODE=no
2535b1297603Smrgfi
2536b1297603Smrg
253754e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
25385b944e2aSmrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
25395b944e2aSmrg   if test $USE_MAINTAINER_MODE = yes; then
2540b1297603Smrg  MAINTAINER_MODE_TRUE=
2541b1297603Smrg  MAINTAINER_MODE_FALSE='#'
2542b1297603Smrgelse
2543b1297603Smrg  MAINTAINER_MODE_TRUE='#'
2544b1297603Smrg  MAINTAINER_MODE_FALSE=
2545b1297603Smrgfi
2546b1297603Smrg
2547b1297603Smrg  MAINT=$MAINTAINER_MODE_TRUE
2548b1297603Smrg
2549b1297603Smrg
2550b1297603Smrg
255153719b08Smrg# Require xorg-macros: XORG_DEFAULT_OPTIONS
2552d3263506Smrg
2553d3263506Smrg
2554d3263506Smrg
2555d3263506Smrg
2556b1297603Smrg
2557b1297603Smrg
255853719b08Smrg
255953719b08Smrg
256053719b08Smrg
256153719b08Smrg
256253719b08Smrg
256353719b08SmrgDEPDIR="${am__leading_dot}deps"
256453719b08Smrg
256553719b08Smrgac_config_commands="$ac_config_commands depfiles"
256653719b08Smrg
256753719b08Smrg
256853719b08Smrgam_make=${MAKE-make}
256953719b08Smrgcat > confinc << 'END'
257053719b08Smrgam__doit:
257153719b08Smrg	@echo this is the am__doit target
257253719b08Smrg.PHONY: am__doit
257353719b08SmrgEND
257453719b08Smrg# If we don't find an include directive, just comment out the code.
257554e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
257653719b08Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
257753719b08Smrgam__include="#"
257853719b08Smrgam__quote=
257953719b08Smrg_am_result=none
258053719b08Smrg# First try GNU make style include.
258153719b08Smrgecho "include confinc" > confmf
258253719b08Smrg# Ignore all kinds of additional output from `make'.
258353719b08Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
258453719b08Smrg*the\ am__doit\ target*)
258553719b08Smrg  am__include=include
258653719b08Smrg  am__quote=
258753719b08Smrg  _am_result=GNU
258853719b08Smrg  ;;
258953719b08Smrgesac
259053719b08Smrg# Now try BSD make style include.
259153719b08Smrgif test "$am__include" = "#"; then
259253719b08Smrg   echo '.include "confinc"' > confmf
259353719b08Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
259453719b08Smrg   *the\ am__doit\ target*)
259553719b08Smrg     am__include=.include
259653719b08Smrg     am__quote="\""
259753719b08Smrg     _am_result=BSD
259853719b08Smrg     ;;
259953719b08Smrg   esac
260053719b08Smrgfi
260153719b08Smrg
260253719b08Smrg
260354e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
260453719b08Smrg$as_echo "$_am_result" >&6; }
260553719b08Smrgrm -f confinc confmf
260653719b08Smrg
260753719b08Smrg# Check whether --enable-dependency-tracking was given.
260854e0bb33Smrgif test "${enable_dependency_tracking+set}" = set; then :
260953719b08Smrg  enableval=$enable_dependency_tracking;
261053719b08Smrgfi
261153719b08Smrg
261253719b08Smrgif test "x$enable_dependency_tracking" != xno; then
261353719b08Smrg  am_depcomp="$ac_aux_dir/depcomp"
261453719b08Smrg  AMDEPBACKSLASH='\'
261553719b08Smrgfi
261653719b08Smrg if test "x$enable_dependency_tracking" != xno; then
261753719b08Smrg  AMDEP_TRUE=
261853719b08Smrg  AMDEP_FALSE='#'
261953719b08Smrgelse
262053719b08Smrg  AMDEP_TRUE='#'
262153719b08Smrg  AMDEP_FALSE=
262253719b08Smrgfi
262353719b08Smrg
262453719b08Smrg
262553719b08Smrgac_ext=c
262653719b08Smrgac_cpp='$CPP $CPPFLAGS'
262753719b08Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
262853719b08Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
262953719b08Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
263053719b08Smrgif test -n "$ac_tool_prefix"; then
263153719b08Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
263253719b08Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
263354e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
263453719b08Smrg$as_echo_n "checking for $ac_word... " >&6; }
263554e0bb33Smrgif test "${ac_cv_prog_CC+set}" = set; then :
263653719b08Smrg  $as_echo_n "(cached) " >&6
263753719b08Smrgelse
263853719b08Smrg  if test -n "$CC"; then
263953719b08Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
264053719b08Smrgelse
264153719b08Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
264253719b08Smrgfor as_dir in $PATH
264353719b08Smrgdo
264453719b08Smrg  IFS=$as_save_IFS
264553719b08Smrg  test -z "$as_dir" && as_dir=.
264654e0bb33Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2647b1297603Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2648b1297603Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
264954e0bb33Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2650b1297603Smrg    break 2
2651b1297603Smrg  fi
2652b1297603Smrgdone
265354e0bb33Smrg  done
2654b1297603SmrgIFS=$as_save_IFS
2655b1297603Smrg
2656b1297603Smrgfi
2657b1297603Smrgfi
2658b1297603SmrgCC=$ac_cv_prog_CC
2659b1297603Smrgif test -n "$CC"; then
266054e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
26615b944e2aSmrg$as_echo "$CC" >&6; }
2662b1297603Smrgelse
266354e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26645b944e2aSmrg$as_echo "no" >&6; }
2665b1297603Smrgfi
2666b1297603Smrg
2667b1297603Smrg
2668b1297603Smrgfi
2669b1297603Smrgif test -z "$ac_cv_prog_CC"; then
2670b1297603Smrg  ac_ct_CC=$CC
2671b1297603Smrg  # Extract the first word of "gcc", so it can be a program name with args.
2672b1297603Smrgset dummy gcc; ac_word=$2
267354e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26745b944e2aSmrg$as_echo_n "checking for $ac_word... " >&6; }
267554e0bb33Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
26765b944e2aSmrg  $as_echo_n "(cached) " >&6
2677b1297603Smrgelse
2678b1297603Smrg  if test -n "$ac_ct_CC"; then
2679b1297603Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2680b1297603Smrgelse
2681b1297603Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682b1297603Smrgfor as_dir in $PATH
2683b1297603Smrgdo
2684b1297603Smrg  IFS=$as_save_IFS
2685b1297603Smrg  test -z "$as_dir" && as_dir=.
268654e0bb33Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2687b1297603Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2688b1297603Smrg    ac_cv_prog_ac_ct_CC="gcc"
268954e0bb33Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690b1297603Smrg    break 2
2691b1297603Smrg  fi
2692b1297603Smrgdone
269354e0bb33Smrg  done
2694b1297603SmrgIFS=$as_save_IFS
2695b1297603Smrg
2696b1297603Smrgfi
2697b1297603Smrgfi
2698b1297603Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2699b1297603Smrgif test -n "$ac_ct_CC"; then
270054e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
27015b944e2aSmrg$as_echo "$ac_ct_CC" >&6; }
2702b1297603Smrgelse
270354e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27045b944e2aSmrg$as_echo "no" >&6; }
2705b1297603Smrgfi
2706b1297603Smrg
2707b1297603Smrg  if test "x$ac_ct_CC" = x; then
2708b1297603Smrg    CC=""
2709b1297603Smrg  else
2710b1297603Smrg    case $cross_compiling:$ac_tool_warned in
2711b1297603Smrgyes:)
271254e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27135b944e2aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2714b1297603Smrgac_tool_warned=yes ;;
2715b1297603Smrgesac
2716b1297603Smrg    CC=$ac_ct_CC
2717b1297603Smrg  fi
2718b1297603Smrgelse
2719b1297603Smrg  CC="$ac_cv_prog_CC"
2720b1297603Smrgfi
2721b1297603Smrg
2722b1297603Smrgif test -z "$CC"; then
2723b1297603Smrg          if test -n "$ac_tool_prefix"; then
2724b1297603Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2725b1297603Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
272654e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27275b944e2aSmrg$as_echo_n "checking for $ac_word... " >&6; }
272854e0bb33Smrgif test "${ac_cv_prog_CC+set}" = set; then :
27295b944e2aSmrg  $as_echo_n "(cached) " >&6
2730b1297603Smrgelse
2731b1297603Smrg  if test -n "$CC"; then
2732b1297603Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2733b1297603Smrgelse
2734b1297603Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735b1297603Smrgfor as_dir in $PATH
2736b1297603Smrgdo
2737b1297603Smrg  IFS=$as_save_IFS
2738b1297603Smrg  test -z "$as_dir" && as_dir=.
273954e0bb33Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2740b1297603Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2741b1297603Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
274254e0bb33Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743b1297603Smrg    break 2
2744b1297603Smrg  fi
2745b1297603Smrgdone
274654e0bb33Smrg  done
2747b1297603SmrgIFS=$as_save_IFS
2748b1297603Smrg
2749b1297603Smrgfi
2750b1297603Smrgfi
2751b1297603SmrgCC=$ac_cv_prog_CC
2752b1297603Smrgif test -n "$CC"; then
275354e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
27545b944e2aSmrg$as_echo "$CC" >&6; }
2755b1297603Smrgelse
275654e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27575b944e2aSmrg$as_echo "no" >&6; }
2758b1297603Smrgfi
2759b1297603Smrg
2760b1297603Smrg
2761b1297603Smrg  fi
2762b1297603Smrgfi
2763b1297603Smrgif test -z "$CC"; then
2764b1297603Smrg  # Extract the first word of "cc", so it can be a program name with args.
2765b1297603Smrgset dummy cc; ac_word=$2
276654e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27675b944e2aSmrg$as_echo_n "checking for $ac_word... " >&6; }
276854e0bb33Smrgif test "${ac_cv_prog_CC+set}" = set; then :
27695b944e2aSmrg  $as_echo_n "(cached) " >&6
2770b1297603Smrgelse
2771b1297603Smrg  if test -n "$CC"; then
2772b1297603Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2773b1297603Smrgelse
2774b1297603Smrg  ac_prog_rejected=no
2775b1297603Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776b1297603Smrgfor as_dir in $PATH
2777b1297603Smrgdo
2778b1297603Smrg  IFS=$as_save_IFS
2779b1297603Smrg  test -z "$as_dir" && as_dir=.
278054e0bb33Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2781b1297603Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2782b1297603Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2783b1297603Smrg       ac_prog_rejected=yes
2784b1297603Smrg       continue
2785b1297603Smrg     fi
2786b1297603Smrg    ac_cv_prog_CC="cc"
278754e0bb33Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2788b1297603Smrg    break 2
2789b1297603Smrg  fi
2790b1297603Smrgdone
279154e0bb33Smrg  done
2792b1297603SmrgIFS=$as_save_IFS
2793b1297603Smrg
2794b1297603Smrgif test $ac_prog_rejected = yes; then
2795b1297603Smrg  # We found a bogon in the path, so make sure we never use it.
2796b1297603Smrg  set dummy $ac_cv_prog_CC
2797b1297603Smrg  shift
2798b1297603Smrg  if test $# != 0; then
2799b1297603Smrg    # We chose a different compiler from the bogus one.
2800b1297603Smrg    # However, it has the same basename, so the bogon will be chosen
2801b1297603Smrg    # first if we set CC to just the basename; use the full file name.
2802b1297603Smrg    shift
2803b1297603Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2804b1297603Smrg  fi
2805b1297603Smrgfi
2806b1297603Smrgfi
2807b1297603Smrgfi
2808b1297603SmrgCC=$ac_cv_prog_CC
2809b1297603Smrgif test -n "$CC"; then
281054e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
28115b944e2aSmrg$as_echo "$CC" >&6; }
2812b1297603Smrgelse
281354e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28145b944e2aSmrg$as_echo "no" >&6; }
2815b1297603Smrgfi
2816b1297603Smrg
2817b1297603Smrg
2818b1297603Smrgfi
2819b1297603Smrgif test -z "$CC"; then
2820b1297603Smrg  if test -n "$ac_tool_prefix"; then
2821b1297603Smrg  for ac_prog in cl.exe
2822b1297603Smrg  do
2823b1297603Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2824b1297603Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
282554e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28265b944e2aSmrg$as_echo_n "checking for $ac_word... " >&6; }
282754e0bb33Smrgif test "${ac_cv_prog_CC+set}" = set; then :
28285b944e2aSmrg  $as_echo_n "(cached) " >&6
2829b1297603Smrgelse
2830b1297603Smrg  if test -n "$CC"; then
2831b1297603Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2832b1297603Smrgelse
2833b1297603Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834b1297603Smrgfor as_dir in $PATH
2835b1297603Smrgdo
2836b1297603Smrg  IFS=$as_save_IFS
2837b1297603Smrg  test -z "$as_dir" && as_dir=.
283854e0bb33Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2839b1297603Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2840b1297603Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
284154e0bb33Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2842b1297603Smrg    break 2
2843b1297603Smrg  fi
2844b1297603Smrgdone
284554e0bb33Smrg  done
2846b1297603SmrgIFS=$as_save_IFS
2847b1297603Smrg
2848b1297603Smrgfi
2849b1297603Smrgfi
2850b1297603SmrgCC=$ac_cv_prog_CC
2851b1297603Smrgif test -n "$CC"; then
285254e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
28535b944e2aSmrg$as_echo "$CC" >&6; }
2854b1297603Smrgelse
285554e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28565b944e2aSmrg$as_echo "no" >&6; }
2857b1297603Smrgfi
2858b1297603Smrg
2859b1297603Smrg
2860b1297603Smrg    test -n "$CC" && break
2861b1297603Smrg  done
2862b1297603Smrgfi
2863b1297603Smrgif test -z "$CC"; then
2864b1297603Smrg  ac_ct_CC=$CC
2865b1297603Smrg  for ac_prog in cl.exe
2866b1297603Smrgdo
2867b1297603Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
2868b1297603Smrgset dummy $ac_prog; ac_word=$2
286954e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28705b944e2aSmrg$as_echo_n "checking for $ac_word... " >&6; }
287154e0bb33Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
28725b944e2aSmrg  $as_echo_n "(cached) " >&6
2873b1297603Smrgelse
2874b1297603Smrg  if test -n "$ac_ct_CC"; then
2875b1297603Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2876b1297603Smrgelse
2877b1297603Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878b1297603Smrgfor as_dir in $PATH
2879b1297603Smrgdo
2880b1297603Smrg  IFS=$as_save_IFS
2881b1297603Smrg  test -z "$as_dir" && as_dir=.
288254e0bb33Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2883b1297603Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2884b1297603Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
288554e0bb33Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2886b1297603Smrg    break 2
2887b1297603Smrg  fi
2888b1297603Smrgdone
288954e0bb33Smrg  done
2890b1297603SmrgIFS=$as_save_IFS
2891b1297603Smrg
2892b1297603Smrgfi
2893b1297603Smrgfi
2894b1297603Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2895b1297603Smrgif test -n "$ac_ct_CC"; then
289654e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
28975b944e2aSmrg$as_echo "$ac_ct_CC" >&6; }
2898b1297603Smrgelse
289954e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29005b944e2aSmrg$as_echo "no" >&6; }
2901b1297603Smrgfi
2902b1297603Smrg
2903b1297603Smrg
2904b1297603Smrg  test -n "$ac_ct_CC" && break
2905b1297603Smrgdone
2906b1297603Smrg
2907b1297603Smrg  if test "x$ac_ct_CC" = x; then
2908b1297603Smrg    CC=""
2909b1297603Smrg  else
2910b1297603Smrg    case $cross_compiling:$ac_tool_warned in
2911b1297603Smrgyes:)
291254e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29135b944e2aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2914b1297603Smrgac_tool_warned=yes ;;
2915b1297603Smrgesac
2916b1297603Smrg    CC=$ac_ct_CC
2917b1297603Smrg  fi
2918b1297603Smrgfi
2919b1297603Smrg
2920b1297603Smrgfi
2921b1297603Smrg
2922b1297603Smrg
292354e0bb33Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29245b944e2aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
292554e0bb33Smrgas_fn_error $? "no acceptable C compiler found in \$PATH
292654e0bb33SmrgSee \`config.log' for more details" "$LINENO" 5; }
2927b1297603Smrg
2928b1297603Smrg# Provide some information about the compiler.
292954e0bb33Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
29305b944e2aSmrgset X $ac_compile
29315b944e2aSmrgac_compiler=$2
293254e0bb33Smrgfor ac_option in --version -v -V -qversion; do
293354e0bb33Smrg  { { ac_try="$ac_compiler $ac_option >&5"
2934b1297603Smrgcase "(($ac_try" in
2935b1297603Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936b1297603Smrg  *) ac_try_echo=$ac_try;;
2937b1297603Smrgesac
293854e0bb33Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
293954e0bb33Smrg$as_echo "$ac_try_echo"; } >&5
294054e0bb33Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2941b1297603Smrg  ac_status=$?
294254e0bb33Smrg  if test -s conftest.err; then
294354e0bb33Smrg    sed '10a\
294454e0bb33Smrg... rest of stderr output deleted ...
294554e0bb33Smrg         10q' conftest.err >conftest.er1
294654e0bb33Smrg    cat conftest.er1 >&5
294754e0bb33Smrg  fi
294854e0bb33Smrg  rm -f conftest.er1 conftest.err
294954e0bb33Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
295054e0bb33Smrg  test $ac_status = 0; }
295154e0bb33Smrgdone
2952b1297603Smrg
295354e0bb33Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
2954b1297603Smrg/* end confdefs.h.  */
2955b1297603Smrg
2956b1297603Smrgint
2957b1297603Smrgmain ()
2958b1297603Smrg{
2959b1297603Smrg
2960b1297603Smrg  ;
2961b1297603Smrg  return 0;
2962b1297603Smrg}
2963b1297603Smrg_ACEOF
2964b1297603Smrgac_clean_files_save=$ac_clean_files
29655b944e2aSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2966b1297603Smrg# Try to create an executable without -o first, disregard a.out.
2967b1297603Smrg# It will help us diagnose broken compilers, and finding out an intuition
2968b1297603Smrg# of exeext.
296954e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
297054e0bb33Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
29715b944e2aSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
29725b944e2aSmrg
29735b944e2aSmrg# The possible output files:
29745b944e2aSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
29755b944e2aSmrg
2976b1297603Smrgac_rmfiles=
2977b1297603Smrgfor ac_file in $ac_files
2978b1297603Smrgdo
2979b1297603Smrg  case $ac_file in
29805b944e2aSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2981b1297603Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2982b1297603Smrg  esac
2983b1297603Smrgdone
2984b1297603Smrgrm -f $ac_rmfiles
2985b1297603Smrg
298654e0bb33Smrgif { { ac_try="$ac_link_default"
2987b1297603Smrgcase "(($ac_try" in
2988b1297603Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989b1297603Smrg  *) ac_try_echo=$ac_try;;
2990b1297603Smrgesac
299154e0bb33Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
299254e0bb33Smrg$as_echo "$ac_try_echo"; } >&5
2993b1297603Smrg  (eval "$ac_link_default") 2>&5
2994b1297603Smrg  ac_status=$?
299554e0bb33Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
299654e0bb33Smrg  test $ac_status = 0; }; then :
2997b1297603Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2998b1297603Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2999b1297603Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3000b1297603Smrg# so that the user can short-circuit this test for compilers unknown to
3001b1297603Smrg# Autoconf.
3002b1297603Smrgfor ac_file in $ac_files ''
3003b1297603Smrgdo
3004b1297603Smrg  test -f "$ac_file" || continue
3005b1297603Smrg  case $ac_file in
30065b944e2aSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3007b1297603Smrg	;;
3008b1297603Smrg    [ab].out )
3009b1297603Smrg	# We found the default executable, but exeext='' is most
3010b1297603Smrg	# certainly right.
3011b1297603Smrg	break;;
3012b1297603Smrg    *.* )
301354e0bb33Smrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3014b1297603Smrg	then :; else
3015b1297603Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3016b1297603Smrg	fi
3017b1297603Smrg	# We set ac_cv_exeext here because the later test for it is not
3018b1297603Smrg	# safe: cross compilers may not add the suffix if given an `-o'
3019b1297603Smrg	# argument, so we may need to know it at that point already.
3020b1297603Smrg	# Even if this section looks crufty: it has the advantage of
3021b1297603Smrg	# actually working.
3022b1297603Smrg	break;;
3023b1297603Smrg    * )
3024b1297603Smrg	break;;
3025b1297603Smrg  esac
3026b1297603Smrgdone
3027b1297603Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
3028b1297603Smrg
3029b1297603Smrgelse
3030b1297603Smrg  ac_file=''
3031b1297603Smrgfi
303254e0bb33Smrgif test -z "$ac_file"; then :
303354e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
303454e0bb33Smrg$as_echo "no" >&6; }
303554e0bb33Smrg$as_echo "$as_me: failed program was:" >&5
3036b1297603Smrgsed 's/^/| /' conftest.$ac_ext >&5
3037b1297603Smrg
303854e0bb33Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30395b944e2aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
304054e0bb33Smrgas_fn_error 77 "C compiler cannot create executables
304154e0bb33SmrgSee \`config.log' for more details" "$LINENO" 5; }
304254e0bb33Smrgelse
304354e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
304454e0bb33Smrg$as_echo "yes" >&6; }
3045b1297603Smrgfi
304654e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
304754e0bb33Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
304854e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
304954e0bb33Smrg$as_echo "$ac_file" >&6; }
3050b1297603Smrgac_exeext=$ac_cv_exeext
3051b1297603Smrg
30525b944e2aSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3053b1297603Smrgac_clean_files=$ac_clean_files_save
305454e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
30555b944e2aSmrg$as_echo_n "checking for suffix of executables... " >&6; }
305654e0bb33Smrgif { { ac_try="$ac_link"
3057b1297603Smrgcase "(($ac_try" in
3058b1297603Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059b1297603Smrg  *) ac_try_echo=$ac_try;;
3060b1297603Smrgesac
306154e0bb33Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
306254e0bb33Smrg$as_echo "$ac_try_echo"; } >&5
3063b1297603Smrg  (eval "$ac_link") 2>&5
3064b1297603Smrg  ac_status=$?
306554e0bb33Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
306654e0bb33Smrg  test $ac_status = 0; }; then :
3067b1297603Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3068b1297603Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3069b1297603Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
3070b1297603Smrg# `rm'.
3071b1297603Smrgfor ac_file in conftest.exe conftest conftest.*; do
3072b1297603Smrg  test -f "$ac_file" || continue
3073b1297603Smrg  case $ac_file in
30745b944e2aSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3075b1297603Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3076b1297603Smrg	  break;;
3077b1297603Smrg    * ) break;;
3078b1297603Smrg  esac
3079b1297603Smrgdone
3080b1297603Smrgelse
308154e0bb33Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30825b944e2aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
308354e0bb33Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
308454e0bb33SmrgSee \`config.log' for more details" "$LINENO" 5; }
3085b1297603Smrgfi
308654e0bb33Smrgrm -f conftest conftest$ac_cv_exeext
308754e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
30885b944e2aSmrg$as_echo "$ac_cv_exeext" >&6; }
3089b1297603Smrg
3090b1297603Smrgrm -f conftest.$ac_ext
3091b1297603SmrgEXEEXT=$ac_cv_exeext
3092b1297603Smrgac_exeext=$EXEEXT
309354e0bb33Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
309454e0bb33Smrg/* end confdefs.h.  */
309554e0bb33Smrg#include <stdio.h>
309654e0bb33Smrgint
309754e0bb33Smrgmain ()
309854e0bb33Smrg{
309954e0bb33SmrgFILE *f = fopen ("conftest.out", "w");
310054e0bb33Smrg return ferror (f) || fclose (f) != 0;
310154e0bb33Smrg
310254e0bb33Smrg  ;
310354e0bb33Smrg  return 0;
310454e0bb33Smrg}
310554e0bb33Smrg_ACEOF
310654e0bb33Smrgac_clean_files="$ac_clean_files conftest.out"
310754e0bb33Smrg# Check that the compiler produces executables we can run.  If not, either
310854e0bb33Smrg# the compiler is broken, or we cross compile.
310954e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
311054e0bb33Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
311154e0bb33Smrgif test "$cross_compiling" != yes; then
311254e0bb33Smrg  { { ac_try="$ac_link"
311354e0bb33Smrgcase "(($ac_try" in
311454e0bb33Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
311554e0bb33Smrg  *) ac_try_echo=$ac_try;;
311654e0bb33Smrgesac
311754e0bb33Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
311854e0bb33Smrg$as_echo "$ac_try_echo"; } >&5
311954e0bb33Smrg  (eval "$ac_link") 2>&5
312054e0bb33Smrg  ac_status=$?
312154e0bb33Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
312254e0bb33Smrg  test $ac_status = 0; }
312354e0bb33Smrg  if { ac_try='./conftest$ac_cv_exeext'
312454e0bb33Smrg  { { case "(($ac_try" in
312554e0bb33Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
312654e0bb33Smrg  *) ac_try_echo=$ac_try;;
312754e0bb33Smrgesac
312854e0bb33Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
312954e0bb33Smrg$as_echo "$ac_try_echo"; } >&5
313054e0bb33Smrg  (eval "$ac_try") 2>&5
313154e0bb33Smrg  ac_status=$?
313254e0bb33Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
313354e0bb33Smrg  test $ac_status = 0; }; }; then
313454e0bb33Smrg    cross_compiling=no
313554e0bb33Smrg  else
313654e0bb33Smrg    if test "$cross_compiling" = maybe; then
313754e0bb33Smrg	cross_compiling=yes
313854e0bb33Smrg    else
313954e0bb33Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
314054e0bb33Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
314154e0bb33Smrgas_fn_error $? "cannot run C compiled programs.
314254e0bb33SmrgIf you meant to cross compile, use \`--host'.
314354e0bb33SmrgSee \`config.log' for more details" "$LINENO" 5; }
314454e0bb33Smrg    fi
314554e0bb33Smrg  fi
314654e0bb33Smrgfi
314754e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
314854e0bb33Smrg$as_echo "$cross_compiling" >&6; }
314954e0bb33Smrg
315054e0bb33Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
315154e0bb33Smrgac_clean_files=$ac_clean_files_save
315254e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
31535b944e2aSmrg$as_echo_n "checking for suffix of object files... " >&6; }
315454e0bb33Smrgif test "${ac_cv_objext+set}" = set; then :
31555b944e2aSmrg  $as_echo_n "(cached) " >&6
3156b1297603Smrgelse
315754e0bb33Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3158b1297603Smrg/* end confdefs.h.  */
3159b1297603Smrg
3160b1297603Smrgint
3161b1297603Smrgmain ()
3162b1297603Smrg{
3163b1297603Smrg
3164b1297603Smrg  ;
3165b1297603Smrg  return 0;
3166b1297603Smrg}
3167b1297603Smrg_ACEOF
3168b1297603Smrgrm -f conftest.o conftest.obj
316954e0bb33Smrgif { { ac_try="$ac_compile"
3170b1297603Smrgcase "(($ac_try" in
3171b1297603Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172b1297603Smrg  *) ac_try_echo=$ac_try;;
3173b1297603Smrgesac
317454e0bb33Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
317554e0bb33Smrg$as_echo "$ac_try_echo"; } >&5
3176b1297603Smrg  (eval "$ac_compile") 2>&5
3177b1297603Smrg  ac_status=$?
317854e0bb33Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
317954e0bb33Smrg  test $ac_status = 0; }; then :
3180b1297603Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
3181b1297603Smrg  test -f "$ac_file" || continue;
3182b1297603Smrg  case $ac_file in
31835b944e2aSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3184b1297603Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3185b1297603Smrg       break;;
3186b1297603Smrg  esac
3187b1297603Smrgdone
3188b1297603Smrgelse
31895b944e2aSmrg  $as_echo "$as_me: failed program was:" >&5
3190b1297603Smrgsed 's/^/| /' conftest.$ac_ext >&5
3191b1297603Smrg
319254e0bb33Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31935b944e2aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
319454e0bb33Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile
319554e0bb33SmrgSee \`config.log' for more details" "$LINENO" 5; }
3196b1297603Smrgfi
3197b1297603Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
3198b1297603Smrgfi
319954e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
32005b944e2aSmrg$as_echo "$ac_cv_objext" >&6; }
3201b1297603SmrgOBJEXT=$ac_cv_objext
3202b1297603Smrgac_objext=$OBJEXT
320354e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
32045b944e2aSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
320554e0bb33Smrgif test "${ac_cv_c_compiler_gnu+set}" = set; then :
32065b944e2aSmrg  $as_echo_n "(cached) " >&6
3207b1297603Smrgelse
320854e0bb33Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3209b1297603Smrg/* end confdefs.h.  */
3210b1297603Smrg
3211b1297603Smrgint
3212b1297603Smrgmain ()
3213b1297603Smrg{
3214b1297603Smrg#ifndef __GNUC__
3215b1297603Smrg       choke me
3216b1297603Smrg#endif
3217b1297603Smrg
3218b1297603Smrg  ;
3219b1297603Smrg  return 0;
3220b1297603Smrg}
3221b1297603Smrg_ACEOF
322254e0bb33Smrgif ac_fn_c_try_compile "$LINENO"; then :
3223b1297603Smrg  ac_compiler_gnu=yes
3224b1297603Smrgelse
322554e0bb33Smrg  ac_compiler_gnu=no
3226b1297603Smrgfi
3227b1297603Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228b1297603Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
3229b1297603Smrg
3230b1297603Smrgfi
323154e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
32325b944e2aSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
32335b944e2aSmrgif test $ac_compiler_gnu = yes; then
32345b944e2aSmrg  GCC=yes
32355b944e2aSmrgelse
32365b944e2aSmrg  GCC=
32375b944e2aSmrgfi
3238b1297603Smrgac_test_CFLAGS=${CFLAGS+set}
3239b1297603Smrgac_save_CFLAGS=$CFLAGS
324054e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
32415b944e2aSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
324254e0bb33Smrgif test "${ac_cv_prog_cc_g+set}" = set; then :
32435b944e2aSmrg  $as_echo_n "(cached) " >&6
3244b1297603Smrgelse
3245b1297603Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
3246b1297603Smrg   ac_c_werror_flag=yes
3247b1297603Smrg   ac_cv_prog_cc_g=no
3248b1297603Smrg   CFLAGS="-g"
324954e0bb33Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250b1297603Smrg/* end confdefs.h.  */
3251b1297603Smrg
3252b1297603Smrgint
3253b1297603Smrgmain ()
325454e0bb33Smrg{
3255b1297603Smrg
325654e0bb33Smrg  ;
325754e0bb33Smrg  return 0;
325854e0bb33Smrg}
3259b1297603Smrg_ACEOF
326054e0bb33Smrgif ac_fn_c_try_compile "$LINENO"; then :
326154e0bb33Smrg  ac_cv_prog_cc_g=yes
326254e0bb33Smrgelse
326354e0bb33Smrg  CFLAGS=""
326454e0bb33Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265b1297603Smrg/* end confdefs.h.  */
3266b1297603Smrg
3267b1297603Smrgint
3268b1297603Smrgmain ()
3269b1297603Smrg{
3270b1297603Smrg
3271b1297603Smrg  ;
3272b1297603Smrg  return 0;
3273b1297603Smrg}
3274b1297603Smrg_ACEOF
327554e0bb33Smrgif ac_fn_c_try_compile "$LINENO"; then :
3276b1297603Smrg
327754e0bb33Smrgelse
327854e0bb33Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
3279b1297603Smrg	 CFLAGS="-g"
328054e0bb33Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281b1297603Smrg/* end confdefs.h.  */
3282b1297603Smrg
3283b1297603Smrgint
3284b1297603Smrgmain ()
3285b1297603Smrg{
3286b1297603Smrg
3287b1297603Smrg  ;
3288b1297603Smrg  return 0;
3289b1297603Smrg}
3290b1297603Smrg_ACEOF
329154e0bb33Smrgif ac_fn_c_try_compile "$LINENO"; then :
3292b1297603Smrg  ac_cv_prog_cc_g=yes
3293b1297603Smrgfi
3294b1297603Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3295b1297603Smrgfi
3296b1297603Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297b1297603Smrgfi
3298b1297603Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3299b1297603Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
3300b1297603Smrgfi
330154e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
33025b944e2aSmrg$as_echo "$ac_cv_prog_cc_g" >&6; }
3303b1297603Smrgif test "$ac_test_CFLAGS" = set; then
3304b1297603Smrg  CFLAGS=$ac_save_CFLAGS
3305b1297603Smrgelif test $ac_cv_prog_cc_g = yes; then
3306b1297603Smrg  if test "$GCC" = yes; then
3307b1297603Smrg    CFLAGS="-g -O2"
3308b1297603Smrg  else
3309b1297603Smrg    CFLAGS="-g"
3310b1297603Smrg  fi
3311b1297603Smrgelse
3312b1297603Smrg  if test "$GCC" = yes; then
3313b1297603Smrg    CFLAGS="-O2"
3314b1297603Smrg  else
3315b1297603Smrg    CFLAGS=
3316b1297603Smrg  fi
3317b1297603Smrgfi
331854e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
33195b944e2aSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
332054e0bb33Smrgif test "${ac_cv_prog_cc_c89+set}" = set; then :
33215b944e2aSmrg  $as_echo_n "(cached) " >&6
3322b1297603Smrgelse
3323b1297603Smrg  ac_cv_prog_cc_c89=no
3324b1297603Smrgac_save_CC=$CC
332554e0bb33Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326b1297603Smrg/* end confdefs.h.  */
3327b1297603Smrg#include <stdarg.h>
3328b1297603Smrg#include <stdio.h>
3329b1297603Smrg#include <sys/types.h>
3330b1297603Smrg#include <sys/stat.h>
3331b1297603Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3332b1297603Smrgstruct buf { int x; };
3333b1297603SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
3334b1297603Smrgstatic char *e (p, i)
3335b1297603Smrg     char **p;
3336b1297603Smrg     int i;
3337b1297603Smrg{
3338b1297603Smrg  return p[i];
3339b1297603Smrg}
3340b1297603Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
3341b1297603Smrg{
3342b1297603Smrg  char *s;
3343b1297603Smrg  va_list v;
3344b1297603Smrg  va_start (v,p);
3345b1297603Smrg  s = g (p, va_arg (v,int));
3346b1297603Smrg  va_end (v);
3347b1297603Smrg  return s;
3348b1297603Smrg}
3349b1297603Smrg
3350b1297603Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3351b1297603Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
3352b1297603Smrg   These don't provoke an error unfortunately, instead are silently treated
3353b1297603Smrg   as 'x'.  The following induces an error, until -std is added to get
3354b1297603Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3355b1297603Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
3356b1297603Smrg   that's true only with -std.  */
3357b1297603Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
3358b1297603Smrg
3359b1297603Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3360b1297603Smrg   inside strings and character constants.  */
3361b1297603Smrg#define FOO(x) 'x'
3362b1297603Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3363b1297603Smrg
3364b1297603Smrgint test (int i, double x);
3365b1297603Smrgstruct s1 {int (*f) (int a);};
3366b1297603Smrgstruct s2 {int (*f) (double a);};
3367b1297603Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3368b1297603Smrgint argc;
3369b1297603Smrgchar **argv;
3370b1297603Smrgint
3371b1297603Smrgmain ()
3372b1297603Smrg{
3373b1297603Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3374b1297603Smrg  ;
3375b1297603Smrg  return 0;
3376b1297603Smrg}
3377b1297603Smrg_ACEOF
3378b1297603Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3379b1297603Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3380b1297603Smrgdo
3381b1297603Smrg  CC="$ac_save_CC $ac_arg"
338254e0bb33Smrg  if ac_fn_c_try_compile "$LINENO"; then :
3383b1297603Smrg  ac_cv_prog_cc_c89=$ac_arg
3384b1297603Smrgfi
3385b1297603Smrgrm -f core conftest.err conftest.$ac_objext
3386b1297603Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
3387b1297603Smrgdone
3388b1297603Smrgrm -f conftest.$ac_ext
3389b1297603SmrgCC=$ac_save_CC
3390b1297603Smrg
3391b1297603Smrgfi
3392b1297603Smrg# AC_CACHE_VAL
3393b1297603Smrgcase "x$ac_cv_prog_cc_c89" in
3394b1297603Smrg  x)
339554e0bb33Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
33965b944e2aSmrg$as_echo "none needed" >&6; } ;;
3397b1297603Smrg  xno)
339854e0bb33Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
33995b944e2aSmrg$as_echo "unsupported" >&6; } ;;
3400b1297603Smrg  *)
3401b1297603Smrg    CC="$CC $ac_cv_prog_cc_c89"
340254e0bb33Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
34035b944e2aSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3404b1297603Smrgesac
340554e0bb33Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
3406b1297603Smrg
340754e0bb33Smrgfi
3408b1297603Smrg
3409b1297603Smrgac_ext=c
3410b1297603Smrgac_cpp='$CPP $CPPFLAGS'
3411b1297603Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3412b1297603Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3413b1297603Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3414b1297603Smrg
3415b1297603Smrgdepcc="$CC"   am_compiler_list=
3416b1297603Smrg
341754e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
34185b944e2aSmrg$as_echo_n "checking dependency style of $depcc... " >&6; }
341954e0bb33Smrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
34205b944e2aSmrg  $as_echo_n "(cached) " >&6
3421b1297603Smrgelse
3422b1297603Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3423b1297603Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
3424b1297603Smrg  # making bogus files that we don't know about and never remove.  For
3425b1297603Smrg  # instance it was reported that on HP-UX the gcc test will end up
3426b1297603Smrg  # making a dummy file named `D' -- because `-MD' means `put the output
3427b1297603Smrg  # in D'.
3428b1297603Smrg  mkdir conftest.dir
3429b1297603Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
3430b1297603Smrg  # using a relative directory.
3431b1297603Smrg  cp "$am_depcomp" conftest.dir
3432b1297603Smrg  cd conftest.dir
3433b1297603Smrg  # We will build objects and dependencies in a subdirectory because
3434b1297603Smrg  # it helps to detect inapplicable dependency modes.  For instance
3435b1297603Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
3436b1297603Smrg  # side effect of compilation, but ICC will put the dependencies in
3437b1297603Smrg  # the current directory while Tru64 will put them in the object
3438b1297603Smrg  # directory.
3439b1297603Smrg  mkdir sub
3440b1297603Smrg
3441b1297603Smrg  am_cv_CC_dependencies_compiler_type=none
3442b1297603Smrg  if test "$am_compiler_list" = ""; then
3443b1297603Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3444b1297603Smrg  fi
344553719b08Smrg  am__universal=false
344653719b08Smrg  case " $depcc " in #(
344753719b08Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
344853719b08Smrg     esac
344953719b08Smrg
3450b1297603Smrg  for depmode in $am_compiler_list; do
3451b1297603Smrg    # Setup a source with many dependencies, because some compilers
3452b1297603Smrg    # like to wrap large dependency lists on column 80 (with \), and
3453b1297603Smrg    # we should not choose a depcomp mode which is confused by this.
3454b1297603Smrg    #
3455b1297603Smrg    # We need to recreate these files for each test, as the compiler may
3456b1297603Smrg    # overwrite some of them when testing with obscure command lines.
3457b1297603Smrg    # This happens at least with the AIX C compiler.
3458b1297603Smrg    : > sub/conftest.c
3459b1297603Smrg    for i in 1 2 3 4 5 6; do
3460b1297603Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3461b1297603Smrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3462b1297603Smrg      # Solaris 8's {/usr,}/bin/sh.
3463b1297603Smrg      touch sub/conftst$i.h
3464b1297603Smrg    done
3465b1297603Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3466b1297603Smrg
346753719b08Smrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
346853719b08Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
346953719b08Smrg    # handle `-M -o', and we need to detect this.  Also, some Intel
347053719b08Smrg    # versions had trouble with output in subdirs
347153719b08Smrg    am__obj=sub/conftest.${OBJEXT-o}
347253719b08Smrg    am__minus_obj="-o $am__obj"
3473b1297603Smrg    case $depmode in
347453719b08Smrg    gcc)
347553719b08Smrg      # This depmode causes a compiler race in universal mode.
347653719b08Smrg      test "$am__universal" = false || continue
347753719b08Smrg      ;;
3478b1297603Smrg    nosideeffect)
3479b1297603Smrg      # after this tag, mechanisms are not by side-effect, so they'll
3480b1297603Smrg      # only be used when explicitly requested
3481b1297603Smrg      if test "x$enable_dependency_tracking" = xyes; then
3482b1297603Smrg	continue
3483b1297603Smrg      else
3484b1297603Smrg	break
3485b1297603Smrg      fi
3486b1297603Smrg      ;;
348753719b08Smrg    msvisualcpp | msvcmsys)
348853719b08Smrg      # This compiler won't grok `-c -o', but also, the minuso test has
348953719b08Smrg      # not run yet.  These depmodes are late enough in the game, and
349053719b08Smrg      # so weak that their functioning should not be impacted.
349153719b08Smrg      am__obj=conftest.${OBJEXT-o}
349253719b08Smrg      am__minus_obj=
349353719b08Smrg      ;;
3494b1297603Smrg    none) break ;;
3495b1297603Smrg    esac
3496b1297603Smrg    if depmode=$depmode \
349753719b08Smrg       source=sub/conftest.c object=$am__obj \
3498b1297603Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
349953719b08Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3500b1297603Smrg         >/dev/null 2>conftest.err &&
35015b944e2aSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3502b1297603Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
350353719b08Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3504b1297603Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3505b1297603Smrg      # icc doesn't choke on unknown options, it will just issue warnings
3506b1297603Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
3507b1297603Smrg      # that says an option was ignored or not supported.
3508b1297603Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
3509b1297603Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
3510b1297603Smrg      # The diagnosis changed in icc 8.0:
3511b1297603Smrg      #   icc: Command line remark: option '-MP' not supported
3512b1297603Smrg      if (grep 'ignoring option' conftest.err ||
3513b1297603Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3514b1297603Smrg        am_cv_CC_dependencies_compiler_type=$depmode
3515b1297603Smrg        break
3516b1297603Smrg      fi
3517b1297603Smrg    fi
3518b1297603Smrg  done
3519b1297603Smrg
3520b1297603Smrg  cd ..
3521b1297603Smrg  rm -rf conftest.dir
3522b1297603Smrgelse
3523b1297603Smrg  am_cv_CC_dependencies_compiler_type=none
3524b1297603Smrgfi
3525b1297603Smrg
3526b1297603Smrgfi
352754e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
35285b944e2aSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3529b1297603SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3530b1297603Smrg
35315b944e2aSmrg if
3532b1297603Smrg  test "x$enable_dependency_tracking" != xno \
3533b1297603Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3534b1297603Smrg  am__fastdepCC_TRUE=
3535b1297603Smrg  am__fastdepCC_FALSE='#'
3536b1297603Smrgelse
3537b1297603Smrg  am__fastdepCC_TRUE='#'
3538b1297603Smrg  am__fastdepCC_FALSE=
3539b1297603Smrgfi
3540b1297603Smrg
3541b1297603Smrg
354254e0bb33Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3543cea37944Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
354454e0bb33Smrgif test "${ac_cv_prog_cc_c99+set}" = set; then :
3545cea37944Smrg  $as_echo_n "(cached) " >&6
3546cea37944Smrgelse
3547cea37944Smrg  ac_cv_prog_cc_c99=no
3548cea37944Smrgac_save_CC=$CC
354954e0bb33Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550cea37944Smrg/* end confdefs.h.  */
3551cea37944Smrg#include <stdarg.h>
3552cea37944Smrg#include <stdbool.h>
3553cea37944Smrg#include <stdlib.h>
3554cea37944Smrg#include <wchar.h>
3555cea37944Smrg#include <stdio.h>
3556cea37944Smrg
3557cea37944Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3558cea37944Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
3559cea37944Smrg#define showlist(...) puts (#__VA_ARGS__)
3560cea37944Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3561cea37944Smrgstatic void
3562cea37944Smrgtest_varargs_macros (void)
3563cea37944Smrg{
3564cea37944Smrg  int x = 1234;
3565cea37944Smrg  int y = 5678;
3566cea37944Smrg  debug ("Flag");
3567cea37944Smrg  debug ("X = %d\n", x);
3568cea37944Smrg  showlist (The first, second, and third items.);
3569cea37944Smrg  report (x>y, "x is %d but y is %d", x, y);
3570cea37944Smrg}
3571cea37944Smrg
3572cea37944Smrg// Check long long types.
3573cea37944Smrg#define BIG64 18446744073709551615ull
3574cea37944Smrg#define BIG32 4294967295ul
3575cea37944Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3576cea37944Smrg#if !BIG_OK
3577cea37944Smrg  your preprocessor is broken;
3578cea37944Smrg#endif
3579cea37944Smrg#if BIG_OK
3580cea37944Smrg#else
3581cea37944Smrg  your preprocessor is broken;
3582cea37944Smrg#endif
3583cea37944Smrgstatic long long int bignum = -9223372036854775807LL;
3584cea37944Smrgstatic unsigned long long int ubignum = BIG64;
3585cea37944Smrg
3586cea37944Smrgstruct incomplete_array
3587cea37944Smrg{
3588cea37944Smrg  int datasize;
3589cea37944Smrg  double data[];
3590cea37944Smrg};
3591cea37944Smrg
3592cea37944Smrgstruct named_init {
3593cea37944Smrg  int number;
3594cea37944Smrg  const wchar_t *name;
3595cea37944Smrg  double average;
3596cea37944Smrg};
3597cea37944Smrg
3598cea37944Smrgtypedef const char *ccp;
3599cea37944Smrg
3600cea37944Smrgstatic inline int
3601cea37944Smrgtest_restrict (ccp restrict text)
3602cea37944Smrg{
3603cea37944Smrg  // See if C++-style comments work.
3604cea37944Smrg  // Iterate through items via the restricted pointer.
3605cea37944Smrg  // Also check for declarations in for loops.
3606cea37944Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3607cea37944Smrg    continue;
3608cea37944Smrg  return 0;
3609cea37944Smrg}
3610cea37944Smrg
3611cea37944Smrg// Check varargs and va_copy.
3612cea37944Smrgstatic void
3613cea37944Smrgtest_varargs (const char *format, ...)
3614cea37944Smrg{
3615cea37944Smrg  va_list args;
3616cea37944Smrg  va_start (args, format);
3617cea37944Smrg  va_list args_copy;
3618cea37944Smrg  va_copy (args_copy, args);
3619cea37944Smrg
3620cea37944Smrg  const char *str;
3621cea37944Smrg  int number;
3622cea37944Smrg  float fnumber;
3623cea37944Smrg
3624cea37944Smrg  while (*format)
3625cea37944Smrg    {
3626cea37944Smrg      switch (*format++)
3627cea37944Smrg	{
3628cea37944Smrg	case 's': // string
3629cea37944Smrg	  str = va_arg (args_copy, const char *);
3630cea37944Smrg	  break;
3631cea37944Smrg	case 'd': // int
3632cea37944Smrg	  number = va_arg (args_copy, int);
3633cea37944Smrg	  break;
3634cea37944Smrg	case 'f': // float
3635cea37944Smrg	  fnumber = va_arg (args_copy, double);
3636cea37944Smrg	  break;
3637cea37944Smrg	default:
3638cea37944Smrg	  break;
3639cea37944Smrg	}
3640cea37944Smrg    }
3641cea37944Smrg  va_end (args_copy);
3642cea37944Smrg  va_end (args);
3643cea37944Smrg}
3644cea37944Smrg
3645cea37944Smrgint
3646cea37944Smrgmain ()
3647cea37944Smrg{
3648cea37944Smrg
3649cea37944Smrg  // Check bool.
3650cea37944Smrg  _Bool success = false;
3651cea37944Smrg
3652cea37944Smrg  // Check restrict.
3653cea37944Smrg  if (test_restrict ("String literal") == 0)
3654cea37944Smrg    success = true;
3655cea37944Smrg  char *restrict newvar = "Another string";
3656cea37944Smrg
3657cea37944Smrg  // Check varargs.
3658cea37944Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
3659cea37944Smrg  test_varargs_macros ();
3660cea37944Smrg
3661cea37944Smrg  // Check flexible array members.
3662cea37944Smrg  struct incomplete_array *ia =
3663cea37944Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3664cea37944Smrg  ia->datasize = 10;
3665cea37944Smrg  for (int i = 0; i < ia->datasize; ++i)
3666cea37944Smrg    ia->data[i] = i * 1.234;
3667cea37944Smrg
3668cea37944Smrg  // Check named initializers.
3669cea37944Smrg  struct named_init ni = {
3670cea37944Smrg    .number = 34,
3671cea37944Smrg    .name = L"Test wide string",
3672cea37944Smrg    .average = 543.34343,
3673cea37944Smrg  };
3674cea37944Smrg
3675cea37944Smrg  ni.number = 58;
3676cea37944Smrg
3677cea37944Smrg  int dynamic_array[ni.number];
3678cea37944Smrg  dynamic_array[ni.number - 1] = 543;
3679cea37944Smrg
3680cea37944Smrg  // work around unused variable warnings
3681cea37944Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3682cea37944Smrg	  || dynamic_array[ni.number - 1] != 543);
3683cea37944Smrg
3684cea37944Smrg  ;
3685cea37944Smrg  return 0;
3686cea37944Smrg}
3687cea37944Smrg_ACEOF
3688cea37944Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3689cea37944Smrgdo
3690cea37944Smrg  CC="$ac_save_CC $ac_arg"
369154e0bb33Smrg  if ac_fn_c_try_compile "$LINENO"; then :
3692cea37944Smrg  ac_cv_prog_cc_c99=$ac_arg
3693cea37944Smrgfi
3694cea37944Smrgrm -f core conftest.err conftest.$ac_objext
3695cea37944Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
3696cea37944Smrgdone
3697cea37944Smrgrm -f conftest.$ac_ext
3698cea37944SmrgCC=$ac_save_CC
3699cea37944Smrg
3700cea37944Smrgfi
3701cea37944Smrg# AC_CACHE_VAL
3702cea37944Smrgcase "x$ac_cv_prog_cc_c99" in
3703cea37944Smrg  x)
370454e0bb33Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3705cea37944Smrg$as_echo "none needed" >&6; } ;;
3706cea37944Smrg  xno)
370754e0bb33Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3708cea37944Smrg$as_echo "unsupported" >&6; } ;;
3709cea37944Smrg  *)
3710cea37944Smrg    CC="$CC $ac_cv_prog_cc_c99"
371154e0bb33Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3712cea37944Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3713cea37944Smrgesac
371454e0bb33Smrgif test "x$ac_cv_prog_cc_c99" != xno; then :
3715cea37944Smrg
371654e0bb33Smrgfi
3717cea37944Smrg
3718cea37944Smrg
3719d3263506Smrg
3720d3263506Smrgac_ext=c
3721d3263506Smrgac_cpp='$CPP $CPPFLAGS'
3722d3263506Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723d3263506Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724d3263506Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
372554e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3726d3263506Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
3727d3263506Smrg# On Suns, sometimes $CPP names a directory.
3728d3263506Smrgif test -n "$CPP" && test -d "$CPP"; then
3729d3263506Smrg  CPP=
3730d3263506Smrgfi
3731d3263506Smrgif test -z "$CPP"; then
373254e0bb33Smrg  if test "${ac_cv_prog_CPP+set}" = set; then :
3733d3263506Smrg  $as_echo_n "(cached) " >&6
3734d3263506Smrgelse
3735d3263506Smrg      # Double quotes because CPP needs to be expanded
3736d3263506Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3737d3263506Smrg    do
3738d3263506Smrg      ac_preproc_ok=false
3739d3263506Smrgfor ac_c_preproc_warn_flag in '' yes
3740d3263506Smrgdo
3741d3263506Smrg  # Use a header file that comes with gcc, so configuring glibc
3742d3263506Smrg  # with a fresh cross-compiler works.
3743d3263506Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3744d3263506Smrg  # <limits.h> exists even on freestanding compilers.
3745d3263506Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
3746d3263506Smrg  # not just through cpp. "Syntax error" is here to catch this case.
374754e0bb33Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748d3263506Smrg/* end confdefs.h.  */
3749d3263506Smrg#ifdef __STDC__
3750d3263506Smrg# include <limits.h>
3751d3263506Smrg#else
3752d3263506Smrg# include <assert.h>
3753d3263506Smrg#endif
3754d3263506Smrg		     Syntax error
3755d3263506Smrg_ACEOF
375654e0bb33Smrgif ac_fn_c_try_cpp "$LINENO"; then :
3757d3263506Smrg
375854e0bb33Smrgelse
3759d3263506Smrg  # Broken: fails on valid input.
3760d3263506Smrgcontinue
3761d3263506Smrgfi
3762d3263506Smrgrm -f conftest.err conftest.$ac_ext
3763d3263506Smrg
3764d3263506Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
3765d3263506Smrg  # can be detected and how.
376654e0bb33Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767d3263506Smrg/* end confdefs.h.  */
3768d3263506Smrg#include <ac_nonexistent.h>
3769d3263506Smrg_ACEOF
377054e0bb33Smrgif ac_fn_c_try_cpp "$LINENO"; then :
3771d3263506Smrg  # Broken: success on invalid input.
3772d3263506Smrgcontinue
3773d3263506Smrgelse
3774d3263506Smrg  # Passes both tests.
3775d3263506Smrgac_preproc_ok=:
3776d3263506Smrgbreak
3777d3263506Smrgfi
3778d3263506Smrgrm -f conftest.err conftest.$ac_ext
3779d3263506Smrg
3780d3263506Smrgdone
3781d3263506Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3782d3263506Smrgrm -f conftest.err conftest.$ac_ext
378354e0bb33Smrgif $ac_preproc_ok; then :
3784d3263506Smrg  break
3785d3263506Smrgfi
3786d3263506Smrg
3787d3263506Smrg    done
3788d3263506Smrg    ac_cv_prog_CPP=$CPP
3789d3263506Smrg
3790d3263506Smrgfi
3791d3263506Smrg  CPP=$ac_cv_prog_CPP
3792d3263506Smrgelse
3793d3263506Smrg  ac_cv_prog_CPP=$CPP
3794d3263506Smrgfi
379554e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3796d3263506Smrg$as_echo "$CPP" >&6; }
3797d3263506Smrgac_preproc_ok=false
3798d3263506Smrgfor ac_c_preproc_warn_flag in '' yes
3799d3263506Smrgdo
3800d3263506Smrg  # Use a header file that comes with gcc, so configuring glibc
3801d3263506Smrg  # with a fresh cross-compiler works.
3802d3263506Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3803d3263506Smrg  # <limits.h> exists even on freestanding compilers.
3804d3263506Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
3805d3263506Smrg  # not just through cpp. "Syntax error" is here to catch this case.
380654e0bb33Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807d3263506Smrg/* end confdefs.h.  */
3808d3263506Smrg#ifdef __STDC__
3809d3263506Smrg# include <limits.h>
3810d3263506Smrg#else
3811d3263506Smrg# include <assert.h>
3812d3263506Smrg#endif
3813d3263506Smrg		     Syntax error
3814d3263506Smrg_ACEOF
381554e0bb33Smrgif ac_fn_c_try_cpp "$LINENO"; then :
3816d3263506Smrg
381754e0bb33Smrgelse
3818d3263506Smrg  # Broken: fails on valid input.
3819d3263506Smrgcontinue
3820d3263506Smrgfi
3821d3263506Smrgrm -f conftest.err conftest.$ac_ext
3822d3263506Smrg
3823d3263506Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
3824d3263506Smrg  # can be detected and how.
382554e0bb33Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826d3263506Smrg/* end confdefs.h.  */
3827d3263506Smrg#include <ac_nonexistent.h>
3828d3263506Smrg_ACEOF
382954e0bb33Smrgif ac_fn_c_try_cpp "$LINENO"; then :
3830d3263506Smrg  # Broken: success on invalid input.
3831d3263506Smrgcontinue
3832d3263506Smrgelse
3833d3263506Smrg  # Passes both tests.
3834d3263506Smrgac_preproc_ok=:
3835d3263506Smrgbreak
3836d3263506Smrgfi
3837d3263506Smrgrm -f conftest.err conftest.$ac_ext
3838d3263506Smrg
3839d3263506Smrgdone
3840d3263506Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3841d3263506Smrgrm -f conftest.err conftest.$ac_ext
384254e0bb33Smrgif $ac_preproc_ok; then :
384354e0bb33Smrg
3844d3263506Smrgelse
384554e0bb33Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3846d3263506Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
384754e0bb33Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
384854e0bb33SmrgSee \`config.log' for more details" "$LINENO" 5; }
3849d3263506Smrgfi
3850d3263506Smrg
3851d3263506Smrgac_ext=c
3852d3263506Smrgac_cpp='$CPP $CPPFLAGS'
3853d3263506Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3854d3263506Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3855d3263506Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3856d3263506Smrg
3857d3263506Smrg
385854e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3859d3263506Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
386054e0bb33Smrgif test "${ac_cv_path_GREP+set}" = set; then :
3861d3263506Smrg  $as_echo_n "(cached) " >&6
3862d3263506Smrgelse
3863d3263506Smrg  if test -z "$GREP"; then
3864d3263506Smrg  ac_path_GREP_found=false
3865d3263506Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
3866d3263506Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867d3263506Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3868d3263506Smrgdo
3869d3263506Smrg  IFS=$as_save_IFS
3870d3263506Smrg  test -z "$as_dir" && as_dir=.
387154e0bb33Smrg    for ac_prog in grep ggrep; do
3872d3263506Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3873d3263506Smrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3874d3263506Smrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3875d3263506Smrg# Check for GNU ac_path_GREP and select it if it is found.
3876d3263506Smrg  # Check for GNU $ac_path_GREP
3877d3263506Smrgcase `"$ac_path_GREP" --version 2>&1` in
3878d3263506Smrg*GNU*)
3879d3263506Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3880d3263506Smrg*)
3881d3263506Smrg  ac_count=0
3882d3263506Smrg  $as_echo_n 0123456789 >"conftest.in"
3883d3263506Smrg  while :
3884d3263506Smrg  do
3885d3263506Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
3886d3263506Smrg    mv "conftest.tmp" "conftest.in"
3887d3263506Smrg    cp "conftest.in" "conftest.nl"
3888d3263506Smrg    $as_echo 'GREP' >> "conftest.nl"
3889d3263506Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3890d3263506Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
389154e0bb33Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
3892d3263506Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3893d3263506Smrg      # Best one so far, save it but keep looking for a better one
3894d3263506Smrg      ac_cv_path_GREP="$ac_path_GREP"
3895d3263506Smrg      ac_path_GREP_max=$ac_count
3896d3263506Smrg    fi
3897d3263506Smrg    # 10*(2^10) chars as input seems more than enough
3898d3263506Smrg    test $ac_count -gt 10 && break
3899d3263506Smrg  done
3900d3263506Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3901d3263506Smrgesac
3902d3263506Smrg
3903d3263506Smrg      $ac_path_GREP_found && break 3
3904d3263506Smrg    done
3905d3263506Smrg  done
390654e0bb33Smrg  done
3907d3263506SmrgIFS=$as_save_IFS
3908d3263506Smrg  if test -z "$ac_cv_path_GREP"; then
390954e0bb33Smrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3910d3263506Smrg  fi
3911d3263506Smrgelse
3912d3263506Smrg  ac_cv_path_GREP=$GREP
3913d3263506Smrgfi
3914d3263506Smrg
3915d3263506Smrgfi
391654e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3917d3263506Smrg$as_echo "$ac_cv_path_GREP" >&6; }
3918d3263506Smrg GREP="$ac_cv_path_GREP"
3919d3263506Smrg
3920d3263506Smrg
392154e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3922d3263506Smrg$as_echo_n "checking for egrep... " >&6; }
392354e0bb33Smrgif test "${ac_cv_path_EGREP+set}" = set; then :
3924d3263506Smrg  $as_echo_n "(cached) " >&6
3925d3263506Smrgelse
3926d3263506Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3927d3263506Smrg   then ac_cv_path_EGREP="$GREP -E"
3928d3263506Smrg   else
3929d3263506Smrg     if test -z "$EGREP"; then
3930d3263506Smrg  ac_path_EGREP_found=false
3931d3263506Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
3932d3263506Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933d3263506Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3934d3263506Smrgdo
3935d3263506Smrg  IFS=$as_save_IFS
3936d3263506Smrg  test -z "$as_dir" && as_dir=.
393754e0bb33Smrg    for ac_prog in egrep; do
3938d3263506Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3939d3263506Smrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3940d3263506Smrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3941d3263506Smrg# Check for GNU ac_path_EGREP and select it if it is found.
3942d3263506Smrg  # Check for GNU $ac_path_EGREP
3943d3263506Smrgcase `"$ac_path_EGREP" --version 2>&1` in
3944d3263506Smrg*GNU*)
3945d3263506Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3946d3263506Smrg*)
3947d3263506Smrg  ac_count=0
3948d3263506Smrg  $as_echo_n 0123456789 >"conftest.in"
3949d3263506Smrg  while :
3950d3263506Smrg  do
3951d3263506Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
3952d3263506Smrg    mv "conftest.tmp" "conftest.in"
3953d3263506Smrg    cp "conftest.in" "conftest.nl"
3954d3263506Smrg    $as_echo 'EGREP' >> "conftest.nl"
3955d3263506Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3956d3263506Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
395754e0bb33Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
3958d3263506Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3959d3263506Smrg      # Best one so far, save it but keep looking for a better one
3960d3263506Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
3961d3263506Smrg      ac_path_EGREP_max=$ac_count
3962d3263506Smrg    fi
3963d3263506Smrg    # 10*(2^10) chars as input seems more than enough
3964d3263506Smrg    test $ac_count -gt 10 && break
3965d3263506Smrg  done
3966d3263506Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3967d3263506Smrgesac
3968d3263506Smrg
3969d3263506Smrg      $ac_path_EGREP_found && break 3
3970d3263506Smrg    done
3971d3263506Smrg  done
397254e0bb33Smrg  done
3973d3263506SmrgIFS=$as_save_IFS
3974d3263506Smrg  if test -z "$ac_cv_path_EGREP"; then
397554e0bb33Smrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3976d3263506Smrg  fi
3977d3263506Smrgelse
3978d3263506Smrg  ac_cv_path_EGREP=$EGREP
3979d3263506Smrgfi
3980d3263506Smrg
3981d3263506Smrg   fi
3982d3263506Smrgfi
398354e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3984d3263506Smrg$as_echo "$ac_cv_path_EGREP" >&6; }
3985d3263506Smrg EGREP="$ac_cv_path_EGREP"
3986d3263506Smrg
3987d3263506Smrg
398854e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3989d3263506Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
399054e0bb33Smrgif test "${ac_cv_header_stdc+set}" = set; then :
3991d3263506Smrg  $as_echo_n "(cached) " >&6
3992d3263506Smrgelse
399354e0bb33Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994d3263506Smrg/* end confdefs.h.  */
3995d3263506Smrg#include <stdlib.h>
3996d3263506Smrg#include <stdarg.h>
3997d3263506Smrg#include <string.h>
3998d3263506Smrg#include <float.h>
3999d3263506Smrg
4000d3263506Smrgint
4001d3263506Smrgmain ()
4002d3263506Smrg{
4003d3263506Smrg
4004d3263506Smrg  ;
4005d3263506Smrg  return 0;
4006d3263506Smrg}
4007d3263506Smrg_ACEOF
400854e0bb33Smrgif ac_fn_c_try_compile "$LINENO"; then :
4009d3263506Smrg  ac_cv_header_stdc=yes
4010d3263506Smrgelse
401154e0bb33Smrg  ac_cv_header_stdc=no
4012d3263506Smrgfi
4013d3263506Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4014d3263506Smrg
4015d3263506Smrgif test $ac_cv_header_stdc = yes; then
4016d3263506Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
401754e0bb33Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018d3263506Smrg/* end confdefs.h.  */
4019d3263506Smrg#include <string.h>
4020d3263506Smrg
4021d3263506Smrg_ACEOF
4022d3263506Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
402354e0bb33Smrg  $EGREP "memchr" >/dev/null 2>&1; then :
402454e0bb33Smrg
4025d3263506Smrgelse
4026d3263506Smrg  ac_cv_header_stdc=no
4027d3263506Smrgfi
4028d3263506Smrgrm -f conftest*
4029d3263506Smrg
4030d3263506Smrgfi
4031d3263506Smrg
4032d3263506Smrgif test $ac_cv_header_stdc = yes; then
4033d3263506Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
403454e0bb33Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035d3263506Smrg/* end confdefs.h.  */
4036d3263506Smrg#include <stdlib.h>
4037d3263506Smrg
4038d3263506Smrg_ACEOF
4039d3263506Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
404054e0bb33Smrg  $EGREP "free" >/dev/null 2>&1; then :
404154e0bb33Smrg
4042d3263506Smrgelse
4043d3263506Smrg  ac_cv_header_stdc=no
4044d3263506Smrgfi
4045d3263506Smrgrm -f conftest*
4046d3263506Smrg
4047d3263506Smrgfi
4048d3263506Smrg
4049d3263506Smrgif test $ac_cv_header_stdc = yes; then
4050d3263506Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
405154e0bb33Smrg  if test "$cross_compiling" = yes; then :
4052d3263506Smrg  :
4053d3263506Smrgelse
405454e0bb33Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055d3263506Smrg/* end confdefs.h.  */
4056d3263506Smrg#include <ctype.h>
4057d3263506Smrg#include <stdlib.h>
4058d3263506Smrg#if ((' ' & 0x0FF) == 0x020)
4059d3263506Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4060d3263506Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4061d3263506Smrg#else
4062d3263506Smrg# define ISLOWER(c) \
4063d3263506Smrg		   (('a' <= (c) && (c) <= 'i') \
4064d3263506Smrg		     || ('j' <= (c) && (c) <= 'r') \
4065d3263506Smrg		     || ('s' <= (c) && (c) <= 'z'))
4066d3263506Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4067d3263506Smrg#endif
4068d3263506Smrg
4069d3263506Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4070d3263506Smrgint
4071d3263506Smrgmain ()
4072d3263506Smrg{
4073d3263506Smrg  int i;
4074d3263506Smrg  for (i = 0; i < 256; i++)
4075d3263506Smrg    if (XOR (islower (i), ISLOWER (i))
4076d3263506Smrg	|| toupper (i) != TOUPPER (i))
4077d3263506Smrg      return 2;
4078d3263506Smrg  return 0;
4079d3263506Smrg}
4080d3263506Smrg_ACEOF
408154e0bb33Smrgif ac_fn_c_try_run "$LINENO"; then :
4082d3263506Smrg
408354e0bb33Smrgelse
408454e0bb33Smrg  ac_cv_header_stdc=no
4085d3263506Smrgfi
408654e0bb33Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
408754e0bb33Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
4088d3263506Smrgfi
4089d3263506Smrg
4090d3263506Smrgfi
4091d3263506Smrgfi
409254e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4093d3263506Smrg$as_echo "$ac_cv_header_stdc" >&6; }
4094d3263506Smrgif test $ac_cv_header_stdc = yes; then
4095d3263506Smrg
409654e0bb33Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4097d3263506Smrg
4098d3263506Smrgfi
4099d3263506Smrg
4100d3263506Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4101d3263506Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4102d3263506Smrg		  inttypes.h stdint.h unistd.h
410354e0bb33Smrgdo :
410454e0bb33Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
410554e0bb33Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
410654e0bb33Smrg"
410754e0bb33Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4108d3263506Smrg  cat >>confdefs.h <<_ACEOF
4109d3263506Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4110d3263506Smrg_ACEOF
4111d3263506Smrg
4112d3263506Smrgfi
4113d3263506Smrg
4114d3263506Smrgdone
4115d3263506Smrg
4116d3263506Smrg
4117b1297603Smrg
4118b1297603Smrg
411954e0bb33Smrg
412054e0bb33Smrg
412154e0bb33Smrg
412254e0bb33Smrg
4123b1297603Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4124b1297603Smrg	if test -n "$ac_tool_prefix"; then
4125b1297603Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4126b1297603Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
412754e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
41285b944e2aSmrg$as_echo_n "checking for $ac_word... " >&6; }
412954e0bb33Smrgif test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
41305b944e2aSmrg  $as_echo_n "(cached) " >&6
4131b1297603Smrgelse
4132b1297603Smrg  case $PKG_CONFIG in
4133b1297603Smrg  [\\/]* | ?:[\\/]*)
4134b1297603Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4135b1297603Smrg  ;;
4136b1297603Smrg  *)
4137b1297603Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138b1297603Smrgfor as_dir in $PATH
4139b1297603Smrgdo
4140b1297603Smrg  IFS=$as_save_IFS
4141b1297603Smrg  test -z "$as_dir" && as_dir=.
414254e0bb33Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4143b1297603Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4144b1297603Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
414554e0bb33Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4146b1297603Smrg    break 2
4147b1297603Smrg  fi
4148b1297603Smrgdone
414954e0bb33Smrg  done
4150b1297603SmrgIFS=$as_save_IFS
4151b1297603Smrg
4152b1297603Smrg  ;;
4153b1297603Smrgesac
4154b1297603Smrgfi
4155b1297603SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
4156b1297603Smrgif test -n "$PKG_CONFIG"; then
415754e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
41585b944e2aSmrg$as_echo "$PKG_CONFIG" >&6; }
4159b1297603Smrgelse
416054e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41615b944e2aSmrg$as_echo "no" >&6; }
4162b1297603Smrgfi
4163b1297603Smrg
4164b1297603Smrg
4165b1297603Smrgfi
4166b1297603Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
4167b1297603Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
4168b1297603Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
4169b1297603Smrgset dummy pkg-config; ac_word=$2
417054e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
41715b944e2aSmrg$as_echo_n "checking for $ac_word... " >&6; }
417254e0bb33Smrgif test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
41735b944e2aSmrg  $as_echo_n "(cached) " >&6
4174b1297603Smrgelse
4175b1297603Smrg  case $ac_pt_PKG_CONFIG in
4176b1297603Smrg  [\\/]* | ?:[\\/]*)
4177b1297603Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4178b1297603Smrg  ;;
4179b1297603Smrg  *)
4180b1297603Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181b1297603Smrgfor as_dir in $PATH
4182b1297603Smrgdo
4183b1297603Smrg  IFS=$as_save_IFS
4184b1297603Smrg  test -z "$as_dir" && as_dir=.
418554e0bb33Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4186b1297603Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4187b1297603Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
418854e0bb33Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4189b1297603Smrg    break 2
4190b1297603Smrg  fi
4191b1297603Smrgdone
419254e0bb33Smrg  done
4193b1297603SmrgIFS=$as_save_IFS
4194b1297603Smrg
4195b1297603Smrg  ;;
4196b1297603Smrgesac
4197b1297603Smrgfi
4198b1297603Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4199b1297603Smrgif test -n "$ac_pt_PKG_CONFIG"; then
420054e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
42015b944e2aSmrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4202b1297603Smrgelse
420354e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42045b944e2aSmrg$as_echo "no" >&6; }
4205b1297603Smrgfi
4206b1297603Smrg
4207b1297603Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
4208b1297603Smrg    PKG_CONFIG=""
4209b1297603Smrg  else
4210b1297603Smrg    case $cross_compiling:$ac_tool_warned in
4211b1297603Smrgyes:)
421254e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
42135b944e2aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4214b1297603Smrgac_tool_warned=yes ;;
4215b1297603Smrgesac
4216b1297603Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
4217b1297603Smrg  fi
4218b1297603Smrgelse
4219b1297603Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4220b1297603Smrgfi
4221b1297603Smrg
4222b1297603Smrgfi
4223b1297603Smrgif test -n "$PKG_CONFIG"; then
4224b1297603Smrg	_pkg_min_version=0.9.0
422554e0bb33Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
42265b944e2aSmrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4227b1297603Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
422854e0bb33Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42295b944e2aSmrg$as_echo "yes" >&6; }
4230b1297603Smrg	else
423154e0bb33Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42325b944e2aSmrg$as_echo "no" >&6; }
4233b1297603Smrg		PKG_CONFIG=""
4234b1297603Smrg	fi
4235b1297603Smrgfi
4236b1297603Smrg# Make sure we can run config.sub.
4237b1297603Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
423854e0bb33Smrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4239b1297603Smrg
424054e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
42415b944e2aSmrg$as_echo_n "checking build system type... " >&6; }
424254e0bb33Smrgif test "${ac_cv_build+set}" = set; then :
42435b944e2aSmrg  $as_echo_n "(cached) " >&6
4244b1297603Smrgelse
4245b1297603Smrg  ac_build_alias=$build_alias
4246b1297603Smrgtest "x$ac_build_alias" = x &&
4247b1297603Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4248b1297603Smrgtest "x$ac_build_alias" = x &&
424954e0bb33Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4250b1297603Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
425154e0bb33Smrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4252b1297603Smrg
4253b1297603Smrgfi
425454e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
42555b944e2aSmrg$as_echo "$ac_cv_build" >&6; }
4256b1297603Smrgcase $ac_cv_build in
4257b1297603Smrg*-*-*) ;;
425854e0bb33Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4259b1297603Smrgesac
4260b1297603Smrgbuild=$ac_cv_build
4261b1297603Smrgac_save_IFS=$IFS; IFS='-'
4262b1297603Smrgset x $ac_cv_build
4263b1297603Smrgshift
4264b1297603Smrgbuild_cpu=$1
4265b1297603Smrgbuild_vendor=$2
4266b1297603Smrgshift; shift
4267b1297603Smrg# Remember, the first character of IFS is used to create $*,
4268b1297603Smrg# except with old shells:
4269b1297603Smrgbuild_os=$*
4270b1297603SmrgIFS=$ac_save_IFS
4271b1297603Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4272b1297603Smrg
4273b1297603Smrg
427454e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
42755b944e2aSmrg$as_echo_n "checking host system type... " >&6; }
427654e0bb33Smrgif test "${ac_cv_host+set}" = set; then :
42775b944e2aSmrg  $as_echo_n "(cached) " >&6
4278b1297603Smrgelse
4279b1297603Smrg  if test "x$host_alias" = x; then
4280b1297603Smrg  ac_cv_host=$ac_cv_build
4281b1297603Smrgelse
4282b1297603Smrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
428354e0bb33Smrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4284b1297603Smrgfi
4285b1297603Smrg
4286b1297603Smrgfi
428754e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
42885b944e2aSmrg$as_echo "$ac_cv_host" >&6; }
4289b1297603Smrgcase $ac_cv_host in
4290b1297603Smrg*-*-*) ;;
429154e0bb33Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4292b1297603Smrgesac
4293b1297603Smrghost=$ac_cv_host
4294b1297603Smrgac_save_IFS=$IFS; IFS='-'
4295b1297603Smrgset x $ac_cv_host
4296b1297603Smrgshift
4297b1297603Smrghost_cpu=$1
4298b1297603Smrghost_vendor=$2
4299b1297603Smrgshift; shift
4300b1297603Smrg# Remember, the first character of IFS is used to create $*,
4301b1297603Smrg# except with old shells:
4302b1297603Smrghost_os=$*
4303b1297603SmrgIFS=$ac_save_IFS
4304b1297603Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4305b1297603Smrg
4306b1297603Smrg
430754e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4308cea37944Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
430954e0bb33Smrgif test "${ac_cv_path_SED+set}" = set; then :
4310cea37944Smrg  $as_echo_n "(cached) " >&6
4311cea37944Smrgelse
4312cea37944Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4313cea37944Smrg     for ac_i in 1 2 3 4 5 6 7; do
4314cea37944Smrg       ac_script="$ac_script$as_nl$ac_script"
4315cea37944Smrg     done
4316cea37944Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
431754e0bb33Smrg     { ac_script=; unset ac_script;}
4318cea37944Smrg     if test -z "$SED"; then
4319cea37944Smrg  ac_path_SED_found=false
4320cea37944Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
4321cea37944Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322cea37944Smrgfor as_dir in $PATH
4323cea37944Smrgdo
4324cea37944Smrg  IFS=$as_save_IFS
4325cea37944Smrg  test -z "$as_dir" && as_dir=.
432654e0bb33Smrg    for ac_prog in sed gsed; do
4327cea37944Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4328cea37944Smrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4329cea37944Smrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4330cea37944Smrg# Check for GNU ac_path_SED and select it if it is found.
4331cea37944Smrg  # Check for GNU $ac_path_SED
4332cea37944Smrgcase `"$ac_path_SED" --version 2>&1` in
4333cea37944Smrg*GNU*)
4334cea37944Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4335cea37944Smrg*)
4336cea37944Smrg  ac_count=0
4337cea37944Smrg  $as_echo_n 0123456789 >"conftest.in"
4338cea37944Smrg  while :
4339cea37944Smrg  do
4340cea37944Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4341cea37944Smrg    mv "conftest.tmp" "conftest.in"
4342cea37944Smrg    cp "conftest.in" "conftest.nl"
4343cea37944Smrg    $as_echo '' >> "conftest.nl"
4344cea37944Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4345cea37944Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
434654e0bb33Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4347cea37944Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
4348cea37944Smrg      # Best one so far, save it but keep looking for a better one
4349cea37944Smrg      ac_cv_path_SED="$ac_path_SED"
4350cea37944Smrg      ac_path_SED_max=$ac_count
4351cea37944Smrg    fi
4352cea37944Smrg    # 10*(2^10) chars as input seems more than enough
4353cea37944Smrg    test $ac_count -gt 10 && break
4354cea37944Smrg  done
4355cea37944Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4356cea37944Smrgesac
4357cea37944Smrg
4358cea37944Smrg      $ac_path_SED_found && break 3
4359cea37944Smrg    done
4360cea37944Smrg  done
436154e0bb33Smrg  done
4362cea37944SmrgIFS=$as_save_IFS
4363cea37944Smrg  if test -z "$ac_cv_path_SED"; then
436454e0bb33Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4365cea37944Smrg  fi
4366cea37944Smrgelse
436754e0bb33Smrg  ac_cv_path_SED=$SED
436853719b08Smrgfi
436953719b08Smrg
437053719b08Smrgfi
437154e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
437254e0bb33Smrg$as_echo "$ac_cv_path_SED" >&6; }
437354e0bb33Smrg SED="$ac_cv_path_SED"
437454e0bb33Smrg  rm -f conftest.sed
437554e0bb33Smrg
437654e0bb33Smrg
437754e0bb33Smrg
437854e0bb33Smrg
437954e0bb33Smrg
438054e0bb33Smrgif  test "x$GCC" = xyes ; then
438154e0bb33Smrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
438254e0bb33Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
438354e0bb33Smrg-Wbad-function-cast -Wformat=2"
438454e0bb33Smrg    case `$CC -dumpversion` in
438554e0bb33Smrg    3.4.* | 4.*)
438654e0bb33Smrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
438754e0bb33Smrg	;;
438854e0bb33Smrg    esac
438954e0bb33Smrgelse
439054e0bb33Smrg    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
439154e0bb33Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
439253719b08Smrg  SUNCC="yes"
439353719b08Smrgelse
439453719b08Smrg  SUNCC="no"
439553719b08Smrgfi
439653719b08Smrg
439753719b08Smrg    if test "x$SUNCC" = "xyes"; then
439853719b08Smrg	CWARNFLAGS="-v"
439953719b08Smrg    fi
440053719b08Smrgfi
440153719b08Smrg
440253719b08Smrg
440353719b08Smrg
4404cea37944Smrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
440553719b08Smrg
440653719b08Smrg
440753719b08Smrg
440853719b08Smrg# Check whether --enable-strict-compilation was given.
440954e0bb33Smrgif test "${enable_strict_compilation+set}" = set; then :
441053719b08Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
441153719b08Smrgelse
441253719b08Smrg  STRICT_COMPILE=no
441353719b08Smrgfi
441453719b08Smrg
441553719b08Smrgif test "x$STRICT_COMPILE" = "xyes"; then
441654e0bb33Smrg	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
441754e0bb33Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
441853719b08Smrg  SUNCC="yes"
441953719b08Smrgelse
442053719b08Smrg  SUNCC="no"
442153719b08Smrgfi
442253719b08Smrg
442354e0bb33Smrg	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
442454e0bb33Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then :
442553719b08Smrg  INTELCC="yes"
442653719b08Smrgelse
442753719b08Smrg  INTELCC="no"
442853719b08Smrgfi
442953719b08Smrg
443053719b08Smrg	if test "x$GCC" = xyes ; then
443153719b08Smrg		STRICT_CFLAGS="-pedantic -Werror"
443253719b08Smrg	elif test "x$SUNCC" = "xyes"; then
443353719b08Smrg		STRICT_CFLAGS="-errwarn"
443453719b08Smrg    elif test "x$INTELCC" = "xyes"; then
443553719b08Smrg		STRICT_CFLAGS="-Werror"
443653719b08Smrg	fi
443753719b08Smrgfi
443853719b08SmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
443953719b08Smrg
444053719b08Smrg
444153719b08Smrg
444253719b08Smrg
444353719b08Smrgcat >>confdefs.h <<_ACEOF
444453719b08Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
444553719b08Smrg_ACEOF
444653719b08Smrg
444753719b08Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
444853719b08Smrg	if test "x$PVM" = "x"; then
444953719b08Smrg		PVM="0"
445053719b08Smrg	fi
445153719b08Smrg
445253719b08Smrgcat >>confdefs.h <<_ACEOF
445353719b08Smrg#define PACKAGE_VERSION_MINOR $PVM
445453719b08Smrg_ACEOF
445553719b08Smrg
445653719b08Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
445753719b08Smrg	if test "x$PVP" = "x"; then
445853719b08Smrg		PVP="0"
445953719b08Smrg	fi
446053719b08Smrg
446153719b08Smrgcat >>confdefs.h <<_ACEOF
446253719b08Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
446353719b08Smrg_ACEOF
446453719b08Smrg
446553719b08Smrg
446653719b08Smrg
446753719b08SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
446853719b08Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
446953719b08Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
447053719b08Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
447153719b08Smrg
447253719b08Smrg
447353719b08Smrg
447453719b08Smrg
447553719b08Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
447653719b08SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
447753719b08Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
447853719b08Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
447953719b08Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
448053719b08Smrg
448153719b08Smrg
448253719b08Smrg
448353719b08Smrg
448453719b08Smrg
4485cea37944Smrg
448653719b08Smrgif test x$APP_MAN_SUFFIX = x    ; then
448753719b08Smrg    APP_MAN_SUFFIX=1
448853719b08Smrgfi
448953719b08Smrgif test x$APP_MAN_DIR = x    ; then
449053719b08Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
449153719b08Smrgfi
449253719b08Smrg
449353719b08Smrgif test x$LIB_MAN_SUFFIX = x    ; then
449453719b08Smrg    LIB_MAN_SUFFIX=3
449553719b08Smrgfi
449653719b08Smrgif test x$LIB_MAN_DIR = x    ; then
449753719b08Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
449853719b08Smrgfi
449953719b08Smrg
450053719b08Smrgif test x$FILE_MAN_SUFFIX = x    ; then
450153719b08Smrg    case $host_os in
450253719b08Smrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
450353719b08Smrg	*)		FILE_MAN_SUFFIX=5  ;;
450453719b08Smrg    esac
450553719b08Smrgfi
450653719b08Smrgif test x$FILE_MAN_DIR = x    ; then
450753719b08Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
450853719b08Smrgfi
450953719b08Smrg
451053719b08Smrgif test x$MISC_MAN_SUFFIX = x    ; then
451153719b08Smrg    case $host_os in
451253719b08Smrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
451353719b08Smrg	*)		MISC_MAN_SUFFIX=7  ;;
451453719b08Smrg    esac
451553719b08Smrgfi
451653719b08Smrgif test x$MISC_MAN_DIR = x    ; then
451753719b08Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
451853719b08Smrgfi
451953719b08Smrg
452053719b08Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
452153719b08Smrg    case $host_os in
452253719b08Smrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
452353719b08Smrg	*)		DRIVER_MAN_SUFFIX=4  ;;
452453719b08Smrg    esac
452553719b08Smrgfi
452653719b08Smrgif test x$DRIVER_MAN_DIR = x    ; then
452753719b08Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
452853719b08Smrgfi
452953719b08Smrg
453053719b08Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
453153719b08Smrg    case $host_os in
453253719b08Smrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
453353719b08Smrg	*)		ADMIN_MAN_SUFFIX=8  ;;
453453719b08Smrg    esac
453553719b08Smrgfi
453653719b08Smrgif test x$ADMIN_MAN_DIR = x    ; then
453753719b08Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
453853719b08Smrgfi
453953719b08Smrg
454053719b08Smrg
454153719b08Smrg
454253719b08Smrg
454353719b08Smrg
454453719b08Smrg
454553719b08Smrg
454653719b08Smrg
454753719b08Smrg
454853719b08Smrg
454953719b08Smrg
455053719b08Smrg
455153719b08Smrg
455253719b08Smrg
455353719b08Smrg
4554cea37944SmrgXORG_MAN_PAGE="X Version 11"
4555cea37944Smrg
4556cea37944SmrgMAN_SUBSTS="\
4557cea37944Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4558cea37944Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4559cea37944Smrg	-e 's|__xservername__|Xorg|g' \
4560cea37944Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
4561cea37944Smrg	-e 's|__projectroot__|\$(prefix)|g' \
4562cea37944Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4563cea37944Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4564cea37944Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4565cea37944Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4566cea37944Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4567cea37944Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4568cea37944Smrg
4569cea37944Smrg
4570cea37944Smrg
4571cea37944Smrg# Check whether --enable-silent-rules was given.
457254e0bb33Smrgif test "${enable_silent_rules+set}" = set; then :
4573cea37944Smrg  enableval=$enable_silent_rules;
4574cea37944Smrgfi
4575cea37944Smrg
4576cea37944Smrgcase $enable_silent_rules in
4577cea37944Smrgyes) AM_DEFAULT_VERBOSITY=0;;
4578cea37944Smrgno)  AM_DEFAULT_VERBOSITY=1;;
4579cea37944Smrg*)   AM_DEFAULT_VERBOSITY=0;;
4580cea37944Smrgesac
4581cea37944SmrgAM_BACKSLASH='\'
4582cea37944Smrg
458353719b08Smrg
458453719b08Smrg
458553719b08Smrgac_config_headers="$ac_config_headers config.h"
458653719b08Smrg
458753719b08Smrg
458853719b08Smrgac_ext=c
458953719b08Smrgac_cpp='$CPP $CPPFLAGS'
459053719b08Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
459153719b08Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
459253719b08Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
459353719b08Smrgif test -n "$ac_tool_prefix"; then
459453719b08Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
459553719b08Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
459654e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
459753719b08Smrg$as_echo_n "checking for $ac_word... " >&6; }
459854e0bb33Smrgif test "${ac_cv_prog_CC+set}" = set; then :
459953719b08Smrg  $as_echo_n "(cached) " >&6
460053719b08Smrgelse
460153719b08Smrg  if test -n "$CC"; then
460253719b08Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
460353719b08Smrgelse
460453719b08Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
460553719b08Smrgfor as_dir in $PATH
460653719b08Smrgdo
460753719b08Smrg  IFS=$as_save_IFS
460853719b08Smrg  test -z "$as_dir" && as_dir=.
460954e0bb33Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
461053719b08Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
461153719b08Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
461254e0bb33Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
461353719b08Smrg    break 2
461453719b08Smrg  fi
461553719b08Smrgdone
461654e0bb33Smrg  done
461753719b08SmrgIFS=$as_save_IFS
461853719b08Smrg
461953719b08Smrgfi
462053719b08Smrgfi
462153719b08SmrgCC=$ac_cv_prog_CC
462253719b08Smrgif test -n "$CC"; then
462354e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
462453719b08Smrg$as_echo "$CC" >&6; }
462553719b08Smrgelse
462654e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
462753719b08Smrg$as_echo "no" >&6; }
462853719b08Smrgfi
462953719b08Smrg
463053719b08Smrg
463153719b08Smrgfi
463253719b08Smrgif test -z "$ac_cv_prog_CC"; then
463353719b08Smrg  ac_ct_CC=$CC
463453719b08Smrg  # Extract the first word of "gcc", so it can be a program name with args.
463553719b08Smrgset dummy gcc; ac_word=$2
463654e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
463753719b08Smrg$as_echo_n "checking for $ac_word... " >&6; }
463854e0bb33Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
463953719b08Smrg  $as_echo_n "(cached) " >&6
464053719b08Smrgelse
464153719b08Smrg  if test -n "$ac_ct_CC"; then
464253719b08Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
464353719b08Smrgelse
464453719b08Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
464553719b08Smrgfor as_dir in $PATH
464653719b08Smrgdo
464753719b08Smrg  IFS=$as_save_IFS
464853719b08Smrg  test -z "$as_dir" && as_dir=.
464954e0bb33Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
465053719b08Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
465153719b08Smrg    ac_cv_prog_ac_ct_CC="gcc"
465254e0bb33Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
465353719b08Smrg    break 2
465453719b08Smrg  fi
465553719b08Smrgdone
465654e0bb33Smrg  done
465753719b08SmrgIFS=$as_save_IFS
465853719b08Smrg
465953719b08Smrgfi
466053719b08Smrgfi
466153719b08Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
466253719b08Smrgif test -n "$ac_ct_CC"; then
466354e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
466453719b08Smrg$as_echo "$ac_ct_CC" >&6; }
466553719b08Smrgelse
466654e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
466753719b08Smrg$as_echo "no" >&6; }
466853719b08Smrgfi
466953719b08Smrg
467053719b08Smrg  if test "x$ac_ct_CC" = x; then
467153719b08Smrg    CC=""
467253719b08Smrg  else
467353719b08Smrg    case $cross_compiling:$ac_tool_warned in
467453719b08Smrgyes:)
467554e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
467653719b08Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
467753719b08Smrgac_tool_warned=yes ;;
467853719b08Smrgesac
467953719b08Smrg    CC=$ac_ct_CC
468053719b08Smrg  fi
468153719b08Smrgelse
468253719b08Smrg  CC="$ac_cv_prog_CC"
468353719b08Smrgfi
468453719b08Smrg
468553719b08Smrgif test -z "$CC"; then
468653719b08Smrg          if test -n "$ac_tool_prefix"; then
468753719b08Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
468853719b08Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
468954e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
469053719b08Smrg$as_echo_n "checking for $ac_word... " >&6; }
469154e0bb33Smrgif test "${ac_cv_prog_CC+set}" = set; then :
469253719b08Smrg  $as_echo_n "(cached) " >&6
469353719b08Smrgelse
469453719b08Smrg  if test -n "$CC"; then
469553719b08Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
469653719b08Smrgelse
469753719b08Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
469853719b08Smrgfor as_dir in $PATH
469953719b08Smrgdo
470053719b08Smrg  IFS=$as_save_IFS
470153719b08Smrg  test -z "$as_dir" && as_dir=.
470254e0bb33Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
470353719b08Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
470453719b08Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
470554e0bb33Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
470653719b08Smrg    break 2
470753719b08Smrg  fi
470853719b08Smrgdone
470954e0bb33Smrg  done
471053719b08SmrgIFS=$as_save_IFS
471153719b08Smrg
471253719b08Smrgfi
471353719b08Smrgfi
471453719b08SmrgCC=$ac_cv_prog_CC
471553719b08Smrgif test -n "$CC"; then
471654e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
471753719b08Smrg$as_echo "$CC" >&6; }
471853719b08Smrgelse
471954e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
472053719b08Smrg$as_echo "no" >&6; }
472153719b08Smrgfi
472253719b08Smrg
472353719b08Smrg
472453719b08Smrg  fi
472553719b08Smrgfi
472653719b08Smrgif test -z "$CC"; then
472753719b08Smrg  # Extract the first word of "cc", so it can be a program name with args.
472853719b08Smrgset dummy cc; ac_word=$2
472954e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
473053719b08Smrg$as_echo_n "checking for $ac_word... " >&6; }
473154e0bb33Smrgif test "${ac_cv_prog_CC+set}" = set; then :
473253719b08Smrg  $as_echo_n "(cached) " >&6
473353719b08Smrgelse
473453719b08Smrg  if test -n "$CC"; then
473553719b08Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
473653719b08Smrgelse
473753719b08Smrg  ac_prog_rejected=no
473853719b08Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
473953719b08Smrgfor as_dir in $PATH
474053719b08Smrgdo
474153719b08Smrg  IFS=$as_save_IFS
474253719b08Smrg  test -z "$as_dir" && as_dir=.
474354e0bb33Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
474453719b08Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
474553719b08Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
474653719b08Smrg       ac_prog_rejected=yes
474753719b08Smrg       continue
474853719b08Smrg     fi
474953719b08Smrg    ac_cv_prog_CC="cc"
475054e0bb33Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
475153719b08Smrg    break 2
475253719b08Smrg  fi
475353719b08Smrgdone
475454e0bb33Smrg  done
475553719b08SmrgIFS=$as_save_IFS
475653719b08Smrg
475753719b08Smrgif test $ac_prog_rejected = yes; then
475853719b08Smrg  # We found a bogon in the path, so make sure we never use it.
475953719b08Smrg  set dummy $ac_cv_prog_CC
476053719b08Smrg  shift
476153719b08Smrg  if test $# != 0; then
476253719b08Smrg    # We chose a different compiler from the bogus one.
476353719b08Smrg    # However, it has the same basename, so the bogon will be chosen
476453719b08Smrg    # first if we set CC to just the basename; use the full file name.
476553719b08Smrg    shift
476653719b08Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
476753719b08Smrg  fi
476853719b08Smrgfi
476953719b08Smrgfi
477053719b08Smrgfi
477153719b08SmrgCC=$ac_cv_prog_CC
477253719b08Smrgif test -n "$CC"; then
477354e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
477453719b08Smrg$as_echo "$CC" >&6; }
477553719b08Smrgelse
477654e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
477753719b08Smrg$as_echo "no" >&6; }
477853719b08Smrgfi
477953719b08Smrg
478053719b08Smrg
478153719b08Smrgfi
478253719b08Smrgif test -z "$CC"; then
478353719b08Smrg  if test -n "$ac_tool_prefix"; then
478453719b08Smrg  for ac_prog in cl.exe
478553719b08Smrg  do
478653719b08Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
478753719b08Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
478854e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
478953719b08Smrg$as_echo_n "checking for $ac_word... " >&6; }
479054e0bb33Smrgif test "${ac_cv_prog_CC+set}" = set; then :
479153719b08Smrg  $as_echo_n "(cached) " >&6
479253719b08Smrgelse
479353719b08Smrg  if test -n "$CC"; then
479453719b08Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
479553719b08Smrgelse
479653719b08Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
479753719b08Smrgfor as_dir in $PATH
479853719b08Smrgdo
479953719b08Smrg  IFS=$as_save_IFS
480053719b08Smrg  test -z "$as_dir" && as_dir=.
480154e0bb33Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
480253719b08Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
480353719b08Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
480454e0bb33Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
480553719b08Smrg    break 2
480653719b08Smrg  fi
480753719b08Smrgdone
480854e0bb33Smrg  done
480953719b08SmrgIFS=$as_save_IFS
481053719b08Smrg
481153719b08Smrgfi
481253719b08Smrgfi
481353719b08SmrgCC=$ac_cv_prog_CC
481453719b08Smrgif test -n "$CC"; then
481554e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
481653719b08Smrg$as_echo "$CC" >&6; }
481753719b08Smrgelse
481854e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
481953719b08Smrg$as_echo "no" >&6; }
482053719b08Smrgfi
482153719b08Smrg
482253719b08Smrg
482353719b08Smrg    test -n "$CC" && break
482453719b08Smrg  done
482553719b08Smrgfi
482653719b08Smrgif test -z "$CC"; then
482753719b08Smrg  ac_ct_CC=$CC
482853719b08Smrg  for ac_prog in cl.exe
482953719b08Smrgdo
483053719b08Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
483153719b08Smrgset dummy $ac_prog; ac_word=$2
483254e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
483353719b08Smrg$as_echo_n "checking for $ac_word... " >&6; }
483454e0bb33Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
483553719b08Smrg  $as_echo_n "(cached) " >&6
483653719b08Smrgelse
483753719b08Smrg  if test -n "$ac_ct_CC"; then
483853719b08Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
483953719b08Smrgelse
484053719b08Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
484153719b08Smrgfor as_dir in $PATH
484253719b08Smrgdo
484353719b08Smrg  IFS=$as_save_IFS
484453719b08Smrg  test -z "$as_dir" && as_dir=.
484554e0bb33Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
484653719b08Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
484753719b08Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
484854e0bb33Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
484953719b08Smrg    break 2
485053719b08Smrg  fi
485153719b08Smrgdone
485254e0bb33Smrg  done
485353719b08SmrgIFS=$as_save_IFS
485453719b08Smrg
485553719b08Smrgfi
485653719b08Smrgfi
485753719b08Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
485853719b08Smrgif test -n "$ac_ct_CC"; then
485954e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
486053719b08Smrg$as_echo "$ac_ct_CC" >&6; }
486153719b08Smrgelse
486254e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
486353719b08Smrg$as_echo "no" >&6; }
486453719b08Smrgfi
486553719b08Smrg
486653719b08Smrg
486753719b08Smrg  test -n "$ac_ct_CC" && break
486853719b08Smrgdone
486953719b08Smrg
487053719b08Smrg  if test "x$ac_ct_CC" = x; then
487153719b08Smrg    CC=""
487253719b08Smrg  else
487353719b08Smrg    case $cross_compiling:$ac_tool_warned in
487453719b08Smrgyes:)
487554e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
487653719b08Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
487753719b08Smrgac_tool_warned=yes ;;
487853719b08Smrgesac
487953719b08Smrg    CC=$ac_ct_CC
488053719b08Smrg  fi
488153719b08Smrgfi
488253719b08Smrg
488353719b08Smrgfi
488453719b08Smrg
488553719b08Smrg
488654e0bb33Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
488753719b08Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
488854e0bb33Smrgas_fn_error $? "no acceptable C compiler found in \$PATH
488954e0bb33SmrgSee \`config.log' for more details" "$LINENO" 5; }
489053719b08Smrg
489153719b08Smrg# Provide some information about the compiler.
489254e0bb33Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
489353719b08Smrgset X $ac_compile
489453719b08Smrgac_compiler=$2
489554e0bb33Smrgfor ac_option in --version -v -V -qversion; do
489654e0bb33Smrg  { { ac_try="$ac_compiler $ac_option >&5"
489753719b08Smrgcase "(($ac_try" in
489853719b08Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
489953719b08Smrg  *) ac_try_echo=$ac_try;;
490053719b08Smrgesac
490154e0bb33Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
490254e0bb33Smrg$as_echo "$ac_try_echo"; } >&5
490354e0bb33Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
490453719b08Smrg  ac_status=$?
490554e0bb33Smrg  if test -s conftest.err; then
490654e0bb33Smrg    sed '10a\
490754e0bb33Smrg... rest of stderr output deleted ...
490854e0bb33Smrg         10q' conftest.err >conftest.er1
490954e0bb33Smrg    cat conftest.er1 >&5
491054e0bb33Smrg  fi
491154e0bb33Smrg  rm -f conftest.er1 conftest.err
491254e0bb33Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
491354e0bb33Smrg  test $ac_status = 0; }
491454e0bb33Smrgdone
491553719b08Smrg
491654e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
491753719b08Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
491854e0bb33Smrgif test "${ac_cv_c_compiler_gnu+set}" = set; then :
491953719b08Smrg  $as_echo_n "(cached) " >&6
492053719b08Smrgelse
492154e0bb33Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
492253719b08Smrg/* end confdefs.h.  */
492353719b08Smrg
492453719b08Smrgint
492553719b08Smrgmain ()
492653719b08Smrg{
492753719b08Smrg#ifndef __GNUC__
492853719b08Smrg       choke me
492953719b08Smrg#endif
493053719b08Smrg
493153719b08Smrg  ;
493253719b08Smrg  return 0;
493353719b08Smrg}
493453719b08Smrg_ACEOF
493554e0bb33Smrgif ac_fn_c_try_compile "$LINENO"; then :
493653719b08Smrg  ac_compiler_gnu=yes
493753719b08Smrgelse
493854e0bb33Smrg  ac_compiler_gnu=no
493953719b08Smrgfi
494053719b08Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
494153719b08Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
494253719b08Smrg
494353719b08Smrgfi
494454e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
494553719b08Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
494653719b08Smrgif test $ac_compiler_gnu = yes; then
494753719b08Smrg  GCC=yes
494853719b08Smrgelse
494953719b08Smrg  GCC=
495053719b08Smrgfi
495153719b08Smrgac_test_CFLAGS=${CFLAGS+set}
495253719b08Smrgac_save_CFLAGS=$CFLAGS
495354e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
495453719b08Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
495554e0bb33Smrgif test "${ac_cv_prog_cc_g+set}" = set; then :
495653719b08Smrg  $as_echo_n "(cached) " >&6
495753719b08Smrgelse
495853719b08Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
495953719b08Smrg   ac_c_werror_flag=yes
496053719b08Smrg   ac_cv_prog_cc_g=no
496153719b08Smrg   CFLAGS="-g"
496254e0bb33Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
496353719b08Smrg/* end confdefs.h.  */
496453719b08Smrg
496553719b08Smrgint
496653719b08Smrgmain ()
496753719b08Smrg{
496853719b08Smrg
496953719b08Smrg  ;
497053719b08Smrg  return 0;
497153719b08Smrg}
497253719b08Smrg_ACEOF
497354e0bb33Smrgif ac_fn_c_try_compile "$LINENO"; then :
497453719b08Smrg  ac_cv_prog_cc_g=yes
497553719b08Smrgelse
497654e0bb33Smrg  CFLAGS=""
497754e0bb33Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
497853719b08Smrg/* end confdefs.h.  */
497953719b08Smrg
498053719b08Smrgint
498153719b08Smrgmain ()
498253719b08Smrg{
498353719b08Smrg
498453719b08Smrg  ;
498553719b08Smrg  return 0;
498653719b08Smrg}
498753719b08Smrg_ACEOF
498854e0bb33Smrgif ac_fn_c_try_compile "$LINENO"; then :
498953719b08Smrg
499054e0bb33Smrgelse
499154e0bb33Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
499253719b08Smrg	 CFLAGS="-g"
499354e0bb33Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
499453719b08Smrg/* end confdefs.h.  */
499553719b08Smrg
499653719b08Smrgint
499753719b08Smrgmain ()
499853719b08Smrg{
499953719b08Smrg
500053719b08Smrg  ;
500153719b08Smrg  return 0;
500253719b08Smrg}
500353719b08Smrg_ACEOF
500454e0bb33Smrgif ac_fn_c_try_compile "$LINENO"; then :
500553719b08Smrg  ac_cv_prog_cc_g=yes
500653719b08Smrgfi
500753719b08Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
500853719b08Smrgfi
500953719b08Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
501053719b08Smrgfi
501153719b08Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
501253719b08Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
501353719b08Smrgfi
501454e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
501553719b08Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
501653719b08Smrgif test "$ac_test_CFLAGS" = set; then
501753719b08Smrg  CFLAGS=$ac_save_CFLAGS
501853719b08Smrgelif test $ac_cv_prog_cc_g = yes; then
501953719b08Smrg  if test "$GCC" = yes; then
502053719b08Smrg    CFLAGS="-g -O2"
502153719b08Smrg  else
502253719b08Smrg    CFLAGS="-g"
502353719b08Smrg  fi
502453719b08Smrgelse
502553719b08Smrg  if test "$GCC" = yes; then
502653719b08Smrg    CFLAGS="-O2"
502753719b08Smrg  else
502853719b08Smrg    CFLAGS=
502953719b08Smrg  fi
503053719b08Smrgfi
503154e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
503253719b08Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
503354e0bb33Smrgif test "${ac_cv_prog_cc_c89+set}" = set; then :
503453719b08Smrg  $as_echo_n "(cached) " >&6
503553719b08Smrgelse
503653719b08Smrg  ac_cv_prog_cc_c89=no
503753719b08Smrgac_save_CC=$CC
503854e0bb33Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
503953719b08Smrg/* end confdefs.h.  */
504053719b08Smrg#include <stdarg.h>
504153719b08Smrg#include <stdio.h>
504253719b08Smrg#include <sys/types.h>
504353719b08Smrg#include <sys/stat.h>
504453719b08Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
504553719b08Smrgstruct buf { int x; };
504653719b08SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
504753719b08Smrgstatic char *e (p, i)
504853719b08Smrg     char **p;
504953719b08Smrg     int i;
505053719b08Smrg{
505153719b08Smrg  return p[i];
505253719b08Smrg}
505353719b08Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
505453719b08Smrg{
505553719b08Smrg  char *s;
505653719b08Smrg  va_list v;
505753719b08Smrg  va_start (v,p);
505853719b08Smrg  s = g (p, va_arg (v,int));
505953719b08Smrg  va_end (v);
506053719b08Smrg  return s;
506153719b08Smrg}
506253719b08Smrg
506353719b08Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
506453719b08Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
506553719b08Smrg   These don't provoke an error unfortunately, instead are silently treated
506653719b08Smrg   as 'x'.  The following induces an error, until -std is added to get
506753719b08Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
506853719b08Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
506953719b08Smrg   that's true only with -std.  */
507053719b08Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
507153719b08Smrg
507253719b08Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
507353719b08Smrg   inside strings and character constants.  */
507453719b08Smrg#define FOO(x) 'x'
507553719b08Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
507653719b08Smrg
507753719b08Smrgint test (int i, double x);
507853719b08Smrgstruct s1 {int (*f) (int a);};
507953719b08Smrgstruct s2 {int (*f) (double a);};
508053719b08Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
508153719b08Smrgint argc;
508253719b08Smrgchar **argv;
508353719b08Smrgint
508453719b08Smrgmain ()
508553719b08Smrg{
508653719b08Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
508753719b08Smrg  ;
508853719b08Smrg  return 0;
508953719b08Smrg}
509053719b08Smrg_ACEOF
509153719b08Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
509253719b08Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
509353719b08Smrgdo
509453719b08Smrg  CC="$ac_save_CC $ac_arg"
509554e0bb33Smrg  if ac_fn_c_try_compile "$LINENO"; then :
509653719b08Smrg  ac_cv_prog_cc_c89=$ac_arg
509753719b08Smrgfi
509853719b08Smrgrm -f core conftest.err conftest.$ac_objext
509953719b08Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
510053719b08Smrgdone
510153719b08Smrgrm -f conftest.$ac_ext
510253719b08SmrgCC=$ac_save_CC
510353719b08Smrg
510453719b08Smrgfi
510553719b08Smrg# AC_CACHE_VAL
510653719b08Smrgcase "x$ac_cv_prog_cc_c89" in
510753719b08Smrg  x)
510854e0bb33Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
510953719b08Smrg$as_echo "none needed" >&6; } ;;
511053719b08Smrg  xno)
511154e0bb33Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
511253719b08Smrg$as_echo "unsupported" >&6; } ;;
511353719b08Smrg  *)
511453719b08Smrg    CC="$CC $ac_cv_prog_cc_c89"
511554e0bb33Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
511653719b08Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
511753719b08Smrgesac
511854e0bb33Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
511953719b08Smrg
512054e0bb33Smrgfi
512153719b08Smrg
512253719b08Smrgac_ext=c
512353719b08Smrgac_cpp='$CPP $CPPFLAGS'
512453719b08Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
512553719b08Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
512653719b08Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
512753719b08Smrg
512853719b08Smrgdepcc="$CC"   am_compiler_list=
512953719b08Smrg
513054e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
513153719b08Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
513254e0bb33Smrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
513353719b08Smrg  $as_echo_n "(cached) " >&6
513453719b08Smrgelse
513553719b08Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
513653719b08Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
513753719b08Smrg  # making bogus files that we don't know about and never remove.  For
513853719b08Smrg  # instance it was reported that on HP-UX the gcc test will end up
513953719b08Smrg  # making a dummy file named `D' -- because `-MD' means `put the output
514053719b08Smrg  # in D'.
514153719b08Smrg  mkdir conftest.dir
514253719b08Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
514353719b08Smrg  # using a relative directory.
514453719b08Smrg  cp "$am_depcomp" conftest.dir
514553719b08Smrg  cd conftest.dir
514653719b08Smrg  # We will build objects and dependencies in a subdirectory because
514753719b08Smrg  # it helps to detect inapplicable dependency modes.  For instance
514853719b08Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
514953719b08Smrg  # side effect of compilation, but ICC will put the dependencies in
515053719b08Smrg  # the current directory while Tru64 will put them in the object
515153719b08Smrg  # directory.
515253719b08Smrg  mkdir sub
515353719b08Smrg
515453719b08Smrg  am_cv_CC_dependencies_compiler_type=none
515553719b08Smrg  if test "$am_compiler_list" = ""; then
515653719b08Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
515753719b08Smrg  fi
515853719b08Smrg  am__universal=false
515953719b08Smrg  case " $depcc " in #(
516053719b08Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
516153719b08Smrg     esac
516253719b08Smrg
516353719b08Smrg  for depmode in $am_compiler_list; do
516453719b08Smrg    # Setup a source with many dependencies, because some compilers
516553719b08Smrg    # like to wrap large dependency lists on column 80 (with \), and
516653719b08Smrg    # we should not choose a depcomp mode which is confused by this.
516753719b08Smrg    #
516853719b08Smrg    # We need to recreate these files for each test, as the compiler may
516953719b08Smrg    # overwrite some of them when testing with obscure command lines.
517053719b08Smrg    # This happens at least with the AIX C compiler.
517153719b08Smrg    : > sub/conftest.c
517253719b08Smrg    for i in 1 2 3 4 5 6; do
517353719b08Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
517453719b08Smrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
517553719b08Smrg      # Solaris 8's {/usr,}/bin/sh.
517653719b08Smrg      touch sub/conftst$i.h
517753719b08Smrg    done
517853719b08Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
517953719b08Smrg
518053719b08Smrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
518153719b08Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
518253719b08Smrg    # handle `-M -o', and we need to detect this.  Also, some Intel
518353719b08Smrg    # versions had trouble with output in subdirs
518453719b08Smrg    am__obj=sub/conftest.${OBJEXT-o}
518553719b08Smrg    am__minus_obj="-o $am__obj"
518653719b08Smrg    case $depmode in
518753719b08Smrg    gcc)
518853719b08Smrg      # This depmode causes a compiler race in universal mode.
518953719b08Smrg      test "$am__universal" = false || continue
519053719b08Smrg      ;;
519153719b08Smrg    nosideeffect)
519253719b08Smrg      # after this tag, mechanisms are not by side-effect, so they'll
519353719b08Smrg      # only be used when explicitly requested
519453719b08Smrg      if test "x$enable_dependency_tracking" = xyes; then
519553719b08Smrg	continue
519653719b08Smrg      else
519753719b08Smrg	break
519853719b08Smrg      fi
519953719b08Smrg      ;;
520053719b08Smrg    msvisualcpp | msvcmsys)
520153719b08Smrg      # This compiler won't grok `-c -o', but also, the minuso test has
520253719b08Smrg      # not run yet.  These depmodes are late enough in the game, and
520353719b08Smrg      # so weak that their functioning should not be impacted.
520453719b08Smrg      am__obj=conftest.${OBJEXT-o}
520553719b08Smrg      am__minus_obj=
520653719b08Smrg      ;;
520753719b08Smrg    none) break ;;
520853719b08Smrg    esac
520953719b08Smrg    if depmode=$depmode \
521053719b08Smrg       source=sub/conftest.c object=$am__obj \
521153719b08Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
521253719b08Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
521353719b08Smrg         >/dev/null 2>conftest.err &&
521453719b08Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
521553719b08Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
521653719b08Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
521753719b08Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
521853719b08Smrg      # icc doesn't choke on unknown options, it will just issue warnings
521953719b08Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
522053719b08Smrg      # that says an option was ignored or not supported.
522153719b08Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
522253719b08Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
522353719b08Smrg      # The diagnosis changed in icc 8.0:
522453719b08Smrg      #   icc: Command line remark: option '-MP' not supported
522553719b08Smrg      if (grep 'ignoring option' conftest.err ||
522653719b08Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
522753719b08Smrg        am_cv_CC_dependencies_compiler_type=$depmode
522853719b08Smrg        break
522953719b08Smrg      fi
523053719b08Smrg    fi
523153719b08Smrg  done
523253719b08Smrg
523353719b08Smrg  cd ..
523453719b08Smrg  rm -rf conftest.dir
523553719b08Smrgelse
523653719b08Smrg  am_cv_CC_dependencies_compiler_type=none
523753719b08Smrgfi
523853719b08Smrg
523953719b08Smrgfi
524054e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
524153719b08Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
524253719b08SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
524353719b08Smrg
524453719b08Smrg if
524553719b08Smrg  test "x$enable_dependency_tracking" != xno \
524653719b08Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
524753719b08Smrg  am__fastdepCC_TRUE=
524854e0bb33Smrg  am__fastdepCC_FALSE='#'
524954e0bb33Smrgelse
525054e0bb33Smrg  am__fastdepCC_TRUE='#'
525154e0bb33Smrg  am__fastdepCC_FALSE=
5252b1297603Smrgfi
5253b1297603Smrg
5254b1297603Smrg
5255b1297603Smrg
525654e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5257cea37944Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
525854e0bb33Smrgif test "${ac_cv_path_SED+set}" = set; then :
5259cea37944Smrg  $as_echo_n "(cached) " >&6
5260cea37944Smrgelse
5261cea37944Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5262cea37944Smrg     for ac_i in 1 2 3 4 5 6 7; do
5263cea37944Smrg       ac_script="$ac_script$as_nl$ac_script"
5264cea37944Smrg     done
5265cea37944Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
526654e0bb33Smrg     { ac_script=; unset ac_script;}
5267cea37944Smrg     if test -z "$SED"; then
5268cea37944Smrg  ac_path_SED_found=false
5269cea37944Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
5270cea37944Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271cea37944Smrgfor as_dir in $PATH
5272cea37944Smrgdo
5273cea37944Smrg  IFS=$as_save_IFS
5274cea37944Smrg  test -z "$as_dir" && as_dir=.
527554e0bb33Smrg    for ac_prog in sed gsed; do
5276cea37944Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
5277cea37944Smrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5278cea37944Smrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5279cea37944Smrg# Check for GNU ac_path_SED and select it if it is found.
5280cea37944Smrg  # Check for GNU $ac_path_SED
5281cea37944Smrgcase `"$ac_path_SED" --version 2>&1` in
5282cea37944Smrg*GNU*)
5283cea37944Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5284cea37944Smrg*)
5285cea37944Smrg  ac_count=0
5286cea37944Smrg  $as_echo_n 0123456789 >"conftest.in"
5287cea37944Smrg  while :
5288cea37944Smrg  do
5289cea37944Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
5290cea37944Smrg    mv "conftest.tmp" "conftest.in"
5291cea37944Smrg    cp "conftest.in" "conftest.nl"
5292cea37944Smrg    $as_echo '' >> "conftest.nl"
5293cea37944Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5294cea37944Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
529554e0bb33Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
5296cea37944Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
5297cea37944Smrg      # Best one so far, save it but keep looking for a better one
5298cea37944Smrg      ac_cv_path_SED="$ac_path_SED"
5299cea37944Smrg      ac_path_SED_max=$ac_count
5300cea37944Smrg    fi
5301cea37944Smrg    # 10*(2^10) chars as input seems more than enough
5302cea37944Smrg    test $ac_count -gt 10 && break
5303cea37944Smrg  done
5304cea37944Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5305cea37944Smrgesac
5306cea37944Smrg
5307cea37944Smrg      $ac_path_SED_found && break 3
5308cea37944Smrg    done
5309cea37944Smrg  done
531054e0bb33Smrg  done
5311cea37944SmrgIFS=$as_save_IFS
5312cea37944Smrg  if test -z "$ac_cv_path_SED"; then
531354e0bb33Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5314cea37944Smrg  fi
5315cea37944Smrgelse
5316cea37944Smrg  ac_cv_path_SED=$SED
5317cea37944Smrgfi
5318cea37944Smrg
5319cea37944Smrgfi
532054e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5321cea37944Smrg$as_echo "$ac_cv_path_SED" >&6; }
5322cea37944Smrg SED="$ac_cv_path_SED"
5323cea37944Smrg  rm -f conftest.sed
5324cea37944Smrg
532553719b08Smrg
532653719b08Smrg
532753719b08Smrg# Checks for pkg-config packages
532853719b08Smrg
532953719b08Smrgpkg_failed=no
533054e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINPUT" >&5
533153719b08Smrg$as_echo_n "checking for XINPUT... " >&6; }
533253719b08Smrg
533353719b08Smrgif test -n "$XINPUT_CFLAGS"; then
533453719b08Smrg    pkg_cv_XINPUT_CFLAGS="$XINPUT_CFLAGS"
533553719b08Smrg elif test -n "$PKG_CONFIG"; then
533653719b08Smrg    if test -n "$PKG_CONFIG" && \
533754e0bb33Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xi >= 1.2 inputproto >= 1.5\""; } >&5
533853719b08Smrg  ($PKG_CONFIG --exists --print-errors "x11 xext xi >= 1.2 inputproto >= 1.5") 2>&5
533953719b08Smrg  ac_status=$?
534054e0bb33Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
534154e0bb33Smrg  test $ac_status = 0; }; then
534253719b08Smrg  pkg_cv_XINPUT_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xi >= 1.2 inputproto >= 1.5" 2>/dev/null`
534353719b08Smrgelse
534453719b08Smrg  pkg_failed=yes
5345b1297603Smrgfi
534653719b08Smrg else
534753719b08Smrg    pkg_failed=untried
5348b1297603Smrgfi
534953719b08Smrgif test -n "$XINPUT_LIBS"; then
535053719b08Smrg    pkg_cv_XINPUT_LIBS="$XINPUT_LIBS"
535153719b08Smrg elif test -n "$PKG_CONFIG"; then
535253719b08Smrg    if test -n "$PKG_CONFIG" && \
535354e0bb33Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xi >= 1.2 inputproto >= 1.5\""; } >&5
535453719b08Smrg  ($PKG_CONFIG --exists --print-errors "x11 xext xi >= 1.2 inputproto >= 1.5") 2>&5
535553719b08Smrg  ac_status=$?
535654e0bb33Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
535754e0bb33Smrg  test $ac_status = 0; }; then
535853719b08Smrg  pkg_cv_XINPUT_LIBS=`$PKG_CONFIG --libs "x11 xext xi >= 1.2 inputproto >= 1.5" 2>/dev/null`
535953719b08Smrgelse
536053719b08Smrg  pkg_failed=yes
5361b1297603Smrgfi
536253719b08Smrg else
536353719b08Smrg    pkg_failed=untried
5364b1297603Smrgfi
5365b1297603Smrg
5366b1297603Smrg
5367b1297603Smrg
536853719b08Smrgif test $pkg_failed = yes; then
536954e0bb33Smrg   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
537054e0bb33Smrg$as_echo "no" >&6; }
537153719b08Smrg
537253719b08Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
537353719b08Smrg        _pkg_short_errors_supported=yes
537453719b08Smrgelse
537553719b08Smrg        _pkg_short_errors_supported=no
537653719b08Smrgfi
537753719b08Smrg        if test $_pkg_short_errors_supported = yes; then
537853719b08Smrg	        XINPUT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext xi >= 1.2 inputproto >= 1.5" 2>&1`
537953719b08Smrg        else
538053719b08Smrg	        XINPUT_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext xi >= 1.2 inputproto >= 1.5" 2>&1`
538153719b08Smrg        fi
538253719b08Smrg	# Put the nasty error message in config.log where it belongs
538353719b08Smrg	echo "$XINPUT_PKG_ERRORS" >&5
5384b1297603Smrg
538554e0bb33Smrg	as_fn_error $? "Package requirements (x11 xext xi >= 1.2 inputproto >= 1.5) were not met:
5386b1297603Smrg
538753719b08Smrg$XINPUT_PKG_ERRORS
5388b1297603Smrg
538953719b08SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
539053719b08Smrginstalled software in a non-standard prefix.
5391b1297603Smrg
539253719b08SmrgAlternatively, you may set the environment variables XINPUT_CFLAGS
539353719b08Smrgand XINPUT_LIBS to avoid the need to call pkg-config.
539454e0bb33SmrgSee the pkg-config man page for more details." "$LINENO" 5
5395b1297603Smrg
539653719b08Smrgelif test $pkg_failed = untried; then
539754e0bb33Smrg     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
539854e0bb33Smrg$as_echo "no" >&6; }
539954e0bb33Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
540053719b08Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
540154e0bb33Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
540253719b08Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
540353719b08Smrgpath to pkg-config.
5404b1297603Smrg
540553719b08SmrgAlternatively, you may set the environment variables XINPUT_CFLAGS
540653719b08Smrgand XINPUT_LIBS to avoid the need to call pkg-config.
540753719b08SmrgSee the pkg-config man page for more details.
5408b1297603Smrg
540953719b08SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
541054e0bb33SmrgSee \`config.log' for more details" "$LINENO" 5; }
5411b1297603Smrg
541253719b08Smrgelse
541353719b08Smrg	XINPUT_CFLAGS=$pkg_cv_XINPUT_CFLAGS
541453719b08Smrg	XINPUT_LIBS=$pkg_cv_XINPUT_LIBS
541554e0bb33Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
541653719b08Smrg$as_echo "yes" >&6; }
541754e0bb33Smrg
541853719b08Smrgfi
5419b1297603Smrg
542053719b08Smrg# XI2 support
5421b1297603Smrg
542253719b08Smrgpkg_failed=no
542354e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XI2" >&5
542453719b08Smrg$as_echo_n "checking for XI2... " >&6; }
5425b1297603Smrg
542653719b08Smrgif test -n "$XI2_CFLAGS"; then
542753719b08Smrg    pkg_cv_XI2_CFLAGS="$XI2_CFLAGS"
542853719b08Smrg elif test -n "$PKG_CONFIG"; then
542953719b08Smrg    if test -n "$PKG_CONFIG" && \
543054e0bb33Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.2.99.2 inputproto >= 1.9.99.15\""; } >&5
543153719b08Smrg  ($PKG_CONFIG --exists --print-errors "xi >= 1.2.99.2 inputproto >= 1.9.99.15") 2>&5
543253719b08Smrg  ac_status=$?
543354e0bb33Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
543454e0bb33Smrg  test $ac_status = 0; }; then
543553719b08Smrg  pkg_cv_XI2_CFLAGS=`$PKG_CONFIG --cflags "xi >= 1.2.99.2 inputproto >= 1.9.99.15" 2>/dev/null`
5436b1297603Smrgelse
543753719b08Smrg  pkg_failed=yes
543853719b08Smrgfi
543953719b08Smrg else
544053719b08Smrg    pkg_failed=untried
544153719b08Smrgfi
544253719b08Smrgif test -n "$XI2_LIBS"; then
544353719b08Smrg    pkg_cv_XI2_LIBS="$XI2_LIBS"
544453719b08Smrg elif test -n "$PKG_CONFIG"; then
544553719b08Smrg    if test -n "$PKG_CONFIG" && \
544654e0bb33Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.2.99.2 inputproto >= 1.9.99.15\""; } >&5
544753719b08Smrg  ($PKG_CONFIG --exists --print-errors "xi >= 1.2.99.2 inputproto >= 1.9.99.15") 2>&5
544853719b08Smrg  ac_status=$?
544954e0bb33Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
545054e0bb33Smrg  test $ac_status = 0; }; then
545153719b08Smrg  pkg_cv_XI2_LIBS=`$PKG_CONFIG --libs "xi >= 1.2.99.2 inputproto >= 1.9.99.15" 2>/dev/null`
545253719b08Smrgelse
545353719b08Smrg  pkg_failed=yes
545453719b08Smrgfi
545553719b08Smrg else
545653719b08Smrg    pkg_failed=untried
5457b1297603Smrgfi
5458b1297603Smrg
5459b1297603Smrg
5460b1297603Smrg
546153719b08Smrgif test $pkg_failed = yes; then
546254e0bb33Smrg   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
546354e0bb33Smrg$as_echo "no" >&6; }
5464b1297603Smrg
546553719b08Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
546653719b08Smrg        _pkg_short_errors_supported=yes
546753719b08Smrgelse
546853719b08Smrg        _pkg_short_errors_supported=no
546953719b08Smrgfi
547053719b08Smrg        if test $_pkg_short_errors_supported = yes; then
547153719b08Smrg	        XI2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xi >= 1.2.99.2 inputproto >= 1.9.99.15" 2>&1`
547253719b08Smrg        else
547353719b08Smrg	        XI2_PKG_ERRORS=`$PKG_CONFIG --print-errors "xi >= 1.2.99.2 inputproto >= 1.9.99.15" 2>&1`
547453719b08Smrg        fi
547553719b08Smrg	# Put the nasty error message in config.log where it belongs
547653719b08Smrg	echo "$XI2_PKG_ERRORS" >&5
547753719b08Smrg
547854e0bb33Smrg	HAVE_XI2="no"
547953719b08Smrgelif test $pkg_failed = untried; then
548054e0bb33Smrg     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
548154e0bb33Smrg$as_echo "no" >&6; }
548253719b08Smrg	HAVE_XI2="no"
548353719b08Smrgelse
548453719b08Smrg	XI2_CFLAGS=$pkg_cv_XI2_CFLAGS
548553719b08Smrg	XI2_LIBS=$pkg_cv_XI2_LIBS
548654e0bb33Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
548753719b08Smrg$as_echo "yes" >&6; }
548853719b08Smrg	HAVE_XI2="yes";
548954e0bb33Smrg$as_echo "#define HAVE_XI2 1" >>confdefs.h
5490b1297603Smrg
549153719b08Smrgfi;
549253719b08Smrg if  test "$HAVE_XI2" = "yes" ; then
549353719b08Smrg  HAVE_XI2_TRUE=
549453719b08Smrg  HAVE_XI2_FALSE='#'
549553719b08Smrgelse
549653719b08Smrg  HAVE_XI2_TRUE='#'
549753719b08Smrg  HAVE_XI2_FALSE=
549853719b08Smrgfi
5499b1297603Smrg
5500b1297603Smrg
5501b1297603Smrg
5502b1297603Smrg
5503d3263506Smrg
5504d3263506Smrg
5505d3263506Smrg
5506d3263506Smrg
5507b1297603Smrgac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
5508b1297603Smrg
5509b1297603Smrgcat >confcache <<\_ACEOF
5510b1297603Smrg# This file is a shell script that caches the results of configure
5511b1297603Smrg# tests run on this system so they can be shared between configure
5512b1297603Smrg# scripts and configure runs, see configure's option --config-cache.
5513b1297603Smrg# It is not useful on other systems.  If it contains results you don't
5514b1297603Smrg# want to keep, you may remove or edit it.
5515b1297603Smrg#
5516b1297603Smrg# config.status only pays attention to the cache file if you give it
5517b1297603Smrg# the --recheck option to rerun configure.
5518b1297603Smrg#
5519b1297603Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
5520b1297603Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
5521b1297603Smrg# following values.
5522b1297603Smrg
5523b1297603Smrg_ACEOF
5524b1297603Smrg
5525b1297603Smrg# The following way of writing the cache mishandles newlines in values,
5526b1297603Smrg# but we know of no workaround that is simple, portable, and efficient.
5527b1297603Smrg# So, we kill variables containing newlines.
5528b1297603Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
5529b1297603Smrg# and sets the high bit in the cache file unless we assign to the vars.
5530b1297603Smrg(
5531b1297603Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5532b1297603Smrg    eval ac_val=\$$ac_var
5533b1297603Smrg    case $ac_val in #(
5534b1297603Smrg    *${as_nl}*)
5535b1297603Smrg      case $ac_var in #(
553654e0bb33Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
55375b944e2aSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5538b1297603Smrg      esac
5539b1297603Smrg      case $ac_var in #(
5540b1297603Smrg      _ | IFS | as_nl) ;; #(
55415b944e2aSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
554254e0bb33Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
5543b1297603Smrg      esac ;;
5544b1297603Smrg    esac
5545b1297603Smrg  done
5546b1297603Smrg
5547b1297603Smrg  (set) 2>&1 |
5548b1297603Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
5549b1297603Smrg    *${as_nl}ac_space=\ *)
555054e0bb33Smrg      # `set' does not quote correctly, so add quotes: double-quote
555154e0bb33Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
5552b1297603Smrg      sed -n \
5553b1297603Smrg	"s/'/'\\\\''/g;
5554b1297603Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5555b1297603Smrg      ;; #(
5556b1297603Smrg    *)
5557b1297603Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
5558b1297603Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5559b1297603Smrg      ;;
5560b1297603Smrg    esac |
5561b1297603Smrg    sort
5562b1297603Smrg) |
5563b1297603Smrg  sed '
5564b1297603Smrg     /^ac_cv_env_/b end
5565b1297603Smrg     t clear
5566b1297603Smrg     :clear
5567b1297603Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5568b1297603Smrg     t end
5569b1297603Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5570b1297603Smrg     :end' >>confcache
5571b1297603Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5572b1297603Smrg  if test -w "$cache_file"; then
5573b1297603Smrg    test "x$cache_file" != "x/dev/null" &&
557454e0bb33Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
55755b944e2aSmrg$as_echo "$as_me: updating cache $cache_file" >&6;}
5576b1297603Smrg    cat confcache >$cache_file
5577b1297603Smrg  else
557854e0bb33Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
55795b944e2aSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5580b1297603Smrg  fi
5581b1297603Smrgfi
5582b1297603Smrgrm -f confcache
5583b1297603Smrg
5584b1297603Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
5585b1297603Smrg# Let make expand exec_prefix.
5586b1297603Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5587b1297603Smrg
5588b1297603SmrgDEFS=-DHAVE_CONFIG_H
5589b1297603Smrg
5590b1297603Smrgac_libobjs=
5591b1297603Smrgac_ltlibobjs=
559254e0bb33SmrgU=
5593b1297603Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5594b1297603Smrg  # 1. Remove the extension, and $U if already installed.
5595b1297603Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
55965b944e2aSmrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5597b1297603Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5598b1297603Smrg  #    will be set to the directory where LIBOBJS objects are built.
559954e0bb33Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
560054e0bb33Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5601b1297603Smrgdone
5602b1297603SmrgLIBOBJS=$ac_libobjs
5603b1297603Smrg
5604b1297603SmrgLTLIBOBJS=$ac_ltlibobjs
5605b1297603Smrg
5606b1297603Smrg
560753719b08Smrg if test -n "$EXEEXT"; then
560853719b08Smrg  am__EXEEXT_TRUE=
560953719b08Smrg  am__EXEEXT_FALSE='#'
561053719b08Smrgelse
561153719b08Smrg  am__EXEEXT_TRUE='#'
561253719b08Smrg  am__EXEEXT_FALSE=
561353719b08Smrgfi
561453719b08Smrg
5615b1297603Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
561654e0bb33Smrg  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
561754e0bb33SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
5618b1297603Smrgfi
5619b1297603Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
562054e0bb33Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
562154e0bb33SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
5622b1297603Smrgfi
5623b1297603Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
562454e0bb33Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
562554e0bb33SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
56265b944e2aSmrgfi
562753719b08Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
562854e0bb33Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
562954e0bb33SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
563053719b08Smrgfi
56315b944e2aSmrgif test -z "${HAVE_XI2_TRUE}" && test -z "${HAVE_XI2_FALSE}"; then
563254e0bb33Smrg  as_fn_error $? "conditional \"HAVE_XI2\" was never defined.
563354e0bb33SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
5634b1297603Smrgfi
5635b1297603Smrg
5636b1297603Smrg: ${CONFIG_STATUS=./config.status}
56375b944e2aSmrgac_write_fail=0
5638b1297603Smrgac_clean_files_save=$ac_clean_files
5639b1297603Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
564054e0bb33Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
56415b944e2aSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
564254e0bb33Smrgas_write_fail=0
564354e0bb33Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5644b1297603Smrg#! $SHELL
5645b1297603Smrg# Generated by $as_me.
5646b1297603Smrg# Run this file to recreate the current configuration.
5647b1297603Smrg# Compiler output produced by configure, useful for debugging
5648b1297603Smrg# configure, is in config.log if it exists.
5649b1297603Smrg
5650b1297603Smrgdebug=false
5651b1297603Smrgac_cs_recheck=false
5652b1297603Smrgac_cs_silent=false
5653b1297603Smrg
565454e0bb33SmrgSHELL=\${CONFIG_SHELL-$SHELL}
565554e0bb33Smrgexport SHELL
565654e0bb33Smrg_ASEOF
565754e0bb33Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
565854e0bb33Smrg## -------------------- ##
565954e0bb33Smrg## M4sh Initialization. ##
566054e0bb33Smrg## -------------------- ##
5661b1297603Smrg
5662b1297603Smrg# Be more Bourne compatible
5663b1297603SmrgDUALCASE=1; export DUALCASE # for MKS sh
566454e0bb33Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5665b1297603Smrg  emulate sh
5666b1297603Smrg  NULLCMD=:
56675b944e2aSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5668b1297603Smrg  # is contrary to our usage.  Disable this feature.
5669b1297603Smrg  alias -g '${1+"$@"}'='"$@"'
5670b1297603Smrg  setopt NO_GLOB_SUBST
5671b1297603Smrgelse
567254e0bb33Smrg  case `(set -o) 2>/dev/null` in #(
567354e0bb33Smrg  *posix*) :
567454e0bb33Smrg    set -o posix ;; #(
567554e0bb33Smrg  *) :
567654e0bb33Smrg     ;;
5677b1297603Smrgesac
5678b1297603Smrgfi
5679b1297603Smrg
5680b1297603Smrg
56815b944e2aSmrgas_nl='
56825b944e2aSmrg'
56835b944e2aSmrgexport as_nl
56845b944e2aSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
56855b944e2aSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
56865b944e2aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
56875b944e2aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
568854e0bb33Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
568954e0bb33Smrg# but without wasting forks for bash or zsh.
569054e0bb33Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
569154e0bb33Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
569254e0bb33Smrg  as_echo='print -r --'
569354e0bb33Smrg  as_echo_n='print -rn --'
569454e0bb33Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56955b944e2aSmrg  as_echo='printf %s\n'
56965b944e2aSmrg  as_echo_n='printf %s'
56975b944e2aSmrgelse
56985b944e2aSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56995b944e2aSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57005b944e2aSmrg    as_echo_n='/usr/ucb/echo -n'
5701b1297603Smrg  else
57025b944e2aSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57035b944e2aSmrg    as_echo_n_body='eval
57045b944e2aSmrg      arg=$1;
570554e0bb33Smrg      case $arg in #(
57065b944e2aSmrg      *"$as_nl"*)
57075b944e2aSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
57085b944e2aSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
57095b944e2aSmrg      esac;
57105b944e2aSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
57115b944e2aSmrg    '
57125b944e2aSmrg    export as_echo_n_body
57135b944e2aSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
5714b1297603Smrg  fi
57155b944e2aSmrg  export as_echo_body
57165b944e2aSmrg  as_echo='sh -c $as_echo_body as_echo'
57175b944e2aSmrgfi
57185b944e2aSmrg
57195b944e2aSmrg# The user is always right.
57205b944e2aSmrgif test "${PATH_SEPARATOR+set}" != set; then
57215b944e2aSmrg  PATH_SEPARATOR=:
57225b944e2aSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
57235b944e2aSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
57245b944e2aSmrg      PATH_SEPARATOR=';'
57255b944e2aSmrg  }
5726b1297603Smrgfi
5727b1297603Smrg
5728b1297603Smrg
5729b1297603Smrg# IFS
5730b1297603Smrg# We need space, tab and new line, in precisely that order.  Quoting is
5731b1297603Smrg# there to prevent editors from complaining about space-tab.
5732b1297603Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5733b1297603Smrg# splitting by setting IFS to empty value.)
5734b1297603SmrgIFS=" ""	$as_nl"
5735b1297603Smrg
5736b1297603Smrg# Find who we are.  Look in the path if we contain no directory separator.
573754e0bb33Smrgcase $0 in #((
5738b1297603Smrg  *[\\/]* ) as_myself=$0 ;;
5739b1297603Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740b1297603Smrgfor as_dir in $PATH
5741b1297603Smrgdo
5742b1297603Smrg  IFS=$as_save_IFS
5743b1297603Smrg  test -z "$as_dir" && as_dir=.
574454e0bb33Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
574554e0bb33Smrg  done
5746b1297603SmrgIFS=$as_save_IFS
5747b1297603Smrg
5748b1297603Smrg     ;;
5749b1297603Smrgesac
5750b1297603Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
5751b1297603Smrg# in which case we are not to be found in the path.
5752b1297603Smrgif test "x$as_myself" = x; then
5753b1297603Smrg  as_myself=$0
5754b1297603Smrgfi
5755b1297603Smrgif test ! -f "$as_myself"; then
57565b944e2aSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
575754e0bb33Smrg  exit 1
5758b1297603Smrgfi
5759b1297603Smrg
576054e0bb33Smrg# Unset variables that we do not need and which cause bugs (e.g. in
576154e0bb33Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
576254e0bb33Smrg# suppresses any "Segmentation fault" message there.  '((' could
576354e0bb33Smrg# trigger a bug in pdksh 5.2.14.
576454e0bb33Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
576554e0bb33Smrgdo eval test x\${$as_var+set} = xset \
576654e0bb33Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5767b1297603Smrgdone
5768b1297603SmrgPS1='$ '
5769b1297603SmrgPS2='> '
5770b1297603SmrgPS4='+ '
5771b1297603Smrg
5772b1297603Smrg# NLS nuisances.
57735b944e2aSmrgLC_ALL=C
57745b944e2aSmrgexport LC_ALL
57755b944e2aSmrgLANGUAGE=C
57765b944e2aSmrgexport LANGUAGE
5777b1297603Smrg
577854e0bb33Smrg# CDPATH.
577954e0bb33Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
578054e0bb33Smrg
578154e0bb33Smrg
578254e0bb33Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
578354e0bb33Smrg# ----------------------------------------
578454e0bb33Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
578554e0bb33Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
578654e0bb33Smrg# script with STATUS, using 1 if that was 0.
578754e0bb33Smrgas_fn_error ()
578854e0bb33Smrg{
578954e0bb33Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
579054e0bb33Smrg  if test "$4"; then
579154e0bb33Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
579254e0bb33Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
579354e0bb33Smrg  fi
579454e0bb33Smrg  $as_echo "$as_me: error: $2" >&2
579554e0bb33Smrg  as_fn_exit $as_status
579654e0bb33Smrg} # as_fn_error
579754e0bb33Smrg
579854e0bb33Smrg
579954e0bb33Smrg# as_fn_set_status STATUS
580054e0bb33Smrg# -----------------------
580154e0bb33Smrg# Set $? to STATUS, without forking.
580254e0bb33Smrgas_fn_set_status ()
580354e0bb33Smrg{
580454e0bb33Smrg  return $1
580554e0bb33Smrg} # as_fn_set_status
580654e0bb33Smrg
580754e0bb33Smrg# as_fn_exit STATUS
580854e0bb33Smrg# -----------------
580954e0bb33Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
581054e0bb33Smrgas_fn_exit ()
581154e0bb33Smrg{
581254e0bb33Smrg  set +e
581354e0bb33Smrg  as_fn_set_status $1
581454e0bb33Smrg  exit $1
581554e0bb33Smrg} # as_fn_exit
581654e0bb33Smrg
581754e0bb33Smrg# as_fn_unset VAR
581854e0bb33Smrg# ---------------
581954e0bb33Smrg# Portably unset VAR.
582054e0bb33Smrgas_fn_unset ()
582154e0bb33Smrg{
582254e0bb33Smrg  { eval $1=; unset $1;}
582354e0bb33Smrg}
582454e0bb33Smrgas_unset=as_fn_unset
582554e0bb33Smrg# as_fn_append VAR VALUE
582654e0bb33Smrg# ----------------------
582754e0bb33Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
582854e0bb33Smrg# advantage of any shell optimizations that allow amortized linear growth over
582954e0bb33Smrg# repeated appends, instead of the typical quadratic growth present in naive
583054e0bb33Smrg# implementations.
583154e0bb33Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
583254e0bb33Smrg  eval 'as_fn_append ()
583354e0bb33Smrg  {
583454e0bb33Smrg    eval $1+=\$2
583554e0bb33Smrg  }'
583654e0bb33Smrgelse
583754e0bb33Smrg  as_fn_append ()
583854e0bb33Smrg  {
583954e0bb33Smrg    eval $1=\$$1\$2
584054e0bb33Smrg  }
584154e0bb33Smrgfi # as_fn_append
584254e0bb33Smrg
584354e0bb33Smrg# as_fn_arith ARG...
584454e0bb33Smrg# ------------------
584554e0bb33Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
584654e0bb33Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
584754e0bb33Smrg# must be portable across $(()) and expr.
584854e0bb33Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
584954e0bb33Smrg  eval 'as_fn_arith ()
585054e0bb33Smrg  {
585154e0bb33Smrg    as_val=$(( $* ))
585254e0bb33Smrg  }'
585354e0bb33Smrgelse
585454e0bb33Smrg  as_fn_arith ()
585554e0bb33Smrg  {
585654e0bb33Smrg    as_val=`expr "$@" || test $? -eq 1`
585754e0bb33Smrg  }
585854e0bb33Smrgfi # as_fn_arith
585954e0bb33Smrg
586054e0bb33Smrg
5861b1297603Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
5862b1297603Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5863b1297603Smrg  as_expr=expr
5864b1297603Smrgelse
5865b1297603Smrg  as_expr=false
5866b1297603Smrgfi
5867b1297603Smrg
5868b1297603Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5869b1297603Smrg  as_basename=basename
5870b1297603Smrgelse
5871b1297603Smrg  as_basename=false
5872b1297603Smrgfi
5873b1297603Smrg
587454e0bb33Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
587554e0bb33Smrg  as_dirname=dirname
587654e0bb33Smrgelse
587754e0bb33Smrg  as_dirname=false
587854e0bb33Smrgfi
5879b1297603Smrg
5880b1297603Smrgas_me=`$as_basename -- "$0" ||
5881b1297603Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5882b1297603Smrg	 X"$0" : 'X\(//\)$' \| \
5883b1297603Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
58845b944e2aSmrg$as_echo X/"$0" |
5885b1297603Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
5886b1297603Smrg	    s//\1/
5887b1297603Smrg	    q
5888b1297603Smrg	  }
5889b1297603Smrg	  /^X\/\(\/\/\)$/{
5890b1297603Smrg	    s//\1/
5891b1297603Smrg	    q
5892b1297603Smrg	  }
5893b1297603Smrg	  /^X\/\(\/\).*/{
5894b1297603Smrg	    s//\1/
5895b1297603Smrg	    q
5896b1297603Smrg	  }
5897b1297603Smrg	  s/.*/./; q'`
5898b1297603Smrg
589954e0bb33Smrg# Avoid depending upon Character Ranges.
590054e0bb33Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
590154e0bb33Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
590254e0bb33Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
590354e0bb33Smrgas_cr_digits='0123456789'
590454e0bb33Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
5905b1297603Smrg
5906b1297603SmrgECHO_C= ECHO_N= ECHO_T=
590754e0bb33Smrgcase `echo -n x` in #(((((
5908b1297603Smrg-n*)
590954e0bb33Smrg  case `echo 'xy\c'` in
5910b1297603Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
591154e0bb33Smrg  xy)  ECHO_C='\c';;
591254e0bb33Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
591354e0bb33Smrg       ECHO_T='	';;
5914b1297603Smrg  esac;;
5915b1297603Smrg*)
5916b1297603Smrg  ECHO_N='-n';;
5917b1297603Smrgesac
5918b1297603Smrg
5919b1297603Smrgrm -f conf$$ conf$$.exe conf$$.file
5920b1297603Smrgif test -d conf$$.dir; then
5921b1297603Smrg  rm -f conf$$.dir/conf$$.file
5922b1297603Smrgelse
5923b1297603Smrg  rm -f conf$$.dir
59245b944e2aSmrg  mkdir conf$$.dir 2>/dev/null
59255b944e2aSmrgfi
59265b944e2aSmrgif (echo >conf$$.file) 2>/dev/null; then
59275b944e2aSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
59285b944e2aSmrg    as_ln_s='ln -s'
59295b944e2aSmrg    # ... but there are two gotchas:
59305b944e2aSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
59315b944e2aSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
59325b944e2aSmrg    # In both cases, we have to default to `cp -p'.
59335b944e2aSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
59345b944e2aSmrg      as_ln_s='cp -p'
59355b944e2aSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
59365b944e2aSmrg    as_ln_s=ln
59375b944e2aSmrg  else
5938b1297603Smrg    as_ln_s='cp -p'
59395b944e2aSmrg  fi
5940b1297603Smrgelse
5941b1297603Smrg  as_ln_s='cp -p'
5942b1297603Smrgfi
5943b1297603Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5944b1297603Smrgrmdir conf$$.dir 2>/dev/null
5945b1297603Smrg
594654e0bb33Smrg
594754e0bb33Smrg# as_fn_mkdir_p
594854e0bb33Smrg# -------------
594954e0bb33Smrg# Create "$as_dir" as a directory, including parents if necessary.
595054e0bb33Smrgas_fn_mkdir_p ()
595154e0bb33Smrg{
595254e0bb33Smrg
595354e0bb33Smrg  case $as_dir in #(
595454e0bb33Smrg  -*) as_dir=./$as_dir;;
595554e0bb33Smrg  esac
595654e0bb33Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
595754e0bb33Smrg    as_dirs=
595854e0bb33Smrg    while :; do
595954e0bb33Smrg      case $as_dir in #(
596054e0bb33Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
596154e0bb33Smrg      *) as_qdir=$as_dir;;
596254e0bb33Smrg      esac
596354e0bb33Smrg      as_dirs="'$as_qdir' $as_dirs"
596454e0bb33Smrg      as_dir=`$as_dirname -- "$as_dir" ||
596554e0bb33Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
596654e0bb33Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
596754e0bb33Smrg	 X"$as_dir" : 'X\(//\)$' \| \
596854e0bb33Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
596954e0bb33Smrg$as_echo X"$as_dir" |
597054e0bb33Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
597154e0bb33Smrg	    s//\1/
597254e0bb33Smrg	    q
597354e0bb33Smrg	  }
597454e0bb33Smrg	  /^X\(\/\/\)[^/].*/{
597554e0bb33Smrg	    s//\1/
597654e0bb33Smrg	    q
597754e0bb33Smrg	  }
597854e0bb33Smrg	  /^X\(\/\/\)$/{
597954e0bb33Smrg	    s//\1/
598054e0bb33Smrg	    q
598154e0bb33Smrg	  }
598254e0bb33Smrg	  /^X\(\/\).*/{
598354e0bb33Smrg	    s//\1/
598454e0bb33Smrg	    q
598554e0bb33Smrg	  }
598654e0bb33Smrg	  s/.*/./; q'`
598754e0bb33Smrg      test -d "$as_dir" && break
598854e0bb33Smrg    done
598954e0bb33Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
599054e0bb33Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
599154e0bb33Smrg
599254e0bb33Smrg
599354e0bb33Smrg} # as_fn_mkdir_p
5994b1297603Smrgif mkdir -p . 2>/dev/null; then
599554e0bb33Smrg  as_mkdir_p='mkdir -p "$as_dir"'
5996b1297603Smrgelse
5997b1297603Smrg  test -d ./-p && rmdir ./-p
5998b1297603Smrg  as_mkdir_p=false
5999b1297603Smrgfi
6000b1297603Smrg
6001b1297603Smrgif test -x / >/dev/null 2>&1; then
6002b1297603Smrg  as_test_x='test -x'
6003b1297603Smrgelse
6004b1297603Smrg  if ls -dL / >/dev/null 2>&1; then
6005b1297603Smrg    as_ls_L_option=L
6006b1297603Smrg  else
6007b1297603Smrg    as_ls_L_option=
6008b1297603Smrg  fi
6009b1297603Smrg  as_test_x='
6010b1297603Smrg    eval sh -c '\''
6011b1297603Smrg      if test -d "$1"; then
60125b944e2aSmrg	test -d "$1/.";
6013b1297603Smrg      else
601454e0bb33Smrg	case $1 in #(
60155b944e2aSmrg	-*)set "./$1";;
6016b1297603Smrg	esac;
601754e0bb33Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6018b1297603Smrg	???[sx]*):;;*)false;;esac;fi
6019b1297603Smrg    '\'' sh
6020b1297603Smrg  '
6021b1297603Smrgfi
6022b1297603Smrgas_executable_p=$as_test_x
6023b1297603Smrg
6024b1297603Smrg# Sed expression to map a string onto a valid CPP name.
6025b1297603Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6026b1297603Smrg
6027b1297603Smrg# Sed expression to map a string onto a valid variable name.
6028b1297603Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6029b1297603Smrg
6030b1297603Smrg
6031b1297603Smrgexec 6>&1
603254e0bb33Smrg## ----------------------------------- ##
603354e0bb33Smrg## Main body of $CONFIG_STATUS script. ##
603454e0bb33Smrg## ----------------------------------- ##
603554e0bb33Smrg_ASEOF
603654e0bb33Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6037b1297603Smrg
603854e0bb33Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
603954e0bb33Smrg# Save the log message, to keep $0 and so on meaningful, and to
6040b1297603Smrg# report actual input values of CONFIG_FILES etc. instead of their
6041b1297603Smrg# values after options handling.
6042b1297603Smrgac_log="
604354e0bb33SmrgThis file was extended by xinput $as_me 1.5.3, which was
604454e0bb33Smrggenerated by GNU Autoconf 2.66.  Invocation command line was
6045b1297603Smrg
6046b1297603Smrg  CONFIG_FILES    = $CONFIG_FILES
6047b1297603Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
6048b1297603Smrg  CONFIG_LINKS    = $CONFIG_LINKS
6049b1297603Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
6050b1297603Smrg  $ $0 $@
6051b1297603Smrg
6052b1297603Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
6053b1297603Smrg"
6054b1297603Smrg
6055b1297603Smrg_ACEOF
6056b1297603Smrg
60575b944e2aSmrgcase $ac_config_files in *"
60585b944e2aSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
60595b944e2aSmrgesac
60605b944e2aSmrg
60615b944e2aSmrgcase $ac_config_headers in *"
60625b944e2aSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
60635b944e2aSmrgesac
60645b944e2aSmrg
60655b944e2aSmrg
60665b944e2aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6067b1297603Smrg# Files that config.status was made for.
6068b1297603Smrgconfig_files="$ac_config_files"
6069b1297603Smrgconfig_headers="$ac_config_headers"
6070b1297603Smrgconfig_commands="$ac_config_commands"
6071b1297603Smrg
6072b1297603Smrg_ACEOF
6073b1297603Smrg
60745b944e2aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6075b1297603Smrgac_cs_usage="\
607654e0bb33Smrg\`$as_me' instantiates files and other configuration actions
607754e0bb33Smrgfrom templates according to the current configuration.  Unless the files
607854e0bb33Smrgand actions are specified as TAGs, all are instantiated by default.
6079b1297603Smrg
608054e0bb33SmrgUsage: $0 [OPTION]... [TAG]...
6081b1297603Smrg
6082b1297603Smrg  -h, --help       print this help, then exit
6083b1297603Smrg  -V, --version    print version number and configuration settings, then exit
608454e0bb33Smrg      --config     print configuration, then exit
60855b944e2aSmrg  -q, --quiet, --silent
60865b944e2aSmrg                   do not print progress messages
6087b1297603Smrg  -d, --debug      don't remove temporary files
6088b1297603Smrg      --recheck    update $as_me by reconfiguring in the same conditions
60895b944e2aSmrg      --file=FILE[:TEMPLATE]
60905b944e2aSmrg                   instantiate the configuration file FILE
60915b944e2aSmrg      --header=FILE[:TEMPLATE]
60925b944e2aSmrg                   instantiate the configuration header FILE
6093b1297603Smrg
6094b1297603SmrgConfiguration files:
6095b1297603Smrg$config_files
6096b1297603Smrg
6097b1297603SmrgConfiguration headers:
6098b1297603Smrg$config_headers
6099b1297603Smrg
6100b1297603SmrgConfiguration commands:
6101b1297603Smrg$config_commands
6102b1297603Smrg
610354e0bb33SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
6104b1297603Smrg
6105b1297603Smrg_ACEOF
61065b944e2aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
610754e0bb33Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6108b1297603Smrgac_cs_version="\\
610954e0bb33Smrgxinput config.status 1.5.3
611054e0bb33Smrgconfigured by $0, generated by GNU Autoconf 2.66,
611154e0bb33Smrg  with options \\"\$ac_cs_config\\"
6112b1297603Smrg
611354e0bb33SmrgCopyright (C) 2010 Free Software Foundation, Inc.
6114b1297603SmrgThis config.status script is free software; the Free Software Foundation
6115b1297603Smrggives unlimited permission to copy, distribute and modify it."
6116b1297603Smrg
6117b1297603Smrgac_pwd='$ac_pwd'
6118b1297603Smrgsrcdir='$srcdir'
6119b1297603SmrgINSTALL='$INSTALL'
61205b944e2aSmrgMKDIR_P='$MKDIR_P'
61215b944e2aSmrgAWK='$AWK'
61225b944e2aSmrgtest -n "\$AWK" || AWK=awk
6123b1297603Smrg_ACEOF
6124b1297603Smrg
61255b944e2aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
61265b944e2aSmrg# The default lists apply if the user does not specify any file.
6127b1297603Smrgac_need_defaults=:
6128b1297603Smrgwhile test $# != 0
6129b1297603Smrgdo
6130b1297603Smrg  case $1 in
6131b1297603Smrg  --*=*)
6132b1297603Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
6133b1297603Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6134b1297603Smrg    ac_shift=:
6135b1297603Smrg    ;;
6136b1297603Smrg  *)
6137b1297603Smrg    ac_option=$1
6138b1297603Smrg    ac_optarg=$2
6139b1297603Smrg    ac_shift=shift
6140b1297603Smrg    ;;
6141b1297603Smrg  esac
6142b1297603Smrg
6143b1297603Smrg  case $ac_option in
6144b1297603Smrg  # Handling of the options.
6145b1297603Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6146b1297603Smrg    ac_cs_recheck=: ;;
6147b1297603Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
61485b944e2aSmrg    $as_echo "$ac_cs_version"; exit ;;
614954e0bb33Smrg  --config | --confi | --conf | --con | --co | --c )
615054e0bb33Smrg    $as_echo "$ac_cs_config"; exit ;;
6151b1297603Smrg  --debug | --debu | --deb | --de | --d | -d )
6152b1297603Smrg    debug=: ;;
6153b1297603Smrg  --file | --fil | --fi | --f )
6154b1297603Smrg    $ac_shift
61555b944e2aSmrg    case $ac_optarg in
61565b944e2aSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
61575b944e2aSmrg    esac
615854e0bb33Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
6159b1297603Smrg    ac_need_defaults=false;;
6160b1297603Smrg  --header | --heade | --head | --hea )
6161b1297603Smrg    $ac_shift
61625b944e2aSmrg    case $ac_optarg in
61635b944e2aSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
61645b944e2aSmrg    esac
616554e0bb33Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6166b1297603Smrg    ac_need_defaults=false;;
6167b1297603Smrg  --he | --h)
6168b1297603Smrg    # Conflict between --help and --header
616954e0bb33Smrg    as_fn_error $? "ambiguous option: \`$1'
617054e0bb33SmrgTry \`$0 --help' for more information.";;
6171b1297603Smrg  --help | --hel | -h )
61725b944e2aSmrg    $as_echo "$ac_cs_usage"; exit ;;
6173b1297603Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6174b1297603Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
6175b1297603Smrg    ac_cs_silent=: ;;
6176b1297603Smrg
6177b1297603Smrg  # This is an error.
617854e0bb33Smrg  -*) as_fn_error $? "unrecognized option: \`$1'
617954e0bb33SmrgTry \`$0 --help' for more information." ;;
6180b1297603Smrg
618154e0bb33Smrg  *) as_fn_append ac_config_targets " $1"
6182b1297603Smrg     ac_need_defaults=false ;;
6183b1297603Smrg
6184b1297603Smrg  esac
6185b1297603Smrg  shift
6186b1297603Smrgdone
6187b1297603Smrg
6188b1297603Smrgac_configure_extra_args=
6189b1297603Smrg
6190b1297603Smrgif $ac_cs_silent; then
6191b1297603Smrg  exec 6>/dev/null
6192b1297603Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
6193b1297603Smrgfi
6194b1297603Smrg
6195b1297603Smrg_ACEOF
61965b944e2aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6197b1297603Smrgif \$ac_cs_recheck; then
61985b944e2aSmrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
61995b944e2aSmrg  shift
62005b944e2aSmrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
62015b944e2aSmrg  CONFIG_SHELL='$SHELL'
6202b1297603Smrg  export CONFIG_SHELL
62035b944e2aSmrg  exec "\$@"
6204b1297603Smrgfi
6205b1297603Smrg
6206b1297603Smrg_ACEOF
62075b944e2aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6208b1297603Smrgexec 5>>config.log
6209b1297603Smrg{
6210b1297603Smrg  echo
6211b1297603Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6212b1297603Smrg## Running $as_me. ##
6213b1297603Smrg_ASBOX
62145b944e2aSmrg  $as_echo "$ac_log"
6215b1297603Smrg} >&5
6216b1297603Smrg
6217b1297603Smrg_ACEOF
62185b944e2aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6219b1297603Smrg#
6220b1297603Smrg# INIT-COMMANDS
6221b1297603Smrg#
6222b1297603SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6223b1297603Smrg
6224b1297603Smrg_ACEOF
6225b1297603Smrg
62265b944e2aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6227b1297603Smrg
6228b1297603Smrg# Handling of arguments.
6229b1297603Smrgfor ac_config_target in $ac_config_targets
6230b1297603Smrgdo
6231b1297603Smrg  case $ac_config_target in
6232b1297603Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
623353719b08Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6234b1297603Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6235b1297603Smrg    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6236b1297603Smrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
6237b1297603Smrg
623854e0bb33Smrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6239b1297603Smrg  esac
6240b1297603Smrgdone
6241b1297603Smrg
6242b1297603Smrg
6243b1297603Smrg# If the user did not use the arguments to specify the items to instantiate,
6244b1297603Smrg# then the envvar interface is used.  Set only those that are not.
6245b1297603Smrg# We use the long form for the default assignment because of an extremely
6246b1297603Smrg# bizarre bug on SunOS 4.1.3.
6247b1297603Smrgif $ac_need_defaults; then
6248b1297603Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6249b1297603Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6250b1297603Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6251b1297603Smrgfi
6252b1297603Smrg
6253b1297603Smrg# Have a temporary directory for convenience.  Make it in the build tree
6254b1297603Smrg# simply because there is no reason against having it here, and in addition,
6255b1297603Smrg# creating and moving files from /tmp can sometimes cause problems.
6256b1297603Smrg# Hook for its removal unless debugging.
6257b1297603Smrg# Note that there is a small window in which the directory will not be cleaned:
6258b1297603Smrg# after its creation but before its name has been assigned to `$tmp'.
6259b1297603Smrg$debug ||
6260b1297603Smrg{
6261b1297603Smrg  tmp=
6262b1297603Smrg  trap 'exit_status=$?
6263b1297603Smrg  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6264b1297603Smrg' 0
626554e0bb33Smrg  trap 'as_fn_exit 1' 1 2 13 15
6266b1297603Smrg}
6267b1297603Smrg# Create a (secure) tmp directory for tmp files.
6268b1297603Smrg
6269b1297603Smrg{
6270b1297603Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6271b1297603Smrg  test -n "$tmp" && test -d "$tmp"
6272b1297603Smrg}  ||
6273b1297603Smrg{
6274b1297603Smrg  tmp=./conf$$-$RANDOM
6275b1297603Smrg  (umask 077 && mkdir "$tmp")
627654e0bb33Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6277b1297603Smrg
62785b944e2aSmrg# Set up the scripts for CONFIG_FILES section.
62795b944e2aSmrg# No need to generate them if there are no CONFIG_FILES.
62805b944e2aSmrg# This happens for instance with `./config.status config.h'.
6281b1297603Smrgif test -n "$CONFIG_FILES"; then
6282b1297603Smrg
6283b1297603Smrg
628454e0bb33Smrgac_cr=`echo X | tr X '\015'`
628554e0bb33Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
628654e0bb33Smrg# But we know of no other shell where ac_cr would be empty at this
628754e0bb33Smrg# point, so we can use a bashism as a fallback.
628854e0bb33Smrgif test "x$ac_cr" = x; then
628954e0bb33Smrg  eval ac_cr=\$\'\\r\'
629054e0bb33Smrgfi
62915b944e2aSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
62925b944e2aSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
62935b944e2aSmrg  ac_cs_awk_cr='\\r'
62945b944e2aSmrgelse
62955b944e2aSmrg  ac_cs_awk_cr=$ac_cr
6296b1297603Smrgfi
6297b1297603Smrg
62985b944e2aSmrgecho 'BEGIN {' >"$tmp/subs1.awk" &&
6299b1297603Smrg_ACEOF
6300b1297603Smrg
6301b1297603Smrg
63025b944e2aSmrg{
63035b944e2aSmrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
63045b944e2aSmrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
63055b944e2aSmrg  echo "_ACEOF"
63065b944e2aSmrg} >conf$$subs.sh ||
630754e0bb33Smrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
630854e0bb33Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6309b1297603Smrgac_delim='%!_!# '
6310b1297603Smrgfor ac_last_try in false false false false false :; do
63115b944e2aSmrg  . ./conf$$subs.sh ||
631254e0bb33Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6313b1297603Smrg
63145b944e2aSmrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
63155b944e2aSmrg  if test $ac_delim_n = $ac_delim_num; then
6316b1297603Smrg    break
6317b1297603Smrg  elif $ac_last_try; then
631854e0bb33Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6319b1297603Smrg  else
6320b1297603Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6321b1297603Smrg  fi
6322b1297603Smrgdone
63235b944e2aSmrgrm -f conf$$subs.sh
6324b1297603Smrg
63255b944e2aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
63265b944e2aSmrgcat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
63275b944e2aSmrg_ACEOF
63285b944e2aSmrgsed -n '
63295b944e2aSmrgh
63305b944e2aSmrgs/^/S["/; s/!.*/"]=/
63315b944e2aSmrgp
63325b944e2aSmrgg
63335b944e2aSmrgs/^[^!]*!//
63345b944e2aSmrg:repl
63355b944e2aSmrgt repl
63365b944e2aSmrgs/'"$ac_delim"'$//
63375b944e2aSmrgt delim
63385b944e2aSmrg:nl
63395b944e2aSmrgh
634054e0bb33Smrgs/\(.\{148\}\)..*/\1/
63415b944e2aSmrgt more1
63425b944e2aSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
63435b944e2aSmrgp
63445b944e2aSmrgn
63455b944e2aSmrgb repl
63465b944e2aSmrg:more1
63475b944e2aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
63485b944e2aSmrgp
63495b944e2aSmrgg
63505b944e2aSmrgs/.\{148\}//
63515b944e2aSmrgt nl
63525b944e2aSmrg:delim
63535b944e2aSmrgh
635454e0bb33Smrgs/\(.\{148\}\)..*/\1/
63555b944e2aSmrgt more2
63565b944e2aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/
63575b944e2aSmrgp
63585b944e2aSmrgb
63595b944e2aSmrg:more2
63605b944e2aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
63615b944e2aSmrgp
63625b944e2aSmrgg
63635b944e2aSmrgs/.\{148\}//
63645b944e2aSmrgt delim
63655b944e2aSmrg' <conf$$subs.awk | sed '
63665b944e2aSmrg/^[^""]/{
63675b944e2aSmrg  N
63685b944e2aSmrg  s/\n//
63695b944e2aSmrg}
63705b944e2aSmrg' >>$CONFIG_STATUS || ac_write_fail=1
63715b944e2aSmrgrm -f conf$$subs.awk
63725b944e2aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
63735b944e2aSmrg_ACAWK
63745b944e2aSmrgcat >>"\$tmp/subs1.awk" <<_ACAWK &&
63755b944e2aSmrg  for (key in S) S_is_set[key] = 1
63765b944e2aSmrg  FS = ""
63775b944e2aSmrg
63785b944e2aSmrg}
63795b944e2aSmrg{
63805b944e2aSmrg  line = $ 0
63815b944e2aSmrg  nfields = split(line, field, "@")
63825b944e2aSmrg  substed = 0
63835b944e2aSmrg  len = length(field[1])
63845b944e2aSmrg  for (i = 2; i < nfields; i++) {
63855b944e2aSmrg    key = field[i]
63865b944e2aSmrg    keylen = length(key)
63875b944e2aSmrg    if (S_is_set[key]) {
63885b944e2aSmrg      value = S[key]
63895b944e2aSmrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
63905b944e2aSmrg      len += length(value) + length(field[++i])
63915b944e2aSmrg      substed = 1
63925b944e2aSmrg    } else
63935b944e2aSmrg      len += 1 + keylen
63945b944e2aSmrg  }
63955b944e2aSmrg
63965b944e2aSmrg  print line
63975b944e2aSmrg}
6398b1297603Smrg
63995b944e2aSmrg_ACAWK
6400b1297603Smrg_ACEOF
64015b944e2aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
64025b944e2aSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
64035b944e2aSmrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
64045b944e2aSmrgelse
64055b944e2aSmrg  cat
64065b944e2aSmrgfi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
640754e0bb33Smrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6408b1297603Smrg_ACEOF
6409b1297603Smrg
641054e0bb33Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
641154e0bb33Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6412b1297603Smrg# trailing colons and then remove the whole line if VPATH becomes empty
6413b1297603Smrg# (actually we leave an empty line to preserve line numbers).
6414b1297603Smrgif test "x$srcdir" = x.; then
641554e0bb33Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
641654e0bb33Smrgh
641754e0bb33Smrgs///
641854e0bb33Smrgs/^/:/
641954e0bb33Smrgs/[	 ]*$/:/
642054e0bb33Smrgs/:\$(srcdir):/:/g
642154e0bb33Smrgs/:\${srcdir}:/:/g
642254e0bb33Smrgs/:@srcdir@:/:/g
642354e0bb33Smrgs/^:*//
6424b1297603Smrgs/:*$//
642554e0bb33Smrgx
642654e0bb33Smrgs/\(=[	 ]*\).*/\1/
642754e0bb33SmrgG
642854e0bb33Smrgs/\n//
6429b1297603Smrgs/^[^=]*=[	 ]*$//
6430b1297603Smrg}'
6431b1297603Smrgfi
6432b1297603Smrg
64335b944e2aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6434b1297603Smrgfi # test -n "$CONFIG_FILES"
6435b1297603Smrg
64365b944e2aSmrg# Set up the scripts for CONFIG_HEADERS section.
64375b944e2aSmrg# No need to generate them if there are no CONFIG_HEADERS.
64385b944e2aSmrg# This happens for instance with `./config.status Makefile'.
64395b944e2aSmrgif test -n "$CONFIG_HEADERS"; then
64405b944e2aSmrgcat >"$tmp/defines.awk" <<\_ACAWK ||
64415b944e2aSmrgBEGIN {
64425b944e2aSmrg_ACEOF
64435b944e2aSmrg
64445b944e2aSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as
64455b944e2aSmrg# here-document in config.status, that substitutes the proper values into
64465b944e2aSmrg# config.h.in to produce config.h.
64475b944e2aSmrg
64485b944e2aSmrg# Create a delimiter string that does not exist in confdefs.h, to ease
64495b944e2aSmrg# handling of long lines.
64505b944e2aSmrgac_delim='%!_!# '
64515b944e2aSmrgfor ac_last_try in false false :; do
64525b944e2aSmrg  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
64535b944e2aSmrg  if test -z "$ac_t"; then
64545b944e2aSmrg    break
64555b944e2aSmrg  elif $ac_last_try; then
645654e0bb33Smrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
64575b944e2aSmrg  else
64585b944e2aSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
64595b944e2aSmrg  fi
64605b944e2aSmrgdone
64615b944e2aSmrg
64625b944e2aSmrg# For the awk script, D is an array of macro values keyed by name,
64635b944e2aSmrg# likewise P contains macro parameters if any.  Preserve backslash
64645b944e2aSmrg# newline sequences.
64655b944e2aSmrg
64665b944e2aSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
64675b944e2aSmrgsed -n '
64685b944e2aSmrgs/.\{148\}/&'"$ac_delim"'/g
64695b944e2aSmrgt rset
64705b944e2aSmrg:rset
64715b944e2aSmrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
64725b944e2aSmrgt def
64735b944e2aSmrgd
64745b944e2aSmrg:def
64755b944e2aSmrgs/\\$//
64765b944e2aSmrgt bsnl
64775b944e2aSmrgs/["\\]/\\&/g
64785b944e2aSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
64795b944e2aSmrgD["\1"]=" \3"/p
64805b944e2aSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
64815b944e2aSmrgd
64825b944e2aSmrg:bsnl
64835b944e2aSmrgs/["\\]/\\&/g
64845b944e2aSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
64855b944e2aSmrgD["\1"]=" \3\\\\\\n"\\/p
64865b944e2aSmrgt cont
64875b944e2aSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
64885b944e2aSmrgt cont
64895b944e2aSmrgd
64905b944e2aSmrg:cont
64915b944e2aSmrgn
64925b944e2aSmrgs/.\{148\}/&'"$ac_delim"'/g
64935b944e2aSmrgt clear
64945b944e2aSmrg:clear
64955b944e2aSmrgs/\\$//
64965b944e2aSmrgt bsnlc
64975b944e2aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
64985b944e2aSmrgd
64995b944e2aSmrg:bsnlc
65005b944e2aSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
65015b944e2aSmrgb cont
65025b944e2aSmrg' <confdefs.h | sed '
65035b944e2aSmrgs/'"$ac_delim"'/"\\\
65045b944e2aSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
65055b944e2aSmrg
65065b944e2aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
65075b944e2aSmrg  for (key in D) D_is_set[key] = 1
65085b944e2aSmrg  FS = ""
65095b944e2aSmrg}
65105b944e2aSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
65115b944e2aSmrg  line = \$ 0
65125b944e2aSmrg  split(line, arg, " ")
65135b944e2aSmrg  if (arg[1] == "#") {
65145b944e2aSmrg    defundef = arg[2]
65155b944e2aSmrg    mac1 = arg[3]
65165b944e2aSmrg  } else {
65175b944e2aSmrg    defundef = substr(arg[1], 2)
65185b944e2aSmrg    mac1 = arg[2]
65195b944e2aSmrg  }
65205b944e2aSmrg  split(mac1, mac2, "(") #)
65215b944e2aSmrg  macro = mac2[1]
65225b944e2aSmrg  prefix = substr(line, 1, index(line, defundef) - 1)
65235b944e2aSmrg  if (D_is_set[macro]) {
65245b944e2aSmrg    # Preserve the white space surrounding the "#".
65255b944e2aSmrg    print prefix "define", macro P[macro] D[macro]
65265b944e2aSmrg    next
65275b944e2aSmrg  } else {
65285b944e2aSmrg    # Replace #undef with comments.  This is necessary, for example,
65295b944e2aSmrg    # in the case of _POSIX_SOURCE, which is predefined and required
65305b944e2aSmrg    # on some systems where configure will not decide to define it.
65315b944e2aSmrg    if (defundef == "undef") {
65325b944e2aSmrg      print "/*", prefix defundef, macro, "*/"
65335b944e2aSmrg      next
65345b944e2aSmrg    }
65355b944e2aSmrg  }
65365b944e2aSmrg}
65375b944e2aSmrg{ print }
65385b944e2aSmrg_ACAWK
65395b944e2aSmrg_ACEOF
65405b944e2aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
654154e0bb33Smrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
65425b944e2aSmrgfi # test -n "$CONFIG_HEADERS"
65435b944e2aSmrg
6544b1297603Smrg
65455b944e2aSmrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
65465b944e2aSmrgshift
65475b944e2aSmrgfor ac_tag
6548b1297603Smrgdo
6549b1297603Smrg  case $ac_tag in
6550b1297603Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
6551b1297603Smrg  esac
6552b1297603Smrg  case $ac_mode$ac_tag in
6553b1297603Smrg  :[FHL]*:*);;
655454e0bb33Smrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6555b1297603Smrg  :[FH]-) ac_tag=-:-;;
6556b1297603Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6557b1297603Smrg  esac
6558b1297603Smrg  ac_save_IFS=$IFS
6559b1297603Smrg  IFS=:
6560b1297603Smrg  set x $ac_tag
6561b1297603Smrg  IFS=$ac_save_IFS
6562b1297603Smrg  shift
6563b1297603Smrg  ac_file=$1
6564b1297603Smrg  shift
6565b1297603Smrg
6566b1297603Smrg  case $ac_mode in
6567b1297603Smrg  :L) ac_source=$1;;
6568b1297603Smrg  :[FH])
6569b1297603Smrg    ac_file_inputs=
6570b1297603Smrg    for ac_f
6571b1297603Smrg    do
6572b1297603Smrg      case $ac_f in
6573b1297603Smrg      -) ac_f="$tmp/stdin";;
6574b1297603Smrg      *) # Look for the file first in the build tree, then in the source tree
6575b1297603Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
6576b1297603Smrg	 # because $ac_f cannot contain `:'.
6577b1297603Smrg	 test -f "$ac_f" ||
6578b1297603Smrg	   case $ac_f in
6579b1297603Smrg	   [\\/$]*) false;;
6580b1297603Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6581b1297603Smrg	   esac ||
658254e0bb33Smrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6583b1297603Smrg      esac
65845b944e2aSmrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
658554e0bb33Smrg      as_fn_append ac_file_inputs " '$ac_f'"
6586b1297603Smrg    done
6587b1297603Smrg
6588b1297603Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
6589b1297603Smrg    # use $as_me), people would be surprised to read:
6590b1297603Smrg    #    /* config.h.  Generated by config.status.  */
65915b944e2aSmrg    configure_input='Generated from '`
65925b944e2aSmrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
65935b944e2aSmrg	`' by configure.'
6594b1297603Smrg    if test x"$ac_file" != x-; then
6595b1297603Smrg      configure_input="$ac_file.  $configure_input"
659654e0bb33Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
65975b944e2aSmrg$as_echo "$as_me: creating $ac_file" >&6;}
6598b1297603Smrg    fi
65995b944e2aSmrg    # Neutralize special characters interpreted by sed in replacement strings.
66005b944e2aSmrg    case $configure_input in #(
66015b944e2aSmrg    *\&* | *\|* | *\\* )
66025b944e2aSmrg       ac_sed_conf_input=`$as_echo "$configure_input" |
66035b944e2aSmrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
66045b944e2aSmrg    *) ac_sed_conf_input=$configure_input;;
66055b944e2aSmrg    esac
6606b1297603Smrg
6607b1297603Smrg    case $ac_tag in
66085b944e2aSmrg    *:-:* | *:-) cat >"$tmp/stdin" \
660954e0bb33Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6610b1297603Smrg    esac
6611b1297603Smrg    ;;
6612b1297603Smrg  esac
6613b1297603Smrg
6614b1297603Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
6615b1297603Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6616b1297603Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
6617b1297603Smrg	 X"$ac_file" : 'X\(//\)$' \| \
6618b1297603Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
66195b944e2aSmrg$as_echo X"$ac_file" |
6620b1297603Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6621b1297603Smrg	    s//\1/
6622b1297603Smrg	    q
6623b1297603Smrg	  }
6624b1297603Smrg	  /^X\(\/\/\)[^/].*/{
6625b1297603Smrg	    s//\1/
6626b1297603Smrg	    q
6627b1297603Smrg	  }
6628b1297603Smrg	  /^X\(\/\/\)$/{
6629b1297603Smrg	    s//\1/
6630b1297603Smrg	    q
6631b1297603Smrg	  }
6632b1297603Smrg	  /^X\(\/\).*/{
6633b1297603Smrg	    s//\1/
6634b1297603Smrg	    q
6635b1297603Smrg	  }
6636b1297603Smrg	  s/.*/./; q'`
663754e0bb33Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
6638b1297603Smrg  ac_builddir=.
6639b1297603Smrg
6640b1297603Smrgcase "$ac_dir" in
6641b1297603Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6642b1297603Smrg*)
66435b944e2aSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6644b1297603Smrg  # A ".." for each directory in $ac_dir_suffix.
66455b944e2aSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6646b1297603Smrg  case $ac_top_builddir_sub in
6647b1297603Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6648b1297603Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6649b1297603Smrg  esac ;;
6650b1297603Smrgesac
6651b1297603Smrgac_abs_top_builddir=$ac_pwd
6652b1297603Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
6653b1297603Smrg# for backward compatibility:
6654b1297603Smrgac_top_builddir=$ac_top_build_prefix
6655b1297603Smrg
6656b1297603Smrgcase $srcdir in
6657b1297603Smrg  .)  # We are building in place.
6658b1297603Smrg    ac_srcdir=.
6659b1297603Smrg    ac_top_srcdir=$ac_top_builddir_sub
6660b1297603Smrg    ac_abs_top_srcdir=$ac_pwd ;;
6661b1297603Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
6662b1297603Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
6663b1297603Smrg    ac_top_srcdir=$srcdir
6664b1297603Smrg    ac_abs_top_srcdir=$srcdir ;;
6665b1297603Smrg  *) # Relative name.
6666b1297603Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6667b1297603Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
6668b1297603Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6669b1297603Smrgesac
6670b1297603Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6671b1297603Smrg
6672b1297603Smrg
6673b1297603Smrg  case $ac_mode in
6674b1297603Smrg  :F)
6675b1297603Smrg  #
6676b1297603Smrg  # CONFIG_FILE
6677b1297603Smrg  #
6678b1297603Smrg
6679b1297603Smrg  case $INSTALL in
6680b1297603Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6681b1297603Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6682b1297603Smrg  esac
66835b944e2aSmrg  ac_MKDIR_P=$MKDIR_P
66845b944e2aSmrg  case $MKDIR_P in
66855b944e2aSmrg  [\\/$]* | ?:[\\/]* ) ;;
66865b944e2aSmrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
66875b944e2aSmrg  esac
6688b1297603Smrg_ACEOF
6689b1297603Smrg
66905b944e2aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6691b1297603Smrg# If the template does not know about datarootdir, expand it.
6692b1297603Smrg# FIXME: This hack should be removed a few years after 2.60.
6693b1297603Smrgac_datarootdir_hack=; ac_datarootdir_seen=
66945b944e2aSmrgac_sed_dataroot='
66955b944e2aSmrg/datarootdir/ {
6696b1297603Smrg  p
6697b1297603Smrg  q
6698b1297603Smrg}
6699b1297603Smrg/@datadir@/p
6700b1297603Smrg/@docdir@/p
6701b1297603Smrg/@infodir@/p
6702b1297603Smrg/@localedir@/p
670354e0bb33Smrg/@mandir@/p'
67045b944e2aSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6705b1297603Smrg*datarootdir*) ac_datarootdir_seen=yes;;
6706b1297603Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
670754e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
67085b944e2aSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6709b1297603Smrg_ACEOF
67105b944e2aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6711b1297603Smrg  ac_datarootdir_hack='
6712b1297603Smrg  s&@datadir@&$datadir&g
6713b1297603Smrg  s&@docdir@&$docdir&g
6714b1297603Smrg  s&@infodir@&$infodir&g
6715b1297603Smrg  s&@localedir@&$localedir&g
6716b1297603Smrg  s&@mandir@&$mandir&g
671754e0bb33Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
6718b1297603Smrgesac
6719b1297603Smrg_ACEOF
6720b1297603Smrg
6721b1297603Smrg# Neutralize VPATH when `$srcdir' = `.'.
6722b1297603Smrg# Shell code in configure.ac might set extrasub.
6723b1297603Smrg# FIXME: do we really want to maintain this feature?
67245b944e2aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
67255b944e2aSmrgac_sed_extra="$ac_vpsub
6726b1297603Smrg$extrasub
6727b1297603Smrg_ACEOF
67285b944e2aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6729b1297603Smrg:t
6730b1297603Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
67315b944e2aSmrgs|@configure_input@|$ac_sed_conf_input|;t t
6732b1297603Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
67335b944e2aSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
6734b1297603Smrgs&@srcdir@&$ac_srcdir&;t t
6735b1297603Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
6736b1297603Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
6737b1297603Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6738b1297603Smrgs&@builddir@&$ac_builddir&;t t
6739b1297603Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
6740b1297603Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6741b1297603Smrgs&@INSTALL@&$ac_INSTALL&;t t
67425b944e2aSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
6743b1297603Smrg$ac_datarootdir_hack
67445b944e2aSmrg"
67455b944e2aSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
674654e0bb33Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6747b1297603Smrg
6748b1297603Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6749b1297603Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6750b1297603Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
675154e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
675254e0bb33Smrgwhich seems to be undefined.  Please make sure it is defined" >&5
67535b944e2aSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
675454e0bb33Smrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
6755b1297603Smrg
6756b1297603Smrg  rm -f "$tmp/stdin"
6757b1297603Smrg  case $ac_file in
67585b944e2aSmrg  -) cat "$tmp/out" && rm -f "$tmp/out";;
67595b944e2aSmrg  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
67605b944e2aSmrg  esac \
676154e0bb33Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6762b1297603Smrg ;;
6763b1297603Smrg  :H)
6764b1297603Smrg  #
6765b1297603Smrg  # CONFIG_HEADER
6766b1297603Smrg  #
6767b1297603Smrg  if test x"$ac_file" != x-; then
67685b944e2aSmrg    {
67695b944e2aSmrg      $as_echo "/* $configure_input  */" \
67705b944e2aSmrg      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
67715b944e2aSmrg    } >"$tmp/config.h" \
677254e0bb33Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
67735b944e2aSmrg    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
677454e0bb33Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
67755b944e2aSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
6776b1297603Smrg    else
67775b944e2aSmrg      rm -f "$ac_file"
67785b944e2aSmrg      mv "$tmp/config.h" "$ac_file" \
677954e0bb33Smrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
6780b1297603Smrg    fi
6781b1297603Smrg  else
67825b944e2aSmrg    $as_echo "/* $configure_input  */" \
67835b944e2aSmrg      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
678454e0bb33Smrg      || as_fn_error $? "could not create -" "$LINENO" 5
6785b1297603Smrg  fi
67865b944e2aSmrg# Compute "$ac_file"'s index in $config_headers.
67875b944e2aSmrg_am_arg="$ac_file"
6788b1297603Smrg_am_stamp_count=1
6789b1297603Smrgfor _am_header in $config_headers :; do
6790b1297603Smrg  case $_am_header in
67915b944e2aSmrg    $_am_arg | $_am_arg:* )
6792b1297603Smrg      break ;;
6793b1297603Smrg    * )
6794b1297603Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6795b1297603Smrg  esac
6796b1297603Smrgdone
67975b944e2aSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
67985b944e2aSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
67995b944e2aSmrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
68005b944e2aSmrg	 X"$_am_arg" : 'X\(//\)$' \| \
68015b944e2aSmrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
68025b944e2aSmrg$as_echo X"$_am_arg" |
6803b1297603Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6804b1297603Smrg	    s//\1/
6805b1297603Smrg	    q
6806b1297603Smrg	  }
6807b1297603Smrg	  /^X\(\/\/\)[^/].*/{
6808b1297603Smrg	    s//\1/
6809b1297603Smrg	    q
6810b1297603Smrg	  }
6811b1297603Smrg	  /^X\(\/\/\)$/{
6812b1297603Smrg	    s//\1/
6813b1297603Smrg	    q
6814b1297603Smrg	  }
6815b1297603Smrg	  /^X\(\/\).*/{
6816b1297603Smrg	    s//\1/
6817b1297603Smrg	    q
6818b1297603Smrg	  }
6819b1297603Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
6820b1297603Smrg ;;
6821b1297603Smrg
682254e0bb33Smrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
68235b944e2aSmrg$as_echo "$as_me: executing $ac_file commands" >&6;}
6824b1297603Smrg ;;
6825b1297603Smrg  esac
6826b1297603Smrg
6827b1297603Smrg
6828b1297603Smrg  case $ac_file$ac_mode in
682953719b08Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
683053719b08Smrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
683153719b08Smrg  # are listed without --file.  Let's play safe and only enable the eval
683253719b08Smrg  # if we detect the quoting.
683353719b08Smrg  case $CONFIG_FILES in
683453719b08Smrg  *\'*) eval set x "$CONFIG_FILES" ;;
683553719b08Smrg  *)   set x $CONFIG_FILES ;;
683653719b08Smrg  esac
683753719b08Smrg  shift
683853719b08Smrg  for mf
683953719b08Smrg  do
684053719b08Smrg    # Strip MF so we end up with the name of the file.
684153719b08Smrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
684253719b08Smrg    # Check whether this is an Automake generated Makefile or not.
684353719b08Smrg    # We used to match only the files named `Makefile.in', but
684453719b08Smrg    # some people rename them; so instead we look at the file content.
684553719b08Smrg    # Grep'ing the first line is not enough: some people post-process
684653719b08Smrg    # each Makefile.in and add a new line on top of each file to say so.
684753719b08Smrg    # Grep'ing the whole file is not good either: AIX grep has a line
684853719b08Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
684953719b08Smrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
685053719b08Smrg      dirpart=`$as_dirname -- "$mf" ||
6851b1297603Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6852b1297603Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
6853b1297603Smrg	 X"$mf" : 'X\(//\)$' \| \
6854b1297603Smrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
68555b944e2aSmrg$as_echo X"$mf" |
6856b1297603Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6857b1297603Smrg	    s//\1/
6858b1297603Smrg	    q
6859b1297603Smrg	  }
6860b1297603Smrg	  /^X\(\/\/\)[^/].*/{
6861b1297603Smrg	    s//\1/
6862b1297603Smrg	    q
6863b1297603Smrg	  }
6864b1297603Smrg	  /^X\(\/\/\)$/{
6865b1297603Smrg	    s//\1/
6866b1297603Smrg	    q
6867b1297603Smrg	  }
6868b1297603Smrg	  /^X\(\/\).*/{
6869b1297603Smrg	    s//\1/
6870b1297603Smrg	    q
6871b1297603Smrg	  }
6872b1297603Smrg	  s/.*/./; q'`
687353719b08Smrg    else
687453719b08Smrg      continue
687553719b08Smrg    fi
687653719b08Smrg    # Extract the definition of DEPDIR, am__include, and am__quote
687753719b08Smrg    # from the Makefile without running `make'.
687853719b08Smrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
687953719b08Smrg    test -z "$DEPDIR" && continue
688053719b08Smrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
688153719b08Smrg    test -z "am__include" && continue
688253719b08Smrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
688353719b08Smrg    # When using ansi2knr, U may be empty or an underscore; expand it
688453719b08Smrg    U=`sed -n 's/^U = //p' < "$mf"`
688553719b08Smrg    # Find all dependency output files, they are included files with
688653719b08Smrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
688753719b08Smrg    # simplest approach to changing $(DEPDIR) to its actual value in the
688853719b08Smrg    # expansion.
688953719b08Smrg    for file in `sed -n "
689053719b08Smrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
689153719b08Smrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
689253719b08Smrg      # Make sure the directory exists.
689353719b08Smrg      test -f "$dirpart/$file" && continue
689453719b08Smrg      fdir=`$as_dirname -- "$file" ||
6895b1297603Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6896b1297603Smrg	 X"$file" : 'X\(//\)[^/]' \| \
6897b1297603Smrg	 X"$file" : 'X\(//\)$' \| \
6898b1297603Smrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
68995b944e2aSmrg$as_echo X"$file" |
6900b1297603Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6901b1297603Smrg	    s//\1/
6902b1297603Smrg	    q
6903b1297603Smrg	  }
6904b1297603Smrg	  /^X\(\/\/\)[^/].*/{
6905b1297603Smrg	    s//\1/
6906b1297603Smrg	    q
6907b1297603Smrg	  }
6908b1297603Smrg	  /^X\(\/\/\)$/{
6909b1297603Smrg	    s//\1/
6910b1297603Smrg	    q
6911b1297603Smrg	  }
6912b1297603Smrg	  /^X\(\/\).*/{
6913b1297603Smrg	    s//\1/
6914b1297603Smrg	    q
6915b1297603Smrg	  }
6916b1297603Smrg	  s/.*/./; q'`
691754e0bb33Smrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
691853719b08Smrg      # echo "creating $dirpart/$file"
691953719b08Smrg      echo '# dummy' > "$dirpart/$file"
692053719b08Smrg    done
6921b1297603Smrg  done
692253719b08Smrg}
6923b1297603Smrg ;;
6924b1297603Smrg
6925b1297603Smrg  esac
6926b1297603Smrgdone # for ac_tag
6927b1297603Smrg
6928b1297603Smrg
692954e0bb33Smrgas_fn_exit 0
6930b1297603Smrg_ACEOF
6931b1297603Smrgac_clean_files=$ac_clean_files_save
6932b1297603Smrg
69335b944e2aSmrgtest $ac_write_fail = 0 ||
693454e0bb33Smrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
69355b944e2aSmrg
6936b1297603Smrg
6937b1297603Smrg# configure is writing to config.log, and then calls config.status.
6938b1297603Smrg# config.status does its own redirection, appending to config.log.
6939b1297603Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
6940b1297603Smrg# by configure, so config.status won't be able to write to it; its
6941b1297603Smrg# output is simply discarded.  So we exec the FD to /dev/null,
6942b1297603Smrg# effectively closing config.log, so it can be properly (re)opened and
6943b1297603Smrg# appended to by config.status.  When coming back to configure, we
6944b1297603Smrg# need to make the FD available again.
6945b1297603Smrgif test "$no_create" != yes; then
6946b1297603Smrg  ac_cs_success=:
6947b1297603Smrg  ac_config_status_args=
6948b1297603Smrg  test "$silent" = yes &&
6949b1297603Smrg    ac_config_status_args="$ac_config_status_args --quiet"
6950b1297603Smrg  exec 5>/dev/null
6951b1297603Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6952b1297603Smrg  exec 5>>config.log
6953b1297603Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6954b1297603Smrg  # would make configure fail if this is the last instruction.
695554e0bb33Smrg  $ac_cs_success || as_fn_exit 1
6956b1297603Smrgfi
69575b944e2aSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
695854e0bb33Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
69595b944e2aSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
69605b944e2aSmrgfi
6961b1297603Smrg
6962