configure revision c2b339b4
1e9554658Smrg#! /bin/sh
2e9554658Smrg# Guess values for system-dependent variables and create Makefiles.
3c2b339b4Smrg# Generated by GNU Autoconf 2.63 for xclock 1.0.4.
4e9554658Smrg#
5e9554658Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6e9554658Smrg#
7e9554658Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8c2b339b4Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9e9554658Smrg# This configure script is free software; the Free Software Foundation
10e9554658Smrg# gives unlimited permission to copy, distribute and modify it.
11e9554658Smrg## --------------------- ##
12e9554658Smrg## M4sh Initialization.  ##
13e9554658Smrg## --------------------- ##
14e9554658Smrg
15e9554658Smrg# Be more Bourne compatible
16e9554658SmrgDUALCASE=1; export DUALCASE # for MKS sh
17e9554658Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18e9554658Smrg  emulate sh
19e9554658Smrg  NULLCMD=:
20c2b339b4Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21e9554658Smrg  # is contrary to our usage.  Disable this feature.
22e9554658Smrg  alias -g '${1+"$@"}'='"$@"'
23e9554658Smrg  setopt NO_GLOB_SUBST
24e9554658Smrgelse
25e9554658Smrg  case `(set -o) 2>/dev/null` in
26e9554658Smrg  *posix*) set -o posix ;;
27e9554658Smrgesac
28e9554658Smrg
29e9554658Smrgfi
30e9554658Smrg
31e9554658Smrg
32e9554658Smrg
33e9554658Smrg
34e9554658Smrg# PATH needs CR
35e9554658Smrg# Avoid depending upon Character Ranges.
36e9554658Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
37e9554658Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38e9554658Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
39e9554658Smrgas_cr_digits='0123456789'
40e9554658Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
41e9554658Smrg
42c2b339b4Smrgas_nl='
43c2b339b4Smrg'
44c2b339b4Smrgexport as_nl
45c2b339b4Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
46c2b339b4Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47c2b339b4Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48c2b339b4Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49c2b339b4Smrgif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50c2b339b4Smrg  as_echo='printf %s\n'
51c2b339b4Smrg  as_echo_n='printf %s'
52c2b339b4Smrgelse
53c2b339b4Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54c2b339b4Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55c2b339b4Smrg    as_echo_n='/usr/ucb/echo -n'
56e9554658Smrg  else
57c2b339b4Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58c2b339b4Smrg    as_echo_n_body='eval
59c2b339b4Smrg      arg=$1;
60c2b339b4Smrg      case $arg in
61c2b339b4Smrg      *"$as_nl"*)
62c2b339b4Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
63c2b339b4Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64c2b339b4Smrg      esac;
65c2b339b4Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66c2b339b4Smrg    '
67c2b339b4Smrg    export as_echo_n_body
68c2b339b4Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
69e9554658Smrg  fi
70c2b339b4Smrg  export as_echo_body
71c2b339b4Smrg  as_echo='sh -c $as_echo_body as_echo'
72c2b339b4Smrgfi
73c2b339b4Smrg
74c2b339b4Smrg# The user is always right.
75c2b339b4Smrgif test "${PATH_SEPARATOR+set}" != set; then
76c2b339b4Smrg  PATH_SEPARATOR=:
77c2b339b4Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78c2b339b4Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79c2b339b4Smrg      PATH_SEPARATOR=';'
80c2b339b4Smrg  }
81e9554658Smrgfi
82e9554658Smrg
83e9554658Smrg# Support unset when possible.
84e9554658Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85e9554658Smrg  as_unset=unset
86e9554658Smrgelse
87e9554658Smrg  as_unset=false
88e9554658Smrgfi
89e9554658Smrg
90e9554658Smrg
91e9554658Smrg# IFS
92e9554658Smrg# We need space, tab and new line, in precisely that order.  Quoting is
93e9554658Smrg# there to prevent editors from complaining about space-tab.
94e9554658Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95e9554658Smrg# splitting by setting IFS to empty value.)
96e9554658SmrgIFS=" ""	$as_nl"
97e9554658Smrg
98e9554658Smrg# Find who we are.  Look in the path if we contain no directory separator.
99e9554658Smrgcase $0 in
100e9554658Smrg  *[\\/]* ) as_myself=$0 ;;
101e9554658Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102e9554658Smrgfor as_dir in $PATH
103e9554658Smrgdo
104e9554658Smrg  IFS=$as_save_IFS
105e9554658Smrg  test -z "$as_dir" && as_dir=.
106e9554658Smrg  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107e9554658Smrgdone
108e9554658SmrgIFS=$as_save_IFS
109e9554658Smrg
110e9554658Smrg     ;;
111e9554658Smrgesac
112e9554658Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
113e9554658Smrg# in which case we are not to be found in the path.
114e9554658Smrgif test "x$as_myself" = x; then
115e9554658Smrg  as_myself=$0
116e9554658Smrgfi
117e9554658Smrgif test ! -f "$as_myself"; then
118c2b339b4Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119e9554658Smrg  { (exit 1); exit 1; }
120e9554658Smrgfi
121e9554658Smrg
122e9554658Smrg# Work around bugs in pre-3.0 UWIN ksh.
123e9554658Smrgfor as_var in ENV MAIL MAILPATH
124e9554658Smrgdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125e9554658Smrgdone
126e9554658SmrgPS1='$ '
127e9554658SmrgPS2='> '
128e9554658SmrgPS4='+ '
129e9554658Smrg
130e9554658Smrg# NLS nuisances.
131c2b339b4SmrgLC_ALL=C
132c2b339b4Smrgexport LC_ALL
133c2b339b4SmrgLANGUAGE=C
134c2b339b4Smrgexport LANGUAGE
135e9554658Smrg
136e9554658Smrg# Required to use basename.
137e9554658Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
138e9554658Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
139e9554658Smrg  as_expr=expr
140e9554658Smrgelse
141e9554658Smrg  as_expr=false
142e9554658Smrgfi
143e9554658Smrg
144e9554658Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145e9554658Smrg  as_basename=basename
146e9554658Smrgelse
147e9554658Smrg  as_basename=false
148e9554658Smrgfi
149e9554658Smrg
150e9554658Smrg
151e9554658Smrg# Name of the executable.
152e9554658Smrgas_me=`$as_basename -- "$0" ||
153e9554658Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154e9554658Smrg	 X"$0" : 'X\(//\)$' \| \
155e9554658Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156c2b339b4Smrg$as_echo X/"$0" |
157e9554658Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
158e9554658Smrg	    s//\1/
159e9554658Smrg	    q
160e9554658Smrg	  }
161e9554658Smrg	  /^X\/\(\/\/\)$/{
162e9554658Smrg	    s//\1/
163e9554658Smrg	    q
164e9554658Smrg	  }
165e9554658Smrg	  /^X\/\(\/\).*/{
166e9554658Smrg	    s//\1/
167e9554658Smrg	    q
168e9554658Smrg	  }
169e9554658Smrg	  s/.*/./; q'`
170e9554658Smrg
171e9554658Smrg# CDPATH.
172e9554658Smrg$as_unset CDPATH
173e9554658Smrg
174e9554658Smrg
175e9554658Smrgif test "x$CONFIG_SHELL" = x; then
176e9554658Smrg  if (eval ":") 2>/dev/null; then
177e9554658Smrg  as_have_required=yes
178e9554658Smrgelse
179e9554658Smrg  as_have_required=no
180e9554658Smrgfi
181e9554658Smrg
182c2b339b4Smrg  if test $as_have_required = yes &&	 (eval ":
183e9554658Smrg(as_func_return () {
184e9554658Smrg  (exit \$1)
185e9554658Smrg}
186e9554658Smrgas_func_success () {
187e9554658Smrg  as_func_return 0
188e9554658Smrg}
189e9554658Smrgas_func_failure () {
190e9554658Smrg  as_func_return 1
191e9554658Smrg}
192e9554658Smrgas_func_ret_success () {
193e9554658Smrg  return 0
194e9554658Smrg}
195e9554658Smrgas_func_ret_failure () {
196e9554658Smrg  return 1
197e9554658Smrg}
198e9554658Smrg
199e9554658Smrgexitcode=0
200e9554658Smrgif as_func_success; then
201e9554658Smrg  :
202e9554658Smrgelse
203e9554658Smrg  exitcode=1
204e9554658Smrg  echo as_func_success failed.
205e9554658Smrgfi
206e9554658Smrg
207e9554658Smrgif as_func_failure; then
208e9554658Smrg  exitcode=1
209e9554658Smrg  echo as_func_failure succeeded.
210e9554658Smrgfi
211e9554658Smrg
212e9554658Smrgif as_func_ret_success; then
213e9554658Smrg  :
214e9554658Smrgelse
215e9554658Smrg  exitcode=1
216e9554658Smrg  echo as_func_ret_success failed.
217e9554658Smrgfi
218e9554658Smrg
219e9554658Smrgif as_func_ret_failure; then
220e9554658Smrg  exitcode=1
221e9554658Smrg  echo as_func_ret_failure succeeded.
222e9554658Smrgfi
223e9554658Smrg
224e9554658Smrgif ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225e9554658Smrg  :
226e9554658Smrgelse
227e9554658Smrg  exitcode=1
228e9554658Smrg  echo positional parameters were not saved.
229e9554658Smrgfi
230e9554658Smrg
231e9554658Smrgtest \$exitcode = 0) || { (exit 1); exit 1; }
232e9554658Smrg
233e9554658Smrg(
234e9554658Smrg  as_lineno_1=\$LINENO
235e9554658Smrg  as_lineno_2=\$LINENO
236e9554658Smrg  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237e9554658Smrg  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238e9554658Smrg") 2> /dev/null; then
239e9554658Smrg  :
240e9554658Smrgelse
241e9554658Smrg  as_candidate_shells=
242e9554658Smrg    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243e9554658Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244e9554658Smrgdo
245e9554658Smrg  IFS=$as_save_IFS
246e9554658Smrg  test -z "$as_dir" && as_dir=.
247e9554658Smrg  case $as_dir in
248e9554658Smrg	 /*)
249e9554658Smrg	   for as_base in sh bash ksh sh5; do
250e9554658Smrg	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251e9554658Smrg	   done;;
252e9554658Smrg       esac
253e9554658Smrgdone
254e9554658SmrgIFS=$as_save_IFS
255e9554658Smrg
256e9554658Smrg
257e9554658Smrg      for as_shell in $as_candidate_shells $SHELL; do
258e9554658Smrg	 # Try only shells that exist, to save several forks.
259e9554658Smrg	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260e9554658Smrg		{ ("$as_shell") 2> /dev/null <<\_ASEOF
261e9554658Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262e9554658Smrg  emulate sh
263e9554658Smrg  NULLCMD=:
264c2b339b4Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265e9554658Smrg  # is contrary to our usage.  Disable this feature.
266e9554658Smrg  alias -g '${1+"$@"}'='"$@"'
267e9554658Smrg  setopt NO_GLOB_SUBST
268e9554658Smrgelse
269e9554658Smrg  case `(set -o) 2>/dev/null` in
270e9554658Smrg  *posix*) set -o posix ;;
271e9554658Smrgesac
272e9554658Smrg
273e9554658Smrgfi
274e9554658Smrg
275e9554658Smrg
276e9554658Smrg:
277e9554658Smrg_ASEOF
278e9554658Smrg}; then
279e9554658Smrg  CONFIG_SHELL=$as_shell
280e9554658Smrg	       as_have_required=yes
281e9554658Smrg	       if { "$as_shell" 2> /dev/null <<\_ASEOF
282e9554658Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283e9554658Smrg  emulate sh
284e9554658Smrg  NULLCMD=:
285c2b339b4Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286e9554658Smrg  # is contrary to our usage.  Disable this feature.
287e9554658Smrg  alias -g '${1+"$@"}'='"$@"'
288e9554658Smrg  setopt NO_GLOB_SUBST
289e9554658Smrgelse
290e9554658Smrg  case `(set -o) 2>/dev/null` in
291e9554658Smrg  *posix*) set -o posix ;;
292e9554658Smrgesac
293e9554658Smrg
294e9554658Smrgfi
295e9554658Smrg
296e9554658Smrg
297e9554658Smrg:
298e9554658Smrg(as_func_return () {
299e9554658Smrg  (exit $1)
300e9554658Smrg}
301e9554658Smrgas_func_success () {
302e9554658Smrg  as_func_return 0
303e9554658Smrg}
304e9554658Smrgas_func_failure () {
305e9554658Smrg  as_func_return 1
306e9554658Smrg}
307e9554658Smrgas_func_ret_success () {
308e9554658Smrg  return 0
309e9554658Smrg}
310e9554658Smrgas_func_ret_failure () {
311e9554658Smrg  return 1
312e9554658Smrg}
313e9554658Smrg
314e9554658Smrgexitcode=0
315e9554658Smrgif as_func_success; then
316e9554658Smrg  :
317e9554658Smrgelse
318e9554658Smrg  exitcode=1
319e9554658Smrg  echo as_func_success failed.
320e9554658Smrgfi
321e9554658Smrg
322e9554658Smrgif as_func_failure; then
323e9554658Smrg  exitcode=1
324e9554658Smrg  echo as_func_failure succeeded.
325e9554658Smrgfi
326e9554658Smrg
327e9554658Smrgif as_func_ret_success; then
328e9554658Smrg  :
329e9554658Smrgelse
330e9554658Smrg  exitcode=1
331e9554658Smrg  echo as_func_ret_success failed.
332e9554658Smrgfi
333e9554658Smrg
334e9554658Smrgif as_func_ret_failure; then
335e9554658Smrg  exitcode=1
336e9554658Smrg  echo as_func_ret_failure succeeded.
337e9554658Smrgfi
338e9554658Smrg
339e9554658Smrgif ( set x; as_func_ret_success y && test x = "$1" ); then
340e9554658Smrg  :
341e9554658Smrgelse
342e9554658Smrg  exitcode=1
343e9554658Smrg  echo positional parameters were not saved.
344e9554658Smrgfi
345e9554658Smrg
346e9554658Smrgtest $exitcode = 0) || { (exit 1); exit 1; }
347e9554658Smrg
348e9554658Smrg(
349e9554658Smrg  as_lineno_1=$LINENO
350e9554658Smrg  as_lineno_2=$LINENO
351e9554658Smrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
352e9554658Smrg  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353e9554658Smrg
354e9554658Smrg_ASEOF
355e9554658Smrg}; then
356e9554658Smrg  break
357e9554658Smrgfi
358e9554658Smrg
359e9554658Smrgfi
360e9554658Smrg
361e9554658Smrg      done
362e9554658Smrg
363e9554658Smrg      if test "x$CONFIG_SHELL" != x; then
364e9554658Smrg  for as_var in BASH_ENV ENV
365c2b339b4Smrg	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366c2b339b4Smrg	done
367c2b339b4Smrg	export CONFIG_SHELL
368c2b339b4Smrg	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369e9554658Smrgfi
370e9554658Smrg
371e9554658Smrg
372e9554658Smrg    if test $as_have_required = no; then
373e9554658Smrg  echo This script requires a shell more modern than all the
374e9554658Smrg      echo shells that I found on your system.  Please install a
375e9554658Smrg      echo modern shell, or manually run the script under such a
376e9554658Smrg      echo shell if you do have one.
377e9554658Smrg      { (exit 1); exit 1; }
378e9554658Smrgfi
379e9554658Smrg
380e9554658Smrg
381e9554658Smrgfi
382e9554658Smrg
383e9554658Smrgfi
384e9554658Smrg
385e9554658Smrg
386e9554658Smrg
387e9554658Smrg(eval "as_func_return () {
388e9554658Smrg  (exit \$1)
389e9554658Smrg}
390e9554658Smrgas_func_success () {
391e9554658Smrg  as_func_return 0
392e9554658Smrg}
393e9554658Smrgas_func_failure () {
394e9554658Smrg  as_func_return 1
395e9554658Smrg}
396e9554658Smrgas_func_ret_success () {
397e9554658Smrg  return 0
398e9554658Smrg}
399e9554658Smrgas_func_ret_failure () {
400e9554658Smrg  return 1
401e9554658Smrg}
402e9554658Smrg
403e9554658Smrgexitcode=0
404e9554658Smrgif as_func_success; then
405e9554658Smrg  :
406e9554658Smrgelse
407e9554658Smrg  exitcode=1
408e9554658Smrg  echo as_func_success failed.
409e9554658Smrgfi
410e9554658Smrg
411e9554658Smrgif as_func_failure; then
412e9554658Smrg  exitcode=1
413e9554658Smrg  echo as_func_failure succeeded.
414e9554658Smrgfi
415e9554658Smrg
416e9554658Smrgif as_func_ret_success; then
417e9554658Smrg  :
418e9554658Smrgelse
419e9554658Smrg  exitcode=1
420e9554658Smrg  echo as_func_ret_success failed.
421e9554658Smrgfi
422e9554658Smrg
423e9554658Smrgif as_func_ret_failure; then
424e9554658Smrg  exitcode=1
425e9554658Smrg  echo as_func_ret_failure succeeded.
426e9554658Smrgfi
427e9554658Smrg
428e9554658Smrgif ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429e9554658Smrg  :
430e9554658Smrgelse
431e9554658Smrg  exitcode=1
432e9554658Smrg  echo positional parameters were not saved.
433e9554658Smrgfi
434e9554658Smrg
435e9554658Smrgtest \$exitcode = 0") || {
436e9554658Smrg  echo No shell found that supports shell functions.
437c2b339b4Smrg  echo Please tell bug-autoconf@gnu.org about your system,
438c2b339b4Smrg  echo including any error possibly output before this message.
439c2b339b4Smrg  echo This can help us improve future autoconf versions.
440c2b339b4Smrg  echo Configuration will now proceed without shell functions.
441e9554658Smrg}
442e9554658Smrg
443e9554658Smrg
444e9554658Smrg
445e9554658Smrg  as_lineno_1=$LINENO
446e9554658Smrg  as_lineno_2=$LINENO
447e9554658Smrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
448e9554658Smrg  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449e9554658Smrg
450e9554658Smrg  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451e9554658Smrg  # uniformly replaced by the line number.  The first 'sed' inserts a
452e9554658Smrg  # line-number line after each line using $LINENO; the second 'sed'
453e9554658Smrg  # does the real work.  The second script uses 'N' to pair each
454e9554658Smrg  # line-number line with the line containing $LINENO, and appends
455e9554658Smrg  # trailing '-' during substitution so that $LINENO is not a special
456e9554658Smrg  # case at line end.
457e9554658Smrg  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458e9554658Smrg  # scripts with optimization help from Paolo Bonzini.  Blame Lee
459e9554658Smrg  # E. McMahon (1931-1989) for sed's syntax.  :-)
460e9554658Smrg  sed -n '
461e9554658Smrg    p
462e9554658Smrg    /[$]LINENO/=
463e9554658Smrg  ' <$as_myself |
464e9554658Smrg    sed '
465e9554658Smrg      s/[$]LINENO.*/&-/
466e9554658Smrg      t lineno
467e9554658Smrg      b
468e9554658Smrg      :lineno
469e9554658Smrg      N
470e9554658Smrg      :loop
471e9554658Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472e9554658Smrg      t loop
473e9554658Smrg      s/-\n.*//
474e9554658Smrg    ' >$as_me.lineno &&
475e9554658Smrg  chmod +x "$as_me.lineno" ||
476c2b339b4Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477e9554658Smrg   { (exit 1); exit 1; }; }
478e9554658Smrg
479e9554658Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
480e9554658Smrg  # (the dirname of $[0] is not the place where we might find the
481e9554658Smrg  # original and so on.  Autoconf is especially sensitive to this).
482e9554658Smrg  . "./$as_me.lineno"
483e9554658Smrg  # Exit status is that of the last command.
484e9554658Smrg  exit
485e9554658Smrg}
486e9554658Smrg
487e9554658Smrg
488e9554658Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489e9554658Smrg  as_dirname=dirname
490e9554658Smrgelse
491e9554658Smrg  as_dirname=false
492e9554658Smrgfi
493e9554658Smrg
494e9554658SmrgECHO_C= ECHO_N= ECHO_T=
495e9554658Smrgcase `echo -n x` in
496e9554658Smrg-n*)
497e9554658Smrg  case `echo 'x\c'` in
498e9554658Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
499e9554658Smrg  *)   ECHO_C='\c';;
500e9554658Smrg  esac;;
501e9554658Smrg*)
502e9554658Smrg  ECHO_N='-n';;
503e9554658Smrgesac
504e9554658Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
505e9554658Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
506e9554658Smrg  as_expr=expr
507e9554658Smrgelse
508e9554658Smrg  as_expr=false
509e9554658Smrgfi
510e9554658Smrg
511e9554658Smrgrm -f conf$$ conf$$.exe conf$$.file
512e9554658Smrgif test -d conf$$.dir; then
513e9554658Smrg  rm -f conf$$.dir/conf$$.file
514e9554658Smrgelse
515e9554658Smrg  rm -f conf$$.dir
516c2b339b4Smrg  mkdir conf$$.dir 2>/dev/null
517c2b339b4Smrgfi
518c2b339b4Smrgif (echo >conf$$.file) 2>/dev/null; then
519c2b339b4Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
520c2b339b4Smrg    as_ln_s='ln -s'
521c2b339b4Smrg    # ... but there are two gotchas:
522c2b339b4Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523c2b339b4Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524c2b339b4Smrg    # In both cases, we have to default to `cp -p'.
525c2b339b4Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526c2b339b4Smrg      as_ln_s='cp -p'
527c2b339b4Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
528c2b339b4Smrg    as_ln_s=ln
529c2b339b4Smrg  else
530e9554658Smrg    as_ln_s='cp -p'
531c2b339b4Smrg  fi
532e9554658Smrgelse
533e9554658Smrg  as_ln_s='cp -p'
534e9554658Smrgfi
535e9554658Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536e9554658Smrgrmdir conf$$.dir 2>/dev/null
537e9554658Smrg
538e9554658Smrgif mkdir -p . 2>/dev/null; then
539e9554658Smrg  as_mkdir_p=:
540e9554658Smrgelse
541e9554658Smrg  test -d ./-p && rmdir ./-p
542e9554658Smrg  as_mkdir_p=false
543e9554658Smrgfi
544e9554658Smrg
545e9554658Smrgif test -x / >/dev/null 2>&1; then
546e9554658Smrg  as_test_x='test -x'
547e9554658Smrgelse
548e9554658Smrg  if ls -dL / >/dev/null 2>&1; then
549e9554658Smrg    as_ls_L_option=L
550e9554658Smrg  else
551e9554658Smrg    as_ls_L_option=
552e9554658Smrg  fi
553e9554658Smrg  as_test_x='
554e9554658Smrg    eval sh -c '\''
555e9554658Smrg      if test -d "$1"; then
556c2b339b4Smrg	test -d "$1/.";
557e9554658Smrg      else
558e9554658Smrg	case $1 in
559c2b339b4Smrg	-*)set "./$1";;
560e9554658Smrg	esac;
561e9554658Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562e9554658Smrg	???[sx]*):;;*)false;;esac;fi
563e9554658Smrg    '\'' sh
564e9554658Smrg  '
565e9554658Smrgfi
566e9554658Smrgas_executable_p=$as_test_x
567e9554658Smrg
568e9554658Smrg# Sed expression to map a string onto a valid CPP name.
569e9554658Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570e9554658Smrg
571e9554658Smrg# Sed expression to map a string onto a valid variable name.
572e9554658Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573e9554658Smrg
574e9554658Smrg
575e9554658Smrg
576e9554658Smrgexec 7<&0 </dev/null 6>&1
577e9554658Smrg
578e9554658Smrg# Name of the host.
579e9554658Smrg# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580e9554658Smrg# so uname gets run too.
581e9554658Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582e9554658Smrg
583e9554658Smrg#
584e9554658Smrg# Initializations.
585e9554658Smrg#
586e9554658Smrgac_default_prefix=/usr/local
587e9554658Smrgac_clean_files=
588e9554658Smrgac_config_libobj_dir=.
589e9554658SmrgLIBOBJS=
590e9554658Smrgcross_compiling=no
591e9554658Smrgsubdirs=
592e9554658SmrgMFLAGS=
593e9554658SmrgMAKEFLAGS=
594e9554658SmrgSHELL=${CONFIG_SHELL-/bin/sh}
595e9554658Smrg
596e9554658Smrg# Identity of this package.
597e9554658SmrgPACKAGE_NAME='xclock'
598e9554658SmrgPACKAGE_TARNAME='xclock'
599c2b339b4SmrgPACKAGE_VERSION='1.0.4'
600c2b339b4SmrgPACKAGE_STRING='xclock 1.0.4'
601e9554658SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
602e9554658Smrg
603c2b339b4Smrg# Factoring default headers for most tests.
604c2b339b4Smrgac_includes_default="\
605c2b339b4Smrg#include <stdio.h>
606c2b339b4Smrg#ifdef HAVE_SYS_TYPES_H
607c2b339b4Smrg# include <sys/types.h>
608c2b339b4Smrg#endif
609c2b339b4Smrg#ifdef HAVE_SYS_STAT_H
610c2b339b4Smrg# include <sys/stat.h>
611c2b339b4Smrg#endif
612c2b339b4Smrg#ifdef STDC_HEADERS
613c2b339b4Smrg# include <stdlib.h>
614c2b339b4Smrg# include <stddef.h>
615c2b339b4Smrg#else
616c2b339b4Smrg# ifdef HAVE_STDLIB_H
617c2b339b4Smrg#  include <stdlib.h>
618c2b339b4Smrg# endif
619c2b339b4Smrg#endif
620c2b339b4Smrg#ifdef HAVE_STRING_H
621c2b339b4Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622c2b339b4Smrg#  include <memory.h>
623c2b339b4Smrg# endif
624c2b339b4Smrg# include <string.h>
625c2b339b4Smrg#endif
626c2b339b4Smrg#ifdef HAVE_STRINGS_H
627c2b339b4Smrg# include <strings.h>
628c2b339b4Smrg#endif
629c2b339b4Smrg#ifdef HAVE_INTTYPES_H
630c2b339b4Smrg# include <inttypes.h>
631c2b339b4Smrg#endif
632c2b339b4Smrg#ifdef HAVE_STDINT_H
633c2b339b4Smrg# include <stdint.h>
634c2b339b4Smrg#endif
635c2b339b4Smrg#ifdef HAVE_UNISTD_H
636c2b339b4Smrg# include <unistd.h>
637c2b339b4Smrg#endif"
638c2b339b4Smrg
639c2b339b4Smrgac_subst_vars='am__EXEEXT_FALSE
640c2b339b4Smrgam__EXEEXT_TRUE
641c2b339b4SmrgLTLIBOBJS
642c2b339b4SmrgLIBOBJS
643e9554658Smrgappdefaultdir
644c2b339b4SmrgAPPDEFS_LIBS
645c2b339b4SmrgAPPDEFS_CFLAGS
646c2b339b4SmrgXCLOCK_LIBS
647c2b339b4SmrgXCLOCK_CFLAGS
648c2b339b4SmrgXKB_LIBS
649c2b339b4SmrgXKB_CFLAGS
650c2b339b4SmrgXFT_LIBS
651c2b339b4SmrgXFT_CFLAGS
652c2b339b4SmrgXAW_LIBS
653c2b339b4SmrgXAW_CFLAGS
654c2b339b4SmrgXCLOCK_X11_LIBS
655c2b339b4SmrgXCLOCK_X11_CFLAGS
656c2b339b4SmrgPKG_CONFIG
657e9554658SmrgADMIN_MAN_DIR
658c2b339b4SmrgDRIVER_MAN_DIR
659c2b339b4SmrgMISC_MAN_DIR
660c2b339b4SmrgFILE_MAN_DIR
661c2b339b4SmrgLIB_MAN_DIR
662c2b339b4SmrgAPP_MAN_DIR
663c2b339b4SmrgADMIN_MAN_SUFFIX
664c2b339b4SmrgDRIVER_MAN_SUFFIX
665c2b339b4SmrgMISC_MAN_SUFFIX
666c2b339b4SmrgFILE_MAN_SUFFIX
667c2b339b4SmrgLIB_MAN_SUFFIX
668c2b339b4SmrgAPP_MAN_SUFFIX
669c2b339b4Smrghost_os
670c2b339b4Smrghost_vendor
671c2b339b4Smrghost_cpu
672c2b339b4Smrghost
673c2b339b4Smrgbuild_os
674c2b339b4Smrgbuild_vendor
675c2b339b4Smrgbuild_cpu
676c2b339b4Smrgbuild
677c2b339b4Smrgdistcleancheck_listfiles
678c2b339b4SmrgCHANGELOG_CMD
679c2b339b4SmrgAM_BACKSLASH
680c2b339b4SmrgAM_DEFAULT_VERBOSITY
681c2b339b4SmrgCWARNFLAGS
682c2b339b4SmrgEGREP
683c2b339b4SmrgGREP
684c2b339b4SmrgCPP
685c2b339b4Smrgam__fastdepCC_FALSE
686c2b339b4Smrgam__fastdepCC_TRUE
687c2b339b4SmrgCCDEPMODE
688c2b339b4SmrgAMDEPBACKSLASH
689c2b339b4SmrgAMDEP_FALSE
690c2b339b4SmrgAMDEP_TRUE
691c2b339b4Smrgam__quote
692c2b339b4Smrgam__include
693c2b339b4SmrgDEPDIR
694c2b339b4SmrgOBJEXT
695c2b339b4SmrgEXEEXT
696c2b339b4Smrgac_ct_CC
697c2b339b4SmrgCPPFLAGS
698c2b339b4SmrgLDFLAGS
699c2b339b4SmrgCFLAGS
700c2b339b4SmrgCC
701c2b339b4SmrgMAINT
702c2b339b4SmrgMAINTAINER_MODE_FALSE
703c2b339b4SmrgMAINTAINER_MODE_TRUE
704c2b339b4Smrgam__untar
705c2b339b4Smrgam__tar
706c2b339b4SmrgAMTAR
707c2b339b4Smrgam__leading_dot
708c2b339b4SmrgSET_MAKE
709c2b339b4SmrgAWK
710c2b339b4Smrgmkdir_p
711c2b339b4SmrgMKDIR_P
712c2b339b4SmrgINSTALL_STRIP_PROGRAM
713c2b339b4SmrgSTRIP
714c2b339b4Smrginstall_sh
715c2b339b4SmrgMAKEINFO
716c2b339b4SmrgAUTOHEADER
717c2b339b4SmrgAUTOMAKE
718c2b339b4SmrgAUTOCONF
719c2b339b4SmrgACLOCAL
720c2b339b4SmrgVERSION
721c2b339b4SmrgPACKAGE
722c2b339b4SmrgCYGPATH_W
723c2b339b4Smrgam__isrc
724c2b339b4SmrgINSTALL_DATA
725c2b339b4SmrgINSTALL_SCRIPT
726c2b339b4SmrgINSTALL_PROGRAM
727c2b339b4Smrgtarget_alias
728c2b339b4Smrghost_alias
729c2b339b4Smrgbuild_alias
730c2b339b4SmrgLIBS
731c2b339b4SmrgECHO_T
732c2b339b4SmrgECHO_N
733c2b339b4SmrgECHO_C
734c2b339b4SmrgDEFS
735c2b339b4Smrgmandir
736c2b339b4Smrglocaledir
737c2b339b4Smrglibdir
738c2b339b4Smrgpsdir
739c2b339b4Smrgpdfdir
740c2b339b4Smrgdvidir
741c2b339b4Smrghtmldir
742c2b339b4Smrginfodir
743c2b339b4Smrgdocdir
744c2b339b4Smrgoldincludedir
745c2b339b4Smrgincludedir
746c2b339b4Smrglocalstatedir
747c2b339b4Smrgsharedstatedir
748c2b339b4Smrgsysconfdir
749c2b339b4Smrgdatadir
750c2b339b4Smrgdatarootdir
751c2b339b4Smrglibexecdir
752c2b339b4Smrgsbindir
753c2b339b4Smrgbindir
754c2b339b4Smrgprogram_transform_name
755c2b339b4Smrgprefix
756c2b339b4Smrgexec_prefix
757c2b339b4SmrgPACKAGE_BUGREPORT
758c2b339b4SmrgPACKAGE_STRING
759c2b339b4SmrgPACKAGE_VERSION
760c2b339b4SmrgPACKAGE_TARNAME
761c2b339b4SmrgPACKAGE_NAME
762c2b339b4SmrgPATH_SEPARATOR
763c2b339b4SmrgSHELL'
764e9554658Smrgac_subst_files=''
765c2b339b4Smrgac_user_opts='
766c2b339b4Smrgenable_option_checking
767c2b339b4Smrgenable_maintainer_mode
768c2b339b4Smrgenable_dependency_tracking
769c2b339b4Smrgenable_silent_rules
770c2b339b4Smrgenable_strict_compilation
771c2b339b4Smrgwith_release_version
772c2b339b4Smrgwith_xft
773c2b339b4Smrgwith_xkb
774c2b339b4Smrgwith_appdefaultdir
775c2b339b4Smrg'
776e9554658Smrg      ac_precious_vars='build_alias
777e9554658Smrghost_alias
778e9554658Smrgtarget_alias
779e9554658SmrgCC
780e9554658SmrgCFLAGS
781e9554658SmrgLDFLAGS
782e9554658SmrgLIBS
783e9554658SmrgCPPFLAGS
784c2b339b4SmrgCPP
785e9554658SmrgPKG_CONFIG
786e9554658SmrgXCLOCK_X11_CFLAGS
787e9554658SmrgXCLOCK_X11_LIBS
788c2b339b4SmrgXAW_CFLAGS
789c2b339b4SmrgXAW_LIBS
790e9554658SmrgXFT_CFLAGS
791e9554658SmrgXFT_LIBS
792e9554658SmrgXKB_CFLAGS
793e9554658SmrgXKB_LIBS
794e9554658SmrgAPPDEFS_CFLAGS
795e9554658SmrgAPPDEFS_LIBS'
796e9554658Smrg
797e9554658Smrg
798e9554658Smrg# Initialize some variables set by options.
799e9554658Smrgac_init_help=
800e9554658Smrgac_init_version=false
801c2b339b4Smrgac_unrecognized_opts=
802c2b339b4Smrgac_unrecognized_sep=
803e9554658Smrg# The variables have the same names as the options, with
804e9554658Smrg# dashes changed to underlines.
805e9554658Smrgcache_file=/dev/null
806e9554658Smrgexec_prefix=NONE
807e9554658Smrgno_create=
808e9554658Smrgno_recursion=
809e9554658Smrgprefix=NONE
810e9554658Smrgprogram_prefix=NONE
811e9554658Smrgprogram_suffix=NONE
812e9554658Smrgprogram_transform_name=s,x,x,
813e9554658Smrgsilent=
814e9554658Smrgsite=
815e9554658Smrgsrcdir=
816e9554658Smrgverbose=
817e9554658Smrgx_includes=NONE
818e9554658Smrgx_libraries=NONE
819e9554658Smrg
820e9554658Smrg# Installation directory options.
821e9554658Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
822e9554658Smrg# and all the variables that are supposed to be based on exec_prefix
823e9554658Smrg# by default will actually change.
824e9554658Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
825e9554658Smrg# (The list follows the same order as the GNU Coding Standards.)
826e9554658Smrgbindir='${exec_prefix}/bin'
827e9554658Smrgsbindir='${exec_prefix}/sbin'
828e9554658Smrglibexecdir='${exec_prefix}/libexec'
829e9554658Smrgdatarootdir='${prefix}/share'
830e9554658Smrgdatadir='${datarootdir}'
831e9554658Smrgsysconfdir='${prefix}/etc'
832e9554658Smrgsharedstatedir='${prefix}/com'
833e9554658Smrglocalstatedir='${prefix}/var'
834e9554658Smrgincludedir='${prefix}/include'
835e9554658Smrgoldincludedir='/usr/include'
836e9554658Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
837e9554658Smrginfodir='${datarootdir}/info'
838e9554658Smrghtmldir='${docdir}'
839e9554658Smrgdvidir='${docdir}'
840e9554658Smrgpdfdir='${docdir}'
841e9554658Smrgpsdir='${docdir}'
842e9554658Smrglibdir='${exec_prefix}/lib'
843e9554658Smrglocaledir='${datarootdir}/locale'
844e9554658Smrgmandir='${datarootdir}/man'
845e9554658Smrg
846e9554658Smrgac_prev=
847e9554658Smrgac_dashdash=
848e9554658Smrgfor ac_option
849e9554658Smrgdo
850e9554658Smrg  # If the previous option needs an argument, assign it.
851e9554658Smrg  if test -n "$ac_prev"; then
852e9554658Smrg    eval $ac_prev=\$ac_option
853e9554658Smrg    ac_prev=
854e9554658Smrg    continue
855e9554658Smrg  fi
856e9554658Smrg
857e9554658Smrg  case $ac_option in
858e9554658Smrg  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
859e9554658Smrg  *)	ac_optarg=yes ;;
860e9554658Smrg  esac
861e9554658Smrg
862e9554658Smrg  # Accept the important Cygnus configure options, so we can diagnose typos.
863e9554658Smrg
864e9554658Smrg  case $ac_dashdash$ac_option in
865e9554658Smrg  --)
866e9554658Smrg    ac_dashdash=yes ;;
867e9554658Smrg
868e9554658Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
869e9554658Smrg    ac_prev=bindir ;;
870e9554658Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
871e9554658Smrg    bindir=$ac_optarg ;;
872e9554658Smrg
873e9554658Smrg  -build | --build | --buil | --bui | --bu)
874e9554658Smrg    ac_prev=build_alias ;;
875e9554658Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
876e9554658Smrg    build_alias=$ac_optarg ;;
877e9554658Smrg
878e9554658Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
879e9554658Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
880e9554658Smrg    ac_prev=cache_file ;;
881e9554658Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
882e9554658Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
883e9554658Smrg    cache_file=$ac_optarg ;;
884e9554658Smrg
885e9554658Smrg  --config-cache | -C)
886e9554658Smrg    cache_file=config.cache ;;
887e9554658Smrg
888e9554658Smrg  -datadir | --datadir | --datadi | --datad)
889e9554658Smrg    ac_prev=datadir ;;
890e9554658Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
891e9554658Smrg    datadir=$ac_optarg ;;
892e9554658Smrg
893e9554658Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
894e9554658Smrg  | --dataroo | --dataro | --datar)
895e9554658Smrg    ac_prev=datarootdir ;;
896e9554658Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
897e9554658Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
898e9554658Smrg    datarootdir=$ac_optarg ;;
899e9554658Smrg
900e9554658Smrg  -disable-* | --disable-*)
901c2b339b4Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
902e9554658Smrg    # Reject names that are not valid shell variable names.
903c2b339b4Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904c2b339b4Smrg      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
905e9554658Smrg   { (exit 1); exit 1; }; }
906c2b339b4Smrg    ac_useropt_orig=$ac_useropt
907c2b339b4Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908c2b339b4Smrg    case $ac_user_opts in
909c2b339b4Smrg      *"
910c2b339b4Smrg"enable_$ac_useropt"
911c2b339b4Smrg"*) ;;
912c2b339b4Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
913c2b339b4Smrg	 ac_unrecognized_sep=', ';;
914c2b339b4Smrg    esac
915c2b339b4Smrg    eval enable_$ac_useropt=no ;;
916e9554658Smrg
917e9554658Smrg  -docdir | --docdir | --docdi | --doc | --do)
918e9554658Smrg    ac_prev=docdir ;;
919e9554658Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
920e9554658Smrg    docdir=$ac_optarg ;;
921e9554658Smrg
922e9554658Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
923e9554658Smrg    ac_prev=dvidir ;;
924e9554658Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
925e9554658Smrg    dvidir=$ac_optarg ;;
926e9554658Smrg
927e9554658Smrg  -enable-* | --enable-*)
928c2b339b4Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
929e9554658Smrg    # Reject names that are not valid shell variable names.
930c2b339b4Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931c2b339b4Smrg      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
932e9554658Smrg   { (exit 1); exit 1; }; }
933c2b339b4Smrg    ac_useropt_orig=$ac_useropt
934c2b339b4Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935c2b339b4Smrg    case $ac_user_opts in
936c2b339b4Smrg      *"
937c2b339b4Smrg"enable_$ac_useropt"
938c2b339b4Smrg"*) ;;
939c2b339b4Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
940c2b339b4Smrg	 ac_unrecognized_sep=', ';;
941c2b339b4Smrg    esac
942c2b339b4Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
943e9554658Smrg
944e9554658Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
945e9554658Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
946e9554658Smrg  | --exec | --exe | --ex)
947e9554658Smrg    ac_prev=exec_prefix ;;
948e9554658Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
949e9554658Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
950e9554658Smrg  | --exec=* | --exe=* | --ex=*)
951e9554658Smrg    exec_prefix=$ac_optarg ;;
952e9554658Smrg
953e9554658Smrg  -gas | --gas | --ga | --g)
954e9554658Smrg    # Obsolete; use --with-gas.
955e9554658Smrg    with_gas=yes ;;
956e9554658Smrg
957e9554658Smrg  -help | --help | --hel | --he | -h)
958e9554658Smrg    ac_init_help=long ;;
959e9554658Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
960e9554658Smrg    ac_init_help=recursive ;;
961e9554658Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
962e9554658Smrg    ac_init_help=short ;;
963e9554658Smrg
964e9554658Smrg  -host | --host | --hos | --ho)
965e9554658Smrg    ac_prev=host_alias ;;
966e9554658Smrg  -host=* | --host=* | --hos=* | --ho=*)
967e9554658Smrg    host_alias=$ac_optarg ;;
968e9554658Smrg
969e9554658Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
970e9554658Smrg    ac_prev=htmldir ;;
971e9554658Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
972e9554658Smrg  | --ht=*)
973e9554658Smrg    htmldir=$ac_optarg ;;
974e9554658Smrg
975e9554658Smrg  -includedir | --includedir | --includedi | --included | --include \
976e9554658Smrg  | --includ | --inclu | --incl | --inc)
977e9554658Smrg    ac_prev=includedir ;;
978e9554658Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
979e9554658Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
980e9554658Smrg    includedir=$ac_optarg ;;
981e9554658Smrg
982e9554658Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
983e9554658Smrg    ac_prev=infodir ;;
984e9554658Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
985e9554658Smrg    infodir=$ac_optarg ;;
986e9554658Smrg
987e9554658Smrg  -libdir | --libdir | --libdi | --libd)
988e9554658Smrg    ac_prev=libdir ;;
989e9554658Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
990e9554658Smrg    libdir=$ac_optarg ;;
991e9554658Smrg
992e9554658Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
993e9554658Smrg  | --libexe | --libex | --libe)
994e9554658Smrg    ac_prev=libexecdir ;;
995e9554658Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
996e9554658Smrg  | --libexe=* | --libex=* | --libe=*)
997e9554658Smrg    libexecdir=$ac_optarg ;;
998e9554658Smrg
999e9554658Smrg  -localedir | --localedir | --localedi | --localed | --locale)
1000e9554658Smrg    ac_prev=localedir ;;
1001e9554658Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1002e9554658Smrg    localedir=$ac_optarg ;;
1003e9554658Smrg
1004e9554658Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
1005e9554658Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
1006e9554658Smrg    ac_prev=localstatedir ;;
1007e9554658Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1008e9554658Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1009e9554658Smrg    localstatedir=$ac_optarg ;;
1010e9554658Smrg
1011e9554658Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1012e9554658Smrg    ac_prev=mandir ;;
1013e9554658Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1014e9554658Smrg    mandir=$ac_optarg ;;
1015e9554658Smrg
1016e9554658Smrg  -nfp | --nfp | --nf)
1017e9554658Smrg    # Obsolete; use --without-fp.
1018e9554658Smrg    with_fp=no ;;
1019e9554658Smrg
1020e9554658Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1021e9554658Smrg  | --no-cr | --no-c | -n)
1022e9554658Smrg    no_create=yes ;;
1023e9554658Smrg
1024e9554658Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025e9554658Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1026e9554658Smrg    no_recursion=yes ;;
1027e9554658Smrg
1028e9554658Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1029e9554658Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1030e9554658Smrg  | --oldin | --oldi | --old | --ol | --o)
1031e9554658Smrg    ac_prev=oldincludedir ;;
1032e9554658Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1033e9554658Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1034e9554658Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1035e9554658Smrg    oldincludedir=$ac_optarg ;;
1036e9554658Smrg
1037e9554658Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1038e9554658Smrg    ac_prev=prefix ;;
1039e9554658Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1040e9554658Smrg    prefix=$ac_optarg ;;
1041e9554658Smrg
1042e9554658Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1043e9554658Smrg  | --program-pre | --program-pr | --program-p)
1044e9554658Smrg    ac_prev=program_prefix ;;
1045e9554658Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1046e9554658Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1047e9554658Smrg    program_prefix=$ac_optarg ;;
1048e9554658Smrg
1049e9554658Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1050e9554658Smrg  | --program-suf | --program-su | --program-s)
1051e9554658Smrg    ac_prev=program_suffix ;;
1052e9554658Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1053e9554658Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1054e9554658Smrg    program_suffix=$ac_optarg ;;
1055e9554658Smrg
1056e9554658Smrg  -program-transform-name | --program-transform-name \
1057e9554658Smrg  | --program-transform-nam | --program-transform-na \
1058e9554658Smrg  | --program-transform-n | --program-transform- \
1059e9554658Smrg  | --program-transform | --program-transfor \
1060e9554658Smrg  | --program-transfo | --program-transf \
1061e9554658Smrg  | --program-trans | --program-tran \
1062e9554658Smrg  | --progr-tra | --program-tr | --program-t)
1063e9554658Smrg    ac_prev=program_transform_name ;;
1064e9554658Smrg  -program-transform-name=* | --program-transform-name=* \
1065e9554658Smrg  | --program-transform-nam=* | --program-transform-na=* \
1066e9554658Smrg  | --program-transform-n=* | --program-transform-=* \
1067e9554658Smrg  | --program-transform=* | --program-transfor=* \
1068e9554658Smrg  | --program-transfo=* | --program-transf=* \
1069e9554658Smrg  | --program-trans=* | --program-tran=* \
1070e9554658Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
1071e9554658Smrg    program_transform_name=$ac_optarg ;;
1072e9554658Smrg
1073e9554658Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1074e9554658Smrg    ac_prev=pdfdir ;;
1075e9554658Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1076e9554658Smrg    pdfdir=$ac_optarg ;;
1077e9554658Smrg
1078e9554658Smrg  -psdir | --psdir | --psdi | --psd | --ps)
1079e9554658Smrg    ac_prev=psdir ;;
1080e9554658Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1081e9554658Smrg    psdir=$ac_optarg ;;
1082e9554658Smrg
1083e9554658Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084e9554658Smrg  | -silent | --silent | --silen | --sile | --sil)
1085e9554658Smrg    silent=yes ;;
1086e9554658Smrg
1087e9554658Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1088e9554658Smrg    ac_prev=sbindir ;;
1089e9554658Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1090e9554658Smrg  | --sbi=* | --sb=*)
1091e9554658Smrg    sbindir=$ac_optarg ;;
1092e9554658Smrg
1093e9554658Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1094e9554658Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1095e9554658Smrg  | --sharedst | --shareds | --shared | --share | --shar \
1096e9554658Smrg  | --sha | --sh)
1097e9554658Smrg    ac_prev=sharedstatedir ;;
1098e9554658Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1099e9554658Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1100e9554658Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1101e9554658Smrg  | --sha=* | --sh=*)
1102e9554658Smrg    sharedstatedir=$ac_optarg ;;
1103e9554658Smrg
1104e9554658Smrg  -site | --site | --sit)
1105e9554658Smrg    ac_prev=site ;;
1106e9554658Smrg  -site=* | --site=* | --sit=*)
1107e9554658Smrg    site=$ac_optarg ;;
1108e9554658Smrg
1109e9554658Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1110e9554658Smrg    ac_prev=srcdir ;;
1111e9554658Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1112e9554658Smrg    srcdir=$ac_optarg ;;
1113e9554658Smrg
1114e9554658Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1115e9554658Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
1116e9554658Smrg    ac_prev=sysconfdir ;;
1117e9554658Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1118e9554658Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1119e9554658Smrg    sysconfdir=$ac_optarg ;;
1120e9554658Smrg
1121e9554658Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
1122e9554658Smrg    ac_prev=target_alias ;;
1123e9554658Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1124e9554658Smrg    target_alias=$ac_optarg ;;
1125e9554658Smrg
1126e9554658Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1127e9554658Smrg    verbose=yes ;;
1128e9554658Smrg
1129e9554658Smrg  -version | --version | --versio | --versi | --vers | -V)
1130e9554658Smrg    ac_init_version=: ;;
1131e9554658Smrg
1132e9554658Smrg  -with-* | --with-*)
1133c2b339b4Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1134e9554658Smrg    # Reject names that are not valid shell variable names.
1135c2b339b4Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136c2b339b4Smrg      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1137e9554658Smrg   { (exit 1); exit 1; }; }
1138c2b339b4Smrg    ac_useropt_orig=$ac_useropt
1139c2b339b4Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140c2b339b4Smrg    case $ac_user_opts in
1141c2b339b4Smrg      *"
1142c2b339b4Smrg"with_$ac_useropt"
1143c2b339b4Smrg"*) ;;
1144c2b339b4Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1145c2b339b4Smrg	 ac_unrecognized_sep=', ';;
1146c2b339b4Smrg    esac
1147c2b339b4Smrg    eval with_$ac_useropt=\$ac_optarg ;;
1148e9554658Smrg
1149e9554658Smrg  -without-* | --without-*)
1150c2b339b4Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1151e9554658Smrg    # Reject names that are not valid shell variable names.
1152c2b339b4Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153c2b339b4Smrg      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1154e9554658Smrg   { (exit 1); exit 1; }; }
1155c2b339b4Smrg    ac_useropt_orig=$ac_useropt
1156c2b339b4Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157c2b339b4Smrg    case $ac_user_opts in
1158c2b339b4Smrg      *"
1159c2b339b4Smrg"with_$ac_useropt"
1160c2b339b4Smrg"*) ;;
1161c2b339b4Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1162c2b339b4Smrg	 ac_unrecognized_sep=', ';;
1163c2b339b4Smrg    esac
1164c2b339b4Smrg    eval with_$ac_useropt=no ;;
1165e9554658Smrg
1166e9554658Smrg  --x)
1167e9554658Smrg    # Obsolete; use --with-x.
1168e9554658Smrg    with_x=yes ;;
1169e9554658Smrg
1170e9554658Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171e9554658Smrg  | --x-incl | --x-inc | --x-in | --x-i)
1172e9554658Smrg    ac_prev=x_includes ;;
1173e9554658Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174e9554658Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175e9554658Smrg    x_includes=$ac_optarg ;;
1176e9554658Smrg
1177e9554658Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178e9554658Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179e9554658Smrg    ac_prev=x_libraries ;;
1180e9554658Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181e9554658Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182e9554658Smrg    x_libraries=$ac_optarg ;;
1183e9554658Smrg
1184c2b339b4Smrg  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1185e9554658SmrgTry \`$0 --help' for more information." >&2
1186e9554658Smrg   { (exit 1); exit 1; }; }
1187e9554658Smrg    ;;
1188e9554658Smrg
1189e9554658Smrg  *=*)
1190e9554658Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191e9554658Smrg    # Reject names that are not valid shell variable names.
1192e9554658Smrg    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1193c2b339b4Smrg      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1194e9554658Smrg   { (exit 1); exit 1; }; }
1195e9554658Smrg    eval $ac_envvar=\$ac_optarg
1196e9554658Smrg    export $ac_envvar ;;
1197e9554658Smrg
1198e9554658Smrg  *)
1199e9554658Smrg    # FIXME: should be removed in autoconf 3.0.
1200c2b339b4Smrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201e9554658Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202c2b339b4Smrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203e9554658Smrg    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1204e9554658Smrg    ;;
1205e9554658Smrg
1206e9554658Smrg  esac
1207e9554658Smrgdone
1208e9554658Smrg
1209e9554658Smrgif test -n "$ac_prev"; then
1210e9554658Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211c2b339b4Smrg  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1212e9554658Smrg   { (exit 1); exit 1; }; }
1213e9554658Smrgfi
1214e9554658Smrg
1215c2b339b4Smrgif test -n "$ac_unrecognized_opts"; then
1216c2b339b4Smrg  case $enable_option_checking in
1217c2b339b4Smrg    no) ;;
1218c2b339b4Smrg    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1219c2b339b4Smrg   { (exit 1); exit 1; }; } ;;
1220c2b339b4Smrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1221c2b339b4Smrg  esac
1222c2b339b4Smrgfi
1223c2b339b4Smrg
1224c2b339b4Smrg# Check all directory arguments for consistency.
1225e9554658Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1226e9554658Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1227e9554658Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1228e9554658Smrg		libdir localedir mandir
1229e9554658Smrgdo
1230e9554658Smrg  eval ac_val=\$$ac_var
1231c2b339b4Smrg  # Remove trailing slashes.
1232c2b339b4Smrg  case $ac_val in
1233c2b339b4Smrg    */ )
1234c2b339b4Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1235c2b339b4Smrg      eval $ac_var=\$ac_val;;
1236c2b339b4Smrg  esac
1237c2b339b4Smrg  # Be sure to have absolute directory names.
1238e9554658Smrg  case $ac_val in
1239e9554658Smrg    [\\/$]* | ?:[\\/]* )  continue;;
1240e9554658Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1241e9554658Smrg  esac
1242c2b339b4Smrg  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1243e9554658Smrg   { (exit 1); exit 1; }; }
1244e9554658Smrgdone
1245e9554658Smrg
1246e9554658Smrg# There might be people who depend on the old broken behavior: `$host'
1247e9554658Smrg# used to hold the argument of --host etc.
1248e9554658Smrg# FIXME: To remove some day.
1249e9554658Smrgbuild=$build_alias
1250e9554658Smrghost=$host_alias
1251e9554658Smrgtarget=$target_alias
1252e9554658Smrg
1253e9554658Smrg# FIXME: To remove some day.
1254e9554658Smrgif test "x$host_alias" != x; then
1255e9554658Smrg  if test "x$build_alias" = x; then
1256e9554658Smrg    cross_compiling=maybe
1257c2b339b4Smrg    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1258e9554658Smrg    If a cross compiler is detected then cross compile mode will be used." >&2
1259e9554658Smrg  elif test "x$build_alias" != "x$host_alias"; then
1260e9554658Smrg    cross_compiling=yes
1261e9554658Smrg  fi
1262e9554658Smrgfi
1263e9554658Smrg
1264e9554658Smrgac_tool_prefix=
1265e9554658Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
1266e9554658Smrg
1267e9554658Smrgtest "$silent" = yes && exec 6>/dev/null
1268e9554658Smrg
1269e9554658Smrg
1270e9554658Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1271e9554658Smrgac_ls_di=`ls -di .` &&
1272e9554658Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1273c2b339b4Smrg  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1274e9554658Smrg   { (exit 1); exit 1; }; }
1275e9554658Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276c2b339b4Smrg  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1277e9554658Smrg   { (exit 1); exit 1; }; }
1278e9554658Smrg
1279e9554658Smrg
1280e9554658Smrg# Find the source files, if location was not specified.
1281e9554658Smrgif test -z "$srcdir"; then
1282e9554658Smrg  ac_srcdir_defaulted=yes
1283e9554658Smrg  # Try the directory containing this script, then the parent directory.
1284c2b339b4Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
1285c2b339b4Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1286c2b339b4Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
1287c2b339b4Smrg	 X"$as_myself" : 'X\(//\)$' \| \
1288c2b339b4Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1289c2b339b4Smrg$as_echo X"$as_myself" |
1290e9554658Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1291e9554658Smrg	    s//\1/
1292e9554658Smrg	    q
1293e9554658Smrg	  }
1294e9554658Smrg	  /^X\(\/\/\)[^/].*/{
1295e9554658Smrg	    s//\1/
1296e9554658Smrg	    q
1297e9554658Smrg	  }
1298e9554658Smrg	  /^X\(\/\/\)$/{
1299e9554658Smrg	    s//\1/
1300e9554658Smrg	    q
1301e9554658Smrg	  }
1302e9554658Smrg	  /^X\(\/\).*/{
1303e9554658Smrg	    s//\1/
1304e9554658Smrg	    q
1305e9554658Smrg	  }
1306e9554658Smrg	  s/.*/./; q'`
1307e9554658Smrg  srcdir=$ac_confdir
1308e9554658Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
1309e9554658Smrg    srcdir=..
1310e9554658Smrg  fi
1311e9554658Smrgelse
1312e9554658Smrg  ac_srcdir_defaulted=no
1313e9554658Smrgfi
1314e9554658Smrgif test ! -r "$srcdir/$ac_unique_file"; then
1315e9554658Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1316c2b339b4Smrg  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1317e9554658Smrg   { (exit 1); exit 1; }; }
1318e9554658Smrgfi
1319e9554658Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1320e9554658Smrgac_abs_confdir=`(
1321c2b339b4Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1322e9554658Smrg   { (exit 1); exit 1; }; }
1323e9554658Smrg	pwd)`
1324e9554658Smrg# When building in place, set srcdir=.
1325e9554658Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1326e9554658Smrg  srcdir=.
1327e9554658Smrgfi
1328e9554658Smrg# Remove unnecessary trailing slashes from srcdir.
1329e9554658Smrg# Double slashes in file names in object file debugging info
1330e9554658Smrg# mess up M-x gdb in Emacs.
1331e9554658Smrgcase $srcdir in
1332e9554658Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1333e9554658Smrgesac
1334e9554658Smrgfor ac_var in $ac_precious_vars; do
1335e9554658Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1336e9554658Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
1337e9554658Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1338e9554658Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1339e9554658Smrgdone
1340e9554658Smrg
1341e9554658Smrg#
1342e9554658Smrg# Report the --help message.
1343e9554658Smrg#
1344e9554658Smrgif test "$ac_init_help" = "long"; then
1345e9554658Smrg  # Omit some internal or obsolete options to make the list less imposing.
1346e9554658Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
1347e9554658Smrg  cat <<_ACEOF
1348c2b339b4Smrg\`configure' configures xclock 1.0.4 to adapt to many kinds of systems.
1349e9554658Smrg
1350e9554658SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
1351e9554658Smrg
1352e9554658SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1353e9554658SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
1354e9554658Smrg
1355e9554658SmrgDefaults for the options are specified in brackets.
1356e9554658Smrg
1357e9554658SmrgConfiguration:
1358e9554658Smrg  -h, --help              display this help and exit
1359e9554658Smrg      --help=short        display options specific to this package
1360e9554658Smrg      --help=recursive    display the short help of all the included packages
1361e9554658Smrg  -V, --version           display version information and exit
1362e9554658Smrg  -q, --quiet, --silent   do not print \`checking...' messages
1363e9554658Smrg      --cache-file=FILE   cache test results in FILE [disabled]
1364e9554658Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
1365e9554658Smrg  -n, --no-create         do not create output files
1366e9554658Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1367e9554658Smrg
1368e9554658SmrgInstallation directories:
1369e9554658Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
1370c2b339b4Smrg                          [$ac_default_prefix]
1371e9554658Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1372c2b339b4Smrg                          [PREFIX]
1373e9554658Smrg
1374e9554658SmrgBy default, \`make install' will install all the files in
1375e9554658Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1376e9554658Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1377e9554658Smrgfor instance \`--prefix=\$HOME'.
1378e9554658Smrg
1379e9554658SmrgFor better control, use the options below.
1380e9554658Smrg
1381e9554658SmrgFine tuning of the installation directories:
1382c2b339b4Smrg  --bindir=DIR            user executables [EPREFIX/bin]
1383c2b339b4Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1384c2b339b4Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
1385c2b339b4Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1386c2b339b4Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1387c2b339b4Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1388c2b339b4Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
1389c2b339b4Smrg  --includedir=DIR        C header files [PREFIX/include]
1390c2b339b4Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1391c2b339b4Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1392c2b339b4Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1393c2b339b4Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
1394c2b339b4Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1395c2b339b4Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
1396c2b339b4Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xclock]
1397c2b339b4Smrg  --htmldir=DIR           html documentation [DOCDIR]
1398c2b339b4Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
1399c2b339b4Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
1400c2b339b4Smrg  --psdir=DIR             ps documentation [DOCDIR]
1401e9554658Smrg_ACEOF
1402e9554658Smrg
1403e9554658Smrg  cat <<\_ACEOF
1404e9554658Smrg
1405e9554658SmrgProgram names:
1406e9554658Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
1407e9554658Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
1408e9554658Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1409e9554658Smrg
1410e9554658SmrgSystem types:
1411e9554658Smrg  --build=BUILD     configure for building on BUILD [guessed]
1412e9554658Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1413e9554658Smrg_ACEOF
1414e9554658Smrgfi
1415e9554658Smrg
1416e9554658Smrgif test -n "$ac_init_help"; then
1417e9554658Smrg  case $ac_init_help in
1418c2b339b4Smrg     short | recursive ) echo "Configuration of xclock 1.0.4:";;
1419e9554658Smrg   esac
1420e9554658Smrg  cat <<\_ACEOF
1421e9554658Smrg
1422e9554658SmrgOptional Features:
1423c2b339b4Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
1424e9554658Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1425e9554658Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1426e9554658Smrg  --enable-maintainer-mode  enable make rules and dependencies not useful
1427e9554658Smrg			  (and sometimes confusing) to the casual installer
1428e9554658Smrg  --disable-dependency-tracking  speeds up one-time build
1429e9554658Smrg  --enable-dependency-tracking   do not reject slow dependency extractors
1430c2b339b4Smrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
1431c2b339b4Smrg  --disable-silent-rules         verbose build output (undo: `make V=0')
1432c2b339b4Smrg  --enable-strict-compilation
1433c2b339b4Smrg                          Enable all warnings from compiler and make them
1434c2b339b4Smrg                          errors (default: disabled)
1435e9554658Smrg
1436e9554658SmrgOptional Packages:
1437e9554658Smrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1438e9554658Smrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1439e9554658Smrg  --with-release-version=STRING
1440e9554658Smrg                          Use release version string in package name
1441c2b339b4Smrg  --with-xft              Use Xft2 and Xrender for rendering (Default is YES)
1442c2b339b4Smrg  --with-xkb              Use XKB to sound bells (Default is YES)
1443c2b339b4Smrg  --with-appdefaultdir=<pathname>
1444c2b339b4Smrg                          specify directory for app-defaults files (default is
1445c2b339b4Smrg                          autodetected)
1446e9554658Smrg
1447e9554658SmrgSome influential environment variables:
1448e9554658Smrg  CC          C compiler command
1449e9554658Smrg  CFLAGS      C compiler flags
1450e9554658Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1451e9554658Smrg              nonstandard directory <lib dir>
1452e9554658Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
1453e9554658Smrg  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1454e9554658Smrg              you have headers in a nonstandard directory <include dir>
1455c2b339b4Smrg  CPP         C preprocessor
1456e9554658Smrg  PKG_CONFIG  path to pkg-config utility
1457e9554658Smrg  XCLOCK_X11_CFLAGS
1458e9554658Smrg              C compiler flags for XCLOCK_X11, overriding pkg-config
1459e9554658Smrg  XCLOCK_X11_LIBS
1460e9554658Smrg              linker flags for XCLOCK_X11, overriding pkg-config
1461c2b339b4Smrg  XAW_CFLAGS  C compiler flags for XAW, overriding pkg-config
1462c2b339b4Smrg  XAW_LIBS    linker flags for XAW, overriding pkg-config
1463e9554658Smrg  XFT_CFLAGS  C compiler flags for XFT, overriding pkg-config
1464e9554658Smrg  XFT_LIBS    linker flags for XFT, overriding pkg-config
1465e9554658Smrg  XKB_CFLAGS  C compiler flags for XKB, overriding pkg-config
1466e9554658Smrg  XKB_LIBS    linker flags for XKB, overriding pkg-config
1467e9554658Smrg  APPDEFS_CFLAGS
1468e9554658Smrg              C compiler flags for APPDEFS, overriding pkg-config
1469e9554658Smrg  APPDEFS_LIBS
1470e9554658Smrg              linker flags for APPDEFS, overriding pkg-config
1471e9554658Smrg
1472e9554658SmrgUse these variables to override the choices made by `configure' or to help
1473e9554658Smrgit to find libraries and programs with nonstandard names/locations.
1474e9554658Smrg
1475e9554658SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1476e9554658Smrg_ACEOF
1477e9554658Smrgac_status=$?
1478e9554658Smrgfi
1479e9554658Smrg
1480e9554658Smrgif test "$ac_init_help" = "recursive"; then
1481e9554658Smrg  # If there are subdirs, report their specific --help.
1482e9554658Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483c2b339b4Smrg    test -d "$ac_dir" ||
1484c2b339b4Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1485c2b339b4Smrg      continue
1486e9554658Smrg    ac_builddir=.
1487e9554658Smrg
1488e9554658Smrgcase "$ac_dir" in
1489e9554658Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490e9554658Smrg*)
1491c2b339b4Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1492e9554658Smrg  # A ".." for each directory in $ac_dir_suffix.
1493c2b339b4Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494e9554658Smrg  case $ac_top_builddir_sub in
1495e9554658Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496e9554658Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497e9554658Smrg  esac ;;
1498e9554658Smrgesac
1499e9554658Smrgac_abs_top_builddir=$ac_pwd
1500e9554658Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1501e9554658Smrg# for backward compatibility:
1502e9554658Smrgac_top_builddir=$ac_top_build_prefix
1503e9554658Smrg
1504e9554658Smrgcase $srcdir in
1505e9554658Smrg  .)  # We are building in place.
1506e9554658Smrg    ac_srcdir=.
1507e9554658Smrg    ac_top_srcdir=$ac_top_builddir_sub
1508e9554658Smrg    ac_abs_top_srcdir=$ac_pwd ;;
1509e9554658Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1510e9554658Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
1511e9554658Smrg    ac_top_srcdir=$srcdir
1512e9554658Smrg    ac_abs_top_srcdir=$srcdir ;;
1513e9554658Smrg  *) # Relative name.
1514e9554658Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515e9554658Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1516e9554658Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1517e9554658Smrgesac
1518e9554658Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519e9554658Smrg
1520e9554658Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
1521e9554658Smrg    # Check for guested configure.
1522e9554658Smrg    if test -f "$ac_srcdir/configure.gnu"; then
1523e9554658Smrg      echo &&
1524e9554658Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525e9554658Smrg    elif test -f "$ac_srcdir/configure"; then
1526e9554658Smrg      echo &&
1527e9554658Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
1528e9554658Smrg    else
1529c2b339b4Smrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530e9554658Smrg    fi || ac_status=$?
1531e9554658Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
1532e9554658Smrg  done
1533e9554658Smrgfi
1534e9554658Smrg
1535e9554658Smrgtest -n "$ac_init_help" && exit $ac_status
1536e9554658Smrgif $ac_init_version; then
1537e9554658Smrg  cat <<\_ACEOF
1538c2b339b4Smrgxclock configure 1.0.4
1539c2b339b4Smrggenerated by GNU Autoconf 2.63
1540e9554658Smrg
1541e9554658SmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1542c2b339b4Smrg2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1543e9554658SmrgThis configure script is free software; the Free Software Foundation
1544e9554658Smrggives unlimited permission to copy, distribute and modify it.
1545e9554658Smrg_ACEOF
1546e9554658Smrg  exit
1547e9554658Smrgfi
1548e9554658Smrgcat >config.log <<_ACEOF
1549e9554658SmrgThis file contains any messages produced by compilers while
1550e9554658Smrgrunning configure, to aid debugging if configure makes a mistake.
1551e9554658Smrg
1552c2b339b4SmrgIt was created by xclock $as_me 1.0.4, which was
1553c2b339b4Smrggenerated by GNU Autoconf 2.63.  Invocation command line was
1554e9554658Smrg
1555e9554658Smrg  $ $0 $@
1556e9554658Smrg
1557e9554658Smrg_ACEOF
1558e9554658Smrgexec 5>>config.log
1559e9554658Smrg{
1560e9554658Smrgcat <<_ASUNAME
1561e9554658Smrg## --------- ##
1562e9554658Smrg## Platform. ##
1563e9554658Smrg## --------- ##
1564e9554658Smrg
1565e9554658Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566e9554658Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
1567e9554658Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
1568e9554658Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
1569e9554658Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
1570e9554658Smrg
1571e9554658Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572e9554658Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1573e9554658Smrg
1574e9554658Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1575e9554658Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1576e9554658Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1577e9554658Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1578e9554658Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1579e9554658Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1580e9554658Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1581e9554658Smrg
1582e9554658Smrg_ASUNAME
1583e9554658Smrg
1584e9554658Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585e9554658Smrgfor as_dir in $PATH
1586e9554658Smrgdo
1587e9554658Smrg  IFS=$as_save_IFS
1588e9554658Smrg  test -z "$as_dir" && as_dir=.
1589c2b339b4Smrg  $as_echo "PATH: $as_dir"
1590e9554658Smrgdone
1591e9554658SmrgIFS=$as_save_IFS
1592e9554658Smrg
1593e9554658Smrg} >&5
1594e9554658Smrg
1595e9554658Smrgcat >&5 <<_ACEOF
1596e9554658Smrg
1597e9554658Smrg
1598e9554658Smrg## ----------- ##
1599e9554658Smrg## Core tests. ##
1600e9554658Smrg## ----------- ##
1601e9554658Smrg
1602e9554658Smrg_ACEOF
1603e9554658Smrg
1604e9554658Smrg
1605e9554658Smrg# Keep a trace of the command line.
1606e9554658Smrg# Strip out --no-create and --no-recursion so they do not pile up.
1607e9554658Smrg# Strip out --silent because we don't want to record it for future runs.
1608e9554658Smrg# Also quote any args containing shell meta-characters.
1609e9554658Smrg# Make two passes to allow for proper duplicate-argument suppression.
1610e9554658Smrgac_configure_args=
1611e9554658Smrgac_configure_args0=
1612e9554658Smrgac_configure_args1=
1613e9554658Smrgac_must_keep_next=false
1614e9554658Smrgfor ac_pass in 1 2
1615e9554658Smrgdo
1616e9554658Smrg  for ac_arg
1617e9554658Smrg  do
1618e9554658Smrg    case $ac_arg in
1619e9554658Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620e9554658Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621e9554658Smrg    | -silent | --silent | --silen | --sile | --sil)
1622e9554658Smrg      continue ;;
1623e9554658Smrg    *\'*)
1624c2b339b4Smrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1625e9554658Smrg    esac
1626e9554658Smrg    case $ac_pass in
1627e9554658Smrg    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1628e9554658Smrg    2)
1629e9554658Smrg      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1630e9554658Smrg      if test $ac_must_keep_next = true; then
1631e9554658Smrg	ac_must_keep_next=false # Got value, back to normal.
1632e9554658Smrg      else
1633e9554658Smrg	case $ac_arg in
1634e9554658Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
1635e9554658Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636e9554658Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637e9554658Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
1638e9554658Smrg	    case "$ac_configure_args0 " in
1639e9554658Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1640e9554658Smrg	    esac
1641e9554658Smrg	    ;;
1642e9554658Smrg	  -* ) ac_must_keep_next=true ;;
1643e9554658Smrg	esac
1644e9554658Smrg      fi
1645e9554658Smrg      ac_configure_args="$ac_configure_args '$ac_arg'"
1646e9554658Smrg      ;;
1647e9554658Smrg    esac
1648e9554658Smrg  done
1649e9554658Smrgdone
1650e9554658Smrg$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651e9554658Smrg$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1652e9554658Smrg
1653e9554658Smrg# When interrupted or exit'd, cleanup temporary files, and complete
1654e9554658Smrg# config.log.  We remove comments because anyway the quotes in there
1655e9554658Smrg# would cause problems or look ugly.
1656e9554658Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
1657e9554658Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1658e9554658Smrgtrap 'exit_status=$?
1659e9554658Smrg  # Save into config.log some information that might help in debugging.
1660e9554658Smrg  {
1661e9554658Smrg    echo
1662e9554658Smrg
1663e9554658Smrg    cat <<\_ASBOX
1664e9554658Smrg## ---------------- ##
1665e9554658Smrg## Cache variables. ##
1666e9554658Smrg## ---------------- ##
1667e9554658Smrg_ASBOX
1668e9554658Smrg    echo
1669e9554658Smrg    # The following way of writing the cache mishandles newlines in values,
1670e9554658Smrg(
1671e9554658Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672e9554658Smrg    eval ac_val=\$$ac_var
1673e9554658Smrg    case $ac_val in #(
1674e9554658Smrg    *${as_nl}*)
1675e9554658Smrg      case $ac_var in #(
1676c2b339b4Smrg      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1677c2b339b4Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1678e9554658Smrg      esac
1679e9554658Smrg      case $ac_var in #(
1680e9554658Smrg      _ | IFS | as_nl) ;; #(
1681c2b339b4Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1682e9554658Smrg      *) $as_unset $ac_var ;;
1683e9554658Smrg      esac ;;
1684e9554658Smrg    esac
1685e9554658Smrg  done
1686e9554658Smrg  (set) 2>&1 |
1687e9554658Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1688e9554658Smrg    *${as_nl}ac_space=\ *)
1689e9554658Smrg      sed -n \
1690e9554658Smrg	"s/'\''/'\''\\\\'\'''\''/g;
1691e9554658Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1692e9554658Smrg      ;; #(
1693e9554658Smrg    *)
1694e9554658Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1695e9554658Smrg      ;;
1696e9554658Smrg    esac |
1697e9554658Smrg    sort
1698e9554658Smrg)
1699e9554658Smrg    echo
1700e9554658Smrg
1701e9554658Smrg    cat <<\_ASBOX
1702e9554658Smrg## ----------------- ##
1703e9554658Smrg## Output variables. ##
1704e9554658Smrg## ----------------- ##
1705e9554658Smrg_ASBOX
1706e9554658Smrg    echo
1707e9554658Smrg    for ac_var in $ac_subst_vars
1708e9554658Smrg    do
1709e9554658Smrg      eval ac_val=\$$ac_var
1710e9554658Smrg      case $ac_val in
1711c2b339b4Smrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1712e9554658Smrg      esac
1713c2b339b4Smrg      $as_echo "$ac_var='\''$ac_val'\''"
1714e9554658Smrg    done | sort
1715e9554658Smrg    echo
1716e9554658Smrg
1717e9554658Smrg    if test -n "$ac_subst_files"; then
1718e9554658Smrg      cat <<\_ASBOX
1719e9554658Smrg## ------------------- ##
1720e9554658Smrg## File substitutions. ##
1721e9554658Smrg## ------------------- ##
1722e9554658Smrg_ASBOX
1723e9554658Smrg      echo
1724e9554658Smrg      for ac_var in $ac_subst_files
1725e9554658Smrg      do
1726e9554658Smrg	eval ac_val=\$$ac_var
1727e9554658Smrg	case $ac_val in
1728c2b339b4Smrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729e9554658Smrg	esac
1730c2b339b4Smrg	$as_echo "$ac_var='\''$ac_val'\''"
1731e9554658Smrg      done | sort
1732e9554658Smrg      echo
1733e9554658Smrg    fi
1734e9554658Smrg
1735e9554658Smrg    if test -s confdefs.h; then
1736e9554658Smrg      cat <<\_ASBOX
1737e9554658Smrg## ----------- ##
1738e9554658Smrg## confdefs.h. ##
1739e9554658Smrg## ----------- ##
1740e9554658Smrg_ASBOX
1741e9554658Smrg      echo
1742e9554658Smrg      cat confdefs.h
1743e9554658Smrg      echo
1744e9554658Smrg    fi
1745e9554658Smrg    test "$ac_signal" != 0 &&
1746c2b339b4Smrg      $as_echo "$as_me: caught signal $ac_signal"
1747c2b339b4Smrg    $as_echo "$as_me: exit $exit_status"
1748e9554658Smrg  } >&5
1749e9554658Smrg  rm -f core *.core core.conftest.* &&
1750e9554658Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1751e9554658Smrg    exit $exit_status
1752e9554658Smrg' 0
1753e9554658Smrgfor ac_signal in 1 2 13 15; do
1754e9554658Smrg  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1755e9554658Smrgdone
1756e9554658Smrgac_signal=0
1757e9554658Smrg
1758e9554658Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
1759e9554658Smrgrm -f -r conftest* confdefs.h
1760e9554658Smrg
1761e9554658Smrg# Predefined preprocessor variables.
1762e9554658Smrg
1763e9554658Smrgcat >>confdefs.h <<_ACEOF
1764e9554658Smrg#define PACKAGE_NAME "$PACKAGE_NAME"
1765e9554658Smrg_ACEOF
1766e9554658Smrg
1767e9554658Smrg
1768e9554658Smrgcat >>confdefs.h <<_ACEOF
1769e9554658Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1770e9554658Smrg_ACEOF
1771e9554658Smrg
1772e9554658Smrg
1773e9554658Smrgcat >>confdefs.h <<_ACEOF
1774e9554658Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
1775e9554658Smrg_ACEOF
1776e9554658Smrg
1777e9554658Smrg
1778e9554658Smrgcat >>confdefs.h <<_ACEOF
1779e9554658Smrg#define PACKAGE_STRING "$PACKAGE_STRING"
1780e9554658Smrg_ACEOF
1781e9554658Smrg
1782e9554658Smrg
1783e9554658Smrgcat >>confdefs.h <<_ACEOF
1784e9554658Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1785e9554658Smrg_ACEOF
1786e9554658Smrg
1787e9554658Smrg
1788e9554658Smrg# Let the site file select an alternate cache file if it wants to.
1789c2b339b4Smrg# Prefer an explicitly selected file to automatically selected ones.
1790c2b339b4Smrgac_site_file1=NONE
1791c2b339b4Smrgac_site_file2=NONE
1792e9554658Smrgif test -n "$CONFIG_SITE"; then
1793c2b339b4Smrg  ac_site_file1=$CONFIG_SITE
1794e9554658Smrgelif test "x$prefix" != xNONE; then
1795c2b339b4Smrg  ac_site_file1=$prefix/share/config.site
1796c2b339b4Smrg  ac_site_file2=$prefix/etc/config.site
1797e9554658Smrgelse
1798c2b339b4Smrg  ac_site_file1=$ac_default_prefix/share/config.site
1799c2b339b4Smrg  ac_site_file2=$ac_default_prefix/etc/config.site
1800e9554658Smrgfi
1801c2b339b4Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
1802e9554658Smrgdo
1803c2b339b4Smrg  test "x$ac_site_file" = xNONE && continue
1804e9554658Smrg  if test -r "$ac_site_file"; then
1805c2b339b4Smrg    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1806c2b339b4Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1807e9554658Smrg    sed 's/^/| /' "$ac_site_file" >&5
1808e9554658Smrg    . "$ac_site_file"
1809e9554658Smrg  fi
1810e9554658Smrgdone
1811e9554658Smrg
1812e9554658Smrgif test -r "$cache_file"; then
1813e9554658Smrg  # Some versions of bash will fail to source /dev/null (special
1814e9554658Smrg  # files actually), so we avoid doing that.
1815e9554658Smrg  if test -f "$cache_file"; then
1816c2b339b4Smrg    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1817c2b339b4Smrg$as_echo "$as_me: loading cache $cache_file" >&6;}
1818e9554658Smrg    case $cache_file in
1819e9554658Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1820e9554658Smrg      *)                      . "./$cache_file";;
1821e9554658Smrg    esac
1822e9554658Smrg  fi
1823e9554658Smrgelse
1824c2b339b4Smrg  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1825c2b339b4Smrg$as_echo "$as_me: creating cache $cache_file" >&6;}
1826e9554658Smrg  >$cache_file
1827e9554658Smrgfi
1828e9554658Smrg
1829e9554658Smrg# Check that the precious variables saved in the cache have kept the same
1830e9554658Smrg# value.
1831e9554658Smrgac_cache_corrupted=false
1832e9554658Smrgfor ac_var in $ac_precious_vars; do
1833e9554658Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1834e9554658Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
1835e9554658Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1836e9554658Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
1837e9554658Smrg  case $ac_old_set,$ac_new_set in
1838e9554658Smrg    set,)
1839c2b339b4Smrg      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1840c2b339b4Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1841e9554658Smrg      ac_cache_corrupted=: ;;
1842e9554658Smrg    ,set)
1843c2b339b4Smrg      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1844c2b339b4Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1845e9554658Smrg      ac_cache_corrupted=: ;;
1846e9554658Smrg    ,);;
1847e9554658Smrg    *)
1848e9554658Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
1849c2b339b4Smrg	# differences in whitespace do not lead to failure.
1850c2b339b4Smrg	ac_old_val_w=`echo x $ac_old_val`
1851c2b339b4Smrg	ac_new_val_w=`echo x $ac_new_val`
1852c2b339b4Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1853c2b339b4Smrg	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1854c2b339b4Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1855c2b339b4Smrg	  ac_cache_corrupted=:
1856c2b339b4Smrg	else
1857c2b339b4Smrg	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1858c2b339b4Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1859c2b339b4Smrg	  eval $ac_var=\$ac_old_val
1860c2b339b4Smrg	fi
1861c2b339b4Smrg	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1862c2b339b4Smrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1863c2b339b4Smrg	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1864c2b339b4Smrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1865e9554658Smrg      fi;;
1866e9554658Smrg  esac
1867e9554658Smrg  # Pass precious variables to config.status.
1868e9554658Smrg  if test "$ac_new_set" = set; then
1869e9554658Smrg    case $ac_new_val in
1870c2b339b4Smrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1871e9554658Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
1872e9554658Smrg    esac
1873e9554658Smrg    case " $ac_configure_args " in
1874e9554658Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1875e9554658Smrg      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1876e9554658Smrg    esac
1877e9554658Smrg  fi
1878e9554658Smrgdone
1879e9554658Smrgif $ac_cache_corrupted; then
1880c2b339b4Smrg  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1881c2b339b4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1882c2b339b4Smrg  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1883c2b339b4Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1884c2b339b4Smrg  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1885c2b339b4Smrg$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1886e9554658Smrg   { (exit 1); exit 1; }; }
1887e9554658Smrgfi
1888e9554658Smrg
1889e9554658Smrg
1890e9554658Smrg
1891e9554658Smrg
1892e9554658Smrg
1893e9554658Smrg
1894e9554658Smrg
1895e9554658Smrg
1896e9554658Smrg
1897e9554658Smrg
1898e9554658Smrg
1899e9554658Smrg
1900e9554658Smrg
1901e9554658Smrg
1902e9554658Smrg
1903e9554658Smrg
1904e9554658Smrg
1905e9554658Smrg
1906e9554658Smrg
1907e9554658Smrg
1908e9554658Smrg
1909e9554658Smrg
1910e9554658Smrg
1911e9554658Smrg
1912e9554658Smrg
1913e9554658Smrgac_ext=c
1914e9554658Smrgac_cpp='$CPP $CPPFLAGS'
1915e9554658Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1916e9554658Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1917e9554658Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
1918e9554658Smrg
1919e9554658Smrg
1920c2b339b4Smrgam__api_version='1.11'
1921e9554658Smrg
1922e9554658Smrgac_aux_dir=
1923e9554658Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1924e9554658Smrg  if test -f "$ac_dir/install-sh"; then
1925e9554658Smrg    ac_aux_dir=$ac_dir
1926e9554658Smrg    ac_install_sh="$ac_aux_dir/install-sh -c"
1927e9554658Smrg    break
1928e9554658Smrg  elif test -f "$ac_dir/install.sh"; then
1929e9554658Smrg    ac_aux_dir=$ac_dir
1930e9554658Smrg    ac_install_sh="$ac_aux_dir/install.sh -c"
1931e9554658Smrg    break
1932e9554658Smrg  elif test -f "$ac_dir/shtool"; then
1933e9554658Smrg    ac_aux_dir=$ac_dir
1934e9554658Smrg    ac_install_sh="$ac_aux_dir/shtool install -c"
1935e9554658Smrg    break
1936e9554658Smrg  fi
1937e9554658Smrgdone
1938e9554658Smrgif test -z "$ac_aux_dir"; then
1939c2b339b4Smrg  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1940c2b339b4Smrg$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1941e9554658Smrg   { (exit 1); exit 1; }; }
1942e9554658Smrgfi
1943e9554658Smrg
1944e9554658Smrg# These three variables are undocumented and unsupported,
1945e9554658Smrg# and are intended to be withdrawn in a future Autoconf release.
1946e9554658Smrg# They can cause serious problems if a builder's source tree is in a directory
1947e9554658Smrg# whose full name contains unusual characters.
1948e9554658Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1949e9554658Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1950e9554658Smrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1951e9554658Smrg
1952e9554658Smrg
1953e9554658Smrg# Find a good install program.  We prefer a C program (faster),
1954e9554658Smrg# so one script is as good as another.  But avoid the broken or
1955e9554658Smrg# incompatible versions:
1956e9554658Smrg# SysV /etc/install, /usr/sbin/install
1957e9554658Smrg# SunOS /usr/etc/install
1958e9554658Smrg# IRIX /sbin/install
1959e9554658Smrg# AIX /bin/install
1960e9554658Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
1961e9554658Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1962e9554658Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1963e9554658Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1964e9554658Smrg# OS/2's system install, which has a completely different semantic
1965e9554658Smrg# ./install, which can be erroneously created by make from ./install.sh.
1966c2b339b4Smrg# Reject install programs that cannot install multiple files.
1967c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1968c2b339b4Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
1969e9554658Smrgif test -z "$INSTALL"; then
1970e9554658Smrgif test "${ac_cv_path_install+set}" = set; then
1971c2b339b4Smrg  $as_echo_n "(cached) " >&6
1972e9554658Smrgelse
1973e9554658Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974e9554658Smrgfor as_dir in $PATH
1975e9554658Smrgdo
1976e9554658Smrg  IFS=$as_save_IFS
1977e9554658Smrg  test -z "$as_dir" && as_dir=.
1978e9554658Smrg  # Account for people who put trailing slashes in PATH elements.
1979e9554658Smrgcase $as_dir/ in
1980e9554658Smrg  ./ | .// | /cC/* | \
1981e9554658Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1982e9554658Smrg  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1983e9554658Smrg  /usr/ucb/* ) ;;
1984e9554658Smrg  *)
1985e9554658Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
1986e9554658Smrg    # Don't use installbsd from OSF since it installs stuff as root
1987e9554658Smrg    # by default.
1988e9554658Smrg    for ac_prog in ginstall scoinst install; do
1989e9554658Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
1990e9554658Smrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1991e9554658Smrg	  if test $ac_prog = install &&
1992e9554658Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1993e9554658Smrg	    # AIX install.  It has an incompatible calling convention.
1994e9554658Smrg	    :
1995e9554658Smrg	  elif test $ac_prog = install &&
1996e9554658Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1997e9554658Smrg	    # program-specific install script used by HP pwplus--don't use.
1998e9554658Smrg	    :
1999e9554658Smrg	  else
2000c2b339b4Smrg	    rm -rf conftest.one conftest.two conftest.dir
2001c2b339b4Smrg	    echo one > conftest.one
2002c2b339b4Smrg	    echo two > conftest.two
2003c2b339b4Smrg	    mkdir conftest.dir
2004c2b339b4Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2005c2b339b4Smrg	      test -s conftest.one && test -s conftest.two &&
2006c2b339b4Smrg	      test -s conftest.dir/conftest.one &&
2007c2b339b4Smrg	      test -s conftest.dir/conftest.two
2008c2b339b4Smrg	    then
2009c2b339b4Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2010c2b339b4Smrg	      break 3
2011c2b339b4Smrg	    fi
2012e9554658Smrg	  fi
2013e9554658Smrg	fi
2014e9554658Smrg      done
2015e9554658Smrg    done
2016e9554658Smrg    ;;
2017e9554658Smrgesac
2018c2b339b4Smrg
2019e9554658Smrgdone
2020e9554658SmrgIFS=$as_save_IFS
2021e9554658Smrg
2022c2b339b4Smrgrm -rf conftest.one conftest.two conftest.dir
2023e9554658Smrg
2024e9554658Smrgfi
2025e9554658Smrg  if test "${ac_cv_path_install+set}" = set; then
2026e9554658Smrg    INSTALL=$ac_cv_path_install
2027e9554658Smrg  else
2028e9554658Smrg    # As a last resort, use the slow shell script.  Don't cache a
2029e9554658Smrg    # value for INSTALL within a source directory, because that will
2030e9554658Smrg    # break other packages using the cache if that directory is
2031e9554658Smrg    # removed, or if the value is a relative name.
2032e9554658Smrg    INSTALL=$ac_install_sh
2033e9554658Smrg  fi
2034e9554658Smrgfi
2035c2b339b4Smrg{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2036c2b339b4Smrg$as_echo "$INSTALL" >&6; }
2037e9554658Smrg
2038e9554658Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2039e9554658Smrg# It thinks the first close brace ends the variable substitution.
2040e9554658Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2041e9554658Smrg
2042e9554658Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2043e9554658Smrg
2044e9554658Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2045e9554658Smrg
2046c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2047c2b339b4Smrg$as_echo_n "checking whether build environment is sane... " >&6; }
2048e9554658Smrg# Just in case
2049e9554658Smrgsleep 1
2050e9554658Smrgecho timestamp > conftest.file
2051c2b339b4Smrg# Reject unsafe characters in $srcdir or the absolute working directory
2052c2b339b4Smrg# name.  Accept space and tab only in the latter.
2053c2b339b4Smrgam_lf='
2054c2b339b4Smrg'
2055c2b339b4Smrgcase `pwd` in
2056c2b339b4Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
2057c2b339b4Smrg    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2058c2b339b4Smrg$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2059c2b339b4Smrg   { (exit 1); exit 1; }; };;
2060c2b339b4Smrgesac
2061c2b339b4Smrgcase $srcdir in
2062c2b339b4Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2063c2b339b4Smrg    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2064c2b339b4Smrg$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2065c2b339b4Smrg   { (exit 1); exit 1; }; };;
2066c2b339b4Smrgesac
2067c2b339b4Smrg
2068e9554658Smrg# Do `set' in a subshell so we don't clobber the current shell's
2069e9554658Smrg# arguments.  Must try -L first in case configure is actually a
2070e9554658Smrg# symlink; some systems play weird games with the mod time of symlinks
2071e9554658Smrg# (eg FreeBSD returns the mod time of the symlink's containing
2072e9554658Smrg# directory).
2073e9554658Smrgif (
2074c2b339b4Smrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2075e9554658Smrg   if test "$*" = "X"; then
2076e9554658Smrg      # -L didn't work.
2077c2b339b4Smrg      set X `ls -t "$srcdir/configure" conftest.file`
2078e9554658Smrg   fi
2079e9554658Smrg   rm -f conftest.file
2080e9554658Smrg   if test "$*" != "X $srcdir/configure conftest.file" \
2081e9554658Smrg      && test "$*" != "X conftest.file $srcdir/configure"; then
2082e9554658Smrg
2083e9554658Smrg      # If neither matched, then we have a broken ls.  This can happen
2084e9554658Smrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
2085e9554658Smrg      # broken ls alias from the environment.  This has actually
2086e9554658Smrg      # happened.  Such a system could not be considered "sane".
2087c2b339b4Smrg      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2088e9554658Smrgalias in your environment" >&5
2089c2b339b4Smrg$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2090e9554658Smrgalias in your environment" >&2;}
2091e9554658Smrg   { (exit 1); exit 1; }; }
2092e9554658Smrg   fi
2093e9554658Smrg
2094e9554658Smrg   test "$2" = conftest.file
2095e9554658Smrg   )
2096e9554658Smrgthen
2097e9554658Smrg   # Ok.
2098e9554658Smrg   :
2099e9554658Smrgelse
2100c2b339b4Smrg   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2101e9554658SmrgCheck your system clock" >&5
2102c2b339b4Smrg$as_echo "$as_me: error: newly created file is older than distributed files!
2103e9554658SmrgCheck your system clock" >&2;}
2104e9554658Smrg   { (exit 1); exit 1; }; }
2105e9554658Smrgfi
2106c2b339b4Smrg{ $as_echo "$as_me:$LINENO: result: yes" >&5
2107c2b339b4Smrg$as_echo "yes" >&6; }
2108e9554658Smrgtest "$program_prefix" != NONE &&
2109e9554658Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2110e9554658Smrg# Use a double $ so make ignores it.
2111e9554658Smrgtest "$program_suffix" != NONE &&
2112e9554658Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2113c2b339b4Smrg# Double any \ or $.
2114e9554658Smrg# By default was `s,x,x', remove it if useless.
2115c2b339b4Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2116c2b339b4Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2117e9554658Smrg
2118e9554658Smrg# expand $ac_aux_dir to an absolute path
2119e9554658Smrgam_aux_dir=`cd $ac_aux_dir && pwd`
2120e9554658Smrg
2121c2b339b4Smrgif test x"${MISSING+set}" != xset; then
2122c2b339b4Smrg  case $am_aux_dir in
2123c2b339b4Smrg  *\ * | *\	*)
2124c2b339b4Smrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2125c2b339b4Smrg  *)
2126c2b339b4Smrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2127c2b339b4Smrg  esac
2128c2b339b4Smrgfi
2129e9554658Smrg# Use eval to expand $SHELL
2130e9554658Smrgif eval "$MISSING --run true"; then
2131e9554658Smrg  am_missing_run="$MISSING --run "
2132e9554658Smrgelse
2133e9554658Smrg  am_missing_run=
2134c2b339b4Smrg  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2135c2b339b4Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2136c2b339b4Smrgfi
2137c2b339b4Smrg
2138c2b339b4Smrgif test x"${install_sh}" != xset; then
2139c2b339b4Smrg  case $am_aux_dir in
2140c2b339b4Smrg  *\ * | *\	*)
2141c2b339b4Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2142c2b339b4Smrg  *)
2143c2b339b4Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
2144c2b339b4Smrg  esac
2145c2b339b4Smrgfi
2146c2b339b4Smrg
2147c2b339b4Smrg# Installed binaries are usually stripped using `strip' when the user
2148c2b339b4Smrg# run `make install-strip'.  However `strip' might not be the right
2149c2b339b4Smrg# tool to use in cross-compilation environments, therefore Automake
2150c2b339b4Smrg# will honor the `STRIP' environment variable to overrule this program.
2151c2b339b4Smrgif test "$cross_compiling" != no; then
2152c2b339b4Smrg  if test -n "$ac_tool_prefix"; then
2153c2b339b4Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2154c2b339b4Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
2155c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2156c2b339b4Smrg$as_echo_n "checking for $ac_word... " >&6; }
2157c2b339b4Smrgif test "${ac_cv_prog_STRIP+set}" = set; then
2158c2b339b4Smrg  $as_echo_n "(cached) " >&6
2159c2b339b4Smrgelse
2160c2b339b4Smrg  if test -n "$STRIP"; then
2161c2b339b4Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2162c2b339b4Smrgelse
2163c2b339b4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164c2b339b4Smrgfor as_dir in $PATH
2165c2b339b4Smrgdo
2166c2b339b4Smrg  IFS=$as_save_IFS
2167c2b339b4Smrg  test -z "$as_dir" && as_dir=.
2168c2b339b4Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2169c2b339b4Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2170c2b339b4Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2171c2b339b4Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172c2b339b4Smrg    break 2
2173c2b339b4Smrg  fi
2174c2b339b4Smrgdone
2175c2b339b4Smrgdone
2176c2b339b4SmrgIFS=$as_save_IFS
2177c2b339b4Smrg
2178c2b339b4Smrgfi
2179c2b339b4Smrgfi
2180c2b339b4SmrgSTRIP=$ac_cv_prog_STRIP
2181c2b339b4Smrgif test -n "$STRIP"; then
2182c2b339b4Smrg  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2183c2b339b4Smrg$as_echo "$STRIP" >&6; }
2184c2b339b4Smrgelse
2185c2b339b4Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2186c2b339b4Smrg$as_echo "no" >&6; }
2187c2b339b4Smrgfi
2188c2b339b4Smrg
2189c2b339b4Smrg
2190c2b339b4Smrgfi
2191c2b339b4Smrgif test -z "$ac_cv_prog_STRIP"; then
2192c2b339b4Smrg  ac_ct_STRIP=$STRIP
2193c2b339b4Smrg  # Extract the first word of "strip", so it can be a program name with args.
2194c2b339b4Smrgset dummy strip; ac_word=$2
2195c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2196c2b339b4Smrg$as_echo_n "checking for $ac_word... " >&6; }
2197c2b339b4Smrgif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2198c2b339b4Smrg  $as_echo_n "(cached) " >&6
2199c2b339b4Smrgelse
2200c2b339b4Smrg  if test -n "$ac_ct_STRIP"; then
2201c2b339b4Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2202c2b339b4Smrgelse
2203c2b339b4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204c2b339b4Smrgfor as_dir in $PATH
2205c2b339b4Smrgdo
2206c2b339b4Smrg  IFS=$as_save_IFS
2207c2b339b4Smrg  test -z "$as_dir" && as_dir=.
2208c2b339b4Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2209c2b339b4Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2210c2b339b4Smrg    ac_cv_prog_ac_ct_STRIP="strip"
2211c2b339b4Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2212c2b339b4Smrg    break 2
2213c2b339b4Smrg  fi
2214c2b339b4Smrgdone
2215c2b339b4Smrgdone
2216c2b339b4SmrgIFS=$as_save_IFS
2217c2b339b4Smrg
2218c2b339b4Smrgfi
2219c2b339b4Smrgfi
2220c2b339b4Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2221c2b339b4Smrgif test -n "$ac_ct_STRIP"; then
2222c2b339b4Smrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2223c2b339b4Smrg$as_echo "$ac_ct_STRIP" >&6; }
2224c2b339b4Smrgelse
2225c2b339b4Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2226c2b339b4Smrg$as_echo "no" >&6; }
2227c2b339b4Smrgfi
2228c2b339b4Smrg
2229c2b339b4Smrg  if test "x$ac_ct_STRIP" = x; then
2230c2b339b4Smrg    STRIP=":"
2231c2b339b4Smrg  else
2232c2b339b4Smrg    case $cross_compiling:$ac_tool_warned in
2233c2b339b4Smrgyes:)
2234c2b339b4Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2235c2b339b4Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2236c2b339b4Smrgac_tool_warned=yes ;;
2237c2b339b4Smrgesac
2238c2b339b4Smrg    STRIP=$ac_ct_STRIP
2239c2b339b4Smrg  fi
2240c2b339b4Smrgelse
2241c2b339b4Smrg  STRIP="$ac_cv_prog_STRIP"
2242c2b339b4Smrgfi
2243c2b339b4Smrg
2244e9554658Smrgfi
2245c2b339b4SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2246e9554658Smrg
2247c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2248c2b339b4Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2249e9554658Smrgif test -z "$MKDIR_P"; then
2250e9554658Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
2251c2b339b4Smrg  $as_echo_n "(cached) " >&6
2252e9554658Smrgelse
2253e9554658Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254e9554658Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2255e9554658Smrgdo
2256e9554658Smrg  IFS=$as_save_IFS
2257e9554658Smrg  test -z "$as_dir" && as_dir=.
2258e9554658Smrg  for ac_prog in mkdir gmkdir; do
2259e9554658Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
2260e9554658Smrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2261e9554658Smrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2262e9554658Smrg	     'mkdir (GNU coreutils) '* | \
2263e9554658Smrg	     'mkdir (coreutils) '* | \
2264e9554658Smrg	     'mkdir (fileutils) '4.1*)
2265e9554658Smrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2266e9554658Smrg	       break 3;;
2267e9554658Smrg	   esac
2268e9554658Smrg	 done
2269e9554658Smrg       done
2270e9554658Smrgdone
2271e9554658SmrgIFS=$as_save_IFS
2272e9554658Smrg
2273e9554658Smrgfi
2274e9554658Smrg
2275e9554658Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
2276e9554658Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
2277e9554658Smrg  else
2278e9554658Smrg    # As a last resort, use the slow shell script.  Don't cache a
2279e9554658Smrg    # value for MKDIR_P within a source directory, because that will
2280e9554658Smrg    # break other packages using the cache if that directory is
2281e9554658Smrg    # removed, or if the value is a relative name.
2282e9554658Smrg    test -d ./--version && rmdir ./--version
2283e9554658Smrg    MKDIR_P="$ac_install_sh -d"
2284e9554658Smrg  fi
2285e9554658Smrgfi
2286c2b339b4Smrg{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2287c2b339b4Smrg$as_echo "$MKDIR_P" >&6; }
2288e9554658Smrg
2289e9554658Smrgmkdir_p="$MKDIR_P"
2290e9554658Smrgcase $mkdir_p in
2291e9554658Smrg  [\\/$]* | ?:[\\/]*) ;;
2292e9554658Smrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2293e9554658Smrgesac
2294e9554658Smrg
2295e9554658Smrgfor ac_prog in gawk mawk nawk awk
2296e9554658Smrgdo
2297e9554658Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
2298e9554658Smrgset dummy $ac_prog; ac_word=$2
2299c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2300c2b339b4Smrg$as_echo_n "checking for $ac_word... " >&6; }
2301e9554658Smrgif test "${ac_cv_prog_AWK+set}" = set; then
2302c2b339b4Smrg  $as_echo_n "(cached) " >&6
2303e9554658Smrgelse
2304e9554658Smrg  if test -n "$AWK"; then
2305e9554658Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2306e9554658Smrgelse
2307e9554658Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308e9554658Smrgfor as_dir in $PATH
2309e9554658Smrgdo
2310e9554658Smrg  IFS=$as_save_IFS
2311e9554658Smrg  test -z "$as_dir" && as_dir=.
2312e9554658Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2313e9554658Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2314e9554658Smrg    ac_cv_prog_AWK="$ac_prog"
2315c2b339b4Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2316e9554658Smrg    break 2
2317e9554658Smrg  fi
2318e9554658Smrgdone
2319e9554658Smrgdone
2320e9554658SmrgIFS=$as_save_IFS
2321e9554658Smrg
2322e9554658Smrgfi
2323e9554658Smrgfi
2324e9554658SmrgAWK=$ac_cv_prog_AWK
2325e9554658Smrgif test -n "$AWK"; then
2326c2b339b4Smrg  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2327c2b339b4Smrg$as_echo "$AWK" >&6; }
2328e9554658Smrgelse
2329c2b339b4Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2330c2b339b4Smrg$as_echo "no" >&6; }
2331e9554658Smrgfi
2332e9554658Smrg
2333e9554658Smrg
2334e9554658Smrg  test -n "$AWK" && break
2335e9554658Smrgdone
2336e9554658Smrg
2337c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2338c2b339b4Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2339c2b339b4Smrgset x ${MAKE-make}
2340c2b339b4Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2341e9554658Smrgif { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2342c2b339b4Smrg  $as_echo_n "(cached) " >&6
2343e9554658Smrgelse
2344e9554658Smrg  cat >conftest.make <<\_ACEOF
2345e9554658SmrgSHELL = /bin/sh
2346e9554658Smrgall:
2347e9554658Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
2348e9554658Smrg_ACEOF
2349e9554658Smrg# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2350e9554658Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
2351e9554658Smrg  *@@@%%%=?*=@@@%%%*)
2352e9554658Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
2353e9554658Smrg  *)
2354e9554658Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
2355e9554658Smrgesac
2356e9554658Smrgrm -f conftest.make
2357e9554658Smrgfi
2358e9554658Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2359c2b339b4Smrg  { $as_echo "$as_me:$LINENO: result: yes" >&5
2360c2b339b4Smrg$as_echo "yes" >&6; }
2361e9554658Smrg  SET_MAKE=
2362e9554658Smrgelse
2363c2b339b4Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2364c2b339b4Smrg$as_echo "no" >&6; }
2365e9554658Smrg  SET_MAKE="MAKE=${MAKE-make}"
2366e9554658Smrgfi
2367e9554658Smrg
2368e9554658Smrgrm -rf .tst 2>/dev/null
2369e9554658Smrgmkdir .tst 2>/dev/null
2370e9554658Smrgif test -d .tst; then
2371e9554658Smrg  am__leading_dot=.
2372e9554658Smrgelse
2373e9554658Smrg  am__leading_dot=_
2374e9554658Smrgfi
2375e9554658Smrgrmdir .tst 2>/dev/null
2376e9554658Smrg
2377e9554658Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
2378e9554658Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2379e9554658Smrg  # is not polluted with repeated "-I."
2380e9554658Smrg  am__isrc=' -I$(srcdir)'
2381e9554658Smrg  # test to see if srcdir already configured
2382e9554658Smrg  if test -f $srcdir/config.status; then
2383c2b339b4Smrg    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2384c2b339b4Smrg$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2385e9554658Smrg   { (exit 1); exit 1; }; }
2386e9554658Smrg  fi
2387e9554658Smrgfi
2388e9554658Smrg
2389e9554658Smrg# test whether we have cygpath
2390e9554658Smrgif test -z "$CYGPATH_W"; then
2391e9554658Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
2392e9554658Smrg    CYGPATH_W='cygpath -w'
2393e9554658Smrg  else
2394e9554658Smrg    CYGPATH_W=echo
2395e9554658Smrg  fi
2396e9554658Smrgfi
2397e9554658Smrg
2398e9554658Smrg
2399e9554658Smrg# Define the identity of the package.
2400e9554658Smrg PACKAGE='xclock'
2401c2b339b4Smrg VERSION='1.0.4'
2402e9554658Smrg
2403e9554658Smrg
2404e9554658Smrgcat >>confdefs.h <<_ACEOF
2405e9554658Smrg#define PACKAGE "$PACKAGE"
2406e9554658Smrg_ACEOF
2407e9554658Smrg
2408e9554658Smrg
2409e9554658Smrgcat >>confdefs.h <<_ACEOF
2410e9554658Smrg#define VERSION "$VERSION"
2411e9554658Smrg_ACEOF
2412e9554658Smrg
2413e9554658Smrg# Some tools Automake needs.
2414e9554658Smrg
2415e9554658SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2416e9554658Smrg
2417e9554658Smrg
2418e9554658SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2419e9554658Smrg
2420e9554658Smrg
2421e9554658SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2422e9554658Smrg
2423e9554658Smrg
2424e9554658SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2425e9554658Smrg
2426e9554658Smrg
2427e9554658SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2428e9554658Smrg
2429e9554658Smrg# We need awk for the "check" target.  The system "awk" is bad on
2430e9554658Smrg# some platforms.
2431e9554658Smrg# Always define AMTAR for backward compatibility.
2432e9554658Smrg
2433e9554658SmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
2434e9554658Smrg
2435e9554658Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2436e9554658Smrg
2437e9554658Smrg
2438e9554658Smrg
2439e9554658Smrg
2440e9554658Smrg
2441c2b339b4Smrg
2442c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2443c2b339b4Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2444e9554658Smrg    # Check whether --enable-maintainer-mode was given.
2445e9554658Smrgif test "${enable_maintainer_mode+set}" = set; then
2446e9554658Smrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2447e9554658Smrgelse
2448e9554658Smrg  USE_MAINTAINER_MODE=no
2449e9554658Smrgfi
2450e9554658Smrg
2451c2b339b4Smrg  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2452c2b339b4Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
2453e9554658Smrg   if test $USE_MAINTAINER_MODE = yes; then
2454e9554658Smrg  MAINTAINER_MODE_TRUE=
2455e9554658Smrg  MAINTAINER_MODE_FALSE='#'
2456e9554658Smrgelse
2457e9554658Smrg  MAINTAINER_MODE_TRUE='#'
2458e9554658Smrg  MAINTAINER_MODE_FALSE=
2459e9554658Smrgfi
2460e9554658Smrg
2461e9554658Smrg  MAINT=$MAINTAINER_MODE_TRUE
2462e9554658Smrg
2463e9554658Smrg
2464e9554658Smrg
2465c2b339b4Smrg# Require xorg-macros: XORG_DEFAULT_OPTIONS
2466c2b339b4Smrg
2467c2b339b4Smrg
2468c2b339b4Smrg
2469c2b339b4Smrg
2470c2b339b4Smrg
2471c2b339b4Smrg
2472c2b339b4Smrg
2473c2b339b4Smrg
2474c2b339b4Smrg
2475c2b339b4Smrg
2476c2b339b4Smrg
2477c2b339b4Smrg
2478e9554658Smrgac_config_headers="$ac_config_headers config.h"
2479e9554658Smrg
2480e9554658Smrg
2481e9554658Smrgac_ext=c
2482e9554658Smrgac_cpp='$CPP $CPPFLAGS'
2483e9554658Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2484e9554658Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2485e9554658Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2486e9554658Smrgif test -n "$ac_tool_prefix"; then
2487e9554658Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2488e9554658Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
2489c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2490c2b339b4Smrg$as_echo_n "checking for $ac_word... " >&6; }
2491e9554658Smrgif test "${ac_cv_prog_CC+set}" = set; then
2492c2b339b4Smrg  $as_echo_n "(cached) " >&6
2493e9554658Smrgelse
2494e9554658Smrg  if test -n "$CC"; then
2495e9554658Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2496e9554658Smrgelse
2497e9554658Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498e9554658Smrgfor as_dir in $PATH
2499e9554658Smrgdo
2500e9554658Smrg  IFS=$as_save_IFS
2501e9554658Smrg  test -z "$as_dir" && as_dir=.
2502e9554658Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2503e9554658Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2504e9554658Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2505c2b339b4Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2506e9554658Smrg    break 2
2507e9554658Smrg  fi
2508e9554658Smrgdone
2509e9554658Smrgdone
2510e9554658SmrgIFS=$as_save_IFS
2511e9554658Smrg
2512e9554658Smrgfi
2513e9554658Smrgfi
2514e9554658SmrgCC=$ac_cv_prog_CC
2515e9554658Smrgif test -n "$CC"; then
2516c2b339b4Smrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2517c2b339b4Smrg$as_echo "$CC" >&6; }
2518e9554658Smrgelse
2519c2b339b4Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2520c2b339b4Smrg$as_echo "no" >&6; }
2521e9554658Smrgfi
2522e9554658Smrg
2523e9554658Smrg
2524e9554658Smrgfi
2525e9554658Smrgif test -z "$ac_cv_prog_CC"; then
2526e9554658Smrg  ac_ct_CC=$CC
2527e9554658Smrg  # Extract the first word of "gcc", so it can be a program name with args.
2528e9554658Smrgset dummy gcc; ac_word=$2
2529c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2530c2b339b4Smrg$as_echo_n "checking for $ac_word... " >&6; }
2531e9554658Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2532c2b339b4Smrg  $as_echo_n "(cached) " >&6
2533e9554658Smrgelse
2534e9554658Smrg  if test -n "$ac_ct_CC"; then
2535e9554658Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2536e9554658Smrgelse
2537e9554658Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538e9554658Smrgfor as_dir in $PATH
2539e9554658Smrgdo
2540e9554658Smrg  IFS=$as_save_IFS
2541e9554658Smrg  test -z "$as_dir" && as_dir=.
2542e9554658Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2543e9554658Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2544e9554658Smrg    ac_cv_prog_ac_ct_CC="gcc"
2545c2b339b4Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2546e9554658Smrg    break 2
2547e9554658Smrg  fi
2548e9554658Smrgdone
2549e9554658Smrgdone
2550e9554658SmrgIFS=$as_save_IFS
2551e9554658Smrg
2552e9554658Smrgfi
2553e9554658Smrgfi
2554e9554658Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2555e9554658Smrgif test -n "$ac_ct_CC"; then
2556c2b339b4Smrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2557c2b339b4Smrg$as_echo "$ac_ct_CC" >&6; }
2558e9554658Smrgelse
2559c2b339b4Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2560c2b339b4Smrg$as_echo "no" >&6; }
2561e9554658Smrgfi
2562e9554658Smrg
2563e9554658Smrg  if test "x$ac_ct_CC" = x; then
2564e9554658Smrg    CC=""
2565e9554658Smrg  else
2566e9554658Smrg    case $cross_compiling:$ac_tool_warned in
2567e9554658Smrgyes:)
2568c2b339b4Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2569c2b339b4Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2570e9554658Smrgac_tool_warned=yes ;;
2571e9554658Smrgesac
2572e9554658Smrg    CC=$ac_ct_CC
2573e9554658Smrg  fi
2574e9554658Smrgelse
2575e9554658Smrg  CC="$ac_cv_prog_CC"
2576e9554658Smrgfi
2577e9554658Smrg
2578e9554658Smrgif test -z "$CC"; then
2579e9554658Smrg          if test -n "$ac_tool_prefix"; then
2580e9554658Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2581e9554658Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
2582c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2583c2b339b4Smrg$as_echo_n "checking for $ac_word... " >&6; }
2584e9554658Smrgif test "${ac_cv_prog_CC+set}" = set; then
2585c2b339b4Smrg  $as_echo_n "(cached) " >&6
2586e9554658Smrgelse
2587e9554658Smrg  if test -n "$CC"; then
2588e9554658Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2589e9554658Smrgelse
2590e9554658Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591e9554658Smrgfor as_dir in $PATH
2592e9554658Smrgdo
2593e9554658Smrg  IFS=$as_save_IFS
2594e9554658Smrg  test -z "$as_dir" && as_dir=.
2595e9554658Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2596e9554658Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2597e9554658Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
2598c2b339b4Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2599e9554658Smrg    break 2
2600e9554658Smrg  fi
2601e9554658Smrgdone
2602e9554658Smrgdone
2603e9554658SmrgIFS=$as_save_IFS
2604e9554658Smrg
2605e9554658Smrgfi
2606e9554658Smrgfi
2607e9554658SmrgCC=$ac_cv_prog_CC
2608e9554658Smrgif test -n "$CC"; then
2609c2b339b4Smrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2610c2b339b4Smrg$as_echo "$CC" >&6; }
2611e9554658Smrgelse
2612c2b339b4Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2613c2b339b4Smrg$as_echo "no" >&6; }
2614e9554658Smrgfi
2615e9554658Smrg
2616e9554658Smrg
2617e9554658Smrg  fi
2618e9554658Smrgfi
2619e9554658Smrgif test -z "$CC"; then
2620e9554658Smrg  # Extract the first word of "cc", so it can be a program name with args.
2621e9554658Smrgset dummy cc; ac_word=$2
2622c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2623c2b339b4Smrg$as_echo_n "checking for $ac_word... " >&6; }
2624e9554658Smrgif test "${ac_cv_prog_CC+set}" = set; then
2625c2b339b4Smrg  $as_echo_n "(cached) " >&6
2626e9554658Smrgelse
2627e9554658Smrg  if test -n "$CC"; then
2628e9554658Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2629e9554658Smrgelse
2630e9554658Smrg  ac_prog_rejected=no
2631e9554658Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632e9554658Smrgfor as_dir in $PATH
2633e9554658Smrgdo
2634e9554658Smrg  IFS=$as_save_IFS
2635e9554658Smrg  test -z "$as_dir" && as_dir=.
2636e9554658Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2637e9554658Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2638e9554658Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2639e9554658Smrg       ac_prog_rejected=yes
2640e9554658Smrg       continue
2641e9554658Smrg     fi
2642e9554658Smrg    ac_cv_prog_CC="cc"
2643c2b339b4Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2644e9554658Smrg    break 2
2645e9554658Smrg  fi
2646e9554658Smrgdone
2647e9554658Smrgdone
2648e9554658SmrgIFS=$as_save_IFS
2649e9554658Smrg
2650e9554658Smrgif test $ac_prog_rejected = yes; then
2651e9554658Smrg  # We found a bogon in the path, so make sure we never use it.
2652e9554658Smrg  set dummy $ac_cv_prog_CC
2653e9554658Smrg  shift
2654e9554658Smrg  if test $# != 0; then
2655e9554658Smrg    # We chose a different compiler from the bogus one.
2656e9554658Smrg    # However, it has the same basename, so the bogon will be chosen
2657e9554658Smrg    # first if we set CC to just the basename; use the full file name.
2658e9554658Smrg    shift
2659e9554658Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2660e9554658Smrg  fi
2661e9554658Smrgfi
2662e9554658Smrgfi
2663e9554658Smrgfi
2664e9554658SmrgCC=$ac_cv_prog_CC
2665e9554658Smrgif test -n "$CC"; then
2666c2b339b4Smrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2667c2b339b4Smrg$as_echo "$CC" >&6; }
2668e9554658Smrgelse
2669c2b339b4Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2670c2b339b4Smrg$as_echo "no" >&6; }
2671e9554658Smrgfi
2672e9554658Smrg
2673e9554658Smrg
2674e9554658Smrgfi
2675e9554658Smrgif test -z "$CC"; then
2676e9554658Smrg  if test -n "$ac_tool_prefix"; then
2677e9554658Smrg  for ac_prog in cl.exe
2678e9554658Smrg  do
2679e9554658Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2680e9554658Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
2681c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2682c2b339b4Smrg$as_echo_n "checking for $ac_word... " >&6; }
2683e9554658Smrgif test "${ac_cv_prog_CC+set}" = set; then
2684c2b339b4Smrg  $as_echo_n "(cached) " >&6
2685e9554658Smrgelse
2686e9554658Smrg  if test -n "$CC"; then
2687e9554658Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2688e9554658Smrgelse
2689e9554658Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690e9554658Smrgfor as_dir in $PATH
2691e9554658Smrgdo
2692e9554658Smrg  IFS=$as_save_IFS
2693e9554658Smrg  test -z "$as_dir" && as_dir=.
2694e9554658Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2695e9554658Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2696e9554658Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2697c2b339b4Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2698e9554658Smrg    break 2
2699e9554658Smrg  fi
2700e9554658Smrgdone
2701e9554658Smrgdone
2702e9554658SmrgIFS=$as_save_IFS
2703e9554658Smrg
2704e9554658Smrgfi
2705e9554658Smrgfi
2706e9554658SmrgCC=$ac_cv_prog_CC
2707e9554658Smrgif test -n "$CC"; then
2708c2b339b4Smrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2709c2b339b4Smrg$as_echo "$CC" >&6; }
2710e9554658Smrgelse
2711c2b339b4Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2712c2b339b4Smrg$as_echo "no" >&6; }
2713e9554658Smrgfi
2714e9554658Smrg
2715e9554658Smrg
2716e9554658Smrg    test -n "$CC" && break
2717e9554658Smrg  done
2718e9554658Smrgfi
2719e9554658Smrgif test -z "$CC"; then
2720e9554658Smrg  ac_ct_CC=$CC
2721e9554658Smrg  for ac_prog in cl.exe
2722e9554658Smrgdo
2723e9554658Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
2724e9554658Smrgset dummy $ac_prog; ac_word=$2
2725c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2726c2b339b4Smrg$as_echo_n "checking for $ac_word... " >&6; }
2727e9554658Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2728c2b339b4Smrg  $as_echo_n "(cached) " >&6
2729e9554658Smrgelse
2730e9554658Smrg  if test -n "$ac_ct_CC"; then
2731e9554658Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2732e9554658Smrgelse
2733e9554658Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734e9554658Smrgfor as_dir in $PATH
2735e9554658Smrgdo
2736e9554658Smrg  IFS=$as_save_IFS
2737e9554658Smrg  test -z "$as_dir" && as_dir=.
2738e9554658Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2739e9554658Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2740e9554658Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
2741c2b339b4Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2742e9554658Smrg    break 2
2743e9554658Smrg  fi
2744e9554658Smrgdone
2745e9554658Smrgdone
2746e9554658SmrgIFS=$as_save_IFS
2747e9554658Smrg
2748e9554658Smrgfi
2749e9554658Smrgfi
2750e9554658Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2751e9554658Smrgif test -n "$ac_ct_CC"; then
2752c2b339b4Smrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2753c2b339b4Smrg$as_echo "$ac_ct_CC" >&6; }
2754e9554658Smrgelse
2755c2b339b4Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2756c2b339b4Smrg$as_echo "no" >&6; }
2757e9554658Smrgfi
2758e9554658Smrg
2759e9554658Smrg
2760e9554658Smrg  test -n "$ac_ct_CC" && break
2761e9554658Smrgdone
2762e9554658Smrg
2763e9554658Smrg  if test "x$ac_ct_CC" = x; then
2764e9554658Smrg    CC=""
2765e9554658Smrg  else
2766e9554658Smrg    case $cross_compiling:$ac_tool_warned in
2767e9554658Smrgyes:)
2768c2b339b4Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2769c2b339b4Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2770e9554658Smrgac_tool_warned=yes ;;
2771e9554658Smrgesac
2772e9554658Smrg    CC=$ac_ct_CC
2773e9554658Smrg  fi
2774e9554658Smrgfi
2775e9554658Smrg
2776e9554658Smrgfi
2777e9554658Smrg
2778e9554658Smrg
2779c2b339b4Smrgtest -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2780c2b339b4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2781c2b339b4Smrg{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2782e9554658SmrgSee \`config.log' for more details." >&5
2783c2b339b4Smrg$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2784e9554658SmrgSee \`config.log' for more details." >&2;}
2785c2b339b4Smrg   { (exit 1); exit 1; }; }; }
2786e9554658Smrg
2787e9554658Smrg# Provide some information about the compiler.
2788c2b339b4Smrg$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2789c2b339b4Smrgset X $ac_compile
2790c2b339b4Smrgac_compiler=$2
2791e9554658Smrg{ (ac_try="$ac_compiler --version >&5"
2792e9554658Smrgcase "(($ac_try" in
2793e9554658Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2794e9554658Smrg  *) ac_try_echo=$ac_try;;
2795e9554658Smrgesac
2796c2b339b4Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2797c2b339b4Smrg$as_echo "$ac_try_echo") >&5
2798e9554658Smrg  (eval "$ac_compiler --version >&5") 2>&5
2799e9554658Smrg  ac_status=$?
2800c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801e9554658Smrg  (exit $ac_status); }
2802e9554658Smrg{ (ac_try="$ac_compiler -v >&5"
2803e9554658Smrgcase "(($ac_try" in
2804e9554658Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805e9554658Smrg  *) ac_try_echo=$ac_try;;
2806e9554658Smrgesac
2807c2b339b4Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2808c2b339b4Smrg$as_echo "$ac_try_echo") >&5
2809e9554658Smrg  (eval "$ac_compiler -v >&5") 2>&5
2810e9554658Smrg  ac_status=$?
2811c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812e9554658Smrg  (exit $ac_status); }
2813e9554658Smrg{ (ac_try="$ac_compiler -V >&5"
2814e9554658Smrgcase "(($ac_try" in
2815e9554658Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816e9554658Smrg  *) ac_try_echo=$ac_try;;
2817e9554658Smrgesac
2818c2b339b4Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2819c2b339b4Smrg$as_echo "$ac_try_echo") >&5
2820e9554658Smrg  (eval "$ac_compiler -V >&5") 2>&5
2821e9554658Smrg  ac_status=$?
2822c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823e9554658Smrg  (exit $ac_status); }
2824e9554658Smrg
2825e9554658Smrgcat >conftest.$ac_ext <<_ACEOF
2826e9554658Smrg/* confdefs.h.  */
2827e9554658Smrg_ACEOF
2828e9554658Smrgcat confdefs.h >>conftest.$ac_ext
2829e9554658Smrgcat >>conftest.$ac_ext <<_ACEOF
2830e9554658Smrg/* end confdefs.h.  */
2831e9554658Smrg
2832e9554658Smrgint
2833e9554658Smrgmain ()
2834e9554658Smrg{
2835e9554658Smrg
2836e9554658Smrg  ;
2837e9554658Smrg  return 0;
2838e9554658Smrg}
2839e9554658Smrg_ACEOF
2840e9554658Smrgac_clean_files_save=$ac_clean_files
2841c2b339b4Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2842e9554658Smrg# Try to create an executable without -o first, disregard a.out.
2843e9554658Smrg# It will help us diagnose broken compilers, and finding out an intuition
2844e9554658Smrg# of exeext.
2845c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2846c2b339b4Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
2847c2b339b4Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2848c2b339b4Smrg
2849c2b339b4Smrg# The possible output files:
2850c2b339b4Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2851c2b339b4Smrg
2852e9554658Smrgac_rmfiles=
2853e9554658Smrgfor ac_file in $ac_files
2854e9554658Smrgdo
2855e9554658Smrg  case $ac_file in
2856c2b339b4Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2857e9554658Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2858e9554658Smrg  esac
2859e9554658Smrgdone
2860e9554658Smrgrm -f $ac_rmfiles
2861e9554658Smrg
2862e9554658Smrgif { (ac_try="$ac_link_default"
2863e9554658Smrgcase "(($ac_try" in
2864e9554658Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865e9554658Smrg  *) ac_try_echo=$ac_try;;
2866e9554658Smrgesac
2867c2b339b4Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2868c2b339b4Smrg$as_echo "$ac_try_echo") >&5
2869e9554658Smrg  (eval "$ac_link_default") 2>&5
2870e9554658Smrg  ac_status=$?
2871c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872e9554658Smrg  (exit $ac_status); }; then
2873e9554658Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2874e9554658Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2875e9554658Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2876e9554658Smrg# so that the user can short-circuit this test for compilers unknown to
2877e9554658Smrg# Autoconf.
2878e9554658Smrgfor ac_file in $ac_files ''
2879e9554658Smrgdo
2880e9554658Smrg  test -f "$ac_file" || continue
2881e9554658Smrg  case $ac_file in
2882c2b339b4Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2883e9554658Smrg	;;
2884e9554658Smrg    [ab].out )
2885e9554658Smrg	# We found the default executable, but exeext='' is most
2886e9554658Smrg	# certainly right.
2887e9554658Smrg	break;;
2888e9554658Smrg    *.* )
2889e9554658Smrg        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2890e9554658Smrg	then :; else
2891e9554658Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2892e9554658Smrg	fi
2893e9554658Smrg	# We set ac_cv_exeext here because the later test for it is not
2894e9554658Smrg	# safe: cross compilers may not add the suffix if given an `-o'
2895e9554658Smrg	# argument, so we may need to know it at that point already.
2896e9554658Smrg	# Even if this section looks crufty: it has the advantage of
2897e9554658Smrg	# actually working.
2898e9554658Smrg	break;;
2899e9554658Smrg    * )
2900e9554658Smrg	break;;
2901e9554658Smrg  esac
2902e9554658Smrgdone
2903e9554658Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
2904e9554658Smrg
2905e9554658Smrgelse
2906e9554658Smrg  ac_file=''
2907e9554658Smrgfi
2908e9554658Smrg
2909c2b339b4Smrg{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2910c2b339b4Smrg$as_echo "$ac_file" >&6; }
2911e9554658Smrgif test -z "$ac_file"; then
2912c2b339b4Smrg  $as_echo "$as_me: failed program was:" >&5
2913e9554658Smrgsed 's/^/| /' conftest.$ac_ext >&5
2914e9554658Smrg
2915c2b339b4Smrg{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2916c2b339b4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2917c2b339b4Smrg{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2918e9554658SmrgSee \`config.log' for more details." >&5
2919c2b339b4Smrg$as_echo "$as_me: error: C compiler cannot create executables
2920e9554658SmrgSee \`config.log' for more details." >&2;}
2921c2b339b4Smrg   { (exit 77); exit 77; }; }; }
2922e9554658Smrgfi
2923e9554658Smrg
2924e9554658Smrgac_exeext=$ac_cv_exeext
2925e9554658Smrg
2926e9554658Smrg# Check that the compiler produces executables we can run.  If not, either
2927e9554658Smrg# the compiler is broken, or we cross compile.
2928c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2929c2b339b4Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
2930e9554658Smrg# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2931e9554658Smrg# If not cross compiling, check that we can run a simple program.
2932e9554658Smrgif test "$cross_compiling" != yes; then
2933e9554658Smrg  if { ac_try='./$ac_file'
2934e9554658Smrg  { (case "(($ac_try" in
2935e9554658Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936e9554658Smrg  *) ac_try_echo=$ac_try;;
2937e9554658Smrgesac
2938c2b339b4Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2939c2b339b4Smrg$as_echo "$ac_try_echo") >&5
2940e9554658Smrg  (eval "$ac_try") 2>&5
2941e9554658Smrg  ac_status=$?
2942c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943e9554658Smrg  (exit $ac_status); }; }; then
2944e9554658Smrg    cross_compiling=no
2945e9554658Smrg  else
2946e9554658Smrg    if test "$cross_compiling" = maybe; then
2947e9554658Smrg	cross_compiling=yes
2948e9554658Smrg    else
2949c2b339b4Smrg	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2950c2b339b4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2951c2b339b4Smrg{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2952e9554658SmrgIf you meant to cross compile, use \`--host'.
2953e9554658SmrgSee \`config.log' for more details." >&5
2954c2b339b4Smrg$as_echo "$as_me: error: cannot run C compiled programs.
2955e9554658SmrgIf you meant to cross compile, use \`--host'.
2956e9554658SmrgSee \`config.log' for more details." >&2;}
2957c2b339b4Smrg   { (exit 1); exit 1; }; }; }
2958e9554658Smrg    fi
2959e9554658Smrg  fi
2960e9554658Smrgfi
2961c2b339b4Smrg{ $as_echo "$as_me:$LINENO: result: yes" >&5
2962c2b339b4Smrg$as_echo "yes" >&6; }
2963e9554658Smrg
2964c2b339b4Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2965e9554658Smrgac_clean_files=$ac_clean_files_save
2966e9554658Smrg# Check that the compiler produces executables we can run.  If not, either
2967e9554658Smrg# the compiler is broken, or we cross compile.
2968c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2969c2b339b4Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
2970c2b339b4Smrg{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2971c2b339b4Smrg$as_echo "$cross_compiling" >&6; }
2972e9554658Smrg
2973c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2974c2b339b4Smrg$as_echo_n "checking for suffix of executables... " >&6; }
2975e9554658Smrgif { (ac_try="$ac_link"
2976e9554658Smrgcase "(($ac_try" in
2977e9554658Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978e9554658Smrg  *) ac_try_echo=$ac_try;;
2979e9554658Smrgesac
2980c2b339b4Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2981c2b339b4Smrg$as_echo "$ac_try_echo") >&5
2982e9554658Smrg  (eval "$ac_link") 2>&5
2983e9554658Smrg  ac_status=$?
2984c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985e9554658Smrg  (exit $ac_status); }; then
2986e9554658Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2987e9554658Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2988e9554658Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
2989e9554658Smrg# `rm'.
2990e9554658Smrgfor ac_file in conftest.exe conftest conftest.*; do
2991e9554658Smrg  test -f "$ac_file" || continue
2992e9554658Smrg  case $ac_file in
2993c2b339b4Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2994e9554658Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2995e9554658Smrg	  break;;
2996e9554658Smrg    * ) break;;
2997e9554658Smrg  esac
2998e9554658Smrgdone
2999e9554658Smrgelse
3000c2b339b4Smrg  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3001c2b339b4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3002c2b339b4Smrg{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3003e9554658SmrgSee \`config.log' for more details." >&5
3004c2b339b4Smrg$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3005e9554658SmrgSee \`config.log' for more details." >&2;}
3006c2b339b4Smrg   { (exit 1); exit 1; }; }; }
3007e9554658Smrgfi
3008e9554658Smrg
3009e9554658Smrgrm -f conftest$ac_cv_exeext
3010c2b339b4Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3011c2b339b4Smrg$as_echo "$ac_cv_exeext" >&6; }
3012e9554658Smrg
3013e9554658Smrgrm -f conftest.$ac_ext
3014e9554658SmrgEXEEXT=$ac_cv_exeext
3015e9554658Smrgac_exeext=$EXEEXT
3016c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3017c2b339b4Smrg$as_echo_n "checking for suffix of object files... " >&6; }
3018e9554658Smrgif test "${ac_cv_objext+set}" = set; then
3019c2b339b4Smrg  $as_echo_n "(cached) " >&6
3020e9554658Smrgelse
3021e9554658Smrg  cat >conftest.$ac_ext <<_ACEOF
3022e9554658Smrg/* confdefs.h.  */
3023e9554658Smrg_ACEOF
3024e9554658Smrgcat confdefs.h >>conftest.$ac_ext
3025e9554658Smrgcat >>conftest.$ac_ext <<_ACEOF
3026e9554658Smrg/* end confdefs.h.  */
3027e9554658Smrg
3028e9554658Smrgint
3029e9554658Smrgmain ()
3030e9554658Smrg{
3031e9554658Smrg
3032e9554658Smrg  ;
3033e9554658Smrg  return 0;
3034e9554658Smrg}
3035e9554658Smrg_ACEOF
3036e9554658Smrgrm -f conftest.o conftest.obj
3037e9554658Smrgif { (ac_try="$ac_compile"
3038e9554658Smrgcase "(($ac_try" in
3039e9554658Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040e9554658Smrg  *) ac_try_echo=$ac_try;;
3041e9554658Smrgesac
3042c2b339b4Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3043c2b339b4Smrg$as_echo "$ac_try_echo") >&5
3044e9554658Smrg  (eval "$ac_compile") 2>&5
3045e9554658Smrg  ac_status=$?
3046c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047e9554658Smrg  (exit $ac_status); }; then
3048e9554658Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
3049e9554658Smrg  test -f "$ac_file" || continue;
3050e9554658Smrg  case $ac_file in
3051c2b339b4Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3052e9554658Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3053e9554658Smrg       break;;
3054e9554658Smrg  esac
3055e9554658Smrgdone
3056e9554658Smrgelse
3057c2b339b4Smrg  $as_echo "$as_me: failed program was:" >&5
3058e9554658Smrgsed 's/^/| /' conftest.$ac_ext >&5
3059e9554658Smrg
3060c2b339b4Smrg{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3061c2b339b4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3062c2b339b4Smrg{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3063e9554658SmrgSee \`config.log' for more details." >&5
3064c2b339b4Smrg$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3065e9554658SmrgSee \`config.log' for more details." >&2;}
3066c2b339b4Smrg   { (exit 1); exit 1; }; }; }
3067e9554658Smrgfi
3068e9554658Smrg
3069e9554658Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
3070e9554658Smrgfi
3071c2b339b4Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3072c2b339b4Smrg$as_echo "$ac_cv_objext" >&6; }
3073e9554658SmrgOBJEXT=$ac_cv_objext
3074e9554658Smrgac_objext=$OBJEXT
3075c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3076c2b339b4Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3077e9554658Smrgif test "${ac_cv_c_compiler_gnu+set}" = set; then
3078c2b339b4Smrg  $as_echo_n "(cached) " >&6
3079e9554658Smrgelse
3080e9554658Smrg  cat >conftest.$ac_ext <<_ACEOF
3081e9554658Smrg/* confdefs.h.  */
3082e9554658Smrg_ACEOF
3083e9554658Smrgcat confdefs.h >>conftest.$ac_ext
3084e9554658Smrgcat >>conftest.$ac_ext <<_ACEOF
3085e9554658Smrg/* end confdefs.h.  */
3086e9554658Smrg
3087e9554658Smrgint
3088e9554658Smrgmain ()
3089e9554658Smrg{
3090e9554658Smrg#ifndef __GNUC__
3091e9554658Smrg       choke me
3092e9554658Smrg#endif
3093e9554658Smrg
3094e9554658Smrg  ;
3095e9554658Smrg  return 0;
3096e9554658Smrg}
3097e9554658Smrg_ACEOF
3098e9554658Smrgrm -f conftest.$ac_objext
3099e9554658Smrgif { (ac_try="$ac_compile"
3100e9554658Smrgcase "(($ac_try" in
3101e9554658Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102e9554658Smrg  *) ac_try_echo=$ac_try;;
3103e9554658Smrgesac
3104c2b339b4Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3105c2b339b4Smrg$as_echo "$ac_try_echo") >&5
3106e9554658Smrg  (eval "$ac_compile") 2>conftest.er1
3107e9554658Smrg  ac_status=$?
3108e9554658Smrg  grep -v '^ *+' conftest.er1 >conftest.err
3109e9554658Smrg  rm -f conftest.er1
3110e9554658Smrg  cat conftest.err >&5
3111c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112e9554658Smrg  (exit $ac_status); } && {
3113e9554658Smrg	 test -z "$ac_c_werror_flag" ||
3114e9554658Smrg	 test ! -s conftest.err
3115e9554658Smrg       } && test -s conftest.$ac_objext; then
3116e9554658Smrg  ac_compiler_gnu=yes
3117e9554658Smrgelse
3118c2b339b4Smrg  $as_echo "$as_me: failed program was:" >&5
3119e9554658Smrgsed 's/^/| /' conftest.$ac_ext >&5
3120e9554658Smrg
3121e9554658Smrg	ac_compiler_gnu=no
3122e9554658Smrgfi
3123e9554658Smrg
3124e9554658Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3125e9554658Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
3126e9554658Smrg
3127e9554658Smrgfi
3128c2b339b4Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3129c2b339b4Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3130c2b339b4Smrgif test $ac_compiler_gnu = yes; then
3131c2b339b4Smrg  GCC=yes
3132c2b339b4Smrgelse
3133c2b339b4Smrg  GCC=
3134c2b339b4Smrgfi
3135e9554658Smrgac_test_CFLAGS=${CFLAGS+set}
3136e9554658Smrgac_save_CFLAGS=$CFLAGS
3137c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3138c2b339b4Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
3139e9554658Smrgif test "${ac_cv_prog_cc_g+set}" = set; then
3140c2b339b4Smrg  $as_echo_n "(cached) " >&6
3141e9554658Smrgelse
3142e9554658Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
3143e9554658Smrg   ac_c_werror_flag=yes
3144e9554658Smrg   ac_cv_prog_cc_g=no
3145e9554658Smrg   CFLAGS="-g"
3146e9554658Smrg   cat >conftest.$ac_ext <<_ACEOF
3147e9554658Smrg/* confdefs.h.  */
3148e9554658Smrg_ACEOF
3149e9554658Smrgcat confdefs.h >>conftest.$ac_ext
3150e9554658Smrgcat >>conftest.$ac_ext <<_ACEOF
3151e9554658Smrg/* end confdefs.h.  */
3152e9554658Smrg
3153e9554658Smrgint
3154e9554658Smrgmain ()
3155e9554658Smrg{
3156e9554658Smrg
3157e9554658Smrg  ;
3158e9554658Smrg  return 0;
3159e9554658Smrg}
3160e9554658Smrg_ACEOF
3161e9554658Smrgrm -f conftest.$ac_objext
3162e9554658Smrgif { (ac_try="$ac_compile"
3163e9554658Smrgcase "(($ac_try" in
3164e9554658Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165e9554658Smrg  *) ac_try_echo=$ac_try;;
3166e9554658Smrgesac
3167c2b339b4Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3168c2b339b4Smrg$as_echo "$ac_try_echo") >&5
3169e9554658Smrg  (eval "$ac_compile") 2>conftest.er1
3170e9554658Smrg  ac_status=$?
3171e9554658Smrg  grep -v '^ *+' conftest.er1 >conftest.err
3172e9554658Smrg  rm -f conftest.er1
3173e9554658Smrg  cat conftest.err >&5
3174c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175e9554658Smrg  (exit $ac_status); } && {
3176e9554658Smrg	 test -z "$ac_c_werror_flag" ||
3177e9554658Smrg	 test ! -s conftest.err
3178e9554658Smrg       } && test -s conftest.$ac_objext; then
3179e9554658Smrg  ac_cv_prog_cc_g=yes
3180e9554658Smrgelse
3181c2b339b4Smrg  $as_echo "$as_me: failed program was:" >&5
3182e9554658Smrgsed 's/^/| /' conftest.$ac_ext >&5
3183e9554658Smrg
3184e9554658Smrg	CFLAGS=""
3185e9554658Smrg      cat >conftest.$ac_ext <<_ACEOF
3186e9554658Smrg/* confdefs.h.  */
3187e9554658Smrg_ACEOF
3188e9554658Smrgcat confdefs.h >>conftest.$ac_ext
3189e9554658Smrgcat >>conftest.$ac_ext <<_ACEOF
3190e9554658Smrg/* end confdefs.h.  */
3191e9554658Smrg
3192e9554658Smrgint
3193e9554658Smrgmain ()
3194e9554658Smrg{
3195e9554658Smrg
3196e9554658Smrg  ;
3197e9554658Smrg  return 0;
3198e9554658Smrg}
3199e9554658Smrg_ACEOF
3200e9554658Smrgrm -f conftest.$ac_objext
3201e9554658Smrgif { (ac_try="$ac_compile"
3202e9554658Smrgcase "(($ac_try" in
3203e9554658Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204e9554658Smrg  *) ac_try_echo=$ac_try;;
3205e9554658Smrgesac
3206c2b339b4Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3207c2b339b4Smrg$as_echo "$ac_try_echo") >&5
3208e9554658Smrg  (eval "$ac_compile") 2>conftest.er1
3209e9554658Smrg  ac_status=$?
3210e9554658Smrg  grep -v '^ *+' conftest.er1 >conftest.err
3211e9554658Smrg  rm -f conftest.er1
3212e9554658Smrg  cat conftest.err >&5
3213c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214e9554658Smrg  (exit $ac_status); } && {
3215e9554658Smrg	 test -z "$ac_c_werror_flag" ||
3216e9554658Smrg	 test ! -s conftest.err
3217e9554658Smrg       } && test -s conftest.$ac_objext; then
3218e9554658Smrg  :
3219e9554658Smrgelse
3220c2b339b4Smrg  $as_echo "$as_me: failed program was:" >&5
3221e9554658Smrgsed 's/^/| /' conftest.$ac_ext >&5
3222e9554658Smrg
3223e9554658Smrg	ac_c_werror_flag=$ac_save_c_werror_flag
3224e9554658Smrg	 CFLAGS="-g"
3225e9554658Smrg	 cat >conftest.$ac_ext <<_ACEOF
3226e9554658Smrg/* confdefs.h.  */
3227e9554658Smrg_ACEOF
3228e9554658Smrgcat confdefs.h >>conftest.$ac_ext
3229e9554658Smrgcat >>conftest.$ac_ext <<_ACEOF
3230e9554658Smrg/* end confdefs.h.  */
3231e9554658Smrg
3232e9554658Smrgint
3233e9554658Smrgmain ()
3234e9554658Smrg{
3235e9554658Smrg
3236e9554658Smrg  ;
3237e9554658Smrg  return 0;
3238e9554658Smrg}
3239e9554658Smrg_ACEOF
3240e9554658Smrgrm -f conftest.$ac_objext
3241e9554658Smrgif { (ac_try="$ac_compile"
3242e9554658Smrgcase "(($ac_try" in
3243e9554658Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244e9554658Smrg  *) ac_try_echo=$ac_try;;
3245e9554658Smrgesac
3246c2b339b4Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3247c2b339b4Smrg$as_echo "$ac_try_echo") >&5
3248e9554658Smrg  (eval "$ac_compile") 2>conftest.er1
3249e9554658Smrg  ac_status=$?
3250e9554658Smrg  grep -v '^ *+' conftest.er1 >conftest.err
3251e9554658Smrg  rm -f conftest.er1
3252e9554658Smrg  cat conftest.err >&5
3253c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254e9554658Smrg  (exit $ac_status); } && {
3255e9554658Smrg	 test -z "$ac_c_werror_flag" ||
3256e9554658Smrg	 test ! -s conftest.err
3257e9554658Smrg       } && test -s conftest.$ac_objext; then
3258e9554658Smrg  ac_cv_prog_cc_g=yes
3259e9554658Smrgelse
3260c2b339b4Smrg  $as_echo "$as_me: failed program was:" >&5
3261e9554658Smrgsed 's/^/| /' conftest.$ac_ext >&5
3262e9554658Smrg
3263e9554658Smrg
3264e9554658Smrgfi
3265e9554658Smrg
3266e9554658Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3267e9554658Smrgfi
3268e9554658Smrg
3269e9554658Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270e9554658Smrgfi
3271e9554658Smrg
3272e9554658Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3273e9554658Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
3274e9554658Smrgfi
3275c2b339b4Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3276c2b339b4Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
3277e9554658Smrgif test "$ac_test_CFLAGS" = set; then
3278e9554658Smrg  CFLAGS=$ac_save_CFLAGS
3279e9554658Smrgelif test $ac_cv_prog_cc_g = yes; then
3280e9554658Smrg  if test "$GCC" = yes; then
3281e9554658Smrg    CFLAGS="-g -O2"
3282e9554658Smrg  else
3283e9554658Smrg    CFLAGS="-g"
3284e9554658Smrg  fi
3285e9554658Smrgelse
3286e9554658Smrg  if test "$GCC" = yes; then
3287e9554658Smrg    CFLAGS="-O2"
3288e9554658Smrg  else
3289e9554658Smrg    CFLAGS=
3290e9554658Smrg  fi
3291e9554658Smrgfi
3292c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3293c2b339b4Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3294e9554658Smrgif test "${ac_cv_prog_cc_c89+set}" = set; then
3295c2b339b4Smrg  $as_echo_n "(cached) " >&6
3296e9554658Smrgelse
3297e9554658Smrg  ac_cv_prog_cc_c89=no
3298e9554658Smrgac_save_CC=$CC
3299e9554658Smrgcat >conftest.$ac_ext <<_ACEOF
3300e9554658Smrg/* confdefs.h.  */
3301e9554658Smrg_ACEOF
3302e9554658Smrgcat confdefs.h >>conftest.$ac_ext
3303e9554658Smrgcat >>conftest.$ac_ext <<_ACEOF
3304e9554658Smrg/* end confdefs.h.  */
3305e9554658Smrg#include <stdarg.h>
3306e9554658Smrg#include <stdio.h>
3307e9554658Smrg#include <sys/types.h>
3308e9554658Smrg#include <sys/stat.h>
3309e9554658Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3310e9554658Smrgstruct buf { int x; };
3311e9554658SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
3312e9554658Smrgstatic char *e (p, i)
3313e9554658Smrg     char **p;
3314e9554658Smrg     int i;
3315e9554658Smrg{
3316e9554658Smrg  return p[i];
3317e9554658Smrg}
3318e9554658Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
3319e9554658Smrg{
3320e9554658Smrg  char *s;
3321e9554658Smrg  va_list v;
3322e9554658Smrg  va_start (v,p);
3323e9554658Smrg  s = g (p, va_arg (v,int));
3324e9554658Smrg  va_end (v);
3325e9554658Smrg  return s;
3326e9554658Smrg}
3327e9554658Smrg
3328e9554658Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3329e9554658Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
3330e9554658Smrg   These don't provoke an error unfortunately, instead are silently treated
3331e9554658Smrg   as 'x'.  The following induces an error, until -std is added to get
3332e9554658Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3333e9554658Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
3334e9554658Smrg   that's true only with -std.  */
3335e9554658Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
3336e9554658Smrg
3337e9554658Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3338e9554658Smrg   inside strings and character constants.  */
3339e9554658Smrg#define FOO(x) 'x'
3340e9554658Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3341e9554658Smrg
3342e9554658Smrgint test (int i, double x);
3343e9554658Smrgstruct s1 {int (*f) (int a);};
3344e9554658Smrgstruct s2 {int (*f) (double a);};
3345e9554658Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3346e9554658Smrgint argc;
3347e9554658Smrgchar **argv;
3348e9554658Smrgint
3349e9554658Smrgmain ()
3350e9554658Smrg{
3351e9554658Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3352e9554658Smrg  ;
3353e9554658Smrg  return 0;
3354e9554658Smrg}
3355e9554658Smrg_ACEOF
3356e9554658Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3357e9554658Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3358e9554658Smrgdo
3359e9554658Smrg  CC="$ac_save_CC $ac_arg"
3360e9554658Smrg  rm -f conftest.$ac_objext
3361e9554658Smrgif { (ac_try="$ac_compile"
3362e9554658Smrgcase "(($ac_try" in
3363e9554658Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364e9554658Smrg  *) ac_try_echo=$ac_try;;
3365e9554658Smrgesac
3366c2b339b4Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3367c2b339b4Smrg$as_echo "$ac_try_echo") >&5
3368e9554658Smrg  (eval "$ac_compile") 2>conftest.er1
3369e9554658Smrg  ac_status=$?
3370e9554658Smrg  grep -v '^ *+' conftest.er1 >conftest.err
3371e9554658Smrg  rm -f conftest.er1
3372e9554658Smrg  cat conftest.err >&5
3373c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374e9554658Smrg  (exit $ac_status); } && {
3375e9554658Smrg	 test -z "$ac_c_werror_flag" ||
3376e9554658Smrg	 test ! -s conftest.err
3377e9554658Smrg       } && test -s conftest.$ac_objext; then
3378e9554658Smrg  ac_cv_prog_cc_c89=$ac_arg
3379e9554658Smrgelse
3380c2b339b4Smrg  $as_echo "$as_me: failed program was:" >&5
3381e9554658Smrgsed 's/^/| /' conftest.$ac_ext >&5
3382e9554658Smrg
3383e9554658Smrg
3384e9554658Smrgfi
3385e9554658Smrg
3386e9554658Smrgrm -f core conftest.err conftest.$ac_objext
3387e9554658Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
3388e9554658Smrgdone
3389e9554658Smrgrm -f conftest.$ac_ext
3390e9554658SmrgCC=$ac_save_CC
3391e9554658Smrg
3392e9554658Smrgfi
3393e9554658Smrg# AC_CACHE_VAL
3394e9554658Smrgcase "x$ac_cv_prog_cc_c89" in
3395e9554658Smrg  x)
3396c2b339b4Smrg    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3397c2b339b4Smrg$as_echo "none needed" >&6; } ;;
3398e9554658Smrg  xno)
3399c2b339b4Smrg    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3400c2b339b4Smrg$as_echo "unsupported" >&6; } ;;
3401e9554658Smrg  *)
3402e9554658Smrg    CC="$CC $ac_cv_prog_cc_c89"
3403c2b339b4Smrg    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3404c2b339b4Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3405e9554658Smrgesac
3406e9554658Smrg
3407e9554658Smrg
3408e9554658Smrgac_ext=c
3409e9554658Smrgac_cpp='$CPP $CPPFLAGS'
3410e9554658Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3411e9554658Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3412e9554658Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3413e9554658SmrgDEPDIR="${am__leading_dot}deps"
3414e9554658Smrg
3415e9554658Smrgac_config_commands="$ac_config_commands depfiles"
3416e9554658Smrg
3417e9554658Smrg
3418e9554658Smrgam_make=${MAKE-make}
3419e9554658Smrgcat > confinc << 'END'
3420e9554658Smrgam__doit:
3421c2b339b4Smrg	@echo this is the am__doit target
3422e9554658Smrg.PHONY: am__doit
3423e9554658SmrgEND
3424e9554658Smrg# If we don't find an include directive, just comment out the code.
3425c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3426c2b339b4Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
3427e9554658Smrgam__include="#"
3428e9554658Smrgam__quote=
3429e9554658Smrg_am_result=none
3430e9554658Smrg# First try GNU make style include.
3431e9554658Smrgecho "include confinc" > confmf
3432c2b339b4Smrg# Ignore all kinds of additional output from `make'.
3433c2b339b4Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
3434c2b339b4Smrg*the\ am__doit\ target*)
3435c2b339b4Smrg  am__include=include
3436c2b339b4Smrg  am__quote=
3437c2b339b4Smrg  _am_result=GNU
3438c2b339b4Smrg  ;;
3439c2b339b4Smrgesac
3440e9554658Smrg# Now try BSD make style include.
3441e9554658Smrgif test "$am__include" = "#"; then
3442e9554658Smrg   echo '.include "confinc"' > confmf
3443c2b339b4Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
3444c2b339b4Smrg   *the\ am__doit\ target*)
3445c2b339b4Smrg     am__include=.include
3446c2b339b4Smrg     am__quote="\""
3447c2b339b4Smrg     _am_result=BSD
3448c2b339b4Smrg     ;;
3449c2b339b4Smrg   esac
3450e9554658Smrgfi
3451e9554658Smrg
3452e9554658Smrg
3453c2b339b4Smrg{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3454c2b339b4Smrg$as_echo "$_am_result" >&6; }
3455e9554658Smrgrm -f confinc confmf
3456e9554658Smrg
3457e9554658Smrg# Check whether --enable-dependency-tracking was given.
3458e9554658Smrgif test "${enable_dependency_tracking+set}" = set; then
3459e9554658Smrg  enableval=$enable_dependency_tracking;
3460e9554658Smrgfi
3461e9554658Smrg
3462e9554658Smrgif test "x$enable_dependency_tracking" != xno; then
3463e9554658Smrg  am_depcomp="$ac_aux_dir/depcomp"
3464e9554658Smrg  AMDEPBACKSLASH='\'
3465e9554658Smrgfi
3466e9554658Smrg if test "x$enable_dependency_tracking" != xno; then
3467e9554658Smrg  AMDEP_TRUE=
3468e9554658Smrg  AMDEP_FALSE='#'
3469e9554658Smrgelse
3470e9554658Smrg  AMDEP_TRUE='#'
3471e9554658Smrg  AMDEP_FALSE=
3472e9554658Smrgfi
3473e9554658Smrg
3474e9554658Smrg
3475e9554658Smrg
3476e9554658Smrgdepcc="$CC"   am_compiler_list=
3477e9554658Smrg
3478c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3479c2b339b4Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
3480e9554658Smrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3481c2b339b4Smrg  $as_echo_n "(cached) " >&6
3482e9554658Smrgelse
3483e9554658Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3484e9554658Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
3485e9554658Smrg  # making bogus files that we don't know about and never remove.  For
3486e9554658Smrg  # instance it was reported that on HP-UX the gcc test will end up
3487e9554658Smrg  # making a dummy file named `D' -- because `-MD' means `put the output
3488e9554658Smrg  # in D'.
3489e9554658Smrg  mkdir conftest.dir
3490e9554658Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
3491e9554658Smrg  # using a relative directory.
3492e9554658Smrg  cp "$am_depcomp" conftest.dir
3493e9554658Smrg  cd conftest.dir
3494e9554658Smrg  # We will build objects and dependencies in a subdirectory because
3495e9554658Smrg  # it helps to detect inapplicable dependency modes.  For instance
3496e9554658Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
3497e9554658Smrg  # side effect of compilation, but ICC will put the dependencies in
3498e9554658Smrg  # the current directory while Tru64 will put them in the object
3499e9554658Smrg  # directory.
3500e9554658Smrg  mkdir sub
3501e9554658Smrg
3502e9554658Smrg  am_cv_CC_dependencies_compiler_type=none
3503e9554658Smrg  if test "$am_compiler_list" = ""; then
3504e9554658Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3505e9554658Smrg  fi
3506c2b339b4Smrg  am__universal=false
3507c2b339b4Smrg  case " $depcc " in #(
3508c2b339b4Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3509c2b339b4Smrg     esac
3510c2b339b4Smrg
3511e9554658Smrg  for depmode in $am_compiler_list; do
3512e9554658Smrg    # Setup a source with many dependencies, because some compilers
3513e9554658Smrg    # like to wrap large dependency lists on column 80 (with \), and
3514e9554658Smrg    # we should not choose a depcomp mode which is confused by this.
3515e9554658Smrg    #
3516e9554658Smrg    # We need to recreate these files for each test, as the compiler may
3517e9554658Smrg    # overwrite some of them when testing with obscure command lines.
3518e9554658Smrg    # This happens at least with the AIX C compiler.
3519e9554658Smrg    : > sub/conftest.c
3520e9554658Smrg    for i in 1 2 3 4 5 6; do
3521e9554658Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3522e9554658Smrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3523e9554658Smrg      # Solaris 8's {/usr,}/bin/sh.
3524e9554658Smrg      touch sub/conftst$i.h
3525e9554658Smrg    done
3526e9554658Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3527e9554658Smrg
3528c2b339b4Smrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3529c2b339b4Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
3530c2b339b4Smrg    # handle `-M -o', and we need to detect this.  Also, some Intel
3531c2b339b4Smrg    # versions had trouble with output in subdirs
3532c2b339b4Smrg    am__obj=sub/conftest.${OBJEXT-o}
3533c2b339b4Smrg    am__minus_obj="-o $am__obj"
3534e9554658Smrg    case $depmode in
3535c2b339b4Smrg    gcc)
3536c2b339b4Smrg      # This depmode causes a compiler race in universal mode.
3537c2b339b4Smrg      test "$am__universal" = false || continue
3538c2b339b4Smrg      ;;
3539e9554658Smrg    nosideeffect)
3540e9554658Smrg      # after this tag, mechanisms are not by side-effect, so they'll
3541e9554658Smrg      # only be used when explicitly requested
3542e9554658Smrg      if test "x$enable_dependency_tracking" = xyes; then
3543e9554658Smrg	continue
3544e9554658Smrg      else
3545e9554658Smrg	break
3546e9554658Smrg      fi
3547e9554658Smrg      ;;
3548c2b339b4Smrg    msvisualcpp | msvcmsys)
3549c2b339b4Smrg      # This compiler won't grok `-c -o', but also, the minuso test has
3550c2b339b4Smrg      # not run yet.  These depmodes are late enough in the game, and
3551c2b339b4Smrg      # so weak that their functioning should not be impacted.
3552c2b339b4Smrg      am__obj=conftest.${OBJEXT-o}
3553c2b339b4Smrg      am__minus_obj=
3554c2b339b4Smrg      ;;
3555e9554658Smrg    none) break ;;
3556e9554658Smrg    esac
3557e9554658Smrg    if depmode=$depmode \
3558c2b339b4Smrg       source=sub/conftest.c object=$am__obj \
3559e9554658Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3560c2b339b4Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3561e9554658Smrg         >/dev/null 2>conftest.err &&
3562e9554658Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3563e9554658Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3564c2b339b4Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3565e9554658Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3566e9554658Smrg      # icc doesn't choke on unknown options, it will just issue warnings
3567e9554658Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
3568e9554658Smrg      # that says an option was ignored or not supported.
3569e9554658Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
3570e9554658Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
3571e9554658Smrg      # The diagnosis changed in icc 8.0:
3572e9554658Smrg      #   icc: Command line remark: option '-MP' not supported
3573e9554658Smrg      if (grep 'ignoring option' conftest.err ||
3574e9554658Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3575e9554658Smrg        am_cv_CC_dependencies_compiler_type=$depmode
3576e9554658Smrg        break
3577e9554658Smrg      fi
3578e9554658Smrg    fi
3579e9554658Smrg  done
3580e9554658Smrg
3581e9554658Smrg  cd ..
3582e9554658Smrg  rm -rf conftest.dir
3583e9554658Smrgelse
3584e9554658Smrg  am_cv_CC_dependencies_compiler_type=none
3585e9554658Smrgfi
3586e9554658Smrg
3587e9554658Smrgfi
3588c2b339b4Smrg{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3589c2b339b4Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3590e9554658SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3591e9554658Smrg
3592e9554658Smrg if
3593e9554658Smrg  test "x$enable_dependency_tracking" != xno \
3594e9554658Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3595e9554658Smrg  am__fastdepCC_TRUE=
3596e9554658Smrg  am__fastdepCC_FALSE='#'
3597e9554658Smrgelse
3598e9554658Smrg  am__fastdepCC_TRUE='#'
3599e9554658Smrg  am__fastdepCC_FALSE=
3600e9554658Smrgfi
3601e9554658Smrg
3602e9554658Smrg
3603e9554658Smrg# Find a good install program.  We prefer a C program (faster),
3604e9554658Smrg# so one script is as good as another.  But avoid the broken or
3605e9554658Smrg# incompatible versions:
3606e9554658Smrg# SysV /etc/install, /usr/sbin/install
3607e9554658Smrg# SunOS /usr/etc/install
3608e9554658Smrg# IRIX /sbin/install
3609e9554658Smrg# AIX /bin/install
3610e9554658Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
3611e9554658Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3612e9554658Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3613e9554658Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3614e9554658Smrg# OS/2's system install, which has a completely different semantic
3615e9554658Smrg# ./install, which can be erroneously created by make from ./install.sh.
3616c2b339b4Smrg# Reject install programs that cannot install multiple files.
3617c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3618c2b339b4Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
3619e9554658Smrgif test -z "$INSTALL"; then
3620e9554658Smrgif test "${ac_cv_path_install+set}" = set; then
3621c2b339b4Smrg  $as_echo_n "(cached) " >&6
3622e9554658Smrgelse
3623e9554658Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624e9554658Smrgfor as_dir in $PATH
3625e9554658Smrgdo
3626e9554658Smrg  IFS=$as_save_IFS
3627e9554658Smrg  test -z "$as_dir" && as_dir=.
3628e9554658Smrg  # Account for people who put trailing slashes in PATH elements.
3629e9554658Smrgcase $as_dir/ in
3630e9554658Smrg  ./ | .// | /cC/* | \
3631e9554658Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3632e9554658Smrg  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3633e9554658Smrg  /usr/ucb/* ) ;;
3634e9554658Smrg  *)
3635e9554658Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
3636e9554658Smrg    # Don't use installbsd from OSF since it installs stuff as root
3637e9554658Smrg    # by default.
3638e9554658Smrg    for ac_prog in ginstall scoinst install; do
3639e9554658Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
3640e9554658Smrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3641e9554658Smrg	  if test $ac_prog = install &&
3642e9554658Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3643e9554658Smrg	    # AIX install.  It has an incompatible calling convention.
3644e9554658Smrg	    :
3645e9554658Smrg	  elif test $ac_prog = install &&
3646e9554658Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3647e9554658Smrg	    # program-specific install script used by HP pwplus--don't use.
3648e9554658Smrg	    :
3649e9554658Smrg	  else
3650c2b339b4Smrg	    rm -rf conftest.one conftest.two conftest.dir
3651c2b339b4Smrg	    echo one > conftest.one
3652c2b339b4Smrg	    echo two > conftest.two
3653c2b339b4Smrg	    mkdir conftest.dir
3654c2b339b4Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3655c2b339b4Smrg	      test -s conftest.one && test -s conftest.two &&
3656c2b339b4Smrg	      test -s conftest.dir/conftest.one &&
3657c2b339b4Smrg	      test -s conftest.dir/conftest.two
3658c2b339b4Smrg	    then
3659c2b339b4Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3660c2b339b4Smrg	      break 3
3661c2b339b4Smrg	    fi
3662e9554658Smrg	  fi
3663e9554658Smrg	fi
3664e9554658Smrg      done
3665e9554658Smrg    done
3666e9554658Smrg    ;;
3667e9554658Smrgesac
3668c2b339b4Smrg
3669e9554658Smrgdone
3670e9554658SmrgIFS=$as_save_IFS
3671e9554658Smrg
3672c2b339b4Smrgrm -rf conftest.one conftest.two conftest.dir
3673e9554658Smrg
3674e9554658Smrgfi
3675e9554658Smrg  if test "${ac_cv_path_install+set}" = set; then
3676e9554658Smrg    INSTALL=$ac_cv_path_install
3677e9554658Smrg  else
3678e9554658Smrg    # As a last resort, use the slow shell script.  Don't cache a
3679e9554658Smrg    # value for INSTALL within a source directory, because that will
3680e9554658Smrg    # break other packages using the cache if that directory is
3681e9554658Smrg    # removed, or if the value is a relative name.
3682e9554658Smrg    INSTALL=$ac_install_sh
3683e9554658Smrg  fi
3684e9554658Smrgfi
3685c2b339b4Smrg{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3686c2b339b4Smrg$as_echo "$INSTALL" >&6; }
3687e9554658Smrg
3688e9554658Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3689e9554658Smrg# It thinks the first close brace ends the variable substitution.
3690e9554658Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3691e9554658Smrg
3692e9554658Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3693e9554658Smrg
3694e9554658Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3695e9554658Smrg
3696e9554658Smrg
3697e9554658Smrg
3698c2b339b4Smrgac_ext=c
3699c2b339b4Smrgac_cpp='$CPP $CPPFLAGS'
3700c2b339b4Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3701c2b339b4Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3702c2b339b4Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3703c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3704c2b339b4Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
3705c2b339b4Smrg# On Suns, sometimes $CPP names a directory.
3706c2b339b4Smrgif test -n "$CPP" && test -d "$CPP"; then
3707c2b339b4Smrg  CPP=
3708c2b339b4Smrgfi
3709c2b339b4Smrgif test -z "$CPP"; then
3710c2b339b4Smrg  if test "${ac_cv_prog_CPP+set}" = set; then
3711c2b339b4Smrg  $as_echo_n "(cached) " >&6
3712c2b339b4Smrgelse
3713c2b339b4Smrg      # Double quotes because CPP needs to be expanded
3714c2b339b4Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3715c2b339b4Smrg    do
3716c2b339b4Smrg      ac_preproc_ok=false
3717c2b339b4Smrgfor ac_c_preproc_warn_flag in '' yes
3718e9554658Smrgdo
3719c2b339b4Smrg  # Use a header file that comes with gcc, so configuring glibc
3720c2b339b4Smrg  # with a fresh cross-compiler works.
3721c2b339b4Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3722c2b339b4Smrg  # <limits.h> exists even on freestanding compilers.
3723c2b339b4Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
3724c2b339b4Smrg  # not just through cpp. "Syntax error" is here to catch this case.
3725e9554658Smrg  cat >conftest.$ac_ext <<_ACEOF
3726e9554658Smrg/* confdefs.h.  */
3727e9554658Smrg_ACEOF
3728e9554658Smrgcat confdefs.h >>conftest.$ac_ext
3729e9554658Smrgcat >>conftest.$ac_ext <<_ACEOF
3730e9554658Smrg/* end confdefs.h.  */
3731e9554658Smrg#ifdef __STDC__
3732e9554658Smrg# include <limits.h>
3733e9554658Smrg#else
3734e9554658Smrg# include <assert.h>
3735e9554658Smrg#endif
3736c2b339b4Smrg		     Syntax error
3737c2b339b4Smrg_ACEOF
3738c2b339b4Smrgif { (ac_try="$ac_cpp conftest.$ac_ext"
3739c2b339b4Smrgcase "(($ac_try" in
3740c2b339b4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741c2b339b4Smrg  *) ac_try_echo=$ac_try;;
3742c2b339b4Smrgesac
3743c2b339b4Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3744c2b339b4Smrg$as_echo "$ac_try_echo") >&5
3745c2b339b4Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3746c2b339b4Smrg  ac_status=$?
3747c2b339b4Smrg  grep -v '^ *+' conftest.er1 >conftest.err
3748c2b339b4Smrg  rm -f conftest.er1
3749c2b339b4Smrg  cat conftest.err >&5
3750c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751c2b339b4Smrg  (exit $ac_status); } >/dev/null && {
3752c2b339b4Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3753c2b339b4Smrg	 test ! -s conftest.err
3754c2b339b4Smrg       }; then
3755c2b339b4Smrg  :
3756c2b339b4Smrgelse
3757c2b339b4Smrg  $as_echo "$as_me: failed program was:" >&5
3758c2b339b4Smrgsed 's/^/| /' conftest.$ac_ext >&5
3759c2b339b4Smrg
3760c2b339b4Smrg  # Broken: fails on valid input.
3761c2b339b4Smrgcontinue
3762c2b339b4Smrgfi
3763c2b339b4Smrg
3764c2b339b4Smrgrm -f conftest.err conftest.$ac_ext
3765c2b339b4Smrg
3766c2b339b4Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
3767c2b339b4Smrg  # can be detected and how.
3768c2b339b4Smrg  cat >conftest.$ac_ext <<_ACEOF
3769c2b339b4Smrg/* confdefs.h.  */
3770c2b339b4Smrg_ACEOF
3771c2b339b4Smrgcat confdefs.h >>conftest.$ac_ext
3772c2b339b4Smrgcat >>conftest.$ac_ext <<_ACEOF
3773c2b339b4Smrg/* end confdefs.h.  */
3774c2b339b4Smrg#include <ac_nonexistent.h>
3775c2b339b4Smrg_ACEOF
3776c2b339b4Smrgif { (ac_try="$ac_cpp conftest.$ac_ext"
3777c2b339b4Smrgcase "(($ac_try" in
3778c2b339b4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3779c2b339b4Smrg  *) ac_try_echo=$ac_try;;
3780c2b339b4Smrgesac
3781c2b339b4Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3782c2b339b4Smrg$as_echo "$ac_try_echo") >&5
3783c2b339b4Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3784c2b339b4Smrg  ac_status=$?
3785c2b339b4Smrg  grep -v '^ *+' conftest.er1 >conftest.err
3786c2b339b4Smrg  rm -f conftest.er1
3787c2b339b4Smrg  cat conftest.err >&5
3788c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789c2b339b4Smrg  (exit $ac_status); } >/dev/null && {
3790c2b339b4Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3791c2b339b4Smrg	 test ! -s conftest.err
3792c2b339b4Smrg       }; then
3793c2b339b4Smrg  # Broken: success on invalid input.
3794c2b339b4Smrgcontinue
3795c2b339b4Smrgelse
3796c2b339b4Smrg  $as_echo "$as_me: failed program was:" >&5
3797c2b339b4Smrgsed 's/^/| /' conftest.$ac_ext >&5
3798c2b339b4Smrg
3799c2b339b4Smrg  # Passes both tests.
3800c2b339b4Smrgac_preproc_ok=:
3801c2b339b4Smrgbreak
3802c2b339b4Smrgfi
3803c2b339b4Smrg
3804c2b339b4Smrgrm -f conftest.err conftest.$ac_ext
3805c2b339b4Smrg
3806c2b339b4Smrgdone
3807c2b339b4Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3808c2b339b4Smrgrm -f conftest.err conftest.$ac_ext
3809c2b339b4Smrgif $ac_preproc_ok; then
3810c2b339b4Smrg  break
3811c2b339b4Smrgfi
3812c2b339b4Smrg
3813c2b339b4Smrg    done
3814c2b339b4Smrg    ac_cv_prog_CPP=$CPP
3815c2b339b4Smrg
3816c2b339b4Smrgfi
3817c2b339b4Smrg  CPP=$ac_cv_prog_CPP
3818c2b339b4Smrgelse
3819c2b339b4Smrg  ac_cv_prog_CPP=$CPP
3820c2b339b4Smrgfi
3821c2b339b4Smrg{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3822c2b339b4Smrg$as_echo "$CPP" >&6; }
3823c2b339b4Smrgac_preproc_ok=false
3824c2b339b4Smrgfor ac_c_preproc_warn_flag in '' yes
3825c2b339b4Smrgdo
3826c2b339b4Smrg  # Use a header file that comes with gcc, so configuring glibc
3827c2b339b4Smrg  # with a fresh cross-compiler works.
3828c2b339b4Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3829c2b339b4Smrg  # <limits.h> exists even on freestanding compilers.
3830c2b339b4Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
3831c2b339b4Smrg  # not just through cpp. "Syntax error" is here to catch this case.
3832c2b339b4Smrg  cat >conftest.$ac_ext <<_ACEOF
3833c2b339b4Smrg/* confdefs.h.  */
3834c2b339b4Smrg_ACEOF
3835c2b339b4Smrgcat confdefs.h >>conftest.$ac_ext
3836c2b339b4Smrgcat >>conftest.$ac_ext <<_ACEOF
3837c2b339b4Smrg/* end confdefs.h.  */
3838c2b339b4Smrg#ifdef __STDC__
3839c2b339b4Smrg# include <limits.h>
3840c2b339b4Smrg#else
3841c2b339b4Smrg# include <assert.h>
3842c2b339b4Smrg#endif
3843c2b339b4Smrg		     Syntax error
3844c2b339b4Smrg_ACEOF
3845c2b339b4Smrgif { (ac_try="$ac_cpp conftest.$ac_ext"
3846c2b339b4Smrgcase "(($ac_try" in
3847c2b339b4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848c2b339b4Smrg  *) ac_try_echo=$ac_try;;
3849c2b339b4Smrgesac
3850c2b339b4Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3851c2b339b4Smrg$as_echo "$ac_try_echo") >&5
3852c2b339b4Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3853c2b339b4Smrg  ac_status=$?
3854c2b339b4Smrg  grep -v '^ *+' conftest.er1 >conftest.err
3855c2b339b4Smrg  rm -f conftest.er1
3856c2b339b4Smrg  cat conftest.err >&5
3857c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858c2b339b4Smrg  (exit $ac_status); } >/dev/null && {
3859c2b339b4Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3860c2b339b4Smrg	 test ! -s conftest.err
3861c2b339b4Smrg       }; then
3862c2b339b4Smrg  :
3863c2b339b4Smrgelse
3864c2b339b4Smrg  $as_echo "$as_me: failed program was:" >&5
3865c2b339b4Smrgsed 's/^/| /' conftest.$ac_ext >&5
3866c2b339b4Smrg
3867c2b339b4Smrg  # Broken: fails on valid input.
3868c2b339b4Smrgcontinue
3869c2b339b4Smrgfi
3870c2b339b4Smrg
3871c2b339b4Smrgrm -f conftest.err conftest.$ac_ext
3872c2b339b4Smrg
3873c2b339b4Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
3874c2b339b4Smrg  # can be detected and how.
3875c2b339b4Smrg  cat >conftest.$ac_ext <<_ACEOF
3876c2b339b4Smrg/* confdefs.h.  */
3877c2b339b4Smrg_ACEOF
3878c2b339b4Smrgcat confdefs.h >>conftest.$ac_ext
3879c2b339b4Smrgcat >>conftest.$ac_ext <<_ACEOF
3880c2b339b4Smrg/* end confdefs.h.  */
3881c2b339b4Smrg#include <ac_nonexistent.h>
3882c2b339b4Smrg_ACEOF
3883c2b339b4Smrgif { (ac_try="$ac_cpp conftest.$ac_ext"
3884c2b339b4Smrgcase "(($ac_try" in
3885c2b339b4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886c2b339b4Smrg  *) ac_try_echo=$ac_try;;
3887c2b339b4Smrgesac
3888c2b339b4Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3889c2b339b4Smrg$as_echo "$ac_try_echo") >&5
3890c2b339b4Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3891c2b339b4Smrg  ac_status=$?
3892c2b339b4Smrg  grep -v '^ *+' conftest.er1 >conftest.err
3893c2b339b4Smrg  rm -f conftest.er1
3894c2b339b4Smrg  cat conftest.err >&5
3895c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896c2b339b4Smrg  (exit $ac_status); } >/dev/null && {
3897c2b339b4Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3898c2b339b4Smrg	 test ! -s conftest.err
3899c2b339b4Smrg       }; then
3900c2b339b4Smrg  # Broken: success on invalid input.
3901c2b339b4Smrgcontinue
3902c2b339b4Smrgelse
3903c2b339b4Smrg  $as_echo "$as_me: failed program was:" >&5
3904c2b339b4Smrgsed 's/^/| /' conftest.$ac_ext >&5
3905c2b339b4Smrg
3906c2b339b4Smrg  # Passes both tests.
3907c2b339b4Smrgac_preproc_ok=:
3908c2b339b4Smrgbreak
3909c2b339b4Smrgfi
3910c2b339b4Smrg
3911c2b339b4Smrgrm -f conftest.err conftest.$ac_ext
3912c2b339b4Smrg
3913c2b339b4Smrgdone
3914c2b339b4Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3915c2b339b4Smrgrm -f conftest.err conftest.$ac_ext
3916c2b339b4Smrgif $ac_preproc_ok; then
3917c2b339b4Smrg  :
3918c2b339b4Smrgelse
3919c2b339b4Smrg  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3920c2b339b4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3921c2b339b4Smrg{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3922c2b339b4SmrgSee \`config.log' for more details." >&5
3923c2b339b4Smrg$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3924c2b339b4SmrgSee \`config.log' for more details." >&2;}
3925c2b339b4Smrg   { (exit 1); exit 1; }; }; }
3926c2b339b4Smrgfi
3927c2b339b4Smrg
3928c2b339b4Smrgac_ext=c
3929c2b339b4Smrgac_cpp='$CPP $CPPFLAGS'
3930c2b339b4Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3931c2b339b4Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3932c2b339b4Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3933c2b339b4Smrg
3934c2b339b4Smrg
3935c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3936c2b339b4Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3937c2b339b4Smrgif test "${ac_cv_path_GREP+set}" = set; then
3938c2b339b4Smrg  $as_echo_n "(cached) " >&6
3939c2b339b4Smrgelse
3940c2b339b4Smrg  if test -z "$GREP"; then
3941c2b339b4Smrg  ac_path_GREP_found=false
3942c2b339b4Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
3943c2b339b4Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944c2b339b4Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3945c2b339b4Smrgdo
3946c2b339b4Smrg  IFS=$as_save_IFS
3947c2b339b4Smrg  test -z "$as_dir" && as_dir=.
3948c2b339b4Smrg  for ac_prog in grep ggrep; do
3949c2b339b4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3950c2b339b4Smrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3951c2b339b4Smrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3952c2b339b4Smrg# Check for GNU ac_path_GREP and select it if it is found.
3953c2b339b4Smrg  # Check for GNU $ac_path_GREP
3954c2b339b4Smrgcase `"$ac_path_GREP" --version 2>&1` in
3955c2b339b4Smrg*GNU*)
3956c2b339b4Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3957c2b339b4Smrg*)
3958c2b339b4Smrg  ac_count=0
3959c2b339b4Smrg  $as_echo_n 0123456789 >"conftest.in"
3960c2b339b4Smrg  while :
3961c2b339b4Smrg  do
3962c2b339b4Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
3963c2b339b4Smrg    mv "conftest.tmp" "conftest.in"
3964c2b339b4Smrg    cp "conftest.in" "conftest.nl"
3965c2b339b4Smrg    $as_echo 'GREP' >> "conftest.nl"
3966c2b339b4Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3967c2b339b4Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3968c2b339b4Smrg    ac_count=`expr $ac_count + 1`
3969c2b339b4Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3970c2b339b4Smrg      # Best one so far, save it but keep looking for a better one
3971c2b339b4Smrg      ac_cv_path_GREP="$ac_path_GREP"
3972c2b339b4Smrg      ac_path_GREP_max=$ac_count
3973c2b339b4Smrg    fi
3974c2b339b4Smrg    # 10*(2^10) chars as input seems more than enough
3975c2b339b4Smrg    test $ac_count -gt 10 && break
3976c2b339b4Smrg  done
3977c2b339b4Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3978c2b339b4Smrgesac
3979c2b339b4Smrg
3980c2b339b4Smrg      $ac_path_GREP_found && break 3
3981c2b339b4Smrg    done
3982c2b339b4Smrg  done
3983c2b339b4Smrgdone
3984c2b339b4SmrgIFS=$as_save_IFS
3985c2b339b4Smrg  if test -z "$ac_cv_path_GREP"; then
3986c2b339b4Smrg    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3987c2b339b4Smrg$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3988c2b339b4Smrg   { (exit 1); exit 1; }; }
3989c2b339b4Smrg  fi
3990c2b339b4Smrgelse
3991c2b339b4Smrg  ac_cv_path_GREP=$GREP
3992c2b339b4Smrgfi
3993c2b339b4Smrg
3994c2b339b4Smrgfi
3995c2b339b4Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3996c2b339b4Smrg$as_echo "$ac_cv_path_GREP" >&6; }
3997c2b339b4Smrg GREP="$ac_cv_path_GREP"
3998c2b339b4Smrg
3999c2b339b4Smrg
4000c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4001c2b339b4Smrg$as_echo_n "checking for egrep... " >&6; }
4002c2b339b4Smrgif test "${ac_cv_path_EGREP+set}" = set; then
4003c2b339b4Smrg  $as_echo_n "(cached) " >&6
4004c2b339b4Smrgelse
4005c2b339b4Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4006c2b339b4Smrg   then ac_cv_path_EGREP="$GREP -E"
4007c2b339b4Smrg   else
4008c2b339b4Smrg     if test -z "$EGREP"; then
4009c2b339b4Smrg  ac_path_EGREP_found=false
4010c2b339b4Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
4011c2b339b4Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012c2b339b4Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4013c2b339b4Smrgdo
4014c2b339b4Smrg  IFS=$as_save_IFS
4015c2b339b4Smrg  test -z "$as_dir" && as_dir=.
4016c2b339b4Smrg  for ac_prog in egrep; do
4017c2b339b4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4018c2b339b4Smrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4019c2b339b4Smrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4020c2b339b4Smrg# Check for GNU ac_path_EGREP and select it if it is found.
4021c2b339b4Smrg  # Check for GNU $ac_path_EGREP
4022c2b339b4Smrgcase `"$ac_path_EGREP" --version 2>&1` in
4023c2b339b4Smrg*GNU*)
4024c2b339b4Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4025c2b339b4Smrg*)
4026c2b339b4Smrg  ac_count=0
4027c2b339b4Smrg  $as_echo_n 0123456789 >"conftest.in"
4028c2b339b4Smrg  while :
4029c2b339b4Smrg  do
4030c2b339b4Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4031c2b339b4Smrg    mv "conftest.tmp" "conftest.in"
4032c2b339b4Smrg    cp "conftest.in" "conftest.nl"
4033c2b339b4Smrg    $as_echo 'EGREP' >> "conftest.nl"
4034c2b339b4Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4035c2b339b4Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4036c2b339b4Smrg    ac_count=`expr $ac_count + 1`
4037c2b339b4Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4038c2b339b4Smrg      # Best one so far, save it but keep looking for a better one
4039c2b339b4Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
4040c2b339b4Smrg      ac_path_EGREP_max=$ac_count
4041c2b339b4Smrg    fi
4042c2b339b4Smrg    # 10*(2^10) chars as input seems more than enough
4043c2b339b4Smrg    test $ac_count -gt 10 && break
4044c2b339b4Smrg  done
4045c2b339b4Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4046c2b339b4Smrgesac
4047c2b339b4Smrg
4048c2b339b4Smrg      $ac_path_EGREP_found && break 3
4049c2b339b4Smrg    done
4050c2b339b4Smrg  done
4051c2b339b4Smrgdone
4052c2b339b4SmrgIFS=$as_save_IFS
4053c2b339b4Smrg  if test -z "$ac_cv_path_EGREP"; then
4054c2b339b4Smrg    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4055c2b339b4Smrg$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4056c2b339b4Smrg   { (exit 1); exit 1; }; }
4057c2b339b4Smrg  fi
4058c2b339b4Smrgelse
4059c2b339b4Smrg  ac_cv_path_EGREP=$EGREP
4060c2b339b4Smrgfi
4061c2b339b4Smrg
4062c2b339b4Smrg   fi
4063c2b339b4Smrgfi
4064c2b339b4Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4065c2b339b4Smrg$as_echo "$ac_cv_path_EGREP" >&6; }
4066c2b339b4Smrg EGREP="$ac_cv_path_EGREP"
4067c2b339b4Smrg
4068c2b339b4Smrg
4069c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4070c2b339b4Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
4071c2b339b4Smrgif test "${ac_cv_header_stdc+set}" = set; then
4072c2b339b4Smrg  $as_echo_n "(cached) " >&6
4073c2b339b4Smrgelse
4074c2b339b4Smrg  cat >conftest.$ac_ext <<_ACEOF
4075c2b339b4Smrg/* confdefs.h.  */
4076c2b339b4Smrg_ACEOF
4077c2b339b4Smrgcat confdefs.h >>conftest.$ac_ext
4078c2b339b4Smrgcat >>conftest.$ac_ext <<_ACEOF
4079c2b339b4Smrg/* end confdefs.h.  */
4080c2b339b4Smrg#include <stdlib.h>
4081c2b339b4Smrg#include <stdarg.h>
4082c2b339b4Smrg#include <string.h>
4083c2b339b4Smrg#include <float.h>
4084c2b339b4Smrg
4085c2b339b4Smrgint
4086c2b339b4Smrgmain ()
4087c2b339b4Smrg{
4088c2b339b4Smrg
4089c2b339b4Smrg  ;
4090c2b339b4Smrg  return 0;
4091c2b339b4Smrg}
4092c2b339b4Smrg_ACEOF
4093c2b339b4Smrgrm -f conftest.$ac_objext
4094c2b339b4Smrgif { (ac_try="$ac_compile"
4095c2b339b4Smrgcase "(($ac_try" in
4096c2b339b4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097c2b339b4Smrg  *) ac_try_echo=$ac_try;;
4098c2b339b4Smrgesac
4099c2b339b4Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4100c2b339b4Smrg$as_echo "$ac_try_echo") >&5
4101c2b339b4Smrg  (eval "$ac_compile") 2>conftest.er1
4102c2b339b4Smrg  ac_status=$?
4103c2b339b4Smrg  grep -v '^ *+' conftest.er1 >conftest.err
4104c2b339b4Smrg  rm -f conftest.er1
4105c2b339b4Smrg  cat conftest.err >&5
4106c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107c2b339b4Smrg  (exit $ac_status); } && {
4108c2b339b4Smrg	 test -z "$ac_c_werror_flag" ||
4109c2b339b4Smrg	 test ! -s conftest.err
4110c2b339b4Smrg       } && test -s conftest.$ac_objext; then
4111c2b339b4Smrg  ac_cv_header_stdc=yes
4112c2b339b4Smrgelse
4113c2b339b4Smrg  $as_echo "$as_me: failed program was:" >&5
4114c2b339b4Smrgsed 's/^/| /' conftest.$ac_ext >&5
4115c2b339b4Smrg
4116c2b339b4Smrg	ac_cv_header_stdc=no
4117c2b339b4Smrgfi
4118c2b339b4Smrg
4119c2b339b4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4120c2b339b4Smrg
4121c2b339b4Smrgif test $ac_cv_header_stdc = yes; then
4122c2b339b4Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4123c2b339b4Smrg  cat >conftest.$ac_ext <<_ACEOF
4124c2b339b4Smrg/* confdefs.h.  */
4125c2b339b4Smrg_ACEOF
4126c2b339b4Smrgcat confdefs.h >>conftest.$ac_ext
4127c2b339b4Smrgcat >>conftest.$ac_ext <<_ACEOF
4128c2b339b4Smrg/* end confdefs.h.  */
4129c2b339b4Smrg#include <string.h>
4130c2b339b4Smrg
4131c2b339b4Smrg_ACEOF
4132c2b339b4Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4133c2b339b4Smrg  $EGREP "memchr" >/dev/null 2>&1; then
4134c2b339b4Smrg  :
4135c2b339b4Smrgelse
4136c2b339b4Smrg  ac_cv_header_stdc=no
4137c2b339b4Smrgfi
4138c2b339b4Smrgrm -f conftest*
4139c2b339b4Smrg
4140c2b339b4Smrgfi
4141c2b339b4Smrg
4142c2b339b4Smrgif test $ac_cv_header_stdc = yes; then
4143c2b339b4Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4144c2b339b4Smrg  cat >conftest.$ac_ext <<_ACEOF
4145c2b339b4Smrg/* confdefs.h.  */
4146c2b339b4Smrg_ACEOF
4147c2b339b4Smrgcat confdefs.h >>conftest.$ac_ext
4148c2b339b4Smrgcat >>conftest.$ac_ext <<_ACEOF
4149c2b339b4Smrg/* end confdefs.h.  */
4150c2b339b4Smrg#include <stdlib.h>
4151c2b339b4Smrg
4152c2b339b4Smrg_ACEOF
4153c2b339b4Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4154c2b339b4Smrg  $EGREP "free" >/dev/null 2>&1; then
4155c2b339b4Smrg  :
4156c2b339b4Smrgelse
4157c2b339b4Smrg  ac_cv_header_stdc=no
4158c2b339b4Smrgfi
4159c2b339b4Smrgrm -f conftest*
4160c2b339b4Smrg
4161c2b339b4Smrgfi
4162c2b339b4Smrg
4163c2b339b4Smrgif test $ac_cv_header_stdc = yes; then
4164c2b339b4Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4165c2b339b4Smrg  if test "$cross_compiling" = yes; then
4166c2b339b4Smrg  :
4167c2b339b4Smrgelse
4168c2b339b4Smrg  cat >conftest.$ac_ext <<_ACEOF
4169c2b339b4Smrg/* confdefs.h.  */
4170c2b339b4Smrg_ACEOF
4171c2b339b4Smrgcat confdefs.h >>conftest.$ac_ext
4172c2b339b4Smrgcat >>conftest.$ac_ext <<_ACEOF
4173c2b339b4Smrg/* end confdefs.h.  */
4174c2b339b4Smrg#include <ctype.h>
4175c2b339b4Smrg#include <stdlib.h>
4176c2b339b4Smrg#if ((' ' & 0x0FF) == 0x020)
4177c2b339b4Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4178c2b339b4Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4179c2b339b4Smrg#else
4180c2b339b4Smrg# define ISLOWER(c) \
4181c2b339b4Smrg		   (('a' <= (c) && (c) <= 'i') \
4182c2b339b4Smrg		     || ('j' <= (c) && (c) <= 'r') \
4183c2b339b4Smrg		     || ('s' <= (c) && (c) <= 'z'))
4184c2b339b4Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4185c2b339b4Smrg#endif
4186c2b339b4Smrg
4187c2b339b4Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4188c2b339b4Smrgint
4189c2b339b4Smrgmain ()
4190c2b339b4Smrg{
4191c2b339b4Smrg  int i;
4192c2b339b4Smrg  for (i = 0; i < 256; i++)
4193c2b339b4Smrg    if (XOR (islower (i), ISLOWER (i))
4194c2b339b4Smrg	|| toupper (i) != TOUPPER (i))
4195c2b339b4Smrg      return 2;
4196c2b339b4Smrg  return 0;
4197c2b339b4Smrg}
4198c2b339b4Smrg_ACEOF
4199c2b339b4Smrgrm -f conftest$ac_exeext
4200c2b339b4Smrgif { (ac_try="$ac_link"
4201c2b339b4Smrgcase "(($ac_try" in
4202c2b339b4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203c2b339b4Smrg  *) ac_try_echo=$ac_try;;
4204c2b339b4Smrgesac
4205c2b339b4Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4206c2b339b4Smrg$as_echo "$ac_try_echo") >&5
4207c2b339b4Smrg  (eval "$ac_link") 2>&5
4208c2b339b4Smrg  ac_status=$?
4209c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210c2b339b4Smrg  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4211c2b339b4Smrg  { (case "(($ac_try" in
4212c2b339b4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213c2b339b4Smrg  *) ac_try_echo=$ac_try;;
4214c2b339b4Smrgesac
4215c2b339b4Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4216c2b339b4Smrg$as_echo "$ac_try_echo") >&5
4217c2b339b4Smrg  (eval "$ac_try") 2>&5
4218c2b339b4Smrg  ac_status=$?
4219c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220c2b339b4Smrg  (exit $ac_status); }; }; then
4221c2b339b4Smrg  :
4222c2b339b4Smrgelse
4223c2b339b4Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
4224c2b339b4Smrg$as_echo "$as_me: failed program was:" >&5
4225c2b339b4Smrgsed 's/^/| /' conftest.$ac_ext >&5
4226c2b339b4Smrg
4227c2b339b4Smrg( exit $ac_status )
4228c2b339b4Smrgac_cv_header_stdc=no
4229c2b339b4Smrgfi
4230c2b339b4Smrgrm -rf conftest.dSYM
4231c2b339b4Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4232c2b339b4Smrgfi
4233c2b339b4Smrg
4234c2b339b4Smrg
4235c2b339b4Smrgfi
4236c2b339b4Smrgfi
4237c2b339b4Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4238c2b339b4Smrg$as_echo "$ac_cv_header_stdc" >&6; }
4239c2b339b4Smrgif test $ac_cv_header_stdc = yes; then
4240c2b339b4Smrg
4241c2b339b4Smrgcat >>confdefs.h <<\_ACEOF
4242c2b339b4Smrg#define STDC_HEADERS 1
4243c2b339b4Smrg_ACEOF
4244c2b339b4Smrg
4245c2b339b4Smrgfi
4246c2b339b4Smrg
4247c2b339b4Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4248c2b339b4Smrg
4249c2b339b4Smrg
4250c2b339b4Smrg
4251c2b339b4Smrg
4252c2b339b4Smrg
4253c2b339b4Smrg
4254c2b339b4Smrg
4255c2b339b4Smrg
4256c2b339b4Smrg
4257c2b339b4Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4258c2b339b4Smrg		  inttypes.h stdint.h unistd.h
4259c2b339b4Smrgdo
4260c2b339b4Smrgas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4261c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4262c2b339b4Smrg$as_echo_n "checking for $ac_header... " >&6; }
4263c2b339b4Smrgif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4264c2b339b4Smrg  $as_echo_n "(cached) " >&6
4265c2b339b4Smrgelse
4266c2b339b4Smrg  cat >conftest.$ac_ext <<_ACEOF
4267c2b339b4Smrg/* confdefs.h.  */
4268c2b339b4Smrg_ACEOF
4269c2b339b4Smrgcat confdefs.h >>conftest.$ac_ext
4270c2b339b4Smrgcat >>conftest.$ac_ext <<_ACEOF
4271c2b339b4Smrg/* end confdefs.h.  */
4272c2b339b4Smrg$ac_includes_default
4273c2b339b4Smrg
4274c2b339b4Smrg#include <$ac_header>
4275c2b339b4Smrg_ACEOF
4276c2b339b4Smrgrm -f conftest.$ac_objext
4277c2b339b4Smrgif { (ac_try="$ac_compile"
4278c2b339b4Smrgcase "(($ac_try" in
4279c2b339b4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280c2b339b4Smrg  *) ac_try_echo=$ac_try;;
4281c2b339b4Smrgesac
4282c2b339b4Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4283c2b339b4Smrg$as_echo "$ac_try_echo") >&5
4284c2b339b4Smrg  (eval "$ac_compile") 2>conftest.er1
4285c2b339b4Smrg  ac_status=$?
4286c2b339b4Smrg  grep -v '^ *+' conftest.er1 >conftest.err
4287c2b339b4Smrg  rm -f conftest.er1
4288c2b339b4Smrg  cat conftest.err >&5
4289c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290c2b339b4Smrg  (exit $ac_status); } && {
4291c2b339b4Smrg	 test -z "$ac_c_werror_flag" ||
4292c2b339b4Smrg	 test ! -s conftest.err
4293c2b339b4Smrg       } && test -s conftest.$ac_objext; then
4294c2b339b4Smrg  eval "$as_ac_Header=yes"
4295c2b339b4Smrgelse
4296c2b339b4Smrg  $as_echo "$as_me: failed program was:" >&5
4297c2b339b4Smrgsed 's/^/| /' conftest.$ac_ext >&5
4298c2b339b4Smrg
4299c2b339b4Smrg	eval "$as_ac_Header=no"
4300c2b339b4Smrgfi
4301c2b339b4Smrg
4302c2b339b4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303c2b339b4Smrgfi
4304c2b339b4Smrgac_res=`eval 'as_val=${'$as_ac_Header'}
4305c2b339b4Smrg		 $as_echo "$as_val"'`
4306c2b339b4Smrg	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4307c2b339b4Smrg$as_echo "$ac_res" >&6; }
4308c2b339b4Smrgas_val=`eval 'as_val=${'$as_ac_Header'}
4309c2b339b4Smrg		 $as_echo "$as_val"'`
4310c2b339b4Smrg   if test "x$as_val" = x""yes; then
4311c2b339b4Smrg  cat >>confdefs.h <<_ACEOF
4312c2b339b4Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4313c2b339b4Smrg_ACEOF
4314c2b339b4Smrg
4315c2b339b4Smrgfi
4316c2b339b4Smrg
4317c2b339b4Smrgdone
4318c2b339b4Smrg
4319c2b339b4Smrg
4320c2b339b4Smrg   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
4321c2b339b4Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4322c2b339b4Smrgif test "${ac_cv_prog_cc_c99+set}" = set; then
4323c2b339b4Smrg  $as_echo_n "(cached) " >&6
4324c2b339b4Smrgelse
4325c2b339b4Smrg  ac_cv_prog_cc_c99=no
4326c2b339b4Smrgac_save_CC=$CC
4327c2b339b4Smrgcat >conftest.$ac_ext <<_ACEOF
4328c2b339b4Smrg/* confdefs.h.  */
4329c2b339b4Smrg_ACEOF
4330c2b339b4Smrgcat confdefs.h >>conftest.$ac_ext
4331c2b339b4Smrgcat >>conftest.$ac_ext <<_ACEOF
4332c2b339b4Smrg/* end confdefs.h.  */
4333c2b339b4Smrg#include <stdarg.h>
4334c2b339b4Smrg#include <stdbool.h>
4335c2b339b4Smrg#include <stdlib.h>
4336c2b339b4Smrg#include <wchar.h>
4337c2b339b4Smrg#include <stdio.h>
4338c2b339b4Smrg
4339c2b339b4Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4340c2b339b4Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
4341c2b339b4Smrg#define showlist(...) puts (#__VA_ARGS__)
4342c2b339b4Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4343c2b339b4Smrgstatic void
4344c2b339b4Smrgtest_varargs_macros (void)
4345c2b339b4Smrg{
4346c2b339b4Smrg  int x = 1234;
4347c2b339b4Smrg  int y = 5678;
4348c2b339b4Smrg  debug ("Flag");
4349c2b339b4Smrg  debug ("X = %d\n", x);
4350c2b339b4Smrg  showlist (The first, second, and third items.);
4351c2b339b4Smrg  report (x>y, "x is %d but y is %d", x, y);
4352c2b339b4Smrg}
4353c2b339b4Smrg
4354c2b339b4Smrg// Check long long types.
4355c2b339b4Smrg#define BIG64 18446744073709551615ull
4356c2b339b4Smrg#define BIG32 4294967295ul
4357c2b339b4Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4358c2b339b4Smrg#if !BIG_OK
4359c2b339b4Smrg  your preprocessor is broken;
4360c2b339b4Smrg#endif
4361c2b339b4Smrg#if BIG_OK
4362c2b339b4Smrg#else
4363c2b339b4Smrg  your preprocessor is broken;
4364c2b339b4Smrg#endif
4365c2b339b4Smrgstatic long long int bignum = -9223372036854775807LL;
4366c2b339b4Smrgstatic unsigned long long int ubignum = BIG64;
4367c2b339b4Smrg
4368c2b339b4Smrgstruct incomplete_array
4369c2b339b4Smrg{
4370c2b339b4Smrg  int datasize;
4371c2b339b4Smrg  double data[];
4372c2b339b4Smrg};
4373c2b339b4Smrg
4374c2b339b4Smrgstruct named_init {
4375c2b339b4Smrg  int number;
4376c2b339b4Smrg  const wchar_t *name;
4377c2b339b4Smrg  double average;
4378c2b339b4Smrg};
4379c2b339b4Smrg
4380c2b339b4Smrgtypedef const char *ccp;
4381c2b339b4Smrg
4382c2b339b4Smrgstatic inline int
4383c2b339b4Smrgtest_restrict (ccp restrict text)
4384c2b339b4Smrg{
4385c2b339b4Smrg  // See if C++-style comments work.
4386c2b339b4Smrg  // Iterate through items via the restricted pointer.
4387c2b339b4Smrg  // Also check for declarations in for loops.
4388c2b339b4Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4389c2b339b4Smrg    continue;
4390c2b339b4Smrg  return 0;
4391c2b339b4Smrg}
4392c2b339b4Smrg
4393c2b339b4Smrg// Check varargs and va_copy.
4394c2b339b4Smrgstatic void
4395c2b339b4Smrgtest_varargs (const char *format, ...)
4396c2b339b4Smrg{
4397c2b339b4Smrg  va_list args;
4398c2b339b4Smrg  va_start (args, format);
4399c2b339b4Smrg  va_list args_copy;
4400c2b339b4Smrg  va_copy (args_copy, args);
4401c2b339b4Smrg
4402c2b339b4Smrg  const char *str;
4403c2b339b4Smrg  int number;
4404c2b339b4Smrg  float fnumber;
4405c2b339b4Smrg
4406c2b339b4Smrg  while (*format)
4407c2b339b4Smrg    {
4408c2b339b4Smrg      switch (*format++)
4409c2b339b4Smrg	{
4410c2b339b4Smrg	case 's': // string
4411c2b339b4Smrg	  str = va_arg (args_copy, const char *);
4412c2b339b4Smrg	  break;
4413c2b339b4Smrg	case 'd': // int
4414c2b339b4Smrg	  number = va_arg (args_copy, int);
4415c2b339b4Smrg	  break;
4416c2b339b4Smrg	case 'f': // float
4417c2b339b4Smrg	  fnumber = va_arg (args_copy, double);
4418c2b339b4Smrg	  break;
4419c2b339b4Smrg	default:
4420c2b339b4Smrg	  break;
4421c2b339b4Smrg	}
4422c2b339b4Smrg    }
4423c2b339b4Smrg  va_end (args_copy);
4424c2b339b4Smrg  va_end (args);
4425c2b339b4Smrg}
4426c2b339b4Smrg
4427c2b339b4Smrgint
4428c2b339b4Smrgmain ()
4429c2b339b4Smrg{
4430c2b339b4Smrg
4431c2b339b4Smrg  // Check bool.
4432c2b339b4Smrg  _Bool success = false;
4433c2b339b4Smrg
4434c2b339b4Smrg  // Check restrict.
4435c2b339b4Smrg  if (test_restrict ("String literal") == 0)
4436c2b339b4Smrg    success = true;
4437c2b339b4Smrg  char *restrict newvar = "Another string";
4438c2b339b4Smrg
4439c2b339b4Smrg  // Check varargs.
4440c2b339b4Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
4441c2b339b4Smrg  test_varargs_macros ();
4442c2b339b4Smrg
4443c2b339b4Smrg  // Check flexible array members.
4444c2b339b4Smrg  struct incomplete_array *ia =
4445c2b339b4Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4446c2b339b4Smrg  ia->datasize = 10;
4447c2b339b4Smrg  for (int i = 0; i < ia->datasize; ++i)
4448c2b339b4Smrg    ia->data[i] = i * 1.234;
4449c2b339b4Smrg
4450c2b339b4Smrg  // Check named initializers.
4451c2b339b4Smrg  struct named_init ni = {
4452c2b339b4Smrg    .number = 34,
4453c2b339b4Smrg    .name = L"Test wide string",
4454c2b339b4Smrg    .average = 543.34343,
4455c2b339b4Smrg  };
4456c2b339b4Smrg
4457c2b339b4Smrg  ni.number = 58;
4458c2b339b4Smrg
4459c2b339b4Smrg  int dynamic_array[ni.number];
4460c2b339b4Smrg  dynamic_array[ni.number - 1] = 543;
4461c2b339b4Smrg
4462c2b339b4Smrg  // work around unused variable warnings
4463c2b339b4Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4464c2b339b4Smrg	  || dynamic_array[ni.number - 1] != 543);
4465c2b339b4Smrg
4466c2b339b4Smrg  ;
4467c2b339b4Smrg  return 0;
4468c2b339b4Smrg}
4469c2b339b4Smrg_ACEOF
4470c2b339b4Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4471c2b339b4Smrgdo
4472c2b339b4Smrg  CC="$ac_save_CC $ac_arg"
4473c2b339b4Smrg  rm -f conftest.$ac_objext
4474c2b339b4Smrgif { (ac_try="$ac_compile"
4475c2b339b4Smrgcase "(($ac_try" in
4476c2b339b4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4477c2b339b4Smrg  *) ac_try_echo=$ac_try;;
4478c2b339b4Smrgesac
4479c2b339b4Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4480c2b339b4Smrg$as_echo "$ac_try_echo") >&5
4481c2b339b4Smrg  (eval "$ac_compile") 2>conftest.er1
4482c2b339b4Smrg  ac_status=$?
4483c2b339b4Smrg  grep -v '^ *+' conftest.er1 >conftest.err
4484c2b339b4Smrg  rm -f conftest.er1
4485c2b339b4Smrg  cat conftest.err >&5
4486c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487c2b339b4Smrg  (exit $ac_status); } && {
4488c2b339b4Smrg	 test -z "$ac_c_werror_flag" ||
4489c2b339b4Smrg	 test ! -s conftest.err
4490c2b339b4Smrg       } && test -s conftest.$ac_objext; then
4491c2b339b4Smrg  ac_cv_prog_cc_c99=$ac_arg
4492c2b339b4Smrgelse
4493c2b339b4Smrg  $as_echo "$as_me: failed program was:" >&5
4494c2b339b4Smrgsed 's/^/| /' conftest.$ac_ext >&5
4495c2b339b4Smrg
4496c2b339b4Smrg
4497c2b339b4Smrgfi
4498c2b339b4Smrg
4499c2b339b4Smrgrm -f core conftest.err conftest.$ac_objext
4500c2b339b4Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
4501c2b339b4Smrgdone
4502c2b339b4Smrgrm -f conftest.$ac_ext
4503c2b339b4SmrgCC=$ac_save_CC
4504c2b339b4Smrg
4505c2b339b4Smrgfi
4506c2b339b4Smrg# AC_CACHE_VAL
4507c2b339b4Smrgcase "x$ac_cv_prog_cc_c99" in
4508c2b339b4Smrg  x)
4509c2b339b4Smrg    { $as_echo "$as_me:$LINENO: result: none needed" >&5
4510c2b339b4Smrg$as_echo "none needed" >&6; } ;;
4511c2b339b4Smrg  xno)
4512c2b339b4Smrg    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4513c2b339b4Smrg$as_echo "unsupported" >&6; } ;;
4514c2b339b4Smrg  *)
4515c2b339b4Smrg    CC="$CC $ac_cv_prog_cc_c99"
4516c2b339b4Smrg    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4517c2b339b4Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4518c2b339b4Smrgesac
4519c2b339b4Smrg
4520c2b339b4Smrg
4521c2b339b4Smrg
4522c2b339b4Smrg# Make sure we can run config.sub.
4523c2b339b4Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4524c2b339b4Smrg  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4525c2b339b4Smrg$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4526c2b339b4Smrg   { (exit 1); exit 1; }; }
4527c2b339b4Smrg
4528c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking build system type" >&5
4529c2b339b4Smrg$as_echo_n "checking build system type... " >&6; }
4530c2b339b4Smrgif test "${ac_cv_build+set}" = set; then
4531c2b339b4Smrg  $as_echo_n "(cached) " >&6
4532c2b339b4Smrgelse
4533c2b339b4Smrg  ac_build_alias=$build_alias
4534c2b339b4Smrgtest "x$ac_build_alias" = x &&
4535c2b339b4Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4536c2b339b4Smrgtest "x$ac_build_alias" = x &&
4537c2b339b4Smrg  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4538c2b339b4Smrg$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4539c2b339b4Smrg   { (exit 1); exit 1; }; }
4540c2b339b4Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4541c2b339b4Smrg  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4542c2b339b4Smrg$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4543c2b339b4Smrg   { (exit 1); exit 1; }; }
4544c2b339b4Smrg
4545c2b339b4Smrgfi
4546c2b339b4Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4547c2b339b4Smrg$as_echo "$ac_cv_build" >&6; }
4548c2b339b4Smrgcase $ac_cv_build in
4549c2b339b4Smrg*-*-*) ;;
4550c2b339b4Smrg*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4551c2b339b4Smrg$as_echo "$as_me: error: invalid value of canonical build" >&2;}
4552c2b339b4Smrg   { (exit 1); exit 1; }; };;
4553c2b339b4Smrgesac
4554c2b339b4Smrgbuild=$ac_cv_build
4555c2b339b4Smrgac_save_IFS=$IFS; IFS='-'
4556c2b339b4Smrgset x $ac_cv_build
4557c2b339b4Smrgshift
4558c2b339b4Smrgbuild_cpu=$1
4559c2b339b4Smrgbuild_vendor=$2
4560c2b339b4Smrgshift; shift
4561c2b339b4Smrg# Remember, the first character of IFS is used to create $*,
4562c2b339b4Smrg# except with old shells:
4563c2b339b4Smrgbuild_os=$*
4564c2b339b4SmrgIFS=$ac_save_IFS
4565c2b339b4Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4566c2b339b4Smrg
4567c2b339b4Smrg
4568c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking host system type" >&5
4569c2b339b4Smrg$as_echo_n "checking host system type... " >&6; }
4570c2b339b4Smrgif test "${ac_cv_host+set}" = set; then
4571c2b339b4Smrg  $as_echo_n "(cached) " >&6
4572c2b339b4Smrgelse
4573c2b339b4Smrg  if test "x$host_alias" = x; then
4574c2b339b4Smrg  ac_cv_host=$ac_cv_build
4575c2b339b4Smrgelse
4576c2b339b4Smrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4577c2b339b4Smrg    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4578c2b339b4Smrg$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4579c2b339b4Smrg   { (exit 1); exit 1; }; }
4580c2b339b4Smrgfi
4581c2b339b4Smrg
4582c2b339b4Smrgfi
4583c2b339b4Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4584c2b339b4Smrg$as_echo "$ac_cv_host" >&6; }
4585c2b339b4Smrgcase $ac_cv_host in
4586c2b339b4Smrg*-*-*) ;;
4587c2b339b4Smrg*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4588c2b339b4Smrg$as_echo "$as_me: error: invalid value of canonical host" >&2;}
4589c2b339b4Smrg   { (exit 1); exit 1; }; };;
4590c2b339b4Smrgesac
4591c2b339b4Smrghost=$ac_cv_host
4592c2b339b4Smrgac_save_IFS=$IFS; IFS='-'
4593c2b339b4Smrgset x $ac_cv_host
4594c2b339b4Smrgshift
4595c2b339b4Smrghost_cpu=$1
4596c2b339b4Smrghost_vendor=$2
4597c2b339b4Smrgshift; shift
4598c2b339b4Smrg# Remember, the first character of IFS is used to create $*,
4599c2b339b4Smrg# except with old shells:
4600c2b339b4Smrghost_os=$*
4601c2b339b4SmrgIFS=$ac_save_IFS
4602c2b339b4Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4603c2b339b4Smrg
4604c2b339b4Smrg
4605c2b339b4Smrg
4606c2b339b4Smrg
4607c2b339b4Smrg
4608c2b339b4Smrgif  test "x$GCC" = xyes ; then
4609c2b339b4Smrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4610c2b339b4Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4611c2b339b4Smrg-Wbad-function-cast"
4612c2b339b4Smrg    case `$CC -dumpversion` in
4613c2b339b4Smrg    3.4.* | 4.*)
4614c2b339b4Smrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4615c2b339b4Smrg	;;
4616c2b339b4Smrg    esac
4617c2b339b4Smrgelse
4618c2b339b4Smrg    { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4619c2b339b4Smrg$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4620c2b339b4Smrgif test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4621c2b339b4Smrg  $as_echo_n "(cached) " >&6
4622c2b339b4Smrgelse
4623c2b339b4Smrg  cat >conftest.$ac_ext <<_ACEOF
4624c2b339b4Smrg/* confdefs.h.  */
4625c2b339b4Smrg_ACEOF
4626c2b339b4Smrgcat confdefs.h >>conftest.$ac_ext
4627c2b339b4Smrgcat >>conftest.$ac_ext <<_ACEOF
4628c2b339b4Smrg/* end confdefs.h.  */
4629c2b339b4Smrg$ac_includes_default
4630c2b339b4Smrgint
4631c2b339b4Smrgmain ()
4632c2b339b4Smrg{
4633c2b339b4Smrg#ifndef __SUNPRO_C
4634c2b339b4Smrg  (void) __SUNPRO_C;
4635c2b339b4Smrg#endif
4636c2b339b4Smrg
4637c2b339b4Smrg  ;
4638c2b339b4Smrg  return 0;
4639c2b339b4Smrg}
4640c2b339b4Smrg_ACEOF
4641c2b339b4Smrgrm -f conftest.$ac_objext
4642c2b339b4Smrgif { (ac_try="$ac_compile"
4643c2b339b4Smrgcase "(($ac_try" in
4644c2b339b4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645c2b339b4Smrg  *) ac_try_echo=$ac_try;;
4646c2b339b4Smrgesac
4647c2b339b4Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4648c2b339b4Smrg$as_echo "$ac_try_echo") >&5
4649c2b339b4Smrg  (eval "$ac_compile") 2>conftest.er1
4650c2b339b4Smrg  ac_status=$?
4651c2b339b4Smrg  grep -v '^ *+' conftest.er1 >conftest.err
4652c2b339b4Smrg  rm -f conftest.er1
4653c2b339b4Smrg  cat conftest.err >&5
4654c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655c2b339b4Smrg  (exit $ac_status); } && {
4656c2b339b4Smrg	 test -z "$ac_c_werror_flag" ||
4657c2b339b4Smrg	 test ! -s conftest.err
4658c2b339b4Smrg       } && test -s conftest.$ac_objext; then
4659c2b339b4Smrg  ac_cv_have_decl___SUNPRO_C=yes
4660c2b339b4Smrgelse
4661c2b339b4Smrg  $as_echo "$as_me: failed program was:" >&5
4662c2b339b4Smrgsed 's/^/| /' conftest.$ac_ext >&5
4663c2b339b4Smrg
4664c2b339b4Smrg	ac_cv_have_decl___SUNPRO_C=no
4665c2b339b4Smrgfi
4666c2b339b4Smrg
4667c2b339b4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4668c2b339b4Smrgfi
4669c2b339b4Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4670c2b339b4Smrg$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4671c2b339b4Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
4672c2b339b4Smrg  SUNCC="yes"
4673c2b339b4Smrgelse
4674c2b339b4Smrg  SUNCC="no"
4675c2b339b4Smrgfi
4676c2b339b4Smrg
4677c2b339b4Smrg    if test "x$SUNCC" = "xyes"; then
4678c2b339b4Smrg	CWARNFLAGS="-v"
4679c2b339b4Smrg    fi
4680c2b339b4Smrgfi
4681c2b339b4Smrg
4682c2b339b4Smrg# Check whether --enable-silent-rules was given.
4683c2b339b4Smrgif test "${enable_silent_rules+set}" = set; then
4684c2b339b4Smrg  enableval=$enable_silent_rules;
4685c2b339b4Smrgfi
4686c2b339b4Smrg
4687c2b339b4Smrgcase $enable_silent_rules in
4688c2b339b4Smrgyes) AM_DEFAULT_VERBOSITY=0;;
4689c2b339b4Smrgno)  AM_DEFAULT_VERBOSITY=1;;
4690c2b339b4Smrg*)   AM_DEFAULT_VERBOSITY=0;;
4691c2b339b4Smrgesac
4692c2b339b4SmrgAM_BACKSLASH='\'
4693c2b339b4Smrg
4694c2b339b4Smrg
4695c2b339b4Smrg
4696c2b339b4Smrg
4697c2b339b4Smrg
4698c2b339b4Smrg
4699c2b339b4Smrg
4700c2b339b4Smrg# Check whether --enable-strict-compilation was given.
4701c2b339b4Smrgif test "${enable_strict_compilation+set}" = set; then
4702c2b339b4Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4703c2b339b4Smrgelse
4704c2b339b4Smrg  STRICT_COMPILE=no
4705c2b339b4Smrgfi
4706c2b339b4Smrg
4707c2b339b4Smrgif test "x$STRICT_COMPILE" = "xyes"; then
4708c2b339b4Smrg	{ $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4709c2b339b4Smrg$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4710c2b339b4Smrgif test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4711c2b339b4Smrg  $as_echo_n "(cached) " >&6
4712c2b339b4Smrgelse
4713c2b339b4Smrg  cat >conftest.$ac_ext <<_ACEOF
4714c2b339b4Smrg/* confdefs.h.  */
4715c2b339b4Smrg_ACEOF
4716c2b339b4Smrgcat confdefs.h >>conftest.$ac_ext
4717c2b339b4Smrgcat >>conftest.$ac_ext <<_ACEOF
4718c2b339b4Smrg/* end confdefs.h.  */
4719c2b339b4Smrg$ac_includes_default
4720c2b339b4Smrgint
4721c2b339b4Smrgmain ()
4722c2b339b4Smrg{
4723c2b339b4Smrg#ifndef __SUNPRO_C
4724c2b339b4Smrg  (void) __SUNPRO_C;
4725c2b339b4Smrg#endif
4726c2b339b4Smrg
4727c2b339b4Smrg  ;
4728c2b339b4Smrg  return 0;
4729c2b339b4Smrg}
4730c2b339b4Smrg_ACEOF
4731c2b339b4Smrgrm -f conftest.$ac_objext
4732c2b339b4Smrgif { (ac_try="$ac_compile"
4733c2b339b4Smrgcase "(($ac_try" in
4734c2b339b4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735c2b339b4Smrg  *) ac_try_echo=$ac_try;;
4736c2b339b4Smrgesac
4737c2b339b4Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4738c2b339b4Smrg$as_echo "$ac_try_echo") >&5
4739c2b339b4Smrg  (eval "$ac_compile") 2>conftest.er1
4740c2b339b4Smrg  ac_status=$?
4741c2b339b4Smrg  grep -v '^ *+' conftest.er1 >conftest.err
4742c2b339b4Smrg  rm -f conftest.er1
4743c2b339b4Smrg  cat conftest.err >&5
4744c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745c2b339b4Smrg  (exit $ac_status); } && {
4746c2b339b4Smrg	 test -z "$ac_c_werror_flag" ||
4747c2b339b4Smrg	 test ! -s conftest.err
4748c2b339b4Smrg       } && test -s conftest.$ac_objext; then
4749c2b339b4Smrg  ac_cv_have_decl___SUNPRO_C=yes
4750c2b339b4Smrgelse
4751c2b339b4Smrg  $as_echo "$as_me: failed program was:" >&5
4752c2b339b4Smrgsed 's/^/| /' conftest.$ac_ext >&5
4753c2b339b4Smrg
4754c2b339b4Smrg	ac_cv_have_decl___SUNPRO_C=no
4755c2b339b4Smrgfi
4756c2b339b4Smrg
4757c2b339b4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4758c2b339b4Smrgfi
4759c2b339b4Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4760c2b339b4Smrg$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4761c2b339b4Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
4762c2b339b4Smrg  SUNCC="yes"
4763c2b339b4Smrgelse
4764c2b339b4Smrg  SUNCC="no"
4765c2b339b4Smrgfi
4766c2b339b4Smrg
4767c2b339b4Smrg	{ $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
4768c2b339b4Smrg$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
4769c2b339b4Smrgif test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
4770c2b339b4Smrg  $as_echo_n "(cached) " >&6
4771c2b339b4Smrgelse
4772c2b339b4Smrg  cat >conftest.$ac_ext <<_ACEOF
4773c2b339b4Smrg/* confdefs.h.  */
4774c2b339b4Smrg_ACEOF
4775c2b339b4Smrgcat confdefs.h >>conftest.$ac_ext
4776c2b339b4Smrgcat >>conftest.$ac_ext <<_ACEOF
4777c2b339b4Smrg/* end confdefs.h.  */
4778c2b339b4Smrg$ac_includes_default
4779c2b339b4Smrgint
4780c2b339b4Smrgmain ()
4781c2b339b4Smrg{
4782c2b339b4Smrg#ifndef __INTEL_COMPILER
4783c2b339b4Smrg  (void) __INTEL_COMPILER;
4784c2b339b4Smrg#endif
4785c2b339b4Smrg
4786c2b339b4Smrg  ;
4787c2b339b4Smrg  return 0;
4788c2b339b4Smrg}
4789c2b339b4Smrg_ACEOF
4790c2b339b4Smrgrm -f conftest.$ac_objext
4791c2b339b4Smrgif { (ac_try="$ac_compile"
4792c2b339b4Smrgcase "(($ac_try" in
4793c2b339b4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4794c2b339b4Smrg  *) ac_try_echo=$ac_try;;
4795c2b339b4Smrgesac
4796c2b339b4Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4797c2b339b4Smrg$as_echo "$ac_try_echo") >&5
4798c2b339b4Smrg  (eval "$ac_compile") 2>conftest.er1
4799c2b339b4Smrg  ac_status=$?
4800c2b339b4Smrg  grep -v '^ *+' conftest.er1 >conftest.err
4801c2b339b4Smrg  rm -f conftest.er1
4802c2b339b4Smrg  cat conftest.err >&5
4803c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804c2b339b4Smrg  (exit $ac_status); } && {
4805c2b339b4Smrg	 test -z "$ac_c_werror_flag" ||
4806c2b339b4Smrg	 test ! -s conftest.err
4807c2b339b4Smrg       } && test -s conftest.$ac_objext; then
4808c2b339b4Smrg  ac_cv_have_decl___INTEL_COMPILER=yes
4809c2b339b4Smrgelse
4810c2b339b4Smrg  $as_echo "$as_me: failed program was:" >&5
4811c2b339b4Smrgsed 's/^/| /' conftest.$ac_ext >&5
4812c2b339b4Smrg
4813c2b339b4Smrg	ac_cv_have_decl___INTEL_COMPILER=no
4814c2b339b4Smrgfi
4815c2b339b4Smrg
4816c2b339b4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4817c2b339b4Smrgfi
4818c2b339b4Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
4819c2b339b4Smrg$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
4820c2b339b4Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then
4821c2b339b4Smrg  INTELCC="yes"
4822c2b339b4Smrgelse
4823c2b339b4Smrg  INTELCC="no"
4824c2b339b4Smrgfi
4825c2b339b4Smrg
4826c2b339b4Smrg	if test "x$GCC" = xyes ; then
4827c2b339b4Smrg		STRICT_CFLAGS="-pedantic -Werror"
4828c2b339b4Smrg	elif test "x$SUNCC" = "xyes"; then
4829c2b339b4Smrg		STRICT_CFLAGS="-errwarn"
4830c2b339b4Smrg    elif test "x$INTELCC" = "xyes"; then
4831c2b339b4Smrg		STRICT_CFLAGS="-Werror"
4832c2b339b4Smrg	fi
4833c2b339b4Smrgfi
4834c2b339b4SmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4835c2b339b4Smrg
4836c2b339b4Smrg
4837c2b339b4Smrg
4838c2b339b4Smrg
4839c2b339b4Smrg# Check whether --with-release-version was given.
4840c2b339b4Smrgif test "${with_release_version+set}" = set; then
4841c2b339b4Smrg  withval=$with_release_version; RELEASE_VERSION="$withval"
4842c2b339b4Smrgelse
4843c2b339b4Smrg  RELEASE_VERSION=""
4844c2b339b4Smrgfi
4845c2b339b4Smrg
4846c2b339b4Smrg	if test "x$RELEASE_VERSION" != "x"; then
4847c2b339b4Smrg		PACKAGE="$PACKAGE-$RELEASE_VERSION"
4848c2b339b4Smrg		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
4849c2b339b4Smrg		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
4850c2b339b4Smrg$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
4851c2b339b4Smrg	fi
4852c2b339b4Smrg
4853c2b339b4Smrgcat >>confdefs.h <<_ACEOF
4854c2b339b4Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4855c2b339b4Smrg_ACEOF
4856c2b339b4Smrg
4857c2b339b4Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4858c2b339b4Smrg	if test "x$PVM" = "x"; then
4859c2b339b4Smrg		PVM="0"
4860c2b339b4Smrg	fi
4861c2b339b4Smrg
4862c2b339b4Smrgcat >>confdefs.h <<_ACEOF
4863c2b339b4Smrg#define PACKAGE_VERSION_MINOR $PVM
4864c2b339b4Smrg_ACEOF
4865c2b339b4Smrg
4866c2b339b4Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4867c2b339b4Smrg	if test "x$PVP" = "x"; then
4868c2b339b4Smrg		PVP="0"
4869c2b339b4Smrg	fi
4870c2b339b4Smrg
4871c2b339b4Smrgcat >>confdefs.h <<_ACEOF
4872c2b339b4Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
4873c2b339b4Smrg_ACEOF
4874c2b339b4Smrg
4875c2b339b4Smrg
4876c2b339b4Smrg
4877c2b339b4SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
4878c2b339b4Smrgmv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
4879c2b339b4Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
4880c2b339b4Smrg
4881c2b339b4Smrgdistcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
4882c2b339b4Smrg
4883c2b339b4Smrg
4884c2b339b4Smrg
4885c2b339b4Smrg
4886c2b339b4Smrg
4887c2b339b4Smrgif test x$APP_MAN_SUFFIX = x    ; then
4888c2b339b4Smrg    APP_MAN_SUFFIX=1
4889c2b339b4Smrgfi
4890c2b339b4Smrgif test x$APP_MAN_DIR = x    ; then
4891c2b339b4Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4892c2b339b4Smrgfi
4893c2b339b4Smrg
4894c2b339b4Smrgif test x$LIB_MAN_SUFFIX = x    ; then
4895c2b339b4Smrg    LIB_MAN_SUFFIX=3
4896c2b339b4Smrgfi
4897c2b339b4Smrgif test x$LIB_MAN_DIR = x    ; then
4898c2b339b4Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4899c2b339b4Smrgfi
4900c2b339b4Smrg
4901c2b339b4Smrgif test x$FILE_MAN_SUFFIX = x    ; then
4902c2b339b4Smrg    case $host_os in
4903c2b339b4Smrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
4904c2b339b4Smrg	*)		FILE_MAN_SUFFIX=5  ;;
4905c2b339b4Smrg    esac
4906c2b339b4Smrgfi
4907c2b339b4Smrgif test x$FILE_MAN_DIR = x    ; then
4908c2b339b4Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4909c2b339b4Smrgfi
4910c2b339b4Smrg
4911c2b339b4Smrgif test x$MISC_MAN_SUFFIX = x    ; then
4912c2b339b4Smrg    case $host_os in
4913c2b339b4Smrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
4914c2b339b4Smrg	*)		MISC_MAN_SUFFIX=7  ;;
4915c2b339b4Smrg    esac
4916c2b339b4Smrgfi
4917c2b339b4Smrgif test x$MISC_MAN_DIR = x    ; then
4918c2b339b4Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4919c2b339b4Smrgfi
4920c2b339b4Smrg
4921c2b339b4Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
4922c2b339b4Smrg    case $host_os in
4923c2b339b4Smrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
4924c2b339b4Smrg	*)		DRIVER_MAN_SUFFIX=4  ;;
4925c2b339b4Smrg    esac
4926c2b339b4Smrgfi
4927c2b339b4Smrgif test x$DRIVER_MAN_DIR = x    ; then
4928c2b339b4Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4929c2b339b4Smrgfi
4930c2b339b4Smrg
4931c2b339b4Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
4932c2b339b4Smrg    case $host_os in
4933c2b339b4Smrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
4934c2b339b4Smrg	*)		ADMIN_MAN_SUFFIX=8  ;;
4935c2b339b4Smrg    esac
4936c2b339b4Smrgfi
4937c2b339b4Smrgif test x$ADMIN_MAN_DIR = x    ; then
4938c2b339b4Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4939c2b339b4Smrgfi
4940c2b339b4Smrg
4941c2b339b4Smrg
4942c2b339b4Smrg
4943c2b339b4Smrg
4944c2b339b4Smrg
4945c2b339b4Smrg
4946c2b339b4Smrg
4947c2b339b4Smrg
4948c2b339b4Smrg
4949c2b339b4Smrg
4950c2b339b4Smrg
4951c2b339b4Smrg
4952c2b339b4Smrg
4953c2b339b4Smrg
4954c2b339b4Smrg
4955c2b339b4Smrg
4956c2b339b4Smrg
4957c2b339b4Smrg
4958c2b339b4Smrg
4959c2b339b4Smrgfor ac_func in strlcpy getpid
4960c2b339b4Smrgdo
4961c2b339b4Smrgas_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4962c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
4963c2b339b4Smrg$as_echo_n "checking for $ac_func... " >&6; }
4964c2b339b4Smrgif { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4965c2b339b4Smrg  $as_echo_n "(cached) " >&6
4966c2b339b4Smrgelse
4967c2b339b4Smrg  cat >conftest.$ac_ext <<_ACEOF
4968c2b339b4Smrg/* confdefs.h.  */
4969c2b339b4Smrg_ACEOF
4970c2b339b4Smrgcat confdefs.h >>conftest.$ac_ext
4971c2b339b4Smrgcat >>conftest.$ac_ext <<_ACEOF
4972c2b339b4Smrg/* end confdefs.h.  */
4973c2b339b4Smrg/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4974c2b339b4Smrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4975c2b339b4Smrg#define $ac_func innocuous_$ac_func
4976c2b339b4Smrg
4977c2b339b4Smrg/* System header to define __stub macros and hopefully few prototypes,
4978c2b339b4Smrg    which can conflict with char $ac_func (); below.
4979c2b339b4Smrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4980c2b339b4Smrg    <limits.h> exists even on freestanding compilers.  */
4981c2b339b4Smrg
4982c2b339b4Smrg#ifdef __STDC__
4983c2b339b4Smrg# include <limits.h>
4984c2b339b4Smrg#else
4985c2b339b4Smrg# include <assert.h>
4986c2b339b4Smrg#endif
4987c2b339b4Smrg
4988c2b339b4Smrg#undef $ac_func
4989c2b339b4Smrg
4990c2b339b4Smrg/* Override any GCC internal prototype to avoid an error.
4991c2b339b4Smrg   Use char because int might match the return type of a GCC
4992c2b339b4Smrg   builtin and then its argument prototype would still apply.  */
4993c2b339b4Smrg#ifdef __cplusplus
4994e9554658Smrgextern "C"
4995e9554658Smrg#endif
4996e9554658Smrgchar $ac_func ();
4997e9554658Smrg/* The GNU C library defines this for functions which it implements
4998e9554658Smrg    to always fail with ENOSYS.  Some functions are actually named
4999e9554658Smrg    something starting with __ and the normal name is an alias.  */
5000e9554658Smrg#if defined __stub_$ac_func || defined __stub___$ac_func
5001e9554658Smrgchoke me
5002e9554658Smrg#endif
5003e9554658Smrg
5004e9554658Smrgint
5005e9554658Smrgmain ()
5006e9554658Smrg{
5007e9554658Smrgreturn $ac_func ();
5008e9554658Smrg  ;
5009e9554658Smrg  return 0;
5010e9554658Smrg}
5011e9554658Smrg_ACEOF
5012e9554658Smrgrm -f conftest.$ac_objext conftest$ac_exeext
5013e9554658Smrgif { (ac_try="$ac_link"
5014e9554658Smrgcase "(($ac_try" in
5015e9554658Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5016e9554658Smrg  *) ac_try_echo=$ac_try;;
5017e9554658Smrgesac
5018c2b339b4Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5019c2b339b4Smrg$as_echo "$ac_try_echo") >&5
5020e9554658Smrg  (eval "$ac_link") 2>conftest.er1
5021e9554658Smrg  ac_status=$?
5022e9554658Smrg  grep -v '^ *+' conftest.er1 >conftest.err
5023e9554658Smrg  rm -f conftest.er1
5024e9554658Smrg  cat conftest.err >&5
5025c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026e9554658Smrg  (exit $ac_status); } && {
5027e9554658Smrg	 test -z "$ac_c_werror_flag" ||
5028e9554658Smrg	 test ! -s conftest.err
5029c2b339b4Smrg       } && test -s conftest$ac_exeext && {
5030c2b339b4Smrg	 test "$cross_compiling" = yes ||
5031c2b339b4Smrg	 $as_test_x conftest$ac_exeext
5032c2b339b4Smrg       }; then
5033e9554658Smrg  eval "$as_ac_var=yes"
5034e9554658Smrgelse
5035c2b339b4Smrg  $as_echo "$as_me: failed program was:" >&5
5036e9554658Smrgsed 's/^/| /' conftest.$ac_ext >&5
5037e9554658Smrg
5038e9554658Smrg	eval "$as_ac_var=no"
5039e9554658Smrgfi
5040e9554658Smrg
5041c2b339b4Smrgrm -rf conftest.dSYM
5042e9554658Smrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5043e9554658Smrg      conftest$ac_exeext conftest.$ac_ext
5044e9554658Smrgfi
5045c2b339b4Smrgac_res=`eval 'as_val=${'$as_ac_var'}
5046c2b339b4Smrg		 $as_echo "$as_val"'`
5047c2b339b4Smrg	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5048c2b339b4Smrg$as_echo "$ac_res" >&6; }
5049c2b339b4Smrgas_val=`eval 'as_val=${'$as_ac_var'}
5050c2b339b4Smrg		 $as_echo "$as_val"'`
5051c2b339b4Smrg   if test "x$as_val" = x""yes; then
5052e9554658Smrg  cat >>confdefs.h <<_ACEOF
5053c2b339b4Smrg#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5054e9554658Smrg_ACEOF
5055e9554658Smrg
5056e9554658Smrgfi
5057e9554658Smrgdone
5058e9554658Smrg
5059e9554658Smrg
5060c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking for library containing iconv" >&5
5061c2b339b4Smrg$as_echo_n "checking for library containing iconv... " >&6; }
5062e9554658Smrgif test "${ac_cv_search_iconv+set}" = set; then
5063c2b339b4Smrg  $as_echo_n "(cached) " >&6
5064e9554658Smrgelse
5065e9554658Smrg  ac_func_search_save_LIBS=$LIBS
5066e9554658Smrgcat >conftest.$ac_ext <<_ACEOF
5067e9554658Smrg/* confdefs.h.  */
5068e9554658Smrg_ACEOF
5069e9554658Smrgcat confdefs.h >>conftest.$ac_ext
5070e9554658Smrgcat >>conftest.$ac_ext <<_ACEOF
5071e9554658Smrg/* end confdefs.h.  */
5072e9554658Smrg
5073e9554658Smrg/* Override any GCC internal prototype to avoid an error.
5074e9554658Smrg   Use char because int might match the return type of a GCC
5075e9554658Smrg   builtin and then its argument prototype would still apply.  */
5076e9554658Smrg#ifdef __cplusplus
5077e9554658Smrgextern "C"
5078e9554658Smrg#endif
5079e9554658Smrgchar iconv ();
5080e9554658Smrgint
5081e9554658Smrgmain ()
5082e9554658Smrg{
5083e9554658Smrgreturn iconv ();
5084e9554658Smrg  ;
5085e9554658Smrg  return 0;
5086e9554658Smrg}
5087e9554658Smrg_ACEOF
5088e9554658Smrgfor ac_lib in '' iconv; do
5089e9554658Smrg  if test -z "$ac_lib"; then
5090e9554658Smrg    ac_res="none required"
5091e9554658Smrg  else
5092e9554658Smrg    ac_res=-l$ac_lib
5093e9554658Smrg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5094e9554658Smrg  fi
5095e9554658Smrg  rm -f conftest.$ac_objext conftest$ac_exeext
5096e9554658Smrgif { (ac_try="$ac_link"
5097e9554658Smrgcase "(($ac_try" in
5098e9554658Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099e9554658Smrg  *) ac_try_echo=$ac_try;;
5100e9554658Smrgesac
5101c2b339b4Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5102c2b339b4Smrg$as_echo "$ac_try_echo") >&5
5103e9554658Smrg  (eval "$ac_link") 2>conftest.er1
5104e9554658Smrg  ac_status=$?
5105e9554658Smrg  grep -v '^ *+' conftest.er1 >conftest.err
5106e9554658Smrg  rm -f conftest.er1
5107e9554658Smrg  cat conftest.err >&5
5108c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109e9554658Smrg  (exit $ac_status); } && {
5110e9554658Smrg	 test -z "$ac_c_werror_flag" ||
5111e9554658Smrg	 test ! -s conftest.err
5112c2b339b4Smrg       } && test -s conftest$ac_exeext && {
5113c2b339b4Smrg	 test "$cross_compiling" = yes ||
5114c2b339b4Smrg	 $as_test_x conftest$ac_exeext
5115c2b339b4Smrg       }; then
5116e9554658Smrg  ac_cv_search_iconv=$ac_res
5117e9554658Smrgelse
5118c2b339b4Smrg  $as_echo "$as_me: failed program was:" >&5
5119e9554658Smrgsed 's/^/| /' conftest.$ac_ext >&5
5120e9554658Smrg
5121e9554658Smrg
5122e9554658Smrgfi
5123e9554658Smrg
5124c2b339b4Smrgrm -rf conftest.dSYM
5125e9554658Smrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5126e9554658Smrg      conftest$ac_exeext
5127e9554658Smrg  if test "${ac_cv_search_iconv+set}" = set; then
5128e9554658Smrg  break
5129e9554658Smrgfi
5130e9554658Smrgdone
5131e9554658Smrgif test "${ac_cv_search_iconv+set}" = set; then
5132e9554658Smrg  :
5133e9554658Smrgelse
5134e9554658Smrg  ac_cv_search_iconv=no
5135e9554658Smrgfi
5136e9554658Smrgrm conftest.$ac_ext
5137e9554658SmrgLIBS=$ac_func_search_save_LIBS
5138e9554658Smrgfi
5139c2b339b4Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_iconv" >&5
5140c2b339b4Smrg$as_echo "$ac_cv_search_iconv" >&6; }
5141e9554658Smrgac_res=$ac_cv_search_iconv
5142e9554658Smrgif test "$ac_res" != no; then
5143e9554658Smrg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5144e9554658Smrg
5145e9554658Smrgcat >>confdefs.h <<\_ACEOF
5146e9554658Smrg#define HAVE_ICONV 1
5147e9554658Smrg_ACEOF
5148e9554658Smrg
5149e9554658Smrgfi
5150e9554658Smrg
5151e9554658Smrg
5152e9554658Smrg
5153e9554658Smrg
5154e9554658Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5155e9554658Smrg	if test -n "$ac_tool_prefix"; then
5156e9554658Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5157e9554658Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5158c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5159c2b339b4Smrg$as_echo_n "checking for $ac_word... " >&6; }
5160e9554658Smrgif test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5161c2b339b4Smrg  $as_echo_n "(cached) " >&6
5162e9554658Smrgelse
5163e9554658Smrg  case $PKG_CONFIG in
5164e9554658Smrg  [\\/]* | ?:[\\/]*)
5165e9554658Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5166e9554658Smrg  ;;
5167e9554658Smrg  *)
5168e9554658Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169e9554658Smrgfor as_dir in $PATH
5170e9554658Smrgdo
5171e9554658Smrg  IFS=$as_save_IFS
5172e9554658Smrg  test -z "$as_dir" && as_dir=.
5173e9554658Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
5174e9554658Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5175e9554658Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5176c2b339b4Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5177e9554658Smrg    break 2
5178e9554658Smrg  fi
5179e9554658Smrgdone
5180e9554658Smrgdone
5181e9554658SmrgIFS=$as_save_IFS
5182e9554658Smrg
5183e9554658Smrg  ;;
5184e9554658Smrgesac
5185e9554658Smrgfi
5186e9554658SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
5187e9554658Smrgif test -n "$PKG_CONFIG"; then
5188c2b339b4Smrg  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5189c2b339b4Smrg$as_echo "$PKG_CONFIG" >&6; }
5190e9554658Smrgelse
5191c2b339b4Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
5192c2b339b4Smrg$as_echo "no" >&6; }
5193e9554658Smrgfi
5194e9554658Smrg
5195e9554658Smrg
5196e9554658Smrgfi
5197e9554658Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
5198e9554658Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
5199e9554658Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
5200e9554658Smrgset dummy pkg-config; ac_word=$2
5201c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5202c2b339b4Smrg$as_echo_n "checking for $ac_word... " >&6; }
5203e9554658Smrgif test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
5204c2b339b4Smrg  $as_echo_n "(cached) " >&6
5205e9554658Smrgelse
5206e9554658Smrg  case $ac_pt_PKG_CONFIG in
5207e9554658Smrg  [\\/]* | ?:[\\/]*)
5208e9554658Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5209e9554658Smrg  ;;
5210e9554658Smrg  *)
5211e9554658Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212e9554658Smrgfor as_dir in $PATH
5213e9554658Smrgdo
5214e9554658Smrg  IFS=$as_save_IFS
5215e9554658Smrg  test -z "$as_dir" && as_dir=.
5216e9554658Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
5217e9554658Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5218e9554658Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5219c2b339b4Smrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5220e9554658Smrg    break 2
5221e9554658Smrg  fi
5222e9554658Smrgdone
5223e9554658Smrgdone
5224e9554658SmrgIFS=$as_save_IFS
5225e9554658Smrg
5226e9554658Smrg  ;;
5227e9554658Smrgesac
5228e9554658Smrgfi
5229e9554658Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5230e9554658Smrgif test -n "$ac_pt_PKG_CONFIG"; then
5231c2b339b4Smrg  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5232c2b339b4Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5233e9554658Smrgelse
5234c2b339b4Smrg  { $as_echo "$as_me:$LINENO: result: no" >&5
5235c2b339b4Smrg$as_echo "no" >&6; }
5236e9554658Smrgfi
5237e9554658Smrg
5238e9554658Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
5239e9554658Smrg    PKG_CONFIG=""
5240e9554658Smrg  else
5241e9554658Smrg    case $cross_compiling:$ac_tool_warned in
5242e9554658Smrgyes:)
5243c2b339b4Smrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5244c2b339b4Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5245e9554658Smrgac_tool_warned=yes ;;
5246e9554658Smrgesac
5247e9554658Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
5248e9554658Smrg  fi
5249e9554658Smrgelse
5250e9554658Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5251e9554658Smrgfi
5252e9554658Smrg
5253e9554658Smrgfi
5254e9554658Smrgif test -n "$PKG_CONFIG"; then
5255e9554658Smrg	_pkg_min_version=0.9.0
5256c2b339b4Smrg	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5257c2b339b4Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5258e9554658Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5259c2b339b4Smrg		{ $as_echo "$as_me:$LINENO: result: yes" >&5
5260c2b339b4Smrg$as_echo "yes" >&6; }
5261e9554658Smrg	else
5262c2b339b4Smrg		{ $as_echo "$as_me:$LINENO: result: no" >&5
5263c2b339b4Smrg$as_echo "no" >&6; }
5264e9554658Smrg		PKG_CONFIG=""
5265e9554658Smrg	fi
5266e9554658Smrg
5267e9554658Smrgfi
5268e9554658Smrg
5269e9554658Smrgpkg_failed=no
5270c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking for XCLOCK_X11" >&5
5271c2b339b4Smrg$as_echo_n "checking for XCLOCK_X11... " >&6; }
5272c2b339b4Smrg
5273c2b339b4Smrgif test -n "$XCLOCK_X11_CFLAGS"; then
5274c2b339b4Smrg    pkg_cv_XCLOCK_X11_CFLAGS="$XCLOCK_X11_CFLAGS"
5275c2b339b4Smrg elif test -n "$PKG_CONFIG"; then
5276c2b339b4Smrg    if test -n "$PKG_CONFIG" && \
5277c2b339b4Smrg    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
5278e9554658Smrg  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
5279e9554658Smrg  ac_status=$?
5280c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281e9554658Smrg  (exit $ac_status); }; then
5282e9554658Smrg  pkg_cv_XCLOCK_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
5283e9554658Smrgelse
5284e9554658Smrg  pkg_failed=yes
5285e9554658Smrgfi
5286c2b339b4Smrg else
5287c2b339b4Smrg    pkg_failed=untried
5288e9554658Smrgfi
5289c2b339b4Smrgif test -n "$XCLOCK_X11_LIBS"; then
5290c2b339b4Smrg    pkg_cv_XCLOCK_X11_LIBS="$XCLOCK_X11_LIBS"
5291c2b339b4Smrg elif test -n "$PKG_CONFIG"; then
5292c2b339b4Smrg    if test -n "$PKG_CONFIG" && \
5293c2b339b4Smrg    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
5294e9554658Smrg  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
5295e9554658Smrg  ac_status=$?
5296c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297e9554658Smrg  (exit $ac_status); }; then
5298e9554658Smrg  pkg_cv_XCLOCK_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
5299e9554658Smrgelse
5300e9554658Smrg  pkg_failed=yes
5301e9554658Smrgfi
5302c2b339b4Smrg else
5303c2b339b4Smrg    pkg_failed=untried
5304e9554658Smrgfi
5305e9554658Smrg
5306c2b339b4Smrg
5307c2b339b4Smrg
5308e9554658Smrgif test $pkg_failed = yes; then
5309c2b339b4Smrg
5310c2b339b4Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5311c2b339b4Smrg        _pkg_short_errors_supported=yes
5312c2b339b4Smrgelse
5313c2b339b4Smrg        _pkg_short_errors_supported=no
5314c2b339b4Smrgfi
5315c2b339b4Smrg        if test $_pkg_short_errors_supported = yes; then
5316c2b339b4Smrg	        XCLOCK_X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
5317c2b339b4Smrg        else
5318c2b339b4Smrg	        XCLOCK_X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
5319c2b339b4Smrg        fi
5320e9554658Smrg	# Put the nasty error message in config.log where it belongs
5321c2b339b4Smrg	echo "$XCLOCK_X11_PKG_ERRORS" >&5
5322c2b339b4Smrg
5323c2b339b4Smrg	{ { $as_echo "$as_me:$LINENO: error: Package requirements (x11) were not met:
5324c2b339b4Smrg
5325c2b339b4Smrg$XCLOCK_X11_PKG_ERRORS
5326e9554658Smrg
5327e9554658SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
5328e9554658Smrginstalled software in a non-standard prefix.
5329e9554658Smrg
5330c2b339b4SmrgAlternatively, you may set the environment variables XCLOCK_X11_CFLAGS
5331c2b339b4Smrgand XCLOCK_X11_LIBS to avoid the need to call pkg-config.
5332c2b339b4SmrgSee the pkg-config man page for more details.
5333c2b339b4Smrg" >&5
5334c2b339b4Smrg$as_echo "$as_me: error: Package requirements (x11) were not met:
5335c2b339b4Smrg
5336c2b339b4Smrg$XCLOCK_X11_PKG_ERRORS
5337c2b339b4Smrg
5338e9554658SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
5339e9554658Smrginstalled software in a non-standard prefix.
5340e9554658Smrg
5341c2b339b4SmrgAlternatively, you may set the environment variables XCLOCK_X11_CFLAGS
5342c2b339b4Smrgand XCLOCK_X11_LIBS to avoid the need to call pkg-config.
5343c2b339b4SmrgSee the pkg-config man page for more details.
5344c2b339b4Smrg" >&2;}
5345e9554658Smrg   { (exit 1); exit 1; }; }
5346e9554658Smrgelif test $pkg_failed = untried; then
5347c2b339b4Smrg	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5348c2b339b4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5349c2b339b4Smrg{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
5350e9554658Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
5351e9554658Smrgpath to pkg-config.
5352e9554658Smrg
5353c2b339b4SmrgAlternatively, you may set the environment variables XCLOCK_X11_CFLAGS
5354c2b339b4Smrgand XCLOCK_X11_LIBS to avoid the need to call pkg-config.
5355c2b339b4SmrgSee the pkg-config man page for more details.
5356e9554658Smrg
5357c2b339b4SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
5358e9554658SmrgSee \`config.log' for more details." >&5
5359c2b339b4Smrg$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
5360e9554658Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
5361e9554658Smrgpath to pkg-config.
5362e9554658Smrg
5363c2b339b4SmrgAlternatively, you may set the environment variables XCLOCK_X11_CFLAGS
5364c2b339b4Smrgand XCLOCK_X11_LIBS to avoid the need to call pkg-config.
5365c2b339b4SmrgSee the pkg-config man page for more details.
5366e9554658Smrg
5367c2b339b4SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
5368e9554658SmrgSee \`config.log' for more details." >&2;}
5369c2b339b4Smrg   { (exit 1); exit 1; }; }; }
5370e9554658Smrgelse
5371e9554658Smrg	XCLOCK_X11_CFLAGS=$pkg_cv_XCLOCK_X11_CFLAGS
5372e9554658Smrg	XCLOCK_X11_LIBS=$pkg_cv_XCLOCK_X11_LIBS
5373c2b339b4Smrg        { $as_echo "$as_me:$LINENO: result: yes" >&5
5374c2b339b4Smrg$as_echo "yes" >&6; }
5375e9554658Smrg	:
5376e9554658Smrgfi
5377e9554658Smrg
5378e9554658Smrgpkg_failed=no
5379c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking for XAW" >&5
5380c2b339b4Smrg$as_echo_n "checking for XAW... " >&6; }
5381c2b339b4Smrg
5382c2b339b4Smrgif test -n "$XAW_CFLAGS"; then
5383c2b339b4Smrg    pkg_cv_XAW_CFLAGS="$XAW_CFLAGS"
5384c2b339b4Smrg elif test -n "$PKG_CONFIG"; then
5385c2b339b4Smrg    if test -n "$PKG_CONFIG" && \
5386c2b339b4Smrg    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xaw7\"") >&5
5387c2b339b4Smrg  ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5
5388e9554658Smrg  ac_status=$?
5389c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390e9554658Smrg  (exit $ac_status); }; then
5391c2b339b4Smrg  pkg_cv_XAW_CFLAGS=`$PKG_CONFIG --cflags "xaw7" 2>/dev/null`
5392e9554658Smrgelse
5393e9554658Smrg  pkg_failed=yes
5394e9554658Smrgfi
5395c2b339b4Smrg else
5396c2b339b4Smrg    pkg_failed=untried
5397e9554658Smrgfi
5398c2b339b4Smrgif test -n "$XAW_LIBS"; then
5399c2b339b4Smrg    pkg_cv_XAW_LIBS="$XAW_LIBS"
5400c2b339b4Smrg elif test -n "$PKG_CONFIG"; then
5401c2b339b4Smrg    if test -n "$PKG_CONFIG" && \
5402c2b339b4Smrg    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xaw7\"") >&5
5403c2b339b4Smrg  ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5
5404e9554658Smrg  ac_status=$?
5405c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406e9554658Smrg  (exit $ac_status); }; then
5407c2b339b4Smrg  pkg_cv_XAW_LIBS=`$PKG_CONFIG --libs "xaw7" 2>/dev/null`
5408e9554658Smrgelse
5409e9554658Smrg  pkg_failed=yes
5410e9554658Smrgfi
5411c2b339b4Smrg else
5412c2b339b4Smrg    pkg_failed=untried
5413e9554658Smrgfi
5414e9554658Smrg
5415c2b339b4Smrg
5416c2b339b4Smrg
5417e9554658Smrgif test $pkg_failed = yes; then
5418e9554658Smrg
5419c2b339b4Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5420c2b339b4Smrg        _pkg_short_errors_supported=yes
5421e9554658Smrgelse
5422c2b339b4Smrg        _pkg_short_errors_supported=no
5423e9554658Smrgfi
5424c2b339b4Smrg        if test $_pkg_short_errors_supported = yes; then
5425c2b339b4Smrg	        XAW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7" 2>&1`
5426c2b339b4Smrg        else
5427c2b339b4Smrg	        XAW_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7" 2>&1`
5428c2b339b4Smrg        fi
5429c2b339b4Smrg	# Put the nasty error message in config.log where it belongs
5430c2b339b4Smrg	echo "$XAW_PKG_ERRORS" >&5
5431e9554658Smrg
5432c2b339b4Smrg	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xaw7) were not met:
5433e9554658Smrg
5434c2b339b4Smrg$XAW_PKG_ERRORS
5435e9554658Smrg
5436c2b339b4SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
5437c2b339b4Smrginstalled software in a non-standard prefix.
5438e9554658Smrg
5439c2b339b4SmrgAlternatively, you may set the environment variables XAW_CFLAGS
5440c2b339b4Smrgand XAW_LIBS to avoid the need to call pkg-config.
5441c2b339b4SmrgSee the pkg-config man page for more details.
5442c2b339b4Smrg" >&5
5443c2b339b4Smrg$as_echo "$as_me: error: Package requirements (xaw7) were not met:
5444e9554658Smrg
5445c2b339b4Smrg$XAW_PKG_ERRORS
5446e9554658Smrg
5447c2b339b4SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
5448c2b339b4Smrginstalled software in a non-standard prefix.
5449e9554658Smrg
5450c2b339b4SmrgAlternatively, you may set the environment variables XAW_CFLAGS
5451c2b339b4Smrgand XAW_LIBS to avoid the need to call pkg-config.
5452c2b339b4SmrgSee the pkg-config man page for more details.
5453c2b339b4Smrg" >&2;}
5454e9554658Smrg   { (exit 1); exit 1; }; }
5455c2b339b4Smrgelif test $pkg_failed = untried; then
5456c2b339b4Smrg	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5457c2b339b4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5458c2b339b4Smrg{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
5459c2b339b4Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
5460c2b339b4Smrgpath to pkg-config.
5461c2b339b4Smrg
5462c2b339b4SmrgAlternatively, you may set the environment variables XAW_CFLAGS
5463c2b339b4Smrgand XAW_LIBS to avoid the need to call pkg-config.
5464c2b339b4SmrgSee the pkg-config man page for more details.
5465c2b339b4Smrg
5466c2b339b4SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
5467c2b339b4SmrgSee \`config.log' for more details." >&5
5468c2b339b4Smrg$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
5469c2b339b4Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
5470c2b339b4Smrgpath to pkg-config.
5471e9554658Smrg
5472c2b339b4SmrgAlternatively, you may set the environment variables XAW_CFLAGS
5473c2b339b4Smrgand XAW_LIBS to avoid the need to call pkg-config.
5474c2b339b4SmrgSee the pkg-config man page for more details.
5475c2b339b4Smrg
5476c2b339b4SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
5477c2b339b4SmrgSee \`config.log' for more details." >&2;}
5478c2b339b4Smrg   { (exit 1); exit 1; }; }; }
5479c2b339b4Smrgelse
5480c2b339b4Smrg	XAW_CFLAGS=$pkg_cv_XAW_CFLAGS
5481c2b339b4Smrg	XAW_LIBS=$pkg_cv_XAW_LIBS
5482c2b339b4Smrg        { $as_echo "$as_me:$LINENO: result: yes" >&5
5483c2b339b4Smrg$as_echo "yes" >&6; }
5484c2b339b4Smrg	:
5485c2b339b4Smrgfi
5486e9554658SmrgXCLOCK_CFLAGS="$XCLOCK_X11_CFLAGS $XAW_CFLAGS"
5487e9554658SmrgXCLOCK_LIBS="$XCLOCK_X11_LIBS $XAW_LIBS"
5488e9554658Smrg
5489e9554658Smrg
5490e9554658Smrg# Check whether --with-xft was given.
5491e9554658Smrgif test "${with_xft+set}" = set; then
5492e9554658Smrg  withval=$with_xft; use_xft="$withval"
5493e9554658Smrgelse
5494e9554658Smrg  use_xft="try"
5495e9554658Smrgfi
5496e9554658Smrg
5497e9554658Smrgif test x$use_xft != xno ; then
5498e9554658Smrg
5499e9554658Smrgpkg_failed=no
5500c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking for XFT" >&5
5501c2b339b4Smrg$as_echo_n "checking for XFT... " >&6; }
5502c2b339b4Smrg
5503c2b339b4Smrgif test -n "$XFT_CFLAGS"; then
5504c2b339b4Smrg    pkg_cv_XFT_CFLAGS="$XFT_CFLAGS"
5505c2b339b4Smrg elif test -n "$PKG_CONFIG"; then
5506c2b339b4Smrg    if test -n "$PKG_CONFIG" && \
5507c2b339b4Smrg    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xrender xft\"") >&5
5508e9554658Smrg  ($PKG_CONFIG --exists --print-errors "xrender xft") 2>&5
5509e9554658Smrg  ac_status=$?
5510c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511e9554658Smrg  (exit $ac_status); }; then
5512e9554658Smrg  pkg_cv_XFT_CFLAGS=`$PKG_CONFIG --cflags "xrender xft" 2>/dev/null`
5513e9554658Smrgelse
5514e9554658Smrg  pkg_failed=yes
5515e9554658Smrgfi
5516c2b339b4Smrg else
5517c2b339b4Smrg    pkg_failed=untried
5518e9554658Smrgfi
5519c2b339b4Smrgif test -n "$XFT_LIBS"; then
5520c2b339b4Smrg    pkg_cv_XFT_LIBS="$XFT_LIBS"
5521c2b339b4Smrg elif test -n "$PKG_CONFIG"; then
5522c2b339b4Smrg    if test -n "$PKG_CONFIG" && \
5523c2b339b4Smrg    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xrender xft\"") >&5
5524e9554658Smrg  ($PKG_CONFIG --exists --print-errors "xrender xft") 2>&5
5525e9554658Smrg  ac_status=$?
5526c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527e9554658Smrg  (exit $ac_status); }; then
5528e9554658Smrg  pkg_cv_XFT_LIBS=`$PKG_CONFIG --libs "xrender xft" 2>/dev/null`
5529e9554658Smrgelse
5530e9554658Smrg  pkg_failed=yes
5531e9554658Smrgfi
5532c2b339b4Smrg else
5533c2b339b4Smrg    pkg_failed=untried
5534e9554658Smrgfi
5535e9554658Smrg
5536c2b339b4Smrg
5537c2b339b4Smrg
5538e9554658Smrgif test $pkg_failed = yes; then
5539c2b339b4Smrg
5540c2b339b4Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5541c2b339b4Smrg        _pkg_short_errors_supported=yes
5542c2b339b4Smrgelse
5543c2b339b4Smrg        _pkg_short_errors_supported=no
5544c2b339b4Smrgfi
5545c2b339b4Smrg        if test $_pkg_short_errors_supported = yes; then
5546c2b339b4Smrg	        XFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xrender xft" 2>&1`
5547c2b339b4Smrg        else
5548c2b339b4Smrg	        XFT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xrender xft" 2>&1`
5549c2b339b4Smrg        fi
5550e9554658Smrg	# Put the nasty error message in config.log where it belongs
5551c2b339b4Smrg	echo "$XFT_PKG_ERRORS" >&5
5552c2b339b4Smrg
5553c2b339b4Smrg	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xrender xft) were not met:
5554c2b339b4Smrg
5555c2b339b4Smrg$XFT_PKG_ERRORS
5556e9554658Smrg
5557e9554658SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
5558e9554658Smrginstalled software in a non-standard prefix.
5559e9554658Smrg
5560c2b339b4SmrgAlternatively, you may set the environment variables XFT_CFLAGS
5561c2b339b4Smrgand XFT_LIBS to avoid the need to call pkg-config.
5562c2b339b4SmrgSee the pkg-config man page for more details.
5563c2b339b4Smrg" >&5
5564c2b339b4Smrg$as_echo "$as_me: error: Package requirements (xrender xft) were not met:
5565c2b339b4Smrg
5566c2b339b4Smrg$XFT_PKG_ERRORS
5567c2b339b4Smrg
5568e9554658SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
5569e9554658Smrginstalled software in a non-standard prefix.
5570e9554658Smrg
5571c2b339b4SmrgAlternatively, you may set the environment variables XFT_CFLAGS
5572c2b339b4Smrgand XFT_LIBS to avoid the need to call pkg-config.
5573c2b339b4SmrgSee the pkg-config man page for more details.
5574c2b339b4Smrg" >&2;}
5575e9554658Smrg   { (exit 1); exit 1; }; }
5576e9554658Smrgelif test $pkg_failed = untried; then
5577c2b339b4Smrg	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5578c2b339b4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5579c2b339b4Smrg{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
5580e9554658Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
5581e9554658Smrgpath to pkg-config.
5582e9554658Smrg
5583c2b339b4SmrgAlternatively, you may set the environment variables XFT_CFLAGS
5584c2b339b4Smrgand XFT_LIBS to avoid the need to call pkg-config.
5585c2b339b4SmrgSee the pkg-config man page for more details.
5586e9554658Smrg
5587c2b339b4SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
5588e9554658SmrgSee \`config.log' for more details." >&5
5589c2b339b4Smrg$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
5590e9554658Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
5591e9554658Smrgpath to pkg-config.
5592e9554658Smrg
5593c2b339b4SmrgAlternatively, you may set the environment variables XFT_CFLAGS
5594c2b339b4Smrgand XFT_LIBS to avoid the need to call pkg-config.
5595c2b339b4SmrgSee the pkg-config man page for more details.
5596e9554658Smrg
5597c2b339b4SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
5598e9554658SmrgSee \`config.log' for more details." >&2;}
5599c2b339b4Smrg   { (exit 1); exit 1; }; }; }
5600e9554658Smrgelse
5601e9554658Smrg	XFT_CFLAGS=$pkg_cv_XFT_CFLAGS
5602e9554658Smrg	XFT_LIBS=$pkg_cv_XFT_LIBS
5603c2b339b4Smrg        { $as_echo "$as_me:$LINENO: result: yes" >&5
5604c2b339b4Smrg$as_echo "yes" >&6; }
5605e9554658Smrg	:
5606e9554658Smrgfi
5607c2b339b4Smrg	{ $as_echo "$as_me:$LINENO: checking for library containing sqrt" >&5
5608c2b339b4Smrg$as_echo_n "checking for library containing sqrt... " >&6; }
5609e9554658Smrgif test "${ac_cv_search_sqrt+set}" = set; then
5610c2b339b4Smrg  $as_echo_n "(cached) " >&6
5611e9554658Smrgelse
5612e9554658Smrg  ac_func_search_save_LIBS=$LIBS
5613e9554658Smrgcat >conftest.$ac_ext <<_ACEOF
5614e9554658Smrg/* confdefs.h.  */
5615e9554658Smrg_ACEOF
5616e9554658Smrgcat confdefs.h >>conftest.$ac_ext
5617e9554658Smrgcat >>conftest.$ac_ext <<_ACEOF
5618e9554658Smrg/* end confdefs.h.  */
5619e9554658Smrg
5620e9554658Smrg/* Override any GCC internal prototype to avoid an error.
5621e9554658Smrg   Use char because int might match the return type of a GCC
5622e9554658Smrg   builtin and then its argument prototype would still apply.  */
5623e9554658Smrg#ifdef __cplusplus
5624e9554658Smrgextern "C"
5625e9554658Smrg#endif
5626e9554658Smrgchar sqrt ();
5627e9554658Smrgint
5628e9554658Smrgmain ()
5629e9554658Smrg{
5630e9554658Smrgreturn sqrt ();
5631e9554658Smrg  ;
5632e9554658Smrg  return 0;
5633e9554658Smrg}
5634e9554658Smrg_ACEOF
5635e9554658Smrgfor ac_lib in '' m; do
5636e9554658Smrg  if test -z "$ac_lib"; then
5637e9554658Smrg    ac_res="none required"
5638e9554658Smrg  else
5639e9554658Smrg    ac_res=-l$ac_lib
5640e9554658Smrg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5641e9554658Smrg  fi
5642e9554658Smrg  rm -f conftest.$ac_objext conftest$ac_exeext
5643e9554658Smrgif { (ac_try="$ac_link"
5644e9554658Smrgcase "(($ac_try" in
5645e9554658Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646e9554658Smrg  *) ac_try_echo=$ac_try;;
5647e9554658Smrgesac
5648c2b339b4Smrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5649c2b339b4Smrg$as_echo "$ac_try_echo") >&5
5650e9554658Smrg  (eval "$ac_link") 2>conftest.er1
5651e9554658Smrg  ac_status=$?
5652e9554658Smrg  grep -v '^ *+' conftest.er1 >conftest.err
5653e9554658Smrg  rm -f conftest.er1
5654e9554658Smrg  cat conftest.err >&5
5655c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656e9554658Smrg  (exit $ac_status); } && {
5657e9554658Smrg	 test -z "$ac_c_werror_flag" ||
5658e9554658Smrg	 test ! -s conftest.err
5659c2b339b4Smrg       } && test -s conftest$ac_exeext && {
5660c2b339b4Smrg	 test "$cross_compiling" = yes ||
5661c2b339b4Smrg	 $as_test_x conftest$ac_exeext
5662c2b339b4Smrg       }; then
5663e9554658Smrg  ac_cv_search_sqrt=$ac_res
5664e9554658Smrgelse
5665c2b339b4Smrg  $as_echo "$as_me: failed program was:" >&5
5666e9554658Smrgsed 's/^/| /' conftest.$ac_ext >&5
5667e9554658Smrg
5668e9554658Smrg
5669e9554658Smrgfi
5670e9554658Smrg
5671c2b339b4Smrgrm -rf conftest.dSYM
5672e9554658Smrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5673e9554658Smrg      conftest$ac_exeext
5674e9554658Smrg  if test "${ac_cv_search_sqrt+set}" = set; then
5675e9554658Smrg  break
5676e9554658Smrgfi
5677e9554658Smrgdone
5678e9554658Smrgif test "${ac_cv_search_sqrt+set}" = set; then
5679e9554658Smrg  :
5680e9554658Smrgelse
5681e9554658Smrg  ac_cv_search_sqrt=no
5682e9554658Smrgfi
5683e9554658Smrgrm conftest.$ac_ext
5684e9554658SmrgLIBS=$ac_func_search_save_LIBS
5685e9554658Smrgfi
5686c2b339b4Smrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_sqrt" >&5
5687c2b339b4Smrg$as_echo "$ac_cv_search_sqrt" >&6; }
5688e9554658Smrgac_res=$ac_cv_search_sqrt
5689e9554658Smrgif test "$ac_res" != no; then
5690e9554658Smrg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5691e9554658Smrg
5692e9554658Smrgfi
5693e9554658Smrg
5694e9554658Smrg	XCLOCK_CFLAGS="$XCLOCK_CFLAGS $XFT_CFLAGS"
5695e9554658Smrg	XCLOCK_LIBS="$XCLOCK_LIBS $XFT_LIBS"
5696e9554658Smrg
5697e9554658Smrgcat >>confdefs.h <<\_ACEOF
5698e9554658Smrg#define XRENDER 1
5699e9554658Smrg_ACEOF
5700e9554658Smrg
5701e9554658Smrg
5702e9554658Smrgcat >>confdefs.h <<\_ACEOF
5703e9554658Smrg#define XFREE86_FT2 1
5704e9554658Smrg_ACEOF
5705e9554658Smrg
5706e9554658Smrgfi
5707e9554658Smrg
5708e9554658Smrg
5709e9554658Smrg# Check whether --with-xkb was given.
5710e9554658Smrgif test "${with_xkb+set}" = set; then
5711e9554658Smrg  withval=$with_xkb; use_xkb="$withval"
5712e9554658Smrgelse
5713e9554658Smrg  use_xkb="try"
5714e9554658Smrgfi
5715e9554658Smrg
5716e9554658Smrgif test x$use_xkb != xno ; then
5717e9554658Smrg
5718e9554658Smrgpkg_failed=no
5719c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking for XKB" >&5
5720c2b339b4Smrg$as_echo_n "checking for XKB... " >&6; }
5721c2b339b4Smrg
5722c2b339b4Smrgif test -n "$XKB_CFLAGS"; then
5723c2b339b4Smrg    pkg_cv_XKB_CFLAGS="$XKB_CFLAGS"
5724c2b339b4Smrg elif test -n "$PKG_CONFIG"; then
5725c2b339b4Smrg    if test -n "$PKG_CONFIG" && \
5726c2b339b4Smrg    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xkbfile\"") >&5
5727e9554658Smrg  ($PKG_CONFIG --exists --print-errors "xkbfile") 2>&5
5728e9554658Smrg  ac_status=$?
5729c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730e9554658Smrg  (exit $ac_status); }; then
5731e9554658Smrg  pkg_cv_XKB_CFLAGS=`$PKG_CONFIG --cflags "xkbfile" 2>/dev/null`
5732e9554658Smrgelse
5733e9554658Smrg  pkg_failed=yes
5734e9554658Smrgfi
5735c2b339b4Smrg else
5736c2b339b4Smrg    pkg_failed=untried
5737e9554658Smrgfi
5738c2b339b4Smrgif test -n "$XKB_LIBS"; then
5739c2b339b4Smrg    pkg_cv_XKB_LIBS="$XKB_LIBS"
5740c2b339b4Smrg elif test -n "$PKG_CONFIG"; then
5741c2b339b4Smrg    if test -n "$PKG_CONFIG" && \
5742c2b339b4Smrg    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xkbfile\"") >&5
5743e9554658Smrg  ($PKG_CONFIG --exists --print-errors "xkbfile") 2>&5
5744e9554658Smrg  ac_status=$?
5745c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746e9554658Smrg  (exit $ac_status); }; then
5747e9554658Smrg  pkg_cv_XKB_LIBS=`$PKG_CONFIG --libs "xkbfile" 2>/dev/null`
5748e9554658Smrgelse
5749e9554658Smrg  pkg_failed=yes
5750e9554658Smrgfi
5751c2b339b4Smrg else
5752c2b339b4Smrg    pkg_failed=untried
5753e9554658Smrgfi
5754e9554658Smrg
5755e9554658Smrg
5756e9554658Smrg
5757c2b339b4Smrgif test $pkg_failed = yes; then
5758e9554658Smrg
5759c2b339b4Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5760c2b339b4Smrg        _pkg_short_errors_supported=yes
5761e9554658Smrgelse
5762c2b339b4Smrg        _pkg_short_errors_supported=no
5763e9554658Smrgfi
5764c2b339b4Smrg        if test $_pkg_short_errors_supported = yes; then
5765c2b339b4Smrg	        XKB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xkbfile" 2>&1`
5766c2b339b4Smrg        else
5767c2b339b4Smrg	        XKB_PKG_ERRORS=`$PKG_CONFIG --print-errors "xkbfile" 2>&1`
5768c2b339b4Smrg        fi
5769e9554658Smrg	# Put the nasty error message in config.log where it belongs
5770c2b339b4Smrg	echo "$XKB_PKG_ERRORS" >&5
5771e9554658Smrg
5772c2b339b4Smrg	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xkbfile) were not met:
5773c2b339b4Smrg
5774c2b339b4Smrg$XKB_PKG_ERRORS
5775e9554658Smrg
5776e9554658SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
5777e9554658Smrginstalled software in a non-standard prefix.
5778e9554658Smrg
5779c2b339b4SmrgAlternatively, you may set the environment variables XKB_CFLAGS
5780c2b339b4Smrgand XKB_LIBS to avoid the need to call pkg-config.
5781c2b339b4SmrgSee the pkg-config man page for more details.
5782c2b339b4Smrg" >&5
5783c2b339b4Smrg$as_echo "$as_me: error: Package requirements (xkbfile) were not met:
5784e9554658Smrg
5785c2b339b4Smrg$XKB_PKG_ERRORS
5786e9554658Smrg
5787c2b339b4SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
5788c2b339b4Smrginstalled software in a non-standard prefix.
5789e9554658Smrg
5790c2b339b4SmrgAlternatively, you may set the environment variables XKB_CFLAGS
5791c2b339b4Smrgand XKB_LIBS to avoid the need to call pkg-config.
5792c2b339b4SmrgSee the pkg-config man page for more details.
5793c2b339b4Smrg" >&2;}
5794c2b339b4Smrg   { (exit 1); exit 1; }; }
5795c2b339b4Smrgelif test $pkg_failed = untried; then
5796c2b339b4Smrg	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5797c2b339b4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5798c2b339b4Smrg{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
5799c2b339b4Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
5800c2b339b4Smrgpath to pkg-config.
5801e9554658Smrg
5802c2b339b4SmrgAlternatively, you may set the environment variables XKB_CFLAGS
5803c2b339b4Smrgand XKB_LIBS to avoid the need to call pkg-config.
5804c2b339b4SmrgSee the pkg-config man page for more details.
5805e9554658Smrg
5806c2b339b4SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
5807c2b339b4SmrgSee \`config.log' for more details." >&5
5808c2b339b4Smrg$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
5809c2b339b4Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
5810c2b339b4Smrgpath to pkg-config.
5811e9554658Smrg
5812c2b339b4SmrgAlternatively, you may set the environment variables XKB_CFLAGS
5813c2b339b4Smrgand XKB_LIBS to avoid the need to call pkg-config.
5814c2b339b4SmrgSee the pkg-config man page for more details.
5815e9554658Smrg
5816c2b339b4SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
5817c2b339b4SmrgSee \`config.log' for more details." >&2;}
5818c2b339b4Smrg   { (exit 1); exit 1; }; }; }
5819c2b339b4Smrgelse
5820c2b339b4Smrg	XKB_CFLAGS=$pkg_cv_XKB_CFLAGS
5821c2b339b4Smrg	XKB_LIBS=$pkg_cv_XKB_LIBS
5822c2b339b4Smrg        { $as_echo "$as_me:$LINENO: result: yes" >&5
5823c2b339b4Smrg$as_echo "yes" >&6; }
5824c2b339b4Smrg	:
5825e9554658Smrgfi
5826c2b339b4Smrg	XCLOCK_CFLAGS="$XCLOCK_CFLAGS $XKB_CFLAGS"
5827c2b339b4Smrg	XCLOCK_LIBS="$XCLOCK_LIBS $XKB_LIBS"
5828e9554658Smrg
5829c2b339b4Smrgcat >>confdefs.h <<\_ACEOF
5830c2b339b4Smrg#define XKB 1
5831c2b339b4Smrg_ACEOF
5832e9554658Smrg
5833e9554658Smrgfi
5834e9554658Smrg
5835e9554658Smrg
5836e9554658Smrg
5837e9554658Smrg
5838e9554658Smrg
5839c2b339b4Smrgpkg_failed=no
5840c2b339b4Smrg{ $as_echo "$as_me:$LINENO: checking for APPDEFS" >&5
5841c2b339b4Smrg$as_echo_n "checking for APPDEFS... " >&6; }
5842c2b339b4Smrg
5843c2b339b4Smrgif test -n "$APPDEFS_CFLAGS"; then
5844c2b339b4Smrg    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
5845c2b339b4Smrg elif test -n "$PKG_CONFIG"; then
5846c2b339b4Smrg    if test -n "$PKG_CONFIG" && \
5847c2b339b4Smrg    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt\"") >&5
5848c2b339b4Smrg  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
5849c2b339b4Smrg  ac_status=$?
5850c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851c2b339b4Smrg  (exit $ac_status); }; then
5852c2b339b4Smrg  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
5853c2b339b4Smrgelse
5854c2b339b4Smrg  pkg_failed=yes
5855c2b339b4Smrgfi
5856c2b339b4Smrg else
5857c2b339b4Smrg    pkg_failed=untried
5858c2b339b4Smrgfi
5859c2b339b4Smrgif test -n "$APPDEFS_LIBS"; then
5860c2b339b4Smrg    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
5861c2b339b4Smrg elif test -n "$PKG_CONFIG"; then
5862c2b339b4Smrg    if test -n "$PKG_CONFIG" && \
5863c2b339b4Smrg    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt\"") >&5
5864c2b339b4Smrg  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
5865c2b339b4Smrg  ac_status=$?
5866c2b339b4Smrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867c2b339b4Smrg  (exit $ac_status); }; then
5868c2b339b4Smrg  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
5869c2b339b4Smrgelse
5870c2b339b4Smrg  pkg_failed=yes
5871c2b339b4Smrgfi
5872c2b339b4Smrg else
5873c2b339b4Smrg    pkg_failed=untried
5874c2b339b4Smrgfi
5875e9554658Smrg
5876e9554658Smrg
5877e9554658Smrg
5878c2b339b4Smrgif test $pkg_failed = yes; then
5879e9554658Smrg
5880c2b339b4Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5881c2b339b4Smrg        _pkg_short_errors_supported=yes
5882c2b339b4Smrgelse
5883c2b339b4Smrg        _pkg_short_errors_supported=no
5884c2b339b4Smrgfi
5885c2b339b4Smrg        if test $_pkg_short_errors_supported = yes; then
5886c2b339b4Smrg	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1`
5887c2b339b4Smrg        else
5888c2b339b4Smrg	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1`
5889c2b339b4Smrg        fi
5890c2b339b4Smrg	# Put the nasty error message in config.log where it belongs
5891c2b339b4Smrg	echo "$APPDEFS_PKG_ERRORS" >&5
5892e9554658Smrg
5893c2b339b4Smrg	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xt) were not met:
5894e9554658Smrg
5895c2b339b4Smrg$APPDEFS_PKG_ERRORS
5896e9554658Smrg
5897c2b339b4SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
5898c2b339b4Smrginstalled software in a non-standard prefix.
5899e9554658Smrg
5900c2b339b4SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS
5901c2b339b4Smrgand APPDEFS_LIBS to avoid the need to call pkg-config.
5902c2b339b4SmrgSee the pkg-config man page for more details.
5903c2b339b4Smrg" >&5
5904c2b339b4Smrg$as_echo "$as_me: error: Package requirements (xt) were not met:
5905e9554658Smrg
5906c2b339b4Smrg$APPDEFS_PKG_ERRORS
5907e9554658Smrg
5908c2b339b4SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
5909c2b339b4Smrginstalled software in a non-standard prefix.
5910e9554658Smrg
5911c2b339b4SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS
5912c2b339b4Smrgand APPDEFS_LIBS to avoid the need to call pkg-config.
5913c2b339b4SmrgSee the pkg-config man page for more details.
5914c2b339b4Smrg" >&2;}
5915c2b339b4Smrg   { (exit 1); exit 1; }; }
5916c2b339b4Smrgelif test $pkg_failed = untried; then
5917c2b339b4Smrg	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5918c2b339b4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5919c2b339b4Smrg{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
5920c2b339b4Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
5921c2b339b4Smrgpath to pkg-config.
5922e9554658Smrg
5923c2b339b4SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS
5924c2b339b4Smrgand APPDEFS_LIBS to avoid the need to call pkg-config.
5925c2b339b4SmrgSee the pkg-config man page for more details.
5926e9554658Smrg
5927c2b339b4SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
5928c2b339b4SmrgSee \`config.log' for more details." >&5
5929c2b339b4Smrg$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
5930c2b339b4Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
5931c2b339b4Smrgpath to pkg-config.
5932e9554658Smrg
5933c2b339b4SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS
5934c2b339b4Smrgand APPDEFS_LIBS to avoid the need to call pkg-config.
5935c2b339b4SmrgSee the pkg-config man page for more details.
5936e9554658Smrg
5937c2b339b4SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
5938c2b339b4SmrgSee \`config.log' for more details." >&2;}
5939c2b339b4Smrg   { (exit 1); exit 1; }; }; }
5940c2b339b4Smrgelse
5941c2b339b4Smrg	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
5942c2b339b4Smrg	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
5943c2b339b4Smrg        { $as_echo "$as_me:$LINENO: result: yes" >&5
5944c2b339b4Smrg$as_echo "yes" >&6; }
5945c2b339b4Smrg	:
5946c2b339b4Smrgfi
5947c2b339b4Smrgxt_appdefaultdir=$(pkg-config --variable=appdefaultdir xt)
5948e9554658Smrg
5949c2b339b4Smrg# Check whether --with-appdefaultdir was given.
5950c2b339b4Smrgif test "${with_appdefaultdir+set}" = set; then
5951c2b339b4Smrg  withval=$with_appdefaultdir; appdefaultdir="$withval"
5952c2b339b4Smrgelse
5953c2b339b4Smrg  appdefaultdir="${xt_appdefaultdir}"
5954c2b339b4Smrgfi
5955e9554658Smrg
5956e9554658Smrg
5957e9554658Smrg
5958e9554658Smrgac_config_files="$ac_config_files Makefile"
5959e9554658Smrg
5960e9554658Smrgcat >confcache <<\_ACEOF
5961e9554658Smrg# This file is a shell script that caches the results of configure
5962e9554658Smrg# tests run on this system so they can be shared between configure
5963e9554658Smrg# scripts and configure runs, see configure's option --config-cache.
5964e9554658Smrg# It is not useful on other systems.  If it contains results you don't
5965e9554658Smrg# want to keep, you may remove or edit it.
5966e9554658Smrg#
5967e9554658Smrg# config.status only pays attention to the cache file if you give it
5968e9554658Smrg# the --recheck option to rerun configure.
5969e9554658Smrg#
5970e9554658Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
5971e9554658Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
5972e9554658Smrg# following values.
5973e9554658Smrg
5974e9554658Smrg_ACEOF
5975e9554658Smrg
5976e9554658Smrg# The following way of writing the cache mishandles newlines in values,
5977e9554658Smrg# but we know of no workaround that is simple, portable, and efficient.
5978e9554658Smrg# So, we kill variables containing newlines.
5979e9554658Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
5980e9554658Smrg# and sets the high bit in the cache file unless we assign to the vars.
5981e9554658Smrg(
5982e9554658Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5983e9554658Smrg    eval ac_val=\$$ac_var
5984e9554658Smrg    case $ac_val in #(
5985e9554658Smrg    *${as_nl}*)
5986e9554658Smrg      case $ac_var in #(
5987c2b339b4Smrg      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
5988c2b339b4Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5989e9554658Smrg      esac
5990e9554658Smrg      case $ac_var in #(
5991e9554658Smrg      _ | IFS | as_nl) ;; #(
5992c2b339b4Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5993e9554658Smrg      *) $as_unset $ac_var ;;
5994e9554658Smrg      esac ;;
5995e9554658Smrg    esac
5996e9554658Smrg  done
5997e9554658Smrg
5998e9554658Smrg  (set) 2>&1 |
5999e9554658Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
6000e9554658Smrg    *${as_nl}ac_space=\ *)
6001e9554658Smrg      # `set' does not quote correctly, so add quotes (double-quote
6002e9554658Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \).
6003e9554658Smrg      sed -n \
6004e9554658Smrg	"s/'/'\\\\''/g;
6005e9554658Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6006e9554658Smrg      ;; #(
6007e9554658Smrg    *)
6008e9554658Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
6009e9554658Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6010e9554658Smrg      ;;
6011e9554658Smrg    esac |
6012e9554658Smrg    sort
6013e9554658Smrg) |
6014e9554658Smrg  sed '
6015e9554658Smrg     /^ac_cv_env_/b end
6016e9554658Smrg     t clear
6017e9554658Smrg     :clear
6018e9554658Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6019e9554658Smrg     t end
6020e9554658Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6021e9554658Smrg     :end' >>confcache
6022e9554658Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6023e9554658Smrg  if test -w "$cache_file"; then
6024e9554658Smrg    test "x$cache_file" != "x/dev/null" &&
6025c2b339b4Smrg      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
6026c2b339b4Smrg$as_echo "$as_me: updating cache $cache_file" >&6;}
6027e9554658Smrg    cat confcache >$cache_file
6028e9554658Smrg  else
6029c2b339b4Smrg    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6030c2b339b4Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6031e9554658Smrg  fi
6032e9554658Smrgfi
6033e9554658Smrgrm -f confcache
6034e9554658Smrg
6035e9554658Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
6036e9554658Smrg# Let make expand exec_prefix.
6037e9554658Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6038e9554658Smrg
6039e9554658SmrgDEFS=-DHAVE_CONFIG_H
6040e9554658Smrg
6041e9554658Smrgac_libobjs=
6042e9554658Smrgac_ltlibobjs=
6043e9554658Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6044e9554658Smrg  # 1. Remove the extension, and $U if already installed.
6045e9554658Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6046c2b339b4Smrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6047e9554658Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6048e9554658Smrg  #    will be set to the directory where LIBOBJS objects are built.
6049e9554658Smrg  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6050e9554658Smrg  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6051e9554658Smrgdone
6052e9554658SmrgLIBOBJS=$ac_libobjs
6053e9554658Smrg
6054e9554658SmrgLTLIBOBJS=$ac_ltlibobjs
6055e9554658Smrg
6056e9554658Smrg
6057c2b339b4Smrg if test -n "$EXEEXT"; then
6058c2b339b4Smrg  am__EXEEXT_TRUE=
6059c2b339b4Smrg  am__EXEEXT_FALSE='#'
6060c2b339b4Smrgelse
6061c2b339b4Smrg  am__EXEEXT_TRUE='#'
6062c2b339b4Smrg  am__EXEEXT_FALSE=
6063c2b339b4Smrgfi
6064c2b339b4Smrg
6065e9554658Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6066c2b339b4Smrg  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
6067e9554658SmrgUsually this means the macro was only invoked conditionally." >&5
6068c2b339b4Smrg$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
6069e9554658SmrgUsually this means the macro was only invoked conditionally." >&2;}
6070e9554658Smrg   { (exit 1); exit 1; }; }
6071e9554658Smrgfi
6072e9554658Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6073c2b339b4Smrg  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6074e9554658SmrgUsually this means the macro was only invoked conditionally." >&5
6075c2b339b4Smrg$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
6076e9554658SmrgUsually this means the macro was only invoked conditionally." >&2;}
6077e9554658Smrg   { (exit 1); exit 1; }; }
6078e9554658Smrgfi
6079e9554658Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6080c2b339b4Smrg  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6081e9554658SmrgUsually this means the macro was only invoked conditionally." >&5
6082c2b339b4Smrg$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6083e9554658SmrgUsually this means the macro was only invoked conditionally." >&2;}
6084e9554658Smrg   { (exit 1); exit 1; }; }
6085e9554658Smrgfi
6086e9554658Smrg
6087e9554658Smrg: ${CONFIG_STATUS=./config.status}
6088c2b339b4Smrgac_write_fail=0
6089e9554658Smrgac_clean_files_save=$ac_clean_files
6090e9554658Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
6091c2b339b4Smrg{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6092c2b339b4Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6093c2b339b4Smrgcat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6094e9554658Smrg#! $SHELL
6095e9554658Smrg# Generated by $as_me.
6096e9554658Smrg# Run this file to recreate the current configuration.
6097e9554658Smrg# Compiler output produced by configure, useful for debugging
6098e9554658Smrg# configure, is in config.log if it exists.
6099e9554658Smrg
6100e9554658Smrgdebug=false
6101e9554658Smrgac_cs_recheck=false
6102e9554658Smrgac_cs_silent=false
6103e9554658SmrgSHELL=\${CONFIG_SHELL-$SHELL}
6104e9554658Smrg_ACEOF
6105e9554658Smrg
6106c2b339b4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6107e9554658Smrg## --------------------- ##
6108e9554658Smrg## M4sh Initialization.  ##
6109e9554658Smrg## --------------------- ##
6110e9554658Smrg
6111e9554658Smrg# Be more Bourne compatible
6112e9554658SmrgDUALCASE=1; export DUALCASE # for MKS sh
6113e9554658Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6114e9554658Smrg  emulate sh
6115e9554658Smrg  NULLCMD=:
6116c2b339b4Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6117e9554658Smrg  # is contrary to our usage.  Disable this feature.
6118e9554658Smrg  alias -g '${1+"$@"}'='"$@"'
6119e9554658Smrg  setopt NO_GLOB_SUBST
6120e9554658Smrgelse
6121e9554658Smrg  case `(set -o) 2>/dev/null` in
6122e9554658Smrg  *posix*) set -o posix ;;
6123e9554658Smrgesac
6124e9554658Smrg
6125e9554658Smrgfi
6126e9554658Smrg
6127e9554658Smrg
6128e9554658Smrg
6129e9554658Smrg
6130e9554658Smrg# PATH needs CR
6131e9554658Smrg# Avoid depending upon Character Ranges.
6132e9554658Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
6133e9554658Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6134e9554658Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
6135e9554658Smrgas_cr_digits='0123456789'
6136e9554658Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
6137e9554658Smrg
6138c2b339b4Smrgas_nl='
6139c2b339b4Smrg'
6140c2b339b4Smrgexport as_nl
6141c2b339b4Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
6142c2b339b4Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6143c2b339b4Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6144c2b339b4Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6145c2b339b4Smrgif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6146c2b339b4Smrg  as_echo='printf %s\n'
6147c2b339b4Smrg  as_echo_n='printf %s'
6148c2b339b4Smrgelse
6149c2b339b4Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6150c2b339b4Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6151c2b339b4Smrg    as_echo_n='/usr/ucb/echo -n'
6152e9554658Smrg  else
6153c2b339b4Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6154c2b339b4Smrg    as_echo_n_body='eval
6155c2b339b4Smrg      arg=$1;
6156c2b339b4Smrg      case $arg in
6157c2b339b4Smrg      *"$as_nl"*)
6158c2b339b4Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
6159c2b339b4Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6160c2b339b4Smrg      esac;
6161c2b339b4Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6162c2b339b4Smrg    '
6163c2b339b4Smrg    export as_echo_n_body
6164c2b339b4Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
6165e9554658Smrg  fi
6166c2b339b4Smrg  export as_echo_body
6167c2b339b4Smrg  as_echo='sh -c $as_echo_body as_echo'
6168c2b339b4Smrgfi
6169c2b339b4Smrg
6170c2b339b4Smrg# The user is always right.
6171c2b339b4Smrgif test "${PATH_SEPARATOR+set}" != set; then
6172c2b339b4Smrg  PATH_SEPARATOR=:
6173c2b339b4Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6174c2b339b4Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6175c2b339b4Smrg      PATH_SEPARATOR=';'
6176c2b339b4Smrg  }
6177e9554658Smrgfi
6178e9554658Smrg
6179e9554658Smrg# Support unset when possible.
6180e9554658Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6181e9554658Smrg  as_unset=unset
6182e9554658Smrgelse
6183e9554658Smrg  as_unset=false
6184e9554658Smrgfi
6185e9554658Smrg
6186e9554658Smrg
6187e9554658Smrg# IFS
6188e9554658Smrg# We need space, tab and new line, in precisely that order.  Quoting is
6189e9554658Smrg# there to prevent editors from complaining about space-tab.
6190e9554658Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6191e9554658Smrg# splitting by setting IFS to empty value.)
6192e9554658SmrgIFS=" ""	$as_nl"
6193e9554658Smrg
6194e9554658Smrg# Find who we are.  Look in the path if we contain no directory separator.
6195e9554658Smrgcase $0 in
6196e9554658Smrg  *[\\/]* ) as_myself=$0 ;;
6197e9554658Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198e9554658Smrgfor as_dir in $PATH
6199e9554658Smrgdo
6200e9554658Smrg  IFS=$as_save_IFS
6201e9554658Smrg  test -z "$as_dir" && as_dir=.
6202e9554658Smrg  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6203e9554658Smrgdone
6204e9554658SmrgIFS=$as_save_IFS
6205e9554658Smrg
6206e9554658Smrg     ;;
6207e9554658Smrgesac
6208e9554658Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
6209e9554658Smrg# in which case we are not to be found in the path.
6210e9554658Smrgif test "x$as_myself" = x; then
6211e9554658Smrg  as_myself=$0
6212e9554658Smrgfi
6213e9554658Smrgif test ! -f "$as_myself"; then
6214c2b339b4Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6215e9554658Smrg  { (exit 1); exit 1; }
6216e9554658Smrgfi
6217e9554658Smrg
6218e9554658Smrg# Work around bugs in pre-3.0 UWIN ksh.
6219e9554658Smrgfor as_var in ENV MAIL MAILPATH
6220e9554658Smrgdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6221e9554658Smrgdone
6222e9554658SmrgPS1='$ '
6223e9554658SmrgPS2='> '
6224e9554658SmrgPS4='+ '
6225e9554658Smrg
6226e9554658Smrg# NLS nuisances.
6227c2b339b4SmrgLC_ALL=C
6228c2b339b4Smrgexport LC_ALL
6229c2b339b4SmrgLANGUAGE=C
6230c2b339b4Smrgexport LANGUAGE
6231e9554658Smrg
6232e9554658Smrg# Required to use basename.
6233e9554658Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
6234e9554658Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
6235e9554658Smrg  as_expr=expr
6236e9554658Smrgelse
6237e9554658Smrg  as_expr=false
6238e9554658Smrgfi
6239e9554658Smrg
6240e9554658Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6241e9554658Smrg  as_basename=basename
6242e9554658Smrgelse
6243e9554658Smrg  as_basename=false
6244e9554658Smrgfi
6245e9554658Smrg
6246e9554658Smrg
6247e9554658Smrg# Name of the executable.
6248e9554658Smrgas_me=`$as_basename -- "$0" ||
6249e9554658Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6250e9554658Smrg	 X"$0" : 'X\(//\)$' \| \
6251e9554658Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6252c2b339b4Smrg$as_echo X/"$0" |
6253e9554658Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
6254e9554658Smrg	    s//\1/
6255e9554658Smrg	    q
6256e9554658Smrg	  }
6257e9554658Smrg	  /^X\/\(\/\/\)$/{
6258e9554658Smrg	    s//\1/
6259e9554658Smrg	    q
6260e9554658Smrg	  }
6261e9554658Smrg	  /^X\/\(\/\).*/{
6262e9554658Smrg	    s//\1/
6263e9554658Smrg	    q
6264e9554658Smrg	  }
6265e9554658Smrg	  s/.*/./; q'`
6266e9554658Smrg
6267e9554658Smrg# CDPATH.
6268e9554658Smrg$as_unset CDPATH
6269e9554658Smrg
6270e9554658Smrg
6271e9554658Smrg
6272e9554658Smrg  as_lineno_1=$LINENO
6273e9554658Smrg  as_lineno_2=$LINENO
6274e9554658Smrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
6275e9554658Smrg  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6276e9554658Smrg
6277e9554658Smrg  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6278e9554658Smrg  # uniformly replaced by the line number.  The first 'sed' inserts a
6279e9554658Smrg  # line-number line after each line using $LINENO; the second 'sed'
6280e9554658Smrg  # does the real work.  The second script uses 'N' to pair each
6281e9554658Smrg  # line-number line with the line containing $LINENO, and appends
6282e9554658Smrg  # trailing '-' during substitution so that $LINENO is not a special
6283e9554658Smrg  # case at line end.
6284e9554658Smrg  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6285e9554658Smrg  # scripts with optimization help from Paolo Bonzini.  Blame Lee
6286e9554658Smrg  # E. McMahon (1931-1989) for sed's syntax.  :-)
6287e9554658Smrg  sed -n '
6288e9554658Smrg    p
6289e9554658Smrg    /[$]LINENO/=
6290e9554658Smrg  ' <$as_myself |
6291e9554658Smrg    sed '
6292e9554658Smrg      s/[$]LINENO.*/&-/
6293e9554658Smrg      t lineno
6294e9554658Smrg      b
6295e9554658Smrg      :lineno
6296e9554658Smrg      N
6297e9554658Smrg      :loop
6298e9554658Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6299e9554658Smrg      t loop
6300e9554658Smrg      s/-\n.*//
6301e9554658Smrg    ' >$as_me.lineno &&
6302e9554658Smrg  chmod +x "$as_me.lineno" ||
6303c2b339b4Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6304e9554658Smrg   { (exit 1); exit 1; }; }
6305e9554658Smrg
6306e9554658Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
6307e9554658Smrg  # (the dirname of $[0] is not the place where we might find the
6308e9554658Smrg  # original and so on.  Autoconf is especially sensitive to this).
6309e9554658Smrg  . "./$as_me.lineno"
6310e9554658Smrg  # Exit status is that of the last command.
6311e9554658Smrg  exit
6312e9554658Smrg}
6313e9554658Smrg
6314e9554658Smrg
6315e9554658Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6316e9554658Smrg  as_dirname=dirname
6317e9554658Smrgelse
6318e9554658Smrg  as_dirname=false
6319e9554658Smrgfi
6320e9554658Smrg
6321e9554658SmrgECHO_C= ECHO_N= ECHO_T=
6322e9554658Smrgcase `echo -n x` in
6323e9554658Smrg-n*)
6324e9554658Smrg  case `echo 'x\c'` in
6325e9554658Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
6326e9554658Smrg  *)   ECHO_C='\c';;
6327e9554658Smrg  esac;;
6328e9554658Smrg*)
6329e9554658Smrg  ECHO_N='-n';;
6330e9554658Smrgesac
6331e9554658Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
6332e9554658Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
6333e9554658Smrg  as_expr=expr
6334e9554658Smrgelse
6335e9554658Smrg  as_expr=false
6336e9554658Smrgfi
6337e9554658Smrg
6338e9554658Smrgrm -f conf$$ conf$$.exe conf$$.file
6339e9554658Smrgif test -d conf$$.dir; then
6340e9554658Smrg  rm -f conf$$.dir/conf$$.file
6341e9554658Smrgelse
6342e9554658Smrg  rm -f conf$$.dir
6343c2b339b4Smrg  mkdir conf$$.dir 2>/dev/null
6344c2b339b4Smrgfi
6345c2b339b4Smrgif (echo >conf$$.file) 2>/dev/null; then
6346c2b339b4Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
6347c2b339b4Smrg    as_ln_s='ln -s'
6348c2b339b4Smrg    # ... but there are two gotchas:
6349c2b339b4Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6350c2b339b4Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6351c2b339b4Smrg    # In both cases, we have to default to `cp -p'.
6352c2b339b4Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6353c2b339b4Smrg      as_ln_s='cp -p'
6354c2b339b4Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
6355c2b339b4Smrg    as_ln_s=ln
6356c2b339b4Smrg  else
6357e9554658Smrg    as_ln_s='cp -p'
6358c2b339b4Smrg  fi
6359e9554658Smrgelse
6360e9554658Smrg  as_ln_s='cp -p'
6361e9554658Smrgfi
6362e9554658Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6363e9554658Smrgrmdir conf$$.dir 2>/dev/null
6364e9554658Smrg
6365e9554658Smrgif mkdir -p . 2>/dev/null; then
6366e9554658Smrg  as_mkdir_p=:
6367e9554658Smrgelse
6368e9554658Smrg  test -d ./-p && rmdir ./-p
6369e9554658Smrg  as_mkdir_p=false
6370e9554658Smrgfi
6371e9554658Smrg
6372e9554658Smrgif test -x / >/dev/null 2>&1; then
6373e9554658Smrg  as_test_x='test -x'
6374e9554658Smrgelse
6375e9554658Smrg  if ls -dL / >/dev/null 2>&1; then
6376e9554658Smrg    as_ls_L_option=L
6377e9554658Smrg  else
6378e9554658Smrg    as_ls_L_option=
6379e9554658Smrg  fi
6380e9554658Smrg  as_test_x='
6381e9554658Smrg    eval sh -c '\''
6382e9554658Smrg      if test -d "$1"; then
6383c2b339b4Smrg	test -d "$1/.";
6384e9554658Smrg      else
6385e9554658Smrg	case $1 in
6386c2b339b4Smrg	-*)set "./$1";;
6387e9554658Smrg	esac;
6388e9554658Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
6389e9554658Smrg	???[sx]*):;;*)false;;esac;fi
6390e9554658Smrg    '\'' sh
6391e9554658Smrg  '
6392e9554658Smrgfi
6393e9554658Smrgas_executable_p=$as_test_x
6394e9554658Smrg
6395e9554658Smrg# Sed expression to map a string onto a valid CPP name.
6396e9554658Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6397e9554658Smrg
6398e9554658Smrg# Sed expression to map a string onto a valid variable name.
6399e9554658Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6400e9554658Smrg
6401e9554658Smrg
6402e9554658Smrgexec 6>&1
6403e9554658Smrg
6404e9554658Smrg# Save the log message, to keep $[0] and so on meaningful, and to
6405e9554658Smrg# report actual input values of CONFIG_FILES etc. instead of their
6406e9554658Smrg# values after options handling.
6407e9554658Smrgac_log="
6408c2b339b4SmrgThis file was extended by xclock $as_me 1.0.4, which was
6409c2b339b4Smrggenerated by GNU Autoconf 2.63.  Invocation command line was
6410e9554658Smrg
6411e9554658Smrg  CONFIG_FILES    = $CONFIG_FILES
6412e9554658Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
6413e9554658Smrg  CONFIG_LINKS    = $CONFIG_LINKS
6414e9554658Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
6415e9554658Smrg  $ $0 $@
6416e9554658Smrg
6417e9554658Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
6418e9554658Smrg"
6419e9554658Smrg
6420e9554658Smrg_ACEOF
6421e9554658Smrg
6422c2b339b4Smrgcase $ac_config_files in *"
6423c2b339b4Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
6424c2b339b4Smrgesac
6425c2b339b4Smrg
6426c2b339b4Smrgcase $ac_config_headers in *"
6427c2b339b4Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6428c2b339b4Smrgesac
6429c2b339b4Smrg
6430c2b339b4Smrg
6431c2b339b4Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6432e9554658Smrg# Files that config.status was made for.
6433e9554658Smrgconfig_files="$ac_config_files"
6434e9554658Smrgconfig_headers="$ac_config_headers"
6435e9554658Smrgconfig_commands="$ac_config_commands"
6436e9554658Smrg
6437e9554658Smrg_ACEOF
6438e9554658Smrg
6439c2b339b4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6440e9554658Smrgac_cs_usage="\
6441e9554658Smrg\`$as_me' instantiates files from templates according to the
6442e9554658Smrgcurrent configuration.
6443e9554658Smrg
6444c2b339b4SmrgUsage: $0 [OPTION]... [FILE]...
6445e9554658Smrg
6446e9554658Smrg  -h, --help       print this help, then exit
6447e9554658Smrg  -V, --version    print version number and configuration settings, then exit
6448c2b339b4Smrg  -q, --quiet, --silent
6449c2b339b4Smrg                   do not print progress messages
6450e9554658Smrg  -d, --debug      don't remove temporary files
6451e9554658Smrg      --recheck    update $as_me by reconfiguring in the same conditions
6452c2b339b4Smrg      --file=FILE[:TEMPLATE]
6453c2b339b4Smrg                   instantiate the configuration file FILE
6454c2b339b4Smrg      --header=FILE[:TEMPLATE]
6455c2b339b4Smrg                   instantiate the configuration header FILE
6456e9554658Smrg
6457e9554658SmrgConfiguration files:
6458e9554658Smrg$config_files
6459e9554658Smrg
6460e9554658SmrgConfiguration headers:
6461e9554658Smrg$config_headers
6462e9554658Smrg
6463e9554658SmrgConfiguration commands:
6464e9554658Smrg$config_commands
6465e9554658Smrg
6466e9554658SmrgReport bugs to <bug-autoconf@gnu.org>."
6467e9554658Smrg
6468e9554658Smrg_ACEOF
6469c2b339b4Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6470e9554658Smrgac_cs_version="\\
6471c2b339b4Smrgxclock config.status 1.0.4
6472c2b339b4Smrgconfigured by $0, generated by GNU Autoconf 2.63,
6473c2b339b4Smrg  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6474e9554658Smrg
6475c2b339b4SmrgCopyright (C) 2008 Free Software Foundation, Inc.
6476e9554658SmrgThis config.status script is free software; the Free Software Foundation
6477e9554658Smrggives unlimited permission to copy, distribute and modify it."
6478e9554658Smrg
6479e9554658Smrgac_pwd='$ac_pwd'
6480e9554658Smrgsrcdir='$srcdir'
6481e9554658SmrgINSTALL='$INSTALL'
6482e9554658SmrgMKDIR_P='$MKDIR_P'
6483c2b339b4SmrgAWK='$AWK'
6484c2b339b4Smrgtest -n "\$AWK" || AWK=awk
6485e9554658Smrg_ACEOF
6486e9554658Smrg
6487c2b339b4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6488c2b339b4Smrg# The default lists apply if the user does not specify any file.
6489e9554658Smrgac_need_defaults=:
6490e9554658Smrgwhile test $# != 0
6491e9554658Smrgdo
6492e9554658Smrg  case $1 in
6493e9554658Smrg  --*=*)
6494e9554658Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
6495e9554658Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6496e9554658Smrg    ac_shift=:
6497e9554658Smrg    ;;
6498e9554658Smrg  *)
6499e9554658Smrg    ac_option=$1
6500e9554658Smrg    ac_optarg=$2
6501e9554658Smrg    ac_shift=shift
6502e9554658Smrg    ;;
6503e9554658Smrg  esac
6504e9554658Smrg
6505e9554658Smrg  case $ac_option in
6506e9554658Smrg  # Handling of the options.
6507e9554658Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6508e9554658Smrg    ac_cs_recheck=: ;;
6509e9554658Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6510c2b339b4Smrg    $as_echo "$ac_cs_version"; exit ;;
6511e9554658Smrg  --debug | --debu | --deb | --de | --d | -d )
6512e9554658Smrg    debug=: ;;
6513e9554658Smrg  --file | --fil | --fi | --f )
6514e9554658Smrg    $ac_shift
6515c2b339b4Smrg    case $ac_optarg in
6516c2b339b4Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6517c2b339b4Smrg    esac
6518c2b339b4Smrg    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
6519e9554658Smrg    ac_need_defaults=false;;
6520e9554658Smrg  --header | --heade | --head | --hea )
6521e9554658Smrg    $ac_shift
6522c2b339b4Smrg    case $ac_optarg in
6523c2b339b4Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6524c2b339b4Smrg    esac
6525c2b339b4Smrg    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
6526e9554658Smrg    ac_need_defaults=false;;
6527e9554658Smrg  --he | --h)
6528e9554658Smrg    # Conflict between --help and --header
6529c2b339b4Smrg    { $as_echo "$as_me: error: ambiguous option: $1
6530e9554658SmrgTry \`$0 --help' for more information." >&2
6531e9554658Smrg   { (exit 1); exit 1; }; };;
6532e9554658Smrg  --help | --hel | -h )
6533c2b339b4Smrg    $as_echo "$ac_cs_usage"; exit ;;
6534e9554658Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6535e9554658Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
6536e9554658Smrg    ac_cs_silent=: ;;
6537e9554658Smrg
6538e9554658Smrg  # This is an error.
6539c2b339b4Smrg  -*) { $as_echo "$as_me: error: unrecognized option: $1
6540e9554658SmrgTry \`$0 --help' for more information." >&2
6541e9554658Smrg   { (exit 1); exit 1; }; } ;;
6542e9554658Smrg
6543e9554658Smrg  *) ac_config_targets="$ac_config_targets $1"
6544e9554658Smrg     ac_need_defaults=false ;;
6545e9554658Smrg
6546e9554658Smrg  esac
6547e9554658Smrg  shift
6548e9554658Smrgdone
6549e9554658Smrg
6550e9554658Smrgac_configure_extra_args=
6551e9554658Smrg
6552e9554658Smrgif $ac_cs_silent; then
6553e9554658Smrg  exec 6>/dev/null
6554e9554658Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
6555e9554658Smrgfi
6556e9554658Smrg
6557e9554658Smrg_ACEOF
6558c2b339b4Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6559e9554658Smrgif \$ac_cs_recheck; then
6560c2b339b4Smrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6561c2b339b4Smrg  shift
6562c2b339b4Smrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6563c2b339b4Smrg  CONFIG_SHELL='$SHELL'
6564e9554658Smrg  export CONFIG_SHELL
6565c2b339b4Smrg  exec "\$@"
6566e9554658Smrgfi
6567e9554658Smrg
6568e9554658Smrg_ACEOF
6569c2b339b4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6570e9554658Smrgexec 5>>config.log
6571e9554658Smrg{
6572e9554658Smrg  echo
6573e9554658Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6574e9554658Smrg## Running $as_me. ##
6575e9554658Smrg_ASBOX
6576c2b339b4Smrg  $as_echo "$ac_log"
6577e9554658Smrg} >&5
6578e9554658Smrg
6579e9554658Smrg_ACEOF
6580c2b339b4Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6581e9554658Smrg#
6582e9554658Smrg# INIT-COMMANDS
6583e9554658Smrg#
6584e9554658SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6585e9554658Smrg
6586e9554658Smrg_ACEOF
6587e9554658Smrg
6588c2b339b4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6589e9554658Smrg
6590e9554658Smrg# Handling of arguments.
6591e9554658Smrgfor ac_config_target in $ac_config_targets
6592e9554658Smrgdo
6593e9554658Smrg  case $ac_config_target in
6594e9554658Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6595e9554658Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6596e9554658Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6597e9554658Smrg
6598c2b339b4Smrg  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6599c2b339b4Smrg$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6600e9554658Smrg   { (exit 1); exit 1; }; };;
6601e9554658Smrg  esac
6602e9554658Smrgdone
6603e9554658Smrg
6604e9554658Smrg
6605e9554658Smrg# If the user did not use the arguments to specify the items to instantiate,
6606e9554658Smrg# then the envvar interface is used.  Set only those that are not.
6607e9554658Smrg# We use the long form for the default assignment because of an extremely
6608e9554658Smrg# bizarre bug on SunOS 4.1.3.
6609e9554658Smrgif $ac_need_defaults; then
6610e9554658Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6611e9554658Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6612e9554658Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6613e9554658Smrgfi
6614e9554658Smrg
6615e9554658Smrg# Have a temporary directory for convenience.  Make it in the build tree
6616e9554658Smrg# simply because there is no reason against having it here, and in addition,
6617e9554658Smrg# creating and moving files from /tmp can sometimes cause problems.
6618e9554658Smrg# Hook for its removal unless debugging.
6619e9554658Smrg# Note that there is a small window in which the directory will not be cleaned:
6620e9554658Smrg# after its creation but before its name has been assigned to `$tmp'.
6621e9554658Smrg$debug ||
6622e9554658Smrg{
6623e9554658Smrg  tmp=
6624e9554658Smrg  trap 'exit_status=$?
6625e9554658Smrg  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6626e9554658Smrg' 0
6627e9554658Smrg  trap '{ (exit 1); exit 1; }' 1 2 13 15
6628e9554658Smrg}
6629e9554658Smrg# Create a (secure) tmp directory for tmp files.
6630e9554658Smrg
6631e9554658Smrg{
6632e9554658Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6633e9554658Smrg  test -n "$tmp" && test -d "$tmp"
6634e9554658Smrg}  ||
6635e9554658Smrg{
6636e9554658Smrg  tmp=./conf$$-$RANDOM
6637e9554658Smrg  (umask 077 && mkdir "$tmp")
6638e9554658Smrg} ||
6639e9554658Smrg{
6640c2b339b4Smrg   $as_echo "$as_me: cannot create a temporary directory in ." >&2
6641e9554658Smrg   { (exit 1); exit 1; }
6642e9554658Smrg}
6643e9554658Smrg
6644c2b339b4Smrg# Set up the scripts for CONFIG_FILES section.
6645c2b339b4Smrg# No need to generate them if there are no CONFIG_FILES.
6646c2b339b4Smrg# This happens for instance with `./config.status config.h'.
6647e9554658Smrgif test -n "$CONFIG_FILES"; then
6648e9554658Smrg
6649e9554658Smrg
6650c2b339b4Smrgac_cr='
6651c2b339b4Smrg'
6652c2b339b4Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6653c2b339b4Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6654c2b339b4Smrg  ac_cs_awk_cr='\\r'
6655c2b339b4Smrgelse
6656e9554658Smrg  ac_cs_awk_cr=$ac_cr
6657e9554658Smrgfi
6658c2b339b4Smrg
6659e9554658Smrgecho 'BEGIN {' >"$tmp/subs1.awk" &&
6660e9554658Smrg_ACEOF
6661e9554658Smrg
6662c2b339b4Smrg
6663c2b339b4Smrg{
6664c2b339b4Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
6665c2b339b4Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6666c2b339b4Smrg  echo "_ACEOF"
6667c2b339b4Smrg} >conf$$subs.sh ||
6668c2b339b4Smrg  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6669c2b339b4Smrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6670c2b339b4Smrg   { (exit 1); exit 1; }; }
6671e9554658Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6672e9554658Smrgac_delim='%!_!# '
6673c2b339b4Smrgfor ac_last_try in false false false false false :; do
6674c2b339b4Smrg  . ./conf$$subs.sh ||
6675c2b339b4Smrg    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6676c2b339b4Smrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6677e9554658Smrg   { (exit 1); exit 1; }; }
6678c2b339b4Smrg
6679c2b339b4Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6680e9554658Smrg  if test $ac_delim_n = $ac_delim_num; then
6681e9554658Smrg    break
6682c2b339b4Smrg  elif $ac_last_try; then
6683c2b339b4Smrg    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6684e9554658Smrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6685e9554658Smrg   { (exit 1); exit 1; }; }
6686e9554658Smrg  else
6687e9554658Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6688e9554658Smrg  fi
6689c2b339b4Smrgdone
6690e9554658Smrgrm -f conf$$subs.sh
6691c2b339b4Smrg
6692c2b339b4Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6693c2b339b4Smrgcat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6694c2b339b4Smrg_ACEOF
6695c2b339b4Smrgsed -n '
6696c2b339b4Smrgh
6697c2b339b4Smrgs/^/S["/; s/!.*/"]=/
6698c2b339b4Smrgp
6699c2b339b4Smrgg
6700c2b339b4Smrgs/^[^!]*!//
6701c2b339b4Smrg:repl
6702c2b339b4Smrgt repl
6703c2b339b4Smrgs/'"$ac_delim"'$//
6704c2b339b4Smrgt delim
6705c2b339b4Smrg:nl
6706c2b339b4Smrgh
6707c2b339b4Smrgs/\(.\{148\}\).*/\1/
6708c2b339b4Smrgt more1
6709c2b339b4Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6710c2b339b4Smrgp
6711c2b339b4Smrgn
6712c2b339b4Smrgb repl
6713c2b339b4Smrg:more1
6714c2b339b4Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
6715c2b339b4Smrgp
6716c2b339b4Smrgg
6717c2b339b4Smrgs/.\{148\}//
6718c2b339b4Smrgt nl
6719c2b339b4Smrg:delim
6720c2b339b4Smrgh
6721c2b339b4Smrgs/\(.\{148\}\).*/\1/
6722c2b339b4Smrgt more2
6723c2b339b4Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
6724c2b339b4Smrgp
6725c2b339b4Smrgb
6726c2b339b4Smrg:more2
6727c2b339b4Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
6728c2b339b4Smrgp
6729c2b339b4Smrgg
6730c2b339b4Smrgs/.\{148\}//
6731c2b339b4Smrgt delim
6732c2b339b4Smrg' <conf$$subs.awk | sed '
6733c2b339b4Smrg/^[^""]/{
6734c2b339b4Smrg  N
6735c2b339b4Smrg  s/\n//
6736c2b339b4Smrg}
6737c2b339b4Smrg' >>$CONFIG_STATUS || ac_write_fail=1
6738c2b339b4Smrgrm -f conf$$subs.awk
6739c2b339b4Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6740c2b339b4Smrg_ACAWK
6741c2b339b4Smrgcat >>"\$tmp/subs1.awk" <<_ACAWK &&
6742c2b339b4Smrg  for (key in S) S_is_set[key] = 1
6743c2b339b4Smrg  FS = ""
6744c2b339b4Smrg
6745c2b339b4Smrg}
6746c2b339b4Smrg{
6747c2b339b4Smrg  line = $ 0
6748c2b339b4Smrg  nfields = split(line, field, "@")
6749c2b339b4Smrg  substed = 0
6750c2b339b4Smrg  len = length(field[1])
6751c2b339b4Smrg  for (i = 2; i < nfields; i++) {
6752c2b339b4Smrg    key = field[i]
6753c2b339b4Smrg    keylen = length(key)
6754c2b339b4Smrg    if (S_is_set[key]) {
6755c2b339b4Smrg      value = S[key]
6756c2b339b4Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6757c2b339b4Smrg      len += length(value) + length(field[++i])
6758c2b339b4Smrg      substed = 1
6759c2b339b4Smrg    } else
6760c2b339b4Smrg      len += 1 + keylen
6761c2b339b4Smrg  }
6762c2b339b4Smrg
6763c2b339b4Smrg  print line
6764e9554658Smrg}
6765c2b339b4Smrg
6766e9554658Smrg_ACAWK
6767c2b339b4Smrg_ACEOF
6768c2b339b4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6769c2b339b4Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6770c2b339b4Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6771c2b339b4Smrgelse
6772c2b339b4Smrg  cat
6773c2b339b4Smrgfi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6774c2b339b4Smrg  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
6775c2b339b4Smrg$as_echo "$as_me: error: could not setup config files machinery" >&2;}
6776e9554658Smrg   { (exit 1); exit 1; }; }
6777e9554658Smrg_ACEOF
6778e9554658Smrg
6779e9554658Smrg# VPATH may cause trouble with some makes, so we remove $(srcdir),
6780e9554658Smrg# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6781e9554658Smrg# trailing colons and then remove the whole line if VPATH becomes empty
6782e9554658Smrg# (actually we leave an empty line to preserve line numbers).
6783e9554658Smrgif test "x$srcdir" = x.; then
6784e9554658Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
6785e9554658Smrgs/:*\$(srcdir):*/:/
6786e9554658Smrgs/:*\${srcdir}:*/:/
6787e9554658Smrgs/:*@srcdir@:*/:/
6788e9554658Smrgs/^\([^=]*=[	 ]*\):*/\1/
6789e9554658Smrgs/:*$//
6790e9554658Smrgs/^[^=]*=[	 ]*$//
6791e9554658Smrg}'
6792e9554658Smrgfi
6793c2b339b4Smrg
6794e9554658Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6795e9554658Smrgfi # test -n "$CONFIG_FILES"
6796c2b339b4Smrg
6797c2b339b4Smrg# Set up the scripts for CONFIG_HEADERS section.
6798c2b339b4Smrg# No need to generate them if there are no CONFIG_HEADERS.
6799c2b339b4Smrg# This happens for instance with `./config.status Makefile'.
6800c2b339b4Smrgif test -n "$CONFIG_HEADERS"; then
6801c2b339b4Smrgcat >"$tmp/defines.awk" <<\_ACAWK ||
6802c2b339b4SmrgBEGIN {
6803c2b339b4Smrg_ACEOF
6804c2b339b4Smrg
6805c2b339b4Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
6806c2b339b4Smrg# here-document in config.status, that substitutes the proper values into
6807c2b339b4Smrg# config.h.in to produce config.h.
6808c2b339b4Smrg
6809c2b339b4Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
6810c2b339b4Smrg# handling of long lines.
6811c2b339b4Smrgac_delim='%!_!# '
6812c2b339b4Smrgfor ac_last_try in false false :; do
6813c2b339b4Smrg  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6814c2b339b4Smrg  if test -z "$ac_t"; then
6815c2b339b4Smrg    break
6816c2b339b4Smrg  elif $ac_last_try; then
6817c2b339b4Smrg    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
6818c2b339b4Smrg$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
6819c2b339b4Smrg   { (exit 1); exit 1; }; }
6820c2b339b4Smrg  else
6821c2b339b4Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6822c2b339b4Smrg  fi
6823c2b339b4Smrgdone
6824c2b339b4Smrg
6825c2b339b4Smrg# For the awk script, D is an array of macro values keyed by name,
6826c2b339b4Smrg# likewise P contains macro parameters if any.  Preserve backslash
6827c2b339b4Smrg# newline sequences.
6828c2b339b4Smrg
6829c2b339b4Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6830c2b339b4Smrgsed -n '
6831c2b339b4Smrgs/.\{148\}/&'"$ac_delim"'/g
6832c2b339b4Smrgt rset
6833c2b339b4Smrg:rset
6834c2b339b4Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
6835c2b339b4Smrgt def
6836c2b339b4Smrgd
6837c2b339b4Smrg:def
6838c2b339b4Smrgs/\\$//
6839c2b339b4Smrgt bsnl
6840c2b339b4Smrgs/["\\]/\\&/g
6841c2b339b4Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6842c2b339b4SmrgD["\1"]=" \3"/p
6843c2b339b4Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
6844c2b339b4Smrgd
6845c2b339b4Smrg:bsnl
6846c2b339b4Smrgs/["\\]/\\&/g
6847c2b339b4Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6848c2b339b4SmrgD["\1"]=" \3\\\\\\n"\\/p
6849c2b339b4Smrgt cont
6850c2b339b4Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6851c2b339b4Smrgt cont
6852c2b339b4Smrgd
6853c2b339b4Smrg:cont
6854c2b339b4Smrgn
6855c2b339b4Smrgs/.\{148\}/&'"$ac_delim"'/g
6856c2b339b4Smrgt clear
6857c2b339b4Smrg:clear
6858c2b339b4Smrgs/\\$//
6859c2b339b4Smrgt bsnlc
6860c2b339b4Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
6861c2b339b4Smrgd
6862c2b339b4Smrg:bsnlc
6863c2b339b4Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6864c2b339b4Smrgb cont
6865c2b339b4Smrg' <confdefs.h | sed '
6866c2b339b4Smrgs/'"$ac_delim"'/"\\\
6867c2b339b4Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
6868c2b339b4Smrg
6869c2b339b4Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6870c2b339b4Smrg  for (key in D) D_is_set[key] = 1
6871c2b339b4Smrg  FS = ""
6872c2b339b4Smrg}
6873c2b339b4Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6874c2b339b4Smrg  line = \$ 0
6875c2b339b4Smrg  split(line, arg, " ")
6876c2b339b4Smrg  if (arg[1] == "#") {
6877c2b339b4Smrg    defundef = arg[2]
6878c2b339b4Smrg    mac1 = arg[3]
6879c2b339b4Smrg  } else {
6880c2b339b4Smrg    defundef = substr(arg[1], 2)
6881c2b339b4Smrg    mac1 = arg[2]
6882c2b339b4Smrg  }
6883c2b339b4Smrg  split(mac1, mac2, "(") #)
6884c2b339b4Smrg  macro = mac2[1]
6885c2b339b4Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
6886c2b339b4Smrg  if (D_is_set[macro]) {
6887c2b339b4Smrg    # Preserve the white space surrounding the "#".
6888c2b339b4Smrg    print prefix "define", macro P[macro] D[macro]
6889c2b339b4Smrg    next
6890c2b339b4Smrg  } else {
6891c2b339b4Smrg    # Replace #undef with comments.  This is necessary, for example,
6892c2b339b4Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
6893c2b339b4Smrg    # on some systems where configure will not decide to define it.
6894c2b339b4Smrg    if (defundef == "undef") {
6895c2b339b4Smrg      print "/*", prefix defundef, macro, "*/"
6896c2b339b4Smrg      next
6897c2b339b4Smrg    }
6898c2b339b4Smrg  }
6899c2b339b4Smrg}
6900c2b339b4Smrg{ print }
6901c2b339b4Smrg_ACAWK
6902c2b339b4Smrg_ACEOF
6903c2b339b4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6904c2b339b4Smrg  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
6905c2b339b4Smrg$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
6906c2b339b4Smrg   { (exit 1); exit 1; }; }
6907c2b339b4Smrgfi # test -n "$CONFIG_HEADERS"
6908e9554658Smrg
6909c2b339b4Smrg
6910c2b339b4Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
6911c2b339b4Smrgshift
6912e9554658Smrgfor ac_tag
6913e9554658Smrgdo
6914e9554658Smrg  case $ac_tag in
6915e9554658Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
6916e9554658Smrg  esac
6917e9554658Smrg  case $ac_mode$ac_tag in
6918c2b339b4Smrg  :[FHL]*:*);;
6919c2b339b4Smrg  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
6920e9554658Smrg$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
6921e9554658Smrg   { (exit 1); exit 1; }; };;
6922e9554658Smrg  :[FH]-) ac_tag=-:-;;
6923e9554658Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6924e9554658Smrg  esac
6925e9554658Smrg  ac_save_IFS=$IFS
6926e9554658Smrg  IFS=:
6927e9554658Smrg  set x $ac_tag
6928e9554658Smrg  IFS=$ac_save_IFS
6929e9554658Smrg  shift
6930e9554658Smrg  ac_file=$1
6931e9554658Smrg  shift
6932e9554658Smrg
6933e9554658Smrg  case $ac_mode in
6934e9554658Smrg  :L) ac_source=$1;;
6935e9554658Smrg  :[FH])
6936e9554658Smrg    ac_file_inputs=
6937e9554658Smrg    for ac_f
6938e9554658Smrg    do
6939e9554658Smrg      case $ac_f in
6940e9554658Smrg      -) ac_f="$tmp/stdin";;
6941e9554658Smrg      *) # Look for the file first in the build tree, then in the source tree
6942e9554658Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
6943e9554658Smrg	 # because $ac_f cannot contain `:'.
6944e9554658Smrg	 test -f "$ac_f" ||
6945e9554658Smrg	   case $ac_f in
6946e9554658Smrg	   [\\/$]*) false;;
6947e9554658Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6948c2b339b4Smrg	   esac ||
6949c2b339b4Smrg	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6950e9554658Smrg$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6951e9554658Smrg   { (exit 1); exit 1; }; };;
6952c2b339b4Smrg      esac
6953c2b339b4Smrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6954e9554658Smrg      ac_file_inputs="$ac_file_inputs '$ac_f'"
6955e9554658Smrg    done
6956e9554658Smrg
6957e9554658Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
6958e9554658Smrg    # use $as_me), people would be surprised to read:
6959c2b339b4Smrg    #    /* config.h.  Generated by config.status.  */
6960c2b339b4Smrg    configure_input='Generated from '`
6961c2b339b4Smrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6962e9554658Smrg	`' by configure.'
6963e9554658Smrg    if test x"$ac_file" != x-; then
6964c2b339b4Smrg      configure_input="$ac_file.  $configure_input"
6965c2b339b4Smrg      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
6966e9554658Smrg$as_echo "$as_me: creating $ac_file" >&6;}
6967c2b339b4Smrg    fi
6968c2b339b4Smrg    # Neutralize special characters interpreted by sed in replacement strings.
6969c2b339b4Smrg    case $configure_input in #(
6970c2b339b4Smrg    *\&* | *\|* | *\\* )
6971c2b339b4Smrg       ac_sed_conf_input=`$as_echo "$configure_input" |
6972c2b339b4Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
6973c2b339b4Smrg    *) ac_sed_conf_input=$configure_input;;
6974e9554658Smrg    esac
6975e9554658Smrg
6976c2b339b4Smrg    case $ac_tag in
6977c2b339b4Smrg    *:-:* | *:-) cat >"$tmp/stdin" \
6978c2b339b4Smrg      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6979c2b339b4Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
6980e9554658Smrg   { (exit 1); exit 1; }; } ;;
6981e9554658Smrg    esac
6982e9554658Smrg    ;;
6983e9554658Smrg  esac
6984e9554658Smrg
6985e9554658Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
6986e9554658Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6987e9554658Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
6988e9554658Smrg	 X"$ac_file" : 'X\(//\)$' \| \
6989c2b339b4Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6990e9554658Smrg$as_echo X"$ac_file" |
6991e9554658Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6992e9554658Smrg	    s//\1/
6993e9554658Smrg	    q
6994e9554658Smrg	  }
6995e9554658Smrg	  /^X\(\/\/\)[^/].*/{
6996e9554658Smrg	    s//\1/
6997e9554658Smrg	    q
6998e9554658Smrg	  }
6999e9554658Smrg	  /^X\(\/\/\)$/{
7000e9554658Smrg	    s//\1/
7001e9554658Smrg	    q
7002e9554658Smrg	  }
7003e9554658Smrg	  /^X\(\/\).*/{
7004e9554658Smrg	    s//\1/
7005e9554658Smrg	    q
7006e9554658Smrg	  }
7007e9554658Smrg	  s/.*/./; q'`
7008e9554658Smrg  { as_dir="$ac_dir"
7009e9554658Smrg  case $as_dir in #(
7010e9554658Smrg  -*) as_dir=./$as_dir;;
7011e9554658Smrg  esac
7012e9554658Smrg  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7013e9554658Smrg    as_dirs=
7014e9554658Smrg    while :; do
7015c2b339b4Smrg      case $as_dir in #(
7016e9554658Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7017e9554658Smrg      *) as_qdir=$as_dir;;
7018e9554658Smrg      esac
7019e9554658Smrg      as_dirs="'$as_qdir' $as_dirs"
7020e9554658Smrg      as_dir=`$as_dirname -- "$as_dir" ||
7021e9554658Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7022e9554658Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
7023e9554658Smrg	 X"$as_dir" : 'X\(//\)$' \| \
7024c2b339b4Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7025e9554658Smrg$as_echo X"$as_dir" |
7026e9554658Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7027e9554658Smrg	    s//\1/
7028e9554658Smrg	    q
7029e9554658Smrg	  }
7030e9554658Smrg	  /^X\(\/\/\)[^/].*/{
7031e9554658Smrg	    s//\1/
7032e9554658Smrg	    q
7033e9554658Smrg	  }
7034e9554658Smrg	  /^X\(\/\/\)$/{
7035e9554658Smrg	    s//\1/
7036e9554658Smrg	    q
7037e9554658Smrg	  }
7038e9554658Smrg	  /^X\(\/\).*/{
7039e9554658Smrg	    s//\1/
7040e9554658Smrg	    q
7041e9554658Smrg	  }
7042e9554658Smrg	  s/.*/./; q'`
7043e9554658Smrg      test -d "$as_dir" && break
7044e9554658Smrg    done
7045c2b339b4Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
7046c2b339b4Smrg  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7047e9554658Smrg$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
7048e9554658Smrg   { (exit 1); exit 1; }; }; }
7049e9554658Smrg  ac_builddir=.
7050e9554658Smrg
7051e9554658Smrgcase "$ac_dir" in
7052e9554658Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7053c2b339b4Smrg*)
7054e9554658Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7055c2b339b4Smrg  # A ".." for each directory in $ac_dir_suffix.
7056e9554658Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7057e9554658Smrg  case $ac_top_builddir_sub in
7058e9554658Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7059e9554658Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7060e9554658Smrg  esac ;;
7061e9554658Smrgesac
7062e9554658Smrgac_abs_top_builddir=$ac_pwd
7063e9554658Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
7064e9554658Smrg# for backward compatibility:
7065e9554658Smrgac_top_builddir=$ac_top_build_prefix
7066e9554658Smrg
7067e9554658Smrgcase $srcdir in
7068e9554658Smrg  .)  # We are building in place.
7069e9554658Smrg    ac_srcdir=.
7070e9554658Smrg    ac_top_srcdir=$ac_top_builddir_sub
7071e9554658Smrg    ac_abs_top_srcdir=$ac_pwd ;;
7072e9554658Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
7073e9554658Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
7074e9554658Smrg    ac_top_srcdir=$srcdir
7075e9554658Smrg    ac_abs_top_srcdir=$srcdir ;;
7076e9554658Smrg  *) # Relative name.
7077e9554658Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7078e9554658Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
7079e9554658Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7080e9554658Smrgesac
7081e9554658Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7082e9554658Smrg
7083e9554658Smrg
7084e9554658Smrg  case $ac_mode in
7085e9554658Smrg  :F)
7086e9554658Smrg  #
7087e9554658Smrg  # CONFIG_FILE
7088e9554658Smrg  #
7089e9554658Smrg
7090e9554658Smrg  case $INSTALL in
7091e9554658Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7092e9554658Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7093e9554658Smrg  esac
7094e9554658Smrg  ac_MKDIR_P=$MKDIR_P
7095e9554658Smrg  case $MKDIR_P in
7096e9554658Smrg  [\\/$]* | ?:[\\/]* ) ;;
7097e9554658Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7098e9554658Smrg  esac
7099e9554658Smrg_ACEOF
7100c2b339b4Smrg
7101e9554658Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7102e9554658Smrg# If the template does not know about datarootdir, expand it.
7103e9554658Smrg# FIXME: This hack should be removed a few years after 2.60.
7104e9554658Smrgac_datarootdir_hack=; ac_datarootdir_seen=
7105c2b339b4Smrg
7106c2b339b4Smrgac_sed_dataroot='
7107e9554658Smrg/datarootdir/ {
7108e9554658Smrg  p
7109e9554658Smrg  q
7110e9554658Smrg}
7111e9554658Smrg/@datadir@/p
7112e9554658Smrg/@docdir@/p
7113e9554658Smrg/@infodir@/p
7114e9554658Smrg/@localedir@/p
7115c2b339b4Smrg/@mandir@/p
7116c2b339b4Smrg'
7117e9554658Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7118e9554658Smrg*datarootdir*) ac_datarootdir_seen=yes;;
7119c2b339b4Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7120c2b339b4Smrg  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7121e9554658Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7122c2b339b4Smrg_ACEOF
7123e9554658Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7124e9554658Smrg  ac_datarootdir_hack='
7125e9554658Smrg  s&@datadir@&$datadir&g
7126e9554658Smrg  s&@docdir@&$docdir&g
7127e9554658Smrg  s&@infodir@&$infodir&g
7128e9554658Smrg  s&@localedir@&$localedir&g
7129e9554658Smrg  s&@mandir@&$mandir&g
7130e9554658Smrg    s&\\\${datarootdir}&$datarootdir&g' ;;
7131e9554658Smrgesac
7132e9554658Smrg_ACEOF
7133e9554658Smrg
7134e9554658Smrg# Neutralize VPATH when `$srcdir' = `.'.
7135e9554658Smrg# Shell code in configure.ac might set extrasub.
7136c2b339b4Smrg# FIXME: do we really want to maintain this feature?
7137c2b339b4Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7138e9554658Smrgac_sed_extra="$ac_vpsub
7139e9554658Smrg$extrasub
7140c2b339b4Smrg_ACEOF
7141e9554658Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7142e9554658Smrg:t
7143c2b339b4Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7144e9554658Smrgs|@configure_input@|$ac_sed_conf_input|;t t
7145c2b339b4Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
7146e9554658Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
7147e9554658Smrgs&@srcdir@&$ac_srcdir&;t t
7148e9554658Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
7149e9554658Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
7150e9554658Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7151e9554658Smrgs&@builddir@&$ac_builddir&;t t
7152e9554658Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
7153e9554658Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7154e9554658Smrgs&@INSTALL@&$ac_INSTALL&;t t
7155e9554658Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
7156c2b339b4Smrg$ac_datarootdir_hack
7157c2b339b4Smrg"
7158c2b339b4Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7159c2b339b4Smrg  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7160c2b339b4Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
7161e9554658Smrg   { (exit 1); exit 1; }; }
7162e9554658Smrg
7163e9554658Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7164e9554658Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7165c2b339b4Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7166e9554658Smrg  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7167c2b339b4Smrgwhich seems to be undefined.  Please make sure it is defined." >&5
7168e9554658Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7169e9554658Smrgwhich seems to be undefined.  Please make sure it is defined." >&2;}
7170e9554658Smrg
7171e9554658Smrg  rm -f "$tmp/stdin"
7172c2b339b4Smrg  case $ac_file in
7173c2b339b4Smrg  -) cat "$tmp/out" && rm -f "$tmp/out";;
7174c2b339b4Smrg  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7175c2b339b4Smrg  esac \
7176c2b339b4Smrg  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7177c2b339b4Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
7178e9554658Smrg   { (exit 1); exit 1; }; }
7179e9554658Smrg ;;
7180e9554658Smrg  :H)
7181e9554658Smrg  #
7182e9554658Smrg  # CONFIG_HEADER
7183e9554658Smrg  #
7184c2b339b4Smrg  if test x"$ac_file" != x-; then
7185c2b339b4Smrg    {
7186c2b339b4Smrg      $as_echo "/* $configure_input  */" \
7187c2b339b4Smrg      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7188c2b339b4Smrg    } >"$tmp/config.h" \
7189c2b339b4Smrg      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7190c2b339b4Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
7191c2b339b4Smrg   { (exit 1); exit 1; }; }
7192c2b339b4Smrg    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7193c2b339b4Smrg      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7194e9554658Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
7195c2b339b4Smrg    else
7196c2b339b4Smrg      rm -f "$ac_file"
7197c2b339b4Smrg      mv "$tmp/config.h" "$ac_file" \
7198c2b339b4Smrg	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7199c2b339b4Smrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
7200e9554658Smrg   { (exit 1); exit 1; }; }
7201e9554658Smrg    fi
7202c2b339b4Smrg  else
7203c2b339b4Smrg    $as_echo "/* $configure_input  */" \
7204c2b339b4Smrg      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7205c2b339b4Smrg      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
7206c2b339b4Smrg$as_echo "$as_me: error: could not create -" >&2;}
7207e9554658Smrg   { (exit 1); exit 1; }; }
7208c2b339b4Smrg  fi
7209c2b339b4Smrg# Compute "$ac_file"'s index in $config_headers.
7210e9554658Smrg_am_arg="$ac_file"
7211e9554658Smrg_am_stamp_count=1
7212e9554658Smrgfor _am_header in $config_headers :; do
7213c2b339b4Smrg  case $_am_header in
7214e9554658Smrg    $_am_arg | $_am_arg:* )
7215e9554658Smrg      break ;;
7216e9554658Smrg    * )
7217e9554658Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7218e9554658Smrg  esac
7219c2b339b4Smrgdone
7220c2b339b4Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7221c2b339b4Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7222c2b339b4Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
7223c2b339b4Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
7224c2b339b4Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7225e9554658Smrg$as_echo X"$_am_arg" |
7226e9554658Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7227e9554658Smrg	    s//\1/
7228e9554658Smrg	    q
7229e9554658Smrg	  }
7230e9554658Smrg	  /^X\(\/\/\)[^/].*/{
7231e9554658Smrg	    s//\1/
7232e9554658Smrg	    q
7233e9554658Smrg	  }
7234e9554658Smrg	  /^X\(\/\/\)$/{
7235e9554658Smrg	    s//\1/
7236e9554658Smrg	    q
7237e9554658Smrg	  }
7238e9554658Smrg	  /^X\(\/\).*/{
7239e9554658Smrg	    s//\1/
7240e9554658Smrg	    q
7241e9554658Smrg	  }
7242e9554658Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
7243e9554658Smrg ;;
7244c2b339b4Smrg
7245c2b339b4Smrg  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
7246e9554658Smrg$as_echo "$as_me: executing $ac_file commands" >&6;}
7247e9554658Smrg ;;
7248e9554658Smrg  esac
7249e9554658Smrg
7250e9554658Smrg
7251c2b339b4Smrg  case $ac_file$ac_mode in
7252c2b339b4Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7253c2b339b4Smrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
7254c2b339b4Smrg  # are listed without --file.  Let's play safe and only enable the eval
7255c2b339b4Smrg  # if we detect the quoting.
7256c2b339b4Smrg  case $CONFIG_FILES in
7257c2b339b4Smrg  *\'*) eval set x "$CONFIG_FILES" ;;
7258c2b339b4Smrg  *)   set x $CONFIG_FILES ;;
7259c2b339b4Smrg  esac
7260c2b339b4Smrg  shift
7261c2b339b4Smrg  for mf
7262c2b339b4Smrg  do
7263c2b339b4Smrg    # Strip MF so we end up with the name of the file.
7264c2b339b4Smrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
7265c2b339b4Smrg    # Check whether this is an Automake generated Makefile or not.
7266c2b339b4Smrg    # We used to match only the files named `Makefile.in', but
7267c2b339b4Smrg    # some people rename them; so instead we look at the file content.
7268c2b339b4Smrg    # Grep'ing the first line is not enough: some people post-process
7269c2b339b4Smrg    # each Makefile.in and add a new line on top of each file to say so.
7270c2b339b4Smrg    # Grep'ing the whole file is not good either: AIX grep has a line
7271c2b339b4Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
7272c2b339b4Smrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7273e9554658Smrg      dirpart=`$as_dirname -- "$mf" ||
7274e9554658Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7275e9554658Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
7276e9554658Smrg	 X"$mf" : 'X\(//\)$' \| \
7277c2b339b4Smrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7278e9554658Smrg$as_echo X"$mf" |
7279e9554658Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7280e9554658Smrg	    s//\1/
7281e9554658Smrg	    q
7282e9554658Smrg	  }
7283e9554658Smrg	  /^X\(\/\/\)[^/].*/{
7284e9554658Smrg	    s//\1/
7285e9554658Smrg	    q
7286e9554658Smrg	  }
7287e9554658Smrg	  /^X\(\/\/\)$/{
7288e9554658Smrg	    s//\1/
7289e9554658Smrg	    q
7290e9554658Smrg	  }
7291e9554658Smrg	  /^X\(\/\).*/{
7292e9554658Smrg	    s//\1/
7293e9554658Smrg	    q
7294e9554658Smrg	  }
7295c2b339b4Smrg	  s/.*/./; q'`
7296c2b339b4Smrg    else
7297c2b339b4Smrg      continue
7298c2b339b4Smrg    fi
7299c2b339b4Smrg    # Extract the definition of DEPDIR, am__include, and am__quote
7300c2b339b4Smrg    # from the Makefile without running `make'.
7301c2b339b4Smrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7302c2b339b4Smrg    test -z "$DEPDIR" && continue
7303c2b339b4Smrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
7304c2b339b4Smrg    test -z "am__include" && continue
7305c2b339b4Smrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7306c2b339b4Smrg    # When using ansi2knr, U may be empty or an underscore; expand it
7307c2b339b4Smrg    U=`sed -n 's/^U = //p' < "$mf"`
7308c2b339b4Smrg    # Find all dependency output files, they are included files with
7309c2b339b4Smrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
7310c2b339b4Smrg    # simplest approach to changing $(DEPDIR) to its actual value in the
7311c2b339b4Smrg    # expansion.
7312c2b339b4Smrg    for file in `sed -n "
7313c2b339b4Smrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7314c2b339b4Smrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7315c2b339b4Smrg      # Make sure the directory exists.
7316c2b339b4Smrg      test -f "$dirpart/$file" && continue
7317e9554658Smrg      fdir=`$as_dirname -- "$file" ||
7318e9554658Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7319e9554658Smrg	 X"$file" : 'X\(//\)[^/]' \| \
7320e9554658Smrg	 X"$file" : 'X\(//\)$' \| \
7321c2b339b4Smrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7322e9554658Smrg$as_echo X"$file" |
7323e9554658Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7324e9554658Smrg	    s//\1/
7325e9554658Smrg	    q
7326e9554658Smrg	  }
7327e9554658Smrg	  /^X\(\/\/\)[^/].*/{
7328e9554658Smrg	    s//\1/
7329e9554658Smrg	    q
7330e9554658Smrg	  }
7331e9554658Smrg	  /^X\(\/\/\)$/{
7332e9554658Smrg	    s//\1/
7333e9554658Smrg	    q
7334e9554658Smrg	  }
7335e9554658Smrg	  /^X\(\/\).*/{
7336e9554658Smrg	    s//\1/
7337e9554658Smrg	    q
7338e9554658Smrg	  }
7339c2b339b4Smrg	  s/.*/./; q'`
7340e9554658Smrg      { as_dir=$dirpart/$fdir
7341e9554658Smrg  case $as_dir in #(
7342e9554658Smrg  -*) as_dir=./$as_dir;;
7343e9554658Smrg  esac
7344e9554658Smrg  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7345e9554658Smrg    as_dirs=
7346e9554658Smrg    while :; do
7347c2b339b4Smrg      case $as_dir in #(
7348e9554658Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7349e9554658Smrg      *) as_qdir=$as_dir;;
7350e9554658Smrg      esac
7351e9554658Smrg      as_dirs="'$as_qdir' $as_dirs"
7352e9554658Smrg      as_dir=`$as_dirname -- "$as_dir" ||
7353e9554658Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7354e9554658Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
7355e9554658Smrg	 X"$as_dir" : 'X\(//\)$' \| \
7356c2b339b4Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7357e9554658Smrg$as_echo X"$as_dir" |
7358e9554658Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7359e9554658Smrg	    s//\1/
7360e9554658Smrg	    q
7361e9554658Smrg	  }
7362e9554658Smrg	  /^X\(\/\/\)[^/].*/{
7363e9554658Smrg	    s//\1/
7364e9554658Smrg	    q
7365e9554658Smrg	  }
7366e9554658Smrg	  /^X\(\/\/\)$/{
7367e9554658Smrg	    s//\1/
7368e9554658Smrg	    q
7369e9554658Smrg	  }
7370e9554658Smrg	  /^X\(\/\).*/{
7371e9554658Smrg	    s//\1/
7372e9554658Smrg	    q
7373e9554658Smrg	  }
7374e9554658Smrg	  s/.*/./; q'`
7375e9554658Smrg      test -d "$as_dir" && break
7376e9554658Smrg    done
7377c2b339b4Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
7378c2b339b4Smrg  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7379e9554658Smrg$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
7380c2b339b4Smrg   { (exit 1); exit 1; }; }; }
7381c2b339b4Smrg      # echo "creating $dirpart/$file"
7382c2b339b4Smrg      echo '# dummy' > "$dirpart/$file"
7383e9554658Smrg    done
7384c2b339b4Smrg  done
7385e9554658Smrg}
7386e9554658Smrg ;;
7387e9554658Smrg
7388e9554658Smrg  esac
7389e9554658Smrgdone # for ac_tag
7390e9554658Smrg
7391e9554658Smrg
7392e9554658Smrg{ (exit 0); exit 0; }
7393e9554658Smrg_ACEOF
7394e9554658Smrgchmod +x $CONFIG_STATUS
7395e9554658Smrgac_clean_files=$ac_clean_files_save
7396c2b339b4Smrg
7397c2b339b4Smrgtest $ac_write_fail = 0 ||
7398c2b339b4Smrg  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
7399c2b339b4Smrg$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
7400c2b339b4Smrg   { (exit 1); exit 1; }; }
7401e9554658Smrg
7402e9554658Smrg
7403e9554658Smrg# configure is writing to config.log, and then calls config.status.
7404e9554658Smrg# config.status does its own redirection, appending to config.log.
7405e9554658Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
7406e9554658Smrg# by configure, so config.status won't be able to write to it; its
7407e9554658Smrg# output is simply discarded.  So we exec the FD to /dev/null,
7408e9554658Smrg# effectively closing config.log, so it can be properly (re)opened and
7409e9554658Smrg# appended to by config.status.  When coming back to configure, we
7410e9554658Smrg# need to make the FD available again.
7411e9554658Smrgif test "$no_create" != yes; then
7412e9554658Smrg  ac_cs_success=:
7413e9554658Smrg  ac_config_status_args=
7414e9554658Smrg  test "$silent" = yes &&
7415e9554658Smrg    ac_config_status_args="$ac_config_status_args --quiet"
7416e9554658Smrg  exec 5>/dev/null
7417e9554658Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7418e9554658Smrg  exec 5>>config.log
7419e9554658Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7420e9554658Smrg  # would make configure fail if this is the last instruction.
7421e9554658Smrg  $ac_cs_success || { (exit 1); exit 1; }
7422c2b339b4Smrgfi
7423c2b339b4Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7424c2b339b4Smrg  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7425c2b339b4Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7426e9554658Smrgfi
7427
7428