configure revision d1c293ac
18440cca4Smrg#! /bin/sh
28440cca4Smrg# Guess values for system-dependent variables and create Makefiles.
3d1c293acSmrg# Generated by GNU Autoconf 2.68 for xstdcmap 1.0.2.
48440cca4Smrg#
58440cca4Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
68440cca4Smrg#
7d1c293acSmrg#
8d1c293acSmrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9d1c293acSmrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10d1c293acSmrg# Foundation, Inc.
11d1c293acSmrg#
12d1c293acSmrg#
138440cca4Smrg# This configure script is free software; the Free Software Foundation
148440cca4Smrg# gives unlimited permission to copy, distribute and modify it.
15d1c293acSmrg## -------------------- ##
16d1c293acSmrg## M4sh Initialization. ##
17d1c293acSmrg## -------------------- ##
188440cca4Smrg
19d1c293acSmrg# Be more Bourne compatible
20d1c293acSmrgDUALCASE=1; export DUALCASE # for MKS sh
21d1c293acSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
228440cca4Smrg  emulate sh
238440cca4Smrg  NULLCMD=:
24d1c293acSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
258440cca4Smrg  # is contrary to our usage.  Disable this feature.
268440cca4Smrg  alias -g '${1+"$@"}'='"$@"'
27d1c293acSmrg  setopt NO_GLOB_SUBST
28d1c293acSmrgelse
29d1c293acSmrg  case `(set -o) 2>/dev/null` in #(
30d1c293acSmrg  *posix*) :
31d1c293acSmrg    set -o posix ;; #(
32d1c293acSmrg  *) :
33d1c293acSmrg     ;;
34d1c293acSmrgesac
358440cca4Smrgfi
368440cca4Smrg
37d1c293acSmrg
38d1c293acSmrgas_nl='
39d1c293acSmrg'
40d1c293acSmrgexport as_nl
41d1c293acSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
42d1c293acSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43d1c293acSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44d1c293acSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45d1c293acSmrg# Prefer a ksh shell builtin over an external printf program on Solaris,
46d1c293acSmrg# but without wasting forks for bash or zsh.
47d1c293acSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \
48d1c293acSmrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49d1c293acSmrg  as_echo='print -r --'
50d1c293acSmrg  as_echo_n='print -rn --'
51d1c293acSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52d1c293acSmrg  as_echo='printf %s\n'
53d1c293acSmrg  as_echo_n='printf %s'
548440cca4Smrgelse
55d1c293acSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56d1c293acSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57d1c293acSmrg    as_echo_n='/usr/ucb/echo -n'
58d1c293acSmrg  else
59d1c293acSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60d1c293acSmrg    as_echo_n_body='eval
61d1c293acSmrg      arg=$1;
62d1c293acSmrg      case $arg in #(
63d1c293acSmrg      *"$as_nl"*)
64d1c293acSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
65d1c293acSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66d1c293acSmrg      esac;
67d1c293acSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68d1c293acSmrg    '
69d1c293acSmrg    export as_echo_n_body
70d1c293acSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
71d1c293acSmrg  fi
72d1c293acSmrg  export as_echo_body
73d1c293acSmrg  as_echo='sh -c $as_echo_body as_echo'
74d1c293acSmrgfi
75d1c293acSmrg
76d1c293acSmrg# The user is always right.
77d1c293acSmrgif test "${PATH_SEPARATOR+set}" != set; then
78d1c293acSmrg  PATH_SEPARATOR=:
79d1c293acSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80d1c293acSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81d1c293acSmrg      PATH_SEPARATOR=';'
82d1c293acSmrg  }
838440cca4Smrgfi
848440cca4Smrg
858440cca4Smrg
86d1c293acSmrg# IFS
87d1c293acSmrg# We need space, tab and new line, in precisely that order.  Quoting is
88d1c293acSmrg# there to prevent editors from complaining about space-tab.
89d1c293acSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90d1c293acSmrg# splitting by setting IFS to empty value.)
91d1c293acSmrgIFS=" ""	$as_nl"
92d1c293acSmrg
93d1c293acSmrg# Find who we are.  Look in the path if we contain no directory separator.
94d1c293acSmrgas_myself=
95d1c293acSmrgcase $0 in #((
96d1c293acSmrg  *[\\/]* ) as_myself=$0 ;;
97d1c293acSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98d1c293acSmrgfor as_dir in $PATH
99d1c293acSmrgdo
100d1c293acSmrg  IFS=$as_save_IFS
101d1c293acSmrg  test -z "$as_dir" && as_dir=.
102d1c293acSmrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103d1c293acSmrg  done
104d1c293acSmrgIFS=$as_save_IFS
105d1c293acSmrg
106d1c293acSmrg     ;;
107d1c293acSmrgesac
108d1c293acSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
109d1c293acSmrg# in which case we are not to be found in the path.
110d1c293acSmrgif test "x$as_myself" = x; then
111d1c293acSmrg  as_myself=$0
112d1c293acSmrgfi
113d1c293acSmrgif test ! -f "$as_myself"; then
114d1c293acSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115d1c293acSmrg  exit 1
116d1c293acSmrgfi
117d1c293acSmrg
118d1c293acSmrg# Unset variables that we do not need and which cause bugs (e.g. in
119d1c293acSmrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120d1c293acSmrg# suppresses any "Segmentation fault" message there.  '((' could
121d1c293acSmrg# trigger a bug in pdksh 5.2.14.
122d1c293acSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH
123d1c293acSmrgdo eval test x\${$as_var+set} = xset \
124d1c293acSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125d1c293acSmrgdone
1268440cca4SmrgPS1='$ '
1278440cca4SmrgPS2='> '
1288440cca4SmrgPS4='+ '
1298440cca4Smrg
1308440cca4Smrg# NLS nuisances.
131d1c293acSmrgLC_ALL=C
132d1c293acSmrgexport LC_ALL
133d1c293acSmrgLANGUAGE=C
134d1c293acSmrgexport LANGUAGE
135d1c293acSmrg
136d1c293acSmrg# CDPATH.
137d1c293acSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138d1c293acSmrg
139d1c293acSmrgif test "x$CONFIG_SHELL" = x; then
140d1c293acSmrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141d1c293acSmrg  emulate sh
142d1c293acSmrg  NULLCMD=:
143d1c293acSmrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144d1c293acSmrg  # is contrary to our usage.  Disable this feature.
145d1c293acSmrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146d1c293acSmrg  setopt NO_GLOB_SUBST
147d1c293acSmrgelse
148d1c293acSmrg  case \`(set -o) 2>/dev/null\` in #(
149d1c293acSmrg  *posix*) :
150d1c293acSmrg    set -o posix ;; #(
151d1c293acSmrg  *) :
152d1c293acSmrg     ;;
153d1c293acSmrgesac
154d1c293acSmrgfi
155d1c293acSmrg"
156d1c293acSmrg  as_required="as_fn_return () { (exit \$1); }
157d1c293acSmrgas_fn_success () { as_fn_return 0; }
158d1c293acSmrgas_fn_failure () { as_fn_return 1; }
159d1c293acSmrgas_fn_ret_success () { return 0; }
160d1c293acSmrgas_fn_ret_failure () { return 1; }
161d1c293acSmrg
162d1c293acSmrgexitcode=0
163d1c293acSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
164d1c293acSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165d1c293acSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166d1c293acSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167d1c293acSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168d1c293acSmrg
169d1c293acSmrgelse
170d1c293acSmrg  exitcode=1; echo positional parameters were not saved.
171d1c293acSmrgfi
172d1c293acSmrgtest x\$exitcode = x0 || exit 1"
173d1c293acSmrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174d1c293acSmrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175d1c293acSmrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176d1c293acSmrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177d1c293acSmrgtest \$(( 1 + 1 )) = 2 || exit 1"
178d1c293acSmrg  if (eval "$as_required") 2>/dev/null; then :
179d1c293acSmrg  as_have_required=yes
180d1c293acSmrgelse
181d1c293acSmrg  as_have_required=no
182d1c293acSmrgfi
183d1c293acSmrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184d1c293acSmrg
185d1c293acSmrgelse
186d1c293acSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187d1c293acSmrgas_found=false
188d1c293acSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1898440cca4Smrgdo
190d1c293acSmrg  IFS=$as_save_IFS
191d1c293acSmrg  test -z "$as_dir" && as_dir=.
192d1c293acSmrg  as_found=:
193d1c293acSmrg  case $as_dir in #(
194d1c293acSmrg	 /*)
195d1c293acSmrg	   for as_base in sh bash ksh sh5; do
196d1c293acSmrg	     # Try only shells that exist, to save several forks.
197d1c293acSmrg	     as_shell=$as_dir/$as_base
198d1c293acSmrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199d1c293acSmrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200d1c293acSmrg  CONFIG_SHELL=$as_shell as_have_required=yes
201d1c293acSmrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202d1c293acSmrg  break 2
203d1c293acSmrgfi
204d1c293acSmrgfi
205d1c293acSmrg	   done;;
206d1c293acSmrg       esac
207d1c293acSmrg  as_found=false
208d1c293acSmrgdone
209d1c293acSmrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210d1c293acSmrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211d1c293acSmrg  CONFIG_SHELL=$SHELL as_have_required=yes
212d1c293acSmrgfi; }
213d1c293acSmrgIFS=$as_save_IFS
214d1c293acSmrg
215d1c293acSmrg
216d1c293acSmrg      if test "x$CONFIG_SHELL" != x; then :
217d1c293acSmrg  # We cannot yet assume a decent shell, so we have to provide a
218d1c293acSmrg	# neutralization value for shells without unset; and this also
219d1c293acSmrg	# works around shells that cannot unset nonexistent variables.
220d1c293acSmrg	# Preserve -v and -x to the replacement shell.
221d1c293acSmrg	BASH_ENV=/dev/null
222d1c293acSmrg	ENV=/dev/null
223d1c293acSmrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224d1c293acSmrg	export CONFIG_SHELL
225d1c293acSmrg	case $- in # ((((
226d1c293acSmrg	  *v*x* | *x*v* ) as_opts=-vx ;;
227d1c293acSmrg	  *v* ) as_opts=-v ;;
228d1c293acSmrg	  *x* ) as_opts=-x ;;
229d1c293acSmrg	  * ) as_opts= ;;
230d1c293acSmrg	esac
231d1c293acSmrg	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232d1c293acSmrgfi
233d1c293acSmrg
234d1c293acSmrg    if test x$as_have_required = xno; then :
235d1c293acSmrg  $as_echo "$0: This script requires a shell more modern than all"
236d1c293acSmrg  $as_echo "$0: the shells that I found on your system."
237d1c293acSmrg  if test x${ZSH_VERSION+set} = xset ; then
238d1c293acSmrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239d1c293acSmrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
2408440cca4Smrg  else
241d1c293acSmrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242d1c293acSmrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243d1c293acSmrg$0: about your system, including any error possibly output
244d1c293acSmrg$0: before this message. Then install a modern shell, or
245d1c293acSmrg$0: manually run the script under such a shell if you do
246d1c293acSmrg$0: have one."
2478440cca4Smrg  fi
248d1c293acSmrg  exit 1
249d1c293acSmrgfi
250d1c293acSmrgfi
251d1c293acSmrgfi
252d1c293acSmrgSHELL=${CONFIG_SHELL-/bin/sh}
253d1c293acSmrgexport SHELL
254d1c293acSmrg# Unset more variables known to interfere with behavior of common tools.
255d1c293acSmrgCLICOLOR_FORCE= GREP_OPTIONS=
256d1c293acSmrgunset CLICOLOR_FORCE GREP_OPTIONS
257d1c293acSmrg
258d1c293acSmrg## --------------------- ##
259d1c293acSmrg## M4sh Shell Functions. ##
260d1c293acSmrg## --------------------- ##
261d1c293acSmrg# as_fn_unset VAR
262d1c293acSmrg# ---------------
263d1c293acSmrg# Portably unset VAR.
264d1c293acSmrgas_fn_unset ()
265d1c293acSmrg{
266d1c293acSmrg  { eval $1=; unset $1;}
267d1c293acSmrg}
268d1c293acSmrgas_unset=as_fn_unset
269d1c293acSmrg
270d1c293acSmrg# as_fn_set_status STATUS
271d1c293acSmrg# -----------------------
272d1c293acSmrg# Set $? to STATUS, without forking.
273d1c293acSmrgas_fn_set_status ()
274d1c293acSmrg{
275d1c293acSmrg  return $1
276d1c293acSmrg} # as_fn_set_status
2778440cca4Smrg
278d1c293acSmrg# as_fn_exit STATUS
279d1c293acSmrg# -----------------
280d1c293acSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281d1c293acSmrgas_fn_exit ()
282d1c293acSmrg{
283d1c293acSmrg  set +e
284d1c293acSmrg  as_fn_set_status $1
285d1c293acSmrg  exit $1
286d1c293acSmrg} # as_fn_exit
287d1c293acSmrg
288d1c293acSmrg# as_fn_mkdir_p
289d1c293acSmrg# -------------
290d1c293acSmrg# Create "$as_dir" as a directory, including parents if necessary.
291d1c293acSmrgas_fn_mkdir_p ()
292d1c293acSmrg{
293d1c293acSmrg
294d1c293acSmrg  case $as_dir in #(
295d1c293acSmrg  -*) as_dir=./$as_dir;;
296d1c293acSmrg  esac
297d1c293acSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
298d1c293acSmrg    as_dirs=
299d1c293acSmrg    while :; do
300d1c293acSmrg      case $as_dir in #(
301d1c293acSmrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302d1c293acSmrg      *) as_qdir=$as_dir;;
303d1c293acSmrg      esac
304d1c293acSmrg      as_dirs="'$as_qdir' $as_dirs"
305d1c293acSmrg      as_dir=`$as_dirname -- "$as_dir" ||
306d1c293acSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307d1c293acSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
308d1c293acSmrg	 X"$as_dir" : 'X\(//\)$' \| \
309d1c293acSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310d1c293acSmrg$as_echo X"$as_dir" |
311d1c293acSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312d1c293acSmrg	    s//\1/
313d1c293acSmrg	    q
314d1c293acSmrg	  }
315d1c293acSmrg	  /^X\(\/\/\)[^/].*/{
316d1c293acSmrg	    s//\1/
317d1c293acSmrg	    q
318d1c293acSmrg	  }
319d1c293acSmrg	  /^X\(\/\/\)$/{
320d1c293acSmrg	    s//\1/
321d1c293acSmrg	    q
322d1c293acSmrg	  }
323d1c293acSmrg	  /^X\(\/\).*/{
324d1c293acSmrg	    s//\1/
325d1c293acSmrg	    q
326d1c293acSmrg	  }
327d1c293acSmrg	  s/.*/./; q'`
328d1c293acSmrg      test -d "$as_dir" && break
329d1c293acSmrg    done
330d1c293acSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
331d1c293acSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332d1c293acSmrg
333d1c293acSmrg
334d1c293acSmrg} # as_fn_mkdir_p
335d1c293acSmrg# as_fn_append VAR VALUE
336d1c293acSmrg# ----------------------
337d1c293acSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
338d1c293acSmrg# advantage of any shell optimizations that allow amortized linear growth over
339d1c293acSmrg# repeated appends, instead of the typical quadratic growth present in naive
340d1c293acSmrg# implementations.
341d1c293acSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342d1c293acSmrg  eval 'as_fn_append ()
343d1c293acSmrg  {
344d1c293acSmrg    eval $1+=\$2
345d1c293acSmrg  }'
346d1c293acSmrgelse
347d1c293acSmrg  as_fn_append ()
348d1c293acSmrg  {
349d1c293acSmrg    eval $1=\$$1\$2
350d1c293acSmrg  }
351d1c293acSmrgfi # as_fn_append
352d1c293acSmrg
353d1c293acSmrg# as_fn_arith ARG...
354d1c293acSmrg# ------------------
355d1c293acSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
356d1c293acSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
357d1c293acSmrg# must be portable across $(()) and expr.
358d1c293acSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359d1c293acSmrg  eval 'as_fn_arith ()
360d1c293acSmrg  {
361d1c293acSmrg    as_val=$(( $* ))
362d1c293acSmrg  }'
363d1c293acSmrgelse
364d1c293acSmrg  as_fn_arith ()
365d1c293acSmrg  {
366d1c293acSmrg    as_val=`expr "$@" || test $? -eq 1`
367d1c293acSmrg  }
368d1c293acSmrgfi # as_fn_arith
369d1c293acSmrg
370d1c293acSmrg
371d1c293acSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
372d1c293acSmrg# ----------------------------------------
373d1c293acSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374d1c293acSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375d1c293acSmrg# script with STATUS, using 1 if that was 0.
376d1c293acSmrgas_fn_error ()
377d1c293acSmrg{
378d1c293acSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
379d1c293acSmrg  if test "$4"; then
380d1c293acSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381d1c293acSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382d1c293acSmrg  fi
383d1c293acSmrg  $as_echo "$as_me: error: $2" >&2
384d1c293acSmrg  as_fn_exit $as_status
385d1c293acSmrg} # as_fn_error
386d1c293acSmrg
387d1c293acSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
388d1c293acSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
3898440cca4Smrg  as_expr=expr
3908440cca4Smrgelse
3918440cca4Smrg  as_expr=false
3928440cca4Smrgfi
3938440cca4Smrg
394d1c293acSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3958440cca4Smrg  as_basename=basename
3968440cca4Smrgelse
3978440cca4Smrg  as_basename=false
3988440cca4Smrgfi
3998440cca4Smrg
400d1c293acSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401d1c293acSmrg  as_dirname=dirname
402d1c293acSmrgelse
403d1c293acSmrg  as_dirname=false
404d1c293acSmrgfi
4058440cca4Smrg
406d1c293acSmrgas_me=`$as_basename -- "$0" ||
4078440cca4Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4088440cca4Smrg	 X"$0" : 'X\(//\)$' \| \
409d1c293acSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410d1c293acSmrg$as_echo X/"$0" |
411d1c293acSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
412d1c293acSmrg	    s//\1/
413d1c293acSmrg	    q
414d1c293acSmrg	  }
415d1c293acSmrg	  /^X\/\(\/\/\)$/{
416d1c293acSmrg	    s//\1/
417d1c293acSmrg	    q
418d1c293acSmrg	  }
419d1c293acSmrg	  /^X\/\(\/\).*/{
420d1c293acSmrg	    s//\1/
421d1c293acSmrg	    q
422d1c293acSmrg	  }
423d1c293acSmrg	  s/.*/./; q'`
4248440cca4Smrg
4258440cca4Smrg# Avoid depending upon Character Ranges.
4268440cca4Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
4278440cca4Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4288440cca4Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
4298440cca4Smrgas_cr_digits='0123456789'
4308440cca4Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
4318440cca4Smrg
4328440cca4Smrg
433d1c293acSmrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434d1c293acSmrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435d1c293acSmrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436d1c293acSmrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437d1c293acSmrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438d1c293acSmrg  sed -n '
439d1c293acSmrg    p
440d1c293acSmrg    /[$]LINENO/=
441d1c293acSmrg  ' <$as_myself |
4428440cca4Smrg    sed '
443d1c293acSmrg      s/[$]LINENO.*/&-/
444d1c293acSmrg      t lineno
445d1c293acSmrg      b
446d1c293acSmrg      :lineno
4478440cca4Smrg      N
448d1c293acSmrg      :loop
449d1c293acSmrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4508440cca4Smrg      t loop
451d1c293acSmrg      s/-\n.*//
4528440cca4Smrg    ' >$as_me.lineno &&
453d1c293acSmrg  chmod +x "$as_me.lineno" ||
454d1c293acSmrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
4558440cca4Smrg
4568440cca4Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
4578440cca4Smrg  # (the dirname of $[0] is not the place where we might find the
458d1c293acSmrg  # original and so on.  Autoconf is especially sensitive to this).
459d1c293acSmrg  . "./$as_me.lineno"
4608440cca4Smrg  # Exit status is that of the last command.
4618440cca4Smrg  exit
4628440cca4Smrg}
4638440cca4Smrg
464d1c293acSmrgECHO_C= ECHO_N= ECHO_T=
465d1c293acSmrgcase `echo -n x` in #(((((
466d1c293acSmrg-n*)
467d1c293acSmrg  case `echo 'xy\c'` in
468d1c293acSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469d1c293acSmrg  xy)  ECHO_C='\c';;
470d1c293acSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471d1c293acSmrg       ECHO_T='	';;
472d1c293acSmrg  esac;;
473d1c293acSmrg*)
474d1c293acSmrg  ECHO_N='-n';;
4758440cca4Smrgesac
4768440cca4Smrg
477d1c293acSmrgrm -f conf$$ conf$$.exe conf$$.file
478d1c293acSmrgif test -d conf$$.dir; then
479d1c293acSmrg  rm -f conf$$.dir/conf$$.file
4808440cca4Smrgelse
481d1c293acSmrg  rm -f conf$$.dir
482d1c293acSmrg  mkdir conf$$.dir 2>/dev/null
4838440cca4Smrgfi
484d1c293acSmrgif (echo >conf$$.file) 2>/dev/null; then
485d1c293acSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
4868440cca4Smrg    as_ln_s='ln -s'
487d1c293acSmrg    # ... but there are two gotchas:
488d1c293acSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489d1c293acSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490d1c293acSmrg    # In both cases, we have to default to `cp -p'.
491d1c293acSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492d1c293acSmrg      as_ln_s='cp -p'
493d1c293acSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
494d1c293acSmrg    as_ln_s=ln
495d1c293acSmrg  else
496d1c293acSmrg    as_ln_s='cp -p'
4978440cca4Smrg  fi
4988440cca4Smrgelse
4998440cca4Smrg  as_ln_s='cp -p'
5008440cca4Smrgfi
501d1c293acSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502d1c293acSmrgrmdir conf$$.dir 2>/dev/null
5038440cca4Smrg
5048440cca4Smrgif mkdir -p . 2>/dev/null; then
505d1c293acSmrg  as_mkdir_p='mkdir -p "$as_dir"'
5068440cca4Smrgelse
5078440cca4Smrg  test -d ./-p && rmdir ./-p
5088440cca4Smrg  as_mkdir_p=false
5098440cca4Smrgfi
5108440cca4Smrg
511d1c293acSmrgif test -x / >/dev/null 2>&1; then
512d1c293acSmrg  as_test_x='test -x'
513d1c293acSmrgelse
514d1c293acSmrg  if ls -dL / >/dev/null 2>&1; then
515d1c293acSmrg    as_ls_L_option=L
516d1c293acSmrg  else
517d1c293acSmrg    as_ls_L_option=
518d1c293acSmrg  fi
519d1c293acSmrg  as_test_x='
520d1c293acSmrg    eval sh -c '\''
521d1c293acSmrg      if test -d "$1"; then
522d1c293acSmrg	test -d "$1/.";
523d1c293acSmrg      else
524d1c293acSmrg	case $1 in #(
525d1c293acSmrg	-*)set "./$1";;
526d1c293acSmrg	esac;
527d1c293acSmrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528d1c293acSmrg	???[sx]*):;;*)false;;esac;fi
529d1c293acSmrg    '\'' sh
530d1c293acSmrg  '
531d1c293acSmrgfi
532d1c293acSmrgas_executable_p=$as_test_x
5338440cca4Smrg
5348440cca4Smrg# Sed expression to map a string onto a valid CPP name.
5358440cca4Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5368440cca4Smrg
5378440cca4Smrg# Sed expression to map a string onto a valid variable name.
5388440cca4Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5398440cca4Smrg
5408440cca4Smrg
541d1c293acSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null
542d1c293acSmrgexec 6>&1
5438440cca4Smrg
5448440cca4Smrg# Name of the host.
545d1c293acSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
5468440cca4Smrg# so uname gets run too.
5478440cca4Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
5488440cca4Smrg
5498440cca4Smrg#
5508440cca4Smrg# Initializations.
5518440cca4Smrg#
5528440cca4Smrgac_default_prefix=/usr/local
553d1c293acSmrgac_clean_files=
5548440cca4Smrgac_config_libobj_dir=.
555d1c293acSmrgLIBOBJS=
5568440cca4Smrgcross_compiling=no
5578440cca4Smrgsubdirs=
5588440cca4SmrgMFLAGS=
5598440cca4SmrgMAKEFLAGS=
5608440cca4Smrg
5618440cca4Smrg# Identity of this package.
5628440cca4SmrgPACKAGE_NAME='xstdcmap'
5638440cca4SmrgPACKAGE_TARNAME='xstdcmap'
564d1c293acSmrgPACKAGE_VERSION='1.0.2'
565d1c293acSmrgPACKAGE_STRING='xstdcmap 1.0.2'
5668440cca4SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567d1c293acSmrgPACKAGE_URL=''
5688440cca4Smrg
569d1c293acSmrg# Factoring default headers for most tests.
570d1c293acSmrgac_includes_default="\
571d1c293acSmrg#include <stdio.h>
572d1c293acSmrg#ifdef HAVE_SYS_TYPES_H
573d1c293acSmrg# include <sys/types.h>
574d1c293acSmrg#endif
575d1c293acSmrg#ifdef HAVE_SYS_STAT_H
576d1c293acSmrg# include <sys/stat.h>
577d1c293acSmrg#endif
578d1c293acSmrg#ifdef STDC_HEADERS
579d1c293acSmrg# include <stdlib.h>
580d1c293acSmrg# include <stddef.h>
581d1c293acSmrg#else
582d1c293acSmrg# ifdef HAVE_STDLIB_H
583d1c293acSmrg#  include <stdlib.h>
584d1c293acSmrg# endif
585d1c293acSmrg#endif
586d1c293acSmrg#ifdef HAVE_STRING_H
587d1c293acSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588d1c293acSmrg#  include <memory.h>
589d1c293acSmrg# endif
590d1c293acSmrg# include <string.h>
591d1c293acSmrg#endif
592d1c293acSmrg#ifdef HAVE_STRINGS_H
593d1c293acSmrg# include <strings.h>
594d1c293acSmrg#endif
595d1c293acSmrg#ifdef HAVE_INTTYPES_H
596d1c293acSmrg# include <inttypes.h>
597d1c293acSmrg#endif
598d1c293acSmrg#ifdef HAVE_STDINT_H
599d1c293acSmrg# include <stdint.h>
600d1c293acSmrg#endif
601d1c293acSmrg#ifdef HAVE_UNISTD_H
602d1c293acSmrg# include <unistd.h>
603d1c293acSmrg#endif"
604d1c293acSmrg
605d1c293acSmrgac_subst_vars='am__EXEEXT_FALSE
606d1c293acSmrgam__EXEEXT_TRUE
607d1c293acSmrgLTLIBOBJS
608d1c293acSmrgLIBOBJS
609d1c293acSmrgXSTDCMAP_LIBS
610d1c293acSmrgXSTDCMAP_CFLAGS
611d1c293acSmrgAM_BACKSLASH
612d1c293acSmrgAM_DEFAULT_VERBOSITY
613d1c293acSmrgMAN_SUBSTS
614d1c293acSmrgXORG_MAN_PAGE
615d1c293acSmrgADMIN_MAN_DIR
616d1c293acSmrgDRIVER_MAN_DIR
617d1c293acSmrgMISC_MAN_DIR
618d1c293acSmrgFILE_MAN_DIR
619d1c293acSmrgLIB_MAN_DIR
620d1c293acSmrgAPP_MAN_DIR
621d1c293acSmrgADMIN_MAN_SUFFIX
622d1c293acSmrgDRIVER_MAN_SUFFIX
623d1c293acSmrgMISC_MAN_SUFFIX
624d1c293acSmrgFILE_MAN_SUFFIX
625d1c293acSmrgLIB_MAN_SUFFIX
626d1c293acSmrgAPP_MAN_SUFFIX
627d1c293acSmrgSED
628d1c293acSmrghost_os
629d1c293acSmrghost_vendor
630d1c293acSmrghost_cpu
631d1c293acSmrghost
632d1c293acSmrgbuild_os
633d1c293acSmrgbuild_vendor
634d1c293acSmrgbuild_cpu
635d1c293acSmrgbuild
636d1c293acSmrgINSTALL_CMD
637d1c293acSmrgPKG_CONFIG
638d1c293acSmrgCHANGELOG_CMD
639d1c293acSmrgCWARNFLAGS
640d1c293acSmrgEGREP
641d1c293acSmrgGREP
642d1c293acSmrgCPP
643d1c293acSmrgam__fastdepCC_FALSE
644d1c293acSmrgam__fastdepCC_TRUE
645d1c293acSmrgCCDEPMODE
646d1c293acSmrgAMDEPBACKSLASH
647d1c293acSmrgAMDEP_FALSE
648d1c293acSmrgAMDEP_TRUE
649d1c293acSmrgam__quote
650d1c293acSmrgam__include
651d1c293acSmrgDEPDIR
652d1c293acSmrgOBJEXT
653d1c293acSmrgEXEEXT
654d1c293acSmrgac_ct_CC
655d1c293acSmrgCPPFLAGS
656d1c293acSmrgLDFLAGS
657d1c293acSmrgCFLAGS
658d1c293acSmrgCC
659d1c293acSmrgMAINT
660d1c293acSmrgMAINTAINER_MODE_FALSE
661d1c293acSmrgMAINTAINER_MODE_TRUE
662d1c293acSmrgam__untar
663d1c293acSmrgam__tar
664d1c293acSmrgAMTAR
665d1c293acSmrgam__leading_dot
666d1c293acSmrgSET_MAKE
667d1c293acSmrgAWK
668d1c293acSmrgmkdir_p
669d1c293acSmrgMKDIR_P
670d1c293acSmrgINSTALL_STRIP_PROGRAM
671d1c293acSmrgSTRIP
672d1c293acSmrginstall_sh
673d1c293acSmrgMAKEINFO
674d1c293acSmrgAUTOHEADER
675d1c293acSmrgAUTOMAKE
676d1c293acSmrgAUTOCONF
677d1c293acSmrgACLOCAL
678d1c293acSmrgVERSION
679d1c293acSmrgPACKAGE
680d1c293acSmrgCYGPATH_W
681d1c293acSmrgam__isrc
682d1c293acSmrgINSTALL_DATA
683d1c293acSmrgINSTALL_SCRIPT
684d1c293acSmrgINSTALL_PROGRAM
685d1c293acSmrgtarget_alias
686d1c293acSmrghost_alias
687d1c293acSmrgbuild_alias
688d1c293acSmrgLIBS
689d1c293acSmrgECHO_T
690d1c293acSmrgECHO_N
691d1c293acSmrgECHO_C
692d1c293acSmrgDEFS
693d1c293acSmrgmandir
694d1c293acSmrglocaledir
695d1c293acSmrglibdir
696d1c293acSmrgpsdir
697d1c293acSmrgpdfdir
698d1c293acSmrgdvidir
699d1c293acSmrghtmldir
700d1c293acSmrginfodir
701d1c293acSmrgdocdir
702d1c293acSmrgoldincludedir
703d1c293acSmrgincludedir
704d1c293acSmrglocalstatedir
705d1c293acSmrgsharedstatedir
706d1c293acSmrgsysconfdir
707d1c293acSmrgdatadir
708d1c293acSmrgdatarootdir
709d1c293acSmrglibexecdir
710d1c293acSmrgsbindir
711d1c293acSmrgbindir
712d1c293acSmrgprogram_transform_name
713d1c293acSmrgprefix
714d1c293acSmrgexec_prefix
715d1c293acSmrgPACKAGE_URL
716d1c293acSmrgPACKAGE_BUGREPORT
717d1c293acSmrgPACKAGE_STRING
718d1c293acSmrgPACKAGE_VERSION
719d1c293acSmrgPACKAGE_TARNAME
720d1c293acSmrgPACKAGE_NAME
721d1c293acSmrgPATH_SEPARATOR
722d1c293acSmrgSHELL'
7238440cca4Smrgac_subst_files=''
724d1c293acSmrgac_user_opts='
725d1c293acSmrgenable_option_checking
726d1c293acSmrgenable_maintainer_mode
727d1c293acSmrgenable_dependency_tracking
728d1c293acSmrgenable_strict_compilation
729d1c293acSmrgenable_silent_rules
730d1c293acSmrg'
731d1c293acSmrg      ac_precious_vars='build_alias
732d1c293acSmrghost_alias
733d1c293acSmrgtarget_alias
734d1c293acSmrgCC
735d1c293acSmrgCFLAGS
736d1c293acSmrgLDFLAGS
737d1c293acSmrgLIBS
738d1c293acSmrgCPPFLAGS
739d1c293acSmrgCPP
740d1c293acSmrgPKG_CONFIG
741d1c293acSmrgXSTDCMAP_CFLAGS
742d1c293acSmrgXSTDCMAP_LIBS'
743d1c293acSmrg
7448440cca4Smrg
7458440cca4Smrg# Initialize some variables set by options.
7468440cca4Smrgac_init_help=
7478440cca4Smrgac_init_version=false
748d1c293acSmrgac_unrecognized_opts=
749d1c293acSmrgac_unrecognized_sep=
7508440cca4Smrg# The variables have the same names as the options, with
7518440cca4Smrg# dashes changed to underlines.
7528440cca4Smrgcache_file=/dev/null
7538440cca4Smrgexec_prefix=NONE
7548440cca4Smrgno_create=
7558440cca4Smrgno_recursion=
7568440cca4Smrgprefix=NONE
7578440cca4Smrgprogram_prefix=NONE
7588440cca4Smrgprogram_suffix=NONE
7598440cca4Smrgprogram_transform_name=s,x,x,
7608440cca4Smrgsilent=
7618440cca4Smrgsite=
7628440cca4Smrgsrcdir=
7638440cca4Smrgverbose=
7648440cca4Smrgx_includes=NONE
7658440cca4Smrgx_libraries=NONE
7668440cca4Smrg
7678440cca4Smrg# Installation directory options.
7688440cca4Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
7698440cca4Smrg# and all the variables that are supposed to be based on exec_prefix
7708440cca4Smrg# by default will actually change.
7718440cca4Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
772d1c293acSmrg# (The list follows the same order as the GNU Coding Standards.)
7738440cca4Smrgbindir='${exec_prefix}/bin'
7748440cca4Smrgsbindir='${exec_prefix}/sbin'
7758440cca4Smrglibexecdir='${exec_prefix}/libexec'
776d1c293acSmrgdatarootdir='${prefix}/share'
777d1c293acSmrgdatadir='${datarootdir}'
7788440cca4Smrgsysconfdir='${prefix}/etc'
7798440cca4Smrgsharedstatedir='${prefix}/com'
7808440cca4Smrglocalstatedir='${prefix}/var'
7818440cca4Smrgincludedir='${prefix}/include'
7828440cca4Smrgoldincludedir='/usr/include'
783d1c293acSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
784d1c293acSmrginfodir='${datarootdir}/info'
785d1c293acSmrghtmldir='${docdir}'
786d1c293acSmrgdvidir='${docdir}'
787d1c293acSmrgpdfdir='${docdir}'
788d1c293acSmrgpsdir='${docdir}'
789d1c293acSmrglibdir='${exec_prefix}/lib'
790d1c293acSmrglocaledir='${datarootdir}/locale'
791d1c293acSmrgmandir='${datarootdir}/man'
7928440cca4Smrg
7938440cca4Smrgac_prev=
794d1c293acSmrgac_dashdash=
7958440cca4Smrgfor ac_option
7968440cca4Smrgdo
7978440cca4Smrg  # If the previous option needs an argument, assign it.
7988440cca4Smrg  if test -n "$ac_prev"; then
799d1c293acSmrg    eval $ac_prev=\$ac_option
8008440cca4Smrg    ac_prev=
8018440cca4Smrg    continue
8028440cca4Smrg  fi
8038440cca4Smrg
804d1c293acSmrg  case $ac_option in
805d1c293acSmrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806d1c293acSmrg  *=)   ac_optarg= ;;
807d1c293acSmrg  *)    ac_optarg=yes ;;
808d1c293acSmrg  esac
8098440cca4Smrg
8108440cca4Smrg  # Accept the important Cygnus configure options, so we can diagnose typos.
8118440cca4Smrg
812d1c293acSmrg  case $ac_dashdash$ac_option in
813d1c293acSmrg  --)
814d1c293acSmrg    ac_dashdash=yes ;;
8158440cca4Smrg
8168440cca4Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
8178440cca4Smrg    ac_prev=bindir ;;
8188440cca4Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
8198440cca4Smrg    bindir=$ac_optarg ;;
8208440cca4Smrg
8218440cca4Smrg  -build | --build | --buil | --bui | --bu)
8228440cca4Smrg    ac_prev=build_alias ;;
8238440cca4Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
8248440cca4Smrg    build_alias=$ac_optarg ;;
8258440cca4Smrg
8268440cca4Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
8278440cca4Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8288440cca4Smrg    ac_prev=cache_file ;;
8298440cca4Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8308440cca4Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8318440cca4Smrg    cache_file=$ac_optarg ;;
8328440cca4Smrg
8338440cca4Smrg  --config-cache | -C)
8348440cca4Smrg    cache_file=config.cache ;;
8358440cca4Smrg
836d1c293acSmrg  -datadir | --datadir | --datadi | --datad)
8378440cca4Smrg    ac_prev=datadir ;;
838d1c293acSmrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
8398440cca4Smrg    datadir=$ac_optarg ;;
8408440cca4Smrg
841d1c293acSmrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
842d1c293acSmrg  | --dataroo | --dataro | --datar)
843d1c293acSmrg    ac_prev=datarootdir ;;
844d1c293acSmrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
845d1c293acSmrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
846d1c293acSmrg    datarootdir=$ac_optarg ;;
847d1c293acSmrg
8488440cca4Smrg  -disable-* | --disable-*)
849d1c293acSmrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
8508440cca4Smrg    # Reject names that are not valid shell variable names.
851d1c293acSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
852d1c293acSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
853d1c293acSmrg    ac_useropt_orig=$ac_useropt
854d1c293acSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
855d1c293acSmrg    case $ac_user_opts in
856d1c293acSmrg      *"
857d1c293acSmrg"enable_$ac_useropt"
858d1c293acSmrg"*) ;;
859d1c293acSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
860d1c293acSmrg	 ac_unrecognized_sep=', ';;
861d1c293acSmrg    esac
862d1c293acSmrg    eval enable_$ac_useropt=no ;;
863d1c293acSmrg
864d1c293acSmrg  -docdir | --docdir | --docdi | --doc | --do)
865d1c293acSmrg    ac_prev=docdir ;;
866d1c293acSmrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
867d1c293acSmrg    docdir=$ac_optarg ;;
868d1c293acSmrg
869d1c293acSmrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
870d1c293acSmrg    ac_prev=dvidir ;;
871d1c293acSmrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
872d1c293acSmrg    dvidir=$ac_optarg ;;
8738440cca4Smrg
8748440cca4Smrg  -enable-* | --enable-*)
875d1c293acSmrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
8768440cca4Smrg    # Reject names that are not valid shell variable names.
877d1c293acSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878d1c293acSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
879d1c293acSmrg    ac_useropt_orig=$ac_useropt
880d1c293acSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881d1c293acSmrg    case $ac_user_opts in
882d1c293acSmrg      *"
883d1c293acSmrg"enable_$ac_useropt"
884d1c293acSmrg"*) ;;
885d1c293acSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
886d1c293acSmrg	 ac_unrecognized_sep=', ';;
8878440cca4Smrg    esac
888d1c293acSmrg    eval enable_$ac_useropt=\$ac_optarg ;;
8898440cca4Smrg
8908440cca4Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
8918440cca4Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
8928440cca4Smrg  | --exec | --exe | --ex)
8938440cca4Smrg    ac_prev=exec_prefix ;;
8948440cca4Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
8958440cca4Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
8968440cca4Smrg  | --exec=* | --exe=* | --ex=*)
8978440cca4Smrg    exec_prefix=$ac_optarg ;;
8988440cca4Smrg
8998440cca4Smrg  -gas | --gas | --ga | --g)
9008440cca4Smrg    # Obsolete; use --with-gas.
9018440cca4Smrg    with_gas=yes ;;
9028440cca4Smrg
9038440cca4Smrg  -help | --help | --hel | --he | -h)
9048440cca4Smrg    ac_init_help=long ;;
9058440cca4Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
9068440cca4Smrg    ac_init_help=recursive ;;
9078440cca4Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
9088440cca4Smrg    ac_init_help=short ;;
9098440cca4Smrg
9108440cca4Smrg  -host | --host | --hos | --ho)
9118440cca4Smrg    ac_prev=host_alias ;;
9128440cca4Smrg  -host=* | --host=* | --hos=* | --ho=*)
9138440cca4Smrg    host_alias=$ac_optarg ;;
9148440cca4Smrg
915d1c293acSmrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
916d1c293acSmrg    ac_prev=htmldir ;;
917d1c293acSmrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
918d1c293acSmrg  | --ht=*)
919d1c293acSmrg    htmldir=$ac_optarg ;;
920d1c293acSmrg
9218440cca4Smrg  -includedir | --includedir | --includedi | --included | --include \
9228440cca4Smrg  | --includ | --inclu | --incl | --inc)
9238440cca4Smrg    ac_prev=includedir ;;
9248440cca4Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
9258440cca4Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
9268440cca4Smrg    includedir=$ac_optarg ;;
9278440cca4Smrg
9288440cca4Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
9298440cca4Smrg    ac_prev=infodir ;;
9308440cca4Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
9318440cca4Smrg    infodir=$ac_optarg ;;
9328440cca4Smrg
9338440cca4Smrg  -libdir | --libdir | --libdi | --libd)
9348440cca4Smrg    ac_prev=libdir ;;
9358440cca4Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
9368440cca4Smrg    libdir=$ac_optarg ;;
9378440cca4Smrg
9388440cca4Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
9398440cca4Smrg  | --libexe | --libex | --libe)
9408440cca4Smrg    ac_prev=libexecdir ;;
9418440cca4Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
9428440cca4Smrg  | --libexe=* | --libex=* | --libe=*)
9438440cca4Smrg    libexecdir=$ac_optarg ;;
9448440cca4Smrg
945d1c293acSmrg  -localedir | --localedir | --localedi | --localed | --locale)
946d1c293acSmrg    ac_prev=localedir ;;
947d1c293acSmrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
948d1c293acSmrg    localedir=$ac_optarg ;;
949d1c293acSmrg
9508440cca4Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
951d1c293acSmrg  | --localstate | --localstat | --localsta | --localst | --locals)
9528440cca4Smrg    ac_prev=localstatedir ;;
9538440cca4Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
954d1c293acSmrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
9558440cca4Smrg    localstatedir=$ac_optarg ;;
9568440cca4Smrg
9578440cca4Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
9588440cca4Smrg    ac_prev=mandir ;;
9598440cca4Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
9608440cca4Smrg    mandir=$ac_optarg ;;
9618440cca4Smrg
9628440cca4Smrg  -nfp | --nfp | --nf)
9638440cca4Smrg    # Obsolete; use --without-fp.
9648440cca4Smrg    with_fp=no ;;
9658440cca4Smrg
9668440cca4Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
9678440cca4Smrg  | --no-cr | --no-c | -n)
9688440cca4Smrg    no_create=yes ;;
9698440cca4Smrg
9708440cca4Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
9718440cca4Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
9728440cca4Smrg    no_recursion=yes ;;
9738440cca4Smrg
9748440cca4Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
9758440cca4Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
9768440cca4Smrg  | --oldin | --oldi | --old | --ol | --o)
9778440cca4Smrg    ac_prev=oldincludedir ;;
9788440cca4Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
9798440cca4Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
9808440cca4Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
9818440cca4Smrg    oldincludedir=$ac_optarg ;;
9828440cca4Smrg
9838440cca4Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9848440cca4Smrg    ac_prev=prefix ;;
9858440cca4Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9868440cca4Smrg    prefix=$ac_optarg ;;
9878440cca4Smrg
9888440cca4Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
9898440cca4Smrg  | --program-pre | --program-pr | --program-p)
9908440cca4Smrg    ac_prev=program_prefix ;;
9918440cca4Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
9928440cca4Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
9938440cca4Smrg    program_prefix=$ac_optarg ;;
9948440cca4Smrg
9958440cca4Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
9968440cca4Smrg  | --program-suf | --program-su | --program-s)
9978440cca4Smrg    ac_prev=program_suffix ;;
9988440cca4Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
9998440cca4Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
10008440cca4Smrg    program_suffix=$ac_optarg ;;
10018440cca4Smrg
10028440cca4Smrg  -program-transform-name | --program-transform-name \
10038440cca4Smrg  | --program-transform-nam | --program-transform-na \
10048440cca4Smrg  | --program-transform-n | --program-transform- \
10058440cca4Smrg  | --program-transform | --program-transfor \
10068440cca4Smrg  | --program-transfo | --program-transf \
10078440cca4Smrg  | --program-trans | --program-tran \
10088440cca4Smrg  | --progr-tra | --program-tr | --program-t)
10098440cca4Smrg    ac_prev=program_transform_name ;;
10108440cca4Smrg  -program-transform-name=* | --program-transform-name=* \
10118440cca4Smrg  | --program-transform-nam=* | --program-transform-na=* \
10128440cca4Smrg  | --program-transform-n=* | --program-transform-=* \
10138440cca4Smrg  | --program-transform=* | --program-transfor=* \
10148440cca4Smrg  | --program-transfo=* | --program-transf=* \
10158440cca4Smrg  | --program-trans=* | --program-tran=* \
10168440cca4Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
10178440cca4Smrg    program_transform_name=$ac_optarg ;;
10188440cca4Smrg
1019d1c293acSmrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1020d1c293acSmrg    ac_prev=pdfdir ;;
1021d1c293acSmrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1022d1c293acSmrg    pdfdir=$ac_optarg ;;
1023d1c293acSmrg
1024d1c293acSmrg  -psdir | --psdir | --psdi | --psd | --ps)
1025d1c293acSmrg    ac_prev=psdir ;;
1026d1c293acSmrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1027d1c293acSmrg    psdir=$ac_optarg ;;
1028d1c293acSmrg
10298440cca4Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10308440cca4Smrg  | -silent | --silent | --silen | --sile | --sil)
10318440cca4Smrg    silent=yes ;;
10328440cca4Smrg
10338440cca4Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
10348440cca4Smrg    ac_prev=sbindir ;;
10358440cca4Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
10368440cca4Smrg  | --sbi=* | --sb=*)
10378440cca4Smrg    sbindir=$ac_optarg ;;
10388440cca4Smrg
10398440cca4Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
10408440cca4Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
10418440cca4Smrg  | --sharedst | --shareds | --shared | --share | --shar \
10428440cca4Smrg  | --sha | --sh)
10438440cca4Smrg    ac_prev=sharedstatedir ;;
10448440cca4Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
10458440cca4Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
10468440cca4Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
10478440cca4Smrg  | --sha=* | --sh=*)
10488440cca4Smrg    sharedstatedir=$ac_optarg ;;
10498440cca4Smrg
10508440cca4Smrg  -site | --site | --sit)
10518440cca4Smrg    ac_prev=site ;;
10528440cca4Smrg  -site=* | --site=* | --sit=*)
10538440cca4Smrg    site=$ac_optarg ;;
10548440cca4Smrg
10558440cca4Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10568440cca4Smrg    ac_prev=srcdir ;;
10578440cca4Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10588440cca4Smrg    srcdir=$ac_optarg ;;
10598440cca4Smrg
10608440cca4Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
10618440cca4Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
10628440cca4Smrg    ac_prev=sysconfdir ;;
10638440cca4Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
10648440cca4Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
10658440cca4Smrg    sysconfdir=$ac_optarg ;;
10668440cca4Smrg
10678440cca4Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
10688440cca4Smrg    ac_prev=target_alias ;;
10698440cca4Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
10708440cca4Smrg    target_alias=$ac_optarg ;;
10718440cca4Smrg
10728440cca4Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
10738440cca4Smrg    verbose=yes ;;
10748440cca4Smrg
10758440cca4Smrg  -version | --version | --versio | --versi | --vers | -V)
10768440cca4Smrg    ac_init_version=: ;;
10778440cca4Smrg
10788440cca4Smrg  -with-* | --with-*)
1079d1c293acSmrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10808440cca4Smrg    # Reject names that are not valid shell variable names.
1081d1c293acSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082d1c293acSmrg      as_fn_error $? "invalid package name: $ac_useropt"
1083d1c293acSmrg    ac_useropt_orig=$ac_useropt
1084d1c293acSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085d1c293acSmrg    case $ac_user_opts in
1086d1c293acSmrg      *"
1087d1c293acSmrg"with_$ac_useropt"
1088d1c293acSmrg"*) ;;
1089d1c293acSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1090d1c293acSmrg	 ac_unrecognized_sep=', ';;
10918440cca4Smrg    esac
1092d1c293acSmrg    eval with_$ac_useropt=\$ac_optarg ;;
10938440cca4Smrg
10948440cca4Smrg  -without-* | --without-*)
1095d1c293acSmrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10968440cca4Smrg    # Reject names that are not valid shell variable names.
1097d1c293acSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098d1c293acSmrg      as_fn_error $? "invalid package name: $ac_useropt"
1099d1c293acSmrg    ac_useropt_orig=$ac_useropt
1100d1c293acSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101d1c293acSmrg    case $ac_user_opts in
1102d1c293acSmrg      *"
1103d1c293acSmrg"with_$ac_useropt"
1104d1c293acSmrg"*) ;;
1105d1c293acSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1106d1c293acSmrg	 ac_unrecognized_sep=', ';;
1107d1c293acSmrg    esac
1108d1c293acSmrg    eval with_$ac_useropt=no ;;
11098440cca4Smrg
11108440cca4Smrg  --x)
11118440cca4Smrg    # Obsolete; use --with-x.
11128440cca4Smrg    with_x=yes ;;
11138440cca4Smrg
11148440cca4Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
11158440cca4Smrg  | --x-incl | --x-inc | --x-in | --x-i)
11168440cca4Smrg    ac_prev=x_includes ;;
11178440cca4Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
11188440cca4Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
11198440cca4Smrg    x_includes=$ac_optarg ;;
11208440cca4Smrg
11218440cca4Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
11228440cca4Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
11238440cca4Smrg    ac_prev=x_libraries ;;
11248440cca4Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
11258440cca4Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
11268440cca4Smrg    x_libraries=$ac_optarg ;;
11278440cca4Smrg
1128d1c293acSmrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1129d1c293acSmrgTry \`$0 --help' for more information"
11308440cca4Smrg    ;;
11318440cca4Smrg
11328440cca4Smrg  *=*)
11338440cca4Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
11348440cca4Smrg    # Reject names that are not valid shell variable names.
1135d1c293acSmrg    case $ac_envvar in #(
1136d1c293acSmrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
1137d1c293acSmrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1138d1c293acSmrg    esac
1139d1c293acSmrg    eval $ac_envvar=\$ac_optarg
11408440cca4Smrg    export $ac_envvar ;;
11418440cca4Smrg
11428440cca4Smrg  *)
11438440cca4Smrg    # FIXME: should be removed in autoconf 3.0.
1144d1c293acSmrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
11458440cca4Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1146d1c293acSmrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1147d1c293acSmrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
11488440cca4Smrg    ;;
11498440cca4Smrg
11508440cca4Smrg  esac
11518440cca4Smrgdone
11528440cca4Smrg
11538440cca4Smrgif test -n "$ac_prev"; then
11548440cca4Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1155d1c293acSmrg  as_fn_error $? "missing argument to $ac_option"
11568440cca4Smrgfi
11578440cca4Smrg
1158d1c293acSmrgif test -n "$ac_unrecognized_opts"; then
1159d1c293acSmrg  case $enable_option_checking in
1160d1c293acSmrg    no) ;;
1161d1c293acSmrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1162d1c293acSmrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
11638440cca4Smrg  esac
1164d1c293acSmrgfi
11658440cca4Smrg
1166d1c293acSmrg# Check all directory arguments for consistency.
1167d1c293acSmrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1168d1c293acSmrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1169d1c293acSmrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1170d1c293acSmrg		libdir localedir mandir
11718440cca4Smrgdo
1172d1c293acSmrg  eval ac_val=\$$ac_var
1173d1c293acSmrg  # Remove trailing slashes.
1174d1c293acSmrg  case $ac_val in
1175d1c293acSmrg    */ )
1176d1c293acSmrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1177d1c293acSmrg      eval $ac_var=\$ac_val;;
1178d1c293acSmrg  esac
1179d1c293acSmrg  # Be sure to have absolute directory names.
11808440cca4Smrg  case $ac_val in
1181d1c293acSmrg    [\\/$]* | ?:[\\/]* )  continue;;
1182d1c293acSmrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
11838440cca4Smrg  esac
1184d1c293acSmrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
11858440cca4Smrgdone
11868440cca4Smrg
11878440cca4Smrg# There might be people who depend on the old broken behavior: `$host'
11888440cca4Smrg# used to hold the argument of --host etc.
11898440cca4Smrg# FIXME: To remove some day.
11908440cca4Smrgbuild=$build_alias
11918440cca4Smrghost=$host_alias
11928440cca4Smrgtarget=$target_alias
11938440cca4Smrg
11948440cca4Smrg# FIXME: To remove some day.
11958440cca4Smrgif test "x$host_alias" != x; then
11968440cca4Smrg  if test "x$build_alias" = x; then
11978440cca4Smrg    cross_compiling=maybe
1198d1c293acSmrg    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1199d1c293acSmrg    If a cross compiler is detected then cross compile mode will be used" >&2
12008440cca4Smrg  elif test "x$build_alias" != "x$host_alias"; then
12018440cca4Smrg    cross_compiling=yes
12028440cca4Smrg  fi
12038440cca4Smrgfi
12048440cca4Smrg
12058440cca4Smrgac_tool_prefix=
12068440cca4Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
12078440cca4Smrg
12088440cca4Smrgtest "$silent" = yes && exec 6>/dev/null
12098440cca4Smrg
12108440cca4Smrg
1211d1c293acSmrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1212d1c293acSmrgac_ls_di=`ls -di .` &&
1213d1c293acSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1214d1c293acSmrg  as_fn_error $? "working directory cannot be determined"
1215d1c293acSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1216d1c293acSmrg  as_fn_error $? "pwd does not report name of working directory"
1217d1c293acSmrg
1218d1c293acSmrg
12198440cca4Smrg# Find the source files, if location was not specified.
12208440cca4Smrgif test -z "$srcdir"; then
12218440cca4Smrg  ac_srcdir_defaulted=yes
1222d1c293acSmrg  # Try the directory containing this script, then the parent directory.
1223d1c293acSmrg  ac_confdir=`$as_dirname -- "$as_myself" ||
1224d1c293acSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1225d1c293acSmrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
1226d1c293acSmrg	 X"$as_myself" : 'X\(//\)$' \| \
1227d1c293acSmrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1228d1c293acSmrg$as_echo X"$as_myself" |
1229d1c293acSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1230d1c293acSmrg	    s//\1/
1231d1c293acSmrg	    q
1232d1c293acSmrg	  }
1233d1c293acSmrg	  /^X\(\/\/\)[^/].*/{
1234d1c293acSmrg	    s//\1/
1235d1c293acSmrg	    q
1236d1c293acSmrg	  }
1237d1c293acSmrg	  /^X\(\/\/\)$/{
1238d1c293acSmrg	    s//\1/
1239d1c293acSmrg	    q
1240d1c293acSmrg	  }
1241d1c293acSmrg	  /^X\(\/\).*/{
1242d1c293acSmrg	    s//\1/
1243d1c293acSmrg	    q
1244d1c293acSmrg	  }
1245d1c293acSmrg	  s/.*/./; q'`
12468440cca4Smrg  srcdir=$ac_confdir
1247d1c293acSmrg  if test ! -r "$srcdir/$ac_unique_file"; then
12488440cca4Smrg    srcdir=..
12498440cca4Smrg  fi
12508440cca4Smrgelse
12518440cca4Smrg  ac_srcdir_defaulted=no
12528440cca4Smrgfi
1253d1c293acSmrgif test ! -r "$srcdir/$ac_unique_file"; then
1254d1c293acSmrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1255d1c293acSmrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1256d1c293acSmrgfi
1257d1c293acSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1258d1c293acSmrgac_abs_confdir=`(
1259d1c293acSmrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1260d1c293acSmrg	pwd)`
1261d1c293acSmrg# When building in place, set srcdir=.
1262d1c293acSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1263d1c293acSmrg  srcdir=.
1264d1c293acSmrgfi
1265d1c293acSmrg# Remove unnecessary trailing slashes from srcdir.
1266d1c293acSmrg# Double slashes in file names in object file debugging info
1267d1c293acSmrg# mess up M-x gdb in Emacs.
1268d1c293acSmrgcase $srcdir in
1269d1c293acSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1270d1c293acSmrgesac
1271d1c293acSmrgfor ac_var in $ac_precious_vars; do
1272d1c293acSmrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1273d1c293acSmrg  eval ac_env_${ac_var}_value=\$${ac_var}
1274d1c293acSmrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1275d1c293acSmrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1276d1c293acSmrgdone
12778440cca4Smrg
12788440cca4Smrg#
12798440cca4Smrg# Report the --help message.
12808440cca4Smrg#
12818440cca4Smrgif test "$ac_init_help" = "long"; then
12828440cca4Smrg  # Omit some internal or obsolete options to make the list less imposing.
12838440cca4Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
12848440cca4Smrg  cat <<_ACEOF
1285d1c293acSmrg\`configure' configures xstdcmap 1.0.2 to adapt to many kinds of systems.
12868440cca4Smrg
12878440cca4SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
12888440cca4Smrg
12898440cca4SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
12908440cca4SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
12918440cca4Smrg
12928440cca4SmrgDefaults for the options are specified in brackets.
12938440cca4Smrg
12948440cca4SmrgConfiguration:
12958440cca4Smrg  -h, --help              display this help and exit
12968440cca4Smrg      --help=short        display options specific to this package
12978440cca4Smrg      --help=recursive    display the short help of all the included packages
12988440cca4Smrg  -V, --version           display version information and exit
1299d1c293acSmrg  -q, --quiet, --silent   do not print \`checking ...' messages
13008440cca4Smrg      --cache-file=FILE   cache test results in FILE [disabled]
13018440cca4Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
13028440cca4Smrg  -n, --no-create         do not create output files
13038440cca4Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
13048440cca4Smrg
13058440cca4SmrgInstallation directories:
13068440cca4Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
1307d1c293acSmrg                          [$ac_default_prefix]
13088440cca4Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1309d1c293acSmrg                          [PREFIX]
13108440cca4Smrg
13118440cca4SmrgBy default, \`make install' will install all the files in
13128440cca4Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
13138440cca4Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
13148440cca4Smrgfor instance \`--prefix=\$HOME'.
13158440cca4Smrg
13168440cca4SmrgFor better control, use the options below.
13178440cca4Smrg
13188440cca4SmrgFine tuning of the installation directories:
1319d1c293acSmrg  --bindir=DIR            user executables [EPREFIX/bin]
1320d1c293acSmrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1321d1c293acSmrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
1322d1c293acSmrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1323d1c293acSmrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1324d1c293acSmrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1325d1c293acSmrg  --libdir=DIR            object code libraries [EPREFIX/lib]
1326d1c293acSmrg  --includedir=DIR        C header files [PREFIX/include]
1327d1c293acSmrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1328d1c293acSmrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1329d1c293acSmrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1330d1c293acSmrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
1331d1c293acSmrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1332d1c293acSmrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
1333d1c293acSmrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xstdcmap]
1334d1c293acSmrg  --htmldir=DIR           html documentation [DOCDIR]
1335d1c293acSmrg  --dvidir=DIR            dvi documentation [DOCDIR]
1336d1c293acSmrg  --pdfdir=DIR            pdf documentation [DOCDIR]
1337d1c293acSmrg  --psdir=DIR             ps documentation [DOCDIR]
13388440cca4Smrg_ACEOF
13398440cca4Smrg
13408440cca4Smrg  cat <<\_ACEOF
13418440cca4Smrg
13428440cca4SmrgProgram names:
13438440cca4Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
13448440cca4Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
13458440cca4Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
13468440cca4Smrg
13478440cca4SmrgSystem types:
13488440cca4Smrg  --build=BUILD     configure for building on BUILD [guessed]
13498440cca4Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
13508440cca4Smrg_ACEOF
13518440cca4Smrgfi
13528440cca4Smrg
13538440cca4Smrgif test -n "$ac_init_help"; then
13548440cca4Smrg  case $ac_init_help in
1355d1c293acSmrg     short | recursive ) echo "Configuration of xstdcmap 1.0.2:";;
13568440cca4Smrg   esac
13578440cca4Smrg  cat <<\_ACEOF
13588440cca4Smrg
13598440cca4SmrgOptional Features:
1360d1c293acSmrg  --disable-option-checking  ignore unrecognized --enable/--with options
13618440cca4Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
13628440cca4Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1363d1c293acSmrg  --enable-maintainer-mode  enable make rules and dependencies not useful
1364d1c293acSmrg			  (and sometimes confusing) to the casual installer
1365d1c293acSmrg  --disable-dependency-tracking  speeds up one-time build
1366d1c293acSmrg  --enable-dependency-tracking   do not reject slow dependency extractors
1367d1c293acSmrg  --enable-strict-compilation
1368d1c293acSmrg                          Enable all warnings from compiler and make them
1369d1c293acSmrg                          errors (default: disabled)
1370d1c293acSmrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
1371d1c293acSmrg  --disable-silent-rules         verbose build output (undo: `make V=0')
13728440cca4Smrg
13738440cca4SmrgSome influential environment variables:
13748440cca4Smrg  CC          C compiler command
13758440cca4Smrg  CFLAGS      C compiler flags
13768440cca4Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
13778440cca4Smrg              nonstandard directory <lib dir>
1378d1c293acSmrg  LIBS        libraries to pass to the linker, e.g. -l<library>
1379d1c293acSmrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1380d1c293acSmrg              you have headers in a nonstandard directory <include dir>
1381d1c293acSmrg  CPP         C preprocessor
13828440cca4Smrg  PKG_CONFIG  path to pkg-config utility
13838440cca4Smrg  XSTDCMAP_CFLAGS
13848440cca4Smrg              C compiler flags for XSTDCMAP, overriding pkg-config
13858440cca4Smrg  XSTDCMAP_LIBS
13868440cca4Smrg              linker flags for XSTDCMAP, overriding pkg-config
13878440cca4Smrg
13888440cca4SmrgUse these variables to override the choices made by `configure' or to help
13898440cca4Smrgit to find libraries and programs with nonstandard names/locations.
13908440cca4Smrg
13918440cca4SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
13928440cca4Smrg_ACEOF
1393d1c293acSmrgac_status=$?
13948440cca4Smrgfi
13958440cca4Smrg
13968440cca4Smrgif test "$ac_init_help" = "recursive"; then
13978440cca4Smrg  # If there are subdirs, report their specific --help.
13988440cca4Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1399d1c293acSmrg    test -d "$ac_dir" ||
1400d1c293acSmrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1401d1c293acSmrg      continue
14028440cca4Smrg    ac_builddir=.
14038440cca4Smrg
1404d1c293acSmrgcase "$ac_dir" in
1405d1c293acSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406d1c293acSmrg*)
1407d1c293acSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1408d1c293acSmrg  # A ".." for each directory in $ac_dir_suffix.
1409d1c293acSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1410d1c293acSmrg  case $ac_top_builddir_sub in
1411d1c293acSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1412d1c293acSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1413d1c293acSmrg  esac ;;
1414d1c293acSmrgesac
1415d1c293acSmrgac_abs_top_builddir=$ac_pwd
1416d1c293acSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1417d1c293acSmrg# for backward compatibility:
1418d1c293acSmrgac_top_builddir=$ac_top_build_prefix
14198440cca4Smrg
14208440cca4Smrgcase $srcdir in
1421d1c293acSmrg  .)  # We are building in place.
14228440cca4Smrg    ac_srcdir=.
1423d1c293acSmrg    ac_top_srcdir=$ac_top_builddir_sub
1424d1c293acSmrg    ac_abs_top_srcdir=$ac_pwd ;;
1425d1c293acSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
14268440cca4Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
1427d1c293acSmrg    ac_top_srcdir=$srcdir
1428d1c293acSmrg    ac_abs_top_srcdir=$srcdir ;;
1429d1c293acSmrg  *) # Relative name.
1430d1c293acSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1431d1c293acSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1432d1c293acSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14338440cca4Smrgesac
1434d1c293acSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1435d1c293acSmrg
1436d1c293acSmrg    cd "$ac_dir" || { ac_status=$?; continue; }
1437d1c293acSmrg    # Check for guested configure.
1438d1c293acSmrg    if test -f "$ac_srcdir/configure.gnu"; then
1439d1c293acSmrg      echo &&
1440d1c293acSmrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1441d1c293acSmrg    elif test -f "$ac_srcdir/configure"; then
1442d1c293acSmrg      echo &&
1443d1c293acSmrg      $SHELL "$ac_srcdir/configure" --help=recursive
14448440cca4Smrg    else
1445d1c293acSmrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1446d1c293acSmrg    fi || ac_status=$?
1447d1c293acSmrg    cd "$ac_pwd" || { ac_status=$?; break; }
14488440cca4Smrg  done
14498440cca4Smrgfi
14508440cca4Smrg
1451d1c293acSmrgtest -n "$ac_init_help" && exit $ac_status
14528440cca4Smrgif $ac_init_version; then
14538440cca4Smrg  cat <<\_ACEOF
1454d1c293acSmrgxstdcmap configure 1.0.2
1455d1c293acSmrggenerated by GNU Autoconf 2.68
14568440cca4Smrg
1457d1c293acSmrgCopyright (C) 2010 Free Software Foundation, Inc.
14588440cca4SmrgThis configure script is free software; the Free Software Foundation
14598440cca4Smrggives unlimited permission to copy, distribute and modify it.
14608440cca4Smrg_ACEOF
1461d1c293acSmrg  exit
14628440cca4Smrgfi
14638440cca4Smrg
1464d1c293acSmrg## ------------------------ ##
1465d1c293acSmrg## Autoconf initialization. ##
1466d1c293acSmrg## ------------------------ ##
14678440cca4Smrg
1468d1c293acSmrg# ac_fn_c_try_compile LINENO
1469d1c293acSmrg# --------------------------
1470d1c293acSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
1471d1c293acSmrgac_fn_c_try_compile ()
14728440cca4Smrg{
1473d1c293acSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1474d1c293acSmrg  rm -f conftest.$ac_objext
1475d1c293acSmrg  if { { ac_try="$ac_compile"
1476d1c293acSmrgcase "(($ac_try" in
1477d1c293acSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1478d1c293acSmrg  *) ac_try_echo=$ac_try;;
1479d1c293acSmrgesac
1480d1c293acSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1481d1c293acSmrg$as_echo "$ac_try_echo"; } >&5
1482d1c293acSmrg  (eval "$ac_compile") 2>conftest.err
1483d1c293acSmrg  ac_status=$?
1484d1c293acSmrg  if test -s conftest.err; then
1485d1c293acSmrg    grep -v '^ *+' conftest.err >conftest.er1
1486d1c293acSmrg    cat conftest.er1 >&5
1487d1c293acSmrg    mv -f conftest.er1 conftest.err
1488d1c293acSmrg  fi
1489d1c293acSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1490d1c293acSmrg  test $ac_status = 0; } && {
1491d1c293acSmrg	 test -z "$ac_c_werror_flag" ||
1492d1c293acSmrg	 test ! -s conftest.err
1493d1c293acSmrg       } && test -s conftest.$ac_objext; then :
1494d1c293acSmrg  ac_retval=0
1495d1c293acSmrgelse
1496d1c293acSmrg  $as_echo "$as_me: failed program was:" >&5
1497d1c293acSmrgsed 's/^/| /' conftest.$ac_ext >&5
14988440cca4Smrg
1499d1c293acSmrg	ac_retval=1
1500d1c293acSmrgfi
1501d1c293acSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1502d1c293acSmrg  as_fn_set_status $ac_retval
15038440cca4Smrg
1504d1c293acSmrg} # ac_fn_c_try_compile
15058440cca4Smrg
1506d1c293acSmrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1507d1c293acSmrg# ---------------------------------------------
1508d1c293acSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1509d1c293acSmrg# accordingly.
1510d1c293acSmrgac_fn_c_check_decl ()
1511d1c293acSmrg{
1512d1c293acSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1513d1c293acSmrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
1514d1c293acSmrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1515d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1516d1c293acSmrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1517d1c293acSmrgif eval \${$3+:} false; then :
1518d1c293acSmrg  $as_echo_n "(cached) " >&6
1519d1c293acSmrgelse
1520d1c293acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1521d1c293acSmrg/* end confdefs.h.  */
1522d1c293acSmrg$4
1523d1c293acSmrgint
1524d1c293acSmrgmain ()
1525d1c293acSmrg{
1526d1c293acSmrg#ifndef $as_decl_name
1527d1c293acSmrg#ifdef __cplusplus
1528d1c293acSmrg  (void) $as_decl_use;
1529d1c293acSmrg#else
1530d1c293acSmrg  (void) $as_decl_name;
1531d1c293acSmrg#endif
1532d1c293acSmrg#endif
15338440cca4Smrg
1534d1c293acSmrg  ;
1535d1c293acSmrg  return 0;
1536d1c293acSmrg}
1537d1c293acSmrg_ACEOF
1538d1c293acSmrgif ac_fn_c_try_compile "$LINENO"; then :
1539d1c293acSmrg  eval "$3=yes"
1540d1c293acSmrgelse
1541d1c293acSmrg  eval "$3=no"
1542d1c293acSmrgfi
1543d1c293acSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1544d1c293acSmrgfi
1545d1c293acSmrgeval ac_res=\$$3
1546d1c293acSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1547d1c293acSmrg$as_echo "$ac_res" >&6; }
1548d1c293acSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1549d1c293acSmrg
1550d1c293acSmrg} # ac_fn_c_check_decl
1551d1c293acSmrg
1552d1c293acSmrg# ac_fn_c_try_cpp LINENO
1553d1c293acSmrg# ----------------------
1554d1c293acSmrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1555d1c293acSmrgac_fn_c_try_cpp ()
1556d1c293acSmrg{
1557d1c293acSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558d1c293acSmrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
1559d1c293acSmrgcase "(($ac_try" in
1560d1c293acSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561d1c293acSmrg  *) ac_try_echo=$ac_try;;
1562d1c293acSmrgesac
1563d1c293acSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564d1c293acSmrg$as_echo "$ac_try_echo"; } >&5
1565d1c293acSmrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1566d1c293acSmrg  ac_status=$?
1567d1c293acSmrg  if test -s conftest.err; then
1568d1c293acSmrg    grep -v '^ *+' conftest.err >conftest.er1
1569d1c293acSmrg    cat conftest.er1 >&5
1570d1c293acSmrg    mv -f conftest.er1 conftest.err
1571d1c293acSmrg  fi
1572d1c293acSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573d1c293acSmrg  test $ac_status = 0; } > conftest.i && {
1574d1c293acSmrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1575d1c293acSmrg	 test ! -s conftest.err
1576d1c293acSmrg       }; then :
1577d1c293acSmrg  ac_retval=0
1578d1c293acSmrgelse
1579d1c293acSmrg  $as_echo "$as_me: failed program was:" >&5
1580d1c293acSmrgsed 's/^/| /' conftest.$ac_ext >&5
1581d1c293acSmrg
1582d1c293acSmrg    ac_retval=1
1583d1c293acSmrgfi
1584d1c293acSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585d1c293acSmrg  as_fn_set_status $ac_retval
1586d1c293acSmrg
1587d1c293acSmrg} # ac_fn_c_try_cpp
1588d1c293acSmrg
1589d1c293acSmrg# ac_fn_c_try_run LINENO
1590d1c293acSmrg# ----------------------
1591d1c293acSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1592d1c293acSmrg# that executables *can* be run.
1593d1c293acSmrgac_fn_c_try_run ()
1594d1c293acSmrg{
1595d1c293acSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596d1c293acSmrg  if { { ac_try="$ac_link"
1597d1c293acSmrgcase "(($ac_try" in
1598d1c293acSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599d1c293acSmrg  *) ac_try_echo=$ac_try;;
1600d1c293acSmrgesac
1601d1c293acSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602d1c293acSmrg$as_echo "$ac_try_echo"; } >&5
1603d1c293acSmrg  (eval "$ac_link") 2>&5
1604d1c293acSmrg  ac_status=$?
1605d1c293acSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606d1c293acSmrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1607d1c293acSmrg  { { case "(($ac_try" in
1608d1c293acSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609d1c293acSmrg  *) ac_try_echo=$ac_try;;
1610d1c293acSmrgesac
1611d1c293acSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612d1c293acSmrg$as_echo "$ac_try_echo"; } >&5
1613d1c293acSmrg  (eval "$ac_try") 2>&5
1614d1c293acSmrg  ac_status=$?
1615d1c293acSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616d1c293acSmrg  test $ac_status = 0; }; }; then :
1617d1c293acSmrg  ac_retval=0
1618d1c293acSmrgelse
1619d1c293acSmrg  $as_echo "$as_me: program exited with status $ac_status" >&5
1620d1c293acSmrg       $as_echo "$as_me: failed program was:" >&5
1621d1c293acSmrgsed 's/^/| /' conftest.$ac_ext >&5
1622d1c293acSmrg
1623d1c293acSmrg       ac_retval=$ac_status
1624d1c293acSmrgfi
1625d1c293acSmrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1626d1c293acSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627d1c293acSmrg  as_fn_set_status $ac_retval
1628d1c293acSmrg
1629d1c293acSmrg} # ac_fn_c_try_run
1630d1c293acSmrg
1631d1c293acSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1632d1c293acSmrg# -------------------------------------------------------
1633d1c293acSmrg# Tests whether HEADER exists and can be compiled using the include files in
1634d1c293acSmrg# INCLUDES, setting the cache variable VAR accordingly.
1635d1c293acSmrgac_fn_c_check_header_compile ()
1636d1c293acSmrg{
1637d1c293acSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1639d1c293acSmrg$as_echo_n "checking for $2... " >&6; }
1640d1c293acSmrgif eval \${$3+:} false; then :
1641d1c293acSmrg  $as_echo_n "(cached) " >&6
1642d1c293acSmrgelse
1643d1c293acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1644d1c293acSmrg/* end confdefs.h.  */
1645d1c293acSmrg$4
1646d1c293acSmrg#include <$2>
1647d1c293acSmrg_ACEOF
1648d1c293acSmrgif ac_fn_c_try_compile "$LINENO"; then :
1649d1c293acSmrg  eval "$3=yes"
1650d1c293acSmrgelse
1651d1c293acSmrg  eval "$3=no"
1652d1c293acSmrgfi
1653d1c293acSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1654d1c293acSmrgfi
1655d1c293acSmrgeval ac_res=\$$3
1656d1c293acSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1657d1c293acSmrg$as_echo "$ac_res" >&6; }
1658d1c293acSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659d1c293acSmrg
1660d1c293acSmrg} # ac_fn_c_check_header_compile
1661d1c293acSmrgcat >config.log <<_ACEOF
1662d1c293acSmrgThis file contains any messages produced by compilers while
1663d1c293acSmrgrunning configure, to aid debugging if configure makes a mistake.
1664d1c293acSmrg
1665d1c293acSmrgIt was created by xstdcmap $as_me 1.0.2, which was
1666d1c293acSmrggenerated by GNU Autoconf 2.68.  Invocation command line was
1667d1c293acSmrg
1668d1c293acSmrg  $ $0 $@
1669d1c293acSmrg
1670d1c293acSmrg_ACEOF
1671d1c293acSmrgexec 5>>config.log
1672d1c293acSmrg{
1673d1c293acSmrgcat <<_ASUNAME
1674d1c293acSmrg## --------- ##
1675d1c293acSmrg## Platform. ##
1676d1c293acSmrg## --------- ##
1677d1c293acSmrg
1678d1c293acSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1679d1c293acSmrguname -m = `(uname -m) 2>/dev/null || echo unknown`
1680d1c293acSmrguname -r = `(uname -r) 2>/dev/null || echo unknown`
1681d1c293acSmrguname -s = `(uname -s) 2>/dev/null || echo unknown`
1682d1c293acSmrguname -v = `(uname -v) 2>/dev/null || echo unknown`
1683d1c293acSmrg
1684d1c293acSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1685d1c293acSmrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1686d1c293acSmrg
1687d1c293acSmrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1688d1c293acSmrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1689d1c293acSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1690d1c293acSmrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1691d1c293acSmrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1692d1c293acSmrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1693d1c293acSmrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1694d1c293acSmrg
1695d1c293acSmrg_ASUNAME
1696d1c293acSmrg
1697d1c293acSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698d1c293acSmrgfor as_dir in $PATH
1699d1c293acSmrgdo
1700d1c293acSmrg  IFS=$as_save_IFS
1701d1c293acSmrg  test -z "$as_dir" && as_dir=.
1702d1c293acSmrg    $as_echo "PATH: $as_dir"
1703d1c293acSmrg  done
1704d1c293acSmrgIFS=$as_save_IFS
17058440cca4Smrg
17068440cca4Smrg} >&5
17078440cca4Smrg
17088440cca4Smrgcat >&5 <<_ACEOF
17098440cca4Smrg
17108440cca4Smrg
17118440cca4Smrg## ----------- ##
17128440cca4Smrg## Core tests. ##
17138440cca4Smrg## ----------- ##
17148440cca4Smrg
17158440cca4Smrg_ACEOF
17168440cca4Smrg
17178440cca4Smrg
17188440cca4Smrg# Keep a trace of the command line.
17198440cca4Smrg# Strip out --no-create and --no-recursion so they do not pile up.
17208440cca4Smrg# Strip out --silent because we don't want to record it for future runs.
17218440cca4Smrg# Also quote any args containing shell meta-characters.
17228440cca4Smrg# Make two passes to allow for proper duplicate-argument suppression.
17238440cca4Smrgac_configure_args=
17248440cca4Smrgac_configure_args0=
17258440cca4Smrgac_configure_args1=
17268440cca4Smrgac_must_keep_next=false
17278440cca4Smrgfor ac_pass in 1 2
17288440cca4Smrgdo
17298440cca4Smrg  for ac_arg
17308440cca4Smrg  do
17318440cca4Smrg    case $ac_arg in
17328440cca4Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
17338440cca4Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17348440cca4Smrg    | -silent | --silent | --silen | --sile | --sil)
17358440cca4Smrg      continue ;;
1736d1c293acSmrg    *\'*)
1737d1c293acSmrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17388440cca4Smrg    esac
17398440cca4Smrg    case $ac_pass in
1740d1c293acSmrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
17418440cca4Smrg    2)
1742d1c293acSmrg      as_fn_append ac_configure_args1 " '$ac_arg'"
17438440cca4Smrg      if test $ac_must_keep_next = true; then
17448440cca4Smrg	ac_must_keep_next=false # Got value, back to normal.
17458440cca4Smrg      else
17468440cca4Smrg	case $ac_arg in
17478440cca4Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
17488440cca4Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
17498440cca4Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
17508440cca4Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
17518440cca4Smrg	    case "$ac_configure_args0 " in
17528440cca4Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
17538440cca4Smrg	    esac
17548440cca4Smrg	    ;;
17558440cca4Smrg	  -* ) ac_must_keep_next=true ;;
17568440cca4Smrg	esac
17578440cca4Smrg      fi
1758d1c293acSmrg      as_fn_append ac_configure_args " '$ac_arg'"
17598440cca4Smrg      ;;
17608440cca4Smrg    esac
17618440cca4Smrg  done
17628440cca4Smrgdone
1763d1c293acSmrg{ ac_configure_args0=; unset ac_configure_args0;}
1764d1c293acSmrg{ ac_configure_args1=; unset ac_configure_args1;}
17658440cca4Smrg
17668440cca4Smrg# When interrupted or exit'd, cleanup temporary files, and complete
17678440cca4Smrg# config.log.  We remove comments because anyway the quotes in there
17688440cca4Smrg# would cause problems or look ugly.
1769d1c293acSmrg# WARNING: Use '\'' to represent an apostrophe within the trap.
1770d1c293acSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
17718440cca4Smrgtrap 'exit_status=$?
17728440cca4Smrg  # Save into config.log some information that might help in debugging.
17738440cca4Smrg  {
17748440cca4Smrg    echo
17758440cca4Smrg
1776d1c293acSmrg    $as_echo "## ---------------- ##
17778440cca4Smrg## Cache variables. ##
1778d1c293acSmrg## ---------------- ##"
17798440cca4Smrg    echo
17808440cca4Smrg    # The following way of writing the cache mishandles newlines in values,
1781d1c293acSmrg(
1782d1c293acSmrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1783d1c293acSmrg    eval ac_val=\$$ac_var
1784d1c293acSmrg    case $ac_val in #(
1785d1c293acSmrg    *${as_nl}*)
1786d1c293acSmrg      case $ac_var in #(
1787d1c293acSmrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1788d1c293acSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1789d1c293acSmrg      esac
1790d1c293acSmrg      case $ac_var in #(
1791d1c293acSmrg      _ | IFS | as_nl) ;; #(
1792d1c293acSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1793d1c293acSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
1794d1c293acSmrg      esac ;;
1795d1c293acSmrg    esac
1796d1c293acSmrg  done
17978440cca4Smrg  (set) 2>&1 |
1798d1c293acSmrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1799d1c293acSmrg    *${as_nl}ac_space=\ *)
18008440cca4Smrg      sed -n \
1801d1c293acSmrg	"s/'\''/'\''\\\\'\'''\''/g;
1802d1c293acSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1803d1c293acSmrg      ;; #(
18048440cca4Smrg    *)
1805d1c293acSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18068440cca4Smrg      ;;
1807d1c293acSmrg    esac |
1808d1c293acSmrg    sort
1809d1c293acSmrg)
18108440cca4Smrg    echo
18118440cca4Smrg
1812d1c293acSmrg    $as_echo "## ----------------- ##
18138440cca4Smrg## Output variables. ##
1814d1c293acSmrg## ----------------- ##"
18158440cca4Smrg    echo
18168440cca4Smrg    for ac_var in $ac_subst_vars
18178440cca4Smrg    do
1818d1c293acSmrg      eval ac_val=\$$ac_var
1819d1c293acSmrg      case $ac_val in
1820d1c293acSmrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1821d1c293acSmrg      esac
1822d1c293acSmrg      $as_echo "$ac_var='\''$ac_val'\''"
18238440cca4Smrg    done | sort
18248440cca4Smrg    echo
18258440cca4Smrg
18268440cca4Smrg    if test -n "$ac_subst_files"; then
1827d1c293acSmrg      $as_echo "## ------------------- ##
1828d1c293acSmrg## File substitutions. ##
1829d1c293acSmrg## ------------------- ##"
18308440cca4Smrg      echo
18318440cca4Smrg      for ac_var in $ac_subst_files
18328440cca4Smrg      do
1833d1c293acSmrg	eval ac_val=\$$ac_var
1834d1c293acSmrg	case $ac_val in
1835d1c293acSmrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1836d1c293acSmrg	esac
1837d1c293acSmrg	$as_echo "$ac_var='\''$ac_val'\''"
18388440cca4Smrg      done | sort
18398440cca4Smrg      echo
18408440cca4Smrg    fi
18418440cca4Smrg
18428440cca4Smrg    if test -s confdefs.h; then
1843d1c293acSmrg      $as_echo "## ----------- ##
18448440cca4Smrg## confdefs.h. ##
1845d1c293acSmrg## ----------- ##"
18468440cca4Smrg      echo
1847d1c293acSmrg      cat confdefs.h
18488440cca4Smrg      echo
18498440cca4Smrg    fi
18508440cca4Smrg    test "$ac_signal" != 0 &&
1851d1c293acSmrg      $as_echo "$as_me: caught signal $ac_signal"
1852d1c293acSmrg    $as_echo "$as_me: exit $exit_status"
18538440cca4Smrg  } >&5
1854d1c293acSmrg  rm -f core *.core core.conftest.* &&
1855d1c293acSmrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
18568440cca4Smrg    exit $exit_status
1857d1c293acSmrg' 0
18588440cca4Smrgfor ac_signal in 1 2 13 15; do
1859d1c293acSmrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
18608440cca4Smrgdone
18618440cca4Smrgac_signal=0
18628440cca4Smrg
18638440cca4Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
1864d1c293acSmrgrm -f -r conftest* confdefs.h
1865d1c293acSmrg
1866d1c293acSmrg$as_echo "/* confdefs.h */" > confdefs.h
18678440cca4Smrg
18688440cca4Smrg# Predefined preprocessor variables.
18698440cca4Smrg
18708440cca4Smrgcat >>confdefs.h <<_ACEOF
18718440cca4Smrg#define PACKAGE_NAME "$PACKAGE_NAME"
18728440cca4Smrg_ACEOF
18738440cca4Smrg
18748440cca4Smrgcat >>confdefs.h <<_ACEOF
18758440cca4Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
18768440cca4Smrg_ACEOF
18778440cca4Smrg
18788440cca4Smrgcat >>confdefs.h <<_ACEOF
18798440cca4Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
18808440cca4Smrg_ACEOF
18818440cca4Smrg
18828440cca4Smrgcat >>confdefs.h <<_ACEOF
18838440cca4Smrg#define PACKAGE_STRING "$PACKAGE_STRING"
18848440cca4Smrg_ACEOF
18858440cca4Smrg
18868440cca4Smrgcat >>confdefs.h <<_ACEOF
18878440cca4Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
18888440cca4Smrg_ACEOF
18898440cca4Smrg
1890d1c293acSmrgcat >>confdefs.h <<_ACEOF
1891d1c293acSmrg#define PACKAGE_URL "$PACKAGE_URL"
1892d1c293acSmrg_ACEOF
1893d1c293acSmrg
18948440cca4Smrg
18958440cca4Smrg# Let the site file select an alternate cache file if it wants to.
1896d1c293acSmrg# Prefer an explicitly selected file to automatically selected ones.
1897d1c293acSmrgac_site_file1=NONE
1898d1c293acSmrgac_site_file2=NONE
1899d1c293acSmrgif test -n "$CONFIG_SITE"; then
1900d1c293acSmrg  # We do not want a PATH search for config.site.
1901d1c293acSmrg  case $CONFIG_SITE in #((
1902d1c293acSmrg    -*)  ac_site_file1=./$CONFIG_SITE;;
1903d1c293acSmrg    */*) ac_site_file1=$CONFIG_SITE;;
1904d1c293acSmrg    *)   ac_site_file1=./$CONFIG_SITE;;
1905d1c293acSmrg  esac
1906d1c293acSmrgelif test "x$prefix" != xNONE; then
1907d1c293acSmrg  ac_site_file1=$prefix/share/config.site
1908d1c293acSmrg  ac_site_file2=$prefix/etc/config.site
1909d1c293acSmrgelse
1910d1c293acSmrg  ac_site_file1=$ac_default_prefix/share/config.site
1911d1c293acSmrg  ac_site_file2=$ac_default_prefix/etc/config.site
19128440cca4Smrgfi
1913d1c293acSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
1914d1c293acSmrgdo
1915d1c293acSmrg  test "x$ac_site_file" = xNONE && continue
1916d1c293acSmrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1917d1c293acSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1918d1c293acSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
19198440cca4Smrg    sed 's/^/| /' "$ac_site_file" >&5
1920d1c293acSmrg    . "$ac_site_file" \
1921d1c293acSmrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1922d1c293acSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1923d1c293acSmrgas_fn_error $? "failed to load site script $ac_site_file
1924d1c293acSmrgSee \`config.log' for more details" "$LINENO" 5; }
19258440cca4Smrg  fi
19268440cca4Smrgdone
19278440cca4Smrg
19288440cca4Smrgif test -r "$cache_file"; then
1929d1c293acSmrg  # Some versions of bash will fail to source /dev/null (special files
1930d1c293acSmrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1931d1c293acSmrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1932d1c293acSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1933d1c293acSmrg$as_echo "$as_me: loading cache $cache_file" >&6;}
19348440cca4Smrg    case $cache_file in
1935d1c293acSmrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1936d1c293acSmrg      *)                      . "./$cache_file";;
19378440cca4Smrg    esac
19388440cca4Smrg  fi
19398440cca4Smrgelse
1940d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1941d1c293acSmrg$as_echo "$as_me: creating cache $cache_file" >&6;}
19428440cca4Smrg  >$cache_file
19438440cca4Smrgfi
19448440cca4Smrg
19458440cca4Smrg# Check that the precious variables saved in the cache have kept the same
19468440cca4Smrg# value.
19478440cca4Smrgac_cache_corrupted=false
1948d1c293acSmrgfor ac_var in $ac_precious_vars; do
19498440cca4Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
19508440cca4Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
1951d1c293acSmrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1952d1c293acSmrg  eval ac_new_val=\$ac_env_${ac_var}_value
19538440cca4Smrg  case $ac_old_set,$ac_new_set in
19548440cca4Smrg    set,)
1955d1c293acSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1956d1c293acSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
19578440cca4Smrg      ac_cache_corrupted=: ;;
19588440cca4Smrg    ,set)
1959d1c293acSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1960d1c293acSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
19618440cca4Smrg      ac_cache_corrupted=: ;;
19628440cca4Smrg    ,);;
19638440cca4Smrg    *)
19648440cca4Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
1965d1c293acSmrg	# differences in whitespace do not lead to failure.
1966d1c293acSmrg	ac_old_val_w=`echo x $ac_old_val`
1967d1c293acSmrg	ac_new_val_w=`echo x $ac_new_val`
1968d1c293acSmrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1969d1c293acSmrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1970d1c293acSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1971d1c293acSmrg	  ac_cache_corrupted=:
1972d1c293acSmrg	else
1973d1c293acSmrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1974d1c293acSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1975d1c293acSmrg	  eval $ac_var=\$ac_old_val
1976d1c293acSmrg	fi
1977d1c293acSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1978d1c293acSmrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1979d1c293acSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1980d1c293acSmrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
19818440cca4Smrg      fi;;
19828440cca4Smrg  esac
19838440cca4Smrg  # Pass precious variables to config.status.
19848440cca4Smrg  if test "$ac_new_set" = set; then
19858440cca4Smrg    case $ac_new_val in
1986d1c293acSmrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
19878440cca4Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
19888440cca4Smrg    esac
19898440cca4Smrg    case " $ac_configure_args " in
19908440cca4Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1991d1c293acSmrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
19928440cca4Smrg    esac
19938440cca4Smrg  fi
19948440cca4Smrgdone
19958440cca4Smrgif $ac_cache_corrupted; then
1996d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1997d1c293acSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1998d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1999d1c293acSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2000d1c293acSmrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
20018440cca4Smrgfi
2002d1c293acSmrg## -------------------- ##
2003d1c293acSmrg## Main body of script. ##
2004d1c293acSmrg## -------------------- ##
20058440cca4Smrg
20068440cca4Smrgac_ext=c
20078440cca4Smrgac_cpp='$CPP $CPPFLAGS'
20088440cca4Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20098440cca4Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20108440cca4Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
20118440cca4Smrg
20128440cca4Smrg
2013d1c293acSmrgam__api_version='1.11'
20148440cca4Smrg
20158440cca4Smrgac_aux_dir=
2016d1c293acSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2017d1c293acSmrg  if test -f "$ac_dir/install-sh"; then
20188440cca4Smrg    ac_aux_dir=$ac_dir
20198440cca4Smrg    ac_install_sh="$ac_aux_dir/install-sh -c"
20208440cca4Smrg    break
2021d1c293acSmrg  elif test -f "$ac_dir/install.sh"; then
20228440cca4Smrg    ac_aux_dir=$ac_dir
20238440cca4Smrg    ac_install_sh="$ac_aux_dir/install.sh -c"
20248440cca4Smrg    break
2025d1c293acSmrg  elif test -f "$ac_dir/shtool"; then
20268440cca4Smrg    ac_aux_dir=$ac_dir
20278440cca4Smrg    ac_install_sh="$ac_aux_dir/shtool install -c"
20288440cca4Smrg    break
20298440cca4Smrg  fi
20308440cca4Smrgdone
20318440cca4Smrgif test -z "$ac_aux_dir"; then
2032d1c293acSmrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
20338440cca4Smrgfi
2034d1c293acSmrg
2035d1c293acSmrg# These three variables are undocumented and unsupported,
2036d1c293acSmrg# and are intended to be withdrawn in a future Autoconf release.
2037d1c293acSmrg# They can cause serious problems if a builder's source tree is in a directory
2038d1c293acSmrg# whose full name contains unusual characters.
2039d1c293acSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2040d1c293acSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2041d1c293acSmrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2042d1c293acSmrg
20438440cca4Smrg
20448440cca4Smrg# Find a good install program.  We prefer a C program (faster),
20458440cca4Smrg# so one script is as good as another.  But avoid the broken or
20468440cca4Smrg# incompatible versions:
20478440cca4Smrg# SysV /etc/install, /usr/sbin/install
20488440cca4Smrg# SunOS /usr/etc/install
20498440cca4Smrg# IRIX /sbin/install
20508440cca4Smrg# AIX /bin/install
20518440cca4Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
20528440cca4Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20538440cca4Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
20548440cca4Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20558440cca4Smrg# OS/2's system install, which has a completely different semantic
20568440cca4Smrg# ./install, which can be erroneously created by make from ./install.sh.
2057d1c293acSmrg# Reject install programs that cannot install multiple files.
2058d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2059d1c293acSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
20608440cca4Smrgif test -z "$INSTALL"; then
2061d1c293acSmrgif ${ac_cv_path_install+:} false; then :
2062d1c293acSmrg  $as_echo_n "(cached) " >&6
20638440cca4Smrgelse
20648440cca4Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20658440cca4Smrgfor as_dir in $PATH
20668440cca4Smrgdo
20678440cca4Smrg  IFS=$as_save_IFS
20688440cca4Smrg  test -z "$as_dir" && as_dir=.
2069d1c293acSmrg    # Account for people who put trailing slashes in PATH elements.
2070d1c293acSmrgcase $as_dir/ in #((
2071d1c293acSmrg  ./ | .// | /[cC]/* | \
20728440cca4Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2073d1c293acSmrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
20748440cca4Smrg  /usr/ucb/* ) ;;
20758440cca4Smrg  *)
20768440cca4Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
20778440cca4Smrg    # Don't use installbsd from OSF since it installs stuff as root
20788440cca4Smrg    # by default.
20798440cca4Smrg    for ac_prog in ginstall scoinst install; do
20808440cca4Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
2081d1c293acSmrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
20828440cca4Smrg	  if test $ac_prog = install &&
20838440cca4Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20848440cca4Smrg	    # AIX install.  It has an incompatible calling convention.
20858440cca4Smrg	    :
20868440cca4Smrg	  elif test $ac_prog = install &&
20878440cca4Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20888440cca4Smrg	    # program-specific install script used by HP pwplus--don't use.
20898440cca4Smrg	    :
20908440cca4Smrg	  else
2091d1c293acSmrg	    rm -rf conftest.one conftest.two conftest.dir
2092d1c293acSmrg	    echo one > conftest.one
2093d1c293acSmrg	    echo two > conftest.two
2094d1c293acSmrg	    mkdir conftest.dir
2095d1c293acSmrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2096d1c293acSmrg	      test -s conftest.one && test -s conftest.two &&
2097d1c293acSmrg	      test -s conftest.dir/conftest.one &&
2098d1c293acSmrg	      test -s conftest.dir/conftest.two
2099d1c293acSmrg	    then
2100d1c293acSmrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2101d1c293acSmrg	      break 3
2102d1c293acSmrg	    fi
21038440cca4Smrg	  fi
21048440cca4Smrg	fi
21058440cca4Smrg      done
21068440cca4Smrg    done
21078440cca4Smrg    ;;
21088440cca4Smrgesac
21098440cca4Smrg
2110d1c293acSmrg  done
2111d1c293acSmrgIFS=$as_save_IFS
2112d1c293acSmrg
2113d1c293acSmrgrm -rf conftest.one conftest.two conftest.dir
21148440cca4Smrg
21158440cca4Smrgfi
21168440cca4Smrg  if test "${ac_cv_path_install+set}" = set; then
21178440cca4Smrg    INSTALL=$ac_cv_path_install
21188440cca4Smrg  else
2119d1c293acSmrg    # As a last resort, use the slow shell script.  Don't cache a
2120d1c293acSmrg    # value for INSTALL within a source directory, because that will
21218440cca4Smrg    # break other packages using the cache if that directory is
2122d1c293acSmrg    # removed, or if the value is a relative name.
21238440cca4Smrg    INSTALL=$ac_install_sh
21248440cca4Smrg  fi
21258440cca4Smrgfi
2126d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2127d1c293acSmrg$as_echo "$INSTALL" >&6; }
21288440cca4Smrg
21298440cca4Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
21308440cca4Smrg# It thinks the first close brace ends the variable substitution.
21318440cca4Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
21328440cca4Smrg
21338440cca4Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
21348440cca4Smrg
21358440cca4Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
21368440cca4Smrg
2137d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2138d1c293acSmrg$as_echo_n "checking whether build environment is sane... " >&6; }
21398440cca4Smrg# Just in case
21408440cca4Smrgsleep 1
21418440cca4Smrgecho timestamp > conftest.file
2142d1c293acSmrg# Reject unsafe characters in $srcdir or the absolute working directory
2143d1c293acSmrg# name.  Accept space and tab only in the latter.
2144d1c293acSmrgam_lf='
2145d1c293acSmrg'
2146d1c293acSmrgcase `pwd` in
2147d1c293acSmrg  *[\\\"\#\$\&\'\`$am_lf]*)
2148d1c293acSmrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2149d1c293acSmrgesac
2150d1c293acSmrgcase $srcdir in
2151d1c293acSmrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2152d1c293acSmrg    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2153d1c293acSmrgesac
2154d1c293acSmrg
21558440cca4Smrg# Do `set' in a subshell so we don't clobber the current shell's
21568440cca4Smrg# arguments.  Must try -L first in case configure is actually a
21578440cca4Smrg# symlink; some systems play weird games with the mod time of symlinks
21588440cca4Smrg# (eg FreeBSD returns the mod time of the symlink's containing
21598440cca4Smrg# directory).
21608440cca4Smrgif (
2161d1c293acSmrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
21628440cca4Smrg   if test "$*" = "X"; then
21638440cca4Smrg      # -L didn't work.
2164d1c293acSmrg      set X `ls -t "$srcdir/configure" conftest.file`
21658440cca4Smrg   fi
21668440cca4Smrg   rm -f conftest.file
21678440cca4Smrg   if test "$*" != "X $srcdir/configure conftest.file" \
21688440cca4Smrg      && test "$*" != "X conftest.file $srcdir/configure"; then
21698440cca4Smrg
21708440cca4Smrg      # If neither matched, then we have a broken ls.  This can happen
21718440cca4Smrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
21728440cca4Smrg      # broken ls alias from the environment.  This has actually
21738440cca4Smrg      # happened.  Such a system could not be considered "sane".
2174d1c293acSmrg      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2175d1c293acSmrgalias in your environment" "$LINENO" 5
21768440cca4Smrg   fi
21778440cca4Smrg
21788440cca4Smrg   test "$2" = conftest.file
21798440cca4Smrg   )
21808440cca4Smrgthen
21818440cca4Smrg   # Ok.
21828440cca4Smrg   :
21838440cca4Smrgelse
2184d1c293acSmrg   as_fn_error $? "newly created file is older than distributed files!
2185d1c293acSmrgCheck your system clock" "$LINENO" 5
21868440cca4Smrgfi
2187d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2188d1c293acSmrg$as_echo "yes" >&6; }
21898440cca4Smrgtest "$program_prefix" != NONE &&
2190d1c293acSmrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
21918440cca4Smrg# Use a double $ so make ignores it.
21928440cca4Smrgtest "$program_suffix" != NONE &&
2193d1c293acSmrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2194d1c293acSmrg# Double any \ or $.
21958440cca4Smrg# By default was `s,x,x', remove it if useless.
2196d1c293acSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2197d1c293acSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
21988440cca4Smrg
21998440cca4Smrg# expand $ac_aux_dir to an absolute path
22008440cca4Smrgam_aux_dir=`cd $ac_aux_dir && pwd`
22018440cca4Smrg
2202d1c293acSmrgif test x"${MISSING+set}" != xset; then
2203d1c293acSmrg  case $am_aux_dir in
2204d1c293acSmrg  *\ * | *\	*)
2205d1c293acSmrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2206d1c293acSmrg  *)
2207d1c293acSmrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2208d1c293acSmrg  esac
2209d1c293acSmrgfi
22108440cca4Smrg# Use eval to expand $SHELL
22118440cca4Smrgif eval "$MISSING --run true"; then
22128440cca4Smrg  am_missing_run="$MISSING --run "
22138440cca4Smrgelse
22148440cca4Smrg  am_missing_run=
2215d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2216d1c293acSmrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2217d1c293acSmrgfi
2218d1c293acSmrg
2219d1c293acSmrgif test x"${install_sh}" != xset; then
2220d1c293acSmrg  case $am_aux_dir in
2221d1c293acSmrg  *\ * | *\	*)
2222d1c293acSmrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2223d1c293acSmrg  *)
2224d1c293acSmrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
2225d1c293acSmrg  esac
2226d1c293acSmrgfi
2227d1c293acSmrg
2228d1c293acSmrg# Installed binaries are usually stripped using `strip' when the user
2229d1c293acSmrg# run `make install-strip'.  However `strip' might not be the right
2230d1c293acSmrg# tool to use in cross-compilation environments, therefore Automake
2231d1c293acSmrg# will honor the `STRIP' environment variable to overrule this program.
2232d1c293acSmrgif test "$cross_compiling" != no; then
2233d1c293acSmrg  if test -n "$ac_tool_prefix"; then
2234d1c293acSmrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2235d1c293acSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2
2236d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2237d1c293acSmrg$as_echo_n "checking for $ac_word... " >&6; }
2238d1c293acSmrgif ${ac_cv_prog_STRIP+:} false; then :
2239d1c293acSmrg  $as_echo_n "(cached) " >&6
2240d1c293acSmrgelse
2241d1c293acSmrg  if test -n "$STRIP"; then
2242d1c293acSmrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2243d1c293acSmrgelse
2244d1c293acSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245d1c293acSmrgfor as_dir in $PATH
2246d1c293acSmrgdo
2247d1c293acSmrg  IFS=$as_save_IFS
2248d1c293acSmrg  test -z "$as_dir" && as_dir=.
2249d1c293acSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2250d1c293acSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2251d1c293acSmrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2252d1c293acSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2253d1c293acSmrg    break 2
2254d1c293acSmrg  fi
2255d1c293acSmrgdone
2256d1c293acSmrg  done
2257d1c293acSmrgIFS=$as_save_IFS
2258d1c293acSmrg
2259d1c293acSmrgfi
2260d1c293acSmrgfi
2261d1c293acSmrgSTRIP=$ac_cv_prog_STRIP
2262d1c293acSmrgif test -n "$STRIP"; then
2263d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2264d1c293acSmrg$as_echo "$STRIP" >&6; }
2265d1c293acSmrgelse
2266d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2267d1c293acSmrg$as_echo "no" >&6; }
2268d1c293acSmrgfi
2269d1c293acSmrg
2270d1c293acSmrg
2271d1c293acSmrgfi
2272d1c293acSmrgif test -z "$ac_cv_prog_STRIP"; then
2273d1c293acSmrg  ac_ct_STRIP=$STRIP
2274d1c293acSmrg  # Extract the first word of "strip", so it can be a program name with args.
2275d1c293acSmrgset dummy strip; ac_word=$2
2276d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2277d1c293acSmrg$as_echo_n "checking for $ac_word... " >&6; }
2278d1c293acSmrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2279d1c293acSmrg  $as_echo_n "(cached) " >&6
2280d1c293acSmrgelse
2281d1c293acSmrg  if test -n "$ac_ct_STRIP"; then
2282d1c293acSmrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2283d1c293acSmrgelse
2284d1c293acSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285d1c293acSmrgfor as_dir in $PATH
2286d1c293acSmrgdo
2287d1c293acSmrg  IFS=$as_save_IFS
2288d1c293acSmrg  test -z "$as_dir" && as_dir=.
2289d1c293acSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2290d1c293acSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2291d1c293acSmrg    ac_cv_prog_ac_ct_STRIP="strip"
2292d1c293acSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2293d1c293acSmrg    break 2
2294d1c293acSmrg  fi
2295d1c293acSmrgdone
2296d1c293acSmrg  done
2297d1c293acSmrgIFS=$as_save_IFS
2298d1c293acSmrg
2299d1c293acSmrgfi
2300d1c293acSmrgfi
2301d1c293acSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2302d1c293acSmrgif test -n "$ac_ct_STRIP"; then
2303d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2304d1c293acSmrg$as_echo "$ac_ct_STRIP" >&6; }
2305d1c293acSmrgelse
2306d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2307d1c293acSmrg$as_echo "no" >&6; }
2308d1c293acSmrgfi
2309d1c293acSmrg
2310d1c293acSmrg  if test "x$ac_ct_STRIP" = x; then
2311d1c293acSmrg    STRIP=":"
2312d1c293acSmrg  else
2313d1c293acSmrg    case $cross_compiling:$ac_tool_warned in
2314d1c293acSmrgyes:)
2315d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2316d1c293acSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2317d1c293acSmrgac_tool_warned=yes ;;
2318d1c293acSmrgesac
2319d1c293acSmrg    STRIP=$ac_ct_STRIP
2320d1c293acSmrg  fi
2321d1c293acSmrgelse
2322d1c293acSmrg  STRIP="$ac_cv_prog_STRIP"
2323d1c293acSmrgfi
2324d1c293acSmrg
2325d1c293acSmrgfi
2326d1c293acSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2327d1c293acSmrg
2328d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2329d1c293acSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2330d1c293acSmrgif test -z "$MKDIR_P"; then
2331d1c293acSmrg  if ${ac_cv_path_mkdir+:} false; then :
2332d1c293acSmrg  $as_echo_n "(cached) " >&6
2333d1c293acSmrgelse
2334d1c293acSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335d1c293acSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2336d1c293acSmrgdo
2337d1c293acSmrg  IFS=$as_save_IFS
2338d1c293acSmrg  test -z "$as_dir" && as_dir=.
2339d1c293acSmrg    for ac_prog in mkdir gmkdir; do
2340d1c293acSmrg	 for ac_exec_ext in '' $ac_executable_extensions; do
2341d1c293acSmrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2342d1c293acSmrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2343d1c293acSmrg	     'mkdir (GNU coreutils) '* | \
2344d1c293acSmrg	     'mkdir (coreutils) '* | \
2345d1c293acSmrg	     'mkdir (fileutils) '4.1*)
2346d1c293acSmrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2347d1c293acSmrg	       break 3;;
2348d1c293acSmrg	   esac
2349d1c293acSmrg	 done
2350d1c293acSmrg       done
2351d1c293acSmrg  done
2352d1c293acSmrgIFS=$as_save_IFS
2353d1c293acSmrg
2354d1c293acSmrgfi
2355d1c293acSmrg
2356d1c293acSmrg  test -d ./--version && rmdir ./--version
2357d1c293acSmrg  if test "${ac_cv_path_mkdir+set}" = set; then
2358d1c293acSmrg    MKDIR_P="$ac_cv_path_mkdir -p"
2359d1c293acSmrg  else
2360d1c293acSmrg    # As a last resort, use the slow shell script.  Don't cache a
2361d1c293acSmrg    # value for MKDIR_P within a source directory, because that will
2362d1c293acSmrg    # break other packages using the cache if that directory is
2363d1c293acSmrg    # removed, or if the value is a relative name.
2364d1c293acSmrg    MKDIR_P="$ac_install_sh -d"
2365d1c293acSmrg  fi
23668440cca4Smrgfi
2367d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2368d1c293acSmrg$as_echo "$MKDIR_P" >&6; }
2369d1c293acSmrg
2370d1c293acSmrgmkdir_p="$MKDIR_P"
2371d1c293acSmrgcase $mkdir_p in
2372d1c293acSmrg  [\\/$]* | ?:[\\/]*) ;;
2373d1c293acSmrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2374d1c293acSmrgesac
23758440cca4Smrg
23768440cca4Smrgfor ac_prog in gawk mawk nawk awk
23778440cca4Smrgdo
23788440cca4Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
23798440cca4Smrgset dummy $ac_prog; ac_word=$2
2380d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2381d1c293acSmrg$as_echo_n "checking for $ac_word... " >&6; }
2382d1c293acSmrgif ${ac_cv_prog_AWK+:} false; then :
2383d1c293acSmrg  $as_echo_n "(cached) " >&6
23848440cca4Smrgelse
23858440cca4Smrg  if test -n "$AWK"; then
23868440cca4Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
23878440cca4Smrgelse
23888440cca4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23898440cca4Smrgfor as_dir in $PATH
23908440cca4Smrgdo
23918440cca4Smrg  IFS=$as_save_IFS
23928440cca4Smrg  test -z "$as_dir" && as_dir=.
2393d1c293acSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2394d1c293acSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23958440cca4Smrg    ac_cv_prog_AWK="$ac_prog"
2396d1c293acSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23978440cca4Smrg    break 2
23988440cca4Smrg  fi
23998440cca4Smrgdone
2400d1c293acSmrg  done
2401d1c293acSmrgIFS=$as_save_IFS
24028440cca4Smrg
24038440cca4Smrgfi
24048440cca4Smrgfi
24058440cca4SmrgAWK=$ac_cv_prog_AWK
24068440cca4Smrgif test -n "$AWK"; then
2407d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2408d1c293acSmrg$as_echo "$AWK" >&6; }
24098440cca4Smrgelse
2410d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2411d1c293acSmrg$as_echo "no" >&6; }
24128440cca4Smrgfi
24138440cca4Smrg
2414d1c293acSmrg
24158440cca4Smrg  test -n "$AWK" && break
24168440cca4Smrgdone
24178440cca4Smrg
2418d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2419d1c293acSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2420d1c293acSmrgset x ${MAKE-make}
2421d1c293acSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2422d1c293acSmrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2423d1c293acSmrg  $as_echo_n "(cached) " >&6
24248440cca4Smrgelse
24258440cca4Smrg  cat >conftest.make <<\_ACEOF
2426d1c293acSmrgSHELL = /bin/sh
24278440cca4Smrgall:
2428d1c293acSmrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
24298440cca4Smrg_ACEOF
2430d1c293acSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2431d1c293acSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
2432d1c293acSmrg  *@@@%%%=?*=@@@%%%*)
2433d1c293acSmrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
2434d1c293acSmrg  *)
2435d1c293acSmrg    eval ac_cv_prog_make_${ac_make}_set=no;;
2436d1c293acSmrgesac
24378440cca4Smrgrm -f conftest.make
24388440cca4Smrgfi
2439d1c293acSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2440d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2441d1c293acSmrg$as_echo "yes" >&6; }
24428440cca4Smrg  SET_MAKE=
24438440cca4Smrgelse
2444d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2445d1c293acSmrg$as_echo "no" >&6; }
24468440cca4Smrg  SET_MAKE="MAKE=${MAKE-make}"
24478440cca4Smrgfi
24488440cca4Smrg
24498440cca4Smrgrm -rf .tst 2>/dev/null
24508440cca4Smrgmkdir .tst 2>/dev/null
24518440cca4Smrgif test -d .tst; then
24528440cca4Smrg  am__leading_dot=.
24538440cca4Smrgelse
24548440cca4Smrg  am__leading_dot=_
24558440cca4Smrgfi
24568440cca4Smrgrmdir .tst 2>/dev/null
24578440cca4Smrg
2458d1c293acSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
2459d1c293acSmrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2460d1c293acSmrg  # is not polluted with repeated "-I."
2461d1c293acSmrg  am__isrc=' -I$(srcdir)'
2462d1c293acSmrg  # test to see if srcdir already configured
2463d1c293acSmrg  if test -f $srcdir/config.status; then
2464d1c293acSmrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2465d1c293acSmrg  fi
24668440cca4Smrgfi
24678440cca4Smrg
24688440cca4Smrg# test whether we have cygpath
24698440cca4Smrgif test -z "$CYGPATH_W"; then
24708440cca4Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
24718440cca4Smrg    CYGPATH_W='cygpath -w'
24728440cca4Smrg  else
24738440cca4Smrg    CYGPATH_W=echo
24748440cca4Smrg  fi
24758440cca4Smrgfi
24768440cca4Smrg
24778440cca4Smrg
24788440cca4Smrg# Define the identity of the package.
24798440cca4Smrg PACKAGE='xstdcmap'
2480d1c293acSmrg VERSION='1.0.2'
24818440cca4Smrg
24828440cca4Smrg
24838440cca4Smrgcat >>confdefs.h <<_ACEOF
24848440cca4Smrg#define PACKAGE "$PACKAGE"
24858440cca4Smrg_ACEOF
24868440cca4Smrg
24878440cca4Smrg
24888440cca4Smrgcat >>confdefs.h <<_ACEOF
24898440cca4Smrg#define VERSION "$VERSION"
24908440cca4Smrg_ACEOF
24918440cca4Smrg
24928440cca4Smrg# Some tools Automake needs.
24938440cca4Smrg
24948440cca4SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
24958440cca4Smrg
24968440cca4Smrg
24978440cca4SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
24988440cca4Smrg
24998440cca4Smrg
25008440cca4SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
25018440cca4Smrg
25028440cca4Smrg
25038440cca4SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
25048440cca4Smrg
25058440cca4Smrg
25068440cca4SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
25078440cca4Smrg
2508d1c293acSmrg# We need awk for the "check" target.  The system "awk" is bad on
2509d1c293acSmrg# some platforms.
2510d1c293acSmrg# Always define AMTAR for backward compatibility.
25118440cca4Smrg
25128440cca4SmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
25138440cca4Smrg
2514d1c293acSmrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
25158440cca4Smrg
25168440cca4Smrg
25178440cca4Smrg
25188440cca4Smrg
2519d1c293acSmrg
2520d1c293acSmrg
2521d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2522d1c293acSmrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2523d1c293acSmrg    # Check whether --enable-maintainer-mode was given.
2524d1c293acSmrgif test "${enable_maintainer_mode+set}" = set; then :
2525d1c293acSmrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
25268440cca4Smrgelse
2527d1c293acSmrg  USE_MAINTAINER_MODE=no
25288440cca4Smrgfi
25298440cca4Smrg
2530d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2531d1c293acSmrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
2532d1c293acSmrg   if test $USE_MAINTAINER_MODE = yes; then
2533d1c293acSmrg  MAINTAINER_MODE_TRUE=
2534d1c293acSmrg  MAINTAINER_MODE_FALSE='#'
25358440cca4Smrgelse
2536d1c293acSmrg  MAINTAINER_MODE_TRUE='#'
2537d1c293acSmrg  MAINTAINER_MODE_FALSE=
25388440cca4Smrgfi
25398440cca4Smrg
2540d1c293acSmrg  MAINT=$MAINTAINER_MODE_TRUE
25418440cca4Smrg
25428440cca4Smrg
25438440cca4Smrg
2544d1c293acSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
25458440cca4Smrg
25468440cca4Smrg
25478440cca4Smrg
2548d1c293acSmrg
2549d1c293acSmrg
2550d1c293acSmrg
2551d1c293acSmrg
2552d1c293acSmrg
2553d1c293acSmrg
2554d1c293acSmrg
2555d1c293acSmrg
2556d1c293acSmrgDEPDIR="${am__leading_dot}deps"
2557d1c293acSmrg
2558d1c293acSmrgac_config_commands="$ac_config_commands depfiles"
2559d1c293acSmrg
2560d1c293acSmrg
2561d1c293acSmrgam_make=${MAKE-make}
2562d1c293acSmrgcat > confinc << 'END'
2563d1c293acSmrgam__doit:
2564d1c293acSmrg	@echo this is the am__doit target
2565d1c293acSmrg.PHONY: am__doit
2566d1c293acSmrgEND
2567d1c293acSmrg# If we don't find an include directive, just comment out the code.
2568d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2569d1c293acSmrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
2570d1c293acSmrgam__include="#"
2571d1c293acSmrgam__quote=
2572d1c293acSmrg_am_result=none
2573d1c293acSmrg# First try GNU make style include.
2574d1c293acSmrgecho "include confinc" > confmf
2575d1c293acSmrg# Ignore all kinds of additional output from `make'.
2576d1c293acSmrgcase `$am_make -s -f confmf 2> /dev/null` in #(
2577d1c293acSmrg*the\ am__doit\ target*)
2578d1c293acSmrg  am__include=include
2579d1c293acSmrg  am__quote=
2580d1c293acSmrg  _am_result=GNU
2581d1c293acSmrg  ;;
2582d1c293acSmrgesac
2583d1c293acSmrg# Now try BSD make style include.
2584d1c293acSmrgif test "$am__include" = "#"; then
2585d1c293acSmrg   echo '.include "confinc"' > confmf
2586d1c293acSmrg   case `$am_make -s -f confmf 2> /dev/null` in #(
2587d1c293acSmrg   *the\ am__doit\ target*)
2588d1c293acSmrg     am__include=.include
2589d1c293acSmrg     am__quote="\""
2590d1c293acSmrg     _am_result=BSD
2591d1c293acSmrg     ;;
2592d1c293acSmrg   esac
25938440cca4Smrgfi
25948440cca4Smrg
25958440cca4Smrg
2596d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2597d1c293acSmrg$as_echo "$_am_result" >&6; }
2598d1c293acSmrgrm -f confinc confmf
25998440cca4Smrg
2600d1c293acSmrg# Check whether --enable-dependency-tracking was given.
2601d1c293acSmrgif test "${enable_dependency_tracking+set}" = set; then :
2602d1c293acSmrg  enableval=$enable_dependency_tracking;
2603d1c293acSmrgfi
26048440cca4Smrg
2605d1c293acSmrgif test "x$enable_dependency_tracking" != xno; then
2606d1c293acSmrg  am_depcomp="$ac_aux_dir/depcomp"
2607d1c293acSmrg  AMDEPBACKSLASH='\'
2608d1c293acSmrgfi
2609d1c293acSmrg if test "x$enable_dependency_tracking" != xno; then
2610d1c293acSmrg  AMDEP_TRUE=
2611d1c293acSmrg  AMDEP_FALSE='#'
2612d1c293acSmrgelse
2613d1c293acSmrg  AMDEP_TRUE='#'
2614d1c293acSmrg  AMDEP_FALSE=
2615d1c293acSmrgfi
26168440cca4Smrg
26178440cca4Smrg
26188440cca4Smrgac_ext=c
26198440cca4Smrgac_cpp='$CPP $CPPFLAGS'
26208440cca4Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26218440cca4Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26228440cca4Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
26238440cca4Smrgif test -n "$ac_tool_prefix"; then
26248440cca4Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
26258440cca4Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
2626d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2627d1c293acSmrg$as_echo_n "checking for $ac_word... " >&6; }
2628d1c293acSmrgif ${ac_cv_prog_CC+:} false; then :
2629d1c293acSmrg  $as_echo_n "(cached) " >&6
26308440cca4Smrgelse
26318440cca4Smrg  if test -n "$CC"; then
26328440cca4Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
26338440cca4Smrgelse
26348440cca4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26358440cca4Smrgfor as_dir in $PATH
26368440cca4Smrgdo
26378440cca4Smrg  IFS=$as_save_IFS
26388440cca4Smrg  test -z "$as_dir" && as_dir=.
2639d1c293acSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2640d1c293acSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26418440cca4Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2642d1c293acSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26438440cca4Smrg    break 2
26448440cca4Smrg  fi
26458440cca4Smrgdone
2646d1c293acSmrg  done
2647d1c293acSmrgIFS=$as_save_IFS
26488440cca4Smrg
26498440cca4Smrgfi
26508440cca4Smrgfi
26518440cca4SmrgCC=$ac_cv_prog_CC
26528440cca4Smrgif test -n "$CC"; then
2653d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2654d1c293acSmrg$as_echo "$CC" >&6; }
26558440cca4Smrgelse
2656d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2657d1c293acSmrg$as_echo "no" >&6; }
26588440cca4Smrgfi
26598440cca4Smrg
2660d1c293acSmrg
26618440cca4Smrgfi
26628440cca4Smrgif test -z "$ac_cv_prog_CC"; then
26638440cca4Smrg  ac_ct_CC=$CC
26648440cca4Smrg  # Extract the first word of "gcc", so it can be a program name with args.
26658440cca4Smrgset dummy gcc; ac_word=$2
2666d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2667d1c293acSmrg$as_echo_n "checking for $ac_word... " >&6; }
2668d1c293acSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
2669d1c293acSmrg  $as_echo_n "(cached) " >&6
26708440cca4Smrgelse
26718440cca4Smrg  if test -n "$ac_ct_CC"; then
26728440cca4Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
26738440cca4Smrgelse
26748440cca4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26758440cca4Smrgfor as_dir in $PATH
26768440cca4Smrgdo
26778440cca4Smrg  IFS=$as_save_IFS
26788440cca4Smrg  test -z "$as_dir" && as_dir=.
2679d1c293acSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2680d1c293acSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26818440cca4Smrg    ac_cv_prog_ac_ct_CC="gcc"
2682d1c293acSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26838440cca4Smrg    break 2
26848440cca4Smrg  fi
26858440cca4Smrgdone
2686d1c293acSmrg  done
2687d1c293acSmrgIFS=$as_save_IFS
26888440cca4Smrg
26898440cca4Smrgfi
26908440cca4Smrgfi
26918440cca4Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
26928440cca4Smrgif test -n "$ac_ct_CC"; then
2693d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2694d1c293acSmrg$as_echo "$ac_ct_CC" >&6; }
26958440cca4Smrgelse
2696d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2697d1c293acSmrg$as_echo "no" >&6; }
26988440cca4Smrgfi
26998440cca4Smrg
2700d1c293acSmrg  if test "x$ac_ct_CC" = x; then
2701d1c293acSmrg    CC=""
2702d1c293acSmrg  else
2703d1c293acSmrg    case $cross_compiling:$ac_tool_warned in
2704d1c293acSmrgyes:)
2705d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2706d1c293acSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2707d1c293acSmrgac_tool_warned=yes ;;
2708d1c293acSmrgesac
2709d1c293acSmrg    CC=$ac_ct_CC
2710d1c293acSmrg  fi
27118440cca4Smrgelse
27128440cca4Smrg  CC="$ac_cv_prog_CC"
27138440cca4Smrgfi
27148440cca4Smrg
27158440cca4Smrgif test -z "$CC"; then
2716d1c293acSmrg          if test -n "$ac_tool_prefix"; then
2717d1c293acSmrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
27188440cca4Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
2719d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720d1c293acSmrg$as_echo_n "checking for $ac_word... " >&6; }
2721d1c293acSmrgif ${ac_cv_prog_CC+:} false; then :
2722d1c293acSmrg  $as_echo_n "(cached) " >&6
27238440cca4Smrgelse
27248440cca4Smrg  if test -n "$CC"; then
27258440cca4Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
27268440cca4Smrgelse
27278440cca4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27288440cca4Smrgfor as_dir in $PATH
27298440cca4Smrgdo
27308440cca4Smrg  IFS=$as_save_IFS
27318440cca4Smrg  test -z "$as_dir" && as_dir=.
2732d1c293acSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2733d1c293acSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27348440cca4Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
2735d1c293acSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27368440cca4Smrg    break 2
27378440cca4Smrg  fi
27388440cca4Smrgdone
2739d1c293acSmrg  done
2740d1c293acSmrgIFS=$as_save_IFS
27418440cca4Smrg
27428440cca4Smrgfi
27438440cca4Smrgfi
27448440cca4SmrgCC=$ac_cv_prog_CC
27458440cca4Smrgif test -n "$CC"; then
2746d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2747d1c293acSmrg$as_echo "$CC" >&6; }
27488440cca4Smrgelse
2749d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750d1c293acSmrg$as_echo "no" >&6; }
27518440cca4Smrgfi
27528440cca4Smrg
27538440cca4Smrg
2754d1c293acSmrg  fi
27558440cca4Smrgfi
27568440cca4Smrgif test -z "$CC"; then
27578440cca4Smrg  # Extract the first word of "cc", so it can be a program name with args.
27588440cca4Smrgset dummy cc; ac_word=$2
2759d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2760d1c293acSmrg$as_echo_n "checking for $ac_word... " >&6; }
2761d1c293acSmrgif ${ac_cv_prog_CC+:} false; then :
2762d1c293acSmrg  $as_echo_n "(cached) " >&6
27638440cca4Smrgelse
27648440cca4Smrg  if test -n "$CC"; then
27658440cca4Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
27668440cca4Smrgelse
27678440cca4Smrg  ac_prog_rejected=no
27688440cca4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27698440cca4Smrgfor as_dir in $PATH
27708440cca4Smrgdo
27718440cca4Smrg  IFS=$as_save_IFS
27728440cca4Smrg  test -z "$as_dir" && as_dir=.
2773d1c293acSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2774d1c293acSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27758440cca4Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
27768440cca4Smrg       ac_prog_rejected=yes
27778440cca4Smrg       continue
27788440cca4Smrg     fi
27798440cca4Smrg    ac_cv_prog_CC="cc"
2780d1c293acSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27818440cca4Smrg    break 2
27828440cca4Smrg  fi
27838440cca4Smrgdone
2784d1c293acSmrg  done
2785d1c293acSmrgIFS=$as_save_IFS
27868440cca4Smrg
27878440cca4Smrgif test $ac_prog_rejected = yes; then
27888440cca4Smrg  # We found a bogon in the path, so make sure we never use it.
27898440cca4Smrg  set dummy $ac_cv_prog_CC
27908440cca4Smrg  shift
27918440cca4Smrg  if test $# != 0; then
27928440cca4Smrg    # We chose a different compiler from the bogus one.
27938440cca4Smrg    # However, it has the same basename, so the bogon will be chosen
27948440cca4Smrg    # first if we set CC to just the basename; use the full file name.
27958440cca4Smrg    shift
27968440cca4Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
27978440cca4Smrg  fi
27988440cca4Smrgfi
27998440cca4Smrgfi
28008440cca4Smrgfi
28018440cca4SmrgCC=$ac_cv_prog_CC
28028440cca4Smrgif test -n "$CC"; then
2803d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2804d1c293acSmrg$as_echo "$CC" >&6; }
28058440cca4Smrgelse
2806d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807d1c293acSmrg$as_echo "no" >&6; }
28088440cca4Smrgfi
28098440cca4Smrg
2810d1c293acSmrg
28118440cca4Smrgfi
28128440cca4Smrgif test -z "$CC"; then
28138440cca4Smrg  if test -n "$ac_tool_prefix"; then
2814d1c293acSmrg  for ac_prog in cl.exe
28158440cca4Smrg  do
28168440cca4Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
28178440cca4Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
2818d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2819d1c293acSmrg$as_echo_n "checking for $ac_word... " >&6; }
2820d1c293acSmrgif ${ac_cv_prog_CC+:} false; then :
2821d1c293acSmrg  $as_echo_n "(cached) " >&6
28228440cca4Smrgelse
28238440cca4Smrg  if test -n "$CC"; then
28248440cca4Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
28258440cca4Smrgelse
28268440cca4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28278440cca4Smrgfor as_dir in $PATH
28288440cca4Smrgdo
28298440cca4Smrg  IFS=$as_save_IFS
28308440cca4Smrg  test -z "$as_dir" && as_dir=.
2831d1c293acSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2832d1c293acSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28338440cca4Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2834d1c293acSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28358440cca4Smrg    break 2
28368440cca4Smrg  fi
28378440cca4Smrgdone
2838d1c293acSmrg  done
2839d1c293acSmrgIFS=$as_save_IFS
28408440cca4Smrg
28418440cca4Smrgfi
28428440cca4Smrgfi
28438440cca4SmrgCC=$ac_cv_prog_CC
28448440cca4Smrgif test -n "$CC"; then
2845d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2846d1c293acSmrg$as_echo "$CC" >&6; }
28478440cca4Smrgelse
2848d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2849d1c293acSmrg$as_echo "no" >&6; }
28508440cca4Smrgfi
28518440cca4Smrg
2852d1c293acSmrg
28538440cca4Smrg    test -n "$CC" && break
28548440cca4Smrg  done
28558440cca4Smrgfi
28568440cca4Smrgif test -z "$CC"; then
28578440cca4Smrg  ac_ct_CC=$CC
2858d1c293acSmrg  for ac_prog in cl.exe
28598440cca4Smrgdo
28608440cca4Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
28618440cca4Smrgset dummy $ac_prog; ac_word=$2
2862d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2863d1c293acSmrg$as_echo_n "checking for $ac_word... " >&6; }
2864d1c293acSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
2865d1c293acSmrg  $as_echo_n "(cached) " >&6
28668440cca4Smrgelse
28678440cca4Smrg  if test -n "$ac_ct_CC"; then
28688440cca4Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
28698440cca4Smrgelse
28708440cca4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28718440cca4Smrgfor as_dir in $PATH
28728440cca4Smrgdo
28738440cca4Smrg  IFS=$as_save_IFS
28748440cca4Smrg  test -z "$as_dir" && as_dir=.
2875d1c293acSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2876d1c293acSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28778440cca4Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
2878d1c293acSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28798440cca4Smrg    break 2
28808440cca4Smrg  fi
28818440cca4Smrgdone
2882d1c293acSmrg  done
2883d1c293acSmrgIFS=$as_save_IFS
28848440cca4Smrg
28858440cca4Smrgfi
28868440cca4Smrgfi
28878440cca4Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
28888440cca4Smrgif test -n "$ac_ct_CC"; then
2889d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2890d1c293acSmrg$as_echo "$ac_ct_CC" >&6; }
28918440cca4Smrgelse
2892d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2893d1c293acSmrg$as_echo "no" >&6; }
28948440cca4Smrgfi
28958440cca4Smrg
2896d1c293acSmrg
28978440cca4Smrg  test -n "$ac_ct_CC" && break
28988440cca4Smrgdone
28998440cca4Smrg
2900d1c293acSmrg  if test "x$ac_ct_CC" = x; then
2901d1c293acSmrg    CC=""
2902d1c293acSmrg  else
2903d1c293acSmrg    case $cross_compiling:$ac_tool_warned in
2904d1c293acSmrgyes:)
2905d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2906d1c293acSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2907d1c293acSmrgac_tool_warned=yes ;;
2908d1c293acSmrgesac
2909d1c293acSmrg    CC=$ac_ct_CC
2910d1c293acSmrg  fi
29118440cca4Smrgfi
29128440cca4Smrg
29138440cca4Smrgfi
29148440cca4Smrg
29158440cca4Smrg
2916d1c293acSmrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2917d1c293acSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2918d1c293acSmrgas_fn_error $? "no acceptable C compiler found in \$PATH
2919d1c293acSmrgSee \`config.log' for more details" "$LINENO" 5; }
29208440cca4Smrg
29218440cca4Smrg# Provide some information about the compiler.
2922d1c293acSmrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2923d1c293acSmrgset X $ac_compile
2924d1c293acSmrgac_compiler=$2
2925d1c293acSmrgfor ac_option in --version -v -V -qversion; do
2926d1c293acSmrg  { { ac_try="$ac_compiler $ac_option >&5"
2927d1c293acSmrgcase "(($ac_try" in
2928d1c293acSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929d1c293acSmrg  *) ac_try_echo=$ac_try;;
2930d1c293acSmrgesac
2931d1c293acSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2932d1c293acSmrg$as_echo "$ac_try_echo"; } >&5
2933d1c293acSmrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
29348440cca4Smrg  ac_status=$?
2935d1c293acSmrg  if test -s conftest.err; then
2936d1c293acSmrg    sed '10a\
2937d1c293acSmrg... rest of stderr output deleted ...
2938d1c293acSmrg         10q' conftest.err >conftest.er1
2939d1c293acSmrg    cat conftest.er1 >&5
2940d1c293acSmrg  fi
2941d1c293acSmrg  rm -f conftest.er1 conftest.err
2942d1c293acSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2943d1c293acSmrg  test $ac_status = 0; }
2944d1c293acSmrgdone
29458440cca4Smrg
2946d1c293acSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
29478440cca4Smrg/* end confdefs.h.  */
29488440cca4Smrg
29498440cca4Smrgint
29508440cca4Smrgmain ()
29518440cca4Smrg{
29528440cca4Smrg
29538440cca4Smrg  ;
29548440cca4Smrg  return 0;
29558440cca4Smrg}
29568440cca4Smrg_ACEOF
29578440cca4Smrgac_clean_files_save=$ac_clean_files
2958d1c293acSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
29598440cca4Smrg# Try to create an executable without -o first, disregard a.out.
29608440cca4Smrg# It will help us diagnose broken compilers, and finding out an intuition
29618440cca4Smrg# of exeext.
2962d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2963d1c293acSmrg$as_echo_n "checking whether the C compiler works... " >&6; }
2964d1c293acSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2965d1c293acSmrg
2966d1c293acSmrg# The possible output files:
2967d1c293acSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2968d1c293acSmrg
2969d1c293acSmrgac_rmfiles=
2970d1c293acSmrgfor ac_file in $ac_files
2971d1c293acSmrgdo
2972d1c293acSmrg  case $ac_file in
2973d1c293acSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2974d1c293acSmrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2975d1c293acSmrg  esac
2976d1c293acSmrgdone
2977d1c293acSmrgrm -f $ac_rmfiles
2978d1c293acSmrg
2979d1c293acSmrgif { { ac_try="$ac_link_default"
2980d1c293acSmrgcase "(($ac_try" in
2981d1c293acSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982d1c293acSmrg  *) ac_try_echo=$ac_try;;
2983d1c293acSmrgesac
2984d1c293acSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2985d1c293acSmrg$as_echo "$ac_try_echo"; } >&5
2986d1c293acSmrg  (eval "$ac_link_default") 2>&5
29878440cca4Smrg  ac_status=$?
2988d1c293acSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2989d1c293acSmrg  test $ac_status = 0; }; then :
2990d1c293acSmrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2991d1c293acSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2992d1c293acSmrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2993d1c293acSmrg# so that the user can short-circuit this test for compilers unknown to
2994d1c293acSmrg# Autoconf.
2995d1c293acSmrgfor ac_file in $ac_files ''
29968440cca4Smrgdo
29978440cca4Smrg  test -f "$ac_file" || continue
29988440cca4Smrg  case $ac_file in
2999d1c293acSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
30008440cca4Smrg	;;
30018440cca4Smrg    [ab].out )
30028440cca4Smrg	# We found the default executable, but exeext='' is most
30038440cca4Smrg	# certainly right.
30048440cca4Smrg	break;;
30058440cca4Smrg    *.* )
3006d1c293acSmrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3007d1c293acSmrg	then :; else
3008d1c293acSmrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3009d1c293acSmrg	fi
3010d1c293acSmrg	# We set ac_cv_exeext here because the later test for it is not
3011d1c293acSmrg	# safe: cross compilers may not add the suffix if given an `-o'
3012d1c293acSmrg	# argument, so we may need to know it at that point already.
3013d1c293acSmrg	# Even if this section looks crufty: it has the advantage of
3014d1c293acSmrg	# actually working.
30158440cca4Smrg	break;;
30168440cca4Smrg    * )
30178440cca4Smrg	break;;
30188440cca4Smrg  esac
30198440cca4Smrgdone
3020d1c293acSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
3021d1c293acSmrg
30228440cca4Smrgelse
3023d1c293acSmrg  ac_file=''
3024d1c293acSmrgfi
3025d1c293acSmrgif test -z "$ac_file"; then :
3026d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027d1c293acSmrg$as_echo "no" >&6; }
3028d1c293acSmrg$as_echo "$as_me: failed program was:" >&5
30298440cca4Smrgsed 's/^/| /' conftest.$ac_ext >&5
30308440cca4Smrg
3031d1c293acSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3032d1c293acSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3033d1c293acSmrgas_fn_error 77 "C compiler cannot create executables
3034d1c293acSmrgSee \`config.log' for more details" "$LINENO" 5; }
3035d1c293acSmrgelse
3036d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3037d1c293acSmrg$as_echo "yes" >&6; }
30388440cca4Smrgfi
3039d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3040d1c293acSmrg$as_echo_n "checking for C compiler default output file name... " >&6; }
3041d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3042d1c293acSmrg$as_echo "$ac_file" >&6; }
30438440cca4Smrgac_exeext=$ac_cv_exeext
30448440cca4Smrg
3045d1c293acSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
30468440cca4Smrgac_clean_files=$ac_clean_files_save
3047d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3048d1c293acSmrg$as_echo_n "checking for suffix of executables... " >&6; }
3049d1c293acSmrgif { { ac_try="$ac_link"
3050d1c293acSmrgcase "(($ac_try" in
3051d1c293acSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052d1c293acSmrg  *) ac_try_echo=$ac_try;;
3053d1c293acSmrgesac
3054d1c293acSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3055d1c293acSmrg$as_echo "$ac_try_echo"; } >&5
3056d1c293acSmrg  (eval "$ac_link") 2>&5
30578440cca4Smrg  ac_status=$?
3058d1c293acSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3059d1c293acSmrg  test $ac_status = 0; }; then :
30608440cca4Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
30618440cca4Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
30628440cca4Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
30638440cca4Smrg# `rm'.
30648440cca4Smrgfor ac_file in conftest.exe conftest conftest.*; do
30658440cca4Smrg  test -f "$ac_file" || continue
30668440cca4Smrg  case $ac_file in
3067d1c293acSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
30688440cca4Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
30698440cca4Smrg	  break;;
30708440cca4Smrg    * ) break;;
30718440cca4Smrg  esac
30728440cca4Smrgdone
30738440cca4Smrgelse
3074d1c293acSmrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3075d1c293acSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3076d1c293acSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
3077d1c293acSmrgSee \`config.log' for more details" "$LINENO" 5; }
30788440cca4Smrgfi
3079d1c293acSmrgrm -f conftest conftest$ac_cv_exeext
3080d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3081d1c293acSmrg$as_echo "$ac_cv_exeext" >&6; }
30828440cca4Smrg
30838440cca4Smrgrm -f conftest.$ac_ext
30848440cca4SmrgEXEEXT=$ac_cv_exeext
30858440cca4Smrgac_exeext=$EXEEXT
3086d1c293acSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3087d1c293acSmrg/* end confdefs.h.  */
3088d1c293acSmrg#include <stdio.h>
3089d1c293acSmrgint
3090d1c293acSmrgmain ()
3091d1c293acSmrg{
3092d1c293acSmrgFILE *f = fopen ("conftest.out", "w");
3093d1c293acSmrg return ferror (f) || fclose (f) != 0;
3094d1c293acSmrg
3095d1c293acSmrg  ;
3096d1c293acSmrg  return 0;
3097d1c293acSmrg}
30988440cca4Smrg_ACEOF
3099d1c293acSmrgac_clean_files="$ac_clean_files conftest.out"
3100d1c293acSmrg# Check that the compiler produces executables we can run.  If not, either
3101d1c293acSmrg# the compiler is broken, or we cross compile.
3102d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3103d1c293acSmrg$as_echo_n "checking whether we are cross compiling... " >&6; }
3104d1c293acSmrgif test "$cross_compiling" != yes; then
3105d1c293acSmrg  { { ac_try="$ac_link"
3106d1c293acSmrgcase "(($ac_try" in
3107d1c293acSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108d1c293acSmrg  *) ac_try_echo=$ac_try;;
3109d1c293acSmrgesac
3110d1c293acSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111d1c293acSmrg$as_echo "$ac_try_echo"; } >&5
3112d1c293acSmrg  (eval "$ac_link") 2>&5
3113d1c293acSmrg  ac_status=$?
3114d1c293acSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115d1c293acSmrg  test $ac_status = 0; }
3116d1c293acSmrg  if { ac_try='./conftest$ac_cv_exeext'
3117d1c293acSmrg  { { case "(($ac_try" in
3118d1c293acSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119d1c293acSmrg  *) ac_try_echo=$ac_try;;
3120d1c293acSmrgesac
3121d1c293acSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3122d1c293acSmrg$as_echo "$ac_try_echo"; } >&5
3123d1c293acSmrg  (eval "$ac_try") 2>&5
3124d1c293acSmrg  ac_status=$?
3125d1c293acSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3126d1c293acSmrg  test $ac_status = 0; }; }; then
3127d1c293acSmrg    cross_compiling=no
3128d1c293acSmrg  else
3129d1c293acSmrg    if test "$cross_compiling" = maybe; then
3130d1c293acSmrg	cross_compiling=yes
3131d1c293acSmrg    else
3132d1c293acSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3133d1c293acSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3134d1c293acSmrgas_fn_error $? "cannot run C compiled programs.
3135d1c293acSmrgIf you meant to cross compile, use \`--host'.
3136d1c293acSmrgSee \`config.log' for more details" "$LINENO" 5; }
3137d1c293acSmrg    fi
3138d1c293acSmrg  fi
3139d1c293acSmrgfi
3140d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3141d1c293acSmrg$as_echo "$cross_compiling" >&6; }
3142d1c293acSmrg
3143d1c293acSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3144d1c293acSmrgac_clean_files=$ac_clean_files_save
3145d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3146d1c293acSmrg$as_echo_n "checking for suffix of object files... " >&6; }
3147d1c293acSmrgif ${ac_cv_objext+:} false; then :
3148d1c293acSmrg  $as_echo_n "(cached) " >&6
3149d1c293acSmrgelse
3150d1c293acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31518440cca4Smrg/* end confdefs.h.  */
31528440cca4Smrg
31538440cca4Smrgint
31548440cca4Smrgmain ()
31558440cca4Smrg{
31568440cca4Smrg
31578440cca4Smrg  ;
31588440cca4Smrg  return 0;
31598440cca4Smrg}
31608440cca4Smrg_ACEOF
31618440cca4Smrgrm -f conftest.o conftest.obj
3162d1c293acSmrgif { { ac_try="$ac_compile"
3163d1c293acSmrgcase "(($ac_try" in
3164d1c293acSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165d1c293acSmrg  *) ac_try_echo=$ac_try;;
3166d1c293acSmrgesac
3167d1c293acSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3168d1c293acSmrg$as_echo "$ac_try_echo"; } >&5
3169d1c293acSmrg  (eval "$ac_compile") 2>&5
31708440cca4Smrg  ac_status=$?
3171d1c293acSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3172d1c293acSmrg  test $ac_status = 0; }; then :
3173d1c293acSmrg  for ac_file in conftest.o conftest.obj conftest.*; do
3174d1c293acSmrg  test -f "$ac_file" || continue;
31758440cca4Smrg  case $ac_file in
3176d1c293acSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
31778440cca4Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
31788440cca4Smrg       break;;
31798440cca4Smrg  esac
31808440cca4Smrgdone
31818440cca4Smrgelse
3182d1c293acSmrg  $as_echo "$as_me: failed program was:" >&5
31838440cca4Smrgsed 's/^/| /' conftest.$ac_ext >&5
31848440cca4Smrg
3185d1c293acSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3186d1c293acSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3187d1c293acSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile
3188d1c293acSmrgSee \`config.log' for more details" "$LINENO" 5; }
31898440cca4Smrgfi
31908440cca4Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
31918440cca4Smrgfi
3192d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3193d1c293acSmrg$as_echo "$ac_cv_objext" >&6; }
31948440cca4SmrgOBJEXT=$ac_cv_objext
31958440cca4Smrgac_objext=$OBJEXT
3196d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3197d1c293acSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3198d1c293acSmrgif ${ac_cv_c_compiler_gnu+:} false; then :
3199d1c293acSmrg  $as_echo_n "(cached) " >&6
32008440cca4Smrgelse
3201d1c293acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32028440cca4Smrg/* end confdefs.h.  */
32038440cca4Smrg
32048440cca4Smrgint
32058440cca4Smrgmain ()
32068440cca4Smrg{
32078440cca4Smrg#ifndef __GNUC__
32088440cca4Smrg       choke me
32098440cca4Smrg#endif
32108440cca4Smrg
32118440cca4Smrg  ;
32128440cca4Smrg  return 0;
32138440cca4Smrg}
32148440cca4Smrg_ACEOF
3215d1c293acSmrgif ac_fn_c_try_compile "$LINENO"; then :
32168440cca4Smrg  ac_compiler_gnu=yes
32178440cca4Smrgelse
3218d1c293acSmrg  ac_compiler_gnu=no
32198440cca4Smrgfi
3220d1c293acSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32218440cca4Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
32228440cca4Smrg
32238440cca4Smrgfi
3224d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3225d1c293acSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3226d1c293acSmrgif test $ac_compiler_gnu = yes; then
3227d1c293acSmrg  GCC=yes
3228d1c293acSmrgelse
3229d1c293acSmrg  GCC=
3230d1c293acSmrgfi
32318440cca4Smrgac_test_CFLAGS=${CFLAGS+set}
32328440cca4Smrgac_save_CFLAGS=$CFLAGS
3233d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3234d1c293acSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
3235d1c293acSmrgif ${ac_cv_prog_cc_g+:} false; then :
3236d1c293acSmrg  $as_echo_n "(cached) " >&6
3237d1c293acSmrgelse
3238d1c293acSmrg  ac_save_c_werror_flag=$ac_c_werror_flag
3239d1c293acSmrg   ac_c_werror_flag=yes
3240d1c293acSmrg   ac_cv_prog_cc_g=no
3241d1c293acSmrg   CFLAGS="-g"
3242d1c293acSmrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32438440cca4Smrg/* end confdefs.h.  */
32448440cca4Smrg
32458440cca4Smrgint
32468440cca4Smrgmain ()
32478440cca4Smrg{
32488440cca4Smrg
32498440cca4Smrg  ;
32508440cca4Smrg  return 0;
32518440cca4Smrg}
32528440cca4Smrg_ACEOF
3253d1c293acSmrgif ac_fn_c_try_compile "$LINENO"; then :
32548440cca4Smrg  ac_cv_prog_cc_g=yes
32558440cca4Smrgelse
3256d1c293acSmrg  CFLAGS=""
3257d1c293acSmrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258d1c293acSmrg/* end confdefs.h.  */
3259d1c293acSmrg
3260d1c293acSmrgint
3261d1c293acSmrgmain ()
3262d1c293acSmrg{
3263d1c293acSmrg
3264d1c293acSmrg  ;
3265d1c293acSmrg  return 0;
3266d1c293acSmrg}
3267d1c293acSmrg_ACEOF
3268d1c293acSmrgif ac_fn_c_try_compile "$LINENO"; then :
32698440cca4Smrg
32708440cca4Smrgelse
3271d1c293acSmrg  ac_c_werror_flag=$ac_save_c_werror_flag
3272d1c293acSmrg	 CFLAGS="-g"
3273d1c293acSmrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274d1c293acSmrg/* end confdefs.h.  */
3275d1c293acSmrg
3276d1c293acSmrgint
3277d1c293acSmrgmain ()
3278d1c293acSmrg{
3279d1c293acSmrg
3280d1c293acSmrg  ;
3281d1c293acSmrg  return 0;
3282d1c293acSmrg}
3283d1c293acSmrg_ACEOF
3284d1c293acSmrgif ac_fn_c_try_compile "$LINENO"; then :
3285d1c293acSmrg  ac_cv_prog_cc_g=yes
3286d1c293acSmrgfi
3287d1c293acSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3288d1c293acSmrgfi
3289d1c293acSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3290d1c293acSmrgfi
3291d1c293acSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3292d1c293acSmrg   ac_c_werror_flag=$ac_save_c_werror_flag
3293d1c293acSmrgfi
3294d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3295d1c293acSmrg$as_echo "$ac_cv_prog_cc_g" >&6; }
3296d1c293acSmrgif test "$ac_test_CFLAGS" = set; then
3297d1c293acSmrg  CFLAGS=$ac_save_CFLAGS
3298d1c293acSmrgelif test $ac_cv_prog_cc_g = yes; then
3299d1c293acSmrg  if test "$GCC" = yes; then
3300d1c293acSmrg    CFLAGS="-g -O2"
3301d1c293acSmrg  else
3302d1c293acSmrg    CFLAGS="-g"
3303d1c293acSmrg  fi
3304d1c293acSmrgelse
3305d1c293acSmrg  if test "$GCC" = yes; then
33068440cca4Smrg    CFLAGS="-O2"
33078440cca4Smrg  else
33088440cca4Smrg    CFLAGS=
33098440cca4Smrg  fi
33108440cca4Smrgfi
3311d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3312d1c293acSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3313d1c293acSmrgif ${ac_cv_prog_cc_c89+:} false; then :
3314d1c293acSmrg  $as_echo_n "(cached) " >&6
33158440cca4Smrgelse
3316d1c293acSmrg  ac_cv_prog_cc_c89=no
33178440cca4Smrgac_save_CC=$CC
3318d1c293acSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
33198440cca4Smrg/* end confdefs.h.  */
33208440cca4Smrg#include <stdarg.h>
33218440cca4Smrg#include <stdio.h>
33228440cca4Smrg#include <sys/types.h>
33238440cca4Smrg#include <sys/stat.h>
33248440cca4Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
33258440cca4Smrgstruct buf { int x; };
33268440cca4SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
33278440cca4Smrgstatic char *e (p, i)
33288440cca4Smrg     char **p;
33298440cca4Smrg     int i;
33308440cca4Smrg{
33318440cca4Smrg  return p[i];
33328440cca4Smrg}
33338440cca4Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
33348440cca4Smrg{
33358440cca4Smrg  char *s;
33368440cca4Smrg  va_list v;
33378440cca4Smrg  va_start (v,p);
33388440cca4Smrg  s = g (p, va_arg (v,int));
33398440cca4Smrg  va_end (v);
33408440cca4Smrg  return s;
33418440cca4Smrg}
33428440cca4Smrg
33438440cca4Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
33448440cca4Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
33458440cca4Smrg   These don't provoke an error unfortunately, instead are silently treated
3346d1c293acSmrg   as 'x'.  The following induces an error, until -std is added to get
33478440cca4Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
33488440cca4Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
3349d1c293acSmrg   that's true only with -std.  */
33508440cca4Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
33518440cca4Smrg
3352d1c293acSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3353d1c293acSmrg   inside strings and character constants.  */
3354d1c293acSmrg#define FOO(x) 'x'
3355d1c293acSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3356d1c293acSmrg
33578440cca4Smrgint test (int i, double x);
33588440cca4Smrgstruct s1 {int (*f) (int a);};
33598440cca4Smrgstruct s2 {int (*f) (double a);};
33608440cca4Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
33618440cca4Smrgint argc;
33628440cca4Smrgchar **argv;
33638440cca4Smrgint
33648440cca4Smrgmain ()
33658440cca4Smrg{
33668440cca4Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
33678440cca4Smrg  ;
33688440cca4Smrg  return 0;
33698440cca4Smrg}
33708440cca4Smrg_ACEOF
3371d1c293acSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3372d1c293acSmrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
33738440cca4Smrgdo
33748440cca4Smrg  CC="$ac_save_CC $ac_arg"
3375d1c293acSmrg  if ac_fn_c_try_compile "$LINENO"; then :
3376d1c293acSmrg  ac_cv_prog_cc_c89=$ac_arg
33778440cca4Smrgfi
3378d1c293acSmrgrm -f core conftest.err conftest.$ac_objext
3379d1c293acSmrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
33808440cca4Smrgdone
3381d1c293acSmrgrm -f conftest.$ac_ext
33828440cca4SmrgCC=$ac_save_CC
33838440cca4Smrg
33848440cca4Smrgfi
3385d1c293acSmrg# AC_CACHE_VAL
3386d1c293acSmrgcase "x$ac_cv_prog_cc_c89" in
3387d1c293acSmrg  x)
3388d1c293acSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3389d1c293acSmrg$as_echo "none needed" >&6; } ;;
3390d1c293acSmrg  xno)
3391d1c293acSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3392d1c293acSmrg$as_echo "unsupported" >&6; } ;;
33938440cca4Smrg  *)
3394d1c293acSmrg    CC="$CC $ac_cv_prog_cc_c89"
3395d1c293acSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3396d1c293acSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
33978440cca4Smrgesac
3398d1c293acSmrgif test "x$ac_cv_prog_cc_c89" != xno; then :
33998440cca4Smrg
34008440cca4Smrgfi
34018440cca4Smrg
34028440cca4Smrgac_ext=c
34038440cca4Smrgac_cpp='$CPP $CPPFLAGS'
34048440cca4Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34058440cca4Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34068440cca4Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
34078440cca4Smrg
34088440cca4Smrgdepcc="$CC"   am_compiler_list=
34098440cca4Smrg
3410d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3411d1c293acSmrg$as_echo_n "checking dependency style of $depcc... " >&6; }
3412d1c293acSmrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
3413d1c293acSmrg  $as_echo_n "(cached) " >&6
34148440cca4Smrgelse
34158440cca4Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
34168440cca4Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
34178440cca4Smrg  # making bogus files that we don't know about and never remove.  For
34188440cca4Smrg  # instance it was reported that on HP-UX the gcc test will end up
34198440cca4Smrg  # making a dummy file named `D' -- because `-MD' means `put the output
34208440cca4Smrg  # in D'.
34218440cca4Smrg  mkdir conftest.dir
34228440cca4Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
34238440cca4Smrg  # using a relative directory.
34248440cca4Smrg  cp "$am_depcomp" conftest.dir
34258440cca4Smrg  cd conftest.dir
34268440cca4Smrg  # We will build objects and dependencies in a subdirectory because
34278440cca4Smrg  # it helps to detect inapplicable dependency modes.  For instance
34288440cca4Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
34298440cca4Smrg  # side effect of compilation, but ICC will put the dependencies in
34308440cca4Smrg  # the current directory while Tru64 will put them in the object
34318440cca4Smrg  # directory.
34328440cca4Smrg  mkdir sub
34338440cca4Smrg
34348440cca4Smrg  am_cv_CC_dependencies_compiler_type=none
34358440cca4Smrg  if test "$am_compiler_list" = ""; then
34368440cca4Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
34378440cca4Smrg  fi
3438d1c293acSmrg  am__universal=false
3439d1c293acSmrg  case " $depcc " in #(
3440d1c293acSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3441d1c293acSmrg     esac
3442d1c293acSmrg
34438440cca4Smrg  for depmode in $am_compiler_list; do
34448440cca4Smrg    # Setup a source with many dependencies, because some compilers
34458440cca4Smrg    # like to wrap large dependency lists on column 80 (with \), and
34468440cca4Smrg    # we should not choose a depcomp mode which is confused by this.
34478440cca4Smrg    #
34488440cca4Smrg    # We need to recreate these files for each test, as the compiler may
34498440cca4Smrg    # overwrite some of them when testing with obscure command lines.
34508440cca4Smrg    # This happens at least with the AIX C compiler.
34518440cca4Smrg    : > sub/conftest.c
34528440cca4Smrg    for i in 1 2 3 4 5 6; do
34538440cca4Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3454d1c293acSmrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3455d1c293acSmrg      # Solaris 8's {/usr,}/bin/sh.
3456d1c293acSmrg      touch sub/conftst$i.h
34578440cca4Smrg    done
34588440cca4Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
34598440cca4Smrg
3460d1c293acSmrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3461d1c293acSmrg    # mode.  It turns out that the SunPro C++ compiler does not properly
3462d1c293acSmrg    # handle `-M -o', and we need to detect this.  Also, some Intel
3463d1c293acSmrg    # versions had trouble with output in subdirs
3464d1c293acSmrg    am__obj=sub/conftest.${OBJEXT-o}
3465d1c293acSmrg    am__minus_obj="-o $am__obj"
34668440cca4Smrg    case $depmode in
3467d1c293acSmrg    gcc)
3468d1c293acSmrg      # This depmode causes a compiler race in universal mode.
3469d1c293acSmrg      test "$am__universal" = false || continue
3470d1c293acSmrg      ;;
34718440cca4Smrg    nosideeffect)
34728440cca4Smrg      # after this tag, mechanisms are not by side-effect, so they'll
34738440cca4Smrg      # only be used when explicitly requested
34748440cca4Smrg      if test "x$enable_dependency_tracking" = xyes; then
34758440cca4Smrg	continue
34768440cca4Smrg      else
34778440cca4Smrg	break
34788440cca4Smrg      fi
34798440cca4Smrg      ;;
3480d1c293acSmrg    msvisualcpp | msvcmsys)
3481d1c293acSmrg      # This compiler won't grok `-c -o', but also, the minuso test has
3482d1c293acSmrg      # not run yet.  These depmodes are late enough in the game, and
3483d1c293acSmrg      # so weak that their functioning should not be impacted.
3484d1c293acSmrg      am__obj=conftest.${OBJEXT-o}
3485d1c293acSmrg      am__minus_obj=
3486d1c293acSmrg      ;;
34878440cca4Smrg    none) break ;;
34888440cca4Smrg    esac
34898440cca4Smrg    if depmode=$depmode \
3490d1c293acSmrg       source=sub/conftest.c object=$am__obj \
34918440cca4Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3492d1c293acSmrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
34938440cca4Smrg         >/dev/null 2>conftest.err &&
3494d1c293acSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
34958440cca4Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3496d1c293acSmrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
34978440cca4Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
34988440cca4Smrg      # icc doesn't choke on unknown options, it will just issue warnings
3499d1c293acSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
3500d1c293acSmrg      # that says an option was ignored or not supported.
3501d1c293acSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
3502d1c293acSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
3503d1c293acSmrg      # The diagnosis changed in icc 8.0:
3504d1c293acSmrg      #   icc: Command line remark: option '-MP' not supported
3505d1c293acSmrg      if (grep 'ignoring option' conftest.err ||
3506d1c293acSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
35078440cca4Smrg        am_cv_CC_dependencies_compiler_type=$depmode
35088440cca4Smrg        break
35098440cca4Smrg      fi
35108440cca4Smrg    fi
35118440cca4Smrg  done
35128440cca4Smrg
35138440cca4Smrg  cd ..
35148440cca4Smrg  rm -rf conftest.dir
35158440cca4Smrgelse
35168440cca4Smrg  am_cv_CC_dependencies_compiler_type=none
35178440cca4Smrgfi
35188440cca4Smrg
35198440cca4Smrgfi
3520d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3521d1c293acSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
35228440cca4SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
35238440cca4Smrg
3524d1c293acSmrg if
35258440cca4Smrg  test "x$enable_dependency_tracking" != xno \
35268440cca4Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
35278440cca4Smrg  am__fastdepCC_TRUE=
35288440cca4Smrg  am__fastdepCC_FALSE='#'
35298440cca4Smrgelse
35308440cca4Smrg  am__fastdepCC_TRUE='#'
35318440cca4Smrg  am__fastdepCC_FALSE=
35328440cca4Smrgfi
35338440cca4Smrg
35348440cca4Smrg
3535d1c293acSmrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3536d1c293acSmrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3537d1c293acSmrgif ${ac_cv_prog_cc_c99+:} false; then :
3538d1c293acSmrg  $as_echo_n "(cached) " >&6
3539d1c293acSmrgelse
3540d1c293acSmrg  ac_cv_prog_cc_c99=no
3541d1c293acSmrgac_save_CC=$CC
3542d1c293acSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543d1c293acSmrg/* end confdefs.h.  */
3544d1c293acSmrg#include <stdarg.h>
3545d1c293acSmrg#include <stdbool.h>
3546d1c293acSmrg#include <stdlib.h>
3547d1c293acSmrg#include <wchar.h>
3548d1c293acSmrg#include <stdio.h>
3549d1c293acSmrg
3550d1c293acSmrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3551d1c293acSmrg#define debug(...) fprintf (stderr, __VA_ARGS__)
3552d1c293acSmrg#define showlist(...) puts (#__VA_ARGS__)
3553d1c293acSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3554d1c293acSmrgstatic void
3555d1c293acSmrgtest_varargs_macros (void)
3556d1c293acSmrg{
3557d1c293acSmrg  int x = 1234;
3558d1c293acSmrg  int y = 5678;
3559d1c293acSmrg  debug ("Flag");
3560d1c293acSmrg  debug ("X = %d\n", x);
3561d1c293acSmrg  showlist (The first, second, and third items.);
3562d1c293acSmrg  report (x>y, "x is %d but y is %d", x, y);
3563d1c293acSmrg}
3564d1c293acSmrg
3565d1c293acSmrg// Check long long types.
3566d1c293acSmrg#define BIG64 18446744073709551615ull
3567d1c293acSmrg#define BIG32 4294967295ul
3568d1c293acSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3569d1c293acSmrg#if !BIG_OK
3570d1c293acSmrg  your preprocessor is broken;
3571d1c293acSmrg#endif
3572d1c293acSmrg#if BIG_OK
3573d1c293acSmrg#else
3574d1c293acSmrg  your preprocessor is broken;
3575d1c293acSmrg#endif
3576d1c293acSmrgstatic long long int bignum = -9223372036854775807LL;
3577d1c293acSmrgstatic unsigned long long int ubignum = BIG64;
3578d1c293acSmrg
3579d1c293acSmrgstruct incomplete_array
3580d1c293acSmrg{
3581d1c293acSmrg  int datasize;
3582d1c293acSmrg  double data[];
3583d1c293acSmrg};
3584d1c293acSmrg
3585d1c293acSmrgstruct named_init {
3586d1c293acSmrg  int number;
3587d1c293acSmrg  const wchar_t *name;
3588d1c293acSmrg  double average;
3589d1c293acSmrg};
3590d1c293acSmrg
3591d1c293acSmrgtypedef const char *ccp;
3592d1c293acSmrg
3593d1c293acSmrgstatic inline int
3594d1c293acSmrgtest_restrict (ccp restrict text)
3595d1c293acSmrg{
3596d1c293acSmrg  // See if C++-style comments work.
3597d1c293acSmrg  // Iterate through items via the restricted pointer.
3598d1c293acSmrg  // Also check for declarations in for loops.
3599d1c293acSmrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3600d1c293acSmrg    continue;
3601d1c293acSmrg  return 0;
3602d1c293acSmrg}
3603d1c293acSmrg
3604d1c293acSmrg// Check varargs and va_copy.
3605d1c293acSmrgstatic void
3606d1c293acSmrgtest_varargs (const char *format, ...)
3607d1c293acSmrg{
3608d1c293acSmrg  va_list args;
3609d1c293acSmrg  va_start (args, format);
3610d1c293acSmrg  va_list args_copy;
3611d1c293acSmrg  va_copy (args_copy, args);
3612d1c293acSmrg
3613d1c293acSmrg  const char *str;
3614d1c293acSmrg  int number;
3615d1c293acSmrg  float fnumber;
3616d1c293acSmrg
3617d1c293acSmrg  while (*format)
3618d1c293acSmrg    {
3619d1c293acSmrg      switch (*format++)
3620d1c293acSmrg	{
3621d1c293acSmrg	case 's': // string
3622d1c293acSmrg	  str = va_arg (args_copy, const char *);
3623d1c293acSmrg	  break;
3624d1c293acSmrg	case 'd': // int
3625d1c293acSmrg	  number = va_arg (args_copy, int);
3626d1c293acSmrg	  break;
3627d1c293acSmrg	case 'f': // float
3628d1c293acSmrg	  fnumber = va_arg (args_copy, double);
3629d1c293acSmrg	  break;
3630d1c293acSmrg	default:
3631d1c293acSmrg	  break;
3632d1c293acSmrg	}
3633d1c293acSmrg    }
3634d1c293acSmrg  va_end (args_copy);
3635d1c293acSmrg  va_end (args);
3636d1c293acSmrg}
3637d1c293acSmrg
3638d1c293acSmrgint
3639d1c293acSmrgmain ()
3640d1c293acSmrg{
3641d1c293acSmrg
3642d1c293acSmrg  // Check bool.
3643d1c293acSmrg  _Bool success = false;
3644d1c293acSmrg
3645d1c293acSmrg  // Check restrict.
3646d1c293acSmrg  if (test_restrict ("String literal") == 0)
3647d1c293acSmrg    success = true;
3648d1c293acSmrg  char *restrict newvar = "Another string";
3649d1c293acSmrg
3650d1c293acSmrg  // Check varargs.
3651d1c293acSmrg  test_varargs ("s, d' f .", "string", 65, 34.234);
3652d1c293acSmrg  test_varargs_macros ();
3653d1c293acSmrg
3654d1c293acSmrg  // Check flexible array members.
3655d1c293acSmrg  struct incomplete_array *ia =
3656d1c293acSmrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3657d1c293acSmrg  ia->datasize = 10;
3658d1c293acSmrg  for (int i = 0; i < ia->datasize; ++i)
3659d1c293acSmrg    ia->data[i] = i * 1.234;
3660d1c293acSmrg
3661d1c293acSmrg  // Check named initializers.
3662d1c293acSmrg  struct named_init ni = {
3663d1c293acSmrg    .number = 34,
3664d1c293acSmrg    .name = L"Test wide string",
3665d1c293acSmrg    .average = 543.34343,
3666d1c293acSmrg  };
3667d1c293acSmrg
3668d1c293acSmrg  ni.number = 58;
3669d1c293acSmrg
3670d1c293acSmrg  int dynamic_array[ni.number];
3671d1c293acSmrg  dynamic_array[ni.number - 1] = 543;
3672d1c293acSmrg
3673d1c293acSmrg  // work around unused variable warnings
3674d1c293acSmrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3675d1c293acSmrg	  || dynamic_array[ni.number - 1] != 543);
3676d1c293acSmrg
3677d1c293acSmrg  ;
3678d1c293acSmrg  return 0;
3679d1c293acSmrg}
3680d1c293acSmrg_ACEOF
3681d1c293acSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3682d1c293acSmrgdo
3683d1c293acSmrg  CC="$ac_save_CC $ac_arg"
3684d1c293acSmrg  if ac_fn_c_try_compile "$LINENO"; then :
3685d1c293acSmrg  ac_cv_prog_cc_c99=$ac_arg
3686d1c293acSmrgfi
3687d1c293acSmrgrm -f core conftest.err conftest.$ac_objext
3688d1c293acSmrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
3689d1c293acSmrgdone
3690d1c293acSmrgrm -f conftest.$ac_ext
3691d1c293acSmrgCC=$ac_save_CC
3692d1c293acSmrg
3693d1c293acSmrgfi
3694d1c293acSmrg# AC_CACHE_VAL
3695d1c293acSmrgcase "x$ac_cv_prog_cc_c99" in
3696d1c293acSmrg  x)
3697d1c293acSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3698d1c293acSmrg$as_echo "none needed" >&6; } ;;
3699d1c293acSmrg  xno)
3700d1c293acSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3701d1c293acSmrg$as_echo "unsupported" >&6; } ;;
3702d1c293acSmrg  *)
3703d1c293acSmrg    CC="$CC $ac_cv_prog_cc_c99"
3704d1c293acSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3705d1c293acSmrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3706d1c293acSmrgesac
3707d1c293acSmrgif test "x$ac_cv_prog_cc_c99" != xno; then :
3708d1c293acSmrg
3709d1c293acSmrgfi
3710d1c293acSmrg
3711d1c293acSmrg
3712d1c293acSmrg
3713d1c293acSmrgac_ext=c
3714d1c293acSmrgac_cpp='$CPP $CPPFLAGS'
3715d1c293acSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3716d1c293acSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3717d1c293acSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3718d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3719d1c293acSmrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
3720d1c293acSmrg# On Suns, sometimes $CPP names a directory.
3721d1c293acSmrgif test -n "$CPP" && test -d "$CPP"; then
3722d1c293acSmrg  CPP=
3723d1c293acSmrgfi
3724d1c293acSmrgif test -z "$CPP"; then
3725d1c293acSmrg  if ${ac_cv_prog_CPP+:} false; then :
3726d1c293acSmrg  $as_echo_n "(cached) " >&6
3727d1c293acSmrgelse
3728d1c293acSmrg      # Double quotes because CPP needs to be expanded
3729d1c293acSmrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3730d1c293acSmrg    do
3731d1c293acSmrg      ac_preproc_ok=false
3732d1c293acSmrgfor ac_c_preproc_warn_flag in '' yes
3733d1c293acSmrgdo
3734d1c293acSmrg  # Use a header file that comes with gcc, so configuring glibc
3735d1c293acSmrg  # with a fresh cross-compiler works.
3736d1c293acSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3737d1c293acSmrg  # <limits.h> exists even on freestanding compilers.
3738d1c293acSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
3739d1c293acSmrg  # not just through cpp. "Syntax error" is here to catch this case.
3740d1c293acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741d1c293acSmrg/* end confdefs.h.  */
3742d1c293acSmrg#ifdef __STDC__
3743d1c293acSmrg# include <limits.h>
3744d1c293acSmrg#else
3745d1c293acSmrg# include <assert.h>
3746d1c293acSmrg#endif
3747d1c293acSmrg		     Syntax error
3748d1c293acSmrg_ACEOF
3749d1c293acSmrgif ac_fn_c_try_cpp "$LINENO"; then :
3750d1c293acSmrg
3751d1c293acSmrgelse
3752d1c293acSmrg  # Broken: fails on valid input.
3753d1c293acSmrgcontinue
3754d1c293acSmrgfi
3755d1c293acSmrgrm -f conftest.err conftest.i conftest.$ac_ext
3756d1c293acSmrg
3757d1c293acSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
3758d1c293acSmrg  # can be detected and how.
3759d1c293acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760d1c293acSmrg/* end confdefs.h.  */
3761d1c293acSmrg#include <ac_nonexistent.h>
3762d1c293acSmrg_ACEOF
3763d1c293acSmrgif ac_fn_c_try_cpp "$LINENO"; then :
3764d1c293acSmrg  # Broken: success on invalid input.
3765d1c293acSmrgcontinue
3766d1c293acSmrgelse
3767d1c293acSmrg  # Passes both tests.
3768d1c293acSmrgac_preproc_ok=:
3769d1c293acSmrgbreak
3770d1c293acSmrgfi
3771d1c293acSmrgrm -f conftest.err conftest.i conftest.$ac_ext
3772d1c293acSmrg
3773d1c293acSmrgdone
3774d1c293acSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3775d1c293acSmrgrm -f conftest.i conftest.err conftest.$ac_ext
3776d1c293acSmrgif $ac_preproc_ok; then :
3777d1c293acSmrg  break
3778d1c293acSmrgfi
3779d1c293acSmrg
3780d1c293acSmrg    done
3781d1c293acSmrg    ac_cv_prog_CPP=$CPP
3782d1c293acSmrg
3783d1c293acSmrgfi
3784d1c293acSmrg  CPP=$ac_cv_prog_CPP
37858440cca4Smrgelse
3786d1c293acSmrg  ac_cv_prog_CPP=$CPP
3787d1c293acSmrgfi
3788d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3789d1c293acSmrg$as_echo "$CPP" >&6; }
3790d1c293acSmrgac_preproc_ok=false
3791d1c293acSmrgfor ac_c_preproc_warn_flag in '' yes
3792d1c293acSmrgdo
3793d1c293acSmrg  # Use a header file that comes with gcc, so configuring glibc
3794d1c293acSmrg  # with a fresh cross-compiler works.
3795d1c293acSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3796d1c293acSmrg  # <limits.h> exists even on freestanding compilers.
3797d1c293acSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
3798d1c293acSmrg  # not just through cpp. "Syntax error" is here to catch this case.
3799d1c293acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800d1c293acSmrg/* end confdefs.h.  */
3801d1c293acSmrg#ifdef __STDC__
3802d1c293acSmrg# include <limits.h>
3803d1c293acSmrg#else
3804d1c293acSmrg# include <assert.h>
3805d1c293acSmrg#endif
3806d1c293acSmrg		     Syntax error
3807d1c293acSmrg_ACEOF
3808d1c293acSmrgif ac_fn_c_try_cpp "$LINENO"; then :
3809d1c293acSmrg
3810d1c293acSmrgelse
3811d1c293acSmrg  # Broken: fails on valid input.
3812d1c293acSmrgcontinue
3813d1c293acSmrgfi
3814d1c293acSmrgrm -f conftest.err conftest.i conftest.$ac_ext
3815d1c293acSmrg
3816d1c293acSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
3817d1c293acSmrg  # can be detected and how.
3818d1c293acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819d1c293acSmrg/* end confdefs.h.  */
3820d1c293acSmrg#include <ac_nonexistent.h>
3821d1c293acSmrg_ACEOF
3822d1c293acSmrgif ac_fn_c_try_cpp "$LINENO"; then :
3823d1c293acSmrg  # Broken: success on invalid input.
3824d1c293acSmrgcontinue
3825d1c293acSmrgelse
3826d1c293acSmrg  # Passes both tests.
3827d1c293acSmrgac_preproc_ok=:
3828d1c293acSmrgbreak
3829d1c293acSmrgfi
3830d1c293acSmrgrm -f conftest.err conftest.i conftest.$ac_ext
3831d1c293acSmrg
3832d1c293acSmrgdone
3833d1c293acSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3834d1c293acSmrgrm -f conftest.i conftest.err conftest.$ac_ext
3835d1c293acSmrgif $ac_preproc_ok; then :
3836d1c293acSmrg
3837d1c293acSmrgelse
3838d1c293acSmrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3839d1c293acSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3840d1c293acSmrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3841d1c293acSmrgSee \`config.log' for more details" "$LINENO" 5; }
3842d1c293acSmrgfi
3843d1c293acSmrg
3844d1c293acSmrgac_ext=c
3845d1c293acSmrgac_cpp='$CPP $CPPFLAGS'
3846d1c293acSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3847d1c293acSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3848d1c293acSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3849d1c293acSmrg
3850d1c293acSmrg
3851d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3852d1c293acSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3853d1c293acSmrgif ${ac_cv_path_GREP+:} false; then :
3854d1c293acSmrg  $as_echo_n "(cached) " >&6
3855d1c293acSmrgelse
3856d1c293acSmrg  if test -z "$GREP"; then
3857d1c293acSmrg  ac_path_GREP_found=false
3858d1c293acSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
38598440cca4Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860d1c293acSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
38618440cca4Smrgdo
38628440cca4Smrg  IFS=$as_save_IFS
38638440cca4Smrg  test -z "$as_dir" && as_dir=.
3864d1c293acSmrg    for ac_prog in grep ggrep; do
3865d1c293acSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3866d1c293acSmrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3867d1c293acSmrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3868d1c293acSmrg# Check for GNU ac_path_GREP and select it if it is found.
3869d1c293acSmrg  # Check for GNU $ac_path_GREP
3870d1c293acSmrgcase `"$ac_path_GREP" --version 2>&1` in
3871d1c293acSmrg*GNU*)
3872d1c293acSmrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3873d1c293acSmrg*)
3874d1c293acSmrg  ac_count=0
3875d1c293acSmrg  $as_echo_n 0123456789 >"conftest.in"
3876d1c293acSmrg  while :
3877d1c293acSmrg  do
3878d1c293acSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
3879d1c293acSmrg    mv "conftest.tmp" "conftest.in"
3880d1c293acSmrg    cp "conftest.in" "conftest.nl"
3881d1c293acSmrg    $as_echo 'GREP' >> "conftest.nl"
3882d1c293acSmrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3883d1c293acSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3884d1c293acSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
3885d1c293acSmrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3886d1c293acSmrg      # Best one so far, save it but keep looking for a better one
3887d1c293acSmrg      ac_cv_path_GREP="$ac_path_GREP"
3888d1c293acSmrg      ac_path_GREP_max=$ac_count
3889d1c293acSmrg    fi
3890d1c293acSmrg    # 10*(2^10) chars as input seems more than enough
3891d1c293acSmrg    test $ac_count -gt 10 && break
3892d1c293acSmrg  done
3893d1c293acSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
38948440cca4Smrgesac
38958440cca4Smrg
3896d1c293acSmrg      $ac_path_GREP_found && break 3
3897d1c293acSmrg    done
3898d1c293acSmrg  done
3899d1c293acSmrg  done
3900d1c293acSmrgIFS=$as_save_IFS
3901d1c293acSmrg  if test -z "$ac_cv_path_GREP"; then
3902d1c293acSmrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3903d1c293acSmrg  fi
3904d1c293acSmrgelse
3905d1c293acSmrg  ac_cv_path_GREP=$GREP
3906d1c293acSmrgfi
39078440cca4Smrg
39088440cca4Smrgfi
3909d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3910d1c293acSmrg$as_echo "$ac_cv_path_GREP" >&6; }
3911d1c293acSmrg GREP="$ac_cv_path_GREP"
3912d1c293acSmrg
3913d1c293acSmrg
3914d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3915d1c293acSmrg$as_echo_n "checking for egrep... " >&6; }
3916d1c293acSmrgif ${ac_cv_path_EGREP+:} false; then :
3917d1c293acSmrg  $as_echo_n "(cached) " >&6
3918d1c293acSmrgelse
3919d1c293acSmrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3920d1c293acSmrg   then ac_cv_path_EGREP="$GREP -E"
3921d1c293acSmrg   else
3922d1c293acSmrg     if test -z "$EGREP"; then
3923d1c293acSmrg  ac_path_EGREP_found=false
3924d1c293acSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
3925d1c293acSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926d1c293acSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3927d1c293acSmrgdo
3928d1c293acSmrg  IFS=$as_save_IFS
3929d1c293acSmrg  test -z "$as_dir" && as_dir=.
3930d1c293acSmrg    for ac_prog in egrep; do
3931d1c293acSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3932d1c293acSmrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3933d1c293acSmrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3934d1c293acSmrg# Check for GNU ac_path_EGREP and select it if it is found.
3935d1c293acSmrg  # Check for GNU $ac_path_EGREP
3936d1c293acSmrgcase `"$ac_path_EGREP" --version 2>&1` in
3937d1c293acSmrg*GNU*)
3938d1c293acSmrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3939d1c293acSmrg*)
3940d1c293acSmrg  ac_count=0
3941d1c293acSmrg  $as_echo_n 0123456789 >"conftest.in"
3942d1c293acSmrg  while :
3943d1c293acSmrg  do
3944d1c293acSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
3945d1c293acSmrg    mv "conftest.tmp" "conftest.in"
3946d1c293acSmrg    cp "conftest.in" "conftest.nl"
3947d1c293acSmrg    $as_echo 'EGREP' >> "conftest.nl"
3948d1c293acSmrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3949d1c293acSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3950d1c293acSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
3951d1c293acSmrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3952d1c293acSmrg      # Best one so far, save it but keep looking for a better one
3953d1c293acSmrg      ac_cv_path_EGREP="$ac_path_EGREP"
3954d1c293acSmrg      ac_path_EGREP_max=$ac_count
3955d1c293acSmrg    fi
3956d1c293acSmrg    # 10*(2^10) chars as input seems more than enough
3957d1c293acSmrg    test $ac_count -gt 10 && break
3958d1c293acSmrg  done
3959d1c293acSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3960d1c293acSmrgesac
3961d1c293acSmrg
3962d1c293acSmrg      $ac_path_EGREP_found && break 3
3963d1c293acSmrg    done
3964d1c293acSmrg  done
3965d1c293acSmrg  done
3966d1c293acSmrgIFS=$as_save_IFS
3967d1c293acSmrg  if test -z "$ac_cv_path_EGREP"; then
3968d1c293acSmrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
39698440cca4Smrg  fi
3970d1c293acSmrgelse
3971d1c293acSmrg  ac_cv_path_EGREP=$EGREP
39728440cca4Smrgfi
39738440cca4Smrg
3974d1c293acSmrg   fi
3975d1c293acSmrgfi
3976d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3977d1c293acSmrg$as_echo "$ac_cv_path_EGREP" >&6; }
3978d1c293acSmrg EGREP="$ac_cv_path_EGREP"
39798440cca4Smrg
39808440cca4Smrg
3981d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3982d1c293acSmrg$as_echo_n "checking for ANSI C header files... " >&6; }
3983d1c293acSmrgif ${ac_cv_header_stdc+:} false; then :
3984d1c293acSmrg  $as_echo_n "(cached) " >&6
3985d1c293acSmrgelse
3986d1c293acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987d1c293acSmrg/* end confdefs.h.  */
3988d1c293acSmrg#include <stdlib.h>
3989d1c293acSmrg#include <stdarg.h>
3990d1c293acSmrg#include <string.h>
3991d1c293acSmrg#include <float.h>
3992d1c293acSmrg
3993d1c293acSmrgint
3994d1c293acSmrgmain ()
3995d1c293acSmrg{
3996d1c293acSmrg
3997d1c293acSmrg  ;
3998d1c293acSmrg  return 0;
3999d1c293acSmrg}
4000d1c293acSmrg_ACEOF
4001d1c293acSmrgif ac_fn_c_try_compile "$LINENO"; then :
4002d1c293acSmrg  ac_cv_header_stdc=yes
4003d1c293acSmrgelse
4004d1c293acSmrg  ac_cv_header_stdc=no
4005d1c293acSmrgfi
4006d1c293acSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4007d1c293acSmrg
4008d1c293acSmrgif test $ac_cv_header_stdc = yes; then
4009d1c293acSmrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4010d1c293acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011d1c293acSmrg/* end confdefs.h.  */
4012d1c293acSmrg#include <string.h>
4013d1c293acSmrg
4014d1c293acSmrg_ACEOF
4015d1c293acSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4016d1c293acSmrg  $EGREP "memchr" >/dev/null 2>&1; then :
4017d1c293acSmrg
4018d1c293acSmrgelse
4019d1c293acSmrg  ac_cv_header_stdc=no
4020d1c293acSmrgfi
4021d1c293acSmrgrm -f conftest*
4022d1c293acSmrg
4023d1c293acSmrgfi
4024d1c293acSmrg
4025d1c293acSmrgif test $ac_cv_header_stdc = yes; then
4026d1c293acSmrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4027d1c293acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028d1c293acSmrg/* end confdefs.h.  */
4029d1c293acSmrg#include <stdlib.h>
4030d1c293acSmrg
4031d1c293acSmrg_ACEOF
4032d1c293acSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4033d1c293acSmrg  $EGREP "free" >/dev/null 2>&1; then :
4034d1c293acSmrg
4035d1c293acSmrgelse
4036d1c293acSmrg  ac_cv_header_stdc=no
4037d1c293acSmrgfi
4038d1c293acSmrgrm -f conftest*
4039d1c293acSmrg
4040d1c293acSmrgfi
4041d1c293acSmrg
4042d1c293acSmrgif test $ac_cv_header_stdc = yes; then
4043d1c293acSmrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4044d1c293acSmrg  if test "$cross_compiling" = yes; then :
4045d1c293acSmrg  :
4046d1c293acSmrgelse
4047d1c293acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048d1c293acSmrg/* end confdefs.h.  */
4049d1c293acSmrg#include <ctype.h>
4050d1c293acSmrg#include <stdlib.h>
4051d1c293acSmrg#if ((' ' & 0x0FF) == 0x020)
4052d1c293acSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4053d1c293acSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4054d1c293acSmrg#else
4055d1c293acSmrg# define ISLOWER(c) \
4056d1c293acSmrg		   (('a' <= (c) && (c) <= 'i') \
4057d1c293acSmrg		     || ('j' <= (c) && (c) <= 'r') \
4058d1c293acSmrg		     || ('s' <= (c) && (c) <= 'z'))
4059d1c293acSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4060d1c293acSmrg#endif
4061d1c293acSmrg
4062d1c293acSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4063d1c293acSmrgint
4064d1c293acSmrgmain ()
4065d1c293acSmrg{
4066d1c293acSmrg  int i;
4067d1c293acSmrg  for (i = 0; i < 256; i++)
4068d1c293acSmrg    if (XOR (islower (i), ISLOWER (i))
4069d1c293acSmrg	|| toupper (i) != TOUPPER (i))
4070d1c293acSmrg      return 2;
4071d1c293acSmrg  return 0;
4072d1c293acSmrg}
4073d1c293acSmrg_ACEOF
4074d1c293acSmrgif ac_fn_c_try_run "$LINENO"; then :
4075d1c293acSmrg
4076d1c293acSmrgelse
4077d1c293acSmrg  ac_cv_header_stdc=no
4078d1c293acSmrgfi
4079d1c293acSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4080d1c293acSmrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
4081d1c293acSmrgfi
4082d1c293acSmrg
4083d1c293acSmrgfi
4084d1c293acSmrgfi
4085d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4086d1c293acSmrg$as_echo "$ac_cv_header_stdc" >&6; }
4087d1c293acSmrgif test $ac_cv_header_stdc = yes; then
4088d1c293acSmrg
4089d1c293acSmrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4090d1c293acSmrg
4091d1c293acSmrgfi
4092d1c293acSmrg
4093d1c293acSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4094d1c293acSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4095d1c293acSmrg		  inttypes.h stdint.h unistd.h
4096d1c293acSmrgdo :
4097d1c293acSmrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4098d1c293acSmrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4099d1c293acSmrg"
4100d1c293acSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4101d1c293acSmrg  cat >>confdefs.h <<_ACEOF
4102d1c293acSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4103d1c293acSmrg_ACEOF
4104d1c293acSmrg
4105d1c293acSmrgfi
4106d1c293acSmrg
4107d1c293acSmrgdone
41088440cca4Smrg
41098440cca4Smrg
41108440cca4Smrg
41118440cca4Smrg
41128440cca4Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
41138440cca4Smrg	if test -n "$ac_tool_prefix"; then
41148440cca4Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
41158440cca4Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4116d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4117d1c293acSmrg$as_echo_n "checking for $ac_word... " >&6; }
4118d1c293acSmrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
4119d1c293acSmrg  $as_echo_n "(cached) " >&6
41208440cca4Smrgelse
41218440cca4Smrg  case $PKG_CONFIG in
41228440cca4Smrg  [\\/]* | ?:[\\/]*)
41238440cca4Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41248440cca4Smrg  ;;
41258440cca4Smrg  *)
41268440cca4Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41278440cca4Smrgfor as_dir in $PATH
41288440cca4Smrgdo
41298440cca4Smrg  IFS=$as_save_IFS
41308440cca4Smrg  test -z "$as_dir" && as_dir=.
4131d1c293acSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4132d1c293acSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
41338440cca4Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4134d1c293acSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
41358440cca4Smrg    break 2
41368440cca4Smrg  fi
41378440cca4Smrgdone
4138d1c293acSmrg  done
4139d1c293acSmrgIFS=$as_save_IFS
41408440cca4Smrg
41418440cca4Smrg  ;;
41428440cca4Smrgesac
41438440cca4Smrgfi
41448440cca4SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
41458440cca4Smrgif test -n "$PKG_CONFIG"; then
4146d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4147d1c293acSmrg$as_echo "$PKG_CONFIG" >&6; }
41488440cca4Smrgelse
4149d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4150d1c293acSmrg$as_echo "no" >&6; }
41518440cca4Smrgfi
41528440cca4Smrg
4153d1c293acSmrg
41548440cca4Smrgfi
41558440cca4Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
41568440cca4Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
41578440cca4Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
41588440cca4Smrgset dummy pkg-config; ac_word=$2
4159d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4160d1c293acSmrg$as_echo_n "checking for $ac_word... " >&6; }
4161d1c293acSmrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4162d1c293acSmrg  $as_echo_n "(cached) " >&6
41638440cca4Smrgelse
41648440cca4Smrg  case $ac_pt_PKG_CONFIG in
41658440cca4Smrg  [\\/]* | ?:[\\/]*)
41668440cca4Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
41678440cca4Smrg  ;;
41688440cca4Smrg  *)
41698440cca4Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41708440cca4Smrgfor as_dir in $PATH
41718440cca4Smrgdo
41728440cca4Smrg  IFS=$as_save_IFS
41738440cca4Smrg  test -z "$as_dir" && as_dir=.
4174d1c293acSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4175d1c293acSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
41768440cca4Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4177d1c293acSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
41788440cca4Smrg    break 2
41798440cca4Smrg  fi
41808440cca4Smrgdone
4181d1c293acSmrg  done
4182d1c293acSmrgIFS=$as_save_IFS
41838440cca4Smrg
41848440cca4Smrg  ;;
41858440cca4Smrgesac
41868440cca4Smrgfi
41878440cca4Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
41888440cca4Smrgif test -n "$ac_pt_PKG_CONFIG"; then
4189d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4190d1c293acSmrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
41918440cca4Smrgelse
4192d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4193d1c293acSmrg$as_echo "no" >&6; }
41948440cca4Smrgfi
41958440cca4Smrg
4196d1c293acSmrg  if test "x$ac_pt_PKG_CONFIG" = x; then
4197d1c293acSmrg    PKG_CONFIG=""
4198d1c293acSmrg  else
4199d1c293acSmrg    case $cross_compiling:$ac_tool_warned in
4200d1c293acSmrgyes:)
4201d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4202d1c293acSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4203d1c293acSmrgac_tool_warned=yes ;;
4204d1c293acSmrgesac
4205d1c293acSmrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
4206d1c293acSmrg  fi
42078440cca4Smrgelse
42088440cca4Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
42098440cca4Smrgfi
42108440cca4Smrg
42118440cca4Smrgfi
42128440cca4Smrgif test -n "$PKG_CONFIG"; then
42138440cca4Smrg	_pkg_min_version=0.9.0
4214d1c293acSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4215d1c293acSmrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
42168440cca4Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4217d1c293acSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4218d1c293acSmrg$as_echo "yes" >&6; }
42198440cca4Smrg	else
4220d1c293acSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4221d1c293acSmrg$as_echo "no" >&6; }
42228440cca4Smrg		PKG_CONFIG=""
42238440cca4Smrg	fi
42248440cca4Smrg
42258440cca4Smrgfi
4226d1c293acSmrg# Make sure we can run config.sub.
4227d1c293acSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4228d1c293acSmrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
42298440cca4Smrg
4230d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4231d1c293acSmrg$as_echo_n "checking build system type... " >&6; }
4232d1c293acSmrgif ${ac_cv_build+:} false; then :
4233d1c293acSmrg  $as_echo_n "(cached) " >&6
42348440cca4Smrgelse
4235d1c293acSmrg  ac_build_alias=$build_alias
4236d1c293acSmrgtest "x$ac_build_alias" = x &&
4237d1c293acSmrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4238d1c293acSmrgtest "x$ac_build_alias" = x &&
4239d1c293acSmrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4240d1c293acSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4241d1c293acSmrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4242d1c293acSmrg
4243d1c293acSmrgfi
4244d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4245d1c293acSmrg$as_echo "$ac_cv_build" >&6; }
4246d1c293acSmrgcase $ac_cv_build in
4247d1c293acSmrg*-*-*) ;;
4248d1c293acSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4249d1c293acSmrgesac
4250d1c293acSmrgbuild=$ac_cv_build
4251d1c293acSmrgac_save_IFS=$IFS; IFS='-'
4252d1c293acSmrgset x $ac_cv_build
4253d1c293acSmrgshift
4254d1c293acSmrgbuild_cpu=$1
4255d1c293acSmrgbuild_vendor=$2
4256d1c293acSmrgshift; shift
4257d1c293acSmrg# Remember, the first character of IFS is used to create $*,
4258d1c293acSmrg# except with old shells:
4259d1c293acSmrgbuild_os=$*
4260d1c293acSmrgIFS=$ac_save_IFS
4261d1c293acSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4262d1c293acSmrg
4263d1c293acSmrg
4264d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4265d1c293acSmrg$as_echo_n "checking host system type... " >&6; }
4266d1c293acSmrgif ${ac_cv_host+:} false; then :
4267d1c293acSmrg  $as_echo_n "(cached) " >&6
4268d1c293acSmrgelse
4269d1c293acSmrg  if test "x$host_alias" = x; then
4270d1c293acSmrg  ac_cv_host=$ac_cv_build
4271d1c293acSmrgelse
4272d1c293acSmrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4273d1c293acSmrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4274d1c293acSmrgfi
4275d1c293acSmrg
42768440cca4Smrgfi
4277d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4278d1c293acSmrg$as_echo "$ac_cv_host" >&6; }
4279d1c293acSmrgcase $ac_cv_host in
4280d1c293acSmrg*-*-*) ;;
4281d1c293acSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4282d1c293acSmrgesac
4283d1c293acSmrghost=$ac_cv_host
4284d1c293acSmrgac_save_IFS=$IFS; IFS='-'
4285d1c293acSmrgset x $ac_cv_host
4286d1c293acSmrgshift
4287d1c293acSmrghost_cpu=$1
4288d1c293acSmrghost_vendor=$2
4289d1c293acSmrgshift; shift
4290d1c293acSmrg# Remember, the first character of IFS is used to create $*,
4291d1c293acSmrg# except with old shells:
4292d1c293acSmrghost_os=$*
4293d1c293acSmrgIFS=$ac_save_IFS
4294d1c293acSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4295d1c293acSmrg
4296d1c293acSmrg
4297d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4298d1c293acSmrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4299d1c293acSmrgif ${ac_cv_path_SED+:} false; then :
4300d1c293acSmrg  $as_echo_n "(cached) " >&6
4301d1c293acSmrgelse
4302d1c293acSmrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4303d1c293acSmrg     for ac_i in 1 2 3 4 5 6 7; do
4304d1c293acSmrg       ac_script="$ac_script$as_nl$ac_script"
4305d1c293acSmrg     done
4306d1c293acSmrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4307d1c293acSmrg     { ac_script=; unset ac_script;}
4308d1c293acSmrg     if test -z "$SED"; then
4309d1c293acSmrg  ac_path_SED_found=false
4310d1c293acSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
4311d1c293acSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312d1c293acSmrgfor as_dir in $PATH
4313d1c293acSmrgdo
4314d1c293acSmrg  IFS=$as_save_IFS
4315d1c293acSmrg  test -z "$as_dir" && as_dir=.
4316d1c293acSmrg    for ac_prog in sed gsed; do
4317d1c293acSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4318d1c293acSmrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4319d1c293acSmrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4320d1c293acSmrg# Check for GNU ac_path_SED and select it if it is found.
4321d1c293acSmrg  # Check for GNU $ac_path_SED
4322d1c293acSmrgcase `"$ac_path_SED" --version 2>&1` in
4323d1c293acSmrg*GNU*)
4324d1c293acSmrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4325d1c293acSmrg*)
4326d1c293acSmrg  ac_count=0
4327d1c293acSmrg  $as_echo_n 0123456789 >"conftest.in"
4328d1c293acSmrg  while :
4329d1c293acSmrg  do
4330d1c293acSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4331d1c293acSmrg    mv "conftest.tmp" "conftest.in"
4332d1c293acSmrg    cp "conftest.in" "conftest.nl"
4333d1c293acSmrg    $as_echo '' >> "conftest.nl"
4334d1c293acSmrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4335d1c293acSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4336d1c293acSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4337d1c293acSmrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
4338d1c293acSmrg      # Best one so far, save it but keep looking for a better one
4339d1c293acSmrg      ac_cv_path_SED="$ac_path_SED"
4340d1c293acSmrg      ac_path_SED_max=$ac_count
43418440cca4Smrg    fi
4342d1c293acSmrg    # 10*(2^10) chars as input seems more than enough
4343d1c293acSmrg    test $ac_count -gt 10 && break
4344d1c293acSmrg  done
4345d1c293acSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4346d1c293acSmrgesac
4347d1c293acSmrg
4348d1c293acSmrg      $ac_path_SED_found && break 3
4349d1c293acSmrg    done
4350d1c293acSmrg  done
4351d1c293acSmrg  done
4352d1c293acSmrgIFS=$as_save_IFS
4353d1c293acSmrg  if test -z "$ac_cv_path_SED"; then
4354d1c293acSmrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4355d1c293acSmrg  fi
43568440cca4Smrgelse
4357d1c293acSmrg  ac_cv_path_SED=$SED
43588440cca4Smrgfi
4359d1c293acSmrg
4360d1c293acSmrgfi
4361d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4362d1c293acSmrg$as_echo "$ac_cv_path_SED" >&6; }
4363d1c293acSmrg SED="$ac_cv_path_SED"
4364d1c293acSmrg  rm -f conftest.sed
4365d1c293acSmrg
4366d1c293acSmrg
4367d1c293acSmrg
4368d1c293acSmrg
4369d1c293acSmrg
4370d1c293acSmrgif  test "x$GCC" = xyes ; then
4371d1c293acSmrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4372d1c293acSmrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4373d1c293acSmrg-Wbad-function-cast -Wformat=2"
4374d1c293acSmrg    case `$CC -dumpversion` in
4375d1c293acSmrg    3.4.* | 4.*)
4376d1c293acSmrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4377d1c293acSmrg	;;
4378d1c293acSmrg    esac
43798440cca4Smrgelse
4380d1c293acSmrg    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4381d1c293acSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4382d1c293acSmrg  SUNCC="yes"
4383d1c293acSmrgelse
4384d1c293acSmrg  SUNCC="no"
43858440cca4Smrgfi
4386d1c293acSmrg
4387d1c293acSmrg    if test "x$SUNCC" = "xyes"; then
4388d1c293acSmrg	CWARNFLAGS="-v"
43898440cca4Smrg    fi
43908440cca4Smrgfi
43918440cca4Smrg
43928440cca4Smrg
43938440cca4Smrg
4394d1c293acSmrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
43958440cca4Smrg
4396d1c293acSmrg
4397d1c293acSmrg
4398d1c293acSmrg# Check whether --enable-strict-compilation was given.
4399d1c293acSmrgif test "${enable_strict_compilation+set}" = set; then :
4400d1c293acSmrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
44018440cca4Smrgelse
4402d1c293acSmrg  STRICT_COMPILE=no
4403d1c293acSmrgfi
4404d1c293acSmrg
4405d1c293acSmrgif test "x$STRICT_COMPILE" = "xyes"; then
4406d1c293acSmrg	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4407d1c293acSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4408d1c293acSmrg  SUNCC="yes"
4409d1c293acSmrgelse
4410d1c293acSmrg  SUNCC="no"
4411d1c293acSmrgfi
4412d1c293acSmrg
4413d1c293acSmrg	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4414d1c293acSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4415d1c293acSmrg  INTELCC="yes"
4416d1c293acSmrgelse
4417d1c293acSmrg  INTELCC="no"
44188440cca4Smrgfi
44198440cca4Smrg
4420d1c293acSmrg	if test "x$GCC" = xyes ; then
4421d1c293acSmrg		STRICT_CFLAGS="-pedantic -Werror"
4422d1c293acSmrg	elif test "x$SUNCC" = "xyes"; then
4423d1c293acSmrg		STRICT_CFLAGS="-errwarn"
4424d1c293acSmrg    elif test "x$INTELCC" = "xyes"; then
4425d1c293acSmrg		STRICT_CFLAGS="-Werror"
4426d1c293acSmrg	fi
4427d1c293acSmrgfi
4428d1c293acSmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
44298440cca4Smrg
44308440cca4Smrg
44318440cca4Smrg
44328440cca4Smrg
4433d1c293acSmrgcat >>confdefs.h <<_ACEOF
4434d1c293acSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4435d1c293acSmrg_ACEOF
44368440cca4Smrg
4437d1c293acSmrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4438d1c293acSmrg	if test "x$PVM" = "x"; then
4439d1c293acSmrg		PVM="0"
4440d1c293acSmrg	fi
44418440cca4Smrg
4442d1c293acSmrgcat >>confdefs.h <<_ACEOF
4443d1c293acSmrg#define PACKAGE_VERSION_MINOR $PVM
4444d1c293acSmrg_ACEOF
44458440cca4Smrg
4446d1c293acSmrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4447d1c293acSmrg	if test "x$PVP" = "x"; then
4448d1c293acSmrg		PVP="0"
4449d1c293acSmrg	fi
44508440cca4Smrg
4451d1c293acSmrgcat >>confdefs.h <<_ACEOF
4452d1c293acSmrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
4453d1c293acSmrg_ACEOF
44548440cca4Smrg
44558440cca4Smrg
44568440cca4Smrg
4457d1c293acSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4458d1c293acSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4459d1c293acSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4460d1c293acSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
44618440cca4Smrg
44628440cca4Smrg
44638440cca4Smrg
44648440cca4Smrg
4465d1c293acSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4466d1c293acSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4467d1c293acSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4468d1c293acSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4469d1c293acSmrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
44708440cca4Smrg
44718440cca4Smrg
44728440cca4Smrg
44738440cca4Smrg
44748440cca4Smrg
44758440cca4Smrg
44768440cca4Smrgif test x$APP_MAN_SUFFIX = x    ; then
4477d1c293acSmrg    APP_MAN_SUFFIX=1
44788440cca4Smrgfi
44798440cca4Smrgif test x$APP_MAN_DIR = x    ; then
4480d1c293acSmrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
44818440cca4Smrgfi
44828440cca4Smrg
44838440cca4Smrgif test x$LIB_MAN_SUFFIX = x    ; then
4484d1c293acSmrg    LIB_MAN_SUFFIX=3
44858440cca4Smrgfi
44868440cca4Smrgif test x$LIB_MAN_DIR = x    ; then
4487d1c293acSmrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
44888440cca4Smrgfi
44898440cca4Smrg
44908440cca4Smrgif test x$FILE_MAN_SUFFIX = x    ; then
44918440cca4Smrg    case $host_os in
44928440cca4Smrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
44938440cca4Smrg	*)		FILE_MAN_SUFFIX=5  ;;
44948440cca4Smrg    esac
44958440cca4Smrgfi
44968440cca4Smrgif test x$FILE_MAN_DIR = x    ; then
4497d1c293acSmrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
44988440cca4Smrgfi
44998440cca4Smrg
45008440cca4Smrgif test x$MISC_MAN_SUFFIX = x    ; then
45018440cca4Smrg    case $host_os in
45028440cca4Smrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
45038440cca4Smrg	*)		MISC_MAN_SUFFIX=7  ;;
45048440cca4Smrg    esac
45058440cca4Smrgfi
45068440cca4Smrgif test x$MISC_MAN_DIR = x    ; then
4507d1c293acSmrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
45088440cca4Smrgfi
45098440cca4Smrg
45108440cca4Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
45118440cca4Smrg    case $host_os in
45128440cca4Smrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
45138440cca4Smrg	*)		DRIVER_MAN_SUFFIX=4  ;;
45148440cca4Smrg    esac
45158440cca4Smrgfi
45168440cca4Smrgif test x$DRIVER_MAN_DIR = x    ; then
4517d1c293acSmrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
45188440cca4Smrgfi
45198440cca4Smrg
45208440cca4Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
45218440cca4Smrg    case $host_os in
45228440cca4Smrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
45238440cca4Smrg	*)		ADMIN_MAN_SUFFIX=8  ;;
45248440cca4Smrg    esac
45258440cca4Smrgfi
45268440cca4Smrgif test x$ADMIN_MAN_DIR = x    ; then
45278440cca4Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
45288440cca4Smrgfi
45298440cca4Smrg
45308440cca4Smrg
45318440cca4Smrg
45328440cca4Smrg
45338440cca4Smrg
45348440cca4Smrg
45358440cca4Smrg
45368440cca4Smrg
45378440cca4Smrg
45388440cca4Smrg
45398440cca4Smrg
45408440cca4Smrg
45418440cca4Smrg
45428440cca4Smrg
45438440cca4Smrg
4544d1c293acSmrgXORG_MAN_PAGE="X Version 11"
4545d1c293acSmrg
4546d1c293acSmrgMAN_SUBSTS="\
4547d1c293acSmrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4548d1c293acSmrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4549d1c293acSmrg	-e 's|__xservername__|Xorg|g' \
4550d1c293acSmrg	-e 's|__xconfigfile__|xorg.conf|g' \
4551d1c293acSmrg	-e 's|__projectroot__|\$(prefix)|g' \
4552d1c293acSmrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
4553d1c293acSmrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4554d1c293acSmrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4555d1c293acSmrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4556d1c293acSmrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4557d1c293acSmrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4558d1c293acSmrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4559d1c293acSmrg
4560d1c293acSmrg
4561d1c293acSmrg
4562d1c293acSmrg# Check whether --enable-silent-rules was given.
4563d1c293acSmrgif test "${enable_silent_rules+set}" = set; then :
4564d1c293acSmrg  enableval=$enable_silent_rules;
4565d1c293acSmrgfi
4566d1c293acSmrg
4567d1c293acSmrgcase $enable_silent_rules in
4568d1c293acSmrgyes) AM_DEFAULT_VERBOSITY=0;;
4569d1c293acSmrgno)  AM_DEFAULT_VERBOSITY=1;;
4570d1c293acSmrg*)   AM_DEFAULT_VERBOSITY=0;;
4571d1c293acSmrgesac
4572d1c293acSmrgAM_BACKSLASH='\'
4573d1c293acSmrg
4574d1c293acSmrg
4575d1c293acSmrgac_config_headers="$ac_config_headers config.h"
4576d1c293acSmrg
45778440cca4Smrg
4578d1c293acSmrg# Checks for pkg-config packages
45798440cca4Smrg
4580d1c293acSmrgpkg_failed=no
4581d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSTDCMAP" >&5
4582d1c293acSmrg$as_echo_n "checking for XSTDCMAP... " >&6; }
4583d1c293acSmrg
4584d1c293acSmrgif test -n "$XSTDCMAP_CFLAGS"; then
4585d1c293acSmrg    pkg_cv_XSTDCMAP_CFLAGS="$XSTDCMAP_CFLAGS"
4586d1c293acSmrg elif test -n "$PKG_CONFIG"; then
4587d1c293acSmrg    if test -n "$PKG_CONFIG" && \
4588d1c293acSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmu x11\""; } >&5
4589d1c293acSmrg  ($PKG_CONFIG --exists --print-errors "xmu x11") 2>&5
4590d1c293acSmrg  ac_status=$?
4591d1c293acSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4592d1c293acSmrg  test $ac_status = 0; }; then
4593d1c293acSmrg  pkg_cv_XSTDCMAP_CFLAGS=`$PKG_CONFIG --cflags "xmu x11" 2>/dev/null`
45948440cca4Smrgelse
4595d1c293acSmrg  pkg_failed=yes
4596d1c293acSmrgfi
4597d1c293acSmrg else
4598d1c293acSmrg    pkg_failed=untried
4599d1c293acSmrgfi
4600d1c293acSmrgif test -n "$XSTDCMAP_LIBS"; then
4601d1c293acSmrg    pkg_cv_XSTDCMAP_LIBS="$XSTDCMAP_LIBS"
4602d1c293acSmrg elif test -n "$PKG_CONFIG"; then
4603d1c293acSmrg    if test -n "$PKG_CONFIG" && \
4604d1c293acSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmu x11\""; } >&5
4605d1c293acSmrg  ($PKG_CONFIG --exists --print-errors "xmu x11") 2>&5
4606d1c293acSmrg  ac_status=$?
4607d1c293acSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4608d1c293acSmrg  test $ac_status = 0; }; then
4609d1c293acSmrg  pkg_cv_XSTDCMAP_LIBS=`$PKG_CONFIG --libs "xmu x11" 2>/dev/null`
4610d1c293acSmrgelse
4611d1c293acSmrg  pkg_failed=yes
4612d1c293acSmrgfi
4613d1c293acSmrg else
4614d1c293acSmrg    pkg_failed=untried
4615d1c293acSmrgfi
4616d1c293acSmrg
4617d1c293acSmrg
4618d1c293acSmrg
4619d1c293acSmrgif test $pkg_failed = yes; then
4620d1c293acSmrg
4621d1c293acSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4622d1c293acSmrg        _pkg_short_errors_supported=yes
4623d1c293acSmrgelse
4624d1c293acSmrg        _pkg_short_errors_supported=no
4625d1c293acSmrgfi
4626d1c293acSmrg        if test $_pkg_short_errors_supported = yes; then
4627d1c293acSmrg	        XSTDCMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xmu x11" 2>&1`
4628d1c293acSmrg        else
4629d1c293acSmrg	        XSTDCMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors "xmu x11" 2>&1`
4630d1c293acSmrg        fi
4631d1c293acSmrg	# Put the nasty error message in config.log where it belongs
4632d1c293acSmrg	echo "$XSTDCMAP_PKG_ERRORS" >&5
4633d1c293acSmrg
4634d1c293acSmrg	as_fn_error $? "Package requirements (xmu x11) were not met:
4635d1c293acSmrg
4636d1c293acSmrg$XSTDCMAP_PKG_ERRORS
4637d1c293acSmrg
4638d1c293acSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
4639d1c293acSmrginstalled software in a non-standard prefix.
4640d1c293acSmrg
4641d1c293acSmrgAlternatively, you may set the environment variables XSTDCMAP_CFLAGS
4642d1c293acSmrgand XSTDCMAP_LIBS to avoid the need to call pkg-config.
4643d1c293acSmrgSee the pkg-config man page for more details.
4644d1c293acSmrg" "$LINENO" 5
4645d1c293acSmrgelif test $pkg_failed = untried; then
4646d1c293acSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4647d1c293acSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4648d1c293acSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
4649d1c293acSmrgis in your PATH or set the PKG_CONFIG environment variable to the full
4650d1c293acSmrgpath to pkg-config.
46518440cca4Smrg
4652d1c293acSmrgAlternatively, you may set the environment variables XSTDCMAP_CFLAGS
4653d1c293acSmrgand XSTDCMAP_LIBS to avoid the need to call pkg-config.
4654d1c293acSmrgSee the pkg-config man page for more details.
4655d1c293acSmrg
4656d1c293acSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
4657d1c293acSmrgSee \`config.log' for more details" "$LINENO" 5; }
4658d1c293acSmrgelse
4659d1c293acSmrg	XSTDCMAP_CFLAGS=$pkg_cv_XSTDCMAP_CFLAGS
4660d1c293acSmrg	XSTDCMAP_LIBS=$pkg_cv_XSTDCMAP_LIBS
4661d1c293acSmrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4662d1c293acSmrg$as_echo "yes" >&6; }
4663d1c293acSmrg	:
4664d1c293acSmrgfi
4665d1c293acSmrg
4666d1c293acSmrgac_config_files="$ac_config_files Makefile"
46678440cca4Smrg
46688440cca4Smrgcat >confcache <<\_ACEOF
46698440cca4Smrg# This file is a shell script that caches the results of configure
46708440cca4Smrg# tests run on this system so they can be shared between configure
46718440cca4Smrg# scripts and configure runs, see configure's option --config-cache.
46728440cca4Smrg# It is not useful on other systems.  If it contains results you don't
46738440cca4Smrg# want to keep, you may remove or edit it.
46748440cca4Smrg#
46758440cca4Smrg# config.status only pays attention to the cache file if you give it
46768440cca4Smrg# the --recheck option to rerun configure.
46778440cca4Smrg#
46788440cca4Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
46798440cca4Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
46808440cca4Smrg# following values.
46818440cca4Smrg
46828440cca4Smrg_ACEOF
46838440cca4Smrg
46848440cca4Smrg# The following way of writing the cache mishandles newlines in values,
46858440cca4Smrg# but we know of no workaround that is simple, portable, and efficient.
4686d1c293acSmrg# So, we kill variables containing newlines.
46878440cca4Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
46888440cca4Smrg# and sets the high bit in the cache file unless we assign to the vars.
4689d1c293acSmrg(
4690d1c293acSmrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4691d1c293acSmrg    eval ac_val=\$$ac_var
4692d1c293acSmrg    case $ac_val in #(
4693d1c293acSmrg    *${as_nl}*)
4694d1c293acSmrg      case $ac_var in #(
4695d1c293acSmrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4696d1c293acSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4697d1c293acSmrg      esac
4698d1c293acSmrg      case $ac_var in #(
4699d1c293acSmrg      _ | IFS | as_nl) ;; #(
4700d1c293acSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4701d1c293acSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
4702d1c293acSmrg      esac ;;
4703d1c293acSmrg    esac
4704d1c293acSmrg  done
4705d1c293acSmrg
47068440cca4Smrg  (set) 2>&1 |
4707d1c293acSmrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
4708d1c293acSmrg    *${as_nl}ac_space=\ *)
4709d1c293acSmrg      # `set' does not quote correctly, so add quotes: double-quote
4710d1c293acSmrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
47118440cca4Smrg      sed -n \
47128440cca4Smrg	"s/'/'\\\\''/g;
47138440cca4Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4714d1c293acSmrg      ;; #(
47158440cca4Smrg    *)
47168440cca4Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
4717d1c293acSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
47188440cca4Smrg      ;;
4719d1c293acSmrg    esac |
4720d1c293acSmrg    sort
4721d1c293acSmrg) |
47228440cca4Smrg  sed '
4723d1c293acSmrg     /^ac_cv_env_/b end
47248440cca4Smrg     t clear
4725d1c293acSmrg     :clear
47268440cca4Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
47278440cca4Smrg     t end
4728d1c293acSmrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4729d1c293acSmrg     :end' >>confcache
4730d1c293acSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4731d1c293acSmrg  if test -w "$cache_file"; then
4732d1c293acSmrg    if test "x$cache_file" != "x/dev/null"; then
4733d1c293acSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4734d1c293acSmrg$as_echo "$as_me: updating cache $cache_file" >&6;}
4735d1c293acSmrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
4736d1c293acSmrg	cat confcache >"$cache_file"
4737d1c293acSmrg      else
4738d1c293acSmrg        case $cache_file in #(
4739d1c293acSmrg        */* | ?:*)
4740d1c293acSmrg	  mv -f confcache "$cache_file"$$ &&
4741d1c293acSmrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
4742d1c293acSmrg        *)
4743d1c293acSmrg	  mv -f confcache "$cache_file" ;;
4744d1c293acSmrg	esac
4745d1c293acSmrg      fi
4746d1c293acSmrg    fi
47478440cca4Smrg  else
4748d1c293acSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4749d1c293acSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
47508440cca4Smrg  fi
47518440cca4Smrgfi
47528440cca4Smrgrm -f confcache
47538440cca4Smrg
47548440cca4Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
47558440cca4Smrg# Let make expand exec_prefix.
47568440cca4Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
47578440cca4Smrg
47588440cca4SmrgDEFS=-DHAVE_CONFIG_H
47598440cca4Smrg
47608440cca4Smrgac_libobjs=
47618440cca4Smrgac_ltlibobjs=
4762d1c293acSmrgU=
47638440cca4Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
47648440cca4Smrg  # 1. Remove the extension, and $U if already installed.
4765d1c293acSmrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4766d1c293acSmrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4767d1c293acSmrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
4768d1c293acSmrg  #    will be set to the directory where LIBOBJS objects are built.
4769d1c293acSmrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4770d1c293acSmrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
47718440cca4Smrgdone
47728440cca4SmrgLIBOBJS=$ac_libobjs
47738440cca4Smrg
47748440cca4SmrgLTLIBOBJS=$ac_ltlibobjs
47758440cca4Smrg
47768440cca4Smrg
4777d1c293acSmrg if test -n "$EXEEXT"; then
4778d1c293acSmrg  am__EXEEXT_TRUE=
4779d1c293acSmrg  am__EXEEXT_FALSE='#'
4780d1c293acSmrgelse
4781d1c293acSmrg  am__EXEEXT_TRUE='#'
4782d1c293acSmrg  am__EXEEXT_FALSE=
4783d1c293acSmrgfi
4784d1c293acSmrg
47858440cca4Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
4786d1c293acSmrg  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
4787d1c293acSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
47888440cca4Smrgfi
47898440cca4Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4790d1c293acSmrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
4791d1c293acSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
47928440cca4Smrgfi
47938440cca4Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4794d1c293acSmrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
4795d1c293acSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
47968440cca4Smrgfi
47978440cca4Smrg
4798d1c293acSmrg: "${CONFIG_STATUS=./config.status}"
4799d1c293acSmrgac_write_fail=0
48008440cca4Smrgac_clean_files_save=$ac_clean_files
48018440cca4Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
4802d1c293acSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4803d1c293acSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4804d1c293acSmrgas_write_fail=0
4805d1c293acSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
48068440cca4Smrg#! $SHELL
48078440cca4Smrg# Generated by $as_me.
48088440cca4Smrg# Run this file to recreate the current configuration.
48098440cca4Smrg# Compiler output produced by configure, useful for debugging
48108440cca4Smrg# configure, is in config.log if it exists.
48118440cca4Smrg
48128440cca4Smrgdebug=false
48138440cca4Smrgac_cs_recheck=false
48148440cca4Smrgac_cs_silent=false
48158440cca4Smrg
4816d1c293acSmrgSHELL=\${CONFIG_SHELL-$SHELL}
4817d1c293acSmrgexport SHELL
4818d1c293acSmrg_ASEOF
4819d1c293acSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4820d1c293acSmrg## -------------------- ##
4821d1c293acSmrg## M4sh Initialization. ##
4822d1c293acSmrg## -------------------- ##
4823d1c293acSmrg
4824d1c293acSmrg# Be more Bourne compatible
4825d1c293acSmrgDUALCASE=1; export DUALCASE # for MKS sh
4826d1c293acSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
48278440cca4Smrg  emulate sh
48288440cca4Smrg  NULLCMD=:
4829d1c293acSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
48308440cca4Smrg  # is contrary to our usage.  Disable this feature.
48318440cca4Smrg  alias -g '${1+"$@"}'='"$@"'
4832d1c293acSmrg  setopt NO_GLOB_SUBST
4833d1c293acSmrgelse
4834d1c293acSmrg  case `(set -o) 2>/dev/null` in #(
4835d1c293acSmrg  *posix*) :
4836d1c293acSmrg    set -o posix ;; #(
4837d1c293acSmrg  *) :
4838d1c293acSmrg     ;;
4839d1c293acSmrgesac
48408440cca4Smrgfi
48418440cca4Smrg
4842d1c293acSmrg
4843d1c293acSmrgas_nl='
4844d1c293acSmrg'
4845d1c293acSmrgexport as_nl
4846d1c293acSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
4847d1c293acSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4848d1c293acSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4849d1c293acSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4850d1c293acSmrg# Prefer a ksh shell builtin over an external printf program on Solaris,
4851d1c293acSmrg# but without wasting forks for bash or zsh.
4852d1c293acSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \
4853d1c293acSmrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4854d1c293acSmrg  as_echo='print -r --'
4855d1c293acSmrg  as_echo_n='print -rn --'
4856d1c293acSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4857d1c293acSmrg  as_echo='printf %s\n'
4858d1c293acSmrg  as_echo_n='printf %s'
48598440cca4Smrgelse
4860d1c293acSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4861d1c293acSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4862d1c293acSmrg    as_echo_n='/usr/ucb/echo -n'
4863d1c293acSmrg  else
4864d1c293acSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4865d1c293acSmrg    as_echo_n_body='eval
4866d1c293acSmrg      arg=$1;
4867d1c293acSmrg      case $arg in #(
4868d1c293acSmrg      *"$as_nl"*)
4869d1c293acSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
4870d1c293acSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4871d1c293acSmrg      esac;
4872d1c293acSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4873d1c293acSmrg    '
4874d1c293acSmrg    export as_echo_n_body
4875d1c293acSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
4876d1c293acSmrg  fi
4877d1c293acSmrg  export as_echo_body
4878d1c293acSmrg  as_echo='sh -c $as_echo_body as_echo'
4879d1c293acSmrgfi
4880d1c293acSmrg
4881d1c293acSmrg# The user is always right.
4882d1c293acSmrgif test "${PATH_SEPARATOR+set}" != set; then
4883d1c293acSmrg  PATH_SEPARATOR=:
4884d1c293acSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4885d1c293acSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4886d1c293acSmrg      PATH_SEPARATOR=';'
4887d1c293acSmrg  }
48888440cca4Smrgfi
48898440cca4Smrg
48908440cca4Smrg
4891d1c293acSmrg# IFS
4892d1c293acSmrg# We need space, tab and new line, in precisely that order.  Quoting is
4893d1c293acSmrg# there to prevent editors from complaining about space-tab.
4894d1c293acSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4895d1c293acSmrg# splitting by setting IFS to empty value.)
4896d1c293acSmrgIFS=" ""	$as_nl"
4897d1c293acSmrg
4898d1c293acSmrg# Find who we are.  Look in the path if we contain no directory separator.
4899d1c293acSmrgas_myself=
4900d1c293acSmrgcase $0 in #((
4901d1c293acSmrg  *[\\/]* ) as_myself=$0 ;;
4902d1c293acSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903d1c293acSmrgfor as_dir in $PATH
4904d1c293acSmrgdo
4905d1c293acSmrg  IFS=$as_save_IFS
4906d1c293acSmrg  test -z "$as_dir" && as_dir=.
4907d1c293acSmrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4908d1c293acSmrg  done
4909d1c293acSmrgIFS=$as_save_IFS
4910d1c293acSmrg
4911d1c293acSmrg     ;;
4912d1c293acSmrgesac
4913d1c293acSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
4914d1c293acSmrg# in which case we are not to be found in the path.
4915d1c293acSmrgif test "x$as_myself" = x; then
4916d1c293acSmrg  as_myself=$0
4917d1c293acSmrgfi
4918d1c293acSmrgif test ! -f "$as_myself"; then
4919d1c293acSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4920d1c293acSmrg  exit 1
4921d1c293acSmrgfi
4922d1c293acSmrg
4923d1c293acSmrg# Unset variables that we do not need and which cause bugs (e.g. in
4924d1c293acSmrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
4925d1c293acSmrg# suppresses any "Segmentation fault" message there.  '((' could
4926d1c293acSmrg# trigger a bug in pdksh 5.2.14.
4927d1c293acSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH
4928d1c293acSmrgdo eval test x\${$as_var+set} = xset \
4929d1c293acSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4930d1c293acSmrgdone
49318440cca4SmrgPS1='$ '
49328440cca4SmrgPS2='> '
49338440cca4SmrgPS4='+ '
49348440cca4Smrg
49358440cca4Smrg# NLS nuisances.
4936d1c293acSmrgLC_ALL=C
4937d1c293acSmrgexport LC_ALL
4938d1c293acSmrgLANGUAGE=C
4939d1c293acSmrgexport LANGUAGE
4940d1c293acSmrg
4941d1c293acSmrg# CDPATH.
4942d1c293acSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4943d1c293acSmrg
4944d1c293acSmrg
4945d1c293acSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
4946d1c293acSmrg# ----------------------------------------
4947d1c293acSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4948d1c293acSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4949d1c293acSmrg# script with STATUS, using 1 if that was 0.
4950d1c293acSmrgas_fn_error ()
4951d1c293acSmrg{
4952d1c293acSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
4953d1c293acSmrg  if test "$4"; then
4954d1c293acSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4955d1c293acSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
49568440cca4Smrg  fi
4957d1c293acSmrg  $as_echo "$as_me: error: $2" >&2
4958d1c293acSmrg  as_fn_exit $as_status
4959d1c293acSmrg} # as_fn_error
4960d1c293acSmrg
4961d1c293acSmrg
4962d1c293acSmrg# as_fn_set_status STATUS
4963d1c293acSmrg# -----------------------
4964d1c293acSmrg# Set $? to STATUS, without forking.
4965d1c293acSmrgas_fn_set_status ()
4966d1c293acSmrg{
4967d1c293acSmrg  return $1
4968d1c293acSmrg} # as_fn_set_status
4969d1c293acSmrg
4970d1c293acSmrg# as_fn_exit STATUS
4971d1c293acSmrg# -----------------
4972d1c293acSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4973d1c293acSmrgas_fn_exit ()
4974d1c293acSmrg{
4975d1c293acSmrg  set +e
4976d1c293acSmrg  as_fn_set_status $1
4977d1c293acSmrg  exit $1
4978d1c293acSmrg} # as_fn_exit
4979d1c293acSmrg
4980d1c293acSmrg# as_fn_unset VAR
4981d1c293acSmrg# ---------------
4982d1c293acSmrg# Portably unset VAR.
4983d1c293acSmrgas_fn_unset ()
4984d1c293acSmrg{
4985d1c293acSmrg  { eval $1=; unset $1;}
4986d1c293acSmrg}
4987d1c293acSmrgas_unset=as_fn_unset
4988d1c293acSmrg# as_fn_append VAR VALUE
4989d1c293acSmrg# ----------------------
4990d1c293acSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
4991d1c293acSmrg# advantage of any shell optimizations that allow amortized linear growth over
4992d1c293acSmrg# repeated appends, instead of the typical quadratic growth present in naive
4993d1c293acSmrg# implementations.
4994d1c293acSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4995d1c293acSmrg  eval 'as_fn_append ()
4996d1c293acSmrg  {
4997d1c293acSmrg    eval $1+=\$2
4998d1c293acSmrg  }'
4999d1c293acSmrgelse
5000d1c293acSmrg  as_fn_append ()
5001d1c293acSmrg  {
5002d1c293acSmrg    eval $1=\$$1\$2
5003d1c293acSmrg  }
5004d1c293acSmrgfi # as_fn_append
5005d1c293acSmrg
5006d1c293acSmrg# as_fn_arith ARG...
5007d1c293acSmrg# ------------------
5008d1c293acSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
5009d1c293acSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
5010d1c293acSmrg# must be portable across $(()) and expr.
5011d1c293acSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5012d1c293acSmrg  eval 'as_fn_arith ()
5013d1c293acSmrg  {
5014d1c293acSmrg    as_val=$(( $* ))
5015d1c293acSmrg  }'
5016d1c293acSmrgelse
5017d1c293acSmrg  as_fn_arith ()
5018d1c293acSmrg  {
5019d1c293acSmrg    as_val=`expr "$@" || test $? -eq 1`
5020d1c293acSmrg  }
5021d1c293acSmrgfi # as_fn_arith
5022d1c293acSmrg
50238440cca4Smrg
5024d1c293acSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
5025d1c293acSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
50268440cca4Smrg  as_expr=expr
50278440cca4Smrgelse
50288440cca4Smrg  as_expr=false
50298440cca4Smrgfi
50308440cca4Smrg
5031d1c293acSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
50328440cca4Smrg  as_basename=basename
50338440cca4Smrgelse
50348440cca4Smrg  as_basename=false
50358440cca4Smrgfi
50368440cca4Smrg
5037d1c293acSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5038d1c293acSmrg  as_dirname=dirname
5039d1c293acSmrgelse
5040d1c293acSmrg  as_dirname=false
5041d1c293acSmrgfi
50428440cca4Smrg
5043d1c293acSmrgas_me=`$as_basename -- "$0" ||
50448440cca4Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
50458440cca4Smrg	 X"$0" : 'X\(//\)$' \| \
5046d1c293acSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5047d1c293acSmrg$as_echo X/"$0" |
5048d1c293acSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
5049d1c293acSmrg	    s//\1/
5050d1c293acSmrg	    q
5051d1c293acSmrg	  }
5052d1c293acSmrg	  /^X\/\(\/\/\)$/{
5053d1c293acSmrg	    s//\1/
5054d1c293acSmrg	    q
5055d1c293acSmrg	  }
5056d1c293acSmrg	  /^X\/\(\/\).*/{
5057d1c293acSmrg	    s//\1/
5058d1c293acSmrg	    q
5059d1c293acSmrg	  }
5060d1c293acSmrg	  s/.*/./; q'`
50618440cca4Smrg
50628440cca4Smrg# Avoid depending upon Character Ranges.
50638440cca4Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
50648440cca4Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
50658440cca4Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
50668440cca4Smrgas_cr_digits='0123456789'
50678440cca4Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
50688440cca4Smrg
5069d1c293acSmrgECHO_C= ECHO_N= ECHO_T=
5070d1c293acSmrgcase `echo -n x` in #(((((
5071d1c293acSmrg-n*)
5072d1c293acSmrg  case `echo 'xy\c'` in
5073d1c293acSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5074d1c293acSmrg  xy)  ECHO_C='\c';;
5075d1c293acSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5076d1c293acSmrg       ECHO_T='	';;
5077d1c293acSmrg  esac;;
5078d1c293acSmrg*)
5079d1c293acSmrg  ECHO_N='-n';;
50808440cca4Smrgesac
50818440cca4Smrg
5082d1c293acSmrgrm -f conf$$ conf$$.exe conf$$.file
5083d1c293acSmrgif test -d conf$$.dir; then
5084d1c293acSmrg  rm -f conf$$.dir/conf$$.file
50858440cca4Smrgelse
5086d1c293acSmrg  rm -f conf$$.dir
5087d1c293acSmrg  mkdir conf$$.dir 2>/dev/null
50888440cca4Smrgfi
5089d1c293acSmrgif (echo >conf$$.file) 2>/dev/null; then
5090d1c293acSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
50918440cca4Smrg    as_ln_s='ln -s'
5092d1c293acSmrg    # ... but there are two gotchas:
5093d1c293acSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5094d1c293acSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5095d1c293acSmrg    # In both cases, we have to default to `cp -p'.
5096d1c293acSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5097d1c293acSmrg      as_ln_s='cp -p'
5098d1c293acSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
5099d1c293acSmrg    as_ln_s=ln
5100d1c293acSmrg  else
5101d1c293acSmrg    as_ln_s='cp -p'
51028440cca4Smrg  fi
51038440cca4Smrgelse
51048440cca4Smrg  as_ln_s='cp -p'
51058440cca4Smrgfi
5106d1c293acSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5107d1c293acSmrgrmdir conf$$.dir 2>/dev/null
5108d1c293acSmrg
5109d1c293acSmrg
5110d1c293acSmrg# as_fn_mkdir_p
5111d1c293acSmrg# -------------
5112d1c293acSmrg# Create "$as_dir" as a directory, including parents if necessary.
5113d1c293acSmrgas_fn_mkdir_p ()
5114d1c293acSmrg{
5115d1c293acSmrg
5116d1c293acSmrg  case $as_dir in #(
5117d1c293acSmrg  -*) as_dir=./$as_dir;;
5118d1c293acSmrg  esac
5119d1c293acSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
5120d1c293acSmrg    as_dirs=
5121d1c293acSmrg    while :; do
5122d1c293acSmrg      case $as_dir in #(
5123d1c293acSmrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5124d1c293acSmrg      *) as_qdir=$as_dir;;
5125d1c293acSmrg      esac
5126d1c293acSmrg      as_dirs="'$as_qdir' $as_dirs"
5127d1c293acSmrg      as_dir=`$as_dirname -- "$as_dir" ||
5128d1c293acSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5129d1c293acSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
5130d1c293acSmrg	 X"$as_dir" : 'X\(//\)$' \| \
5131d1c293acSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5132d1c293acSmrg$as_echo X"$as_dir" |
5133d1c293acSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5134d1c293acSmrg	    s//\1/
5135d1c293acSmrg	    q
5136d1c293acSmrg	  }
5137d1c293acSmrg	  /^X\(\/\/\)[^/].*/{
5138d1c293acSmrg	    s//\1/
5139d1c293acSmrg	    q
5140d1c293acSmrg	  }
5141d1c293acSmrg	  /^X\(\/\/\)$/{
5142d1c293acSmrg	    s//\1/
5143d1c293acSmrg	    q
5144d1c293acSmrg	  }
5145d1c293acSmrg	  /^X\(\/\).*/{
5146d1c293acSmrg	    s//\1/
5147d1c293acSmrg	    q
5148d1c293acSmrg	  }
5149d1c293acSmrg	  s/.*/./; q'`
5150d1c293acSmrg      test -d "$as_dir" && break
5151d1c293acSmrg    done
5152d1c293acSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
5153d1c293acSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5154d1c293acSmrg
51558440cca4Smrg
5156d1c293acSmrg} # as_fn_mkdir_p
51578440cca4Smrgif mkdir -p . 2>/dev/null; then
5158d1c293acSmrg  as_mkdir_p='mkdir -p "$as_dir"'
51598440cca4Smrgelse
51608440cca4Smrg  test -d ./-p && rmdir ./-p
51618440cca4Smrg  as_mkdir_p=false
51628440cca4Smrgfi
51638440cca4Smrg
5164d1c293acSmrgif test -x / >/dev/null 2>&1; then
5165d1c293acSmrg  as_test_x='test -x'
5166d1c293acSmrgelse
5167d1c293acSmrg  if ls -dL / >/dev/null 2>&1; then
5168d1c293acSmrg    as_ls_L_option=L
5169d1c293acSmrg  else
5170d1c293acSmrg    as_ls_L_option=
5171d1c293acSmrg  fi
5172d1c293acSmrg  as_test_x='
5173d1c293acSmrg    eval sh -c '\''
5174d1c293acSmrg      if test -d "$1"; then
5175d1c293acSmrg	test -d "$1/.";
5176d1c293acSmrg      else
5177d1c293acSmrg	case $1 in #(
5178d1c293acSmrg	-*)set "./$1";;
5179d1c293acSmrg	esac;
5180d1c293acSmrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5181d1c293acSmrg	???[sx]*):;;*)false;;esac;fi
5182d1c293acSmrg    '\'' sh
5183d1c293acSmrg  '
5184d1c293acSmrgfi
5185d1c293acSmrgas_executable_p=$as_test_x
51868440cca4Smrg
51878440cca4Smrg# Sed expression to map a string onto a valid CPP name.
51888440cca4Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51898440cca4Smrg
51908440cca4Smrg# Sed expression to map a string onto a valid variable name.
51918440cca4Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51928440cca4Smrg
51938440cca4Smrg
51948440cca4Smrgexec 6>&1
5195d1c293acSmrg## ----------------------------------- ##
5196d1c293acSmrg## Main body of $CONFIG_STATUS script. ##
5197d1c293acSmrg## ----------------------------------- ##
5198d1c293acSmrg_ASEOF
5199d1c293acSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5200d1c293acSmrg
5201d1c293acSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5202d1c293acSmrg# Save the log message, to keep $0 and so on meaningful, and to
52038440cca4Smrg# report actual input values of CONFIG_FILES etc. instead of their
5204d1c293acSmrg# values after options handling.
5205d1c293acSmrgac_log="
5206d1c293acSmrgThis file was extended by xstdcmap $as_me 1.0.2, which was
5207d1c293acSmrggenerated by GNU Autoconf 2.68.  Invocation command line was
52088440cca4Smrg
52098440cca4Smrg  CONFIG_FILES    = $CONFIG_FILES
52108440cca4Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
52118440cca4Smrg  CONFIG_LINKS    = $CONFIG_LINKS
52128440cca4Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
52138440cca4Smrg  $ $0 $@
52148440cca4Smrg
5215d1c293acSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
5216d1c293acSmrg"
5217d1c293acSmrg
52188440cca4Smrg_ACEOF
52198440cca4Smrg
5220d1c293acSmrgcase $ac_config_files in *"
5221d1c293acSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
5222d1c293acSmrgesac
52238440cca4Smrg
5224d1c293acSmrgcase $ac_config_headers in *"
5225d1c293acSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5226d1c293acSmrgesac
52278440cca4Smrg
52288440cca4Smrg
5229d1c293acSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5230d1c293acSmrg# Files that config.status was made for.
5231d1c293acSmrgconfig_files="$ac_config_files"
5232d1c293acSmrgconfig_headers="$ac_config_headers"
5233d1c293acSmrgconfig_commands="$ac_config_commands"
52348440cca4Smrg
5235d1c293acSmrg_ACEOF
52368440cca4Smrg
5237d1c293acSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52388440cca4Smrgac_cs_usage="\
5239d1c293acSmrg\`$as_me' instantiates files and other configuration actions
5240d1c293acSmrgfrom templates according to the current configuration.  Unless the files
5241d1c293acSmrgand actions are specified as TAGs, all are instantiated by default.
52428440cca4Smrg
5243d1c293acSmrgUsage: $0 [OPTION]... [TAG]...
52448440cca4Smrg
52458440cca4Smrg  -h, --help       print this help, then exit
5246d1c293acSmrg  -V, --version    print version number and configuration settings, then exit
5247d1c293acSmrg      --config     print configuration, then exit
5248d1c293acSmrg  -q, --quiet, --silent
5249d1c293acSmrg                   do not print progress messages
52508440cca4Smrg  -d, --debug      don't remove temporary files
52518440cca4Smrg      --recheck    update $as_me by reconfiguring in the same conditions
5252d1c293acSmrg      --file=FILE[:TEMPLATE]
5253d1c293acSmrg                   instantiate the configuration file FILE
5254d1c293acSmrg      --header=FILE[:TEMPLATE]
5255d1c293acSmrg                   instantiate the configuration header FILE
52568440cca4Smrg
52578440cca4SmrgConfiguration files:
52588440cca4Smrg$config_files
52598440cca4Smrg
52608440cca4SmrgConfiguration headers:
52618440cca4Smrg$config_headers
52628440cca4Smrg
52638440cca4SmrgConfiguration commands:
52648440cca4Smrg$config_commands
52658440cca4Smrg
5266d1c293acSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
52678440cca4Smrg
5268d1c293acSmrg_ACEOF
5269d1c293acSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5270d1c293acSmrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
52718440cca4Smrgac_cs_version="\\
5272d1c293acSmrgxstdcmap config.status 1.0.2
5273d1c293acSmrgconfigured by $0, generated by GNU Autoconf 2.68,
5274d1c293acSmrg  with options \\"\$ac_cs_config\\"
52758440cca4Smrg
5276d1c293acSmrgCopyright (C) 2010 Free Software Foundation, Inc.
52778440cca4SmrgThis config.status script is free software; the Free Software Foundation
52788440cca4Smrggives unlimited permission to copy, distribute and modify it."
5279d1c293acSmrg
5280d1c293acSmrgac_pwd='$ac_pwd'
5281d1c293acSmrgsrcdir='$srcdir'
5282d1c293acSmrgINSTALL='$INSTALL'
5283d1c293acSmrgMKDIR_P='$MKDIR_P'
5284d1c293acSmrgAWK='$AWK'
5285d1c293acSmrgtest -n "\$AWK" || AWK=awk
52868440cca4Smrg_ACEOF
52878440cca4Smrg
5288d1c293acSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5289d1c293acSmrg# The default lists apply if the user does not specify any file.
52908440cca4Smrgac_need_defaults=:
52918440cca4Smrgwhile test $# != 0
52928440cca4Smrgdo
52938440cca4Smrg  case $1 in
5294d1c293acSmrg  --*=?*)
5295d1c293acSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5296d1c293acSmrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5297d1c293acSmrg    ac_shift=:
5298d1c293acSmrg    ;;
5299d1c293acSmrg  --*=)
5300d1c293acSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5301d1c293acSmrg    ac_optarg=
53028440cca4Smrg    ac_shift=:
53038440cca4Smrg    ;;
5304d1c293acSmrg  *)
53058440cca4Smrg    ac_option=$1
53068440cca4Smrg    ac_optarg=$2
53078440cca4Smrg    ac_shift=shift
53088440cca4Smrg    ;;
53098440cca4Smrg  esac
53108440cca4Smrg
53118440cca4Smrg  case $ac_option in
53128440cca4Smrg  # Handling of the options.
53138440cca4Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53148440cca4Smrg    ac_cs_recheck=: ;;
5315d1c293acSmrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5316d1c293acSmrg    $as_echo "$ac_cs_version"; exit ;;
5317d1c293acSmrg  --config | --confi | --conf | --con | --co | --c )
5318d1c293acSmrg    $as_echo "$ac_cs_config"; exit ;;
5319d1c293acSmrg  --debug | --debu | --deb | --de | --d | -d )
53208440cca4Smrg    debug=: ;;
53218440cca4Smrg  --file | --fil | --fi | --f )
53228440cca4Smrg    $ac_shift
5323d1c293acSmrg    case $ac_optarg in
5324d1c293acSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5325d1c293acSmrg    '') as_fn_error $? "missing file argument" ;;
5326d1c293acSmrg    esac
5327d1c293acSmrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
53288440cca4Smrg    ac_need_defaults=false;;
53298440cca4Smrg  --header | --heade | --head | --hea )
53308440cca4Smrg    $ac_shift
5331d1c293acSmrg    case $ac_optarg in
5332d1c293acSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5333d1c293acSmrg    esac
5334d1c293acSmrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
53358440cca4Smrg    ac_need_defaults=false;;
5336d1c293acSmrg  --he | --h)
5337d1c293acSmrg    # Conflict between --help and --header
5338d1c293acSmrg    as_fn_error $? "ambiguous option: \`$1'
5339d1c293acSmrgTry \`$0 --help' for more information.";;
5340d1c293acSmrg  --help | --hel | -h )
5341d1c293acSmrg    $as_echo "$ac_cs_usage"; exit ;;
53428440cca4Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53438440cca4Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
53448440cca4Smrg    ac_cs_silent=: ;;
53458440cca4Smrg
53468440cca4Smrg  # This is an error.
5347d1c293acSmrg  -*) as_fn_error $? "unrecognized option: \`$1'
5348d1c293acSmrgTry \`$0 --help' for more information." ;;
53498440cca4Smrg
5350d1c293acSmrg  *) as_fn_append ac_config_targets " $1"
5351d1c293acSmrg     ac_need_defaults=false ;;
53528440cca4Smrg
53538440cca4Smrg  esac
53548440cca4Smrg  shift
53558440cca4Smrgdone
53568440cca4Smrg
53578440cca4Smrgac_configure_extra_args=
53588440cca4Smrg
53598440cca4Smrgif $ac_cs_silent; then
53608440cca4Smrg  exec 6>/dev/null
53618440cca4Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
53628440cca4Smrgfi
53638440cca4Smrg
53648440cca4Smrg_ACEOF
5365d1c293acSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
53668440cca4Smrgif \$ac_cs_recheck; then
5367d1c293acSmrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5368d1c293acSmrg  shift
5369d1c293acSmrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5370d1c293acSmrg  CONFIG_SHELL='$SHELL'
5371d1c293acSmrg  export CONFIG_SHELL
5372d1c293acSmrg  exec "\$@"
53738440cca4Smrgfi
53748440cca4Smrg
53758440cca4Smrg_ACEOF
5376d1c293acSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5377d1c293acSmrgexec 5>>config.log
5378d1c293acSmrg{
5379d1c293acSmrg  echo
5380d1c293acSmrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5381d1c293acSmrg## Running $as_me. ##
5382d1c293acSmrg_ASBOX
5383d1c293acSmrg  $as_echo "$ac_log"
5384d1c293acSmrg} >&5
53858440cca4Smrg
5386d1c293acSmrg_ACEOF
5387d1c293acSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
53888440cca4Smrg#
5389d1c293acSmrg# INIT-COMMANDS
53908440cca4Smrg#
53918440cca4SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
53928440cca4Smrg
53938440cca4Smrg_ACEOF
53948440cca4Smrg
5395d1c293acSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
53968440cca4Smrg
5397d1c293acSmrg# Handling of arguments.
53988440cca4Smrgfor ac_config_target in $ac_config_targets
53998440cca4Smrgdo
5400d1c293acSmrg  case $ac_config_target in
5401d1c293acSmrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5402d1c293acSmrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5403d1c293acSmrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5404d1c293acSmrg
5405d1c293acSmrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
54068440cca4Smrg  esac
54078440cca4Smrgdone
54088440cca4Smrg
5409d1c293acSmrg
54108440cca4Smrg# If the user did not use the arguments to specify the items to instantiate,
54118440cca4Smrg# then the envvar interface is used.  Set only those that are not.
54128440cca4Smrg# We use the long form for the default assignment because of an extremely
54138440cca4Smrg# bizarre bug on SunOS 4.1.3.
54148440cca4Smrgif $ac_need_defaults; then
54158440cca4Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
54168440cca4Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
54178440cca4Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
54188440cca4Smrgfi
54198440cca4Smrg
54208440cca4Smrg# Have a temporary directory for convenience.  Make it in the build tree
5421d1c293acSmrg# simply because there is no reason against having it here, and in addition,
54228440cca4Smrg# creating and moving files from /tmp can sometimes cause problems.
5423d1c293acSmrg# Hook for its removal unless debugging.
5424d1c293acSmrg# Note that there is a small window in which the directory will not be cleaned:
5425d1c293acSmrg# after its creation but before its name has been assigned to `$tmp'.
54268440cca4Smrg$debug ||
54278440cca4Smrg{
5428d1c293acSmrg  tmp= ac_tmp=
5429d1c293acSmrg  trap 'exit_status=$?
5430d1c293acSmrg  : "${ac_tmp:=$tmp}"
5431d1c293acSmrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5432d1c293acSmrg' 0
5433d1c293acSmrg  trap 'as_fn_exit 1' 1 2 13 15
54348440cca4Smrg}
54358440cca4Smrg# Create a (secure) tmp directory for tmp files.
54368440cca4Smrg
54378440cca4Smrg{
5438d1c293acSmrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5439d1c293acSmrg  test -d "$tmp"
54408440cca4Smrg}  ||
54418440cca4Smrg{
5442d1c293acSmrg  tmp=./conf$$-$RANDOM
5443d1c293acSmrg  (umask 077 && mkdir "$tmp")
5444d1c293acSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5445d1c293acSmrgac_tmp=$tmp
5446d1c293acSmrg
5447d1c293acSmrg# Set up the scripts for CONFIG_FILES section.
5448d1c293acSmrg# No need to generate them if there are no CONFIG_FILES.
5449d1c293acSmrg# This happens for instance with `./config.status config.h'.
5450d1c293acSmrgif test -n "$CONFIG_FILES"; then
5451d1c293acSmrg
5452d1c293acSmrg
5453d1c293acSmrgac_cr=`echo X | tr X '\015'`
5454d1c293acSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
5455d1c293acSmrg# But we know of no other shell where ac_cr would be empty at this
5456d1c293acSmrg# point, so we can use a bashism as a fallback.
5457d1c293acSmrgif test "x$ac_cr" = x; then
5458d1c293acSmrg  eval ac_cr=\$\'\\r\'
5459d1c293acSmrgfi
5460d1c293acSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5461d1c293acSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5462d1c293acSmrg  ac_cs_awk_cr='\\r'
5463d1c293acSmrgelse
5464d1c293acSmrg  ac_cs_awk_cr=$ac_cr
5465d1c293acSmrgfi
5466d1c293acSmrg
5467d1c293acSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5468d1c293acSmrg_ACEOF
5469d1c293acSmrg
5470d1c293acSmrg
5471d1c293acSmrg{
5472d1c293acSmrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
5473d1c293acSmrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5474d1c293acSmrg  echo "_ACEOF"
5475d1c293acSmrg} >conf$$subs.sh ||
5476d1c293acSmrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5477d1c293acSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5478d1c293acSmrgac_delim='%!_!# '
5479d1c293acSmrgfor ac_last_try in false false false false false :; do
5480d1c293acSmrg  . ./conf$$subs.sh ||
5481d1c293acSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5482d1c293acSmrg
5483d1c293acSmrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5484d1c293acSmrg  if test $ac_delim_n = $ac_delim_num; then
5485d1c293acSmrg    break
5486d1c293acSmrg  elif $ac_last_try; then
5487d1c293acSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5488d1c293acSmrg  else
5489d1c293acSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5490d1c293acSmrg  fi
5491d1c293acSmrgdone
5492d1c293acSmrgrm -f conf$$subs.sh
5493d1c293acSmrg
5494d1c293acSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5495d1c293acSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5496d1c293acSmrg_ACEOF
5497d1c293acSmrgsed -n '
5498d1c293acSmrgh
5499d1c293acSmrgs/^/S["/; s/!.*/"]=/
5500d1c293acSmrgp
5501d1c293acSmrgg
5502d1c293acSmrgs/^[^!]*!//
5503d1c293acSmrg:repl
5504d1c293acSmrgt repl
5505d1c293acSmrgs/'"$ac_delim"'$//
5506d1c293acSmrgt delim
5507d1c293acSmrg:nl
5508d1c293acSmrgh
5509d1c293acSmrgs/\(.\{148\}\)..*/\1/
5510d1c293acSmrgt more1
5511d1c293acSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5512d1c293acSmrgp
5513d1c293acSmrgn
5514d1c293acSmrgb repl
5515d1c293acSmrg:more1
5516d1c293acSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
5517d1c293acSmrgp
5518d1c293acSmrgg
5519d1c293acSmrgs/.\{148\}//
5520d1c293acSmrgt nl
5521d1c293acSmrg:delim
5522d1c293acSmrgh
5523d1c293acSmrgs/\(.\{148\}\)..*/\1/
5524d1c293acSmrgt more2
5525d1c293acSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/
5526d1c293acSmrgp
5527d1c293acSmrgb
5528d1c293acSmrg:more2
5529d1c293acSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
5530d1c293acSmrgp
5531d1c293acSmrgg
5532d1c293acSmrgs/.\{148\}//
5533d1c293acSmrgt delim
5534d1c293acSmrg' <conf$$subs.awk | sed '
5535d1c293acSmrg/^[^""]/{
5536d1c293acSmrg  N
5537d1c293acSmrg  s/\n//
5538d1c293acSmrg}
5539d1c293acSmrg' >>$CONFIG_STATUS || ac_write_fail=1
5540d1c293acSmrgrm -f conf$$subs.awk
5541d1c293acSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5542d1c293acSmrg_ACAWK
5543d1c293acSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5544d1c293acSmrg  for (key in S) S_is_set[key] = 1
5545d1c293acSmrg  FS = ""
5546d1c293acSmrg
5547d1c293acSmrg}
55488440cca4Smrg{
5549d1c293acSmrg  line = $ 0
5550d1c293acSmrg  nfields = split(line, field, "@")
5551d1c293acSmrg  substed = 0
5552d1c293acSmrg  len = length(field[1])
5553d1c293acSmrg  for (i = 2; i < nfields; i++) {
5554d1c293acSmrg    key = field[i]
5555d1c293acSmrg    keylen = length(key)
5556d1c293acSmrg    if (S_is_set[key]) {
5557d1c293acSmrg      value = S[key]
5558d1c293acSmrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5559d1c293acSmrg      len += length(value) + length(field[++i])
5560d1c293acSmrg      substed = 1
5561d1c293acSmrg    } else
5562d1c293acSmrg      len += 1 + keylen
5563d1c293acSmrg  }
5564d1c293acSmrg
5565d1c293acSmrg  print line
55668440cca4Smrg}
55678440cca4Smrg
5568d1c293acSmrg_ACAWK
5569d1c293acSmrg_ACEOF
5570d1c293acSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5571d1c293acSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5572d1c293acSmrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5573d1c293acSmrgelse
5574d1c293acSmrg  cat
5575d1c293acSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5576d1c293acSmrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
55778440cca4Smrg_ACEOF
55788440cca4Smrg
5579d1c293acSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5580d1c293acSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5581d1c293acSmrg# trailing colons and then remove the whole line if VPATH becomes empty
5582d1c293acSmrg# (actually we leave an empty line to preserve line numbers).
5583d1c293acSmrgif test "x$srcdir" = x.; then
5584d1c293acSmrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
5585d1c293acSmrgh
5586d1c293acSmrgs///
5587d1c293acSmrgs/^/:/
5588d1c293acSmrgs/[	 ]*$/:/
5589d1c293acSmrgs/:\$(srcdir):/:/g
5590d1c293acSmrgs/:\${srcdir}:/:/g
5591d1c293acSmrgs/:@srcdir@:/:/g
5592d1c293acSmrgs/^:*//
5593d1c293acSmrgs/:*$//
5594d1c293acSmrgx
5595d1c293acSmrgs/\(=[	 ]*\).*/\1/
5596d1c293acSmrgG
5597d1c293acSmrgs/\n//
5598d1c293acSmrgs/^[^=]*=[	 ]*$//
5599d1c293acSmrg}'
5600d1c293acSmrgfi
56018440cca4Smrg
5602d1c293acSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5603d1c293acSmrgfi # test -n "$CONFIG_FILES"
56048440cca4Smrg
5605d1c293acSmrg# Set up the scripts for CONFIG_HEADERS section.
5606d1c293acSmrg# No need to generate them if there are no CONFIG_HEADERS.
5607d1c293acSmrg# This happens for instance with `./config.status Makefile'.
5608d1c293acSmrgif test -n "$CONFIG_HEADERS"; then
5609d1c293acSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5610d1c293acSmrgBEGIN {
56118440cca4Smrg_ACEOF
56128440cca4Smrg
5613d1c293acSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as
5614d1c293acSmrg# here-document in config.status, that substitutes the proper values into
5615d1c293acSmrg# config.h.in to produce config.h.
5616d1c293acSmrg
5617d1c293acSmrg# Create a delimiter string that does not exist in confdefs.h, to ease
5618d1c293acSmrg# handling of long lines.
5619d1c293acSmrgac_delim='%!_!# '
5620d1c293acSmrgfor ac_last_try in false false :; do
5621d1c293acSmrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5622d1c293acSmrg  if test -z "$ac_tt"; then
5623d1c293acSmrg    break
5624d1c293acSmrg  elif $ac_last_try; then
5625d1c293acSmrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5626d1c293acSmrg  else
5627d1c293acSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
56288440cca4Smrg  fi
5629d1c293acSmrgdone
56308440cca4Smrg
5631d1c293acSmrg# For the awk script, D is an array of macro values keyed by name,
5632d1c293acSmrg# likewise P contains macro parameters if any.  Preserve backslash
5633d1c293acSmrg# newline sequences.
5634d1c293acSmrg
5635d1c293acSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5636d1c293acSmrgsed -n '
5637d1c293acSmrgs/.\{148\}/&'"$ac_delim"'/g
5638d1c293acSmrgt rset
5639d1c293acSmrg:rset
5640d1c293acSmrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
5641d1c293acSmrgt def
5642d1c293acSmrgd
5643d1c293acSmrg:def
5644d1c293acSmrgs/\\$//
5645d1c293acSmrgt bsnl
5646d1c293acSmrgs/["\\]/\\&/g
5647d1c293acSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
5648d1c293acSmrgD["\1"]=" \3"/p
5649d1c293acSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
5650d1c293acSmrgd
5651d1c293acSmrg:bsnl
5652d1c293acSmrgs/["\\]/\\&/g
5653d1c293acSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
5654d1c293acSmrgD["\1"]=" \3\\\\\\n"\\/p
5655d1c293acSmrgt cont
5656d1c293acSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5657d1c293acSmrgt cont
5658d1c293acSmrgd
5659d1c293acSmrg:cont
5660d1c293acSmrgn
5661d1c293acSmrgs/.\{148\}/&'"$ac_delim"'/g
5662d1c293acSmrgt clear
5663d1c293acSmrg:clear
5664d1c293acSmrgs/\\$//
5665d1c293acSmrgt bsnlc
5666d1c293acSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
5667d1c293acSmrgd
5668d1c293acSmrg:bsnlc
5669d1c293acSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5670d1c293acSmrgb cont
5671d1c293acSmrg' <confdefs.h | sed '
5672d1c293acSmrgs/'"$ac_delim"'/"\\\
5673d1c293acSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
5674d1c293acSmrg
5675d1c293acSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5676d1c293acSmrg  for (key in D) D_is_set[key] = 1
5677d1c293acSmrg  FS = ""
5678d1c293acSmrg}
5679d1c293acSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5680d1c293acSmrg  line = \$ 0
5681d1c293acSmrg  split(line, arg, " ")
5682d1c293acSmrg  if (arg[1] == "#") {
5683d1c293acSmrg    defundef = arg[2]
5684d1c293acSmrg    mac1 = arg[3]
5685d1c293acSmrg  } else {
5686d1c293acSmrg    defundef = substr(arg[1], 2)
5687d1c293acSmrg    mac1 = arg[2]
5688d1c293acSmrg  }
5689d1c293acSmrg  split(mac1, mac2, "(") #)
5690d1c293acSmrg  macro = mac2[1]
5691d1c293acSmrg  prefix = substr(line, 1, index(line, defundef) - 1)
5692d1c293acSmrg  if (D_is_set[macro]) {
5693d1c293acSmrg    # Preserve the white space surrounding the "#".
5694d1c293acSmrg    print prefix "define", macro P[macro] D[macro]
5695d1c293acSmrg    next
5696d1c293acSmrg  } else {
5697d1c293acSmrg    # Replace #undef with comments.  This is necessary, for example,
5698d1c293acSmrg    # in the case of _POSIX_SOURCE, which is predefined and required
5699d1c293acSmrg    # on some systems where configure will not decide to define it.
5700d1c293acSmrg    if (defundef == "undef") {
5701d1c293acSmrg      print "/*", prefix defundef, macro, "*/"
5702d1c293acSmrg      next
5703d1c293acSmrg    }
5704d1c293acSmrg  }
5705d1c293acSmrg}
5706d1c293acSmrg{ print }
5707d1c293acSmrg_ACAWK
57088440cca4Smrg_ACEOF
5709d1c293acSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5710d1c293acSmrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5711d1c293acSmrgfi # test -n "$CONFIG_HEADERS"
5712d1c293acSmrg
5713d1c293acSmrg
5714d1c293acSmrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
5715d1c293acSmrgshift
5716d1c293acSmrgfor ac_tag
5717d1c293acSmrgdo
5718d1c293acSmrg  case $ac_tag in
5719d1c293acSmrg  :[FHLC]) ac_mode=$ac_tag; continue;;
5720d1c293acSmrg  esac
5721d1c293acSmrg  case $ac_mode$ac_tag in
5722d1c293acSmrg  :[FHL]*:*);;
5723d1c293acSmrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5724d1c293acSmrg  :[FH]-) ac_tag=-:-;;
5725d1c293acSmrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5726d1c293acSmrg  esac
5727d1c293acSmrg  ac_save_IFS=$IFS
5728d1c293acSmrg  IFS=:
5729d1c293acSmrg  set x $ac_tag
5730d1c293acSmrg  IFS=$ac_save_IFS
5731d1c293acSmrg  shift
5732d1c293acSmrg  ac_file=$1
5733d1c293acSmrg  shift
5734d1c293acSmrg
5735d1c293acSmrg  case $ac_mode in
5736d1c293acSmrg  :L) ac_source=$1;;
5737d1c293acSmrg  :[FH])
5738d1c293acSmrg    ac_file_inputs=
5739d1c293acSmrg    for ac_f
5740d1c293acSmrg    do
5741d1c293acSmrg      case $ac_f in
5742d1c293acSmrg      -) ac_f="$ac_tmp/stdin";;
5743d1c293acSmrg      *) # Look for the file first in the build tree, then in the source tree
5744d1c293acSmrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
5745d1c293acSmrg	 # because $ac_f cannot contain `:'.
5746d1c293acSmrg	 test -f "$ac_f" ||
5747d1c293acSmrg	   case $ac_f in
5748d1c293acSmrg	   [\\/$]*) false;;
5749d1c293acSmrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5750d1c293acSmrg	   esac ||
5751d1c293acSmrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5752d1c293acSmrg      esac
5753d1c293acSmrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5754d1c293acSmrg      as_fn_append ac_file_inputs " '$ac_f'"
5755d1c293acSmrg    done
5756d1c293acSmrg
5757d1c293acSmrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
5758d1c293acSmrg    # use $as_me), people would be surprised to read:
5759d1c293acSmrg    #    /* config.h.  Generated by config.status.  */
5760d1c293acSmrg    configure_input='Generated from '`
5761d1c293acSmrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5762d1c293acSmrg	`' by configure.'
5763d1c293acSmrg    if test x"$ac_file" != x-; then
5764d1c293acSmrg      configure_input="$ac_file.  $configure_input"
5765d1c293acSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5766d1c293acSmrg$as_echo "$as_me: creating $ac_file" >&6;}
5767d1c293acSmrg    fi
5768d1c293acSmrg    # Neutralize special characters interpreted by sed in replacement strings.
5769d1c293acSmrg    case $configure_input in #(
5770d1c293acSmrg    *\&* | *\|* | *\\* )
5771d1c293acSmrg       ac_sed_conf_input=`$as_echo "$configure_input" |
5772d1c293acSmrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
5773d1c293acSmrg    *) ac_sed_conf_input=$configure_input;;
5774d1c293acSmrg    esac
5775d1c293acSmrg
5776d1c293acSmrg    case $ac_tag in
5777d1c293acSmrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
5778d1c293acSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5779d1c293acSmrg    esac
5780d1c293acSmrg    ;;
57818440cca4Smrg  esac
57828440cca4Smrg
5783d1c293acSmrg  ac_dir=`$as_dirname -- "$ac_file" ||
57848440cca4Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57858440cca4Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
57868440cca4Smrg	 X"$ac_file" : 'X\(//\)$' \| \
5787d1c293acSmrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5788d1c293acSmrg$as_echo X"$ac_file" |
5789d1c293acSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5790d1c293acSmrg	    s//\1/
5791d1c293acSmrg	    q
5792d1c293acSmrg	  }
5793d1c293acSmrg	  /^X\(\/\/\)[^/].*/{
5794d1c293acSmrg	    s//\1/
5795d1c293acSmrg	    q
5796d1c293acSmrg	  }
5797d1c293acSmrg	  /^X\(\/\/\)$/{
5798d1c293acSmrg	    s//\1/
5799d1c293acSmrg	    q
5800d1c293acSmrg	  }
5801d1c293acSmrg	  /^X\(\/\).*/{
5802d1c293acSmrg	    s//\1/
5803d1c293acSmrg	    q
5804d1c293acSmrg	  }
5805d1c293acSmrg	  s/.*/./; q'`
5806d1c293acSmrg  as_dir="$ac_dir"; as_fn_mkdir_p
58078440cca4Smrg  ac_builddir=.
58088440cca4Smrg
5809d1c293acSmrgcase "$ac_dir" in
5810d1c293acSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5811d1c293acSmrg*)
5812d1c293acSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5813d1c293acSmrg  # A ".." for each directory in $ac_dir_suffix.
5814d1c293acSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5815d1c293acSmrg  case $ac_top_builddir_sub in
5816d1c293acSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5817d1c293acSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5818d1c293acSmrg  esac ;;
5819d1c293acSmrgesac
5820d1c293acSmrgac_abs_top_builddir=$ac_pwd
5821d1c293acSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
5822d1c293acSmrg# for backward compatibility:
5823d1c293acSmrgac_top_builddir=$ac_top_build_prefix
58248440cca4Smrg
58258440cca4Smrgcase $srcdir in
5826d1c293acSmrg  .)  # We are building in place.
58278440cca4Smrg    ac_srcdir=.
5828d1c293acSmrg    ac_top_srcdir=$ac_top_builddir_sub
5829d1c293acSmrg    ac_abs_top_srcdir=$ac_pwd ;;
5830d1c293acSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
58318440cca4Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
5832d1c293acSmrg    ac_top_srcdir=$srcdir
5833d1c293acSmrg    ac_abs_top_srcdir=$srcdir ;;
5834d1c293acSmrg  *) # Relative name.
5835d1c293acSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5836d1c293acSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
5837d1c293acSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
58388440cca4Smrgesac
5839d1c293acSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
58408440cca4Smrg
58418440cca4Smrg
5842d1c293acSmrg  case $ac_mode in
5843d1c293acSmrg  :F)
5844d1c293acSmrg  #
5845d1c293acSmrg  # CONFIG_FILE
5846d1c293acSmrg  #
58478440cca4Smrg
58488440cca4Smrg  case $INSTALL in
58498440cca4Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5850d1c293acSmrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5851d1c293acSmrg  esac
5852d1c293acSmrg  ac_MKDIR_P=$MKDIR_P
5853d1c293acSmrg  case $MKDIR_P in
5854d1c293acSmrg  [\\/$]* | ?:[\\/]* ) ;;
5855d1c293acSmrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
58568440cca4Smrg  esac
5857d1c293acSmrg_ACEOF
58588440cca4Smrg
5859d1c293acSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5860d1c293acSmrg# If the template does not know about datarootdir, expand it.
5861d1c293acSmrg# FIXME: This hack should be removed a few years after 2.60.
5862d1c293acSmrgac_datarootdir_hack=; ac_datarootdir_seen=
5863d1c293acSmrgac_sed_dataroot='
5864d1c293acSmrg/datarootdir/ {
5865d1c293acSmrg  p
5866d1c293acSmrg  q
5867d1c293acSmrg}
5868d1c293acSmrg/@datadir@/p
5869d1c293acSmrg/@docdir@/p
5870d1c293acSmrg/@infodir@/p
5871d1c293acSmrg/@localedir@/p
5872d1c293acSmrg/@mandir@/p'
5873d1c293acSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5874d1c293acSmrg*datarootdir*) ac_datarootdir_seen=yes;;
5875d1c293acSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5876d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5877d1c293acSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5878d1c293acSmrg_ACEOF
5879d1c293acSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5880d1c293acSmrg  ac_datarootdir_hack='
5881d1c293acSmrg  s&@datadir@&$datadir&g
5882d1c293acSmrg  s&@docdir@&$docdir&g
5883d1c293acSmrg  s&@infodir@&$infodir&g
5884d1c293acSmrg  s&@localedir@&$localedir&g
5885d1c293acSmrg  s&@mandir@&$mandir&g
5886d1c293acSmrg  s&\\\${datarootdir}&$datarootdir&g' ;;
5887d1c293acSmrgesac
58888440cca4Smrg_ACEOF
5889d1c293acSmrg
5890d1c293acSmrg# Neutralize VPATH when `$srcdir' = `.'.
5891d1c293acSmrg# Shell code in configure.ac might set extrasub.
5892d1c293acSmrg# FIXME: do we really want to maintain this feature?
5893d1c293acSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5894d1c293acSmrgac_sed_extra="$ac_vpsub
58958440cca4Smrg$extrasub
58968440cca4Smrg_ACEOF
5897d1c293acSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
58988440cca4Smrg:t
58998440cca4Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5900d1c293acSmrgs|@configure_input@|$ac_sed_conf_input|;t t
5901d1c293acSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t
5902d1c293acSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
5903d1c293acSmrgs&@srcdir@&$ac_srcdir&;t t
5904d1c293acSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
5905d1c293acSmrgs&@top_srcdir@&$ac_top_srcdir&;t t
5906d1c293acSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5907d1c293acSmrgs&@builddir@&$ac_builddir&;t t
5908d1c293acSmrgs&@abs_builddir@&$ac_abs_builddir&;t t
5909d1c293acSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5910d1c293acSmrgs&@INSTALL@&$ac_INSTALL&;t t
5911d1c293acSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
5912d1c293acSmrg$ac_datarootdir_hack
5913d1c293acSmrg"
5914d1c293acSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5915d1c293acSmrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5916d1c293acSmrg
5917d1c293acSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5918d1c293acSmrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5919d1c293acSmrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
5920d1c293acSmrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
5921d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5922d1c293acSmrgwhich seems to be undefined.  Please make sure it is defined" >&5
5923d1c293acSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5924d1c293acSmrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
5925d1c293acSmrg
5926d1c293acSmrg  rm -f "$ac_tmp/stdin"
59278440cca4Smrg  case $ac_file in
5928d1c293acSmrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5929d1c293acSmrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5930d1c293acSmrg  esac \
5931d1c293acSmrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5932d1c293acSmrg ;;
5933d1c293acSmrg  :H)
5934d1c293acSmrg  #
5935d1c293acSmrg  # CONFIG_HEADER
5936d1c293acSmrg  #
59378440cca4Smrg  if test x"$ac_file" != x-; then
5938d1c293acSmrg    {
5939d1c293acSmrg      $as_echo "/* $configure_input  */" \
5940d1c293acSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5941d1c293acSmrg    } >"$ac_tmp/config.h" \
5942d1c293acSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5943d1c293acSmrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5944d1c293acSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5945d1c293acSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
59468440cca4Smrg    else
5947d1c293acSmrg      rm -f "$ac_file"
5948d1c293acSmrg      mv "$ac_tmp/config.h" "$ac_file" \
5949d1c293acSmrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
59508440cca4Smrg    fi
59518440cca4Smrg  else
5952d1c293acSmrg    $as_echo "/* $configure_input  */" \
5953d1c293acSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5954d1c293acSmrg      || as_fn_error $? "could not create -" "$LINENO" 5
59558440cca4Smrg  fi
5956d1c293acSmrg# Compute "$ac_file"'s index in $config_headers.
5957d1c293acSmrg_am_arg="$ac_file"
59588440cca4Smrg_am_stamp_count=1
59598440cca4Smrgfor _am_header in $config_headers :; do
59608440cca4Smrg  case $_am_header in
5961d1c293acSmrg    $_am_arg | $_am_arg:* )
59628440cca4Smrg      break ;;
59638440cca4Smrg    * )
59648440cca4Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
59658440cca4Smrg  esac
59668440cca4Smrgdone
5967d1c293acSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
5968d1c293acSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5969d1c293acSmrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
5970d1c293acSmrg	 X"$_am_arg" : 'X\(//\)$' \| \
5971d1c293acSmrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
5972d1c293acSmrg$as_echo X"$_am_arg" |
5973d1c293acSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5974d1c293acSmrg	    s//\1/
5975d1c293acSmrg	    q
5976d1c293acSmrg	  }
5977d1c293acSmrg	  /^X\(\/\/\)[^/].*/{
5978d1c293acSmrg	    s//\1/
5979d1c293acSmrg	    q
5980d1c293acSmrg	  }
5981d1c293acSmrg	  /^X\(\/\/\)$/{
5982d1c293acSmrg	    s//\1/
5983d1c293acSmrg	    q
5984d1c293acSmrg	  }
5985d1c293acSmrg	  /^X\(\/\).*/{
5986d1c293acSmrg	    s//\1/
5987d1c293acSmrg	    q
5988d1c293acSmrg	  }
5989d1c293acSmrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
5990d1c293acSmrg ;;
59918440cca4Smrg
5992d1c293acSmrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5993d1c293acSmrg$as_echo "$as_me: executing $ac_file commands" >&6;}
5994d1c293acSmrg ;;
5995d1c293acSmrg  esac
59968440cca4Smrg
59978440cca4Smrg
5998d1c293acSmrg  case $ac_file$ac_mode in
5999d1c293acSmrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6000d1c293acSmrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
6001d1c293acSmrg  # are listed without --file.  Let's play safe and only enable the eval
6002d1c293acSmrg  # if we detect the quoting.
6003d1c293acSmrg  case $CONFIG_FILES in
6004d1c293acSmrg  *\'*) eval set x "$CONFIG_FILES" ;;
6005d1c293acSmrg  *)   set x $CONFIG_FILES ;;
6006d1c293acSmrg  esac
6007d1c293acSmrg  shift
6008d1c293acSmrg  for mf
6009d1c293acSmrg  do
6010d1c293acSmrg    # Strip MF so we end up with the name of the file.
6011d1c293acSmrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
6012d1c293acSmrg    # Check whether this is an Automake generated Makefile or not.
6013d1c293acSmrg    # We used to match only the files named `Makefile.in', but
6014d1c293acSmrg    # some people rename them; so instead we look at the file content.
6015d1c293acSmrg    # Grep'ing the first line is not enough: some people post-process
6016d1c293acSmrg    # each Makefile.in and add a new line on top of each file to say so.
6017d1c293acSmrg    # Grep'ing the whole file is not good either: AIX grep has a line
6018d1c293acSmrg    # limit of 2048, but all sed's we know have understand at least 4000.
6019d1c293acSmrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6020d1c293acSmrg      dirpart=`$as_dirname -- "$mf" ||
60218440cca4Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
60228440cca4Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
60238440cca4Smrg	 X"$mf" : 'X\(//\)$' \| \
6024d1c293acSmrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6025d1c293acSmrg$as_echo X"$mf" |
6026d1c293acSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6027d1c293acSmrg	    s//\1/
6028d1c293acSmrg	    q
6029d1c293acSmrg	  }
6030d1c293acSmrg	  /^X\(\/\/\)[^/].*/{
6031d1c293acSmrg	    s//\1/
6032d1c293acSmrg	    q
6033d1c293acSmrg	  }
6034d1c293acSmrg	  /^X\(\/\/\)$/{
6035d1c293acSmrg	    s//\1/
6036d1c293acSmrg	    q
6037d1c293acSmrg	  }
6038d1c293acSmrg	  /^X\(\/\).*/{
6039d1c293acSmrg	    s//\1/
6040d1c293acSmrg	    q
6041d1c293acSmrg	  }
6042d1c293acSmrg	  s/.*/./; q'`
6043d1c293acSmrg    else
6044d1c293acSmrg      continue
6045d1c293acSmrg    fi
6046d1c293acSmrg    # Extract the definition of DEPDIR, am__include, and am__quote
6047d1c293acSmrg    # from the Makefile without running `make'.
6048d1c293acSmrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6049d1c293acSmrg    test -z "$DEPDIR" && continue
6050d1c293acSmrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
6051d1c293acSmrg    test -z "am__include" && continue
6052d1c293acSmrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6053d1c293acSmrg    # When using ansi2knr, U may be empty or an underscore; expand it
6054d1c293acSmrg    U=`sed -n 's/^U = //p' < "$mf"`
6055d1c293acSmrg    # Find all dependency output files, they are included files with
6056d1c293acSmrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
6057d1c293acSmrg    # simplest approach to changing $(DEPDIR) to its actual value in the
6058d1c293acSmrg    # expansion.
6059d1c293acSmrg    for file in `sed -n "
6060d1c293acSmrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6061d1c293acSmrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6062d1c293acSmrg      # Make sure the directory exists.
6063d1c293acSmrg      test -f "$dirpart/$file" && continue
6064d1c293acSmrg      fdir=`$as_dirname -- "$file" ||
60658440cca4Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
60668440cca4Smrg	 X"$file" : 'X\(//\)[^/]' \| \
60678440cca4Smrg	 X"$file" : 'X\(//\)$' \| \
6068d1c293acSmrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6069d1c293acSmrg$as_echo X"$file" |
6070d1c293acSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6071d1c293acSmrg	    s//\1/
6072d1c293acSmrg	    q
6073d1c293acSmrg	  }
6074d1c293acSmrg	  /^X\(\/\/\)[^/].*/{
6075d1c293acSmrg	    s//\1/
6076d1c293acSmrg	    q
6077d1c293acSmrg	  }
6078d1c293acSmrg	  /^X\(\/\/\)$/{
6079d1c293acSmrg	    s//\1/
6080d1c293acSmrg	    q
6081d1c293acSmrg	  }
6082d1c293acSmrg	  /^X\(\/\).*/{
6083d1c293acSmrg	    s//\1/
6084d1c293acSmrg	    q
6085d1c293acSmrg	  }
6086d1c293acSmrg	  s/.*/./; q'`
6087d1c293acSmrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
6088d1c293acSmrg      # echo "creating $dirpart/$file"
6089d1c293acSmrg      echo '# dummy' > "$dirpart/$file"
60908440cca4Smrg    done
60918440cca4Smrg  done
6092d1c293acSmrg}
60938440cca4Smrg ;;
6094d1c293acSmrg
60958440cca4Smrg  esac
6096d1c293acSmrgdone # for ac_tag
60978440cca4Smrg
60988440cca4Smrg
6099d1c293acSmrgas_fn_exit 0
61008440cca4Smrg_ACEOF
61018440cca4Smrgac_clean_files=$ac_clean_files_save
61028440cca4Smrg
6103d1c293acSmrgtest $ac_write_fail = 0 ||
6104d1c293acSmrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6105d1c293acSmrg
61068440cca4Smrg
61078440cca4Smrg# configure is writing to config.log, and then calls config.status.
61088440cca4Smrg# config.status does its own redirection, appending to config.log.
61098440cca4Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
61108440cca4Smrg# by configure, so config.status won't be able to write to it; its
61118440cca4Smrg# output is simply discarded.  So we exec the FD to /dev/null,
61128440cca4Smrg# effectively closing config.log, so it can be properly (re)opened and
61138440cca4Smrg# appended to by config.status.  When coming back to configure, we
61148440cca4Smrg# need to make the FD available again.
61158440cca4Smrgif test "$no_create" != yes; then
61168440cca4Smrg  ac_cs_success=:
61178440cca4Smrg  ac_config_status_args=
61188440cca4Smrg  test "$silent" = yes &&
61198440cca4Smrg    ac_config_status_args="$ac_config_status_args --quiet"
61208440cca4Smrg  exec 5>/dev/null
61218440cca4Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
61228440cca4Smrg  exec 5>>config.log
61238440cca4Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
61248440cca4Smrg  # would make configure fail if this is the last instruction.
6125d1c293acSmrg  $ac_cs_success || as_fn_exit 1
6126d1c293acSmrgfi
6127d1c293acSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6128d1c293acSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6129d1c293acSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
61308440cca4Smrgfi
61318440cca4Smrg
6132