configure revision 123e2cc7
17da8b7e3Smrg#! /bin/sh
27da8b7e3Smrg# Guess values for system-dependent variables and create Makefiles.
3123e2cc7Smrg# Generated by GNU Autoconf 2.63 for xrefresh 1.0.3.
47da8b7e3Smrg#
57da8b7e3Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
67da8b7e3Smrg#
7123e2cc7Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8123e2cc7Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
97da8b7e3Smrg# This configure script is free software; the Free Software Foundation
107da8b7e3Smrg# gives unlimited permission to copy, distribute and modify it.
117da8b7e3Smrg## --------------------- ##
127da8b7e3Smrg## M4sh Initialization.  ##
137da8b7e3Smrg## --------------------- ##
147da8b7e3Smrg
15123e2cc7Smrg# Be more Bourne compatible
16123e2cc7SmrgDUALCASE=1; export DUALCASE # for MKS sh
177da8b7e3Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
187da8b7e3Smrg  emulate sh
197da8b7e3Smrg  NULLCMD=:
20123e2cc7Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
217da8b7e3Smrg  # is contrary to our usage.  Disable this feature.
227da8b7e3Smrg  alias -g '${1+"$@"}'='"$@"'
23123e2cc7Smrg  setopt NO_GLOB_SUBST
24123e2cc7Smrgelse
25123e2cc7Smrg  case `(set -o) 2>/dev/null` in
26123e2cc7Smrg  *posix*) set -o posix ;;
27123e2cc7Smrgesac
28123e2cc7Smrg
29123e2cc7Smrgfi
30123e2cc7Smrg
31123e2cc7Smrg
32123e2cc7Smrg
33123e2cc7Smrg
34123e2cc7Smrg# PATH needs CR
35123e2cc7Smrg# Avoid depending upon Character Ranges.
36123e2cc7Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
37123e2cc7Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38123e2cc7Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
39123e2cc7Smrgas_cr_digits='0123456789'
40123e2cc7Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
41123e2cc7Smrg
42123e2cc7Smrgas_nl='
43123e2cc7Smrg'
44123e2cc7Smrgexport as_nl
45123e2cc7Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
46123e2cc7Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47123e2cc7Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48123e2cc7Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49123e2cc7Smrgif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50123e2cc7Smrg  as_echo='printf %s\n'
51123e2cc7Smrg  as_echo_n='printf %s'
52123e2cc7Smrgelse
53123e2cc7Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54123e2cc7Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55123e2cc7Smrg    as_echo_n='/usr/ucb/echo -n'
56123e2cc7Smrg  else
57123e2cc7Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58123e2cc7Smrg    as_echo_n_body='eval
59123e2cc7Smrg      arg=$1;
60123e2cc7Smrg      case $arg in
61123e2cc7Smrg      *"$as_nl"*)
62123e2cc7Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
63123e2cc7Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64123e2cc7Smrg      esac;
65123e2cc7Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66123e2cc7Smrg    '
67123e2cc7Smrg    export as_echo_n_body
68123e2cc7Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
69123e2cc7Smrg  fi
70123e2cc7Smrg  export as_echo_body
71123e2cc7Smrg  as_echo='sh -c $as_echo_body as_echo'
72123e2cc7Smrgfi
73123e2cc7Smrg
74123e2cc7Smrg# The user is always right.
75123e2cc7Smrgif test "${PATH_SEPARATOR+set}" != set; then
76123e2cc7Smrg  PATH_SEPARATOR=:
77123e2cc7Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78123e2cc7Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79123e2cc7Smrg      PATH_SEPARATOR=';'
80123e2cc7Smrg  }
817da8b7e3Smrgfi
827da8b7e3Smrg
837da8b7e3Smrg# Support unset when possible.
847da8b7e3Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
857da8b7e3Smrg  as_unset=unset
867da8b7e3Smrgelse
877da8b7e3Smrg  as_unset=false
887da8b7e3Smrgfi
897da8b7e3Smrg
907da8b7e3Smrg
91123e2cc7Smrg# IFS
92123e2cc7Smrg# We need space, tab and new line, in precisely that order.  Quoting is
93123e2cc7Smrg# there to prevent editors from complaining about space-tab.
94123e2cc7Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95123e2cc7Smrg# splitting by setting IFS to empty value.)
96123e2cc7SmrgIFS=" ""	$as_nl"
97123e2cc7Smrg
98123e2cc7Smrg# Find who we are.  Look in the path if we contain no directory separator.
99123e2cc7Smrgcase $0 in
100123e2cc7Smrg  *[\\/]* ) as_myself=$0 ;;
101123e2cc7Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102123e2cc7Smrgfor as_dir in $PATH
103123e2cc7Smrgdo
104123e2cc7Smrg  IFS=$as_save_IFS
105123e2cc7Smrg  test -z "$as_dir" && as_dir=.
106123e2cc7Smrg  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107123e2cc7Smrgdone
108123e2cc7SmrgIFS=$as_save_IFS
109123e2cc7Smrg
110123e2cc7Smrg     ;;
111123e2cc7Smrgesac
112123e2cc7Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
113123e2cc7Smrg# in which case we are not to be found in the path.
114123e2cc7Smrgif test "x$as_myself" = x; then
115123e2cc7Smrg  as_myself=$0
116123e2cc7Smrgfi
117123e2cc7Smrgif test ! -f "$as_myself"; then
118123e2cc7Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119123e2cc7Smrg  { (exit 1); exit 1; }
120123e2cc7Smrgfi
121123e2cc7Smrg
1227da8b7e3Smrg# Work around bugs in pre-3.0 UWIN ksh.
123123e2cc7Smrgfor as_var in ENV MAIL MAILPATH
124123e2cc7Smrgdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125123e2cc7Smrgdone
1267da8b7e3SmrgPS1='$ '
1277da8b7e3SmrgPS2='> '
1287da8b7e3SmrgPS4='+ '
1297da8b7e3Smrg
1307da8b7e3Smrg# NLS nuisances.
131123e2cc7SmrgLC_ALL=C
132123e2cc7Smrgexport LC_ALL
133123e2cc7SmrgLANGUAGE=C
134123e2cc7Smrgexport LANGUAGE
1357da8b7e3Smrg
1367da8b7e3Smrg# Required to use basename.
137123e2cc7Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
138123e2cc7Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
1397da8b7e3Smrg  as_expr=expr
1407da8b7e3Smrgelse
1417da8b7e3Smrg  as_expr=false
1427da8b7e3Smrgfi
1437da8b7e3Smrg
144123e2cc7Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1457da8b7e3Smrg  as_basename=basename
1467da8b7e3Smrgelse
1477da8b7e3Smrg  as_basename=false
1487da8b7e3Smrgfi
1497da8b7e3Smrg
1507da8b7e3Smrg
1517da8b7e3Smrg# Name of the executable.
152123e2cc7Smrgas_me=`$as_basename -- "$0" ||
1537da8b7e3Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1547da8b7e3Smrg	 X"$0" : 'X\(//\)$' \| \
155123e2cc7Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156123e2cc7Smrg$as_echo X/"$0" |
157123e2cc7Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
158123e2cc7Smrg	    s//\1/
159123e2cc7Smrg	    q
160123e2cc7Smrg	  }
161123e2cc7Smrg	  /^X\/\(\/\/\)$/{
162123e2cc7Smrg	    s//\1/
163123e2cc7Smrg	    q
164123e2cc7Smrg	  }
165123e2cc7Smrg	  /^X\/\(\/\).*/{
166123e2cc7Smrg	    s//\1/
167123e2cc7Smrg	    q
168123e2cc7Smrg	  }
169123e2cc7Smrg	  s/.*/./; q'`
1707da8b7e3Smrg
171123e2cc7Smrg# CDPATH.
172123e2cc7Smrg$as_unset CDPATH
1737da8b7e3Smrg
1747da8b7e3Smrg
175123e2cc7Smrgif test "x$CONFIG_SHELL" = x; then
176123e2cc7Smrg  if (eval ":") 2>/dev/null; then
177123e2cc7Smrg  as_have_required=yes
178123e2cc7Smrgelse
179123e2cc7Smrg  as_have_required=no
1807da8b7e3Smrgfi
1817da8b7e3Smrg
182123e2cc7Smrg  if test $as_have_required = yes &&	 (eval ":
183123e2cc7Smrg(as_func_return () {
184123e2cc7Smrg  (exit \$1)
185123e2cc7Smrg}
186123e2cc7Smrgas_func_success () {
187123e2cc7Smrg  as_func_return 0
188123e2cc7Smrg}
189123e2cc7Smrgas_func_failure () {
190123e2cc7Smrg  as_func_return 1
191123e2cc7Smrg}
192123e2cc7Smrgas_func_ret_success () {
193123e2cc7Smrg  return 0
194123e2cc7Smrg}
195123e2cc7Smrgas_func_ret_failure () {
196123e2cc7Smrg  return 1
197123e2cc7Smrg}
1987da8b7e3Smrg
199123e2cc7Smrgexitcode=0
200123e2cc7Smrgif as_func_success; then
201123e2cc7Smrg  :
202123e2cc7Smrgelse
203123e2cc7Smrg  exitcode=1
204123e2cc7Smrg  echo as_func_success failed.
205123e2cc7Smrgfi
2067da8b7e3Smrg
207123e2cc7Smrgif as_func_failure; then
208123e2cc7Smrg  exitcode=1
209123e2cc7Smrg  echo as_func_failure succeeded.
210123e2cc7Smrgfi
211123e2cc7Smrg
212123e2cc7Smrgif as_func_ret_success; then
213123e2cc7Smrg  :
214123e2cc7Smrgelse
215123e2cc7Smrg  exitcode=1
216123e2cc7Smrg  echo as_func_ret_success failed.
217123e2cc7Smrgfi
218123e2cc7Smrg
219123e2cc7Smrgif as_func_ret_failure; then
220123e2cc7Smrg  exitcode=1
221123e2cc7Smrg  echo as_func_ret_failure succeeded.
222123e2cc7Smrgfi
223123e2cc7Smrg
224123e2cc7Smrgif ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225123e2cc7Smrg  :
226123e2cc7Smrgelse
227123e2cc7Smrg  exitcode=1
228123e2cc7Smrg  echo positional parameters were not saved.
229123e2cc7Smrgfi
230123e2cc7Smrg
231123e2cc7Smrgtest \$exitcode = 0) || { (exit 1); exit 1; }
232123e2cc7Smrg
233123e2cc7Smrg(
234123e2cc7Smrg  as_lineno_1=\$LINENO
235123e2cc7Smrg  as_lineno_2=\$LINENO
236123e2cc7Smrg  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237123e2cc7Smrg  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238123e2cc7Smrg") 2> /dev/null; then
239123e2cc7Smrg  :
240123e2cc7Smrgelse
241123e2cc7Smrg  as_candidate_shells=
2427da8b7e3Smrg    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437da8b7e3Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2447da8b7e3Smrgdo
2457da8b7e3Smrg  IFS=$as_save_IFS
2467da8b7e3Smrg  test -z "$as_dir" && as_dir=.
247123e2cc7Smrg  case $as_dir in
2487da8b7e3Smrg	 /*)
249123e2cc7Smrg	   for as_base in sh bash ksh sh5; do
250123e2cc7Smrg	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251123e2cc7Smrg	   done;;
252123e2cc7Smrg       esac
253123e2cc7Smrgdone
254123e2cc7SmrgIFS=$as_save_IFS
255123e2cc7Smrg
256123e2cc7Smrg
257123e2cc7Smrg      for as_shell in $as_candidate_shells $SHELL; do
258123e2cc7Smrg	 # Try only shells that exist, to save several forks.
259123e2cc7Smrg	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260123e2cc7Smrg		{ ("$as_shell") 2> /dev/null <<\_ASEOF
261123e2cc7Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262123e2cc7Smrg  emulate sh
263123e2cc7Smrg  NULLCMD=:
264123e2cc7Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265123e2cc7Smrg  # is contrary to our usage.  Disable this feature.
266123e2cc7Smrg  alias -g '${1+"$@"}'='"$@"'
267123e2cc7Smrg  setopt NO_GLOB_SUBST
268123e2cc7Smrgelse
269123e2cc7Smrg  case `(set -o) 2>/dev/null` in
270123e2cc7Smrg  *posix*) set -o posix ;;
271123e2cc7Smrgesac
272123e2cc7Smrg
273123e2cc7Smrgfi
274123e2cc7Smrg
275123e2cc7Smrg
276123e2cc7Smrg:
277123e2cc7Smrg_ASEOF
278123e2cc7Smrg}; then
279123e2cc7Smrg  CONFIG_SHELL=$as_shell
280123e2cc7Smrg	       as_have_required=yes
281123e2cc7Smrg	       if { "$as_shell" 2> /dev/null <<\_ASEOF
282123e2cc7Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283123e2cc7Smrg  emulate sh
284123e2cc7Smrg  NULLCMD=:
285123e2cc7Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286123e2cc7Smrg  # is contrary to our usage.  Disable this feature.
287123e2cc7Smrg  alias -g '${1+"$@"}'='"$@"'
288123e2cc7Smrg  setopt NO_GLOB_SUBST
289123e2cc7Smrgelse
290123e2cc7Smrg  case `(set -o) 2>/dev/null` in
291123e2cc7Smrg  *posix*) set -o posix ;;
292123e2cc7Smrgesac
293123e2cc7Smrg
294123e2cc7Smrgfi
295123e2cc7Smrg
296123e2cc7Smrg
297123e2cc7Smrg:
298123e2cc7Smrg(as_func_return () {
299123e2cc7Smrg  (exit $1)
300123e2cc7Smrg}
301123e2cc7Smrgas_func_success () {
302123e2cc7Smrg  as_func_return 0
303123e2cc7Smrg}
304123e2cc7Smrgas_func_failure () {
305123e2cc7Smrg  as_func_return 1
306123e2cc7Smrg}
307123e2cc7Smrgas_func_ret_success () {
308123e2cc7Smrg  return 0
309123e2cc7Smrg}
310123e2cc7Smrgas_func_ret_failure () {
311123e2cc7Smrg  return 1
312123e2cc7Smrg}
313123e2cc7Smrg
314123e2cc7Smrgexitcode=0
315123e2cc7Smrgif as_func_success; then
316123e2cc7Smrg  :
317123e2cc7Smrgelse
318123e2cc7Smrg  exitcode=1
319123e2cc7Smrg  echo as_func_success failed.
320123e2cc7Smrgfi
321123e2cc7Smrg
322123e2cc7Smrgif as_func_failure; then
323123e2cc7Smrg  exitcode=1
324123e2cc7Smrg  echo as_func_failure succeeded.
325123e2cc7Smrgfi
326123e2cc7Smrg
327123e2cc7Smrgif as_func_ret_success; then
328123e2cc7Smrg  :
329123e2cc7Smrgelse
330123e2cc7Smrg  exitcode=1
331123e2cc7Smrg  echo as_func_ret_success failed.
332123e2cc7Smrgfi
333123e2cc7Smrg
334123e2cc7Smrgif as_func_ret_failure; then
335123e2cc7Smrg  exitcode=1
336123e2cc7Smrg  echo as_func_ret_failure succeeded.
337123e2cc7Smrgfi
338123e2cc7Smrg
339123e2cc7Smrgif ( set x; as_func_ret_success y && test x = "$1" ); then
340123e2cc7Smrg  :
341123e2cc7Smrgelse
342123e2cc7Smrg  exitcode=1
343123e2cc7Smrg  echo positional parameters were not saved.
344123e2cc7Smrgfi
345123e2cc7Smrg
346123e2cc7Smrgtest $exitcode = 0) || { (exit 1); exit 1; }
347123e2cc7Smrg
348123e2cc7Smrg(
3497da8b7e3Smrg  as_lineno_1=$LINENO
3507da8b7e3Smrg  as_lineno_2=$LINENO
3517da8b7e3Smrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
352123e2cc7Smrg  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353123e2cc7Smrg
354123e2cc7Smrg_ASEOF
355123e2cc7Smrg}; then
356123e2cc7Smrg  break
357123e2cc7Smrgfi
358123e2cc7Smrg
359123e2cc7Smrgfi
360123e2cc7Smrg
361123e2cc7Smrg      done
362123e2cc7Smrg
363123e2cc7Smrg      if test "x$CONFIG_SHELL" != x; then
364123e2cc7Smrg  for as_var in BASH_ENV ENV
365123e2cc7Smrg	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366123e2cc7Smrg	done
367123e2cc7Smrg	export CONFIG_SHELL
368123e2cc7Smrg	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369123e2cc7Smrgfi
370123e2cc7Smrg
371123e2cc7Smrg
372123e2cc7Smrg    if test $as_have_required = no; then
373123e2cc7Smrg  echo This script requires a shell more modern than all the
374123e2cc7Smrg      echo shells that I found on your system.  Please install a
375123e2cc7Smrg      echo modern shell, or manually run the script under such a
376123e2cc7Smrg      echo shell if you do have one.
377123e2cc7Smrg      { (exit 1); exit 1; }
378123e2cc7Smrgfi
379123e2cc7Smrg
380123e2cc7Smrg
381123e2cc7Smrgfi
382123e2cc7Smrg
383123e2cc7Smrgfi
384123e2cc7Smrg
385123e2cc7Smrg
386123e2cc7Smrg
387123e2cc7Smrg(eval "as_func_return () {
388123e2cc7Smrg  (exit \$1)
389123e2cc7Smrg}
390123e2cc7Smrgas_func_success () {
391123e2cc7Smrg  as_func_return 0
392123e2cc7Smrg}
393123e2cc7Smrgas_func_failure () {
394123e2cc7Smrg  as_func_return 1
395123e2cc7Smrg}
396123e2cc7Smrgas_func_ret_success () {
397123e2cc7Smrg  return 0
398123e2cc7Smrg}
399123e2cc7Smrgas_func_ret_failure () {
400123e2cc7Smrg  return 1
401123e2cc7Smrg}
402123e2cc7Smrg
403123e2cc7Smrgexitcode=0
404123e2cc7Smrgif as_func_success; then
405123e2cc7Smrg  :
406123e2cc7Smrgelse
407123e2cc7Smrg  exitcode=1
408123e2cc7Smrg  echo as_func_success failed.
409123e2cc7Smrgfi
410123e2cc7Smrg
411123e2cc7Smrgif as_func_failure; then
412123e2cc7Smrg  exitcode=1
413123e2cc7Smrg  echo as_func_failure succeeded.
414123e2cc7Smrgfi
415123e2cc7Smrg
416123e2cc7Smrgif as_func_ret_success; then
417123e2cc7Smrg  :
418123e2cc7Smrgelse
419123e2cc7Smrg  exitcode=1
420123e2cc7Smrg  echo as_func_ret_success failed.
421123e2cc7Smrgfi
422123e2cc7Smrg
423123e2cc7Smrgif as_func_ret_failure; then
424123e2cc7Smrg  exitcode=1
425123e2cc7Smrg  echo as_func_ret_failure succeeded.
426123e2cc7Smrgfi
427123e2cc7Smrg
428123e2cc7Smrgif ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429123e2cc7Smrg  :
430123e2cc7Smrgelse
431123e2cc7Smrg  exitcode=1
432123e2cc7Smrg  echo positional parameters were not saved.
433123e2cc7Smrgfi
434123e2cc7Smrg
435123e2cc7Smrgtest \$exitcode = 0") || {
436123e2cc7Smrg  echo No shell found that supports shell functions.
437123e2cc7Smrg  echo Please tell bug-autoconf@gnu.org about your system,
438123e2cc7Smrg  echo including any error possibly output before this message.
439123e2cc7Smrg  echo This can help us improve future autoconf versions.
440123e2cc7Smrg  echo Configuration will now proceed without shell functions.
441123e2cc7Smrg}
442123e2cc7Smrg
443123e2cc7Smrg
444123e2cc7Smrg
445123e2cc7Smrg  as_lineno_1=$LINENO
446123e2cc7Smrg  as_lineno_2=$LINENO
447123e2cc7Smrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
448123e2cc7Smrg  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
4497da8b7e3Smrg
4507da8b7e3Smrg  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4517da8b7e3Smrg  # uniformly replaced by the line number.  The first 'sed' inserts a
452123e2cc7Smrg  # line-number line after each line using $LINENO; the second 'sed'
453123e2cc7Smrg  # does the real work.  The second script uses 'N' to pair each
454123e2cc7Smrg  # line-number line with the line containing $LINENO, and appends
455123e2cc7Smrg  # trailing '-' during substitution so that $LINENO is not a special
456123e2cc7Smrg  # case at line end.
4577da8b7e3Smrg  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458123e2cc7Smrg  # scripts with optimization help from Paolo Bonzini.  Blame Lee
459123e2cc7Smrg  # E. McMahon (1931-1989) for sed's syntax.  :-)
460123e2cc7Smrg  sed -n '
461123e2cc7Smrg    p
462123e2cc7Smrg    /[$]LINENO/=
463123e2cc7Smrg  ' <$as_myself |
4647da8b7e3Smrg    sed '
465123e2cc7Smrg      s/[$]LINENO.*/&-/
466123e2cc7Smrg      t lineno
467123e2cc7Smrg      b
468123e2cc7Smrg      :lineno
4697da8b7e3Smrg      N
470123e2cc7Smrg      :loop
471123e2cc7Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4727da8b7e3Smrg      t loop
473123e2cc7Smrg      s/-\n.*//
4747da8b7e3Smrg    ' >$as_me.lineno &&
475123e2cc7Smrg  chmod +x "$as_me.lineno" ||
476123e2cc7Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
4777da8b7e3Smrg   { (exit 1); exit 1; }; }
4787da8b7e3Smrg
4797da8b7e3Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
4807da8b7e3Smrg  # (the dirname of $[0] is not the place where we might find the
481123e2cc7Smrg  # original and so on.  Autoconf is especially sensitive to this).
482123e2cc7Smrg  . "./$as_me.lineno"
4837da8b7e3Smrg  # Exit status is that of the last command.
4847da8b7e3Smrg  exit
4857da8b7e3Smrg}
4867da8b7e3Smrg
4877da8b7e3Smrg
488123e2cc7Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489123e2cc7Smrg  as_dirname=dirname
490123e2cc7Smrgelse
491123e2cc7Smrg  as_dirname=false
492123e2cc7Smrgfi
4937da8b7e3Smrg
494123e2cc7SmrgECHO_C= ECHO_N= ECHO_T=
495123e2cc7Smrgcase `echo -n x` in
496123e2cc7Smrg-n*)
497123e2cc7Smrg  case `echo 'x\c'` in
498123e2cc7Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
499123e2cc7Smrg  *)   ECHO_C='\c';;
500123e2cc7Smrg  esac;;
501123e2cc7Smrg*)
502123e2cc7Smrg  ECHO_N='-n';;
503123e2cc7Smrgesac
504123e2cc7Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
505123e2cc7Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5067da8b7e3Smrg  as_expr=expr
5077da8b7e3Smrgelse
5087da8b7e3Smrg  as_expr=false
5097da8b7e3Smrgfi
5107da8b7e3Smrg
5117da8b7e3Smrgrm -f conf$$ conf$$.exe conf$$.file
512123e2cc7Smrgif test -d conf$$.dir; then
513123e2cc7Smrg  rm -f conf$$.dir/conf$$.file
514123e2cc7Smrgelse
515123e2cc7Smrg  rm -f conf$$.dir
516123e2cc7Smrg  mkdir conf$$.dir 2>/dev/null
517123e2cc7Smrgfi
518123e2cc7Smrgif (echo >conf$$.file) 2>/dev/null; then
519123e2cc7Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
5207da8b7e3Smrg    as_ln_s='ln -s'
521123e2cc7Smrg    # ... but there are two gotchas:
522123e2cc7Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523123e2cc7Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524123e2cc7Smrg    # In both cases, we have to default to `cp -p'.
525123e2cc7Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526123e2cc7Smrg      as_ln_s='cp -p'
527123e2cc7Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
528123e2cc7Smrg    as_ln_s=ln
529123e2cc7Smrg  else
530123e2cc7Smrg    as_ln_s='cp -p'
5317da8b7e3Smrg  fi
5327da8b7e3Smrgelse
5337da8b7e3Smrg  as_ln_s='cp -p'
5347da8b7e3Smrgfi
535123e2cc7Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536123e2cc7Smrgrmdir conf$$.dir 2>/dev/null
5377da8b7e3Smrg
5387da8b7e3Smrgif mkdir -p . 2>/dev/null; then
5397da8b7e3Smrg  as_mkdir_p=:
5407da8b7e3Smrgelse
5417da8b7e3Smrg  test -d ./-p && rmdir ./-p
5427da8b7e3Smrg  as_mkdir_p=false
5437da8b7e3Smrgfi
5447da8b7e3Smrg
545123e2cc7Smrgif test -x / >/dev/null 2>&1; then
546123e2cc7Smrg  as_test_x='test -x'
547123e2cc7Smrgelse
548123e2cc7Smrg  if ls -dL / >/dev/null 2>&1; then
549123e2cc7Smrg    as_ls_L_option=L
550123e2cc7Smrg  else
551123e2cc7Smrg    as_ls_L_option=
552123e2cc7Smrg  fi
553123e2cc7Smrg  as_test_x='
554123e2cc7Smrg    eval sh -c '\''
555123e2cc7Smrg      if test -d "$1"; then
556123e2cc7Smrg	test -d "$1/.";
557123e2cc7Smrg      else
558123e2cc7Smrg	case $1 in
559123e2cc7Smrg	-*)set "./$1";;
560123e2cc7Smrg	esac;
561123e2cc7Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562123e2cc7Smrg	???[sx]*):;;*)false;;esac;fi
563123e2cc7Smrg    '\'' sh
564123e2cc7Smrg  '
565123e2cc7Smrgfi
566123e2cc7Smrgas_executable_p=$as_test_x
5677da8b7e3Smrg
5687da8b7e3Smrg# Sed expression to map a string onto a valid CPP name.
5697da8b7e3Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5707da8b7e3Smrg
5717da8b7e3Smrg# Sed expression to map a string onto a valid variable name.
5727da8b7e3Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5737da8b7e3Smrg
5747da8b7e3Smrg
5757da8b7e3Smrg
576123e2cc7Smrgexec 7<&0 </dev/null 6>&1
5777da8b7e3Smrg
5787da8b7e3Smrg# Name of the host.
5797da8b7e3Smrg# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
5807da8b7e3Smrg# so uname gets run too.
5817da8b7e3Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
5827da8b7e3Smrg
5837da8b7e3Smrg#
5847da8b7e3Smrg# Initializations.
5857da8b7e3Smrg#
5867da8b7e3Smrgac_default_prefix=/usr/local
587123e2cc7Smrgac_clean_files=
5887da8b7e3Smrgac_config_libobj_dir=.
589123e2cc7SmrgLIBOBJS=
5907da8b7e3Smrgcross_compiling=no
5917da8b7e3Smrgsubdirs=
5927da8b7e3SmrgMFLAGS=
5937da8b7e3SmrgMAKEFLAGS=
5947da8b7e3SmrgSHELL=${CONFIG_SHELL-/bin/sh}
5957da8b7e3Smrg
5967da8b7e3Smrg# Identity of this package.
5977da8b7e3SmrgPACKAGE_NAME='xrefresh'
5987da8b7e3SmrgPACKAGE_TARNAME='xrefresh'
599123e2cc7SmrgPACKAGE_VERSION='1.0.3'
600123e2cc7SmrgPACKAGE_STRING='xrefresh 1.0.3'
6017da8b7e3SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
6027da8b7e3Smrg
603123e2cc7Smrg# Factoring default headers for most tests.
604123e2cc7Smrgac_includes_default="\
605123e2cc7Smrg#include <stdio.h>
606123e2cc7Smrg#ifdef HAVE_SYS_TYPES_H
607123e2cc7Smrg# include <sys/types.h>
608123e2cc7Smrg#endif
609123e2cc7Smrg#ifdef HAVE_SYS_STAT_H
610123e2cc7Smrg# include <sys/stat.h>
611123e2cc7Smrg#endif
612123e2cc7Smrg#ifdef STDC_HEADERS
613123e2cc7Smrg# include <stdlib.h>
614123e2cc7Smrg# include <stddef.h>
615123e2cc7Smrg#else
616123e2cc7Smrg# ifdef HAVE_STDLIB_H
617123e2cc7Smrg#  include <stdlib.h>
618123e2cc7Smrg# endif
619123e2cc7Smrg#endif
620123e2cc7Smrg#ifdef HAVE_STRING_H
621123e2cc7Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622123e2cc7Smrg#  include <memory.h>
623123e2cc7Smrg# endif
624123e2cc7Smrg# include <string.h>
625123e2cc7Smrg#endif
626123e2cc7Smrg#ifdef HAVE_STRINGS_H
627123e2cc7Smrg# include <strings.h>
628123e2cc7Smrg#endif
629123e2cc7Smrg#ifdef HAVE_INTTYPES_H
630123e2cc7Smrg# include <inttypes.h>
631123e2cc7Smrg#endif
632123e2cc7Smrg#ifdef HAVE_STDINT_H
633123e2cc7Smrg# include <stdint.h>
634123e2cc7Smrg#endif
635123e2cc7Smrg#ifdef HAVE_UNISTD_H
636123e2cc7Smrg# include <unistd.h>
637123e2cc7Smrg#endif"
638123e2cc7Smrg
639123e2cc7Smrgac_subst_vars='am__EXEEXT_FALSE
640123e2cc7Smrgam__EXEEXT_TRUE
641123e2cc7SmrgLTLIBOBJS
642123e2cc7SmrgLIBOBJS
643123e2cc7SmrgXREFRESH_LIBS
644123e2cc7SmrgXREFRESH_CFLAGS
645123e2cc7SmrgPKG_CONFIG
646123e2cc7SmrgADMIN_MAN_DIR
647123e2cc7SmrgDRIVER_MAN_DIR
648123e2cc7SmrgMISC_MAN_DIR
649123e2cc7SmrgFILE_MAN_DIR
650123e2cc7SmrgLIB_MAN_DIR
651123e2cc7SmrgAPP_MAN_DIR
652123e2cc7SmrgADMIN_MAN_SUFFIX
653123e2cc7SmrgDRIVER_MAN_SUFFIX
654123e2cc7SmrgMISC_MAN_SUFFIX
655123e2cc7SmrgFILE_MAN_SUFFIX
656123e2cc7SmrgLIB_MAN_SUFFIX
657123e2cc7SmrgAPP_MAN_SUFFIX
658123e2cc7Smrghost_os
659123e2cc7Smrghost_vendor
660123e2cc7Smrghost_cpu
661123e2cc7Smrghost
662123e2cc7Smrgbuild_os
663123e2cc7Smrgbuild_vendor
664123e2cc7Smrgbuild_cpu
665123e2cc7Smrgbuild
666123e2cc7Smrgdistcleancheck_listfiles
667123e2cc7SmrgCHANGELOG_CMD
668123e2cc7SmrgAM_BACKSLASH
669123e2cc7SmrgAM_DEFAULT_VERBOSITY
670123e2cc7SmrgCWARNFLAGS
671123e2cc7SmrgEGREP
672123e2cc7SmrgGREP
673123e2cc7SmrgCPP
674123e2cc7Smrgam__fastdepCC_FALSE
675123e2cc7Smrgam__fastdepCC_TRUE
676123e2cc7SmrgCCDEPMODE
677123e2cc7SmrgAMDEPBACKSLASH
678123e2cc7SmrgAMDEP_FALSE
679123e2cc7SmrgAMDEP_TRUE
680123e2cc7Smrgam__quote
681123e2cc7Smrgam__include
682123e2cc7SmrgDEPDIR
683123e2cc7SmrgOBJEXT
684123e2cc7SmrgEXEEXT
685123e2cc7Smrgac_ct_CC
686123e2cc7SmrgCPPFLAGS
687123e2cc7SmrgLDFLAGS
688123e2cc7SmrgCFLAGS
689123e2cc7SmrgCC
690123e2cc7SmrgMAINT
691123e2cc7SmrgMAINTAINER_MODE_FALSE
692123e2cc7SmrgMAINTAINER_MODE_TRUE
693123e2cc7Smrgam__untar
694123e2cc7Smrgam__tar
695123e2cc7SmrgAMTAR
696123e2cc7Smrgam__leading_dot
697123e2cc7SmrgSET_MAKE
698123e2cc7SmrgAWK
699123e2cc7Smrgmkdir_p
700123e2cc7SmrgMKDIR_P
701123e2cc7SmrgINSTALL_STRIP_PROGRAM
702123e2cc7SmrgSTRIP
703123e2cc7Smrginstall_sh
704123e2cc7SmrgMAKEINFO
705123e2cc7SmrgAUTOHEADER
706123e2cc7SmrgAUTOMAKE
707123e2cc7SmrgAUTOCONF
708123e2cc7SmrgACLOCAL
709123e2cc7SmrgVERSION
710123e2cc7SmrgPACKAGE
711123e2cc7SmrgCYGPATH_W
712123e2cc7Smrgam__isrc
713123e2cc7SmrgINSTALL_DATA
714123e2cc7SmrgINSTALL_SCRIPT
715123e2cc7SmrgINSTALL_PROGRAM
716123e2cc7Smrgtarget_alias
717123e2cc7Smrghost_alias
718123e2cc7Smrgbuild_alias
719123e2cc7SmrgLIBS
720123e2cc7SmrgECHO_T
721123e2cc7SmrgECHO_N
722123e2cc7SmrgECHO_C
723123e2cc7SmrgDEFS
724123e2cc7Smrgmandir
725123e2cc7Smrglocaledir
726123e2cc7Smrglibdir
727123e2cc7Smrgpsdir
728123e2cc7Smrgpdfdir
729123e2cc7Smrgdvidir
730123e2cc7Smrghtmldir
731123e2cc7Smrginfodir
732123e2cc7Smrgdocdir
733123e2cc7Smrgoldincludedir
734123e2cc7Smrgincludedir
735123e2cc7Smrglocalstatedir
736123e2cc7Smrgsharedstatedir
737123e2cc7Smrgsysconfdir
738123e2cc7Smrgdatadir
739123e2cc7Smrgdatarootdir
740123e2cc7Smrglibexecdir
741123e2cc7Smrgsbindir
742123e2cc7Smrgbindir
743123e2cc7Smrgprogram_transform_name
744123e2cc7Smrgprefix
745123e2cc7Smrgexec_prefix
746123e2cc7SmrgPACKAGE_BUGREPORT
747123e2cc7SmrgPACKAGE_STRING
748123e2cc7SmrgPACKAGE_VERSION
749123e2cc7SmrgPACKAGE_TARNAME
750123e2cc7SmrgPACKAGE_NAME
751123e2cc7SmrgPATH_SEPARATOR
752123e2cc7SmrgSHELL'
7537da8b7e3Smrgac_subst_files=''
754123e2cc7Smrgac_user_opts='
755123e2cc7Smrgenable_option_checking
756123e2cc7Smrgenable_maintainer_mode
757123e2cc7Smrgenable_dependency_tracking
758123e2cc7Smrgenable_silent_rules
759123e2cc7Smrgenable_strict_compilation
760123e2cc7Smrgwith_release_version
761123e2cc7Smrg'
762123e2cc7Smrg      ac_precious_vars='build_alias
763123e2cc7Smrghost_alias
764123e2cc7Smrgtarget_alias
765123e2cc7SmrgCC
766123e2cc7SmrgCFLAGS
767123e2cc7SmrgLDFLAGS
768123e2cc7SmrgLIBS
769123e2cc7SmrgCPPFLAGS
770123e2cc7SmrgCPP
771123e2cc7SmrgPKG_CONFIG
772123e2cc7SmrgXREFRESH_CFLAGS
773123e2cc7SmrgXREFRESH_LIBS'
774123e2cc7Smrg
7757da8b7e3Smrg
7767da8b7e3Smrg# Initialize some variables set by options.
7777da8b7e3Smrgac_init_help=
7787da8b7e3Smrgac_init_version=false
779123e2cc7Smrgac_unrecognized_opts=
780123e2cc7Smrgac_unrecognized_sep=
7817da8b7e3Smrg# The variables have the same names as the options, with
7827da8b7e3Smrg# dashes changed to underlines.
7837da8b7e3Smrgcache_file=/dev/null
7847da8b7e3Smrgexec_prefix=NONE
7857da8b7e3Smrgno_create=
7867da8b7e3Smrgno_recursion=
7877da8b7e3Smrgprefix=NONE
7887da8b7e3Smrgprogram_prefix=NONE
7897da8b7e3Smrgprogram_suffix=NONE
7907da8b7e3Smrgprogram_transform_name=s,x,x,
7917da8b7e3Smrgsilent=
7927da8b7e3Smrgsite=
7937da8b7e3Smrgsrcdir=
7947da8b7e3Smrgverbose=
7957da8b7e3Smrgx_includes=NONE
7967da8b7e3Smrgx_libraries=NONE
7977da8b7e3Smrg
7987da8b7e3Smrg# Installation directory options.
7997da8b7e3Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
8007da8b7e3Smrg# and all the variables that are supposed to be based on exec_prefix
8017da8b7e3Smrg# by default will actually change.
8027da8b7e3Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
803123e2cc7Smrg# (The list follows the same order as the GNU Coding Standards.)
8047da8b7e3Smrgbindir='${exec_prefix}/bin'
8057da8b7e3Smrgsbindir='${exec_prefix}/sbin'
8067da8b7e3Smrglibexecdir='${exec_prefix}/libexec'
807123e2cc7Smrgdatarootdir='${prefix}/share'
808123e2cc7Smrgdatadir='${datarootdir}'
8097da8b7e3Smrgsysconfdir='${prefix}/etc'
8107da8b7e3Smrgsharedstatedir='${prefix}/com'
8117da8b7e3Smrglocalstatedir='${prefix}/var'
8127da8b7e3Smrgincludedir='${prefix}/include'
8137da8b7e3Smrgoldincludedir='/usr/include'
814123e2cc7Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
815123e2cc7Smrginfodir='${datarootdir}/info'
816123e2cc7Smrghtmldir='${docdir}'
817123e2cc7Smrgdvidir='${docdir}'
818123e2cc7Smrgpdfdir='${docdir}'
819123e2cc7Smrgpsdir='${docdir}'
820123e2cc7Smrglibdir='${exec_prefix}/lib'
821123e2cc7Smrglocaledir='${datarootdir}/locale'
822123e2cc7Smrgmandir='${datarootdir}/man'
8237da8b7e3Smrg
8247da8b7e3Smrgac_prev=
825123e2cc7Smrgac_dashdash=
8267da8b7e3Smrgfor ac_option
8277da8b7e3Smrgdo
8287da8b7e3Smrg  # If the previous option needs an argument, assign it.
8297da8b7e3Smrg  if test -n "$ac_prev"; then
830123e2cc7Smrg    eval $ac_prev=\$ac_option
8317da8b7e3Smrg    ac_prev=
8327da8b7e3Smrg    continue
8337da8b7e3Smrg  fi
8347da8b7e3Smrg
835123e2cc7Smrg  case $ac_option in
836123e2cc7Smrg  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
837123e2cc7Smrg  *)	ac_optarg=yes ;;
838123e2cc7Smrg  esac
8397da8b7e3Smrg
8407da8b7e3Smrg  # Accept the important Cygnus configure options, so we can diagnose typos.
8417da8b7e3Smrg
842123e2cc7Smrg  case $ac_dashdash$ac_option in
843123e2cc7Smrg  --)
844123e2cc7Smrg    ac_dashdash=yes ;;
8457da8b7e3Smrg
8467da8b7e3Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
8477da8b7e3Smrg    ac_prev=bindir ;;
8487da8b7e3Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
8497da8b7e3Smrg    bindir=$ac_optarg ;;
8507da8b7e3Smrg
8517da8b7e3Smrg  -build | --build | --buil | --bui | --bu)
8527da8b7e3Smrg    ac_prev=build_alias ;;
8537da8b7e3Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
8547da8b7e3Smrg    build_alias=$ac_optarg ;;
8557da8b7e3Smrg
8567da8b7e3Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
8577da8b7e3Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8587da8b7e3Smrg    ac_prev=cache_file ;;
8597da8b7e3Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8607da8b7e3Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8617da8b7e3Smrg    cache_file=$ac_optarg ;;
8627da8b7e3Smrg
8637da8b7e3Smrg  --config-cache | -C)
8647da8b7e3Smrg    cache_file=config.cache ;;
8657da8b7e3Smrg
866123e2cc7Smrg  -datadir | --datadir | --datadi | --datad)
8677da8b7e3Smrg    ac_prev=datadir ;;
868123e2cc7Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
8697da8b7e3Smrg    datadir=$ac_optarg ;;
8707da8b7e3Smrg
871123e2cc7Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
872123e2cc7Smrg  | --dataroo | --dataro | --datar)
873123e2cc7Smrg    ac_prev=datarootdir ;;
874123e2cc7Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
875123e2cc7Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
876123e2cc7Smrg    datarootdir=$ac_optarg ;;
877123e2cc7Smrg
8787da8b7e3Smrg  -disable-* | --disable-*)
879123e2cc7Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
8807da8b7e3Smrg    # Reject names that are not valid shell variable names.
881123e2cc7Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
882123e2cc7Smrg      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
8837da8b7e3Smrg   { (exit 1); exit 1; }; }
884123e2cc7Smrg    ac_useropt_orig=$ac_useropt
885123e2cc7Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886123e2cc7Smrg    case $ac_user_opts in
887123e2cc7Smrg      *"
888123e2cc7Smrg"enable_$ac_useropt"
889123e2cc7Smrg"*) ;;
890123e2cc7Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
891123e2cc7Smrg	 ac_unrecognized_sep=', ';;
892123e2cc7Smrg    esac
893123e2cc7Smrg    eval enable_$ac_useropt=no ;;
894123e2cc7Smrg
895123e2cc7Smrg  -docdir | --docdir | --docdi | --doc | --do)
896123e2cc7Smrg    ac_prev=docdir ;;
897123e2cc7Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
898123e2cc7Smrg    docdir=$ac_optarg ;;
899123e2cc7Smrg
900123e2cc7Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
901123e2cc7Smrg    ac_prev=dvidir ;;
902123e2cc7Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
903123e2cc7Smrg    dvidir=$ac_optarg ;;
9047da8b7e3Smrg
9057da8b7e3Smrg  -enable-* | --enable-*)
906123e2cc7Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
9077da8b7e3Smrg    # Reject names that are not valid shell variable names.
908123e2cc7Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909123e2cc7Smrg      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
9107da8b7e3Smrg   { (exit 1); exit 1; }; }
911123e2cc7Smrg    ac_useropt_orig=$ac_useropt
912123e2cc7Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913123e2cc7Smrg    case $ac_user_opts in
914123e2cc7Smrg      *"
915123e2cc7Smrg"enable_$ac_useropt"
916123e2cc7Smrg"*) ;;
917123e2cc7Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
918123e2cc7Smrg	 ac_unrecognized_sep=', ';;
9197da8b7e3Smrg    esac
920123e2cc7Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
9217da8b7e3Smrg
9227da8b7e3Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
9237da8b7e3Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
9247da8b7e3Smrg  | --exec | --exe | --ex)
9257da8b7e3Smrg    ac_prev=exec_prefix ;;
9267da8b7e3Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
9277da8b7e3Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
9287da8b7e3Smrg  | --exec=* | --exe=* | --ex=*)
9297da8b7e3Smrg    exec_prefix=$ac_optarg ;;
9307da8b7e3Smrg
9317da8b7e3Smrg  -gas | --gas | --ga | --g)
9327da8b7e3Smrg    # Obsolete; use --with-gas.
9337da8b7e3Smrg    with_gas=yes ;;
9347da8b7e3Smrg
9357da8b7e3Smrg  -help | --help | --hel | --he | -h)
9367da8b7e3Smrg    ac_init_help=long ;;
9377da8b7e3Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
9387da8b7e3Smrg    ac_init_help=recursive ;;
9397da8b7e3Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
9407da8b7e3Smrg    ac_init_help=short ;;
9417da8b7e3Smrg
9427da8b7e3Smrg  -host | --host | --hos | --ho)
9437da8b7e3Smrg    ac_prev=host_alias ;;
9447da8b7e3Smrg  -host=* | --host=* | --hos=* | --ho=*)
9457da8b7e3Smrg    host_alias=$ac_optarg ;;
9467da8b7e3Smrg
947123e2cc7Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948123e2cc7Smrg    ac_prev=htmldir ;;
949123e2cc7Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950123e2cc7Smrg  | --ht=*)
951123e2cc7Smrg    htmldir=$ac_optarg ;;
952123e2cc7Smrg
9537da8b7e3Smrg  -includedir | --includedir | --includedi | --included | --include \
9547da8b7e3Smrg  | --includ | --inclu | --incl | --inc)
9557da8b7e3Smrg    ac_prev=includedir ;;
9567da8b7e3Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
9577da8b7e3Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
9587da8b7e3Smrg    includedir=$ac_optarg ;;
9597da8b7e3Smrg
9607da8b7e3Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
9617da8b7e3Smrg    ac_prev=infodir ;;
9627da8b7e3Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
9637da8b7e3Smrg    infodir=$ac_optarg ;;
9647da8b7e3Smrg
9657da8b7e3Smrg  -libdir | --libdir | --libdi | --libd)
9667da8b7e3Smrg    ac_prev=libdir ;;
9677da8b7e3Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
9687da8b7e3Smrg    libdir=$ac_optarg ;;
9697da8b7e3Smrg
9707da8b7e3Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
9717da8b7e3Smrg  | --libexe | --libex | --libe)
9727da8b7e3Smrg    ac_prev=libexecdir ;;
9737da8b7e3Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
9747da8b7e3Smrg  | --libexe=* | --libex=* | --libe=*)
9757da8b7e3Smrg    libexecdir=$ac_optarg ;;
9767da8b7e3Smrg
977123e2cc7Smrg  -localedir | --localedir | --localedi | --localed | --locale)
978123e2cc7Smrg    ac_prev=localedir ;;
979123e2cc7Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980123e2cc7Smrg    localedir=$ac_optarg ;;
981123e2cc7Smrg
9827da8b7e3Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
983123e2cc7Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
9847da8b7e3Smrg    ac_prev=localstatedir ;;
9857da8b7e3Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
986123e2cc7Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
9877da8b7e3Smrg    localstatedir=$ac_optarg ;;
9887da8b7e3Smrg
9897da8b7e3Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
9907da8b7e3Smrg    ac_prev=mandir ;;
9917da8b7e3Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
9927da8b7e3Smrg    mandir=$ac_optarg ;;
9937da8b7e3Smrg
9947da8b7e3Smrg  -nfp | --nfp | --nf)
9957da8b7e3Smrg    # Obsolete; use --without-fp.
9967da8b7e3Smrg    with_fp=no ;;
9977da8b7e3Smrg
9987da8b7e3Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
9997da8b7e3Smrg  | --no-cr | --no-c | -n)
10007da8b7e3Smrg    no_create=yes ;;
10017da8b7e3Smrg
10027da8b7e3Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
10037da8b7e3Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
10047da8b7e3Smrg    no_recursion=yes ;;
10057da8b7e3Smrg
10067da8b7e3Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
10077da8b7e3Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
10087da8b7e3Smrg  | --oldin | --oldi | --old | --ol | --o)
10097da8b7e3Smrg    ac_prev=oldincludedir ;;
10107da8b7e3Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
10117da8b7e3Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
10127da8b7e3Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
10137da8b7e3Smrg    oldincludedir=$ac_optarg ;;
10147da8b7e3Smrg
10157da8b7e3Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10167da8b7e3Smrg    ac_prev=prefix ;;
10177da8b7e3Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10187da8b7e3Smrg    prefix=$ac_optarg ;;
10197da8b7e3Smrg
10207da8b7e3Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
10217da8b7e3Smrg  | --program-pre | --program-pr | --program-p)
10227da8b7e3Smrg    ac_prev=program_prefix ;;
10237da8b7e3Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
10247da8b7e3Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
10257da8b7e3Smrg    program_prefix=$ac_optarg ;;
10267da8b7e3Smrg
10277da8b7e3Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
10287da8b7e3Smrg  | --program-suf | --program-su | --program-s)
10297da8b7e3Smrg    ac_prev=program_suffix ;;
10307da8b7e3Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
10317da8b7e3Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
10327da8b7e3Smrg    program_suffix=$ac_optarg ;;
10337da8b7e3Smrg
10347da8b7e3Smrg  -program-transform-name | --program-transform-name \
10357da8b7e3Smrg  | --program-transform-nam | --program-transform-na \
10367da8b7e3Smrg  | --program-transform-n | --program-transform- \
10377da8b7e3Smrg  | --program-transform | --program-transfor \
10387da8b7e3Smrg  | --program-transfo | --program-transf \
10397da8b7e3Smrg  | --program-trans | --program-tran \
10407da8b7e3Smrg  | --progr-tra | --program-tr | --program-t)
10417da8b7e3Smrg    ac_prev=program_transform_name ;;
10427da8b7e3Smrg  -program-transform-name=* | --program-transform-name=* \
10437da8b7e3Smrg  | --program-transform-nam=* | --program-transform-na=* \
10447da8b7e3Smrg  | --program-transform-n=* | --program-transform-=* \
10457da8b7e3Smrg  | --program-transform=* | --program-transfor=* \
10467da8b7e3Smrg  | --program-transfo=* | --program-transf=* \
10477da8b7e3Smrg  | --program-trans=* | --program-tran=* \
10487da8b7e3Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
10497da8b7e3Smrg    program_transform_name=$ac_optarg ;;
10507da8b7e3Smrg
1051123e2cc7Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052123e2cc7Smrg    ac_prev=pdfdir ;;
1053123e2cc7Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054123e2cc7Smrg    pdfdir=$ac_optarg ;;
1055123e2cc7Smrg
1056123e2cc7Smrg  -psdir | --psdir | --psdi | --psd | --ps)
1057123e2cc7Smrg    ac_prev=psdir ;;
1058123e2cc7Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059123e2cc7Smrg    psdir=$ac_optarg ;;
1060123e2cc7Smrg
10617da8b7e3Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10627da8b7e3Smrg  | -silent | --silent | --silen | --sile | --sil)
10637da8b7e3Smrg    silent=yes ;;
10647da8b7e3Smrg
10657da8b7e3Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
10667da8b7e3Smrg    ac_prev=sbindir ;;
10677da8b7e3Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
10687da8b7e3Smrg  | --sbi=* | --sb=*)
10697da8b7e3Smrg    sbindir=$ac_optarg ;;
10707da8b7e3Smrg
10717da8b7e3Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
10727da8b7e3Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
10737da8b7e3Smrg  | --sharedst | --shareds | --shared | --share | --shar \
10747da8b7e3Smrg  | --sha | --sh)
10757da8b7e3Smrg    ac_prev=sharedstatedir ;;
10767da8b7e3Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
10777da8b7e3Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
10787da8b7e3Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
10797da8b7e3Smrg  | --sha=* | --sh=*)
10807da8b7e3Smrg    sharedstatedir=$ac_optarg ;;
10817da8b7e3Smrg
10827da8b7e3Smrg  -site | --site | --sit)
10837da8b7e3Smrg    ac_prev=site ;;
10847da8b7e3Smrg  -site=* | --site=* | --sit=*)
10857da8b7e3Smrg    site=$ac_optarg ;;
10867da8b7e3Smrg
10877da8b7e3Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10887da8b7e3Smrg    ac_prev=srcdir ;;
10897da8b7e3Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10907da8b7e3Smrg    srcdir=$ac_optarg ;;
10917da8b7e3Smrg
10927da8b7e3Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
10937da8b7e3Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
10947da8b7e3Smrg    ac_prev=sysconfdir ;;
10957da8b7e3Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
10967da8b7e3Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
10977da8b7e3Smrg    sysconfdir=$ac_optarg ;;
10987da8b7e3Smrg
10997da8b7e3Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
11007da8b7e3Smrg    ac_prev=target_alias ;;
11017da8b7e3Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
11027da8b7e3Smrg    target_alias=$ac_optarg ;;
11037da8b7e3Smrg
11047da8b7e3Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
11057da8b7e3Smrg    verbose=yes ;;
11067da8b7e3Smrg
11077da8b7e3Smrg  -version | --version | --versio | --versi | --vers | -V)
11087da8b7e3Smrg    ac_init_version=: ;;
11097da8b7e3Smrg
11107da8b7e3Smrg  -with-* | --with-*)
1111123e2cc7Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
11127da8b7e3Smrg    # Reject names that are not valid shell variable names.
1113123e2cc7Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114123e2cc7Smrg      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
11157da8b7e3Smrg   { (exit 1); exit 1; }; }
1116123e2cc7Smrg    ac_useropt_orig=$ac_useropt
1117123e2cc7Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118123e2cc7Smrg    case $ac_user_opts in
1119123e2cc7Smrg      *"
1120123e2cc7Smrg"with_$ac_useropt"
1121123e2cc7Smrg"*) ;;
1122123e2cc7Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1123123e2cc7Smrg	 ac_unrecognized_sep=', ';;
11247da8b7e3Smrg    esac
1125123e2cc7Smrg    eval with_$ac_useropt=\$ac_optarg ;;
11267da8b7e3Smrg
11277da8b7e3Smrg  -without-* | --without-*)
1128123e2cc7Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
11297da8b7e3Smrg    # Reject names that are not valid shell variable names.
1130123e2cc7Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131123e2cc7Smrg      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
11327da8b7e3Smrg   { (exit 1); exit 1; }; }
1133123e2cc7Smrg    ac_useropt_orig=$ac_useropt
1134123e2cc7Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135123e2cc7Smrg    case $ac_user_opts in
1136123e2cc7Smrg      *"
1137123e2cc7Smrg"with_$ac_useropt"
1138123e2cc7Smrg"*) ;;
1139123e2cc7Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1140123e2cc7Smrg	 ac_unrecognized_sep=', ';;
1141123e2cc7Smrg    esac
1142123e2cc7Smrg    eval with_$ac_useropt=no ;;
11437da8b7e3Smrg
11447da8b7e3Smrg  --x)
11457da8b7e3Smrg    # Obsolete; use --with-x.
11467da8b7e3Smrg    with_x=yes ;;
11477da8b7e3Smrg
11487da8b7e3Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
11497da8b7e3Smrg  | --x-incl | --x-inc | --x-in | --x-i)
11507da8b7e3Smrg    ac_prev=x_includes ;;
11517da8b7e3Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
11527da8b7e3Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
11537da8b7e3Smrg    x_includes=$ac_optarg ;;
11547da8b7e3Smrg
11557da8b7e3Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
11567da8b7e3Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
11577da8b7e3Smrg    ac_prev=x_libraries ;;
11587da8b7e3Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
11597da8b7e3Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
11607da8b7e3Smrg    x_libraries=$ac_optarg ;;
11617da8b7e3Smrg
1162123e2cc7Smrg  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
11637da8b7e3SmrgTry \`$0 --help' for more information." >&2
11647da8b7e3Smrg   { (exit 1); exit 1; }; }
11657da8b7e3Smrg    ;;
11667da8b7e3Smrg
11677da8b7e3Smrg  *=*)
11687da8b7e3Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
11697da8b7e3Smrg    # Reject names that are not valid shell variable names.
11707da8b7e3Smrg    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1171123e2cc7Smrg      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
11727da8b7e3Smrg   { (exit 1); exit 1; }; }
1173123e2cc7Smrg    eval $ac_envvar=\$ac_optarg
11747da8b7e3Smrg    export $ac_envvar ;;
11757da8b7e3Smrg
11767da8b7e3Smrg  *)
11777da8b7e3Smrg    # FIXME: should be removed in autoconf 3.0.
1178123e2cc7Smrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
11797da8b7e3Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1180123e2cc7Smrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
11817da8b7e3Smrg    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
11827da8b7e3Smrg    ;;
11837da8b7e3Smrg
11847da8b7e3Smrg  esac
11857da8b7e3Smrgdone
11867da8b7e3Smrg
11877da8b7e3Smrgif test -n "$ac_prev"; then
11887da8b7e3Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1189123e2cc7Smrg  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
11907da8b7e3Smrg   { (exit 1); exit 1; }; }
11917da8b7e3Smrgfi
11927da8b7e3Smrg
1193123e2cc7Smrgif test -n "$ac_unrecognized_opts"; then
1194123e2cc7Smrg  case $enable_option_checking in
1195123e2cc7Smrg    no) ;;
1196123e2cc7Smrg    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1197123e2cc7Smrg   { (exit 1); exit 1; }; } ;;
1198123e2cc7Smrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
11997da8b7e3Smrg  esac
1200123e2cc7Smrgfi
12017da8b7e3Smrg
1202123e2cc7Smrg# Check all directory arguments for consistency.
1203123e2cc7Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204123e2cc7Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1205123e2cc7Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206123e2cc7Smrg		libdir localedir mandir
12077da8b7e3Smrgdo
1208123e2cc7Smrg  eval ac_val=\$$ac_var
1209123e2cc7Smrg  # Remove trailing slashes.
12107da8b7e3Smrg  case $ac_val in
1211123e2cc7Smrg    */ )
1212123e2cc7Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213123e2cc7Smrg      eval $ac_var=\$ac_val;;
1214123e2cc7Smrg  esac
1215123e2cc7Smrg  # Be sure to have absolute directory names.
1216123e2cc7Smrg  case $ac_val in
1217123e2cc7Smrg    [\\/$]* | ?:[\\/]* )  continue;;
1218123e2cc7Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
12197da8b7e3Smrg  esac
1220123e2cc7Smrg  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1221123e2cc7Smrg   { (exit 1); exit 1; }; }
12227da8b7e3Smrgdone
12237da8b7e3Smrg
12247da8b7e3Smrg# There might be people who depend on the old broken behavior: `$host'
12257da8b7e3Smrg# used to hold the argument of --host etc.
12267da8b7e3Smrg# FIXME: To remove some day.
12277da8b7e3Smrgbuild=$build_alias
12287da8b7e3Smrghost=$host_alias
12297da8b7e3Smrgtarget=$target_alias
12307da8b7e3Smrg
12317da8b7e3Smrg# FIXME: To remove some day.
12327da8b7e3Smrgif test "x$host_alias" != x; then
12337da8b7e3Smrg  if test "x$build_alias" = x; then
12347da8b7e3Smrg    cross_compiling=maybe
1235123e2cc7Smrg    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
12367da8b7e3Smrg    If a cross compiler is detected then cross compile mode will be used." >&2
12377da8b7e3Smrg  elif test "x$build_alias" != "x$host_alias"; then
12387da8b7e3Smrg    cross_compiling=yes
12397da8b7e3Smrg  fi
12407da8b7e3Smrgfi
12417da8b7e3Smrg
12427da8b7e3Smrgac_tool_prefix=
12437da8b7e3Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
12447da8b7e3Smrg
12457da8b7e3Smrgtest "$silent" = yes && exec 6>/dev/null
12467da8b7e3Smrg
12477da8b7e3Smrg
1248123e2cc7Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1249123e2cc7Smrgac_ls_di=`ls -di .` &&
1250123e2cc7Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1251123e2cc7Smrg  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1252123e2cc7Smrg   { (exit 1); exit 1; }; }
1253123e2cc7Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254123e2cc7Smrg  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1255123e2cc7Smrg   { (exit 1); exit 1; }; }
1256123e2cc7Smrg
1257123e2cc7Smrg
1258123e2cc7Smrg# Find the source files, if location was not specified.
1259123e2cc7Smrgif test -z "$srcdir"; then
1260123e2cc7Smrg  ac_srcdir_defaulted=yes
1261123e2cc7Smrg  # Try the directory containing this script, then the parent directory.
1262123e2cc7Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
1263123e2cc7Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264123e2cc7Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
1265123e2cc7Smrg	 X"$as_myself" : 'X\(//\)$' \| \
1266123e2cc7Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1267123e2cc7Smrg$as_echo X"$as_myself" |
1268123e2cc7Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269123e2cc7Smrg	    s//\1/
1270123e2cc7Smrg	    q
1271123e2cc7Smrg	  }
1272123e2cc7Smrg	  /^X\(\/\/\)[^/].*/{
1273123e2cc7Smrg	    s//\1/
1274123e2cc7Smrg	    q
1275123e2cc7Smrg	  }
1276123e2cc7Smrg	  /^X\(\/\/\)$/{
1277123e2cc7Smrg	    s//\1/
1278123e2cc7Smrg	    q
1279123e2cc7Smrg	  }
1280123e2cc7Smrg	  /^X\(\/\).*/{
1281123e2cc7Smrg	    s//\1/
1282123e2cc7Smrg	    q
1283123e2cc7Smrg	  }
1284123e2cc7Smrg	  s/.*/./; q'`
12857da8b7e3Smrg  srcdir=$ac_confdir
1286123e2cc7Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
12877da8b7e3Smrg    srcdir=..
12887da8b7e3Smrg  fi
12897da8b7e3Smrgelse
12907da8b7e3Smrg  ac_srcdir_defaulted=no
12917da8b7e3Smrgfi
1292123e2cc7Smrgif test ! -r "$srcdir/$ac_unique_file"; then
1293123e2cc7Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1294123e2cc7Smrg  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
12957da8b7e3Smrg   { (exit 1); exit 1; }; }
12967da8b7e3Smrgfi
1297123e2cc7Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1298123e2cc7Smrgac_abs_confdir=`(
1299123e2cc7Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
13007da8b7e3Smrg   { (exit 1); exit 1; }; }
1301123e2cc7Smrg	pwd)`
1302123e2cc7Smrg# When building in place, set srcdir=.
1303123e2cc7Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1304123e2cc7Smrg  srcdir=.
1305123e2cc7Smrgfi
1306123e2cc7Smrg# Remove unnecessary trailing slashes from srcdir.
1307123e2cc7Smrg# Double slashes in file names in object file debugging info
1308123e2cc7Smrg# mess up M-x gdb in Emacs.
1309123e2cc7Smrgcase $srcdir in
1310123e2cc7Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311123e2cc7Smrgesac
1312123e2cc7Smrgfor ac_var in $ac_precious_vars; do
1313123e2cc7Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314123e2cc7Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
1315123e2cc7Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316123e2cc7Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317123e2cc7Smrgdone
13187da8b7e3Smrg
13197da8b7e3Smrg#
13207da8b7e3Smrg# Report the --help message.
13217da8b7e3Smrg#
13227da8b7e3Smrgif test "$ac_init_help" = "long"; then
13237da8b7e3Smrg  # Omit some internal or obsolete options to make the list less imposing.
13247da8b7e3Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
13257da8b7e3Smrg  cat <<_ACEOF
1326123e2cc7Smrg\`configure' configures xrefresh 1.0.3 to adapt to many kinds of systems.
13277da8b7e3Smrg
13287da8b7e3SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
13297da8b7e3Smrg
13307da8b7e3SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
13317da8b7e3SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
13327da8b7e3Smrg
13337da8b7e3SmrgDefaults for the options are specified in brackets.
13347da8b7e3Smrg
13357da8b7e3SmrgConfiguration:
13367da8b7e3Smrg  -h, --help              display this help and exit
13377da8b7e3Smrg      --help=short        display options specific to this package
13387da8b7e3Smrg      --help=recursive    display the short help of all the included packages
13397da8b7e3Smrg  -V, --version           display version information and exit
13407da8b7e3Smrg  -q, --quiet, --silent   do not print \`checking...' messages
13417da8b7e3Smrg      --cache-file=FILE   cache test results in FILE [disabled]
13427da8b7e3Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
13437da8b7e3Smrg  -n, --no-create         do not create output files
13447da8b7e3Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
13457da8b7e3Smrg
13467da8b7e3SmrgInstallation directories:
13477da8b7e3Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
1348123e2cc7Smrg                          [$ac_default_prefix]
13497da8b7e3Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1350123e2cc7Smrg                          [PREFIX]
13517da8b7e3Smrg
13527da8b7e3SmrgBy default, \`make install' will install all the files in
13537da8b7e3Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
13547da8b7e3Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
13557da8b7e3Smrgfor instance \`--prefix=\$HOME'.
13567da8b7e3Smrg
13577da8b7e3SmrgFor better control, use the options below.
13587da8b7e3Smrg
13597da8b7e3SmrgFine tuning of the installation directories:
1360123e2cc7Smrg  --bindir=DIR            user executables [EPREFIX/bin]
1361123e2cc7Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1362123e2cc7Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
1363123e2cc7Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1364123e2cc7Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1365123e2cc7Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1366123e2cc7Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
1367123e2cc7Smrg  --includedir=DIR        C header files [PREFIX/include]
1368123e2cc7Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1369123e2cc7Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1370123e2cc7Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1371123e2cc7Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
1372123e2cc7Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1373123e2cc7Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
1374123e2cc7Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xrefresh]
1375123e2cc7Smrg  --htmldir=DIR           html documentation [DOCDIR]
1376123e2cc7Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
1377123e2cc7Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
1378123e2cc7Smrg  --psdir=DIR             ps documentation [DOCDIR]
13797da8b7e3Smrg_ACEOF
13807da8b7e3Smrg
13817da8b7e3Smrg  cat <<\_ACEOF
13827da8b7e3Smrg
13837da8b7e3SmrgProgram names:
13847da8b7e3Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
13857da8b7e3Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
13867da8b7e3Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
13877da8b7e3Smrg
13887da8b7e3SmrgSystem types:
13897da8b7e3Smrg  --build=BUILD     configure for building on BUILD [guessed]
13907da8b7e3Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
13917da8b7e3Smrg_ACEOF
13927da8b7e3Smrgfi
13937da8b7e3Smrg
13947da8b7e3Smrgif test -n "$ac_init_help"; then
13957da8b7e3Smrg  case $ac_init_help in
1396123e2cc7Smrg     short | recursive ) echo "Configuration of xrefresh 1.0.3:";;
13977da8b7e3Smrg   esac
13987da8b7e3Smrg  cat <<\_ACEOF
13997da8b7e3Smrg
14007da8b7e3SmrgOptional Features:
1401123e2cc7Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
14027da8b7e3Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
14037da8b7e3Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
14047da8b7e3Smrg  --enable-maintainer-mode  enable make rules and dependencies not useful
14057da8b7e3Smrg			  (and sometimes confusing) to the casual installer
14067da8b7e3Smrg  --disable-dependency-tracking  speeds up one-time build
14077da8b7e3Smrg  --enable-dependency-tracking   do not reject slow dependency extractors
1408123e2cc7Smrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
1409123e2cc7Smrg  --disable-silent-rules         verbose build output (undo: `make V=0')
1410123e2cc7Smrg  --enable-strict-compilation
1411123e2cc7Smrg                          Enable all warnings from compiler and make them
1412123e2cc7Smrg                          errors (default: disabled)
14137da8b7e3Smrg
14147da8b7e3SmrgOptional Packages:
14157da8b7e3Smrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
14167da8b7e3Smrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
14177da8b7e3Smrg  --with-release-version=STRING
14187da8b7e3Smrg                          Use release version string in package name
14197da8b7e3Smrg
14207da8b7e3SmrgSome influential environment variables:
14217da8b7e3Smrg  CC          C compiler command
14227da8b7e3Smrg  CFLAGS      C compiler flags
14237da8b7e3Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
14247da8b7e3Smrg              nonstandard directory <lib dir>
1425123e2cc7Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
1426123e2cc7Smrg  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1427123e2cc7Smrg              you have headers in a nonstandard directory <include dir>
1428123e2cc7Smrg  CPP         C preprocessor
14297da8b7e3Smrg  PKG_CONFIG  path to pkg-config utility
14307da8b7e3Smrg  XREFRESH_CFLAGS
14317da8b7e3Smrg              C compiler flags for XREFRESH, overriding pkg-config
14327da8b7e3Smrg  XREFRESH_LIBS
14337da8b7e3Smrg              linker flags for XREFRESH, overriding pkg-config
14347da8b7e3Smrg
14357da8b7e3SmrgUse these variables to override the choices made by `configure' or to help
14367da8b7e3Smrgit to find libraries and programs with nonstandard names/locations.
14377da8b7e3Smrg
14387da8b7e3SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
14397da8b7e3Smrg_ACEOF
1440123e2cc7Smrgac_status=$?
14417da8b7e3Smrgfi
14427da8b7e3Smrg
14437da8b7e3Smrgif test "$ac_init_help" = "recursive"; then
14447da8b7e3Smrg  # If there are subdirs, report their specific --help.
14457da8b7e3Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1446123e2cc7Smrg    test -d "$ac_dir" ||
1447123e2cc7Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1448123e2cc7Smrg      continue
14497da8b7e3Smrg    ac_builddir=.
14507da8b7e3Smrg
1451123e2cc7Smrgcase "$ac_dir" in
1452123e2cc7Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453123e2cc7Smrg*)
1454123e2cc7Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1455123e2cc7Smrg  # A ".." for each directory in $ac_dir_suffix.
1456123e2cc7Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1457123e2cc7Smrg  case $ac_top_builddir_sub in
1458123e2cc7Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459123e2cc7Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1460123e2cc7Smrg  esac ;;
1461123e2cc7Smrgesac
1462123e2cc7Smrgac_abs_top_builddir=$ac_pwd
1463123e2cc7Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1464123e2cc7Smrg# for backward compatibility:
1465123e2cc7Smrgac_top_builddir=$ac_top_build_prefix
14667da8b7e3Smrg
14677da8b7e3Smrgcase $srcdir in
1468123e2cc7Smrg  .)  # We are building in place.
14697da8b7e3Smrg    ac_srcdir=.
1470123e2cc7Smrg    ac_top_srcdir=$ac_top_builddir_sub
1471123e2cc7Smrg    ac_abs_top_srcdir=$ac_pwd ;;
1472123e2cc7Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
14737da8b7e3Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
1474123e2cc7Smrg    ac_top_srcdir=$srcdir
1475123e2cc7Smrg    ac_abs_top_srcdir=$srcdir ;;
1476123e2cc7Smrg  *) # Relative name.
1477123e2cc7Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1478123e2cc7Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1479123e2cc7Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14807da8b7e3Smrgesac
1481123e2cc7Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1482123e2cc7Smrg
1483123e2cc7Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
1484123e2cc7Smrg    # Check for guested configure.
1485123e2cc7Smrg    if test -f "$ac_srcdir/configure.gnu"; then
1486123e2cc7Smrg      echo &&
1487123e2cc7Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1488123e2cc7Smrg    elif test -f "$ac_srcdir/configure"; then
1489123e2cc7Smrg      echo &&
1490123e2cc7Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
14917da8b7e3Smrg    else
1492123e2cc7Smrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1493123e2cc7Smrg    fi || ac_status=$?
1494123e2cc7Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
14957da8b7e3Smrg  done
14967da8b7e3Smrgfi
14977da8b7e3Smrg
1498123e2cc7Smrgtest -n "$ac_init_help" && exit $ac_status
14997da8b7e3Smrgif $ac_init_version; then
15007da8b7e3Smrg  cat <<\_ACEOF
1501123e2cc7Smrgxrefresh configure 1.0.3
1502123e2cc7Smrggenerated by GNU Autoconf 2.63
15037da8b7e3Smrg
1504123e2cc7SmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1505123e2cc7Smrg2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
15067da8b7e3SmrgThis configure script is free software; the Free Software Foundation
15077da8b7e3Smrggives unlimited permission to copy, distribute and modify it.
15087da8b7e3Smrg_ACEOF
1509123e2cc7Smrg  exit
15107da8b7e3Smrgfi
1511123e2cc7Smrgcat >config.log <<_ACEOF
15127da8b7e3SmrgThis file contains any messages produced by compilers while
15137da8b7e3Smrgrunning configure, to aid debugging if configure makes a mistake.
15147da8b7e3Smrg
1515123e2cc7SmrgIt was created by xrefresh $as_me 1.0.3, which was
1516123e2cc7Smrggenerated by GNU Autoconf 2.63.  Invocation command line was
15177da8b7e3Smrg
15187da8b7e3Smrg  $ $0 $@
15197da8b7e3Smrg
15207da8b7e3Smrg_ACEOF
1521123e2cc7Smrgexec 5>>config.log
15227da8b7e3Smrg{
15237da8b7e3Smrgcat <<_ASUNAME
15247da8b7e3Smrg## --------- ##
15257da8b7e3Smrg## Platform. ##
15267da8b7e3Smrg## --------- ##
15277da8b7e3Smrg
15287da8b7e3Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
15297da8b7e3Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
15307da8b7e3Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
15317da8b7e3Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
15327da8b7e3Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
15337da8b7e3Smrg
15347da8b7e3Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
15357da8b7e3Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
15367da8b7e3Smrg
15377da8b7e3Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
15387da8b7e3Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
15397da8b7e3Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1540123e2cc7Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
15417da8b7e3Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
15427da8b7e3Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
15437da8b7e3Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
15447da8b7e3Smrg
15457da8b7e3Smrg_ASUNAME
15467da8b7e3Smrg
15477da8b7e3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15487da8b7e3Smrgfor as_dir in $PATH
15497da8b7e3Smrgdo
15507da8b7e3Smrg  IFS=$as_save_IFS
15517da8b7e3Smrg  test -z "$as_dir" && as_dir=.
1552123e2cc7Smrg  $as_echo "PATH: $as_dir"
15537da8b7e3Smrgdone
1554123e2cc7SmrgIFS=$as_save_IFS
15557da8b7e3Smrg
15567da8b7e3Smrg} >&5
15577da8b7e3Smrg
15587da8b7e3Smrgcat >&5 <<_ACEOF
15597da8b7e3Smrg
15607da8b7e3Smrg
15617da8b7e3Smrg## ----------- ##
15627da8b7e3Smrg## Core tests. ##
15637da8b7e3Smrg## ----------- ##
15647da8b7e3Smrg
15657da8b7e3Smrg_ACEOF
15667da8b7e3Smrg
15677da8b7e3Smrg
15687da8b7e3Smrg# Keep a trace of the command line.
15697da8b7e3Smrg# Strip out --no-create and --no-recursion so they do not pile up.
15707da8b7e3Smrg# Strip out --silent because we don't want to record it for future runs.
15717da8b7e3Smrg# Also quote any args containing shell meta-characters.
15727da8b7e3Smrg# Make two passes to allow for proper duplicate-argument suppression.
15737da8b7e3Smrgac_configure_args=
15747da8b7e3Smrgac_configure_args0=
15757da8b7e3Smrgac_configure_args1=
15767da8b7e3Smrgac_must_keep_next=false
15777da8b7e3Smrgfor ac_pass in 1 2
15787da8b7e3Smrgdo
15797da8b7e3Smrg  for ac_arg
15807da8b7e3Smrg  do
15817da8b7e3Smrg    case $ac_arg in
15827da8b7e3Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
15837da8b7e3Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15847da8b7e3Smrg    | -silent | --silent | --silen | --sile | --sil)
15857da8b7e3Smrg      continue ;;
1586123e2cc7Smrg    *\'*)
1587123e2cc7Smrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15887da8b7e3Smrg    esac
15897da8b7e3Smrg    case $ac_pass in
15907da8b7e3Smrg    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
15917da8b7e3Smrg    2)
15927da8b7e3Smrg      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
15937da8b7e3Smrg      if test $ac_must_keep_next = true; then
15947da8b7e3Smrg	ac_must_keep_next=false # Got value, back to normal.
15957da8b7e3Smrg      else
15967da8b7e3Smrg	case $ac_arg in
15977da8b7e3Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
15987da8b7e3Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
15997da8b7e3Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
16007da8b7e3Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
16017da8b7e3Smrg	    case "$ac_configure_args0 " in
16027da8b7e3Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
16037da8b7e3Smrg	    esac
16047da8b7e3Smrg	    ;;
16057da8b7e3Smrg	  -* ) ac_must_keep_next=true ;;
16067da8b7e3Smrg	esac
16077da8b7e3Smrg      fi
1608123e2cc7Smrg      ac_configure_args="$ac_configure_args '$ac_arg'"
16097da8b7e3Smrg      ;;
16107da8b7e3Smrg    esac
16117da8b7e3Smrg  done
16127da8b7e3Smrgdone
16137da8b7e3Smrg$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
16147da8b7e3Smrg$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
16157da8b7e3Smrg
16167da8b7e3Smrg# When interrupted or exit'd, cleanup temporary files, and complete
16177da8b7e3Smrg# config.log.  We remove comments because anyway the quotes in there
16187da8b7e3Smrg# would cause problems or look ugly.
1619123e2cc7Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
1620123e2cc7Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
16217da8b7e3Smrgtrap 'exit_status=$?
16227da8b7e3Smrg  # Save into config.log some information that might help in debugging.
16237da8b7e3Smrg  {
16247da8b7e3Smrg    echo
16257da8b7e3Smrg
16267da8b7e3Smrg    cat <<\_ASBOX
16277da8b7e3Smrg## ---------------- ##
16287da8b7e3Smrg## Cache variables. ##
16297da8b7e3Smrg## ---------------- ##
16307da8b7e3Smrg_ASBOX
16317da8b7e3Smrg    echo
16327da8b7e3Smrg    # The following way of writing the cache mishandles newlines in values,
1633123e2cc7Smrg(
1634123e2cc7Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1635123e2cc7Smrg    eval ac_val=\$$ac_var
1636123e2cc7Smrg    case $ac_val in #(
1637123e2cc7Smrg    *${as_nl}*)
1638123e2cc7Smrg      case $ac_var in #(
1639123e2cc7Smrg      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1640123e2cc7Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1641123e2cc7Smrg      esac
1642123e2cc7Smrg      case $ac_var in #(
1643123e2cc7Smrg      _ | IFS | as_nl) ;; #(
1644123e2cc7Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1645123e2cc7Smrg      *) $as_unset $ac_var ;;
1646123e2cc7Smrg      esac ;;
1647123e2cc7Smrg    esac
1648123e2cc7Smrg  done
16497da8b7e3Smrg  (set) 2>&1 |
1650123e2cc7Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1651123e2cc7Smrg    *${as_nl}ac_space=\ *)
16527da8b7e3Smrg      sed -n \
1653123e2cc7Smrg	"s/'\''/'\''\\\\'\'''\''/g;
1654123e2cc7Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1655123e2cc7Smrg      ;; #(
16567da8b7e3Smrg    *)
1657123e2cc7Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16587da8b7e3Smrg      ;;
1659123e2cc7Smrg    esac |
1660123e2cc7Smrg    sort
1661123e2cc7Smrg)
16627da8b7e3Smrg    echo
16637da8b7e3Smrg
16647da8b7e3Smrg    cat <<\_ASBOX
16657da8b7e3Smrg## ----------------- ##
16667da8b7e3Smrg## Output variables. ##
16677da8b7e3Smrg## ----------------- ##
16687da8b7e3Smrg_ASBOX
16697da8b7e3Smrg    echo
16707da8b7e3Smrg    for ac_var in $ac_subst_vars
16717da8b7e3Smrg    do
1672123e2cc7Smrg      eval ac_val=\$$ac_var
1673123e2cc7Smrg      case $ac_val in
1674123e2cc7Smrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1675123e2cc7Smrg      esac
1676123e2cc7Smrg      $as_echo "$ac_var='\''$ac_val'\''"
16777da8b7e3Smrg    done | sort
16787da8b7e3Smrg    echo
16797da8b7e3Smrg
16807da8b7e3Smrg    if test -n "$ac_subst_files"; then
16817da8b7e3Smrg      cat <<\_ASBOX
1682123e2cc7Smrg## ------------------- ##
1683123e2cc7Smrg## File substitutions. ##
1684123e2cc7Smrg## ------------------- ##
16857da8b7e3Smrg_ASBOX
16867da8b7e3Smrg      echo
16877da8b7e3Smrg      for ac_var in $ac_subst_files
16887da8b7e3Smrg      do
1689123e2cc7Smrg	eval ac_val=\$$ac_var
1690123e2cc7Smrg	case $ac_val in
1691123e2cc7Smrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1692123e2cc7Smrg	esac
1693123e2cc7Smrg	$as_echo "$ac_var='\''$ac_val'\''"
16947da8b7e3Smrg      done | sort
16957da8b7e3Smrg      echo
16967da8b7e3Smrg    fi
16977da8b7e3Smrg
16987da8b7e3Smrg    if test -s confdefs.h; then
16997da8b7e3Smrg      cat <<\_ASBOX
17007da8b7e3Smrg## ----------- ##
17017da8b7e3Smrg## confdefs.h. ##
17027da8b7e3Smrg## ----------- ##
17037da8b7e3Smrg_ASBOX
17047da8b7e3Smrg      echo
1705123e2cc7Smrg      cat confdefs.h
17067da8b7e3Smrg      echo
17077da8b7e3Smrg    fi
17087da8b7e3Smrg    test "$ac_signal" != 0 &&
1709123e2cc7Smrg      $as_echo "$as_me: caught signal $ac_signal"
1710123e2cc7Smrg    $as_echo "$as_me: exit $exit_status"
17117da8b7e3Smrg  } >&5
1712123e2cc7Smrg  rm -f core *.core core.conftest.* &&
1713123e2cc7Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
17147da8b7e3Smrg    exit $exit_status
1715123e2cc7Smrg' 0
17167da8b7e3Smrgfor ac_signal in 1 2 13 15; do
17177da8b7e3Smrg  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
17187da8b7e3Smrgdone
17197da8b7e3Smrgac_signal=0
17207da8b7e3Smrg
17217da8b7e3Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
1722123e2cc7Smrgrm -f -r conftest* confdefs.h
17237da8b7e3Smrg
17247da8b7e3Smrg# Predefined preprocessor variables.
17257da8b7e3Smrg
17267da8b7e3Smrgcat >>confdefs.h <<_ACEOF
17277da8b7e3Smrg#define PACKAGE_NAME "$PACKAGE_NAME"
17287da8b7e3Smrg_ACEOF
17297da8b7e3Smrg
17307da8b7e3Smrg
17317da8b7e3Smrgcat >>confdefs.h <<_ACEOF
17327da8b7e3Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
17337da8b7e3Smrg_ACEOF
17347da8b7e3Smrg
17357da8b7e3Smrg
17367da8b7e3Smrgcat >>confdefs.h <<_ACEOF
17377da8b7e3Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
17387da8b7e3Smrg_ACEOF
17397da8b7e3Smrg
17407da8b7e3Smrg
17417da8b7e3Smrgcat >>confdefs.h <<_ACEOF
17427da8b7e3Smrg#define PACKAGE_STRING "$PACKAGE_STRING"
17437da8b7e3Smrg_ACEOF
17447da8b7e3Smrg
17457da8b7e3Smrg
17467da8b7e3Smrgcat >>confdefs.h <<_ACEOF
17477da8b7e3Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
17487da8b7e3Smrg_ACEOF
17497da8b7e3Smrg
17507da8b7e3Smrg
17517da8b7e3Smrg# Let the site file select an alternate cache file if it wants to.
1752123e2cc7Smrg# Prefer an explicitly selected file to automatically selected ones.
1753123e2cc7Smrgac_site_file1=NONE
1754123e2cc7Smrgac_site_file2=NONE
1755123e2cc7Smrgif test -n "$CONFIG_SITE"; then
1756123e2cc7Smrg  ac_site_file1=$CONFIG_SITE
1757123e2cc7Smrgelif test "x$prefix" != xNONE; then
1758123e2cc7Smrg  ac_site_file1=$prefix/share/config.site
1759123e2cc7Smrg  ac_site_file2=$prefix/etc/config.site
1760123e2cc7Smrgelse
1761123e2cc7Smrg  ac_site_file1=$ac_default_prefix/share/config.site
1762123e2cc7Smrg  ac_site_file2=$ac_default_prefix/etc/config.site
17637da8b7e3Smrgfi
1764123e2cc7Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
1765123e2cc7Smrgdo
1766123e2cc7Smrg  test "x$ac_site_file" = xNONE && continue
17677da8b7e3Smrg  if test -r "$ac_site_file"; then
1768123e2cc7Smrg    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1769123e2cc7Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
17707da8b7e3Smrg    sed 's/^/| /' "$ac_site_file" >&5
17717da8b7e3Smrg    . "$ac_site_file"
17727da8b7e3Smrg  fi
17737da8b7e3Smrgdone
17747da8b7e3Smrg
17757da8b7e3Smrgif test -r "$cache_file"; then
17767da8b7e3Smrg  # Some versions of bash will fail to source /dev/null (special
17777da8b7e3Smrg  # files actually), so we avoid doing that.
17787da8b7e3Smrg  if test -f "$cache_file"; then
1779123e2cc7Smrg    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1780123e2cc7Smrg$as_echo "$as_me: loading cache $cache_file" >&6;}
17817da8b7e3Smrg    case $cache_file in
1782123e2cc7Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1783123e2cc7Smrg      *)                      . "./$cache_file";;
17847da8b7e3Smrg    esac
17857da8b7e3Smrg  fi
17867da8b7e3Smrgelse
1787123e2cc7Smrg  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1788123e2cc7Smrg$as_echo "$as_me: creating cache $cache_file" >&6;}
17897da8b7e3Smrg  >$cache_file
17907da8b7e3Smrgfi
17917da8b7e3Smrg
17927da8b7e3Smrg# Check that the precious variables saved in the cache have kept the same
17937da8b7e3Smrg# value.
17947da8b7e3Smrgac_cache_corrupted=false
1795123e2cc7Smrgfor ac_var in $ac_precious_vars; do
17967da8b7e3Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
17977da8b7e3Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
1798123e2cc7Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1799123e2cc7Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
18007da8b7e3Smrg  case $ac_old_set,$ac_new_set in
18017da8b7e3Smrg    set,)
1802123e2cc7Smrg      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1803123e2cc7Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
18047da8b7e3Smrg      ac_cache_corrupted=: ;;
18057da8b7e3Smrg    ,set)
1806123e2cc7Smrg      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1807123e2cc7Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
18087da8b7e3Smrg      ac_cache_corrupted=: ;;
18097da8b7e3Smrg    ,);;
18107da8b7e3Smrg    *)
18117da8b7e3Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
1812123e2cc7Smrg	# differences in whitespace do not lead to failure.
1813123e2cc7Smrg	ac_old_val_w=`echo x $ac_old_val`
1814123e2cc7Smrg	ac_new_val_w=`echo x $ac_new_val`
1815123e2cc7Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1816123e2cc7Smrg	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1817123e2cc7Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1818123e2cc7Smrg	  ac_cache_corrupted=:
1819123e2cc7Smrg	else
1820123e2cc7Smrg	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1821123e2cc7Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1822123e2cc7Smrg	  eval $ac_var=\$ac_old_val
1823123e2cc7Smrg	fi
1824123e2cc7Smrg	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1825123e2cc7Smrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1826123e2cc7Smrg	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1827123e2cc7Smrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
18287da8b7e3Smrg      fi;;
18297da8b7e3Smrg  esac
18307da8b7e3Smrg  # Pass precious variables to config.status.
18317da8b7e3Smrg  if test "$ac_new_set" = set; then
18327da8b7e3Smrg    case $ac_new_val in
1833123e2cc7Smrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
18347da8b7e3Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
18357da8b7e3Smrg    esac
18367da8b7e3Smrg    case " $ac_configure_args " in
18377da8b7e3Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
18387da8b7e3Smrg      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
18397da8b7e3Smrg    esac
18407da8b7e3Smrg  fi
18417da8b7e3Smrgdone
18427da8b7e3Smrgif $ac_cache_corrupted; then
1843123e2cc7Smrg  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1844123e2cc7Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1845123e2cc7Smrg  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1846123e2cc7Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1847123e2cc7Smrg  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1848123e2cc7Smrg$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
18497da8b7e3Smrg   { (exit 1); exit 1; }; }
18507da8b7e3Smrgfi
18517da8b7e3Smrg
18527da8b7e3Smrg
18537da8b7e3Smrg
18547da8b7e3Smrg
18557da8b7e3Smrg
18567da8b7e3Smrg
18577da8b7e3Smrg
18587da8b7e3Smrg
18597da8b7e3Smrg
18607da8b7e3Smrg
18617da8b7e3Smrg
18627da8b7e3Smrg
18637da8b7e3Smrg
18647da8b7e3Smrg
18657da8b7e3Smrg
18667da8b7e3Smrg
18677da8b7e3Smrg
18687da8b7e3Smrg
18697da8b7e3Smrg
18707da8b7e3Smrg
18717da8b7e3Smrg
18727da8b7e3Smrg
18737da8b7e3Smrg
18747da8b7e3Smrg
18757da8b7e3Smrg
1876123e2cc7Smrgac_ext=c
1877123e2cc7Smrgac_cpp='$CPP $CPPFLAGS'
1878123e2cc7Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1879123e2cc7Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1880123e2cc7Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
18817da8b7e3Smrg
18827da8b7e3Smrg
1883123e2cc7Smrgam__api_version='1.11'
18847da8b7e3Smrg
18857da8b7e3Smrgac_aux_dir=
1886123e2cc7Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1887123e2cc7Smrg  if test -f "$ac_dir/install-sh"; then
18887da8b7e3Smrg    ac_aux_dir=$ac_dir
18897da8b7e3Smrg    ac_install_sh="$ac_aux_dir/install-sh -c"
18907da8b7e3Smrg    break
1891123e2cc7Smrg  elif test -f "$ac_dir/install.sh"; then
18927da8b7e3Smrg    ac_aux_dir=$ac_dir
18937da8b7e3Smrg    ac_install_sh="$ac_aux_dir/install.sh -c"
18947da8b7e3Smrg    break
1895123e2cc7Smrg  elif test -f "$ac_dir/shtool"; then
18967da8b7e3Smrg    ac_aux_dir=$ac_dir
18977da8b7e3Smrg    ac_install_sh="$ac_aux_dir/shtool install -c"
18987da8b7e3Smrg    break
18997da8b7e3Smrg  fi
19007da8b7e3Smrgdone
19017da8b7e3Smrgif test -z "$ac_aux_dir"; then
1902123e2cc7Smrg  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1903123e2cc7Smrg$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
19047da8b7e3Smrg   { (exit 1); exit 1; }; }
19057da8b7e3Smrgfi
1906123e2cc7Smrg
1907123e2cc7Smrg# These three variables are undocumented and unsupported,
1908123e2cc7Smrg# and are intended to be withdrawn in a future Autoconf release.
1909123e2cc7Smrg# They can cause serious problems if a builder's source tree is in a directory
1910123e2cc7Smrg# whose full name contains unusual characters.
1911123e2cc7Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1912123e2cc7Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1913123e2cc7Smrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1914123e2cc7Smrg
19157da8b7e3Smrg
19167da8b7e3Smrg# Find a good install program.  We prefer a C program (faster),
19177da8b7e3Smrg# so one script is as good as another.  But avoid the broken or
19187da8b7e3Smrg# incompatible versions:
19197da8b7e3Smrg# SysV /etc/install, /usr/sbin/install
19207da8b7e3Smrg# SunOS /usr/etc/install
19217da8b7e3Smrg# IRIX /sbin/install
19227da8b7e3Smrg# AIX /bin/install
19237da8b7e3Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
19247da8b7e3Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19257da8b7e3Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
19267da8b7e3Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19277da8b7e3Smrg# OS/2's system install, which has a completely different semantic
19287da8b7e3Smrg# ./install, which can be erroneously created by make from ./install.sh.
1929123e2cc7Smrg# Reject install programs that cannot install multiple files.
1930123e2cc7Smrg{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1931123e2cc7Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
19327da8b7e3Smrgif test -z "$INSTALL"; then
19337da8b7e3Smrgif test "${ac_cv_path_install+set}" = set; then
1934123e2cc7Smrg  $as_echo_n "(cached) " >&6
19357da8b7e3Smrgelse
19367da8b7e3Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19377da8b7e3Smrgfor as_dir in $PATH
19387da8b7e3Smrgdo
19397da8b7e3Smrg  IFS=$as_save_IFS
19407da8b7e3Smrg  test -z "$as_dir" && as_dir=.
19417da8b7e3Smrg  # Account for people who put trailing slashes in PATH elements.
19427da8b7e3Smrgcase $as_dir/ in
19437da8b7e3Smrg  ./ | .// | /cC/* | \
19447da8b7e3Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19457da8b7e3Smrg  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19467da8b7e3Smrg  /usr/ucb/* ) ;;
19477da8b7e3Smrg  *)
19487da8b7e3Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
19497da8b7e3Smrg    # Don't use installbsd from OSF since it installs stuff as root
19507da8b7e3Smrg    # by default.
19517da8b7e3Smrg    for ac_prog in ginstall scoinst install; do
19527da8b7e3Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
1953123e2cc7Smrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19547da8b7e3Smrg	  if test $ac_prog = install &&
19557da8b7e3Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19567da8b7e3Smrg	    # AIX install.  It has an incompatible calling convention.
19577da8b7e3Smrg	    :
19587da8b7e3Smrg	  elif test $ac_prog = install &&
19597da8b7e3Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19607da8b7e3Smrg	    # program-specific install script used by HP pwplus--don't use.
19617da8b7e3Smrg	    :
19627da8b7e3Smrg	  else
1963123e2cc7Smrg	    rm -rf conftest.one conftest.two conftest.dir
1964123e2cc7Smrg	    echo one > conftest.one
1965123e2cc7Smrg	    echo two > conftest.two
1966123e2cc7Smrg	    mkdir conftest.dir
1967123e2cc7Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1968123e2cc7Smrg	      test -s conftest.one && test -s conftest.two &&
1969123e2cc7Smrg	      test -s conftest.dir/conftest.one &&
1970123e2cc7Smrg	      test -s conftest.dir/conftest.two
1971123e2cc7Smrg	    then
1972123e2cc7Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1973123e2cc7Smrg	      break 3
1974123e2cc7Smrg	    fi
19757da8b7e3Smrg	  fi
19767da8b7e3Smrg	fi
19777da8b7e3Smrg      done
19787da8b7e3Smrg    done
19797da8b7e3Smrg    ;;
19807da8b7e3Smrgesac
1981123e2cc7Smrg
19827da8b7e3Smrgdone
1983123e2cc7SmrgIFS=$as_save_IFS
19847da8b7e3Smrg
1985123e2cc7Smrgrm -rf conftest.one conftest.two conftest.dir
19867da8b7e3Smrg
19877da8b7e3Smrgfi
19887da8b7e3Smrg  if test "${ac_cv_path_install+set}" = set; then
19897da8b7e3Smrg    INSTALL=$ac_cv_path_install
19907da8b7e3Smrg  else
1991123e2cc7Smrg    # As a last resort, use the slow shell script.  Don't cache a
1992123e2cc7Smrg    # value for INSTALL within a source directory, because that will
19937da8b7e3Smrg    # break other packages using the cache if that directory is
1994123e2cc7Smrg    # removed, or if the value is a relative name.
19957da8b7e3Smrg    INSTALL=$ac_install_sh
19967da8b7e3Smrg  fi
19977da8b7e3Smrgfi
1998123e2cc7Smrg{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
1999123e2cc7Smrg$as_echo "$INSTALL" >&6; }
20007da8b7e3Smrg
20017da8b7e3Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20027da8b7e3Smrg# It thinks the first close brace ends the variable substitution.
20037da8b7e3Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20047da8b7e3Smrg
20057da8b7e3Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20067da8b7e3Smrg
20077da8b7e3Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20087da8b7e3Smrg
2009123e2cc7Smrg{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2010123e2cc7Smrg$as_echo_n "checking whether build environment is sane... " >&6; }
20117da8b7e3Smrg# Just in case
20127da8b7e3Smrgsleep 1
20137da8b7e3Smrgecho timestamp > conftest.file
2014123e2cc7Smrg# Reject unsafe characters in $srcdir or the absolute working directory
2015123e2cc7Smrg# name.  Accept space and tab only in the latter.
2016123e2cc7Smrgam_lf='
2017123e2cc7Smrg'
2018123e2cc7Smrgcase `pwd` in
2019123e2cc7Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
2020123e2cc7Smrg    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2021123e2cc7Smrg$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2022123e2cc7Smrg   { (exit 1); exit 1; }; };;
2023123e2cc7Smrgesac
2024123e2cc7Smrgcase $srcdir in
2025123e2cc7Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2026123e2cc7Smrg    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2027123e2cc7Smrg$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2028123e2cc7Smrg   { (exit 1); exit 1; }; };;
2029123e2cc7Smrgesac
2030123e2cc7Smrg
20317da8b7e3Smrg# Do `set' in a subshell so we don't clobber the current shell's
20327da8b7e3Smrg# arguments.  Must try -L first in case configure is actually a
20337da8b7e3Smrg# symlink; some systems play weird games with the mod time of symlinks
20347da8b7e3Smrg# (eg FreeBSD returns the mod time of the symlink's containing
20357da8b7e3Smrg# directory).
20367da8b7e3Smrgif (
2037123e2cc7Smrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
20387da8b7e3Smrg   if test "$*" = "X"; then
20397da8b7e3Smrg      # -L didn't work.
2040123e2cc7Smrg      set X `ls -t "$srcdir/configure" conftest.file`
20417da8b7e3Smrg   fi
20427da8b7e3Smrg   rm -f conftest.file
20437da8b7e3Smrg   if test "$*" != "X $srcdir/configure conftest.file" \
20447da8b7e3Smrg      && test "$*" != "X conftest.file $srcdir/configure"; then
20457da8b7e3Smrg
20467da8b7e3Smrg      # If neither matched, then we have a broken ls.  This can happen
20477da8b7e3Smrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
20487da8b7e3Smrg      # broken ls alias from the environment.  This has actually
20497da8b7e3Smrg      # happened.  Such a system could not be considered "sane".
2050123e2cc7Smrg      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
20517da8b7e3Smrgalias in your environment" >&5
2052123e2cc7Smrg$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
20537da8b7e3Smrgalias in your environment" >&2;}
20547da8b7e3Smrg   { (exit 1); exit 1; }; }
20557da8b7e3Smrg   fi
20567da8b7e3Smrg
20577da8b7e3Smrg   test "$2" = conftest.file
20587da8b7e3Smrg   )
20597da8b7e3Smrgthen
20607da8b7e3Smrg   # Ok.
20617da8b7e3Smrg   :
20627da8b7e3Smrgelse
2063123e2cc7Smrg   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20647da8b7e3SmrgCheck your system clock" >&5
2065123e2cc7Smrg$as_echo "$as_me: error: newly created file is older than distributed files!
20667da8b7e3SmrgCheck your system clock" >&2;}
20677da8b7e3Smrg   { (exit 1); exit 1; }; }
20687da8b7e3Smrgfi
2069123e2cc7Smrg{ $as_echo "$as_me:$LINENO: result: yes" >&5
2070123e2cc7Smrg$as_echo "yes" >&6; }
20717da8b7e3Smrgtest "$program_prefix" != NONE &&
2072123e2cc7Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
20737da8b7e3Smrg# Use a double $ so make ignores it.
20747da8b7e3Smrgtest "$program_suffix" != NONE &&
2075123e2cc7Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2076123e2cc7Smrg# Double any \ or $.
20777da8b7e3Smrg# By default was `s,x,x', remove it if useless.
2078123e2cc7Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2079123e2cc7Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
20807da8b7e3Smrg
20817da8b7e3Smrg# expand $ac_aux_dir to an absolute path
20827da8b7e3Smrgam_aux_dir=`cd $ac_aux_dir && pwd`
20837da8b7e3Smrg
2084123e2cc7Smrgif test x"${MISSING+set}" != xset; then
2085123e2cc7Smrg  case $am_aux_dir in
2086123e2cc7Smrg  *\ * | *\	*)
2087123e2cc7Smrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2088123e2cc7Smrg  *)
2089123e2cc7Smrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2090123e2cc7Smrg  esac
2091123e2cc7Smrgfi
20927da8b7e3Smrg# Use eval to expand $SHELL
20937da8b7e3Smrgif eval "$MISSING --run true"; then
20947da8b7e3Smrg  am_missing_run="$MISSING --run "
20957da8b7e3Smrgelse
20967da8b7e3Smrg  am_missing_run=
2097123e2cc7Smrg  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2098123e2cc7Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2099123e2cc7Smrgfi
2100123e2cc7Smrg
2101123e2cc7Smrgif test x"${install_sh}" != xset; then
2102123e2cc7Smrg  case $am_aux_dir in
2103123e2cc7Smrg  *\ * | *\	*)
2104123e2cc7Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2105123e2cc7Smrg  *)
2106123e2cc7Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
2107123e2cc7Smrg  esac
2108123e2cc7Smrgfi
2109123e2cc7Smrg
2110123e2cc7Smrg# Installed binaries are usually stripped using `strip' when the user
2111123e2cc7Smrg# run `make install-strip'.  However `strip' might not be the right
2112123e2cc7Smrg# tool to use in cross-compilation environments, therefore Automake
2113123e2cc7Smrg# will honor the `STRIP' environment variable to overrule this program.
2114123e2cc7Smrgif test "$cross_compiling" != no; then
2115123e2cc7Smrg  if test -n "$ac_tool_prefix"; then
2116123e2cc7Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2117123e2cc7Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
2118123e2cc7Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2119123e2cc7Smrg$as_echo_n "checking for $ac_word... " >&6; }
2120123e2cc7Smrgif test "${ac_cv_prog_STRIP+set}" = set; then
2121123e2cc7Smrg  $as_echo_n "(cached) " >&6
2122123e2cc7Smrgelse
2123123e2cc7Smrg  if test -n "$STRIP"; then
2124123e2cc7Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2125123e2cc7Smrgelse
2126123e2cc7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127123e2cc7Smrgfor as_dir in $PATH
2128123e2cc7Smrgdo
2129123e2cc7Smrg  IFS=$as_save_IFS
2130123e2cc7Smrg  test -z "$as_dir" && as_dir=.
2131123e2cc7Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2132123e2cc7Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2133123e2cc7Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2134123e2cc7Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135123e2cc7Smrg    break 2
2136123e2cc7Smrg  fi
2137123e2cc7Smrgdone
2138123e2cc7Smrgdone
2139123e2cc7SmrgIFS=$as_save_IFS
2140123e2cc7Smrg
2141123e2cc7Smrgfi
2142123e2cc7Smrgfi
2143123e2cc7SmrgSTRIP=$ac_cv_prog_STRIP
2144123e2cc7Smrgif test -n "$STRIP"; then
2145123e2cc7Smrg  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2146123e2cc7Smrg$as_echo "$STRIP" >&6; }
2147123e2cc7Smrgelse
2148123e2cc7Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2149123e2cc7Smrg$as_echo "no" >&6; }
2150123e2cc7Smrgfi
2151123e2cc7Smrg
2152123e2cc7Smrg
2153123e2cc7Smrgfi
2154123e2cc7Smrgif test -z "$ac_cv_prog_STRIP"; then
2155123e2cc7Smrg  ac_ct_STRIP=$STRIP
2156123e2cc7Smrg  # Extract the first word of "strip", so it can be a program name with args.
2157123e2cc7Smrgset dummy strip; ac_word=$2
2158123e2cc7Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2159123e2cc7Smrg$as_echo_n "checking for $ac_word... " >&6; }
2160123e2cc7Smrgif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2161123e2cc7Smrg  $as_echo_n "(cached) " >&6
2162123e2cc7Smrgelse
2163123e2cc7Smrg  if test -n "$ac_ct_STRIP"; then
2164123e2cc7Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2165123e2cc7Smrgelse
2166123e2cc7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167123e2cc7Smrgfor as_dir in $PATH
2168123e2cc7Smrgdo
2169123e2cc7Smrg  IFS=$as_save_IFS
2170123e2cc7Smrg  test -z "$as_dir" && as_dir=.
2171123e2cc7Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2172123e2cc7Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2173123e2cc7Smrg    ac_cv_prog_ac_ct_STRIP="strip"
2174123e2cc7Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2175123e2cc7Smrg    break 2
2176123e2cc7Smrg  fi
2177123e2cc7Smrgdone
2178123e2cc7Smrgdone
2179123e2cc7SmrgIFS=$as_save_IFS
2180123e2cc7Smrg
2181123e2cc7Smrgfi
2182123e2cc7Smrgfi
2183123e2cc7Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2184123e2cc7Smrgif test -n "$ac_ct_STRIP"; then
2185123e2cc7Smrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2186123e2cc7Smrg$as_echo "$ac_ct_STRIP" >&6; }
2187123e2cc7Smrgelse
2188123e2cc7Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2189123e2cc7Smrg$as_echo "no" >&6; }
2190123e2cc7Smrgfi
2191123e2cc7Smrg
2192123e2cc7Smrg  if test "x$ac_ct_STRIP" = x; then
2193123e2cc7Smrg    STRIP=":"
2194123e2cc7Smrg  else
2195123e2cc7Smrg    case $cross_compiling:$ac_tool_warned in
2196123e2cc7Smrgyes:)
2197123e2cc7Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2198123e2cc7Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2199123e2cc7Smrgac_tool_warned=yes ;;
2200123e2cc7Smrgesac
2201123e2cc7Smrg    STRIP=$ac_ct_STRIP
2202123e2cc7Smrg  fi
2203123e2cc7Smrgelse
2204123e2cc7Smrg  STRIP="$ac_cv_prog_STRIP"
2205123e2cc7Smrgfi
2206123e2cc7Smrg
2207123e2cc7Smrgfi
2208123e2cc7SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2209123e2cc7Smrg
2210123e2cc7Smrg{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2211123e2cc7Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2212123e2cc7Smrgif test -z "$MKDIR_P"; then
2213123e2cc7Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
2214123e2cc7Smrg  $as_echo_n "(cached) " >&6
2215123e2cc7Smrgelse
2216123e2cc7Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217123e2cc7Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2218123e2cc7Smrgdo
2219123e2cc7Smrg  IFS=$as_save_IFS
2220123e2cc7Smrg  test -z "$as_dir" && as_dir=.
2221123e2cc7Smrg  for ac_prog in mkdir gmkdir; do
2222123e2cc7Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
2223123e2cc7Smrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2224123e2cc7Smrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2225123e2cc7Smrg	     'mkdir (GNU coreutils) '* | \
2226123e2cc7Smrg	     'mkdir (coreutils) '* | \
2227123e2cc7Smrg	     'mkdir (fileutils) '4.1*)
2228123e2cc7Smrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2229123e2cc7Smrg	       break 3;;
2230123e2cc7Smrg	   esac
2231123e2cc7Smrg	 done
2232123e2cc7Smrg       done
2233123e2cc7Smrgdone
2234123e2cc7SmrgIFS=$as_save_IFS
2235123e2cc7Smrg
2236123e2cc7Smrgfi
2237123e2cc7Smrg
2238123e2cc7Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
2239123e2cc7Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
22407da8b7e3Smrg  else
2241123e2cc7Smrg    # As a last resort, use the slow shell script.  Don't cache a
2242123e2cc7Smrg    # value for MKDIR_P within a source directory, because that will
2243123e2cc7Smrg    # break other packages using the cache if that directory is
2244123e2cc7Smrg    # removed, or if the value is a relative name.
2245123e2cc7Smrg    test -d ./--version && rmdir ./--version
2246123e2cc7Smrg    MKDIR_P="$ac_install_sh -d"
22477da8b7e3Smrg  fi
22487da8b7e3Smrgfi
2249123e2cc7Smrg{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2250123e2cc7Smrg$as_echo "$MKDIR_P" >&6; }
2251123e2cc7Smrg
2252123e2cc7Smrgmkdir_p="$MKDIR_P"
2253123e2cc7Smrgcase $mkdir_p in
2254123e2cc7Smrg  [\\/$]* | ?:[\\/]*) ;;
2255123e2cc7Smrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2256123e2cc7Smrgesac
22577da8b7e3Smrg
22587da8b7e3Smrgfor ac_prog in gawk mawk nawk awk
22597da8b7e3Smrgdo
22607da8b7e3Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
22617da8b7e3Smrgset dummy $ac_prog; ac_word=$2
2262123e2cc7Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2263123e2cc7Smrg$as_echo_n "checking for $ac_word... " >&6; }
22647da8b7e3Smrgif test "${ac_cv_prog_AWK+set}" = set; then
2265123e2cc7Smrg  $as_echo_n "(cached) " >&6
22667da8b7e3Smrgelse
22677da8b7e3Smrg  if test -n "$AWK"; then
22687da8b7e3Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
22697da8b7e3Smrgelse
22707da8b7e3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22717da8b7e3Smrgfor as_dir in $PATH
22727da8b7e3Smrgdo
22737da8b7e3Smrg  IFS=$as_save_IFS
22747da8b7e3Smrg  test -z "$as_dir" && as_dir=.
22757da8b7e3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2276123e2cc7Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22777da8b7e3Smrg    ac_cv_prog_AWK="$ac_prog"
2278123e2cc7Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22797da8b7e3Smrg    break 2
22807da8b7e3Smrg  fi
22817da8b7e3Smrgdone
22827da8b7e3Smrgdone
2283123e2cc7SmrgIFS=$as_save_IFS
22847da8b7e3Smrg
22857da8b7e3Smrgfi
22867da8b7e3Smrgfi
22877da8b7e3SmrgAWK=$ac_cv_prog_AWK
22887da8b7e3Smrgif test -n "$AWK"; then
2289123e2cc7Smrg  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2290123e2cc7Smrg$as_echo "$AWK" >&6; }
22917da8b7e3Smrgelse
2292123e2cc7Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2293123e2cc7Smrg$as_echo "no" >&6; }
22947da8b7e3Smrgfi
22957da8b7e3Smrg
2296123e2cc7Smrg
22977da8b7e3Smrg  test -n "$AWK" && break
22987da8b7e3Smrgdone
22997da8b7e3Smrg
2300123e2cc7Smrg{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2301123e2cc7Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2302123e2cc7Smrgset x ${MAKE-make}
2303123e2cc7Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2304123e2cc7Smrgif { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2305123e2cc7Smrg  $as_echo_n "(cached) " >&6
23067da8b7e3Smrgelse
23077da8b7e3Smrg  cat >conftest.make <<\_ACEOF
2308123e2cc7SmrgSHELL = /bin/sh
23097da8b7e3Smrgall:
2310123e2cc7Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
23117da8b7e3Smrg_ACEOF
23127da8b7e3Smrg# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2313123e2cc7Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
2314123e2cc7Smrg  *@@@%%%=?*=@@@%%%*)
2315123e2cc7Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
2316123e2cc7Smrg  *)
2317123e2cc7Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
2318123e2cc7Smrgesac
23197da8b7e3Smrgrm -f conftest.make
23207da8b7e3Smrgfi
2321123e2cc7Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2322123e2cc7Smrg  { $as_echo "$as_me:$LINENO: result: yes" >&5
2323123e2cc7Smrg$as_echo "yes" >&6; }
23247da8b7e3Smrg  SET_MAKE=
23257da8b7e3Smrgelse
2326123e2cc7Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2327123e2cc7Smrg$as_echo "no" >&6; }
23287da8b7e3Smrg  SET_MAKE="MAKE=${MAKE-make}"
23297da8b7e3Smrgfi
23307da8b7e3Smrg
23317da8b7e3Smrgrm -rf .tst 2>/dev/null
23327da8b7e3Smrgmkdir .tst 2>/dev/null
23337da8b7e3Smrgif test -d .tst; then
23347da8b7e3Smrg  am__leading_dot=.
23357da8b7e3Smrgelse
23367da8b7e3Smrg  am__leading_dot=_
23377da8b7e3Smrgfi
23387da8b7e3Smrgrmdir .tst 2>/dev/null
23397da8b7e3Smrg
2340123e2cc7Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
2341123e2cc7Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2342123e2cc7Smrg  # is not polluted with repeated "-I."
2343123e2cc7Smrg  am__isrc=' -I$(srcdir)'
2344123e2cc7Smrg  # test to see if srcdir already configured
2345123e2cc7Smrg  if test -f $srcdir/config.status; then
2346123e2cc7Smrg    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2347123e2cc7Smrg$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
23487da8b7e3Smrg   { (exit 1); exit 1; }; }
2349123e2cc7Smrg  fi
23507da8b7e3Smrgfi
23517da8b7e3Smrg
23527da8b7e3Smrg# test whether we have cygpath
23537da8b7e3Smrgif test -z "$CYGPATH_W"; then
23547da8b7e3Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
23557da8b7e3Smrg    CYGPATH_W='cygpath -w'
23567da8b7e3Smrg  else
23577da8b7e3Smrg    CYGPATH_W=echo
23587da8b7e3Smrg  fi
23597da8b7e3Smrgfi
23607da8b7e3Smrg
23617da8b7e3Smrg
23627da8b7e3Smrg# Define the identity of the package.
23637da8b7e3Smrg PACKAGE='xrefresh'
2364123e2cc7Smrg VERSION='1.0.3'
23657da8b7e3Smrg
23667da8b7e3Smrg
23677da8b7e3Smrgcat >>confdefs.h <<_ACEOF
23687da8b7e3Smrg#define PACKAGE "$PACKAGE"
23697da8b7e3Smrg_ACEOF
23707da8b7e3Smrg
23717da8b7e3Smrg
23727da8b7e3Smrgcat >>confdefs.h <<_ACEOF
23737da8b7e3Smrg#define VERSION "$VERSION"
23747da8b7e3Smrg_ACEOF
23757da8b7e3Smrg
23767da8b7e3Smrg# Some tools Automake needs.
23777da8b7e3Smrg
23787da8b7e3SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
23797da8b7e3Smrg
23807da8b7e3Smrg
23817da8b7e3SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
23827da8b7e3Smrg
23837da8b7e3Smrg
23847da8b7e3SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
23857da8b7e3Smrg
23867da8b7e3Smrg
23877da8b7e3SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
23887da8b7e3Smrg
23897da8b7e3Smrg
23907da8b7e3SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
23917da8b7e3Smrg
23927da8b7e3Smrg# We need awk for the "check" target.  The system "awk" is bad on
23937da8b7e3Smrg# some platforms.
23947da8b7e3Smrg# Always define AMTAR for backward compatibility.
23957da8b7e3Smrg
23967da8b7e3SmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
23977da8b7e3Smrg
23987da8b7e3Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
23997da8b7e3Smrg
24007da8b7e3Smrg
24017da8b7e3Smrg
24027da8b7e3Smrg
24037da8b7e3Smrg
2404123e2cc7Smrg
2405123e2cc7Smrg{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2406123e2cc7Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2407123e2cc7Smrg    # Check whether --enable-maintainer-mode was given.
24087da8b7e3Smrgif test "${enable_maintainer_mode+set}" = set; then
2409123e2cc7Smrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
24107da8b7e3Smrgelse
24117da8b7e3Smrg  USE_MAINTAINER_MODE=no
2412123e2cc7Smrgfi
24137da8b7e3Smrg
2414123e2cc7Smrg  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2415123e2cc7Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
2416123e2cc7Smrg   if test $USE_MAINTAINER_MODE = yes; then
24177da8b7e3Smrg  MAINTAINER_MODE_TRUE=
24187da8b7e3Smrg  MAINTAINER_MODE_FALSE='#'
24197da8b7e3Smrgelse
24207da8b7e3Smrg  MAINTAINER_MODE_TRUE='#'
24217da8b7e3Smrg  MAINTAINER_MODE_FALSE=
24227da8b7e3Smrgfi
24237da8b7e3Smrg
24247da8b7e3Smrg  MAINT=$MAINTAINER_MODE_TRUE
24257da8b7e3Smrg
24267da8b7e3Smrg
24277da8b7e3Smrg
2428123e2cc7Smrg# Require xorg-macros 1.3 or later: XORG_DEFAULT_OPTIONS
24297da8b7e3Smrg
24307da8b7e3Smrg
2431123e2cc7Smrg
2432123e2cc7Smrg
2433123e2cc7Smrg
2434123e2cc7Smrg
2435123e2cc7Smrg
2436123e2cc7Smrg
2437123e2cc7Smrg
2438123e2cc7Smrg
2439123e2cc7Smrg
2440123e2cc7Smrg
2441123e2cc7Smrgac_config_headers="$ac_config_headers config.h"
2442123e2cc7Smrg
2443123e2cc7Smrg
2444123e2cc7Smrgac_ext=c
2445123e2cc7Smrgac_cpp='$CPP $CPPFLAGS'
2446123e2cc7Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24477da8b7e3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24487da8b7e3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
24497da8b7e3Smrgif test -n "$ac_tool_prefix"; then
24507da8b7e3Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
24517da8b7e3Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
2452123e2cc7Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2453123e2cc7Smrg$as_echo_n "checking for $ac_word... " >&6; }
24547da8b7e3Smrgif test "${ac_cv_prog_CC+set}" = set; then
2455123e2cc7Smrg  $as_echo_n "(cached) " >&6
24567da8b7e3Smrgelse
24577da8b7e3Smrg  if test -n "$CC"; then
24587da8b7e3Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
24597da8b7e3Smrgelse
24607da8b7e3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24617da8b7e3Smrgfor as_dir in $PATH
24627da8b7e3Smrgdo
24637da8b7e3Smrg  IFS=$as_save_IFS
24647da8b7e3Smrg  test -z "$as_dir" && as_dir=.
24657da8b7e3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2466123e2cc7Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24677da8b7e3Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2468123e2cc7Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24697da8b7e3Smrg    break 2
24707da8b7e3Smrg  fi
24717da8b7e3Smrgdone
24727da8b7e3Smrgdone
2473123e2cc7SmrgIFS=$as_save_IFS
24747da8b7e3Smrg
24757da8b7e3Smrgfi
24767da8b7e3Smrgfi
24777da8b7e3SmrgCC=$ac_cv_prog_CC
24787da8b7e3Smrgif test -n "$CC"; then
2479123e2cc7Smrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2480123e2cc7Smrg$as_echo "$CC" >&6; }
24817da8b7e3Smrgelse
2482123e2cc7Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2483123e2cc7Smrg$as_echo "no" >&6; }
24847da8b7e3Smrgfi
24857da8b7e3Smrg
2486123e2cc7Smrg
24877da8b7e3Smrgfi
24887da8b7e3Smrgif test -z "$ac_cv_prog_CC"; then
24897da8b7e3Smrg  ac_ct_CC=$CC
24907da8b7e3Smrg  # Extract the first word of "gcc", so it can be a program name with args.
24917da8b7e3Smrgset dummy gcc; ac_word=$2
2492123e2cc7Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2493123e2cc7Smrg$as_echo_n "checking for $ac_word... " >&6; }
24947da8b7e3Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2495123e2cc7Smrg  $as_echo_n "(cached) " >&6
24967da8b7e3Smrgelse
24977da8b7e3Smrg  if test -n "$ac_ct_CC"; then
24987da8b7e3Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
24997da8b7e3Smrgelse
25007da8b7e3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25017da8b7e3Smrgfor as_dir in $PATH
25027da8b7e3Smrgdo
25037da8b7e3Smrg  IFS=$as_save_IFS
25047da8b7e3Smrg  test -z "$as_dir" && as_dir=.
25057da8b7e3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2506123e2cc7Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25077da8b7e3Smrg    ac_cv_prog_ac_ct_CC="gcc"
2508123e2cc7Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25097da8b7e3Smrg    break 2
25107da8b7e3Smrg  fi
25117da8b7e3Smrgdone
25127da8b7e3Smrgdone
2513123e2cc7SmrgIFS=$as_save_IFS
25147da8b7e3Smrg
25157da8b7e3Smrgfi
25167da8b7e3Smrgfi
25177da8b7e3Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
25187da8b7e3Smrgif test -n "$ac_ct_CC"; then
2519123e2cc7Smrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2520123e2cc7Smrg$as_echo "$ac_ct_CC" >&6; }
25217da8b7e3Smrgelse
2522123e2cc7Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2523123e2cc7Smrg$as_echo "no" >&6; }
25247da8b7e3Smrgfi
25257da8b7e3Smrg
2526123e2cc7Smrg  if test "x$ac_ct_CC" = x; then
2527123e2cc7Smrg    CC=""
2528123e2cc7Smrg  else
2529123e2cc7Smrg    case $cross_compiling:$ac_tool_warned in
2530123e2cc7Smrgyes:)
2531123e2cc7Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2532123e2cc7Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2533123e2cc7Smrgac_tool_warned=yes ;;
2534123e2cc7Smrgesac
2535123e2cc7Smrg    CC=$ac_ct_CC
2536123e2cc7Smrg  fi
25377da8b7e3Smrgelse
25387da8b7e3Smrg  CC="$ac_cv_prog_CC"
25397da8b7e3Smrgfi
25407da8b7e3Smrg
25417da8b7e3Smrgif test -z "$CC"; then
2542123e2cc7Smrg          if test -n "$ac_tool_prefix"; then
2543123e2cc7Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
25447da8b7e3Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
2545123e2cc7Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2546123e2cc7Smrg$as_echo_n "checking for $ac_word... " >&6; }
25477da8b7e3Smrgif test "${ac_cv_prog_CC+set}" = set; then
2548123e2cc7Smrg  $as_echo_n "(cached) " >&6
25497da8b7e3Smrgelse
25507da8b7e3Smrg  if test -n "$CC"; then
25517da8b7e3Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
25527da8b7e3Smrgelse
25537da8b7e3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25547da8b7e3Smrgfor as_dir in $PATH
25557da8b7e3Smrgdo
25567da8b7e3Smrg  IFS=$as_save_IFS
25577da8b7e3Smrg  test -z "$as_dir" && as_dir=.
25587da8b7e3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2559123e2cc7Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25607da8b7e3Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
2561123e2cc7Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25627da8b7e3Smrg    break 2
25637da8b7e3Smrg  fi
25647da8b7e3Smrgdone
25657da8b7e3Smrgdone
2566123e2cc7SmrgIFS=$as_save_IFS
25677da8b7e3Smrg
25687da8b7e3Smrgfi
25697da8b7e3Smrgfi
25707da8b7e3SmrgCC=$ac_cv_prog_CC
25717da8b7e3Smrgif test -n "$CC"; then
2572123e2cc7Smrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2573123e2cc7Smrg$as_echo "$CC" >&6; }
25747da8b7e3Smrgelse
2575123e2cc7Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2576123e2cc7Smrg$as_echo "no" >&6; }
25777da8b7e3Smrgfi
25787da8b7e3Smrg
25797da8b7e3Smrg
2580123e2cc7Smrg  fi
25817da8b7e3Smrgfi
25827da8b7e3Smrgif test -z "$CC"; then
25837da8b7e3Smrg  # Extract the first word of "cc", so it can be a program name with args.
25847da8b7e3Smrgset dummy cc; ac_word=$2
2585123e2cc7Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2586123e2cc7Smrg$as_echo_n "checking for $ac_word... " >&6; }
25877da8b7e3Smrgif test "${ac_cv_prog_CC+set}" = set; then
2588123e2cc7Smrg  $as_echo_n "(cached) " >&6
25897da8b7e3Smrgelse
25907da8b7e3Smrg  if test -n "$CC"; then
25917da8b7e3Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
25927da8b7e3Smrgelse
25937da8b7e3Smrg  ac_prog_rejected=no
25947da8b7e3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25957da8b7e3Smrgfor as_dir in $PATH
25967da8b7e3Smrgdo
25977da8b7e3Smrg  IFS=$as_save_IFS
25987da8b7e3Smrg  test -z "$as_dir" && as_dir=.
25997da8b7e3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2600123e2cc7Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26017da8b7e3Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
26027da8b7e3Smrg       ac_prog_rejected=yes
26037da8b7e3Smrg       continue
26047da8b7e3Smrg     fi
26057da8b7e3Smrg    ac_cv_prog_CC="cc"
2606123e2cc7Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26077da8b7e3Smrg    break 2
26087da8b7e3Smrg  fi
26097da8b7e3Smrgdone
26107da8b7e3Smrgdone
2611123e2cc7SmrgIFS=$as_save_IFS
26127da8b7e3Smrg
26137da8b7e3Smrgif test $ac_prog_rejected = yes; then
26147da8b7e3Smrg  # We found a bogon in the path, so make sure we never use it.
26157da8b7e3Smrg  set dummy $ac_cv_prog_CC
26167da8b7e3Smrg  shift
26177da8b7e3Smrg  if test $# != 0; then
26187da8b7e3Smrg    # We chose a different compiler from the bogus one.
26197da8b7e3Smrg    # However, it has the same basename, so the bogon will be chosen
26207da8b7e3Smrg    # first if we set CC to just the basename; use the full file name.
26217da8b7e3Smrg    shift
26227da8b7e3Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
26237da8b7e3Smrg  fi
26247da8b7e3Smrgfi
26257da8b7e3Smrgfi
26267da8b7e3Smrgfi
26277da8b7e3SmrgCC=$ac_cv_prog_CC
26287da8b7e3Smrgif test -n "$CC"; then
2629123e2cc7Smrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2630123e2cc7Smrg$as_echo "$CC" >&6; }
26317da8b7e3Smrgelse
2632123e2cc7Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2633123e2cc7Smrg$as_echo "no" >&6; }
26347da8b7e3Smrgfi
26357da8b7e3Smrg
2636123e2cc7Smrg
26377da8b7e3Smrgfi
26387da8b7e3Smrgif test -z "$CC"; then
26397da8b7e3Smrg  if test -n "$ac_tool_prefix"; then
2640123e2cc7Smrg  for ac_prog in cl.exe
26417da8b7e3Smrg  do
26427da8b7e3Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
26437da8b7e3Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
2644123e2cc7Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2645123e2cc7Smrg$as_echo_n "checking for $ac_word... " >&6; }
26467da8b7e3Smrgif test "${ac_cv_prog_CC+set}" = set; then
2647123e2cc7Smrg  $as_echo_n "(cached) " >&6
26487da8b7e3Smrgelse
26497da8b7e3Smrg  if test -n "$CC"; then
26507da8b7e3Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
26517da8b7e3Smrgelse
26527da8b7e3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26537da8b7e3Smrgfor as_dir in $PATH
26547da8b7e3Smrgdo
26557da8b7e3Smrg  IFS=$as_save_IFS
26567da8b7e3Smrg  test -z "$as_dir" && as_dir=.
26577da8b7e3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2658123e2cc7Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26597da8b7e3Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2660123e2cc7Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26617da8b7e3Smrg    break 2
26627da8b7e3Smrg  fi
26637da8b7e3Smrgdone
26647da8b7e3Smrgdone
2665123e2cc7SmrgIFS=$as_save_IFS
26667da8b7e3Smrg
26677da8b7e3Smrgfi
26687da8b7e3Smrgfi
26697da8b7e3SmrgCC=$ac_cv_prog_CC
26707da8b7e3Smrgif test -n "$CC"; then
2671123e2cc7Smrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2672123e2cc7Smrg$as_echo "$CC" >&6; }
26737da8b7e3Smrgelse
2674123e2cc7Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2675123e2cc7Smrg$as_echo "no" >&6; }
26767da8b7e3Smrgfi
26777da8b7e3Smrg
2678123e2cc7Smrg
26797da8b7e3Smrg    test -n "$CC" && break
26807da8b7e3Smrg  done
26817da8b7e3Smrgfi
26827da8b7e3Smrgif test -z "$CC"; then
26837da8b7e3Smrg  ac_ct_CC=$CC
2684123e2cc7Smrg  for ac_prog in cl.exe
26857da8b7e3Smrgdo
26867da8b7e3Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
26877da8b7e3Smrgset dummy $ac_prog; ac_word=$2
2688123e2cc7Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2689123e2cc7Smrg$as_echo_n "checking for $ac_word... " >&6; }
26907da8b7e3Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2691123e2cc7Smrg  $as_echo_n "(cached) " >&6
26927da8b7e3Smrgelse
26937da8b7e3Smrg  if test -n "$ac_ct_CC"; then
26947da8b7e3Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
26957da8b7e3Smrgelse
26967da8b7e3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26977da8b7e3Smrgfor as_dir in $PATH
26987da8b7e3Smrgdo
26997da8b7e3Smrg  IFS=$as_save_IFS
27007da8b7e3Smrg  test -z "$as_dir" && as_dir=.
27017da8b7e3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2702123e2cc7Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27037da8b7e3Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
2704123e2cc7Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27057da8b7e3Smrg    break 2
27067da8b7e3Smrg  fi
27077da8b7e3Smrgdone
27087da8b7e3Smrgdone
2709123e2cc7SmrgIFS=$as_save_IFS
27107da8b7e3Smrg
27117da8b7e3Smrgfi
27127da8b7e3Smrgfi
27137da8b7e3Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
27147da8b7e3Smrgif test -n "$ac_ct_CC"; then
2715123e2cc7Smrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2716123e2cc7Smrg$as_echo "$ac_ct_CC" >&6; }
27177da8b7e3Smrgelse
2718123e2cc7Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2719123e2cc7Smrg$as_echo "no" >&6; }
27207da8b7e3Smrgfi
27217da8b7e3Smrg
2722123e2cc7Smrg
27237da8b7e3Smrg  test -n "$ac_ct_CC" && break
27247da8b7e3Smrgdone
27257da8b7e3Smrg
2726123e2cc7Smrg  if test "x$ac_ct_CC" = x; then
2727123e2cc7Smrg    CC=""
2728123e2cc7Smrg  else
2729123e2cc7Smrg    case $cross_compiling:$ac_tool_warned in
2730123e2cc7Smrgyes:)
2731123e2cc7Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2732123e2cc7Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2733123e2cc7Smrgac_tool_warned=yes ;;
2734123e2cc7Smrgesac
2735123e2cc7Smrg    CC=$ac_ct_CC
2736123e2cc7Smrg  fi
27377da8b7e3Smrgfi
27387da8b7e3Smrg
27397da8b7e3Smrgfi
27407da8b7e3Smrg
27417da8b7e3Smrg
2742123e2cc7Smrgtest -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2743123e2cc7Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2744123e2cc7Smrg{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
27457da8b7e3SmrgSee \`config.log' for more details." >&5
2746123e2cc7Smrg$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
27477da8b7e3SmrgSee \`config.log' for more details." >&2;}
2748123e2cc7Smrg   { (exit 1); exit 1; }; }; }
27497da8b7e3Smrg
27507da8b7e3Smrg# Provide some information about the compiler.
2751123e2cc7Smrg$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2752123e2cc7Smrgset X $ac_compile
2753123e2cc7Smrgac_compiler=$2
2754123e2cc7Smrg{ (ac_try="$ac_compiler --version >&5"
2755123e2cc7Smrgcase "(($ac_try" in
2756123e2cc7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757123e2cc7Smrg  *) ac_try_echo=$ac_try;;
2758123e2cc7Smrgesac
2759123e2cc7Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2760123e2cc7Smrg$as_echo "$ac_try_echo") >&5
2761123e2cc7Smrg  (eval "$ac_compiler --version >&5") 2>&5
27627da8b7e3Smrg  ac_status=$?
2763123e2cc7Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27647da8b7e3Smrg  (exit $ac_status); }
2765123e2cc7Smrg{ (ac_try="$ac_compiler -v >&5"
2766123e2cc7Smrgcase "(($ac_try" in
2767123e2cc7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768123e2cc7Smrg  *) ac_try_echo=$ac_try;;
2769123e2cc7Smrgesac
2770123e2cc7Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2771123e2cc7Smrg$as_echo "$ac_try_echo") >&5
2772123e2cc7Smrg  (eval "$ac_compiler -v >&5") 2>&5
27737da8b7e3Smrg  ac_status=$?
2774123e2cc7Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27757da8b7e3Smrg  (exit $ac_status); }
2776123e2cc7Smrg{ (ac_try="$ac_compiler -V >&5"
2777123e2cc7Smrgcase "(($ac_try" in
2778123e2cc7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2779123e2cc7Smrg  *) ac_try_echo=$ac_try;;
2780123e2cc7Smrgesac
2781123e2cc7Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2782123e2cc7Smrg$as_echo "$ac_try_echo") >&5
2783123e2cc7Smrg  (eval "$ac_compiler -V >&5") 2>&5
27847da8b7e3Smrg  ac_status=$?
2785123e2cc7Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27867da8b7e3Smrg  (exit $ac_status); }
27877da8b7e3Smrg
27887da8b7e3Smrgcat >conftest.$ac_ext <<_ACEOF
27897da8b7e3Smrg/* confdefs.h.  */
27907da8b7e3Smrg_ACEOF
27917da8b7e3Smrgcat confdefs.h >>conftest.$ac_ext
27927da8b7e3Smrgcat >>conftest.$ac_ext <<_ACEOF
27937da8b7e3Smrg/* end confdefs.h.  */
27947da8b7e3Smrg
27957da8b7e3Smrgint
27967da8b7e3Smrgmain ()
27977da8b7e3Smrg{
27987da8b7e3Smrg
27997da8b7e3Smrg  ;
28007da8b7e3Smrg  return 0;
28017da8b7e3Smrg}
28027da8b7e3Smrg_ACEOF
28037da8b7e3Smrgac_clean_files_save=$ac_clean_files
2804123e2cc7Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
28057da8b7e3Smrg# Try to create an executable without -o first, disregard a.out.
28067da8b7e3Smrg# It will help us diagnose broken compilers, and finding out an intuition
28077da8b7e3Smrg# of exeext.
2808123e2cc7Smrg{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2809123e2cc7Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
2810123e2cc7Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2811123e2cc7Smrg
2812123e2cc7Smrg# The possible output files:
2813123e2cc7Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2814123e2cc7Smrg
2815123e2cc7Smrgac_rmfiles=
2816123e2cc7Smrgfor ac_file in $ac_files
2817123e2cc7Smrgdo
2818123e2cc7Smrg  case $ac_file in
2819123e2cc7Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2820123e2cc7Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2821123e2cc7Smrg  esac
2822123e2cc7Smrgdone
2823123e2cc7Smrgrm -f $ac_rmfiles
2824123e2cc7Smrg
2825123e2cc7Smrgif { (ac_try="$ac_link_default"
2826123e2cc7Smrgcase "(($ac_try" in
2827123e2cc7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828123e2cc7Smrg  *) ac_try_echo=$ac_try;;
2829123e2cc7Smrgesac
2830123e2cc7Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2831123e2cc7Smrg$as_echo "$ac_try_echo") >&5
2832123e2cc7Smrg  (eval "$ac_link_default") 2>&5
28337da8b7e3Smrg  ac_status=$?
2834123e2cc7Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28357da8b7e3Smrg  (exit $ac_status); }; then
2836123e2cc7Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2837123e2cc7Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2838123e2cc7Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2839123e2cc7Smrg# so that the user can short-circuit this test for compilers unknown to
2840123e2cc7Smrg# Autoconf.
2841123e2cc7Smrgfor ac_file in $ac_files ''
28427da8b7e3Smrgdo
28437da8b7e3Smrg  test -f "$ac_file" || continue
28447da8b7e3Smrg  case $ac_file in
2845123e2cc7Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
28467da8b7e3Smrg	;;
28477da8b7e3Smrg    [ab].out )
28487da8b7e3Smrg	# We found the default executable, but exeext='' is most
28497da8b7e3Smrg	# certainly right.
28507da8b7e3Smrg	break;;
28517da8b7e3Smrg    *.* )
2852123e2cc7Smrg        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2853123e2cc7Smrg	then :; else
2854123e2cc7Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2855123e2cc7Smrg	fi
2856123e2cc7Smrg	# We set ac_cv_exeext here because the later test for it is not
2857123e2cc7Smrg	# safe: cross compilers may not add the suffix if given an `-o'
2858123e2cc7Smrg	# argument, so we may need to know it at that point already.
2859123e2cc7Smrg	# Even if this section looks crufty: it has the advantage of
2860123e2cc7Smrg	# actually working.
28617da8b7e3Smrg	break;;
28627da8b7e3Smrg    * )
28637da8b7e3Smrg	break;;
28647da8b7e3Smrg  esac
28657da8b7e3Smrgdone
2866123e2cc7Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
2867123e2cc7Smrg
28687da8b7e3Smrgelse
2869123e2cc7Smrg  ac_file=''
2870123e2cc7Smrgfi
2871123e2cc7Smrg
2872123e2cc7Smrg{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2873123e2cc7Smrg$as_echo "$ac_file" >&6; }
2874123e2cc7Smrgif test -z "$ac_file"; then
2875123e2cc7Smrg  $as_echo "$as_me: failed program was:" >&5
28767da8b7e3Smrgsed 's/^/| /' conftest.$ac_ext >&5
28777da8b7e3Smrg
2878123e2cc7Smrg{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2879123e2cc7Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2880123e2cc7Smrg{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
28817da8b7e3SmrgSee \`config.log' for more details." >&5
2882123e2cc7Smrg$as_echo "$as_me: error: C compiler cannot create executables
28837da8b7e3SmrgSee \`config.log' for more details." >&2;}
2884123e2cc7Smrg   { (exit 77); exit 77; }; }; }
28857da8b7e3Smrgfi
28867da8b7e3Smrg
28877da8b7e3Smrgac_exeext=$ac_cv_exeext
28887da8b7e3Smrg
2889123e2cc7Smrg# Check that the compiler produces executables we can run.  If not, either
28907da8b7e3Smrg# the compiler is broken, or we cross compile.
2891123e2cc7Smrg{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2892123e2cc7Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
28937da8b7e3Smrg# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
28947da8b7e3Smrg# If not cross compiling, check that we can run a simple program.
28957da8b7e3Smrgif test "$cross_compiling" != yes; then
28967da8b7e3Smrg  if { ac_try='./$ac_file'
2897123e2cc7Smrg  { (case "(($ac_try" in
2898123e2cc7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899123e2cc7Smrg  *) ac_try_echo=$ac_try;;
2900123e2cc7Smrgesac
2901123e2cc7Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2902123e2cc7Smrg$as_echo "$ac_try_echo") >&5
2903123e2cc7Smrg  (eval "$ac_try") 2>&5
29047da8b7e3Smrg  ac_status=$?
2905123e2cc7Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29067da8b7e3Smrg  (exit $ac_status); }; }; then
29077da8b7e3Smrg    cross_compiling=no
29087da8b7e3Smrg  else
29097da8b7e3Smrg    if test "$cross_compiling" = maybe; then
29107da8b7e3Smrg	cross_compiling=yes
29117da8b7e3Smrg    else
2912123e2cc7Smrg	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2913123e2cc7Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2914123e2cc7Smrg{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
29157da8b7e3SmrgIf you meant to cross compile, use \`--host'.
29167da8b7e3SmrgSee \`config.log' for more details." >&5
2917123e2cc7Smrg$as_echo "$as_me: error: cannot run C compiled programs.
29187da8b7e3SmrgIf you meant to cross compile, use \`--host'.
29197da8b7e3SmrgSee \`config.log' for more details." >&2;}
2920123e2cc7Smrg   { (exit 1); exit 1; }; }; }
29217da8b7e3Smrg    fi
29227da8b7e3Smrg  fi
29237da8b7e3Smrgfi
2924123e2cc7Smrg{ $as_echo "$as_me:$LINENO: result: yes" >&5
2925123e2cc7Smrg$as_echo "yes" >&6; }
29267da8b7e3Smrg
2927123e2cc7Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
29287da8b7e3Smrgac_clean_files=$ac_clean_files_save
2929123e2cc7Smrg# Check that the compiler produces executables we can run.  If not, either
29307da8b7e3Smrg# the compiler is broken, or we cross compile.
2931123e2cc7Smrg{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2932123e2cc7Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
2933123e2cc7Smrg{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2934123e2cc7Smrg$as_echo "$cross_compiling" >&6; }
2935123e2cc7Smrg
2936123e2cc7Smrg{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2937123e2cc7Smrg$as_echo_n "checking for suffix of executables... " >&6; }
2938123e2cc7Smrgif { (ac_try="$ac_link"
2939123e2cc7Smrgcase "(($ac_try" in
2940123e2cc7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941123e2cc7Smrg  *) ac_try_echo=$ac_try;;
2942123e2cc7Smrgesac
2943123e2cc7Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2944123e2cc7Smrg$as_echo "$ac_try_echo") >&5
2945123e2cc7Smrg  (eval "$ac_link") 2>&5
29467da8b7e3Smrg  ac_status=$?
2947123e2cc7Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29487da8b7e3Smrg  (exit $ac_status); }; then
29497da8b7e3Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
29507da8b7e3Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
29517da8b7e3Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
29527da8b7e3Smrg# `rm'.
29537da8b7e3Smrgfor ac_file in conftest.exe conftest conftest.*; do
29547da8b7e3Smrg  test -f "$ac_file" || continue
29557da8b7e3Smrg  case $ac_file in
2956123e2cc7Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
29577da8b7e3Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
29587da8b7e3Smrg	  break;;
29597da8b7e3Smrg    * ) break;;
29607da8b7e3Smrg  esac
29617da8b7e3Smrgdone
29627da8b7e3Smrgelse
2963123e2cc7Smrg  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2964123e2cc7Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2965123e2cc7Smrg{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
29667da8b7e3SmrgSee \`config.log' for more details." >&5
2967123e2cc7Smrg$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
29687da8b7e3SmrgSee \`config.log' for more details." >&2;}
2969123e2cc7Smrg   { (exit 1); exit 1; }; }; }
29707da8b7e3Smrgfi
29717da8b7e3Smrg
29727da8b7e3Smrgrm -f conftest$ac_cv_exeext
2973123e2cc7Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2974123e2cc7Smrg$as_echo "$ac_cv_exeext" >&6; }
29757da8b7e3Smrg
29767da8b7e3Smrgrm -f conftest.$ac_ext
29777da8b7e3SmrgEXEEXT=$ac_cv_exeext
29787da8b7e3Smrgac_exeext=$EXEEXT
2979123e2cc7Smrg{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2980123e2cc7Smrg$as_echo_n "checking for suffix of object files... " >&6; }
29817da8b7e3Smrgif test "${ac_cv_objext+set}" = set; then
2982123e2cc7Smrg  $as_echo_n "(cached) " >&6
29837da8b7e3Smrgelse
29847da8b7e3Smrg  cat >conftest.$ac_ext <<_ACEOF
29857da8b7e3Smrg/* confdefs.h.  */
29867da8b7e3Smrg_ACEOF
29877da8b7e3Smrgcat confdefs.h >>conftest.$ac_ext
29887da8b7e3Smrgcat >>conftest.$ac_ext <<_ACEOF
29897da8b7e3Smrg/* end confdefs.h.  */
29907da8b7e3Smrg
29917da8b7e3Smrgint
29927da8b7e3Smrgmain ()
29937da8b7e3Smrg{
29947da8b7e3Smrg
29957da8b7e3Smrg  ;
29967da8b7e3Smrg  return 0;
29977da8b7e3Smrg}
29987da8b7e3Smrg_ACEOF
29997da8b7e3Smrgrm -f conftest.o conftest.obj
3000123e2cc7Smrgif { (ac_try="$ac_compile"
3001123e2cc7Smrgcase "(($ac_try" in
3002123e2cc7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003123e2cc7Smrg  *) ac_try_echo=$ac_try;;
3004123e2cc7Smrgesac
3005123e2cc7Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3006123e2cc7Smrg$as_echo "$ac_try_echo") >&5
3007123e2cc7Smrg  (eval "$ac_compile") 2>&5
30087da8b7e3Smrg  ac_status=$?
3009123e2cc7Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30107da8b7e3Smrg  (exit $ac_status); }; then
3011123e2cc7Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
3012123e2cc7Smrg  test -f "$ac_file" || continue;
30137da8b7e3Smrg  case $ac_file in
3014123e2cc7Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
30157da8b7e3Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
30167da8b7e3Smrg       break;;
30177da8b7e3Smrg  esac
30187da8b7e3Smrgdone
30197da8b7e3Smrgelse
3020123e2cc7Smrg  $as_echo "$as_me: failed program was:" >&5
30217da8b7e3Smrgsed 's/^/| /' conftest.$ac_ext >&5
30227da8b7e3Smrg
3023123e2cc7Smrg{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3024123e2cc7Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3025123e2cc7Smrg{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
30267da8b7e3SmrgSee \`config.log' for more details." >&5
3027123e2cc7Smrg$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
30287da8b7e3SmrgSee \`config.log' for more details." >&2;}
3029123e2cc7Smrg   { (exit 1); exit 1; }; }; }
30307da8b7e3Smrgfi
30317da8b7e3Smrg
30327da8b7e3Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
30337da8b7e3Smrgfi
3034123e2cc7Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3035123e2cc7Smrg$as_echo "$ac_cv_objext" >&6; }
30367da8b7e3SmrgOBJEXT=$ac_cv_objext
30377da8b7e3Smrgac_objext=$OBJEXT
3038123e2cc7Smrg{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3039123e2cc7Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
30407da8b7e3Smrgif test "${ac_cv_c_compiler_gnu+set}" = set; then
3041123e2cc7Smrg  $as_echo_n "(cached) " >&6
30427da8b7e3Smrgelse
30437da8b7e3Smrg  cat >conftest.$ac_ext <<_ACEOF
30447da8b7e3Smrg/* confdefs.h.  */
30457da8b7e3Smrg_ACEOF
30467da8b7e3Smrgcat confdefs.h >>conftest.$ac_ext
30477da8b7e3Smrgcat >>conftest.$ac_ext <<_ACEOF
30487da8b7e3Smrg/* end confdefs.h.  */
30497da8b7e3Smrg
30507da8b7e3Smrgint
30517da8b7e3Smrgmain ()
30527da8b7e3Smrg{
30537da8b7e3Smrg#ifndef __GNUC__
30547da8b7e3Smrg       choke me
30557da8b7e3Smrg#endif
30567da8b7e3Smrg
30577da8b7e3Smrg  ;
30587da8b7e3Smrg  return 0;
30597da8b7e3Smrg}
30607da8b7e3Smrg_ACEOF
30617da8b7e3Smrgrm -f conftest.$ac_objext
3062123e2cc7Smrgif { (ac_try="$ac_compile"
3063123e2cc7Smrgcase "(($ac_try" in
3064123e2cc7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065123e2cc7Smrg  *) ac_try_echo=$ac_try;;
3066123e2cc7Smrgesac
3067123e2cc7Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3068123e2cc7Smrg$as_echo "$ac_try_echo") >&5
3069123e2cc7Smrg  (eval "$ac_compile") 2>conftest.er1
30707da8b7e3Smrg  ac_status=$?
30717da8b7e3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
30727da8b7e3Smrg  rm -f conftest.er1
30737da8b7e3Smrg  cat conftest.err >&5
3074123e2cc7Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075123e2cc7Smrg  (exit $ac_status); } && {
3076123e2cc7Smrg	 test -z "$ac_c_werror_flag" ||
3077123e2cc7Smrg	 test ! -s conftest.err
3078123e2cc7Smrg       } && test -s conftest.$ac_objext; then
30797da8b7e3Smrg  ac_compiler_gnu=yes
30807da8b7e3Smrgelse
3081123e2cc7Smrg  $as_echo "$as_me: failed program was:" >&5
30827da8b7e3Smrgsed 's/^/| /' conftest.$ac_ext >&5
30837da8b7e3Smrg
3084123e2cc7Smrg	ac_compiler_gnu=no
30857da8b7e3Smrgfi
3086123e2cc7Smrg
3087123e2cc7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30887da8b7e3Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
30897da8b7e3Smrg
30907da8b7e3Smrgfi
3091123e2cc7Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3092123e2cc7Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3093123e2cc7Smrgif test $ac_compiler_gnu = yes; then
3094123e2cc7Smrg  GCC=yes
3095123e2cc7Smrgelse
3096123e2cc7Smrg  GCC=
3097123e2cc7Smrgfi
30987da8b7e3Smrgac_test_CFLAGS=${CFLAGS+set}
30997da8b7e3Smrgac_save_CFLAGS=$CFLAGS
3100123e2cc7Smrg{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3101123e2cc7Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
31027da8b7e3Smrgif test "${ac_cv_prog_cc_g+set}" = set; then
3103123e2cc7Smrg  $as_echo_n "(cached) " >&6
31047da8b7e3Smrgelse
3105123e2cc7Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
3106123e2cc7Smrg   ac_c_werror_flag=yes
3107123e2cc7Smrg   ac_cv_prog_cc_g=no
3108123e2cc7Smrg   CFLAGS="-g"
3109123e2cc7Smrg   cat >conftest.$ac_ext <<_ACEOF
31107da8b7e3Smrg/* confdefs.h.  */
31117da8b7e3Smrg_ACEOF
31127da8b7e3Smrgcat confdefs.h >>conftest.$ac_ext
31137da8b7e3Smrgcat >>conftest.$ac_ext <<_ACEOF
31147da8b7e3Smrg/* end confdefs.h.  */
31157da8b7e3Smrg
31167da8b7e3Smrgint
31177da8b7e3Smrgmain ()
31187da8b7e3Smrg{
31197da8b7e3Smrg
31207da8b7e3Smrg  ;
31217da8b7e3Smrg  return 0;
31227da8b7e3Smrg}
31237da8b7e3Smrg_ACEOF
31247da8b7e3Smrgrm -f conftest.$ac_objext
3125123e2cc7Smrgif { (ac_try="$ac_compile"
3126123e2cc7Smrgcase "(($ac_try" in
3127123e2cc7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128123e2cc7Smrg  *) ac_try_echo=$ac_try;;
3129123e2cc7Smrgesac
3130123e2cc7Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3131123e2cc7Smrg$as_echo "$ac_try_echo") >&5
3132123e2cc7Smrg  (eval "$ac_compile") 2>conftest.er1
31337da8b7e3Smrg  ac_status=$?
31347da8b7e3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
31357da8b7e3Smrg  rm -f conftest.er1
31367da8b7e3Smrg  cat conftest.err >&5
3137123e2cc7Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138123e2cc7Smrg  (exit $ac_status); } && {
3139123e2cc7Smrg	 test -z "$ac_c_werror_flag" ||
3140123e2cc7Smrg	 test ! -s conftest.err
3141123e2cc7Smrg       } && test -s conftest.$ac_objext; then
3142123e2cc7Smrg  ac_cv_prog_cc_g=yes
3143123e2cc7Smrgelse
3144123e2cc7Smrg  $as_echo "$as_me: failed program was:" >&5
3145123e2cc7Smrgsed 's/^/| /' conftest.$ac_ext >&5
3146123e2cc7Smrg
3147123e2cc7Smrg	CFLAGS=""
3148123e2cc7Smrg      cat >conftest.$ac_ext <<_ACEOF
3149123e2cc7Smrg/* confdefs.h.  */
3150123e2cc7Smrg_ACEOF
3151123e2cc7Smrgcat confdefs.h >>conftest.$ac_ext
3152123e2cc7Smrgcat >>conftest.$ac_ext <<_ACEOF
3153123e2cc7Smrg/* end confdefs.h.  */
3154123e2cc7Smrg
3155123e2cc7Smrgint
3156123e2cc7Smrgmain ()
3157123e2cc7Smrg{
3158123e2cc7Smrg
3159123e2cc7Smrg  ;
3160123e2cc7Smrg  return 0;
3161123e2cc7Smrg}
3162123e2cc7Smrg_ACEOF
3163123e2cc7Smrgrm -f conftest.$ac_objext
3164123e2cc7Smrgif { (ac_try="$ac_compile"
3165123e2cc7Smrgcase "(($ac_try" in
3166123e2cc7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167123e2cc7Smrg  *) ac_try_echo=$ac_try;;
3168123e2cc7Smrgesac
3169123e2cc7Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3170123e2cc7Smrg$as_echo "$ac_try_echo") >&5
3171123e2cc7Smrg  (eval "$ac_compile") 2>conftest.er1
31727da8b7e3Smrg  ac_status=$?
3173123e2cc7Smrg  grep -v '^ *+' conftest.er1 >conftest.err
3174123e2cc7Smrg  rm -f conftest.er1
3175123e2cc7Smrg  cat conftest.err >&5
3176123e2cc7Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177123e2cc7Smrg  (exit $ac_status); } && {
3178123e2cc7Smrg	 test -z "$ac_c_werror_flag" ||
3179123e2cc7Smrg	 test ! -s conftest.err
3180123e2cc7Smrg       } && test -s conftest.$ac_objext; then
3181123e2cc7Smrg  :
3182123e2cc7Smrgelse
3183123e2cc7Smrg  $as_echo "$as_me: failed program was:" >&5
3184123e2cc7Smrgsed 's/^/| /' conftest.$ac_ext >&5
3185123e2cc7Smrg
3186123e2cc7Smrg	ac_c_werror_flag=$ac_save_c_werror_flag
3187123e2cc7Smrg	 CFLAGS="-g"
3188123e2cc7Smrg	 cat >conftest.$ac_ext <<_ACEOF
3189123e2cc7Smrg/* confdefs.h.  */
3190123e2cc7Smrg_ACEOF
3191123e2cc7Smrgcat confdefs.h >>conftest.$ac_ext
3192123e2cc7Smrgcat >>conftest.$ac_ext <<_ACEOF
3193123e2cc7Smrg/* end confdefs.h.  */
3194123e2cc7Smrg
3195123e2cc7Smrgint
3196123e2cc7Smrgmain ()
3197123e2cc7Smrg{
3198123e2cc7Smrg
3199123e2cc7Smrg  ;
3200123e2cc7Smrg  return 0;
3201123e2cc7Smrg}
3202123e2cc7Smrg_ACEOF
3203123e2cc7Smrgrm -f conftest.$ac_objext
3204123e2cc7Smrgif { (ac_try="$ac_compile"
3205123e2cc7Smrgcase "(($ac_try" in
3206123e2cc7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207123e2cc7Smrg  *) ac_try_echo=$ac_try;;
3208123e2cc7Smrgesac
3209123e2cc7Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3210123e2cc7Smrg$as_echo "$ac_try_echo") >&5
3211123e2cc7Smrg  (eval "$ac_compile") 2>conftest.er1
32127da8b7e3Smrg  ac_status=$?
3213123e2cc7Smrg  grep -v '^ *+' conftest.er1 >conftest.err
3214123e2cc7Smrg  rm -f conftest.er1
3215123e2cc7Smrg  cat conftest.err >&5
3216123e2cc7Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217123e2cc7Smrg  (exit $ac_status); } && {
3218123e2cc7Smrg	 test -z "$ac_c_werror_flag" ||
3219123e2cc7Smrg	 test ! -s conftest.err
3220123e2cc7Smrg       } && test -s conftest.$ac_objext; then
32217da8b7e3Smrg  ac_cv_prog_cc_g=yes
32227da8b7e3Smrgelse
3223123e2cc7Smrg  $as_echo "$as_me: failed program was:" >&5
32247da8b7e3Smrgsed 's/^/| /' conftest.$ac_ext >&5
32257da8b7e3Smrg
3226123e2cc7Smrg
3227123e2cc7Smrgfi
3228123e2cc7Smrg
3229123e2cc7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32307da8b7e3Smrgfi
3231123e2cc7Smrg
3232123e2cc7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3233123e2cc7Smrgfi
3234123e2cc7Smrg
3235123e2cc7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236123e2cc7Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
32377da8b7e3Smrgfi
3238123e2cc7Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3239123e2cc7Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
32407da8b7e3Smrgif test "$ac_test_CFLAGS" = set; then
32417da8b7e3Smrg  CFLAGS=$ac_save_CFLAGS
32427da8b7e3Smrgelif test $ac_cv_prog_cc_g = yes; then
32437da8b7e3Smrg  if test "$GCC" = yes; then
32447da8b7e3Smrg    CFLAGS="-g -O2"
32457da8b7e3Smrg  else
32467da8b7e3Smrg    CFLAGS="-g"
32477da8b7e3Smrg  fi
32487da8b7e3Smrgelse
32497da8b7e3Smrg  if test "$GCC" = yes; then
32507da8b7e3Smrg    CFLAGS="-O2"
32517da8b7e3Smrg  else
32527da8b7e3Smrg    CFLAGS=
32537da8b7e3Smrg  fi
32547da8b7e3Smrgfi
3255123e2cc7Smrg{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3256123e2cc7Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3257123e2cc7Smrgif test "${ac_cv_prog_cc_c89+set}" = set; then
3258123e2cc7Smrg  $as_echo_n "(cached) " >&6
32597da8b7e3Smrgelse
3260123e2cc7Smrg  ac_cv_prog_cc_c89=no
32617da8b7e3Smrgac_save_CC=$CC
32627da8b7e3Smrgcat >conftest.$ac_ext <<_ACEOF
32637da8b7e3Smrg/* confdefs.h.  */
32647da8b7e3Smrg_ACEOF
32657da8b7e3Smrgcat confdefs.h >>conftest.$ac_ext
32667da8b7e3Smrgcat >>conftest.$ac_ext <<_ACEOF
32677da8b7e3Smrg/* end confdefs.h.  */
32687da8b7e3Smrg#include <stdarg.h>
32697da8b7e3Smrg#include <stdio.h>
32707da8b7e3Smrg#include <sys/types.h>
32717da8b7e3Smrg#include <sys/stat.h>
32727da8b7e3Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
32737da8b7e3Smrgstruct buf { int x; };
32747da8b7e3SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
32757da8b7e3Smrgstatic char *e (p, i)
32767da8b7e3Smrg     char **p;
32777da8b7e3Smrg     int i;
32787da8b7e3Smrg{
32797da8b7e3Smrg  return p[i];
32807da8b7e3Smrg}
32817da8b7e3Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
32827da8b7e3Smrg{
32837da8b7e3Smrg  char *s;
32847da8b7e3Smrg  va_list v;
32857da8b7e3Smrg  va_start (v,p);
32867da8b7e3Smrg  s = g (p, va_arg (v,int));
32877da8b7e3Smrg  va_end (v);
32887da8b7e3Smrg  return s;
32897da8b7e3Smrg}
32907da8b7e3Smrg
32917da8b7e3Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
32927da8b7e3Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
32937da8b7e3Smrg   These don't provoke an error unfortunately, instead are silently treated
3294123e2cc7Smrg   as 'x'.  The following induces an error, until -std is added to get
32957da8b7e3Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
32967da8b7e3Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
3297123e2cc7Smrg   that's true only with -std.  */
32987da8b7e3Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
32997da8b7e3Smrg
3300123e2cc7Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3301123e2cc7Smrg   inside strings and character constants.  */
3302123e2cc7Smrg#define FOO(x) 'x'
3303123e2cc7Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3304123e2cc7Smrg
33057da8b7e3Smrgint test (int i, double x);
33067da8b7e3Smrgstruct s1 {int (*f) (int a);};
33077da8b7e3Smrgstruct s2 {int (*f) (double a);};
33087da8b7e3Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
33097da8b7e3Smrgint argc;
33107da8b7e3Smrgchar **argv;
33117da8b7e3Smrgint
33127da8b7e3Smrgmain ()
33137da8b7e3Smrg{
33147da8b7e3Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
33157da8b7e3Smrg  ;
33167da8b7e3Smrg  return 0;
33177da8b7e3Smrg}
33187da8b7e3Smrg_ACEOF
3319123e2cc7Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3320123e2cc7Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
33217da8b7e3Smrgdo
33227da8b7e3Smrg  CC="$ac_save_CC $ac_arg"
33237da8b7e3Smrg  rm -f conftest.$ac_objext
3324123e2cc7Smrgif { (ac_try="$ac_compile"
3325123e2cc7Smrgcase "(($ac_try" in
3326123e2cc7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327123e2cc7Smrg  *) ac_try_echo=$ac_try;;
3328123e2cc7Smrgesac
3329123e2cc7Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3330123e2cc7Smrg$as_echo "$ac_try_echo") >&5
3331123e2cc7Smrg  (eval "$ac_compile") 2>conftest.er1
33327da8b7e3Smrg  ac_status=$?
33337da8b7e3Smrg  grep -v '^ *+' conftest.er1 >conftest.err
33347da8b7e3Smrg  rm -f conftest.er1
33357da8b7e3Smrg  cat conftest.err >&5
3336123e2cc7Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337123e2cc7Smrg  (exit $ac_status); } && {
3338123e2cc7Smrg	 test -z "$ac_c_werror_flag" ||
3339123e2cc7Smrg	 test ! -s conftest.err
3340123e2cc7Smrg       } && test -s conftest.$ac_objext; then
3341123e2cc7Smrg  ac_cv_prog_cc_c89=$ac_arg
33427da8b7e3Smrgelse
3343123e2cc7Smrg  $as_echo "$as_me: failed program was:" >&5
33447da8b7e3Smrgsed 's/^/| /' conftest.$ac_ext >&5
33457da8b7e3Smrg
3346123e2cc7Smrg
33477da8b7e3Smrgfi
3348123e2cc7Smrg
3349123e2cc7Smrgrm -f core conftest.err conftest.$ac_objext
3350123e2cc7Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
33517da8b7e3Smrgdone
3352123e2cc7Smrgrm -f conftest.$ac_ext
33537da8b7e3SmrgCC=$ac_save_CC
33547da8b7e3Smrg
33557da8b7e3Smrgfi
3356123e2cc7Smrg# AC_CACHE_VAL
3357123e2cc7Smrgcase "x$ac_cv_prog_cc_c89" in
3358123e2cc7Smrg  x)
3359123e2cc7Smrg    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3360123e2cc7Smrg$as_echo "none needed" >&6; } ;;
3361123e2cc7Smrg  xno)
3362123e2cc7Smrg    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3363123e2cc7Smrg$as_echo "unsupported" >&6; } ;;
33647da8b7e3Smrg  *)
3365123e2cc7Smrg    CC="$CC $ac_cv_prog_cc_c89"
3366123e2cc7Smrg    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3367123e2cc7Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
33687da8b7e3Smrgesac
33697da8b7e3Smrg
33707da8b7e3Smrg
33717da8b7e3Smrgac_ext=c
33727da8b7e3Smrgac_cpp='$CPP $CPPFLAGS'
33737da8b7e3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33747da8b7e3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33757da8b7e3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
33767da8b7e3SmrgDEPDIR="${am__leading_dot}deps"
33777da8b7e3Smrg
3378123e2cc7Smrgac_config_commands="$ac_config_commands depfiles"
33797da8b7e3Smrg
33807da8b7e3Smrg
33817da8b7e3Smrgam_make=${MAKE-make}
33827da8b7e3Smrgcat > confinc << 'END'
33837da8b7e3Smrgam__doit:
3384123e2cc7Smrg	@echo this is the am__doit target
33857da8b7e3Smrg.PHONY: am__doit
33867da8b7e3SmrgEND
33877da8b7e3Smrg# If we don't find an include directive, just comment out the code.
3388123e2cc7Smrg{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3389123e2cc7Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
33907da8b7e3Smrgam__include="#"
33917da8b7e3Smrgam__quote=
33927da8b7e3Smrg_am_result=none
33937da8b7e3Smrg# First try GNU make style include.
33947da8b7e3Smrgecho "include confinc" > confmf
3395123e2cc7Smrg# Ignore all kinds of additional output from `make'.
3396123e2cc7Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
3397123e2cc7Smrg*the\ am__doit\ target*)
3398123e2cc7Smrg  am__include=include
3399123e2cc7Smrg  am__quote=
3400123e2cc7Smrg  _am_result=GNU
3401123e2cc7Smrg  ;;
3402123e2cc7Smrgesac
34037da8b7e3Smrg# Now try BSD make style include.
34047da8b7e3Smrgif test "$am__include" = "#"; then
34057da8b7e3Smrg   echo '.include "confinc"' > confmf
3406123e2cc7Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
3407123e2cc7Smrg   *the\ am__doit\ target*)
3408123e2cc7Smrg     am__include=.include
3409123e2cc7Smrg     am__quote="\""
3410123e2cc7Smrg     _am_result=BSD
3411123e2cc7Smrg     ;;
3412123e2cc7Smrg   esac
34137da8b7e3Smrgfi
34147da8b7e3Smrg
34157da8b7e3Smrg
3416123e2cc7Smrg{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3417123e2cc7Smrg$as_echo "$_am_result" >&6; }
34187da8b7e3Smrgrm -f confinc confmf
34197da8b7e3Smrg
3420123e2cc7Smrg# Check whether --enable-dependency-tracking was given.
34217da8b7e3Smrgif test "${enable_dependency_tracking+set}" = set; then
3422123e2cc7Smrg  enableval=$enable_dependency_tracking;
3423123e2cc7Smrgfi
34247da8b7e3Smrg
34257da8b7e3Smrgif test "x$enable_dependency_tracking" != xno; then
34267da8b7e3Smrg  am_depcomp="$ac_aux_dir/depcomp"
34277da8b7e3Smrg  AMDEPBACKSLASH='\'
34287da8b7e3Smrgfi
3429123e2cc7Smrg if test "x$enable_dependency_tracking" != xno; then
34307da8b7e3Smrg  AMDEP_TRUE=
34317da8b7e3Smrg  AMDEP_FALSE='#'
34327da8b7e3Smrgelse
34337da8b7e3Smrg  AMDEP_TRUE='#'
34347da8b7e3Smrg  AMDEP_FALSE=
34357da8b7e3Smrgfi
34367da8b7e3Smrg
34377da8b7e3Smrg
34387da8b7e3Smrg
34397da8b7e3Smrgdepcc="$CC"   am_compiler_list=
34407da8b7e3Smrg
3441123e2cc7Smrg{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3442123e2cc7Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
34437da8b7e3Smrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3444123e2cc7Smrg  $as_echo_n "(cached) " >&6
34457da8b7e3Smrgelse
34467da8b7e3Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
34477da8b7e3Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
34487da8b7e3Smrg  # making bogus files that we don't know about and never remove.  For
34497da8b7e3Smrg  # instance it was reported that on HP-UX the gcc test will end up
34507da8b7e3Smrg  # making a dummy file named `D' -- because `-MD' means `put the output
34517da8b7e3Smrg  # in D'.
34527da8b7e3Smrg  mkdir conftest.dir
34537da8b7e3Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
34547da8b7e3Smrg  # using a relative directory.
34557da8b7e3Smrg  cp "$am_depcomp" conftest.dir
34567da8b7e3Smrg  cd conftest.dir
34577da8b7e3Smrg  # We will build objects and dependencies in a subdirectory because
34587da8b7e3Smrg  # it helps to detect inapplicable dependency modes.  For instance
34597da8b7e3Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
34607da8b7e3Smrg  # side effect of compilation, but ICC will put the dependencies in
34617da8b7e3Smrg  # the current directory while Tru64 will put them in the object
34627da8b7e3Smrg  # directory.
34637da8b7e3Smrg  mkdir sub
34647da8b7e3Smrg
34657da8b7e3Smrg  am_cv_CC_dependencies_compiler_type=none
34667da8b7e3Smrg  if test "$am_compiler_list" = ""; then
34677da8b7e3Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
34687da8b7e3Smrg  fi
3469123e2cc7Smrg  am__universal=false
3470123e2cc7Smrg  case " $depcc " in #(
3471123e2cc7Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3472123e2cc7Smrg     esac
3473123e2cc7Smrg
34747da8b7e3Smrg  for depmode in $am_compiler_list; do
34757da8b7e3Smrg    # Setup a source with many dependencies, because some compilers
34767da8b7e3Smrg    # like to wrap large dependency lists on column 80 (with \), and
34777da8b7e3Smrg    # we should not choose a depcomp mode which is confused by this.
34787da8b7e3Smrg    #
34797da8b7e3Smrg    # We need to recreate these files for each test, as the compiler may
34807da8b7e3Smrg    # overwrite some of them when testing with obscure command lines.
34817da8b7e3Smrg    # This happens at least with the AIX C compiler.
34827da8b7e3Smrg    : > sub/conftest.c
34837da8b7e3Smrg    for i in 1 2 3 4 5 6; do
34847da8b7e3Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
34857da8b7e3Smrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
34867da8b7e3Smrg      # Solaris 8's {/usr,}/bin/sh.
34877da8b7e3Smrg      touch sub/conftst$i.h
34887da8b7e3Smrg    done
34897da8b7e3Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
34907da8b7e3Smrg
3491123e2cc7Smrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3492123e2cc7Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
3493123e2cc7Smrg    # handle `-M -o', and we need to detect this.  Also, some Intel
3494123e2cc7Smrg    # versions had trouble with output in subdirs
3495123e2cc7Smrg    am__obj=sub/conftest.${OBJEXT-o}
3496123e2cc7Smrg    am__minus_obj="-o $am__obj"
34977da8b7e3Smrg    case $depmode in
3498123e2cc7Smrg    gcc)
3499123e2cc7Smrg      # This depmode causes a compiler race in universal mode.
3500123e2cc7Smrg      test "$am__universal" = false || continue
3501123e2cc7Smrg      ;;
35027da8b7e3Smrg    nosideeffect)
35037da8b7e3Smrg      # after this tag, mechanisms are not by side-effect, so they'll
35047da8b7e3Smrg      # only be used when explicitly requested
35057da8b7e3Smrg      if test "x$enable_dependency_tracking" = xyes; then
35067da8b7e3Smrg	continue
35077da8b7e3Smrg      else
35087da8b7e3Smrg	break
35097da8b7e3Smrg      fi
35107da8b7e3Smrg      ;;
3511123e2cc7Smrg    msvisualcpp | msvcmsys)
3512123e2cc7Smrg      # This compiler won't grok `-c -o', but also, the minuso test has
3513123e2cc7Smrg      # not run yet.  These depmodes are late enough in the game, and
3514123e2cc7Smrg      # so weak that their functioning should not be impacted.
3515123e2cc7Smrg      am__obj=conftest.${OBJEXT-o}
3516123e2cc7Smrg      am__minus_obj=
3517123e2cc7Smrg      ;;
35187da8b7e3Smrg    none) break ;;
35197da8b7e3Smrg    esac
35207da8b7e3Smrg    if depmode=$depmode \
3521123e2cc7Smrg       source=sub/conftest.c object=$am__obj \
35227da8b7e3Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3523123e2cc7Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
35247da8b7e3Smrg         >/dev/null 2>conftest.err &&
3525123e2cc7Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
35267da8b7e3Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3527123e2cc7Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
35287da8b7e3Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
35297da8b7e3Smrg      # icc doesn't choke on unknown options, it will just issue warnings
35307da8b7e3Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
35317da8b7e3Smrg      # that says an option was ignored or not supported.
35327da8b7e3Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
35337da8b7e3Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
35347da8b7e3Smrg      # The diagnosis changed in icc 8.0:
35357da8b7e3Smrg      #   icc: Command line remark: option '-MP' not supported
35367da8b7e3Smrg      if (grep 'ignoring option' conftest.err ||
35377da8b7e3Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
35387da8b7e3Smrg        am_cv_CC_dependencies_compiler_type=$depmode
35397da8b7e3Smrg        break
35407da8b7e3Smrg      fi
35417da8b7e3Smrg    fi
35427da8b7e3Smrg  done
35437da8b7e3Smrg
35447da8b7e3Smrg  cd ..
35457da8b7e3Smrg  rm -rf conftest.dir
35467da8b7e3Smrgelse
35477da8b7e3Smrg  am_cv_CC_dependencies_compiler_type=none
35487da8b7e3Smrgfi
35497da8b7e3Smrg
35507da8b7e3Smrgfi
3551123e2cc7Smrg{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3552123e2cc7Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
35537da8b7e3SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
35547da8b7e3Smrg
3555123e2cc7Smrg if
35567da8b7e3Smrg  test "x$enable_dependency_tracking" != xno \
35577da8b7e3Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
35587da8b7e3Smrg  am__fastdepCC_TRUE=
35597da8b7e3Smrg  am__fastdepCC_FALSE='#'
35607da8b7e3Smrgelse
35617da8b7e3Smrg  am__fastdepCC_TRUE='#'
35627da8b7e3Smrg  am__fastdepCC_FALSE=
35637da8b7e3Smrgfi
35647da8b7e3Smrg
35657da8b7e3Smrg
35667da8b7e3Smrg# Find a good install program.  We prefer a C program (faster),
35677da8b7e3Smrg# so one script is as good as another.  But avoid the broken or
35687da8b7e3Smrg# incompatible versions:
35697da8b7e3Smrg# SysV /etc/install, /usr/sbin/install
35707da8b7e3Smrg# SunOS /usr/etc/install
35717da8b7e3Smrg# IRIX /sbin/install
35727da8b7e3Smrg# AIX /bin/install
35737da8b7e3Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
35747da8b7e3Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
35757da8b7e3Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
35767da8b7e3Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
35777da8b7e3Smrg# OS/2's system install, which has a completely different semantic
35787da8b7e3Smrg# ./install, which can be erroneously created by make from ./install.sh.
3579123e2cc7Smrg# Reject install programs that cannot install multiple files.
3580123e2cc7Smrg{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3581123e2cc7Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
35827da8b7e3Smrgif test -z "$INSTALL"; then
35837da8b7e3Smrgif test "${ac_cv_path_install+set}" = set; then
3584123e2cc7Smrg  $as_echo_n "(cached) " >&6
35857da8b7e3Smrgelse
35867da8b7e3Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35877da8b7e3Smrgfor as_dir in $PATH
35887da8b7e3Smrgdo
35897da8b7e3Smrg  IFS=$as_save_IFS
35907da8b7e3Smrg  test -z "$as_dir" && as_dir=.
35917da8b7e3Smrg  # Account for people who put trailing slashes in PATH elements.
35927da8b7e3Smrgcase $as_dir/ in
35937da8b7e3Smrg  ./ | .// | /cC/* | \
35947da8b7e3Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
35957da8b7e3Smrg  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
35967da8b7e3Smrg  /usr/ucb/* ) ;;
35977da8b7e3Smrg  *)
35987da8b7e3Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
35997da8b7e3Smrg    # Don't use installbsd from OSF since it installs stuff as root
36007da8b7e3Smrg    # by default.
36017da8b7e3Smrg    for ac_prog in ginstall scoinst install; do
36027da8b7e3Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
3603123e2cc7Smrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
36047da8b7e3Smrg	  if test $ac_prog = install &&
36057da8b7e3Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
36067da8b7e3Smrg	    # AIX install.  It has an incompatible calling convention.
36077da8b7e3Smrg	    :
36087da8b7e3Smrg	  elif test $ac_prog = install &&
36097da8b7e3Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
36107da8b7e3Smrg	    # program-specific install script used by HP pwplus--don't use.
36117da8b7e3Smrg	    :
36127da8b7e3Smrg	  else
3613123e2cc7Smrg	    rm -rf conftest.one conftest.two conftest.dir
3614123e2cc7Smrg	    echo one > conftest.one
3615123e2cc7Smrg	    echo two > conftest.two
3616123e2cc7Smrg	    mkdir conftest.dir
3617123e2cc7Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3618123e2cc7Smrg	      test -s conftest.one && test -s conftest.two &&
3619123e2cc7Smrg	      test -s conftest.dir/conftest.one &&
3620123e2cc7Smrg	      test -s conftest.dir/conftest.two
3621123e2cc7Smrg	    then
3622123e2cc7Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3623123e2cc7Smrg	      break 3
3624123e2cc7Smrg	    fi
36257da8b7e3Smrg	  fi
36267da8b7e3Smrg	fi
36277da8b7e3Smrg      done
36287da8b7e3Smrg    done
36297da8b7e3Smrg    ;;
36307da8b7e3Smrgesac
3631123e2cc7Smrg
36327da8b7e3Smrgdone
3633123e2cc7SmrgIFS=$as_save_IFS
36347da8b7e3Smrg
3635123e2cc7Smrgrm -rf conftest.one conftest.two conftest.dir
36367da8b7e3Smrg
36377da8b7e3Smrgfi
36387da8b7e3Smrg  if test "${ac_cv_path_install+set}" = set; then
36397da8b7e3Smrg    INSTALL=$ac_cv_path_install
36407da8b7e3Smrg  else
3641123e2cc7Smrg    # As a last resort, use the slow shell script.  Don't cache a
3642123e2cc7Smrg    # value for INSTALL within a source directory, because that will
36437da8b7e3Smrg    # break other packages using the cache if that directory is
3644123e2cc7Smrg    # removed, or if the value is a relative name.
36457da8b7e3Smrg    INSTALL=$ac_install_sh
36467da8b7e3Smrg  fi
36477da8b7e3Smrgfi
3648123e2cc7Smrg{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3649123e2cc7Smrg$as_echo "$INSTALL" >&6; }
36507da8b7e3Smrg
36517da8b7e3Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
36527da8b7e3Smrg# It thinks the first close brace ends the variable substitution.
36537da8b7e3Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
36547da8b7e3Smrg
36557da8b7e3Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
36567da8b7e3Smrg
36577da8b7e3Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
36587da8b7e3Smrg
36597da8b7e3Smrg
36607da8b7e3Smrg
3661123e2cc7Smrgac_ext=c
3662123e2cc7Smrgac_cpp='$CPP $CPPFLAGS'
3663123e2cc7Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3664123e2cc7Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3665123e2cc7Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3666123e2cc7Smrg{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3667123e2cc7Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
3668123e2cc7Smrg# On Suns, sometimes $CPP names a directory.
3669123e2cc7Smrgif test -n "$CPP" && test -d "$CPP"; then
3670123e2cc7Smrg  CPP=
3671123e2cc7Smrgfi
3672123e2cc7Smrgif test -z "$CPP"; then
3673123e2cc7Smrg  if test "${ac_cv_prog_CPP+set}" = set; then
3674123e2cc7Smrg  $as_echo_n "(cached) " >&6
3675123e2cc7Smrgelse
3676123e2cc7Smrg      # Double quotes because CPP needs to be expanded
3677123e2cc7Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3678123e2cc7Smrg    do
3679123e2cc7Smrg      ac_preproc_ok=false
3680123e2cc7Smrgfor ac_c_preproc_warn_flag in '' yes
3681123e2cc7Smrgdo
3682123e2cc7Smrg  # Use a header file that comes with gcc, so configuring glibc
3683123e2cc7Smrg  # with a fresh cross-compiler works.
3684123e2cc7Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3685123e2cc7Smrg  # <limits.h> exists even on freestanding compilers.
3686123e2cc7Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
3687123e2cc7Smrg  # not just through cpp. "Syntax error" is here to catch this case.
3688123e2cc7Smrg  cat >conftest.$ac_ext <<_ACEOF
3689123e2cc7Smrg/* confdefs.h.  */
3690123e2cc7Smrg_ACEOF
3691123e2cc7Smrgcat confdefs.h >>conftest.$ac_ext
3692123e2cc7Smrgcat >>conftest.$ac_ext <<_ACEOF
3693123e2cc7Smrg/* end confdefs.h.  */
3694123e2cc7Smrg#ifdef __STDC__
3695123e2cc7Smrg# include <limits.h>
3696123e2cc7Smrg#else
3697123e2cc7Smrg# include <assert.h>
3698123e2cc7Smrg#endif
3699123e2cc7Smrg		     Syntax error
3700123e2cc7Smrg_ACEOF
3701123e2cc7Smrgif { (ac_try="$ac_cpp conftest.$ac_ext"
3702123e2cc7Smrgcase "(($ac_try" in
3703123e2cc7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704123e2cc7Smrg  *) ac_try_echo=$ac_try;;
3705123e2cc7Smrgesac
3706123e2cc7Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3707123e2cc7Smrg$as_echo "$ac_try_echo") >&5
3708123e2cc7Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3709123e2cc7Smrg  ac_status=$?
3710123e2cc7Smrg  grep -v '^ *+' conftest.er1 >conftest.err
3711123e2cc7Smrg  rm -f conftest.er1
3712123e2cc7Smrg  cat conftest.err >&5
3713123e2cc7Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714123e2cc7Smrg  (exit $ac_status); } >/dev/null && {
3715123e2cc7Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3716123e2cc7Smrg	 test ! -s conftest.err
3717123e2cc7Smrg       }; then
3718123e2cc7Smrg  :
3719123e2cc7Smrgelse
3720123e2cc7Smrg  $as_echo "$as_me: failed program was:" >&5
3721123e2cc7Smrgsed 's/^/| /' conftest.$ac_ext >&5
3722123e2cc7Smrg
3723123e2cc7Smrg  # Broken: fails on valid input.
3724123e2cc7Smrgcontinue
3725123e2cc7Smrgfi
3726123e2cc7Smrg
3727123e2cc7Smrgrm -f conftest.err conftest.$ac_ext
3728123e2cc7Smrg
3729123e2cc7Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
3730123e2cc7Smrg  # can be detected and how.
3731123e2cc7Smrg  cat >conftest.$ac_ext <<_ACEOF
3732123e2cc7Smrg/* confdefs.h.  */
3733123e2cc7Smrg_ACEOF
3734123e2cc7Smrgcat confdefs.h >>conftest.$ac_ext
3735123e2cc7Smrgcat >>conftest.$ac_ext <<_ACEOF
3736123e2cc7Smrg/* end confdefs.h.  */
3737123e2cc7Smrg#include <ac_nonexistent.h>
3738123e2cc7Smrg_ACEOF
3739123e2cc7Smrgif { (ac_try="$ac_cpp conftest.$ac_ext"
3740123e2cc7Smrgcase "(($ac_try" in
3741123e2cc7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742123e2cc7Smrg  *) ac_try_echo=$ac_try;;
3743123e2cc7Smrgesac
3744123e2cc7Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3745123e2cc7Smrg$as_echo "$ac_try_echo") >&5
3746123e2cc7Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3747123e2cc7Smrg  ac_status=$?
3748123e2cc7Smrg  grep -v '^ *+' conftest.er1 >conftest.err
3749123e2cc7Smrg  rm -f conftest.er1
3750123e2cc7Smrg  cat conftest.err >&5
3751123e2cc7Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752123e2cc7Smrg  (exit $ac_status); } >/dev/null && {
3753123e2cc7Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3754123e2cc7Smrg	 test ! -s conftest.err
3755123e2cc7Smrg       }; then
3756123e2cc7Smrg  # Broken: success on invalid input.
3757123e2cc7Smrgcontinue
3758123e2cc7Smrgelse
3759123e2cc7Smrg  $as_echo "$as_me: failed program was:" >&5
3760123e2cc7Smrgsed 's/^/| /' conftest.$ac_ext >&5
3761123e2cc7Smrg
3762123e2cc7Smrg  # Passes both tests.
3763123e2cc7Smrgac_preproc_ok=:
3764123e2cc7Smrgbreak
3765123e2cc7Smrgfi
3766123e2cc7Smrg
3767123e2cc7Smrgrm -f conftest.err conftest.$ac_ext
3768123e2cc7Smrg
3769123e2cc7Smrgdone
3770123e2cc7Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3771123e2cc7Smrgrm -f conftest.err conftest.$ac_ext
3772123e2cc7Smrgif $ac_preproc_ok; then
3773123e2cc7Smrg  break
3774123e2cc7Smrgfi
3775123e2cc7Smrg
3776123e2cc7Smrg    done
3777123e2cc7Smrg    ac_cv_prog_CPP=$CPP
3778123e2cc7Smrg
3779123e2cc7Smrgfi
3780123e2cc7Smrg  CPP=$ac_cv_prog_CPP
3781123e2cc7Smrgelse
3782123e2cc7Smrg  ac_cv_prog_CPP=$CPP
3783123e2cc7Smrgfi
3784123e2cc7Smrg{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3785123e2cc7Smrg$as_echo "$CPP" >&6; }
3786123e2cc7Smrgac_preproc_ok=false
3787123e2cc7Smrgfor ac_c_preproc_warn_flag in '' yes
3788123e2cc7Smrgdo
3789123e2cc7Smrg  # Use a header file that comes with gcc, so configuring glibc
3790123e2cc7Smrg  # with a fresh cross-compiler works.
3791123e2cc7Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3792123e2cc7Smrg  # <limits.h> exists even on freestanding compilers.
3793123e2cc7Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
3794123e2cc7Smrg  # not just through cpp. "Syntax error" is here to catch this case.
3795123e2cc7Smrg  cat >conftest.$ac_ext <<_ACEOF
3796123e2cc7Smrg/* confdefs.h.  */
3797123e2cc7Smrg_ACEOF
3798123e2cc7Smrgcat confdefs.h >>conftest.$ac_ext
3799123e2cc7Smrgcat >>conftest.$ac_ext <<_ACEOF
3800123e2cc7Smrg/* end confdefs.h.  */
3801123e2cc7Smrg#ifdef __STDC__
3802123e2cc7Smrg# include <limits.h>
3803123e2cc7Smrg#else
3804123e2cc7Smrg# include <assert.h>
3805123e2cc7Smrg#endif
3806123e2cc7Smrg		     Syntax error
3807123e2cc7Smrg_ACEOF
3808123e2cc7Smrgif { (ac_try="$ac_cpp conftest.$ac_ext"
3809123e2cc7Smrgcase "(($ac_try" in
3810123e2cc7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811123e2cc7Smrg  *) ac_try_echo=$ac_try;;
3812123e2cc7Smrgesac
3813123e2cc7Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3814123e2cc7Smrg$as_echo "$ac_try_echo") >&5
3815123e2cc7Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3816123e2cc7Smrg  ac_status=$?
3817123e2cc7Smrg  grep -v '^ *+' conftest.er1 >conftest.err
3818123e2cc7Smrg  rm -f conftest.er1
3819123e2cc7Smrg  cat conftest.err >&5
3820123e2cc7Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821123e2cc7Smrg  (exit $ac_status); } >/dev/null && {
3822123e2cc7Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3823123e2cc7Smrg	 test ! -s conftest.err
3824123e2cc7Smrg       }; then
3825123e2cc7Smrg  :
3826123e2cc7Smrgelse
3827123e2cc7Smrg  $as_echo "$as_me: failed program was:" >&5
3828123e2cc7Smrgsed 's/^/| /' conftest.$ac_ext >&5
3829123e2cc7Smrg
3830123e2cc7Smrg  # Broken: fails on valid input.
3831123e2cc7Smrgcontinue
3832123e2cc7Smrgfi
3833123e2cc7Smrg
3834123e2cc7Smrgrm -f conftest.err conftest.$ac_ext
3835123e2cc7Smrg
3836123e2cc7Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
3837123e2cc7Smrg  # can be detected and how.
3838123e2cc7Smrg  cat >conftest.$ac_ext <<_ACEOF
3839123e2cc7Smrg/* confdefs.h.  */
3840123e2cc7Smrg_ACEOF
3841123e2cc7Smrgcat confdefs.h >>conftest.$ac_ext
3842123e2cc7Smrgcat >>conftest.$ac_ext <<_ACEOF
3843123e2cc7Smrg/* end confdefs.h.  */
3844123e2cc7Smrg#include <ac_nonexistent.h>
3845123e2cc7Smrg_ACEOF
3846123e2cc7Smrgif { (ac_try="$ac_cpp conftest.$ac_ext"
3847123e2cc7Smrgcase "(($ac_try" in
3848123e2cc7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849123e2cc7Smrg  *) ac_try_echo=$ac_try;;
3850123e2cc7Smrgesac
3851123e2cc7Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3852123e2cc7Smrg$as_echo "$ac_try_echo") >&5
3853123e2cc7Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3854123e2cc7Smrg  ac_status=$?
3855123e2cc7Smrg  grep -v '^ *+' conftest.er1 >conftest.err
3856123e2cc7Smrg  rm -f conftest.er1
3857123e2cc7Smrg  cat conftest.err >&5
3858123e2cc7Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859123e2cc7Smrg  (exit $ac_status); } >/dev/null && {
3860123e2cc7Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3861123e2cc7Smrg	 test ! -s conftest.err
3862123e2cc7Smrg       }; then
3863123e2cc7Smrg  # Broken: success on invalid input.
3864123e2cc7Smrgcontinue
3865123e2cc7Smrgelse
3866123e2cc7Smrg  $as_echo "$as_me: failed program was:" >&5
3867123e2cc7Smrgsed 's/^/| /' conftest.$ac_ext >&5
3868123e2cc7Smrg
3869123e2cc7Smrg  # Passes both tests.
3870123e2cc7Smrgac_preproc_ok=:
3871123e2cc7Smrgbreak
3872123e2cc7Smrgfi
3873123e2cc7Smrg
3874123e2cc7Smrgrm -f conftest.err conftest.$ac_ext
3875123e2cc7Smrg
3876123e2cc7Smrgdone
3877123e2cc7Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3878123e2cc7Smrgrm -f conftest.err conftest.$ac_ext
3879123e2cc7Smrgif $ac_preproc_ok; then
3880123e2cc7Smrg  :
3881123e2cc7Smrgelse
3882123e2cc7Smrg  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3883123e2cc7Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3884123e2cc7Smrg{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3885123e2cc7SmrgSee \`config.log' for more details." >&5
3886123e2cc7Smrg$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3887123e2cc7SmrgSee \`config.log' for more details." >&2;}
3888123e2cc7Smrg   { (exit 1); exit 1; }; }; }
3889123e2cc7Smrgfi
3890123e2cc7Smrg
3891123e2cc7Smrgac_ext=c
3892123e2cc7Smrgac_cpp='$CPP $CPPFLAGS'
3893123e2cc7Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3894123e2cc7Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3895123e2cc7Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3896123e2cc7Smrg
3897123e2cc7Smrg
3898123e2cc7Smrg{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3899123e2cc7Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3900123e2cc7Smrgif test "${ac_cv_path_GREP+set}" = set; then
3901123e2cc7Smrg  $as_echo_n "(cached) " >&6
3902123e2cc7Smrgelse
3903123e2cc7Smrg  if test -z "$GREP"; then
3904123e2cc7Smrg  ac_path_GREP_found=false
3905123e2cc7Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
3906123e2cc7Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907123e2cc7Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3908123e2cc7Smrgdo
3909123e2cc7Smrg  IFS=$as_save_IFS
3910123e2cc7Smrg  test -z "$as_dir" && as_dir=.
3911123e2cc7Smrg  for ac_prog in grep ggrep; do
3912123e2cc7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3913123e2cc7Smrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3914123e2cc7Smrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3915123e2cc7Smrg# Check for GNU ac_path_GREP and select it if it is found.
3916123e2cc7Smrg  # Check for GNU $ac_path_GREP
3917123e2cc7Smrgcase `"$ac_path_GREP" --version 2>&1` in
3918123e2cc7Smrg*GNU*)
3919123e2cc7Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3920123e2cc7Smrg*)
3921123e2cc7Smrg  ac_count=0
3922123e2cc7Smrg  $as_echo_n 0123456789 >"conftest.in"
3923123e2cc7Smrg  while :
3924123e2cc7Smrg  do
3925123e2cc7Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
3926123e2cc7Smrg    mv "conftest.tmp" "conftest.in"
3927123e2cc7Smrg    cp "conftest.in" "conftest.nl"
3928123e2cc7Smrg    $as_echo 'GREP' >> "conftest.nl"
3929123e2cc7Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3930123e2cc7Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3931123e2cc7Smrg    ac_count=`expr $ac_count + 1`
3932123e2cc7Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3933123e2cc7Smrg      # Best one so far, save it but keep looking for a better one
3934123e2cc7Smrg      ac_cv_path_GREP="$ac_path_GREP"
3935123e2cc7Smrg      ac_path_GREP_max=$ac_count
3936123e2cc7Smrg    fi
3937123e2cc7Smrg    # 10*(2^10) chars as input seems more than enough
3938123e2cc7Smrg    test $ac_count -gt 10 && break
3939123e2cc7Smrg  done
3940123e2cc7Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3941123e2cc7Smrgesac
3942123e2cc7Smrg
3943123e2cc7Smrg      $ac_path_GREP_found && break 3
3944123e2cc7Smrg    done
3945123e2cc7Smrg  done
3946123e2cc7Smrgdone
3947123e2cc7SmrgIFS=$as_save_IFS
3948123e2cc7Smrg  if test -z "$ac_cv_path_GREP"; then
3949123e2cc7Smrg    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3950123e2cc7Smrg$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3951123e2cc7Smrg   { (exit 1); exit 1; }; }
3952123e2cc7Smrg  fi
3953123e2cc7Smrgelse
3954123e2cc7Smrg  ac_cv_path_GREP=$GREP
3955123e2cc7Smrgfi
3956123e2cc7Smrg
3957123e2cc7Smrgfi
3958123e2cc7Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3959123e2cc7Smrg$as_echo "$ac_cv_path_GREP" >&6; }
3960123e2cc7Smrg GREP="$ac_cv_path_GREP"
3961123e2cc7Smrg
3962123e2cc7Smrg
3963123e2cc7Smrg{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3964123e2cc7Smrg$as_echo_n "checking for egrep... " >&6; }
3965123e2cc7Smrgif test "${ac_cv_path_EGREP+set}" = set; then
3966123e2cc7Smrg  $as_echo_n "(cached) " >&6
3967123e2cc7Smrgelse
3968123e2cc7Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3969123e2cc7Smrg   then ac_cv_path_EGREP="$GREP -E"
3970123e2cc7Smrg   else
3971123e2cc7Smrg     if test -z "$EGREP"; then
3972123e2cc7Smrg  ac_path_EGREP_found=false
3973123e2cc7Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
3974123e2cc7Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975123e2cc7Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3976123e2cc7Smrgdo
3977123e2cc7Smrg  IFS=$as_save_IFS
3978123e2cc7Smrg  test -z "$as_dir" && as_dir=.
3979123e2cc7Smrg  for ac_prog in egrep; do
3980123e2cc7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3981123e2cc7Smrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3982123e2cc7Smrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3983123e2cc7Smrg# Check for GNU ac_path_EGREP and select it if it is found.
3984123e2cc7Smrg  # Check for GNU $ac_path_EGREP
3985123e2cc7Smrgcase `"$ac_path_EGREP" --version 2>&1` in
3986123e2cc7Smrg*GNU*)
3987123e2cc7Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3988123e2cc7Smrg*)
3989123e2cc7Smrg  ac_count=0
3990123e2cc7Smrg  $as_echo_n 0123456789 >"conftest.in"
3991123e2cc7Smrg  while :
3992123e2cc7Smrg  do
3993123e2cc7Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
3994123e2cc7Smrg    mv "conftest.tmp" "conftest.in"
3995123e2cc7Smrg    cp "conftest.in" "conftest.nl"
3996123e2cc7Smrg    $as_echo 'EGREP' >> "conftest.nl"
3997123e2cc7Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3998123e2cc7Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3999123e2cc7Smrg    ac_count=`expr $ac_count + 1`
4000123e2cc7Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4001123e2cc7Smrg      # Best one so far, save it but keep looking for a better one
4002123e2cc7Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
4003123e2cc7Smrg      ac_path_EGREP_max=$ac_count
4004123e2cc7Smrg    fi
4005123e2cc7Smrg    # 10*(2^10) chars as input seems more than enough
4006123e2cc7Smrg    test $ac_count -gt 10 && break
4007123e2cc7Smrg  done
4008123e2cc7Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4009123e2cc7Smrgesac
4010123e2cc7Smrg
4011123e2cc7Smrg      $ac_path_EGREP_found && break 3
4012123e2cc7Smrg    done
4013123e2cc7Smrg  done
4014123e2cc7Smrgdone
4015123e2cc7SmrgIFS=$as_save_IFS
4016123e2cc7Smrg  if test -z "$ac_cv_path_EGREP"; then
4017123e2cc7Smrg    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4018123e2cc7Smrg$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4019123e2cc7Smrg   { (exit 1); exit 1; }; }
4020123e2cc7Smrg  fi
4021123e2cc7Smrgelse
4022123e2cc7Smrg  ac_cv_path_EGREP=$EGREP
4023123e2cc7Smrgfi
4024123e2cc7Smrg
4025123e2cc7Smrg   fi
4026123e2cc7Smrgfi
4027123e2cc7Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4028123e2cc7Smrg$as_echo "$ac_cv_path_EGREP" >&6; }
4029123e2cc7Smrg EGREP="$ac_cv_path_EGREP"
4030123e2cc7Smrg
4031123e2cc7Smrg
4032123e2cc7Smrg{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4033123e2cc7Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
4034123e2cc7Smrgif test "${ac_cv_header_stdc+set}" = set; then
4035123e2cc7Smrg  $as_echo_n "(cached) " >&6
4036123e2cc7Smrgelse
4037123e2cc7Smrg  cat >conftest.$ac_ext <<_ACEOF
4038123e2cc7Smrg/* confdefs.h.  */
4039123e2cc7Smrg_ACEOF
4040123e2cc7Smrgcat confdefs.h >>conftest.$ac_ext
4041123e2cc7Smrgcat >>conftest.$ac_ext <<_ACEOF
4042123e2cc7Smrg/* end confdefs.h.  */
4043123e2cc7Smrg#include <stdlib.h>
4044123e2cc7Smrg#include <stdarg.h>
4045123e2cc7Smrg#include <string.h>
4046123e2cc7Smrg#include <float.h>
4047123e2cc7Smrg
4048123e2cc7Smrgint
4049123e2cc7Smrgmain ()
4050123e2cc7Smrg{
4051123e2cc7Smrg
4052123e2cc7Smrg  ;
4053123e2cc7Smrg  return 0;
4054123e2cc7Smrg}
4055123e2cc7Smrg_ACEOF
4056123e2cc7Smrgrm -f conftest.$ac_objext
4057123e2cc7Smrgif { (ac_try="$ac_compile"
4058123e2cc7Smrgcase "(($ac_try" in
4059123e2cc7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060123e2cc7Smrg  *) ac_try_echo=$ac_try;;
4061123e2cc7Smrgesac
4062123e2cc7Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4063123e2cc7Smrg$as_echo "$ac_try_echo") >&5
4064123e2cc7Smrg  (eval "$ac_compile") 2>conftest.er1
4065123e2cc7Smrg  ac_status=$?
4066123e2cc7Smrg  grep -v '^ *+' conftest.er1 >conftest.err
4067123e2cc7Smrg  rm -f conftest.er1
4068123e2cc7Smrg  cat conftest.err >&5
4069123e2cc7Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070123e2cc7Smrg  (exit $ac_status); } && {
4071123e2cc7Smrg	 test -z "$ac_c_werror_flag" ||
4072123e2cc7Smrg	 test ! -s conftest.err
4073123e2cc7Smrg       } && test -s conftest.$ac_objext; then
4074123e2cc7Smrg  ac_cv_header_stdc=yes
4075123e2cc7Smrgelse
4076123e2cc7Smrg  $as_echo "$as_me: failed program was:" >&5
4077123e2cc7Smrgsed 's/^/| /' conftest.$ac_ext >&5
4078123e2cc7Smrg
4079123e2cc7Smrg	ac_cv_header_stdc=no
4080123e2cc7Smrgfi
4081123e2cc7Smrg
4082123e2cc7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4083123e2cc7Smrg
4084123e2cc7Smrgif test $ac_cv_header_stdc = yes; then
4085123e2cc7Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4086123e2cc7Smrg  cat >conftest.$ac_ext <<_ACEOF
4087123e2cc7Smrg/* confdefs.h.  */
4088123e2cc7Smrg_ACEOF
4089123e2cc7Smrgcat confdefs.h >>conftest.$ac_ext
4090123e2cc7Smrgcat >>conftest.$ac_ext <<_ACEOF
4091123e2cc7Smrg/* end confdefs.h.  */
4092123e2cc7Smrg#include <string.h>
4093123e2cc7Smrg
4094123e2cc7Smrg_ACEOF
4095123e2cc7Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4096123e2cc7Smrg  $EGREP "memchr" >/dev/null 2>&1; then
4097123e2cc7Smrg  :
4098123e2cc7Smrgelse
4099123e2cc7Smrg  ac_cv_header_stdc=no
4100123e2cc7Smrgfi
4101123e2cc7Smrgrm -f conftest*
4102123e2cc7Smrg
4103123e2cc7Smrgfi
4104123e2cc7Smrg
4105123e2cc7Smrgif test $ac_cv_header_stdc = yes; then
4106123e2cc7Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4107123e2cc7Smrg  cat >conftest.$ac_ext <<_ACEOF
4108123e2cc7Smrg/* confdefs.h.  */
4109123e2cc7Smrg_ACEOF
4110123e2cc7Smrgcat confdefs.h >>conftest.$ac_ext
4111123e2cc7Smrgcat >>conftest.$ac_ext <<_ACEOF
4112123e2cc7Smrg/* end confdefs.h.  */
4113123e2cc7Smrg#include <stdlib.h>
4114123e2cc7Smrg
4115123e2cc7Smrg_ACEOF
4116123e2cc7Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4117123e2cc7Smrg  $EGREP "free" >/dev/null 2>&1; then
4118123e2cc7Smrg  :
4119123e2cc7Smrgelse
4120123e2cc7Smrg  ac_cv_header_stdc=no
4121123e2cc7Smrgfi
4122123e2cc7Smrgrm -f conftest*
4123123e2cc7Smrg
4124123e2cc7Smrgfi
4125123e2cc7Smrg
4126123e2cc7Smrgif test $ac_cv_header_stdc = yes; then
4127123e2cc7Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4128123e2cc7Smrg  if test "$cross_compiling" = yes; then
4129123e2cc7Smrg  :
4130123e2cc7Smrgelse
4131123e2cc7Smrg  cat >conftest.$ac_ext <<_ACEOF
4132123e2cc7Smrg/* confdefs.h.  */
4133123e2cc7Smrg_ACEOF
4134123e2cc7Smrgcat confdefs.h >>conftest.$ac_ext
4135123e2cc7Smrgcat >>conftest.$ac_ext <<_ACEOF
4136123e2cc7Smrg/* end confdefs.h.  */
4137123e2cc7Smrg#include <ctype.h>
4138123e2cc7Smrg#include <stdlib.h>
4139123e2cc7Smrg#if ((' ' & 0x0FF) == 0x020)
4140123e2cc7Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4141123e2cc7Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4142123e2cc7Smrg#else
4143123e2cc7Smrg# define ISLOWER(c) \
4144123e2cc7Smrg		   (('a' <= (c) && (c) <= 'i') \
4145123e2cc7Smrg		     || ('j' <= (c) && (c) <= 'r') \
4146123e2cc7Smrg		     || ('s' <= (c) && (c) <= 'z'))
4147123e2cc7Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4148123e2cc7Smrg#endif
4149123e2cc7Smrg
4150123e2cc7Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4151123e2cc7Smrgint
4152123e2cc7Smrgmain ()
4153123e2cc7Smrg{
4154123e2cc7Smrg  int i;
4155123e2cc7Smrg  for (i = 0; i < 256; i++)
4156123e2cc7Smrg    if (XOR (islower (i), ISLOWER (i))
4157123e2cc7Smrg	|| toupper (i) != TOUPPER (i))
4158123e2cc7Smrg      return 2;
4159123e2cc7Smrg  return 0;
4160123e2cc7Smrg}
4161123e2cc7Smrg_ACEOF
4162123e2cc7Smrgrm -f conftest$ac_exeext
4163123e2cc7Smrgif { (ac_try="$ac_link"
4164123e2cc7Smrgcase "(($ac_try" in
4165123e2cc7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166123e2cc7Smrg  *) ac_try_echo=$ac_try;;
4167123e2cc7Smrgesac
4168123e2cc7Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4169123e2cc7Smrg$as_echo "$ac_try_echo") >&5
4170123e2cc7Smrg  (eval "$ac_link") 2>&5
4171123e2cc7Smrg  ac_status=$?
4172123e2cc7Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173123e2cc7Smrg  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4174123e2cc7Smrg  { (case "(($ac_try" in
4175123e2cc7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176123e2cc7Smrg  *) ac_try_echo=$ac_try;;
4177123e2cc7Smrgesac
4178123e2cc7Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4179123e2cc7Smrg$as_echo "$ac_try_echo") >&5
4180123e2cc7Smrg  (eval "$ac_try") 2>&5
4181123e2cc7Smrg  ac_status=$?
4182123e2cc7Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183123e2cc7Smrg  (exit $ac_status); }; }; then
4184123e2cc7Smrg  :
4185123e2cc7Smrgelse
4186123e2cc7Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
4187123e2cc7Smrg$as_echo "$as_me: failed program was:" >&5
4188123e2cc7Smrgsed 's/^/| /' conftest.$ac_ext >&5
4189123e2cc7Smrg
4190123e2cc7Smrg( exit $ac_status )
4191123e2cc7Smrgac_cv_header_stdc=no
4192123e2cc7Smrgfi
4193123e2cc7Smrgrm -rf conftest.dSYM
4194123e2cc7Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4195123e2cc7Smrgfi
4196123e2cc7Smrg
4197123e2cc7Smrg
4198123e2cc7Smrgfi
4199123e2cc7Smrgfi
4200123e2cc7Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4201123e2cc7Smrg$as_echo "$ac_cv_header_stdc" >&6; }
4202123e2cc7Smrgif test $ac_cv_header_stdc = yes; then
4203123e2cc7Smrg
4204123e2cc7Smrgcat >>confdefs.h <<\_ACEOF
4205123e2cc7Smrg#define STDC_HEADERS 1
4206123e2cc7Smrg_ACEOF
4207123e2cc7Smrg
4208123e2cc7Smrgfi
4209123e2cc7Smrg
4210123e2cc7Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4211123e2cc7Smrg
4212123e2cc7Smrg
4213123e2cc7Smrg
4214123e2cc7Smrg
4215123e2cc7Smrg
4216123e2cc7Smrg
4217123e2cc7Smrg
4218123e2cc7Smrg
4219123e2cc7Smrg
4220123e2cc7Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4221123e2cc7Smrg		  inttypes.h stdint.h unistd.h
4222123e2cc7Smrgdo
4223123e2cc7Smrgas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4224123e2cc7Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4225123e2cc7Smrg$as_echo_n "checking for $ac_header... " >&6; }
4226123e2cc7Smrgif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4227123e2cc7Smrg  $as_echo_n "(cached) " >&6
4228123e2cc7Smrgelse
4229123e2cc7Smrg  cat >conftest.$ac_ext <<_ACEOF
4230123e2cc7Smrg/* confdefs.h.  */
4231123e2cc7Smrg_ACEOF
4232123e2cc7Smrgcat confdefs.h >>conftest.$ac_ext
4233123e2cc7Smrgcat >>conftest.$ac_ext <<_ACEOF
4234123e2cc7Smrg/* end confdefs.h.  */
4235123e2cc7Smrg$ac_includes_default
4236123e2cc7Smrg
4237123e2cc7Smrg#include <$ac_header>
4238123e2cc7Smrg_ACEOF
4239123e2cc7Smrgrm -f conftest.$ac_objext
4240123e2cc7Smrgif { (ac_try="$ac_compile"
4241123e2cc7Smrgcase "(($ac_try" in
4242123e2cc7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243123e2cc7Smrg  *) ac_try_echo=$ac_try;;
4244123e2cc7Smrgesac
4245123e2cc7Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4246123e2cc7Smrg$as_echo "$ac_try_echo") >&5
4247123e2cc7Smrg  (eval "$ac_compile") 2>conftest.er1
4248123e2cc7Smrg  ac_status=$?
4249123e2cc7Smrg  grep -v '^ *+' conftest.er1 >conftest.err
4250123e2cc7Smrg  rm -f conftest.er1
4251123e2cc7Smrg  cat conftest.err >&5
4252123e2cc7Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253123e2cc7Smrg  (exit $ac_status); } && {
4254123e2cc7Smrg	 test -z "$ac_c_werror_flag" ||
4255123e2cc7Smrg	 test ! -s conftest.err
4256123e2cc7Smrg       } && test -s conftest.$ac_objext; then
4257123e2cc7Smrg  eval "$as_ac_Header=yes"
4258123e2cc7Smrgelse
4259123e2cc7Smrg  $as_echo "$as_me: failed program was:" >&5
4260123e2cc7Smrgsed 's/^/| /' conftest.$ac_ext >&5
4261123e2cc7Smrg
4262123e2cc7Smrg	eval "$as_ac_Header=no"
4263123e2cc7Smrgfi
4264123e2cc7Smrg
4265123e2cc7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4266123e2cc7Smrgfi
4267123e2cc7Smrgac_res=`eval 'as_val=${'$as_ac_Header'}
4268123e2cc7Smrg		 $as_echo "$as_val"'`
4269123e2cc7Smrg	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4270123e2cc7Smrg$as_echo "$ac_res" >&6; }
4271123e2cc7Smrgas_val=`eval 'as_val=${'$as_ac_Header'}
4272123e2cc7Smrg		 $as_echo "$as_val"'`
4273123e2cc7Smrg   if test "x$as_val" = x""yes; then
4274123e2cc7Smrg  cat >>confdefs.h <<_ACEOF
4275123e2cc7Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4276123e2cc7Smrg_ACEOF
4277123e2cc7Smrg
4278123e2cc7Smrgfi
4279123e2cc7Smrg
4280123e2cc7Smrgdone
4281123e2cc7Smrg
4282123e2cc7Smrg
4283123e2cc7Smrg   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
4284123e2cc7Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4285123e2cc7Smrgif test "${ac_cv_prog_cc_c99+set}" = set; then
4286123e2cc7Smrg  $as_echo_n "(cached) " >&6
4287123e2cc7Smrgelse
4288123e2cc7Smrg  ac_cv_prog_cc_c99=no
4289123e2cc7Smrgac_save_CC=$CC
4290123e2cc7Smrgcat >conftest.$ac_ext <<_ACEOF
4291123e2cc7Smrg/* confdefs.h.  */
4292123e2cc7Smrg_ACEOF
4293123e2cc7Smrgcat confdefs.h >>conftest.$ac_ext
4294123e2cc7Smrgcat >>conftest.$ac_ext <<_ACEOF
4295123e2cc7Smrg/* end confdefs.h.  */
4296123e2cc7Smrg#include <stdarg.h>
4297123e2cc7Smrg#include <stdbool.h>
4298123e2cc7Smrg#include <stdlib.h>
4299123e2cc7Smrg#include <wchar.h>
4300123e2cc7Smrg#include <stdio.h>
4301123e2cc7Smrg
4302123e2cc7Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4303123e2cc7Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
4304123e2cc7Smrg#define showlist(...) puts (#__VA_ARGS__)
4305123e2cc7Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4306123e2cc7Smrgstatic void
4307123e2cc7Smrgtest_varargs_macros (void)
4308123e2cc7Smrg{
4309123e2cc7Smrg  int x = 1234;
4310123e2cc7Smrg  int y = 5678;
4311123e2cc7Smrg  debug ("Flag");
4312123e2cc7Smrg  debug ("X = %d\n", x);
4313123e2cc7Smrg  showlist (The first, second, and third items.);
4314123e2cc7Smrg  report (x>y, "x is %d but y is %d", x, y);
4315123e2cc7Smrg}
4316123e2cc7Smrg
4317123e2cc7Smrg// Check long long types.
4318123e2cc7Smrg#define BIG64 18446744073709551615ull
4319123e2cc7Smrg#define BIG32 4294967295ul
4320123e2cc7Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4321123e2cc7Smrg#if !BIG_OK
4322123e2cc7Smrg  your preprocessor is broken;
4323123e2cc7Smrg#endif
4324123e2cc7Smrg#if BIG_OK
4325123e2cc7Smrg#else
4326123e2cc7Smrg  your preprocessor is broken;
4327123e2cc7Smrg#endif
4328123e2cc7Smrgstatic long long int bignum = -9223372036854775807LL;
4329123e2cc7Smrgstatic unsigned long long int ubignum = BIG64;
4330123e2cc7Smrg
4331123e2cc7Smrgstruct incomplete_array
4332123e2cc7Smrg{
4333123e2cc7Smrg  int datasize;
4334123e2cc7Smrg  double data[];
4335123e2cc7Smrg};
4336123e2cc7Smrg
4337123e2cc7Smrgstruct named_init {
4338123e2cc7Smrg  int number;
4339123e2cc7Smrg  const wchar_t *name;
4340123e2cc7Smrg  double average;
4341123e2cc7Smrg};
4342123e2cc7Smrg
4343123e2cc7Smrgtypedef const char *ccp;
4344123e2cc7Smrg
4345123e2cc7Smrgstatic inline int
4346123e2cc7Smrgtest_restrict (ccp restrict text)
4347123e2cc7Smrg{
4348123e2cc7Smrg  // See if C++-style comments work.
4349123e2cc7Smrg  // Iterate through items via the restricted pointer.
4350123e2cc7Smrg  // Also check for declarations in for loops.
4351123e2cc7Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4352123e2cc7Smrg    continue;
4353123e2cc7Smrg  return 0;
4354123e2cc7Smrg}
4355123e2cc7Smrg
4356123e2cc7Smrg// Check varargs and va_copy.
4357123e2cc7Smrgstatic void
4358123e2cc7Smrgtest_varargs (const char *format, ...)
4359123e2cc7Smrg{
4360123e2cc7Smrg  va_list args;
4361123e2cc7Smrg  va_start (args, format);
4362123e2cc7Smrg  va_list args_copy;
4363123e2cc7Smrg  va_copy (args_copy, args);
4364123e2cc7Smrg
4365123e2cc7Smrg  const char *str;
4366123e2cc7Smrg  int number;
4367123e2cc7Smrg  float fnumber;
4368123e2cc7Smrg
4369123e2cc7Smrg  while (*format)
4370123e2cc7Smrg    {
4371123e2cc7Smrg      switch (*format++)
4372123e2cc7Smrg	{
4373123e2cc7Smrg	case 's': // string
4374123e2cc7Smrg	  str = va_arg (args_copy, const char *);
4375123e2cc7Smrg	  break;
4376123e2cc7Smrg	case 'd': // int
4377123e2cc7Smrg	  number = va_arg (args_copy, int);
4378123e2cc7Smrg	  break;
4379123e2cc7Smrg	case 'f': // float
4380123e2cc7Smrg	  fnumber = va_arg (args_copy, double);
4381123e2cc7Smrg	  break;
4382123e2cc7Smrg	default:
4383123e2cc7Smrg	  break;
4384123e2cc7Smrg	}
4385123e2cc7Smrg    }
4386123e2cc7Smrg  va_end (args_copy);
4387123e2cc7Smrg  va_end (args);
4388123e2cc7Smrg}
4389123e2cc7Smrg
4390123e2cc7Smrgint
4391123e2cc7Smrgmain ()
4392123e2cc7Smrg{
4393123e2cc7Smrg
4394123e2cc7Smrg  // Check bool.
4395123e2cc7Smrg  _Bool success = false;
4396123e2cc7Smrg
4397123e2cc7Smrg  // Check restrict.
4398123e2cc7Smrg  if (test_restrict ("String literal") == 0)
4399123e2cc7Smrg    success = true;
4400123e2cc7Smrg  char *restrict newvar = "Another string";
4401123e2cc7Smrg
4402123e2cc7Smrg  // Check varargs.
4403123e2cc7Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
4404123e2cc7Smrg  test_varargs_macros ();
4405123e2cc7Smrg
4406123e2cc7Smrg  // Check flexible array members.
4407123e2cc7Smrg  struct incomplete_array *ia =
4408123e2cc7Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4409123e2cc7Smrg  ia->datasize = 10;
4410123e2cc7Smrg  for (int i = 0; i < ia->datasize; ++i)
4411123e2cc7Smrg    ia->data[i] = i * 1.234;
4412123e2cc7Smrg
4413123e2cc7Smrg  // Check named initializers.
4414123e2cc7Smrg  struct named_init ni = {
4415123e2cc7Smrg    .number = 34,
4416123e2cc7Smrg    .name = L"Test wide string",
4417123e2cc7Smrg    .average = 543.34343,
4418123e2cc7Smrg  };
4419123e2cc7Smrg
4420123e2cc7Smrg  ni.number = 58;
4421123e2cc7Smrg
4422123e2cc7Smrg  int dynamic_array[ni.number];
4423123e2cc7Smrg  dynamic_array[ni.number - 1] = 543;
4424123e2cc7Smrg
4425123e2cc7Smrg  // work around unused variable warnings
4426123e2cc7Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4427123e2cc7Smrg	  || dynamic_array[ni.number - 1] != 543);
4428123e2cc7Smrg
4429123e2cc7Smrg  ;
4430123e2cc7Smrg  return 0;
4431123e2cc7Smrg}
4432123e2cc7Smrg_ACEOF
4433123e2cc7Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4434123e2cc7Smrgdo
4435123e2cc7Smrg  CC="$ac_save_CC $ac_arg"
4436123e2cc7Smrg  rm -f conftest.$ac_objext
4437123e2cc7Smrgif { (ac_try="$ac_compile"
4438123e2cc7Smrgcase "(($ac_try" in
4439123e2cc7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440123e2cc7Smrg  *) ac_try_echo=$ac_try;;
4441123e2cc7Smrgesac
4442123e2cc7Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4443123e2cc7Smrg$as_echo "$ac_try_echo") >&5
4444123e2cc7Smrg  (eval "$ac_compile") 2>conftest.er1
4445123e2cc7Smrg  ac_status=$?
4446123e2cc7Smrg  grep -v '^ *+' conftest.er1 >conftest.err
4447123e2cc7Smrg  rm -f conftest.er1
4448123e2cc7Smrg  cat conftest.err >&5
4449123e2cc7Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450123e2cc7Smrg  (exit $ac_status); } && {
4451123e2cc7Smrg	 test -z "$ac_c_werror_flag" ||
4452123e2cc7Smrg	 test ! -s conftest.err
4453123e2cc7Smrg       } && test -s conftest.$ac_objext; then
4454123e2cc7Smrg  ac_cv_prog_cc_c99=$ac_arg
4455123e2cc7Smrgelse
4456123e2cc7Smrg  $as_echo "$as_me: failed program was:" >&5
4457123e2cc7Smrgsed 's/^/| /' conftest.$ac_ext >&5
4458123e2cc7Smrg
4459123e2cc7Smrg
4460123e2cc7Smrgfi
4461123e2cc7Smrg
4462123e2cc7Smrgrm -f core conftest.err conftest.$ac_objext
4463123e2cc7Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
4464123e2cc7Smrgdone
4465123e2cc7Smrgrm -f conftest.$ac_ext
4466123e2cc7SmrgCC=$ac_save_CC
4467123e2cc7Smrg
4468123e2cc7Smrgfi
4469123e2cc7Smrg# AC_CACHE_VAL
4470123e2cc7Smrgcase "x$ac_cv_prog_cc_c99" in
4471123e2cc7Smrg  x)
4472123e2cc7Smrg    { $as_echo "$as_me:$LINENO: result: none needed" >&5
4473123e2cc7Smrg$as_echo "none needed" >&6; } ;;
4474123e2cc7Smrg  xno)
4475123e2cc7Smrg    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4476123e2cc7Smrg$as_echo "unsupported" >&6; } ;;
4477123e2cc7Smrg  *)
4478123e2cc7Smrg    CC="$CC $ac_cv_prog_cc_c99"
4479123e2cc7Smrg    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4480123e2cc7Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4481123e2cc7Smrgesac
4482123e2cc7Smrg
4483123e2cc7Smrg
4484123e2cc7Smrg
4485123e2cc7Smrg# Make sure we can run config.sub.
4486123e2cc7Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4487123e2cc7Smrg  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4488123e2cc7Smrg$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4489123e2cc7Smrg   { (exit 1); exit 1; }; }
4490123e2cc7Smrg
4491123e2cc7Smrg{ $as_echo "$as_me:$LINENO: checking build system type" >&5
4492123e2cc7Smrg$as_echo_n "checking build system type... " >&6; }
4493123e2cc7Smrgif test "${ac_cv_build+set}" = set; then
4494123e2cc7Smrg  $as_echo_n "(cached) " >&6
4495123e2cc7Smrgelse
4496123e2cc7Smrg  ac_build_alias=$build_alias
4497123e2cc7Smrgtest "x$ac_build_alias" = x &&
4498123e2cc7Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4499123e2cc7Smrgtest "x$ac_build_alias" = x &&
4500123e2cc7Smrg  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4501123e2cc7Smrg$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4502123e2cc7Smrg   { (exit 1); exit 1; }; }
4503123e2cc7Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4504123e2cc7Smrg  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4505123e2cc7Smrg$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4506123e2cc7Smrg   { (exit 1); exit 1; }; }
4507123e2cc7Smrg
4508123e2cc7Smrgfi
4509123e2cc7Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4510123e2cc7Smrg$as_echo "$ac_cv_build" >&6; }
4511123e2cc7Smrgcase $ac_cv_build in
4512123e2cc7Smrg*-*-*) ;;
4513123e2cc7Smrg*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4514123e2cc7Smrg$as_echo "$as_me: error: invalid value of canonical build" >&2;}
4515123e2cc7Smrg   { (exit 1); exit 1; }; };;
4516123e2cc7Smrgesac
4517123e2cc7Smrgbuild=$ac_cv_build
4518123e2cc7Smrgac_save_IFS=$IFS; IFS='-'
4519123e2cc7Smrgset x $ac_cv_build
4520123e2cc7Smrgshift
4521123e2cc7Smrgbuild_cpu=$1
4522123e2cc7Smrgbuild_vendor=$2
4523123e2cc7Smrgshift; shift
4524123e2cc7Smrg# Remember, the first character of IFS is used to create $*,
4525123e2cc7Smrg# except with old shells:
4526123e2cc7Smrgbuild_os=$*
4527123e2cc7SmrgIFS=$ac_save_IFS
4528123e2cc7Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4529123e2cc7Smrg
4530123e2cc7Smrg
4531123e2cc7Smrg{ $as_echo "$as_me:$LINENO: checking host system type" >&5
4532123e2cc7Smrg$as_echo_n "checking host system type... " >&6; }
4533123e2cc7Smrgif test "${ac_cv_host+set}" = set; then
4534123e2cc7Smrg  $as_echo_n "(cached) " >&6
4535123e2cc7Smrgelse
4536123e2cc7Smrg  if test "x$host_alias" = x; then
4537123e2cc7Smrg  ac_cv_host=$ac_cv_build
4538123e2cc7Smrgelse
4539123e2cc7Smrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4540123e2cc7Smrg    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4541123e2cc7Smrg$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4542123e2cc7Smrg   { (exit 1); exit 1; }; }
4543123e2cc7Smrgfi
4544123e2cc7Smrg
4545123e2cc7Smrgfi
4546123e2cc7Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4547123e2cc7Smrg$as_echo "$ac_cv_host" >&6; }
4548123e2cc7Smrgcase $ac_cv_host in
4549123e2cc7Smrg*-*-*) ;;
4550123e2cc7Smrg*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4551123e2cc7Smrg$as_echo "$as_me: error: invalid value of canonical host" >&2;}
4552123e2cc7Smrg   { (exit 1); exit 1; }; };;
4553123e2cc7Smrgesac
4554123e2cc7Smrghost=$ac_cv_host
4555123e2cc7Smrgac_save_IFS=$IFS; IFS='-'
4556123e2cc7Smrgset x $ac_cv_host
4557123e2cc7Smrgshift
4558123e2cc7Smrghost_cpu=$1
4559123e2cc7Smrghost_vendor=$2
4560123e2cc7Smrgshift; shift
4561123e2cc7Smrg# Remember, the first character of IFS is used to create $*,
4562123e2cc7Smrg# except with old shells:
4563123e2cc7Smrghost_os=$*
4564123e2cc7SmrgIFS=$ac_save_IFS
4565123e2cc7Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4566123e2cc7Smrg
4567123e2cc7Smrg
4568123e2cc7Smrg
4569123e2cc7Smrg
4570123e2cc7Smrg
4571123e2cc7Smrgif  test "x$GCC" = xyes ; then
4572123e2cc7Smrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4573123e2cc7Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4574123e2cc7Smrg-Wbad-function-cast"
4575123e2cc7Smrg    case `$CC -dumpversion` in
4576123e2cc7Smrg    3.4.* | 4.*)
4577123e2cc7Smrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4578123e2cc7Smrg	;;
4579123e2cc7Smrg    esac
4580123e2cc7Smrgelse
4581123e2cc7Smrg    { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4582123e2cc7Smrg$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4583123e2cc7Smrgif test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4584123e2cc7Smrg  $as_echo_n "(cached) " >&6
4585123e2cc7Smrgelse
4586123e2cc7Smrg  cat >conftest.$ac_ext <<_ACEOF
4587123e2cc7Smrg/* confdefs.h.  */
4588123e2cc7Smrg_ACEOF
4589123e2cc7Smrgcat confdefs.h >>conftest.$ac_ext
4590123e2cc7Smrgcat >>conftest.$ac_ext <<_ACEOF
4591123e2cc7Smrg/* end confdefs.h.  */
4592123e2cc7Smrg$ac_includes_default
4593123e2cc7Smrgint
4594123e2cc7Smrgmain ()
4595123e2cc7Smrg{
4596123e2cc7Smrg#ifndef __SUNPRO_C
4597123e2cc7Smrg  (void) __SUNPRO_C;
4598123e2cc7Smrg#endif
4599123e2cc7Smrg
4600123e2cc7Smrg  ;
4601123e2cc7Smrg  return 0;
4602123e2cc7Smrg}
4603123e2cc7Smrg_ACEOF
4604123e2cc7Smrgrm -f conftest.$ac_objext
4605123e2cc7Smrgif { (ac_try="$ac_compile"
4606123e2cc7Smrgcase "(($ac_try" in
4607123e2cc7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608123e2cc7Smrg  *) ac_try_echo=$ac_try;;
4609123e2cc7Smrgesac
4610123e2cc7Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4611123e2cc7Smrg$as_echo "$ac_try_echo") >&5
4612123e2cc7Smrg  (eval "$ac_compile") 2>conftest.er1
4613123e2cc7Smrg  ac_status=$?
4614123e2cc7Smrg  grep -v '^ *+' conftest.er1 >conftest.err
4615123e2cc7Smrg  rm -f conftest.er1
4616123e2cc7Smrg  cat conftest.err >&5
4617123e2cc7Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618123e2cc7Smrg  (exit $ac_status); } && {
4619123e2cc7Smrg	 test -z "$ac_c_werror_flag" ||
4620123e2cc7Smrg	 test ! -s conftest.err
4621123e2cc7Smrg       } && test -s conftest.$ac_objext; then
4622123e2cc7Smrg  ac_cv_have_decl___SUNPRO_C=yes
4623123e2cc7Smrgelse
4624123e2cc7Smrg  $as_echo "$as_me: failed program was:" >&5
4625123e2cc7Smrgsed 's/^/| /' conftest.$ac_ext >&5
4626123e2cc7Smrg
4627123e2cc7Smrg	ac_cv_have_decl___SUNPRO_C=no
4628123e2cc7Smrgfi
4629123e2cc7Smrg
4630123e2cc7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631123e2cc7Smrgfi
4632123e2cc7Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4633123e2cc7Smrg$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4634123e2cc7Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
4635123e2cc7Smrg  SUNCC="yes"
4636123e2cc7Smrgelse
4637123e2cc7Smrg  SUNCC="no"
4638123e2cc7Smrgfi
4639123e2cc7Smrg
4640123e2cc7Smrg    if test "x$SUNCC" = "xyes"; then
4641123e2cc7Smrg	CWARNFLAGS="-v"
4642123e2cc7Smrg    fi
4643123e2cc7Smrgfi
4644123e2cc7Smrg
4645123e2cc7Smrg# Check whether --enable-silent-rules was given.
4646123e2cc7Smrgif test "${enable_silent_rules+set}" = set; then
4647123e2cc7Smrg  enableval=$enable_silent_rules;
4648123e2cc7Smrgfi
4649123e2cc7Smrg
4650123e2cc7Smrgcase $enable_silent_rules in
4651123e2cc7Smrgyes) AM_DEFAULT_VERBOSITY=0;;
4652123e2cc7Smrgno)  AM_DEFAULT_VERBOSITY=1;;
4653123e2cc7Smrg*)   AM_DEFAULT_VERBOSITY=0;;
4654123e2cc7Smrgesac
4655123e2cc7SmrgAM_BACKSLASH='\'
4656123e2cc7Smrg
4657123e2cc7Smrg
4658123e2cc7Smrg
4659123e2cc7Smrg
4660123e2cc7Smrg
4661123e2cc7Smrg
4662123e2cc7Smrg
4663123e2cc7Smrg# Check whether --enable-strict-compilation was given.
4664123e2cc7Smrgif test "${enable_strict_compilation+set}" = set; then
4665123e2cc7Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4666123e2cc7Smrgelse
4667123e2cc7Smrg  STRICT_COMPILE=no
4668123e2cc7Smrgfi
4669123e2cc7Smrg
4670123e2cc7Smrgif test "x$STRICT_COMPILE" = "xyes"; then
4671123e2cc7Smrg	{ $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4672123e2cc7Smrg$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4673123e2cc7Smrgif test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4674123e2cc7Smrg  $as_echo_n "(cached) " >&6
4675123e2cc7Smrgelse
4676123e2cc7Smrg  cat >conftest.$ac_ext <<_ACEOF
4677123e2cc7Smrg/* confdefs.h.  */
4678123e2cc7Smrg_ACEOF
4679123e2cc7Smrgcat confdefs.h >>conftest.$ac_ext
4680123e2cc7Smrgcat >>conftest.$ac_ext <<_ACEOF
4681123e2cc7Smrg/* end confdefs.h.  */
4682123e2cc7Smrg$ac_includes_default
4683123e2cc7Smrgint
4684123e2cc7Smrgmain ()
4685123e2cc7Smrg{
4686123e2cc7Smrg#ifndef __SUNPRO_C
4687123e2cc7Smrg  (void) __SUNPRO_C;
4688123e2cc7Smrg#endif
4689123e2cc7Smrg
4690123e2cc7Smrg  ;
4691123e2cc7Smrg  return 0;
4692123e2cc7Smrg}
4693123e2cc7Smrg_ACEOF
4694123e2cc7Smrgrm -f conftest.$ac_objext
4695123e2cc7Smrgif { (ac_try="$ac_compile"
4696123e2cc7Smrgcase "(($ac_try" in
4697123e2cc7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4698123e2cc7Smrg  *) ac_try_echo=$ac_try;;
4699123e2cc7Smrgesac
4700123e2cc7Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4701123e2cc7Smrg$as_echo "$ac_try_echo") >&5
4702123e2cc7Smrg  (eval "$ac_compile") 2>conftest.er1
4703123e2cc7Smrg  ac_status=$?
4704123e2cc7Smrg  grep -v '^ *+' conftest.er1 >conftest.err
4705123e2cc7Smrg  rm -f conftest.er1
4706123e2cc7Smrg  cat conftest.err >&5
4707123e2cc7Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708123e2cc7Smrg  (exit $ac_status); } && {
4709123e2cc7Smrg	 test -z "$ac_c_werror_flag" ||
4710123e2cc7Smrg	 test ! -s conftest.err
4711123e2cc7Smrg       } && test -s conftest.$ac_objext; then
4712123e2cc7Smrg  ac_cv_have_decl___SUNPRO_C=yes
4713123e2cc7Smrgelse
4714123e2cc7Smrg  $as_echo "$as_me: failed program was:" >&5
4715123e2cc7Smrgsed 's/^/| /' conftest.$ac_ext >&5
4716123e2cc7Smrg
4717123e2cc7Smrg	ac_cv_have_decl___SUNPRO_C=no
4718123e2cc7Smrgfi
4719123e2cc7Smrg
4720123e2cc7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4721123e2cc7Smrgfi
4722123e2cc7Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4723123e2cc7Smrg$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4724123e2cc7Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
4725123e2cc7Smrg  SUNCC="yes"
4726123e2cc7Smrgelse
4727123e2cc7Smrg  SUNCC="no"
4728123e2cc7Smrgfi
4729123e2cc7Smrg
4730123e2cc7Smrg	{ $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
4731123e2cc7Smrg$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
4732123e2cc7Smrgif test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
4733123e2cc7Smrg  $as_echo_n "(cached) " >&6
4734123e2cc7Smrgelse
4735123e2cc7Smrg  cat >conftest.$ac_ext <<_ACEOF
4736123e2cc7Smrg/* confdefs.h.  */
4737123e2cc7Smrg_ACEOF
4738123e2cc7Smrgcat confdefs.h >>conftest.$ac_ext
4739123e2cc7Smrgcat >>conftest.$ac_ext <<_ACEOF
4740123e2cc7Smrg/* end confdefs.h.  */
4741123e2cc7Smrg$ac_includes_default
4742123e2cc7Smrgint
4743123e2cc7Smrgmain ()
4744123e2cc7Smrg{
4745123e2cc7Smrg#ifndef __INTEL_COMPILER
4746123e2cc7Smrg  (void) __INTEL_COMPILER;
4747123e2cc7Smrg#endif
4748123e2cc7Smrg
4749123e2cc7Smrg  ;
4750123e2cc7Smrg  return 0;
4751123e2cc7Smrg}
4752123e2cc7Smrg_ACEOF
4753123e2cc7Smrgrm -f conftest.$ac_objext
4754123e2cc7Smrgif { (ac_try="$ac_compile"
4755123e2cc7Smrgcase "(($ac_try" in
4756123e2cc7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757123e2cc7Smrg  *) ac_try_echo=$ac_try;;
4758123e2cc7Smrgesac
4759123e2cc7Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4760123e2cc7Smrg$as_echo "$ac_try_echo") >&5
4761123e2cc7Smrg  (eval "$ac_compile") 2>conftest.er1
4762123e2cc7Smrg  ac_status=$?
4763123e2cc7Smrg  grep -v '^ *+' conftest.er1 >conftest.err
4764123e2cc7Smrg  rm -f conftest.er1
4765123e2cc7Smrg  cat conftest.err >&5
4766123e2cc7Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767123e2cc7Smrg  (exit $ac_status); } && {
4768123e2cc7Smrg	 test -z "$ac_c_werror_flag" ||
4769123e2cc7Smrg	 test ! -s conftest.err
4770123e2cc7Smrg       } && test -s conftest.$ac_objext; then
4771123e2cc7Smrg  ac_cv_have_decl___INTEL_COMPILER=yes
4772123e2cc7Smrgelse
4773123e2cc7Smrg  $as_echo "$as_me: failed program was:" >&5
4774123e2cc7Smrgsed 's/^/| /' conftest.$ac_ext >&5
4775123e2cc7Smrg
4776123e2cc7Smrg	ac_cv_have_decl___INTEL_COMPILER=no
4777123e2cc7Smrgfi
4778123e2cc7Smrg
4779123e2cc7Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4780123e2cc7Smrgfi
4781123e2cc7Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
4782123e2cc7Smrg$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
4783123e2cc7Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then
4784123e2cc7Smrg  INTELCC="yes"
4785123e2cc7Smrgelse
4786123e2cc7Smrg  INTELCC="no"
4787123e2cc7Smrgfi
4788123e2cc7Smrg
4789123e2cc7Smrg	if test "x$GCC" = xyes ; then
4790123e2cc7Smrg		STRICT_CFLAGS="-pedantic -Werror"
4791123e2cc7Smrg	elif test "x$SUNCC" = "xyes"; then
4792123e2cc7Smrg		STRICT_CFLAGS="-errwarn"
4793123e2cc7Smrg    elif test "x$INTELCC" = "xyes"; then
4794123e2cc7Smrg		STRICT_CFLAGS="-Werror"
4795123e2cc7Smrg	fi
4796123e2cc7Smrgfi
4797123e2cc7SmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4798123e2cc7Smrg
4799123e2cc7Smrg
4800123e2cc7Smrg
4801123e2cc7Smrg
4802123e2cc7Smrg# Check whether --with-release-version was given.
4803123e2cc7Smrgif test "${with_release_version+set}" = set; then
4804123e2cc7Smrg  withval=$with_release_version; RELEASE_VERSION="$withval"
4805123e2cc7Smrgelse
4806123e2cc7Smrg  RELEASE_VERSION=""
4807123e2cc7Smrgfi
4808123e2cc7Smrg
4809123e2cc7Smrg	if test "x$RELEASE_VERSION" != "x"; then
4810123e2cc7Smrg		PACKAGE="$PACKAGE-$RELEASE_VERSION"
4811123e2cc7Smrg		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
4812123e2cc7Smrg		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
4813123e2cc7Smrg$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
4814123e2cc7Smrg	fi
4815123e2cc7Smrg
4816123e2cc7Smrgcat >>confdefs.h <<_ACEOF
4817123e2cc7Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4818123e2cc7Smrg_ACEOF
4819123e2cc7Smrg
4820123e2cc7Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4821123e2cc7Smrg	if test "x$PVM" = "x"; then
4822123e2cc7Smrg		PVM="0"
4823123e2cc7Smrg	fi
4824123e2cc7Smrg
4825123e2cc7Smrgcat >>confdefs.h <<_ACEOF
4826123e2cc7Smrg#define PACKAGE_VERSION_MINOR $PVM
4827123e2cc7Smrg_ACEOF
4828123e2cc7Smrg
4829123e2cc7Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4830123e2cc7Smrg	if test "x$PVP" = "x"; then
4831123e2cc7Smrg		PVP="0"
4832123e2cc7Smrg	fi
4833123e2cc7Smrg
4834123e2cc7Smrgcat >>confdefs.h <<_ACEOF
4835123e2cc7Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
4836123e2cc7Smrg_ACEOF
4837123e2cc7Smrg
4838123e2cc7Smrg
4839123e2cc7Smrg
4840123e2cc7SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
4841123e2cc7Smrgmv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
4842123e2cc7Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
4843123e2cc7Smrg
4844123e2cc7Smrgdistcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
4845123e2cc7Smrg
4846123e2cc7Smrg
4847123e2cc7Smrg
4848123e2cc7Smrg
4849123e2cc7Smrg
4850123e2cc7Smrgif test x$APP_MAN_SUFFIX = x    ; then
4851123e2cc7Smrg    APP_MAN_SUFFIX=1
4852123e2cc7Smrgfi
4853123e2cc7Smrgif test x$APP_MAN_DIR = x    ; then
4854123e2cc7Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4855123e2cc7Smrgfi
4856123e2cc7Smrg
4857123e2cc7Smrgif test x$LIB_MAN_SUFFIX = x    ; then
4858123e2cc7Smrg    LIB_MAN_SUFFIX=3
4859123e2cc7Smrgfi
4860123e2cc7Smrgif test x$LIB_MAN_DIR = x    ; then
4861123e2cc7Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4862123e2cc7Smrgfi
4863123e2cc7Smrg
4864123e2cc7Smrgif test x$FILE_MAN_SUFFIX = x    ; then
4865123e2cc7Smrg    case $host_os in
4866123e2cc7Smrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
4867123e2cc7Smrg	*)		FILE_MAN_SUFFIX=5  ;;
4868123e2cc7Smrg    esac
4869123e2cc7Smrgfi
4870123e2cc7Smrgif test x$FILE_MAN_DIR = x    ; then
4871123e2cc7Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4872123e2cc7Smrgfi
4873123e2cc7Smrg
4874123e2cc7Smrgif test x$MISC_MAN_SUFFIX = x    ; then
4875123e2cc7Smrg    case $host_os in
4876123e2cc7Smrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
4877123e2cc7Smrg	*)		MISC_MAN_SUFFIX=7  ;;
4878123e2cc7Smrg    esac
4879123e2cc7Smrgfi
4880123e2cc7Smrgif test x$MISC_MAN_DIR = x    ; then
4881123e2cc7Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4882123e2cc7Smrgfi
4883123e2cc7Smrg
4884123e2cc7Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
4885123e2cc7Smrg    case $host_os in
4886123e2cc7Smrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
4887123e2cc7Smrg	*)		DRIVER_MAN_SUFFIX=4  ;;
4888123e2cc7Smrg    esac
4889123e2cc7Smrgfi
4890123e2cc7Smrgif test x$DRIVER_MAN_DIR = x    ; then
4891123e2cc7Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4892123e2cc7Smrgfi
4893123e2cc7Smrg
4894123e2cc7Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
4895123e2cc7Smrg    case $host_os in
4896123e2cc7Smrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
4897123e2cc7Smrg	*)		ADMIN_MAN_SUFFIX=8  ;;
4898123e2cc7Smrg    esac
4899123e2cc7Smrgfi
4900123e2cc7Smrgif test x$ADMIN_MAN_DIR = x    ; then
4901123e2cc7Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4902123e2cc7Smrgfi
4903123e2cc7Smrg
4904123e2cc7Smrg
4905123e2cc7Smrg
4906123e2cc7Smrg
4907123e2cc7Smrg
4908123e2cc7Smrg
4909123e2cc7Smrg
4910123e2cc7Smrg
4911123e2cc7Smrg
4912123e2cc7Smrg
4913123e2cc7Smrg
4914123e2cc7Smrg
4915123e2cc7Smrg
4916123e2cc7Smrg
4917123e2cc7Smrg
4918123e2cc7Smrg
4919123e2cc7Smrg
4920123e2cc7Smrg# Checks for pkg-config packages
4921123e2cc7Smrg
4922123e2cc7Smrg
4923123e2cc7Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4924123e2cc7Smrg	if test -n "$ac_tool_prefix"; then
4925123e2cc7Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4926123e2cc7Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4927123e2cc7Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4928123e2cc7Smrg$as_echo_n "checking for $ac_word... " >&6; }
49297da8b7e3Smrgif test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4930123e2cc7Smrg  $as_echo_n "(cached) " >&6
49317da8b7e3Smrgelse
49327da8b7e3Smrg  case $PKG_CONFIG in
49337da8b7e3Smrg  [\\/]* | ?:[\\/]*)
49347da8b7e3Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
49357da8b7e3Smrg  ;;
49367da8b7e3Smrg  *)
49377da8b7e3Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49387da8b7e3Smrgfor as_dir in $PATH
49397da8b7e3Smrgdo
49407da8b7e3Smrg  IFS=$as_save_IFS
49417da8b7e3Smrg  test -z "$as_dir" && as_dir=.
49427da8b7e3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
4943123e2cc7Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49447da8b7e3Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4945123e2cc7Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49467da8b7e3Smrg    break 2
49477da8b7e3Smrg  fi
49487da8b7e3Smrgdone
49497da8b7e3Smrgdone
4950123e2cc7SmrgIFS=$as_save_IFS
49517da8b7e3Smrg
49527da8b7e3Smrg  ;;
49537da8b7e3Smrgesac
49547da8b7e3Smrgfi
49557da8b7e3SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
49567da8b7e3Smrgif test -n "$PKG_CONFIG"; then
4957123e2cc7Smrg  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4958123e2cc7Smrg$as_echo "$PKG_CONFIG" >&6; }
49597da8b7e3Smrgelse
4960123e2cc7Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
4961123e2cc7Smrg$as_echo "no" >&6; }
49627da8b7e3Smrgfi
49637da8b7e3Smrg
4964123e2cc7Smrg
49657da8b7e3Smrgfi
49667da8b7e3Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
49677da8b7e3Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
49687da8b7e3Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
49697da8b7e3Smrgset dummy pkg-config; ac_word=$2
4970123e2cc7Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4971123e2cc7Smrg$as_echo_n "checking for $ac_word... " >&6; }
49727da8b7e3Smrgif test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4973123e2cc7Smrg  $as_echo_n "(cached) " >&6
49747da8b7e3Smrgelse
49757da8b7e3Smrg  case $ac_pt_PKG_CONFIG in
49767da8b7e3Smrg  [\\/]* | ?:[\\/]*)
49777da8b7e3Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
49787da8b7e3Smrg  ;;
49797da8b7e3Smrg  *)
49807da8b7e3Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49817da8b7e3Smrgfor as_dir in $PATH
49827da8b7e3Smrgdo
49837da8b7e3Smrg  IFS=$as_save_IFS
49847da8b7e3Smrg  test -z "$as_dir" && as_dir=.
49857da8b7e3Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
4986123e2cc7Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49877da8b7e3Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4988123e2cc7Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49897da8b7e3Smrg    break 2
49907da8b7e3Smrg  fi
49917da8b7e3Smrgdone
49927da8b7e3Smrgdone
4993123e2cc7SmrgIFS=$as_save_IFS
49947da8b7e3Smrg
49957da8b7e3Smrg  ;;
49967da8b7e3Smrgesac
49977da8b7e3Smrgfi
49987da8b7e3Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
49997da8b7e3Smrgif test -n "$ac_pt_PKG_CONFIG"; then
5000123e2cc7Smrg  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5001123e2cc7Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
50027da8b7e3Smrgelse
5003123e2cc7Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
5004123e2cc7Smrg$as_echo "no" >&6; }
50057da8b7e3Smrgfi
50067da8b7e3Smrg
5007123e2cc7Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
5008123e2cc7Smrg    PKG_CONFIG=""
5009123e2cc7Smrg  else
5010123e2cc7Smrg    case $cross_compiling:$ac_tool_warned in
5011123e2cc7Smrgyes:)
5012123e2cc7Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5013123e2cc7Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5014123e2cc7Smrgac_tool_warned=yes ;;
5015123e2cc7Smrgesac
5016123e2cc7Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
5017123e2cc7Smrg  fi
50187da8b7e3Smrgelse
50197da8b7e3Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
50207da8b7e3Smrgfi
50217da8b7e3Smrg
50227da8b7e3Smrgfi
50237da8b7e3Smrgif test -n "$PKG_CONFIG"; then
50247da8b7e3Smrg	_pkg_min_version=0.9.0
5025123e2cc7Smrg	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5026123e2cc7Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
50277da8b7e3Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5028123e2cc7Smrg		{ $as_echo "$as_me:$LINENO: result: yes" >&5
5029123e2cc7Smrg$as_echo "yes" >&6; }
50307da8b7e3Smrg	else
5031123e2cc7Smrg		{ $as_echo "$as_me:$LINENO: result: no" >&5
5032123e2cc7Smrg$as_echo "no" >&6; }
50337da8b7e3Smrg		PKG_CONFIG=""
50347da8b7e3Smrg	fi
50357da8b7e3Smrg
50367da8b7e3Smrgfi
50377da8b7e3Smrg
50387da8b7e3Smrgpkg_failed=no
5039123e2cc7Smrg{ $as_echo "$as_me:$LINENO: checking for XREFRESH" >&5
5040123e2cc7Smrg$as_echo_n "checking for XREFRESH... " >&6; }
5041123e2cc7Smrg
5042123e2cc7Smrgif test -n "$XREFRESH_CFLAGS"; then
5043123e2cc7Smrg    pkg_cv_XREFRESH_CFLAGS="$XREFRESH_CFLAGS"
5044123e2cc7Smrg elif test -n "$PKG_CONFIG"; then
5045123e2cc7Smrg    if test -n "$PKG_CONFIG" && \
5046123e2cc7Smrg    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
50477da8b7e3Smrg  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
50487da8b7e3Smrg  ac_status=$?
5049123e2cc7Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50507da8b7e3Smrg  (exit $ac_status); }; then
50517da8b7e3Smrg  pkg_cv_XREFRESH_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
50527da8b7e3Smrgelse
50537da8b7e3Smrg  pkg_failed=yes
50547da8b7e3Smrgfi
5055123e2cc7Smrg else
5056123e2cc7Smrg    pkg_failed=untried
50577da8b7e3Smrgfi
5058123e2cc7Smrgif test -n "$XREFRESH_LIBS"; then
5059123e2cc7Smrg    pkg_cv_XREFRESH_LIBS="$XREFRESH_LIBS"
5060123e2cc7Smrg elif test -n "$PKG_CONFIG"; then
5061123e2cc7Smrg    if test -n "$PKG_CONFIG" && \
5062123e2cc7Smrg    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
50637da8b7e3Smrg  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
50647da8b7e3Smrg  ac_status=$?
5065123e2cc7Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50667da8b7e3Smrg  (exit $ac_status); }; then
50677da8b7e3Smrg  pkg_cv_XREFRESH_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
50687da8b7e3Smrgelse
50697da8b7e3Smrg  pkg_failed=yes
50707da8b7e3Smrgfi
5071123e2cc7Smrg else
5072123e2cc7Smrg    pkg_failed=untried
50737da8b7e3Smrgfi
50747da8b7e3Smrg
50757da8b7e3Smrg
50767da8b7e3Smrg
50777da8b7e3Smrgif test $pkg_failed = yes; then
50787da8b7e3Smrg
50797da8b7e3Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
50807da8b7e3Smrg        _pkg_short_errors_supported=yes
50817da8b7e3Smrgelse
50827da8b7e3Smrg        _pkg_short_errors_supported=no
50837da8b7e3Smrgfi
50847da8b7e3Smrg        if test $_pkg_short_errors_supported = yes; then
5085123e2cc7Smrg	        XREFRESH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
50867da8b7e3Smrg        else
5087123e2cc7Smrg	        XREFRESH_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
50887da8b7e3Smrg        fi
50897da8b7e3Smrg	# Put the nasty error message in config.log where it belongs
50907da8b7e3Smrg	echo "$XREFRESH_PKG_ERRORS" >&5
50917da8b7e3Smrg
5092123e2cc7Smrg	{ { $as_echo "$as_me:$LINENO: error: Package requirements (x11) were not met:
50937da8b7e3Smrg
50947da8b7e3Smrg$XREFRESH_PKG_ERRORS
50957da8b7e3Smrg
50967da8b7e3SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
50977da8b7e3Smrginstalled software in a non-standard prefix.
50987da8b7e3Smrg
50997da8b7e3SmrgAlternatively, you may set the environment variables XREFRESH_CFLAGS
51007da8b7e3Smrgand XREFRESH_LIBS to avoid the need to call pkg-config.
51017da8b7e3SmrgSee the pkg-config man page for more details.
51027da8b7e3Smrg" >&5
5103123e2cc7Smrg$as_echo "$as_me: error: Package requirements (x11) were not met:
51047da8b7e3Smrg
51057da8b7e3Smrg$XREFRESH_PKG_ERRORS
51067da8b7e3Smrg
51077da8b7e3SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
51087da8b7e3Smrginstalled software in a non-standard prefix.
51097da8b7e3Smrg
51107da8b7e3SmrgAlternatively, you may set the environment variables XREFRESH_CFLAGS
51117da8b7e3Smrgand XREFRESH_LIBS to avoid the need to call pkg-config.
51127da8b7e3SmrgSee the pkg-config man page for more details.
51137da8b7e3Smrg" >&2;}
51147da8b7e3Smrg   { (exit 1); exit 1; }; }
51157da8b7e3Smrgelif test $pkg_failed = untried; then
5116123e2cc7Smrg	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5117123e2cc7Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5118123e2cc7Smrg{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
51197da8b7e3Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
51207da8b7e3Smrgpath to pkg-config.
51217da8b7e3Smrg
51227da8b7e3SmrgAlternatively, you may set the environment variables XREFRESH_CFLAGS
51237da8b7e3Smrgand XREFRESH_LIBS to avoid the need to call pkg-config.
51247da8b7e3SmrgSee the pkg-config man page for more details.
51257da8b7e3Smrg
5126123e2cc7SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
51277da8b7e3SmrgSee \`config.log' for more details." >&5
5128123e2cc7Smrg$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
51297da8b7e3Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
51307da8b7e3Smrgpath to pkg-config.
51317da8b7e3Smrg
51327da8b7e3SmrgAlternatively, you may set the environment variables XREFRESH_CFLAGS
51337da8b7e3Smrgand XREFRESH_LIBS to avoid the need to call pkg-config.
51347da8b7e3SmrgSee the pkg-config man page for more details.
51357da8b7e3Smrg
5136123e2cc7SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
51377da8b7e3SmrgSee \`config.log' for more details." >&2;}
5138123e2cc7Smrg   { (exit 1); exit 1; }; }; }
51397da8b7e3Smrgelse
51407da8b7e3Smrg	XREFRESH_CFLAGS=$pkg_cv_XREFRESH_CFLAGS
51417da8b7e3Smrg	XREFRESH_LIBS=$pkg_cv_XREFRESH_LIBS
5142123e2cc7Smrg        { $as_echo "$as_me:$LINENO: result: yes" >&5
5143123e2cc7Smrg$as_echo "yes" >&6; }
51447da8b7e3Smrg	:
51457da8b7e3Smrgfi
51467da8b7e3Smrg
51477da8b7e3Smrg
51487da8b7e3Smrg
5149123e2cc7Smrgac_config_files="$ac_config_files Makefile"
51507da8b7e3Smrg
51517da8b7e3Smrgcat >confcache <<\_ACEOF
51527da8b7e3Smrg# This file is a shell script that caches the results of configure
51537da8b7e3Smrg# tests run on this system so they can be shared between configure
51547da8b7e3Smrg# scripts and configure runs, see configure's option --config-cache.
51557da8b7e3Smrg# It is not useful on other systems.  If it contains results you don't
51567da8b7e3Smrg# want to keep, you may remove or edit it.
51577da8b7e3Smrg#
51587da8b7e3Smrg# config.status only pays attention to the cache file if you give it
51597da8b7e3Smrg# the --recheck option to rerun configure.
51607da8b7e3Smrg#
51617da8b7e3Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
51627da8b7e3Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
51637da8b7e3Smrg# following values.
51647da8b7e3Smrg
51657da8b7e3Smrg_ACEOF
51667da8b7e3Smrg
51677da8b7e3Smrg# The following way of writing the cache mishandles newlines in values,
51687da8b7e3Smrg# but we know of no workaround that is simple, portable, and efficient.
5169123e2cc7Smrg# So, we kill variables containing newlines.
51707da8b7e3Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
51717da8b7e3Smrg# and sets the high bit in the cache file unless we assign to the vars.
5172123e2cc7Smrg(
5173123e2cc7Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5174123e2cc7Smrg    eval ac_val=\$$ac_var
5175123e2cc7Smrg    case $ac_val in #(
5176123e2cc7Smrg    *${as_nl}*)
5177123e2cc7Smrg      case $ac_var in #(
5178123e2cc7Smrg      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
5179123e2cc7Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5180123e2cc7Smrg      esac
5181123e2cc7Smrg      case $ac_var in #(
5182123e2cc7Smrg      _ | IFS | as_nl) ;; #(
5183123e2cc7Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5184123e2cc7Smrg      *) $as_unset $ac_var ;;
5185123e2cc7Smrg      esac ;;
5186123e2cc7Smrg    esac
5187123e2cc7Smrg  done
5188123e2cc7Smrg
51897da8b7e3Smrg  (set) 2>&1 |
5190123e2cc7Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
5191123e2cc7Smrg    *${as_nl}ac_space=\ *)
51927da8b7e3Smrg      # `set' does not quote correctly, so add quotes (double-quote
51937da8b7e3Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \).
51947da8b7e3Smrg      sed -n \
51957da8b7e3Smrg	"s/'/'\\\\''/g;
51967da8b7e3Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5197123e2cc7Smrg      ;; #(
51987da8b7e3Smrg    *)
51997da8b7e3Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
5200123e2cc7Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
52017da8b7e3Smrg      ;;
5202123e2cc7Smrg    esac |
5203123e2cc7Smrg    sort
5204123e2cc7Smrg) |
52057da8b7e3Smrg  sed '
5206123e2cc7Smrg     /^ac_cv_env_/b end
52077da8b7e3Smrg     t clear
5208123e2cc7Smrg     :clear
52097da8b7e3Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
52107da8b7e3Smrg     t end
5211123e2cc7Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5212123e2cc7Smrg     :end' >>confcache
5213123e2cc7Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5214123e2cc7Smrg  if test -w "$cache_file"; then
5215123e2cc7Smrg    test "x$cache_file" != "x/dev/null" &&
5216123e2cc7Smrg      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
5217123e2cc7Smrg$as_echo "$as_me: updating cache $cache_file" >&6;}
52187da8b7e3Smrg    cat confcache >$cache_file
52197da8b7e3Smrg  else
5220123e2cc7Smrg    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5221123e2cc7Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
52227da8b7e3Smrg  fi
52237da8b7e3Smrgfi
52247da8b7e3Smrgrm -f confcache
52257da8b7e3Smrg
52267da8b7e3Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
52277da8b7e3Smrg# Let make expand exec_prefix.
52287da8b7e3Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
52297da8b7e3Smrg
52307da8b7e3SmrgDEFS=-DHAVE_CONFIG_H
52317da8b7e3Smrg
52327da8b7e3Smrgac_libobjs=
52337da8b7e3Smrgac_ltlibobjs=
52347da8b7e3Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
52357da8b7e3Smrg  # 1. Remove the extension, and $U if already installed.
5236123e2cc7Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5237123e2cc7Smrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5238123e2cc7Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5239123e2cc7Smrg  #    will be set to the directory where LIBOBJS objects are built.
5240123e2cc7Smrg  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5241123e2cc7Smrg  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
52427da8b7e3Smrgdone
52437da8b7e3SmrgLIBOBJS=$ac_libobjs
52447da8b7e3Smrg
52457da8b7e3SmrgLTLIBOBJS=$ac_ltlibobjs
52467da8b7e3Smrg
52477da8b7e3Smrg
5248123e2cc7Smrg if test -n "$EXEEXT"; then
5249123e2cc7Smrg  am__EXEEXT_TRUE=
5250123e2cc7Smrg  am__EXEEXT_FALSE='#'
5251123e2cc7Smrgelse
5252123e2cc7Smrg  am__EXEEXT_TRUE='#'
5253123e2cc7Smrg  am__EXEEXT_FALSE=
5254123e2cc7Smrgfi
5255123e2cc7Smrg
52567da8b7e3Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5257123e2cc7Smrg  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
52587da8b7e3SmrgUsually this means the macro was only invoked conditionally." >&5
5259123e2cc7Smrg$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
52607da8b7e3SmrgUsually this means the macro was only invoked conditionally." >&2;}
52617da8b7e3Smrg   { (exit 1); exit 1; }; }
52627da8b7e3Smrgfi
52637da8b7e3Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5264123e2cc7Smrg  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
52657da8b7e3SmrgUsually this means the macro was only invoked conditionally." >&5
5266123e2cc7Smrg$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
52677da8b7e3SmrgUsually this means the macro was only invoked conditionally." >&2;}
52687da8b7e3Smrg   { (exit 1); exit 1; }; }
52697da8b7e3Smrgfi
52707da8b7e3Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5271123e2cc7Smrg  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
52727da8b7e3SmrgUsually this means the macro was only invoked conditionally." >&5
5273123e2cc7Smrg$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
52747da8b7e3SmrgUsually this means the macro was only invoked conditionally." >&2;}
52757da8b7e3Smrg   { (exit 1); exit 1; }; }
52767da8b7e3Smrgfi
52777da8b7e3Smrg
52787da8b7e3Smrg: ${CONFIG_STATUS=./config.status}
5279123e2cc7Smrgac_write_fail=0
52807da8b7e3Smrgac_clean_files_save=$ac_clean_files
52817da8b7e3Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
5282123e2cc7Smrg{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5283123e2cc7Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5284123e2cc7Smrgcat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52857da8b7e3Smrg#! $SHELL
52867da8b7e3Smrg# Generated by $as_me.
52877da8b7e3Smrg# Run this file to recreate the current configuration.
52887da8b7e3Smrg# Compiler output produced by configure, useful for debugging
52897da8b7e3Smrg# configure, is in config.log if it exists.
52907da8b7e3Smrg
52917da8b7e3Smrgdebug=false
52927da8b7e3Smrgac_cs_recheck=false
52937da8b7e3Smrgac_cs_silent=false
52947da8b7e3SmrgSHELL=\${CONFIG_SHELL-$SHELL}
52957da8b7e3Smrg_ACEOF
52967da8b7e3Smrg
5297123e2cc7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52987da8b7e3Smrg## --------------------- ##
52997da8b7e3Smrg## M4sh Initialization.  ##
53007da8b7e3Smrg## --------------------- ##
53017da8b7e3Smrg
5302123e2cc7Smrg# Be more Bourne compatible
5303123e2cc7SmrgDUALCASE=1; export DUALCASE # for MKS sh
53047da8b7e3Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53057da8b7e3Smrg  emulate sh
53067da8b7e3Smrg  NULLCMD=:
5307123e2cc7Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
53087da8b7e3Smrg  # is contrary to our usage.  Disable this feature.
53097da8b7e3Smrg  alias -g '${1+"$@"}'='"$@"'
5310123e2cc7Smrg  setopt NO_GLOB_SUBST
5311123e2cc7Smrgelse
5312123e2cc7Smrg  case `(set -o) 2>/dev/null` in
5313123e2cc7Smrg  *posix*) set -o posix ;;
5314123e2cc7Smrgesac
5315123e2cc7Smrg
5316123e2cc7Smrgfi
5317123e2cc7Smrg
5318123e2cc7Smrg
5319123e2cc7Smrg
5320123e2cc7Smrg
5321123e2cc7Smrg# PATH needs CR
5322123e2cc7Smrg# Avoid depending upon Character Ranges.
5323123e2cc7Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
5324123e2cc7Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5325123e2cc7Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
5326123e2cc7Smrgas_cr_digits='0123456789'
5327123e2cc7Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
5328123e2cc7Smrg
5329123e2cc7Smrgas_nl='
5330123e2cc7Smrg'
5331123e2cc7Smrgexport as_nl
5332123e2cc7Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
5333123e2cc7Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5334123e2cc7Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5335123e2cc7Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5336123e2cc7Smrgif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5337123e2cc7Smrg  as_echo='printf %s\n'
5338123e2cc7Smrg  as_echo_n='printf %s'
5339123e2cc7Smrgelse
5340123e2cc7Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5341123e2cc7Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5342123e2cc7Smrg    as_echo_n='/usr/ucb/echo -n'
5343123e2cc7Smrg  else
5344123e2cc7Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5345123e2cc7Smrg    as_echo_n_body='eval
5346123e2cc7Smrg      arg=$1;
5347123e2cc7Smrg      case $arg in
5348123e2cc7Smrg      *"$as_nl"*)
5349123e2cc7Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
5350123e2cc7Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5351123e2cc7Smrg      esac;
5352123e2cc7Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5353123e2cc7Smrg    '
5354123e2cc7Smrg    export as_echo_n_body
5355123e2cc7Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
5356123e2cc7Smrg  fi
5357123e2cc7Smrg  export as_echo_body
5358123e2cc7Smrg  as_echo='sh -c $as_echo_body as_echo'
5359123e2cc7Smrgfi
5360123e2cc7Smrg
5361123e2cc7Smrg# The user is always right.
5362123e2cc7Smrgif test "${PATH_SEPARATOR+set}" != set; then
5363123e2cc7Smrg  PATH_SEPARATOR=:
5364123e2cc7Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5365123e2cc7Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5366123e2cc7Smrg      PATH_SEPARATOR=';'
5367123e2cc7Smrg  }
53687da8b7e3Smrgfi
53697da8b7e3Smrg
53707da8b7e3Smrg# Support unset when possible.
53717da8b7e3Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53727da8b7e3Smrg  as_unset=unset
53737da8b7e3Smrgelse
53747da8b7e3Smrg  as_unset=false
53757da8b7e3Smrgfi
53767da8b7e3Smrg
53777da8b7e3Smrg
5378123e2cc7Smrg# IFS
5379123e2cc7Smrg# We need space, tab and new line, in precisely that order.  Quoting is
5380123e2cc7Smrg# there to prevent editors from complaining about space-tab.
5381123e2cc7Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5382123e2cc7Smrg# splitting by setting IFS to empty value.)
5383123e2cc7SmrgIFS=" ""	$as_nl"
5384123e2cc7Smrg
5385123e2cc7Smrg# Find who we are.  Look in the path if we contain no directory separator.
5386123e2cc7Smrgcase $0 in
5387123e2cc7Smrg  *[\\/]* ) as_myself=$0 ;;
5388123e2cc7Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389123e2cc7Smrgfor as_dir in $PATH
5390123e2cc7Smrgdo
5391123e2cc7Smrg  IFS=$as_save_IFS
5392123e2cc7Smrg  test -z "$as_dir" && as_dir=.
5393123e2cc7Smrg  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5394123e2cc7Smrgdone
5395123e2cc7SmrgIFS=$as_save_IFS
5396123e2cc7Smrg
5397123e2cc7Smrg     ;;
5398123e2cc7Smrgesac
5399123e2cc7Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
5400123e2cc7Smrg# in which case we are not to be found in the path.
5401123e2cc7Smrgif test "x$as_myself" = x; then
5402123e2cc7Smrg  as_myself=$0
5403123e2cc7Smrgfi
5404123e2cc7Smrgif test ! -f "$as_myself"; then
5405123e2cc7Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5406123e2cc7Smrg  { (exit 1); exit 1; }
5407123e2cc7Smrgfi
5408123e2cc7Smrg
54097da8b7e3Smrg# Work around bugs in pre-3.0 UWIN ksh.
5410123e2cc7Smrgfor as_var in ENV MAIL MAILPATH
5411123e2cc7Smrgdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5412123e2cc7Smrgdone
54137da8b7e3SmrgPS1='$ '
54147da8b7e3SmrgPS2='> '
54157da8b7e3SmrgPS4='+ '
54167da8b7e3Smrg
54177da8b7e3Smrg# NLS nuisances.
5418123e2cc7SmrgLC_ALL=C
5419123e2cc7Smrgexport LC_ALL
5420123e2cc7SmrgLANGUAGE=C
5421123e2cc7Smrgexport LANGUAGE
54227da8b7e3Smrg
54237da8b7e3Smrg# Required to use basename.
5424123e2cc7Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
5425123e2cc7Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
54267da8b7e3Smrg  as_expr=expr
54277da8b7e3Smrgelse
54287da8b7e3Smrg  as_expr=false
54297da8b7e3Smrgfi
54307da8b7e3Smrg
5431123e2cc7Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
54327da8b7e3Smrg  as_basename=basename
54337da8b7e3Smrgelse
54347da8b7e3Smrg  as_basename=false
54357da8b7e3Smrgfi
54367da8b7e3Smrg
54377da8b7e3Smrg
54387da8b7e3Smrg# Name of the executable.
5439123e2cc7Smrgas_me=`$as_basename -- "$0" ||
54407da8b7e3Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
54417da8b7e3Smrg	 X"$0" : 'X\(//\)$' \| \
5442123e2cc7Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5443123e2cc7Smrg$as_echo X/"$0" |
5444123e2cc7Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
5445123e2cc7Smrg	    s//\1/
5446123e2cc7Smrg	    q
5447123e2cc7Smrg	  }
5448123e2cc7Smrg	  /^X\/\(\/\/\)$/{
5449123e2cc7Smrg	    s//\1/
5450123e2cc7Smrg	    q
5451123e2cc7Smrg	  }
5452123e2cc7Smrg	  /^X\/\(\/\).*/{
5453123e2cc7Smrg	    s//\1/
5454123e2cc7Smrg	    q
5455123e2cc7Smrg	  }
5456123e2cc7Smrg	  s/.*/./; q'`
54577da8b7e3Smrg
5458123e2cc7Smrg# CDPATH.
5459123e2cc7Smrg$as_unset CDPATH
54607da8b7e3Smrg
54617da8b7e3Smrg
54627da8b7e3Smrg
54637da8b7e3Smrg  as_lineno_1=$LINENO
54647da8b7e3Smrg  as_lineno_2=$LINENO
54657da8b7e3Smrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
5466123e2cc7Smrg  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
54677da8b7e3Smrg
54687da8b7e3Smrg  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
54697da8b7e3Smrg  # uniformly replaced by the line number.  The first 'sed' inserts a
5470123e2cc7Smrg  # line-number line after each line using $LINENO; the second 'sed'
5471123e2cc7Smrg  # does the real work.  The second script uses 'N' to pair each
5472123e2cc7Smrg  # line-number line with the line containing $LINENO, and appends
5473123e2cc7Smrg  # trailing '-' during substitution so that $LINENO is not a special
5474123e2cc7Smrg  # case at line end.
54757da8b7e3Smrg  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5476123e2cc7Smrg  # scripts with optimization help from Paolo Bonzini.  Blame Lee
5477123e2cc7Smrg  # E. McMahon (1931-1989) for sed's syntax.  :-)
5478123e2cc7Smrg  sed -n '
5479123e2cc7Smrg    p
5480123e2cc7Smrg    /[$]LINENO/=
5481123e2cc7Smrg  ' <$as_myself |
54827da8b7e3Smrg    sed '
5483123e2cc7Smrg      s/[$]LINENO.*/&-/
5484123e2cc7Smrg      t lineno
5485123e2cc7Smrg      b
5486123e2cc7Smrg      :lineno
54877da8b7e3Smrg      N
5488123e2cc7Smrg      :loop
5489123e2cc7Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
54907da8b7e3Smrg      t loop
5491123e2cc7Smrg      s/-\n.*//
54927da8b7e3Smrg    ' >$as_me.lineno &&
5493123e2cc7Smrg  chmod +x "$as_me.lineno" ||
5494123e2cc7Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
54957da8b7e3Smrg   { (exit 1); exit 1; }; }
54967da8b7e3Smrg
54977da8b7e3Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
54987da8b7e3Smrg  # (the dirname of $[0] is not the place where we might find the
5499123e2cc7Smrg  # original and so on.  Autoconf is especially sensitive to this).
5500123e2cc7Smrg  . "./$as_me.lineno"
55017da8b7e3Smrg  # Exit status is that of the last command.
55027da8b7e3Smrg  exit
55037da8b7e3Smrg}
55047da8b7e3Smrg
55057da8b7e3Smrg
5506123e2cc7Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5507123e2cc7Smrg  as_dirname=dirname
5508123e2cc7Smrgelse
5509123e2cc7Smrg  as_dirname=false
5510123e2cc7Smrgfi
55117da8b7e3Smrg
5512123e2cc7SmrgECHO_C= ECHO_N= ECHO_T=
5513123e2cc7Smrgcase `echo -n x` in
5514123e2cc7Smrg-n*)
5515123e2cc7Smrg  case `echo 'x\c'` in
5516123e2cc7Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5517123e2cc7Smrg  *)   ECHO_C='\c';;
5518123e2cc7Smrg  esac;;
5519123e2cc7Smrg*)
5520123e2cc7Smrg  ECHO_N='-n';;
5521123e2cc7Smrgesac
5522123e2cc7Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
5523123e2cc7Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
55247da8b7e3Smrg  as_expr=expr
55257da8b7e3Smrgelse
55267da8b7e3Smrg  as_expr=false
55277da8b7e3Smrgfi
55287da8b7e3Smrg
55297da8b7e3Smrgrm -f conf$$ conf$$.exe conf$$.file
5530123e2cc7Smrgif test -d conf$$.dir; then
5531123e2cc7Smrg  rm -f conf$$.dir/conf$$.file
5532123e2cc7Smrgelse
5533123e2cc7Smrg  rm -f conf$$.dir
5534123e2cc7Smrg  mkdir conf$$.dir 2>/dev/null
5535123e2cc7Smrgfi
5536123e2cc7Smrgif (echo >conf$$.file) 2>/dev/null; then
5537123e2cc7Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
55387da8b7e3Smrg    as_ln_s='ln -s'
5539123e2cc7Smrg    # ... but there are two gotchas:
5540123e2cc7Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5541123e2cc7Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5542123e2cc7Smrg    # In both cases, we have to default to `cp -p'.
5543123e2cc7Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5544123e2cc7Smrg      as_ln_s='cp -p'
5545123e2cc7Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
5546123e2cc7Smrg    as_ln_s=ln
5547123e2cc7Smrg  else
5548123e2cc7Smrg    as_ln_s='cp -p'
55497da8b7e3Smrg  fi
55507da8b7e3Smrgelse
55517da8b7e3Smrg  as_ln_s='cp -p'
55527da8b7e3Smrgfi
5553123e2cc7Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5554123e2cc7Smrgrmdir conf$$.dir 2>/dev/null
55557da8b7e3Smrg
55567da8b7e3Smrgif mkdir -p . 2>/dev/null; then
55577da8b7e3Smrg  as_mkdir_p=:
55587da8b7e3Smrgelse
55597da8b7e3Smrg  test -d ./-p && rmdir ./-p
55607da8b7e3Smrg  as_mkdir_p=false
55617da8b7e3Smrgfi
55627da8b7e3Smrg
5563123e2cc7Smrgif test -x / >/dev/null 2>&1; then
5564123e2cc7Smrg  as_test_x='test -x'
5565123e2cc7Smrgelse
5566123e2cc7Smrg  if ls -dL / >/dev/null 2>&1; then
5567123e2cc7Smrg    as_ls_L_option=L
5568123e2cc7Smrg  else
5569123e2cc7Smrg    as_ls_L_option=
5570123e2cc7Smrg  fi
5571123e2cc7Smrg  as_test_x='
5572123e2cc7Smrg    eval sh -c '\''
5573123e2cc7Smrg      if test -d "$1"; then
5574123e2cc7Smrg	test -d "$1/.";
5575123e2cc7Smrg      else
5576123e2cc7Smrg	case $1 in
5577123e2cc7Smrg	-*)set "./$1";;
5578123e2cc7Smrg	esac;
5579123e2cc7Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5580123e2cc7Smrg	???[sx]*):;;*)false;;esac;fi
5581123e2cc7Smrg    '\'' sh
5582123e2cc7Smrg  '
5583123e2cc7Smrgfi
5584123e2cc7Smrgas_executable_p=$as_test_x
55857da8b7e3Smrg
55867da8b7e3Smrg# Sed expression to map a string onto a valid CPP name.
55877da8b7e3Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
55887da8b7e3Smrg
55897da8b7e3Smrg# Sed expression to map a string onto a valid variable name.
55907da8b7e3Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
55917da8b7e3Smrg
55927da8b7e3Smrg
55937da8b7e3Smrgexec 6>&1
55947da8b7e3Smrg
5595123e2cc7Smrg# Save the log message, to keep $[0] and so on meaningful, and to
55967da8b7e3Smrg# report actual input values of CONFIG_FILES etc. instead of their
5597123e2cc7Smrg# values after options handling.
5598123e2cc7Smrgac_log="
5599123e2cc7SmrgThis file was extended by xrefresh $as_me 1.0.3, which was
5600123e2cc7Smrggenerated by GNU Autoconf 2.63.  Invocation command line was
56017da8b7e3Smrg
56027da8b7e3Smrg  CONFIG_FILES    = $CONFIG_FILES
56037da8b7e3Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
56047da8b7e3Smrg  CONFIG_LINKS    = $CONFIG_LINKS
56057da8b7e3Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
56067da8b7e3Smrg  $ $0 $@
56077da8b7e3Smrg
5608123e2cc7Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
5609123e2cc7Smrg"
5610123e2cc7Smrg
56117da8b7e3Smrg_ACEOF
56127da8b7e3Smrg
5613123e2cc7Smrgcase $ac_config_files in *"
5614123e2cc7Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
5615123e2cc7Smrgesac
56167da8b7e3Smrg
5617123e2cc7Smrgcase $ac_config_headers in *"
5618123e2cc7Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5619123e2cc7Smrgesac
56207da8b7e3Smrg
56217da8b7e3Smrg
5622123e2cc7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5623123e2cc7Smrg# Files that config.status was made for.
5624123e2cc7Smrgconfig_files="$ac_config_files"
5625123e2cc7Smrgconfig_headers="$ac_config_headers"
5626123e2cc7Smrgconfig_commands="$ac_config_commands"
56277da8b7e3Smrg
5628123e2cc7Smrg_ACEOF
56297da8b7e3Smrg
5630123e2cc7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
56317da8b7e3Smrgac_cs_usage="\
56327da8b7e3Smrg\`$as_me' instantiates files from templates according to the
56337da8b7e3Smrgcurrent configuration.
56347da8b7e3Smrg
5635123e2cc7SmrgUsage: $0 [OPTION]... [FILE]...
56367da8b7e3Smrg
56377da8b7e3Smrg  -h, --help       print this help, then exit
5638123e2cc7Smrg  -V, --version    print version number and configuration settings, then exit
5639123e2cc7Smrg  -q, --quiet, --silent
5640123e2cc7Smrg                   do not print progress messages
56417da8b7e3Smrg  -d, --debug      don't remove temporary files
56427da8b7e3Smrg      --recheck    update $as_me by reconfiguring in the same conditions
5643123e2cc7Smrg      --file=FILE[:TEMPLATE]
5644123e2cc7Smrg                   instantiate the configuration file FILE
5645123e2cc7Smrg      --header=FILE[:TEMPLATE]
5646123e2cc7Smrg                   instantiate the configuration header FILE
56477da8b7e3Smrg
56487da8b7e3SmrgConfiguration files:
56497da8b7e3Smrg$config_files
56507da8b7e3Smrg
56517da8b7e3SmrgConfiguration headers:
56527da8b7e3Smrg$config_headers
56537da8b7e3Smrg
56547da8b7e3SmrgConfiguration commands:
56557da8b7e3Smrg$config_commands
56567da8b7e3Smrg
56577da8b7e3SmrgReport bugs to <bug-autoconf@gnu.org>."
56587da8b7e3Smrg
5659123e2cc7Smrg_ACEOF
5660123e2cc7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
56617da8b7e3Smrgac_cs_version="\\
5662123e2cc7Smrgxrefresh config.status 1.0.3
5663123e2cc7Smrgconfigured by $0, generated by GNU Autoconf 2.63,
5664123e2cc7Smrg  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
56657da8b7e3Smrg
5666123e2cc7SmrgCopyright (C) 2008 Free Software Foundation, Inc.
56677da8b7e3SmrgThis config.status script is free software; the Free Software Foundation
56687da8b7e3Smrggives unlimited permission to copy, distribute and modify it."
5669123e2cc7Smrg
5670123e2cc7Smrgac_pwd='$ac_pwd'
5671123e2cc7Smrgsrcdir='$srcdir'
5672123e2cc7SmrgINSTALL='$INSTALL'
5673123e2cc7SmrgMKDIR_P='$MKDIR_P'
5674123e2cc7SmrgAWK='$AWK'
5675123e2cc7Smrgtest -n "\$AWK" || AWK=awk
56767da8b7e3Smrg_ACEOF
56777da8b7e3Smrg
5678123e2cc7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5679123e2cc7Smrg# The default lists apply if the user does not specify any file.
56807da8b7e3Smrgac_need_defaults=:
56817da8b7e3Smrgwhile test $# != 0
56827da8b7e3Smrgdo
56837da8b7e3Smrg  case $1 in
56847da8b7e3Smrg  --*=*)
5685123e2cc7Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5686123e2cc7Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
56877da8b7e3Smrg    ac_shift=:
56887da8b7e3Smrg    ;;
5689123e2cc7Smrg  *)
56907da8b7e3Smrg    ac_option=$1
56917da8b7e3Smrg    ac_optarg=$2
56927da8b7e3Smrg    ac_shift=shift
56937da8b7e3Smrg    ;;
56947da8b7e3Smrg  esac
56957da8b7e3Smrg
56967da8b7e3Smrg  case $ac_option in
56977da8b7e3Smrg  # Handling of the options.
56987da8b7e3Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
56997da8b7e3Smrg    ac_cs_recheck=: ;;
5700123e2cc7Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5701123e2cc7Smrg    $as_echo "$ac_cs_version"; exit ;;
5702123e2cc7Smrg  --debug | --debu | --deb | --de | --d | -d )
57037da8b7e3Smrg    debug=: ;;
57047da8b7e3Smrg  --file | --fil | --fi | --f )
57057da8b7e3Smrg    $ac_shift
5706123e2cc7Smrg    case $ac_optarg in
5707123e2cc7Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5708123e2cc7Smrg    esac
5709123e2cc7Smrg    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
57107da8b7e3Smrg    ac_need_defaults=false;;
57117da8b7e3Smrg  --header | --heade | --head | --hea )
57127da8b7e3Smrg    $ac_shift
5713123e2cc7Smrg    case $ac_optarg in
5714123e2cc7Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5715123e2cc7Smrg    esac
5716123e2cc7Smrg    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
57177da8b7e3Smrg    ac_need_defaults=false;;
5718123e2cc7Smrg  --he | --h)
5719123e2cc7Smrg    # Conflict between --help and --header
5720123e2cc7Smrg    { $as_echo "$as_me: error: ambiguous option: $1
5721123e2cc7SmrgTry \`$0 --help' for more information." >&2
5722123e2cc7Smrg   { (exit 1); exit 1; }; };;
5723123e2cc7Smrg  --help | --hel | -h )
5724123e2cc7Smrg    $as_echo "$ac_cs_usage"; exit ;;
57257da8b7e3Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
57267da8b7e3Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
57277da8b7e3Smrg    ac_cs_silent=: ;;
57287da8b7e3Smrg
57297da8b7e3Smrg  # This is an error.
5730123e2cc7Smrg  -*) { $as_echo "$as_me: error: unrecognized option: $1
5731123e2cc7SmrgTry \`$0 --help' for more information." >&2
57327da8b7e3Smrg   { (exit 1); exit 1; }; } ;;
57337da8b7e3Smrg
5734123e2cc7Smrg  *) ac_config_targets="$ac_config_targets $1"
5735123e2cc7Smrg     ac_need_defaults=false ;;
57367da8b7e3Smrg
57377da8b7e3Smrg  esac
57387da8b7e3Smrg  shift
57397da8b7e3Smrgdone
57407da8b7e3Smrg
57417da8b7e3Smrgac_configure_extra_args=
57427da8b7e3Smrg
57437da8b7e3Smrgif $ac_cs_silent; then
57447da8b7e3Smrg  exec 6>/dev/null
57457da8b7e3Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
57467da8b7e3Smrgfi
57477da8b7e3Smrg
57487da8b7e3Smrg_ACEOF
5749123e2cc7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57507da8b7e3Smrgif \$ac_cs_recheck; then
5751123e2cc7Smrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5752123e2cc7Smrg  shift
5753123e2cc7Smrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5754123e2cc7Smrg  CONFIG_SHELL='$SHELL'
5755123e2cc7Smrg  export CONFIG_SHELL
5756123e2cc7Smrg  exec "\$@"
57577da8b7e3Smrgfi
57587da8b7e3Smrg
57597da8b7e3Smrg_ACEOF
5760123e2cc7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5761123e2cc7Smrgexec 5>>config.log
5762123e2cc7Smrg{
5763123e2cc7Smrg  echo
5764123e2cc7Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5765123e2cc7Smrg## Running $as_me. ##
5766123e2cc7Smrg_ASBOX
5767123e2cc7Smrg  $as_echo "$ac_log"
5768123e2cc7Smrg} >&5
57697da8b7e3Smrg
5770123e2cc7Smrg_ACEOF
5771123e2cc7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57727da8b7e3Smrg#
5773123e2cc7Smrg# INIT-COMMANDS
57747da8b7e3Smrg#
57757da8b7e3SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
57767da8b7e3Smrg
57777da8b7e3Smrg_ACEOF
57787da8b7e3Smrg
5779123e2cc7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57807da8b7e3Smrg
5781123e2cc7Smrg# Handling of arguments.
57827da8b7e3Smrgfor ac_config_target in $ac_config_targets
57837da8b7e3Smrgdo
5784123e2cc7Smrg  case $ac_config_target in
5785123e2cc7Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5786123e2cc7Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5787123e2cc7Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5788123e2cc7Smrg
5789123e2cc7Smrg  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5790123e2cc7Smrg$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
57917da8b7e3Smrg   { (exit 1); exit 1; }; };;
57927da8b7e3Smrg  esac
57937da8b7e3Smrgdone
57947da8b7e3Smrg
5795123e2cc7Smrg
57967da8b7e3Smrg# If the user did not use the arguments to specify the items to instantiate,
57977da8b7e3Smrg# then the envvar interface is used.  Set only those that are not.
57987da8b7e3Smrg# We use the long form for the default assignment because of an extremely
57997da8b7e3Smrg# bizarre bug on SunOS 4.1.3.
58007da8b7e3Smrgif $ac_need_defaults; then
58017da8b7e3Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
58027da8b7e3Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
58037da8b7e3Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
58047da8b7e3Smrgfi
58057da8b7e3Smrg
58067da8b7e3Smrg# Have a temporary directory for convenience.  Make it in the build tree
5807123e2cc7Smrg# simply because there is no reason against having it here, and in addition,
58087da8b7e3Smrg# creating and moving files from /tmp can sometimes cause problems.
5809123e2cc7Smrg# Hook for its removal unless debugging.
5810123e2cc7Smrg# Note that there is a small window in which the directory will not be cleaned:
5811123e2cc7Smrg# after its creation but before its name has been assigned to `$tmp'.
58127da8b7e3Smrg$debug ||
58137da8b7e3Smrg{
5814123e2cc7Smrg  tmp=
5815123e2cc7Smrg  trap 'exit_status=$?
5816123e2cc7Smrg  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5817123e2cc7Smrg' 0
58187da8b7e3Smrg  trap '{ (exit 1); exit 1; }' 1 2 13 15
58197da8b7e3Smrg}
58207da8b7e3Smrg# Create a (secure) tmp directory for tmp files.
58217da8b7e3Smrg
58227da8b7e3Smrg{
5823123e2cc7Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
58247da8b7e3Smrg  test -n "$tmp" && test -d "$tmp"
58257da8b7e3Smrg}  ||
58267da8b7e3Smrg{
5827123e2cc7Smrg  tmp=./conf$$-$RANDOM
5828123e2cc7Smrg  (umask 077 && mkdir "$tmp")
58297da8b7e3Smrg} ||
58307da8b7e3Smrg{
5831123e2cc7Smrg   $as_echo "$as_me: cannot create a temporary directory in ." >&2
58327da8b7e3Smrg   { (exit 1); exit 1; }
58337da8b7e3Smrg}
58347da8b7e3Smrg
5835123e2cc7Smrg# Set up the scripts for CONFIG_FILES section.
5836123e2cc7Smrg# No need to generate them if there are no CONFIG_FILES.
5837123e2cc7Smrg# This happens for instance with `./config.status config.h'.
5838123e2cc7Smrgif test -n "$CONFIG_FILES"; then
5839123e2cc7Smrg
5840123e2cc7Smrg
5841123e2cc7Smrgac_cr='
5842123e2cc7Smrg'
5843123e2cc7Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5844123e2cc7Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5845123e2cc7Smrg  ac_cs_awk_cr='\\r'
5846123e2cc7Smrgelse
5847123e2cc7Smrg  ac_cs_awk_cr=$ac_cr
5848123e2cc7Smrgfi
5849123e2cc7Smrg
58507da8b7e3Smrgecho 'BEGIN {' >"$tmp/subs1.awk" &&
58517da8b7e3Smrg_ACEOF
58527da8b7e3Smrg
5853123e2cc7Smrg
5854123e2cc7Smrg{
5855123e2cc7Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
5856123e2cc7Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5857123e2cc7Smrg  echo "_ACEOF"
5858123e2cc7Smrg} >conf$$subs.sh ||
5859123e2cc7Smrg  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5860123e2cc7Smrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5861123e2cc7Smrg   { (exit 1); exit 1; }; }
5862123e2cc7Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5863123e2cc7Smrgac_delim='%!_!# '
5864123e2cc7Smrgfor ac_last_try in false false false false false :; do
5865123e2cc7Smrg  . ./conf$$subs.sh ||
5866123e2cc7Smrg    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5867123e2cc7Smrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
58687da8b7e3Smrg   { (exit 1); exit 1; }; }
5869123e2cc7Smrg
5870123e2cc7Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5871123e2cc7Smrg  if test $ac_delim_n = $ac_delim_num; then
5872123e2cc7Smrg    break
5873123e2cc7Smrg  elif $ac_last_try; then
5874123e2cc7Smrg    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5875123e2cc7Smrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5876123e2cc7Smrg   { (exit 1); exit 1; }; }
5877123e2cc7Smrg  else
5878123e2cc7Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5879123e2cc7Smrg  fi
5880123e2cc7Smrgdone
58817da8b7e3Smrgrm -f conf$$subs.sh
5882123e2cc7Smrg
5883123e2cc7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
58847da8b7e3Smrgcat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5885123e2cc7Smrg_ACEOF
5886123e2cc7Smrgsed -n '
5887123e2cc7Smrgh
5888123e2cc7Smrgs/^/S["/; s/!.*/"]=/
5889123e2cc7Smrgp
5890123e2cc7Smrgg
5891123e2cc7Smrgs/^[^!]*!//
5892123e2cc7Smrg:repl
5893123e2cc7Smrgt repl
5894123e2cc7Smrgs/'"$ac_delim"'$//
5895123e2cc7Smrgt delim
5896123e2cc7Smrg:nl
5897123e2cc7Smrgh
5898123e2cc7Smrgs/\(.\{148\}\).*/\1/
5899123e2cc7Smrgt more1
5900123e2cc7Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5901123e2cc7Smrgp
5902123e2cc7Smrgn
5903123e2cc7Smrgb repl
5904123e2cc7Smrg:more1
5905123e2cc7Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
5906123e2cc7Smrgp
5907123e2cc7Smrgg
5908123e2cc7Smrgs/.\{148\}//
5909123e2cc7Smrgt nl
5910123e2cc7Smrg:delim
5911123e2cc7Smrgh
5912123e2cc7Smrgs/\(.\{148\}\).*/\1/
5913123e2cc7Smrgt more2
5914123e2cc7Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
5915123e2cc7Smrgp
5916123e2cc7Smrgb
5917123e2cc7Smrg:more2
5918123e2cc7Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
5919123e2cc7Smrgp
5920123e2cc7Smrgg
5921123e2cc7Smrgs/.\{148\}//
5922123e2cc7Smrgt delim
5923123e2cc7Smrg' <conf$$subs.awk | sed '
5924123e2cc7Smrg/^[^""]/{
5925123e2cc7Smrg  N
5926123e2cc7Smrg  s/\n//
5927123e2cc7Smrg}
5928123e2cc7Smrg' >>$CONFIG_STATUS || ac_write_fail=1
5929123e2cc7Smrgrm -f conf$$subs.awk
5930123e2cc7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5931123e2cc7Smrg_ACAWK
5932123e2cc7Smrgcat >>"\$tmp/subs1.awk" <<_ACAWK &&
5933123e2cc7Smrg  for (key in S) S_is_set[key] = 1
59347da8b7e3Smrg  FS = ""
5935123e2cc7Smrg
5936123e2cc7Smrg}
5937123e2cc7Smrg{
5938123e2cc7Smrg  line = $ 0
5939123e2cc7Smrg  nfields = split(line, field, "@")
5940123e2cc7Smrg  substed = 0
5941123e2cc7Smrg  len = length(field[1])
5942123e2cc7Smrg  for (i = 2; i < nfields; i++) {
5943123e2cc7Smrg    key = field[i]
5944123e2cc7Smrg    keylen = length(key)
5945123e2cc7Smrg    if (S_is_set[key]) {
5946123e2cc7Smrg      value = S[key]
5947123e2cc7Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5948123e2cc7Smrg      len += length(value) + length(field[++i])
5949123e2cc7Smrg      substed = 1
5950123e2cc7Smrg    } else
5951123e2cc7Smrg      len += 1 + keylen
5952123e2cc7Smrg  }
5953123e2cc7Smrg
5954123e2cc7Smrg  print line
5955123e2cc7Smrg}
5956123e2cc7Smrg
5957123e2cc7Smrg_ACAWK
5958123e2cc7Smrg_ACEOF
5959123e2cc7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5960123e2cc7Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5961123e2cc7Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5962123e2cc7Smrgelse
5963123e2cc7Smrg  cat
5964123e2cc7Smrgfi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5965123e2cc7Smrg  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
5966123e2cc7Smrg$as_echo "$as_me: error: could not setup config files machinery" >&2;}
5967123e2cc7Smrg   { (exit 1); exit 1; }; }
5968123e2cc7Smrg_ACEOF
5969123e2cc7Smrg
5970123e2cc7Smrg# VPATH may cause trouble with some makes, so we remove $(srcdir),
5971123e2cc7Smrg# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5972123e2cc7Smrg# trailing colons and then remove the whole line if VPATH becomes empty
5973123e2cc7Smrg# (actually we leave an empty line to preserve line numbers).
5974123e2cc7Smrgif test "x$srcdir" = x.; then
5975123e2cc7Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
5976123e2cc7Smrgs/:*\$(srcdir):*/:/
5977123e2cc7Smrgs/:*\${srcdir}:*/:/
5978123e2cc7Smrgs/:*@srcdir@:*/:/
5979123e2cc7Smrgs/^\([^=]*=[	 ]*\):*/\1/
5980123e2cc7Smrgs/:*$//
5981123e2cc7Smrgs/^[^=]*=[	 ]*$//
5982123e2cc7Smrg}'
5983123e2cc7Smrgfi
5984123e2cc7Smrg
59857da8b7e3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
59867da8b7e3Smrgfi # test -n "$CONFIG_FILES"
5987123e2cc7Smrg
5988123e2cc7Smrg# Set up the scripts for CONFIG_HEADERS section.
5989123e2cc7Smrg# No need to generate them if there are no CONFIG_HEADERS.
5990123e2cc7Smrg# This happens for instance with `./config.status Makefile'.
5991123e2cc7Smrgif test -n "$CONFIG_HEADERS"; then
5992123e2cc7Smrgcat >"$tmp/defines.awk" <<\_ACAWK ||
59937da8b7e3SmrgBEGIN {
5994123e2cc7Smrg_ACEOF
5995123e2cc7Smrg
5996123e2cc7Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
5997123e2cc7Smrg# here-document in config.status, that substitutes the proper values into
5998123e2cc7Smrg# config.h.in to produce config.h.
5999123e2cc7Smrg
6000123e2cc7Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
6001123e2cc7Smrg# handling of long lines.
6002123e2cc7Smrgac_delim='%!_!# '
6003123e2cc7Smrgfor ac_last_try in false false :; do
6004123e2cc7Smrg  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6005123e2cc7Smrg  if test -z "$ac_t"; then
6006123e2cc7Smrg    break
6007123e2cc7Smrg  elif $ac_last_try; then
6008123e2cc7Smrg    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
6009123e2cc7Smrg$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
6010123e2cc7Smrg   { (exit 1); exit 1; }; }
6011123e2cc7Smrg  else
6012123e2cc7Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6013123e2cc7Smrg  fi
6014123e2cc7Smrgdone
6015123e2cc7Smrg
6016123e2cc7Smrg# For the awk script, D is an array of macro values keyed by name,
6017123e2cc7Smrg# likewise P contains macro parameters if any.  Preserve backslash
6018123e2cc7Smrg# newline sequences.
6019123e2cc7Smrg
6020123e2cc7Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6021123e2cc7Smrgsed -n '
6022123e2cc7Smrgs/.\{148\}/&'"$ac_delim"'/g
6023123e2cc7Smrgt rset
6024123e2cc7Smrg:rset
6025123e2cc7Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
6026123e2cc7Smrgt def
6027123e2cc7Smrgd
6028123e2cc7Smrg:def
6029123e2cc7Smrgs/\\$//
6030123e2cc7Smrgt bsnl
6031123e2cc7Smrgs/["\\]/\\&/g
6032123e2cc7Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6033123e2cc7SmrgD["\1"]=" \3"/p
6034123e2cc7Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
6035123e2cc7Smrgd
6036123e2cc7Smrg:bsnl
6037123e2cc7Smrgs/["\\]/\\&/g
6038123e2cc7Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6039123e2cc7SmrgD["\1"]=" \3\\\\\\n"\\/p
6040123e2cc7Smrgt cont
6041123e2cc7Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6042123e2cc7Smrgt cont
6043123e2cc7Smrgd
6044123e2cc7Smrg:cont
6045123e2cc7Smrgn
6046123e2cc7Smrgs/.\{148\}/&'"$ac_delim"'/g
6047123e2cc7Smrgt clear
6048123e2cc7Smrg:clear
6049123e2cc7Smrgs/\\$//
6050123e2cc7Smrgt bsnlc
6051123e2cc7Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
6052123e2cc7Smrgd
6053123e2cc7Smrg:bsnlc
6054123e2cc7Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6055123e2cc7Smrgb cont
6056123e2cc7Smrg' <confdefs.h | sed '
6057123e2cc7Smrgs/'"$ac_delim"'/"\\\
6058123e2cc7Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
6059123e2cc7Smrg
6060123e2cc7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6061123e2cc7Smrg  for (key in D) D_is_set[key] = 1
6062123e2cc7Smrg  FS = ""
6063123e2cc7Smrg}
6064123e2cc7Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6065123e2cc7Smrg  line = \$ 0
6066123e2cc7Smrg  split(line, arg, " ")
6067123e2cc7Smrg  if (arg[1] == "#") {
6068123e2cc7Smrg    defundef = arg[2]
6069123e2cc7Smrg    mac1 = arg[3]
6070123e2cc7Smrg  } else {
6071123e2cc7Smrg    defundef = substr(arg[1], 2)
6072123e2cc7Smrg    mac1 = arg[2]
6073123e2cc7Smrg  }
6074123e2cc7Smrg  split(mac1, mac2, "(") #)
6075123e2cc7Smrg  macro = mac2[1]
6076123e2cc7Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
6077123e2cc7Smrg  if (D_is_set[macro]) {
6078123e2cc7Smrg    # Preserve the white space surrounding the "#".
6079123e2cc7Smrg    print prefix "define", macro P[macro] D[macro]
6080123e2cc7Smrg    next
6081123e2cc7Smrg  } else {
6082123e2cc7Smrg    # Replace #undef with comments.  This is necessary, for example,
6083123e2cc7Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
6084123e2cc7Smrg    # on some systems where configure will not decide to define it.
6085123e2cc7Smrg    if (defundef == "undef") {
6086123e2cc7Smrg      print "/*", prefix defundef, macro, "*/"
6087123e2cc7Smrg      next
6088123e2cc7Smrg    }
6089123e2cc7Smrg  }
6090123e2cc7Smrg}
6091123e2cc7Smrg{ print }
6092123e2cc7Smrg_ACAWK
6093123e2cc7Smrg_ACEOF
6094123e2cc7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6095123e2cc7Smrg  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
6096123e2cc7Smrg$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
6097123e2cc7Smrg   { (exit 1); exit 1; }; }
6098123e2cc7Smrgfi # test -n "$CONFIG_HEADERS"
6099123e2cc7Smrg
6100123e2cc7Smrg
6101123e2cc7Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
6102123e2cc7Smrgshift
6103123e2cc7Smrgfor ac_tag
6104123e2cc7Smrgdo
6105123e2cc7Smrg  case $ac_tag in
6106123e2cc7Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
6107123e2cc7Smrg  esac
6108123e2cc7Smrg  case $ac_mode$ac_tag in
6109123e2cc7Smrg  :[FHL]*:*);;
6110123e2cc7Smrg  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
6111123e2cc7Smrg$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
6112123e2cc7Smrg   { (exit 1); exit 1; }; };;
6113123e2cc7Smrg  :[FH]-) ac_tag=-:-;;
6114123e2cc7Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6115123e2cc7Smrg  esac
6116123e2cc7Smrg  ac_save_IFS=$IFS
6117123e2cc7Smrg  IFS=:
6118123e2cc7Smrg  set x $ac_tag
6119123e2cc7Smrg  IFS=$ac_save_IFS
6120123e2cc7Smrg  shift
6121123e2cc7Smrg  ac_file=$1
6122123e2cc7Smrg  shift
6123123e2cc7Smrg
6124123e2cc7Smrg  case $ac_mode in
6125123e2cc7Smrg  :L) ac_source=$1;;
6126123e2cc7Smrg  :[FH])
6127123e2cc7Smrg    ac_file_inputs=
6128123e2cc7Smrg    for ac_f
6129123e2cc7Smrg    do
6130123e2cc7Smrg      case $ac_f in
6131123e2cc7Smrg      -) ac_f="$tmp/stdin";;
6132123e2cc7Smrg      *) # Look for the file first in the build tree, then in the source tree
6133123e2cc7Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
6134123e2cc7Smrg	 # because $ac_f cannot contain `:'.
6135123e2cc7Smrg	 test -f "$ac_f" ||
6136123e2cc7Smrg	   case $ac_f in
6137123e2cc7Smrg	   [\\/$]*) false;;
6138123e2cc7Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6139123e2cc7Smrg	   esac ||
6140123e2cc7Smrg	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6141123e2cc7Smrg$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6142123e2cc7Smrg   { (exit 1); exit 1; }; };;
6143123e2cc7Smrg      esac
6144123e2cc7Smrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6145123e2cc7Smrg      ac_file_inputs="$ac_file_inputs '$ac_f'"
6146123e2cc7Smrg    done
6147123e2cc7Smrg
6148123e2cc7Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
6149123e2cc7Smrg    # use $as_me), people would be surprised to read:
6150123e2cc7Smrg    #    /* config.h.  Generated by config.status.  */
6151123e2cc7Smrg    configure_input='Generated from '`
6152123e2cc7Smrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6153123e2cc7Smrg	`' by configure.'
6154123e2cc7Smrg    if test x"$ac_file" != x-; then
6155123e2cc7Smrg      configure_input="$ac_file.  $configure_input"
6156123e2cc7Smrg      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
6157123e2cc7Smrg$as_echo "$as_me: creating $ac_file" >&6;}
6158123e2cc7Smrg    fi
6159123e2cc7Smrg    # Neutralize special characters interpreted by sed in replacement strings.
6160123e2cc7Smrg    case $configure_input in #(
6161123e2cc7Smrg    *\&* | *\|* | *\\* )
6162123e2cc7Smrg       ac_sed_conf_input=`$as_echo "$configure_input" |
6163123e2cc7Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
6164123e2cc7Smrg    *) ac_sed_conf_input=$configure_input;;
6165123e2cc7Smrg    esac
6166123e2cc7Smrg
6167123e2cc7Smrg    case $ac_tag in
6168123e2cc7Smrg    *:-:* | *:-) cat >"$tmp/stdin" \
6169123e2cc7Smrg      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6170123e2cc7Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
6171123e2cc7Smrg   { (exit 1); exit 1; }; } ;;
6172123e2cc7Smrg    esac
61737da8b7e3Smrg    ;;
61747da8b7e3Smrg  esac
6175123e2cc7Smrg
61767da8b7e3Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
61777da8b7e3Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
61787da8b7e3Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
6179123e2cc7Smrg	 X"$ac_file" : 'X\(//\)$' \| \
6180123e2cc7Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6181123e2cc7Smrg$as_echo X"$ac_file" |
6182123e2cc7Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6183123e2cc7Smrg	    s//\1/
6184123e2cc7Smrg	    q
6185123e2cc7Smrg	  }
6186123e2cc7Smrg	  /^X\(\/\/\)[^/].*/{
6187123e2cc7Smrg	    s//\1/
6188123e2cc7Smrg	    q
6189123e2cc7Smrg	  }
6190123e2cc7Smrg	  /^X\(\/\/\)$/{
6191123e2cc7Smrg	    s//\1/
6192123e2cc7Smrg	    q
6193123e2cc7Smrg	  }
6194123e2cc7Smrg	  /^X\(\/\).*/{
6195123e2cc7Smrg	    s//\1/
6196123e2cc7Smrg	    q
6197123e2cc7Smrg	  }
6198123e2cc7Smrg	  s/.*/./; q'`
6199123e2cc7Smrg  { as_dir="$ac_dir"
6200123e2cc7Smrg  case $as_dir in #(
6201123e2cc7Smrg  -*) as_dir=./$as_dir;;
6202123e2cc7Smrg  esac
62037da8b7e3Smrg  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6204123e2cc7Smrg    as_dirs=
6205123e2cc7Smrg    while :; do
6206123e2cc7Smrg      case $as_dir in #(
6207123e2cc7Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6208123e2cc7Smrg      *) as_qdir=$as_dir;;
6209123e2cc7Smrg      esac
6210123e2cc7Smrg      as_dirs="'$as_qdir' $as_dirs"
62117da8b7e3Smrg      as_dir=`$as_dirname -- "$as_dir" ||
62127da8b7e3Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
62137da8b7e3Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
6214123e2cc7Smrg	 X"$as_dir" : 'X\(//\)$' \| \
6215123e2cc7Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6216123e2cc7Smrg$as_echo X"$as_dir" |
6217123e2cc7Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6218123e2cc7Smrg	    s//\1/
6219123e2cc7Smrg	    q
6220123e2cc7Smrg	  }
6221123e2cc7Smrg	  /^X\(\/\/\)[^/].*/{
6222123e2cc7Smrg	    s//\1/
6223123e2cc7Smrg	    q
6224123e2cc7Smrg	  }
6225123e2cc7Smrg	  /^X\(\/\/\)$/{
6226123e2cc7Smrg	    s//\1/
6227123e2cc7Smrg	    q
6228123e2cc7Smrg	  }
6229123e2cc7Smrg	  /^X\(\/\).*/{
6230123e2cc7Smrg	    s//\1/
6231123e2cc7Smrg	    q
6232123e2cc7Smrg	  }
6233123e2cc7Smrg	  s/.*/./; q'`
62347da8b7e3Smrg      test -d "$as_dir" && break
6235123e2cc7Smrg    done
6236123e2cc7Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
6237123e2cc7Smrg  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
62387da8b7e3Smrg$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
62397da8b7e3Smrg   { (exit 1); exit 1; }; }; }
62407da8b7e3Smrg  ac_builddir=.
6241123e2cc7Smrg
6242123e2cc7Smrgcase "$ac_dir" in
6243123e2cc7Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6244123e2cc7Smrg*)
6245123e2cc7Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6246123e2cc7Smrg  # A ".." for each directory in $ac_dir_suffix.
6247123e2cc7Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6248123e2cc7Smrg  case $ac_top_builddir_sub in
6249123e2cc7Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6250123e2cc7Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6251123e2cc7Smrg  esac ;;
6252123e2cc7Smrgesac
6253123e2cc7Smrgac_abs_top_builddir=$ac_pwd
6254123e2cc7Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
6255123e2cc7Smrg# for backward compatibility:
62567da8b7e3Smrgac_top_builddir=$ac_top_build_prefix
62577da8b7e3Smrg
6258123e2cc7Smrgcase $srcdir in
62597da8b7e3Smrg  .)  # We are building in place.
6260123e2cc7Smrg    ac_srcdir=.
6261123e2cc7Smrg    ac_top_srcdir=$ac_top_builddir_sub
6262123e2cc7Smrg    ac_abs_top_srcdir=$ac_pwd ;;
62637da8b7e3Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
6264123e2cc7Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
6265123e2cc7Smrg    ac_top_srcdir=$srcdir
6266123e2cc7Smrg    ac_abs_top_srcdir=$srcdir ;;
6267123e2cc7Smrg  *) # Relative name.
6268123e2cc7Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6269123e2cc7Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
62707da8b7e3Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6271123e2cc7Smrgesac
62727da8b7e3Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
62737da8b7e3Smrg
6274123e2cc7Smrg
6275123e2cc7Smrg  case $ac_mode in
6276123e2cc7Smrg  :F)
6277123e2cc7Smrg  #
6278123e2cc7Smrg  # CONFIG_FILE
62797da8b7e3Smrg  #
62807da8b7e3Smrg
62817da8b7e3Smrg  case $INSTALL in
6282123e2cc7Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
62837da8b7e3Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6284123e2cc7Smrg  esac
6285123e2cc7Smrg  ac_MKDIR_P=$MKDIR_P
6286123e2cc7Smrg  case $MKDIR_P in
6287123e2cc7Smrg  [\\/$]* | ?:[\\/]* ) ;;
6288123e2cc7Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6289123e2cc7Smrg  esac
62907da8b7e3Smrg_ACEOF
6291123e2cc7Smrg
6292123e2cc7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6293123e2cc7Smrg# If the template does not know about datarootdir, expand it.
6294123e2cc7Smrg# FIXME: This hack should be removed a few years after 2.60.
6295123e2cc7Smrgac_datarootdir_hack=; ac_datarootdir_seen=
6296123e2cc7Smrg
6297123e2cc7Smrgac_sed_dataroot='
6298123e2cc7Smrg/datarootdir/ {
6299123e2cc7Smrg  p
6300123e2cc7Smrg  q
6301123e2cc7Smrg}
6302123e2cc7Smrg/@datadir@/p
6303123e2cc7Smrg/@docdir@/p
6304123e2cc7Smrg/@infodir@/p
6305123e2cc7Smrg/@localedir@/p
6306123e2cc7Smrg/@mandir@/p
6307123e2cc7Smrg'
6308123e2cc7Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6309123e2cc7Smrg*datarootdir*) ac_datarootdir_seen=yes;;
6310123e2cc7Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6311123e2cc7Smrg  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6312123e2cc7Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6313123e2cc7Smrg_ACEOF
6314123e2cc7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6315123e2cc7Smrg  ac_datarootdir_hack='
6316123e2cc7Smrg  s&@datadir@&$datadir&g
6317123e2cc7Smrg  s&@docdir@&$docdir&g
6318123e2cc7Smrg  s&@infodir@&$infodir&g
6319123e2cc7Smrg  s&@localedir@&$localedir&g
6320123e2cc7Smrg  s&@mandir@&$mandir&g
6321123e2cc7Smrg    s&\\\${datarootdir}&$datarootdir&g' ;;
63227da8b7e3Smrgesac
6323123e2cc7Smrg_ACEOF
6324123e2cc7Smrg
6325123e2cc7Smrg# Neutralize VPATH when `$srcdir' = `.'.
6326123e2cc7Smrg# Shell code in configure.ac might set extrasub.
6327123e2cc7Smrg# FIXME: do we really want to maintain this feature?
6328123e2cc7Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
63297da8b7e3Smrgac_sed_extra="$ac_vpsub
63307da8b7e3Smrg$extrasub
6331123e2cc7Smrg_ACEOF
63327da8b7e3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
63337da8b7e3Smrg:t
6334123e2cc7Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6335123e2cc7Smrgs|@configure_input@|$ac_sed_conf_input|;t t
6336123e2cc7Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
6337123e2cc7Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
6338123e2cc7Smrgs&@srcdir@&$ac_srcdir&;t t
6339123e2cc7Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
6340123e2cc7Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
6341123e2cc7Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6342123e2cc7Smrgs&@builddir@&$ac_builddir&;t t
6343123e2cc7Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
6344123e2cc7Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6345123e2cc7Smrgs&@INSTALL@&$ac_INSTALL&;t t
6346123e2cc7Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
6347123e2cc7Smrg$ac_datarootdir_hack
6348123e2cc7Smrg"
6349123e2cc7Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6350123e2cc7Smrg  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6351123e2cc7Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
63527da8b7e3Smrg   { (exit 1); exit 1; }; }
6353123e2cc7Smrg
6354123e2cc7Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6355123e2cc7Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6356123e2cc7Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6357123e2cc7Smrg  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6358123e2cc7Smrgwhich seems to be undefined.  Please make sure it is defined." >&5
6359123e2cc7Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
63607da8b7e3Smrgwhich seems to be undefined.  Please make sure it is defined." >&2;}
6361123e2cc7Smrg
63627da8b7e3Smrg  rm -f "$tmp/stdin"
6363123e2cc7Smrg  case $ac_file in
6364123e2cc7Smrg  -) cat "$tmp/out" && rm -f "$tmp/out";;
6365123e2cc7Smrg  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6366123e2cc7Smrg  esac \
6367123e2cc7Smrg  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
63687da8b7e3Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
6369123e2cc7Smrg   { (exit 1); exit 1; }; }
6370123e2cc7Smrg ;;
6371123e2cc7Smrg  :H)
6372123e2cc7Smrg  #
6373123e2cc7Smrg  # CONFIG_HEADER
63747da8b7e3Smrg  #
6375123e2cc7Smrg  if test x"$ac_file" != x-; then
6376123e2cc7Smrg    {
6377123e2cc7Smrg      $as_echo "/* $configure_input  */" \
6378123e2cc7Smrg      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6379123e2cc7Smrg    } >"$tmp/config.h" \
6380123e2cc7Smrg      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6381123e2cc7Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
6382123e2cc7Smrg   { (exit 1); exit 1; }; }
6383123e2cc7Smrg    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6384123e2cc7Smrg      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
63857da8b7e3Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
6386123e2cc7Smrg    else
6387123e2cc7Smrg      rm -f "$ac_file"
6388123e2cc7Smrg      mv "$tmp/config.h" "$ac_file" \
6389123e2cc7Smrg	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6390123e2cc7Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
63917da8b7e3Smrg   { (exit 1); exit 1; }; }
63927da8b7e3Smrg    fi
6393123e2cc7Smrg  else
6394123e2cc7Smrg    $as_echo "/* $configure_input  */" \
6395123e2cc7Smrg      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6396123e2cc7Smrg      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
6397123e2cc7Smrg$as_echo "$as_me: error: could not create -" >&2;}
63987da8b7e3Smrg   { (exit 1); exit 1; }; }
6399123e2cc7Smrg  fi
6400123e2cc7Smrg# Compute "$ac_file"'s index in $config_headers.
64017da8b7e3Smrg_am_arg="$ac_file"
64027da8b7e3Smrg_am_stamp_count=1
64037da8b7e3Smrgfor _am_header in $config_headers :; do
6404123e2cc7Smrg  case $_am_header in
64057da8b7e3Smrg    $_am_arg | $_am_arg:* )
64067da8b7e3Smrg      break ;;
64077da8b7e3Smrg    * )
64087da8b7e3Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
64097da8b7e3Smrg  esac
6410123e2cc7Smrgdone
6411123e2cc7Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6412123e2cc7Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6413123e2cc7Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
6414123e2cc7Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
6415123e2cc7Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6416123e2cc7Smrg$as_echo X"$_am_arg" |
6417123e2cc7Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6418123e2cc7Smrg	    s//\1/
6419123e2cc7Smrg	    q
6420123e2cc7Smrg	  }
6421123e2cc7Smrg	  /^X\(\/\/\)[^/].*/{
6422123e2cc7Smrg	    s//\1/
6423123e2cc7Smrg	    q
6424123e2cc7Smrg	  }
6425123e2cc7Smrg	  /^X\(\/\/\)$/{
6426123e2cc7Smrg	    s//\1/
6427123e2cc7Smrg	    q
6428123e2cc7Smrg	  }
6429123e2cc7Smrg	  /^X\(\/\).*/{
6430123e2cc7Smrg	    s//\1/
6431123e2cc7Smrg	    q
6432123e2cc7Smrg	  }
6433123e2cc7Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
64347da8b7e3Smrg ;;
6435123e2cc7Smrg
6436123e2cc7Smrg  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
6437123e2cc7Smrg$as_echo "$as_me: executing $ac_file commands" >&6;}
6438123e2cc7Smrg ;;
64397da8b7e3Smrg  esac
64407da8b7e3Smrg
6441123e2cc7Smrg
6442123e2cc7Smrg  case $ac_file$ac_mode in
6443123e2cc7Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6444123e2cc7Smrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
6445123e2cc7Smrg  # are listed without --file.  Let's play safe and only enable the eval
6446123e2cc7Smrg  # if we detect the quoting.
6447123e2cc7Smrg  case $CONFIG_FILES in
6448123e2cc7Smrg  *\'*) eval set x "$CONFIG_FILES" ;;
6449123e2cc7Smrg  *)   set x $CONFIG_FILES ;;
6450123e2cc7Smrg  esac
6451123e2cc7Smrg  shift
6452123e2cc7Smrg  for mf
6453123e2cc7Smrg  do
6454123e2cc7Smrg    # Strip MF so we end up with the name of the file.
6455123e2cc7Smrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
6456123e2cc7Smrg    # Check whether this is an Automake generated Makefile or not.
6457123e2cc7Smrg    # We used to match only the files named `Makefile.in', but
6458123e2cc7Smrg    # some people rename them; so instead we look at the file content.
6459123e2cc7Smrg    # Grep'ing the first line is not enough: some people post-process
6460123e2cc7Smrg    # each Makefile.in and add a new line on top of each file to say so.
6461123e2cc7Smrg    # Grep'ing the whole file is not good either: AIX grep has a line
6462123e2cc7Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
6463123e2cc7Smrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
64647da8b7e3Smrg      dirpart=`$as_dirname -- "$mf" ||
64657da8b7e3Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
64667da8b7e3Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
6467123e2cc7Smrg	 X"$mf" : 'X\(//\)$' \| \
6468123e2cc7Smrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6469123e2cc7Smrg$as_echo X"$mf" |
6470123e2cc7Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6471123e2cc7Smrg	    s//\1/
6472123e2cc7Smrg	    q
6473123e2cc7Smrg	  }
6474123e2cc7Smrg	  /^X\(\/\/\)[^/].*/{
6475123e2cc7Smrg	    s//\1/
6476123e2cc7Smrg	    q
6477123e2cc7Smrg	  }
6478123e2cc7Smrg	  /^X\(\/\/\)$/{
6479123e2cc7Smrg	    s//\1/
6480123e2cc7Smrg	    q
6481123e2cc7Smrg	  }
6482123e2cc7Smrg	  /^X\(\/\).*/{
6483123e2cc7Smrg	    s//\1/
6484123e2cc7Smrg	    q
6485123e2cc7Smrg	  }
6486123e2cc7Smrg	  s/.*/./; q'`
6487123e2cc7Smrg    else
6488123e2cc7Smrg      continue
6489123e2cc7Smrg    fi
6490123e2cc7Smrg    # Extract the definition of DEPDIR, am__include, and am__quote
6491123e2cc7Smrg    # from the Makefile without running `make'.
6492123e2cc7Smrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6493123e2cc7Smrg    test -z "$DEPDIR" && continue
6494123e2cc7Smrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
6495123e2cc7Smrg    test -z "am__include" && continue
6496123e2cc7Smrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6497123e2cc7Smrg    # When using ansi2knr, U may be empty or an underscore; expand it
6498123e2cc7Smrg    U=`sed -n 's/^U = //p' < "$mf"`
6499123e2cc7Smrg    # Find all dependency output files, they are included files with
6500123e2cc7Smrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
6501123e2cc7Smrg    # simplest approach to changing $(DEPDIR) to its actual value in the
6502123e2cc7Smrg    # expansion.
6503123e2cc7Smrg    for file in `sed -n "
6504123e2cc7Smrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6505123e2cc7Smrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6506123e2cc7Smrg      # Make sure the directory exists.
6507123e2cc7Smrg      test -f "$dirpart/$file" && continue
65087da8b7e3Smrg      fdir=`$as_dirname -- "$file" ||
65097da8b7e3Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
65107da8b7e3Smrg	 X"$file" : 'X\(//\)[^/]' \| \
6511123e2cc7Smrg	 X"$file" : 'X\(//\)$' \| \
6512123e2cc7Smrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6513123e2cc7Smrg$as_echo X"$file" |
6514123e2cc7Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6515123e2cc7Smrg	    s//\1/
6516123e2cc7Smrg	    q
6517123e2cc7Smrg	  }
6518123e2cc7Smrg	  /^X\(\/\/\)[^/].*/{
6519123e2cc7Smrg	    s//\1/
6520123e2cc7Smrg	    q
6521123e2cc7Smrg	  }
6522123e2cc7Smrg	  /^X\(\/\/\)$/{
6523123e2cc7Smrg	    s//\1/
6524123e2cc7Smrg	    q
6525123e2cc7Smrg	  }
6526123e2cc7Smrg	  /^X\(\/\).*/{
6527123e2cc7Smrg	    s//\1/
6528123e2cc7Smrg	    q
6529123e2cc7Smrg	  }
6530123e2cc7Smrg	  s/.*/./; q'`
6531123e2cc7Smrg      { as_dir=$dirpart/$fdir
6532123e2cc7Smrg  case $as_dir in #(
6533123e2cc7Smrg  -*) as_dir=./$as_dir;;
6534123e2cc7Smrg  esac
65357da8b7e3Smrg  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6536123e2cc7Smrg    as_dirs=
6537123e2cc7Smrg    while :; do
6538123e2cc7Smrg      case $as_dir in #(
6539123e2cc7Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6540123e2cc7Smrg      *) as_qdir=$as_dir;;
6541123e2cc7Smrg      esac
6542123e2cc7Smrg      as_dirs="'$as_qdir' $as_dirs"
65437da8b7e3Smrg      as_dir=`$as_dirname -- "$as_dir" ||
65447da8b7e3Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
65457da8b7e3Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
6546123e2cc7Smrg	 X"$as_dir" : 'X\(//\)$' \| \
6547123e2cc7Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6548123e2cc7Smrg$as_echo X"$as_dir" |
6549123e2cc7Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6550123e2cc7Smrg	    s//\1/
6551123e2cc7Smrg	    q
6552123e2cc7Smrg	  }
6553123e2cc7Smrg	  /^X\(\/\/\)[^/].*/{
6554123e2cc7Smrg	    s//\1/
6555123e2cc7Smrg	    q
6556123e2cc7Smrg	  }
6557123e2cc7Smrg	  /^X\(\/\/\)$/{
6558123e2cc7Smrg	    s//\1/
6559123e2cc7Smrg	    q
6560123e2cc7Smrg	  }
6561123e2cc7Smrg	  /^X\(\/\).*/{
6562123e2cc7Smrg	    s//\1/
6563123e2cc7Smrg	    q
6564123e2cc7Smrg	  }
6565123e2cc7Smrg	  s/.*/./; q'`
65667da8b7e3Smrg      test -d "$as_dir" && break
6567123e2cc7Smrg    done
6568123e2cc7Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
6569123e2cc7Smrg  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
65707da8b7e3Smrg$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
6571123e2cc7Smrg   { (exit 1); exit 1; }; }; }
6572123e2cc7Smrg      # echo "creating $dirpart/$file"
6573123e2cc7Smrg      echo '# dummy' > "$dirpart/$file"
65747da8b7e3Smrg    done
6575123e2cc7Smrg  done
65767da8b7e3Smrg}
6577123e2cc7Smrg ;;
65787da8b7e3Smrg
6579123e2cc7Smrg  esac
65807da8b7e3Smrgdone # for ac_tag
65817da8b7e3Smrg
65827da8b7e3Smrg
65837da8b7e3Smrg{ (exit 0); exit 0; }
65847da8b7e3Smrg_ACEOF
65857da8b7e3Smrgchmod +x $CONFIG_STATUS
65867da8b7e3Smrgac_clean_files=$ac_clean_files_save
6587123e2cc7Smrg
6588123e2cc7Smrgtest $ac_write_fail = 0 ||
6589123e2cc7Smrg  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
6590123e2cc7Smrg$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
6591123e2cc7Smrg   { (exit 1); exit 1; }; }
65927da8b7e3Smrg
65937da8b7e3Smrg
65947da8b7e3Smrg# configure is writing to config.log, and then calls config.status.
65957da8b7e3Smrg# config.status does its own redirection, appending to config.log.
65967da8b7e3Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
65977da8b7e3Smrg# by configure, so config.status won't be able to write to it; its
65987da8b7e3Smrg# output is simply discarded.  So we exec the FD to /dev/null,
65997da8b7e3Smrg# effectively closing config.log, so it can be properly (re)opened and
66007da8b7e3Smrg# appended to by config.status.  When coming back to configure, we
66017da8b7e3Smrg# need to make the FD available again.
66027da8b7e3Smrgif test "$no_create" != yes; then
66037da8b7e3Smrg  ac_cs_success=:
66047da8b7e3Smrg  ac_config_status_args=
66057da8b7e3Smrg  test "$silent" = yes &&
66067da8b7e3Smrg    ac_config_status_args="$ac_config_status_args --quiet"
66077da8b7e3Smrg  exec 5>/dev/null
66087da8b7e3Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
66097da8b7e3Smrg  exec 5>>config.log
66107da8b7e3Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
66117da8b7e3Smrg  # would make configure fail if this is the last instruction.
66127da8b7e3Smrg  $ac_cs_success || { (exit 1); exit 1; }
6613123e2cc7Smrgfi
6614123e2cc7Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6615123e2cc7Smrg  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6616123e2cc7Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
66177da8b7e3Smrgfi
6618
6619