configure revision e4ee1255
1264fa531Smrg#! /bin/sh
2264fa531Smrg# Guess values for system-dependent variables and create Makefiles.
3e4ee1255Smrg# Generated by GNU Autoconf 2.68 for x11perf 1.5.4.
4264fa531Smrg#
5264fa531Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6264fa531Smrg#
7736a7e2cSmrg#
8c37a63b8Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9736a7e2cSmrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10736a7e2cSmrg# Foundation, Inc.
11736a7e2cSmrg#
12736a7e2cSmrg#
13264fa531Smrg# This configure script is free software; the Free Software Foundation
14264fa531Smrg# gives unlimited permission to copy, distribute and modify it.
15736a7e2cSmrg## -------------------- ##
16736a7e2cSmrg## M4sh Initialization. ##
17736a7e2cSmrg## -------------------- ##
18264fa531Smrg
19c37a63b8Smrg# Be more Bourne compatible
20c37a63b8SmrgDUALCASE=1; export DUALCASE # for MKS sh
21736a7e2cSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22264fa531Smrg  emulate sh
23264fa531Smrg  NULLCMD=:
24c37a63b8Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25264fa531Smrg  # is contrary to our usage.  Disable this feature.
26264fa531Smrg  alias -g '${1+"$@"}'='"$@"'
27c37a63b8Smrg  setopt NO_GLOB_SUBST
28c37a63b8Smrgelse
29736a7e2cSmrg  case `(set -o) 2>/dev/null` in #(
30736a7e2cSmrg  *posix*) :
31736a7e2cSmrg    set -o posix ;; #(
32736a7e2cSmrg  *) :
33736a7e2cSmrg     ;;
34c37a63b8Smrgesac
35c37a63b8Smrgfi
36c37a63b8Smrg
37c37a63b8Smrg
38c37a63b8Smrgas_nl='
39c37a63b8Smrg'
40c37a63b8Smrgexport as_nl
41c37a63b8Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
42c37a63b8Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43c37a63b8Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44c37a63b8Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45736a7e2cSmrg# Prefer a ksh shell builtin over an external printf program on Solaris,
46736a7e2cSmrg# but without wasting forks for bash or zsh.
47736a7e2cSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \
48736a7e2cSmrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49736a7e2cSmrg  as_echo='print -r --'
50736a7e2cSmrg  as_echo_n='print -rn --'
51736a7e2cSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52c37a63b8Smrg  as_echo='printf %s\n'
53c37a63b8Smrg  as_echo_n='printf %s'
54c37a63b8Smrgelse
55c37a63b8Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56c37a63b8Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57c37a63b8Smrg    as_echo_n='/usr/ucb/echo -n'
58c37a63b8Smrg  else
59c37a63b8Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60c37a63b8Smrg    as_echo_n_body='eval
61c37a63b8Smrg      arg=$1;
62736a7e2cSmrg      case $arg in #(
63c37a63b8Smrg      *"$as_nl"*)
64c37a63b8Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
65c37a63b8Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66c37a63b8Smrg      esac;
67c37a63b8Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68c37a63b8Smrg    '
69c37a63b8Smrg    export as_echo_n_body
70c37a63b8Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
71c37a63b8Smrg  fi
72c37a63b8Smrg  export as_echo_body
73c37a63b8Smrg  as_echo='sh -c $as_echo_body as_echo'
74c37a63b8Smrgfi
75c37a63b8Smrg
76c37a63b8Smrg# The user is always right.
77c37a63b8Smrgif test "${PATH_SEPARATOR+set}" != set; then
78c37a63b8Smrg  PATH_SEPARATOR=:
79c37a63b8Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80c37a63b8Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81c37a63b8Smrg      PATH_SEPARATOR=';'
82c37a63b8Smrg  }
83264fa531Smrgfi
84264fa531Smrg
85264fa531Smrg
86c37a63b8Smrg# IFS
87c37a63b8Smrg# We need space, tab and new line, in precisely that order.  Quoting is
88c37a63b8Smrg# there to prevent editors from complaining about space-tab.
89c37a63b8Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90c37a63b8Smrg# splitting by setting IFS to empty value.)
91c37a63b8SmrgIFS=" ""	$as_nl"
92c37a63b8Smrg
93c37a63b8Smrg# Find who we are.  Look in the path if we contain no directory separator.
94736a7e2cSmrgas_myself=
95736a7e2cSmrgcase $0 in #((
96c37a63b8Smrg  *[\\/]* ) as_myself=$0 ;;
97c37a63b8Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98c37a63b8Smrgfor as_dir in $PATH
99c37a63b8Smrgdo
100c37a63b8Smrg  IFS=$as_save_IFS
101c37a63b8Smrg  test -z "$as_dir" && as_dir=.
102736a7e2cSmrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103736a7e2cSmrg  done
104c37a63b8SmrgIFS=$as_save_IFS
105c37a63b8Smrg
106c37a63b8Smrg     ;;
107c37a63b8Smrgesac
108c37a63b8Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
109c37a63b8Smrg# in which case we are not to be found in the path.
110c37a63b8Smrgif test "x$as_myself" = x; then
111c37a63b8Smrg  as_myself=$0
112c37a63b8Smrgfi
113c37a63b8Smrgif test ! -f "$as_myself"; then
114c37a63b8Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115736a7e2cSmrg  exit 1
116c37a63b8Smrgfi
117c37a63b8Smrg
118736a7e2cSmrg# Unset variables that we do not need and which cause bugs (e.g. in
119736a7e2cSmrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120736a7e2cSmrg# suppresses any "Segmentation fault" message there.  '((' could
121736a7e2cSmrg# trigger a bug in pdksh 5.2.14.
122736a7e2cSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH
123736a7e2cSmrgdo eval test x\${$as_var+set} = xset \
124736a7e2cSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125c37a63b8Smrgdone
126264fa531SmrgPS1='$ '
127264fa531SmrgPS2='> '
128264fa531SmrgPS4='+ '
129264fa531Smrg
130264fa531Smrg# NLS nuisances.
131c37a63b8SmrgLC_ALL=C
132c37a63b8Smrgexport LC_ALL
133c37a63b8SmrgLANGUAGE=C
134c37a63b8Smrgexport LANGUAGE
135264fa531Smrg
136736a7e2cSmrg# CDPATH.
137736a7e2cSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138736a7e2cSmrg
139736a7e2cSmrgif test "x$CONFIG_SHELL" = x; then
140736a7e2cSmrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141736a7e2cSmrg  emulate sh
142736a7e2cSmrg  NULLCMD=:
143736a7e2cSmrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144736a7e2cSmrg  # is contrary to our usage.  Disable this feature.
145736a7e2cSmrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146736a7e2cSmrg  setopt NO_GLOB_SUBST
147736a7e2cSmrgelse
148736a7e2cSmrg  case \`(set -o) 2>/dev/null\` in #(
149736a7e2cSmrg  *posix*) :
150736a7e2cSmrg    set -o posix ;; #(
151736a7e2cSmrg  *) :
152736a7e2cSmrg     ;;
153736a7e2cSmrgesac
154736a7e2cSmrgfi
155736a7e2cSmrg"
156736a7e2cSmrg  as_required="as_fn_return () { (exit \$1); }
157736a7e2cSmrgas_fn_success () { as_fn_return 0; }
158736a7e2cSmrgas_fn_failure () { as_fn_return 1; }
159736a7e2cSmrgas_fn_ret_success () { return 0; }
160736a7e2cSmrgas_fn_ret_failure () { return 1; }
161736a7e2cSmrg
162736a7e2cSmrgexitcode=0
163736a7e2cSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
164736a7e2cSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165736a7e2cSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166736a7e2cSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167736a7e2cSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168736a7e2cSmrg
169736a7e2cSmrgelse
170736a7e2cSmrg  exitcode=1; echo positional parameters were not saved.
171736a7e2cSmrgfi
172736a7e2cSmrgtest x\$exitcode = x0 || exit 1"
173736a7e2cSmrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174736a7e2cSmrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175736a7e2cSmrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176736a7e2cSmrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177736a7e2cSmrgtest \$(( 1 + 1 )) = 2 || exit 1"
178736a7e2cSmrg  if (eval "$as_required") 2>/dev/null; then :
179736a7e2cSmrg  as_have_required=yes
180736a7e2cSmrgelse
181736a7e2cSmrg  as_have_required=no
182736a7e2cSmrgfi
183736a7e2cSmrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184736a7e2cSmrg
185736a7e2cSmrgelse
186736a7e2cSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187736a7e2cSmrgas_found=false
188736a7e2cSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189736a7e2cSmrgdo
190736a7e2cSmrg  IFS=$as_save_IFS
191736a7e2cSmrg  test -z "$as_dir" && as_dir=.
192736a7e2cSmrg  as_found=:
193736a7e2cSmrg  case $as_dir in #(
194736a7e2cSmrg	 /*)
195736a7e2cSmrg	   for as_base in sh bash ksh sh5; do
196736a7e2cSmrg	     # Try only shells that exist, to save several forks.
197736a7e2cSmrg	     as_shell=$as_dir/$as_base
198736a7e2cSmrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199736a7e2cSmrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200736a7e2cSmrg  CONFIG_SHELL=$as_shell as_have_required=yes
201736a7e2cSmrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202736a7e2cSmrg  break 2
203736a7e2cSmrgfi
204736a7e2cSmrgfi
205736a7e2cSmrg	   done;;
206736a7e2cSmrg       esac
207736a7e2cSmrg  as_found=false
208736a7e2cSmrgdone
209736a7e2cSmrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210736a7e2cSmrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211736a7e2cSmrg  CONFIG_SHELL=$SHELL as_have_required=yes
212736a7e2cSmrgfi; }
213736a7e2cSmrgIFS=$as_save_IFS
214736a7e2cSmrg
215736a7e2cSmrg
216736a7e2cSmrg      if test "x$CONFIG_SHELL" != x; then :
217736a7e2cSmrg  # We cannot yet assume a decent shell, so we have to provide a
218736a7e2cSmrg	# neutralization value for shells without unset; and this also
219736a7e2cSmrg	# works around shells that cannot unset nonexistent variables.
220736a7e2cSmrg	# Preserve -v and -x to the replacement shell.
221736a7e2cSmrg	BASH_ENV=/dev/null
222736a7e2cSmrg	ENV=/dev/null
223736a7e2cSmrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224736a7e2cSmrg	export CONFIG_SHELL
225736a7e2cSmrg	case $- in # ((((
226736a7e2cSmrg	  *v*x* | *x*v* ) as_opts=-vx ;;
227736a7e2cSmrg	  *v* ) as_opts=-v ;;
228736a7e2cSmrg	  *x* ) as_opts=-x ;;
229736a7e2cSmrg	  * ) as_opts= ;;
230736a7e2cSmrg	esac
231736a7e2cSmrg	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232736a7e2cSmrgfi
233736a7e2cSmrg
234736a7e2cSmrg    if test x$as_have_required = xno; then :
235736a7e2cSmrg  $as_echo "$0: This script requires a shell more modern than all"
236736a7e2cSmrg  $as_echo "$0: the shells that I found on your system."
237736a7e2cSmrg  if test x${ZSH_VERSION+set} = xset ; then
238736a7e2cSmrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239736a7e2cSmrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240736a7e2cSmrg  else
241736a7e2cSmrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242736a7e2cSmrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243736a7e2cSmrg$0: about your system, including any error possibly output
244736a7e2cSmrg$0: before this message. Then install a modern shell, or
245736a7e2cSmrg$0: manually run the script under such a shell if you do
246736a7e2cSmrg$0: have one."
247736a7e2cSmrg  fi
248736a7e2cSmrg  exit 1
249736a7e2cSmrgfi
250736a7e2cSmrgfi
251736a7e2cSmrgfi
252736a7e2cSmrgSHELL=${CONFIG_SHELL-/bin/sh}
253736a7e2cSmrgexport SHELL
254736a7e2cSmrg# Unset more variables known to interfere with behavior of common tools.
255736a7e2cSmrgCLICOLOR_FORCE= GREP_OPTIONS=
256736a7e2cSmrgunset CLICOLOR_FORCE GREP_OPTIONS
257736a7e2cSmrg
258736a7e2cSmrg## --------------------- ##
259736a7e2cSmrg## M4sh Shell Functions. ##
260736a7e2cSmrg## --------------------- ##
261736a7e2cSmrg# as_fn_unset VAR
262736a7e2cSmrg# ---------------
263736a7e2cSmrg# Portably unset VAR.
264736a7e2cSmrgas_fn_unset ()
265736a7e2cSmrg{
266736a7e2cSmrg  { eval $1=; unset $1;}
267736a7e2cSmrg}
268736a7e2cSmrgas_unset=as_fn_unset
269736a7e2cSmrg
270736a7e2cSmrg# as_fn_set_status STATUS
271736a7e2cSmrg# -----------------------
272736a7e2cSmrg# Set $? to STATUS, without forking.
273736a7e2cSmrgas_fn_set_status ()
274736a7e2cSmrg{
275736a7e2cSmrg  return $1
276736a7e2cSmrg} # as_fn_set_status
277736a7e2cSmrg
278736a7e2cSmrg# as_fn_exit STATUS
279736a7e2cSmrg# -----------------
280736a7e2cSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281736a7e2cSmrgas_fn_exit ()
282736a7e2cSmrg{
283736a7e2cSmrg  set +e
284736a7e2cSmrg  as_fn_set_status $1
285736a7e2cSmrg  exit $1
286736a7e2cSmrg} # as_fn_exit
287736a7e2cSmrg
288736a7e2cSmrg# as_fn_mkdir_p
289736a7e2cSmrg# -------------
290736a7e2cSmrg# Create "$as_dir" as a directory, including parents if necessary.
291736a7e2cSmrgas_fn_mkdir_p ()
292736a7e2cSmrg{
293736a7e2cSmrg
294736a7e2cSmrg  case $as_dir in #(
295736a7e2cSmrg  -*) as_dir=./$as_dir;;
296736a7e2cSmrg  esac
297736a7e2cSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
298736a7e2cSmrg    as_dirs=
299736a7e2cSmrg    while :; do
300736a7e2cSmrg      case $as_dir in #(
301736a7e2cSmrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302736a7e2cSmrg      *) as_qdir=$as_dir;;
303736a7e2cSmrg      esac
304736a7e2cSmrg      as_dirs="'$as_qdir' $as_dirs"
305736a7e2cSmrg      as_dir=`$as_dirname -- "$as_dir" ||
306736a7e2cSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307736a7e2cSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
308736a7e2cSmrg	 X"$as_dir" : 'X\(//\)$' \| \
309736a7e2cSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310736a7e2cSmrg$as_echo X"$as_dir" |
311736a7e2cSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312736a7e2cSmrg	    s//\1/
313736a7e2cSmrg	    q
314736a7e2cSmrg	  }
315736a7e2cSmrg	  /^X\(\/\/\)[^/].*/{
316736a7e2cSmrg	    s//\1/
317736a7e2cSmrg	    q
318736a7e2cSmrg	  }
319736a7e2cSmrg	  /^X\(\/\/\)$/{
320736a7e2cSmrg	    s//\1/
321736a7e2cSmrg	    q
322736a7e2cSmrg	  }
323736a7e2cSmrg	  /^X\(\/\).*/{
324736a7e2cSmrg	    s//\1/
325736a7e2cSmrg	    q
326736a7e2cSmrg	  }
327736a7e2cSmrg	  s/.*/./; q'`
328736a7e2cSmrg      test -d "$as_dir" && break
329736a7e2cSmrg    done
330736a7e2cSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
331736a7e2cSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332736a7e2cSmrg
333736a7e2cSmrg
334736a7e2cSmrg} # as_fn_mkdir_p
335736a7e2cSmrg# as_fn_append VAR VALUE
336736a7e2cSmrg# ----------------------
337736a7e2cSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
338736a7e2cSmrg# advantage of any shell optimizations that allow amortized linear growth over
339736a7e2cSmrg# repeated appends, instead of the typical quadratic growth present in naive
340736a7e2cSmrg# implementations.
341736a7e2cSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342736a7e2cSmrg  eval 'as_fn_append ()
343736a7e2cSmrg  {
344736a7e2cSmrg    eval $1+=\$2
345736a7e2cSmrg  }'
346736a7e2cSmrgelse
347736a7e2cSmrg  as_fn_append ()
348736a7e2cSmrg  {
349736a7e2cSmrg    eval $1=\$$1\$2
350736a7e2cSmrg  }
351736a7e2cSmrgfi # as_fn_append
352736a7e2cSmrg
353736a7e2cSmrg# as_fn_arith ARG...
354736a7e2cSmrg# ------------------
355736a7e2cSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
356736a7e2cSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
357736a7e2cSmrg# must be portable across $(()) and expr.
358736a7e2cSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359736a7e2cSmrg  eval 'as_fn_arith ()
360736a7e2cSmrg  {
361736a7e2cSmrg    as_val=$(( $* ))
362736a7e2cSmrg  }'
363736a7e2cSmrgelse
364736a7e2cSmrg  as_fn_arith ()
365736a7e2cSmrg  {
366736a7e2cSmrg    as_val=`expr "$@" || test $? -eq 1`
367736a7e2cSmrg  }
368736a7e2cSmrgfi # as_fn_arith
369736a7e2cSmrg
370736a7e2cSmrg
371736a7e2cSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
372736a7e2cSmrg# ----------------------------------------
373736a7e2cSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374736a7e2cSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375736a7e2cSmrg# script with STATUS, using 1 if that was 0.
376736a7e2cSmrgas_fn_error ()
377736a7e2cSmrg{
378736a7e2cSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
379736a7e2cSmrg  if test "$4"; then
380736a7e2cSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381736a7e2cSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382736a7e2cSmrg  fi
383736a7e2cSmrg  $as_echo "$as_me: error: $2" >&2
384736a7e2cSmrg  as_fn_exit $as_status
385736a7e2cSmrg} # as_fn_error
386736a7e2cSmrg
387c37a63b8Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
388c37a63b8Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389264fa531Smrg  as_expr=expr
390264fa531Smrgelse
391264fa531Smrg  as_expr=false
392264fa531Smrgfi
393264fa531Smrg
394c37a63b8Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395264fa531Smrg  as_basename=basename
396264fa531Smrgelse
397264fa531Smrg  as_basename=false
398264fa531Smrgfi
399264fa531Smrg
400736a7e2cSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401736a7e2cSmrg  as_dirname=dirname
402736a7e2cSmrgelse
403736a7e2cSmrg  as_dirname=false
404736a7e2cSmrgfi
405264fa531Smrg
406c37a63b8Smrgas_me=`$as_basename -- "$0" ||
407264fa531Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408264fa531Smrg	 X"$0" : 'X\(//\)$' \| \
409c37a63b8Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410c37a63b8Smrg$as_echo X/"$0" |
411c37a63b8Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
412c37a63b8Smrg	    s//\1/
413c37a63b8Smrg	    q
414c37a63b8Smrg	  }
415c37a63b8Smrg	  /^X\/\(\/\/\)$/{
416c37a63b8Smrg	    s//\1/
417c37a63b8Smrg	    q
418c37a63b8Smrg	  }
419c37a63b8Smrg	  /^X\/\(\/\).*/{
420c37a63b8Smrg	    s//\1/
421c37a63b8Smrg	    q
422c37a63b8Smrg	  }
423c37a63b8Smrg	  s/.*/./; q'`
424264fa531Smrg
425736a7e2cSmrg# Avoid depending upon Character Ranges.
426736a7e2cSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
427736a7e2cSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428736a7e2cSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
429736a7e2cSmrgas_cr_digits='0123456789'
430736a7e2cSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
431264fa531Smrg
432264fa531Smrg
433736a7e2cSmrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434736a7e2cSmrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435736a7e2cSmrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436736a7e2cSmrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437736a7e2cSmrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438736a7e2cSmrg  sed -n '
439736a7e2cSmrg    p
440736a7e2cSmrg    /[$]LINENO/=
441736a7e2cSmrg  ' <$as_myself |
442736a7e2cSmrg    sed '
443736a7e2cSmrg      s/[$]LINENO.*/&-/
444736a7e2cSmrg      t lineno
445736a7e2cSmrg      b
446736a7e2cSmrg      :lineno
447736a7e2cSmrg      N
448736a7e2cSmrg      :loop
449736a7e2cSmrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450736a7e2cSmrg      t loop
451736a7e2cSmrg      s/-\n.*//
452736a7e2cSmrg    ' >$as_me.lineno &&
453736a7e2cSmrg  chmod +x "$as_me.lineno" ||
454736a7e2cSmrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455264fa531Smrg
456736a7e2cSmrg  # Don't try to exec as it changes $[0], causing all sort of problems
457736a7e2cSmrg  # (the dirname of $[0] is not the place where we might find the
458736a7e2cSmrg  # original and so on.  Autoconf is especially sensitive to this).
459736a7e2cSmrg  . "./$as_me.lineno"
460736a7e2cSmrg  # Exit status is that of the last command.
461736a7e2cSmrg  exit
462c37a63b8Smrg}
463264fa531Smrg
464736a7e2cSmrgECHO_C= ECHO_N= ECHO_T=
465736a7e2cSmrgcase `echo -n x` in #(((((
466736a7e2cSmrg-n*)
467736a7e2cSmrg  case `echo 'xy\c'` in
468736a7e2cSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469736a7e2cSmrg  xy)  ECHO_C='\c';;
470736a7e2cSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471736a7e2cSmrg       ECHO_T='	';;
472736a7e2cSmrg  esac;;
473736a7e2cSmrg*)
474736a7e2cSmrg  ECHO_N='-n';;
475736a7e2cSmrgesac
476264fa531Smrg
477736a7e2cSmrgrm -f conf$$ conf$$.exe conf$$.file
478736a7e2cSmrgif test -d conf$$.dir; then
479736a7e2cSmrg  rm -f conf$$.dir/conf$$.file
480736a7e2cSmrgelse
481736a7e2cSmrg  rm -f conf$$.dir
482736a7e2cSmrg  mkdir conf$$.dir 2>/dev/null
483c37a63b8Smrgfi
484736a7e2cSmrgif (echo >conf$$.file) 2>/dev/null; then
485736a7e2cSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
486736a7e2cSmrg    as_ln_s='ln -s'
487736a7e2cSmrg    # ... but there are two gotchas:
488736a7e2cSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489736a7e2cSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490736a7e2cSmrg    # In both cases, we have to default to `cp -p'.
491736a7e2cSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492736a7e2cSmrg      as_ln_s='cp -p'
493736a7e2cSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
494736a7e2cSmrg    as_ln_s=ln
495736a7e2cSmrg  else
496736a7e2cSmrg    as_ln_s='cp -p'
497736a7e2cSmrg  fi
498c37a63b8Smrgelse
499736a7e2cSmrg  as_ln_s='cp -p'
500c37a63b8Smrgfi
501736a7e2cSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502736a7e2cSmrgrmdir conf$$.dir 2>/dev/null
503c37a63b8Smrg
504736a7e2cSmrgif mkdir -p . 2>/dev/null; then
505736a7e2cSmrg  as_mkdir_p='mkdir -p "$as_dir"'
506736a7e2cSmrgelse
507736a7e2cSmrg  test -d ./-p && rmdir ./-p
508736a7e2cSmrg  as_mkdir_p=false
509c37a63b8Smrgfi
510c37a63b8Smrg
511736a7e2cSmrgif test -x / >/dev/null 2>&1; then
512736a7e2cSmrg  as_test_x='test -x'
513c37a63b8Smrgelse
514736a7e2cSmrg  if ls -dL / >/dev/null 2>&1; then
515736a7e2cSmrg    as_ls_L_option=L
516736a7e2cSmrg  else
517736a7e2cSmrg    as_ls_L_option=
518736a7e2cSmrg  fi
519736a7e2cSmrg  as_test_x='
520736a7e2cSmrg    eval sh -c '\''
521736a7e2cSmrg      if test -d "$1"; then
522736a7e2cSmrg	test -d "$1/.";
523736a7e2cSmrg      else
524736a7e2cSmrg	case $1 in #(
525736a7e2cSmrg	-*)set "./$1";;
526736a7e2cSmrg	esac;
527736a7e2cSmrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528736a7e2cSmrg	???[sx]*):;;*)false;;esac;fi
529736a7e2cSmrg    '\'' sh
530736a7e2cSmrg  '
531c37a63b8Smrgfi
532736a7e2cSmrgas_executable_p=$as_test_x
533c37a63b8Smrg
534736a7e2cSmrg# Sed expression to map a string onto a valid CPP name.
535736a7e2cSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536c37a63b8Smrg
537736a7e2cSmrg# Sed expression to map a string onto a valid variable name.
538736a7e2cSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539c37a63b8Smrg
540c37a63b8Smrg
541736a7e2cSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null
542736a7e2cSmrgexec 6>&1
543264fa531Smrg
544264fa531Smrg# Name of the host.
545736a7e2cSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546264fa531Smrg# so uname gets run too.
547264fa531Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548264fa531Smrg
549264fa531Smrg#
550264fa531Smrg# Initializations.
551264fa531Smrg#
552264fa531Smrgac_default_prefix=/usr/local
553c37a63b8Smrgac_clean_files=
554264fa531Smrgac_config_libobj_dir=.
555c37a63b8SmrgLIBOBJS=
556264fa531Smrgcross_compiling=no
557264fa531Smrgsubdirs=
558264fa531SmrgMFLAGS=
559264fa531SmrgMAKEFLAGS=
560264fa531Smrg
561264fa531Smrg# Identity of this package.
562264fa531SmrgPACKAGE_NAME='x11perf'
563264fa531SmrgPACKAGE_TARNAME='x11perf'
564e4ee1255SmrgPACKAGE_VERSION='1.5.4'
565e4ee1255SmrgPACKAGE_STRING='x11perf 1.5.4'
566264fa531SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567736a7e2cSmrgPACKAGE_URL=''
568264fa531Smrg
569736a7e2cSmrgac_unique_file="Makefile.am"
570c37a63b8Smrg# Factoring default headers for most tests.
571c37a63b8Smrgac_includes_default="\
572c37a63b8Smrg#include <stdio.h>
573c37a63b8Smrg#ifdef HAVE_SYS_TYPES_H
574c37a63b8Smrg# include <sys/types.h>
575c37a63b8Smrg#endif
576c37a63b8Smrg#ifdef HAVE_SYS_STAT_H
577c37a63b8Smrg# include <sys/stat.h>
578c37a63b8Smrg#endif
579c37a63b8Smrg#ifdef STDC_HEADERS
580c37a63b8Smrg# include <stdlib.h>
581c37a63b8Smrg# include <stddef.h>
582c37a63b8Smrg#else
583c37a63b8Smrg# ifdef HAVE_STDLIB_H
584c37a63b8Smrg#  include <stdlib.h>
585c37a63b8Smrg# endif
586c37a63b8Smrg#endif
587c37a63b8Smrg#ifdef HAVE_STRING_H
588c37a63b8Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589c37a63b8Smrg#  include <memory.h>
590c37a63b8Smrg# endif
591c37a63b8Smrg# include <string.h>
592c37a63b8Smrg#endif
593c37a63b8Smrg#ifdef HAVE_STRINGS_H
594c37a63b8Smrg# include <strings.h>
595c37a63b8Smrg#endif
596c37a63b8Smrg#ifdef HAVE_INTTYPES_H
597c37a63b8Smrg# include <inttypes.h>
598c37a63b8Smrg#endif
599c37a63b8Smrg#ifdef HAVE_STDINT_H
600c37a63b8Smrg# include <stdint.h>
601c37a63b8Smrg#endif
602c37a63b8Smrg#ifdef HAVE_UNISTD_H
603c37a63b8Smrg# include <unistd.h>
604c37a63b8Smrg#endif"
605c37a63b8Smrg
606c37a63b8Smrgac_subst_vars='am__EXEEXT_FALSE
607c37a63b8Smrgam__EXEEXT_TRUE
608c37a63b8SmrgLTLIBOBJS
609c37a63b8SmrgLIBOBJS
610c37a63b8SmrgXEXT_LIBS
611c37a63b8SmrgXEXT_CFLAGS
612c37a63b8SmrgXFT_LIBS
613c37a63b8SmrgXFT_CFLAGS
614c37a63b8SmrgXRENDER_LIBS
615c37a63b8SmrgXRENDER_CFLAGS
616c37a63b8SmrgX11PERF_LIBS
617c37a63b8SmrgX11PERF_CFLAGS
618e4ee1255SmrgMKTEMP
619e4ee1255Smrgx11perfcompdir
620736a7e2cSmrgAM_BACKSLASH
621736a7e2cSmrgAM_DEFAULT_VERBOSITY
622736a7e2cSmrgMAN_SUBSTS
623736a7e2cSmrgXORG_MAN_PAGE
624c37a63b8SmrgADMIN_MAN_DIR
625c37a63b8SmrgDRIVER_MAN_DIR
626c37a63b8SmrgMISC_MAN_DIR
627c37a63b8SmrgFILE_MAN_DIR
628c37a63b8SmrgLIB_MAN_DIR
629c37a63b8SmrgAPP_MAN_DIR
630c37a63b8SmrgADMIN_MAN_SUFFIX
631c37a63b8SmrgDRIVER_MAN_SUFFIX
632c37a63b8SmrgMISC_MAN_SUFFIX
633c37a63b8SmrgFILE_MAN_SUFFIX
634c37a63b8SmrgLIB_MAN_SUFFIX
635c37a63b8SmrgAPP_MAN_SUFFIX
636736a7e2cSmrgSED
637c37a63b8Smrghost_os
638c37a63b8Smrghost_vendor
639c37a63b8Smrghost_cpu
640c37a63b8Smrghost
641c37a63b8Smrgbuild_os
642c37a63b8Smrgbuild_vendor
643c37a63b8Smrgbuild_cpu
644c37a63b8Smrgbuild
645736a7e2cSmrgINSTALL_CMD
646736a7e2cSmrgPKG_CONFIG
647c37a63b8SmrgCHANGELOG_CMD
648e4ee1255SmrgSTRICT_CFLAGS
649c37a63b8SmrgCWARNFLAGS
650c37a63b8SmrgEGREP
651c37a63b8SmrgGREP
652c37a63b8SmrgCPP
653c37a63b8Smrgam__fastdepCC_FALSE
654c37a63b8Smrgam__fastdepCC_TRUE
655c37a63b8SmrgCCDEPMODE
656c37a63b8SmrgAMDEPBACKSLASH
657c37a63b8SmrgAMDEP_FALSE
658c37a63b8SmrgAMDEP_TRUE
659c37a63b8Smrgam__quote
660c37a63b8Smrgam__include
661c37a63b8SmrgDEPDIR
662c37a63b8SmrgOBJEXT
663c37a63b8SmrgEXEEXT
664c37a63b8Smrgac_ct_CC
665c37a63b8SmrgCPPFLAGS
666c37a63b8SmrgLDFLAGS
667c37a63b8SmrgCFLAGS
668c37a63b8SmrgCC
669c37a63b8SmrgMAINT
670c37a63b8SmrgMAINTAINER_MODE_FALSE
671c37a63b8SmrgMAINTAINER_MODE_TRUE
672c37a63b8Smrgam__untar
673c37a63b8Smrgam__tar
674c37a63b8SmrgAMTAR
675c37a63b8Smrgam__leading_dot
676c37a63b8SmrgSET_MAKE
677c37a63b8SmrgAWK
678c37a63b8Smrgmkdir_p
679c37a63b8SmrgMKDIR_P
680c37a63b8SmrgINSTALL_STRIP_PROGRAM
681c37a63b8SmrgSTRIP
682c37a63b8Smrginstall_sh
683c37a63b8SmrgMAKEINFO
684c37a63b8SmrgAUTOHEADER
685c37a63b8SmrgAUTOMAKE
686c37a63b8SmrgAUTOCONF
687c37a63b8SmrgACLOCAL
688c37a63b8SmrgVERSION
689c37a63b8SmrgPACKAGE
690c37a63b8SmrgCYGPATH_W
691c37a63b8Smrgam__isrc
692c37a63b8SmrgINSTALL_DATA
693c37a63b8SmrgINSTALL_SCRIPT
694c37a63b8SmrgINSTALL_PROGRAM
695c37a63b8Smrgtarget_alias
696c37a63b8Smrghost_alias
697c37a63b8Smrgbuild_alias
698c37a63b8SmrgLIBS
699c37a63b8SmrgECHO_T
700c37a63b8SmrgECHO_N
701c37a63b8SmrgECHO_C
702c37a63b8SmrgDEFS
703c37a63b8Smrgmandir
704c37a63b8Smrglocaledir
705c37a63b8Smrglibdir
706c37a63b8Smrgpsdir
707c37a63b8Smrgpdfdir
708c37a63b8Smrgdvidir
709c37a63b8Smrghtmldir
710c37a63b8Smrginfodir
711c37a63b8Smrgdocdir
712c37a63b8Smrgoldincludedir
713c37a63b8Smrgincludedir
714c37a63b8Smrglocalstatedir
715c37a63b8Smrgsharedstatedir
716c37a63b8Smrgsysconfdir
717c37a63b8Smrgdatadir
718c37a63b8Smrgdatarootdir
719c37a63b8Smrglibexecdir
720c37a63b8Smrgsbindir
721c37a63b8Smrgbindir
722c37a63b8Smrgprogram_transform_name
723c37a63b8Smrgprefix
724c37a63b8Smrgexec_prefix
725736a7e2cSmrgPACKAGE_URL
726c37a63b8SmrgPACKAGE_BUGREPORT
727c37a63b8SmrgPACKAGE_STRING
728c37a63b8SmrgPACKAGE_VERSION
729c37a63b8SmrgPACKAGE_TARNAME
730c37a63b8SmrgPACKAGE_NAME
731c37a63b8SmrgPATH_SEPARATOR
732c37a63b8SmrgSHELL'
733264fa531Smrgac_subst_files=''
734c37a63b8Smrgac_user_opts='
735c37a63b8Smrgenable_option_checking
736c37a63b8Smrgenable_maintainer_mode
737c37a63b8Smrgenable_dependency_tracking
738c37a63b8Smrgenable_strict_compilation
739736a7e2cSmrgenable_silent_rules
740c37a63b8Smrg'
741c37a63b8Smrg      ac_precious_vars='build_alias
742c37a63b8Smrghost_alias
743c37a63b8Smrgtarget_alias
744c37a63b8SmrgCC
745c37a63b8SmrgCFLAGS
746c37a63b8SmrgLDFLAGS
747c37a63b8SmrgLIBS
748c37a63b8SmrgCPPFLAGS
749c37a63b8SmrgCPP
750c37a63b8SmrgPKG_CONFIG
751c37a63b8SmrgX11PERF_CFLAGS
752c37a63b8SmrgX11PERF_LIBS
753c37a63b8SmrgXRENDER_CFLAGS
754c37a63b8SmrgXRENDER_LIBS
755c37a63b8SmrgXFT_CFLAGS
756c37a63b8SmrgXFT_LIBS
757c37a63b8SmrgXEXT_CFLAGS
758c37a63b8SmrgXEXT_LIBS'
759c37a63b8Smrg
760264fa531Smrg
761264fa531Smrg# Initialize some variables set by options.
762264fa531Smrgac_init_help=
763264fa531Smrgac_init_version=false
764c37a63b8Smrgac_unrecognized_opts=
765c37a63b8Smrgac_unrecognized_sep=
766264fa531Smrg# The variables have the same names as the options, with
767264fa531Smrg# dashes changed to underlines.
768264fa531Smrgcache_file=/dev/null
769264fa531Smrgexec_prefix=NONE
770264fa531Smrgno_create=
771264fa531Smrgno_recursion=
772264fa531Smrgprefix=NONE
773264fa531Smrgprogram_prefix=NONE
774264fa531Smrgprogram_suffix=NONE
775264fa531Smrgprogram_transform_name=s,x,x,
776264fa531Smrgsilent=
777264fa531Smrgsite=
778264fa531Smrgsrcdir=
779264fa531Smrgverbose=
780264fa531Smrgx_includes=NONE
781264fa531Smrgx_libraries=NONE
782264fa531Smrg
783264fa531Smrg# Installation directory options.
784264fa531Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
785264fa531Smrg# and all the variables that are supposed to be based on exec_prefix
786264fa531Smrg# by default will actually change.
787264fa531Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
788c37a63b8Smrg# (The list follows the same order as the GNU Coding Standards.)
789264fa531Smrgbindir='${exec_prefix}/bin'
790264fa531Smrgsbindir='${exec_prefix}/sbin'
791264fa531Smrglibexecdir='${exec_prefix}/libexec'
792c37a63b8Smrgdatarootdir='${prefix}/share'
793c37a63b8Smrgdatadir='${datarootdir}'
794264fa531Smrgsysconfdir='${prefix}/etc'
795264fa531Smrgsharedstatedir='${prefix}/com'
796264fa531Smrglocalstatedir='${prefix}/var'
797264fa531Smrgincludedir='${prefix}/include'
798264fa531Smrgoldincludedir='/usr/include'
799c37a63b8Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
800c37a63b8Smrginfodir='${datarootdir}/info'
801c37a63b8Smrghtmldir='${docdir}'
802c37a63b8Smrgdvidir='${docdir}'
803c37a63b8Smrgpdfdir='${docdir}'
804c37a63b8Smrgpsdir='${docdir}'
805c37a63b8Smrglibdir='${exec_prefix}/lib'
806c37a63b8Smrglocaledir='${datarootdir}/locale'
807c37a63b8Smrgmandir='${datarootdir}/man'
808264fa531Smrg
809264fa531Smrgac_prev=
810c37a63b8Smrgac_dashdash=
811264fa531Smrgfor ac_option
812264fa531Smrgdo
813264fa531Smrg  # If the previous option needs an argument, assign it.
814264fa531Smrg  if test -n "$ac_prev"; then
815c37a63b8Smrg    eval $ac_prev=\$ac_option
816264fa531Smrg    ac_prev=
817264fa531Smrg    continue
818264fa531Smrg  fi
819264fa531Smrg
820c37a63b8Smrg  case $ac_option in
821736a7e2cSmrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
822736a7e2cSmrg  *=)   ac_optarg= ;;
823736a7e2cSmrg  *)    ac_optarg=yes ;;
824c37a63b8Smrg  esac
825264fa531Smrg
826264fa531Smrg  # Accept the important Cygnus configure options, so we can diagnose typos.
827264fa531Smrg
828c37a63b8Smrg  case $ac_dashdash$ac_option in
829c37a63b8Smrg  --)
830c37a63b8Smrg    ac_dashdash=yes ;;
831264fa531Smrg
832264fa531Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
833264fa531Smrg    ac_prev=bindir ;;
834264fa531Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
835264fa531Smrg    bindir=$ac_optarg ;;
836264fa531Smrg
837264fa531Smrg  -build | --build | --buil | --bui | --bu)
838264fa531Smrg    ac_prev=build_alias ;;
839264fa531Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
840264fa531Smrg    build_alias=$ac_optarg ;;
841264fa531Smrg
842264fa531Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
843264fa531Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
844264fa531Smrg    ac_prev=cache_file ;;
845264fa531Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
846264fa531Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
847264fa531Smrg    cache_file=$ac_optarg ;;
848264fa531Smrg
849264fa531Smrg  --config-cache | -C)
850264fa531Smrg    cache_file=config.cache ;;
851264fa531Smrg
852c37a63b8Smrg  -datadir | --datadir | --datadi | --datad)
853264fa531Smrg    ac_prev=datadir ;;
854c37a63b8Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
855264fa531Smrg    datadir=$ac_optarg ;;
856264fa531Smrg
857c37a63b8Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
858c37a63b8Smrg  | --dataroo | --dataro | --datar)
859c37a63b8Smrg    ac_prev=datarootdir ;;
860c37a63b8Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
861c37a63b8Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
862c37a63b8Smrg    datarootdir=$ac_optarg ;;
863c37a63b8Smrg
864264fa531Smrg  -disable-* | --disable-*)
865c37a63b8Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
866264fa531Smrg    # Reject names that are not valid shell variable names.
867c37a63b8Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
868736a7e2cSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
869c37a63b8Smrg    ac_useropt_orig=$ac_useropt
870c37a63b8Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
871c37a63b8Smrg    case $ac_user_opts in
872c37a63b8Smrg      *"
873c37a63b8Smrg"enable_$ac_useropt"
874c37a63b8Smrg"*) ;;
875c37a63b8Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
876c37a63b8Smrg	 ac_unrecognized_sep=', ';;
877c37a63b8Smrg    esac
878c37a63b8Smrg    eval enable_$ac_useropt=no ;;
879c37a63b8Smrg
880c37a63b8Smrg  -docdir | --docdir | --docdi | --doc | --do)
881c37a63b8Smrg    ac_prev=docdir ;;
882c37a63b8Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
883c37a63b8Smrg    docdir=$ac_optarg ;;
884c37a63b8Smrg
885c37a63b8Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
886c37a63b8Smrg    ac_prev=dvidir ;;
887c37a63b8Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
888c37a63b8Smrg    dvidir=$ac_optarg ;;
889264fa531Smrg
890264fa531Smrg  -enable-* | --enable-*)
891c37a63b8Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
892264fa531Smrg    # Reject names that are not valid shell variable names.
893c37a63b8Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894736a7e2cSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
895c37a63b8Smrg    ac_useropt_orig=$ac_useropt
896c37a63b8Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897c37a63b8Smrg    case $ac_user_opts in
898c37a63b8Smrg      *"
899c37a63b8Smrg"enable_$ac_useropt"
900c37a63b8Smrg"*) ;;
901c37a63b8Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
902c37a63b8Smrg	 ac_unrecognized_sep=', ';;
903264fa531Smrg    esac
904c37a63b8Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
905264fa531Smrg
906264fa531Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
907264fa531Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
908264fa531Smrg  | --exec | --exe | --ex)
909264fa531Smrg    ac_prev=exec_prefix ;;
910264fa531Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
911264fa531Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
912264fa531Smrg  | --exec=* | --exe=* | --ex=*)
913264fa531Smrg    exec_prefix=$ac_optarg ;;
914264fa531Smrg
915264fa531Smrg  -gas | --gas | --ga | --g)
916264fa531Smrg    # Obsolete; use --with-gas.
917264fa531Smrg    with_gas=yes ;;
918264fa531Smrg
919264fa531Smrg  -help | --help | --hel | --he | -h)
920264fa531Smrg    ac_init_help=long ;;
921264fa531Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
922264fa531Smrg    ac_init_help=recursive ;;
923264fa531Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
924264fa531Smrg    ac_init_help=short ;;
925264fa531Smrg
926264fa531Smrg  -host | --host | --hos | --ho)
927264fa531Smrg    ac_prev=host_alias ;;
928264fa531Smrg  -host=* | --host=* | --hos=* | --ho=*)
929264fa531Smrg    host_alias=$ac_optarg ;;
930264fa531Smrg
931c37a63b8Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
932c37a63b8Smrg    ac_prev=htmldir ;;
933c37a63b8Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
934c37a63b8Smrg  | --ht=*)
935c37a63b8Smrg    htmldir=$ac_optarg ;;
936c37a63b8Smrg
937264fa531Smrg  -includedir | --includedir | --includedi | --included | --include \
938264fa531Smrg  | --includ | --inclu | --incl | --inc)
939264fa531Smrg    ac_prev=includedir ;;
940264fa531Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
941264fa531Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
942264fa531Smrg    includedir=$ac_optarg ;;
943264fa531Smrg
944264fa531Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
945264fa531Smrg    ac_prev=infodir ;;
946264fa531Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
947264fa531Smrg    infodir=$ac_optarg ;;
948264fa531Smrg
949264fa531Smrg  -libdir | --libdir | --libdi | --libd)
950264fa531Smrg    ac_prev=libdir ;;
951264fa531Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
952264fa531Smrg    libdir=$ac_optarg ;;
953264fa531Smrg
954264fa531Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
955264fa531Smrg  | --libexe | --libex | --libe)
956264fa531Smrg    ac_prev=libexecdir ;;
957264fa531Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
958264fa531Smrg  | --libexe=* | --libex=* | --libe=*)
959264fa531Smrg    libexecdir=$ac_optarg ;;
960264fa531Smrg
961c37a63b8Smrg  -localedir | --localedir | --localedi | --localed | --locale)
962c37a63b8Smrg    ac_prev=localedir ;;
963c37a63b8Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
964c37a63b8Smrg    localedir=$ac_optarg ;;
965c37a63b8Smrg
966264fa531Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
967c37a63b8Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
968264fa531Smrg    ac_prev=localstatedir ;;
969264fa531Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
970c37a63b8Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
971264fa531Smrg    localstatedir=$ac_optarg ;;
972264fa531Smrg
973264fa531Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
974264fa531Smrg    ac_prev=mandir ;;
975264fa531Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
976264fa531Smrg    mandir=$ac_optarg ;;
977264fa531Smrg
978264fa531Smrg  -nfp | --nfp | --nf)
979264fa531Smrg    # Obsolete; use --without-fp.
980264fa531Smrg    with_fp=no ;;
981264fa531Smrg
982264fa531Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
983264fa531Smrg  | --no-cr | --no-c | -n)
984264fa531Smrg    no_create=yes ;;
985264fa531Smrg
986264fa531Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
987264fa531Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
988264fa531Smrg    no_recursion=yes ;;
989264fa531Smrg
990264fa531Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
991264fa531Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
992264fa531Smrg  | --oldin | --oldi | --old | --ol | --o)
993264fa531Smrg    ac_prev=oldincludedir ;;
994264fa531Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
995264fa531Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
996264fa531Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
997264fa531Smrg    oldincludedir=$ac_optarg ;;
998264fa531Smrg
999264fa531Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1000264fa531Smrg    ac_prev=prefix ;;
1001264fa531Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1002264fa531Smrg    prefix=$ac_optarg ;;
1003264fa531Smrg
1004264fa531Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1005264fa531Smrg  | --program-pre | --program-pr | --program-p)
1006264fa531Smrg    ac_prev=program_prefix ;;
1007264fa531Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1008264fa531Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1009264fa531Smrg    program_prefix=$ac_optarg ;;
1010264fa531Smrg
1011264fa531Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1012264fa531Smrg  | --program-suf | --program-su | --program-s)
1013264fa531Smrg    ac_prev=program_suffix ;;
1014264fa531Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1015264fa531Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1016264fa531Smrg    program_suffix=$ac_optarg ;;
1017264fa531Smrg
1018264fa531Smrg  -program-transform-name | --program-transform-name \
1019264fa531Smrg  | --program-transform-nam | --program-transform-na \
1020264fa531Smrg  | --program-transform-n | --program-transform- \
1021264fa531Smrg  | --program-transform | --program-transfor \
1022264fa531Smrg  | --program-transfo | --program-transf \
1023264fa531Smrg  | --program-trans | --program-tran \
1024264fa531Smrg  | --progr-tra | --program-tr | --program-t)
1025264fa531Smrg    ac_prev=program_transform_name ;;
1026264fa531Smrg  -program-transform-name=* | --program-transform-name=* \
1027264fa531Smrg  | --program-transform-nam=* | --program-transform-na=* \
1028264fa531Smrg  | --program-transform-n=* | --program-transform-=* \
1029264fa531Smrg  | --program-transform=* | --program-transfor=* \
1030264fa531Smrg  | --program-transfo=* | --program-transf=* \
1031264fa531Smrg  | --program-trans=* | --program-tran=* \
1032264fa531Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
1033264fa531Smrg    program_transform_name=$ac_optarg ;;
1034264fa531Smrg
1035c37a63b8Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1036c37a63b8Smrg    ac_prev=pdfdir ;;
1037c37a63b8Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1038c37a63b8Smrg    pdfdir=$ac_optarg ;;
1039c37a63b8Smrg
1040c37a63b8Smrg  -psdir | --psdir | --psdi | --psd | --ps)
1041c37a63b8Smrg    ac_prev=psdir ;;
1042c37a63b8Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1043c37a63b8Smrg    psdir=$ac_optarg ;;
1044c37a63b8Smrg
1045264fa531Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1046264fa531Smrg  | -silent | --silent | --silen | --sile | --sil)
1047264fa531Smrg    silent=yes ;;
1048264fa531Smrg
1049264fa531Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1050264fa531Smrg    ac_prev=sbindir ;;
1051264fa531Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1052264fa531Smrg  | --sbi=* | --sb=*)
1053264fa531Smrg    sbindir=$ac_optarg ;;
1054264fa531Smrg
1055264fa531Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1056264fa531Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1057264fa531Smrg  | --sharedst | --shareds | --shared | --share | --shar \
1058264fa531Smrg  | --sha | --sh)
1059264fa531Smrg    ac_prev=sharedstatedir ;;
1060264fa531Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1061264fa531Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1062264fa531Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1063264fa531Smrg  | --sha=* | --sh=*)
1064264fa531Smrg    sharedstatedir=$ac_optarg ;;
1065264fa531Smrg
1066264fa531Smrg  -site | --site | --sit)
1067264fa531Smrg    ac_prev=site ;;
1068264fa531Smrg  -site=* | --site=* | --sit=*)
1069264fa531Smrg    site=$ac_optarg ;;
1070264fa531Smrg
1071264fa531Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1072264fa531Smrg    ac_prev=srcdir ;;
1073264fa531Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1074264fa531Smrg    srcdir=$ac_optarg ;;
1075264fa531Smrg
1076264fa531Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1077264fa531Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
1078264fa531Smrg    ac_prev=sysconfdir ;;
1079264fa531Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1080264fa531Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1081264fa531Smrg    sysconfdir=$ac_optarg ;;
1082264fa531Smrg
1083264fa531Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
1084264fa531Smrg    ac_prev=target_alias ;;
1085264fa531Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1086264fa531Smrg    target_alias=$ac_optarg ;;
1087264fa531Smrg
1088264fa531Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1089264fa531Smrg    verbose=yes ;;
1090264fa531Smrg
1091264fa531Smrg  -version | --version | --versio | --versi | --vers | -V)
1092264fa531Smrg    ac_init_version=: ;;
1093264fa531Smrg
1094264fa531Smrg  -with-* | --with-*)
1095c37a63b8Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1096264fa531Smrg    # Reject names that are not valid shell variable names.
1097c37a63b8Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098736a7e2cSmrg      as_fn_error $? "invalid package name: $ac_useropt"
1099c37a63b8Smrg    ac_useropt_orig=$ac_useropt
1100c37a63b8Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101c37a63b8Smrg    case $ac_user_opts in
1102c37a63b8Smrg      *"
1103c37a63b8Smrg"with_$ac_useropt"
1104c37a63b8Smrg"*) ;;
1105c37a63b8Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1106c37a63b8Smrg	 ac_unrecognized_sep=', ';;
1107264fa531Smrg    esac
1108c37a63b8Smrg    eval with_$ac_useropt=\$ac_optarg ;;
1109264fa531Smrg
1110264fa531Smrg  -without-* | --without-*)
1111c37a63b8Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1112264fa531Smrg    # Reject names that are not valid shell variable names.
1113c37a63b8Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114736a7e2cSmrg      as_fn_error $? "invalid package name: $ac_useropt"
1115c37a63b8Smrg    ac_useropt_orig=$ac_useropt
1116c37a63b8Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117c37a63b8Smrg    case $ac_user_opts in
1118c37a63b8Smrg      *"
1119c37a63b8Smrg"with_$ac_useropt"
1120c37a63b8Smrg"*) ;;
1121c37a63b8Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1122c37a63b8Smrg	 ac_unrecognized_sep=', ';;
1123c37a63b8Smrg    esac
1124c37a63b8Smrg    eval with_$ac_useropt=no ;;
1125264fa531Smrg
1126264fa531Smrg  --x)
1127264fa531Smrg    # Obsolete; use --with-x.
1128264fa531Smrg    with_x=yes ;;
1129264fa531Smrg
1130264fa531Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1131264fa531Smrg  | --x-incl | --x-inc | --x-in | --x-i)
1132264fa531Smrg    ac_prev=x_includes ;;
1133264fa531Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1134264fa531Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1135264fa531Smrg    x_includes=$ac_optarg ;;
1136264fa531Smrg
1137264fa531Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1138264fa531Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1139264fa531Smrg    ac_prev=x_libraries ;;
1140264fa531Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1141264fa531Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1142264fa531Smrg    x_libraries=$ac_optarg ;;
1143264fa531Smrg
1144736a7e2cSmrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1145736a7e2cSmrgTry \`$0 --help' for more information"
1146264fa531Smrg    ;;
1147264fa531Smrg
1148264fa531Smrg  *=*)
1149264fa531Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1150264fa531Smrg    # Reject names that are not valid shell variable names.
1151736a7e2cSmrg    case $ac_envvar in #(
1152736a7e2cSmrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
1153736a7e2cSmrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1154736a7e2cSmrg    esac
1155c37a63b8Smrg    eval $ac_envvar=\$ac_optarg
1156264fa531Smrg    export $ac_envvar ;;
1157264fa531Smrg
1158264fa531Smrg  *)
1159264fa531Smrg    # FIXME: should be removed in autoconf 3.0.
1160c37a63b8Smrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1161264fa531Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1162c37a63b8Smrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1163736a7e2cSmrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1164264fa531Smrg    ;;
1165264fa531Smrg
1166264fa531Smrg  esac
1167264fa531Smrgdone
1168264fa531Smrg
1169264fa531Smrgif test -n "$ac_prev"; then
1170264fa531Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1171736a7e2cSmrg  as_fn_error $? "missing argument to $ac_option"
1172264fa531Smrgfi
1173264fa531Smrg
1174c37a63b8Smrgif test -n "$ac_unrecognized_opts"; then
1175c37a63b8Smrg  case $enable_option_checking in
1176c37a63b8Smrg    no) ;;
1177736a7e2cSmrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1178c37a63b8Smrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1179264fa531Smrg  esac
1180c37a63b8Smrgfi
1181264fa531Smrg
1182c37a63b8Smrg# Check all directory arguments for consistency.
1183c37a63b8Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1184c37a63b8Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1185c37a63b8Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1186c37a63b8Smrg		libdir localedir mandir
1187264fa531Smrgdo
1188c37a63b8Smrg  eval ac_val=\$$ac_var
1189c37a63b8Smrg  # Remove trailing slashes.
1190264fa531Smrg  case $ac_val in
1191c37a63b8Smrg    */ )
1192c37a63b8Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1193c37a63b8Smrg      eval $ac_var=\$ac_val;;
1194264fa531Smrg  esac
1195c37a63b8Smrg  # Be sure to have absolute directory names.
1196c37a63b8Smrg  case $ac_val in
1197c37a63b8Smrg    [\\/$]* | ?:[\\/]* )  continue;;
1198c37a63b8Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1199c37a63b8Smrg  esac
1200736a7e2cSmrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1201264fa531Smrgdone
1202264fa531Smrg
1203264fa531Smrg# There might be people who depend on the old broken behavior: `$host'
1204264fa531Smrg# used to hold the argument of --host etc.
1205264fa531Smrg# FIXME: To remove some day.
1206264fa531Smrgbuild=$build_alias
1207264fa531Smrghost=$host_alias
1208264fa531Smrgtarget=$target_alias
1209264fa531Smrg
1210264fa531Smrg# FIXME: To remove some day.
1211264fa531Smrgif test "x$host_alias" != x; then
1212264fa531Smrg  if test "x$build_alias" = x; then
1213264fa531Smrg    cross_compiling=maybe
1214736a7e2cSmrg    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1215736a7e2cSmrg    If a cross compiler is detected then cross compile mode will be used" >&2
1216264fa531Smrg  elif test "x$build_alias" != "x$host_alias"; then
1217264fa531Smrg    cross_compiling=yes
1218264fa531Smrg  fi
1219264fa531Smrgfi
1220264fa531Smrg
1221264fa531Smrgac_tool_prefix=
1222264fa531Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
1223264fa531Smrg
1224264fa531Smrgtest "$silent" = yes && exec 6>/dev/null
1225264fa531Smrg
1226264fa531Smrg
1227c37a63b8Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1228c37a63b8Smrgac_ls_di=`ls -di .` &&
1229c37a63b8Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1230736a7e2cSmrg  as_fn_error $? "working directory cannot be determined"
1231c37a63b8Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1232736a7e2cSmrg  as_fn_error $? "pwd does not report name of working directory"
1233c37a63b8Smrg
1234c37a63b8Smrg
1235c37a63b8Smrg# Find the source files, if location was not specified.
1236264fa531Smrgif test -z "$srcdir"; then
1237264fa531Smrg  ac_srcdir_defaulted=yes
1238c37a63b8Smrg  # Try the directory containing this script, then the parent directory.
1239c37a63b8Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
1240c37a63b8Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1241c37a63b8Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
1242c37a63b8Smrg	 X"$as_myself" : 'X\(//\)$' \| \
1243c37a63b8Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1244c37a63b8Smrg$as_echo X"$as_myself" |
1245c37a63b8Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1246c37a63b8Smrg	    s//\1/
1247c37a63b8Smrg	    q
1248c37a63b8Smrg	  }
1249c37a63b8Smrg	  /^X\(\/\/\)[^/].*/{
1250c37a63b8Smrg	    s//\1/
1251c37a63b8Smrg	    q
1252c37a63b8Smrg	  }
1253c37a63b8Smrg	  /^X\(\/\/\)$/{
1254c37a63b8Smrg	    s//\1/
1255c37a63b8Smrg	    q
1256c37a63b8Smrg	  }
1257c37a63b8Smrg	  /^X\(\/\).*/{
1258c37a63b8Smrg	    s//\1/
1259c37a63b8Smrg	    q
1260c37a63b8Smrg	  }
1261c37a63b8Smrg	  s/.*/./; q'`
1262264fa531Smrg  srcdir=$ac_confdir
1263c37a63b8Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
1264264fa531Smrg    srcdir=..
1265264fa531Smrg  fi
1266264fa531Smrgelse
1267264fa531Smrg  ac_srcdir_defaulted=no
1268264fa531Smrgfi
1269c37a63b8Smrgif test ! -r "$srcdir/$ac_unique_file"; then
1270c37a63b8Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1271736a7e2cSmrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1272264fa531Smrgfi
1273c37a63b8Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1274c37a63b8Smrgac_abs_confdir=`(
1275736a7e2cSmrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1276c37a63b8Smrg	pwd)`
1277c37a63b8Smrg# When building in place, set srcdir=.
1278c37a63b8Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1279c37a63b8Smrg  srcdir=.
1280c37a63b8Smrgfi
1281c37a63b8Smrg# Remove unnecessary trailing slashes from srcdir.
1282c37a63b8Smrg# Double slashes in file names in object file debugging info
1283c37a63b8Smrg# mess up M-x gdb in Emacs.
1284c37a63b8Smrgcase $srcdir in
1285c37a63b8Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1286c37a63b8Smrgesac
1287c37a63b8Smrgfor ac_var in $ac_precious_vars; do
1288c37a63b8Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1289c37a63b8Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
1290c37a63b8Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1291c37a63b8Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1292c37a63b8Smrgdone
1293264fa531Smrg
1294264fa531Smrg#
1295264fa531Smrg# Report the --help message.
1296264fa531Smrg#
1297264fa531Smrgif test "$ac_init_help" = "long"; then
1298264fa531Smrg  # Omit some internal or obsolete options to make the list less imposing.
1299264fa531Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
1300264fa531Smrg  cat <<_ACEOF
1301e4ee1255Smrg\`configure' configures x11perf 1.5.4 to adapt to many kinds of systems.
1302264fa531Smrg
1303264fa531SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
1304264fa531Smrg
1305264fa531SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1306264fa531SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
1307264fa531Smrg
1308264fa531SmrgDefaults for the options are specified in brackets.
1309264fa531Smrg
1310264fa531SmrgConfiguration:
1311264fa531Smrg  -h, --help              display this help and exit
1312264fa531Smrg      --help=short        display options specific to this package
1313264fa531Smrg      --help=recursive    display the short help of all the included packages
1314264fa531Smrg  -V, --version           display version information and exit
1315736a7e2cSmrg  -q, --quiet, --silent   do not print \`checking ...' messages
1316264fa531Smrg      --cache-file=FILE   cache test results in FILE [disabled]
1317264fa531Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
1318264fa531Smrg  -n, --no-create         do not create output files
1319264fa531Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1320264fa531Smrg
1321264fa531SmrgInstallation directories:
1322264fa531Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
1323c37a63b8Smrg                          [$ac_default_prefix]
1324264fa531Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1325c37a63b8Smrg                          [PREFIX]
1326264fa531Smrg
1327264fa531SmrgBy default, \`make install' will install all the files in
1328264fa531Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1329264fa531Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1330264fa531Smrgfor instance \`--prefix=\$HOME'.
1331264fa531Smrg
1332264fa531SmrgFor better control, use the options below.
1333264fa531Smrg
1334264fa531SmrgFine tuning of the installation directories:
1335c37a63b8Smrg  --bindir=DIR            user executables [EPREFIX/bin]
1336c37a63b8Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1337c37a63b8Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
1338c37a63b8Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1339c37a63b8Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1340c37a63b8Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1341c37a63b8Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
1342c37a63b8Smrg  --includedir=DIR        C header files [PREFIX/include]
1343c37a63b8Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1344c37a63b8Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1345c37a63b8Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1346c37a63b8Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
1347c37a63b8Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1348c37a63b8Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
1349c37a63b8Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/x11perf]
1350c37a63b8Smrg  --htmldir=DIR           html documentation [DOCDIR]
1351c37a63b8Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
1352c37a63b8Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
1353c37a63b8Smrg  --psdir=DIR             ps documentation [DOCDIR]
1354264fa531Smrg_ACEOF
1355264fa531Smrg
1356264fa531Smrg  cat <<\_ACEOF
1357264fa531Smrg
1358264fa531SmrgProgram names:
1359264fa531Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
1360264fa531Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
1361264fa531Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1362264fa531Smrg
1363264fa531SmrgSystem types:
1364264fa531Smrg  --build=BUILD     configure for building on BUILD [guessed]
1365264fa531Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1366264fa531Smrg_ACEOF
1367264fa531Smrgfi
1368264fa531Smrg
1369264fa531Smrgif test -n "$ac_init_help"; then
1370264fa531Smrg  case $ac_init_help in
1371e4ee1255Smrg     short | recursive ) echo "Configuration of x11perf 1.5.4:";;
1372264fa531Smrg   esac
1373264fa531Smrg  cat <<\_ACEOF
1374264fa531Smrg
1375264fa531SmrgOptional Features:
1376c37a63b8Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
1377264fa531Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1378264fa531Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1379c37a63b8Smrg  --enable-maintainer-mode  enable make rules and dependencies not useful
1380c37a63b8Smrg			  (and sometimes confusing) to the casual installer
1381c37a63b8Smrg  --disable-dependency-tracking  speeds up one-time build
1382c37a63b8Smrg  --enable-dependency-tracking   do not reject slow dependency extractors
1383c37a63b8Smrg  --enable-strict-compilation
1384c37a63b8Smrg                          Enable all warnings from compiler and make them
1385c37a63b8Smrg                          errors (default: disabled)
1386736a7e2cSmrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
1387736a7e2cSmrg  --disable-silent-rules         verbose build output (undo: `make V=0')
1388264fa531Smrg
1389264fa531SmrgSome influential environment variables:
1390264fa531Smrg  CC          C compiler command
1391264fa531Smrg  CFLAGS      C compiler flags
1392264fa531Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1393264fa531Smrg              nonstandard directory <lib dir>
1394c37a63b8Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
1395736a7e2cSmrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1396c37a63b8Smrg              you have headers in a nonstandard directory <include dir>
1397c37a63b8Smrg  CPP         C preprocessor
1398264fa531Smrg  PKG_CONFIG  path to pkg-config utility
1399264fa531Smrg  X11PERF_CFLAGS
1400264fa531Smrg              C compiler flags for X11PERF, overriding pkg-config
1401264fa531Smrg  X11PERF_LIBS
1402264fa531Smrg              linker flags for X11PERF, overriding pkg-config
1403264fa531Smrg  XRENDER_CFLAGS
1404264fa531Smrg              C compiler flags for XRENDER, overriding pkg-config
1405264fa531Smrg  XRENDER_LIBS
1406264fa531Smrg              linker flags for XRENDER, overriding pkg-config
1407264fa531Smrg  XFT_CFLAGS  C compiler flags for XFT, overriding pkg-config
1408264fa531Smrg  XFT_LIBS    linker flags for XFT, overriding pkg-config
1409264fa531Smrg  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1410264fa531Smrg  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1411264fa531Smrg
1412264fa531SmrgUse these variables to override the choices made by `configure' or to help
1413264fa531Smrgit to find libraries and programs with nonstandard names/locations.
1414264fa531Smrg
1415264fa531SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1416264fa531Smrg_ACEOF
1417c37a63b8Smrgac_status=$?
1418264fa531Smrgfi
1419264fa531Smrg
1420264fa531Smrgif test "$ac_init_help" = "recursive"; then
1421264fa531Smrg  # If there are subdirs, report their specific --help.
1422264fa531Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1423c37a63b8Smrg    test -d "$ac_dir" ||
1424c37a63b8Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1425c37a63b8Smrg      continue
1426264fa531Smrg    ac_builddir=.
1427264fa531Smrg
1428c37a63b8Smrgcase "$ac_dir" in
1429c37a63b8Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430c37a63b8Smrg*)
1431c37a63b8Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1432c37a63b8Smrg  # A ".." for each directory in $ac_dir_suffix.
1433c37a63b8Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1434c37a63b8Smrg  case $ac_top_builddir_sub in
1435c37a63b8Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436c37a63b8Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1437c37a63b8Smrg  esac ;;
1438c37a63b8Smrgesac
1439c37a63b8Smrgac_abs_top_builddir=$ac_pwd
1440c37a63b8Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1441c37a63b8Smrg# for backward compatibility:
1442c37a63b8Smrgac_top_builddir=$ac_top_build_prefix
1443264fa531Smrg
1444264fa531Smrgcase $srcdir in
1445c37a63b8Smrg  .)  # We are building in place.
1446264fa531Smrg    ac_srcdir=.
1447c37a63b8Smrg    ac_top_srcdir=$ac_top_builddir_sub
1448c37a63b8Smrg    ac_abs_top_srcdir=$ac_pwd ;;
1449c37a63b8Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1450264fa531Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
1451c37a63b8Smrg    ac_top_srcdir=$srcdir
1452c37a63b8Smrg    ac_abs_top_srcdir=$srcdir ;;
1453c37a63b8Smrg  *) # Relative name.
1454c37a63b8Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1455c37a63b8Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1456c37a63b8Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1457264fa531Smrgesac
1458c37a63b8Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1459c37a63b8Smrg
1460c37a63b8Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
1461c37a63b8Smrg    # Check for guested configure.
1462c37a63b8Smrg    if test -f "$ac_srcdir/configure.gnu"; then
1463c37a63b8Smrg      echo &&
1464c37a63b8Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1465c37a63b8Smrg    elif test -f "$ac_srcdir/configure"; then
1466c37a63b8Smrg      echo &&
1467c37a63b8Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
1468264fa531Smrg    else
1469c37a63b8Smrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1470c37a63b8Smrg    fi || ac_status=$?
1471c37a63b8Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
1472264fa531Smrg  done
1473264fa531Smrgfi
1474264fa531Smrg
1475c37a63b8Smrgtest -n "$ac_init_help" && exit $ac_status
1476264fa531Smrgif $ac_init_version; then
1477264fa531Smrg  cat <<\_ACEOF
1478e4ee1255Smrgx11perf configure 1.5.4
1479736a7e2cSmrggenerated by GNU Autoconf 2.68
1480264fa531Smrg
1481736a7e2cSmrgCopyright (C) 2010 Free Software Foundation, Inc.
1482264fa531SmrgThis configure script is free software; the Free Software Foundation
1483264fa531Smrggives unlimited permission to copy, distribute and modify it.
1484264fa531Smrg_ACEOF
1485c37a63b8Smrg  exit
1486264fa531Smrgfi
1487264fa531Smrg
1488736a7e2cSmrg## ------------------------ ##
1489736a7e2cSmrg## Autoconf initialization. ##
1490736a7e2cSmrg## ------------------------ ##
1491264fa531Smrg
1492736a7e2cSmrg# ac_fn_c_try_compile LINENO
1493736a7e2cSmrg# --------------------------
1494736a7e2cSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
1495736a7e2cSmrgac_fn_c_try_compile ()
1496264fa531Smrg{
1497736a7e2cSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498736a7e2cSmrg  rm -f conftest.$ac_objext
1499736a7e2cSmrg  if { { ac_try="$ac_compile"
1500736a7e2cSmrgcase "(($ac_try" in
1501736a7e2cSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1502736a7e2cSmrg  *) ac_try_echo=$ac_try;;
1503736a7e2cSmrgesac
1504736a7e2cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505736a7e2cSmrg$as_echo "$ac_try_echo"; } >&5
1506736a7e2cSmrg  (eval "$ac_compile") 2>conftest.err
1507736a7e2cSmrg  ac_status=$?
1508736a7e2cSmrg  if test -s conftest.err; then
1509736a7e2cSmrg    grep -v '^ *+' conftest.err >conftest.er1
1510736a7e2cSmrg    cat conftest.er1 >&5
1511736a7e2cSmrg    mv -f conftest.er1 conftest.err
1512736a7e2cSmrg  fi
1513736a7e2cSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514736a7e2cSmrg  test $ac_status = 0; } && {
1515736a7e2cSmrg	 test -z "$ac_c_werror_flag" ||
1516736a7e2cSmrg	 test ! -s conftest.err
1517736a7e2cSmrg       } && test -s conftest.$ac_objext; then :
1518736a7e2cSmrg  ac_retval=0
1519736a7e2cSmrgelse
1520736a7e2cSmrg  $as_echo "$as_me: failed program was:" >&5
1521736a7e2cSmrgsed 's/^/| /' conftest.$ac_ext >&5
1522264fa531Smrg
1523736a7e2cSmrg	ac_retval=1
1524736a7e2cSmrgfi
1525736a7e2cSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1526736a7e2cSmrg  as_fn_set_status $ac_retval
1527264fa531Smrg
1528736a7e2cSmrg} # ac_fn_c_try_compile
1529264fa531Smrg
1530736a7e2cSmrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1531736a7e2cSmrg# ---------------------------------------------
1532736a7e2cSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1533736a7e2cSmrg# accordingly.
1534736a7e2cSmrgac_fn_c_check_decl ()
1535736a7e2cSmrg{
1536736a7e2cSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537736a7e2cSmrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
1538736a7e2cSmrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1539736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1540736a7e2cSmrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1541736a7e2cSmrgif eval \${$3+:} false; then :
1542736a7e2cSmrg  $as_echo_n "(cached) " >&6
1543736a7e2cSmrgelse
1544736a7e2cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1545736a7e2cSmrg/* end confdefs.h.  */
1546736a7e2cSmrg$4
1547736a7e2cSmrgint
1548736a7e2cSmrgmain ()
1549736a7e2cSmrg{
1550736a7e2cSmrg#ifndef $as_decl_name
1551736a7e2cSmrg#ifdef __cplusplus
1552736a7e2cSmrg  (void) $as_decl_use;
1553736a7e2cSmrg#else
1554736a7e2cSmrg  (void) $as_decl_name;
1555736a7e2cSmrg#endif
1556736a7e2cSmrg#endif
1557736a7e2cSmrg
1558736a7e2cSmrg  ;
1559736a7e2cSmrg  return 0;
1560736a7e2cSmrg}
1561736a7e2cSmrg_ACEOF
1562736a7e2cSmrgif ac_fn_c_try_compile "$LINENO"; then :
1563736a7e2cSmrg  eval "$3=yes"
1564736a7e2cSmrgelse
1565736a7e2cSmrg  eval "$3=no"
1566736a7e2cSmrgfi
1567736a7e2cSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1568736a7e2cSmrgfi
1569736a7e2cSmrgeval ac_res=\$$3
1570736a7e2cSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1571736a7e2cSmrg$as_echo "$ac_res" >&6; }
1572736a7e2cSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573736a7e2cSmrg
1574736a7e2cSmrg} # ac_fn_c_check_decl
1575736a7e2cSmrg
1576736a7e2cSmrg# ac_fn_c_try_cpp LINENO
1577736a7e2cSmrg# ----------------------
1578736a7e2cSmrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1579736a7e2cSmrgac_fn_c_try_cpp ()
1580736a7e2cSmrg{
1581736a7e2cSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582736a7e2cSmrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
1583736a7e2cSmrgcase "(($ac_try" in
1584736a7e2cSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585736a7e2cSmrg  *) ac_try_echo=$ac_try;;
1586736a7e2cSmrgesac
1587736a7e2cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588736a7e2cSmrg$as_echo "$ac_try_echo"; } >&5
1589736a7e2cSmrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1590736a7e2cSmrg  ac_status=$?
1591736a7e2cSmrg  if test -s conftest.err; then
1592736a7e2cSmrg    grep -v '^ *+' conftest.err >conftest.er1
1593736a7e2cSmrg    cat conftest.er1 >&5
1594736a7e2cSmrg    mv -f conftest.er1 conftest.err
1595736a7e2cSmrg  fi
1596736a7e2cSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597736a7e2cSmrg  test $ac_status = 0; } > conftest.i && {
1598736a7e2cSmrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1599736a7e2cSmrg	 test ! -s conftest.err
1600736a7e2cSmrg       }; then :
1601736a7e2cSmrg  ac_retval=0
1602736a7e2cSmrgelse
1603736a7e2cSmrg  $as_echo "$as_me: failed program was:" >&5
1604736a7e2cSmrgsed 's/^/| /' conftest.$ac_ext >&5
1605736a7e2cSmrg
1606736a7e2cSmrg    ac_retval=1
1607736a7e2cSmrgfi
1608736a7e2cSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609736a7e2cSmrg  as_fn_set_status $ac_retval
1610736a7e2cSmrg
1611736a7e2cSmrg} # ac_fn_c_try_cpp
1612736a7e2cSmrg
1613736a7e2cSmrg# ac_fn_c_try_run LINENO
1614736a7e2cSmrg# ----------------------
1615736a7e2cSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1616736a7e2cSmrg# that executables *can* be run.
1617736a7e2cSmrgac_fn_c_try_run ()
1618736a7e2cSmrg{
1619736a7e2cSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620736a7e2cSmrg  if { { ac_try="$ac_link"
1621736a7e2cSmrgcase "(($ac_try" in
1622736a7e2cSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623736a7e2cSmrg  *) ac_try_echo=$ac_try;;
1624736a7e2cSmrgesac
1625736a7e2cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626736a7e2cSmrg$as_echo "$ac_try_echo"; } >&5
1627736a7e2cSmrg  (eval "$ac_link") 2>&5
1628736a7e2cSmrg  ac_status=$?
1629736a7e2cSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630736a7e2cSmrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1631736a7e2cSmrg  { { case "(($ac_try" in
1632736a7e2cSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633736a7e2cSmrg  *) ac_try_echo=$ac_try;;
1634736a7e2cSmrgesac
1635736a7e2cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636736a7e2cSmrg$as_echo "$ac_try_echo"; } >&5
1637736a7e2cSmrg  (eval "$ac_try") 2>&5
1638736a7e2cSmrg  ac_status=$?
1639736a7e2cSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640736a7e2cSmrg  test $ac_status = 0; }; }; then :
1641736a7e2cSmrg  ac_retval=0
1642736a7e2cSmrgelse
1643736a7e2cSmrg  $as_echo "$as_me: program exited with status $ac_status" >&5
1644736a7e2cSmrg       $as_echo "$as_me: failed program was:" >&5
1645736a7e2cSmrgsed 's/^/| /' conftest.$ac_ext >&5
1646736a7e2cSmrg
1647736a7e2cSmrg       ac_retval=$ac_status
1648736a7e2cSmrgfi
1649736a7e2cSmrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1650736a7e2cSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651736a7e2cSmrg  as_fn_set_status $ac_retval
1652736a7e2cSmrg
1653736a7e2cSmrg} # ac_fn_c_try_run
1654736a7e2cSmrg
1655736a7e2cSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1656736a7e2cSmrg# -------------------------------------------------------
1657736a7e2cSmrg# Tests whether HEADER exists and can be compiled using the include files in
1658736a7e2cSmrg# INCLUDES, setting the cache variable VAR accordingly.
1659736a7e2cSmrgac_fn_c_check_header_compile ()
1660736a7e2cSmrg{
1661736a7e2cSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663736a7e2cSmrg$as_echo_n "checking for $2... " >&6; }
1664736a7e2cSmrgif eval \${$3+:} false; then :
1665736a7e2cSmrg  $as_echo_n "(cached) " >&6
1666736a7e2cSmrgelse
1667736a7e2cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668736a7e2cSmrg/* end confdefs.h.  */
1669736a7e2cSmrg$4
1670736a7e2cSmrg#include <$2>
1671736a7e2cSmrg_ACEOF
1672736a7e2cSmrgif ac_fn_c_try_compile "$LINENO"; then :
1673736a7e2cSmrg  eval "$3=yes"
1674736a7e2cSmrgelse
1675736a7e2cSmrg  eval "$3=no"
1676736a7e2cSmrgfi
1677736a7e2cSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1678736a7e2cSmrgfi
1679736a7e2cSmrgeval ac_res=\$$3
1680736a7e2cSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681736a7e2cSmrg$as_echo "$ac_res" >&6; }
1682736a7e2cSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683736a7e2cSmrg
1684736a7e2cSmrg} # ac_fn_c_check_header_compile
1685736a7e2cSmrg
1686736a7e2cSmrg# ac_fn_c_try_link LINENO
1687736a7e2cSmrg# -----------------------
1688736a7e2cSmrg# Try to link conftest.$ac_ext, and return whether this succeeded.
1689736a7e2cSmrgac_fn_c_try_link ()
1690736a7e2cSmrg{
1691736a7e2cSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692736a7e2cSmrg  rm -f conftest.$ac_objext conftest$ac_exeext
1693736a7e2cSmrg  if { { ac_try="$ac_link"
1694736a7e2cSmrgcase "(($ac_try" in
1695736a7e2cSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696736a7e2cSmrg  *) ac_try_echo=$ac_try;;
1697736a7e2cSmrgesac
1698736a7e2cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699736a7e2cSmrg$as_echo "$ac_try_echo"; } >&5
1700736a7e2cSmrg  (eval "$ac_link") 2>conftest.err
1701736a7e2cSmrg  ac_status=$?
1702736a7e2cSmrg  if test -s conftest.err; then
1703736a7e2cSmrg    grep -v '^ *+' conftest.err >conftest.er1
1704736a7e2cSmrg    cat conftest.er1 >&5
1705736a7e2cSmrg    mv -f conftest.er1 conftest.err
1706736a7e2cSmrg  fi
1707736a7e2cSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708736a7e2cSmrg  test $ac_status = 0; } && {
1709736a7e2cSmrg	 test -z "$ac_c_werror_flag" ||
1710736a7e2cSmrg	 test ! -s conftest.err
1711736a7e2cSmrg       } && test -s conftest$ac_exeext && {
1712736a7e2cSmrg	 test "$cross_compiling" = yes ||
1713736a7e2cSmrg	 $as_test_x conftest$ac_exeext
1714736a7e2cSmrg       }; then :
1715736a7e2cSmrg  ac_retval=0
1716736a7e2cSmrgelse
1717736a7e2cSmrg  $as_echo "$as_me: failed program was:" >&5
1718736a7e2cSmrgsed 's/^/| /' conftest.$ac_ext >&5
1719736a7e2cSmrg
1720736a7e2cSmrg	ac_retval=1
1721736a7e2cSmrgfi
1722736a7e2cSmrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1723736a7e2cSmrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1724736a7e2cSmrg  # interfere with the next link command; also delete a directory that is
1725736a7e2cSmrg  # left behind by Apple's compiler.  We do this before executing the actions.
1726736a7e2cSmrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727736a7e2cSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728736a7e2cSmrg  as_fn_set_status $ac_retval
1729736a7e2cSmrg
1730736a7e2cSmrg} # ac_fn_c_try_link
1731736a7e2cSmrg
1732736a7e2cSmrg# ac_fn_c_check_func LINENO FUNC VAR
1733736a7e2cSmrg# ----------------------------------
1734736a7e2cSmrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
1735736a7e2cSmrgac_fn_c_check_func ()
1736736a7e2cSmrg{
1737736a7e2cSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739736a7e2cSmrg$as_echo_n "checking for $2... " >&6; }
1740736a7e2cSmrgif eval \${$3+:} false; then :
1741736a7e2cSmrg  $as_echo_n "(cached) " >&6
1742736a7e2cSmrgelse
1743736a7e2cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744736a7e2cSmrg/* end confdefs.h.  */
1745736a7e2cSmrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1746736a7e2cSmrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1747736a7e2cSmrg#define $2 innocuous_$2
1748736a7e2cSmrg
1749736a7e2cSmrg/* System header to define __stub macros and hopefully few prototypes,
1750736a7e2cSmrg    which can conflict with char $2 (); below.
1751736a7e2cSmrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1752736a7e2cSmrg    <limits.h> exists even on freestanding compilers.  */
1753736a7e2cSmrg
1754736a7e2cSmrg#ifdef __STDC__
1755736a7e2cSmrg# include <limits.h>
1756736a7e2cSmrg#else
1757736a7e2cSmrg# include <assert.h>
1758736a7e2cSmrg#endif
1759736a7e2cSmrg
1760736a7e2cSmrg#undef $2
1761736a7e2cSmrg
1762736a7e2cSmrg/* Override any GCC internal prototype to avoid an error.
1763736a7e2cSmrg   Use char because int might match the return type of a GCC
1764736a7e2cSmrg   builtin and then its argument prototype would still apply.  */
1765736a7e2cSmrg#ifdef __cplusplus
1766736a7e2cSmrgextern "C"
1767736a7e2cSmrg#endif
1768736a7e2cSmrgchar $2 ();
1769736a7e2cSmrg/* The GNU C library defines this for functions which it implements
1770736a7e2cSmrg    to always fail with ENOSYS.  Some functions are actually named
1771736a7e2cSmrg    something starting with __ and the normal name is an alias.  */
1772736a7e2cSmrg#if defined __stub_$2 || defined __stub___$2
1773736a7e2cSmrgchoke me
1774736a7e2cSmrg#endif
1775736a7e2cSmrg
1776736a7e2cSmrgint
1777736a7e2cSmrgmain ()
1778736a7e2cSmrg{
1779736a7e2cSmrgreturn $2 ();
1780736a7e2cSmrg  ;
1781736a7e2cSmrg  return 0;
1782736a7e2cSmrg}
1783736a7e2cSmrg_ACEOF
1784736a7e2cSmrgif ac_fn_c_try_link "$LINENO"; then :
1785736a7e2cSmrg  eval "$3=yes"
1786736a7e2cSmrgelse
1787736a7e2cSmrg  eval "$3=no"
1788736a7e2cSmrgfi
1789736a7e2cSmrgrm -f core conftest.err conftest.$ac_objext \
1790736a7e2cSmrg    conftest$ac_exeext conftest.$ac_ext
1791736a7e2cSmrgfi
1792736a7e2cSmrgeval ac_res=\$$3
1793736a7e2cSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794736a7e2cSmrg$as_echo "$ac_res" >&6; }
1795736a7e2cSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796736a7e2cSmrg
1797736a7e2cSmrg} # ac_fn_c_check_func
1798736a7e2cSmrgcat >config.log <<_ACEOF
1799736a7e2cSmrgThis file contains any messages produced by compilers while
1800736a7e2cSmrgrunning configure, to aid debugging if configure makes a mistake.
1801736a7e2cSmrg
1802e4ee1255SmrgIt was created by x11perf $as_me 1.5.4, which was
1803736a7e2cSmrggenerated by GNU Autoconf 2.68.  Invocation command line was
1804736a7e2cSmrg
1805736a7e2cSmrg  $ $0 $@
1806736a7e2cSmrg
1807736a7e2cSmrg_ACEOF
1808736a7e2cSmrgexec 5>>config.log
1809736a7e2cSmrg{
1810736a7e2cSmrgcat <<_ASUNAME
1811736a7e2cSmrg## --------- ##
1812736a7e2cSmrg## Platform. ##
1813736a7e2cSmrg## --------- ##
1814736a7e2cSmrg
1815736a7e2cSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1816736a7e2cSmrguname -m = `(uname -m) 2>/dev/null || echo unknown`
1817736a7e2cSmrguname -r = `(uname -r) 2>/dev/null || echo unknown`
1818736a7e2cSmrguname -s = `(uname -s) 2>/dev/null || echo unknown`
1819736a7e2cSmrguname -v = `(uname -v) 2>/dev/null || echo unknown`
1820736a7e2cSmrg
1821736a7e2cSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1822736a7e2cSmrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1823736a7e2cSmrg
1824736a7e2cSmrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1825736a7e2cSmrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1826736a7e2cSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1827736a7e2cSmrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1828736a7e2cSmrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1829736a7e2cSmrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1830736a7e2cSmrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1831736a7e2cSmrg
1832736a7e2cSmrg_ASUNAME
1833264fa531Smrg
1834264fa531Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835264fa531Smrgfor as_dir in $PATH
1836264fa531Smrgdo
1837264fa531Smrg  IFS=$as_save_IFS
1838264fa531Smrg  test -z "$as_dir" && as_dir=.
1839736a7e2cSmrg    $as_echo "PATH: $as_dir"
1840736a7e2cSmrg  done
1841c37a63b8SmrgIFS=$as_save_IFS
1842264fa531Smrg
1843264fa531Smrg} >&5
1844264fa531Smrg
1845264fa531Smrgcat >&5 <<_ACEOF
1846264fa531Smrg
1847264fa531Smrg
1848264fa531Smrg## ----------- ##
1849264fa531Smrg## Core tests. ##
1850264fa531Smrg## ----------- ##
1851264fa531Smrg
1852264fa531Smrg_ACEOF
1853264fa531Smrg
1854264fa531Smrg
1855264fa531Smrg# Keep a trace of the command line.
1856264fa531Smrg# Strip out --no-create and --no-recursion so they do not pile up.
1857264fa531Smrg# Strip out --silent because we don't want to record it for future runs.
1858264fa531Smrg# Also quote any args containing shell meta-characters.
1859264fa531Smrg# Make two passes to allow for proper duplicate-argument suppression.
1860264fa531Smrgac_configure_args=
1861264fa531Smrgac_configure_args0=
1862264fa531Smrgac_configure_args1=
1863264fa531Smrgac_must_keep_next=false
1864264fa531Smrgfor ac_pass in 1 2
1865264fa531Smrgdo
1866264fa531Smrg  for ac_arg
1867264fa531Smrg  do
1868264fa531Smrg    case $ac_arg in
1869264fa531Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1870264fa531Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1871264fa531Smrg    | -silent | --silent | --silen | --sile | --sil)
1872264fa531Smrg      continue ;;
1873c37a63b8Smrg    *\'*)
1874c37a63b8Smrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1875264fa531Smrg    esac
1876264fa531Smrg    case $ac_pass in
1877736a7e2cSmrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1878264fa531Smrg    2)
1879736a7e2cSmrg      as_fn_append ac_configure_args1 " '$ac_arg'"
1880264fa531Smrg      if test $ac_must_keep_next = true; then
1881264fa531Smrg	ac_must_keep_next=false # Got value, back to normal.
1882264fa531Smrg      else
1883264fa531Smrg	case $ac_arg in
1884264fa531Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
1885264fa531Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1886264fa531Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1887264fa531Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
1888264fa531Smrg	    case "$ac_configure_args0 " in
1889264fa531Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1890264fa531Smrg	    esac
1891264fa531Smrg	    ;;
1892264fa531Smrg	  -* ) ac_must_keep_next=true ;;
1893264fa531Smrg	esac
1894264fa531Smrg      fi
1895736a7e2cSmrg      as_fn_append ac_configure_args " '$ac_arg'"
1896264fa531Smrg      ;;
1897264fa531Smrg    esac
1898264fa531Smrg  done
1899264fa531Smrgdone
1900736a7e2cSmrg{ ac_configure_args0=; unset ac_configure_args0;}
1901736a7e2cSmrg{ ac_configure_args1=; unset ac_configure_args1;}
1902264fa531Smrg
1903264fa531Smrg# When interrupted or exit'd, cleanup temporary files, and complete
1904264fa531Smrg# config.log.  We remove comments because anyway the quotes in there
1905264fa531Smrg# would cause problems or look ugly.
1906c37a63b8Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
1907c37a63b8Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1908264fa531Smrgtrap 'exit_status=$?
1909264fa531Smrg  # Save into config.log some information that might help in debugging.
1910264fa531Smrg  {
1911264fa531Smrg    echo
1912264fa531Smrg
1913736a7e2cSmrg    $as_echo "## ---------------- ##
1914264fa531Smrg## Cache variables. ##
1915736a7e2cSmrg## ---------------- ##"
1916264fa531Smrg    echo
1917264fa531Smrg    # The following way of writing the cache mishandles newlines in values,
1918c37a63b8Smrg(
1919c37a63b8Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1920c37a63b8Smrg    eval ac_val=\$$ac_var
1921c37a63b8Smrg    case $ac_val in #(
1922c37a63b8Smrg    *${as_nl}*)
1923c37a63b8Smrg      case $ac_var in #(
1924736a7e2cSmrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1925c37a63b8Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1926c37a63b8Smrg      esac
1927c37a63b8Smrg      case $ac_var in #(
1928c37a63b8Smrg      _ | IFS | as_nl) ;; #(
1929c37a63b8Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1930736a7e2cSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
1931c37a63b8Smrg      esac ;;
1932c37a63b8Smrg    esac
1933c37a63b8Smrg  done
1934264fa531Smrg  (set) 2>&1 |
1935c37a63b8Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1936c37a63b8Smrg    *${as_nl}ac_space=\ *)
1937264fa531Smrg      sed -n \
1938c37a63b8Smrg	"s/'\''/'\''\\\\'\'''\''/g;
1939c37a63b8Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1940c37a63b8Smrg      ;; #(
1941264fa531Smrg    *)
1942c37a63b8Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1943264fa531Smrg      ;;
1944c37a63b8Smrg    esac |
1945c37a63b8Smrg    sort
1946c37a63b8Smrg)
1947264fa531Smrg    echo
1948264fa531Smrg
1949736a7e2cSmrg    $as_echo "## ----------------- ##
1950264fa531Smrg## Output variables. ##
1951736a7e2cSmrg## ----------------- ##"
1952264fa531Smrg    echo
1953264fa531Smrg    for ac_var in $ac_subst_vars
1954264fa531Smrg    do
1955c37a63b8Smrg      eval ac_val=\$$ac_var
1956c37a63b8Smrg      case $ac_val in
1957c37a63b8Smrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1958c37a63b8Smrg      esac
1959c37a63b8Smrg      $as_echo "$ac_var='\''$ac_val'\''"
1960264fa531Smrg    done | sort
1961264fa531Smrg    echo
1962264fa531Smrg
1963264fa531Smrg    if test -n "$ac_subst_files"; then
1964736a7e2cSmrg      $as_echo "## ------------------- ##
1965c37a63b8Smrg## File substitutions. ##
1966736a7e2cSmrg## ------------------- ##"
1967264fa531Smrg      echo
1968264fa531Smrg      for ac_var in $ac_subst_files
1969264fa531Smrg      do
1970c37a63b8Smrg	eval ac_val=\$$ac_var
1971c37a63b8Smrg	case $ac_val in
1972c37a63b8Smrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1973c37a63b8Smrg	esac
1974c37a63b8Smrg	$as_echo "$ac_var='\''$ac_val'\''"
1975264fa531Smrg      done | sort
1976264fa531Smrg      echo
1977264fa531Smrg    fi
1978264fa531Smrg
1979264fa531Smrg    if test -s confdefs.h; then
1980736a7e2cSmrg      $as_echo "## ----------- ##
1981264fa531Smrg## confdefs.h. ##
1982736a7e2cSmrg## ----------- ##"
1983264fa531Smrg      echo
1984c37a63b8Smrg      cat confdefs.h
1985264fa531Smrg      echo
1986264fa531Smrg    fi
1987264fa531Smrg    test "$ac_signal" != 0 &&
1988c37a63b8Smrg      $as_echo "$as_me: caught signal $ac_signal"
1989c37a63b8Smrg    $as_echo "$as_me: exit $exit_status"
1990264fa531Smrg  } >&5
1991c37a63b8Smrg  rm -f core *.core core.conftest.* &&
1992c37a63b8Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1993264fa531Smrg    exit $exit_status
1994c37a63b8Smrg' 0
1995264fa531Smrgfor ac_signal in 1 2 13 15; do
1996736a7e2cSmrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1997264fa531Smrgdone
1998264fa531Smrgac_signal=0
1999264fa531Smrg
2000264fa531Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
2001c37a63b8Smrgrm -f -r conftest* confdefs.h
2002264fa531Smrg
2003736a7e2cSmrg$as_echo "/* confdefs.h */" > confdefs.h
2004736a7e2cSmrg
2005264fa531Smrg# Predefined preprocessor variables.
2006264fa531Smrg
2007264fa531Smrgcat >>confdefs.h <<_ACEOF
2008264fa531Smrg#define PACKAGE_NAME "$PACKAGE_NAME"
2009264fa531Smrg_ACEOF
2010264fa531Smrg
2011264fa531Smrgcat >>confdefs.h <<_ACEOF
2012264fa531Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2013264fa531Smrg_ACEOF
2014264fa531Smrg
2015264fa531Smrgcat >>confdefs.h <<_ACEOF
2016264fa531Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
2017264fa531Smrg_ACEOF
2018264fa531Smrg
2019264fa531Smrgcat >>confdefs.h <<_ACEOF
2020264fa531Smrg#define PACKAGE_STRING "$PACKAGE_STRING"
2021264fa531Smrg_ACEOF
2022264fa531Smrg
2023264fa531Smrgcat >>confdefs.h <<_ACEOF
2024264fa531Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2025264fa531Smrg_ACEOF
2026264fa531Smrg
2027736a7e2cSmrgcat >>confdefs.h <<_ACEOF
2028736a7e2cSmrg#define PACKAGE_URL "$PACKAGE_URL"
2029736a7e2cSmrg_ACEOF
2030736a7e2cSmrg
2031264fa531Smrg
2032264fa531Smrg# Let the site file select an alternate cache file if it wants to.
2033c37a63b8Smrg# Prefer an explicitly selected file to automatically selected ones.
2034c37a63b8Smrgac_site_file1=NONE
2035c37a63b8Smrgac_site_file2=NONE
2036c37a63b8Smrgif test -n "$CONFIG_SITE"; then
2037736a7e2cSmrg  # We do not want a PATH search for config.site.
2038736a7e2cSmrg  case $CONFIG_SITE in #((
2039736a7e2cSmrg    -*)  ac_site_file1=./$CONFIG_SITE;;
2040736a7e2cSmrg    */*) ac_site_file1=$CONFIG_SITE;;
2041736a7e2cSmrg    *)   ac_site_file1=./$CONFIG_SITE;;
2042736a7e2cSmrg  esac
2043c37a63b8Smrgelif test "x$prefix" != xNONE; then
2044c37a63b8Smrg  ac_site_file1=$prefix/share/config.site
2045c37a63b8Smrg  ac_site_file2=$prefix/etc/config.site
2046c37a63b8Smrgelse
2047c37a63b8Smrg  ac_site_file1=$ac_default_prefix/share/config.site
2048c37a63b8Smrg  ac_site_file2=$ac_default_prefix/etc/config.site
2049264fa531Smrgfi
2050c37a63b8Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
2051c37a63b8Smrgdo
2052c37a63b8Smrg  test "x$ac_site_file" = xNONE && continue
2053736a7e2cSmrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2054736a7e2cSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2055c37a63b8Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2056264fa531Smrg    sed 's/^/| /' "$ac_site_file" >&5
2057736a7e2cSmrg    . "$ac_site_file" \
2058736a7e2cSmrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2059736a7e2cSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2060736a7e2cSmrgas_fn_error $? "failed to load site script $ac_site_file
2061736a7e2cSmrgSee \`config.log' for more details" "$LINENO" 5; }
2062264fa531Smrg  fi
2063264fa531Smrgdone
2064264fa531Smrg
2065264fa531Smrgif test -r "$cache_file"; then
2066736a7e2cSmrg  # Some versions of bash will fail to source /dev/null (special files
2067736a7e2cSmrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2068736a7e2cSmrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2069736a7e2cSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2070c37a63b8Smrg$as_echo "$as_me: loading cache $cache_file" >&6;}
2071264fa531Smrg    case $cache_file in
2072c37a63b8Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2073c37a63b8Smrg      *)                      . "./$cache_file";;
2074264fa531Smrg    esac
2075264fa531Smrg  fi
2076264fa531Smrgelse
2077736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2078c37a63b8Smrg$as_echo "$as_me: creating cache $cache_file" >&6;}
2079264fa531Smrg  >$cache_file
2080264fa531Smrgfi
2081264fa531Smrg
2082264fa531Smrg# Check that the precious variables saved in the cache have kept the same
2083264fa531Smrg# value.
2084264fa531Smrgac_cache_corrupted=false
2085c37a63b8Smrgfor ac_var in $ac_precious_vars; do
2086264fa531Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2087264fa531Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
2088c37a63b8Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2089c37a63b8Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
2090264fa531Smrg  case $ac_old_set,$ac_new_set in
2091264fa531Smrg    set,)
2092736a7e2cSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2093c37a63b8Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2094264fa531Smrg      ac_cache_corrupted=: ;;
2095264fa531Smrg    ,set)
2096736a7e2cSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2097c37a63b8Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2098264fa531Smrg      ac_cache_corrupted=: ;;
2099264fa531Smrg    ,);;
2100264fa531Smrg    *)
2101264fa531Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
2102c37a63b8Smrg	# differences in whitespace do not lead to failure.
2103c37a63b8Smrg	ac_old_val_w=`echo x $ac_old_val`
2104c37a63b8Smrg	ac_new_val_w=`echo x $ac_new_val`
2105c37a63b8Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2106736a7e2cSmrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2107c37a63b8Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2108c37a63b8Smrg	  ac_cache_corrupted=:
2109c37a63b8Smrg	else
2110736a7e2cSmrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2111c37a63b8Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2112c37a63b8Smrg	  eval $ac_var=\$ac_old_val
2113c37a63b8Smrg	fi
2114736a7e2cSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2115c37a63b8Smrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2116736a7e2cSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2117c37a63b8Smrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2118264fa531Smrg      fi;;
2119264fa531Smrg  esac
2120264fa531Smrg  # Pass precious variables to config.status.
2121264fa531Smrg  if test "$ac_new_set" = set; then
2122264fa531Smrg    case $ac_new_val in
2123c37a63b8Smrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2124264fa531Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
2125264fa531Smrg    esac
2126264fa531Smrg    case " $ac_configure_args " in
2127264fa531Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2128736a7e2cSmrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2129264fa531Smrg    esac
2130264fa531Smrg  fi
2131264fa531Smrgdone
2132264fa531Smrgif $ac_cache_corrupted; then
2133736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2134c37a63b8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2135736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2136c37a63b8Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2137736a7e2cSmrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2138264fa531Smrgfi
2139736a7e2cSmrg## -------------------- ##
2140736a7e2cSmrg## Main body of script. ##
2141736a7e2cSmrg## -------------------- ##
2142264fa531Smrg
2143c37a63b8Smrgac_ext=c
2144c37a63b8Smrgac_cpp='$CPP $CPPFLAGS'
2145c37a63b8Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2146c37a63b8Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2147c37a63b8Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2148264fa531Smrg
2149264fa531Smrg
2150736a7e2cSmrg
2151736a7e2cSmrgac_config_headers="$ac_config_headers config.h"
2152736a7e2cSmrg
2153736a7e2cSmrg
2154736a7e2cSmrg# Initialize Automake
2155c37a63b8Smrgam__api_version='1.11'
2156264fa531Smrg
2157264fa531Smrgac_aux_dir=
2158c37a63b8Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2159c37a63b8Smrg  if test -f "$ac_dir/install-sh"; then
2160264fa531Smrg    ac_aux_dir=$ac_dir
2161264fa531Smrg    ac_install_sh="$ac_aux_dir/install-sh -c"
2162264fa531Smrg    break
2163c37a63b8Smrg  elif test -f "$ac_dir/install.sh"; then
2164264fa531Smrg    ac_aux_dir=$ac_dir
2165264fa531Smrg    ac_install_sh="$ac_aux_dir/install.sh -c"
2166264fa531Smrg    break
2167c37a63b8Smrg  elif test -f "$ac_dir/shtool"; then
2168264fa531Smrg    ac_aux_dir=$ac_dir
2169264fa531Smrg    ac_install_sh="$ac_aux_dir/shtool install -c"
2170264fa531Smrg    break
2171264fa531Smrg  fi
2172264fa531Smrgdone
2173264fa531Smrgif test -z "$ac_aux_dir"; then
2174736a7e2cSmrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2175264fa531Smrgfi
2176c37a63b8Smrg
2177c37a63b8Smrg# These three variables are undocumented and unsupported,
2178c37a63b8Smrg# and are intended to be withdrawn in a future Autoconf release.
2179c37a63b8Smrg# They can cause serious problems if a builder's source tree is in a directory
2180c37a63b8Smrg# whose full name contains unusual characters.
2181c37a63b8Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2182c37a63b8Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2183c37a63b8Smrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2184c37a63b8Smrg
2185264fa531Smrg
2186264fa531Smrg# Find a good install program.  We prefer a C program (faster),
2187264fa531Smrg# so one script is as good as another.  But avoid the broken or
2188264fa531Smrg# incompatible versions:
2189264fa531Smrg# SysV /etc/install, /usr/sbin/install
2190264fa531Smrg# SunOS /usr/etc/install
2191264fa531Smrg# IRIX /sbin/install
2192264fa531Smrg# AIX /bin/install
2193264fa531Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
2194264fa531Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2195264fa531Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2196264fa531Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2197264fa531Smrg# OS/2's system install, which has a completely different semantic
2198264fa531Smrg# ./install, which can be erroneously created by make from ./install.sh.
2199c37a63b8Smrg# Reject install programs that cannot install multiple files.
2200736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2201c37a63b8Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
2202264fa531Smrgif test -z "$INSTALL"; then
2203736a7e2cSmrgif ${ac_cv_path_install+:} false; then :
2204c37a63b8Smrg  $as_echo_n "(cached) " >&6
2205264fa531Smrgelse
2206264fa531Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2207264fa531Smrgfor as_dir in $PATH
2208264fa531Smrgdo
2209264fa531Smrg  IFS=$as_save_IFS
2210264fa531Smrg  test -z "$as_dir" && as_dir=.
2211736a7e2cSmrg    # Account for people who put trailing slashes in PATH elements.
2212736a7e2cSmrgcase $as_dir/ in #((
2213736a7e2cSmrg  ./ | .// | /[cC]/* | \
2214264fa531Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2215736a7e2cSmrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2216264fa531Smrg  /usr/ucb/* ) ;;
2217264fa531Smrg  *)
2218264fa531Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
2219264fa531Smrg    # Don't use installbsd from OSF since it installs stuff as root
2220264fa531Smrg    # by default.
2221264fa531Smrg    for ac_prog in ginstall scoinst install; do
2222264fa531Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
2223c37a63b8Smrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2224264fa531Smrg	  if test $ac_prog = install &&
2225264fa531Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2226264fa531Smrg	    # AIX install.  It has an incompatible calling convention.
2227264fa531Smrg	    :
2228264fa531Smrg	  elif test $ac_prog = install &&
2229264fa531Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2230264fa531Smrg	    # program-specific install script used by HP pwplus--don't use.
2231264fa531Smrg	    :
2232264fa531Smrg	  else
2233c37a63b8Smrg	    rm -rf conftest.one conftest.two conftest.dir
2234c37a63b8Smrg	    echo one > conftest.one
2235c37a63b8Smrg	    echo two > conftest.two
2236c37a63b8Smrg	    mkdir conftest.dir
2237c37a63b8Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2238c37a63b8Smrg	      test -s conftest.one && test -s conftest.two &&
2239c37a63b8Smrg	      test -s conftest.dir/conftest.one &&
2240c37a63b8Smrg	      test -s conftest.dir/conftest.two
2241c37a63b8Smrg	    then
2242c37a63b8Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2243c37a63b8Smrg	      break 3
2244c37a63b8Smrg	    fi
2245264fa531Smrg	  fi
2246264fa531Smrg	fi
2247264fa531Smrg      done
2248264fa531Smrg    done
2249264fa531Smrg    ;;
2250264fa531Smrgesac
2251c37a63b8Smrg
2252736a7e2cSmrg  done
2253c37a63b8SmrgIFS=$as_save_IFS
2254264fa531Smrg
2255c37a63b8Smrgrm -rf conftest.one conftest.two conftest.dir
2256264fa531Smrg
2257264fa531Smrgfi
2258264fa531Smrg  if test "${ac_cv_path_install+set}" = set; then
2259264fa531Smrg    INSTALL=$ac_cv_path_install
2260264fa531Smrg  else
2261c37a63b8Smrg    # As a last resort, use the slow shell script.  Don't cache a
2262c37a63b8Smrg    # value for INSTALL within a source directory, because that will
2263264fa531Smrg    # break other packages using the cache if that directory is
2264c37a63b8Smrg    # removed, or if the value is a relative name.
2265264fa531Smrg    INSTALL=$ac_install_sh
2266264fa531Smrg  fi
2267264fa531Smrgfi
2268736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2269c37a63b8Smrg$as_echo "$INSTALL" >&6; }
2270264fa531Smrg
2271264fa531Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2272264fa531Smrg# It thinks the first close brace ends the variable substitution.
2273264fa531Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2274264fa531Smrg
2275264fa531Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2276264fa531Smrg
2277264fa531Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2278264fa531Smrg
2279736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2280c37a63b8Smrg$as_echo_n "checking whether build environment is sane... " >&6; }
2281264fa531Smrg# Just in case
2282264fa531Smrgsleep 1
2283264fa531Smrgecho timestamp > conftest.file
2284c37a63b8Smrg# Reject unsafe characters in $srcdir or the absolute working directory
2285c37a63b8Smrg# name.  Accept space and tab only in the latter.
2286c37a63b8Smrgam_lf='
2287c37a63b8Smrg'
2288c37a63b8Smrgcase `pwd` in
2289c37a63b8Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
2290736a7e2cSmrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2291c37a63b8Smrgesac
2292c37a63b8Smrgcase $srcdir in
2293c37a63b8Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2294736a7e2cSmrg    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2295c37a63b8Smrgesac
2296c37a63b8Smrg
2297264fa531Smrg# Do `set' in a subshell so we don't clobber the current shell's
2298264fa531Smrg# arguments.  Must try -L first in case configure is actually a
2299264fa531Smrg# symlink; some systems play weird games with the mod time of symlinks
2300264fa531Smrg# (eg FreeBSD returns the mod time of the symlink's containing
2301264fa531Smrg# directory).
2302264fa531Smrgif (
2303c37a63b8Smrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2304264fa531Smrg   if test "$*" = "X"; then
2305264fa531Smrg      # -L didn't work.
2306c37a63b8Smrg      set X `ls -t "$srcdir/configure" conftest.file`
2307264fa531Smrg   fi
2308264fa531Smrg   rm -f conftest.file
2309264fa531Smrg   if test "$*" != "X $srcdir/configure conftest.file" \
2310264fa531Smrg      && test "$*" != "X conftest.file $srcdir/configure"; then
2311264fa531Smrg
2312264fa531Smrg      # If neither matched, then we have a broken ls.  This can happen
2313264fa531Smrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
2314264fa531Smrg      # broken ls alias from the environment.  This has actually
2315264fa531Smrg      # happened.  Such a system could not be considered "sane".
2316736a7e2cSmrg      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2317736a7e2cSmrgalias in your environment" "$LINENO" 5
2318264fa531Smrg   fi
2319264fa531Smrg
2320264fa531Smrg   test "$2" = conftest.file
2321264fa531Smrg   )
2322264fa531Smrgthen
2323264fa531Smrg   # Ok.
2324264fa531Smrg   :
2325264fa531Smrgelse
2326736a7e2cSmrg   as_fn_error $? "newly created file is older than distributed files!
2327736a7e2cSmrgCheck your system clock" "$LINENO" 5
2328264fa531Smrgfi
2329736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2330c37a63b8Smrg$as_echo "yes" >&6; }
2331264fa531Smrgtest "$program_prefix" != NONE &&
2332c37a63b8Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2333264fa531Smrg# Use a double $ so make ignores it.
2334264fa531Smrgtest "$program_suffix" != NONE &&
2335c37a63b8Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2336c37a63b8Smrg# Double any \ or $.
2337264fa531Smrg# By default was `s,x,x', remove it if useless.
2338c37a63b8Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2339c37a63b8Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2340264fa531Smrg
2341264fa531Smrg# expand $ac_aux_dir to an absolute path
2342264fa531Smrgam_aux_dir=`cd $ac_aux_dir && pwd`
2343264fa531Smrg
2344c37a63b8Smrgif test x"${MISSING+set}" != xset; then
2345c37a63b8Smrg  case $am_aux_dir in
2346c37a63b8Smrg  *\ * | *\	*)
2347c37a63b8Smrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2348c37a63b8Smrg  *)
2349c37a63b8Smrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2350c37a63b8Smrg  esac
2351c37a63b8Smrgfi
2352264fa531Smrg# Use eval to expand $SHELL
2353264fa531Smrgif eval "$MISSING --run true"; then
2354264fa531Smrg  am_missing_run="$MISSING --run "
2355264fa531Smrgelse
2356264fa531Smrg  am_missing_run=
2357736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2358c37a63b8Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2359c37a63b8Smrgfi
2360c37a63b8Smrg
2361c37a63b8Smrgif test x"${install_sh}" != xset; then
2362c37a63b8Smrg  case $am_aux_dir in
2363c37a63b8Smrg  *\ * | *\	*)
2364c37a63b8Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2365c37a63b8Smrg  *)
2366c37a63b8Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
2367c37a63b8Smrg  esac
2368c37a63b8Smrgfi
2369c37a63b8Smrg
2370c37a63b8Smrg# Installed binaries are usually stripped using `strip' when the user
2371c37a63b8Smrg# run `make install-strip'.  However `strip' might not be the right
2372c37a63b8Smrg# tool to use in cross-compilation environments, therefore Automake
2373c37a63b8Smrg# will honor the `STRIP' environment variable to overrule this program.
2374c37a63b8Smrgif test "$cross_compiling" != no; then
2375c37a63b8Smrg  if test -n "$ac_tool_prefix"; then
2376c37a63b8Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2377c37a63b8Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
2378736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2379c37a63b8Smrg$as_echo_n "checking for $ac_word... " >&6; }
2380736a7e2cSmrgif ${ac_cv_prog_STRIP+:} false; then :
2381c37a63b8Smrg  $as_echo_n "(cached) " >&6
2382c37a63b8Smrgelse
2383c37a63b8Smrg  if test -n "$STRIP"; then
2384c37a63b8Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2385c37a63b8Smrgelse
2386c37a63b8Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387c37a63b8Smrgfor as_dir in $PATH
2388c37a63b8Smrgdo
2389c37a63b8Smrg  IFS=$as_save_IFS
2390c37a63b8Smrg  test -z "$as_dir" && as_dir=.
2391736a7e2cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2392c37a63b8Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2393c37a63b8Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2394736a7e2cSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2395c37a63b8Smrg    break 2
2396c37a63b8Smrg  fi
2397c37a63b8Smrgdone
2398736a7e2cSmrg  done
2399c37a63b8SmrgIFS=$as_save_IFS
2400c37a63b8Smrg
2401c37a63b8Smrgfi
2402c37a63b8Smrgfi
2403c37a63b8SmrgSTRIP=$ac_cv_prog_STRIP
2404c37a63b8Smrgif test -n "$STRIP"; then
2405736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2406c37a63b8Smrg$as_echo "$STRIP" >&6; }
2407c37a63b8Smrgelse
2408736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2409c37a63b8Smrg$as_echo "no" >&6; }
2410c37a63b8Smrgfi
2411c37a63b8Smrg
2412c37a63b8Smrg
2413c37a63b8Smrgfi
2414c37a63b8Smrgif test -z "$ac_cv_prog_STRIP"; then
2415c37a63b8Smrg  ac_ct_STRIP=$STRIP
2416c37a63b8Smrg  # Extract the first word of "strip", so it can be a program name with args.
2417c37a63b8Smrgset dummy strip; ac_word=$2
2418736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2419c37a63b8Smrg$as_echo_n "checking for $ac_word... " >&6; }
2420736a7e2cSmrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2421c37a63b8Smrg  $as_echo_n "(cached) " >&6
2422c37a63b8Smrgelse
2423c37a63b8Smrg  if test -n "$ac_ct_STRIP"; then
2424c37a63b8Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2425c37a63b8Smrgelse
2426c37a63b8Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427c37a63b8Smrgfor as_dir in $PATH
2428c37a63b8Smrgdo
2429c37a63b8Smrg  IFS=$as_save_IFS
2430c37a63b8Smrg  test -z "$as_dir" && as_dir=.
2431736a7e2cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2432c37a63b8Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2433c37a63b8Smrg    ac_cv_prog_ac_ct_STRIP="strip"
2434736a7e2cSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2435c37a63b8Smrg    break 2
2436c37a63b8Smrg  fi
2437c37a63b8Smrgdone
2438736a7e2cSmrg  done
2439c37a63b8SmrgIFS=$as_save_IFS
2440c37a63b8Smrg
2441c37a63b8Smrgfi
2442c37a63b8Smrgfi
2443c37a63b8Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2444c37a63b8Smrgif test -n "$ac_ct_STRIP"; then
2445736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2446c37a63b8Smrg$as_echo "$ac_ct_STRIP" >&6; }
2447c37a63b8Smrgelse
2448736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2449c37a63b8Smrg$as_echo "no" >&6; }
2450c37a63b8Smrgfi
2451c37a63b8Smrg
2452c37a63b8Smrg  if test "x$ac_ct_STRIP" = x; then
2453c37a63b8Smrg    STRIP=":"
2454c37a63b8Smrg  else
2455c37a63b8Smrg    case $cross_compiling:$ac_tool_warned in
2456c37a63b8Smrgyes:)
2457736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2458c37a63b8Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2459c37a63b8Smrgac_tool_warned=yes ;;
2460c37a63b8Smrgesac
2461c37a63b8Smrg    STRIP=$ac_ct_STRIP
2462c37a63b8Smrg  fi
2463c37a63b8Smrgelse
2464c37a63b8Smrg  STRIP="$ac_cv_prog_STRIP"
2465c37a63b8Smrgfi
2466c37a63b8Smrg
2467c37a63b8Smrgfi
2468c37a63b8SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2469c37a63b8Smrg
2470736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2471c37a63b8Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2472c37a63b8Smrgif test -z "$MKDIR_P"; then
2473736a7e2cSmrg  if ${ac_cv_path_mkdir+:} false; then :
2474c37a63b8Smrg  $as_echo_n "(cached) " >&6
2475c37a63b8Smrgelse
2476c37a63b8Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477c37a63b8Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2478c37a63b8Smrgdo
2479c37a63b8Smrg  IFS=$as_save_IFS
2480c37a63b8Smrg  test -z "$as_dir" && as_dir=.
2481736a7e2cSmrg    for ac_prog in mkdir gmkdir; do
2482c37a63b8Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
2483c37a63b8Smrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2484c37a63b8Smrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2485c37a63b8Smrg	     'mkdir (GNU coreutils) '* | \
2486c37a63b8Smrg	     'mkdir (coreutils) '* | \
2487c37a63b8Smrg	     'mkdir (fileutils) '4.1*)
2488c37a63b8Smrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2489c37a63b8Smrg	       break 3;;
2490c37a63b8Smrg	   esac
2491c37a63b8Smrg	 done
2492c37a63b8Smrg       done
2493736a7e2cSmrg  done
2494c37a63b8SmrgIFS=$as_save_IFS
2495c37a63b8Smrg
2496264fa531Smrgfi
2497264fa531Smrg
2498736a7e2cSmrg  test -d ./--version && rmdir ./--version
2499c37a63b8Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
2500c37a63b8Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
2501c37a63b8Smrg  else
2502c37a63b8Smrg    # As a last resort, use the slow shell script.  Don't cache a
2503c37a63b8Smrg    # value for MKDIR_P within a source directory, because that will
2504c37a63b8Smrg    # break other packages using the cache if that directory is
2505c37a63b8Smrg    # removed, or if the value is a relative name.
2506c37a63b8Smrg    MKDIR_P="$ac_install_sh -d"
2507c37a63b8Smrg  fi
2508c37a63b8Smrgfi
2509736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2510c37a63b8Smrg$as_echo "$MKDIR_P" >&6; }
2511c37a63b8Smrg
2512c37a63b8Smrgmkdir_p="$MKDIR_P"
2513c37a63b8Smrgcase $mkdir_p in
2514c37a63b8Smrg  [\\/$]* | ?:[\\/]*) ;;
2515c37a63b8Smrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2516c37a63b8Smrgesac
2517c37a63b8Smrg
2518264fa531Smrgfor ac_prog in gawk mawk nawk awk
2519264fa531Smrgdo
2520264fa531Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
2521264fa531Smrgset dummy $ac_prog; ac_word=$2
2522736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2523c37a63b8Smrg$as_echo_n "checking for $ac_word... " >&6; }
2524736a7e2cSmrgif ${ac_cv_prog_AWK+:} false; then :
2525c37a63b8Smrg  $as_echo_n "(cached) " >&6
2526264fa531Smrgelse
2527264fa531Smrg  if test -n "$AWK"; then
2528264fa531Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2529264fa531Smrgelse
2530264fa531Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531264fa531Smrgfor as_dir in $PATH
2532264fa531Smrgdo
2533264fa531Smrg  IFS=$as_save_IFS
2534264fa531Smrg  test -z "$as_dir" && as_dir=.
2535736a7e2cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2536c37a63b8Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537264fa531Smrg    ac_cv_prog_AWK="$ac_prog"
2538736a7e2cSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2539264fa531Smrg    break 2
2540264fa531Smrg  fi
2541264fa531Smrgdone
2542736a7e2cSmrg  done
2543c37a63b8SmrgIFS=$as_save_IFS
2544264fa531Smrg
2545264fa531Smrgfi
2546264fa531Smrgfi
2547264fa531SmrgAWK=$ac_cv_prog_AWK
2548264fa531Smrgif test -n "$AWK"; then
2549736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2550c37a63b8Smrg$as_echo "$AWK" >&6; }
2551264fa531Smrgelse
2552736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2553c37a63b8Smrg$as_echo "no" >&6; }
2554264fa531Smrgfi
2555264fa531Smrg
2556c37a63b8Smrg
2557264fa531Smrg  test -n "$AWK" && break
2558264fa531Smrgdone
2559264fa531Smrg
2560736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2561c37a63b8Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2562c37a63b8Smrgset x ${MAKE-make}
2563c37a63b8Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2564736a7e2cSmrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2565c37a63b8Smrg  $as_echo_n "(cached) " >&6
2566264fa531Smrgelse
2567264fa531Smrg  cat >conftest.make <<\_ACEOF
2568c37a63b8SmrgSHELL = /bin/sh
2569264fa531Smrgall:
2570c37a63b8Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
2571264fa531Smrg_ACEOF
2572736a7e2cSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2573c37a63b8Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
2574c37a63b8Smrg  *@@@%%%=?*=@@@%%%*)
2575c37a63b8Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
2576c37a63b8Smrg  *)
2577c37a63b8Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
2578c37a63b8Smrgesac
2579264fa531Smrgrm -f conftest.make
2580264fa531Smrgfi
2581c37a63b8Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2582736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2583c37a63b8Smrg$as_echo "yes" >&6; }
2584264fa531Smrg  SET_MAKE=
2585264fa531Smrgelse
2586736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2587c37a63b8Smrg$as_echo "no" >&6; }
2588264fa531Smrg  SET_MAKE="MAKE=${MAKE-make}"
2589264fa531Smrgfi
2590264fa531Smrg
2591264fa531Smrgrm -rf .tst 2>/dev/null
2592264fa531Smrgmkdir .tst 2>/dev/null
2593264fa531Smrgif test -d .tst; then
2594264fa531Smrg  am__leading_dot=.
2595264fa531Smrgelse
2596264fa531Smrg  am__leading_dot=_
2597264fa531Smrgfi
2598264fa531Smrgrmdir .tst 2>/dev/null
2599264fa531Smrg
2600c37a63b8Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
2601c37a63b8Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2602c37a63b8Smrg  # is not polluted with repeated "-I."
2603c37a63b8Smrg  am__isrc=' -I$(srcdir)'
2604c37a63b8Smrg  # test to see if srcdir already configured
2605c37a63b8Smrg  if test -f $srcdir/config.status; then
2606736a7e2cSmrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2607c37a63b8Smrg  fi
2608264fa531Smrgfi
2609264fa531Smrg
2610264fa531Smrg# test whether we have cygpath
2611264fa531Smrgif test -z "$CYGPATH_W"; then
2612264fa531Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
2613264fa531Smrg    CYGPATH_W='cygpath -w'
2614264fa531Smrg  else
2615264fa531Smrg    CYGPATH_W=echo
2616264fa531Smrg  fi
2617264fa531Smrgfi
2618264fa531Smrg
2619264fa531Smrg
2620264fa531Smrg# Define the identity of the package.
2621264fa531Smrg PACKAGE='x11perf'
2622e4ee1255Smrg VERSION='1.5.4'
2623264fa531Smrg
2624264fa531Smrg
2625264fa531Smrgcat >>confdefs.h <<_ACEOF
2626264fa531Smrg#define PACKAGE "$PACKAGE"
2627264fa531Smrg_ACEOF
2628264fa531Smrg
2629264fa531Smrg
2630264fa531Smrgcat >>confdefs.h <<_ACEOF
2631264fa531Smrg#define VERSION "$VERSION"
2632264fa531Smrg_ACEOF
2633264fa531Smrg
2634264fa531Smrg# Some tools Automake needs.
2635264fa531Smrg
2636264fa531SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2637264fa531Smrg
2638264fa531Smrg
2639264fa531SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2640264fa531Smrg
2641264fa531Smrg
2642264fa531SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2643264fa531Smrg
2644264fa531Smrg
2645264fa531SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2646264fa531Smrg
2647264fa531Smrg
2648264fa531SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2649264fa531Smrg
2650c37a63b8Smrg# We need awk for the "check" target.  The system "awk" is bad on
2651c37a63b8Smrg# some platforms.
2652c37a63b8Smrg# Always define AMTAR for backward compatibility.
2653264fa531Smrg
2654264fa531SmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
2655264fa531Smrg
2656c37a63b8Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2657264fa531Smrg
2658264fa531Smrg
2659264fa531Smrg
2660264fa531Smrg
2661264fa531Smrg
2662264fa531Smrg
2663736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2664c37a63b8Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2665c37a63b8Smrg    # Check whether --enable-maintainer-mode was given.
2666736a7e2cSmrgif test "${enable_maintainer_mode+set}" = set; then :
2667c37a63b8Smrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2668264fa531Smrgelse
2669264fa531Smrg  USE_MAINTAINER_MODE=no
2670c37a63b8Smrgfi
2671264fa531Smrg
2672736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2673c37a63b8Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
2674c37a63b8Smrg   if test $USE_MAINTAINER_MODE = yes; then
2675264fa531Smrg  MAINTAINER_MODE_TRUE=
2676264fa531Smrg  MAINTAINER_MODE_FALSE='#'
2677264fa531Smrgelse
2678264fa531Smrg  MAINTAINER_MODE_TRUE='#'
2679264fa531Smrg  MAINTAINER_MODE_FALSE=
2680264fa531Smrgfi
2681264fa531Smrg
2682264fa531Smrg  MAINT=$MAINTAINER_MODE_TRUE
2683264fa531Smrg
2684264fa531Smrg
2685264fa531Smrg
2686736a7e2cSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2687264fa531Smrg
2688c37a63b8Smrg
2689c37a63b8Smrg
2690c37a63b8Smrg
2691c37a63b8Smrg
2692c37a63b8Smrg
2693c37a63b8Smrg
2694c37a63b8Smrg
2695c37a63b8Smrg
2696c37a63b8Smrg
2697c37a63b8Smrg
2698736a7e2cSmrgDEPDIR="${am__leading_dot}deps"
2699c37a63b8Smrg
2700736a7e2cSmrgac_config_commands="$ac_config_commands depfiles"
2701c37a63b8Smrg
2702264fa531Smrg
2703736a7e2cSmrgam_make=${MAKE-make}
2704736a7e2cSmrgcat > confinc << 'END'
2705736a7e2cSmrgam__doit:
2706736a7e2cSmrg	@echo this is the am__doit target
2707736a7e2cSmrg.PHONY: am__doit
2708736a7e2cSmrgEND
2709736a7e2cSmrg# If we don't find an include directive, just comment out the code.
2710736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2711736a7e2cSmrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
2712736a7e2cSmrgam__include="#"
2713736a7e2cSmrgam__quote=
2714736a7e2cSmrg_am_result=none
2715736a7e2cSmrg# First try GNU make style include.
2716736a7e2cSmrgecho "include confinc" > confmf
2717736a7e2cSmrg# Ignore all kinds of additional output from `make'.
2718736a7e2cSmrgcase `$am_make -s -f confmf 2> /dev/null` in #(
2719736a7e2cSmrg*the\ am__doit\ target*)
2720736a7e2cSmrg  am__include=include
2721736a7e2cSmrg  am__quote=
2722736a7e2cSmrg  _am_result=GNU
2723736a7e2cSmrg  ;;
2724736a7e2cSmrgesac
2725736a7e2cSmrg# Now try BSD make style include.
2726736a7e2cSmrgif test "$am__include" = "#"; then
2727736a7e2cSmrg   echo '.include "confinc"' > confmf
2728736a7e2cSmrg   case `$am_make -s -f confmf 2> /dev/null` in #(
2729736a7e2cSmrg   *the\ am__doit\ target*)
2730736a7e2cSmrg     am__include=.include
2731736a7e2cSmrg     am__quote="\""
2732736a7e2cSmrg     _am_result=BSD
2733736a7e2cSmrg     ;;
2734736a7e2cSmrg   esac
2735736a7e2cSmrgfi
2736736a7e2cSmrg
2737736a7e2cSmrg
2738736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2739736a7e2cSmrg$as_echo "$_am_result" >&6; }
2740736a7e2cSmrgrm -f confinc confmf
2741736a7e2cSmrg
2742736a7e2cSmrg# Check whether --enable-dependency-tracking was given.
2743736a7e2cSmrgif test "${enable_dependency_tracking+set}" = set; then :
2744736a7e2cSmrg  enableval=$enable_dependency_tracking;
2745736a7e2cSmrgfi
2746736a7e2cSmrg
2747736a7e2cSmrgif test "x$enable_dependency_tracking" != xno; then
2748736a7e2cSmrg  am_depcomp="$ac_aux_dir/depcomp"
2749736a7e2cSmrg  AMDEPBACKSLASH='\'
2750736a7e2cSmrgfi
2751736a7e2cSmrg if test "x$enable_dependency_tracking" != xno; then
2752736a7e2cSmrg  AMDEP_TRUE=
2753736a7e2cSmrg  AMDEP_FALSE='#'
2754736a7e2cSmrgelse
2755736a7e2cSmrg  AMDEP_TRUE='#'
2756736a7e2cSmrg  AMDEP_FALSE=
2757736a7e2cSmrgfi
2758736a7e2cSmrg
2759736a7e2cSmrg
2760736a7e2cSmrgac_ext=c
2761736a7e2cSmrgac_cpp='$CPP $CPPFLAGS'
2762736a7e2cSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763736a7e2cSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764736a7e2cSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2765736a7e2cSmrgif test -n "$ac_tool_prefix"; then
2766736a7e2cSmrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2767736a7e2cSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
2768736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769736a7e2cSmrg$as_echo_n "checking for $ac_word... " >&6; }
2770736a7e2cSmrgif ${ac_cv_prog_CC+:} false; then :
2771736a7e2cSmrg  $as_echo_n "(cached) " >&6
2772736a7e2cSmrgelse
2773736a7e2cSmrg  if test -n "$CC"; then
2774736a7e2cSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2775736a7e2cSmrgelse
2776736a7e2cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777736a7e2cSmrgfor as_dir in $PATH
2778736a7e2cSmrgdo
2779736a7e2cSmrg  IFS=$as_save_IFS
2780736a7e2cSmrg  test -z "$as_dir" && as_dir=.
2781736a7e2cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2782736a7e2cSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2783736a7e2cSmrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2784736a7e2cSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785736a7e2cSmrg    break 2
2786736a7e2cSmrg  fi
2787736a7e2cSmrgdone
2788736a7e2cSmrg  done
2789736a7e2cSmrgIFS=$as_save_IFS
2790736a7e2cSmrg
2791736a7e2cSmrgfi
2792736a7e2cSmrgfi
2793736a7e2cSmrgCC=$ac_cv_prog_CC
2794264fa531Smrgif test -n "$CC"; then
2795736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2796c37a63b8Smrg$as_echo "$CC" >&6; }
2797264fa531Smrgelse
2798736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799c37a63b8Smrg$as_echo "no" >&6; }
2800264fa531Smrgfi
2801264fa531Smrg
2802c37a63b8Smrg
2803264fa531Smrgfi
2804264fa531Smrgif test -z "$ac_cv_prog_CC"; then
2805264fa531Smrg  ac_ct_CC=$CC
2806264fa531Smrg  # Extract the first word of "gcc", so it can be a program name with args.
2807264fa531Smrgset dummy gcc; ac_word=$2
2808736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809c37a63b8Smrg$as_echo_n "checking for $ac_word... " >&6; }
2810736a7e2cSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
2811c37a63b8Smrg  $as_echo_n "(cached) " >&6
2812264fa531Smrgelse
2813264fa531Smrg  if test -n "$ac_ct_CC"; then
2814264fa531Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2815264fa531Smrgelse
2816264fa531Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817264fa531Smrgfor as_dir in $PATH
2818264fa531Smrgdo
2819264fa531Smrg  IFS=$as_save_IFS
2820264fa531Smrg  test -z "$as_dir" && as_dir=.
2821736a7e2cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2822c37a63b8Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2823264fa531Smrg    ac_cv_prog_ac_ct_CC="gcc"
2824736a7e2cSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825264fa531Smrg    break 2
2826264fa531Smrg  fi
2827264fa531Smrgdone
2828736a7e2cSmrg  done
2829c37a63b8SmrgIFS=$as_save_IFS
2830264fa531Smrg
2831264fa531Smrgfi
2832264fa531Smrgfi
2833264fa531Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2834264fa531Smrgif test -n "$ac_ct_CC"; then
2835736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2836c37a63b8Smrg$as_echo "$ac_ct_CC" >&6; }
2837264fa531Smrgelse
2838736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839c37a63b8Smrg$as_echo "no" >&6; }
2840264fa531Smrgfi
2841264fa531Smrg
2842c37a63b8Smrg  if test "x$ac_ct_CC" = x; then
2843c37a63b8Smrg    CC=""
2844c37a63b8Smrg  else
2845c37a63b8Smrg    case $cross_compiling:$ac_tool_warned in
2846c37a63b8Smrgyes:)
2847736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2848c37a63b8Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2849c37a63b8Smrgac_tool_warned=yes ;;
2850c37a63b8Smrgesac
2851c37a63b8Smrg    CC=$ac_ct_CC
2852c37a63b8Smrg  fi
2853264fa531Smrgelse
2854264fa531Smrg  CC="$ac_cv_prog_CC"
2855264fa531Smrgfi
2856264fa531Smrg
2857264fa531Smrgif test -z "$CC"; then
2858c37a63b8Smrg          if test -n "$ac_tool_prefix"; then
2859c37a63b8Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2860264fa531Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
2861736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862c37a63b8Smrg$as_echo_n "checking for $ac_word... " >&6; }
2863736a7e2cSmrgif ${ac_cv_prog_CC+:} false; then :
2864c37a63b8Smrg  $as_echo_n "(cached) " >&6
2865264fa531Smrgelse
2866264fa531Smrg  if test -n "$CC"; then
2867264fa531Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2868264fa531Smrgelse
2869264fa531Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870264fa531Smrgfor as_dir in $PATH
2871264fa531Smrgdo
2872264fa531Smrg  IFS=$as_save_IFS
2873264fa531Smrg  test -z "$as_dir" && as_dir=.
2874736a7e2cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2875c37a63b8Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2876264fa531Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
2877736a7e2cSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878264fa531Smrg    break 2
2879264fa531Smrg  fi
2880264fa531Smrgdone
2881736a7e2cSmrg  done
2882c37a63b8SmrgIFS=$as_save_IFS
2883264fa531Smrg
2884264fa531Smrgfi
2885264fa531Smrgfi
2886264fa531SmrgCC=$ac_cv_prog_CC
2887264fa531Smrgif test -n "$CC"; then
2888736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2889c37a63b8Smrg$as_echo "$CC" >&6; }
2890264fa531Smrgelse
2891736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892c37a63b8Smrg$as_echo "no" >&6; }
2893264fa531Smrgfi
2894264fa531Smrg
2895264fa531Smrg
2896c37a63b8Smrg  fi
2897264fa531Smrgfi
2898264fa531Smrgif test -z "$CC"; then
2899264fa531Smrg  # Extract the first word of "cc", so it can be a program name with args.
2900264fa531Smrgset dummy cc; ac_word=$2
2901736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902c37a63b8Smrg$as_echo_n "checking for $ac_word... " >&6; }
2903736a7e2cSmrgif ${ac_cv_prog_CC+:} false; then :
2904c37a63b8Smrg  $as_echo_n "(cached) " >&6
2905264fa531Smrgelse
2906264fa531Smrg  if test -n "$CC"; then
2907264fa531Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2908264fa531Smrgelse
2909264fa531Smrg  ac_prog_rejected=no
2910264fa531Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911264fa531Smrgfor as_dir in $PATH
2912264fa531Smrgdo
2913264fa531Smrg  IFS=$as_save_IFS
2914264fa531Smrg  test -z "$as_dir" && as_dir=.
2915736a7e2cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2916c37a63b8Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2917264fa531Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2918264fa531Smrg       ac_prog_rejected=yes
2919264fa531Smrg       continue
2920264fa531Smrg     fi
2921264fa531Smrg    ac_cv_prog_CC="cc"
2922736a7e2cSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2923264fa531Smrg    break 2
2924264fa531Smrg  fi
2925264fa531Smrgdone
2926736a7e2cSmrg  done
2927c37a63b8SmrgIFS=$as_save_IFS
2928264fa531Smrg
2929264fa531Smrgif test $ac_prog_rejected = yes; then
2930264fa531Smrg  # We found a bogon in the path, so make sure we never use it.
2931264fa531Smrg  set dummy $ac_cv_prog_CC
2932264fa531Smrg  shift
2933264fa531Smrg  if test $# != 0; then
2934264fa531Smrg    # We chose a different compiler from the bogus one.
2935264fa531Smrg    # However, it has the same basename, so the bogon will be chosen
2936264fa531Smrg    # first if we set CC to just the basename; use the full file name.
2937264fa531Smrg    shift
2938264fa531Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2939264fa531Smrg  fi
2940264fa531Smrgfi
2941264fa531Smrgfi
2942264fa531Smrgfi
2943264fa531SmrgCC=$ac_cv_prog_CC
2944264fa531Smrgif test -n "$CC"; then
2945736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2946c37a63b8Smrg$as_echo "$CC" >&6; }
2947264fa531Smrgelse
2948736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949c37a63b8Smrg$as_echo "no" >&6; }
2950264fa531Smrgfi
2951264fa531Smrg
2952c37a63b8Smrg
2953264fa531Smrgfi
2954264fa531Smrgif test -z "$CC"; then
2955264fa531Smrg  if test -n "$ac_tool_prefix"; then
2956c37a63b8Smrg  for ac_prog in cl.exe
2957264fa531Smrg  do
2958264fa531Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2959264fa531Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
2960736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961c37a63b8Smrg$as_echo_n "checking for $ac_word... " >&6; }
2962736a7e2cSmrgif ${ac_cv_prog_CC+:} false; then :
2963c37a63b8Smrg  $as_echo_n "(cached) " >&6
2964264fa531Smrgelse
2965264fa531Smrg  if test -n "$CC"; then
2966264fa531Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2967264fa531Smrgelse
2968264fa531Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969264fa531Smrgfor as_dir in $PATH
2970264fa531Smrgdo
2971264fa531Smrg  IFS=$as_save_IFS
2972264fa531Smrg  test -z "$as_dir" && as_dir=.
2973736a7e2cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2974c37a63b8Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2975264fa531Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2976736a7e2cSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977264fa531Smrg    break 2
2978264fa531Smrg  fi
2979264fa531Smrgdone
2980736a7e2cSmrg  done
2981c37a63b8SmrgIFS=$as_save_IFS
2982264fa531Smrg
2983264fa531Smrgfi
2984264fa531Smrgfi
2985264fa531SmrgCC=$ac_cv_prog_CC
2986264fa531Smrgif test -n "$CC"; then
2987736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2988c37a63b8Smrg$as_echo "$CC" >&6; }
2989264fa531Smrgelse
2990736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991c37a63b8Smrg$as_echo "no" >&6; }
2992264fa531Smrgfi
2993264fa531Smrg
2994c37a63b8Smrg
2995264fa531Smrg    test -n "$CC" && break
2996264fa531Smrg  done
2997264fa531Smrgfi
2998264fa531Smrgif test -z "$CC"; then
2999264fa531Smrg  ac_ct_CC=$CC
3000c37a63b8Smrg  for ac_prog in cl.exe
3001264fa531Smrgdo
3002264fa531Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
3003264fa531Smrgset dummy $ac_prog; ac_word=$2
3004736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005c37a63b8Smrg$as_echo_n "checking for $ac_word... " >&6; }
3006736a7e2cSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
3007c37a63b8Smrg  $as_echo_n "(cached) " >&6
3008264fa531Smrgelse
3009264fa531Smrg  if test -n "$ac_ct_CC"; then
3010264fa531Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3011264fa531Smrgelse
3012264fa531Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013264fa531Smrgfor as_dir in $PATH
3014264fa531Smrgdo
3015264fa531Smrg  IFS=$as_save_IFS
3016264fa531Smrg  test -z "$as_dir" && as_dir=.
3017736a7e2cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3018c37a63b8Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3019264fa531Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
3020736a7e2cSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021264fa531Smrg    break 2
3022264fa531Smrg  fi
3023264fa531Smrgdone
3024736a7e2cSmrg  done
3025c37a63b8SmrgIFS=$as_save_IFS
3026264fa531Smrg
3027264fa531Smrgfi
3028264fa531Smrgfi
3029264fa531Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3030264fa531Smrgif test -n "$ac_ct_CC"; then
3031736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3032c37a63b8Smrg$as_echo "$ac_ct_CC" >&6; }
3033264fa531Smrgelse
3034736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035c37a63b8Smrg$as_echo "no" >&6; }
3036264fa531Smrgfi
3037264fa531Smrg
3038c37a63b8Smrg
3039264fa531Smrg  test -n "$ac_ct_CC" && break
3040264fa531Smrgdone
3041264fa531Smrg
3042c37a63b8Smrg  if test "x$ac_ct_CC" = x; then
3043c37a63b8Smrg    CC=""
3044c37a63b8Smrg  else
3045c37a63b8Smrg    case $cross_compiling:$ac_tool_warned in
3046c37a63b8Smrgyes:)
3047736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3048c37a63b8Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3049c37a63b8Smrgac_tool_warned=yes ;;
3050c37a63b8Smrgesac
3051c37a63b8Smrg    CC=$ac_ct_CC
3052c37a63b8Smrg  fi
3053264fa531Smrgfi
3054264fa531Smrg
3055264fa531Smrgfi
3056264fa531Smrg
3057264fa531Smrg
3058736a7e2cSmrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3059c37a63b8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3060736a7e2cSmrgas_fn_error $? "no acceptable C compiler found in \$PATH
3061736a7e2cSmrgSee \`config.log' for more details" "$LINENO" 5; }
3062264fa531Smrg
3063264fa531Smrg# Provide some information about the compiler.
3064736a7e2cSmrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3065c37a63b8Smrgset X $ac_compile
3066c37a63b8Smrgac_compiler=$2
3067736a7e2cSmrgfor ac_option in --version -v -V -qversion; do
3068736a7e2cSmrg  { { ac_try="$ac_compiler $ac_option >&5"
3069c37a63b8Smrgcase "(($ac_try" in
3070c37a63b8Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071c37a63b8Smrg  *) ac_try_echo=$ac_try;;
3072c37a63b8Smrgesac
3073736a7e2cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3074736a7e2cSmrg$as_echo "$ac_try_echo"; } >&5
3075736a7e2cSmrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3076264fa531Smrg  ac_status=$?
3077736a7e2cSmrg  if test -s conftest.err; then
3078736a7e2cSmrg    sed '10a\
3079736a7e2cSmrg... rest of stderr output deleted ...
3080736a7e2cSmrg         10q' conftest.err >conftest.er1
3081736a7e2cSmrg    cat conftest.er1 >&5
3082736a7e2cSmrg  fi
3083736a7e2cSmrg  rm -f conftest.er1 conftest.err
3084736a7e2cSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3085736a7e2cSmrg  test $ac_status = 0; }
3086736a7e2cSmrgdone
3087264fa531Smrg
3088736a7e2cSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3089264fa531Smrg/* end confdefs.h.  */
3090264fa531Smrg
3091264fa531Smrgint
3092264fa531Smrgmain ()
3093264fa531Smrg{
3094264fa531Smrg
3095264fa531Smrg  ;
3096264fa531Smrg  return 0;
3097264fa531Smrg}
3098264fa531Smrg_ACEOF
3099264fa531Smrgac_clean_files_save=$ac_clean_files
3100c37a63b8Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3101264fa531Smrg# Try to create an executable without -o first, disregard a.out.
3102264fa531Smrg# It will help us diagnose broken compilers, and finding out an intuition
3103264fa531Smrg# of exeext.
3104736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3105736a7e2cSmrg$as_echo_n "checking whether the C compiler works... " >&6; }
3106c37a63b8Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3107c37a63b8Smrg
3108c37a63b8Smrg# The possible output files:
3109c37a63b8Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3110c37a63b8Smrg
3111c37a63b8Smrgac_rmfiles=
3112c37a63b8Smrgfor ac_file in $ac_files
3113c37a63b8Smrgdo
3114c37a63b8Smrg  case $ac_file in
3115c37a63b8Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3116c37a63b8Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3117c37a63b8Smrg  esac
3118c37a63b8Smrgdone
3119c37a63b8Smrgrm -f $ac_rmfiles
3120c37a63b8Smrg
3121736a7e2cSmrgif { { ac_try="$ac_link_default"
3122c37a63b8Smrgcase "(($ac_try" in
3123c37a63b8Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124c37a63b8Smrg  *) ac_try_echo=$ac_try;;
3125c37a63b8Smrgesac
3126736a7e2cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3127736a7e2cSmrg$as_echo "$ac_try_echo"; } >&5
3128c37a63b8Smrg  (eval "$ac_link_default") 2>&5
3129264fa531Smrg  ac_status=$?
3130736a7e2cSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3131736a7e2cSmrg  test $ac_status = 0; }; then :
3132c37a63b8Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3133c37a63b8Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3134c37a63b8Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3135c37a63b8Smrg# so that the user can short-circuit this test for compilers unknown to
3136c37a63b8Smrg# Autoconf.
3137c37a63b8Smrgfor ac_file in $ac_files ''
3138264fa531Smrgdo
3139264fa531Smrg  test -f "$ac_file" || continue
3140264fa531Smrg  case $ac_file in
3141c37a63b8Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3142264fa531Smrg	;;
3143264fa531Smrg    [ab].out )
3144264fa531Smrg	# We found the default executable, but exeext='' is most
3145264fa531Smrg	# certainly right.
3146264fa531Smrg	break;;
3147264fa531Smrg    *.* )
3148736a7e2cSmrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3149c37a63b8Smrg	then :; else
3150c37a63b8Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3151c37a63b8Smrg	fi
3152c37a63b8Smrg	# We set ac_cv_exeext here because the later test for it is not
3153c37a63b8Smrg	# safe: cross compilers may not add the suffix if given an `-o'
3154c37a63b8Smrg	# argument, so we may need to know it at that point already.
3155c37a63b8Smrg	# Even if this section looks crufty: it has the advantage of
3156c37a63b8Smrg	# actually working.
3157264fa531Smrg	break;;
3158264fa531Smrg    * )
3159264fa531Smrg	break;;
3160264fa531Smrg  esac
3161264fa531Smrgdone
3162c37a63b8Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
3163c37a63b8Smrg
3164264fa531Smrgelse
3165c37a63b8Smrg  ac_file=''
3166c37a63b8Smrgfi
3167736a7e2cSmrgif test -z "$ac_file"; then :
3168736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169736a7e2cSmrg$as_echo "no" >&6; }
3170736a7e2cSmrg$as_echo "$as_me: failed program was:" >&5
3171264fa531Smrgsed 's/^/| /' conftest.$ac_ext >&5
3172264fa531Smrg
3173736a7e2cSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3174c37a63b8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3175736a7e2cSmrgas_fn_error 77 "C compiler cannot create executables
3176736a7e2cSmrgSee \`config.log' for more details" "$LINENO" 5; }
3177736a7e2cSmrgelse
3178736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3179736a7e2cSmrg$as_echo "yes" >&6; }
3180264fa531Smrgfi
3181736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3182736a7e2cSmrg$as_echo_n "checking for C compiler default output file name... " >&6; }
3183736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3184736a7e2cSmrg$as_echo "$ac_file" >&6; }
3185264fa531Smrgac_exeext=$ac_cv_exeext
3186264fa531Smrg
3187c37a63b8Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3188264fa531Smrgac_clean_files=$ac_clean_files_save
3189736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3190c37a63b8Smrg$as_echo_n "checking for suffix of executables... " >&6; }
3191736a7e2cSmrgif { { ac_try="$ac_link"
3192c37a63b8Smrgcase "(($ac_try" in
3193c37a63b8Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194c37a63b8Smrg  *) ac_try_echo=$ac_try;;
3195c37a63b8Smrgesac
3196736a7e2cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3197736a7e2cSmrg$as_echo "$ac_try_echo"; } >&5
3198c37a63b8Smrg  (eval "$ac_link") 2>&5
3199264fa531Smrg  ac_status=$?
3200736a7e2cSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3201736a7e2cSmrg  test $ac_status = 0; }; then :
3202264fa531Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3203264fa531Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3204264fa531Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
3205264fa531Smrg# `rm'.
3206264fa531Smrgfor ac_file in conftest.exe conftest conftest.*; do
3207264fa531Smrg  test -f "$ac_file" || continue
3208264fa531Smrg  case $ac_file in
3209c37a63b8Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3210264fa531Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3211264fa531Smrg	  break;;
3212264fa531Smrg    * ) break;;
3213264fa531Smrg  esac
3214264fa531Smrgdone
3215264fa531Smrgelse
3216736a7e2cSmrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3217c37a63b8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3218736a7e2cSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
3219736a7e2cSmrgSee \`config.log' for more details" "$LINENO" 5; }
3220264fa531Smrgfi
3221736a7e2cSmrgrm -f conftest conftest$ac_cv_exeext
3222736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3223c37a63b8Smrg$as_echo "$ac_cv_exeext" >&6; }
3224264fa531Smrg
3225264fa531Smrgrm -f conftest.$ac_ext
3226264fa531SmrgEXEEXT=$ac_cv_exeext
3227264fa531Smrgac_exeext=$EXEEXT
3228736a7e2cSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229736a7e2cSmrg/* end confdefs.h.  */
3230736a7e2cSmrg#include <stdio.h>
3231736a7e2cSmrgint
3232736a7e2cSmrgmain ()
3233736a7e2cSmrg{
3234736a7e2cSmrgFILE *f = fopen ("conftest.out", "w");
3235736a7e2cSmrg return ferror (f) || fclose (f) != 0;
3236736a7e2cSmrg
3237736a7e2cSmrg  ;
3238736a7e2cSmrg  return 0;
3239736a7e2cSmrg}
3240736a7e2cSmrg_ACEOF
3241736a7e2cSmrgac_clean_files="$ac_clean_files conftest.out"
3242736a7e2cSmrg# Check that the compiler produces executables we can run.  If not, either
3243736a7e2cSmrg# the compiler is broken, or we cross compile.
3244736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3245736a7e2cSmrg$as_echo_n "checking whether we are cross compiling... " >&6; }
3246736a7e2cSmrgif test "$cross_compiling" != yes; then
3247736a7e2cSmrg  { { ac_try="$ac_link"
3248736a7e2cSmrgcase "(($ac_try" in
3249736a7e2cSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250736a7e2cSmrg  *) ac_try_echo=$ac_try;;
3251736a7e2cSmrgesac
3252736a7e2cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3253736a7e2cSmrg$as_echo "$ac_try_echo"; } >&5
3254736a7e2cSmrg  (eval "$ac_link") 2>&5
3255736a7e2cSmrg  ac_status=$?
3256736a7e2cSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3257736a7e2cSmrg  test $ac_status = 0; }
3258736a7e2cSmrg  if { ac_try='./conftest$ac_cv_exeext'
3259736a7e2cSmrg  { { case "(($ac_try" in
3260736a7e2cSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261736a7e2cSmrg  *) ac_try_echo=$ac_try;;
3262736a7e2cSmrgesac
3263736a7e2cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264736a7e2cSmrg$as_echo "$ac_try_echo"; } >&5
3265736a7e2cSmrg  (eval "$ac_try") 2>&5
3266736a7e2cSmrg  ac_status=$?
3267736a7e2cSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268736a7e2cSmrg  test $ac_status = 0; }; }; then
3269736a7e2cSmrg    cross_compiling=no
3270736a7e2cSmrg  else
3271736a7e2cSmrg    if test "$cross_compiling" = maybe; then
3272736a7e2cSmrg	cross_compiling=yes
3273736a7e2cSmrg    else
3274736a7e2cSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275736a7e2cSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276736a7e2cSmrgas_fn_error $? "cannot run C compiled programs.
3277736a7e2cSmrgIf you meant to cross compile, use \`--host'.
3278736a7e2cSmrgSee \`config.log' for more details" "$LINENO" 5; }
3279736a7e2cSmrg    fi
3280736a7e2cSmrg  fi
3281736a7e2cSmrgfi
3282736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3283736a7e2cSmrg$as_echo "$cross_compiling" >&6; }
3284736a7e2cSmrg
3285736a7e2cSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3286736a7e2cSmrgac_clean_files=$ac_clean_files_save
3287736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3288c37a63b8Smrg$as_echo_n "checking for suffix of object files... " >&6; }
3289736a7e2cSmrgif ${ac_cv_objext+:} false; then :
3290c37a63b8Smrg  $as_echo_n "(cached) " >&6
3291264fa531Smrgelse
3292736a7e2cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293264fa531Smrg/* end confdefs.h.  */
3294264fa531Smrg
3295264fa531Smrgint
3296264fa531Smrgmain ()
3297264fa531Smrg{
3298264fa531Smrg
3299264fa531Smrg  ;
3300264fa531Smrg  return 0;
3301264fa531Smrg}
3302264fa531Smrg_ACEOF
3303264fa531Smrgrm -f conftest.o conftest.obj
3304736a7e2cSmrgif { { ac_try="$ac_compile"
3305c37a63b8Smrgcase "(($ac_try" in
3306c37a63b8Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307c37a63b8Smrg  *) ac_try_echo=$ac_try;;
3308c37a63b8Smrgesac
3309736a7e2cSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310736a7e2cSmrg$as_echo "$ac_try_echo"; } >&5
3311c37a63b8Smrg  (eval "$ac_compile") 2>&5
3312264fa531Smrg  ac_status=$?
3313736a7e2cSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3314736a7e2cSmrg  test $ac_status = 0; }; then :
3315c37a63b8Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
3316c37a63b8Smrg  test -f "$ac_file" || continue;
3317264fa531Smrg  case $ac_file in
3318c37a63b8Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3319264fa531Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3320264fa531Smrg       break;;
3321264fa531Smrg  esac
3322264fa531Smrgdone
3323264fa531Smrgelse
3324c37a63b8Smrg  $as_echo "$as_me: failed program was:" >&5
3325264fa531Smrgsed 's/^/| /' conftest.$ac_ext >&5
3326264fa531Smrg
3327736a7e2cSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3328c37a63b8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3329736a7e2cSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile
3330736a7e2cSmrgSee \`config.log' for more details" "$LINENO" 5; }
3331264fa531Smrgfi
3332264fa531Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
3333264fa531Smrgfi
3334736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3335c37a63b8Smrg$as_echo "$ac_cv_objext" >&6; }
3336264fa531SmrgOBJEXT=$ac_cv_objext
3337264fa531Smrgac_objext=$OBJEXT
3338736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3339c37a63b8Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3340736a7e2cSmrgif ${ac_cv_c_compiler_gnu+:} false; then :
3341c37a63b8Smrg  $as_echo_n "(cached) " >&6
3342264fa531Smrgelse
3343736a7e2cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344264fa531Smrg/* end confdefs.h.  */
3345264fa531Smrg
3346264fa531Smrgint
3347264fa531Smrgmain ()
3348264fa531Smrg{
3349264fa531Smrg#ifndef __GNUC__
3350264fa531Smrg       choke me
3351264fa531Smrg#endif
3352264fa531Smrg
3353264fa531Smrg  ;
3354264fa531Smrg  return 0;
3355264fa531Smrg}
3356264fa531Smrg_ACEOF
3357736a7e2cSmrgif ac_fn_c_try_compile "$LINENO"; then :
3358264fa531Smrg  ac_compiler_gnu=yes
3359264fa531Smrgelse
3360736a7e2cSmrg  ac_compiler_gnu=no
3361264fa531Smrgfi
3362c37a63b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363264fa531Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
3364264fa531Smrg
3365264fa531Smrgfi
3366736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3367c37a63b8Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3368c37a63b8Smrgif test $ac_compiler_gnu = yes; then
3369c37a63b8Smrg  GCC=yes
3370c37a63b8Smrgelse
3371c37a63b8Smrg  GCC=
3372c37a63b8Smrgfi
3373264fa531Smrgac_test_CFLAGS=${CFLAGS+set}
3374264fa531Smrgac_save_CFLAGS=$CFLAGS
3375736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3376c37a63b8Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
3377736a7e2cSmrgif ${ac_cv_prog_cc_g+:} false; then :
3378c37a63b8Smrg  $as_echo_n "(cached) " >&6
3379264fa531Smrgelse
3380c37a63b8Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
3381c37a63b8Smrg   ac_c_werror_flag=yes
3382c37a63b8Smrg   ac_cv_prog_cc_g=no
3383c37a63b8Smrg   CFLAGS="-g"
3384736a7e2cSmrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385264fa531Smrg/* end confdefs.h.  */
3386264fa531Smrg
3387264fa531Smrgint
3388264fa531Smrgmain ()
3389264fa531Smrg{
3390264fa531Smrg
3391264fa531Smrg  ;
3392264fa531Smrg  return 0;
3393264fa531Smrg}
3394264fa531Smrg_ACEOF
3395736a7e2cSmrgif ac_fn_c_try_compile "$LINENO"; then :
3396c37a63b8Smrg  ac_cv_prog_cc_g=yes
3397c37a63b8Smrgelse
3398736a7e2cSmrg  CFLAGS=""
3399736a7e2cSmrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400c37a63b8Smrg/* end confdefs.h.  */
3401c37a63b8Smrg
3402c37a63b8Smrgint
3403c37a63b8Smrgmain ()
3404c37a63b8Smrg{
3405c37a63b8Smrg
3406c37a63b8Smrg  ;
3407c37a63b8Smrg  return 0;
3408c37a63b8Smrg}
3409c37a63b8Smrg_ACEOF
3410736a7e2cSmrgif ac_fn_c_try_compile "$LINENO"; then :
3411c37a63b8Smrg
3412736a7e2cSmrgelse
3413736a7e2cSmrg  ac_c_werror_flag=$ac_save_c_werror_flag
3414c37a63b8Smrg	 CFLAGS="-g"
3415736a7e2cSmrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416c37a63b8Smrg/* end confdefs.h.  */
3417c37a63b8Smrg
3418c37a63b8Smrgint
3419c37a63b8Smrgmain ()
3420c37a63b8Smrg{
3421c37a63b8Smrg
3422c37a63b8Smrg  ;
3423c37a63b8Smrg  return 0;
3424c37a63b8Smrg}
3425c37a63b8Smrg_ACEOF
3426736a7e2cSmrgif ac_fn_c_try_compile "$LINENO"; then :
3427264fa531Smrg  ac_cv_prog_cc_g=yes
3428c37a63b8Smrgfi
3429c37a63b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430c37a63b8Smrgfi
3431c37a63b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3432264fa531Smrgfi
3433c37a63b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3434c37a63b8Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
3435264fa531Smrgfi
3436736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3437c37a63b8Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
3438264fa531Smrgif test "$ac_test_CFLAGS" = set; then
3439264fa531Smrg  CFLAGS=$ac_save_CFLAGS
3440264fa531Smrgelif test $ac_cv_prog_cc_g = yes; then
3441264fa531Smrg  if test "$GCC" = yes; then
3442264fa531Smrg    CFLAGS="-g -O2"
3443264fa531Smrg  else
3444264fa531Smrg    CFLAGS="-g"
3445264fa531Smrg  fi
3446264fa531Smrgelse
3447264fa531Smrg  if test "$GCC" = yes; then
3448264fa531Smrg    CFLAGS="-O2"
3449264fa531Smrg  else
3450264fa531Smrg    CFLAGS=
3451264fa531Smrg  fi
3452264fa531Smrgfi
3453736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3454c37a63b8Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3455736a7e2cSmrgif ${ac_cv_prog_cc_c89+:} false; then :
3456c37a63b8Smrg  $as_echo_n "(cached) " >&6
3457264fa531Smrgelse
3458c37a63b8Smrg  ac_cv_prog_cc_c89=no
3459264fa531Smrgac_save_CC=$CC
3460736a7e2cSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461264fa531Smrg/* end confdefs.h.  */
3462264fa531Smrg#include <stdarg.h>
3463264fa531Smrg#include <stdio.h>
3464264fa531Smrg#include <sys/types.h>
3465264fa531Smrg#include <sys/stat.h>
3466264fa531Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3467264fa531Smrgstruct buf { int x; };
3468264fa531SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
3469264fa531Smrgstatic char *e (p, i)
3470264fa531Smrg     char **p;
3471264fa531Smrg     int i;
3472264fa531Smrg{
3473264fa531Smrg  return p[i];
3474264fa531Smrg}
3475264fa531Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
3476264fa531Smrg{
3477264fa531Smrg  char *s;
3478264fa531Smrg  va_list v;
3479264fa531Smrg  va_start (v,p);
3480264fa531Smrg  s = g (p, va_arg (v,int));
3481264fa531Smrg  va_end (v);
3482264fa531Smrg  return s;
3483264fa531Smrg}
3484264fa531Smrg
3485264fa531Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3486264fa531Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
3487264fa531Smrg   These don't provoke an error unfortunately, instead are silently treated
3488c37a63b8Smrg   as 'x'.  The following induces an error, until -std is added to get
3489264fa531Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3490264fa531Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
3491c37a63b8Smrg   that's true only with -std.  */
3492264fa531Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
3493264fa531Smrg
3494c37a63b8Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3495c37a63b8Smrg   inside strings and character constants.  */
3496c37a63b8Smrg#define FOO(x) 'x'
3497c37a63b8Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3498c37a63b8Smrg
3499264fa531Smrgint test (int i, double x);
3500264fa531Smrgstruct s1 {int (*f) (int a);};
3501264fa531Smrgstruct s2 {int (*f) (double a);};
3502264fa531Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3503264fa531Smrgint argc;
3504264fa531Smrgchar **argv;
3505264fa531Smrgint
3506264fa531Smrgmain ()
3507264fa531Smrg{
3508264fa531Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3509264fa531Smrg  ;
3510264fa531Smrg  return 0;
3511264fa531Smrg}
3512264fa531Smrg_ACEOF
3513c37a63b8Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3514c37a63b8Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3515264fa531Smrgdo
3516264fa531Smrg  CC="$ac_save_CC $ac_arg"
3517736a7e2cSmrg  if ac_fn_c_try_compile "$LINENO"; then :
3518c37a63b8Smrg  ac_cv_prog_cc_c89=$ac_arg
3519264fa531Smrgfi
3520c37a63b8Smrgrm -f core conftest.err conftest.$ac_objext
3521c37a63b8Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
3522264fa531Smrgdone
3523c37a63b8Smrgrm -f conftest.$ac_ext
3524264fa531SmrgCC=$ac_save_CC
3525264fa531Smrg
3526264fa531Smrgfi
3527c37a63b8Smrg# AC_CACHE_VAL
3528c37a63b8Smrgcase "x$ac_cv_prog_cc_c89" in
3529c37a63b8Smrg  x)
3530736a7e2cSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3531c37a63b8Smrg$as_echo "none needed" >&6; } ;;
3532c37a63b8Smrg  xno)
3533736a7e2cSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3534c37a63b8Smrg$as_echo "unsupported" >&6; } ;;
3535264fa531Smrg  *)
3536c37a63b8Smrg    CC="$CC $ac_cv_prog_cc_c89"
3537736a7e2cSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3538c37a63b8Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3539264fa531Smrgesac
3540736a7e2cSmrgif test "x$ac_cv_prog_cc_c89" != xno; then :
3541264fa531Smrg
3542736a7e2cSmrgfi
3543264fa531Smrg
3544264fa531Smrgac_ext=c
3545264fa531Smrgac_cpp='$CPP $CPPFLAGS'
3546264fa531Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547264fa531Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548264fa531Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3549264fa531Smrg
3550264fa531Smrgdepcc="$CC"   am_compiler_list=
3551264fa531Smrg
3552736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3553c37a63b8Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
3554736a7e2cSmrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
3555c37a63b8Smrg  $as_echo_n "(cached) " >&6
3556264fa531Smrgelse
3557264fa531Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3558264fa531Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
3559264fa531Smrg  # making bogus files that we don't know about and never remove.  For
3560264fa531Smrg  # instance it was reported that on HP-UX the gcc test will end up
3561264fa531Smrg  # making a dummy file named `D' -- because `-MD' means `put the output
3562264fa531Smrg  # in D'.
3563264fa531Smrg  mkdir conftest.dir
3564264fa531Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
3565264fa531Smrg  # using a relative directory.
3566264fa531Smrg  cp "$am_depcomp" conftest.dir
3567264fa531Smrg  cd conftest.dir
3568264fa531Smrg  # We will build objects and dependencies in a subdirectory because
3569264fa531Smrg  # it helps to detect inapplicable dependency modes.  For instance
3570264fa531Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
3571264fa531Smrg  # side effect of compilation, but ICC will put the dependencies in
3572264fa531Smrg  # the current directory while Tru64 will put them in the object
3573264fa531Smrg  # directory.
3574264fa531Smrg  mkdir sub
3575264fa531Smrg
3576264fa531Smrg  am_cv_CC_dependencies_compiler_type=none
3577264fa531Smrg  if test "$am_compiler_list" = ""; then
3578264fa531Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3579264fa531Smrg  fi
3580c37a63b8Smrg  am__universal=false
3581c37a63b8Smrg  case " $depcc " in #(
3582c37a63b8Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3583c37a63b8Smrg     esac
3584c37a63b8Smrg
3585264fa531Smrg  for depmode in $am_compiler_list; do
3586264fa531Smrg    # Setup a source with many dependencies, because some compilers
3587264fa531Smrg    # like to wrap large dependency lists on column 80 (with \), and
3588264fa531Smrg    # we should not choose a depcomp mode which is confused by this.
3589264fa531Smrg    #
3590264fa531Smrg    # We need to recreate these files for each test, as the compiler may
3591264fa531Smrg    # overwrite some of them when testing with obscure command lines.
3592264fa531Smrg    # This happens at least with the AIX C compiler.
3593264fa531Smrg    : > sub/conftest.c
3594264fa531Smrg    for i in 1 2 3 4 5 6; do
3595264fa531Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3596c37a63b8Smrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3597c37a63b8Smrg      # Solaris 8's {/usr,}/bin/sh.
3598c37a63b8Smrg      touch sub/conftst$i.h
3599264fa531Smrg    done
3600264fa531Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3601264fa531Smrg
3602c37a63b8Smrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3603c37a63b8Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
3604c37a63b8Smrg    # handle `-M -o', and we need to detect this.  Also, some Intel
3605c37a63b8Smrg    # versions had trouble with output in subdirs
3606c37a63b8Smrg    am__obj=sub/conftest.${OBJEXT-o}
3607c37a63b8Smrg    am__minus_obj="-o $am__obj"
3608264fa531Smrg    case $depmode in
3609c37a63b8Smrg    gcc)
3610c37a63b8Smrg      # This depmode causes a compiler race in universal mode.
3611c37a63b8Smrg      test "$am__universal" = false || continue
3612c37a63b8Smrg      ;;
3613264fa531Smrg    nosideeffect)
3614264fa531Smrg      # after this tag, mechanisms are not by side-effect, so they'll
3615264fa531Smrg      # only be used when explicitly requested
3616264fa531Smrg      if test "x$enable_dependency_tracking" = xyes; then
3617264fa531Smrg	continue
3618264fa531Smrg      else
3619264fa531Smrg	break
3620264fa531Smrg      fi
3621264fa531Smrg      ;;
3622c37a63b8Smrg    msvisualcpp | msvcmsys)
3623c37a63b8Smrg      # This compiler won't grok `-c -o', but also, the minuso test has
3624c37a63b8Smrg      # not run yet.  These depmodes are late enough in the game, and
3625c37a63b8Smrg      # so weak that their functioning should not be impacted.
3626c37a63b8Smrg      am__obj=conftest.${OBJEXT-o}
3627c37a63b8Smrg      am__minus_obj=
3628c37a63b8Smrg      ;;
3629264fa531Smrg    none) break ;;
3630264fa531Smrg    esac
3631264fa531Smrg    if depmode=$depmode \
3632c37a63b8Smrg       source=sub/conftest.c object=$am__obj \
3633264fa531Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3634c37a63b8Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3635264fa531Smrg         >/dev/null 2>conftest.err &&
3636c37a63b8Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3637264fa531Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3638c37a63b8Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3639264fa531Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3640264fa531Smrg      # icc doesn't choke on unknown options, it will just issue warnings
3641c37a63b8Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
3642c37a63b8Smrg      # that says an option was ignored or not supported.
3643c37a63b8Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
3644c37a63b8Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
3645c37a63b8Smrg      # The diagnosis changed in icc 8.0:
3646c37a63b8Smrg      #   icc: Command line remark: option '-MP' not supported
3647c37a63b8Smrg      if (grep 'ignoring option' conftest.err ||
3648c37a63b8Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3649264fa531Smrg        am_cv_CC_dependencies_compiler_type=$depmode
3650264fa531Smrg        break
3651264fa531Smrg      fi
3652264fa531Smrg    fi
3653264fa531Smrg  done
3654264fa531Smrg
3655264fa531Smrg  cd ..
3656264fa531Smrg  rm -rf conftest.dir
3657264fa531Smrgelse
3658264fa531Smrg  am_cv_CC_dependencies_compiler_type=none
3659264fa531Smrgfi
3660264fa531Smrg
3661264fa531Smrgfi
3662736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3663c37a63b8Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3664264fa531SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3665264fa531Smrg
3666c37a63b8Smrg if
3667264fa531Smrg  test "x$enable_dependency_tracking" != xno \
3668264fa531Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3669264fa531Smrg  am__fastdepCC_TRUE=
3670264fa531Smrg  am__fastdepCC_FALSE='#'
3671264fa531Smrgelse
3672264fa531Smrg  am__fastdepCC_TRUE='#'
3673264fa531Smrg  am__fastdepCC_FALSE=
3674264fa531Smrgfi
3675264fa531Smrg
3676264fa531Smrg
3677736a7e2cSmrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3678736a7e2cSmrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3679736a7e2cSmrgif ${ac_cv_prog_cc_c99+:} false; then :
3680c37a63b8Smrg  $as_echo_n "(cached) " >&6
3681264fa531Smrgelse
3682736a7e2cSmrg  ac_cv_prog_cc_c99=no
3683736a7e2cSmrgac_save_CC=$CC
3684736a7e2cSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685736a7e2cSmrg/* end confdefs.h.  */
3686736a7e2cSmrg#include <stdarg.h>
3687736a7e2cSmrg#include <stdbool.h>
3688736a7e2cSmrg#include <stdlib.h>
3689736a7e2cSmrg#include <wchar.h>
3690736a7e2cSmrg#include <stdio.h>
3691c37a63b8Smrg
3692736a7e2cSmrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3693736a7e2cSmrg#define debug(...) fprintf (stderr, __VA_ARGS__)
3694736a7e2cSmrg#define showlist(...) puts (#__VA_ARGS__)
3695736a7e2cSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3696736a7e2cSmrgstatic void
3697736a7e2cSmrgtest_varargs_macros (void)
3698736a7e2cSmrg{
3699736a7e2cSmrg  int x = 1234;
3700736a7e2cSmrg  int y = 5678;
3701736a7e2cSmrg  debug ("Flag");
3702736a7e2cSmrg  debug ("X = %d\n", x);
3703736a7e2cSmrg  showlist (The first, second, and third items.);
3704736a7e2cSmrg  report (x>y, "x is %d but y is %d", x, y);
3705736a7e2cSmrg}
3706264fa531Smrg
3707736a7e2cSmrg// Check long long types.
3708736a7e2cSmrg#define BIG64 18446744073709551615ull
3709736a7e2cSmrg#define BIG32 4294967295ul
3710736a7e2cSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3711736a7e2cSmrg#if !BIG_OK
3712736a7e2cSmrg  your preprocessor is broken;
3713736a7e2cSmrg#endif
3714736a7e2cSmrg#if BIG_OK
3715736a7e2cSmrg#else
3716736a7e2cSmrg  your preprocessor is broken;
3717736a7e2cSmrg#endif
3718736a7e2cSmrgstatic long long int bignum = -9223372036854775807LL;
3719736a7e2cSmrgstatic unsigned long long int ubignum = BIG64;
3720264fa531Smrg
3721736a7e2cSmrgstruct incomplete_array
3722736a7e2cSmrg{
3723736a7e2cSmrg  int datasize;
3724736a7e2cSmrg  double data[];
3725736a7e2cSmrg};
3726264fa531Smrg
3727736a7e2cSmrgstruct named_init {
3728736a7e2cSmrg  int number;
3729736a7e2cSmrg  const wchar_t *name;
3730736a7e2cSmrg  double average;
3731736a7e2cSmrg};
3732264fa531Smrg
3733736a7e2cSmrgtypedef const char *ccp;
3734264fa531Smrg
3735736a7e2cSmrgstatic inline int
3736736a7e2cSmrgtest_restrict (ccp restrict text)
3737736a7e2cSmrg{
3738736a7e2cSmrg  // See if C++-style comments work.
3739736a7e2cSmrg  // Iterate through items via the restricted pointer.
3740736a7e2cSmrg  // Also check for declarations in for loops.
3741736a7e2cSmrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3742736a7e2cSmrg    continue;
3743736a7e2cSmrg  return 0;
3744736a7e2cSmrg}
3745736a7e2cSmrg
3746736a7e2cSmrg// Check varargs and va_copy.
3747736a7e2cSmrgstatic void
3748736a7e2cSmrgtest_varargs (const char *format, ...)
3749736a7e2cSmrg{
3750736a7e2cSmrg  va_list args;
3751736a7e2cSmrg  va_start (args, format);
3752736a7e2cSmrg  va_list args_copy;
3753736a7e2cSmrg  va_copy (args_copy, args);
3754736a7e2cSmrg
3755736a7e2cSmrg  const char *str;
3756736a7e2cSmrg  int number;
3757736a7e2cSmrg  float fnumber;
3758736a7e2cSmrg
3759736a7e2cSmrg  while (*format)
3760736a7e2cSmrg    {
3761736a7e2cSmrg      switch (*format++)
3762736a7e2cSmrg	{
3763736a7e2cSmrg	case 's': // string
3764736a7e2cSmrg	  str = va_arg (args_copy, const char *);
3765736a7e2cSmrg	  break;
3766736a7e2cSmrg	case 'd': // int
3767736a7e2cSmrg	  number = va_arg (args_copy, int);
3768736a7e2cSmrg	  break;
3769736a7e2cSmrg	case 'f': // float
3770736a7e2cSmrg	  fnumber = va_arg (args_copy, double);
3771736a7e2cSmrg	  break;
3772736a7e2cSmrg	default:
3773736a7e2cSmrg	  break;
3774736a7e2cSmrg	}
3775736a7e2cSmrg    }
3776736a7e2cSmrg  va_end (args_copy);
3777736a7e2cSmrg  va_end (args);
3778736a7e2cSmrg}
3779736a7e2cSmrg
3780736a7e2cSmrgint
3781736a7e2cSmrgmain ()
3782736a7e2cSmrg{
3783736a7e2cSmrg
3784736a7e2cSmrg  // Check bool.
3785736a7e2cSmrg  _Bool success = false;
3786736a7e2cSmrg
3787736a7e2cSmrg  // Check restrict.
3788736a7e2cSmrg  if (test_restrict ("String literal") == 0)
3789736a7e2cSmrg    success = true;
3790736a7e2cSmrg  char *restrict newvar = "Another string";
3791736a7e2cSmrg
3792736a7e2cSmrg  // Check varargs.
3793736a7e2cSmrg  test_varargs ("s, d' f .", "string", 65, 34.234);
3794736a7e2cSmrg  test_varargs_macros ();
3795736a7e2cSmrg
3796736a7e2cSmrg  // Check flexible array members.
3797736a7e2cSmrg  struct incomplete_array *ia =
3798736a7e2cSmrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3799736a7e2cSmrg  ia->datasize = 10;
3800736a7e2cSmrg  for (int i = 0; i < ia->datasize; ++i)
3801736a7e2cSmrg    ia->data[i] = i * 1.234;
3802736a7e2cSmrg
3803736a7e2cSmrg  // Check named initializers.
3804736a7e2cSmrg  struct named_init ni = {
3805736a7e2cSmrg    .number = 34,
3806736a7e2cSmrg    .name = L"Test wide string",
3807736a7e2cSmrg    .average = 543.34343,
3808736a7e2cSmrg  };
3809736a7e2cSmrg
3810736a7e2cSmrg  ni.number = 58;
3811736a7e2cSmrg
3812736a7e2cSmrg  int dynamic_array[ni.number];
3813736a7e2cSmrg  dynamic_array[ni.number - 1] = 543;
3814736a7e2cSmrg
3815736a7e2cSmrg  // work around unused variable warnings
3816736a7e2cSmrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3817736a7e2cSmrg	  || dynamic_array[ni.number - 1] != 543);
3818736a7e2cSmrg
3819736a7e2cSmrg  ;
3820736a7e2cSmrg  return 0;
3821736a7e2cSmrg}
3822736a7e2cSmrg_ACEOF
3823736a7e2cSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3824736a7e2cSmrgdo
3825736a7e2cSmrg  CC="$ac_save_CC $ac_arg"
3826736a7e2cSmrg  if ac_fn_c_try_compile "$LINENO"; then :
3827736a7e2cSmrg  ac_cv_prog_cc_c99=$ac_arg
3828736a7e2cSmrgfi
3829736a7e2cSmrgrm -f core conftest.err conftest.$ac_objext
3830736a7e2cSmrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
3831736a7e2cSmrgdone
3832736a7e2cSmrgrm -f conftest.$ac_ext
3833736a7e2cSmrgCC=$ac_save_CC
3834736a7e2cSmrg
3835736a7e2cSmrgfi
3836736a7e2cSmrg# AC_CACHE_VAL
3837736a7e2cSmrgcase "x$ac_cv_prog_cc_c99" in
3838736a7e2cSmrg  x)
3839736a7e2cSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3840736a7e2cSmrg$as_echo "none needed" >&6; } ;;
3841736a7e2cSmrg  xno)
3842736a7e2cSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3843736a7e2cSmrg$as_echo "unsupported" >&6; } ;;
3844736a7e2cSmrg  *)
3845736a7e2cSmrg    CC="$CC $ac_cv_prog_cc_c99"
3846736a7e2cSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3847736a7e2cSmrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3848736a7e2cSmrgesac
3849736a7e2cSmrgif test "x$ac_cv_prog_cc_c99" != xno; then :
3850736a7e2cSmrg
3851736a7e2cSmrgfi
3852264fa531Smrg
3853264fa531Smrg
3854c37a63b8Smrg
3855c37a63b8Smrgac_ext=c
3856c37a63b8Smrgac_cpp='$CPP $CPPFLAGS'
3857c37a63b8Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3858c37a63b8Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3859c37a63b8Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3860736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3861c37a63b8Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
3862c37a63b8Smrg# On Suns, sometimes $CPP names a directory.
3863c37a63b8Smrgif test -n "$CPP" && test -d "$CPP"; then
3864c37a63b8Smrg  CPP=
3865c37a63b8Smrgfi
3866c37a63b8Smrgif test -z "$CPP"; then
3867736a7e2cSmrg  if ${ac_cv_prog_CPP+:} false; then :
3868c37a63b8Smrg  $as_echo_n "(cached) " >&6
3869c37a63b8Smrgelse
3870c37a63b8Smrg      # Double quotes because CPP needs to be expanded
3871c37a63b8Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3872c37a63b8Smrg    do
3873c37a63b8Smrg      ac_preproc_ok=false
3874c37a63b8Smrgfor ac_c_preproc_warn_flag in '' yes
3875c37a63b8Smrgdo
3876c37a63b8Smrg  # Use a header file that comes with gcc, so configuring glibc
3877c37a63b8Smrg  # with a fresh cross-compiler works.
3878c37a63b8Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3879c37a63b8Smrg  # <limits.h> exists even on freestanding compilers.
3880c37a63b8Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
3881c37a63b8Smrg  # not just through cpp. "Syntax error" is here to catch this case.
3882736a7e2cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883c37a63b8Smrg/* end confdefs.h.  */
3884c37a63b8Smrg#ifdef __STDC__
3885c37a63b8Smrg# include <limits.h>
3886c37a63b8Smrg#else
3887c37a63b8Smrg# include <assert.h>
3888c37a63b8Smrg#endif
3889c37a63b8Smrg		     Syntax error
3890c37a63b8Smrg_ACEOF
3891736a7e2cSmrgif ac_fn_c_try_cpp "$LINENO"; then :
3892c37a63b8Smrg
3893736a7e2cSmrgelse
3894c37a63b8Smrg  # Broken: fails on valid input.
3895c37a63b8Smrgcontinue
3896c37a63b8Smrgfi
3897736a7e2cSmrgrm -f conftest.err conftest.i conftest.$ac_ext
3898c37a63b8Smrg
3899c37a63b8Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
3900c37a63b8Smrg  # can be detected and how.
3901736a7e2cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902c37a63b8Smrg/* end confdefs.h.  */
3903736a7e2cSmrg#include <ac_nonexistent.h>
3904736a7e2cSmrg_ACEOF
3905736a7e2cSmrgif ac_fn_c_try_cpp "$LINENO"; then :
3906c37a63b8Smrg  # Broken: success on invalid input.
3907c37a63b8Smrgcontinue
3908c37a63b8Smrgelse
3909c37a63b8Smrg  # Passes both tests.
3910c37a63b8Smrgac_preproc_ok=:
3911c37a63b8Smrgbreak
3912c37a63b8Smrgfi
3913736a7e2cSmrgrm -f conftest.err conftest.i conftest.$ac_ext
3914c37a63b8Smrg
3915c37a63b8Smrgdone
3916c37a63b8Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3917736a7e2cSmrgrm -f conftest.i conftest.err conftest.$ac_ext
3918736a7e2cSmrgif $ac_preproc_ok; then :
3919c37a63b8Smrg  break
3920c37a63b8Smrgfi
3921c37a63b8Smrg
3922c37a63b8Smrg    done
3923c37a63b8Smrg    ac_cv_prog_CPP=$CPP
3924c37a63b8Smrg
3925c37a63b8Smrgfi
3926c37a63b8Smrg  CPP=$ac_cv_prog_CPP
3927c37a63b8Smrgelse
3928c37a63b8Smrg  ac_cv_prog_CPP=$CPP
3929c37a63b8Smrgfi
3930736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3931c37a63b8Smrg$as_echo "$CPP" >&6; }
3932c37a63b8Smrgac_preproc_ok=false
3933c37a63b8Smrgfor ac_c_preproc_warn_flag in '' yes
3934c37a63b8Smrgdo
3935c37a63b8Smrg  # Use a header file that comes with gcc, so configuring glibc
3936c37a63b8Smrg  # with a fresh cross-compiler works.
3937c37a63b8Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3938c37a63b8Smrg  # <limits.h> exists even on freestanding compilers.
3939c37a63b8Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
3940c37a63b8Smrg  # not just through cpp. "Syntax error" is here to catch this case.
3941736a7e2cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942c37a63b8Smrg/* end confdefs.h.  */
3943c37a63b8Smrg#ifdef __STDC__
3944c37a63b8Smrg# include <limits.h>
3945c37a63b8Smrg#else
3946c37a63b8Smrg# include <assert.h>
3947c37a63b8Smrg#endif
3948c37a63b8Smrg		     Syntax error
3949c37a63b8Smrg_ACEOF
3950736a7e2cSmrgif ac_fn_c_try_cpp "$LINENO"; then :
3951c37a63b8Smrg
3952736a7e2cSmrgelse
3953c37a63b8Smrg  # Broken: fails on valid input.
3954c37a63b8Smrgcontinue
3955c37a63b8Smrgfi
3956736a7e2cSmrgrm -f conftest.err conftest.i conftest.$ac_ext
3957c37a63b8Smrg
3958c37a63b8Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
3959c37a63b8Smrg  # can be detected and how.
3960736a7e2cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961c37a63b8Smrg/* end confdefs.h.  */
3962c37a63b8Smrg#include <ac_nonexistent.h>
3963c37a63b8Smrg_ACEOF
3964736a7e2cSmrgif ac_fn_c_try_cpp "$LINENO"; then :
3965c37a63b8Smrg  # Broken: success on invalid input.
3966c37a63b8Smrgcontinue
3967c37a63b8Smrgelse
3968c37a63b8Smrg  # Passes both tests.
3969c37a63b8Smrgac_preproc_ok=:
3970c37a63b8Smrgbreak
3971c37a63b8Smrgfi
3972736a7e2cSmrgrm -f conftest.err conftest.i conftest.$ac_ext
3973c37a63b8Smrg
3974c37a63b8Smrgdone
3975c37a63b8Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3976736a7e2cSmrgrm -f conftest.i conftest.err conftest.$ac_ext
3977736a7e2cSmrgif $ac_preproc_ok; then :
3978736a7e2cSmrg
3979c37a63b8Smrgelse
3980736a7e2cSmrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3981c37a63b8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3982736a7e2cSmrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3983736a7e2cSmrgSee \`config.log' for more details" "$LINENO" 5; }
3984c37a63b8Smrgfi
3985c37a63b8Smrg
3986c37a63b8Smrgac_ext=c
3987c37a63b8Smrgac_cpp='$CPP $CPPFLAGS'
3988c37a63b8Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3989c37a63b8Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3990c37a63b8Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3991c37a63b8Smrg
3992c37a63b8Smrg
3993736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3994c37a63b8Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3995736a7e2cSmrgif ${ac_cv_path_GREP+:} false; then :
3996c37a63b8Smrg  $as_echo_n "(cached) " >&6
3997c37a63b8Smrgelse
3998c37a63b8Smrg  if test -z "$GREP"; then
3999c37a63b8Smrg  ac_path_GREP_found=false
4000c37a63b8Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
4001c37a63b8Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002c37a63b8Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4003c37a63b8Smrgdo
4004c37a63b8Smrg  IFS=$as_save_IFS
4005c37a63b8Smrg  test -z "$as_dir" && as_dir=.
4006736a7e2cSmrg    for ac_prog in grep ggrep; do
4007c37a63b8Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4008c37a63b8Smrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4009c37a63b8Smrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4010c37a63b8Smrg# Check for GNU ac_path_GREP and select it if it is found.
4011c37a63b8Smrg  # Check for GNU $ac_path_GREP
4012c37a63b8Smrgcase `"$ac_path_GREP" --version 2>&1` in
4013c37a63b8Smrg*GNU*)
4014c37a63b8Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4015c37a63b8Smrg*)
4016c37a63b8Smrg  ac_count=0
4017c37a63b8Smrg  $as_echo_n 0123456789 >"conftest.in"
4018c37a63b8Smrg  while :
4019c37a63b8Smrg  do
4020c37a63b8Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4021c37a63b8Smrg    mv "conftest.tmp" "conftest.in"
4022c37a63b8Smrg    cp "conftest.in" "conftest.nl"
4023c37a63b8Smrg    $as_echo 'GREP' >> "conftest.nl"
4024c37a63b8Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4025c37a63b8Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4026736a7e2cSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4027c37a63b8Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4028c37a63b8Smrg      # Best one so far, save it but keep looking for a better one
4029c37a63b8Smrg      ac_cv_path_GREP="$ac_path_GREP"
4030c37a63b8Smrg      ac_path_GREP_max=$ac_count
4031c37a63b8Smrg    fi
4032c37a63b8Smrg    # 10*(2^10) chars as input seems more than enough
4033c37a63b8Smrg    test $ac_count -gt 10 && break
4034c37a63b8Smrg  done
4035c37a63b8Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4036c37a63b8Smrgesac
4037c37a63b8Smrg
4038c37a63b8Smrg      $ac_path_GREP_found && break 3
4039c37a63b8Smrg    done
4040c37a63b8Smrg  done
4041736a7e2cSmrg  done
4042c37a63b8SmrgIFS=$as_save_IFS
4043c37a63b8Smrg  if test -z "$ac_cv_path_GREP"; then
4044736a7e2cSmrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4045c37a63b8Smrg  fi
4046c37a63b8Smrgelse
4047c37a63b8Smrg  ac_cv_path_GREP=$GREP
4048c37a63b8Smrgfi
4049c37a63b8Smrg
4050c37a63b8Smrgfi
4051736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4052c37a63b8Smrg$as_echo "$ac_cv_path_GREP" >&6; }
4053c37a63b8Smrg GREP="$ac_cv_path_GREP"
4054c37a63b8Smrg
4055c37a63b8Smrg
4056736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4057c37a63b8Smrg$as_echo_n "checking for egrep... " >&6; }
4058736a7e2cSmrgif ${ac_cv_path_EGREP+:} false; then :
4059c37a63b8Smrg  $as_echo_n "(cached) " >&6
4060c37a63b8Smrgelse
4061c37a63b8Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4062c37a63b8Smrg   then ac_cv_path_EGREP="$GREP -E"
4063c37a63b8Smrg   else
4064c37a63b8Smrg     if test -z "$EGREP"; then
4065c37a63b8Smrg  ac_path_EGREP_found=false
4066c37a63b8Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
4067c37a63b8Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068c37a63b8Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4069c37a63b8Smrgdo
4070c37a63b8Smrg  IFS=$as_save_IFS
4071c37a63b8Smrg  test -z "$as_dir" && as_dir=.
4072736a7e2cSmrg    for ac_prog in egrep; do
4073c37a63b8Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4074c37a63b8Smrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4075c37a63b8Smrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4076c37a63b8Smrg# Check for GNU ac_path_EGREP and select it if it is found.
4077c37a63b8Smrg  # Check for GNU $ac_path_EGREP
4078c37a63b8Smrgcase `"$ac_path_EGREP" --version 2>&1` in
4079c37a63b8Smrg*GNU*)
4080c37a63b8Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4081c37a63b8Smrg*)
4082c37a63b8Smrg  ac_count=0
4083c37a63b8Smrg  $as_echo_n 0123456789 >"conftest.in"
4084c37a63b8Smrg  while :
4085c37a63b8Smrg  do
4086c37a63b8Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4087c37a63b8Smrg    mv "conftest.tmp" "conftest.in"
4088c37a63b8Smrg    cp "conftest.in" "conftest.nl"
4089c37a63b8Smrg    $as_echo 'EGREP' >> "conftest.nl"
4090c37a63b8Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4091c37a63b8Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4092736a7e2cSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4093c37a63b8Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4094c37a63b8Smrg      # Best one so far, save it but keep looking for a better one
4095c37a63b8Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
4096c37a63b8Smrg      ac_path_EGREP_max=$ac_count
4097c37a63b8Smrg    fi
4098c37a63b8Smrg    # 10*(2^10) chars as input seems more than enough
4099c37a63b8Smrg    test $ac_count -gt 10 && break
4100c37a63b8Smrg  done
4101c37a63b8Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4102c37a63b8Smrgesac
4103c37a63b8Smrg
4104c37a63b8Smrg      $ac_path_EGREP_found && break 3
4105c37a63b8Smrg    done
4106c37a63b8Smrg  done
4107736a7e2cSmrg  done
4108c37a63b8SmrgIFS=$as_save_IFS
4109c37a63b8Smrg  if test -z "$ac_cv_path_EGREP"; then
4110736a7e2cSmrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4111c37a63b8Smrg  fi
4112c37a63b8Smrgelse
4113c37a63b8Smrg  ac_cv_path_EGREP=$EGREP
4114c37a63b8Smrgfi
4115c37a63b8Smrg
4116c37a63b8Smrg   fi
4117c37a63b8Smrgfi
4118736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4119c37a63b8Smrg$as_echo "$ac_cv_path_EGREP" >&6; }
4120c37a63b8Smrg EGREP="$ac_cv_path_EGREP"
4121c37a63b8Smrg
4122c37a63b8Smrg
4123736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4124c37a63b8Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
4125736a7e2cSmrgif ${ac_cv_header_stdc+:} false; then :
4126c37a63b8Smrg  $as_echo_n "(cached) " >&6
4127c37a63b8Smrgelse
4128736a7e2cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129c37a63b8Smrg/* end confdefs.h.  */
4130c37a63b8Smrg#include <stdlib.h>
4131c37a63b8Smrg#include <stdarg.h>
4132c37a63b8Smrg#include <string.h>
4133c37a63b8Smrg#include <float.h>
4134c37a63b8Smrg
4135c37a63b8Smrgint
4136c37a63b8Smrgmain ()
4137c37a63b8Smrg{
4138c37a63b8Smrg
4139c37a63b8Smrg  ;
4140c37a63b8Smrg  return 0;
4141c37a63b8Smrg}
4142c37a63b8Smrg_ACEOF
4143736a7e2cSmrgif ac_fn_c_try_compile "$LINENO"; then :
4144c37a63b8Smrg  ac_cv_header_stdc=yes
4145c37a63b8Smrgelse
4146736a7e2cSmrg  ac_cv_header_stdc=no
4147c37a63b8Smrgfi
4148c37a63b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4149c37a63b8Smrg
4150c37a63b8Smrgif test $ac_cv_header_stdc = yes; then
4151c37a63b8Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4152736a7e2cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153c37a63b8Smrg/* end confdefs.h.  */
4154c37a63b8Smrg#include <string.h>
4155c37a63b8Smrg
4156c37a63b8Smrg_ACEOF
4157c37a63b8Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4158736a7e2cSmrg  $EGREP "memchr" >/dev/null 2>&1; then :
4159736a7e2cSmrg
4160c37a63b8Smrgelse
4161c37a63b8Smrg  ac_cv_header_stdc=no
4162c37a63b8Smrgfi
4163c37a63b8Smrgrm -f conftest*
4164c37a63b8Smrg
4165c37a63b8Smrgfi
4166c37a63b8Smrg
4167c37a63b8Smrgif test $ac_cv_header_stdc = yes; then
4168c37a63b8Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4169736a7e2cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170c37a63b8Smrg/* end confdefs.h.  */
4171c37a63b8Smrg#include <stdlib.h>
4172c37a63b8Smrg
4173c37a63b8Smrg_ACEOF
4174c37a63b8Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4175736a7e2cSmrg  $EGREP "free" >/dev/null 2>&1; then :
4176736a7e2cSmrg
4177c37a63b8Smrgelse
4178c37a63b8Smrg  ac_cv_header_stdc=no
4179c37a63b8Smrgfi
4180c37a63b8Smrgrm -f conftest*
4181c37a63b8Smrg
4182c37a63b8Smrgfi
4183c37a63b8Smrg
4184c37a63b8Smrgif test $ac_cv_header_stdc = yes; then
4185c37a63b8Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4186736a7e2cSmrg  if test "$cross_compiling" = yes; then :
4187c37a63b8Smrg  :
4188c37a63b8Smrgelse
4189736a7e2cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190c37a63b8Smrg/* end confdefs.h.  */
4191c37a63b8Smrg#include <ctype.h>
4192c37a63b8Smrg#include <stdlib.h>
4193c37a63b8Smrg#if ((' ' & 0x0FF) == 0x020)
4194c37a63b8Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4195c37a63b8Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4196c37a63b8Smrg#else
4197c37a63b8Smrg# define ISLOWER(c) \
4198c37a63b8Smrg		   (('a' <= (c) && (c) <= 'i') \
4199c37a63b8Smrg		     || ('j' <= (c) && (c) <= 'r') \
4200c37a63b8Smrg		     || ('s' <= (c) && (c) <= 'z'))
4201c37a63b8Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4202c37a63b8Smrg#endif
4203c37a63b8Smrg
4204c37a63b8Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4205c37a63b8Smrgint
4206c37a63b8Smrgmain ()
4207c37a63b8Smrg{
4208c37a63b8Smrg  int i;
4209c37a63b8Smrg  for (i = 0; i < 256; i++)
4210c37a63b8Smrg    if (XOR (islower (i), ISLOWER (i))
4211c37a63b8Smrg	|| toupper (i) != TOUPPER (i))
4212c37a63b8Smrg      return 2;
4213c37a63b8Smrg  return 0;
4214c37a63b8Smrg}
4215c37a63b8Smrg_ACEOF
4216736a7e2cSmrgif ac_fn_c_try_run "$LINENO"; then :
4217c37a63b8Smrg
4218736a7e2cSmrgelse
4219736a7e2cSmrg  ac_cv_header_stdc=no
4220c37a63b8Smrgfi
4221736a7e2cSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4222736a7e2cSmrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
4223c37a63b8Smrgfi
4224c37a63b8Smrg
4225c37a63b8Smrgfi
4226c37a63b8Smrgfi
4227736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4228c37a63b8Smrg$as_echo "$ac_cv_header_stdc" >&6; }
4229c37a63b8Smrgif test $ac_cv_header_stdc = yes; then
4230c37a63b8Smrg
4231736a7e2cSmrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4232c37a63b8Smrg
4233c37a63b8Smrgfi
4234c37a63b8Smrg
4235c37a63b8Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4236c37a63b8Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4237c37a63b8Smrg		  inttypes.h stdint.h unistd.h
4238736a7e2cSmrgdo :
4239736a7e2cSmrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4240736a7e2cSmrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4241736a7e2cSmrg"
4242736a7e2cSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4243c37a63b8Smrg  cat >>confdefs.h <<_ACEOF
4244c37a63b8Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4245c37a63b8Smrg_ACEOF
4246c37a63b8Smrg
4247c37a63b8Smrgfi
4248c37a63b8Smrg
4249c37a63b8Smrgdone
4250c37a63b8Smrg
4251c37a63b8Smrg
4252c37a63b8Smrg
4253c37a63b8Smrg
4254e4ee1255Smrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4255e4ee1255Smrgif test "x$ac_cv_have_decl___clang__" = xyes; then :
4256e4ee1255Smrg  CLANGCC="yes"
4257e4ee1255Smrgelse
4258e4ee1255Smrg  CLANGCC="no"
4259e4ee1255Smrgfi
4260e4ee1255Smrg
4261e4ee1255Smrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4262e4ee1255Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4263e4ee1255Smrg  INTELCC="yes"
4264e4ee1255Smrgelse
4265e4ee1255Smrg  INTELCC="no"
4266e4ee1255Smrgfi
4267e4ee1255Smrg
4268e4ee1255Smrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4269e4ee1255Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4270e4ee1255Smrg  SUNCC="yes"
4271e4ee1255Smrgelse
4272e4ee1255Smrg  SUNCC="no"
4273e4ee1255Smrgfi
4274e4ee1255Smrg
4275e4ee1255Smrg
4276e4ee1255Smrg
4277e4ee1255Smrg
4278736a7e2cSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4279736a7e2cSmrg	if test -n "$ac_tool_prefix"; then
4280736a7e2cSmrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4281736a7e2cSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4282736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4283736a7e2cSmrg$as_echo_n "checking for $ac_word... " >&6; }
4284736a7e2cSmrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
4285736a7e2cSmrg  $as_echo_n "(cached) " >&6
4286736a7e2cSmrgelse
4287736a7e2cSmrg  case $PKG_CONFIG in
4288736a7e2cSmrg  [\\/]* | ?:[\\/]*)
4289736a7e2cSmrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4290736a7e2cSmrg  ;;
4291736a7e2cSmrg  *)
4292736a7e2cSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293736a7e2cSmrgfor as_dir in $PATH
4294c37a63b8Smrgdo
4295736a7e2cSmrg  IFS=$as_save_IFS
4296736a7e2cSmrg  test -z "$as_dir" && as_dir=.
4297736a7e2cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4298736a7e2cSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4299736a7e2cSmrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4300736a7e2cSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301736a7e2cSmrg    break 2
4302736a7e2cSmrg  fi
4303736a7e2cSmrgdone
4304736a7e2cSmrg  done
4305736a7e2cSmrgIFS=$as_save_IFS
4306736a7e2cSmrg
4307736a7e2cSmrg  ;;
4308c37a63b8Smrgesac
4309736a7e2cSmrgfi
4310736a7e2cSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
4311736a7e2cSmrgif test -n "$PKG_CONFIG"; then
4312736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4313736a7e2cSmrg$as_echo "$PKG_CONFIG" >&6; }
4314c37a63b8Smrgelse
4315736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4316736a7e2cSmrg$as_echo "no" >&6; }
4317c37a63b8Smrgfi
4318c37a63b8Smrg
4319c37a63b8Smrg
4320c37a63b8Smrgfi
4321736a7e2cSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then
4322736a7e2cSmrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
4323736a7e2cSmrg  # Extract the first word of "pkg-config", so it can be a program name with args.
4324736a7e2cSmrgset dummy pkg-config; ac_word=$2
4325736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4326736a7e2cSmrg$as_echo_n "checking for $ac_word... " >&6; }
4327736a7e2cSmrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4328736a7e2cSmrg  $as_echo_n "(cached) " >&6
4329736a7e2cSmrgelse
4330736a7e2cSmrg  case $ac_pt_PKG_CONFIG in
4331736a7e2cSmrg  [\\/]* | ?:[\\/]*)
4332736a7e2cSmrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4333736a7e2cSmrg  ;;
4334c37a63b8Smrg  *)
4335736a7e2cSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336736a7e2cSmrgfor as_dir in $PATH
4337736a7e2cSmrgdo
4338736a7e2cSmrg  IFS=$as_save_IFS
4339736a7e2cSmrg  test -z "$as_dir" && as_dir=.
4340736a7e2cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4341736a7e2cSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4342736a7e2cSmrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4343736a7e2cSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4344736a7e2cSmrg    break 2
4345736a7e2cSmrg  fi
4346736a7e2cSmrgdone
4347736a7e2cSmrg  done
4348736a7e2cSmrgIFS=$as_save_IFS
4349736a7e2cSmrg
4350736a7e2cSmrg  ;;
4351c37a63b8Smrgesac
4352736a7e2cSmrgfi
4353736a7e2cSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4354736a7e2cSmrgif test -n "$ac_pt_PKG_CONFIG"; then
4355736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4356736a7e2cSmrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4357736a7e2cSmrgelse
4358736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359736a7e2cSmrg$as_echo "no" >&6; }
4360736a7e2cSmrgfi
4361c37a63b8Smrg
4362736a7e2cSmrg  if test "x$ac_pt_PKG_CONFIG" = x; then
4363736a7e2cSmrg    PKG_CONFIG=""
4364736a7e2cSmrg  else
4365736a7e2cSmrg    case $cross_compiling:$ac_tool_warned in
4366736a7e2cSmrgyes:)
4367736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4368736a7e2cSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4369736a7e2cSmrgac_tool_warned=yes ;;
4370736a7e2cSmrgesac
4371736a7e2cSmrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
4372736a7e2cSmrg  fi
4373736a7e2cSmrgelse
4374736a7e2cSmrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4375736a7e2cSmrgfi
4376c37a63b8Smrg
4377736a7e2cSmrgfi
4378736a7e2cSmrgif test -n "$PKG_CONFIG"; then
4379736a7e2cSmrg	_pkg_min_version=0.9.0
4380736a7e2cSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4381736a7e2cSmrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4382736a7e2cSmrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4383736a7e2cSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4384736a7e2cSmrg$as_echo "yes" >&6; }
4385736a7e2cSmrg	else
4386736a7e2cSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387736a7e2cSmrg$as_echo "no" >&6; }
4388736a7e2cSmrg		PKG_CONFIG=""
4389736a7e2cSmrg	fi
4390c37a63b8Smrg
4391736a7e2cSmrgfi
4392c37a63b8Smrg# Make sure we can run config.sub.
4393c37a63b8Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4394736a7e2cSmrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4395c37a63b8Smrg
4396736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4397c37a63b8Smrg$as_echo_n "checking build system type... " >&6; }
4398736a7e2cSmrgif ${ac_cv_build+:} false; then :
4399c37a63b8Smrg  $as_echo_n "(cached) " >&6
4400c37a63b8Smrgelse
4401c37a63b8Smrg  ac_build_alias=$build_alias
4402c37a63b8Smrgtest "x$ac_build_alias" = x &&
4403c37a63b8Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4404c37a63b8Smrgtest "x$ac_build_alias" = x &&
4405736a7e2cSmrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4406c37a63b8Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4407736a7e2cSmrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4408c37a63b8Smrg
4409c37a63b8Smrgfi
4410736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4411c37a63b8Smrg$as_echo "$ac_cv_build" >&6; }
4412c37a63b8Smrgcase $ac_cv_build in
4413c37a63b8Smrg*-*-*) ;;
4414736a7e2cSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4415c37a63b8Smrgesac
4416c37a63b8Smrgbuild=$ac_cv_build
4417c37a63b8Smrgac_save_IFS=$IFS; IFS='-'
4418c37a63b8Smrgset x $ac_cv_build
4419c37a63b8Smrgshift
4420c37a63b8Smrgbuild_cpu=$1
4421c37a63b8Smrgbuild_vendor=$2
4422c37a63b8Smrgshift; shift
4423c37a63b8Smrg# Remember, the first character of IFS is used to create $*,
4424c37a63b8Smrg# except with old shells:
4425c37a63b8Smrgbuild_os=$*
4426c37a63b8SmrgIFS=$ac_save_IFS
4427c37a63b8Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4428c37a63b8Smrg
4429c37a63b8Smrg
4430736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4431c37a63b8Smrg$as_echo_n "checking host system type... " >&6; }
4432736a7e2cSmrgif ${ac_cv_host+:} false; then :
4433c37a63b8Smrg  $as_echo_n "(cached) " >&6
4434c37a63b8Smrgelse
4435c37a63b8Smrg  if test "x$host_alias" = x; then
4436c37a63b8Smrg  ac_cv_host=$ac_cv_build
4437c37a63b8Smrgelse
4438c37a63b8Smrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4439736a7e2cSmrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4440c37a63b8Smrgfi
4441c37a63b8Smrg
4442c37a63b8Smrgfi
4443736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4444c37a63b8Smrg$as_echo "$ac_cv_host" >&6; }
4445c37a63b8Smrgcase $ac_cv_host in
4446c37a63b8Smrg*-*-*) ;;
4447736a7e2cSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4448c37a63b8Smrgesac
4449c37a63b8Smrghost=$ac_cv_host
4450c37a63b8Smrgac_save_IFS=$IFS; IFS='-'
4451c37a63b8Smrgset x $ac_cv_host
4452c37a63b8Smrgshift
4453c37a63b8Smrghost_cpu=$1
4454c37a63b8Smrghost_vendor=$2
4455c37a63b8Smrgshift; shift
4456c37a63b8Smrg# Remember, the first character of IFS is used to create $*,
4457c37a63b8Smrg# except with old shells:
4458c37a63b8Smrghost_os=$*
4459c37a63b8SmrgIFS=$ac_save_IFS
4460c37a63b8Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4461c37a63b8Smrg
4462c37a63b8Smrg
4463736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4464736a7e2cSmrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4465736a7e2cSmrgif ${ac_cv_path_SED+:} false; then :
4466736a7e2cSmrg  $as_echo_n "(cached) " >&6
4467736a7e2cSmrgelse
4468736a7e2cSmrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4469736a7e2cSmrg     for ac_i in 1 2 3 4 5 6 7; do
4470736a7e2cSmrg       ac_script="$ac_script$as_nl$ac_script"
4471736a7e2cSmrg     done
4472736a7e2cSmrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4473736a7e2cSmrg     { ac_script=; unset ac_script;}
4474736a7e2cSmrg     if test -z "$SED"; then
4475736a7e2cSmrg  ac_path_SED_found=false
4476736a7e2cSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
4477736a7e2cSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478736a7e2cSmrgfor as_dir in $PATH
4479736a7e2cSmrgdo
4480736a7e2cSmrg  IFS=$as_save_IFS
4481736a7e2cSmrg  test -z "$as_dir" && as_dir=.
4482736a7e2cSmrg    for ac_prog in sed gsed; do
4483736a7e2cSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4484736a7e2cSmrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4485736a7e2cSmrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4486736a7e2cSmrg# Check for GNU ac_path_SED and select it if it is found.
4487736a7e2cSmrg  # Check for GNU $ac_path_SED
4488736a7e2cSmrgcase `"$ac_path_SED" --version 2>&1` in
4489736a7e2cSmrg*GNU*)
4490736a7e2cSmrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4491736a7e2cSmrg*)
4492736a7e2cSmrg  ac_count=0
4493736a7e2cSmrg  $as_echo_n 0123456789 >"conftest.in"
4494736a7e2cSmrg  while :
4495736a7e2cSmrg  do
4496736a7e2cSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4497736a7e2cSmrg    mv "conftest.tmp" "conftest.in"
4498736a7e2cSmrg    cp "conftest.in" "conftest.nl"
4499736a7e2cSmrg    $as_echo '' >> "conftest.nl"
4500736a7e2cSmrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4501736a7e2cSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4502736a7e2cSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4503736a7e2cSmrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
4504736a7e2cSmrg      # Best one so far, save it but keep looking for a better one
4505736a7e2cSmrg      ac_cv_path_SED="$ac_path_SED"
4506736a7e2cSmrg      ac_path_SED_max=$ac_count
4507736a7e2cSmrg    fi
4508736a7e2cSmrg    # 10*(2^10) chars as input seems more than enough
4509736a7e2cSmrg    test $ac_count -gt 10 && break
4510736a7e2cSmrg  done
4511736a7e2cSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4512736a7e2cSmrgesac
4513736a7e2cSmrg
4514736a7e2cSmrg      $ac_path_SED_found && break 3
4515736a7e2cSmrg    done
4516736a7e2cSmrg  done
4517736a7e2cSmrg  done
4518736a7e2cSmrgIFS=$as_save_IFS
4519736a7e2cSmrg  if test -z "$ac_cv_path_SED"; then
4520736a7e2cSmrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4521736a7e2cSmrg  fi
4522736a7e2cSmrgelse
4523736a7e2cSmrg  ac_cv_path_SED=$SED
4524736a7e2cSmrgfi
4525736a7e2cSmrg
4526736a7e2cSmrgfi
4527736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4528736a7e2cSmrg$as_echo "$ac_cv_path_SED" >&6; }
4529736a7e2cSmrg SED="$ac_cv_path_SED"
4530736a7e2cSmrg  rm -f conftest.sed
4531736a7e2cSmrg
4532736a7e2cSmrg
4533c37a63b8Smrg
4534c37a63b8Smrg
4535c37a63b8Smrg
4536e4ee1255Smrg
4537c37a63b8Smrgif  test "x$GCC" = xyes ; then
4538c37a63b8Smrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4539c37a63b8Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4540736a7e2cSmrg-Wbad-function-cast -Wformat=2"
4541c37a63b8Smrg    case `$CC -dumpversion` in
4542c37a63b8Smrg    3.4.* | 4.*)
4543c37a63b8Smrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4544c37a63b8Smrg	;;
4545c37a63b8Smrg    esac
4546c37a63b8Smrgelse
4547c37a63b8Smrg    if test "x$SUNCC" = "xyes"; then
4548c37a63b8Smrg	CWARNFLAGS="-v"
4549c37a63b8Smrg    fi
4550c37a63b8Smrgfi
4551c37a63b8Smrg
4552c37a63b8Smrg
4553c37a63b8Smrg
4554736a7e2cSmrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4555c37a63b8Smrg
4556c37a63b8Smrg
4557c37a63b8Smrg
4558e4ee1255Smrg
4559c37a63b8Smrg# Check whether --enable-strict-compilation was given.
4560736a7e2cSmrgif test "${enable_strict_compilation+set}" = set; then :
4561c37a63b8Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4562c37a63b8Smrgelse
4563c37a63b8Smrg  STRICT_COMPILE=no
4564c37a63b8Smrgfi
4565c37a63b8Smrg
4566e4ee1255Smrgif test "x$GCC" = xyes ; then
4567e4ee1255Smrg    STRICT_CFLAGS="-pedantic -Werror"
4568e4ee1255Smrg    # Add -Werror=attributes if supported (gcc 4.2 & later)
4569e4ee1255Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
4570e4ee1255Smrg$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
4571e4ee1255Smrg    save_CFLAGS="$CFLAGS"
4572e4ee1255Smrg    CFLAGS="$CFLAGS $STRICT_CFLAGS -Werror=attributes"
4573e4ee1255Smrg    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574e4ee1255Smrg/* end confdefs.h.  */
4575e4ee1255Smrgreturn 0;
4576e4ee1255Smrg_ACEOF
4577e4ee1255Smrgif ac_fn_c_try_compile "$LINENO"; then :
4578e4ee1255Smrg  STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
4579e4ee1255Smrg		       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4580e4ee1255Smrg$as_echo "yes" >&6; }
4581c37a63b8Smrgelse
4582e4ee1255Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4583e4ee1255Smrg$as_echo "no" >&6; }
4584c37a63b8Smrgfi
4585e4ee1255Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4586e4ee1255Smrg    CFLAGS="$save_CFLAGS"
4587e4ee1255Smrgelif test "x$SUNCC" = "xyes"; then
4588e4ee1255Smrg    STRICT_CFLAGS="-errwarn"
4589e4ee1255Smrgelif test "x$INTELCC" = "xyes"; then
4590e4ee1255Smrg    STRICT_CFLAGS="-Werror"
4591c37a63b8Smrgfi
4592e4ee1255Smrgif test "x$STRICT_COMPILE" = "xyes"; then
4593e4ee1255Smrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4594c37a63b8Smrgfi
4595e4ee1255Smrg
4596c37a63b8Smrg
4597c37a63b8Smrg
4598c37a63b8Smrg
4599c37a63b8Smrg
4600c37a63b8Smrgcat >>confdefs.h <<_ACEOF
4601c37a63b8Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4602c37a63b8Smrg_ACEOF
4603c37a63b8Smrg
4604c37a63b8Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4605c37a63b8Smrg	if test "x$PVM" = "x"; then
4606c37a63b8Smrg		PVM="0"
4607c37a63b8Smrg	fi
4608c37a63b8Smrg
4609c37a63b8Smrgcat >>confdefs.h <<_ACEOF
4610c37a63b8Smrg#define PACKAGE_VERSION_MINOR $PVM
4611c37a63b8Smrg_ACEOF
4612c37a63b8Smrg
4613c37a63b8Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4614c37a63b8Smrg	if test "x$PVP" = "x"; then
4615c37a63b8Smrg		PVP="0"
4616c37a63b8Smrg	fi
4617c37a63b8Smrg
4618c37a63b8Smrgcat >>confdefs.h <<_ACEOF
4619c37a63b8Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
4620c37a63b8Smrg_ACEOF
4621c37a63b8Smrg
4622c37a63b8Smrg
4623c37a63b8Smrg
4624736a7e2cSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4625736a7e2cSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4626736a7e2cSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4627736a7e2cSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
4628736a7e2cSmrg
4629736a7e2cSmrg
4630736a7e2cSmrg
4631736a7e2cSmrg
4632736a7e2cSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4633736a7e2cSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4634736a7e2cSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4635736a7e2cSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4636736a7e2cSmrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4637c37a63b8Smrg
4638c37a63b8Smrg
4639c37a63b8Smrg
4640c37a63b8Smrg
4641c37a63b8Smrg
4642c37a63b8Smrg
4643c37a63b8Smrgif test x$APP_MAN_SUFFIX = x    ; then
4644c37a63b8Smrg    APP_MAN_SUFFIX=1
4645c37a63b8Smrgfi
4646c37a63b8Smrgif test x$APP_MAN_DIR = x    ; then
4647c37a63b8Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4648c37a63b8Smrgfi
4649c37a63b8Smrg
4650c37a63b8Smrgif test x$LIB_MAN_SUFFIX = x    ; then
4651c37a63b8Smrg    LIB_MAN_SUFFIX=3
4652c37a63b8Smrgfi
4653c37a63b8Smrgif test x$LIB_MAN_DIR = x    ; then
4654c37a63b8Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4655c37a63b8Smrgfi
4656c37a63b8Smrg
4657c37a63b8Smrgif test x$FILE_MAN_SUFFIX = x    ; then
4658c37a63b8Smrg    case $host_os in
4659c37a63b8Smrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
4660c37a63b8Smrg	*)		FILE_MAN_SUFFIX=5  ;;
4661c37a63b8Smrg    esac
4662c37a63b8Smrgfi
4663c37a63b8Smrgif test x$FILE_MAN_DIR = x    ; then
4664c37a63b8Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4665c37a63b8Smrgfi
4666c37a63b8Smrg
4667c37a63b8Smrgif test x$MISC_MAN_SUFFIX = x    ; then
4668c37a63b8Smrg    case $host_os in
4669c37a63b8Smrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
4670c37a63b8Smrg	*)		MISC_MAN_SUFFIX=7  ;;
4671c37a63b8Smrg    esac
4672c37a63b8Smrgfi
4673c37a63b8Smrgif test x$MISC_MAN_DIR = x    ; then
4674c37a63b8Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4675c37a63b8Smrgfi
4676c37a63b8Smrg
4677c37a63b8Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
4678c37a63b8Smrg    case $host_os in
4679c37a63b8Smrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
4680c37a63b8Smrg	*)		DRIVER_MAN_SUFFIX=4  ;;
4681c37a63b8Smrg    esac
4682c37a63b8Smrgfi
4683c37a63b8Smrgif test x$DRIVER_MAN_DIR = x    ; then
4684c37a63b8Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4685c37a63b8Smrgfi
4686c37a63b8Smrg
4687c37a63b8Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
4688c37a63b8Smrg    case $host_os in
4689c37a63b8Smrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
4690c37a63b8Smrg	*)		ADMIN_MAN_SUFFIX=8  ;;
4691c37a63b8Smrg    esac
4692c37a63b8Smrgfi
4693c37a63b8Smrgif test x$ADMIN_MAN_DIR = x    ; then
4694c37a63b8Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4695c37a63b8Smrgfi
4696c37a63b8Smrg
4697c37a63b8Smrg
4698c37a63b8Smrg
4699c37a63b8Smrg
4700c37a63b8Smrg
4701c37a63b8Smrg
4702c37a63b8Smrg
4703c37a63b8Smrg
4704c37a63b8Smrg
4705c37a63b8Smrg
4706c37a63b8Smrg
4707c37a63b8Smrg
4708c37a63b8Smrg
4709c37a63b8Smrg
4710c37a63b8Smrg
4711736a7e2cSmrgXORG_MAN_PAGE="X Version 11"
4712c37a63b8Smrg
4713736a7e2cSmrgMAN_SUBSTS="\
4714736a7e2cSmrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4715736a7e2cSmrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4716736a7e2cSmrg	-e 's|__xservername__|Xorg|g' \
4717736a7e2cSmrg	-e 's|__xconfigfile__|xorg.conf|g' \
4718736a7e2cSmrg	-e 's|__projectroot__|\$(prefix)|g' \
4719736a7e2cSmrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
4720736a7e2cSmrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4721736a7e2cSmrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4722736a7e2cSmrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4723736a7e2cSmrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4724736a7e2cSmrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4725736a7e2cSmrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4726c37a63b8Smrg
4727264fa531Smrg
4728736a7e2cSmrg
4729736a7e2cSmrg# Check whether --enable-silent-rules was given.
4730736a7e2cSmrgif test "${enable_silent_rules+set}" = set; then :
4731736a7e2cSmrg  enableval=$enable_silent_rules;
4732264fa531Smrgfi
4733264fa531Smrg
4734736a7e2cSmrgcase $enable_silent_rules in
4735736a7e2cSmrgyes) AM_DEFAULT_VERBOSITY=0;;
4736736a7e2cSmrgno)  AM_DEFAULT_VERBOSITY=1;;
4737736a7e2cSmrg*)   AM_DEFAULT_VERBOSITY=0;;
4738736a7e2cSmrgesac
4739736a7e2cSmrgAM_BACKSLASH='\'
4740736a7e2cSmrg
4741c37a63b8Smrg
4742264fa531Smrg
4743736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4744c37a63b8Smrg$as_echo_n "checking return type of signal handlers... " >&6; }
4745736a7e2cSmrgif ${ac_cv_type_signal+:} false; then :
4746c37a63b8Smrg  $as_echo_n "(cached) " >&6
4747264fa531Smrgelse
4748736a7e2cSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4749264fa531Smrg/* end confdefs.h.  */
4750264fa531Smrg#include <sys/types.h>
4751264fa531Smrg#include <signal.h>
4752264fa531Smrg
4753264fa531Smrgint
4754264fa531Smrgmain ()
4755264fa531Smrg{
4756c37a63b8Smrgreturn *(signal (0, 0)) (0) == 1;
4757264fa531Smrg  ;
4758264fa531Smrg  return 0;
4759264fa531Smrg}
4760264fa531Smrg_ACEOF
4761736a7e2cSmrgif ac_fn_c_try_compile "$LINENO"; then :
4762c37a63b8Smrg  ac_cv_type_signal=int
4763264fa531Smrgelse
4764736a7e2cSmrg  ac_cv_type_signal=void
4765264fa531Smrgfi
4766c37a63b8Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767264fa531Smrgfi
4768736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4769c37a63b8Smrg$as_echo "$ac_cv_type_signal" >&6; }
4770264fa531Smrg
4771264fa531Smrgcat >>confdefs.h <<_ACEOF
4772264fa531Smrg#define RETSIGTYPE $ac_cv_type_signal
4773264fa531Smrg_ACEOF
4774264fa531Smrg
4775264fa531Smrg
4776264fa531Smrg
4777e4ee1255Smrg# Define the installation directory for the x11 performance compare scripts
4778e4ee1255Smrgx11perfcompdir=$libdir/X11/x11perfcomp
4779e4ee1255Smrg
4780e4ee1255Smrg
4781e4ee1255Smrg# Checks for programs run by the scripts we install
4782e4ee1255Smrg# Extract the first word of "mktemp", so it can be a program name with args.
4783e4ee1255Smrgset dummy mktemp; ac_word=$2
4784e4ee1255Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4785e4ee1255Smrg$as_echo_n "checking for $ac_word... " >&6; }
4786e4ee1255Smrgif ${ac_cv_path_MKTEMP+:} false; then :
4787e4ee1255Smrg  $as_echo_n "(cached) " >&6
4788e4ee1255Smrgelse
4789e4ee1255Smrg  case $MKTEMP in
4790e4ee1255Smrg  [\\/]* | ?:[\\/]*)
4791e4ee1255Smrg  ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
4792e4ee1255Smrg  ;;
4793e4ee1255Smrg  *)
4794e4ee1255Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795e4ee1255Smrgfor as_dir in $PATH
4796e4ee1255Smrgdo
4797e4ee1255Smrg  IFS=$as_save_IFS
4798e4ee1255Smrg  test -z "$as_dir" && as_dir=.
4799e4ee1255Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4800e4ee1255Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4801e4ee1255Smrg    ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
4802e4ee1255Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4803e4ee1255Smrg    break 2
4804e4ee1255Smrg  fi
4805e4ee1255Smrgdone
4806e4ee1255Smrg  done
4807e4ee1255SmrgIFS=$as_save_IFS
4808e4ee1255Smrg
4809e4ee1255Smrg  ;;
4810e4ee1255Smrgesac
4811e4ee1255Smrgfi
4812e4ee1255SmrgMKTEMP=$ac_cv_path_MKTEMP
4813e4ee1255Smrgif test -n "$MKTEMP"; then
4814e4ee1255Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
4815e4ee1255Smrg$as_echo "$MKTEMP" >&6; }
4816e4ee1255Smrgelse
4817e4ee1255Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4818e4ee1255Smrg$as_echo "no" >&6; }
4819e4ee1255Smrgfi
4820e4ee1255Smrg
4821e4ee1255Smrg
4822e4ee1255Smrg
4823264fa531Smrg# Checks for pkg-config packages
4824264fa531Smrg
4825264fa531Smrgpkg_failed=no
4826736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11PERF" >&5
4827c37a63b8Smrg$as_echo_n "checking for X11PERF... " >&6; }
4828c37a63b8Smrg
4829c37a63b8Smrgif test -n "$X11PERF_CFLAGS"; then
4830c37a63b8Smrg    pkg_cv_X11PERF_CFLAGS="$X11PERF_CFLAGS"
4831c37a63b8Smrg elif test -n "$PKG_CONFIG"; then
4832c37a63b8Smrg    if test -n "$PKG_CONFIG" && \
4833736a7e2cSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmuu\""; } >&5
4834264fa531Smrg  ($PKG_CONFIG --exists --print-errors "x11 xmuu") 2>&5
4835264fa531Smrg  ac_status=$?
4836736a7e2cSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4837736a7e2cSmrg  test $ac_status = 0; }; then
4838264fa531Smrg  pkg_cv_X11PERF_CFLAGS=`$PKG_CONFIG --cflags "x11 xmuu" 2>/dev/null`
4839264fa531Smrgelse
4840264fa531Smrg  pkg_failed=yes
4841264fa531Smrgfi
4842c37a63b8Smrg else
4843c37a63b8Smrg    pkg_failed=untried
4844264fa531Smrgfi
4845c37a63b8Smrgif test -n "$X11PERF_LIBS"; then
4846c37a63b8Smrg    pkg_cv_X11PERF_LIBS="$X11PERF_LIBS"
4847c37a63b8Smrg elif test -n "$PKG_CONFIG"; then
4848c37a63b8Smrg    if test -n "$PKG_CONFIG" && \
4849736a7e2cSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmuu\""; } >&5
4850264fa531Smrg  ($PKG_CONFIG --exists --print-errors "x11 xmuu") 2>&5
4851264fa531Smrg  ac_status=$?
4852736a7e2cSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4853736a7e2cSmrg  test $ac_status = 0; }; then
4854264fa531Smrg  pkg_cv_X11PERF_LIBS=`$PKG_CONFIG --libs "x11 xmuu" 2>/dev/null`
4855264fa531Smrgelse
4856264fa531Smrg  pkg_failed=yes
4857264fa531Smrgfi
4858c37a63b8Smrg else
4859c37a63b8Smrg    pkg_failed=untried
4860264fa531Smrgfi
4861264fa531Smrg
4862c37a63b8Smrg
4863c37a63b8Smrg
4864264fa531Smrgif test $pkg_failed = yes; then
4865c37a63b8Smrg
4866c37a63b8Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4867c37a63b8Smrg        _pkg_short_errors_supported=yes
4868c37a63b8Smrgelse
4869c37a63b8Smrg        _pkg_short_errors_supported=no
4870c37a63b8Smrgfi
4871c37a63b8Smrg        if test $_pkg_short_errors_supported = yes; then
4872c37a63b8Smrg	        X11PERF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xmuu" 2>&1`
4873c37a63b8Smrg        else
4874c37a63b8Smrg	        X11PERF_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xmuu" 2>&1`
4875c37a63b8Smrg        fi
4876264fa531Smrg	# Put the nasty error message in config.log where it belongs
4877c37a63b8Smrg	echo "$X11PERF_PKG_ERRORS" >&5
4878c37a63b8Smrg
4879736a7e2cSmrg	as_fn_error $? "Package requirements (x11 xmuu) were not met:
4880c37a63b8Smrg
4881c37a63b8Smrg$X11PERF_PKG_ERRORS
4882c37a63b8Smrg
4883264fa531SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
4884264fa531Smrginstalled software in a non-standard prefix.
4885264fa531Smrg
4886c37a63b8SmrgAlternatively, you may set the environment variables X11PERF_CFLAGS
4887c37a63b8Smrgand X11PERF_LIBS to avoid the need to call pkg-config.
4888c37a63b8SmrgSee the pkg-config man page for more details.
4889736a7e2cSmrg" "$LINENO" 5
4890264fa531Smrgelif test $pkg_failed = untried; then
4891736a7e2cSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4892c37a63b8Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4893736a7e2cSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
4894264fa531Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
4895264fa531Smrgpath to pkg-config.
4896264fa531Smrg
4897c37a63b8SmrgAlternatively, you may set the environment variables X11PERF_CFLAGS
4898c37a63b8Smrgand X11PERF_LIBS to avoid the need to call pkg-config.
4899c37a63b8SmrgSee the pkg-config man page for more details.
4900264fa531Smrg
4901c37a63b8SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
4902736a7e2cSmrgSee \`config.log' for more details" "$LINENO" 5; }
4903264fa531Smrgelse
4904264fa531Smrg	X11PERF_CFLAGS=$pkg_cv_X11PERF_CFLAGS
4905264fa531Smrg	X11PERF_LIBS=$pkg_cv_X11PERF_LIBS
4906736a7e2cSmrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4907c37a63b8Smrg$as_echo "yes" >&6; }
4908264fa531Smrg	:
4909264fa531Smrgfi
4910264fa531Smrg
4911264fa531Smrg# Check for Xrender library
4912264fa531Smrg
4913264fa531Smrgpkg_failed=no
4914736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRENDER" >&5
4915c37a63b8Smrg$as_echo_n "checking for XRENDER... " >&6; }
4916c37a63b8Smrg
4917c37a63b8Smrgif test -n "$XRENDER_CFLAGS"; then
4918c37a63b8Smrg    pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS"
4919c37a63b8Smrg elif test -n "$PKG_CONFIG"; then
4920c37a63b8Smrg    if test -n "$PKG_CONFIG" && \
4921736a7e2cSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender\""; } >&5
4922264fa531Smrg  ($PKG_CONFIG --exists --print-errors "xrender") 2>&5
4923264fa531Smrg  ac_status=$?
4924736a7e2cSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4925736a7e2cSmrg  test $ac_status = 0; }; then
4926264fa531Smrg  pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender" 2>/dev/null`
4927264fa531Smrgelse
4928264fa531Smrg  pkg_failed=yes
4929264fa531Smrgfi
4930c37a63b8Smrg else
4931c37a63b8Smrg    pkg_failed=untried
4932264fa531Smrgfi
4933c37a63b8Smrgif test -n "$XRENDER_LIBS"; then
4934c37a63b8Smrg    pkg_cv_XRENDER_LIBS="$XRENDER_LIBS"
4935c37a63b8Smrg elif test -n "$PKG_CONFIG"; then
4936c37a63b8Smrg    if test -n "$PKG_CONFIG" && \
4937736a7e2cSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender\""; } >&5
4938264fa531Smrg  ($PKG_CONFIG --exists --print-errors "xrender") 2>&5
4939264fa531Smrg  ac_status=$?
4940736a7e2cSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4941736a7e2cSmrg  test $ac_status = 0; }; then
4942264fa531Smrg  pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender" 2>/dev/null`
4943264fa531Smrgelse
4944264fa531Smrg  pkg_failed=yes
4945264fa531Smrgfi
4946c37a63b8Smrg else
4947c37a63b8Smrg    pkg_failed=untried
4948264fa531Smrgfi
4949264fa531Smrg
4950c37a63b8Smrg
4951c37a63b8Smrg
4952264fa531Smrgif test $pkg_failed = yes; then
4953c37a63b8Smrg
4954c37a63b8Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4955c37a63b8Smrg        _pkg_short_errors_supported=yes
4956c37a63b8Smrgelse
4957c37a63b8Smrg        _pkg_short_errors_supported=no
4958c37a63b8Smrgfi
4959c37a63b8Smrg        if test $_pkg_short_errors_supported = yes; then
4960c37a63b8Smrg	        XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xrender" 2>&1`
4961c37a63b8Smrg        else
4962c37a63b8Smrg	        XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors "xrender" 2>&1`
4963c37a63b8Smrg        fi
4964264fa531Smrg	# Put the nasty error message in config.log where it belongs
4965c37a63b8Smrg	echo "$XRENDER_PKG_ERRORS" >&5
4966264fa531Smrg
4967736a7e2cSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4968c37a63b8Smrg$as_echo "no" >&6; }
4969c37a63b8Smrg                xrender_found=no
4970264fa531Smrgelif test $pkg_failed = untried; then
4971264fa531Smrg	xrender_found=no
4972264fa531Smrgelse
4973264fa531Smrg	XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS
4974264fa531Smrg	XRENDER_LIBS=$pkg_cv_XRENDER_LIBS
4975736a7e2cSmrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4976c37a63b8Smrg$as_echo "yes" >&6; }
4977264fa531Smrg	xrender_found=yes
4978264fa531Smrgfi
4979264fa531Smrgcase "$xrender_found" in
4980264fa531Smrgyes)
4981264fa531Smrg
4982736a7e2cSmrg$as_echo "#define XRENDER 1" >>confdefs.h
4983264fa531Smrg
4984264fa531Smrg	;;
4985264fa531Smrgesac
4986264fa531Smrg
4987264fa531Smrg# Check for Xft library
4988264fa531Smrg
4989264fa531Smrgpkg_failed=no
4990736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFT" >&5
4991c37a63b8Smrg$as_echo_n "checking for XFT... " >&6; }
4992c37a63b8Smrg
4993c37a63b8Smrgif test -n "$XFT_CFLAGS"; then
4994c37a63b8Smrg    pkg_cv_XFT_CFLAGS="$XFT_CFLAGS"
4995c37a63b8Smrg elif test -n "$PKG_CONFIG"; then
4996c37a63b8Smrg    if test -n "$PKG_CONFIG" && \
4997736a7e2cSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft\""; } >&5
4998264fa531Smrg  ($PKG_CONFIG --exists --print-errors "xft") 2>&5
4999264fa531Smrg  ac_status=$?
5000736a7e2cSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5001736a7e2cSmrg  test $ac_status = 0; }; then
5002264fa531Smrg  pkg_cv_XFT_CFLAGS=`$PKG_CONFIG --cflags "xft" 2>/dev/null`
5003264fa531Smrgelse
5004264fa531Smrg  pkg_failed=yes
5005264fa531Smrgfi
5006c37a63b8Smrg else
5007c37a63b8Smrg    pkg_failed=untried
5008264fa531Smrgfi
5009c37a63b8Smrgif test -n "$XFT_LIBS"; then
5010c37a63b8Smrg    pkg_cv_XFT_LIBS="$XFT_LIBS"
5011c37a63b8Smrg elif test -n "$PKG_CONFIG"; then
5012c37a63b8Smrg    if test -n "$PKG_CONFIG" && \
5013736a7e2cSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft\""; } >&5
5014264fa531Smrg  ($PKG_CONFIG --exists --print-errors "xft") 2>&5
5015264fa531Smrg  ac_status=$?
5016736a7e2cSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5017736a7e2cSmrg  test $ac_status = 0; }; then
5018264fa531Smrg  pkg_cv_XFT_LIBS=`$PKG_CONFIG --libs "xft" 2>/dev/null`
5019264fa531Smrgelse
5020264fa531Smrg  pkg_failed=yes
5021264fa531Smrgfi
5022c37a63b8Smrg else
5023c37a63b8Smrg    pkg_failed=untried
5024264fa531Smrgfi
5025264fa531Smrg
5026c37a63b8Smrg
5027c37a63b8Smrg
5028264fa531Smrgif test $pkg_failed = yes; then
5029c37a63b8Smrg
5030c37a63b8Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5031c37a63b8Smrg        _pkg_short_errors_supported=yes
5032c37a63b8Smrgelse
5033c37a63b8Smrg        _pkg_short_errors_supported=no
5034c37a63b8Smrgfi
5035c37a63b8Smrg        if test $_pkg_short_errors_supported = yes; then
5036c37a63b8Smrg	        XFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xft" 2>&1`
5037c37a63b8Smrg        else
5038c37a63b8Smrg	        XFT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xft" 2>&1`
5039c37a63b8Smrg        fi
5040264fa531Smrg	# Put the nasty error message in config.log where it belongs
5041c37a63b8Smrg	echo "$XFT_PKG_ERRORS" >&5
5042264fa531Smrg
5043736a7e2cSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5044c37a63b8Smrg$as_echo "no" >&6; }
5045c37a63b8Smrg                xft_found=no
5046264fa531Smrgelif test $pkg_failed = untried; then
5047264fa531Smrg	xft_found=no
5048264fa531Smrgelse
5049264fa531Smrg	XFT_CFLAGS=$pkg_cv_XFT_CFLAGS
5050264fa531Smrg	XFT_LIBS=$pkg_cv_XFT_LIBS
5051736a7e2cSmrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5052c37a63b8Smrg$as_echo "yes" >&6; }
5053264fa531Smrg	xft_found=yes
5054264fa531Smrgfi
5055264fa531Smrgcase "$xft_found" in
5056264fa531Smrgyes)
5057264fa531Smrg
5058736a7e2cSmrg$as_echo "#define XFT 1" >>confdefs.h
5059264fa531Smrg
5060264fa531Smrg	;;
5061264fa531Smrgesac
5062264fa531Smrg
5063264fa531Smrg# Check for MIT-SHM extension
5064264fa531Smrg
5065264fa531Smrgpkg_failed=no
5066736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
5067c37a63b8Smrg$as_echo_n "checking for XEXT... " >&6; }
5068c37a63b8Smrg
5069c37a63b8Smrgif test -n "$XEXT_CFLAGS"; then
5070c37a63b8Smrg    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
5071c37a63b8Smrg elif test -n "$PKG_CONFIG"; then
5072c37a63b8Smrg    if test -n "$PKG_CONFIG" && \
5073736a7e2cSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
5074264fa531Smrg  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
5075264fa531Smrg  ac_status=$?
5076736a7e2cSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5077736a7e2cSmrg  test $ac_status = 0; }; then
5078264fa531Smrg  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
5079264fa531Smrgelse
5080264fa531Smrg  pkg_failed=yes
5081264fa531Smrgfi
5082c37a63b8Smrg else
5083c37a63b8Smrg    pkg_failed=untried
5084264fa531Smrgfi
5085c37a63b8Smrgif test -n "$XEXT_LIBS"; then
5086c37a63b8Smrg    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
5087c37a63b8Smrg elif test -n "$PKG_CONFIG"; then
5088c37a63b8Smrg    if test -n "$PKG_CONFIG" && \
5089736a7e2cSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
5090264fa531Smrg  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
5091264fa531Smrg  ac_status=$?
5092736a7e2cSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5093736a7e2cSmrg  test $ac_status = 0; }; then
5094264fa531Smrg  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
5095264fa531Smrgelse
5096264fa531Smrg  pkg_failed=yes
5097264fa531Smrgfi
5098c37a63b8Smrg else
5099c37a63b8Smrg    pkg_failed=untried
5100264fa531Smrgfi
5101264fa531Smrg
5102736a7e2cSmrg
5103736a7e2cSmrg
5104736a7e2cSmrgif test $pkg_failed = yes; then
5105736a7e2cSmrg
5106736a7e2cSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5107736a7e2cSmrg        _pkg_short_errors_supported=yes
5108736a7e2cSmrgelse
5109736a7e2cSmrg        _pkg_short_errors_supported=no
5110264fa531Smrgfi
5111736a7e2cSmrg        if test $_pkg_short_errors_supported = yes; then
5112736a7e2cSmrg	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xext" 2>&1`
5113736a7e2cSmrg        else
5114736a7e2cSmrg	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xext" 2>&1`
5115736a7e2cSmrg        fi
5116736a7e2cSmrg	# Put the nasty error message in config.log where it belongs
5117736a7e2cSmrg	echo "$XEXT_PKG_ERRORS" >&5
5118c37a63b8Smrg
5119736a7e2cSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120736a7e2cSmrg$as_echo "no" >&6; }
5121736a7e2cSmrg                xext_found=no
5122736a7e2cSmrgelif test $pkg_failed = untried; then
5123736a7e2cSmrg	xext_found=no
5124736a7e2cSmrgelse
5125736a7e2cSmrg	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
5126736a7e2cSmrg	XEXT_LIBS=$pkg_cv_XEXT_LIBS
5127736a7e2cSmrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5128736a7e2cSmrg$as_echo "yes" >&6; }
5129736a7e2cSmrg	xext_found=yes
5130264fa531Smrgfi
5131736a7e2cSmrgcase "$xext_found" in
5132736a7e2cSmrgyes)
5133736a7e2cSmrg	save_LIBS="$LIBS"
5134736a7e2cSmrg	LIBS="$XEXT_LIBS $LIBS"
5135736a7e2cSmrg	for ac_func in XShmQueryExtension
5136736a7e2cSmrgdo :
5137736a7e2cSmrg  ac_fn_c_check_func "$LINENO" "XShmQueryExtension" "ac_cv_func_XShmQueryExtension"
5138736a7e2cSmrgif test "x$ac_cv_func_XShmQueryExtension" = xyes; then :
5139264fa531Smrg  cat >>confdefs.h <<_ACEOF
5140736a7e2cSmrg#define HAVE_XSHMQUERYEXTENSION 1
5141264fa531Smrg_ACEOF
5142264fa531Smrg
5143736a7e2cSmrg$as_echo "#define MITSHM 1" >>confdefs.h
5144264fa531Smrg
5145264fa531Smrgfi
5146264fa531Smrgdone
5147264fa531Smrg
5148264fa531Smrg	LIBS="$save_LIBS"
5149264fa531Smrg	;;
5150264fa531Smrgesac
5151264fa531Smrg
5152e4ee1255Smrgac_config_files="$ac_config_files Makefile man/Makefile"
5153264fa531Smrg
5154264fa531Smrgcat >confcache <<\_ACEOF
5155264fa531Smrg# This file is a shell script that caches the results of configure
5156264fa531Smrg# tests run on this system so they can be shared between configure
5157264fa531Smrg# scripts and configure runs, see configure's option --config-cache.
5158264fa531Smrg# It is not useful on other systems.  If it contains results you don't
5159264fa531Smrg# want to keep, you may remove or edit it.
5160264fa531Smrg#
5161264fa531Smrg# config.status only pays attention to the cache file if you give it
5162264fa531Smrg# the --recheck option to rerun configure.
5163264fa531Smrg#
5164264fa531Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
5165264fa531Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
5166264fa531Smrg# following values.
5167264fa531Smrg
5168264fa531Smrg_ACEOF
5169264fa531Smrg
5170264fa531Smrg# The following way of writing the cache mishandles newlines in values,
5171264fa531Smrg# but we know of no workaround that is simple, portable, and efficient.
5172c37a63b8Smrg# So, we kill variables containing newlines.
5173264fa531Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
5174264fa531Smrg# and sets the high bit in the cache file unless we assign to the vars.
5175c37a63b8Smrg(
5176c37a63b8Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5177c37a63b8Smrg    eval ac_val=\$$ac_var
5178c37a63b8Smrg    case $ac_val in #(
5179c37a63b8Smrg    *${as_nl}*)
5180c37a63b8Smrg      case $ac_var in #(
5181736a7e2cSmrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5182c37a63b8Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5183c37a63b8Smrg      esac
5184c37a63b8Smrg      case $ac_var in #(
5185c37a63b8Smrg      _ | IFS | as_nl) ;; #(
5186c37a63b8Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5187736a7e2cSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
5188c37a63b8Smrg      esac ;;
5189c37a63b8Smrg    esac
5190c37a63b8Smrg  done
5191c37a63b8Smrg
5192264fa531Smrg  (set) 2>&1 |
5193c37a63b8Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
5194c37a63b8Smrg    *${as_nl}ac_space=\ *)
5195736a7e2cSmrg      # `set' does not quote correctly, so add quotes: double-quote
5196736a7e2cSmrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
5197264fa531Smrg      sed -n \
5198264fa531Smrg	"s/'/'\\\\''/g;
5199264fa531Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5200c37a63b8Smrg      ;; #(
5201264fa531Smrg    *)
5202264fa531Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
5203c37a63b8Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5204264fa531Smrg      ;;
5205c37a63b8Smrg    esac |
5206c37a63b8Smrg    sort
5207c37a63b8Smrg) |
5208264fa531Smrg  sed '
5209c37a63b8Smrg     /^ac_cv_env_/b end
5210264fa531Smrg     t clear
5211c37a63b8Smrg     :clear
5212264fa531Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5213264fa531Smrg     t end
5214c37a63b8Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5215c37a63b8Smrg     :end' >>confcache
5216c37a63b8Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5217c37a63b8Smrg  if test -w "$cache_file"; then
5218736a7e2cSmrg    if test "x$cache_file" != "x/dev/null"; then
5219736a7e2cSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5220c37a63b8Smrg$as_echo "$as_me: updating cache $cache_file" >&6;}
5221736a7e2cSmrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
5222736a7e2cSmrg	cat confcache >"$cache_file"
5223736a7e2cSmrg      else
5224736a7e2cSmrg        case $cache_file in #(
5225736a7e2cSmrg        */* | ?:*)
5226736a7e2cSmrg	  mv -f confcache "$cache_file"$$ &&
5227736a7e2cSmrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
5228736a7e2cSmrg        *)
5229736a7e2cSmrg	  mv -f confcache "$cache_file" ;;
5230736a7e2cSmrg	esac
5231736a7e2cSmrg      fi
5232736a7e2cSmrg    fi
5233264fa531Smrg  else
5234736a7e2cSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5235c37a63b8Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5236264fa531Smrg  fi
5237264fa531Smrgfi
5238264fa531Smrgrm -f confcache
5239264fa531Smrg
5240264fa531Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
5241264fa531Smrg# Let make expand exec_prefix.
5242264fa531Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5243264fa531Smrg
5244264fa531SmrgDEFS=-DHAVE_CONFIG_H
5245264fa531Smrg
5246264fa531Smrgac_libobjs=
5247264fa531Smrgac_ltlibobjs=
5248736a7e2cSmrgU=
5249264fa531Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5250264fa531Smrg  # 1. Remove the extension, and $U if already installed.
5251c37a63b8Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5252c37a63b8Smrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5253c37a63b8Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5254c37a63b8Smrg  #    will be set to the directory where LIBOBJS objects are built.
5255736a7e2cSmrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5256736a7e2cSmrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5257264fa531Smrgdone
5258264fa531SmrgLIBOBJS=$ac_libobjs
5259264fa531Smrg
5260264fa531SmrgLTLIBOBJS=$ac_ltlibobjs
5261264fa531Smrg
5262264fa531Smrg
5263c37a63b8Smrg if test -n "$EXEEXT"; then
5264c37a63b8Smrg  am__EXEEXT_TRUE=
5265c37a63b8Smrg  am__EXEEXT_FALSE='#'
5266c37a63b8Smrgelse
5267c37a63b8Smrg  am__EXEEXT_TRUE='#'
5268c37a63b8Smrg  am__EXEEXT_FALSE=
5269c37a63b8Smrgfi
5270c37a63b8Smrg
5271264fa531Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5272736a7e2cSmrg  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
5273736a7e2cSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
5274264fa531Smrgfi
5275264fa531Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5276736a7e2cSmrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
5277736a7e2cSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
5278264fa531Smrgfi
5279264fa531Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5280736a7e2cSmrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5281736a7e2cSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
5282264fa531Smrgfi
5283264fa531Smrg
5284736a7e2cSmrg: "${CONFIG_STATUS=./config.status}"
5285c37a63b8Smrgac_write_fail=0
5286264fa531Smrgac_clean_files_save=$ac_clean_files
5287264fa531Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
5288736a7e2cSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5289c37a63b8Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5290736a7e2cSmrgas_write_fail=0
5291736a7e2cSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5292264fa531Smrg#! $SHELL
5293264fa531Smrg# Generated by $as_me.
5294264fa531Smrg# Run this file to recreate the current configuration.
5295264fa531Smrg# Compiler output produced by configure, useful for debugging
5296264fa531Smrg# configure, is in config.log if it exists.
5297264fa531Smrg
5298264fa531Smrgdebug=false
5299264fa531Smrgac_cs_recheck=false
5300264fa531Smrgac_cs_silent=false
5301264fa531Smrg
5302736a7e2cSmrgSHELL=\${CONFIG_SHELL-$SHELL}
5303736a7e2cSmrgexport SHELL
5304736a7e2cSmrg_ASEOF
5305736a7e2cSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5306736a7e2cSmrg## -------------------- ##
5307736a7e2cSmrg## M4sh Initialization. ##
5308736a7e2cSmrg## -------------------- ##
5309264fa531Smrg
5310c37a63b8Smrg# Be more Bourne compatible
5311c37a63b8SmrgDUALCASE=1; export DUALCASE # for MKS sh
5312736a7e2cSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5313264fa531Smrg  emulate sh
5314264fa531Smrg  NULLCMD=:
5315c37a63b8Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5316264fa531Smrg  # is contrary to our usage.  Disable this feature.
5317264fa531Smrg  alias -g '${1+"$@"}'='"$@"'
5318c37a63b8Smrg  setopt NO_GLOB_SUBST
5319c37a63b8Smrgelse
5320736a7e2cSmrg  case `(set -o) 2>/dev/null` in #(
5321736a7e2cSmrg  *posix*) :
5322736a7e2cSmrg    set -o posix ;; #(
5323736a7e2cSmrg  *) :
5324736a7e2cSmrg     ;;
5325c37a63b8Smrgesac
5326c37a63b8Smrgfi
5327c37a63b8Smrg
5328c37a63b8Smrg
5329c37a63b8Smrgas_nl='
5330c37a63b8Smrg'
5331c37a63b8Smrgexport as_nl
5332c37a63b8Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
5333c37a63b8Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5334c37a63b8Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5335c37a63b8Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5336736a7e2cSmrg# Prefer a ksh shell builtin over an external printf program on Solaris,
5337736a7e2cSmrg# but without wasting forks for bash or zsh.
5338736a7e2cSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \
5339736a7e2cSmrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5340736a7e2cSmrg  as_echo='print -r --'
5341736a7e2cSmrg  as_echo_n='print -rn --'
5342736a7e2cSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5343c37a63b8Smrg  as_echo='printf %s\n'
5344c37a63b8Smrg  as_echo_n='printf %s'
5345c37a63b8Smrgelse
5346c37a63b8Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5347c37a63b8Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5348c37a63b8Smrg    as_echo_n='/usr/ucb/echo -n'
5349c37a63b8Smrg  else
5350c37a63b8Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5351c37a63b8Smrg    as_echo_n_body='eval
5352c37a63b8Smrg      arg=$1;
5353736a7e2cSmrg      case $arg in #(
5354c37a63b8Smrg      *"$as_nl"*)
5355c37a63b8Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
5356c37a63b8Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5357c37a63b8Smrg      esac;
5358c37a63b8Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5359c37a63b8Smrg    '
5360c37a63b8Smrg    export as_echo_n_body
5361c37a63b8Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
5362c37a63b8Smrg  fi
5363c37a63b8Smrg  export as_echo_body
5364c37a63b8Smrg  as_echo='sh -c $as_echo_body as_echo'
5365c37a63b8Smrgfi
5366c37a63b8Smrg
5367c37a63b8Smrg# The user is always right.
5368c37a63b8Smrgif test "${PATH_SEPARATOR+set}" != set; then
5369c37a63b8Smrg  PATH_SEPARATOR=:
5370c37a63b8Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5371c37a63b8Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5372c37a63b8Smrg      PATH_SEPARATOR=';'
5373c37a63b8Smrg  }
5374264fa531Smrgfi
5375264fa531Smrg
5376264fa531Smrg
5377c37a63b8Smrg# IFS
5378c37a63b8Smrg# We need space, tab and new line, in precisely that order.  Quoting is
5379c37a63b8Smrg# there to prevent editors from complaining about space-tab.
5380c37a63b8Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5381c37a63b8Smrg# splitting by setting IFS to empty value.)
5382c37a63b8SmrgIFS=" ""	$as_nl"
5383c37a63b8Smrg
5384c37a63b8Smrg# Find who we are.  Look in the path if we contain no directory separator.
5385736a7e2cSmrgas_myself=
5386736a7e2cSmrgcase $0 in #((
5387c37a63b8Smrg  *[\\/]* ) as_myself=$0 ;;
5388c37a63b8Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389c37a63b8Smrgfor as_dir in $PATH
5390c37a63b8Smrgdo
5391c37a63b8Smrg  IFS=$as_save_IFS
5392c37a63b8Smrg  test -z "$as_dir" && as_dir=.
5393736a7e2cSmrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5394736a7e2cSmrg  done
5395c37a63b8SmrgIFS=$as_save_IFS
5396c37a63b8Smrg
5397c37a63b8Smrg     ;;
5398c37a63b8Smrgesac
5399c37a63b8Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
5400c37a63b8Smrg# in which case we are not to be found in the path.
5401c37a63b8Smrgif test "x$as_myself" = x; then
5402c37a63b8Smrg  as_myself=$0
5403c37a63b8Smrgfi
5404c37a63b8Smrgif test ! -f "$as_myself"; then
5405c37a63b8Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5406736a7e2cSmrg  exit 1
5407c37a63b8Smrgfi
5408c37a63b8Smrg
5409736a7e2cSmrg# Unset variables that we do not need and which cause bugs (e.g. in
5410736a7e2cSmrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5411736a7e2cSmrg# suppresses any "Segmentation fault" message there.  '((' could
5412736a7e2cSmrg# trigger a bug in pdksh 5.2.14.
5413736a7e2cSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH
5414736a7e2cSmrgdo eval test x\${$as_var+set} = xset \
5415736a7e2cSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5416c37a63b8Smrgdone
5417264fa531SmrgPS1='$ '
5418264fa531SmrgPS2='> '
5419264fa531SmrgPS4='+ '
5420264fa531Smrg
5421264fa531Smrg# NLS nuisances.
5422c37a63b8SmrgLC_ALL=C
5423c37a63b8Smrgexport LC_ALL
5424c37a63b8SmrgLANGUAGE=C
5425c37a63b8Smrgexport LANGUAGE
5426264fa531Smrg
5427736a7e2cSmrg# CDPATH.
5428736a7e2cSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5429736a7e2cSmrg
5430736a7e2cSmrg
5431736a7e2cSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
5432736a7e2cSmrg# ----------------------------------------
5433736a7e2cSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5434736a7e2cSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5435736a7e2cSmrg# script with STATUS, using 1 if that was 0.
5436736a7e2cSmrgas_fn_error ()
5437736a7e2cSmrg{
5438736a7e2cSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
5439736a7e2cSmrg  if test "$4"; then
5440736a7e2cSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5441736a7e2cSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5442736a7e2cSmrg  fi
5443736a7e2cSmrg  $as_echo "$as_me: error: $2" >&2
5444736a7e2cSmrg  as_fn_exit $as_status
5445736a7e2cSmrg} # as_fn_error
5446736a7e2cSmrg
5447736a7e2cSmrg
5448736a7e2cSmrg# as_fn_set_status STATUS
5449736a7e2cSmrg# -----------------------
5450736a7e2cSmrg# Set $? to STATUS, without forking.
5451736a7e2cSmrgas_fn_set_status ()
5452736a7e2cSmrg{
5453736a7e2cSmrg  return $1
5454736a7e2cSmrg} # as_fn_set_status
5455736a7e2cSmrg
5456736a7e2cSmrg# as_fn_exit STATUS
5457736a7e2cSmrg# -----------------
5458736a7e2cSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5459736a7e2cSmrgas_fn_exit ()
5460736a7e2cSmrg{
5461736a7e2cSmrg  set +e
5462736a7e2cSmrg  as_fn_set_status $1
5463736a7e2cSmrg  exit $1
5464736a7e2cSmrg} # as_fn_exit
5465736a7e2cSmrg
5466736a7e2cSmrg# as_fn_unset VAR
5467736a7e2cSmrg# ---------------
5468736a7e2cSmrg# Portably unset VAR.
5469736a7e2cSmrgas_fn_unset ()
5470736a7e2cSmrg{
5471736a7e2cSmrg  { eval $1=; unset $1;}
5472736a7e2cSmrg}
5473736a7e2cSmrgas_unset=as_fn_unset
5474736a7e2cSmrg# as_fn_append VAR VALUE
5475736a7e2cSmrg# ----------------------
5476736a7e2cSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
5477736a7e2cSmrg# advantage of any shell optimizations that allow amortized linear growth over
5478736a7e2cSmrg# repeated appends, instead of the typical quadratic growth present in naive
5479736a7e2cSmrg# implementations.
5480736a7e2cSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5481736a7e2cSmrg  eval 'as_fn_append ()
5482736a7e2cSmrg  {
5483736a7e2cSmrg    eval $1+=\$2
5484736a7e2cSmrg  }'
5485736a7e2cSmrgelse
5486736a7e2cSmrg  as_fn_append ()
5487736a7e2cSmrg  {
5488736a7e2cSmrg    eval $1=\$$1\$2
5489736a7e2cSmrg  }
5490736a7e2cSmrgfi # as_fn_append
5491736a7e2cSmrg
5492736a7e2cSmrg# as_fn_arith ARG...
5493736a7e2cSmrg# ------------------
5494736a7e2cSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
5495736a7e2cSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
5496736a7e2cSmrg# must be portable across $(()) and expr.
5497736a7e2cSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5498736a7e2cSmrg  eval 'as_fn_arith ()
5499736a7e2cSmrg  {
5500736a7e2cSmrg    as_val=$(( $* ))
5501736a7e2cSmrg  }'
5502736a7e2cSmrgelse
5503736a7e2cSmrg  as_fn_arith ()
5504736a7e2cSmrg  {
5505736a7e2cSmrg    as_val=`expr "$@" || test $? -eq 1`
5506736a7e2cSmrg  }
5507736a7e2cSmrgfi # as_fn_arith
5508736a7e2cSmrg
5509736a7e2cSmrg
5510c37a63b8Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
5511c37a63b8Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5512264fa531Smrg  as_expr=expr
5513264fa531Smrgelse
5514264fa531Smrg  as_expr=false
5515264fa531Smrgfi
5516264fa531Smrg
5517c37a63b8Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5518264fa531Smrg  as_basename=basename
5519264fa531Smrgelse
5520264fa531Smrg  as_basename=false
5521264fa531Smrgfi
5522264fa531Smrg
5523736a7e2cSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5524736a7e2cSmrg  as_dirname=dirname
5525736a7e2cSmrgelse
5526736a7e2cSmrg  as_dirname=false
5527736a7e2cSmrgfi
5528264fa531Smrg
5529c37a63b8Smrgas_me=`$as_basename -- "$0" ||
5530264fa531Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5531264fa531Smrg	 X"$0" : 'X\(//\)$' \| \
5532c37a63b8Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5533c37a63b8Smrg$as_echo X/"$0" |
5534c37a63b8Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
5535c37a63b8Smrg	    s//\1/
5536c37a63b8Smrg	    q
5537c37a63b8Smrg	  }
5538c37a63b8Smrg	  /^X\/\(\/\/\)$/{
5539c37a63b8Smrg	    s//\1/
5540c37a63b8Smrg	    q
5541c37a63b8Smrg	  }
5542c37a63b8Smrg	  /^X\/\(\/\).*/{
5543c37a63b8Smrg	    s//\1/
5544c37a63b8Smrg	    q
5545c37a63b8Smrg	  }
5546c37a63b8Smrg	  s/.*/./; q'`
5547264fa531Smrg
5548736a7e2cSmrg# Avoid depending upon Character Ranges.
5549736a7e2cSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
5550736a7e2cSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5551736a7e2cSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
5552736a7e2cSmrgas_cr_digits='0123456789'
5553736a7e2cSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
5554264fa531Smrg
5555c37a63b8SmrgECHO_C= ECHO_N= ECHO_T=
5556736a7e2cSmrgcase `echo -n x` in #(((((
5557c37a63b8Smrg-n*)
5558736a7e2cSmrg  case `echo 'xy\c'` in
5559c37a63b8Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5560736a7e2cSmrg  xy)  ECHO_C='\c';;
5561736a7e2cSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5562736a7e2cSmrg       ECHO_T='	';;
5563c37a63b8Smrg  esac;;
5564c37a63b8Smrg*)
5565c37a63b8Smrg  ECHO_N='-n';;
5566c37a63b8Smrgesac
5567264fa531Smrg
5568264fa531Smrgrm -f conf$$ conf$$.exe conf$$.file
5569c37a63b8Smrgif test -d conf$$.dir; then
5570c37a63b8Smrg  rm -f conf$$.dir/conf$$.file
5571c37a63b8Smrgelse
5572c37a63b8Smrg  rm -f conf$$.dir
5573c37a63b8Smrg  mkdir conf$$.dir 2>/dev/null
5574c37a63b8Smrgfi
5575c37a63b8Smrgif (echo >conf$$.file) 2>/dev/null; then
5576c37a63b8Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
5577264fa531Smrg    as_ln_s='ln -s'
5578c37a63b8Smrg    # ... but there are two gotchas:
5579c37a63b8Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5580c37a63b8Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5581c37a63b8Smrg    # In both cases, we have to default to `cp -p'.
5582c37a63b8Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5583c37a63b8Smrg      as_ln_s='cp -p'
5584c37a63b8Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
5585c37a63b8Smrg    as_ln_s=ln
5586c37a63b8Smrg  else
5587c37a63b8Smrg    as_ln_s='cp -p'
5588264fa531Smrg  fi
5589264fa531Smrgelse
5590264fa531Smrg  as_ln_s='cp -p'
5591264fa531Smrgfi
5592c37a63b8Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5593c37a63b8Smrgrmdir conf$$.dir 2>/dev/null
5594264fa531Smrg
5595736a7e2cSmrg
5596736a7e2cSmrg# as_fn_mkdir_p
5597736a7e2cSmrg# -------------
5598736a7e2cSmrg# Create "$as_dir" as a directory, including parents if necessary.
5599736a7e2cSmrgas_fn_mkdir_p ()
5600736a7e2cSmrg{
5601736a7e2cSmrg
5602736a7e2cSmrg  case $as_dir in #(
5603736a7e2cSmrg  -*) as_dir=./$as_dir;;
5604736a7e2cSmrg  esac
5605736a7e2cSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
5606736a7e2cSmrg    as_dirs=
5607736a7e2cSmrg    while :; do
5608736a7e2cSmrg      case $as_dir in #(
5609736a7e2cSmrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5610736a7e2cSmrg      *) as_qdir=$as_dir;;
5611736a7e2cSmrg      esac
5612736a7e2cSmrg      as_dirs="'$as_qdir' $as_dirs"
5613736a7e2cSmrg      as_dir=`$as_dirname -- "$as_dir" ||
5614736a7e2cSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5615736a7e2cSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
5616736a7e2cSmrg	 X"$as_dir" : 'X\(//\)$' \| \
5617736a7e2cSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5618736a7e2cSmrg$as_echo X"$as_dir" |
5619736a7e2cSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5620736a7e2cSmrg	    s//\1/
5621736a7e2cSmrg	    q
5622736a7e2cSmrg	  }
5623736a7e2cSmrg	  /^X\(\/\/\)[^/].*/{
5624736a7e2cSmrg	    s//\1/
5625736a7e2cSmrg	    q
5626736a7e2cSmrg	  }
5627736a7e2cSmrg	  /^X\(\/\/\)$/{
5628736a7e2cSmrg	    s//\1/
5629736a7e2cSmrg	    q
5630736a7e2cSmrg	  }
5631736a7e2cSmrg	  /^X\(\/\).*/{
5632736a7e2cSmrg	    s//\1/
5633736a7e2cSmrg	    q
5634736a7e2cSmrg	  }
5635736a7e2cSmrg	  s/.*/./; q'`
5636736a7e2cSmrg      test -d "$as_dir" && break
5637736a7e2cSmrg    done
5638736a7e2cSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
5639736a7e2cSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5640736a7e2cSmrg
5641736a7e2cSmrg
5642736a7e2cSmrg} # as_fn_mkdir_p
5643264fa531Smrgif mkdir -p . 2>/dev/null; then
5644736a7e2cSmrg  as_mkdir_p='mkdir -p "$as_dir"'
5645264fa531Smrgelse
5646264fa531Smrg  test -d ./-p && rmdir ./-p
5647264fa531Smrg  as_mkdir_p=false
5648264fa531Smrgfi
5649264fa531Smrg
5650c37a63b8Smrgif test -x / >/dev/null 2>&1; then
5651c37a63b8Smrg  as_test_x='test -x'
5652c37a63b8Smrgelse
5653c37a63b8Smrg  if ls -dL / >/dev/null 2>&1; then
5654c37a63b8Smrg    as_ls_L_option=L
5655c37a63b8Smrg  else
5656c37a63b8Smrg    as_ls_L_option=
5657c37a63b8Smrg  fi
5658c37a63b8Smrg  as_test_x='
5659c37a63b8Smrg    eval sh -c '\''
5660c37a63b8Smrg      if test -d "$1"; then
5661c37a63b8Smrg	test -d "$1/.";
5662c37a63b8Smrg      else
5663736a7e2cSmrg	case $1 in #(
5664c37a63b8Smrg	-*)set "./$1";;
5665c37a63b8Smrg	esac;
5666736a7e2cSmrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5667c37a63b8Smrg	???[sx]*):;;*)false;;esac;fi
5668c37a63b8Smrg    '\'' sh
5669c37a63b8Smrg  '
5670c37a63b8Smrgfi
5671c37a63b8Smrgas_executable_p=$as_test_x
5672264fa531Smrg
5673264fa531Smrg# Sed expression to map a string onto a valid CPP name.
5674264fa531Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5675264fa531Smrg
5676264fa531Smrg# Sed expression to map a string onto a valid variable name.
5677264fa531Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5678264fa531Smrg
5679264fa531Smrg
5680264fa531Smrgexec 6>&1
5681736a7e2cSmrg## ----------------------------------- ##
5682736a7e2cSmrg## Main body of $CONFIG_STATUS script. ##
5683736a7e2cSmrg## ----------------------------------- ##
5684736a7e2cSmrg_ASEOF
5685736a7e2cSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5686264fa531Smrg
5687736a7e2cSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5688736a7e2cSmrg# Save the log message, to keep $0 and so on meaningful, and to
5689264fa531Smrg# report actual input values of CONFIG_FILES etc. instead of their
5690c37a63b8Smrg# values after options handling.
5691c37a63b8Smrgac_log="
5692e4ee1255SmrgThis file was extended by x11perf $as_me 1.5.4, which was
5693736a7e2cSmrggenerated by GNU Autoconf 2.68.  Invocation command line was
5694264fa531Smrg
5695264fa531Smrg  CONFIG_FILES    = $CONFIG_FILES
5696264fa531Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
5697264fa531Smrg  CONFIG_LINKS    = $CONFIG_LINKS
5698264fa531Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
5699264fa531Smrg  $ $0 $@
5700264fa531Smrg
5701c37a63b8Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
5702c37a63b8Smrg"
5703c37a63b8Smrg
5704264fa531Smrg_ACEOF
5705264fa531Smrg
5706c37a63b8Smrgcase $ac_config_files in *"
5707c37a63b8Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
5708c37a63b8Smrgesac
5709264fa531Smrg
5710c37a63b8Smrgcase $ac_config_headers in *"
5711c37a63b8Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5712c37a63b8Smrgesac
5713264fa531Smrg
5714264fa531Smrg
5715c37a63b8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5716c37a63b8Smrg# Files that config.status was made for.
5717c37a63b8Smrgconfig_files="$ac_config_files"
5718c37a63b8Smrgconfig_headers="$ac_config_headers"
5719c37a63b8Smrgconfig_commands="$ac_config_commands"
5720264fa531Smrg
5721c37a63b8Smrg_ACEOF
5722264fa531Smrg
5723c37a63b8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5724264fa531Smrgac_cs_usage="\
5725736a7e2cSmrg\`$as_me' instantiates files and other configuration actions
5726736a7e2cSmrgfrom templates according to the current configuration.  Unless the files
5727736a7e2cSmrgand actions are specified as TAGs, all are instantiated by default.
5728264fa531Smrg
5729736a7e2cSmrgUsage: $0 [OPTION]... [TAG]...
5730264fa531Smrg
5731264fa531Smrg  -h, --help       print this help, then exit
5732c37a63b8Smrg  -V, --version    print version number and configuration settings, then exit
5733736a7e2cSmrg      --config     print configuration, then exit
5734c37a63b8Smrg  -q, --quiet, --silent
5735c37a63b8Smrg                   do not print progress messages
5736264fa531Smrg  -d, --debug      don't remove temporary files
5737264fa531Smrg      --recheck    update $as_me by reconfiguring in the same conditions
5738c37a63b8Smrg      --file=FILE[:TEMPLATE]
5739c37a63b8Smrg                   instantiate the configuration file FILE
5740c37a63b8Smrg      --header=FILE[:TEMPLATE]
5741c37a63b8Smrg                   instantiate the configuration header FILE
5742264fa531Smrg
5743264fa531SmrgConfiguration files:
5744264fa531Smrg$config_files
5745264fa531Smrg
5746264fa531SmrgConfiguration headers:
5747264fa531Smrg$config_headers
5748264fa531Smrg
5749264fa531SmrgConfiguration commands:
5750264fa531Smrg$config_commands
5751264fa531Smrg
5752736a7e2cSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
5753264fa531Smrg
5754c37a63b8Smrg_ACEOF
5755c37a63b8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5756736a7e2cSmrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5757264fa531Smrgac_cs_version="\\
5758e4ee1255Smrgx11perf config.status 1.5.4
5759736a7e2cSmrgconfigured by $0, generated by GNU Autoconf 2.68,
5760736a7e2cSmrg  with options \\"\$ac_cs_config\\"
5761264fa531Smrg
5762736a7e2cSmrgCopyright (C) 2010 Free Software Foundation, Inc.
5763264fa531SmrgThis config.status script is free software; the Free Software Foundation
5764264fa531Smrggives unlimited permission to copy, distribute and modify it."
5765c37a63b8Smrg
5766c37a63b8Smrgac_pwd='$ac_pwd'
5767c37a63b8Smrgsrcdir='$srcdir'
5768c37a63b8SmrgINSTALL='$INSTALL'
5769c37a63b8SmrgMKDIR_P='$MKDIR_P'
5770c37a63b8SmrgAWK='$AWK'
5771c37a63b8Smrgtest -n "\$AWK" || AWK=awk
5772264fa531Smrg_ACEOF
5773264fa531Smrg
5774c37a63b8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5775c37a63b8Smrg# The default lists apply if the user does not specify any file.
5776264fa531Smrgac_need_defaults=:
5777264fa531Smrgwhile test $# != 0
5778264fa531Smrgdo
5779264fa531Smrg  case $1 in
5780736a7e2cSmrg  --*=?*)
5781c37a63b8Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5782c37a63b8Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5783264fa531Smrg    ac_shift=:
5784264fa531Smrg    ;;
5785736a7e2cSmrg  --*=)
5786736a7e2cSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5787736a7e2cSmrg    ac_optarg=
5788736a7e2cSmrg    ac_shift=:
5789736a7e2cSmrg    ;;
5790c37a63b8Smrg  *)
5791264fa531Smrg    ac_option=$1
5792264fa531Smrg    ac_optarg=$2
5793264fa531Smrg    ac_shift=shift
5794264fa531Smrg    ;;
5795264fa531Smrg  esac
5796264fa531Smrg
5797264fa531Smrg  case $ac_option in
5798264fa531Smrg  # Handling of the options.
5799264fa531Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5800264fa531Smrg    ac_cs_recheck=: ;;
5801c37a63b8Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5802c37a63b8Smrg    $as_echo "$ac_cs_version"; exit ;;
5803736a7e2cSmrg  --config | --confi | --conf | --con | --co | --c )
5804736a7e2cSmrg    $as_echo "$ac_cs_config"; exit ;;
5805c37a63b8Smrg  --debug | --debu | --deb | --de | --d | -d )
5806264fa531Smrg    debug=: ;;
5807264fa531Smrg  --file | --fil | --fi | --f )
5808264fa531Smrg    $ac_shift
5809c37a63b8Smrg    case $ac_optarg in
5810c37a63b8Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5811736a7e2cSmrg    '') as_fn_error $? "missing file argument" ;;
5812c37a63b8Smrg    esac
5813736a7e2cSmrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
5814264fa531Smrg    ac_need_defaults=false;;
5815264fa531Smrg  --header | --heade | --head | --hea )
5816264fa531Smrg    $ac_shift
5817c37a63b8Smrg    case $ac_optarg in
5818c37a63b8Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5819c37a63b8Smrg    esac
5820736a7e2cSmrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5821264fa531Smrg    ac_need_defaults=false;;
5822c37a63b8Smrg  --he | --h)
5823c37a63b8Smrg    # Conflict between --help and --header
5824736a7e2cSmrg    as_fn_error $? "ambiguous option: \`$1'
5825736a7e2cSmrgTry \`$0 --help' for more information.";;
5826c37a63b8Smrg  --help | --hel | -h )
5827c37a63b8Smrg    $as_echo "$ac_cs_usage"; exit ;;
5828264fa531Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5829264fa531Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5830264fa531Smrg    ac_cs_silent=: ;;
5831264fa531Smrg
5832264fa531Smrg  # This is an error.
5833736a7e2cSmrg  -*) as_fn_error $? "unrecognized option: \`$1'
5834736a7e2cSmrgTry \`$0 --help' for more information." ;;
5835264fa531Smrg
5836736a7e2cSmrg  *) as_fn_append ac_config_targets " $1"
5837c37a63b8Smrg     ac_need_defaults=false ;;
5838264fa531Smrg
5839264fa531Smrg  esac
5840264fa531Smrg  shift
5841264fa531Smrgdone
5842264fa531Smrg
5843264fa531Smrgac_configure_extra_args=
5844264fa531Smrg
5845264fa531Smrgif $ac_cs_silent; then
5846264fa531Smrg  exec 6>/dev/null
5847264fa531Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
5848264fa531Smrgfi
5849264fa531Smrg
5850264fa531Smrg_ACEOF
5851c37a63b8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5852264fa531Smrgif \$ac_cs_recheck; then
5853c37a63b8Smrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5854c37a63b8Smrg  shift
5855c37a63b8Smrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5856c37a63b8Smrg  CONFIG_SHELL='$SHELL'
5857c37a63b8Smrg  export CONFIG_SHELL
5858c37a63b8Smrg  exec "\$@"
5859264fa531Smrgfi
5860264fa531Smrg
5861264fa531Smrg_ACEOF
5862c37a63b8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5863c37a63b8Smrgexec 5>>config.log
5864c37a63b8Smrg{
5865c37a63b8Smrg  echo
5866c37a63b8Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5867c37a63b8Smrg## Running $as_me. ##
5868c37a63b8Smrg_ASBOX
5869c37a63b8Smrg  $as_echo "$ac_log"
5870c37a63b8Smrg} >&5
5871264fa531Smrg
5872c37a63b8Smrg_ACEOF
5873c37a63b8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5874264fa531Smrg#
5875c37a63b8Smrg# INIT-COMMANDS
5876264fa531Smrg#
5877264fa531SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5878264fa531Smrg
5879264fa531Smrg_ACEOF
5880264fa531Smrg
5881c37a63b8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5882264fa531Smrg
5883c37a63b8Smrg# Handling of arguments.
5884264fa531Smrgfor ac_config_target in $ac_config_targets
5885264fa531Smrgdo
5886c37a63b8Smrg  case $ac_config_target in
5887c37a63b8Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5888c37a63b8Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5889c37a63b8Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5890e4ee1255Smrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
5891c37a63b8Smrg
5892736a7e2cSmrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5893264fa531Smrg  esac
5894264fa531Smrgdone
5895264fa531Smrg
5896c37a63b8Smrg
5897264fa531Smrg# If the user did not use the arguments to specify the items to instantiate,
5898264fa531Smrg# then the envvar interface is used.  Set only those that are not.
5899264fa531Smrg# We use the long form for the default assignment because of an extremely
5900264fa531Smrg# bizarre bug on SunOS 4.1.3.
5901264fa531Smrgif $ac_need_defaults; then
5902264fa531Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5903264fa531Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5904264fa531Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5905264fa531Smrgfi
5906264fa531Smrg
5907264fa531Smrg# Have a temporary directory for convenience.  Make it in the build tree
5908c37a63b8Smrg# simply because there is no reason against having it here, and in addition,
5909264fa531Smrg# creating and moving files from /tmp can sometimes cause problems.
5910c37a63b8Smrg# Hook for its removal unless debugging.
5911c37a63b8Smrg# Note that there is a small window in which the directory will not be cleaned:
5912c37a63b8Smrg# after its creation but before its name has been assigned to `$tmp'.
5913264fa531Smrg$debug ||
5914264fa531Smrg{
5915736a7e2cSmrg  tmp= ac_tmp=
5916c37a63b8Smrg  trap 'exit_status=$?
5917736a7e2cSmrg  : "${ac_tmp:=$tmp}"
5918736a7e2cSmrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5919c37a63b8Smrg' 0
5920736a7e2cSmrg  trap 'as_fn_exit 1' 1 2 13 15
5921264fa531Smrg}
5922264fa531Smrg# Create a (secure) tmp directory for tmp files.
5923264fa531Smrg
5924264fa531Smrg{
5925c37a63b8Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5926736a7e2cSmrg  test -d "$tmp"
5927264fa531Smrg}  ||
5928264fa531Smrg{
5929c37a63b8Smrg  tmp=./conf$$-$RANDOM
5930c37a63b8Smrg  (umask 077 && mkdir "$tmp")
5931736a7e2cSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5932736a7e2cSmrgac_tmp=$tmp
5933264fa531Smrg
5934c37a63b8Smrg# Set up the scripts for CONFIG_FILES section.
5935c37a63b8Smrg# No need to generate them if there are no CONFIG_FILES.
5936c37a63b8Smrg# This happens for instance with `./config.status config.h'.
5937c37a63b8Smrgif test -n "$CONFIG_FILES"; then
5938c37a63b8Smrg
5939c37a63b8Smrg
5940736a7e2cSmrgac_cr=`echo X | tr X '\015'`
5941736a7e2cSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
5942736a7e2cSmrg# But we know of no other shell where ac_cr would be empty at this
5943736a7e2cSmrg# point, so we can use a bashism as a fallback.
5944736a7e2cSmrgif test "x$ac_cr" = x; then
5945736a7e2cSmrg  eval ac_cr=\$\'\\r\'
5946736a7e2cSmrgfi
5947c37a63b8Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5948c37a63b8Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5949c37a63b8Smrg  ac_cs_awk_cr='\\r'
5950c37a63b8Smrgelse
5951c37a63b8Smrg  ac_cs_awk_cr=$ac_cr
5952c37a63b8Smrgfi
5953c37a63b8Smrg
5954736a7e2cSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5955264fa531Smrg_ACEOF
5956264fa531Smrg
5957264fa531Smrg
5958c37a63b8Smrg{
5959c37a63b8Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
5960c37a63b8Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5961c37a63b8Smrg  echo "_ACEOF"
5962c37a63b8Smrg} >conf$$subs.sh ||
5963736a7e2cSmrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5964736a7e2cSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5965c37a63b8Smrgac_delim='%!_!# '
5966c37a63b8Smrgfor ac_last_try in false false false false false :; do
5967c37a63b8Smrg  . ./conf$$subs.sh ||
5968736a7e2cSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5969264fa531Smrg
5970c37a63b8Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5971c37a63b8Smrg  if test $ac_delim_n = $ac_delim_num; then
5972c37a63b8Smrg    break
5973c37a63b8Smrg  elif $ac_last_try; then
5974736a7e2cSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5975c37a63b8Smrg  else
5976c37a63b8Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5977c37a63b8Smrg  fi
5978c37a63b8Smrgdone
5979c37a63b8Smrgrm -f conf$$subs.sh
5980264fa531Smrg
5981c37a63b8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5982736a7e2cSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5983264fa531Smrg_ACEOF
5984c37a63b8Smrgsed -n '
5985c37a63b8Smrgh
5986c37a63b8Smrgs/^/S["/; s/!.*/"]=/
5987c37a63b8Smrgp
5988c37a63b8Smrgg
5989c37a63b8Smrgs/^[^!]*!//
5990c37a63b8Smrg:repl
5991c37a63b8Smrgt repl
5992c37a63b8Smrgs/'"$ac_delim"'$//
5993c37a63b8Smrgt delim
5994c37a63b8Smrg:nl
5995c37a63b8Smrgh
5996736a7e2cSmrgs/\(.\{148\}\)..*/\1/
5997c37a63b8Smrgt more1
5998c37a63b8Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5999c37a63b8Smrgp
6000c37a63b8Smrgn
6001c37a63b8Smrgb repl
6002c37a63b8Smrg:more1
6003c37a63b8Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
6004c37a63b8Smrgp
6005c37a63b8Smrgg
6006c37a63b8Smrgs/.\{148\}//
6007c37a63b8Smrgt nl
6008c37a63b8Smrg:delim
6009c37a63b8Smrgh
6010736a7e2cSmrgs/\(.\{148\}\)..*/\1/
6011c37a63b8Smrgt more2
6012c37a63b8Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
6013c37a63b8Smrgp
6014c37a63b8Smrgb
6015c37a63b8Smrg:more2
6016c37a63b8Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
6017c37a63b8Smrgp
6018c37a63b8Smrgg
6019c37a63b8Smrgs/.\{148\}//
6020c37a63b8Smrgt delim
6021c37a63b8Smrg' <conf$$subs.awk | sed '
6022c37a63b8Smrg/^[^""]/{
6023c37a63b8Smrg  N
6024c37a63b8Smrg  s/\n//
6025c37a63b8Smrg}
6026c37a63b8Smrg' >>$CONFIG_STATUS || ac_write_fail=1
6027c37a63b8Smrgrm -f conf$$subs.awk
6028c37a63b8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6029c37a63b8Smrg_ACAWK
6030736a7e2cSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6031c37a63b8Smrg  for (key in S) S_is_set[key] = 1
6032c37a63b8Smrg  FS = ""
6033264fa531Smrg
6034c37a63b8Smrg}
6035c37a63b8Smrg{
6036c37a63b8Smrg  line = $ 0
6037c37a63b8Smrg  nfields = split(line, field, "@")
6038c37a63b8Smrg  substed = 0
6039c37a63b8Smrg  len = length(field[1])
6040c37a63b8Smrg  for (i = 2; i < nfields; i++) {
6041c37a63b8Smrg    key = field[i]
6042c37a63b8Smrg    keylen = length(key)
6043c37a63b8Smrg    if (S_is_set[key]) {
6044c37a63b8Smrg      value = S[key]
6045c37a63b8Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6046c37a63b8Smrg      len += length(value) + length(field[++i])
6047c37a63b8Smrg      substed = 1
6048c37a63b8Smrg    } else
6049c37a63b8Smrg      len += 1 + keylen
6050c37a63b8Smrg  }
6051c37a63b8Smrg
6052c37a63b8Smrg  print line
6053c37a63b8Smrg}
6054c37a63b8Smrg
6055c37a63b8Smrg_ACAWK
6056c37a63b8Smrg_ACEOF
6057c37a63b8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6058c37a63b8Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6059c37a63b8Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6060c37a63b8Smrgelse
6061c37a63b8Smrg  cat
6062736a7e2cSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6063736a7e2cSmrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6064c37a63b8Smrg_ACEOF
6065c37a63b8Smrg
6066736a7e2cSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6067736a7e2cSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6068c37a63b8Smrg# trailing colons and then remove the whole line if VPATH becomes empty
6069c37a63b8Smrg# (actually we leave an empty line to preserve line numbers).
6070c37a63b8Smrgif test "x$srcdir" = x.; then
6071736a7e2cSmrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
6072736a7e2cSmrgh
6073736a7e2cSmrgs///
6074736a7e2cSmrgs/^/:/
6075736a7e2cSmrgs/[	 ]*$/:/
6076736a7e2cSmrgs/:\$(srcdir):/:/g
6077736a7e2cSmrgs/:\${srcdir}:/:/g
6078736a7e2cSmrgs/:@srcdir@:/:/g
6079736a7e2cSmrgs/^:*//
6080c37a63b8Smrgs/:*$//
6081736a7e2cSmrgx
6082736a7e2cSmrgs/\(=[	 ]*\).*/\1/
6083736a7e2cSmrgG
6084736a7e2cSmrgs/\n//
6085c37a63b8Smrgs/^[^=]*=[	 ]*$//
6086c37a63b8Smrg}'
6087c37a63b8Smrgfi
6088c37a63b8Smrg
6089c37a63b8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6090264fa531Smrgfi # test -n "$CONFIG_FILES"
6091264fa531Smrg
6092c37a63b8Smrg# Set up the scripts for CONFIG_HEADERS section.
6093c37a63b8Smrg# No need to generate them if there are no CONFIG_HEADERS.
6094c37a63b8Smrg# This happens for instance with `./config.status Makefile'.
6095c37a63b8Smrgif test -n "$CONFIG_HEADERS"; then
6096736a7e2cSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6097c37a63b8SmrgBEGIN {
6098264fa531Smrg_ACEOF
6099c37a63b8Smrg
6100c37a63b8Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
6101c37a63b8Smrg# here-document in config.status, that substitutes the proper values into
6102c37a63b8Smrg# config.h.in to produce config.h.
6103c37a63b8Smrg
6104c37a63b8Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
6105c37a63b8Smrg# handling of long lines.
6106c37a63b8Smrgac_delim='%!_!# '
6107c37a63b8Smrgfor ac_last_try in false false :; do
6108736a7e2cSmrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6109736a7e2cSmrg  if test -z "$ac_tt"; then
6110c37a63b8Smrg    break
6111c37a63b8Smrg  elif $ac_last_try; then
6112736a7e2cSmrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6113c37a63b8Smrg  else
6114c37a63b8Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6115c37a63b8Smrg  fi
6116c37a63b8Smrgdone
6117c37a63b8Smrg
6118c37a63b8Smrg# For the awk script, D is an array of macro values keyed by name,
6119c37a63b8Smrg# likewise P contains macro parameters if any.  Preserve backslash
6120c37a63b8Smrg# newline sequences.
6121c37a63b8Smrg
6122c37a63b8Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6123c37a63b8Smrgsed -n '
6124c37a63b8Smrgs/.\{148\}/&'"$ac_delim"'/g
6125c37a63b8Smrgt rset
6126c37a63b8Smrg:rset
6127c37a63b8Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
6128c37a63b8Smrgt def
6129c37a63b8Smrgd
6130c37a63b8Smrg:def
6131c37a63b8Smrgs/\\$//
6132c37a63b8Smrgt bsnl
6133c37a63b8Smrgs/["\\]/\\&/g
6134c37a63b8Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6135c37a63b8SmrgD["\1"]=" \3"/p
6136c37a63b8Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
6137c37a63b8Smrgd
6138c37a63b8Smrg:bsnl
6139c37a63b8Smrgs/["\\]/\\&/g
6140c37a63b8Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6141c37a63b8SmrgD["\1"]=" \3\\\\\\n"\\/p
6142c37a63b8Smrgt cont
6143c37a63b8Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6144c37a63b8Smrgt cont
6145c37a63b8Smrgd
6146c37a63b8Smrg:cont
6147c37a63b8Smrgn
6148c37a63b8Smrgs/.\{148\}/&'"$ac_delim"'/g
6149c37a63b8Smrgt clear
6150c37a63b8Smrg:clear
6151c37a63b8Smrgs/\\$//
6152c37a63b8Smrgt bsnlc
6153c37a63b8Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
6154c37a63b8Smrgd
6155c37a63b8Smrg:bsnlc
6156c37a63b8Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6157c37a63b8Smrgb cont
6158c37a63b8Smrg' <confdefs.h | sed '
6159c37a63b8Smrgs/'"$ac_delim"'/"\\\
6160c37a63b8Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
6161c37a63b8Smrg
6162c37a63b8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6163c37a63b8Smrg  for (key in D) D_is_set[key] = 1
6164c37a63b8Smrg  FS = ""
6165c37a63b8Smrg}
6166c37a63b8Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6167c37a63b8Smrg  line = \$ 0
6168c37a63b8Smrg  split(line, arg, " ")
6169c37a63b8Smrg  if (arg[1] == "#") {
6170c37a63b8Smrg    defundef = arg[2]
6171c37a63b8Smrg    mac1 = arg[3]
6172c37a63b8Smrg  } else {
6173c37a63b8Smrg    defundef = substr(arg[1], 2)
6174c37a63b8Smrg    mac1 = arg[2]
6175c37a63b8Smrg  }
6176c37a63b8Smrg  split(mac1, mac2, "(") #)
6177c37a63b8Smrg  macro = mac2[1]
6178c37a63b8Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
6179c37a63b8Smrg  if (D_is_set[macro]) {
6180c37a63b8Smrg    # Preserve the white space surrounding the "#".
6181c37a63b8Smrg    print prefix "define", macro P[macro] D[macro]
6182c37a63b8Smrg    next
6183c37a63b8Smrg  } else {
6184c37a63b8Smrg    # Replace #undef with comments.  This is necessary, for example,
6185c37a63b8Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
6186c37a63b8Smrg    # on some systems where configure will not decide to define it.
6187c37a63b8Smrg    if (defundef == "undef") {
6188c37a63b8Smrg      print "/*", prefix defundef, macro, "*/"
6189c37a63b8Smrg      next
6190c37a63b8Smrg    }
6191c37a63b8Smrg  }
6192c37a63b8Smrg}
6193c37a63b8Smrg{ print }
6194c37a63b8Smrg_ACAWK
6195c37a63b8Smrg_ACEOF
6196c37a63b8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6197736a7e2cSmrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6198c37a63b8Smrgfi # test -n "$CONFIG_HEADERS"
6199c37a63b8Smrg
6200c37a63b8Smrg
6201c37a63b8Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
6202c37a63b8Smrgshift
6203c37a63b8Smrgfor ac_tag
6204c37a63b8Smrgdo
6205c37a63b8Smrg  case $ac_tag in
6206c37a63b8Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
6207c37a63b8Smrg  esac
6208c37a63b8Smrg  case $ac_mode$ac_tag in
6209c37a63b8Smrg  :[FHL]*:*);;
6210736a7e2cSmrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6211c37a63b8Smrg  :[FH]-) ac_tag=-:-;;
6212c37a63b8Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6213c37a63b8Smrg  esac
6214c37a63b8Smrg  ac_save_IFS=$IFS
6215c37a63b8Smrg  IFS=:
6216c37a63b8Smrg  set x $ac_tag
6217c37a63b8Smrg  IFS=$ac_save_IFS
6218c37a63b8Smrg  shift
6219c37a63b8Smrg  ac_file=$1
6220c37a63b8Smrg  shift
6221c37a63b8Smrg
6222c37a63b8Smrg  case $ac_mode in
6223c37a63b8Smrg  :L) ac_source=$1;;
6224c37a63b8Smrg  :[FH])
6225c37a63b8Smrg    ac_file_inputs=
6226c37a63b8Smrg    for ac_f
6227c37a63b8Smrg    do
6228c37a63b8Smrg      case $ac_f in
6229736a7e2cSmrg      -) ac_f="$ac_tmp/stdin";;
6230c37a63b8Smrg      *) # Look for the file first in the build tree, then in the source tree
6231c37a63b8Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
6232c37a63b8Smrg	 # because $ac_f cannot contain `:'.
6233c37a63b8Smrg	 test -f "$ac_f" ||
6234c37a63b8Smrg	   case $ac_f in
6235c37a63b8Smrg	   [\\/$]*) false;;
6236c37a63b8Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6237c37a63b8Smrg	   esac ||
6238736a7e2cSmrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6239c37a63b8Smrg      esac
6240c37a63b8Smrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6241736a7e2cSmrg      as_fn_append ac_file_inputs " '$ac_f'"
6242c37a63b8Smrg    done
6243c37a63b8Smrg
6244c37a63b8Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
6245c37a63b8Smrg    # use $as_me), people would be surprised to read:
6246c37a63b8Smrg    #    /* config.h.  Generated by config.status.  */
6247c37a63b8Smrg    configure_input='Generated from '`
6248c37a63b8Smrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6249c37a63b8Smrg	`' by configure.'
6250c37a63b8Smrg    if test x"$ac_file" != x-; then
6251c37a63b8Smrg      configure_input="$ac_file.  $configure_input"
6252736a7e2cSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6253c37a63b8Smrg$as_echo "$as_me: creating $ac_file" >&6;}
6254c37a63b8Smrg    fi
6255c37a63b8Smrg    # Neutralize special characters interpreted by sed in replacement strings.
6256c37a63b8Smrg    case $configure_input in #(
6257c37a63b8Smrg    *\&* | *\|* | *\\* )
6258c37a63b8Smrg       ac_sed_conf_input=`$as_echo "$configure_input" |
6259c37a63b8Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
6260c37a63b8Smrg    *) ac_sed_conf_input=$configure_input;;
6261c37a63b8Smrg    esac
6262c37a63b8Smrg
6263c37a63b8Smrg    case $ac_tag in
6264736a7e2cSmrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
6265736a7e2cSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6266c37a63b8Smrg    esac
6267c37a63b8Smrg    ;;
6268264fa531Smrg  esac
6269264fa531Smrg
6270c37a63b8Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
6271264fa531Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6272264fa531Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
6273264fa531Smrg	 X"$ac_file" : 'X\(//\)$' \| \
6274c37a63b8Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6275c37a63b8Smrg$as_echo X"$ac_file" |
6276c37a63b8Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6277c37a63b8Smrg	    s//\1/
6278c37a63b8Smrg	    q
6279c37a63b8Smrg	  }
6280c37a63b8Smrg	  /^X\(\/\/\)[^/].*/{
6281c37a63b8Smrg	    s//\1/
6282c37a63b8Smrg	    q
6283c37a63b8Smrg	  }
6284c37a63b8Smrg	  /^X\(\/\/\)$/{
6285c37a63b8Smrg	    s//\1/
6286c37a63b8Smrg	    q
6287c37a63b8Smrg	  }
6288c37a63b8Smrg	  /^X\(\/\).*/{
6289c37a63b8Smrg	    s//\1/
6290c37a63b8Smrg	    q
6291c37a63b8Smrg	  }
6292c37a63b8Smrg	  s/.*/./; q'`
6293736a7e2cSmrg  as_dir="$ac_dir"; as_fn_mkdir_p
6294264fa531Smrg  ac_builddir=.
6295264fa531Smrg
6296c37a63b8Smrgcase "$ac_dir" in
6297c37a63b8Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6298c37a63b8Smrg*)
6299c37a63b8Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6300c37a63b8Smrg  # A ".." for each directory in $ac_dir_suffix.
6301c37a63b8Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6302c37a63b8Smrg  case $ac_top_builddir_sub in
6303c37a63b8Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6304c37a63b8Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6305c37a63b8Smrg  esac ;;
6306c37a63b8Smrgesac
6307c37a63b8Smrgac_abs_top_builddir=$ac_pwd
6308c37a63b8Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
6309c37a63b8Smrg# for backward compatibility:
6310c37a63b8Smrgac_top_builddir=$ac_top_build_prefix
6311264fa531Smrg
6312264fa531Smrgcase $srcdir in
6313c37a63b8Smrg  .)  # We are building in place.
6314264fa531Smrg    ac_srcdir=.
6315c37a63b8Smrg    ac_top_srcdir=$ac_top_builddir_sub
6316c37a63b8Smrg    ac_abs_top_srcdir=$ac_pwd ;;
6317c37a63b8Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
6318264fa531Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
6319c37a63b8Smrg    ac_top_srcdir=$srcdir
6320c37a63b8Smrg    ac_abs_top_srcdir=$srcdir ;;
6321c37a63b8Smrg  *) # Relative name.
6322c37a63b8Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6323c37a63b8Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
6324c37a63b8Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6325264fa531Smrgesac
6326c37a63b8Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6327264fa531Smrg
6328264fa531Smrg
6329c37a63b8Smrg  case $ac_mode in
6330c37a63b8Smrg  :F)
6331c37a63b8Smrg  #
6332c37a63b8Smrg  # CONFIG_FILE
6333c37a63b8Smrg  #
6334264fa531Smrg
6335264fa531Smrg  case $INSTALL in
6336264fa531Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6337c37a63b8Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6338264fa531Smrg  esac
6339c37a63b8Smrg  ac_MKDIR_P=$MKDIR_P
6340c37a63b8Smrg  case $MKDIR_P in
6341c37a63b8Smrg  [\\/$]* | ?:[\\/]* ) ;;
6342c37a63b8Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6343c37a63b8Smrg  esac
6344c37a63b8Smrg_ACEOF
6345264fa531Smrg
6346c37a63b8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6347c37a63b8Smrg# If the template does not know about datarootdir, expand it.
6348c37a63b8Smrg# FIXME: This hack should be removed a few years after 2.60.
6349c37a63b8Smrgac_datarootdir_hack=; ac_datarootdir_seen=
6350c37a63b8Smrgac_sed_dataroot='
6351c37a63b8Smrg/datarootdir/ {
6352c37a63b8Smrg  p
6353c37a63b8Smrg  q
6354c37a63b8Smrg}
6355c37a63b8Smrg/@datadir@/p
6356c37a63b8Smrg/@docdir@/p
6357c37a63b8Smrg/@infodir@/p
6358c37a63b8Smrg/@localedir@/p
6359736a7e2cSmrg/@mandir@/p'
6360c37a63b8Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6361c37a63b8Smrg*datarootdir*) ac_datarootdir_seen=yes;;
6362c37a63b8Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6363736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6364c37a63b8Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6365264fa531Smrg_ACEOF
6366c37a63b8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6367c37a63b8Smrg  ac_datarootdir_hack='
6368c37a63b8Smrg  s&@datadir@&$datadir&g
6369c37a63b8Smrg  s&@docdir@&$docdir&g
6370c37a63b8Smrg  s&@infodir@&$infodir&g
6371c37a63b8Smrg  s&@localedir@&$localedir&g
6372c37a63b8Smrg  s&@mandir@&$mandir&g
6373736a7e2cSmrg  s&\\\${datarootdir}&$datarootdir&g' ;;
6374c37a63b8Smrgesac
6375c37a63b8Smrg_ACEOF
6376c37a63b8Smrg
6377c37a63b8Smrg# Neutralize VPATH when `$srcdir' = `.'.
6378c37a63b8Smrg# Shell code in configure.ac might set extrasub.
6379c37a63b8Smrg# FIXME: do we really want to maintain this feature?
6380c37a63b8Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6381c37a63b8Smrgac_sed_extra="$ac_vpsub
6382264fa531Smrg$extrasub
6383264fa531Smrg_ACEOF
6384c37a63b8Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6385264fa531Smrg:t
6386264fa531Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6387c37a63b8Smrgs|@configure_input@|$ac_sed_conf_input|;t t
6388c37a63b8Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
6389c37a63b8Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
6390c37a63b8Smrgs&@srcdir@&$ac_srcdir&;t t
6391c37a63b8Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
6392c37a63b8Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
6393c37a63b8Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6394c37a63b8Smrgs&@builddir@&$ac_builddir&;t t
6395c37a63b8Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
6396c37a63b8Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6397c37a63b8Smrgs&@INSTALL@&$ac_INSTALL&;t t
6398c37a63b8Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
6399c37a63b8Smrg$ac_datarootdir_hack
6400c37a63b8Smrg"
6401736a7e2cSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6402736a7e2cSmrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6403264fa531Smrg
6404c37a63b8Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6405736a7e2cSmrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6406736a7e2cSmrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
6407736a7e2cSmrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
6408736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6409736a7e2cSmrgwhich seems to be undefined.  Please make sure it is defined" >&5
6410c37a63b8Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6411736a7e2cSmrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
6412264fa531Smrg
6413736a7e2cSmrg  rm -f "$ac_tmp/stdin"
6414264fa531Smrg  case $ac_file in
6415736a7e2cSmrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6416736a7e2cSmrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6417c37a63b8Smrg  esac \
6418736a7e2cSmrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6419c37a63b8Smrg ;;
6420c37a63b8Smrg  :H)
6421c37a63b8Smrg  #
6422c37a63b8Smrg  # CONFIG_HEADER
6423c37a63b8Smrg  #
6424264fa531Smrg  if test x"$ac_file" != x-; then
6425c37a63b8Smrg    {
6426c37a63b8Smrg      $as_echo "/* $configure_input  */" \
6427736a7e2cSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6428736a7e2cSmrg    } >"$ac_tmp/config.h" \
6429736a7e2cSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6430736a7e2cSmrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6431736a7e2cSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6432c37a63b8Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
6433264fa531Smrg    else
6434c37a63b8Smrg      rm -f "$ac_file"
6435736a7e2cSmrg      mv "$ac_tmp/config.h" "$ac_file" \
6436736a7e2cSmrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
6437264fa531Smrg    fi
6438264fa531Smrg  else
6439c37a63b8Smrg    $as_echo "/* $configure_input  */" \
6440736a7e2cSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6441736a7e2cSmrg      || as_fn_error $? "could not create -" "$LINENO" 5
6442264fa531Smrg  fi
6443c37a63b8Smrg# Compute "$ac_file"'s index in $config_headers.
6444c37a63b8Smrg_am_arg="$ac_file"
6445264fa531Smrg_am_stamp_count=1
6446264fa531Smrgfor _am_header in $config_headers :; do
6447264fa531Smrg  case $_am_header in
6448c37a63b8Smrg    $_am_arg | $_am_arg:* )
6449264fa531Smrg      break ;;
6450264fa531Smrg    * )
6451264fa531Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6452264fa531Smrg  esac
6453264fa531Smrgdone
6454c37a63b8Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6455c37a63b8Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6456c37a63b8Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
6457c37a63b8Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
6458c37a63b8Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6459c37a63b8Smrg$as_echo X"$_am_arg" |
6460c37a63b8Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6461c37a63b8Smrg	    s//\1/
6462c37a63b8Smrg	    q
6463c37a63b8Smrg	  }
6464c37a63b8Smrg	  /^X\(\/\/\)[^/].*/{
6465c37a63b8Smrg	    s//\1/
6466c37a63b8Smrg	    q
6467c37a63b8Smrg	  }
6468c37a63b8Smrg	  /^X\(\/\/\)$/{
6469c37a63b8Smrg	    s//\1/
6470c37a63b8Smrg	    q
6471c37a63b8Smrg	  }
6472c37a63b8Smrg	  /^X\(\/\).*/{
6473c37a63b8Smrg	    s//\1/
6474c37a63b8Smrg	    q
6475c37a63b8Smrg	  }
6476c37a63b8Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
6477c37a63b8Smrg ;;
6478264fa531Smrg
6479736a7e2cSmrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6480c37a63b8Smrg$as_echo "$as_me: executing $ac_file commands" >&6;}
6481c37a63b8Smrg ;;
6482c37a63b8Smrg  esac
6483264fa531Smrg
6484264fa531Smrg
6485c37a63b8Smrg  case $ac_file$ac_mode in
6486c37a63b8Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6487c37a63b8Smrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
6488c37a63b8Smrg  # are listed without --file.  Let's play safe and only enable the eval
6489c37a63b8Smrg  # if we detect the quoting.
6490c37a63b8Smrg  case $CONFIG_FILES in
6491c37a63b8Smrg  *\'*) eval set x "$CONFIG_FILES" ;;
6492c37a63b8Smrg  *)   set x $CONFIG_FILES ;;
6493c37a63b8Smrg  esac
6494c37a63b8Smrg  shift
6495c37a63b8Smrg  for mf
6496c37a63b8Smrg  do
6497c37a63b8Smrg    # Strip MF so we end up with the name of the file.
6498c37a63b8Smrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
6499c37a63b8Smrg    # Check whether this is an Automake generated Makefile or not.
6500c37a63b8Smrg    # We used to match only the files named `Makefile.in', but
6501c37a63b8Smrg    # some people rename them; so instead we look at the file content.
6502c37a63b8Smrg    # Grep'ing the first line is not enough: some people post-process
6503c37a63b8Smrg    # each Makefile.in and add a new line on top of each file to say so.
6504c37a63b8Smrg    # Grep'ing the whole file is not good either: AIX grep has a line
6505c37a63b8Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
6506c37a63b8Smrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6507c37a63b8Smrg      dirpart=`$as_dirname -- "$mf" ||
6508264fa531Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6509264fa531Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
6510264fa531Smrg	 X"$mf" : 'X\(//\)$' \| \
6511c37a63b8Smrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6512c37a63b8Smrg$as_echo X"$mf" |
6513c37a63b8Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6514c37a63b8Smrg	    s//\1/
6515c37a63b8Smrg	    q
6516c37a63b8Smrg	  }
6517c37a63b8Smrg	  /^X\(\/\/\)[^/].*/{
6518c37a63b8Smrg	    s//\1/
6519c37a63b8Smrg	    q
6520c37a63b8Smrg	  }
6521c37a63b8Smrg	  /^X\(\/\/\)$/{
6522c37a63b8Smrg	    s//\1/
6523c37a63b8Smrg	    q
6524c37a63b8Smrg	  }
6525c37a63b8Smrg	  /^X\(\/\).*/{
6526c37a63b8Smrg	    s//\1/
6527c37a63b8Smrg	    q
6528c37a63b8Smrg	  }
6529c37a63b8Smrg	  s/.*/./; q'`
6530c37a63b8Smrg    else
6531c37a63b8Smrg      continue
6532c37a63b8Smrg    fi
6533c37a63b8Smrg    # Extract the definition of DEPDIR, am__include, and am__quote
6534c37a63b8Smrg    # from the Makefile without running `make'.
6535c37a63b8Smrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6536c37a63b8Smrg    test -z "$DEPDIR" && continue
6537c37a63b8Smrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
6538c37a63b8Smrg    test -z "am__include" && continue
6539c37a63b8Smrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6540c37a63b8Smrg    # When using ansi2knr, U may be empty or an underscore; expand it
6541c37a63b8Smrg    U=`sed -n 's/^U = //p' < "$mf"`
6542c37a63b8Smrg    # Find all dependency output files, they are included files with
6543c37a63b8Smrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
6544c37a63b8Smrg    # simplest approach to changing $(DEPDIR) to its actual value in the
6545c37a63b8Smrg    # expansion.
6546c37a63b8Smrg    for file in `sed -n "
6547c37a63b8Smrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6548c37a63b8Smrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6549c37a63b8Smrg      # Make sure the directory exists.
6550c37a63b8Smrg      test -f "$dirpart/$file" && continue
6551c37a63b8Smrg      fdir=`$as_dirname -- "$file" ||
6552264fa531Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6553264fa531Smrg	 X"$file" : 'X\(//\)[^/]' \| \
6554264fa531Smrg	 X"$file" : 'X\(//\)$' \| \
6555c37a63b8Smrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6556c37a63b8Smrg$as_echo X"$file" |
6557c37a63b8Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6558c37a63b8Smrg	    s//\1/
6559c37a63b8Smrg	    q
6560c37a63b8Smrg	  }
6561c37a63b8Smrg	  /^X\(\/\/\)[^/].*/{
6562c37a63b8Smrg	    s//\1/
6563c37a63b8Smrg	    q
6564c37a63b8Smrg	  }
6565c37a63b8Smrg	  /^X\(\/\/\)$/{
6566c37a63b8Smrg	    s//\1/
6567c37a63b8Smrg	    q
6568c37a63b8Smrg	  }
6569c37a63b8Smrg	  /^X\(\/\).*/{
6570c37a63b8Smrg	    s//\1/
6571c37a63b8Smrg	    q
6572c37a63b8Smrg	  }
6573c37a63b8Smrg	  s/.*/./; q'`
6574736a7e2cSmrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
6575c37a63b8Smrg      # echo "creating $dirpart/$file"
6576c37a63b8Smrg      echo '# dummy' > "$dirpart/$file"
6577c37a63b8Smrg    done
6578264fa531Smrg  done
6579c37a63b8Smrg}
6580264fa531Smrg ;;
6581c37a63b8Smrg
6582264fa531Smrg  esac
6583c37a63b8Smrgdone # for ac_tag
6584264fa531Smrg
6585264fa531Smrg
6586736a7e2cSmrgas_fn_exit 0
6587264fa531Smrg_ACEOF
6588264fa531Smrgac_clean_files=$ac_clean_files_save
6589264fa531Smrg
6590c37a63b8Smrgtest $ac_write_fail = 0 ||
6591736a7e2cSmrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6592c37a63b8Smrg
6593264fa531Smrg
6594264fa531Smrg# configure is writing to config.log, and then calls config.status.
6595264fa531Smrg# config.status does its own redirection, appending to config.log.
6596264fa531Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
6597264fa531Smrg# by configure, so config.status won't be able to write to it; its
6598264fa531Smrg# output is simply discarded.  So we exec the FD to /dev/null,
6599264fa531Smrg# effectively closing config.log, so it can be properly (re)opened and
6600264fa531Smrg# appended to by config.status.  When coming back to configure, we
6601264fa531Smrg# need to make the FD available again.
6602264fa531Smrgif test "$no_create" != yes; then
6603264fa531Smrg  ac_cs_success=:
6604264fa531Smrg  ac_config_status_args=
6605264fa531Smrg  test "$silent" = yes &&
6606264fa531Smrg    ac_config_status_args="$ac_config_status_args --quiet"
6607264fa531Smrg  exec 5>/dev/null
6608264fa531Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6609264fa531Smrg  exec 5>>config.log
6610264fa531Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6611264fa531Smrg  # would make configure fail if this is the last instruction.
6612736a7e2cSmrg  $ac_cs_success || as_fn_exit 1
6613264fa531Smrgfi
6614c37a63b8Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6615736a7e2cSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6616c37a63b8Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6617c37a63b8Smrgfi
6618264fa531Smrg
6619