configure revision 863f95b1
1ff7e0accSmrg#! /bin/sh
2ff7e0accSmrg# Guess values for system-dependent variables and create Makefiles.
3863f95b1Smrg# Generated by GNU Autoconf 2.68 for xwininfo 1.1.1.
4ff7e0accSmrg#
5ff7e0accSmrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6ff7e0accSmrg#
7863f95b1Smrg#
8ff7e0accSmrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9863f95b1Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10863f95b1Smrg# Foundation, Inc.
11863f95b1Smrg#
12863f95b1Smrg#
13ff7e0accSmrg# This configure script is free software; the Free Software Foundation
14ff7e0accSmrg# gives unlimited permission to copy, distribute and modify it.
15863f95b1Smrg## -------------------- ##
16863f95b1Smrg## M4sh Initialization. ##
17863f95b1Smrg## -------------------- ##
18ff7e0accSmrg
19ff7e0accSmrg# Be more Bourne compatible
20ff7e0accSmrgDUALCASE=1; export DUALCASE # for MKS sh
21863f95b1Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22ff7e0accSmrg  emulate sh
23ff7e0accSmrg  NULLCMD=:
24a005d216Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25ff7e0accSmrg  # is contrary to our usage.  Disable this feature.
26ff7e0accSmrg  alias -g '${1+"$@"}'='"$@"'
27ff7e0accSmrg  setopt NO_GLOB_SUBST
28ff7e0accSmrgelse
29863f95b1Smrg  case `(set -o) 2>/dev/null` in #(
30863f95b1Smrg  *posix*) :
31863f95b1Smrg    set -o posix ;; #(
32863f95b1Smrg  *) :
33863f95b1Smrg     ;;
34ff7e0accSmrgesac
35ff7e0accSmrgfi
36ff7e0accSmrg
37ff7e0accSmrg
38a005d216Smrgas_nl='
39a005d216Smrg'
40a005d216Smrgexport as_nl
41a005d216Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
42a005d216Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43a005d216Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44a005d216Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45863f95b1Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
46863f95b1Smrg# but without wasting forks for bash or zsh.
47863f95b1Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
48863f95b1Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49863f95b1Smrg  as_echo='print -r --'
50863f95b1Smrg  as_echo_n='print -rn --'
51863f95b1Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52a005d216Smrg  as_echo='printf %s\n'
53a005d216Smrg  as_echo_n='printf %s'
54a005d216Smrgelse
55a005d216Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56a005d216Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57a005d216Smrg    as_echo_n='/usr/ucb/echo -n'
58ff7e0accSmrg  else
59a005d216Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60a005d216Smrg    as_echo_n_body='eval
61a005d216Smrg      arg=$1;
62863f95b1Smrg      case $arg in #(
63a005d216Smrg      *"$as_nl"*)
64a005d216Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
65a005d216Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66a005d216Smrg      esac;
67a005d216Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68a005d216Smrg    '
69a005d216Smrg    export as_echo_n_body
70a005d216Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
71ff7e0accSmrg  fi
72a005d216Smrg  export as_echo_body
73a005d216Smrg  as_echo='sh -c $as_echo_body as_echo'
74a005d216Smrgfi
75a005d216Smrg
76a005d216Smrg# The user is always right.
77a005d216Smrgif test "${PATH_SEPARATOR+set}" != set; then
78a005d216Smrg  PATH_SEPARATOR=:
79a005d216Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80a005d216Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81a005d216Smrg      PATH_SEPARATOR=';'
82a005d216Smrg  }
83ff7e0accSmrgfi
84ff7e0accSmrg
85ff7e0accSmrg
86ff7e0accSmrg# IFS
87ff7e0accSmrg# We need space, tab and new line, in precisely that order.  Quoting is
88ff7e0accSmrg# there to prevent editors from complaining about space-tab.
89ff7e0accSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90ff7e0accSmrg# splitting by setting IFS to empty value.)
91ff7e0accSmrgIFS=" ""	$as_nl"
92ff7e0accSmrg
93ff7e0accSmrg# Find who we are.  Look in the path if we contain no directory separator.
94863f95b1Smrgas_myself=
95863f95b1Smrgcase $0 in #((
96ff7e0accSmrg  *[\\/]* ) as_myself=$0 ;;
97ff7e0accSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98ff7e0accSmrgfor as_dir in $PATH
99ff7e0accSmrgdo
100ff7e0accSmrg  IFS=$as_save_IFS
101ff7e0accSmrg  test -z "$as_dir" && as_dir=.
102863f95b1Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103863f95b1Smrg  done
104ff7e0accSmrgIFS=$as_save_IFS
105ff7e0accSmrg
106ff7e0accSmrg     ;;
107ff7e0accSmrgesac
108ff7e0accSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
109ff7e0accSmrg# in which case we are not to be found in the path.
110ff7e0accSmrgif test "x$as_myself" = x; then
111ff7e0accSmrg  as_myself=$0
112ff7e0accSmrgfi
113ff7e0accSmrgif test ! -f "$as_myself"; then
114a005d216Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115863f95b1Smrg  exit 1
116ff7e0accSmrgfi
117ff7e0accSmrg
118863f95b1Smrg# Unset variables that we do not need and which cause bugs (e.g. in
119863f95b1Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120863f95b1Smrg# suppresses any "Segmentation fault" message there.  '((' could
121863f95b1Smrg# trigger a bug in pdksh 5.2.14.
122863f95b1Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
123863f95b1Smrgdo eval test x\${$as_var+set} = xset \
124863f95b1Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125ff7e0accSmrgdone
126ff7e0accSmrgPS1='$ '
127ff7e0accSmrgPS2='> '
128ff7e0accSmrgPS4='+ '
129ff7e0accSmrg
130ff7e0accSmrg# NLS nuisances.
131a005d216SmrgLC_ALL=C
132a005d216Smrgexport LC_ALL
133a005d216SmrgLANGUAGE=C
134a005d216Smrgexport LANGUAGE
135ff7e0accSmrg
136ff7e0accSmrg# CDPATH.
137863f95b1Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138ff7e0accSmrg
139ff7e0accSmrgif test "x$CONFIG_SHELL" = x; then
140863f95b1Smrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141863f95b1Smrg  emulate sh
142863f95b1Smrg  NULLCMD=:
143863f95b1Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144863f95b1Smrg  # is contrary to our usage.  Disable this feature.
145863f95b1Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146863f95b1Smrg  setopt NO_GLOB_SUBST
147ff7e0accSmrgelse
148863f95b1Smrg  case \`(set -o) 2>/dev/null\` in #(
149863f95b1Smrg  *posix*) :
150863f95b1Smrg    set -o posix ;; #(
151863f95b1Smrg  *) :
152863f95b1Smrg     ;;
153863f95b1Smrgesac
154ff7e0accSmrgfi
155863f95b1Smrg"
156863f95b1Smrg  as_required="as_fn_return () { (exit \$1); }
157863f95b1Smrgas_fn_success () { as_fn_return 0; }
158863f95b1Smrgas_fn_failure () { as_fn_return 1; }
159863f95b1Smrgas_fn_ret_success () { return 0; }
160863f95b1Smrgas_fn_ret_failure () { return 1; }
161ff7e0accSmrg
162ff7e0accSmrgexitcode=0
163863f95b1Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
164863f95b1Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165863f95b1Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166863f95b1Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167863f95b1Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168863f95b1Smrg
169863f95b1Smrgelse
170863f95b1Smrg  exitcode=1; echo positional parameters were not saved.
171863f95b1Smrgfi
172863f95b1Smrgtest x\$exitcode = x0 || exit 1"
173863f95b1Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174863f95b1Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175863f95b1Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176863f95b1Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177863f95b1Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
178863f95b1Smrg  if (eval "$as_required") 2>/dev/null; then :
179863f95b1Smrg  as_have_required=yes
180ff7e0accSmrgelse
181863f95b1Smrg  as_have_required=no
182ff7e0accSmrgfi
183863f95b1Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184ff7e0accSmrg
185ff7e0accSmrgelse
186863f95b1Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187863f95b1Smrgas_found=false
188ff7e0accSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189ff7e0accSmrgdo
190ff7e0accSmrg  IFS=$as_save_IFS
191ff7e0accSmrg  test -z "$as_dir" && as_dir=.
192863f95b1Smrg  as_found=:
193863f95b1Smrg  case $as_dir in #(
194ff7e0accSmrg	 /*)
195ff7e0accSmrg	   for as_base in sh bash ksh sh5; do
196863f95b1Smrg	     # Try only shells that exist, to save several forks.
197863f95b1Smrg	     as_shell=$as_dir/$as_base
198863f95b1Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199863f95b1Smrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200863f95b1Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
201863f95b1Smrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202863f95b1Smrg  break 2
203863f95b1Smrgfi
204863f95b1Smrgfi
205ff7e0accSmrg	   done;;
206ff7e0accSmrg       esac
207863f95b1Smrg  as_found=false
208ff7e0accSmrgdone
209863f95b1Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210863f95b1Smrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211863f95b1Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
212863f95b1Smrgfi; }
213ff7e0accSmrgIFS=$as_save_IFS
214ff7e0accSmrg
215ff7e0accSmrg
216863f95b1Smrg      if test "x$CONFIG_SHELL" != x; then :
217863f95b1Smrg  # We cannot yet assume a decent shell, so we have to provide a
218863f95b1Smrg	# neutralization value for shells without unset; and this also
219863f95b1Smrg	# works around shells that cannot unset nonexistent variables.
220863f95b1Smrg	# Preserve -v and -x to the replacement shell.
221863f95b1Smrg	BASH_ENV=/dev/null
222863f95b1Smrg	ENV=/dev/null
223863f95b1Smrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224863f95b1Smrg	export CONFIG_SHELL
225863f95b1Smrg	case $- in # ((((
226863f95b1Smrg	  *v*x* | *x*v* ) as_opts=-vx ;;
227863f95b1Smrg	  *v* ) as_opts=-v ;;
228863f95b1Smrg	  *x* ) as_opts=-x ;;
229863f95b1Smrg	  * ) as_opts= ;;
230863f95b1Smrg	esac
231863f95b1Smrg	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232ff7e0accSmrgfi
233ff7e0accSmrg
234863f95b1Smrg    if test x$as_have_required = xno; then :
235863f95b1Smrg  $as_echo "$0: This script requires a shell more modern than all"
236863f95b1Smrg  $as_echo "$0: the shells that I found on your system."
237863f95b1Smrg  if test x${ZSH_VERSION+set} = xset ; then
238863f95b1Smrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239863f95b1Smrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240863f95b1Smrg  else
241863f95b1Smrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242863f95b1Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243863f95b1Smrg$0: about your system, including any error possibly output
244863f95b1Smrg$0: before this message. Then install a modern shell, or
245863f95b1Smrg$0: manually run the script under such a shell if you do
246863f95b1Smrg$0: have one."
247863f95b1Smrg  fi
248863f95b1Smrg  exit 1
249ff7e0accSmrgfi
250863f95b1Smrgfi
251863f95b1Smrgfi
252863f95b1SmrgSHELL=${CONFIG_SHELL-/bin/sh}
253863f95b1Smrgexport SHELL
254863f95b1Smrg# Unset more variables known to interfere with behavior of common tools.
255863f95b1SmrgCLICOLOR_FORCE= GREP_OPTIONS=
256863f95b1Smrgunset CLICOLOR_FORCE GREP_OPTIONS
257ff7e0accSmrg
258863f95b1Smrg## --------------------- ##
259863f95b1Smrg## M4sh Shell Functions. ##
260863f95b1Smrg## --------------------- ##
261863f95b1Smrg# as_fn_unset VAR
262863f95b1Smrg# ---------------
263863f95b1Smrg# Portably unset VAR.
264863f95b1Smrgas_fn_unset ()
265863f95b1Smrg{
266863f95b1Smrg  { eval $1=; unset $1;}
267ff7e0accSmrg}
268863f95b1Smrgas_unset=as_fn_unset
269ff7e0accSmrg
270863f95b1Smrg# as_fn_set_status STATUS
271863f95b1Smrg# -----------------------
272863f95b1Smrg# Set $? to STATUS, without forking.
273863f95b1Smrgas_fn_set_status ()
274863f95b1Smrg{
275863f95b1Smrg  return $1
276863f95b1Smrg} # as_fn_set_status
277ff7e0accSmrg
278863f95b1Smrg# as_fn_exit STATUS
279863f95b1Smrg# -----------------
280863f95b1Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281863f95b1Smrgas_fn_exit ()
282863f95b1Smrg{
283863f95b1Smrg  set +e
284863f95b1Smrg  as_fn_set_status $1
285863f95b1Smrg  exit $1
286863f95b1Smrg} # as_fn_exit
287863f95b1Smrg
288863f95b1Smrg# as_fn_mkdir_p
289863f95b1Smrg# -------------
290863f95b1Smrg# Create "$as_dir" as a directory, including parents if necessary.
291863f95b1Smrgas_fn_mkdir_p ()
292863f95b1Smrg{
293ff7e0accSmrg
294863f95b1Smrg  case $as_dir in #(
295863f95b1Smrg  -*) as_dir=./$as_dir;;
296863f95b1Smrg  esac
297863f95b1Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
298863f95b1Smrg    as_dirs=
299863f95b1Smrg    while :; do
300863f95b1Smrg      case $as_dir in #(
301863f95b1Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302863f95b1Smrg      *) as_qdir=$as_dir;;
303863f95b1Smrg      esac
304863f95b1Smrg      as_dirs="'$as_qdir' $as_dirs"
305863f95b1Smrg      as_dir=`$as_dirname -- "$as_dir" ||
306863f95b1Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307863f95b1Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
308863f95b1Smrg	 X"$as_dir" : 'X\(//\)$' \| \
309863f95b1Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310863f95b1Smrg$as_echo X"$as_dir" |
311863f95b1Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312863f95b1Smrg	    s//\1/
313863f95b1Smrg	    q
314863f95b1Smrg	  }
315863f95b1Smrg	  /^X\(\/\/\)[^/].*/{
316863f95b1Smrg	    s//\1/
317863f95b1Smrg	    q
318863f95b1Smrg	  }
319863f95b1Smrg	  /^X\(\/\/\)$/{
320863f95b1Smrg	    s//\1/
321863f95b1Smrg	    q
322863f95b1Smrg	  }
323863f95b1Smrg	  /^X\(\/\).*/{
324863f95b1Smrg	    s//\1/
325863f95b1Smrg	    q
326863f95b1Smrg	  }
327863f95b1Smrg	  s/.*/./; q'`
328863f95b1Smrg      test -d "$as_dir" && break
329863f95b1Smrg    done
330863f95b1Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
331863f95b1Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332863f95b1Smrg
333863f95b1Smrg
334863f95b1Smrg} # as_fn_mkdir_p
335863f95b1Smrg# as_fn_append VAR VALUE
336863f95b1Smrg# ----------------------
337863f95b1Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
338863f95b1Smrg# advantage of any shell optimizations that allow amortized linear growth over
339863f95b1Smrg# repeated appends, instead of the typical quadratic growth present in naive
340863f95b1Smrg# implementations.
341863f95b1Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342863f95b1Smrg  eval 'as_fn_append ()
343863f95b1Smrg  {
344863f95b1Smrg    eval $1+=\$2
345863f95b1Smrg  }'
346ff7e0accSmrgelse
347863f95b1Smrg  as_fn_append ()
348863f95b1Smrg  {
349863f95b1Smrg    eval $1=\$$1\$2
350863f95b1Smrg  }
351863f95b1Smrgfi # as_fn_append
352863f95b1Smrg
353863f95b1Smrg# as_fn_arith ARG...
354863f95b1Smrg# ------------------
355863f95b1Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
356863f95b1Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
357863f95b1Smrg# must be portable across $(()) and expr.
358863f95b1Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359863f95b1Smrg  eval 'as_fn_arith ()
360863f95b1Smrg  {
361863f95b1Smrg    as_val=$(( $* ))
362863f95b1Smrg  }'
363ff7e0accSmrgelse
364863f95b1Smrg  as_fn_arith ()
365863f95b1Smrg  {
366863f95b1Smrg    as_val=`expr "$@" || test $? -eq 1`
367863f95b1Smrg  }
368863f95b1Smrgfi # as_fn_arith
369ff7e0accSmrg
370ff7e0accSmrg
371863f95b1Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
372863f95b1Smrg# ----------------------------------------
373863f95b1Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374863f95b1Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375863f95b1Smrg# script with STATUS, using 1 if that was 0.
376863f95b1Smrgas_fn_error ()
377863f95b1Smrg{
378863f95b1Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
379863f95b1Smrg  if test "$4"; then
380863f95b1Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381863f95b1Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382863f95b1Smrg  fi
383863f95b1Smrg  $as_echo "$as_me: error: $2" >&2
384863f95b1Smrg  as_fn_exit $as_status
385863f95b1Smrg} # as_fn_error
386ff7e0accSmrg
387863f95b1Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
388863f95b1Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389863f95b1Smrg  as_expr=expr
390ff7e0accSmrgelse
391863f95b1Smrg  as_expr=false
392ff7e0accSmrgfi
393ff7e0accSmrg
394863f95b1Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395863f95b1Smrg  as_basename=basename
396ff7e0accSmrgelse
397863f95b1Smrg  as_basename=false
398ff7e0accSmrgfi
399ff7e0accSmrg
400863f95b1Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401863f95b1Smrg  as_dirname=dirname
402ff7e0accSmrgelse
403863f95b1Smrg  as_dirname=false
404ff7e0accSmrgfi
405ff7e0accSmrg
406863f95b1Smrgas_me=`$as_basename -- "$0" ||
407863f95b1Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408863f95b1Smrg	 X"$0" : 'X\(//\)$' \| \
409863f95b1Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410863f95b1Smrg$as_echo X/"$0" |
411863f95b1Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
412863f95b1Smrg	    s//\1/
413863f95b1Smrg	    q
414863f95b1Smrg	  }
415863f95b1Smrg	  /^X\/\(\/\/\)$/{
416863f95b1Smrg	    s//\1/
417863f95b1Smrg	    q
418863f95b1Smrg	  }
419863f95b1Smrg	  /^X\/\(\/\).*/{
420863f95b1Smrg	    s//\1/
421863f95b1Smrg	    q
422863f95b1Smrg	  }
423863f95b1Smrg	  s/.*/./; q'`
424ff7e0accSmrg
425863f95b1Smrg# Avoid depending upon Character Ranges.
426863f95b1Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
427863f95b1Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428863f95b1Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
429863f95b1Smrgas_cr_digits='0123456789'
430863f95b1Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
431ff7e0accSmrg
432ff7e0accSmrg
433863f95b1Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434863f95b1Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435863f95b1Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436863f95b1Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437863f95b1Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438ff7e0accSmrg  sed -n '
439ff7e0accSmrg    p
440ff7e0accSmrg    /[$]LINENO/=
441ff7e0accSmrg  ' <$as_myself |
442ff7e0accSmrg    sed '
443ff7e0accSmrg      s/[$]LINENO.*/&-/
444ff7e0accSmrg      t lineno
445ff7e0accSmrg      b
446ff7e0accSmrg      :lineno
447ff7e0accSmrg      N
448ff7e0accSmrg      :loop
449ff7e0accSmrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450ff7e0accSmrg      t loop
451ff7e0accSmrg      s/-\n.*//
452ff7e0accSmrg    ' >$as_me.lineno &&
453ff7e0accSmrg  chmod +x "$as_me.lineno" ||
454863f95b1Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455ff7e0accSmrg
456ff7e0accSmrg  # Don't try to exec as it changes $[0], causing all sort of problems
457ff7e0accSmrg  # (the dirname of $[0] is not the place where we might find the
458ff7e0accSmrg  # original and so on.  Autoconf is especially sensitive to this).
459ff7e0accSmrg  . "./$as_me.lineno"
460ff7e0accSmrg  # Exit status is that of the last command.
461ff7e0accSmrg  exit
462ff7e0accSmrg}
463ff7e0accSmrg
464ff7e0accSmrgECHO_C= ECHO_N= ECHO_T=
465863f95b1Smrgcase `echo -n x` in #(((((
466ff7e0accSmrg-n*)
467863f95b1Smrg  case `echo 'xy\c'` in
468ff7e0accSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469863f95b1Smrg  xy)  ECHO_C='\c';;
470863f95b1Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471863f95b1Smrg       ECHO_T='	';;
472ff7e0accSmrg  esac;;
473ff7e0accSmrg*)
474ff7e0accSmrg  ECHO_N='-n';;
475ff7e0accSmrgesac
476ff7e0accSmrg
477ff7e0accSmrgrm -f conf$$ conf$$.exe conf$$.file
478ff7e0accSmrgif test -d conf$$.dir; then
479ff7e0accSmrg  rm -f conf$$.dir/conf$$.file
480ff7e0accSmrgelse
481ff7e0accSmrg  rm -f conf$$.dir
482a005d216Smrg  mkdir conf$$.dir 2>/dev/null
483a005d216Smrgfi
484a005d216Smrgif (echo >conf$$.file) 2>/dev/null; then
485a005d216Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
486a005d216Smrg    as_ln_s='ln -s'
487a005d216Smrg    # ... but there are two gotchas:
488a005d216Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489a005d216Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490a005d216Smrg    # In both cases, we have to default to `cp -p'.
491a005d216Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492a005d216Smrg      as_ln_s='cp -p'
493a005d216Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
494a005d216Smrg    as_ln_s=ln
495a005d216Smrg  else
496ff7e0accSmrg    as_ln_s='cp -p'
497a005d216Smrg  fi
498ff7e0accSmrgelse
499ff7e0accSmrg  as_ln_s='cp -p'
500ff7e0accSmrgfi
501ff7e0accSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502ff7e0accSmrgrmdir conf$$.dir 2>/dev/null
503ff7e0accSmrg
504ff7e0accSmrgif mkdir -p . 2>/dev/null; then
505863f95b1Smrg  as_mkdir_p='mkdir -p "$as_dir"'
506ff7e0accSmrgelse
507ff7e0accSmrg  test -d ./-p && rmdir ./-p
508ff7e0accSmrg  as_mkdir_p=false
509ff7e0accSmrgfi
510ff7e0accSmrg
511ff7e0accSmrgif test -x / >/dev/null 2>&1; then
512ff7e0accSmrg  as_test_x='test -x'
513ff7e0accSmrgelse
514ff7e0accSmrg  if ls -dL / >/dev/null 2>&1; then
515ff7e0accSmrg    as_ls_L_option=L
516ff7e0accSmrg  else
517ff7e0accSmrg    as_ls_L_option=
518ff7e0accSmrg  fi
519ff7e0accSmrg  as_test_x='
520ff7e0accSmrg    eval sh -c '\''
521ff7e0accSmrg      if test -d "$1"; then
522a005d216Smrg	test -d "$1/.";
523ff7e0accSmrg      else
524863f95b1Smrg	case $1 in #(
525a005d216Smrg	-*)set "./$1";;
526ff7e0accSmrg	esac;
527863f95b1Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528ff7e0accSmrg	???[sx]*):;;*)false;;esac;fi
529ff7e0accSmrg    '\'' sh
530ff7e0accSmrg  '
531ff7e0accSmrgfi
532ff7e0accSmrgas_executable_p=$as_test_x
533ff7e0accSmrg
534ff7e0accSmrg# Sed expression to map a string onto a valid CPP name.
535ff7e0accSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536ff7e0accSmrg
537ff7e0accSmrg# Sed expression to map a string onto a valid variable name.
538ff7e0accSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539ff7e0accSmrg
540ff7e0accSmrg
541863f95b1Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
542863f95b1Smrgexec 6>&1
543ff7e0accSmrg
544ff7e0accSmrg# Name of the host.
545863f95b1Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546ff7e0accSmrg# so uname gets run too.
547ff7e0accSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548ff7e0accSmrg
549ff7e0accSmrg#
550ff7e0accSmrg# Initializations.
551ff7e0accSmrg#
552ff7e0accSmrgac_default_prefix=/usr/local
553ff7e0accSmrgac_clean_files=
554ff7e0accSmrgac_config_libobj_dir=.
555ff7e0accSmrgLIBOBJS=
556ff7e0accSmrgcross_compiling=no
557ff7e0accSmrgsubdirs=
558ff7e0accSmrgMFLAGS=
559ff7e0accSmrgMAKEFLAGS=
560ff7e0accSmrg
561ff7e0accSmrg# Identity of this package.
562ff7e0accSmrgPACKAGE_NAME='xwininfo'
563ff7e0accSmrgPACKAGE_TARNAME='xwininfo'
564863f95b1SmrgPACKAGE_VERSION='1.1.1'
565863f95b1SmrgPACKAGE_STRING='xwininfo 1.1.1'
566ff7e0accSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567863f95b1SmrgPACKAGE_URL=''
568ff7e0accSmrg
56910998002Smrg# Factoring default headers for most tests.
57010998002Smrgac_includes_default="\
57110998002Smrg#include <stdio.h>
57210998002Smrg#ifdef HAVE_SYS_TYPES_H
57310998002Smrg# include <sys/types.h>
57410998002Smrg#endif
57510998002Smrg#ifdef HAVE_SYS_STAT_H
57610998002Smrg# include <sys/stat.h>
57710998002Smrg#endif
57810998002Smrg#ifdef STDC_HEADERS
57910998002Smrg# include <stdlib.h>
58010998002Smrg# include <stddef.h>
58110998002Smrg#else
58210998002Smrg# ifdef HAVE_STDLIB_H
58310998002Smrg#  include <stdlib.h>
58410998002Smrg# endif
58510998002Smrg#endif
58610998002Smrg#ifdef HAVE_STRING_H
58710998002Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
58810998002Smrg#  include <memory.h>
58910998002Smrg# endif
59010998002Smrg# include <string.h>
59110998002Smrg#endif
59210998002Smrg#ifdef HAVE_STRINGS_H
59310998002Smrg# include <strings.h>
59410998002Smrg#endif
59510998002Smrg#ifdef HAVE_INTTYPES_H
59610998002Smrg# include <inttypes.h>
59710998002Smrg#endif
59810998002Smrg#ifdef HAVE_STDINT_H
59910998002Smrg# include <stdint.h>
60010998002Smrg#endif
60110998002Smrg#ifdef HAVE_UNISTD_H
60210998002Smrg# include <unistd.h>
60310998002Smrg#endif"
60410998002Smrg
60510998002Smrgac_subst_vars='am__EXEEXT_FALSE
60610998002Smrgam__EXEEXT_TRUE
60710998002SmrgLTLIBOBJS
608863f95b1SmrgXLIB_LIBS
609863f95b1SmrgXLIB_CFLAGS
610ff7e0accSmrgXWININFO_LIBS
61110998002SmrgXWININFO_CFLAGS
612863f95b1SmrgLIBOBJS
613863f95b1SmrgAM_BACKSLASH
614863f95b1SmrgAM_DEFAULT_VERBOSITY
615863f95b1SmrgMAN_SUBSTS
616863f95b1SmrgXORG_MAN_PAGE
617ff7e0accSmrgADMIN_MAN_DIR
61810998002SmrgDRIVER_MAN_DIR
61910998002SmrgMISC_MAN_DIR
62010998002SmrgFILE_MAN_DIR
62110998002SmrgLIB_MAN_DIR
62210998002SmrgAPP_MAN_DIR
62310998002SmrgADMIN_MAN_SUFFIX
62410998002SmrgDRIVER_MAN_SUFFIX
62510998002SmrgMISC_MAN_SUFFIX
62610998002SmrgFILE_MAN_SUFFIX
62710998002SmrgLIB_MAN_SUFFIX
62810998002SmrgAPP_MAN_SUFFIX
629863f95b1SmrgSED
63010998002Smrghost_os
63110998002Smrghost_vendor
63210998002Smrghost_cpu
63310998002Smrghost
63410998002Smrgbuild_os
63510998002Smrgbuild_vendor
63610998002Smrgbuild_cpu
63710998002Smrgbuild
638863f95b1SmrgINSTALL_CMD
639863f95b1SmrgPKG_CONFIG
64010998002SmrgCHANGELOG_CMD
64110998002SmrgCWARNFLAGS
64210998002SmrgEGREP
64310998002SmrgGREP
64410998002SmrgCPP
64510998002Smrgam__fastdepCC_FALSE
64610998002Smrgam__fastdepCC_TRUE
64710998002SmrgCCDEPMODE
64810998002SmrgAMDEPBACKSLASH
64910998002SmrgAMDEP_FALSE
65010998002SmrgAMDEP_TRUE
65110998002Smrgam__quote
65210998002Smrgam__include
65310998002SmrgDEPDIR
65410998002SmrgOBJEXT
65510998002SmrgEXEEXT
65610998002Smrgac_ct_CC
65710998002SmrgCPPFLAGS
65810998002SmrgLDFLAGS
65910998002SmrgCFLAGS
66010998002SmrgCC
66110998002SmrgMAINT
66210998002SmrgMAINTAINER_MODE_FALSE
66310998002SmrgMAINTAINER_MODE_TRUE
66410998002Smrgam__untar
66510998002Smrgam__tar
66610998002SmrgAMTAR
66710998002Smrgam__leading_dot
66810998002SmrgSET_MAKE
66910998002SmrgAWK
67010998002Smrgmkdir_p
67110998002SmrgMKDIR_P
67210998002SmrgINSTALL_STRIP_PROGRAM
67310998002SmrgSTRIP
67410998002Smrginstall_sh
67510998002SmrgMAKEINFO
67610998002SmrgAUTOHEADER
67710998002SmrgAUTOMAKE
67810998002SmrgAUTOCONF
67910998002SmrgACLOCAL
68010998002SmrgVERSION
68110998002SmrgPACKAGE
68210998002SmrgCYGPATH_W
68310998002Smrgam__isrc
68410998002SmrgINSTALL_DATA
68510998002SmrgINSTALL_SCRIPT
68610998002SmrgINSTALL_PROGRAM
68710998002Smrgtarget_alias
68810998002Smrghost_alias
68910998002Smrgbuild_alias
69010998002SmrgLIBS
69110998002SmrgECHO_T
69210998002SmrgECHO_N
69310998002SmrgECHO_C
69410998002SmrgDEFS
69510998002Smrgmandir
69610998002Smrglocaledir
69710998002Smrglibdir
69810998002Smrgpsdir
69910998002Smrgpdfdir
70010998002Smrgdvidir
70110998002Smrghtmldir
70210998002Smrginfodir
70310998002Smrgdocdir
70410998002Smrgoldincludedir
70510998002Smrgincludedir
70610998002Smrglocalstatedir
70710998002Smrgsharedstatedir
70810998002Smrgsysconfdir
70910998002Smrgdatadir
71010998002Smrgdatarootdir
71110998002Smrglibexecdir
71210998002Smrgsbindir
71310998002Smrgbindir
71410998002Smrgprogram_transform_name
71510998002Smrgprefix
71610998002Smrgexec_prefix
717863f95b1SmrgPACKAGE_URL
71810998002SmrgPACKAGE_BUGREPORT
71910998002SmrgPACKAGE_STRING
72010998002SmrgPACKAGE_VERSION
72110998002SmrgPACKAGE_TARNAME
72210998002SmrgPACKAGE_NAME
72310998002SmrgPATH_SEPARATOR
72410998002SmrgSHELL'
725ff7e0accSmrgac_subst_files=''
726a005d216Smrgac_user_opts='
727a005d216Smrgenable_option_checking
728a005d216Smrgenable_maintainer_mode
729a005d216Smrgenable_dependency_tracking
73010998002Smrgenable_strict_compilation
731863f95b1Smrgenable_silent_rules
732863f95b1Smrgwith_xcb_icccm
733a005d216Smrg'
734ff7e0accSmrg      ac_precious_vars='build_alias
735ff7e0accSmrghost_alias
736ff7e0accSmrgtarget_alias
737ff7e0accSmrgCC
738ff7e0accSmrgCFLAGS
739ff7e0accSmrgLDFLAGS
740ff7e0accSmrgLIBS
741ff7e0accSmrgCPPFLAGS
74210998002SmrgCPP
743ff7e0accSmrgPKG_CONFIG
744ff7e0accSmrgXWININFO_CFLAGS
745863f95b1SmrgXWININFO_LIBS
746863f95b1SmrgXLIB_CFLAGS
747863f95b1SmrgXLIB_LIBS'
748ff7e0accSmrg
749ff7e0accSmrg
750ff7e0accSmrg# Initialize some variables set by options.
751ff7e0accSmrgac_init_help=
752ff7e0accSmrgac_init_version=false
753a005d216Smrgac_unrecognized_opts=
754a005d216Smrgac_unrecognized_sep=
755ff7e0accSmrg# The variables have the same names as the options, with
756ff7e0accSmrg# dashes changed to underlines.
757ff7e0accSmrgcache_file=/dev/null
758ff7e0accSmrgexec_prefix=NONE
759ff7e0accSmrgno_create=
760ff7e0accSmrgno_recursion=
761ff7e0accSmrgprefix=NONE
762ff7e0accSmrgprogram_prefix=NONE
763ff7e0accSmrgprogram_suffix=NONE
764ff7e0accSmrgprogram_transform_name=s,x,x,
765ff7e0accSmrgsilent=
766ff7e0accSmrgsite=
767ff7e0accSmrgsrcdir=
768ff7e0accSmrgverbose=
769ff7e0accSmrgx_includes=NONE
770ff7e0accSmrgx_libraries=NONE
771ff7e0accSmrg
772ff7e0accSmrg# Installation directory options.
773ff7e0accSmrg# These are left unexpanded so users can "make install exec_prefix=/foo"
774ff7e0accSmrg# and all the variables that are supposed to be based on exec_prefix
775ff7e0accSmrg# by default will actually change.
776ff7e0accSmrg# Use braces instead of parens because sh, perl, etc. also accept them.
777ff7e0accSmrg# (The list follows the same order as the GNU Coding Standards.)
778ff7e0accSmrgbindir='${exec_prefix}/bin'
779ff7e0accSmrgsbindir='${exec_prefix}/sbin'
780ff7e0accSmrglibexecdir='${exec_prefix}/libexec'
781ff7e0accSmrgdatarootdir='${prefix}/share'
782ff7e0accSmrgdatadir='${datarootdir}'
783ff7e0accSmrgsysconfdir='${prefix}/etc'
784ff7e0accSmrgsharedstatedir='${prefix}/com'
785ff7e0accSmrglocalstatedir='${prefix}/var'
786ff7e0accSmrgincludedir='${prefix}/include'
787ff7e0accSmrgoldincludedir='/usr/include'
788ff7e0accSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
789ff7e0accSmrginfodir='${datarootdir}/info'
790ff7e0accSmrghtmldir='${docdir}'
791ff7e0accSmrgdvidir='${docdir}'
792ff7e0accSmrgpdfdir='${docdir}'
793ff7e0accSmrgpsdir='${docdir}'
794ff7e0accSmrglibdir='${exec_prefix}/lib'
795ff7e0accSmrglocaledir='${datarootdir}/locale'
796ff7e0accSmrgmandir='${datarootdir}/man'
797ff7e0accSmrg
798ff7e0accSmrgac_prev=
799ff7e0accSmrgac_dashdash=
800ff7e0accSmrgfor ac_option
801ff7e0accSmrgdo
802ff7e0accSmrg  # If the previous option needs an argument, assign it.
803ff7e0accSmrg  if test -n "$ac_prev"; then
804ff7e0accSmrg    eval $ac_prev=\$ac_option
805ff7e0accSmrg    ac_prev=
806ff7e0accSmrg    continue
807ff7e0accSmrg  fi
808ff7e0accSmrg
809ff7e0accSmrg  case $ac_option in
810863f95b1Smrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
811863f95b1Smrg  *=)   ac_optarg= ;;
812863f95b1Smrg  *)    ac_optarg=yes ;;
813ff7e0accSmrg  esac
814ff7e0accSmrg
815ff7e0accSmrg  # Accept the important Cygnus configure options, so we can diagnose typos.
816ff7e0accSmrg
817ff7e0accSmrg  case $ac_dashdash$ac_option in
818ff7e0accSmrg  --)
819ff7e0accSmrg    ac_dashdash=yes ;;
820ff7e0accSmrg
821ff7e0accSmrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
822ff7e0accSmrg    ac_prev=bindir ;;
823ff7e0accSmrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
824ff7e0accSmrg    bindir=$ac_optarg ;;
825ff7e0accSmrg
826ff7e0accSmrg  -build | --build | --buil | --bui | --bu)
827ff7e0accSmrg    ac_prev=build_alias ;;
828ff7e0accSmrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
829ff7e0accSmrg    build_alias=$ac_optarg ;;
830ff7e0accSmrg
831ff7e0accSmrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
832ff7e0accSmrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
833ff7e0accSmrg    ac_prev=cache_file ;;
834ff7e0accSmrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
835ff7e0accSmrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
836ff7e0accSmrg    cache_file=$ac_optarg ;;
837ff7e0accSmrg
838ff7e0accSmrg  --config-cache | -C)
839ff7e0accSmrg    cache_file=config.cache ;;
840ff7e0accSmrg
841ff7e0accSmrg  -datadir | --datadir | --datadi | --datad)
842ff7e0accSmrg    ac_prev=datadir ;;
843ff7e0accSmrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
844ff7e0accSmrg    datadir=$ac_optarg ;;
845ff7e0accSmrg
846ff7e0accSmrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
847ff7e0accSmrg  | --dataroo | --dataro | --datar)
848ff7e0accSmrg    ac_prev=datarootdir ;;
849ff7e0accSmrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
850ff7e0accSmrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
851ff7e0accSmrg    datarootdir=$ac_optarg ;;
852ff7e0accSmrg
853ff7e0accSmrg  -disable-* | --disable-*)
854a005d216Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
855ff7e0accSmrg    # Reject names that are not valid shell variable names.
856a005d216Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
857863f95b1Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
858a005d216Smrg    ac_useropt_orig=$ac_useropt
859a005d216Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
860a005d216Smrg    case $ac_user_opts in
861a005d216Smrg      *"
862a005d216Smrg"enable_$ac_useropt"
863a005d216Smrg"*) ;;
864a005d216Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
865a005d216Smrg	 ac_unrecognized_sep=', ';;
866a005d216Smrg    esac
867a005d216Smrg    eval enable_$ac_useropt=no ;;
868ff7e0accSmrg
869ff7e0accSmrg  -docdir | --docdir | --docdi | --doc | --do)
870ff7e0accSmrg    ac_prev=docdir ;;
871ff7e0accSmrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
872ff7e0accSmrg    docdir=$ac_optarg ;;
873ff7e0accSmrg
874ff7e0accSmrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
875ff7e0accSmrg    ac_prev=dvidir ;;
876ff7e0accSmrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
877ff7e0accSmrg    dvidir=$ac_optarg ;;
878ff7e0accSmrg
879ff7e0accSmrg  -enable-* | --enable-*)
880a005d216Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
881ff7e0accSmrg    # Reject names that are not valid shell variable names.
882a005d216Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
883863f95b1Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
884a005d216Smrg    ac_useropt_orig=$ac_useropt
885a005d216Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886a005d216Smrg    case $ac_user_opts in
887a005d216Smrg      *"
888a005d216Smrg"enable_$ac_useropt"
889a005d216Smrg"*) ;;
890a005d216Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
891a005d216Smrg	 ac_unrecognized_sep=', ';;
892a005d216Smrg    esac
893a005d216Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
894ff7e0accSmrg
895ff7e0accSmrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
896ff7e0accSmrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
897ff7e0accSmrg  | --exec | --exe | --ex)
898ff7e0accSmrg    ac_prev=exec_prefix ;;
899ff7e0accSmrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
900ff7e0accSmrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
901ff7e0accSmrg  | --exec=* | --exe=* | --ex=*)
902ff7e0accSmrg    exec_prefix=$ac_optarg ;;
903ff7e0accSmrg
904ff7e0accSmrg  -gas | --gas | --ga | --g)
905ff7e0accSmrg    # Obsolete; use --with-gas.
906ff7e0accSmrg    with_gas=yes ;;
907ff7e0accSmrg
908ff7e0accSmrg  -help | --help | --hel | --he | -h)
909ff7e0accSmrg    ac_init_help=long ;;
910ff7e0accSmrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
911ff7e0accSmrg    ac_init_help=recursive ;;
912ff7e0accSmrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
913ff7e0accSmrg    ac_init_help=short ;;
914ff7e0accSmrg
915ff7e0accSmrg  -host | --host | --hos | --ho)
916ff7e0accSmrg    ac_prev=host_alias ;;
917ff7e0accSmrg  -host=* | --host=* | --hos=* | --ho=*)
918ff7e0accSmrg    host_alias=$ac_optarg ;;
919ff7e0accSmrg
920ff7e0accSmrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
921ff7e0accSmrg    ac_prev=htmldir ;;
922ff7e0accSmrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
923ff7e0accSmrg  | --ht=*)
924ff7e0accSmrg    htmldir=$ac_optarg ;;
925ff7e0accSmrg
926ff7e0accSmrg  -includedir | --includedir | --includedi | --included | --include \
927ff7e0accSmrg  | --includ | --inclu | --incl | --inc)
928ff7e0accSmrg    ac_prev=includedir ;;
929ff7e0accSmrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
930ff7e0accSmrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
931ff7e0accSmrg    includedir=$ac_optarg ;;
932ff7e0accSmrg
933ff7e0accSmrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
934ff7e0accSmrg    ac_prev=infodir ;;
935ff7e0accSmrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
936ff7e0accSmrg    infodir=$ac_optarg ;;
937ff7e0accSmrg
938ff7e0accSmrg  -libdir | --libdir | --libdi | --libd)
939ff7e0accSmrg    ac_prev=libdir ;;
940ff7e0accSmrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
941ff7e0accSmrg    libdir=$ac_optarg ;;
942ff7e0accSmrg
943ff7e0accSmrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
944ff7e0accSmrg  | --libexe | --libex | --libe)
945ff7e0accSmrg    ac_prev=libexecdir ;;
946ff7e0accSmrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
947ff7e0accSmrg  | --libexe=* | --libex=* | --libe=*)
948ff7e0accSmrg    libexecdir=$ac_optarg ;;
949ff7e0accSmrg
950ff7e0accSmrg  -localedir | --localedir | --localedi | --localed | --locale)
951ff7e0accSmrg    ac_prev=localedir ;;
952ff7e0accSmrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
953ff7e0accSmrg    localedir=$ac_optarg ;;
954ff7e0accSmrg
955ff7e0accSmrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
956ff7e0accSmrg  | --localstate | --localstat | --localsta | --localst | --locals)
957ff7e0accSmrg    ac_prev=localstatedir ;;
958ff7e0accSmrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
959ff7e0accSmrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
960ff7e0accSmrg    localstatedir=$ac_optarg ;;
961ff7e0accSmrg
962ff7e0accSmrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
963ff7e0accSmrg    ac_prev=mandir ;;
964ff7e0accSmrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
965ff7e0accSmrg    mandir=$ac_optarg ;;
966ff7e0accSmrg
967ff7e0accSmrg  -nfp | --nfp | --nf)
968ff7e0accSmrg    # Obsolete; use --without-fp.
969ff7e0accSmrg    with_fp=no ;;
970ff7e0accSmrg
971ff7e0accSmrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
972ff7e0accSmrg  | --no-cr | --no-c | -n)
973ff7e0accSmrg    no_create=yes ;;
974ff7e0accSmrg
975ff7e0accSmrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
976ff7e0accSmrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
977ff7e0accSmrg    no_recursion=yes ;;
978ff7e0accSmrg
979ff7e0accSmrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
980ff7e0accSmrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
981ff7e0accSmrg  | --oldin | --oldi | --old | --ol | --o)
982ff7e0accSmrg    ac_prev=oldincludedir ;;
983ff7e0accSmrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
984ff7e0accSmrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
985ff7e0accSmrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
986ff7e0accSmrg    oldincludedir=$ac_optarg ;;
987ff7e0accSmrg
988ff7e0accSmrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
989ff7e0accSmrg    ac_prev=prefix ;;
990ff7e0accSmrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
991ff7e0accSmrg    prefix=$ac_optarg ;;
992ff7e0accSmrg
993ff7e0accSmrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
994ff7e0accSmrg  | --program-pre | --program-pr | --program-p)
995ff7e0accSmrg    ac_prev=program_prefix ;;
996ff7e0accSmrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
997ff7e0accSmrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
998ff7e0accSmrg    program_prefix=$ac_optarg ;;
999ff7e0accSmrg
1000ff7e0accSmrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1001ff7e0accSmrg  | --program-suf | --program-su | --program-s)
1002ff7e0accSmrg    ac_prev=program_suffix ;;
1003ff7e0accSmrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1004ff7e0accSmrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1005ff7e0accSmrg    program_suffix=$ac_optarg ;;
1006ff7e0accSmrg
1007ff7e0accSmrg  -program-transform-name | --program-transform-name \
1008ff7e0accSmrg  | --program-transform-nam | --program-transform-na \
1009ff7e0accSmrg  | --program-transform-n | --program-transform- \
1010ff7e0accSmrg  | --program-transform | --program-transfor \
1011ff7e0accSmrg  | --program-transfo | --program-transf \
1012ff7e0accSmrg  | --program-trans | --program-tran \
1013ff7e0accSmrg  | --progr-tra | --program-tr | --program-t)
1014ff7e0accSmrg    ac_prev=program_transform_name ;;
1015ff7e0accSmrg  -program-transform-name=* | --program-transform-name=* \
1016ff7e0accSmrg  | --program-transform-nam=* | --program-transform-na=* \
1017ff7e0accSmrg  | --program-transform-n=* | --program-transform-=* \
1018ff7e0accSmrg  | --program-transform=* | --program-transfor=* \
1019ff7e0accSmrg  | --program-transfo=* | --program-transf=* \
1020ff7e0accSmrg  | --program-trans=* | --program-tran=* \
1021ff7e0accSmrg  | --progr-tra=* | --program-tr=* | --program-t=*)
1022ff7e0accSmrg    program_transform_name=$ac_optarg ;;
1023ff7e0accSmrg
1024ff7e0accSmrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1025ff7e0accSmrg    ac_prev=pdfdir ;;
1026ff7e0accSmrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1027ff7e0accSmrg    pdfdir=$ac_optarg ;;
1028ff7e0accSmrg
1029ff7e0accSmrg  -psdir | --psdir | --psdi | --psd | --ps)
1030ff7e0accSmrg    ac_prev=psdir ;;
1031ff7e0accSmrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1032ff7e0accSmrg    psdir=$ac_optarg ;;
1033ff7e0accSmrg
1034ff7e0accSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1035ff7e0accSmrg  | -silent | --silent | --silen | --sile | --sil)
1036ff7e0accSmrg    silent=yes ;;
1037ff7e0accSmrg
1038ff7e0accSmrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1039ff7e0accSmrg    ac_prev=sbindir ;;
1040ff7e0accSmrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1041ff7e0accSmrg  | --sbi=* | --sb=*)
1042ff7e0accSmrg    sbindir=$ac_optarg ;;
1043ff7e0accSmrg
1044ff7e0accSmrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1045ff7e0accSmrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1046ff7e0accSmrg  | --sharedst | --shareds | --shared | --share | --shar \
1047ff7e0accSmrg  | --sha | --sh)
1048ff7e0accSmrg    ac_prev=sharedstatedir ;;
1049ff7e0accSmrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1050ff7e0accSmrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1051ff7e0accSmrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1052ff7e0accSmrg  | --sha=* | --sh=*)
1053ff7e0accSmrg    sharedstatedir=$ac_optarg ;;
1054ff7e0accSmrg
1055ff7e0accSmrg  -site | --site | --sit)
1056ff7e0accSmrg    ac_prev=site ;;
1057ff7e0accSmrg  -site=* | --site=* | --sit=*)
1058ff7e0accSmrg    site=$ac_optarg ;;
1059ff7e0accSmrg
1060ff7e0accSmrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1061ff7e0accSmrg    ac_prev=srcdir ;;
1062ff7e0accSmrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1063ff7e0accSmrg    srcdir=$ac_optarg ;;
1064ff7e0accSmrg
1065ff7e0accSmrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1066ff7e0accSmrg  | --syscon | --sysco | --sysc | --sys | --sy)
1067ff7e0accSmrg    ac_prev=sysconfdir ;;
1068ff7e0accSmrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1069ff7e0accSmrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1070ff7e0accSmrg    sysconfdir=$ac_optarg ;;
1071ff7e0accSmrg
1072ff7e0accSmrg  -target | --target | --targe | --targ | --tar | --ta | --t)
1073ff7e0accSmrg    ac_prev=target_alias ;;
1074ff7e0accSmrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1075ff7e0accSmrg    target_alias=$ac_optarg ;;
1076ff7e0accSmrg
1077ff7e0accSmrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1078ff7e0accSmrg    verbose=yes ;;
1079ff7e0accSmrg
1080ff7e0accSmrg  -version | --version | --versio | --versi | --vers | -V)
1081ff7e0accSmrg    ac_init_version=: ;;
1082ff7e0accSmrg
1083ff7e0accSmrg  -with-* | --with-*)
1084a005d216Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1085ff7e0accSmrg    # Reject names that are not valid shell variable names.
1086a005d216Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1087863f95b1Smrg      as_fn_error $? "invalid package name: $ac_useropt"
1088a005d216Smrg    ac_useropt_orig=$ac_useropt
1089a005d216Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090a005d216Smrg    case $ac_user_opts in
1091a005d216Smrg      *"
1092a005d216Smrg"with_$ac_useropt"
1093a005d216Smrg"*) ;;
1094a005d216Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1095a005d216Smrg	 ac_unrecognized_sep=', ';;
1096a005d216Smrg    esac
1097a005d216Smrg    eval with_$ac_useropt=\$ac_optarg ;;
1098ff7e0accSmrg
1099ff7e0accSmrg  -without-* | --without-*)
1100a005d216Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1101ff7e0accSmrg    # Reject names that are not valid shell variable names.
1102a005d216Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103863f95b1Smrg      as_fn_error $? "invalid package name: $ac_useropt"
1104a005d216Smrg    ac_useropt_orig=$ac_useropt
1105a005d216Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106a005d216Smrg    case $ac_user_opts in
1107a005d216Smrg      *"
1108a005d216Smrg"with_$ac_useropt"
1109a005d216Smrg"*) ;;
1110a005d216Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1111a005d216Smrg	 ac_unrecognized_sep=', ';;
1112a005d216Smrg    esac
1113a005d216Smrg    eval with_$ac_useropt=no ;;
1114ff7e0accSmrg
1115ff7e0accSmrg  --x)
1116ff7e0accSmrg    # Obsolete; use --with-x.
1117ff7e0accSmrg    with_x=yes ;;
1118ff7e0accSmrg
1119ff7e0accSmrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1120ff7e0accSmrg  | --x-incl | --x-inc | --x-in | --x-i)
1121ff7e0accSmrg    ac_prev=x_includes ;;
1122ff7e0accSmrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1123ff7e0accSmrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1124ff7e0accSmrg    x_includes=$ac_optarg ;;
1125ff7e0accSmrg
1126ff7e0accSmrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1127ff7e0accSmrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1128ff7e0accSmrg    ac_prev=x_libraries ;;
1129ff7e0accSmrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1130ff7e0accSmrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1131ff7e0accSmrg    x_libraries=$ac_optarg ;;
1132ff7e0accSmrg
1133863f95b1Smrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1134863f95b1SmrgTry \`$0 --help' for more information"
1135ff7e0accSmrg    ;;
1136ff7e0accSmrg
1137ff7e0accSmrg  *=*)
1138ff7e0accSmrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1139ff7e0accSmrg    # Reject names that are not valid shell variable names.
1140863f95b1Smrg    case $ac_envvar in #(
1141863f95b1Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
1142863f95b1Smrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1143863f95b1Smrg    esac
1144ff7e0accSmrg    eval $ac_envvar=\$ac_optarg
1145ff7e0accSmrg    export $ac_envvar ;;
1146ff7e0accSmrg
1147ff7e0accSmrg  *)
1148ff7e0accSmrg    # FIXME: should be removed in autoconf 3.0.
1149a005d216Smrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1150ff7e0accSmrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1151a005d216Smrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1152863f95b1Smrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1153ff7e0accSmrg    ;;
1154ff7e0accSmrg
1155ff7e0accSmrg  esac
1156ff7e0accSmrgdone
1157ff7e0accSmrg
1158ff7e0accSmrgif test -n "$ac_prev"; then
1159ff7e0accSmrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1160863f95b1Smrg  as_fn_error $? "missing argument to $ac_option"
1161ff7e0accSmrgfi
1162ff7e0accSmrg
1163a005d216Smrgif test -n "$ac_unrecognized_opts"; then
1164a005d216Smrg  case $enable_option_checking in
1165a005d216Smrg    no) ;;
1166863f95b1Smrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
116710998002Smrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1168a005d216Smrg  esac
1169a005d216Smrgfi
1170a005d216Smrg
1171a005d216Smrg# Check all directory arguments for consistency.
1172ff7e0accSmrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1173ff7e0accSmrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1174ff7e0accSmrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1175ff7e0accSmrg		libdir localedir mandir
1176ff7e0accSmrgdo
1177ff7e0accSmrg  eval ac_val=\$$ac_var
1178a005d216Smrg  # Remove trailing slashes.
1179a005d216Smrg  case $ac_val in
1180a005d216Smrg    */ )
1181a005d216Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1182a005d216Smrg      eval $ac_var=\$ac_val;;
1183a005d216Smrg  esac
1184a005d216Smrg  # Be sure to have absolute directory names.
1185ff7e0accSmrg  case $ac_val in
1186ff7e0accSmrg    [\\/$]* | ?:[\\/]* )  continue;;
1187ff7e0accSmrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1188ff7e0accSmrg  esac
1189863f95b1Smrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1190ff7e0accSmrgdone
1191ff7e0accSmrg
1192ff7e0accSmrg# There might be people who depend on the old broken behavior: `$host'
1193ff7e0accSmrg# used to hold the argument of --host etc.
1194ff7e0accSmrg# FIXME: To remove some day.
1195ff7e0accSmrgbuild=$build_alias
1196ff7e0accSmrghost=$host_alias
1197ff7e0accSmrgtarget=$target_alias
1198ff7e0accSmrg
1199ff7e0accSmrg# FIXME: To remove some day.
1200ff7e0accSmrgif test "x$host_alias" != x; then
1201ff7e0accSmrg  if test "x$build_alias" = x; then
1202ff7e0accSmrg    cross_compiling=maybe
1203863f95b1Smrg    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1204863f95b1Smrg    If a cross compiler is detected then cross compile mode will be used" >&2
1205ff7e0accSmrg  elif test "x$build_alias" != "x$host_alias"; then
1206ff7e0accSmrg    cross_compiling=yes
1207ff7e0accSmrg  fi
1208ff7e0accSmrgfi
1209ff7e0accSmrg
1210ff7e0accSmrgac_tool_prefix=
1211ff7e0accSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
1212ff7e0accSmrg
1213ff7e0accSmrgtest "$silent" = yes && exec 6>/dev/null
1214ff7e0accSmrg
1215ff7e0accSmrg
1216ff7e0accSmrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1217ff7e0accSmrgac_ls_di=`ls -di .` &&
1218ff7e0accSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1219863f95b1Smrg  as_fn_error $? "working directory cannot be determined"
1220ff7e0accSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1221863f95b1Smrg  as_fn_error $? "pwd does not report name of working directory"
1222ff7e0accSmrg
1223ff7e0accSmrg
1224ff7e0accSmrg# Find the source files, if location was not specified.
1225ff7e0accSmrgif test -z "$srcdir"; then
1226ff7e0accSmrg  ac_srcdir_defaulted=yes
1227ff7e0accSmrg  # Try the directory containing this script, then the parent directory.
1228a005d216Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
1229a005d216Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1230a005d216Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
1231a005d216Smrg	 X"$as_myself" : 'X\(//\)$' \| \
1232a005d216Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1233a005d216Smrg$as_echo X"$as_myself" |
1234ff7e0accSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1235ff7e0accSmrg	    s//\1/
1236ff7e0accSmrg	    q
1237ff7e0accSmrg	  }
1238ff7e0accSmrg	  /^X\(\/\/\)[^/].*/{
1239ff7e0accSmrg	    s//\1/
1240ff7e0accSmrg	    q
1241ff7e0accSmrg	  }
1242ff7e0accSmrg	  /^X\(\/\/\)$/{
1243ff7e0accSmrg	    s//\1/
1244ff7e0accSmrg	    q
1245ff7e0accSmrg	  }
1246ff7e0accSmrg	  /^X\(\/\).*/{
1247ff7e0accSmrg	    s//\1/
1248ff7e0accSmrg	    q
1249ff7e0accSmrg	  }
1250ff7e0accSmrg	  s/.*/./; q'`
1251ff7e0accSmrg  srcdir=$ac_confdir
1252ff7e0accSmrg  if test ! -r "$srcdir/$ac_unique_file"; then
1253ff7e0accSmrg    srcdir=..
1254ff7e0accSmrg  fi
1255ff7e0accSmrgelse
1256ff7e0accSmrg  ac_srcdir_defaulted=no
1257ff7e0accSmrgfi
1258ff7e0accSmrgif test ! -r "$srcdir/$ac_unique_file"; then
1259ff7e0accSmrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1260863f95b1Smrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1261ff7e0accSmrgfi
1262ff7e0accSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1263ff7e0accSmrgac_abs_confdir=`(
1264863f95b1Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1265ff7e0accSmrg	pwd)`
1266ff7e0accSmrg# When building in place, set srcdir=.
1267ff7e0accSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1268ff7e0accSmrg  srcdir=.
1269ff7e0accSmrgfi
1270ff7e0accSmrg# Remove unnecessary trailing slashes from srcdir.
1271ff7e0accSmrg# Double slashes in file names in object file debugging info
1272ff7e0accSmrg# mess up M-x gdb in Emacs.
1273ff7e0accSmrgcase $srcdir in
1274ff7e0accSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1275ff7e0accSmrgesac
1276ff7e0accSmrgfor ac_var in $ac_precious_vars; do
1277ff7e0accSmrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1278ff7e0accSmrg  eval ac_env_${ac_var}_value=\$${ac_var}
1279ff7e0accSmrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1280ff7e0accSmrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1281ff7e0accSmrgdone
1282ff7e0accSmrg
1283ff7e0accSmrg#
1284ff7e0accSmrg# Report the --help message.
1285ff7e0accSmrg#
1286ff7e0accSmrgif test "$ac_init_help" = "long"; then
1287ff7e0accSmrg  # Omit some internal or obsolete options to make the list less imposing.
1288ff7e0accSmrg  # This message is too long to be a string in the A/UX 3.1 sh.
1289ff7e0accSmrg  cat <<_ACEOF
1290863f95b1Smrg\`configure' configures xwininfo 1.1.1 to adapt to many kinds of systems.
1291ff7e0accSmrg
1292ff7e0accSmrgUsage: $0 [OPTION]... [VAR=VALUE]...
1293ff7e0accSmrg
1294ff7e0accSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1295ff7e0accSmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
1296ff7e0accSmrg
1297ff7e0accSmrgDefaults for the options are specified in brackets.
1298ff7e0accSmrg
1299ff7e0accSmrgConfiguration:
1300ff7e0accSmrg  -h, --help              display this help and exit
1301ff7e0accSmrg      --help=short        display options specific to this package
1302ff7e0accSmrg      --help=recursive    display the short help of all the included packages
1303ff7e0accSmrg  -V, --version           display version information and exit
1304863f95b1Smrg  -q, --quiet, --silent   do not print \`checking ...' messages
1305ff7e0accSmrg      --cache-file=FILE   cache test results in FILE [disabled]
1306ff7e0accSmrg  -C, --config-cache      alias for \`--cache-file=config.cache'
1307ff7e0accSmrg  -n, --no-create         do not create output files
1308ff7e0accSmrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1309ff7e0accSmrg
1310ff7e0accSmrgInstallation directories:
1311ff7e0accSmrg  --prefix=PREFIX         install architecture-independent files in PREFIX
1312a005d216Smrg                          [$ac_default_prefix]
1313ff7e0accSmrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1314a005d216Smrg                          [PREFIX]
1315ff7e0accSmrg
1316ff7e0accSmrgBy default, \`make install' will install all the files in
1317ff7e0accSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1318ff7e0accSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1319ff7e0accSmrgfor instance \`--prefix=\$HOME'.
1320ff7e0accSmrg
1321ff7e0accSmrgFor better control, use the options below.
1322ff7e0accSmrg
1323ff7e0accSmrgFine tuning of the installation directories:
1324a005d216Smrg  --bindir=DIR            user executables [EPREFIX/bin]
1325a005d216Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1326a005d216Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
1327a005d216Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1328a005d216Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1329a005d216Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1330a005d216Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
1331a005d216Smrg  --includedir=DIR        C header files [PREFIX/include]
1332a005d216Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1333a005d216Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1334a005d216Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1335a005d216Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
1336a005d216Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1337a005d216Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
1338a005d216Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xwininfo]
1339a005d216Smrg  --htmldir=DIR           html documentation [DOCDIR]
1340a005d216Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
1341a005d216Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
1342a005d216Smrg  --psdir=DIR             ps documentation [DOCDIR]
1343ff7e0accSmrg_ACEOF
1344ff7e0accSmrg
1345ff7e0accSmrg  cat <<\_ACEOF
1346ff7e0accSmrg
1347ff7e0accSmrgProgram names:
1348ff7e0accSmrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
1349ff7e0accSmrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
1350ff7e0accSmrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1351ff7e0accSmrg
1352ff7e0accSmrgSystem types:
1353ff7e0accSmrg  --build=BUILD     configure for building on BUILD [guessed]
1354ff7e0accSmrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1355ff7e0accSmrg_ACEOF
1356ff7e0accSmrgfi
1357ff7e0accSmrg
1358ff7e0accSmrgif test -n "$ac_init_help"; then
1359ff7e0accSmrg  case $ac_init_help in
1360863f95b1Smrg     short | recursive ) echo "Configuration of xwininfo 1.1.1:";;
1361ff7e0accSmrg   esac
1362ff7e0accSmrg  cat <<\_ACEOF
1363ff7e0accSmrg
1364ff7e0accSmrgOptional Features:
1365a005d216Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
1366ff7e0accSmrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1367ff7e0accSmrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1368ff7e0accSmrg  --enable-maintainer-mode  enable make rules and dependencies not useful
1369ff7e0accSmrg			  (and sometimes confusing) to the casual installer
1370ff7e0accSmrg  --disable-dependency-tracking  speeds up one-time build
1371ff7e0accSmrg  --enable-dependency-tracking   do not reject slow dependency extractors
137210998002Smrg  --enable-strict-compilation
137310998002Smrg                          Enable all warnings from compiler and make them
137410998002Smrg                          errors (default: disabled)
1375863f95b1Smrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
1376863f95b1Smrg  --disable-silent-rules         verbose build output (undo: `make V=0')
1377ff7e0accSmrg
1378ff7e0accSmrgOptional Packages:
1379ff7e0accSmrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1380ff7e0accSmrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1381863f95b1Smrg  --with-xcb-icccm        use xcb-icccm (default: no)
1382ff7e0accSmrg
1383ff7e0accSmrgSome influential environment variables:
1384ff7e0accSmrg  CC          C compiler command
1385ff7e0accSmrg  CFLAGS      C compiler flags
1386ff7e0accSmrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1387ff7e0accSmrg              nonstandard directory <lib dir>
1388ff7e0accSmrg  LIBS        libraries to pass to the linker, e.g. -l<library>
1389863f95b1Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1390ff7e0accSmrg              you have headers in a nonstandard directory <include dir>
139110998002Smrg  CPP         C preprocessor
1392ff7e0accSmrg  PKG_CONFIG  path to pkg-config utility
1393ff7e0accSmrg  XWININFO_CFLAGS
1394ff7e0accSmrg              C compiler flags for XWININFO, overriding pkg-config
1395ff7e0accSmrg  XWININFO_LIBS
1396ff7e0accSmrg              linker flags for XWININFO, overriding pkg-config
1397863f95b1Smrg  XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config
1398863f95b1Smrg  XLIB_LIBS   linker flags for XLIB, overriding pkg-config
1399863f95b1Smrg
1400863f95b1SmrgUse these variables to override the choices made by `configure' or to help
1401863f95b1Smrgit to find libraries and programs with nonstandard names/locations.
1402863f95b1Smrg
1403863f95b1SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1404863f95b1Smrg_ACEOF
1405863f95b1Smrgac_status=$?
1406863f95b1Smrgfi
1407863f95b1Smrg
1408863f95b1Smrgif test "$ac_init_help" = "recursive"; then
1409863f95b1Smrg  # If there are subdirs, report their specific --help.
1410863f95b1Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1411863f95b1Smrg    test -d "$ac_dir" ||
1412863f95b1Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1413863f95b1Smrg      continue
1414863f95b1Smrg    ac_builddir=.
1415863f95b1Smrg
1416863f95b1Smrgcase "$ac_dir" in
1417863f95b1Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1418863f95b1Smrg*)
1419863f95b1Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1420863f95b1Smrg  # A ".." for each directory in $ac_dir_suffix.
1421863f95b1Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1422863f95b1Smrg  case $ac_top_builddir_sub in
1423863f95b1Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1424863f95b1Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1425863f95b1Smrg  esac ;;
1426863f95b1Smrgesac
1427863f95b1Smrgac_abs_top_builddir=$ac_pwd
1428863f95b1Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1429863f95b1Smrg# for backward compatibility:
1430863f95b1Smrgac_top_builddir=$ac_top_build_prefix
1431863f95b1Smrg
1432863f95b1Smrgcase $srcdir in
1433863f95b1Smrg  .)  # We are building in place.
1434863f95b1Smrg    ac_srcdir=.
1435863f95b1Smrg    ac_top_srcdir=$ac_top_builddir_sub
1436863f95b1Smrg    ac_abs_top_srcdir=$ac_pwd ;;
1437863f95b1Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1438863f95b1Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
1439863f95b1Smrg    ac_top_srcdir=$srcdir
1440863f95b1Smrg    ac_abs_top_srcdir=$srcdir ;;
1441863f95b1Smrg  *) # Relative name.
1442863f95b1Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1443863f95b1Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1444863f95b1Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1445863f95b1Smrgesac
1446863f95b1Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1447863f95b1Smrg
1448863f95b1Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
1449863f95b1Smrg    # Check for guested configure.
1450863f95b1Smrg    if test -f "$ac_srcdir/configure.gnu"; then
1451863f95b1Smrg      echo &&
1452863f95b1Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1453863f95b1Smrg    elif test -f "$ac_srcdir/configure"; then
1454863f95b1Smrg      echo &&
1455863f95b1Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
1456863f95b1Smrg    else
1457863f95b1Smrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1458863f95b1Smrg    fi || ac_status=$?
1459863f95b1Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
1460863f95b1Smrg  done
1461863f95b1Smrgfi
1462863f95b1Smrg
1463863f95b1Smrgtest -n "$ac_init_help" && exit $ac_status
1464863f95b1Smrgif $ac_init_version; then
1465863f95b1Smrg  cat <<\_ACEOF
1466863f95b1Smrgxwininfo configure 1.1.1
1467863f95b1Smrggenerated by GNU Autoconf 2.68
1468863f95b1Smrg
1469863f95b1SmrgCopyright (C) 2010 Free Software Foundation, Inc.
1470863f95b1SmrgThis configure script is free software; the Free Software Foundation
1471863f95b1Smrggives unlimited permission to copy, distribute and modify it.
1472863f95b1Smrg_ACEOF
1473863f95b1Smrg  exit
1474863f95b1Smrgfi
1475863f95b1Smrg
1476863f95b1Smrg## ------------------------ ##
1477863f95b1Smrg## Autoconf initialization. ##
1478863f95b1Smrg## ------------------------ ##
1479863f95b1Smrg
1480863f95b1Smrg# ac_fn_c_try_compile LINENO
1481863f95b1Smrg# --------------------------
1482863f95b1Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
1483863f95b1Smrgac_fn_c_try_compile ()
1484863f95b1Smrg{
1485863f95b1Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1486863f95b1Smrg  rm -f conftest.$ac_objext
1487863f95b1Smrg  if { { ac_try="$ac_compile"
1488863f95b1Smrgcase "(($ac_try" in
1489863f95b1Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1490863f95b1Smrg  *) ac_try_echo=$ac_try;;
1491863f95b1Smrgesac
1492863f95b1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1493863f95b1Smrg$as_echo "$ac_try_echo"; } >&5
1494863f95b1Smrg  (eval "$ac_compile") 2>conftest.err
1495863f95b1Smrg  ac_status=$?
1496863f95b1Smrg  if test -s conftest.err; then
1497863f95b1Smrg    grep -v '^ *+' conftest.err >conftest.er1
1498863f95b1Smrg    cat conftest.er1 >&5
1499863f95b1Smrg    mv -f conftest.er1 conftest.err
1500863f95b1Smrg  fi
1501863f95b1Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1502863f95b1Smrg  test $ac_status = 0; } && {
1503863f95b1Smrg	 test -z "$ac_c_werror_flag" ||
1504863f95b1Smrg	 test ! -s conftest.err
1505863f95b1Smrg       } && test -s conftest.$ac_objext; then :
1506863f95b1Smrg  ac_retval=0
1507863f95b1Smrgelse
1508863f95b1Smrg  $as_echo "$as_me: failed program was:" >&5
1509863f95b1Smrgsed 's/^/| /' conftest.$ac_ext >&5
1510863f95b1Smrg
1511863f95b1Smrg	ac_retval=1
1512863f95b1Smrgfi
1513863f95b1Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1514863f95b1Smrg  as_fn_set_status $ac_retval
1515863f95b1Smrg
1516863f95b1Smrg} # ac_fn_c_try_compile
1517863f95b1Smrg
1518863f95b1Smrg# ac_fn_c_try_cpp LINENO
1519863f95b1Smrg# ----------------------
1520863f95b1Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1521863f95b1Smrgac_fn_c_try_cpp ()
1522863f95b1Smrg{
1523863f95b1Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524863f95b1Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
1525863f95b1Smrgcase "(($ac_try" in
1526863f95b1Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1527863f95b1Smrg  *) ac_try_echo=$ac_try;;
1528863f95b1Smrgesac
1529863f95b1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530863f95b1Smrg$as_echo "$ac_try_echo"; } >&5
1531863f95b1Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1532863f95b1Smrg  ac_status=$?
1533863f95b1Smrg  if test -s conftest.err; then
1534863f95b1Smrg    grep -v '^ *+' conftest.err >conftest.er1
1535863f95b1Smrg    cat conftest.er1 >&5
1536863f95b1Smrg    mv -f conftest.er1 conftest.err
1537863f95b1Smrg  fi
1538863f95b1Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539863f95b1Smrg  test $ac_status = 0; } > conftest.i && {
1540863f95b1Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1541863f95b1Smrg	 test ! -s conftest.err
1542863f95b1Smrg       }; then :
1543863f95b1Smrg  ac_retval=0
1544863f95b1Smrgelse
1545863f95b1Smrg  $as_echo "$as_me: failed program was:" >&5
1546863f95b1Smrgsed 's/^/| /' conftest.$ac_ext >&5
1547863f95b1Smrg
1548863f95b1Smrg    ac_retval=1
1549863f95b1Smrgfi
1550863f95b1Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1551863f95b1Smrg  as_fn_set_status $ac_retval
1552863f95b1Smrg
1553863f95b1Smrg} # ac_fn_c_try_cpp
1554863f95b1Smrg
1555863f95b1Smrg# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1556863f95b1Smrg# -------------------------------------------------------
1557863f95b1Smrg# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1558863f95b1Smrg# the include files in INCLUDES and setting the cache variable VAR
1559863f95b1Smrg# accordingly.
1560863f95b1Smrgac_fn_c_check_header_mongrel ()
1561863f95b1Smrg{
1562863f95b1Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563863f95b1Smrg  if eval \${$3+:} false; then :
1564863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1565863f95b1Smrg$as_echo_n "checking for $2... " >&6; }
1566863f95b1Smrgif eval \${$3+:} false; then :
1567863f95b1Smrg  $as_echo_n "(cached) " >&6
1568863f95b1Smrgfi
1569863f95b1Smrgeval ac_res=\$$3
1570863f95b1Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1571863f95b1Smrg$as_echo "$ac_res" >&6; }
1572863f95b1Smrgelse
1573863f95b1Smrg  # Is the header compilable?
1574863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1575863f95b1Smrg$as_echo_n "checking $2 usability... " >&6; }
1576863f95b1Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1577863f95b1Smrg/* end confdefs.h.  */
1578863f95b1Smrg$4
1579863f95b1Smrg#include <$2>
1580863f95b1Smrg_ACEOF
1581863f95b1Smrgif ac_fn_c_try_compile "$LINENO"; then :
1582863f95b1Smrg  ac_header_compiler=yes
1583863f95b1Smrgelse
1584863f95b1Smrg  ac_header_compiler=no
1585863f95b1Smrgfi
1586863f95b1Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1587863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1588863f95b1Smrg$as_echo "$ac_header_compiler" >&6; }
1589863f95b1Smrg
1590863f95b1Smrg# Is the header present?
1591863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1592863f95b1Smrg$as_echo_n "checking $2 presence... " >&6; }
1593863f95b1Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1594863f95b1Smrg/* end confdefs.h.  */
1595863f95b1Smrg#include <$2>
1596863f95b1Smrg_ACEOF
1597863f95b1Smrgif ac_fn_c_try_cpp "$LINENO"; then :
1598863f95b1Smrg  ac_header_preproc=yes
1599863f95b1Smrgelse
1600863f95b1Smrg  ac_header_preproc=no
1601863f95b1Smrgfi
1602863f95b1Smrgrm -f conftest.err conftest.i conftest.$ac_ext
1603863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1604863f95b1Smrg$as_echo "$ac_header_preproc" >&6; }
1605863f95b1Smrg
1606863f95b1Smrg# So?  What about this header?
1607863f95b1Smrgcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1608863f95b1Smrg  yes:no: )
1609863f95b1Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1610863f95b1Smrg$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1611863f95b1Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1612863f95b1Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1613863f95b1Smrg    ;;
1614863f95b1Smrg  no:yes:* )
1615863f95b1Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1616863f95b1Smrg$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1617863f95b1Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1618863f95b1Smrg$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1619863f95b1Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1620863f95b1Smrg$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1621863f95b1Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1622863f95b1Smrg$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1623863f95b1Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1624863f95b1Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1625863f95b1Smrg( $as_echo "## ---------------------------------------------------------------------- ##
1626863f95b1Smrg## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1627863f95b1Smrg## ---------------------------------------------------------------------- ##"
1628863f95b1Smrg     ) | sed "s/^/$as_me: WARNING:     /" >&2
1629863f95b1Smrg    ;;
1630863f95b1Smrgesac
1631863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1632863f95b1Smrg$as_echo_n "checking for $2... " >&6; }
1633863f95b1Smrgif eval \${$3+:} false; then :
1634863f95b1Smrg  $as_echo_n "(cached) " >&6
1635863f95b1Smrgelse
1636863f95b1Smrg  eval "$3=\$ac_header_compiler"
1637863f95b1Smrgfi
1638863f95b1Smrgeval ac_res=\$$3
1639863f95b1Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1640863f95b1Smrg$as_echo "$ac_res" >&6; }
1641863f95b1Smrgfi
1642863f95b1Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643863f95b1Smrg
1644863f95b1Smrg} # ac_fn_c_check_header_mongrel
1645863f95b1Smrg
1646863f95b1Smrg# ac_fn_c_try_run LINENO
1647863f95b1Smrg# ----------------------
1648863f95b1Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1649863f95b1Smrg# that executables *can* be run.
1650863f95b1Smrgac_fn_c_try_run ()
1651863f95b1Smrg{
1652863f95b1Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653863f95b1Smrg  if { { ac_try="$ac_link"
1654863f95b1Smrgcase "(($ac_try" in
1655863f95b1Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656863f95b1Smrg  *) ac_try_echo=$ac_try;;
1657863f95b1Smrgesac
1658863f95b1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659863f95b1Smrg$as_echo "$ac_try_echo"; } >&5
1660863f95b1Smrg  (eval "$ac_link") 2>&5
1661863f95b1Smrg  ac_status=$?
1662863f95b1Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663863f95b1Smrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1664863f95b1Smrg  { { case "(($ac_try" in
1665863f95b1Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666863f95b1Smrg  *) ac_try_echo=$ac_try;;
1667863f95b1Smrgesac
1668863f95b1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669863f95b1Smrg$as_echo "$ac_try_echo"; } >&5
1670863f95b1Smrg  (eval "$ac_try") 2>&5
1671863f95b1Smrg  ac_status=$?
1672863f95b1Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673863f95b1Smrg  test $ac_status = 0; }; }; then :
1674863f95b1Smrg  ac_retval=0
1675863f95b1Smrgelse
1676863f95b1Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
1677863f95b1Smrg       $as_echo "$as_me: failed program was:" >&5
1678863f95b1Smrgsed 's/^/| /' conftest.$ac_ext >&5
1679863f95b1Smrg
1680863f95b1Smrg       ac_retval=$ac_status
1681863f95b1Smrgfi
1682863f95b1Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1683863f95b1Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684863f95b1Smrg  as_fn_set_status $ac_retval
1685863f95b1Smrg
1686863f95b1Smrg} # ac_fn_c_try_run
1687863f95b1Smrg
1688863f95b1Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1689863f95b1Smrg# -------------------------------------------------------
1690863f95b1Smrg# Tests whether HEADER exists and can be compiled using the include files in
1691863f95b1Smrg# INCLUDES, setting the cache variable VAR accordingly.
1692863f95b1Smrgac_fn_c_check_header_compile ()
1693863f95b1Smrg{
1694863f95b1Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696863f95b1Smrg$as_echo_n "checking for $2... " >&6; }
1697863f95b1Smrgif eval \${$3+:} false; then :
1698863f95b1Smrg  $as_echo_n "(cached) " >&6
1699863f95b1Smrgelse
1700863f95b1Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701863f95b1Smrg/* end confdefs.h.  */
1702863f95b1Smrg$4
1703863f95b1Smrg#include <$2>
1704863f95b1Smrg_ACEOF
1705863f95b1Smrgif ac_fn_c_try_compile "$LINENO"; then :
1706863f95b1Smrg  eval "$3=yes"
1707863f95b1Smrgelse
1708863f95b1Smrg  eval "$3=no"
1709863f95b1Smrgfi
1710863f95b1Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1711863f95b1Smrgfi
1712863f95b1Smrgeval ac_res=\$$3
1713863f95b1Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1714863f95b1Smrg$as_echo "$ac_res" >&6; }
1715863f95b1Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716ff7e0accSmrg
1717863f95b1Smrg} # ac_fn_c_check_header_compile
1718ff7e0accSmrg
1719863f95b1Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1720863f95b1Smrg# ---------------------------------------------
1721863f95b1Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1722863f95b1Smrg# accordingly.
1723863f95b1Smrgac_fn_c_check_decl ()
1724863f95b1Smrg{
1725863f95b1Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726863f95b1Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
1727863f95b1Smrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1728863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1729863f95b1Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1730863f95b1Smrgif eval \${$3+:} false; then :
1731863f95b1Smrg  $as_echo_n "(cached) " >&6
1732863f95b1Smrgelse
1733863f95b1Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734863f95b1Smrg/* end confdefs.h.  */
1735863f95b1Smrg$4
1736863f95b1Smrgint
1737863f95b1Smrgmain ()
1738863f95b1Smrg{
1739863f95b1Smrg#ifndef $as_decl_name
1740863f95b1Smrg#ifdef __cplusplus
1741863f95b1Smrg  (void) $as_decl_use;
1742863f95b1Smrg#else
1743863f95b1Smrg  (void) $as_decl_name;
1744863f95b1Smrg#endif
1745863f95b1Smrg#endif
1746863f95b1Smrg
1747863f95b1Smrg  ;
1748863f95b1Smrg  return 0;
1749863f95b1Smrg}
1750ff7e0accSmrg_ACEOF
1751863f95b1Smrgif ac_fn_c_try_compile "$LINENO"; then :
1752863f95b1Smrg  eval "$3=yes"
1753863f95b1Smrgelse
1754863f95b1Smrg  eval "$3=no"
1755ff7e0accSmrgfi
1756863f95b1Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1757863f95b1Smrgfi
1758863f95b1Smrgeval ac_res=\$$3
1759863f95b1Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1760863f95b1Smrg$as_echo "$ac_res" >&6; }
1761863f95b1Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762ff7e0accSmrg
1763863f95b1Smrg} # ac_fn_c_check_decl
1764ff7e0accSmrg
1765863f95b1Smrg# ac_fn_c_try_link LINENO
1766863f95b1Smrg# -----------------------
1767863f95b1Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
1768863f95b1Smrgac_fn_c_try_link ()
1769863f95b1Smrg{
1770863f95b1Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771863f95b1Smrg  rm -f conftest.$ac_objext conftest$ac_exeext
1772863f95b1Smrg  if { { ac_try="$ac_link"
1773863f95b1Smrgcase "(($ac_try" in
1774863f95b1Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775863f95b1Smrg  *) ac_try_echo=$ac_try;;
1776ff7e0accSmrgesac
1777863f95b1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778863f95b1Smrg$as_echo "$ac_try_echo"; } >&5
1779863f95b1Smrg  (eval "$ac_link") 2>conftest.err
1780863f95b1Smrg  ac_status=$?
1781863f95b1Smrg  if test -s conftest.err; then
1782863f95b1Smrg    grep -v '^ *+' conftest.err >conftest.er1
1783863f95b1Smrg    cat conftest.er1 >&5
1784863f95b1Smrg    mv -f conftest.er1 conftest.err
1785863f95b1Smrg  fi
1786863f95b1Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787863f95b1Smrg  test $ac_status = 0; } && {
1788863f95b1Smrg	 test -z "$ac_c_werror_flag" ||
1789863f95b1Smrg	 test ! -s conftest.err
1790863f95b1Smrg       } && test -s conftest$ac_exeext && {
1791863f95b1Smrg	 test "$cross_compiling" = yes ||
1792863f95b1Smrg	 $as_test_x conftest$ac_exeext
1793863f95b1Smrg       }; then :
1794863f95b1Smrg  ac_retval=0
1795863f95b1Smrgelse
1796863f95b1Smrg  $as_echo "$as_me: failed program was:" >&5
1797863f95b1Smrgsed 's/^/| /' conftest.$ac_ext >&5
1798ff7e0accSmrg
1799863f95b1Smrg	ac_retval=1
1800ff7e0accSmrgfi
1801863f95b1Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1802863f95b1Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1803863f95b1Smrg  # interfere with the next link command; also delete a directory that is
1804863f95b1Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
1805863f95b1Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1806863f95b1Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807863f95b1Smrg  as_fn_set_status $ac_retval
1808ff7e0accSmrg
1809863f95b1Smrg} # ac_fn_c_try_link
1810ff7e0accSmrg
1811863f95b1Smrg# ac_fn_c_check_func LINENO FUNC VAR
1812863f95b1Smrg# ----------------------------------
1813863f95b1Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
1814863f95b1Smrgac_fn_c_check_func ()
1815863f95b1Smrg{
1816863f95b1Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1818863f95b1Smrg$as_echo_n "checking for $2... " >&6; }
1819863f95b1Smrgif eval \${$3+:} false; then :
1820863f95b1Smrg  $as_echo_n "(cached) " >&6
1821863f95b1Smrgelse
1822863f95b1Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823863f95b1Smrg/* end confdefs.h.  */
1824863f95b1Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1825863f95b1Smrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1826863f95b1Smrg#define $2 innocuous_$2
1827863f95b1Smrg
1828863f95b1Smrg/* System header to define __stub macros and hopefully few prototypes,
1829863f95b1Smrg    which can conflict with char $2 (); below.
1830863f95b1Smrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1831863f95b1Smrg    <limits.h> exists even on freestanding compilers.  */
1832863f95b1Smrg
1833863f95b1Smrg#ifdef __STDC__
1834863f95b1Smrg# include <limits.h>
1835863f95b1Smrg#else
1836863f95b1Smrg# include <assert.h>
1837863f95b1Smrg#endif
1838863f95b1Smrg
1839863f95b1Smrg#undef $2
1840863f95b1Smrg
1841863f95b1Smrg/* Override any GCC internal prototype to avoid an error.
1842863f95b1Smrg   Use char because int might match the return type of a GCC
1843863f95b1Smrg   builtin and then its argument prototype would still apply.  */
1844863f95b1Smrg#ifdef __cplusplus
1845863f95b1Smrgextern "C"
1846863f95b1Smrg#endif
1847863f95b1Smrgchar $2 ();
1848863f95b1Smrg/* The GNU C library defines this for functions which it implements
1849863f95b1Smrg    to always fail with ENOSYS.  Some functions are actually named
1850863f95b1Smrg    something starting with __ and the normal name is an alias.  */
1851863f95b1Smrg#if defined __stub_$2 || defined __stub___$2
1852863f95b1Smrgchoke me
1853863f95b1Smrg#endif
1854863f95b1Smrg
1855863f95b1Smrgint
1856863f95b1Smrgmain ()
1857863f95b1Smrg{
1858863f95b1Smrgreturn $2 ();
1859863f95b1Smrg  ;
1860863f95b1Smrg  return 0;
1861863f95b1Smrg}
1862ff7e0accSmrg_ACEOF
1863863f95b1Smrgif ac_fn_c_try_link "$LINENO"; then :
1864863f95b1Smrg  eval "$3=yes"
1865863f95b1Smrgelse
1866863f95b1Smrg  eval "$3=no"
1867ff7e0accSmrgfi
1868863f95b1Smrgrm -f core conftest.err conftest.$ac_objext \
1869863f95b1Smrg    conftest$ac_exeext conftest.$ac_ext
1870863f95b1Smrgfi
1871863f95b1Smrgeval ac_res=\$$3
1872863f95b1Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873863f95b1Smrg$as_echo "$ac_res" >&6; }
1874863f95b1Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875863f95b1Smrg
1876863f95b1Smrg} # ac_fn_c_check_func
1877ff7e0accSmrgcat >config.log <<_ACEOF
1878ff7e0accSmrgThis file contains any messages produced by compilers while
1879ff7e0accSmrgrunning configure, to aid debugging if configure makes a mistake.
1880ff7e0accSmrg
1881863f95b1SmrgIt was created by xwininfo $as_me 1.1.1, which was
1882863f95b1Smrggenerated by GNU Autoconf 2.68.  Invocation command line was
1883ff7e0accSmrg
1884ff7e0accSmrg  $ $0 $@
1885ff7e0accSmrg
1886ff7e0accSmrg_ACEOF
1887ff7e0accSmrgexec 5>>config.log
1888ff7e0accSmrg{
1889ff7e0accSmrgcat <<_ASUNAME
1890ff7e0accSmrg## --------- ##
1891ff7e0accSmrg## Platform. ##
1892ff7e0accSmrg## --------- ##
1893ff7e0accSmrg
1894ff7e0accSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1895ff7e0accSmrguname -m = `(uname -m) 2>/dev/null || echo unknown`
1896ff7e0accSmrguname -r = `(uname -r) 2>/dev/null || echo unknown`
1897ff7e0accSmrguname -s = `(uname -s) 2>/dev/null || echo unknown`
1898ff7e0accSmrguname -v = `(uname -v) 2>/dev/null || echo unknown`
1899ff7e0accSmrg
1900ff7e0accSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1901ff7e0accSmrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1902ff7e0accSmrg
1903ff7e0accSmrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1904ff7e0accSmrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1905ff7e0accSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1906ff7e0accSmrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1907ff7e0accSmrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1908ff7e0accSmrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1909ff7e0accSmrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1910ff7e0accSmrg
1911ff7e0accSmrg_ASUNAME
1912ff7e0accSmrg
1913ff7e0accSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914ff7e0accSmrgfor as_dir in $PATH
1915ff7e0accSmrgdo
1916ff7e0accSmrg  IFS=$as_save_IFS
1917ff7e0accSmrg  test -z "$as_dir" && as_dir=.
1918863f95b1Smrg    $as_echo "PATH: $as_dir"
1919863f95b1Smrg  done
1920ff7e0accSmrgIFS=$as_save_IFS
1921ff7e0accSmrg
1922ff7e0accSmrg} >&5
1923ff7e0accSmrg
1924ff7e0accSmrgcat >&5 <<_ACEOF
1925ff7e0accSmrg
1926ff7e0accSmrg
1927ff7e0accSmrg## ----------- ##
1928ff7e0accSmrg## Core tests. ##
1929ff7e0accSmrg## ----------- ##
1930ff7e0accSmrg
1931ff7e0accSmrg_ACEOF
1932ff7e0accSmrg
1933ff7e0accSmrg
1934ff7e0accSmrg# Keep a trace of the command line.
1935ff7e0accSmrg# Strip out --no-create and --no-recursion so they do not pile up.
1936ff7e0accSmrg# Strip out --silent because we don't want to record it for future runs.
1937ff7e0accSmrg# Also quote any args containing shell meta-characters.
1938ff7e0accSmrg# Make two passes to allow for proper duplicate-argument suppression.
1939ff7e0accSmrgac_configure_args=
1940ff7e0accSmrgac_configure_args0=
1941ff7e0accSmrgac_configure_args1=
1942ff7e0accSmrgac_must_keep_next=false
1943ff7e0accSmrgfor ac_pass in 1 2
1944ff7e0accSmrgdo
1945ff7e0accSmrg  for ac_arg
1946ff7e0accSmrg  do
1947ff7e0accSmrg    case $ac_arg in
1948ff7e0accSmrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1949ff7e0accSmrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1950ff7e0accSmrg    | -silent | --silent | --silen | --sile | --sil)
1951ff7e0accSmrg      continue ;;
1952ff7e0accSmrg    *\'*)
1953a005d216Smrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1954ff7e0accSmrg    esac
1955ff7e0accSmrg    case $ac_pass in
1956863f95b1Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1957ff7e0accSmrg    2)
1958863f95b1Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
1959ff7e0accSmrg      if test $ac_must_keep_next = true; then
1960ff7e0accSmrg	ac_must_keep_next=false # Got value, back to normal.
1961ff7e0accSmrg      else
1962ff7e0accSmrg	case $ac_arg in
1963ff7e0accSmrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
1964ff7e0accSmrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1965ff7e0accSmrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1966ff7e0accSmrg	  | -with-* | --with-* | -without-* | --without-* | --x)
1967ff7e0accSmrg	    case "$ac_configure_args0 " in
1968ff7e0accSmrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1969ff7e0accSmrg	    esac
1970ff7e0accSmrg	    ;;
1971ff7e0accSmrg	  -* ) ac_must_keep_next=true ;;
1972ff7e0accSmrg	esac
1973ff7e0accSmrg      fi
1974863f95b1Smrg      as_fn_append ac_configure_args " '$ac_arg'"
1975ff7e0accSmrg      ;;
1976ff7e0accSmrg    esac
1977ff7e0accSmrg  done
1978ff7e0accSmrgdone
1979863f95b1Smrg{ ac_configure_args0=; unset ac_configure_args0;}
1980863f95b1Smrg{ ac_configure_args1=; unset ac_configure_args1;}
1981ff7e0accSmrg
1982ff7e0accSmrg# When interrupted or exit'd, cleanup temporary files, and complete
1983ff7e0accSmrg# config.log.  We remove comments because anyway the quotes in there
1984ff7e0accSmrg# would cause problems or look ugly.
1985ff7e0accSmrg# WARNING: Use '\'' to represent an apostrophe within the trap.
1986ff7e0accSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1987ff7e0accSmrgtrap 'exit_status=$?
1988ff7e0accSmrg  # Save into config.log some information that might help in debugging.
1989ff7e0accSmrg  {
1990ff7e0accSmrg    echo
1991ff7e0accSmrg
1992863f95b1Smrg    $as_echo "## ---------------- ##
1993ff7e0accSmrg## Cache variables. ##
1994863f95b1Smrg## ---------------- ##"
1995ff7e0accSmrg    echo
1996ff7e0accSmrg    # The following way of writing the cache mishandles newlines in values,
1997ff7e0accSmrg(
1998ff7e0accSmrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1999ff7e0accSmrg    eval ac_val=\$$ac_var
2000ff7e0accSmrg    case $ac_val in #(
2001ff7e0accSmrg    *${as_nl}*)
2002ff7e0accSmrg      case $ac_var in #(
2003863f95b1Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
200410998002Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2005ff7e0accSmrg      esac
2006ff7e0accSmrg      case $ac_var in #(
2007ff7e0accSmrg      _ | IFS | as_nl) ;; #(
2008a005d216Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2009863f95b1Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
2010ff7e0accSmrg      esac ;;
2011ff7e0accSmrg    esac
2012ff7e0accSmrg  done
2013ff7e0accSmrg  (set) 2>&1 |
2014ff7e0accSmrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2015ff7e0accSmrg    *${as_nl}ac_space=\ *)
2016ff7e0accSmrg      sed -n \
2017ff7e0accSmrg	"s/'\''/'\''\\\\'\'''\''/g;
2018ff7e0accSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2019ff7e0accSmrg      ;; #(
2020ff7e0accSmrg    *)
2021ff7e0accSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2022ff7e0accSmrg      ;;
2023ff7e0accSmrg    esac |
2024ff7e0accSmrg    sort
2025ff7e0accSmrg)
2026ff7e0accSmrg    echo
2027ff7e0accSmrg
2028863f95b1Smrg    $as_echo "## ----------------- ##
2029ff7e0accSmrg## Output variables. ##
2030863f95b1Smrg## ----------------- ##"
2031ff7e0accSmrg    echo
2032ff7e0accSmrg    for ac_var in $ac_subst_vars
2033ff7e0accSmrg    do
2034ff7e0accSmrg      eval ac_val=\$$ac_var
2035ff7e0accSmrg      case $ac_val in
2036a005d216Smrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2037ff7e0accSmrg      esac
2038a005d216Smrg      $as_echo "$ac_var='\''$ac_val'\''"
2039ff7e0accSmrg    done | sort
2040ff7e0accSmrg    echo
2041ff7e0accSmrg
2042ff7e0accSmrg    if test -n "$ac_subst_files"; then
2043863f95b1Smrg      $as_echo "## ------------------- ##
2044ff7e0accSmrg## File substitutions. ##
2045863f95b1Smrg## ------------------- ##"
2046ff7e0accSmrg      echo
2047ff7e0accSmrg      for ac_var in $ac_subst_files
2048ff7e0accSmrg      do
2049ff7e0accSmrg	eval ac_val=\$$ac_var
2050ff7e0accSmrg	case $ac_val in
2051a005d216Smrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2052ff7e0accSmrg	esac
2053a005d216Smrg	$as_echo "$ac_var='\''$ac_val'\''"
2054ff7e0accSmrg      done | sort
2055ff7e0accSmrg      echo
2056ff7e0accSmrg    fi
2057ff7e0accSmrg
2058ff7e0accSmrg    if test -s confdefs.h; then
2059863f95b1Smrg      $as_echo "## ----------- ##
2060ff7e0accSmrg## confdefs.h. ##
2061863f95b1Smrg## ----------- ##"
2062ff7e0accSmrg      echo
2063ff7e0accSmrg      cat confdefs.h
2064ff7e0accSmrg      echo
2065ff7e0accSmrg    fi
2066ff7e0accSmrg    test "$ac_signal" != 0 &&
2067a005d216Smrg      $as_echo "$as_me: caught signal $ac_signal"
2068a005d216Smrg    $as_echo "$as_me: exit $exit_status"
2069ff7e0accSmrg  } >&5
2070ff7e0accSmrg  rm -f core *.core core.conftest.* &&
2071ff7e0accSmrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2072ff7e0accSmrg    exit $exit_status
2073ff7e0accSmrg' 0
2074ff7e0accSmrgfor ac_signal in 1 2 13 15; do
2075863f95b1Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2076ff7e0accSmrgdone
2077ff7e0accSmrgac_signal=0
2078ff7e0accSmrg
2079ff7e0accSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
2080ff7e0accSmrgrm -f -r conftest* confdefs.h
2081ff7e0accSmrg
2082863f95b1Smrg$as_echo "/* confdefs.h */" > confdefs.h
2083863f95b1Smrg
2084ff7e0accSmrg# Predefined preprocessor variables.
2085ff7e0accSmrg
2086ff7e0accSmrgcat >>confdefs.h <<_ACEOF
2087ff7e0accSmrg#define PACKAGE_NAME "$PACKAGE_NAME"
2088ff7e0accSmrg_ACEOF
2089ff7e0accSmrg
2090ff7e0accSmrgcat >>confdefs.h <<_ACEOF
2091ff7e0accSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2092ff7e0accSmrg_ACEOF
2093ff7e0accSmrg
2094ff7e0accSmrgcat >>confdefs.h <<_ACEOF
2095ff7e0accSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
2096ff7e0accSmrg_ACEOF
2097ff7e0accSmrg
2098ff7e0accSmrgcat >>confdefs.h <<_ACEOF
2099ff7e0accSmrg#define PACKAGE_STRING "$PACKAGE_STRING"
2100ff7e0accSmrg_ACEOF
2101ff7e0accSmrg
2102ff7e0accSmrgcat >>confdefs.h <<_ACEOF
2103ff7e0accSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2104ff7e0accSmrg_ACEOF
2105ff7e0accSmrg
2106863f95b1Smrgcat >>confdefs.h <<_ACEOF
2107863f95b1Smrg#define PACKAGE_URL "$PACKAGE_URL"
2108863f95b1Smrg_ACEOF
2109863f95b1Smrg
2110ff7e0accSmrg
2111ff7e0accSmrg# Let the site file select an alternate cache file if it wants to.
2112a005d216Smrg# Prefer an explicitly selected file to automatically selected ones.
2113a005d216Smrgac_site_file1=NONE
2114a005d216Smrgac_site_file2=NONE
2115ff7e0accSmrgif test -n "$CONFIG_SITE"; then
2116863f95b1Smrg  # We do not want a PATH search for config.site.
2117863f95b1Smrg  case $CONFIG_SITE in #((
2118863f95b1Smrg    -*)  ac_site_file1=./$CONFIG_SITE;;
2119863f95b1Smrg    */*) ac_site_file1=$CONFIG_SITE;;
2120863f95b1Smrg    *)   ac_site_file1=./$CONFIG_SITE;;
2121863f95b1Smrg  esac
2122ff7e0accSmrgelif test "x$prefix" != xNONE; then
2123a005d216Smrg  ac_site_file1=$prefix/share/config.site
2124a005d216Smrg  ac_site_file2=$prefix/etc/config.site
2125ff7e0accSmrgelse
2126a005d216Smrg  ac_site_file1=$ac_default_prefix/share/config.site
2127a005d216Smrg  ac_site_file2=$ac_default_prefix/etc/config.site
2128ff7e0accSmrgfi
2129a005d216Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
2130ff7e0accSmrgdo
2131a005d216Smrg  test "x$ac_site_file" = xNONE && continue
2132863f95b1Smrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2133863f95b1Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2134a005d216Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2135ff7e0accSmrg    sed 's/^/| /' "$ac_site_file" >&5
2136863f95b1Smrg    . "$ac_site_file" \
2137863f95b1Smrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2138863f95b1Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2139863f95b1Smrgas_fn_error $? "failed to load site script $ac_site_file
2140863f95b1SmrgSee \`config.log' for more details" "$LINENO" 5; }
2141ff7e0accSmrg  fi
2142ff7e0accSmrgdone
2143ff7e0accSmrg
2144ff7e0accSmrgif test -r "$cache_file"; then
2145863f95b1Smrg  # Some versions of bash will fail to source /dev/null (special files
2146863f95b1Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2147863f95b1Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2148863f95b1Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2149a005d216Smrg$as_echo "$as_me: loading cache $cache_file" >&6;}
2150ff7e0accSmrg    case $cache_file in
2151ff7e0accSmrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2152ff7e0accSmrg      *)                      . "./$cache_file";;
2153ff7e0accSmrg    esac
2154ff7e0accSmrg  fi
2155ff7e0accSmrgelse
2156863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2157a005d216Smrg$as_echo "$as_me: creating cache $cache_file" >&6;}
2158ff7e0accSmrg  >$cache_file
2159ff7e0accSmrgfi
2160ff7e0accSmrg
2161ff7e0accSmrg# Check that the precious variables saved in the cache have kept the same
2162ff7e0accSmrg# value.
2163ff7e0accSmrgac_cache_corrupted=false
2164ff7e0accSmrgfor ac_var in $ac_precious_vars; do
2165ff7e0accSmrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2166ff7e0accSmrg  eval ac_new_set=\$ac_env_${ac_var}_set
2167ff7e0accSmrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2168ff7e0accSmrg  eval ac_new_val=\$ac_env_${ac_var}_value
2169ff7e0accSmrg  case $ac_old_set,$ac_new_set in
2170ff7e0accSmrg    set,)
2171863f95b1Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2172a005d216Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2173ff7e0accSmrg      ac_cache_corrupted=: ;;
2174ff7e0accSmrg    ,set)
2175863f95b1Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2176a005d216Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2177ff7e0accSmrg      ac_cache_corrupted=: ;;
2178ff7e0accSmrg    ,);;
2179ff7e0accSmrg    *)
2180ff7e0accSmrg      if test "x$ac_old_val" != "x$ac_new_val"; then
2181a005d216Smrg	# differences in whitespace do not lead to failure.
2182a005d216Smrg	ac_old_val_w=`echo x $ac_old_val`
2183a005d216Smrg	ac_new_val_w=`echo x $ac_new_val`
2184a005d216Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2185863f95b1Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2186a005d216Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2187a005d216Smrg	  ac_cache_corrupted=:
2188a005d216Smrg	else
2189863f95b1Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2190a005d216Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2191a005d216Smrg	  eval $ac_var=\$ac_old_val
2192a005d216Smrg	fi
2193863f95b1Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2194a005d216Smrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2195863f95b1Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2196a005d216Smrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2197ff7e0accSmrg      fi;;
2198ff7e0accSmrg  esac
2199ff7e0accSmrg  # Pass precious variables to config.status.
2200ff7e0accSmrg  if test "$ac_new_set" = set; then
2201ff7e0accSmrg    case $ac_new_val in
2202a005d216Smrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2203ff7e0accSmrg    *) ac_arg=$ac_var=$ac_new_val ;;
2204ff7e0accSmrg    esac
2205ff7e0accSmrg    case " $ac_configure_args " in
2206ff7e0accSmrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2207863f95b1Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2208ff7e0accSmrg    esac
2209ff7e0accSmrg  fi
2210ff7e0accSmrgdone
2211ff7e0accSmrgif $ac_cache_corrupted; then
2212863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
221310998002Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2214863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2215a005d216Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2216863f95b1Smrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2217ff7e0accSmrgfi
2218863f95b1Smrg## -------------------- ##
2219863f95b1Smrg## Main body of script. ##
2220863f95b1Smrg## -------------------- ##
2221ff7e0accSmrg
2222ff7e0accSmrgac_ext=c
2223ff7e0accSmrgac_cpp='$CPP $CPPFLAGS'
2224ff7e0accSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2225ff7e0accSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2226ff7e0accSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2227ff7e0accSmrg
2228ff7e0accSmrg
222910998002Smrgam__api_version='1.11'
2230ff7e0accSmrg
2231ff7e0accSmrgac_aux_dir=
2232ff7e0accSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2233ff7e0accSmrg  if test -f "$ac_dir/install-sh"; then
2234ff7e0accSmrg    ac_aux_dir=$ac_dir
2235ff7e0accSmrg    ac_install_sh="$ac_aux_dir/install-sh -c"
2236ff7e0accSmrg    break
2237ff7e0accSmrg  elif test -f "$ac_dir/install.sh"; then
2238ff7e0accSmrg    ac_aux_dir=$ac_dir
2239ff7e0accSmrg    ac_install_sh="$ac_aux_dir/install.sh -c"
2240ff7e0accSmrg    break
2241ff7e0accSmrg  elif test -f "$ac_dir/shtool"; then
2242ff7e0accSmrg    ac_aux_dir=$ac_dir
2243ff7e0accSmrg    ac_install_sh="$ac_aux_dir/shtool install -c"
2244ff7e0accSmrg    break
2245ff7e0accSmrg  fi
2246ff7e0accSmrgdone
2247ff7e0accSmrgif test -z "$ac_aux_dir"; then
2248863f95b1Smrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2249ff7e0accSmrgfi
2250ff7e0accSmrg
2251ff7e0accSmrg# These three variables are undocumented and unsupported,
2252ff7e0accSmrg# and are intended to be withdrawn in a future Autoconf release.
2253ff7e0accSmrg# They can cause serious problems if a builder's source tree is in a directory
2254ff7e0accSmrg# whose full name contains unusual characters.
2255ff7e0accSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2256ff7e0accSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2257ff7e0accSmrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2258ff7e0accSmrg
2259ff7e0accSmrg
2260ff7e0accSmrg# Find a good install program.  We prefer a C program (faster),
2261ff7e0accSmrg# so one script is as good as another.  But avoid the broken or
2262ff7e0accSmrg# incompatible versions:
2263ff7e0accSmrg# SysV /etc/install, /usr/sbin/install
2264ff7e0accSmrg# SunOS /usr/etc/install
2265ff7e0accSmrg# IRIX /sbin/install
2266ff7e0accSmrg# AIX /bin/install
2267ff7e0accSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs
2268ff7e0accSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2269ff7e0accSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2270ff7e0accSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2271ff7e0accSmrg# OS/2's system install, which has a completely different semantic
2272ff7e0accSmrg# ./install, which can be erroneously created by make from ./install.sh.
2273a005d216Smrg# Reject install programs that cannot install multiple files.
2274863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2275a005d216Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
2276ff7e0accSmrgif test -z "$INSTALL"; then
2277863f95b1Smrgif ${ac_cv_path_install+:} false; then :
2278a005d216Smrg  $as_echo_n "(cached) " >&6
2279ff7e0accSmrgelse
2280ff7e0accSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281ff7e0accSmrgfor as_dir in $PATH
2282ff7e0accSmrgdo
2283ff7e0accSmrg  IFS=$as_save_IFS
2284ff7e0accSmrg  test -z "$as_dir" && as_dir=.
2285863f95b1Smrg    # Account for people who put trailing slashes in PATH elements.
2286863f95b1Smrgcase $as_dir/ in #((
2287863f95b1Smrg  ./ | .// | /[cC]/* | \
2288ff7e0accSmrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2289863f95b1Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2290ff7e0accSmrg  /usr/ucb/* ) ;;
2291ff7e0accSmrg  *)
2292ff7e0accSmrg    # OSF1 and SCO ODT 3.0 have their own names for install.
2293ff7e0accSmrg    # Don't use installbsd from OSF since it installs stuff as root
2294ff7e0accSmrg    # by default.
2295ff7e0accSmrg    for ac_prog in ginstall scoinst install; do
2296ff7e0accSmrg      for ac_exec_ext in '' $ac_executable_extensions; do
2297ff7e0accSmrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2298ff7e0accSmrg	  if test $ac_prog = install &&
2299ff7e0accSmrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2300ff7e0accSmrg	    # AIX install.  It has an incompatible calling convention.
2301ff7e0accSmrg	    :
2302ff7e0accSmrg	  elif test $ac_prog = install &&
2303ff7e0accSmrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2304ff7e0accSmrg	    # program-specific install script used by HP pwplus--don't use.
2305ff7e0accSmrg	    :
2306ff7e0accSmrg	  else
2307a005d216Smrg	    rm -rf conftest.one conftest.two conftest.dir
2308a005d216Smrg	    echo one > conftest.one
2309a005d216Smrg	    echo two > conftest.two
2310a005d216Smrg	    mkdir conftest.dir
2311a005d216Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2312a005d216Smrg	      test -s conftest.one && test -s conftest.two &&
2313a005d216Smrg	      test -s conftest.dir/conftest.one &&
2314a005d216Smrg	      test -s conftest.dir/conftest.two
2315a005d216Smrg	    then
2316a005d216Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2317a005d216Smrg	      break 3
2318a005d216Smrg	    fi
2319ff7e0accSmrg	  fi
2320ff7e0accSmrg	fi
2321ff7e0accSmrg      done
2322ff7e0accSmrg    done
2323ff7e0accSmrg    ;;
2324ff7e0accSmrgesac
2325a005d216Smrg
2326863f95b1Smrg  done
2327ff7e0accSmrgIFS=$as_save_IFS
2328ff7e0accSmrg
2329a005d216Smrgrm -rf conftest.one conftest.two conftest.dir
2330ff7e0accSmrg
2331ff7e0accSmrgfi
2332ff7e0accSmrg  if test "${ac_cv_path_install+set}" = set; then
2333ff7e0accSmrg    INSTALL=$ac_cv_path_install
2334ff7e0accSmrg  else
2335ff7e0accSmrg    # As a last resort, use the slow shell script.  Don't cache a
2336ff7e0accSmrg    # value for INSTALL within a source directory, because that will
2337ff7e0accSmrg    # break other packages using the cache if that directory is
2338ff7e0accSmrg    # removed, or if the value is a relative name.
2339ff7e0accSmrg    INSTALL=$ac_install_sh
2340ff7e0accSmrg  fi
2341ff7e0accSmrgfi
2342863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2343a005d216Smrg$as_echo "$INSTALL" >&6; }
2344ff7e0accSmrg
2345ff7e0accSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2346ff7e0accSmrg# It thinks the first close brace ends the variable substitution.
2347ff7e0accSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2348ff7e0accSmrg
2349ff7e0accSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2350ff7e0accSmrg
2351ff7e0accSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2352ff7e0accSmrg
2353863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2354a005d216Smrg$as_echo_n "checking whether build environment is sane... " >&6; }
2355ff7e0accSmrg# Just in case
2356ff7e0accSmrgsleep 1
2357ff7e0accSmrgecho timestamp > conftest.file
235810998002Smrg# Reject unsafe characters in $srcdir or the absolute working directory
235910998002Smrg# name.  Accept space and tab only in the latter.
236010998002Smrgam_lf='
236110998002Smrg'
236210998002Smrgcase `pwd` in
236310998002Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
2364863f95b1Smrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
236510998002Smrgesac
236610998002Smrgcase $srcdir in
236710998002Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2368863f95b1Smrg    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
236910998002Smrgesac
237010998002Smrg
2371ff7e0accSmrg# Do `set' in a subshell so we don't clobber the current shell's
2372ff7e0accSmrg# arguments.  Must try -L first in case configure is actually a
2373ff7e0accSmrg# symlink; some systems play weird games with the mod time of symlinks
2374ff7e0accSmrg# (eg FreeBSD returns the mod time of the symlink's containing
2375ff7e0accSmrg# directory).
2376ff7e0accSmrgif (
237710998002Smrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2378ff7e0accSmrg   if test "$*" = "X"; then
2379ff7e0accSmrg      # -L didn't work.
238010998002Smrg      set X `ls -t "$srcdir/configure" conftest.file`
2381ff7e0accSmrg   fi
2382ff7e0accSmrg   rm -f conftest.file
2383ff7e0accSmrg   if test "$*" != "X $srcdir/configure conftest.file" \
2384ff7e0accSmrg      && test "$*" != "X conftest.file $srcdir/configure"; then
2385ff7e0accSmrg
2386ff7e0accSmrg      # If neither matched, then we have a broken ls.  This can happen
2387ff7e0accSmrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
2388ff7e0accSmrg      # broken ls alias from the environment.  This has actually
2389ff7e0accSmrg      # happened.  Such a system could not be considered "sane".
2390863f95b1Smrg      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2391863f95b1Smrgalias in your environment" "$LINENO" 5
2392ff7e0accSmrg   fi
2393ff7e0accSmrg
2394ff7e0accSmrg   test "$2" = conftest.file
2395ff7e0accSmrg   )
2396ff7e0accSmrgthen
2397ff7e0accSmrg   # Ok.
2398ff7e0accSmrg   :
2399ff7e0accSmrgelse
2400863f95b1Smrg   as_fn_error $? "newly created file is older than distributed files!
2401863f95b1SmrgCheck your system clock" "$LINENO" 5
2402ff7e0accSmrgfi
2403863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2404a005d216Smrg$as_echo "yes" >&6; }
2405ff7e0accSmrgtest "$program_prefix" != NONE &&
2406ff7e0accSmrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2407ff7e0accSmrg# Use a double $ so make ignores it.
2408ff7e0accSmrgtest "$program_suffix" != NONE &&
2409ff7e0accSmrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2410a005d216Smrg# Double any \ or $.
2411ff7e0accSmrg# By default was `s,x,x', remove it if useless.
2412a005d216Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2413a005d216Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2414ff7e0accSmrg
2415ff7e0accSmrg# expand $ac_aux_dir to an absolute path
2416ff7e0accSmrgam_aux_dir=`cd $ac_aux_dir && pwd`
2417ff7e0accSmrg
241810998002Smrgif test x"${MISSING+set}" != xset; then
241910998002Smrg  case $am_aux_dir in
242010998002Smrg  *\ * | *\	*)
242110998002Smrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
242210998002Smrg  *)
242310998002Smrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
242410998002Smrg  esac
242510998002Smrgfi
2426ff7e0accSmrg# Use eval to expand $SHELL
2427ff7e0accSmrgif eval "$MISSING --run true"; then
2428ff7e0accSmrg  am_missing_run="$MISSING --run "
2429ff7e0accSmrgelse
2430ff7e0accSmrg  am_missing_run=
2431863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2432a005d216Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2433ff7e0accSmrgfi
2434ff7e0accSmrg
243510998002Smrgif test x"${install_sh}" != xset; then
243610998002Smrg  case $am_aux_dir in
243710998002Smrg  *\ * | *\	*)
243810998002Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
243910998002Smrg  *)
244010998002Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
244110998002Smrg  esac
244210998002Smrgfi
244310998002Smrg
244410998002Smrg# Installed binaries are usually stripped using `strip' when the user
244510998002Smrg# run `make install-strip'.  However `strip' might not be the right
244610998002Smrg# tool to use in cross-compilation environments, therefore Automake
244710998002Smrg# will honor the `STRIP' environment variable to overrule this program.
244810998002Smrgif test "$cross_compiling" != no; then
244910998002Smrg  if test -n "$ac_tool_prefix"; then
245010998002Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
245110998002Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
2452863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
245310998002Smrg$as_echo_n "checking for $ac_word... " >&6; }
2454863f95b1Smrgif ${ac_cv_prog_STRIP+:} false; then :
2455a005d216Smrg  $as_echo_n "(cached) " >&6
2456ff7e0accSmrgelse
245710998002Smrg  if test -n "$STRIP"; then
245810998002Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
245910998002Smrgelse
246010998002Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
246110998002Smrgfor as_dir in $PATH
2462ff7e0accSmrgdo
2463ff7e0accSmrg  IFS=$as_save_IFS
2464ff7e0accSmrg  test -z "$as_dir" && as_dir=.
2465863f95b1Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
246610998002Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
246710998002Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2468863f95b1Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
246910998002Smrg    break 2
247010998002Smrg  fi
247110998002Smrgdone
2472863f95b1Smrg  done
247310998002SmrgIFS=$as_save_IFS
247410998002Smrg
247510998002Smrgfi
247610998002Smrgfi
247710998002SmrgSTRIP=$ac_cv_prog_STRIP
247810998002Smrgif test -n "$STRIP"; then
2479863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
248010998002Smrg$as_echo "$STRIP" >&6; }
248110998002Smrgelse
2482863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
248310998002Smrg$as_echo "no" >&6; }
248410998002Smrgfi
248510998002Smrg
248610998002Smrg
248710998002Smrgfi
248810998002Smrgif test -z "$ac_cv_prog_STRIP"; then
248910998002Smrg  ac_ct_STRIP=$STRIP
249010998002Smrg  # Extract the first word of "strip", so it can be a program name with args.
249110998002Smrgset dummy strip; ac_word=$2
2492863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
249310998002Smrg$as_echo_n "checking for $ac_word... " >&6; }
2494863f95b1Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
249510998002Smrg  $as_echo_n "(cached) " >&6
249610998002Smrgelse
249710998002Smrg  if test -n "$ac_ct_STRIP"; then
249810998002Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
249910998002Smrgelse
250010998002Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
250110998002Smrgfor as_dir in $PATH
250210998002Smrgdo
250310998002Smrg  IFS=$as_save_IFS
250410998002Smrg  test -z "$as_dir" && as_dir=.
2505863f95b1Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
250610998002Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
250710998002Smrg    ac_cv_prog_ac_ct_STRIP="strip"
2508863f95b1Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
250910998002Smrg    break 2
251010998002Smrg  fi
251110998002Smrgdone
2512863f95b1Smrg  done
251310998002SmrgIFS=$as_save_IFS
251410998002Smrg
251510998002Smrgfi
251610998002Smrgfi
251710998002Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
251810998002Smrgif test -n "$ac_ct_STRIP"; then
2519863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
252010998002Smrg$as_echo "$ac_ct_STRIP" >&6; }
252110998002Smrgelse
2522863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
252310998002Smrg$as_echo "no" >&6; }
252410998002Smrgfi
252510998002Smrg
252610998002Smrg  if test "x$ac_ct_STRIP" = x; then
252710998002Smrg    STRIP=":"
252810998002Smrg  else
252910998002Smrg    case $cross_compiling:$ac_tool_warned in
253010998002Smrgyes:)
2531863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
253210998002Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
253310998002Smrgac_tool_warned=yes ;;
253410998002Smrgesac
253510998002Smrg    STRIP=$ac_ct_STRIP
253610998002Smrg  fi
253710998002Smrgelse
253810998002Smrg  STRIP="$ac_cv_prog_STRIP"
253910998002Smrgfi
254010998002Smrg
254110998002Smrgfi
254210998002SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
254310998002Smrg
2544863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
254510998002Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
254610998002Smrgif test -z "$MKDIR_P"; then
2547863f95b1Smrg  if ${ac_cv_path_mkdir+:} false; then :
254810998002Smrg  $as_echo_n "(cached) " >&6
254910998002Smrgelse
255010998002Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
255110998002Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
255210998002Smrgdo
255310998002Smrg  IFS=$as_save_IFS
255410998002Smrg  test -z "$as_dir" && as_dir=.
2555863f95b1Smrg    for ac_prog in mkdir gmkdir; do
255610998002Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
255710998002Smrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
255810998002Smrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
255910998002Smrg	     'mkdir (GNU coreutils) '* | \
256010998002Smrg	     'mkdir (coreutils) '* | \
256110998002Smrg	     'mkdir (fileutils) '4.1*)
256210998002Smrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
256310998002Smrg	       break 3;;
256410998002Smrg	   esac
2565ff7e0accSmrg	 done
2566ff7e0accSmrg       done
2567863f95b1Smrg  done
2568ff7e0accSmrgIFS=$as_save_IFS
2569ff7e0accSmrg
2570ff7e0accSmrgfi
2571ff7e0accSmrg
2572863f95b1Smrg  test -d ./--version && rmdir ./--version
2573ff7e0accSmrg  if test "${ac_cv_path_mkdir+set}" = set; then
2574ff7e0accSmrg    MKDIR_P="$ac_cv_path_mkdir -p"
2575ff7e0accSmrg  else
2576ff7e0accSmrg    # As a last resort, use the slow shell script.  Don't cache a
2577ff7e0accSmrg    # value for MKDIR_P within a source directory, because that will
2578ff7e0accSmrg    # break other packages using the cache if that directory is
2579ff7e0accSmrg    # removed, or if the value is a relative name.
2580ff7e0accSmrg    MKDIR_P="$ac_install_sh -d"
2581ff7e0accSmrg  fi
2582ff7e0accSmrgfi
2583863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2584a005d216Smrg$as_echo "$MKDIR_P" >&6; }
2585ff7e0accSmrg
2586ff7e0accSmrgmkdir_p="$MKDIR_P"
2587ff7e0accSmrgcase $mkdir_p in
2588ff7e0accSmrg  [\\/$]* | ?:[\\/]*) ;;
2589ff7e0accSmrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2590ff7e0accSmrgesac
2591ff7e0accSmrg
2592ff7e0accSmrgfor ac_prog in gawk mawk nawk awk
2593ff7e0accSmrgdo
2594ff7e0accSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
2595ff7e0accSmrgset dummy $ac_prog; ac_word=$2
2596863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2597a005d216Smrg$as_echo_n "checking for $ac_word... " >&6; }
2598863f95b1Smrgif ${ac_cv_prog_AWK+:} false; then :
2599a005d216Smrg  $as_echo_n "(cached) " >&6
2600ff7e0accSmrgelse
2601ff7e0accSmrg  if test -n "$AWK"; then
2602ff7e0accSmrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2603ff7e0accSmrgelse
2604ff7e0accSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605ff7e0accSmrgfor as_dir in $PATH
2606ff7e0accSmrgdo
2607ff7e0accSmrg  IFS=$as_save_IFS
2608ff7e0accSmrg  test -z "$as_dir" && as_dir=.
2609863f95b1Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2610ff7e0accSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2611ff7e0accSmrg    ac_cv_prog_AWK="$ac_prog"
2612863f95b1Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2613ff7e0accSmrg    break 2
2614ff7e0accSmrg  fi
2615ff7e0accSmrgdone
2616863f95b1Smrg  done
2617ff7e0accSmrgIFS=$as_save_IFS
2618ff7e0accSmrg
2619ff7e0accSmrgfi
2620ff7e0accSmrgfi
2621ff7e0accSmrgAWK=$ac_cv_prog_AWK
2622ff7e0accSmrgif test -n "$AWK"; then
2623863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2624a005d216Smrg$as_echo "$AWK" >&6; }
2625ff7e0accSmrgelse
2626863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2627a005d216Smrg$as_echo "no" >&6; }
2628ff7e0accSmrgfi
2629ff7e0accSmrg
2630ff7e0accSmrg
2631ff7e0accSmrg  test -n "$AWK" && break
2632ff7e0accSmrgdone
2633ff7e0accSmrg
2634863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2635a005d216Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2636a005d216Smrgset x ${MAKE-make}
2637a005d216Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2638863f95b1Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2639a005d216Smrg  $as_echo_n "(cached) " >&6
2640ff7e0accSmrgelse
2641ff7e0accSmrg  cat >conftest.make <<\_ACEOF
2642ff7e0accSmrgSHELL = /bin/sh
2643ff7e0accSmrgall:
2644ff7e0accSmrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
2645ff7e0accSmrg_ACEOF
2646863f95b1Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2647ff7e0accSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
2648ff7e0accSmrg  *@@@%%%=?*=@@@%%%*)
2649ff7e0accSmrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
2650ff7e0accSmrg  *)
2651ff7e0accSmrg    eval ac_cv_prog_make_${ac_make}_set=no;;
2652ff7e0accSmrgesac
2653ff7e0accSmrgrm -f conftest.make
2654ff7e0accSmrgfi
2655ff7e0accSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2656863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2657a005d216Smrg$as_echo "yes" >&6; }
2658ff7e0accSmrg  SET_MAKE=
2659ff7e0accSmrgelse
2660863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2661a005d216Smrg$as_echo "no" >&6; }
2662ff7e0accSmrg  SET_MAKE="MAKE=${MAKE-make}"
2663ff7e0accSmrgfi
2664ff7e0accSmrg
2665ff7e0accSmrgrm -rf .tst 2>/dev/null
2666ff7e0accSmrgmkdir .tst 2>/dev/null
2667ff7e0accSmrgif test -d .tst; then
2668ff7e0accSmrg  am__leading_dot=.
2669ff7e0accSmrgelse
2670ff7e0accSmrg  am__leading_dot=_
2671ff7e0accSmrgfi
2672ff7e0accSmrgrmdir .tst 2>/dev/null
2673ff7e0accSmrg
2674ff7e0accSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
2675ff7e0accSmrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2676ff7e0accSmrg  # is not polluted with repeated "-I."
2677ff7e0accSmrg  am__isrc=' -I$(srcdir)'
2678ff7e0accSmrg  # test to see if srcdir already configured
2679ff7e0accSmrg  if test -f $srcdir/config.status; then
2680863f95b1Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2681ff7e0accSmrg  fi
2682ff7e0accSmrgfi
2683ff7e0accSmrg
2684ff7e0accSmrg# test whether we have cygpath
2685ff7e0accSmrgif test -z "$CYGPATH_W"; then
2686ff7e0accSmrg  if (cygpath --version) >/dev/null 2>/dev/null; then
2687ff7e0accSmrg    CYGPATH_W='cygpath -w'
2688ff7e0accSmrg  else
2689ff7e0accSmrg    CYGPATH_W=echo
2690ff7e0accSmrg  fi
2691ff7e0accSmrgfi
2692ff7e0accSmrg
2693ff7e0accSmrg
2694ff7e0accSmrg# Define the identity of the package.
2695ff7e0accSmrg PACKAGE='xwininfo'
2696863f95b1Smrg VERSION='1.1.1'
2697ff7e0accSmrg
2698ff7e0accSmrg
2699ff7e0accSmrgcat >>confdefs.h <<_ACEOF
2700ff7e0accSmrg#define PACKAGE "$PACKAGE"
2701ff7e0accSmrg_ACEOF
2702ff7e0accSmrg
2703ff7e0accSmrg
2704ff7e0accSmrgcat >>confdefs.h <<_ACEOF
2705ff7e0accSmrg#define VERSION "$VERSION"
2706ff7e0accSmrg_ACEOF
2707ff7e0accSmrg
2708ff7e0accSmrg# Some tools Automake needs.
2709ff7e0accSmrg
2710ff7e0accSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2711ff7e0accSmrg
2712ff7e0accSmrg
2713ff7e0accSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2714ff7e0accSmrg
2715ff7e0accSmrg
2716ff7e0accSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2717ff7e0accSmrg
2718ff7e0accSmrg
2719ff7e0accSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2720ff7e0accSmrg
2721ff7e0accSmrg
2722ff7e0accSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2723ff7e0accSmrg
2724ff7e0accSmrg# We need awk for the "check" target.  The system "awk" is bad on
2725ff7e0accSmrg# some platforms.
2726ff7e0accSmrg# Always define AMTAR for backward compatibility.
2727ff7e0accSmrg
2728ff7e0accSmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
2729ff7e0accSmrg
2730ff7e0accSmrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2731ff7e0accSmrg
2732ff7e0accSmrg
2733ff7e0accSmrg
2734ff7e0accSmrg
2735ff7e0accSmrg
273610998002Smrg
2737863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2738a005d216Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2739ff7e0accSmrg    # Check whether --enable-maintainer-mode was given.
2740863f95b1Smrgif test "${enable_maintainer_mode+set}" = set; then :
2741ff7e0accSmrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2742ff7e0accSmrgelse
2743ff7e0accSmrg  USE_MAINTAINER_MODE=no
2744ff7e0accSmrgfi
2745ff7e0accSmrg
2746863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2747a005d216Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
2748ff7e0accSmrg   if test $USE_MAINTAINER_MODE = yes; then
2749ff7e0accSmrg  MAINTAINER_MODE_TRUE=
2750ff7e0accSmrg  MAINTAINER_MODE_FALSE='#'
2751ff7e0accSmrgelse
2752ff7e0accSmrg  MAINTAINER_MODE_TRUE='#'
2753ff7e0accSmrg  MAINTAINER_MODE_FALSE=
2754ff7e0accSmrgfi
2755ff7e0accSmrg
2756ff7e0accSmrg  MAINT=$MAINTAINER_MODE_TRUE
2757ff7e0accSmrg
2758ff7e0accSmrg
2759ff7e0accSmrg
2760863f95b1Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
276110998002Smrg
276210998002Smrg
276310998002Smrg
276410998002Smrg
276510998002Smrg
276610998002Smrg
276710998002Smrg
276810998002Smrg
276910998002Smrg
277010998002Smrg
277110998002Smrg
277210998002Smrg
2773ff7e0accSmrgac_config_headers="$ac_config_headers config.h"
2774ff7e0accSmrg
2775ff7e0accSmrg
2776863f95b1SmrgDEPDIR="${am__leading_dot}deps"
2777863f95b1Smrg
2778863f95b1Smrgac_config_commands="$ac_config_commands depfiles"
2779863f95b1Smrg
2780863f95b1Smrg
2781863f95b1Smrgam_make=${MAKE-make}
2782863f95b1Smrgcat > confinc << 'END'
2783863f95b1Smrgam__doit:
2784863f95b1Smrg	@echo this is the am__doit target
2785863f95b1Smrg.PHONY: am__doit
2786863f95b1SmrgEND
2787863f95b1Smrg# If we don't find an include directive, just comment out the code.
2788863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2789863f95b1Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
2790863f95b1Smrgam__include="#"
2791863f95b1Smrgam__quote=
2792863f95b1Smrg_am_result=none
2793863f95b1Smrg# First try GNU make style include.
2794863f95b1Smrgecho "include confinc" > confmf
2795863f95b1Smrg# Ignore all kinds of additional output from `make'.
2796863f95b1Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
2797863f95b1Smrg*the\ am__doit\ target*)
2798863f95b1Smrg  am__include=include
2799863f95b1Smrg  am__quote=
2800863f95b1Smrg  _am_result=GNU
2801863f95b1Smrg  ;;
2802863f95b1Smrgesac
2803863f95b1Smrg# Now try BSD make style include.
2804863f95b1Smrgif test "$am__include" = "#"; then
2805863f95b1Smrg   echo '.include "confinc"' > confmf
2806863f95b1Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
2807863f95b1Smrg   *the\ am__doit\ target*)
2808863f95b1Smrg     am__include=.include
2809863f95b1Smrg     am__quote="\""
2810863f95b1Smrg     _am_result=BSD
2811863f95b1Smrg     ;;
2812863f95b1Smrg   esac
2813863f95b1Smrgfi
2814863f95b1Smrg
2815863f95b1Smrg
2816863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2817863f95b1Smrg$as_echo "$_am_result" >&6; }
2818863f95b1Smrgrm -f confinc confmf
2819863f95b1Smrg
2820863f95b1Smrg# Check whether --enable-dependency-tracking was given.
2821863f95b1Smrgif test "${enable_dependency_tracking+set}" = set; then :
2822863f95b1Smrg  enableval=$enable_dependency_tracking;
2823863f95b1Smrgfi
2824863f95b1Smrg
2825863f95b1Smrgif test "x$enable_dependency_tracking" != xno; then
2826863f95b1Smrg  am_depcomp="$ac_aux_dir/depcomp"
2827863f95b1Smrg  AMDEPBACKSLASH='\'
2828863f95b1Smrgfi
2829863f95b1Smrg if test "x$enable_dependency_tracking" != xno; then
2830863f95b1Smrg  AMDEP_TRUE=
2831863f95b1Smrg  AMDEP_FALSE='#'
2832863f95b1Smrgelse
2833863f95b1Smrg  AMDEP_TRUE='#'
2834863f95b1Smrg  AMDEP_FALSE=
2835863f95b1Smrgfi
2836863f95b1Smrg
2837863f95b1Smrg
2838ff7e0accSmrgac_ext=c
2839ff7e0accSmrgac_cpp='$CPP $CPPFLAGS'
2840ff7e0accSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2841ff7e0accSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2842ff7e0accSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2843ff7e0accSmrgif test -n "$ac_tool_prefix"; then
2844ff7e0accSmrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2845ff7e0accSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
2846863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2847a005d216Smrg$as_echo_n "checking for $ac_word... " >&6; }
2848863f95b1Smrgif ${ac_cv_prog_CC+:} false; then :
2849a005d216Smrg  $as_echo_n "(cached) " >&6
2850ff7e0accSmrgelse
2851ff7e0accSmrg  if test -n "$CC"; then
2852ff7e0accSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2853ff7e0accSmrgelse
2854ff7e0accSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855ff7e0accSmrgfor as_dir in $PATH
2856ff7e0accSmrgdo
2857ff7e0accSmrg  IFS=$as_save_IFS
2858ff7e0accSmrg  test -z "$as_dir" && as_dir=.
2859863f95b1Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2860ff7e0accSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2861ff7e0accSmrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2862863f95b1Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2863ff7e0accSmrg    break 2
2864ff7e0accSmrg  fi
2865ff7e0accSmrgdone
2866863f95b1Smrg  done
2867ff7e0accSmrgIFS=$as_save_IFS
2868ff7e0accSmrg
2869ff7e0accSmrgfi
2870ff7e0accSmrgfi
2871ff7e0accSmrgCC=$ac_cv_prog_CC
2872ff7e0accSmrgif test -n "$CC"; then
2873863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2874a005d216Smrg$as_echo "$CC" >&6; }
2875ff7e0accSmrgelse
2876863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2877a005d216Smrg$as_echo "no" >&6; }
2878ff7e0accSmrgfi
2879ff7e0accSmrg
2880ff7e0accSmrg
2881ff7e0accSmrgfi
2882ff7e0accSmrgif test -z "$ac_cv_prog_CC"; then
2883ff7e0accSmrg  ac_ct_CC=$CC
2884ff7e0accSmrg  # Extract the first word of "gcc", so it can be a program name with args.
2885ff7e0accSmrgset dummy gcc; ac_word=$2
2886863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887a005d216Smrg$as_echo_n "checking for $ac_word... " >&6; }
2888863f95b1Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
2889a005d216Smrg  $as_echo_n "(cached) " >&6
2890ff7e0accSmrgelse
2891ff7e0accSmrg  if test -n "$ac_ct_CC"; then
2892ff7e0accSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2893ff7e0accSmrgelse
2894ff7e0accSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895ff7e0accSmrgfor as_dir in $PATH
2896ff7e0accSmrgdo
2897ff7e0accSmrg  IFS=$as_save_IFS
2898ff7e0accSmrg  test -z "$as_dir" && as_dir=.
2899863f95b1Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2900ff7e0accSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2901ff7e0accSmrg    ac_cv_prog_ac_ct_CC="gcc"
2902863f95b1Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2903ff7e0accSmrg    break 2
2904ff7e0accSmrg  fi
2905ff7e0accSmrgdone
2906863f95b1Smrg  done
2907ff7e0accSmrgIFS=$as_save_IFS
2908ff7e0accSmrg
2909ff7e0accSmrgfi
2910ff7e0accSmrgfi
2911ff7e0accSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2912ff7e0accSmrgif test -n "$ac_ct_CC"; then
2913863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2914a005d216Smrg$as_echo "$ac_ct_CC" >&6; }
2915ff7e0accSmrgelse
2916863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917a005d216Smrg$as_echo "no" >&6; }
2918ff7e0accSmrgfi
2919ff7e0accSmrg
2920ff7e0accSmrg  if test "x$ac_ct_CC" = x; then
2921ff7e0accSmrg    CC=""
2922ff7e0accSmrg  else
2923ff7e0accSmrg    case $cross_compiling:$ac_tool_warned in
2924ff7e0accSmrgyes:)
2925863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
292610998002Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2927ff7e0accSmrgac_tool_warned=yes ;;
2928ff7e0accSmrgesac
2929ff7e0accSmrg    CC=$ac_ct_CC
2930ff7e0accSmrg  fi
2931ff7e0accSmrgelse
2932ff7e0accSmrg  CC="$ac_cv_prog_CC"
2933ff7e0accSmrgfi
2934ff7e0accSmrg
2935ff7e0accSmrgif test -z "$CC"; then
2936ff7e0accSmrg          if test -n "$ac_tool_prefix"; then
2937ff7e0accSmrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2938ff7e0accSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2
2939863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940a005d216Smrg$as_echo_n "checking for $ac_word... " >&6; }
2941863f95b1Smrgif ${ac_cv_prog_CC+:} false; then :
2942a005d216Smrg  $as_echo_n "(cached) " >&6
2943ff7e0accSmrgelse
2944ff7e0accSmrg  if test -n "$CC"; then
2945ff7e0accSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2946ff7e0accSmrgelse
2947ff7e0accSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948ff7e0accSmrgfor as_dir in $PATH
2949ff7e0accSmrgdo
2950ff7e0accSmrg  IFS=$as_save_IFS
2951ff7e0accSmrg  test -z "$as_dir" && as_dir=.
2952863f95b1Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2953ff7e0accSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2954ff7e0accSmrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
2955863f95b1Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956ff7e0accSmrg    break 2
2957ff7e0accSmrg  fi
2958ff7e0accSmrgdone
2959863f95b1Smrg  done
2960ff7e0accSmrgIFS=$as_save_IFS
2961ff7e0accSmrg
2962ff7e0accSmrgfi
2963ff7e0accSmrgfi
2964ff7e0accSmrgCC=$ac_cv_prog_CC
2965ff7e0accSmrgif test -n "$CC"; then
2966863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2967a005d216Smrg$as_echo "$CC" >&6; }
2968ff7e0accSmrgelse
2969863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970a005d216Smrg$as_echo "no" >&6; }
2971ff7e0accSmrgfi
2972ff7e0accSmrg
2973ff7e0accSmrg
2974ff7e0accSmrg  fi
2975ff7e0accSmrgfi
2976ff7e0accSmrgif test -z "$CC"; then
2977ff7e0accSmrg  # Extract the first word of "cc", so it can be a program name with args.
2978ff7e0accSmrgset dummy cc; ac_word=$2
2979863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980a005d216Smrg$as_echo_n "checking for $ac_word... " >&6; }
2981863f95b1Smrgif ${ac_cv_prog_CC+:} false; then :
2982a005d216Smrg  $as_echo_n "(cached) " >&6
2983ff7e0accSmrgelse
2984ff7e0accSmrg  if test -n "$CC"; then
2985ff7e0accSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2986ff7e0accSmrgelse
2987ff7e0accSmrg  ac_prog_rejected=no
2988ff7e0accSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989ff7e0accSmrgfor as_dir in $PATH
2990ff7e0accSmrgdo
2991ff7e0accSmrg  IFS=$as_save_IFS
2992ff7e0accSmrg  test -z "$as_dir" && as_dir=.
2993863f95b1Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2994ff7e0accSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2995ff7e0accSmrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2996ff7e0accSmrg       ac_prog_rejected=yes
2997ff7e0accSmrg       continue
2998ff7e0accSmrg     fi
2999ff7e0accSmrg    ac_cv_prog_CC="cc"
3000863f95b1Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3001ff7e0accSmrg    break 2
3002ff7e0accSmrg  fi
3003ff7e0accSmrgdone
3004863f95b1Smrg  done
3005ff7e0accSmrgIFS=$as_save_IFS
3006ff7e0accSmrg
3007ff7e0accSmrgif test $ac_prog_rejected = yes; then
3008ff7e0accSmrg  # We found a bogon in the path, so make sure we never use it.
3009ff7e0accSmrg  set dummy $ac_cv_prog_CC
3010ff7e0accSmrg  shift
3011ff7e0accSmrg  if test $# != 0; then
3012ff7e0accSmrg    # We chose a different compiler from the bogus one.
3013ff7e0accSmrg    # However, it has the same basename, so the bogon will be chosen
3014ff7e0accSmrg    # first if we set CC to just the basename; use the full file name.
3015ff7e0accSmrg    shift
3016ff7e0accSmrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3017ff7e0accSmrg  fi
3018ff7e0accSmrgfi
3019ff7e0accSmrgfi
3020ff7e0accSmrgfi
3021ff7e0accSmrgCC=$ac_cv_prog_CC
3022ff7e0accSmrgif test -n "$CC"; then
3023863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3024a005d216Smrg$as_echo "$CC" >&6; }
3025ff7e0accSmrgelse
3026863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027a005d216Smrg$as_echo "no" >&6; }
3028ff7e0accSmrgfi
3029ff7e0accSmrg
3030ff7e0accSmrg
3031ff7e0accSmrgfi
3032ff7e0accSmrgif test -z "$CC"; then
3033ff7e0accSmrg  if test -n "$ac_tool_prefix"; then
3034ff7e0accSmrg  for ac_prog in cl.exe
3035ff7e0accSmrg  do
3036ff7e0accSmrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3037ff7e0accSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
3038863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039a005d216Smrg$as_echo_n "checking for $ac_word... " >&6; }
3040863f95b1Smrgif ${ac_cv_prog_CC+:} false; then :
3041a005d216Smrg  $as_echo_n "(cached) " >&6
3042ff7e0accSmrgelse
3043ff7e0accSmrg  if test -n "$CC"; then
3044ff7e0accSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3045ff7e0accSmrgelse
3046ff7e0accSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047ff7e0accSmrgfor as_dir in $PATH
3048ff7e0accSmrgdo
3049ff7e0accSmrg  IFS=$as_save_IFS
3050ff7e0accSmrg  test -z "$as_dir" && as_dir=.
3051863f95b1Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3052ff7e0accSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3053ff7e0accSmrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3054863f95b1Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3055ff7e0accSmrg    break 2
3056ff7e0accSmrg  fi
3057ff7e0accSmrgdone
3058863f95b1Smrg  done
3059ff7e0accSmrgIFS=$as_save_IFS
3060ff7e0accSmrg
3061ff7e0accSmrgfi
3062ff7e0accSmrgfi
3063ff7e0accSmrgCC=$ac_cv_prog_CC
3064ff7e0accSmrgif test -n "$CC"; then
3065863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3066a005d216Smrg$as_echo "$CC" >&6; }
3067ff7e0accSmrgelse
3068863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069a005d216Smrg$as_echo "no" >&6; }
3070ff7e0accSmrgfi
3071ff7e0accSmrg
3072ff7e0accSmrg
3073ff7e0accSmrg    test -n "$CC" && break
3074ff7e0accSmrg  done
3075ff7e0accSmrgfi
3076ff7e0accSmrgif test -z "$CC"; then
3077ff7e0accSmrg  ac_ct_CC=$CC
3078ff7e0accSmrg  for ac_prog in cl.exe
3079ff7e0accSmrgdo
3080ff7e0accSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
3081ff7e0accSmrgset dummy $ac_prog; ac_word=$2
3082863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083a005d216Smrg$as_echo_n "checking for $ac_word... " >&6; }
3084863f95b1Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
3085a005d216Smrg  $as_echo_n "(cached) " >&6
3086ff7e0accSmrgelse
3087ff7e0accSmrg  if test -n "$ac_ct_CC"; then
3088ff7e0accSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3089ff7e0accSmrgelse
3090ff7e0accSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091ff7e0accSmrgfor as_dir in $PATH
3092ff7e0accSmrgdo
3093ff7e0accSmrg  IFS=$as_save_IFS
3094ff7e0accSmrg  test -z "$as_dir" && as_dir=.
3095863f95b1Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3096ff7e0accSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3097ff7e0accSmrg    ac_cv_prog_ac_ct_CC="$ac_prog"
3098863f95b1Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099ff7e0accSmrg    break 2
3100ff7e0accSmrg  fi
3101ff7e0accSmrgdone
3102863f95b1Smrg  done
3103ff7e0accSmrgIFS=$as_save_IFS
3104ff7e0accSmrg
3105ff7e0accSmrgfi
3106ff7e0accSmrgfi
3107ff7e0accSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3108ff7e0accSmrgif test -n "$ac_ct_CC"; then
3109863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3110a005d216Smrg$as_echo "$ac_ct_CC" >&6; }
3111ff7e0accSmrgelse
3112863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113a005d216Smrg$as_echo "no" >&6; }
3114ff7e0accSmrgfi
3115ff7e0accSmrg
3116ff7e0accSmrg
3117ff7e0accSmrg  test -n "$ac_ct_CC" && break
3118ff7e0accSmrgdone
3119ff7e0accSmrg
3120ff7e0accSmrg  if test "x$ac_ct_CC" = x; then
3121ff7e0accSmrg    CC=""
3122ff7e0accSmrg  else
3123ff7e0accSmrg    case $cross_compiling:$ac_tool_warned in
3124ff7e0accSmrgyes:)
3125863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
312610998002Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3127ff7e0accSmrgac_tool_warned=yes ;;
3128ff7e0accSmrgesac
3129ff7e0accSmrg    CC=$ac_ct_CC
3130ff7e0accSmrg  fi
3131ff7e0accSmrgfi
3132ff7e0accSmrg
3133ff7e0accSmrgfi
3134ff7e0accSmrg
3135ff7e0accSmrg
3136863f95b1Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
313710998002Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3138863f95b1Smrgas_fn_error $? "no acceptable C compiler found in \$PATH
3139863f95b1SmrgSee \`config.log' for more details" "$LINENO" 5; }
3140ff7e0accSmrg
3141ff7e0accSmrg# Provide some information about the compiler.
3142863f95b1Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3143a005d216Smrgset X $ac_compile
3144a005d216Smrgac_compiler=$2
3145863f95b1Smrgfor ac_option in --version -v -V -qversion; do
3146863f95b1Smrg  { { ac_try="$ac_compiler $ac_option >&5"
3147ff7e0accSmrgcase "(($ac_try" in
3148ff7e0accSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149ff7e0accSmrg  *) ac_try_echo=$ac_try;;
3150ff7e0accSmrgesac
3151863f95b1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3152863f95b1Smrg$as_echo "$ac_try_echo"; } >&5
3153863f95b1Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3154ff7e0accSmrg  ac_status=$?
3155863f95b1Smrg  if test -s conftest.err; then
3156863f95b1Smrg    sed '10a\
3157863f95b1Smrg... rest of stderr output deleted ...
3158863f95b1Smrg         10q' conftest.err >conftest.er1
3159863f95b1Smrg    cat conftest.er1 >&5
3160863f95b1Smrg  fi
3161863f95b1Smrg  rm -f conftest.er1 conftest.err
3162863f95b1Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3163863f95b1Smrg  test $ac_status = 0; }
3164863f95b1Smrgdone
3165ff7e0accSmrg
3166863f95b1Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3167ff7e0accSmrg/* end confdefs.h.  */
3168ff7e0accSmrg
3169ff7e0accSmrgint
3170ff7e0accSmrgmain ()
3171ff7e0accSmrg{
3172ff7e0accSmrg
3173ff7e0accSmrg  ;
3174ff7e0accSmrg  return 0;
3175ff7e0accSmrg}
3176ff7e0accSmrg_ACEOF
3177ff7e0accSmrgac_clean_files_save=$ac_clean_files
3178a005d216Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3179ff7e0accSmrg# Try to create an executable without -o first, disregard a.out.
3180ff7e0accSmrg# It will help us diagnose broken compilers, and finding out an intuition
3181ff7e0accSmrg# of exeext.
3182863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3183863f95b1Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
3184a005d216Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3185a005d216Smrg
3186a005d216Smrg# The possible output files:
3187a005d216Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3188a005d216Smrg
3189ff7e0accSmrgac_rmfiles=
3190ff7e0accSmrgfor ac_file in $ac_files
3191ff7e0accSmrgdo
3192ff7e0accSmrg  case $ac_file in
3193a005d216Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3194ff7e0accSmrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3195ff7e0accSmrg  esac
3196ff7e0accSmrgdone
3197ff7e0accSmrgrm -f $ac_rmfiles
3198ff7e0accSmrg
3199863f95b1Smrgif { { ac_try="$ac_link_default"
3200ff7e0accSmrgcase "(($ac_try" in
3201ff7e0accSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202ff7e0accSmrg  *) ac_try_echo=$ac_try;;
3203ff7e0accSmrgesac
3204863f95b1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3205863f95b1Smrg$as_echo "$ac_try_echo"; } >&5
3206ff7e0accSmrg  (eval "$ac_link_default") 2>&5
3207ff7e0accSmrg  ac_status=$?
3208863f95b1Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3209863f95b1Smrg  test $ac_status = 0; }; then :
3210ff7e0accSmrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3211ff7e0accSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3212ff7e0accSmrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3213ff7e0accSmrg# so that the user can short-circuit this test for compilers unknown to
3214ff7e0accSmrg# Autoconf.
3215ff7e0accSmrgfor ac_file in $ac_files ''
3216ff7e0accSmrgdo
3217ff7e0accSmrg  test -f "$ac_file" || continue
3218ff7e0accSmrg  case $ac_file in
3219a005d216Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3220ff7e0accSmrg	;;
3221ff7e0accSmrg    [ab].out )
3222ff7e0accSmrg	# We found the default executable, but exeext='' is most
3223ff7e0accSmrg	# certainly right.
3224ff7e0accSmrg	break;;
3225ff7e0accSmrg    *.* )
3226863f95b1Smrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3227ff7e0accSmrg	then :; else
3228ff7e0accSmrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3229ff7e0accSmrg	fi
3230ff7e0accSmrg	# We set ac_cv_exeext here because the later test for it is not
3231ff7e0accSmrg	# safe: cross compilers may not add the suffix if given an `-o'
3232ff7e0accSmrg	# argument, so we may need to know it at that point already.
3233ff7e0accSmrg	# Even if this section looks crufty: it has the advantage of
3234ff7e0accSmrg	# actually working.
3235ff7e0accSmrg	break;;
3236ff7e0accSmrg    * )
3237ff7e0accSmrg	break;;
3238ff7e0accSmrg  esac
3239ff7e0accSmrgdone
3240ff7e0accSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
3241ff7e0accSmrg
3242ff7e0accSmrgelse
3243ff7e0accSmrg  ac_file=''
3244ff7e0accSmrgfi
3245863f95b1Smrgif test -z "$ac_file"; then :
3246863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247863f95b1Smrg$as_echo "no" >&6; }
3248863f95b1Smrg$as_echo "$as_me: failed program was:" >&5
3249ff7e0accSmrgsed 's/^/| /' conftest.$ac_ext >&5
3250ff7e0accSmrg
3251863f95b1Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
325210998002Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3253863f95b1Smrgas_fn_error 77 "C compiler cannot create executables
3254863f95b1SmrgSee \`config.log' for more details" "$LINENO" 5; }
3255863f95b1Smrgelse
3256863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3257863f95b1Smrg$as_echo "yes" >&6; }
3258ff7e0accSmrgfi
3259863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3260863f95b1Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
3261863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3262863f95b1Smrg$as_echo "$ac_file" >&6; }
3263ff7e0accSmrgac_exeext=$ac_cv_exeext
3264ff7e0accSmrg
3265a005d216Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3266ff7e0accSmrgac_clean_files=$ac_clean_files_save
3267863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3268a005d216Smrg$as_echo_n "checking for suffix of executables... " >&6; }
3269863f95b1Smrgif { { ac_try="$ac_link"
3270ff7e0accSmrgcase "(($ac_try" in
3271ff7e0accSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272ff7e0accSmrg  *) ac_try_echo=$ac_try;;
3273ff7e0accSmrgesac
3274863f95b1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3275863f95b1Smrg$as_echo "$ac_try_echo"; } >&5
3276ff7e0accSmrg  (eval "$ac_link") 2>&5
3277ff7e0accSmrg  ac_status=$?
3278863f95b1Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3279863f95b1Smrg  test $ac_status = 0; }; then :
3280ff7e0accSmrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3281ff7e0accSmrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3282ff7e0accSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with
3283ff7e0accSmrg# `rm'.
3284ff7e0accSmrgfor ac_file in conftest.exe conftest conftest.*; do
3285ff7e0accSmrg  test -f "$ac_file" || continue
3286ff7e0accSmrg  case $ac_file in
3287a005d216Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3288ff7e0accSmrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3289ff7e0accSmrg	  break;;
3290ff7e0accSmrg    * ) break;;
3291ff7e0accSmrg  esac
3292ff7e0accSmrgdone
3293ff7e0accSmrgelse
3294863f95b1Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
329510998002Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3296863f95b1Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
3297863f95b1SmrgSee \`config.log' for more details" "$LINENO" 5; }
3298ff7e0accSmrgfi
3299863f95b1Smrgrm -f conftest conftest$ac_cv_exeext
3300863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3301a005d216Smrg$as_echo "$ac_cv_exeext" >&6; }
3302ff7e0accSmrg
3303ff7e0accSmrgrm -f conftest.$ac_ext
3304ff7e0accSmrgEXEEXT=$ac_cv_exeext
3305ff7e0accSmrgac_exeext=$EXEEXT
3306863f95b1Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3307863f95b1Smrg/* end confdefs.h.  */
3308863f95b1Smrg#include <stdio.h>
3309863f95b1Smrgint
3310863f95b1Smrgmain ()
3311863f95b1Smrg{
3312863f95b1SmrgFILE *f = fopen ("conftest.out", "w");
3313863f95b1Smrg return ferror (f) || fclose (f) != 0;
3314863f95b1Smrg
3315863f95b1Smrg  ;
3316863f95b1Smrg  return 0;
3317863f95b1Smrg}
3318863f95b1Smrg_ACEOF
3319863f95b1Smrgac_clean_files="$ac_clean_files conftest.out"
3320863f95b1Smrg# Check that the compiler produces executables we can run.  If not, either
3321863f95b1Smrg# the compiler is broken, or we cross compile.
3322863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3323863f95b1Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
3324863f95b1Smrgif test "$cross_compiling" != yes; then
3325863f95b1Smrg  { { ac_try="$ac_link"
3326863f95b1Smrgcase "(($ac_try" in
3327863f95b1Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328863f95b1Smrg  *) ac_try_echo=$ac_try;;
3329863f95b1Smrgesac
3330863f95b1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3331863f95b1Smrg$as_echo "$ac_try_echo"; } >&5
3332863f95b1Smrg  (eval "$ac_link") 2>&5
3333863f95b1Smrg  ac_status=$?
3334863f95b1Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3335863f95b1Smrg  test $ac_status = 0; }
3336863f95b1Smrg  if { ac_try='./conftest$ac_cv_exeext'
3337863f95b1Smrg  { { case "(($ac_try" in
3338863f95b1Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339863f95b1Smrg  *) ac_try_echo=$ac_try;;
3340863f95b1Smrgesac
3341863f95b1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3342863f95b1Smrg$as_echo "$ac_try_echo"; } >&5
3343863f95b1Smrg  (eval "$ac_try") 2>&5
3344863f95b1Smrg  ac_status=$?
3345863f95b1Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3346863f95b1Smrg  test $ac_status = 0; }; }; then
3347863f95b1Smrg    cross_compiling=no
3348863f95b1Smrg  else
3349863f95b1Smrg    if test "$cross_compiling" = maybe; then
3350863f95b1Smrg	cross_compiling=yes
3351863f95b1Smrg    else
3352863f95b1Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3353863f95b1Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3354863f95b1Smrgas_fn_error $? "cannot run C compiled programs.
3355863f95b1SmrgIf you meant to cross compile, use \`--host'.
3356863f95b1SmrgSee \`config.log' for more details" "$LINENO" 5; }
3357863f95b1Smrg    fi
3358863f95b1Smrg  fi
3359863f95b1Smrgfi
3360863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3361863f95b1Smrg$as_echo "$cross_compiling" >&6; }
3362863f95b1Smrg
3363863f95b1Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3364863f95b1Smrgac_clean_files=$ac_clean_files_save
3365863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3366a005d216Smrg$as_echo_n "checking for suffix of object files... " >&6; }
3367863f95b1Smrgif ${ac_cv_objext+:} false; then :
3368a005d216Smrg  $as_echo_n "(cached) " >&6
3369ff7e0accSmrgelse
3370863f95b1Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371ff7e0accSmrg/* end confdefs.h.  */
3372ff7e0accSmrg
3373ff7e0accSmrgint
3374ff7e0accSmrgmain ()
3375ff7e0accSmrg{
3376ff7e0accSmrg
3377ff7e0accSmrg  ;
3378ff7e0accSmrg  return 0;
3379ff7e0accSmrg}
3380ff7e0accSmrg_ACEOF
3381ff7e0accSmrgrm -f conftest.o conftest.obj
3382863f95b1Smrgif { { ac_try="$ac_compile"
3383ff7e0accSmrgcase "(($ac_try" in
3384ff7e0accSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385ff7e0accSmrg  *) ac_try_echo=$ac_try;;
3386ff7e0accSmrgesac
3387863f95b1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3388863f95b1Smrg$as_echo "$ac_try_echo"; } >&5
3389ff7e0accSmrg  (eval "$ac_compile") 2>&5
3390ff7e0accSmrg  ac_status=$?
3391863f95b1Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3392863f95b1Smrg  test $ac_status = 0; }; then :
3393ff7e0accSmrg  for ac_file in conftest.o conftest.obj conftest.*; do
3394ff7e0accSmrg  test -f "$ac_file" || continue;
3395ff7e0accSmrg  case $ac_file in
3396a005d216Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3397ff7e0accSmrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3398ff7e0accSmrg       break;;
3399ff7e0accSmrg  esac
3400ff7e0accSmrgdone
3401ff7e0accSmrgelse
3402a005d216Smrg  $as_echo "$as_me: failed program was:" >&5
3403ff7e0accSmrgsed 's/^/| /' conftest.$ac_ext >&5
3404ff7e0accSmrg
3405863f95b1Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
340610998002Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3407863f95b1Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile
3408863f95b1SmrgSee \`config.log' for more details" "$LINENO" 5; }
3409ff7e0accSmrgfi
3410ff7e0accSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
3411ff7e0accSmrgfi
3412863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3413a005d216Smrg$as_echo "$ac_cv_objext" >&6; }
3414ff7e0accSmrgOBJEXT=$ac_cv_objext
3415ff7e0accSmrgac_objext=$OBJEXT
3416863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3417a005d216Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3418863f95b1Smrgif ${ac_cv_c_compiler_gnu+:} false; then :
3419a005d216Smrg  $as_echo_n "(cached) " >&6
3420ff7e0accSmrgelse
3421863f95b1Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422ff7e0accSmrg/* end confdefs.h.  */
3423ff7e0accSmrg
3424ff7e0accSmrgint
3425ff7e0accSmrgmain ()
3426ff7e0accSmrg{
3427ff7e0accSmrg#ifndef __GNUC__
3428ff7e0accSmrg       choke me
3429ff7e0accSmrg#endif
3430ff7e0accSmrg
3431ff7e0accSmrg  ;
3432ff7e0accSmrg  return 0;
3433ff7e0accSmrg}
3434ff7e0accSmrg_ACEOF
3435863f95b1Smrgif ac_fn_c_try_compile "$LINENO"; then :
3436ff7e0accSmrg  ac_compiler_gnu=yes
3437ff7e0accSmrgelse
3438863f95b1Smrg  ac_compiler_gnu=no
3439ff7e0accSmrgfi
3440ff7e0accSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3441ff7e0accSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu
3442ff7e0accSmrg
3443ff7e0accSmrgfi
3444863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3445a005d216Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3446a005d216Smrgif test $ac_compiler_gnu = yes; then
3447a005d216Smrg  GCC=yes
3448a005d216Smrgelse
3449a005d216Smrg  GCC=
3450a005d216Smrgfi
3451ff7e0accSmrgac_test_CFLAGS=${CFLAGS+set}
3452ff7e0accSmrgac_save_CFLAGS=$CFLAGS
3453863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3454a005d216Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
3455863f95b1Smrgif ${ac_cv_prog_cc_g+:} false; then :
3456a005d216Smrg  $as_echo_n "(cached) " >&6
3457ff7e0accSmrgelse
3458ff7e0accSmrg  ac_save_c_werror_flag=$ac_c_werror_flag
3459ff7e0accSmrg   ac_c_werror_flag=yes
3460ff7e0accSmrg   ac_cv_prog_cc_g=no
3461ff7e0accSmrg   CFLAGS="-g"
3462863f95b1Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463ff7e0accSmrg/* end confdefs.h.  */
3464ff7e0accSmrg
3465ff7e0accSmrgint
3466ff7e0accSmrgmain ()
3467ff7e0accSmrg{
3468ff7e0accSmrg
3469ff7e0accSmrg  ;
3470ff7e0accSmrg  return 0;
3471ff7e0accSmrg}
3472ff7e0accSmrg_ACEOF
3473863f95b1Smrgif ac_fn_c_try_compile "$LINENO"; then :
3474ff7e0accSmrg  ac_cv_prog_cc_g=yes
3475ff7e0accSmrgelse
3476863f95b1Smrg  CFLAGS=""
3477863f95b1Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478ff7e0accSmrg/* end confdefs.h.  */
3479ff7e0accSmrg
3480ff7e0accSmrgint
3481ff7e0accSmrgmain ()
3482ff7e0accSmrg{
3483ff7e0accSmrg
3484ff7e0accSmrg  ;
3485ff7e0accSmrg  return 0;
3486ff7e0accSmrg}
3487ff7e0accSmrg_ACEOF
3488863f95b1Smrgif ac_fn_c_try_compile "$LINENO"; then :
3489ff7e0accSmrg
3490863f95b1Smrgelse
3491863f95b1Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
3492ff7e0accSmrg	 CFLAGS="-g"
3493863f95b1Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494ff7e0accSmrg/* end confdefs.h.  */
3495ff7e0accSmrg
3496ff7e0accSmrgint
3497ff7e0accSmrgmain ()
3498ff7e0accSmrg{
3499ff7e0accSmrg
3500ff7e0accSmrg  ;
3501ff7e0accSmrg  return 0;
3502ff7e0accSmrg}
3503ff7e0accSmrg_ACEOF
3504863f95b1Smrgif ac_fn_c_try_compile "$LINENO"; then :
3505ff7e0accSmrg  ac_cv_prog_cc_g=yes
3506ff7e0accSmrgfi
3507ff7e0accSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3508ff7e0accSmrgfi
3509ff7e0accSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3510ff7e0accSmrgfi
3511ff7e0accSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3512ff7e0accSmrg   ac_c_werror_flag=$ac_save_c_werror_flag
3513ff7e0accSmrgfi
3514863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3515a005d216Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
3516ff7e0accSmrgif test "$ac_test_CFLAGS" = set; then
3517ff7e0accSmrg  CFLAGS=$ac_save_CFLAGS
3518ff7e0accSmrgelif test $ac_cv_prog_cc_g = yes; then
3519ff7e0accSmrg  if test "$GCC" = yes; then
3520ff7e0accSmrg    CFLAGS="-g -O2"
3521ff7e0accSmrg  else
3522ff7e0accSmrg    CFLAGS="-g"
3523ff7e0accSmrg  fi
3524ff7e0accSmrgelse
3525ff7e0accSmrg  if test "$GCC" = yes; then
3526ff7e0accSmrg    CFLAGS="-O2"
3527ff7e0accSmrg  else
3528ff7e0accSmrg    CFLAGS=
3529ff7e0accSmrg  fi
3530ff7e0accSmrgfi
3531863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3532a005d216Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3533863f95b1Smrgif ${ac_cv_prog_cc_c89+:} false; then :
3534a005d216Smrg  $as_echo_n "(cached) " >&6
3535ff7e0accSmrgelse
3536ff7e0accSmrg  ac_cv_prog_cc_c89=no
3537ff7e0accSmrgac_save_CC=$CC
3538863f95b1Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539ff7e0accSmrg/* end confdefs.h.  */
3540ff7e0accSmrg#include <stdarg.h>
3541ff7e0accSmrg#include <stdio.h>
3542ff7e0accSmrg#include <sys/types.h>
3543ff7e0accSmrg#include <sys/stat.h>
3544ff7e0accSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3545ff7e0accSmrgstruct buf { int x; };
3546ff7e0accSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
3547ff7e0accSmrgstatic char *e (p, i)
3548ff7e0accSmrg     char **p;
3549ff7e0accSmrg     int i;
3550ff7e0accSmrg{
3551ff7e0accSmrg  return p[i];
3552ff7e0accSmrg}
3553ff7e0accSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
3554ff7e0accSmrg{
3555ff7e0accSmrg  char *s;
3556ff7e0accSmrg  va_list v;
3557ff7e0accSmrg  va_start (v,p);
3558ff7e0accSmrg  s = g (p, va_arg (v,int));
3559ff7e0accSmrg  va_end (v);
3560ff7e0accSmrg  return s;
3561ff7e0accSmrg}
3562ff7e0accSmrg
3563ff7e0accSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3564ff7e0accSmrg   function prototypes and stuff, but not '\xHH' hex character constants.
3565ff7e0accSmrg   These don't provoke an error unfortunately, instead are silently treated
3566ff7e0accSmrg   as 'x'.  The following induces an error, until -std is added to get
3567ff7e0accSmrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3568ff7e0accSmrg   array size at least.  It's necessary to write '\x00'==0 to get something
3569ff7e0accSmrg   that's true only with -std.  */
3570ff7e0accSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
3571ff7e0accSmrg
3572ff7e0accSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3573ff7e0accSmrg   inside strings and character constants.  */
3574ff7e0accSmrg#define FOO(x) 'x'
3575ff7e0accSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3576ff7e0accSmrg
3577ff7e0accSmrgint test (int i, double x);
3578ff7e0accSmrgstruct s1 {int (*f) (int a);};
3579ff7e0accSmrgstruct s2 {int (*f) (double a);};
3580ff7e0accSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3581ff7e0accSmrgint argc;
3582ff7e0accSmrgchar **argv;
3583ff7e0accSmrgint
3584ff7e0accSmrgmain ()
3585ff7e0accSmrg{
3586ff7e0accSmrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3587ff7e0accSmrg  ;
3588ff7e0accSmrg  return 0;
3589ff7e0accSmrg}
3590ff7e0accSmrg_ACEOF
3591ff7e0accSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3592ff7e0accSmrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3593ff7e0accSmrgdo
3594ff7e0accSmrg  CC="$ac_save_CC $ac_arg"
3595863f95b1Smrg  if ac_fn_c_try_compile "$LINENO"; then :
3596ff7e0accSmrg  ac_cv_prog_cc_c89=$ac_arg
3597ff7e0accSmrgfi
3598863f95b1Smrgrm -f core conftest.err conftest.$ac_objext
3599863f95b1Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
3600863f95b1Smrgdone
3601863f95b1Smrgrm -f conftest.$ac_ext
3602863f95b1SmrgCC=$ac_save_CC
3603863f95b1Smrg
3604ff7e0accSmrgfi
3605863f95b1Smrg# AC_CACHE_VAL
3606863f95b1Smrgcase "x$ac_cv_prog_cc_c89" in
3607863f95b1Smrg  x)
3608863f95b1Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3609863f95b1Smrg$as_echo "none needed" >&6; } ;;
3610863f95b1Smrg  xno)
3611863f95b1Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3612863f95b1Smrg$as_echo "unsupported" >&6; } ;;
3613863f95b1Smrg  *)
3614863f95b1Smrg    CC="$CC $ac_cv_prog_cc_c89"
3615863f95b1Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3616863f95b1Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3617863f95b1Smrgesac
3618863f95b1Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
3619ff7e0accSmrg
3620863f95b1Smrgfi
3621ff7e0accSmrg
3622863f95b1Smrgac_ext=c
3623863f95b1Smrgac_cpp='$CPP $CPPFLAGS'
3624863f95b1Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3625863f95b1Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3626863f95b1Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3627ff7e0accSmrg
3628ff7e0accSmrgdepcc="$CC"   am_compiler_list=
3629ff7e0accSmrg
3630863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3631a005d216Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
3632863f95b1Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
3633a005d216Smrg  $as_echo_n "(cached) " >&6
3634ff7e0accSmrgelse
3635ff7e0accSmrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3636ff7e0accSmrg  # We make a subdir and do the tests there.  Otherwise we can end up
3637ff7e0accSmrg  # making bogus files that we don't know about and never remove.  For
3638ff7e0accSmrg  # instance it was reported that on HP-UX the gcc test will end up
3639ff7e0accSmrg  # making a dummy file named `D' -- because `-MD' means `put the output
3640ff7e0accSmrg  # in D'.
3641ff7e0accSmrg  mkdir conftest.dir
3642ff7e0accSmrg  # Copy depcomp to subdir because otherwise we won't find it if we're
3643ff7e0accSmrg  # using a relative directory.
3644ff7e0accSmrg  cp "$am_depcomp" conftest.dir
3645ff7e0accSmrg  cd conftest.dir
3646ff7e0accSmrg  # We will build objects and dependencies in a subdirectory because
3647ff7e0accSmrg  # it helps to detect inapplicable dependency modes.  For instance
3648ff7e0accSmrg  # both Tru64's cc and ICC support -MD to output dependencies as a
3649ff7e0accSmrg  # side effect of compilation, but ICC will put the dependencies in
3650ff7e0accSmrg  # the current directory while Tru64 will put them in the object
3651ff7e0accSmrg  # directory.
3652ff7e0accSmrg  mkdir sub
3653ff7e0accSmrg
3654ff7e0accSmrg  am_cv_CC_dependencies_compiler_type=none
3655ff7e0accSmrg  if test "$am_compiler_list" = ""; then
3656ff7e0accSmrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3657ff7e0accSmrg  fi
365810998002Smrg  am__universal=false
365910998002Smrg  case " $depcc " in #(
366010998002Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
366110998002Smrg     esac
366210998002Smrg
3663ff7e0accSmrg  for depmode in $am_compiler_list; do
3664ff7e0accSmrg    # Setup a source with many dependencies, because some compilers
3665ff7e0accSmrg    # like to wrap large dependency lists on column 80 (with \), and
3666ff7e0accSmrg    # we should not choose a depcomp mode which is confused by this.
3667ff7e0accSmrg    #
3668ff7e0accSmrg    # We need to recreate these files for each test, as the compiler may
3669ff7e0accSmrg    # overwrite some of them when testing with obscure command lines.
3670ff7e0accSmrg    # This happens at least with the AIX C compiler.
3671ff7e0accSmrg    : > sub/conftest.c
3672ff7e0accSmrg    for i in 1 2 3 4 5 6; do
3673ff7e0accSmrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3674ff7e0accSmrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3675ff7e0accSmrg      # Solaris 8's {/usr,}/bin/sh.
3676ff7e0accSmrg      touch sub/conftst$i.h
3677ff7e0accSmrg    done
3678ff7e0accSmrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3679ff7e0accSmrg
368010998002Smrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
368110998002Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
368210998002Smrg    # handle `-M -o', and we need to detect this.  Also, some Intel
368310998002Smrg    # versions had trouble with output in subdirs
368410998002Smrg    am__obj=sub/conftest.${OBJEXT-o}
368510998002Smrg    am__minus_obj="-o $am__obj"
3686ff7e0accSmrg    case $depmode in
368710998002Smrg    gcc)
368810998002Smrg      # This depmode causes a compiler race in universal mode.
368910998002Smrg      test "$am__universal" = false || continue
369010998002Smrg      ;;
3691ff7e0accSmrg    nosideeffect)
3692ff7e0accSmrg      # after this tag, mechanisms are not by side-effect, so they'll
3693ff7e0accSmrg      # only be used when explicitly requested
3694ff7e0accSmrg      if test "x$enable_dependency_tracking" = xyes; then
3695ff7e0accSmrg	continue
3696ff7e0accSmrg      else
3697ff7e0accSmrg	break
3698ff7e0accSmrg      fi
3699ff7e0accSmrg      ;;
370010998002Smrg    msvisualcpp | msvcmsys)
370110998002Smrg      # This compiler won't grok `-c -o', but also, the minuso test has
370210998002Smrg      # not run yet.  These depmodes are late enough in the game, and
370310998002Smrg      # so weak that their functioning should not be impacted.
370410998002Smrg      am__obj=conftest.${OBJEXT-o}
370510998002Smrg      am__minus_obj=
370610998002Smrg      ;;
3707ff7e0accSmrg    none) break ;;
3708ff7e0accSmrg    esac
3709ff7e0accSmrg    if depmode=$depmode \
371010998002Smrg       source=sub/conftest.c object=$am__obj \
3711ff7e0accSmrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
371210998002Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3713ff7e0accSmrg         >/dev/null 2>conftest.err &&
3714ff7e0accSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3715ff7e0accSmrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
371610998002Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3717ff7e0accSmrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3718ff7e0accSmrg      # icc doesn't choke on unknown options, it will just issue warnings
3719ff7e0accSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
3720ff7e0accSmrg      # that says an option was ignored or not supported.
3721ff7e0accSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
3722ff7e0accSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
3723ff7e0accSmrg      # The diagnosis changed in icc 8.0:
3724ff7e0accSmrg      #   icc: Command line remark: option '-MP' not supported
3725ff7e0accSmrg      if (grep 'ignoring option' conftest.err ||
3726ff7e0accSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3727ff7e0accSmrg        am_cv_CC_dependencies_compiler_type=$depmode
3728ff7e0accSmrg        break
3729ff7e0accSmrg      fi
3730ff7e0accSmrg    fi
3731ff7e0accSmrg  done
3732ff7e0accSmrg
3733ff7e0accSmrg  cd ..
3734ff7e0accSmrg  rm -rf conftest.dir
3735ff7e0accSmrgelse
3736ff7e0accSmrg  am_cv_CC_dependencies_compiler_type=none
3737ff7e0accSmrgfi
3738ff7e0accSmrg
3739ff7e0accSmrgfi
3740863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3741a005d216Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3742ff7e0accSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3743ff7e0accSmrg
3744ff7e0accSmrg if
3745ff7e0accSmrg  test "x$enable_dependency_tracking" != xno \
3746ff7e0accSmrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3747ff7e0accSmrg  am__fastdepCC_TRUE=
3748ff7e0accSmrg  am__fastdepCC_FALSE='#'
3749ff7e0accSmrgelse
3750ff7e0accSmrg  am__fastdepCC_TRUE='#'
3751ff7e0accSmrg  am__fastdepCC_FALSE=
3752ff7e0accSmrgfi
3753ff7e0accSmrg
3754ff7e0accSmrg
375510998002Smrg
375610998002Smrgac_ext=c
375710998002Smrgac_cpp='$CPP $CPPFLAGS'
375810998002Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
375910998002Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
376010998002Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3761863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
376210998002Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
376310998002Smrg# On Suns, sometimes $CPP names a directory.
376410998002Smrgif test -n "$CPP" && test -d "$CPP"; then
376510998002Smrg  CPP=
376610998002Smrgfi
376710998002Smrgif test -z "$CPP"; then
3768863f95b1Smrg  if ${ac_cv_prog_CPP+:} false; then :
376910998002Smrg  $as_echo_n "(cached) " >&6
377010998002Smrgelse
377110998002Smrg      # Double quotes because CPP needs to be expanded
377210998002Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
377310998002Smrg    do
377410998002Smrg      ac_preproc_ok=false
377510998002Smrgfor ac_c_preproc_warn_flag in '' yes
377610998002Smrgdo
377710998002Smrg  # Use a header file that comes with gcc, so configuring glibc
377810998002Smrg  # with a fresh cross-compiler works.
377910998002Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
378010998002Smrg  # <limits.h> exists even on freestanding compilers.
378110998002Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
378210998002Smrg  # not just through cpp. "Syntax error" is here to catch this case.
3783863f95b1Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
378410998002Smrg/* end confdefs.h.  */
378510998002Smrg#ifdef __STDC__
378610998002Smrg# include <limits.h>
378710998002Smrg#else
378810998002Smrg# include <assert.h>
378910998002Smrg#endif
379010998002Smrg		     Syntax error
379110998002Smrg_ACEOF
3792863f95b1Smrgif ac_fn_c_try_cpp "$LINENO"; then :
379310998002Smrg
3794863f95b1Smrgelse
379510998002Smrg  # Broken: fails on valid input.
379610998002Smrgcontinue
379710998002Smrgfi
3798863f95b1Smrgrm -f conftest.err conftest.i conftest.$ac_ext
379910998002Smrg
380010998002Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
380110998002Smrg  # can be detected and how.
3802863f95b1Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
380310998002Smrg/* end confdefs.h.  */
380410998002Smrg#include <ac_nonexistent.h>
380510998002Smrg_ACEOF
3806863f95b1Smrgif ac_fn_c_try_cpp "$LINENO"; then :
380710998002Smrg  # Broken: success on invalid input.
380810998002Smrgcontinue
380910998002Smrgelse
381010998002Smrg  # Passes both tests.
381110998002Smrgac_preproc_ok=:
381210998002Smrgbreak
381310998002Smrgfi
3814863f95b1Smrgrm -f conftest.err conftest.i conftest.$ac_ext
381510998002Smrg
381610998002Smrgdone
381710998002Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3818863f95b1Smrgrm -f conftest.i conftest.err conftest.$ac_ext
3819863f95b1Smrgif $ac_preproc_ok; then :
382010998002Smrg  break
382110998002Smrgfi
382210998002Smrg
382310998002Smrg    done
382410998002Smrg    ac_cv_prog_CPP=$CPP
382510998002Smrg
382610998002Smrgfi
382710998002Smrg  CPP=$ac_cv_prog_CPP
382810998002Smrgelse
382910998002Smrg  ac_cv_prog_CPP=$CPP
383010998002Smrgfi
3831863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
383210998002Smrg$as_echo "$CPP" >&6; }
383310998002Smrgac_preproc_ok=false
383410998002Smrgfor ac_c_preproc_warn_flag in '' yes
383510998002Smrgdo
383610998002Smrg  # Use a header file that comes with gcc, so configuring glibc
383710998002Smrg  # with a fresh cross-compiler works.
383810998002Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
383910998002Smrg  # <limits.h> exists even on freestanding compilers.
384010998002Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
384110998002Smrg  # not just through cpp. "Syntax error" is here to catch this case.
3842863f95b1Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
384310998002Smrg/* end confdefs.h.  */
384410998002Smrg#ifdef __STDC__
384510998002Smrg# include <limits.h>
384610998002Smrg#else
384710998002Smrg# include <assert.h>
384810998002Smrg#endif
384910998002Smrg		     Syntax error
385010998002Smrg_ACEOF
3851863f95b1Smrgif ac_fn_c_try_cpp "$LINENO"; then :
385210998002Smrg
3853863f95b1Smrgelse
385410998002Smrg  # Broken: fails on valid input.
385510998002Smrgcontinue
385610998002Smrgfi
3857863f95b1Smrgrm -f conftest.err conftest.i conftest.$ac_ext
385810998002Smrg
385910998002Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
386010998002Smrg  # can be detected and how.
3861863f95b1Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
386210998002Smrg/* end confdefs.h.  */
386310998002Smrg#include <ac_nonexistent.h>
386410998002Smrg_ACEOF
3865863f95b1Smrgif ac_fn_c_try_cpp "$LINENO"; then :
386610998002Smrg  # Broken: success on invalid input.
386710998002Smrgcontinue
386810998002Smrgelse
386910998002Smrg  # Passes both tests.
387010998002Smrgac_preproc_ok=:
387110998002Smrgbreak
387210998002Smrgfi
3873863f95b1Smrgrm -f conftest.err conftest.i conftest.$ac_ext
387410998002Smrg
387510998002Smrgdone
387610998002Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3877863f95b1Smrgrm -f conftest.i conftest.err conftest.$ac_ext
3878863f95b1Smrgif $ac_preproc_ok; then :
3879863f95b1Smrg
388010998002Smrgelse
3881863f95b1Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
388210998002Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3883863f95b1Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3884863f95b1SmrgSee \`config.log' for more details" "$LINENO" 5; }
388510998002Smrgfi
388610998002Smrg
388710998002Smrgac_ext=c
388810998002Smrgac_cpp='$CPP $CPPFLAGS'
388910998002Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
389010998002Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
389110998002Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
389210998002Smrg
389310998002Smrg
3894863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
389510998002Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3896863f95b1Smrgif ${ac_cv_path_GREP+:} false; then :
389710998002Smrg  $as_echo_n "(cached) " >&6
389810998002Smrgelse
389910998002Smrg  if test -z "$GREP"; then
390010998002Smrg  ac_path_GREP_found=false
390110998002Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
390210998002Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
390310998002Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
390410998002Smrgdo
390510998002Smrg  IFS=$as_save_IFS
390610998002Smrg  test -z "$as_dir" && as_dir=.
3907863f95b1Smrg    for ac_prog in grep ggrep; do
390810998002Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
390910998002Smrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
391010998002Smrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
391110998002Smrg# Check for GNU ac_path_GREP and select it if it is found.
391210998002Smrg  # Check for GNU $ac_path_GREP
391310998002Smrgcase `"$ac_path_GREP" --version 2>&1` in
391410998002Smrg*GNU*)
391510998002Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
391610998002Smrg*)
391710998002Smrg  ac_count=0
391810998002Smrg  $as_echo_n 0123456789 >"conftest.in"
391910998002Smrg  while :
392010998002Smrg  do
392110998002Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
392210998002Smrg    mv "conftest.tmp" "conftest.in"
392310998002Smrg    cp "conftest.in" "conftest.nl"
392410998002Smrg    $as_echo 'GREP' >> "conftest.nl"
392510998002Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
392610998002Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3927863f95b1Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
392810998002Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
392910998002Smrg      # Best one so far, save it but keep looking for a better one
393010998002Smrg      ac_cv_path_GREP="$ac_path_GREP"
393110998002Smrg      ac_path_GREP_max=$ac_count
393210998002Smrg    fi
393310998002Smrg    # 10*(2^10) chars as input seems more than enough
393410998002Smrg    test $ac_count -gt 10 && break
393510998002Smrg  done
393610998002Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
393710998002Smrgesac
393810998002Smrg
393910998002Smrg      $ac_path_GREP_found && break 3
394010998002Smrg    done
394110998002Smrg  done
3942863f95b1Smrg  done
394310998002SmrgIFS=$as_save_IFS
394410998002Smrg  if test -z "$ac_cv_path_GREP"; then
3945863f95b1Smrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
394610998002Smrg  fi
394710998002Smrgelse
394810998002Smrg  ac_cv_path_GREP=$GREP
394910998002Smrgfi
395010998002Smrg
395110998002Smrgfi
3952863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
395310998002Smrg$as_echo "$ac_cv_path_GREP" >&6; }
395410998002Smrg GREP="$ac_cv_path_GREP"
395510998002Smrg
395610998002Smrg
3957863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
395810998002Smrg$as_echo_n "checking for egrep... " >&6; }
3959863f95b1Smrgif ${ac_cv_path_EGREP+:} false; then :
396010998002Smrg  $as_echo_n "(cached) " >&6
396110998002Smrgelse
396210998002Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
396310998002Smrg   then ac_cv_path_EGREP="$GREP -E"
396410998002Smrg   else
396510998002Smrg     if test -z "$EGREP"; then
396610998002Smrg  ac_path_EGREP_found=false
396710998002Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
396810998002Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
396910998002Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
397010998002Smrgdo
397110998002Smrg  IFS=$as_save_IFS
397210998002Smrg  test -z "$as_dir" && as_dir=.
3973863f95b1Smrg    for ac_prog in egrep; do
397410998002Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
397510998002Smrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
397610998002Smrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
397710998002Smrg# Check for GNU ac_path_EGREP and select it if it is found.
397810998002Smrg  # Check for GNU $ac_path_EGREP
397910998002Smrgcase `"$ac_path_EGREP" --version 2>&1` in
398010998002Smrg*GNU*)
398110998002Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
398210998002Smrg*)
398310998002Smrg  ac_count=0
398410998002Smrg  $as_echo_n 0123456789 >"conftest.in"
398510998002Smrg  while :
398610998002Smrg  do
398710998002Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
398810998002Smrg    mv "conftest.tmp" "conftest.in"
398910998002Smrg    cp "conftest.in" "conftest.nl"
399010998002Smrg    $as_echo 'EGREP' >> "conftest.nl"
399110998002Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
399210998002Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3993863f95b1Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
399410998002Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
399510998002Smrg      # Best one so far, save it but keep looking for a better one
399610998002Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
399710998002Smrg      ac_path_EGREP_max=$ac_count
399810998002Smrg    fi
399910998002Smrg    # 10*(2^10) chars as input seems more than enough
400010998002Smrg    test $ac_count -gt 10 && break
400110998002Smrg  done
400210998002Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
400310998002Smrgesac
400410998002Smrg
400510998002Smrg      $ac_path_EGREP_found && break 3
400610998002Smrg    done
400710998002Smrg  done
4008863f95b1Smrg  done
400910998002SmrgIFS=$as_save_IFS
401010998002Smrg  if test -z "$ac_cv_path_EGREP"; then
4011863f95b1Smrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
401210998002Smrg  fi
401310998002Smrgelse
401410998002Smrg  ac_cv_path_EGREP=$EGREP
401510998002Smrgfi
401610998002Smrg
401710998002Smrg   fi
401810998002Smrgfi
4019863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
402010998002Smrg$as_echo "$ac_cv_path_EGREP" >&6; }
402110998002Smrg EGREP="$ac_cv_path_EGREP"
402210998002Smrg
402310998002Smrg
4024863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
402510998002Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
4026863f95b1Smrgif ${ac_cv_header_stdc+:} false; then :
402710998002Smrg  $as_echo_n "(cached) " >&6
402810998002Smrgelse
4029863f95b1Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
403010998002Smrg/* end confdefs.h.  */
403110998002Smrg#include <stdlib.h>
403210998002Smrg#include <stdarg.h>
403310998002Smrg#include <string.h>
403410998002Smrg#include <float.h>
403510998002Smrg
403610998002Smrgint
403710998002Smrgmain ()
403810998002Smrg{
403910998002Smrg
404010998002Smrg  ;
404110998002Smrg  return 0;
404210998002Smrg}
404310998002Smrg_ACEOF
4044863f95b1Smrgif ac_fn_c_try_compile "$LINENO"; then :
404510998002Smrg  ac_cv_header_stdc=yes
404610998002Smrgelse
4047863f95b1Smrg  ac_cv_header_stdc=no
404810998002Smrgfi
404910998002Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
405010998002Smrg
405110998002Smrgif test $ac_cv_header_stdc = yes; then
405210998002Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4053863f95b1Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
405410998002Smrg/* end confdefs.h.  */
405510998002Smrg#include <string.h>
405610998002Smrg
405710998002Smrg_ACEOF
405810998002Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4059863f95b1Smrg  $EGREP "memchr" >/dev/null 2>&1; then :
4060863f95b1Smrg
406110998002Smrgelse
406210998002Smrg  ac_cv_header_stdc=no
406310998002Smrgfi
406410998002Smrgrm -f conftest*
406510998002Smrg
406610998002Smrgfi
406710998002Smrg
406810998002Smrgif test $ac_cv_header_stdc = yes; then
406910998002Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4070863f95b1Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
407110998002Smrg/* end confdefs.h.  */
407210998002Smrg#include <stdlib.h>
407310998002Smrg
407410998002Smrg_ACEOF
407510998002Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4076863f95b1Smrg  $EGREP "free" >/dev/null 2>&1; then :
4077863f95b1Smrg
407810998002Smrgelse
407910998002Smrg  ac_cv_header_stdc=no
408010998002Smrgfi
408110998002Smrgrm -f conftest*
408210998002Smrg
408310998002Smrgfi
408410998002Smrg
408510998002Smrgif test $ac_cv_header_stdc = yes; then
408610998002Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4087863f95b1Smrg  if test "$cross_compiling" = yes; then :
408810998002Smrg  :
408910998002Smrgelse
4090863f95b1Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
409110998002Smrg/* end confdefs.h.  */
409210998002Smrg#include <ctype.h>
409310998002Smrg#include <stdlib.h>
409410998002Smrg#if ((' ' & 0x0FF) == 0x020)
409510998002Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
409610998002Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
409710998002Smrg#else
409810998002Smrg# define ISLOWER(c) \
409910998002Smrg		   (('a' <= (c) && (c) <= 'i') \
410010998002Smrg		     || ('j' <= (c) && (c) <= 'r') \
410110998002Smrg		     || ('s' <= (c) && (c) <= 'z'))
410210998002Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
410310998002Smrg#endif
410410998002Smrg
410510998002Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
410610998002Smrgint
410710998002Smrgmain ()
410810998002Smrg{
410910998002Smrg  int i;
411010998002Smrg  for (i = 0; i < 256; i++)
411110998002Smrg    if (XOR (islower (i), ISLOWER (i))
411210998002Smrg	|| toupper (i) != TOUPPER (i))
411310998002Smrg      return 2;
411410998002Smrg  return 0;
411510998002Smrg}
411610998002Smrg_ACEOF
4117863f95b1Smrgif ac_fn_c_try_run "$LINENO"; then :
411810998002Smrg
4119863f95b1Smrgelse
4120863f95b1Smrg  ac_cv_header_stdc=no
412110998002Smrgfi
4122863f95b1Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4123863f95b1Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
412410998002Smrgfi
412510998002Smrg
412610998002Smrgfi
412710998002Smrgfi
4128863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
412910998002Smrg$as_echo "$ac_cv_header_stdc" >&6; }
413010998002Smrgif test $ac_cv_header_stdc = yes; then
413110998002Smrg
4132863f95b1Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
413310998002Smrg
413410998002Smrgfi
413510998002Smrg
413610998002Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4137863f95b1Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4138863f95b1Smrg		  inttypes.h stdint.h unistd.h
4139863f95b1Smrgdo :
4140863f95b1Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4141863f95b1Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4142863f95b1Smrg"
4143863f95b1Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4144863f95b1Smrg  cat >>confdefs.h <<_ACEOF
4145863f95b1Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4146863f95b1Smrg_ACEOF
4147863f95b1Smrg
4148863f95b1Smrgfi
4149863f95b1Smrg
4150863f95b1Smrgdone
415110998002Smrg
415210998002Smrg
415310998002Smrg
4154863f95b1Smrg  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4155863f95b1Smrgif test "x$ac_cv_header_minix_config_h" = xyes; then :
4156863f95b1Smrg  MINIX=yes
4157863f95b1Smrgelse
4158863f95b1Smrg  MINIX=
4159863f95b1Smrgfi
416010998002Smrg
416110998002Smrg
4162863f95b1Smrg  if test "$MINIX" = yes; then
416310998002Smrg
4164863f95b1Smrg$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
416510998002Smrg
416610998002Smrg
4167863f95b1Smrg$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
416810998002Smrg
4169863f95b1Smrg
4170863f95b1Smrg$as_echo "#define _MINIX 1" >>confdefs.h
4171863f95b1Smrg
4172863f95b1Smrg  fi
4173863f95b1Smrg
4174863f95b1Smrg
4175863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4176863f95b1Smrg$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4177863f95b1Smrgif ${ac_cv_safe_to_define___extensions__+:} false; then :
417810998002Smrg  $as_echo_n "(cached) " >&6
417910998002Smrgelse
4180863f95b1Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
418110998002Smrg/* end confdefs.h.  */
418210998002Smrg
4183863f95b1Smrg#	  define __EXTENSIONS__ 1
4184863f95b1Smrg	  $ac_includes_default
4185863f95b1Smrgint
4186863f95b1Smrgmain ()
4187863f95b1Smrg{
4188863f95b1Smrg
4189863f95b1Smrg  ;
4190863f95b1Smrg  return 0;
4191863f95b1Smrg}
419210998002Smrg_ACEOF
4193863f95b1Smrgif ac_fn_c_try_compile "$LINENO"; then :
4194863f95b1Smrg  ac_cv_safe_to_define___extensions__=yes
419510998002Smrgelse
4196863f95b1Smrg  ac_cv_safe_to_define___extensions__=no
419710998002Smrgfi
419810998002Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
419910998002Smrgfi
4200863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4201863f95b1Smrg$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4202863f95b1Smrg  test $ac_cv_safe_to_define___extensions__ = yes &&
4203863f95b1Smrg    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
420410998002Smrg
4205863f95b1Smrg  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4206863f95b1Smrg
4207863f95b1Smrg  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4208863f95b1Smrg
4209863f95b1Smrg  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4210863f95b1Smrg
4211863f95b1Smrg  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
421210998002Smrg
421310998002Smrg
421410998002Smrg
4215863f95b1Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
421610998002Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4217863f95b1Smrgif ${ac_cv_prog_cc_c99+:} false; then :
421810998002Smrg  $as_echo_n "(cached) " >&6
421910998002Smrgelse
422010998002Smrg  ac_cv_prog_cc_c99=no
422110998002Smrgac_save_CC=$CC
4222863f95b1Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
422310998002Smrg/* end confdefs.h.  */
422410998002Smrg#include <stdarg.h>
422510998002Smrg#include <stdbool.h>
422610998002Smrg#include <stdlib.h>
422710998002Smrg#include <wchar.h>
422810998002Smrg#include <stdio.h>
422910998002Smrg
423010998002Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
423110998002Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
423210998002Smrg#define showlist(...) puts (#__VA_ARGS__)
423310998002Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
423410998002Smrgstatic void
423510998002Smrgtest_varargs_macros (void)
423610998002Smrg{
423710998002Smrg  int x = 1234;
423810998002Smrg  int y = 5678;
423910998002Smrg  debug ("Flag");
424010998002Smrg  debug ("X = %d\n", x);
424110998002Smrg  showlist (The first, second, and third items.);
424210998002Smrg  report (x>y, "x is %d but y is %d", x, y);
424310998002Smrg}
424410998002Smrg
424510998002Smrg// Check long long types.
424610998002Smrg#define BIG64 18446744073709551615ull
424710998002Smrg#define BIG32 4294967295ul
424810998002Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
424910998002Smrg#if !BIG_OK
425010998002Smrg  your preprocessor is broken;
425110998002Smrg#endif
425210998002Smrg#if BIG_OK
425310998002Smrg#else
425410998002Smrg  your preprocessor is broken;
425510998002Smrg#endif
425610998002Smrgstatic long long int bignum = -9223372036854775807LL;
425710998002Smrgstatic unsigned long long int ubignum = BIG64;
425810998002Smrg
425910998002Smrgstruct incomplete_array
426010998002Smrg{
426110998002Smrg  int datasize;
426210998002Smrg  double data[];
426310998002Smrg};
426410998002Smrg
426510998002Smrgstruct named_init {
426610998002Smrg  int number;
426710998002Smrg  const wchar_t *name;
426810998002Smrg  double average;
426910998002Smrg};
427010998002Smrg
427110998002Smrgtypedef const char *ccp;
427210998002Smrg
427310998002Smrgstatic inline int
427410998002Smrgtest_restrict (ccp restrict text)
427510998002Smrg{
427610998002Smrg  // See if C++-style comments work.
427710998002Smrg  // Iterate through items via the restricted pointer.
427810998002Smrg  // Also check for declarations in for loops.
427910998002Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
428010998002Smrg    continue;
428110998002Smrg  return 0;
428210998002Smrg}
428310998002Smrg
428410998002Smrg// Check varargs and va_copy.
428510998002Smrgstatic void
428610998002Smrgtest_varargs (const char *format, ...)
428710998002Smrg{
428810998002Smrg  va_list args;
428910998002Smrg  va_start (args, format);
429010998002Smrg  va_list args_copy;
429110998002Smrg  va_copy (args_copy, args);
429210998002Smrg
429310998002Smrg  const char *str;
429410998002Smrg  int number;
429510998002Smrg  float fnumber;
429610998002Smrg
429710998002Smrg  while (*format)
429810998002Smrg    {
429910998002Smrg      switch (*format++)
430010998002Smrg	{
430110998002Smrg	case 's': // string
430210998002Smrg	  str = va_arg (args_copy, const char *);
430310998002Smrg	  break;
430410998002Smrg	case 'd': // int
430510998002Smrg	  number = va_arg (args_copy, int);
430610998002Smrg	  break;
430710998002Smrg	case 'f': // float
430810998002Smrg	  fnumber = va_arg (args_copy, double);
430910998002Smrg	  break;
431010998002Smrg	default:
431110998002Smrg	  break;
431210998002Smrg	}
431310998002Smrg    }
431410998002Smrg  va_end (args_copy);
431510998002Smrg  va_end (args);
431610998002Smrg}
431710998002Smrg
431810998002Smrgint
431910998002Smrgmain ()
432010998002Smrg{
432110998002Smrg
432210998002Smrg  // Check bool.
432310998002Smrg  _Bool success = false;
432410998002Smrg
432510998002Smrg  // Check restrict.
432610998002Smrg  if (test_restrict ("String literal") == 0)
432710998002Smrg    success = true;
432810998002Smrg  char *restrict newvar = "Another string";
432910998002Smrg
433010998002Smrg  // Check varargs.
433110998002Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
433210998002Smrg  test_varargs_macros ();
433310998002Smrg
433410998002Smrg  // Check flexible array members.
433510998002Smrg  struct incomplete_array *ia =
433610998002Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
433710998002Smrg  ia->datasize = 10;
433810998002Smrg  for (int i = 0; i < ia->datasize; ++i)
433910998002Smrg    ia->data[i] = i * 1.234;
434010998002Smrg
434110998002Smrg  // Check named initializers.
434210998002Smrg  struct named_init ni = {
434310998002Smrg    .number = 34,
434410998002Smrg    .name = L"Test wide string",
434510998002Smrg    .average = 543.34343,
434610998002Smrg  };
434710998002Smrg
434810998002Smrg  ni.number = 58;
434910998002Smrg
435010998002Smrg  int dynamic_array[ni.number];
435110998002Smrg  dynamic_array[ni.number - 1] = 543;
435210998002Smrg
435310998002Smrg  // work around unused variable warnings
435410998002Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
435510998002Smrg	  || dynamic_array[ni.number - 1] != 543);
435610998002Smrg
435710998002Smrg  ;
435810998002Smrg  return 0;
435910998002Smrg}
436010998002Smrg_ACEOF
436110998002Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
436210998002Smrgdo
436310998002Smrg  CC="$ac_save_CC $ac_arg"
4364863f95b1Smrg  if ac_fn_c_try_compile "$LINENO"; then :
436510998002Smrg  ac_cv_prog_cc_c99=$ac_arg
436610998002Smrgfi
436710998002Smrgrm -f core conftest.err conftest.$ac_objext
436810998002Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
436910998002Smrgdone
437010998002Smrgrm -f conftest.$ac_ext
437110998002SmrgCC=$ac_save_CC
437210998002Smrg
437310998002Smrgfi
437410998002Smrg# AC_CACHE_VAL
437510998002Smrgcase "x$ac_cv_prog_cc_c99" in
437610998002Smrg  x)
4377863f95b1Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
437810998002Smrg$as_echo "none needed" >&6; } ;;
437910998002Smrg  xno)
4380863f95b1Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
438110998002Smrg$as_echo "unsupported" >&6; } ;;
438210998002Smrg  *)
438310998002Smrg    CC="$CC $ac_cv_prog_cc_c99"
4384863f95b1Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
438510998002Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
438610998002Smrgesac
4387863f95b1Smrgif test "x$ac_cv_prog_cc_c99" != xno; then :
4388863f95b1Smrg
4389863f95b1Smrgfi
4390863f95b1Smrg
4391863f95b1Smrg
4392863f95b1Smrg
4393863f95b1Smrg
4394863f95b1Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4395863f95b1Smrg	if test -n "$ac_tool_prefix"; then
4396863f95b1Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4397863f95b1Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4398863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4399863f95b1Smrg$as_echo_n "checking for $ac_word... " >&6; }
4400863f95b1Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
4401863f95b1Smrg  $as_echo_n "(cached) " >&6
4402863f95b1Smrgelse
4403863f95b1Smrg  case $PKG_CONFIG in
4404863f95b1Smrg  [\\/]* | ?:[\\/]*)
4405863f95b1Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4406863f95b1Smrg  ;;
4407863f95b1Smrg  *)
4408863f95b1Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409863f95b1Smrgfor as_dir in $PATH
4410863f95b1Smrgdo
4411863f95b1Smrg  IFS=$as_save_IFS
4412863f95b1Smrg  test -z "$as_dir" && as_dir=.
4413863f95b1Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4414863f95b1Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4415863f95b1Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4416863f95b1Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4417863f95b1Smrg    break 2
4418863f95b1Smrg  fi
4419863f95b1Smrgdone
4420863f95b1Smrg  done
4421863f95b1SmrgIFS=$as_save_IFS
4422863f95b1Smrg
4423863f95b1Smrg  ;;
4424863f95b1Smrgesac
4425863f95b1Smrgfi
4426863f95b1SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
4427863f95b1Smrgif test -n "$PKG_CONFIG"; then
4428863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4429863f95b1Smrg$as_echo "$PKG_CONFIG" >&6; }
4430863f95b1Smrgelse
4431863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4432863f95b1Smrg$as_echo "no" >&6; }
4433863f95b1Smrgfi
4434863f95b1Smrg
4435863f95b1Smrg
4436863f95b1Smrgfi
4437863f95b1Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
4438863f95b1Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
4439863f95b1Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
4440863f95b1Smrgset dummy pkg-config; ac_word=$2
4441863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4442863f95b1Smrg$as_echo_n "checking for $ac_word... " >&6; }
4443863f95b1Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4444863f95b1Smrg  $as_echo_n "(cached) " >&6
4445863f95b1Smrgelse
4446863f95b1Smrg  case $ac_pt_PKG_CONFIG in
4447863f95b1Smrg  [\\/]* | ?:[\\/]*)
4448863f95b1Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4449863f95b1Smrg  ;;
4450863f95b1Smrg  *)
4451863f95b1Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452863f95b1Smrgfor as_dir in $PATH
4453863f95b1Smrgdo
4454863f95b1Smrg  IFS=$as_save_IFS
4455863f95b1Smrg  test -z "$as_dir" && as_dir=.
4456863f95b1Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4457863f95b1Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4458863f95b1Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4459863f95b1Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4460863f95b1Smrg    break 2
4461863f95b1Smrg  fi
4462863f95b1Smrgdone
4463863f95b1Smrg  done
4464863f95b1SmrgIFS=$as_save_IFS
4465863f95b1Smrg
4466863f95b1Smrg  ;;
4467863f95b1Smrgesac
4468863f95b1Smrgfi
4469863f95b1Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4470863f95b1Smrgif test -n "$ac_pt_PKG_CONFIG"; then
4471863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4472863f95b1Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4473863f95b1Smrgelse
4474863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475863f95b1Smrg$as_echo "no" >&6; }
4476863f95b1Smrgfi
447710998002Smrg
4478863f95b1Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
4479863f95b1Smrg    PKG_CONFIG=""
4480863f95b1Smrg  else
4481863f95b1Smrg    case $cross_compiling:$ac_tool_warned in
4482863f95b1Smrgyes:)
4483863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4484863f95b1Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4485863f95b1Smrgac_tool_warned=yes ;;
4486863f95b1Smrgesac
4487863f95b1Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
4488863f95b1Smrg  fi
4489863f95b1Smrgelse
4490863f95b1Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4491863f95b1Smrgfi
449210998002Smrg
4493863f95b1Smrgfi
4494863f95b1Smrgif test -n "$PKG_CONFIG"; then
4495863f95b1Smrg	_pkg_min_version=0.9.0
4496863f95b1Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4497863f95b1Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4498863f95b1Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4499863f95b1Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4500863f95b1Smrg$as_echo "yes" >&6; }
4501863f95b1Smrg	else
4502863f95b1Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4503863f95b1Smrg$as_echo "no" >&6; }
4504863f95b1Smrg		PKG_CONFIG=""
4505863f95b1Smrg	fi
450610998002Smrg
4507863f95b1Smrgfi
450810998002Smrg# Make sure we can run config.sub.
450910998002Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4510863f95b1Smrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
451110998002Smrg
4512863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
451310998002Smrg$as_echo_n "checking build system type... " >&6; }
4514863f95b1Smrgif ${ac_cv_build+:} false; then :
451510998002Smrg  $as_echo_n "(cached) " >&6
451610998002Smrgelse
451710998002Smrg  ac_build_alias=$build_alias
451810998002Smrgtest "x$ac_build_alias" = x &&
451910998002Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
452010998002Smrgtest "x$ac_build_alias" = x &&
4521863f95b1Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
452210998002Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4523863f95b1Smrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
452410998002Smrg
452510998002Smrgfi
4526863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
452710998002Smrg$as_echo "$ac_cv_build" >&6; }
452810998002Smrgcase $ac_cv_build in
452910998002Smrg*-*-*) ;;
4530863f95b1Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
453110998002Smrgesac
453210998002Smrgbuild=$ac_cv_build
453310998002Smrgac_save_IFS=$IFS; IFS='-'
453410998002Smrgset x $ac_cv_build
453510998002Smrgshift
453610998002Smrgbuild_cpu=$1
453710998002Smrgbuild_vendor=$2
453810998002Smrgshift; shift
453910998002Smrg# Remember, the first character of IFS is used to create $*,
454010998002Smrg# except with old shells:
454110998002Smrgbuild_os=$*
454210998002SmrgIFS=$ac_save_IFS
454310998002Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
454410998002Smrg
454510998002Smrg
4546863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
454710998002Smrg$as_echo_n "checking host system type... " >&6; }
4548863f95b1Smrgif ${ac_cv_host+:} false; then :
454910998002Smrg  $as_echo_n "(cached) " >&6
455010998002Smrgelse
455110998002Smrg  if test "x$host_alias" = x; then
455210998002Smrg  ac_cv_host=$ac_cv_build
455310998002Smrgelse
455410998002Smrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4555863f95b1Smrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
455610998002Smrgfi
455710998002Smrg
455810998002Smrgfi
4559863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
456010998002Smrg$as_echo "$ac_cv_host" >&6; }
456110998002Smrgcase $ac_cv_host in
456210998002Smrg*-*-*) ;;
4563863f95b1Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
456410998002Smrgesac
456510998002Smrghost=$ac_cv_host
456610998002Smrgac_save_IFS=$IFS; IFS='-'
456710998002Smrgset x $ac_cv_host
456810998002Smrgshift
456910998002Smrghost_cpu=$1
457010998002Smrghost_vendor=$2
457110998002Smrgshift; shift
457210998002Smrg# Remember, the first character of IFS is used to create $*,
457310998002Smrg# except with old shells:
457410998002Smrghost_os=$*
457510998002SmrgIFS=$ac_save_IFS
457610998002Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
457710998002Smrg
457810998002Smrg
4579863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4580863f95b1Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4581863f95b1Smrgif ${ac_cv_path_SED+:} false; then :
4582863f95b1Smrg  $as_echo_n "(cached) " >&6
4583863f95b1Smrgelse
4584863f95b1Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4585863f95b1Smrg     for ac_i in 1 2 3 4 5 6 7; do
4586863f95b1Smrg       ac_script="$ac_script$as_nl$ac_script"
4587863f95b1Smrg     done
4588863f95b1Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4589863f95b1Smrg     { ac_script=; unset ac_script;}
4590863f95b1Smrg     if test -z "$SED"; then
4591863f95b1Smrg  ac_path_SED_found=false
4592863f95b1Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
4593863f95b1Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594863f95b1Smrgfor as_dir in $PATH
4595863f95b1Smrgdo
4596863f95b1Smrg  IFS=$as_save_IFS
4597863f95b1Smrg  test -z "$as_dir" && as_dir=.
4598863f95b1Smrg    for ac_prog in sed gsed; do
4599863f95b1Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4600863f95b1Smrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4601863f95b1Smrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4602863f95b1Smrg# Check for GNU ac_path_SED and select it if it is found.
4603863f95b1Smrg  # Check for GNU $ac_path_SED
4604863f95b1Smrgcase `"$ac_path_SED" --version 2>&1` in
4605863f95b1Smrg*GNU*)
4606863f95b1Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4607863f95b1Smrg*)
4608863f95b1Smrg  ac_count=0
4609863f95b1Smrg  $as_echo_n 0123456789 >"conftest.in"
4610863f95b1Smrg  while :
4611863f95b1Smrg  do
4612863f95b1Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4613863f95b1Smrg    mv "conftest.tmp" "conftest.in"
4614863f95b1Smrg    cp "conftest.in" "conftest.nl"
4615863f95b1Smrg    $as_echo '' >> "conftest.nl"
4616863f95b1Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4617863f95b1Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4618863f95b1Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4619863f95b1Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
4620863f95b1Smrg      # Best one so far, save it but keep looking for a better one
4621863f95b1Smrg      ac_cv_path_SED="$ac_path_SED"
4622863f95b1Smrg      ac_path_SED_max=$ac_count
4623863f95b1Smrg    fi
4624863f95b1Smrg    # 10*(2^10) chars as input seems more than enough
4625863f95b1Smrg    test $ac_count -gt 10 && break
4626863f95b1Smrg  done
4627863f95b1Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4628863f95b1Smrgesac
4629863f95b1Smrg
4630863f95b1Smrg      $ac_path_SED_found && break 3
4631863f95b1Smrg    done
4632863f95b1Smrg  done
4633863f95b1Smrg  done
4634863f95b1SmrgIFS=$as_save_IFS
4635863f95b1Smrg  if test -z "$ac_cv_path_SED"; then
4636863f95b1Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4637863f95b1Smrg  fi
4638863f95b1Smrgelse
4639863f95b1Smrg  ac_cv_path_SED=$SED
4640863f95b1Smrgfi
4641863f95b1Smrg
4642863f95b1Smrgfi
4643863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4644863f95b1Smrg$as_echo "$ac_cv_path_SED" >&6; }
4645863f95b1Smrg SED="$ac_cv_path_SED"
4646863f95b1Smrg  rm -f conftest.sed
4647863f95b1Smrg
4648863f95b1Smrg
464910998002Smrg
465010998002Smrg
465110998002Smrg
465210998002Smrgif  test "x$GCC" = xyes ; then
465310998002Smrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
465410998002Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4655863f95b1Smrg-Wbad-function-cast -Wformat=2"
465610998002Smrg    case `$CC -dumpversion` in
465710998002Smrg    3.4.* | 4.*)
465810998002Smrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
465910998002Smrg	;;
466010998002Smrg    esac
466110998002Smrgelse
4662863f95b1Smrg    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4663863f95b1Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
466410998002Smrg  SUNCC="yes"
466510998002Smrgelse
466610998002Smrg  SUNCC="no"
466710998002Smrgfi
466810998002Smrg
466910998002Smrg    if test "x$SUNCC" = "xyes"; then
467010998002Smrg	CWARNFLAGS="-v"
467110998002Smrg    fi
467210998002Smrgfi
467310998002Smrg
467410998002Smrg
467510998002Smrg
4676863f95b1Smrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
467710998002Smrg
467810998002Smrg
467910998002Smrg
468010998002Smrg# Check whether --enable-strict-compilation was given.
4681863f95b1Smrgif test "${enable_strict_compilation+set}" = set; then :
468210998002Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
468310998002Smrgelse
468410998002Smrg  STRICT_COMPILE=no
468510998002Smrgfi
468610998002Smrg
468710998002Smrgif test "x$STRICT_COMPILE" = "xyes"; then
4688863f95b1Smrg	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4689863f95b1Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4690863f95b1Smrg  SUNCC="yes"
4691863f95b1Smrgelse
4692863f95b1Smrg  SUNCC="no"
469310998002Smrgfi
469410998002Smrg
4695863f95b1Smrg	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4696863f95b1Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
469710998002Smrg  INTELCC="yes"
469810998002Smrgelse
469910998002Smrg  INTELCC="no"
470010998002Smrgfi
470110998002Smrg
470210998002Smrg	if test "x$GCC" = xyes ; then
470310998002Smrg		STRICT_CFLAGS="-pedantic -Werror"
470410998002Smrg	elif test "x$SUNCC" = "xyes"; then
470510998002Smrg		STRICT_CFLAGS="-errwarn"
470610998002Smrg    elif test "x$INTELCC" = "xyes"; then
470710998002Smrg		STRICT_CFLAGS="-Werror"
470810998002Smrg	fi
470910998002Smrgfi
471010998002SmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
471110998002Smrg
471210998002Smrg
471310998002Smrg
471410998002Smrg
471510998002Smrgcat >>confdefs.h <<_ACEOF
471610998002Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
471710998002Smrg_ACEOF
471810998002Smrg
471910998002Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
472010998002Smrg	if test "x$PVM" = "x"; then
472110998002Smrg		PVM="0"
472210998002Smrg	fi
472310998002Smrg
472410998002Smrgcat >>confdefs.h <<_ACEOF
472510998002Smrg#define PACKAGE_VERSION_MINOR $PVM
472610998002Smrg_ACEOF
472710998002Smrg
472810998002Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
472910998002Smrg	if test "x$PVP" = "x"; then
473010998002Smrg		PVP="0"
473110998002Smrg	fi
473210998002Smrg
473310998002Smrgcat >>confdefs.h <<_ACEOF
473410998002Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
473510998002Smrg_ACEOF
473610998002Smrg
473710998002Smrg
473810998002Smrg
4739863f95b1SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4740863f95b1Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4741863f95b1Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
474210998002Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
474310998002Smrg
4744863f95b1Smrg
4745863f95b1Smrg
4746863f95b1Smrg
4747863f95b1Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4748863f95b1SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4749863f95b1Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4750863f95b1Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4751863f95b1Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4752863f95b1Smrg
475310998002Smrg
475410998002Smrg
475510998002Smrg
475610998002Smrg
475710998002Smrg
475810998002Smrgif test x$APP_MAN_SUFFIX = x    ; then
475910998002Smrg    APP_MAN_SUFFIX=1
476010998002Smrgfi
476110998002Smrgif test x$APP_MAN_DIR = x    ; then
476210998002Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
476310998002Smrgfi
476410998002Smrg
476510998002Smrgif test x$LIB_MAN_SUFFIX = x    ; then
476610998002Smrg    LIB_MAN_SUFFIX=3
476710998002Smrgfi
476810998002Smrgif test x$LIB_MAN_DIR = x    ; then
476910998002Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
477010998002Smrgfi
477110998002Smrg
477210998002Smrgif test x$FILE_MAN_SUFFIX = x    ; then
477310998002Smrg    case $host_os in
477410998002Smrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
477510998002Smrg	*)		FILE_MAN_SUFFIX=5  ;;
477610998002Smrg    esac
477710998002Smrgfi
477810998002Smrgif test x$FILE_MAN_DIR = x    ; then
477910998002Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
478010998002Smrgfi
478110998002Smrg
478210998002Smrgif test x$MISC_MAN_SUFFIX = x    ; then
478310998002Smrg    case $host_os in
478410998002Smrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
478510998002Smrg	*)		MISC_MAN_SUFFIX=7  ;;
478610998002Smrg    esac
478710998002Smrgfi
478810998002Smrgif test x$MISC_MAN_DIR = x    ; then
478910998002Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
479010998002Smrgfi
479110998002Smrg
479210998002Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
479310998002Smrg    case $host_os in
479410998002Smrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
479510998002Smrg	*)		DRIVER_MAN_SUFFIX=4  ;;
479610998002Smrg    esac
479710998002Smrgfi
479810998002Smrgif test x$DRIVER_MAN_DIR = x    ; then
479910998002Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
480010998002Smrgfi
480110998002Smrg
480210998002Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
480310998002Smrg    case $host_os in
480410998002Smrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
480510998002Smrg	*)		ADMIN_MAN_SUFFIX=8  ;;
480610998002Smrg    esac
480710998002Smrgfi
480810998002Smrgif test x$ADMIN_MAN_DIR = x    ; then
480910998002Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4810ff7e0accSmrgfi
4811ff7e0accSmrg
4812ff7e0accSmrg
4813ff7e0accSmrg
481410998002Smrg
481510998002Smrg
481610998002Smrg
481710998002Smrg
481810998002Smrg
481910998002Smrg
482010998002Smrg
482110998002Smrg
482210998002Smrg
482310998002Smrg
482410998002Smrg
4825ff7e0accSmrg
4826863f95b1SmrgXORG_MAN_PAGE="X Version 11"
4827863f95b1Smrg
4828863f95b1SmrgMAN_SUBSTS="\
4829863f95b1Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4830863f95b1Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4831863f95b1Smrg	-e 's|__xservername__|Xorg|g' \
4832863f95b1Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
4833863f95b1Smrg	-e 's|__projectroot__|\$(prefix)|g' \
4834863f95b1Smrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
4835863f95b1Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4836863f95b1Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4837863f95b1Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4838863f95b1Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4839863f95b1Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4840863f95b1Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4841863f95b1Smrg
4842863f95b1Smrg
4843863f95b1Smrg
4844863f95b1Smrg# Check whether --enable-silent-rules was given.
4845863f95b1Smrgif test "${enable_silent_rules+set}" = set; then :
4846863f95b1Smrg  enableval=$enable_silent_rules;
4847863f95b1Smrgfi
4848863f95b1Smrg
4849863f95b1Smrgcase $enable_silent_rules in
4850863f95b1Smrgyes) AM_DEFAULT_VERBOSITY=0;;
4851863f95b1Smrgno)  AM_DEFAULT_VERBOSITY=1;;
4852863f95b1Smrg*)   AM_DEFAULT_VERBOSITY=0;;
4853863f95b1Smrgesac
4854863f95b1SmrgAM_BACKSLASH='\'
4855ff7e0accSmrg
4856ff7e0accSmrg
4857ff7e0accSmrg
4858ff7e0accSmrgfor ac_func in strlcat
4859863f95b1Smrgdo :
4860863f95b1Smrg  ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
4861863f95b1Smrgif test "x$ac_cv_func_strlcat" = xyes; then :
4862863f95b1Smrg  cat >>confdefs.h <<_ACEOF
4863863f95b1Smrg#define HAVE_STRLCAT 1
4864863f95b1Smrg_ACEOF
4865863f95b1Smrg
4866863f95b1Smrgfi
4867863f95b1Smrgdone
4868863f95b1Smrg
4869863f95b1Smrg
4870863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
4871863f95b1Smrg$as_echo_n "checking for working strnlen... " >&6; }
4872863f95b1Smrgif ${ac_cv_func_strnlen_working+:} false; then :
4873a005d216Smrg  $as_echo_n "(cached) " >&6
4874ff7e0accSmrgelse
4875863f95b1Smrg  if test "$cross_compiling" = yes; then :
4876863f95b1Smrg  # Guess no on AIX systems, yes otherwise.
4877863f95b1Smrg		case "$host_os" in
4878863f95b1Smrg		  aix*) ac_cv_func_strnlen_working=no;;
4879863f95b1Smrg		  *)    ac_cv_func_strnlen_working=yes;;
4880863f95b1Smrg		esac
4881863f95b1Smrgelse
4882863f95b1Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883ff7e0accSmrg/* end confdefs.h.  */
4884863f95b1Smrg$ac_includes_default
4885863f95b1Smrgint
4886863f95b1Smrgmain ()
4887863f95b1Smrg{
4888ff7e0accSmrg
4889863f95b1Smrg#define S "foobar"
4890863f95b1Smrg#define S_LEN (sizeof S - 1)
4891ff7e0accSmrg
4892863f95b1Smrg  /* At least one implementation is buggy: that of AIX 4.3 would
4893863f95b1Smrg     give strnlen (S, 1) == 3.  */
4894863f95b1Smrg
4895863f95b1Smrg  int i;
4896863f95b1Smrg  for (i = 0; i < S_LEN + 1; ++i)
4897863f95b1Smrg    {
4898863f95b1Smrg      int expected = i <= S_LEN ? i : S_LEN;
4899863f95b1Smrg      if (strnlen (S, i) != expected)
4900863f95b1Smrg	return 1;
4901863f95b1Smrg    }
4902863f95b1Smrg  return 0;
4903863f95b1Smrg
4904863f95b1Smrg  ;
4905863f95b1Smrg  return 0;
4906863f95b1Smrg}
4907863f95b1Smrg_ACEOF
4908863f95b1Smrgif ac_fn_c_try_run "$LINENO"; then :
4909863f95b1Smrg  ac_cv_func_strnlen_working=yes
4910863f95b1Smrgelse
4911863f95b1Smrg  ac_cv_func_strnlen_working=no
4912863f95b1Smrgfi
4913863f95b1Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4914863f95b1Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
4915863f95b1Smrgfi
4916ff7e0accSmrg
4917863f95b1Smrgfi
4918863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
4919863f95b1Smrg$as_echo "$ac_cv_func_strnlen_working" >&6; }
4920863f95b1Smrgtest $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
4921863f95b1Smrg  *" strnlen.$ac_objext "* ) ;;
4922863f95b1Smrg  *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
4923863f95b1Smrg ;;
4924863f95b1Smrgesac
4925863f95b1Smrg
4926863f95b1Smrg
4927863f95b1Smrgif test "x$ac_cv_func_strnlen_working" = xyes; then
4928863f95b1Smrg
4929863f95b1Smrg$as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
4930863f95b1Smrg
4931863f95b1Smrgfi
4932863f95b1Smrg
4933863f95b1Smrg# Check for iconv in libc, then libiconv
4934863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv" >&5
4935863f95b1Smrg$as_echo_n "checking for library containing iconv... " >&6; }
4936863f95b1Smrgif ${ac_cv_search_iconv+:} false; then :
4937863f95b1Smrg  $as_echo_n "(cached) " >&6
4938863f95b1Smrgelse
4939863f95b1Smrg  ac_func_search_save_LIBS=$LIBS
4940863f95b1Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941863f95b1Smrg/* end confdefs.h.  */
4942ff7e0accSmrg
4943ff7e0accSmrg/* Override any GCC internal prototype to avoid an error.
4944ff7e0accSmrg   Use char because int might match the return type of a GCC
4945ff7e0accSmrg   builtin and then its argument prototype would still apply.  */
4946ff7e0accSmrg#ifdef __cplusplus
4947ff7e0accSmrgextern "C"
4948ff7e0accSmrg#endif
4949863f95b1Smrgchar iconv ();
4950ff7e0accSmrgint
4951ff7e0accSmrgmain ()
4952ff7e0accSmrg{
4953863f95b1Smrgreturn iconv ();
4954ff7e0accSmrg  ;
4955ff7e0accSmrg  return 0;
4956ff7e0accSmrg}
4957ff7e0accSmrg_ACEOF
4958863f95b1Smrgfor ac_lib in '' iconv; do
4959863f95b1Smrg  if test -z "$ac_lib"; then
4960863f95b1Smrg    ac_res="none required"
4961863f95b1Smrg  else
4962863f95b1Smrg    ac_res=-l$ac_lib
4963863f95b1Smrg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4964863f95b1Smrg  fi
4965863f95b1Smrg  if ac_fn_c_try_link "$LINENO"; then :
4966863f95b1Smrg  ac_cv_search_iconv=$ac_res
4967ff7e0accSmrgfi
4968863f95b1Smrgrm -f core conftest.err conftest.$ac_objext \
4969863f95b1Smrg    conftest$ac_exeext
4970863f95b1Smrg  if ${ac_cv_search_iconv+:} false; then :
4971863f95b1Smrg  break
4972ff7e0accSmrgfi
4973863f95b1Smrgdone
4974863f95b1Smrgif ${ac_cv_search_iconv+:} false; then :
4975ff7e0accSmrg
4976863f95b1Smrgelse
4977863f95b1Smrg  ac_cv_search_iconv=no
4978ff7e0accSmrgfi
4979863f95b1Smrgrm conftest.$ac_ext
4980863f95b1SmrgLIBS=$ac_func_search_save_LIBS
4981863f95b1Smrgfi
4982863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv" >&5
4983863f95b1Smrg$as_echo "$ac_cv_search_iconv" >&6; }
4984863f95b1Smrgac_res=$ac_cv_search_iconv
4985863f95b1Smrgif test "$ac_res" != no; then :
4986863f95b1Smrg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4987ff7e0accSmrg
4988863f95b1Smrg$as_echo "#define HAVE_ICONV 1" >>confdefs.h
4989ff7e0accSmrg
4990863f95b1Smrgfi
4991ff7e0accSmrg
4992ff7e0accSmrg
4993863f95b1Smrg# Allow using xcb-icccm, but don't make it the default while the API is
4994863f95b1Smrg# still being changed.
4995863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xcb-icccm library" >&5
4996863f95b1Smrg$as_echo_n "checking whether to use xcb-icccm library... " >&6; }
4997ff7e0accSmrg
4998863f95b1Smrg# Check whether --with-xcb-icccm was given.
4999863f95b1Smrgif test "${with_xcb_icccm+set}" = set; then :
5000863f95b1Smrg  withval=$with_xcb_icccm;
5001ff7e0accSmrgelse
5002863f95b1Smrg  with_xcb_icccm=no
5003ff7e0accSmrgfi
5004ff7e0accSmrg
5005863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xcb_icccm" >&5
5006863f95b1Smrg$as_echo "$with_xcb_icccm" >&6; }
5007863f95b1Smrgif test "x$with_xcb_icccm" != xno ; then
5008ff7e0accSmrg
5009863f95b1Smrg$as_echo "#define USE_XCB_ICCCM 1" >>confdefs.h
5010863f95b1Smrg
5011863f95b1Smrg	xcb_icccm_pc="xcb-icccm"
5012ff7e0accSmrgfi
5013ff7e0accSmrg
5014863f95b1Smrg# Checks for pkg-config packages
5015863f95b1Smrg
5016863f95b1Smrgpkg_failed=no
5017863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XWININFO" >&5
5018863f95b1Smrg$as_echo_n "checking for XWININFO... " >&6; }
5019863f95b1Smrg
5020863f95b1Smrgif test -n "$XWININFO_CFLAGS"; then
5021863f95b1Smrg    pkg_cv_XWININFO_CFLAGS="$XWININFO_CFLAGS"
5022863f95b1Smrg elif test -n "$PKG_CONFIG"; then
5023863f95b1Smrg    if test -n "$PKG_CONFIG" && \
5024863f95b1Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.6 xcb-shape \${xcb_icccm_pc}\""; } >&5
5025863f95b1Smrg  ($PKG_CONFIG --exists --print-errors "xcb >= 1.6 xcb-shape ${xcb_icccm_pc}") 2>&5
5026863f95b1Smrg  ac_status=$?
5027863f95b1Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5028863f95b1Smrg  test $ac_status = 0; }; then
5029863f95b1Smrg  pkg_cv_XWININFO_CFLAGS=`$PKG_CONFIG --cflags "xcb >= 1.6 xcb-shape ${xcb_icccm_pc}" 2>/dev/null`
5030863f95b1Smrgelse
5031863f95b1Smrg  pkg_failed=yes
5032ff7e0accSmrgfi
5033863f95b1Smrg else
5034863f95b1Smrg    pkg_failed=untried
5035863f95b1Smrgfi
5036863f95b1Smrgif test -n "$XWININFO_LIBS"; then
5037863f95b1Smrg    pkg_cv_XWININFO_LIBS="$XWININFO_LIBS"
5038863f95b1Smrg elif test -n "$PKG_CONFIG"; then
5039863f95b1Smrg    if test -n "$PKG_CONFIG" && \
5040863f95b1Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.6 xcb-shape \${xcb_icccm_pc}\""; } >&5
5041863f95b1Smrg  ($PKG_CONFIG --exists --print-errors "xcb >= 1.6 xcb-shape ${xcb_icccm_pc}") 2>&5
5042863f95b1Smrg  ac_status=$?
5043863f95b1Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5044863f95b1Smrg  test $ac_status = 0; }; then
5045863f95b1Smrg  pkg_cv_XWININFO_LIBS=`$PKG_CONFIG --libs "xcb >= 1.6 xcb-shape ${xcb_icccm_pc}" 2>/dev/null`
5046ff7e0accSmrgelse
5047863f95b1Smrg  pkg_failed=yes
5048863f95b1Smrgfi
5049863f95b1Smrg else
5050863f95b1Smrg    pkg_failed=untried
5051ff7e0accSmrgfi
5052ff7e0accSmrg
5053863f95b1Smrg
5054863f95b1Smrg
5055863f95b1Smrgif test $pkg_failed = yes; then
5056863f95b1Smrg
5057863f95b1Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5058863f95b1Smrg        _pkg_short_errors_supported=yes
5059ff7e0accSmrgelse
5060863f95b1Smrg        _pkg_short_errors_supported=no
5061ff7e0accSmrgfi
5062863f95b1Smrg        if test $_pkg_short_errors_supported = yes; then
5063863f95b1Smrg	        XWININFO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb >= 1.6 xcb-shape ${xcb_icccm_pc}" 2>&1`
5064863f95b1Smrg        else
5065863f95b1Smrg	        XWININFO_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb >= 1.6 xcb-shape ${xcb_icccm_pc}" 2>&1`
5066863f95b1Smrg        fi
5067863f95b1Smrg	# Put the nasty error message in config.log where it belongs
5068863f95b1Smrg	echo "$XWININFO_PKG_ERRORS" >&5
5069ff7e0accSmrg
5070863f95b1Smrg	as_fn_error $? "Package requirements (xcb >= 1.6 xcb-shape ${xcb_icccm_pc}) were not met:
5071863f95b1Smrg
5072863f95b1Smrg$XWININFO_PKG_ERRORS
5073863f95b1Smrg
5074863f95b1SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
5075863f95b1Smrginstalled software in a non-standard prefix.
5076863f95b1Smrg
5077863f95b1SmrgAlternatively, you may set the environment variables XWININFO_CFLAGS
5078863f95b1Smrgand XWININFO_LIBS to avoid the need to call pkg-config.
5079863f95b1SmrgSee the pkg-config man page for more details.
5080863f95b1Smrg" "$LINENO" 5
5081863f95b1Smrgelif test $pkg_failed = untried; then
5082863f95b1Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5083863f95b1Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5084863f95b1Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
5085863f95b1Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
5086863f95b1Smrgpath to pkg-config.
5087863f95b1Smrg
5088863f95b1SmrgAlternatively, you may set the environment variables XWININFO_CFLAGS
5089863f95b1Smrgand XWININFO_LIBS to avoid the need to call pkg-config.
5090863f95b1SmrgSee the pkg-config man page for more details.
5091ff7e0accSmrg
5092863f95b1SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
5093863f95b1SmrgSee \`config.log' for more details" "$LINENO" 5; }
5094863f95b1Smrgelse
5095863f95b1Smrg	XWININFO_CFLAGS=$pkg_cv_XWININFO_CFLAGS
5096863f95b1Smrg	XWININFO_LIBS=$pkg_cv_XWININFO_LIBS
5097863f95b1Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5098863f95b1Smrg$as_echo "yes" >&6; }
5099863f95b1Smrg	:
5100ff7e0accSmrgfi
5101ff7e0accSmrg
5102863f95b1Smrg# Even when using xcb, xproto is still required for Xfuncproto.h
5103863f95b1Smrg# and libX11 headers for cursorfont.h
5104a005d216Smrg
5105863f95b1Smrgpkg_failed=no
5106863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB" >&5
5107863f95b1Smrg$as_echo_n "checking for XLIB... " >&6; }
5108863f95b1Smrg
5109863f95b1Smrgif test -n "$XLIB_CFLAGS"; then
5110863f95b1Smrg    pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS"
5111a005d216Smrg elif test -n "$PKG_CONFIG"; then
5112a005d216Smrg    if test -n "$PKG_CONFIG" && \
5113863f95b1Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
5114863f95b1Smrg  ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
5115ff7e0accSmrg  ac_status=$?
5116863f95b1Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5117863f95b1Smrg  test $ac_status = 0; }; then
5118863f95b1Smrg  pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.17" 2>/dev/null`
5119ff7e0accSmrgelse
5120ff7e0accSmrg  pkg_failed=yes
5121ff7e0accSmrgfi
5122a005d216Smrg else
5123a005d216Smrg    pkg_failed=untried
5124ff7e0accSmrgfi
5125863f95b1Smrgif test -n "$XLIB_LIBS"; then
5126863f95b1Smrg    pkg_cv_XLIB_LIBS="$XLIB_LIBS"
5127a005d216Smrg elif test -n "$PKG_CONFIG"; then
5128a005d216Smrg    if test -n "$PKG_CONFIG" && \
5129863f95b1Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
5130863f95b1Smrg  ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
5131ff7e0accSmrg  ac_status=$?
5132863f95b1Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5133863f95b1Smrg  test $ac_status = 0; }; then
5134863f95b1Smrg  pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.17" 2>/dev/null`
5135ff7e0accSmrgelse
5136ff7e0accSmrg  pkg_failed=yes
5137ff7e0accSmrgfi
5138a005d216Smrg else
5139a005d216Smrg    pkg_failed=untried
5140ff7e0accSmrgfi
5141ff7e0accSmrg
5142a005d216Smrg
5143a005d216Smrg
5144ff7e0accSmrgif test $pkg_failed = yes; then
5145a005d216Smrg
5146a005d216Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5147a005d216Smrg        _pkg_short_errors_supported=yes
5148a005d216Smrgelse
5149a005d216Smrg        _pkg_short_errors_supported=no
5150a005d216Smrgfi
5151a005d216Smrg        if test $_pkg_short_errors_supported = yes; then
5152863f95b1Smrg	        XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xproto >= 7.0.17" 2>&1`
5153a005d216Smrg        else
5154863f95b1Smrg	        XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xproto >= 7.0.17" 2>&1`
5155a005d216Smrg        fi
5156ff7e0accSmrg	# Put the nasty error message in config.log where it belongs
5157863f95b1Smrg	echo "$XLIB_PKG_ERRORS" >&5
5158ff7e0accSmrg
5159863f95b1Smrg	as_fn_error $? "Package requirements (x11 xproto >= 7.0.17) were not met:
5160a005d216Smrg
5161863f95b1Smrg$XLIB_PKG_ERRORS
5162a005d216Smrg
5163ff7e0accSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
5164ff7e0accSmrginstalled software in a non-standard prefix.
5165ff7e0accSmrg
5166863f95b1SmrgAlternatively, you may set the environment variables XLIB_CFLAGS
5167863f95b1Smrgand XLIB_LIBS to avoid the need to call pkg-config.
5168a005d216SmrgSee the pkg-config man page for more details.
5169863f95b1Smrg" "$LINENO" 5
5170ff7e0accSmrgelif test $pkg_failed = untried; then
5171863f95b1Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
517210998002Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5173863f95b1Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
5174ff7e0accSmrgis in your PATH or set the PKG_CONFIG environment variable to the full
5175ff7e0accSmrgpath to pkg-config.
5176ff7e0accSmrg
5177863f95b1SmrgAlternatively, you may set the environment variables XLIB_CFLAGS
5178863f95b1Smrgand XLIB_LIBS to avoid the need to call pkg-config.
5179a005d216SmrgSee the pkg-config man page for more details.
5180ff7e0accSmrg
5181a005d216SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
5182863f95b1SmrgSee \`config.log' for more details" "$LINENO" 5; }
5183ff7e0accSmrgelse
5184863f95b1Smrg	XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS
5185863f95b1Smrg	XLIB_LIBS=$pkg_cv_XLIB_LIBS
5186863f95b1Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5187a005d216Smrg$as_echo "yes" >&6; }
5188ff7e0accSmrg	:
5189ff7e0accSmrgfi
5190863f95b1SmrgXWININFO_CFLAGS="${XWININFO_CFLAGS} ${XLIB_CFLAGS}"
5191ff7e0accSmrg
5192ff7e0accSmrgac_config_files="$ac_config_files Makefile"
5193ff7e0accSmrg
5194ff7e0accSmrgcat >confcache <<\_ACEOF
5195ff7e0accSmrg# This file is a shell script that caches the results of configure
5196ff7e0accSmrg# tests run on this system so they can be shared between configure
5197ff7e0accSmrg# scripts and configure runs, see configure's option --config-cache.
5198ff7e0accSmrg# It is not useful on other systems.  If it contains results you don't
5199ff7e0accSmrg# want to keep, you may remove or edit it.
5200ff7e0accSmrg#
5201ff7e0accSmrg# config.status only pays attention to the cache file if you give it
5202ff7e0accSmrg# the --recheck option to rerun configure.
5203ff7e0accSmrg#
5204ff7e0accSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
5205ff7e0accSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
5206ff7e0accSmrg# following values.
5207ff7e0accSmrg
5208ff7e0accSmrg_ACEOF
5209ff7e0accSmrg
5210ff7e0accSmrg# The following way of writing the cache mishandles newlines in values,
5211ff7e0accSmrg# but we know of no workaround that is simple, portable, and efficient.
5212ff7e0accSmrg# So, we kill variables containing newlines.
5213ff7e0accSmrg# Ultrix sh set writes to stderr and can't be redirected directly,
5214ff7e0accSmrg# and sets the high bit in the cache file unless we assign to the vars.
5215ff7e0accSmrg(
5216ff7e0accSmrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5217ff7e0accSmrg    eval ac_val=\$$ac_var
5218ff7e0accSmrg    case $ac_val in #(
5219ff7e0accSmrg    *${as_nl}*)
5220ff7e0accSmrg      case $ac_var in #(
5221863f95b1Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
522210998002Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5223ff7e0accSmrg      esac
5224ff7e0accSmrg      case $ac_var in #(
5225ff7e0accSmrg      _ | IFS | as_nl) ;; #(
5226a005d216Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5227863f95b1Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
5228ff7e0accSmrg      esac ;;
5229ff7e0accSmrg    esac
5230ff7e0accSmrg  done
5231ff7e0accSmrg
5232ff7e0accSmrg  (set) 2>&1 |
5233ff7e0accSmrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
5234ff7e0accSmrg    *${as_nl}ac_space=\ *)
5235863f95b1Smrg      # `set' does not quote correctly, so add quotes: double-quote
5236863f95b1Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
5237ff7e0accSmrg      sed -n \
5238ff7e0accSmrg	"s/'/'\\\\''/g;
5239ff7e0accSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5240ff7e0accSmrg      ;; #(
5241ff7e0accSmrg    *)
5242ff7e0accSmrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
5243ff7e0accSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5244ff7e0accSmrg      ;;
5245ff7e0accSmrg    esac |
5246ff7e0accSmrg    sort
5247ff7e0accSmrg) |
5248ff7e0accSmrg  sed '
5249ff7e0accSmrg     /^ac_cv_env_/b end
5250ff7e0accSmrg     t clear
5251ff7e0accSmrg     :clear
5252ff7e0accSmrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5253ff7e0accSmrg     t end
5254ff7e0accSmrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5255ff7e0accSmrg     :end' >>confcache
5256ff7e0accSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5257ff7e0accSmrg  if test -w "$cache_file"; then
5258863f95b1Smrg    if test "x$cache_file" != "x/dev/null"; then
5259863f95b1Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5260a005d216Smrg$as_echo "$as_me: updating cache $cache_file" >&6;}
5261863f95b1Smrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
5262863f95b1Smrg	cat confcache >"$cache_file"
5263863f95b1Smrg      else
5264863f95b1Smrg        case $cache_file in #(
5265863f95b1Smrg        */* | ?:*)
5266863f95b1Smrg	  mv -f confcache "$cache_file"$$ &&
5267863f95b1Smrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
5268863f95b1Smrg        *)
5269863f95b1Smrg	  mv -f confcache "$cache_file" ;;
5270863f95b1Smrg	esac
5271863f95b1Smrg      fi
5272863f95b1Smrg    fi
5273ff7e0accSmrg  else
5274863f95b1Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5275a005d216Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5276ff7e0accSmrg  fi
5277ff7e0accSmrgfi
5278ff7e0accSmrgrm -f confcache
5279ff7e0accSmrg
5280ff7e0accSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
5281ff7e0accSmrg# Let make expand exec_prefix.
5282ff7e0accSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5283ff7e0accSmrg
5284ff7e0accSmrgDEFS=-DHAVE_CONFIG_H
5285ff7e0accSmrg
5286ff7e0accSmrgac_libobjs=
5287ff7e0accSmrgac_ltlibobjs=
5288863f95b1SmrgU=
5289ff7e0accSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5290ff7e0accSmrg  # 1. Remove the extension, and $U if already installed.
5291ff7e0accSmrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5292a005d216Smrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5293ff7e0accSmrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5294ff7e0accSmrg  #    will be set to the directory where LIBOBJS objects are built.
5295863f95b1Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5296863f95b1Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5297ff7e0accSmrgdone
5298ff7e0accSmrgLIBOBJS=$ac_libobjs
5299ff7e0accSmrg
5300ff7e0accSmrgLTLIBOBJS=$ac_ltlibobjs
5301ff7e0accSmrg
5302ff7e0accSmrg
530310998002Smrg if test -n "$EXEEXT"; then
530410998002Smrg  am__EXEEXT_TRUE=
530510998002Smrg  am__EXEEXT_FALSE='#'
530610998002Smrgelse
530710998002Smrg  am__EXEEXT_TRUE='#'
530810998002Smrg  am__EXEEXT_FALSE=
530910998002Smrgfi
531010998002Smrg
5311ff7e0accSmrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5312863f95b1Smrg  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
5313863f95b1SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
5314ff7e0accSmrgfi
5315ff7e0accSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5316863f95b1Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
5317863f95b1SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
5318ff7e0accSmrgfi
5319ff7e0accSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5320863f95b1Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5321863f95b1SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
5322ff7e0accSmrgfi
5323ff7e0accSmrg
5324863f95b1Smrg: "${CONFIG_STATUS=./config.status}"
5325a005d216Smrgac_write_fail=0
5326ff7e0accSmrgac_clean_files_save=$ac_clean_files
5327ff7e0accSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
5328863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5329a005d216Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5330863f95b1Smrgas_write_fail=0
5331863f95b1Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5332ff7e0accSmrg#! $SHELL
5333ff7e0accSmrg# Generated by $as_me.
5334ff7e0accSmrg# Run this file to recreate the current configuration.
5335ff7e0accSmrg# Compiler output produced by configure, useful for debugging
5336ff7e0accSmrg# configure, is in config.log if it exists.
5337ff7e0accSmrg
5338ff7e0accSmrgdebug=false
5339ff7e0accSmrgac_cs_recheck=false
5340ff7e0accSmrgac_cs_silent=false
5341ff7e0accSmrg
5342863f95b1SmrgSHELL=\${CONFIG_SHELL-$SHELL}
5343863f95b1Smrgexport SHELL
5344863f95b1Smrg_ASEOF
5345863f95b1Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5346863f95b1Smrg## -------------------- ##
5347863f95b1Smrg## M4sh Initialization. ##
5348863f95b1Smrg## -------------------- ##
5349ff7e0accSmrg
5350ff7e0accSmrg# Be more Bourne compatible
5351ff7e0accSmrgDUALCASE=1; export DUALCASE # for MKS sh
5352863f95b1Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5353ff7e0accSmrg  emulate sh
5354ff7e0accSmrg  NULLCMD=:
5355a005d216Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5356ff7e0accSmrg  # is contrary to our usage.  Disable this feature.
5357ff7e0accSmrg  alias -g '${1+"$@"}'='"$@"'
5358ff7e0accSmrg  setopt NO_GLOB_SUBST
5359ff7e0accSmrgelse
5360863f95b1Smrg  case `(set -o) 2>/dev/null` in #(
5361863f95b1Smrg  *posix*) :
5362863f95b1Smrg    set -o posix ;; #(
5363863f95b1Smrg  *) :
5364863f95b1Smrg     ;;
5365ff7e0accSmrgesac
5366ff7e0accSmrgfi
5367ff7e0accSmrg
5368ff7e0accSmrg
5369a005d216Smrgas_nl='
5370a005d216Smrg'
5371a005d216Smrgexport as_nl
5372a005d216Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
5373a005d216Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5374a005d216Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5375a005d216Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5376863f95b1Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
5377863f95b1Smrg# but without wasting forks for bash or zsh.
5378863f95b1Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
5379863f95b1Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5380863f95b1Smrg  as_echo='print -r --'
5381863f95b1Smrg  as_echo_n='print -rn --'
5382863f95b1Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5383a005d216Smrg  as_echo='printf %s\n'
5384a005d216Smrg  as_echo_n='printf %s'
5385a005d216Smrgelse
5386a005d216Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5387a005d216Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5388a005d216Smrg    as_echo_n='/usr/ucb/echo -n'
5389ff7e0accSmrg  else
5390a005d216Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5391a005d216Smrg    as_echo_n_body='eval
5392a005d216Smrg      arg=$1;
5393863f95b1Smrg      case $arg in #(
5394a005d216Smrg      *"$as_nl"*)
5395a005d216Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
5396a005d216Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5397a005d216Smrg      esac;
5398a005d216Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5399a005d216Smrg    '
5400a005d216Smrg    export as_echo_n_body
5401a005d216Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
5402ff7e0accSmrg  fi
5403a005d216Smrg  export as_echo_body
5404a005d216Smrg  as_echo='sh -c $as_echo_body as_echo'
5405a005d216Smrgfi
5406a005d216Smrg
5407a005d216Smrg# The user is always right.
5408a005d216Smrgif test "${PATH_SEPARATOR+set}" != set; then
5409a005d216Smrg  PATH_SEPARATOR=:
5410a005d216Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5411a005d216Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5412a005d216Smrg      PATH_SEPARATOR=';'
5413a005d216Smrg  }
5414ff7e0accSmrgfi
5415ff7e0accSmrg
5416ff7e0accSmrg
5417ff7e0accSmrg# IFS
5418ff7e0accSmrg# We need space, tab and new line, in precisely that order.  Quoting is
5419ff7e0accSmrg# there to prevent editors from complaining about space-tab.
5420ff7e0accSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5421ff7e0accSmrg# splitting by setting IFS to empty value.)
5422ff7e0accSmrgIFS=" ""	$as_nl"
5423ff7e0accSmrg
5424ff7e0accSmrg# Find who we are.  Look in the path if we contain no directory separator.
5425863f95b1Smrgas_myself=
5426863f95b1Smrgcase $0 in #((
5427ff7e0accSmrg  *[\\/]* ) as_myself=$0 ;;
5428ff7e0accSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429ff7e0accSmrgfor as_dir in $PATH
5430ff7e0accSmrgdo
5431ff7e0accSmrg  IFS=$as_save_IFS
5432ff7e0accSmrg  test -z "$as_dir" && as_dir=.
5433863f95b1Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5434863f95b1Smrg  done
5435ff7e0accSmrgIFS=$as_save_IFS
5436ff7e0accSmrg
5437ff7e0accSmrg     ;;
5438ff7e0accSmrgesac
5439ff7e0accSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
5440ff7e0accSmrg# in which case we are not to be found in the path.
5441ff7e0accSmrgif test "x$as_myself" = x; then
5442ff7e0accSmrg  as_myself=$0
5443ff7e0accSmrgfi
5444ff7e0accSmrgif test ! -f "$as_myself"; then
5445a005d216Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5446863f95b1Smrg  exit 1
5447ff7e0accSmrgfi
5448ff7e0accSmrg
5449863f95b1Smrg# Unset variables that we do not need and which cause bugs (e.g. in
5450863f95b1Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5451863f95b1Smrg# suppresses any "Segmentation fault" message there.  '((' could
5452863f95b1Smrg# trigger a bug in pdksh 5.2.14.
5453863f95b1Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
5454863f95b1Smrgdo eval test x\${$as_var+set} = xset \
5455863f95b1Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5456ff7e0accSmrgdone
5457ff7e0accSmrgPS1='$ '
5458ff7e0accSmrgPS2='> '
5459ff7e0accSmrgPS4='+ '
5460ff7e0accSmrg
5461ff7e0accSmrg# NLS nuisances.
5462a005d216SmrgLC_ALL=C
5463a005d216Smrgexport LC_ALL
5464a005d216SmrgLANGUAGE=C
5465a005d216Smrgexport LANGUAGE
5466ff7e0accSmrg
5467863f95b1Smrg# CDPATH.
5468863f95b1Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5469863f95b1Smrg
5470863f95b1Smrg
5471863f95b1Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
5472863f95b1Smrg# ----------------------------------------
5473863f95b1Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5474863f95b1Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5475863f95b1Smrg# script with STATUS, using 1 if that was 0.
5476863f95b1Smrgas_fn_error ()
5477863f95b1Smrg{
5478863f95b1Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
5479863f95b1Smrg  if test "$4"; then
5480863f95b1Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5481863f95b1Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5482863f95b1Smrg  fi
5483863f95b1Smrg  $as_echo "$as_me: error: $2" >&2
5484863f95b1Smrg  as_fn_exit $as_status
5485863f95b1Smrg} # as_fn_error
5486863f95b1Smrg
5487863f95b1Smrg
5488863f95b1Smrg# as_fn_set_status STATUS
5489863f95b1Smrg# -----------------------
5490863f95b1Smrg# Set $? to STATUS, without forking.
5491863f95b1Smrgas_fn_set_status ()
5492863f95b1Smrg{
5493863f95b1Smrg  return $1
5494863f95b1Smrg} # as_fn_set_status
5495863f95b1Smrg
5496863f95b1Smrg# as_fn_exit STATUS
5497863f95b1Smrg# -----------------
5498863f95b1Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5499863f95b1Smrgas_fn_exit ()
5500863f95b1Smrg{
5501863f95b1Smrg  set +e
5502863f95b1Smrg  as_fn_set_status $1
5503863f95b1Smrg  exit $1
5504863f95b1Smrg} # as_fn_exit
5505863f95b1Smrg
5506863f95b1Smrg# as_fn_unset VAR
5507863f95b1Smrg# ---------------
5508863f95b1Smrg# Portably unset VAR.
5509863f95b1Smrgas_fn_unset ()
5510863f95b1Smrg{
5511863f95b1Smrg  { eval $1=; unset $1;}
5512863f95b1Smrg}
5513863f95b1Smrgas_unset=as_fn_unset
5514863f95b1Smrg# as_fn_append VAR VALUE
5515863f95b1Smrg# ----------------------
5516863f95b1Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
5517863f95b1Smrg# advantage of any shell optimizations that allow amortized linear growth over
5518863f95b1Smrg# repeated appends, instead of the typical quadratic growth present in naive
5519863f95b1Smrg# implementations.
5520863f95b1Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5521863f95b1Smrg  eval 'as_fn_append ()
5522863f95b1Smrg  {
5523863f95b1Smrg    eval $1+=\$2
5524863f95b1Smrg  }'
5525863f95b1Smrgelse
5526863f95b1Smrg  as_fn_append ()
5527863f95b1Smrg  {
5528863f95b1Smrg    eval $1=\$$1\$2
5529863f95b1Smrg  }
5530863f95b1Smrgfi # as_fn_append
5531863f95b1Smrg
5532863f95b1Smrg# as_fn_arith ARG...
5533863f95b1Smrg# ------------------
5534863f95b1Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
5535863f95b1Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
5536863f95b1Smrg# must be portable across $(()) and expr.
5537863f95b1Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5538863f95b1Smrg  eval 'as_fn_arith ()
5539863f95b1Smrg  {
5540863f95b1Smrg    as_val=$(( $* ))
5541863f95b1Smrg  }'
5542863f95b1Smrgelse
5543863f95b1Smrg  as_fn_arith ()
5544863f95b1Smrg  {
5545863f95b1Smrg    as_val=`expr "$@" || test $? -eq 1`
5546863f95b1Smrg  }
5547863f95b1Smrgfi # as_fn_arith
5548863f95b1Smrg
5549863f95b1Smrg
5550ff7e0accSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
5551ff7e0accSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5552ff7e0accSmrg  as_expr=expr
5553ff7e0accSmrgelse
5554ff7e0accSmrg  as_expr=false
5555ff7e0accSmrgfi
5556ff7e0accSmrg
5557ff7e0accSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5558ff7e0accSmrg  as_basename=basename
5559ff7e0accSmrgelse
5560ff7e0accSmrg  as_basename=false
5561ff7e0accSmrgfi
5562ff7e0accSmrg
5563863f95b1Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5564863f95b1Smrg  as_dirname=dirname
5565863f95b1Smrgelse
5566863f95b1Smrg  as_dirname=false
5567863f95b1Smrgfi
5568ff7e0accSmrg
5569ff7e0accSmrgas_me=`$as_basename -- "$0" ||
5570ff7e0accSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5571ff7e0accSmrg	 X"$0" : 'X\(//\)$' \| \
5572ff7e0accSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5573a005d216Smrg$as_echo X/"$0" |
5574ff7e0accSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
5575ff7e0accSmrg	    s//\1/
5576ff7e0accSmrg	    q
5577ff7e0accSmrg	  }
5578ff7e0accSmrg	  /^X\/\(\/\/\)$/{
5579ff7e0accSmrg	    s//\1/
5580ff7e0accSmrg	    q
5581ff7e0accSmrg	  }
5582ff7e0accSmrg	  /^X\/\(\/\).*/{
5583ff7e0accSmrg	    s//\1/
5584ff7e0accSmrg	    q
5585ff7e0accSmrg	  }
5586ff7e0accSmrg	  s/.*/./; q'`
5587ff7e0accSmrg
5588863f95b1Smrg# Avoid depending upon Character Ranges.
5589863f95b1Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
5590863f95b1Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5591863f95b1Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
5592863f95b1Smrgas_cr_digits='0123456789'
5593863f95b1Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
5594ff7e0accSmrg
5595ff7e0accSmrgECHO_C= ECHO_N= ECHO_T=
5596863f95b1Smrgcase `echo -n x` in #(((((
5597ff7e0accSmrg-n*)
5598863f95b1Smrg  case `echo 'xy\c'` in
5599ff7e0accSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5600863f95b1Smrg  xy)  ECHO_C='\c';;
5601863f95b1Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5602863f95b1Smrg       ECHO_T='	';;
5603ff7e0accSmrg  esac;;
5604ff7e0accSmrg*)
5605ff7e0accSmrg  ECHO_N='-n';;
5606ff7e0accSmrgesac
5607ff7e0accSmrg
5608ff7e0accSmrgrm -f conf$$ conf$$.exe conf$$.file
5609ff7e0accSmrgif test -d conf$$.dir; then
5610ff7e0accSmrg  rm -f conf$$.dir/conf$$.file
5611ff7e0accSmrgelse
5612ff7e0accSmrg  rm -f conf$$.dir
5613a005d216Smrg  mkdir conf$$.dir 2>/dev/null
5614a005d216Smrgfi
5615a005d216Smrgif (echo >conf$$.file) 2>/dev/null; then
5616a005d216Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
5617a005d216Smrg    as_ln_s='ln -s'
5618a005d216Smrg    # ... but there are two gotchas:
5619a005d216Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5620a005d216Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5621a005d216Smrg    # In both cases, we have to default to `cp -p'.
5622a005d216Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5623a005d216Smrg      as_ln_s='cp -p'
5624a005d216Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
5625a005d216Smrg    as_ln_s=ln
5626a005d216Smrg  else
5627ff7e0accSmrg    as_ln_s='cp -p'
5628a005d216Smrg  fi
5629ff7e0accSmrgelse
5630ff7e0accSmrg  as_ln_s='cp -p'
5631ff7e0accSmrgfi
5632ff7e0accSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5633ff7e0accSmrgrmdir conf$$.dir 2>/dev/null
5634ff7e0accSmrg
5635863f95b1Smrg
5636863f95b1Smrg# as_fn_mkdir_p
5637863f95b1Smrg# -------------
5638863f95b1Smrg# Create "$as_dir" as a directory, including parents if necessary.
5639863f95b1Smrgas_fn_mkdir_p ()
5640863f95b1Smrg{
5641863f95b1Smrg
5642863f95b1Smrg  case $as_dir in #(
5643863f95b1Smrg  -*) as_dir=./$as_dir;;
5644863f95b1Smrg  esac
5645863f95b1Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
5646863f95b1Smrg    as_dirs=
5647863f95b1Smrg    while :; do
5648863f95b1Smrg      case $as_dir in #(
5649863f95b1Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5650863f95b1Smrg      *) as_qdir=$as_dir;;
5651863f95b1Smrg      esac
5652863f95b1Smrg      as_dirs="'$as_qdir' $as_dirs"
5653863f95b1Smrg      as_dir=`$as_dirname -- "$as_dir" ||
5654863f95b1Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5655863f95b1Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
5656863f95b1Smrg	 X"$as_dir" : 'X\(//\)$' \| \
5657863f95b1Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5658863f95b1Smrg$as_echo X"$as_dir" |
5659863f95b1Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5660863f95b1Smrg	    s//\1/
5661863f95b1Smrg	    q
5662863f95b1Smrg	  }
5663863f95b1Smrg	  /^X\(\/\/\)[^/].*/{
5664863f95b1Smrg	    s//\1/
5665863f95b1Smrg	    q
5666863f95b1Smrg	  }
5667863f95b1Smrg	  /^X\(\/\/\)$/{
5668863f95b1Smrg	    s//\1/
5669863f95b1Smrg	    q
5670863f95b1Smrg	  }
5671863f95b1Smrg	  /^X\(\/\).*/{
5672863f95b1Smrg	    s//\1/
5673863f95b1Smrg	    q
5674863f95b1Smrg	  }
5675863f95b1Smrg	  s/.*/./; q'`
5676863f95b1Smrg      test -d "$as_dir" && break
5677863f95b1Smrg    done
5678863f95b1Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
5679863f95b1Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5680863f95b1Smrg
5681863f95b1Smrg
5682863f95b1Smrg} # as_fn_mkdir_p
5683ff7e0accSmrgif mkdir -p . 2>/dev/null; then
5684863f95b1Smrg  as_mkdir_p='mkdir -p "$as_dir"'
5685ff7e0accSmrgelse
5686ff7e0accSmrg  test -d ./-p && rmdir ./-p
5687ff7e0accSmrg  as_mkdir_p=false
5688ff7e0accSmrgfi
5689ff7e0accSmrg
5690ff7e0accSmrgif test -x / >/dev/null 2>&1; then
5691ff7e0accSmrg  as_test_x='test -x'
5692ff7e0accSmrgelse
5693ff7e0accSmrg  if ls -dL / >/dev/null 2>&1; then
5694ff7e0accSmrg    as_ls_L_option=L
5695ff7e0accSmrg  else
5696ff7e0accSmrg    as_ls_L_option=
5697ff7e0accSmrg  fi
5698ff7e0accSmrg  as_test_x='
5699ff7e0accSmrg    eval sh -c '\''
5700ff7e0accSmrg      if test -d "$1"; then
5701a005d216Smrg	test -d "$1/.";
5702ff7e0accSmrg      else
5703863f95b1Smrg	case $1 in #(
5704a005d216Smrg	-*)set "./$1";;
5705ff7e0accSmrg	esac;
5706863f95b1Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5707ff7e0accSmrg	???[sx]*):;;*)false;;esac;fi
5708ff7e0accSmrg    '\'' sh
5709ff7e0accSmrg  '
5710ff7e0accSmrgfi
5711ff7e0accSmrgas_executable_p=$as_test_x
5712ff7e0accSmrg
5713ff7e0accSmrg# Sed expression to map a string onto a valid CPP name.
5714ff7e0accSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5715ff7e0accSmrg
5716ff7e0accSmrg# Sed expression to map a string onto a valid variable name.
5717ff7e0accSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5718ff7e0accSmrg
5719ff7e0accSmrg
5720ff7e0accSmrgexec 6>&1
5721863f95b1Smrg## ----------------------------------- ##
5722863f95b1Smrg## Main body of $CONFIG_STATUS script. ##
5723863f95b1Smrg## ----------------------------------- ##
5724863f95b1Smrg_ASEOF
5725863f95b1Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5726ff7e0accSmrg
5727863f95b1Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5728863f95b1Smrg# Save the log message, to keep $0 and so on meaningful, and to
5729ff7e0accSmrg# report actual input values of CONFIG_FILES etc. instead of their
5730ff7e0accSmrg# values after options handling.
5731ff7e0accSmrgac_log="
5732863f95b1SmrgThis file was extended by xwininfo $as_me 1.1.1, which was
5733863f95b1Smrggenerated by GNU Autoconf 2.68.  Invocation command line was
5734ff7e0accSmrg
5735ff7e0accSmrg  CONFIG_FILES    = $CONFIG_FILES
5736ff7e0accSmrg  CONFIG_HEADERS  = $CONFIG_HEADERS
5737ff7e0accSmrg  CONFIG_LINKS    = $CONFIG_LINKS
5738ff7e0accSmrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
5739ff7e0accSmrg  $ $0 $@
5740ff7e0accSmrg
5741ff7e0accSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
5742ff7e0accSmrg"
5743ff7e0accSmrg
5744ff7e0accSmrg_ACEOF
5745ff7e0accSmrg
574610998002Smrgcase $ac_config_files in *"
574710998002Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
574810998002Smrgesac
574910998002Smrg
575010998002Smrgcase $ac_config_headers in *"
575110998002Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
575210998002Smrgesac
575310998002Smrg
575410998002Smrg
5755a005d216Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5756ff7e0accSmrg# Files that config.status was made for.
5757ff7e0accSmrgconfig_files="$ac_config_files"
5758ff7e0accSmrgconfig_headers="$ac_config_headers"
5759ff7e0accSmrgconfig_commands="$ac_config_commands"
5760ff7e0accSmrg
5761ff7e0accSmrg_ACEOF
5762ff7e0accSmrg
5763a005d216Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5764ff7e0accSmrgac_cs_usage="\
5765863f95b1Smrg\`$as_me' instantiates files and other configuration actions
5766863f95b1Smrgfrom templates according to the current configuration.  Unless the files
5767863f95b1Smrgand actions are specified as TAGs, all are instantiated by default.
5768ff7e0accSmrg
5769863f95b1SmrgUsage: $0 [OPTION]... [TAG]...
5770ff7e0accSmrg
5771ff7e0accSmrg  -h, --help       print this help, then exit
5772ff7e0accSmrg  -V, --version    print version number and configuration settings, then exit
5773863f95b1Smrg      --config     print configuration, then exit
577410998002Smrg  -q, --quiet, --silent
577510998002Smrg                   do not print progress messages
5776ff7e0accSmrg  -d, --debug      don't remove temporary files
5777ff7e0accSmrg      --recheck    update $as_me by reconfiguring in the same conditions
577810998002Smrg      --file=FILE[:TEMPLATE]
5779a005d216Smrg                   instantiate the configuration file FILE
578010998002Smrg      --header=FILE[:TEMPLATE]
5781a005d216Smrg                   instantiate the configuration header FILE
5782ff7e0accSmrg
5783ff7e0accSmrgConfiguration files:
5784ff7e0accSmrg$config_files
5785ff7e0accSmrg
5786ff7e0accSmrgConfiguration headers:
5787ff7e0accSmrg$config_headers
5788ff7e0accSmrg
5789ff7e0accSmrgConfiguration commands:
5790ff7e0accSmrg$config_commands
5791ff7e0accSmrg
5792863f95b1SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
5793ff7e0accSmrg
5794ff7e0accSmrg_ACEOF
5795a005d216Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5796863f95b1Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5797ff7e0accSmrgac_cs_version="\\
5798863f95b1Smrgxwininfo config.status 1.1.1
5799863f95b1Smrgconfigured by $0, generated by GNU Autoconf 2.68,
5800863f95b1Smrg  with options \\"\$ac_cs_config\\"
5801ff7e0accSmrg
5802863f95b1SmrgCopyright (C) 2010 Free Software Foundation, Inc.
5803ff7e0accSmrgThis config.status script is free software; the Free Software Foundation
5804ff7e0accSmrggives unlimited permission to copy, distribute and modify it."
5805ff7e0accSmrg
5806ff7e0accSmrgac_pwd='$ac_pwd'
5807ff7e0accSmrgsrcdir='$srcdir'
5808ff7e0accSmrgINSTALL='$INSTALL'
5809ff7e0accSmrgMKDIR_P='$MKDIR_P'
5810a005d216SmrgAWK='$AWK'
5811a005d216Smrgtest -n "\$AWK" || AWK=awk
5812ff7e0accSmrg_ACEOF
5813ff7e0accSmrg
5814a005d216Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5815a005d216Smrg# The default lists apply if the user does not specify any file.
5816ff7e0accSmrgac_need_defaults=:
5817ff7e0accSmrgwhile test $# != 0
5818ff7e0accSmrgdo
5819ff7e0accSmrg  case $1 in
5820863f95b1Smrg  --*=?*)
5821ff7e0accSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5822ff7e0accSmrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5823ff7e0accSmrg    ac_shift=:
5824ff7e0accSmrg    ;;
5825863f95b1Smrg  --*=)
5826863f95b1Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5827863f95b1Smrg    ac_optarg=
5828863f95b1Smrg    ac_shift=:
5829863f95b1Smrg    ;;
5830ff7e0accSmrg  *)
5831ff7e0accSmrg    ac_option=$1
5832ff7e0accSmrg    ac_optarg=$2
5833ff7e0accSmrg    ac_shift=shift
5834ff7e0accSmrg    ;;
5835ff7e0accSmrg  esac
5836ff7e0accSmrg
5837ff7e0accSmrg  case $ac_option in
5838ff7e0accSmrg  # Handling of the options.
5839ff7e0accSmrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5840ff7e0accSmrg    ac_cs_recheck=: ;;
5841ff7e0accSmrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5842a005d216Smrg    $as_echo "$ac_cs_version"; exit ;;
5843863f95b1Smrg  --config | --confi | --conf | --con | --co | --c )
5844863f95b1Smrg    $as_echo "$ac_cs_config"; exit ;;
5845ff7e0accSmrg  --debug | --debu | --deb | --de | --d | -d )
5846ff7e0accSmrg    debug=: ;;
5847ff7e0accSmrg  --file | --fil | --fi | --f )
5848ff7e0accSmrg    $ac_shift
5849a005d216Smrg    case $ac_optarg in
5850a005d216Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5851863f95b1Smrg    '') as_fn_error $? "missing file argument" ;;
5852a005d216Smrg    esac
5853863f95b1Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
5854ff7e0accSmrg    ac_need_defaults=false;;
5855ff7e0accSmrg  --header | --heade | --head | --hea )
5856ff7e0accSmrg    $ac_shift
5857a005d216Smrg    case $ac_optarg in
5858a005d216Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5859a005d216Smrg    esac
5860863f95b1Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5861ff7e0accSmrg    ac_need_defaults=false;;
5862ff7e0accSmrg  --he | --h)
5863ff7e0accSmrg    # Conflict between --help and --header
5864863f95b1Smrg    as_fn_error $? "ambiguous option: \`$1'
5865863f95b1SmrgTry \`$0 --help' for more information.";;
5866ff7e0accSmrg  --help | --hel | -h )
5867a005d216Smrg    $as_echo "$ac_cs_usage"; exit ;;
5868ff7e0accSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5869ff7e0accSmrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5870ff7e0accSmrg    ac_cs_silent=: ;;
5871ff7e0accSmrg
5872ff7e0accSmrg  # This is an error.
5873863f95b1Smrg  -*) as_fn_error $? "unrecognized option: \`$1'
5874863f95b1SmrgTry \`$0 --help' for more information." ;;
5875ff7e0accSmrg
5876863f95b1Smrg  *) as_fn_append ac_config_targets " $1"
5877ff7e0accSmrg     ac_need_defaults=false ;;
5878ff7e0accSmrg
5879ff7e0accSmrg  esac
5880ff7e0accSmrg  shift
5881ff7e0accSmrgdone
5882ff7e0accSmrg
5883ff7e0accSmrgac_configure_extra_args=
5884ff7e0accSmrg
5885ff7e0accSmrgif $ac_cs_silent; then
5886ff7e0accSmrg  exec 6>/dev/null
5887ff7e0accSmrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
5888ff7e0accSmrgfi
5889ff7e0accSmrg
5890ff7e0accSmrg_ACEOF
5891a005d216Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5892ff7e0accSmrgif \$ac_cs_recheck; then
5893a005d216Smrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5894a005d216Smrg  shift
5895a005d216Smrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5896a005d216Smrg  CONFIG_SHELL='$SHELL'
5897ff7e0accSmrg  export CONFIG_SHELL
5898a005d216Smrg  exec "\$@"
5899ff7e0accSmrgfi
5900ff7e0accSmrg
5901ff7e0accSmrg_ACEOF
5902a005d216Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5903ff7e0accSmrgexec 5>>config.log
5904ff7e0accSmrg{
5905ff7e0accSmrg  echo
5906ff7e0accSmrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5907ff7e0accSmrg## Running $as_me. ##
5908ff7e0accSmrg_ASBOX
5909a005d216Smrg  $as_echo "$ac_log"
5910ff7e0accSmrg} >&5
5911ff7e0accSmrg
5912ff7e0accSmrg_ACEOF
5913a005d216Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5914ff7e0accSmrg#
5915ff7e0accSmrg# INIT-COMMANDS
5916ff7e0accSmrg#
5917ff7e0accSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5918ff7e0accSmrg
5919ff7e0accSmrg_ACEOF
5920ff7e0accSmrg
5921a005d216Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5922ff7e0accSmrg
5923ff7e0accSmrg# Handling of arguments.
5924ff7e0accSmrgfor ac_config_target in $ac_config_targets
5925ff7e0accSmrgdo
5926ff7e0accSmrg  case $ac_config_target in
5927ff7e0accSmrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5928ff7e0accSmrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5929ff7e0accSmrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5930ff7e0accSmrg
5931863f95b1Smrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5932ff7e0accSmrg  esac
5933ff7e0accSmrgdone
5934ff7e0accSmrg
5935ff7e0accSmrg
5936ff7e0accSmrg# If the user did not use the arguments to specify the items to instantiate,
5937ff7e0accSmrg# then the envvar interface is used.  Set only those that are not.
5938ff7e0accSmrg# We use the long form for the default assignment because of an extremely
5939ff7e0accSmrg# bizarre bug on SunOS 4.1.3.
5940ff7e0accSmrgif $ac_need_defaults; then
5941ff7e0accSmrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5942ff7e0accSmrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5943ff7e0accSmrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5944ff7e0accSmrgfi
5945ff7e0accSmrg
5946ff7e0accSmrg# Have a temporary directory for convenience.  Make it in the build tree
5947ff7e0accSmrg# simply because there is no reason against having it here, and in addition,
5948ff7e0accSmrg# creating and moving files from /tmp can sometimes cause problems.
5949ff7e0accSmrg# Hook for its removal unless debugging.
5950ff7e0accSmrg# Note that there is a small window in which the directory will not be cleaned:
5951ff7e0accSmrg# after its creation but before its name has been assigned to `$tmp'.
5952ff7e0accSmrg$debug ||
5953ff7e0accSmrg{
5954863f95b1Smrg  tmp= ac_tmp=
5955ff7e0accSmrg  trap 'exit_status=$?
5956863f95b1Smrg  : "${ac_tmp:=$tmp}"
5957863f95b1Smrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5958ff7e0accSmrg' 0
5959863f95b1Smrg  trap 'as_fn_exit 1' 1 2 13 15
5960ff7e0accSmrg}
5961ff7e0accSmrg# Create a (secure) tmp directory for tmp files.
5962ff7e0accSmrg
5963ff7e0accSmrg{
5964ff7e0accSmrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5965863f95b1Smrg  test -d "$tmp"
5966ff7e0accSmrg}  ||
5967ff7e0accSmrg{
5968ff7e0accSmrg  tmp=./conf$$-$RANDOM
5969ff7e0accSmrg  (umask 077 && mkdir "$tmp")
5970863f95b1Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5971863f95b1Smrgac_tmp=$tmp
5972ff7e0accSmrg
5973a005d216Smrg# Set up the scripts for CONFIG_FILES section.
5974a005d216Smrg# No need to generate them if there are no CONFIG_FILES.
5975a005d216Smrg# This happens for instance with `./config.status config.h'.
5976ff7e0accSmrgif test -n "$CONFIG_FILES"; then
5977ff7e0accSmrg
5978ff7e0accSmrg
5979863f95b1Smrgac_cr=`echo X | tr X '\015'`
5980863f95b1Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
5981863f95b1Smrg# But we know of no other shell where ac_cr would be empty at this
5982863f95b1Smrg# point, so we can use a bashism as a fallback.
5983863f95b1Smrgif test "x$ac_cr" = x; then
5984863f95b1Smrg  eval ac_cr=\$\'\\r\'
5985863f95b1Smrgfi
5986a005d216Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5987a005d216Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5988a005d216Smrg  ac_cs_awk_cr='\\r'
5989a005d216Smrgelse
5990a005d216Smrg  ac_cs_awk_cr=$ac_cr
5991ff7e0accSmrgfi
5992ff7e0accSmrg
5993863f95b1Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5994ff7e0accSmrg_ACEOF
5995ff7e0accSmrg
5996ff7e0accSmrg
5997a005d216Smrg{
5998a005d216Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
5999a005d216Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6000a005d216Smrg  echo "_ACEOF"
6001a005d216Smrg} >conf$$subs.sh ||
6002863f95b1Smrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6003863f95b1Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6004ff7e0accSmrgac_delim='%!_!# '
6005ff7e0accSmrgfor ac_last_try in false false false false false :; do
6006a005d216Smrg  . ./conf$$subs.sh ||
6007863f95b1Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6008ff7e0accSmrg
600910998002Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
601010998002Smrg  if test $ac_delim_n = $ac_delim_num; then
6011ff7e0accSmrg    break
6012ff7e0accSmrg  elif $ac_last_try; then
6013863f95b1Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6014ff7e0accSmrg  else
6015ff7e0accSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6016ff7e0accSmrg  fi
6017ff7e0accSmrgdone
6018a005d216Smrgrm -f conf$$subs.sh
6019ff7e0accSmrg
6020a005d216Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6021863f95b1Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6022a005d216Smrg_ACEOF
6023a005d216Smrgsed -n '
6024a005d216Smrgh
6025a005d216Smrgs/^/S["/; s/!.*/"]=/
6026a005d216Smrgp
6027a005d216Smrgg
6028a005d216Smrgs/^[^!]*!//
6029a005d216Smrg:repl
6030a005d216Smrgt repl
6031a005d216Smrgs/'"$ac_delim"'$//
6032a005d216Smrgt delim
6033a005d216Smrg:nl
6034a005d216Smrgh
6035863f95b1Smrgs/\(.\{148\}\)..*/\1/
6036a005d216Smrgt more1
6037a005d216Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6038a005d216Smrgp
6039a005d216Smrgn
6040a005d216Smrgb repl
6041a005d216Smrg:more1
6042a005d216Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
6043a005d216Smrgp
6044a005d216Smrgg
6045a005d216Smrgs/.\{148\}//
6046a005d216Smrgt nl
6047a005d216Smrg:delim
6048a005d216Smrgh
6049863f95b1Smrgs/\(.\{148\}\)..*/\1/
6050a005d216Smrgt more2
6051a005d216Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
6052a005d216Smrgp
6053a005d216Smrgb
6054a005d216Smrg:more2
6055a005d216Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
6056a005d216Smrgp
6057a005d216Smrgg
6058a005d216Smrgs/.\{148\}//
6059a005d216Smrgt delim
6060a005d216Smrg' <conf$$subs.awk | sed '
6061a005d216Smrg/^[^""]/{
6062a005d216Smrg  N
6063a005d216Smrg  s/\n//
6064a005d216Smrg}
6065a005d216Smrg' >>$CONFIG_STATUS || ac_write_fail=1
6066a005d216Smrgrm -f conf$$subs.awk
6067a005d216Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6068a005d216Smrg_ACAWK
6069863f95b1Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6070a005d216Smrg  for (key in S) S_is_set[key] = 1
6071a005d216Smrg  FS = ""
6072a005d216Smrg
6073a005d216Smrg}
6074a005d216Smrg{
6075a005d216Smrg  line = $ 0
6076a005d216Smrg  nfields = split(line, field, "@")
6077a005d216Smrg  substed = 0
6078a005d216Smrg  len = length(field[1])
6079a005d216Smrg  for (i = 2; i < nfields; i++) {
6080a005d216Smrg    key = field[i]
6081a005d216Smrg    keylen = length(key)
6082a005d216Smrg    if (S_is_set[key]) {
6083a005d216Smrg      value = S[key]
6084a005d216Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6085a005d216Smrg      len += length(value) + length(field[++i])
6086a005d216Smrg      substed = 1
6087a005d216Smrg    } else
6088a005d216Smrg      len += 1 + keylen
6089a005d216Smrg  }
6090a005d216Smrg
6091a005d216Smrg  print line
6092a005d216Smrg}
6093ff7e0accSmrg
6094a005d216Smrg_ACAWK
6095ff7e0accSmrg_ACEOF
6096a005d216Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6097a005d216Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6098a005d216Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6099a005d216Smrgelse
6100a005d216Smrg  cat
6101863f95b1Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6102863f95b1Smrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6103ff7e0accSmrg_ACEOF
6104ff7e0accSmrg
6105863f95b1Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6106863f95b1Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6107ff7e0accSmrg# trailing colons and then remove the whole line if VPATH becomes empty
6108ff7e0accSmrg# (actually we leave an empty line to preserve line numbers).
6109ff7e0accSmrgif test "x$srcdir" = x.; then
6110863f95b1Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
6111863f95b1Smrgh
6112863f95b1Smrgs///
6113863f95b1Smrgs/^/:/
6114863f95b1Smrgs/[	 ]*$/:/
6115863f95b1Smrgs/:\$(srcdir):/:/g
6116863f95b1Smrgs/:\${srcdir}:/:/g
6117863f95b1Smrgs/:@srcdir@:/:/g
6118863f95b1Smrgs/^:*//
6119ff7e0accSmrgs/:*$//
6120863f95b1Smrgx
6121863f95b1Smrgs/\(=[	 ]*\).*/\1/
6122863f95b1SmrgG
6123863f95b1Smrgs/\n//
6124ff7e0accSmrgs/^[^=]*=[	 ]*$//
6125ff7e0accSmrg}'
6126ff7e0accSmrgfi
6127ff7e0accSmrg
6128a005d216Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6129ff7e0accSmrgfi # test -n "$CONFIG_FILES"
6130ff7e0accSmrg
6131a005d216Smrg# Set up the scripts for CONFIG_HEADERS section.
6132a005d216Smrg# No need to generate them if there are no CONFIG_HEADERS.
6133a005d216Smrg# This happens for instance with `./config.status Makefile'.
6134a005d216Smrgif test -n "$CONFIG_HEADERS"; then
6135863f95b1Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6136a005d216SmrgBEGIN {
6137a005d216Smrg_ACEOF
6138a005d216Smrg
6139a005d216Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
6140a005d216Smrg# here-document in config.status, that substitutes the proper values into
6141a005d216Smrg# config.h.in to produce config.h.
6142ff7e0accSmrg
6143a005d216Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
6144a005d216Smrg# handling of long lines.
6145a005d216Smrgac_delim='%!_!# '
6146a005d216Smrgfor ac_last_try in false false :; do
6147863f95b1Smrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6148863f95b1Smrg  if test -z "$ac_tt"; then
6149a005d216Smrg    break
6150a005d216Smrg  elif $ac_last_try; then
6151863f95b1Smrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6152a005d216Smrg  else
6153a005d216Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6154a005d216Smrg  fi
6155a005d216Smrgdone
6156a005d216Smrg
6157a005d216Smrg# For the awk script, D is an array of macro values keyed by name,
6158a005d216Smrg# likewise P contains macro parameters if any.  Preserve backslash
6159a005d216Smrg# newline sequences.
6160a005d216Smrg
6161a005d216Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6162a005d216Smrgsed -n '
6163a005d216Smrgs/.\{148\}/&'"$ac_delim"'/g
6164a005d216Smrgt rset
6165a005d216Smrg:rset
6166a005d216Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
6167a005d216Smrgt def
6168a005d216Smrgd
6169a005d216Smrg:def
6170a005d216Smrgs/\\$//
6171a005d216Smrgt bsnl
6172a005d216Smrgs/["\\]/\\&/g
6173a005d216Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6174a005d216SmrgD["\1"]=" \3"/p
6175a005d216Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
6176a005d216Smrgd
6177a005d216Smrg:bsnl
6178a005d216Smrgs/["\\]/\\&/g
6179a005d216Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6180a005d216SmrgD["\1"]=" \3\\\\\\n"\\/p
6181a005d216Smrgt cont
6182a005d216Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6183a005d216Smrgt cont
6184a005d216Smrgd
6185a005d216Smrg:cont
6186a005d216Smrgn
6187a005d216Smrgs/.\{148\}/&'"$ac_delim"'/g
6188a005d216Smrgt clear
6189a005d216Smrg:clear
6190a005d216Smrgs/\\$//
6191a005d216Smrgt bsnlc
6192a005d216Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
6193a005d216Smrgd
6194a005d216Smrg:bsnlc
6195a005d216Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6196a005d216Smrgb cont
6197a005d216Smrg' <confdefs.h | sed '
6198a005d216Smrgs/'"$ac_delim"'/"\\\
6199a005d216Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
6200a005d216Smrg
6201a005d216Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6202a005d216Smrg  for (key in D) D_is_set[key] = 1
6203a005d216Smrg  FS = ""
6204a005d216Smrg}
6205a005d216Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6206a005d216Smrg  line = \$ 0
6207a005d216Smrg  split(line, arg, " ")
6208a005d216Smrg  if (arg[1] == "#") {
6209a005d216Smrg    defundef = arg[2]
6210a005d216Smrg    mac1 = arg[3]
6211a005d216Smrg  } else {
6212a005d216Smrg    defundef = substr(arg[1], 2)
6213a005d216Smrg    mac1 = arg[2]
6214a005d216Smrg  }
6215a005d216Smrg  split(mac1, mac2, "(") #)
6216a005d216Smrg  macro = mac2[1]
621710998002Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
6218a005d216Smrg  if (D_is_set[macro]) {
6219a005d216Smrg    # Preserve the white space surrounding the "#".
6220a005d216Smrg    print prefix "define", macro P[macro] D[macro]
6221a005d216Smrg    next
6222a005d216Smrg  } else {
6223a005d216Smrg    # Replace #undef with comments.  This is necessary, for example,
6224a005d216Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
6225a005d216Smrg    # on some systems where configure will not decide to define it.
6226a005d216Smrg    if (defundef == "undef") {
622710998002Smrg      print "/*", prefix defundef, macro, "*/"
6228a005d216Smrg      next
6229a005d216Smrg    }
6230a005d216Smrg  }
6231a005d216Smrg}
6232a005d216Smrg{ print }
6233a005d216Smrg_ACAWK
6234a005d216Smrg_ACEOF
6235a005d216Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6236863f95b1Smrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6237a005d216Smrgfi # test -n "$CONFIG_HEADERS"
6238a005d216Smrg
6239a005d216Smrg
6240a005d216Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
6241a005d216Smrgshift
6242a005d216Smrgfor ac_tag
6243ff7e0accSmrgdo
6244ff7e0accSmrg  case $ac_tag in
6245ff7e0accSmrg  :[FHLC]) ac_mode=$ac_tag; continue;;
6246ff7e0accSmrg  esac
6247ff7e0accSmrg  case $ac_mode$ac_tag in
6248ff7e0accSmrg  :[FHL]*:*);;
6249863f95b1Smrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6250ff7e0accSmrg  :[FH]-) ac_tag=-:-;;
6251ff7e0accSmrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6252ff7e0accSmrg  esac
6253ff7e0accSmrg  ac_save_IFS=$IFS
6254ff7e0accSmrg  IFS=:
6255ff7e0accSmrg  set x $ac_tag
6256ff7e0accSmrg  IFS=$ac_save_IFS
6257ff7e0accSmrg  shift
6258ff7e0accSmrg  ac_file=$1
6259ff7e0accSmrg  shift
6260ff7e0accSmrg
6261ff7e0accSmrg  case $ac_mode in
6262ff7e0accSmrg  :L) ac_source=$1;;
6263ff7e0accSmrg  :[FH])
6264ff7e0accSmrg    ac_file_inputs=
6265ff7e0accSmrg    for ac_f
6266ff7e0accSmrg    do
6267ff7e0accSmrg      case $ac_f in
6268863f95b1Smrg      -) ac_f="$ac_tmp/stdin";;
6269ff7e0accSmrg      *) # Look for the file first in the build tree, then in the source tree
6270ff7e0accSmrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
6271ff7e0accSmrg	 # because $ac_f cannot contain `:'.
6272ff7e0accSmrg	 test -f "$ac_f" ||
6273ff7e0accSmrg	   case $ac_f in
6274ff7e0accSmrg	   [\\/$]*) false;;
6275ff7e0accSmrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6276ff7e0accSmrg	   esac ||
6277863f95b1Smrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6278ff7e0accSmrg      esac
6279a005d216Smrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6280863f95b1Smrg      as_fn_append ac_file_inputs " '$ac_f'"
6281ff7e0accSmrg    done
6282ff7e0accSmrg
6283ff7e0accSmrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
6284ff7e0accSmrg    # use $as_me), people would be surprised to read:
6285ff7e0accSmrg    #    /* config.h.  Generated by config.status.  */
6286a005d216Smrg    configure_input='Generated from '`
6287a005d216Smrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6288a005d216Smrg	`' by configure.'
6289ff7e0accSmrg    if test x"$ac_file" != x-; then
6290ff7e0accSmrg      configure_input="$ac_file.  $configure_input"
6291863f95b1Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6292a005d216Smrg$as_echo "$as_me: creating $ac_file" >&6;}
6293ff7e0accSmrg    fi
6294a005d216Smrg    # Neutralize special characters interpreted by sed in replacement strings.
6295a005d216Smrg    case $configure_input in #(
6296a005d216Smrg    *\&* | *\|* | *\\* )
6297a005d216Smrg       ac_sed_conf_input=`$as_echo "$configure_input" |
6298a005d216Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
6299a005d216Smrg    *) ac_sed_conf_input=$configure_input;;
6300a005d216Smrg    esac
6301ff7e0accSmrg
6302ff7e0accSmrg    case $ac_tag in
6303863f95b1Smrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
6304863f95b1Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6305ff7e0accSmrg    esac
6306ff7e0accSmrg    ;;
6307ff7e0accSmrg  esac
6308ff7e0accSmrg
6309ff7e0accSmrg  ac_dir=`$as_dirname -- "$ac_file" ||
6310ff7e0accSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6311ff7e0accSmrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
6312ff7e0accSmrg	 X"$ac_file" : 'X\(//\)$' \| \
6313ff7e0accSmrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6314a005d216Smrg$as_echo X"$ac_file" |
6315ff7e0accSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6316ff7e0accSmrg	    s//\1/
6317ff7e0accSmrg	    q
6318ff7e0accSmrg	  }
6319ff7e0accSmrg	  /^X\(\/\/\)[^/].*/{
6320ff7e0accSmrg	    s//\1/
6321ff7e0accSmrg	    q
6322ff7e0accSmrg	  }
6323ff7e0accSmrg	  /^X\(\/\/\)$/{
6324ff7e0accSmrg	    s//\1/
6325ff7e0accSmrg	    q
6326ff7e0accSmrg	  }
6327ff7e0accSmrg	  /^X\(\/\).*/{
6328ff7e0accSmrg	    s//\1/
6329ff7e0accSmrg	    q
6330ff7e0accSmrg	  }
6331ff7e0accSmrg	  s/.*/./; q'`
6332863f95b1Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
6333ff7e0accSmrg  ac_builddir=.
6334ff7e0accSmrg
6335ff7e0accSmrgcase "$ac_dir" in
6336ff7e0accSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6337ff7e0accSmrg*)
6338a005d216Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6339ff7e0accSmrg  # A ".." for each directory in $ac_dir_suffix.
6340a005d216Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6341ff7e0accSmrg  case $ac_top_builddir_sub in
6342ff7e0accSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6343ff7e0accSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6344ff7e0accSmrg  esac ;;
6345ff7e0accSmrgesac
6346ff7e0accSmrgac_abs_top_builddir=$ac_pwd
6347ff7e0accSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
6348ff7e0accSmrg# for backward compatibility:
6349ff7e0accSmrgac_top_builddir=$ac_top_build_prefix
6350ff7e0accSmrg
6351ff7e0accSmrgcase $srcdir in
6352ff7e0accSmrg  .)  # We are building in place.
6353ff7e0accSmrg    ac_srcdir=.
6354ff7e0accSmrg    ac_top_srcdir=$ac_top_builddir_sub
6355ff7e0accSmrg    ac_abs_top_srcdir=$ac_pwd ;;
6356ff7e0accSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
6357ff7e0accSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
6358ff7e0accSmrg    ac_top_srcdir=$srcdir
6359ff7e0accSmrg    ac_abs_top_srcdir=$srcdir ;;
6360ff7e0accSmrg  *) # Relative name.
6361ff7e0accSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6362ff7e0accSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
6363ff7e0accSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6364ff7e0accSmrgesac
6365ff7e0accSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6366ff7e0accSmrg
6367ff7e0accSmrg
6368ff7e0accSmrg  case $ac_mode in
6369ff7e0accSmrg  :F)
6370ff7e0accSmrg  #
6371ff7e0accSmrg  # CONFIG_FILE
6372ff7e0accSmrg  #
6373ff7e0accSmrg
6374ff7e0accSmrg  case $INSTALL in
6375ff7e0accSmrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6376ff7e0accSmrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6377ff7e0accSmrg  esac
6378ff7e0accSmrg  ac_MKDIR_P=$MKDIR_P
6379ff7e0accSmrg  case $MKDIR_P in
6380ff7e0accSmrg  [\\/$]* | ?:[\\/]* ) ;;
6381ff7e0accSmrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6382ff7e0accSmrg  esac
6383ff7e0accSmrg_ACEOF
6384ff7e0accSmrg
6385a005d216Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6386ff7e0accSmrg# If the template does not know about datarootdir, expand it.
6387ff7e0accSmrg# FIXME: This hack should be removed a few years after 2.60.
6388ff7e0accSmrgac_datarootdir_hack=; ac_datarootdir_seen=
6389a005d216Smrgac_sed_dataroot='
6390a005d216Smrg/datarootdir/ {
6391ff7e0accSmrg  p
6392ff7e0accSmrg  q
6393ff7e0accSmrg}
6394ff7e0accSmrg/@datadir@/p
6395ff7e0accSmrg/@docdir@/p
6396ff7e0accSmrg/@infodir@/p
6397ff7e0accSmrg/@localedir@/p
6398863f95b1Smrg/@mandir@/p'
6399a005d216Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6400ff7e0accSmrg*datarootdir*) ac_datarootdir_seen=yes;;
6401ff7e0accSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6402863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6403a005d216Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6404ff7e0accSmrg_ACEOF
6405a005d216Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6406ff7e0accSmrg  ac_datarootdir_hack='
6407ff7e0accSmrg  s&@datadir@&$datadir&g
6408ff7e0accSmrg  s&@docdir@&$docdir&g
6409ff7e0accSmrg  s&@infodir@&$infodir&g
6410ff7e0accSmrg  s&@localedir@&$localedir&g
6411ff7e0accSmrg  s&@mandir@&$mandir&g
6412863f95b1Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
6413ff7e0accSmrgesac
6414ff7e0accSmrg_ACEOF
6415ff7e0accSmrg
6416ff7e0accSmrg# Neutralize VPATH when `$srcdir' = `.'.
6417ff7e0accSmrg# Shell code in configure.ac might set extrasub.
6418ff7e0accSmrg# FIXME: do we really want to maintain this feature?
6419a005d216Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6420a005d216Smrgac_sed_extra="$ac_vpsub
6421ff7e0accSmrg$extrasub
6422ff7e0accSmrg_ACEOF
6423a005d216Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6424ff7e0accSmrg:t
6425ff7e0accSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6426a005d216Smrgs|@configure_input@|$ac_sed_conf_input|;t t
6427ff7e0accSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t
6428a005d216Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
6429ff7e0accSmrgs&@srcdir@&$ac_srcdir&;t t
6430ff7e0accSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
6431ff7e0accSmrgs&@top_srcdir@&$ac_top_srcdir&;t t
6432ff7e0accSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6433ff7e0accSmrgs&@builddir@&$ac_builddir&;t t
6434ff7e0accSmrgs&@abs_builddir@&$ac_abs_builddir&;t t
6435ff7e0accSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6436ff7e0accSmrgs&@INSTALL@&$ac_INSTALL&;t t
6437ff7e0accSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
6438ff7e0accSmrg$ac_datarootdir_hack
6439a005d216Smrg"
6440863f95b1Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6441863f95b1Smrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6442ff7e0accSmrg
6443ff7e0accSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6444863f95b1Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6445863f95b1Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
6446863f95b1Smrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
6447863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6448863f95b1Smrgwhich seems to be undefined.  Please make sure it is defined" >&5
6449a005d216Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6450863f95b1Smrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
6451ff7e0accSmrg
6452863f95b1Smrg  rm -f "$ac_tmp/stdin"
6453ff7e0accSmrg  case $ac_file in
6454863f95b1Smrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6455863f95b1Smrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6456a005d216Smrg  esac \
6457863f95b1Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6458ff7e0accSmrg ;;
6459ff7e0accSmrg  :H)
6460ff7e0accSmrg  #
6461ff7e0accSmrg  # CONFIG_HEADER
6462ff7e0accSmrg  #
6463ff7e0accSmrg  if test x"$ac_file" != x-; then
6464a005d216Smrg    {
6465a005d216Smrg      $as_echo "/* $configure_input  */" \
6466863f95b1Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6467863f95b1Smrg    } >"$ac_tmp/config.h" \
6468863f95b1Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6469863f95b1Smrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6470863f95b1Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6471a005d216Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
6472ff7e0accSmrg    else
6473a005d216Smrg      rm -f "$ac_file"
6474863f95b1Smrg      mv "$ac_tmp/config.h" "$ac_file" \
6475863f95b1Smrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
6476ff7e0accSmrg    fi
6477ff7e0accSmrg  else
6478a005d216Smrg    $as_echo "/* $configure_input  */" \
6479863f95b1Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6480863f95b1Smrg      || as_fn_error $? "could not create -" "$LINENO" 5
6481ff7e0accSmrg  fi
6482a005d216Smrg# Compute "$ac_file"'s index in $config_headers.
6483a005d216Smrg_am_arg="$ac_file"
6484ff7e0accSmrg_am_stamp_count=1
6485ff7e0accSmrgfor _am_header in $config_headers :; do
6486ff7e0accSmrg  case $_am_header in
6487a005d216Smrg    $_am_arg | $_am_arg:* )
6488ff7e0accSmrg      break ;;
6489ff7e0accSmrg    * )
6490ff7e0accSmrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6491ff7e0accSmrg  esac
6492ff7e0accSmrgdone
6493a005d216Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6494a005d216Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6495a005d216Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
6496a005d216Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
6497a005d216Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6498a005d216Smrg$as_echo X"$_am_arg" |
6499ff7e0accSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6500ff7e0accSmrg	    s//\1/
6501ff7e0accSmrg	    q
6502ff7e0accSmrg	  }
6503ff7e0accSmrg	  /^X\(\/\/\)[^/].*/{
6504ff7e0accSmrg	    s//\1/
6505ff7e0accSmrg	    q
6506ff7e0accSmrg	  }
6507ff7e0accSmrg	  /^X\(\/\/\)$/{
6508ff7e0accSmrg	    s//\1/
6509ff7e0accSmrg	    q
6510ff7e0accSmrg	  }
6511ff7e0accSmrg	  /^X\(\/\).*/{
6512ff7e0accSmrg	    s//\1/
6513ff7e0accSmrg	    q
6514ff7e0accSmrg	  }
6515ff7e0accSmrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
6516ff7e0accSmrg ;;
6517ff7e0accSmrg
6518863f95b1Smrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6519a005d216Smrg$as_echo "$as_me: executing $ac_file commands" >&6;}
6520ff7e0accSmrg ;;
6521ff7e0accSmrg  esac
6522ff7e0accSmrg
6523ff7e0accSmrg
6524ff7e0accSmrg  case $ac_file$ac_mode in
652510998002Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
652610998002Smrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
652710998002Smrg  # are listed without --file.  Let's play safe and only enable the eval
652810998002Smrg  # if we detect the quoting.
652910998002Smrg  case $CONFIG_FILES in
653010998002Smrg  *\'*) eval set x "$CONFIG_FILES" ;;
653110998002Smrg  *)   set x $CONFIG_FILES ;;
653210998002Smrg  esac
653310998002Smrg  shift
653410998002Smrg  for mf
653510998002Smrg  do
653610998002Smrg    # Strip MF so we end up with the name of the file.
653710998002Smrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
653810998002Smrg    # Check whether this is an Automake generated Makefile or not.
653910998002Smrg    # We used to match only the files named `Makefile.in', but
654010998002Smrg    # some people rename them; so instead we look at the file content.
654110998002Smrg    # Grep'ing the first line is not enough: some people post-process
654210998002Smrg    # each Makefile.in and add a new line on top of each file to say so.
654310998002Smrg    # Grep'ing the whole file is not good either: AIX grep has a line
654410998002Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
654510998002Smrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
654610998002Smrg      dirpart=`$as_dirname -- "$mf" ||
6547ff7e0accSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6548ff7e0accSmrg	 X"$mf" : 'X\(//\)[^/]' \| \
6549ff7e0accSmrg	 X"$mf" : 'X\(//\)$' \| \
6550ff7e0accSmrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6551a005d216Smrg$as_echo X"$mf" |
6552ff7e0accSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6553ff7e0accSmrg	    s//\1/
6554ff7e0accSmrg	    q
6555ff7e0accSmrg	  }
6556ff7e0accSmrg	  /^X\(\/\/\)[^/].*/{
6557ff7e0accSmrg	    s//\1/
6558ff7e0accSmrg	    q
6559ff7e0accSmrg	  }
6560ff7e0accSmrg	  /^X\(\/\/\)$/{
6561ff7e0accSmrg	    s//\1/
6562ff7e0accSmrg	    q
6563ff7e0accSmrg	  }
6564ff7e0accSmrg	  /^X\(\/\).*/{
6565ff7e0accSmrg	    s//\1/
6566ff7e0accSmrg	    q
6567ff7e0accSmrg	  }
6568ff7e0accSmrg	  s/.*/./; q'`
656910998002Smrg    else
657010998002Smrg      continue
657110998002Smrg    fi
657210998002Smrg    # Extract the definition of DEPDIR, am__include, and am__quote
657310998002Smrg    # from the Makefile without running `make'.
657410998002Smrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
657510998002Smrg    test -z "$DEPDIR" && continue
657610998002Smrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
657710998002Smrg    test -z "am__include" && continue
657810998002Smrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
657910998002Smrg    # When using ansi2knr, U may be empty or an underscore; expand it
658010998002Smrg    U=`sed -n 's/^U = //p' < "$mf"`
658110998002Smrg    # Find all dependency output files, they are included files with
658210998002Smrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
658310998002Smrg    # simplest approach to changing $(DEPDIR) to its actual value in the
658410998002Smrg    # expansion.
658510998002Smrg    for file in `sed -n "
658610998002Smrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
658710998002Smrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
658810998002Smrg      # Make sure the directory exists.
658910998002Smrg      test -f "$dirpart/$file" && continue
659010998002Smrg      fdir=`$as_dirname -- "$file" ||
6591ff7e0accSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6592ff7e0accSmrg	 X"$file" : 'X\(//\)[^/]' \| \
6593ff7e0accSmrg	 X"$file" : 'X\(//\)$' \| \
6594ff7e0accSmrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6595a005d216Smrg$as_echo X"$file" |
6596ff7e0accSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6597ff7e0accSmrg	    s//\1/
6598ff7e0accSmrg	    q
6599ff7e0accSmrg	  }
6600ff7e0accSmrg	  /^X\(\/\/\)[^/].*/{
6601ff7e0accSmrg	    s//\1/
6602ff7e0accSmrg	    q
6603ff7e0accSmrg	  }
6604ff7e0accSmrg	  /^X\(\/\/\)$/{
6605ff7e0accSmrg	    s//\1/
6606ff7e0accSmrg	    q
6607ff7e0accSmrg	  }
6608ff7e0accSmrg	  /^X\(\/\).*/{
6609ff7e0accSmrg	    s//\1/
6610ff7e0accSmrg	    q
6611ff7e0accSmrg	  }
6612ff7e0accSmrg	  s/.*/./; q'`
6613863f95b1Smrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
661410998002Smrg      # echo "creating $dirpart/$file"
661510998002Smrg      echo '# dummy' > "$dirpart/$file"
661610998002Smrg    done
6617ff7e0accSmrg  done
661810998002Smrg}
6619ff7e0accSmrg ;;
6620ff7e0accSmrg
6621ff7e0accSmrg  esac
6622ff7e0accSmrgdone # for ac_tag
6623ff7e0accSmrg
6624ff7e0accSmrg
6625863f95b1Smrgas_fn_exit 0
6626ff7e0accSmrg_ACEOF
6627ff7e0accSmrgac_clean_files=$ac_clean_files_save
6628ff7e0accSmrg
6629a005d216Smrgtest $ac_write_fail = 0 ||
6630863f95b1Smrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6631a005d216Smrg
6632ff7e0accSmrg
6633ff7e0accSmrg# configure is writing to config.log, and then calls config.status.
6634ff7e0accSmrg# config.status does its own redirection, appending to config.log.
6635ff7e0accSmrg# Unfortunately, on DOS this fails, as config.log is still kept open
6636ff7e0accSmrg# by configure, so config.status won't be able to write to it; its
6637ff7e0accSmrg# output is simply discarded.  So we exec the FD to /dev/null,
6638ff7e0accSmrg# effectively closing config.log, so it can be properly (re)opened and
6639ff7e0accSmrg# appended to by config.status.  When coming back to configure, we
6640ff7e0accSmrg# need to make the FD available again.
6641ff7e0accSmrgif test "$no_create" != yes; then
6642ff7e0accSmrg  ac_cs_success=:
6643ff7e0accSmrg  ac_config_status_args=
6644ff7e0accSmrg  test "$silent" = yes &&
6645ff7e0accSmrg    ac_config_status_args="$ac_config_status_args --quiet"
6646ff7e0accSmrg  exec 5>/dev/null
6647ff7e0accSmrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6648ff7e0accSmrg  exec 5>>config.log
6649ff7e0accSmrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6650ff7e0accSmrg  # would make configure fail if this is the last instruction.
6651863f95b1Smrg  $ac_cs_success || as_fn_exit 1
6652ff7e0accSmrgfi
6653a005d216Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6654863f95b1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
665510998002Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6656a005d216Smrgfi
6657ff7e0accSmrg
6658