configure revision fffe5102
167f05d30Smrg#! /bin/sh
267f05d30Smrg# Guess values for system-dependent variables and create Makefiles.
3fffe5102Smrg# Generated by GNU Autoconf 2.65 for viewres 1.0.2.
467f05d30Smrg#
567f05d30Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
667f05d30Smrg#
7fffe5102Smrg#
8fffe5102Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9fffe5102Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10fffe5102Smrg# Inc.
11fffe5102Smrg#
12fffe5102Smrg#
1367f05d30Smrg# This configure script is free software; the Free Software Foundation
1467f05d30Smrg# gives unlimited permission to copy, distribute and modify it.
15fffe5102Smrg## -------------------- ##
16fffe5102Smrg## M4sh Initialization. ##
17fffe5102Smrg## -------------------- ##
1867f05d30Smrg
19fffe5102Smrg# Be more Bourne compatible
20fffe5102SmrgDUALCASE=1; export DUALCASE # for MKS sh
21fffe5102Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2267f05d30Smrg  emulate sh
2367f05d30Smrg  NULLCMD=:
24fffe5102Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2567f05d30Smrg  # is contrary to our usage.  Disable this feature.
2667f05d30Smrg  alias -g '${1+"$@"}'='"$@"'
27fffe5102Smrg  setopt NO_GLOB_SUBST
28fffe5102Smrgelse
29fffe5102Smrg  case `(set -o) 2>/dev/null` in #(
30fffe5102Smrg  *posix*) :
31fffe5102Smrg    set -o posix ;; #(
32fffe5102Smrg  *) :
33fffe5102Smrg     ;;
34fffe5102Smrgesac
3567f05d30Smrgfi
3667f05d30Smrg
37fffe5102Smrg
38fffe5102Smrgas_nl='
39fffe5102Smrg'
40fffe5102Smrgexport as_nl
41fffe5102Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
42fffe5102Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43fffe5102Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44fffe5102Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45fffe5102Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
46fffe5102Smrg# but without wasting forks for bash or zsh.
47fffe5102Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
48fffe5102Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49fffe5102Smrg  as_echo='print -r --'
50fffe5102Smrg  as_echo_n='print -rn --'
51fffe5102Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52fffe5102Smrg  as_echo='printf %s\n'
53fffe5102Smrg  as_echo_n='printf %s'
5467f05d30Smrgelse
55fffe5102Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56fffe5102Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57fffe5102Smrg    as_echo_n='/usr/ucb/echo -n'
58fffe5102Smrg  else
59fffe5102Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60fffe5102Smrg    as_echo_n_body='eval
61fffe5102Smrg      arg=$1;
62fffe5102Smrg      case $arg in #(
63fffe5102Smrg      *"$as_nl"*)
64fffe5102Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
65fffe5102Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66fffe5102Smrg      esac;
67fffe5102Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68fffe5102Smrg    '
69fffe5102Smrg    export as_echo_n_body
70fffe5102Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
71fffe5102Smrg  fi
72fffe5102Smrg  export as_echo_body
73fffe5102Smrg  as_echo='sh -c $as_echo_body as_echo'
74fffe5102Smrgfi
75fffe5102Smrg
76fffe5102Smrg# The user is always right.
77fffe5102Smrgif test "${PATH_SEPARATOR+set}" != set; then
78fffe5102Smrg  PATH_SEPARATOR=:
79fffe5102Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80fffe5102Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81fffe5102Smrg      PATH_SEPARATOR=';'
82fffe5102Smrg  }
8367f05d30Smrgfi
8467f05d30Smrg
8567f05d30Smrg
86fffe5102Smrg# IFS
87fffe5102Smrg# We need space, tab and new line, in precisely that order.  Quoting is
88fffe5102Smrg# there to prevent editors from complaining about space-tab.
89fffe5102Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90fffe5102Smrg# splitting by setting IFS to empty value.)
91fffe5102SmrgIFS=" ""	$as_nl"
92fffe5102Smrg
93fffe5102Smrg# Find who we are.  Look in the path if we contain no directory separator.
94fffe5102Smrgcase $0 in #((
95fffe5102Smrg  *[\\/]* ) as_myself=$0 ;;
96fffe5102Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97fffe5102Smrgfor as_dir in $PATH
98fffe5102Smrgdo
99fffe5102Smrg  IFS=$as_save_IFS
100fffe5102Smrg  test -z "$as_dir" && as_dir=.
101fffe5102Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102fffe5102Smrg  done
103fffe5102SmrgIFS=$as_save_IFS
104fffe5102Smrg
105fffe5102Smrg     ;;
106fffe5102Smrgesac
107fffe5102Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
108fffe5102Smrg# in which case we are not to be found in the path.
109fffe5102Smrgif test "x$as_myself" = x; then
110fffe5102Smrg  as_myself=$0
111fffe5102Smrgfi
112fffe5102Smrgif test ! -f "$as_myself"; then
113fffe5102Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114fffe5102Smrg  exit 1
115fffe5102Smrgfi
116fffe5102Smrg
117fffe5102Smrg# Unset variables that we do not need and which cause bugs (e.g. in
118fffe5102Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119fffe5102Smrg# suppresses any "Segmentation fault" message there.  '((' could
120fffe5102Smrg# trigger a bug in pdksh 5.2.14.
121fffe5102Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
122fffe5102Smrgdo eval test x\${$as_var+set} = xset \
123fffe5102Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124fffe5102Smrgdone
12567f05d30SmrgPS1='$ '
12667f05d30SmrgPS2='> '
12767f05d30SmrgPS4='+ '
12867f05d30Smrg
12967f05d30Smrg# NLS nuisances.
130fffe5102SmrgLC_ALL=C
131fffe5102Smrgexport LC_ALL
132fffe5102SmrgLANGUAGE=C
133fffe5102Smrgexport LANGUAGE
134fffe5102Smrg
135fffe5102Smrg# CDPATH.
136fffe5102Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137fffe5102Smrg
138fffe5102Smrgif test "x$CONFIG_SHELL" = x; then
139fffe5102Smrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140fffe5102Smrg  emulate sh
141fffe5102Smrg  NULLCMD=:
142fffe5102Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143fffe5102Smrg  # is contrary to our usage.  Disable this feature.
144fffe5102Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145fffe5102Smrg  setopt NO_GLOB_SUBST
146fffe5102Smrgelse
147fffe5102Smrg  case \`(set -o) 2>/dev/null\` in #(
148fffe5102Smrg  *posix*) :
149fffe5102Smrg    set -o posix ;; #(
150fffe5102Smrg  *) :
151fffe5102Smrg     ;;
152fffe5102Smrgesac
153fffe5102Smrgfi
154fffe5102Smrg"
155fffe5102Smrg  as_required="as_fn_return () { (exit \$1); }
156fffe5102Smrgas_fn_success () { as_fn_return 0; }
157fffe5102Smrgas_fn_failure () { as_fn_return 1; }
158fffe5102Smrgas_fn_ret_success () { return 0; }
159fffe5102Smrgas_fn_ret_failure () { return 1; }
160fffe5102Smrg
161fffe5102Smrgexitcode=0
162fffe5102Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
163fffe5102Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164fffe5102Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165fffe5102Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166fffe5102Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167fffe5102Smrg
168fffe5102Smrgelse
169fffe5102Smrg  exitcode=1; echo positional parameters were not saved.
170fffe5102Smrgfi
171fffe5102Smrgtest x\$exitcode = x0 || exit 1"
172fffe5102Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173fffe5102Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174fffe5102Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175fffe5102Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176fffe5102Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
177fffe5102Smrg  if (eval "$as_required") 2>/dev/null; then :
178fffe5102Smrg  as_have_required=yes
179fffe5102Smrgelse
180fffe5102Smrg  as_have_required=no
181fffe5102Smrgfi
182fffe5102Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183fffe5102Smrg
184fffe5102Smrgelse
185fffe5102Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186fffe5102Smrgas_found=false
187fffe5102Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18867f05d30Smrgdo
189fffe5102Smrg  IFS=$as_save_IFS
190fffe5102Smrg  test -z "$as_dir" && as_dir=.
191fffe5102Smrg  as_found=:
192fffe5102Smrg  case $as_dir in #(
193fffe5102Smrg	 /*)
194fffe5102Smrg	   for as_base in sh bash ksh sh5; do
195fffe5102Smrg	     # Try only shells that exist, to save several forks.
196fffe5102Smrg	     as_shell=$as_dir/$as_base
197fffe5102Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198fffe5102Smrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199fffe5102Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
200fffe5102Smrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201fffe5102Smrg  break 2
202fffe5102Smrgfi
203fffe5102Smrgfi
204fffe5102Smrg	   done;;
205fffe5102Smrg       esac
206fffe5102Smrg  as_found=false
207fffe5102Smrgdone
208fffe5102Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209fffe5102Smrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210fffe5102Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
211fffe5102Smrgfi; }
212fffe5102SmrgIFS=$as_save_IFS
213fffe5102Smrg
214fffe5102Smrg
215fffe5102Smrg      if test "x$CONFIG_SHELL" != x; then :
216fffe5102Smrg  # We cannot yet assume a decent shell, so we have to provide a
217fffe5102Smrg	# neutralization value for shells without unset; and this also
218fffe5102Smrg	# works around shells that cannot unset nonexistent variables.
219fffe5102Smrg	BASH_ENV=/dev/null
220fffe5102Smrg	ENV=/dev/null
221fffe5102Smrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222fffe5102Smrg	export CONFIG_SHELL
223fffe5102Smrg	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fffe5102Smrgfi
225fffe5102Smrg
226fffe5102Smrg    if test x$as_have_required = xno; then :
227fffe5102Smrg  $as_echo "$0: This script requires a shell more modern than all"
228fffe5102Smrg  $as_echo "$0: the shells that I found on your system."
229fffe5102Smrg  if test x${ZSH_VERSION+set} = xset ; then
230fffe5102Smrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231fffe5102Smrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
23267f05d30Smrg  else
233fffe5102Smrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
234fffe5102Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
235fffe5102Smrg$0: about your system, including any error possibly output
236fffe5102Smrg$0: before this message. Then install a modern shell, or
237fffe5102Smrg$0: manually run the script under such a shell if you do
238fffe5102Smrg$0: have one."
23967f05d30Smrg  fi
240fffe5102Smrg  exit 1
241fffe5102Smrgfi
242fffe5102Smrgfi
243fffe5102Smrgfi
244fffe5102SmrgSHELL=${CONFIG_SHELL-/bin/sh}
245fffe5102Smrgexport SHELL
246fffe5102Smrg# Unset more variables known to interfere with behavior of common tools.
247fffe5102SmrgCLICOLOR_FORCE= GREP_OPTIONS=
248fffe5102Smrgunset CLICOLOR_FORCE GREP_OPTIONS
249fffe5102Smrg
250fffe5102Smrg## --------------------- ##
251fffe5102Smrg## M4sh Shell Functions. ##
252fffe5102Smrg## --------------------- ##
253fffe5102Smrg# as_fn_unset VAR
254fffe5102Smrg# ---------------
255fffe5102Smrg# Portably unset VAR.
256fffe5102Smrgas_fn_unset ()
257fffe5102Smrg{
258fffe5102Smrg  { eval $1=; unset $1;}
259fffe5102Smrg}
260fffe5102Smrgas_unset=as_fn_unset
261fffe5102Smrg
262fffe5102Smrg# as_fn_set_status STATUS
263fffe5102Smrg# -----------------------
264fffe5102Smrg# Set $? to STATUS, without forking.
265fffe5102Smrgas_fn_set_status ()
266fffe5102Smrg{
267fffe5102Smrg  return $1
268fffe5102Smrg} # as_fn_set_status
269fffe5102Smrg
270fffe5102Smrg# as_fn_exit STATUS
271fffe5102Smrg# -----------------
272fffe5102Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273fffe5102Smrgas_fn_exit ()
274fffe5102Smrg{
275fffe5102Smrg  set +e
276fffe5102Smrg  as_fn_set_status $1
277fffe5102Smrg  exit $1
278fffe5102Smrg} # as_fn_exit
279fffe5102Smrg
280fffe5102Smrg# as_fn_mkdir_p
281fffe5102Smrg# -------------
282fffe5102Smrg# Create "$as_dir" as a directory, including parents if necessary.
283fffe5102Smrgas_fn_mkdir_p ()
284fffe5102Smrg{
28567f05d30Smrg
286fffe5102Smrg  case $as_dir in #(
287fffe5102Smrg  -*) as_dir=./$as_dir;;
288fffe5102Smrg  esac
289fffe5102Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
290fffe5102Smrg    as_dirs=
291fffe5102Smrg    while :; do
292fffe5102Smrg      case $as_dir in #(
293fffe5102Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294fffe5102Smrg      *) as_qdir=$as_dir;;
295fffe5102Smrg      esac
296fffe5102Smrg      as_dirs="'$as_qdir' $as_dirs"
297fffe5102Smrg      as_dir=`$as_dirname -- "$as_dir" ||
298fffe5102Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299fffe5102Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
300fffe5102Smrg	 X"$as_dir" : 'X\(//\)$' \| \
301fffe5102Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302fffe5102Smrg$as_echo X"$as_dir" |
303fffe5102Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304fffe5102Smrg	    s//\1/
305fffe5102Smrg	    q
306fffe5102Smrg	  }
307fffe5102Smrg	  /^X\(\/\/\)[^/].*/{
308fffe5102Smrg	    s//\1/
309fffe5102Smrg	    q
310fffe5102Smrg	  }
311fffe5102Smrg	  /^X\(\/\/\)$/{
312fffe5102Smrg	    s//\1/
313fffe5102Smrg	    q
314fffe5102Smrg	  }
315fffe5102Smrg	  /^X\(\/\).*/{
316fffe5102Smrg	    s//\1/
317fffe5102Smrg	    q
318fffe5102Smrg	  }
319fffe5102Smrg	  s/.*/./; q'`
320fffe5102Smrg      test -d "$as_dir" && break
321fffe5102Smrg    done
322fffe5102Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
323fffe5102Smrg  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324fffe5102Smrg
325fffe5102Smrg
326fffe5102Smrg} # as_fn_mkdir_p
327fffe5102Smrg# as_fn_append VAR VALUE
328fffe5102Smrg# ----------------------
329fffe5102Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
330fffe5102Smrg# advantage of any shell optimizations that allow amortized linear growth over
331fffe5102Smrg# repeated appends, instead of the typical quadratic growth present in naive
332fffe5102Smrg# implementations.
333fffe5102Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334fffe5102Smrg  eval 'as_fn_append ()
335fffe5102Smrg  {
336fffe5102Smrg    eval $1+=\$2
337fffe5102Smrg  }'
338fffe5102Smrgelse
339fffe5102Smrg  as_fn_append ()
340fffe5102Smrg  {
341fffe5102Smrg    eval $1=\$$1\$2
342fffe5102Smrg  }
343fffe5102Smrgfi # as_fn_append
344fffe5102Smrg
345fffe5102Smrg# as_fn_arith ARG...
346fffe5102Smrg# ------------------
347fffe5102Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
348fffe5102Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
349fffe5102Smrg# must be portable across $(()) and expr.
350fffe5102Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351fffe5102Smrg  eval 'as_fn_arith ()
352fffe5102Smrg  {
353fffe5102Smrg    as_val=$(( $* ))
354fffe5102Smrg  }'
355fffe5102Smrgelse
356fffe5102Smrg  as_fn_arith ()
357fffe5102Smrg  {
358fffe5102Smrg    as_val=`expr "$@" || test $? -eq 1`
359fffe5102Smrg  }
360fffe5102Smrgfi # as_fn_arith
361fffe5102Smrg
362fffe5102Smrg
363fffe5102Smrg# as_fn_error ERROR [LINENO LOG_FD]
364fffe5102Smrg# ---------------------------------
365fffe5102Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366fffe5102Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367fffe5102Smrg# script with status $?, using 1 if that was 0.
368fffe5102Smrgas_fn_error ()
369fffe5102Smrg{
370fffe5102Smrg  as_status=$?; test $as_status -eq 0 && as_status=1
371fffe5102Smrg  if test "$3"; then
372fffe5102Smrg    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373fffe5102Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374fffe5102Smrg  fi
375fffe5102Smrg  $as_echo "$as_me: error: $1" >&2
376fffe5102Smrg  as_fn_exit $as_status
377fffe5102Smrg} # as_fn_error
378fffe5102Smrg
379fffe5102Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
380fffe5102Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
38167f05d30Smrg  as_expr=expr
38267f05d30Smrgelse
38367f05d30Smrg  as_expr=false
38467f05d30Smrgfi
38567f05d30Smrg
386fffe5102Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
38767f05d30Smrg  as_basename=basename
38867f05d30Smrgelse
38967f05d30Smrg  as_basename=false
39067f05d30Smrgfi
39167f05d30Smrg
392fffe5102Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393fffe5102Smrg  as_dirname=dirname
394fffe5102Smrgelse
395fffe5102Smrg  as_dirname=false
396fffe5102Smrgfi
39767f05d30Smrg
398fffe5102Smrgas_me=`$as_basename -- "$0" ||
39967f05d30Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40067f05d30Smrg	 X"$0" : 'X\(//\)$' \| \
401fffe5102Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402fffe5102Smrg$as_echo X/"$0" |
403fffe5102Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
404fffe5102Smrg	    s//\1/
405fffe5102Smrg	    q
406fffe5102Smrg	  }
407fffe5102Smrg	  /^X\/\(\/\/\)$/{
408fffe5102Smrg	    s//\1/
409fffe5102Smrg	    q
410fffe5102Smrg	  }
411fffe5102Smrg	  /^X\/\(\/\).*/{
412fffe5102Smrg	    s//\1/
413fffe5102Smrg	    q
414fffe5102Smrg	  }
415fffe5102Smrg	  s/.*/./; q'`
41667f05d30Smrg
41767f05d30Smrg# Avoid depending upon Character Ranges.
41867f05d30Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
41967f05d30Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42067f05d30Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
42167f05d30Smrgas_cr_digits='0123456789'
42267f05d30Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
42367f05d30Smrg
42467f05d30Smrg
425fffe5102Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
426fffe5102Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
427fffe5102Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428fffe5102Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429fffe5102Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
430fffe5102Smrg  sed -n '
431fffe5102Smrg    p
432fffe5102Smrg    /[$]LINENO/=
433fffe5102Smrg  ' <$as_myself |
43467f05d30Smrg    sed '
435fffe5102Smrg      s/[$]LINENO.*/&-/
436fffe5102Smrg      t lineno
437fffe5102Smrg      b
438fffe5102Smrg      :lineno
43967f05d30Smrg      N
440fffe5102Smrg      :loop
441fffe5102Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
44267f05d30Smrg      t loop
443fffe5102Smrg      s/-\n.*//
44467f05d30Smrg    ' >$as_me.lineno &&
445fffe5102Smrg  chmod +x "$as_me.lineno" ||
446fffe5102Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
44767f05d30Smrg
44867f05d30Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
44967f05d30Smrg  # (the dirname of $[0] is not the place where we might find the
450fffe5102Smrg  # original and so on.  Autoconf is especially sensitive to this).
451fffe5102Smrg  . "./$as_me.lineno"
45267f05d30Smrg  # Exit status is that of the last command.
45367f05d30Smrg  exit
45467f05d30Smrg}
45567f05d30Smrg
456fffe5102SmrgECHO_C= ECHO_N= ECHO_T=
457fffe5102Smrgcase `echo -n x` in #(((((
458fffe5102Smrg-n*)
459fffe5102Smrg  case `echo 'xy\c'` in
460fffe5102Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
461fffe5102Smrg  xy)  ECHO_C='\c';;
462fffe5102Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
463fffe5102Smrg       ECHO_T='	';;
464fffe5102Smrg  esac;;
465fffe5102Smrg*)
466fffe5102Smrg  ECHO_N='-n';;
46767f05d30Smrgesac
46867f05d30Smrg
469fffe5102Smrgrm -f conf$$ conf$$.exe conf$$.file
470fffe5102Smrgif test -d conf$$.dir; then
471fffe5102Smrg  rm -f conf$$.dir/conf$$.file
47267f05d30Smrgelse
473fffe5102Smrg  rm -f conf$$.dir
474fffe5102Smrg  mkdir conf$$.dir 2>/dev/null
47567f05d30Smrgfi
476fffe5102Smrgif (echo >conf$$.file) 2>/dev/null; then
477fffe5102Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
47867f05d30Smrg    as_ln_s='ln -s'
479fffe5102Smrg    # ... but there are two gotchas:
480fffe5102Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481fffe5102Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482fffe5102Smrg    # In both cases, we have to default to `cp -p'.
483fffe5102Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484fffe5102Smrg      as_ln_s='cp -p'
485fffe5102Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
486fffe5102Smrg    as_ln_s=ln
487fffe5102Smrg  else
488fffe5102Smrg    as_ln_s='cp -p'
48967f05d30Smrg  fi
49067f05d30Smrgelse
49167f05d30Smrg  as_ln_s='cp -p'
49267f05d30Smrgfi
493fffe5102Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494fffe5102Smrgrmdir conf$$.dir 2>/dev/null
49567f05d30Smrg
49667f05d30Smrgif mkdir -p . 2>/dev/null; then
497fffe5102Smrg  as_mkdir_p='mkdir -p "$as_dir"'
49867f05d30Smrgelse
49967f05d30Smrg  test -d ./-p && rmdir ./-p
50067f05d30Smrg  as_mkdir_p=false
50167f05d30Smrgfi
50267f05d30Smrg
503fffe5102Smrgif test -x / >/dev/null 2>&1; then
504fffe5102Smrg  as_test_x='test -x'
505fffe5102Smrgelse
506fffe5102Smrg  if ls -dL / >/dev/null 2>&1; then
507fffe5102Smrg    as_ls_L_option=L
508fffe5102Smrg  else
509fffe5102Smrg    as_ls_L_option=
510fffe5102Smrg  fi
511fffe5102Smrg  as_test_x='
512fffe5102Smrg    eval sh -c '\''
513fffe5102Smrg      if test -d "$1"; then
514fffe5102Smrg	test -d "$1/.";
515fffe5102Smrg      else
516fffe5102Smrg	case $1 in #(
517fffe5102Smrg	-*)set "./$1";;
518fffe5102Smrg	esac;
519fffe5102Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520fffe5102Smrg	???[sx]*):;;*)false;;esac;fi
521fffe5102Smrg    '\'' sh
522fffe5102Smrg  '
523fffe5102Smrgfi
524fffe5102Smrgas_executable_p=$as_test_x
52567f05d30Smrg
52667f05d30Smrg# Sed expression to map a string onto a valid CPP name.
52767f05d30Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
52867f05d30Smrg
52967f05d30Smrg# Sed expression to map a string onto a valid variable name.
53067f05d30Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53167f05d30Smrg
53267f05d30Smrg
533fffe5102Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
534fffe5102Smrgexec 6>&1
53567f05d30Smrg
53667f05d30Smrg# Name of the host.
53767f05d30Smrg# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
53867f05d30Smrg# so uname gets run too.
53967f05d30Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
54067f05d30Smrg
54167f05d30Smrg#
54267f05d30Smrg# Initializations.
54367f05d30Smrg#
54467f05d30Smrgac_default_prefix=/usr/local
545fffe5102Smrgac_clean_files=
54667f05d30Smrgac_config_libobj_dir=.
547fffe5102SmrgLIBOBJS=
54867f05d30Smrgcross_compiling=no
54967f05d30Smrgsubdirs=
55067f05d30SmrgMFLAGS=
55167f05d30SmrgMAKEFLAGS=
55267f05d30Smrg
55367f05d30Smrg# Identity of this package.
55467f05d30SmrgPACKAGE_NAME='viewres'
55567f05d30SmrgPACKAGE_TARNAME='viewres'
556fffe5102SmrgPACKAGE_VERSION='1.0.2'
557fffe5102SmrgPACKAGE_STRING='viewres 1.0.2'
55867f05d30SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
559fffe5102SmrgPACKAGE_URL=''
56067f05d30Smrg
561fffe5102Smrg# Factoring default headers for most tests.
562fffe5102Smrgac_includes_default="\
563fffe5102Smrg#include <stdio.h>
564fffe5102Smrg#ifdef HAVE_SYS_TYPES_H
565fffe5102Smrg# include <sys/types.h>
566fffe5102Smrg#endif
567fffe5102Smrg#ifdef HAVE_SYS_STAT_H
568fffe5102Smrg# include <sys/stat.h>
569fffe5102Smrg#endif
570fffe5102Smrg#ifdef STDC_HEADERS
571fffe5102Smrg# include <stdlib.h>
572fffe5102Smrg# include <stddef.h>
573fffe5102Smrg#else
574fffe5102Smrg# ifdef HAVE_STDLIB_H
575fffe5102Smrg#  include <stdlib.h>
576fffe5102Smrg# endif
577fffe5102Smrg#endif
578fffe5102Smrg#ifdef HAVE_STRING_H
579fffe5102Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580fffe5102Smrg#  include <memory.h>
581fffe5102Smrg# endif
582fffe5102Smrg# include <string.h>
583fffe5102Smrg#endif
584fffe5102Smrg#ifdef HAVE_STRINGS_H
585fffe5102Smrg# include <strings.h>
586fffe5102Smrg#endif
587fffe5102Smrg#ifdef HAVE_INTTYPES_H
588fffe5102Smrg# include <inttypes.h>
589fffe5102Smrg#endif
590fffe5102Smrg#ifdef HAVE_STDINT_H
591fffe5102Smrg# include <stdint.h>
592fffe5102Smrg#endif
593fffe5102Smrg#ifdef HAVE_UNISTD_H
594fffe5102Smrg# include <unistd.h>
595fffe5102Smrg#endif"
596fffe5102Smrg
597fffe5102Smrgac_subst_vars='am__EXEEXT_FALSE
598fffe5102Smrgam__EXEEXT_TRUE
599fffe5102SmrgLTLIBOBJS
600fffe5102SmrgLIBOBJS
601fffe5102Smrgappdefaultdir
602fffe5102SmrgAPPDEFS_LIBS
603fffe5102SmrgAPPDEFS_CFLAGS
604fffe5102SmrgVIEWRES_LIBS
605fffe5102SmrgVIEWRES_CFLAGS
606fffe5102SmrgADMIN_MAN_DIR
607fffe5102SmrgDRIVER_MAN_DIR
608fffe5102SmrgMISC_MAN_DIR
609fffe5102SmrgFILE_MAN_DIR
610fffe5102SmrgLIB_MAN_DIR
611fffe5102SmrgAPP_MAN_DIR
612fffe5102SmrgADMIN_MAN_SUFFIX
613fffe5102SmrgDRIVER_MAN_SUFFIX
614fffe5102SmrgMISC_MAN_SUFFIX
615fffe5102SmrgFILE_MAN_SUFFIX
616fffe5102SmrgLIB_MAN_SUFFIX
617fffe5102SmrgAPP_MAN_SUFFIX
618fffe5102Smrghost_os
619fffe5102Smrghost_vendor
620fffe5102Smrghost_cpu
621fffe5102Smrghost
622fffe5102Smrgbuild_os
623fffe5102Smrgbuild_vendor
624fffe5102Smrgbuild_cpu
625fffe5102Smrgbuild
626fffe5102SmrgINSTALL_CMD
627fffe5102SmrgPKG_CONFIG
628fffe5102SmrgCHANGELOG_CMD
629fffe5102SmrgAM_BACKSLASH
630fffe5102SmrgAM_DEFAULT_VERBOSITY
631fffe5102SmrgCWARNFLAGS
632fffe5102SmrgEGREP
633fffe5102SmrgGREP
634fffe5102SmrgCPP
635fffe5102Smrgam__fastdepCC_FALSE
636fffe5102Smrgam__fastdepCC_TRUE
637fffe5102SmrgCCDEPMODE
638fffe5102SmrgAMDEPBACKSLASH
639fffe5102SmrgAMDEP_FALSE
640fffe5102SmrgAMDEP_TRUE
641fffe5102Smrgam__quote
642fffe5102Smrgam__include
643fffe5102SmrgDEPDIR
644fffe5102SmrgOBJEXT
645fffe5102SmrgEXEEXT
646fffe5102Smrgac_ct_CC
647fffe5102SmrgCPPFLAGS
648fffe5102SmrgLDFLAGS
649fffe5102SmrgCFLAGS
650fffe5102SmrgCC
651fffe5102SmrgMAINT
652fffe5102SmrgMAINTAINER_MODE_FALSE
653fffe5102SmrgMAINTAINER_MODE_TRUE
654fffe5102Smrgam__untar
655fffe5102Smrgam__tar
656fffe5102SmrgAMTAR
657fffe5102Smrgam__leading_dot
658fffe5102SmrgSET_MAKE
659fffe5102SmrgAWK
660fffe5102Smrgmkdir_p
661fffe5102SmrgMKDIR_P
662fffe5102SmrgINSTALL_STRIP_PROGRAM
663fffe5102SmrgSTRIP
664fffe5102Smrginstall_sh
665fffe5102SmrgMAKEINFO
666fffe5102SmrgAUTOHEADER
667fffe5102SmrgAUTOMAKE
668fffe5102SmrgAUTOCONF
669fffe5102SmrgACLOCAL
670fffe5102SmrgVERSION
671fffe5102SmrgPACKAGE
672fffe5102SmrgCYGPATH_W
673fffe5102Smrgam__isrc
674fffe5102SmrgINSTALL_DATA
675fffe5102SmrgINSTALL_SCRIPT
676fffe5102SmrgINSTALL_PROGRAM
677fffe5102Smrgtarget_alias
678fffe5102Smrghost_alias
679fffe5102Smrgbuild_alias
680fffe5102SmrgLIBS
681fffe5102SmrgECHO_T
682fffe5102SmrgECHO_N
683fffe5102SmrgECHO_C
684fffe5102SmrgDEFS
685fffe5102Smrgmandir
686fffe5102Smrglocaledir
687fffe5102Smrglibdir
688fffe5102Smrgpsdir
689fffe5102Smrgpdfdir
690fffe5102Smrgdvidir
691fffe5102Smrghtmldir
692fffe5102Smrginfodir
693fffe5102Smrgdocdir
694fffe5102Smrgoldincludedir
695fffe5102Smrgincludedir
696fffe5102Smrglocalstatedir
697fffe5102Smrgsharedstatedir
698fffe5102Smrgsysconfdir
699fffe5102Smrgdatadir
700fffe5102Smrgdatarootdir
701fffe5102Smrglibexecdir
702fffe5102Smrgsbindir
703fffe5102Smrgbindir
704fffe5102Smrgprogram_transform_name
705fffe5102Smrgprefix
706fffe5102Smrgexec_prefix
707fffe5102SmrgPACKAGE_URL
708fffe5102SmrgPACKAGE_BUGREPORT
709fffe5102SmrgPACKAGE_STRING
710fffe5102SmrgPACKAGE_VERSION
711fffe5102SmrgPACKAGE_TARNAME
712fffe5102SmrgPACKAGE_NAME
713fffe5102SmrgPATH_SEPARATOR
714fffe5102SmrgSHELL'
71567f05d30Smrgac_subst_files=''
716fffe5102Smrgac_user_opts='
717fffe5102Smrgenable_option_checking
718fffe5102Smrgenable_maintainer_mode
719fffe5102Smrgenable_dependency_tracking
720fffe5102Smrgenable_silent_rules
721fffe5102Smrgenable_strict_compilation
722fffe5102Smrgwith_release_version
723fffe5102Smrgwith_appdefaultdir
724fffe5102Smrg'
725fffe5102Smrg      ac_precious_vars='build_alias
726fffe5102Smrghost_alias
727fffe5102Smrgtarget_alias
728fffe5102SmrgCC
729fffe5102SmrgCFLAGS
730fffe5102SmrgLDFLAGS
731fffe5102SmrgLIBS
732fffe5102SmrgCPPFLAGS
733fffe5102SmrgCPP
734fffe5102SmrgPKG_CONFIG
735fffe5102SmrgVIEWRES_CFLAGS
736fffe5102SmrgVIEWRES_LIBS
737fffe5102SmrgAPPDEFS_CFLAGS
738fffe5102SmrgAPPDEFS_LIBS'
739fffe5102Smrg
74067f05d30Smrg
74167f05d30Smrg# Initialize some variables set by options.
74267f05d30Smrgac_init_help=
74367f05d30Smrgac_init_version=false
744fffe5102Smrgac_unrecognized_opts=
745fffe5102Smrgac_unrecognized_sep=
74667f05d30Smrg# The variables have the same names as the options, with
74767f05d30Smrg# dashes changed to underlines.
74867f05d30Smrgcache_file=/dev/null
74967f05d30Smrgexec_prefix=NONE
75067f05d30Smrgno_create=
75167f05d30Smrgno_recursion=
75267f05d30Smrgprefix=NONE
75367f05d30Smrgprogram_prefix=NONE
75467f05d30Smrgprogram_suffix=NONE
75567f05d30Smrgprogram_transform_name=s,x,x,
75667f05d30Smrgsilent=
75767f05d30Smrgsite=
75867f05d30Smrgsrcdir=
75967f05d30Smrgverbose=
76067f05d30Smrgx_includes=NONE
76167f05d30Smrgx_libraries=NONE
76267f05d30Smrg
76367f05d30Smrg# Installation directory options.
76467f05d30Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
76567f05d30Smrg# and all the variables that are supposed to be based on exec_prefix
76667f05d30Smrg# by default will actually change.
76767f05d30Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
768fffe5102Smrg# (The list follows the same order as the GNU Coding Standards.)
76967f05d30Smrgbindir='${exec_prefix}/bin'
77067f05d30Smrgsbindir='${exec_prefix}/sbin'
77167f05d30Smrglibexecdir='${exec_prefix}/libexec'
772fffe5102Smrgdatarootdir='${prefix}/share'
773fffe5102Smrgdatadir='${datarootdir}'
77467f05d30Smrgsysconfdir='${prefix}/etc'
77567f05d30Smrgsharedstatedir='${prefix}/com'
77667f05d30Smrglocalstatedir='${prefix}/var'
77767f05d30Smrgincludedir='${prefix}/include'
77867f05d30Smrgoldincludedir='/usr/include'
779fffe5102Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
780fffe5102Smrginfodir='${datarootdir}/info'
781fffe5102Smrghtmldir='${docdir}'
782fffe5102Smrgdvidir='${docdir}'
783fffe5102Smrgpdfdir='${docdir}'
784fffe5102Smrgpsdir='${docdir}'
785fffe5102Smrglibdir='${exec_prefix}/lib'
786fffe5102Smrglocaledir='${datarootdir}/locale'
787fffe5102Smrgmandir='${datarootdir}/man'
78867f05d30Smrg
78967f05d30Smrgac_prev=
790fffe5102Smrgac_dashdash=
79167f05d30Smrgfor ac_option
79267f05d30Smrgdo
79367f05d30Smrg  # If the previous option needs an argument, assign it.
79467f05d30Smrg  if test -n "$ac_prev"; then
795fffe5102Smrg    eval $ac_prev=\$ac_option
79667f05d30Smrg    ac_prev=
79767f05d30Smrg    continue
79867f05d30Smrg  fi
79967f05d30Smrg
800fffe5102Smrg  case $ac_option in
801fffe5102Smrg  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
802fffe5102Smrg  *)	ac_optarg=yes ;;
803fffe5102Smrg  esac
80467f05d30Smrg
80567f05d30Smrg  # Accept the important Cygnus configure options, so we can diagnose typos.
80667f05d30Smrg
807fffe5102Smrg  case $ac_dashdash$ac_option in
808fffe5102Smrg  --)
809fffe5102Smrg    ac_dashdash=yes ;;
81067f05d30Smrg
81167f05d30Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
81267f05d30Smrg    ac_prev=bindir ;;
81367f05d30Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
81467f05d30Smrg    bindir=$ac_optarg ;;
81567f05d30Smrg
81667f05d30Smrg  -build | --build | --buil | --bui | --bu)
81767f05d30Smrg    ac_prev=build_alias ;;
81867f05d30Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
81967f05d30Smrg    build_alias=$ac_optarg ;;
82067f05d30Smrg
82167f05d30Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
82267f05d30Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
82367f05d30Smrg    ac_prev=cache_file ;;
82467f05d30Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
82567f05d30Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
82667f05d30Smrg    cache_file=$ac_optarg ;;
82767f05d30Smrg
82867f05d30Smrg  --config-cache | -C)
82967f05d30Smrg    cache_file=config.cache ;;
83067f05d30Smrg
831fffe5102Smrg  -datadir | --datadir | --datadi | --datad)
83267f05d30Smrg    ac_prev=datadir ;;
833fffe5102Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
83467f05d30Smrg    datadir=$ac_optarg ;;
83567f05d30Smrg
836fffe5102Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
837fffe5102Smrg  | --dataroo | --dataro | --datar)
838fffe5102Smrg    ac_prev=datarootdir ;;
839fffe5102Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
840fffe5102Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
841fffe5102Smrg    datarootdir=$ac_optarg ;;
842fffe5102Smrg
84367f05d30Smrg  -disable-* | --disable-*)
844fffe5102Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
84567f05d30Smrg    # Reject names that are not valid shell variable names.
846fffe5102Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
847fffe5102Smrg      as_fn_error "invalid feature name: $ac_useropt"
848fffe5102Smrg    ac_useropt_orig=$ac_useropt
849fffe5102Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
850fffe5102Smrg    case $ac_user_opts in
851fffe5102Smrg      *"
852fffe5102Smrg"enable_$ac_useropt"
853fffe5102Smrg"*) ;;
854fffe5102Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
855fffe5102Smrg	 ac_unrecognized_sep=', ';;
856fffe5102Smrg    esac
857fffe5102Smrg    eval enable_$ac_useropt=no ;;
858fffe5102Smrg
859fffe5102Smrg  -docdir | --docdir | --docdi | --doc | --do)
860fffe5102Smrg    ac_prev=docdir ;;
861fffe5102Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
862fffe5102Smrg    docdir=$ac_optarg ;;
863fffe5102Smrg
864fffe5102Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
865fffe5102Smrg    ac_prev=dvidir ;;
866fffe5102Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
867fffe5102Smrg    dvidir=$ac_optarg ;;
86867f05d30Smrg
86967f05d30Smrg  -enable-* | --enable-*)
870fffe5102Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
87167f05d30Smrg    # Reject names that are not valid shell variable names.
872fffe5102Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
873fffe5102Smrg      as_fn_error "invalid feature name: $ac_useropt"
874fffe5102Smrg    ac_useropt_orig=$ac_useropt
875fffe5102Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
876fffe5102Smrg    case $ac_user_opts in
877fffe5102Smrg      *"
878fffe5102Smrg"enable_$ac_useropt"
879fffe5102Smrg"*) ;;
880fffe5102Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
881fffe5102Smrg	 ac_unrecognized_sep=', ';;
88267f05d30Smrg    esac
883fffe5102Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
88467f05d30Smrg
88567f05d30Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
88667f05d30Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
88767f05d30Smrg  | --exec | --exe | --ex)
88867f05d30Smrg    ac_prev=exec_prefix ;;
88967f05d30Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
89067f05d30Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
89167f05d30Smrg  | --exec=* | --exe=* | --ex=*)
89267f05d30Smrg    exec_prefix=$ac_optarg ;;
89367f05d30Smrg
89467f05d30Smrg  -gas | --gas | --ga | --g)
89567f05d30Smrg    # Obsolete; use --with-gas.
89667f05d30Smrg    with_gas=yes ;;
89767f05d30Smrg
89867f05d30Smrg  -help | --help | --hel | --he | -h)
89967f05d30Smrg    ac_init_help=long ;;
90067f05d30Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
90167f05d30Smrg    ac_init_help=recursive ;;
90267f05d30Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
90367f05d30Smrg    ac_init_help=short ;;
90467f05d30Smrg
90567f05d30Smrg  -host | --host | --hos | --ho)
90667f05d30Smrg    ac_prev=host_alias ;;
90767f05d30Smrg  -host=* | --host=* | --hos=* | --ho=*)
90867f05d30Smrg    host_alias=$ac_optarg ;;
90967f05d30Smrg
910fffe5102Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
911fffe5102Smrg    ac_prev=htmldir ;;
912fffe5102Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
913fffe5102Smrg  | --ht=*)
914fffe5102Smrg    htmldir=$ac_optarg ;;
915fffe5102Smrg
91667f05d30Smrg  -includedir | --includedir | --includedi | --included | --include \
91767f05d30Smrg  | --includ | --inclu | --incl | --inc)
91867f05d30Smrg    ac_prev=includedir ;;
91967f05d30Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
92067f05d30Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
92167f05d30Smrg    includedir=$ac_optarg ;;
92267f05d30Smrg
92367f05d30Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
92467f05d30Smrg    ac_prev=infodir ;;
92567f05d30Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
92667f05d30Smrg    infodir=$ac_optarg ;;
92767f05d30Smrg
92867f05d30Smrg  -libdir | --libdir | --libdi | --libd)
92967f05d30Smrg    ac_prev=libdir ;;
93067f05d30Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
93167f05d30Smrg    libdir=$ac_optarg ;;
93267f05d30Smrg
93367f05d30Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
93467f05d30Smrg  | --libexe | --libex | --libe)
93567f05d30Smrg    ac_prev=libexecdir ;;
93667f05d30Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
93767f05d30Smrg  | --libexe=* | --libex=* | --libe=*)
93867f05d30Smrg    libexecdir=$ac_optarg ;;
93967f05d30Smrg
940fffe5102Smrg  -localedir | --localedir | --localedi | --localed | --locale)
941fffe5102Smrg    ac_prev=localedir ;;
942fffe5102Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
943fffe5102Smrg    localedir=$ac_optarg ;;
944fffe5102Smrg
94567f05d30Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
946fffe5102Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
94767f05d30Smrg    ac_prev=localstatedir ;;
94867f05d30Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
949fffe5102Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
95067f05d30Smrg    localstatedir=$ac_optarg ;;
95167f05d30Smrg
95267f05d30Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
95367f05d30Smrg    ac_prev=mandir ;;
95467f05d30Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
95567f05d30Smrg    mandir=$ac_optarg ;;
95667f05d30Smrg
95767f05d30Smrg  -nfp | --nfp | --nf)
95867f05d30Smrg    # Obsolete; use --without-fp.
95967f05d30Smrg    with_fp=no ;;
96067f05d30Smrg
96167f05d30Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
96267f05d30Smrg  | --no-cr | --no-c | -n)
96367f05d30Smrg    no_create=yes ;;
96467f05d30Smrg
96567f05d30Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
96667f05d30Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
96767f05d30Smrg    no_recursion=yes ;;
96867f05d30Smrg
96967f05d30Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
97067f05d30Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
97167f05d30Smrg  | --oldin | --oldi | --old | --ol | --o)
97267f05d30Smrg    ac_prev=oldincludedir ;;
97367f05d30Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
97467f05d30Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
97567f05d30Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
97667f05d30Smrg    oldincludedir=$ac_optarg ;;
97767f05d30Smrg
97867f05d30Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
97967f05d30Smrg    ac_prev=prefix ;;
98067f05d30Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
98167f05d30Smrg    prefix=$ac_optarg ;;
98267f05d30Smrg
98367f05d30Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
98467f05d30Smrg  | --program-pre | --program-pr | --program-p)
98567f05d30Smrg    ac_prev=program_prefix ;;
98667f05d30Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
98767f05d30Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
98867f05d30Smrg    program_prefix=$ac_optarg ;;
98967f05d30Smrg
99067f05d30Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
99167f05d30Smrg  | --program-suf | --program-su | --program-s)
99267f05d30Smrg    ac_prev=program_suffix ;;
99367f05d30Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
99467f05d30Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
99567f05d30Smrg    program_suffix=$ac_optarg ;;
99667f05d30Smrg
99767f05d30Smrg  -program-transform-name | --program-transform-name \
99867f05d30Smrg  | --program-transform-nam | --program-transform-na \
99967f05d30Smrg  | --program-transform-n | --program-transform- \
100067f05d30Smrg  | --program-transform | --program-transfor \
100167f05d30Smrg  | --program-transfo | --program-transf \
100267f05d30Smrg  | --program-trans | --program-tran \
100367f05d30Smrg  | --progr-tra | --program-tr | --program-t)
100467f05d30Smrg    ac_prev=program_transform_name ;;
100567f05d30Smrg  -program-transform-name=* | --program-transform-name=* \
100667f05d30Smrg  | --program-transform-nam=* | --program-transform-na=* \
100767f05d30Smrg  | --program-transform-n=* | --program-transform-=* \
100867f05d30Smrg  | --program-transform=* | --program-transfor=* \
100967f05d30Smrg  | --program-transfo=* | --program-transf=* \
101067f05d30Smrg  | --program-trans=* | --program-tran=* \
101167f05d30Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
101267f05d30Smrg    program_transform_name=$ac_optarg ;;
101367f05d30Smrg
1014fffe5102Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1015fffe5102Smrg    ac_prev=pdfdir ;;
1016fffe5102Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1017fffe5102Smrg    pdfdir=$ac_optarg ;;
1018fffe5102Smrg
1019fffe5102Smrg  -psdir | --psdir | --psdi | --psd | --ps)
1020fffe5102Smrg    ac_prev=psdir ;;
1021fffe5102Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1022fffe5102Smrg    psdir=$ac_optarg ;;
1023fffe5102Smrg
102467f05d30Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
102567f05d30Smrg  | -silent | --silent | --silen | --sile | --sil)
102667f05d30Smrg    silent=yes ;;
102767f05d30Smrg
102867f05d30Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
102967f05d30Smrg    ac_prev=sbindir ;;
103067f05d30Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
103167f05d30Smrg  | --sbi=* | --sb=*)
103267f05d30Smrg    sbindir=$ac_optarg ;;
103367f05d30Smrg
103467f05d30Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
103567f05d30Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
103667f05d30Smrg  | --sharedst | --shareds | --shared | --share | --shar \
103767f05d30Smrg  | --sha | --sh)
103867f05d30Smrg    ac_prev=sharedstatedir ;;
103967f05d30Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
104067f05d30Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
104167f05d30Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
104267f05d30Smrg  | --sha=* | --sh=*)
104367f05d30Smrg    sharedstatedir=$ac_optarg ;;
104467f05d30Smrg
104567f05d30Smrg  -site | --site | --sit)
104667f05d30Smrg    ac_prev=site ;;
104767f05d30Smrg  -site=* | --site=* | --sit=*)
104867f05d30Smrg    site=$ac_optarg ;;
104967f05d30Smrg
105067f05d30Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
105167f05d30Smrg    ac_prev=srcdir ;;
105267f05d30Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
105367f05d30Smrg    srcdir=$ac_optarg ;;
105467f05d30Smrg
105567f05d30Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
105667f05d30Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
105767f05d30Smrg    ac_prev=sysconfdir ;;
105867f05d30Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
105967f05d30Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
106067f05d30Smrg    sysconfdir=$ac_optarg ;;
106167f05d30Smrg
106267f05d30Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
106367f05d30Smrg    ac_prev=target_alias ;;
106467f05d30Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
106567f05d30Smrg    target_alias=$ac_optarg ;;
106667f05d30Smrg
106767f05d30Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
106867f05d30Smrg    verbose=yes ;;
106967f05d30Smrg
107067f05d30Smrg  -version | --version | --versio | --versi | --vers | -V)
107167f05d30Smrg    ac_init_version=: ;;
107267f05d30Smrg
107367f05d30Smrg  -with-* | --with-*)
1074fffe5102Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
107567f05d30Smrg    # Reject names that are not valid shell variable names.
1076fffe5102Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077fffe5102Smrg      as_fn_error "invalid package name: $ac_useropt"
1078fffe5102Smrg    ac_useropt_orig=$ac_useropt
1079fffe5102Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080fffe5102Smrg    case $ac_user_opts in
1081fffe5102Smrg      *"
1082fffe5102Smrg"with_$ac_useropt"
1083fffe5102Smrg"*) ;;
1084fffe5102Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1085fffe5102Smrg	 ac_unrecognized_sep=', ';;
108667f05d30Smrg    esac
1087fffe5102Smrg    eval with_$ac_useropt=\$ac_optarg ;;
108867f05d30Smrg
108967f05d30Smrg  -without-* | --without-*)
1090fffe5102Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
109167f05d30Smrg    # Reject names that are not valid shell variable names.
1092fffe5102Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1093fffe5102Smrg      as_fn_error "invalid package name: $ac_useropt"
1094fffe5102Smrg    ac_useropt_orig=$ac_useropt
1095fffe5102Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096fffe5102Smrg    case $ac_user_opts in
1097fffe5102Smrg      *"
1098fffe5102Smrg"with_$ac_useropt"
1099fffe5102Smrg"*) ;;
1100fffe5102Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1101fffe5102Smrg	 ac_unrecognized_sep=', ';;
1102fffe5102Smrg    esac
1103fffe5102Smrg    eval with_$ac_useropt=no ;;
110467f05d30Smrg
110567f05d30Smrg  --x)
110667f05d30Smrg    # Obsolete; use --with-x.
110767f05d30Smrg    with_x=yes ;;
110867f05d30Smrg
110967f05d30Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
111067f05d30Smrg  | --x-incl | --x-inc | --x-in | --x-i)
111167f05d30Smrg    ac_prev=x_includes ;;
111267f05d30Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
111367f05d30Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
111467f05d30Smrg    x_includes=$ac_optarg ;;
111567f05d30Smrg
111667f05d30Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
111767f05d30Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
111867f05d30Smrg    ac_prev=x_libraries ;;
111967f05d30Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
112067f05d30Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
112167f05d30Smrg    x_libraries=$ac_optarg ;;
112267f05d30Smrg
1123fffe5102Smrg  -*) as_fn_error "unrecognized option: \`$ac_option'
1124fffe5102SmrgTry \`$0 --help' for more information."
112567f05d30Smrg    ;;
112667f05d30Smrg
112767f05d30Smrg  *=*)
112867f05d30Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
112967f05d30Smrg    # Reject names that are not valid shell variable names.
1130fffe5102Smrg    case $ac_envvar in #(
1131fffe5102Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
1132fffe5102Smrg      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1133fffe5102Smrg    esac
1134fffe5102Smrg    eval $ac_envvar=\$ac_optarg
113567f05d30Smrg    export $ac_envvar ;;
113667f05d30Smrg
113767f05d30Smrg  *)
113867f05d30Smrg    # FIXME: should be removed in autoconf 3.0.
1139fffe5102Smrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
114067f05d30Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1141fffe5102Smrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
114267f05d30Smrg    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
114367f05d30Smrg    ;;
114467f05d30Smrg
114567f05d30Smrg  esac
114667f05d30Smrgdone
114767f05d30Smrg
114867f05d30Smrgif test -n "$ac_prev"; then
114967f05d30Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1150fffe5102Smrg  as_fn_error "missing argument to $ac_option"
115167f05d30Smrgfi
115267f05d30Smrg
1153fffe5102Smrgif test -n "$ac_unrecognized_opts"; then
1154fffe5102Smrg  case $enable_option_checking in
1155fffe5102Smrg    no) ;;
1156fffe5102Smrg    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1157fffe5102Smrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
115867f05d30Smrg  esac
1159fffe5102Smrgfi
116067f05d30Smrg
1161fffe5102Smrg# Check all directory arguments for consistency.
1162fffe5102Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1163fffe5102Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1164fffe5102Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1165fffe5102Smrg		libdir localedir mandir
116667f05d30Smrgdo
1167fffe5102Smrg  eval ac_val=\$$ac_var
1168fffe5102Smrg  # Remove trailing slashes.
116967f05d30Smrg  case $ac_val in
1170fffe5102Smrg    */ )
1171fffe5102Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1172fffe5102Smrg      eval $ac_var=\$ac_val;;
117367f05d30Smrg  esac
1174fffe5102Smrg  # Be sure to have absolute directory names.
1175fffe5102Smrg  case $ac_val in
1176fffe5102Smrg    [\\/$]* | ?:[\\/]* )  continue;;
1177fffe5102Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1178fffe5102Smrg  esac
1179fffe5102Smrg  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
118067f05d30Smrgdone
118167f05d30Smrg
118267f05d30Smrg# There might be people who depend on the old broken behavior: `$host'
118367f05d30Smrg# used to hold the argument of --host etc.
118467f05d30Smrg# FIXME: To remove some day.
118567f05d30Smrgbuild=$build_alias
118667f05d30Smrghost=$host_alias
118767f05d30Smrgtarget=$target_alias
118867f05d30Smrg
118967f05d30Smrg# FIXME: To remove some day.
119067f05d30Smrgif test "x$host_alias" != x; then
119167f05d30Smrg  if test "x$build_alias" = x; then
119267f05d30Smrg    cross_compiling=maybe
1193fffe5102Smrg    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
119467f05d30Smrg    If a cross compiler is detected then cross compile mode will be used." >&2
119567f05d30Smrg  elif test "x$build_alias" != "x$host_alias"; then
119667f05d30Smrg    cross_compiling=yes
119767f05d30Smrg  fi
119867f05d30Smrgfi
119967f05d30Smrg
120067f05d30Smrgac_tool_prefix=
120167f05d30Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
120267f05d30Smrg
120367f05d30Smrgtest "$silent" = yes && exec 6>/dev/null
120467f05d30Smrg
120567f05d30Smrg
1206fffe5102Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1207fffe5102Smrgac_ls_di=`ls -di .` &&
1208fffe5102Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1209fffe5102Smrg  as_fn_error "working directory cannot be determined"
1210fffe5102Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1211fffe5102Smrg  as_fn_error "pwd does not report name of working directory"
1212fffe5102Smrg
1213fffe5102Smrg
121467f05d30Smrg# Find the source files, if location was not specified.
121567f05d30Smrgif test -z "$srcdir"; then
121667f05d30Smrg  ac_srcdir_defaulted=yes
1217fffe5102Smrg  # Try the directory containing this script, then the parent directory.
1218fffe5102Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
1219fffe5102Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1220fffe5102Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
1221fffe5102Smrg	 X"$as_myself" : 'X\(//\)$' \| \
1222fffe5102Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1223fffe5102Smrg$as_echo X"$as_myself" |
1224fffe5102Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1225fffe5102Smrg	    s//\1/
1226fffe5102Smrg	    q
1227fffe5102Smrg	  }
1228fffe5102Smrg	  /^X\(\/\/\)[^/].*/{
1229fffe5102Smrg	    s//\1/
1230fffe5102Smrg	    q
1231fffe5102Smrg	  }
1232fffe5102Smrg	  /^X\(\/\/\)$/{
1233fffe5102Smrg	    s//\1/
1234fffe5102Smrg	    q
1235fffe5102Smrg	  }
1236fffe5102Smrg	  /^X\(\/\).*/{
1237fffe5102Smrg	    s//\1/
1238fffe5102Smrg	    q
1239fffe5102Smrg	  }
1240fffe5102Smrg	  s/.*/./; q'`
124167f05d30Smrg  srcdir=$ac_confdir
1242fffe5102Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
124367f05d30Smrg    srcdir=..
124467f05d30Smrg  fi
124567f05d30Smrgelse
124667f05d30Smrg  ac_srcdir_defaulted=no
124767f05d30Smrgfi
1248fffe5102Smrgif test ! -r "$srcdir/$ac_unique_file"; then
1249fffe5102Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1250fffe5102Smrg  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1251fffe5102Smrgfi
1252fffe5102Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1253fffe5102Smrgac_abs_confdir=`(
1254fffe5102Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1255fffe5102Smrg	pwd)`
1256fffe5102Smrg# When building in place, set srcdir=.
1257fffe5102Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1258fffe5102Smrg  srcdir=.
1259fffe5102Smrgfi
1260fffe5102Smrg# Remove unnecessary trailing slashes from srcdir.
1261fffe5102Smrg# Double slashes in file names in object file debugging info
1262fffe5102Smrg# mess up M-x gdb in Emacs.
1263fffe5102Smrgcase $srcdir in
1264fffe5102Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1265fffe5102Smrgesac
1266fffe5102Smrgfor ac_var in $ac_precious_vars; do
1267fffe5102Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1268fffe5102Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
1269fffe5102Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1270fffe5102Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1271fffe5102Smrgdone
127267f05d30Smrg
127367f05d30Smrg#
127467f05d30Smrg# Report the --help message.
127567f05d30Smrg#
127667f05d30Smrgif test "$ac_init_help" = "long"; then
127767f05d30Smrg  # Omit some internal or obsolete options to make the list less imposing.
127867f05d30Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
127967f05d30Smrg  cat <<_ACEOF
1280fffe5102Smrg\`configure' configures viewres 1.0.2 to adapt to many kinds of systems.
128167f05d30Smrg
128267f05d30SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
128367f05d30Smrg
128467f05d30SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
128567f05d30SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
128667f05d30Smrg
128767f05d30SmrgDefaults for the options are specified in brackets.
128867f05d30Smrg
128967f05d30SmrgConfiguration:
129067f05d30Smrg  -h, --help              display this help and exit
129167f05d30Smrg      --help=short        display options specific to this package
129267f05d30Smrg      --help=recursive    display the short help of all the included packages
129367f05d30Smrg  -V, --version           display version information and exit
129467f05d30Smrg  -q, --quiet, --silent   do not print \`checking...' messages
129567f05d30Smrg      --cache-file=FILE   cache test results in FILE [disabled]
129667f05d30Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
129767f05d30Smrg  -n, --no-create         do not create output files
129867f05d30Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
129967f05d30Smrg
130067f05d30SmrgInstallation directories:
130167f05d30Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
1302fffe5102Smrg                          [$ac_default_prefix]
130367f05d30Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1304fffe5102Smrg                          [PREFIX]
130567f05d30Smrg
130667f05d30SmrgBy default, \`make install' will install all the files in
130767f05d30Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
130867f05d30Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
130967f05d30Smrgfor instance \`--prefix=\$HOME'.
131067f05d30Smrg
131167f05d30SmrgFor better control, use the options below.
131267f05d30Smrg
131367f05d30SmrgFine tuning of the installation directories:
1314fffe5102Smrg  --bindir=DIR            user executables [EPREFIX/bin]
1315fffe5102Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1316fffe5102Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
1317fffe5102Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1318fffe5102Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1319fffe5102Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1320fffe5102Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
1321fffe5102Smrg  --includedir=DIR        C header files [PREFIX/include]
1322fffe5102Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1323fffe5102Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1324fffe5102Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1325fffe5102Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
1326fffe5102Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1327fffe5102Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
1328fffe5102Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/viewres]
1329fffe5102Smrg  --htmldir=DIR           html documentation [DOCDIR]
1330fffe5102Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
1331fffe5102Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
1332fffe5102Smrg  --psdir=DIR             ps documentation [DOCDIR]
133367f05d30Smrg_ACEOF
133467f05d30Smrg
133567f05d30Smrg  cat <<\_ACEOF
133667f05d30Smrg
133767f05d30SmrgProgram names:
133867f05d30Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
133967f05d30Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
134067f05d30Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
134167f05d30Smrg
134267f05d30SmrgSystem types:
134367f05d30Smrg  --build=BUILD     configure for building on BUILD [guessed]
134467f05d30Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
134567f05d30Smrg_ACEOF
134667f05d30Smrgfi
134767f05d30Smrg
134867f05d30Smrgif test -n "$ac_init_help"; then
134967f05d30Smrg  case $ac_init_help in
1350fffe5102Smrg     short | recursive ) echo "Configuration of viewres 1.0.2:";;
135167f05d30Smrg   esac
135267f05d30Smrg  cat <<\_ACEOF
135367f05d30Smrg
135467f05d30SmrgOptional Features:
1355fffe5102Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
135667f05d30Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
135767f05d30Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1358fffe5102Smrg  --enable-maintainer-mode  enable make rules and dependencies not useful
1359fffe5102Smrg			  (and sometimes confusing) to the casual installer
1360fffe5102Smrg  --disable-dependency-tracking  speeds up one-time build
1361fffe5102Smrg  --enable-dependency-tracking   do not reject slow dependency extractors
1362fffe5102Smrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
1363fffe5102Smrg  --disable-silent-rules         verbose build output (undo: `make V=0')
1364fffe5102Smrg  --enable-strict-compilation
1365fffe5102Smrg                          Enable all warnings from compiler and make them
1366fffe5102Smrg                          errors (default: disabled)
136767f05d30Smrg
136867f05d30SmrgOptional Packages:
136967f05d30Smrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
137067f05d30Smrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
137167f05d30Smrg  --with-release-version=STRING
137267f05d30Smrg                          Use release version string in package name
1373fffe5102Smrg  --with-appdefaultdir=<pathname>
1374fffe5102Smrg                          specify directory for app-defaults files (default is
1375fffe5102Smrg                          autodetected)
137667f05d30Smrg
137767f05d30SmrgSome influential environment variables:
137867f05d30Smrg  CC          C compiler command
137967f05d30Smrg  CFLAGS      C compiler flags
138067f05d30Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
138167f05d30Smrg              nonstandard directory <lib dir>
1382fffe5102Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
1383fffe5102Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1384fffe5102Smrg              you have headers in a nonstandard directory <include dir>
1385fffe5102Smrg  CPP         C preprocessor
138667f05d30Smrg  PKG_CONFIG  path to pkg-config utility
1387fffe5102Smrg  VIEWRES_CFLAGS
1388fffe5102Smrg              C compiler flags for VIEWRES, overriding pkg-config
1389fffe5102Smrg  VIEWRES_LIBS
1390fffe5102Smrg              linker flags for VIEWRES, overriding pkg-config
139167f05d30Smrg  APPDEFS_CFLAGS
139267f05d30Smrg              C compiler flags for APPDEFS, overriding pkg-config
139367f05d30Smrg  APPDEFS_LIBS
139467f05d30Smrg              linker flags for APPDEFS, overriding pkg-config
139567f05d30Smrg
139667f05d30SmrgUse these variables to override the choices made by `configure' or to help
139767f05d30Smrgit to find libraries and programs with nonstandard names/locations.
139867f05d30Smrg
139967f05d30SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
140067f05d30Smrg_ACEOF
1401fffe5102Smrgac_status=$?
140267f05d30Smrgfi
140367f05d30Smrg
140467f05d30Smrgif test "$ac_init_help" = "recursive"; then
140567f05d30Smrg  # If there are subdirs, report their specific --help.
140667f05d30Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1407fffe5102Smrg    test -d "$ac_dir" ||
1408fffe5102Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1409fffe5102Smrg      continue
141067f05d30Smrg    ac_builddir=.
141167f05d30Smrg
1412fffe5102Smrgcase "$ac_dir" in
1413fffe5102Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1414fffe5102Smrg*)
1415fffe5102Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1416fffe5102Smrg  # A ".." for each directory in $ac_dir_suffix.
1417fffe5102Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1418fffe5102Smrg  case $ac_top_builddir_sub in
1419fffe5102Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1420fffe5102Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1421fffe5102Smrg  esac ;;
1422fffe5102Smrgesac
1423fffe5102Smrgac_abs_top_builddir=$ac_pwd
1424fffe5102Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1425fffe5102Smrg# for backward compatibility:
1426fffe5102Smrgac_top_builddir=$ac_top_build_prefix
142767f05d30Smrg
142867f05d30Smrgcase $srcdir in
1429fffe5102Smrg  .)  # We are building in place.
143067f05d30Smrg    ac_srcdir=.
1431fffe5102Smrg    ac_top_srcdir=$ac_top_builddir_sub
1432fffe5102Smrg    ac_abs_top_srcdir=$ac_pwd ;;
1433fffe5102Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
143467f05d30Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
1435fffe5102Smrg    ac_top_srcdir=$srcdir
1436fffe5102Smrg    ac_abs_top_srcdir=$srcdir ;;
1437fffe5102Smrg  *) # Relative name.
1438fffe5102Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1439fffe5102Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1440fffe5102Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
144167f05d30Smrgesac
1442fffe5102Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1443fffe5102Smrg
1444fffe5102Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
1445fffe5102Smrg    # Check for guested configure.
1446fffe5102Smrg    if test -f "$ac_srcdir/configure.gnu"; then
1447fffe5102Smrg      echo &&
1448fffe5102Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1449fffe5102Smrg    elif test -f "$ac_srcdir/configure"; then
1450fffe5102Smrg      echo &&
1451fffe5102Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
145267f05d30Smrg    else
1453fffe5102Smrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1454fffe5102Smrg    fi || ac_status=$?
1455fffe5102Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
145667f05d30Smrg  done
145767f05d30Smrgfi
145867f05d30Smrg
1459fffe5102Smrgtest -n "$ac_init_help" && exit $ac_status
146067f05d30Smrgif $ac_init_version; then
146167f05d30Smrg  cat <<\_ACEOF
1462fffe5102Smrgviewres configure 1.0.2
1463fffe5102Smrggenerated by GNU Autoconf 2.65
146467f05d30Smrg
1465fffe5102SmrgCopyright (C) 2009 Free Software Foundation, Inc.
146667f05d30SmrgThis configure script is free software; the Free Software Foundation
146767f05d30Smrggives unlimited permission to copy, distribute and modify it.
146867f05d30Smrg_ACEOF
1469fffe5102Smrg  exit
147067f05d30Smrgfi
147167f05d30Smrg
1472fffe5102Smrg## ------------------------ ##
1473fffe5102Smrg## Autoconf initialization. ##
1474fffe5102Smrg## ------------------------ ##
147567f05d30Smrg
1476fffe5102Smrg# ac_fn_c_try_compile LINENO
1477fffe5102Smrg# --------------------------
1478fffe5102Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
1479fffe5102Smrgac_fn_c_try_compile ()
148067f05d30Smrg{
1481fffe5102Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1482fffe5102Smrg  rm -f conftest.$ac_objext
1483fffe5102Smrg  if { { ac_try="$ac_compile"
1484fffe5102Smrgcase "(($ac_try" in
1485fffe5102Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1486fffe5102Smrg  *) ac_try_echo=$ac_try;;
1487fffe5102Smrgesac
1488fffe5102Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1489fffe5102Smrg$as_echo "$ac_try_echo"; } >&5
1490fffe5102Smrg  (eval "$ac_compile") 2>conftest.err
1491fffe5102Smrg  ac_status=$?
1492fffe5102Smrg  if test -s conftest.err; then
1493fffe5102Smrg    grep -v '^ *+' conftest.err >conftest.er1
1494fffe5102Smrg    cat conftest.er1 >&5
1495fffe5102Smrg    mv -f conftest.er1 conftest.err
1496fffe5102Smrg  fi
1497fffe5102Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1498fffe5102Smrg  test $ac_status = 0; } && {
1499fffe5102Smrg	 test -z "$ac_c_werror_flag" ||
1500fffe5102Smrg	 test ! -s conftest.err
1501fffe5102Smrg       } && test -s conftest.$ac_objext; then :
1502fffe5102Smrg  ac_retval=0
1503fffe5102Smrgelse
1504fffe5102Smrg  $as_echo "$as_me: failed program was:" >&5
1505fffe5102Smrgsed 's/^/| /' conftest.$ac_ext >&5
150667f05d30Smrg
1507fffe5102Smrg	ac_retval=1
1508fffe5102Smrgfi
1509fffe5102Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1510fffe5102Smrg  as_fn_set_status $ac_retval
151167f05d30Smrg
1512fffe5102Smrg} # ac_fn_c_try_compile
151367f05d30Smrg
1514fffe5102Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR
1515fffe5102Smrg# ------------------------------------
1516fffe5102Smrg# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1517fffe5102Smrgac_fn_c_check_decl ()
1518fffe5102Smrg{
1519fffe5102Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1520fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1521fffe5102Smrg$as_echo_n "checking whether $2 is declared... " >&6; }
1522fffe5102Smrgif { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1523fffe5102Smrg  $as_echo_n "(cached) " >&6
1524fffe5102Smrgelse
1525fffe5102Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1526fffe5102Smrg/* end confdefs.h.  */
1527fffe5102Smrg$4
1528fffe5102Smrgint
1529fffe5102Smrgmain ()
1530fffe5102Smrg{
1531fffe5102Smrg#ifndef $2
1532fffe5102Smrg  (void) $2;
1533fffe5102Smrg#endif
153467f05d30Smrg
1535fffe5102Smrg  ;
1536fffe5102Smrg  return 0;
1537fffe5102Smrg}
1538fffe5102Smrg_ACEOF
1539fffe5102Smrgif ac_fn_c_try_compile "$LINENO"; then :
1540fffe5102Smrg  eval "$3=yes"
1541fffe5102Smrgelse
1542fffe5102Smrg  eval "$3=no"
1543fffe5102Smrgfi
1544fffe5102Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1545fffe5102Smrgfi
1546fffe5102Smrgeval ac_res=\$$3
1547fffe5102Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1548fffe5102Smrg$as_echo "$ac_res" >&6; }
1549fffe5102Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
155067f05d30Smrg
1551fffe5102Smrg} # ac_fn_c_check_decl
1552fffe5102Smrg
1553fffe5102Smrg# ac_fn_c_try_cpp LINENO
1554fffe5102Smrg# ----------------------
1555fffe5102Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1556fffe5102Smrgac_fn_c_try_cpp ()
1557fffe5102Smrg{
1558fffe5102Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559fffe5102Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
1560fffe5102Smrgcase "(($ac_try" in
1561fffe5102Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562fffe5102Smrg  *) ac_try_echo=$ac_try;;
1563fffe5102Smrgesac
1564fffe5102Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565fffe5102Smrg$as_echo "$ac_try_echo"; } >&5
1566fffe5102Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1567fffe5102Smrg  ac_status=$?
1568fffe5102Smrg  if test -s conftest.err; then
1569fffe5102Smrg    grep -v '^ *+' conftest.err >conftest.er1
1570fffe5102Smrg    cat conftest.er1 >&5
1571fffe5102Smrg    mv -f conftest.er1 conftest.err
1572fffe5102Smrg  fi
1573fffe5102Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574fffe5102Smrg  test $ac_status = 0; } >/dev/null && {
1575fffe5102Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1576fffe5102Smrg	 test ! -s conftest.err
1577fffe5102Smrg       }; then :
1578fffe5102Smrg  ac_retval=0
1579fffe5102Smrgelse
1580fffe5102Smrg  $as_echo "$as_me: failed program was:" >&5
1581fffe5102Smrgsed 's/^/| /' conftest.$ac_ext >&5
1582fffe5102Smrg
1583fffe5102Smrg    ac_retval=1
1584fffe5102Smrgfi
1585fffe5102Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1586fffe5102Smrg  as_fn_set_status $ac_retval
1587fffe5102Smrg
1588fffe5102Smrg} # ac_fn_c_try_cpp
1589fffe5102Smrg
1590fffe5102Smrg# ac_fn_c_try_run LINENO
1591fffe5102Smrg# ----------------------
1592fffe5102Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1593fffe5102Smrg# that executables *can* be run.
1594fffe5102Smrgac_fn_c_try_run ()
1595fffe5102Smrg{
1596fffe5102Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597fffe5102Smrg  if { { ac_try="$ac_link"
1598fffe5102Smrgcase "(($ac_try" in
1599fffe5102Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600fffe5102Smrg  *) ac_try_echo=$ac_try;;
1601fffe5102Smrgesac
1602fffe5102Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603fffe5102Smrg$as_echo "$ac_try_echo"; } >&5
1604fffe5102Smrg  (eval "$ac_link") 2>&5
1605fffe5102Smrg  ac_status=$?
1606fffe5102Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607fffe5102Smrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1608fffe5102Smrg  { { case "(($ac_try" in
1609fffe5102Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610fffe5102Smrg  *) ac_try_echo=$ac_try;;
1611fffe5102Smrgesac
1612fffe5102Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613fffe5102Smrg$as_echo "$ac_try_echo"; } >&5
1614fffe5102Smrg  (eval "$ac_try") 2>&5
1615fffe5102Smrg  ac_status=$?
1616fffe5102Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617fffe5102Smrg  test $ac_status = 0; }; }; then :
1618fffe5102Smrg  ac_retval=0
1619fffe5102Smrgelse
1620fffe5102Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
1621fffe5102Smrg       $as_echo "$as_me: failed program was:" >&5
1622fffe5102Smrgsed 's/^/| /' conftest.$ac_ext >&5
1623fffe5102Smrg
1624fffe5102Smrg       ac_retval=$ac_status
1625fffe5102Smrgfi
1626fffe5102Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1627fffe5102Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1628fffe5102Smrg  as_fn_set_status $ac_retval
1629fffe5102Smrg
1630fffe5102Smrg} # ac_fn_c_try_run
1631fffe5102Smrg
1632fffe5102Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1633fffe5102Smrg# -------------------------------------------------------
1634fffe5102Smrg# Tests whether HEADER exists and can be compiled using the include files in
1635fffe5102Smrg# INCLUDES, setting the cache variable VAR accordingly.
1636fffe5102Smrgac_fn_c_check_header_compile ()
1637fffe5102Smrg{
1638fffe5102Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1640fffe5102Smrg$as_echo_n "checking for $2... " >&6; }
1641fffe5102Smrgif { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1642fffe5102Smrg  $as_echo_n "(cached) " >&6
1643fffe5102Smrgelse
1644fffe5102Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1645fffe5102Smrg/* end confdefs.h.  */
1646fffe5102Smrg$4
1647fffe5102Smrg#include <$2>
1648fffe5102Smrg_ACEOF
1649fffe5102Smrgif ac_fn_c_try_compile "$LINENO"; then :
1650fffe5102Smrg  eval "$3=yes"
1651fffe5102Smrgelse
1652fffe5102Smrg  eval "$3=no"
1653fffe5102Smrgfi
1654fffe5102Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1655fffe5102Smrgfi
1656fffe5102Smrgeval ac_res=\$$3
1657fffe5102Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1658fffe5102Smrg$as_echo "$ac_res" >&6; }
1659fffe5102Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1660fffe5102Smrg
1661fffe5102Smrg} # ac_fn_c_check_header_compile
1662fffe5102Smrgcat >config.log <<_ACEOF
1663fffe5102SmrgThis file contains any messages produced by compilers while
1664fffe5102Smrgrunning configure, to aid debugging if configure makes a mistake.
1665fffe5102Smrg
1666fffe5102SmrgIt was created by viewres $as_me 1.0.2, which was
1667fffe5102Smrggenerated by GNU Autoconf 2.65.  Invocation command line was
1668fffe5102Smrg
1669fffe5102Smrg  $ $0 $@
1670fffe5102Smrg
1671fffe5102Smrg_ACEOF
1672fffe5102Smrgexec 5>>config.log
1673fffe5102Smrg{
1674fffe5102Smrgcat <<_ASUNAME
1675fffe5102Smrg## --------- ##
1676fffe5102Smrg## Platform. ##
1677fffe5102Smrg## --------- ##
1678fffe5102Smrg
1679fffe5102Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1680fffe5102Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
1681fffe5102Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
1682fffe5102Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
1683fffe5102Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
1684fffe5102Smrg
1685fffe5102Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1686fffe5102Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1687fffe5102Smrg
1688fffe5102Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1689fffe5102Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1690fffe5102Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1691fffe5102Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1692fffe5102Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1693fffe5102Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1694fffe5102Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1695fffe5102Smrg
1696fffe5102Smrg_ASUNAME
1697fffe5102Smrg
1698fffe5102Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699fffe5102Smrgfor as_dir in $PATH
1700fffe5102Smrgdo
1701fffe5102Smrg  IFS=$as_save_IFS
170267f05d30Smrg  test -z "$as_dir" && as_dir=.
1703fffe5102Smrg    $as_echo "PATH: $as_dir"
1704fffe5102Smrg  done
1705fffe5102SmrgIFS=$as_save_IFS
170667f05d30Smrg
170767f05d30Smrg} >&5
170867f05d30Smrg
170967f05d30Smrgcat >&5 <<_ACEOF
171067f05d30Smrg
171167f05d30Smrg
171267f05d30Smrg## ----------- ##
171367f05d30Smrg## Core tests. ##
171467f05d30Smrg## ----------- ##
171567f05d30Smrg
171667f05d30Smrg_ACEOF
171767f05d30Smrg
171867f05d30Smrg
171967f05d30Smrg# Keep a trace of the command line.
172067f05d30Smrg# Strip out --no-create and --no-recursion so they do not pile up.
172167f05d30Smrg# Strip out --silent because we don't want to record it for future runs.
172267f05d30Smrg# Also quote any args containing shell meta-characters.
172367f05d30Smrg# Make two passes to allow for proper duplicate-argument suppression.
172467f05d30Smrgac_configure_args=
172567f05d30Smrgac_configure_args0=
172667f05d30Smrgac_configure_args1=
172767f05d30Smrgac_must_keep_next=false
172867f05d30Smrgfor ac_pass in 1 2
172967f05d30Smrgdo
173067f05d30Smrg  for ac_arg
173167f05d30Smrg  do
173267f05d30Smrg    case $ac_arg in
173367f05d30Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
173467f05d30Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
173567f05d30Smrg    | -silent | --silent | --silen | --sile | --sil)
173667f05d30Smrg      continue ;;
1737fffe5102Smrg    *\'*)
1738fffe5102Smrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
173967f05d30Smrg    esac
174067f05d30Smrg    case $ac_pass in
1741fffe5102Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
174267f05d30Smrg    2)
1743fffe5102Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
174467f05d30Smrg      if test $ac_must_keep_next = true; then
174567f05d30Smrg	ac_must_keep_next=false # Got value, back to normal.
174667f05d30Smrg      else
174767f05d30Smrg	case $ac_arg in
174867f05d30Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
174967f05d30Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
175067f05d30Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
175167f05d30Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
175267f05d30Smrg	    case "$ac_configure_args0 " in
175367f05d30Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
175467f05d30Smrg	    esac
175567f05d30Smrg	    ;;
175667f05d30Smrg	  -* ) ac_must_keep_next=true ;;
175767f05d30Smrg	esac
175867f05d30Smrg      fi
1759fffe5102Smrg      as_fn_append ac_configure_args " '$ac_arg'"
176067f05d30Smrg      ;;
176167f05d30Smrg    esac
176267f05d30Smrg  done
176367f05d30Smrgdone
1764fffe5102Smrg{ ac_configure_args0=; unset ac_configure_args0;}
1765fffe5102Smrg{ ac_configure_args1=; unset ac_configure_args1;}
176667f05d30Smrg
176767f05d30Smrg# When interrupted or exit'd, cleanup temporary files, and complete
176867f05d30Smrg# config.log.  We remove comments because anyway the quotes in there
176967f05d30Smrg# would cause problems or look ugly.
1770fffe5102Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
1771fffe5102Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
177267f05d30Smrgtrap 'exit_status=$?
177367f05d30Smrg  # Save into config.log some information that might help in debugging.
177467f05d30Smrg  {
177567f05d30Smrg    echo
177667f05d30Smrg
177767f05d30Smrg    cat <<\_ASBOX
177867f05d30Smrg## ---------------- ##
177967f05d30Smrg## Cache variables. ##
178067f05d30Smrg## ---------------- ##
178167f05d30Smrg_ASBOX
178267f05d30Smrg    echo
178367f05d30Smrg    # The following way of writing the cache mishandles newlines in values,
1784fffe5102Smrg(
1785fffe5102Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1786fffe5102Smrg    eval ac_val=\$$ac_var
1787fffe5102Smrg    case $ac_val in #(
1788fffe5102Smrg    *${as_nl}*)
1789fffe5102Smrg      case $ac_var in #(
1790fffe5102Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1791fffe5102Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1792fffe5102Smrg      esac
1793fffe5102Smrg      case $ac_var in #(
1794fffe5102Smrg      _ | IFS | as_nl) ;; #(
1795fffe5102Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1796fffe5102Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
1797fffe5102Smrg      esac ;;
1798fffe5102Smrg    esac
1799fffe5102Smrg  done
180067f05d30Smrg  (set) 2>&1 |
1801fffe5102Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1802fffe5102Smrg    *${as_nl}ac_space=\ *)
180367f05d30Smrg      sed -n \
1804fffe5102Smrg	"s/'\''/'\''\\\\'\'''\''/g;
1805fffe5102Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1806fffe5102Smrg      ;; #(
180767f05d30Smrg    *)
1808fffe5102Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
180967f05d30Smrg      ;;
1810fffe5102Smrg    esac |
1811fffe5102Smrg    sort
1812fffe5102Smrg)
181367f05d30Smrg    echo
181467f05d30Smrg
181567f05d30Smrg    cat <<\_ASBOX
181667f05d30Smrg## ----------------- ##
181767f05d30Smrg## Output variables. ##
181867f05d30Smrg## ----------------- ##
181967f05d30Smrg_ASBOX
182067f05d30Smrg    echo
182167f05d30Smrg    for ac_var in $ac_subst_vars
182267f05d30Smrg    do
1823fffe5102Smrg      eval ac_val=\$$ac_var
1824fffe5102Smrg      case $ac_val in
1825fffe5102Smrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1826fffe5102Smrg      esac
1827fffe5102Smrg      $as_echo "$ac_var='\''$ac_val'\''"
182867f05d30Smrg    done | sort
182967f05d30Smrg    echo
183067f05d30Smrg
183167f05d30Smrg    if test -n "$ac_subst_files"; then
183267f05d30Smrg      cat <<\_ASBOX
1833fffe5102Smrg## ------------------- ##
1834fffe5102Smrg## File substitutions. ##
1835fffe5102Smrg## ------------------- ##
183667f05d30Smrg_ASBOX
183767f05d30Smrg      echo
183867f05d30Smrg      for ac_var in $ac_subst_files
183967f05d30Smrg      do
1840fffe5102Smrg	eval ac_val=\$$ac_var
1841fffe5102Smrg	case $ac_val in
1842fffe5102Smrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1843fffe5102Smrg	esac
1844fffe5102Smrg	$as_echo "$ac_var='\''$ac_val'\''"
184567f05d30Smrg      done | sort
184667f05d30Smrg      echo
184767f05d30Smrg    fi
184867f05d30Smrg
184967f05d30Smrg    if test -s confdefs.h; then
185067f05d30Smrg      cat <<\_ASBOX
185167f05d30Smrg## ----------- ##
185267f05d30Smrg## confdefs.h. ##
185367f05d30Smrg## ----------- ##
185467f05d30Smrg_ASBOX
185567f05d30Smrg      echo
1856fffe5102Smrg      cat confdefs.h
185767f05d30Smrg      echo
185867f05d30Smrg    fi
185967f05d30Smrg    test "$ac_signal" != 0 &&
1860fffe5102Smrg      $as_echo "$as_me: caught signal $ac_signal"
1861fffe5102Smrg    $as_echo "$as_me: exit $exit_status"
186267f05d30Smrg  } >&5
1863fffe5102Smrg  rm -f core *.core core.conftest.* &&
1864fffe5102Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
186567f05d30Smrg    exit $exit_status
1866fffe5102Smrg' 0
186767f05d30Smrgfor ac_signal in 1 2 13 15; do
1868fffe5102Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
186967f05d30Smrgdone
187067f05d30Smrgac_signal=0
187167f05d30Smrg
187267f05d30Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
1873fffe5102Smrgrm -f -r conftest* confdefs.h
1874fffe5102Smrg
1875fffe5102Smrg$as_echo "/* confdefs.h */" > confdefs.h
187667f05d30Smrg
187767f05d30Smrg# Predefined preprocessor variables.
187867f05d30Smrg
187967f05d30Smrgcat >>confdefs.h <<_ACEOF
188067f05d30Smrg#define PACKAGE_NAME "$PACKAGE_NAME"
188167f05d30Smrg_ACEOF
188267f05d30Smrg
188367f05d30Smrgcat >>confdefs.h <<_ACEOF
188467f05d30Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
188567f05d30Smrg_ACEOF
188667f05d30Smrg
188767f05d30Smrgcat >>confdefs.h <<_ACEOF
188867f05d30Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
188967f05d30Smrg_ACEOF
189067f05d30Smrg
189167f05d30Smrgcat >>confdefs.h <<_ACEOF
189267f05d30Smrg#define PACKAGE_STRING "$PACKAGE_STRING"
189367f05d30Smrg_ACEOF
189467f05d30Smrg
189567f05d30Smrgcat >>confdefs.h <<_ACEOF
189667f05d30Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
189767f05d30Smrg_ACEOF
189867f05d30Smrg
1899fffe5102Smrgcat >>confdefs.h <<_ACEOF
1900fffe5102Smrg#define PACKAGE_URL "$PACKAGE_URL"
1901fffe5102Smrg_ACEOF
1902fffe5102Smrg
190367f05d30Smrg
190467f05d30Smrg# Let the site file select an alternate cache file if it wants to.
1905fffe5102Smrg# Prefer an explicitly selected file to automatically selected ones.
1906fffe5102Smrgac_site_file1=NONE
1907fffe5102Smrgac_site_file2=NONE
1908fffe5102Smrgif test -n "$CONFIG_SITE"; then
1909fffe5102Smrg  ac_site_file1=$CONFIG_SITE
1910fffe5102Smrgelif test "x$prefix" != xNONE; then
1911fffe5102Smrg  ac_site_file1=$prefix/share/config.site
1912fffe5102Smrg  ac_site_file2=$prefix/etc/config.site
1913fffe5102Smrgelse
1914fffe5102Smrg  ac_site_file1=$ac_default_prefix/share/config.site
1915fffe5102Smrg  ac_site_file2=$ac_default_prefix/etc/config.site
191667f05d30Smrgfi
1917fffe5102Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
1918fffe5102Smrgdo
1919fffe5102Smrg  test "x$ac_site_file" = xNONE && continue
1920fffe5102Smrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1921fffe5102Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1922fffe5102Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
192367f05d30Smrg    sed 's/^/| /' "$ac_site_file" >&5
192467f05d30Smrg    . "$ac_site_file"
192567f05d30Smrg  fi
192667f05d30Smrgdone
192767f05d30Smrg
192867f05d30Smrgif test -r "$cache_file"; then
1929fffe5102Smrg  # Some versions of bash will fail to source /dev/null (special files
1930fffe5102Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1931fffe5102Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1932fffe5102Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1933fffe5102Smrg$as_echo "$as_me: loading cache $cache_file" >&6;}
193467f05d30Smrg    case $cache_file in
1935fffe5102Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1936fffe5102Smrg      *)                      . "./$cache_file";;
193767f05d30Smrg    esac
193867f05d30Smrg  fi
193967f05d30Smrgelse
1940fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1941fffe5102Smrg$as_echo "$as_me: creating cache $cache_file" >&6;}
194267f05d30Smrg  >$cache_file
194367f05d30Smrgfi
194467f05d30Smrg
194567f05d30Smrg# Check that the precious variables saved in the cache have kept the same
194667f05d30Smrg# value.
194767f05d30Smrgac_cache_corrupted=false
1948fffe5102Smrgfor ac_var in $ac_precious_vars; do
194967f05d30Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
195067f05d30Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
1951fffe5102Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1952fffe5102Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
195367f05d30Smrg  case $ac_old_set,$ac_new_set in
195467f05d30Smrg    set,)
1955fffe5102Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1956fffe5102Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
195767f05d30Smrg      ac_cache_corrupted=: ;;
195867f05d30Smrg    ,set)
1959fffe5102Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1960fffe5102Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
196167f05d30Smrg      ac_cache_corrupted=: ;;
196267f05d30Smrg    ,);;
196367f05d30Smrg    *)
196467f05d30Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
1965fffe5102Smrg	# differences in whitespace do not lead to failure.
1966fffe5102Smrg	ac_old_val_w=`echo x $ac_old_val`
1967fffe5102Smrg	ac_new_val_w=`echo x $ac_new_val`
1968fffe5102Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1969fffe5102Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1970fffe5102Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1971fffe5102Smrg	  ac_cache_corrupted=:
1972fffe5102Smrg	else
1973fffe5102Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1974fffe5102Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1975fffe5102Smrg	  eval $ac_var=\$ac_old_val
1976fffe5102Smrg	fi
1977fffe5102Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1978fffe5102Smrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1979fffe5102Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1980fffe5102Smrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
198167f05d30Smrg      fi;;
198267f05d30Smrg  esac
198367f05d30Smrg  # Pass precious variables to config.status.
198467f05d30Smrg  if test "$ac_new_set" = set; then
198567f05d30Smrg    case $ac_new_val in
1986fffe5102Smrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
198767f05d30Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
198867f05d30Smrg    esac
198967f05d30Smrg    case " $ac_configure_args " in
199067f05d30Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1991fffe5102Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
199267f05d30Smrg    esac
199367f05d30Smrg  fi
199467f05d30Smrgdone
199567f05d30Smrgif $ac_cache_corrupted; then
1996fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1997fffe5102Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1998fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1999fffe5102Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2000fffe5102Smrg  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
200167f05d30Smrgfi
2002fffe5102Smrg## -------------------- ##
2003fffe5102Smrg## Main body of script. ##
2004fffe5102Smrg## -------------------- ##
200567f05d30Smrg
200667f05d30Smrgac_ext=c
200767f05d30Smrgac_cpp='$CPP $CPPFLAGS'
200867f05d30Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
200967f05d30Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
201067f05d30Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
201167f05d30Smrg
201267f05d30Smrg
2013fffe5102Smrgam__api_version='1.11'
201467f05d30Smrg
201567f05d30Smrgac_aux_dir=
2016fffe5102Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2017fffe5102Smrg  for ac_t in install-sh install.sh shtool; do
2018fffe5102Smrg    if test -f "$ac_dir/$ac_t"; then
2019fffe5102Smrg      ac_aux_dir=$ac_dir
2020fffe5102Smrg      ac_install_sh="$ac_aux_dir/$ac_t -c"
2021fffe5102Smrg      break 2
2022fffe5102Smrg    fi
2023fffe5102Smrg  done
202467f05d30Smrgdone
202567f05d30Smrgif test -z "$ac_aux_dir"; then
2026fffe5102Smrg  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
202767f05d30Smrgfi
2028fffe5102Smrg
2029fffe5102Smrg# These three variables are undocumented and unsupported,
2030fffe5102Smrg# and are intended to be withdrawn in a future Autoconf release.
2031fffe5102Smrg# They can cause serious problems if a builder's source tree is in a directory
2032fffe5102Smrg# whose full name contains unusual characters.
2033fffe5102Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2034fffe5102Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2035fffe5102Smrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2036fffe5102Smrg
203767f05d30Smrg
203867f05d30Smrg# Find a good install program.  We prefer a C program (faster),
203967f05d30Smrg# so one script is as good as another.  But avoid the broken or
204067f05d30Smrg# incompatible versions:
204167f05d30Smrg# SysV /etc/install, /usr/sbin/install
204267f05d30Smrg# SunOS /usr/etc/install
204367f05d30Smrg# IRIX /sbin/install
204467f05d30Smrg# AIX /bin/install
204567f05d30Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
204667f05d30Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
204767f05d30Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
204867f05d30Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
204967f05d30Smrg# OS/2's system install, which has a completely different semantic
205067f05d30Smrg# ./install, which can be erroneously created by make from ./install.sh.
2051fffe5102Smrg# Reject install programs that cannot install multiple files.
2052fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2053fffe5102Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
205467f05d30Smrgif test -z "$INSTALL"; then
2055fffe5102Smrgif test "${ac_cv_path_install+set}" = set; then :
2056fffe5102Smrg  $as_echo_n "(cached) " >&6
205767f05d30Smrgelse
205867f05d30Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
205967f05d30Smrgfor as_dir in $PATH
206067f05d30Smrgdo
206167f05d30Smrg  IFS=$as_save_IFS
206267f05d30Smrg  test -z "$as_dir" && as_dir=.
2063fffe5102Smrg    # Account for people who put trailing slashes in PATH elements.
2064fffe5102Smrgcase $as_dir/ in #((
2065fffe5102Smrg  ./ | .// | /[cC]/* | \
206667f05d30Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2067fffe5102Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
206867f05d30Smrg  /usr/ucb/* ) ;;
206967f05d30Smrg  *)
207067f05d30Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
207167f05d30Smrg    # Don't use installbsd from OSF since it installs stuff as root
207267f05d30Smrg    # by default.
207367f05d30Smrg    for ac_prog in ginstall scoinst install; do
207467f05d30Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
2075fffe5102Smrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
207667f05d30Smrg	  if test $ac_prog = install &&
207767f05d30Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
207867f05d30Smrg	    # AIX install.  It has an incompatible calling convention.
207967f05d30Smrg	    :
208067f05d30Smrg	  elif test $ac_prog = install &&
208167f05d30Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
208267f05d30Smrg	    # program-specific install script used by HP pwplus--don't use.
208367f05d30Smrg	    :
208467f05d30Smrg	  else
2085fffe5102Smrg	    rm -rf conftest.one conftest.two conftest.dir
2086fffe5102Smrg	    echo one > conftest.one
2087fffe5102Smrg	    echo two > conftest.two
2088fffe5102Smrg	    mkdir conftest.dir
2089fffe5102Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2090fffe5102Smrg	      test -s conftest.one && test -s conftest.two &&
2091fffe5102Smrg	      test -s conftest.dir/conftest.one &&
2092fffe5102Smrg	      test -s conftest.dir/conftest.two
2093fffe5102Smrg	    then
2094fffe5102Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2095fffe5102Smrg	      break 3
2096fffe5102Smrg	    fi
209767f05d30Smrg	  fi
209867f05d30Smrg	fi
209967f05d30Smrg      done
210067f05d30Smrg    done
210167f05d30Smrg    ;;
210267f05d30Smrgesac
210367f05d30Smrg
2104fffe5102Smrg  done
2105fffe5102SmrgIFS=$as_save_IFS
2106fffe5102Smrg
2107fffe5102Smrgrm -rf conftest.one conftest.two conftest.dir
210867f05d30Smrg
210967f05d30Smrgfi
211067f05d30Smrg  if test "${ac_cv_path_install+set}" = set; then
211167f05d30Smrg    INSTALL=$ac_cv_path_install
211267f05d30Smrg  else
2113fffe5102Smrg    # As a last resort, use the slow shell script.  Don't cache a
2114fffe5102Smrg    # value for INSTALL within a source directory, because that will
211567f05d30Smrg    # break other packages using the cache if that directory is
2116fffe5102Smrg    # removed, or if the value is a relative name.
211767f05d30Smrg    INSTALL=$ac_install_sh
211867f05d30Smrg  fi
211967f05d30Smrgfi
2120fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2121fffe5102Smrg$as_echo "$INSTALL" >&6; }
212267f05d30Smrg
212367f05d30Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
212467f05d30Smrg# It thinks the first close brace ends the variable substitution.
212567f05d30Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
212667f05d30Smrg
212767f05d30Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
212867f05d30Smrg
212967f05d30Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
213067f05d30Smrg
2131fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2132fffe5102Smrg$as_echo_n "checking whether build environment is sane... " >&6; }
213367f05d30Smrg# Just in case
213467f05d30Smrgsleep 1
213567f05d30Smrgecho timestamp > conftest.file
2136fffe5102Smrg# Reject unsafe characters in $srcdir or the absolute working directory
2137fffe5102Smrg# name.  Accept space and tab only in the latter.
2138fffe5102Smrgam_lf='
2139fffe5102Smrg'
2140fffe5102Smrgcase `pwd` in
2141fffe5102Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
2142fffe5102Smrg    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2143fffe5102Smrgesac
2144fffe5102Smrgcase $srcdir in
2145fffe5102Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2146fffe5102Smrg    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2147fffe5102Smrgesac
2148fffe5102Smrg
214967f05d30Smrg# Do `set' in a subshell so we don't clobber the current shell's
215067f05d30Smrg# arguments.  Must try -L first in case configure is actually a
215167f05d30Smrg# symlink; some systems play weird games with the mod time of symlinks
215267f05d30Smrg# (eg FreeBSD returns the mod time of the symlink's containing
215367f05d30Smrg# directory).
215467f05d30Smrgif (
2155fffe5102Smrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
215667f05d30Smrg   if test "$*" = "X"; then
215767f05d30Smrg      # -L didn't work.
2158fffe5102Smrg      set X `ls -t "$srcdir/configure" conftest.file`
215967f05d30Smrg   fi
216067f05d30Smrg   rm -f conftest.file
216167f05d30Smrg   if test "$*" != "X $srcdir/configure conftest.file" \
216267f05d30Smrg      && test "$*" != "X conftest.file $srcdir/configure"; then
216367f05d30Smrg
216467f05d30Smrg      # If neither matched, then we have a broken ls.  This can happen
216567f05d30Smrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
216667f05d30Smrg      # broken ls alias from the environment.  This has actually
216767f05d30Smrg      # happened.  Such a system could not be considered "sane".
2168fffe5102Smrg      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2169fffe5102Smrgalias in your environment" "$LINENO" 5
217067f05d30Smrg   fi
217167f05d30Smrg
217267f05d30Smrg   test "$2" = conftest.file
217367f05d30Smrg   )
217467f05d30Smrgthen
217567f05d30Smrg   # Ok.
217667f05d30Smrg   :
217767f05d30Smrgelse
2178fffe5102Smrg   as_fn_error "newly created file is older than distributed files!
2179fffe5102SmrgCheck your system clock" "$LINENO" 5
218067f05d30Smrgfi
2181fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2182fffe5102Smrg$as_echo "yes" >&6; }
218367f05d30Smrgtest "$program_prefix" != NONE &&
2184fffe5102Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
218567f05d30Smrg# Use a double $ so make ignores it.
218667f05d30Smrgtest "$program_suffix" != NONE &&
2187fffe5102Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2188fffe5102Smrg# Double any \ or $.
218967f05d30Smrg# By default was `s,x,x', remove it if useless.
2190fffe5102Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2191fffe5102Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
219267f05d30Smrg
219367f05d30Smrg# expand $ac_aux_dir to an absolute path
219467f05d30Smrgam_aux_dir=`cd $ac_aux_dir && pwd`
219567f05d30Smrg
2196fffe5102Smrgif test x"${MISSING+set}" != xset; then
2197fffe5102Smrg  case $am_aux_dir in
2198fffe5102Smrg  *\ * | *\	*)
2199fffe5102Smrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2200fffe5102Smrg  *)
2201fffe5102Smrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2202fffe5102Smrg  esac
2203fffe5102Smrgfi
220467f05d30Smrg# Use eval to expand $SHELL
220567f05d30Smrgif eval "$MISSING --run true"; then
220667f05d30Smrg  am_missing_run="$MISSING --run "
220767f05d30Smrgelse
220867f05d30Smrg  am_missing_run=
2209fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2210fffe5102Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2211fffe5102Smrgfi
2212fffe5102Smrg
2213fffe5102Smrgif test x"${install_sh}" != xset; then
2214fffe5102Smrg  case $am_aux_dir in
2215fffe5102Smrg  *\ * | *\	*)
2216fffe5102Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2217fffe5102Smrg  *)
2218fffe5102Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
2219fffe5102Smrg  esac
2220fffe5102Smrgfi
2221fffe5102Smrg
2222fffe5102Smrg# Installed binaries are usually stripped using `strip' when the user
2223fffe5102Smrg# run `make install-strip'.  However `strip' might not be the right
2224fffe5102Smrg# tool to use in cross-compilation environments, therefore Automake
2225fffe5102Smrg# will honor the `STRIP' environment variable to overrule this program.
2226fffe5102Smrgif test "$cross_compiling" != no; then
2227fffe5102Smrg  if test -n "$ac_tool_prefix"; then
2228fffe5102Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2229fffe5102Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
2230fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2231fffe5102Smrg$as_echo_n "checking for $ac_word... " >&6; }
2232fffe5102Smrgif test "${ac_cv_prog_STRIP+set}" = set; then :
2233fffe5102Smrg  $as_echo_n "(cached) " >&6
2234fffe5102Smrgelse
2235fffe5102Smrg  if test -n "$STRIP"; then
2236fffe5102Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2237fffe5102Smrgelse
2238fffe5102Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239fffe5102Smrgfor as_dir in $PATH
2240fffe5102Smrgdo
2241fffe5102Smrg  IFS=$as_save_IFS
2242fffe5102Smrg  test -z "$as_dir" && as_dir=.
2243fffe5102Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2244fffe5102Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2245fffe5102Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2246fffe5102Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2247fffe5102Smrg    break 2
2248fffe5102Smrg  fi
2249fffe5102Smrgdone
2250fffe5102Smrg  done
2251fffe5102SmrgIFS=$as_save_IFS
2252fffe5102Smrg
2253fffe5102Smrgfi
2254fffe5102Smrgfi
2255fffe5102SmrgSTRIP=$ac_cv_prog_STRIP
2256fffe5102Smrgif test -n "$STRIP"; then
2257fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2258fffe5102Smrg$as_echo "$STRIP" >&6; }
2259fffe5102Smrgelse
2260fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2261fffe5102Smrg$as_echo "no" >&6; }
2262fffe5102Smrgfi
2263fffe5102Smrg
2264fffe5102Smrg
2265fffe5102Smrgfi
2266fffe5102Smrgif test -z "$ac_cv_prog_STRIP"; then
2267fffe5102Smrg  ac_ct_STRIP=$STRIP
2268fffe5102Smrg  # Extract the first word of "strip", so it can be a program name with args.
2269fffe5102Smrgset dummy strip; ac_word=$2
2270fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2271fffe5102Smrg$as_echo_n "checking for $ac_word... " >&6; }
2272fffe5102Smrgif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2273fffe5102Smrg  $as_echo_n "(cached) " >&6
2274fffe5102Smrgelse
2275fffe5102Smrg  if test -n "$ac_ct_STRIP"; then
2276fffe5102Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2277fffe5102Smrgelse
2278fffe5102Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279fffe5102Smrgfor as_dir in $PATH
2280fffe5102Smrgdo
2281fffe5102Smrg  IFS=$as_save_IFS
2282fffe5102Smrg  test -z "$as_dir" && as_dir=.
2283fffe5102Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2284fffe5102Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2285fffe5102Smrg    ac_cv_prog_ac_ct_STRIP="strip"
2286fffe5102Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2287fffe5102Smrg    break 2
2288fffe5102Smrg  fi
2289fffe5102Smrgdone
2290fffe5102Smrg  done
2291fffe5102SmrgIFS=$as_save_IFS
2292fffe5102Smrg
2293fffe5102Smrgfi
2294fffe5102Smrgfi
2295fffe5102Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2296fffe5102Smrgif test -n "$ac_ct_STRIP"; then
2297fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2298fffe5102Smrg$as_echo "$ac_ct_STRIP" >&6; }
2299fffe5102Smrgelse
2300fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2301fffe5102Smrg$as_echo "no" >&6; }
2302fffe5102Smrgfi
2303fffe5102Smrg
2304fffe5102Smrg  if test "x$ac_ct_STRIP" = x; then
2305fffe5102Smrg    STRIP=":"
2306fffe5102Smrg  else
2307fffe5102Smrg    case $cross_compiling:$ac_tool_warned in
2308fffe5102Smrgyes:)
2309fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2310fffe5102Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2311fffe5102Smrgac_tool_warned=yes ;;
2312fffe5102Smrgesac
2313fffe5102Smrg    STRIP=$ac_ct_STRIP
2314fffe5102Smrg  fi
2315fffe5102Smrgelse
2316fffe5102Smrg  STRIP="$ac_cv_prog_STRIP"
2317fffe5102Smrgfi
2318fffe5102Smrg
231967f05d30Smrgfi
2320fffe5102SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2321fffe5102Smrg
2322fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2323fffe5102Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2324fffe5102Smrgif test -z "$MKDIR_P"; then
2325fffe5102Smrg  if test "${ac_cv_path_mkdir+set}" = set; then :
2326fffe5102Smrg  $as_echo_n "(cached) " >&6
2327fffe5102Smrgelse
2328fffe5102Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329fffe5102Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2330fffe5102Smrgdo
2331fffe5102Smrg  IFS=$as_save_IFS
2332fffe5102Smrg  test -z "$as_dir" && as_dir=.
2333fffe5102Smrg    for ac_prog in mkdir gmkdir; do
2334fffe5102Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
2335fffe5102Smrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2336fffe5102Smrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2337fffe5102Smrg	     'mkdir (GNU coreutils) '* | \
2338fffe5102Smrg	     'mkdir (coreutils) '* | \
2339fffe5102Smrg	     'mkdir (fileutils) '4.1*)
2340fffe5102Smrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2341fffe5102Smrg	       break 3;;
2342fffe5102Smrg	   esac
2343fffe5102Smrg	 done
2344fffe5102Smrg       done
2345fffe5102Smrg  done
2346fffe5102SmrgIFS=$as_save_IFS
2347fffe5102Smrg
2348fffe5102Smrgfi
2349fffe5102Smrg
2350fffe5102Smrg  test -d ./--version && rmdir ./--version
2351fffe5102Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
2352fffe5102Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
2353fffe5102Smrg  else
2354fffe5102Smrg    # As a last resort, use the slow shell script.  Don't cache a
2355fffe5102Smrg    # value for MKDIR_P within a source directory, because that will
2356fffe5102Smrg    # break other packages using the cache if that directory is
2357fffe5102Smrg    # removed, or if the value is a relative name.
2358fffe5102Smrg    MKDIR_P="$ac_install_sh -d"
2359fffe5102Smrg  fi
2360fffe5102Smrgfi
2361fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2362fffe5102Smrg$as_echo "$MKDIR_P" >&6; }
2363fffe5102Smrg
2364fffe5102Smrgmkdir_p="$MKDIR_P"
2365fffe5102Smrgcase $mkdir_p in
2366fffe5102Smrg  [\\/$]* | ?:[\\/]*) ;;
2367fffe5102Smrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2368fffe5102Smrgesac
236967f05d30Smrg
237067f05d30Smrgfor ac_prog in gawk mawk nawk awk
237167f05d30Smrgdo
237267f05d30Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
237367f05d30Smrgset dummy $ac_prog; ac_word=$2
2374fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2375fffe5102Smrg$as_echo_n "checking for $ac_word... " >&6; }
2376fffe5102Smrgif test "${ac_cv_prog_AWK+set}" = set; then :
2377fffe5102Smrg  $as_echo_n "(cached) " >&6
237867f05d30Smrgelse
237967f05d30Smrg  if test -n "$AWK"; then
238067f05d30Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
238167f05d30Smrgelse
238267f05d30Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
238367f05d30Smrgfor as_dir in $PATH
238467f05d30Smrgdo
238567f05d30Smrg  IFS=$as_save_IFS
238667f05d30Smrg  test -z "$as_dir" && as_dir=.
2387fffe5102Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2388fffe5102Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
238967f05d30Smrg    ac_cv_prog_AWK="$ac_prog"
2390fffe5102Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
239167f05d30Smrg    break 2
239267f05d30Smrg  fi
239367f05d30Smrgdone
2394fffe5102Smrg  done
2395fffe5102SmrgIFS=$as_save_IFS
239667f05d30Smrg
239767f05d30Smrgfi
239867f05d30Smrgfi
239967f05d30SmrgAWK=$ac_cv_prog_AWK
240067f05d30Smrgif test -n "$AWK"; then
2401fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2402fffe5102Smrg$as_echo "$AWK" >&6; }
240367f05d30Smrgelse
2404fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2405fffe5102Smrg$as_echo "no" >&6; }
240667f05d30Smrgfi
240767f05d30Smrg
2408fffe5102Smrg
240967f05d30Smrg  test -n "$AWK" && break
241067f05d30Smrgdone
241167f05d30Smrg
2412fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2413fffe5102Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2414fffe5102Smrgset x ${MAKE-make}
2415fffe5102Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2416fffe5102Smrgif { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2417fffe5102Smrg  $as_echo_n "(cached) " >&6
241867f05d30Smrgelse
241967f05d30Smrg  cat >conftest.make <<\_ACEOF
2420fffe5102SmrgSHELL = /bin/sh
242167f05d30Smrgall:
2422fffe5102Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
242367f05d30Smrg_ACEOF
242467f05d30Smrg# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2425fffe5102Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
2426fffe5102Smrg  *@@@%%%=?*=@@@%%%*)
2427fffe5102Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
2428fffe5102Smrg  *)
2429fffe5102Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
2430fffe5102Smrgesac
243167f05d30Smrgrm -f conftest.make
243267f05d30Smrgfi
2433fffe5102Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2434fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2435fffe5102Smrg$as_echo "yes" >&6; }
243667f05d30Smrg  SET_MAKE=
243767f05d30Smrgelse
2438fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2439fffe5102Smrg$as_echo "no" >&6; }
244067f05d30Smrg  SET_MAKE="MAKE=${MAKE-make}"
244167f05d30Smrgfi
244267f05d30Smrg
244367f05d30Smrgrm -rf .tst 2>/dev/null
244467f05d30Smrgmkdir .tst 2>/dev/null
244567f05d30Smrgif test -d .tst; then
244667f05d30Smrg  am__leading_dot=.
244767f05d30Smrgelse
244867f05d30Smrg  am__leading_dot=_
244967f05d30Smrgfi
245067f05d30Smrgrmdir .tst 2>/dev/null
245167f05d30Smrg
2452fffe5102Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
2453fffe5102Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2454fffe5102Smrg  # is not polluted with repeated "-I."
2455fffe5102Smrg  am__isrc=' -I$(srcdir)'
2456fffe5102Smrg  # test to see if srcdir already configured
2457fffe5102Smrg  if test -f $srcdir/config.status; then
2458fffe5102Smrg    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2459fffe5102Smrg  fi
246067f05d30Smrgfi
246167f05d30Smrg
246267f05d30Smrg# test whether we have cygpath
246367f05d30Smrgif test -z "$CYGPATH_W"; then
246467f05d30Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
246567f05d30Smrg    CYGPATH_W='cygpath -w'
246667f05d30Smrg  else
246767f05d30Smrg    CYGPATH_W=echo
246867f05d30Smrg  fi
246967f05d30Smrgfi
247067f05d30Smrg
247167f05d30Smrg
247267f05d30Smrg# Define the identity of the package.
247367f05d30Smrg PACKAGE='viewres'
2474fffe5102Smrg VERSION='1.0.2'
247567f05d30Smrg
247667f05d30Smrg
247767f05d30Smrgcat >>confdefs.h <<_ACEOF
247867f05d30Smrg#define PACKAGE "$PACKAGE"
247967f05d30Smrg_ACEOF
248067f05d30Smrg
248167f05d30Smrg
248267f05d30Smrgcat >>confdefs.h <<_ACEOF
248367f05d30Smrg#define VERSION "$VERSION"
248467f05d30Smrg_ACEOF
248567f05d30Smrg
248667f05d30Smrg# Some tools Automake needs.
248767f05d30Smrg
248867f05d30SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
248967f05d30Smrg
249067f05d30Smrg
249167f05d30SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
249267f05d30Smrg
249367f05d30Smrg
249467f05d30SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
249567f05d30Smrg
249667f05d30Smrg
249767f05d30SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
249867f05d30Smrg
249967f05d30Smrg
250067f05d30SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
250167f05d30Smrg
2502fffe5102Smrg# We need awk for the "check" target.  The system "awk" is bad on
2503fffe5102Smrg# some platforms.
2504fffe5102Smrg# Always define AMTAR for backward compatibility.
250567f05d30Smrg
250667f05d30SmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
250767f05d30Smrg
2508fffe5102Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
250967f05d30Smrg
2510fffe5102Smrg
2511fffe5102Smrg
2512fffe5102Smrg
2513fffe5102Smrg
2514fffe5102Smrg
2515fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2516fffe5102Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2517fffe5102Smrg    # Check whether --enable-maintainer-mode was given.
2518fffe5102Smrgif test "${enable_maintainer_mode+set}" = set; then :
2519fffe5102Smrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
252067f05d30Smrgelse
2521fffe5102Smrg  USE_MAINTAINER_MODE=no
2522fffe5102Smrgfi
2523fffe5102Smrg
2524fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2525fffe5102Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
2526fffe5102Smrg   if test $USE_MAINTAINER_MODE = yes; then
2527fffe5102Smrg  MAINTAINER_MODE_TRUE=
2528fffe5102Smrg  MAINTAINER_MODE_FALSE='#'
252967f05d30Smrgelse
2530fffe5102Smrg  MAINTAINER_MODE_TRUE='#'
2531fffe5102Smrg  MAINTAINER_MODE_FALSE=
253267f05d30Smrgfi
253367f05d30Smrg
2534fffe5102Smrg  MAINT=$MAINTAINER_MODE_TRUE
253567f05d30Smrg
253667f05d30Smrg
253767f05d30Smrg
2538fffe5102Smrg# Require xorg-macros: XORG_DEFAULT_OPTIONS
253967f05d30Smrg
254067f05d30Smrg
254167f05d30Smrg
254267f05d30Smrg
254367f05d30Smrg
254467f05d30Smrg
2545fffe5102Smrg
2546fffe5102Smrg
2547fffe5102Smrg
2548fffe5102Smrg
2549fffe5102Smrg
2550fffe5102SmrgDEPDIR="${am__leading_dot}deps"
2551fffe5102Smrg
2552fffe5102Smrgac_config_commands="$ac_config_commands depfiles"
2553fffe5102Smrg
2554fffe5102Smrg
2555fffe5102Smrgam_make=${MAKE-make}
2556fffe5102Smrgcat > confinc << 'END'
2557fffe5102Smrgam__doit:
2558fffe5102Smrg	@echo this is the am__doit target
2559fffe5102Smrg.PHONY: am__doit
2560fffe5102SmrgEND
2561fffe5102Smrg# If we don't find an include directive, just comment out the code.
2562fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2563fffe5102Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
2564fffe5102Smrgam__include="#"
2565fffe5102Smrgam__quote=
2566fffe5102Smrg_am_result=none
2567fffe5102Smrg# First try GNU make style include.
2568fffe5102Smrgecho "include confinc" > confmf
2569fffe5102Smrg# Ignore all kinds of additional output from `make'.
2570fffe5102Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
2571fffe5102Smrg*the\ am__doit\ target*)
2572fffe5102Smrg  am__include=include
2573fffe5102Smrg  am__quote=
2574fffe5102Smrg  _am_result=GNU
2575fffe5102Smrg  ;;
2576fffe5102Smrgesac
2577fffe5102Smrg# Now try BSD make style include.
2578fffe5102Smrgif test "$am__include" = "#"; then
2579fffe5102Smrg   echo '.include "confinc"' > confmf
2580fffe5102Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
2581fffe5102Smrg   *the\ am__doit\ target*)
2582fffe5102Smrg     am__include=.include
2583fffe5102Smrg     am__quote="\""
2584fffe5102Smrg     _am_result=BSD
2585fffe5102Smrg     ;;
2586fffe5102Smrg   esac
258767f05d30Smrgfi
258867f05d30Smrg
258967f05d30Smrg
2590fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2591fffe5102Smrg$as_echo "$_am_result" >&6; }
2592fffe5102Smrgrm -f confinc confmf
259367f05d30Smrg
2594fffe5102Smrg# Check whether --enable-dependency-tracking was given.
2595fffe5102Smrgif test "${enable_dependency_tracking+set}" = set; then :
2596fffe5102Smrg  enableval=$enable_dependency_tracking;
2597fffe5102Smrgfi
259867f05d30Smrg
2599fffe5102Smrgif test "x$enable_dependency_tracking" != xno; then
2600fffe5102Smrg  am_depcomp="$ac_aux_dir/depcomp"
2601fffe5102Smrg  AMDEPBACKSLASH='\'
2602fffe5102Smrgfi
2603fffe5102Smrg if test "x$enable_dependency_tracking" != xno; then
2604fffe5102Smrg  AMDEP_TRUE=
2605fffe5102Smrg  AMDEP_FALSE='#'
2606fffe5102Smrgelse
2607fffe5102Smrg  AMDEP_TRUE='#'
2608fffe5102Smrg  AMDEP_FALSE=
2609fffe5102Smrgfi
261067f05d30Smrg
261167f05d30Smrg
261267f05d30Smrgac_ext=c
261367f05d30Smrgac_cpp='$CPP $CPPFLAGS'
261467f05d30Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
261567f05d30Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
261667f05d30Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
261767f05d30Smrgif test -n "$ac_tool_prefix"; then
261867f05d30Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
261967f05d30Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
2620fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2621fffe5102Smrg$as_echo_n "checking for $ac_word... " >&6; }
2622fffe5102Smrgif test "${ac_cv_prog_CC+set}" = set; then :
2623fffe5102Smrg  $as_echo_n "(cached) " >&6
262467f05d30Smrgelse
262567f05d30Smrg  if test -n "$CC"; then
262667f05d30Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
262767f05d30Smrgelse
262867f05d30Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
262967f05d30Smrgfor as_dir in $PATH
263067f05d30Smrgdo
263167f05d30Smrg  IFS=$as_save_IFS
263267f05d30Smrg  test -z "$as_dir" && as_dir=.
2633fffe5102Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2634fffe5102Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
263567f05d30Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2636fffe5102Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
263767f05d30Smrg    break 2
263867f05d30Smrg  fi
263967f05d30Smrgdone
2640fffe5102Smrg  done
2641fffe5102SmrgIFS=$as_save_IFS
264267f05d30Smrg
264367f05d30Smrgfi
264467f05d30Smrgfi
264567f05d30SmrgCC=$ac_cv_prog_CC
264667f05d30Smrgif test -n "$CC"; then
2647fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2648fffe5102Smrg$as_echo "$CC" >&6; }
264967f05d30Smrgelse
2650fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2651fffe5102Smrg$as_echo "no" >&6; }
265267f05d30Smrgfi
265367f05d30Smrg
2654fffe5102Smrg
265567f05d30Smrgfi
265667f05d30Smrgif test -z "$ac_cv_prog_CC"; then
265767f05d30Smrg  ac_ct_CC=$CC
265867f05d30Smrg  # Extract the first word of "gcc", so it can be a program name with args.
265967f05d30Smrgset dummy gcc; ac_word=$2
2660fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2661fffe5102Smrg$as_echo_n "checking for $ac_word... " >&6; }
2662fffe5102Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2663fffe5102Smrg  $as_echo_n "(cached) " >&6
266467f05d30Smrgelse
266567f05d30Smrg  if test -n "$ac_ct_CC"; then
266667f05d30Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
266767f05d30Smrgelse
266867f05d30Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
266967f05d30Smrgfor as_dir in $PATH
267067f05d30Smrgdo
267167f05d30Smrg  IFS=$as_save_IFS
267267f05d30Smrg  test -z "$as_dir" && as_dir=.
2673fffe5102Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2674fffe5102Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
267567f05d30Smrg    ac_cv_prog_ac_ct_CC="gcc"
2676fffe5102Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
267767f05d30Smrg    break 2
267867f05d30Smrg  fi
267967f05d30Smrgdone
2680fffe5102Smrg  done
2681fffe5102SmrgIFS=$as_save_IFS
268267f05d30Smrg
268367f05d30Smrgfi
268467f05d30Smrgfi
268567f05d30Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
268667f05d30Smrgif test -n "$ac_ct_CC"; then
2687fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2688fffe5102Smrg$as_echo "$ac_ct_CC" >&6; }
268967f05d30Smrgelse
2690fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691fffe5102Smrg$as_echo "no" >&6; }
269267f05d30Smrgfi
269367f05d30Smrg
2694fffe5102Smrg  if test "x$ac_ct_CC" = x; then
2695fffe5102Smrg    CC=""
2696fffe5102Smrg  else
2697fffe5102Smrg    case $cross_compiling:$ac_tool_warned in
2698fffe5102Smrgyes:)
2699fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2700fffe5102Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2701fffe5102Smrgac_tool_warned=yes ;;
2702fffe5102Smrgesac
2703fffe5102Smrg    CC=$ac_ct_CC
2704fffe5102Smrg  fi
270567f05d30Smrgelse
270667f05d30Smrg  CC="$ac_cv_prog_CC"
270767f05d30Smrgfi
270867f05d30Smrg
270967f05d30Smrgif test -z "$CC"; then
2710fffe5102Smrg          if test -n "$ac_tool_prefix"; then
2711fffe5102Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
271267f05d30Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
2713fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2714fffe5102Smrg$as_echo_n "checking for $ac_word... " >&6; }
2715fffe5102Smrgif test "${ac_cv_prog_CC+set}" = set; then :
2716fffe5102Smrg  $as_echo_n "(cached) " >&6
271767f05d30Smrgelse
271867f05d30Smrg  if test -n "$CC"; then
271967f05d30Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
272067f05d30Smrgelse
272167f05d30Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
272267f05d30Smrgfor as_dir in $PATH
272367f05d30Smrgdo
272467f05d30Smrg  IFS=$as_save_IFS
272567f05d30Smrg  test -z "$as_dir" && as_dir=.
2726fffe5102Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2727fffe5102Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
272867f05d30Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
2729fffe5102Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
273067f05d30Smrg    break 2
273167f05d30Smrg  fi
273267f05d30Smrgdone
2733fffe5102Smrg  done
2734fffe5102SmrgIFS=$as_save_IFS
273567f05d30Smrg
273667f05d30Smrgfi
273767f05d30Smrgfi
273867f05d30SmrgCC=$ac_cv_prog_CC
273967f05d30Smrgif test -n "$CC"; then
2740fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2741fffe5102Smrg$as_echo "$CC" >&6; }
274267f05d30Smrgelse
2743fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2744fffe5102Smrg$as_echo "no" >&6; }
274567f05d30Smrgfi
274667f05d30Smrg
274767f05d30Smrg
2748fffe5102Smrg  fi
274967f05d30Smrgfi
275067f05d30Smrgif test -z "$CC"; then
275167f05d30Smrg  # Extract the first word of "cc", so it can be a program name with args.
275267f05d30Smrgset dummy cc; ac_word=$2
2753fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754fffe5102Smrg$as_echo_n "checking for $ac_word... " >&6; }
2755fffe5102Smrgif test "${ac_cv_prog_CC+set}" = set; then :
2756fffe5102Smrg  $as_echo_n "(cached) " >&6
275767f05d30Smrgelse
275867f05d30Smrg  if test -n "$CC"; then
275967f05d30Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
276067f05d30Smrgelse
276167f05d30Smrg  ac_prog_rejected=no
276267f05d30Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
276367f05d30Smrgfor as_dir in $PATH
276467f05d30Smrgdo
276567f05d30Smrg  IFS=$as_save_IFS
276667f05d30Smrg  test -z "$as_dir" && as_dir=.
2767fffe5102Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2768fffe5102Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
276967f05d30Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
277067f05d30Smrg       ac_prog_rejected=yes
277167f05d30Smrg       continue
277267f05d30Smrg     fi
277367f05d30Smrg    ac_cv_prog_CC="cc"
2774fffe5102Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
277567f05d30Smrg    break 2
277667f05d30Smrg  fi
277767f05d30Smrgdone
2778fffe5102Smrg  done
2779fffe5102SmrgIFS=$as_save_IFS
278067f05d30Smrg
278167f05d30Smrgif test $ac_prog_rejected = yes; then
278267f05d30Smrg  # We found a bogon in the path, so make sure we never use it.
278367f05d30Smrg  set dummy $ac_cv_prog_CC
278467f05d30Smrg  shift
278567f05d30Smrg  if test $# != 0; then
278667f05d30Smrg    # We chose a different compiler from the bogus one.
278767f05d30Smrg    # However, it has the same basename, so the bogon will be chosen
278867f05d30Smrg    # first if we set CC to just the basename; use the full file name.
278967f05d30Smrg    shift
279067f05d30Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
279167f05d30Smrg  fi
279267f05d30Smrgfi
279367f05d30Smrgfi
279467f05d30Smrgfi
279567f05d30SmrgCC=$ac_cv_prog_CC
279667f05d30Smrgif test -n "$CC"; then
2797fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2798fffe5102Smrg$as_echo "$CC" >&6; }
279967f05d30Smrgelse
2800fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801fffe5102Smrg$as_echo "no" >&6; }
280267f05d30Smrgfi
280367f05d30Smrg
2804fffe5102Smrg
280567f05d30Smrgfi
280667f05d30Smrgif test -z "$CC"; then
280767f05d30Smrg  if test -n "$ac_tool_prefix"; then
2808fffe5102Smrg  for ac_prog in cl.exe
280967f05d30Smrg  do
281067f05d30Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
281167f05d30Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
2812fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2813fffe5102Smrg$as_echo_n "checking for $ac_word... " >&6; }
2814fffe5102Smrgif test "${ac_cv_prog_CC+set}" = set; then :
2815fffe5102Smrg  $as_echo_n "(cached) " >&6
281667f05d30Smrgelse
281767f05d30Smrg  if test -n "$CC"; then
281867f05d30Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
281967f05d30Smrgelse
282067f05d30Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
282167f05d30Smrgfor as_dir in $PATH
282267f05d30Smrgdo
282367f05d30Smrg  IFS=$as_save_IFS
282467f05d30Smrg  test -z "$as_dir" && as_dir=.
2825fffe5102Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2826fffe5102Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
282767f05d30Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2828fffe5102Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
282967f05d30Smrg    break 2
283067f05d30Smrg  fi
283167f05d30Smrgdone
2832fffe5102Smrg  done
2833fffe5102SmrgIFS=$as_save_IFS
283467f05d30Smrg
283567f05d30Smrgfi
283667f05d30Smrgfi
283767f05d30SmrgCC=$ac_cv_prog_CC
283867f05d30Smrgif test -n "$CC"; then
2839fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2840fffe5102Smrg$as_echo "$CC" >&6; }
284167f05d30Smrgelse
2842fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843fffe5102Smrg$as_echo "no" >&6; }
284467f05d30Smrgfi
284567f05d30Smrg
2846fffe5102Smrg
284767f05d30Smrg    test -n "$CC" && break
284867f05d30Smrg  done
284967f05d30Smrgfi
285067f05d30Smrgif test -z "$CC"; then
285167f05d30Smrg  ac_ct_CC=$CC
2852fffe5102Smrg  for ac_prog in cl.exe
285367f05d30Smrgdo
285467f05d30Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
285567f05d30Smrgset dummy $ac_prog; ac_word=$2
2856fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2857fffe5102Smrg$as_echo_n "checking for $ac_word... " >&6; }
2858fffe5102Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2859fffe5102Smrg  $as_echo_n "(cached) " >&6
286067f05d30Smrgelse
286167f05d30Smrg  if test -n "$ac_ct_CC"; then
286267f05d30Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
286367f05d30Smrgelse
286467f05d30Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
286567f05d30Smrgfor as_dir in $PATH
286667f05d30Smrgdo
286767f05d30Smrg  IFS=$as_save_IFS
286867f05d30Smrg  test -z "$as_dir" && as_dir=.
2869fffe5102Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2870fffe5102Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
287167f05d30Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
2872fffe5102Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
287367f05d30Smrg    break 2
287467f05d30Smrg  fi
287567f05d30Smrgdone
2876fffe5102Smrg  done
2877fffe5102SmrgIFS=$as_save_IFS
287867f05d30Smrg
287967f05d30Smrgfi
288067f05d30Smrgfi
288167f05d30Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
288267f05d30Smrgif test -n "$ac_ct_CC"; then
2883fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2884fffe5102Smrg$as_echo "$ac_ct_CC" >&6; }
288567f05d30Smrgelse
2886fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2887fffe5102Smrg$as_echo "no" >&6; }
288867f05d30Smrgfi
288967f05d30Smrg
2890fffe5102Smrg
289167f05d30Smrg  test -n "$ac_ct_CC" && break
289267f05d30Smrgdone
289367f05d30Smrg
2894fffe5102Smrg  if test "x$ac_ct_CC" = x; then
2895fffe5102Smrg    CC=""
2896fffe5102Smrg  else
2897fffe5102Smrg    case $cross_compiling:$ac_tool_warned in
2898fffe5102Smrgyes:)
2899fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2900fffe5102Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2901fffe5102Smrgac_tool_warned=yes ;;
2902fffe5102Smrgesac
2903fffe5102Smrg    CC=$ac_ct_CC
2904fffe5102Smrg  fi
290567f05d30Smrgfi
290667f05d30Smrg
290767f05d30Smrgfi
290867f05d30Smrg
290967f05d30Smrg
2910fffe5102Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2911fffe5102Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2912fffe5102Smrgas_fn_error "no acceptable C compiler found in \$PATH
2913fffe5102SmrgSee \`config.log' for more details." "$LINENO" 5; }
291467f05d30Smrg
291567f05d30Smrg# Provide some information about the compiler.
2916fffe5102Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2917fffe5102Smrgset X $ac_compile
2918fffe5102Smrgac_compiler=$2
2919fffe5102Smrgfor ac_option in --version -v -V -qversion; do
2920fffe5102Smrg  { { ac_try="$ac_compiler $ac_option >&5"
2921fffe5102Smrgcase "(($ac_try" in
2922fffe5102Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923fffe5102Smrg  *) ac_try_echo=$ac_try;;
2924fffe5102Smrgesac
2925fffe5102Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2926fffe5102Smrg$as_echo "$ac_try_echo"; } >&5
2927fffe5102Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
292867f05d30Smrg  ac_status=$?
2929fffe5102Smrg  if test -s conftest.err; then
2930fffe5102Smrg    sed '10a\
2931fffe5102Smrg... rest of stderr output deleted ...
2932fffe5102Smrg         10q' conftest.err >conftest.er1
2933fffe5102Smrg    cat conftest.er1 >&5
2934fffe5102Smrg  fi
2935fffe5102Smrg  rm -f conftest.er1 conftest.err
2936fffe5102Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2937fffe5102Smrg  test $ac_status = 0; }
2938fffe5102Smrgdone
293967f05d30Smrg
2940fffe5102Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
294167f05d30Smrg/* end confdefs.h.  */
294267f05d30Smrg
294367f05d30Smrgint
294467f05d30Smrgmain ()
294567f05d30Smrg{
294667f05d30Smrg
294767f05d30Smrg  ;
294867f05d30Smrg  return 0;
294967f05d30Smrg}
295067f05d30Smrg_ACEOF
295167f05d30Smrgac_clean_files_save=$ac_clean_files
2952fffe5102Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
295367f05d30Smrg# Try to create an executable without -o first, disregard a.out.
295467f05d30Smrg# It will help us diagnose broken compilers, and finding out an intuition
295567f05d30Smrg# of exeext.
2956fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2957fffe5102Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
2958fffe5102Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2959fffe5102Smrg
2960fffe5102Smrg# The possible output files:
2961fffe5102Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2962fffe5102Smrg
2963fffe5102Smrgac_rmfiles=
2964fffe5102Smrgfor ac_file in $ac_files
2965fffe5102Smrgdo
2966fffe5102Smrg  case $ac_file in
2967fffe5102Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2968fffe5102Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2969fffe5102Smrg  esac
2970fffe5102Smrgdone
2971fffe5102Smrgrm -f $ac_rmfiles
2972fffe5102Smrg
2973fffe5102Smrgif { { ac_try="$ac_link_default"
2974fffe5102Smrgcase "(($ac_try" in
2975fffe5102Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976fffe5102Smrg  *) ac_try_echo=$ac_try;;
2977fffe5102Smrgesac
2978fffe5102Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2979fffe5102Smrg$as_echo "$ac_try_echo"; } >&5
2980fffe5102Smrg  (eval "$ac_link_default") 2>&5
298167f05d30Smrg  ac_status=$?
2982fffe5102Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2983fffe5102Smrg  test $ac_status = 0; }; then :
2984fffe5102Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2985fffe5102Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2986fffe5102Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2987fffe5102Smrg# so that the user can short-circuit this test for compilers unknown to
2988fffe5102Smrg# Autoconf.
2989fffe5102Smrgfor ac_file in $ac_files ''
299067f05d30Smrgdo
299167f05d30Smrg  test -f "$ac_file" || continue
299267f05d30Smrg  case $ac_file in
2993fffe5102Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
299467f05d30Smrg	;;
299567f05d30Smrg    [ab].out )
299667f05d30Smrg	# We found the default executable, but exeext='' is most
299767f05d30Smrg	# certainly right.
299867f05d30Smrg	break;;
299967f05d30Smrg    *.* )
3000fffe5102Smrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3001fffe5102Smrg	then :; else
3002fffe5102Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3003fffe5102Smrg	fi
3004fffe5102Smrg	# We set ac_cv_exeext here because the later test for it is not
3005fffe5102Smrg	# safe: cross compilers may not add the suffix if given an `-o'
3006fffe5102Smrg	# argument, so we may need to know it at that point already.
3007fffe5102Smrg	# Even if this section looks crufty: it has the advantage of
3008fffe5102Smrg	# actually working.
300967f05d30Smrg	break;;
301067f05d30Smrg    * )
301167f05d30Smrg	break;;
301267f05d30Smrg  esac
301367f05d30Smrgdone
3014fffe5102Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
3015fffe5102Smrg
301667f05d30Smrgelse
3017fffe5102Smrg  ac_file=''
3018fffe5102Smrgfi
3019fffe5102Smrgif test -z "$ac_file"; then :
3020fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021fffe5102Smrg$as_echo "no" >&6; }
3022fffe5102Smrg$as_echo "$as_me: failed program was:" >&5
302367f05d30Smrgsed 's/^/| /' conftest.$ac_ext >&5
302467f05d30Smrg
3025fffe5102Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3026fffe5102Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3027fffe5102Smrg{ as_fn_set_status 77
3028fffe5102Smrgas_fn_error "C compiler cannot create executables
3029fffe5102SmrgSee \`config.log' for more details." "$LINENO" 5; }; }
3030fffe5102Smrgelse
3031fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3032fffe5102Smrg$as_echo "yes" >&6; }
303367f05d30Smrgfi
3034fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3035fffe5102Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
3036fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3037fffe5102Smrg$as_echo "$ac_file" >&6; }
303867f05d30Smrgac_exeext=$ac_cv_exeext
303967f05d30Smrg
3040fffe5102Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
304167f05d30Smrgac_clean_files=$ac_clean_files_save
3042fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3043fffe5102Smrg$as_echo_n "checking for suffix of executables... " >&6; }
3044fffe5102Smrgif { { ac_try="$ac_link"
3045fffe5102Smrgcase "(($ac_try" in
3046fffe5102Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047fffe5102Smrg  *) ac_try_echo=$ac_try;;
3048fffe5102Smrgesac
3049fffe5102Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3050fffe5102Smrg$as_echo "$ac_try_echo"; } >&5
3051fffe5102Smrg  (eval "$ac_link") 2>&5
305267f05d30Smrg  ac_status=$?
3053fffe5102Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3054fffe5102Smrg  test $ac_status = 0; }; then :
305567f05d30Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
305667f05d30Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
305767f05d30Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
305867f05d30Smrg# `rm'.
305967f05d30Smrgfor ac_file in conftest.exe conftest conftest.*; do
306067f05d30Smrg  test -f "$ac_file" || continue
306167f05d30Smrg  case $ac_file in
3062fffe5102Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
306367f05d30Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
306467f05d30Smrg	  break;;
306567f05d30Smrg    * ) break;;
306667f05d30Smrg  esac
306767f05d30Smrgdone
306867f05d30Smrgelse
3069fffe5102Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3070fffe5102Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3071fffe5102Smrgas_fn_error "cannot compute suffix of executables: cannot compile and link
3072fffe5102SmrgSee \`config.log' for more details." "$LINENO" 5; }
307367f05d30Smrgfi
3074fffe5102Smrgrm -f conftest conftest$ac_cv_exeext
3075fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3076fffe5102Smrg$as_echo "$ac_cv_exeext" >&6; }
307767f05d30Smrg
307867f05d30Smrgrm -f conftest.$ac_ext
307967f05d30SmrgEXEEXT=$ac_cv_exeext
308067f05d30Smrgac_exeext=$EXEEXT
3081fffe5102Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3082fffe5102Smrg/* end confdefs.h.  */
3083fffe5102Smrg#include <stdio.h>
3084fffe5102Smrgint
3085fffe5102Smrgmain ()
3086fffe5102Smrg{
3087fffe5102SmrgFILE *f = fopen ("conftest.out", "w");
3088fffe5102Smrg return ferror (f) || fclose (f) != 0;
3089fffe5102Smrg
3090fffe5102Smrg  ;
3091fffe5102Smrg  return 0;
3092fffe5102Smrg}
309367f05d30Smrg_ACEOF
3094fffe5102Smrgac_clean_files="$ac_clean_files conftest.out"
3095fffe5102Smrg# Check that the compiler produces executables we can run.  If not, either
3096fffe5102Smrg# the compiler is broken, or we cross compile.
3097fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3098fffe5102Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
3099fffe5102Smrgif test "$cross_compiling" != yes; then
3100fffe5102Smrg  { { ac_try="$ac_link"
3101fffe5102Smrgcase "(($ac_try" in
3102fffe5102Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103fffe5102Smrg  *) ac_try_echo=$ac_try;;
3104fffe5102Smrgesac
3105fffe5102Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3106fffe5102Smrg$as_echo "$ac_try_echo"; } >&5
3107fffe5102Smrg  (eval "$ac_link") 2>&5
3108fffe5102Smrg  ac_status=$?
3109fffe5102Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3110fffe5102Smrg  test $ac_status = 0; }
3111fffe5102Smrg  if { ac_try='./conftest$ac_cv_exeext'
3112fffe5102Smrg  { { case "(($ac_try" in
3113fffe5102Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114fffe5102Smrg  *) ac_try_echo=$ac_try;;
3115fffe5102Smrgesac
3116fffe5102Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3117fffe5102Smrg$as_echo "$ac_try_echo"; } >&5
3118fffe5102Smrg  (eval "$ac_try") 2>&5
3119fffe5102Smrg  ac_status=$?
3120fffe5102Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3121fffe5102Smrg  test $ac_status = 0; }; }; then
3122fffe5102Smrg    cross_compiling=no
3123fffe5102Smrg  else
3124fffe5102Smrg    if test "$cross_compiling" = maybe; then
3125fffe5102Smrg	cross_compiling=yes
3126fffe5102Smrg    else
3127fffe5102Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3128fffe5102Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3129fffe5102Smrgas_fn_error "cannot run C compiled programs.
3130fffe5102SmrgIf you meant to cross compile, use \`--host'.
3131fffe5102SmrgSee \`config.log' for more details." "$LINENO" 5; }
3132fffe5102Smrg    fi
3133fffe5102Smrg  fi
3134fffe5102Smrgfi
3135fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3136fffe5102Smrg$as_echo "$cross_compiling" >&6; }
3137fffe5102Smrg
3138fffe5102Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3139fffe5102Smrgac_clean_files=$ac_clean_files_save
3140fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3141fffe5102Smrg$as_echo_n "checking for suffix of object files... " >&6; }
3142fffe5102Smrgif test "${ac_cv_objext+set}" = set; then :
3143fffe5102Smrg  $as_echo_n "(cached) " >&6
3144fffe5102Smrgelse
3145fffe5102Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
314667f05d30Smrg/* end confdefs.h.  */
314767f05d30Smrg
314867f05d30Smrgint
314967f05d30Smrgmain ()
315067f05d30Smrg{
315167f05d30Smrg
315267f05d30Smrg  ;
315367f05d30Smrg  return 0;
315467f05d30Smrg}
315567f05d30Smrg_ACEOF
315667f05d30Smrgrm -f conftest.o conftest.obj
3157fffe5102Smrgif { { ac_try="$ac_compile"
3158fffe5102Smrgcase "(($ac_try" in
3159fffe5102Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160fffe5102Smrg  *) ac_try_echo=$ac_try;;
3161fffe5102Smrgesac
3162fffe5102Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163fffe5102Smrg$as_echo "$ac_try_echo"; } >&5
3164fffe5102Smrg  (eval "$ac_compile") 2>&5
316567f05d30Smrg  ac_status=$?
3166fffe5102Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167fffe5102Smrg  test $ac_status = 0; }; then :
3168fffe5102Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
3169fffe5102Smrg  test -f "$ac_file" || continue;
317067f05d30Smrg  case $ac_file in
3171fffe5102Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
317267f05d30Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
317367f05d30Smrg       break;;
317467f05d30Smrg  esac
317567f05d30Smrgdone
317667f05d30Smrgelse
3177fffe5102Smrg  $as_echo "$as_me: failed program was:" >&5
317867f05d30Smrgsed 's/^/| /' conftest.$ac_ext >&5
317967f05d30Smrg
3180fffe5102Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3181fffe5102Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3182fffe5102Smrgas_fn_error "cannot compute suffix of object files: cannot compile
3183fffe5102SmrgSee \`config.log' for more details." "$LINENO" 5; }
318467f05d30Smrgfi
318567f05d30Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
318667f05d30Smrgfi
3187fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3188fffe5102Smrg$as_echo "$ac_cv_objext" >&6; }
318967f05d30SmrgOBJEXT=$ac_cv_objext
319067f05d30Smrgac_objext=$OBJEXT
3191fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3192fffe5102Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3193fffe5102Smrgif test "${ac_cv_c_compiler_gnu+set}" = set; then :
3194fffe5102Smrg  $as_echo_n "(cached) " >&6
319567f05d30Smrgelse
3196fffe5102Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319767f05d30Smrg/* end confdefs.h.  */
319867f05d30Smrg
319967f05d30Smrgint
320067f05d30Smrgmain ()
320167f05d30Smrg{
320267f05d30Smrg#ifndef __GNUC__
320367f05d30Smrg       choke me
320467f05d30Smrg#endif
320567f05d30Smrg
320667f05d30Smrg  ;
320767f05d30Smrg  return 0;
320867f05d30Smrg}
320967f05d30Smrg_ACEOF
3210fffe5102Smrgif ac_fn_c_try_compile "$LINENO"; then :
321167f05d30Smrg  ac_compiler_gnu=yes
321267f05d30Smrgelse
3213fffe5102Smrg  ac_compiler_gnu=no
321467f05d30Smrgfi
3215fffe5102Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
321667f05d30Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
321767f05d30Smrg
321867f05d30Smrgfi
3219fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3220fffe5102Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3221fffe5102Smrgif test $ac_compiler_gnu = yes; then
3222fffe5102Smrg  GCC=yes
3223fffe5102Smrgelse
3224fffe5102Smrg  GCC=
3225fffe5102Smrgfi
322667f05d30Smrgac_test_CFLAGS=${CFLAGS+set}
322767f05d30Smrgac_save_CFLAGS=$CFLAGS
3228fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3229fffe5102Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
3230fffe5102Smrgif test "${ac_cv_prog_cc_g+set}" = set; then :
3231fffe5102Smrg  $as_echo_n "(cached) " >&6
3232fffe5102Smrgelse
3233fffe5102Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
3234fffe5102Smrg   ac_c_werror_flag=yes
3235fffe5102Smrg   ac_cv_prog_cc_g=no
3236fffe5102Smrg   CFLAGS="-g"
3237fffe5102Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
323867f05d30Smrg/* end confdefs.h.  */
323967f05d30Smrg
324067f05d30Smrgint
324167f05d30Smrgmain ()
324267f05d30Smrg{
324367f05d30Smrg
324467f05d30Smrg  ;
324567f05d30Smrg  return 0;
324667f05d30Smrg}
324767f05d30Smrg_ACEOF
3248fffe5102Smrgif ac_fn_c_try_compile "$LINENO"; then :
324967f05d30Smrg  ac_cv_prog_cc_g=yes
325067f05d30Smrgelse
3251fffe5102Smrg  CFLAGS=""
3252fffe5102Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253fffe5102Smrg/* end confdefs.h.  */
3254fffe5102Smrg
3255fffe5102Smrgint
3256fffe5102Smrgmain ()
3257fffe5102Smrg{
3258fffe5102Smrg
3259fffe5102Smrg  ;
3260fffe5102Smrg  return 0;
3261fffe5102Smrg}
3262fffe5102Smrg_ACEOF
3263fffe5102Smrgif ac_fn_c_try_compile "$LINENO"; then :
3264fffe5102Smrg
3265fffe5102Smrgelse
3266fffe5102Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
3267fffe5102Smrg	 CFLAGS="-g"
3268fffe5102Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269fffe5102Smrg/* end confdefs.h.  */
3270fffe5102Smrg
3271fffe5102Smrgint
3272fffe5102Smrgmain ()
3273fffe5102Smrg{
327467f05d30Smrg
3275fffe5102Smrg  ;
3276fffe5102Smrg  return 0;
3277fffe5102Smrg}
3278fffe5102Smrg_ACEOF
3279fffe5102Smrgif ac_fn_c_try_compile "$LINENO"; then :
3280fffe5102Smrg  ac_cv_prog_cc_g=yes
3281fffe5102Smrgfi
3282fffe5102Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
328367f05d30Smrgfi
3284fffe5102Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
328567f05d30Smrgfi
3286fffe5102Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3287fffe5102Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
3288fffe5102Smrgfi
3289fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3290fffe5102Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
329167f05d30Smrgif test "$ac_test_CFLAGS" = set; then
329267f05d30Smrg  CFLAGS=$ac_save_CFLAGS
329367f05d30Smrgelif test $ac_cv_prog_cc_g = yes; then
329467f05d30Smrg  if test "$GCC" = yes; then
329567f05d30Smrg    CFLAGS="-g -O2"
329667f05d30Smrg  else
329767f05d30Smrg    CFLAGS="-g"
329867f05d30Smrg  fi
329967f05d30Smrgelse
330067f05d30Smrg  if test "$GCC" = yes; then
330167f05d30Smrg    CFLAGS="-O2"
330267f05d30Smrg  else
330367f05d30Smrg    CFLAGS=
330467f05d30Smrg  fi
330567f05d30Smrgfi
3306fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3307fffe5102Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3308fffe5102Smrgif test "${ac_cv_prog_cc_c89+set}" = set; then :
3309fffe5102Smrg  $as_echo_n "(cached) " >&6
331067f05d30Smrgelse
3311fffe5102Smrg  ac_cv_prog_cc_c89=no
331267f05d30Smrgac_save_CC=$CC
3313fffe5102Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
331467f05d30Smrg/* end confdefs.h.  */
331567f05d30Smrg#include <stdarg.h>
331667f05d30Smrg#include <stdio.h>
331767f05d30Smrg#include <sys/types.h>
331867f05d30Smrg#include <sys/stat.h>
331967f05d30Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
332067f05d30Smrgstruct buf { int x; };
332167f05d30SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
332267f05d30Smrgstatic char *e (p, i)
332367f05d30Smrg     char **p;
332467f05d30Smrg     int i;
332567f05d30Smrg{
332667f05d30Smrg  return p[i];
332767f05d30Smrg}
332867f05d30Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
332967f05d30Smrg{
333067f05d30Smrg  char *s;
333167f05d30Smrg  va_list v;
333267f05d30Smrg  va_start (v,p);
333367f05d30Smrg  s = g (p, va_arg (v,int));
333467f05d30Smrg  va_end (v);
333567f05d30Smrg  return s;
333667f05d30Smrg}
333767f05d30Smrg
333867f05d30Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
333967f05d30Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
334067f05d30Smrg   These don't provoke an error unfortunately, instead are silently treated
3341fffe5102Smrg   as 'x'.  The following induces an error, until -std is added to get
334267f05d30Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
334367f05d30Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
3344fffe5102Smrg   that's true only with -std.  */
334567f05d30Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
334667f05d30Smrg
3347fffe5102Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3348fffe5102Smrg   inside strings and character constants.  */
3349fffe5102Smrg#define FOO(x) 'x'
3350fffe5102Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3351fffe5102Smrg
335267f05d30Smrgint test (int i, double x);
335367f05d30Smrgstruct s1 {int (*f) (int a);};
335467f05d30Smrgstruct s2 {int (*f) (double a);};
335567f05d30Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
335667f05d30Smrgint argc;
335767f05d30Smrgchar **argv;
335867f05d30Smrgint
335967f05d30Smrgmain ()
336067f05d30Smrg{
336167f05d30Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
336267f05d30Smrg  ;
336367f05d30Smrg  return 0;
336467f05d30Smrg}
336567f05d30Smrg_ACEOF
3366fffe5102Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3367fffe5102Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
336867f05d30Smrgdo
336967f05d30Smrg  CC="$ac_save_CC $ac_arg"
3370fffe5102Smrg  if ac_fn_c_try_compile "$LINENO"; then :
3371fffe5102Smrg  ac_cv_prog_cc_c89=$ac_arg
337267f05d30Smrgfi
3373fffe5102Smrgrm -f core conftest.err conftest.$ac_objext
3374fffe5102Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
337567f05d30Smrgdone
3376fffe5102Smrgrm -f conftest.$ac_ext
337767f05d30SmrgCC=$ac_save_CC
337867f05d30Smrg
337967f05d30Smrgfi
3380fffe5102Smrg# AC_CACHE_VAL
3381fffe5102Smrgcase "x$ac_cv_prog_cc_c89" in
3382fffe5102Smrg  x)
3383fffe5102Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3384fffe5102Smrg$as_echo "none needed" >&6; } ;;
3385fffe5102Smrg  xno)
3386fffe5102Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3387fffe5102Smrg$as_echo "unsupported" >&6; } ;;
338867f05d30Smrg  *)
3389fffe5102Smrg    CC="$CC $ac_cv_prog_cc_c89"
3390fffe5102Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3391fffe5102Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
339267f05d30Smrgesac
3393fffe5102Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
339467f05d30Smrg
339567f05d30Smrgfi
339667f05d30Smrg
339767f05d30Smrgac_ext=c
339867f05d30Smrgac_cpp='$CPP $CPPFLAGS'
339967f05d30Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
340067f05d30Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
340167f05d30Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
340267f05d30Smrg
340367f05d30Smrgdepcc="$CC"   am_compiler_list=
340467f05d30Smrg
3405fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3406fffe5102Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
3407fffe5102Smrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3408fffe5102Smrg  $as_echo_n "(cached) " >&6
340967f05d30Smrgelse
341067f05d30Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
341167f05d30Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
341267f05d30Smrg  # making bogus files that we don't know about and never remove.  For
341367f05d30Smrg  # instance it was reported that on HP-UX the gcc test will end up
341467f05d30Smrg  # making a dummy file named `D' -- because `-MD' means `put the output
341567f05d30Smrg  # in D'.
341667f05d30Smrg  mkdir conftest.dir
341767f05d30Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
341867f05d30Smrg  # using a relative directory.
341967f05d30Smrg  cp "$am_depcomp" conftest.dir
342067f05d30Smrg  cd conftest.dir
342167f05d30Smrg  # We will build objects and dependencies in a subdirectory because
342267f05d30Smrg  # it helps to detect inapplicable dependency modes.  For instance
342367f05d30Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
342467f05d30Smrg  # side effect of compilation, but ICC will put the dependencies in
342567f05d30Smrg  # the current directory while Tru64 will put them in the object
342667f05d30Smrg  # directory.
342767f05d30Smrg  mkdir sub
342867f05d30Smrg
342967f05d30Smrg  am_cv_CC_dependencies_compiler_type=none
343067f05d30Smrg  if test "$am_compiler_list" = ""; then
343167f05d30Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
343267f05d30Smrg  fi
3433fffe5102Smrg  am__universal=false
3434fffe5102Smrg  case " $depcc " in #(
3435fffe5102Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3436fffe5102Smrg     esac
3437fffe5102Smrg
343867f05d30Smrg  for depmode in $am_compiler_list; do
343967f05d30Smrg    # Setup a source with many dependencies, because some compilers
344067f05d30Smrg    # like to wrap large dependency lists on column 80 (with \), and
344167f05d30Smrg    # we should not choose a depcomp mode which is confused by this.
344267f05d30Smrg    #
344367f05d30Smrg    # We need to recreate these files for each test, as the compiler may
344467f05d30Smrg    # overwrite some of them when testing with obscure command lines.
344567f05d30Smrg    # This happens at least with the AIX C compiler.
344667f05d30Smrg    : > sub/conftest.c
344767f05d30Smrg    for i in 1 2 3 4 5 6; do
344867f05d30Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3449fffe5102Smrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3450fffe5102Smrg      # Solaris 8's {/usr,}/bin/sh.
3451fffe5102Smrg      touch sub/conftst$i.h
345267f05d30Smrg    done
345367f05d30Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
345467f05d30Smrg
3455fffe5102Smrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3456fffe5102Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
3457fffe5102Smrg    # handle `-M -o', and we need to detect this.  Also, some Intel
3458fffe5102Smrg    # versions had trouble with output in subdirs
3459fffe5102Smrg    am__obj=sub/conftest.${OBJEXT-o}
3460fffe5102Smrg    am__minus_obj="-o $am__obj"
346167f05d30Smrg    case $depmode in
3462fffe5102Smrg    gcc)
3463fffe5102Smrg      # This depmode causes a compiler race in universal mode.
3464fffe5102Smrg      test "$am__universal" = false || continue
3465fffe5102Smrg      ;;
346667f05d30Smrg    nosideeffect)
346767f05d30Smrg      # after this tag, mechanisms are not by side-effect, so they'll
346867f05d30Smrg      # only be used when explicitly requested
346967f05d30Smrg      if test "x$enable_dependency_tracking" = xyes; then
347067f05d30Smrg	continue
347167f05d30Smrg      else
347267f05d30Smrg	break
347367f05d30Smrg      fi
347467f05d30Smrg      ;;
3475fffe5102Smrg    msvisualcpp | msvcmsys)
3476fffe5102Smrg      # This compiler won't grok `-c -o', but also, the minuso test has
3477fffe5102Smrg      # not run yet.  These depmodes are late enough in the game, and
3478fffe5102Smrg      # so weak that their functioning should not be impacted.
3479fffe5102Smrg      am__obj=conftest.${OBJEXT-o}
3480fffe5102Smrg      am__minus_obj=
3481fffe5102Smrg      ;;
348267f05d30Smrg    none) break ;;
348367f05d30Smrg    esac
348467f05d30Smrg    if depmode=$depmode \
3485fffe5102Smrg       source=sub/conftest.c object=$am__obj \
348667f05d30Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3487fffe5102Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
348867f05d30Smrg         >/dev/null 2>conftest.err &&
3489fffe5102Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
349067f05d30Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3491fffe5102Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
349267f05d30Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
349367f05d30Smrg      # icc doesn't choke on unknown options, it will just issue warnings
3494fffe5102Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
3495fffe5102Smrg      # that says an option was ignored or not supported.
3496fffe5102Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
3497fffe5102Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
3498fffe5102Smrg      # The diagnosis changed in icc 8.0:
3499fffe5102Smrg      #   icc: Command line remark: option '-MP' not supported
3500fffe5102Smrg      if (grep 'ignoring option' conftest.err ||
3501fffe5102Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
350267f05d30Smrg        am_cv_CC_dependencies_compiler_type=$depmode
350367f05d30Smrg        break
350467f05d30Smrg      fi
350567f05d30Smrg    fi
350667f05d30Smrg  done
350767f05d30Smrg
350867f05d30Smrg  cd ..
350967f05d30Smrg  rm -rf conftest.dir
351067f05d30Smrgelse
351167f05d30Smrg  am_cv_CC_dependencies_compiler_type=none
351267f05d30Smrgfi
351367f05d30Smrg
351467f05d30Smrgfi
3515fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3516fffe5102Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
351767f05d30SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
351867f05d30Smrg
3519fffe5102Smrg if
352067f05d30Smrg  test "x$enable_dependency_tracking" != xno \
352167f05d30Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
352267f05d30Smrg  am__fastdepCC_TRUE=
352367f05d30Smrg  am__fastdepCC_FALSE='#'
352467f05d30Smrgelse
352567f05d30Smrg  am__fastdepCC_TRUE='#'
352667f05d30Smrg  am__fastdepCC_FALSE=
352767f05d30Smrgfi
352867f05d30Smrg
352967f05d30Smrg
3530fffe5102Smrg
3531fffe5102Smrgac_ext=c
3532fffe5102Smrgac_cpp='$CPP $CPPFLAGS'
3533fffe5102Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534fffe5102Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535fffe5102Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3536fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3537fffe5102Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
3538fffe5102Smrg# On Suns, sometimes $CPP names a directory.
3539fffe5102Smrgif test -n "$CPP" && test -d "$CPP"; then
3540fffe5102Smrg  CPP=
3541fffe5102Smrgfi
3542fffe5102Smrgif test -z "$CPP"; then
3543fffe5102Smrg  if test "${ac_cv_prog_CPP+set}" = set; then :
3544fffe5102Smrg  $as_echo_n "(cached) " >&6
354567f05d30Smrgelse
3546fffe5102Smrg      # Double quotes because CPP needs to be expanded
3547fffe5102Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3548fffe5102Smrg    do
3549fffe5102Smrg      ac_preproc_ok=false
3550fffe5102Smrgfor ac_c_preproc_warn_flag in '' yes
355167f05d30Smrgdo
3552fffe5102Smrg  # Use a header file that comes with gcc, so configuring glibc
3553fffe5102Smrg  # with a fresh cross-compiler works.
3554fffe5102Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3555fffe5102Smrg  # <limits.h> exists even on freestanding compilers.
3556fffe5102Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
3557fffe5102Smrg  # not just through cpp. "Syntax error" is here to catch this case.
3558fffe5102Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559fffe5102Smrg/* end confdefs.h.  */
3560fffe5102Smrg#ifdef __STDC__
3561fffe5102Smrg# include <limits.h>
3562fffe5102Smrg#else
3563fffe5102Smrg# include <assert.h>
3564fffe5102Smrg#endif
3565fffe5102Smrg		     Syntax error
3566fffe5102Smrg_ACEOF
3567fffe5102Smrgif ac_fn_c_try_cpp "$LINENO"; then :
3568fffe5102Smrg
3569fffe5102Smrgelse
3570fffe5102Smrg  # Broken: fails on valid input.
3571fffe5102Smrgcontinue
3572fffe5102Smrgfi
3573fffe5102Smrgrm -f conftest.err conftest.$ac_ext
3574fffe5102Smrg
3575fffe5102Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
3576fffe5102Smrg  # can be detected and how.
3577fffe5102Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578fffe5102Smrg/* end confdefs.h.  */
3579fffe5102Smrg#include <ac_nonexistent.h>
3580fffe5102Smrg_ACEOF
3581fffe5102Smrgif ac_fn_c_try_cpp "$LINENO"; then :
3582fffe5102Smrg  # Broken: success on invalid input.
3583fffe5102Smrgcontinue
3584fffe5102Smrgelse
3585fffe5102Smrg  # Passes both tests.
3586fffe5102Smrgac_preproc_ok=:
3587fffe5102Smrgbreak
3588fffe5102Smrgfi
3589fffe5102Smrgrm -f conftest.err conftest.$ac_ext
3590fffe5102Smrg
359167f05d30Smrgdone
3592fffe5102Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3593fffe5102Smrgrm -f conftest.err conftest.$ac_ext
3594fffe5102Smrgif $ac_preproc_ok; then :
3595fffe5102Smrg  break
3596fffe5102Smrgfi
359767f05d30Smrg
3598fffe5102Smrg    done
3599fffe5102Smrg    ac_cv_prog_CPP=$CPP
360067f05d30Smrg
360167f05d30Smrgfi
3602fffe5102Smrg  CPP=$ac_cv_prog_CPP
3603fffe5102Smrgelse
3604fffe5102Smrg  ac_cv_prog_CPP=$CPP
360567f05d30Smrgfi
3606fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3607fffe5102Smrg$as_echo "$CPP" >&6; }
3608fffe5102Smrgac_preproc_ok=false
3609fffe5102Smrgfor ac_c_preproc_warn_flag in '' yes
3610fffe5102Smrgdo
3611fffe5102Smrg  # Use a header file that comes with gcc, so configuring glibc
3612fffe5102Smrg  # with a fresh cross-compiler works.
3613fffe5102Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3614fffe5102Smrg  # <limits.h> exists even on freestanding compilers.
3615fffe5102Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
3616fffe5102Smrg  # not just through cpp. "Syntax error" is here to catch this case.
3617fffe5102Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618fffe5102Smrg/* end confdefs.h.  */
3619fffe5102Smrg#ifdef __STDC__
3620fffe5102Smrg# include <limits.h>
3621fffe5102Smrg#else
3622fffe5102Smrg# include <assert.h>
3623fffe5102Smrg#endif
3624fffe5102Smrg		     Syntax error
3625fffe5102Smrg_ACEOF
3626fffe5102Smrgif ac_fn_c_try_cpp "$LINENO"; then :
362767f05d30Smrg
3628fffe5102Smrgelse
3629fffe5102Smrg  # Broken: fails on valid input.
3630fffe5102Smrgcontinue
3631fffe5102Smrgfi
3632fffe5102Smrgrm -f conftest.err conftest.$ac_ext
363367f05d30Smrg
3634fffe5102Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
3635fffe5102Smrg  # can be detected and how.
3636fffe5102Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3637fffe5102Smrg/* end confdefs.h.  */
3638fffe5102Smrg#include <ac_nonexistent.h>
3639fffe5102Smrg_ACEOF
3640fffe5102Smrgif ac_fn_c_try_cpp "$LINENO"; then :
3641fffe5102Smrg  # Broken: success on invalid input.
3642fffe5102Smrgcontinue
3643fffe5102Smrgelse
3644fffe5102Smrg  # Passes both tests.
3645fffe5102Smrgac_preproc_ok=:
3646fffe5102Smrgbreak
3647fffe5102Smrgfi
3648fffe5102Smrgrm -f conftest.err conftest.$ac_ext
364967f05d30Smrg
3650fffe5102Smrgdone
3651fffe5102Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3652fffe5102Smrgrm -f conftest.err conftest.$ac_ext
3653fffe5102Smrgif $ac_preproc_ok; then :
365467f05d30Smrg
3655fffe5102Smrgelse
3656fffe5102Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3657fffe5102Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3658fffe5102Smrgas_fn_error "C preprocessor \"$CPP\" fails sanity check
3659fffe5102SmrgSee \`config.log' for more details." "$LINENO" 5; }
3660fffe5102Smrgfi
366167f05d30Smrg
3662fffe5102Smrgac_ext=c
3663fffe5102Smrgac_cpp='$CPP $CPPFLAGS'
3664fffe5102Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3665fffe5102Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3666fffe5102Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
366767f05d30Smrg
366867f05d30Smrg
3669fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3670fffe5102Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3671fffe5102Smrgif test "${ac_cv_path_GREP+set}" = set; then :
3672fffe5102Smrg  $as_echo_n "(cached) " >&6
367367f05d30Smrgelse
3674fffe5102Smrg  if test -z "$GREP"; then
3675fffe5102Smrg  ac_path_GREP_found=false
3676fffe5102Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
367767f05d30Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678fffe5102Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
367967f05d30Smrgdo
368067f05d30Smrg  IFS=$as_save_IFS
368167f05d30Smrg  test -z "$as_dir" && as_dir=.
3682fffe5102Smrg    for ac_prog in grep ggrep; do
3683fffe5102Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3684fffe5102Smrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3685fffe5102Smrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3686fffe5102Smrg# Check for GNU ac_path_GREP and select it if it is found.
3687fffe5102Smrg  # Check for GNU $ac_path_GREP
3688fffe5102Smrgcase `"$ac_path_GREP" --version 2>&1` in
3689fffe5102Smrg*GNU*)
3690fffe5102Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3691fffe5102Smrg*)
3692fffe5102Smrg  ac_count=0
3693fffe5102Smrg  $as_echo_n 0123456789 >"conftest.in"
3694fffe5102Smrg  while :
3695fffe5102Smrg  do
3696fffe5102Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
3697fffe5102Smrg    mv "conftest.tmp" "conftest.in"
3698fffe5102Smrg    cp "conftest.in" "conftest.nl"
3699fffe5102Smrg    $as_echo 'GREP' >> "conftest.nl"
3700fffe5102Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3701fffe5102Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3702fffe5102Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
3703fffe5102Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3704fffe5102Smrg      # Best one so far, save it but keep looking for a better one
3705fffe5102Smrg      ac_cv_path_GREP="$ac_path_GREP"
3706fffe5102Smrg      ac_path_GREP_max=$ac_count
3707fffe5102Smrg    fi
3708fffe5102Smrg    # 10*(2^10) chars as input seems more than enough
3709fffe5102Smrg    test $ac_count -gt 10 && break
3710fffe5102Smrg  done
3711fffe5102Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
371267f05d30Smrgesac
371367f05d30Smrg
3714fffe5102Smrg      $ac_path_GREP_found && break 3
3715fffe5102Smrg    done
3716fffe5102Smrg  done
3717fffe5102Smrg  done
3718fffe5102SmrgIFS=$as_save_IFS
3719fffe5102Smrg  if test -z "$ac_cv_path_GREP"; then
3720fffe5102Smrg    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3721fffe5102Smrg  fi
372267f05d30Smrgelse
3723fffe5102Smrg  ac_cv_path_GREP=$GREP
372467f05d30Smrgfi
372567f05d30Smrg
372667f05d30Smrgfi
3727fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3728fffe5102Smrg$as_echo "$ac_cv_path_GREP" >&6; }
3729fffe5102Smrg GREP="$ac_cv_path_GREP"
3730fffe5102Smrg
3731fffe5102Smrg
3732fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3733fffe5102Smrg$as_echo_n "checking for egrep... " >&6; }
3734fffe5102Smrgif test "${ac_cv_path_EGREP+set}" = set; then :
3735fffe5102Smrg  $as_echo_n "(cached) " >&6
373667f05d30Smrgelse
3737fffe5102Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3738fffe5102Smrg   then ac_cv_path_EGREP="$GREP -E"
3739fffe5102Smrg   else
3740fffe5102Smrg     if test -z "$EGREP"; then
3741fffe5102Smrg  ac_path_EGREP_found=false
3742fffe5102Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
374367f05d30Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744fffe5102Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
374567f05d30Smrgdo
374667f05d30Smrg  IFS=$as_save_IFS
374767f05d30Smrg  test -z "$as_dir" && as_dir=.
3748fffe5102Smrg    for ac_prog in egrep; do
3749fffe5102Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3750fffe5102Smrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3751fffe5102Smrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3752fffe5102Smrg# Check for GNU ac_path_EGREP and select it if it is found.
3753fffe5102Smrg  # Check for GNU $ac_path_EGREP
3754fffe5102Smrgcase `"$ac_path_EGREP" --version 2>&1` in
3755fffe5102Smrg*GNU*)
3756fffe5102Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3757fffe5102Smrg*)
3758fffe5102Smrg  ac_count=0
3759fffe5102Smrg  $as_echo_n 0123456789 >"conftest.in"
3760fffe5102Smrg  while :
3761fffe5102Smrg  do
3762fffe5102Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
3763fffe5102Smrg    mv "conftest.tmp" "conftest.in"
3764fffe5102Smrg    cp "conftest.in" "conftest.nl"
3765fffe5102Smrg    $as_echo 'EGREP' >> "conftest.nl"
3766fffe5102Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3767fffe5102Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3768fffe5102Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
3769fffe5102Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3770fffe5102Smrg      # Best one so far, save it but keep looking for a better one
3771fffe5102Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
3772fffe5102Smrg      ac_path_EGREP_max=$ac_count
3773fffe5102Smrg    fi
3774fffe5102Smrg    # 10*(2^10) chars as input seems more than enough
3775fffe5102Smrg    test $ac_count -gt 10 && break
3776fffe5102Smrg  done
3777fffe5102Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3778fffe5102Smrgesac
3779fffe5102Smrg
3780fffe5102Smrg      $ac_path_EGREP_found && break 3
3781fffe5102Smrg    done
3782fffe5102Smrg  done
3783fffe5102Smrg  done
3784fffe5102SmrgIFS=$as_save_IFS
3785fffe5102Smrg  if test -z "$ac_cv_path_EGREP"; then
3786fffe5102Smrg    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3787fffe5102Smrg  fi
3788fffe5102Smrgelse
3789fffe5102Smrg  ac_cv_path_EGREP=$EGREP
3790fffe5102Smrgfi
3791fffe5102Smrg
3792fffe5102Smrg   fi
3793fffe5102Smrgfi
3794fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3795fffe5102Smrg$as_echo "$ac_cv_path_EGREP" >&6; }
3796fffe5102Smrg EGREP="$ac_cv_path_EGREP"
3797fffe5102Smrg
3798fffe5102Smrg
3799fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3800fffe5102Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
3801fffe5102Smrgif test "${ac_cv_header_stdc+set}" = set; then :
3802fffe5102Smrg  $as_echo_n "(cached) " >&6
3803fffe5102Smrgelse
3804fffe5102Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805fffe5102Smrg/* end confdefs.h.  */
3806fffe5102Smrg#include <stdlib.h>
3807fffe5102Smrg#include <stdarg.h>
3808fffe5102Smrg#include <string.h>
3809fffe5102Smrg#include <float.h>
3810fffe5102Smrg
3811fffe5102Smrgint
3812fffe5102Smrgmain ()
3813fffe5102Smrg{
3814fffe5102Smrg
3815fffe5102Smrg  ;
3816fffe5102Smrg  return 0;
3817fffe5102Smrg}
3818fffe5102Smrg_ACEOF
3819fffe5102Smrgif ac_fn_c_try_compile "$LINENO"; then :
3820fffe5102Smrg  ac_cv_header_stdc=yes
3821fffe5102Smrgelse
3822fffe5102Smrg  ac_cv_header_stdc=no
3823fffe5102Smrgfi
3824fffe5102Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825fffe5102Smrg
3826fffe5102Smrgif test $ac_cv_header_stdc = yes; then
3827fffe5102Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3828fffe5102Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829fffe5102Smrg/* end confdefs.h.  */
3830fffe5102Smrg#include <string.h>
3831fffe5102Smrg
3832fffe5102Smrg_ACEOF
3833fffe5102Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3834fffe5102Smrg  $EGREP "memchr" >/dev/null 2>&1; then :
3835fffe5102Smrg
3836fffe5102Smrgelse
3837fffe5102Smrg  ac_cv_header_stdc=no
3838fffe5102Smrgfi
3839fffe5102Smrgrm -f conftest*
3840fffe5102Smrg
3841fffe5102Smrgfi
3842fffe5102Smrg
3843fffe5102Smrgif test $ac_cv_header_stdc = yes; then
3844fffe5102Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3845fffe5102Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846fffe5102Smrg/* end confdefs.h.  */
3847fffe5102Smrg#include <stdlib.h>
3848fffe5102Smrg
3849fffe5102Smrg_ACEOF
3850fffe5102Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3851fffe5102Smrg  $EGREP "free" >/dev/null 2>&1; then :
3852fffe5102Smrg
3853fffe5102Smrgelse
3854fffe5102Smrg  ac_cv_header_stdc=no
3855fffe5102Smrgfi
3856fffe5102Smrgrm -f conftest*
3857fffe5102Smrg
3858fffe5102Smrgfi
3859fffe5102Smrg
3860fffe5102Smrgif test $ac_cv_header_stdc = yes; then
3861fffe5102Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3862fffe5102Smrg  if test "$cross_compiling" = yes; then :
3863fffe5102Smrg  :
3864fffe5102Smrgelse
3865fffe5102Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866fffe5102Smrg/* end confdefs.h.  */
3867fffe5102Smrg#include <ctype.h>
3868fffe5102Smrg#include <stdlib.h>
3869fffe5102Smrg#if ((' ' & 0x0FF) == 0x020)
3870fffe5102Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3871fffe5102Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3872fffe5102Smrg#else
3873fffe5102Smrg# define ISLOWER(c) \
3874fffe5102Smrg		   (('a' <= (c) && (c) <= 'i') \
3875fffe5102Smrg		     || ('j' <= (c) && (c) <= 'r') \
3876fffe5102Smrg		     || ('s' <= (c) && (c) <= 'z'))
3877fffe5102Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3878fffe5102Smrg#endif
3879fffe5102Smrg
3880fffe5102Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3881fffe5102Smrgint
3882fffe5102Smrgmain ()
3883fffe5102Smrg{
3884fffe5102Smrg  int i;
3885fffe5102Smrg  for (i = 0; i < 256; i++)
3886fffe5102Smrg    if (XOR (islower (i), ISLOWER (i))
3887fffe5102Smrg	|| toupper (i) != TOUPPER (i))
3888fffe5102Smrg      return 2;
3889fffe5102Smrg  return 0;
3890fffe5102Smrg}
3891fffe5102Smrg_ACEOF
3892fffe5102Smrgif ac_fn_c_try_run "$LINENO"; then :
3893fffe5102Smrg
3894fffe5102Smrgelse
3895fffe5102Smrg  ac_cv_header_stdc=no
3896fffe5102Smrgfi
3897fffe5102Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3898fffe5102Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
3899fffe5102Smrgfi
3900fffe5102Smrg
3901fffe5102Smrgfi
3902fffe5102Smrgfi
3903fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3904fffe5102Smrg$as_echo "$ac_cv_header_stdc" >&6; }
3905fffe5102Smrgif test $ac_cv_header_stdc = yes; then
3906fffe5102Smrg
3907fffe5102Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3908fffe5102Smrg
3909fffe5102Smrgfi
3910fffe5102Smrg
3911fffe5102Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3912fffe5102Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3913fffe5102Smrg		  inttypes.h stdint.h unistd.h
3914fffe5102Smrgdo :
3915fffe5102Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3916fffe5102Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3917fffe5102Smrg"
3918fffe5102Smrgeval as_val=\$$as_ac_Header
3919fffe5102Smrg   if test "x$as_val" = x""yes; then :
3920fffe5102Smrg  cat >>confdefs.h <<_ACEOF
3921fffe5102Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3922fffe5102Smrg_ACEOF
3923fffe5102Smrg
3924fffe5102Smrgfi
3925fffe5102Smrg
3926fffe5102Smrgdone
3927fffe5102Smrg
3928fffe5102Smrg
3929fffe5102Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3930fffe5102Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3931fffe5102Smrgif test "${ac_cv_prog_cc_c99+set}" = set; then :
3932fffe5102Smrg  $as_echo_n "(cached) " >&6
3933fffe5102Smrgelse
3934fffe5102Smrg  ac_cv_prog_cc_c99=no
3935fffe5102Smrgac_save_CC=$CC
3936fffe5102Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937fffe5102Smrg/* end confdefs.h.  */
3938fffe5102Smrg#include <stdarg.h>
3939fffe5102Smrg#include <stdbool.h>
3940fffe5102Smrg#include <stdlib.h>
3941fffe5102Smrg#include <wchar.h>
3942fffe5102Smrg#include <stdio.h>
3943fffe5102Smrg
3944fffe5102Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3945fffe5102Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
3946fffe5102Smrg#define showlist(...) puts (#__VA_ARGS__)
3947fffe5102Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3948fffe5102Smrgstatic void
3949fffe5102Smrgtest_varargs_macros (void)
3950fffe5102Smrg{
3951fffe5102Smrg  int x = 1234;
3952fffe5102Smrg  int y = 5678;
3953fffe5102Smrg  debug ("Flag");
3954fffe5102Smrg  debug ("X = %d\n", x);
3955fffe5102Smrg  showlist (The first, second, and third items.);
3956fffe5102Smrg  report (x>y, "x is %d but y is %d", x, y);
3957fffe5102Smrg}
3958fffe5102Smrg
3959fffe5102Smrg// Check long long types.
3960fffe5102Smrg#define BIG64 18446744073709551615ull
3961fffe5102Smrg#define BIG32 4294967295ul
3962fffe5102Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3963fffe5102Smrg#if !BIG_OK
3964fffe5102Smrg  your preprocessor is broken;
3965fffe5102Smrg#endif
3966fffe5102Smrg#if BIG_OK
3967fffe5102Smrg#else
3968fffe5102Smrg  your preprocessor is broken;
3969fffe5102Smrg#endif
3970fffe5102Smrgstatic long long int bignum = -9223372036854775807LL;
3971fffe5102Smrgstatic unsigned long long int ubignum = BIG64;
3972fffe5102Smrg
3973fffe5102Smrgstruct incomplete_array
3974fffe5102Smrg{
3975fffe5102Smrg  int datasize;
3976fffe5102Smrg  double data[];
3977fffe5102Smrg};
3978fffe5102Smrg
3979fffe5102Smrgstruct named_init {
3980fffe5102Smrg  int number;
3981fffe5102Smrg  const wchar_t *name;
3982fffe5102Smrg  double average;
3983fffe5102Smrg};
3984fffe5102Smrg
3985fffe5102Smrgtypedef const char *ccp;
3986fffe5102Smrg
3987fffe5102Smrgstatic inline int
3988fffe5102Smrgtest_restrict (ccp restrict text)
3989fffe5102Smrg{
3990fffe5102Smrg  // See if C++-style comments work.
3991fffe5102Smrg  // Iterate through items via the restricted pointer.
3992fffe5102Smrg  // Also check for declarations in for loops.
3993fffe5102Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3994fffe5102Smrg    continue;
3995fffe5102Smrg  return 0;
3996fffe5102Smrg}
3997fffe5102Smrg
3998fffe5102Smrg// Check varargs and va_copy.
3999fffe5102Smrgstatic void
4000fffe5102Smrgtest_varargs (const char *format, ...)
4001fffe5102Smrg{
4002fffe5102Smrg  va_list args;
4003fffe5102Smrg  va_start (args, format);
4004fffe5102Smrg  va_list args_copy;
4005fffe5102Smrg  va_copy (args_copy, args);
4006fffe5102Smrg
4007fffe5102Smrg  const char *str;
4008fffe5102Smrg  int number;
4009fffe5102Smrg  float fnumber;
4010fffe5102Smrg
4011fffe5102Smrg  while (*format)
4012fffe5102Smrg    {
4013fffe5102Smrg      switch (*format++)
4014fffe5102Smrg	{
4015fffe5102Smrg	case 's': // string
4016fffe5102Smrg	  str = va_arg (args_copy, const char *);
4017fffe5102Smrg	  break;
4018fffe5102Smrg	case 'd': // int
4019fffe5102Smrg	  number = va_arg (args_copy, int);
4020fffe5102Smrg	  break;
4021fffe5102Smrg	case 'f': // float
4022fffe5102Smrg	  fnumber = va_arg (args_copy, double);
4023fffe5102Smrg	  break;
4024fffe5102Smrg	default:
4025fffe5102Smrg	  break;
4026fffe5102Smrg	}
4027fffe5102Smrg    }
4028fffe5102Smrg  va_end (args_copy);
4029fffe5102Smrg  va_end (args);
4030fffe5102Smrg}
4031fffe5102Smrg
4032fffe5102Smrgint
4033fffe5102Smrgmain ()
4034fffe5102Smrg{
4035fffe5102Smrg
4036fffe5102Smrg  // Check bool.
4037fffe5102Smrg  _Bool success = false;
4038fffe5102Smrg
4039fffe5102Smrg  // Check restrict.
4040fffe5102Smrg  if (test_restrict ("String literal") == 0)
4041fffe5102Smrg    success = true;
4042fffe5102Smrg  char *restrict newvar = "Another string";
4043fffe5102Smrg
4044fffe5102Smrg  // Check varargs.
4045fffe5102Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
4046fffe5102Smrg  test_varargs_macros ();
4047fffe5102Smrg
4048fffe5102Smrg  // Check flexible array members.
4049fffe5102Smrg  struct incomplete_array *ia =
4050fffe5102Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4051fffe5102Smrg  ia->datasize = 10;
4052fffe5102Smrg  for (int i = 0; i < ia->datasize; ++i)
4053fffe5102Smrg    ia->data[i] = i * 1.234;
4054fffe5102Smrg
4055fffe5102Smrg  // Check named initializers.
4056fffe5102Smrg  struct named_init ni = {
4057fffe5102Smrg    .number = 34,
4058fffe5102Smrg    .name = L"Test wide string",
4059fffe5102Smrg    .average = 543.34343,
4060fffe5102Smrg  };
4061fffe5102Smrg
4062fffe5102Smrg  ni.number = 58;
4063fffe5102Smrg
4064fffe5102Smrg  int dynamic_array[ni.number];
4065fffe5102Smrg  dynamic_array[ni.number - 1] = 543;
4066fffe5102Smrg
4067fffe5102Smrg  // work around unused variable warnings
4068fffe5102Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4069fffe5102Smrg	  || dynamic_array[ni.number - 1] != 543);
4070fffe5102Smrg
4071fffe5102Smrg  ;
4072fffe5102Smrg  return 0;
4073fffe5102Smrg}
4074fffe5102Smrg_ACEOF
4075fffe5102Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4076fffe5102Smrgdo
4077fffe5102Smrg  CC="$ac_save_CC $ac_arg"
4078fffe5102Smrg  if ac_fn_c_try_compile "$LINENO"; then :
4079fffe5102Smrg  ac_cv_prog_cc_c99=$ac_arg
4080fffe5102Smrgfi
4081fffe5102Smrgrm -f core conftest.err conftest.$ac_objext
4082fffe5102Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
4083fffe5102Smrgdone
4084fffe5102Smrgrm -f conftest.$ac_ext
4085fffe5102SmrgCC=$ac_save_CC
4086fffe5102Smrg
4087fffe5102Smrgfi
4088fffe5102Smrg# AC_CACHE_VAL
4089fffe5102Smrgcase "x$ac_cv_prog_cc_c99" in
4090fffe5102Smrg  x)
4091fffe5102Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4092fffe5102Smrg$as_echo "none needed" >&6; } ;;
4093fffe5102Smrg  xno)
4094fffe5102Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4095fffe5102Smrg$as_echo "unsupported" >&6; } ;;
4096fffe5102Smrg  *)
4097fffe5102Smrg    CC="$CC $ac_cv_prog_cc_c99"
4098fffe5102Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4099fffe5102Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4100fffe5102Smrgesac
4101fffe5102Smrgif test "x$ac_cv_prog_cc_c99" != xno; then :
4102fffe5102Smrg
4103fffe5102Smrgfi
4104fffe5102Smrg
4105fffe5102Smrg
4106fffe5102Smrg
4107fffe5102Smrg
4108fffe5102Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4109fffe5102Smrg	if test -n "$ac_tool_prefix"; then
4110fffe5102Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4111fffe5102Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4112fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4113fffe5102Smrg$as_echo_n "checking for $ac_word... " >&6; }
4114fffe5102Smrgif test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4115fffe5102Smrg  $as_echo_n "(cached) " >&6
4116fffe5102Smrgelse
4117fffe5102Smrg  case $PKG_CONFIG in
4118fffe5102Smrg  [\\/]* | ?:[\\/]*)
4119fffe5102Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4120fffe5102Smrg  ;;
4121fffe5102Smrg  *)
4122fffe5102Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123fffe5102Smrgfor as_dir in $PATH
4124fffe5102Smrgdo
4125fffe5102Smrg  IFS=$as_save_IFS
4126fffe5102Smrg  test -z "$as_dir" && as_dir=.
4127fffe5102Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4128fffe5102Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4129fffe5102Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4130fffe5102Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4131fffe5102Smrg    break 2
4132fffe5102Smrg  fi
4133fffe5102Smrgdone
4134fffe5102Smrg  done
4135fffe5102SmrgIFS=$as_save_IFS
4136fffe5102Smrg
4137fffe5102Smrg  ;;
4138fffe5102Smrgesac
4139fffe5102Smrgfi
4140fffe5102SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
4141fffe5102Smrgif test -n "$PKG_CONFIG"; then
4142fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4143fffe5102Smrg$as_echo "$PKG_CONFIG" >&6; }
4144fffe5102Smrgelse
4145fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4146fffe5102Smrg$as_echo "no" >&6; }
4147fffe5102Smrgfi
4148fffe5102Smrg
4149fffe5102Smrg
4150fffe5102Smrgfi
4151fffe5102Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
4152fffe5102Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
4153fffe5102Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
4154fffe5102Smrgset dummy pkg-config; ac_word=$2
4155fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4156fffe5102Smrg$as_echo_n "checking for $ac_word... " >&6; }
4157fffe5102Smrgif test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4158fffe5102Smrg  $as_echo_n "(cached) " >&6
4159fffe5102Smrgelse
4160fffe5102Smrg  case $ac_pt_PKG_CONFIG in
4161fffe5102Smrg  [\\/]* | ?:[\\/]*)
4162fffe5102Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4163fffe5102Smrg  ;;
4164fffe5102Smrg  *)
4165fffe5102Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166fffe5102Smrgfor as_dir in $PATH
4167fffe5102Smrgdo
4168fffe5102Smrg  IFS=$as_save_IFS
4169fffe5102Smrg  test -z "$as_dir" && as_dir=.
4170fffe5102Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4171fffe5102Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4172fffe5102Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4173fffe5102Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4174fffe5102Smrg    break 2
4175fffe5102Smrg  fi
4176fffe5102Smrgdone
4177fffe5102Smrg  done
4178fffe5102SmrgIFS=$as_save_IFS
417967f05d30Smrg
4180fffe5102Smrg  ;;
4181fffe5102Smrgesac
4182fffe5102Smrgfi
4183fffe5102Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
418467f05d30Smrgif test -n "$ac_pt_PKG_CONFIG"; then
4185fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4186fffe5102Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4187fffe5102Smrgelse
4188fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4189fffe5102Smrg$as_echo "no" >&6; }
4190fffe5102Smrgfi
4191fffe5102Smrg
4192fffe5102Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
4193fffe5102Smrg    PKG_CONFIG=""
4194fffe5102Smrg  else
4195fffe5102Smrg    case $cross_compiling:$ac_tool_warned in
4196fffe5102Smrgyes:)
4197fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4198fffe5102Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4199fffe5102Smrgac_tool_warned=yes ;;
4200fffe5102Smrgesac
4201fffe5102Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
4202fffe5102Smrg  fi
4203fffe5102Smrgelse
4204fffe5102Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4205fffe5102Smrgfi
4206fffe5102Smrg
4207fffe5102Smrgfi
4208fffe5102Smrgif test -n "$PKG_CONFIG"; then
4209fffe5102Smrg	_pkg_min_version=0.9.0
4210fffe5102Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4211fffe5102Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4212fffe5102Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4213fffe5102Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4214fffe5102Smrg$as_echo "yes" >&6; }
4215fffe5102Smrg	else
4216fffe5102Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4217fffe5102Smrg$as_echo "no" >&6; }
4218fffe5102Smrg		PKG_CONFIG=""
4219fffe5102Smrg	fi
4220fffe5102Smrg
4221fffe5102Smrgfi
4222fffe5102Smrg# Make sure we can run config.sub.
4223fffe5102Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4224fffe5102Smrg  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4225fffe5102Smrg
4226fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4227fffe5102Smrg$as_echo_n "checking build system type... " >&6; }
4228fffe5102Smrgif test "${ac_cv_build+set}" = set; then :
4229fffe5102Smrg  $as_echo_n "(cached) " >&6
4230fffe5102Smrgelse
4231fffe5102Smrg  ac_build_alias=$build_alias
4232fffe5102Smrgtest "x$ac_build_alias" = x &&
4233fffe5102Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4234fffe5102Smrgtest "x$ac_build_alias" = x &&
4235fffe5102Smrg  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4236fffe5102Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4237fffe5102Smrg  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4238fffe5102Smrg
4239fffe5102Smrgfi
4240fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4241fffe5102Smrg$as_echo "$ac_cv_build" >&6; }
4242fffe5102Smrgcase $ac_cv_build in
4243fffe5102Smrg*-*-*) ;;
4244fffe5102Smrg*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4245fffe5102Smrgesac
4246fffe5102Smrgbuild=$ac_cv_build
4247fffe5102Smrgac_save_IFS=$IFS; IFS='-'
4248fffe5102Smrgset x $ac_cv_build
4249fffe5102Smrgshift
4250fffe5102Smrgbuild_cpu=$1
4251fffe5102Smrgbuild_vendor=$2
4252fffe5102Smrgshift; shift
4253fffe5102Smrg# Remember, the first character of IFS is used to create $*,
4254fffe5102Smrg# except with old shells:
4255fffe5102Smrgbuild_os=$*
4256fffe5102SmrgIFS=$ac_save_IFS
4257fffe5102Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4258fffe5102Smrg
4259fffe5102Smrg
4260fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4261fffe5102Smrg$as_echo_n "checking host system type... " >&6; }
4262fffe5102Smrgif test "${ac_cv_host+set}" = set; then :
4263fffe5102Smrg  $as_echo_n "(cached) " >&6
4264fffe5102Smrgelse
4265fffe5102Smrg  if test "x$host_alias" = x; then
4266fffe5102Smrg  ac_cv_host=$ac_cv_build
4267fffe5102Smrgelse
4268fffe5102Smrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4269fffe5102Smrg    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4270fffe5102Smrgfi
4271fffe5102Smrg
4272fffe5102Smrgfi
4273fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4274fffe5102Smrg$as_echo "$ac_cv_host" >&6; }
4275fffe5102Smrgcase $ac_cv_host in
4276fffe5102Smrg*-*-*) ;;
4277fffe5102Smrg*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4278fffe5102Smrgesac
4279fffe5102Smrghost=$ac_cv_host
4280fffe5102Smrgac_save_IFS=$IFS; IFS='-'
4281fffe5102Smrgset x $ac_cv_host
4282fffe5102Smrgshift
4283fffe5102Smrghost_cpu=$1
4284fffe5102Smrghost_vendor=$2
4285fffe5102Smrgshift; shift
4286fffe5102Smrg# Remember, the first character of IFS is used to create $*,
4287fffe5102Smrg# except with old shells:
4288fffe5102Smrghost_os=$*
4289fffe5102SmrgIFS=$ac_save_IFS
4290fffe5102Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4291fffe5102Smrg
4292fffe5102Smrg
4293fffe5102Smrg
4294fffe5102Smrg
4295fffe5102Smrg
4296fffe5102Smrgif  test "x$GCC" = xyes ; then
4297fffe5102Smrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4298fffe5102Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4299fffe5102Smrg-Wbad-function-cast"
4300fffe5102Smrg    case `$CC -dumpversion` in
4301fffe5102Smrg    3.4.* | 4.*)
4302fffe5102Smrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4303fffe5102Smrg	;;
4304fffe5102Smrg    esac
4305fffe5102Smrgelse
4306fffe5102Smrg    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4307fffe5102Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4308fffe5102Smrg  SUNCC="yes"
4309fffe5102Smrgelse
4310fffe5102Smrg  SUNCC="no"
4311fffe5102Smrgfi
4312fffe5102Smrg
4313fffe5102Smrg    if test "x$SUNCC" = "xyes"; then
4314fffe5102Smrg	CWARNFLAGS="-v"
4315fffe5102Smrg    fi
4316fffe5102Smrgfi
4317fffe5102Smrg
4318fffe5102Smrg# Check whether --enable-silent-rules was given.
4319fffe5102Smrgif test "${enable_silent_rules+set}" = set; then :
4320fffe5102Smrg  enableval=$enable_silent_rules;
4321fffe5102Smrgfi
4322fffe5102Smrg
4323fffe5102Smrgcase $enable_silent_rules in
4324fffe5102Smrgyes) AM_DEFAULT_VERBOSITY=0;;
4325fffe5102Smrgno)  AM_DEFAULT_VERBOSITY=1;;
4326fffe5102Smrg*)   AM_DEFAULT_VERBOSITY=0;;
4327fffe5102Smrgesac
4328fffe5102SmrgAM_BACKSLASH='\'
4329fffe5102Smrg
4330fffe5102Smrg
4331fffe5102Smrg
4332fffe5102Smrg
4333fffe5102Smrg
4334fffe5102Smrg
4335fffe5102Smrg
4336fffe5102Smrg# Check whether --enable-strict-compilation was given.
4337fffe5102Smrgif test "${enable_strict_compilation+set}" = set; then :
4338fffe5102Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4339fffe5102Smrgelse
4340fffe5102Smrg  STRICT_COMPILE=no
4341fffe5102Smrgfi
4342fffe5102Smrg
4343fffe5102Smrgif test "x$STRICT_COMPILE" = "xyes"; then
4344fffe5102Smrg	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4345fffe5102Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4346fffe5102Smrg  SUNCC="yes"
4347fffe5102Smrgelse
4348fffe5102Smrg  SUNCC="no"
4349fffe5102Smrgfi
4350fffe5102Smrg
4351fffe5102Smrg	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4352fffe5102Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then :
4353fffe5102Smrg  INTELCC="yes"
4354fffe5102Smrgelse
4355fffe5102Smrg  INTELCC="no"
4356fffe5102Smrgfi
4357fffe5102Smrg
4358fffe5102Smrg	if test "x$GCC" = xyes ; then
4359fffe5102Smrg		STRICT_CFLAGS="-pedantic -Werror"
4360fffe5102Smrg	elif test "x$SUNCC" = "xyes"; then
4361fffe5102Smrg		STRICT_CFLAGS="-errwarn"
4362fffe5102Smrg    elif test "x$INTELCC" = "xyes"; then
4363fffe5102Smrg		STRICT_CFLAGS="-Werror"
4364fffe5102Smrg	fi
4365fffe5102Smrgfi
4366fffe5102SmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4367fffe5102Smrg
4368fffe5102Smrg
4369fffe5102Smrg
4370fffe5102Smrg
4371fffe5102Smrg# Check whether --with-release-version was given.
4372fffe5102Smrgif test "${with_release_version+set}" = set; then :
4373fffe5102Smrg  withval=$with_release_version; RELEASE_VERSION="$withval"
4374fffe5102Smrgelse
4375fffe5102Smrg  RELEASE_VERSION=""
4376fffe5102Smrgfi
4377fffe5102Smrg
4378fffe5102Smrg	if test "x$RELEASE_VERSION" != "x"; then
4379fffe5102Smrg		PACKAGE="$PACKAGE-$RELEASE_VERSION"
4380fffe5102Smrg		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
4381fffe5102Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: Building with package name set to $PACKAGE" >&5
4382fffe5102Smrg$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
4383fffe5102Smrg	fi
4384fffe5102Smrg
4385fffe5102Smrgcat >>confdefs.h <<_ACEOF
4386fffe5102Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4387fffe5102Smrg_ACEOF
4388fffe5102Smrg
4389fffe5102Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4390fffe5102Smrg	if test "x$PVM" = "x"; then
4391fffe5102Smrg		PVM="0"
4392fffe5102Smrg	fi
4393fffe5102Smrg
4394fffe5102Smrgcat >>confdefs.h <<_ACEOF
4395fffe5102Smrg#define PACKAGE_VERSION_MINOR $PVM
4396fffe5102Smrg_ACEOF
4397fffe5102Smrg
4398fffe5102Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4399fffe5102Smrg	if test "x$PVP" = "x"; then
4400fffe5102Smrg		PVP="0"
4401fffe5102Smrg	fi
4402fffe5102Smrg
4403fffe5102Smrgcat >>confdefs.h <<_ACEOF
4404fffe5102Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
4405fffe5102Smrg_ACEOF
4406fffe5102Smrg
4407fffe5102Smrg
4408fffe5102Smrg
4409fffe5102SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4410fffe5102Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4411fffe5102Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4412fffe5102Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
4413fffe5102Smrg
4414fffe5102Smrg
4415fffe5102Smrg
4416fffe5102Smrg
4417fffe5102Smrgmacros_docdir=$($PKG_CONFIG --print-errors --variable=docdir xorg-macros)
4418fffe5102SmrgINSTALL_CMD="(cp -f "$macros_docdir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4419fffe5102Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4420fffe5102Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4421fffe5102Smrgecho 'util-macros \"docdir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4422fffe5102Smrg
4423fffe5102Smrg
4424fffe5102Smrg
4425fffe5102Smrg
4426fffe5102Smrg
4427fffe5102Smrgif test x$APP_MAN_SUFFIX = x    ; then
4428fffe5102Smrg    APP_MAN_SUFFIX=1
4429fffe5102Smrgfi
4430fffe5102Smrgif test x$APP_MAN_DIR = x    ; then
4431fffe5102Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4432fffe5102Smrgfi
4433fffe5102Smrg
4434fffe5102Smrgif test x$LIB_MAN_SUFFIX = x    ; then
4435fffe5102Smrg    LIB_MAN_SUFFIX=3
4436fffe5102Smrgfi
4437fffe5102Smrgif test x$LIB_MAN_DIR = x    ; then
4438fffe5102Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4439fffe5102Smrgfi
4440fffe5102Smrg
4441fffe5102Smrgif test x$FILE_MAN_SUFFIX = x    ; then
4442fffe5102Smrg    case $host_os in
4443fffe5102Smrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
4444fffe5102Smrg	*)		FILE_MAN_SUFFIX=5  ;;
4445fffe5102Smrg    esac
4446fffe5102Smrgfi
4447fffe5102Smrgif test x$FILE_MAN_DIR = x    ; then
4448fffe5102Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4449fffe5102Smrgfi
4450fffe5102Smrg
4451fffe5102Smrgif test x$MISC_MAN_SUFFIX = x    ; then
4452fffe5102Smrg    case $host_os in
4453fffe5102Smrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
4454fffe5102Smrg	*)		MISC_MAN_SUFFIX=7  ;;
4455fffe5102Smrg    esac
4456fffe5102Smrgfi
4457fffe5102Smrgif test x$MISC_MAN_DIR = x    ; then
4458fffe5102Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4459fffe5102Smrgfi
4460fffe5102Smrg
4461fffe5102Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
4462fffe5102Smrg    case $host_os in
4463fffe5102Smrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
4464fffe5102Smrg	*)		DRIVER_MAN_SUFFIX=4  ;;
4465fffe5102Smrg    esac
4466fffe5102Smrgfi
4467fffe5102Smrgif test x$DRIVER_MAN_DIR = x    ; then
4468fffe5102Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4469fffe5102Smrgfi
4470fffe5102Smrg
4471fffe5102Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
4472fffe5102Smrg    case $host_os in
4473fffe5102Smrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
4474fffe5102Smrg	*)		ADMIN_MAN_SUFFIX=8  ;;
4475fffe5102Smrg    esac
4476fffe5102Smrgfi
4477fffe5102Smrgif test x$ADMIN_MAN_DIR = x    ; then
4478fffe5102Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4479fffe5102Smrgfi
4480fffe5102Smrg
4481fffe5102Smrg
4482fffe5102Smrg
4483fffe5102Smrg
4484fffe5102Smrg
4485fffe5102Smrg
4486fffe5102Smrg
4487fffe5102Smrg
4488fffe5102Smrg
4489fffe5102Smrg
4490fffe5102Smrg
4491fffe5102Smrg
4492fffe5102Smrg
4493fffe5102Smrg
4494fffe5102Smrg
4495fffe5102Smrg
4496fffe5102Smrg
4497fffe5102Smrgac_config_headers="$ac_config_headers config.h"
4498fffe5102Smrg
4499fffe5102Smrg
4500fffe5102Smrgac_ext=c
4501fffe5102Smrgac_cpp='$CPP $CPPFLAGS'
4502fffe5102Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4503fffe5102Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4504fffe5102Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
4505fffe5102Smrgif test -n "$ac_tool_prefix"; then
4506fffe5102Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4507fffe5102Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
4508fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4509fffe5102Smrg$as_echo_n "checking for $ac_word... " >&6; }
4510fffe5102Smrgif test "${ac_cv_prog_CC+set}" = set; then :
4511fffe5102Smrg  $as_echo_n "(cached) " >&6
4512fffe5102Smrgelse
4513fffe5102Smrg  if test -n "$CC"; then
4514fffe5102Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
4515fffe5102Smrgelse
4516fffe5102Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517fffe5102Smrgfor as_dir in $PATH
4518fffe5102Smrgdo
4519fffe5102Smrg  IFS=$as_save_IFS
4520fffe5102Smrg  test -z "$as_dir" && as_dir=.
4521fffe5102Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4522fffe5102Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4523fffe5102Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4524fffe5102Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4525fffe5102Smrg    break 2
4526fffe5102Smrg  fi
4527fffe5102Smrgdone
4528fffe5102Smrg  done
4529fffe5102SmrgIFS=$as_save_IFS
4530fffe5102Smrg
4531fffe5102Smrgfi
4532fffe5102Smrgfi
4533fffe5102SmrgCC=$ac_cv_prog_CC
4534fffe5102Smrgif test -n "$CC"; then
4535fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4536fffe5102Smrg$as_echo "$CC" >&6; }
4537fffe5102Smrgelse
4538fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4539fffe5102Smrg$as_echo "no" >&6; }
4540fffe5102Smrgfi
4541fffe5102Smrg
4542fffe5102Smrg
4543fffe5102Smrgfi
4544fffe5102Smrgif test -z "$ac_cv_prog_CC"; then
4545fffe5102Smrg  ac_ct_CC=$CC
4546fffe5102Smrg  # Extract the first word of "gcc", so it can be a program name with args.
4547fffe5102Smrgset dummy gcc; ac_word=$2
4548fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4549fffe5102Smrg$as_echo_n "checking for $ac_word... " >&6; }
4550fffe5102Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4551fffe5102Smrg  $as_echo_n "(cached) " >&6
4552fffe5102Smrgelse
4553fffe5102Smrg  if test -n "$ac_ct_CC"; then
4554fffe5102Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4555fffe5102Smrgelse
4556fffe5102Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557fffe5102Smrgfor as_dir in $PATH
4558fffe5102Smrgdo
4559fffe5102Smrg  IFS=$as_save_IFS
4560fffe5102Smrg  test -z "$as_dir" && as_dir=.
4561fffe5102Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4562fffe5102Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4563fffe5102Smrg    ac_cv_prog_ac_ct_CC="gcc"
4564fffe5102Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4565fffe5102Smrg    break 2
4566fffe5102Smrg  fi
4567fffe5102Smrgdone
4568fffe5102Smrg  done
4569fffe5102SmrgIFS=$as_save_IFS
4570fffe5102Smrg
4571fffe5102Smrgfi
4572fffe5102Smrgfi
4573fffe5102Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
4574fffe5102Smrgif test -n "$ac_ct_CC"; then
4575fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4576fffe5102Smrg$as_echo "$ac_ct_CC" >&6; }
4577fffe5102Smrgelse
4578fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579fffe5102Smrg$as_echo "no" >&6; }
4580fffe5102Smrgfi
4581fffe5102Smrg
4582fffe5102Smrg  if test "x$ac_ct_CC" = x; then
4583fffe5102Smrg    CC=""
4584fffe5102Smrg  else
4585fffe5102Smrg    case $cross_compiling:$ac_tool_warned in
4586fffe5102Smrgyes:)
4587fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4588fffe5102Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4589fffe5102Smrgac_tool_warned=yes ;;
4590fffe5102Smrgesac
4591fffe5102Smrg    CC=$ac_ct_CC
4592fffe5102Smrg  fi
4593fffe5102Smrgelse
4594fffe5102Smrg  CC="$ac_cv_prog_CC"
4595fffe5102Smrgfi
4596fffe5102Smrg
4597fffe5102Smrgif test -z "$CC"; then
4598fffe5102Smrg          if test -n "$ac_tool_prefix"; then
4599fffe5102Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4600fffe5102Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
4601fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4602fffe5102Smrg$as_echo_n "checking for $ac_word... " >&6; }
4603fffe5102Smrgif test "${ac_cv_prog_CC+set}" = set; then :
4604fffe5102Smrg  $as_echo_n "(cached) " >&6
4605fffe5102Smrgelse
4606fffe5102Smrg  if test -n "$CC"; then
4607fffe5102Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
4608fffe5102Smrgelse
4609fffe5102Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610fffe5102Smrgfor as_dir in $PATH
4611fffe5102Smrgdo
4612fffe5102Smrg  IFS=$as_save_IFS
4613fffe5102Smrg  test -z "$as_dir" && as_dir=.
4614fffe5102Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4615fffe5102Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4616fffe5102Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
4617fffe5102Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618fffe5102Smrg    break 2
4619fffe5102Smrg  fi
4620fffe5102Smrgdone
4621fffe5102Smrg  done
4622fffe5102SmrgIFS=$as_save_IFS
4623fffe5102Smrg
4624fffe5102Smrgfi
4625fffe5102Smrgfi
4626fffe5102SmrgCC=$ac_cv_prog_CC
4627fffe5102Smrgif test -n "$CC"; then
4628fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4629fffe5102Smrg$as_echo "$CC" >&6; }
4630fffe5102Smrgelse
4631fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4632fffe5102Smrg$as_echo "no" >&6; }
4633fffe5102Smrgfi
4634fffe5102Smrg
4635fffe5102Smrg
4636fffe5102Smrg  fi
4637fffe5102Smrgfi
4638fffe5102Smrgif test -z "$CC"; then
4639fffe5102Smrg  # Extract the first word of "cc", so it can be a program name with args.
4640fffe5102Smrgset dummy cc; ac_word=$2
4641fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642fffe5102Smrg$as_echo_n "checking for $ac_word... " >&6; }
4643fffe5102Smrgif test "${ac_cv_prog_CC+set}" = set; then :
4644fffe5102Smrg  $as_echo_n "(cached) " >&6
4645fffe5102Smrgelse
4646fffe5102Smrg  if test -n "$CC"; then
4647fffe5102Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
4648fffe5102Smrgelse
4649fffe5102Smrg  ac_prog_rejected=no
4650fffe5102Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651fffe5102Smrgfor as_dir in $PATH
4652fffe5102Smrgdo
4653fffe5102Smrg  IFS=$as_save_IFS
4654fffe5102Smrg  test -z "$as_dir" && as_dir=.
4655fffe5102Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4656fffe5102Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4657fffe5102Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4658fffe5102Smrg       ac_prog_rejected=yes
4659fffe5102Smrg       continue
4660fffe5102Smrg     fi
4661fffe5102Smrg    ac_cv_prog_CC="cc"
4662fffe5102Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4663fffe5102Smrg    break 2
4664fffe5102Smrg  fi
4665fffe5102Smrgdone
4666fffe5102Smrg  done
4667fffe5102SmrgIFS=$as_save_IFS
4668fffe5102Smrg
4669fffe5102Smrgif test $ac_prog_rejected = yes; then
4670fffe5102Smrg  # We found a bogon in the path, so make sure we never use it.
4671fffe5102Smrg  set dummy $ac_cv_prog_CC
4672fffe5102Smrg  shift
4673fffe5102Smrg  if test $# != 0; then
4674fffe5102Smrg    # We chose a different compiler from the bogus one.
4675fffe5102Smrg    # However, it has the same basename, so the bogon will be chosen
4676fffe5102Smrg    # first if we set CC to just the basename; use the full file name.
4677fffe5102Smrg    shift
4678fffe5102Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4679fffe5102Smrg  fi
4680fffe5102Smrgfi
4681fffe5102Smrgfi
4682fffe5102Smrgfi
4683fffe5102SmrgCC=$ac_cv_prog_CC
4684fffe5102Smrgif test -n "$CC"; then
4685fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4686fffe5102Smrg$as_echo "$CC" >&6; }
4687fffe5102Smrgelse
4688fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689fffe5102Smrg$as_echo "no" >&6; }
4690fffe5102Smrgfi
4691fffe5102Smrg
4692fffe5102Smrg
4693fffe5102Smrgfi
4694fffe5102Smrgif test -z "$CC"; then
4695fffe5102Smrg  if test -n "$ac_tool_prefix"; then
4696fffe5102Smrg  for ac_prog in cl.exe
4697fffe5102Smrg  do
4698fffe5102Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4699fffe5102Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
4700fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4701fffe5102Smrg$as_echo_n "checking for $ac_word... " >&6; }
4702fffe5102Smrgif test "${ac_cv_prog_CC+set}" = set; then :
4703fffe5102Smrg  $as_echo_n "(cached) " >&6
4704fffe5102Smrgelse
4705fffe5102Smrg  if test -n "$CC"; then
4706fffe5102Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
4707fffe5102Smrgelse
4708fffe5102Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709fffe5102Smrgfor as_dir in $PATH
4710fffe5102Smrgdo
4711fffe5102Smrg  IFS=$as_save_IFS
4712fffe5102Smrg  test -z "$as_dir" && as_dir=.
4713fffe5102Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4714fffe5102Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4715fffe5102Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4716fffe5102Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4717fffe5102Smrg    break 2
4718fffe5102Smrg  fi
4719fffe5102Smrgdone
4720fffe5102Smrg  done
4721fffe5102SmrgIFS=$as_save_IFS
4722fffe5102Smrg
4723fffe5102Smrgfi
4724fffe5102Smrgfi
4725fffe5102SmrgCC=$ac_cv_prog_CC
4726fffe5102Smrgif test -n "$CC"; then
4727fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4728fffe5102Smrg$as_echo "$CC" >&6; }
4729fffe5102Smrgelse
4730fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4731fffe5102Smrg$as_echo "no" >&6; }
4732fffe5102Smrgfi
4733fffe5102Smrg
4734fffe5102Smrg
4735fffe5102Smrg    test -n "$CC" && break
4736fffe5102Smrg  done
4737fffe5102Smrgfi
4738fffe5102Smrgif test -z "$CC"; then
4739fffe5102Smrg  ac_ct_CC=$CC
4740fffe5102Smrg  for ac_prog in cl.exe
4741fffe5102Smrgdo
4742fffe5102Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
4743fffe5102Smrgset dummy $ac_prog; ac_word=$2
4744fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4745fffe5102Smrg$as_echo_n "checking for $ac_word... " >&6; }
4746fffe5102Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4747fffe5102Smrg  $as_echo_n "(cached) " >&6
4748fffe5102Smrgelse
4749fffe5102Smrg  if test -n "$ac_ct_CC"; then
4750fffe5102Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4751fffe5102Smrgelse
4752fffe5102Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753fffe5102Smrgfor as_dir in $PATH
4754fffe5102Smrgdo
4755fffe5102Smrg  IFS=$as_save_IFS
4756fffe5102Smrg  test -z "$as_dir" && as_dir=.
4757fffe5102Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4758fffe5102Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4759fffe5102Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
4760fffe5102Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4761fffe5102Smrg    break 2
4762fffe5102Smrg  fi
4763fffe5102Smrgdone
4764fffe5102Smrg  done
4765fffe5102SmrgIFS=$as_save_IFS
4766fffe5102Smrg
4767fffe5102Smrgfi
4768fffe5102Smrgfi
4769fffe5102Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
4770fffe5102Smrgif test -n "$ac_ct_CC"; then
4771fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4772fffe5102Smrg$as_echo "$ac_ct_CC" >&6; }
4773fffe5102Smrgelse
4774fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775fffe5102Smrg$as_echo "no" >&6; }
4776fffe5102Smrgfi
4777fffe5102Smrg
4778fffe5102Smrg
4779fffe5102Smrg  test -n "$ac_ct_CC" && break
4780fffe5102Smrgdone
4781fffe5102Smrg
4782fffe5102Smrg  if test "x$ac_ct_CC" = x; then
4783fffe5102Smrg    CC=""
4784fffe5102Smrg  else
4785fffe5102Smrg    case $cross_compiling:$ac_tool_warned in
4786fffe5102Smrgyes:)
4787fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4788fffe5102Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4789fffe5102Smrgac_tool_warned=yes ;;
4790fffe5102Smrgesac
4791fffe5102Smrg    CC=$ac_ct_CC
4792fffe5102Smrg  fi
4793fffe5102Smrgfi
4794fffe5102Smrg
4795fffe5102Smrgfi
4796fffe5102Smrg
4797fffe5102Smrg
4798fffe5102Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4799fffe5102Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4800fffe5102Smrgas_fn_error "no acceptable C compiler found in \$PATH
4801fffe5102SmrgSee \`config.log' for more details." "$LINENO" 5; }
4802fffe5102Smrg
4803fffe5102Smrg# Provide some information about the compiler.
4804fffe5102Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4805fffe5102Smrgset X $ac_compile
4806fffe5102Smrgac_compiler=$2
4807fffe5102Smrgfor ac_option in --version -v -V -qversion; do
4808fffe5102Smrg  { { ac_try="$ac_compiler $ac_option >&5"
4809fffe5102Smrgcase "(($ac_try" in
4810fffe5102Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4811fffe5102Smrg  *) ac_try_echo=$ac_try;;
4812fffe5102Smrgesac
4813fffe5102Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4814fffe5102Smrg$as_echo "$ac_try_echo"; } >&5
4815fffe5102Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4816fffe5102Smrg  ac_status=$?
4817fffe5102Smrg  if test -s conftest.err; then
4818fffe5102Smrg    sed '10a\
4819fffe5102Smrg... rest of stderr output deleted ...
4820fffe5102Smrg         10q' conftest.err >conftest.er1
4821fffe5102Smrg    cat conftest.er1 >&5
4822fffe5102Smrg  fi
4823fffe5102Smrg  rm -f conftest.er1 conftest.err
4824fffe5102Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4825fffe5102Smrg  test $ac_status = 0; }
4826fffe5102Smrgdone
4827fffe5102Smrg
4828fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4829fffe5102Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4830fffe5102Smrgif test "${ac_cv_c_compiler_gnu+set}" = set; then :
4831fffe5102Smrg  $as_echo_n "(cached) " >&6
4832fffe5102Smrgelse
4833fffe5102Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834fffe5102Smrg/* end confdefs.h.  */
4835fffe5102Smrg
4836fffe5102Smrgint
4837fffe5102Smrgmain ()
4838fffe5102Smrg{
4839fffe5102Smrg#ifndef __GNUC__
4840fffe5102Smrg       choke me
4841fffe5102Smrg#endif
4842fffe5102Smrg
4843fffe5102Smrg  ;
4844fffe5102Smrg  return 0;
4845fffe5102Smrg}
4846fffe5102Smrg_ACEOF
4847fffe5102Smrgif ac_fn_c_try_compile "$LINENO"; then :
4848fffe5102Smrg  ac_compiler_gnu=yes
484967f05d30Smrgelse
4850fffe5102Smrg  ac_compiler_gnu=no
485167f05d30Smrgfi
4852fffe5102Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4853fffe5102Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
485467f05d30Smrg
485567f05d30Smrgfi
4856fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4857fffe5102Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4858fffe5102Smrgif test $ac_compiler_gnu = yes; then
4859fffe5102Smrg  GCC=yes
4860fffe5102Smrgelse
4861fffe5102Smrg  GCC=
486267f05d30Smrgfi
4863fffe5102Smrgac_test_CFLAGS=${CFLAGS+set}
4864fffe5102Smrgac_save_CFLAGS=$CFLAGS
4865fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4866fffe5102Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
4867fffe5102Smrgif test "${ac_cv_prog_cc_g+set}" = set; then :
4868fffe5102Smrg  $as_echo_n "(cached) " >&6
4869fffe5102Smrgelse
4870fffe5102Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
4871fffe5102Smrg   ac_c_werror_flag=yes
4872fffe5102Smrg   ac_cv_prog_cc_g=no
4873fffe5102Smrg   CFLAGS="-g"
4874fffe5102Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875fffe5102Smrg/* end confdefs.h.  */
487667f05d30Smrg
4877fffe5102Smrgint
4878fffe5102Smrgmain ()
4879fffe5102Smrg{
488067f05d30Smrg
4881fffe5102Smrg  ;
4882fffe5102Smrg  return 0;
4883fffe5102Smrg}
4884fffe5102Smrg_ACEOF
4885fffe5102Smrgif ac_fn_c_try_compile "$LINENO"; then :
4886fffe5102Smrg  ac_cv_prog_cc_g=yes
488767f05d30Smrgelse
4888fffe5102Smrg  CFLAGS=""
4889fffe5102Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4890fffe5102Smrg/* end confdefs.h.  */
489167f05d30Smrg
4892fffe5102Smrgint
4893fffe5102Smrgmain ()
4894fffe5102Smrg{
489567f05d30Smrg
4896fffe5102Smrg  ;
4897fffe5102Smrg  return 0;
4898fffe5102Smrg}
4899fffe5102Smrg_ACEOF
4900fffe5102Smrgif ac_fn_c_try_compile "$LINENO"; then :
490167f05d30Smrg
490267f05d30Smrgelse
4903fffe5102Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
4904fffe5102Smrg	 CFLAGS="-g"
4905fffe5102Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906fffe5102Smrg/* end confdefs.h.  */
4907fffe5102Smrg
4908fffe5102Smrgint
4909fffe5102Smrgmain ()
4910fffe5102Smrg{
4911fffe5102Smrg
4912fffe5102Smrg  ;
4913fffe5102Smrg  return 0;
4914fffe5102Smrg}
4915fffe5102Smrg_ACEOF
4916fffe5102Smrgif ac_fn_c_try_compile "$LINENO"; then :
4917fffe5102Smrg  ac_cv_prog_cc_g=yes
491867f05d30Smrgfi
4919fffe5102Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
492067f05d30Smrgfi
4921fffe5102Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4922fffe5102Smrgfi
4923fffe5102Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4924fffe5102Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
4925fffe5102Smrgfi
4926fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4927fffe5102Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
4928fffe5102Smrgif test "$ac_test_CFLAGS" = set; then
4929fffe5102Smrg  CFLAGS=$ac_save_CFLAGS
4930fffe5102Smrgelif test $ac_cv_prog_cc_g = yes; then
4931fffe5102Smrg  if test "$GCC" = yes; then
4932fffe5102Smrg    CFLAGS="-g -O2"
4933fffe5102Smrg  else
4934fffe5102Smrg    CFLAGS="-g"
4935fffe5102Smrg  fi
493667f05d30Smrgelse
4937fffe5102Smrg  if test "$GCC" = yes; then
4938fffe5102Smrg    CFLAGS="-O2"
4939fffe5102Smrg  else
4940fffe5102Smrg    CFLAGS=
4941fffe5102Smrg  fi
494267f05d30Smrgfi
4943fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4944fffe5102Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4945fffe5102Smrgif test "${ac_cv_prog_cc_c89+set}" = set; then :
4946fffe5102Smrg  $as_echo_n "(cached) " >&6
494767f05d30Smrgelse
4948fffe5102Smrg  ac_cv_prog_cc_c89=no
4949fffe5102Smrgac_save_CC=$CC
4950fffe5102Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951fffe5102Smrg/* end confdefs.h.  */
4952fffe5102Smrg#include <stdarg.h>
4953fffe5102Smrg#include <stdio.h>
4954fffe5102Smrg#include <sys/types.h>
4955fffe5102Smrg#include <sys/stat.h>
4956fffe5102Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4957fffe5102Smrgstruct buf { int x; };
4958fffe5102SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
4959fffe5102Smrgstatic char *e (p, i)
4960fffe5102Smrg     char **p;
4961fffe5102Smrg     int i;
4962fffe5102Smrg{
4963fffe5102Smrg  return p[i];
4964fffe5102Smrg}
4965fffe5102Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
4966fffe5102Smrg{
4967fffe5102Smrg  char *s;
4968fffe5102Smrg  va_list v;
4969fffe5102Smrg  va_start (v,p);
4970fffe5102Smrg  s = g (p, va_arg (v,int));
4971fffe5102Smrg  va_end (v);
4972fffe5102Smrg  return s;
4973fffe5102Smrg}
4974fffe5102Smrg
4975fffe5102Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4976fffe5102Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
4977fffe5102Smrg   These don't provoke an error unfortunately, instead are silently treated
4978fffe5102Smrg   as 'x'.  The following induces an error, until -std is added to get
4979fffe5102Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4980fffe5102Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
4981fffe5102Smrg   that's true only with -std.  */
4982fffe5102Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
4983fffe5102Smrg
4984fffe5102Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4985fffe5102Smrg   inside strings and character constants.  */
4986fffe5102Smrg#define FOO(x) 'x'
4987fffe5102Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4988fffe5102Smrg
4989fffe5102Smrgint test (int i, double x);
4990fffe5102Smrgstruct s1 {int (*f) (int a);};
4991fffe5102Smrgstruct s2 {int (*f) (double a);};
4992fffe5102Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4993fffe5102Smrgint argc;
4994fffe5102Smrgchar **argv;
4995fffe5102Smrgint
4996fffe5102Smrgmain ()
4997fffe5102Smrg{
4998fffe5102Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4999fffe5102Smrg  ;
5000fffe5102Smrg  return 0;
5001fffe5102Smrg}
5002fffe5102Smrg_ACEOF
5003fffe5102Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5004fffe5102Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5005fffe5102Smrgdo
5006fffe5102Smrg  CC="$ac_save_CC $ac_arg"
5007fffe5102Smrg  if ac_fn_c_try_compile "$LINENO"; then :
5008fffe5102Smrg  ac_cv_prog_cc_c89=$ac_arg
5009fffe5102Smrgfi
5010fffe5102Smrgrm -f core conftest.err conftest.$ac_objext
5011fffe5102Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
5012fffe5102Smrgdone
5013fffe5102Smrgrm -f conftest.$ac_ext
5014fffe5102SmrgCC=$ac_save_CC
5015fffe5102Smrg
5016fffe5102Smrgfi
5017fffe5102Smrg# AC_CACHE_VAL
5018fffe5102Smrgcase "x$ac_cv_prog_cc_c89" in
5019fffe5102Smrg  x)
5020fffe5102Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5021fffe5102Smrg$as_echo "none needed" >&6; } ;;
5022fffe5102Smrg  xno)
5023fffe5102Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5024fffe5102Smrg$as_echo "unsupported" >&6; } ;;
5025fffe5102Smrg  *)
5026fffe5102Smrg    CC="$CC $ac_cv_prog_cc_c89"
5027fffe5102Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5028fffe5102Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5029fffe5102Smrgesac
5030fffe5102Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
5031fffe5102Smrg
503267f05d30Smrgfi
503367f05d30Smrg
5034fffe5102Smrgac_ext=c
5035fffe5102Smrgac_cpp='$CPP $CPPFLAGS'
5036fffe5102Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5037fffe5102Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5038fffe5102Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
503967f05d30Smrg
5040fffe5102Smrgdepcc="$CC"   am_compiler_list=
504167f05d30Smrg
5042fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5043fffe5102Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
5044fffe5102Smrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5045fffe5102Smrg  $as_echo_n "(cached) " >&6
5046fffe5102Smrgelse
5047fffe5102Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5048fffe5102Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
5049fffe5102Smrg  # making bogus files that we don't know about and never remove.  For
5050fffe5102Smrg  # instance it was reported that on HP-UX the gcc test will end up
5051fffe5102Smrg  # making a dummy file named `D' -- because `-MD' means `put the output
5052fffe5102Smrg  # in D'.
5053fffe5102Smrg  mkdir conftest.dir
5054fffe5102Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
5055fffe5102Smrg  # using a relative directory.
5056fffe5102Smrg  cp "$am_depcomp" conftest.dir
5057fffe5102Smrg  cd conftest.dir
5058fffe5102Smrg  # We will build objects and dependencies in a subdirectory because
5059fffe5102Smrg  # it helps to detect inapplicable dependency modes.  For instance
5060fffe5102Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
5061fffe5102Smrg  # side effect of compilation, but ICC will put the dependencies in
5062fffe5102Smrg  # the current directory while Tru64 will put them in the object
5063fffe5102Smrg  # directory.
5064fffe5102Smrg  mkdir sub
506567f05d30Smrg
5066fffe5102Smrg  am_cv_CC_dependencies_compiler_type=none
5067fffe5102Smrg  if test "$am_compiler_list" = ""; then
5068fffe5102Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5069fffe5102Smrg  fi
5070fffe5102Smrg  am__universal=false
5071fffe5102Smrg  case " $depcc " in #(
5072fffe5102Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5073fffe5102Smrg     esac
5074fffe5102Smrg
5075fffe5102Smrg  for depmode in $am_compiler_list; do
5076fffe5102Smrg    # Setup a source with many dependencies, because some compilers
5077fffe5102Smrg    # like to wrap large dependency lists on column 80 (with \), and
5078fffe5102Smrg    # we should not choose a depcomp mode which is confused by this.
5079fffe5102Smrg    #
5080fffe5102Smrg    # We need to recreate these files for each test, as the compiler may
5081fffe5102Smrg    # overwrite some of them when testing with obscure command lines.
5082fffe5102Smrg    # This happens at least with the AIX C compiler.
5083fffe5102Smrg    : > sub/conftest.c
5084fffe5102Smrg    for i in 1 2 3 4 5 6; do
5085fffe5102Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5086fffe5102Smrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5087fffe5102Smrg      # Solaris 8's {/usr,}/bin/sh.
5088fffe5102Smrg      touch sub/conftst$i.h
5089fffe5102Smrg    done
5090fffe5102Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5091fffe5102Smrg
5092fffe5102Smrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5093fffe5102Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
5094fffe5102Smrg    # handle `-M -o', and we need to detect this.  Also, some Intel
5095fffe5102Smrg    # versions had trouble with output in subdirs
5096fffe5102Smrg    am__obj=sub/conftest.${OBJEXT-o}
5097fffe5102Smrg    am__minus_obj="-o $am__obj"
5098fffe5102Smrg    case $depmode in
5099fffe5102Smrg    gcc)
5100fffe5102Smrg      # This depmode causes a compiler race in universal mode.
5101fffe5102Smrg      test "$am__universal" = false || continue
5102fffe5102Smrg      ;;
5103fffe5102Smrg    nosideeffect)
5104fffe5102Smrg      # after this tag, mechanisms are not by side-effect, so they'll
5105fffe5102Smrg      # only be used when explicitly requested
5106fffe5102Smrg      if test "x$enable_dependency_tracking" = xyes; then
5107fffe5102Smrg	continue
5108fffe5102Smrg      else
5109fffe5102Smrg	break
5110fffe5102Smrg      fi
5111fffe5102Smrg      ;;
5112fffe5102Smrg    msvisualcpp | msvcmsys)
5113fffe5102Smrg      # This compiler won't grok `-c -o', but also, the minuso test has
5114fffe5102Smrg      # not run yet.  These depmodes are late enough in the game, and
5115fffe5102Smrg      # so weak that their functioning should not be impacted.
5116fffe5102Smrg      am__obj=conftest.${OBJEXT-o}
5117fffe5102Smrg      am__minus_obj=
5118fffe5102Smrg      ;;
5119fffe5102Smrg    none) break ;;
5120fffe5102Smrg    esac
5121fffe5102Smrg    if depmode=$depmode \
5122fffe5102Smrg       source=sub/conftest.c object=$am__obj \
5123fffe5102Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5124fffe5102Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5125fffe5102Smrg         >/dev/null 2>conftest.err &&
5126fffe5102Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5127fffe5102Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5128fffe5102Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5129fffe5102Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5130fffe5102Smrg      # icc doesn't choke on unknown options, it will just issue warnings
5131fffe5102Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
5132fffe5102Smrg      # that says an option was ignored or not supported.
5133fffe5102Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
5134fffe5102Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
5135fffe5102Smrg      # The diagnosis changed in icc 8.0:
5136fffe5102Smrg      #   icc: Command line remark: option '-MP' not supported
5137fffe5102Smrg      if (grep 'ignoring option' conftest.err ||
5138fffe5102Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5139fffe5102Smrg        am_cv_CC_dependencies_compiler_type=$depmode
5140fffe5102Smrg        break
5141fffe5102Smrg      fi
5142fffe5102Smrg    fi
5143fffe5102Smrg  done
5144fffe5102Smrg
5145fffe5102Smrg  cd ..
5146fffe5102Smrg  rm -rf conftest.dir
514767f05d30Smrgelse
5148fffe5102Smrg  am_cv_CC_dependencies_compiler_type=none
514967f05d30Smrgfi
515067f05d30Smrg
5151fffe5102Smrgfi
5152fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5153fffe5102Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5154fffe5102SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5155fffe5102Smrg
5156fffe5102Smrg if
5157fffe5102Smrg  test "x$enable_dependency_tracking" != xno \
5158fffe5102Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5159fffe5102Smrg  am__fastdepCC_TRUE=
5160fffe5102Smrg  am__fastdepCC_FALSE='#'
516167f05d30Smrgelse
5162fffe5102Smrg  am__fastdepCC_TRUE='#'
5163fffe5102Smrg  am__fastdepCC_FALSE=
516467f05d30Smrgfi
516567f05d30Smrg
516667f05d30Smrg
5167fffe5102Smrg
5168fffe5102Smrg
5169fffe5102Smrg
5170fffe5102Smrg
5171fffe5102Smrgpkg_failed=no
5172fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VIEWRES" >&5
5173fffe5102Smrg$as_echo_n "checking for VIEWRES... " >&6; }
5174fffe5102Smrg
5175fffe5102Smrgif test -n "$VIEWRES_CFLAGS"; then
5176fffe5102Smrg    pkg_cv_VIEWRES_CFLAGS="$VIEWRES_CFLAGS"
5177fffe5102Smrg elif test -n "$PKG_CONFIG"; then
5178fffe5102Smrg    if test -n "$PKG_CONFIG" && \
5179fffe5102Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7\""; } >&5
5180fffe5102Smrg  ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5
518167f05d30Smrg  ac_status=$?
5182fffe5102Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5183fffe5102Smrg  test $ac_status = 0; }; then
5184fffe5102Smrg  pkg_cv_VIEWRES_CFLAGS=`$PKG_CONFIG --cflags "xaw7" 2>/dev/null`
518567f05d30Smrgelse
518667f05d30Smrg  pkg_failed=yes
518767f05d30Smrgfi
5188fffe5102Smrg else
5189fffe5102Smrg    pkg_failed=untried
519067f05d30Smrgfi
5191fffe5102Smrgif test -n "$VIEWRES_LIBS"; then
5192fffe5102Smrg    pkg_cv_VIEWRES_LIBS="$VIEWRES_LIBS"
5193fffe5102Smrg elif test -n "$PKG_CONFIG"; then
5194fffe5102Smrg    if test -n "$PKG_CONFIG" && \
5195fffe5102Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7\""; } >&5
5196fffe5102Smrg  ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5
519767f05d30Smrg  ac_status=$?
5198fffe5102Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5199fffe5102Smrg  test $ac_status = 0; }; then
5200fffe5102Smrg  pkg_cv_VIEWRES_LIBS=`$PKG_CONFIG --libs "xaw7" 2>/dev/null`
520167f05d30Smrgelse
520267f05d30Smrg  pkg_failed=yes
520367f05d30Smrgfi
5204fffe5102Smrg else
5205fffe5102Smrg    pkg_failed=untried
520667f05d30Smrgfi
520767f05d30Smrg
520867f05d30Smrg
520967f05d30Smrg
521067f05d30Smrgif test $pkg_failed = yes; then
521167f05d30Smrg
521267f05d30Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
521367f05d30Smrg        _pkg_short_errors_supported=yes
521467f05d30Smrgelse
521567f05d30Smrg        _pkg_short_errors_supported=no
521667f05d30Smrgfi
521767f05d30Smrg        if test $_pkg_short_errors_supported = yes; then
5218fffe5102Smrg	        VIEWRES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7" 2>&1`
521967f05d30Smrg        else
5220fffe5102Smrg	        VIEWRES_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7" 2>&1`
522167f05d30Smrg        fi
522267f05d30Smrg	# Put the nasty error message in config.log where it belongs
5223fffe5102Smrg	echo "$VIEWRES_PKG_ERRORS" >&5
522467f05d30Smrg
5225fffe5102Smrg	as_fn_error "Package requirements (xaw7) were not met:
522667f05d30Smrg
5227fffe5102Smrg$VIEWRES_PKG_ERRORS
522867f05d30Smrg
5229fffe5102SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
5230fffe5102Smrginstalled software in a non-standard prefix.
523167f05d30Smrg
5232fffe5102SmrgAlternatively, you may set the environment variables VIEWRES_CFLAGS
5233fffe5102Smrgand VIEWRES_LIBS to avoid the need to call pkg-config.
5234fffe5102SmrgSee the pkg-config man page for more details.
5235fffe5102Smrg" "$LINENO" 5
5236fffe5102Smrgelif test $pkg_failed = untried; then
5237fffe5102Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5238fffe5102Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5239fffe5102Smrgas_fn_error "The pkg-config script could not be found or is too old.  Make sure it
5240fffe5102Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
5241fffe5102Smrgpath to pkg-config.
524267f05d30Smrg
5243fffe5102SmrgAlternatively, you may set the environment variables VIEWRES_CFLAGS
5244fffe5102Smrgand VIEWRES_LIBS to avoid the need to call pkg-config.
5245fffe5102SmrgSee the pkg-config man page for more details.
524667f05d30Smrg
5247fffe5102SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
5248fffe5102SmrgSee \`config.log' for more details." "$LINENO" 5; }
5249fffe5102Smrgelse
5250fffe5102Smrg	VIEWRES_CFLAGS=$pkg_cv_VIEWRES_CFLAGS
5251fffe5102Smrg	VIEWRES_LIBS=$pkg_cv_VIEWRES_LIBS
5252fffe5102Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5253fffe5102Smrg$as_echo "yes" >&6; }
5254fffe5102Smrg	:
5255fffe5102Smrgfi
5256fffe5102SmrgVIEWRES_CFLAGS="$CWARNFLAGS $VIEWRES_CFLAGS"
525767f05d30Smrg
525867f05d30Smrg
525967f05d30Smrg
526067f05d30Smrg
526167f05d30Smrgpkg_failed=no
5262fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
5263fffe5102Smrg$as_echo_n "checking for APPDEFS... " >&6; }
5264fffe5102Smrg
5265fffe5102Smrgif test -n "$APPDEFS_CFLAGS"; then
5266fffe5102Smrg    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
5267fffe5102Smrg elif test -n "$PKG_CONFIG"; then
5268fffe5102Smrg    if test -n "$PKG_CONFIG" && \
5269fffe5102Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
527067f05d30Smrg  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
527167f05d30Smrg  ac_status=$?
5272fffe5102Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5273fffe5102Smrg  test $ac_status = 0; }; then
527467f05d30Smrg  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
527567f05d30Smrgelse
527667f05d30Smrg  pkg_failed=yes
527767f05d30Smrgfi
5278fffe5102Smrg else
5279fffe5102Smrg    pkg_failed=untried
528067f05d30Smrgfi
5281fffe5102Smrgif test -n "$APPDEFS_LIBS"; then
5282fffe5102Smrg    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
5283fffe5102Smrg elif test -n "$PKG_CONFIG"; then
5284fffe5102Smrg    if test -n "$PKG_CONFIG" && \
5285fffe5102Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
528667f05d30Smrg  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
528767f05d30Smrg  ac_status=$?
5288fffe5102Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5289fffe5102Smrg  test $ac_status = 0; }; then
529067f05d30Smrg  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
529167f05d30Smrgelse
529267f05d30Smrg  pkg_failed=yes
529367f05d30Smrgfi
5294fffe5102Smrg else
5295fffe5102Smrg    pkg_failed=untried
529667f05d30Smrgfi
529767f05d30Smrg
529867f05d30Smrg
529967f05d30Smrg
530067f05d30Smrgif test $pkg_failed = yes; then
530167f05d30Smrg
530267f05d30Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
530367f05d30Smrg        _pkg_short_errors_supported=yes
530467f05d30Smrgelse
530567f05d30Smrg        _pkg_short_errors_supported=no
530667f05d30Smrgfi
530767f05d30Smrg        if test $_pkg_short_errors_supported = yes; then
5308fffe5102Smrg	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1`
530967f05d30Smrg        else
5310fffe5102Smrg	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1`
531167f05d30Smrg        fi
531267f05d30Smrg	# Put the nasty error message in config.log where it belongs
531367f05d30Smrg	echo "$APPDEFS_PKG_ERRORS" >&5
531467f05d30Smrg
5315fffe5102Smrg	as_fn_error "Package requirements (xt) were not met:
531667f05d30Smrg
531767f05d30Smrg$APPDEFS_PKG_ERRORS
531867f05d30Smrg
531967f05d30SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
532067f05d30Smrginstalled software in a non-standard prefix.
532167f05d30Smrg
532267f05d30SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS
532367f05d30Smrgand APPDEFS_LIBS to avoid the need to call pkg-config.
532467f05d30SmrgSee the pkg-config man page for more details.
5325fffe5102Smrg" "$LINENO" 5
532667f05d30Smrgelif test $pkg_failed = untried; then
5327fffe5102Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5328fffe5102Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5329fffe5102Smrgas_fn_error "The pkg-config script could not be found or is too old.  Make sure it
533067f05d30Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
533167f05d30Smrgpath to pkg-config.
533267f05d30Smrg
533367f05d30SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS
533467f05d30Smrgand APPDEFS_LIBS to avoid the need to call pkg-config.
533567f05d30SmrgSee the pkg-config man page for more details.
533667f05d30Smrg
5337fffe5102SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
5338fffe5102SmrgSee \`config.log' for more details." "$LINENO" 5; }
533967f05d30Smrgelse
534067f05d30Smrg	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
534167f05d30Smrg	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
5342fffe5102Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5343fffe5102Smrg$as_echo "yes" >&6; }
534467f05d30Smrg	:
534567f05d30Smrgfi
5346fffe5102Smrgxt_appdefaultdir=$(pkg-config --variable=appdefaultdir xt)
534767f05d30Smrg
5348fffe5102Smrg# Check whether --with-appdefaultdir was given.
5349fffe5102Smrgif test "${with_appdefaultdir+set}" = set; then :
5350fffe5102Smrg  withval=$with_appdefaultdir; appdefaultdir="$withval"
535167f05d30Smrgelse
5352fffe5102Smrg  appdefaultdir="${xt_appdefaultdir}"
535367f05d30Smrgfi
535467f05d30Smrg
535567f05d30Smrg
535667f05d30Smrg
535767f05d30Smrg
5358fffe5102Smrgac_config_files="$ac_config_files Makefile"
535967f05d30Smrg
536067f05d30Smrgcat >confcache <<\_ACEOF
536167f05d30Smrg# This file is a shell script that caches the results of configure
536267f05d30Smrg# tests run on this system so they can be shared between configure
536367f05d30Smrg# scripts and configure runs, see configure's option --config-cache.
536467f05d30Smrg# It is not useful on other systems.  If it contains results you don't
536567f05d30Smrg# want to keep, you may remove or edit it.
536667f05d30Smrg#
536767f05d30Smrg# config.status only pays attention to the cache file if you give it
536867f05d30Smrg# the --recheck option to rerun configure.
536967f05d30Smrg#
537067f05d30Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
537167f05d30Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
537267f05d30Smrg# following values.
537367f05d30Smrg
537467f05d30Smrg_ACEOF
537567f05d30Smrg
537667f05d30Smrg# The following way of writing the cache mishandles newlines in values,
537767f05d30Smrg# but we know of no workaround that is simple, portable, and efficient.
5378fffe5102Smrg# So, we kill variables containing newlines.
537967f05d30Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
538067f05d30Smrg# and sets the high bit in the cache file unless we assign to the vars.
5381fffe5102Smrg(
5382fffe5102Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5383fffe5102Smrg    eval ac_val=\$$ac_var
5384fffe5102Smrg    case $ac_val in #(
5385fffe5102Smrg    *${as_nl}*)
5386fffe5102Smrg      case $ac_var in #(
5387fffe5102Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5388fffe5102Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5389fffe5102Smrg      esac
5390fffe5102Smrg      case $ac_var in #(
5391fffe5102Smrg      _ | IFS | as_nl) ;; #(
5392fffe5102Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5393fffe5102Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
5394fffe5102Smrg      esac ;;
5395fffe5102Smrg    esac
5396fffe5102Smrg  done
5397fffe5102Smrg
539867f05d30Smrg  (set) 2>&1 |
5399fffe5102Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
5400fffe5102Smrg    *${as_nl}ac_space=\ *)
5401fffe5102Smrg      # `set' does not quote correctly, so add quotes: double-quote
5402fffe5102Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
540367f05d30Smrg      sed -n \
540467f05d30Smrg	"s/'/'\\\\''/g;
540567f05d30Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5406fffe5102Smrg      ;; #(
540767f05d30Smrg    *)
540867f05d30Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
5409fffe5102Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
541067f05d30Smrg      ;;
5411fffe5102Smrg    esac |
5412fffe5102Smrg    sort
5413fffe5102Smrg) |
541467f05d30Smrg  sed '
5415fffe5102Smrg     /^ac_cv_env_/b end
541667f05d30Smrg     t clear
5417fffe5102Smrg     :clear
541867f05d30Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
541967f05d30Smrg     t end
5420fffe5102Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5421fffe5102Smrg     :end' >>confcache
5422fffe5102Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5423fffe5102Smrg  if test -w "$cache_file"; then
5424fffe5102Smrg    test "x$cache_file" != "x/dev/null" &&
5425fffe5102Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5426fffe5102Smrg$as_echo "$as_me: updating cache $cache_file" >&6;}
542767f05d30Smrg    cat confcache >$cache_file
542867f05d30Smrg  else
5429fffe5102Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5430fffe5102Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
543167f05d30Smrg  fi
543267f05d30Smrgfi
543367f05d30Smrgrm -f confcache
543467f05d30Smrg
543567f05d30Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
543667f05d30Smrg# Let make expand exec_prefix.
543767f05d30Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
543867f05d30Smrg
543967f05d30SmrgDEFS=-DHAVE_CONFIG_H
544067f05d30Smrg
544167f05d30Smrgac_libobjs=
544267f05d30Smrgac_ltlibobjs=
544367f05d30Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
544467f05d30Smrg  # 1. Remove the extension, and $U if already installed.
5445fffe5102Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5446fffe5102Smrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5447fffe5102Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5448fffe5102Smrg  #    will be set to the directory where LIBOBJS objects are built.
5449fffe5102Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5450fffe5102Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
545167f05d30Smrgdone
545267f05d30SmrgLIBOBJS=$ac_libobjs
545367f05d30Smrg
545467f05d30SmrgLTLIBOBJS=$ac_ltlibobjs
545567f05d30Smrg
545667f05d30Smrg
5457fffe5102Smrg if test -n "$EXEEXT"; then
5458fffe5102Smrg  am__EXEEXT_TRUE=
5459fffe5102Smrg  am__EXEEXT_FALSE='#'
5460fffe5102Smrgelse
5461fffe5102Smrg  am__EXEEXT_TRUE='#'
5462fffe5102Smrg  am__EXEEXT_FALSE=
5463fffe5102Smrgfi
5464fffe5102Smrg
546567f05d30Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5466fffe5102Smrg  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
5467fffe5102SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
546867f05d30Smrgfi
546967f05d30Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5470fffe5102Smrg  as_fn_error "conditional \"AMDEP\" was never defined.
5471fffe5102SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
547267f05d30Smrgfi
547367f05d30Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5474fffe5102Smrg  as_fn_error "conditional \"am__fastdepCC\" was never defined.
5475fffe5102SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
547667f05d30Smrgfi
5477fffe5102Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5478fffe5102Smrg  as_fn_error "conditional \"am__fastdepCC\" was never defined.
5479fffe5102SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
548067f05d30Smrgfi
548167f05d30Smrg
548267f05d30Smrg: ${CONFIG_STATUS=./config.status}
5483fffe5102Smrgac_write_fail=0
548467f05d30Smrgac_clean_files_save=$ac_clean_files
548567f05d30Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
5486fffe5102Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5487fffe5102Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5488fffe5102Smrgas_write_fail=0
5489fffe5102Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
549067f05d30Smrg#! $SHELL
549167f05d30Smrg# Generated by $as_me.
549267f05d30Smrg# Run this file to recreate the current configuration.
549367f05d30Smrg# Compiler output produced by configure, useful for debugging
549467f05d30Smrg# configure, is in config.log if it exists.
549567f05d30Smrg
549667f05d30Smrgdebug=false
549767f05d30Smrgac_cs_recheck=false
549867f05d30Smrgac_cs_silent=false
549967f05d30Smrg
5500fffe5102SmrgSHELL=\${CONFIG_SHELL-$SHELL}
5501fffe5102Smrgexport SHELL
5502fffe5102Smrg_ASEOF
5503fffe5102Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5504fffe5102Smrg## -------------------- ##
5505fffe5102Smrg## M4sh Initialization. ##
5506fffe5102Smrg## -------------------- ##
5507fffe5102Smrg
5508fffe5102Smrg# Be more Bourne compatible
5509fffe5102SmrgDUALCASE=1; export DUALCASE # for MKS sh
5510fffe5102Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
551167f05d30Smrg  emulate sh
551267f05d30Smrg  NULLCMD=:
5513fffe5102Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
551467f05d30Smrg  # is contrary to our usage.  Disable this feature.
551567f05d30Smrg  alias -g '${1+"$@"}'='"$@"'
5516fffe5102Smrg  setopt NO_GLOB_SUBST
5517fffe5102Smrgelse
5518fffe5102Smrg  case `(set -o) 2>/dev/null` in #(
5519fffe5102Smrg  *posix*) :
5520fffe5102Smrg    set -o posix ;; #(
5521fffe5102Smrg  *) :
5522fffe5102Smrg     ;;
5523fffe5102Smrgesac
552467f05d30Smrgfi
552567f05d30Smrg
5526fffe5102Smrg
5527fffe5102Smrgas_nl='
5528fffe5102Smrg'
5529fffe5102Smrgexport as_nl
5530fffe5102Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
5531fffe5102Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5532fffe5102Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5533fffe5102Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5534fffe5102Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
5535fffe5102Smrg# but without wasting forks for bash or zsh.
5536fffe5102Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
5537fffe5102Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5538fffe5102Smrg  as_echo='print -r --'
5539fffe5102Smrg  as_echo_n='print -rn --'
5540fffe5102Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5541fffe5102Smrg  as_echo='printf %s\n'
5542fffe5102Smrg  as_echo_n='printf %s'
554367f05d30Smrgelse
5544fffe5102Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5545fffe5102Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5546fffe5102Smrg    as_echo_n='/usr/ucb/echo -n'
5547fffe5102Smrg  else
5548fffe5102Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5549fffe5102Smrg    as_echo_n_body='eval
5550fffe5102Smrg      arg=$1;
5551fffe5102Smrg      case $arg in #(
5552fffe5102Smrg      *"$as_nl"*)
5553fffe5102Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
5554fffe5102Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5555fffe5102Smrg      esac;
5556fffe5102Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5557fffe5102Smrg    '
5558fffe5102Smrg    export as_echo_n_body
5559fffe5102Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
5560fffe5102Smrg  fi
5561fffe5102Smrg  export as_echo_body
5562fffe5102Smrg  as_echo='sh -c $as_echo_body as_echo'
5563fffe5102Smrgfi
5564fffe5102Smrg
5565fffe5102Smrg# The user is always right.
5566fffe5102Smrgif test "${PATH_SEPARATOR+set}" != set; then
5567fffe5102Smrg  PATH_SEPARATOR=:
5568fffe5102Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5569fffe5102Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5570fffe5102Smrg      PATH_SEPARATOR=';'
5571fffe5102Smrg  }
557267f05d30Smrgfi
557367f05d30Smrg
557467f05d30Smrg
5575fffe5102Smrg# IFS
5576fffe5102Smrg# We need space, tab and new line, in precisely that order.  Quoting is
5577fffe5102Smrg# there to prevent editors from complaining about space-tab.
5578fffe5102Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5579fffe5102Smrg# splitting by setting IFS to empty value.)
5580fffe5102SmrgIFS=" ""	$as_nl"
5581fffe5102Smrg
5582fffe5102Smrg# Find who we are.  Look in the path if we contain no directory separator.
5583fffe5102Smrgcase $0 in #((
5584fffe5102Smrg  *[\\/]* ) as_myself=$0 ;;
5585fffe5102Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586fffe5102Smrgfor as_dir in $PATH
5587fffe5102Smrgdo
5588fffe5102Smrg  IFS=$as_save_IFS
5589fffe5102Smrg  test -z "$as_dir" && as_dir=.
5590fffe5102Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5591fffe5102Smrg  done
5592fffe5102SmrgIFS=$as_save_IFS
5593fffe5102Smrg
5594fffe5102Smrg     ;;
5595fffe5102Smrgesac
5596fffe5102Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
5597fffe5102Smrg# in which case we are not to be found in the path.
5598fffe5102Smrgif test "x$as_myself" = x; then
5599fffe5102Smrg  as_myself=$0
5600fffe5102Smrgfi
5601fffe5102Smrgif test ! -f "$as_myself"; then
5602fffe5102Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5603fffe5102Smrg  exit 1
5604fffe5102Smrgfi
5605fffe5102Smrg
5606fffe5102Smrg# Unset variables that we do not need and which cause bugs (e.g. in
5607fffe5102Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5608fffe5102Smrg# suppresses any "Segmentation fault" message there.  '((' could
5609fffe5102Smrg# trigger a bug in pdksh 5.2.14.
5610fffe5102Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
5611fffe5102Smrgdo eval test x\${$as_var+set} = xset \
5612fffe5102Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5613fffe5102Smrgdone
561467f05d30SmrgPS1='$ '
561567f05d30SmrgPS2='> '
561667f05d30SmrgPS4='+ '
561767f05d30Smrg
561867f05d30Smrg# NLS nuisances.
5619fffe5102SmrgLC_ALL=C
5620fffe5102Smrgexport LC_ALL
5621fffe5102SmrgLANGUAGE=C
5622fffe5102Smrgexport LANGUAGE
5623fffe5102Smrg
5624fffe5102Smrg# CDPATH.
5625fffe5102Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5626fffe5102Smrg
5627fffe5102Smrg
5628fffe5102Smrg# as_fn_error ERROR [LINENO LOG_FD]
5629fffe5102Smrg# ---------------------------------
5630fffe5102Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5631fffe5102Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5632fffe5102Smrg# script with status $?, using 1 if that was 0.
5633fffe5102Smrgas_fn_error ()
5634fffe5102Smrg{
5635fffe5102Smrg  as_status=$?; test $as_status -eq 0 && as_status=1
5636fffe5102Smrg  if test "$3"; then
5637fffe5102Smrg    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5638fffe5102Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
563967f05d30Smrg  fi
5640fffe5102Smrg  $as_echo "$as_me: error: $1" >&2
5641fffe5102Smrg  as_fn_exit $as_status
5642fffe5102Smrg} # as_fn_error
5643fffe5102Smrg
564467f05d30Smrg
5645fffe5102Smrg# as_fn_set_status STATUS
5646fffe5102Smrg# -----------------------
5647fffe5102Smrg# Set $? to STATUS, without forking.
5648fffe5102Smrgas_fn_set_status ()
5649fffe5102Smrg{
5650fffe5102Smrg  return $1
5651fffe5102Smrg} # as_fn_set_status
5652fffe5102Smrg
5653fffe5102Smrg# as_fn_exit STATUS
5654fffe5102Smrg# -----------------
5655fffe5102Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5656fffe5102Smrgas_fn_exit ()
5657fffe5102Smrg{
5658fffe5102Smrg  set +e
5659fffe5102Smrg  as_fn_set_status $1
5660fffe5102Smrg  exit $1
5661fffe5102Smrg} # as_fn_exit
5662fffe5102Smrg
5663fffe5102Smrg# as_fn_unset VAR
5664fffe5102Smrg# ---------------
5665fffe5102Smrg# Portably unset VAR.
5666fffe5102Smrgas_fn_unset ()
5667fffe5102Smrg{
5668fffe5102Smrg  { eval $1=; unset $1;}
5669fffe5102Smrg}
5670fffe5102Smrgas_unset=as_fn_unset
5671fffe5102Smrg# as_fn_append VAR VALUE
5672fffe5102Smrg# ----------------------
5673fffe5102Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
5674fffe5102Smrg# advantage of any shell optimizations that allow amortized linear growth over
5675fffe5102Smrg# repeated appends, instead of the typical quadratic growth present in naive
5676fffe5102Smrg# implementations.
5677fffe5102Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5678fffe5102Smrg  eval 'as_fn_append ()
5679fffe5102Smrg  {
5680fffe5102Smrg    eval $1+=\$2
5681fffe5102Smrg  }'
5682fffe5102Smrgelse
5683fffe5102Smrg  as_fn_append ()
5684fffe5102Smrg  {
5685fffe5102Smrg    eval $1=\$$1\$2
5686fffe5102Smrg  }
5687fffe5102Smrgfi # as_fn_append
5688fffe5102Smrg
5689fffe5102Smrg# as_fn_arith ARG...
5690fffe5102Smrg# ------------------
5691fffe5102Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
5692fffe5102Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
5693fffe5102Smrg# must be portable across $(()) and expr.
5694fffe5102Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5695fffe5102Smrg  eval 'as_fn_arith ()
5696fffe5102Smrg  {
5697fffe5102Smrg    as_val=$(( $* ))
5698fffe5102Smrg  }'
5699fffe5102Smrgelse
5700fffe5102Smrg  as_fn_arith ()
5701fffe5102Smrg  {
5702fffe5102Smrg    as_val=`expr "$@" || test $? -eq 1`
5703fffe5102Smrg  }
5704fffe5102Smrgfi # as_fn_arith
5705fffe5102Smrg
5706fffe5102Smrg
5707fffe5102Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
5708fffe5102Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
570967f05d30Smrg  as_expr=expr
571067f05d30Smrgelse
571167f05d30Smrg  as_expr=false
571267f05d30Smrgfi
571367f05d30Smrg
5714fffe5102Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
571567f05d30Smrg  as_basename=basename
571667f05d30Smrgelse
571767f05d30Smrg  as_basename=false
571867f05d30Smrgfi
571967f05d30Smrg
5720fffe5102Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5721fffe5102Smrg  as_dirname=dirname
5722fffe5102Smrgelse
5723fffe5102Smrg  as_dirname=false
5724fffe5102Smrgfi
572567f05d30Smrg
5726fffe5102Smrgas_me=`$as_basename -- "$0" ||
572767f05d30Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
572867f05d30Smrg	 X"$0" : 'X\(//\)$' \| \
5729fffe5102Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5730fffe5102Smrg$as_echo X/"$0" |
5731fffe5102Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
5732fffe5102Smrg	    s//\1/
5733fffe5102Smrg	    q
5734fffe5102Smrg	  }
5735fffe5102Smrg	  /^X\/\(\/\/\)$/{
5736fffe5102Smrg	    s//\1/
5737fffe5102Smrg	    q
5738fffe5102Smrg	  }
5739fffe5102Smrg	  /^X\/\(\/\).*/{
5740fffe5102Smrg	    s//\1/
5741fffe5102Smrg	    q
5742fffe5102Smrg	  }
5743fffe5102Smrg	  s/.*/./; q'`
574467f05d30Smrg
574567f05d30Smrg# Avoid depending upon Character Ranges.
574667f05d30Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
574767f05d30Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
574867f05d30Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
574967f05d30Smrgas_cr_digits='0123456789'
575067f05d30Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
575167f05d30Smrg
5752fffe5102SmrgECHO_C= ECHO_N= ECHO_T=
5753fffe5102Smrgcase `echo -n x` in #(((((
5754fffe5102Smrg-n*)
5755fffe5102Smrg  case `echo 'xy\c'` in
5756fffe5102Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5757fffe5102Smrg  xy)  ECHO_C='\c';;
5758fffe5102Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5759fffe5102Smrg       ECHO_T='	';;
5760fffe5102Smrg  esac;;
5761fffe5102Smrg*)
5762fffe5102Smrg  ECHO_N='-n';;
576367f05d30Smrgesac
576467f05d30Smrg
5765fffe5102Smrgrm -f conf$$ conf$$.exe conf$$.file
5766fffe5102Smrgif test -d conf$$.dir; then
5767fffe5102Smrg  rm -f conf$$.dir/conf$$.file
576867f05d30Smrgelse
5769fffe5102Smrg  rm -f conf$$.dir
5770fffe5102Smrg  mkdir conf$$.dir 2>/dev/null
577167f05d30Smrgfi
5772fffe5102Smrgif (echo >conf$$.file) 2>/dev/null; then
5773fffe5102Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
577467f05d30Smrg    as_ln_s='ln -s'
5775fffe5102Smrg    # ... but there are two gotchas:
5776fffe5102Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5777fffe5102Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5778fffe5102Smrg    # In both cases, we have to default to `cp -p'.
5779fffe5102Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5780fffe5102Smrg      as_ln_s='cp -p'
5781fffe5102Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
5782fffe5102Smrg    as_ln_s=ln
5783fffe5102Smrg  else
5784fffe5102Smrg    as_ln_s='cp -p'
578567f05d30Smrg  fi
578667f05d30Smrgelse
578767f05d30Smrg  as_ln_s='cp -p'
578867f05d30Smrgfi
5789fffe5102Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5790fffe5102Smrgrmdir conf$$.dir 2>/dev/null
5791fffe5102Smrg
5792fffe5102Smrg
5793fffe5102Smrg# as_fn_mkdir_p
5794fffe5102Smrg# -------------
5795fffe5102Smrg# Create "$as_dir" as a directory, including parents if necessary.
5796fffe5102Smrgas_fn_mkdir_p ()
5797fffe5102Smrg{
5798fffe5102Smrg
5799fffe5102Smrg  case $as_dir in #(
5800fffe5102Smrg  -*) as_dir=./$as_dir;;
5801fffe5102Smrg  esac
5802fffe5102Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
5803fffe5102Smrg    as_dirs=
5804fffe5102Smrg    while :; do
5805fffe5102Smrg      case $as_dir in #(
5806fffe5102Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5807fffe5102Smrg      *) as_qdir=$as_dir;;
5808fffe5102Smrg      esac
5809fffe5102Smrg      as_dirs="'$as_qdir' $as_dirs"
5810fffe5102Smrg      as_dir=`$as_dirname -- "$as_dir" ||
5811fffe5102Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5812fffe5102Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
5813fffe5102Smrg	 X"$as_dir" : 'X\(//\)$' \| \
5814fffe5102Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5815fffe5102Smrg$as_echo X"$as_dir" |
5816fffe5102Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5817fffe5102Smrg	    s//\1/
5818fffe5102Smrg	    q
5819fffe5102Smrg	  }
5820fffe5102Smrg	  /^X\(\/\/\)[^/].*/{
5821fffe5102Smrg	    s//\1/
5822fffe5102Smrg	    q
5823fffe5102Smrg	  }
5824fffe5102Smrg	  /^X\(\/\/\)$/{
5825fffe5102Smrg	    s//\1/
5826fffe5102Smrg	    q
5827fffe5102Smrg	  }
5828fffe5102Smrg	  /^X\(\/\).*/{
5829fffe5102Smrg	    s//\1/
5830fffe5102Smrg	    q
5831fffe5102Smrg	  }
5832fffe5102Smrg	  s/.*/./; q'`
5833fffe5102Smrg      test -d "$as_dir" && break
5834fffe5102Smrg    done
5835fffe5102Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
5836fffe5102Smrg  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
583767f05d30Smrg
5838fffe5102Smrg
5839fffe5102Smrg} # as_fn_mkdir_p
584067f05d30Smrgif mkdir -p . 2>/dev/null; then
5841fffe5102Smrg  as_mkdir_p='mkdir -p "$as_dir"'
584267f05d30Smrgelse
584367f05d30Smrg  test -d ./-p && rmdir ./-p
584467f05d30Smrg  as_mkdir_p=false
584567f05d30Smrgfi
5846fffe5102Smrg
5847fffe5102Smrgif test -x / >/dev/null 2>&1; then
5848fffe5102Smrg  as_test_x='test -x'
5849fffe5102Smrgelse
5850fffe5102Smrg  if ls -dL / >/dev/null 2>&1; then
5851fffe5102Smrg    as_ls_L_option=L
5852fffe5102Smrg  else
5853fffe5102Smrg    as_ls_L_option=
5854fffe5102Smrg  fi
5855fffe5102Smrg  as_test_x='
5856fffe5102Smrg    eval sh -c '\''
5857fffe5102Smrg      if test -d "$1"; then
5858fffe5102Smrg	test -d "$1/.";
5859fffe5102Smrg      else
5860fffe5102Smrg	case $1 in #(
5861fffe5102Smrg	-*)set "./$1";;
5862fffe5102Smrg	esac;
5863fffe5102Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5864fffe5102Smrg	???[sx]*):;;*)false;;esac;fi
5865fffe5102Smrg    '\'' sh
5866fffe5102Smrg  '
5867fffe5102Smrgfi
5868fffe5102Smrgas_executable_p=$as_test_x
586967f05d30Smrg
587067f05d30Smrg# Sed expression to map a string onto a valid CPP name.
587167f05d30Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587267f05d30Smrg
587367f05d30Smrg# Sed expression to map a string onto a valid variable name.
587467f05d30Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
587567f05d30Smrg
587667f05d30Smrg
587767f05d30Smrgexec 6>&1
5878fffe5102Smrg## ----------------------------------- ##
5879fffe5102Smrg## Main body of $CONFIG_STATUS script. ##
5880fffe5102Smrg## ----------------------------------- ##
5881fffe5102Smrg_ASEOF
5882fffe5102Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5883fffe5102Smrg
5884fffe5102Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5885fffe5102Smrg# Save the log message, to keep $0 and so on meaningful, and to
588667f05d30Smrg# report actual input values of CONFIG_FILES etc. instead of their
5887fffe5102Smrg# values after options handling.
5888fffe5102Smrgac_log="
5889fffe5102SmrgThis file was extended by viewres $as_me 1.0.2, which was
5890fffe5102Smrggenerated by GNU Autoconf 2.65.  Invocation command line was
589167f05d30Smrg
589267f05d30Smrg  CONFIG_FILES    = $CONFIG_FILES
589367f05d30Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
589467f05d30Smrg  CONFIG_LINKS    = $CONFIG_LINKS
589567f05d30Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
589667f05d30Smrg  $ $0 $@
589767f05d30Smrg
5898fffe5102Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
5899fffe5102Smrg"
5900fffe5102Smrg
590167f05d30Smrg_ACEOF
590267f05d30Smrg
5903fffe5102Smrgcase $ac_config_files in *"
5904fffe5102Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
5905fffe5102Smrgesac
590667f05d30Smrg
5907fffe5102Smrgcase $ac_config_headers in *"
5908fffe5102Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5909fffe5102Smrgesac
591067f05d30Smrg
591167f05d30Smrg
5912fffe5102Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5913fffe5102Smrg# Files that config.status was made for.
5914fffe5102Smrgconfig_files="$ac_config_files"
5915fffe5102Smrgconfig_headers="$ac_config_headers"
5916fffe5102Smrgconfig_commands="$ac_config_commands"
591767f05d30Smrg
5918fffe5102Smrg_ACEOF
591967f05d30Smrg
5920fffe5102Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
592167f05d30Smrgac_cs_usage="\
5922fffe5102Smrg\`$as_me' instantiates files and other configuration actions
5923fffe5102Smrgfrom templates according to the current configuration.  Unless the files
5924fffe5102Smrgand actions are specified as TAGs, all are instantiated by default.
592567f05d30Smrg
5926fffe5102SmrgUsage: $0 [OPTION]... [TAG]...
592767f05d30Smrg
592867f05d30Smrg  -h, --help       print this help, then exit
5929fffe5102Smrg  -V, --version    print version number and configuration settings, then exit
5930fffe5102Smrg      --config     print configuration, then exit
5931fffe5102Smrg  -q, --quiet, --silent
5932fffe5102Smrg                   do not print progress messages
593367f05d30Smrg  -d, --debug      don't remove temporary files
593467f05d30Smrg      --recheck    update $as_me by reconfiguring in the same conditions
5935fffe5102Smrg      --file=FILE[:TEMPLATE]
5936fffe5102Smrg                   instantiate the configuration file FILE
5937fffe5102Smrg      --header=FILE[:TEMPLATE]
5938fffe5102Smrg                   instantiate the configuration header FILE
593967f05d30Smrg
594067f05d30SmrgConfiguration files:
594167f05d30Smrg$config_files
594267f05d30Smrg
594367f05d30SmrgConfiguration headers:
594467f05d30Smrg$config_headers
594567f05d30Smrg
594667f05d30SmrgConfiguration commands:
594767f05d30Smrg$config_commands
594867f05d30Smrg
5949fffe5102SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
595067f05d30Smrg
5951fffe5102Smrg_ACEOF
5952fffe5102Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5953fffe5102Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
595467f05d30Smrgac_cs_version="\\
5955fffe5102Smrgviewres config.status 1.0.2
5956fffe5102Smrgconfigured by $0, generated by GNU Autoconf 2.65,
5957fffe5102Smrg  with options \\"\$ac_cs_config\\"
595867f05d30Smrg
5959fffe5102SmrgCopyright (C) 2009 Free Software Foundation, Inc.
596067f05d30SmrgThis config.status script is free software; the Free Software Foundation
596167f05d30Smrggives unlimited permission to copy, distribute and modify it."
5962fffe5102Smrg
5963fffe5102Smrgac_pwd='$ac_pwd'
5964fffe5102Smrgsrcdir='$srcdir'
5965fffe5102SmrgINSTALL='$INSTALL'
5966fffe5102SmrgMKDIR_P='$MKDIR_P'
5967fffe5102SmrgAWK='$AWK'
5968fffe5102Smrgtest -n "\$AWK" || AWK=awk
596967f05d30Smrg_ACEOF
597067f05d30Smrg
5971fffe5102Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5972fffe5102Smrg# The default lists apply if the user does not specify any file.
597367f05d30Smrgac_need_defaults=:
597467f05d30Smrgwhile test $# != 0
597567f05d30Smrgdo
597667f05d30Smrg  case $1 in
597767f05d30Smrg  --*=*)
5978fffe5102Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5979fffe5102Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
598067f05d30Smrg    ac_shift=:
598167f05d30Smrg    ;;
5982fffe5102Smrg  *)
598367f05d30Smrg    ac_option=$1
598467f05d30Smrg    ac_optarg=$2
598567f05d30Smrg    ac_shift=shift
598667f05d30Smrg    ;;
598767f05d30Smrg  esac
598867f05d30Smrg
598967f05d30Smrg  case $ac_option in
599067f05d30Smrg  # Handling of the options.
599167f05d30Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
599267f05d30Smrg    ac_cs_recheck=: ;;
5993fffe5102Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5994fffe5102Smrg    $as_echo "$ac_cs_version"; exit ;;
5995fffe5102Smrg  --config | --confi | --conf | --con | --co | --c )
5996fffe5102Smrg    $as_echo "$ac_cs_config"; exit ;;
5997fffe5102Smrg  --debug | --debu | --deb | --de | --d | -d )
599867f05d30Smrg    debug=: ;;
599967f05d30Smrg  --file | --fil | --fi | --f )
600067f05d30Smrg    $ac_shift
6001fffe5102Smrg    case $ac_optarg in
6002fffe5102Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6003fffe5102Smrg    esac
6004fffe5102Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
600567f05d30Smrg    ac_need_defaults=false;;
600667f05d30Smrg  --header | --heade | --head | --hea )
600767f05d30Smrg    $ac_shift
6008fffe5102Smrg    case $ac_optarg in
6009fffe5102Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6010fffe5102Smrg    esac
6011fffe5102Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
601267f05d30Smrg    ac_need_defaults=false;;
6013fffe5102Smrg  --he | --h)
6014fffe5102Smrg    # Conflict between --help and --header
6015fffe5102Smrg    as_fn_error "ambiguous option: \`$1'
6016fffe5102SmrgTry \`$0 --help' for more information.";;
6017fffe5102Smrg  --help | --hel | -h )
6018fffe5102Smrg    $as_echo "$ac_cs_usage"; exit ;;
601967f05d30Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
602067f05d30Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
602167f05d30Smrg    ac_cs_silent=: ;;
602267f05d30Smrg
602367f05d30Smrg  # This is an error.
6024fffe5102Smrg  -*) as_fn_error "unrecognized option: \`$1'
6025fffe5102SmrgTry \`$0 --help' for more information." ;;
602667f05d30Smrg
6027fffe5102Smrg  *) as_fn_append ac_config_targets " $1"
6028fffe5102Smrg     ac_need_defaults=false ;;
602967f05d30Smrg
603067f05d30Smrg  esac
603167f05d30Smrg  shift
603267f05d30Smrgdone
603367f05d30Smrg
603467f05d30Smrgac_configure_extra_args=
603567f05d30Smrg
603667f05d30Smrgif $ac_cs_silent; then
603767f05d30Smrg  exec 6>/dev/null
603867f05d30Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
603967f05d30Smrgfi
604067f05d30Smrg
604167f05d30Smrg_ACEOF
6042fffe5102Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
604367f05d30Smrgif \$ac_cs_recheck; then
6044fffe5102Smrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6045fffe5102Smrg  shift
6046fffe5102Smrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6047fffe5102Smrg  CONFIG_SHELL='$SHELL'
6048fffe5102Smrg  export CONFIG_SHELL
6049fffe5102Smrg  exec "\$@"
605067f05d30Smrgfi
605167f05d30Smrg
605267f05d30Smrg_ACEOF
6053fffe5102Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6054fffe5102Smrgexec 5>>config.log
6055fffe5102Smrg{
6056fffe5102Smrg  echo
6057fffe5102Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6058fffe5102Smrg## Running $as_me. ##
6059fffe5102Smrg_ASBOX
6060fffe5102Smrg  $as_echo "$ac_log"
6061fffe5102Smrg} >&5
606267f05d30Smrg
6063fffe5102Smrg_ACEOF
6064fffe5102Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
606567f05d30Smrg#
6066fffe5102Smrg# INIT-COMMANDS
606767f05d30Smrg#
606867f05d30SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
606967f05d30Smrg
607067f05d30Smrg_ACEOF
607167f05d30Smrg
6072fffe5102Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
607367f05d30Smrg
6074fffe5102Smrg# Handling of arguments.
607567f05d30Smrgfor ac_config_target in $ac_config_targets
607667f05d30Smrgdo
6077fffe5102Smrg  case $ac_config_target in
6078fffe5102Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6079fffe5102Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6080fffe5102Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6081fffe5102Smrg
6082fffe5102Smrg  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
608367f05d30Smrg  esac
608467f05d30Smrgdone
608567f05d30Smrg
6086fffe5102Smrg
608767f05d30Smrg# If the user did not use the arguments to specify the items to instantiate,
608867f05d30Smrg# then the envvar interface is used.  Set only those that are not.
608967f05d30Smrg# We use the long form for the default assignment because of an extremely
609067f05d30Smrg# bizarre bug on SunOS 4.1.3.
609167f05d30Smrgif $ac_need_defaults; then
609267f05d30Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
609367f05d30Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
609467f05d30Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
609567f05d30Smrgfi
609667f05d30Smrg
609767f05d30Smrg# Have a temporary directory for convenience.  Make it in the build tree
6098fffe5102Smrg# simply because there is no reason against having it here, and in addition,
609967f05d30Smrg# creating and moving files from /tmp can sometimes cause problems.
6100fffe5102Smrg# Hook for its removal unless debugging.
6101fffe5102Smrg# Note that there is a small window in which the directory will not be cleaned:
6102fffe5102Smrg# after its creation but before its name has been assigned to `$tmp'.
610367f05d30Smrg$debug ||
610467f05d30Smrg{
6105fffe5102Smrg  tmp=
6106fffe5102Smrg  trap 'exit_status=$?
6107fffe5102Smrg  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6108fffe5102Smrg' 0
6109fffe5102Smrg  trap 'as_fn_exit 1' 1 2 13 15
611067f05d30Smrg}
611167f05d30Smrg# Create a (secure) tmp directory for tmp files.
611267f05d30Smrg
611367f05d30Smrg{
6114fffe5102Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
611567f05d30Smrg  test -n "$tmp" && test -d "$tmp"
611667f05d30Smrg}  ||
611767f05d30Smrg{
6118fffe5102Smrg  tmp=./conf$$-$RANDOM
6119fffe5102Smrg  (umask 077 && mkdir "$tmp")
6120fffe5102Smrg} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6121fffe5102Smrg
6122fffe5102Smrg# Set up the scripts for CONFIG_FILES section.
6123fffe5102Smrg# No need to generate them if there are no CONFIG_FILES.
6124fffe5102Smrg# This happens for instance with `./config.status config.h'.
6125fffe5102Smrgif test -n "$CONFIG_FILES"; then
6126fffe5102Smrg
6127fffe5102Smrg
6128fffe5102Smrgac_cr=`echo X | tr X '\015'`
6129fffe5102Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
6130fffe5102Smrg# But we know of no other shell where ac_cr would be empty at this
6131fffe5102Smrg# point, so we can use a bashism as a fallback.
6132fffe5102Smrgif test "x$ac_cr" = x; then
6133fffe5102Smrg  eval ac_cr=\$\'\\r\'
6134fffe5102Smrgfi
6135fffe5102Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6136fffe5102Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6137fffe5102Smrg  ac_cs_awk_cr='\r'
6138fffe5102Smrgelse
6139fffe5102Smrg  ac_cs_awk_cr=$ac_cr
6140fffe5102Smrgfi
6141fffe5102Smrg
6142fffe5102Smrgecho 'BEGIN {' >"$tmp/subs1.awk" &&
6143fffe5102Smrg_ACEOF
6144fffe5102Smrg
6145fffe5102Smrg
614667f05d30Smrg{
6147fffe5102Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
6148fffe5102Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6149fffe5102Smrg  echo "_ACEOF"
6150fffe5102Smrg} >conf$$subs.sh ||
6151fffe5102Smrg  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6152fffe5102Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6153fffe5102Smrgac_delim='%!_!# '
6154fffe5102Smrgfor ac_last_try in false false false false false :; do
6155fffe5102Smrg  . ./conf$$subs.sh ||
6156fffe5102Smrg    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6157fffe5102Smrg
6158fffe5102Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6159fffe5102Smrg  if test $ac_delim_n = $ac_delim_num; then
6160fffe5102Smrg    break
6161fffe5102Smrg  elif $ac_last_try; then
6162fffe5102Smrg    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6163fffe5102Smrg  else
6164fffe5102Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6165fffe5102Smrg  fi
6166fffe5102Smrgdone
6167fffe5102Smrgrm -f conf$$subs.sh
616867f05d30Smrg
6169fffe5102Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6170fffe5102Smrgcat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
617167f05d30Smrg_ACEOF
6172fffe5102Smrgsed -n '
6173fffe5102Smrgh
6174fffe5102Smrgs/^/S["/; s/!.*/"]=/
6175fffe5102Smrgp
6176fffe5102Smrgg
6177fffe5102Smrgs/^[^!]*!//
6178fffe5102Smrg:repl
6179fffe5102Smrgt repl
6180fffe5102Smrgs/'"$ac_delim"'$//
6181fffe5102Smrgt delim
6182fffe5102Smrg:nl
6183fffe5102Smrgh
6184fffe5102Smrgs/\(.\{148\}\)..*/\1/
6185fffe5102Smrgt more1
6186fffe5102Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6187fffe5102Smrgp
6188fffe5102Smrgn
6189fffe5102Smrgb repl
6190fffe5102Smrg:more1
6191fffe5102Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
6192fffe5102Smrgp
6193fffe5102Smrgg
6194fffe5102Smrgs/.\{148\}//
6195fffe5102Smrgt nl
6196fffe5102Smrg:delim
6197fffe5102Smrgh
6198fffe5102Smrgs/\(.\{148\}\)..*/\1/
6199fffe5102Smrgt more2
6200fffe5102Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
6201fffe5102Smrgp
6202fffe5102Smrgb
6203fffe5102Smrg:more2
6204fffe5102Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
6205fffe5102Smrgp
6206fffe5102Smrgg
6207fffe5102Smrgs/.\{148\}//
6208fffe5102Smrgt delim
6209fffe5102Smrg' <conf$$subs.awk | sed '
6210fffe5102Smrg/^[^""]/{
6211fffe5102Smrg  N
6212fffe5102Smrg  s/\n//
6213fffe5102Smrg}
6214fffe5102Smrg' >>$CONFIG_STATUS || ac_write_fail=1
6215fffe5102Smrgrm -f conf$$subs.awk
6216fffe5102Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6217fffe5102Smrg_ACAWK
6218fffe5102Smrgcat >>"\$tmp/subs1.awk" <<_ACAWK &&
6219fffe5102Smrg  for (key in S) S_is_set[key] = 1
6220fffe5102Smrg  FS = ""
622167f05d30Smrg
6222fffe5102Smrg}
6223fffe5102Smrg{
6224fffe5102Smrg  line = $ 0
6225fffe5102Smrg  nfields = split(line, field, "@")
6226fffe5102Smrg  substed = 0
6227fffe5102Smrg  len = length(field[1])
6228fffe5102Smrg  for (i = 2; i < nfields; i++) {
6229fffe5102Smrg    key = field[i]
6230fffe5102Smrg    keylen = length(key)
6231fffe5102Smrg    if (S_is_set[key]) {
6232fffe5102Smrg      value = S[key]
6233fffe5102Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6234fffe5102Smrg      len += length(value) + length(field[++i])
6235fffe5102Smrg      substed = 1
6236fffe5102Smrg    } else
6237fffe5102Smrg      len += 1 + keylen
6238fffe5102Smrg  }
6239fffe5102Smrg
6240fffe5102Smrg  print line
6241fffe5102Smrg}
624267f05d30Smrg
6243fffe5102Smrg_ACAWK
6244fffe5102Smrg_ACEOF
6245fffe5102Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6246fffe5102Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6247fffe5102Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6248fffe5102Smrgelse
6249fffe5102Smrg  cat
6250fffe5102Smrgfi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6251fffe5102Smrg  || as_fn_error "could not setup config files machinery" "$LINENO" 5
6252fffe5102Smrg_ACEOF
6253fffe5102Smrg
6254fffe5102Smrg# VPATH may cause trouble with some makes, so we remove $(srcdir),
6255fffe5102Smrg# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6256fffe5102Smrg# trailing colons and then remove the whole line if VPATH becomes empty
6257fffe5102Smrg# (actually we leave an empty line to preserve line numbers).
6258fffe5102Smrgif test "x$srcdir" = x.; then
6259fffe5102Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
6260fffe5102Smrgs/:*\$(srcdir):*/:/
6261fffe5102Smrgs/:*\${srcdir}:*/:/
6262fffe5102Smrgs/:*@srcdir@:*/:/
6263fffe5102Smrgs/^\([^=]*=[	 ]*\):*/\1/
6264fffe5102Smrgs/:*$//
6265fffe5102Smrgs/^[^=]*=[	 ]*$//
6266fffe5102Smrg}'
6267fffe5102Smrgfi
626867f05d30Smrg
6269fffe5102Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6270fffe5102Smrgfi # test -n "$CONFIG_FILES"
627167f05d30Smrg
6272fffe5102Smrg# Set up the scripts for CONFIG_HEADERS section.
6273fffe5102Smrg# No need to generate them if there are no CONFIG_HEADERS.
6274fffe5102Smrg# This happens for instance with `./config.status Makefile'.
6275fffe5102Smrgif test -n "$CONFIG_HEADERS"; then
6276fffe5102Smrgcat >"$tmp/defines.awk" <<\_ACAWK ||
6277fffe5102SmrgBEGIN {
627867f05d30Smrg_ACEOF
627967f05d30Smrg
6280fffe5102Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
6281fffe5102Smrg# here-document in config.status, that substitutes the proper values into
6282fffe5102Smrg# config.h.in to produce config.h.
6283fffe5102Smrg
6284fffe5102Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
6285fffe5102Smrg# handling of long lines.
6286fffe5102Smrgac_delim='%!_!# '
6287fffe5102Smrgfor ac_last_try in false false :; do
6288fffe5102Smrg  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6289fffe5102Smrg  if test -z "$ac_t"; then
6290fffe5102Smrg    break
6291fffe5102Smrg  elif $ac_last_try; then
6292fffe5102Smrg    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6293fffe5102Smrg  else
6294fffe5102Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
629567f05d30Smrg  fi
6296fffe5102Smrgdone
629767f05d30Smrg
6298fffe5102Smrg# For the awk script, D is an array of macro values keyed by name,
6299fffe5102Smrg# likewise P contains macro parameters if any.  Preserve backslash
6300fffe5102Smrg# newline sequences.
6301fffe5102Smrg
6302fffe5102Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6303fffe5102Smrgsed -n '
6304fffe5102Smrgs/.\{148\}/&'"$ac_delim"'/g
6305fffe5102Smrgt rset
6306fffe5102Smrg:rset
6307fffe5102Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
6308fffe5102Smrgt def
6309fffe5102Smrgd
6310fffe5102Smrg:def
6311fffe5102Smrgs/\\$//
6312fffe5102Smrgt bsnl
6313fffe5102Smrgs/["\\]/\\&/g
6314fffe5102Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6315fffe5102SmrgD["\1"]=" \3"/p
6316fffe5102Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
6317fffe5102Smrgd
6318fffe5102Smrg:bsnl
6319fffe5102Smrgs/["\\]/\\&/g
6320fffe5102Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6321fffe5102SmrgD["\1"]=" \3\\\\\\n"\\/p
6322fffe5102Smrgt cont
6323fffe5102Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6324fffe5102Smrgt cont
6325fffe5102Smrgd
6326fffe5102Smrg:cont
6327fffe5102Smrgn
6328fffe5102Smrgs/.\{148\}/&'"$ac_delim"'/g
6329fffe5102Smrgt clear
6330fffe5102Smrg:clear
6331fffe5102Smrgs/\\$//
6332fffe5102Smrgt bsnlc
6333fffe5102Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
6334fffe5102Smrgd
6335fffe5102Smrg:bsnlc
6336fffe5102Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6337fffe5102Smrgb cont
6338fffe5102Smrg' <confdefs.h | sed '
6339fffe5102Smrgs/'"$ac_delim"'/"\\\
6340fffe5102Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
6341fffe5102Smrg
6342fffe5102Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6343fffe5102Smrg  for (key in D) D_is_set[key] = 1
6344fffe5102Smrg  FS = ""
6345fffe5102Smrg}
6346fffe5102Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6347fffe5102Smrg  line = \$ 0
6348fffe5102Smrg  split(line, arg, " ")
6349fffe5102Smrg  if (arg[1] == "#") {
6350fffe5102Smrg    defundef = arg[2]
6351fffe5102Smrg    mac1 = arg[3]
6352fffe5102Smrg  } else {
6353fffe5102Smrg    defundef = substr(arg[1], 2)
6354fffe5102Smrg    mac1 = arg[2]
6355fffe5102Smrg  }
6356fffe5102Smrg  split(mac1, mac2, "(") #)
6357fffe5102Smrg  macro = mac2[1]
6358fffe5102Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
6359fffe5102Smrg  if (D_is_set[macro]) {
6360fffe5102Smrg    # Preserve the white space surrounding the "#".
6361fffe5102Smrg    print prefix "define", macro P[macro] D[macro]
6362fffe5102Smrg    next
6363fffe5102Smrg  } else {
6364fffe5102Smrg    # Replace #undef with comments.  This is necessary, for example,
6365fffe5102Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
6366fffe5102Smrg    # on some systems where configure will not decide to define it.
6367fffe5102Smrg    if (defundef == "undef") {
6368fffe5102Smrg      print "/*", prefix defundef, macro, "*/"
6369fffe5102Smrg      next
6370fffe5102Smrg    }
6371fffe5102Smrg  }
6372fffe5102Smrg}
6373fffe5102Smrg{ print }
6374fffe5102Smrg_ACAWK
637567f05d30Smrg_ACEOF
6376fffe5102Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6377fffe5102Smrg  as_fn_error "could not setup config headers machinery" "$LINENO" 5
6378fffe5102Smrgfi # test -n "$CONFIG_HEADERS"
6379fffe5102Smrg
6380fffe5102Smrg
6381fffe5102Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
6382fffe5102Smrgshift
6383fffe5102Smrgfor ac_tag
6384fffe5102Smrgdo
6385fffe5102Smrg  case $ac_tag in
6386fffe5102Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
6387fffe5102Smrg  esac
6388fffe5102Smrg  case $ac_mode$ac_tag in
6389fffe5102Smrg  :[FHL]*:*);;
6390fffe5102Smrg  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6391fffe5102Smrg  :[FH]-) ac_tag=-:-;;
6392fffe5102Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6393fffe5102Smrg  esac
6394fffe5102Smrg  ac_save_IFS=$IFS
6395fffe5102Smrg  IFS=:
6396fffe5102Smrg  set x $ac_tag
6397fffe5102Smrg  IFS=$ac_save_IFS
6398fffe5102Smrg  shift
6399fffe5102Smrg  ac_file=$1
6400fffe5102Smrg  shift
6401fffe5102Smrg
6402fffe5102Smrg  case $ac_mode in
6403fffe5102Smrg  :L) ac_source=$1;;
6404fffe5102Smrg  :[FH])
6405fffe5102Smrg    ac_file_inputs=
6406fffe5102Smrg    for ac_f
6407fffe5102Smrg    do
6408fffe5102Smrg      case $ac_f in
6409fffe5102Smrg      -) ac_f="$tmp/stdin";;
6410fffe5102Smrg      *) # Look for the file first in the build tree, then in the source tree
6411fffe5102Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
6412fffe5102Smrg	 # because $ac_f cannot contain `:'.
6413fffe5102Smrg	 test -f "$ac_f" ||
6414fffe5102Smrg	   case $ac_f in
6415fffe5102Smrg	   [\\/$]*) false;;
6416fffe5102Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6417fffe5102Smrg	   esac ||
6418fffe5102Smrg	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6419fffe5102Smrg      esac
6420fffe5102Smrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6421fffe5102Smrg      as_fn_append ac_file_inputs " '$ac_f'"
6422fffe5102Smrg    done
6423fffe5102Smrg
6424fffe5102Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
6425fffe5102Smrg    # use $as_me), people would be surprised to read:
6426fffe5102Smrg    #    /* config.h.  Generated by config.status.  */
6427fffe5102Smrg    configure_input='Generated from '`
6428fffe5102Smrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6429fffe5102Smrg	`' by configure.'
6430fffe5102Smrg    if test x"$ac_file" != x-; then
6431fffe5102Smrg      configure_input="$ac_file.  $configure_input"
6432fffe5102Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6433fffe5102Smrg$as_echo "$as_me: creating $ac_file" >&6;}
6434fffe5102Smrg    fi
6435fffe5102Smrg    # Neutralize special characters interpreted by sed in replacement strings.
6436fffe5102Smrg    case $configure_input in #(
6437fffe5102Smrg    *\&* | *\|* | *\\* )
6438fffe5102Smrg       ac_sed_conf_input=`$as_echo "$configure_input" |
6439fffe5102Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
6440fffe5102Smrg    *) ac_sed_conf_input=$configure_input;;
6441fffe5102Smrg    esac
6442fffe5102Smrg
6443fffe5102Smrg    case $ac_tag in
6444fffe5102Smrg    *:-:* | *:-) cat >"$tmp/stdin" \
6445fffe5102Smrg      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
6446fffe5102Smrg    esac
6447fffe5102Smrg    ;;
644867f05d30Smrg  esac
644967f05d30Smrg
6450fffe5102Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
645167f05d30Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
645267f05d30Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
645367f05d30Smrg	 X"$ac_file" : 'X\(//\)$' \| \
6454fffe5102Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6455fffe5102Smrg$as_echo X"$ac_file" |
6456fffe5102Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6457fffe5102Smrg	    s//\1/
6458fffe5102Smrg	    q
6459fffe5102Smrg	  }
6460fffe5102Smrg	  /^X\(\/\/\)[^/].*/{
6461fffe5102Smrg	    s//\1/
6462fffe5102Smrg	    q
6463fffe5102Smrg	  }
6464fffe5102Smrg	  /^X\(\/\/\)$/{
6465fffe5102Smrg	    s//\1/
6466fffe5102Smrg	    q
6467fffe5102Smrg	  }
6468fffe5102Smrg	  /^X\(\/\).*/{
6469fffe5102Smrg	    s//\1/
6470fffe5102Smrg	    q
6471fffe5102Smrg	  }
6472fffe5102Smrg	  s/.*/./; q'`
6473fffe5102Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
647467f05d30Smrg  ac_builddir=.
647567f05d30Smrg
6476fffe5102Smrgcase "$ac_dir" in
6477fffe5102Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6478fffe5102Smrg*)
6479fffe5102Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6480fffe5102Smrg  # A ".." for each directory in $ac_dir_suffix.
6481fffe5102Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6482fffe5102Smrg  case $ac_top_builddir_sub in
6483fffe5102Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6484fffe5102Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6485fffe5102Smrg  esac ;;
6486fffe5102Smrgesac
6487fffe5102Smrgac_abs_top_builddir=$ac_pwd
6488fffe5102Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
6489fffe5102Smrg# for backward compatibility:
6490fffe5102Smrgac_top_builddir=$ac_top_build_prefix
649167f05d30Smrg
649267f05d30Smrgcase $srcdir in
6493fffe5102Smrg  .)  # We are building in place.
649467f05d30Smrg    ac_srcdir=.
6495fffe5102Smrg    ac_top_srcdir=$ac_top_builddir_sub
6496fffe5102Smrg    ac_abs_top_srcdir=$ac_pwd ;;
6497fffe5102Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
649867f05d30Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
6499fffe5102Smrg    ac_top_srcdir=$srcdir
6500fffe5102Smrg    ac_abs_top_srcdir=$srcdir ;;
6501fffe5102Smrg  *) # Relative name.
6502fffe5102Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6503fffe5102Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
6504fffe5102Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
650567f05d30Smrgesac
6506fffe5102Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
650767f05d30Smrg
650867f05d30Smrg
6509fffe5102Smrg  case $ac_mode in
6510fffe5102Smrg  :F)
6511fffe5102Smrg  #
6512fffe5102Smrg  # CONFIG_FILE
6513fffe5102Smrg  #
651467f05d30Smrg
651567f05d30Smrg  case $INSTALL in
651667f05d30Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6517fffe5102Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6518fffe5102Smrg  esac
6519fffe5102Smrg  ac_MKDIR_P=$MKDIR_P
6520fffe5102Smrg  case $MKDIR_P in
6521fffe5102Smrg  [\\/$]* | ?:[\\/]* ) ;;
6522fffe5102Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
652367f05d30Smrg  esac
6524fffe5102Smrg_ACEOF
652567f05d30Smrg
6526fffe5102Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6527fffe5102Smrg# If the template does not know about datarootdir, expand it.
6528fffe5102Smrg# FIXME: This hack should be removed a few years after 2.60.
6529fffe5102Smrgac_datarootdir_hack=; ac_datarootdir_seen=
6530fffe5102Smrgac_sed_dataroot='
6531fffe5102Smrg/datarootdir/ {
6532fffe5102Smrg  p
6533fffe5102Smrg  q
6534fffe5102Smrg}
6535fffe5102Smrg/@datadir@/p
6536fffe5102Smrg/@docdir@/p
6537fffe5102Smrg/@infodir@/p
6538fffe5102Smrg/@localedir@/p
6539fffe5102Smrg/@mandir@/p'
6540fffe5102Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6541fffe5102Smrg*datarootdir*) ac_datarootdir_seen=yes;;
6542fffe5102Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6543fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6544fffe5102Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6545fffe5102Smrg_ACEOF
6546fffe5102Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6547fffe5102Smrg  ac_datarootdir_hack='
6548fffe5102Smrg  s&@datadir@&$datadir&g
6549fffe5102Smrg  s&@docdir@&$docdir&g
6550fffe5102Smrg  s&@infodir@&$infodir&g
6551fffe5102Smrg  s&@localedir@&$localedir&g
6552fffe5102Smrg  s&@mandir@&$mandir&g
6553fffe5102Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
6554fffe5102Smrgesac
655567f05d30Smrg_ACEOF
6556fffe5102Smrg
6557fffe5102Smrg# Neutralize VPATH when `$srcdir' = `.'.
6558fffe5102Smrg# Shell code in configure.ac might set extrasub.
6559fffe5102Smrg# FIXME: do we really want to maintain this feature?
6560fffe5102Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6561fffe5102Smrgac_sed_extra="$ac_vpsub
656267f05d30Smrg$extrasub
656367f05d30Smrg_ACEOF
6564fffe5102Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
656567f05d30Smrg:t
656667f05d30Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6567fffe5102Smrgs|@configure_input@|$ac_sed_conf_input|;t t
6568fffe5102Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
6569fffe5102Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
6570fffe5102Smrgs&@srcdir@&$ac_srcdir&;t t
6571fffe5102Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
6572fffe5102Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
6573fffe5102Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6574fffe5102Smrgs&@builddir@&$ac_builddir&;t t
6575fffe5102Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
6576fffe5102Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6577fffe5102Smrgs&@INSTALL@&$ac_INSTALL&;t t
6578fffe5102Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
6579fffe5102Smrg$ac_datarootdir_hack
6580fffe5102Smrg"
6581fffe5102Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6582fffe5102Smrg  || as_fn_error "could not create $ac_file" "$LINENO" 5
6583fffe5102Smrg
6584fffe5102Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6585fffe5102Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6586fffe5102Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6587fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6588fffe5102Smrgwhich seems to be undefined.  Please make sure it is defined." >&5
6589fffe5102Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6590fffe5102Smrgwhich seems to be undefined.  Please make sure it is defined." >&2;}
6591fffe5102Smrg
6592fffe5102Smrg  rm -f "$tmp/stdin"
659367f05d30Smrg  case $ac_file in
6594fffe5102Smrg  -) cat "$tmp/out" && rm -f "$tmp/out";;
6595fffe5102Smrg  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6596fffe5102Smrg  esac \
6597fffe5102Smrg  || as_fn_error "could not create $ac_file" "$LINENO" 5
6598fffe5102Smrg ;;
6599fffe5102Smrg  :H)
6600fffe5102Smrg  #
6601fffe5102Smrg  # CONFIG_HEADER
6602fffe5102Smrg  #
660367f05d30Smrg  if test x"$ac_file" != x-; then
6604fffe5102Smrg    {
6605fffe5102Smrg      $as_echo "/* $configure_input  */" \
6606fffe5102Smrg      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6607fffe5102Smrg    } >"$tmp/config.h" \
6608fffe5102Smrg      || as_fn_error "could not create $ac_file" "$LINENO" 5
6609fffe5102Smrg    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6610fffe5102Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6611fffe5102Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
661267f05d30Smrg    else
6613fffe5102Smrg      rm -f "$ac_file"
6614fffe5102Smrg      mv "$tmp/config.h" "$ac_file" \
6615fffe5102Smrg	|| as_fn_error "could not create $ac_file" "$LINENO" 5
661667f05d30Smrg    fi
661767f05d30Smrg  else
6618fffe5102Smrg    $as_echo "/* $configure_input  */" \
6619fffe5102Smrg      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6620fffe5102Smrg      || as_fn_error "could not create -" "$LINENO" 5
662167f05d30Smrg  fi
6622fffe5102Smrg# Compute "$ac_file"'s index in $config_headers.
6623fffe5102Smrg_am_arg="$ac_file"
662467f05d30Smrg_am_stamp_count=1
662567f05d30Smrgfor _am_header in $config_headers :; do
662667f05d30Smrg  case $_am_header in
6627fffe5102Smrg    $_am_arg | $_am_arg:* )
662867f05d30Smrg      break ;;
662967f05d30Smrg    * )
663067f05d30Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
663167f05d30Smrg  esac
663267f05d30Smrgdone
6633fffe5102Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6634fffe5102Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6635fffe5102Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
6636fffe5102Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
6637fffe5102Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6638fffe5102Smrg$as_echo X"$_am_arg" |
6639fffe5102Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6640fffe5102Smrg	    s//\1/
6641fffe5102Smrg	    q
6642fffe5102Smrg	  }
6643fffe5102Smrg	  /^X\(\/\/\)[^/].*/{
6644fffe5102Smrg	    s//\1/
6645fffe5102Smrg	    q
6646fffe5102Smrg	  }
6647fffe5102Smrg	  /^X\(\/\/\)$/{
6648fffe5102Smrg	    s//\1/
6649fffe5102Smrg	    q
6650fffe5102Smrg	  }
6651fffe5102Smrg	  /^X\(\/\).*/{
6652fffe5102Smrg	    s//\1/
6653fffe5102Smrg	    q
6654fffe5102Smrg	  }
6655fffe5102Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
6656fffe5102Smrg ;;
665767f05d30Smrg
6658fffe5102Smrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6659fffe5102Smrg$as_echo "$as_me: executing $ac_file commands" >&6;}
6660fffe5102Smrg ;;
6661fffe5102Smrg  esac
666267f05d30Smrg
666367f05d30Smrg
6664fffe5102Smrg  case $ac_file$ac_mode in
6665fffe5102Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6666fffe5102Smrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
6667fffe5102Smrg  # are listed without --file.  Let's play safe and only enable the eval
6668fffe5102Smrg  # if we detect the quoting.
6669fffe5102Smrg  case $CONFIG_FILES in
6670fffe5102Smrg  *\'*) eval set x "$CONFIG_FILES" ;;
6671fffe5102Smrg  *)   set x $CONFIG_FILES ;;
6672fffe5102Smrg  esac
6673fffe5102Smrg  shift
6674fffe5102Smrg  for mf
6675fffe5102Smrg  do
6676fffe5102Smrg    # Strip MF so we end up with the name of the file.
6677fffe5102Smrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
6678fffe5102Smrg    # Check whether this is an Automake generated Makefile or not.
6679fffe5102Smrg    # We used to match only the files named `Makefile.in', but
6680fffe5102Smrg    # some people rename them; so instead we look at the file content.
6681fffe5102Smrg    # Grep'ing the first line is not enough: some people post-process
6682fffe5102Smrg    # each Makefile.in and add a new line on top of each file to say so.
6683fffe5102Smrg    # Grep'ing the whole file is not good either: AIX grep has a line
6684fffe5102Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
6685fffe5102Smrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6686fffe5102Smrg      dirpart=`$as_dirname -- "$mf" ||
668767f05d30Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
668867f05d30Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
668967f05d30Smrg	 X"$mf" : 'X\(//\)$' \| \
6690fffe5102Smrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6691fffe5102Smrg$as_echo X"$mf" |
6692fffe5102Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6693fffe5102Smrg	    s//\1/
6694fffe5102Smrg	    q
6695fffe5102Smrg	  }
6696fffe5102Smrg	  /^X\(\/\/\)[^/].*/{
6697fffe5102Smrg	    s//\1/
6698fffe5102Smrg	    q
6699fffe5102Smrg	  }
6700fffe5102Smrg	  /^X\(\/\/\)$/{
6701fffe5102Smrg	    s//\1/
6702fffe5102Smrg	    q
6703fffe5102Smrg	  }
6704fffe5102Smrg	  /^X\(\/\).*/{
6705fffe5102Smrg	    s//\1/
6706fffe5102Smrg	    q
6707fffe5102Smrg	  }
6708fffe5102Smrg	  s/.*/./; q'`
6709fffe5102Smrg    else
6710fffe5102Smrg      continue
6711fffe5102Smrg    fi
6712fffe5102Smrg    # Extract the definition of DEPDIR, am__include, and am__quote
6713fffe5102Smrg    # from the Makefile without running `make'.
6714fffe5102Smrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6715fffe5102Smrg    test -z "$DEPDIR" && continue
6716fffe5102Smrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
6717fffe5102Smrg    test -z "am__include" && continue
6718fffe5102Smrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6719fffe5102Smrg    # When using ansi2knr, U may be empty or an underscore; expand it
6720fffe5102Smrg    U=`sed -n 's/^U = //p' < "$mf"`
6721fffe5102Smrg    # Find all dependency output files, they are included files with
6722fffe5102Smrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
6723fffe5102Smrg    # simplest approach to changing $(DEPDIR) to its actual value in the
6724fffe5102Smrg    # expansion.
6725fffe5102Smrg    for file in `sed -n "
6726fffe5102Smrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6727fffe5102Smrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6728fffe5102Smrg      # Make sure the directory exists.
6729fffe5102Smrg      test -f "$dirpart/$file" && continue
6730fffe5102Smrg      fdir=`$as_dirname -- "$file" ||
673167f05d30Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
673267f05d30Smrg	 X"$file" : 'X\(//\)[^/]' \| \
673367f05d30Smrg	 X"$file" : 'X\(//\)$' \| \
6734fffe5102Smrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6735fffe5102Smrg$as_echo X"$file" |
6736fffe5102Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6737fffe5102Smrg	    s//\1/
6738fffe5102Smrg	    q
6739fffe5102Smrg	  }
6740fffe5102Smrg	  /^X\(\/\/\)[^/].*/{
6741fffe5102Smrg	    s//\1/
6742fffe5102Smrg	    q
6743fffe5102Smrg	  }
6744fffe5102Smrg	  /^X\(\/\/\)$/{
6745fffe5102Smrg	    s//\1/
6746fffe5102Smrg	    q
6747fffe5102Smrg	  }
6748fffe5102Smrg	  /^X\(\/\).*/{
6749fffe5102Smrg	    s//\1/
6750fffe5102Smrg	    q
6751fffe5102Smrg	  }
6752fffe5102Smrg	  s/.*/./; q'`
6753fffe5102Smrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
6754fffe5102Smrg      # echo "creating $dirpart/$file"
6755fffe5102Smrg      echo '# dummy' > "$dirpart/$file"
675667f05d30Smrg    done
675767f05d30Smrg  done
6758fffe5102Smrg}
675967f05d30Smrg ;;
6760fffe5102Smrg
676167f05d30Smrg  esac
6762fffe5102Smrgdone # for ac_tag
676367f05d30Smrg
676467f05d30Smrg
6765fffe5102Smrgas_fn_exit 0
676667f05d30Smrg_ACEOF
676767f05d30Smrgac_clean_files=$ac_clean_files_save
676867f05d30Smrg
6769fffe5102Smrgtest $ac_write_fail = 0 ||
6770fffe5102Smrg  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6771fffe5102Smrg
677267f05d30Smrg
677367f05d30Smrg# configure is writing to config.log, and then calls config.status.
677467f05d30Smrg# config.status does its own redirection, appending to config.log.
677567f05d30Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
677667f05d30Smrg# by configure, so config.status won't be able to write to it; its
677767f05d30Smrg# output is simply discarded.  So we exec the FD to /dev/null,
677867f05d30Smrg# effectively closing config.log, so it can be properly (re)opened and
677967f05d30Smrg# appended to by config.status.  When coming back to configure, we
678067f05d30Smrg# need to make the FD available again.
678167f05d30Smrgif test "$no_create" != yes; then
678267f05d30Smrg  ac_cs_success=:
678367f05d30Smrg  ac_config_status_args=
678467f05d30Smrg  test "$silent" = yes &&
678567f05d30Smrg    ac_config_status_args="$ac_config_status_args --quiet"
678667f05d30Smrg  exec 5>/dev/null
678767f05d30Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
678867f05d30Smrg  exec 5>>config.log
678967f05d30Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
679067f05d30Smrg  # would make configure fail if this is the last instruction.
6791fffe5102Smrg  $ac_cs_success || as_fn_exit $?
6792fffe5102Smrgfi
6793fffe5102Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6794fffe5102Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6795fffe5102Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
679667f05d30Smrgfi
679767f05d30Smrg
6798