configure revision 4def10e6
1a0d3b6eaSmrg#! /bin/sh
2a0d3b6eaSmrg# Guess values for system-dependent variables and create Makefiles.
34def10e6Smrg# Generated by GNU Autoconf 2.68 for xrandr 1.3.4.
4a0d3b6eaSmrg#
5a0d3b6eaSmrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6a0d3b6eaSmrg#
7f8a31ee4Smrg#
8a0d3b6eaSmrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
94def10e6Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
104def10e6Smrg# Foundation, Inc.
11f8a31ee4Smrg#
12f8a31ee4Smrg#
13a0d3b6eaSmrg# This configure script is free software; the Free Software Foundation
14a0d3b6eaSmrg# gives unlimited permission to copy, distribute and modify it.
15f8a31ee4Smrg## -------------------- ##
16f8a31ee4Smrg## M4sh Initialization. ##
17f8a31ee4Smrg## -------------------- ##
18a0d3b6eaSmrg
19a0d3b6eaSmrg# Be more Bourne compatible
20a0d3b6eaSmrgDUALCASE=1; export DUALCASE # for MKS sh
21f8a31ee4Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22a0d3b6eaSmrg  emulate sh
23a0d3b6eaSmrg  NULLCMD=:
2462df5ad0Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25a0d3b6eaSmrg  # is contrary to our usage.  Disable this feature.
26a0d3b6eaSmrg  alias -g '${1+"$@"}'='"$@"'
27a0d3b6eaSmrg  setopt NO_GLOB_SUBST
28a0d3b6eaSmrgelse
29f8a31ee4Smrg  case `(set -o) 2>/dev/null` in #(
30f8a31ee4Smrg  *posix*) :
31f8a31ee4Smrg    set -o posix ;; #(
32f8a31ee4Smrg  *) :
33f8a31ee4Smrg     ;;
34a0d3b6eaSmrgesac
35a0d3b6eaSmrgfi
36a0d3b6eaSmrg
37a0d3b6eaSmrg
3862df5ad0Smrgas_nl='
3962df5ad0Smrg'
4062df5ad0Smrgexport as_nl
4162df5ad0Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
4262df5ad0Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4362df5ad0Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4462df5ad0Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45f8a31ee4Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
46f8a31ee4Smrg# but without wasting forks for bash or zsh.
47f8a31ee4Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
48f8a31ee4Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49f8a31ee4Smrg  as_echo='print -r --'
50f8a31ee4Smrg  as_echo_n='print -rn --'
51f8a31ee4Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5262df5ad0Smrg  as_echo='printf %s\n'
5362df5ad0Smrg  as_echo_n='printf %s'
5462df5ad0Smrgelse
5562df5ad0Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5662df5ad0Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5762df5ad0Smrg    as_echo_n='/usr/ucb/echo -n'
58a0d3b6eaSmrg  else
5962df5ad0Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6062df5ad0Smrg    as_echo_n_body='eval
6162df5ad0Smrg      arg=$1;
62f8a31ee4Smrg      case $arg in #(
6362df5ad0Smrg      *"$as_nl"*)
6462df5ad0Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
6562df5ad0Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6662df5ad0Smrg      esac;
6762df5ad0Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6862df5ad0Smrg    '
6962df5ad0Smrg    export as_echo_n_body
7062df5ad0Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
71a0d3b6eaSmrg  fi
7262df5ad0Smrg  export as_echo_body
7362df5ad0Smrg  as_echo='sh -c $as_echo_body as_echo'
7462df5ad0Smrgfi
7562df5ad0Smrg
7662df5ad0Smrg# The user is always right.
7762df5ad0Smrgif test "${PATH_SEPARATOR+set}" != set; then
7862df5ad0Smrg  PATH_SEPARATOR=:
7962df5ad0Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8062df5ad0Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8162df5ad0Smrg      PATH_SEPARATOR=';'
8262df5ad0Smrg  }
83a0d3b6eaSmrgfi
84a0d3b6eaSmrg
85a0d3b6eaSmrg
86a0d3b6eaSmrg# IFS
87a0d3b6eaSmrg# We need space, tab and new line, in precisely that order.  Quoting is
88a0d3b6eaSmrg# there to prevent editors from complaining about space-tab.
89a0d3b6eaSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90a0d3b6eaSmrg# splitting by setting IFS to empty value.)
91a0d3b6eaSmrgIFS=" ""	$as_nl"
92a0d3b6eaSmrg
93a0d3b6eaSmrg# Find who we are.  Look in the path if we contain no directory separator.
944def10e6Smrgas_myself=
95f8a31ee4Smrgcase $0 in #((
96a0d3b6eaSmrg  *[\\/]* ) as_myself=$0 ;;
97a0d3b6eaSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98a0d3b6eaSmrgfor as_dir in $PATH
99a0d3b6eaSmrgdo
100a0d3b6eaSmrg  IFS=$as_save_IFS
101a0d3b6eaSmrg  test -z "$as_dir" && as_dir=.
102f8a31ee4Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103f8a31ee4Smrg  done
104a0d3b6eaSmrgIFS=$as_save_IFS
105a0d3b6eaSmrg
106a0d3b6eaSmrg     ;;
107a0d3b6eaSmrgesac
108a0d3b6eaSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
109a0d3b6eaSmrg# in which case we are not to be found in the path.
110a0d3b6eaSmrgif test "x$as_myself" = x; then
111a0d3b6eaSmrg  as_myself=$0
112a0d3b6eaSmrgfi
113a0d3b6eaSmrgif test ! -f "$as_myself"; then
11462df5ad0Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115f8a31ee4Smrg  exit 1
116a0d3b6eaSmrgfi
117a0d3b6eaSmrg
118f8a31ee4Smrg# Unset variables that we do not need and which cause bugs (e.g. in
119f8a31ee4Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120f8a31ee4Smrg# suppresses any "Segmentation fault" message there.  '((' could
121f8a31ee4Smrg# trigger a bug in pdksh 5.2.14.
122f8a31ee4Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
123f8a31ee4Smrgdo eval test x\${$as_var+set} = xset \
124f8a31ee4Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125a0d3b6eaSmrgdone
126a0d3b6eaSmrgPS1='$ '
127a0d3b6eaSmrgPS2='> '
128a0d3b6eaSmrgPS4='+ '
129a0d3b6eaSmrg
130a0d3b6eaSmrg# NLS nuisances.
13162df5ad0SmrgLC_ALL=C
13262df5ad0Smrgexport LC_ALL
13362df5ad0SmrgLANGUAGE=C
13462df5ad0Smrgexport LANGUAGE
135a0d3b6eaSmrg
136f8a31ee4Smrg# CDPATH.
137f8a31ee4Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138f8a31ee4Smrg
139f8a31ee4Smrgif test "x$CONFIG_SHELL" = x; then
140f8a31ee4Smrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141f8a31ee4Smrg  emulate sh
142f8a31ee4Smrg  NULLCMD=:
143f8a31ee4Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144f8a31ee4Smrg  # is contrary to our usage.  Disable this feature.
145f8a31ee4Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146f8a31ee4Smrg  setopt NO_GLOB_SUBST
147f8a31ee4Smrgelse
148f8a31ee4Smrg  case \`(set -o) 2>/dev/null\` in #(
149f8a31ee4Smrg  *posix*) :
150f8a31ee4Smrg    set -o posix ;; #(
151f8a31ee4Smrg  *) :
152f8a31ee4Smrg     ;;
153f8a31ee4Smrgesac
154f8a31ee4Smrgfi
155f8a31ee4Smrg"
156f8a31ee4Smrg  as_required="as_fn_return () { (exit \$1); }
157f8a31ee4Smrgas_fn_success () { as_fn_return 0; }
158f8a31ee4Smrgas_fn_failure () { as_fn_return 1; }
159f8a31ee4Smrgas_fn_ret_success () { return 0; }
160f8a31ee4Smrgas_fn_ret_failure () { return 1; }
161f8a31ee4Smrg
162f8a31ee4Smrgexitcode=0
163f8a31ee4Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
164f8a31ee4Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165f8a31ee4Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166f8a31ee4Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167f8a31ee4Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168f8a31ee4Smrg
169f8a31ee4Smrgelse
170f8a31ee4Smrg  exitcode=1; echo positional parameters were not saved.
171f8a31ee4Smrgfi
172f8a31ee4Smrgtest x\$exitcode = x0 || exit 1"
173f8a31ee4Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174f8a31ee4Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175f8a31ee4Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176f8a31ee4Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177f8a31ee4Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
178f8a31ee4Smrg  if (eval "$as_required") 2>/dev/null; then :
179f8a31ee4Smrg  as_have_required=yes
180f8a31ee4Smrgelse
181f8a31ee4Smrg  as_have_required=no
182f8a31ee4Smrgfi
183f8a31ee4Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184f8a31ee4Smrg
185f8a31ee4Smrgelse
186f8a31ee4Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187f8a31ee4Smrgas_found=false
188f8a31ee4Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189f8a31ee4Smrgdo
190f8a31ee4Smrg  IFS=$as_save_IFS
191f8a31ee4Smrg  test -z "$as_dir" && as_dir=.
192f8a31ee4Smrg  as_found=:
193f8a31ee4Smrg  case $as_dir in #(
194f8a31ee4Smrg	 /*)
195f8a31ee4Smrg	   for as_base in sh bash ksh sh5; do
196f8a31ee4Smrg	     # Try only shells that exist, to save several forks.
197f8a31ee4Smrg	     as_shell=$as_dir/$as_base
198f8a31ee4Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199f8a31ee4Smrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200f8a31ee4Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
201f8a31ee4Smrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202f8a31ee4Smrg  break 2
203f8a31ee4Smrgfi
204f8a31ee4Smrgfi
205f8a31ee4Smrg	   done;;
206f8a31ee4Smrg       esac
207f8a31ee4Smrg  as_found=false
208f8a31ee4Smrgdone
209f8a31ee4Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210f8a31ee4Smrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211f8a31ee4Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
212f8a31ee4Smrgfi; }
213f8a31ee4SmrgIFS=$as_save_IFS
214f8a31ee4Smrg
215f8a31ee4Smrg
216f8a31ee4Smrg      if test "x$CONFIG_SHELL" != x; then :
217f8a31ee4Smrg  # We cannot yet assume a decent shell, so we have to provide a
218f8a31ee4Smrg	# neutralization value for shells without unset; and this also
219f8a31ee4Smrg	# works around shells that cannot unset nonexistent variables.
2204def10e6Smrg	# Preserve -v and -x to the replacement shell.
221f8a31ee4Smrg	BASH_ENV=/dev/null
222f8a31ee4Smrg	ENV=/dev/null
223f8a31ee4Smrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224f8a31ee4Smrg	export CONFIG_SHELL
2254def10e6Smrg	case $- in # ((((
2264def10e6Smrg	  *v*x* | *x*v* ) as_opts=-vx ;;
2274def10e6Smrg	  *v* ) as_opts=-v ;;
2284def10e6Smrg	  *x* ) as_opts=-x ;;
2294def10e6Smrg	  * ) as_opts= ;;
2304def10e6Smrg	esac
2314def10e6Smrg	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232f8a31ee4Smrgfi
233f8a31ee4Smrg
234f8a31ee4Smrg    if test x$as_have_required = xno; then :
235f8a31ee4Smrg  $as_echo "$0: This script requires a shell more modern than all"
236f8a31ee4Smrg  $as_echo "$0: the shells that I found on your system."
237f8a31ee4Smrg  if test x${ZSH_VERSION+set} = xset ; then
238f8a31ee4Smrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239f8a31ee4Smrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240f8a31ee4Smrg  else
241f8a31ee4Smrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242f8a31ee4Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243f8a31ee4Smrg$0: about your system, including any error possibly output
244f8a31ee4Smrg$0: before this message. Then install a modern shell, or
245f8a31ee4Smrg$0: manually run the script under such a shell if you do
246f8a31ee4Smrg$0: have one."
247f8a31ee4Smrg  fi
248f8a31ee4Smrg  exit 1
249f8a31ee4Smrgfi
250f8a31ee4Smrgfi
251f8a31ee4Smrgfi
252f8a31ee4SmrgSHELL=${CONFIG_SHELL-/bin/sh}
253f8a31ee4Smrgexport SHELL
254f8a31ee4Smrg# Unset more variables known to interfere with behavior of common tools.
255f8a31ee4SmrgCLICOLOR_FORCE= GREP_OPTIONS=
256f8a31ee4Smrgunset CLICOLOR_FORCE GREP_OPTIONS
257f8a31ee4Smrg
258f8a31ee4Smrg## --------------------- ##
259f8a31ee4Smrg## M4sh Shell Functions. ##
260f8a31ee4Smrg## --------------------- ##
261f8a31ee4Smrg# as_fn_unset VAR
262f8a31ee4Smrg# ---------------
263f8a31ee4Smrg# Portably unset VAR.
264f8a31ee4Smrgas_fn_unset ()
265f8a31ee4Smrg{
266f8a31ee4Smrg  { eval $1=; unset $1;}
267f8a31ee4Smrg}
268f8a31ee4Smrgas_unset=as_fn_unset
269f8a31ee4Smrg
270f8a31ee4Smrg# as_fn_set_status STATUS
271f8a31ee4Smrg# -----------------------
272f8a31ee4Smrg# Set $? to STATUS, without forking.
273f8a31ee4Smrgas_fn_set_status ()
274f8a31ee4Smrg{
275f8a31ee4Smrg  return $1
276f8a31ee4Smrg} # as_fn_set_status
277f8a31ee4Smrg
278f8a31ee4Smrg# as_fn_exit STATUS
279f8a31ee4Smrg# -----------------
280f8a31ee4Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281f8a31ee4Smrgas_fn_exit ()
282f8a31ee4Smrg{
283f8a31ee4Smrg  set +e
284f8a31ee4Smrg  as_fn_set_status $1
285f8a31ee4Smrg  exit $1
286f8a31ee4Smrg} # as_fn_exit
287f8a31ee4Smrg
288f8a31ee4Smrg# as_fn_mkdir_p
289f8a31ee4Smrg# -------------
290f8a31ee4Smrg# Create "$as_dir" as a directory, including parents if necessary.
291f8a31ee4Smrgas_fn_mkdir_p ()
292f8a31ee4Smrg{
293f8a31ee4Smrg
294f8a31ee4Smrg  case $as_dir in #(
295f8a31ee4Smrg  -*) as_dir=./$as_dir;;
296f8a31ee4Smrg  esac
297f8a31ee4Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
298f8a31ee4Smrg    as_dirs=
299f8a31ee4Smrg    while :; do
300f8a31ee4Smrg      case $as_dir in #(
301f8a31ee4Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302f8a31ee4Smrg      *) as_qdir=$as_dir;;
303f8a31ee4Smrg      esac
304f8a31ee4Smrg      as_dirs="'$as_qdir' $as_dirs"
305f8a31ee4Smrg      as_dir=`$as_dirname -- "$as_dir" ||
306f8a31ee4Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307f8a31ee4Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
308f8a31ee4Smrg	 X"$as_dir" : 'X\(//\)$' \| \
309f8a31ee4Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310f8a31ee4Smrg$as_echo X"$as_dir" |
311f8a31ee4Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312f8a31ee4Smrg	    s//\1/
313f8a31ee4Smrg	    q
314f8a31ee4Smrg	  }
315f8a31ee4Smrg	  /^X\(\/\/\)[^/].*/{
316f8a31ee4Smrg	    s//\1/
317f8a31ee4Smrg	    q
318f8a31ee4Smrg	  }
319f8a31ee4Smrg	  /^X\(\/\/\)$/{
320f8a31ee4Smrg	    s//\1/
321f8a31ee4Smrg	    q
322f8a31ee4Smrg	  }
323f8a31ee4Smrg	  /^X\(\/\).*/{
324f8a31ee4Smrg	    s//\1/
325f8a31ee4Smrg	    q
326f8a31ee4Smrg	  }
327f8a31ee4Smrg	  s/.*/./; q'`
328f8a31ee4Smrg      test -d "$as_dir" && break
329f8a31ee4Smrg    done
330f8a31ee4Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
3314def10e6Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332f8a31ee4Smrg
333f8a31ee4Smrg
334f8a31ee4Smrg} # as_fn_mkdir_p
335f8a31ee4Smrg# as_fn_append VAR VALUE
336f8a31ee4Smrg# ----------------------
337f8a31ee4Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
338f8a31ee4Smrg# advantage of any shell optimizations that allow amortized linear growth over
339f8a31ee4Smrg# repeated appends, instead of the typical quadratic growth present in naive
340f8a31ee4Smrg# implementations.
341f8a31ee4Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342f8a31ee4Smrg  eval 'as_fn_append ()
343f8a31ee4Smrg  {
344f8a31ee4Smrg    eval $1+=\$2
345f8a31ee4Smrg  }'
346f8a31ee4Smrgelse
347f8a31ee4Smrg  as_fn_append ()
348f8a31ee4Smrg  {
349f8a31ee4Smrg    eval $1=\$$1\$2
350f8a31ee4Smrg  }
351f8a31ee4Smrgfi # as_fn_append
352f8a31ee4Smrg
353f8a31ee4Smrg# as_fn_arith ARG...
354f8a31ee4Smrg# ------------------
355f8a31ee4Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
356f8a31ee4Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
357f8a31ee4Smrg# must be portable across $(()) and expr.
358f8a31ee4Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359f8a31ee4Smrg  eval 'as_fn_arith ()
360f8a31ee4Smrg  {
361f8a31ee4Smrg    as_val=$(( $* ))
362f8a31ee4Smrg  }'
363f8a31ee4Smrgelse
364f8a31ee4Smrg  as_fn_arith ()
365f8a31ee4Smrg  {
366f8a31ee4Smrg    as_val=`expr "$@" || test $? -eq 1`
367f8a31ee4Smrg  }
368f8a31ee4Smrgfi # as_fn_arith
369f8a31ee4Smrg
370f8a31ee4Smrg
3714def10e6Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
3724def10e6Smrg# ----------------------------------------
373f8a31ee4Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374f8a31ee4Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3754def10e6Smrg# script with STATUS, using 1 if that was 0.
376f8a31ee4Smrgas_fn_error ()
377f8a31ee4Smrg{
3784def10e6Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
3794def10e6Smrg  if test "$4"; then
3804def10e6Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3814def10e6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382f8a31ee4Smrg  fi
3834def10e6Smrg  $as_echo "$as_me: error: $2" >&2
384f8a31ee4Smrg  as_fn_exit $as_status
385f8a31ee4Smrg} # as_fn_error
386f8a31ee4Smrg
387a0d3b6eaSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
388a0d3b6eaSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389a0d3b6eaSmrg  as_expr=expr
390a0d3b6eaSmrgelse
391a0d3b6eaSmrg  as_expr=false
392a0d3b6eaSmrgfi
393a0d3b6eaSmrg
394a0d3b6eaSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395a0d3b6eaSmrg  as_basename=basename
396a0d3b6eaSmrgelse
397a0d3b6eaSmrg  as_basename=false
398a0d3b6eaSmrgfi
399a0d3b6eaSmrg
400f8a31ee4Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401f8a31ee4Smrg  as_dirname=dirname
402f8a31ee4Smrgelse
403f8a31ee4Smrg  as_dirname=false
404f8a31ee4Smrgfi
405a0d3b6eaSmrg
406a0d3b6eaSmrgas_me=`$as_basename -- "$0" ||
407a0d3b6eaSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408a0d3b6eaSmrg	 X"$0" : 'X\(//\)$' \| \
409a0d3b6eaSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41062df5ad0Smrg$as_echo X/"$0" |
411a0d3b6eaSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
412a0d3b6eaSmrg	    s//\1/
413a0d3b6eaSmrg	    q
414a0d3b6eaSmrg	  }
415a0d3b6eaSmrg	  /^X\/\(\/\/\)$/{
416a0d3b6eaSmrg	    s//\1/
417a0d3b6eaSmrg	    q
418a0d3b6eaSmrg	  }
419a0d3b6eaSmrg	  /^X\/\(\/\).*/{
420a0d3b6eaSmrg	    s//\1/
421a0d3b6eaSmrg	    q
422a0d3b6eaSmrg	  }
423a0d3b6eaSmrg	  s/.*/./; q'`
424a0d3b6eaSmrg
425f8a31ee4Smrg# Avoid depending upon Character Ranges.
426f8a31ee4Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
427f8a31ee4Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428f8a31ee4Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
429f8a31ee4Smrgas_cr_digits='0123456789'
430f8a31ee4Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
431a0d3b6eaSmrg
432a0d3b6eaSmrg
433f8a31ee4Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434f8a31ee4Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435f8a31ee4Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436f8a31ee4Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437f8a31ee4Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438f8a31ee4Smrg  sed -n '
439f8a31ee4Smrg    p
440f8a31ee4Smrg    /[$]LINENO/=
441f8a31ee4Smrg  ' <$as_myself |
442f8a31ee4Smrg    sed '
443f8a31ee4Smrg      s/[$]LINENO.*/&-/
444f8a31ee4Smrg      t lineno
445f8a31ee4Smrg      b
446f8a31ee4Smrg      :lineno
447f8a31ee4Smrg      N
448f8a31ee4Smrg      :loop
449f8a31ee4Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450f8a31ee4Smrg      t loop
451f8a31ee4Smrg      s/-\n.*//
452f8a31ee4Smrg    ' >$as_me.lineno &&
453f8a31ee4Smrg  chmod +x "$as_me.lineno" ||
454f8a31ee4Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455a0d3b6eaSmrg
456f8a31ee4Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
457f8a31ee4Smrg  # (the dirname of $[0] is not the place where we might find the
458f8a31ee4Smrg  # original and so on.  Autoconf is especially sensitive to this).
459f8a31ee4Smrg  . "./$as_me.lineno"
460f8a31ee4Smrg  # Exit status is that of the last command.
461f8a31ee4Smrg  exit
462a0d3b6eaSmrg}
463a0d3b6eaSmrg
464f8a31ee4SmrgECHO_C= ECHO_N= ECHO_T=
465f8a31ee4Smrgcase `echo -n x` in #(((((
466f8a31ee4Smrg-n*)
467f8a31ee4Smrg  case `echo 'xy\c'` in
468f8a31ee4Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469f8a31ee4Smrg  xy)  ECHO_C='\c';;
470f8a31ee4Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471f8a31ee4Smrg       ECHO_T='	';;
472f8a31ee4Smrg  esac;;
473f8a31ee4Smrg*)
474f8a31ee4Smrg  ECHO_N='-n';;
475f8a31ee4Smrgesac
476a0d3b6eaSmrg
477f8a31ee4Smrgrm -f conf$$ conf$$.exe conf$$.file
478f8a31ee4Smrgif test -d conf$$.dir; then
479f8a31ee4Smrg  rm -f conf$$.dir/conf$$.file
480f8a31ee4Smrgelse
481f8a31ee4Smrg  rm -f conf$$.dir
482f8a31ee4Smrg  mkdir conf$$.dir 2>/dev/null
483a0d3b6eaSmrgfi
484f8a31ee4Smrgif (echo >conf$$.file) 2>/dev/null; then
485f8a31ee4Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
486f8a31ee4Smrg    as_ln_s='ln -s'
487f8a31ee4Smrg    # ... but there are two gotchas:
488f8a31ee4Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489f8a31ee4Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490f8a31ee4Smrg    # In both cases, we have to default to `cp -p'.
491f8a31ee4Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492f8a31ee4Smrg      as_ln_s='cp -p'
493f8a31ee4Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
494f8a31ee4Smrg    as_ln_s=ln
495f8a31ee4Smrg  else
496f8a31ee4Smrg    as_ln_s='cp -p'
497f8a31ee4Smrg  fi
498a0d3b6eaSmrgelse
499f8a31ee4Smrg  as_ln_s='cp -p'
500a0d3b6eaSmrgfi
501f8a31ee4Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502f8a31ee4Smrgrmdir conf$$.dir 2>/dev/null
503a0d3b6eaSmrg
504f8a31ee4Smrgif mkdir -p . 2>/dev/null; then
505f8a31ee4Smrg  as_mkdir_p='mkdir -p "$as_dir"'
506f8a31ee4Smrgelse
507f8a31ee4Smrg  test -d ./-p && rmdir ./-p
508f8a31ee4Smrg  as_mkdir_p=false
509a0d3b6eaSmrgfi
510a0d3b6eaSmrg
511f8a31ee4Smrgif test -x / >/dev/null 2>&1; then
512f8a31ee4Smrg  as_test_x='test -x'
513a0d3b6eaSmrgelse
514f8a31ee4Smrg  if ls -dL / >/dev/null 2>&1; then
515f8a31ee4Smrg    as_ls_L_option=L
516f8a31ee4Smrg  else
517f8a31ee4Smrg    as_ls_L_option=
518f8a31ee4Smrg  fi
519f8a31ee4Smrg  as_test_x='
520f8a31ee4Smrg    eval sh -c '\''
521f8a31ee4Smrg      if test -d "$1"; then
522f8a31ee4Smrg	test -d "$1/.";
523f8a31ee4Smrg      else
524f8a31ee4Smrg	case $1 in #(
525f8a31ee4Smrg	-*)set "./$1";;
526f8a31ee4Smrg	esac;
527f8a31ee4Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528f8a31ee4Smrg	???[sx]*):;;*)false;;esac;fi
529f8a31ee4Smrg    '\'' sh
530f8a31ee4Smrg  '
531a0d3b6eaSmrgfi
532f8a31ee4Smrgas_executable_p=$as_test_x
533a0d3b6eaSmrg
534f8a31ee4Smrg# Sed expression to map a string onto a valid CPP name.
535f8a31ee4Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536a0d3b6eaSmrg
537f8a31ee4Smrg# Sed expression to map a string onto a valid variable name.
538f8a31ee4Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539a0d3b6eaSmrg
540a0d3b6eaSmrg
541f8a31ee4Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
542f8a31ee4Smrgexec 6>&1
543a0d3b6eaSmrg
544a0d3b6eaSmrg# Name of the host.
5454def10e6Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546a0d3b6eaSmrg# so uname gets run too.
547a0d3b6eaSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548a0d3b6eaSmrg
549a0d3b6eaSmrg#
550a0d3b6eaSmrg# Initializations.
551a0d3b6eaSmrg#
552a0d3b6eaSmrgac_default_prefix=/usr/local
553a0d3b6eaSmrgac_clean_files=
554a0d3b6eaSmrgac_config_libobj_dir=.
555a0d3b6eaSmrgLIBOBJS=
556a0d3b6eaSmrgcross_compiling=no
557a0d3b6eaSmrgsubdirs=
558a0d3b6eaSmrgMFLAGS=
559a0d3b6eaSmrgMAKEFLAGS=
560a0d3b6eaSmrg
561a0d3b6eaSmrg# Identity of this package.
562a0d3b6eaSmrgPACKAGE_NAME='xrandr'
563a0d3b6eaSmrgPACKAGE_TARNAME='xrandr'
5644def10e6SmrgPACKAGE_VERSION='1.3.4'
5654def10e6SmrgPACKAGE_STRING='xrandr 1.3.4'
566a0d3b6eaSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567f8a31ee4SmrgPACKAGE_URL=''
568a0d3b6eaSmrg
56962df5ad0Smrg# Factoring default headers for most tests.
57062df5ad0Smrgac_includes_default="\
57162df5ad0Smrg#include <stdio.h>
57262df5ad0Smrg#ifdef HAVE_SYS_TYPES_H
57362df5ad0Smrg# include <sys/types.h>
57462df5ad0Smrg#endif
57562df5ad0Smrg#ifdef HAVE_SYS_STAT_H
57662df5ad0Smrg# include <sys/stat.h>
57762df5ad0Smrg#endif
57862df5ad0Smrg#ifdef STDC_HEADERS
57962df5ad0Smrg# include <stdlib.h>
58062df5ad0Smrg# include <stddef.h>
58162df5ad0Smrg#else
58262df5ad0Smrg# ifdef HAVE_STDLIB_H
58362df5ad0Smrg#  include <stdlib.h>
58462df5ad0Smrg# endif
58562df5ad0Smrg#endif
58662df5ad0Smrg#ifdef HAVE_STRING_H
58762df5ad0Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
58862df5ad0Smrg#  include <memory.h>
58962df5ad0Smrg# endif
59062df5ad0Smrg# include <string.h>
59162df5ad0Smrg#endif
59262df5ad0Smrg#ifdef HAVE_STRINGS_H
59362df5ad0Smrg# include <strings.h>
59462df5ad0Smrg#endif
59562df5ad0Smrg#ifdef HAVE_INTTYPES_H
59662df5ad0Smrg# include <inttypes.h>
59762df5ad0Smrg#endif
59862df5ad0Smrg#ifdef HAVE_STDINT_H
59962df5ad0Smrg# include <stdint.h>
60062df5ad0Smrg#endif
60162df5ad0Smrg#ifdef HAVE_UNISTD_H
60262df5ad0Smrg# include <unistd.h>
60362df5ad0Smrg#endif"
60462df5ad0Smrg
605f8a31ee4Smrgac_subst_vars='am__EXEEXT_FALSE
606f8a31ee4Smrgam__EXEEXT_TRUE
607f8a31ee4SmrgLTLIBOBJS
608a0d3b6eaSmrgLIBOBJS
609f8a31ee4SmrgXRANDR_LIBS
610f8a31ee4SmrgXRANDR_CFLAGS
611f8a31ee4SmrgAM_BACKSLASH
612f8a31ee4SmrgAM_DEFAULT_VERBOSITY
613f8a31ee4SmrgMAN_SUBSTS
614f8a31ee4SmrgXORG_MAN_PAGE
61562df5ad0SmrgADMIN_MAN_DIR
61662df5ad0SmrgDRIVER_MAN_DIR
61762df5ad0SmrgMISC_MAN_DIR
61862df5ad0SmrgFILE_MAN_DIR
61962df5ad0SmrgLIB_MAN_DIR
62062df5ad0SmrgAPP_MAN_DIR
62162df5ad0SmrgADMIN_MAN_SUFFIX
62262df5ad0SmrgDRIVER_MAN_SUFFIX
62362df5ad0SmrgMISC_MAN_SUFFIX
62462df5ad0SmrgFILE_MAN_SUFFIX
62562df5ad0SmrgLIB_MAN_SUFFIX
62662df5ad0SmrgAPP_MAN_SUFFIX
627f8a31ee4SmrgSED
62862df5ad0Smrghost_os
62962df5ad0Smrghost_vendor
63062df5ad0Smrghost_cpu
63162df5ad0Smrghost
63262df5ad0Smrgbuild_os
63362df5ad0Smrgbuild_vendor
63462df5ad0Smrgbuild_cpu
63562df5ad0Smrgbuild
636f8a31ee4SmrgINSTALL_CMD
63762df5ad0SmrgPKG_CONFIG
638f8a31ee4SmrgCHANGELOG_CMD
63962df5ad0SmrgCWARNFLAGS
64062df5ad0SmrgEGREP
64162df5ad0SmrgGREP
64262df5ad0SmrgCPP
64362df5ad0Smrgam__fastdepCC_FALSE
64462df5ad0Smrgam__fastdepCC_TRUE
64562df5ad0SmrgCCDEPMODE
64662df5ad0SmrgAMDEPBACKSLASH
64762df5ad0SmrgAMDEP_FALSE
64862df5ad0SmrgAMDEP_TRUE
64962df5ad0Smrgam__quote
65062df5ad0Smrgam__include
65162df5ad0SmrgDEPDIR
65262df5ad0SmrgOBJEXT
65362df5ad0SmrgEXEEXT
65462df5ad0Smrgac_ct_CC
65562df5ad0SmrgCPPFLAGS
65662df5ad0SmrgLDFLAGS
65762df5ad0SmrgCFLAGS
65862df5ad0SmrgCC
65962df5ad0SmrgMAINT
66062df5ad0SmrgMAINTAINER_MODE_FALSE
66162df5ad0SmrgMAINTAINER_MODE_TRUE
66262df5ad0Smrgam__untar
66362df5ad0Smrgam__tar
66462df5ad0SmrgAMTAR
66562df5ad0Smrgam__leading_dot
66662df5ad0SmrgSET_MAKE
66762df5ad0SmrgAWK
66862df5ad0Smrgmkdir_p
66962df5ad0SmrgMKDIR_P
67062df5ad0SmrgINSTALL_STRIP_PROGRAM
67162df5ad0SmrgSTRIP
67262df5ad0Smrginstall_sh
67362df5ad0SmrgMAKEINFO
67462df5ad0SmrgAUTOHEADER
67562df5ad0SmrgAUTOMAKE
67662df5ad0SmrgAUTOCONF
67762df5ad0SmrgACLOCAL
67862df5ad0SmrgVERSION
67962df5ad0SmrgPACKAGE
68062df5ad0SmrgCYGPATH_W
68162df5ad0Smrgam__isrc
68262df5ad0SmrgINSTALL_DATA
68362df5ad0SmrgINSTALL_SCRIPT
68462df5ad0SmrgINSTALL_PROGRAM
68562df5ad0Smrgtarget_alias
68662df5ad0Smrghost_alias
68762df5ad0Smrgbuild_alias
68862df5ad0SmrgLIBS
68962df5ad0SmrgECHO_T
69062df5ad0SmrgECHO_N
69162df5ad0SmrgECHO_C
69262df5ad0SmrgDEFS
69362df5ad0Smrgmandir
69462df5ad0Smrglocaledir
69562df5ad0Smrglibdir
69662df5ad0Smrgpsdir
69762df5ad0Smrgpdfdir
69862df5ad0Smrgdvidir
69962df5ad0Smrghtmldir
70062df5ad0Smrginfodir
70162df5ad0Smrgdocdir
70262df5ad0Smrgoldincludedir
70362df5ad0Smrgincludedir
70462df5ad0Smrglocalstatedir
70562df5ad0Smrgsharedstatedir
70662df5ad0Smrgsysconfdir
70762df5ad0Smrgdatadir
70862df5ad0Smrgdatarootdir
70962df5ad0Smrglibexecdir
71062df5ad0Smrgsbindir
71162df5ad0Smrgbindir
71262df5ad0Smrgprogram_transform_name
71362df5ad0Smrgprefix
71462df5ad0Smrgexec_prefix
715f8a31ee4SmrgPACKAGE_URL
71662df5ad0SmrgPACKAGE_BUGREPORT
71762df5ad0SmrgPACKAGE_STRING
71862df5ad0SmrgPACKAGE_VERSION
71962df5ad0SmrgPACKAGE_TARNAME
72062df5ad0SmrgPACKAGE_NAME
72162df5ad0SmrgPATH_SEPARATOR
72262df5ad0SmrgSHELL'
723a0d3b6eaSmrgac_subst_files=''
72462df5ad0Smrgac_user_opts='
72562df5ad0Smrgenable_option_checking
72662df5ad0Smrgenable_maintainer_mode
72762df5ad0Smrgenable_dependency_tracking
728f8a31ee4Smrgenable_strict_compilation
729f8a31ee4Smrgenable_silent_rules
73062df5ad0Smrg'
731a0d3b6eaSmrg      ac_precious_vars='build_alias
732a0d3b6eaSmrghost_alias
733a0d3b6eaSmrgtarget_alias
734a0d3b6eaSmrgCC
735a0d3b6eaSmrgCFLAGS
736a0d3b6eaSmrgLDFLAGS
737a0d3b6eaSmrgLIBS
738a0d3b6eaSmrgCPPFLAGS
73962df5ad0SmrgCPP
740a0d3b6eaSmrgPKG_CONFIG
741a0d3b6eaSmrgXRANDR_CFLAGS
742a0d3b6eaSmrgXRANDR_LIBS'
743a0d3b6eaSmrg
744a0d3b6eaSmrg
745a0d3b6eaSmrg# Initialize some variables set by options.
746a0d3b6eaSmrgac_init_help=
747a0d3b6eaSmrgac_init_version=false
74862df5ad0Smrgac_unrecognized_opts=
74962df5ad0Smrgac_unrecognized_sep=
750a0d3b6eaSmrg# The variables have the same names as the options, with
751a0d3b6eaSmrg# dashes changed to underlines.
752a0d3b6eaSmrgcache_file=/dev/null
753a0d3b6eaSmrgexec_prefix=NONE
754a0d3b6eaSmrgno_create=
755a0d3b6eaSmrgno_recursion=
756a0d3b6eaSmrgprefix=NONE
757a0d3b6eaSmrgprogram_prefix=NONE
758a0d3b6eaSmrgprogram_suffix=NONE
759a0d3b6eaSmrgprogram_transform_name=s,x,x,
760a0d3b6eaSmrgsilent=
761a0d3b6eaSmrgsite=
762a0d3b6eaSmrgsrcdir=
763a0d3b6eaSmrgverbose=
764a0d3b6eaSmrgx_includes=NONE
765a0d3b6eaSmrgx_libraries=NONE
766a0d3b6eaSmrg
767a0d3b6eaSmrg# Installation directory options.
768a0d3b6eaSmrg# These are left unexpanded so users can "make install exec_prefix=/foo"
769a0d3b6eaSmrg# and all the variables that are supposed to be based on exec_prefix
770a0d3b6eaSmrg# by default will actually change.
771a0d3b6eaSmrg# Use braces instead of parens because sh, perl, etc. also accept them.
772a0d3b6eaSmrg# (The list follows the same order as the GNU Coding Standards.)
773a0d3b6eaSmrgbindir='${exec_prefix}/bin'
774a0d3b6eaSmrgsbindir='${exec_prefix}/sbin'
775a0d3b6eaSmrglibexecdir='${exec_prefix}/libexec'
776a0d3b6eaSmrgdatarootdir='${prefix}/share'
777a0d3b6eaSmrgdatadir='${datarootdir}'
778a0d3b6eaSmrgsysconfdir='${prefix}/etc'
779a0d3b6eaSmrgsharedstatedir='${prefix}/com'
780a0d3b6eaSmrglocalstatedir='${prefix}/var'
781a0d3b6eaSmrgincludedir='${prefix}/include'
782a0d3b6eaSmrgoldincludedir='/usr/include'
783a0d3b6eaSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
784a0d3b6eaSmrginfodir='${datarootdir}/info'
785a0d3b6eaSmrghtmldir='${docdir}'
786a0d3b6eaSmrgdvidir='${docdir}'
787a0d3b6eaSmrgpdfdir='${docdir}'
788a0d3b6eaSmrgpsdir='${docdir}'
789a0d3b6eaSmrglibdir='${exec_prefix}/lib'
790a0d3b6eaSmrglocaledir='${datarootdir}/locale'
791a0d3b6eaSmrgmandir='${datarootdir}/man'
792a0d3b6eaSmrg
793a0d3b6eaSmrgac_prev=
794a0d3b6eaSmrgac_dashdash=
795a0d3b6eaSmrgfor ac_option
796a0d3b6eaSmrgdo
797a0d3b6eaSmrg  # If the previous option needs an argument, assign it.
798a0d3b6eaSmrg  if test -n "$ac_prev"; then
799a0d3b6eaSmrg    eval $ac_prev=\$ac_option
800a0d3b6eaSmrg    ac_prev=
801a0d3b6eaSmrg    continue
802a0d3b6eaSmrg  fi
803a0d3b6eaSmrg
804a0d3b6eaSmrg  case $ac_option in
8054def10e6Smrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
8064def10e6Smrg  *=)   ac_optarg= ;;
8074def10e6Smrg  *)    ac_optarg=yes ;;
808a0d3b6eaSmrg  esac
809a0d3b6eaSmrg
810a0d3b6eaSmrg  # Accept the important Cygnus configure options, so we can diagnose typos.
811a0d3b6eaSmrg
812a0d3b6eaSmrg  case $ac_dashdash$ac_option in
813a0d3b6eaSmrg  --)
814a0d3b6eaSmrg    ac_dashdash=yes ;;
815a0d3b6eaSmrg
816a0d3b6eaSmrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
817a0d3b6eaSmrg    ac_prev=bindir ;;
818a0d3b6eaSmrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
819a0d3b6eaSmrg    bindir=$ac_optarg ;;
820a0d3b6eaSmrg
821a0d3b6eaSmrg  -build | --build | --buil | --bui | --bu)
822a0d3b6eaSmrg    ac_prev=build_alias ;;
823a0d3b6eaSmrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
824a0d3b6eaSmrg    build_alias=$ac_optarg ;;
825a0d3b6eaSmrg
826a0d3b6eaSmrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
827a0d3b6eaSmrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
828a0d3b6eaSmrg    ac_prev=cache_file ;;
829a0d3b6eaSmrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
830a0d3b6eaSmrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
831a0d3b6eaSmrg    cache_file=$ac_optarg ;;
832a0d3b6eaSmrg
833a0d3b6eaSmrg  --config-cache | -C)
834a0d3b6eaSmrg    cache_file=config.cache ;;
835a0d3b6eaSmrg
836a0d3b6eaSmrg  -datadir | --datadir | --datadi | --datad)
837a0d3b6eaSmrg    ac_prev=datadir ;;
838a0d3b6eaSmrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
839a0d3b6eaSmrg    datadir=$ac_optarg ;;
840a0d3b6eaSmrg
841a0d3b6eaSmrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
842a0d3b6eaSmrg  | --dataroo | --dataro | --datar)
843a0d3b6eaSmrg    ac_prev=datarootdir ;;
844a0d3b6eaSmrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
845a0d3b6eaSmrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
846a0d3b6eaSmrg    datarootdir=$ac_optarg ;;
847a0d3b6eaSmrg
848a0d3b6eaSmrg  -disable-* | --disable-*)
84962df5ad0Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
850a0d3b6eaSmrg    # Reject names that are not valid shell variable names.
85162df5ad0Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8524def10e6Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
85362df5ad0Smrg    ac_useropt_orig=$ac_useropt
85462df5ad0Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
85562df5ad0Smrg    case $ac_user_opts in
85662df5ad0Smrg      *"
85762df5ad0Smrg"enable_$ac_useropt"
85862df5ad0Smrg"*) ;;
85962df5ad0Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
86062df5ad0Smrg	 ac_unrecognized_sep=', ';;
86162df5ad0Smrg    esac
86262df5ad0Smrg    eval enable_$ac_useropt=no ;;
863a0d3b6eaSmrg
864a0d3b6eaSmrg  -docdir | --docdir | --docdi | --doc | --do)
865a0d3b6eaSmrg    ac_prev=docdir ;;
866a0d3b6eaSmrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
867a0d3b6eaSmrg    docdir=$ac_optarg ;;
868a0d3b6eaSmrg
869a0d3b6eaSmrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
870a0d3b6eaSmrg    ac_prev=dvidir ;;
871a0d3b6eaSmrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
872a0d3b6eaSmrg    dvidir=$ac_optarg ;;
873a0d3b6eaSmrg
874a0d3b6eaSmrg  -enable-* | --enable-*)
87562df5ad0Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
876a0d3b6eaSmrg    # Reject names that are not valid shell variable names.
87762df5ad0Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8784def10e6Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
87962df5ad0Smrg    ac_useropt_orig=$ac_useropt
88062df5ad0Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
88162df5ad0Smrg    case $ac_user_opts in
88262df5ad0Smrg      *"
88362df5ad0Smrg"enable_$ac_useropt"
88462df5ad0Smrg"*) ;;
88562df5ad0Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
88662df5ad0Smrg	 ac_unrecognized_sep=', ';;
88762df5ad0Smrg    esac
88862df5ad0Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
889a0d3b6eaSmrg
890a0d3b6eaSmrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
891a0d3b6eaSmrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
892a0d3b6eaSmrg  | --exec | --exe | --ex)
893a0d3b6eaSmrg    ac_prev=exec_prefix ;;
894a0d3b6eaSmrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
895a0d3b6eaSmrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
896a0d3b6eaSmrg  | --exec=* | --exe=* | --ex=*)
897a0d3b6eaSmrg    exec_prefix=$ac_optarg ;;
898a0d3b6eaSmrg
899a0d3b6eaSmrg  -gas | --gas | --ga | --g)
900a0d3b6eaSmrg    # Obsolete; use --with-gas.
901a0d3b6eaSmrg    with_gas=yes ;;
902a0d3b6eaSmrg
903a0d3b6eaSmrg  -help | --help | --hel | --he | -h)
904a0d3b6eaSmrg    ac_init_help=long ;;
905a0d3b6eaSmrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
906a0d3b6eaSmrg    ac_init_help=recursive ;;
907a0d3b6eaSmrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
908a0d3b6eaSmrg    ac_init_help=short ;;
909a0d3b6eaSmrg
910a0d3b6eaSmrg  -host | --host | --hos | --ho)
911a0d3b6eaSmrg    ac_prev=host_alias ;;
912a0d3b6eaSmrg  -host=* | --host=* | --hos=* | --ho=*)
913a0d3b6eaSmrg    host_alias=$ac_optarg ;;
914a0d3b6eaSmrg
915a0d3b6eaSmrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
916a0d3b6eaSmrg    ac_prev=htmldir ;;
917a0d3b6eaSmrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
918a0d3b6eaSmrg  | --ht=*)
919a0d3b6eaSmrg    htmldir=$ac_optarg ;;
920a0d3b6eaSmrg
921a0d3b6eaSmrg  -includedir | --includedir | --includedi | --included | --include \
922a0d3b6eaSmrg  | --includ | --inclu | --incl | --inc)
923a0d3b6eaSmrg    ac_prev=includedir ;;
924a0d3b6eaSmrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
925a0d3b6eaSmrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
926a0d3b6eaSmrg    includedir=$ac_optarg ;;
927a0d3b6eaSmrg
928a0d3b6eaSmrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
929a0d3b6eaSmrg    ac_prev=infodir ;;
930a0d3b6eaSmrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
931a0d3b6eaSmrg    infodir=$ac_optarg ;;
932a0d3b6eaSmrg
933a0d3b6eaSmrg  -libdir | --libdir | --libdi | --libd)
934a0d3b6eaSmrg    ac_prev=libdir ;;
935a0d3b6eaSmrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
936a0d3b6eaSmrg    libdir=$ac_optarg ;;
937a0d3b6eaSmrg
938a0d3b6eaSmrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
939a0d3b6eaSmrg  | --libexe | --libex | --libe)
940a0d3b6eaSmrg    ac_prev=libexecdir ;;
941a0d3b6eaSmrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
942a0d3b6eaSmrg  | --libexe=* | --libex=* | --libe=*)
943a0d3b6eaSmrg    libexecdir=$ac_optarg ;;
944a0d3b6eaSmrg
945a0d3b6eaSmrg  -localedir | --localedir | --localedi | --localed | --locale)
946a0d3b6eaSmrg    ac_prev=localedir ;;
947a0d3b6eaSmrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
948a0d3b6eaSmrg    localedir=$ac_optarg ;;
949a0d3b6eaSmrg
950a0d3b6eaSmrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
951a0d3b6eaSmrg  | --localstate | --localstat | --localsta | --localst | --locals)
952a0d3b6eaSmrg    ac_prev=localstatedir ;;
953a0d3b6eaSmrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
954a0d3b6eaSmrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
955a0d3b6eaSmrg    localstatedir=$ac_optarg ;;
956a0d3b6eaSmrg
957a0d3b6eaSmrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
958a0d3b6eaSmrg    ac_prev=mandir ;;
959a0d3b6eaSmrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
960a0d3b6eaSmrg    mandir=$ac_optarg ;;
961a0d3b6eaSmrg
962a0d3b6eaSmrg  -nfp | --nfp | --nf)
963a0d3b6eaSmrg    # Obsolete; use --without-fp.
964a0d3b6eaSmrg    with_fp=no ;;
965a0d3b6eaSmrg
966a0d3b6eaSmrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
967a0d3b6eaSmrg  | --no-cr | --no-c | -n)
968a0d3b6eaSmrg    no_create=yes ;;
969a0d3b6eaSmrg
970a0d3b6eaSmrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
971a0d3b6eaSmrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
972a0d3b6eaSmrg    no_recursion=yes ;;
973a0d3b6eaSmrg
974a0d3b6eaSmrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
975a0d3b6eaSmrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
976a0d3b6eaSmrg  | --oldin | --oldi | --old | --ol | --o)
977a0d3b6eaSmrg    ac_prev=oldincludedir ;;
978a0d3b6eaSmrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
979a0d3b6eaSmrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
980a0d3b6eaSmrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
981a0d3b6eaSmrg    oldincludedir=$ac_optarg ;;
982a0d3b6eaSmrg
983a0d3b6eaSmrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
984a0d3b6eaSmrg    ac_prev=prefix ;;
985a0d3b6eaSmrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
986a0d3b6eaSmrg    prefix=$ac_optarg ;;
987a0d3b6eaSmrg
988a0d3b6eaSmrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
989a0d3b6eaSmrg  | --program-pre | --program-pr | --program-p)
990a0d3b6eaSmrg    ac_prev=program_prefix ;;
991a0d3b6eaSmrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
992a0d3b6eaSmrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
993a0d3b6eaSmrg    program_prefix=$ac_optarg ;;
994a0d3b6eaSmrg
995a0d3b6eaSmrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
996a0d3b6eaSmrg  | --program-suf | --program-su | --program-s)
997a0d3b6eaSmrg    ac_prev=program_suffix ;;
998a0d3b6eaSmrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
999a0d3b6eaSmrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1000a0d3b6eaSmrg    program_suffix=$ac_optarg ;;
1001a0d3b6eaSmrg
1002a0d3b6eaSmrg  -program-transform-name | --program-transform-name \
1003a0d3b6eaSmrg  | --program-transform-nam | --program-transform-na \
1004a0d3b6eaSmrg  | --program-transform-n | --program-transform- \
1005a0d3b6eaSmrg  | --program-transform | --program-transfor \
1006a0d3b6eaSmrg  | --program-transfo | --program-transf \
1007a0d3b6eaSmrg  | --program-trans | --program-tran \
1008a0d3b6eaSmrg  | --progr-tra | --program-tr | --program-t)
1009a0d3b6eaSmrg    ac_prev=program_transform_name ;;
1010a0d3b6eaSmrg  -program-transform-name=* | --program-transform-name=* \
1011a0d3b6eaSmrg  | --program-transform-nam=* | --program-transform-na=* \
1012a0d3b6eaSmrg  | --program-transform-n=* | --program-transform-=* \
1013a0d3b6eaSmrg  | --program-transform=* | --program-transfor=* \
1014a0d3b6eaSmrg  | --program-transfo=* | --program-transf=* \
1015a0d3b6eaSmrg  | --program-trans=* | --program-tran=* \
1016a0d3b6eaSmrg  | --progr-tra=* | --program-tr=* | --program-t=*)
1017a0d3b6eaSmrg    program_transform_name=$ac_optarg ;;
1018a0d3b6eaSmrg
1019a0d3b6eaSmrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1020a0d3b6eaSmrg    ac_prev=pdfdir ;;
1021a0d3b6eaSmrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1022a0d3b6eaSmrg    pdfdir=$ac_optarg ;;
1023a0d3b6eaSmrg
1024a0d3b6eaSmrg  -psdir | --psdir | --psdi | --psd | --ps)
1025a0d3b6eaSmrg    ac_prev=psdir ;;
1026a0d3b6eaSmrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1027a0d3b6eaSmrg    psdir=$ac_optarg ;;
1028a0d3b6eaSmrg
1029a0d3b6eaSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1030a0d3b6eaSmrg  | -silent | --silent | --silen | --sile | --sil)
1031a0d3b6eaSmrg    silent=yes ;;
1032a0d3b6eaSmrg
1033a0d3b6eaSmrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1034a0d3b6eaSmrg    ac_prev=sbindir ;;
1035a0d3b6eaSmrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1036a0d3b6eaSmrg  | --sbi=* | --sb=*)
1037a0d3b6eaSmrg    sbindir=$ac_optarg ;;
1038a0d3b6eaSmrg
1039a0d3b6eaSmrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1040a0d3b6eaSmrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1041a0d3b6eaSmrg  | --sharedst | --shareds | --shared | --share | --shar \
1042a0d3b6eaSmrg  | --sha | --sh)
1043a0d3b6eaSmrg    ac_prev=sharedstatedir ;;
1044a0d3b6eaSmrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1045a0d3b6eaSmrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1046a0d3b6eaSmrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1047a0d3b6eaSmrg  | --sha=* | --sh=*)
1048a0d3b6eaSmrg    sharedstatedir=$ac_optarg ;;
1049a0d3b6eaSmrg
1050a0d3b6eaSmrg  -site | --site | --sit)
1051a0d3b6eaSmrg    ac_prev=site ;;
1052a0d3b6eaSmrg  -site=* | --site=* | --sit=*)
1053a0d3b6eaSmrg    site=$ac_optarg ;;
1054a0d3b6eaSmrg
1055a0d3b6eaSmrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1056a0d3b6eaSmrg    ac_prev=srcdir ;;
1057a0d3b6eaSmrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1058a0d3b6eaSmrg    srcdir=$ac_optarg ;;
1059a0d3b6eaSmrg
1060a0d3b6eaSmrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1061a0d3b6eaSmrg  | --syscon | --sysco | --sysc | --sys | --sy)
1062a0d3b6eaSmrg    ac_prev=sysconfdir ;;
1063a0d3b6eaSmrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1064a0d3b6eaSmrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1065a0d3b6eaSmrg    sysconfdir=$ac_optarg ;;
1066a0d3b6eaSmrg
1067a0d3b6eaSmrg  -target | --target | --targe | --targ | --tar | --ta | --t)
1068a0d3b6eaSmrg    ac_prev=target_alias ;;
1069a0d3b6eaSmrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1070a0d3b6eaSmrg    target_alias=$ac_optarg ;;
1071a0d3b6eaSmrg
1072a0d3b6eaSmrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1073a0d3b6eaSmrg    verbose=yes ;;
1074a0d3b6eaSmrg
1075a0d3b6eaSmrg  -version | --version | --versio | --versi | --vers | -V)
1076a0d3b6eaSmrg    ac_init_version=: ;;
1077a0d3b6eaSmrg
1078a0d3b6eaSmrg  -with-* | --with-*)
107962df5ad0Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1080a0d3b6eaSmrg    # Reject names that are not valid shell variable names.
108162df5ad0Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
10824def10e6Smrg      as_fn_error $? "invalid package name: $ac_useropt"
108362df5ad0Smrg    ac_useropt_orig=$ac_useropt
108462df5ad0Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
108562df5ad0Smrg    case $ac_user_opts in
108662df5ad0Smrg      *"
108762df5ad0Smrg"with_$ac_useropt"
108862df5ad0Smrg"*) ;;
108962df5ad0Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
109062df5ad0Smrg	 ac_unrecognized_sep=', ';;
109162df5ad0Smrg    esac
109262df5ad0Smrg    eval with_$ac_useropt=\$ac_optarg ;;
1093a0d3b6eaSmrg
1094a0d3b6eaSmrg  -without-* | --without-*)
109562df5ad0Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1096a0d3b6eaSmrg    # Reject names that are not valid shell variable names.
109762df5ad0Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
10984def10e6Smrg      as_fn_error $? "invalid package name: $ac_useropt"
109962df5ad0Smrg    ac_useropt_orig=$ac_useropt
110062df5ad0Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
110162df5ad0Smrg    case $ac_user_opts in
110262df5ad0Smrg      *"
110362df5ad0Smrg"with_$ac_useropt"
110462df5ad0Smrg"*) ;;
110562df5ad0Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
110662df5ad0Smrg	 ac_unrecognized_sep=', ';;
110762df5ad0Smrg    esac
110862df5ad0Smrg    eval with_$ac_useropt=no ;;
1109a0d3b6eaSmrg
1110a0d3b6eaSmrg  --x)
1111a0d3b6eaSmrg    # Obsolete; use --with-x.
1112a0d3b6eaSmrg    with_x=yes ;;
1113a0d3b6eaSmrg
1114a0d3b6eaSmrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1115a0d3b6eaSmrg  | --x-incl | --x-inc | --x-in | --x-i)
1116a0d3b6eaSmrg    ac_prev=x_includes ;;
1117a0d3b6eaSmrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1118a0d3b6eaSmrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1119a0d3b6eaSmrg    x_includes=$ac_optarg ;;
1120a0d3b6eaSmrg
1121a0d3b6eaSmrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1122a0d3b6eaSmrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1123a0d3b6eaSmrg    ac_prev=x_libraries ;;
1124a0d3b6eaSmrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1125a0d3b6eaSmrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1126a0d3b6eaSmrg    x_libraries=$ac_optarg ;;
1127a0d3b6eaSmrg
11284def10e6Smrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
11294def10e6SmrgTry \`$0 --help' for more information"
1130a0d3b6eaSmrg    ;;
1131a0d3b6eaSmrg
1132a0d3b6eaSmrg  *=*)
1133a0d3b6eaSmrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1134a0d3b6eaSmrg    # Reject names that are not valid shell variable names.
1135f8a31ee4Smrg    case $ac_envvar in #(
1136f8a31ee4Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
11374def10e6Smrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1138f8a31ee4Smrg    esac
1139a0d3b6eaSmrg    eval $ac_envvar=\$ac_optarg
1140a0d3b6eaSmrg    export $ac_envvar ;;
1141a0d3b6eaSmrg
1142a0d3b6eaSmrg  *)
1143a0d3b6eaSmrg    # FIXME: should be removed in autoconf 3.0.
114462df5ad0Smrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1145a0d3b6eaSmrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
114662df5ad0Smrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
11474def10e6Smrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1148a0d3b6eaSmrg    ;;
1149a0d3b6eaSmrg
1150a0d3b6eaSmrg  esac
1151a0d3b6eaSmrgdone
1152a0d3b6eaSmrg
1153a0d3b6eaSmrgif test -n "$ac_prev"; then
1154a0d3b6eaSmrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
11554def10e6Smrg  as_fn_error $? "missing argument to $ac_option"
1156a0d3b6eaSmrgfi
1157a0d3b6eaSmrg
115862df5ad0Smrgif test -n "$ac_unrecognized_opts"; then
115962df5ad0Smrg  case $enable_option_checking in
116062df5ad0Smrg    no) ;;
11614def10e6Smrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
116262df5ad0Smrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
116362df5ad0Smrg  esac
116462df5ad0Smrgfi
116562df5ad0Smrg
116662df5ad0Smrg# Check all directory arguments for consistency.
1167a0d3b6eaSmrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1168a0d3b6eaSmrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1169a0d3b6eaSmrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1170a0d3b6eaSmrg		libdir localedir mandir
1171a0d3b6eaSmrgdo
1172a0d3b6eaSmrg  eval ac_val=\$$ac_var
117362df5ad0Smrg  # Remove trailing slashes.
117462df5ad0Smrg  case $ac_val in
117562df5ad0Smrg    */ )
117662df5ad0Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
117762df5ad0Smrg      eval $ac_var=\$ac_val;;
117862df5ad0Smrg  esac
117962df5ad0Smrg  # Be sure to have absolute directory names.
1180a0d3b6eaSmrg  case $ac_val in
1181a0d3b6eaSmrg    [\\/$]* | ?:[\\/]* )  continue;;
1182a0d3b6eaSmrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1183a0d3b6eaSmrg  esac
11844def10e6Smrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1185a0d3b6eaSmrgdone
1186a0d3b6eaSmrg
1187a0d3b6eaSmrg# There might be people who depend on the old broken behavior: `$host'
1188a0d3b6eaSmrg# used to hold the argument of --host etc.
1189a0d3b6eaSmrg# FIXME: To remove some day.
1190a0d3b6eaSmrgbuild=$build_alias
1191a0d3b6eaSmrghost=$host_alias
1192a0d3b6eaSmrgtarget=$target_alias
1193a0d3b6eaSmrg
1194a0d3b6eaSmrg# FIXME: To remove some day.
1195a0d3b6eaSmrgif test "x$host_alias" != x; then
1196a0d3b6eaSmrg  if test "x$build_alias" = x; then
1197a0d3b6eaSmrg    cross_compiling=maybe
11984def10e6Smrg    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
11994def10e6Smrg    If a cross compiler is detected then cross compile mode will be used" >&2
1200a0d3b6eaSmrg  elif test "x$build_alias" != "x$host_alias"; then
1201a0d3b6eaSmrg    cross_compiling=yes
1202a0d3b6eaSmrg  fi
1203a0d3b6eaSmrgfi
1204a0d3b6eaSmrg
1205a0d3b6eaSmrgac_tool_prefix=
1206a0d3b6eaSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
1207a0d3b6eaSmrg
1208a0d3b6eaSmrgtest "$silent" = yes && exec 6>/dev/null
1209a0d3b6eaSmrg
1210a0d3b6eaSmrg
1211a0d3b6eaSmrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1212a0d3b6eaSmrgac_ls_di=`ls -di .` &&
1213a0d3b6eaSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12144def10e6Smrg  as_fn_error $? "working directory cannot be determined"
1215a0d3b6eaSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12164def10e6Smrg  as_fn_error $? "pwd does not report name of working directory"
1217a0d3b6eaSmrg
1218a0d3b6eaSmrg
1219a0d3b6eaSmrg# Find the source files, if location was not specified.
1220a0d3b6eaSmrgif test -z "$srcdir"; then
1221a0d3b6eaSmrg  ac_srcdir_defaulted=yes
1222a0d3b6eaSmrg  # Try the directory containing this script, then the parent directory.
122362df5ad0Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
122462df5ad0Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
122562df5ad0Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
122662df5ad0Smrg	 X"$as_myself" : 'X\(//\)$' \| \
122762df5ad0Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
122862df5ad0Smrg$as_echo X"$as_myself" |
1229a0d3b6eaSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1230a0d3b6eaSmrg	    s//\1/
1231a0d3b6eaSmrg	    q
1232a0d3b6eaSmrg	  }
1233a0d3b6eaSmrg	  /^X\(\/\/\)[^/].*/{
1234a0d3b6eaSmrg	    s//\1/
1235a0d3b6eaSmrg	    q
1236a0d3b6eaSmrg	  }
1237a0d3b6eaSmrg	  /^X\(\/\/\)$/{
1238a0d3b6eaSmrg	    s//\1/
1239a0d3b6eaSmrg	    q
1240a0d3b6eaSmrg	  }
1241a0d3b6eaSmrg	  /^X\(\/\).*/{
1242a0d3b6eaSmrg	    s//\1/
1243a0d3b6eaSmrg	    q
1244a0d3b6eaSmrg	  }
1245a0d3b6eaSmrg	  s/.*/./; q'`
1246a0d3b6eaSmrg  srcdir=$ac_confdir
1247a0d3b6eaSmrg  if test ! -r "$srcdir/$ac_unique_file"; then
1248a0d3b6eaSmrg    srcdir=..
1249a0d3b6eaSmrg  fi
1250a0d3b6eaSmrgelse
1251a0d3b6eaSmrg  ac_srcdir_defaulted=no
1252a0d3b6eaSmrgfi
1253a0d3b6eaSmrgif test ! -r "$srcdir/$ac_unique_file"; then
1254a0d3b6eaSmrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12554def10e6Smrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1256a0d3b6eaSmrgfi
1257a0d3b6eaSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1258a0d3b6eaSmrgac_abs_confdir=`(
12594def10e6Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1260a0d3b6eaSmrg	pwd)`
1261a0d3b6eaSmrg# When building in place, set srcdir=.
1262a0d3b6eaSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1263a0d3b6eaSmrg  srcdir=.
1264a0d3b6eaSmrgfi
1265a0d3b6eaSmrg# Remove unnecessary trailing slashes from srcdir.
1266a0d3b6eaSmrg# Double slashes in file names in object file debugging info
1267a0d3b6eaSmrg# mess up M-x gdb in Emacs.
1268a0d3b6eaSmrgcase $srcdir in
1269a0d3b6eaSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1270a0d3b6eaSmrgesac
1271a0d3b6eaSmrgfor ac_var in $ac_precious_vars; do
1272a0d3b6eaSmrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1273a0d3b6eaSmrg  eval ac_env_${ac_var}_value=\$${ac_var}
1274a0d3b6eaSmrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1275a0d3b6eaSmrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1276a0d3b6eaSmrgdone
1277a0d3b6eaSmrg
1278a0d3b6eaSmrg#
1279a0d3b6eaSmrg# Report the --help message.
1280a0d3b6eaSmrg#
1281a0d3b6eaSmrgif test "$ac_init_help" = "long"; then
1282a0d3b6eaSmrg  # Omit some internal or obsolete options to make the list less imposing.
1283a0d3b6eaSmrg  # This message is too long to be a string in the A/UX 3.1 sh.
1284a0d3b6eaSmrg  cat <<_ACEOF
12854def10e6Smrg\`configure' configures xrandr 1.3.4 to adapt to many kinds of systems.
1286a0d3b6eaSmrg
1287a0d3b6eaSmrgUsage: $0 [OPTION]... [VAR=VALUE]...
1288a0d3b6eaSmrg
1289a0d3b6eaSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1290a0d3b6eaSmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
1291a0d3b6eaSmrg
1292a0d3b6eaSmrgDefaults for the options are specified in brackets.
1293a0d3b6eaSmrg
1294a0d3b6eaSmrgConfiguration:
1295a0d3b6eaSmrg  -h, --help              display this help and exit
1296a0d3b6eaSmrg      --help=short        display options specific to this package
1297a0d3b6eaSmrg      --help=recursive    display the short help of all the included packages
1298a0d3b6eaSmrg  -V, --version           display version information and exit
12994def10e6Smrg  -q, --quiet, --silent   do not print \`checking ...' messages
1300a0d3b6eaSmrg      --cache-file=FILE   cache test results in FILE [disabled]
1301a0d3b6eaSmrg  -C, --config-cache      alias for \`--cache-file=config.cache'
1302a0d3b6eaSmrg  -n, --no-create         do not create output files
1303a0d3b6eaSmrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1304a0d3b6eaSmrg
1305a0d3b6eaSmrgInstallation directories:
1306a0d3b6eaSmrg  --prefix=PREFIX         install architecture-independent files in PREFIX
130762df5ad0Smrg                          [$ac_default_prefix]
1308a0d3b6eaSmrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
130962df5ad0Smrg                          [PREFIX]
1310a0d3b6eaSmrg
1311a0d3b6eaSmrgBy default, \`make install' will install all the files in
1312a0d3b6eaSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1313a0d3b6eaSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1314a0d3b6eaSmrgfor instance \`--prefix=\$HOME'.
1315a0d3b6eaSmrg
1316a0d3b6eaSmrgFor better control, use the options below.
1317a0d3b6eaSmrg
1318a0d3b6eaSmrgFine tuning of the installation directories:
131962df5ad0Smrg  --bindir=DIR            user executables [EPREFIX/bin]
132062df5ad0Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
132162df5ad0Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
132262df5ad0Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
132362df5ad0Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
132462df5ad0Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
132562df5ad0Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
132662df5ad0Smrg  --includedir=DIR        C header files [PREFIX/include]
132762df5ad0Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
132862df5ad0Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
132962df5ad0Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
133062df5ad0Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
133162df5ad0Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
133262df5ad0Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
133362df5ad0Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xrandr]
133462df5ad0Smrg  --htmldir=DIR           html documentation [DOCDIR]
133562df5ad0Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
133662df5ad0Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
133762df5ad0Smrg  --psdir=DIR             ps documentation [DOCDIR]
1338a0d3b6eaSmrg_ACEOF
1339a0d3b6eaSmrg
1340a0d3b6eaSmrg  cat <<\_ACEOF
1341a0d3b6eaSmrg
1342a0d3b6eaSmrgProgram names:
1343a0d3b6eaSmrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
1344a0d3b6eaSmrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
1345a0d3b6eaSmrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1346a0d3b6eaSmrg
1347a0d3b6eaSmrgSystem types:
1348a0d3b6eaSmrg  --build=BUILD     configure for building on BUILD [guessed]
1349a0d3b6eaSmrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1350a0d3b6eaSmrg_ACEOF
1351a0d3b6eaSmrgfi
1352a0d3b6eaSmrg
1353a0d3b6eaSmrgif test -n "$ac_init_help"; then
1354a0d3b6eaSmrg  case $ac_init_help in
13554def10e6Smrg     short | recursive ) echo "Configuration of xrandr 1.3.4:";;
1356a0d3b6eaSmrg   esac
1357a0d3b6eaSmrg  cat <<\_ACEOF
1358a0d3b6eaSmrg
1359a0d3b6eaSmrgOptional Features:
136062df5ad0Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
1361a0d3b6eaSmrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1362a0d3b6eaSmrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1363a0d3b6eaSmrg  --enable-maintainer-mode  enable make rules and dependencies not useful
1364a0d3b6eaSmrg			  (and sometimes confusing) to the casual installer
1365a0d3b6eaSmrg  --disable-dependency-tracking  speeds up one-time build
1366a0d3b6eaSmrg  --enable-dependency-tracking   do not reject slow dependency extractors
1367f8a31ee4Smrg  --enable-strict-compilation
1368f8a31ee4Smrg                          Enable all warnings from compiler and make them
1369f8a31ee4Smrg                          errors (default: disabled)
1370f8a31ee4Smrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
1371f8a31ee4Smrg  --disable-silent-rules         verbose build output (undo: `make V=0')
1372a0d3b6eaSmrg
1373a0d3b6eaSmrgSome influential environment variables:
1374a0d3b6eaSmrg  CC          C compiler command
1375a0d3b6eaSmrg  CFLAGS      C compiler flags
1376a0d3b6eaSmrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1377a0d3b6eaSmrg              nonstandard directory <lib dir>
1378a0d3b6eaSmrg  LIBS        libraries to pass to the linker, e.g. -l<library>
1379f8a31ee4Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1380a0d3b6eaSmrg              you have headers in a nonstandard directory <include dir>
138162df5ad0Smrg  CPP         C preprocessor
1382a0d3b6eaSmrg  PKG_CONFIG  path to pkg-config utility
1383a0d3b6eaSmrg  XRANDR_CFLAGS
1384a0d3b6eaSmrg              C compiler flags for XRANDR, overriding pkg-config
1385a0d3b6eaSmrg  XRANDR_LIBS linker flags for XRANDR, overriding pkg-config
1386a0d3b6eaSmrg
1387a0d3b6eaSmrgUse these variables to override the choices made by `configure' or to help
1388a0d3b6eaSmrgit to find libraries and programs with nonstandard names/locations.
1389a0d3b6eaSmrg
1390a0d3b6eaSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1391a0d3b6eaSmrg_ACEOF
1392a0d3b6eaSmrgac_status=$?
1393a0d3b6eaSmrgfi
1394a0d3b6eaSmrg
1395a0d3b6eaSmrgif test "$ac_init_help" = "recursive"; then
1396a0d3b6eaSmrg  # If there are subdirs, report their specific --help.
1397a0d3b6eaSmrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
139862df5ad0Smrg    test -d "$ac_dir" ||
139962df5ad0Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
140062df5ad0Smrg      continue
1401a0d3b6eaSmrg    ac_builddir=.
1402a0d3b6eaSmrg
1403a0d3b6eaSmrgcase "$ac_dir" in
1404a0d3b6eaSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1405a0d3b6eaSmrg*)
140662df5ad0Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1407a0d3b6eaSmrg  # A ".." for each directory in $ac_dir_suffix.
140862df5ad0Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1409a0d3b6eaSmrg  case $ac_top_builddir_sub in
1410a0d3b6eaSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411a0d3b6eaSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1412a0d3b6eaSmrg  esac ;;
1413a0d3b6eaSmrgesac
1414a0d3b6eaSmrgac_abs_top_builddir=$ac_pwd
1415a0d3b6eaSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1416a0d3b6eaSmrg# for backward compatibility:
1417a0d3b6eaSmrgac_top_builddir=$ac_top_build_prefix
1418a0d3b6eaSmrg
1419a0d3b6eaSmrgcase $srcdir in
1420a0d3b6eaSmrg  .)  # We are building in place.
1421a0d3b6eaSmrg    ac_srcdir=.
1422a0d3b6eaSmrg    ac_top_srcdir=$ac_top_builddir_sub
1423a0d3b6eaSmrg    ac_abs_top_srcdir=$ac_pwd ;;
1424a0d3b6eaSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1425a0d3b6eaSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
1426a0d3b6eaSmrg    ac_top_srcdir=$srcdir
1427a0d3b6eaSmrg    ac_abs_top_srcdir=$srcdir ;;
1428a0d3b6eaSmrg  *) # Relative name.
1429a0d3b6eaSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1430a0d3b6eaSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1431a0d3b6eaSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1432a0d3b6eaSmrgesac
1433a0d3b6eaSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1434a0d3b6eaSmrg
1435a0d3b6eaSmrg    cd "$ac_dir" || { ac_status=$?; continue; }
1436a0d3b6eaSmrg    # Check for guested configure.
1437a0d3b6eaSmrg    if test -f "$ac_srcdir/configure.gnu"; then
1438a0d3b6eaSmrg      echo &&
1439a0d3b6eaSmrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1440a0d3b6eaSmrg    elif test -f "$ac_srcdir/configure"; then
1441a0d3b6eaSmrg      echo &&
1442a0d3b6eaSmrg      $SHELL "$ac_srcdir/configure" --help=recursive
1443a0d3b6eaSmrg    else
144462df5ad0Smrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1445a0d3b6eaSmrg    fi || ac_status=$?
1446a0d3b6eaSmrg    cd "$ac_pwd" || { ac_status=$?; break; }
1447a0d3b6eaSmrg  done
1448a0d3b6eaSmrgfi
1449a0d3b6eaSmrg
1450a0d3b6eaSmrgtest -n "$ac_init_help" && exit $ac_status
1451a0d3b6eaSmrgif $ac_init_version; then
1452a0d3b6eaSmrg  cat <<\_ACEOF
14534def10e6Smrgxrandr configure 1.3.4
14544def10e6Smrggenerated by GNU Autoconf 2.68
1455a0d3b6eaSmrg
14564def10e6SmrgCopyright (C) 2010 Free Software Foundation, Inc.
1457a0d3b6eaSmrgThis configure script is free software; the Free Software Foundation
1458a0d3b6eaSmrggives unlimited permission to copy, distribute and modify it.
1459a0d3b6eaSmrg_ACEOF
1460a0d3b6eaSmrg  exit
1461a0d3b6eaSmrgfi
1462a0d3b6eaSmrg
1463f8a31ee4Smrg## ------------------------ ##
1464f8a31ee4Smrg## Autoconf initialization. ##
1465f8a31ee4Smrg## ------------------------ ##
1466a0d3b6eaSmrg
1467f8a31ee4Smrg# ac_fn_c_try_compile LINENO
1468f8a31ee4Smrg# --------------------------
1469f8a31ee4Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
1470f8a31ee4Smrgac_fn_c_try_compile ()
1471a0d3b6eaSmrg{
1472f8a31ee4Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1473f8a31ee4Smrg  rm -f conftest.$ac_objext
1474f8a31ee4Smrg  if { { ac_try="$ac_compile"
1475f8a31ee4Smrgcase "(($ac_try" in
1476f8a31ee4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1477f8a31ee4Smrg  *) ac_try_echo=$ac_try;;
1478f8a31ee4Smrgesac
1479f8a31ee4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1480f8a31ee4Smrg$as_echo "$ac_try_echo"; } >&5
1481f8a31ee4Smrg  (eval "$ac_compile") 2>conftest.err
1482f8a31ee4Smrg  ac_status=$?
1483f8a31ee4Smrg  if test -s conftest.err; then
1484f8a31ee4Smrg    grep -v '^ *+' conftest.err >conftest.er1
1485f8a31ee4Smrg    cat conftest.er1 >&5
1486f8a31ee4Smrg    mv -f conftest.er1 conftest.err
1487f8a31ee4Smrg  fi
1488f8a31ee4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1489f8a31ee4Smrg  test $ac_status = 0; } && {
1490f8a31ee4Smrg	 test -z "$ac_c_werror_flag" ||
1491f8a31ee4Smrg	 test ! -s conftest.err
1492f8a31ee4Smrg       } && test -s conftest.$ac_objext; then :
1493f8a31ee4Smrg  ac_retval=0
1494f8a31ee4Smrgelse
1495f8a31ee4Smrg  $as_echo "$as_me: failed program was:" >&5
1496f8a31ee4Smrgsed 's/^/| /' conftest.$ac_ext >&5
1497a0d3b6eaSmrg
1498f8a31ee4Smrg	ac_retval=1
1499f8a31ee4Smrgfi
15004def10e6Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1501f8a31ee4Smrg  as_fn_set_status $ac_retval
1502a0d3b6eaSmrg
1503f8a31ee4Smrg} # ac_fn_c_try_compile
1504a0d3b6eaSmrg
15054def10e6Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
15064def10e6Smrg# ---------------------------------------------
15074def10e6Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
15084def10e6Smrg# accordingly.
1509f8a31ee4Smrgac_fn_c_check_decl ()
1510f8a31ee4Smrg{
1511f8a31ee4Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15124def10e6Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
15134def10e6Smrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
15144def10e6Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
15154def10e6Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
15164def10e6Smrgif eval \${$3+:} false; then :
1517f8a31ee4Smrg  $as_echo_n "(cached) " >&6
1518f8a31ee4Smrgelse
1519f8a31ee4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1520f8a31ee4Smrg/* end confdefs.h.  */
1521f8a31ee4Smrg$4
1522f8a31ee4Smrgint
1523f8a31ee4Smrgmain ()
1524f8a31ee4Smrg{
15254def10e6Smrg#ifndef $as_decl_name
15264def10e6Smrg#ifdef __cplusplus
15274def10e6Smrg  (void) $as_decl_use;
15284def10e6Smrg#else
15294def10e6Smrg  (void) $as_decl_name;
15304def10e6Smrg#endif
1531f8a31ee4Smrg#endif
1532a0d3b6eaSmrg
1533f8a31ee4Smrg  ;
1534f8a31ee4Smrg  return 0;
1535f8a31ee4Smrg}
1536f8a31ee4Smrg_ACEOF
1537f8a31ee4Smrgif ac_fn_c_try_compile "$LINENO"; then :
1538f8a31ee4Smrg  eval "$3=yes"
1539f8a31ee4Smrgelse
1540f8a31ee4Smrg  eval "$3=no"
1541f8a31ee4Smrgfi
1542f8a31ee4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1543f8a31ee4Smrgfi
1544f8a31ee4Smrgeval ac_res=\$$3
1545f8a31ee4Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1546f8a31ee4Smrg$as_echo "$ac_res" >&6; }
15474def10e6Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1548f8a31ee4Smrg
1549f8a31ee4Smrg} # ac_fn_c_check_decl
1550f8a31ee4Smrg
1551f8a31ee4Smrg# ac_fn_c_try_cpp LINENO
1552f8a31ee4Smrg# ----------------------
1553f8a31ee4Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1554f8a31ee4Smrgac_fn_c_try_cpp ()
1555f8a31ee4Smrg{
1556f8a31ee4Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557f8a31ee4Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
1558f8a31ee4Smrgcase "(($ac_try" in
1559f8a31ee4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560f8a31ee4Smrg  *) ac_try_echo=$ac_try;;
1561f8a31ee4Smrgesac
1562f8a31ee4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563f8a31ee4Smrg$as_echo "$ac_try_echo"; } >&5
1564f8a31ee4Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1565f8a31ee4Smrg  ac_status=$?
1566f8a31ee4Smrg  if test -s conftest.err; then
1567f8a31ee4Smrg    grep -v '^ *+' conftest.err >conftest.er1
1568f8a31ee4Smrg    cat conftest.er1 >&5
1569f8a31ee4Smrg    mv -f conftest.er1 conftest.err
1570f8a31ee4Smrg  fi
1571f8a31ee4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15724def10e6Smrg  test $ac_status = 0; } > conftest.i && {
1573f8a31ee4Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1574f8a31ee4Smrg	 test ! -s conftest.err
1575f8a31ee4Smrg       }; then :
1576f8a31ee4Smrg  ac_retval=0
1577f8a31ee4Smrgelse
1578f8a31ee4Smrg  $as_echo "$as_me: failed program was:" >&5
1579f8a31ee4Smrgsed 's/^/| /' conftest.$ac_ext >&5
1580f8a31ee4Smrg
1581f8a31ee4Smrg    ac_retval=1
1582f8a31ee4Smrgfi
15834def10e6Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584f8a31ee4Smrg  as_fn_set_status $ac_retval
1585f8a31ee4Smrg
1586f8a31ee4Smrg} # ac_fn_c_try_cpp
1587f8a31ee4Smrg
1588f8a31ee4Smrg# ac_fn_c_try_run LINENO
1589f8a31ee4Smrg# ----------------------
1590f8a31ee4Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1591f8a31ee4Smrg# that executables *can* be run.
1592f8a31ee4Smrgac_fn_c_try_run ()
1593f8a31ee4Smrg{
1594f8a31ee4Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595f8a31ee4Smrg  if { { ac_try="$ac_link"
1596f8a31ee4Smrgcase "(($ac_try" in
1597f8a31ee4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598f8a31ee4Smrg  *) ac_try_echo=$ac_try;;
1599f8a31ee4Smrgesac
1600f8a31ee4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601f8a31ee4Smrg$as_echo "$ac_try_echo"; } >&5
1602f8a31ee4Smrg  (eval "$ac_link") 2>&5
1603f8a31ee4Smrg  ac_status=$?
1604f8a31ee4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605f8a31ee4Smrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1606f8a31ee4Smrg  { { case "(($ac_try" in
1607f8a31ee4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608f8a31ee4Smrg  *) ac_try_echo=$ac_try;;
1609f8a31ee4Smrgesac
1610f8a31ee4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611f8a31ee4Smrg$as_echo "$ac_try_echo"; } >&5
1612f8a31ee4Smrg  (eval "$ac_try") 2>&5
1613f8a31ee4Smrg  ac_status=$?
1614f8a31ee4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615f8a31ee4Smrg  test $ac_status = 0; }; }; then :
1616f8a31ee4Smrg  ac_retval=0
1617f8a31ee4Smrgelse
1618f8a31ee4Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
1619f8a31ee4Smrg       $as_echo "$as_me: failed program was:" >&5
1620f8a31ee4Smrgsed 's/^/| /' conftest.$ac_ext >&5
1621f8a31ee4Smrg
1622f8a31ee4Smrg       ac_retval=$ac_status
1623f8a31ee4Smrgfi
1624f8a31ee4Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
16254def10e6Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626f8a31ee4Smrg  as_fn_set_status $ac_retval
1627f8a31ee4Smrg
1628f8a31ee4Smrg} # ac_fn_c_try_run
1629f8a31ee4Smrg
1630f8a31ee4Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1631f8a31ee4Smrg# -------------------------------------------------------
1632f8a31ee4Smrg# Tests whether HEADER exists and can be compiled using the include files in
1633f8a31ee4Smrg# INCLUDES, setting the cache variable VAR accordingly.
1634f8a31ee4Smrgac_fn_c_check_header_compile ()
1635f8a31ee4Smrg{
1636f8a31ee4Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1638f8a31ee4Smrg$as_echo_n "checking for $2... " >&6; }
16394def10e6Smrgif eval \${$3+:} false; then :
1640f8a31ee4Smrg  $as_echo_n "(cached) " >&6
1641f8a31ee4Smrgelse
1642f8a31ee4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1643f8a31ee4Smrg/* end confdefs.h.  */
1644f8a31ee4Smrg$4
1645f8a31ee4Smrg#include <$2>
1646f8a31ee4Smrg_ACEOF
1647f8a31ee4Smrgif ac_fn_c_try_compile "$LINENO"; then :
1648f8a31ee4Smrg  eval "$3=yes"
1649f8a31ee4Smrgelse
1650f8a31ee4Smrg  eval "$3=no"
1651f8a31ee4Smrgfi
1652f8a31ee4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1653f8a31ee4Smrgfi
1654f8a31ee4Smrgeval ac_res=\$$3
1655f8a31ee4Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1656f8a31ee4Smrg$as_echo "$ac_res" >&6; }
16574def10e6Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658f8a31ee4Smrg
1659f8a31ee4Smrg} # ac_fn_c_check_header_compile
1660f8a31ee4Smrg
1661f8a31ee4Smrg# ac_fn_c_try_link LINENO
1662f8a31ee4Smrg# -----------------------
1663f8a31ee4Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
1664f8a31ee4Smrgac_fn_c_try_link ()
1665f8a31ee4Smrg{
1666f8a31ee4Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667f8a31ee4Smrg  rm -f conftest.$ac_objext conftest$ac_exeext
1668f8a31ee4Smrg  if { { ac_try="$ac_link"
1669f8a31ee4Smrgcase "(($ac_try" in
1670f8a31ee4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671f8a31ee4Smrg  *) ac_try_echo=$ac_try;;
1672f8a31ee4Smrgesac
1673f8a31ee4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674f8a31ee4Smrg$as_echo "$ac_try_echo"; } >&5
1675f8a31ee4Smrg  (eval "$ac_link") 2>conftest.err
1676f8a31ee4Smrg  ac_status=$?
1677f8a31ee4Smrg  if test -s conftest.err; then
1678f8a31ee4Smrg    grep -v '^ *+' conftest.err >conftest.er1
1679f8a31ee4Smrg    cat conftest.er1 >&5
1680f8a31ee4Smrg    mv -f conftest.er1 conftest.err
1681f8a31ee4Smrg  fi
1682f8a31ee4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683f8a31ee4Smrg  test $ac_status = 0; } && {
1684f8a31ee4Smrg	 test -z "$ac_c_werror_flag" ||
1685f8a31ee4Smrg	 test ! -s conftest.err
1686f8a31ee4Smrg       } && test -s conftest$ac_exeext && {
1687f8a31ee4Smrg	 test "$cross_compiling" = yes ||
1688f8a31ee4Smrg	 $as_test_x conftest$ac_exeext
1689f8a31ee4Smrg       }; then :
1690f8a31ee4Smrg  ac_retval=0
1691f8a31ee4Smrgelse
1692f8a31ee4Smrg  $as_echo "$as_me: failed program was:" >&5
1693f8a31ee4Smrgsed 's/^/| /' conftest.$ac_ext >&5
1694f8a31ee4Smrg
1695f8a31ee4Smrg	ac_retval=1
1696f8a31ee4Smrgfi
1697f8a31ee4Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1698f8a31ee4Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1699f8a31ee4Smrg  # interfere with the next link command; also delete a directory that is
1700f8a31ee4Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
1701f8a31ee4Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
17024def10e6Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703f8a31ee4Smrg  as_fn_set_status $ac_retval
1704f8a31ee4Smrg
1705f8a31ee4Smrg} # ac_fn_c_try_link
1706f8a31ee4Smrgcat >config.log <<_ACEOF
1707f8a31ee4SmrgThis file contains any messages produced by compilers while
1708f8a31ee4Smrgrunning configure, to aid debugging if configure makes a mistake.
1709f8a31ee4Smrg
17104def10e6SmrgIt was created by xrandr $as_me 1.3.4, which was
17114def10e6Smrggenerated by GNU Autoconf 2.68.  Invocation command line was
1712f8a31ee4Smrg
1713f8a31ee4Smrg  $ $0 $@
1714f8a31ee4Smrg
1715f8a31ee4Smrg_ACEOF
1716f8a31ee4Smrgexec 5>>config.log
1717f8a31ee4Smrg{
1718f8a31ee4Smrgcat <<_ASUNAME
1719f8a31ee4Smrg## --------- ##
1720f8a31ee4Smrg## Platform. ##
1721f8a31ee4Smrg## --------- ##
1722f8a31ee4Smrg
1723f8a31ee4Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1724f8a31ee4Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
1725f8a31ee4Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
1726f8a31ee4Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
1727f8a31ee4Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
1728f8a31ee4Smrg
1729f8a31ee4Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1730f8a31ee4Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1731f8a31ee4Smrg
1732f8a31ee4Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1733f8a31ee4Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1734f8a31ee4Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1735f8a31ee4Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1736f8a31ee4Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1737f8a31ee4Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1738f8a31ee4Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1739f8a31ee4Smrg
1740f8a31ee4Smrg_ASUNAME
1741a0d3b6eaSmrg
1742a0d3b6eaSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743a0d3b6eaSmrgfor as_dir in $PATH
1744a0d3b6eaSmrgdo
1745a0d3b6eaSmrg  IFS=$as_save_IFS
1746a0d3b6eaSmrg  test -z "$as_dir" && as_dir=.
1747f8a31ee4Smrg    $as_echo "PATH: $as_dir"
1748f8a31ee4Smrg  done
1749a0d3b6eaSmrgIFS=$as_save_IFS
1750a0d3b6eaSmrg
1751a0d3b6eaSmrg} >&5
1752a0d3b6eaSmrg
1753a0d3b6eaSmrgcat >&5 <<_ACEOF
1754a0d3b6eaSmrg
1755a0d3b6eaSmrg
1756a0d3b6eaSmrg## ----------- ##
1757a0d3b6eaSmrg## Core tests. ##
1758a0d3b6eaSmrg## ----------- ##
1759a0d3b6eaSmrg
1760a0d3b6eaSmrg_ACEOF
1761a0d3b6eaSmrg
1762a0d3b6eaSmrg
1763a0d3b6eaSmrg# Keep a trace of the command line.
1764a0d3b6eaSmrg# Strip out --no-create and --no-recursion so they do not pile up.
1765a0d3b6eaSmrg# Strip out --silent because we don't want to record it for future runs.
1766a0d3b6eaSmrg# Also quote any args containing shell meta-characters.
1767a0d3b6eaSmrg# Make two passes to allow for proper duplicate-argument suppression.
1768a0d3b6eaSmrgac_configure_args=
1769a0d3b6eaSmrgac_configure_args0=
1770a0d3b6eaSmrgac_configure_args1=
1771a0d3b6eaSmrgac_must_keep_next=false
1772a0d3b6eaSmrgfor ac_pass in 1 2
1773a0d3b6eaSmrgdo
1774a0d3b6eaSmrg  for ac_arg
1775a0d3b6eaSmrg  do
1776a0d3b6eaSmrg    case $ac_arg in
1777a0d3b6eaSmrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1778a0d3b6eaSmrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1779a0d3b6eaSmrg    | -silent | --silent | --silen | --sile | --sil)
1780a0d3b6eaSmrg      continue ;;
1781a0d3b6eaSmrg    *\'*)
178262df5ad0Smrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1783a0d3b6eaSmrg    esac
1784a0d3b6eaSmrg    case $ac_pass in
1785f8a31ee4Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1786a0d3b6eaSmrg    2)
1787f8a31ee4Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
1788a0d3b6eaSmrg      if test $ac_must_keep_next = true; then
1789a0d3b6eaSmrg	ac_must_keep_next=false # Got value, back to normal.
1790a0d3b6eaSmrg      else
1791a0d3b6eaSmrg	case $ac_arg in
1792a0d3b6eaSmrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
1793a0d3b6eaSmrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1794a0d3b6eaSmrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1795a0d3b6eaSmrg	  | -with-* | --with-* | -without-* | --without-* | --x)
1796a0d3b6eaSmrg	    case "$ac_configure_args0 " in
1797a0d3b6eaSmrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1798a0d3b6eaSmrg	    esac
1799a0d3b6eaSmrg	    ;;
1800a0d3b6eaSmrg	  -* ) ac_must_keep_next=true ;;
1801a0d3b6eaSmrg	esac
1802a0d3b6eaSmrg      fi
1803f8a31ee4Smrg      as_fn_append ac_configure_args " '$ac_arg'"
1804a0d3b6eaSmrg      ;;
1805a0d3b6eaSmrg    esac
1806a0d3b6eaSmrg  done
1807a0d3b6eaSmrgdone
1808f8a31ee4Smrg{ ac_configure_args0=; unset ac_configure_args0;}
1809f8a31ee4Smrg{ ac_configure_args1=; unset ac_configure_args1;}
1810a0d3b6eaSmrg
1811a0d3b6eaSmrg# When interrupted or exit'd, cleanup temporary files, and complete
1812a0d3b6eaSmrg# config.log.  We remove comments because anyway the quotes in there
1813a0d3b6eaSmrg# would cause problems or look ugly.
1814a0d3b6eaSmrg# WARNING: Use '\'' to represent an apostrophe within the trap.
1815a0d3b6eaSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1816a0d3b6eaSmrgtrap 'exit_status=$?
1817a0d3b6eaSmrg  # Save into config.log some information that might help in debugging.
1818a0d3b6eaSmrg  {
1819a0d3b6eaSmrg    echo
1820a0d3b6eaSmrg
18214def10e6Smrg    $as_echo "## ---------------- ##
1822a0d3b6eaSmrg## Cache variables. ##
18234def10e6Smrg## ---------------- ##"
1824a0d3b6eaSmrg    echo
1825a0d3b6eaSmrg    # The following way of writing the cache mishandles newlines in values,
1826a0d3b6eaSmrg(
1827a0d3b6eaSmrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1828a0d3b6eaSmrg    eval ac_val=\$$ac_var
1829a0d3b6eaSmrg    case $ac_val in #(
1830a0d3b6eaSmrg    *${as_nl}*)
1831a0d3b6eaSmrg      case $ac_var in #(
1832f8a31ee4Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
183362df5ad0Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1834a0d3b6eaSmrg      esac
1835a0d3b6eaSmrg      case $ac_var in #(
1836a0d3b6eaSmrg      _ | IFS | as_nl) ;; #(
183762df5ad0Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1838f8a31ee4Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
1839a0d3b6eaSmrg      esac ;;
1840a0d3b6eaSmrg    esac
1841a0d3b6eaSmrg  done
1842a0d3b6eaSmrg  (set) 2>&1 |
1843a0d3b6eaSmrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1844a0d3b6eaSmrg    *${as_nl}ac_space=\ *)
1845a0d3b6eaSmrg      sed -n \
1846a0d3b6eaSmrg	"s/'\''/'\''\\\\'\'''\''/g;
1847a0d3b6eaSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1848a0d3b6eaSmrg      ;; #(
1849a0d3b6eaSmrg    *)
1850a0d3b6eaSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1851a0d3b6eaSmrg      ;;
1852a0d3b6eaSmrg    esac |
1853a0d3b6eaSmrg    sort
1854a0d3b6eaSmrg)
1855a0d3b6eaSmrg    echo
1856a0d3b6eaSmrg
18574def10e6Smrg    $as_echo "## ----------------- ##
1858a0d3b6eaSmrg## Output variables. ##
18594def10e6Smrg## ----------------- ##"
1860a0d3b6eaSmrg    echo
1861a0d3b6eaSmrg    for ac_var in $ac_subst_vars
1862a0d3b6eaSmrg    do
1863a0d3b6eaSmrg      eval ac_val=\$$ac_var
1864a0d3b6eaSmrg      case $ac_val in
186562df5ad0Smrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1866a0d3b6eaSmrg      esac
186762df5ad0Smrg      $as_echo "$ac_var='\''$ac_val'\''"
1868a0d3b6eaSmrg    done | sort
1869a0d3b6eaSmrg    echo
1870a0d3b6eaSmrg
1871a0d3b6eaSmrg    if test -n "$ac_subst_files"; then
18724def10e6Smrg      $as_echo "## ------------------- ##
1873a0d3b6eaSmrg## File substitutions. ##
18744def10e6Smrg## ------------------- ##"
1875a0d3b6eaSmrg      echo
1876a0d3b6eaSmrg      for ac_var in $ac_subst_files
1877a0d3b6eaSmrg      do
1878a0d3b6eaSmrg	eval ac_val=\$$ac_var
1879a0d3b6eaSmrg	case $ac_val in
188062df5ad0Smrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1881a0d3b6eaSmrg	esac
188262df5ad0Smrg	$as_echo "$ac_var='\''$ac_val'\''"
1883a0d3b6eaSmrg      done | sort
1884a0d3b6eaSmrg      echo
1885a0d3b6eaSmrg    fi
1886a0d3b6eaSmrg
1887a0d3b6eaSmrg    if test -s confdefs.h; then
18884def10e6Smrg      $as_echo "## ----------- ##
1889a0d3b6eaSmrg## confdefs.h. ##
18904def10e6Smrg## ----------- ##"
1891a0d3b6eaSmrg      echo
1892a0d3b6eaSmrg      cat confdefs.h
1893a0d3b6eaSmrg      echo
1894a0d3b6eaSmrg    fi
1895a0d3b6eaSmrg    test "$ac_signal" != 0 &&
189662df5ad0Smrg      $as_echo "$as_me: caught signal $ac_signal"
189762df5ad0Smrg    $as_echo "$as_me: exit $exit_status"
1898a0d3b6eaSmrg  } >&5
1899a0d3b6eaSmrg  rm -f core *.core core.conftest.* &&
1900a0d3b6eaSmrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1901a0d3b6eaSmrg    exit $exit_status
1902a0d3b6eaSmrg' 0
1903a0d3b6eaSmrgfor ac_signal in 1 2 13 15; do
1904f8a31ee4Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1905a0d3b6eaSmrgdone
1906a0d3b6eaSmrgac_signal=0
1907a0d3b6eaSmrg
1908a0d3b6eaSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
1909a0d3b6eaSmrgrm -f -r conftest* confdefs.h
1910a0d3b6eaSmrg
1911f8a31ee4Smrg$as_echo "/* confdefs.h */" > confdefs.h
1912f8a31ee4Smrg
1913a0d3b6eaSmrg# Predefined preprocessor variables.
1914a0d3b6eaSmrg
1915a0d3b6eaSmrgcat >>confdefs.h <<_ACEOF
1916a0d3b6eaSmrg#define PACKAGE_NAME "$PACKAGE_NAME"
1917a0d3b6eaSmrg_ACEOF
1918a0d3b6eaSmrg
1919a0d3b6eaSmrgcat >>confdefs.h <<_ACEOF
1920a0d3b6eaSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1921a0d3b6eaSmrg_ACEOF
1922a0d3b6eaSmrg
1923a0d3b6eaSmrgcat >>confdefs.h <<_ACEOF
1924a0d3b6eaSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
1925a0d3b6eaSmrg_ACEOF
1926a0d3b6eaSmrg
1927a0d3b6eaSmrgcat >>confdefs.h <<_ACEOF
1928a0d3b6eaSmrg#define PACKAGE_STRING "$PACKAGE_STRING"
1929a0d3b6eaSmrg_ACEOF
1930a0d3b6eaSmrg
1931a0d3b6eaSmrgcat >>confdefs.h <<_ACEOF
1932a0d3b6eaSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1933a0d3b6eaSmrg_ACEOF
1934a0d3b6eaSmrg
1935f8a31ee4Smrgcat >>confdefs.h <<_ACEOF
1936f8a31ee4Smrg#define PACKAGE_URL "$PACKAGE_URL"
1937f8a31ee4Smrg_ACEOF
1938f8a31ee4Smrg
1939a0d3b6eaSmrg
1940a0d3b6eaSmrg# Let the site file select an alternate cache file if it wants to.
194162df5ad0Smrg# Prefer an explicitly selected file to automatically selected ones.
194262df5ad0Smrgac_site_file1=NONE
194362df5ad0Smrgac_site_file2=NONE
1944a0d3b6eaSmrgif test -n "$CONFIG_SITE"; then
19454def10e6Smrg  # We do not want a PATH search for config.site.
19464def10e6Smrg  case $CONFIG_SITE in #((
19474def10e6Smrg    -*)  ac_site_file1=./$CONFIG_SITE;;
19484def10e6Smrg    */*) ac_site_file1=$CONFIG_SITE;;
19494def10e6Smrg    *)   ac_site_file1=./$CONFIG_SITE;;
19504def10e6Smrg  esac
1951a0d3b6eaSmrgelif test "x$prefix" != xNONE; then
195262df5ad0Smrg  ac_site_file1=$prefix/share/config.site
195362df5ad0Smrg  ac_site_file2=$prefix/etc/config.site
1954a0d3b6eaSmrgelse
195562df5ad0Smrg  ac_site_file1=$ac_default_prefix/share/config.site
195662df5ad0Smrg  ac_site_file2=$ac_default_prefix/etc/config.site
1957a0d3b6eaSmrgfi
195862df5ad0Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
1959a0d3b6eaSmrgdo
196062df5ad0Smrg  test "x$ac_site_file" = xNONE && continue
1961f8a31ee4Smrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1962f8a31ee4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
196362df5ad0Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1964a0d3b6eaSmrg    sed 's/^/| /' "$ac_site_file" >&5
19654def10e6Smrg    . "$ac_site_file" \
19664def10e6Smrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19674def10e6Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19684def10e6Smrgas_fn_error $? "failed to load site script $ac_site_file
19694def10e6SmrgSee \`config.log' for more details" "$LINENO" 5; }
1970a0d3b6eaSmrg  fi
1971a0d3b6eaSmrgdone
1972a0d3b6eaSmrg
1973a0d3b6eaSmrgif test -r "$cache_file"; then
1974f8a31ee4Smrg  # Some versions of bash will fail to source /dev/null (special files
1975f8a31ee4Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1976f8a31ee4Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1977f8a31ee4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
197862df5ad0Smrg$as_echo "$as_me: loading cache $cache_file" >&6;}
1979a0d3b6eaSmrg    case $cache_file in
1980a0d3b6eaSmrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1981a0d3b6eaSmrg      *)                      . "./$cache_file";;
1982a0d3b6eaSmrg    esac
1983a0d3b6eaSmrg  fi
1984a0d3b6eaSmrgelse
1985f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
198662df5ad0Smrg$as_echo "$as_me: creating cache $cache_file" >&6;}
1987a0d3b6eaSmrg  >$cache_file
1988a0d3b6eaSmrgfi
1989a0d3b6eaSmrg
1990a0d3b6eaSmrg# Check that the precious variables saved in the cache have kept the same
1991a0d3b6eaSmrg# value.
1992a0d3b6eaSmrgac_cache_corrupted=false
1993a0d3b6eaSmrgfor ac_var in $ac_precious_vars; do
1994a0d3b6eaSmrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1995a0d3b6eaSmrg  eval ac_new_set=\$ac_env_${ac_var}_set
1996a0d3b6eaSmrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1997a0d3b6eaSmrg  eval ac_new_val=\$ac_env_${ac_var}_value
1998a0d3b6eaSmrg  case $ac_old_set,$ac_new_set in
1999a0d3b6eaSmrg    set,)
2000f8a31ee4Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
200162df5ad0Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2002a0d3b6eaSmrg      ac_cache_corrupted=: ;;
2003a0d3b6eaSmrg    ,set)
2004f8a31ee4Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
200562df5ad0Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2006a0d3b6eaSmrg      ac_cache_corrupted=: ;;
2007a0d3b6eaSmrg    ,);;
2008a0d3b6eaSmrg    *)
2009a0d3b6eaSmrg      if test "x$ac_old_val" != "x$ac_new_val"; then
201062df5ad0Smrg	# differences in whitespace do not lead to failure.
201162df5ad0Smrg	ac_old_val_w=`echo x $ac_old_val`
201262df5ad0Smrg	ac_new_val_w=`echo x $ac_new_val`
201362df5ad0Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2014f8a31ee4Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
201562df5ad0Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
201662df5ad0Smrg	  ac_cache_corrupted=:
201762df5ad0Smrg	else
2018f8a31ee4Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
201962df5ad0Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
202062df5ad0Smrg	  eval $ac_var=\$ac_old_val
202162df5ad0Smrg	fi
2022f8a31ee4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
202362df5ad0Smrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2024f8a31ee4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
202562df5ad0Smrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2026a0d3b6eaSmrg      fi;;
2027a0d3b6eaSmrg  esac
2028a0d3b6eaSmrg  # Pass precious variables to config.status.
2029a0d3b6eaSmrg  if test "$ac_new_set" = set; then
2030a0d3b6eaSmrg    case $ac_new_val in
203162df5ad0Smrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2032a0d3b6eaSmrg    *) ac_arg=$ac_var=$ac_new_val ;;
2033a0d3b6eaSmrg    esac
2034a0d3b6eaSmrg    case " $ac_configure_args " in
2035a0d3b6eaSmrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2036f8a31ee4Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2037a0d3b6eaSmrg    esac
2038a0d3b6eaSmrg  fi
2039a0d3b6eaSmrgdone
2040a0d3b6eaSmrgif $ac_cache_corrupted; then
2041f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
204262df5ad0Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2043f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
204462df5ad0Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
20454def10e6Smrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2046a0d3b6eaSmrgfi
2047f8a31ee4Smrg## -------------------- ##
2048f8a31ee4Smrg## Main body of script. ##
2049f8a31ee4Smrg## -------------------- ##
2050a0d3b6eaSmrg
2051a0d3b6eaSmrgac_ext=c
2052a0d3b6eaSmrgac_cpp='$CPP $CPPFLAGS'
2053a0d3b6eaSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2054a0d3b6eaSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2055a0d3b6eaSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2056a0d3b6eaSmrg
2057a0d3b6eaSmrg
2058f8a31ee4Smrgam__api_version='1.11'
2059a0d3b6eaSmrg
2060a0d3b6eaSmrgac_aux_dir=
2061a0d3b6eaSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
20624def10e6Smrg  if test -f "$ac_dir/install-sh"; then
20634def10e6Smrg    ac_aux_dir=$ac_dir
20644def10e6Smrg    ac_install_sh="$ac_aux_dir/install-sh -c"
20654def10e6Smrg    break
20664def10e6Smrg  elif test -f "$ac_dir/install.sh"; then
20674def10e6Smrg    ac_aux_dir=$ac_dir
20684def10e6Smrg    ac_install_sh="$ac_aux_dir/install.sh -c"
20694def10e6Smrg    break
20704def10e6Smrg  elif test -f "$ac_dir/shtool"; then
20714def10e6Smrg    ac_aux_dir=$ac_dir
20724def10e6Smrg    ac_install_sh="$ac_aux_dir/shtool install -c"
20734def10e6Smrg    break
20744def10e6Smrg  fi
2075a0d3b6eaSmrgdone
2076a0d3b6eaSmrgif test -z "$ac_aux_dir"; then
20774def10e6Smrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2078a0d3b6eaSmrgfi
2079a0d3b6eaSmrg
2080a0d3b6eaSmrg# These three variables are undocumented and unsupported,
2081a0d3b6eaSmrg# and are intended to be withdrawn in a future Autoconf release.
2082a0d3b6eaSmrg# They can cause serious problems if a builder's source tree is in a directory
2083a0d3b6eaSmrg# whose full name contains unusual characters.
2084a0d3b6eaSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2085a0d3b6eaSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2086a0d3b6eaSmrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2087a0d3b6eaSmrg
2088a0d3b6eaSmrg
2089a0d3b6eaSmrg# Find a good install program.  We prefer a C program (faster),
2090a0d3b6eaSmrg# so one script is as good as another.  But avoid the broken or
2091a0d3b6eaSmrg# incompatible versions:
2092a0d3b6eaSmrg# SysV /etc/install, /usr/sbin/install
2093a0d3b6eaSmrg# SunOS /usr/etc/install
2094a0d3b6eaSmrg# IRIX /sbin/install
2095a0d3b6eaSmrg# AIX /bin/install
2096a0d3b6eaSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs
2097a0d3b6eaSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2098a0d3b6eaSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2099a0d3b6eaSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2100a0d3b6eaSmrg# OS/2's system install, which has a completely different semantic
2101a0d3b6eaSmrg# ./install, which can be erroneously created by make from ./install.sh.
210262df5ad0Smrg# Reject install programs that cannot install multiple files.
2103f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
210462df5ad0Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
2105a0d3b6eaSmrgif test -z "$INSTALL"; then
21064def10e6Smrgif ${ac_cv_path_install+:} false; then :
210762df5ad0Smrg  $as_echo_n "(cached) " >&6
2108a0d3b6eaSmrgelse
2109a0d3b6eaSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110a0d3b6eaSmrgfor as_dir in $PATH
2111a0d3b6eaSmrgdo
2112a0d3b6eaSmrg  IFS=$as_save_IFS
2113a0d3b6eaSmrg  test -z "$as_dir" && as_dir=.
2114f8a31ee4Smrg    # Account for people who put trailing slashes in PATH elements.
2115f8a31ee4Smrgcase $as_dir/ in #((
2116f8a31ee4Smrg  ./ | .// | /[cC]/* | \
2117a0d3b6eaSmrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2118f8a31ee4Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2119a0d3b6eaSmrg  /usr/ucb/* ) ;;
2120a0d3b6eaSmrg  *)
2121a0d3b6eaSmrg    # OSF1 and SCO ODT 3.0 have their own names for install.
2122a0d3b6eaSmrg    # Don't use installbsd from OSF since it installs stuff as root
2123a0d3b6eaSmrg    # by default.
2124a0d3b6eaSmrg    for ac_prog in ginstall scoinst install; do
2125a0d3b6eaSmrg      for ac_exec_ext in '' $ac_executable_extensions; do
2126a0d3b6eaSmrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2127a0d3b6eaSmrg	  if test $ac_prog = install &&
2128a0d3b6eaSmrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2129a0d3b6eaSmrg	    # AIX install.  It has an incompatible calling convention.
2130a0d3b6eaSmrg	    :
2131a0d3b6eaSmrg	  elif test $ac_prog = install &&
2132a0d3b6eaSmrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2133a0d3b6eaSmrg	    # program-specific install script used by HP pwplus--don't use.
2134a0d3b6eaSmrg	    :
2135a0d3b6eaSmrg	  else
213662df5ad0Smrg	    rm -rf conftest.one conftest.two conftest.dir
213762df5ad0Smrg	    echo one > conftest.one
213862df5ad0Smrg	    echo two > conftest.two
213962df5ad0Smrg	    mkdir conftest.dir
214062df5ad0Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
214162df5ad0Smrg	      test -s conftest.one && test -s conftest.two &&
214262df5ad0Smrg	      test -s conftest.dir/conftest.one &&
214362df5ad0Smrg	      test -s conftest.dir/conftest.two
214462df5ad0Smrg	    then
214562df5ad0Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
214662df5ad0Smrg	      break 3
214762df5ad0Smrg	    fi
2148a0d3b6eaSmrg	  fi
2149a0d3b6eaSmrg	fi
2150a0d3b6eaSmrg      done
2151a0d3b6eaSmrg    done
2152a0d3b6eaSmrg    ;;
2153a0d3b6eaSmrgesac
215462df5ad0Smrg
2155f8a31ee4Smrg  done
2156a0d3b6eaSmrgIFS=$as_save_IFS
2157a0d3b6eaSmrg
215862df5ad0Smrgrm -rf conftest.one conftest.two conftest.dir
2159a0d3b6eaSmrg
2160a0d3b6eaSmrgfi
2161a0d3b6eaSmrg  if test "${ac_cv_path_install+set}" = set; then
2162a0d3b6eaSmrg    INSTALL=$ac_cv_path_install
2163a0d3b6eaSmrg  else
2164a0d3b6eaSmrg    # As a last resort, use the slow shell script.  Don't cache a
2165a0d3b6eaSmrg    # value for INSTALL within a source directory, because that will
2166a0d3b6eaSmrg    # break other packages using the cache if that directory is
2167a0d3b6eaSmrg    # removed, or if the value is a relative name.
2168a0d3b6eaSmrg    INSTALL=$ac_install_sh
2169a0d3b6eaSmrg  fi
2170a0d3b6eaSmrgfi
2171f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
217262df5ad0Smrg$as_echo "$INSTALL" >&6; }
2173a0d3b6eaSmrg
2174a0d3b6eaSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2175a0d3b6eaSmrg# It thinks the first close brace ends the variable substitution.
2176a0d3b6eaSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2177a0d3b6eaSmrg
2178a0d3b6eaSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2179a0d3b6eaSmrg
2180a0d3b6eaSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2181a0d3b6eaSmrg
2182f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
218362df5ad0Smrg$as_echo_n "checking whether build environment is sane... " >&6; }
2184a0d3b6eaSmrg# Just in case
2185a0d3b6eaSmrgsleep 1
2186a0d3b6eaSmrgecho timestamp > conftest.file
2187f8a31ee4Smrg# Reject unsafe characters in $srcdir or the absolute working directory
2188f8a31ee4Smrg# name.  Accept space and tab only in the latter.
2189f8a31ee4Smrgam_lf='
2190f8a31ee4Smrg'
2191f8a31ee4Smrgcase `pwd` in
2192f8a31ee4Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
21934def10e6Smrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2194f8a31ee4Smrgesac
2195f8a31ee4Smrgcase $srcdir in
2196f8a31ee4Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
21974def10e6Smrg    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2198f8a31ee4Smrgesac
2199f8a31ee4Smrg
2200a0d3b6eaSmrg# Do `set' in a subshell so we don't clobber the current shell's
2201a0d3b6eaSmrg# arguments.  Must try -L first in case configure is actually a
2202a0d3b6eaSmrg# symlink; some systems play weird games with the mod time of symlinks
2203a0d3b6eaSmrg# (eg FreeBSD returns the mod time of the symlink's containing
2204a0d3b6eaSmrg# directory).
2205a0d3b6eaSmrgif (
2206f8a31ee4Smrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2207a0d3b6eaSmrg   if test "$*" = "X"; then
2208a0d3b6eaSmrg      # -L didn't work.
2209f8a31ee4Smrg      set X `ls -t "$srcdir/configure" conftest.file`
2210a0d3b6eaSmrg   fi
2211a0d3b6eaSmrg   rm -f conftest.file
2212a0d3b6eaSmrg   if test "$*" != "X $srcdir/configure conftest.file" \
2213a0d3b6eaSmrg      && test "$*" != "X conftest.file $srcdir/configure"; then
2214a0d3b6eaSmrg
2215a0d3b6eaSmrg      # If neither matched, then we have a broken ls.  This can happen
2216a0d3b6eaSmrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
2217a0d3b6eaSmrg      # broken ls alias from the environment.  This has actually
2218a0d3b6eaSmrg      # happened.  Such a system could not be considered "sane".
22194def10e6Smrg      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2220f8a31ee4Smrgalias in your environment" "$LINENO" 5
2221a0d3b6eaSmrg   fi
2222a0d3b6eaSmrg
2223a0d3b6eaSmrg   test "$2" = conftest.file
2224a0d3b6eaSmrg   )
2225a0d3b6eaSmrgthen
2226a0d3b6eaSmrg   # Ok.
2227a0d3b6eaSmrg   :
2228a0d3b6eaSmrgelse
22294def10e6Smrg   as_fn_error $? "newly created file is older than distributed files!
2230f8a31ee4SmrgCheck your system clock" "$LINENO" 5
2231a0d3b6eaSmrgfi
2232f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
223362df5ad0Smrg$as_echo "yes" >&6; }
2234a0d3b6eaSmrgtest "$program_prefix" != NONE &&
2235a0d3b6eaSmrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2236a0d3b6eaSmrg# Use a double $ so make ignores it.
2237a0d3b6eaSmrgtest "$program_suffix" != NONE &&
2238a0d3b6eaSmrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
223962df5ad0Smrg# Double any \ or $.
2240a0d3b6eaSmrg# By default was `s,x,x', remove it if useless.
224162df5ad0Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
224262df5ad0Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2243a0d3b6eaSmrg
2244a0d3b6eaSmrg# expand $ac_aux_dir to an absolute path
2245a0d3b6eaSmrgam_aux_dir=`cd $ac_aux_dir && pwd`
2246a0d3b6eaSmrg
2247f8a31ee4Smrgif test x"${MISSING+set}" != xset; then
2248f8a31ee4Smrg  case $am_aux_dir in
2249f8a31ee4Smrg  *\ * | *\	*)
2250f8a31ee4Smrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2251f8a31ee4Smrg  *)
2252f8a31ee4Smrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2253f8a31ee4Smrg  esac
2254f8a31ee4Smrgfi
2255a0d3b6eaSmrg# Use eval to expand $SHELL
2256a0d3b6eaSmrgif eval "$MISSING --run true"; then
2257a0d3b6eaSmrg  am_missing_run="$MISSING --run "
2258a0d3b6eaSmrgelse
2259a0d3b6eaSmrg  am_missing_run=
2260f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
226162df5ad0Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2262a0d3b6eaSmrgfi
2263a0d3b6eaSmrg
2264f8a31ee4Smrgif test x"${install_sh}" != xset; then
2265f8a31ee4Smrg  case $am_aux_dir in
2266f8a31ee4Smrg  *\ * | *\	*)
2267f8a31ee4Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2268f8a31ee4Smrg  *)
2269f8a31ee4Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
2270f8a31ee4Smrg  esac
2271f8a31ee4Smrgfi
2272f8a31ee4Smrg
2273f8a31ee4Smrg# Installed binaries are usually stripped using `strip' when the user
2274f8a31ee4Smrg# run `make install-strip'.  However `strip' might not be the right
2275f8a31ee4Smrg# tool to use in cross-compilation environments, therefore Automake
2276f8a31ee4Smrg# will honor the `STRIP' environment variable to overrule this program.
2277f8a31ee4Smrgif test "$cross_compiling" != no; then
2278f8a31ee4Smrg  if test -n "$ac_tool_prefix"; then
2279f8a31ee4Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2280f8a31ee4Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
2281f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2282f8a31ee4Smrg$as_echo_n "checking for $ac_word... " >&6; }
22834def10e6Smrgif ${ac_cv_prog_STRIP+:} false; then :
2284f8a31ee4Smrg  $as_echo_n "(cached) " >&6
2285f8a31ee4Smrgelse
2286f8a31ee4Smrg  if test -n "$STRIP"; then
2287f8a31ee4Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2288f8a31ee4Smrgelse
2289f8a31ee4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290f8a31ee4Smrgfor as_dir in $PATH
2291f8a31ee4Smrgdo
2292f8a31ee4Smrg  IFS=$as_save_IFS
2293f8a31ee4Smrg  test -z "$as_dir" && as_dir=.
2294f8a31ee4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2295f8a31ee4Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2296f8a31ee4Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2297f8a31ee4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2298f8a31ee4Smrg    break 2
2299f8a31ee4Smrg  fi
2300f8a31ee4Smrgdone
2301f8a31ee4Smrg  done
2302f8a31ee4SmrgIFS=$as_save_IFS
2303f8a31ee4Smrg
2304f8a31ee4Smrgfi
2305f8a31ee4Smrgfi
2306f8a31ee4SmrgSTRIP=$ac_cv_prog_STRIP
2307f8a31ee4Smrgif test -n "$STRIP"; then
2308f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2309f8a31ee4Smrg$as_echo "$STRIP" >&6; }
2310f8a31ee4Smrgelse
2311f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2312f8a31ee4Smrg$as_echo "no" >&6; }
2313f8a31ee4Smrgfi
2314f8a31ee4Smrg
2315f8a31ee4Smrg
2316f8a31ee4Smrgfi
2317f8a31ee4Smrgif test -z "$ac_cv_prog_STRIP"; then
2318f8a31ee4Smrg  ac_ct_STRIP=$STRIP
2319f8a31ee4Smrg  # Extract the first word of "strip", so it can be a program name with args.
2320f8a31ee4Smrgset dummy strip; ac_word=$2
2321f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2322f8a31ee4Smrg$as_echo_n "checking for $ac_word... " >&6; }
23234def10e6Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2324f8a31ee4Smrg  $as_echo_n "(cached) " >&6
2325f8a31ee4Smrgelse
2326f8a31ee4Smrg  if test -n "$ac_ct_STRIP"; then
2327f8a31ee4Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2328f8a31ee4Smrgelse
2329f8a31ee4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330f8a31ee4Smrgfor as_dir in $PATH
2331f8a31ee4Smrgdo
2332f8a31ee4Smrg  IFS=$as_save_IFS
2333f8a31ee4Smrg  test -z "$as_dir" && as_dir=.
2334f8a31ee4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2335f8a31ee4Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2336f8a31ee4Smrg    ac_cv_prog_ac_ct_STRIP="strip"
2337f8a31ee4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2338f8a31ee4Smrg    break 2
2339f8a31ee4Smrg  fi
2340f8a31ee4Smrgdone
2341f8a31ee4Smrg  done
2342f8a31ee4SmrgIFS=$as_save_IFS
2343f8a31ee4Smrg
2344f8a31ee4Smrgfi
2345f8a31ee4Smrgfi
2346f8a31ee4Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2347f8a31ee4Smrgif test -n "$ac_ct_STRIP"; then
2348f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2349f8a31ee4Smrg$as_echo "$ac_ct_STRIP" >&6; }
2350f8a31ee4Smrgelse
2351f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2352f8a31ee4Smrg$as_echo "no" >&6; }
2353f8a31ee4Smrgfi
2354f8a31ee4Smrg
2355f8a31ee4Smrg  if test "x$ac_ct_STRIP" = x; then
2356f8a31ee4Smrg    STRIP=":"
2357f8a31ee4Smrg  else
2358f8a31ee4Smrg    case $cross_compiling:$ac_tool_warned in
2359f8a31ee4Smrgyes:)
2360f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2361f8a31ee4Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2362f8a31ee4Smrgac_tool_warned=yes ;;
2363f8a31ee4Smrgesac
2364f8a31ee4Smrg    STRIP=$ac_ct_STRIP
2365f8a31ee4Smrg  fi
2366f8a31ee4Smrgelse
2367f8a31ee4Smrg  STRIP="$ac_cv_prog_STRIP"
2368f8a31ee4Smrgfi
2369f8a31ee4Smrg
2370f8a31ee4Smrgfi
2371f8a31ee4SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2372f8a31ee4Smrg
2373f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
237462df5ad0Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2375a0d3b6eaSmrgif test -z "$MKDIR_P"; then
23764def10e6Smrg  if ${ac_cv_path_mkdir+:} false; then :
237762df5ad0Smrg  $as_echo_n "(cached) " >&6
2378a0d3b6eaSmrgelse
2379a0d3b6eaSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380a0d3b6eaSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2381a0d3b6eaSmrgdo
2382a0d3b6eaSmrg  IFS=$as_save_IFS
2383a0d3b6eaSmrg  test -z "$as_dir" && as_dir=.
2384f8a31ee4Smrg    for ac_prog in mkdir gmkdir; do
2385a0d3b6eaSmrg	 for ac_exec_ext in '' $ac_executable_extensions; do
2386a0d3b6eaSmrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2387a0d3b6eaSmrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2388a0d3b6eaSmrg	     'mkdir (GNU coreutils) '* | \
2389a0d3b6eaSmrg	     'mkdir (coreutils) '* | \
2390a0d3b6eaSmrg	     'mkdir (fileutils) '4.1*)
2391a0d3b6eaSmrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2392a0d3b6eaSmrg	       break 3;;
2393a0d3b6eaSmrg	   esac
2394a0d3b6eaSmrg	 done
2395a0d3b6eaSmrg       done
2396f8a31ee4Smrg  done
2397a0d3b6eaSmrgIFS=$as_save_IFS
2398a0d3b6eaSmrg
2399a0d3b6eaSmrgfi
2400a0d3b6eaSmrg
2401f8a31ee4Smrg  test -d ./--version && rmdir ./--version
2402a0d3b6eaSmrg  if test "${ac_cv_path_mkdir+set}" = set; then
2403a0d3b6eaSmrg    MKDIR_P="$ac_cv_path_mkdir -p"
2404a0d3b6eaSmrg  else
2405a0d3b6eaSmrg    # As a last resort, use the slow shell script.  Don't cache a
2406a0d3b6eaSmrg    # value for MKDIR_P within a source directory, because that will
2407a0d3b6eaSmrg    # break other packages using the cache if that directory is
2408a0d3b6eaSmrg    # removed, or if the value is a relative name.
2409a0d3b6eaSmrg    MKDIR_P="$ac_install_sh -d"
2410a0d3b6eaSmrg  fi
2411a0d3b6eaSmrgfi
2412f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
241362df5ad0Smrg$as_echo "$MKDIR_P" >&6; }
2414a0d3b6eaSmrg
2415a0d3b6eaSmrgmkdir_p="$MKDIR_P"
2416a0d3b6eaSmrgcase $mkdir_p in
2417a0d3b6eaSmrg  [\\/$]* | ?:[\\/]*) ;;
2418a0d3b6eaSmrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2419a0d3b6eaSmrgesac
2420a0d3b6eaSmrg
2421a0d3b6eaSmrgfor ac_prog in gawk mawk nawk awk
2422a0d3b6eaSmrgdo
2423a0d3b6eaSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
2424a0d3b6eaSmrgset dummy $ac_prog; ac_word=$2
2425f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
242662df5ad0Smrg$as_echo_n "checking for $ac_word... " >&6; }
24274def10e6Smrgif ${ac_cv_prog_AWK+:} false; then :
242862df5ad0Smrg  $as_echo_n "(cached) " >&6
2429a0d3b6eaSmrgelse
2430a0d3b6eaSmrg  if test -n "$AWK"; then
2431a0d3b6eaSmrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2432a0d3b6eaSmrgelse
2433a0d3b6eaSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434a0d3b6eaSmrgfor as_dir in $PATH
2435a0d3b6eaSmrgdo
2436a0d3b6eaSmrg  IFS=$as_save_IFS
2437a0d3b6eaSmrg  test -z "$as_dir" && as_dir=.
2438f8a31ee4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2439a0d3b6eaSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2440a0d3b6eaSmrg    ac_cv_prog_AWK="$ac_prog"
2441f8a31ee4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2442a0d3b6eaSmrg    break 2
2443a0d3b6eaSmrg  fi
2444a0d3b6eaSmrgdone
2445f8a31ee4Smrg  done
2446a0d3b6eaSmrgIFS=$as_save_IFS
2447a0d3b6eaSmrg
2448a0d3b6eaSmrgfi
2449a0d3b6eaSmrgfi
2450a0d3b6eaSmrgAWK=$ac_cv_prog_AWK
2451a0d3b6eaSmrgif test -n "$AWK"; then
2452f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
245362df5ad0Smrg$as_echo "$AWK" >&6; }
2454a0d3b6eaSmrgelse
2455f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
245662df5ad0Smrg$as_echo "no" >&6; }
2457a0d3b6eaSmrgfi
2458a0d3b6eaSmrg
2459a0d3b6eaSmrg
2460a0d3b6eaSmrg  test -n "$AWK" && break
2461a0d3b6eaSmrgdone
2462a0d3b6eaSmrg
2463f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
246462df5ad0Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
246562df5ad0Smrgset x ${MAKE-make}
246662df5ad0Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
24674def10e6Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
246862df5ad0Smrg  $as_echo_n "(cached) " >&6
2469a0d3b6eaSmrgelse
2470a0d3b6eaSmrg  cat >conftest.make <<\_ACEOF
2471a0d3b6eaSmrgSHELL = /bin/sh
2472a0d3b6eaSmrgall:
2473a0d3b6eaSmrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
2474a0d3b6eaSmrg_ACEOF
24754def10e6Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2476a0d3b6eaSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
2477a0d3b6eaSmrg  *@@@%%%=?*=@@@%%%*)
2478a0d3b6eaSmrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
2479a0d3b6eaSmrg  *)
2480a0d3b6eaSmrg    eval ac_cv_prog_make_${ac_make}_set=no;;
2481a0d3b6eaSmrgesac
2482a0d3b6eaSmrgrm -f conftest.make
2483a0d3b6eaSmrgfi
2484a0d3b6eaSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2485f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
248662df5ad0Smrg$as_echo "yes" >&6; }
2487a0d3b6eaSmrg  SET_MAKE=
2488a0d3b6eaSmrgelse
2489f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
249062df5ad0Smrg$as_echo "no" >&6; }
2491a0d3b6eaSmrg  SET_MAKE="MAKE=${MAKE-make}"
2492a0d3b6eaSmrgfi
2493a0d3b6eaSmrg
2494a0d3b6eaSmrgrm -rf .tst 2>/dev/null
2495a0d3b6eaSmrgmkdir .tst 2>/dev/null
2496a0d3b6eaSmrgif test -d .tst; then
2497a0d3b6eaSmrg  am__leading_dot=.
2498a0d3b6eaSmrgelse
2499a0d3b6eaSmrg  am__leading_dot=_
2500a0d3b6eaSmrgfi
2501a0d3b6eaSmrgrmdir .tst 2>/dev/null
2502a0d3b6eaSmrg
2503a0d3b6eaSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
2504a0d3b6eaSmrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2505a0d3b6eaSmrg  # is not polluted with repeated "-I."
2506a0d3b6eaSmrg  am__isrc=' -I$(srcdir)'
2507a0d3b6eaSmrg  # test to see if srcdir already configured
2508a0d3b6eaSmrg  if test -f $srcdir/config.status; then
25094def10e6Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2510a0d3b6eaSmrg  fi
2511a0d3b6eaSmrgfi
2512a0d3b6eaSmrg
2513a0d3b6eaSmrg# test whether we have cygpath
2514a0d3b6eaSmrgif test -z "$CYGPATH_W"; then
2515a0d3b6eaSmrg  if (cygpath --version) >/dev/null 2>/dev/null; then
2516a0d3b6eaSmrg    CYGPATH_W='cygpath -w'
2517a0d3b6eaSmrg  else
2518a0d3b6eaSmrg    CYGPATH_W=echo
2519a0d3b6eaSmrg  fi
2520a0d3b6eaSmrgfi
2521a0d3b6eaSmrg
2522a0d3b6eaSmrg
2523a0d3b6eaSmrg# Define the identity of the package.
2524a0d3b6eaSmrg PACKAGE='xrandr'
25254def10e6Smrg VERSION='1.3.4'
2526a0d3b6eaSmrg
2527a0d3b6eaSmrg
2528a0d3b6eaSmrgcat >>confdefs.h <<_ACEOF
2529a0d3b6eaSmrg#define PACKAGE "$PACKAGE"
2530a0d3b6eaSmrg_ACEOF
2531a0d3b6eaSmrg
2532a0d3b6eaSmrg
2533a0d3b6eaSmrgcat >>confdefs.h <<_ACEOF
2534a0d3b6eaSmrg#define VERSION "$VERSION"
2535a0d3b6eaSmrg_ACEOF
2536a0d3b6eaSmrg
2537a0d3b6eaSmrg# Some tools Automake needs.
2538a0d3b6eaSmrg
2539a0d3b6eaSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2540a0d3b6eaSmrg
2541a0d3b6eaSmrg
2542a0d3b6eaSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2543a0d3b6eaSmrg
2544a0d3b6eaSmrg
2545a0d3b6eaSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2546a0d3b6eaSmrg
2547a0d3b6eaSmrg
2548a0d3b6eaSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2549a0d3b6eaSmrg
2550a0d3b6eaSmrg
2551a0d3b6eaSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2552a0d3b6eaSmrg
2553a0d3b6eaSmrg# We need awk for the "check" target.  The system "awk" is bad on
2554a0d3b6eaSmrg# some platforms.
2555a0d3b6eaSmrg# Always define AMTAR for backward compatibility.
2556a0d3b6eaSmrg
2557a0d3b6eaSmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
2558a0d3b6eaSmrg
2559a0d3b6eaSmrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2560a0d3b6eaSmrg
2561a0d3b6eaSmrg
2562a0d3b6eaSmrg
2563a0d3b6eaSmrg
2564a0d3b6eaSmrg
2565f8a31ee4Smrg
2566f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
256762df5ad0Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2568a0d3b6eaSmrg    # Check whether --enable-maintainer-mode was given.
2569f8a31ee4Smrgif test "${enable_maintainer_mode+set}" = set; then :
2570a0d3b6eaSmrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2571a0d3b6eaSmrgelse
2572a0d3b6eaSmrg  USE_MAINTAINER_MODE=no
2573a0d3b6eaSmrgfi
2574a0d3b6eaSmrg
2575f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
257662df5ad0Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
2577a0d3b6eaSmrg   if test $USE_MAINTAINER_MODE = yes; then
2578a0d3b6eaSmrg  MAINTAINER_MODE_TRUE=
2579a0d3b6eaSmrg  MAINTAINER_MODE_FALSE='#'
2580a0d3b6eaSmrgelse
2581a0d3b6eaSmrg  MAINTAINER_MODE_TRUE='#'
2582a0d3b6eaSmrg  MAINTAINER_MODE_FALSE=
2583a0d3b6eaSmrgfi
2584a0d3b6eaSmrg
2585a0d3b6eaSmrg  MAINT=$MAINTAINER_MODE_TRUE
2586a0d3b6eaSmrg
2587a0d3b6eaSmrg
2588a0d3b6eaSmrg
25894def10e6Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2590f8a31ee4Smrg
259162df5ad0Smrg
259262df5ad0Smrg
259362770414Smrg
259462770414Smrg
259562770414Smrg
259662770414Smrg
259762770414Smrg
259862770414Smrg
259962770414Smrg
260062770414Smrg
2601f8a31ee4SmrgDEPDIR="${am__leading_dot}deps"
2602f8a31ee4Smrg
2603f8a31ee4Smrgac_config_commands="$ac_config_commands depfiles"
260462df5ad0Smrg
260562df5ad0Smrg
2606f8a31ee4Smrgam_make=${MAKE-make}
2607f8a31ee4Smrgcat > confinc << 'END'
2608f8a31ee4Smrgam__doit:
2609f8a31ee4Smrg	@echo this is the am__doit target
2610f8a31ee4Smrg.PHONY: am__doit
2611f8a31ee4SmrgEND
2612f8a31ee4Smrg# If we don't find an include directive, just comment out the code.
2613f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2614f8a31ee4Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
2615f8a31ee4Smrgam__include="#"
2616f8a31ee4Smrgam__quote=
2617f8a31ee4Smrg_am_result=none
2618f8a31ee4Smrg# First try GNU make style include.
2619f8a31ee4Smrgecho "include confinc" > confmf
2620f8a31ee4Smrg# Ignore all kinds of additional output from `make'.
2621f8a31ee4Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
2622f8a31ee4Smrg*the\ am__doit\ target*)
2623f8a31ee4Smrg  am__include=include
2624f8a31ee4Smrg  am__quote=
2625f8a31ee4Smrg  _am_result=GNU
2626f8a31ee4Smrg  ;;
2627f8a31ee4Smrgesac
2628f8a31ee4Smrg# Now try BSD make style include.
2629f8a31ee4Smrgif test "$am__include" = "#"; then
2630f8a31ee4Smrg   echo '.include "confinc"' > confmf
2631f8a31ee4Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
2632f8a31ee4Smrg   *the\ am__doit\ target*)
2633f8a31ee4Smrg     am__include=.include
2634f8a31ee4Smrg     am__quote="\""
2635f8a31ee4Smrg     _am_result=BSD
2636f8a31ee4Smrg     ;;
2637f8a31ee4Smrg   esac
2638f8a31ee4Smrgfi
2639f8a31ee4Smrg
2640f8a31ee4Smrg
2641f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2642f8a31ee4Smrg$as_echo "$_am_result" >&6; }
2643f8a31ee4Smrgrm -f confinc confmf
2644f8a31ee4Smrg
2645f8a31ee4Smrg# Check whether --enable-dependency-tracking was given.
2646f8a31ee4Smrgif test "${enable_dependency_tracking+set}" = set; then :
2647f8a31ee4Smrg  enableval=$enable_dependency_tracking;
2648f8a31ee4Smrgfi
2649f8a31ee4Smrg
2650f8a31ee4Smrgif test "x$enable_dependency_tracking" != xno; then
2651f8a31ee4Smrg  am_depcomp="$ac_aux_dir/depcomp"
2652f8a31ee4Smrg  AMDEPBACKSLASH='\'
2653f8a31ee4Smrgfi
2654f8a31ee4Smrg if test "x$enable_dependency_tracking" != xno; then
2655f8a31ee4Smrg  AMDEP_TRUE=
2656f8a31ee4Smrg  AMDEP_FALSE='#'
2657f8a31ee4Smrgelse
2658f8a31ee4Smrg  AMDEP_TRUE='#'
2659f8a31ee4Smrg  AMDEP_FALSE=
2660f8a31ee4Smrgfi
2661a0d3b6eaSmrg
2662a0d3b6eaSmrg
2663a0d3b6eaSmrgac_ext=c
2664a0d3b6eaSmrgac_cpp='$CPP $CPPFLAGS'
2665a0d3b6eaSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2666a0d3b6eaSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2667a0d3b6eaSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2668a0d3b6eaSmrgif test -n "$ac_tool_prefix"; then
2669a0d3b6eaSmrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2670a0d3b6eaSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
2671f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
267262df5ad0Smrg$as_echo_n "checking for $ac_word... " >&6; }
26734def10e6Smrgif ${ac_cv_prog_CC+:} false; then :
267462df5ad0Smrg  $as_echo_n "(cached) " >&6
2675a0d3b6eaSmrgelse
2676a0d3b6eaSmrg  if test -n "$CC"; then
2677a0d3b6eaSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2678a0d3b6eaSmrgelse
2679a0d3b6eaSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680a0d3b6eaSmrgfor as_dir in $PATH
2681a0d3b6eaSmrgdo
2682a0d3b6eaSmrg  IFS=$as_save_IFS
2683a0d3b6eaSmrg  test -z "$as_dir" && as_dir=.
2684f8a31ee4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2685a0d3b6eaSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2686a0d3b6eaSmrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2687f8a31ee4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2688a0d3b6eaSmrg    break 2
2689a0d3b6eaSmrg  fi
2690a0d3b6eaSmrgdone
2691f8a31ee4Smrg  done
2692a0d3b6eaSmrgIFS=$as_save_IFS
2693a0d3b6eaSmrg
2694a0d3b6eaSmrgfi
2695a0d3b6eaSmrgfi
2696a0d3b6eaSmrgCC=$ac_cv_prog_CC
2697a0d3b6eaSmrgif test -n "$CC"; then
2698f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
269962df5ad0Smrg$as_echo "$CC" >&6; }
2700a0d3b6eaSmrgelse
2701f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
270262df5ad0Smrg$as_echo "no" >&6; }
2703a0d3b6eaSmrgfi
2704a0d3b6eaSmrg
2705a0d3b6eaSmrg
2706a0d3b6eaSmrgfi
2707a0d3b6eaSmrgif test -z "$ac_cv_prog_CC"; then
2708a0d3b6eaSmrg  ac_ct_CC=$CC
2709a0d3b6eaSmrg  # Extract the first word of "gcc", so it can be a program name with args.
2710a0d3b6eaSmrgset dummy gcc; ac_word=$2
2711f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
271262df5ad0Smrg$as_echo_n "checking for $ac_word... " >&6; }
27134def10e6Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
271462df5ad0Smrg  $as_echo_n "(cached) " >&6
2715a0d3b6eaSmrgelse
2716a0d3b6eaSmrg  if test -n "$ac_ct_CC"; then
2717a0d3b6eaSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2718a0d3b6eaSmrgelse
2719a0d3b6eaSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720a0d3b6eaSmrgfor as_dir in $PATH
2721a0d3b6eaSmrgdo
2722a0d3b6eaSmrg  IFS=$as_save_IFS
2723a0d3b6eaSmrg  test -z "$as_dir" && as_dir=.
2724f8a31ee4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2725a0d3b6eaSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2726a0d3b6eaSmrg    ac_cv_prog_ac_ct_CC="gcc"
2727f8a31ee4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2728a0d3b6eaSmrg    break 2
2729a0d3b6eaSmrg  fi
2730a0d3b6eaSmrgdone
2731f8a31ee4Smrg  done
2732a0d3b6eaSmrgIFS=$as_save_IFS
2733a0d3b6eaSmrg
2734a0d3b6eaSmrgfi
2735a0d3b6eaSmrgfi
2736a0d3b6eaSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2737a0d3b6eaSmrgif test -n "$ac_ct_CC"; then
2738f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
273962df5ad0Smrg$as_echo "$ac_ct_CC" >&6; }
2740a0d3b6eaSmrgelse
2741f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
274262df5ad0Smrg$as_echo "no" >&6; }
2743a0d3b6eaSmrgfi
2744a0d3b6eaSmrg
2745a0d3b6eaSmrg  if test "x$ac_ct_CC" = x; then
2746a0d3b6eaSmrg    CC=""
2747a0d3b6eaSmrg  else
2748a0d3b6eaSmrg    case $cross_compiling:$ac_tool_warned in
2749a0d3b6eaSmrgyes:)
2750f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
275162df5ad0Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2752a0d3b6eaSmrgac_tool_warned=yes ;;
2753a0d3b6eaSmrgesac
2754a0d3b6eaSmrg    CC=$ac_ct_CC
2755a0d3b6eaSmrg  fi
2756a0d3b6eaSmrgelse
2757a0d3b6eaSmrg  CC="$ac_cv_prog_CC"
2758a0d3b6eaSmrgfi
2759a0d3b6eaSmrg
2760a0d3b6eaSmrgif test -z "$CC"; then
2761a0d3b6eaSmrg          if test -n "$ac_tool_prefix"; then
2762a0d3b6eaSmrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2763a0d3b6eaSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2
2764f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
276562df5ad0Smrg$as_echo_n "checking for $ac_word... " >&6; }
27664def10e6Smrgif ${ac_cv_prog_CC+:} false; then :
276762df5ad0Smrg  $as_echo_n "(cached) " >&6
2768a0d3b6eaSmrgelse
2769a0d3b6eaSmrg  if test -n "$CC"; then
2770a0d3b6eaSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2771a0d3b6eaSmrgelse
2772a0d3b6eaSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773a0d3b6eaSmrgfor as_dir in $PATH
2774a0d3b6eaSmrgdo
2775a0d3b6eaSmrg  IFS=$as_save_IFS
2776a0d3b6eaSmrg  test -z "$as_dir" && as_dir=.
2777f8a31ee4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2778a0d3b6eaSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2779a0d3b6eaSmrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
2780f8a31ee4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2781a0d3b6eaSmrg    break 2
2782a0d3b6eaSmrg  fi
2783a0d3b6eaSmrgdone
2784f8a31ee4Smrg  done
2785a0d3b6eaSmrgIFS=$as_save_IFS
2786a0d3b6eaSmrg
2787a0d3b6eaSmrgfi
2788a0d3b6eaSmrgfi
2789a0d3b6eaSmrgCC=$ac_cv_prog_CC
2790a0d3b6eaSmrgif test -n "$CC"; then
2791f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
279262df5ad0Smrg$as_echo "$CC" >&6; }
2793a0d3b6eaSmrgelse
2794f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
279562df5ad0Smrg$as_echo "no" >&6; }
2796a0d3b6eaSmrgfi
2797a0d3b6eaSmrg
2798a0d3b6eaSmrg
2799a0d3b6eaSmrg  fi
2800a0d3b6eaSmrgfi
2801a0d3b6eaSmrgif test -z "$CC"; then
2802a0d3b6eaSmrg  # Extract the first word of "cc", so it can be a program name with args.
2803a0d3b6eaSmrgset dummy cc; ac_word=$2
2804f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
280562df5ad0Smrg$as_echo_n "checking for $ac_word... " >&6; }
28064def10e6Smrgif ${ac_cv_prog_CC+:} false; then :
280762df5ad0Smrg  $as_echo_n "(cached) " >&6
2808a0d3b6eaSmrgelse
2809a0d3b6eaSmrg  if test -n "$CC"; then
2810a0d3b6eaSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2811a0d3b6eaSmrgelse
2812a0d3b6eaSmrg  ac_prog_rejected=no
2813a0d3b6eaSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814a0d3b6eaSmrgfor as_dir in $PATH
2815a0d3b6eaSmrgdo
2816a0d3b6eaSmrg  IFS=$as_save_IFS
2817a0d3b6eaSmrg  test -z "$as_dir" && as_dir=.
2818f8a31ee4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2819a0d3b6eaSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2820a0d3b6eaSmrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2821a0d3b6eaSmrg       ac_prog_rejected=yes
2822a0d3b6eaSmrg       continue
2823a0d3b6eaSmrg     fi
2824a0d3b6eaSmrg    ac_cv_prog_CC="cc"
2825f8a31ee4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2826a0d3b6eaSmrg    break 2
2827a0d3b6eaSmrg  fi
2828a0d3b6eaSmrgdone
2829f8a31ee4Smrg  done
2830a0d3b6eaSmrgIFS=$as_save_IFS
2831a0d3b6eaSmrg
2832a0d3b6eaSmrgif test $ac_prog_rejected = yes; then
2833a0d3b6eaSmrg  # We found a bogon in the path, so make sure we never use it.
2834a0d3b6eaSmrg  set dummy $ac_cv_prog_CC
2835a0d3b6eaSmrg  shift
2836a0d3b6eaSmrg  if test $# != 0; then
2837a0d3b6eaSmrg    # We chose a different compiler from the bogus one.
2838a0d3b6eaSmrg    # However, it has the same basename, so the bogon will be chosen
2839a0d3b6eaSmrg    # first if we set CC to just the basename; use the full file name.
2840a0d3b6eaSmrg    shift
2841a0d3b6eaSmrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2842a0d3b6eaSmrg  fi
2843a0d3b6eaSmrgfi
2844a0d3b6eaSmrgfi
2845a0d3b6eaSmrgfi
2846a0d3b6eaSmrgCC=$ac_cv_prog_CC
2847a0d3b6eaSmrgif test -n "$CC"; then
2848f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
284962df5ad0Smrg$as_echo "$CC" >&6; }
2850a0d3b6eaSmrgelse
2851f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
285262df5ad0Smrg$as_echo "no" >&6; }
2853a0d3b6eaSmrgfi
2854a0d3b6eaSmrg
2855a0d3b6eaSmrg
2856a0d3b6eaSmrgfi
2857a0d3b6eaSmrgif test -z "$CC"; then
2858a0d3b6eaSmrg  if test -n "$ac_tool_prefix"; then
2859a0d3b6eaSmrg  for ac_prog in cl.exe
2860a0d3b6eaSmrg  do
2861a0d3b6eaSmrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2862a0d3b6eaSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
2863f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
286462df5ad0Smrg$as_echo_n "checking for $ac_word... " >&6; }
28654def10e6Smrgif ${ac_cv_prog_CC+:} false; then :
286662df5ad0Smrg  $as_echo_n "(cached) " >&6
2867a0d3b6eaSmrgelse
2868a0d3b6eaSmrg  if test -n "$CC"; then
2869a0d3b6eaSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2870a0d3b6eaSmrgelse
2871a0d3b6eaSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872a0d3b6eaSmrgfor as_dir in $PATH
2873a0d3b6eaSmrgdo
2874a0d3b6eaSmrg  IFS=$as_save_IFS
2875a0d3b6eaSmrg  test -z "$as_dir" && as_dir=.
2876f8a31ee4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2877a0d3b6eaSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2878a0d3b6eaSmrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2879f8a31ee4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2880a0d3b6eaSmrg    break 2
2881a0d3b6eaSmrg  fi
2882a0d3b6eaSmrgdone
2883f8a31ee4Smrg  done
2884a0d3b6eaSmrgIFS=$as_save_IFS
2885a0d3b6eaSmrg
2886a0d3b6eaSmrgfi
2887a0d3b6eaSmrgfi
2888a0d3b6eaSmrgCC=$ac_cv_prog_CC
2889a0d3b6eaSmrgif test -n "$CC"; then
2890f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
289162df5ad0Smrg$as_echo "$CC" >&6; }
2892a0d3b6eaSmrgelse
2893f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
289462df5ad0Smrg$as_echo "no" >&6; }
2895a0d3b6eaSmrgfi
2896a0d3b6eaSmrg
2897a0d3b6eaSmrg
2898a0d3b6eaSmrg    test -n "$CC" && break
2899a0d3b6eaSmrg  done
2900a0d3b6eaSmrgfi
2901a0d3b6eaSmrgif test -z "$CC"; then
2902a0d3b6eaSmrg  ac_ct_CC=$CC
2903a0d3b6eaSmrg  for ac_prog in cl.exe
2904a0d3b6eaSmrgdo
2905a0d3b6eaSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
2906a0d3b6eaSmrgset dummy $ac_prog; ac_word=$2
2907f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
290862df5ad0Smrg$as_echo_n "checking for $ac_word... " >&6; }
29094def10e6Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
291062df5ad0Smrg  $as_echo_n "(cached) " >&6
2911a0d3b6eaSmrgelse
2912a0d3b6eaSmrg  if test -n "$ac_ct_CC"; then
2913a0d3b6eaSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2914a0d3b6eaSmrgelse
2915a0d3b6eaSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916a0d3b6eaSmrgfor as_dir in $PATH
2917a0d3b6eaSmrgdo
2918a0d3b6eaSmrg  IFS=$as_save_IFS
2919a0d3b6eaSmrg  test -z "$as_dir" && as_dir=.
2920f8a31ee4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2921a0d3b6eaSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2922a0d3b6eaSmrg    ac_cv_prog_ac_ct_CC="$ac_prog"
2923f8a31ee4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2924a0d3b6eaSmrg    break 2
2925a0d3b6eaSmrg  fi
2926a0d3b6eaSmrgdone
2927f8a31ee4Smrg  done
2928a0d3b6eaSmrgIFS=$as_save_IFS
2929a0d3b6eaSmrg
2930a0d3b6eaSmrgfi
2931a0d3b6eaSmrgfi
2932a0d3b6eaSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2933a0d3b6eaSmrgif test -n "$ac_ct_CC"; then
2934f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
293562df5ad0Smrg$as_echo "$ac_ct_CC" >&6; }
2936a0d3b6eaSmrgelse
2937f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
293862df5ad0Smrg$as_echo "no" >&6; }
2939a0d3b6eaSmrgfi
2940a0d3b6eaSmrg
2941a0d3b6eaSmrg
2942a0d3b6eaSmrg  test -n "$ac_ct_CC" && break
2943a0d3b6eaSmrgdone
2944a0d3b6eaSmrg
2945a0d3b6eaSmrg  if test "x$ac_ct_CC" = x; then
2946a0d3b6eaSmrg    CC=""
2947a0d3b6eaSmrg  else
2948a0d3b6eaSmrg    case $cross_compiling:$ac_tool_warned in
2949a0d3b6eaSmrgyes:)
2950f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
295162df5ad0Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2952a0d3b6eaSmrgac_tool_warned=yes ;;
2953a0d3b6eaSmrgesac
2954a0d3b6eaSmrg    CC=$ac_ct_CC
2955a0d3b6eaSmrg  fi
2956a0d3b6eaSmrgfi
2957a0d3b6eaSmrg
2958a0d3b6eaSmrgfi
2959a0d3b6eaSmrg
2960a0d3b6eaSmrg
2961f8a31ee4Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
296262df5ad0Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29634def10e6Smrgas_fn_error $? "no acceptable C compiler found in \$PATH
29644def10e6SmrgSee \`config.log' for more details" "$LINENO" 5; }
2965a0d3b6eaSmrg
2966a0d3b6eaSmrg# Provide some information about the compiler.
2967f8a31ee4Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
296862df5ad0Smrgset X $ac_compile
296962df5ad0Smrgac_compiler=$2
2970f8a31ee4Smrgfor ac_option in --version -v -V -qversion; do
2971f8a31ee4Smrg  { { ac_try="$ac_compiler $ac_option >&5"
2972a0d3b6eaSmrgcase "(($ac_try" in
2973a0d3b6eaSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974a0d3b6eaSmrg  *) ac_try_echo=$ac_try;;
2975a0d3b6eaSmrgesac
2976f8a31ee4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2977f8a31ee4Smrg$as_echo "$ac_try_echo"; } >&5
2978f8a31ee4Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2979a0d3b6eaSmrg  ac_status=$?
2980f8a31ee4Smrg  if test -s conftest.err; then
2981f8a31ee4Smrg    sed '10a\
2982f8a31ee4Smrg... rest of stderr output deleted ...
2983f8a31ee4Smrg         10q' conftest.err >conftest.er1
2984f8a31ee4Smrg    cat conftest.er1 >&5
2985f8a31ee4Smrg  fi
2986f8a31ee4Smrg  rm -f conftest.er1 conftest.err
2987f8a31ee4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2988f8a31ee4Smrg  test $ac_status = 0; }
2989f8a31ee4Smrgdone
2990a0d3b6eaSmrg
2991f8a31ee4Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
2992a0d3b6eaSmrg/* end confdefs.h.  */
2993a0d3b6eaSmrg
2994a0d3b6eaSmrgint
2995a0d3b6eaSmrgmain ()
2996a0d3b6eaSmrg{
2997a0d3b6eaSmrg
2998a0d3b6eaSmrg  ;
2999a0d3b6eaSmrg  return 0;
3000a0d3b6eaSmrg}
3001a0d3b6eaSmrg_ACEOF
3002a0d3b6eaSmrgac_clean_files_save=$ac_clean_files
300362df5ad0Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3004a0d3b6eaSmrg# Try to create an executable without -o first, disregard a.out.
3005a0d3b6eaSmrg# It will help us diagnose broken compilers, and finding out an intuition
3006a0d3b6eaSmrg# of exeext.
3007f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3008f8a31ee4Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
300962df5ad0Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
301062df5ad0Smrg
301162df5ad0Smrg# The possible output files:
301262df5ad0Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
301362df5ad0Smrg
3014a0d3b6eaSmrgac_rmfiles=
3015a0d3b6eaSmrgfor ac_file in $ac_files
3016a0d3b6eaSmrgdo
3017a0d3b6eaSmrg  case $ac_file in
301862df5ad0Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3019a0d3b6eaSmrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3020a0d3b6eaSmrg  esac
3021a0d3b6eaSmrgdone
3022a0d3b6eaSmrgrm -f $ac_rmfiles
3023a0d3b6eaSmrg
3024f8a31ee4Smrgif { { ac_try="$ac_link_default"
3025a0d3b6eaSmrgcase "(($ac_try" in
3026a0d3b6eaSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027a0d3b6eaSmrg  *) ac_try_echo=$ac_try;;
3028a0d3b6eaSmrgesac
3029f8a31ee4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3030f8a31ee4Smrg$as_echo "$ac_try_echo"; } >&5
3031a0d3b6eaSmrg  (eval "$ac_link_default") 2>&5
3032a0d3b6eaSmrg  ac_status=$?
3033f8a31ee4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3034f8a31ee4Smrg  test $ac_status = 0; }; then :
3035a0d3b6eaSmrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3036a0d3b6eaSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3037a0d3b6eaSmrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3038a0d3b6eaSmrg# so that the user can short-circuit this test for compilers unknown to
3039a0d3b6eaSmrg# Autoconf.
3040a0d3b6eaSmrgfor ac_file in $ac_files ''
3041a0d3b6eaSmrgdo
3042a0d3b6eaSmrg  test -f "$ac_file" || continue
3043a0d3b6eaSmrg  case $ac_file in
304462df5ad0Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3045a0d3b6eaSmrg	;;
3046a0d3b6eaSmrg    [ab].out )
3047a0d3b6eaSmrg	# We found the default executable, but exeext='' is most
3048a0d3b6eaSmrg	# certainly right.
3049a0d3b6eaSmrg	break;;
3050a0d3b6eaSmrg    *.* )
3051f8a31ee4Smrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3052a0d3b6eaSmrg	then :; else
3053a0d3b6eaSmrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3054a0d3b6eaSmrg	fi
3055a0d3b6eaSmrg	# We set ac_cv_exeext here because the later test for it is not
3056a0d3b6eaSmrg	# safe: cross compilers may not add the suffix if given an `-o'
3057a0d3b6eaSmrg	# argument, so we may need to know it at that point already.
3058a0d3b6eaSmrg	# Even if this section looks crufty: it has the advantage of
3059a0d3b6eaSmrg	# actually working.
3060a0d3b6eaSmrg	break;;
3061a0d3b6eaSmrg    * )
3062a0d3b6eaSmrg	break;;
3063a0d3b6eaSmrg  esac
3064a0d3b6eaSmrgdone
3065a0d3b6eaSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
3066a0d3b6eaSmrg
3067a0d3b6eaSmrgelse
3068a0d3b6eaSmrg  ac_file=''
3069a0d3b6eaSmrgfi
3070f8a31ee4Smrgif test -z "$ac_file"; then :
3071f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072f8a31ee4Smrg$as_echo "no" >&6; }
3073f8a31ee4Smrg$as_echo "$as_me: failed program was:" >&5
3074a0d3b6eaSmrgsed 's/^/| /' conftest.$ac_ext >&5
3075a0d3b6eaSmrg
3076f8a31ee4Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
307762df5ad0Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30784def10e6Smrgas_fn_error 77 "C compiler cannot create executables
30794def10e6SmrgSee \`config.log' for more details" "$LINENO" 5; }
3080f8a31ee4Smrgelse
3081f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3082f8a31ee4Smrg$as_echo "yes" >&6; }
3083a0d3b6eaSmrgfi
3084f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3085f8a31ee4Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
3086f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3087f8a31ee4Smrg$as_echo "$ac_file" >&6; }
3088a0d3b6eaSmrgac_exeext=$ac_cv_exeext
3089a0d3b6eaSmrg
309062df5ad0Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3091a0d3b6eaSmrgac_clean_files=$ac_clean_files_save
3092f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
309362df5ad0Smrg$as_echo_n "checking for suffix of executables... " >&6; }
3094f8a31ee4Smrgif { { ac_try="$ac_link"
3095a0d3b6eaSmrgcase "(($ac_try" in
3096a0d3b6eaSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097a0d3b6eaSmrg  *) ac_try_echo=$ac_try;;
3098a0d3b6eaSmrgesac
3099f8a31ee4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3100f8a31ee4Smrg$as_echo "$ac_try_echo"; } >&5
3101a0d3b6eaSmrg  (eval "$ac_link") 2>&5
3102a0d3b6eaSmrg  ac_status=$?
3103f8a31ee4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3104f8a31ee4Smrg  test $ac_status = 0; }; then :
3105a0d3b6eaSmrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3106a0d3b6eaSmrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3107a0d3b6eaSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with
3108a0d3b6eaSmrg# `rm'.
3109a0d3b6eaSmrgfor ac_file in conftest.exe conftest conftest.*; do
3110a0d3b6eaSmrg  test -f "$ac_file" || continue
3111a0d3b6eaSmrg  case $ac_file in
311262df5ad0Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3113a0d3b6eaSmrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3114a0d3b6eaSmrg	  break;;
3115a0d3b6eaSmrg    * ) break;;
3116a0d3b6eaSmrg  esac
3117a0d3b6eaSmrgdone
3118a0d3b6eaSmrgelse
3119f8a31ee4Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
312062df5ad0Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31214def10e6Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
31224def10e6SmrgSee \`config.log' for more details" "$LINENO" 5; }
3123a0d3b6eaSmrgfi
3124f8a31ee4Smrgrm -f conftest conftest$ac_cv_exeext
3125f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
312662df5ad0Smrg$as_echo "$ac_cv_exeext" >&6; }
3127a0d3b6eaSmrg
3128a0d3b6eaSmrgrm -f conftest.$ac_ext
3129a0d3b6eaSmrgEXEEXT=$ac_cv_exeext
3130a0d3b6eaSmrgac_exeext=$EXEEXT
3131f8a31ee4Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3132f8a31ee4Smrg/* end confdefs.h.  */
3133f8a31ee4Smrg#include <stdio.h>
3134f8a31ee4Smrgint
3135f8a31ee4Smrgmain ()
3136f8a31ee4Smrg{
3137f8a31ee4SmrgFILE *f = fopen ("conftest.out", "w");
3138f8a31ee4Smrg return ferror (f) || fclose (f) != 0;
3139f8a31ee4Smrg
3140f8a31ee4Smrg  ;
3141f8a31ee4Smrg  return 0;
3142f8a31ee4Smrg}
3143f8a31ee4Smrg_ACEOF
3144f8a31ee4Smrgac_clean_files="$ac_clean_files conftest.out"
3145f8a31ee4Smrg# Check that the compiler produces executables we can run.  If not, either
3146f8a31ee4Smrg# the compiler is broken, or we cross compile.
3147f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3148f8a31ee4Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
3149f8a31ee4Smrgif test "$cross_compiling" != yes; then
3150f8a31ee4Smrg  { { ac_try="$ac_link"
3151f8a31ee4Smrgcase "(($ac_try" in
3152f8a31ee4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153f8a31ee4Smrg  *) ac_try_echo=$ac_try;;
3154f8a31ee4Smrgesac
3155f8a31ee4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3156f8a31ee4Smrg$as_echo "$ac_try_echo"; } >&5
3157f8a31ee4Smrg  (eval "$ac_link") 2>&5
3158f8a31ee4Smrg  ac_status=$?
3159f8a31ee4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3160f8a31ee4Smrg  test $ac_status = 0; }
3161f8a31ee4Smrg  if { ac_try='./conftest$ac_cv_exeext'
3162f8a31ee4Smrg  { { case "(($ac_try" in
3163f8a31ee4Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164f8a31ee4Smrg  *) ac_try_echo=$ac_try;;
3165f8a31ee4Smrgesac
3166f8a31ee4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3167f8a31ee4Smrg$as_echo "$ac_try_echo"; } >&5
3168f8a31ee4Smrg  (eval "$ac_try") 2>&5
3169f8a31ee4Smrg  ac_status=$?
3170f8a31ee4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3171f8a31ee4Smrg  test $ac_status = 0; }; }; then
3172f8a31ee4Smrg    cross_compiling=no
3173f8a31ee4Smrg  else
3174f8a31ee4Smrg    if test "$cross_compiling" = maybe; then
3175f8a31ee4Smrg	cross_compiling=yes
3176f8a31ee4Smrg    else
3177f8a31ee4Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3178f8a31ee4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31794def10e6Smrgas_fn_error $? "cannot run C compiled programs.
3180f8a31ee4SmrgIf you meant to cross compile, use \`--host'.
31814def10e6SmrgSee \`config.log' for more details" "$LINENO" 5; }
3182f8a31ee4Smrg    fi
3183f8a31ee4Smrg  fi
3184f8a31ee4Smrgfi
3185f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3186f8a31ee4Smrg$as_echo "$cross_compiling" >&6; }
3187f8a31ee4Smrg
3188f8a31ee4Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3189f8a31ee4Smrgac_clean_files=$ac_clean_files_save
3190f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
319162df5ad0Smrg$as_echo_n "checking for suffix of object files... " >&6; }
31924def10e6Smrgif ${ac_cv_objext+:} false; then :
319362df5ad0Smrg  $as_echo_n "(cached) " >&6
3194a0d3b6eaSmrgelse
3195f8a31ee4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3196a0d3b6eaSmrg/* end confdefs.h.  */
3197a0d3b6eaSmrg
3198a0d3b6eaSmrgint
3199a0d3b6eaSmrgmain ()
3200a0d3b6eaSmrg{
3201a0d3b6eaSmrg
3202a0d3b6eaSmrg  ;
3203a0d3b6eaSmrg  return 0;
3204a0d3b6eaSmrg}
3205a0d3b6eaSmrg_ACEOF
3206a0d3b6eaSmrgrm -f conftest.o conftest.obj
3207f8a31ee4Smrgif { { ac_try="$ac_compile"
3208a0d3b6eaSmrgcase "(($ac_try" in
3209a0d3b6eaSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210a0d3b6eaSmrg  *) ac_try_echo=$ac_try;;
3211a0d3b6eaSmrgesac
3212f8a31ee4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3213f8a31ee4Smrg$as_echo "$ac_try_echo"; } >&5
3214a0d3b6eaSmrg  (eval "$ac_compile") 2>&5
3215a0d3b6eaSmrg  ac_status=$?
3216f8a31ee4Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3217f8a31ee4Smrg  test $ac_status = 0; }; then :
3218a0d3b6eaSmrg  for ac_file in conftest.o conftest.obj conftest.*; do
3219a0d3b6eaSmrg  test -f "$ac_file" || continue;
3220a0d3b6eaSmrg  case $ac_file in
322162df5ad0Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3222a0d3b6eaSmrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3223a0d3b6eaSmrg       break;;
3224a0d3b6eaSmrg  esac
3225a0d3b6eaSmrgdone
3226a0d3b6eaSmrgelse
322762df5ad0Smrg  $as_echo "$as_me: failed program was:" >&5
3228a0d3b6eaSmrgsed 's/^/| /' conftest.$ac_ext >&5
3229a0d3b6eaSmrg
3230f8a31ee4Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
323162df5ad0Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32324def10e6Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile
32334def10e6SmrgSee \`config.log' for more details" "$LINENO" 5; }
3234a0d3b6eaSmrgfi
3235a0d3b6eaSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
3236a0d3b6eaSmrgfi
3237f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
323862df5ad0Smrg$as_echo "$ac_cv_objext" >&6; }
3239a0d3b6eaSmrgOBJEXT=$ac_cv_objext
3240a0d3b6eaSmrgac_objext=$OBJEXT
3241f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
324262df5ad0Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
32434def10e6Smrgif ${ac_cv_c_compiler_gnu+:} false; then :
324462df5ad0Smrg  $as_echo_n "(cached) " >&6
3245a0d3b6eaSmrgelse
3246f8a31ee4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3247a0d3b6eaSmrg/* end confdefs.h.  */
3248a0d3b6eaSmrg
3249a0d3b6eaSmrgint
3250a0d3b6eaSmrgmain ()
3251a0d3b6eaSmrg{
3252a0d3b6eaSmrg#ifndef __GNUC__
3253a0d3b6eaSmrg       choke me
3254a0d3b6eaSmrg#endif
3255a0d3b6eaSmrg
3256a0d3b6eaSmrg  ;
3257a0d3b6eaSmrg  return 0;
3258a0d3b6eaSmrg}
3259a0d3b6eaSmrg_ACEOF
3260f8a31ee4Smrgif ac_fn_c_try_compile "$LINENO"; then :
3261a0d3b6eaSmrg  ac_compiler_gnu=yes
3262a0d3b6eaSmrgelse
3263f8a31ee4Smrg  ac_compiler_gnu=no
3264a0d3b6eaSmrgfi
3265a0d3b6eaSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266a0d3b6eaSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu
3267a0d3b6eaSmrg
3268a0d3b6eaSmrgfi
3269f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
327062df5ad0Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
327162df5ad0Smrgif test $ac_compiler_gnu = yes; then
327262df5ad0Smrg  GCC=yes
327362df5ad0Smrgelse
327462df5ad0Smrg  GCC=
327562df5ad0Smrgfi
3276a0d3b6eaSmrgac_test_CFLAGS=${CFLAGS+set}
3277a0d3b6eaSmrgac_save_CFLAGS=$CFLAGS
3278f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
327962df5ad0Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
32804def10e6Smrgif ${ac_cv_prog_cc_g+:} false; then :
328162df5ad0Smrg  $as_echo_n "(cached) " >&6
3282a0d3b6eaSmrgelse
3283a0d3b6eaSmrg  ac_save_c_werror_flag=$ac_c_werror_flag
3284a0d3b6eaSmrg   ac_c_werror_flag=yes
3285a0d3b6eaSmrg   ac_cv_prog_cc_g=no
3286a0d3b6eaSmrg   CFLAGS="-g"
3287f8a31ee4Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3288a0d3b6eaSmrg/* end confdefs.h.  */
3289a0d3b6eaSmrg
3290a0d3b6eaSmrgint
3291a0d3b6eaSmrgmain ()
3292a0d3b6eaSmrg{
3293a0d3b6eaSmrg
3294a0d3b6eaSmrg  ;
3295a0d3b6eaSmrg  return 0;
3296a0d3b6eaSmrg}
3297a0d3b6eaSmrg_ACEOF
3298f8a31ee4Smrgif ac_fn_c_try_compile "$LINENO"; then :
3299a0d3b6eaSmrg  ac_cv_prog_cc_g=yes
3300a0d3b6eaSmrgelse
3301f8a31ee4Smrg  CFLAGS=""
3302f8a31ee4Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3303a0d3b6eaSmrg/* end confdefs.h.  */
3304a0d3b6eaSmrg
3305a0d3b6eaSmrgint
3306a0d3b6eaSmrgmain ()
3307a0d3b6eaSmrg{
3308a0d3b6eaSmrg
3309a0d3b6eaSmrg  ;
3310a0d3b6eaSmrg  return 0;
3311a0d3b6eaSmrg}
3312a0d3b6eaSmrg_ACEOF
3313f8a31ee4Smrgif ac_fn_c_try_compile "$LINENO"; then :
3314a0d3b6eaSmrg
3315f8a31ee4Smrgelse
3316f8a31ee4Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
3317a0d3b6eaSmrg	 CFLAGS="-g"
3318f8a31ee4Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3319a0d3b6eaSmrg/* end confdefs.h.  */
3320a0d3b6eaSmrg
3321a0d3b6eaSmrgint
3322a0d3b6eaSmrgmain ()
3323a0d3b6eaSmrg{
3324a0d3b6eaSmrg
3325a0d3b6eaSmrg  ;
3326a0d3b6eaSmrg  return 0;
3327a0d3b6eaSmrg}
3328a0d3b6eaSmrg_ACEOF
3329f8a31ee4Smrgif ac_fn_c_try_compile "$LINENO"; then :
3330a0d3b6eaSmrg  ac_cv_prog_cc_g=yes
3331a0d3b6eaSmrgfi
3332a0d3b6eaSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333a0d3b6eaSmrgfi
3334a0d3b6eaSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335a0d3b6eaSmrgfi
3336a0d3b6eaSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337a0d3b6eaSmrg   ac_c_werror_flag=$ac_save_c_werror_flag
3338a0d3b6eaSmrgfi
3339f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
334062df5ad0Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
3341a0d3b6eaSmrgif test "$ac_test_CFLAGS" = set; then
3342a0d3b6eaSmrg  CFLAGS=$ac_save_CFLAGS
3343a0d3b6eaSmrgelif test $ac_cv_prog_cc_g = yes; then
3344a0d3b6eaSmrg  if test "$GCC" = yes; then
3345a0d3b6eaSmrg    CFLAGS="-g -O2"
3346a0d3b6eaSmrg  else
3347a0d3b6eaSmrg    CFLAGS="-g"
3348a0d3b6eaSmrg  fi
3349a0d3b6eaSmrgelse
3350a0d3b6eaSmrg  if test "$GCC" = yes; then
3351a0d3b6eaSmrg    CFLAGS="-O2"
3352a0d3b6eaSmrg  else
3353a0d3b6eaSmrg    CFLAGS=
3354a0d3b6eaSmrg  fi
3355a0d3b6eaSmrgfi
3356f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
335762df5ad0Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
33584def10e6Smrgif ${ac_cv_prog_cc_c89+:} false; then :
335962df5ad0Smrg  $as_echo_n "(cached) " >&6
3360a0d3b6eaSmrgelse
3361a0d3b6eaSmrg  ac_cv_prog_cc_c89=no
3362a0d3b6eaSmrgac_save_CC=$CC
3363f8a31ee4Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364a0d3b6eaSmrg/* end confdefs.h.  */
3365a0d3b6eaSmrg#include <stdarg.h>
3366a0d3b6eaSmrg#include <stdio.h>
3367a0d3b6eaSmrg#include <sys/types.h>
3368a0d3b6eaSmrg#include <sys/stat.h>
3369a0d3b6eaSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3370a0d3b6eaSmrgstruct buf { int x; };
3371a0d3b6eaSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
3372a0d3b6eaSmrgstatic char *e (p, i)
3373a0d3b6eaSmrg     char **p;
3374a0d3b6eaSmrg     int i;
3375a0d3b6eaSmrg{
3376a0d3b6eaSmrg  return p[i];
3377a0d3b6eaSmrg}
3378a0d3b6eaSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
3379a0d3b6eaSmrg{
3380a0d3b6eaSmrg  char *s;
3381a0d3b6eaSmrg  va_list v;
3382a0d3b6eaSmrg  va_start (v,p);
3383a0d3b6eaSmrg  s = g (p, va_arg (v,int));
3384a0d3b6eaSmrg  va_end (v);
3385a0d3b6eaSmrg  return s;
3386a0d3b6eaSmrg}
3387a0d3b6eaSmrg
3388a0d3b6eaSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3389a0d3b6eaSmrg   function prototypes and stuff, but not '\xHH' hex character constants.
3390a0d3b6eaSmrg   These don't provoke an error unfortunately, instead are silently treated
3391a0d3b6eaSmrg   as 'x'.  The following induces an error, until -std is added to get
3392a0d3b6eaSmrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3393a0d3b6eaSmrg   array size at least.  It's necessary to write '\x00'==0 to get something
3394a0d3b6eaSmrg   that's true only with -std.  */
3395a0d3b6eaSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
3396a0d3b6eaSmrg
3397a0d3b6eaSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3398a0d3b6eaSmrg   inside strings and character constants.  */
3399a0d3b6eaSmrg#define FOO(x) 'x'
3400a0d3b6eaSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3401a0d3b6eaSmrg
3402a0d3b6eaSmrgint test (int i, double x);
3403a0d3b6eaSmrgstruct s1 {int (*f) (int a);};
3404a0d3b6eaSmrgstruct s2 {int (*f) (double a);};
3405a0d3b6eaSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3406a0d3b6eaSmrgint argc;
3407a0d3b6eaSmrgchar **argv;
3408a0d3b6eaSmrgint
3409a0d3b6eaSmrgmain ()
3410a0d3b6eaSmrg{
3411a0d3b6eaSmrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3412a0d3b6eaSmrg  ;
3413a0d3b6eaSmrg  return 0;
3414a0d3b6eaSmrg}
3415a0d3b6eaSmrg_ACEOF
3416a0d3b6eaSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3417a0d3b6eaSmrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3418a0d3b6eaSmrgdo
3419a0d3b6eaSmrg  CC="$ac_save_CC $ac_arg"
3420f8a31ee4Smrg  if ac_fn_c_try_compile "$LINENO"; then :
3421a0d3b6eaSmrg  ac_cv_prog_cc_c89=$ac_arg
3422a0d3b6eaSmrgfi
3423a0d3b6eaSmrgrm -f core conftest.err conftest.$ac_objext
3424a0d3b6eaSmrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
3425a0d3b6eaSmrgdone
3426a0d3b6eaSmrgrm -f conftest.$ac_ext
3427a0d3b6eaSmrgCC=$ac_save_CC
3428a0d3b6eaSmrg
3429a0d3b6eaSmrgfi
3430a0d3b6eaSmrg# AC_CACHE_VAL
3431a0d3b6eaSmrgcase "x$ac_cv_prog_cc_c89" in
3432a0d3b6eaSmrg  x)
3433f8a31ee4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
343462df5ad0Smrg$as_echo "none needed" >&6; } ;;
3435a0d3b6eaSmrg  xno)
3436f8a31ee4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
343762df5ad0Smrg$as_echo "unsupported" >&6; } ;;
3438a0d3b6eaSmrg  *)
3439a0d3b6eaSmrg    CC="$CC $ac_cv_prog_cc_c89"
3440f8a31ee4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
344162df5ad0Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3442a0d3b6eaSmrgesac
3443f8a31ee4Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
3444a0d3b6eaSmrg
3445f8a31ee4Smrgfi
3446a0d3b6eaSmrg
3447a0d3b6eaSmrgac_ext=c
3448a0d3b6eaSmrgac_cpp='$CPP $CPPFLAGS'
3449a0d3b6eaSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3450a0d3b6eaSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3451a0d3b6eaSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3452a0d3b6eaSmrg
3453a0d3b6eaSmrgdepcc="$CC"   am_compiler_list=
3454a0d3b6eaSmrg
3455f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
345662df5ad0Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
34574def10e6Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
345862df5ad0Smrg  $as_echo_n "(cached) " >&6
3459a0d3b6eaSmrgelse
3460a0d3b6eaSmrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3461a0d3b6eaSmrg  # We make a subdir and do the tests there.  Otherwise we can end up
3462a0d3b6eaSmrg  # making bogus files that we don't know about and never remove.  For
3463a0d3b6eaSmrg  # instance it was reported that on HP-UX the gcc test will end up
3464a0d3b6eaSmrg  # making a dummy file named `D' -- because `-MD' means `put the output
3465a0d3b6eaSmrg  # in D'.
3466a0d3b6eaSmrg  mkdir conftest.dir
3467a0d3b6eaSmrg  # Copy depcomp to subdir because otherwise we won't find it if we're
3468a0d3b6eaSmrg  # using a relative directory.
3469a0d3b6eaSmrg  cp "$am_depcomp" conftest.dir
3470a0d3b6eaSmrg  cd conftest.dir
3471a0d3b6eaSmrg  # We will build objects and dependencies in a subdirectory because
3472a0d3b6eaSmrg  # it helps to detect inapplicable dependency modes.  For instance
3473a0d3b6eaSmrg  # both Tru64's cc and ICC support -MD to output dependencies as a
3474a0d3b6eaSmrg  # side effect of compilation, but ICC will put the dependencies in
3475a0d3b6eaSmrg  # the current directory while Tru64 will put them in the object
3476a0d3b6eaSmrg  # directory.
3477a0d3b6eaSmrg  mkdir sub
3478a0d3b6eaSmrg
3479a0d3b6eaSmrg  am_cv_CC_dependencies_compiler_type=none
3480a0d3b6eaSmrg  if test "$am_compiler_list" = ""; then
3481a0d3b6eaSmrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3482a0d3b6eaSmrg  fi
3483f8a31ee4Smrg  am__universal=false
3484f8a31ee4Smrg  case " $depcc " in #(
3485f8a31ee4Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3486f8a31ee4Smrg     esac
3487f8a31ee4Smrg
3488a0d3b6eaSmrg  for depmode in $am_compiler_list; do
3489a0d3b6eaSmrg    # Setup a source with many dependencies, because some compilers
3490a0d3b6eaSmrg    # like to wrap large dependency lists on column 80 (with \), and
3491a0d3b6eaSmrg    # we should not choose a depcomp mode which is confused by this.
3492a0d3b6eaSmrg    #
3493a0d3b6eaSmrg    # We need to recreate these files for each test, as the compiler may
3494a0d3b6eaSmrg    # overwrite some of them when testing with obscure command lines.
3495a0d3b6eaSmrg    # This happens at least with the AIX C compiler.
3496a0d3b6eaSmrg    : > sub/conftest.c
3497a0d3b6eaSmrg    for i in 1 2 3 4 5 6; do
3498a0d3b6eaSmrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3499a0d3b6eaSmrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3500a0d3b6eaSmrg      # Solaris 8's {/usr,}/bin/sh.
3501a0d3b6eaSmrg      touch sub/conftst$i.h
3502a0d3b6eaSmrg    done
3503a0d3b6eaSmrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3504a0d3b6eaSmrg
3505f8a31ee4Smrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3506f8a31ee4Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
3507f8a31ee4Smrg    # handle `-M -o', and we need to detect this.  Also, some Intel
3508f8a31ee4Smrg    # versions had trouble with output in subdirs
3509f8a31ee4Smrg    am__obj=sub/conftest.${OBJEXT-o}
3510f8a31ee4Smrg    am__minus_obj="-o $am__obj"
3511a0d3b6eaSmrg    case $depmode in
3512f8a31ee4Smrg    gcc)
3513f8a31ee4Smrg      # This depmode causes a compiler race in universal mode.
3514f8a31ee4Smrg      test "$am__universal" = false || continue
3515f8a31ee4Smrg      ;;
3516a0d3b6eaSmrg    nosideeffect)
3517a0d3b6eaSmrg      # after this tag, mechanisms are not by side-effect, so they'll
3518a0d3b6eaSmrg      # only be used when explicitly requested
3519a0d3b6eaSmrg      if test "x$enable_dependency_tracking" = xyes; then
3520a0d3b6eaSmrg	continue
3521a0d3b6eaSmrg      else
3522a0d3b6eaSmrg	break
3523a0d3b6eaSmrg      fi
3524a0d3b6eaSmrg      ;;
3525f8a31ee4Smrg    msvisualcpp | msvcmsys)
3526f8a31ee4Smrg      # This compiler won't grok `-c -o', but also, the minuso test has
3527f8a31ee4Smrg      # not run yet.  These depmodes are late enough in the game, and
3528f8a31ee4Smrg      # so weak that their functioning should not be impacted.
3529f8a31ee4Smrg      am__obj=conftest.${OBJEXT-o}
3530f8a31ee4Smrg      am__minus_obj=
3531f8a31ee4Smrg      ;;
3532a0d3b6eaSmrg    none) break ;;
3533a0d3b6eaSmrg    esac
3534a0d3b6eaSmrg    if depmode=$depmode \
3535f8a31ee4Smrg       source=sub/conftest.c object=$am__obj \
3536a0d3b6eaSmrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3537f8a31ee4Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3538a0d3b6eaSmrg         >/dev/null 2>conftest.err &&
3539a0d3b6eaSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3540a0d3b6eaSmrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3541f8a31ee4Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3542a0d3b6eaSmrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3543a0d3b6eaSmrg      # icc doesn't choke on unknown options, it will just issue warnings
3544a0d3b6eaSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
3545a0d3b6eaSmrg      # that says an option was ignored or not supported.
3546a0d3b6eaSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
3547a0d3b6eaSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
3548a0d3b6eaSmrg      # The diagnosis changed in icc 8.0:
3549a0d3b6eaSmrg      #   icc: Command line remark: option '-MP' not supported
3550a0d3b6eaSmrg      if (grep 'ignoring option' conftest.err ||
3551a0d3b6eaSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3552a0d3b6eaSmrg        am_cv_CC_dependencies_compiler_type=$depmode
3553a0d3b6eaSmrg        break
3554a0d3b6eaSmrg      fi
3555a0d3b6eaSmrg    fi
3556a0d3b6eaSmrg  done
3557a0d3b6eaSmrg
355862df5ad0Smrg  cd ..
355962df5ad0Smrg  rm -rf conftest.dir
356062df5ad0Smrgelse
356162df5ad0Smrg  am_cv_CC_dependencies_compiler_type=none
356262df5ad0Smrgfi
356362df5ad0Smrg
356462df5ad0Smrgfi
3565f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
356662df5ad0Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
356762df5ad0SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
356862df5ad0Smrg
356962df5ad0Smrg if
357062df5ad0Smrg  test "x$enable_dependency_tracking" != xno \
357162df5ad0Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
357262df5ad0Smrg  am__fastdepCC_TRUE=
357362df5ad0Smrg  am__fastdepCC_FALSE='#'
357462df5ad0Smrgelse
357562df5ad0Smrg  am__fastdepCC_TRUE='#'
357662df5ad0Smrg  am__fastdepCC_FALSE=
357762df5ad0Smrgfi
357862df5ad0Smrg
357962df5ad0Smrg
3580f8a31ee4Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3581f8a31ee4Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
35824def10e6Smrgif ${ac_cv_prog_cc_c99+:} false; then :
358362df5ad0Smrg  $as_echo_n "(cached) " >&6
358462df5ad0Smrgelse
3585f8a31ee4Smrg  ac_cv_prog_cc_c99=no
3586f8a31ee4Smrgac_save_CC=$CC
3587f8a31ee4Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588f8a31ee4Smrg/* end confdefs.h.  */
3589f8a31ee4Smrg#include <stdarg.h>
3590f8a31ee4Smrg#include <stdbool.h>
3591f8a31ee4Smrg#include <stdlib.h>
3592f8a31ee4Smrg#include <wchar.h>
3593f8a31ee4Smrg#include <stdio.h>
359462df5ad0Smrg
3595f8a31ee4Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3596f8a31ee4Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
3597f8a31ee4Smrg#define showlist(...) puts (#__VA_ARGS__)
3598f8a31ee4Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3599f8a31ee4Smrgstatic void
3600f8a31ee4Smrgtest_varargs_macros (void)
3601f8a31ee4Smrg{
3602f8a31ee4Smrg  int x = 1234;
3603f8a31ee4Smrg  int y = 5678;
3604f8a31ee4Smrg  debug ("Flag");
3605f8a31ee4Smrg  debug ("X = %d\n", x);
3606f8a31ee4Smrg  showlist (The first, second, and third items.);
3607f8a31ee4Smrg  report (x>y, "x is %d but y is %d", x, y);
3608f8a31ee4Smrg}
360962df5ad0Smrg
3610f8a31ee4Smrg// Check long long types.
3611f8a31ee4Smrg#define BIG64 18446744073709551615ull
3612f8a31ee4Smrg#define BIG32 4294967295ul
3613f8a31ee4Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3614f8a31ee4Smrg#if !BIG_OK
3615f8a31ee4Smrg  your preprocessor is broken;
3616f8a31ee4Smrg#endif
3617f8a31ee4Smrg#if BIG_OK
3618f8a31ee4Smrg#else
3619f8a31ee4Smrg  your preprocessor is broken;
3620f8a31ee4Smrg#endif
3621f8a31ee4Smrgstatic long long int bignum = -9223372036854775807LL;
3622f8a31ee4Smrgstatic unsigned long long int ubignum = BIG64;
362362df5ad0Smrg
3624f8a31ee4Smrgstruct incomplete_array
3625f8a31ee4Smrg{
3626f8a31ee4Smrg  int datasize;
3627f8a31ee4Smrg  double data[];
3628f8a31ee4Smrg};
3629f8a31ee4Smrg
3630f8a31ee4Smrgstruct named_init {
3631f8a31ee4Smrg  int number;
3632f8a31ee4Smrg  const wchar_t *name;
3633f8a31ee4Smrg  double average;
3634f8a31ee4Smrg};
3635f8a31ee4Smrg
3636f8a31ee4Smrgtypedef const char *ccp;
3637f8a31ee4Smrg
3638f8a31ee4Smrgstatic inline int
3639f8a31ee4Smrgtest_restrict (ccp restrict text)
3640f8a31ee4Smrg{
3641f8a31ee4Smrg  // See if C++-style comments work.
3642f8a31ee4Smrg  // Iterate through items via the restricted pointer.
3643f8a31ee4Smrg  // Also check for declarations in for loops.
3644f8a31ee4Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3645f8a31ee4Smrg    continue;
3646f8a31ee4Smrg  return 0;
3647f8a31ee4Smrg}
3648f8a31ee4Smrg
3649f8a31ee4Smrg// Check varargs and va_copy.
3650f8a31ee4Smrgstatic void
3651f8a31ee4Smrgtest_varargs (const char *format, ...)
3652f8a31ee4Smrg{
3653f8a31ee4Smrg  va_list args;
3654f8a31ee4Smrg  va_start (args, format);
3655f8a31ee4Smrg  va_list args_copy;
3656f8a31ee4Smrg  va_copy (args_copy, args);
3657f8a31ee4Smrg
3658f8a31ee4Smrg  const char *str;
3659f8a31ee4Smrg  int number;
3660f8a31ee4Smrg  float fnumber;
3661f8a31ee4Smrg
3662f8a31ee4Smrg  while (*format)
3663f8a31ee4Smrg    {
3664f8a31ee4Smrg      switch (*format++)
3665f8a31ee4Smrg	{
3666f8a31ee4Smrg	case 's': // string
3667f8a31ee4Smrg	  str = va_arg (args_copy, const char *);
3668f8a31ee4Smrg	  break;
3669f8a31ee4Smrg	case 'd': // int
3670f8a31ee4Smrg	  number = va_arg (args_copy, int);
3671f8a31ee4Smrg	  break;
3672f8a31ee4Smrg	case 'f': // float
3673f8a31ee4Smrg	  fnumber = va_arg (args_copy, double);
3674f8a31ee4Smrg	  break;
3675f8a31ee4Smrg	default:
3676f8a31ee4Smrg	  break;
3677f8a31ee4Smrg	}
3678f8a31ee4Smrg    }
3679f8a31ee4Smrg  va_end (args_copy);
3680f8a31ee4Smrg  va_end (args);
3681f8a31ee4Smrg}
3682f8a31ee4Smrg
3683f8a31ee4Smrgint
3684f8a31ee4Smrgmain ()
3685f8a31ee4Smrg{
3686f8a31ee4Smrg
3687f8a31ee4Smrg  // Check bool.
3688f8a31ee4Smrg  _Bool success = false;
3689f8a31ee4Smrg
3690f8a31ee4Smrg  // Check restrict.
3691f8a31ee4Smrg  if (test_restrict ("String literal") == 0)
3692f8a31ee4Smrg    success = true;
3693f8a31ee4Smrg  char *restrict newvar = "Another string";
3694f8a31ee4Smrg
3695f8a31ee4Smrg  // Check varargs.
3696f8a31ee4Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
3697f8a31ee4Smrg  test_varargs_macros ();
3698f8a31ee4Smrg
3699f8a31ee4Smrg  // Check flexible array members.
3700f8a31ee4Smrg  struct incomplete_array *ia =
3701f8a31ee4Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3702f8a31ee4Smrg  ia->datasize = 10;
3703f8a31ee4Smrg  for (int i = 0; i < ia->datasize; ++i)
3704f8a31ee4Smrg    ia->data[i] = i * 1.234;
3705f8a31ee4Smrg
3706f8a31ee4Smrg  // Check named initializers.
3707f8a31ee4Smrg  struct named_init ni = {
3708f8a31ee4Smrg    .number = 34,
3709f8a31ee4Smrg    .name = L"Test wide string",
3710f8a31ee4Smrg    .average = 543.34343,
3711f8a31ee4Smrg  };
3712f8a31ee4Smrg
3713f8a31ee4Smrg  ni.number = 58;
3714f8a31ee4Smrg
3715f8a31ee4Smrg  int dynamic_array[ni.number];
3716f8a31ee4Smrg  dynamic_array[ni.number - 1] = 543;
3717f8a31ee4Smrg
3718f8a31ee4Smrg  // work around unused variable warnings
3719f8a31ee4Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3720f8a31ee4Smrg	  || dynamic_array[ni.number - 1] != 543);
3721f8a31ee4Smrg
3722f8a31ee4Smrg  ;
3723f8a31ee4Smrg  return 0;
3724f8a31ee4Smrg}
3725f8a31ee4Smrg_ACEOF
3726f8a31ee4Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3727f8a31ee4Smrgdo
3728f8a31ee4Smrg  CC="$ac_save_CC $ac_arg"
3729f8a31ee4Smrg  if ac_fn_c_try_compile "$LINENO"; then :
3730f8a31ee4Smrg  ac_cv_prog_cc_c99=$ac_arg
373162df5ad0Smrgfi
3732f8a31ee4Smrgrm -f core conftest.err conftest.$ac_objext
3733f8a31ee4Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
3734f8a31ee4Smrgdone
3735f8a31ee4Smrgrm -f conftest.$ac_ext
3736f8a31ee4SmrgCC=$ac_save_CC
373762df5ad0Smrg
3738f8a31ee4Smrgfi
3739f8a31ee4Smrg# AC_CACHE_VAL
3740f8a31ee4Smrgcase "x$ac_cv_prog_cc_c99" in
3741f8a31ee4Smrg  x)
3742f8a31ee4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3743f8a31ee4Smrg$as_echo "none needed" >&6; } ;;
3744f8a31ee4Smrg  xno)
3745f8a31ee4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3746f8a31ee4Smrg$as_echo "unsupported" >&6; } ;;
3747f8a31ee4Smrg  *)
3748f8a31ee4Smrg    CC="$CC $ac_cv_prog_cc_c99"
3749f8a31ee4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3750f8a31ee4Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3751f8a31ee4Smrgesac
3752f8a31ee4Smrgif test "x$ac_cv_prog_cc_c99" != xno; then :
375362df5ad0Smrg
3754f8a31ee4Smrgfi
375562df5ad0Smrg
375662df5ad0Smrg
375762df5ad0Smrg
375862df5ad0Smrgac_ext=c
375962df5ad0Smrgac_cpp='$CPP $CPPFLAGS'
376062df5ad0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
376162df5ad0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
376262df5ad0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3763f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
376462df5ad0Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
376562df5ad0Smrg# On Suns, sometimes $CPP names a directory.
376662df5ad0Smrgif test -n "$CPP" && test -d "$CPP"; then
376762df5ad0Smrg  CPP=
376862df5ad0Smrgfi
376962df5ad0Smrgif test -z "$CPP"; then
37704def10e6Smrg  if ${ac_cv_prog_CPP+:} false; then :
377162df5ad0Smrg  $as_echo_n "(cached) " >&6
377262df5ad0Smrgelse
377362df5ad0Smrg      # Double quotes because CPP needs to be expanded
377462df5ad0Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
377562df5ad0Smrg    do
377662df5ad0Smrg      ac_preproc_ok=false
377762df5ad0Smrgfor ac_c_preproc_warn_flag in '' yes
377862df5ad0Smrgdo
377962df5ad0Smrg  # Use a header file that comes with gcc, so configuring glibc
378062df5ad0Smrg  # with a fresh cross-compiler works.
378162df5ad0Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
378262df5ad0Smrg  # <limits.h> exists even on freestanding compilers.
378362df5ad0Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
378462df5ad0Smrg  # not just through cpp. "Syntax error" is here to catch this case.
3785f8a31ee4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
378662df5ad0Smrg/* end confdefs.h.  */
378762df5ad0Smrg#ifdef __STDC__
378862df5ad0Smrg# include <limits.h>
378962df5ad0Smrg#else
379062df5ad0Smrg# include <assert.h>
379162df5ad0Smrg#endif
379262df5ad0Smrg		     Syntax error
379362df5ad0Smrg_ACEOF
3794f8a31ee4Smrgif ac_fn_c_try_cpp "$LINENO"; then :
379562df5ad0Smrg
3796f8a31ee4Smrgelse
379762df5ad0Smrg  # Broken: fails on valid input.
379862df5ad0Smrgcontinue
379962df5ad0Smrgfi
38004def10e6Smrgrm -f conftest.err conftest.i conftest.$ac_ext
380162df5ad0Smrg
380262df5ad0Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
380362df5ad0Smrg  # can be detected and how.
3804f8a31ee4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
380562df5ad0Smrg/* end confdefs.h.  */
380662df5ad0Smrg#include <ac_nonexistent.h>
380762df5ad0Smrg_ACEOF
3808f8a31ee4Smrgif ac_fn_c_try_cpp "$LINENO"; then :
380962df5ad0Smrg  # Broken: success on invalid input.
381062df5ad0Smrgcontinue
381162df5ad0Smrgelse
381262df5ad0Smrg  # Passes both tests.
381362df5ad0Smrgac_preproc_ok=:
381462df5ad0Smrgbreak
381562df5ad0Smrgfi
38164def10e6Smrgrm -f conftest.err conftest.i conftest.$ac_ext
381762df5ad0Smrg
381862df5ad0Smrgdone
381962df5ad0Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
38204def10e6Smrgrm -f conftest.i conftest.err conftest.$ac_ext
3821f8a31ee4Smrgif $ac_preproc_ok; then :
382262df5ad0Smrg  break
382362df5ad0Smrgfi
382462df5ad0Smrg
382562df5ad0Smrg    done
382662df5ad0Smrg    ac_cv_prog_CPP=$CPP
382762df5ad0Smrg
382862df5ad0Smrgfi
382962df5ad0Smrg  CPP=$ac_cv_prog_CPP
383062df5ad0Smrgelse
383162df5ad0Smrg  ac_cv_prog_CPP=$CPP
383262df5ad0Smrgfi
3833f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
383462df5ad0Smrg$as_echo "$CPP" >&6; }
383562df5ad0Smrgac_preproc_ok=false
383662df5ad0Smrgfor ac_c_preproc_warn_flag in '' yes
383762df5ad0Smrgdo
383862df5ad0Smrg  # Use a header file that comes with gcc, so configuring glibc
383962df5ad0Smrg  # with a fresh cross-compiler works.
384062df5ad0Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
384162df5ad0Smrg  # <limits.h> exists even on freestanding compilers.
384262df5ad0Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
384362df5ad0Smrg  # not just through cpp. "Syntax error" is here to catch this case.
3844f8a31ee4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
384562df5ad0Smrg/* end confdefs.h.  */
384662df5ad0Smrg#ifdef __STDC__
384762df5ad0Smrg# include <limits.h>
384862df5ad0Smrg#else
384962df5ad0Smrg# include <assert.h>
385062df5ad0Smrg#endif
385162df5ad0Smrg		     Syntax error
385262df5ad0Smrg_ACEOF
3853f8a31ee4Smrgif ac_fn_c_try_cpp "$LINENO"; then :
385462df5ad0Smrg
3855f8a31ee4Smrgelse
385662df5ad0Smrg  # Broken: fails on valid input.
385762df5ad0Smrgcontinue
385862df5ad0Smrgfi
38594def10e6Smrgrm -f conftest.err conftest.i conftest.$ac_ext
386062df5ad0Smrg
386162df5ad0Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
386262df5ad0Smrg  # can be detected and how.
3863f8a31ee4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
386462df5ad0Smrg/* end confdefs.h.  */
386562df5ad0Smrg#include <ac_nonexistent.h>
386662df5ad0Smrg_ACEOF
3867f8a31ee4Smrgif ac_fn_c_try_cpp "$LINENO"; then :
386862df5ad0Smrg  # Broken: success on invalid input.
386962df5ad0Smrgcontinue
387062df5ad0Smrgelse
387162df5ad0Smrg  # Passes both tests.
387262df5ad0Smrgac_preproc_ok=:
387362df5ad0Smrgbreak
387462df5ad0Smrgfi
38754def10e6Smrgrm -f conftest.err conftest.i conftest.$ac_ext
387662df5ad0Smrg
387762df5ad0Smrgdone
387862df5ad0Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
38794def10e6Smrgrm -f conftest.i conftest.err conftest.$ac_ext
3880f8a31ee4Smrgif $ac_preproc_ok; then :
3881f8a31ee4Smrg
388262df5ad0Smrgelse
3883f8a31ee4Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
388462df5ad0Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38854def10e6Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
38864def10e6SmrgSee \`config.log' for more details" "$LINENO" 5; }
388762df5ad0Smrgfi
388862df5ad0Smrg
388962df5ad0Smrgac_ext=c
389062df5ad0Smrgac_cpp='$CPP $CPPFLAGS'
389162df5ad0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
389262df5ad0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
389362df5ad0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
389462df5ad0Smrg
389562df5ad0Smrg
3896f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
389762df5ad0Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
38984def10e6Smrgif ${ac_cv_path_GREP+:} false; then :
389962df5ad0Smrg  $as_echo_n "(cached) " >&6
390062df5ad0Smrgelse
390162df5ad0Smrg  if test -z "$GREP"; then
390262df5ad0Smrg  ac_path_GREP_found=false
390362df5ad0Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
390462df5ad0Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
390562df5ad0Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
390662df5ad0Smrgdo
390762df5ad0Smrg  IFS=$as_save_IFS
390862df5ad0Smrg  test -z "$as_dir" && as_dir=.
3909f8a31ee4Smrg    for ac_prog in grep ggrep; do
391062df5ad0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
391162df5ad0Smrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
391262df5ad0Smrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
391362df5ad0Smrg# Check for GNU ac_path_GREP and select it if it is found.
391462df5ad0Smrg  # Check for GNU $ac_path_GREP
391562df5ad0Smrgcase `"$ac_path_GREP" --version 2>&1` in
391662df5ad0Smrg*GNU*)
391762df5ad0Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
391862df5ad0Smrg*)
391962df5ad0Smrg  ac_count=0
392062df5ad0Smrg  $as_echo_n 0123456789 >"conftest.in"
392162df5ad0Smrg  while :
392262df5ad0Smrg  do
392362df5ad0Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
392462df5ad0Smrg    mv "conftest.tmp" "conftest.in"
392562df5ad0Smrg    cp "conftest.in" "conftest.nl"
392662df5ad0Smrg    $as_echo 'GREP' >> "conftest.nl"
392762df5ad0Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
392862df5ad0Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3929f8a31ee4Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
393062df5ad0Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
393162df5ad0Smrg      # Best one so far, save it but keep looking for a better one
393262df5ad0Smrg      ac_cv_path_GREP="$ac_path_GREP"
393362df5ad0Smrg      ac_path_GREP_max=$ac_count
393462df5ad0Smrg    fi
393562df5ad0Smrg    # 10*(2^10) chars as input seems more than enough
393662df5ad0Smrg    test $ac_count -gt 10 && break
393762df5ad0Smrg  done
393862df5ad0Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
393962df5ad0Smrgesac
394062df5ad0Smrg
394162df5ad0Smrg      $ac_path_GREP_found && break 3
394262df5ad0Smrg    done
394362df5ad0Smrg  done
3944f8a31ee4Smrg  done
394562df5ad0SmrgIFS=$as_save_IFS
394662df5ad0Smrg  if test -z "$ac_cv_path_GREP"; then
39474def10e6Smrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
394862df5ad0Smrg  fi
394962df5ad0Smrgelse
395062df5ad0Smrg  ac_cv_path_GREP=$GREP
395162df5ad0Smrgfi
395262df5ad0Smrg
395362df5ad0Smrgfi
3954f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
395562df5ad0Smrg$as_echo "$ac_cv_path_GREP" >&6; }
395662df5ad0Smrg GREP="$ac_cv_path_GREP"
395762df5ad0Smrg
395862df5ad0Smrg
3959f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
396062df5ad0Smrg$as_echo_n "checking for egrep... " >&6; }
39614def10e6Smrgif ${ac_cv_path_EGREP+:} false; then :
396262df5ad0Smrg  $as_echo_n "(cached) " >&6
396362df5ad0Smrgelse
396462df5ad0Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
396562df5ad0Smrg   then ac_cv_path_EGREP="$GREP -E"
396662df5ad0Smrg   else
396762df5ad0Smrg     if test -z "$EGREP"; then
396862df5ad0Smrg  ac_path_EGREP_found=false
396962df5ad0Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
397062df5ad0Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
397162df5ad0Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
397262df5ad0Smrgdo
397362df5ad0Smrg  IFS=$as_save_IFS
397462df5ad0Smrg  test -z "$as_dir" && as_dir=.
3975f8a31ee4Smrg    for ac_prog in egrep; do
397662df5ad0Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
397762df5ad0Smrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
397862df5ad0Smrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
397962df5ad0Smrg# Check for GNU ac_path_EGREP and select it if it is found.
398062df5ad0Smrg  # Check for GNU $ac_path_EGREP
398162df5ad0Smrgcase `"$ac_path_EGREP" --version 2>&1` in
398262df5ad0Smrg*GNU*)
398362df5ad0Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
398462df5ad0Smrg*)
398562df5ad0Smrg  ac_count=0
398662df5ad0Smrg  $as_echo_n 0123456789 >"conftest.in"
398762df5ad0Smrg  while :
398862df5ad0Smrg  do
398962df5ad0Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
399062df5ad0Smrg    mv "conftest.tmp" "conftest.in"
399162df5ad0Smrg    cp "conftest.in" "conftest.nl"
399262df5ad0Smrg    $as_echo 'EGREP' >> "conftest.nl"
399362df5ad0Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
399462df5ad0Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3995f8a31ee4Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
399662df5ad0Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
399762df5ad0Smrg      # Best one so far, save it but keep looking for a better one
399862df5ad0Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
399962df5ad0Smrg      ac_path_EGREP_max=$ac_count
400062df5ad0Smrg    fi
400162df5ad0Smrg    # 10*(2^10) chars as input seems more than enough
400262df5ad0Smrg    test $ac_count -gt 10 && break
400362df5ad0Smrg  done
400462df5ad0Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
400562df5ad0Smrgesac
400662df5ad0Smrg
400762df5ad0Smrg      $ac_path_EGREP_found && break 3
400862df5ad0Smrg    done
400962df5ad0Smrg  done
4010f8a31ee4Smrg  done
401162df5ad0SmrgIFS=$as_save_IFS
401262df5ad0Smrg  if test -z "$ac_cv_path_EGREP"; then
40134def10e6Smrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
401462df5ad0Smrg  fi
401562df5ad0Smrgelse
401662df5ad0Smrg  ac_cv_path_EGREP=$EGREP
401762df5ad0Smrgfi
401862df5ad0Smrg
401962df5ad0Smrg   fi
402062df5ad0Smrgfi
4021f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
402262df5ad0Smrg$as_echo "$ac_cv_path_EGREP" >&6; }
402362df5ad0Smrg EGREP="$ac_cv_path_EGREP"
402462df5ad0Smrg
402562df5ad0Smrg
4026f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
402762df5ad0Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
40284def10e6Smrgif ${ac_cv_header_stdc+:} false; then :
402962df5ad0Smrg  $as_echo_n "(cached) " >&6
403062df5ad0Smrgelse
4031f8a31ee4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
403262df5ad0Smrg/* end confdefs.h.  */
403362df5ad0Smrg#include <stdlib.h>
403462df5ad0Smrg#include <stdarg.h>
403562df5ad0Smrg#include <string.h>
403662df5ad0Smrg#include <float.h>
403762df5ad0Smrg
403862df5ad0Smrgint
403962df5ad0Smrgmain ()
404062df5ad0Smrg{
404162df5ad0Smrg
404262df5ad0Smrg  ;
404362df5ad0Smrg  return 0;
404462df5ad0Smrg}
404562df5ad0Smrg_ACEOF
4046f8a31ee4Smrgif ac_fn_c_try_compile "$LINENO"; then :
404762df5ad0Smrg  ac_cv_header_stdc=yes
404862df5ad0Smrgelse
4049f8a31ee4Smrg  ac_cv_header_stdc=no
405062df5ad0Smrgfi
405162df5ad0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
405262df5ad0Smrg
405362df5ad0Smrgif test $ac_cv_header_stdc = yes; then
405462df5ad0Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4055f8a31ee4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
405662df5ad0Smrg/* end confdefs.h.  */
405762df5ad0Smrg#include <string.h>
405862df5ad0Smrg
405962df5ad0Smrg_ACEOF
406062df5ad0Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4061f8a31ee4Smrg  $EGREP "memchr" >/dev/null 2>&1; then :
4062f8a31ee4Smrg
406362df5ad0Smrgelse
406462df5ad0Smrg  ac_cv_header_stdc=no
406562df5ad0Smrgfi
406662df5ad0Smrgrm -f conftest*
406762df5ad0Smrg
406862df5ad0Smrgfi
406962df5ad0Smrg
407062df5ad0Smrgif test $ac_cv_header_stdc = yes; then
407162df5ad0Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4072f8a31ee4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
407362df5ad0Smrg/* end confdefs.h.  */
407462df5ad0Smrg#include <stdlib.h>
407562df5ad0Smrg
407662df5ad0Smrg_ACEOF
407762df5ad0Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4078f8a31ee4Smrg  $EGREP "free" >/dev/null 2>&1; then :
4079f8a31ee4Smrg
408062df5ad0Smrgelse
408162df5ad0Smrg  ac_cv_header_stdc=no
408262df5ad0Smrgfi
408362df5ad0Smrgrm -f conftest*
408462df5ad0Smrg
408562df5ad0Smrgfi
408662df5ad0Smrg
408762df5ad0Smrgif test $ac_cv_header_stdc = yes; then
408862df5ad0Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4089f8a31ee4Smrg  if test "$cross_compiling" = yes; then :
409062df5ad0Smrg  :
409162df5ad0Smrgelse
4092f8a31ee4Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
409362df5ad0Smrg/* end confdefs.h.  */
409462df5ad0Smrg#include <ctype.h>
409562df5ad0Smrg#include <stdlib.h>
409662df5ad0Smrg#if ((' ' & 0x0FF) == 0x020)
409762df5ad0Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
409862df5ad0Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
409962df5ad0Smrg#else
410062df5ad0Smrg# define ISLOWER(c) \
410162df5ad0Smrg		   (('a' <= (c) && (c) <= 'i') \
410262df5ad0Smrg		     || ('j' <= (c) && (c) <= 'r') \
410362df5ad0Smrg		     || ('s' <= (c) && (c) <= 'z'))
410462df5ad0Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
410562df5ad0Smrg#endif
410662df5ad0Smrg
410762df5ad0Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
410862df5ad0Smrgint
410962df5ad0Smrgmain ()
411062df5ad0Smrg{
411162df5ad0Smrg  int i;
411262df5ad0Smrg  for (i = 0; i < 256; i++)
411362df5ad0Smrg    if (XOR (islower (i), ISLOWER (i))
411462df5ad0Smrg	|| toupper (i) != TOUPPER (i))
411562df5ad0Smrg      return 2;
411662df5ad0Smrg  return 0;
411762df5ad0Smrg}
411862df5ad0Smrg_ACEOF
4119f8a31ee4Smrgif ac_fn_c_try_run "$LINENO"; then :
412062df5ad0Smrg
4121f8a31ee4Smrgelse
4122f8a31ee4Smrg  ac_cv_header_stdc=no
412362df5ad0Smrgfi
4124f8a31ee4Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4125f8a31ee4Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
412662df5ad0Smrgfi
412762df5ad0Smrg
412862df5ad0Smrgfi
412962df5ad0Smrgfi
4130f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
413162df5ad0Smrg$as_echo "$ac_cv_header_stdc" >&6; }
413262df5ad0Smrgif test $ac_cv_header_stdc = yes; then
413362df5ad0Smrg
4134f8a31ee4Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
413562df5ad0Smrg
413662df5ad0Smrgfi
413762df5ad0Smrg
413862df5ad0Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
413962df5ad0Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
414062df5ad0Smrg		  inttypes.h stdint.h unistd.h
4141f8a31ee4Smrgdo :
4142f8a31ee4Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4143f8a31ee4Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4144f8a31ee4Smrg"
41454def10e6Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
414662df5ad0Smrg  cat >>confdefs.h <<_ACEOF
414762df5ad0Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
414862df5ad0Smrg_ACEOF
414962df5ad0Smrg
415062df5ad0Smrgfi
415162df5ad0Smrg
415262df5ad0Smrgdone
415362df5ad0Smrg
415462df5ad0Smrg
415562df5ad0Smrg
415662df5ad0Smrg
4157a0d3b6eaSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4158a0d3b6eaSmrg	if test -n "$ac_tool_prefix"; then
4159a0d3b6eaSmrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4160a0d3b6eaSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4161f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
416262df5ad0Smrg$as_echo_n "checking for $ac_word... " >&6; }
41634def10e6Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
416462df5ad0Smrg  $as_echo_n "(cached) " >&6
4165a0d3b6eaSmrgelse
4166a0d3b6eaSmrg  case $PKG_CONFIG in
4167a0d3b6eaSmrg  [\\/]* | ?:[\\/]*)
4168a0d3b6eaSmrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4169a0d3b6eaSmrg  ;;
4170a0d3b6eaSmrg  *)
4171a0d3b6eaSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172a0d3b6eaSmrgfor as_dir in $PATH
4173a0d3b6eaSmrgdo
4174a0d3b6eaSmrg  IFS=$as_save_IFS
4175a0d3b6eaSmrg  test -z "$as_dir" && as_dir=.
4176f8a31ee4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4177a0d3b6eaSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4178a0d3b6eaSmrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4179f8a31ee4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4180a0d3b6eaSmrg    break 2
4181a0d3b6eaSmrg  fi
4182a0d3b6eaSmrgdone
4183f8a31ee4Smrg  done
4184a0d3b6eaSmrgIFS=$as_save_IFS
4185a0d3b6eaSmrg
4186a0d3b6eaSmrg  ;;
4187a0d3b6eaSmrgesac
4188a0d3b6eaSmrgfi
4189a0d3b6eaSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
4190a0d3b6eaSmrgif test -n "$PKG_CONFIG"; then
4191f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
419262df5ad0Smrg$as_echo "$PKG_CONFIG" >&6; }
4193a0d3b6eaSmrgelse
4194f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
419562df5ad0Smrg$as_echo "no" >&6; }
4196a0d3b6eaSmrgfi
4197a0d3b6eaSmrg
4198a0d3b6eaSmrg
4199a0d3b6eaSmrgfi
4200a0d3b6eaSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then
4201a0d3b6eaSmrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
4202a0d3b6eaSmrg  # Extract the first word of "pkg-config", so it can be a program name with args.
4203a0d3b6eaSmrgset dummy pkg-config; ac_word=$2
4204f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
420562df5ad0Smrg$as_echo_n "checking for $ac_word... " >&6; }
42064def10e6Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
420762df5ad0Smrg  $as_echo_n "(cached) " >&6
4208a0d3b6eaSmrgelse
4209a0d3b6eaSmrg  case $ac_pt_PKG_CONFIG in
4210a0d3b6eaSmrg  [\\/]* | ?:[\\/]*)
4211a0d3b6eaSmrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4212a0d3b6eaSmrg  ;;
4213a0d3b6eaSmrg  *)
4214a0d3b6eaSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215a0d3b6eaSmrgfor as_dir in $PATH
4216a0d3b6eaSmrgdo
4217a0d3b6eaSmrg  IFS=$as_save_IFS
4218a0d3b6eaSmrg  test -z "$as_dir" && as_dir=.
4219f8a31ee4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4220a0d3b6eaSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4221a0d3b6eaSmrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4222f8a31ee4Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4223a0d3b6eaSmrg    break 2
4224a0d3b6eaSmrg  fi
4225a0d3b6eaSmrgdone
4226f8a31ee4Smrg  done
4227a0d3b6eaSmrgIFS=$as_save_IFS
4228a0d3b6eaSmrg
4229a0d3b6eaSmrg  ;;
4230a0d3b6eaSmrgesac
4231a0d3b6eaSmrgfi
4232a0d3b6eaSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4233a0d3b6eaSmrgif test -n "$ac_pt_PKG_CONFIG"; then
4234f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
423562df5ad0Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4236a0d3b6eaSmrgelse
4237f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
423862df5ad0Smrg$as_echo "no" >&6; }
4239a0d3b6eaSmrgfi
4240a0d3b6eaSmrg
4241a0d3b6eaSmrg  if test "x$ac_pt_PKG_CONFIG" = x; then
4242a0d3b6eaSmrg    PKG_CONFIG=""
4243a0d3b6eaSmrg  else
4244a0d3b6eaSmrg    case $cross_compiling:$ac_tool_warned in
4245a0d3b6eaSmrgyes:)
4246f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
424762df5ad0Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4248a0d3b6eaSmrgac_tool_warned=yes ;;
4249a0d3b6eaSmrgesac
4250a0d3b6eaSmrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
4251a0d3b6eaSmrg  fi
4252a0d3b6eaSmrgelse
4253a0d3b6eaSmrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4254a0d3b6eaSmrgfi
4255a0d3b6eaSmrg
4256a0d3b6eaSmrgfi
4257a0d3b6eaSmrgif test -n "$PKG_CONFIG"; then
4258a0d3b6eaSmrg	_pkg_min_version=0.9.0
4259f8a31ee4Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
426062df5ad0Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4261a0d3b6eaSmrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4262f8a31ee4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
426362df5ad0Smrg$as_echo "yes" >&6; }
4264a0d3b6eaSmrg	else
4265f8a31ee4Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
426662df5ad0Smrg$as_echo "no" >&6; }
4267a0d3b6eaSmrg		PKG_CONFIG=""
4268a0d3b6eaSmrg	fi
42694def10e6Smrg
4270a0d3b6eaSmrgfi
4271f8a31ee4Smrg# Make sure we can run config.sub.
4272f8a31ee4Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
42734def10e6Smrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4274a0d3b6eaSmrg
4275f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4276f8a31ee4Smrg$as_echo_n "checking build system type... " >&6; }
42774def10e6Smrgif ${ac_cv_build+:} false; then :
4278f8a31ee4Smrg  $as_echo_n "(cached) " >&6
4279a0d3b6eaSmrgelse
4280f8a31ee4Smrg  ac_build_alias=$build_alias
4281f8a31ee4Smrgtest "x$ac_build_alias" = x &&
4282f8a31ee4Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4283f8a31ee4Smrgtest "x$ac_build_alias" = x &&
42844def10e6Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4285f8a31ee4Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
42864def10e6Smrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4287f8a31ee4Smrg
4288a0d3b6eaSmrgfi
4289f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
429062df5ad0Smrg$as_echo "$ac_cv_build" >&6; }
4291a0d3b6eaSmrgcase $ac_cv_build in
4292a0d3b6eaSmrg*-*-*) ;;
42934def10e6Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4294a0d3b6eaSmrgesac
4295a0d3b6eaSmrgbuild=$ac_cv_build
4296a0d3b6eaSmrgac_save_IFS=$IFS; IFS='-'
4297a0d3b6eaSmrgset x $ac_cv_build
4298a0d3b6eaSmrgshift
4299a0d3b6eaSmrgbuild_cpu=$1
4300a0d3b6eaSmrgbuild_vendor=$2
4301a0d3b6eaSmrgshift; shift
4302a0d3b6eaSmrg# Remember, the first character of IFS is used to create $*,
4303a0d3b6eaSmrg# except with old shells:
4304a0d3b6eaSmrgbuild_os=$*
4305a0d3b6eaSmrgIFS=$ac_save_IFS
4306a0d3b6eaSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4307a0d3b6eaSmrg
4308a0d3b6eaSmrg
4309f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
431062df5ad0Smrg$as_echo_n "checking host system type... " >&6; }
43114def10e6Smrgif ${ac_cv_host+:} false; then :
431262df5ad0Smrg  $as_echo_n "(cached) " >&6
4313a0d3b6eaSmrgelse
4314a0d3b6eaSmrg  if test "x$host_alias" = x; then
4315a0d3b6eaSmrg  ac_cv_host=$ac_cv_build
4316a0d3b6eaSmrgelse
4317a0d3b6eaSmrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
43184def10e6Smrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4319a0d3b6eaSmrgfi
4320a0d3b6eaSmrg
4321a0d3b6eaSmrgfi
4322f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
432362df5ad0Smrg$as_echo "$ac_cv_host" >&6; }
4324a0d3b6eaSmrgcase $ac_cv_host in
4325a0d3b6eaSmrg*-*-*) ;;
43264def10e6Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4327a0d3b6eaSmrgesac
4328a0d3b6eaSmrghost=$ac_cv_host
4329a0d3b6eaSmrgac_save_IFS=$IFS; IFS='-'
4330a0d3b6eaSmrgset x $ac_cv_host
4331a0d3b6eaSmrgshift
4332a0d3b6eaSmrghost_cpu=$1
4333a0d3b6eaSmrghost_vendor=$2
4334a0d3b6eaSmrgshift; shift
4335a0d3b6eaSmrg# Remember, the first character of IFS is used to create $*,
4336a0d3b6eaSmrg# except with old shells:
4337a0d3b6eaSmrghost_os=$*
4338a0d3b6eaSmrgIFS=$ac_save_IFS
4339a0d3b6eaSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4340a0d3b6eaSmrg
4341a0d3b6eaSmrg
4342f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4343f8a31ee4Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
43444def10e6Smrgif ${ac_cv_path_SED+:} false; then :
4345f8a31ee4Smrg  $as_echo_n "(cached) " >&6
4346f8a31ee4Smrgelse
4347f8a31ee4Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4348f8a31ee4Smrg     for ac_i in 1 2 3 4 5 6 7; do
4349f8a31ee4Smrg       ac_script="$ac_script$as_nl$ac_script"
4350f8a31ee4Smrg     done
4351f8a31ee4Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4352f8a31ee4Smrg     { ac_script=; unset ac_script;}
4353f8a31ee4Smrg     if test -z "$SED"; then
4354f8a31ee4Smrg  ac_path_SED_found=false
4355f8a31ee4Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
4356f8a31ee4Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357f8a31ee4Smrgfor as_dir in $PATH
4358f8a31ee4Smrgdo
4359f8a31ee4Smrg  IFS=$as_save_IFS
4360f8a31ee4Smrg  test -z "$as_dir" && as_dir=.
4361f8a31ee4Smrg    for ac_prog in sed gsed; do
4362f8a31ee4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4363f8a31ee4Smrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4364f8a31ee4Smrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4365f8a31ee4Smrg# Check for GNU ac_path_SED and select it if it is found.
4366f8a31ee4Smrg  # Check for GNU $ac_path_SED
4367f8a31ee4Smrgcase `"$ac_path_SED" --version 2>&1` in
4368f8a31ee4Smrg*GNU*)
4369f8a31ee4Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4370f8a31ee4Smrg*)
4371f8a31ee4Smrg  ac_count=0
4372f8a31ee4Smrg  $as_echo_n 0123456789 >"conftest.in"
4373f8a31ee4Smrg  while :
4374f8a31ee4Smrg  do
4375f8a31ee4Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4376f8a31ee4Smrg    mv "conftest.tmp" "conftest.in"
4377f8a31ee4Smrg    cp "conftest.in" "conftest.nl"
4378f8a31ee4Smrg    $as_echo '' >> "conftest.nl"
4379f8a31ee4Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4380f8a31ee4Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4381f8a31ee4Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4382f8a31ee4Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
4383f8a31ee4Smrg      # Best one so far, save it but keep looking for a better one
4384f8a31ee4Smrg      ac_cv_path_SED="$ac_path_SED"
4385f8a31ee4Smrg      ac_path_SED_max=$ac_count
4386f8a31ee4Smrg    fi
4387f8a31ee4Smrg    # 10*(2^10) chars as input seems more than enough
4388f8a31ee4Smrg    test $ac_count -gt 10 && break
4389f8a31ee4Smrg  done
4390f8a31ee4Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4391f8a31ee4Smrgesac
4392f8a31ee4Smrg
4393f8a31ee4Smrg      $ac_path_SED_found && break 3
4394f8a31ee4Smrg    done
4395f8a31ee4Smrg  done
4396f8a31ee4Smrg  done
4397f8a31ee4SmrgIFS=$as_save_IFS
4398f8a31ee4Smrg  if test -z "$ac_cv_path_SED"; then
43994def10e6Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4400f8a31ee4Smrg  fi
4401f8a31ee4Smrgelse
4402f8a31ee4Smrg  ac_cv_path_SED=$SED
4403f8a31ee4Smrgfi
4404f8a31ee4Smrg
4405f8a31ee4Smrgfi
4406f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4407f8a31ee4Smrg$as_echo "$ac_cv_path_SED" >&6; }
4408f8a31ee4Smrg SED="$ac_cv_path_SED"
4409f8a31ee4Smrg  rm -f conftest.sed
4410f8a31ee4Smrg
4411f8a31ee4Smrg
4412f8a31ee4Smrg
4413f8a31ee4Smrg
4414f8a31ee4Smrg
4415f8a31ee4Smrgif  test "x$GCC" = xyes ; then
4416f8a31ee4Smrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4417f8a31ee4Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4418f8a31ee4Smrg-Wbad-function-cast -Wformat=2"
4419f8a31ee4Smrg    case `$CC -dumpversion` in
4420f8a31ee4Smrg    3.4.* | 4.*)
4421f8a31ee4Smrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4422f8a31ee4Smrg	;;
4423f8a31ee4Smrg    esac
4424f8a31ee4Smrgelse
4425f8a31ee4Smrg    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
44264def10e6Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4427f8a31ee4Smrg  SUNCC="yes"
4428f8a31ee4Smrgelse
4429f8a31ee4Smrg  SUNCC="no"
4430f8a31ee4Smrgfi
4431f8a31ee4Smrg
4432f8a31ee4Smrg    if test "x$SUNCC" = "xyes"; then
4433f8a31ee4Smrg	CWARNFLAGS="-v"
4434f8a31ee4Smrg    fi
4435f8a31ee4Smrgfi
4436f8a31ee4Smrg
4437f8a31ee4Smrg
4438f8a31ee4Smrg
4439f8a31ee4Smrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4440f8a31ee4Smrg
4441f8a31ee4Smrg
4442f8a31ee4Smrg
4443f8a31ee4Smrg# Check whether --enable-strict-compilation was given.
4444f8a31ee4Smrgif test "${enable_strict_compilation+set}" = set; then :
4445f8a31ee4Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4446f8a31ee4Smrgelse
4447f8a31ee4Smrg  STRICT_COMPILE=no
4448f8a31ee4Smrgfi
4449f8a31ee4Smrg
4450f8a31ee4Smrgif test "x$STRICT_COMPILE" = "xyes"; then
4451f8a31ee4Smrg	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
44524def10e6Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4453f8a31ee4Smrg  SUNCC="yes"
4454f8a31ee4Smrgelse
4455f8a31ee4Smrg  SUNCC="no"
4456f8a31ee4Smrgfi
4457f8a31ee4Smrg
4458f8a31ee4Smrg	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
44594def10e6Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4460f8a31ee4Smrg  INTELCC="yes"
4461f8a31ee4Smrgelse
4462f8a31ee4Smrg  INTELCC="no"
4463f8a31ee4Smrgfi
4464f8a31ee4Smrg
4465f8a31ee4Smrg	if test "x$GCC" = xyes ; then
4466f8a31ee4Smrg		STRICT_CFLAGS="-pedantic -Werror"
4467f8a31ee4Smrg	elif test "x$SUNCC" = "xyes"; then
4468f8a31ee4Smrg		STRICT_CFLAGS="-errwarn"
4469f8a31ee4Smrg    elif test "x$INTELCC" = "xyes"; then
4470f8a31ee4Smrg		STRICT_CFLAGS="-Werror"
4471f8a31ee4Smrg	fi
4472f8a31ee4Smrgfi
4473f8a31ee4SmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4474f8a31ee4Smrg
4475f8a31ee4Smrg
4476f8a31ee4Smrg
4477f8a31ee4Smrg
4478f8a31ee4Smrgcat >>confdefs.h <<_ACEOF
4479f8a31ee4Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4480f8a31ee4Smrg_ACEOF
4481f8a31ee4Smrg
4482f8a31ee4Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4483f8a31ee4Smrg	if test "x$PVM" = "x"; then
4484f8a31ee4Smrg		PVM="0"
4485f8a31ee4Smrg	fi
4486f8a31ee4Smrg
4487f8a31ee4Smrgcat >>confdefs.h <<_ACEOF
4488f8a31ee4Smrg#define PACKAGE_VERSION_MINOR $PVM
4489f8a31ee4Smrg_ACEOF
4490f8a31ee4Smrg
4491f8a31ee4Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4492f8a31ee4Smrg	if test "x$PVP" = "x"; then
4493f8a31ee4Smrg		PVP="0"
4494f8a31ee4Smrg	fi
4495f8a31ee4Smrg
4496f8a31ee4Smrgcat >>confdefs.h <<_ACEOF
4497f8a31ee4Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
4498f8a31ee4Smrg_ACEOF
4499f8a31ee4Smrg
4500f8a31ee4Smrg
4501f8a31ee4Smrg
4502f8a31ee4SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4503f8a31ee4Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4504f8a31ee4Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4505f8a31ee4Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
4506f8a31ee4Smrg
4507f8a31ee4Smrg
4508f8a31ee4Smrg
4509f8a31ee4Smrg
4510f8a31ee4Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4511f8a31ee4SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4512f8a31ee4Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4513f8a31ee4Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4514f8a31ee4Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4515f8a31ee4Smrg
4516f8a31ee4Smrg
4517f8a31ee4Smrg
4518a0d3b6eaSmrg
4519a0d3b6eaSmrg
4520a0d3b6eaSmrg
4521a0d3b6eaSmrgif test x$APP_MAN_SUFFIX = x    ; then
4522a0d3b6eaSmrg    APP_MAN_SUFFIX=1
4523a0d3b6eaSmrgfi
4524a0d3b6eaSmrgif test x$APP_MAN_DIR = x    ; then
4525a0d3b6eaSmrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4526a0d3b6eaSmrgfi
4527a0d3b6eaSmrg
4528a0d3b6eaSmrgif test x$LIB_MAN_SUFFIX = x    ; then
4529a0d3b6eaSmrg    LIB_MAN_SUFFIX=3
4530a0d3b6eaSmrgfi
4531a0d3b6eaSmrgif test x$LIB_MAN_DIR = x    ; then
4532a0d3b6eaSmrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4533a0d3b6eaSmrgfi
4534a0d3b6eaSmrg
4535a0d3b6eaSmrgif test x$FILE_MAN_SUFFIX = x    ; then
4536a0d3b6eaSmrg    case $host_os in
4537a0d3b6eaSmrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
4538a0d3b6eaSmrg	*)		FILE_MAN_SUFFIX=5  ;;
4539a0d3b6eaSmrg    esac
4540a0d3b6eaSmrgfi
4541a0d3b6eaSmrgif test x$FILE_MAN_DIR = x    ; then
4542a0d3b6eaSmrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4543a0d3b6eaSmrgfi
4544a0d3b6eaSmrg
4545a0d3b6eaSmrgif test x$MISC_MAN_SUFFIX = x    ; then
4546a0d3b6eaSmrg    case $host_os in
4547a0d3b6eaSmrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
4548a0d3b6eaSmrg	*)		MISC_MAN_SUFFIX=7  ;;
4549a0d3b6eaSmrg    esac
4550a0d3b6eaSmrgfi
4551a0d3b6eaSmrgif test x$MISC_MAN_DIR = x    ; then
4552a0d3b6eaSmrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4553a0d3b6eaSmrgfi
4554a0d3b6eaSmrg
4555a0d3b6eaSmrgif test x$DRIVER_MAN_SUFFIX = x    ; then
4556a0d3b6eaSmrg    case $host_os in
4557a0d3b6eaSmrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
4558a0d3b6eaSmrg	*)		DRIVER_MAN_SUFFIX=4  ;;
4559a0d3b6eaSmrg    esac
4560a0d3b6eaSmrgfi
4561a0d3b6eaSmrgif test x$DRIVER_MAN_DIR = x    ; then
4562a0d3b6eaSmrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4563a0d3b6eaSmrgfi
4564a0d3b6eaSmrg
4565a0d3b6eaSmrgif test x$ADMIN_MAN_SUFFIX = x    ; then
4566a0d3b6eaSmrg    case $host_os in
4567a0d3b6eaSmrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
4568a0d3b6eaSmrg	*)		ADMIN_MAN_SUFFIX=8  ;;
4569a0d3b6eaSmrg    esac
4570a0d3b6eaSmrgfi
4571a0d3b6eaSmrgif test x$ADMIN_MAN_DIR = x    ; then
4572a0d3b6eaSmrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4573a0d3b6eaSmrgfi
4574a0d3b6eaSmrg
4575a0d3b6eaSmrg
4576a0d3b6eaSmrg
4577a0d3b6eaSmrg
4578a0d3b6eaSmrg
4579a0d3b6eaSmrg
4580a0d3b6eaSmrg
4581a0d3b6eaSmrg
4582a0d3b6eaSmrg
4583a0d3b6eaSmrg
4584a0d3b6eaSmrg
4585a0d3b6eaSmrg
4586a0d3b6eaSmrg
4587a0d3b6eaSmrg
4588a0d3b6eaSmrg
4589f8a31ee4SmrgXORG_MAN_PAGE="X Version 11"
4590a0d3b6eaSmrg
4591f8a31ee4SmrgMAN_SUBSTS="\
4592f8a31ee4Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4593f8a31ee4Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4594f8a31ee4Smrg	-e 's|__xservername__|Xorg|g' \
4595f8a31ee4Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
4596f8a31ee4Smrg	-e 's|__projectroot__|\$(prefix)|g' \
45974def10e6Smrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
4598f8a31ee4Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4599f8a31ee4Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4600f8a31ee4Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4601f8a31ee4Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4602f8a31ee4Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4603f8a31ee4Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4604a0d3b6eaSmrg
4605f8a31ee4Smrg
4606f8a31ee4Smrg
4607f8a31ee4Smrg# Check whether --enable-silent-rules was given.
4608f8a31ee4Smrgif test "${enable_silent_rules+set}" = set; then :
4609f8a31ee4Smrg  enableval=$enable_silent_rules;
4610a0d3b6eaSmrgfi
4611a0d3b6eaSmrg
4612f8a31ee4Smrgcase $enable_silent_rules in
4613f8a31ee4Smrgyes) AM_DEFAULT_VERBOSITY=0;;
4614f8a31ee4Smrgno)  AM_DEFAULT_VERBOSITY=1;;
4615f8a31ee4Smrg*)   AM_DEFAULT_VERBOSITY=0;;
4616f8a31ee4Smrgesac
4617f8a31ee4SmrgAM_BACKSLASH='\'
4618a0d3b6eaSmrg
4619a0d3b6eaSmrg
4620a0d3b6eaSmrg
4621f8a31ee4Smrgac_config_headers="$ac_config_headers config.h"
4622a0d3b6eaSmrg
4623a0d3b6eaSmrg
46244def10e6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
46254def10e6Smrg$as_echo_n "checking for floor in -lm... " >&6; }
46264def10e6Smrgif ${ac_cv_lib_m_floor+:} false; then :
4627f8a31ee4Smrg  $as_echo_n "(cached) " >&6
4628f8a31ee4Smrgelse
46294def10e6Smrg  ac_check_lib_save_LIBS=$LIBS
46304def10e6SmrgLIBS="-lm  $LIBS"
46314def10e6Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
46324def10e6Smrg/* end confdefs.h.  */
4633f8a31ee4Smrg
46344def10e6Smrg/* Override any GCC internal prototype to avoid an error.
46354def10e6Smrg   Use char because int might match the return type of a GCC
46364def10e6Smrg   builtin and then its argument prototype would still apply.  */
46374def10e6Smrg#ifdef __cplusplus
46384def10e6Smrgextern "C"
46394def10e6Smrg#endif
46404def10e6Smrgchar floor ();
46414def10e6Smrgint
46424def10e6Smrgmain ()
46434def10e6Smrg{
46444def10e6Smrgreturn floor ();
46454def10e6Smrg  ;
46464def10e6Smrg  return 0;
46474def10e6Smrg}
46484def10e6Smrg_ACEOF
46494def10e6Smrgif ac_fn_c_try_link "$LINENO"; then :
46504def10e6Smrg  ac_cv_lib_m_floor=yes
4651f8a31ee4Smrgelse
46524def10e6Smrg  ac_cv_lib_m_floor=no
46534def10e6Smrgfi
46544def10e6Smrgrm -f core conftest.err conftest.$ac_objext \
46554def10e6Smrg    conftest$ac_exeext conftest.$ac_ext
46564def10e6SmrgLIBS=$ac_check_lib_save_LIBS
4657f8a31ee4Smrgfi
46584def10e6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
46594def10e6Smrg$as_echo "$ac_cv_lib_m_floor" >&6; }
46604def10e6Smrgif test "x$ac_cv_lib_m_floor" = xyes; then :
46614def10e6Smrg  cat >>confdefs.h <<_ACEOF
46624def10e6Smrg#define HAVE_LIBM 1
46634def10e6Smrg_ACEOF
4664f8a31ee4Smrg
46654def10e6Smrg  LIBS="-lm $LIBS"
4666f8a31ee4Smrg
4667f8a31ee4Smrgfi
4668f8a31ee4Smrg
46694def10e6Smrg
46704def10e6Smrg# Checks for pkg-config packages
46714def10e6Smrg
46724def10e6Smrgpkg_failed=no
46734def10e6Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRANDR" >&5
46744def10e6Smrg$as_echo_n "checking for XRANDR... " >&6; }
46754def10e6Smrg
46764def10e6Smrgif test -n "$XRANDR_CFLAGS"; then
46774def10e6Smrg    pkg_cv_XRANDR_CFLAGS="$XRANDR_CFLAGS"
46784def10e6Smrg elif test -n "$PKG_CONFIG"; then
46794def10e6Smrg    if test -n "$PKG_CONFIG" && \
46804def10e6Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.3 xrender x11\""; } >&5
46814def10e6Smrg  ($PKG_CONFIG --exists --print-errors "xrandr >= 1.3 xrender x11") 2>&5
46824def10e6Smrg  ac_status=$?
46834def10e6Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46844def10e6Smrg  test $ac_status = 0; }; then
46854def10e6Smrg  pkg_cv_XRANDR_CFLAGS=`$PKG_CONFIG --cflags "xrandr >= 1.3 xrender x11" 2>/dev/null`
46864def10e6Smrgelse
46874def10e6Smrg  pkg_failed=yes
4688f8a31ee4Smrgfi
46894def10e6Smrg else
46904def10e6Smrg    pkg_failed=untried
4691f8a31ee4Smrgfi
46924def10e6Smrgif test -n "$XRANDR_LIBS"; then
46934def10e6Smrg    pkg_cv_XRANDR_LIBS="$XRANDR_LIBS"
46944def10e6Smrg elif test -n "$PKG_CONFIG"; then
46954def10e6Smrg    if test -n "$PKG_CONFIG" && \
46964def10e6Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.3 xrender x11\""; } >&5
46974def10e6Smrg  ($PKG_CONFIG --exists --print-errors "xrandr >= 1.3 xrender x11") 2>&5
46984def10e6Smrg  ac_status=$?
46994def10e6Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47004def10e6Smrg  test $ac_status = 0; }; then
47014def10e6Smrg  pkg_cv_XRANDR_LIBS=`$PKG_CONFIG --libs "xrandr >= 1.3 xrender x11" 2>/dev/null`
4702f8a31ee4Smrgelse
47034def10e6Smrg  pkg_failed=yes
47044def10e6Smrgfi
47054def10e6Smrg else
47064def10e6Smrg    pkg_failed=untried
4707f8a31ee4Smrgfi
4708f8a31ee4Smrg
47094def10e6Smrg
47104def10e6Smrg
47114def10e6Smrgif test $pkg_failed = yes; then
47124def10e6Smrg
47134def10e6Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47144def10e6Smrg        _pkg_short_errors_supported=yes
4715f8a31ee4Smrgelse
47164def10e6Smrg        _pkg_short_errors_supported=no
4717f8a31ee4Smrgfi
47184def10e6Smrg        if test $_pkg_short_errors_supported = yes; then
47194def10e6Smrg	        XRANDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xrandr >= 1.3 xrender x11" 2>&1`
47204def10e6Smrg        else
47214def10e6Smrg	        XRANDR_PKG_ERRORS=`$PKG_CONFIG --print-errors "xrandr >= 1.3 xrender x11" 2>&1`
47224def10e6Smrg        fi
47234def10e6Smrg	# Put the nasty error message in config.log where it belongs
47244def10e6Smrg	echo "$XRANDR_PKG_ERRORS" >&5
4725f8a31ee4Smrg
47264def10e6Smrg	as_fn_error $? "Package requirements (xrandr >= 1.3 xrender x11) were not met:
4727f8a31ee4Smrg
47284def10e6Smrg$XRANDR_PKG_ERRORS
47294def10e6Smrg
47304def10e6SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
47314def10e6Smrginstalled software in a non-standard prefix.
47324def10e6Smrg
47334def10e6SmrgAlternatively, you may set the environment variables XRANDR_CFLAGS
47344def10e6Smrgand XRANDR_LIBS to avoid the need to call pkg-config.
47354def10e6SmrgSee the pkg-config man page for more details.
47364def10e6Smrg" "$LINENO" 5
47374def10e6Smrgelif test $pkg_failed = untried; then
47384def10e6Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47394def10e6Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47404def10e6Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
47414def10e6Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
47424def10e6Smrgpath to pkg-config.
47434def10e6Smrg
47444def10e6SmrgAlternatively, you may set the environment variables XRANDR_CFLAGS
47454def10e6Smrgand XRANDR_LIBS to avoid the need to call pkg-config.
47464def10e6SmrgSee the pkg-config man page for more details.
47474def10e6Smrg
47484def10e6SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
47494def10e6SmrgSee \`config.log' for more details" "$LINENO" 5; }
4750f8a31ee4Smrgelse
47514def10e6Smrg	XRANDR_CFLAGS=$pkg_cv_XRANDR_CFLAGS
47524def10e6Smrg	XRANDR_LIBS=$pkg_cv_XRANDR_LIBS
47534def10e6Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47544def10e6Smrg$as_echo "yes" >&6; }
47554def10e6Smrg	:
4756f8a31ee4Smrgfi
4757f8a31ee4Smrg
47584def10e6Smrgac_config_files="$ac_config_files Makefile"
4759a0d3b6eaSmrg
4760a0d3b6eaSmrgcat >confcache <<\_ACEOF
4761a0d3b6eaSmrg# This file is a shell script that caches the results of configure
4762a0d3b6eaSmrg# tests run on this system so they can be shared between configure
4763a0d3b6eaSmrg# scripts and configure runs, see configure's option --config-cache.
4764a0d3b6eaSmrg# It is not useful on other systems.  If it contains results you don't
4765a0d3b6eaSmrg# want to keep, you may remove or edit it.
4766a0d3b6eaSmrg#
4767a0d3b6eaSmrg# config.status only pays attention to the cache file if you give it
4768a0d3b6eaSmrg# the --recheck option to rerun configure.
4769a0d3b6eaSmrg#
4770a0d3b6eaSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
4771a0d3b6eaSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
4772a0d3b6eaSmrg# following values.
4773a0d3b6eaSmrg
4774a0d3b6eaSmrg_ACEOF
4775a0d3b6eaSmrg
4776a0d3b6eaSmrg# The following way of writing the cache mishandles newlines in values,
4777a0d3b6eaSmrg# but we know of no workaround that is simple, portable, and efficient.
4778a0d3b6eaSmrg# So, we kill variables containing newlines.
4779a0d3b6eaSmrg# Ultrix sh set writes to stderr and can't be redirected directly,
4780a0d3b6eaSmrg# and sets the high bit in the cache file unless we assign to the vars.
4781a0d3b6eaSmrg(
4782a0d3b6eaSmrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4783a0d3b6eaSmrg    eval ac_val=\$$ac_var
4784a0d3b6eaSmrg    case $ac_val in #(
4785a0d3b6eaSmrg    *${as_nl}*)
4786a0d3b6eaSmrg      case $ac_var in #(
4787f8a31ee4Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
478862df5ad0Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4789a0d3b6eaSmrg      esac
4790a0d3b6eaSmrg      case $ac_var in #(
4791a0d3b6eaSmrg      _ | IFS | as_nl) ;; #(
479262df5ad0Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4793f8a31ee4Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
4794a0d3b6eaSmrg      esac ;;
4795a0d3b6eaSmrg    esac
4796a0d3b6eaSmrg  done
4797a0d3b6eaSmrg
4798a0d3b6eaSmrg  (set) 2>&1 |
4799a0d3b6eaSmrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
4800a0d3b6eaSmrg    *${as_nl}ac_space=\ *)
4801f8a31ee4Smrg      # `set' does not quote correctly, so add quotes: double-quote
4802f8a31ee4Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
4803a0d3b6eaSmrg      sed -n \
4804a0d3b6eaSmrg	"s/'/'\\\\''/g;
4805a0d3b6eaSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4806a0d3b6eaSmrg      ;; #(
4807a0d3b6eaSmrg    *)
4808a0d3b6eaSmrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
4809a0d3b6eaSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4810a0d3b6eaSmrg      ;;
4811a0d3b6eaSmrg    esac |
4812a0d3b6eaSmrg    sort
4813a0d3b6eaSmrg) |
4814a0d3b6eaSmrg  sed '
4815a0d3b6eaSmrg     /^ac_cv_env_/b end
4816a0d3b6eaSmrg     t clear
4817a0d3b6eaSmrg     :clear
4818a0d3b6eaSmrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4819a0d3b6eaSmrg     t end
4820a0d3b6eaSmrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4821a0d3b6eaSmrg     :end' >>confcache
4822a0d3b6eaSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4823a0d3b6eaSmrg  if test -w "$cache_file"; then
48244def10e6Smrg    if test "x$cache_file" != "x/dev/null"; then
4825f8a31ee4Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
482662df5ad0Smrg$as_echo "$as_me: updating cache $cache_file" >&6;}
48274def10e6Smrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
48284def10e6Smrg	cat confcache >"$cache_file"
48294def10e6Smrg      else
48304def10e6Smrg        case $cache_file in #(
48314def10e6Smrg        */* | ?:*)
48324def10e6Smrg	  mv -f confcache "$cache_file"$$ &&
48334def10e6Smrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
48344def10e6Smrg        *)
48354def10e6Smrg	  mv -f confcache "$cache_file" ;;
48364def10e6Smrg	esac
48374def10e6Smrg      fi
48384def10e6Smrg    fi
4839a0d3b6eaSmrg  else
4840f8a31ee4Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
484162df5ad0Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4842a0d3b6eaSmrg  fi
4843a0d3b6eaSmrgfi
4844a0d3b6eaSmrgrm -f confcache
4845a0d3b6eaSmrg
4846a0d3b6eaSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
4847a0d3b6eaSmrg# Let make expand exec_prefix.
4848a0d3b6eaSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4849a0d3b6eaSmrg
4850a0d3b6eaSmrgDEFS=-DHAVE_CONFIG_H
4851a0d3b6eaSmrg
4852a0d3b6eaSmrgac_libobjs=
4853a0d3b6eaSmrgac_ltlibobjs=
48544def10e6SmrgU=
4855a0d3b6eaSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4856a0d3b6eaSmrg  # 1. Remove the extension, and $U if already installed.
4857a0d3b6eaSmrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
485862df5ad0Smrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4859a0d3b6eaSmrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
4860a0d3b6eaSmrg  #    will be set to the directory where LIBOBJS objects are built.
4861f8a31ee4Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4862f8a31ee4Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4863a0d3b6eaSmrgdone
4864a0d3b6eaSmrgLIBOBJS=$ac_libobjs
4865a0d3b6eaSmrg
4866a0d3b6eaSmrgLTLIBOBJS=$ac_ltlibobjs
4867a0d3b6eaSmrg
4868a0d3b6eaSmrg
4869f8a31ee4Smrg if test -n "$EXEEXT"; then
4870f8a31ee4Smrg  am__EXEEXT_TRUE=
4871f8a31ee4Smrg  am__EXEEXT_FALSE='#'
4872f8a31ee4Smrgelse
4873f8a31ee4Smrg  am__EXEEXT_TRUE='#'
4874f8a31ee4Smrg  am__EXEEXT_FALSE=
4875f8a31ee4Smrgfi
4876f8a31ee4Smrg
4877a0d3b6eaSmrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
48784def10e6Smrg  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
4879f8a31ee4SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
4880a0d3b6eaSmrgfi
4881a0d3b6eaSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
48824def10e6Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
4883f8a31ee4SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
4884f8a31ee4Smrgfi
4885f8a31ee4Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
48864def10e6Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
4887f8a31ee4SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
4888a0d3b6eaSmrgfi
4889a0d3b6eaSmrg
48904def10e6Smrg: "${CONFIG_STATUS=./config.status}"
489162df5ad0Smrgac_write_fail=0
4892a0d3b6eaSmrgac_clean_files_save=$ac_clean_files
4893a0d3b6eaSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
4894f8a31ee4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
489562df5ad0Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4896f8a31ee4Smrgas_write_fail=0
4897f8a31ee4Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4898a0d3b6eaSmrg#! $SHELL
4899a0d3b6eaSmrg# Generated by $as_me.
4900a0d3b6eaSmrg# Run this file to recreate the current configuration.
4901a0d3b6eaSmrg# Compiler output produced by configure, useful for debugging
4902a0d3b6eaSmrg# configure, is in config.log if it exists.
4903a0d3b6eaSmrg
4904a0d3b6eaSmrgdebug=false
4905a0d3b6eaSmrgac_cs_recheck=false
4906a0d3b6eaSmrgac_cs_silent=false
4907a0d3b6eaSmrg
4908f8a31ee4SmrgSHELL=\${CONFIG_SHELL-$SHELL}
4909f8a31ee4Smrgexport SHELL
4910f8a31ee4Smrg_ASEOF
4911f8a31ee4Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4912f8a31ee4Smrg## -------------------- ##
4913f8a31ee4Smrg## M4sh Initialization. ##
4914f8a31ee4Smrg## -------------------- ##
4915a0d3b6eaSmrg
4916a0d3b6eaSmrg# Be more Bourne compatible
4917a0d3b6eaSmrgDUALCASE=1; export DUALCASE # for MKS sh
4918f8a31ee4Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4919a0d3b6eaSmrg  emulate sh
4920a0d3b6eaSmrg  NULLCMD=:
492162df5ad0Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4922a0d3b6eaSmrg  # is contrary to our usage.  Disable this feature.
4923a0d3b6eaSmrg  alias -g '${1+"$@"}'='"$@"'
4924a0d3b6eaSmrg  setopt NO_GLOB_SUBST
4925a0d3b6eaSmrgelse
4926f8a31ee4Smrg  case `(set -o) 2>/dev/null` in #(
4927f8a31ee4Smrg  *posix*) :
4928f8a31ee4Smrg    set -o posix ;; #(
4929f8a31ee4Smrg  *) :
4930f8a31ee4Smrg     ;;
4931a0d3b6eaSmrgesac
4932a0d3b6eaSmrgfi
4933a0d3b6eaSmrg
4934a0d3b6eaSmrg
493562df5ad0Smrgas_nl='
493662df5ad0Smrg'
493762df5ad0Smrgexport as_nl
493862df5ad0Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
493962df5ad0Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
494062df5ad0Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
494162df5ad0Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4942f8a31ee4Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
4943f8a31ee4Smrg# but without wasting forks for bash or zsh.
4944f8a31ee4Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
4945f8a31ee4Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4946f8a31ee4Smrg  as_echo='print -r --'
4947f8a31ee4Smrg  as_echo_n='print -rn --'
4948f8a31ee4Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
494962df5ad0Smrg  as_echo='printf %s\n'
495062df5ad0Smrg  as_echo_n='printf %s'
495162df5ad0Smrgelse
495262df5ad0Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
495362df5ad0Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
495462df5ad0Smrg    as_echo_n='/usr/ucb/echo -n'
4955a0d3b6eaSmrg  else
495662df5ad0Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
495762df5ad0Smrg    as_echo_n_body='eval
495862df5ad0Smrg      arg=$1;
4959f8a31ee4Smrg      case $arg in #(
496062df5ad0Smrg      *"$as_nl"*)
496162df5ad0Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
496262df5ad0Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
496362df5ad0Smrg      esac;
496462df5ad0Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
496562df5ad0Smrg    '
496662df5ad0Smrg    export as_echo_n_body
496762df5ad0Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
4968a0d3b6eaSmrg  fi
496962df5ad0Smrg  export as_echo_body
497062df5ad0Smrg  as_echo='sh -c $as_echo_body as_echo'
497162df5ad0Smrgfi
497262df5ad0Smrg
497362df5ad0Smrg# The user is always right.
497462df5ad0Smrgif test "${PATH_SEPARATOR+set}" != set; then
497562df5ad0Smrg  PATH_SEPARATOR=:
497662df5ad0Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
497762df5ad0Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
497862df5ad0Smrg      PATH_SEPARATOR=';'
497962df5ad0Smrg  }
4980a0d3b6eaSmrgfi
4981a0d3b6eaSmrg
4982a0d3b6eaSmrg
4983a0d3b6eaSmrg# IFS
4984a0d3b6eaSmrg# We need space, tab and new line, in precisely that order.  Quoting is
4985a0d3b6eaSmrg# there to prevent editors from complaining about space-tab.
4986a0d3b6eaSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4987a0d3b6eaSmrg# splitting by setting IFS to empty value.)
4988a0d3b6eaSmrgIFS=" ""	$as_nl"
4989a0d3b6eaSmrg
4990a0d3b6eaSmrg# Find who we are.  Look in the path if we contain no directory separator.
49914def10e6Smrgas_myself=
4992f8a31ee4Smrgcase $0 in #((
4993a0d3b6eaSmrg  *[\\/]* ) as_myself=$0 ;;
4994a0d3b6eaSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995a0d3b6eaSmrgfor as_dir in $PATH
4996a0d3b6eaSmrgdo
4997a0d3b6eaSmrg  IFS=$as_save_IFS
4998a0d3b6eaSmrg  test -z "$as_dir" && as_dir=.
4999f8a31ee4Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5000f8a31ee4Smrg  done
5001a0d3b6eaSmrgIFS=$as_save_IFS
5002a0d3b6eaSmrg
5003a0d3b6eaSmrg     ;;
5004a0d3b6eaSmrgesac
5005a0d3b6eaSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
5006a0d3b6eaSmrg# in which case we are not to be found in the path.
5007a0d3b6eaSmrgif test "x$as_myself" = x; then
5008a0d3b6eaSmrg  as_myself=$0
5009a0d3b6eaSmrgfi
5010a0d3b6eaSmrgif test ! -f "$as_myself"; then
501162df5ad0Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5012f8a31ee4Smrg  exit 1
5013a0d3b6eaSmrgfi
5014a0d3b6eaSmrg
5015f8a31ee4Smrg# Unset variables that we do not need and which cause bugs (e.g. in
5016f8a31ee4Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5017f8a31ee4Smrg# suppresses any "Segmentation fault" message there.  '((' could
5018f8a31ee4Smrg# trigger a bug in pdksh 5.2.14.
5019f8a31ee4Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
5020f8a31ee4Smrgdo eval test x\${$as_var+set} = xset \
5021f8a31ee4Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5022a0d3b6eaSmrgdone
5023a0d3b6eaSmrgPS1='$ '
5024a0d3b6eaSmrgPS2='> '
5025a0d3b6eaSmrgPS4='+ '
5026a0d3b6eaSmrg
5027a0d3b6eaSmrg# NLS nuisances.
502862df5ad0SmrgLC_ALL=C
502962df5ad0Smrgexport LC_ALL
503062df5ad0SmrgLANGUAGE=C
503162df5ad0Smrgexport LANGUAGE
5032a0d3b6eaSmrg
5033f8a31ee4Smrg# CDPATH.
5034f8a31ee4Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5035f8a31ee4Smrg
5036f8a31ee4Smrg
50374def10e6Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
50384def10e6Smrg# ----------------------------------------
5039f8a31ee4Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5040f8a31ee4Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
50414def10e6Smrg# script with STATUS, using 1 if that was 0.
5042f8a31ee4Smrgas_fn_error ()
5043f8a31ee4Smrg{
50444def10e6Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
50454def10e6Smrg  if test "$4"; then
50464def10e6Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
50474def10e6Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5048f8a31ee4Smrg  fi
50494def10e6Smrg  $as_echo "$as_me: error: $2" >&2
5050f8a31ee4Smrg  as_fn_exit $as_status
5051f8a31ee4Smrg} # as_fn_error
5052f8a31ee4Smrg
5053f8a31ee4Smrg
5054f8a31ee4Smrg# as_fn_set_status STATUS
5055f8a31ee4Smrg# -----------------------
5056f8a31ee4Smrg# Set $? to STATUS, without forking.
5057f8a31ee4Smrgas_fn_set_status ()
5058f8a31ee4Smrg{
5059f8a31ee4Smrg  return $1
5060f8a31ee4Smrg} # as_fn_set_status
5061f8a31ee4Smrg
5062f8a31ee4Smrg# as_fn_exit STATUS
5063f8a31ee4Smrg# -----------------
5064f8a31ee4Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5065f8a31ee4Smrgas_fn_exit ()
5066f8a31ee4Smrg{
5067f8a31ee4Smrg  set +e
5068f8a31ee4Smrg  as_fn_set_status $1
5069f8a31ee4Smrg  exit $1
5070f8a31ee4Smrg} # as_fn_exit
5071f8a31ee4Smrg
5072f8a31ee4Smrg# as_fn_unset VAR
5073f8a31ee4Smrg# ---------------
5074f8a31ee4Smrg# Portably unset VAR.
5075f8a31ee4Smrgas_fn_unset ()
5076f8a31ee4Smrg{
5077f8a31ee4Smrg  { eval $1=; unset $1;}
5078f8a31ee4Smrg}
5079f8a31ee4Smrgas_unset=as_fn_unset
5080f8a31ee4Smrg# as_fn_append VAR VALUE
5081f8a31ee4Smrg# ----------------------
5082f8a31ee4Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
5083f8a31ee4Smrg# advantage of any shell optimizations that allow amortized linear growth over
5084f8a31ee4Smrg# repeated appends, instead of the typical quadratic growth present in naive
5085f8a31ee4Smrg# implementations.
5086f8a31ee4Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5087f8a31ee4Smrg  eval 'as_fn_append ()
5088f8a31ee4Smrg  {
5089f8a31ee4Smrg    eval $1+=\$2
5090f8a31ee4Smrg  }'
5091f8a31ee4Smrgelse
5092f8a31ee4Smrg  as_fn_append ()
5093f8a31ee4Smrg  {
5094f8a31ee4Smrg    eval $1=\$$1\$2
5095f8a31ee4Smrg  }
5096f8a31ee4Smrgfi # as_fn_append
5097f8a31ee4Smrg
5098f8a31ee4Smrg# as_fn_arith ARG...
5099f8a31ee4Smrg# ------------------
5100f8a31ee4Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
5101f8a31ee4Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
5102f8a31ee4Smrg# must be portable across $(()) and expr.
5103f8a31ee4Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5104f8a31ee4Smrg  eval 'as_fn_arith ()
5105f8a31ee4Smrg  {
5106f8a31ee4Smrg    as_val=$(( $* ))
5107f8a31ee4Smrg  }'
5108f8a31ee4Smrgelse
5109f8a31ee4Smrg  as_fn_arith ()
5110f8a31ee4Smrg  {
5111f8a31ee4Smrg    as_val=`expr "$@" || test $? -eq 1`
5112f8a31ee4Smrg  }
5113f8a31ee4Smrgfi # as_fn_arith
5114f8a31ee4Smrg
5115f8a31ee4Smrg
5116a0d3b6eaSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
5117a0d3b6eaSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5118a0d3b6eaSmrg  as_expr=expr
5119a0d3b6eaSmrgelse
5120a0d3b6eaSmrg  as_expr=false
5121a0d3b6eaSmrgfi
5122a0d3b6eaSmrg
5123a0d3b6eaSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5124a0d3b6eaSmrg  as_basename=basename
5125a0d3b6eaSmrgelse
5126a0d3b6eaSmrg  as_basename=false
5127a0d3b6eaSmrgfi
5128a0d3b6eaSmrg
5129f8a31ee4Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5130f8a31ee4Smrg  as_dirname=dirname
5131f8a31ee4Smrgelse
5132f8a31ee4Smrg  as_dirname=false
5133f8a31ee4Smrgfi
5134a0d3b6eaSmrg
5135a0d3b6eaSmrgas_me=`$as_basename -- "$0" ||
5136a0d3b6eaSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5137a0d3b6eaSmrg	 X"$0" : 'X\(//\)$' \| \
5138a0d3b6eaSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
513962df5ad0Smrg$as_echo X/"$0" |
5140a0d3b6eaSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
5141a0d3b6eaSmrg	    s//\1/
5142a0d3b6eaSmrg	    q
5143a0d3b6eaSmrg	  }
5144a0d3b6eaSmrg	  /^X\/\(\/\/\)$/{
5145a0d3b6eaSmrg	    s//\1/
5146a0d3b6eaSmrg	    q
5147a0d3b6eaSmrg	  }
5148a0d3b6eaSmrg	  /^X\/\(\/\).*/{
5149a0d3b6eaSmrg	    s//\1/
5150a0d3b6eaSmrg	    q
5151a0d3b6eaSmrg	  }
5152a0d3b6eaSmrg	  s/.*/./; q'`
5153a0d3b6eaSmrg
5154f8a31ee4Smrg# Avoid depending upon Character Ranges.
5155f8a31ee4Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
5156f8a31ee4Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5157f8a31ee4Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
5158f8a31ee4Smrgas_cr_digits='0123456789'
5159f8a31ee4Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
5160a0d3b6eaSmrg
5161a0d3b6eaSmrgECHO_C= ECHO_N= ECHO_T=
5162f8a31ee4Smrgcase `echo -n x` in #(((((
5163a0d3b6eaSmrg-n*)
5164f8a31ee4Smrg  case `echo 'xy\c'` in
5165a0d3b6eaSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5166f8a31ee4Smrg  xy)  ECHO_C='\c';;
5167f8a31ee4Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5168f8a31ee4Smrg       ECHO_T='	';;
5169a0d3b6eaSmrg  esac;;
5170a0d3b6eaSmrg*)
5171a0d3b6eaSmrg  ECHO_N='-n';;
5172a0d3b6eaSmrgesac
5173a0d3b6eaSmrg
5174a0d3b6eaSmrgrm -f conf$$ conf$$.exe conf$$.file
5175a0d3b6eaSmrgif test -d conf$$.dir; then
5176a0d3b6eaSmrg  rm -f conf$$.dir/conf$$.file
5177a0d3b6eaSmrgelse
5178a0d3b6eaSmrg  rm -f conf$$.dir
517962df5ad0Smrg  mkdir conf$$.dir 2>/dev/null
518062df5ad0Smrgfi
518162df5ad0Smrgif (echo >conf$$.file) 2>/dev/null; then
518262df5ad0Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
518362df5ad0Smrg    as_ln_s='ln -s'
518462df5ad0Smrg    # ... but there are two gotchas:
518562df5ad0Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
518662df5ad0Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
518762df5ad0Smrg    # In both cases, we have to default to `cp -p'.
518862df5ad0Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
518962df5ad0Smrg      as_ln_s='cp -p'
519062df5ad0Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
519162df5ad0Smrg    as_ln_s=ln
519262df5ad0Smrg  else
5193a0d3b6eaSmrg    as_ln_s='cp -p'
519462df5ad0Smrg  fi
5195a0d3b6eaSmrgelse
5196a0d3b6eaSmrg  as_ln_s='cp -p'
5197a0d3b6eaSmrgfi
5198a0d3b6eaSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5199a0d3b6eaSmrgrmdir conf$$.dir 2>/dev/null
5200a0d3b6eaSmrg
5201f8a31ee4Smrg
5202f8a31ee4Smrg# as_fn_mkdir_p
5203f8a31ee4Smrg# -------------
5204f8a31ee4Smrg# Create "$as_dir" as a directory, including parents if necessary.
5205f8a31ee4Smrgas_fn_mkdir_p ()
5206f8a31ee4Smrg{
5207f8a31ee4Smrg
5208f8a31ee4Smrg  case $as_dir in #(
5209f8a31ee4Smrg  -*) as_dir=./$as_dir;;
5210f8a31ee4Smrg  esac
5211f8a31ee4Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
5212f8a31ee4Smrg    as_dirs=
5213f8a31ee4Smrg    while :; do
5214f8a31ee4Smrg      case $as_dir in #(
5215f8a31ee4Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5216f8a31ee4Smrg      *) as_qdir=$as_dir;;
5217f8a31ee4Smrg      esac
5218f8a31ee4Smrg      as_dirs="'$as_qdir' $as_dirs"
5219f8a31ee4Smrg      as_dir=`$as_dirname -- "$as_dir" ||
5220f8a31ee4Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5221f8a31ee4Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
5222f8a31ee4Smrg	 X"$as_dir" : 'X\(//\)$' \| \
5223f8a31ee4Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5224f8a31ee4Smrg$as_echo X"$as_dir" |
5225f8a31ee4Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5226f8a31ee4Smrg	    s//\1/
5227f8a31ee4Smrg	    q
5228f8a31ee4Smrg	  }
5229f8a31ee4Smrg	  /^X\(\/\/\)[^/].*/{
5230f8a31ee4Smrg	    s//\1/
5231f8a31ee4Smrg	    q
5232f8a31ee4Smrg	  }
5233f8a31ee4Smrg	  /^X\(\/\/\)$/{
5234f8a31ee4Smrg	    s//\1/
5235f8a31ee4Smrg	    q
5236f8a31ee4Smrg	  }
5237f8a31ee4Smrg	  /^X\(\/\).*/{
5238f8a31ee4Smrg	    s//\1/
5239f8a31ee4Smrg	    q
5240f8a31ee4Smrg	  }
5241f8a31ee4Smrg	  s/.*/./; q'`
5242f8a31ee4Smrg      test -d "$as_dir" && break
5243f8a31ee4Smrg    done
5244f8a31ee4Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
52454def10e6Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5246f8a31ee4Smrg
5247f8a31ee4Smrg
5248f8a31ee4Smrg} # as_fn_mkdir_p
5249a0d3b6eaSmrgif mkdir -p . 2>/dev/null; then
5250f8a31ee4Smrg  as_mkdir_p='mkdir -p "$as_dir"'
5251a0d3b6eaSmrgelse
5252a0d3b6eaSmrg  test -d ./-p && rmdir ./-p
5253a0d3b6eaSmrg  as_mkdir_p=false
5254a0d3b6eaSmrgfi
5255a0d3b6eaSmrg
5256a0d3b6eaSmrgif test -x / >/dev/null 2>&1; then
5257a0d3b6eaSmrg  as_test_x='test -x'
5258a0d3b6eaSmrgelse
5259a0d3b6eaSmrg  if ls -dL / >/dev/null 2>&1; then
5260a0d3b6eaSmrg    as_ls_L_option=L
5261a0d3b6eaSmrg  else
5262a0d3b6eaSmrg    as_ls_L_option=
5263a0d3b6eaSmrg  fi
5264a0d3b6eaSmrg  as_test_x='
5265a0d3b6eaSmrg    eval sh -c '\''
5266a0d3b6eaSmrg      if test -d "$1"; then
526762df5ad0Smrg	test -d "$1/.";
5268a0d3b6eaSmrg      else
5269f8a31ee4Smrg	case $1 in #(
527062df5ad0Smrg	-*)set "./$1";;
5271a0d3b6eaSmrg	esac;
5272f8a31ee4Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5273a0d3b6eaSmrg	???[sx]*):;;*)false;;esac;fi
5274a0d3b6eaSmrg    '\'' sh
5275a0d3b6eaSmrg  '
5276a0d3b6eaSmrgfi
5277a0d3b6eaSmrgas_executable_p=$as_test_x
5278a0d3b6eaSmrg
5279a0d3b6eaSmrg# Sed expression to map a string onto a valid CPP name.
5280a0d3b6eaSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5281a0d3b6eaSmrg
5282a0d3b6eaSmrg# Sed expression to map a string onto a valid variable name.
5283a0d3b6eaSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5284a0d3b6eaSmrg
5285a0d3b6eaSmrg
5286a0d3b6eaSmrgexec 6>&1
5287f8a31ee4Smrg## ----------------------------------- ##
5288f8a31ee4Smrg## Main body of $CONFIG_STATUS script. ##
5289f8a31ee4Smrg## ----------------------------------- ##
5290f8a31ee4Smrg_ASEOF
5291f8a31ee4Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5292a0d3b6eaSmrg
5293f8a31ee4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5294f8a31ee4Smrg# Save the log message, to keep $0 and so on meaningful, and to
5295a0d3b6eaSmrg# report actual input values of CONFIG_FILES etc. instead of their
5296a0d3b6eaSmrg# values after options handling.
5297a0d3b6eaSmrgac_log="
52984def10e6SmrgThis file was extended by xrandr $as_me 1.3.4, which was
52994def10e6Smrggenerated by GNU Autoconf 2.68.  Invocation command line was
5300a0d3b6eaSmrg
5301a0d3b6eaSmrg  CONFIG_FILES    = $CONFIG_FILES
5302a0d3b6eaSmrg  CONFIG_HEADERS  = $CONFIG_HEADERS
5303a0d3b6eaSmrg  CONFIG_LINKS    = $CONFIG_LINKS
5304a0d3b6eaSmrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
5305a0d3b6eaSmrg  $ $0 $@
5306a0d3b6eaSmrg
5307a0d3b6eaSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
5308a0d3b6eaSmrg"
5309a0d3b6eaSmrg
5310a0d3b6eaSmrg_ACEOF
5311a0d3b6eaSmrg
531262df5ad0Smrgcase $ac_config_files in *"
531362df5ad0Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
531462df5ad0Smrgesac
531562df5ad0Smrg
531662df5ad0Smrgcase $ac_config_headers in *"
531762df5ad0Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
531862df5ad0Smrgesac
531962df5ad0Smrg
532062df5ad0Smrg
532162df5ad0Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5322a0d3b6eaSmrg# Files that config.status was made for.
5323a0d3b6eaSmrgconfig_files="$ac_config_files"
5324a0d3b6eaSmrgconfig_headers="$ac_config_headers"
5325a0d3b6eaSmrgconfig_commands="$ac_config_commands"
5326a0d3b6eaSmrg
5327a0d3b6eaSmrg_ACEOF
5328a0d3b6eaSmrg
532962df5ad0Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5330a0d3b6eaSmrgac_cs_usage="\
5331f8a31ee4Smrg\`$as_me' instantiates files and other configuration actions
5332f8a31ee4Smrgfrom templates according to the current configuration.  Unless the files
5333f8a31ee4Smrgand actions are specified as TAGs, all are instantiated by default.
5334a0d3b6eaSmrg
5335f8a31ee4SmrgUsage: $0 [OPTION]... [TAG]...
5336a0d3b6eaSmrg
5337a0d3b6eaSmrg  -h, --help       print this help, then exit
5338a0d3b6eaSmrg  -V, --version    print version number and configuration settings, then exit
5339f8a31ee4Smrg      --config     print configuration, then exit
534062df5ad0Smrg  -q, --quiet, --silent
534162df5ad0Smrg                   do not print progress messages
5342a0d3b6eaSmrg  -d, --debug      don't remove temporary files
5343a0d3b6eaSmrg      --recheck    update $as_me by reconfiguring in the same conditions
534462df5ad0Smrg      --file=FILE[:TEMPLATE]
534562df5ad0Smrg                   instantiate the configuration file FILE
534662df5ad0Smrg      --header=FILE[:TEMPLATE]
534762df5ad0Smrg                   instantiate the configuration header FILE
5348a0d3b6eaSmrg
5349a0d3b6eaSmrgConfiguration files:
5350a0d3b6eaSmrg$config_files
5351a0d3b6eaSmrg
5352a0d3b6eaSmrgConfiguration headers:
5353a0d3b6eaSmrg$config_headers
5354a0d3b6eaSmrg
5355a0d3b6eaSmrgConfiguration commands:
5356a0d3b6eaSmrg$config_commands
5357a0d3b6eaSmrg
5358f8a31ee4SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
5359a0d3b6eaSmrg
5360a0d3b6eaSmrg_ACEOF
536162df5ad0Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5362f8a31ee4Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5363a0d3b6eaSmrgac_cs_version="\\
53644def10e6Smrgxrandr config.status 1.3.4
53654def10e6Smrgconfigured by $0, generated by GNU Autoconf 2.68,
5366f8a31ee4Smrg  with options \\"\$ac_cs_config\\"
5367a0d3b6eaSmrg
53684def10e6SmrgCopyright (C) 2010 Free Software Foundation, Inc.
5369a0d3b6eaSmrgThis config.status script is free software; the Free Software Foundation
5370a0d3b6eaSmrggives unlimited permission to copy, distribute and modify it."
5371a0d3b6eaSmrg
5372a0d3b6eaSmrgac_pwd='$ac_pwd'
5373a0d3b6eaSmrgsrcdir='$srcdir'
5374a0d3b6eaSmrgINSTALL='$INSTALL'
5375a0d3b6eaSmrgMKDIR_P='$MKDIR_P'
537662df5ad0SmrgAWK='$AWK'
537762df5ad0Smrgtest -n "\$AWK" || AWK=awk
5378a0d3b6eaSmrg_ACEOF
5379a0d3b6eaSmrg
538062df5ad0Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
538162df5ad0Smrg# The default lists apply if the user does not specify any file.
5382a0d3b6eaSmrgac_need_defaults=:
5383a0d3b6eaSmrgwhile test $# != 0
5384a0d3b6eaSmrgdo
5385a0d3b6eaSmrg  case $1 in
53864def10e6Smrg  --*=?*)
5387a0d3b6eaSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5388a0d3b6eaSmrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5389a0d3b6eaSmrg    ac_shift=:
5390a0d3b6eaSmrg    ;;
53914def10e6Smrg  --*=)
53924def10e6Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
53934def10e6Smrg    ac_optarg=
53944def10e6Smrg    ac_shift=:
53954def10e6Smrg    ;;
5396a0d3b6eaSmrg  *)
5397a0d3b6eaSmrg    ac_option=$1
5398a0d3b6eaSmrg    ac_optarg=$2
5399a0d3b6eaSmrg    ac_shift=shift
5400a0d3b6eaSmrg    ;;
5401a0d3b6eaSmrg  esac
5402a0d3b6eaSmrg
5403a0d3b6eaSmrg  case $ac_option in
5404a0d3b6eaSmrg  # Handling of the options.
5405a0d3b6eaSmrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5406a0d3b6eaSmrg    ac_cs_recheck=: ;;
5407a0d3b6eaSmrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
540862df5ad0Smrg    $as_echo "$ac_cs_version"; exit ;;
5409f8a31ee4Smrg  --config | --confi | --conf | --con | --co | --c )
5410f8a31ee4Smrg    $as_echo "$ac_cs_config"; exit ;;
5411a0d3b6eaSmrg  --debug | --debu | --deb | --de | --d | -d )
5412a0d3b6eaSmrg    debug=: ;;
5413a0d3b6eaSmrg  --file | --fil | --fi | --f )
5414a0d3b6eaSmrg    $ac_shift
541562df5ad0Smrg    case $ac_optarg in
541662df5ad0Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
54174def10e6Smrg    '') as_fn_error $? "missing file argument" ;;
541862df5ad0Smrg    esac
5419f8a31ee4Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
5420a0d3b6eaSmrg    ac_need_defaults=false;;
5421a0d3b6eaSmrg  --header | --heade | --head | --hea )
5422a0d3b6eaSmrg    $ac_shift
542362df5ad0Smrg    case $ac_optarg in
542462df5ad0Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
542562df5ad0Smrg    esac
5426f8a31ee4Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5427a0d3b6eaSmrg    ac_need_defaults=false;;
5428a0d3b6eaSmrg  --he | --h)
5429a0d3b6eaSmrg    # Conflict between --help and --header
54304def10e6Smrg    as_fn_error $? "ambiguous option: \`$1'
5431f8a31ee4SmrgTry \`$0 --help' for more information.";;
5432a0d3b6eaSmrg  --help | --hel | -h )
543362df5ad0Smrg    $as_echo "$ac_cs_usage"; exit ;;
5434a0d3b6eaSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5435a0d3b6eaSmrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5436a0d3b6eaSmrg    ac_cs_silent=: ;;
5437a0d3b6eaSmrg
5438a0d3b6eaSmrg  # This is an error.
54394def10e6Smrg  -*) as_fn_error $? "unrecognized option: \`$1'
5440f8a31ee4SmrgTry \`$0 --help' for more information." ;;
5441a0d3b6eaSmrg
5442f8a31ee4Smrg  *) as_fn_append ac_config_targets " $1"
5443a0d3b6eaSmrg     ac_need_defaults=false ;;
5444a0d3b6eaSmrg
5445a0d3b6eaSmrg  esac
5446a0d3b6eaSmrg  shift
5447a0d3b6eaSmrgdone
5448a0d3b6eaSmrg
5449a0d3b6eaSmrgac_configure_extra_args=
5450a0d3b6eaSmrg
5451a0d3b6eaSmrgif $ac_cs_silent; then
5452a0d3b6eaSmrg  exec 6>/dev/null
5453a0d3b6eaSmrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
5454a0d3b6eaSmrgfi
5455a0d3b6eaSmrg
5456a0d3b6eaSmrg_ACEOF
545762df5ad0Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5458a0d3b6eaSmrgif \$ac_cs_recheck; then
545962df5ad0Smrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
546062df5ad0Smrg  shift
546162df5ad0Smrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
546262df5ad0Smrg  CONFIG_SHELL='$SHELL'
5463a0d3b6eaSmrg  export CONFIG_SHELL
546462df5ad0Smrg  exec "\$@"
5465a0d3b6eaSmrgfi
5466a0d3b6eaSmrg
5467a0d3b6eaSmrg_ACEOF
546862df5ad0Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5469a0d3b6eaSmrgexec 5>>config.log
5470a0d3b6eaSmrg{
5471a0d3b6eaSmrg  echo
5472a0d3b6eaSmrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5473a0d3b6eaSmrg## Running $as_me. ##
5474a0d3b6eaSmrg_ASBOX
547562df5ad0Smrg  $as_echo "$ac_log"
5476a0d3b6eaSmrg} >&5
5477a0d3b6eaSmrg
5478a0d3b6eaSmrg_ACEOF
547962df5ad0Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5480a0d3b6eaSmrg#
5481a0d3b6eaSmrg# INIT-COMMANDS
5482a0d3b6eaSmrg#
5483a0d3b6eaSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5484a0d3b6eaSmrg
5485a0d3b6eaSmrg_ACEOF
5486a0d3b6eaSmrg
548762df5ad0Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5488a0d3b6eaSmrg
5489a0d3b6eaSmrg# Handling of arguments.
5490a0d3b6eaSmrgfor ac_config_target in $ac_config_targets
5491a0d3b6eaSmrgdo
5492a0d3b6eaSmrg  case $ac_config_target in
5493a0d3b6eaSmrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5494f8a31ee4Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5495a0d3b6eaSmrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5496a0d3b6eaSmrg
54974def10e6Smrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5498a0d3b6eaSmrg  esac
5499a0d3b6eaSmrgdone
5500a0d3b6eaSmrg
5501a0d3b6eaSmrg
5502a0d3b6eaSmrg# If the user did not use the arguments to specify the items to instantiate,
5503a0d3b6eaSmrg# then the envvar interface is used.  Set only those that are not.
5504a0d3b6eaSmrg# We use the long form for the default assignment because of an extremely
5505a0d3b6eaSmrg# bizarre bug on SunOS 4.1.3.
5506a0d3b6eaSmrgif $ac_need_defaults; then
5507a0d3b6eaSmrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5508a0d3b6eaSmrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5509a0d3b6eaSmrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5510a0d3b6eaSmrgfi
5511a0d3b6eaSmrg
5512a0d3b6eaSmrg# Have a temporary directory for convenience.  Make it in the build tree
5513a0d3b6eaSmrg# simply because there is no reason against having it here, and in addition,
5514a0d3b6eaSmrg# creating and moving files from /tmp can sometimes cause problems.
5515a0d3b6eaSmrg# Hook for its removal unless debugging.
5516a0d3b6eaSmrg# Note that there is a small window in which the directory will not be cleaned:
5517a0d3b6eaSmrg# after its creation but before its name has been assigned to `$tmp'.
5518a0d3b6eaSmrg$debug ||
5519a0d3b6eaSmrg{
55204def10e6Smrg  tmp= ac_tmp=
5521a0d3b6eaSmrg  trap 'exit_status=$?
55224def10e6Smrg  : "${ac_tmp:=$tmp}"
55234def10e6Smrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5524a0d3b6eaSmrg' 0
5525f8a31ee4Smrg  trap 'as_fn_exit 1' 1 2 13 15
5526a0d3b6eaSmrg}
5527a0d3b6eaSmrg# Create a (secure) tmp directory for tmp files.
5528a0d3b6eaSmrg
5529a0d3b6eaSmrg{
5530a0d3b6eaSmrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
55314def10e6Smrg  test -d "$tmp"
5532a0d3b6eaSmrg}  ||
5533a0d3b6eaSmrg{
5534a0d3b6eaSmrg  tmp=./conf$$-$RANDOM
5535a0d3b6eaSmrg  (umask 077 && mkdir "$tmp")
55364def10e6Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
55374def10e6Smrgac_tmp=$tmp
5538a0d3b6eaSmrg
553962df5ad0Smrg# Set up the scripts for CONFIG_FILES section.
554062df5ad0Smrg# No need to generate them if there are no CONFIG_FILES.
554162df5ad0Smrg# This happens for instance with `./config.status config.h'.
5542a0d3b6eaSmrgif test -n "$CONFIG_FILES"; then
5543a0d3b6eaSmrg
5544a0d3b6eaSmrg
5545f8a31ee4Smrgac_cr=`echo X | tr X '\015'`
5546f8a31ee4Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
5547f8a31ee4Smrg# But we know of no other shell where ac_cr would be empty at this
5548f8a31ee4Smrg# point, so we can use a bashism as a fallback.
5549f8a31ee4Smrgif test "x$ac_cr" = x; then
5550f8a31ee4Smrg  eval ac_cr=\$\'\\r\'
5551f8a31ee4Smrgfi
555262df5ad0Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
555362df5ad0Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
55544def10e6Smrg  ac_cs_awk_cr='\\r'
555562df5ad0Smrgelse
555662df5ad0Smrg  ac_cs_awk_cr=$ac_cr
5557a0d3b6eaSmrgfi
5558a0d3b6eaSmrg
55594def10e6Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5560a0d3b6eaSmrg_ACEOF
5561a0d3b6eaSmrg
5562a0d3b6eaSmrg
556362df5ad0Smrg{
556462df5ad0Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
556562df5ad0Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
556662df5ad0Smrg  echo "_ACEOF"
556762df5ad0Smrg} >conf$$subs.sh ||
55684def10e6Smrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
55694def10e6Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5570a0d3b6eaSmrgac_delim='%!_!# '
5571a0d3b6eaSmrgfor ac_last_try in false false false false false :; do
557262df5ad0Smrg  . ./conf$$subs.sh ||
55734def10e6Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5574a0d3b6eaSmrg
557562df5ad0Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
557662df5ad0Smrg  if test $ac_delim_n = $ac_delim_num; then
5577a0d3b6eaSmrg    break
5578a0d3b6eaSmrg  elif $ac_last_try; then
55794def10e6Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5580a0d3b6eaSmrg  else
5581a0d3b6eaSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5582a0d3b6eaSmrg  fi
5583a0d3b6eaSmrgdone
558462df5ad0Smrgrm -f conf$$subs.sh
5585a0d3b6eaSmrg
558662df5ad0Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
55874def10e6Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
558862df5ad0Smrg_ACEOF
558962df5ad0Smrgsed -n '
559062df5ad0Smrgh
559162df5ad0Smrgs/^/S["/; s/!.*/"]=/
559262df5ad0Smrgp
559362df5ad0Smrgg
559462df5ad0Smrgs/^[^!]*!//
559562df5ad0Smrg:repl
559662df5ad0Smrgt repl
559762df5ad0Smrgs/'"$ac_delim"'$//
559862df5ad0Smrgt delim
559962df5ad0Smrg:nl
560062df5ad0Smrgh
5601f8a31ee4Smrgs/\(.\{148\}\)..*/\1/
560262df5ad0Smrgt more1
560362df5ad0Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
560462df5ad0Smrgp
560562df5ad0Smrgn
560662df5ad0Smrgb repl
560762df5ad0Smrg:more1
560862df5ad0Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
560962df5ad0Smrgp
561062df5ad0Smrgg
561162df5ad0Smrgs/.\{148\}//
561262df5ad0Smrgt nl
561362df5ad0Smrg:delim
561462df5ad0Smrgh
5615f8a31ee4Smrgs/\(.\{148\}\)..*/\1/
561662df5ad0Smrgt more2
561762df5ad0Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
561862df5ad0Smrgp
561962df5ad0Smrgb
562062df5ad0Smrg:more2
562162df5ad0Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
562262df5ad0Smrgp
562362df5ad0Smrgg
562462df5ad0Smrgs/.\{148\}//
562562df5ad0Smrgt delim
562662df5ad0Smrg' <conf$$subs.awk | sed '
562762df5ad0Smrg/^[^""]/{
562862df5ad0Smrg  N
562962df5ad0Smrg  s/\n//
563062df5ad0Smrg}
563162df5ad0Smrg' >>$CONFIG_STATUS || ac_write_fail=1
563262df5ad0Smrgrm -f conf$$subs.awk
563362df5ad0Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
563462df5ad0Smrg_ACAWK
56354def10e6Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
563662df5ad0Smrg  for (key in S) S_is_set[key] = 1
563762df5ad0Smrg  FS = ""
563862df5ad0Smrg
563962df5ad0Smrg}
564062df5ad0Smrg{
564162df5ad0Smrg  line = $ 0
564262df5ad0Smrg  nfields = split(line, field, "@")
564362df5ad0Smrg  substed = 0
564462df5ad0Smrg  len = length(field[1])
564562df5ad0Smrg  for (i = 2; i < nfields; i++) {
564662df5ad0Smrg    key = field[i]
564762df5ad0Smrg    keylen = length(key)
564862df5ad0Smrg    if (S_is_set[key]) {
564962df5ad0Smrg      value = S[key]
565062df5ad0Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
565162df5ad0Smrg      len += length(value) + length(field[++i])
565262df5ad0Smrg      substed = 1
565362df5ad0Smrg    } else
565462df5ad0Smrg      len += 1 + keylen
565562df5ad0Smrg  }
565662df5ad0Smrg
565762df5ad0Smrg  print line
565862df5ad0Smrg}
5659a0d3b6eaSmrg
566062df5ad0Smrg_ACAWK
5661a0d3b6eaSmrg_ACEOF
566262df5ad0Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
566362df5ad0Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
566462df5ad0Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
566562df5ad0Smrgelse
566662df5ad0Smrg  cat
56674def10e6Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
56684def10e6Smrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5669a0d3b6eaSmrg_ACEOF
5670a0d3b6eaSmrg
56714def10e6Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
56724def10e6Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5673a0d3b6eaSmrg# trailing colons and then remove the whole line if VPATH becomes empty
5674a0d3b6eaSmrg# (actually we leave an empty line to preserve line numbers).
5675a0d3b6eaSmrgif test "x$srcdir" = x.; then
56764def10e6Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
56774def10e6Smrgh
56784def10e6Smrgs///
56794def10e6Smrgs/^/:/
56804def10e6Smrgs/[	 ]*$/:/
56814def10e6Smrgs/:\$(srcdir):/:/g
56824def10e6Smrgs/:\${srcdir}:/:/g
56834def10e6Smrgs/:@srcdir@:/:/g
56844def10e6Smrgs/^:*//
5685a0d3b6eaSmrgs/:*$//
56864def10e6Smrgx
56874def10e6Smrgs/\(=[	 ]*\).*/\1/
56884def10e6SmrgG
56894def10e6Smrgs/\n//
5690a0d3b6eaSmrgs/^[^=]*=[	 ]*$//
5691a0d3b6eaSmrg}'
5692a0d3b6eaSmrgfi
5693a0d3b6eaSmrg
569462df5ad0Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5695a0d3b6eaSmrgfi # test -n "$CONFIG_FILES"
5696a0d3b6eaSmrg
569762df5ad0Smrg# Set up the scripts for CONFIG_HEADERS section.
569862df5ad0Smrg# No need to generate them if there are no CONFIG_HEADERS.
569962df5ad0Smrg# This happens for instance with `./config.status Makefile'.
570062df5ad0Smrgif test -n "$CONFIG_HEADERS"; then
57014def10e6Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
570262df5ad0SmrgBEGIN {
570362df5ad0Smrg_ACEOF
570462df5ad0Smrg
570562df5ad0Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
570662df5ad0Smrg# here-document in config.status, that substitutes the proper values into
570762df5ad0Smrg# config.h.in to produce config.h.
570862df5ad0Smrg
570962df5ad0Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
571062df5ad0Smrg# handling of long lines.
571162df5ad0Smrgac_delim='%!_!# '
571262df5ad0Smrgfor ac_last_try in false false :; do
57134def10e6Smrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
57144def10e6Smrg  if test -z "$ac_tt"; then
571562df5ad0Smrg    break
571662df5ad0Smrg  elif $ac_last_try; then
57174def10e6Smrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
571862df5ad0Smrg  else
571962df5ad0Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
572062df5ad0Smrg  fi
572162df5ad0Smrgdone
572262df5ad0Smrg
572362df5ad0Smrg# For the awk script, D is an array of macro values keyed by name,
572462df5ad0Smrg# likewise P contains macro parameters if any.  Preserve backslash
572562df5ad0Smrg# newline sequences.
572662df5ad0Smrg
572762df5ad0Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
572862df5ad0Smrgsed -n '
572962df5ad0Smrgs/.\{148\}/&'"$ac_delim"'/g
573062df5ad0Smrgt rset
573162df5ad0Smrg:rset
573262df5ad0Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
573362df5ad0Smrgt def
573462df5ad0Smrgd
573562df5ad0Smrg:def
573662df5ad0Smrgs/\\$//
573762df5ad0Smrgt bsnl
573862df5ad0Smrgs/["\\]/\\&/g
573962df5ad0Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
574062df5ad0SmrgD["\1"]=" \3"/p
574162df5ad0Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
574262df5ad0Smrgd
574362df5ad0Smrg:bsnl
574462df5ad0Smrgs/["\\]/\\&/g
574562df5ad0Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
574662df5ad0SmrgD["\1"]=" \3\\\\\\n"\\/p
574762df5ad0Smrgt cont
574862df5ad0Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
574962df5ad0Smrgt cont
575062df5ad0Smrgd
575162df5ad0Smrg:cont
575262df5ad0Smrgn
575362df5ad0Smrgs/.\{148\}/&'"$ac_delim"'/g
575462df5ad0Smrgt clear
575562df5ad0Smrg:clear
575662df5ad0Smrgs/\\$//
575762df5ad0Smrgt bsnlc
575862df5ad0Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
575962df5ad0Smrgd
576062df5ad0Smrg:bsnlc
576162df5ad0Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
576262df5ad0Smrgb cont
576362df5ad0Smrg' <confdefs.h | sed '
576462df5ad0Smrgs/'"$ac_delim"'/"\\\
576562df5ad0Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
576662df5ad0Smrg
576762df5ad0Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
576862df5ad0Smrg  for (key in D) D_is_set[key] = 1
576962df5ad0Smrg  FS = ""
577062df5ad0Smrg}
577162df5ad0Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
577262df5ad0Smrg  line = \$ 0
577362df5ad0Smrg  split(line, arg, " ")
577462df5ad0Smrg  if (arg[1] == "#") {
577562df5ad0Smrg    defundef = arg[2]
577662df5ad0Smrg    mac1 = arg[3]
577762df5ad0Smrg  } else {
577862df5ad0Smrg    defundef = substr(arg[1], 2)
577962df5ad0Smrg    mac1 = arg[2]
578062df5ad0Smrg  }
578162df5ad0Smrg  split(mac1, mac2, "(") #)
578262df5ad0Smrg  macro = mac2[1]
578362df5ad0Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
578462df5ad0Smrg  if (D_is_set[macro]) {
578562df5ad0Smrg    # Preserve the white space surrounding the "#".
578662df5ad0Smrg    print prefix "define", macro P[macro] D[macro]
578762df5ad0Smrg    next
578862df5ad0Smrg  } else {
578962df5ad0Smrg    # Replace #undef with comments.  This is necessary, for example,
579062df5ad0Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
579162df5ad0Smrg    # on some systems where configure will not decide to define it.
579262df5ad0Smrg    if (defundef == "undef") {
579362df5ad0Smrg      print "/*", prefix defundef, macro, "*/"
579462df5ad0Smrg      next
579562df5ad0Smrg    }
579662df5ad0Smrg  }
579762df5ad0Smrg}
579862df5ad0Smrg{ print }
579962df5ad0Smrg_ACAWK
580062df5ad0Smrg_ACEOF
580162df5ad0Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
58024def10e6Smrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
580362df5ad0Smrgfi # test -n "$CONFIG_HEADERS"
580462df5ad0Smrg
5805a0d3b6eaSmrg
580662df5ad0Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
580762df5ad0Smrgshift
580862df5ad0Smrgfor ac_tag
5809a0d3b6eaSmrgdo
5810a0d3b6eaSmrg  case $ac_tag in
5811a0d3b6eaSmrg  :[FHLC]) ac_mode=$ac_tag; continue;;
5812a0d3b6eaSmrg  esac
5813a0d3b6eaSmrg  case $ac_mode$ac_tag in
5814a0d3b6eaSmrg  :[FHL]*:*);;
58154def10e6Smrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5816a0d3b6eaSmrg  :[FH]-) ac_tag=-:-;;
5817a0d3b6eaSmrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5818a0d3b6eaSmrg  esac
5819a0d3b6eaSmrg  ac_save_IFS=$IFS
5820a0d3b6eaSmrg  IFS=:
5821a0d3b6eaSmrg  set x $ac_tag
5822a0d3b6eaSmrg  IFS=$ac_save_IFS
5823a0d3b6eaSmrg  shift
5824a0d3b6eaSmrg  ac_file=$1
5825a0d3b6eaSmrg  shift
5826a0d3b6eaSmrg
5827a0d3b6eaSmrg  case $ac_mode in
5828a0d3b6eaSmrg  :L) ac_source=$1;;
5829a0d3b6eaSmrg  :[FH])
5830a0d3b6eaSmrg    ac_file_inputs=
5831a0d3b6eaSmrg    for ac_f
5832a0d3b6eaSmrg    do
5833a0d3b6eaSmrg      case $ac_f in
58344def10e6Smrg      -) ac_f="$ac_tmp/stdin";;
5835a0d3b6eaSmrg      *) # Look for the file first in the build tree, then in the source tree
5836a0d3b6eaSmrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
5837a0d3b6eaSmrg	 # because $ac_f cannot contain `:'.
5838a0d3b6eaSmrg	 test -f "$ac_f" ||
5839a0d3b6eaSmrg	   case $ac_f in
5840a0d3b6eaSmrg	   [\\/$]*) false;;
5841a0d3b6eaSmrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5842a0d3b6eaSmrg	   esac ||
58434def10e6Smrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5844a0d3b6eaSmrg      esac
584562df5ad0Smrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5846f8a31ee4Smrg      as_fn_append ac_file_inputs " '$ac_f'"
5847a0d3b6eaSmrg    done
5848a0d3b6eaSmrg
5849a0d3b6eaSmrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
5850a0d3b6eaSmrg    # use $as_me), people would be surprised to read:
5851a0d3b6eaSmrg    #    /* config.h.  Generated by config.status.  */
585262df5ad0Smrg    configure_input='Generated from '`
585362df5ad0Smrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
585462df5ad0Smrg	`' by configure.'
5855a0d3b6eaSmrg    if test x"$ac_file" != x-; then
5856a0d3b6eaSmrg      configure_input="$ac_file.  $configure_input"
5857f8a31ee4Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
585862df5ad0Smrg$as_echo "$as_me: creating $ac_file" >&6;}
5859a0d3b6eaSmrg    fi
586062df5ad0Smrg    # Neutralize special characters interpreted by sed in replacement strings.
586162df5ad0Smrg    case $configure_input in #(
586262df5ad0Smrg    *\&* | *\|* | *\\* )
586362df5ad0Smrg       ac_sed_conf_input=`$as_echo "$configure_input" |
586462df5ad0Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
586562df5ad0Smrg    *) ac_sed_conf_input=$configure_input;;
586662df5ad0Smrg    esac
5867a0d3b6eaSmrg
5868a0d3b6eaSmrg    case $ac_tag in
58694def10e6Smrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
58704def10e6Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5871a0d3b6eaSmrg    esac
5872a0d3b6eaSmrg    ;;
5873a0d3b6eaSmrg  esac
5874a0d3b6eaSmrg
5875a0d3b6eaSmrg  ac_dir=`$as_dirname -- "$ac_file" ||
5876a0d3b6eaSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5877a0d3b6eaSmrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
5878a0d3b6eaSmrg	 X"$ac_file" : 'X\(//\)$' \| \
5879a0d3b6eaSmrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
588062df5ad0Smrg$as_echo X"$ac_file" |
5881a0d3b6eaSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5882a0d3b6eaSmrg	    s//\1/
5883a0d3b6eaSmrg	    q
5884a0d3b6eaSmrg	  }
5885a0d3b6eaSmrg	  /^X\(\/\/\)[^/].*/{
5886a0d3b6eaSmrg	    s//\1/
5887a0d3b6eaSmrg	    q
5888a0d3b6eaSmrg	  }
5889a0d3b6eaSmrg	  /^X\(\/\/\)$/{
5890a0d3b6eaSmrg	    s//\1/
5891a0d3b6eaSmrg	    q
5892a0d3b6eaSmrg	  }
5893a0d3b6eaSmrg	  /^X\(\/\).*/{
5894a0d3b6eaSmrg	    s//\1/
5895a0d3b6eaSmrg	    q
5896a0d3b6eaSmrg	  }
5897a0d3b6eaSmrg	  s/.*/./; q'`
5898f8a31ee4Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
5899a0d3b6eaSmrg  ac_builddir=.
5900a0d3b6eaSmrg
5901a0d3b6eaSmrgcase "$ac_dir" in
5902a0d3b6eaSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5903a0d3b6eaSmrg*)
590462df5ad0Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5905a0d3b6eaSmrg  # A ".." for each directory in $ac_dir_suffix.
590662df5ad0Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5907a0d3b6eaSmrg  case $ac_top_builddir_sub in
5908a0d3b6eaSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5909a0d3b6eaSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5910a0d3b6eaSmrg  esac ;;
5911a0d3b6eaSmrgesac
5912a0d3b6eaSmrgac_abs_top_builddir=$ac_pwd
5913a0d3b6eaSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
5914a0d3b6eaSmrg# for backward compatibility:
5915a0d3b6eaSmrgac_top_builddir=$ac_top_build_prefix
5916a0d3b6eaSmrg
5917a0d3b6eaSmrgcase $srcdir in
5918a0d3b6eaSmrg  .)  # We are building in place.
5919a0d3b6eaSmrg    ac_srcdir=.
5920a0d3b6eaSmrg    ac_top_srcdir=$ac_top_builddir_sub
5921a0d3b6eaSmrg    ac_abs_top_srcdir=$ac_pwd ;;
5922a0d3b6eaSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
5923a0d3b6eaSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
5924a0d3b6eaSmrg    ac_top_srcdir=$srcdir
5925a0d3b6eaSmrg    ac_abs_top_srcdir=$srcdir ;;
5926a0d3b6eaSmrg  *) # Relative name.
5927a0d3b6eaSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5928a0d3b6eaSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
5929a0d3b6eaSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5930a0d3b6eaSmrgesac
5931a0d3b6eaSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5932a0d3b6eaSmrg
5933a0d3b6eaSmrg
5934a0d3b6eaSmrg  case $ac_mode in
5935a0d3b6eaSmrg  :F)
5936a0d3b6eaSmrg  #
5937a0d3b6eaSmrg  # CONFIG_FILE
5938a0d3b6eaSmrg  #
5939a0d3b6eaSmrg
5940a0d3b6eaSmrg  case $INSTALL in
5941a0d3b6eaSmrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5942a0d3b6eaSmrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5943a0d3b6eaSmrg  esac
5944a0d3b6eaSmrg  ac_MKDIR_P=$MKDIR_P
5945a0d3b6eaSmrg  case $MKDIR_P in
5946a0d3b6eaSmrg  [\\/$]* | ?:[\\/]* ) ;;
5947a0d3b6eaSmrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5948a0d3b6eaSmrg  esac
5949a0d3b6eaSmrg_ACEOF
5950a0d3b6eaSmrg
595162df5ad0Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5952a0d3b6eaSmrg# If the template does not know about datarootdir, expand it.
5953a0d3b6eaSmrg# FIXME: This hack should be removed a few years after 2.60.
5954a0d3b6eaSmrgac_datarootdir_hack=; ac_datarootdir_seen=
595562df5ad0Smrgac_sed_dataroot='
595662df5ad0Smrg/datarootdir/ {
5957a0d3b6eaSmrg  p
5958a0d3b6eaSmrg  q
5959a0d3b6eaSmrg}
5960a0d3b6eaSmrg/@datadir@/p
5961a0d3b6eaSmrg/@docdir@/p
5962a0d3b6eaSmrg/@infodir@/p
5963a0d3b6eaSmrg/@localedir@/p
5964f8a31ee4Smrg/@mandir@/p'
596562df5ad0Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5966a0d3b6eaSmrg*datarootdir*) ac_datarootdir_seen=yes;;
5967a0d3b6eaSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5968f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
596962df5ad0Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5970a0d3b6eaSmrg_ACEOF
597162df5ad0Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5972a0d3b6eaSmrg  ac_datarootdir_hack='
5973a0d3b6eaSmrg  s&@datadir@&$datadir&g
5974a0d3b6eaSmrg  s&@docdir@&$docdir&g
5975a0d3b6eaSmrg  s&@infodir@&$infodir&g
5976a0d3b6eaSmrg  s&@localedir@&$localedir&g
5977a0d3b6eaSmrg  s&@mandir@&$mandir&g
5978f8a31ee4Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
5979a0d3b6eaSmrgesac
5980a0d3b6eaSmrg_ACEOF
5981a0d3b6eaSmrg
5982a0d3b6eaSmrg# Neutralize VPATH when `$srcdir' = `.'.
5983a0d3b6eaSmrg# Shell code in configure.ac might set extrasub.
5984a0d3b6eaSmrg# FIXME: do we really want to maintain this feature?
598562df5ad0Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
598662df5ad0Smrgac_sed_extra="$ac_vpsub
5987a0d3b6eaSmrg$extrasub
5988a0d3b6eaSmrg_ACEOF
598962df5ad0Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5990a0d3b6eaSmrg:t
5991a0d3b6eaSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
599262df5ad0Smrgs|@configure_input@|$ac_sed_conf_input|;t t
5993a0d3b6eaSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t
599462df5ad0Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
5995a0d3b6eaSmrgs&@srcdir@&$ac_srcdir&;t t
5996a0d3b6eaSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
5997a0d3b6eaSmrgs&@top_srcdir@&$ac_top_srcdir&;t t
5998a0d3b6eaSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5999a0d3b6eaSmrgs&@builddir@&$ac_builddir&;t t
6000a0d3b6eaSmrgs&@abs_builddir@&$ac_abs_builddir&;t t
6001a0d3b6eaSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6002a0d3b6eaSmrgs&@INSTALL@&$ac_INSTALL&;t t
6003a0d3b6eaSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
6004a0d3b6eaSmrg$ac_datarootdir_hack
600562df5ad0Smrg"
60064def10e6Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
60074def10e6Smrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6008a0d3b6eaSmrg
6009a0d3b6eaSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
60104def10e6Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
60114def10e6Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
60124def10e6Smrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
6013f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
60144def10e6Smrgwhich seems to be undefined.  Please make sure it is defined" >&5
601562df5ad0Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
60164def10e6Smrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
6017a0d3b6eaSmrg
60184def10e6Smrg  rm -f "$ac_tmp/stdin"
6019a0d3b6eaSmrg  case $ac_file in
60204def10e6Smrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
60214def10e6Smrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
602262df5ad0Smrg  esac \
60234def10e6Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6024a0d3b6eaSmrg ;;
6025a0d3b6eaSmrg  :H)
6026a0d3b6eaSmrg  #
6027a0d3b6eaSmrg  # CONFIG_HEADER
6028a0d3b6eaSmrg  #
6029a0d3b6eaSmrg  if test x"$ac_file" != x-; then
603062df5ad0Smrg    {
603162df5ad0Smrg      $as_echo "/* $configure_input  */" \
60324def10e6Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
60334def10e6Smrg    } >"$ac_tmp/config.h" \
60344def10e6Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
60354def10e6Smrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6036f8a31ee4Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
603762df5ad0Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
6038a0d3b6eaSmrg    else
603962df5ad0Smrg      rm -f "$ac_file"
60404def10e6Smrg      mv "$ac_tmp/config.h" "$ac_file" \
60414def10e6Smrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
6042a0d3b6eaSmrg    fi
6043a0d3b6eaSmrg  else
604462df5ad0Smrg    $as_echo "/* $configure_input  */" \
60454def10e6Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
60464def10e6Smrg      || as_fn_error $? "could not create -" "$LINENO" 5
6047a0d3b6eaSmrg  fi
604862df5ad0Smrg# Compute "$ac_file"'s index in $config_headers.
604962df5ad0Smrg_am_arg="$ac_file"
6050a0d3b6eaSmrg_am_stamp_count=1
6051a0d3b6eaSmrgfor _am_header in $config_headers :; do
6052a0d3b6eaSmrg  case $_am_header in
6053a0d3b6eaSmrg    $_am_arg | $_am_arg:* )
6054a0d3b6eaSmrg      break ;;
6055a0d3b6eaSmrg    * )
6056a0d3b6eaSmrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6057a0d3b6eaSmrg  esac
6058a0d3b6eaSmrgdone
6059a0d3b6eaSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6060a0d3b6eaSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6061a0d3b6eaSmrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
6062a0d3b6eaSmrg	 X"$_am_arg" : 'X\(//\)$' \| \
6063a0d3b6eaSmrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
606462df5ad0Smrg$as_echo X"$_am_arg" |
6065a0d3b6eaSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6066a0d3b6eaSmrg	    s//\1/
6067a0d3b6eaSmrg	    q
6068a0d3b6eaSmrg	  }
6069a0d3b6eaSmrg	  /^X\(\/\/\)[^/].*/{
6070a0d3b6eaSmrg	    s//\1/
6071a0d3b6eaSmrg	    q
6072a0d3b6eaSmrg	  }
6073a0d3b6eaSmrg	  /^X\(\/\/\)$/{
6074a0d3b6eaSmrg	    s//\1/
6075a0d3b6eaSmrg	    q
6076a0d3b6eaSmrg	  }
6077a0d3b6eaSmrg	  /^X\(\/\).*/{
6078a0d3b6eaSmrg	    s//\1/
6079a0d3b6eaSmrg	    q
6080a0d3b6eaSmrg	  }
6081a0d3b6eaSmrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
6082a0d3b6eaSmrg ;;
6083a0d3b6eaSmrg
6084f8a31ee4Smrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
608562df5ad0Smrg$as_echo "$as_me: executing $ac_file commands" >&6;}
6086a0d3b6eaSmrg ;;
6087a0d3b6eaSmrg  esac
6088a0d3b6eaSmrg
6089a0d3b6eaSmrg
6090a0d3b6eaSmrg  case $ac_file$ac_mode in
6091f8a31ee4Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6092f8a31ee4Smrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
6093f8a31ee4Smrg  # are listed without --file.  Let's play safe and only enable the eval
6094f8a31ee4Smrg  # if we detect the quoting.
6095f8a31ee4Smrg  case $CONFIG_FILES in
6096f8a31ee4Smrg  *\'*) eval set x "$CONFIG_FILES" ;;
6097f8a31ee4Smrg  *)   set x $CONFIG_FILES ;;
6098f8a31ee4Smrg  esac
6099f8a31ee4Smrg  shift
6100f8a31ee4Smrg  for mf
6101f8a31ee4Smrg  do
6102f8a31ee4Smrg    # Strip MF so we end up with the name of the file.
6103f8a31ee4Smrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
6104f8a31ee4Smrg    # Check whether this is an Automake generated Makefile or not.
6105f8a31ee4Smrg    # We used to match only the files named `Makefile.in', but
6106f8a31ee4Smrg    # some people rename them; so instead we look at the file content.
6107f8a31ee4Smrg    # Grep'ing the first line is not enough: some people post-process
6108f8a31ee4Smrg    # each Makefile.in and add a new line on top of each file to say so.
6109f8a31ee4Smrg    # Grep'ing the whole file is not good either: AIX grep has a line
6110f8a31ee4Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
6111f8a31ee4Smrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6112f8a31ee4Smrg      dirpart=`$as_dirname -- "$mf" ||
6113a0d3b6eaSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6114a0d3b6eaSmrg	 X"$mf" : 'X\(//\)[^/]' \| \
6115a0d3b6eaSmrg	 X"$mf" : 'X\(//\)$' \| \
6116a0d3b6eaSmrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
611762df5ad0Smrg$as_echo X"$mf" |
6118a0d3b6eaSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6119a0d3b6eaSmrg	    s//\1/
6120a0d3b6eaSmrg	    q
6121a0d3b6eaSmrg	  }
6122a0d3b6eaSmrg	  /^X\(\/\/\)[^/].*/{
6123a0d3b6eaSmrg	    s//\1/
6124a0d3b6eaSmrg	    q
6125a0d3b6eaSmrg	  }
6126a0d3b6eaSmrg	  /^X\(\/\/\)$/{
6127a0d3b6eaSmrg	    s//\1/
6128a0d3b6eaSmrg	    q
6129a0d3b6eaSmrg	  }
6130a0d3b6eaSmrg	  /^X\(\/\).*/{
6131a0d3b6eaSmrg	    s//\1/
6132a0d3b6eaSmrg	    q
6133a0d3b6eaSmrg	  }
6134a0d3b6eaSmrg	  s/.*/./; q'`
6135f8a31ee4Smrg    else
6136f8a31ee4Smrg      continue
6137f8a31ee4Smrg    fi
6138f8a31ee4Smrg    # Extract the definition of DEPDIR, am__include, and am__quote
6139f8a31ee4Smrg    # from the Makefile without running `make'.
6140f8a31ee4Smrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6141f8a31ee4Smrg    test -z "$DEPDIR" && continue
6142f8a31ee4Smrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
6143f8a31ee4Smrg    test -z "am__include" && continue
6144f8a31ee4Smrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6145f8a31ee4Smrg    # When using ansi2knr, U may be empty or an underscore; expand it
6146f8a31ee4Smrg    U=`sed -n 's/^U = //p' < "$mf"`
6147f8a31ee4Smrg    # Find all dependency output files, they are included files with
6148f8a31ee4Smrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
6149f8a31ee4Smrg    # simplest approach to changing $(DEPDIR) to its actual value in the
6150f8a31ee4Smrg    # expansion.
6151f8a31ee4Smrg    for file in `sed -n "
6152f8a31ee4Smrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6153f8a31ee4Smrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6154f8a31ee4Smrg      # Make sure the directory exists.
6155f8a31ee4Smrg      test -f "$dirpart/$file" && continue
6156f8a31ee4Smrg      fdir=`$as_dirname -- "$file" ||
6157a0d3b6eaSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6158a0d3b6eaSmrg	 X"$file" : 'X\(//\)[^/]' \| \
6159a0d3b6eaSmrg	 X"$file" : 'X\(//\)$' \| \
6160a0d3b6eaSmrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
616162df5ad0Smrg$as_echo X"$file" |
6162a0d3b6eaSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6163a0d3b6eaSmrg	    s//\1/
6164a0d3b6eaSmrg	    q
6165a0d3b6eaSmrg	  }
6166a0d3b6eaSmrg	  /^X\(\/\/\)[^/].*/{
6167a0d3b6eaSmrg	    s//\1/
6168a0d3b6eaSmrg	    q
6169a0d3b6eaSmrg	  }
6170a0d3b6eaSmrg	  /^X\(\/\/\)$/{
6171a0d3b6eaSmrg	    s//\1/
6172a0d3b6eaSmrg	    q
6173a0d3b6eaSmrg	  }
6174a0d3b6eaSmrg	  /^X\(\/\).*/{
6175a0d3b6eaSmrg	    s//\1/
6176a0d3b6eaSmrg	    q
6177a0d3b6eaSmrg	  }
6178a0d3b6eaSmrg	  s/.*/./; q'`
6179f8a31ee4Smrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
6180f8a31ee4Smrg      # echo "creating $dirpart/$file"
6181f8a31ee4Smrg      echo '# dummy' > "$dirpart/$file"
6182a0d3b6eaSmrg    done
6183a0d3b6eaSmrg  done
6184f8a31ee4Smrg}
6185a0d3b6eaSmrg ;;
6186a0d3b6eaSmrg
6187a0d3b6eaSmrg  esac
6188a0d3b6eaSmrgdone # for ac_tag
6189a0d3b6eaSmrg
6190a0d3b6eaSmrg
6191f8a31ee4Smrgas_fn_exit 0
6192a0d3b6eaSmrg_ACEOF
6193a0d3b6eaSmrgac_clean_files=$ac_clean_files_save
6194a0d3b6eaSmrg
619562df5ad0Smrgtest $ac_write_fail = 0 ||
61964def10e6Smrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
619762df5ad0Smrg
6198a0d3b6eaSmrg
6199a0d3b6eaSmrg# configure is writing to config.log, and then calls config.status.
6200a0d3b6eaSmrg# config.status does its own redirection, appending to config.log.
6201a0d3b6eaSmrg# Unfortunately, on DOS this fails, as config.log is still kept open
6202a0d3b6eaSmrg# by configure, so config.status won't be able to write to it; its
6203a0d3b6eaSmrg# output is simply discarded.  So we exec the FD to /dev/null,
6204a0d3b6eaSmrg# effectively closing config.log, so it can be properly (re)opened and
6205a0d3b6eaSmrg# appended to by config.status.  When coming back to configure, we
6206a0d3b6eaSmrg# need to make the FD available again.
6207a0d3b6eaSmrgif test "$no_create" != yes; then
6208a0d3b6eaSmrg  ac_cs_success=:
6209a0d3b6eaSmrg  ac_config_status_args=
6210a0d3b6eaSmrg  test "$silent" = yes &&
6211a0d3b6eaSmrg    ac_config_status_args="$ac_config_status_args --quiet"
6212a0d3b6eaSmrg  exec 5>/dev/null
6213a0d3b6eaSmrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6214a0d3b6eaSmrg  exec 5>>config.log
6215a0d3b6eaSmrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6216a0d3b6eaSmrg  # would make configure fail if this is the last instruction.
62174def10e6Smrg  $ac_cs_success || as_fn_exit 1
6218a0d3b6eaSmrgfi
621962df5ad0Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6220f8a31ee4Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
622162df5ad0Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
622262df5ad0Smrgfi
6223a0d3b6eaSmrg
6224