configure revision 48e69166
1fd0c672fSmrg#! /bin/sh
2fd0c672fSmrg# Guess values for system-dependent variables and create Makefiles.
348e69166Smrg# Generated by GNU Autoconf 2.68 for xload 1.1.0.
4fd0c672fSmrg#
5fd0c672fSmrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6fd0c672fSmrg#
748e69166Smrg#
848e69166Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
948e69166Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
1048e69166Smrg# Foundation, Inc.
1148e69166Smrg#
1248e69166Smrg#
13fd0c672fSmrg# This configure script is free software; the Free Software Foundation
14fd0c672fSmrg# gives unlimited permission to copy, distribute and modify it.
1548e69166Smrg## -------------------- ##
1648e69166Smrg## M4sh Initialization. ##
1748e69166Smrg## -------------------- ##
18fd0c672fSmrg
1948e69166Smrg# Be more Bourne compatible
2048e69166SmrgDUALCASE=1; export DUALCASE # for MKS sh
2148e69166Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22fd0c672fSmrg  emulate sh
23fd0c672fSmrg  NULLCMD=:
2448e69166Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25fd0c672fSmrg  # is contrary to our usage.  Disable this feature.
26fd0c672fSmrg  alias -g '${1+"$@"}'='"$@"'
2748e69166Smrg  setopt NO_GLOB_SUBST
2848e69166Smrgelse
2948e69166Smrg  case `(set -o) 2>/dev/null` in #(
3048e69166Smrg  *posix*) :
3148e69166Smrg    set -o posix ;; #(
3248e69166Smrg  *) :
3348e69166Smrg     ;;
3448e69166Smrgesac
35fd0c672fSmrgfi
36fd0c672fSmrg
3748e69166Smrg
3848e69166Smrgas_nl='
3948e69166Smrg'
4048e69166Smrgexport as_nl
4148e69166Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
4248e69166Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4348e69166Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4448e69166Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4548e69166Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
4648e69166Smrg# but without wasting forks for bash or zsh.
4748e69166Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
4848e69166Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4948e69166Smrg  as_echo='print -r --'
5048e69166Smrg  as_echo_n='print -rn --'
5148e69166Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5248e69166Smrg  as_echo='printf %s\n'
5348e69166Smrg  as_echo_n='printf %s'
54fd0c672fSmrgelse
5548e69166Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5648e69166Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5748e69166Smrg    as_echo_n='/usr/ucb/echo -n'
5848e69166Smrg  else
5948e69166Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6048e69166Smrg    as_echo_n_body='eval
6148e69166Smrg      arg=$1;
6248e69166Smrg      case $arg in #(
6348e69166Smrg      *"$as_nl"*)
6448e69166Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
6548e69166Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6648e69166Smrg      esac;
6748e69166Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6848e69166Smrg    '
6948e69166Smrg    export as_echo_n_body
7048e69166Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
7148e69166Smrg  fi
7248e69166Smrg  export as_echo_body
7348e69166Smrg  as_echo='sh -c $as_echo_body as_echo'
7448e69166Smrgfi
7548e69166Smrg
7648e69166Smrg# The user is always right.
7748e69166Smrgif test "${PATH_SEPARATOR+set}" != set; then
7848e69166Smrg  PATH_SEPARATOR=:
7948e69166Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8048e69166Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8148e69166Smrg      PATH_SEPARATOR=';'
8248e69166Smrg  }
83fd0c672fSmrgfi
84fd0c672fSmrg
85fd0c672fSmrg
8648e69166Smrg# IFS
8748e69166Smrg# We need space, tab and new line, in precisely that order.  Quoting is
8848e69166Smrg# there to prevent editors from complaining about space-tab.
8948e69166Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9048e69166Smrg# splitting by setting IFS to empty value.)
9148e69166SmrgIFS=" ""	$as_nl"
9248e69166Smrg
9348e69166Smrg# Find who we are.  Look in the path if we contain no directory separator.
9448e69166Smrgas_myself=
9548e69166Smrgcase $0 in #((
9648e69166Smrg  *[\\/]* ) as_myself=$0 ;;
9748e69166Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9848e69166Smrgfor as_dir in $PATH
9948e69166Smrgdo
10048e69166Smrg  IFS=$as_save_IFS
10148e69166Smrg  test -z "$as_dir" && as_dir=.
10248e69166Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10348e69166Smrg  done
10448e69166SmrgIFS=$as_save_IFS
10548e69166Smrg
10648e69166Smrg     ;;
10748e69166Smrgesac
10848e69166Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
10948e69166Smrg# in which case we are not to be found in the path.
11048e69166Smrgif test "x$as_myself" = x; then
11148e69166Smrg  as_myself=$0
11248e69166Smrgfi
11348e69166Smrgif test ! -f "$as_myself"; then
11448e69166Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11548e69166Smrg  exit 1
11648e69166Smrgfi
11748e69166Smrg
11848e69166Smrg# Unset variables that we do not need and which cause bugs (e.g. in
11948e69166Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12048e69166Smrg# suppresses any "Segmentation fault" message there.  '((' could
12148e69166Smrg# trigger a bug in pdksh 5.2.14.
12248e69166Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
12348e69166Smrgdo eval test x\${$as_var+set} = xset \
12448e69166Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12548e69166Smrgdone
126fd0c672fSmrgPS1='$ '
127fd0c672fSmrgPS2='> '
128fd0c672fSmrgPS4='+ '
129fd0c672fSmrg
130fd0c672fSmrg# NLS nuisances.
13148e69166SmrgLC_ALL=C
13248e69166Smrgexport LC_ALL
13348e69166SmrgLANGUAGE=C
13448e69166Smrgexport LANGUAGE
13548e69166Smrg
13648e69166Smrg# CDPATH.
13748e69166Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13848e69166Smrg
13948e69166Smrgif test "x$CONFIG_SHELL" = x; then
14048e69166Smrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
14148e69166Smrg  emulate sh
14248e69166Smrg  NULLCMD=:
14348e69166Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
14448e69166Smrg  # is contrary to our usage.  Disable this feature.
14548e69166Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
14648e69166Smrg  setopt NO_GLOB_SUBST
14748e69166Smrgelse
14848e69166Smrg  case \`(set -o) 2>/dev/null\` in #(
14948e69166Smrg  *posix*) :
15048e69166Smrg    set -o posix ;; #(
15148e69166Smrg  *) :
15248e69166Smrg     ;;
15348e69166Smrgesac
15448e69166Smrgfi
15548e69166Smrg"
15648e69166Smrg  as_required="as_fn_return () { (exit \$1); }
15748e69166Smrgas_fn_success () { as_fn_return 0; }
15848e69166Smrgas_fn_failure () { as_fn_return 1; }
15948e69166Smrgas_fn_ret_success () { return 0; }
16048e69166Smrgas_fn_ret_failure () { return 1; }
16148e69166Smrg
16248e69166Smrgexitcode=0
16348e69166Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
16448e69166Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
16548e69166Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
16648e69166Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
16748e69166Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
16848e69166Smrg
16948e69166Smrgelse
17048e69166Smrg  exitcode=1; echo positional parameters were not saved.
17148e69166Smrgfi
17248e69166Smrgtest x\$exitcode = x0 || exit 1"
17348e69166Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
17448e69166Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
17548e69166Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
17648e69166Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
17748e69166Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
17848e69166Smrg  if (eval "$as_required") 2>/dev/null; then :
17948e69166Smrg  as_have_required=yes
18048e69166Smrgelse
18148e69166Smrg  as_have_required=no
18248e69166Smrgfi
18348e69166Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
18448e69166Smrg
18548e69166Smrgelse
18648e69166Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18748e69166Smrgas_found=false
18848e69166Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189fd0c672fSmrgdo
19048e69166Smrg  IFS=$as_save_IFS
19148e69166Smrg  test -z "$as_dir" && as_dir=.
19248e69166Smrg  as_found=:
19348e69166Smrg  case $as_dir in #(
19448e69166Smrg	 /*)
19548e69166Smrg	   for as_base in sh bash ksh sh5; do
19648e69166Smrg	     # Try only shells that exist, to save several forks.
19748e69166Smrg	     as_shell=$as_dir/$as_base
19848e69166Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
19948e69166Smrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
20048e69166Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
20148e69166Smrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
20248e69166Smrg  break 2
20348e69166Smrgfi
20448e69166Smrgfi
20548e69166Smrg	   done;;
20648e69166Smrg       esac
20748e69166Smrg  as_found=false
20848e69166Smrgdone
20948e69166Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
21048e69166Smrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
21148e69166Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
21248e69166Smrgfi; }
21348e69166SmrgIFS=$as_save_IFS
21448e69166Smrg
21548e69166Smrg
21648e69166Smrg      if test "x$CONFIG_SHELL" != x; then :
21748e69166Smrg  # We cannot yet assume a decent shell, so we have to provide a
21848e69166Smrg	# neutralization value for shells without unset; and this also
21948e69166Smrg	# works around shells that cannot unset nonexistent variables.
22048e69166Smrg	# Preserve -v and -x to the replacement shell.
22148e69166Smrg	BASH_ENV=/dev/null
22248e69166Smrg	ENV=/dev/null
22348e69166Smrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
22448e69166Smrg	export CONFIG_SHELL
22548e69166Smrg	case $- in # ((((
22648e69166Smrg	  *v*x* | *x*v* ) as_opts=-vx ;;
22748e69166Smrg	  *v* ) as_opts=-v ;;
22848e69166Smrg	  *x* ) as_opts=-x ;;
22948e69166Smrg	  * ) as_opts= ;;
23048e69166Smrg	esac
23148e69166Smrg	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
23248e69166Smrgfi
23348e69166Smrg
23448e69166Smrg    if test x$as_have_required = xno; then :
23548e69166Smrg  $as_echo "$0: This script requires a shell more modern than all"
23648e69166Smrg  $as_echo "$0: the shells that I found on your system."
23748e69166Smrg  if test x${ZSH_VERSION+set} = xset ; then
23848e69166Smrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
23948e69166Smrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240fd0c672fSmrg  else
24148e69166Smrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
24248e69166Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
24348e69166Smrg$0: about your system, including any error possibly output
24448e69166Smrg$0: before this message. Then install a modern shell, or
24548e69166Smrg$0: manually run the script under such a shell if you do
24648e69166Smrg$0: have one."
247fd0c672fSmrg  fi
24848e69166Smrg  exit 1
24948e69166Smrgfi
25048e69166Smrgfi
25148e69166Smrgfi
25248e69166SmrgSHELL=${CONFIG_SHELL-/bin/sh}
25348e69166Smrgexport SHELL
25448e69166Smrg# Unset more variables known to interfere with behavior of common tools.
25548e69166SmrgCLICOLOR_FORCE= GREP_OPTIONS=
25648e69166Smrgunset CLICOLOR_FORCE GREP_OPTIONS
25748e69166Smrg
25848e69166Smrg## --------------------- ##
25948e69166Smrg## M4sh Shell Functions. ##
26048e69166Smrg## --------------------- ##
26148e69166Smrg# as_fn_unset VAR
26248e69166Smrg# ---------------
26348e69166Smrg# Portably unset VAR.
26448e69166Smrgas_fn_unset ()
26548e69166Smrg{
26648e69166Smrg  { eval $1=; unset $1;}
26748e69166Smrg}
26848e69166Smrgas_unset=as_fn_unset
26948e69166Smrg
27048e69166Smrg# as_fn_set_status STATUS
27148e69166Smrg# -----------------------
27248e69166Smrg# Set $? to STATUS, without forking.
27348e69166Smrgas_fn_set_status ()
27448e69166Smrg{
27548e69166Smrg  return $1
27648e69166Smrg} # as_fn_set_status
277fd0c672fSmrg
27848e69166Smrg# as_fn_exit STATUS
27948e69166Smrg# -----------------
28048e69166Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28148e69166Smrgas_fn_exit ()
28248e69166Smrg{
28348e69166Smrg  set +e
28448e69166Smrg  as_fn_set_status $1
28548e69166Smrg  exit $1
28648e69166Smrg} # as_fn_exit
28748e69166Smrg
28848e69166Smrg# as_fn_mkdir_p
28948e69166Smrg# -------------
29048e69166Smrg# Create "$as_dir" as a directory, including parents if necessary.
29148e69166Smrgas_fn_mkdir_p ()
29248e69166Smrg{
29348e69166Smrg
29448e69166Smrg  case $as_dir in #(
29548e69166Smrg  -*) as_dir=./$as_dir;;
29648e69166Smrg  esac
29748e69166Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
29848e69166Smrg    as_dirs=
29948e69166Smrg    while :; do
30048e69166Smrg      case $as_dir in #(
30148e69166Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30248e69166Smrg      *) as_qdir=$as_dir;;
30348e69166Smrg      esac
30448e69166Smrg      as_dirs="'$as_qdir' $as_dirs"
30548e69166Smrg      as_dir=`$as_dirname -- "$as_dir" ||
30648e69166Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30748e69166Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
30848e69166Smrg	 X"$as_dir" : 'X\(//\)$' \| \
30948e69166Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31048e69166Smrg$as_echo X"$as_dir" |
31148e69166Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31248e69166Smrg	    s//\1/
31348e69166Smrg	    q
31448e69166Smrg	  }
31548e69166Smrg	  /^X\(\/\/\)[^/].*/{
31648e69166Smrg	    s//\1/
31748e69166Smrg	    q
31848e69166Smrg	  }
31948e69166Smrg	  /^X\(\/\/\)$/{
32048e69166Smrg	    s//\1/
32148e69166Smrg	    q
32248e69166Smrg	  }
32348e69166Smrg	  /^X\(\/\).*/{
32448e69166Smrg	    s//\1/
32548e69166Smrg	    q
32648e69166Smrg	  }
32748e69166Smrg	  s/.*/./; q'`
32848e69166Smrg      test -d "$as_dir" && break
32948e69166Smrg    done
33048e69166Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
33148e69166Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33248e69166Smrg
33348e69166Smrg
33448e69166Smrg} # as_fn_mkdir_p
33548e69166Smrg# as_fn_append VAR VALUE
33648e69166Smrg# ----------------------
33748e69166Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
33848e69166Smrg# advantage of any shell optimizations that allow amortized linear growth over
33948e69166Smrg# repeated appends, instead of the typical quadratic growth present in naive
34048e69166Smrg# implementations.
34148e69166Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
34248e69166Smrg  eval 'as_fn_append ()
34348e69166Smrg  {
34448e69166Smrg    eval $1+=\$2
34548e69166Smrg  }'
34648e69166Smrgelse
34748e69166Smrg  as_fn_append ()
34848e69166Smrg  {
34948e69166Smrg    eval $1=\$$1\$2
35048e69166Smrg  }
35148e69166Smrgfi # as_fn_append
35248e69166Smrg
35348e69166Smrg# as_fn_arith ARG...
35448e69166Smrg# ------------------
35548e69166Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
35648e69166Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
35748e69166Smrg# must be portable across $(()) and expr.
35848e69166Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35948e69166Smrg  eval 'as_fn_arith ()
36048e69166Smrg  {
36148e69166Smrg    as_val=$(( $* ))
36248e69166Smrg  }'
36348e69166Smrgelse
36448e69166Smrg  as_fn_arith ()
36548e69166Smrg  {
36648e69166Smrg    as_val=`expr "$@" || test $? -eq 1`
36748e69166Smrg  }
36848e69166Smrgfi # as_fn_arith
36948e69166Smrg
37048e69166Smrg
37148e69166Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
37248e69166Smrg# ----------------------------------------
37348e69166Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
37448e69166Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
37548e69166Smrg# script with STATUS, using 1 if that was 0.
37648e69166Smrgas_fn_error ()
37748e69166Smrg{
37848e69166Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
37948e69166Smrg  if test "$4"; then
38048e69166Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
38148e69166Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
38248e69166Smrg  fi
38348e69166Smrg  $as_echo "$as_me: error: $2" >&2
38448e69166Smrg  as_fn_exit $as_status
38548e69166Smrg} # as_fn_error
38648e69166Smrg
38748e69166Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
38848e69166Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389fd0c672fSmrg  as_expr=expr
390fd0c672fSmrgelse
391fd0c672fSmrg  as_expr=false
392fd0c672fSmrgfi
393fd0c672fSmrg
39448e69166Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395fd0c672fSmrg  as_basename=basename
396fd0c672fSmrgelse
397fd0c672fSmrg  as_basename=false
398fd0c672fSmrgfi
399fd0c672fSmrg
40048e69166Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
40148e69166Smrg  as_dirname=dirname
40248e69166Smrgelse
40348e69166Smrg  as_dirname=false
40448e69166Smrgfi
405fd0c672fSmrg
40648e69166Smrgas_me=`$as_basename -- "$0" ||
407fd0c672fSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408fd0c672fSmrg	 X"$0" : 'X\(//\)$' \| \
40948e69166Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41048e69166Smrg$as_echo X/"$0" |
41148e69166Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
41248e69166Smrg	    s//\1/
41348e69166Smrg	    q
41448e69166Smrg	  }
41548e69166Smrg	  /^X\/\(\/\/\)$/{
41648e69166Smrg	    s//\1/
41748e69166Smrg	    q
41848e69166Smrg	  }
41948e69166Smrg	  /^X\/\(\/\).*/{
42048e69166Smrg	    s//\1/
42148e69166Smrg	    q
42248e69166Smrg	  }
42348e69166Smrg	  s/.*/./; q'`
424fd0c672fSmrg
425fd0c672fSmrg# Avoid depending upon Character Ranges.
426fd0c672fSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
427fd0c672fSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428fd0c672fSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
429fd0c672fSmrgas_cr_digits='0123456789'
430fd0c672fSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
431fd0c672fSmrg
432fd0c672fSmrg
43348e69166Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
43448e69166Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
43548e69166Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
43648e69166Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
43748e69166Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
43848e69166Smrg  sed -n '
43948e69166Smrg    p
44048e69166Smrg    /[$]LINENO/=
44148e69166Smrg  ' <$as_myself |
442fd0c672fSmrg    sed '
44348e69166Smrg      s/[$]LINENO.*/&-/
44448e69166Smrg      t lineno
44548e69166Smrg      b
44648e69166Smrg      :lineno
447fd0c672fSmrg      N
44848e69166Smrg      :loop
44948e69166Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450fd0c672fSmrg      t loop
45148e69166Smrg      s/-\n.*//
452fd0c672fSmrg    ' >$as_me.lineno &&
45348e69166Smrg  chmod +x "$as_me.lineno" ||
45448e69166Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455fd0c672fSmrg
456fd0c672fSmrg  # Don't try to exec as it changes $[0], causing all sort of problems
457fd0c672fSmrg  # (the dirname of $[0] is not the place where we might find the
45848e69166Smrg  # original and so on.  Autoconf is especially sensitive to this).
45948e69166Smrg  . "./$as_me.lineno"
460fd0c672fSmrg  # Exit status is that of the last command.
461fd0c672fSmrg  exit
462fd0c672fSmrg}
463fd0c672fSmrg
46448e69166SmrgECHO_C= ECHO_N= ECHO_T=
46548e69166Smrgcase `echo -n x` in #(((((
46648e69166Smrg-n*)
46748e69166Smrg  case `echo 'xy\c'` in
46848e69166Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
46948e69166Smrg  xy)  ECHO_C='\c';;
47048e69166Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
47148e69166Smrg       ECHO_T='	';;
47248e69166Smrg  esac;;
47348e69166Smrg*)
47448e69166Smrg  ECHO_N='-n';;
475fd0c672fSmrgesac
476fd0c672fSmrg
47748e69166Smrgrm -f conf$$ conf$$.exe conf$$.file
47848e69166Smrgif test -d conf$$.dir; then
47948e69166Smrg  rm -f conf$$.dir/conf$$.file
480fd0c672fSmrgelse
48148e69166Smrg  rm -f conf$$.dir
48248e69166Smrg  mkdir conf$$.dir 2>/dev/null
483fd0c672fSmrgfi
48448e69166Smrgif (echo >conf$$.file) 2>/dev/null; then
48548e69166Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
486fd0c672fSmrg    as_ln_s='ln -s'
48748e69166Smrg    # ... but there are two gotchas:
48848e69166Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
48948e69166Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
49048e69166Smrg    # In both cases, we have to default to `cp -p'.
49148e69166Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
49248e69166Smrg      as_ln_s='cp -p'
49348e69166Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
49448e69166Smrg    as_ln_s=ln
49548e69166Smrg  else
49648e69166Smrg    as_ln_s='cp -p'
497fd0c672fSmrg  fi
498fd0c672fSmrgelse
499fd0c672fSmrg  as_ln_s='cp -p'
500fd0c672fSmrgfi
50148e69166Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
50248e69166Smrgrmdir conf$$.dir 2>/dev/null
503fd0c672fSmrg
504fd0c672fSmrgif mkdir -p . 2>/dev/null; then
50548e69166Smrg  as_mkdir_p='mkdir -p "$as_dir"'
506fd0c672fSmrgelse
507fd0c672fSmrg  test -d ./-p && rmdir ./-p
508fd0c672fSmrg  as_mkdir_p=false
509fd0c672fSmrgfi
510fd0c672fSmrg
51148e69166Smrgif test -x / >/dev/null 2>&1; then
51248e69166Smrg  as_test_x='test -x'
51348e69166Smrgelse
51448e69166Smrg  if ls -dL / >/dev/null 2>&1; then
51548e69166Smrg    as_ls_L_option=L
51648e69166Smrg  else
51748e69166Smrg    as_ls_L_option=
51848e69166Smrg  fi
51948e69166Smrg  as_test_x='
52048e69166Smrg    eval sh -c '\''
52148e69166Smrg      if test -d "$1"; then
52248e69166Smrg	test -d "$1/.";
52348e69166Smrg      else
52448e69166Smrg	case $1 in #(
52548e69166Smrg	-*)set "./$1";;
52648e69166Smrg	esac;
52748e69166Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
52848e69166Smrg	???[sx]*):;;*)false;;esac;fi
52948e69166Smrg    '\'' sh
53048e69166Smrg  '
53148e69166Smrgfi
53248e69166Smrgas_executable_p=$as_test_x
533fd0c672fSmrg
534fd0c672fSmrg# Sed expression to map a string onto a valid CPP name.
535fd0c672fSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536fd0c672fSmrg
537fd0c672fSmrg# Sed expression to map a string onto a valid variable name.
538fd0c672fSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539fd0c672fSmrg
540fd0c672fSmrg
54148e69166Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
54248e69166Smrgexec 6>&1
543fd0c672fSmrg
544fd0c672fSmrg# Name of the host.
54548e69166Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546fd0c672fSmrg# so uname gets run too.
547fd0c672fSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548fd0c672fSmrg
549fd0c672fSmrg#
550fd0c672fSmrg# Initializations.
551fd0c672fSmrg#
552fd0c672fSmrgac_default_prefix=/usr/local
55348e69166Smrgac_clean_files=
554fd0c672fSmrgac_config_libobj_dir=.
55548e69166SmrgLIBOBJS=
556fd0c672fSmrgcross_compiling=no
557fd0c672fSmrgsubdirs=
558fd0c672fSmrgMFLAGS=
559fd0c672fSmrgMAKEFLAGS=
560fd0c672fSmrg
561fd0c672fSmrg# Identity of this package.
562fd0c672fSmrgPACKAGE_NAME='xload'
563fd0c672fSmrgPACKAGE_TARNAME='xload'
56448e69166SmrgPACKAGE_VERSION='1.1.0'
56548e69166SmrgPACKAGE_STRING='xload 1.1.0'
566fd0c672fSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
56748e69166SmrgPACKAGE_URL=''
568fd0c672fSmrg
56948e69166Smrg# Factoring default headers for most tests.
57048e69166Smrgac_includes_default="\
57148e69166Smrg#include <stdio.h>
57248e69166Smrg#ifdef HAVE_SYS_TYPES_H
57348e69166Smrg# include <sys/types.h>
57448e69166Smrg#endif
57548e69166Smrg#ifdef HAVE_SYS_STAT_H
57648e69166Smrg# include <sys/stat.h>
57748e69166Smrg#endif
57848e69166Smrg#ifdef STDC_HEADERS
57948e69166Smrg# include <stdlib.h>
58048e69166Smrg# include <stddef.h>
58148e69166Smrg#else
58248e69166Smrg# ifdef HAVE_STDLIB_H
58348e69166Smrg#  include <stdlib.h>
58448e69166Smrg# endif
58548e69166Smrg#endif
58648e69166Smrg#ifdef HAVE_STRING_H
58748e69166Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
58848e69166Smrg#  include <memory.h>
58948e69166Smrg# endif
59048e69166Smrg# include <string.h>
59148e69166Smrg#endif
59248e69166Smrg#ifdef HAVE_STRINGS_H
59348e69166Smrg# include <strings.h>
59448e69166Smrg#endif
59548e69166Smrg#ifdef HAVE_INTTYPES_H
59648e69166Smrg# include <inttypes.h>
59748e69166Smrg#endif
59848e69166Smrg#ifdef HAVE_STDINT_H
59948e69166Smrg# include <stdint.h>
60048e69166Smrg#endif
60148e69166Smrg#ifdef HAVE_UNISTD_H
60248e69166Smrg# include <unistd.h>
60348e69166Smrg#endif"
60448e69166Smrg
60548e69166Smrgac_subst_vars='am__EXEEXT_FALSE
60648e69166Smrgam__EXEEXT_TRUE
60748e69166SmrgLTLIBOBJS
60848e69166SmrgLIBOBJS
60948e69166Smrgappdefaultdir
61048e69166SmrgAPPDEFS_LIBS
61148e69166SmrgAPPDEFS_CFLAGS
61248e69166SmrgXLOAD_LIBS
61348e69166SmrgXLOAD_CFLAGS
61448e69166SmrgUSE_GETTEXT_FALSE
61548e69166SmrgUSE_GETTEXT_TRUE
61648e69166SmrgLOCALEDIR
61748e69166SmrgAM_BACKSLASH
61848e69166SmrgAM_DEFAULT_VERBOSITY
61948e69166SmrgMAN_SUBSTS
62048e69166SmrgXORG_MAN_PAGE
62148e69166SmrgADMIN_MAN_DIR
62248e69166SmrgDRIVER_MAN_DIR
62348e69166SmrgMISC_MAN_DIR
62448e69166SmrgFILE_MAN_DIR
62548e69166SmrgLIB_MAN_DIR
62648e69166SmrgAPP_MAN_DIR
62748e69166SmrgADMIN_MAN_SUFFIX
62848e69166SmrgDRIVER_MAN_SUFFIX
62948e69166SmrgMISC_MAN_SUFFIX
63048e69166SmrgFILE_MAN_SUFFIX
63148e69166SmrgLIB_MAN_SUFFIX
63248e69166SmrgAPP_MAN_SUFFIX
63348e69166SmrgSED
63448e69166Smrghost_os
63548e69166Smrghost_vendor
63648e69166Smrghost_cpu
63748e69166Smrghost
63848e69166Smrgbuild_os
63948e69166Smrgbuild_vendor
64048e69166Smrgbuild_cpu
64148e69166Smrgbuild
64248e69166SmrgINSTALL_CMD
64348e69166SmrgPKG_CONFIG
64448e69166SmrgCHANGELOG_CMD
64548e69166SmrgCWARNFLAGS
64648e69166SmrgEGREP
64748e69166SmrgGREP
64848e69166SmrgCPP
64948e69166Smrgam__fastdepCC_FALSE
65048e69166Smrgam__fastdepCC_TRUE
65148e69166SmrgCCDEPMODE
65248e69166SmrgAMDEPBACKSLASH
65348e69166SmrgAMDEP_FALSE
65448e69166SmrgAMDEP_TRUE
65548e69166Smrgam__quote
65648e69166Smrgam__include
65748e69166SmrgDEPDIR
65848e69166SmrgOBJEXT
65948e69166SmrgEXEEXT
66048e69166Smrgac_ct_CC
66148e69166SmrgCPPFLAGS
66248e69166SmrgLDFLAGS
66348e69166SmrgCFLAGS
66448e69166SmrgCC
66548e69166SmrgMAINT
66648e69166SmrgMAINTAINER_MODE_FALSE
66748e69166SmrgMAINTAINER_MODE_TRUE
66848e69166Smrgam__untar
66948e69166Smrgam__tar
67048e69166SmrgAMTAR
67148e69166Smrgam__leading_dot
67248e69166SmrgSET_MAKE
67348e69166SmrgAWK
67448e69166Smrgmkdir_p
67548e69166SmrgMKDIR_P
67648e69166SmrgINSTALL_STRIP_PROGRAM
67748e69166SmrgSTRIP
67848e69166Smrginstall_sh
67948e69166SmrgMAKEINFO
68048e69166SmrgAUTOHEADER
68148e69166SmrgAUTOMAKE
68248e69166SmrgAUTOCONF
68348e69166SmrgACLOCAL
68448e69166SmrgVERSION
68548e69166SmrgPACKAGE
68648e69166SmrgCYGPATH_W
68748e69166Smrgam__isrc
68848e69166SmrgINSTALL_DATA
68948e69166SmrgINSTALL_SCRIPT
69048e69166SmrgINSTALL_PROGRAM
69148e69166Smrgtarget_alias
69248e69166Smrghost_alias
69348e69166Smrgbuild_alias
69448e69166SmrgLIBS
69548e69166SmrgECHO_T
69648e69166SmrgECHO_N
69748e69166SmrgECHO_C
69848e69166SmrgDEFS
69948e69166Smrgmandir
70048e69166Smrglocaledir
70148e69166Smrglibdir
70248e69166Smrgpsdir
70348e69166Smrgpdfdir
70448e69166Smrgdvidir
70548e69166Smrghtmldir
70648e69166Smrginfodir
70748e69166Smrgdocdir
70848e69166Smrgoldincludedir
70948e69166Smrgincludedir
71048e69166Smrglocalstatedir
71148e69166Smrgsharedstatedir
71248e69166Smrgsysconfdir
71348e69166Smrgdatadir
71448e69166Smrgdatarootdir
71548e69166Smrglibexecdir
71648e69166Smrgsbindir
71748e69166Smrgbindir
71848e69166Smrgprogram_transform_name
71948e69166Smrgprefix
72048e69166Smrgexec_prefix
72148e69166SmrgPACKAGE_URL
72248e69166SmrgPACKAGE_BUGREPORT
72348e69166SmrgPACKAGE_STRING
72448e69166SmrgPACKAGE_VERSION
72548e69166SmrgPACKAGE_TARNAME
72648e69166SmrgPACKAGE_NAME
72748e69166SmrgPATH_SEPARATOR
72848e69166SmrgSHELL'
729fd0c672fSmrgac_subst_files=''
73048e69166Smrgac_user_opts='
73148e69166Smrgenable_option_checking
73248e69166Smrgenable_maintainer_mode
73348e69166Smrgenable_dependency_tracking
73448e69166Smrgenable_strict_compilation
73548e69166Smrgenable_silent_rules
73648e69166Smrgwith_localedir
73748e69166Smrgwith_appdefaultdir
73848e69166Smrg'
73948e69166Smrg      ac_precious_vars='build_alias
74048e69166Smrghost_alias
74148e69166Smrgtarget_alias
74248e69166SmrgCC
74348e69166SmrgCFLAGS
74448e69166SmrgLDFLAGS
74548e69166SmrgLIBS
74648e69166SmrgCPPFLAGS
74748e69166SmrgCPP
74848e69166SmrgPKG_CONFIG
74948e69166SmrgXLOAD_CFLAGS
75048e69166SmrgXLOAD_LIBS
75148e69166SmrgAPPDEFS_CFLAGS
75248e69166SmrgAPPDEFS_LIBS'
75348e69166Smrg
754fd0c672fSmrg
755fd0c672fSmrg# Initialize some variables set by options.
756fd0c672fSmrgac_init_help=
757fd0c672fSmrgac_init_version=false
75848e69166Smrgac_unrecognized_opts=
75948e69166Smrgac_unrecognized_sep=
760fd0c672fSmrg# The variables have the same names as the options, with
761fd0c672fSmrg# dashes changed to underlines.
762fd0c672fSmrgcache_file=/dev/null
763fd0c672fSmrgexec_prefix=NONE
764fd0c672fSmrgno_create=
765fd0c672fSmrgno_recursion=
766fd0c672fSmrgprefix=NONE
767fd0c672fSmrgprogram_prefix=NONE
768fd0c672fSmrgprogram_suffix=NONE
769fd0c672fSmrgprogram_transform_name=s,x,x,
770fd0c672fSmrgsilent=
771fd0c672fSmrgsite=
772fd0c672fSmrgsrcdir=
773fd0c672fSmrgverbose=
774fd0c672fSmrgx_includes=NONE
775fd0c672fSmrgx_libraries=NONE
776fd0c672fSmrg
777fd0c672fSmrg# Installation directory options.
778fd0c672fSmrg# These are left unexpanded so users can "make install exec_prefix=/foo"
779fd0c672fSmrg# and all the variables that are supposed to be based on exec_prefix
780fd0c672fSmrg# by default will actually change.
781fd0c672fSmrg# Use braces instead of parens because sh, perl, etc. also accept them.
78248e69166Smrg# (The list follows the same order as the GNU Coding Standards.)
783fd0c672fSmrgbindir='${exec_prefix}/bin'
784fd0c672fSmrgsbindir='${exec_prefix}/sbin'
785fd0c672fSmrglibexecdir='${exec_prefix}/libexec'
78648e69166Smrgdatarootdir='${prefix}/share'
78748e69166Smrgdatadir='${datarootdir}'
788fd0c672fSmrgsysconfdir='${prefix}/etc'
789fd0c672fSmrgsharedstatedir='${prefix}/com'
790fd0c672fSmrglocalstatedir='${prefix}/var'
791fd0c672fSmrgincludedir='${prefix}/include'
792fd0c672fSmrgoldincludedir='/usr/include'
79348e69166Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
79448e69166Smrginfodir='${datarootdir}/info'
79548e69166Smrghtmldir='${docdir}'
79648e69166Smrgdvidir='${docdir}'
79748e69166Smrgpdfdir='${docdir}'
79848e69166Smrgpsdir='${docdir}'
79948e69166Smrglibdir='${exec_prefix}/lib'
80048e69166Smrglocaledir='${datarootdir}/locale'
80148e69166Smrgmandir='${datarootdir}/man'
802fd0c672fSmrg
803fd0c672fSmrgac_prev=
80448e69166Smrgac_dashdash=
805fd0c672fSmrgfor ac_option
806fd0c672fSmrgdo
807fd0c672fSmrg  # If the previous option needs an argument, assign it.
808fd0c672fSmrg  if test -n "$ac_prev"; then
80948e69166Smrg    eval $ac_prev=\$ac_option
810fd0c672fSmrg    ac_prev=
811fd0c672fSmrg    continue
812fd0c672fSmrg  fi
813fd0c672fSmrg
81448e69166Smrg  case $ac_option in
81548e69166Smrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
81648e69166Smrg  *=)   ac_optarg= ;;
81748e69166Smrg  *)    ac_optarg=yes ;;
81848e69166Smrg  esac
819fd0c672fSmrg
820fd0c672fSmrg  # Accept the important Cygnus configure options, so we can diagnose typos.
821fd0c672fSmrg
82248e69166Smrg  case $ac_dashdash$ac_option in
82348e69166Smrg  --)
82448e69166Smrg    ac_dashdash=yes ;;
825fd0c672fSmrg
826fd0c672fSmrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
827fd0c672fSmrg    ac_prev=bindir ;;
828fd0c672fSmrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
829fd0c672fSmrg    bindir=$ac_optarg ;;
830fd0c672fSmrg
831fd0c672fSmrg  -build | --build | --buil | --bui | --bu)
832fd0c672fSmrg    ac_prev=build_alias ;;
833fd0c672fSmrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
834fd0c672fSmrg    build_alias=$ac_optarg ;;
835fd0c672fSmrg
836fd0c672fSmrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
837fd0c672fSmrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
838fd0c672fSmrg    ac_prev=cache_file ;;
839fd0c672fSmrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
840fd0c672fSmrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
841fd0c672fSmrg    cache_file=$ac_optarg ;;
842fd0c672fSmrg
843fd0c672fSmrg  --config-cache | -C)
844fd0c672fSmrg    cache_file=config.cache ;;
845fd0c672fSmrg
84648e69166Smrg  -datadir | --datadir | --datadi | --datad)
847fd0c672fSmrg    ac_prev=datadir ;;
84848e69166Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
849fd0c672fSmrg    datadir=$ac_optarg ;;
850fd0c672fSmrg
85148e69166Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
85248e69166Smrg  | --dataroo | --dataro | --datar)
85348e69166Smrg    ac_prev=datarootdir ;;
85448e69166Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
85548e69166Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
85648e69166Smrg    datarootdir=$ac_optarg ;;
85748e69166Smrg
858fd0c672fSmrg  -disable-* | --disable-*)
85948e69166Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
860fd0c672fSmrg    # Reject names that are not valid shell variable names.
86148e69166Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
86248e69166Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
86348e69166Smrg    ac_useropt_orig=$ac_useropt
86448e69166Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
86548e69166Smrg    case $ac_user_opts in
86648e69166Smrg      *"
86748e69166Smrg"enable_$ac_useropt"
86848e69166Smrg"*) ;;
86948e69166Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
87048e69166Smrg	 ac_unrecognized_sep=', ';;
87148e69166Smrg    esac
87248e69166Smrg    eval enable_$ac_useropt=no ;;
87348e69166Smrg
87448e69166Smrg  -docdir | --docdir | --docdi | --doc | --do)
87548e69166Smrg    ac_prev=docdir ;;
87648e69166Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
87748e69166Smrg    docdir=$ac_optarg ;;
87848e69166Smrg
87948e69166Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
88048e69166Smrg    ac_prev=dvidir ;;
88148e69166Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
88248e69166Smrg    dvidir=$ac_optarg ;;
883fd0c672fSmrg
884fd0c672fSmrg  -enable-* | --enable-*)
88548e69166Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
886fd0c672fSmrg    # Reject names that are not valid shell variable names.
88748e69166Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
88848e69166Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
88948e69166Smrg    ac_useropt_orig=$ac_useropt
89048e69166Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
89148e69166Smrg    case $ac_user_opts in
89248e69166Smrg      *"
89348e69166Smrg"enable_$ac_useropt"
89448e69166Smrg"*) ;;
89548e69166Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
89648e69166Smrg	 ac_unrecognized_sep=', ';;
897fd0c672fSmrg    esac
89848e69166Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
899fd0c672fSmrg
900fd0c672fSmrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
901fd0c672fSmrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
902fd0c672fSmrg  | --exec | --exe | --ex)
903fd0c672fSmrg    ac_prev=exec_prefix ;;
904fd0c672fSmrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
905fd0c672fSmrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
906fd0c672fSmrg  | --exec=* | --exe=* | --ex=*)
907fd0c672fSmrg    exec_prefix=$ac_optarg ;;
908fd0c672fSmrg
909fd0c672fSmrg  -gas | --gas | --ga | --g)
910fd0c672fSmrg    # Obsolete; use --with-gas.
911fd0c672fSmrg    with_gas=yes ;;
912fd0c672fSmrg
913fd0c672fSmrg  -help | --help | --hel | --he | -h)
914fd0c672fSmrg    ac_init_help=long ;;
915fd0c672fSmrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
916fd0c672fSmrg    ac_init_help=recursive ;;
917fd0c672fSmrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
918fd0c672fSmrg    ac_init_help=short ;;
919fd0c672fSmrg
920fd0c672fSmrg  -host | --host | --hos | --ho)
921fd0c672fSmrg    ac_prev=host_alias ;;
922fd0c672fSmrg  -host=* | --host=* | --hos=* | --ho=*)
923fd0c672fSmrg    host_alias=$ac_optarg ;;
924fd0c672fSmrg
92548e69166Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
92648e69166Smrg    ac_prev=htmldir ;;
92748e69166Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
92848e69166Smrg  | --ht=*)
92948e69166Smrg    htmldir=$ac_optarg ;;
93048e69166Smrg
931fd0c672fSmrg  -includedir | --includedir | --includedi | --included | --include \
932fd0c672fSmrg  | --includ | --inclu | --incl | --inc)
933fd0c672fSmrg    ac_prev=includedir ;;
934fd0c672fSmrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
935fd0c672fSmrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
936fd0c672fSmrg    includedir=$ac_optarg ;;
937fd0c672fSmrg
938fd0c672fSmrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
939fd0c672fSmrg    ac_prev=infodir ;;
940fd0c672fSmrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
941fd0c672fSmrg    infodir=$ac_optarg ;;
942fd0c672fSmrg
943fd0c672fSmrg  -libdir | --libdir | --libdi | --libd)
944fd0c672fSmrg    ac_prev=libdir ;;
945fd0c672fSmrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
946fd0c672fSmrg    libdir=$ac_optarg ;;
947fd0c672fSmrg
948fd0c672fSmrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
949fd0c672fSmrg  | --libexe | --libex | --libe)
950fd0c672fSmrg    ac_prev=libexecdir ;;
951fd0c672fSmrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
952fd0c672fSmrg  | --libexe=* | --libex=* | --libe=*)
953fd0c672fSmrg    libexecdir=$ac_optarg ;;
954fd0c672fSmrg
95548e69166Smrg  -localedir | --localedir | --localedi | --localed | --locale)
95648e69166Smrg    ac_prev=localedir ;;
95748e69166Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
95848e69166Smrg    localedir=$ac_optarg ;;
95948e69166Smrg
960fd0c672fSmrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
96148e69166Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
962fd0c672fSmrg    ac_prev=localstatedir ;;
963fd0c672fSmrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
96448e69166Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
965fd0c672fSmrg    localstatedir=$ac_optarg ;;
966fd0c672fSmrg
967fd0c672fSmrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
968fd0c672fSmrg    ac_prev=mandir ;;
969fd0c672fSmrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
970fd0c672fSmrg    mandir=$ac_optarg ;;
971fd0c672fSmrg
972fd0c672fSmrg  -nfp | --nfp | --nf)
973fd0c672fSmrg    # Obsolete; use --without-fp.
974fd0c672fSmrg    with_fp=no ;;
975fd0c672fSmrg
976fd0c672fSmrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
977fd0c672fSmrg  | --no-cr | --no-c | -n)
978fd0c672fSmrg    no_create=yes ;;
979fd0c672fSmrg
980fd0c672fSmrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
981fd0c672fSmrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
982fd0c672fSmrg    no_recursion=yes ;;
983fd0c672fSmrg
984fd0c672fSmrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
985fd0c672fSmrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
986fd0c672fSmrg  | --oldin | --oldi | --old | --ol | --o)
987fd0c672fSmrg    ac_prev=oldincludedir ;;
988fd0c672fSmrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
989fd0c672fSmrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
990fd0c672fSmrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
991fd0c672fSmrg    oldincludedir=$ac_optarg ;;
992fd0c672fSmrg
993fd0c672fSmrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
994fd0c672fSmrg    ac_prev=prefix ;;
995fd0c672fSmrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
996fd0c672fSmrg    prefix=$ac_optarg ;;
997fd0c672fSmrg
998fd0c672fSmrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
999fd0c672fSmrg  | --program-pre | --program-pr | --program-p)
1000fd0c672fSmrg    ac_prev=program_prefix ;;
1001fd0c672fSmrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1002fd0c672fSmrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1003fd0c672fSmrg    program_prefix=$ac_optarg ;;
1004fd0c672fSmrg
1005fd0c672fSmrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1006fd0c672fSmrg  | --program-suf | --program-su | --program-s)
1007fd0c672fSmrg    ac_prev=program_suffix ;;
1008fd0c672fSmrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1009fd0c672fSmrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1010fd0c672fSmrg    program_suffix=$ac_optarg ;;
1011fd0c672fSmrg
1012fd0c672fSmrg  -program-transform-name | --program-transform-name \
1013fd0c672fSmrg  | --program-transform-nam | --program-transform-na \
1014fd0c672fSmrg  | --program-transform-n | --program-transform- \
1015fd0c672fSmrg  | --program-transform | --program-transfor \
1016fd0c672fSmrg  | --program-transfo | --program-transf \
1017fd0c672fSmrg  | --program-trans | --program-tran \
1018fd0c672fSmrg  | --progr-tra | --program-tr | --program-t)
1019fd0c672fSmrg    ac_prev=program_transform_name ;;
1020fd0c672fSmrg  -program-transform-name=* | --program-transform-name=* \
1021fd0c672fSmrg  | --program-transform-nam=* | --program-transform-na=* \
1022fd0c672fSmrg  | --program-transform-n=* | --program-transform-=* \
1023fd0c672fSmrg  | --program-transform=* | --program-transfor=* \
1024fd0c672fSmrg  | --program-transfo=* | --program-transf=* \
1025fd0c672fSmrg  | --program-trans=* | --program-tran=* \
1026fd0c672fSmrg  | --progr-tra=* | --program-tr=* | --program-t=*)
1027fd0c672fSmrg    program_transform_name=$ac_optarg ;;
1028fd0c672fSmrg
102948e69166Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
103048e69166Smrg    ac_prev=pdfdir ;;
103148e69166Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
103248e69166Smrg    pdfdir=$ac_optarg ;;
103348e69166Smrg
103448e69166Smrg  -psdir | --psdir | --psdi | --psd | --ps)
103548e69166Smrg    ac_prev=psdir ;;
103648e69166Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
103748e69166Smrg    psdir=$ac_optarg ;;
103848e69166Smrg
1039fd0c672fSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1040fd0c672fSmrg  | -silent | --silent | --silen | --sile | --sil)
1041fd0c672fSmrg    silent=yes ;;
1042fd0c672fSmrg
1043fd0c672fSmrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1044fd0c672fSmrg    ac_prev=sbindir ;;
1045fd0c672fSmrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1046fd0c672fSmrg  | --sbi=* | --sb=*)
1047fd0c672fSmrg    sbindir=$ac_optarg ;;
1048fd0c672fSmrg
1049fd0c672fSmrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1050fd0c672fSmrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1051fd0c672fSmrg  | --sharedst | --shareds | --shared | --share | --shar \
1052fd0c672fSmrg  | --sha | --sh)
1053fd0c672fSmrg    ac_prev=sharedstatedir ;;
1054fd0c672fSmrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1055fd0c672fSmrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1056fd0c672fSmrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1057fd0c672fSmrg  | --sha=* | --sh=*)
1058fd0c672fSmrg    sharedstatedir=$ac_optarg ;;
1059fd0c672fSmrg
1060fd0c672fSmrg  -site | --site | --sit)
1061fd0c672fSmrg    ac_prev=site ;;
1062fd0c672fSmrg  -site=* | --site=* | --sit=*)
1063fd0c672fSmrg    site=$ac_optarg ;;
1064fd0c672fSmrg
1065fd0c672fSmrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1066fd0c672fSmrg    ac_prev=srcdir ;;
1067fd0c672fSmrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1068fd0c672fSmrg    srcdir=$ac_optarg ;;
1069fd0c672fSmrg
1070fd0c672fSmrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1071fd0c672fSmrg  | --syscon | --sysco | --sysc | --sys | --sy)
1072fd0c672fSmrg    ac_prev=sysconfdir ;;
1073fd0c672fSmrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1074fd0c672fSmrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1075fd0c672fSmrg    sysconfdir=$ac_optarg ;;
1076fd0c672fSmrg
1077fd0c672fSmrg  -target | --target | --targe | --targ | --tar | --ta | --t)
1078fd0c672fSmrg    ac_prev=target_alias ;;
1079fd0c672fSmrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1080fd0c672fSmrg    target_alias=$ac_optarg ;;
1081fd0c672fSmrg
1082fd0c672fSmrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1083fd0c672fSmrg    verbose=yes ;;
1084fd0c672fSmrg
1085fd0c672fSmrg  -version | --version | --versio | --versi | --vers | -V)
1086fd0c672fSmrg    ac_init_version=: ;;
1087fd0c672fSmrg
1088fd0c672fSmrg  -with-* | --with-*)
108948e69166Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1090fd0c672fSmrg    # Reject names that are not valid shell variable names.
109148e69166Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
109248e69166Smrg      as_fn_error $? "invalid package name: $ac_useropt"
109348e69166Smrg    ac_useropt_orig=$ac_useropt
109448e69166Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
109548e69166Smrg    case $ac_user_opts in
109648e69166Smrg      *"
109748e69166Smrg"with_$ac_useropt"
109848e69166Smrg"*) ;;
109948e69166Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
110048e69166Smrg	 ac_unrecognized_sep=', ';;
1101fd0c672fSmrg    esac
110248e69166Smrg    eval with_$ac_useropt=\$ac_optarg ;;
1103fd0c672fSmrg
1104fd0c672fSmrg  -without-* | --without-*)
110548e69166Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1106fd0c672fSmrg    # Reject names that are not valid shell variable names.
110748e69166Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
110848e69166Smrg      as_fn_error $? "invalid package name: $ac_useropt"
110948e69166Smrg    ac_useropt_orig=$ac_useropt
111048e69166Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
111148e69166Smrg    case $ac_user_opts in
111248e69166Smrg      *"
111348e69166Smrg"with_$ac_useropt"
111448e69166Smrg"*) ;;
111548e69166Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
111648e69166Smrg	 ac_unrecognized_sep=', ';;
111748e69166Smrg    esac
111848e69166Smrg    eval with_$ac_useropt=no ;;
1119fd0c672fSmrg
1120fd0c672fSmrg  --x)
1121fd0c672fSmrg    # Obsolete; use --with-x.
1122fd0c672fSmrg    with_x=yes ;;
1123fd0c672fSmrg
1124fd0c672fSmrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1125fd0c672fSmrg  | --x-incl | --x-inc | --x-in | --x-i)
1126fd0c672fSmrg    ac_prev=x_includes ;;
1127fd0c672fSmrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1128fd0c672fSmrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1129fd0c672fSmrg    x_includes=$ac_optarg ;;
1130fd0c672fSmrg
1131fd0c672fSmrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1132fd0c672fSmrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1133fd0c672fSmrg    ac_prev=x_libraries ;;
1134fd0c672fSmrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1135fd0c672fSmrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1136fd0c672fSmrg    x_libraries=$ac_optarg ;;
1137fd0c672fSmrg
113848e69166Smrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
113948e69166SmrgTry \`$0 --help' for more information"
1140fd0c672fSmrg    ;;
1141fd0c672fSmrg
1142fd0c672fSmrg  *=*)
1143fd0c672fSmrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1144fd0c672fSmrg    # Reject names that are not valid shell variable names.
114548e69166Smrg    case $ac_envvar in #(
114648e69166Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
114748e69166Smrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
114848e69166Smrg    esac
114948e69166Smrg    eval $ac_envvar=\$ac_optarg
1150fd0c672fSmrg    export $ac_envvar ;;
1151fd0c672fSmrg
1152fd0c672fSmrg  *)
1153fd0c672fSmrg    # FIXME: should be removed in autoconf 3.0.
115448e69166Smrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1155fd0c672fSmrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
115648e69166Smrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
115748e69166Smrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1158fd0c672fSmrg    ;;
1159fd0c672fSmrg
1160fd0c672fSmrg  esac
1161fd0c672fSmrgdone
1162fd0c672fSmrg
1163fd0c672fSmrgif test -n "$ac_prev"; then
1164fd0c672fSmrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
116548e69166Smrg  as_fn_error $? "missing argument to $ac_option"
1166fd0c672fSmrgfi
1167fd0c672fSmrg
116848e69166Smrgif test -n "$ac_unrecognized_opts"; then
116948e69166Smrg  case $enable_option_checking in
117048e69166Smrg    no) ;;
117148e69166Smrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
117248e69166Smrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1173fd0c672fSmrg  esac
117448e69166Smrgfi
1175fd0c672fSmrg
117648e69166Smrg# Check all directory arguments for consistency.
117748e69166Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
117848e69166Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
117948e69166Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
118048e69166Smrg		libdir localedir mandir
1181fd0c672fSmrgdo
118248e69166Smrg  eval ac_val=\$$ac_var
118348e69166Smrg  # Remove trailing slashes.
118448e69166Smrg  case $ac_val in
118548e69166Smrg    */ )
118648e69166Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
118748e69166Smrg      eval $ac_var=\$ac_val;;
118848e69166Smrg  esac
118948e69166Smrg  # Be sure to have absolute directory names.
1190fd0c672fSmrg  case $ac_val in
119148e69166Smrg    [\\/$]* | ?:[\\/]* )  continue;;
119248e69166Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1193fd0c672fSmrg  esac
119448e69166Smrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1195fd0c672fSmrgdone
1196fd0c672fSmrg
1197fd0c672fSmrg# There might be people who depend on the old broken behavior: `$host'
1198fd0c672fSmrg# used to hold the argument of --host etc.
1199fd0c672fSmrg# FIXME: To remove some day.
1200fd0c672fSmrgbuild=$build_alias
1201fd0c672fSmrghost=$host_alias
1202fd0c672fSmrgtarget=$target_alias
1203fd0c672fSmrg
1204fd0c672fSmrg# FIXME: To remove some day.
1205fd0c672fSmrgif test "x$host_alias" != x; then
1206fd0c672fSmrg  if test "x$build_alias" = x; then
1207fd0c672fSmrg    cross_compiling=maybe
120848e69166Smrg    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
120948e69166Smrg    If a cross compiler is detected then cross compile mode will be used" >&2
1210fd0c672fSmrg  elif test "x$build_alias" != "x$host_alias"; then
1211fd0c672fSmrg    cross_compiling=yes
1212fd0c672fSmrg  fi
1213fd0c672fSmrgfi
1214fd0c672fSmrg
1215fd0c672fSmrgac_tool_prefix=
1216fd0c672fSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
1217fd0c672fSmrg
1218fd0c672fSmrgtest "$silent" = yes && exec 6>/dev/null
1219fd0c672fSmrg
1220fd0c672fSmrg
122148e69166Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
122248e69166Smrgac_ls_di=`ls -di .` &&
122348e69166Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
122448e69166Smrg  as_fn_error $? "working directory cannot be determined"
122548e69166Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
122648e69166Smrg  as_fn_error $? "pwd does not report name of working directory"
122748e69166Smrg
122848e69166Smrg
1229fd0c672fSmrg# Find the source files, if location was not specified.
1230fd0c672fSmrgif test -z "$srcdir"; then
1231fd0c672fSmrg  ac_srcdir_defaulted=yes
123248e69166Smrg  # Try the directory containing this script, then the parent directory.
123348e69166Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
123448e69166Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
123548e69166Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
123648e69166Smrg	 X"$as_myself" : 'X\(//\)$' \| \
123748e69166Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
123848e69166Smrg$as_echo X"$as_myself" |
123948e69166Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
124048e69166Smrg	    s//\1/
124148e69166Smrg	    q
124248e69166Smrg	  }
124348e69166Smrg	  /^X\(\/\/\)[^/].*/{
124448e69166Smrg	    s//\1/
124548e69166Smrg	    q
124648e69166Smrg	  }
124748e69166Smrg	  /^X\(\/\/\)$/{
124848e69166Smrg	    s//\1/
124948e69166Smrg	    q
125048e69166Smrg	  }
125148e69166Smrg	  /^X\(\/\).*/{
125248e69166Smrg	    s//\1/
125348e69166Smrg	    q
125448e69166Smrg	  }
125548e69166Smrg	  s/.*/./; q'`
1256fd0c672fSmrg  srcdir=$ac_confdir
125748e69166Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
1258fd0c672fSmrg    srcdir=..
1259fd0c672fSmrg  fi
1260fd0c672fSmrgelse
1261fd0c672fSmrg  ac_srcdir_defaulted=no
1262fd0c672fSmrgfi
126348e69166Smrgif test ! -r "$srcdir/$ac_unique_file"; then
126448e69166Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
126548e69166Smrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
126648e69166Smrgfi
126748e69166Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
126848e69166Smrgac_abs_confdir=`(
126948e69166Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
127048e69166Smrg	pwd)`
127148e69166Smrg# When building in place, set srcdir=.
127248e69166Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
127348e69166Smrg  srcdir=.
127448e69166Smrgfi
127548e69166Smrg# Remove unnecessary trailing slashes from srcdir.
127648e69166Smrg# Double slashes in file names in object file debugging info
127748e69166Smrg# mess up M-x gdb in Emacs.
127848e69166Smrgcase $srcdir in
127948e69166Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
128048e69166Smrgesac
128148e69166Smrgfor ac_var in $ac_precious_vars; do
128248e69166Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
128348e69166Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
128448e69166Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
128548e69166Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
128648e69166Smrgdone
1287fd0c672fSmrg
1288fd0c672fSmrg#
1289fd0c672fSmrg# Report the --help message.
1290fd0c672fSmrg#
1291fd0c672fSmrgif test "$ac_init_help" = "long"; then
1292fd0c672fSmrg  # Omit some internal or obsolete options to make the list less imposing.
1293fd0c672fSmrg  # This message is too long to be a string in the A/UX 3.1 sh.
1294fd0c672fSmrg  cat <<_ACEOF
129548e69166Smrg\`configure' configures xload 1.1.0 to adapt to many kinds of systems.
1296fd0c672fSmrg
1297fd0c672fSmrgUsage: $0 [OPTION]... [VAR=VALUE]...
1298fd0c672fSmrg
1299fd0c672fSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1300fd0c672fSmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
1301fd0c672fSmrg
1302fd0c672fSmrgDefaults for the options are specified in brackets.
1303fd0c672fSmrg
1304fd0c672fSmrgConfiguration:
1305fd0c672fSmrg  -h, --help              display this help and exit
1306fd0c672fSmrg      --help=short        display options specific to this package
1307fd0c672fSmrg      --help=recursive    display the short help of all the included packages
1308fd0c672fSmrg  -V, --version           display version information and exit
130948e69166Smrg  -q, --quiet, --silent   do not print \`checking ...' messages
1310fd0c672fSmrg      --cache-file=FILE   cache test results in FILE [disabled]
1311fd0c672fSmrg  -C, --config-cache      alias for \`--cache-file=config.cache'
1312fd0c672fSmrg  -n, --no-create         do not create output files
1313fd0c672fSmrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1314fd0c672fSmrg
1315fd0c672fSmrgInstallation directories:
1316fd0c672fSmrg  --prefix=PREFIX         install architecture-independent files in PREFIX
131748e69166Smrg                          [$ac_default_prefix]
1318fd0c672fSmrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
131948e69166Smrg                          [PREFIX]
1320fd0c672fSmrg
1321fd0c672fSmrgBy default, \`make install' will install all the files in
1322fd0c672fSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1323fd0c672fSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324fd0c672fSmrgfor instance \`--prefix=\$HOME'.
1325fd0c672fSmrg
1326fd0c672fSmrgFor better control, use the options below.
1327fd0c672fSmrg
1328fd0c672fSmrgFine tuning of the installation directories:
132948e69166Smrg  --bindir=DIR            user executables [EPREFIX/bin]
133048e69166Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
133148e69166Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
133248e69166Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
133348e69166Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
133448e69166Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
133548e69166Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
133648e69166Smrg  --includedir=DIR        C header files [PREFIX/include]
133748e69166Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
133848e69166Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
133948e69166Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
134048e69166Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
134148e69166Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
134248e69166Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
134348e69166Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xload]
134448e69166Smrg  --htmldir=DIR           html documentation [DOCDIR]
134548e69166Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
134648e69166Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
134748e69166Smrg  --psdir=DIR             ps documentation [DOCDIR]
1348fd0c672fSmrg_ACEOF
1349fd0c672fSmrg
1350fd0c672fSmrg  cat <<\_ACEOF
1351fd0c672fSmrg
1352fd0c672fSmrgProgram names:
1353fd0c672fSmrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
1354fd0c672fSmrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
1355fd0c672fSmrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1356fd0c672fSmrg
1357fd0c672fSmrgSystem types:
1358fd0c672fSmrg  --build=BUILD     configure for building on BUILD [guessed]
1359fd0c672fSmrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1360fd0c672fSmrg_ACEOF
1361fd0c672fSmrgfi
1362fd0c672fSmrg
1363fd0c672fSmrgif test -n "$ac_init_help"; then
1364fd0c672fSmrg  case $ac_init_help in
136548e69166Smrg     short | recursive ) echo "Configuration of xload 1.1.0:";;
1366fd0c672fSmrg   esac
1367fd0c672fSmrg  cat <<\_ACEOF
1368fd0c672fSmrg
1369fd0c672fSmrgOptional Features:
137048e69166Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
1371fd0c672fSmrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1372fd0c672fSmrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1373fd0c672fSmrg  --enable-maintainer-mode  enable make rules and dependencies not useful
1374fd0c672fSmrg			  (and sometimes confusing) to the casual installer
1375fd0c672fSmrg  --disable-dependency-tracking  speeds up one-time build
1376fd0c672fSmrg  --enable-dependency-tracking   do not reject slow dependency extractors
137748e69166Smrg  --enable-strict-compilation
137848e69166Smrg                          Enable all warnings from compiler and make them
137948e69166Smrg                          errors (default: disabled)
138048e69166Smrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
138148e69166Smrg  --disable-silent-rules         verbose build output (undo: `make V=0')
1382fd0c672fSmrg
1383fd0c672fSmrgOptional Packages:
1384fd0c672fSmrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1385fd0c672fSmrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
138648e69166Smrg  --with-localedir=<path> Path to install message files in (default:
138748e69166Smrg                          datadir/locale)
138848e69166Smrg  --with-appdefaultdir=<pathname>
138948e69166Smrg                          specify directory for app-defaults files (default is
139048e69166Smrg                          autodetected)
1391fd0c672fSmrg
1392fd0c672fSmrgSome influential environment variables:
1393fd0c672fSmrg  CC          C compiler command
1394fd0c672fSmrg  CFLAGS      C compiler flags
1395fd0c672fSmrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1396fd0c672fSmrg              nonstandard directory <lib dir>
139748e69166Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
139848e69166Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
139948e69166Smrg              you have headers in a nonstandard directory <include dir>
140048e69166Smrg  CPP         C preprocessor
1401fd0c672fSmrg  PKG_CONFIG  path to pkg-config utility
140248e69166Smrg  XLOAD_CFLAGS
140348e69166Smrg              C compiler flags for XLOAD, overriding pkg-config
140448e69166Smrg  XLOAD_LIBS  linker flags for XLOAD, overriding pkg-config
1405fd0c672fSmrg  APPDEFS_CFLAGS
1406fd0c672fSmrg              C compiler flags for APPDEFS, overriding pkg-config
1407fd0c672fSmrg  APPDEFS_LIBS
1408fd0c672fSmrg              linker flags for APPDEFS, overriding pkg-config
1409fd0c672fSmrg
1410fd0c672fSmrgUse these variables to override the choices made by `configure' or to help
1411fd0c672fSmrgit to find libraries and programs with nonstandard names/locations.
1412fd0c672fSmrg
1413fd0c672fSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1414fd0c672fSmrg_ACEOF
141548e69166Smrgac_status=$?
1416fd0c672fSmrgfi
1417fd0c672fSmrg
1418fd0c672fSmrgif test "$ac_init_help" = "recursive"; then
1419fd0c672fSmrg  # If there are subdirs, report their specific --help.
1420fd0c672fSmrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
142148e69166Smrg    test -d "$ac_dir" ||
142248e69166Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
142348e69166Smrg      continue
1424fd0c672fSmrg    ac_builddir=.
1425fd0c672fSmrg
142648e69166Smrgcase "$ac_dir" in
142748e69166Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
142848e69166Smrg*)
142948e69166Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
143048e69166Smrg  # A ".." for each directory in $ac_dir_suffix.
143148e69166Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
143248e69166Smrg  case $ac_top_builddir_sub in
143348e69166Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
143448e69166Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
143548e69166Smrg  esac ;;
143648e69166Smrgesac
143748e69166Smrgac_abs_top_builddir=$ac_pwd
143848e69166Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
143948e69166Smrg# for backward compatibility:
144048e69166Smrgac_top_builddir=$ac_top_build_prefix
1441fd0c672fSmrg
1442fd0c672fSmrgcase $srcdir in
144348e69166Smrg  .)  # We are building in place.
1444fd0c672fSmrg    ac_srcdir=.
144548e69166Smrg    ac_top_srcdir=$ac_top_builddir_sub
144648e69166Smrg    ac_abs_top_srcdir=$ac_pwd ;;
144748e69166Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1448fd0c672fSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
144948e69166Smrg    ac_top_srcdir=$srcdir
145048e69166Smrg    ac_abs_top_srcdir=$srcdir ;;
145148e69166Smrg  *) # Relative name.
145248e69166Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
145348e69166Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
145448e69166Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1455fd0c672fSmrgesac
145648e69166Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
145748e69166Smrg
145848e69166Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
145948e69166Smrg    # Check for guested configure.
146048e69166Smrg    if test -f "$ac_srcdir/configure.gnu"; then
146148e69166Smrg      echo &&
146248e69166Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
146348e69166Smrg    elif test -f "$ac_srcdir/configure"; then
146448e69166Smrg      echo &&
146548e69166Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
1466fd0c672fSmrg    else
146748e69166Smrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
146848e69166Smrg    fi || ac_status=$?
146948e69166Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
1470fd0c672fSmrg  done
1471fd0c672fSmrgfi
1472fd0c672fSmrg
147348e69166Smrgtest -n "$ac_init_help" && exit $ac_status
1474fd0c672fSmrgif $ac_init_version; then
1475fd0c672fSmrg  cat <<\_ACEOF
147648e69166Smrgxload configure 1.1.0
147748e69166Smrggenerated by GNU Autoconf 2.68
1478fd0c672fSmrg
147948e69166SmrgCopyright (C) 2010 Free Software Foundation, Inc.
1480fd0c672fSmrgThis configure script is free software; the Free Software Foundation
1481fd0c672fSmrggives unlimited permission to copy, distribute and modify it.
1482fd0c672fSmrg_ACEOF
148348e69166Smrg  exit
1484fd0c672fSmrgfi
1485fd0c672fSmrg
148648e69166Smrg## ------------------------ ##
148748e69166Smrg## Autoconf initialization. ##
148848e69166Smrg## ------------------------ ##
1489fd0c672fSmrg
149048e69166Smrg# ac_fn_c_try_compile LINENO
149148e69166Smrg# --------------------------
149248e69166Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
149348e69166Smrgac_fn_c_try_compile ()
1494fd0c672fSmrg{
149548e69166Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
149648e69166Smrg  rm -f conftest.$ac_objext
149748e69166Smrg  if { { ac_try="$ac_compile"
149848e69166Smrgcase "(($ac_try" in
149948e69166Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
150048e69166Smrg  *) ac_try_echo=$ac_try;;
150148e69166Smrgesac
150248e69166Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
150348e69166Smrg$as_echo "$ac_try_echo"; } >&5
150448e69166Smrg  (eval "$ac_compile") 2>conftest.err
150548e69166Smrg  ac_status=$?
150648e69166Smrg  if test -s conftest.err; then
150748e69166Smrg    grep -v '^ *+' conftest.err >conftest.er1
150848e69166Smrg    cat conftest.er1 >&5
150948e69166Smrg    mv -f conftest.er1 conftest.err
151048e69166Smrg  fi
151148e69166Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
151248e69166Smrg  test $ac_status = 0; } && {
151348e69166Smrg	 test -z "$ac_c_werror_flag" ||
151448e69166Smrg	 test ! -s conftest.err
151548e69166Smrg       } && test -s conftest.$ac_objext; then :
151648e69166Smrg  ac_retval=0
151748e69166Smrgelse
151848e69166Smrg  $as_echo "$as_me: failed program was:" >&5
151948e69166Smrgsed 's/^/| /' conftest.$ac_ext >&5
1520fd0c672fSmrg
152148e69166Smrg	ac_retval=1
152248e69166Smrgfi
152348e69166Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
152448e69166Smrg  as_fn_set_status $ac_retval
1525fd0c672fSmrg
152648e69166Smrg} # ac_fn_c_try_compile
1527fd0c672fSmrg
152848e69166Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
152948e69166Smrg# ---------------------------------------------
153048e69166Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
153148e69166Smrg# accordingly.
153248e69166Smrgac_fn_c_check_decl ()
153348e69166Smrg{
153448e69166Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
153548e69166Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
153648e69166Smrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
153748e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
153848e69166Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
153948e69166Smrgif eval \${$3+:} false; then :
154048e69166Smrg  $as_echo_n "(cached) " >&6
154148e69166Smrgelse
154248e69166Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
154348e69166Smrg/* end confdefs.h.  */
154448e69166Smrg$4
154548e69166Smrgint
154648e69166Smrgmain ()
154748e69166Smrg{
154848e69166Smrg#ifndef $as_decl_name
154948e69166Smrg#ifdef __cplusplus
155048e69166Smrg  (void) $as_decl_use;
155148e69166Smrg#else
155248e69166Smrg  (void) $as_decl_name;
155348e69166Smrg#endif
155448e69166Smrg#endif
1555fd0c672fSmrg
155648e69166Smrg  ;
155748e69166Smrg  return 0;
155848e69166Smrg}
155948e69166Smrg_ACEOF
156048e69166Smrgif ac_fn_c_try_compile "$LINENO"; then :
156148e69166Smrg  eval "$3=yes"
156248e69166Smrgelse
156348e69166Smrg  eval "$3=no"
156448e69166Smrgfi
156548e69166Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
156648e69166Smrgfi
156748e69166Smrgeval ac_res=\$$3
156848e69166Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
156948e69166Smrg$as_echo "$ac_res" >&6; }
157048e69166Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
157148e69166Smrg
157248e69166Smrg} # ac_fn_c_check_decl
157348e69166Smrg
157448e69166Smrg# ac_fn_c_try_cpp LINENO
157548e69166Smrg# ----------------------
157648e69166Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
157748e69166Smrgac_fn_c_try_cpp ()
157848e69166Smrg{
157948e69166Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
158048e69166Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
158148e69166Smrgcase "(($ac_try" in
158248e69166Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
158348e69166Smrg  *) ac_try_echo=$ac_try;;
158448e69166Smrgesac
158548e69166Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
158648e69166Smrg$as_echo "$ac_try_echo"; } >&5
158748e69166Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
158848e69166Smrg  ac_status=$?
158948e69166Smrg  if test -s conftest.err; then
159048e69166Smrg    grep -v '^ *+' conftest.err >conftest.er1
159148e69166Smrg    cat conftest.er1 >&5
159248e69166Smrg    mv -f conftest.er1 conftest.err
159348e69166Smrg  fi
159448e69166Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
159548e69166Smrg  test $ac_status = 0; } > conftest.i && {
159648e69166Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
159748e69166Smrg	 test ! -s conftest.err
159848e69166Smrg       }; then :
159948e69166Smrg  ac_retval=0
160048e69166Smrgelse
160148e69166Smrg  $as_echo "$as_me: failed program was:" >&5
160248e69166Smrgsed 's/^/| /' conftest.$ac_ext >&5
160348e69166Smrg
160448e69166Smrg    ac_retval=1
160548e69166Smrgfi
160648e69166Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
160748e69166Smrg  as_fn_set_status $ac_retval
160848e69166Smrg
160948e69166Smrg} # ac_fn_c_try_cpp
161048e69166Smrg
161148e69166Smrg# ac_fn_c_try_run LINENO
161248e69166Smrg# ----------------------
161348e69166Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
161448e69166Smrg# that executables *can* be run.
161548e69166Smrgac_fn_c_try_run ()
161648e69166Smrg{
161748e69166Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
161848e69166Smrg  if { { ac_try="$ac_link"
161948e69166Smrgcase "(($ac_try" in
162048e69166Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
162148e69166Smrg  *) ac_try_echo=$ac_try;;
162248e69166Smrgesac
162348e69166Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
162448e69166Smrg$as_echo "$ac_try_echo"; } >&5
162548e69166Smrg  (eval "$ac_link") 2>&5
162648e69166Smrg  ac_status=$?
162748e69166Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
162848e69166Smrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
162948e69166Smrg  { { case "(($ac_try" in
163048e69166Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
163148e69166Smrg  *) ac_try_echo=$ac_try;;
163248e69166Smrgesac
163348e69166Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
163448e69166Smrg$as_echo "$ac_try_echo"; } >&5
163548e69166Smrg  (eval "$ac_try") 2>&5
163648e69166Smrg  ac_status=$?
163748e69166Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
163848e69166Smrg  test $ac_status = 0; }; }; then :
163948e69166Smrg  ac_retval=0
164048e69166Smrgelse
164148e69166Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
164248e69166Smrg       $as_echo "$as_me: failed program was:" >&5
164348e69166Smrgsed 's/^/| /' conftest.$ac_ext >&5
164448e69166Smrg
164548e69166Smrg       ac_retval=$ac_status
164648e69166Smrgfi
164748e69166Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
164848e69166Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
164948e69166Smrg  as_fn_set_status $ac_retval
165048e69166Smrg
165148e69166Smrg} # ac_fn_c_try_run
165248e69166Smrg
165348e69166Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
165448e69166Smrg# -------------------------------------------------------
165548e69166Smrg# Tests whether HEADER exists and can be compiled using the include files in
165648e69166Smrg# INCLUDES, setting the cache variable VAR accordingly.
165748e69166Smrgac_fn_c_check_header_compile ()
165848e69166Smrg{
165948e69166Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
166048e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
166148e69166Smrg$as_echo_n "checking for $2... " >&6; }
166248e69166Smrgif eval \${$3+:} false; then :
166348e69166Smrg  $as_echo_n "(cached) " >&6
166448e69166Smrgelse
166548e69166Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
166648e69166Smrg/* end confdefs.h.  */
166748e69166Smrg$4
166848e69166Smrg#include <$2>
166948e69166Smrg_ACEOF
167048e69166Smrgif ac_fn_c_try_compile "$LINENO"; then :
167148e69166Smrg  eval "$3=yes"
167248e69166Smrgelse
167348e69166Smrg  eval "$3=no"
167448e69166Smrgfi
167548e69166Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
167648e69166Smrgfi
167748e69166Smrgeval ac_res=\$$3
167848e69166Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
167948e69166Smrg$as_echo "$ac_res" >&6; }
168048e69166Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
168148e69166Smrg
168248e69166Smrg} # ac_fn_c_check_header_compile
168348e69166Smrg
168448e69166Smrg# ac_fn_c_try_link LINENO
168548e69166Smrg# -----------------------
168648e69166Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
168748e69166Smrgac_fn_c_try_link ()
168848e69166Smrg{
168948e69166Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
169048e69166Smrg  rm -f conftest.$ac_objext conftest$ac_exeext
169148e69166Smrg  if { { ac_try="$ac_link"
169248e69166Smrgcase "(($ac_try" in
169348e69166Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
169448e69166Smrg  *) ac_try_echo=$ac_try;;
169548e69166Smrgesac
169648e69166Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
169748e69166Smrg$as_echo "$ac_try_echo"; } >&5
169848e69166Smrg  (eval "$ac_link") 2>conftest.err
169948e69166Smrg  ac_status=$?
170048e69166Smrg  if test -s conftest.err; then
170148e69166Smrg    grep -v '^ *+' conftest.err >conftest.er1
170248e69166Smrg    cat conftest.er1 >&5
170348e69166Smrg    mv -f conftest.er1 conftest.err
170448e69166Smrg  fi
170548e69166Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
170648e69166Smrg  test $ac_status = 0; } && {
170748e69166Smrg	 test -z "$ac_c_werror_flag" ||
170848e69166Smrg	 test ! -s conftest.err
170948e69166Smrg       } && test -s conftest$ac_exeext && {
171048e69166Smrg	 test "$cross_compiling" = yes ||
171148e69166Smrg	 $as_test_x conftest$ac_exeext
171248e69166Smrg       }; then :
171348e69166Smrg  ac_retval=0
171448e69166Smrgelse
171548e69166Smrg  $as_echo "$as_me: failed program was:" >&5
171648e69166Smrgsed 's/^/| /' conftest.$ac_ext >&5
171748e69166Smrg
171848e69166Smrg	ac_retval=1
171948e69166Smrgfi
172048e69166Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
172148e69166Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
172248e69166Smrg  # interfere with the next link command; also delete a directory that is
172348e69166Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
172448e69166Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
172548e69166Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
172648e69166Smrg  as_fn_set_status $ac_retval
172748e69166Smrg
172848e69166Smrg} # ac_fn_c_try_link
172948e69166Smrgcat >config.log <<_ACEOF
173048e69166SmrgThis file contains any messages produced by compilers while
173148e69166Smrgrunning configure, to aid debugging if configure makes a mistake.
173248e69166Smrg
173348e69166SmrgIt was created by xload $as_me 1.1.0, which was
173448e69166Smrggenerated by GNU Autoconf 2.68.  Invocation command line was
173548e69166Smrg
173648e69166Smrg  $ $0 $@
173748e69166Smrg
173848e69166Smrg_ACEOF
173948e69166Smrgexec 5>>config.log
174048e69166Smrg{
174148e69166Smrgcat <<_ASUNAME
174248e69166Smrg## --------- ##
174348e69166Smrg## Platform. ##
174448e69166Smrg## --------- ##
174548e69166Smrg
174648e69166Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
174748e69166Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
174848e69166Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
174948e69166Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
175048e69166Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
175148e69166Smrg
175248e69166Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
175348e69166Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
175448e69166Smrg
175548e69166Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
175648e69166Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
175748e69166Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
175848e69166Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
175948e69166Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
176048e69166Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
176148e69166Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
176248e69166Smrg
176348e69166Smrg_ASUNAME
1764fd0c672fSmrg
1765fd0c672fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1766fd0c672fSmrgfor as_dir in $PATH
1767fd0c672fSmrgdo
1768fd0c672fSmrg  IFS=$as_save_IFS
1769fd0c672fSmrg  test -z "$as_dir" && as_dir=.
177048e69166Smrg    $as_echo "PATH: $as_dir"
177148e69166Smrg  done
177248e69166SmrgIFS=$as_save_IFS
1773fd0c672fSmrg
1774fd0c672fSmrg} >&5
1775fd0c672fSmrg
1776fd0c672fSmrgcat >&5 <<_ACEOF
1777fd0c672fSmrg
1778fd0c672fSmrg
1779fd0c672fSmrg## ----------- ##
1780fd0c672fSmrg## Core tests. ##
1781fd0c672fSmrg## ----------- ##
1782fd0c672fSmrg
1783fd0c672fSmrg_ACEOF
1784fd0c672fSmrg
1785fd0c672fSmrg
1786fd0c672fSmrg# Keep a trace of the command line.
1787fd0c672fSmrg# Strip out --no-create and --no-recursion so they do not pile up.
1788fd0c672fSmrg# Strip out --silent because we don't want to record it for future runs.
1789fd0c672fSmrg# Also quote any args containing shell meta-characters.
1790fd0c672fSmrg# Make two passes to allow for proper duplicate-argument suppression.
1791fd0c672fSmrgac_configure_args=
1792fd0c672fSmrgac_configure_args0=
1793fd0c672fSmrgac_configure_args1=
1794fd0c672fSmrgac_must_keep_next=false
1795fd0c672fSmrgfor ac_pass in 1 2
1796fd0c672fSmrgdo
1797fd0c672fSmrg  for ac_arg
1798fd0c672fSmrg  do
1799fd0c672fSmrg    case $ac_arg in
1800fd0c672fSmrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1801fd0c672fSmrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1802fd0c672fSmrg    | -silent | --silent | --silen | --sile | --sil)
1803fd0c672fSmrg      continue ;;
180448e69166Smrg    *\'*)
180548e69166Smrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1806fd0c672fSmrg    esac
1807fd0c672fSmrg    case $ac_pass in
180848e69166Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1809fd0c672fSmrg    2)
181048e69166Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
1811fd0c672fSmrg      if test $ac_must_keep_next = true; then
1812fd0c672fSmrg	ac_must_keep_next=false # Got value, back to normal.
1813fd0c672fSmrg      else
1814fd0c672fSmrg	case $ac_arg in
1815fd0c672fSmrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
1816fd0c672fSmrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1817fd0c672fSmrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1818fd0c672fSmrg	  | -with-* | --with-* | -without-* | --without-* | --x)
1819fd0c672fSmrg	    case "$ac_configure_args0 " in
1820fd0c672fSmrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1821fd0c672fSmrg	    esac
1822fd0c672fSmrg	    ;;
1823fd0c672fSmrg	  -* ) ac_must_keep_next=true ;;
1824fd0c672fSmrg	esac
1825fd0c672fSmrg      fi
182648e69166Smrg      as_fn_append ac_configure_args " '$ac_arg'"
1827fd0c672fSmrg      ;;
1828fd0c672fSmrg    esac
1829fd0c672fSmrg  done
1830fd0c672fSmrgdone
183148e69166Smrg{ ac_configure_args0=; unset ac_configure_args0;}
183248e69166Smrg{ ac_configure_args1=; unset ac_configure_args1;}
1833fd0c672fSmrg
1834fd0c672fSmrg# When interrupted or exit'd, cleanup temporary files, and complete
1835fd0c672fSmrg# config.log.  We remove comments because anyway the quotes in there
1836fd0c672fSmrg# would cause problems or look ugly.
183748e69166Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
183848e69166Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1839fd0c672fSmrgtrap 'exit_status=$?
1840fd0c672fSmrg  # Save into config.log some information that might help in debugging.
1841fd0c672fSmrg  {
1842fd0c672fSmrg    echo
1843fd0c672fSmrg
184448e69166Smrg    $as_echo "## ---------------- ##
1845fd0c672fSmrg## Cache variables. ##
184648e69166Smrg## ---------------- ##"
1847fd0c672fSmrg    echo
1848fd0c672fSmrg    # The following way of writing the cache mishandles newlines in values,
184948e69166Smrg(
185048e69166Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
185148e69166Smrg    eval ac_val=\$$ac_var
185248e69166Smrg    case $ac_val in #(
185348e69166Smrg    *${as_nl}*)
185448e69166Smrg      case $ac_var in #(
185548e69166Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
185648e69166Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
185748e69166Smrg      esac
185848e69166Smrg      case $ac_var in #(
185948e69166Smrg      _ | IFS | as_nl) ;; #(
186048e69166Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
186148e69166Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
186248e69166Smrg      esac ;;
186348e69166Smrg    esac
186448e69166Smrg  done
1865fd0c672fSmrg  (set) 2>&1 |
186648e69166Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
186748e69166Smrg    *${as_nl}ac_space=\ *)
1868fd0c672fSmrg      sed -n \
186948e69166Smrg	"s/'\''/'\''\\\\'\'''\''/g;
187048e69166Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
187148e69166Smrg      ;; #(
1872fd0c672fSmrg    *)
187348e69166Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1874fd0c672fSmrg      ;;
187548e69166Smrg    esac |
187648e69166Smrg    sort
187748e69166Smrg)
1878fd0c672fSmrg    echo
1879fd0c672fSmrg
188048e69166Smrg    $as_echo "## ----------------- ##
1881fd0c672fSmrg## Output variables. ##
188248e69166Smrg## ----------------- ##"
1883fd0c672fSmrg    echo
1884fd0c672fSmrg    for ac_var in $ac_subst_vars
1885fd0c672fSmrg    do
188648e69166Smrg      eval ac_val=\$$ac_var
188748e69166Smrg      case $ac_val in
188848e69166Smrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
188948e69166Smrg      esac
189048e69166Smrg      $as_echo "$ac_var='\''$ac_val'\''"
1891fd0c672fSmrg    done | sort
1892fd0c672fSmrg    echo
1893fd0c672fSmrg
1894fd0c672fSmrg    if test -n "$ac_subst_files"; then
189548e69166Smrg      $as_echo "## ------------------- ##
189648e69166Smrg## File substitutions. ##
189748e69166Smrg## ------------------- ##"
1898fd0c672fSmrg      echo
1899fd0c672fSmrg      for ac_var in $ac_subst_files
1900fd0c672fSmrg      do
190148e69166Smrg	eval ac_val=\$$ac_var
190248e69166Smrg	case $ac_val in
190348e69166Smrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
190448e69166Smrg	esac
190548e69166Smrg	$as_echo "$ac_var='\''$ac_val'\''"
1906fd0c672fSmrg      done | sort
1907fd0c672fSmrg      echo
1908fd0c672fSmrg    fi
1909fd0c672fSmrg
1910fd0c672fSmrg    if test -s confdefs.h; then
191148e69166Smrg      $as_echo "## ----------- ##
1912fd0c672fSmrg## confdefs.h. ##
191348e69166Smrg## ----------- ##"
1914fd0c672fSmrg      echo
191548e69166Smrg      cat confdefs.h
1916fd0c672fSmrg      echo
1917fd0c672fSmrg    fi
1918fd0c672fSmrg    test "$ac_signal" != 0 &&
191948e69166Smrg      $as_echo "$as_me: caught signal $ac_signal"
192048e69166Smrg    $as_echo "$as_me: exit $exit_status"
1921fd0c672fSmrg  } >&5
192248e69166Smrg  rm -f core *.core core.conftest.* &&
192348e69166Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1924fd0c672fSmrg    exit $exit_status
192548e69166Smrg' 0
1926fd0c672fSmrgfor ac_signal in 1 2 13 15; do
192748e69166Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1928fd0c672fSmrgdone
1929fd0c672fSmrgac_signal=0
1930fd0c672fSmrg
1931fd0c672fSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
193248e69166Smrgrm -f -r conftest* confdefs.h
193348e69166Smrg
193448e69166Smrg$as_echo "/* confdefs.h */" > confdefs.h
1935fd0c672fSmrg
1936fd0c672fSmrg# Predefined preprocessor variables.
1937fd0c672fSmrg
1938fd0c672fSmrgcat >>confdefs.h <<_ACEOF
1939fd0c672fSmrg#define PACKAGE_NAME "$PACKAGE_NAME"
1940fd0c672fSmrg_ACEOF
1941fd0c672fSmrg
1942fd0c672fSmrgcat >>confdefs.h <<_ACEOF
1943fd0c672fSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1944fd0c672fSmrg_ACEOF
1945fd0c672fSmrg
1946fd0c672fSmrgcat >>confdefs.h <<_ACEOF
1947fd0c672fSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
1948fd0c672fSmrg_ACEOF
1949fd0c672fSmrg
1950fd0c672fSmrgcat >>confdefs.h <<_ACEOF
1951fd0c672fSmrg#define PACKAGE_STRING "$PACKAGE_STRING"
1952fd0c672fSmrg_ACEOF
1953fd0c672fSmrg
1954fd0c672fSmrgcat >>confdefs.h <<_ACEOF
1955fd0c672fSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1956fd0c672fSmrg_ACEOF
1957fd0c672fSmrg
195848e69166Smrgcat >>confdefs.h <<_ACEOF
195948e69166Smrg#define PACKAGE_URL "$PACKAGE_URL"
196048e69166Smrg_ACEOF
196148e69166Smrg
1962fd0c672fSmrg
1963fd0c672fSmrg# Let the site file select an alternate cache file if it wants to.
196448e69166Smrg# Prefer an explicitly selected file to automatically selected ones.
196548e69166Smrgac_site_file1=NONE
196648e69166Smrgac_site_file2=NONE
196748e69166Smrgif test -n "$CONFIG_SITE"; then
196848e69166Smrg  # We do not want a PATH search for config.site.
196948e69166Smrg  case $CONFIG_SITE in #((
197048e69166Smrg    -*)  ac_site_file1=./$CONFIG_SITE;;
197148e69166Smrg    */*) ac_site_file1=$CONFIG_SITE;;
197248e69166Smrg    *)   ac_site_file1=./$CONFIG_SITE;;
197348e69166Smrg  esac
197448e69166Smrgelif test "x$prefix" != xNONE; then
197548e69166Smrg  ac_site_file1=$prefix/share/config.site
197648e69166Smrg  ac_site_file2=$prefix/etc/config.site
197748e69166Smrgelse
197848e69166Smrg  ac_site_file1=$ac_default_prefix/share/config.site
197948e69166Smrg  ac_site_file2=$ac_default_prefix/etc/config.site
1980fd0c672fSmrgfi
198148e69166Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
198248e69166Smrgdo
198348e69166Smrg  test "x$ac_site_file" = xNONE && continue
198448e69166Smrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
198548e69166Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
198648e69166Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1987fd0c672fSmrg    sed 's/^/| /' "$ac_site_file" >&5
198848e69166Smrg    . "$ac_site_file" \
198948e69166Smrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
199048e69166Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
199148e69166Smrgas_fn_error $? "failed to load site script $ac_site_file
199248e69166SmrgSee \`config.log' for more details" "$LINENO" 5; }
1993fd0c672fSmrg  fi
1994fd0c672fSmrgdone
1995fd0c672fSmrg
1996fd0c672fSmrgif test -r "$cache_file"; then
199748e69166Smrg  # Some versions of bash will fail to source /dev/null (special files
199848e69166Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
199948e69166Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
200048e69166Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
200148e69166Smrg$as_echo "$as_me: loading cache $cache_file" >&6;}
2002fd0c672fSmrg    case $cache_file in
200348e69166Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
200448e69166Smrg      *)                      . "./$cache_file";;
2005fd0c672fSmrg    esac
2006fd0c672fSmrg  fi
2007fd0c672fSmrgelse
200848e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
200948e69166Smrg$as_echo "$as_me: creating cache $cache_file" >&6;}
2010fd0c672fSmrg  >$cache_file
2011fd0c672fSmrgfi
2012fd0c672fSmrg
2013fd0c672fSmrg# Check that the precious variables saved in the cache have kept the same
2014fd0c672fSmrg# value.
2015fd0c672fSmrgac_cache_corrupted=false
201648e69166Smrgfor ac_var in $ac_precious_vars; do
2017fd0c672fSmrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2018fd0c672fSmrg  eval ac_new_set=\$ac_env_${ac_var}_set
201948e69166Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
202048e69166Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
2021fd0c672fSmrg  case $ac_old_set,$ac_new_set in
2022fd0c672fSmrg    set,)
202348e69166Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
202448e69166Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2025fd0c672fSmrg      ac_cache_corrupted=: ;;
2026fd0c672fSmrg    ,set)
202748e69166Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
202848e69166Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2029fd0c672fSmrg      ac_cache_corrupted=: ;;
2030fd0c672fSmrg    ,);;
2031fd0c672fSmrg    *)
2032fd0c672fSmrg      if test "x$ac_old_val" != "x$ac_new_val"; then
203348e69166Smrg	# differences in whitespace do not lead to failure.
203448e69166Smrg	ac_old_val_w=`echo x $ac_old_val`
203548e69166Smrg	ac_new_val_w=`echo x $ac_new_val`
203648e69166Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
203748e69166Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
203848e69166Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
203948e69166Smrg	  ac_cache_corrupted=:
204048e69166Smrg	else
204148e69166Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
204248e69166Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
204348e69166Smrg	  eval $ac_var=\$ac_old_val
204448e69166Smrg	fi
204548e69166Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
204648e69166Smrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
204748e69166Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
204848e69166Smrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2049fd0c672fSmrg      fi;;
2050fd0c672fSmrg  esac
2051fd0c672fSmrg  # Pass precious variables to config.status.
2052fd0c672fSmrg  if test "$ac_new_set" = set; then
2053fd0c672fSmrg    case $ac_new_val in
205448e69166Smrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2055fd0c672fSmrg    *) ac_arg=$ac_var=$ac_new_val ;;
2056fd0c672fSmrg    esac
2057fd0c672fSmrg    case " $ac_configure_args " in
2058fd0c672fSmrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
205948e69166Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2060fd0c672fSmrg    esac
2061fd0c672fSmrg  fi
2062fd0c672fSmrgdone
2063fd0c672fSmrgif $ac_cache_corrupted; then
206448e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
206548e69166Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
206648e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
206748e69166Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
206848e69166Smrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2069fd0c672fSmrgfi
207048e69166Smrg## -------------------- ##
207148e69166Smrg## Main body of script. ##
207248e69166Smrg## -------------------- ##
2073fd0c672fSmrg
2074fd0c672fSmrgac_ext=c
2075fd0c672fSmrgac_cpp='$CPP $CPPFLAGS'
2076fd0c672fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2077fd0c672fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2078fd0c672fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2079fd0c672fSmrg
2080fd0c672fSmrg
2081fd0c672fSmrg
208248e69166Smrgam__api_version='1.11'
2083fd0c672fSmrg
2084fd0c672fSmrgac_aux_dir=
208548e69166Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
208648e69166Smrg  if test -f "$ac_dir/install-sh"; then
2087fd0c672fSmrg    ac_aux_dir=$ac_dir
2088fd0c672fSmrg    ac_install_sh="$ac_aux_dir/install-sh -c"
2089fd0c672fSmrg    break
209048e69166Smrg  elif test -f "$ac_dir/install.sh"; then
2091fd0c672fSmrg    ac_aux_dir=$ac_dir
2092fd0c672fSmrg    ac_install_sh="$ac_aux_dir/install.sh -c"
2093fd0c672fSmrg    break
209448e69166Smrg  elif test -f "$ac_dir/shtool"; then
2095fd0c672fSmrg    ac_aux_dir=$ac_dir
2096fd0c672fSmrg    ac_install_sh="$ac_aux_dir/shtool install -c"
2097fd0c672fSmrg    break
2098fd0c672fSmrg  fi
2099fd0c672fSmrgdone
2100fd0c672fSmrgif test -z "$ac_aux_dir"; then
210148e69166Smrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2102fd0c672fSmrgfi
210348e69166Smrg
210448e69166Smrg# These three variables are undocumented and unsupported,
210548e69166Smrg# and are intended to be withdrawn in a future Autoconf release.
210648e69166Smrg# They can cause serious problems if a builder's source tree is in a directory
210748e69166Smrg# whose full name contains unusual characters.
210848e69166Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
210948e69166Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
211048e69166Smrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
211148e69166Smrg
2112fd0c672fSmrg
2113fd0c672fSmrg# Find a good install program.  We prefer a C program (faster),
2114fd0c672fSmrg# so one script is as good as another.  But avoid the broken or
2115fd0c672fSmrg# incompatible versions:
2116fd0c672fSmrg# SysV /etc/install, /usr/sbin/install
2117fd0c672fSmrg# SunOS /usr/etc/install
2118fd0c672fSmrg# IRIX /sbin/install
2119fd0c672fSmrg# AIX /bin/install
2120fd0c672fSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs
2121fd0c672fSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2122fd0c672fSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2123fd0c672fSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2124fd0c672fSmrg# OS/2's system install, which has a completely different semantic
2125fd0c672fSmrg# ./install, which can be erroneously created by make from ./install.sh.
212648e69166Smrg# Reject install programs that cannot install multiple files.
212748e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
212848e69166Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
2129fd0c672fSmrgif test -z "$INSTALL"; then
213048e69166Smrgif ${ac_cv_path_install+:} false; then :
213148e69166Smrg  $as_echo_n "(cached) " >&6
2132fd0c672fSmrgelse
2133fd0c672fSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134fd0c672fSmrgfor as_dir in $PATH
2135fd0c672fSmrgdo
2136fd0c672fSmrg  IFS=$as_save_IFS
2137fd0c672fSmrg  test -z "$as_dir" && as_dir=.
213848e69166Smrg    # Account for people who put trailing slashes in PATH elements.
213948e69166Smrgcase $as_dir/ in #((
214048e69166Smrg  ./ | .// | /[cC]/* | \
2141fd0c672fSmrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
214248e69166Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2143fd0c672fSmrg  /usr/ucb/* ) ;;
2144fd0c672fSmrg  *)
2145fd0c672fSmrg    # OSF1 and SCO ODT 3.0 have their own names for install.
2146fd0c672fSmrg    # Don't use installbsd from OSF since it installs stuff as root
2147fd0c672fSmrg    # by default.
2148fd0c672fSmrg    for ac_prog in ginstall scoinst install; do
2149fd0c672fSmrg      for ac_exec_ext in '' $ac_executable_extensions; do
215048e69166Smrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2151fd0c672fSmrg	  if test $ac_prog = install &&
2152fd0c672fSmrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2153fd0c672fSmrg	    # AIX install.  It has an incompatible calling convention.
2154fd0c672fSmrg	    :
2155fd0c672fSmrg	  elif test $ac_prog = install &&
2156fd0c672fSmrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2157fd0c672fSmrg	    # program-specific install script used by HP pwplus--don't use.
2158fd0c672fSmrg	    :
2159fd0c672fSmrg	  else
216048e69166Smrg	    rm -rf conftest.one conftest.two conftest.dir
216148e69166Smrg	    echo one > conftest.one
216248e69166Smrg	    echo two > conftest.two
216348e69166Smrg	    mkdir conftest.dir
216448e69166Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
216548e69166Smrg	      test -s conftest.one && test -s conftest.two &&
216648e69166Smrg	      test -s conftest.dir/conftest.one &&
216748e69166Smrg	      test -s conftest.dir/conftest.two
216848e69166Smrg	    then
216948e69166Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
217048e69166Smrg	      break 3
217148e69166Smrg	    fi
2172fd0c672fSmrg	  fi
2173fd0c672fSmrg	fi
2174fd0c672fSmrg      done
2175fd0c672fSmrg    done
2176fd0c672fSmrg    ;;
2177fd0c672fSmrgesac
2178fd0c672fSmrg
217948e69166Smrg  done
218048e69166SmrgIFS=$as_save_IFS
218148e69166Smrg
218248e69166Smrgrm -rf conftest.one conftest.two conftest.dir
2183fd0c672fSmrg
2184fd0c672fSmrgfi
2185fd0c672fSmrg  if test "${ac_cv_path_install+set}" = set; then
2186fd0c672fSmrg    INSTALL=$ac_cv_path_install
2187fd0c672fSmrg  else
218848e69166Smrg    # As a last resort, use the slow shell script.  Don't cache a
218948e69166Smrg    # value for INSTALL within a source directory, because that will
2190fd0c672fSmrg    # break other packages using the cache if that directory is
219148e69166Smrg    # removed, or if the value is a relative name.
2192fd0c672fSmrg    INSTALL=$ac_install_sh
2193fd0c672fSmrg  fi
2194fd0c672fSmrgfi
219548e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
219648e69166Smrg$as_echo "$INSTALL" >&6; }
2197fd0c672fSmrg
2198fd0c672fSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2199fd0c672fSmrg# It thinks the first close brace ends the variable substitution.
2200fd0c672fSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2201fd0c672fSmrg
2202fd0c672fSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2203fd0c672fSmrg
2204fd0c672fSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2205fd0c672fSmrg
220648e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
220748e69166Smrg$as_echo_n "checking whether build environment is sane... " >&6; }
2208fd0c672fSmrg# Just in case
2209fd0c672fSmrgsleep 1
2210fd0c672fSmrgecho timestamp > conftest.file
221148e69166Smrg# Reject unsafe characters in $srcdir or the absolute working directory
221248e69166Smrg# name.  Accept space and tab only in the latter.
221348e69166Smrgam_lf='
221448e69166Smrg'
221548e69166Smrgcase `pwd` in
221648e69166Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
221748e69166Smrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
221848e69166Smrgesac
221948e69166Smrgcase $srcdir in
222048e69166Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
222148e69166Smrg    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
222248e69166Smrgesac
222348e69166Smrg
2224fd0c672fSmrg# Do `set' in a subshell so we don't clobber the current shell's
2225fd0c672fSmrg# arguments.  Must try -L first in case configure is actually a
2226fd0c672fSmrg# symlink; some systems play weird games with the mod time of symlinks
2227fd0c672fSmrg# (eg FreeBSD returns the mod time of the symlink's containing
2228fd0c672fSmrg# directory).
2229fd0c672fSmrgif (
223048e69166Smrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2231fd0c672fSmrg   if test "$*" = "X"; then
2232fd0c672fSmrg      # -L didn't work.
223348e69166Smrg      set X `ls -t "$srcdir/configure" conftest.file`
2234fd0c672fSmrg   fi
2235fd0c672fSmrg   rm -f conftest.file
2236fd0c672fSmrg   if test "$*" != "X $srcdir/configure conftest.file" \
2237fd0c672fSmrg      && test "$*" != "X conftest.file $srcdir/configure"; then
2238fd0c672fSmrg
2239fd0c672fSmrg      # If neither matched, then we have a broken ls.  This can happen
2240fd0c672fSmrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
2241fd0c672fSmrg      # broken ls alias from the environment.  This has actually
2242fd0c672fSmrg      # happened.  Such a system could not be considered "sane".
224348e69166Smrg      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
224448e69166Smrgalias in your environment" "$LINENO" 5
2245fd0c672fSmrg   fi
2246fd0c672fSmrg
2247fd0c672fSmrg   test "$2" = conftest.file
2248fd0c672fSmrg   )
2249fd0c672fSmrgthen
2250fd0c672fSmrg   # Ok.
2251fd0c672fSmrg   :
2252fd0c672fSmrgelse
225348e69166Smrg   as_fn_error $? "newly created file is older than distributed files!
225448e69166SmrgCheck your system clock" "$LINENO" 5
2255fd0c672fSmrgfi
225648e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
225748e69166Smrg$as_echo "yes" >&6; }
2258fd0c672fSmrgtest "$program_prefix" != NONE &&
225948e69166Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2260fd0c672fSmrg# Use a double $ so make ignores it.
2261fd0c672fSmrgtest "$program_suffix" != NONE &&
226248e69166Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
226348e69166Smrg# Double any \ or $.
2264fd0c672fSmrg# By default was `s,x,x', remove it if useless.
226548e69166Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
226648e69166Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2267fd0c672fSmrg
2268fd0c672fSmrg# expand $ac_aux_dir to an absolute path
2269fd0c672fSmrgam_aux_dir=`cd $ac_aux_dir && pwd`
2270fd0c672fSmrg
227148e69166Smrgif test x"${MISSING+set}" != xset; then
227248e69166Smrg  case $am_aux_dir in
227348e69166Smrg  *\ * | *\	*)
227448e69166Smrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
227548e69166Smrg  *)
227648e69166Smrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
227748e69166Smrg  esac
227848e69166Smrgfi
2279fd0c672fSmrg# Use eval to expand $SHELL
2280fd0c672fSmrgif eval "$MISSING --run true"; then
2281fd0c672fSmrg  am_missing_run="$MISSING --run "
2282fd0c672fSmrgelse
2283fd0c672fSmrg  am_missing_run=
228448e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
228548e69166Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
228648e69166Smrgfi
228748e69166Smrg
228848e69166Smrgif test x"${install_sh}" != xset; then
228948e69166Smrg  case $am_aux_dir in
229048e69166Smrg  *\ * | *\	*)
229148e69166Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
229248e69166Smrg  *)
229348e69166Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
229448e69166Smrg  esac
229548e69166Smrgfi
229648e69166Smrg
229748e69166Smrg# Installed binaries are usually stripped using `strip' when the user
229848e69166Smrg# run `make install-strip'.  However `strip' might not be the right
229948e69166Smrg# tool to use in cross-compilation environments, therefore Automake
230048e69166Smrg# will honor the `STRIP' environment variable to overrule this program.
230148e69166Smrgif test "$cross_compiling" != no; then
230248e69166Smrg  if test -n "$ac_tool_prefix"; then
230348e69166Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
230448e69166Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
230548e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
230648e69166Smrg$as_echo_n "checking for $ac_word... " >&6; }
230748e69166Smrgif ${ac_cv_prog_STRIP+:} false; then :
230848e69166Smrg  $as_echo_n "(cached) " >&6
230948e69166Smrgelse
231048e69166Smrg  if test -n "$STRIP"; then
231148e69166Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
231248e69166Smrgelse
231348e69166Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
231448e69166Smrgfor as_dir in $PATH
231548e69166Smrgdo
231648e69166Smrg  IFS=$as_save_IFS
231748e69166Smrg  test -z "$as_dir" && as_dir=.
231848e69166Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
231948e69166Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
232048e69166Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
232148e69166Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
232248e69166Smrg    break 2
232348e69166Smrg  fi
232448e69166Smrgdone
232548e69166Smrg  done
232648e69166SmrgIFS=$as_save_IFS
232748e69166Smrg
232848e69166Smrgfi
232948e69166Smrgfi
233048e69166SmrgSTRIP=$ac_cv_prog_STRIP
233148e69166Smrgif test -n "$STRIP"; then
233248e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
233348e69166Smrg$as_echo "$STRIP" >&6; }
233448e69166Smrgelse
233548e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
233648e69166Smrg$as_echo "no" >&6; }
233748e69166Smrgfi
233848e69166Smrg
233948e69166Smrg
234048e69166Smrgfi
234148e69166Smrgif test -z "$ac_cv_prog_STRIP"; then
234248e69166Smrg  ac_ct_STRIP=$STRIP
234348e69166Smrg  # Extract the first word of "strip", so it can be a program name with args.
234448e69166Smrgset dummy strip; ac_word=$2
234548e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
234648e69166Smrg$as_echo_n "checking for $ac_word... " >&6; }
234748e69166Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
234848e69166Smrg  $as_echo_n "(cached) " >&6
234948e69166Smrgelse
235048e69166Smrg  if test -n "$ac_ct_STRIP"; then
235148e69166Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
235248e69166Smrgelse
235348e69166Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
235448e69166Smrgfor as_dir in $PATH
235548e69166Smrgdo
235648e69166Smrg  IFS=$as_save_IFS
235748e69166Smrg  test -z "$as_dir" && as_dir=.
235848e69166Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
235948e69166Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
236048e69166Smrg    ac_cv_prog_ac_ct_STRIP="strip"
236148e69166Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
236248e69166Smrg    break 2
236348e69166Smrg  fi
236448e69166Smrgdone
236548e69166Smrg  done
236648e69166SmrgIFS=$as_save_IFS
236748e69166Smrg
236848e69166Smrgfi
236948e69166Smrgfi
237048e69166Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
237148e69166Smrgif test -n "$ac_ct_STRIP"; then
237248e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
237348e69166Smrg$as_echo "$ac_ct_STRIP" >&6; }
237448e69166Smrgelse
237548e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
237648e69166Smrg$as_echo "no" >&6; }
237748e69166Smrgfi
237848e69166Smrg
237948e69166Smrg  if test "x$ac_ct_STRIP" = x; then
238048e69166Smrg    STRIP=":"
238148e69166Smrg  else
238248e69166Smrg    case $cross_compiling:$ac_tool_warned in
238348e69166Smrgyes:)
238448e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
238548e69166Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
238648e69166Smrgac_tool_warned=yes ;;
238748e69166Smrgesac
238848e69166Smrg    STRIP=$ac_ct_STRIP
238948e69166Smrg  fi
239048e69166Smrgelse
239148e69166Smrg  STRIP="$ac_cv_prog_STRIP"
239248e69166Smrgfi
239348e69166Smrg
239448e69166Smrgfi
239548e69166SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
239648e69166Smrg
239748e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
239848e69166Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
239948e69166Smrgif test -z "$MKDIR_P"; then
240048e69166Smrg  if ${ac_cv_path_mkdir+:} false; then :
240148e69166Smrg  $as_echo_n "(cached) " >&6
240248e69166Smrgelse
240348e69166Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
240448e69166Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
240548e69166Smrgdo
240648e69166Smrg  IFS=$as_save_IFS
240748e69166Smrg  test -z "$as_dir" && as_dir=.
240848e69166Smrg    for ac_prog in mkdir gmkdir; do
240948e69166Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
241048e69166Smrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
241148e69166Smrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
241248e69166Smrg	     'mkdir (GNU coreutils) '* | \
241348e69166Smrg	     'mkdir (coreutils) '* | \
241448e69166Smrg	     'mkdir (fileutils) '4.1*)
241548e69166Smrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
241648e69166Smrg	       break 3;;
241748e69166Smrg	   esac
241848e69166Smrg	 done
241948e69166Smrg       done
2420fd0c672fSmrg  done
242148e69166SmrgIFS=$as_save_IFS
242248e69166Smrg
242348e69166Smrgfi
242448e69166Smrg
242548e69166Smrg  test -d ./--version && rmdir ./--version
242648e69166Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
242748e69166Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
2428fd0c672fSmrg  else
242948e69166Smrg    # As a last resort, use the slow shell script.  Don't cache a
243048e69166Smrg    # value for MKDIR_P within a source directory, because that will
243148e69166Smrg    # break other packages using the cache if that directory is
243248e69166Smrg    # removed, or if the value is a relative name.
243348e69166Smrg    MKDIR_P="$ac_install_sh -d"
2434fd0c672fSmrg  fi
2435fd0c672fSmrgfi
243648e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
243748e69166Smrg$as_echo "$MKDIR_P" >&6; }
243848e69166Smrg
243948e69166Smrgmkdir_p="$MKDIR_P"
244048e69166Smrgcase $mkdir_p in
244148e69166Smrg  [\\/$]* | ?:[\\/]*) ;;
244248e69166Smrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
244348e69166Smrgesac
2444fd0c672fSmrg
2445fd0c672fSmrgfor ac_prog in gawk mawk nawk awk
2446fd0c672fSmrgdo
2447fd0c672fSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
2448fd0c672fSmrgset dummy $ac_prog; ac_word=$2
244948e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
245048e69166Smrg$as_echo_n "checking for $ac_word... " >&6; }
245148e69166Smrgif ${ac_cv_prog_AWK+:} false; then :
245248e69166Smrg  $as_echo_n "(cached) " >&6
2453fd0c672fSmrgelse
2454fd0c672fSmrg  if test -n "$AWK"; then
2455fd0c672fSmrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2456fd0c672fSmrgelse
2457fd0c672fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458fd0c672fSmrgfor as_dir in $PATH
2459fd0c672fSmrgdo
2460fd0c672fSmrg  IFS=$as_save_IFS
2461fd0c672fSmrg  test -z "$as_dir" && as_dir=.
246248e69166Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
246348e69166Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2464fd0c672fSmrg    ac_cv_prog_AWK="$ac_prog"
246548e69166Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2466fd0c672fSmrg    break 2
2467fd0c672fSmrg  fi
2468fd0c672fSmrgdone
246948e69166Smrg  done
247048e69166SmrgIFS=$as_save_IFS
2471fd0c672fSmrg
2472fd0c672fSmrgfi
2473fd0c672fSmrgfi
2474fd0c672fSmrgAWK=$ac_cv_prog_AWK
2475fd0c672fSmrgif test -n "$AWK"; then
247648e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
247748e69166Smrg$as_echo "$AWK" >&6; }
2478fd0c672fSmrgelse
247948e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
248048e69166Smrg$as_echo "no" >&6; }
2481fd0c672fSmrgfi
2482fd0c672fSmrg
248348e69166Smrg
2484fd0c672fSmrg  test -n "$AWK" && break
2485fd0c672fSmrgdone
2486fd0c672fSmrg
248748e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
248848e69166Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
248948e69166Smrgset x ${MAKE-make}
249048e69166Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
249148e69166Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
249248e69166Smrg  $as_echo_n "(cached) " >&6
2493fd0c672fSmrgelse
2494fd0c672fSmrg  cat >conftest.make <<\_ACEOF
249548e69166SmrgSHELL = /bin/sh
2496fd0c672fSmrgall:
249748e69166Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
2498fd0c672fSmrg_ACEOF
249948e69166Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
250048e69166Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
250148e69166Smrg  *@@@%%%=?*=@@@%%%*)
250248e69166Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
250348e69166Smrg  *)
250448e69166Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
250548e69166Smrgesac
2506fd0c672fSmrgrm -f conftest.make
2507fd0c672fSmrgfi
250848e69166Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
250948e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
251048e69166Smrg$as_echo "yes" >&6; }
2511fd0c672fSmrg  SET_MAKE=
2512fd0c672fSmrgelse
251348e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
251448e69166Smrg$as_echo "no" >&6; }
2515fd0c672fSmrg  SET_MAKE="MAKE=${MAKE-make}"
2516fd0c672fSmrgfi
2517fd0c672fSmrg
2518fd0c672fSmrgrm -rf .tst 2>/dev/null
2519fd0c672fSmrgmkdir .tst 2>/dev/null
2520fd0c672fSmrgif test -d .tst; then
2521fd0c672fSmrg  am__leading_dot=.
2522fd0c672fSmrgelse
2523fd0c672fSmrg  am__leading_dot=_
2524fd0c672fSmrgfi
2525fd0c672fSmrgrmdir .tst 2>/dev/null
2526fd0c672fSmrg
252748e69166Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
252848e69166Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
252948e69166Smrg  # is not polluted with repeated "-I."
253048e69166Smrg  am__isrc=' -I$(srcdir)'
253148e69166Smrg  # test to see if srcdir already configured
253248e69166Smrg  if test -f $srcdir/config.status; then
253348e69166Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
253448e69166Smrg  fi
2535fd0c672fSmrgfi
2536fd0c672fSmrg
2537fd0c672fSmrg# test whether we have cygpath
2538fd0c672fSmrgif test -z "$CYGPATH_W"; then
2539fd0c672fSmrg  if (cygpath --version) >/dev/null 2>/dev/null; then
2540fd0c672fSmrg    CYGPATH_W='cygpath -w'
2541fd0c672fSmrg  else
2542fd0c672fSmrg    CYGPATH_W=echo
2543fd0c672fSmrg  fi
2544fd0c672fSmrgfi
2545fd0c672fSmrg
2546fd0c672fSmrg
2547fd0c672fSmrg# Define the identity of the package.
2548fd0c672fSmrg PACKAGE='xload'
254948e69166Smrg VERSION='1.1.0'
2550fd0c672fSmrg
2551fd0c672fSmrg
2552fd0c672fSmrgcat >>confdefs.h <<_ACEOF
2553fd0c672fSmrg#define PACKAGE "$PACKAGE"
2554fd0c672fSmrg_ACEOF
2555fd0c672fSmrg
2556fd0c672fSmrg
2557fd0c672fSmrgcat >>confdefs.h <<_ACEOF
2558fd0c672fSmrg#define VERSION "$VERSION"
2559fd0c672fSmrg_ACEOF
2560fd0c672fSmrg
2561fd0c672fSmrg# Some tools Automake needs.
2562fd0c672fSmrg
2563fd0c672fSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2564fd0c672fSmrg
2565fd0c672fSmrg
2566fd0c672fSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2567fd0c672fSmrg
2568fd0c672fSmrg
2569fd0c672fSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2570fd0c672fSmrg
2571fd0c672fSmrg
2572fd0c672fSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2573fd0c672fSmrg
2574fd0c672fSmrg
2575fd0c672fSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2576fd0c672fSmrg
257748e69166Smrg# We need awk for the "check" target.  The system "awk" is bad on
257848e69166Smrg# some platforms.
257948e69166Smrg# Always define AMTAR for backward compatibility.
2580fd0c672fSmrg
258148e69166SmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
258248e69166Smrg
258348e69166Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
258448e69166Smrg
258548e69166Smrg
258648e69166Smrg
258748e69166Smrg
258848e69166Smrg
258948e69166Smrg
259048e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
259148e69166Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
259248e69166Smrg    # Check whether --enable-maintainer-mode was given.
259348e69166Smrgif test "${enable_maintainer_mode+set}" = set; then :
259448e69166Smrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2595fd0c672fSmrgelse
259648e69166Smrg  USE_MAINTAINER_MODE=no
2597fd0c672fSmrgfi
259848e69166Smrg
259948e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
260048e69166Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
260148e69166Smrg   if test $USE_MAINTAINER_MODE = yes; then
260248e69166Smrg  MAINTAINER_MODE_TRUE=
260348e69166Smrg  MAINTAINER_MODE_FALSE='#'
2604fd0c672fSmrgelse
260548e69166Smrg  MAINTAINER_MODE_TRUE='#'
260648e69166Smrg  MAINTAINER_MODE_FALSE=
2607fd0c672fSmrgfi
2608fd0c672fSmrg
260948e69166Smrg  MAINT=$MAINTAINER_MODE_TRUE
2610fd0c672fSmrg
2611fd0c672fSmrg
2612fd0c672fSmrg
261348e69166Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2614fd0c672fSmrg
2615fd0c672fSmrg
2616fd0c672fSmrg
2617fd0c672fSmrg
2618fd0c672fSmrg
2619fd0c672fSmrg
2620fd0c672fSmrg
2621fd0c672fSmrg
2622fd0c672fSmrg
2623fd0c672fSmrg
262448e69166Smrg
262548e69166SmrgDEPDIR="${am__leading_dot}deps"
262648e69166Smrg
262748e69166Smrgac_config_commands="$ac_config_commands depfiles"
262848e69166Smrg
262948e69166Smrg
263048e69166Smrgam_make=${MAKE-make}
263148e69166Smrgcat > confinc << 'END'
263248e69166Smrgam__doit:
263348e69166Smrg	@echo this is the am__doit target
263448e69166Smrg.PHONY: am__doit
263548e69166SmrgEND
263648e69166Smrg# If we don't find an include directive, just comment out the code.
263748e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
263848e69166Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
263948e69166Smrgam__include="#"
264048e69166Smrgam__quote=
264148e69166Smrg_am_result=none
264248e69166Smrg# First try GNU make style include.
264348e69166Smrgecho "include confinc" > confmf
264448e69166Smrg# Ignore all kinds of additional output from `make'.
264548e69166Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
264648e69166Smrg*the\ am__doit\ target*)
264748e69166Smrg  am__include=include
264848e69166Smrg  am__quote=
264948e69166Smrg  _am_result=GNU
265048e69166Smrg  ;;
265148e69166Smrgesac
265248e69166Smrg# Now try BSD make style include.
265348e69166Smrgif test "$am__include" = "#"; then
265448e69166Smrg   echo '.include "confinc"' > confmf
265548e69166Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
265648e69166Smrg   *the\ am__doit\ target*)
265748e69166Smrg     am__include=.include
265848e69166Smrg     am__quote="\""
265948e69166Smrg     _am_result=BSD
266048e69166Smrg     ;;
266148e69166Smrg   esac
2662fd0c672fSmrgfi
2663fd0c672fSmrg
2664fd0c672fSmrg
266548e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
266648e69166Smrg$as_echo "$_am_result" >&6; }
266748e69166Smrgrm -f confinc confmf
2668fd0c672fSmrg
266948e69166Smrg# Check whether --enable-dependency-tracking was given.
267048e69166Smrgif test "${enable_dependency_tracking+set}" = set; then :
267148e69166Smrg  enableval=$enable_dependency_tracking;
267248e69166Smrgfi
2673fd0c672fSmrg
267448e69166Smrgif test "x$enable_dependency_tracking" != xno; then
267548e69166Smrg  am_depcomp="$ac_aux_dir/depcomp"
267648e69166Smrg  AMDEPBACKSLASH='\'
267748e69166Smrgfi
267848e69166Smrg if test "x$enable_dependency_tracking" != xno; then
267948e69166Smrg  AMDEP_TRUE=
268048e69166Smrg  AMDEP_FALSE='#'
268148e69166Smrgelse
268248e69166Smrg  AMDEP_TRUE='#'
268348e69166Smrg  AMDEP_FALSE=
268448e69166Smrgfi
2685fd0c672fSmrg
2686fd0c672fSmrg
2687fd0c672fSmrgac_ext=c
2688fd0c672fSmrgac_cpp='$CPP $CPPFLAGS'
2689fd0c672fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2690fd0c672fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2691fd0c672fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2692fd0c672fSmrgif test -n "$ac_tool_prefix"; then
2693fd0c672fSmrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2694fd0c672fSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
269548e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
269648e69166Smrg$as_echo_n "checking for $ac_word... " >&6; }
269748e69166Smrgif ${ac_cv_prog_CC+:} false; then :
269848e69166Smrg  $as_echo_n "(cached) " >&6
2699fd0c672fSmrgelse
2700fd0c672fSmrg  if test -n "$CC"; then
2701fd0c672fSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2702fd0c672fSmrgelse
2703fd0c672fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704fd0c672fSmrgfor as_dir in $PATH
2705fd0c672fSmrgdo
2706fd0c672fSmrg  IFS=$as_save_IFS
2707fd0c672fSmrg  test -z "$as_dir" && as_dir=.
270848e69166Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
270948e69166Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2710fd0c672fSmrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
271148e69166Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2712fd0c672fSmrg    break 2
2713fd0c672fSmrg  fi
2714fd0c672fSmrgdone
271548e69166Smrg  done
271648e69166SmrgIFS=$as_save_IFS
2717fd0c672fSmrg
2718fd0c672fSmrgfi
2719fd0c672fSmrgfi
2720fd0c672fSmrgCC=$ac_cv_prog_CC
2721fd0c672fSmrgif test -n "$CC"; then
272248e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
272348e69166Smrg$as_echo "$CC" >&6; }
2724fd0c672fSmrgelse
272548e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
272648e69166Smrg$as_echo "no" >&6; }
2727fd0c672fSmrgfi
2728fd0c672fSmrg
272948e69166Smrg
2730fd0c672fSmrgfi
2731fd0c672fSmrgif test -z "$ac_cv_prog_CC"; then
2732fd0c672fSmrg  ac_ct_CC=$CC
2733fd0c672fSmrg  # Extract the first word of "gcc", so it can be a program name with args.
2734fd0c672fSmrgset dummy gcc; ac_word=$2
273548e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
273648e69166Smrg$as_echo_n "checking for $ac_word... " >&6; }
273748e69166Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
273848e69166Smrg  $as_echo_n "(cached) " >&6
2739fd0c672fSmrgelse
2740fd0c672fSmrg  if test -n "$ac_ct_CC"; then
2741fd0c672fSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2742fd0c672fSmrgelse
2743fd0c672fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744fd0c672fSmrgfor as_dir in $PATH
2745fd0c672fSmrgdo
2746fd0c672fSmrg  IFS=$as_save_IFS
2747fd0c672fSmrg  test -z "$as_dir" && as_dir=.
274848e69166Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
274948e69166Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2750fd0c672fSmrg    ac_cv_prog_ac_ct_CC="gcc"
275148e69166Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2752fd0c672fSmrg    break 2
2753fd0c672fSmrg  fi
2754fd0c672fSmrgdone
275548e69166Smrg  done
275648e69166SmrgIFS=$as_save_IFS
2757fd0c672fSmrg
2758fd0c672fSmrgfi
2759fd0c672fSmrgfi
2760fd0c672fSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2761fd0c672fSmrgif test -n "$ac_ct_CC"; then
276248e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
276348e69166Smrg$as_echo "$ac_ct_CC" >&6; }
2764fd0c672fSmrgelse
276548e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
276648e69166Smrg$as_echo "no" >&6; }
2767fd0c672fSmrgfi
2768fd0c672fSmrg
276948e69166Smrg  if test "x$ac_ct_CC" = x; then
277048e69166Smrg    CC=""
277148e69166Smrg  else
277248e69166Smrg    case $cross_compiling:$ac_tool_warned in
277348e69166Smrgyes:)
277448e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
277548e69166Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
277648e69166Smrgac_tool_warned=yes ;;
277748e69166Smrgesac
277848e69166Smrg    CC=$ac_ct_CC
277948e69166Smrg  fi
2780fd0c672fSmrgelse
2781fd0c672fSmrg  CC="$ac_cv_prog_CC"
2782fd0c672fSmrgfi
2783fd0c672fSmrg
2784fd0c672fSmrgif test -z "$CC"; then
278548e69166Smrg          if test -n "$ac_tool_prefix"; then
278648e69166Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2787fd0c672fSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2
278848e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
278948e69166Smrg$as_echo_n "checking for $ac_word... " >&6; }
279048e69166Smrgif ${ac_cv_prog_CC+:} false; then :
279148e69166Smrg  $as_echo_n "(cached) " >&6
2792fd0c672fSmrgelse
2793fd0c672fSmrg  if test -n "$CC"; then
2794fd0c672fSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2795fd0c672fSmrgelse
2796fd0c672fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797fd0c672fSmrgfor as_dir in $PATH
2798fd0c672fSmrgdo
2799fd0c672fSmrg  IFS=$as_save_IFS
2800fd0c672fSmrg  test -z "$as_dir" && as_dir=.
280148e69166Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
280248e69166Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2803fd0c672fSmrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
280448e69166Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2805fd0c672fSmrg    break 2
2806fd0c672fSmrg  fi
2807fd0c672fSmrgdone
280848e69166Smrg  done
280948e69166SmrgIFS=$as_save_IFS
2810fd0c672fSmrg
2811fd0c672fSmrgfi
2812fd0c672fSmrgfi
2813fd0c672fSmrgCC=$ac_cv_prog_CC
2814fd0c672fSmrgif test -n "$CC"; then
281548e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
281648e69166Smrg$as_echo "$CC" >&6; }
2817fd0c672fSmrgelse
281848e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
281948e69166Smrg$as_echo "no" >&6; }
2820fd0c672fSmrgfi
2821fd0c672fSmrg
2822fd0c672fSmrg
282348e69166Smrg  fi
2824fd0c672fSmrgfi
2825fd0c672fSmrgif test -z "$CC"; then
2826fd0c672fSmrg  # Extract the first word of "cc", so it can be a program name with args.
2827fd0c672fSmrgset dummy cc; ac_word=$2
282848e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
282948e69166Smrg$as_echo_n "checking for $ac_word... " >&6; }
283048e69166Smrgif ${ac_cv_prog_CC+:} false; then :
283148e69166Smrg  $as_echo_n "(cached) " >&6
2832fd0c672fSmrgelse
2833fd0c672fSmrg  if test -n "$CC"; then
2834fd0c672fSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2835fd0c672fSmrgelse
2836fd0c672fSmrg  ac_prog_rejected=no
2837fd0c672fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838fd0c672fSmrgfor as_dir in $PATH
2839fd0c672fSmrgdo
2840fd0c672fSmrg  IFS=$as_save_IFS
2841fd0c672fSmrg  test -z "$as_dir" && as_dir=.
284248e69166Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
284348e69166Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2844fd0c672fSmrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2845fd0c672fSmrg       ac_prog_rejected=yes
2846fd0c672fSmrg       continue
2847fd0c672fSmrg     fi
2848fd0c672fSmrg    ac_cv_prog_CC="cc"
284948e69166Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850fd0c672fSmrg    break 2
2851fd0c672fSmrg  fi
2852fd0c672fSmrgdone
285348e69166Smrg  done
285448e69166SmrgIFS=$as_save_IFS
2855fd0c672fSmrg
2856fd0c672fSmrgif test $ac_prog_rejected = yes; then
2857fd0c672fSmrg  # We found a bogon in the path, so make sure we never use it.
2858fd0c672fSmrg  set dummy $ac_cv_prog_CC
2859fd0c672fSmrg  shift
2860fd0c672fSmrg  if test $# != 0; then
2861fd0c672fSmrg    # We chose a different compiler from the bogus one.
2862fd0c672fSmrg    # However, it has the same basename, so the bogon will be chosen
2863fd0c672fSmrg    # first if we set CC to just the basename; use the full file name.
2864fd0c672fSmrg    shift
2865fd0c672fSmrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2866fd0c672fSmrg  fi
2867fd0c672fSmrgfi
2868fd0c672fSmrgfi
2869fd0c672fSmrgfi
2870fd0c672fSmrgCC=$ac_cv_prog_CC
2871fd0c672fSmrgif test -n "$CC"; then
287248e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
287348e69166Smrg$as_echo "$CC" >&6; }
2874fd0c672fSmrgelse
287548e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
287648e69166Smrg$as_echo "no" >&6; }
2877fd0c672fSmrgfi
2878fd0c672fSmrg
287948e69166Smrg
2880fd0c672fSmrgfi
2881fd0c672fSmrgif test -z "$CC"; then
2882fd0c672fSmrg  if test -n "$ac_tool_prefix"; then
288348e69166Smrg  for ac_prog in cl.exe
2884fd0c672fSmrg  do
2885fd0c672fSmrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2886fd0c672fSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
288748e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
288848e69166Smrg$as_echo_n "checking for $ac_word... " >&6; }
288948e69166Smrgif ${ac_cv_prog_CC+:} false; then :
289048e69166Smrg  $as_echo_n "(cached) " >&6
2891fd0c672fSmrgelse
2892fd0c672fSmrg  if test -n "$CC"; then
2893fd0c672fSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2894fd0c672fSmrgelse
2895fd0c672fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896fd0c672fSmrgfor as_dir in $PATH
2897fd0c672fSmrgdo
2898fd0c672fSmrg  IFS=$as_save_IFS
2899fd0c672fSmrg  test -z "$as_dir" && as_dir=.
290048e69166Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
290148e69166Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2902fd0c672fSmrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
290348e69166Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2904fd0c672fSmrg    break 2
2905fd0c672fSmrg  fi
2906fd0c672fSmrgdone
290748e69166Smrg  done
290848e69166SmrgIFS=$as_save_IFS
2909fd0c672fSmrg
2910fd0c672fSmrgfi
2911fd0c672fSmrgfi
2912fd0c672fSmrgCC=$ac_cv_prog_CC
2913fd0c672fSmrgif test -n "$CC"; then
291448e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
291548e69166Smrg$as_echo "$CC" >&6; }
2916fd0c672fSmrgelse
291748e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
291848e69166Smrg$as_echo "no" >&6; }
2919fd0c672fSmrgfi
2920fd0c672fSmrg
292148e69166Smrg
2922fd0c672fSmrg    test -n "$CC" && break
2923fd0c672fSmrg  done
2924fd0c672fSmrgfi
2925fd0c672fSmrgif test -z "$CC"; then
2926fd0c672fSmrg  ac_ct_CC=$CC
292748e69166Smrg  for ac_prog in cl.exe
2928fd0c672fSmrgdo
2929fd0c672fSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
2930fd0c672fSmrgset dummy $ac_prog; ac_word=$2
293148e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
293248e69166Smrg$as_echo_n "checking for $ac_word... " >&6; }
293348e69166Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
293448e69166Smrg  $as_echo_n "(cached) " >&6
2935fd0c672fSmrgelse
2936fd0c672fSmrg  if test -n "$ac_ct_CC"; then
2937fd0c672fSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2938fd0c672fSmrgelse
2939fd0c672fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940fd0c672fSmrgfor as_dir in $PATH
2941fd0c672fSmrgdo
2942fd0c672fSmrg  IFS=$as_save_IFS
2943fd0c672fSmrg  test -z "$as_dir" && as_dir=.
294448e69166Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
294548e69166Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2946fd0c672fSmrg    ac_cv_prog_ac_ct_CC="$ac_prog"
294748e69166Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948fd0c672fSmrg    break 2
2949fd0c672fSmrg  fi
2950fd0c672fSmrgdone
295148e69166Smrg  done
295248e69166SmrgIFS=$as_save_IFS
2953fd0c672fSmrg
2954fd0c672fSmrgfi
2955fd0c672fSmrgfi
2956fd0c672fSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2957fd0c672fSmrgif test -n "$ac_ct_CC"; then
295848e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
295948e69166Smrg$as_echo "$ac_ct_CC" >&6; }
2960fd0c672fSmrgelse
296148e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
296248e69166Smrg$as_echo "no" >&6; }
2963fd0c672fSmrgfi
2964fd0c672fSmrg
296548e69166Smrg
2966fd0c672fSmrg  test -n "$ac_ct_CC" && break
2967fd0c672fSmrgdone
2968fd0c672fSmrg
296948e69166Smrg  if test "x$ac_ct_CC" = x; then
297048e69166Smrg    CC=""
297148e69166Smrg  else
297248e69166Smrg    case $cross_compiling:$ac_tool_warned in
297348e69166Smrgyes:)
297448e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
297548e69166Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
297648e69166Smrgac_tool_warned=yes ;;
297748e69166Smrgesac
297848e69166Smrg    CC=$ac_ct_CC
297948e69166Smrg  fi
2980fd0c672fSmrgfi
2981fd0c672fSmrg
2982fd0c672fSmrgfi
2983fd0c672fSmrg
2984fd0c672fSmrg
298548e69166Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
298648e69166Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
298748e69166Smrgas_fn_error $? "no acceptable C compiler found in \$PATH
298848e69166SmrgSee \`config.log' for more details" "$LINENO" 5; }
2989fd0c672fSmrg
2990fd0c672fSmrg# Provide some information about the compiler.
299148e69166Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
299248e69166Smrgset X $ac_compile
299348e69166Smrgac_compiler=$2
299448e69166Smrgfor ac_option in --version -v -V -qversion; do
299548e69166Smrg  { { ac_try="$ac_compiler $ac_option >&5"
299648e69166Smrgcase "(($ac_try" in
299748e69166Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
299848e69166Smrg  *) ac_try_echo=$ac_try;;
299948e69166Smrgesac
300048e69166Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
300148e69166Smrg$as_echo "$ac_try_echo"; } >&5
300248e69166Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3003fd0c672fSmrg  ac_status=$?
300448e69166Smrg  if test -s conftest.err; then
300548e69166Smrg    sed '10a\
300648e69166Smrg... rest of stderr output deleted ...
300748e69166Smrg         10q' conftest.err >conftest.er1
300848e69166Smrg    cat conftest.er1 >&5
300948e69166Smrg  fi
301048e69166Smrg  rm -f conftest.er1 conftest.err
301148e69166Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
301248e69166Smrg  test $ac_status = 0; }
301348e69166Smrgdone
3014fd0c672fSmrg
301548e69166Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3016fd0c672fSmrg/* end confdefs.h.  */
3017fd0c672fSmrg
3018fd0c672fSmrgint
3019fd0c672fSmrgmain ()
3020fd0c672fSmrg{
3021fd0c672fSmrg
3022fd0c672fSmrg  ;
3023fd0c672fSmrg  return 0;
3024fd0c672fSmrg}
3025fd0c672fSmrg_ACEOF
3026fd0c672fSmrgac_clean_files_save=$ac_clean_files
302748e69166Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3028fd0c672fSmrg# Try to create an executable without -o first, disregard a.out.
3029fd0c672fSmrg# It will help us diagnose broken compilers, and finding out an intuition
3030fd0c672fSmrg# of exeext.
303148e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
303248e69166Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
303348e69166Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
303448e69166Smrg
303548e69166Smrg# The possible output files:
303648e69166Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
303748e69166Smrg
303848e69166Smrgac_rmfiles=
303948e69166Smrgfor ac_file in $ac_files
304048e69166Smrgdo
304148e69166Smrg  case $ac_file in
304248e69166Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
304348e69166Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
304448e69166Smrg  esac
304548e69166Smrgdone
304648e69166Smrgrm -f $ac_rmfiles
304748e69166Smrg
304848e69166Smrgif { { ac_try="$ac_link_default"
304948e69166Smrgcase "(($ac_try" in
305048e69166Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
305148e69166Smrg  *) ac_try_echo=$ac_try;;
305248e69166Smrgesac
305348e69166Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
305448e69166Smrg$as_echo "$ac_try_echo"; } >&5
305548e69166Smrg  (eval "$ac_link_default") 2>&5
3056fd0c672fSmrg  ac_status=$?
305748e69166Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
305848e69166Smrg  test $ac_status = 0; }; then :
305948e69166Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
306048e69166Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
306148e69166Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
306248e69166Smrg# so that the user can short-circuit this test for compilers unknown to
306348e69166Smrg# Autoconf.
306448e69166Smrgfor ac_file in $ac_files ''
3065fd0c672fSmrgdo
3066fd0c672fSmrg  test -f "$ac_file" || continue
3067fd0c672fSmrg  case $ac_file in
306848e69166Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3069fd0c672fSmrg	;;
3070fd0c672fSmrg    [ab].out )
3071fd0c672fSmrg	# We found the default executable, but exeext='' is most
3072fd0c672fSmrg	# certainly right.
3073fd0c672fSmrg	break;;
3074fd0c672fSmrg    *.* )
307548e69166Smrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
307648e69166Smrg	then :; else
307748e69166Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
307848e69166Smrg	fi
307948e69166Smrg	# We set ac_cv_exeext here because the later test for it is not
308048e69166Smrg	# safe: cross compilers may not add the suffix if given an `-o'
308148e69166Smrg	# argument, so we may need to know it at that point already.
308248e69166Smrg	# Even if this section looks crufty: it has the advantage of
308348e69166Smrg	# actually working.
3084fd0c672fSmrg	break;;
3085fd0c672fSmrg    * )
3086fd0c672fSmrg	break;;
3087fd0c672fSmrg  esac
3088fd0c672fSmrgdone
308948e69166Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
309048e69166Smrg
3091fd0c672fSmrgelse
309248e69166Smrg  ac_file=''
309348e69166Smrgfi
309448e69166Smrgif test -z "$ac_file"; then :
309548e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
309648e69166Smrg$as_echo "no" >&6; }
309748e69166Smrg$as_echo "$as_me: failed program was:" >&5
3098fd0c672fSmrgsed 's/^/| /' conftest.$ac_ext >&5
3099fd0c672fSmrg
310048e69166Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
310148e69166Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
310248e69166Smrgas_fn_error 77 "C compiler cannot create executables
310348e69166SmrgSee \`config.log' for more details" "$LINENO" 5; }
310448e69166Smrgelse
310548e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
310648e69166Smrg$as_echo "yes" >&6; }
3107fd0c672fSmrgfi
310848e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
310948e69166Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
311048e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
311148e69166Smrg$as_echo "$ac_file" >&6; }
3112fd0c672fSmrgac_exeext=$ac_cv_exeext
3113fd0c672fSmrg
311448e69166Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3115fd0c672fSmrgac_clean_files=$ac_clean_files_save
311648e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
311748e69166Smrg$as_echo_n "checking for suffix of executables... " >&6; }
311848e69166Smrgif { { ac_try="$ac_link"
311948e69166Smrgcase "(($ac_try" in
312048e69166Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
312148e69166Smrg  *) ac_try_echo=$ac_try;;
312248e69166Smrgesac
312348e69166Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
312448e69166Smrg$as_echo "$ac_try_echo"; } >&5
312548e69166Smrg  (eval "$ac_link") 2>&5
3126fd0c672fSmrg  ac_status=$?
312748e69166Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
312848e69166Smrg  test $ac_status = 0; }; then :
3129fd0c672fSmrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3130fd0c672fSmrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3131fd0c672fSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with
3132fd0c672fSmrg# `rm'.
3133fd0c672fSmrgfor ac_file in conftest.exe conftest conftest.*; do
3134fd0c672fSmrg  test -f "$ac_file" || continue
3135fd0c672fSmrg  case $ac_file in
313648e69166Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3137fd0c672fSmrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3138fd0c672fSmrg	  break;;
3139fd0c672fSmrg    * ) break;;
3140fd0c672fSmrg  esac
3141fd0c672fSmrgdone
3142fd0c672fSmrgelse
314348e69166Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
314448e69166Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
314548e69166Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
314648e69166SmrgSee \`config.log' for more details" "$LINENO" 5; }
3147fd0c672fSmrgfi
314848e69166Smrgrm -f conftest conftest$ac_cv_exeext
314948e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
315048e69166Smrg$as_echo "$ac_cv_exeext" >&6; }
3151fd0c672fSmrg
3152fd0c672fSmrgrm -f conftest.$ac_ext
3153fd0c672fSmrgEXEEXT=$ac_cv_exeext
3154fd0c672fSmrgac_exeext=$EXEEXT
315548e69166Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
315648e69166Smrg/* end confdefs.h.  */
315748e69166Smrg#include <stdio.h>
315848e69166Smrgint
315948e69166Smrgmain ()
316048e69166Smrg{
316148e69166SmrgFILE *f = fopen ("conftest.out", "w");
316248e69166Smrg return ferror (f) || fclose (f) != 0;
316348e69166Smrg
316448e69166Smrg  ;
316548e69166Smrg  return 0;
316648e69166Smrg}
3167fd0c672fSmrg_ACEOF
316848e69166Smrgac_clean_files="$ac_clean_files conftest.out"
316948e69166Smrg# Check that the compiler produces executables we can run.  If not, either
317048e69166Smrg# the compiler is broken, or we cross compile.
317148e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
317248e69166Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
317348e69166Smrgif test "$cross_compiling" != yes; then
317448e69166Smrg  { { ac_try="$ac_link"
317548e69166Smrgcase "(($ac_try" in
317648e69166Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
317748e69166Smrg  *) ac_try_echo=$ac_try;;
317848e69166Smrgesac
317948e69166Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
318048e69166Smrg$as_echo "$ac_try_echo"; } >&5
318148e69166Smrg  (eval "$ac_link") 2>&5
318248e69166Smrg  ac_status=$?
318348e69166Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
318448e69166Smrg  test $ac_status = 0; }
318548e69166Smrg  if { ac_try='./conftest$ac_cv_exeext'
318648e69166Smrg  { { case "(($ac_try" in
318748e69166Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
318848e69166Smrg  *) ac_try_echo=$ac_try;;
318948e69166Smrgesac
319048e69166Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
319148e69166Smrg$as_echo "$ac_try_echo"; } >&5
319248e69166Smrg  (eval "$ac_try") 2>&5
319348e69166Smrg  ac_status=$?
319448e69166Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319548e69166Smrg  test $ac_status = 0; }; }; then
319648e69166Smrg    cross_compiling=no
319748e69166Smrg  else
319848e69166Smrg    if test "$cross_compiling" = maybe; then
319948e69166Smrg	cross_compiling=yes
320048e69166Smrg    else
320148e69166Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
320248e69166Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
320348e69166Smrgas_fn_error $? "cannot run C compiled programs.
320448e69166SmrgIf you meant to cross compile, use \`--host'.
320548e69166SmrgSee \`config.log' for more details" "$LINENO" 5; }
320648e69166Smrg    fi
320748e69166Smrg  fi
320848e69166Smrgfi
320948e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
321048e69166Smrg$as_echo "$cross_compiling" >&6; }
321148e69166Smrg
321248e69166Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
321348e69166Smrgac_clean_files=$ac_clean_files_save
321448e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
321548e69166Smrg$as_echo_n "checking for suffix of object files... " >&6; }
321648e69166Smrgif ${ac_cv_objext+:} false; then :
321748e69166Smrg  $as_echo_n "(cached) " >&6
321848e69166Smrgelse
321948e69166Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3220fd0c672fSmrg/* end confdefs.h.  */
3221fd0c672fSmrg
3222fd0c672fSmrgint
3223fd0c672fSmrgmain ()
3224fd0c672fSmrg{
3225fd0c672fSmrg
3226fd0c672fSmrg  ;
3227fd0c672fSmrg  return 0;
3228fd0c672fSmrg}
3229fd0c672fSmrg_ACEOF
3230fd0c672fSmrgrm -f conftest.o conftest.obj
323148e69166Smrgif { { ac_try="$ac_compile"
323248e69166Smrgcase "(($ac_try" in
323348e69166Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
323448e69166Smrg  *) ac_try_echo=$ac_try;;
323548e69166Smrgesac
323648e69166Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
323748e69166Smrg$as_echo "$ac_try_echo"; } >&5
323848e69166Smrg  (eval "$ac_compile") 2>&5
3239fd0c672fSmrg  ac_status=$?
324048e69166Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
324148e69166Smrg  test $ac_status = 0; }; then :
324248e69166Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
324348e69166Smrg  test -f "$ac_file" || continue;
3244fd0c672fSmrg  case $ac_file in
324548e69166Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3246fd0c672fSmrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3247fd0c672fSmrg       break;;
3248fd0c672fSmrg  esac
3249fd0c672fSmrgdone
3250fd0c672fSmrgelse
325148e69166Smrg  $as_echo "$as_me: failed program was:" >&5
3252fd0c672fSmrgsed 's/^/| /' conftest.$ac_ext >&5
3253fd0c672fSmrg
325448e69166Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
325548e69166Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
325648e69166Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile
325748e69166SmrgSee \`config.log' for more details" "$LINENO" 5; }
3258fd0c672fSmrgfi
3259fd0c672fSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
3260fd0c672fSmrgfi
326148e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
326248e69166Smrg$as_echo "$ac_cv_objext" >&6; }
3263fd0c672fSmrgOBJEXT=$ac_cv_objext
3264fd0c672fSmrgac_objext=$OBJEXT
326548e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
326648e69166Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
326748e69166Smrgif ${ac_cv_c_compiler_gnu+:} false; then :
326848e69166Smrg  $as_echo_n "(cached) " >&6
3269fd0c672fSmrgelse
327048e69166Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3271fd0c672fSmrg/* end confdefs.h.  */
3272fd0c672fSmrg
3273fd0c672fSmrgint
3274fd0c672fSmrgmain ()
3275fd0c672fSmrg{
3276fd0c672fSmrg#ifndef __GNUC__
3277fd0c672fSmrg       choke me
3278fd0c672fSmrg#endif
3279fd0c672fSmrg
3280fd0c672fSmrg  ;
3281fd0c672fSmrg  return 0;
3282fd0c672fSmrg}
3283fd0c672fSmrg_ACEOF
328448e69166Smrgif ac_fn_c_try_compile "$LINENO"; then :
3285fd0c672fSmrg  ac_compiler_gnu=yes
3286fd0c672fSmrgelse
328748e69166Smrg  ac_compiler_gnu=no
3288fd0c672fSmrgfi
328948e69166Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3290fd0c672fSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu
3291fd0c672fSmrg
3292fd0c672fSmrgfi
329348e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
329448e69166Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
329548e69166Smrgif test $ac_compiler_gnu = yes; then
329648e69166Smrg  GCC=yes
329748e69166Smrgelse
329848e69166Smrg  GCC=
329948e69166Smrgfi
3300fd0c672fSmrgac_test_CFLAGS=${CFLAGS+set}
3301fd0c672fSmrgac_save_CFLAGS=$CFLAGS
330248e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
330348e69166Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
330448e69166Smrgif ${ac_cv_prog_cc_g+:} false; then :
330548e69166Smrg  $as_echo_n "(cached) " >&6
330648e69166Smrgelse
330748e69166Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
330848e69166Smrg   ac_c_werror_flag=yes
330948e69166Smrg   ac_cv_prog_cc_g=no
331048e69166Smrg   CFLAGS="-g"
331148e69166Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312fd0c672fSmrg/* end confdefs.h.  */
3313fd0c672fSmrg
3314fd0c672fSmrgint
3315fd0c672fSmrgmain ()
3316fd0c672fSmrg{
3317fd0c672fSmrg
3318fd0c672fSmrg  ;
3319fd0c672fSmrg  return 0;
3320fd0c672fSmrg}
3321fd0c672fSmrg_ACEOF
332248e69166Smrgif ac_fn_c_try_compile "$LINENO"; then :
3323fd0c672fSmrg  ac_cv_prog_cc_g=yes
3324fd0c672fSmrgelse
332548e69166Smrg  CFLAGS=""
332648e69166Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
332748e69166Smrg/* end confdefs.h.  */
332848e69166Smrg
332948e69166Smrgint
333048e69166Smrgmain ()
333148e69166Smrg{
333248e69166Smrg
333348e69166Smrg  ;
333448e69166Smrg  return 0;
333548e69166Smrg}
333648e69166Smrg_ACEOF
333748e69166Smrgif ac_fn_c_try_compile "$LINENO"; then :
333848e69166Smrg
333948e69166Smrgelse
334048e69166Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
334148e69166Smrg	 CFLAGS="-g"
334248e69166Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
334348e69166Smrg/* end confdefs.h.  */
334448e69166Smrg
334548e69166Smrgint
334648e69166Smrgmain ()
334748e69166Smrg{
3348fd0c672fSmrg
334948e69166Smrg  ;
335048e69166Smrg  return 0;
335148e69166Smrg}
335248e69166Smrg_ACEOF
335348e69166Smrgif ac_fn_c_try_compile "$LINENO"; then :
335448e69166Smrg  ac_cv_prog_cc_g=yes
3355fd0c672fSmrgfi
335648e69166Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3357fd0c672fSmrgfi
335848e69166Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
335948e69166Smrgfi
336048e69166Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
336148e69166Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
336248e69166Smrgfi
336348e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
336448e69166Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
3365fd0c672fSmrgif test "$ac_test_CFLAGS" = set; then
3366fd0c672fSmrg  CFLAGS=$ac_save_CFLAGS
3367fd0c672fSmrgelif test $ac_cv_prog_cc_g = yes; then
3368fd0c672fSmrg  if test "$GCC" = yes; then
3369fd0c672fSmrg    CFLAGS="-g -O2"
3370fd0c672fSmrg  else
3371fd0c672fSmrg    CFLAGS="-g"
3372fd0c672fSmrg  fi
3373fd0c672fSmrgelse
3374fd0c672fSmrg  if test "$GCC" = yes; then
3375fd0c672fSmrg    CFLAGS="-O2"
3376fd0c672fSmrg  else
3377fd0c672fSmrg    CFLAGS=
3378fd0c672fSmrg  fi
3379fd0c672fSmrgfi
338048e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
338148e69166Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
338248e69166Smrgif ${ac_cv_prog_cc_c89+:} false; then :
338348e69166Smrg  $as_echo_n "(cached) " >&6
3384fd0c672fSmrgelse
338548e69166Smrg  ac_cv_prog_cc_c89=no
3386fd0c672fSmrgac_save_CC=$CC
338748e69166Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388fd0c672fSmrg/* end confdefs.h.  */
3389fd0c672fSmrg#include <stdarg.h>
3390fd0c672fSmrg#include <stdio.h>
3391fd0c672fSmrg#include <sys/types.h>
3392fd0c672fSmrg#include <sys/stat.h>
3393fd0c672fSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3394fd0c672fSmrgstruct buf { int x; };
3395fd0c672fSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
3396fd0c672fSmrgstatic char *e (p, i)
3397fd0c672fSmrg     char **p;
3398fd0c672fSmrg     int i;
3399fd0c672fSmrg{
3400fd0c672fSmrg  return p[i];
3401fd0c672fSmrg}
3402fd0c672fSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
3403fd0c672fSmrg{
3404fd0c672fSmrg  char *s;
3405fd0c672fSmrg  va_list v;
3406fd0c672fSmrg  va_start (v,p);
3407fd0c672fSmrg  s = g (p, va_arg (v,int));
3408fd0c672fSmrg  va_end (v);
3409fd0c672fSmrg  return s;
3410fd0c672fSmrg}
3411fd0c672fSmrg
3412fd0c672fSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3413fd0c672fSmrg   function prototypes and stuff, but not '\xHH' hex character constants.
3414fd0c672fSmrg   These don't provoke an error unfortunately, instead are silently treated
341548e69166Smrg   as 'x'.  The following induces an error, until -std is added to get
3416fd0c672fSmrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3417fd0c672fSmrg   array size at least.  It's necessary to write '\x00'==0 to get something
341848e69166Smrg   that's true only with -std.  */
3419fd0c672fSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
3420fd0c672fSmrg
342148e69166Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
342248e69166Smrg   inside strings and character constants.  */
342348e69166Smrg#define FOO(x) 'x'
342448e69166Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
342548e69166Smrg
3426fd0c672fSmrgint test (int i, double x);
3427fd0c672fSmrgstruct s1 {int (*f) (int a);};
3428fd0c672fSmrgstruct s2 {int (*f) (double a);};
3429fd0c672fSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3430fd0c672fSmrgint argc;
3431fd0c672fSmrgchar **argv;
3432fd0c672fSmrgint
3433fd0c672fSmrgmain ()
3434fd0c672fSmrg{
3435fd0c672fSmrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3436fd0c672fSmrg  ;
3437fd0c672fSmrg  return 0;
3438fd0c672fSmrg}
3439fd0c672fSmrg_ACEOF
344048e69166Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
344148e69166Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3442fd0c672fSmrgdo
3443fd0c672fSmrg  CC="$ac_save_CC $ac_arg"
344448e69166Smrg  if ac_fn_c_try_compile "$LINENO"; then :
344548e69166Smrg  ac_cv_prog_cc_c89=$ac_arg
3446fd0c672fSmrgfi
344748e69166Smrgrm -f core conftest.err conftest.$ac_objext
344848e69166Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
3449fd0c672fSmrgdone
345048e69166Smrgrm -f conftest.$ac_ext
3451fd0c672fSmrgCC=$ac_save_CC
3452fd0c672fSmrg
3453fd0c672fSmrgfi
345448e69166Smrg# AC_CACHE_VAL
345548e69166Smrgcase "x$ac_cv_prog_cc_c89" in
345648e69166Smrg  x)
345748e69166Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
345848e69166Smrg$as_echo "none needed" >&6; } ;;
345948e69166Smrg  xno)
346048e69166Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
346148e69166Smrg$as_echo "unsupported" >&6; } ;;
3462fd0c672fSmrg  *)
346348e69166Smrg    CC="$CC $ac_cv_prog_cc_c89"
346448e69166Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
346548e69166Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3466fd0c672fSmrgesac
346748e69166Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
3468fd0c672fSmrg
3469fd0c672fSmrgfi
3470fd0c672fSmrg
3471fd0c672fSmrgac_ext=c
3472fd0c672fSmrgac_cpp='$CPP $CPPFLAGS'
3473fd0c672fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3474fd0c672fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3475fd0c672fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3476fd0c672fSmrg
3477fd0c672fSmrgdepcc="$CC"   am_compiler_list=
3478fd0c672fSmrg
347948e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
348048e69166Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
348148e69166Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
348248e69166Smrg  $as_echo_n "(cached) " >&6
3483fd0c672fSmrgelse
3484fd0c672fSmrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3485fd0c672fSmrg  # We make a subdir and do the tests there.  Otherwise we can end up
3486fd0c672fSmrg  # making bogus files that we don't know about and never remove.  For
3487fd0c672fSmrg  # instance it was reported that on HP-UX the gcc test will end up
3488fd0c672fSmrg  # making a dummy file named `D' -- because `-MD' means `put the output
3489fd0c672fSmrg  # in D'.
3490fd0c672fSmrg  mkdir conftest.dir
3491fd0c672fSmrg  # Copy depcomp to subdir because otherwise we won't find it if we're
3492fd0c672fSmrg  # using a relative directory.
3493fd0c672fSmrg  cp "$am_depcomp" conftest.dir
3494fd0c672fSmrg  cd conftest.dir
3495fd0c672fSmrg  # We will build objects and dependencies in a subdirectory because
3496fd0c672fSmrg  # it helps to detect inapplicable dependency modes.  For instance
3497fd0c672fSmrg  # both Tru64's cc and ICC support -MD to output dependencies as a
3498fd0c672fSmrg  # side effect of compilation, but ICC will put the dependencies in
3499fd0c672fSmrg  # the current directory while Tru64 will put them in the object
3500fd0c672fSmrg  # directory.
3501fd0c672fSmrg  mkdir sub
3502fd0c672fSmrg
3503fd0c672fSmrg  am_cv_CC_dependencies_compiler_type=none
3504fd0c672fSmrg  if test "$am_compiler_list" = ""; then
3505fd0c672fSmrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3506fd0c672fSmrg  fi
350748e69166Smrg  am__universal=false
350848e69166Smrg  case " $depcc " in #(
350948e69166Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
351048e69166Smrg     esac
351148e69166Smrg
3512fd0c672fSmrg  for depmode in $am_compiler_list; do
3513fd0c672fSmrg    # Setup a source with many dependencies, because some compilers
3514fd0c672fSmrg    # like to wrap large dependency lists on column 80 (with \), and
3515fd0c672fSmrg    # we should not choose a depcomp mode which is confused by this.
3516fd0c672fSmrg    #
3517fd0c672fSmrg    # We need to recreate these files for each test, as the compiler may
3518fd0c672fSmrg    # overwrite some of them when testing with obscure command lines.
3519fd0c672fSmrg    # This happens at least with the AIX C compiler.
3520fd0c672fSmrg    : > sub/conftest.c
3521fd0c672fSmrg    for i in 1 2 3 4 5 6; do
3522fd0c672fSmrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3523fd0c672fSmrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3524fd0c672fSmrg      # Solaris 8's {/usr,}/bin/sh.
3525fd0c672fSmrg      touch sub/conftst$i.h
3526fd0c672fSmrg    done
3527fd0c672fSmrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3528fd0c672fSmrg
352948e69166Smrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
353048e69166Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
353148e69166Smrg    # handle `-M -o', and we need to detect this.  Also, some Intel
353248e69166Smrg    # versions had trouble with output in subdirs
353348e69166Smrg    am__obj=sub/conftest.${OBJEXT-o}
353448e69166Smrg    am__minus_obj="-o $am__obj"
3535fd0c672fSmrg    case $depmode in
353648e69166Smrg    gcc)
353748e69166Smrg      # This depmode causes a compiler race in universal mode.
353848e69166Smrg      test "$am__universal" = false || continue
353948e69166Smrg      ;;
3540fd0c672fSmrg    nosideeffect)
3541fd0c672fSmrg      # after this tag, mechanisms are not by side-effect, so they'll
3542fd0c672fSmrg      # only be used when explicitly requested
3543fd0c672fSmrg      if test "x$enable_dependency_tracking" = xyes; then
3544fd0c672fSmrg	continue
3545fd0c672fSmrg      else
3546fd0c672fSmrg	break
3547fd0c672fSmrg      fi
3548fd0c672fSmrg      ;;
354948e69166Smrg    msvisualcpp | msvcmsys)
355048e69166Smrg      # This compiler won't grok `-c -o', but also, the minuso test has
355148e69166Smrg      # not run yet.  These depmodes are late enough in the game, and
355248e69166Smrg      # so weak that their functioning should not be impacted.
355348e69166Smrg      am__obj=conftest.${OBJEXT-o}
355448e69166Smrg      am__minus_obj=
355548e69166Smrg      ;;
3556fd0c672fSmrg    none) break ;;
3557fd0c672fSmrg    esac
3558fd0c672fSmrg    if depmode=$depmode \
355948e69166Smrg       source=sub/conftest.c object=$am__obj \
3560fd0c672fSmrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
356148e69166Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3562fd0c672fSmrg         >/dev/null 2>conftest.err &&
356348e69166Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3564fd0c672fSmrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
356548e69166Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3566fd0c672fSmrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3567fd0c672fSmrg      # icc doesn't choke on unknown options, it will just issue warnings
3568fd0c672fSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
3569fd0c672fSmrg      # that says an option was ignored or not supported.
3570fd0c672fSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
3571fd0c672fSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
3572fd0c672fSmrg      # The diagnosis changed in icc 8.0:
3573fd0c672fSmrg      #   icc: Command line remark: option '-MP' not supported
3574fd0c672fSmrg      if (grep 'ignoring option' conftest.err ||
3575fd0c672fSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3576fd0c672fSmrg        am_cv_CC_dependencies_compiler_type=$depmode
3577fd0c672fSmrg        break
3578fd0c672fSmrg      fi
3579fd0c672fSmrg    fi
3580fd0c672fSmrg  done
3581fd0c672fSmrg
3582fd0c672fSmrg  cd ..
3583fd0c672fSmrg  rm -rf conftest.dir
3584fd0c672fSmrgelse
3585fd0c672fSmrg  am_cv_CC_dependencies_compiler_type=none
3586fd0c672fSmrgfi
3587fd0c672fSmrg
3588fd0c672fSmrgfi
358948e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
359048e69166Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3591fd0c672fSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3592fd0c672fSmrg
359348e69166Smrg if
3594fd0c672fSmrg  test "x$enable_dependency_tracking" != xno \
3595fd0c672fSmrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3596fd0c672fSmrg  am__fastdepCC_TRUE=
3597fd0c672fSmrg  am__fastdepCC_FALSE='#'
3598fd0c672fSmrgelse
3599fd0c672fSmrg  am__fastdepCC_TRUE='#'
3600fd0c672fSmrg  am__fastdepCC_FALSE=
3601fd0c672fSmrgfi
3602fd0c672fSmrg
3603fd0c672fSmrg
360448e69166Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
360548e69166Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
360648e69166Smrgif ${ac_cv_prog_cc_c99+:} false; then :
360748e69166Smrg  $as_echo_n "(cached) " >&6
3608fd0c672fSmrgelse
360948e69166Smrg  ac_cv_prog_cc_c99=no
361048e69166Smrgac_save_CC=$CC
361148e69166Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
361248e69166Smrg/* end confdefs.h.  */
361348e69166Smrg#include <stdarg.h>
361448e69166Smrg#include <stdbool.h>
361548e69166Smrg#include <stdlib.h>
361648e69166Smrg#include <wchar.h>
361748e69166Smrg#include <stdio.h>
3618fd0c672fSmrg
361948e69166Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
362048e69166Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
362148e69166Smrg#define showlist(...) puts (#__VA_ARGS__)
362248e69166Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
362348e69166Smrgstatic void
362448e69166Smrgtest_varargs_macros (void)
362548e69166Smrg{
362648e69166Smrg  int x = 1234;
362748e69166Smrg  int y = 5678;
362848e69166Smrg  debug ("Flag");
362948e69166Smrg  debug ("X = %d\n", x);
363048e69166Smrg  showlist (The first, second, and third items.);
363148e69166Smrg  report (x>y, "x is %d but y is %d", x, y);
363248e69166Smrg}
3633fd0c672fSmrg
363448e69166Smrg// Check long long types.
363548e69166Smrg#define BIG64 18446744073709551615ull
363648e69166Smrg#define BIG32 4294967295ul
363748e69166Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
363848e69166Smrg#if !BIG_OK
363948e69166Smrg  your preprocessor is broken;
364048e69166Smrg#endif
364148e69166Smrg#if BIG_OK
364248e69166Smrg#else
364348e69166Smrg  your preprocessor is broken;
364448e69166Smrg#endif
364548e69166Smrgstatic long long int bignum = -9223372036854775807LL;
364648e69166Smrgstatic unsigned long long int ubignum = BIG64;
3647fd0c672fSmrg
364848e69166Smrgstruct incomplete_array
364948e69166Smrg{
365048e69166Smrg  int datasize;
365148e69166Smrg  double data[];
365248e69166Smrg};
3653fd0c672fSmrg
365448e69166Smrgstruct named_init {
365548e69166Smrg  int number;
365648e69166Smrg  const wchar_t *name;
365748e69166Smrg  double average;
365848e69166Smrg};
3659fd0c672fSmrg
366048e69166Smrgtypedef const char *ccp;
3661fd0c672fSmrg
366248e69166Smrgstatic inline int
366348e69166Smrgtest_restrict (ccp restrict text)
366448e69166Smrg{
366548e69166Smrg  // See if C++-style comments work.
366648e69166Smrg  // Iterate through items via the restricted pointer.
366748e69166Smrg  // Also check for declarations in for loops.
366848e69166Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
366948e69166Smrg    continue;
367048e69166Smrg  return 0;
367148e69166Smrg}
3672fd0c672fSmrg
367348e69166Smrg// Check varargs and va_copy.
367448e69166Smrgstatic void
367548e69166Smrgtest_varargs (const char *format, ...)
367648e69166Smrg{
367748e69166Smrg  va_list args;
367848e69166Smrg  va_start (args, format);
367948e69166Smrg  va_list args_copy;
368048e69166Smrg  va_copy (args_copy, args);
368148e69166Smrg
368248e69166Smrg  const char *str;
368348e69166Smrg  int number;
368448e69166Smrg  float fnumber;
368548e69166Smrg
368648e69166Smrg  while (*format)
368748e69166Smrg    {
368848e69166Smrg      switch (*format++)
368948e69166Smrg	{
369048e69166Smrg	case 's': // string
369148e69166Smrg	  str = va_arg (args_copy, const char *);
369248e69166Smrg	  break;
369348e69166Smrg	case 'd': // int
369448e69166Smrg	  number = va_arg (args_copy, int);
369548e69166Smrg	  break;
369648e69166Smrg	case 'f': // float
369748e69166Smrg	  fnumber = va_arg (args_copy, double);
369848e69166Smrg	  break;
369948e69166Smrg	default:
370048e69166Smrg	  break;
370148e69166Smrg	}
370248e69166Smrg    }
370348e69166Smrg  va_end (args_copy);
370448e69166Smrg  va_end (args);
370548e69166Smrg}
3706fd0c672fSmrg
3707fd0c672fSmrgint
3708fd0c672fSmrgmain ()
3709fd0c672fSmrg{
3710fd0c672fSmrg
371148e69166Smrg  // Check bool.
371248e69166Smrg  _Bool success = false;
3713fd0c672fSmrg
371448e69166Smrg  // Check restrict.
371548e69166Smrg  if (test_restrict ("String literal") == 0)
371648e69166Smrg    success = true;
371748e69166Smrg  char *restrict newvar = "Another string";
3718fd0c672fSmrg
371948e69166Smrg  // Check varargs.
372048e69166Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
372148e69166Smrg  test_varargs_macros ();
3722fd0c672fSmrg
372348e69166Smrg  // Check flexible array members.
372448e69166Smrg  struct incomplete_array *ia =
372548e69166Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
372648e69166Smrg  ia->datasize = 10;
372748e69166Smrg  for (int i = 0; i < ia->datasize; ++i)
372848e69166Smrg    ia->data[i] = i * 1.234;
3729fd0c672fSmrg
373048e69166Smrg  // Check named initializers.
373148e69166Smrg  struct named_init ni = {
373248e69166Smrg    .number = 34,
373348e69166Smrg    .name = L"Test wide string",
373448e69166Smrg    .average = 543.34343,
373548e69166Smrg  };
3736fd0c672fSmrg
373748e69166Smrg  ni.number = 58;
3738fd0c672fSmrg
373948e69166Smrg  int dynamic_array[ni.number];
374048e69166Smrg  dynamic_array[ni.number - 1] = 543;
374148e69166Smrg
374248e69166Smrg  // work around unused variable warnings
374348e69166Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
374448e69166Smrg	  || dynamic_array[ni.number - 1] != 543);
374548e69166Smrg
374648e69166Smrg  ;
374748e69166Smrg  return 0;
374848e69166Smrg}
374948e69166Smrg_ACEOF
375048e69166Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3751fd0c672fSmrgdo
375248e69166Smrg  CC="$ac_save_CC $ac_arg"
375348e69166Smrg  if ac_fn_c_try_compile "$LINENO"; then :
375448e69166Smrg  ac_cv_prog_cc_c99=$ac_arg
375548e69166Smrgfi
375648e69166Smrgrm -f core conftest.err conftest.$ac_objext
375748e69166Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
3758fd0c672fSmrgdone
375948e69166Smrgrm -f conftest.$ac_ext
376048e69166SmrgCC=$ac_save_CC
3761fd0c672fSmrg
3762fd0c672fSmrgfi
376348e69166Smrg# AC_CACHE_VAL
376448e69166Smrgcase "x$ac_cv_prog_cc_c99" in
376548e69166Smrg  x)
376648e69166Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
376748e69166Smrg$as_echo "none needed" >&6; } ;;
376848e69166Smrg  xno)
376948e69166Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
377048e69166Smrg$as_echo "unsupported" >&6; } ;;
377148e69166Smrg  *)
377248e69166Smrg    CC="$CC $ac_cv_prog_cc_c99"
377348e69166Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
377448e69166Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
377548e69166Smrgesac
377648e69166Smrgif test "x$ac_cv_prog_cc_c99" != xno; then :
3777fd0c672fSmrg
3778fd0c672fSmrgfi
3779fd0c672fSmrg
378048e69166Smrg
378148e69166Smrg
378248e69166Smrgac_ext=c
378348e69166Smrgac_cpp='$CPP $CPPFLAGS'
378448e69166Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
378548e69166Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
378648e69166Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
378748e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
378848e69166Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
378948e69166Smrg# On Suns, sometimes $CPP names a directory.
379048e69166Smrgif test -n "$CPP" && test -d "$CPP"; then
379148e69166Smrg  CPP=
379248e69166Smrgfi
379348e69166Smrgif test -z "$CPP"; then
379448e69166Smrg  if ${ac_cv_prog_CPP+:} false; then :
379548e69166Smrg  $as_echo_n "(cached) " >&6
379648e69166Smrgelse
379748e69166Smrg      # Double quotes because CPP needs to be expanded
379848e69166Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
379948e69166Smrg    do
380048e69166Smrg      ac_preproc_ok=false
380148e69166Smrgfor ac_c_preproc_warn_flag in '' yes
380248e69166Smrgdo
380348e69166Smrg  # Use a header file that comes with gcc, so configuring glibc
380448e69166Smrg  # with a fresh cross-compiler works.
380548e69166Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
380648e69166Smrg  # <limits.h> exists even on freestanding compilers.
380748e69166Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
380848e69166Smrg  # not just through cpp. "Syntax error" is here to catch this case.
380948e69166Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
381048e69166Smrg/* end confdefs.h.  */
381148e69166Smrg#ifdef __STDC__
381248e69166Smrg# include <limits.h>
381348e69166Smrg#else
381448e69166Smrg# include <assert.h>
381548e69166Smrg#endif
381648e69166Smrg		     Syntax error
381748e69166Smrg_ACEOF
381848e69166Smrgif ac_fn_c_try_cpp "$LINENO"; then :
381948e69166Smrg
382048e69166Smrgelse
382148e69166Smrg  # Broken: fails on valid input.
382248e69166Smrgcontinue
382348e69166Smrgfi
382448e69166Smrgrm -f conftest.err conftest.i conftest.$ac_ext
382548e69166Smrg
382648e69166Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
382748e69166Smrg  # can be detected and how.
382848e69166Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
382948e69166Smrg/* end confdefs.h.  */
383048e69166Smrg#include <ac_nonexistent.h>
383148e69166Smrg_ACEOF
383248e69166Smrgif ac_fn_c_try_cpp "$LINENO"; then :
383348e69166Smrg  # Broken: success on invalid input.
383448e69166Smrgcontinue
383548e69166Smrgelse
383648e69166Smrg  # Passes both tests.
383748e69166Smrgac_preproc_ok=:
383848e69166Smrgbreak
383948e69166Smrgfi
384048e69166Smrgrm -f conftest.err conftest.i conftest.$ac_ext
384148e69166Smrg
384248e69166Smrgdone
384348e69166Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
384448e69166Smrgrm -f conftest.i conftest.err conftest.$ac_ext
384548e69166Smrgif $ac_preproc_ok; then :
384648e69166Smrg  break
384748e69166Smrgfi
384848e69166Smrg
384948e69166Smrg    done
385048e69166Smrg    ac_cv_prog_CPP=$CPP
385148e69166Smrg
385248e69166Smrgfi
385348e69166Smrg  CPP=$ac_cv_prog_CPP
385448e69166Smrgelse
385548e69166Smrg  ac_cv_prog_CPP=$CPP
385648e69166Smrgfi
385748e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
385848e69166Smrg$as_echo "$CPP" >&6; }
385948e69166Smrgac_preproc_ok=false
386048e69166Smrgfor ac_c_preproc_warn_flag in '' yes
386148e69166Smrgdo
386248e69166Smrg  # Use a header file that comes with gcc, so configuring glibc
386348e69166Smrg  # with a fresh cross-compiler works.
386448e69166Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
386548e69166Smrg  # <limits.h> exists even on freestanding compilers.
386648e69166Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
386748e69166Smrg  # not just through cpp. "Syntax error" is here to catch this case.
386848e69166Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
386948e69166Smrg/* end confdefs.h.  */
387048e69166Smrg#ifdef __STDC__
387148e69166Smrg# include <limits.h>
387248e69166Smrg#else
387348e69166Smrg# include <assert.h>
387448e69166Smrg#endif
387548e69166Smrg		     Syntax error
387648e69166Smrg_ACEOF
387748e69166Smrgif ac_fn_c_try_cpp "$LINENO"; then :
387848e69166Smrg
387948e69166Smrgelse
388048e69166Smrg  # Broken: fails on valid input.
388148e69166Smrgcontinue
388248e69166Smrgfi
388348e69166Smrgrm -f conftest.err conftest.i conftest.$ac_ext
388448e69166Smrg
388548e69166Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
388648e69166Smrg  # can be detected and how.
388748e69166Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
388848e69166Smrg/* end confdefs.h.  */
388948e69166Smrg#include <ac_nonexistent.h>
389048e69166Smrg_ACEOF
389148e69166Smrgif ac_fn_c_try_cpp "$LINENO"; then :
389248e69166Smrg  # Broken: success on invalid input.
389348e69166Smrgcontinue
389448e69166Smrgelse
389548e69166Smrg  # Passes both tests.
389648e69166Smrgac_preproc_ok=:
389748e69166Smrgbreak
389848e69166Smrgfi
389948e69166Smrgrm -f conftest.err conftest.i conftest.$ac_ext
390048e69166Smrg
390148e69166Smrgdone
390248e69166Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
390348e69166Smrgrm -f conftest.i conftest.err conftest.$ac_ext
390448e69166Smrgif $ac_preproc_ok; then :
390548e69166Smrg
390648e69166Smrgelse
390748e69166Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
390848e69166Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
390948e69166Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
391048e69166SmrgSee \`config.log' for more details" "$LINENO" 5; }
391148e69166Smrgfi
391248e69166Smrg
391348e69166Smrgac_ext=c
391448e69166Smrgac_cpp='$CPP $CPPFLAGS'
391548e69166Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
391648e69166Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
391748e69166Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
391848e69166Smrg
391948e69166Smrg
392048e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
392148e69166Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
392248e69166Smrgif ${ac_cv_path_GREP+:} false; then :
392348e69166Smrg  $as_echo_n "(cached) " >&6
392448e69166Smrgelse
392548e69166Smrg  if test -z "$GREP"; then
392648e69166Smrg  ac_path_GREP_found=false
392748e69166Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
392848e69166Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
392948e69166Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
393048e69166Smrgdo
393148e69166Smrg  IFS=$as_save_IFS
393248e69166Smrg  test -z "$as_dir" && as_dir=.
393348e69166Smrg    for ac_prog in grep ggrep; do
393448e69166Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
393548e69166Smrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
393648e69166Smrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
393748e69166Smrg# Check for GNU ac_path_GREP and select it if it is found.
393848e69166Smrg  # Check for GNU $ac_path_GREP
393948e69166Smrgcase `"$ac_path_GREP" --version 2>&1` in
394048e69166Smrg*GNU*)
394148e69166Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
394248e69166Smrg*)
394348e69166Smrg  ac_count=0
394448e69166Smrg  $as_echo_n 0123456789 >"conftest.in"
394548e69166Smrg  while :
394648e69166Smrg  do
394748e69166Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
394848e69166Smrg    mv "conftest.tmp" "conftest.in"
394948e69166Smrg    cp "conftest.in" "conftest.nl"
395048e69166Smrg    $as_echo 'GREP' >> "conftest.nl"
395148e69166Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
395248e69166Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
395348e69166Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
395448e69166Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
395548e69166Smrg      # Best one so far, save it but keep looking for a better one
395648e69166Smrg      ac_cv_path_GREP="$ac_path_GREP"
395748e69166Smrg      ac_path_GREP_max=$ac_count
395848e69166Smrg    fi
395948e69166Smrg    # 10*(2^10) chars as input seems more than enough
396048e69166Smrg    test $ac_count -gt 10 && break
396148e69166Smrg  done
396248e69166Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
396348e69166Smrgesac
396448e69166Smrg
396548e69166Smrg      $ac_path_GREP_found && break 3
396648e69166Smrg    done
396748e69166Smrg  done
396848e69166Smrg  done
396948e69166SmrgIFS=$as_save_IFS
397048e69166Smrg  if test -z "$ac_cv_path_GREP"; then
397148e69166Smrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
397248e69166Smrg  fi
397348e69166Smrgelse
397448e69166Smrg  ac_cv_path_GREP=$GREP
397548e69166Smrgfi
397648e69166Smrg
397748e69166Smrgfi
397848e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
397948e69166Smrg$as_echo "$ac_cv_path_GREP" >&6; }
398048e69166Smrg GREP="$ac_cv_path_GREP"
398148e69166Smrg
398248e69166Smrg
398348e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
398448e69166Smrg$as_echo_n "checking for egrep... " >&6; }
398548e69166Smrgif ${ac_cv_path_EGREP+:} false; then :
398648e69166Smrg  $as_echo_n "(cached) " >&6
398748e69166Smrgelse
398848e69166Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
398948e69166Smrg   then ac_cv_path_EGREP="$GREP -E"
399048e69166Smrg   else
399148e69166Smrg     if test -z "$EGREP"; then
399248e69166Smrg  ac_path_EGREP_found=false
399348e69166Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
399448e69166Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
399548e69166Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
399648e69166Smrgdo
399748e69166Smrg  IFS=$as_save_IFS
399848e69166Smrg  test -z "$as_dir" && as_dir=.
399948e69166Smrg    for ac_prog in egrep; do
400048e69166Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
400148e69166Smrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
400248e69166Smrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
400348e69166Smrg# Check for GNU ac_path_EGREP and select it if it is found.
400448e69166Smrg  # Check for GNU $ac_path_EGREP
400548e69166Smrgcase `"$ac_path_EGREP" --version 2>&1` in
400648e69166Smrg*GNU*)
400748e69166Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
400848e69166Smrg*)
400948e69166Smrg  ac_count=0
401048e69166Smrg  $as_echo_n 0123456789 >"conftest.in"
401148e69166Smrg  while :
401248e69166Smrg  do
401348e69166Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
401448e69166Smrg    mv "conftest.tmp" "conftest.in"
401548e69166Smrg    cp "conftest.in" "conftest.nl"
401648e69166Smrg    $as_echo 'EGREP' >> "conftest.nl"
401748e69166Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
401848e69166Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
401948e69166Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
402048e69166Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
402148e69166Smrg      # Best one so far, save it but keep looking for a better one
402248e69166Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
402348e69166Smrg      ac_path_EGREP_max=$ac_count
402448e69166Smrg    fi
402548e69166Smrg    # 10*(2^10) chars as input seems more than enough
402648e69166Smrg    test $ac_count -gt 10 && break
402748e69166Smrg  done
402848e69166Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
402948e69166Smrgesac
403048e69166Smrg
403148e69166Smrg      $ac_path_EGREP_found && break 3
403248e69166Smrg    done
403348e69166Smrg  done
403448e69166Smrg  done
403548e69166SmrgIFS=$as_save_IFS
403648e69166Smrg  if test -z "$ac_cv_path_EGREP"; then
403748e69166Smrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
403848e69166Smrg  fi
403948e69166Smrgelse
404048e69166Smrg  ac_cv_path_EGREP=$EGREP
404148e69166Smrgfi
404248e69166Smrg
404348e69166Smrg   fi
404448e69166Smrgfi
404548e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
404648e69166Smrg$as_echo "$ac_cv_path_EGREP" >&6; }
404748e69166Smrg EGREP="$ac_cv_path_EGREP"
404848e69166Smrg
404948e69166Smrg
405048e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
405148e69166Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
405248e69166Smrgif ${ac_cv_header_stdc+:} false; then :
405348e69166Smrg  $as_echo_n "(cached) " >&6
405448e69166Smrgelse
405548e69166Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
405648e69166Smrg/* end confdefs.h.  */
405748e69166Smrg#include <stdlib.h>
405848e69166Smrg#include <stdarg.h>
405948e69166Smrg#include <string.h>
406048e69166Smrg#include <float.h>
406148e69166Smrg
406248e69166Smrgint
406348e69166Smrgmain ()
406448e69166Smrg{
406548e69166Smrg
406648e69166Smrg  ;
406748e69166Smrg  return 0;
406848e69166Smrg}
406948e69166Smrg_ACEOF
407048e69166Smrgif ac_fn_c_try_compile "$LINENO"; then :
407148e69166Smrg  ac_cv_header_stdc=yes
407248e69166Smrgelse
407348e69166Smrg  ac_cv_header_stdc=no
407448e69166Smrgfi
407548e69166Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
407648e69166Smrg
407748e69166Smrgif test $ac_cv_header_stdc = yes; then
407848e69166Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
407948e69166Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
408048e69166Smrg/* end confdefs.h.  */
408148e69166Smrg#include <string.h>
408248e69166Smrg
408348e69166Smrg_ACEOF
408448e69166Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
408548e69166Smrg  $EGREP "memchr" >/dev/null 2>&1; then :
408648e69166Smrg
408748e69166Smrgelse
408848e69166Smrg  ac_cv_header_stdc=no
408948e69166Smrgfi
409048e69166Smrgrm -f conftest*
409148e69166Smrg
409248e69166Smrgfi
409348e69166Smrg
409448e69166Smrgif test $ac_cv_header_stdc = yes; then
409548e69166Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
409648e69166Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
409748e69166Smrg/* end confdefs.h.  */
409848e69166Smrg#include <stdlib.h>
409948e69166Smrg
410048e69166Smrg_ACEOF
410148e69166Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
410248e69166Smrg  $EGREP "free" >/dev/null 2>&1; then :
410348e69166Smrg
410448e69166Smrgelse
410548e69166Smrg  ac_cv_header_stdc=no
410648e69166Smrgfi
410748e69166Smrgrm -f conftest*
410848e69166Smrg
410948e69166Smrgfi
411048e69166Smrg
411148e69166Smrgif test $ac_cv_header_stdc = yes; then
411248e69166Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
411348e69166Smrg  if test "$cross_compiling" = yes; then :
411448e69166Smrg  :
411548e69166Smrgelse
411648e69166Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
411748e69166Smrg/* end confdefs.h.  */
411848e69166Smrg#include <ctype.h>
411948e69166Smrg#include <stdlib.h>
412048e69166Smrg#if ((' ' & 0x0FF) == 0x020)
412148e69166Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
412248e69166Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
412348e69166Smrg#else
412448e69166Smrg# define ISLOWER(c) \
412548e69166Smrg		   (('a' <= (c) && (c) <= 'i') \
412648e69166Smrg		     || ('j' <= (c) && (c) <= 'r') \
412748e69166Smrg		     || ('s' <= (c) && (c) <= 'z'))
412848e69166Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
412948e69166Smrg#endif
413048e69166Smrg
413148e69166Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
413248e69166Smrgint
413348e69166Smrgmain ()
413448e69166Smrg{
413548e69166Smrg  int i;
413648e69166Smrg  for (i = 0; i < 256; i++)
413748e69166Smrg    if (XOR (islower (i), ISLOWER (i))
413848e69166Smrg	|| toupper (i) != TOUPPER (i))
413948e69166Smrg      return 2;
414048e69166Smrg  return 0;
414148e69166Smrg}
414248e69166Smrg_ACEOF
414348e69166Smrgif ac_fn_c_try_run "$LINENO"; then :
414448e69166Smrg
414548e69166Smrgelse
414648e69166Smrg  ac_cv_header_stdc=no
414748e69166Smrgfi
414848e69166Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
414948e69166Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
415048e69166Smrgfi
415148e69166Smrg
415248e69166Smrgfi
415348e69166Smrgfi
415448e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
415548e69166Smrg$as_echo "$ac_cv_header_stdc" >&6; }
415648e69166Smrgif test $ac_cv_header_stdc = yes; then
415748e69166Smrg
415848e69166Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
415948e69166Smrg
416048e69166Smrgfi
416148e69166Smrg
416248e69166Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
416348e69166Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
416448e69166Smrg		  inttypes.h stdint.h unistd.h
416548e69166Smrgdo :
416648e69166Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
416748e69166Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
416848e69166Smrg"
416948e69166Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
417048e69166Smrg  cat >>confdefs.h <<_ACEOF
417148e69166Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
417248e69166Smrg_ACEOF
417348e69166Smrg
417448e69166Smrgfi
417548e69166Smrg
417648e69166Smrgdone
417748e69166Smrg
417848e69166Smrg
417948e69166Smrg
418048e69166Smrg
418148e69166Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
418248e69166Smrg	if test -n "$ac_tool_prefix"; then
418348e69166Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
418448e69166Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
418548e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
418648e69166Smrg$as_echo_n "checking for $ac_word... " >&6; }
418748e69166Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
418848e69166Smrg  $as_echo_n "(cached) " >&6
418948e69166Smrgelse
419048e69166Smrg  case $PKG_CONFIG in
419148e69166Smrg  [\\/]* | ?:[\\/]*)
419248e69166Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
419348e69166Smrg  ;;
419448e69166Smrg  *)
419548e69166Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
419648e69166Smrgfor as_dir in $PATH
419748e69166Smrgdo
419848e69166Smrg  IFS=$as_save_IFS
419948e69166Smrg  test -z "$as_dir" && as_dir=.
420048e69166Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
420148e69166Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
420248e69166Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
420348e69166Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
420448e69166Smrg    break 2
420548e69166Smrg  fi
420648e69166Smrgdone
420748e69166Smrg  done
420848e69166SmrgIFS=$as_save_IFS
420948e69166Smrg
421048e69166Smrg  ;;
421148e69166Smrgesac
421248e69166Smrgfi
421348e69166SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
421448e69166Smrgif test -n "$PKG_CONFIG"; then
421548e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
421648e69166Smrg$as_echo "$PKG_CONFIG" >&6; }
421748e69166Smrgelse
421848e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
421948e69166Smrg$as_echo "no" >&6; }
422048e69166Smrgfi
422148e69166Smrg
422248e69166Smrg
422348e69166Smrgfi
422448e69166Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
422548e69166Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
4226fd0c672fSmrg  # Extract the first word of "pkg-config", so it can be a program name with args.
4227fd0c672fSmrgset dummy pkg-config; ac_word=$2
422848e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
422948e69166Smrg$as_echo_n "checking for $ac_word... " >&6; }
423048e69166Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
423148e69166Smrg  $as_echo_n "(cached) " >&6
4232fd0c672fSmrgelse
4233fd0c672fSmrg  case $ac_pt_PKG_CONFIG in
4234fd0c672fSmrg  [\\/]* | ?:[\\/]*)
4235fd0c672fSmrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4236fd0c672fSmrg  ;;
4237fd0c672fSmrg  *)
4238fd0c672fSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239fd0c672fSmrgfor as_dir in $PATH
4240fd0c672fSmrgdo
4241fd0c672fSmrg  IFS=$as_save_IFS
4242fd0c672fSmrg  test -z "$as_dir" && as_dir=.
424348e69166Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
424448e69166Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4245fd0c672fSmrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
424648e69166Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4247fd0c672fSmrg    break 2
4248fd0c672fSmrg  fi
4249fd0c672fSmrgdone
425048e69166Smrg  done
425148e69166SmrgIFS=$as_save_IFS
4252fd0c672fSmrg
4253fd0c672fSmrg  ;;
4254fd0c672fSmrgesac
4255fd0c672fSmrgfi
4256fd0c672fSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4257fd0c672fSmrgif test -n "$ac_pt_PKG_CONFIG"; then
425848e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
425948e69166Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4260fd0c672fSmrgelse
426148e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
426248e69166Smrg$as_echo "no" >&6; }
4263fd0c672fSmrgfi
4264fd0c672fSmrg
426548e69166Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
426648e69166Smrg    PKG_CONFIG=""
426748e69166Smrg  else
426848e69166Smrg    case $cross_compiling:$ac_tool_warned in
426948e69166Smrgyes:)
427048e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
427148e69166Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
427248e69166Smrgac_tool_warned=yes ;;
427348e69166Smrgesac
427448e69166Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
427548e69166Smrg  fi
4276fd0c672fSmrgelse
4277fd0c672fSmrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4278fd0c672fSmrgfi
4279fd0c672fSmrg
4280fd0c672fSmrgfi
4281fd0c672fSmrgif test -n "$PKG_CONFIG"; then
4282fd0c672fSmrg	_pkg_min_version=0.9.0
428348e69166Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
428448e69166Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4285fd0c672fSmrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
428648e69166Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
428748e69166Smrg$as_echo "yes" >&6; }
4288fd0c672fSmrg	else
428948e69166Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
429048e69166Smrg$as_echo "no" >&6; }
4291fd0c672fSmrg		PKG_CONFIG=""
4292fd0c672fSmrg	fi
4293fd0c672fSmrg
4294fd0c672fSmrgfi
429548e69166Smrg# Make sure we can run config.sub.
429648e69166Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
429748e69166Smrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4298fd0c672fSmrg
429948e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
430048e69166Smrg$as_echo_n "checking build system type... " >&6; }
430148e69166Smrgif ${ac_cv_build+:} false; then :
430248e69166Smrg  $as_echo_n "(cached) " >&6
4303fd0c672fSmrgelse
430448e69166Smrg  ac_build_alias=$build_alias
430548e69166Smrgtest "x$ac_build_alias" = x &&
430648e69166Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
430748e69166Smrgtest "x$ac_build_alias" = x &&
430848e69166Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
430948e69166Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
431048e69166Smrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
431148e69166Smrg
431248e69166Smrgfi
431348e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
431448e69166Smrg$as_echo "$ac_cv_build" >&6; }
431548e69166Smrgcase $ac_cv_build in
431648e69166Smrg*-*-*) ;;
431748e69166Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
431848e69166Smrgesac
431948e69166Smrgbuild=$ac_cv_build
432048e69166Smrgac_save_IFS=$IFS; IFS='-'
432148e69166Smrgset x $ac_cv_build
432248e69166Smrgshift
432348e69166Smrgbuild_cpu=$1
432448e69166Smrgbuild_vendor=$2
432548e69166Smrgshift; shift
432648e69166Smrg# Remember, the first character of IFS is used to create $*,
432748e69166Smrg# except with old shells:
432848e69166Smrgbuild_os=$*
432948e69166SmrgIFS=$ac_save_IFS
433048e69166Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
433148e69166Smrg
433248e69166Smrg
433348e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
433448e69166Smrg$as_echo_n "checking host system type... " >&6; }
433548e69166Smrgif ${ac_cv_host+:} false; then :
433648e69166Smrg  $as_echo_n "(cached) " >&6
433748e69166Smrgelse
433848e69166Smrg  if test "x$host_alias" = x; then
433948e69166Smrg  ac_cv_host=$ac_cv_build
434048e69166Smrgelse
434148e69166Smrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
434248e69166Smrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
434348e69166Smrgfi
4344fd0c672fSmrg
434548e69166Smrgfi
434648e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
434748e69166Smrg$as_echo "$ac_cv_host" >&6; }
434848e69166Smrgcase $ac_cv_host in
434948e69166Smrg*-*-*) ;;
435048e69166Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
435148e69166Smrgesac
435248e69166Smrghost=$ac_cv_host
435348e69166Smrgac_save_IFS=$IFS; IFS='-'
435448e69166Smrgset x $ac_cv_host
435548e69166Smrgshift
435648e69166Smrghost_cpu=$1
435748e69166Smrghost_vendor=$2
435848e69166Smrgshift; shift
435948e69166Smrg# Remember, the first character of IFS is used to create $*,
436048e69166Smrg# except with old shells:
436148e69166Smrghost_os=$*
436248e69166SmrgIFS=$ac_save_IFS
436348e69166Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
436448e69166Smrg
436548e69166Smrg
436648e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
436748e69166Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
436848e69166Smrgif ${ac_cv_path_SED+:} false; then :
436948e69166Smrg  $as_echo_n "(cached) " >&6
437048e69166Smrgelse
437148e69166Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
437248e69166Smrg     for ac_i in 1 2 3 4 5 6 7; do
437348e69166Smrg       ac_script="$ac_script$as_nl$ac_script"
437448e69166Smrg     done
437548e69166Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
437648e69166Smrg     { ac_script=; unset ac_script;}
437748e69166Smrg     if test -z "$SED"; then
437848e69166Smrg  ac_path_SED_found=false
437948e69166Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
438048e69166Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
438148e69166Smrgfor as_dir in $PATH
438248e69166Smrgdo
438348e69166Smrg  IFS=$as_save_IFS
438448e69166Smrg  test -z "$as_dir" && as_dir=.
438548e69166Smrg    for ac_prog in sed gsed; do
438648e69166Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
438748e69166Smrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
438848e69166Smrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
438948e69166Smrg# Check for GNU ac_path_SED and select it if it is found.
439048e69166Smrg  # Check for GNU $ac_path_SED
439148e69166Smrgcase `"$ac_path_SED" --version 2>&1` in
439248e69166Smrg*GNU*)
439348e69166Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
439448e69166Smrg*)
439548e69166Smrg  ac_count=0
439648e69166Smrg  $as_echo_n 0123456789 >"conftest.in"
439748e69166Smrg  while :
439848e69166Smrg  do
439948e69166Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
440048e69166Smrg    mv "conftest.tmp" "conftest.in"
440148e69166Smrg    cp "conftest.in" "conftest.nl"
440248e69166Smrg    $as_echo '' >> "conftest.nl"
440348e69166Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
440448e69166Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
440548e69166Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
440648e69166Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
440748e69166Smrg      # Best one so far, save it but keep looking for a better one
440848e69166Smrg      ac_cv_path_SED="$ac_path_SED"
440948e69166Smrg      ac_path_SED_max=$ac_count
441048e69166Smrg    fi
441148e69166Smrg    # 10*(2^10) chars as input seems more than enough
441248e69166Smrg    test $ac_count -gt 10 && break
441348e69166Smrg  done
441448e69166Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
441548e69166Smrgesac
4416fd0c672fSmrg
441748e69166Smrg      $ac_path_SED_found && break 3
441848e69166Smrg    done
441948e69166Smrg  done
442048e69166Smrg  done
442148e69166SmrgIFS=$as_save_IFS
442248e69166Smrg  if test -z "$ac_cv_path_SED"; then
442348e69166Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
442448e69166Smrg  fi
442548e69166Smrgelse
442648e69166Smrg  ac_cv_path_SED=$SED
442748e69166Smrgfi
4428fd0c672fSmrg
442948e69166Smrgfi
443048e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
443148e69166Smrg$as_echo "$ac_cv_path_SED" >&6; }
443248e69166Smrg SED="$ac_cv_path_SED"
443348e69166Smrg  rm -f conftest.sed
443448e69166Smrg
443548e69166Smrg
443648e69166Smrg
443748e69166Smrg
443848e69166Smrg
443948e69166Smrgif  test "x$GCC" = xyes ; then
444048e69166Smrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
444148e69166Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
444248e69166Smrg-Wbad-function-cast -Wformat=2"
444348e69166Smrg    case `$CC -dumpversion` in
444448e69166Smrg    3.4.* | 4.*)
444548e69166Smrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
444648e69166Smrg	;;
444748e69166Smrg    esac
4448fd0c672fSmrgelse
444948e69166Smrg    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
445048e69166Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
445148e69166Smrg  SUNCC="yes"
445248e69166Smrgelse
445348e69166Smrg  SUNCC="no"
445448e69166Smrgfi
445548e69166Smrg
445648e69166Smrg    if test "x$SUNCC" = "xyes"; then
445748e69166Smrg	CWARNFLAGS="-v"
445848e69166Smrg    fi
4459fd0c672fSmrgfi
446048e69166Smrg
446148e69166Smrg
446248e69166Smrg
446348e69166Smrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
446448e69166Smrg
446548e69166Smrg
446648e69166Smrg
446748e69166Smrg# Check whether --enable-strict-compilation was given.
446848e69166Smrgif test "${enable_strict_compilation+set}" = set; then :
446948e69166Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4470fd0c672fSmrgelse
447148e69166Smrg  STRICT_COMPILE=no
4472fd0c672fSmrgfi
447348e69166Smrg
447448e69166Smrgif test "x$STRICT_COMPILE" = "xyes"; then
447548e69166Smrg	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
447648e69166Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
447748e69166Smrg  SUNCC="yes"
4478fd0c672fSmrgelse
447948e69166Smrg  SUNCC="no"
4480fd0c672fSmrgfi
448148e69166Smrg
448248e69166Smrg	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
448348e69166Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
448448e69166Smrg  INTELCC="yes"
4485fd0c672fSmrgelse
448648e69166Smrg  INTELCC="no"
4487fd0c672fSmrgfi
4488fd0c672fSmrg
448948e69166Smrg	if test "x$GCC" = xyes ; then
449048e69166Smrg		STRICT_CFLAGS="-pedantic -Werror"
449148e69166Smrg	elif test "x$SUNCC" = "xyes"; then
449248e69166Smrg		STRICT_CFLAGS="-errwarn"
449348e69166Smrg    elif test "x$INTELCC" = "xyes"; then
449448e69166Smrg		STRICT_CFLAGS="-Werror"
449548e69166Smrg	fi
449648e69166Smrgfi
449748e69166SmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4498fd0c672fSmrg
449948e69166Smrg
450048e69166Smrg
450148e69166Smrg
450248e69166Smrgcat >>confdefs.h <<_ACEOF
450348e69166Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
450448e69166Smrg_ACEOF
450548e69166Smrg
450648e69166Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
450748e69166Smrg	if test "x$PVM" = "x"; then
450848e69166Smrg		PVM="0"
450948e69166Smrg	fi
451048e69166Smrg
451148e69166Smrgcat >>confdefs.h <<_ACEOF
451248e69166Smrg#define PACKAGE_VERSION_MINOR $PVM
451348e69166Smrg_ACEOF
451448e69166Smrg
451548e69166Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
451648e69166Smrg	if test "x$PVP" = "x"; then
451748e69166Smrg		PVP="0"
451848e69166Smrg	fi
451948e69166Smrg
452048e69166Smrgcat >>confdefs.h <<_ACEOF
452148e69166Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
452248e69166Smrg_ACEOF
452348e69166Smrg
452448e69166Smrg
452548e69166Smrg
452648e69166SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
452748e69166Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
452848e69166Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
452948e69166Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
453048e69166Smrg
453148e69166Smrg
453248e69166Smrg
453348e69166Smrg
453448e69166Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
453548e69166SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
453648e69166Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
453748e69166Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
453848e69166Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
453948e69166Smrg
454048e69166Smrg
454148e69166Smrg
454248e69166Smrg
454348e69166Smrg
454448e69166Smrg
454548e69166Smrgif test x$APP_MAN_SUFFIX = x    ; then
454648e69166Smrg    APP_MAN_SUFFIX=1
454748e69166Smrgfi
454848e69166Smrgif test x$APP_MAN_DIR = x    ; then
454948e69166Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4550fd0c672fSmrgfi
4551fd0c672fSmrg
455248e69166Smrgif test x$LIB_MAN_SUFFIX = x    ; then
455348e69166Smrg    LIB_MAN_SUFFIX=3
455448e69166Smrgfi
455548e69166Smrgif test x$LIB_MAN_DIR = x    ; then
455648e69166Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
455748e69166Smrgfi
4558fd0c672fSmrg
455948e69166Smrgif test x$FILE_MAN_SUFFIX = x    ; then
456048e69166Smrg    case $host_os in
456148e69166Smrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
456248e69166Smrg	*)		FILE_MAN_SUFFIX=5  ;;
456348e69166Smrg    esac
456448e69166Smrgfi
456548e69166Smrgif test x$FILE_MAN_DIR = x    ; then
456648e69166Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
456748e69166Smrgfi
456848e69166Smrg
456948e69166Smrgif test x$MISC_MAN_SUFFIX = x    ; then
457048e69166Smrg    case $host_os in
457148e69166Smrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
457248e69166Smrg	*)		MISC_MAN_SUFFIX=7  ;;
457348e69166Smrg    esac
457448e69166Smrgfi
457548e69166Smrgif test x$MISC_MAN_DIR = x    ; then
457648e69166Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
457748e69166Smrgfi
457848e69166Smrg
457948e69166Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
458048e69166Smrg    case $host_os in
458148e69166Smrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
458248e69166Smrg	*)		DRIVER_MAN_SUFFIX=4  ;;
458348e69166Smrg    esac
458448e69166Smrgfi
458548e69166Smrgif test x$DRIVER_MAN_DIR = x    ; then
458648e69166Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4587fd0c672fSmrgfi
458848e69166Smrg
458948e69166Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
459048e69166Smrg    case $host_os in
459148e69166Smrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
459248e69166Smrg	*)		ADMIN_MAN_SUFFIX=8  ;;
459348e69166Smrg    esac
459448e69166Smrgfi
459548e69166Smrgif test x$ADMIN_MAN_DIR = x    ; then
459648e69166Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
459748e69166Smrgfi
459848e69166Smrg
459948e69166Smrg
460048e69166Smrg
460148e69166Smrg
460248e69166Smrg
460348e69166Smrg
460448e69166Smrg
460548e69166Smrg
460648e69166Smrg
460748e69166Smrg
460848e69166Smrg
460948e69166Smrg
461048e69166Smrg
461148e69166Smrg
461248e69166Smrg
461348e69166SmrgXORG_MAN_PAGE="X Version 11"
461448e69166Smrg
461548e69166SmrgMAN_SUBSTS="\
461648e69166Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
461748e69166Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
461848e69166Smrg	-e 's|__xservername__|Xorg|g' \
461948e69166Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
462048e69166Smrg	-e 's|__projectroot__|\$(prefix)|g' \
462148e69166Smrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
462248e69166Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
462348e69166Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
462448e69166Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
462548e69166Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
462648e69166Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
462748e69166Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
462848e69166Smrg
462948e69166Smrg
463048e69166Smrg
463148e69166Smrg# Check whether --enable-silent-rules was given.
463248e69166Smrgif test "${enable_silent_rules+set}" = set; then :
463348e69166Smrg  enableval=$enable_silent_rules;
463448e69166Smrgfi
463548e69166Smrg
463648e69166Smrgcase $enable_silent_rules in
463748e69166Smrgyes) AM_DEFAULT_VERBOSITY=0;;
463848e69166Smrgno)  AM_DEFAULT_VERBOSITY=1;;
463948e69166Smrg*)   AM_DEFAULT_VERBOSITY=0;;
464048e69166Smrgesac
464148e69166SmrgAM_BACKSLASH='\'
464248e69166Smrg
464348e69166Smrg
464448e69166Smrg
464548e69166Smrgac_config_headers="$ac_config_headers config.h"
464648e69166Smrg
464748e69166Smrg
464848e69166Smrg# Internationalization & localization support
464948e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5
465048e69166Smrg$as_echo_n "checking for library containing gettext... " >&6; }
465148e69166Smrgif ${ac_cv_search_gettext+:} false; then :
465248e69166Smrg  $as_echo_n "(cached) " >&6
4653fd0c672fSmrgelse
465448e69166Smrg  ac_func_search_save_LIBS=$LIBS
465548e69166Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
465648e69166Smrg/* end confdefs.h.  */
465748e69166Smrg
465848e69166Smrg/* Override any GCC internal prototype to avoid an error.
465948e69166Smrg   Use char because int might match the return type of a GCC
466048e69166Smrg   builtin and then its argument prototype would still apply.  */
466148e69166Smrg#ifdef __cplusplus
466248e69166Smrgextern "C"
466348e69166Smrg#endif
466448e69166Smrgchar gettext ();
466548e69166Smrgint
466648e69166Smrgmain ()
466748e69166Smrg{
466848e69166Smrgreturn gettext ();
466948e69166Smrg  ;
467048e69166Smrg  return 0;
467148e69166Smrg}
467248e69166Smrg_ACEOF
467348e69166Smrgfor ac_lib in '' intl; do
467448e69166Smrg  if test -z "$ac_lib"; then
467548e69166Smrg    ac_res="none required"
467648e69166Smrg  else
467748e69166Smrg    ac_res=-l$ac_lib
467848e69166Smrg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
467948e69166Smrg  fi
468048e69166Smrg  if ac_fn_c_try_link "$LINENO"; then :
468148e69166Smrg  ac_cv_search_gettext=$ac_res
4682fd0c672fSmrgfi
468348e69166Smrgrm -f core conftest.err conftest.$ac_objext \
468448e69166Smrg    conftest$ac_exeext
468548e69166Smrg  if ${ac_cv_search_gettext+:} false; then :
468648e69166Smrg  break
468748e69166Smrgfi
468848e69166Smrgdone
468948e69166Smrgif ${ac_cv_search_gettext+:} false; then :
469048e69166Smrg
4691fd0c672fSmrgelse
469248e69166Smrg  ac_cv_search_gettext=no
4693fd0c672fSmrgfi
469448e69166Smrgrm conftest.$ac_ext
469548e69166SmrgLIBS=$ac_func_search_save_LIBS
469648e69166Smrgfi
469748e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5
469848e69166Smrg$as_echo "$ac_cv_search_gettext" >&6; }
469948e69166Smrgac_res=$ac_cv_search_gettext
470048e69166Smrgif test "$ac_res" != no; then :
470148e69166Smrg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
470248e69166Smrg  USE_GETTEXT="yes"
4703fd0c672fSmrgelse
470448e69166Smrg  USE_GETTEXT="no"
4705fd0c672fSmrgfi
4706fd0c672fSmrg
470748e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install localized messages" >&5
470848e69166Smrg$as_echo_n "checking where to install localized messages... " >&6; }
4709fd0c672fSmrg
471048e69166Smrg# Check whether --with-localedir was given.
471148e69166Smrgif test "${with_localedir+set}" = set; then :
471248e69166Smrg  withval=$with_localedir; LOCALEDIR=${withval}
4713fd0c672fSmrgelse
471448e69166Smrg  LOCALEDIR=${datadir}/locale
4715fd0c672fSmrgfi
4716fd0c672fSmrg
4717fd0c672fSmrg
471848e69166Smrg  prefix_NONE=
471948e69166Smrg  exec_prefix_NONE=
472048e69166Smrg  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
472148e69166Smrg  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
472248e69166Smrg  eval ax_define_dir="\"$LOCALEDIR\""
472348e69166Smrg  eval ax_define_dir="\"$ax_define_dir\""
472448e69166Smrg  LOCALEDIR="$ax_define_dir"
4725fd0c672fSmrg
4726fd0c672fSmrg
472748e69166Smrgcat >>confdefs.h <<_ACEOF
472848e69166Smrg#define LOCALEDIR "$ax_define_dir"
472948e69166Smrg_ACEOF
473048e69166Smrg
473148e69166Smrg  test "$prefix_NONE" && prefix=NONE
473248e69166Smrg  test "$exec_prefix_NONE" && exec_prefix=NONE
473348e69166Smrg
473448e69166Smrgif test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then
473548e69166Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: nowhere" >&5
473648e69166Smrg$as_echo "nowhere" >&6; }
473748e69166Smrg        USE_GETTEXT="no"
4738fd0c672fSmrgelse
473948e69166Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALEDIR" >&5
474048e69166Smrg$as_echo "$LOCALEDIR" >&6; }
4741fd0c672fSmrgfi
4742fd0c672fSmrg
474348e69166Smrgif test "x$USE_GETTEXT" = "xyes" ; then
4744fd0c672fSmrg
474548e69166Smrg$as_echo "#define USE_GETTEXT 1" >>confdefs.h
4746fd0c672fSmrg
474748e69166Smrgfi
474848e69166Smrg if test "x$USE_GETTEXT" = "xyes"; then
474948e69166Smrg  USE_GETTEXT_TRUE=
475048e69166Smrg  USE_GETTEXT_FALSE='#'
475148e69166Smrgelse
475248e69166Smrg  USE_GETTEXT_TRUE='#'
475348e69166Smrg  USE_GETTEXT_FALSE=
475448e69166Smrgfi
4755fd0c672fSmrg
4756fd0c672fSmrg
4757fd0c672fSmrg
475848e69166Smrg### How to check load average on various OS'es:
4759fd0c672fSmrg
476048e69166Smrg# Solaris: libkstat
476148e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
476248e69166Smrg$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
476348e69166Smrgif ${ac_cv_lib_kstat_kstat_open+:} false; then :
476448e69166Smrg  $as_echo_n "(cached) " >&6
476548e69166Smrgelse
476648e69166Smrg  ac_check_lib_save_LIBS=$LIBS
476748e69166SmrgLIBS="-lkstat  $LIBS"
476848e69166Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
476948e69166Smrg/* end confdefs.h.  */
4770fd0c672fSmrg
477148e69166Smrg/* Override any GCC internal prototype to avoid an error.
477248e69166Smrg   Use char because int might match the return type of a GCC
477348e69166Smrg   builtin and then its argument prototype would still apply.  */
477448e69166Smrg#ifdef __cplusplus
477548e69166Smrgextern "C"
477648e69166Smrg#endif
477748e69166Smrgchar kstat_open ();
477848e69166Smrgint
477948e69166Smrgmain ()
478048e69166Smrg{
478148e69166Smrgreturn kstat_open ();
478248e69166Smrg  ;
478348e69166Smrg  return 0;
478448e69166Smrg}
478548e69166Smrg_ACEOF
478648e69166Smrgif ac_fn_c_try_link "$LINENO"; then :
478748e69166Smrg  ac_cv_lib_kstat_kstat_open=yes
478848e69166Smrgelse
478948e69166Smrg  ac_cv_lib_kstat_kstat_open=no
479048e69166Smrgfi
479148e69166Smrgrm -f core conftest.err conftest.$ac_objext \
479248e69166Smrg    conftest$ac_exeext conftest.$ac_ext
479348e69166SmrgLIBS=$ac_check_lib_save_LIBS
479448e69166Smrgfi
479548e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
479648e69166Smrg$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
479748e69166Smrgif test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
479848e69166Smrg  cat >>confdefs.h <<_ACEOF
479948e69166Smrg#define HAVE_LIBKSTAT 1
480048e69166Smrg_ACEOF
480148e69166Smrg
480248e69166Smrg  LIBS="-lkstat $LIBS"
480348e69166Smrg
480448e69166Smrgfi
480548e69166Smrg
480648e69166Smrg
480748e69166Smrg# Checks for pkg-config packages
480848e69166Smrg
480948e69166Smrgpkg_failed=no
481048e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLOAD" >&5
481148e69166Smrg$as_echo_n "checking for XLOAD... " >&6; }
481248e69166Smrg
481348e69166Smrgif test -n "$XLOAD_CFLAGS"; then
481448e69166Smrg    pkg_cv_XLOAD_CFLAGS="$XLOAD_CFLAGS"
481548e69166Smrg elif test -n "$PKG_CONFIG"; then
481648e69166Smrg    if test -n "$PKG_CONFIG" && \
481748e69166Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11\""; } >&5
481848e69166Smrg  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11") 2>&5
4819fd0c672fSmrg  ac_status=$?
482048e69166Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
482148e69166Smrg  test $ac_status = 0; }; then
482248e69166Smrg  pkg_cv_XLOAD_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt x11" 2>/dev/null`
4823fd0c672fSmrgelse
4824fd0c672fSmrg  pkg_failed=yes
4825fd0c672fSmrgfi
482648e69166Smrg else
482748e69166Smrg    pkg_failed=untried
4828fd0c672fSmrgfi
482948e69166Smrgif test -n "$XLOAD_LIBS"; then
483048e69166Smrg    pkg_cv_XLOAD_LIBS="$XLOAD_LIBS"
483148e69166Smrg elif test -n "$PKG_CONFIG"; then
483248e69166Smrg    if test -n "$PKG_CONFIG" && \
483348e69166Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11\""; } >&5
483448e69166Smrg  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11") 2>&5
4835fd0c672fSmrg  ac_status=$?
483648e69166Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
483748e69166Smrg  test $ac_status = 0; }; then
483848e69166Smrg  pkg_cv_XLOAD_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt x11" 2>/dev/null`
4839fd0c672fSmrgelse
4840fd0c672fSmrg  pkg_failed=yes
4841fd0c672fSmrgfi
484248e69166Smrg else
484348e69166Smrg    pkg_failed=untried
4844fd0c672fSmrgfi
4845fd0c672fSmrg
484648e69166Smrg
484748e69166Smrg
4848fd0c672fSmrgif test $pkg_failed = yes; then
484948e69166Smrg
485048e69166Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
485148e69166Smrg        _pkg_short_errors_supported=yes
485248e69166Smrgelse
485348e69166Smrg        _pkg_short_errors_supported=no
485448e69166Smrgfi
485548e69166Smrg        if test $_pkg_short_errors_supported = yes; then
485648e69166Smrg	        XLOAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 xmu xt x11" 2>&1`
485748e69166Smrg        else
485848e69166Smrg	        XLOAD_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 xmu xt x11" 2>&1`
485948e69166Smrg        fi
4860fd0c672fSmrg	# Put the nasty error message in config.log where it belongs
486148e69166Smrg	echo "$XLOAD_PKG_ERRORS" >&5
4862fd0c672fSmrg
486348e69166Smrg	as_fn_error $? "Package requirements (xaw7 xmu xt x11) were not met:
486448e69166Smrg
486548e69166Smrg$XLOAD_PKG_ERRORS
4866fd0c672fSmrg
4867fd0c672fSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
4868fd0c672fSmrginstalled software in a non-standard prefix.
4869fd0c672fSmrg
487048e69166SmrgAlternatively, you may set the environment variables XLOAD_CFLAGS
487148e69166Smrgand XLOAD_LIBS to avoid the need to call pkg-config.
487248e69166SmrgSee the pkg-config man page for more details.
487348e69166Smrg" "$LINENO" 5
4874fd0c672fSmrgelif test $pkg_failed = untried; then
487548e69166Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
487648e69166Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
487748e69166Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
4878fd0c672fSmrgis in your PATH or set the PKG_CONFIG environment variable to the full
4879fd0c672fSmrgpath to pkg-config.
4880fd0c672fSmrg
488148e69166SmrgAlternatively, you may set the environment variables XLOAD_CFLAGS
488248e69166Smrgand XLOAD_LIBS to avoid the need to call pkg-config.
488348e69166SmrgSee the pkg-config man page for more details.
4884fd0c672fSmrg
488548e69166SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
488648e69166SmrgSee \`config.log' for more details" "$LINENO" 5; }
4887fd0c672fSmrgelse
488848e69166Smrg	XLOAD_CFLAGS=$pkg_cv_XLOAD_CFLAGS
488948e69166Smrg	XLOAD_LIBS=$pkg_cv_XLOAD_LIBS
489048e69166Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
489148e69166Smrg$as_echo "yes" >&6; }
4892fd0c672fSmrg	:
4893fd0c672fSmrgfi
4894fd0c672fSmrg
4895fd0c672fSmrg
489648e69166Smrgpkg_failed=no
489748e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
489848e69166Smrg$as_echo_n "checking for APPDEFS... " >&6; }
489948e69166Smrg
490048e69166Smrgif test -n "$APPDEFS_CFLAGS"; then
490148e69166Smrg    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
490248e69166Smrg elif test -n "$PKG_CONFIG"; then
490348e69166Smrg    if test -n "$PKG_CONFIG" && \
490448e69166Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
490548e69166Smrg  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
490648e69166Smrg  ac_status=$?
490748e69166Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
490848e69166Smrg  test $ac_status = 0; }; then
490948e69166Smrg  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
4910fd0c672fSmrgelse
491148e69166Smrg  pkg_failed=yes
4912fd0c672fSmrgfi
491348e69166Smrg else
491448e69166Smrg    pkg_failed=untried
4915fd0c672fSmrgfi
491648e69166Smrgif test -n "$APPDEFS_LIBS"; then
491748e69166Smrg    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
491848e69166Smrg elif test -n "$PKG_CONFIG"; then
491948e69166Smrg    if test -n "$PKG_CONFIG" && \
492048e69166Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
492148e69166Smrg  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
492248e69166Smrg  ac_status=$?
492348e69166Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
492448e69166Smrg  test $ac_status = 0; }; then
492548e69166Smrg  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
492648e69166Smrgelse
492748e69166Smrg  pkg_failed=yes
4928fd0c672fSmrgfi
492948e69166Smrg else
493048e69166Smrg    pkg_failed=untried
4931fd0c672fSmrgfi
4932fd0c672fSmrg
4933fd0c672fSmrg
4934fd0c672fSmrg
493548e69166Smrgif test $pkg_failed = yes; then
4936fd0c672fSmrg
493748e69166Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
493848e69166Smrg        _pkg_short_errors_supported=yes
493948e69166Smrgelse
494048e69166Smrg        _pkg_short_errors_supported=no
4941fd0c672fSmrgfi
494248e69166Smrg        if test $_pkg_short_errors_supported = yes; then
494348e69166Smrg	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1`
494448e69166Smrg        else
494548e69166Smrg	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1`
494648e69166Smrg        fi
494748e69166Smrg	# Put the nasty error message in config.log where it belongs
494848e69166Smrg	echo "$APPDEFS_PKG_ERRORS" >&5
4949fd0c672fSmrg
495048e69166Smrg	as_fn_error $? "Package requirements (xt) were not met:
4951fd0c672fSmrg
495248e69166Smrg$APPDEFS_PKG_ERRORS
4953fd0c672fSmrg
495448e69166SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
495548e69166Smrginstalled software in a non-standard prefix.
4956fd0c672fSmrg
495748e69166SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS
495848e69166Smrgand APPDEFS_LIBS to avoid the need to call pkg-config.
495948e69166SmrgSee the pkg-config man page for more details.
496048e69166Smrg" "$LINENO" 5
496148e69166Smrgelif test $pkg_failed = untried; then
496248e69166Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
496348e69166Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
496448e69166Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
496548e69166Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
496648e69166Smrgpath to pkg-config.
4967fd0c672fSmrg
496848e69166SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS
496948e69166Smrgand APPDEFS_LIBS to avoid the need to call pkg-config.
497048e69166SmrgSee the pkg-config man page for more details.
4971fd0c672fSmrg
497248e69166SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
497348e69166SmrgSee \`config.log' for more details" "$LINENO" 5; }
4974fd0c672fSmrgelse
497548e69166Smrg	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
497648e69166Smrg	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
497748e69166Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
497848e69166Smrg$as_echo "yes" >&6; }
497948e69166Smrg	:
498048e69166Smrgfi
498148e69166Smrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
4982fd0c672fSmrg
498348e69166Smrg# Check whether --with-appdefaultdir was given.
498448e69166Smrgif test "${with_appdefaultdir+set}" = set; then :
498548e69166Smrg  withval=$with_appdefaultdir; appdefaultdir="$withval"
498648e69166Smrgelse
498748e69166Smrg  appdefaultdir="${xt_appdefaultdir}"
498848e69166Smrgfi
4989fd0c672fSmrg
4990fd0c672fSmrg
4991fd0c672fSmrg
4992fd0c672fSmrg
499348e69166Smrgac_config_files="$ac_config_files Makefile"
4994fd0c672fSmrg
4995fd0c672fSmrgcat >confcache <<\_ACEOF
4996fd0c672fSmrg# This file is a shell script that caches the results of configure
4997fd0c672fSmrg# tests run on this system so they can be shared between configure
4998fd0c672fSmrg# scripts and configure runs, see configure's option --config-cache.
4999fd0c672fSmrg# It is not useful on other systems.  If it contains results you don't
5000fd0c672fSmrg# want to keep, you may remove or edit it.
5001fd0c672fSmrg#
5002fd0c672fSmrg# config.status only pays attention to the cache file if you give it
5003fd0c672fSmrg# the --recheck option to rerun configure.
5004fd0c672fSmrg#
5005fd0c672fSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
5006fd0c672fSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
5007fd0c672fSmrg# following values.
5008fd0c672fSmrg
5009fd0c672fSmrg_ACEOF
5010fd0c672fSmrg
5011fd0c672fSmrg# The following way of writing the cache mishandles newlines in values,
5012fd0c672fSmrg# but we know of no workaround that is simple, portable, and efficient.
501348e69166Smrg# So, we kill variables containing newlines.
5014fd0c672fSmrg# Ultrix sh set writes to stderr and can't be redirected directly,
5015fd0c672fSmrg# and sets the high bit in the cache file unless we assign to the vars.
501648e69166Smrg(
501748e69166Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
501848e69166Smrg    eval ac_val=\$$ac_var
501948e69166Smrg    case $ac_val in #(
502048e69166Smrg    *${as_nl}*)
502148e69166Smrg      case $ac_var in #(
502248e69166Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
502348e69166Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
502448e69166Smrg      esac
502548e69166Smrg      case $ac_var in #(
502648e69166Smrg      _ | IFS | as_nl) ;; #(
502748e69166Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
502848e69166Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
502948e69166Smrg      esac ;;
503048e69166Smrg    esac
503148e69166Smrg  done
503248e69166Smrg
5033fd0c672fSmrg  (set) 2>&1 |
503448e69166Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
503548e69166Smrg    *${as_nl}ac_space=\ *)
503648e69166Smrg      # `set' does not quote correctly, so add quotes: double-quote
503748e69166Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
5038fd0c672fSmrg      sed -n \
5039fd0c672fSmrg	"s/'/'\\\\''/g;
5040fd0c672fSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
504148e69166Smrg      ;; #(
5042fd0c672fSmrg    *)
5043fd0c672fSmrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
504448e69166Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5045fd0c672fSmrg      ;;
504648e69166Smrg    esac |
504748e69166Smrg    sort
504848e69166Smrg) |
5049fd0c672fSmrg  sed '
505048e69166Smrg     /^ac_cv_env_/b end
5051fd0c672fSmrg     t clear
505248e69166Smrg     :clear
5053fd0c672fSmrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5054fd0c672fSmrg     t end
505548e69166Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
505648e69166Smrg     :end' >>confcache
505748e69166Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
505848e69166Smrg  if test -w "$cache_file"; then
505948e69166Smrg    if test "x$cache_file" != "x/dev/null"; then
506048e69166Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
506148e69166Smrg$as_echo "$as_me: updating cache $cache_file" >&6;}
506248e69166Smrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
506348e69166Smrg	cat confcache >"$cache_file"
506448e69166Smrg      else
506548e69166Smrg        case $cache_file in #(
506648e69166Smrg        */* | ?:*)
506748e69166Smrg	  mv -f confcache "$cache_file"$$ &&
506848e69166Smrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
506948e69166Smrg        *)
507048e69166Smrg	  mv -f confcache "$cache_file" ;;
507148e69166Smrg	esac
507248e69166Smrg      fi
507348e69166Smrg    fi
5074fd0c672fSmrg  else
507548e69166Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
507648e69166Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5077fd0c672fSmrg  fi
5078fd0c672fSmrgfi
5079fd0c672fSmrgrm -f confcache
5080fd0c672fSmrg
5081fd0c672fSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
5082fd0c672fSmrg# Let make expand exec_prefix.
5083fd0c672fSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5084fd0c672fSmrg
5085fd0c672fSmrgDEFS=-DHAVE_CONFIG_H
5086fd0c672fSmrg
5087fd0c672fSmrgac_libobjs=
5088fd0c672fSmrgac_ltlibobjs=
508948e69166SmrgU=
5090fd0c672fSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5091fd0c672fSmrg  # 1. Remove the extension, and $U if already installed.
509248e69166Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
509348e69166Smrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
509448e69166Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
509548e69166Smrg  #    will be set to the directory where LIBOBJS objects are built.
509648e69166Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
509748e69166Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5098fd0c672fSmrgdone
5099fd0c672fSmrgLIBOBJS=$ac_libobjs
5100fd0c672fSmrg
5101fd0c672fSmrgLTLIBOBJS=$ac_ltlibobjs
5102fd0c672fSmrg
5103fd0c672fSmrg
510448e69166Smrg if test -n "$EXEEXT"; then
510548e69166Smrg  am__EXEEXT_TRUE=
510648e69166Smrg  am__EXEEXT_FALSE='#'
510748e69166Smrgelse
510848e69166Smrg  am__EXEEXT_TRUE='#'
510948e69166Smrg  am__EXEEXT_FALSE=
511048e69166Smrgfi
511148e69166Smrg
5112fd0c672fSmrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
511348e69166Smrg  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
511448e69166SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
5115fd0c672fSmrgfi
5116fd0c672fSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
511748e69166Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
511848e69166SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
5119fd0c672fSmrgfi
5120fd0c672fSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
512148e69166Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
512248e69166SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
5123fd0c672fSmrgfi
512448e69166Smrgif test -z "${USE_GETTEXT_TRUE}" && test -z "${USE_GETTEXT_FALSE}"; then
512548e69166Smrg  as_fn_error $? "conditional \"USE_GETTEXT\" was never defined.
512648e69166SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
5127fd0c672fSmrgfi
5128fd0c672fSmrg
512948e69166Smrg: "${CONFIG_STATUS=./config.status}"
513048e69166Smrgac_write_fail=0
5131fd0c672fSmrgac_clean_files_save=$ac_clean_files
5132fd0c672fSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
513348e69166Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
513448e69166Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
513548e69166Smrgas_write_fail=0
513648e69166Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5137fd0c672fSmrg#! $SHELL
5138fd0c672fSmrg# Generated by $as_me.
5139fd0c672fSmrg# Run this file to recreate the current configuration.
5140fd0c672fSmrg# Compiler output produced by configure, useful for debugging
5141fd0c672fSmrg# configure, is in config.log if it exists.
5142fd0c672fSmrg
5143fd0c672fSmrgdebug=false
5144fd0c672fSmrgac_cs_recheck=false
5145fd0c672fSmrgac_cs_silent=false
5146fd0c672fSmrg
514748e69166SmrgSHELL=\${CONFIG_SHELL-$SHELL}
514848e69166Smrgexport SHELL
514948e69166Smrg_ASEOF
515048e69166Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
515148e69166Smrg## -------------------- ##
515248e69166Smrg## M4sh Initialization. ##
515348e69166Smrg## -------------------- ##
515448e69166Smrg
515548e69166Smrg# Be more Bourne compatible
515648e69166SmrgDUALCASE=1; export DUALCASE # for MKS sh
515748e69166Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5158fd0c672fSmrg  emulate sh
5159fd0c672fSmrg  NULLCMD=:
516048e69166Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5161fd0c672fSmrg  # is contrary to our usage.  Disable this feature.
5162fd0c672fSmrg  alias -g '${1+"$@"}'='"$@"'
516348e69166Smrg  setopt NO_GLOB_SUBST
516448e69166Smrgelse
516548e69166Smrg  case `(set -o) 2>/dev/null` in #(
516648e69166Smrg  *posix*) :
516748e69166Smrg    set -o posix ;; #(
516848e69166Smrg  *) :
516948e69166Smrg     ;;
517048e69166Smrgesac
5171fd0c672fSmrgfi
5172fd0c672fSmrg
517348e69166Smrg
517448e69166Smrgas_nl='
517548e69166Smrg'
517648e69166Smrgexport as_nl
517748e69166Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
517848e69166Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
517948e69166Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
518048e69166Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
518148e69166Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
518248e69166Smrg# but without wasting forks for bash or zsh.
518348e69166Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
518448e69166Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
518548e69166Smrg  as_echo='print -r --'
518648e69166Smrg  as_echo_n='print -rn --'
518748e69166Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
518848e69166Smrg  as_echo='printf %s\n'
518948e69166Smrg  as_echo_n='printf %s'
5190fd0c672fSmrgelse
519148e69166Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
519248e69166Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
519348e69166Smrg    as_echo_n='/usr/ucb/echo -n'
519448e69166Smrg  else
519548e69166Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
519648e69166Smrg    as_echo_n_body='eval
519748e69166Smrg      arg=$1;
519848e69166Smrg      case $arg in #(
519948e69166Smrg      *"$as_nl"*)
520048e69166Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
520148e69166Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
520248e69166Smrg      esac;
520348e69166Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
520448e69166Smrg    '
520548e69166Smrg    export as_echo_n_body
520648e69166Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
520748e69166Smrg  fi
520848e69166Smrg  export as_echo_body
520948e69166Smrg  as_echo='sh -c $as_echo_body as_echo'
5210fd0c672fSmrgfi
5211fd0c672fSmrg
521248e69166Smrg# The user is always right.
521348e69166Smrgif test "${PATH_SEPARATOR+set}" != set; then
521448e69166Smrg  PATH_SEPARATOR=:
521548e69166Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
521648e69166Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
521748e69166Smrg      PATH_SEPARATOR=';'
521848e69166Smrg  }
521948e69166Smrgfi
522048e69166Smrg
522148e69166Smrg
522248e69166Smrg# IFS
522348e69166Smrg# We need space, tab and new line, in precisely that order.  Quoting is
522448e69166Smrg# there to prevent editors from complaining about space-tab.
522548e69166Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
522648e69166Smrg# splitting by setting IFS to empty value.)
522748e69166SmrgIFS=" ""	$as_nl"
522848e69166Smrg
522948e69166Smrg# Find who we are.  Look in the path if we contain no directory separator.
523048e69166Smrgas_myself=
523148e69166Smrgcase $0 in #((
523248e69166Smrg  *[\\/]* ) as_myself=$0 ;;
523348e69166Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
523448e69166Smrgfor as_dir in $PATH
523548e69166Smrgdo
523648e69166Smrg  IFS=$as_save_IFS
523748e69166Smrg  test -z "$as_dir" && as_dir=.
523848e69166Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
523948e69166Smrg  done
524048e69166SmrgIFS=$as_save_IFS
5241fd0c672fSmrg
524248e69166Smrg     ;;
524348e69166Smrgesac
524448e69166Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
524548e69166Smrg# in which case we are not to be found in the path.
524648e69166Smrgif test "x$as_myself" = x; then
524748e69166Smrg  as_myself=$0
524848e69166Smrgfi
524948e69166Smrgif test ! -f "$as_myself"; then
525048e69166Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
525148e69166Smrg  exit 1
525248e69166Smrgfi
525348e69166Smrg
525448e69166Smrg# Unset variables that we do not need and which cause bugs (e.g. in
525548e69166Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
525648e69166Smrg# suppresses any "Segmentation fault" message there.  '((' could
525748e69166Smrg# trigger a bug in pdksh 5.2.14.
525848e69166Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
525948e69166Smrgdo eval test x\${$as_var+set} = xset \
526048e69166Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
526148e69166Smrgdone
5262fd0c672fSmrgPS1='$ '
5263fd0c672fSmrgPS2='> '
5264fd0c672fSmrgPS4='+ '
5265fd0c672fSmrg
5266fd0c672fSmrg# NLS nuisances.
526748e69166SmrgLC_ALL=C
526848e69166Smrgexport LC_ALL
526948e69166SmrgLANGUAGE=C
527048e69166Smrgexport LANGUAGE
527148e69166Smrg
527248e69166Smrg# CDPATH.
527348e69166Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
527448e69166Smrg
527548e69166Smrg
527648e69166Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
527748e69166Smrg# ----------------------------------------
527848e69166Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
527948e69166Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
528048e69166Smrg# script with STATUS, using 1 if that was 0.
528148e69166Smrgas_fn_error ()
528248e69166Smrg{
528348e69166Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
528448e69166Smrg  if test "$4"; then
528548e69166Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
528648e69166Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5287fd0c672fSmrg  fi
528848e69166Smrg  $as_echo "$as_me: error: $2" >&2
528948e69166Smrg  as_fn_exit $as_status
529048e69166Smrg} # as_fn_error
529148e69166Smrg
529248e69166Smrg
529348e69166Smrg# as_fn_set_status STATUS
529448e69166Smrg# -----------------------
529548e69166Smrg# Set $? to STATUS, without forking.
529648e69166Smrgas_fn_set_status ()
529748e69166Smrg{
529848e69166Smrg  return $1
529948e69166Smrg} # as_fn_set_status
530048e69166Smrg
530148e69166Smrg# as_fn_exit STATUS
530248e69166Smrg# -----------------
530348e69166Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
530448e69166Smrgas_fn_exit ()
530548e69166Smrg{
530648e69166Smrg  set +e
530748e69166Smrg  as_fn_set_status $1
530848e69166Smrg  exit $1
530948e69166Smrg} # as_fn_exit
531048e69166Smrg
531148e69166Smrg# as_fn_unset VAR
531248e69166Smrg# ---------------
531348e69166Smrg# Portably unset VAR.
531448e69166Smrgas_fn_unset ()
531548e69166Smrg{
531648e69166Smrg  { eval $1=; unset $1;}
531748e69166Smrg}
531848e69166Smrgas_unset=as_fn_unset
531948e69166Smrg# as_fn_append VAR VALUE
532048e69166Smrg# ----------------------
532148e69166Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
532248e69166Smrg# advantage of any shell optimizations that allow amortized linear growth over
532348e69166Smrg# repeated appends, instead of the typical quadratic growth present in naive
532448e69166Smrg# implementations.
532548e69166Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
532648e69166Smrg  eval 'as_fn_append ()
532748e69166Smrg  {
532848e69166Smrg    eval $1+=\$2
532948e69166Smrg  }'
533048e69166Smrgelse
533148e69166Smrg  as_fn_append ()
533248e69166Smrg  {
533348e69166Smrg    eval $1=\$$1\$2
533448e69166Smrg  }
533548e69166Smrgfi # as_fn_append
533648e69166Smrg
533748e69166Smrg# as_fn_arith ARG...
533848e69166Smrg# ------------------
533948e69166Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
534048e69166Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
534148e69166Smrg# must be portable across $(()) and expr.
534248e69166Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
534348e69166Smrg  eval 'as_fn_arith ()
534448e69166Smrg  {
534548e69166Smrg    as_val=$(( $* ))
534648e69166Smrg  }'
534748e69166Smrgelse
534848e69166Smrg  as_fn_arith ()
534948e69166Smrg  {
535048e69166Smrg    as_val=`expr "$@" || test $? -eq 1`
535148e69166Smrg  }
535248e69166Smrgfi # as_fn_arith
5353fd0c672fSmrg
535448e69166Smrg
535548e69166Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
535648e69166Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5357fd0c672fSmrg  as_expr=expr
5358fd0c672fSmrgelse
5359fd0c672fSmrg  as_expr=false
5360fd0c672fSmrgfi
5361fd0c672fSmrg
536248e69166Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5363fd0c672fSmrg  as_basename=basename
5364fd0c672fSmrgelse
5365fd0c672fSmrg  as_basename=false
5366fd0c672fSmrgfi
5367fd0c672fSmrg
536848e69166Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
536948e69166Smrg  as_dirname=dirname
537048e69166Smrgelse
537148e69166Smrg  as_dirname=false
537248e69166Smrgfi
5373fd0c672fSmrg
537448e69166Smrgas_me=`$as_basename -- "$0" ||
5375fd0c672fSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5376fd0c672fSmrg	 X"$0" : 'X\(//\)$' \| \
537748e69166Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
537848e69166Smrg$as_echo X/"$0" |
537948e69166Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
538048e69166Smrg	    s//\1/
538148e69166Smrg	    q
538248e69166Smrg	  }
538348e69166Smrg	  /^X\/\(\/\/\)$/{
538448e69166Smrg	    s//\1/
538548e69166Smrg	    q
538648e69166Smrg	  }
538748e69166Smrg	  /^X\/\(\/\).*/{
538848e69166Smrg	    s//\1/
538948e69166Smrg	    q
539048e69166Smrg	  }
539148e69166Smrg	  s/.*/./; q'`
5392fd0c672fSmrg
5393fd0c672fSmrg# Avoid depending upon Character Ranges.
5394fd0c672fSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
5395fd0c672fSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5396fd0c672fSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
5397fd0c672fSmrgas_cr_digits='0123456789'
5398fd0c672fSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
5399fd0c672fSmrg
540048e69166SmrgECHO_C= ECHO_N= ECHO_T=
540148e69166Smrgcase `echo -n x` in #(((((
540248e69166Smrg-n*)
540348e69166Smrg  case `echo 'xy\c'` in
540448e69166Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
540548e69166Smrg  xy)  ECHO_C='\c';;
540648e69166Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
540748e69166Smrg       ECHO_T='	';;
540848e69166Smrg  esac;;
540948e69166Smrg*)
541048e69166Smrg  ECHO_N='-n';;
5411fd0c672fSmrgesac
5412fd0c672fSmrg
541348e69166Smrgrm -f conf$$ conf$$.exe conf$$.file
541448e69166Smrgif test -d conf$$.dir; then
541548e69166Smrg  rm -f conf$$.dir/conf$$.file
5416fd0c672fSmrgelse
541748e69166Smrg  rm -f conf$$.dir
541848e69166Smrg  mkdir conf$$.dir 2>/dev/null
5419fd0c672fSmrgfi
542048e69166Smrgif (echo >conf$$.file) 2>/dev/null; then
542148e69166Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
5422fd0c672fSmrg    as_ln_s='ln -s'
542348e69166Smrg    # ... but there are two gotchas:
542448e69166Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
542548e69166Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
542648e69166Smrg    # In both cases, we have to default to `cp -p'.
542748e69166Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
542848e69166Smrg      as_ln_s='cp -p'
542948e69166Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
543048e69166Smrg    as_ln_s=ln
543148e69166Smrg  else
543248e69166Smrg    as_ln_s='cp -p'
5433fd0c672fSmrg  fi
5434fd0c672fSmrgelse
5435fd0c672fSmrg  as_ln_s='cp -p'
5436fd0c672fSmrgfi
543748e69166Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
543848e69166Smrgrmdir conf$$.dir 2>/dev/null
543948e69166Smrg
544048e69166Smrg
544148e69166Smrg# as_fn_mkdir_p
544248e69166Smrg# -------------
544348e69166Smrg# Create "$as_dir" as a directory, including parents if necessary.
544448e69166Smrgas_fn_mkdir_p ()
544548e69166Smrg{
544648e69166Smrg
544748e69166Smrg  case $as_dir in #(
544848e69166Smrg  -*) as_dir=./$as_dir;;
544948e69166Smrg  esac
545048e69166Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
545148e69166Smrg    as_dirs=
545248e69166Smrg    while :; do
545348e69166Smrg      case $as_dir in #(
545448e69166Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
545548e69166Smrg      *) as_qdir=$as_dir;;
545648e69166Smrg      esac
545748e69166Smrg      as_dirs="'$as_qdir' $as_dirs"
545848e69166Smrg      as_dir=`$as_dirname -- "$as_dir" ||
545948e69166Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
546048e69166Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
546148e69166Smrg	 X"$as_dir" : 'X\(//\)$' \| \
546248e69166Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
546348e69166Smrg$as_echo X"$as_dir" |
546448e69166Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
546548e69166Smrg	    s//\1/
546648e69166Smrg	    q
546748e69166Smrg	  }
546848e69166Smrg	  /^X\(\/\/\)[^/].*/{
546948e69166Smrg	    s//\1/
547048e69166Smrg	    q
547148e69166Smrg	  }
547248e69166Smrg	  /^X\(\/\/\)$/{
547348e69166Smrg	    s//\1/
547448e69166Smrg	    q
547548e69166Smrg	  }
547648e69166Smrg	  /^X\(\/\).*/{
547748e69166Smrg	    s//\1/
547848e69166Smrg	    q
547948e69166Smrg	  }
548048e69166Smrg	  s/.*/./; q'`
548148e69166Smrg      test -d "$as_dir" && break
548248e69166Smrg    done
548348e69166Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
548448e69166Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5485fd0c672fSmrg
548648e69166Smrg
548748e69166Smrg} # as_fn_mkdir_p
5488fd0c672fSmrgif mkdir -p . 2>/dev/null; then
548948e69166Smrg  as_mkdir_p='mkdir -p "$as_dir"'
5490fd0c672fSmrgelse
5491fd0c672fSmrg  test -d ./-p && rmdir ./-p
5492fd0c672fSmrg  as_mkdir_p=false
5493fd0c672fSmrgfi
5494fd0c672fSmrg
549548e69166Smrgif test -x / >/dev/null 2>&1; then
549648e69166Smrg  as_test_x='test -x'
549748e69166Smrgelse
549848e69166Smrg  if ls -dL / >/dev/null 2>&1; then
549948e69166Smrg    as_ls_L_option=L
550048e69166Smrg  else
550148e69166Smrg    as_ls_L_option=
550248e69166Smrg  fi
550348e69166Smrg  as_test_x='
550448e69166Smrg    eval sh -c '\''
550548e69166Smrg      if test -d "$1"; then
550648e69166Smrg	test -d "$1/.";
550748e69166Smrg      else
550848e69166Smrg	case $1 in #(
550948e69166Smrg	-*)set "./$1";;
551048e69166Smrg	esac;
551148e69166Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
551248e69166Smrg	???[sx]*):;;*)false;;esac;fi
551348e69166Smrg    '\'' sh
551448e69166Smrg  '
551548e69166Smrgfi
551648e69166Smrgas_executable_p=$as_test_x
5517fd0c672fSmrg
5518fd0c672fSmrg# Sed expression to map a string onto a valid CPP name.
5519fd0c672fSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5520fd0c672fSmrg
5521fd0c672fSmrg# Sed expression to map a string onto a valid variable name.
5522fd0c672fSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5523fd0c672fSmrg
5524fd0c672fSmrg
5525fd0c672fSmrgexec 6>&1
552648e69166Smrg## ----------------------------------- ##
552748e69166Smrg## Main body of $CONFIG_STATUS script. ##
552848e69166Smrg## ----------------------------------- ##
552948e69166Smrg_ASEOF
553048e69166Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
553148e69166Smrg
553248e69166Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
553348e69166Smrg# Save the log message, to keep $0 and so on meaningful, and to
5534fd0c672fSmrg# report actual input values of CONFIG_FILES etc. instead of their
553548e69166Smrg# values after options handling.
553648e69166Smrgac_log="
553748e69166SmrgThis file was extended by xload $as_me 1.1.0, which was
553848e69166Smrggenerated by GNU Autoconf 2.68.  Invocation command line was
5539fd0c672fSmrg
5540fd0c672fSmrg  CONFIG_FILES    = $CONFIG_FILES
5541fd0c672fSmrg  CONFIG_HEADERS  = $CONFIG_HEADERS
5542fd0c672fSmrg  CONFIG_LINKS    = $CONFIG_LINKS
5543fd0c672fSmrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
5544fd0c672fSmrg  $ $0 $@
5545fd0c672fSmrg
554648e69166Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
554748e69166Smrg"
554848e69166Smrg
5549fd0c672fSmrg_ACEOF
5550fd0c672fSmrg
555148e69166Smrgcase $ac_config_files in *"
555248e69166Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
555348e69166Smrgesac
5554fd0c672fSmrg
555548e69166Smrgcase $ac_config_headers in *"
555648e69166Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
555748e69166Smrgesac
5558fd0c672fSmrg
5559fd0c672fSmrg
556048e69166Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
556148e69166Smrg# Files that config.status was made for.
556248e69166Smrgconfig_files="$ac_config_files"
556348e69166Smrgconfig_headers="$ac_config_headers"
556448e69166Smrgconfig_commands="$ac_config_commands"
5565fd0c672fSmrg
556648e69166Smrg_ACEOF
5567fd0c672fSmrg
556848e69166Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5569fd0c672fSmrgac_cs_usage="\
557048e69166Smrg\`$as_me' instantiates files and other configuration actions
557148e69166Smrgfrom templates according to the current configuration.  Unless the files
557248e69166Smrgand actions are specified as TAGs, all are instantiated by default.
5573fd0c672fSmrg
557448e69166SmrgUsage: $0 [OPTION]... [TAG]...
5575fd0c672fSmrg
5576fd0c672fSmrg  -h, --help       print this help, then exit
557748e69166Smrg  -V, --version    print version number and configuration settings, then exit
557848e69166Smrg      --config     print configuration, then exit
557948e69166Smrg  -q, --quiet, --silent
558048e69166Smrg                   do not print progress messages
5581fd0c672fSmrg  -d, --debug      don't remove temporary files
5582fd0c672fSmrg      --recheck    update $as_me by reconfiguring in the same conditions
558348e69166Smrg      --file=FILE[:TEMPLATE]
558448e69166Smrg                   instantiate the configuration file FILE
558548e69166Smrg      --header=FILE[:TEMPLATE]
558648e69166Smrg                   instantiate the configuration header FILE
5587fd0c672fSmrg
5588fd0c672fSmrgConfiguration files:
5589fd0c672fSmrg$config_files
5590fd0c672fSmrg
5591fd0c672fSmrgConfiguration headers:
5592fd0c672fSmrg$config_headers
5593fd0c672fSmrg
5594fd0c672fSmrgConfiguration commands:
5595fd0c672fSmrg$config_commands
5596fd0c672fSmrg
559748e69166SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
5598fd0c672fSmrg
559948e69166Smrg_ACEOF
560048e69166Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
560148e69166Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5602fd0c672fSmrgac_cs_version="\\
560348e69166Smrgxload config.status 1.1.0
560448e69166Smrgconfigured by $0, generated by GNU Autoconf 2.68,
560548e69166Smrg  with options \\"\$ac_cs_config\\"
5606fd0c672fSmrg
560748e69166SmrgCopyright (C) 2010 Free Software Foundation, Inc.
5608fd0c672fSmrgThis config.status script is free software; the Free Software Foundation
5609fd0c672fSmrggives unlimited permission to copy, distribute and modify it."
561048e69166Smrg
561148e69166Smrgac_pwd='$ac_pwd'
561248e69166Smrgsrcdir='$srcdir'
561348e69166SmrgINSTALL='$INSTALL'
561448e69166SmrgMKDIR_P='$MKDIR_P'
561548e69166SmrgAWK='$AWK'
561648e69166Smrgtest -n "\$AWK" || AWK=awk
5617fd0c672fSmrg_ACEOF
5618fd0c672fSmrg
561948e69166Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
562048e69166Smrg# The default lists apply if the user does not specify any file.
5621fd0c672fSmrgac_need_defaults=:
5622fd0c672fSmrgwhile test $# != 0
5623fd0c672fSmrgdo
5624fd0c672fSmrg  case $1 in
562548e69166Smrg  --*=?*)
562648e69166Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
562748e69166Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5628fd0c672fSmrg    ac_shift=:
5629fd0c672fSmrg    ;;
563048e69166Smrg  --*=)
563148e69166Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
563248e69166Smrg    ac_optarg=
563348e69166Smrg    ac_shift=:
563448e69166Smrg    ;;
563548e69166Smrg  *)
5636fd0c672fSmrg    ac_option=$1
5637fd0c672fSmrg    ac_optarg=$2
5638fd0c672fSmrg    ac_shift=shift
5639fd0c672fSmrg    ;;
5640fd0c672fSmrg  esac
5641fd0c672fSmrg
5642fd0c672fSmrg  case $ac_option in
5643fd0c672fSmrg  # Handling of the options.
5644fd0c672fSmrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5645fd0c672fSmrg    ac_cs_recheck=: ;;
564648e69166Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
564748e69166Smrg    $as_echo "$ac_cs_version"; exit ;;
564848e69166Smrg  --config | --confi | --conf | --con | --co | --c )
564948e69166Smrg    $as_echo "$ac_cs_config"; exit ;;
565048e69166Smrg  --debug | --debu | --deb | --de | --d | -d )
5651fd0c672fSmrg    debug=: ;;
5652fd0c672fSmrg  --file | --fil | --fi | --f )
5653fd0c672fSmrg    $ac_shift
565448e69166Smrg    case $ac_optarg in
565548e69166Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
565648e69166Smrg    '') as_fn_error $? "missing file argument" ;;
565748e69166Smrg    esac
565848e69166Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
5659fd0c672fSmrg    ac_need_defaults=false;;
5660fd0c672fSmrg  --header | --heade | --head | --hea )
5661fd0c672fSmrg    $ac_shift
566248e69166Smrg    case $ac_optarg in
566348e69166Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
566448e69166Smrg    esac
566548e69166Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5666fd0c672fSmrg    ac_need_defaults=false;;
566748e69166Smrg  --he | --h)
566848e69166Smrg    # Conflict between --help and --header
566948e69166Smrg    as_fn_error $? "ambiguous option: \`$1'
567048e69166SmrgTry \`$0 --help' for more information.";;
567148e69166Smrg  --help | --hel | -h )
567248e69166Smrg    $as_echo "$ac_cs_usage"; exit ;;
5673fd0c672fSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5674fd0c672fSmrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5675fd0c672fSmrg    ac_cs_silent=: ;;
5676fd0c672fSmrg
5677fd0c672fSmrg  # This is an error.
567848e69166Smrg  -*) as_fn_error $? "unrecognized option: \`$1'
567948e69166SmrgTry \`$0 --help' for more information." ;;
5680fd0c672fSmrg
568148e69166Smrg  *) as_fn_append ac_config_targets " $1"
568248e69166Smrg     ac_need_defaults=false ;;
5683fd0c672fSmrg
5684fd0c672fSmrg  esac
5685fd0c672fSmrg  shift
5686fd0c672fSmrgdone
5687fd0c672fSmrg
5688fd0c672fSmrgac_configure_extra_args=
5689fd0c672fSmrg
5690fd0c672fSmrgif $ac_cs_silent; then
5691fd0c672fSmrg  exec 6>/dev/null
5692fd0c672fSmrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
5693fd0c672fSmrgfi
5694fd0c672fSmrg
5695fd0c672fSmrg_ACEOF
569648e69166Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5697fd0c672fSmrgif \$ac_cs_recheck; then
569848e69166Smrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
569948e69166Smrg  shift
570048e69166Smrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
570148e69166Smrg  CONFIG_SHELL='$SHELL'
570248e69166Smrg  export CONFIG_SHELL
570348e69166Smrg  exec "\$@"
5704fd0c672fSmrgfi
5705fd0c672fSmrg
5706fd0c672fSmrg_ACEOF
570748e69166Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
570848e69166Smrgexec 5>>config.log
570948e69166Smrg{
571048e69166Smrg  echo
571148e69166Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
571248e69166Smrg## Running $as_me. ##
571348e69166Smrg_ASBOX
571448e69166Smrg  $as_echo "$ac_log"
571548e69166Smrg} >&5
5716fd0c672fSmrg
571748e69166Smrg_ACEOF
571848e69166Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5719fd0c672fSmrg#
572048e69166Smrg# INIT-COMMANDS
5721fd0c672fSmrg#
5722fd0c672fSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5723fd0c672fSmrg
5724fd0c672fSmrg_ACEOF
5725fd0c672fSmrg
572648e69166Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5727fd0c672fSmrg
572848e69166Smrg# Handling of arguments.
5729fd0c672fSmrgfor ac_config_target in $ac_config_targets
5730fd0c672fSmrgdo
573148e69166Smrg  case $ac_config_target in
573248e69166Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
573348e69166Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
573448e69166Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
573548e69166Smrg
573648e69166Smrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5737fd0c672fSmrg  esac
5738fd0c672fSmrgdone
5739fd0c672fSmrg
574048e69166Smrg
5741fd0c672fSmrg# If the user did not use the arguments to specify the items to instantiate,
5742fd0c672fSmrg# then the envvar interface is used.  Set only those that are not.
5743fd0c672fSmrg# We use the long form for the default assignment because of an extremely
5744fd0c672fSmrg# bizarre bug on SunOS 4.1.3.
5745fd0c672fSmrgif $ac_need_defaults; then
5746fd0c672fSmrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5747fd0c672fSmrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5748fd0c672fSmrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5749fd0c672fSmrgfi
5750fd0c672fSmrg
5751fd0c672fSmrg# Have a temporary directory for convenience.  Make it in the build tree
575248e69166Smrg# simply because there is no reason against having it here, and in addition,
5753fd0c672fSmrg# creating and moving files from /tmp can sometimes cause problems.
575448e69166Smrg# Hook for its removal unless debugging.
575548e69166Smrg# Note that there is a small window in which the directory will not be cleaned:
575648e69166Smrg# after its creation but before its name has been assigned to `$tmp'.
5757fd0c672fSmrg$debug ||
5758fd0c672fSmrg{
575948e69166Smrg  tmp= ac_tmp=
576048e69166Smrg  trap 'exit_status=$?
576148e69166Smrg  : "${ac_tmp:=$tmp}"
576248e69166Smrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
576348e69166Smrg' 0
576448e69166Smrg  trap 'as_fn_exit 1' 1 2 13 15
5765fd0c672fSmrg}
5766fd0c672fSmrg# Create a (secure) tmp directory for tmp files.
5767fd0c672fSmrg
5768fd0c672fSmrg{
576948e69166Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
577048e69166Smrg  test -d "$tmp"
5771fd0c672fSmrg}  ||
5772fd0c672fSmrg{
577348e69166Smrg  tmp=./conf$$-$RANDOM
577448e69166Smrg  (umask 077 && mkdir "$tmp")
577548e69166Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
577648e69166Smrgac_tmp=$tmp
577748e69166Smrg
577848e69166Smrg# Set up the scripts for CONFIG_FILES section.
577948e69166Smrg# No need to generate them if there are no CONFIG_FILES.
578048e69166Smrg# This happens for instance with `./config.status config.h'.
578148e69166Smrgif test -n "$CONFIG_FILES"; then
578248e69166Smrg
578348e69166Smrg
578448e69166Smrgac_cr=`echo X | tr X '\015'`
578548e69166Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
578648e69166Smrg# But we know of no other shell where ac_cr would be empty at this
578748e69166Smrg# point, so we can use a bashism as a fallback.
578848e69166Smrgif test "x$ac_cr" = x; then
578948e69166Smrg  eval ac_cr=\$\'\\r\'
579048e69166Smrgfi
579148e69166Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
579248e69166Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
579348e69166Smrg  ac_cs_awk_cr='\\r'
579448e69166Smrgelse
579548e69166Smrg  ac_cs_awk_cr=$ac_cr
579648e69166Smrgfi
579748e69166Smrg
579848e69166Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
579948e69166Smrg_ACEOF
580048e69166Smrg
580148e69166Smrg
580248e69166Smrg{
580348e69166Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
580448e69166Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
580548e69166Smrg  echo "_ACEOF"
580648e69166Smrg} >conf$$subs.sh ||
580748e69166Smrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
580848e69166Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
580948e69166Smrgac_delim='%!_!# '
581048e69166Smrgfor ac_last_try in false false false false false :; do
581148e69166Smrg  . ./conf$$subs.sh ||
581248e69166Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
581348e69166Smrg
581448e69166Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
581548e69166Smrg  if test $ac_delim_n = $ac_delim_num; then
581648e69166Smrg    break
581748e69166Smrg  elif $ac_last_try; then
581848e69166Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
581948e69166Smrg  else
582048e69166Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
582148e69166Smrg  fi
582248e69166Smrgdone
582348e69166Smrgrm -f conf$$subs.sh
582448e69166Smrg
582548e69166Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
582648e69166Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
582748e69166Smrg_ACEOF
582848e69166Smrgsed -n '
582948e69166Smrgh
583048e69166Smrgs/^/S["/; s/!.*/"]=/
583148e69166Smrgp
583248e69166Smrgg
583348e69166Smrgs/^[^!]*!//
583448e69166Smrg:repl
583548e69166Smrgt repl
583648e69166Smrgs/'"$ac_delim"'$//
583748e69166Smrgt delim
583848e69166Smrg:nl
583948e69166Smrgh
584048e69166Smrgs/\(.\{148\}\)..*/\1/
584148e69166Smrgt more1
584248e69166Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
584348e69166Smrgp
584448e69166Smrgn
584548e69166Smrgb repl
584648e69166Smrg:more1
584748e69166Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
584848e69166Smrgp
584948e69166Smrgg
585048e69166Smrgs/.\{148\}//
585148e69166Smrgt nl
585248e69166Smrg:delim
585348e69166Smrgh
585448e69166Smrgs/\(.\{148\}\)..*/\1/
585548e69166Smrgt more2
585648e69166Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
585748e69166Smrgp
585848e69166Smrgb
585948e69166Smrg:more2
586048e69166Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
586148e69166Smrgp
586248e69166Smrgg
586348e69166Smrgs/.\{148\}//
586448e69166Smrgt delim
586548e69166Smrg' <conf$$subs.awk | sed '
586648e69166Smrg/^[^""]/{
586748e69166Smrg  N
586848e69166Smrg  s/\n//
586948e69166Smrg}
587048e69166Smrg' >>$CONFIG_STATUS || ac_write_fail=1
587148e69166Smrgrm -f conf$$subs.awk
587248e69166Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
587348e69166Smrg_ACAWK
587448e69166Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
587548e69166Smrg  for (key in S) S_is_set[key] = 1
587648e69166Smrg  FS = ""
587748e69166Smrg
587848e69166Smrg}
5879fd0c672fSmrg{
588048e69166Smrg  line = $ 0
588148e69166Smrg  nfields = split(line, field, "@")
588248e69166Smrg  substed = 0
588348e69166Smrg  len = length(field[1])
588448e69166Smrg  for (i = 2; i < nfields; i++) {
588548e69166Smrg    key = field[i]
588648e69166Smrg    keylen = length(key)
588748e69166Smrg    if (S_is_set[key]) {
588848e69166Smrg      value = S[key]
588948e69166Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
589048e69166Smrg      len += length(value) + length(field[++i])
589148e69166Smrg      substed = 1
589248e69166Smrg    } else
589348e69166Smrg      len += 1 + keylen
589448e69166Smrg  }
589548e69166Smrg
589648e69166Smrg  print line
5897fd0c672fSmrg}
5898fd0c672fSmrg
589948e69166Smrg_ACAWK
590048e69166Smrg_ACEOF
590148e69166Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
590248e69166Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
590348e69166Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
590448e69166Smrgelse
590548e69166Smrg  cat
590648e69166Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
590748e69166Smrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5908fd0c672fSmrg_ACEOF
5909fd0c672fSmrg
591048e69166Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
591148e69166Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
591248e69166Smrg# trailing colons and then remove the whole line if VPATH becomes empty
591348e69166Smrg# (actually we leave an empty line to preserve line numbers).
591448e69166Smrgif test "x$srcdir" = x.; then
591548e69166Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
591648e69166Smrgh
591748e69166Smrgs///
591848e69166Smrgs/^/:/
591948e69166Smrgs/[	 ]*$/:/
592048e69166Smrgs/:\$(srcdir):/:/g
592148e69166Smrgs/:\${srcdir}:/:/g
592248e69166Smrgs/:@srcdir@:/:/g
592348e69166Smrgs/^:*//
592448e69166Smrgs/:*$//
592548e69166Smrgx
592648e69166Smrgs/\(=[	 ]*\).*/\1/
592748e69166SmrgG
592848e69166Smrgs/\n//
592948e69166Smrgs/^[^=]*=[	 ]*$//
593048e69166Smrg}'
593148e69166Smrgfi
5932fd0c672fSmrg
593348e69166Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
593448e69166Smrgfi # test -n "$CONFIG_FILES"
5935fd0c672fSmrg
593648e69166Smrg# Set up the scripts for CONFIG_HEADERS section.
593748e69166Smrg# No need to generate them if there are no CONFIG_HEADERS.
593848e69166Smrg# This happens for instance with `./config.status Makefile'.
593948e69166Smrgif test -n "$CONFIG_HEADERS"; then
594048e69166Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
594148e69166SmrgBEGIN {
5942fd0c672fSmrg_ACEOF
5943fd0c672fSmrg
594448e69166Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
594548e69166Smrg# here-document in config.status, that substitutes the proper values into
594648e69166Smrg# config.h.in to produce config.h.
594748e69166Smrg
594848e69166Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
594948e69166Smrg# handling of long lines.
595048e69166Smrgac_delim='%!_!# '
595148e69166Smrgfor ac_last_try in false false :; do
595248e69166Smrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
595348e69166Smrg  if test -z "$ac_tt"; then
595448e69166Smrg    break
595548e69166Smrg  elif $ac_last_try; then
595648e69166Smrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
595748e69166Smrg  else
595848e69166Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5959fd0c672fSmrg  fi
596048e69166Smrgdone
5961fd0c672fSmrg
596248e69166Smrg# For the awk script, D is an array of macro values keyed by name,
596348e69166Smrg# likewise P contains macro parameters if any.  Preserve backslash
596448e69166Smrg# newline sequences.
596548e69166Smrg
596648e69166Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
596748e69166Smrgsed -n '
596848e69166Smrgs/.\{148\}/&'"$ac_delim"'/g
596948e69166Smrgt rset
597048e69166Smrg:rset
597148e69166Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
597248e69166Smrgt def
597348e69166Smrgd
597448e69166Smrg:def
597548e69166Smrgs/\\$//
597648e69166Smrgt bsnl
597748e69166Smrgs/["\\]/\\&/g
597848e69166Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
597948e69166SmrgD["\1"]=" \3"/p
598048e69166Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
598148e69166Smrgd
598248e69166Smrg:bsnl
598348e69166Smrgs/["\\]/\\&/g
598448e69166Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
598548e69166SmrgD["\1"]=" \3\\\\\\n"\\/p
598648e69166Smrgt cont
598748e69166Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
598848e69166Smrgt cont
598948e69166Smrgd
599048e69166Smrg:cont
599148e69166Smrgn
599248e69166Smrgs/.\{148\}/&'"$ac_delim"'/g
599348e69166Smrgt clear
599448e69166Smrg:clear
599548e69166Smrgs/\\$//
599648e69166Smrgt bsnlc
599748e69166Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
599848e69166Smrgd
599948e69166Smrg:bsnlc
600048e69166Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
600148e69166Smrgb cont
600248e69166Smrg' <confdefs.h | sed '
600348e69166Smrgs/'"$ac_delim"'/"\\\
600448e69166Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
600548e69166Smrg
600648e69166Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
600748e69166Smrg  for (key in D) D_is_set[key] = 1
600848e69166Smrg  FS = ""
600948e69166Smrg}
601048e69166Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
601148e69166Smrg  line = \$ 0
601248e69166Smrg  split(line, arg, " ")
601348e69166Smrg  if (arg[1] == "#") {
601448e69166Smrg    defundef = arg[2]
601548e69166Smrg    mac1 = arg[3]
601648e69166Smrg  } else {
601748e69166Smrg    defundef = substr(arg[1], 2)
601848e69166Smrg    mac1 = arg[2]
601948e69166Smrg  }
602048e69166Smrg  split(mac1, mac2, "(") #)
602148e69166Smrg  macro = mac2[1]
602248e69166Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
602348e69166Smrg  if (D_is_set[macro]) {
602448e69166Smrg    # Preserve the white space surrounding the "#".
602548e69166Smrg    print prefix "define", macro P[macro] D[macro]
602648e69166Smrg    next
602748e69166Smrg  } else {
602848e69166Smrg    # Replace #undef with comments.  This is necessary, for example,
602948e69166Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
603048e69166Smrg    # on some systems where configure will not decide to define it.
603148e69166Smrg    if (defundef == "undef") {
603248e69166Smrg      print "/*", prefix defundef, macro, "*/"
603348e69166Smrg      next
603448e69166Smrg    }
603548e69166Smrg  }
603648e69166Smrg}
603748e69166Smrg{ print }
603848e69166Smrg_ACAWK
6039fd0c672fSmrg_ACEOF
604048e69166Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
604148e69166Smrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
604248e69166Smrgfi # test -n "$CONFIG_HEADERS"
604348e69166Smrg
604448e69166Smrg
604548e69166Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
604648e69166Smrgshift
604748e69166Smrgfor ac_tag
604848e69166Smrgdo
604948e69166Smrg  case $ac_tag in
605048e69166Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
605148e69166Smrg  esac
605248e69166Smrg  case $ac_mode$ac_tag in
605348e69166Smrg  :[FHL]*:*);;
605448e69166Smrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
605548e69166Smrg  :[FH]-) ac_tag=-:-;;
605648e69166Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
605748e69166Smrg  esac
605848e69166Smrg  ac_save_IFS=$IFS
605948e69166Smrg  IFS=:
606048e69166Smrg  set x $ac_tag
606148e69166Smrg  IFS=$ac_save_IFS
606248e69166Smrg  shift
606348e69166Smrg  ac_file=$1
606448e69166Smrg  shift
606548e69166Smrg
606648e69166Smrg  case $ac_mode in
606748e69166Smrg  :L) ac_source=$1;;
606848e69166Smrg  :[FH])
606948e69166Smrg    ac_file_inputs=
607048e69166Smrg    for ac_f
607148e69166Smrg    do
607248e69166Smrg      case $ac_f in
607348e69166Smrg      -) ac_f="$ac_tmp/stdin";;
607448e69166Smrg      *) # Look for the file first in the build tree, then in the source tree
607548e69166Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
607648e69166Smrg	 # because $ac_f cannot contain `:'.
607748e69166Smrg	 test -f "$ac_f" ||
607848e69166Smrg	   case $ac_f in
607948e69166Smrg	   [\\/$]*) false;;
608048e69166Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
608148e69166Smrg	   esac ||
608248e69166Smrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
608348e69166Smrg      esac
608448e69166Smrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
608548e69166Smrg      as_fn_append ac_file_inputs " '$ac_f'"
608648e69166Smrg    done
608748e69166Smrg
608848e69166Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
608948e69166Smrg    # use $as_me), people would be surprised to read:
609048e69166Smrg    #    /* config.h.  Generated by config.status.  */
609148e69166Smrg    configure_input='Generated from '`
609248e69166Smrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
609348e69166Smrg	`' by configure.'
609448e69166Smrg    if test x"$ac_file" != x-; then
609548e69166Smrg      configure_input="$ac_file.  $configure_input"
609648e69166Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
609748e69166Smrg$as_echo "$as_me: creating $ac_file" >&6;}
609848e69166Smrg    fi
609948e69166Smrg    # Neutralize special characters interpreted by sed in replacement strings.
610048e69166Smrg    case $configure_input in #(
610148e69166Smrg    *\&* | *\|* | *\\* )
610248e69166Smrg       ac_sed_conf_input=`$as_echo "$configure_input" |
610348e69166Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
610448e69166Smrg    *) ac_sed_conf_input=$configure_input;;
610548e69166Smrg    esac
610648e69166Smrg
610748e69166Smrg    case $ac_tag in
610848e69166Smrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
610948e69166Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
611048e69166Smrg    esac
611148e69166Smrg    ;;
6112fd0c672fSmrg  esac
6113fd0c672fSmrg
611448e69166Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
6115fd0c672fSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6116fd0c672fSmrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
6117fd0c672fSmrg	 X"$ac_file" : 'X\(//\)$' \| \
611848e69166Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
611948e69166Smrg$as_echo X"$ac_file" |
612048e69166Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
612148e69166Smrg	    s//\1/
612248e69166Smrg	    q
612348e69166Smrg	  }
612448e69166Smrg	  /^X\(\/\/\)[^/].*/{
612548e69166Smrg	    s//\1/
612648e69166Smrg	    q
612748e69166Smrg	  }
612848e69166Smrg	  /^X\(\/\/\)$/{
612948e69166Smrg	    s//\1/
613048e69166Smrg	    q
613148e69166Smrg	  }
613248e69166Smrg	  /^X\(\/\).*/{
613348e69166Smrg	    s//\1/
613448e69166Smrg	    q
613548e69166Smrg	  }
613648e69166Smrg	  s/.*/./; q'`
613748e69166Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
6138fd0c672fSmrg  ac_builddir=.
6139fd0c672fSmrg
614048e69166Smrgcase "$ac_dir" in
614148e69166Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
614248e69166Smrg*)
614348e69166Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
614448e69166Smrg  # A ".." for each directory in $ac_dir_suffix.
614548e69166Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
614648e69166Smrg  case $ac_top_builddir_sub in
614748e69166Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
614848e69166Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
614948e69166Smrg  esac ;;
615048e69166Smrgesac
615148e69166Smrgac_abs_top_builddir=$ac_pwd
615248e69166Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
615348e69166Smrg# for backward compatibility:
615448e69166Smrgac_top_builddir=$ac_top_build_prefix
6155fd0c672fSmrg
6156fd0c672fSmrgcase $srcdir in
615748e69166Smrg  .)  # We are building in place.
6158fd0c672fSmrg    ac_srcdir=.
615948e69166Smrg    ac_top_srcdir=$ac_top_builddir_sub
616048e69166Smrg    ac_abs_top_srcdir=$ac_pwd ;;
616148e69166Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
6162fd0c672fSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
616348e69166Smrg    ac_top_srcdir=$srcdir
616448e69166Smrg    ac_abs_top_srcdir=$srcdir ;;
616548e69166Smrg  *) # Relative name.
616648e69166Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
616748e69166Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
616848e69166Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6169fd0c672fSmrgesac
617048e69166Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6171fd0c672fSmrg
6172fd0c672fSmrg
617348e69166Smrg  case $ac_mode in
617448e69166Smrg  :F)
617548e69166Smrg  #
617648e69166Smrg  # CONFIG_FILE
617748e69166Smrg  #
6178fd0c672fSmrg
6179fd0c672fSmrg  case $INSTALL in
6180fd0c672fSmrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
618148e69166Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
618248e69166Smrg  esac
618348e69166Smrg  ac_MKDIR_P=$MKDIR_P
618448e69166Smrg  case $MKDIR_P in
618548e69166Smrg  [\\/$]* | ?:[\\/]* ) ;;
618648e69166Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6187fd0c672fSmrg  esac
618848e69166Smrg_ACEOF
6189fd0c672fSmrg
619048e69166Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
619148e69166Smrg# If the template does not know about datarootdir, expand it.
619248e69166Smrg# FIXME: This hack should be removed a few years after 2.60.
619348e69166Smrgac_datarootdir_hack=; ac_datarootdir_seen=
619448e69166Smrgac_sed_dataroot='
619548e69166Smrg/datarootdir/ {
619648e69166Smrg  p
619748e69166Smrg  q
619848e69166Smrg}
619948e69166Smrg/@datadir@/p
620048e69166Smrg/@docdir@/p
620148e69166Smrg/@infodir@/p
620248e69166Smrg/@localedir@/p
620348e69166Smrg/@mandir@/p'
620448e69166Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
620548e69166Smrg*datarootdir*) ac_datarootdir_seen=yes;;
620648e69166Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
620748e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
620848e69166Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
620948e69166Smrg_ACEOF
621048e69166Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
621148e69166Smrg  ac_datarootdir_hack='
621248e69166Smrg  s&@datadir@&$datadir&g
621348e69166Smrg  s&@docdir@&$docdir&g
621448e69166Smrg  s&@infodir@&$infodir&g
621548e69166Smrg  s&@localedir@&$localedir&g
621648e69166Smrg  s&@mandir@&$mandir&g
621748e69166Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
621848e69166Smrgesac
6219fd0c672fSmrg_ACEOF
622048e69166Smrg
622148e69166Smrg# Neutralize VPATH when `$srcdir' = `.'.
622248e69166Smrg# Shell code in configure.ac might set extrasub.
622348e69166Smrg# FIXME: do we really want to maintain this feature?
622448e69166Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
622548e69166Smrgac_sed_extra="$ac_vpsub
6226fd0c672fSmrg$extrasub
6227fd0c672fSmrg_ACEOF
622848e69166Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6229fd0c672fSmrg:t
6230fd0c672fSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
623148e69166Smrgs|@configure_input@|$ac_sed_conf_input|;t t
623248e69166Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
623348e69166Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
623448e69166Smrgs&@srcdir@&$ac_srcdir&;t t
623548e69166Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
623648e69166Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
623748e69166Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
623848e69166Smrgs&@builddir@&$ac_builddir&;t t
623948e69166Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
624048e69166Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
624148e69166Smrgs&@INSTALL@&$ac_INSTALL&;t t
624248e69166Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
624348e69166Smrg$ac_datarootdir_hack
624448e69166Smrg"
624548e69166Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
624648e69166Smrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
624748e69166Smrg
624848e69166Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
624948e69166Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
625048e69166Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
625148e69166Smrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
625248e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
625348e69166Smrgwhich seems to be undefined.  Please make sure it is defined" >&5
625448e69166Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
625548e69166Smrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
625648e69166Smrg
625748e69166Smrg  rm -f "$ac_tmp/stdin"
6258fd0c672fSmrg  case $ac_file in
625948e69166Smrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
626048e69166Smrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
626148e69166Smrg  esac \
626248e69166Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
626348e69166Smrg ;;
626448e69166Smrg  :H)
626548e69166Smrg  #
626648e69166Smrg  # CONFIG_HEADER
626748e69166Smrg  #
6268fd0c672fSmrg  if test x"$ac_file" != x-; then
626948e69166Smrg    {
627048e69166Smrg      $as_echo "/* $configure_input  */" \
627148e69166Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
627248e69166Smrg    } >"$ac_tmp/config.h" \
627348e69166Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
627448e69166Smrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
627548e69166Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
627648e69166Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
6277fd0c672fSmrg    else
627848e69166Smrg      rm -f "$ac_file"
627948e69166Smrg      mv "$ac_tmp/config.h" "$ac_file" \
628048e69166Smrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
6281fd0c672fSmrg    fi
6282fd0c672fSmrg  else
628348e69166Smrg    $as_echo "/* $configure_input  */" \
628448e69166Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
628548e69166Smrg      || as_fn_error $? "could not create -" "$LINENO" 5
6286fd0c672fSmrg  fi
628748e69166Smrg# Compute "$ac_file"'s index in $config_headers.
628848e69166Smrg_am_arg="$ac_file"
6289fd0c672fSmrg_am_stamp_count=1
6290fd0c672fSmrgfor _am_header in $config_headers :; do
6291fd0c672fSmrg  case $_am_header in
629248e69166Smrg    $_am_arg | $_am_arg:* )
6293fd0c672fSmrg      break ;;
6294fd0c672fSmrg    * )
6295fd0c672fSmrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6296fd0c672fSmrg  esac
6297fd0c672fSmrgdone
629848e69166Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
629948e69166Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
630048e69166Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
630148e69166Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
630248e69166Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
630348e69166Smrg$as_echo X"$_am_arg" |
630448e69166Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
630548e69166Smrg	    s//\1/
630648e69166Smrg	    q
630748e69166Smrg	  }
630848e69166Smrg	  /^X\(\/\/\)[^/].*/{
630948e69166Smrg	    s//\1/
631048e69166Smrg	    q
631148e69166Smrg	  }
631248e69166Smrg	  /^X\(\/\/\)$/{
631348e69166Smrg	    s//\1/
631448e69166Smrg	    q
631548e69166Smrg	  }
631648e69166Smrg	  /^X\(\/\).*/{
631748e69166Smrg	    s//\1/
631848e69166Smrg	    q
631948e69166Smrg	  }
632048e69166Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
632148e69166Smrg ;;
6322fd0c672fSmrg
632348e69166Smrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
632448e69166Smrg$as_echo "$as_me: executing $ac_file commands" >&6;}
632548e69166Smrg ;;
632648e69166Smrg  esac
6327fd0c672fSmrg
6328fd0c672fSmrg
632948e69166Smrg  case $ac_file$ac_mode in
633048e69166Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
633148e69166Smrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
633248e69166Smrg  # are listed without --file.  Let's play safe and only enable the eval
633348e69166Smrg  # if we detect the quoting.
633448e69166Smrg  case $CONFIG_FILES in
633548e69166Smrg  *\'*) eval set x "$CONFIG_FILES" ;;
633648e69166Smrg  *)   set x $CONFIG_FILES ;;
633748e69166Smrg  esac
633848e69166Smrg  shift
633948e69166Smrg  for mf
634048e69166Smrg  do
634148e69166Smrg    # Strip MF so we end up with the name of the file.
634248e69166Smrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
634348e69166Smrg    # Check whether this is an Automake generated Makefile or not.
634448e69166Smrg    # We used to match only the files named `Makefile.in', but
634548e69166Smrg    # some people rename them; so instead we look at the file content.
634648e69166Smrg    # Grep'ing the first line is not enough: some people post-process
634748e69166Smrg    # each Makefile.in and add a new line on top of each file to say so.
634848e69166Smrg    # Grep'ing the whole file is not good either: AIX grep has a line
634948e69166Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
635048e69166Smrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
635148e69166Smrg      dirpart=`$as_dirname -- "$mf" ||
6352fd0c672fSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6353fd0c672fSmrg	 X"$mf" : 'X\(//\)[^/]' \| \
6354fd0c672fSmrg	 X"$mf" : 'X\(//\)$' \| \
635548e69166Smrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
635648e69166Smrg$as_echo X"$mf" |
635748e69166Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
635848e69166Smrg	    s//\1/
635948e69166Smrg	    q
636048e69166Smrg	  }
636148e69166Smrg	  /^X\(\/\/\)[^/].*/{
636248e69166Smrg	    s//\1/
636348e69166Smrg	    q
636448e69166Smrg	  }
636548e69166Smrg	  /^X\(\/\/\)$/{
636648e69166Smrg	    s//\1/
636748e69166Smrg	    q
636848e69166Smrg	  }
636948e69166Smrg	  /^X\(\/\).*/{
637048e69166Smrg	    s//\1/
637148e69166Smrg	    q
637248e69166Smrg	  }
637348e69166Smrg	  s/.*/./; q'`
637448e69166Smrg    else
637548e69166Smrg      continue
637648e69166Smrg    fi
637748e69166Smrg    # Extract the definition of DEPDIR, am__include, and am__quote
637848e69166Smrg    # from the Makefile without running `make'.
637948e69166Smrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
638048e69166Smrg    test -z "$DEPDIR" && continue
638148e69166Smrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
638248e69166Smrg    test -z "am__include" && continue
638348e69166Smrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
638448e69166Smrg    # When using ansi2knr, U may be empty or an underscore; expand it
638548e69166Smrg    U=`sed -n 's/^U = //p' < "$mf"`
638648e69166Smrg    # Find all dependency output files, they are included files with
638748e69166Smrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
638848e69166Smrg    # simplest approach to changing $(DEPDIR) to its actual value in the
638948e69166Smrg    # expansion.
639048e69166Smrg    for file in `sed -n "
639148e69166Smrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
639248e69166Smrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
639348e69166Smrg      # Make sure the directory exists.
639448e69166Smrg      test -f "$dirpart/$file" && continue
639548e69166Smrg      fdir=`$as_dirname -- "$file" ||
6396fd0c672fSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6397fd0c672fSmrg	 X"$file" : 'X\(//\)[^/]' \| \
6398fd0c672fSmrg	 X"$file" : 'X\(//\)$' \| \
639948e69166Smrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
640048e69166Smrg$as_echo X"$file" |
640148e69166Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
640248e69166Smrg	    s//\1/
640348e69166Smrg	    q
640448e69166Smrg	  }
640548e69166Smrg	  /^X\(\/\/\)[^/].*/{
640648e69166Smrg	    s//\1/
640748e69166Smrg	    q
640848e69166Smrg	  }
640948e69166Smrg	  /^X\(\/\/\)$/{
641048e69166Smrg	    s//\1/
641148e69166Smrg	    q
641248e69166Smrg	  }
641348e69166Smrg	  /^X\(\/\).*/{
641448e69166Smrg	    s//\1/
641548e69166Smrg	    q
641648e69166Smrg	  }
641748e69166Smrg	  s/.*/./; q'`
641848e69166Smrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
641948e69166Smrg      # echo "creating $dirpart/$file"
642048e69166Smrg      echo '# dummy' > "$dirpart/$file"
6421fd0c672fSmrg    done
6422fd0c672fSmrg  done
642348e69166Smrg}
6424fd0c672fSmrg ;;
642548e69166Smrg
6426fd0c672fSmrg  esac
642748e69166Smrgdone # for ac_tag
6428fd0c672fSmrg
6429fd0c672fSmrg
643048e69166Smrgas_fn_exit 0
6431fd0c672fSmrg_ACEOF
6432fd0c672fSmrgac_clean_files=$ac_clean_files_save
6433fd0c672fSmrg
643448e69166Smrgtest $ac_write_fail = 0 ||
643548e69166Smrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
643648e69166Smrg
6437fd0c672fSmrg
6438fd0c672fSmrg# configure is writing to config.log, and then calls config.status.
6439fd0c672fSmrg# config.status does its own redirection, appending to config.log.
6440fd0c672fSmrg# Unfortunately, on DOS this fails, as config.log is still kept open
6441fd0c672fSmrg# by configure, so config.status won't be able to write to it; its
6442fd0c672fSmrg# output is simply discarded.  So we exec the FD to /dev/null,
6443fd0c672fSmrg# effectively closing config.log, so it can be properly (re)opened and
6444fd0c672fSmrg# appended to by config.status.  When coming back to configure, we
6445fd0c672fSmrg# need to make the FD available again.
6446fd0c672fSmrgif test "$no_create" != yes; then
6447fd0c672fSmrg  ac_cs_success=:
6448fd0c672fSmrg  ac_config_status_args=
6449fd0c672fSmrg  test "$silent" = yes &&
6450fd0c672fSmrg    ac_config_status_args="$ac_config_status_args --quiet"
6451fd0c672fSmrg  exec 5>/dev/null
6452fd0c672fSmrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6453fd0c672fSmrg  exec 5>>config.log
6454fd0c672fSmrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6455fd0c672fSmrg  # would make configure fail if this is the last instruction.
645648e69166Smrg  $ac_cs_success || as_fn_exit 1
645748e69166Smrgfi
645848e69166Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
645948e69166Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
646048e69166Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6461fd0c672fSmrgfi
6462fd0c672fSmrg
6463