configure revision 264fa531
1264fa531Smrg#! /bin/sh
2264fa531Smrg# Guess values for system-dependent variables and create Makefiles.
3264fa531Smrg# Generated by GNU Autoconf 2.59 for x11perf 1.4.1.
4264fa531Smrg#
5264fa531Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6264fa531Smrg#
7264fa531Smrg# Copyright (C) 2003 Free Software Foundation, Inc.
8264fa531Smrg# This configure script is free software; the Free Software Foundation
9264fa531Smrg# gives unlimited permission to copy, distribute and modify it.
10264fa531Smrg## --------------------- ##
11264fa531Smrg## M4sh Initialization.  ##
12264fa531Smrg## --------------------- ##
13264fa531Smrg
14264fa531Smrg# Be Bourne compatible
15264fa531Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16264fa531Smrg  emulate sh
17264fa531Smrg  NULLCMD=:
18264fa531Smrg  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19264fa531Smrg  # is contrary to our usage.  Disable this feature.
20264fa531Smrg  alias -g '${1+"$@"}'='"$@"'
21264fa531Smrgelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22264fa531Smrg  set -o posix
23264fa531Smrgfi
24264fa531SmrgDUALCASE=1; export DUALCASE # for MKS sh
25264fa531Smrg
26264fa531Smrg# Support unset when possible.
27264fa531Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28264fa531Smrg  as_unset=unset
29264fa531Smrgelse
30264fa531Smrg  as_unset=false
31264fa531Smrgfi
32264fa531Smrg
33264fa531Smrg
34264fa531Smrg# Work around bugs in pre-3.0 UWIN ksh.
35264fa531Smrg$as_unset ENV MAIL MAILPATH
36264fa531SmrgPS1='$ '
37264fa531SmrgPS2='> '
38264fa531SmrgPS4='+ '
39264fa531Smrg
40264fa531Smrg# NLS nuisances.
41264fa531Smrgfor as_var in \
42264fa531Smrg  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43264fa531Smrg  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44264fa531Smrg  LC_TELEPHONE LC_TIME
45264fa531Smrgdo
46264fa531Smrg  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47264fa531Smrg    eval $as_var=C; export $as_var
48264fa531Smrg  else
49264fa531Smrg    $as_unset $as_var
50264fa531Smrg  fi
51264fa531Smrgdone
52264fa531Smrg
53264fa531Smrg# Required to use basename.
54264fa531Smrgif expr a : '\(a\)' >/dev/null 2>&1; then
55264fa531Smrg  as_expr=expr
56264fa531Smrgelse
57264fa531Smrg  as_expr=false
58264fa531Smrgfi
59264fa531Smrg
60264fa531Smrgif (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61264fa531Smrg  as_basename=basename
62264fa531Smrgelse
63264fa531Smrg  as_basename=false
64264fa531Smrgfi
65264fa531Smrg
66264fa531Smrg
67264fa531Smrg# Name of the executable.
68264fa531Smrgas_me=`$as_basename "$0" ||
69264fa531Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70264fa531Smrg	 X"$0" : 'X\(//\)$' \| \
71264fa531Smrg	 X"$0" : 'X\(/\)$' \| \
72264fa531Smrg	 .     : '\(.\)' 2>/dev/null ||
73264fa531Smrgecho X/"$0" |
74264fa531Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75264fa531Smrg  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
76264fa531Smrg  	  /^X\/\(\/\).*/{ s//\1/; q; }
77264fa531Smrg  	  s/.*/./; q'`
78264fa531Smrg
79264fa531Smrg
80264fa531Smrg# PATH needs CR, and LINENO needs CR and PATH.
81264fa531Smrg# Avoid depending upon Character Ranges.
82264fa531Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
83264fa531Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84264fa531Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
85264fa531Smrgas_cr_digits='0123456789'
86264fa531Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
87264fa531Smrg
88264fa531Smrg# The user is always right.
89264fa531Smrgif test "${PATH_SEPARATOR+set}" != set; then
90264fa531Smrg  echo "#! /bin/sh" >conf$$.sh
91264fa531Smrg  echo  "exit 0"   >>conf$$.sh
92264fa531Smrg  chmod +x conf$$.sh
93264fa531Smrg  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94264fa531Smrg    PATH_SEPARATOR=';'
95264fa531Smrg  else
96264fa531Smrg    PATH_SEPARATOR=:
97264fa531Smrg  fi
98264fa531Smrg  rm -f conf$$.sh
99264fa531Smrgfi
100264fa531Smrg
101264fa531Smrg
102264fa531Smrg  as_lineno_1=$LINENO
103264fa531Smrg  as_lineno_2=$LINENO
104264fa531Smrg  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105264fa531Smrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
106264fa531Smrg  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107264fa531Smrg  # Find who we are.  Look in the path if we contain no path at all
108264fa531Smrg  # relative or not.
109264fa531Smrg  case $0 in
110264fa531Smrg    *[\\/]* ) as_myself=$0 ;;
111264fa531Smrg    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112264fa531Smrgfor as_dir in $PATH
113264fa531Smrgdo
114264fa531Smrg  IFS=$as_save_IFS
115264fa531Smrg  test -z "$as_dir" && as_dir=.
116264fa531Smrg  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117264fa531Smrgdone
118264fa531Smrg
119264fa531Smrg       ;;
120264fa531Smrg  esac
121264fa531Smrg  # We did not find ourselves, most probably we were run as `sh COMMAND'
122264fa531Smrg  # in which case we are not to be found in the path.
123264fa531Smrg  if test "x$as_myself" = x; then
124264fa531Smrg    as_myself=$0
125264fa531Smrg  fi
126264fa531Smrg  if test ! -f "$as_myself"; then
127264fa531Smrg    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128264fa531Smrg   { (exit 1); exit 1; }; }
129264fa531Smrg  fi
130264fa531Smrg  case $CONFIG_SHELL in
131264fa531Smrg  '')
132264fa531Smrg    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133264fa531Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134264fa531Smrgdo
135264fa531Smrg  IFS=$as_save_IFS
136264fa531Smrg  test -z "$as_dir" && as_dir=.
137264fa531Smrg  for as_base in sh bash ksh sh5; do
138264fa531Smrg	 case $as_dir in
139264fa531Smrg	 /*)
140264fa531Smrg	   if ("$as_dir/$as_base" -c '
141264fa531Smrg  as_lineno_1=$LINENO
142264fa531Smrg  as_lineno_2=$LINENO
143264fa531Smrg  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144264fa531Smrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
145264fa531Smrg  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146264fa531Smrg	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147264fa531Smrg	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148264fa531Smrg	     CONFIG_SHELL=$as_dir/$as_base
149264fa531Smrg	     export CONFIG_SHELL
150264fa531Smrg	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151264fa531Smrg	   fi;;
152264fa531Smrg	 esac
153264fa531Smrg       done
154264fa531Smrgdone
155264fa531Smrg;;
156264fa531Smrg  esac
157264fa531Smrg
158264fa531Smrg  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159264fa531Smrg  # uniformly replaced by the line number.  The first 'sed' inserts a
160264fa531Smrg  # line-number line before each line; the second 'sed' does the real
161264fa531Smrg  # work.  The second script uses 'N' to pair each line-number line
162264fa531Smrg  # with the numbered line, and appends trailing '-' during
163264fa531Smrg  # substitution so that $LINENO is not a special case at line end.
164264fa531Smrg  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165264fa531Smrg  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166264fa531Smrg  sed '=' <$as_myself |
167264fa531Smrg    sed '
168264fa531Smrg      N
169264fa531Smrg      s,$,-,
170264fa531Smrg      : loop
171264fa531Smrg      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172264fa531Smrg      t loop
173264fa531Smrg      s,-$,,
174264fa531Smrg      s,^['$as_cr_digits']*\n,,
175264fa531Smrg    ' >$as_me.lineno &&
176264fa531Smrg  chmod +x $as_me.lineno ||
177264fa531Smrg    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178264fa531Smrg   { (exit 1); exit 1; }; }
179264fa531Smrg
180264fa531Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
181264fa531Smrg  # (the dirname of $[0] is not the place where we might find the
182264fa531Smrg  # original and so on.  Autoconf is especially sensible to this).
183264fa531Smrg  . ./$as_me.lineno
184264fa531Smrg  # Exit status is that of the last command.
185264fa531Smrg  exit
186264fa531Smrg}
187264fa531Smrg
188264fa531Smrg
189264fa531Smrgcase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190264fa531Smrg  *c*,-n*) ECHO_N= ECHO_C='
191264fa531Smrg' ECHO_T='	' ;;
192264fa531Smrg  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193264fa531Smrg  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194264fa531Smrgesac
195264fa531Smrg
196264fa531Smrgif expr a : '\(a\)' >/dev/null 2>&1; then
197264fa531Smrg  as_expr=expr
198264fa531Smrgelse
199264fa531Smrg  as_expr=false
200264fa531Smrgfi
201264fa531Smrg
202264fa531Smrgrm -f conf$$ conf$$.exe conf$$.file
203264fa531Smrgecho >conf$$.file
204264fa531Smrgif ln -s conf$$.file conf$$ 2>/dev/null; then
205264fa531Smrg  # We could just check for DJGPP; but this test a) works b) is more generic
206264fa531Smrg  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207264fa531Smrg  if test -f conf$$.exe; then
208264fa531Smrg    # Don't use ln at all; we don't have any links
209264fa531Smrg    as_ln_s='cp -p'
210264fa531Smrg  else
211264fa531Smrg    as_ln_s='ln -s'
212264fa531Smrg  fi
213264fa531Smrgelif ln conf$$.file conf$$ 2>/dev/null; then
214264fa531Smrg  as_ln_s=ln
215264fa531Smrgelse
216264fa531Smrg  as_ln_s='cp -p'
217264fa531Smrgfi
218264fa531Smrgrm -f conf$$ conf$$.exe conf$$.file
219264fa531Smrg
220264fa531Smrgif mkdir -p . 2>/dev/null; then
221264fa531Smrg  as_mkdir_p=:
222264fa531Smrgelse
223264fa531Smrg  test -d ./-p && rmdir ./-p
224264fa531Smrg  as_mkdir_p=false
225264fa531Smrgfi
226264fa531Smrg
227264fa531Smrgas_executable_p="test -f"
228264fa531Smrg
229264fa531Smrg# Sed expression to map a string onto a valid CPP name.
230264fa531Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231264fa531Smrg
232264fa531Smrg# Sed expression to map a string onto a valid variable name.
233264fa531Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234264fa531Smrg
235264fa531Smrg
236264fa531Smrg# IFS
237264fa531Smrg# We need space, tab and new line, in precisely that order.
238264fa531Smrgas_nl='
239264fa531Smrg'
240264fa531SmrgIFS=" 	$as_nl"
241264fa531Smrg
242264fa531Smrg# CDPATH.
243264fa531Smrg$as_unset CDPATH
244264fa531Smrg
245264fa531Smrg
246264fa531Smrg# Name of the host.
247264fa531Smrg# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248264fa531Smrg# so uname gets run too.
249264fa531Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250264fa531Smrg
251264fa531Smrgexec 6>&1
252264fa531Smrg
253264fa531Smrg#
254264fa531Smrg# Initializations.
255264fa531Smrg#
256264fa531Smrgac_default_prefix=/usr/local
257264fa531Smrgac_config_libobj_dir=.
258264fa531Smrgcross_compiling=no
259264fa531Smrgsubdirs=
260264fa531SmrgMFLAGS=
261264fa531SmrgMAKEFLAGS=
262264fa531SmrgSHELL=${CONFIG_SHELL-/bin/sh}
263264fa531Smrg
264264fa531Smrg# Maximum number of lines to put in a shell here document.
265264fa531Smrg# This variable seems obsolete.  It should probably be removed, and
266264fa531Smrg# only ac_max_sed_lines should be used.
267264fa531Smrg: ${ac_max_here_lines=38}
268264fa531Smrg
269264fa531Smrg# Identity of this package.
270264fa531SmrgPACKAGE_NAME='x11perf'
271264fa531SmrgPACKAGE_TARNAME='x11perf'
272264fa531SmrgPACKAGE_VERSION='1.4.1'
273264fa531SmrgPACKAGE_STRING='x11perf 1.4.1'
274264fa531SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
275264fa531Smrg
276264fa531Smrgac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE SED PKG_CONFIG ac_pt_PKG_CONFIG X11PERF_CFLAGS X11PERF_LIBS XRENDER_CFLAGS XRENDER_LIBS XFT_CFLAGS XFT_LIBS XEXT_CFLAGS XEXT_LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os APP_MAN_SUFFIX LIB_MAN_SUFFIX FILE_MAN_SUFFIX MISC_MAN_SUFFIX DRIVER_MAN_SUFFIX ADMIN_MAN_SUFFIX APP_MAN_DIR LIB_MAN_DIR FILE_MAN_DIR MISC_MAN_DIR DRIVER_MAN_DIR ADMIN_MAN_DIR LIBOBJS LTLIBOBJS'
277264fa531Smrgac_subst_files=''
278264fa531Smrg
279264fa531Smrg# Initialize some variables set by options.
280264fa531Smrgac_init_help=
281264fa531Smrgac_init_version=false
282264fa531Smrg# The variables have the same names as the options, with
283264fa531Smrg# dashes changed to underlines.
284264fa531Smrgcache_file=/dev/null
285264fa531Smrgexec_prefix=NONE
286264fa531Smrgno_create=
287264fa531Smrgno_recursion=
288264fa531Smrgprefix=NONE
289264fa531Smrgprogram_prefix=NONE
290264fa531Smrgprogram_suffix=NONE
291264fa531Smrgprogram_transform_name=s,x,x,
292264fa531Smrgsilent=
293264fa531Smrgsite=
294264fa531Smrgsrcdir=
295264fa531Smrgverbose=
296264fa531Smrgx_includes=NONE
297264fa531Smrgx_libraries=NONE
298264fa531Smrg
299264fa531Smrg# Installation directory options.
300264fa531Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
301264fa531Smrg# and all the variables that are supposed to be based on exec_prefix
302264fa531Smrg# by default will actually change.
303264fa531Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
304264fa531Smrgbindir='${exec_prefix}/bin'
305264fa531Smrgsbindir='${exec_prefix}/sbin'
306264fa531Smrglibexecdir='${exec_prefix}/libexec'
307264fa531Smrgdatadir='${prefix}/share'
308264fa531Smrgsysconfdir='${prefix}/etc'
309264fa531Smrgsharedstatedir='${prefix}/com'
310264fa531Smrglocalstatedir='${prefix}/var'
311264fa531Smrglibdir='${exec_prefix}/lib'
312264fa531Smrgincludedir='${prefix}/include'
313264fa531Smrgoldincludedir='/usr/include'
314264fa531Smrginfodir='${prefix}/info'
315264fa531Smrgmandir='${prefix}/man'
316264fa531Smrg
317264fa531Smrgac_prev=
318264fa531Smrgfor ac_option
319264fa531Smrgdo
320264fa531Smrg  # If the previous option needs an argument, assign it.
321264fa531Smrg  if test -n "$ac_prev"; then
322264fa531Smrg    eval "$ac_prev=\$ac_option"
323264fa531Smrg    ac_prev=
324264fa531Smrg    continue
325264fa531Smrg  fi
326264fa531Smrg
327264fa531Smrg  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328264fa531Smrg
329264fa531Smrg  # Accept the important Cygnus configure options, so we can diagnose typos.
330264fa531Smrg
331264fa531Smrg  case $ac_option in
332264fa531Smrg
333264fa531Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
334264fa531Smrg    ac_prev=bindir ;;
335264fa531Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
336264fa531Smrg    bindir=$ac_optarg ;;
337264fa531Smrg
338264fa531Smrg  -build | --build | --buil | --bui | --bu)
339264fa531Smrg    ac_prev=build_alias ;;
340264fa531Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341264fa531Smrg    build_alias=$ac_optarg ;;
342264fa531Smrg
343264fa531Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
344264fa531Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345264fa531Smrg    ac_prev=cache_file ;;
346264fa531Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347264fa531Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
348264fa531Smrg    cache_file=$ac_optarg ;;
349264fa531Smrg
350264fa531Smrg  --config-cache | -C)
351264fa531Smrg    cache_file=config.cache ;;
352264fa531Smrg
353264fa531Smrg  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354264fa531Smrg    ac_prev=datadir ;;
355264fa531Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356264fa531Smrg  | --da=*)
357264fa531Smrg    datadir=$ac_optarg ;;
358264fa531Smrg
359264fa531Smrg  -disable-* | --disable-*)
360264fa531Smrg    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
361264fa531Smrg    # Reject names that are not valid shell variable names.
362264fa531Smrg    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
363264fa531Smrg      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364264fa531Smrg   { (exit 1); exit 1; }; }
365264fa531Smrg    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366264fa531Smrg    eval "enable_$ac_feature=no" ;;
367264fa531Smrg
368264fa531Smrg  -enable-* | --enable-*)
369264fa531Smrg    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
370264fa531Smrg    # Reject names that are not valid shell variable names.
371264fa531Smrg    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
372264fa531Smrg      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373264fa531Smrg   { (exit 1); exit 1; }; }
374264fa531Smrg    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375264fa531Smrg    case $ac_option in
376264fa531Smrg      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
377264fa531Smrg      *) ac_optarg=yes ;;
378264fa531Smrg    esac
379264fa531Smrg    eval "enable_$ac_feature='$ac_optarg'" ;;
380264fa531Smrg
381264fa531Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382264fa531Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383264fa531Smrg  | --exec | --exe | --ex)
384264fa531Smrg    ac_prev=exec_prefix ;;
385264fa531Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386264fa531Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387264fa531Smrg  | --exec=* | --exe=* | --ex=*)
388264fa531Smrg    exec_prefix=$ac_optarg ;;
389264fa531Smrg
390264fa531Smrg  -gas | --gas | --ga | --g)
391264fa531Smrg    # Obsolete; use --with-gas.
392264fa531Smrg    with_gas=yes ;;
393264fa531Smrg
394264fa531Smrg  -help | --help | --hel | --he | -h)
395264fa531Smrg    ac_init_help=long ;;
396264fa531Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397264fa531Smrg    ac_init_help=recursive ;;
398264fa531Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399264fa531Smrg    ac_init_help=short ;;
400264fa531Smrg
401264fa531Smrg  -host | --host | --hos | --ho)
402264fa531Smrg    ac_prev=host_alias ;;
403264fa531Smrg  -host=* | --host=* | --hos=* | --ho=*)
404264fa531Smrg    host_alias=$ac_optarg ;;
405264fa531Smrg
406264fa531Smrg  -includedir | --includedir | --includedi | --included | --include \
407264fa531Smrg  | --includ | --inclu | --incl | --inc)
408264fa531Smrg    ac_prev=includedir ;;
409264fa531Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410264fa531Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
411264fa531Smrg    includedir=$ac_optarg ;;
412264fa531Smrg
413264fa531Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
414264fa531Smrg    ac_prev=infodir ;;
415264fa531Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416264fa531Smrg    infodir=$ac_optarg ;;
417264fa531Smrg
418264fa531Smrg  -libdir | --libdir | --libdi | --libd)
419264fa531Smrg    ac_prev=libdir ;;
420264fa531Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
421264fa531Smrg    libdir=$ac_optarg ;;
422264fa531Smrg
423264fa531Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424264fa531Smrg  | --libexe | --libex | --libe)
425264fa531Smrg    ac_prev=libexecdir ;;
426264fa531Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427264fa531Smrg  | --libexe=* | --libex=* | --libe=*)
428264fa531Smrg    libexecdir=$ac_optarg ;;
429264fa531Smrg
430264fa531Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
431264fa531Smrg  | --localstate | --localstat | --localsta | --localst \
432264fa531Smrg  | --locals | --local | --loca | --loc | --lo)
433264fa531Smrg    ac_prev=localstatedir ;;
434264fa531Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
435264fa531Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436264fa531Smrg  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
437264fa531Smrg    localstatedir=$ac_optarg ;;
438264fa531Smrg
439264fa531Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440264fa531Smrg    ac_prev=mandir ;;
441264fa531Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
442264fa531Smrg    mandir=$ac_optarg ;;
443264fa531Smrg
444264fa531Smrg  -nfp | --nfp | --nf)
445264fa531Smrg    # Obsolete; use --without-fp.
446264fa531Smrg    with_fp=no ;;
447264fa531Smrg
448264fa531Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449264fa531Smrg  | --no-cr | --no-c | -n)
450264fa531Smrg    no_create=yes ;;
451264fa531Smrg
452264fa531Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453264fa531Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
454264fa531Smrg    no_recursion=yes ;;
455264fa531Smrg
456264fa531Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457264fa531Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458264fa531Smrg  | --oldin | --oldi | --old | --ol | --o)
459264fa531Smrg    ac_prev=oldincludedir ;;
460264fa531Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461264fa531Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462264fa531Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
463264fa531Smrg    oldincludedir=$ac_optarg ;;
464264fa531Smrg
465264fa531Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466264fa531Smrg    ac_prev=prefix ;;
467264fa531Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
468264fa531Smrg    prefix=$ac_optarg ;;
469264fa531Smrg
470264fa531Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
471264fa531Smrg  | --program-pre | --program-pr | --program-p)
472264fa531Smrg    ac_prev=program_prefix ;;
473264fa531Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
474264fa531Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
475264fa531Smrg    program_prefix=$ac_optarg ;;
476264fa531Smrg
477264fa531Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
478264fa531Smrg  | --program-suf | --program-su | --program-s)
479264fa531Smrg    ac_prev=program_suffix ;;
480264fa531Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
481264fa531Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
482264fa531Smrg    program_suffix=$ac_optarg ;;
483264fa531Smrg
484264fa531Smrg  -program-transform-name | --program-transform-name \
485264fa531Smrg  | --program-transform-nam | --program-transform-na \
486264fa531Smrg  | --program-transform-n | --program-transform- \
487264fa531Smrg  | --program-transform | --program-transfor \
488264fa531Smrg  | --program-transfo | --program-transf \
489264fa531Smrg  | --program-trans | --program-tran \
490264fa531Smrg  | --progr-tra | --program-tr | --program-t)
491264fa531Smrg    ac_prev=program_transform_name ;;
492264fa531Smrg  -program-transform-name=* | --program-transform-name=* \
493264fa531Smrg  | --program-transform-nam=* | --program-transform-na=* \
494264fa531Smrg  | --program-transform-n=* | --program-transform-=* \
495264fa531Smrg  | --program-transform=* | --program-transfor=* \
496264fa531Smrg  | --program-transfo=* | --program-transf=* \
497264fa531Smrg  | --program-trans=* | --program-tran=* \
498264fa531Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
499264fa531Smrg    program_transform_name=$ac_optarg ;;
500264fa531Smrg
501264fa531Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502264fa531Smrg  | -silent | --silent | --silen | --sile | --sil)
503264fa531Smrg    silent=yes ;;
504264fa531Smrg
505264fa531Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506264fa531Smrg    ac_prev=sbindir ;;
507264fa531Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508264fa531Smrg  | --sbi=* | --sb=*)
509264fa531Smrg    sbindir=$ac_optarg ;;
510264fa531Smrg
511264fa531Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
512264fa531Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513264fa531Smrg  | --sharedst | --shareds | --shared | --share | --shar \
514264fa531Smrg  | --sha | --sh)
515264fa531Smrg    ac_prev=sharedstatedir ;;
516264fa531Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517264fa531Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518264fa531Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519264fa531Smrg  | --sha=* | --sh=*)
520264fa531Smrg    sharedstatedir=$ac_optarg ;;
521264fa531Smrg
522264fa531Smrg  -site | --site | --sit)
523264fa531Smrg    ac_prev=site ;;
524264fa531Smrg  -site=* | --site=* | --sit=*)
525264fa531Smrg    site=$ac_optarg ;;
526264fa531Smrg
527264fa531Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528264fa531Smrg    ac_prev=srcdir ;;
529264fa531Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
530264fa531Smrg    srcdir=$ac_optarg ;;
531264fa531Smrg
532264fa531Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533264fa531Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
534264fa531Smrg    ac_prev=sysconfdir ;;
535264fa531Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536264fa531Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
537264fa531Smrg    sysconfdir=$ac_optarg ;;
538264fa531Smrg
539264fa531Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
540264fa531Smrg    ac_prev=target_alias ;;
541264fa531Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
542264fa531Smrg    target_alias=$ac_optarg ;;
543264fa531Smrg
544264fa531Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
545264fa531Smrg    verbose=yes ;;
546264fa531Smrg
547264fa531Smrg  -version | --version | --versio | --versi | --vers | -V)
548264fa531Smrg    ac_init_version=: ;;
549264fa531Smrg
550264fa531Smrg  -with-* | --with-*)
551264fa531Smrg    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
552264fa531Smrg    # Reject names that are not valid shell variable names.
553264fa531Smrg    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554264fa531Smrg      { echo "$as_me: error: invalid package name: $ac_package" >&2
555264fa531Smrg   { (exit 1); exit 1; }; }
556264fa531Smrg    ac_package=`echo $ac_package| sed 's/-/_/g'`
557264fa531Smrg    case $ac_option in
558264fa531Smrg      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
559264fa531Smrg      *) ac_optarg=yes ;;
560264fa531Smrg    esac
561264fa531Smrg    eval "with_$ac_package='$ac_optarg'" ;;
562264fa531Smrg
563264fa531Smrg  -without-* | --without-*)
564264fa531Smrg    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
565264fa531Smrg    # Reject names that are not valid shell variable names.
566264fa531Smrg    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567264fa531Smrg      { echo "$as_me: error: invalid package name: $ac_package" >&2
568264fa531Smrg   { (exit 1); exit 1; }; }
569264fa531Smrg    ac_package=`echo $ac_package | sed 's/-/_/g'`
570264fa531Smrg    eval "with_$ac_package=no" ;;
571264fa531Smrg
572264fa531Smrg  --x)
573264fa531Smrg    # Obsolete; use --with-x.
574264fa531Smrg    with_x=yes ;;
575264fa531Smrg
576264fa531Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577264fa531Smrg  | --x-incl | --x-inc | --x-in | --x-i)
578264fa531Smrg    ac_prev=x_includes ;;
579264fa531Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580264fa531Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
581264fa531Smrg    x_includes=$ac_optarg ;;
582264fa531Smrg
583264fa531Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
584264fa531Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585264fa531Smrg    ac_prev=x_libraries ;;
586264fa531Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587264fa531Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
588264fa531Smrg    x_libraries=$ac_optarg ;;
589264fa531Smrg
590264fa531Smrg  -*) { echo "$as_me: error: unrecognized option: $ac_option
591264fa531SmrgTry \`$0 --help' for more information." >&2
592264fa531Smrg   { (exit 1); exit 1; }; }
593264fa531Smrg    ;;
594264fa531Smrg
595264fa531Smrg  *=*)
596264fa531Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597264fa531Smrg    # Reject names that are not valid shell variable names.
598264fa531Smrg    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599264fa531Smrg      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600264fa531Smrg   { (exit 1); exit 1; }; }
601264fa531Smrg    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602264fa531Smrg    eval "$ac_envvar='$ac_optarg'"
603264fa531Smrg    export $ac_envvar ;;
604264fa531Smrg
605264fa531Smrg  *)
606264fa531Smrg    # FIXME: should be removed in autoconf 3.0.
607264fa531Smrg    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608264fa531Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609264fa531Smrg      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610264fa531Smrg    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
611264fa531Smrg    ;;
612264fa531Smrg
613264fa531Smrg  esac
614264fa531Smrgdone
615264fa531Smrg
616264fa531Smrgif test -n "$ac_prev"; then
617264fa531Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618264fa531Smrg  { echo "$as_me: error: missing argument to $ac_option" >&2
619264fa531Smrg   { (exit 1); exit 1; }; }
620264fa531Smrgfi
621264fa531Smrg
622264fa531Smrg# Be sure to have absolute paths.
623264fa531Smrgfor ac_var in exec_prefix prefix
624264fa531Smrgdo
625264fa531Smrg  eval ac_val=$`echo $ac_var`
626264fa531Smrg  case $ac_val in
627264fa531Smrg    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628264fa531Smrg    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629264fa531Smrg   { (exit 1); exit 1; }; };;
630264fa531Smrg  esac
631264fa531Smrgdone
632264fa531Smrg
633264fa531Smrg# Be sure to have absolute paths.
634264fa531Smrgfor ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635264fa531Smrg	      localstatedir libdir includedir oldincludedir infodir mandir
636264fa531Smrgdo
637264fa531Smrg  eval ac_val=$`echo $ac_var`
638264fa531Smrg  case $ac_val in
639264fa531Smrg    [\\/$]* | ?:[\\/]* ) ;;
640264fa531Smrg    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641264fa531Smrg   { (exit 1); exit 1; }; };;
642264fa531Smrg  esac
643264fa531Smrgdone
644264fa531Smrg
645264fa531Smrg# There might be people who depend on the old broken behavior: `$host'
646264fa531Smrg# used to hold the argument of --host etc.
647264fa531Smrg# FIXME: To remove some day.
648264fa531Smrgbuild=$build_alias
649264fa531Smrghost=$host_alias
650264fa531Smrgtarget=$target_alias
651264fa531Smrg
652264fa531Smrg# FIXME: To remove some day.
653264fa531Smrgif test "x$host_alias" != x; then
654264fa531Smrg  if test "x$build_alias" = x; then
655264fa531Smrg    cross_compiling=maybe
656264fa531Smrg    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657264fa531Smrg    If a cross compiler is detected then cross compile mode will be used." >&2
658264fa531Smrg  elif test "x$build_alias" != "x$host_alias"; then
659264fa531Smrg    cross_compiling=yes
660264fa531Smrg  fi
661264fa531Smrgfi
662264fa531Smrg
663264fa531Smrgac_tool_prefix=
664264fa531Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
665264fa531Smrg
666264fa531Smrgtest "$silent" = yes && exec 6>/dev/null
667264fa531Smrg
668264fa531Smrg
669264fa531Smrg# Find the source files, if location was not specified.
670264fa531Smrgif test -z "$srcdir"; then
671264fa531Smrg  ac_srcdir_defaulted=yes
672264fa531Smrg  # Try the directory containing this script, then its parent.
673264fa531Smrg  ac_confdir=`(dirname "$0") 2>/dev/null ||
674264fa531Smrg$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675264fa531Smrg	 X"$0" : 'X\(//\)[^/]' \| \
676264fa531Smrg	 X"$0" : 'X\(//\)$' \| \
677264fa531Smrg	 X"$0" : 'X\(/\)' \| \
678264fa531Smrg	 .     : '\(.\)' 2>/dev/null ||
679264fa531Smrgecho X"$0" |
680264fa531Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681264fa531Smrg  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682264fa531Smrg  	  /^X\(\/\/\)$/{ s//\1/; q; }
683264fa531Smrg  	  /^X\(\/\).*/{ s//\1/; q; }
684264fa531Smrg  	  s/.*/./; q'`
685264fa531Smrg  srcdir=$ac_confdir
686264fa531Smrg  if test ! -r $srcdir/$ac_unique_file; then
687264fa531Smrg    srcdir=..
688264fa531Smrg  fi
689264fa531Smrgelse
690264fa531Smrg  ac_srcdir_defaulted=no
691264fa531Smrgfi
692264fa531Smrgif test ! -r $srcdir/$ac_unique_file; then
693264fa531Smrg  if test "$ac_srcdir_defaulted" = yes; then
694264fa531Smrg    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695264fa531Smrg   { (exit 1); exit 1; }; }
696264fa531Smrg  else
697264fa531Smrg    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698264fa531Smrg   { (exit 1); exit 1; }; }
699264fa531Smrg  fi
700264fa531Smrgfi
701264fa531Smrg(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702264fa531Smrg  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
703264fa531Smrg   { (exit 1); exit 1; }; }
704264fa531Smrgsrcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705264fa531Smrgac_env_build_alias_set=${build_alias+set}
706264fa531Smrgac_env_build_alias_value=$build_alias
707264fa531Smrgac_cv_env_build_alias_set=${build_alias+set}
708264fa531Smrgac_cv_env_build_alias_value=$build_alias
709264fa531Smrgac_env_host_alias_set=${host_alias+set}
710264fa531Smrgac_env_host_alias_value=$host_alias
711264fa531Smrgac_cv_env_host_alias_set=${host_alias+set}
712264fa531Smrgac_cv_env_host_alias_value=$host_alias
713264fa531Smrgac_env_target_alias_set=${target_alias+set}
714264fa531Smrgac_env_target_alias_value=$target_alias
715264fa531Smrgac_cv_env_target_alias_set=${target_alias+set}
716264fa531Smrgac_cv_env_target_alias_value=$target_alias
717264fa531Smrgac_env_CC_set=${CC+set}
718264fa531Smrgac_env_CC_value=$CC
719264fa531Smrgac_cv_env_CC_set=${CC+set}
720264fa531Smrgac_cv_env_CC_value=$CC
721264fa531Smrgac_env_CFLAGS_set=${CFLAGS+set}
722264fa531Smrgac_env_CFLAGS_value=$CFLAGS
723264fa531Smrgac_cv_env_CFLAGS_set=${CFLAGS+set}
724264fa531Smrgac_cv_env_CFLAGS_value=$CFLAGS
725264fa531Smrgac_env_LDFLAGS_set=${LDFLAGS+set}
726264fa531Smrgac_env_LDFLAGS_value=$LDFLAGS
727264fa531Smrgac_cv_env_LDFLAGS_set=${LDFLAGS+set}
728264fa531Smrgac_cv_env_LDFLAGS_value=$LDFLAGS
729264fa531Smrgac_env_CPPFLAGS_set=${CPPFLAGS+set}
730264fa531Smrgac_env_CPPFLAGS_value=$CPPFLAGS
731264fa531Smrgac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
732264fa531Smrgac_cv_env_CPPFLAGS_value=$CPPFLAGS
733264fa531Smrgac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
734264fa531Smrgac_env_PKG_CONFIG_value=$PKG_CONFIG
735264fa531Smrgac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
736264fa531Smrgac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
737264fa531Smrgac_env_X11PERF_CFLAGS_set=${X11PERF_CFLAGS+set}
738264fa531Smrgac_env_X11PERF_CFLAGS_value=$X11PERF_CFLAGS
739264fa531Smrgac_cv_env_X11PERF_CFLAGS_set=${X11PERF_CFLAGS+set}
740264fa531Smrgac_cv_env_X11PERF_CFLAGS_value=$X11PERF_CFLAGS
741264fa531Smrgac_env_X11PERF_LIBS_set=${X11PERF_LIBS+set}
742264fa531Smrgac_env_X11PERF_LIBS_value=$X11PERF_LIBS
743264fa531Smrgac_cv_env_X11PERF_LIBS_set=${X11PERF_LIBS+set}
744264fa531Smrgac_cv_env_X11PERF_LIBS_value=$X11PERF_LIBS
745264fa531Smrgac_env_XRENDER_CFLAGS_set=${XRENDER_CFLAGS+set}
746264fa531Smrgac_env_XRENDER_CFLAGS_value=$XRENDER_CFLAGS
747264fa531Smrgac_cv_env_XRENDER_CFLAGS_set=${XRENDER_CFLAGS+set}
748264fa531Smrgac_cv_env_XRENDER_CFLAGS_value=$XRENDER_CFLAGS
749264fa531Smrgac_env_XRENDER_LIBS_set=${XRENDER_LIBS+set}
750264fa531Smrgac_env_XRENDER_LIBS_value=$XRENDER_LIBS
751264fa531Smrgac_cv_env_XRENDER_LIBS_set=${XRENDER_LIBS+set}
752264fa531Smrgac_cv_env_XRENDER_LIBS_value=$XRENDER_LIBS
753264fa531Smrgac_env_XFT_CFLAGS_set=${XFT_CFLAGS+set}
754264fa531Smrgac_env_XFT_CFLAGS_value=$XFT_CFLAGS
755264fa531Smrgac_cv_env_XFT_CFLAGS_set=${XFT_CFLAGS+set}
756264fa531Smrgac_cv_env_XFT_CFLAGS_value=$XFT_CFLAGS
757264fa531Smrgac_env_XFT_LIBS_set=${XFT_LIBS+set}
758264fa531Smrgac_env_XFT_LIBS_value=$XFT_LIBS
759264fa531Smrgac_cv_env_XFT_LIBS_set=${XFT_LIBS+set}
760264fa531Smrgac_cv_env_XFT_LIBS_value=$XFT_LIBS
761264fa531Smrgac_env_XEXT_CFLAGS_set=${XEXT_CFLAGS+set}
762264fa531Smrgac_env_XEXT_CFLAGS_value=$XEXT_CFLAGS
763264fa531Smrgac_cv_env_XEXT_CFLAGS_set=${XEXT_CFLAGS+set}
764264fa531Smrgac_cv_env_XEXT_CFLAGS_value=$XEXT_CFLAGS
765264fa531Smrgac_env_XEXT_LIBS_set=${XEXT_LIBS+set}
766264fa531Smrgac_env_XEXT_LIBS_value=$XEXT_LIBS
767264fa531Smrgac_cv_env_XEXT_LIBS_set=${XEXT_LIBS+set}
768264fa531Smrgac_cv_env_XEXT_LIBS_value=$XEXT_LIBS
769264fa531Smrg
770264fa531Smrg#
771264fa531Smrg# Report the --help message.
772264fa531Smrg#
773264fa531Smrgif test "$ac_init_help" = "long"; then
774264fa531Smrg  # Omit some internal or obsolete options to make the list less imposing.
775264fa531Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
776264fa531Smrg  cat <<_ACEOF
777264fa531Smrg\`configure' configures x11perf 1.4.1 to adapt to many kinds of systems.
778264fa531Smrg
779264fa531SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
780264fa531Smrg
781264fa531SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
782264fa531SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
783264fa531Smrg
784264fa531SmrgDefaults for the options are specified in brackets.
785264fa531Smrg
786264fa531SmrgConfiguration:
787264fa531Smrg  -h, --help              display this help and exit
788264fa531Smrg      --help=short        display options specific to this package
789264fa531Smrg      --help=recursive    display the short help of all the included packages
790264fa531Smrg  -V, --version           display version information and exit
791264fa531Smrg  -q, --quiet, --silent   do not print \`checking...' messages
792264fa531Smrg      --cache-file=FILE   cache test results in FILE [disabled]
793264fa531Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
794264fa531Smrg  -n, --no-create         do not create output files
795264fa531Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
796264fa531Smrg
797264fa531Smrg_ACEOF
798264fa531Smrg
799264fa531Smrg  cat <<_ACEOF
800264fa531SmrgInstallation directories:
801264fa531Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
802264fa531Smrg			  [$ac_default_prefix]
803264fa531Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
804264fa531Smrg			  [PREFIX]
805264fa531Smrg
806264fa531SmrgBy default, \`make install' will install all the files in
807264fa531Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
808264fa531Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
809264fa531Smrgfor instance \`--prefix=\$HOME'.
810264fa531Smrg
811264fa531SmrgFor better control, use the options below.
812264fa531Smrg
813264fa531SmrgFine tuning of the installation directories:
814264fa531Smrg  --bindir=DIR           user executables [EPREFIX/bin]
815264fa531Smrg  --sbindir=DIR          system admin executables [EPREFIX/sbin]
816264fa531Smrg  --libexecdir=DIR       program executables [EPREFIX/libexec]
817264fa531Smrg  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
818264fa531Smrg  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
819264fa531Smrg  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
820264fa531Smrg  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
821264fa531Smrg  --libdir=DIR           object code libraries [EPREFIX/lib]
822264fa531Smrg  --includedir=DIR       C header files [PREFIX/include]
823264fa531Smrg  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
824264fa531Smrg  --infodir=DIR          info documentation [PREFIX/info]
825264fa531Smrg  --mandir=DIR           man documentation [PREFIX/man]
826264fa531Smrg_ACEOF
827264fa531Smrg
828264fa531Smrg  cat <<\_ACEOF
829264fa531Smrg
830264fa531SmrgProgram names:
831264fa531Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
832264fa531Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
833264fa531Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
834264fa531Smrg
835264fa531SmrgSystem types:
836264fa531Smrg  --build=BUILD     configure for building on BUILD [guessed]
837264fa531Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
838264fa531Smrg_ACEOF
839264fa531Smrgfi
840264fa531Smrg
841264fa531Smrgif test -n "$ac_init_help"; then
842264fa531Smrg  case $ac_init_help in
843264fa531Smrg     short | recursive ) echo "Configuration of x11perf 1.4.1:";;
844264fa531Smrg   esac
845264fa531Smrg  cat <<\_ACEOF
846264fa531Smrg
847264fa531SmrgOptional Features:
848264fa531Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
849264fa531Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
850264fa531Smrg  --enable-maintainer-mode enable make rules and dependencies not useful
851264fa531Smrg                          (and sometimes confusing) to the casual installer
852264fa531Smrg  --disable-dependency-tracking Speeds up one-time builds
853264fa531Smrg  --enable-dependency-tracking  Do not reject slow dependency extractors
854264fa531Smrg
855264fa531SmrgOptional Packages:
856264fa531Smrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
857264fa531Smrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
858264fa531Smrg  --with-release-version=STRING
859264fa531Smrg                          Use release version string in package name
860264fa531Smrg
861264fa531SmrgSome influential environment variables:
862264fa531Smrg  CC          C compiler command
863264fa531Smrg  CFLAGS      C compiler flags
864264fa531Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
865264fa531Smrg              nonstandard directory <lib dir>
866264fa531Smrg  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
867264fa531Smrg              headers in a nonstandard directory <include dir>
868264fa531Smrg  PKG_CONFIG  path to pkg-config utility
869264fa531Smrg  X11PERF_CFLAGS
870264fa531Smrg              C compiler flags for X11PERF, overriding pkg-config
871264fa531Smrg  X11PERF_LIBS
872264fa531Smrg              linker flags for X11PERF, overriding pkg-config
873264fa531Smrg  XRENDER_CFLAGS
874264fa531Smrg              C compiler flags for XRENDER, overriding pkg-config
875264fa531Smrg  XRENDER_LIBS
876264fa531Smrg              linker flags for XRENDER, overriding pkg-config
877264fa531Smrg  XFT_CFLAGS  C compiler flags for XFT, overriding pkg-config
878264fa531Smrg  XFT_LIBS    linker flags for XFT, overriding pkg-config
879264fa531Smrg  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
880264fa531Smrg  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
881264fa531Smrg
882264fa531SmrgUse these variables to override the choices made by `configure' or to help
883264fa531Smrgit to find libraries and programs with nonstandard names/locations.
884264fa531Smrg
885264fa531SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
886264fa531Smrg_ACEOF
887264fa531Smrgfi
888264fa531Smrg
889264fa531Smrgif test "$ac_init_help" = "recursive"; then
890264fa531Smrg  # If there are subdirs, report their specific --help.
891264fa531Smrg  ac_popdir=`pwd`
892264fa531Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
893264fa531Smrg    test -d $ac_dir || continue
894264fa531Smrg    ac_builddir=.
895264fa531Smrg
896264fa531Smrgif test "$ac_dir" != .; then
897264fa531Smrg  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
898264fa531Smrg  # A "../" for each directory in $ac_dir_suffix.
899264fa531Smrg  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
900264fa531Smrgelse
901264fa531Smrg  ac_dir_suffix= ac_top_builddir=
902264fa531Smrgfi
903264fa531Smrg
904264fa531Smrgcase $srcdir in
905264fa531Smrg  .)  # No --srcdir option.  We are building in place.
906264fa531Smrg    ac_srcdir=.
907264fa531Smrg    if test -z "$ac_top_builddir"; then
908264fa531Smrg       ac_top_srcdir=.
909264fa531Smrg    else
910264fa531Smrg       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
911264fa531Smrg    fi ;;
912264fa531Smrg  [\\/]* | ?:[\\/]* )  # Absolute path.
913264fa531Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
914264fa531Smrg    ac_top_srcdir=$srcdir ;;
915264fa531Smrg  *) # Relative path.
916264fa531Smrg    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
917264fa531Smrg    ac_top_srcdir=$ac_top_builddir$srcdir ;;
918264fa531Smrgesac
919264fa531Smrg
920264fa531Smrg# Do not use `cd foo && pwd` to compute absolute paths, because
921264fa531Smrg# the directories may not exist.
922264fa531Smrgcase `pwd` in
923264fa531Smrg.) ac_abs_builddir="$ac_dir";;
924264fa531Smrg*)
925264fa531Smrg  case "$ac_dir" in
926264fa531Smrg  .) ac_abs_builddir=`pwd`;;
927264fa531Smrg  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
928264fa531Smrg  *) ac_abs_builddir=`pwd`/"$ac_dir";;
929264fa531Smrg  esac;;
930264fa531Smrgesac
931264fa531Smrgcase $ac_abs_builddir in
932264fa531Smrg.) ac_abs_top_builddir=${ac_top_builddir}.;;
933264fa531Smrg*)
934264fa531Smrg  case ${ac_top_builddir}. in
935264fa531Smrg  .) ac_abs_top_builddir=$ac_abs_builddir;;
936264fa531Smrg  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
937264fa531Smrg  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
938264fa531Smrg  esac;;
939264fa531Smrgesac
940264fa531Smrgcase $ac_abs_builddir in
941264fa531Smrg.) ac_abs_srcdir=$ac_srcdir;;
942264fa531Smrg*)
943264fa531Smrg  case $ac_srcdir in
944264fa531Smrg  .) ac_abs_srcdir=$ac_abs_builddir;;
945264fa531Smrg  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
946264fa531Smrg  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
947264fa531Smrg  esac;;
948264fa531Smrgesac
949264fa531Smrgcase $ac_abs_builddir in
950264fa531Smrg.) ac_abs_top_srcdir=$ac_top_srcdir;;
951264fa531Smrg*)
952264fa531Smrg  case $ac_top_srcdir in
953264fa531Smrg  .) ac_abs_top_srcdir=$ac_abs_builddir;;
954264fa531Smrg  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
955264fa531Smrg  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
956264fa531Smrg  esac;;
957264fa531Smrgesac
958264fa531Smrg
959264fa531Smrg    cd $ac_dir
960264fa531Smrg    # Check for guested configure; otherwise get Cygnus style configure.
961264fa531Smrg    if test -f $ac_srcdir/configure.gnu; then
962264fa531Smrg      echo
963264fa531Smrg      $SHELL $ac_srcdir/configure.gnu  --help=recursive
964264fa531Smrg    elif test -f $ac_srcdir/configure; then
965264fa531Smrg      echo
966264fa531Smrg      $SHELL $ac_srcdir/configure  --help=recursive
967264fa531Smrg    elif test -f $ac_srcdir/configure.ac ||
968264fa531Smrg	   test -f $ac_srcdir/configure.in; then
969264fa531Smrg      echo
970264fa531Smrg      $ac_configure --help
971264fa531Smrg    else
972264fa531Smrg      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
973264fa531Smrg    fi
974264fa531Smrg    cd $ac_popdir
975264fa531Smrg  done
976264fa531Smrgfi
977264fa531Smrg
978264fa531Smrgtest -n "$ac_init_help" && exit 0
979264fa531Smrgif $ac_init_version; then
980264fa531Smrg  cat <<\_ACEOF
981264fa531Smrgx11perf configure 1.4.1
982264fa531Smrggenerated by GNU Autoconf 2.59
983264fa531Smrg
984264fa531SmrgCopyright (C) 2003 Free Software Foundation, Inc.
985264fa531SmrgThis configure script is free software; the Free Software Foundation
986264fa531Smrggives unlimited permission to copy, distribute and modify it.
987264fa531Smrg_ACEOF
988264fa531Smrg  exit 0
989264fa531Smrgfi
990264fa531Smrgexec 5>config.log
991264fa531Smrgcat >&5 <<_ACEOF
992264fa531SmrgThis file contains any messages produced by compilers while
993264fa531Smrgrunning configure, to aid debugging if configure makes a mistake.
994264fa531Smrg
995264fa531SmrgIt was created by x11perf $as_me 1.4.1, which was
996264fa531Smrggenerated by GNU Autoconf 2.59.  Invocation command line was
997264fa531Smrg
998264fa531Smrg  $ $0 $@
999264fa531Smrg
1000264fa531Smrg_ACEOF
1001264fa531Smrg{
1002264fa531Smrgcat <<_ASUNAME
1003264fa531Smrg## --------- ##
1004264fa531Smrg## Platform. ##
1005264fa531Smrg## --------- ##
1006264fa531Smrg
1007264fa531Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1008264fa531Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
1009264fa531Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
1010264fa531Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
1011264fa531Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
1012264fa531Smrg
1013264fa531Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1014264fa531Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1015264fa531Smrg
1016264fa531Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1017264fa531Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1018264fa531Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1019264fa531Smrghostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1020264fa531Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1021264fa531Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1022264fa531Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1023264fa531Smrg
1024264fa531Smrg_ASUNAME
1025264fa531Smrg
1026264fa531Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1027264fa531Smrgfor as_dir in $PATH
1028264fa531Smrgdo
1029264fa531Smrg  IFS=$as_save_IFS
1030264fa531Smrg  test -z "$as_dir" && as_dir=.
1031264fa531Smrg  echo "PATH: $as_dir"
1032264fa531Smrgdone
1033264fa531Smrg
1034264fa531Smrg} >&5
1035264fa531Smrg
1036264fa531Smrgcat >&5 <<_ACEOF
1037264fa531Smrg
1038264fa531Smrg
1039264fa531Smrg## ----------- ##
1040264fa531Smrg## Core tests. ##
1041264fa531Smrg## ----------- ##
1042264fa531Smrg
1043264fa531Smrg_ACEOF
1044264fa531Smrg
1045264fa531Smrg
1046264fa531Smrg# Keep a trace of the command line.
1047264fa531Smrg# Strip out --no-create and --no-recursion so they do not pile up.
1048264fa531Smrg# Strip out --silent because we don't want to record it for future runs.
1049264fa531Smrg# Also quote any args containing shell meta-characters.
1050264fa531Smrg# Make two passes to allow for proper duplicate-argument suppression.
1051264fa531Smrgac_configure_args=
1052264fa531Smrgac_configure_args0=
1053264fa531Smrgac_configure_args1=
1054264fa531Smrgac_sep=
1055264fa531Smrgac_must_keep_next=false
1056264fa531Smrgfor ac_pass in 1 2
1057264fa531Smrgdo
1058264fa531Smrg  for ac_arg
1059264fa531Smrg  do
1060264fa531Smrg    case $ac_arg in
1061264fa531Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1062264fa531Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063264fa531Smrg    | -silent | --silent | --silen | --sile | --sil)
1064264fa531Smrg      continue ;;
1065264fa531Smrg    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1066264fa531Smrg      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1067264fa531Smrg    esac
1068264fa531Smrg    case $ac_pass in
1069264fa531Smrg    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070264fa531Smrg    2)
1071264fa531Smrg      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1072264fa531Smrg      if test $ac_must_keep_next = true; then
1073264fa531Smrg	ac_must_keep_next=false # Got value, back to normal.
1074264fa531Smrg      else
1075264fa531Smrg	case $ac_arg in
1076264fa531Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
1077264fa531Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1078264fa531Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1079264fa531Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
1080264fa531Smrg	    case "$ac_configure_args0 " in
1081264fa531Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1082264fa531Smrg	    esac
1083264fa531Smrg	    ;;
1084264fa531Smrg	  -* ) ac_must_keep_next=true ;;
1085264fa531Smrg	esac
1086264fa531Smrg      fi
1087264fa531Smrg      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1088264fa531Smrg      # Get rid of the leading space.
1089264fa531Smrg      ac_sep=" "
1090264fa531Smrg      ;;
1091264fa531Smrg    esac
1092264fa531Smrg  done
1093264fa531Smrgdone
1094264fa531Smrg$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1095264fa531Smrg$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1096264fa531Smrg
1097264fa531Smrg# When interrupted or exit'd, cleanup temporary files, and complete
1098264fa531Smrg# config.log.  We remove comments because anyway the quotes in there
1099264fa531Smrg# would cause problems or look ugly.
1100264fa531Smrg# WARNING: Be sure not to use single quotes in there, as some shells,
1101264fa531Smrg# such as our DU 5.0 friend, will then `close' the trap.
1102264fa531Smrgtrap 'exit_status=$?
1103264fa531Smrg  # Save into config.log some information that might help in debugging.
1104264fa531Smrg  {
1105264fa531Smrg    echo
1106264fa531Smrg
1107264fa531Smrg    cat <<\_ASBOX
1108264fa531Smrg## ---------------- ##
1109264fa531Smrg## Cache variables. ##
1110264fa531Smrg## ---------------- ##
1111264fa531Smrg_ASBOX
1112264fa531Smrg    echo
1113264fa531Smrg    # The following way of writing the cache mishandles newlines in values,
1114264fa531Smrg{
1115264fa531Smrg  (set) 2>&1 |
1116264fa531Smrg    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1117264fa531Smrg    *ac_space=\ *)
1118264fa531Smrg      sed -n \
1119264fa531Smrg	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1120264fa531Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1121264fa531Smrg      ;;
1122264fa531Smrg    *)
1123264fa531Smrg      sed -n \
1124264fa531Smrg	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1125264fa531Smrg      ;;
1126264fa531Smrg    esac;
1127264fa531Smrg}
1128264fa531Smrg    echo
1129264fa531Smrg
1130264fa531Smrg    cat <<\_ASBOX
1131264fa531Smrg## ----------------- ##
1132264fa531Smrg## Output variables. ##
1133264fa531Smrg## ----------------- ##
1134264fa531Smrg_ASBOX
1135264fa531Smrg    echo
1136264fa531Smrg    for ac_var in $ac_subst_vars
1137264fa531Smrg    do
1138264fa531Smrg      eval ac_val=$`echo $ac_var`
1139264fa531Smrg      echo "$ac_var='"'"'$ac_val'"'"'"
1140264fa531Smrg    done | sort
1141264fa531Smrg    echo
1142264fa531Smrg
1143264fa531Smrg    if test -n "$ac_subst_files"; then
1144264fa531Smrg      cat <<\_ASBOX
1145264fa531Smrg## ------------- ##
1146264fa531Smrg## Output files. ##
1147264fa531Smrg## ------------- ##
1148264fa531Smrg_ASBOX
1149264fa531Smrg      echo
1150264fa531Smrg      for ac_var in $ac_subst_files
1151264fa531Smrg      do
1152264fa531Smrg	eval ac_val=$`echo $ac_var`
1153264fa531Smrg	echo "$ac_var='"'"'$ac_val'"'"'"
1154264fa531Smrg      done | sort
1155264fa531Smrg      echo
1156264fa531Smrg    fi
1157264fa531Smrg
1158264fa531Smrg    if test -s confdefs.h; then
1159264fa531Smrg      cat <<\_ASBOX
1160264fa531Smrg## ----------- ##
1161264fa531Smrg## confdefs.h. ##
1162264fa531Smrg## ----------- ##
1163264fa531Smrg_ASBOX
1164264fa531Smrg      echo
1165264fa531Smrg      sed "/^$/d" confdefs.h | sort
1166264fa531Smrg      echo
1167264fa531Smrg    fi
1168264fa531Smrg    test "$ac_signal" != 0 &&
1169264fa531Smrg      echo "$as_me: caught signal $ac_signal"
1170264fa531Smrg    echo "$as_me: exit $exit_status"
1171264fa531Smrg  } >&5
1172264fa531Smrg  rm -f core *.core &&
1173264fa531Smrg  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1174264fa531Smrg    exit $exit_status
1175264fa531Smrg     ' 0
1176264fa531Smrgfor ac_signal in 1 2 13 15; do
1177264fa531Smrg  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1178264fa531Smrgdone
1179264fa531Smrgac_signal=0
1180264fa531Smrg
1181264fa531Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
1182264fa531Smrgrm -rf conftest* confdefs.h
1183264fa531Smrg# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1184264fa531Smrgecho >confdefs.h
1185264fa531Smrg
1186264fa531Smrg# Predefined preprocessor variables.
1187264fa531Smrg
1188264fa531Smrgcat >>confdefs.h <<_ACEOF
1189264fa531Smrg#define PACKAGE_NAME "$PACKAGE_NAME"
1190264fa531Smrg_ACEOF
1191264fa531Smrg
1192264fa531Smrg
1193264fa531Smrgcat >>confdefs.h <<_ACEOF
1194264fa531Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1195264fa531Smrg_ACEOF
1196264fa531Smrg
1197264fa531Smrg
1198264fa531Smrgcat >>confdefs.h <<_ACEOF
1199264fa531Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
1200264fa531Smrg_ACEOF
1201264fa531Smrg
1202264fa531Smrg
1203264fa531Smrgcat >>confdefs.h <<_ACEOF
1204264fa531Smrg#define PACKAGE_STRING "$PACKAGE_STRING"
1205264fa531Smrg_ACEOF
1206264fa531Smrg
1207264fa531Smrg
1208264fa531Smrgcat >>confdefs.h <<_ACEOF
1209264fa531Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1210264fa531Smrg_ACEOF
1211264fa531Smrg
1212264fa531Smrg
1213264fa531Smrg# Let the site file select an alternate cache file if it wants to.
1214264fa531Smrg# Prefer explicitly selected file to automatically selected ones.
1215264fa531Smrgif test -z "$CONFIG_SITE"; then
1216264fa531Smrg  if test "x$prefix" != xNONE; then
1217264fa531Smrg    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1218264fa531Smrg  else
1219264fa531Smrg    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1220264fa531Smrg  fi
1221264fa531Smrgfi
1222264fa531Smrgfor ac_site_file in $CONFIG_SITE; do
1223264fa531Smrg  if test -r "$ac_site_file"; then
1224264fa531Smrg    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1225264fa531Smrgecho "$as_me: loading site script $ac_site_file" >&6;}
1226264fa531Smrg    sed 's/^/| /' "$ac_site_file" >&5
1227264fa531Smrg    . "$ac_site_file"
1228264fa531Smrg  fi
1229264fa531Smrgdone
1230264fa531Smrg
1231264fa531Smrgif test -r "$cache_file"; then
1232264fa531Smrg  # Some versions of bash will fail to source /dev/null (special
1233264fa531Smrg  # files actually), so we avoid doing that.
1234264fa531Smrg  if test -f "$cache_file"; then
1235264fa531Smrg    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1236264fa531Smrgecho "$as_me: loading cache $cache_file" >&6;}
1237264fa531Smrg    case $cache_file in
1238264fa531Smrg      [\\/]* | ?:[\\/]* ) . $cache_file;;
1239264fa531Smrg      *)                      . ./$cache_file;;
1240264fa531Smrg    esac
1241264fa531Smrg  fi
1242264fa531Smrgelse
1243264fa531Smrg  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1244264fa531Smrgecho "$as_me: creating cache $cache_file" >&6;}
1245264fa531Smrg  >$cache_file
1246264fa531Smrgfi
1247264fa531Smrg
1248264fa531Smrg# Check that the precious variables saved in the cache have kept the same
1249264fa531Smrg# value.
1250264fa531Smrgac_cache_corrupted=false
1251264fa531Smrgfor ac_var in `(set) 2>&1 |
1252264fa531Smrg	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1253264fa531Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1254264fa531Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
1255264fa531Smrg  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1256264fa531Smrg  eval ac_new_val="\$ac_env_${ac_var}_value"
1257264fa531Smrg  case $ac_old_set,$ac_new_set in
1258264fa531Smrg    set,)
1259264fa531Smrg      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1260264fa531Smrgecho "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1261264fa531Smrg      ac_cache_corrupted=: ;;
1262264fa531Smrg    ,set)
1263264fa531Smrg      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1264264fa531Smrgecho "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1265264fa531Smrg      ac_cache_corrupted=: ;;
1266264fa531Smrg    ,);;
1267264fa531Smrg    *)
1268264fa531Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
1269264fa531Smrg	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1270264fa531Smrgecho "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1271264fa531Smrg	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1272264fa531Smrgecho "$as_me:   former value:  $ac_old_val" >&2;}
1273264fa531Smrg	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1274264fa531Smrgecho "$as_me:   current value: $ac_new_val" >&2;}
1275264fa531Smrg	ac_cache_corrupted=:
1276264fa531Smrg      fi;;
1277264fa531Smrg  esac
1278264fa531Smrg  # Pass precious variables to config.status.
1279264fa531Smrg  if test "$ac_new_set" = set; then
1280264fa531Smrg    case $ac_new_val in
1281264fa531Smrg    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282264fa531Smrg      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1283264fa531Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
1284264fa531Smrg    esac
1285264fa531Smrg    case " $ac_configure_args " in
1286264fa531Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1287264fa531Smrg      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1288264fa531Smrg    esac
1289264fa531Smrg  fi
1290264fa531Smrgdone
1291264fa531Smrgif $ac_cache_corrupted; then
1292264fa531Smrg  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1293264fa531Smrgecho "$as_me: error: changes in the environment can compromise the build" >&2;}
1294264fa531Smrg  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1295264fa531Smrgecho "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1296264fa531Smrg   { (exit 1); exit 1; }; }
1297264fa531Smrgfi
1298264fa531Smrg
1299264fa531Smrgac_ext=c
1300264fa531Smrgac_cpp='$CPP $CPPFLAGS'
1301264fa531Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302264fa531Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303264fa531Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
1304264fa531Smrg
1305264fa531Smrg
1306264fa531Smrg
1307264fa531Smrg
1308264fa531Smrg
1309264fa531Smrg
1310264fa531Smrg
1311264fa531Smrg
1312264fa531Smrg
1313264fa531Smrg
1314264fa531Smrg
1315264fa531Smrg
1316264fa531Smrg
1317264fa531Smrg
1318264fa531Smrg
1319264fa531Smrg
1320264fa531Smrg
1321264fa531Smrg
1322264fa531Smrg
1323264fa531Smrg
1324264fa531Smrg
1325264fa531Smrg
1326264fa531Smrg
1327264fa531Smrg
1328264fa531Smrg
1329264fa531Smrg
1330264fa531Smrg
1331264fa531Smrgam__api_version="1.7"
1332264fa531Smrgac_aux_dir=
1333264fa531Smrgfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1334264fa531Smrg  if test -f $ac_dir/install-sh; then
1335264fa531Smrg    ac_aux_dir=$ac_dir
1336264fa531Smrg    ac_install_sh="$ac_aux_dir/install-sh -c"
1337264fa531Smrg    break
1338264fa531Smrg  elif test -f $ac_dir/install.sh; then
1339264fa531Smrg    ac_aux_dir=$ac_dir
1340264fa531Smrg    ac_install_sh="$ac_aux_dir/install.sh -c"
1341264fa531Smrg    break
1342264fa531Smrg  elif test -f $ac_dir/shtool; then
1343264fa531Smrg    ac_aux_dir=$ac_dir
1344264fa531Smrg    ac_install_sh="$ac_aux_dir/shtool install -c"
1345264fa531Smrg    break
1346264fa531Smrg  fi
1347264fa531Smrgdone
1348264fa531Smrgif test -z "$ac_aux_dir"; then
1349264fa531Smrg  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1350264fa531Smrgecho "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1351264fa531Smrg   { (exit 1); exit 1; }; }
1352264fa531Smrgfi
1353264fa531Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"
1354264fa531Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"
1355264fa531Smrgac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1356264fa531Smrg
1357264fa531Smrg# Find a good install program.  We prefer a C program (faster),
1358264fa531Smrg# so one script is as good as another.  But avoid the broken or
1359264fa531Smrg# incompatible versions:
1360264fa531Smrg# SysV /etc/install, /usr/sbin/install
1361264fa531Smrg# SunOS /usr/etc/install
1362264fa531Smrg# IRIX /sbin/install
1363264fa531Smrg# AIX /bin/install
1364264fa531Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
1365264fa531Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1366264fa531Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1367264fa531Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1368264fa531Smrg# OS/2's system install, which has a completely different semantic
1369264fa531Smrg# ./install, which can be erroneously created by make from ./install.sh.
1370264fa531Smrgecho "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1371264fa531Smrgecho $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1372264fa531Smrgif test -z "$INSTALL"; then
1373264fa531Smrgif test "${ac_cv_path_install+set}" = set; then
1374264fa531Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
1375264fa531Smrgelse
1376264fa531Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1377264fa531Smrgfor as_dir in $PATH
1378264fa531Smrgdo
1379264fa531Smrg  IFS=$as_save_IFS
1380264fa531Smrg  test -z "$as_dir" && as_dir=.
1381264fa531Smrg  # Account for people who put trailing slashes in PATH elements.
1382264fa531Smrgcase $as_dir/ in
1383264fa531Smrg  ./ | .// | /cC/* | \
1384264fa531Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1385264fa531Smrg  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1386264fa531Smrg  /usr/ucb/* ) ;;
1387264fa531Smrg  *)
1388264fa531Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
1389264fa531Smrg    # Don't use installbsd from OSF since it installs stuff as root
1390264fa531Smrg    # by default.
1391264fa531Smrg    for ac_prog in ginstall scoinst install; do
1392264fa531Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
1393264fa531Smrg	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1394264fa531Smrg	  if test $ac_prog = install &&
1395264fa531Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1396264fa531Smrg	    # AIX install.  It has an incompatible calling convention.
1397264fa531Smrg	    :
1398264fa531Smrg	  elif test $ac_prog = install &&
1399264fa531Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1400264fa531Smrg	    # program-specific install script used by HP pwplus--don't use.
1401264fa531Smrg	    :
1402264fa531Smrg	  else
1403264fa531Smrg	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1404264fa531Smrg	    break 3
1405264fa531Smrg	  fi
1406264fa531Smrg	fi
1407264fa531Smrg      done
1408264fa531Smrg    done
1409264fa531Smrg    ;;
1410264fa531Smrgesac
1411264fa531Smrgdone
1412264fa531Smrg
1413264fa531Smrg
1414264fa531Smrgfi
1415264fa531Smrg  if test "${ac_cv_path_install+set}" = set; then
1416264fa531Smrg    INSTALL=$ac_cv_path_install
1417264fa531Smrg  else
1418264fa531Smrg    # As a last resort, use the slow shell script.  We don't cache a
1419264fa531Smrg    # path for INSTALL within a source directory, because that will
1420264fa531Smrg    # break other packages using the cache if that directory is
1421264fa531Smrg    # removed, or if the path is relative.
1422264fa531Smrg    INSTALL=$ac_install_sh
1423264fa531Smrg  fi
1424264fa531Smrgfi
1425264fa531Smrgecho "$as_me:$LINENO: result: $INSTALL" >&5
1426264fa531Smrgecho "${ECHO_T}$INSTALL" >&6
1427264fa531Smrg
1428264fa531Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1429264fa531Smrg# It thinks the first close brace ends the variable substitution.
1430264fa531Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1431264fa531Smrg
1432264fa531Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1433264fa531Smrg
1434264fa531Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1435264fa531Smrg
1436264fa531Smrgecho "$as_me:$LINENO: checking whether build environment is sane" >&5
1437264fa531Smrgecho $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1438264fa531Smrg# Just in case
1439264fa531Smrgsleep 1
1440264fa531Smrgecho timestamp > conftest.file
1441264fa531Smrg# Do `set' in a subshell so we don't clobber the current shell's
1442264fa531Smrg# arguments.  Must try -L first in case configure is actually a
1443264fa531Smrg# symlink; some systems play weird games with the mod time of symlinks
1444264fa531Smrg# (eg FreeBSD returns the mod time of the symlink's containing
1445264fa531Smrg# directory).
1446264fa531Smrgif (
1447264fa531Smrg   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1448264fa531Smrg   if test "$*" = "X"; then
1449264fa531Smrg      # -L didn't work.
1450264fa531Smrg      set X `ls -t $srcdir/configure conftest.file`
1451264fa531Smrg   fi
1452264fa531Smrg   rm -f conftest.file
1453264fa531Smrg   if test "$*" != "X $srcdir/configure conftest.file" \
1454264fa531Smrg      && test "$*" != "X conftest.file $srcdir/configure"; then
1455264fa531Smrg
1456264fa531Smrg      # If neither matched, then we have a broken ls.  This can happen
1457264fa531Smrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
1458264fa531Smrg      # broken ls alias from the environment.  This has actually
1459264fa531Smrg      # happened.  Such a system could not be considered "sane".
1460264fa531Smrg      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1461264fa531Smrgalias in your environment" >&5
1462264fa531Smrgecho "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1463264fa531Smrgalias in your environment" >&2;}
1464264fa531Smrg   { (exit 1); exit 1; }; }
1465264fa531Smrg   fi
1466264fa531Smrg
1467264fa531Smrg   test "$2" = conftest.file
1468264fa531Smrg   )
1469264fa531Smrgthen
1470264fa531Smrg   # Ok.
1471264fa531Smrg   :
1472264fa531Smrgelse
1473264fa531Smrg   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1474264fa531SmrgCheck your system clock" >&5
1475264fa531Smrgecho "$as_me: error: newly created file is older than distributed files!
1476264fa531SmrgCheck your system clock" >&2;}
1477264fa531Smrg   { (exit 1); exit 1; }; }
1478264fa531Smrgfi
1479264fa531Smrgecho "$as_me:$LINENO: result: yes" >&5
1480264fa531Smrgecho "${ECHO_T}yes" >&6
1481264fa531Smrgtest "$program_prefix" != NONE &&
1482264fa531Smrg  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1483264fa531Smrg# Use a double $ so make ignores it.
1484264fa531Smrgtest "$program_suffix" != NONE &&
1485264fa531Smrg  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1486264fa531Smrg# Double any \ or $.  echo might interpret backslashes.
1487264fa531Smrg# By default was `s,x,x', remove it if useless.
1488264fa531Smrgcat <<\_ACEOF >conftest.sed
1489264fa531Smrgs/[\\$]/&&/g;s/;s,x,x,$//
1490264fa531Smrg_ACEOF
1491264fa531Smrgprogram_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1492264fa531Smrgrm conftest.sed
1493264fa531Smrg
1494264fa531Smrg
1495264fa531Smrg# expand $ac_aux_dir to an absolute path
1496264fa531Smrgam_aux_dir=`cd $ac_aux_dir && pwd`
1497264fa531Smrg
1498264fa531Smrgtest x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1499264fa531Smrg# Use eval to expand $SHELL
1500264fa531Smrgif eval "$MISSING --run true"; then
1501264fa531Smrg  am_missing_run="$MISSING --run "
1502264fa531Smrgelse
1503264fa531Smrg  am_missing_run=
1504264fa531Smrg  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1505264fa531Smrgecho "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1506264fa531Smrgfi
1507264fa531Smrg
1508264fa531Smrgfor ac_prog in gawk mawk nawk awk
1509264fa531Smrgdo
1510264fa531Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
1511264fa531Smrgset dummy $ac_prog; ac_word=$2
1512264fa531Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
1513264fa531Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1514264fa531Smrgif test "${ac_cv_prog_AWK+set}" = set; then
1515264fa531Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
1516264fa531Smrgelse
1517264fa531Smrg  if test -n "$AWK"; then
1518264fa531Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1519264fa531Smrgelse
1520264fa531Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1521264fa531Smrgfor as_dir in $PATH
1522264fa531Smrgdo
1523264fa531Smrg  IFS=$as_save_IFS
1524264fa531Smrg  test -z "$as_dir" && as_dir=.
1525264fa531Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
1526264fa531Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1527264fa531Smrg    ac_cv_prog_AWK="$ac_prog"
1528264fa531Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1529264fa531Smrg    break 2
1530264fa531Smrg  fi
1531264fa531Smrgdone
1532264fa531Smrgdone
1533264fa531Smrg
1534264fa531Smrgfi
1535264fa531Smrgfi
1536264fa531SmrgAWK=$ac_cv_prog_AWK
1537264fa531Smrgif test -n "$AWK"; then
1538264fa531Smrg  echo "$as_me:$LINENO: result: $AWK" >&5
1539264fa531Smrgecho "${ECHO_T}$AWK" >&6
1540264fa531Smrgelse
1541264fa531Smrg  echo "$as_me:$LINENO: result: no" >&5
1542264fa531Smrgecho "${ECHO_T}no" >&6
1543264fa531Smrgfi
1544264fa531Smrg
1545264fa531Smrg  test -n "$AWK" && break
1546264fa531Smrgdone
1547264fa531Smrg
1548264fa531Smrgecho "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1549264fa531Smrgecho $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1550264fa531Smrgset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1551264fa531Smrgif eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1552264fa531Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
1553264fa531Smrgelse
1554264fa531Smrg  cat >conftest.make <<\_ACEOF
1555264fa531Smrgall:
1556264fa531Smrg	@echo 'ac_maketemp="$(MAKE)"'
1557264fa531Smrg_ACEOF
1558264fa531Smrg# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1559264fa531Smrgeval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1560264fa531Smrgif test -n "$ac_maketemp"; then
1561264fa531Smrg  eval ac_cv_prog_make_${ac_make}_set=yes
1562264fa531Smrgelse
1563264fa531Smrg  eval ac_cv_prog_make_${ac_make}_set=no
1564264fa531Smrgfi
1565264fa531Smrgrm -f conftest.make
1566264fa531Smrgfi
1567264fa531Smrgif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1568264fa531Smrg  echo "$as_me:$LINENO: result: yes" >&5
1569264fa531Smrgecho "${ECHO_T}yes" >&6
1570264fa531Smrg  SET_MAKE=
1571264fa531Smrgelse
1572264fa531Smrg  echo "$as_me:$LINENO: result: no" >&5
1573264fa531Smrgecho "${ECHO_T}no" >&6
1574264fa531Smrg  SET_MAKE="MAKE=${MAKE-make}"
1575264fa531Smrgfi
1576264fa531Smrg
1577264fa531Smrgrm -rf .tst 2>/dev/null
1578264fa531Smrgmkdir .tst 2>/dev/null
1579264fa531Smrgif test -d .tst; then
1580264fa531Smrg  am__leading_dot=.
1581264fa531Smrgelse
1582264fa531Smrg  am__leading_dot=_
1583264fa531Smrgfi
1584264fa531Smrgrmdir .tst 2>/dev/null
1585264fa531Smrg
1586264fa531Smrg # test to see if srcdir already configured
1587264fa531Smrgif test "`cd $srcdir && pwd`" != "`pwd`" &&
1588264fa531Smrg   test -f $srcdir/config.status; then
1589264fa531Smrg  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1590264fa531Smrgecho "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1591264fa531Smrg   { (exit 1); exit 1; }; }
1592264fa531Smrgfi
1593264fa531Smrg
1594264fa531Smrg# test whether we have cygpath
1595264fa531Smrgif test -z "$CYGPATH_W"; then
1596264fa531Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
1597264fa531Smrg    CYGPATH_W='cygpath -w'
1598264fa531Smrg  else
1599264fa531Smrg    CYGPATH_W=echo
1600264fa531Smrg  fi
1601264fa531Smrgfi
1602264fa531Smrg
1603264fa531Smrg
1604264fa531Smrg# Define the identity of the package.
1605264fa531Smrg PACKAGE='x11perf'
1606264fa531Smrg VERSION='1.4.1'
1607264fa531Smrg
1608264fa531Smrg
1609264fa531Smrgcat >>confdefs.h <<_ACEOF
1610264fa531Smrg#define PACKAGE "$PACKAGE"
1611264fa531Smrg_ACEOF
1612264fa531Smrg
1613264fa531Smrg
1614264fa531Smrgcat >>confdefs.h <<_ACEOF
1615264fa531Smrg#define VERSION "$VERSION"
1616264fa531Smrg_ACEOF
1617264fa531Smrg
1618264fa531Smrg# Some tools Automake needs.
1619264fa531Smrg
1620264fa531SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1621264fa531Smrg
1622264fa531Smrg
1623264fa531SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1624264fa531Smrg
1625264fa531Smrg
1626264fa531SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1627264fa531Smrg
1628264fa531Smrg
1629264fa531SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1630264fa531Smrg
1631264fa531Smrg
1632264fa531SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1633264fa531Smrg
1634264fa531Smrg
1635264fa531SmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
1636264fa531Smrg
1637264fa531Smrginstall_sh=${install_sh-"$am_aux_dir/install-sh"}
1638264fa531Smrg
1639264fa531Smrg# Installed binaries are usually stripped using `strip' when the user
1640264fa531Smrg# run `make install-strip'.  However `strip' might not be the right
1641264fa531Smrg# tool to use in cross-compilation environments, therefore Automake
1642264fa531Smrg# will honor the `STRIP' environment variable to overrule this program.
1643264fa531Smrgif test "$cross_compiling" != no; then
1644264fa531Smrg  if test -n "$ac_tool_prefix"; then
1645264fa531Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1646264fa531Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
1647264fa531Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
1648264fa531Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1649264fa531Smrgif test "${ac_cv_prog_STRIP+set}" = set; then
1650264fa531Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
1651264fa531Smrgelse
1652264fa531Smrg  if test -n "$STRIP"; then
1653264fa531Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1654264fa531Smrgelse
1655264fa531Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656264fa531Smrgfor as_dir in $PATH
1657264fa531Smrgdo
1658264fa531Smrg  IFS=$as_save_IFS
1659264fa531Smrg  test -z "$as_dir" && as_dir=.
1660264fa531Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
1661264fa531Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662264fa531Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1663264fa531Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664264fa531Smrg    break 2
1665264fa531Smrg  fi
1666264fa531Smrgdone
1667264fa531Smrgdone
1668264fa531Smrg
1669264fa531Smrgfi
1670264fa531Smrgfi
1671264fa531SmrgSTRIP=$ac_cv_prog_STRIP
1672264fa531Smrgif test -n "$STRIP"; then
1673264fa531Smrg  echo "$as_me:$LINENO: result: $STRIP" >&5
1674264fa531Smrgecho "${ECHO_T}$STRIP" >&6
1675264fa531Smrgelse
1676264fa531Smrg  echo "$as_me:$LINENO: result: no" >&5
1677264fa531Smrgecho "${ECHO_T}no" >&6
1678264fa531Smrgfi
1679264fa531Smrg
1680264fa531Smrgfi
1681264fa531Smrgif test -z "$ac_cv_prog_STRIP"; then
1682264fa531Smrg  ac_ct_STRIP=$STRIP
1683264fa531Smrg  # Extract the first word of "strip", so it can be a program name with args.
1684264fa531Smrgset dummy strip; ac_word=$2
1685264fa531Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
1686264fa531Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1687264fa531Smrgif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1688264fa531Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
1689264fa531Smrgelse
1690264fa531Smrg  if test -n "$ac_ct_STRIP"; then
1691264fa531Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1692264fa531Smrgelse
1693264fa531Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694264fa531Smrgfor as_dir in $PATH
1695264fa531Smrgdo
1696264fa531Smrg  IFS=$as_save_IFS
1697264fa531Smrg  test -z "$as_dir" && as_dir=.
1698264fa531Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
1699264fa531Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1700264fa531Smrg    ac_cv_prog_ac_ct_STRIP="strip"
1701264fa531Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1702264fa531Smrg    break 2
1703264fa531Smrg  fi
1704264fa531Smrgdone
1705264fa531Smrgdone
1706264fa531Smrg
1707264fa531Smrg  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1708264fa531Smrgfi
1709264fa531Smrgfi
1710264fa531Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1711264fa531Smrgif test -n "$ac_ct_STRIP"; then
1712264fa531Smrg  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1713264fa531Smrgecho "${ECHO_T}$ac_ct_STRIP" >&6
1714264fa531Smrgelse
1715264fa531Smrg  echo "$as_me:$LINENO: result: no" >&5
1716264fa531Smrgecho "${ECHO_T}no" >&6
1717264fa531Smrgfi
1718264fa531Smrg
1719264fa531Smrg  STRIP=$ac_ct_STRIP
1720264fa531Smrgelse
1721264fa531Smrg  STRIP="$ac_cv_prog_STRIP"
1722264fa531Smrgfi
1723264fa531Smrg
1724264fa531Smrgfi
1725264fa531SmrgINSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1726264fa531Smrg
1727264fa531Smrg# We need awk for the "check" target.  The system "awk" is bad on
1728264fa531Smrg# some platforms.
1729264fa531Smrg
1730264fa531Smrg
1731264fa531Smrg
1732264fa531Smrgecho "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1733264fa531Smrgecho $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1734264fa531Smrg    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1735264fa531Smrgif test "${enable_maintainer_mode+set}" = set; then
1736264fa531Smrg  enableval="$enable_maintainer_mode"
1737264fa531Smrg  USE_MAINTAINER_MODE=$enableval
1738264fa531Smrgelse
1739264fa531Smrg  USE_MAINTAINER_MODE=no
1740264fa531Smrgfi;
1741264fa531Smrg  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1742264fa531Smrgecho "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1743264fa531Smrg
1744264fa531Smrg
1745264fa531Smrgif test $USE_MAINTAINER_MODE = yes; then
1746264fa531Smrg  MAINTAINER_MODE_TRUE=
1747264fa531Smrg  MAINTAINER_MODE_FALSE='#'
1748264fa531Smrgelse
1749264fa531Smrg  MAINTAINER_MODE_TRUE='#'
1750264fa531Smrg  MAINTAINER_MODE_FALSE=
1751264fa531Smrgfi
1752264fa531Smrg
1753264fa531Smrg  MAINT=$MAINTAINER_MODE_TRUE
1754264fa531Smrg
1755264fa531Smrg
1756264fa531Smrg
1757264fa531Smrg          ac_config_headers="$ac_config_headers config.h"
1758264fa531Smrg
1759264fa531Smrg
1760264fa531Smrgac_ext=c
1761264fa531Smrgac_cpp='$CPP $CPPFLAGS'
1762264fa531Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1763264fa531Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1764264fa531Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
1765264fa531Smrgif test -n "$ac_tool_prefix"; then
1766264fa531Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1767264fa531Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
1768264fa531Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
1769264fa531Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1770264fa531Smrgif test "${ac_cv_prog_CC+set}" = set; then
1771264fa531Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
1772264fa531Smrgelse
1773264fa531Smrg  if test -n "$CC"; then
1774264fa531Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
1775264fa531Smrgelse
1776264fa531Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777264fa531Smrgfor as_dir in $PATH
1778264fa531Smrgdo
1779264fa531Smrg  IFS=$as_save_IFS
1780264fa531Smrg  test -z "$as_dir" && as_dir=.
1781264fa531Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
1782264fa531Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1783264fa531Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1784264fa531Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1785264fa531Smrg    break 2
1786264fa531Smrg  fi
1787264fa531Smrgdone
1788264fa531Smrgdone
1789264fa531Smrg
1790264fa531Smrgfi
1791264fa531Smrgfi
1792264fa531SmrgCC=$ac_cv_prog_CC
1793264fa531Smrgif test -n "$CC"; then
1794264fa531Smrg  echo "$as_me:$LINENO: result: $CC" >&5
1795264fa531Smrgecho "${ECHO_T}$CC" >&6
1796264fa531Smrgelse
1797264fa531Smrg  echo "$as_me:$LINENO: result: no" >&5
1798264fa531Smrgecho "${ECHO_T}no" >&6
1799264fa531Smrgfi
1800264fa531Smrg
1801264fa531Smrgfi
1802264fa531Smrgif test -z "$ac_cv_prog_CC"; then
1803264fa531Smrg  ac_ct_CC=$CC
1804264fa531Smrg  # Extract the first word of "gcc", so it can be a program name with args.
1805264fa531Smrgset dummy gcc; ac_word=$2
1806264fa531Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
1807264fa531Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1808264fa531Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1809264fa531Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
1810264fa531Smrgelse
1811264fa531Smrg  if test -n "$ac_ct_CC"; then
1812264fa531Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1813264fa531Smrgelse
1814264fa531Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815264fa531Smrgfor as_dir in $PATH
1816264fa531Smrgdo
1817264fa531Smrg  IFS=$as_save_IFS
1818264fa531Smrg  test -z "$as_dir" && as_dir=.
1819264fa531Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
1820264fa531Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1821264fa531Smrg    ac_cv_prog_ac_ct_CC="gcc"
1822264fa531Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823264fa531Smrg    break 2
1824264fa531Smrg  fi
1825264fa531Smrgdone
1826264fa531Smrgdone
1827264fa531Smrg
1828264fa531Smrgfi
1829264fa531Smrgfi
1830264fa531Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
1831264fa531Smrgif test -n "$ac_ct_CC"; then
1832264fa531Smrg  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1833264fa531Smrgecho "${ECHO_T}$ac_ct_CC" >&6
1834264fa531Smrgelse
1835264fa531Smrg  echo "$as_me:$LINENO: result: no" >&5
1836264fa531Smrgecho "${ECHO_T}no" >&6
1837264fa531Smrgfi
1838264fa531Smrg
1839264fa531Smrg  CC=$ac_ct_CC
1840264fa531Smrgelse
1841264fa531Smrg  CC="$ac_cv_prog_CC"
1842264fa531Smrgfi
1843264fa531Smrg
1844264fa531Smrgif test -z "$CC"; then
1845264fa531Smrg  if test -n "$ac_tool_prefix"; then
1846264fa531Smrg  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1847264fa531Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
1848264fa531Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
1849264fa531Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1850264fa531Smrgif test "${ac_cv_prog_CC+set}" = set; then
1851264fa531Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
1852264fa531Smrgelse
1853264fa531Smrg  if test -n "$CC"; then
1854264fa531Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
1855264fa531Smrgelse
1856264fa531Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1857264fa531Smrgfor as_dir in $PATH
1858264fa531Smrgdo
1859264fa531Smrg  IFS=$as_save_IFS
1860264fa531Smrg  test -z "$as_dir" && as_dir=.
1861264fa531Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
1862264fa531Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1863264fa531Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
1864264fa531Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1865264fa531Smrg    break 2
1866264fa531Smrg  fi
1867264fa531Smrgdone
1868264fa531Smrgdone
1869264fa531Smrg
1870264fa531Smrgfi
1871264fa531Smrgfi
1872264fa531SmrgCC=$ac_cv_prog_CC
1873264fa531Smrgif test -n "$CC"; then
1874264fa531Smrg  echo "$as_me:$LINENO: result: $CC" >&5
1875264fa531Smrgecho "${ECHO_T}$CC" >&6
1876264fa531Smrgelse
1877264fa531Smrg  echo "$as_me:$LINENO: result: no" >&5
1878264fa531Smrgecho "${ECHO_T}no" >&6
1879264fa531Smrgfi
1880264fa531Smrg
1881264fa531Smrgfi
1882264fa531Smrgif test -z "$ac_cv_prog_CC"; then
1883264fa531Smrg  ac_ct_CC=$CC
1884264fa531Smrg  # Extract the first word of "cc", so it can be a program name with args.
1885264fa531Smrgset dummy cc; ac_word=$2
1886264fa531Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
1887264fa531Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1888264fa531Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1889264fa531Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
1890264fa531Smrgelse
1891264fa531Smrg  if test -n "$ac_ct_CC"; then
1892264fa531Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1893264fa531Smrgelse
1894264fa531Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895264fa531Smrgfor as_dir in $PATH
1896264fa531Smrgdo
1897264fa531Smrg  IFS=$as_save_IFS
1898264fa531Smrg  test -z "$as_dir" && as_dir=.
1899264fa531Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
1900264fa531Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1901264fa531Smrg    ac_cv_prog_ac_ct_CC="cc"
1902264fa531Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903264fa531Smrg    break 2
1904264fa531Smrg  fi
1905264fa531Smrgdone
1906264fa531Smrgdone
1907264fa531Smrg
1908264fa531Smrgfi
1909264fa531Smrgfi
1910264fa531Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
1911264fa531Smrgif test -n "$ac_ct_CC"; then
1912264fa531Smrg  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1913264fa531Smrgecho "${ECHO_T}$ac_ct_CC" >&6
1914264fa531Smrgelse
1915264fa531Smrg  echo "$as_me:$LINENO: result: no" >&5
1916264fa531Smrgecho "${ECHO_T}no" >&6
1917264fa531Smrgfi
1918264fa531Smrg
1919264fa531Smrg  CC=$ac_ct_CC
1920264fa531Smrgelse
1921264fa531Smrg  CC="$ac_cv_prog_CC"
1922264fa531Smrgfi
1923264fa531Smrg
1924264fa531Smrgfi
1925264fa531Smrgif test -z "$CC"; then
1926264fa531Smrg  # Extract the first word of "cc", so it can be a program name with args.
1927264fa531Smrgset dummy cc; ac_word=$2
1928264fa531Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
1929264fa531Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1930264fa531Smrgif test "${ac_cv_prog_CC+set}" = set; then
1931264fa531Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
1932264fa531Smrgelse
1933264fa531Smrg  if test -n "$CC"; then
1934264fa531Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
1935264fa531Smrgelse
1936264fa531Smrg  ac_prog_rejected=no
1937264fa531Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938264fa531Smrgfor as_dir in $PATH
1939264fa531Smrgdo
1940264fa531Smrg  IFS=$as_save_IFS
1941264fa531Smrg  test -z "$as_dir" && as_dir=.
1942264fa531Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
1943264fa531Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944264fa531Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1945264fa531Smrg       ac_prog_rejected=yes
1946264fa531Smrg       continue
1947264fa531Smrg     fi
1948264fa531Smrg    ac_cv_prog_CC="cc"
1949264fa531Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1950264fa531Smrg    break 2
1951264fa531Smrg  fi
1952264fa531Smrgdone
1953264fa531Smrgdone
1954264fa531Smrg
1955264fa531Smrgif test $ac_prog_rejected = yes; then
1956264fa531Smrg  # We found a bogon in the path, so make sure we never use it.
1957264fa531Smrg  set dummy $ac_cv_prog_CC
1958264fa531Smrg  shift
1959264fa531Smrg  if test $# != 0; then
1960264fa531Smrg    # We chose a different compiler from the bogus one.
1961264fa531Smrg    # However, it has the same basename, so the bogon will be chosen
1962264fa531Smrg    # first if we set CC to just the basename; use the full file name.
1963264fa531Smrg    shift
1964264fa531Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1965264fa531Smrg  fi
1966264fa531Smrgfi
1967264fa531Smrgfi
1968264fa531Smrgfi
1969264fa531SmrgCC=$ac_cv_prog_CC
1970264fa531Smrgif test -n "$CC"; then
1971264fa531Smrg  echo "$as_me:$LINENO: result: $CC" >&5
1972264fa531Smrgecho "${ECHO_T}$CC" >&6
1973264fa531Smrgelse
1974264fa531Smrg  echo "$as_me:$LINENO: result: no" >&5
1975264fa531Smrgecho "${ECHO_T}no" >&6
1976264fa531Smrgfi
1977264fa531Smrg
1978264fa531Smrgfi
1979264fa531Smrgif test -z "$CC"; then
1980264fa531Smrg  if test -n "$ac_tool_prefix"; then
1981264fa531Smrg  for ac_prog in cl
1982264fa531Smrg  do
1983264fa531Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1984264fa531Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
1985264fa531Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
1986264fa531Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1987264fa531Smrgif test "${ac_cv_prog_CC+set}" = set; then
1988264fa531Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
1989264fa531Smrgelse
1990264fa531Smrg  if test -n "$CC"; then
1991264fa531Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
1992264fa531Smrgelse
1993264fa531Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994264fa531Smrgfor as_dir in $PATH
1995264fa531Smrgdo
1996264fa531Smrg  IFS=$as_save_IFS
1997264fa531Smrg  test -z "$as_dir" && as_dir=.
1998264fa531Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
1999264fa531Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000264fa531Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2001264fa531Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002264fa531Smrg    break 2
2003264fa531Smrg  fi
2004264fa531Smrgdone
2005264fa531Smrgdone
2006264fa531Smrg
2007264fa531Smrgfi
2008264fa531Smrgfi
2009264fa531SmrgCC=$ac_cv_prog_CC
2010264fa531Smrgif test -n "$CC"; then
2011264fa531Smrg  echo "$as_me:$LINENO: result: $CC" >&5
2012264fa531Smrgecho "${ECHO_T}$CC" >&6
2013264fa531Smrgelse
2014264fa531Smrg  echo "$as_me:$LINENO: result: no" >&5
2015264fa531Smrgecho "${ECHO_T}no" >&6
2016264fa531Smrgfi
2017264fa531Smrg
2018264fa531Smrg    test -n "$CC" && break
2019264fa531Smrg  done
2020264fa531Smrgfi
2021264fa531Smrgif test -z "$CC"; then
2022264fa531Smrg  ac_ct_CC=$CC
2023264fa531Smrg  for ac_prog in cl
2024264fa531Smrgdo
2025264fa531Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
2026264fa531Smrgset dummy $ac_prog; ac_word=$2
2027264fa531Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
2028264fa531Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2029264fa531Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2030264fa531Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
2031264fa531Smrgelse
2032264fa531Smrg  if test -n "$ac_ct_CC"; then
2033264fa531Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2034264fa531Smrgelse
2035264fa531Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036264fa531Smrgfor as_dir in $PATH
2037264fa531Smrgdo
2038264fa531Smrg  IFS=$as_save_IFS
2039264fa531Smrg  test -z "$as_dir" && as_dir=.
2040264fa531Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2041264fa531Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2042264fa531Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
2043264fa531Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044264fa531Smrg    break 2
2045264fa531Smrg  fi
2046264fa531Smrgdone
2047264fa531Smrgdone
2048264fa531Smrg
2049264fa531Smrgfi
2050264fa531Smrgfi
2051264fa531Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2052264fa531Smrgif test -n "$ac_ct_CC"; then
2053264fa531Smrg  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2054264fa531Smrgecho "${ECHO_T}$ac_ct_CC" >&6
2055264fa531Smrgelse
2056264fa531Smrg  echo "$as_me:$LINENO: result: no" >&5
2057264fa531Smrgecho "${ECHO_T}no" >&6
2058264fa531Smrgfi
2059264fa531Smrg
2060264fa531Smrg  test -n "$ac_ct_CC" && break
2061264fa531Smrgdone
2062264fa531Smrg
2063264fa531Smrg  CC=$ac_ct_CC
2064264fa531Smrgfi
2065264fa531Smrg
2066264fa531Smrgfi
2067264fa531Smrg
2068264fa531Smrg
2069264fa531Smrgtest -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2070264fa531SmrgSee \`config.log' for more details." >&5
2071264fa531Smrgecho "$as_me: error: no acceptable C compiler found in \$PATH
2072264fa531SmrgSee \`config.log' for more details." >&2;}
2073264fa531Smrg   { (exit 1); exit 1; }; }
2074264fa531Smrg
2075264fa531Smrg# Provide some information about the compiler.
2076264fa531Smrgecho "$as_me:$LINENO:" \
2077264fa531Smrg     "checking for C compiler version" >&5
2078264fa531Smrgac_compiler=`set X $ac_compile; echo $2`
2079264fa531Smrg{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2080264fa531Smrg  (eval $ac_compiler --version </dev/null >&5) 2>&5
2081264fa531Smrg  ac_status=$?
2082264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083264fa531Smrg  (exit $ac_status); }
2084264fa531Smrg{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2085264fa531Smrg  (eval $ac_compiler -v </dev/null >&5) 2>&5
2086264fa531Smrg  ac_status=$?
2087264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088264fa531Smrg  (exit $ac_status); }
2089264fa531Smrg{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2090264fa531Smrg  (eval $ac_compiler -V </dev/null >&5) 2>&5
2091264fa531Smrg  ac_status=$?
2092264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093264fa531Smrg  (exit $ac_status); }
2094264fa531Smrg
2095264fa531Smrgcat >conftest.$ac_ext <<_ACEOF
2096264fa531Smrg/* confdefs.h.  */
2097264fa531Smrg_ACEOF
2098264fa531Smrgcat confdefs.h >>conftest.$ac_ext
2099264fa531Smrgcat >>conftest.$ac_ext <<_ACEOF
2100264fa531Smrg/* end confdefs.h.  */
2101264fa531Smrg
2102264fa531Smrgint
2103264fa531Smrgmain ()
2104264fa531Smrg{
2105264fa531Smrg
2106264fa531Smrg  ;
2107264fa531Smrg  return 0;
2108264fa531Smrg}
2109264fa531Smrg_ACEOF
2110264fa531Smrgac_clean_files_save=$ac_clean_files
2111264fa531Smrgac_clean_files="$ac_clean_files a.out a.exe b.out"
2112264fa531Smrg# Try to create an executable without -o first, disregard a.out.
2113264fa531Smrg# It will help us diagnose broken compilers, and finding out an intuition
2114264fa531Smrg# of exeext.
2115264fa531Smrgecho "$as_me:$LINENO: checking for C compiler default output file name" >&5
2116264fa531Smrgecho $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2117264fa531Smrgac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2118264fa531Smrgif { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2119264fa531Smrg  (eval $ac_link_default) 2>&5
2120264fa531Smrg  ac_status=$?
2121264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122264fa531Smrg  (exit $ac_status); }; then
2123264fa531Smrg  # Find the output, starting from the most likely.  This scheme is
2124264fa531Smrg# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2125264fa531Smrg# resort.
2126264fa531Smrg
2127264fa531Smrg# Be careful to initialize this variable, since it used to be cached.
2128264fa531Smrg# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2129264fa531Smrgac_cv_exeext=
2130264fa531Smrg# b.out is created by i960 compilers.
2131264fa531Smrgfor ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2132264fa531Smrgdo
2133264fa531Smrg  test -f "$ac_file" || continue
2134264fa531Smrg  case $ac_file in
2135264fa531Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2136264fa531Smrg	;;
2137264fa531Smrg    conftest.$ac_ext )
2138264fa531Smrg	# This is the source file.
2139264fa531Smrg	;;
2140264fa531Smrg    [ab].out )
2141264fa531Smrg	# We found the default executable, but exeext='' is most
2142264fa531Smrg	# certainly right.
2143264fa531Smrg	break;;
2144264fa531Smrg    *.* )
2145264fa531Smrg	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2146264fa531Smrg	# FIXME: I believe we export ac_cv_exeext for Libtool,
2147264fa531Smrg	# but it would be cool to find out if it's true.  Does anybody
2148264fa531Smrg	# maintain Libtool? --akim.
2149264fa531Smrg	export ac_cv_exeext
2150264fa531Smrg	break;;
2151264fa531Smrg    * )
2152264fa531Smrg	break;;
2153264fa531Smrg  esac
2154264fa531Smrgdone
2155264fa531Smrgelse
2156264fa531Smrg  echo "$as_me: failed program was:" >&5
2157264fa531Smrgsed 's/^/| /' conftest.$ac_ext >&5
2158264fa531Smrg
2159264fa531Smrg{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2160264fa531SmrgSee \`config.log' for more details." >&5
2161264fa531Smrgecho "$as_me: error: C compiler cannot create executables
2162264fa531SmrgSee \`config.log' for more details." >&2;}
2163264fa531Smrg   { (exit 77); exit 77; }; }
2164264fa531Smrgfi
2165264fa531Smrg
2166264fa531Smrgac_exeext=$ac_cv_exeext
2167264fa531Smrgecho "$as_me:$LINENO: result: $ac_file" >&5
2168264fa531Smrgecho "${ECHO_T}$ac_file" >&6
2169264fa531Smrg
2170264fa531Smrg# Check the compiler produces executables we can run.  If not, either
2171264fa531Smrg# the compiler is broken, or we cross compile.
2172264fa531Smrgecho "$as_me:$LINENO: checking whether the C compiler works" >&5
2173264fa531Smrgecho $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2174264fa531Smrg# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2175264fa531Smrg# If not cross compiling, check that we can run a simple program.
2176264fa531Smrgif test "$cross_compiling" != yes; then
2177264fa531Smrg  if { ac_try='./$ac_file'
2178264fa531Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179264fa531Smrg  (eval $ac_try) 2>&5
2180264fa531Smrg  ac_status=$?
2181264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182264fa531Smrg  (exit $ac_status); }; }; then
2183264fa531Smrg    cross_compiling=no
2184264fa531Smrg  else
2185264fa531Smrg    if test "$cross_compiling" = maybe; then
2186264fa531Smrg	cross_compiling=yes
2187264fa531Smrg    else
2188264fa531Smrg	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2189264fa531SmrgIf you meant to cross compile, use \`--host'.
2190264fa531SmrgSee \`config.log' for more details." >&5
2191264fa531Smrgecho "$as_me: error: cannot run C compiled programs.
2192264fa531SmrgIf you meant to cross compile, use \`--host'.
2193264fa531SmrgSee \`config.log' for more details." >&2;}
2194264fa531Smrg   { (exit 1); exit 1; }; }
2195264fa531Smrg    fi
2196264fa531Smrg  fi
2197264fa531Smrgfi
2198264fa531Smrgecho "$as_me:$LINENO: result: yes" >&5
2199264fa531Smrgecho "${ECHO_T}yes" >&6
2200264fa531Smrg
2201264fa531Smrgrm -f a.out a.exe conftest$ac_cv_exeext b.out
2202264fa531Smrgac_clean_files=$ac_clean_files_save
2203264fa531Smrg# Check the compiler produces executables we can run.  If not, either
2204264fa531Smrg# the compiler is broken, or we cross compile.
2205264fa531Smrgecho "$as_me:$LINENO: checking whether we are cross compiling" >&5
2206264fa531Smrgecho $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2207264fa531Smrgecho "$as_me:$LINENO: result: $cross_compiling" >&5
2208264fa531Smrgecho "${ECHO_T}$cross_compiling" >&6
2209264fa531Smrg
2210264fa531Smrgecho "$as_me:$LINENO: checking for suffix of executables" >&5
2211264fa531Smrgecho $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2212264fa531Smrgif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2213264fa531Smrg  (eval $ac_link) 2>&5
2214264fa531Smrg  ac_status=$?
2215264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216264fa531Smrg  (exit $ac_status); }; then
2217264fa531Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2218264fa531Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2219264fa531Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
2220264fa531Smrg# `rm'.
2221264fa531Smrgfor ac_file in conftest.exe conftest conftest.*; do
2222264fa531Smrg  test -f "$ac_file" || continue
2223264fa531Smrg  case $ac_file in
2224264fa531Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2225264fa531Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2226264fa531Smrg	  export ac_cv_exeext
2227264fa531Smrg	  break;;
2228264fa531Smrg    * ) break;;
2229264fa531Smrg  esac
2230264fa531Smrgdone
2231264fa531Smrgelse
2232264fa531Smrg  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2233264fa531SmrgSee \`config.log' for more details." >&5
2234264fa531Smrgecho "$as_me: error: cannot compute suffix of executables: cannot compile and link
2235264fa531SmrgSee \`config.log' for more details." >&2;}
2236264fa531Smrg   { (exit 1); exit 1; }; }
2237264fa531Smrgfi
2238264fa531Smrg
2239264fa531Smrgrm -f conftest$ac_cv_exeext
2240264fa531Smrgecho "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2241264fa531Smrgecho "${ECHO_T}$ac_cv_exeext" >&6
2242264fa531Smrg
2243264fa531Smrgrm -f conftest.$ac_ext
2244264fa531SmrgEXEEXT=$ac_cv_exeext
2245264fa531Smrgac_exeext=$EXEEXT
2246264fa531Smrgecho "$as_me:$LINENO: checking for suffix of object files" >&5
2247264fa531Smrgecho $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2248264fa531Smrgif test "${ac_cv_objext+set}" = set; then
2249264fa531Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
2250264fa531Smrgelse
2251264fa531Smrg  cat >conftest.$ac_ext <<_ACEOF
2252264fa531Smrg/* confdefs.h.  */
2253264fa531Smrg_ACEOF
2254264fa531Smrgcat confdefs.h >>conftest.$ac_ext
2255264fa531Smrgcat >>conftest.$ac_ext <<_ACEOF
2256264fa531Smrg/* end confdefs.h.  */
2257264fa531Smrg
2258264fa531Smrgint
2259264fa531Smrgmain ()
2260264fa531Smrg{
2261264fa531Smrg
2262264fa531Smrg  ;
2263264fa531Smrg  return 0;
2264264fa531Smrg}
2265264fa531Smrg_ACEOF
2266264fa531Smrgrm -f conftest.o conftest.obj
2267264fa531Smrgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2268264fa531Smrg  (eval $ac_compile) 2>&5
2269264fa531Smrg  ac_status=$?
2270264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271264fa531Smrg  (exit $ac_status); }; then
2272264fa531Smrg  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2273264fa531Smrg  case $ac_file in
2274264fa531Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2275264fa531Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2276264fa531Smrg       break;;
2277264fa531Smrg  esac
2278264fa531Smrgdone
2279264fa531Smrgelse
2280264fa531Smrg  echo "$as_me: failed program was:" >&5
2281264fa531Smrgsed 's/^/| /' conftest.$ac_ext >&5
2282264fa531Smrg
2283264fa531Smrg{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2284264fa531SmrgSee \`config.log' for more details." >&5
2285264fa531Smrgecho "$as_me: error: cannot compute suffix of object files: cannot compile
2286264fa531SmrgSee \`config.log' for more details." >&2;}
2287264fa531Smrg   { (exit 1); exit 1; }; }
2288264fa531Smrgfi
2289264fa531Smrg
2290264fa531Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
2291264fa531Smrgfi
2292264fa531Smrgecho "$as_me:$LINENO: result: $ac_cv_objext" >&5
2293264fa531Smrgecho "${ECHO_T}$ac_cv_objext" >&6
2294264fa531SmrgOBJEXT=$ac_cv_objext
2295264fa531Smrgac_objext=$OBJEXT
2296264fa531Smrgecho "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2297264fa531Smrgecho $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2298264fa531Smrgif test "${ac_cv_c_compiler_gnu+set}" = set; then
2299264fa531Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
2300264fa531Smrgelse
2301264fa531Smrg  cat >conftest.$ac_ext <<_ACEOF
2302264fa531Smrg/* confdefs.h.  */
2303264fa531Smrg_ACEOF
2304264fa531Smrgcat confdefs.h >>conftest.$ac_ext
2305264fa531Smrgcat >>conftest.$ac_ext <<_ACEOF
2306264fa531Smrg/* end confdefs.h.  */
2307264fa531Smrg
2308264fa531Smrgint
2309264fa531Smrgmain ()
2310264fa531Smrg{
2311264fa531Smrg#ifndef __GNUC__
2312264fa531Smrg       choke me
2313264fa531Smrg#endif
2314264fa531Smrg
2315264fa531Smrg  ;
2316264fa531Smrg  return 0;
2317264fa531Smrg}
2318264fa531Smrg_ACEOF
2319264fa531Smrgrm -f conftest.$ac_objext
2320264fa531Smrgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2321264fa531Smrg  (eval $ac_compile) 2>conftest.er1
2322264fa531Smrg  ac_status=$?
2323264fa531Smrg  grep -v '^ *+' conftest.er1 >conftest.err
2324264fa531Smrg  rm -f conftest.er1
2325264fa531Smrg  cat conftest.err >&5
2326264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327264fa531Smrg  (exit $ac_status); } &&
2328264fa531Smrg	 { ac_try='test -z "$ac_c_werror_flag"
2329264fa531Smrg			 || test ! -s conftest.err'
2330264fa531Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331264fa531Smrg  (eval $ac_try) 2>&5
2332264fa531Smrg  ac_status=$?
2333264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334264fa531Smrg  (exit $ac_status); }; } &&
2335264fa531Smrg	 { ac_try='test -s conftest.$ac_objext'
2336264fa531Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337264fa531Smrg  (eval $ac_try) 2>&5
2338264fa531Smrg  ac_status=$?
2339264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340264fa531Smrg  (exit $ac_status); }; }; then
2341264fa531Smrg  ac_compiler_gnu=yes
2342264fa531Smrgelse
2343264fa531Smrg  echo "$as_me: failed program was:" >&5
2344264fa531Smrgsed 's/^/| /' conftest.$ac_ext >&5
2345264fa531Smrg
2346264fa531Smrgac_compiler_gnu=no
2347264fa531Smrgfi
2348264fa531Smrgrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2349264fa531Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
2350264fa531Smrg
2351264fa531Smrgfi
2352264fa531Smrgecho "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2353264fa531Smrgecho "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2354264fa531SmrgGCC=`test $ac_compiler_gnu = yes && echo yes`
2355264fa531Smrgac_test_CFLAGS=${CFLAGS+set}
2356264fa531Smrgac_save_CFLAGS=$CFLAGS
2357264fa531SmrgCFLAGS="-g"
2358264fa531Smrgecho "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2359264fa531Smrgecho $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2360264fa531Smrgif test "${ac_cv_prog_cc_g+set}" = set; then
2361264fa531Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
2362264fa531Smrgelse
2363264fa531Smrg  cat >conftest.$ac_ext <<_ACEOF
2364264fa531Smrg/* confdefs.h.  */
2365264fa531Smrg_ACEOF
2366264fa531Smrgcat confdefs.h >>conftest.$ac_ext
2367264fa531Smrgcat >>conftest.$ac_ext <<_ACEOF
2368264fa531Smrg/* end confdefs.h.  */
2369264fa531Smrg
2370264fa531Smrgint
2371264fa531Smrgmain ()
2372264fa531Smrg{
2373264fa531Smrg
2374264fa531Smrg  ;
2375264fa531Smrg  return 0;
2376264fa531Smrg}
2377264fa531Smrg_ACEOF
2378264fa531Smrgrm -f conftest.$ac_objext
2379264fa531Smrgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2380264fa531Smrg  (eval $ac_compile) 2>conftest.er1
2381264fa531Smrg  ac_status=$?
2382264fa531Smrg  grep -v '^ *+' conftest.er1 >conftest.err
2383264fa531Smrg  rm -f conftest.er1
2384264fa531Smrg  cat conftest.err >&5
2385264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386264fa531Smrg  (exit $ac_status); } &&
2387264fa531Smrg	 { ac_try='test -z "$ac_c_werror_flag"
2388264fa531Smrg			 || test ! -s conftest.err'
2389264fa531Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390264fa531Smrg  (eval $ac_try) 2>&5
2391264fa531Smrg  ac_status=$?
2392264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393264fa531Smrg  (exit $ac_status); }; } &&
2394264fa531Smrg	 { ac_try='test -s conftest.$ac_objext'
2395264fa531Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396264fa531Smrg  (eval $ac_try) 2>&5
2397264fa531Smrg  ac_status=$?
2398264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399264fa531Smrg  (exit $ac_status); }; }; then
2400264fa531Smrg  ac_cv_prog_cc_g=yes
2401264fa531Smrgelse
2402264fa531Smrg  echo "$as_me: failed program was:" >&5
2403264fa531Smrgsed 's/^/| /' conftest.$ac_ext >&5
2404264fa531Smrg
2405264fa531Smrgac_cv_prog_cc_g=no
2406264fa531Smrgfi
2407264fa531Smrgrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2408264fa531Smrgfi
2409264fa531Smrgecho "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2410264fa531Smrgecho "${ECHO_T}$ac_cv_prog_cc_g" >&6
2411264fa531Smrgif test "$ac_test_CFLAGS" = set; then
2412264fa531Smrg  CFLAGS=$ac_save_CFLAGS
2413264fa531Smrgelif test $ac_cv_prog_cc_g = yes; then
2414264fa531Smrg  if test "$GCC" = yes; then
2415264fa531Smrg    CFLAGS="-g -O2"
2416264fa531Smrg  else
2417264fa531Smrg    CFLAGS="-g"
2418264fa531Smrg  fi
2419264fa531Smrgelse
2420264fa531Smrg  if test "$GCC" = yes; then
2421264fa531Smrg    CFLAGS="-O2"
2422264fa531Smrg  else
2423264fa531Smrg    CFLAGS=
2424264fa531Smrg  fi
2425264fa531Smrgfi
2426264fa531Smrgecho "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2427264fa531Smrgecho $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2428264fa531Smrgif test "${ac_cv_prog_cc_stdc+set}" = set; then
2429264fa531Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
2430264fa531Smrgelse
2431264fa531Smrg  ac_cv_prog_cc_stdc=no
2432264fa531Smrgac_save_CC=$CC
2433264fa531Smrgcat >conftest.$ac_ext <<_ACEOF
2434264fa531Smrg/* confdefs.h.  */
2435264fa531Smrg_ACEOF
2436264fa531Smrgcat confdefs.h >>conftest.$ac_ext
2437264fa531Smrgcat >>conftest.$ac_ext <<_ACEOF
2438264fa531Smrg/* end confdefs.h.  */
2439264fa531Smrg#include <stdarg.h>
2440264fa531Smrg#include <stdio.h>
2441264fa531Smrg#include <sys/types.h>
2442264fa531Smrg#include <sys/stat.h>
2443264fa531Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2444264fa531Smrgstruct buf { int x; };
2445264fa531SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
2446264fa531Smrgstatic char *e (p, i)
2447264fa531Smrg     char **p;
2448264fa531Smrg     int i;
2449264fa531Smrg{
2450264fa531Smrg  return p[i];
2451264fa531Smrg}
2452264fa531Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
2453264fa531Smrg{
2454264fa531Smrg  char *s;
2455264fa531Smrg  va_list v;
2456264fa531Smrg  va_start (v,p);
2457264fa531Smrg  s = g (p, va_arg (v,int));
2458264fa531Smrg  va_end (v);
2459264fa531Smrg  return s;
2460264fa531Smrg}
2461264fa531Smrg
2462264fa531Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2463264fa531Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
2464264fa531Smrg   These don't provoke an error unfortunately, instead are silently treated
2465264fa531Smrg   as 'x'.  The following induces an error, until -std1 is added to get
2466264fa531Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2467264fa531Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
2468264fa531Smrg   that's true only with -std1.  */
2469264fa531Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
2470264fa531Smrg
2471264fa531Smrgint test (int i, double x);
2472264fa531Smrgstruct s1 {int (*f) (int a);};
2473264fa531Smrgstruct s2 {int (*f) (double a);};
2474264fa531Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2475264fa531Smrgint argc;
2476264fa531Smrgchar **argv;
2477264fa531Smrgint
2478264fa531Smrgmain ()
2479264fa531Smrg{
2480264fa531Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2481264fa531Smrg  ;
2482264fa531Smrg  return 0;
2483264fa531Smrg}
2484264fa531Smrg_ACEOF
2485264fa531Smrg# Don't try gcc -ansi; that turns off useful extensions and
2486264fa531Smrg# breaks some systems' header files.
2487264fa531Smrg# AIX			-qlanglvl=ansi
2488264fa531Smrg# Ultrix and OSF/1	-std1
2489264fa531Smrg# HP-UX 10.20 and later	-Ae
2490264fa531Smrg# HP-UX older versions	-Aa -D_HPUX_SOURCE
2491264fa531Smrg# SVR4			-Xc -D__EXTENSIONS__
2492264fa531Smrgfor ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2493264fa531Smrgdo
2494264fa531Smrg  CC="$ac_save_CC $ac_arg"
2495264fa531Smrg  rm -f conftest.$ac_objext
2496264fa531Smrgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2497264fa531Smrg  (eval $ac_compile) 2>conftest.er1
2498264fa531Smrg  ac_status=$?
2499264fa531Smrg  grep -v '^ *+' conftest.er1 >conftest.err
2500264fa531Smrg  rm -f conftest.er1
2501264fa531Smrg  cat conftest.err >&5
2502264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503264fa531Smrg  (exit $ac_status); } &&
2504264fa531Smrg	 { ac_try='test -z "$ac_c_werror_flag"
2505264fa531Smrg			 || test ! -s conftest.err'
2506264fa531Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507264fa531Smrg  (eval $ac_try) 2>&5
2508264fa531Smrg  ac_status=$?
2509264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510264fa531Smrg  (exit $ac_status); }; } &&
2511264fa531Smrg	 { ac_try='test -s conftest.$ac_objext'
2512264fa531Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513264fa531Smrg  (eval $ac_try) 2>&5
2514264fa531Smrg  ac_status=$?
2515264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516264fa531Smrg  (exit $ac_status); }; }; then
2517264fa531Smrg  ac_cv_prog_cc_stdc=$ac_arg
2518264fa531Smrgbreak
2519264fa531Smrgelse
2520264fa531Smrg  echo "$as_me: failed program was:" >&5
2521264fa531Smrgsed 's/^/| /' conftest.$ac_ext >&5
2522264fa531Smrg
2523264fa531Smrgfi
2524264fa531Smrgrm -f conftest.err conftest.$ac_objext
2525264fa531Smrgdone
2526264fa531Smrgrm -f conftest.$ac_ext conftest.$ac_objext
2527264fa531SmrgCC=$ac_save_CC
2528264fa531Smrg
2529264fa531Smrgfi
2530264fa531Smrg
2531264fa531Smrgcase "x$ac_cv_prog_cc_stdc" in
2532264fa531Smrg  x|xno)
2533264fa531Smrg    echo "$as_me:$LINENO: result: none needed" >&5
2534264fa531Smrgecho "${ECHO_T}none needed" >&6 ;;
2535264fa531Smrg  *)
2536264fa531Smrg    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2537264fa531Smrgecho "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2538264fa531Smrg    CC="$CC $ac_cv_prog_cc_stdc" ;;
2539264fa531Smrgesac
2540264fa531Smrg
2541264fa531Smrg# Some people use a C++ compiler to compile C.  Since we use `exit',
2542264fa531Smrg# in C++ we need to declare it.  In case someone uses the same compiler
2543264fa531Smrg# for both compiling C and C++ we need to have the C++ compiler decide
2544264fa531Smrg# the declaration of exit, since it's the most demanding environment.
2545264fa531Smrgcat >conftest.$ac_ext <<_ACEOF
2546264fa531Smrg#ifndef __cplusplus
2547264fa531Smrg  choke me
2548264fa531Smrg#endif
2549264fa531Smrg_ACEOF
2550264fa531Smrgrm -f conftest.$ac_objext
2551264fa531Smrgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2552264fa531Smrg  (eval $ac_compile) 2>conftest.er1
2553264fa531Smrg  ac_status=$?
2554264fa531Smrg  grep -v '^ *+' conftest.er1 >conftest.err
2555264fa531Smrg  rm -f conftest.er1
2556264fa531Smrg  cat conftest.err >&5
2557264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558264fa531Smrg  (exit $ac_status); } &&
2559264fa531Smrg	 { ac_try='test -z "$ac_c_werror_flag"
2560264fa531Smrg			 || test ! -s conftest.err'
2561264fa531Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562264fa531Smrg  (eval $ac_try) 2>&5
2563264fa531Smrg  ac_status=$?
2564264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565264fa531Smrg  (exit $ac_status); }; } &&
2566264fa531Smrg	 { ac_try='test -s conftest.$ac_objext'
2567264fa531Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568264fa531Smrg  (eval $ac_try) 2>&5
2569264fa531Smrg  ac_status=$?
2570264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571264fa531Smrg  (exit $ac_status); }; }; then
2572264fa531Smrg  for ac_declaration in \
2573264fa531Smrg   '' \
2574264fa531Smrg   'extern "C" void std::exit (int) throw (); using std::exit;' \
2575264fa531Smrg   'extern "C" void std::exit (int); using std::exit;' \
2576264fa531Smrg   'extern "C" void exit (int) throw ();' \
2577264fa531Smrg   'extern "C" void exit (int);' \
2578264fa531Smrg   'void exit (int);'
2579264fa531Smrgdo
2580264fa531Smrg  cat >conftest.$ac_ext <<_ACEOF
2581264fa531Smrg/* confdefs.h.  */
2582264fa531Smrg_ACEOF
2583264fa531Smrgcat confdefs.h >>conftest.$ac_ext
2584264fa531Smrgcat >>conftest.$ac_ext <<_ACEOF
2585264fa531Smrg/* end confdefs.h.  */
2586264fa531Smrg$ac_declaration
2587264fa531Smrg#include <stdlib.h>
2588264fa531Smrgint
2589264fa531Smrgmain ()
2590264fa531Smrg{
2591264fa531Smrgexit (42);
2592264fa531Smrg  ;
2593264fa531Smrg  return 0;
2594264fa531Smrg}
2595264fa531Smrg_ACEOF
2596264fa531Smrgrm -f conftest.$ac_objext
2597264fa531Smrgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2598264fa531Smrg  (eval $ac_compile) 2>conftest.er1
2599264fa531Smrg  ac_status=$?
2600264fa531Smrg  grep -v '^ *+' conftest.er1 >conftest.err
2601264fa531Smrg  rm -f conftest.er1
2602264fa531Smrg  cat conftest.err >&5
2603264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604264fa531Smrg  (exit $ac_status); } &&
2605264fa531Smrg	 { ac_try='test -z "$ac_c_werror_flag"
2606264fa531Smrg			 || test ! -s conftest.err'
2607264fa531Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608264fa531Smrg  (eval $ac_try) 2>&5
2609264fa531Smrg  ac_status=$?
2610264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611264fa531Smrg  (exit $ac_status); }; } &&
2612264fa531Smrg	 { ac_try='test -s conftest.$ac_objext'
2613264fa531Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614264fa531Smrg  (eval $ac_try) 2>&5
2615264fa531Smrg  ac_status=$?
2616264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617264fa531Smrg  (exit $ac_status); }; }; then
2618264fa531Smrg  :
2619264fa531Smrgelse
2620264fa531Smrg  echo "$as_me: failed program was:" >&5
2621264fa531Smrgsed 's/^/| /' conftest.$ac_ext >&5
2622264fa531Smrg
2623264fa531Smrgcontinue
2624264fa531Smrgfi
2625264fa531Smrgrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2626264fa531Smrg  cat >conftest.$ac_ext <<_ACEOF
2627264fa531Smrg/* confdefs.h.  */
2628264fa531Smrg_ACEOF
2629264fa531Smrgcat confdefs.h >>conftest.$ac_ext
2630264fa531Smrgcat >>conftest.$ac_ext <<_ACEOF
2631264fa531Smrg/* end confdefs.h.  */
2632264fa531Smrg$ac_declaration
2633264fa531Smrgint
2634264fa531Smrgmain ()
2635264fa531Smrg{
2636264fa531Smrgexit (42);
2637264fa531Smrg  ;
2638264fa531Smrg  return 0;
2639264fa531Smrg}
2640264fa531Smrg_ACEOF
2641264fa531Smrgrm -f conftest.$ac_objext
2642264fa531Smrgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643264fa531Smrg  (eval $ac_compile) 2>conftest.er1
2644264fa531Smrg  ac_status=$?
2645264fa531Smrg  grep -v '^ *+' conftest.er1 >conftest.err
2646264fa531Smrg  rm -f conftest.er1
2647264fa531Smrg  cat conftest.err >&5
2648264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649264fa531Smrg  (exit $ac_status); } &&
2650264fa531Smrg	 { ac_try='test -z "$ac_c_werror_flag"
2651264fa531Smrg			 || test ! -s conftest.err'
2652264fa531Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653264fa531Smrg  (eval $ac_try) 2>&5
2654264fa531Smrg  ac_status=$?
2655264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656264fa531Smrg  (exit $ac_status); }; } &&
2657264fa531Smrg	 { ac_try='test -s conftest.$ac_objext'
2658264fa531Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659264fa531Smrg  (eval $ac_try) 2>&5
2660264fa531Smrg  ac_status=$?
2661264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662264fa531Smrg  (exit $ac_status); }; }; then
2663264fa531Smrg  break
2664264fa531Smrgelse
2665264fa531Smrg  echo "$as_me: failed program was:" >&5
2666264fa531Smrgsed 's/^/| /' conftest.$ac_ext >&5
2667264fa531Smrg
2668264fa531Smrgfi
2669264fa531Smrgrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2670264fa531Smrgdone
2671264fa531Smrgrm -f conftest*
2672264fa531Smrgif test -n "$ac_declaration"; then
2673264fa531Smrg  echo '#ifdef __cplusplus' >>confdefs.h
2674264fa531Smrg  echo $ac_declaration      >>confdefs.h
2675264fa531Smrg  echo '#endif'             >>confdefs.h
2676264fa531Smrgfi
2677264fa531Smrg
2678264fa531Smrgelse
2679264fa531Smrg  echo "$as_me: failed program was:" >&5
2680264fa531Smrgsed 's/^/| /' conftest.$ac_ext >&5
2681264fa531Smrg
2682264fa531Smrgfi
2683264fa531Smrgrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2684264fa531Smrgac_ext=c
2685264fa531Smrgac_cpp='$CPP $CPPFLAGS'
2686264fa531Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2687264fa531Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2688264fa531Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2689264fa531SmrgDEPDIR="${am__leading_dot}deps"
2690264fa531Smrg
2691264fa531Smrg          ac_config_commands="$ac_config_commands depfiles"
2692264fa531Smrg
2693264fa531Smrg
2694264fa531Smrgam_make=${MAKE-make}
2695264fa531Smrgcat > confinc << 'END'
2696264fa531Smrgam__doit:
2697264fa531Smrg	@echo done
2698264fa531Smrg.PHONY: am__doit
2699264fa531SmrgEND
2700264fa531Smrg# If we don't find an include directive, just comment out the code.
2701264fa531Smrgecho "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2702264fa531Smrgecho $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2703264fa531Smrgam__include="#"
2704264fa531Smrgam__quote=
2705264fa531Smrg_am_result=none
2706264fa531Smrg# First try GNU make style include.
2707264fa531Smrgecho "include confinc" > confmf
2708264fa531Smrg# We grep out `Entering directory' and `Leaving directory'
2709264fa531Smrg# messages which can occur if `w' ends up in MAKEFLAGS.
2710264fa531Smrg# In particular we don't look at `^make:' because GNU make might
2711264fa531Smrg# be invoked under some other name (usually "gmake"), in which
2712264fa531Smrg# case it prints its new name instead of `make'.
2713264fa531Smrgif test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2714264fa531Smrg   am__include=include
2715264fa531Smrg   am__quote=
2716264fa531Smrg   _am_result=GNU
2717264fa531Smrgfi
2718264fa531Smrg# Now try BSD make style include.
2719264fa531Smrgif test "$am__include" = "#"; then
2720264fa531Smrg   echo '.include "confinc"' > confmf
2721264fa531Smrg   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2722264fa531Smrg      am__include=.include
2723264fa531Smrg      am__quote="\""
2724264fa531Smrg      _am_result=BSD
2725264fa531Smrg   fi
2726264fa531Smrgfi
2727264fa531Smrg
2728264fa531Smrg
2729264fa531Smrgecho "$as_me:$LINENO: result: $_am_result" >&5
2730264fa531Smrgecho "${ECHO_T}$_am_result" >&6
2731264fa531Smrgrm -f confinc confmf
2732264fa531Smrg
2733264fa531Smrg# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2734264fa531Smrgif test "${enable_dependency_tracking+set}" = set; then
2735264fa531Smrg  enableval="$enable_dependency_tracking"
2736264fa531Smrg
2737264fa531Smrgfi;
2738264fa531Smrgif test "x$enable_dependency_tracking" != xno; then
2739264fa531Smrg  am_depcomp="$ac_aux_dir/depcomp"
2740264fa531Smrg  AMDEPBACKSLASH='\'
2741264fa531Smrgfi
2742264fa531Smrg
2743264fa531Smrg
2744264fa531Smrgif test "x$enable_dependency_tracking" != xno; then
2745264fa531Smrg  AMDEP_TRUE=
2746264fa531Smrg  AMDEP_FALSE='#'
2747264fa531Smrgelse
2748264fa531Smrg  AMDEP_TRUE='#'
2749264fa531Smrg  AMDEP_FALSE=
2750264fa531Smrgfi
2751264fa531Smrg
2752264fa531Smrg
2753264fa531Smrg
2754264fa531Smrg
2755264fa531Smrgdepcc="$CC"   am_compiler_list=
2756264fa531Smrg
2757264fa531Smrgecho "$as_me:$LINENO: checking dependency style of $depcc" >&5
2758264fa531Smrgecho $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2759264fa531Smrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2760264fa531Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
2761264fa531Smrgelse
2762264fa531Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2763264fa531Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
2764264fa531Smrg  # making bogus files that we don't know about and never remove.  For
2765264fa531Smrg  # instance it was reported that on HP-UX the gcc test will end up
2766264fa531Smrg  # making a dummy file named `D' -- because `-MD' means `put the output
2767264fa531Smrg  # in D'.
2768264fa531Smrg  mkdir conftest.dir
2769264fa531Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
2770264fa531Smrg  # using a relative directory.
2771264fa531Smrg  cp "$am_depcomp" conftest.dir
2772264fa531Smrg  cd conftest.dir
2773264fa531Smrg  # We will build objects and dependencies in a subdirectory because
2774264fa531Smrg  # it helps to detect inapplicable dependency modes.  For instance
2775264fa531Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
2776264fa531Smrg  # side effect of compilation, but ICC will put the dependencies in
2777264fa531Smrg  # the current directory while Tru64 will put them in the object
2778264fa531Smrg  # directory.
2779264fa531Smrg  mkdir sub
2780264fa531Smrg
2781264fa531Smrg  am_cv_CC_dependencies_compiler_type=none
2782264fa531Smrg  if test "$am_compiler_list" = ""; then
2783264fa531Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2784264fa531Smrg  fi
2785264fa531Smrg  for depmode in $am_compiler_list; do
2786264fa531Smrg    # Setup a source with many dependencies, because some compilers
2787264fa531Smrg    # like to wrap large dependency lists on column 80 (with \), and
2788264fa531Smrg    # we should not choose a depcomp mode which is confused by this.
2789264fa531Smrg    #
2790264fa531Smrg    # We need to recreate these files for each test, as the compiler may
2791264fa531Smrg    # overwrite some of them when testing with obscure command lines.
2792264fa531Smrg    # This happens at least with the AIX C compiler.
2793264fa531Smrg    : > sub/conftest.c
2794264fa531Smrg    for i in 1 2 3 4 5 6; do
2795264fa531Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2796264fa531Smrg      : > sub/conftst$i.h
2797264fa531Smrg    done
2798264fa531Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2799264fa531Smrg
2800264fa531Smrg    case $depmode in
2801264fa531Smrg    nosideeffect)
2802264fa531Smrg      # after this tag, mechanisms are not by side-effect, so they'll
2803264fa531Smrg      # only be used when explicitly requested
2804264fa531Smrg      if test "x$enable_dependency_tracking" = xyes; then
2805264fa531Smrg	continue
2806264fa531Smrg      else
2807264fa531Smrg	break
2808264fa531Smrg      fi
2809264fa531Smrg      ;;
2810264fa531Smrg    none) break ;;
2811264fa531Smrg    esac
2812264fa531Smrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2813264fa531Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
2814264fa531Smrg    # handle `-M -o', and we need to detect this.
2815264fa531Smrg    if depmode=$depmode \
2816264fa531Smrg       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2817264fa531Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2818264fa531Smrg       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2819264fa531Smrg         >/dev/null 2>conftest.err &&
2820264fa531Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2821264fa531Smrg       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2822264fa531Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2823264fa531Smrg      # icc doesn't choke on unknown options, it will just issue warnings
2824264fa531Smrg      # (even with -Werror).  So we grep stderr for any message
2825264fa531Smrg      # that says an option was ignored.
2826264fa531Smrg      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2827264fa531Smrg        am_cv_CC_dependencies_compiler_type=$depmode
2828264fa531Smrg        break
2829264fa531Smrg      fi
2830264fa531Smrg    fi
2831264fa531Smrg  done
2832264fa531Smrg
2833264fa531Smrg  cd ..
2834264fa531Smrg  rm -rf conftest.dir
2835264fa531Smrgelse
2836264fa531Smrg  am_cv_CC_dependencies_compiler_type=none
2837264fa531Smrgfi
2838264fa531Smrg
2839264fa531Smrgfi
2840264fa531Smrgecho "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2841264fa531Smrgecho "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2842264fa531SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2843264fa531Smrg
2844264fa531Smrg
2845264fa531Smrg
2846264fa531Smrgif
2847264fa531Smrg  test "x$enable_dependency_tracking" != xno \
2848264fa531Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2849264fa531Smrg  am__fastdepCC_TRUE=
2850264fa531Smrg  am__fastdepCC_FALSE='#'
2851264fa531Smrgelse
2852264fa531Smrg  am__fastdepCC_TRUE='#'
2853264fa531Smrg  am__fastdepCC_FALSE=
2854264fa531Smrgfi
2855264fa531Smrg
2856264fa531Smrg
2857264fa531Smrg# Find a good install program.  We prefer a C program (faster),
2858264fa531Smrg# so one script is as good as another.  But avoid the broken or
2859264fa531Smrg# incompatible versions:
2860264fa531Smrg# SysV /etc/install, /usr/sbin/install
2861264fa531Smrg# SunOS /usr/etc/install
2862264fa531Smrg# IRIX /sbin/install
2863264fa531Smrg# AIX /bin/install
2864264fa531Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
2865264fa531Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2866264fa531Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2867264fa531Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2868264fa531Smrg# OS/2's system install, which has a completely different semantic
2869264fa531Smrg# ./install, which can be erroneously created by make from ./install.sh.
2870264fa531Smrgecho "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2871264fa531Smrgecho $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2872264fa531Smrgif test -z "$INSTALL"; then
2873264fa531Smrgif test "${ac_cv_path_install+set}" = set; then
2874264fa531Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
2875264fa531Smrgelse
2876264fa531Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877264fa531Smrgfor as_dir in $PATH
2878264fa531Smrgdo
2879264fa531Smrg  IFS=$as_save_IFS
2880264fa531Smrg  test -z "$as_dir" && as_dir=.
2881264fa531Smrg  # Account for people who put trailing slashes in PATH elements.
2882264fa531Smrgcase $as_dir/ in
2883264fa531Smrg  ./ | .// | /cC/* | \
2884264fa531Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2885264fa531Smrg  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2886264fa531Smrg  /usr/ucb/* ) ;;
2887264fa531Smrg  *)
2888264fa531Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
2889264fa531Smrg    # Don't use installbsd from OSF since it installs stuff as root
2890264fa531Smrg    # by default.
2891264fa531Smrg    for ac_prog in ginstall scoinst install; do
2892264fa531Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
2893264fa531Smrg	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2894264fa531Smrg	  if test $ac_prog = install &&
2895264fa531Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2896264fa531Smrg	    # AIX install.  It has an incompatible calling convention.
2897264fa531Smrg	    :
2898264fa531Smrg	  elif test $ac_prog = install &&
2899264fa531Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2900264fa531Smrg	    # program-specific install script used by HP pwplus--don't use.
2901264fa531Smrg	    :
2902264fa531Smrg	  else
2903264fa531Smrg	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2904264fa531Smrg	    break 3
2905264fa531Smrg	  fi
2906264fa531Smrg	fi
2907264fa531Smrg      done
2908264fa531Smrg    done
2909264fa531Smrg    ;;
2910264fa531Smrgesac
2911264fa531Smrgdone
2912264fa531Smrg
2913264fa531Smrg
2914264fa531Smrgfi
2915264fa531Smrg  if test "${ac_cv_path_install+set}" = set; then
2916264fa531Smrg    INSTALL=$ac_cv_path_install
2917264fa531Smrg  else
2918264fa531Smrg    # As a last resort, use the slow shell script.  We don't cache a
2919264fa531Smrg    # path for INSTALL within a source directory, because that will
2920264fa531Smrg    # break other packages using the cache if that directory is
2921264fa531Smrg    # removed, or if the path is relative.
2922264fa531Smrg    INSTALL=$ac_install_sh
2923264fa531Smrg  fi
2924264fa531Smrgfi
2925264fa531Smrgecho "$as_me:$LINENO: result: $INSTALL" >&5
2926264fa531Smrgecho "${ECHO_T}$INSTALL" >&6
2927264fa531Smrg
2928264fa531Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2929264fa531Smrg# It thinks the first close brace ends the variable substitution.
2930264fa531Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2931264fa531Smrg
2932264fa531Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2933264fa531Smrg
2934264fa531Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2935264fa531Smrg
2936264fa531Smrg
2937264fa531Smrg# Extract the first word of "sed", so it can be a program name with args.
2938264fa531Smrgset dummy sed; ac_word=$2
2939264fa531Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
2940264fa531Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2941264fa531Smrgif test "${ac_cv_path_SED+set}" = set; then
2942264fa531Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
2943264fa531Smrgelse
2944264fa531Smrg  case $SED in
2945264fa531Smrg  [\\/]* | ?:[\\/]*)
2946264fa531Smrg  ac_cv_path_SED="$SED" # Let the user override the test with a path.
2947264fa531Smrg  ;;
2948264fa531Smrg  *)
2949264fa531Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950264fa531Smrgfor as_dir in $PATH
2951264fa531Smrgdo
2952264fa531Smrg  IFS=$as_save_IFS
2953264fa531Smrg  test -z "$as_dir" && as_dir=.
2954264fa531Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
2955264fa531Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2956264fa531Smrg    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
2957264fa531Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2958264fa531Smrg    break 2
2959264fa531Smrg  fi
2960264fa531Smrgdone
2961264fa531Smrgdone
2962264fa531Smrg
2963264fa531Smrg  ;;
2964264fa531Smrgesac
2965264fa531Smrgfi
2966264fa531SmrgSED=$ac_cv_path_SED
2967264fa531Smrg
2968264fa531Smrgif test -n "$SED"; then
2969264fa531Smrg  echo "$as_me:$LINENO: result: $SED" >&5
2970264fa531Smrgecho "${ECHO_T}$SED" >&6
2971264fa531Smrgelse
2972264fa531Smrg  echo "$as_me:$LINENO: result: no" >&5
2973264fa531Smrgecho "${ECHO_T}no" >&6
2974264fa531Smrgfi
2975264fa531Smrg
2976264fa531Smrgif [ -z $SED ] ; then
2977264fa531Smrg   { { echo "$as_me:$LINENO: error: sed is needed to build x11perf" >&5
2978264fa531Smrgecho "$as_me: error: sed is needed to build x11perf" >&2;}
2979264fa531Smrg   { (exit 1); exit 1; }; }
2980264fa531Smrgfi
2981264fa531Smrg
2982264fa531Smrg
2983264fa531Smrgecho "$as_me:$LINENO: checking return type of signal handlers" >&5
2984264fa531Smrgecho $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
2985264fa531Smrgif test "${ac_cv_type_signal+set}" = set; then
2986264fa531Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
2987264fa531Smrgelse
2988264fa531Smrg  cat >conftest.$ac_ext <<_ACEOF
2989264fa531Smrg/* confdefs.h.  */
2990264fa531Smrg_ACEOF
2991264fa531Smrgcat confdefs.h >>conftest.$ac_ext
2992264fa531Smrgcat >>conftest.$ac_ext <<_ACEOF
2993264fa531Smrg/* end confdefs.h.  */
2994264fa531Smrg#include <sys/types.h>
2995264fa531Smrg#include <signal.h>
2996264fa531Smrg#ifdef signal
2997264fa531Smrg# undef signal
2998264fa531Smrg#endif
2999264fa531Smrg#ifdef __cplusplus
3000264fa531Smrgextern "C" void (*signal (int, void (*)(int)))(int);
3001264fa531Smrg#else
3002264fa531Smrgvoid (*signal ()) ();
3003264fa531Smrg#endif
3004264fa531Smrg
3005264fa531Smrgint
3006264fa531Smrgmain ()
3007264fa531Smrg{
3008264fa531Smrgint i;
3009264fa531Smrg  ;
3010264fa531Smrg  return 0;
3011264fa531Smrg}
3012264fa531Smrg_ACEOF
3013264fa531Smrgrm -f conftest.$ac_objext
3014264fa531Smrgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3015264fa531Smrg  (eval $ac_compile) 2>conftest.er1
3016264fa531Smrg  ac_status=$?
3017264fa531Smrg  grep -v '^ *+' conftest.er1 >conftest.err
3018264fa531Smrg  rm -f conftest.er1
3019264fa531Smrg  cat conftest.err >&5
3020264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021264fa531Smrg  (exit $ac_status); } &&
3022264fa531Smrg	 { ac_try='test -z "$ac_c_werror_flag"
3023264fa531Smrg			 || test ! -s conftest.err'
3024264fa531Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3025264fa531Smrg  (eval $ac_try) 2>&5
3026264fa531Smrg  ac_status=$?
3027264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028264fa531Smrg  (exit $ac_status); }; } &&
3029264fa531Smrg	 { ac_try='test -s conftest.$ac_objext'
3030264fa531Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031264fa531Smrg  (eval $ac_try) 2>&5
3032264fa531Smrg  ac_status=$?
3033264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034264fa531Smrg  (exit $ac_status); }; }; then
3035264fa531Smrg  ac_cv_type_signal=void
3036264fa531Smrgelse
3037264fa531Smrg  echo "$as_me: failed program was:" >&5
3038264fa531Smrgsed 's/^/| /' conftest.$ac_ext >&5
3039264fa531Smrg
3040264fa531Smrgac_cv_type_signal=int
3041264fa531Smrgfi
3042264fa531Smrgrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3043264fa531Smrgfi
3044264fa531Smrgecho "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3045264fa531Smrgecho "${ECHO_T}$ac_cv_type_signal" >&6
3046264fa531Smrg
3047264fa531Smrgcat >>confdefs.h <<_ACEOF
3048264fa531Smrg#define RETSIGTYPE $ac_cv_type_signal
3049264fa531Smrg_ACEOF
3050264fa531Smrg
3051264fa531Smrg
3052264fa531Smrg
3053264fa531Smrg# Checks for pkg-config packages
3054264fa531Smrg
3055264fa531Smrg
3056264fa531Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3057264fa531Smrg	if test -n "$ac_tool_prefix"; then
3058264fa531Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3059264fa531Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3060264fa531Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
3061264fa531Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3062264fa531Smrgif test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3063264fa531Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
3064264fa531Smrgelse
3065264fa531Smrg  case $PKG_CONFIG in
3066264fa531Smrg  [\\/]* | ?:[\\/]*)
3067264fa531Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3068264fa531Smrg  ;;
3069264fa531Smrg  *)
3070264fa531Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071264fa531Smrgfor as_dir in $PATH
3072264fa531Smrgdo
3073264fa531Smrg  IFS=$as_save_IFS
3074264fa531Smrg  test -z "$as_dir" && as_dir=.
3075264fa531Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
3076264fa531Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3077264fa531Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3078264fa531Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3079264fa531Smrg    break 2
3080264fa531Smrg  fi
3081264fa531Smrgdone
3082264fa531Smrgdone
3083264fa531Smrg
3084264fa531Smrg  ;;
3085264fa531Smrgesac
3086264fa531Smrgfi
3087264fa531SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
3088264fa531Smrg
3089264fa531Smrgif test -n "$PKG_CONFIG"; then
3090264fa531Smrg  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3091264fa531Smrgecho "${ECHO_T}$PKG_CONFIG" >&6
3092264fa531Smrgelse
3093264fa531Smrg  echo "$as_me:$LINENO: result: no" >&5
3094264fa531Smrgecho "${ECHO_T}no" >&6
3095264fa531Smrgfi
3096264fa531Smrg
3097264fa531Smrgfi
3098264fa531Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
3099264fa531Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
3100264fa531Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
3101264fa531Smrgset dummy pkg-config; ac_word=$2
3102264fa531Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
3103264fa531Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3104264fa531Smrgif test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3105264fa531Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
3106264fa531Smrgelse
3107264fa531Smrg  case $ac_pt_PKG_CONFIG in
3108264fa531Smrg  [\\/]* | ?:[\\/]*)
3109264fa531Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3110264fa531Smrg  ;;
3111264fa531Smrg  *)
3112264fa531Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113264fa531Smrgfor as_dir in $PATH
3114264fa531Smrgdo
3115264fa531Smrg  IFS=$as_save_IFS
3116264fa531Smrg  test -z "$as_dir" && as_dir=.
3117264fa531Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
3118264fa531Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119264fa531Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3120264fa531Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3121264fa531Smrg    break 2
3122264fa531Smrg  fi
3123264fa531Smrgdone
3124264fa531Smrgdone
3125264fa531Smrg
3126264fa531Smrg  ;;
3127264fa531Smrgesac
3128264fa531Smrgfi
3129264fa531Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3130264fa531Smrg
3131264fa531Smrgif test -n "$ac_pt_PKG_CONFIG"; then
3132264fa531Smrg  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
3133264fa531Smrgecho "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3134264fa531Smrgelse
3135264fa531Smrg  echo "$as_me:$LINENO: result: no" >&5
3136264fa531Smrgecho "${ECHO_T}no" >&6
3137264fa531Smrgfi
3138264fa531Smrg
3139264fa531Smrg  PKG_CONFIG=$ac_pt_PKG_CONFIG
3140264fa531Smrgelse
3141264fa531Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3142264fa531Smrgfi
3143264fa531Smrg
3144264fa531Smrgfi
3145264fa531Smrgif test -n "$PKG_CONFIG"; then
3146264fa531Smrg	_pkg_min_version=0.9.0
3147264fa531Smrg	echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3148264fa531Smrgecho $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
3149264fa531Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3150264fa531Smrg		echo "$as_me:$LINENO: result: yes" >&5
3151264fa531Smrgecho "${ECHO_T}yes" >&6
3152264fa531Smrg	else
3153264fa531Smrg		echo "$as_me:$LINENO: result: no" >&5
3154264fa531Smrgecho "${ECHO_T}no" >&6
3155264fa531Smrg		PKG_CONFIG=""
3156264fa531Smrg	fi
3157264fa531Smrg
3158264fa531Smrgfi
3159264fa531Smrg
3160264fa531Smrgpkg_failed=no
3161264fa531Smrgecho "$as_me:$LINENO: checking for X11PERF" >&5
3162264fa531Smrgecho $ECHO_N "checking for X11PERF... $ECHO_C" >&6
3163264fa531Smrg
3164264fa531Smrgif test -n "$PKG_CONFIG"; then
3165264fa531Smrg        if test -n "$PKG_CONFIG" && \
3166264fa531Smrg    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xmuu\"") >&5
3167264fa531Smrg  ($PKG_CONFIG --exists --print-errors "x11 xmuu") 2>&5
3168264fa531Smrg  ac_status=$?
3169264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170264fa531Smrg  (exit $ac_status); }; then
3171264fa531Smrg  pkg_cv_X11PERF_CFLAGS=`$PKG_CONFIG --cflags "x11 xmuu" 2>/dev/null`
3172264fa531Smrgelse
3173264fa531Smrg  pkg_failed=yes
3174264fa531Smrgfi
3175264fa531Smrgelse
3176264fa531Smrg	pkg_failed=untried
3177264fa531Smrgfi
3178264fa531Smrgif test -n "$PKG_CONFIG"; then
3179264fa531Smrg        if test -n "$PKG_CONFIG" && \
3180264fa531Smrg    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xmuu\"") >&5
3181264fa531Smrg  ($PKG_CONFIG --exists --print-errors "x11 xmuu") 2>&5
3182264fa531Smrg  ac_status=$?
3183264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184264fa531Smrg  (exit $ac_status); }; then
3185264fa531Smrg  pkg_cv_X11PERF_LIBS=`$PKG_CONFIG --libs "x11 xmuu" 2>/dev/null`
3186264fa531Smrgelse
3187264fa531Smrg  pkg_failed=yes
3188264fa531Smrgfi
3189264fa531Smrgelse
3190264fa531Smrg	pkg_failed=untried
3191264fa531Smrgfi
3192264fa531Smrg
3193264fa531Smrgif test $pkg_failed = yes; then
3194264fa531Smrg	X11PERF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11 xmuu"`
3195264fa531Smrg	# Put the nasty error message in config.log where it belongs
3196264fa531Smrg	echo "$X11PERF_PKG_ERRORS" 1>&5
3197264fa531Smrg
3198264fa531Smrg	{ { echo "$as_me:$LINENO: error: Package requirements (x11 xmuu) were not met.
3199264fa531SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
3200264fa531Smrginstalled software in a non-standard prefix.
3201264fa531Smrg
3202264fa531SmrgAlternatively you may set the X11PERF_CFLAGS and X11PERF_LIBS environment variables
3203264fa531Smrgto avoid the need to call pkg-config.  See the pkg-config man page for
3204264fa531Smrgmore details." >&5
3205264fa531Smrgecho "$as_me: error: Package requirements (x11 xmuu) were not met.
3206264fa531SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
3207264fa531Smrginstalled software in a non-standard prefix.
3208264fa531Smrg
3209264fa531SmrgAlternatively you may set the X11PERF_CFLAGS and X11PERF_LIBS environment variables
3210264fa531Smrgto avoid the need to call pkg-config.  See the pkg-config man page for
3211264fa531Smrgmore details." >&2;}
3212264fa531Smrg   { (exit 1); exit 1; }; }
3213264fa531Smrgelif test $pkg_failed = untried; then
3214264fa531Smrg	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
3215264fa531Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
3216264fa531Smrgpath to pkg-config.
3217264fa531Smrg
3218264fa531SmrgAlternatively you may set the X11PERF_CFLAGS and X11PERF_LIBS environment variables
3219264fa531Smrgto avoid the need to call pkg-config.  See the pkg-config man page for
3220264fa531Smrgmore details.
3221264fa531Smrg
3222264fa531SmrgTo get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
3223264fa531SmrgSee \`config.log' for more details." >&5
3224264fa531Smrgecho "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
3225264fa531Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
3226264fa531Smrgpath to pkg-config.
3227264fa531Smrg
3228264fa531SmrgAlternatively you may set the X11PERF_CFLAGS and X11PERF_LIBS environment variables
3229264fa531Smrgto avoid the need to call pkg-config.  See the pkg-config man page for
3230264fa531Smrgmore details.
3231264fa531Smrg
3232264fa531SmrgTo get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
3233264fa531SmrgSee \`config.log' for more details." >&2;}
3234264fa531Smrg   { (exit 1); exit 1; }; }
3235264fa531Smrgelse
3236264fa531Smrg	X11PERF_CFLAGS=$pkg_cv_X11PERF_CFLAGS
3237264fa531Smrg	X11PERF_LIBS=$pkg_cv_X11PERF_LIBS
3238264fa531Smrg        echo "$as_me:$LINENO: result: yes" >&5
3239264fa531Smrgecho "${ECHO_T}yes" >&6
3240264fa531Smrg	:
3241264fa531Smrgfi
3242264fa531Smrg
3243264fa531Smrg
3244264fa531Smrg
3245264fa531Smrg# Check for Xrender library
3246264fa531Smrg
3247264fa531Smrgpkg_failed=no
3248264fa531Smrgecho "$as_me:$LINENO: checking for XRENDER" >&5
3249264fa531Smrgecho $ECHO_N "checking for XRENDER... $ECHO_C" >&6
3250264fa531Smrg
3251264fa531Smrgif test -n "$PKG_CONFIG"; then
3252264fa531Smrg        if test -n "$PKG_CONFIG" && \
3253264fa531Smrg    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xrender\"") >&5
3254264fa531Smrg  ($PKG_CONFIG --exists --print-errors "xrender") 2>&5
3255264fa531Smrg  ac_status=$?
3256264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257264fa531Smrg  (exit $ac_status); }; then
3258264fa531Smrg  pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender" 2>/dev/null`
3259264fa531Smrgelse
3260264fa531Smrg  pkg_failed=yes
3261264fa531Smrgfi
3262264fa531Smrgelse
3263264fa531Smrg	pkg_failed=untried
3264264fa531Smrgfi
3265264fa531Smrgif test -n "$PKG_CONFIG"; then
3266264fa531Smrg        if test -n "$PKG_CONFIG" && \
3267264fa531Smrg    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xrender\"") >&5
3268264fa531Smrg  ($PKG_CONFIG --exists --print-errors "xrender") 2>&5
3269264fa531Smrg  ac_status=$?
3270264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271264fa531Smrg  (exit $ac_status); }; then
3272264fa531Smrg  pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender" 2>/dev/null`
3273264fa531Smrgelse
3274264fa531Smrg  pkg_failed=yes
3275264fa531Smrgfi
3276264fa531Smrgelse
3277264fa531Smrg	pkg_failed=untried
3278264fa531Smrgfi
3279264fa531Smrg
3280264fa531Smrgif test $pkg_failed = yes; then
3281264fa531Smrg	XRENDER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xrender"`
3282264fa531Smrg	# Put the nasty error message in config.log where it belongs
3283264fa531Smrg	echo "$XRENDER_PKG_ERRORS" 1>&5
3284264fa531Smrg
3285264fa531Smrg	xrender_found=no
3286264fa531Smrgelif test $pkg_failed = untried; then
3287264fa531Smrg	xrender_found=no
3288264fa531Smrgelse
3289264fa531Smrg	XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS
3290264fa531Smrg	XRENDER_LIBS=$pkg_cv_XRENDER_LIBS
3291264fa531Smrg        echo "$as_me:$LINENO: result: yes" >&5
3292264fa531Smrgecho "${ECHO_T}yes" >&6
3293264fa531Smrg	xrender_found=yes
3294264fa531Smrgfi
3295264fa531Smrg
3296264fa531Smrg
3297264fa531Smrgcase "$xrender_found" in
3298264fa531Smrgyes)
3299264fa531Smrg
3300264fa531Smrgcat >>confdefs.h <<\_ACEOF
3301264fa531Smrg#define XRENDER 1
3302264fa531Smrg_ACEOF
3303264fa531Smrg
3304264fa531Smrg	;;
3305264fa531Smrgesac
3306264fa531Smrg
3307264fa531Smrg# Check for Xft library
3308264fa531Smrg
3309264fa531Smrgpkg_failed=no
3310264fa531Smrgecho "$as_me:$LINENO: checking for XFT" >&5
3311264fa531Smrgecho $ECHO_N "checking for XFT... $ECHO_C" >&6
3312264fa531Smrg
3313264fa531Smrgif test -n "$PKG_CONFIG"; then
3314264fa531Smrg        if test -n "$PKG_CONFIG" && \
3315264fa531Smrg    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xft\"") >&5
3316264fa531Smrg  ($PKG_CONFIG --exists --print-errors "xft") 2>&5
3317264fa531Smrg  ac_status=$?
3318264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319264fa531Smrg  (exit $ac_status); }; then
3320264fa531Smrg  pkg_cv_XFT_CFLAGS=`$PKG_CONFIG --cflags "xft" 2>/dev/null`
3321264fa531Smrgelse
3322264fa531Smrg  pkg_failed=yes
3323264fa531Smrgfi
3324264fa531Smrgelse
3325264fa531Smrg	pkg_failed=untried
3326264fa531Smrgfi
3327264fa531Smrgif test -n "$PKG_CONFIG"; then
3328264fa531Smrg        if test -n "$PKG_CONFIG" && \
3329264fa531Smrg    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xft\"") >&5
3330264fa531Smrg  ($PKG_CONFIG --exists --print-errors "xft") 2>&5
3331264fa531Smrg  ac_status=$?
3332264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333264fa531Smrg  (exit $ac_status); }; then
3334264fa531Smrg  pkg_cv_XFT_LIBS=`$PKG_CONFIG --libs "xft" 2>/dev/null`
3335264fa531Smrgelse
3336264fa531Smrg  pkg_failed=yes
3337264fa531Smrgfi
3338264fa531Smrgelse
3339264fa531Smrg	pkg_failed=untried
3340264fa531Smrgfi
3341264fa531Smrg
3342264fa531Smrgif test $pkg_failed = yes; then
3343264fa531Smrg	XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft"`
3344264fa531Smrg	# Put the nasty error message in config.log where it belongs
3345264fa531Smrg	echo "$XFT_PKG_ERRORS" 1>&5
3346264fa531Smrg
3347264fa531Smrg	xft_found=no
3348264fa531Smrgelif test $pkg_failed = untried; then
3349264fa531Smrg	xft_found=no
3350264fa531Smrgelse
3351264fa531Smrg	XFT_CFLAGS=$pkg_cv_XFT_CFLAGS
3352264fa531Smrg	XFT_LIBS=$pkg_cv_XFT_LIBS
3353264fa531Smrg        echo "$as_me:$LINENO: result: yes" >&5
3354264fa531Smrgecho "${ECHO_T}yes" >&6
3355264fa531Smrg	xft_found=yes
3356264fa531Smrgfi
3357264fa531Smrg
3358264fa531Smrg
3359264fa531Smrgcase "$xft_found" in
3360264fa531Smrgyes)
3361264fa531Smrg
3362264fa531Smrgcat >>confdefs.h <<\_ACEOF
3363264fa531Smrg#define XFT 1
3364264fa531Smrg_ACEOF
3365264fa531Smrg
3366264fa531Smrg	;;
3367264fa531Smrgesac
3368264fa531Smrg
3369264fa531Smrg# Check for MIT-SHM extension
3370264fa531Smrg
3371264fa531Smrgpkg_failed=no
3372264fa531Smrgecho "$as_me:$LINENO: checking for XEXT" >&5
3373264fa531Smrgecho $ECHO_N "checking for XEXT... $ECHO_C" >&6
3374264fa531Smrg
3375264fa531Smrgif test -n "$PKG_CONFIG"; then
3376264fa531Smrg        if test -n "$PKG_CONFIG" && \
3377264fa531Smrg    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xext\"") >&5
3378264fa531Smrg  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
3379264fa531Smrg  ac_status=$?
3380264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381264fa531Smrg  (exit $ac_status); }; then
3382264fa531Smrg  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
3383264fa531Smrgelse
3384264fa531Smrg  pkg_failed=yes
3385264fa531Smrgfi
3386264fa531Smrgelse
3387264fa531Smrg	pkg_failed=untried
3388264fa531Smrgfi
3389264fa531Smrgif test -n "$PKG_CONFIG"; then
3390264fa531Smrg        if test -n "$PKG_CONFIG" && \
3391264fa531Smrg    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xext\"") >&5
3392264fa531Smrg  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
3393264fa531Smrg  ac_status=$?
3394264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395264fa531Smrg  (exit $ac_status); }; then
3396264fa531Smrg  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
3397264fa531Smrgelse
3398264fa531Smrg  pkg_failed=yes
3399264fa531Smrgfi
3400264fa531Smrgelse
3401264fa531Smrg	pkg_failed=untried
3402264fa531Smrgfi
3403264fa531Smrg
3404264fa531Smrgif test $pkg_failed = yes; then
3405264fa531Smrg	XEXT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xext"`
3406264fa531Smrg	# Put the nasty error message in config.log where it belongs
3407264fa531Smrg	echo "$XEXT_PKG_ERRORS" 1>&5
3408264fa531Smrg
3409264fa531Smrg	xext_found=no
3410264fa531Smrgelif test $pkg_failed = untried; then
3411264fa531Smrg	xext_found=no
3412264fa531Smrgelse
3413264fa531Smrg	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
3414264fa531Smrg	XEXT_LIBS=$pkg_cv_XEXT_LIBS
3415264fa531Smrg        echo "$as_me:$LINENO: result: yes" >&5
3416264fa531Smrgecho "${ECHO_T}yes" >&6
3417264fa531Smrg	xext_found=yes
3418264fa531Smrgfi
3419264fa531Smrg
3420264fa531Smrg
3421264fa531Smrgcase "$xext_found" in
3422264fa531Smrgyes)
3423264fa531Smrg	save_LIBS="$LIBS"
3424264fa531Smrg	LIBS="$XEXT_LIBS $LIBS"
3425264fa531Smrg
3426264fa531Smrgfor ac_func in XShmQueryExtension
3427264fa531Smrgdo
3428264fa531Smrgas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3429264fa531Smrgecho "$as_me:$LINENO: checking for $ac_func" >&5
3430264fa531Smrgecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3431264fa531Smrgif eval "test \"\${$as_ac_var+set}\" = set"; then
3432264fa531Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
3433264fa531Smrgelse
3434264fa531Smrg  cat >conftest.$ac_ext <<_ACEOF
3435264fa531Smrg/* confdefs.h.  */
3436264fa531Smrg_ACEOF
3437264fa531Smrgcat confdefs.h >>conftest.$ac_ext
3438264fa531Smrgcat >>conftest.$ac_ext <<_ACEOF
3439264fa531Smrg/* end confdefs.h.  */
3440264fa531Smrg/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3441264fa531Smrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3442264fa531Smrg#define $ac_func innocuous_$ac_func
3443264fa531Smrg
3444264fa531Smrg/* System header to define __stub macros and hopefully few prototypes,
3445264fa531Smrg    which can conflict with char $ac_func (); below.
3446264fa531Smrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3447264fa531Smrg    <limits.h> exists even on freestanding compilers.  */
3448264fa531Smrg
3449264fa531Smrg#ifdef __STDC__
3450264fa531Smrg# include <limits.h>
3451264fa531Smrg#else
3452264fa531Smrg# include <assert.h>
3453264fa531Smrg#endif
3454264fa531Smrg
3455264fa531Smrg#undef $ac_func
3456264fa531Smrg
3457264fa531Smrg/* Override any gcc2 internal prototype to avoid an error.  */
3458264fa531Smrg#ifdef __cplusplus
3459264fa531Smrgextern "C"
3460264fa531Smrg{
3461264fa531Smrg#endif
3462264fa531Smrg/* We use char because int might match the return type of a gcc2
3463264fa531Smrg   builtin and then its argument prototype would still apply.  */
3464264fa531Smrgchar $ac_func ();
3465264fa531Smrg/* The GNU C library defines this for functions which it implements
3466264fa531Smrg    to always fail with ENOSYS.  Some functions are actually named
3467264fa531Smrg    something starting with __ and the normal name is an alias.  */
3468264fa531Smrg#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3469264fa531Smrgchoke me
3470264fa531Smrg#else
3471264fa531Smrgchar (*f) () = $ac_func;
3472264fa531Smrg#endif
3473264fa531Smrg#ifdef __cplusplus
3474264fa531Smrg}
3475264fa531Smrg#endif
3476264fa531Smrg
3477264fa531Smrgint
3478264fa531Smrgmain ()
3479264fa531Smrg{
3480264fa531Smrgreturn f != $ac_func;
3481264fa531Smrg  ;
3482264fa531Smrg  return 0;
3483264fa531Smrg}
3484264fa531Smrg_ACEOF
3485264fa531Smrgrm -f conftest.$ac_objext conftest$ac_exeext
3486264fa531Smrgif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3487264fa531Smrg  (eval $ac_link) 2>conftest.er1
3488264fa531Smrg  ac_status=$?
3489264fa531Smrg  grep -v '^ *+' conftest.er1 >conftest.err
3490264fa531Smrg  rm -f conftest.er1
3491264fa531Smrg  cat conftest.err >&5
3492264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493264fa531Smrg  (exit $ac_status); } &&
3494264fa531Smrg	 { ac_try='test -z "$ac_c_werror_flag"
3495264fa531Smrg			 || test ! -s conftest.err'
3496264fa531Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497264fa531Smrg  (eval $ac_try) 2>&5
3498264fa531Smrg  ac_status=$?
3499264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500264fa531Smrg  (exit $ac_status); }; } &&
3501264fa531Smrg	 { ac_try='test -s conftest$ac_exeext'
3502264fa531Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3503264fa531Smrg  (eval $ac_try) 2>&5
3504264fa531Smrg  ac_status=$?
3505264fa531Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506264fa531Smrg  (exit $ac_status); }; }; then
3507264fa531Smrg  eval "$as_ac_var=yes"
3508264fa531Smrgelse
3509264fa531Smrg  echo "$as_me: failed program was:" >&5
3510264fa531Smrgsed 's/^/| /' conftest.$ac_ext >&5
3511264fa531Smrg
3512264fa531Smrgeval "$as_ac_var=no"
3513264fa531Smrgfi
3514264fa531Smrgrm -f conftest.err conftest.$ac_objext \
3515264fa531Smrg      conftest$ac_exeext conftest.$ac_ext
3516264fa531Smrgfi
3517264fa531Smrgecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3518264fa531Smrgecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3519264fa531Smrgif test `eval echo '${'$as_ac_var'}'` = yes; then
3520264fa531Smrg  cat >>confdefs.h <<_ACEOF
3521264fa531Smrg#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3522264fa531Smrg_ACEOF
3523264fa531Smrg
3524264fa531Smrgcat >>confdefs.h <<\_ACEOF
3525264fa531Smrg#define MITSHM 1
3526264fa531Smrg_ACEOF
3527264fa531Smrg
3528264fa531Smrgfi
3529264fa531Smrgdone
3530264fa531Smrg
3531264fa531Smrg	LIBS="$save_LIBS"
3532264fa531Smrg	;;
3533264fa531Smrgesac
3534264fa531Smrg
3535264fa531Smrg# Make sure we can run config.sub.
3536264fa531Smrg$ac_config_sub sun4 >/dev/null 2>&1 ||
3537264fa531Smrg  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3538264fa531Smrgecho "$as_me: error: cannot run $ac_config_sub" >&2;}
3539264fa531Smrg   { (exit 1); exit 1; }; }
3540264fa531Smrg
3541264fa531Smrgecho "$as_me:$LINENO: checking build system type" >&5
3542264fa531Smrgecho $ECHO_N "checking build system type... $ECHO_C" >&6
3543264fa531Smrgif test "${ac_cv_build+set}" = set; then
3544264fa531Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
3545264fa531Smrgelse
3546264fa531Smrg  ac_cv_build_alias=$build_alias
3547264fa531Smrgtest -z "$ac_cv_build_alias" &&
3548264fa531Smrg  ac_cv_build_alias=`$ac_config_guess`
3549264fa531Smrgtest -z "$ac_cv_build_alias" &&
3550264fa531Smrg  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3551264fa531Smrgecho "$as_me: error: cannot guess build type; you must specify one" >&2;}
3552264fa531Smrg   { (exit 1); exit 1; }; }
3553264fa531Smrgac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3554264fa531Smrg  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3555264fa531Smrgecho "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3556264fa531Smrg   { (exit 1); exit 1; }; }
3557264fa531Smrg
3558264fa531Smrgfi
3559264fa531Smrgecho "$as_me:$LINENO: result: $ac_cv_build" >&5
3560264fa531Smrgecho "${ECHO_T}$ac_cv_build" >&6
3561264fa531Smrgbuild=$ac_cv_build
3562264fa531Smrgbuild_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3563264fa531Smrgbuild_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3564264fa531Smrgbuild_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3565264fa531Smrg
3566264fa531Smrg
3567264fa531Smrgecho "$as_me:$LINENO: checking host system type" >&5
3568264fa531Smrgecho $ECHO_N "checking host system type... $ECHO_C" >&6
3569264fa531Smrgif test "${ac_cv_host+set}" = set; then
3570264fa531Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
3571264fa531Smrgelse
3572264fa531Smrg  ac_cv_host_alias=$host_alias
3573264fa531Smrgtest -z "$ac_cv_host_alias" &&
3574264fa531Smrg  ac_cv_host_alias=$ac_cv_build_alias
3575264fa531Smrgac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3576264fa531Smrg  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3577264fa531Smrgecho "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3578264fa531Smrg   { (exit 1); exit 1; }; }
3579264fa531Smrg
3580264fa531Smrgfi
3581264fa531Smrgecho "$as_me:$LINENO: result: $ac_cv_host" >&5
3582264fa531Smrgecho "${ECHO_T}$ac_cv_host" >&6
3583264fa531Smrghost=$ac_cv_host
3584264fa531Smrghost_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3585264fa531Smrghost_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3586264fa531Smrghost_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3587264fa531Smrg
3588264fa531Smrg
3589264fa531Smrg
3590264fa531Smrg
3591264fa531Smrg
3592264fa531Smrgif test x$APP_MAN_SUFFIX = x    ; then
3593264fa531Smrg    case $host_os in
3594264fa531Smrg	linux*)	APP_MAN_SUFFIX=1x ;;
3595264fa531Smrg	*)	APP_MAN_SUFFIX=1  ;;
3596264fa531Smrg    esac
3597264fa531Smrgfi
3598264fa531Smrgif test x$APP_MAN_DIR = x    ; then
3599264fa531Smrg    case $host_os in
3600264fa531Smrg	linux*)	APP_MAN_DIR='$(mandir)/man1' ;;
3601264fa531Smrg	*)	APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' ;;
3602264fa531Smrg    esac
3603264fa531Smrgfi
3604264fa531Smrg
3605264fa531Smrgif test x$LIB_MAN_SUFFIX = x    ; then
3606264fa531Smrg    case $host_os in
3607264fa531Smrg	linux*)	LIB_MAN_SUFFIX=3x ;;
3608264fa531Smrg	*)	LIB_MAN_SUFFIX=3  ;;
3609264fa531Smrg    esac
3610264fa531Smrgfi
3611264fa531Smrgif test x$LIB_MAN_DIR = x    ; then
3612264fa531Smrg    case $host_os in
3613264fa531Smrg	linux*)	LIB_MAN_DIR='$(mandir)/man3' ;;
3614264fa531Smrg	*)	LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' ;;
3615264fa531Smrg    esac
3616264fa531Smrgfi
3617264fa531Smrg
3618264fa531Smrgif test x$FILE_MAN_SUFFIX = x    ; then
3619264fa531Smrg    case $host_os in
3620264fa531Smrg	linux*)		FILE_MAN_SUFFIX=5x ;;
3621264fa531Smrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
3622264fa531Smrg	*)		FILE_MAN_SUFFIX=5  ;;
3623264fa531Smrg    esac
3624264fa531Smrgfi
3625264fa531Smrgif test x$FILE_MAN_DIR = x    ; then
3626264fa531Smrg    case $host_os in
3627264fa531Smrg	linux*)	FILE_MAN_DIR='$(mandir)/man5' ;;
3628264fa531Smrg	*)	FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' ;;
3629264fa531Smrg    esac
3630264fa531Smrgfi
3631264fa531Smrg
3632264fa531Smrg# In Imake's linux.cf, the misc man suffix & dir was only changed for
3633264fa531Smrg# LinuxDebian, not other Linuxes, so we leave it unchanged here
3634264fa531Smrgif test x$MISC_MAN_SUFFIX = x    ; then
3635264fa531Smrg    case $host_os in
3636264fa531Smrg#	linux*)		MISC_MAN_SUFFIX=7x ;;
3637264fa531Smrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
3638264fa531Smrg	*)		MISC_MAN_SUFFIX=7  ;;
3639264fa531Smrg    esac
3640264fa531Smrgfi
3641264fa531Smrgif test x$MISC_MAN_DIR = x    ; then
3642264fa531Smrg    case $host_os in
3643264fa531Smrg#	linux*)	MISC_MAN_DIR='$(mandir)/man7' ;;
3644264fa531Smrg	*)	MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' ;;
3645264fa531Smrg    esac
3646264fa531Smrgfi
3647264fa531Smrg
3648264fa531Smrg# In Imake's linux.cf, the driver man suffix & dir was only changed for
3649264fa531Smrg# LinuxDebian, not other Linuxes, so we leave it unchanged here
3650264fa531Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
3651264fa531Smrg    case $host_os in
3652264fa531Smrg#	linux*)		DRIVER_MAN_SUFFIX=4x ;;
3653264fa531Smrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
3654264fa531Smrg	*)		DRIVER_MAN_SUFFIX=4  ;;
3655264fa531Smrg    esac
3656264fa531Smrgfi
3657264fa531Smrgif test x$DRIVER_MAN_DIR = x    ; then
3658264fa531Smrg    case $host_os in
3659264fa531Smrg#	linux*)	DRIVER_MAN_DIR='$(mandir)/man4' ;;
3660264fa531Smrg	*)	DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' ;;
3661264fa531Smrg    esac
3662264fa531Smrgfi
3663264fa531Smrg
3664264fa531Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
3665264fa531Smrg    case $host_os in
3666264fa531Smrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
3667264fa531Smrg	*)		ADMIN_MAN_SUFFIX=8  ;;
3668264fa531Smrg    esac
3669264fa531Smrgfi
3670264fa531Smrgif test x$ADMIN_MAN_DIR = x    ; then
3671264fa531Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
3672264fa531Smrgfi
3673264fa531Smrg
3674264fa531Smrg
3675264fa531Smrg
3676264fa531Smrg
3677264fa531Smrg
3678264fa531Smrg
3679264fa531Smrg
3680264fa531Smrg
3681264fa531Smrg
3682264fa531Smrg
3683264fa531Smrg
3684264fa531Smrg
3685264fa531Smrg
3686264fa531Smrg
3687264fa531Smrg
3688264fa531Smrg
3689264fa531Smrg
3690264fa531Smrg# Check whether --with-release-version or --without-release-version was given.
3691264fa531Smrgif test "${with_release_version+set}" = set; then
3692264fa531Smrg  withval="$with_release_version"
3693264fa531Smrg  RELEASE_VERSION="$withval"
3694264fa531Smrgelse
3695264fa531Smrg  RELEASE_VERSION=""
3696264fa531Smrgfi;
3697264fa531Smrg	if test "x$RELEASE_VERSION" != "x"; then
3698264fa531Smrg		PACKAGE="$PACKAGE-$RELEASE_VERSION"
3699264fa531Smrg		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
3700264fa531Smrg		{ echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
3701264fa531Smrgecho "$as_me: Building with package name set to $PACKAGE" >&6;}
3702264fa531Smrg	fi
3703264fa531Smrg
3704264fa531Smrg
3705264fa531Smrg          ac_config_files="$ac_config_files Makefile"
3706264fa531Smrgcat >confcache <<\_ACEOF
3707264fa531Smrg# This file is a shell script that caches the results of configure
3708264fa531Smrg# tests run on this system so they can be shared between configure
3709264fa531Smrg# scripts and configure runs, see configure's option --config-cache.
3710264fa531Smrg# It is not useful on other systems.  If it contains results you don't
3711264fa531Smrg# want to keep, you may remove or edit it.
3712264fa531Smrg#
3713264fa531Smrg# config.status only pays attention to the cache file if you give it
3714264fa531Smrg# the --recheck option to rerun configure.
3715264fa531Smrg#
3716264fa531Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
3717264fa531Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
3718264fa531Smrg# following values.
3719264fa531Smrg
3720264fa531Smrg_ACEOF
3721264fa531Smrg
3722264fa531Smrg# The following way of writing the cache mishandles newlines in values,
3723264fa531Smrg# but we know of no workaround that is simple, portable, and efficient.
3724264fa531Smrg# So, don't put newlines in cache variables' values.
3725264fa531Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
3726264fa531Smrg# and sets the high bit in the cache file unless we assign to the vars.
3727264fa531Smrg{
3728264fa531Smrg  (set) 2>&1 |
3729264fa531Smrg    case `(ac_space=' '; set | grep ac_space) 2>&1` in
3730264fa531Smrg    *ac_space=\ *)
3731264fa531Smrg      # `set' does not quote correctly, so add quotes (double-quote
3732264fa531Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \).
3733264fa531Smrg      sed -n \
3734264fa531Smrg	"s/'/'\\\\''/g;
3735264fa531Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3736264fa531Smrg      ;;
3737264fa531Smrg    *)
3738264fa531Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
3739264fa531Smrg      sed -n \
3740264fa531Smrg	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3741264fa531Smrg      ;;
3742264fa531Smrg    esac;
3743264fa531Smrg} |
3744264fa531Smrg  sed '
3745264fa531Smrg     t clear
3746264fa531Smrg     : clear
3747264fa531Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3748264fa531Smrg     t end
3749264fa531Smrg     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3750264fa531Smrg     : end' >>confcache
3751264fa531Smrgif diff $cache_file confcache >/dev/null 2>&1; then :; else
3752264fa531Smrg  if test -w $cache_file; then
3753264fa531Smrg    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3754264fa531Smrg    cat confcache >$cache_file
3755264fa531Smrg  else
3756264fa531Smrg    echo "not updating unwritable cache $cache_file"
3757264fa531Smrg  fi
3758264fa531Smrgfi
3759264fa531Smrgrm -f confcache
3760264fa531Smrg
3761264fa531Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
3762264fa531Smrg# Let make expand exec_prefix.
3763264fa531Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3764264fa531Smrg
3765264fa531Smrg# VPATH may cause trouble with some makes, so we remove $(srcdir),
3766264fa531Smrg# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3767264fa531Smrg# trailing colons and then remove the whole line if VPATH becomes empty
3768264fa531Smrg# (actually we leave an empty line to preserve line numbers).
3769264fa531Smrgif test "x$srcdir" = x.; then
3770264fa531Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
3771264fa531Smrgs/:*\$(srcdir):*/:/;
3772264fa531Smrgs/:*\${srcdir}:*/:/;
3773264fa531Smrgs/:*@srcdir@:*/:/;
3774264fa531Smrgs/^\([^=]*=[	 ]*\):*/\1/;
3775264fa531Smrgs/:*$//;
3776264fa531Smrgs/^[^=]*=[	 ]*$//;
3777264fa531Smrg}'
3778264fa531Smrgfi
3779264fa531Smrg
3780264fa531SmrgDEFS=-DHAVE_CONFIG_H
3781264fa531Smrg
3782264fa531Smrgac_libobjs=
3783264fa531Smrgac_ltlibobjs=
3784264fa531Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3785264fa531Smrg  # 1. Remove the extension, and $U if already installed.
3786264fa531Smrg  ac_i=`echo "$ac_i" |
3787264fa531Smrg	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3788264fa531Smrg  # 2. Add them.
3789264fa531Smrg  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3790264fa531Smrg  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3791264fa531Smrgdone
3792264fa531SmrgLIBOBJS=$ac_libobjs
3793264fa531Smrg
3794264fa531SmrgLTLIBOBJS=$ac_ltlibobjs
3795264fa531Smrg
3796264fa531Smrg
3797264fa531Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
3798264fa531Smrg  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
3799264fa531SmrgUsually this means the macro was only invoked conditionally." >&5
3800264fa531Smrgecho "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
3801264fa531SmrgUsually this means the macro was only invoked conditionally." >&2;}
3802264fa531Smrg   { (exit 1); exit 1; }; }
3803264fa531Smrgfi
3804264fa531Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
3805264fa531Smrg  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
3806264fa531SmrgUsually this means the macro was only invoked conditionally." >&5
3807264fa531Smrgecho "$as_me: error: conditional \"AMDEP\" was never defined.
3808264fa531SmrgUsually this means the macro was only invoked conditionally." >&2;}
3809264fa531Smrg   { (exit 1); exit 1; }; }
3810264fa531Smrgfi
3811264fa531Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
3812264fa531Smrg  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
3813264fa531SmrgUsually this means the macro was only invoked conditionally." >&5
3814264fa531Smrgecho "$as_me: error: conditional \"am__fastdepCC\" was never defined.
3815264fa531SmrgUsually this means the macro was only invoked conditionally." >&2;}
3816264fa531Smrg   { (exit 1); exit 1; }; }
3817264fa531Smrgfi
3818264fa531Smrg
3819264fa531Smrg: ${CONFIG_STATUS=./config.status}
3820264fa531Smrgac_clean_files_save=$ac_clean_files
3821264fa531Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
3822264fa531Smrg{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3823264fa531Smrgecho "$as_me: creating $CONFIG_STATUS" >&6;}
3824264fa531Smrgcat >$CONFIG_STATUS <<_ACEOF
3825264fa531Smrg#! $SHELL
3826264fa531Smrg# Generated by $as_me.
3827264fa531Smrg# Run this file to recreate the current configuration.
3828264fa531Smrg# Compiler output produced by configure, useful for debugging
3829264fa531Smrg# configure, is in config.log if it exists.
3830264fa531Smrg
3831264fa531Smrgdebug=false
3832264fa531Smrgac_cs_recheck=false
3833264fa531Smrgac_cs_silent=false
3834264fa531SmrgSHELL=\${CONFIG_SHELL-$SHELL}
3835264fa531Smrg_ACEOF
3836264fa531Smrg
3837264fa531Smrgcat >>$CONFIG_STATUS <<\_ACEOF
3838264fa531Smrg## --------------------- ##
3839264fa531Smrg## M4sh Initialization.  ##
3840264fa531Smrg## --------------------- ##
3841264fa531Smrg
3842264fa531Smrg# Be Bourne compatible
3843264fa531Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3844264fa531Smrg  emulate sh
3845264fa531Smrg  NULLCMD=:
3846264fa531Smrg  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3847264fa531Smrg  # is contrary to our usage.  Disable this feature.
3848264fa531Smrg  alias -g '${1+"$@"}'='"$@"'
3849264fa531Smrgelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3850264fa531Smrg  set -o posix
3851264fa531Smrgfi
3852264fa531SmrgDUALCASE=1; export DUALCASE # for MKS sh
3853264fa531Smrg
3854264fa531Smrg# Support unset when possible.
3855264fa531Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3856264fa531Smrg  as_unset=unset
3857264fa531Smrgelse
3858264fa531Smrg  as_unset=false
3859264fa531Smrgfi
3860264fa531Smrg
3861264fa531Smrg
3862264fa531Smrg# Work around bugs in pre-3.0 UWIN ksh.
3863264fa531Smrg$as_unset ENV MAIL MAILPATH
3864264fa531SmrgPS1='$ '
3865264fa531SmrgPS2='> '
3866264fa531SmrgPS4='+ '
3867264fa531Smrg
3868264fa531Smrg# NLS nuisances.
3869264fa531Smrgfor as_var in \
3870264fa531Smrg  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3871264fa531Smrg  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3872264fa531Smrg  LC_TELEPHONE LC_TIME
3873264fa531Smrgdo
3874264fa531Smrg  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3875264fa531Smrg    eval $as_var=C; export $as_var
3876264fa531Smrg  else
3877264fa531Smrg    $as_unset $as_var
3878264fa531Smrg  fi
3879264fa531Smrgdone
3880264fa531Smrg
3881264fa531Smrg# Required to use basename.
3882264fa531Smrgif expr a : '\(a\)' >/dev/null 2>&1; then
3883264fa531Smrg  as_expr=expr
3884264fa531Smrgelse
3885264fa531Smrg  as_expr=false
3886264fa531Smrgfi
3887264fa531Smrg
3888264fa531Smrgif (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3889264fa531Smrg  as_basename=basename
3890264fa531Smrgelse
3891264fa531Smrg  as_basename=false
3892264fa531Smrgfi
3893264fa531Smrg
3894264fa531Smrg
3895264fa531Smrg# Name of the executable.
3896264fa531Smrgas_me=`$as_basename "$0" ||
3897264fa531Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3898264fa531Smrg	 X"$0" : 'X\(//\)$' \| \
3899264fa531Smrg	 X"$0" : 'X\(/\)$' \| \
3900264fa531Smrg	 .     : '\(.\)' 2>/dev/null ||
3901264fa531Smrgecho X/"$0" |
3902264fa531Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3903264fa531Smrg  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
3904264fa531Smrg  	  /^X\/\(\/\).*/{ s//\1/; q; }
3905264fa531Smrg  	  s/.*/./; q'`
3906264fa531Smrg
3907264fa531Smrg
3908264fa531Smrg# PATH needs CR, and LINENO needs CR and PATH.
3909264fa531Smrg# Avoid depending upon Character Ranges.
3910264fa531Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
3911264fa531Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3912264fa531Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
3913264fa531Smrgas_cr_digits='0123456789'
3914264fa531Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
3915264fa531Smrg
3916264fa531Smrg# The user is always right.
3917264fa531Smrgif test "${PATH_SEPARATOR+set}" != set; then
3918264fa531Smrg  echo "#! /bin/sh" >conf$$.sh
3919264fa531Smrg  echo  "exit 0"   >>conf$$.sh
3920264fa531Smrg  chmod +x conf$$.sh
3921264fa531Smrg  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3922264fa531Smrg    PATH_SEPARATOR=';'
3923264fa531Smrg  else
3924264fa531Smrg    PATH_SEPARATOR=:
3925264fa531Smrg  fi
3926264fa531Smrg  rm -f conf$$.sh
3927264fa531Smrgfi
3928264fa531Smrg
3929264fa531Smrg
3930264fa531Smrg  as_lineno_1=$LINENO
3931264fa531Smrg  as_lineno_2=$LINENO
3932264fa531Smrg  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3933264fa531Smrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
3934264fa531Smrg  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
3935264fa531Smrg  # Find who we are.  Look in the path if we contain no path at all
3936264fa531Smrg  # relative or not.
3937264fa531Smrg  case $0 in
3938264fa531Smrg    *[\\/]* ) as_myself=$0 ;;
3939264fa531Smrg    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940264fa531Smrgfor as_dir in $PATH
3941264fa531Smrgdo
3942264fa531Smrg  IFS=$as_save_IFS
3943264fa531Smrg  test -z "$as_dir" && as_dir=.
3944264fa531Smrg  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3945264fa531Smrgdone
3946264fa531Smrg
3947264fa531Smrg       ;;
3948264fa531Smrg  esac
3949264fa531Smrg  # We did not find ourselves, most probably we were run as `sh COMMAND'
3950264fa531Smrg  # in which case we are not to be found in the path.
3951264fa531Smrg  if test "x$as_myself" = x; then
3952264fa531Smrg    as_myself=$0
3953264fa531Smrg  fi
3954264fa531Smrg  if test ! -f "$as_myself"; then
3955264fa531Smrg    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3956264fa531Smrgecho "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3957264fa531Smrg   { (exit 1); exit 1; }; }
3958264fa531Smrg  fi
3959264fa531Smrg  case $CONFIG_SHELL in
3960264fa531Smrg  '')
3961264fa531Smrg    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962264fa531Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3963264fa531Smrgdo
3964264fa531Smrg  IFS=$as_save_IFS
3965264fa531Smrg  test -z "$as_dir" && as_dir=.
3966264fa531Smrg  for as_base in sh bash ksh sh5; do
3967264fa531Smrg	 case $as_dir in
3968264fa531Smrg	 /*)
3969264fa531Smrg	   if ("$as_dir/$as_base" -c '
3970264fa531Smrg  as_lineno_1=$LINENO
3971264fa531Smrg  as_lineno_2=$LINENO
3972264fa531Smrg  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3973264fa531Smrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
3974264fa531Smrg  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
3975264fa531Smrg	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3976264fa531Smrg	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3977264fa531Smrg	     CONFIG_SHELL=$as_dir/$as_base
3978264fa531Smrg	     export CONFIG_SHELL
3979264fa531Smrg	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3980264fa531Smrg	   fi;;
3981264fa531Smrg	 esac
3982264fa531Smrg       done
3983264fa531Smrgdone
3984264fa531Smrg;;
3985264fa531Smrg  esac
3986264fa531Smrg
3987264fa531Smrg  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3988264fa531Smrg  # uniformly replaced by the line number.  The first 'sed' inserts a
3989264fa531Smrg  # line-number line before each line; the second 'sed' does the real
3990264fa531Smrg  # work.  The second script uses 'N' to pair each line-number line
3991264fa531Smrg  # with the numbered line, and appends trailing '-' during
3992264fa531Smrg  # substitution so that $LINENO is not a special case at line end.
3993264fa531Smrg  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3994264fa531Smrg  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
3995264fa531Smrg  sed '=' <$as_myself |
3996264fa531Smrg    sed '
3997264fa531Smrg      N
3998264fa531Smrg      s,$,-,
3999264fa531Smrg      : loop
4000264fa531Smrg      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4001264fa531Smrg      t loop
4002264fa531Smrg      s,-$,,
4003264fa531Smrg      s,^['$as_cr_digits']*\n,,
4004264fa531Smrg    ' >$as_me.lineno &&
4005264fa531Smrg  chmod +x $as_me.lineno ||
4006264fa531Smrg    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4007264fa531Smrgecho "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4008264fa531Smrg   { (exit 1); exit 1; }; }
4009264fa531Smrg
4010264fa531Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
4011264fa531Smrg  # (the dirname of $[0] is not the place where we might find the
4012264fa531Smrg  # original and so on.  Autoconf is especially sensible to this).
4013264fa531Smrg  . ./$as_me.lineno
4014264fa531Smrg  # Exit status is that of the last command.
4015264fa531Smrg  exit
4016264fa531Smrg}
4017264fa531Smrg
4018264fa531Smrg
4019264fa531Smrgcase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4020264fa531Smrg  *c*,-n*) ECHO_N= ECHO_C='
4021264fa531Smrg' ECHO_T='	' ;;
4022264fa531Smrg  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4023264fa531Smrg  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
4024264fa531Smrgesac
4025264fa531Smrg
4026264fa531Smrgif expr a : '\(a\)' >/dev/null 2>&1; then
4027264fa531Smrg  as_expr=expr
4028264fa531Smrgelse
4029264fa531Smrg  as_expr=false
4030264fa531Smrgfi
4031264fa531Smrg
4032264fa531Smrgrm -f conf$$ conf$$.exe conf$$.file
4033264fa531Smrgecho >conf$$.file
4034264fa531Smrgif ln -s conf$$.file conf$$ 2>/dev/null; then
4035264fa531Smrg  # We could just check for DJGPP; but this test a) works b) is more generic
4036264fa531Smrg  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4037264fa531Smrg  if test -f conf$$.exe; then
4038264fa531Smrg    # Don't use ln at all; we don't have any links
4039264fa531Smrg    as_ln_s='cp -p'
4040264fa531Smrg  else
4041264fa531Smrg    as_ln_s='ln -s'
4042264fa531Smrg  fi
4043264fa531Smrgelif ln conf$$.file conf$$ 2>/dev/null; then
4044264fa531Smrg  as_ln_s=ln
4045264fa531Smrgelse
4046264fa531Smrg  as_ln_s='cp -p'
4047264fa531Smrgfi
4048264fa531Smrgrm -f conf$$ conf$$.exe conf$$.file
4049264fa531Smrg
4050264fa531Smrgif mkdir -p . 2>/dev/null; then
4051264fa531Smrg  as_mkdir_p=:
4052264fa531Smrgelse
4053264fa531Smrg  test -d ./-p && rmdir ./-p
4054264fa531Smrg  as_mkdir_p=false
4055264fa531Smrgfi
4056264fa531Smrg
4057264fa531Smrgas_executable_p="test -f"
4058264fa531Smrg
4059264fa531Smrg# Sed expression to map a string onto a valid CPP name.
4060264fa531Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4061264fa531Smrg
4062264fa531Smrg# Sed expression to map a string onto a valid variable name.
4063264fa531Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4064264fa531Smrg
4065264fa531Smrg
4066264fa531Smrg# IFS
4067264fa531Smrg# We need space, tab and new line, in precisely that order.
4068264fa531Smrgas_nl='
4069264fa531Smrg'
4070264fa531SmrgIFS=" 	$as_nl"
4071264fa531Smrg
4072264fa531Smrg# CDPATH.
4073264fa531Smrg$as_unset CDPATH
4074264fa531Smrg
4075264fa531Smrgexec 6>&1
4076264fa531Smrg
4077264fa531Smrg# Open the log real soon, to keep \$[0] and so on meaningful, and to
4078264fa531Smrg# report actual input values of CONFIG_FILES etc. instead of their
4079264fa531Smrg# values after options handling.  Logging --version etc. is OK.
4080264fa531Smrgexec 5>>config.log
4081264fa531Smrg{
4082264fa531Smrg  echo
4083264fa531Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4084264fa531Smrg## Running $as_me. ##
4085264fa531Smrg_ASBOX
4086264fa531Smrg} >&5
4087264fa531Smrgcat >&5 <<_CSEOF
4088264fa531Smrg
4089264fa531SmrgThis file was extended by x11perf $as_me 1.4.1, which was
4090264fa531Smrggenerated by GNU Autoconf 2.59.  Invocation command line was
4091264fa531Smrg
4092264fa531Smrg  CONFIG_FILES    = $CONFIG_FILES
4093264fa531Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
4094264fa531Smrg  CONFIG_LINKS    = $CONFIG_LINKS
4095264fa531Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
4096264fa531Smrg  $ $0 $@
4097264fa531Smrg
4098264fa531Smrg_CSEOF
4099264fa531Smrgecho "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4100264fa531Smrgecho >&5
4101264fa531Smrg_ACEOF
4102264fa531Smrg
4103264fa531Smrg# Files that config.status was made for.
4104264fa531Smrgif test -n "$ac_config_files"; then
4105264fa531Smrg  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4106264fa531Smrgfi
4107264fa531Smrg
4108264fa531Smrgif test -n "$ac_config_headers"; then
4109264fa531Smrg  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4110264fa531Smrgfi
4111264fa531Smrg
4112264fa531Smrgif test -n "$ac_config_links"; then
4113264fa531Smrg  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4114264fa531Smrgfi
4115264fa531Smrg
4116264fa531Smrgif test -n "$ac_config_commands"; then
4117264fa531Smrg  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4118264fa531Smrgfi
4119264fa531Smrg
4120264fa531Smrgcat >>$CONFIG_STATUS <<\_ACEOF
4121264fa531Smrg
4122264fa531Smrgac_cs_usage="\
4123264fa531Smrg\`$as_me' instantiates files from templates according to the
4124264fa531Smrgcurrent configuration.
4125264fa531Smrg
4126264fa531SmrgUsage: $0 [OPTIONS] [FILE]...
4127264fa531Smrg
4128264fa531Smrg  -h, --help       print this help, then exit
4129264fa531Smrg  -V, --version    print version number, then exit
4130264fa531Smrg  -q, --quiet      do not print progress messages
4131264fa531Smrg  -d, --debug      don't remove temporary files
4132264fa531Smrg      --recheck    update $as_me by reconfiguring in the same conditions
4133264fa531Smrg  --file=FILE[:TEMPLATE]
4134264fa531Smrg		   instantiate the configuration file FILE
4135264fa531Smrg  --header=FILE[:TEMPLATE]
4136264fa531Smrg		   instantiate the configuration header FILE
4137264fa531Smrg
4138264fa531SmrgConfiguration files:
4139264fa531Smrg$config_files
4140264fa531Smrg
4141264fa531SmrgConfiguration headers:
4142264fa531Smrg$config_headers
4143264fa531Smrg
4144264fa531SmrgConfiguration commands:
4145264fa531Smrg$config_commands
4146264fa531Smrg
4147264fa531SmrgReport bugs to <bug-autoconf@gnu.org>."
4148264fa531Smrg_ACEOF
4149264fa531Smrg
4150264fa531Smrgcat >>$CONFIG_STATUS <<_ACEOF
4151264fa531Smrgac_cs_version="\\
4152264fa531Smrgx11perf config.status 1.4.1
4153264fa531Smrgconfigured by $0, generated by GNU Autoconf 2.59,
4154264fa531Smrg  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4155264fa531Smrg
4156264fa531SmrgCopyright (C) 2003 Free Software Foundation, Inc.
4157264fa531SmrgThis config.status script is free software; the Free Software Foundation
4158264fa531Smrggives unlimited permission to copy, distribute and modify it."
4159264fa531Smrgsrcdir=$srcdir
4160264fa531SmrgINSTALL="$INSTALL"
4161264fa531Smrg_ACEOF
4162264fa531Smrg
4163264fa531Smrgcat >>$CONFIG_STATUS <<\_ACEOF
4164264fa531Smrg# If no file are specified by the user, then we need to provide default
4165264fa531Smrg# value.  By we need to know if files were specified by the user.
4166264fa531Smrgac_need_defaults=:
4167264fa531Smrgwhile test $# != 0
4168264fa531Smrgdo
4169264fa531Smrg  case $1 in
4170264fa531Smrg  --*=*)
4171264fa531Smrg    ac_option=`expr "x$1" : 'x\([^=]*\)='`
4172264fa531Smrg    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4173264fa531Smrg    ac_shift=:
4174264fa531Smrg    ;;
4175264fa531Smrg  -*)
4176264fa531Smrg    ac_option=$1
4177264fa531Smrg    ac_optarg=$2
4178264fa531Smrg    ac_shift=shift
4179264fa531Smrg    ;;
4180264fa531Smrg  *) # This is not an option, so the user has probably given explicit
4181264fa531Smrg     # arguments.
4182264fa531Smrg     ac_option=$1
4183264fa531Smrg     ac_need_defaults=false;;
4184264fa531Smrg  esac
4185264fa531Smrg
4186264fa531Smrg  case $ac_option in
4187264fa531Smrg  # Handling of the options.
4188264fa531Smrg_ACEOF
4189264fa531Smrgcat >>$CONFIG_STATUS <<\_ACEOF
4190264fa531Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4191264fa531Smrg    ac_cs_recheck=: ;;
4192264fa531Smrg  --version | --vers* | -V )
4193264fa531Smrg    echo "$ac_cs_version"; exit 0 ;;
4194264fa531Smrg  --he | --h)
4195264fa531Smrg    # Conflict between --help and --header
4196264fa531Smrg    { { echo "$as_me:$LINENO: error: ambiguous option: $1
4197264fa531SmrgTry \`$0 --help' for more information." >&5
4198264fa531Smrgecho "$as_me: error: ambiguous option: $1
4199264fa531SmrgTry \`$0 --help' for more information." >&2;}
4200264fa531Smrg   { (exit 1); exit 1; }; };;
4201264fa531Smrg  --help | --hel | -h )
4202264fa531Smrg    echo "$ac_cs_usage"; exit 0 ;;
4203264fa531Smrg  --debug | --d* | -d )
4204264fa531Smrg    debug=: ;;
4205264fa531Smrg  --file | --fil | --fi | --f )
4206264fa531Smrg    $ac_shift
4207264fa531Smrg    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4208264fa531Smrg    ac_need_defaults=false;;
4209264fa531Smrg  --header | --heade | --head | --hea )
4210264fa531Smrg    $ac_shift
4211264fa531Smrg    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4212264fa531Smrg    ac_need_defaults=false;;
4213264fa531Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4214264fa531Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
4215264fa531Smrg    ac_cs_silent=: ;;
4216264fa531Smrg
4217264fa531Smrg  # This is an error.
4218264fa531Smrg  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4219264fa531SmrgTry \`$0 --help' for more information." >&5
4220264fa531Smrgecho "$as_me: error: unrecognized option: $1
4221264fa531SmrgTry \`$0 --help' for more information." >&2;}
4222264fa531Smrg   { (exit 1); exit 1; }; } ;;
4223264fa531Smrg
4224264fa531Smrg  *) ac_config_targets="$ac_config_targets $1" ;;
4225264fa531Smrg
4226264fa531Smrg  esac
4227264fa531Smrg  shift
4228264fa531Smrgdone
4229264fa531Smrg
4230264fa531Smrgac_configure_extra_args=
4231264fa531Smrg
4232264fa531Smrgif $ac_cs_silent; then
4233264fa531Smrg  exec 6>/dev/null
4234264fa531Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
4235264fa531Smrgfi
4236264fa531Smrg
4237264fa531Smrg_ACEOF
4238264fa531Smrgcat >>$CONFIG_STATUS <<_ACEOF
4239264fa531Smrgif \$ac_cs_recheck; then
4240264fa531Smrg  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4241264fa531Smrg  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4242264fa531Smrgfi
4243264fa531Smrg
4244264fa531Smrg_ACEOF
4245264fa531Smrg
4246264fa531Smrgcat >>$CONFIG_STATUS <<_ACEOF
4247264fa531Smrg#
4248264fa531Smrg# INIT-COMMANDS section.
4249264fa531Smrg#
4250264fa531Smrg
4251264fa531SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
4252264fa531Smrg
4253264fa531Smrg_ACEOF
4254264fa531Smrg
4255264fa531Smrg
4256264fa531Smrg
4257264fa531Smrgcat >>$CONFIG_STATUS <<\_ACEOF
4258264fa531Smrgfor ac_config_target in $ac_config_targets
4259264fa531Smrgdo
4260264fa531Smrg  case "$ac_config_target" in
4261264fa531Smrg  # Handling of arguments.
4262264fa531Smrg  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4263264fa531Smrg  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
4264264fa531Smrg  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4265264fa531Smrg  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4266264fa531Smrgecho "$as_me: error: invalid argument: $ac_config_target" >&2;}
4267264fa531Smrg   { (exit 1); exit 1; }; };;
4268264fa531Smrg  esac
4269264fa531Smrgdone
4270264fa531Smrg
4271264fa531Smrg# If the user did not use the arguments to specify the items to instantiate,
4272264fa531Smrg# then the envvar interface is used.  Set only those that are not.
4273264fa531Smrg# We use the long form for the default assignment because of an extremely
4274264fa531Smrg# bizarre bug on SunOS 4.1.3.
4275264fa531Smrgif $ac_need_defaults; then
4276264fa531Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4277264fa531Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4278264fa531Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4279264fa531Smrgfi
4280264fa531Smrg
4281264fa531Smrg# Have a temporary directory for convenience.  Make it in the build tree
4282264fa531Smrg# simply because there is no reason to put it here, and in addition,
4283264fa531Smrg# creating and moving files from /tmp can sometimes cause problems.
4284264fa531Smrg# Create a temporary directory, and hook for its removal unless debugging.
4285264fa531Smrg$debug ||
4286264fa531Smrg{
4287264fa531Smrg  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4288264fa531Smrg  trap '{ (exit 1); exit 1; }' 1 2 13 15
4289264fa531Smrg}
4290264fa531Smrg
4291264fa531Smrg# Create a (secure) tmp directory for tmp files.
4292264fa531Smrg
4293264fa531Smrg{
4294264fa531Smrg  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4295264fa531Smrg  test -n "$tmp" && test -d "$tmp"
4296264fa531Smrg}  ||
4297264fa531Smrg{
4298264fa531Smrg  tmp=./confstat$$-$RANDOM
4299264fa531Smrg  (umask 077 && mkdir $tmp)
4300264fa531Smrg} ||
4301264fa531Smrg{
4302264fa531Smrg   echo "$me: cannot create a temporary directory in ." >&2
4303264fa531Smrg   { (exit 1); exit 1; }
4304264fa531Smrg}
4305264fa531Smrg
4306264fa531Smrg_ACEOF
4307264fa531Smrg
4308264fa531Smrgcat >>$CONFIG_STATUS <<_ACEOF
4309264fa531Smrg
4310264fa531Smrg#
4311264fa531Smrg# CONFIG_FILES section.
4312264fa531Smrg#
4313264fa531Smrg
4314264fa531Smrg# No need to generate the scripts if there are no CONFIG_FILES.
4315264fa531Smrg# This happens for instance when ./config.status config.h
4316264fa531Smrgif test -n "\$CONFIG_FILES"; then
4317264fa531Smrg  # Protect against being on the right side of a sed subst in config.status.
4318264fa531Smrg  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4319264fa531Smrg   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4320264fa531Smrgs,@SHELL@,$SHELL,;t t
4321264fa531Smrgs,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4322264fa531Smrgs,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4323264fa531Smrgs,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4324264fa531Smrgs,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4325264fa531Smrgs,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4326264fa531Smrgs,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4327264fa531Smrgs,@exec_prefix@,$exec_prefix,;t t
4328264fa531Smrgs,@prefix@,$prefix,;t t
4329264fa531Smrgs,@program_transform_name@,$program_transform_name,;t t
4330264fa531Smrgs,@bindir@,$bindir,;t t
4331264fa531Smrgs,@sbindir@,$sbindir,;t t
4332264fa531Smrgs,@libexecdir@,$libexecdir,;t t
4333264fa531Smrgs,@datadir@,$datadir,;t t
4334264fa531Smrgs,@sysconfdir@,$sysconfdir,;t t
4335264fa531Smrgs,@sharedstatedir@,$sharedstatedir,;t t
4336264fa531Smrgs,@localstatedir@,$localstatedir,;t t
4337264fa531Smrgs,@libdir@,$libdir,;t t
4338264fa531Smrgs,@includedir@,$includedir,;t t
4339264fa531Smrgs,@oldincludedir@,$oldincludedir,;t t
4340264fa531Smrgs,@infodir@,$infodir,;t t
4341264fa531Smrgs,@mandir@,$mandir,;t t
4342264fa531Smrgs,@build_alias@,$build_alias,;t t
4343264fa531Smrgs,@host_alias@,$host_alias,;t t
4344264fa531Smrgs,@target_alias@,$target_alias,;t t
4345264fa531Smrgs,@DEFS@,$DEFS,;t t
4346264fa531Smrgs,@ECHO_C@,$ECHO_C,;t t
4347264fa531Smrgs,@ECHO_N@,$ECHO_N,;t t
4348264fa531Smrgs,@ECHO_T@,$ECHO_T,;t t
4349264fa531Smrgs,@LIBS@,$LIBS,;t t
4350264fa531Smrgs,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4351264fa531Smrgs,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4352264fa531Smrgs,@INSTALL_DATA@,$INSTALL_DATA,;t t
4353264fa531Smrgs,@CYGPATH_W@,$CYGPATH_W,;t t
4354264fa531Smrgs,@PACKAGE@,$PACKAGE,;t t
4355264fa531Smrgs,@VERSION@,$VERSION,;t t
4356264fa531Smrgs,@ACLOCAL@,$ACLOCAL,;t t
4357264fa531Smrgs,@AUTOCONF@,$AUTOCONF,;t t
4358264fa531Smrgs,@AUTOMAKE@,$AUTOMAKE,;t t
4359264fa531Smrgs,@AUTOHEADER@,$AUTOHEADER,;t t
4360264fa531Smrgs,@MAKEINFO@,$MAKEINFO,;t t
4361264fa531Smrgs,@AMTAR@,$AMTAR,;t t
4362264fa531Smrgs,@install_sh@,$install_sh,;t t
4363264fa531Smrgs,@STRIP@,$STRIP,;t t
4364264fa531Smrgs,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
4365264fa531Smrgs,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
4366264fa531Smrgs,@AWK@,$AWK,;t t
4367264fa531Smrgs,@SET_MAKE@,$SET_MAKE,;t t
4368264fa531Smrgs,@am__leading_dot@,$am__leading_dot,;t t
4369264fa531Smrgs,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
4370264fa531Smrgs,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
4371264fa531Smrgs,@MAINT@,$MAINT,;t t
4372264fa531Smrgs,@CC@,$CC,;t t
4373264fa531Smrgs,@CFLAGS@,$CFLAGS,;t t
4374264fa531Smrgs,@LDFLAGS@,$LDFLAGS,;t t
4375264fa531Smrgs,@CPPFLAGS@,$CPPFLAGS,;t t
4376264fa531Smrgs,@ac_ct_CC@,$ac_ct_CC,;t t
4377264fa531Smrgs,@EXEEXT@,$EXEEXT,;t t
4378264fa531Smrgs,@OBJEXT@,$OBJEXT,;t t
4379264fa531Smrgs,@DEPDIR@,$DEPDIR,;t t
4380264fa531Smrgs,@am__include@,$am__include,;t t
4381264fa531Smrgs,@am__quote@,$am__quote,;t t
4382264fa531Smrgs,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
4383264fa531Smrgs,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
4384264fa531Smrgs,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
4385264fa531Smrgs,@CCDEPMODE@,$CCDEPMODE,;t t
4386264fa531Smrgs,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
4387264fa531Smrgs,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
4388264fa531Smrgs,@SED@,$SED,;t t
4389264fa531Smrgs,@PKG_CONFIG@,$PKG_CONFIG,;t t
4390264fa531Smrgs,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
4391264fa531Smrgs,@X11PERF_CFLAGS@,$X11PERF_CFLAGS,;t t
4392264fa531Smrgs,@X11PERF_LIBS@,$X11PERF_LIBS,;t t
4393264fa531Smrgs,@XRENDER_CFLAGS@,$XRENDER_CFLAGS,;t t
4394264fa531Smrgs,@XRENDER_LIBS@,$XRENDER_LIBS,;t t
4395264fa531Smrgs,@XFT_CFLAGS@,$XFT_CFLAGS,;t t
4396264fa531Smrgs,@XFT_LIBS@,$XFT_LIBS,;t t
4397264fa531Smrgs,@XEXT_CFLAGS@,$XEXT_CFLAGS,;t t
4398264fa531Smrgs,@XEXT_LIBS@,$XEXT_LIBS,;t t
4399264fa531Smrgs,@build@,$build,;t t
4400264fa531Smrgs,@build_cpu@,$build_cpu,;t t
4401264fa531Smrgs,@build_vendor@,$build_vendor,;t t
4402264fa531Smrgs,@build_os@,$build_os,;t t
4403264fa531Smrgs,@host@,$host,;t t
4404264fa531Smrgs,@host_cpu@,$host_cpu,;t t
4405264fa531Smrgs,@host_vendor@,$host_vendor,;t t
4406264fa531Smrgs,@host_os@,$host_os,;t t
4407264fa531Smrgs,@APP_MAN_SUFFIX@,$APP_MAN_SUFFIX,;t t
4408264fa531Smrgs,@LIB_MAN_SUFFIX@,$LIB_MAN_SUFFIX,;t t
4409264fa531Smrgs,@FILE_MAN_SUFFIX@,$FILE_MAN_SUFFIX,;t t
4410264fa531Smrgs,@MISC_MAN_SUFFIX@,$MISC_MAN_SUFFIX,;t t
4411264fa531Smrgs,@DRIVER_MAN_SUFFIX@,$DRIVER_MAN_SUFFIX,;t t
4412264fa531Smrgs,@ADMIN_MAN_SUFFIX@,$ADMIN_MAN_SUFFIX,;t t
4413264fa531Smrgs,@APP_MAN_DIR@,$APP_MAN_DIR,;t t
4414264fa531Smrgs,@LIB_MAN_DIR@,$LIB_MAN_DIR,;t t
4415264fa531Smrgs,@FILE_MAN_DIR@,$FILE_MAN_DIR,;t t
4416264fa531Smrgs,@MISC_MAN_DIR@,$MISC_MAN_DIR,;t t
4417264fa531Smrgs,@DRIVER_MAN_DIR@,$DRIVER_MAN_DIR,;t t
4418264fa531Smrgs,@ADMIN_MAN_DIR@,$ADMIN_MAN_DIR,;t t
4419264fa531Smrgs,@LIBOBJS@,$LIBOBJS,;t t
4420264fa531Smrgs,@LTLIBOBJS@,$LTLIBOBJS,;t t
4421264fa531SmrgCEOF
4422264fa531Smrg
4423264fa531Smrg_ACEOF
4424264fa531Smrg
4425264fa531Smrg  cat >>$CONFIG_STATUS <<\_ACEOF
4426264fa531Smrg  # Split the substitutions into bite-sized pieces for seds with
4427264fa531Smrg  # small command number limits, like on Digital OSF/1 and HP-UX.
4428264fa531Smrg  ac_max_sed_lines=48
4429264fa531Smrg  ac_sed_frag=1 # Number of current file.
4430264fa531Smrg  ac_beg=1 # First line for current file.
4431264fa531Smrg  ac_end=$ac_max_sed_lines # Line after last line for current file.
4432264fa531Smrg  ac_more_lines=:
4433264fa531Smrg  ac_sed_cmds=
4434264fa531Smrg  while $ac_more_lines; do
4435264fa531Smrg    if test $ac_beg -gt 1; then
4436264fa531Smrg      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4437264fa531Smrg    else
4438264fa531Smrg      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4439264fa531Smrg    fi
4440264fa531Smrg    if test ! -s $tmp/subs.frag; then
4441264fa531Smrg      ac_more_lines=false
4442264fa531Smrg    else
4443264fa531Smrg      # The purpose of the label and of the branching condition is to
4444264fa531Smrg      # speed up the sed processing (if there are no `@' at all, there
4445264fa531Smrg      # is no need to browse any of the substitutions).
4446264fa531Smrg      # These are the two extra sed commands mentioned above.
4447264fa531Smrg      (echo ':t
4448264fa531Smrg  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4449264fa531Smrg      if test -z "$ac_sed_cmds"; then
4450264fa531Smrg	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4451264fa531Smrg      else
4452264fa531Smrg	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4453264fa531Smrg      fi
4454264fa531Smrg      ac_sed_frag=`expr $ac_sed_frag + 1`
4455264fa531Smrg      ac_beg=$ac_end
4456264fa531Smrg      ac_end=`expr $ac_end + $ac_max_sed_lines`
4457264fa531Smrg    fi
4458264fa531Smrg  done
4459264fa531Smrg  if test -z "$ac_sed_cmds"; then
4460264fa531Smrg    ac_sed_cmds=cat
4461264fa531Smrg  fi
4462264fa531Smrgfi # test -n "$CONFIG_FILES"
4463264fa531Smrg
4464264fa531Smrg_ACEOF
4465264fa531Smrgcat >>$CONFIG_STATUS <<\_ACEOF
4466264fa531Smrgfor ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4467264fa531Smrg  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4468264fa531Smrg  case $ac_file in
4469264fa531Smrg  - | *:- | *:-:* ) # input from stdin
4470264fa531Smrg	cat >$tmp/stdin
4471264fa531Smrg	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4472264fa531Smrg	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4473264fa531Smrg  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4474264fa531Smrg	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4475264fa531Smrg  * )   ac_file_in=$ac_file.in ;;
4476264fa531Smrg  esac
4477264fa531Smrg
4478264fa531Smrg  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4479264fa531Smrg  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4480264fa531Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4481264fa531Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
4482264fa531Smrg	 X"$ac_file" : 'X\(//\)$' \| \
4483264fa531Smrg	 X"$ac_file" : 'X\(/\)' \| \
4484264fa531Smrg	 .     : '\(.\)' 2>/dev/null ||
4485264fa531Smrgecho X"$ac_file" |
4486264fa531Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4487264fa531Smrg  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4488264fa531Smrg  	  /^X\(\/\/\)$/{ s//\1/; q; }
4489264fa531Smrg  	  /^X\(\/\).*/{ s//\1/; q; }
4490264fa531Smrg  	  s/.*/./; q'`
4491264fa531Smrg  { if $as_mkdir_p; then
4492264fa531Smrg    mkdir -p "$ac_dir"
4493264fa531Smrg  else
4494264fa531Smrg    as_dir="$ac_dir"
4495264fa531Smrg    as_dirs=
4496264fa531Smrg    while test ! -d "$as_dir"; do
4497264fa531Smrg      as_dirs="$as_dir $as_dirs"
4498264fa531Smrg      as_dir=`(dirname "$as_dir") 2>/dev/null ||
4499264fa531Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4500264fa531Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
4501264fa531Smrg	 X"$as_dir" : 'X\(//\)$' \| \
4502264fa531Smrg	 X"$as_dir" : 'X\(/\)' \| \
4503264fa531Smrg	 .     : '\(.\)' 2>/dev/null ||
4504264fa531Smrgecho X"$as_dir" |
4505264fa531Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4506264fa531Smrg  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4507264fa531Smrg  	  /^X\(\/\/\)$/{ s//\1/; q; }
4508264fa531Smrg  	  /^X\(\/\).*/{ s//\1/; q; }
4509264fa531Smrg  	  s/.*/./; q'`
4510264fa531Smrg    done
4511264fa531Smrg    test ! -n "$as_dirs" || mkdir $as_dirs
4512264fa531Smrg  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4513264fa531Smrgecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4514264fa531Smrg   { (exit 1); exit 1; }; }; }
4515264fa531Smrg
4516264fa531Smrg  ac_builddir=.
4517264fa531Smrg
4518264fa531Smrgif test "$ac_dir" != .; then
4519264fa531Smrg  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4520264fa531Smrg  # A "../" for each directory in $ac_dir_suffix.
4521264fa531Smrg  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4522264fa531Smrgelse
4523264fa531Smrg  ac_dir_suffix= ac_top_builddir=
4524264fa531Smrgfi
4525264fa531Smrg
4526264fa531Smrgcase $srcdir in
4527264fa531Smrg  .)  # No --srcdir option.  We are building in place.
4528264fa531Smrg    ac_srcdir=.
4529264fa531Smrg    if test -z "$ac_top_builddir"; then
4530264fa531Smrg       ac_top_srcdir=.
4531264fa531Smrg    else
4532264fa531Smrg       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4533264fa531Smrg    fi ;;
4534264fa531Smrg  [\\/]* | ?:[\\/]* )  # Absolute path.
4535264fa531Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
4536264fa531Smrg    ac_top_srcdir=$srcdir ;;
4537264fa531Smrg  *) # Relative path.
4538264fa531Smrg    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4539264fa531Smrg    ac_top_srcdir=$ac_top_builddir$srcdir ;;
4540264fa531Smrgesac
4541264fa531Smrg
4542264fa531Smrg# Do not use `cd foo && pwd` to compute absolute paths, because
4543264fa531Smrg# the directories may not exist.
4544264fa531Smrgcase `pwd` in
4545264fa531Smrg.) ac_abs_builddir="$ac_dir";;
4546264fa531Smrg*)
4547264fa531Smrg  case "$ac_dir" in
4548264fa531Smrg  .) ac_abs_builddir=`pwd`;;
4549264fa531Smrg  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4550264fa531Smrg  *) ac_abs_builddir=`pwd`/"$ac_dir";;
4551264fa531Smrg  esac;;
4552264fa531Smrgesac
4553264fa531Smrgcase $ac_abs_builddir in
4554264fa531Smrg.) ac_abs_top_builddir=${ac_top_builddir}.;;
4555264fa531Smrg*)
4556264fa531Smrg  case ${ac_top_builddir}. in
4557264fa531Smrg  .) ac_abs_top_builddir=$ac_abs_builddir;;
4558264fa531Smrg  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4559264fa531Smrg  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4560264fa531Smrg  esac;;
4561264fa531Smrgesac
4562264fa531Smrgcase $ac_abs_builddir in
4563264fa531Smrg.) ac_abs_srcdir=$ac_srcdir;;
4564264fa531Smrg*)
4565264fa531Smrg  case $ac_srcdir in
4566264fa531Smrg  .) ac_abs_srcdir=$ac_abs_builddir;;
4567264fa531Smrg  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4568264fa531Smrg  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4569264fa531Smrg  esac;;
4570264fa531Smrgesac
4571264fa531Smrgcase $ac_abs_builddir in
4572264fa531Smrg.) ac_abs_top_srcdir=$ac_top_srcdir;;
4573264fa531Smrg*)
4574264fa531Smrg  case $ac_top_srcdir in
4575264fa531Smrg  .) ac_abs_top_srcdir=$ac_abs_builddir;;
4576264fa531Smrg  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4577264fa531Smrg  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4578264fa531Smrg  esac;;
4579264fa531Smrgesac
4580264fa531Smrg
4581264fa531Smrg
4582264fa531Smrg  case $INSTALL in
4583264fa531Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4584264fa531Smrg  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4585264fa531Smrg  esac
4586264fa531Smrg
4587264fa531Smrg  if test x"$ac_file" != x-; then
4588264fa531Smrg    { echo "$as_me:$LINENO: creating $ac_file" >&5
4589264fa531Smrgecho "$as_me: creating $ac_file" >&6;}
4590264fa531Smrg    rm -f "$ac_file"
4591264fa531Smrg  fi
4592264fa531Smrg  # Let's still pretend it is `configure' which instantiates (i.e., don't
4593264fa531Smrg  # use $as_me), people would be surprised to read:
4594264fa531Smrg  #    /* config.h.  Generated by config.status.  */
4595264fa531Smrg  if test x"$ac_file" = x-; then
4596264fa531Smrg    configure_input=
4597264fa531Smrg  else
4598264fa531Smrg    configure_input="$ac_file.  "
4599264fa531Smrg  fi
4600264fa531Smrg  configure_input=$configure_input"Generated from `echo $ac_file_in |
4601264fa531Smrg				     sed 's,.*/,,'` by configure."
4602264fa531Smrg
4603264fa531Smrg  # First look for the input files in the build tree, otherwise in the
4604264fa531Smrg  # src tree.
4605264fa531Smrg  ac_file_inputs=`IFS=:
4606264fa531Smrg    for f in $ac_file_in; do
4607264fa531Smrg      case $f in
4608264fa531Smrg      -) echo $tmp/stdin ;;
4609264fa531Smrg      [\\/$]*)
4610264fa531Smrg	 # Absolute (can't be DOS-style, as IFS=:)
4611264fa531Smrg	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4612264fa531Smrgecho "$as_me: error: cannot find input file: $f" >&2;}
4613264fa531Smrg   { (exit 1); exit 1; }; }
4614264fa531Smrg	 echo "$f";;
4615264fa531Smrg      *) # Relative
4616264fa531Smrg	 if test -f "$f"; then
4617264fa531Smrg	   # Build tree
4618264fa531Smrg	   echo "$f"
4619264fa531Smrg	 elif test -f "$srcdir/$f"; then
4620264fa531Smrg	   # Source tree
4621264fa531Smrg	   echo "$srcdir/$f"
4622264fa531Smrg	 else
4623264fa531Smrg	   # /dev/null tree
4624264fa531Smrg	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4625264fa531Smrgecho "$as_me: error: cannot find input file: $f" >&2;}
4626264fa531Smrg   { (exit 1); exit 1; }; }
4627264fa531Smrg	 fi;;
4628264fa531Smrg      esac
4629264fa531Smrg    done` || { (exit 1); exit 1; }
4630264fa531Smrg_ACEOF
4631264fa531Smrgcat >>$CONFIG_STATUS <<_ACEOF
4632264fa531Smrg  sed "$ac_vpsub
4633264fa531Smrg$extrasub
4634264fa531Smrg_ACEOF
4635264fa531Smrgcat >>$CONFIG_STATUS <<\_ACEOF
4636264fa531Smrg:t
4637264fa531Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4638264fa531Smrgs,@configure_input@,$configure_input,;t t
4639264fa531Smrgs,@srcdir@,$ac_srcdir,;t t
4640264fa531Smrgs,@abs_srcdir@,$ac_abs_srcdir,;t t
4641264fa531Smrgs,@top_srcdir@,$ac_top_srcdir,;t t
4642264fa531Smrgs,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4643264fa531Smrgs,@builddir@,$ac_builddir,;t t
4644264fa531Smrgs,@abs_builddir@,$ac_abs_builddir,;t t
4645264fa531Smrgs,@top_builddir@,$ac_top_builddir,;t t
4646264fa531Smrgs,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4647264fa531Smrgs,@INSTALL@,$ac_INSTALL,;t t
4648264fa531Smrg" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4649264fa531Smrg  rm -f $tmp/stdin
4650264fa531Smrg  if test x"$ac_file" != x-; then
4651264fa531Smrg    mv $tmp/out $ac_file
4652264fa531Smrg  else
4653264fa531Smrg    cat $tmp/out
4654264fa531Smrg    rm -f $tmp/out
4655264fa531Smrg  fi
4656264fa531Smrg
4657264fa531Smrgdone
4658264fa531Smrg_ACEOF
4659264fa531Smrgcat >>$CONFIG_STATUS <<\_ACEOF
4660264fa531Smrg
4661264fa531Smrg#
4662264fa531Smrg# CONFIG_HEADER section.
4663264fa531Smrg#
4664264fa531Smrg
4665264fa531Smrg# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4666264fa531Smrg# NAME is the cpp macro being defined and VALUE is the value it is being given.
4667264fa531Smrg#
4668264fa531Smrg# ac_d sets the value in "#define NAME VALUE" lines.
4669264fa531Smrgac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
4670264fa531Smrgac_dB='[	 ].*$,\1#\2'
4671264fa531Smrgac_dC=' '
4672264fa531Smrgac_dD=',;t'
4673264fa531Smrg# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4674264fa531Smrgac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
4675264fa531Smrgac_uB='$,\1#\2define\3'
4676264fa531Smrgac_uC=' '
4677264fa531Smrgac_uD=',;t'
4678264fa531Smrg
4679264fa531Smrgfor ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4680264fa531Smrg  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4681264fa531Smrg  case $ac_file in
4682264fa531Smrg  - | *:- | *:-:* ) # input from stdin
4683264fa531Smrg	cat >$tmp/stdin
4684264fa531Smrg	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4685264fa531Smrg	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4686264fa531Smrg  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4687264fa531Smrg	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4688264fa531Smrg  * )   ac_file_in=$ac_file.in ;;
4689264fa531Smrg  esac
4690264fa531Smrg
4691264fa531Smrg  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4692264fa531Smrgecho "$as_me: creating $ac_file" >&6;}
4693264fa531Smrg
4694264fa531Smrg  # First look for the input files in the build tree, otherwise in the
4695264fa531Smrg  # src tree.
4696264fa531Smrg  ac_file_inputs=`IFS=:
4697264fa531Smrg    for f in $ac_file_in; do
4698264fa531Smrg      case $f in
4699264fa531Smrg      -) echo $tmp/stdin ;;
4700264fa531Smrg      [\\/$]*)
4701264fa531Smrg	 # Absolute (can't be DOS-style, as IFS=:)
4702264fa531Smrg	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4703264fa531Smrgecho "$as_me: error: cannot find input file: $f" >&2;}
4704264fa531Smrg   { (exit 1); exit 1; }; }
4705264fa531Smrg	 # Do quote $f, to prevent DOS paths from being IFS'd.
4706264fa531Smrg	 echo "$f";;
4707264fa531Smrg      *) # Relative
4708264fa531Smrg	 if test -f "$f"; then
4709264fa531Smrg	   # Build tree
4710264fa531Smrg	   echo "$f"
4711264fa531Smrg	 elif test -f "$srcdir/$f"; then
4712264fa531Smrg	   # Source tree
4713264fa531Smrg	   echo "$srcdir/$f"
4714264fa531Smrg	 else
4715264fa531Smrg	   # /dev/null tree
4716264fa531Smrg	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4717264fa531Smrgecho "$as_me: error: cannot find input file: $f" >&2;}
4718264fa531Smrg   { (exit 1); exit 1; }; }
4719264fa531Smrg	 fi;;
4720264fa531Smrg      esac
4721264fa531Smrg    done` || { (exit 1); exit 1; }
4722264fa531Smrg  # Remove the trailing spaces.
4723264fa531Smrg  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
4724264fa531Smrg
4725264fa531Smrg_ACEOF
4726264fa531Smrg
4727264fa531Smrg# Transform confdefs.h into two sed scripts, `conftest.defines' and
4728264fa531Smrg# `conftest.undefs', that substitutes the proper values into
4729264fa531Smrg# config.h.in to produce config.h.  The first handles `#define'
4730264fa531Smrg# templates, and the second `#undef' templates.
4731264fa531Smrg# And first: Protect against being on the right side of a sed subst in
4732264fa531Smrg# config.status.  Protect against being in an unquoted here document
4733264fa531Smrg# in config.status.
4734264fa531Smrgrm -f conftest.defines conftest.undefs
4735264fa531Smrg# Using a here document instead of a string reduces the quoting nightmare.
4736264fa531Smrg# Putting comments in sed scripts is not portable.
4737264fa531Smrg#
4738264fa531Smrg# `end' is used to avoid that the second main sed command (meant for
4739264fa531Smrg# 0-ary CPP macros) applies to n-ary macro definitions.
4740264fa531Smrg# See the Autoconf documentation for `clear'.
4741264fa531Smrgcat >confdef2sed.sed <<\_ACEOF
4742264fa531Smrgs/[\\&,]/\\&/g
4743264fa531Smrgs,[\\$`],\\&,g
4744264fa531Smrgt clear
4745264fa531Smrg: clear
4746264fa531Smrgs,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4747264fa531Smrgt end
4748264fa531Smrgs,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4749264fa531Smrg: end
4750264fa531Smrg_ACEOF
4751264fa531Smrg# If some macros were called several times there might be several times
4752264fa531Smrg# the same #defines, which is useless.  Nevertheless, we may not want to
4753264fa531Smrg# sort them, since we want the *last* AC-DEFINE to be honored.
4754264fa531Smrguniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4755264fa531Smrgsed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4756264fa531Smrgrm -f confdef2sed.sed
4757264fa531Smrg
4758264fa531Smrg# This sed command replaces #undef with comments.  This is necessary, for
4759264fa531Smrg# example, in the case of _POSIX_SOURCE, which is predefined and required
4760264fa531Smrg# on some systems where configure will not decide to define it.
4761264fa531Smrgcat >>conftest.undefs <<\_ACEOF
4762264fa531Smrgs,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4763264fa531Smrg_ACEOF
4764264fa531Smrg
4765264fa531Smrg# Break up conftest.defines because some shells have a limit on the size
4766264fa531Smrg# of here documents, and old seds have small limits too (100 cmds).
4767264fa531Smrgecho '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4768264fa531Smrgecho '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4769264fa531Smrgecho '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4770264fa531Smrgecho '  :' >>$CONFIG_STATUS
4771264fa531Smrgrm -f conftest.tail
4772264fa531Smrgwhile grep . conftest.defines >/dev/null
4773264fa531Smrgdo
4774264fa531Smrg  # Write a limited-size here document to $tmp/defines.sed.
4775264fa531Smrg  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4776264fa531Smrg  # Speed up: don't consider the non `#define' lines.
4777264fa531Smrg  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
4778264fa531Smrg  # Work around the forget-to-reset-the-flag bug.
4779264fa531Smrg  echo 't clr' >>$CONFIG_STATUS
4780264fa531Smrg  echo ': clr' >>$CONFIG_STATUS
4781264fa531Smrg  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4782264fa531Smrg  echo 'CEOF
4783264fa531Smrg  sed -f $tmp/defines.sed $tmp/in >$tmp/out
4784264fa531Smrg  rm -f $tmp/in
4785264fa531Smrg  mv $tmp/out $tmp/in
4786264fa531Smrg' >>$CONFIG_STATUS
4787264fa531Smrg  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4788264fa531Smrg  rm -f conftest.defines
4789264fa531Smrg  mv conftest.tail conftest.defines
4790264fa531Smrgdone
4791264fa531Smrgrm -f conftest.defines
4792264fa531Smrgecho '  fi # grep' >>$CONFIG_STATUS
4793264fa531Smrgecho >>$CONFIG_STATUS
4794264fa531Smrg
4795264fa531Smrg# Break up conftest.undefs because some shells have a limit on the size
4796264fa531Smrg# of here documents, and old seds have small limits too (100 cmds).
4797264fa531Smrgecho '  # Handle all the #undef templates' >>$CONFIG_STATUS
4798264fa531Smrgrm -f conftest.tail
4799264fa531Smrgwhile grep . conftest.undefs >/dev/null
4800264fa531Smrgdo
4801264fa531Smrg  # Write a limited-size here document to $tmp/undefs.sed.
4802264fa531Smrg  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4803264fa531Smrg  # Speed up: don't consider the non `#undef'
4804264fa531Smrg  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
4805264fa531Smrg  # Work around the forget-to-reset-the-flag bug.
4806264fa531Smrg  echo 't clr' >>$CONFIG_STATUS
4807264fa531Smrg  echo ': clr' >>$CONFIG_STATUS
4808264fa531Smrg  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4809264fa531Smrg  echo 'CEOF
4810264fa531Smrg  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4811264fa531Smrg  rm -f $tmp/in
4812264fa531Smrg  mv $tmp/out $tmp/in
4813264fa531Smrg' >>$CONFIG_STATUS
4814264fa531Smrg  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4815264fa531Smrg  rm -f conftest.undefs
4816264fa531Smrg  mv conftest.tail conftest.undefs
4817264fa531Smrgdone
4818264fa531Smrgrm -f conftest.undefs
4819264fa531Smrg
4820264fa531Smrgcat >>$CONFIG_STATUS <<\_ACEOF
4821264fa531Smrg  # Let's still pretend it is `configure' which instantiates (i.e., don't
4822264fa531Smrg  # use $as_me), people would be surprised to read:
4823264fa531Smrg  #    /* config.h.  Generated by config.status.  */
4824264fa531Smrg  if test x"$ac_file" = x-; then
4825264fa531Smrg    echo "/* Generated by configure.  */" >$tmp/config.h
4826264fa531Smrg  else
4827264fa531Smrg    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
4828264fa531Smrg  fi
4829264fa531Smrg  cat $tmp/in >>$tmp/config.h
4830264fa531Smrg  rm -f $tmp/in
4831264fa531Smrg  if test x"$ac_file" != x-; then
4832264fa531Smrg    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
4833264fa531Smrg      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4834264fa531Smrgecho "$as_me: $ac_file is unchanged" >&6;}
4835264fa531Smrg    else
4836264fa531Smrg      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4837264fa531Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4838264fa531Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
4839264fa531Smrg	 X"$ac_file" : 'X\(//\)$' \| \
4840264fa531Smrg	 X"$ac_file" : 'X\(/\)' \| \
4841264fa531Smrg	 .     : '\(.\)' 2>/dev/null ||
4842264fa531Smrgecho X"$ac_file" |
4843264fa531Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4844264fa531Smrg  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4845264fa531Smrg  	  /^X\(\/\/\)$/{ s//\1/; q; }
4846264fa531Smrg  	  /^X\(\/\).*/{ s//\1/; q; }
4847264fa531Smrg  	  s/.*/./; q'`
4848264fa531Smrg      { if $as_mkdir_p; then
4849264fa531Smrg    mkdir -p "$ac_dir"
4850264fa531Smrg  else
4851264fa531Smrg    as_dir="$ac_dir"
4852264fa531Smrg    as_dirs=
4853264fa531Smrg    while test ! -d "$as_dir"; do
4854264fa531Smrg      as_dirs="$as_dir $as_dirs"
4855264fa531Smrg      as_dir=`(dirname "$as_dir") 2>/dev/null ||
4856264fa531Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4857264fa531Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
4858264fa531Smrg	 X"$as_dir" : 'X\(//\)$' \| \
4859264fa531Smrg	 X"$as_dir" : 'X\(/\)' \| \
4860264fa531Smrg	 .     : '\(.\)' 2>/dev/null ||
4861264fa531Smrgecho X"$as_dir" |
4862264fa531Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4863264fa531Smrg  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4864264fa531Smrg  	  /^X\(\/\/\)$/{ s//\1/; q; }
4865264fa531Smrg  	  /^X\(\/\).*/{ s//\1/; q; }
4866264fa531Smrg  	  s/.*/./; q'`
4867264fa531Smrg    done
4868264fa531Smrg    test ! -n "$as_dirs" || mkdir $as_dirs
4869264fa531Smrg  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4870264fa531Smrgecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4871264fa531Smrg   { (exit 1); exit 1; }; }; }
4872264fa531Smrg
4873264fa531Smrg      rm -f $ac_file
4874264fa531Smrg      mv $tmp/config.h $ac_file
4875264fa531Smrg    fi
4876264fa531Smrg  else
4877264fa531Smrg    cat $tmp/config.h
4878264fa531Smrg    rm -f $tmp/config.h
4879264fa531Smrg  fi
4880264fa531Smrg# Compute $ac_file's index in $config_headers.
4881264fa531Smrg_am_stamp_count=1
4882264fa531Smrgfor _am_header in $config_headers :; do
4883264fa531Smrg  case $_am_header in
4884264fa531Smrg    $ac_file | $ac_file:* )
4885264fa531Smrg      break ;;
4886264fa531Smrg    * )
4887264fa531Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
4888264fa531Smrg  esac
4889264fa531Smrgdone
4890264fa531Smrgecho "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
4891264fa531Smrg$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4892264fa531Smrg	 X$ac_file : 'X\(//\)[^/]' \| \
4893264fa531Smrg	 X$ac_file : 'X\(//\)$' \| \
4894264fa531Smrg	 X$ac_file : 'X\(/\)' \| \
4895264fa531Smrg	 .     : '\(.\)' 2>/dev/null ||
4896264fa531Smrgecho X$ac_file |
4897264fa531Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4898264fa531Smrg  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4899264fa531Smrg  	  /^X\(\/\/\)$/{ s//\1/; q; }
4900264fa531Smrg  	  /^X\(\/\).*/{ s//\1/; q; }
4901264fa531Smrg  	  s/.*/./; q'`/stamp-h$_am_stamp_count
4902264fa531Smrgdone
4903264fa531Smrg_ACEOF
4904264fa531Smrgcat >>$CONFIG_STATUS <<\_ACEOF
4905264fa531Smrg
4906264fa531Smrg#
4907264fa531Smrg# CONFIG_COMMANDS section.
4908264fa531Smrg#
4909264fa531Smrgfor ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4910264fa531Smrg  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4911264fa531Smrg  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4912264fa531Smrg  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
4913264fa531Smrg$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4914264fa531Smrg	 X"$ac_dest" : 'X\(//\)[^/]' \| \
4915264fa531Smrg	 X"$ac_dest" : 'X\(//\)$' \| \
4916264fa531Smrg	 X"$ac_dest" : 'X\(/\)' \| \
4917264fa531Smrg	 .     : '\(.\)' 2>/dev/null ||
4918264fa531Smrgecho X"$ac_dest" |
4919264fa531Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4920264fa531Smrg  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4921264fa531Smrg  	  /^X\(\/\/\)$/{ s//\1/; q; }
4922264fa531Smrg  	  /^X\(\/\).*/{ s//\1/; q; }
4923264fa531Smrg  	  s/.*/./; q'`
4924264fa531Smrg  { if $as_mkdir_p; then
4925264fa531Smrg    mkdir -p "$ac_dir"
4926264fa531Smrg  else
4927264fa531Smrg    as_dir="$ac_dir"
4928264fa531Smrg    as_dirs=
4929264fa531Smrg    while test ! -d "$as_dir"; do
4930264fa531Smrg      as_dirs="$as_dir $as_dirs"
4931264fa531Smrg      as_dir=`(dirname "$as_dir") 2>/dev/null ||
4932264fa531Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4933264fa531Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
4934264fa531Smrg	 X"$as_dir" : 'X\(//\)$' \| \
4935264fa531Smrg	 X"$as_dir" : 'X\(/\)' \| \
4936264fa531Smrg	 .     : '\(.\)' 2>/dev/null ||
4937264fa531Smrgecho X"$as_dir" |
4938264fa531Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4939264fa531Smrg  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4940264fa531Smrg  	  /^X\(\/\/\)$/{ s//\1/; q; }
4941264fa531Smrg  	  /^X\(\/\).*/{ s//\1/; q; }
4942264fa531Smrg  	  s/.*/./; q'`
4943264fa531Smrg    done
4944264fa531Smrg    test ! -n "$as_dirs" || mkdir $as_dirs
4945264fa531Smrg  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4946264fa531Smrgecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4947264fa531Smrg   { (exit 1); exit 1; }; }; }
4948264fa531Smrg
4949264fa531Smrg  ac_builddir=.
4950264fa531Smrg
4951264fa531Smrgif test "$ac_dir" != .; then
4952264fa531Smrg  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4953264fa531Smrg  # A "../" for each directory in $ac_dir_suffix.
4954264fa531Smrg  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4955264fa531Smrgelse
4956264fa531Smrg  ac_dir_suffix= ac_top_builddir=
4957264fa531Smrgfi
4958264fa531Smrg
4959264fa531Smrgcase $srcdir in
4960264fa531Smrg  .)  # No --srcdir option.  We are building in place.
4961264fa531Smrg    ac_srcdir=.
4962264fa531Smrg    if test -z "$ac_top_builddir"; then
4963264fa531Smrg       ac_top_srcdir=.
4964264fa531Smrg    else
4965264fa531Smrg       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4966264fa531Smrg    fi ;;
4967264fa531Smrg  [\\/]* | ?:[\\/]* )  # Absolute path.
4968264fa531Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
4969264fa531Smrg    ac_top_srcdir=$srcdir ;;
4970264fa531Smrg  *) # Relative path.
4971264fa531Smrg    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4972264fa531Smrg    ac_top_srcdir=$ac_top_builddir$srcdir ;;
4973264fa531Smrgesac
4974264fa531Smrg
4975264fa531Smrg# Do not use `cd foo && pwd` to compute absolute paths, because
4976264fa531Smrg# the directories may not exist.
4977264fa531Smrgcase `pwd` in
4978264fa531Smrg.) ac_abs_builddir="$ac_dir";;
4979264fa531Smrg*)
4980264fa531Smrg  case "$ac_dir" in
4981264fa531Smrg  .) ac_abs_builddir=`pwd`;;
4982264fa531Smrg  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4983264fa531Smrg  *) ac_abs_builddir=`pwd`/"$ac_dir";;
4984264fa531Smrg  esac;;
4985264fa531Smrgesac
4986264fa531Smrgcase $ac_abs_builddir in
4987264fa531Smrg.) ac_abs_top_builddir=${ac_top_builddir}.;;
4988264fa531Smrg*)
4989264fa531Smrg  case ${ac_top_builddir}. in
4990264fa531Smrg  .) ac_abs_top_builddir=$ac_abs_builddir;;
4991264fa531Smrg  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4992264fa531Smrg  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4993264fa531Smrg  esac;;
4994264fa531Smrgesac
4995264fa531Smrgcase $ac_abs_builddir in
4996264fa531Smrg.) ac_abs_srcdir=$ac_srcdir;;
4997264fa531Smrg*)
4998264fa531Smrg  case $ac_srcdir in
4999264fa531Smrg  .) ac_abs_srcdir=$ac_abs_builddir;;
5000264fa531Smrg  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5001264fa531Smrg  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5002264fa531Smrg  esac;;
5003264fa531Smrgesac
5004264fa531Smrgcase $ac_abs_builddir in
5005264fa531Smrg.) ac_abs_top_srcdir=$ac_top_srcdir;;
5006264fa531Smrg*)
5007264fa531Smrg  case $ac_top_srcdir in
5008264fa531Smrg  .) ac_abs_top_srcdir=$ac_abs_builddir;;
5009264fa531Smrg  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5010264fa531Smrg  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5011264fa531Smrg  esac;;
5012264fa531Smrgesac
5013264fa531Smrg
5014264fa531Smrg
5015264fa531Smrg  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5016264fa531Smrgecho "$as_me: executing $ac_dest commands" >&6;}
5017264fa531Smrg  case $ac_dest in
5018264fa531Smrg    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
5019264fa531Smrg  # Strip MF so we end up with the name of the file.
5020264fa531Smrg  mf=`echo "$mf" | sed -e 's/:.*$//'`
5021264fa531Smrg  # Check whether this is an Automake generated Makefile or not.
5022264fa531Smrg  # We used to match only the files named `Makefile.in', but
5023264fa531Smrg  # some people rename them; so instead we look at the file content.
5024264fa531Smrg  # Grep'ing the first line is not enough: some people post-process
5025264fa531Smrg  # each Makefile.in and add a new line on top of each file to say so.
5026264fa531Smrg  # So let's grep whole file.
5027264fa531Smrg  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
5028264fa531Smrg    dirpart=`(dirname "$mf") 2>/dev/null ||
5029264fa531Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5030264fa531Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
5031264fa531Smrg	 X"$mf" : 'X\(//\)$' \| \
5032264fa531Smrg	 X"$mf" : 'X\(/\)' \| \
5033264fa531Smrg	 .     : '\(.\)' 2>/dev/null ||
5034264fa531Smrgecho X"$mf" |
5035264fa531Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5036264fa531Smrg  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5037264fa531Smrg  	  /^X\(\/\/\)$/{ s//\1/; q; }
5038264fa531Smrg  	  /^X\(\/\).*/{ s//\1/; q; }
5039264fa531Smrg  	  s/.*/./; q'`
5040264fa531Smrg  else
5041264fa531Smrg    continue
5042264fa531Smrg  fi
5043264fa531Smrg  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
5044264fa531Smrg  # Extract the definition of DEP_FILES from the Makefile without
5045264fa531Smrg  # running `make'.
5046264fa531Smrg  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
5047264fa531Smrg  test -z "$DEPDIR" && continue
5048264fa531Smrg  # When using ansi2knr, U may be empty or an underscore; expand it
5049264fa531Smrg  U=`sed -n -e '/^U = / s///p' < "$mf"`
5050264fa531Smrg  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
5051264fa531Smrg  # We invoke sed twice because it is the simplest approach to
5052264fa531Smrg  # changing $(DEPDIR) to its actual value in the expansion.
5053264fa531Smrg  for file in `sed -n -e '
5054264fa531Smrg    /^DEP_FILES = .*\\\\$/ {
5055264fa531Smrg      s/^DEP_FILES = //
5056264fa531Smrg      :loop
5057264fa531Smrg	s/\\\\$//
5058264fa531Smrg	p
5059264fa531Smrg	n
5060264fa531Smrg	/\\\\$/ b loop
5061264fa531Smrg      p
5062264fa531Smrg    }
5063264fa531Smrg    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
5064264fa531Smrg       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5065264fa531Smrg    # Make sure the directory exists.
5066264fa531Smrg    test -f "$dirpart/$file" && continue
5067264fa531Smrg    fdir=`(dirname "$file") 2>/dev/null ||
5068264fa531Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5069264fa531Smrg	 X"$file" : 'X\(//\)[^/]' \| \
5070264fa531Smrg	 X"$file" : 'X\(//\)$' \| \
5071264fa531Smrg	 X"$file" : 'X\(/\)' \| \
5072264fa531Smrg	 .     : '\(.\)' 2>/dev/null ||
5073264fa531Smrgecho X"$file" |
5074264fa531Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5075264fa531Smrg  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5076264fa531Smrg  	  /^X\(\/\/\)$/{ s//\1/; q; }
5077264fa531Smrg  	  /^X\(\/\).*/{ s//\1/; q; }
5078264fa531Smrg  	  s/.*/./; q'`
5079264fa531Smrg    { if $as_mkdir_p; then
5080264fa531Smrg    mkdir -p $dirpart/$fdir
5081264fa531Smrg  else
5082264fa531Smrg    as_dir=$dirpart/$fdir
5083264fa531Smrg    as_dirs=
5084264fa531Smrg    while test ! -d "$as_dir"; do
5085264fa531Smrg      as_dirs="$as_dir $as_dirs"
5086264fa531Smrg      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5087264fa531Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5088264fa531Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
5089264fa531Smrg	 X"$as_dir" : 'X\(//\)$' \| \
5090264fa531Smrg	 X"$as_dir" : 'X\(/\)' \| \
5091264fa531Smrg	 .     : '\(.\)' 2>/dev/null ||
5092264fa531Smrgecho X"$as_dir" |
5093264fa531Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5094264fa531Smrg  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5095264fa531Smrg  	  /^X\(\/\/\)$/{ s//\1/; q; }
5096264fa531Smrg  	  /^X\(\/\).*/{ s//\1/; q; }
5097264fa531Smrg  	  s/.*/./; q'`
5098264fa531Smrg    done
5099264fa531Smrg    test ! -n "$as_dirs" || mkdir $as_dirs
5100264fa531Smrg  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
5101264fa531Smrgecho "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
5102264fa531Smrg   { (exit 1); exit 1; }; }; }
5103264fa531Smrg
5104264fa531Smrg    # echo "creating $dirpart/$file"
5105264fa531Smrg    echo '# dummy' > "$dirpart/$file"
5106264fa531Smrg  done
5107264fa531Smrgdone
5108264fa531Smrg ;;
5109264fa531Smrg  esac
5110264fa531Smrgdone
5111264fa531Smrg_ACEOF
5112264fa531Smrg
5113264fa531Smrgcat >>$CONFIG_STATUS <<\_ACEOF
5114264fa531Smrg
5115264fa531Smrg{ (exit 0); exit 0; }
5116264fa531Smrg_ACEOF
5117264fa531Smrgchmod +x $CONFIG_STATUS
5118264fa531Smrgac_clean_files=$ac_clean_files_save
5119264fa531Smrg
5120264fa531Smrg
5121264fa531Smrg# configure is writing to config.log, and then calls config.status.
5122264fa531Smrg# config.status does its own redirection, appending to config.log.
5123264fa531Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
5124264fa531Smrg# by configure, so config.status won't be able to write to it; its
5125264fa531Smrg# output is simply discarded.  So we exec the FD to /dev/null,
5126264fa531Smrg# effectively closing config.log, so it can be properly (re)opened and
5127264fa531Smrg# appended to by config.status.  When coming back to configure, we
5128264fa531Smrg# need to make the FD available again.
5129264fa531Smrgif test "$no_create" != yes; then
5130264fa531Smrg  ac_cs_success=:
5131264fa531Smrg  ac_config_status_args=
5132264fa531Smrg  test "$silent" = yes &&
5133264fa531Smrg    ac_config_status_args="$ac_config_status_args --quiet"
5134264fa531Smrg  exec 5>/dev/null
5135264fa531Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5136264fa531Smrg  exec 5>>config.log
5137264fa531Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5138264fa531Smrg  # would make configure fail if this is the last instruction.
5139264fa531Smrg  $ac_cs_success || { (exit 1); exit 1; }
5140264fa531Smrgfi
5141264fa531Smrg
5142