configure revision 12391620
121c2f794Smrg#! /bin/sh
221c2f794Smrg# Guess values for system-dependent variables and create Makefiles.
312391620Smrg# Generated by GNU Autoconf 2.68 for fstobdf 1.0.4.
421c2f794Smrg#
521c2f794Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
621c2f794Smrg#
712391620Smrg#
821c2f794Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
912391620Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
1012391620Smrg# Foundation, Inc.
1112391620Smrg#
1212391620Smrg#
1321c2f794Smrg# This configure script is free software; the Free Software Foundation
1421c2f794Smrg# gives unlimited permission to copy, distribute and modify it.
1512391620Smrg## -------------------- ##
1612391620Smrg## M4sh Initialization. ##
1712391620Smrg## -------------------- ##
1821c2f794Smrg
1921c2f794Smrg# Be more Bourne compatible
2021c2f794SmrgDUALCASE=1; export DUALCASE # for MKS sh
2112391620Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2221c2f794Smrg  emulate sh
2321c2f794Smrg  NULLCMD=:
2412391620Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2521c2f794Smrg  # is contrary to our usage.  Disable this feature.
2621c2f794Smrg  alias -g '${1+"$@"}'='"$@"'
2721c2f794Smrg  setopt NO_GLOB_SUBST
2821c2f794Smrgelse
2912391620Smrg  case `(set -o) 2>/dev/null` in #(
3012391620Smrg  *posix*) :
3112391620Smrg    set -o posix ;; #(
3212391620Smrg  *) :
3312391620Smrg     ;;
3421c2f794Smrgesac
3521c2f794Smrgfi
3621c2f794Smrg
3721c2f794Smrg
3812391620Smrgas_nl='
3912391620Smrg'
4012391620Smrgexport as_nl
4112391620Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
4212391620Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4312391620Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4412391620Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4512391620Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
4612391620Smrg# but without wasting forks for bash or zsh.
4712391620Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
4812391620Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4912391620Smrg  as_echo='print -r --'
5012391620Smrg  as_echo_n='print -rn --'
5112391620Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5212391620Smrg  as_echo='printf %s\n'
5312391620Smrg  as_echo_n='printf %s'
5412391620Smrgelse
5512391620Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5612391620Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5712391620Smrg    as_echo_n='/usr/ucb/echo -n'
5821c2f794Smrg  else
5912391620Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6012391620Smrg    as_echo_n_body='eval
6112391620Smrg      arg=$1;
6212391620Smrg      case $arg in #(
6312391620Smrg      *"$as_nl"*)
6412391620Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
6512391620Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6612391620Smrg      esac;
6712391620Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6812391620Smrg    '
6912391620Smrg    export as_echo_n_body
7012391620Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
7121c2f794Smrg  fi
7212391620Smrg  export as_echo_body
7312391620Smrg  as_echo='sh -c $as_echo_body as_echo'
7421c2f794Smrgfi
7521c2f794Smrg
7612391620Smrg# The user is always right.
7712391620Smrgif test "${PATH_SEPARATOR+set}" != set; then
7812391620Smrg  PATH_SEPARATOR=:
7912391620Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8012391620Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8112391620Smrg      PATH_SEPARATOR=';'
8212391620Smrg  }
8321c2f794Smrgfi
8421c2f794Smrg
8521c2f794Smrg
8621c2f794Smrg# IFS
8721c2f794Smrg# We need space, tab and new line, in precisely that order.  Quoting is
8821c2f794Smrg# there to prevent editors from complaining about space-tab.
8921c2f794Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9021c2f794Smrg# splitting by setting IFS to empty value.)
9121c2f794SmrgIFS=" ""	$as_nl"
9221c2f794Smrg
9321c2f794Smrg# Find who we are.  Look in the path if we contain no directory separator.
9412391620Smrgas_myself=
9512391620Smrgcase $0 in #((
9621c2f794Smrg  *[\\/]* ) as_myself=$0 ;;
9721c2f794Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9821c2f794Smrgfor as_dir in $PATH
9921c2f794Smrgdo
10021c2f794Smrg  IFS=$as_save_IFS
10121c2f794Smrg  test -z "$as_dir" && as_dir=.
10212391620Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10312391620Smrg  done
10421c2f794SmrgIFS=$as_save_IFS
10521c2f794Smrg
10621c2f794Smrg     ;;
10721c2f794Smrgesac
10821c2f794Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
10921c2f794Smrg# in which case we are not to be found in the path.
11021c2f794Smrgif test "x$as_myself" = x; then
11121c2f794Smrg  as_myself=$0
11221c2f794Smrgfi
11321c2f794Smrgif test ! -f "$as_myself"; then
11412391620Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11512391620Smrg  exit 1
11621c2f794Smrgfi
11721c2f794Smrg
11812391620Smrg# Unset variables that we do not need and which cause bugs (e.g. in
11912391620Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12012391620Smrg# suppresses any "Segmentation fault" message there.  '((' could
12112391620Smrg# trigger a bug in pdksh 5.2.14.
12212391620Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
12312391620Smrgdo eval test x\${$as_var+set} = xset \
12412391620Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12521c2f794Smrgdone
12621c2f794SmrgPS1='$ '
12721c2f794SmrgPS2='> '
12821c2f794SmrgPS4='+ '
12921c2f794Smrg
13021c2f794Smrg# NLS nuisances.
13112391620SmrgLC_ALL=C
13212391620Smrgexport LC_ALL
13312391620SmrgLANGUAGE=C
13412391620Smrgexport LANGUAGE
13512391620Smrg
13612391620Smrg# CDPATH.
13712391620Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13812391620Smrg
13912391620Smrgif test "x$CONFIG_SHELL" = x; then
14012391620Smrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
14112391620Smrg  emulate sh
14212391620Smrg  NULLCMD=:
14312391620Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
14412391620Smrg  # is contrary to our usage.  Disable this feature.
14512391620Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
14612391620Smrg  setopt NO_GLOB_SUBST
14712391620Smrgelse
14812391620Smrg  case \`(set -o) 2>/dev/null\` in #(
14912391620Smrg  *posix*) :
15012391620Smrg    set -o posix ;; #(
15112391620Smrg  *) :
15212391620Smrg     ;;
15312391620Smrgesac
15412391620Smrgfi
15512391620Smrg"
15612391620Smrg  as_required="as_fn_return () { (exit \$1); }
15712391620Smrgas_fn_success () { as_fn_return 0; }
15812391620Smrgas_fn_failure () { as_fn_return 1; }
15912391620Smrgas_fn_ret_success () { return 0; }
16012391620Smrgas_fn_ret_failure () { return 1; }
16112391620Smrg
16212391620Smrgexitcode=0
16312391620Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
16412391620Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
16512391620Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
16612391620Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
16712391620Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
16812391620Smrg
16912391620Smrgelse
17012391620Smrg  exitcode=1; echo positional parameters were not saved.
17112391620Smrgfi
17212391620Smrgtest x\$exitcode = x0 || exit 1"
17312391620Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
17412391620Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
17512391620Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
17612391620Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
17712391620Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
17812391620Smrg  if (eval "$as_required") 2>/dev/null; then :
17912391620Smrg  as_have_required=yes
18012391620Smrgelse
18112391620Smrg  as_have_required=no
18212391620Smrgfi
18312391620Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
18412391620Smrg
18512391620Smrgelse
18612391620Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18712391620Smrgas_found=false
18812391620Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18921c2f794Smrgdo
19012391620Smrg  IFS=$as_save_IFS
19112391620Smrg  test -z "$as_dir" && as_dir=.
19212391620Smrg  as_found=:
19312391620Smrg  case $as_dir in #(
19412391620Smrg	 /*)
19512391620Smrg	   for as_base in sh bash ksh sh5; do
19612391620Smrg	     # Try only shells that exist, to save several forks.
19712391620Smrg	     as_shell=$as_dir/$as_base
19812391620Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
19912391620Smrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
20012391620Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
20112391620Smrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
20212391620Smrg  break 2
20312391620Smrgfi
20412391620Smrgfi
20512391620Smrg	   done;;
20612391620Smrg       esac
20712391620Smrg  as_found=false
20812391620Smrgdone
20912391620Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
21012391620Smrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
21112391620Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
21212391620Smrgfi; }
21312391620SmrgIFS=$as_save_IFS
21412391620Smrg
21512391620Smrg
21612391620Smrg      if test "x$CONFIG_SHELL" != x; then :
21712391620Smrg  # We cannot yet assume a decent shell, so we have to provide a
21812391620Smrg	# neutralization value for shells without unset; and this also
21912391620Smrg	# works around shells that cannot unset nonexistent variables.
22012391620Smrg	# Preserve -v and -x to the replacement shell.
22112391620Smrg	BASH_ENV=/dev/null
22212391620Smrg	ENV=/dev/null
22312391620Smrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
22412391620Smrg	export CONFIG_SHELL
22512391620Smrg	case $- in # ((((
22612391620Smrg	  *v*x* | *x*v* ) as_opts=-vx ;;
22712391620Smrg	  *v* ) as_opts=-v ;;
22812391620Smrg	  *x* ) as_opts=-x ;;
22912391620Smrg	  * ) as_opts= ;;
23012391620Smrg	esac
23112391620Smrg	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
23212391620Smrgfi
23312391620Smrg
23412391620Smrg    if test x$as_have_required = xno; then :
23512391620Smrg  $as_echo "$0: This script requires a shell more modern than all"
23612391620Smrg  $as_echo "$0: the shells that I found on your system."
23712391620Smrg  if test x${ZSH_VERSION+set} = xset ; then
23812391620Smrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
23912391620Smrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
24021c2f794Smrg  else
24112391620Smrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
24212391620Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
24312391620Smrg$0: about your system, including any error possibly output
24412391620Smrg$0: before this message. Then install a modern shell, or
24512391620Smrg$0: manually run the script under such a shell if you do
24612391620Smrg$0: have one."
24721c2f794Smrg  fi
24812391620Smrg  exit 1
24912391620Smrgfi
25012391620Smrgfi
25112391620Smrgfi
25212391620SmrgSHELL=${CONFIG_SHELL-/bin/sh}
25312391620Smrgexport SHELL
25412391620Smrg# Unset more variables known to interfere with behavior of common tools.
25512391620SmrgCLICOLOR_FORCE= GREP_OPTIONS=
25612391620Smrgunset CLICOLOR_FORCE GREP_OPTIONS
25712391620Smrg
25812391620Smrg## --------------------- ##
25912391620Smrg## M4sh Shell Functions. ##
26012391620Smrg## --------------------- ##
26112391620Smrg# as_fn_unset VAR
26212391620Smrg# ---------------
26312391620Smrg# Portably unset VAR.
26412391620Smrgas_fn_unset ()
26512391620Smrg{
26612391620Smrg  { eval $1=; unset $1;}
26712391620Smrg}
26812391620Smrgas_unset=as_fn_unset
26912391620Smrg
27012391620Smrg# as_fn_set_status STATUS
27112391620Smrg# -----------------------
27212391620Smrg# Set $? to STATUS, without forking.
27312391620Smrgas_fn_set_status ()
27412391620Smrg{
27512391620Smrg  return $1
27612391620Smrg} # as_fn_set_status
27712391620Smrg
27812391620Smrg# as_fn_exit STATUS
27912391620Smrg# -----------------
28012391620Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28112391620Smrgas_fn_exit ()
28212391620Smrg{
28312391620Smrg  set +e
28412391620Smrg  as_fn_set_status $1
28512391620Smrg  exit $1
28612391620Smrg} # as_fn_exit
28712391620Smrg
28812391620Smrg# as_fn_mkdir_p
28912391620Smrg# -------------
29012391620Smrg# Create "$as_dir" as a directory, including parents if necessary.
29112391620Smrgas_fn_mkdir_p ()
29212391620Smrg{
29312391620Smrg
29412391620Smrg  case $as_dir in #(
29512391620Smrg  -*) as_dir=./$as_dir;;
29612391620Smrg  esac
29712391620Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
29812391620Smrg    as_dirs=
29912391620Smrg    while :; do
30012391620Smrg      case $as_dir in #(
30112391620Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30212391620Smrg      *) as_qdir=$as_dir;;
30312391620Smrg      esac
30412391620Smrg      as_dirs="'$as_qdir' $as_dirs"
30512391620Smrg      as_dir=`$as_dirname -- "$as_dir" ||
30612391620Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30712391620Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
30812391620Smrg	 X"$as_dir" : 'X\(//\)$' \| \
30912391620Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31012391620Smrg$as_echo X"$as_dir" |
31112391620Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31212391620Smrg	    s//\1/
31312391620Smrg	    q
31412391620Smrg	  }
31512391620Smrg	  /^X\(\/\/\)[^/].*/{
31612391620Smrg	    s//\1/
31712391620Smrg	    q
31812391620Smrg	  }
31912391620Smrg	  /^X\(\/\/\)$/{
32012391620Smrg	    s//\1/
32112391620Smrg	    q
32212391620Smrg	  }
32312391620Smrg	  /^X\(\/\).*/{
32412391620Smrg	    s//\1/
32512391620Smrg	    q
32612391620Smrg	  }
32712391620Smrg	  s/.*/./; q'`
32812391620Smrg      test -d "$as_dir" && break
32912391620Smrg    done
33012391620Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
33112391620Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33212391620Smrg
33312391620Smrg
33412391620Smrg} # as_fn_mkdir_p
33512391620Smrg# as_fn_append VAR VALUE
33612391620Smrg# ----------------------
33712391620Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
33812391620Smrg# advantage of any shell optimizations that allow amortized linear growth over
33912391620Smrg# repeated appends, instead of the typical quadratic growth present in naive
34012391620Smrg# implementations.
34112391620Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
34212391620Smrg  eval 'as_fn_append ()
34312391620Smrg  {
34412391620Smrg    eval $1+=\$2
34512391620Smrg  }'
34612391620Smrgelse
34712391620Smrg  as_fn_append ()
34812391620Smrg  {
34912391620Smrg    eval $1=\$$1\$2
35012391620Smrg  }
35112391620Smrgfi # as_fn_append
35212391620Smrg
35312391620Smrg# as_fn_arith ARG...
35412391620Smrg# ------------------
35512391620Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
35612391620Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
35712391620Smrg# must be portable across $(()) and expr.
35812391620Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35912391620Smrg  eval 'as_fn_arith ()
36012391620Smrg  {
36112391620Smrg    as_val=$(( $* ))
36212391620Smrg  }'
36312391620Smrgelse
36412391620Smrg  as_fn_arith ()
36512391620Smrg  {
36612391620Smrg    as_val=`expr "$@" || test $? -eq 1`
36712391620Smrg  }
36812391620Smrgfi # as_fn_arith
36912391620Smrg
37012391620Smrg
37112391620Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
37212391620Smrg# ----------------------------------------
37312391620Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
37412391620Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
37512391620Smrg# script with STATUS, using 1 if that was 0.
37612391620Smrgas_fn_error ()
37712391620Smrg{
37812391620Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
37912391620Smrg  if test "$4"; then
38012391620Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
38112391620Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
38212391620Smrg  fi
38312391620Smrg  $as_echo "$as_me: error: $2" >&2
38412391620Smrg  as_fn_exit $as_status
38512391620Smrg} # as_fn_error
38621c2f794Smrg
38721c2f794Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
38821c2f794Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
38921c2f794Smrg  as_expr=expr
39021c2f794Smrgelse
39121c2f794Smrg  as_expr=false
39221c2f794Smrgfi
39321c2f794Smrg
39421c2f794Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
39521c2f794Smrg  as_basename=basename
39621c2f794Smrgelse
39721c2f794Smrg  as_basename=false
39821c2f794Smrgfi
39921c2f794Smrg
40012391620Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
40112391620Smrg  as_dirname=dirname
40212391620Smrgelse
40312391620Smrg  as_dirname=false
40412391620Smrgfi
40521c2f794Smrg
40621c2f794Smrgas_me=`$as_basename -- "$0" ||
40721c2f794Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40821c2f794Smrg	 X"$0" : 'X\(//\)$' \| \
40921c2f794Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41012391620Smrg$as_echo X/"$0" |
41121c2f794Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
41221c2f794Smrg	    s//\1/
41321c2f794Smrg	    q
41421c2f794Smrg	  }
41521c2f794Smrg	  /^X\/\(\/\/\)$/{
41621c2f794Smrg	    s//\1/
41721c2f794Smrg	    q
41821c2f794Smrg	  }
41921c2f794Smrg	  /^X\/\(\/\).*/{
42021c2f794Smrg	    s//\1/
42121c2f794Smrg	    q
42221c2f794Smrg	  }
42321c2f794Smrg	  s/.*/./; q'`
42421c2f794Smrg
42512391620Smrg# Avoid depending upon Character Ranges.
42612391620Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
42712391620Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42812391620Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
42912391620Smrgas_cr_digits='0123456789'
43012391620Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
43121c2f794Smrg
43221c2f794Smrg
43312391620Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
43412391620Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
43512391620Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
43612391620Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
43712391620Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
43812391620Smrg  sed -n '
43912391620Smrg    p
44012391620Smrg    /[$]LINENO/=
44112391620Smrg  ' <$as_myself |
44212391620Smrg    sed '
44312391620Smrg      s/[$]LINENO.*/&-/
44412391620Smrg      t lineno
44512391620Smrg      b
44612391620Smrg      :lineno
44712391620Smrg      N
44812391620Smrg      :loop
44912391620Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
45012391620Smrg      t loop
45112391620Smrg      s/-\n.*//
45212391620Smrg    ' >$as_me.lineno &&
45312391620Smrg  chmod +x "$as_me.lineno" ||
45412391620Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
45521c2f794Smrg
45612391620Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
45712391620Smrg  # (the dirname of $[0] is not the place where we might find the
45812391620Smrg  # original and so on.  Autoconf is especially sensitive to this).
45912391620Smrg  . "./$as_me.lineno"
46012391620Smrg  # Exit status is that of the last command.
46112391620Smrg  exit
46221c2f794Smrg}
46321c2f794Smrg
46412391620SmrgECHO_C= ECHO_N= ECHO_T=
46512391620Smrgcase `echo -n x` in #(((((
46612391620Smrg-n*)
46712391620Smrg  case `echo 'xy\c'` in
46812391620Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
46912391620Smrg  xy)  ECHO_C='\c';;
47012391620Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
47112391620Smrg       ECHO_T='	';;
47212391620Smrg  esac;;
47312391620Smrg*)
47412391620Smrg  ECHO_N='-n';;
47512391620Smrgesac
47621c2f794Smrg
47712391620Smrgrm -f conf$$ conf$$.exe conf$$.file
47812391620Smrgif test -d conf$$.dir; then
47912391620Smrg  rm -f conf$$.dir/conf$$.file
48021c2f794Smrgelse
48112391620Smrg  rm -f conf$$.dir
48212391620Smrg  mkdir conf$$.dir 2>/dev/null
48312391620Smrgfi
48412391620Smrgif (echo >conf$$.file) 2>/dev/null; then
48512391620Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
48612391620Smrg    as_ln_s='ln -s'
48712391620Smrg    # ... but there are two gotchas:
48812391620Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
48912391620Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
49012391620Smrg    # In both cases, we have to default to `cp -p'.
49112391620Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
49212391620Smrg      as_ln_s='cp -p'
49312391620Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
49412391620Smrg    as_ln_s=ln
49512391620Smrg  else
49612391620Smrg    as_ln_s='cp -p'
49712391620Smrg  fi
49821c2f794Smrgelse
49912391620Smrg  as_ln_s='cp -p'
50021c2f794Smrgfi
50112391620Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
50212391620Smrgrmdir conf$$.dir 2>/dev/null
50321c2f794Smrg
50412391620Smrgif mkdir -p . 2>/dev/null; then
50512391620Smrg  as_mkdir_p='mkdir -p "$as_dir"'
50621c2f794Smrgelse
50712391620Smrg  test -d ./-p && rmdir ./-p
50812391620Smrg  as_mkdir_p=false
50912391620Smrgfi
51021c2f794Smrg
51112391620Smrgif test -x / >/dev/null 2>&1; then
51212391620Smrg  as_test_x='test -x'
51321c2f794Smrgelse
51412391620Smrg  if ls -dL / >/dev/null 2>&1; then
51512391620Smrg    as_ls_L_option=L
51612391620Smrg  else
51712391620Smrg    as_ls_L_option=
51812391620Smrg  fi
51912391620Smrg  as_test_x='
52012391620Smrg    eval sh -c '\''
52112391620Smrg      if test -d "$1"; then
52212391620Smrg	test -d "$1/.";
52312391620Smrg      else
52412391620Smrg	case $1 in #(
52512391620Smrg	-*)set "./$1";;
52612391620Smrg	esac;
52712391620Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
52812391620Smrg	???[sx]*):;;*)false;;esac;fi
52912391620Smrg    '\'' sh
53012391620Smrg  '
53121c2f794Smrgfi
53212391620Smrgas_executable_p=$as_test_x
53321c2f794Smrg
53412391620Smrg# Sed expression to map a string onto a valid CPP name.
53512391620Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53621c2f794Smrg
53712391620Smrg# Sed expression to map a string onto a valid variable name.
53812391620Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53921c2f794Smrg
54021c2f794Smrg
54112391620Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
54212391620Smrgexec 6>&1
54321c2f794Smrg
54421c2f794Smrg# Name of the host.
54512391620Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
54621c2f794Smrg# so uname gets run too.
54721c2f794Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
54821c2f794Smrg
54921c2f794Smrg#
55021c2f794Smrg# Initializations.
55121c2f794Smrg#
55221c2f794Smrgac_default_prefix=/usr/local
55321c2f794Smrgac_clean_files=
55421c2f794Smrgac_config_libobj_dir=.
55521c2f794SmrgLIBOBJS=
55621c2f794Smrgcross_compiling=no
55721c2f794Smrgsubdirs=
55821c2f794SmrgMFLAGS=
55921c2f794SmrgMAKEFLAGS=
56021c2f794Smrg
56121c2f794Smrg# Identity of this package.
56221c2f794SmrgPACKAGE_NAME='fstobdf'
56321c2f794SmrgPACKAGE_TARNAME='fstobdf'
56412391620SmrgPACKAGE_VERSION='1.0.4'
56512391620SmrgPACKAGE_STRING='fstobdf 1.0.4'
56621c2f794SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
56712391620SmrgPACKAGE_URL=''
56821c2f794Smrg
56912391620Smrg# Factoring default headers for most tests.
57012391620Smrgac_includes_default="\
57112391620Smrg#include <stdio.h>
57212391620Smrg#ifdef HAVE_SYS_TYPES_H
57312391620Smrg# include <sys/types.h>
57412391620Smrg#endif
57512391620Smrg#ifdef HAVE_SYS_STAT_H
57612391620Smrg# include <sys/stat.h>
57712391620Smrg#endif
57812391620Smrg#ifdef STDC_HEADERS
57912391620Smrg# include <stdlib.h>
58012391620Smrg# include <stddef.h>
58112391620Smrg#else
58212391620Smrg# ifdef HAVE_STDLIB_H
58312391620Smrg#  include <stdlib.h>
58412391620Smrg# endif
58512391620Smrg#endif
58612391620Smrg#ifdef HAVE_STRING_H
58712391620Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
58812391620Smrg#  include <memory.h>
58912391620Smrg# endif
59012391620Smrg# include <string.h>
59112391620Smrg#endif
59212391620Smrg#ifdef HAVE_STRINGS_H
59312391620Smrg# include <strings.h>
59412391620Smrg#endif
59512391620Smrg#ifdef HAVE_INTTYPES_H
59612391620Smrg# include <inttypes.h>
59712391620Smrg#endif
59812391620Smrg#ifdef HAVE_STDINT_H
59912391620Smrg# include <stdint.h>
60012391620Smrg#endif
60112391620Smrg#ifdef HAVE_UNISTD_H
60212391620Smrg# include <unistd.h>
60312391620Smrg#endif"
60412391620Smrg
60512391620Smrgac_subst_vars='am__EXEEXT_FALSE
60612391620Smrgam__EXEEXT_TRUE
60712391620SmrgLTLIBOBJS
60812391620SmrgLIBOBJS
60921c2f794SmrgFSTOBDF_LIBS
61012391620SmrgFSTOBDF_CFLAGS
61112391620SmrgAM_BACKSLASH
61212391620SmrgAM_DEFAULT_VERBOSITY
61312391620SmrgMAN_SUBSTS
61412391620SmrgXORG_MAN_PAGE
61521c2f794SmrgADMIN_MAN_DIR
61612391620SmrgDRIVER_MAN_DIR
61712391620SmrgMISC_MAN_DIR
61812391620SmrgFILE_MAN_DIR
61912391620SmrgLIB_MAN_DIR
62012391620SmrgAPP_MAN_DIR
62112391620SmrgADMIN_MAN_SUFFIX
62212391620SmrgDRIVER_MAN_SUFFIX
62312391620SmrgMISC_MAN_SUFFIX
62412391620SmrgFILE_MAN_SUFFIX
62512391620SmrgLIB_MAN_SUFFIX
62612391620SmrgAPP_MAN_SUFFIX
62712391620SmrgSED
62812391620Smrghost_os
62912391620Smrghost_vendor
63012391620Smrghost_cpu
63112391620Smrghost
63212391620Smrgbuild_os
63312391620Smrgbuild_vendor
63412391620Smrgbuild_cpu
63512391620Smrgbuild
63612391620SmrgINSTALL_CMD
63712391620SmrgPKG_CONFIG
63812391620SmrgCHANGELOG_CMD
63912391620SmrgCWARNFLAGS
64012391620SmrgEGREP
64112391620SmrgGREP
64212391620SmrgCPP
64312391620Smrgam__fastdepCC_FALSE
64412391620Smrgam__fastdepCC_TRUE
64512391620SmrgCCDEPMODE
64612391620SmrgAMDEPBACKSLASH
64712391620SmrgAMDEP_FALSE
64812391620SmrgAMDEP_TRUE
64912391620Smrgam__quote
65012391620Smrgam__include
65112391620SmrgDEPDIR
65212391620SmrgOBJEXT
65312391620SmrgEXEEXT
65412391620Smrgac_ct_CC
65512391620SmrgCPPFLAGS
65612391620SmrgLDFLAGS
65712391620SmrgCFLAGS
65812391620SmrgCC
65912391620SmrgMAINT
66012391620SmrgMAINTAINER_MODE_FALSE
66112391620SmrgMAINTAINER_MODE_TRUE
66212391620Smrgam__untar
66312391620Smrgam__tar
66412391620SmrgAMTAR
66512391620Smrgam__leading_dot
66612391620SmrgSET_MAKE
66712391620SmrgAWK
66812391620Smrgmkdir_p
66912391620SmrgMKDIR_P
67012391620SmrgINSTALL_STRIP_PROGRAM
67112391620SmrgSTRIP
67212391620Smrginstall_sh
67312391620SmrgMAKEINFO
67412391620SmrgAUTOHEADER
67512391620SmrgAUTOMAKE
67612391620SmrgAUTOCONF
67712391620SmrgACLOCAL
67812391620SmrgVERSION
67912391620SmrgPACKAGE
68012391620SmrgCYGPATH_W
68112391620Smrgam__isrc
68212391620SmrgINSTALL_DATA
68312391620SmrgINSTALL_SCRIPT
68412391620SmrgINSTALL_PROGRAM
68512391620Smrgtarget_alias
68612391620Smrghost_alias
68712391620Smrgbuild_alias
68812391620SmrgLIBS
68912391620SmrgECHO_T
69012391620SmrgECHO_N
69112391620SmrgECHO_C
69212391620SmrgDEFS
69312391620Smrgmandir
69412391620Smrglocaledir
69512391620Smrglibdir
69612391620Smrgpsdir
69712391620Smrgpdfdir
69812391620Smrgdvidir
69912391620Smrghtmldir
70012391620Smrginfodir
70112391620Smrgdocdir
70212391620Smrgoldincludedir
70312391620Smrgincludedir
70412391620Smrglocalstatedir
70512391620Smrgsharedstatedir
70612391620Smrgsysconfdir
70712391620Smrgdatadir
70812391620Smrgdatarootdir
70912391620Smrglibexecdir
71012391620Smrgsbindir
71112391620Smrgbindir
71212391620Smrgprogram_transform_name
71312391620Smrgprefix
71412391620Smrgexec_prefix
71512391620SmrgPACKAGE_URL
71612391620SmrgPACKAGE_BUGREPORT
71712391620SmrgPACKAGE_STRING
71812391620SmrgPACKAGE_VERSION
71912391620SmrgPACKAGE_TARNAME
72012391620SmrgPACKAGE_NAME
72112391620SmrgPATH_SEPARATOR
72212391620SmrgSHELL'
72321c2f794Smrgac_subst_files=''
72412391620Smrgac_user_opts='
72512391620Smrgenable_option_checking
72612391620Smrgenable_maintainer_mode
72712391620Smrgenable_dependency_tracking
72812391620Smrgenable_strict_compilation
72912391620Smrgenable_silent_rules
73012391620Smrg'
73121c2f794Smrg      ac_precious_vars='build_alias
73221c2f794Smrghost_alias
73321c2f794Smrgtarget_alias
73421c2f794SmrgCC
73521c2f794SmrgCFLAGS
73621c2f794SmrgLDFLAGS
73721c2f794SmrgLIBS
73821c2f794SmrgCPPFLAGS
73912391620SmrgCPP
74021c2f794SmrgPKG_CONFIG
74121c2f794SmrgFSTOBDF_CFLAGS
74221c2f794SmrgFSTOBDF_LIBS'
74321c2f794Smrg
74421c2f794Smrg
74521c2f794Smrg# Initialize some variables set by options.
74621c2f794Smrgac_init_help=
74721c2f794Smrgac_init_version=false
74812391620Smrgac_unrecognized_opts=
74912391620Smrgac_unrecognized_sep=
75021c2f794Smrg# The variables have the same names as the options, with
75121c2f794Smrg# dashes changed to underlines.
75221c2f794Smrgcache_file=/dev/null
75321c2f794Smrgexec_prefix=NONE
75421c2f794Smrgno_create=
75521c2f794Smrgno_recursion=
75621c2f794Smrgprefix=NONE
75721c2f794Smrgprogram_prefix=NONE
75821c2f794Smrgprogram_suffix=NONE
75921c2f794Smrgprogram_transform_name=s,x,x,
76021c2f794Smrgsilent=
76121c2f794Smrgsite=
76221c2f794Smrgsrcdir=
76321c2f794Smrgverbose=
76421c2f794Smrgx_includes=NONE
76521c2f794Smrgx_libraries=NONE
76621c2f794Smrg
76721c2f794Smrg# Installation directory options.
76821c2f794Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
76921c2f794Smrg# and all the variables that are supposed to be based on exec_prefix
77021c2f794Smrg# by default will actually change.
77121c2f794Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
77221c2f794Smrg# (The list follows the same order as the GNU Coding Standards.)
77321c2f794Smrgbindir='${exec_prefix}/bin'
77421c2f794Smrgsbindir='${exec_prefix}/sbin'
77521c2f794Smrglibexecdir='${exec_prefix}/libexec'
77621c2f794Smrgdatarootdir='${prefix}/share'
77721c2f794Smrgdatadir='${datarootdir}'
77821c2f794Smrgsysconfdir='${prefix}/etc'
77921c2f794Smrgsharedstatedir='${prefix}/com'
78021c2f794Smrglocalstatedir='${prefix}/var'
78121c2f794Smrgincludedir='${prefix}/include'
78221c2f794Smrgoldincludedir='/usr/include'
78321c2f794Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
78421c2f794Smrginfodir='${datarootdir}/info'
78521c2f794Smrghtmldir='${docdir}'
78621c2f794Smrgdvidir='${docdir}'
78721c2f794Smrgpdfdir='${docdir}'
78821c2f794Smrgpsdir='${docdir}'
78921c2f794Smrglibdir='${exec_prefix}/lib'
79021c2f794Smrglocaledir='${datarootdir}/locale'
79121c2f794Smrgmandir='${datarootdir}/man'
79221c2f794Smrg
79321c2f794Smrgac_prev=
79421c2f794Smrgac_dashdash=
79521c2f794Smrgfor ac_option
79621c2f794Smrgdo
79721c2f794Smrg  # If the previous option needs an argument, assign it.
79821c2f794Smrg  if test -n "$ac_prev"; then
79921c2f794Smrg    eval $ac_prev=\$ac_option
80021c2f794Smrg    ac_prev=
80121c2f794Smrg    continue
80221c2f794Smrg  fi
80321c2f794Smrg
80421c2f794Smrg  case $ac_option in
80512391620Smrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
80612391620Smrg  *=)   ac_optarg= ;;
80712391620Smrg  *)    ac_optarg=yes ;;
80821c2f794Smrg  esac
80921c2f794Smrg
81021c2f794Smrg  # Accept the important Cygnus configure options, so we can diagnose typos.
81121c2f794Smrg
81221c2f794Smrg  case $ac_dashdash$ac_option in
81321c2f794Smrg  --)
81421c2f794Smrg    ac_dashdash=yes ;;
81521c2f794Smrg
81621c2f794Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
81721c2f794Smrg    ac_prev=bindir ;;
81821c2f794Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
81921c2f794Smrg    bindir=$ac_optarg ;;
82021c2f794Smrg
82121c2f794Smrg  -build | --build | --buil | --bui | --bu)
82221c2f794Smrg    ac_prev=build_alias ;;
82321c2f794Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
82421c2f794Smrg    build_alias=$ac_optarg ;;
82521c2f794Smrg
82621c2f794Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
82721c2f794Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
82821c2f794Smrg    ac_prev=cache_file ;;
82921c2f794Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
83021c2f794Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
83121c2f794Smrg    cache_file=$ac_optarg ;;
83221c2f794Smrg
83321c2f794Smrg  --config-cache | -C)
83421c2f794Smrg    cache_file=config.cache ;;
83521c2f794Smrg
83621c2f794Smrg  -datadir | --datadir | --datadi | --datad)
83721c2f794Smrg    ac_prev=datadir ;;
83821c2f794Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
83921c2f794Smrg    datadir=$ac_optarg ;;
84021c2f794Smrg
84121c2f794Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
84221c2f794Smrg  | --dataroo | --dataro | --datar)
84321c2f794Smrg    ac_prev=datarootdir ;;
84421c2f794Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
84521c2f794Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
84621c2f794Smrg    datarootdir=$ac_optarg ;;
84721c2f794Smrg
84821c2f794Smrg  -disable-* | --disable-*)
84912391620Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
85021c2f794Smrg    # Reject names that are not valid shell variable names.
85112391620Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
85212391620Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
85312391620Smrg    ac_useropt_orig=$ac_useropt
85412391620Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
85512391620Smrg    case $ac_user_opts in
85612391620Smrg      *"
85712391620Smrg"enable_$ac_useropt"
85812391620Smrg"*) ;;
85912391620Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
86012391620Smrg	 ac_unrecognized_sep=', ';;
86112391620Smrg    esac
86212391620Smrg    eval enable_$ac_useropt=no ;;
86321c2f794Smrg
86421c2f794Smrg  -docdir | --docdir | --docdi | --doc | --do)
86521c2f794Smrg    ac_prev=docdir ;;
86621c2f794Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
86721c2f794Smrg    docdir=$ac_optarg ;;
86821c2f794Smrg
86921c2f794Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
87021c2f794Smrg    ac_prev=dvidir ;;
87121c2f794Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
87221c2f794Smrg    dvidir=$ac_optarg ;;
87321c2f794Smrg
87421c2f794Smrg  -enable-* | --enable-*)
87512391620Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
87621c2f794Smrg    # Reject names that are not valid shell variable names.
87712391620Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
87812391620Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
87912391620Smrg    ac_useropt_orig=$ac_useropt
88012391620Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
88112391620Smrg    case $ac_user_opts in
88212391620Smrg      *"
88312391620Smrg"enable_$ac_useropt"
88412391620Smrg"*) ;;
88512391620Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
88612391620Smrg	 ac_unrecognized_sep=', ';;
88712391620Smrg    esac
88812391620Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
88921c2f794Smrg
89021c2f794Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
89121c2f794Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
89221c2f794Smrg  | --exec | --exe | --ex)
89321c2f794Smrg    ac_prev=exec_prefix ;;
89421c2f794Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
89521c2f794Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
89621c2f794Smrg  | --exec=* | --exe=* | --ex=*)
89721c2f794Smrg    exec_prefix=$ac_optarg ;;
89821c2f794Smrg
89921c2f794Smrg  -gas | --gas | --ga | --g)
90021c2f794Smrg    # Obsolete; use --with-gas.
90121c2f794Smrg    with_gas=yes ;;
90221c2f794Smrg
90321c2f794Smrg  -help | --help | --hel | --he | -h)
90421c2f794Smrg    ac_init_help=long ;;
90521c2f794Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
90621c2f794Smrg    ac_init_help=recursive ;;
90721c2f794Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
90821c2f794Smrg    ac_init_help=short ;;
90921c2f794Smrg
91021c2f794Smrg  -host | --host | --hos | --ho)
91121c2f794Smrg    ac_prev=host_alias ;;
91221c2f794Smrg  -host=* | --host=* | --hos=* | --ho=*)
91321c2f794Smrg    host_alias=$ac_optarg ;;
91421c2f794Smrg
91521c2f794Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
91621c2f794Smrg    ac_prev=htmldir ;;
91721c2f794Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
91821c2f794Smrg  | --ht=*)
91921c2f794Smrg    htmldir=$ac_optarg ;;
92021c2f794Smrg
92121c2f794Smrg  -includedir | --includedir | --includedi | --included | --include \
92221c2f794Smrg  | --includ | --inclu | --incl | --inc)
92321c2f794Smrg    ac_prev=includedir ;;
92421c2f794Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
92521c2f794Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
92621c2f794Smrg    includedir=$ac_optarg ;;
92721c2f794Smrg
92821c2f794Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
92921c2f794Smrg    ac_prev=infodir ;;
93021c2f794Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
93121c2f794Smrg    infodir=$ac_optarg ;;
93221c2f794Smrg
93321c2f794Smrg  -libdir | --libdir | --libdi | --libd)
93421c2f794Smrg    ac_prev=libdir ;;
93521c2f794Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
93621c2f794Smrg    libdir=$ac_optarg ;;
93721c2f794Smrg
93821c2f794Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
93921c2f794Smrg  | --libexe | --libex | --libe)
94021c2f794Smrg    ac_prev=libexecdir ;;
94121c2f794Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
94221c2f794Smrg  | --libexe=* | --libex=* | --libe=*)
94321c2f794Smrg    libexecdir=$ac_optarg ;;
94421c2f794Smrg
94521c2f794Smrg  -localedir | --localedir | --localedi | --localed | --locale)
94621c2f794Smrg    ac_prev=localedir ;;
94721c2f794Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
94821c2f794Smrg    localedir=$ac_optarg ;;
94921c2f794Smrg
95021c2f794Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
95121c2f794Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
95221c2f794Smrg    ac_prev=localstatedir ;;
95321c2f794Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
95421c2f794Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
95521c2f794Smrg    localstatedir=$ac_optarg ;;
95621c2f794Smrg
95721c2f794Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
95821c2f794Smrg    ac_prev=mandir ;;
95921c2f794Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
96021c2f794Smrg    mandir=$ac_optarg ;;
96121c2f794Smrg
96221c2f794Smrg  -nfp | --nfp | --nf)
96321c2f794Smrg    # Obsolete; use --without-fp.
96421c2f794Smrg    with_fp=no ;;
96521c2f794Smrg
96621c2f794Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
96721c2f794Smrg  | --no-cr | --no-c | -n)
96821c2f794Smrg    no_create=yes ;;
96921c2f794Smrg
97021c2f794Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
97121c2f794Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
97221c2f794Smrg    no_recursion=yes ;;
97321c2f794Smrg
97421c2f794Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
97521c2f794Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
97621c2f794Smrg  | --oldin | --oldi | --old | --ol | --o)
97721c2f794Smrg    ac_prev=oldincludedir ;;
97821c2f794Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
97921c2f794Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
98021c2f794Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
98121c2f794Smrg    oldincludedir=$ac_optarg ;;
98221c2f794Smrg
98321c2f794Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
98421c2f794Smrg    ac_prev=prefix ;;
98521c2f794Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
98621c2f794Smrg    prefix=$ac_optarg ;;
98721c2f794Smrg
98821c2f794Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
98921c2f794Smrg  | --program-pre | --program-pr | --program-p)
99021c2f794Smrg    ac_prev=program_prefix ;;
99121c2f794Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
99221c2f794Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
99321c2f794Smrg    program_prefix=$ac_optarg ;;
99421c2f794Smrg
99521c2f794Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
99621c2f794Smrg  | --program-suf | --program-su | --program-s)
99721c2f794Smrg    ac_prev=program_suffix ;;
99821c2f794Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
99921c2f794Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
100021c2f794Smrg    program_suffix=$ac_optarg ;;
100121c2f794Smrg
100221c2f794Smrg  -program-transform-name | --program-transform-name \
100321c2f794Smrg  | --program-transform-nam | --program-transform-na \
100421c2f794Smrg  | --program-transform-n | --program-transform- \
100521c2f794Smrg  | --program-transform | --program-transfor \
100621c2f794Smrg  | --program-transfo | --program-transf \
100721c2f794Smrg  | --program-trans | --program-tran \
100821c2f794Smrg  | --progr-tra | --program-tr | --program-t)
100921c2f794Smrg    ac_prev=program_transform_name ;;
101021c2f794Smrg  -program-transform-name=* | --program-transform-name=* \
101121c2f794Smrg  | --program-transform-nam=* | --program-transform-na=* \
101221c2f794Smrg  | --program-transform-n=* | --program-transform-=* \
101321c2f794Smrg  | --program-transform=* | --program-transfor=* \
101421c2f794Smrg  | --program-transfo=* | --program-transf=* \
101521c2f794Smrg  | --program-trans=* | --program-tran=* \
101621c2f794Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
101721c2f794Smrg    program_transform_name=$ac_optarg ;;
101821c2f794Smrg
101921c2f794Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
102021c2f794Smrg    ac_prev=pdfdir ;;
102121c2f794Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
102221c2f794Smrg    pdfdir=$ac_optarg ;;
102321c2f794Smrg
102421c2f794Smrg  -psdir | --psdir | --psdi | --psd | --ps)
102521c2f794Smrg    ac_prev=psdir ;;
102621c2f794Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
102721c2f794Smrg    psdir=$ac_optarg ;;
102821c2f794Smrg
102921c2f794Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
103021c2f794Smrg  | -silent | --silent | --silen | --sile | --sil)
103121c2f794Smrg    silent=yes ;;
103221c2f794Smrg
103321c2f794Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
103421c2f794Smrg    ac_prev=sbindir ;;
103521c2f794Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
103621c2f794Smrg  | --sbi=* | --sb=*)
103721c2f794Smrg    sbindir=$ac_optarg ;;
103821c2f794Smrg
103921c2f794Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
104021c2f794Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
104121c2f794Smrg  | --sharedst | --shareds | --shared | --share | --shar \
104221c2f794Smrg  | --sha | --sh)
104321c2f794Smrg    ac_prev=sharedstatedir ;;
104421c2f794Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
104521c2f794Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
104621c2f794Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
104721c2f794Smrg  | --sha=* | --sh=*)
104821c2f794Smrg    sharedstatedir=$ac_optarg ;;
104921c2f794Smrg
105021c2f794Smrg  -site | --site | --sit)
105121c2f794Smrg    ac_prev=site ;;
105221c2f794Smrg  -site=* | --site=* | --sit=*)
105321c2f794Smrg    site=$ac_optarg ;;
105421c2f794Smrg
105521c2f794Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
105621c2f794Smrg    ac_prev=srcdir ;;
105721c2f794Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
105821c2f794Smrg    srcdir=$ac_optarg ;;
105921c2f794Smrg
106021c2f794Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
106121c2f794Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
106221c2f794Smrg    ac_prev=sysconfdir ;;
106321c2f794Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
106421c2f794Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
106521c2f794Smrg    sysconfdir=$ac_optarg ;;
106621c2f794Smrg
106721c2f794Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
106821c2f794Smrg    ac_prev=target_alias ;;
106921c2f794Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
107021c2f794Smrg    target_alias=$ac_optarg ;;
107121c2f794Smrg
107221c2f794Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
107321c2f794Smrg    verbose=yes ;;
107421c2f794Smrg
107521c2f794Smrg  -version | --version | --versio | --versi | --vers | -V)
107621c2f794Smrg    ac_init_version=: ;;
107721c2f794Smrg
107821c2f794Smrg  -with-* | --with-*)
107912391620Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
108021c2f794Smrg    # Reject names that are not valid shell variable names.
108112391620Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
108212391620Smrg      as_fn_error $? "invalid package name: $ac_useropt"
108312391620Smrg    ac_useropt_orig=$ac_useropt
108412391620Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
108512391620Smrg    case $ac_user_opts in
108612391620Smrg      *"
108712391620Smrg"with_$ac_useropt"
108812391620Smrg"*) ;;
108912391620Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
109012391620Smrg	 ac_unrecognized_sep=', ';;
109112391620Smrg    esac
109212391620Smrg    eval with_$ac_useropt=\$ac_optarg ;;
109321c2f794Smrg
109421c2f794Smrg  -without-* | --without-*)
109512391620Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
109621c2f794Smrg    # Reject names that are not valid shell variable names.
109712391620Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
109812391620Smrg      as_fn_error $? "invalid package name: $ac_useropt"
109912391620Smrg    ac_useropt_orig=$ac_useropt
110012391620Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
110112391620Smrg    case $ac_user_opts in
110212391620Smrg      *"
110312391620Smrg"with_$ac_useropt"
110412391620Smrg"*) ;;
110512391620Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
110612391620Smrg	 ac_unrecognized_sep=', ';;
110712391620Smrg    esac
110812391620Smrg    eval with_$ac_useropt=no ;;
110921c2f794Smrg
111021c2f794Smrg  --x)
111121c2f794Smrg    # Obsolete; use --with-x.
111221c2f794Smrg    with_x=yes ;;
111321c2f794Smrg
111421c2f794Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
111521c2f794Smrg  | --x-incl | --x-inc | --x-in | --x-i)
111621c2f794Smrg    ac_prev=x_includes ;;
111721c2f794Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
111821c2f794Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
111921c2f794Smrg    x_includes=$ac_optarg ;;
112021c2f794Smrg
112121c2f794Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
112221c2f794Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
112321c2f794Smrg    ac_prev=x_libraries ;;
112421c2f794Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
112521c2f794Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
112621c2f794Smrg    x_libraries=$ac_optarg ;;
112721c2f794Smrg
112812391620Smrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
112912391620SmrgTry \`$0 --help' for more information"
113021c2f794Smrg    ;;
113121c2f794Smrg
113221c2f794Smrg  *=*)
113321c2f794Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
113421c2f794Smrg    # Reject names that are not valid shell variable names.
113512391620Smrg    case $ac_envvar in #(
113612391620Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
113712391620Smrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
113812391620Smrg    esac
113921c2f794Smrg    eval $ac_envvar=\$ac_optarg
114021c2f794Smrg    export $ac_envvar ;;
114121c2f794Smrg
114221c2f794Smrg  *)
114321c2f794Smrg    # FIXME: should be removed in autoconf 3.0.
114412391620Smrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
114521c2f794Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
114612391620Smrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
114712391620Smrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
114821c2f794Smrg    ;;
114921c2f794Smrg
115021c2f794Smrg  esac
115121c2f794Smrgdone
115221c2f794Smrg
115321c2f794Smrgif test -n "$ac_prev"; then
115421c2f794Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
115512391620Smrg  as_fn_error $? "missing argument to $ac_option"
115612391620Smrgfi
115712391620Smrg
115812391620Smrgif test -n "$ac_unrecognized_opts"; then
115912391620Smrg  case $enable_option_checking in
116012391620Smrg    no) ;;
116112391620Smrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
116212391620Smrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
116312391620Smrg  esac
116421c2f794Smrgfi
116521c2f794Smrg
116612391620Smrg# Check all directory arguments for consistency.
116721c2f794Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
116821c2f794Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
116921c2f794Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
117021c2f794Smrg		libdir localedir mandir
117121c2f794Smrgdo
117221c2f794Smrg  eval ac_val=\$$ac_var
117312391620Smrg  # Remove trailing slashes.
117412391620Smrg  case $ac_val in
117512391620Smrg    */ )
117612391620Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
117712391620Smrg      eval $ac_var=\$ac_val;;
117812391620Smrg  esac
117912391620Smrg  # Be sure to have absolute directory names.
118021c2f794Smrg  case $ac_val in
118121c2f794Smrg    [\\/$]* | ?:[\\/]* )  continue;;
118221c2f794Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
118321c2f794Smrg  esac
118412391620Smrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
118521c2f794Smrgdone
118621c2f794Smrg
118721c2f794Smrg# There might be people who depend on the old broken behavior: `$host'
118821c2f794Smrg# used to hold the argument of --host etc.
118921c2f794Smrg# FIXME: To remove some day.
119021c2f794Smrgbuild=$build_alias
119121c2f794Smrghost=$host_alias
119221c2f794Smrgtarget=$target_alias
119321c2f794Smrg
119421c2f794Smrg# FIXME: To remove some day.
119521c2f794Smrgif test "x$host_alias" != x; then
119621c2f794Smrg  if test "x$build_alias" = x; then
119721c2f794Smrg    cross_compiling=maybe
119812391620Smrg    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
119912391620Smrg    If a cross compiler is detected then cross compile mode will be used" >&2
120021c2f794Smrg  elif test "x$build_alias" != "x$host_alias"; then
120121c2f794Smrg    cross_compiling=yes
120221c2f794Smrg  fi
120321c2f794Smrgfi
120421c2f794Smrg
120521c2f794Smrgac_tool_prefix=
120621c2f794Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
120721c2f794Smrg
120821c2f794Smrgtest "$silent" = yes && exec 6>/dev/null
120921c2f794Smrg
121021c2f794Smrg
121121c2f794Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
121221c2f794Smrgac_ls_di=`ls -di .` &&
121321c2f794Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
121412391620Smrg  as_fn_error $? "working directory cannot be determined"
121521c2f794Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
121612391620Smrg  as_fn_error $? "pwd does not report name of working directory"
121721c2f794Smrg
121821c2f794Smrg
121921c2f794Smrg# Find the source files, if location was not specified.
122021c2f794Smrgif test -z "$srcdir"; then
122121c2f794Smrg  ac_srcdir_defaulted=yes
122221c2f794Smrg  # Try the directory containing this script, then the parent directory.
122312391620Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
122412391620Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
122512391620Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
122612391620Smrg	 X"$as_myself" : 'X\(//\)$' \| \
122712391620Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
122812391620Smrg$as_echo X"$as_myself" |
122921c2f794Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
123021c2f794Smrg	    s//\1/
123121c2f794Smrg	    q
123221c2f794Smrg	  }
123321c2f794Smrg	  /^X\(\/\/\)[^/].*/{
123421c2f794Smrg	    s//\1/
123521c2f794Smrg	    q
123621c2f794Smrg	  }
123721c2f794Smrg	  /^X\(\/\/\)$/{
123821c2f794Smrg	    s//\1/
123921c2f794Smrg	    q
124021c2f794Smrg	  }
124121c2f794Smrg	  /^X\(\/\).*/{
124221c2f794Smrg	    s//\1/
124321c2f794Smrg	    q
124421c2f794Smrg	  }
124521c2f794Smrg	  s/.*/./; q'`
124621c2f794Smrg  srcdir=$ac_confdir
124721c2f794Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
124821c2f794Smrg    srcdir=..
124921c2f794Smrg  fi
125021c2f794Smrgelse
125121c2f794Smrg  ac_srcdir_defaulted=no
125221c2f794Smrgfi
125321c2f794Smrgif test ! -r "$srcdir/$ac_unique_file"; then
125421c2f794Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
125512391620Smrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
125621c2f794Smrgfi
125721c2f794Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
125821c2f794Smrgac_abs_confdir=`(
125912391620Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
126021c2f794Smrg	pwd)`
126121c2f794Smrg# When building in place, set srcdir=.
126221c2f794Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
126321c2f794Smrg  srcdir=.
126421c2f794Smrgfi
126521c2f794Smrg# Remove unnecessary trailing slashes from srcdir.
126621c2f794Smrg# Double slashes in file names in object file debugging info
126721c2f794Smrg# mess up M-x gdb in Emacs.
126821c2f794Smrgcase $srcdir in
126921c2f794Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
127021c2f794Smrgesac
127121c2f794Smrgfor ac_var in $ac_precious_vars; do
127221c2f794Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
127321c2f794Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
127421c2f794Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
127521c2f794Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
127621c2f794Smrgdone
127721c2f794Smrg
127821c2f794Smrg#
127921c2f794Smrg# Report the --help message.
128021c2f794Smrg#
128121c2f794Smrgif test "$ac_init_help" = "long"; then
128221c2f794Smrg  # Omit some internal or obsolete options to make the list less imposing.
128321c2f794Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
128421c2f794Smrg  cat <<_ACEOF
128512391620Smrg\`configure' configures fstobdf 1.0.4 to adapt to many kinds of systems.
128621c2f794Smrg
128721c2f794SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
128821c2f794Smrg
128921c2f794SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
129021c2f794SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
129121c2f794Smrg
129221c2f794SmrgDefaults for the options are specified in brackets.
129321c2f794Smrg
129421c2f794SmrgConfiguration:
129521c2f794Smrg  -h, --help              display this help and exit
129621c2f794Smrg      --help=short        display options specific to this package
129721c2f794Smrg      --help=recursive    display the short help of all the included packages
129821c2f794Smrg  -V, --version           display version information and exit
129912391620Smrg  -q, --quiet, --silent   do not print \`checking ...' messages
130021c2f794Smrg      --cache-file=FILE   cache test results in FILE [disabled]
130121c2f794Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
130221c2f794Smrg  -n, --no-create         do not create output files
130321c2f794Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
130421c2f794Smrg
130521c2f794SmrgInstallation directories:
130621c2f794Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
130712391620Smrg                          [$ac_default_prefix]
130821c2f794Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
130912391620Smrg                          [PREFIX]
131021c2f794Smrg
131121c2f794SmrgBy default, \`make install' will install all the files in
131221c2f794Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
131321c2f794Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
131421c2f794Smrgfor instance \`--prefix=\$HOME'.
131521c2f794Smrg
131621c2f794SmrgFor better control, use the options below.
131721c2f794Smrg
131821c2f794SmrgFine tuning of the installation directories:
131912391620Smrg  --bindir=DIR            user executables [EPREFIX/bin]
132012391620Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
132112391620Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
132212391620Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
132312391620Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
132412391620Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
132512391620Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
132612391620Smrg  --includedir=DIR        C header files [PREFIX/include]
132712391620Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
132812391620Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
132912391620Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
133012391620Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
133112391620Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
133212391620Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
133312391620Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/fstobdf]
133412391620Smrg  --htmldir=DIR           html documentation [DOCDIR]
133512391620Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
133612391620Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
133712391620Smrg  --psdir=DIR             ps documentation [DOCDIR]
133821c2f794Smrg_ACEOF
133921c2f794Smrg
134021c2f794Smrg  cat <<\_ACEOF
134121c2f794Smrg
134221c2f794SmrgProgram names:
134321c2f794Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
134421c2f794Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
134521c2f794Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
134621c2f794Smrg
134721c2f794SmrgSystem types:
134821c2f794Smrg  --build=BUILD     configure for building on BUILD [guessed]
134921c2f794Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
135021c2f794Smrg_ACEOF
135121c2f794Smrgfi
135221c2f794Smrg
135321c2f794Smrgif test -n "$ac_init_help"; then
135421c2f794Smrg  case $ac_init_help in
135512391620Smrg     short | recursive ) echo "Configuration of fstobdf 1.0.4:";;
135621c2f794Smrg   esac
135721c2f794Smrg  cat <<\_ACEOF
135821c2f794Smrg
135921c2f794SmrgOptional Features:
136012391620Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
136121c2f794Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
136221c2f794Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
136321c2f794Smrg  --enable-maintainer-mode  enable make rules and dependencies not useful
136421c2f794Smrg			  (and sometimes confusing) to the casual installer
136521c2f794Smrg  --disable-dependency-tracking  speeds up one-time build
136621c2f794Smrg  --enable-dependency-tracking   do not reject slow dependency extractors
136712391620Smrg  --enable-strict-compilation
136812391620Smrg                          Enable all warnings from compiler and make them
136912391620Smrg                          errors (default: disabled)
137012391620Smrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
137112391620Smrg  --disable-silent-rules         verbose build output (undo: `make V=0')
137221c2f794Smrg
137321c2f794SmrgSome influential environment variables:
137421c2f794Smrg  CC          C compiler command
137521c2f794Smrg  CFLAGS      C compiler flags
137621c2f794Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
137721c2f794Smrg              nonstandard directory <lib dir>
137821c2f794Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
137912391620Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
138021c2f794Smrg              you have headers in a nonstandard directory <include dir>
138112391620Smrg  CPP         C preprocessor
138221c2f794Smrg  PKG_CONFIG  path to pkg-config utility
138321c2f794Smrg  FSTOBDF_CFLAGS
138421c2f794Smrg              C compiler flags for FSTOBDF, overriding pkg-config
138521c2f794Smrg  FSTOBDF_LIBS
138621c2f794Smrg              linker flags for FSTOBDF, overriding pkg-config
138721c2f794Smrg
138821c2f794SmrgUse these variables to override the choices made by `configure' or to help
138921c2f794Smrgit to find libraries and programs with nonstandard names/locations.
139021c2f794Smrg
139121c2f794SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
139221c2f794Smrg_ACEOF
139321c2f794Smrgac_status=$?
139421c2f794Smrgfi
139521c2f794Smrg
139621c2f794Smrgif test "$ac_init_help" = "recursive"; then
139721c2f794Smrg  # If there are subdirs, report their specific --help.
139821c2f794Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
139912391620Smrg    test -d "$ac_dir" ||
140012391620Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
140112391620Smrg      continue
140221c2f794Smrg    ac_builddir=.
140321c2f794Smrg
140421c2f794Smrgcase "$ac_dir" in
140521c2f794Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
140621c2f794Smrg*)
140712391620Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
140821c2f794Smrg  # A ".." for each directory in $ac_dir_suffix.
140912391620Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
141021c2f794Smrg  case $ac_top_builddir_sub in
141121c2f794Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
141221c2f794Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
141321c2f794Smrg  esac ;;
141421c2f794Smrgesac
141521c2f794Smrgac_abs_top_builddir=$ac_pwd
141621c2f794Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
141721c2f794Smrg# for backward compatibility:
141821c2f794Smrgac_top_builddir=$ac_top_build_prefix
141921c2f794Smrg
142021c2f794Smrgcase $srcdir in
142121c2f794Smrg  .)  # We are building in place.
142221c2f794Smrg    ac_srcdir=.
142321c2f794Smrg    ac_top_srcdir=$ac_top_builddir_sub
142421c2f794Smrg    ac_abs_top_srcdir=$ac_pwd ;;
142521c2f794Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
142621c2f794Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
142721c2f794Smrg    ac_top_srcdir=$srcdir
142821c2f794Smrg    ac_abs_top_srcdir=$srcdir ;;
142921c2f794Smrg  *) # Relative name.
143021c2f794Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
143121c2f794Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
143221c2f794Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
143321c2f794Smrgesac
143421c2f794Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
143521c2f794Smrg
143621c2f794Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
143721c2f794Smrg    # Check for guested configure.
143821c2f794Smrg    if test -f "$ac_srcdir/configure.gnu"; then
143921c2f794Smrg      echo &&
144021c2f794Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
144121c2f794Smrg    elif test -f "$ac_srcdir/configure"; then
144221c2f794Smrg      echo &&
144321c2f794Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
144421c2f794Smrg    else
144512391620Smrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
144621c2f794Smrg    fi || ac_status=$?
144721c2f794Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
144821c2f794Smrg  done
144921c2f794Smrgfi
145021c2f794Smrg
145121c2f794Smrgtest -n "$ac_init_help" && exit $ac_status
145221c2f794Smrgif $ac_init_version; then
145321c2f794Smrg  cat <<\_ACEOF
145412391620Smrgfstobdf configure 1.0.4
145512391620Smrggenerated by GNU Autoconf 2.68
145621c2f794Smrg
145712391620SmrgCopyright (C) 2010 Free Software Foundation, Inc.
145821c2f794SmrgThis configure script is free software; the Free Software Foundation
145921c2f794Smrggives unlimited permission to copy, distribute and modify it.
146021c2f794Smrg_ACEOF
146121c2f794Smrg  exit
146221c2f794Smrgfi
146312391620Smrg
146412391620Smrg## ------------------------ ##
146512391620Smrg## Autoconf initialization. ##
146612391620Smrg## ------------------------ ##
146712391620Smrg
146812391620Smrg# ac_fn_c_try_compile LINENO
146912391620Smrg# --------------------------
147012391620Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
147112391620Smrgac_fn_c_try_compile ()
147212391620Smrg{
147312391620Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
147412391620Smrg  rm -f conftest.$ac_objext
147512391620Smrg  if { { ac_try="$ac_compile"
147612391620Smrgcase "(($ac_try" in
147712391620Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
147812391620Smrg  *) ac_try_echo=$ac_try;;
147912391620Smrgesac
148012391620Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
148112391620Smrg$as_echo "$ac_try_echo"; } >&5
148212391620Smrg  (eval "$ac_compile") 2>conftest.err
148312391620Smrg  ac_status=$?
148412391620Smrg  if test -s conftest.err; then
148512391620Smrg    grep -v '^ *+' conftest.err >conftest.er1
148612391620Smrg    cat conftest.er1 >&5
148712391620Smrg    mv -f conftest.er1 conftest.err
148812391620Smrg  fi
148912391620Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
149012391620Smrg  test $ac_status = 0; } && {
149112391620Smrg	 test -z "$ac_c_werror_flag" ||
149212391620Smrg	 test ! -s conftest.err
149312391620Smrg       } && test -s conftest.$ac_objext; then :
149412391620Smrg  ac_retval=0
149512391620Smrgelse
149612391620Smrg  $as_echo "$as_me: failed program was:" >&5
149712391620Smrgsed 's/^/| /' conftest.$ac_ext >&5
149812391620Smrg
149912391620Smrg	ac_retval=1
150012391620Smrgfi
150112391620Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
150212391620Smrg  as_fn_set_status $ac_retval
150312391620Smrg
150412391620Smrg} # ac_fn_c_try_compile
150512391620Smrg
150612391620Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
150712391620Smrg# ---------------------------------------------
150812391620Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
150912391620Smrg# accordingly.
151012391620Smrgac_fn_c_check_decl ()
151112391620Smrg{
151212391620Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
151312391620Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
151412391620Smrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
151512391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
151612391620Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
151712391620Smrgif eval \${$3+:} false; then :
151812391620Smrg  $as_echo_n "(cached) " >&6
151912391620Smrgelse
152012391620Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
152112391620Smrg/* end confdefs.h.  */
152212391620Smrg$4
152312391620Smrgint
152412391620Smrgmain ()
152512391620Smrg{
152612391620Smrg#ifndef $as_decl_name
152712391620Smrg#ifdef __cplusplus
152812391620Smrg  (void) $as_decl_use;
152912391620Smrg#else
153012391620Smrg  (void) $as_decl_name;
153112391620Smrg#endif
153212391620Smrg#endif
153312391620Smrg
153412391620Smrg  ;
153512391620Smrg  return 0;
153612391620Smrg}
153712391620Smrg_ACEOF
153812391620Smrgif ac_fn_c_try_compile "$LINENO"; then :
153912391620Smrg  eval "$3=yes"
154012391620Smrgelse
154112391620Smrg  eval "$3=no"
154212391620Smrgfi
154312391620Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
154412391620Smrgfi
154512391620Smrgeval ac_res=\$$3
154612391620Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
154712391620Smrg$as_echo "$ac_res" >&6; }
154812391620Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
154912391620Smrg
155012391620Smrg} # ac_fn_c_check_decl
155112391620Smrg
155212391620Smrg# ac_fn_c_try_cpp LINENO
155312391620Smrg# ----------------------
155412391620Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
155512391620Smrgac_fn_c_try_cpp ()
155612391620Smrg{
155712391620Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
155812391620Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
155912391620Smrgcase "(($ac_try" in
156012391620Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
156112391620Smrg  *) ac_try_echo=$ac_try;;
156212391620Smrgesac
156312391620Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
156412391620Smrg$as_echo "$ac_try_echo"; } >&5
156512391620Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
156612391620Smrg  ac_status=$?
156712391620Smrg  if test -s conftest.err; then
156812391620Smrg    grep -v '^ *+' conftest.err >conftest.er1
156912391620Smrg    cat conftest.er1 >&5
157012391620Smrg    mv -f conftest.er1 conftest.err
157112391620Smrg  fi
157212391620Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
157312391620Smrg  test $ac_status = 0; } > conftest.i && {
157412391620Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
157512391620Smrg	 test ! -s conftest.err
157612391620Smrg       }; then :
157712391620Smrg  ac_retval=0
157812391620Smrgelse
157912391620Smrg  $as_echo "$as_me: failed program was:" >&5
158012391620Smrgsed 's/^/| /' conftest.$ac_ext >&5
158112391620Smrg
158212391620Smrg    ac_retval=1
158312391620Smrgfi
158412391620Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
158512391620Smrg  as_fn_set_status $ac_retval
158612391620Smrg
158712391620Smrg} # ac_fn_c_try_cpp
158812391620Smrg
158912391620Smrg# ac_fn_c_try_run LINENO
159012391620Smrg# ----------------------
159112391620Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
159212391620Smrg# that executables *can* be run.
159312391620Smrgac_fn_c_try_run ()
159412391620Smrg{
159512391620Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
159612391620Smrg  if { { ac_try="$ac_link"
159712391620Smrgcase "(($ac_try" in
159812391620Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
159912391620Smrg  *) ac_try_echo=$ac_try;;
160012391620Smrgesac
160112391620Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
160212391620Smrg$as_echo "$ac_try_echo"; } >&5
160312391620Smrg  (eval "$ac_link") 2>&5
160412391620Smrg  ac_status=$?
160512391620Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
160612391620Smrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
160712391620Smrg  { { case "(($ac_try" in
160812391620Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
160912391620Smrg  *) ac_try_echo=$ac_try;;
161012391620Smrgesac
161112391620Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
161212391620Smrg$as_echo "$ac_try_echo"; } >&5
161312391620Smrg  (eval "$ac_try") 2>&5
161412391620Smrg  ac_status=$?
161512391620Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
161612391620Smrg  test $ac_status = 0; }; }; then :
161712391620Smrg  ac_retval=0
161812391620Smrgelse
161912391620Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
162012391620Smrg       $as_echo "$as_me: failed program was:" >&5
162112391620Smrgsed 's/^/| /' conftest.$ac_ext >&5
162212391620Smrg
162312391620Smrg       ac_retval=$ac_status
162412391620Smrgfi
162512391620Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
162612391620Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
162712391620Smrg  as_fn_set_status $ac_retval
162812391620Smrg
162912391620Smrg} # ac_fn_c_try_run
163012391620Smrg
163112391620Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
163212391620Smrg# -------------------------------------------------------
163312391620Smrg# Tests whether HEADER exists and can be compiled using the include files in
163412391620Smrg# INCLUDES, setting the cache variable VAR accordingly.
163512391620Smrgac_fn_c_check_header_compile ()
163612391620Smrg{
163712391620Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
163812391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
163912391620Smrg$as_echo_n "checking for $2... " >&6; }
164012391620Smrgif eval \${$3+:} false; then :
164112391620Smrg  $as_echo_n "(cached) " >&6
164212391620Smrgelse
164312391620Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
164412391620Smrg/* end confdefs.h.  */
164512391620Smrg$4
164612391620Smrg#include <$2>
164712391620Smrg_ACEOF
164812391620Smrgif ac_fn_c_try_compile "$LINENO"; then :
164912391620Smrg  eval "$3=yes"
165012391620Smrgelse
165112391620Smrg  eval "$3=no"
165212391620Smrgfi
165312391620Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
165412391620Smrgfi
165512391620Smrgeval ac_res=\$$3
165612391620Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
165712391620Smrg$as_echo "$ac_res" >&6; }
165812391620Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
165912391620Smrg
166012391620Smrg} # ac_fn_c_check_header_compile
166121c2f794Smrgcat >config.log <<_ACEOF
166221c2f794SmrgThis file contains any messages produced by compilers while
166321c2f794Smrgrunning configure, to aid debugging if configure makes a mistake.
166421c2f794Smrg
166512391620SmrgIt was created by fstobdf $as_me 1.0.4, which was
166612391620Smrggenerated by GNU Autoconf 2.68.  Invocation command line was
166721c2f794Smrg
166821c2f794Smrg  $ $0 $@
166921c2f794Smrg
167021c2f794Smrg_ACEOF
167121c2f794Smrgexec 5>>config.log
167221c2f794Smrg{
167321c2f794Smrgcat <<_ASUNAME
167421c2f794Smrg## --------- ##
167521c2f794Smrg## Platform. ##
167621c2f794Smrg## --------- ##
167721c2f794Smrg
167821c2f794Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
167921c2f794Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
168021c2f794Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
168121c2f794Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
168221c2f794Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
168321c2f794Smrg
168421c2f794Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
168521c2f794Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
168621c2f794Smrg
168721c2f794Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
168821c2f794Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
168921c2f794Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
169021c2f794Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
169121c2f794Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
169221c2f794Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
169321c2f794Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
169421c2f794Smrg
169521c2f794Smrg_ASUNAME
169621c2f794Smrg
169721c2f794Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
169821c2f794Smrgfor as_dir in $PATH
169921c2f794Smrgdo
170021c2f794Smrg  IFS=$as_save_IFS
170121c2f794Smrg  test -z "$as_dir" && as_dir=.
170212391620Smrg    $as_echo "PATH: $as_dir"
170312391620Smrg  done
170421c2f794SmrgIFS=$as_save_IFS
170521c2f794Smrg
170621c2f794Smrg} >&5
170721c2f794Smrg
170821c2f794Smrgcat >&5 <<_ACEOF
170921c2f794Smrg
171021c2f794Smrg
171121c2f794Smrg## ----------- ##
171221c2f794Smrg## Core tests. ##
171321c2f794Smrg## ----------- ##
171421c2f794Smrg
171521c2f794Smrg_ACEOF
171621c2f794Smrg
171721c2f794Smrg
171821c2f794Smrg# Keep a trace of the command line.
171921c2f794Smrg# Strip out --no-create and --no-recursion so they do not pile up.
172021c2f794Smrg# Strip out --silent because we don't want to record it for future runs.
172121c2f794Smrg# Also quote any args containing shell meta-characters.
172221c2f794Smrg# Make two passes to allow for proper duplicate-argument suppression.
172321c2f794Smrgac_configure_args=
172421c2f794Smrgac_configure_args0=
172521c2f794Smrgac_configure_args1=
172621c2f794Smrgac_must_keep_next=false
172721c2f794Smrgfor ac_pass in 1 2
172821c2f794Smrgdo
172921c2f794Smrg  for ac_arg
173021c2f794Smrg  do
173121c2f794Smrg    case $ac_arg in
173221c2f794Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
173321c2f794Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
173421c2f794Smrg    | -silent | --silent | --silen | --sile | --sil)
173521c2f794Smrg      continue ;;
173621c2f794Smrg    *\'*)
173712391620Smrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
173821c2f794Smrg    esac
173921c2f794Smrg    case $ac_pass in
174012391620Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
174121c2f794Smrg    2)
174212391620Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
174321c2f794Smrg      if test $ac_must_keep_next = true; then
174421c2f794Smrg	ac_must_keep_next=false # Got value, back to normal.
174521c2f794Smrg      else
174621c2f794Smrg	case $ac_arg in
174721c2f794Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
174821c2f794Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
174921c2f794Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
175021c2f794Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
175121c2f794Smrg	    case "$ac_configure_args0 " in
175221c2f794Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
175321c2f794Smrg	    esac
175421c2f794Smrg	    ;;
175521c2f794Smrg	  -* ) ac_must_keep_next=true ;;
175621c2f794Smrg	esac
175721c2f794Smrg      fi
175812391620Smrg      as_fn_append ac_configure_args " '$ac_arg'"
175921c2f794Smrg      ;;
176021c2f794Smrg    esac
176121c2f794Smrg  done
176221c2f794Smrgdone
176312391620Smrg{ ac_configure_args0=; unset ac_configure_args0;}
176412391620Smrg{ ac_configure_args1=; unset ac_configure_args1;}
176521c2f794Smrg
176621c2f794Smrg# When interrupted or exit'd, cleanup temporary files, and complete
176721c2f794Smrg# config.log.  We remove comments because anyway the quotes in there
176821c2f794Smrg# would cause problems or look ugly.
176921c2f794Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
177021c2f794Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
177121c2f794Smrgtrap 'exit_status=$?
177221c2f794Smrg  # Save into config.log some information that might help in debugging.
177321c2f794Smrg  {
177421c2f794Smrg    echo
177521c2f794Smrg
177612391620Smrg    $as_echo "## ---------------- ##
177721c2f794Smrg## Cache variables. ##
177812391620Smrg## ---------------- ##"
177921c2f794Smrg    echo
178021c2f794Smrg    # The following way of writing the cache mishandles newlines in values,
178121c2f794Smrg(
178221c2f794Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
178321c2f794Smrg    eval ac_val=\$$ac_var
178421c2f794Smrg    case $ac_val in #(
178521c2f794Smrg    *${as_nl}*)
178621c2f794Smrg      case $ac_var in #(
178712391620Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
178812391620Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
178921c2f794Smrg      esac
179021c2f794Smrg      case $ac_var in #(
179121c2f794Smrg      _ | IFS | as_nl) ;; #(
179212391620Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
179312391620Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
179421c2f794Smrg      esac ;;
179521c2f794Smrg    esac
179621c2f794Smrg  done
179721c2f794Smrg  (set) 2>&1 |
179821c2f794Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
179921c2f794Smrg    *${as_nl}ac_space=\ *)
180021c2f794Smrg      sed -n \
180121c2f794Smrg	"s/'\''/'\''\\\\'\'''\''/g;
180221c2f794Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
180321c2f794Smrg      ;; #(
180421c2f794Smrg    *)
180521c2f794Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
180621c2f794Smrg      ;;
180721c2f794Smrg    esac |
180821c2f794Smrg    sort
180921c2f794Smrg)
181021c2f794Smrg    echo
181121c2f794Smrg
181212391620Smrg    $as_echo "## ----------------- ##
181321c2f794Smrg## Output variables. ##
181412391620Smrg## ----------------- ##"
181521c2f794Smrg    echo
181621c2f794Smrg    for ac_var in $ac_subst_vars
181721c2f794Smrg    do
181821c2f794Smrg      eval ac_val=\$$ac_var
181921c2f794Smrg      case $ac_val in
182012391620Smrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
182121c2f794Smrg      esac
182212391620Smrg      $as_echo "$ac_var='\''$ac_val'\''"
182321c2f794Smrg    done | sort
182421c2f794Smrg    echo
182521c2f794Smrg
182621c2f794Smrg    if test -n "$ac_subst_files"; then
182712391620Smrg      $as_echo "## ------------------- ##
182821c2f794Smrg## File substitutions. ##
182912391620Smrg## ------------------- ##"
183021c2f794Smrg      echo
183121c2f794Smrg      for ac_var in $ac_subst_files
183221c2f794Smrg      do
183321c2f794Smrg	eval ac_val=\$$ac_var
183421c2f794Smrg	case $ac_val in
183512391620Smrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
183621c2f794Smrg	esac
183712391620Smrg	$as_echo "$ac_var='\''$ac_val'\''"
183821c2f794Smrg      done | sort
183921c2f794Smrg      echo
184021c2f794Smrg    fi
184121c2f794Smrg
184221c2f794Smrg    if test -s confdefs.h; then
184312391620Smrg      $as_echo "## ----------- ##
184421c2f794Smrg## confdefs.h. ##
184512391620Smrg## ----------- ##"
184621c2f794Smrg      echo
184721c2f794Smrg      cat confdefs.h
184821c2f794Smrg      echo
184921c2f794Smrg    fi
185021c2f794Smrg    test "$ac_signal" != 0 &&
185112391620Smrg      $as_echo "$as_me: caught signal $ac_signal"
185212391620Smrg    $as_echo "$as_me: exit $exit_status"
185321c2f794Smrg  } >&5
185421c2f794Smrg  rm -f core *.core core.conftest.* &&
185521c2f794Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
185621c2f794Smrg    exit $exit_status
185721c2f794Smrg' 0
185821c2f794Smrgfor ac_signal in 1 2 13 15; do
185912391620Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
186021c2f794Smrgdone
186121c2f794Smrgac_signal=0
186221c2f794Smrg
186321c2f794Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
186421c2f794Smrgrm -f -r conftest* confdefs.h
186521c2f794Smrg
186612391620Smrg$as_echo "/* confdefs.h */" > confdefs.h
186712391620Smrg
186821c2f794Smrg# Predefined preprocessor variables.
186921c2f794Smrg
187021c2f794Smrgcat >>confdefs.h <<_ACEOF
187121c2f794Smrg#define PACKAGE_NAME "$PACKAGE_NAME"
187221c2f794Smrg_ACEOF
187321c2f794Smrg
187421c2f794Smrgcat >>confdefs.h <<_ACEOF
187521c2f794Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
187621c2f794Smrg_ACEOF
187721c2f794Smrg
187821c2f794Smrgcat >>confdefs.h <<_ACEOF
187921c2f794Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
188021c2f794Smrg_ACEOF
188121c2f794Smrg
188221c2f794Smrgcat >>confdefs.h <<_ACEOF
188321c2f794Smrg#define PACKAGE_STRING "$PACKAGE_STRING"
188421c2f794Smrg_ACEOF
188521c2f794Smrg
188621c2f794Smrgcat >>confdefs.h <<_ACEOF
188721c2f794Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
188821c2f794Smrg_ACEOF
188921c2f794Smrg
189012391620Smrgcat >>confdefs.h <<_ACEOF
189112391620Smrg#define PACKAGE_URL "$PACKAGE_URL"
189212391620Smrg_ACEOF
189312391620Smrg
189421c2f794Smrg
189521c2f794Smrg# Let the site file select an alternate cache file if it wants to.
189612391620Smrg# Prefer an explicitly selected file to automatically selected ones.
189712391620Smrgac_site_file1=NONE
189812391620Smrgac_site_file2=NONE
189921c2f794Smrgif test -n "$CONFIG_SITE"; then
190012391620Smrg  # We do not want a PATH search for config.site.
190112391620Smrg  case $CONFIG_SITE in #((
190212391620Smrg    -*)  ac_site_file1=./$CONFIG_SITE;;
190312391620Smrg    */*) ac_site_file1=$CONFIG_SITE;;
190412391620Smrg    *)   ac_site_file1=./$CONFIG_SITE;;
190512391620Smrg  esac
190621c2f794Smrgelif test "x$prefix" != xNONE; then
190712391620Smrg  ac_site_file1=$prefix/share/config.site
190812391620Smrg  ac_site_file2=$prefix/etc/config.site
190921c2f794Smrgelse
191012391620Smrg  ac_site_file1=$ac_default_prefix/share/config.site
191112391620Smrg  ac_site_file2=$ac_default_prefix/etc/config.site
191221c2f794Smrgfi
191312391620Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
191421c2f794Smrgdo
191512391620Smrg  test "x$ac_site_file" = xNONE && continue
191612391620Smrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
191712391620Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
191812391620Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
191921c2f794Smrg    sed 's/^/| /' "$ac_site_file" >&5
192012391620Smrg    . "$ac_site_file" \
192112391620Smrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
192212391620Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
192312391620Smrgas_fn_error $? "failed to load site script $ac_site_file
192412391620SmrgSee \`config.log' for more details" "$LINENO" 5; }
192521c2f794Smrg  fi
192621c2f794Smrgdone
192721c2f794Smrg
192821c2f794Smrgif test -r "$cache_file"; then
192912391620Smrg  # Some versions of bash will fail to source /dev/null (special files
193012391620Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
193112391620Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
193212391620Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
193312391620Smrg$as_echo "$as_me: loading cache $cache_file" >&6;}
193421c2f794Smrg    case $cache_file in
193521c2f794Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
193621c2f794Smrg      *)                      . "./$cache_file";;
193721c2f794Smrg    esac
193821c2f794Smrg  fi
193921c2f794Smrgelse
194012391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
194112391620Smrg$as_echo "$as_me: creating cache $cache_file" >&6;}
194221c2f794Smrg  >$cache_file
194321c2f794Smrgfi
194421c2f794Smrg
194521c2f794Smrg# Check that the precious variables saved in the cache have kept the same
194621c2f794Smrg# value.
194721c2f794Smrgac_cache_corrupted=false
194821c2f794Smrgfor ac_var in $ac_precious_vars; do
194921c2f794Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
195021c2f794Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
195121c2f794Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
195221c2f794Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
195321c2f794Smrg  case $ac_old_set,$ac_new_set in
195421c2f794Smrg    set,)
195512391620Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
195612391620Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
195721c2f794Smrg      ac_cache_corrupted=: ;;
195821c2f794Smrg    ,set)
195912391620Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
196012391620Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
196121c2f794Smrg      ac_cache_corrupted=: ;;
196221c2f794Smrg    ,);;
196321c2f794Smrg    *)
196421c2f794Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
196512391620Smrg	# differences in whitespace do not lead to failure.
196612391620Smrg	ac_old_val_w=`echo x $ac_old_val`
196712391620Smrg	ac_new_val_w=`echo x $ac_new_val`
196812391620Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
196912391620Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
197012391620Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
197112391620Smrg	  ac_cache_corrupted=:
197212391620Smrg	else
197312391620Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
197412391620Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
197512391620Smrg	  eval $ac_var=\$ac_old_val
197612391620Smrg	fi
197712391620Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
197812391620Smrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
197912391620Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
198012391620Smrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
198121c2f794Smrg      fi;;
198221c2f794Smrg  esac
198321c2f794Smrg  # Pass precious variables to config.status.
198421c2f794Smrg  if test "$ac_new_set" = set; then
198521c2f794Smrg    case $ac_new_val in
198612391620Smrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
198721c2f794Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
198821c2f794Smrg    esac
198921c2f794Smrg    case " $ac_configure_args " in
199021c2f794Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
199112391620Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
199221c2f794Smrg    esac
199321c2f794Smrg  fi
199421c2f794Smrgdone
199521c2f794Smrgif $ac_cache_corrupted; then
199612391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
199712391620Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
199812391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
199912391620Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
200012391620Smrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
200121c2f794Smrgfi
200212391620Smrg## -------------------- ##
200312391620Smrg## Main body of script. ##
200412391620Smrg## -------------------- ##
200521c2f794Smrg
200621c2f794Smrgac_ext=c
200721c2f794Smrgac_cpp='$CPP $CPPFLAGS'
200821c2f794Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
200921c2f794Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
201021c2f794Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
201121c2f794Smrg
201221c2f794Smrg
201312391620Smrgam__api_version='1.11'
201421c2f794Smrg
201521c2f794Smrgac_aux_dir=
201621c2f794Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
201721c2f794Smrg  if test -f "$ac_dir/install-sh"; then
201821c2f794Smrg    ac_aux_dir=$ac_dir
201921c2f794Smrg    ac_install_sh="$ac_aux_dir/install-sh -c"
202021c2f794Smrg    break
202121c2f794Smrg  elif test -f "$ac_dir/install.sh"; then
202221c2f794Smrg    ac_aux_dir=$ac_dir
202321c2f794Smrg    ac_install_sh="$ac_aux_dir/install.sh -c"
202421c2f794Smrg    break
202521c2f794Smrg  elif test -f "$ac_dir/shtool"; then
202621c2f794Smrg    ac_aux_dir=$ac_dir
202721c2f794Smrg    ac_install_sh="$ac_aux_dir/shtool install -c"
202821c2f794Smrg    break
202921c2f794Smrg  fi
203021c2f794Smrgdone
203121c2f794Smrgif test -z "$ac_aux_dir"; then
203212391620Smrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
203321c2f794Smrgfi
203421c2f794Smrg
203521c2f794Smrg# These three variables are undocumented and unsupported,
203621c2f794Smrg# and are intended to be withdrawn in a future Autoconf release.
203721c2f794Smrg# They can cause serious problems if a builder's source tree is in a directory
203821c2f794Smrg# whose full name contains unusual characters.
203921c2f794Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
204021c2f794Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
204121c2f794Smrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
204221c2f794Smrg
204321c2f794Smrg
204421c2f794Smrg# Find a good install program.  We prefer a C program (faster),
204521c2f794Smrg# so one script is as good as another.  But avoid the broken or
204621c2f794Smrg# incompatible versions:
204721c2f794Smrg# SysV /etc/install, /usr/sbin/install
204821c2f794Smrg# SunOS /usr/etc/install
204921c2f794Smrg# IRIX /sbin/install
205021c2f794Smrg# AIX /bin/install
205121c2f794Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
205221c2f794Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
205321c2f794Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
205421c2f794Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
205521c2f794Smrg# OS/2's system install, which has a completely different semantic
205621c2f794Smrg# ./install, which can be erroneously created by make from ./install.sh.
205712391620Smrg# Reject install programs that cannot install multiple files.
205812391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
205912391620Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
206021c2f794Smrgif test -z "$INSTALL"; then
206112391620Smrgif ${ac_cv_path_install+:} false; then :
206212391620Smrg  $as_echo_n "(cached) " >&6
206321c2f794Smrgelse
206421c2f794Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206521c2f794Smrgfor as_dir in $PATH
206621c2f794Smrgdo
206721c2f794Smrg  IFS=$as_save_IFS
206821c2f794Smrg  test -z "$as_dir" && as_dir=.
206912391620Smrg    # Account for people who put trailing slashes in PATH elements.
207012391620Smrgcase $as_dir/ in #((
207112391620Smrg  ./ | .// | /[cC]/* | \
207221c2f794Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
207312391620Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
207421c2f794Smrg  /usr/ucb/* ) ;;
207521c2f794Smrg  *)
207621c2f794Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
207721c2f794Smrg    # Don't use installbsd from OSF since it installs stuff as root
207821c2f794Smrg    # by default.
207921c2f794Smrg    for ac_prog in ginstall scoinst install; do
208021c2f794Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
208121c2f794Smrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
208221c2f794Smrg	  if test $ac_prog = install &&
208321c2f794Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
208421c2f794Smrg	    # AIX install.  It has an incompatible calling convention.
208521c2f794Smrg	    :
208621c2f794Smrg	  elif test $ac_prog = install &&
208721c2f794Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
208821c2f794Smrg	    # program-specific install script used by HP pwplus--don't use.
208921c2f794Smrg	    :
209021c2f794Smrg	  else
209112391620Smrg	    rm -rf conftest.one conftest.two conftest.dir
209212391620Smrg	    echo one > conftest.one
209312391620Smrg	    echo two > conftest.two
209412391620Smrg	    mkdir conftest.dir
209512391620Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
209612391620Smrg	      test -s conftest.one && test -s conftest.two &&
209712391620Smrg	      test -s conftest.dir/conftest.one &&
209812391620Smrg	      test -s conftest.dir/conftest.two
209912391620Smrg	    then
210012391620Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
210112391620Smrg	      break 3
210212391620Smrg	    fi
210321c2f794Smrg	  fi
210421c2f794Smrg	fi
210521c2f794Smrg      done
210621c2f794Smrg    done
210721c2f794Smrg    ;;
210821c2f794Smrgesac
210912391620Smrg
211012391620Smrg  done
211121c2f794SmrgIFS=$as_save_IFS
211221c2f794Smrg
211312391620Smrgrm -rf conftest.one conftest.two conftest.dir
211421c2f794Smrg
211521c2f794Smrgfi
211621c2f794Smrg  if test "${ac_cv_path_install+set}" = set; then
211721c2f794Smrg    INSTALL=$ac_cv_path_install
211821c2f794Smrg  else
211921c2f794Smrg    # As a last resort, use the slow shell script.  Don't cache a
212021c2f794Smrg    # value for INSTALL within a source directory, because that will
212121c2f794Smrg    # break other packages using the cache if that directory is
212221c2f794Smrg    # removed, or if the value is a relative name.
212321c2f794Smrg    INSTALL=$ac_install_sh
212421c2f794Smrg  fi
212521c2f794Smrgfi
212612391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
212712391620Smrg$as_echo "$INSTALL" >&6; }
212821c2f794Smrg
212921c2f794Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
213021c2f794Smrg# It thinks the first close brace ends the variable substitution.
213121c2f794Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
213221c2f794Smrg
213321c2f794Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
213421c2f794Smrg
213521c2f794Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
213621c2f794Smrg
213712391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
213812391620Smrg$as_echo_n "checking whether build environment is sane... " >&6; }
213921c2f794Smrg# Just in case
214021c2f794Smrgsleep 1
214121c2f794Smrgecho timestamp > conftest.file
214212391620Smrg# Reject unsafe characters in $srcdir or the absolute working directory
214312391620Smrg# name.  Accept space and tab only in the latter.
214412391620Smrgam_lf='
214512391620Smrg'
214612391620Smrgcase `pwd` in
214712391620Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
214812391620Smrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
214912391620Smrgesac
215012391620Smrgcase $srcdir in
215112391620Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
215212391620Smrg    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
215312391620Smrgesac
215412391620Smrg
215521c2f794Smrg# Do `set' in a subshell so we don't clobber the current shell's
215621c2f794Smrg# arguments.  Must try -L first in case configure is actually a
215721c2f794Smrg# symlink; some systems play weird games with the mod time of symlinks
215821c2f794Smrg# (eg FreeBSD returns the mod time of the symlink's containing
215921c2f794Smrg# directory).
216021c2f794Smrgif (
216112391620Smrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
216221c2f794Smrg   if test "$*" = "X"; then
216321c2f794Smrg      # -L didn't work.
216412391620Smrg      set X `ls -t "$srcdir/configure" conftest.file`
216521c2f794Smrg   fi
216621c2f794Smrg   rm -f conftest.file
216721c2f794Smrg   if test "$*" != "X $srcdir/configure conftest.file" \
216821c2f794Smrg      && test "$*" != "X conftest.file $srcdir/configure"; then
216921c2f794Smrg
217021c2f794Smrg      # If neither matched, then we have a broken ls.  This can happen
217121c2f794Smrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
217221c2f794Smrg      # broken ls alias from the environment.  This has actually
217321c2f794Smrg      # happened.  Such a system could not be considered "sane".
217412391620Smrg      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
217512391620Smrgalias in your environment" "$LINENO" 5
217621c2f794Smrg   fi
217721c2f794Smrg
217821c2f794Smrg   test "$2" = conftest.file
217921c2f794Smrg   )
218021c2f794Smrgthen
218121c2f794Smrg   # Ok.
218221c2f794Smrg   :
218321c2f794Smrgelse
218412391620Smrg   as_fn_error $? "newly created file is older than distributed files!
218512391620SmrgCheck your system clock" "$LINENO" 5
218621c2f794Smrgfi
218712391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
218812391620Smrg$as_echo "yes" >&6; }
218921c2f794Smrgtest "$program_prefix" != NONE &&
219021c2f794Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
219121c2f794Smrg# Use a double $ so make ignores it.
219221c2f794Smrgtest "$program_suffix" != NONE &&
219321c2f794Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
219412391620Smrg# Double any \ or $.
219521c2f794Smrg# By default was `s,x,x', remove it if useless.
219612391620Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
219712391620Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
219821c2f794Smrg
219921c2f794Smrg# expand $ac_aux_dir to an absolute path
220021c2f794Smrgam_aux_dir=`cd $ac_aux_dir && pwd`
220121c2f794Smrg
220212391620Smrgif test x"${MISSING+set}" != xset; then
220312391620Smrg  case $am_aux_dir in
220412391620Smrg  *\ * | *\	*)
220512391620Smrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
220612391620Smrg  *)
220712391620Smrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
220812391620Smrg  esac
220912391620Smrgfi
221021c2f794Smrg# Use eval to expand $SHELL
221121c2f794Smrgif eval "$MISSING --run true"; then
221221c2f794Smrg  am_missing_run="$MISSING --run "
221321c2f794Smrgelse
221421c2f794Smrg  am_missing_run=
221512391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
221612391620Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
221712391620Smrgfi
221812391620Smrg
221912391620Smrgif test x"${install_sh}" != xset; then
222012391620Smrg  case $am_aux_dir in
222112391620Smrg  *\ * | *\	*)
222212391620Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
222312391620Smrg  *)
222412391620Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
222512391620Smrg  esac
222612391620Smrgfi
222712391620Smrg
222812391620Smrg# Installed binaries are usually stripped using `strip' when the user
222912391620Smrg# run `make install-strip'.  However `strip' might not be the right
223012391620Smrg# tool to use in cross-compilation environments, therefore Automake
223112391620Smrg# will honor the `STRIP' environment variable to overrule this program.
223212391620Smrgif test "$cross_compiling" != no; then
223312391620Smrg  if test -n "$ac_tool_prefix"; then
223412391620Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
223512391620Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
223612391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
223712391620Smrg$as_echo_n "checking for $ac_word... " >&6; }
223812391620Smrgif ${ac_cv_prog_STRIP+:} false; then :
223912391620Smrg  $as_echo_n "(cached) " >&6
224012391620Smrgelse
224112391620Smrg  if test -n "$STRIP"; then
224212391620Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
224312391620Smrgelse
224412391620Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224512391620Smrgfor as_dir in $PATH
224612391620Smrgdo
224712391620Smrg  IFS=$as_save_IFS
224812391620Smrg  test -z "$as_dir" && as_dir=.
224912391620Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
225012391620Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
225112391620Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
225212391620Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
225312391620Smrg    break 2
225412391620Smrg  fi
225512391620Smrgdone
225612391620Smrg  done
225712391620SmrgIFS=$as_save_IFS
225812391620Smrg
225912391620Smrgfi
226012391620Smrgfi
226112391620SmrgSTRIP=$ac_cv_prog_STRIP
226212391620Smrgif test -n "$STRIP"; then
226312391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
226412391620Smrg$as_echo "$STRIP" >&6; }
226512391620Smrgelse
226612391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
226712391620Smrg$as_echo "no" >&6; }
226812391620Smrgfi
226912391620Smrg
227012391620Smrg
227112391620Smrgfi
227212391620Smrgif test -z "$ac_cv_prog_STRIP"; then
227312391620Smrg  ac_ct_STRIP=$STRIP
227412391620Smrg  # Extract the first word of "strip", so it can be a program name with args.
227512391620Smrgset dummy strip; ac_word=$2
227612391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
227712391620Smrg$as_echo_n "checking for $ac_word... " >&6; }
227812391620Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
227912391620Smrg  $as_echo_n "(cached) " >&6
228012391620Smrgelse
228112391620Smrg  if test -n "$ac_ct_STRIP"; then
228212391620Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
228312391620Smrgelse
228412391620Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
228512391620Smrgfor as_dir in $PATH
228612391620Smrgdo
228712391620Smrg  IFS=$as_save_IFS
228812391620Smrg  test -z "$as_dir" && as_dir=.
228912391620Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
229012391620Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
229112391620Smrg    ac_cv_prog_ac_ct_STRIP="strip"
229212391620Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
229312391620Smrg    break 2
229412391620Smrg  fi
229512391620Smrgdone
229612391620Smrg  done
229712391620SmrgIFS=$as_save_IFS
229812391620Smrg
229912391620Smrgfi
230012391620Smrgfi
230112391620Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
230212391620Smrgif test -n "$ac_ct_STRIP"; then
230312391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
230412391620Smrg$as_echo "$ac_ct_STRIP" >&6; }
230512391620Smrgelse
230612391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
230712391620Smrg$as_echo "no" >&6; }
230812391620Smrgfi
230912391620Smrg
231012391620Smrg  if test "x$ac_ct_STRIP" = x; then
231112391620Smrg    STRIP=":"
231212391620Smrg  else
231312391620Smrg    case $cross_compiling:$ac_tool_warned in
231412391620Smrgyes:)
231512391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
231612391620Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
231712391620Smrgac_tool_warned=yes ;;
231812391620Smrgesac
231912391620Smrg    STRIP=$ac_ct_STRIP
232012391620Smrg  fi
232112391620Smrgelse
232212391620Smrg  STRIP="$ac_cv_prog_STRIP"
232321c2f794Smrgfi
232421c2f794Smrg
232512391620Smrgfi
232612391620SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
232712391620Smrg
232812391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
232912391620Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
233021c2f794Smrgif test -z "$MKDIR_P"; then
233112391620Smrg  if ${ac_cv_path_mkdir+:} false; then :
233212391620Smrg  $as_echo_n "(cached) " >&6
233321c2f794Smrgelse
233421c2f794Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
233521c2f794Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
233621c2f794Smrgdo
233721c2f794Smrg  IFS=$as_save_IFS
233821c2f794Smrg  test -z "$as_dir" && as_dir=.
233912391620Smrg    for ac_prog in mkdir gmkdir; do
234021c2f794Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
234121c2f794Smrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
234221c2f794Smrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
234321c2f794Smrg	     'mkdir (GNU coreutils) '* | \
234421c2f794Smrg	     'mkdir (coreutils) '* | \
234521c2f794Smrg	     'mkdir (fileutils) '4.1*)
234621c2f794Smrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
234721c2f794Smrg	       break 3;;
234821c2f794Smrg	   esac
234921c2f794Smrg	 done
235021c2f794Smrg       done
235112391620Smrg  done
235221c2f794SmrgIFS=$as_save_IFS
235321c2f794Smrg
235421c2f794Smrgfi
235521c2f794Smrg
235612391620Smrg  test -d ./--version && rmdir ./--version
235721c2f794Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
235821c2f794Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
235921c2f794Smrg  else
236021c2f794Smrg    # As a last resort, use the slow shell script.  Don't cache a
236121c2f794Smrg    # value for MKDIR_P within a source directory, because that will
236221c2f794Smrg    # break other packages using the cache if that directory is
236321c2f794Smrg    # removed, or if the value is a relative name.
236421c2f794Smrg    MKDIR_P="$ac_install_sh -d"
236521c2f794Smrg  fi
236621c2f794Smrgfi
236712391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
236812391620Smrg$as_echo "$MKDIR_P" >&6; }
236921c2f794Smrg
237021c2f794Smrgmkdir_p="$MKDIR_P"
237121c2f794Smrgcase $mkdir_p in
237221c2f794Smrg  [\\/$]* | ?:[\\/]*) ;;
237321c2f794Smrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
237421c2f794Smrgesac
237521c2f794Smrg
237621c2f794Smrgfor ac_prog in gawk mawk nawk awk
237721c2f794Smrgdo
237821c2f794Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
237921c2f794Smrgset dummy $ac_prog; ac_word=$2
238012391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
238112391620Smrg$as_echo_n "checking for $ac_word... " >&6; }
238212391620Smrgif ${ac_cv_prog_AWK+:} false; then :
238312391620Smrg  $as_echo_n "(cached) " >&6
238421c2f794Smrgelse
238521c2f794Smrg  if test -n "$AWK"; then
238621c2f794Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
238721c2f794Smrgelse
238821c2f794Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
238921c2f794Smrgfor as_dir in $PATH
239021c2f794Smrgdo
239121c2f794Smrg  IFS=$as_save_IFS
239221c2f794Smrg  test -z "$as_dir" && as_dir=.
239312391620Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
239421c2f794Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
239521c2f794Smrg    ac_cv_prog_AWK="$ac_prog"
239612391620Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
239721c2f794Smrg    break 2
239821c2f794Smrg  fi
239921c2f794Smrgdone
240012391620Smrg  done
240121c2f794SmrgIFS=$as_save_IFS
240221c2f794Smrg
240321c2f794Smrgfi
240421c2f794Smrgfi
240521c2f794SmrgAWK=$ac_cv_prog_AWK
240621c2f794Smrgif test -n "$AWK"; then
240712391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
240812391620Smrg$as_echo "$AWK" >&6; }
240921c2f794Smrgelse
241012391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
241112391620Smrg$as_echo "no" >&6; }
241221c2f794Smrgfi
241321c2f794Smrg
241421c2f794Smrg
241521c2f794Smrg  test -n "$AWK" && break
241621c2f794Smrgdone
241721c2f794Smrg
241812391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
241912391620Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
242012391620Smrgset x ${MAKE-make}
242112391620Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
242212391620Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
242312391620Smrg  $as_echo_n "(cached) " >&6
242421c2f794Smrgelse
242521c2f794Smrg  cat >conftest.make <<\_ACEOF
242621c2f794SmrgSHELL = /bin/sh
242721c2f794Smrgall:
242821c2f794Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
242921c2f794Smrg_ACEOF
243012391620Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
243121c2f794Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
243221c2f794Smrg  *@@@%%%=?*=@@@%%%*)
243321c2f794Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
243421c2f794Smrg  *)
243521c2f794Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
243621c2f794Smrgesac
243721c2f794Smrgrm -f conftest.make
243821c2f794Smrgfi
243921c2f794Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
244012391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
244112391620Smrg$as_echo "yes" >&6; }
244221c2f794Smrg  SET_MAKE=
244321c2f794Smrgelse
244412391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
244512391620Smrg$as_echo "no" >&6; }
244621c2f794Smrg  SET_MAKE="MAKE=${MAKE-make}"
244721c2f794Smrgfi
244821c2f794Smrg
244921c2f794Smrgrm -rf .tst 2>/dev/null
245021c2f794Smrgmkdir .tst 2>/dev/null
245121c2f794Smrgif test -d .tst; then
245221c2f794Smrg  am__leading_dot=.
245321c2f794Smrgelse
245421c2f794Smrg  am__leading_dot=_
245521c2f794Smrgfi
245621c2f794Smrgrmdir .tst 2>/dev/null
245721c2f794Smrg
245821c2f794Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
245921c2f794Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
246021c2f794Smrg  # is not polluted with repeated "-I."
246121c2f794Smrg  am__isrc=' -I$(srcdir)'
246221c2f794Smrg  # test to see if srcdir already configured
246321c2f794Smrg  if test -f $srcdir/config.status; then
246412391620Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
246521c2f794Smrg  fi
246621c2f794Smrgfi
246721c2f794Smrg
246821c2f794Smrg# test whether we have cygpath
246921c2f794Smrgif test -z "$CYGPATH_W"; then
247021c2f794Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
247121c2f794Smrg    CYGPATH_W='cygpath -w'
247221c2f794Smrg  else
247321c2f794Smrg    CYGPATH_W=echo
247421c2f794Smrg  fi
247521c2f794Smrgfi
247621c2f794Smrg
247721c2f794Smrg
247821c2f794Smrg# Define the identity of the package.
247921c2f794Smrg PACKAGE='fstobdf'
248012391620Smrg VERSION='1.0.4'
248121c2f794Smrg
248221c2f794Smrg
248321c2f794Smrgcat >>confdefs.h <<_ACEOF
248421c2f794Smrg#define PACKAGE "$PACKAGE"
248521c2f794Smrg_ACEOF
248621c2f794Smrg
248721c2f794Smrg
248821c2f794Smrgcat >>confdefs.h <<_ACEOF
248921c2f794Smrg#define VERSION "$VERSION"
249021c2f794Smrg_ACEOF
249121c2f794Smrg
249221c2f794Smrg# Some tools Automake needs.
249321c2f794Smrg
249421c2f794SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
249521c2f794Smrg
249621c2f794Smrg
249721c2f794SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
249821c2f794Smrg
249921c2f794Smrg
250021c2f794SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
250121c2f794Smrg
250221c2f794Smrg
250321c2f794SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
250421c2f794Smrg
250521c2f794Smrg
250621c2f794SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
250721c2f794Smrg
250821c2f794Smrg# We need awk for the "check" target.  The system "awk" is bad on
250921c2f794Smrg# some platforms.
251021c2f794Smrg# Always define AMTAR for backward compatibility.
251121c2f794Smrg
251221c2f794SmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
251321c2f794Smrg
251421c2f794Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
251521c2f794Smrg
251621c2f794Smrg
251721c2f794Smrg
251821c2f794Smrg
251921c2f794Smrg
252012391620Smrg
252112391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
252212391620Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
252321c2f794Smrg    # Check whether --enable-maintainer-mode was given.
252412391620Smrgif test "${enable_maintainer_mode+set}" = set; then :
252521c2f794Smrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
252621c2f794Smrgelse
252721c2f794Smrg  USE_MAINTAINER_MODE=no
252821c2f794Smrgfi
252921c2f794Smrg
253012391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
253112391620Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
253221c2f794Smrg   if test $USE_MAINTAINER_MODE = yes; then
253321c2f794Smrg  MAINTAINER_MODE_TRUE=
253421c2f794Smrg  MAINTAINER_MODE_FALSE='#'
253521c2f794Smrgelse
253621c2f794Smrg  MAINTAINER_MODE_TRUE='#'
253721c2f794Smrg  MAINTAINER_MODE_FALSE=
253821c2f794Smrgfi
253921c2f794Smrg
254021c2f794Smrg  MAINT=$MAINTAINER_MODE_TRUE
254121c2f794Smrg
254221c2f794Smrg
254321c2f794Smrg
254412391620Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
254512391620Smrg
254612391620Smrg
254712391620Smrg
254812391620Smrg
254912391620Smrg
255012391620Smrg
255112391620Smrg
255212391620Smrg
255312391620Smrg
255412391620Smrg
255512391620Smrg
255612391620SmrgDEPDIR="${am__leading_dot}deps"
255712391620Smrg
255812391620Smrgac_config_commands="$ac_config_commands depfiles"
255912391620Smrg
256012391620Smrg
256112391620Smrgam_make=${MAKE-make}
256212391620Smrgcat > confinc << 'END'
256312391620Smrgam__doit:
256412391620Smrg	@echo this is the am__doit target
256512391620Smrg.PHONY: am__doit
256612391620SmrgEND
256712391620Smrg# If we don't find an include directive, just comment out the code.
256812391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
256912391620Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
257012391620Smrgam__include="#"
257112391620Smrgam__quote=
257212391620Smrg_am_result=none
257312391620Smrg# First try GNU make style include.
257412391620Smrgecho "include confinc" > confmf
257512391620Smrg# Ignore all kinds of additional output from `make'.
257612391620Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
257712391620Smrg*the\ am__doit\ target*)
257812391620Smrg  am__include=include
257912391620Smrg  am__quote=
258012391620Smrg  _am_result=GNU
258112391620Smrg  ;;
258212391620Smrgesac
258312391620Smrg# Now try BSD make style include.
258412391620Smrgif test "$am__include" = "#"; then
258512391620Smrg   echo '.include "confinc"' > confmf
258612391620Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
258712391620Smrg   *the\ am__doit\ target*)
258812391620Smrg     am__include=.include
258912391620Smrg     am__quote="\""
259012391620Smrg     _am_result=BSD
259112391620Smrg     ;;
259212391620Smrg   esac
259312391620Smrgfi
259412391620Smrg
259512391620Smrg
259612391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
259712391620Smrg$as_echo "$_am_result" >&6; }
259812391620Smrgrm -f confinc confmf
259912391620Smrg
260012391620Smrg# Check whether --enable-dependency-tracking was given.
260112391620Smrgif test "${enable_dependency_tracking+set}" = set; then :
260212391620Smrg  enableval=$enable_dependency_tracking;
260312391620Smrgfi
260412391620Smrg
260512391620Smrgif test "x$enable_dependency_tracking" != xno; then
260612391620Smrg  am_depcomp="$ac_aux_dir/depcomp"
260712391620Smrg  AMDEPBACKSLASH='\'
260812391620Smrgfi
260912391620Smrg if test "x$enable_dependency_tracking" != xno; then
261012391620Smrg  AMDEP_TRUE=
261112391620Smrg  AMDEP_FALSE='#'
261212391620Smrgelse
261312391620Smrg  AMDEP_TRUE='#'
261412391620Smrg  AMDEP_FALSE=
261512391620Smrgfi
261621c2f794Smrg
261721c2f794Smrg
261821c2f794Smrgac_ext=c
261921c2f794Smrgac_cpp='$CPP $CPPFLAGS'
262021c2f794Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
262121c2f794Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
262221c2f794Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
262321c2f794Smrgif test -n "$ac_tool_prefix"; then
262421c2f794Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
262521c2f794Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
262612391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
262712391620Smrg$as_echo_n "checking for $ac_word... " >&6; }
262812391620Smrgif ${ac_cv_prog_CC+:} false; then :
262912391620Smrg  $as_echo_n "(cached) " >&6
263021c2f794Smrgelse
263121c2f794Smrg  if test -n "$CC"; then
263221c2f794Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
263321c2f794Smrgelse
263421c2f794Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
263521c2f794Smrgfor as_dir in $PATH
263621c2f794Smrgdo
263721c2f794Smrg  IFS=$as_save_IFS
263821c2f794Smrg  test -z "$as_dir" && as_dir=.
263912391620Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
264021c2f794Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
264121c2f794Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
264212391620Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
264321c2f794Smrg    break 2
264421c2f794Smrg  fi
264521c2f794Smrgdone
264612391620Smrg  done
264721c2f794SmrgIFS=$as_save_IFS
264821c2f794Smrg
264921c2f794Smrgfi
265021c2f794Smrgfi
265121c2f794SmrgCC=$ac_cv_prog_CC
265221c2f794Smrgif test -n "$CC"; then
265312391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
265412391620Smrg$as_echo "$CC" >&6; }
265521c2f794Smrgelse
265612391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
265712391620Smrg$as_echo "no" >&6; }
265821c2f794Smrgfi
265921c2f794Smrg
266021c2f794Smrg
266121c2f794Smrgfi
266221c2f794Smrgif test -z "$ac_cv_prog_CC"; then
266321c2f794Smrg  ac_ct_CC=$CC
266421c2f794Smrg  # Extract the first word of "gcc", so it can be a program name with args.
266521c2f794Smrgset dummy gcc; ac_word=$2
266612391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
266712391620Smrg$as_echo_n "checking for $ac_word... " >&6; }
266812391620Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
266912391620Smrg  $as_echo_n "(cached) " >&6
267021c2f794Smrgelse
267121c2f794Smrg  if test -n "$ac_ct_CC"; then
267221c2f794Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
267321c2f794Smrgelse
267421c2f794Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
267521c2f794Smrgfor as_dir in $PATH
267621c2f794Smrgdo
267721c2f794Smrg  IFS=$as_save_IFS
267821c2f794Smrg  test -z "$as_dir" && as_dir=.
267912391620Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
268021c2f794Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
268121c2f794Smrg    ac_cv_prog_ac_ct_CC="gcc"
268212391620Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
268321c2f794Smrg    break 2
268421c2f794Smrg  fi
268521c2f794Smrgdone
268612391620Smrg  done
268721c2f794SmrgIFS=$as_save_IFS
268821c2f794Smrg
268921c2f794Smrgfi
269021c2f794Smrgfi
269121c2f794Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
269221c2f794Smrgif test -n "$ac_ct_CC"; then
269312391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
269412391620Smrg$as_echo "$ac_ct_CC" >&6; }
269521c2f794Smrgelse
269612391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
269712391620Smrg$as_echo "no" >&6; }
269821c2f794Smrgfi
269921c2f794Smrg
270021c2f794Smrg  if test "x$ac_ct_CC" = x; then
270121c2f794Smrg    CC=""
270221c2f794Smrg  else
270321c2f794Smrg    case $cross_compiling:$ac_tool_warned in
270421c2f794Smrgyes:)
270512391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
270612391620Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
270721c2f794Smrgac_tool_warned=yes ;;
270821c2f794Smrgesac
270921c2f794Smrg    CC=$ac_ct_CC
271021c2f794Smrg  fi
271121c2f794Smrgelse
271221c2f794Smrg  CC="$ac_cv_prog_CC"
271321c2f794Smrgfi
271421c2f794Smrg
271521c2f794Smrgif test -z "$CC"; then
271621c2f794Smrg          if test -n "$ac_tool_prefix"; then
271721c2f794Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
271821c2f794Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
271912391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
272012391620Smrg$as_echo_n "checking for $ac_word... " >&6; }
272112391620Smrgif ${ac_cv_prog_CC+:} false; then :
272212391620Smrg  $as_echo_n "(cached) " >&6
272321c2f794Smrgelse
272421c2f794Smrg  if test -n "$CC"; then
272521c2f794Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
272621c2f794Smrgelse
272721c2f794Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
272821c2f794Smrgfor as_dir in $PATH
272921c2f794Smrgdo
273021c2f794Smrg  IFS=$as_save_IFS
273121c2f794Smrg  test -z "$as_dir" && as_dir=.
273212391620Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
273321c2f794Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
273421c2f794Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
273512391620Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
273621c2f794Smrg    break 2
273721c2f794Smrg  fi
273821c2f794Smrgdone
273912391620Smrg  done
274021c2f794SmrgIFS=$as_save_IFS
274121c2f794Smrg
274221c2f794Smrgfi
274321c2f794Smrgfi
274421c2f794SmrgCC=$ac_cv_prog_CC
274521c2f794Smrgif test -n "$CC"; then
274612391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
274712391620Smrg$as_echo "$CC" >&6; }
274821c2f794Smrgelse
274912391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
275012391620Smrg$as_echo "no" >&6; }
275121c2f794Smrgfi
275221c2f794Smrg
275321c2f794Smrg
275421c2f794Smrg  fi
275521c2f794Smrgfi
275621c2f794Smrgif test -z "$CC"; then
275721c2f794Smrg  # Extract the first word of "cc", so it can be a program name with args.
275821c2f794Smrgset dummy cc; ac_word=$2
275912391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
276012391620Smrg$as_echo_n "checking for $ac_word... " >&6; }
276112391620Smrgif ${ac_cv_prog_CC+:} false; then :
276212391620Smrg  $as_echo_n "(cached) " >&6
276321c2f794Smrgelse
276421c2f794Smrg  if test -n "$CC"; then
276521c2f794Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
276621c2f794Smrgelse
276721c2f794Smrg  ac_prog_rejected=no
276821c2f794Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
276921c2f794Smrgfor as_dir in $PATH
277021c2f794Smrgdo
277121c2f794Smrg  IFS=$as_save_IFS
277221c2f794Smrg  test -z "$as_dir" && as_dir=.
277312391620Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
277421c2f794Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
277521c2f794Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
277621c2f794Smrg       ac_prog_rejected=yes
277721c2f794Smrg       continue
277821c2f794Smrg     fi
277921c2f794Smrg    ac_cv_prog_CC="cc"
278012391620Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278121c2f794Smrg    break 2
278221c2f794Smrg  fi
278321c2f794Smrgdone
278412391620Smrg  done
278521c2f794SmrgIFS=$as_save_IFS
278621c2f794Smrg
278721c2f794Smrgif test $ac_prog_rejected = yes; then
278821c2f794Smrg  # We found a bogon in the path, so make sure we never use it.
278921c2f794Smrg  set dummy $ac_cv_prog_CC
279021c2f794Smrg  shift
279121c2f794Smrg  if test $# != 0; then
279221c2f794Smrg    # We chose a different compiler from the bogus one.
279321c2f794Smrg    # However, it has the same basename, so the bogon will be chosen
279421c2f794Smrg    # first if we set CC to just the basename; use the full file name.
279521c2f794Smrg    shift
279621c2f794Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
279721c2f794Smrg  fi
279821c2f794Smrgfi
279921c2f794Smrgfi
280021c2f794Smrgfi
280121c2f794SmrgCC=$ac_cv_prog_CC
280221c2f794Smrgif test -n "$CC"; then
280312391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
280412391620Smrg$as_echo "$CC" >&6; }
280521c2f794Smrgelse
280612391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
280712391620Smrg$as_echo "no" >&6; }
280821c2f794Smrgfi
280921c2f794Smrg
281021c2f794Smrg
281121c2f794Smrgfi
281221c2f794Smrgif test -z "$CC"; then
281321c2f794Smrg  if test -n "$ac_tool_prefix"; then
281421c2f794Smrg  for ac_prog in cl.exe
281521c2f794Smrg  do
281621c2f794Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
281721c2f794Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
281812391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
281912391620Smrg$as_echo_n "checking for $ac_word... " >&6; }
282012391620Smrgif ${ac_cv_prog_CC+:} false; then :
282112391620Smrg  $as_echo_n "(cached) " >&6
282221c2f794Smrgelse
282321c2f794Smrg  if test -n "$CC"; then
282421c2f794Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
282521c2f794Smrgelse
282621c2f794Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
282721c2f794Smrgfor as_dir in $PATH
282821c2f794Smrgdo
282921c2f794Smrg  IFS=$as_save_IFS
283021c2f794Smrg  test -z "$as_dir" && as_dir=.
283112391620Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
283221c2f794Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
283321c2f794Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
283412391620Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
283521c2f794Smrg    break 2
283621c2f794Smrg  fi
283721c2f794Smrgdone
283812391620Smrg  done
283921c2f794SmrgIFS=$as_save_IFS
284021c2f794Smrg
284121c2f794Smrgfi
284221c2f794Smrgfi
284321c2f794SmrgCC=$ac_cv_prog_CC
284421c2f794Smrgif test -n "$CC"; then
284512391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
284612391620Smrg$as_echo "$CC" >&6; }
284721c2f794Smrgelse
284812391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
284912391620Smrg$as_echo "no" >&6; }
285021c2f794Smrgfi
285121c2f794Smrg
285221c2f794Smrg
285321c2f794Smrg    test -n "$CC" && break
285421c2f794Smrg  done
285521c2f794Smrgfi
285621c2f794Smrgif test -z "$CC"; then
285721c2f794Smrg  ac_ct_CC=$CC
285821c2f794Smrg  for ac_prog in cl.exe
285921c2f794Smrgdo
286021c2f794Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
286121c2f794Smrgset dummy $ac_prog; ac_word=$2
286212391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
286312391620Smrg$as_echo_n "checking for $ac_word... " >&6; }
286412391620Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
286512391620Smrg  $as_echo_n "(cached) " >&6
286621c2f794Smrgelse
286721c2f794Smrg  if test -n "$ac_ct_CC"; then
286821c2f794Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
286921c2f794Smrgelse
287021c2f794Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
287121c2f794Smrgfor as_dir in $PATH
287221c2f794Smrgdo
287321c2f794Smrg  IFS=$as_save_IFS
287421c2f794Smrg  test -z "$as_dir" && as_dir=.
287512391620Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
287621c2f794Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
287721c2f794Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
287812391620Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
287921c2f794Smrg    break 2
288021c2f794Smrg  fi
288121c2f794Smrgdone
288212391620Smrg  done
288321c2f794SmrgIFS=$as_save_IFS
288421c2f794Smrg
288521c2f794Smrgfi
288621c2f794Smrgfi
288721c2f794Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
288821c2f794Smrgif test -n "$ac_ct_CC"; then
288912391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
289012391620Smrg$as_echo "$ac_ct_CC" >&6; }
289121c2f794Smrgelse
289212391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
289312391620Smrg$as_echo "no" >&6; }
289421c2f794Smrgfi
289521c2f794Smrg
289621c2f794Smrg
289721c2f794Smrg  test -n "$ac_ct_CC" && break
289821c2f794Smrgdone
289921c2f794Smrg
290021c2f794Smrg  if test "x$ac_ct_CC" = x; then
290121c2f794Smrg    CC=""
290221c2f794Smrg  else
290321c2f794Smrg    case $cross_compiling:$ac_tool_warned in
290421c2f794Smrgyes:)
290512391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
290612391620Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
290721c2f794Smrgac_tool_warned=yes ;;
290821c2f794Smrgesac
290921c2f794Smrg    CC=$ac_ct_CC
291021c2f794Smrg  fi
291121c2f794Smrgfi
291221c2f794Smrg
291321c2f794Smrgfi
291421c2f794Smrg
291521c2f794Smrg
291612391620Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
291712391620Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
291812391620Smrgas_fn_error $? "no acceptable C compiler found in \$PATH
291912391620SmrgSee \`config.log' for more details" "$LINENO" 5; }
292021c2f794Smrg
292121c2f794Smrg# Provide some information about the compiler.
292212391620Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
292312391620Smrgset X $ac_compile
292412391620Smrgac_compiler=$2
292512391620Smrgfor ac_option in --version -v -V -qversion; do
292612391620Smrg  { { ac_try="$ac_compiler $ac_option >&5"
292721c2f794Smrgcase "(($ac_try" in
292821c2f794Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
292921c2f794Smrg  *) ac_try_echo=$ac_try;;
293021c2f794Smrgesac
293112391620Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
293212391620Smrg$as_echo "$ac_try_echo"; } >&5
293312391620Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
293421c2f794Smrg  ac_status=$?
293512391620Smrg  if test -s conftest.err; then
293612391620Smrg    sed '10a\
293712391620Smrg... rest of stderr output deleted ...
293812391620Smrg         10q' conftest.err >conftest.er1
293912391620Smrg    cat conftest.er1 >&5
294012391620Smrg  fi
294112391620Smrg  rm -f conftest.er1 conftest.err
294212391620Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
294312391620Smrg  test $ac_status = 0; }
294412391620Smrgdone
294521c2f794Smrg
294612391620Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
294721c2f794Smrg/* end confdefs.h.  */
294821c2f794Smrg
294921c2f794Smrgint
295021c2f794Smrgmain ()
295121c2f794Smrg{
295221c2f794Smrg
295321c2f794Smrg  ;
295421c2f794Smrg  return 0;
295521c2f794Smrg}
295621c2f794Smrg_ACEOF
295721c2f794Smrgac_clean_files_save=$ac_clean_files
295812391620Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
295921c2f794Smrg# Try to create an executable without -o first, disregard a.out.
296021c2f794Smrg# It will help us diagnose broken compilers, and finding out an intuition
296121c2f794Smrg# of exeext.
296212391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
296312391620Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
296412391620Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
296512391620Smrg
296612391620Smrg# The possible output files:
296712391620Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
296812391620Smrg
296921c2f794Smrgac_rmfiles=
297021c2f794Smrgfor ac_file in $ac_files
297121c2f794Smrgdo
297221c2f794Smrg  case $ac_file in
297312391620Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
297421c2f794Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
297521c2f794Smrg  esac
297621c2f794Smrgdone
297721c2f794Smrgrm -f $ac_rmfiles
297821c2f794Smrg
297912391620Smrgif { { ac_try="$ac_link_default"
298021c2f794Smrgcase "(($ac_try" in
298121c2f794Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
298221c2f794Smrg  *) ac_try_echo=$ac_try;;
298321c2f794Smrgesac
298412391620Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
298512391620Smrg$as_echo "$ac_try_echo"; } >&5
298621c2f794Smrg  (eval "$ac_link_default") 2>&5
298721c2f794Smrg  ac_status=$?
298812391620Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
298912391620Smrg  test $ac_status = 0; }; then :
299021c2f794Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
299121c2f794Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
299221c2f794Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
299321c2f794Smrg# so that the user can short-circuit this test for compilers unknown to
299421c2f794Smrg# Autoconf.
299521c2f794Smrgfor ac_file in $ac_files ''
299621c2f794Smrgdo
299721c2f794Smrg  test -f "$ac_file" || continue
299821c2f794Smrg  case $ac_file in
299912391620Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
300021c2f794Smrg	;;
300121c2f794Smrg    [ab].out )
300221c2f794Smrg	# We found the default executable, but exeext='' is most
300321c2f794Smrg	# certainly right.
300421c2f794Smrg	break;;
300521c2f794Smrg    *.* )
300612391620Smrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
300721c2f794Smrg	then :; else
300821c2f794Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
300921c2f794Smrg	fi
301021c2f794Smrg	# We set ac_cv_exeext here because the later test for it is not
301121c2f794Smrg	# safe: cross compilers may not add the suffix if given an `-o'
301221c2f794Smrg	# argument, so we may need to know it at that point already.
301321c2f794Smrg	# Even if this section looks crufty: it has the advantage of
301421c2f794Smrg	# actually working.
301521c2f794Smrg	break;;
301621c2f794Smrg    * )
301721c2f794Smrg	break;;
301821c2f794Smrg  esac
301921c2f794Smrgdone
302021c2f794Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
302121c2f794Smrg
302221c2f794Smrgelse
302321c2f794Smrg  ac_file=''
302421c2f794Smrgfi
302512391620Smrgif test -z "$ac_file"; then :
302612391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
302712391620Smrg$as_echo "no" >&6; }
302812391620Smrg$as_echo "$as_me: failed program was:" >&5
302921c2f794Smrgsed 's/^/| /' conftest.$ac_ext >&5
303021c2f794Smrg
303112391620Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
303212391620Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
303312391620Smrgas_fn_error 77 "C compiler cannot create executables
303412391620SmrgSee \`config.log' for more details" "$LINENO" 5; }
303512391620Smrgelse
303612391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
303712391620Smrg$as_echo "yes" >&6; }
303821c2f794Smrgfi
303912391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
304012391620Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
304112391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
304212391620Smrg$as_echo "$ac_file" >&6; }
304321c2f794Smrgac_exeext=$ac_cv_exeext
304421c2f794Smrg
304512391620Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
304621c2f794Smrgac_clean_files=$ac_clean_files_save
304712391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
304812391620Smrg$as_echo_n "checking for suffix of executables... " >&6; }
304912391620Smrgif { { ac_try="$ac_link"
305021c2f794Smrgcase "(($ac_try" in
305121c2f794Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
305221c2f794Smrg  *) ac_try_echo=$ac_try;;
305321c2f794Smrgesac
305412391620Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
305512391620Smrg$as_echo "$ac_try_echo"; } >&5
305621c2f794Smrg  (eval "$ac_link") 2>&5
305721c2f794Smrg  ac_status=$?
305812391620Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
305912391620Smrg  test $ac_status = 0; }; then :
306021c2f794Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
306121c2f794Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
306221c2f794Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
306321c2f794Smrg# `rm'.
306421c2f794Smrgfor ac_file in conftest.exe conftest conftest.*; do
306521c2f794Smrg  test -f "$ac_file" || continue
306621c2f794Smrg  case $ac_file in
306712391620Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
306821c2f794Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
306921c2f794Smrg	  break;;
307021c2f794Smrg    * ) break;;
307121c2f794Smrg  esac
307221c2f794Smrgdone
307321c2f794Smrgelse
307412391620Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
307512391620Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
307612391620Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
307712391620SmrgSee \`config.log' for more details" "$LINENO" 5; }
307821c2f794Smrgfi
307912391620Smrgrm -f conftest conftest$ac_cv_exeext
308012391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
308112391620Smrg$as_echo "$ac_cv_exeext" >&6; }
308221c2f794Smrg
308321c2f794Smrgrm -f conftest.$ac_ext
308421c2f794SmrgEXEEXT=$ac_cv_exeext
308521c2f794Smrgac_exeext=$EXEEXT
308612391620Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
308712391620Smrg/* end confdefs.h.  */
308812391620Smrg#include <stdio.h>
308912391620Smrgint
309012391620Smrgmain ()
309112391620Smrg{
309212391620SmrgFILE *f = fopen ("conftest.out", "w");
309312391620Smrg return ferror (f) || fclose (f) != 0;
309412391620Smrg
309512391620Smrg  ;
309612391620Smrg  return 0;
309712391620Smrg}
309821c2f794Smrg_ACEOF
309912391620Smrgac_clean_files="$ac_clean_files conftest.out"
310012391620Smrg# Check that the compiler produces executables we can run.  If not, either
310112391620Smrg# the compiler is broken, or we cross compile.
310212391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
310312391620Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
310412391620Smrgif test "$cross_compiling" != yes; then
310512391620Smrg  { { ac_try="$ac_link"
310612391620Smrgcase "(($ac_try" in
310712391620Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
310812391620Smrg  *) ac_try_echo=$ac_try;;
310912391620Smrgesac
311012391620Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
311112391620Smrg$as_echo "$ac_try_echo"; } >&5
311212391620Smrg  (eval "$ac_link") 2>&5
311312391620Smrg  ac_status=$?
311412391620Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
311512391620Smrg  test $ac_status = 0; }
311612391620Smrg  if { ac_try='./conftest$ac_cv_exeext'
311712391620Smrg  { { case "(($ac_try" in
311812391620Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
311912391620Smrg  *) ac_try_echo=$ac_try;;
312012391620Smrgesac
312112391620Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
312212391620Smrg$as_echo "$ac_try_echo"; } >&5
312312391620Smrg  (eval "$ac_try") 2>&5
312412391620Smrg  ac_status=$?
312512391620Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
312612391620Smrg  test $ac_status = 0; }; }; then
312712391620Smrg    cross_compiling=no
312812391620Smrg  else
312912391620Smrg    if test "$cross_compiling" = maybe; then
313012391620Smrg	cross_compiling=yes
313112391620Smrg    else
313212391620Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
313312391620Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
313412391620Smrgas_fn_error $? "cannot run C compiled programs.
313512391620SmrgIf you meant to cross compile, use \`--host'.
313612391620SmrgSee \`config.log' for more details" "$LINENO" 5; }
313712391620Smrg    fi
313812391620Smrg  fi
313912391620Smrgfi
314012391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
314112391620Smrg$as_echo "$cross_compiling" >&6; }
314212391620Smrg
314312391620Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
314412391620Smrgac_clean_files=$ac_clean_files_save
314512391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
314612391620Smrg$as_echo_n "checking for suffix of object files... " >&6; }
314712391620Smrgif ${ac_cv_objext+:} false; then :
314812391620Smrg  $as_echo_n "(cached) " >&6
314912391620Smrgelse
315012391620Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
315121c2f794Smrg/* end confdefs.h.  */
315221c2f794Smrg
315321c2f794Smrgint
315421c2f794Smrgmain ()
315521c2f794Smrg{
315621c2f794Smrg
315721c2f794Smrg  ;
315821c2f794Smrg  return 0;
315921c2f794Smrg}
316021c2f794Smrg_ACEOF
316121c2f794Smrgrm -f conftest.o conftest.obj
316212391620Smrgif { { ac_try="$ac_compile"
316321c2f794Smrgcase "(($ac_try" in
316421c2f794Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
316521c2f794Smrg  *) ac_try_echo=$ac_try;;
316621c2f794Smrgesac
316712391620Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
316812391620Smrg$as_echo "$ac_try_echo"; } >&5
316921c2f794Smrg  (eval "$ac_compile") 2>&5
317021c2f794Smrg  ac_status=$?
317112391620Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
317212391620Smrg  test $ac_status = 0; }; then :
317321c2f794Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
317421c2f794Smrg  test -f "$ac_file" || continue;
317521c2f794Smrg  case $ac_file in
317612391620Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
317721c2f794Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
317821c2f794Smrg       break;;
317921c2f794Smrg  esac
318021c2f794Smrgdone
318121c2f794Smrgelse
318212391620Smrg  $as_echo "$as_me: failed program was:" >&5
318321c2f794Smrgsed 's/^/| /' conftest.$ac_ext >&5
318421c2f794Smrg
318512391620Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
318612391620Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
318712391620Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile
318812391620SmrgSee \`config.log' for more details" "$LINENO" 5; }
318921c2f794Smrgfi
319021c2f794Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
319121c2f794Smrgfi
319212391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
319312391620Smrg$as_echo "$ac_cv_objext" >&6; }
319421c2f794SmrgOBJEXT=$ac_cv_objext
319521c2f794Smrgac_objext=$OBJEXT
319612391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
319712391620Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
319812391620Smrgif ${ac_cv_c_compiler_gnu+:} false; then :
319912391620Smrg  $as_echo_n "(cached) " >&6
320021c2f794Smrgelse
320112391620Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
320221c2f794Smrg/* end confdefs.h.  */
320321c2f794Smrg
320421c2f794Smrgint
320521c2f794Smrgmain ()
320621c2f794Smrg{
320721c2f794Smrg#ifndef __GNUC__
320821c2f794Smrg       choke me
320921c2f794Smrg#endif
321021c2f794Smrg
321121c2f794Smrg  ;
321221c2f794Smrg  return 0;
321321c2f794Smrg}
321421c2f794Smrg_ACEOF
321512391620Smrgif ac_fn_c_try_compile "$LINENO"; then :
321621c2f794Smrg  ac_compiler_gnu=yes
321721c2f794Smrgelse
321812391620Smrg  ac_compiler_gnu=no
321921c2f794Smrgfi
322021c2f794Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
322121c2f794Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
322221c2f794Smrg
322321c2f794Smrgfi
322412391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
322512391620Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
322612391620Smrgif test $ac_compiler_gnu = yes; then
322712391620Smrg  GCC=yes
322812391620Smrgelse
322912391620Smrg  GCC=
323012391620Smrgfi
323121c2f794Smrgac_test_CFLAGS=${CFLAGS+set}
323221c2f794Smrgac_save_CFLAGS=$CFLAGS
323312391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
323412391620Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
323512391620Smrgif ${ac_cv_prog_cc_g+:} false; then :
323612391620Smrg  $as_echo_n "(cached) " >&6
323721c2f794Smrgelse
323821c2f794Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
323921c2f794Smrg   ac_c_werror_flag=yes
324021c2f794Smrg   ac_cv_prog_cc_g=no
324121c2f794Smrg   CFLAGS="-g"
324212391620Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
324321c2f794Smrg/* end confdefs.h.  */
324421c2f794Smrg
324521c2f794Smrgint
324621c2f794Smrgmain ()
324721c2f794Smrg{
324821c2f794Smrg
324921c2f794Smrg  ;
325021c2f794Smrg  return 0;
325121c2f794Smrg}
325221c2f794Smrg_ACEOF
325312391620Smrgif ac_fn_c_try_compile "$LINENO"; then :
325412391620Smrg  ac_cv_prog_cc_g=yes
325512391620Smrgelse
325612391620Smrg  CFLAGS=""
325712391620Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
325821c2f794Smrg/* end confdefs.h.  */
325921c2f794Smrg
326021c2f794Smrgint
326121c2f794Smrgmain ()
326221c2f794Smrg{
326321c2f794Smrg
326421c2f794Smrg  ;
326521c2f794Smrg  return 0;
326621c2f794Smrg}
326721c2f794Smrg_ACEOF
326812391620Smrgif ac_fn_c_try_compile "$LINENO"; then :
326921c2f794Smrg
327012391620Smrgelse
327112391620Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
327221c2f794Smrg	 CFLAGS="-g"
327312391620Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
327421c2f794Smrg/* end confdefs.h.  */
327521c2f794Smrg
327621c2f794Smrgint
327721c2f794Smrgmain ()
327821c2f794Smrg{
327921c2f794Smrg
328021c2f794Smrg  ;
328121c2f794Smrg  return 0;
328221c2f794Smrg}
328321c2f794Smrg_ACEOF
328412391620Smrgif ac_fn_c_try_compile "$LINENO"; then :
328521c2f794Smrg  ac_cv_prog_cc_g=yes
328621c2f794Smrgfi
328721c2f794Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
328821c2f794Smrgfi
328921c2f794Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
329021c2f794Smrgfi
329121c2f794Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
329221c2f794Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
329321c2f794Smrgfi
329412391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
329512391620Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
329621c2f794Smrgif test "$ac_test_CFLAGS" = set; then
329721c2f794Smrg  CFLAGS=$ac_save_CFLAGS
329821c2f794Smrgelif test $ac_cv_prog_cc_g = yes; then
329921c2f794Smrg  if test "$GCC" = yes; then
330021c2f794Smrg    CFLAGS="-g -O2"
330121c2f794Smrg  else
330221c2f794Smrg    CFLAGS="-g"
330321c2f794Smrg  fi
330421c2f794Smrgelse
330521c2f794Smrg  if test "$GCC" = yes; then
330621c2f794Smrg    CFLAGS="-O2"
330721c2f794Smrg  else
330821c2f794Smrg    CFLAGS=
330921c2f794Smrg  fi
331021c2f794Smrgfi
331112391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
331212391620Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
331312391620Smrgif ${ac_cv_prog_cc_c89+:} false; then :
331412391620Smrg  $as_echo_n "(cached) " >&6
331521c2f794Smrgelse
331621c2f794Smrg  ac_cv_prog_cc_c89=no
331721c2f794Smrgac_save_CC=$CC
331812391620Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
331921c2f794Smrg/* end confdefs.h.  */
332021c2f794Smrg#include <stdarg.h>
332121c2f794Smrg#include <stdio.h>
332221c2f794Smrg#include <sys/types.h>
332321c2f794Smrg#include <sys/stat.h>
332421c2f794Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
332521c2f794Smrgstruct buf { int x; };
332621c2f794SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
332721c2f794Smrgstatic char *e (p, i)
332821c2f794Smrg     char **p;
332921c2f794Smrg     int i;
333021c2f794Smrg{
333121c2f794Smrg  return p[i];
333221c2f794Smrg}
333321c2f794Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
333421c2f794Smrg{
333521c2f794Smrg  char *s;
333621c2f794Smrg  va_list v;
333721c2f794Smrg  va_start (v,p);
333821c2f794Smrg  s = g (p, va_arg (v,int));
333921c2f794Smrg  va_end (v);
334021c2f794Smrg  return s;
334121c2f794Smrg}
334221c2f794Smrg
334321c2f794Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
334421c2f794Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
334521c2f794Smrg   These don't provoke an error unfortunately, instead are silently treated
334621c2f794Smrg   as 'x'.  The following induces an error, until -std is added to get
334721c2f794Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
334821c2f794Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
334921c2f794Smrg   that's true only with -std.  */
335021c2f794Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
335121c2f794Smrg
335221c2f794Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
335321c2f794Smrg   inside strings and character constants.  */
335421c2f794Smrg#define FOO(x) 'x'
335521c2f794Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
335621c2f794Smrg
335721c2f794Smrgint test (int i, double x);
335821c2f794Smrgstruct s1 {int (*f) (int a);};
335921c2f794Smrgstruct s2 {int (*f) (double a);};
336021c2f794Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
336121c2f794Smrgint argc;
336221c2f794Smrgchar **argv;
336321c2f794Smrgint
336421c2f794Smrgmain ()
336521c2f794Smrg{
336621c2f794Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
336721c2f794Smrg  ;
336821c2f794Smrg  return 0;
336921c2f794Smrg}
337021c2f794Smrg_ACEOF
337121c2f794Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
337221c2f794Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
337321c2f794Smrgdo
337421c2f794Smrg  CC="$ac_save_CC $ac_arg"
337512391620Smrg  if ac_fn_c_try_compile "$LINENO"; then :
337621c2f794Smrg  ac_cv_prog_cc_c89=$ac_arg
337712391620Smrgfi
337812391620Smrgrm -f core conftest.err conftest.$ac_objext
337912391620Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
338012391620Smrgdone
338112391620Smrgrm -f conftest.$ac_ext
338212391620SmrgCC=$ac_save_CC
338312391620Smrg
338412391620Smrgfi
338512391620Smrg# AC_CACHE_VAL
338612391620Smrgcase "x$ac_cv_prog_cc_c89" in
338712391620Smrg  x)
338812391620Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
338912391620Smrg$as_echo "none needed" >&6; } ;;
339012391620Smrg  xno)
339112391620Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
339212391620Smrg$as_echo "unsupported" >&6; } ;;
339312391620Smrg  *)
339412391620Smrg    CC="$CC $ac_cv_prog_cc_c89"
339512391620Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
339612391620Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
339712391620Smrgesac
339812391620Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
339912391620Smrg
340012391620Smrgfi
340112391620Smrg
340212391620Smrgac_ext=c
340312391620Smrgac_cpp='$CPP $CPPFLAGS'
340412391620Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
340512391620Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
340612391620Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
340712391620Smrg
340812391620Smrgdepcc="$CC"   am_compiler_list=
340912391620Smrg
341012391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
341112391620Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
341212391620Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
341312391620Smrg  $as_echo_n "(cached) " >&6
341421c2f794Smrgelse
341512391620Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
341612391620Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
341712391620Smrg  # making bogus files that we don't know about and never remove.  For
341812391620Smrg  # instance it was reported that on HP-UX the gcc test will end up
341912391620Smrg  # making a dummy file named `D' -- because `-MD' means `put the output
342012391620Smrg  # in D'.
342112391620Smrg  mkdir conftest.dir
342212391620Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
342312391620Smrg  # using a relative directory.
342412391620Smrg  cp "$am_depcomp" conftest.dir
342512391620Smrg  cd conftest.dir
342612391620Smrg  # We will build objects and dependencies in a subdirectory because
342712391620Smrg  # it helps to detect inapplicable dependency modes.  For instance
342812391620Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
342912391620Smrg  # side effect of compilation, but ICC will put the dependencies in
343012391620Smrg  # the current directory while Tru64 will put them in the object
343112391620Smrg  # directory.
343212391620Smrg  mkdir sub
343312391620Smrg
343412391620Smrg  am_cv_CC_dependencies_compiler_type=none
343512391620Smrg  if test "$am_compiler_list" = ""; then
343612391620Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
343712391620Smrg  fi
343812391620Smrg  am__universal=false
343912391620Smrg  case " $depcc " in #(
344012391620Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
344112391620Smrg     esac
344212391620Smrg
344312391620Smrg  for depmode in $am_compiler_list; do
344412391620Smrg    # Setup a source with many dependencies, because some compilers
344512391620Smrg    # like to wrap large dependency lists on column 80 (with \), and
344612391620Smrg    # we should not choose a depcomp mode which is confused by this.
344712391620Smrg    #
344812391620Smrg    # We need to recreate these files for each test, as the compiler may
344912391620Smrg    # overwrite some of them when testing with obscure command lines.
345012391620Smrg    # This happens at least with the AIX C compiler.
345112391620Smrg    : > sub/conftest.c
345212391620Smrg    for i in 1 2 3 4 5 6; do
345312391620Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
345412391620Smrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
345512391620Smrg      # Solaris 8's {/usr,}/bin/sh.
345612391620Smrg      touch sub/conftst$i.h
345712391620Smrg    done
345812391620Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
345912391620Smrg
346012391620Smrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
346112391620Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
346212391620Smrg    # handle `-M -o', and we need to detect this.  Also, some Intel
346312391620Smrg    # versions had trouble with output in subdirs
346412391620Smrg    am__obj=sub/conftest.${OBJEXT-o}
346512391620Smrg    am__minus_obj="-o $am__obj"
346612391620Smrg    case $depmode in
346712391620Smrg    gcc)
346812391620Smrg      # This depmode causes a compiler race in universal mode.
346912391620Smrg      test "$am__universal" = false || continue
347012391620Smrg      ;;
347112391620Smrg    nosideeffect)
347212391620Smrg      # after this tag, mechanisms are not by side-effect, so they'll
347312391620Smrg      # only be used when explicitly requested
347412391620Smrg      if test "x$enable_dependency_tracking" = xyes; then
347512391620Smrg	continue
347612391620Smrg      else
347712391620Smrg	break
347812391620Smrg      fi
347912391620Smrg      ;;
348012391620Smrg    msvisualcpp | msvcmsys)
348112391620Smrg      # This compiler won't grok `-c -o', but also, the minuso test has
348212391620Smrg      # not run yet.  These depmodes are late enough in the game, and
348312391620Smrg      # so weak that their functioning should not be impacted.
348412391620Smrg      am__obj=conftest.${OBJEXT-o}
348512391620Smrg      am__minus_obj=
348612391620Smrg      ;;
348712391620Smrg    none) break ;;
348812391620Smrg    esac
348912391620Smrg    if depmode=$depmode \
349012391620Smrg       source=sub/conftest.c object=$am__obj \
349112391620Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
349212391620Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
349312391620Smrg         >/dev/null 2>conftest.err &&
349412391620Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
349512391620Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
349612391620Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
349712391620Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
349812391620Smrg      # icc doesn't choke on unknown options, it will just issue warnings
349912391620Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
350012391620Smrg      # that says an option was ignored or not supported.
350112391620Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
350212391620Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
350312391620Smrg      # The diagnosis changed in icc 8.0:
350412391620Smrg      #   icc: Command line remark: option '-MP' not supported
350512391620Smrg      if (grep 'ignoring option' conftest.err ||
350612391620Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
350712391620Smrg        am_cv_CC_dependencies_compiler_type=$depmode
350812391620Smrg        break
350912391620Smrg      fi
351012391620Smrg    fi
351112391620Smrg  done
351212391620Smrg
351312391620Smrg  cd ..
351412391620Smrg  rm -rf conftest.dir
351512391620Smrgelse
351612391620Smrg  am_cv_CC_dependencies_compiler_type=none
351712391620Smrgfi
351821c2f794Smrg
351912391620Smrgfi
352012391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
352112391620Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
352212391620SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
352321c2f794Smrg
352412391620Smrg if
352512391620Smrg  test "x$enable_dependency_tracking" != xno \
352612391620Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
352712391620Smrg  am__fastdepCC_TRUE=
352812391620Smrg  am__fastdepCC_FALSE='#'
352912391620Smrgelse
353012391620Smrg  am__fastdepCC_TRUE='#'
353112391620Smrg  am__fastdepCC_FALSE=
353221c2f794Smrgfi
353321c2f794Smrg
353412391620Smrg
353512391620Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
353612391620Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
353712391620Smrgif ${ac_cv_prog_cc_c99+:} false; then :
353812391620Smrg  $as_echo_n "(cached) " >&6
353912391620Smrgelse
354012391620Smrg  ac_cv_prog_cc_c99=no
354112391620Smrgac_save_CC=$CC
354212391620Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
354312391620Smrg/* end confdefs.h.  */
354412391620Smrg#include <stdarg.h>
354512391620Smrg#include <stdbool.h>
354612391620Smrg#include <stdlib.h>
354712391620Smrg#include <wchar.h>
354812391620Smrg#include <stdio.h>
354912391620Smrg
355012391620Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
355112391620Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
355212391620Smrg#define showlist(...) puts (#__VA_ARGS__)
355312391620Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
355412391620Smrgstatic void
355512391620Smrgtest_varargs_macros (void)
355612391620Smrg{
355712391620Smrg  int x = 1234;
355812391620Smrg  int y = 5678;
355912391620Smrg  debug ("Flag");
356012391620Smrg  debug ("X = %d\n", x);
356112391620Smrg  showlist (The first, second, and third items.);
356212391620Smrg  report (x>y, "x is %d but y is %d", x, y);
356312391620Smrg}
356412391620Smrg
356512391620Smrg// Check long long types.
356612391620Smrg#define BIG64 18446744073709551615ull
356712391620Smrg#define BIG32 4294967295ul
356812391620Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
356912391620Smrg#if !BIG_OK
357012391620Smrg  your preprocessor is broken;
357112391620Smrg#endif
357212391620Smrg#if BIG_OK
357312391620Smrg#else
357412391620Smrg  your preprocessor is broken;
357512391620Smrg#endif
357612391620Smrgstatic long long int bignum = -9223372036854775807LL;
357712391620Smrgstatic unsigned long long int ubignum = BIG64;
357812391620Smrg
357912391620Smrgstruct incomplete_array
358012391620Smrg{
358112391620Smrg  int datasize;
358212391620Smrg  double data[];
358312391620Smrg};
358412391620Smrg
358512391620Smrgstruct named_init {
358612391620Smrg  int number;
358712391620Smrg  const wchar_t *name;
358812391620Smrg  double average;
358912391620Smrg};
359012391620Smrg
359112391620Smrgtypedef const char *ccp;
359212391620Smrg
359312391620Smrgstatic inline int
359412391620Smrgtest_restrict (ccp restrict text)
359512391620Smrg{
359612391620Smrg  // See if C++-style comments work.
359712391620Smrg  // Iterate through items via the restricted pointer.
359812391620Smrg  // Also check for declarations in for loops.
359912391620Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
360012391620Smrg    continue;
360112391620Smrg  return 0;
360212391620Smrg}
360312391620Smrg
360412391620Smrg// Check varargs and va_copy.
360512391620Smrgstatic void
360612391620Smrgtest_varargs (const char *format, ...)
360712391620Smrg{
360812391620Smrg  va_list args;
360912391620Smrg  va_start (args, format);
361012391620Smrg  va_list args_copy;
361112391620Smrg  va_copy (args_copy, args);
361212391620Smrg
361312391620Smrg  const char *str;
361412391620Smrg  int number;
361512391620Smrg  float fnumber;
361612391620Smrg
361712391620Smrg  while (*format)
361812391620Smrg    {
361912391620Smrg      switch (*format++)
362012391620Smrg	{
362112391620Smrg	case 's': // string
362212391620Smrg	  str = va_arg (args_copy, const char *);
362312391620Smrg	  break;
362412391620Smrg	case 'd': // int
362512391620Smrg	  number = va_arg (args_copy, int);
362612391620Smrg	  break;
362712391620Smrg	case 'f': // float
362812391620Smrg	  fnumber = va_arg (args_copy, double);
362912391620Smrg	  break;
363012391620Smrg	default:
363112391620Smrg	  break;
363212391620Smrg	}
363312391620Smrg    }
363412391620Smrg  va_end (args_copy);
363512391620Smrg  va_end (args);
363612391620Smrg}
363712391620Smrg
363812391620Smrgint
363912391620Smrgmain ()
364012391620Smrg{
364112391620Smrg
364212391620Smrg  // Check bool.
364312391620Smrg  _Bool success = false;
364412391620Smrg
364512391620Smrg  // Check restrict.
364612391620Smrg  if (test_restrict ("String literal") == 0)
364712391620Smrg    success = true;
364812391620Smrg  char *restrict newvar = "Another string";
364912391620Smrg
365012391620Smrg  // Check varargs.
365112391620Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
365212391620Smrg  test_varargs_macros ();
365312391620Smrg
365412391620Smrg  // Check flexible array members.
365512391620Smrg  struct incomplete_array *ia =
365612391620Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
365712391620Smrg  ia->datasize = 10;
365812391620Smrg  for (int i = 0; i < ia->datasize; ++i)
365912391620Smrg    ia->data[i] = i * 1.234;
366012391620Smrg
366112391620Smrg  // Check named initializers.
366212391620Smrg  struct named_init ni = {
366312391620Smrg    .number = 34,
366412391620Smrg    .name = L"Test wide string",
366512391620Smrg    .average = 543.34343,
366612391620Smrg  };
366712391620Smrg
366812391620Smrg  ni.number = 58;
366912391620Smrg
367012391620Smrg  int dynamic_array[ni.number];
367112391620Smrg  dynamic_array[ni.number - 1] = 543;
367212391620Smrg
367312391620Smrg  // work around unused variable warnings
367412391620Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
367512391620Smrg	  || dynamic_array[ni.number - 1] != 543);
367612391620Smrg
367712391620Smrg  ;
367812391620Smrg  return 0;
367912391620Smrg}
368012391620Smrg_ACEOF
368112391620Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
368212391620Smrgdo
368312391620Smrg  CC="$ac_save_CC $ac_arg"
368412391620Smrg  if ac_fn_c_try_compile "$LINENO"; then :
368512391620Smrg  ac_cv_prog_cc_c99=$ac_arg
368612391620Smrgfi
368721c2f794Smrgrm -f core conftest.err conftest.$ac_objext
368812391620Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
368921c2f794Smrgdone
369021c2f794Smrgrm -f conftest.$ac_ext
369121c2f794SmrgCC=$ac_save_CC
369221c2f794Smrg
369321c2f794Smrgfi
369412391620Smrg# AC_CACHE_VAL
369512391620Smrgcase "x$ac_cv_prog_cc_c99" in
369612391620Smrg  x)
369712391620Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
369812391620Smrg$as_echo "none needed" >&6; } ;;
369912391620Smrg  xno)
370012391620Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
370112391620Smrg$as_echo "unsupported" >&6; } ;;
370212391620Smrg  *)
370312391620Smrg    CC="$CC $ac_cv_prog_cc_c99"
370412391620Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
370512391620Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
370612391620Smrgesac
370712391620Smrgif test "x$ac_cv_prog_cc_c99" != xno; then :
370812391620Smrg
370912391620Smrgfi
371012391620Smrg
371112391620Smrg
371212391620Smrg
371312391620Smrgac_ext=c
371412391620Smrgac_cpp='$CPP $CPPFLAGS'
371512391620Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
371612391620Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
371712391620Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
371812391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
371912391620Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
372012391620Smrg# On Suns, sometimes $CPP names a directory.
372112391620Smrgif test -n "$CPP" && test -d "$CPP"; then
372212391620Smrg  CPP=
372312391620Smrgfi
372412391620Smrgif test -z "$CPP"; then
372512391620Smrg  if ${ac_cv_prog_CPP+:} false; then :
372612391620Smrg  $as_echo_n "(cached) " >&6
372712391620Smrgelse
372812391620Smrg      # Double quotes because CPP needs to be expanded
372912391620Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
373012391620Smrg    do
373112391620Smrg      ac_preproc_ok=false
373212391620Smrgfor ac_c_preproc_warn_flag in '' yes
373312391620Smrgdo
373412391620Smrg  # Use a header file that comes with gcc, so configuring glibc
373512391620Smrg  # with a fresh cross-compiler works.
373612391620Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
373712391620Smrg  # <limits.h> exists even on freestanding compilers.
373812391620Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
373912391620Smrg  # not just through cpp. "Syntax error" is here to catch this case.
374012391620Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
374112391620Smrg/* end confdefs.h.  */
374212391620Smrg#ifdef __STDC__
374312391620Smrg# include <limits.h>
374412391620Smrg#else
374512391620Smrg# include <assert.h>
374612391620Smrg#endif
374712391620Smrg		     Syntax error
374812391620Smrg_ACEOF
374912391620Smrgif ac_fn_c_try_cpp "$LINENO"; then :
375012391620Smrg
375112391620Smrgelse
375212391620Smrg  # Broken: fails on valid input.
375312391620Smrgcontinue
375412391620Smrgfi
375512391620Smrgrm -f conftest.err conftest.i conftest.$ac_ext
375612391620Smrg
375712391620Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
375812391620Smrg  # can be detected and how.
375912391620Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
376012391620Smrg/* end confdefs.h.  */
376112391620Smrg#include <ac_nonexistent.h>
376212391620Smrg_ACEOF
376312391620Smrgif ac_fn_c_try_cpp "$LINENO"; then :
376412391620Smrg  # Broken: success on invalid input.
376512391620Smrgcontinue
376612391620Smrgelse
376712391620Smrg  # Passes both tests.
376812391620Smrgac_preproc_ok=:
376912391620Smrgbreak
377012391620Smrgfi
377112391620Smrgrm -f conftest.err conftest.i conftest.$ac_ext
377212391620Smrg
377312391620Smrgdone
377412391620Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
377512391620Smrgrm -f conftest.i conftest.err conftest.$ac_ext
377612391620Smrgif $ac_preproc_ok; then :
377712391620Smrg  break
377812391620Smrgfi
377912391620Smrg
378012391620Smrg    done
378112391620Smrg    ac_cv_prog_CPP=$CPP
378212391620Smrg
378312391620Smrgfi
378412391620Smrg  CPP=$ac_cv_prog_CPP
378512391620Smrgelse
378612391620Smrg  ac_cv_prog_CPP=$CPP
378712391620Smrgfi
378812391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
378912391620Smrg$as_echo "$CPP" >&6; }
379012391620Smrgac_preproc_ok=false
379112391620Smrgfor ac_c_preproc_warn_flag in '' yes
379212391620Smrgdo
379312391620Smrg  # Use a header file that comes with gcc, so configuring glibc
379412391620Smrg  # with a fresh cross-compiler works.
379512391620Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
379612391620Smrg  # <limits.h> exists even on freestanding compilers.
379712391620Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
379812391620Smrg  # not just through cpp. "Syntax error" is here to catch this case.
379912391620Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
380012391620Smrg/* end confdefs.h.  */
380112391620Smrg#ifdef __STDC__
380212391620Smrg# include <limits.h>
380312391620Smrg#else
380412391620Smrg# include <assert.h>
380512391620Smrg#endif
380612391620Smrg		     Syntax error
380712391620Smrg_ACEOF
380812391620Smrgif ac_fn_c_try_cpp "$LINENO"; then :
380912391620Smrg
381012391620Smrgelse
381112391620Smrg  # Broken: fails on valid input.
381212391620Smrgcontinue
381312391620Smrgfi
381412391620Smrgrm -f conftest.err conftest.i conftest.$ac_ext
381512391620Smrg
381612391620Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
381712391620Smrg  # can be detected and how.
381812391620Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
381912391620Smrg/* end confdefs.h.  */
382012391620Smrg#include <ac_nonexistent.h>
382112391620Smrg_ACEOF
382212391620Smrgif ac_fn_c_try_cpp "$LINENO"; then :
382312391620Smrg  # Broken: success on invalid input.
382412391620Smrgcontinue
382512391620Smrgelse
382612391620Smrg  # Passes both tests.
382712391620Smrgac_preproc_ok=:
382812391620Smrgbreak
382912391620Smrgfi
383012391620Smrgrm -f conftest.err conftest.i conftest.$ac_ext
383112391620Smrg
383212391620Smrgdone
383312391620Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
383412391620Smrgrm -f conftest.i conftest.err conftest.$ac_ext
383512391620Smrgif $ac_preproc_ok; then :
383612391620Smrg
383712391620Smrgelse
383812391620Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
383912391620Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
384012391620Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
384112391620SmrgSee \`config.log' for more details" "$LINENO" 5; }
384212391620Smrgfi
384321c2f794Smrg
384421c2f794Smrgac_ext=c
384521c2f794Smrgac_cpp='$CPP $CPPFLAGS'
384621c2f794Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
384721c2f794Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
384821c2f794Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
384921c2f794Smrg
385021c2f794Smrg
385112391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
385212391620Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
385312391620Smrgif ${ac_cv_path_GREP+:} false; then :
385412391620Smrg  $as_echo_n "(cached) " >&6
385512391620Smrgelse
385612391620Smrg  if test -z "$GREP"; then
385712391620Smrg  ac_path_GREP_found=false
385812391620Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
385912391620Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
386012391620Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
386112391620Smrgdo
386212391620Smrg  IFS=$as_save_IFS
386312391620Smrg  test -z "$as_dir" && as_dir=.
386412391620Smrg    for ac_prog in grep ggrep; do
386512391620Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
386612391620Smrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
386712391620Smrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
386812391620Smrg# Check for GNU ac_path_GREP and select it if it is found.
386912391620Smrg  # Check for GNU $ac_path_GREP
387012391620Smrgcase `"$ac_path_GREP" --version 2>&1` in
387112391620Smrg*GNU*)
387212391620Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
387312391620Smrg*)
387412391620Smrg  ac_count=0
387512391620Smrg  $as_echo_n 0123456789 >"conftest.in"
387612391620Smrg  while :
387712391620Smrg  do
387812391620Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
387912391620Smrg    mv "conftest.tmp" "conftest.in"
388012391620Smrg    cp "conftest.in" "conftest.nl"
388112391620Smrg    $as_echo 'GREP' >> "conftest.nl"
388212391620Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
388312391620Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
388412391620Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
388512391620Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
388612391620Smrg      # Best one so far, save it but keep looking for a better one
388712391620Smrg      ac_cv_path_GREP="$ac_path_GREP"
388812391620Smrg      ac_path_GREP_max=$ac_count
388912391620Smrg    fi
389012391620Smrg    # 10*(2^10) chars as input seems more than enough
389112391620Smrg    test $ac_count -gt 10 && break
389212391620Smrg  done
389312391620Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
389412391620Smrgesac
389521c2f794Smrg
389612391620Smrg      $ac_path_GREP_found && break 3
389712391620Smrg    done
389812391620Smrg  done
389912391620Smrg  done
390012391620SmrgIFS=$as_save_IFS
390112391620Smrg  if test -z "$ac_cv_path_GREP"; then
390212391620Smrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
390312391620Smrg  fi
390412391620Smrgelse
390512391620Smrg  ac_cv_path_GREP=$GREP
390621c2f794Smrgfi
390712391620Smrg
390821c2f794Smrgfi
390912391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
391012391620Smrg$as_echo "$ac_cv_path_GREP" >&6; }
391112391620Smrg GREP="$ac_cv_path_GREP"
391221c2f794Smrg
391321c2f794Smrg
391412391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
391512391620Smrg$as_echo_n "checking for egrep... " >&6; }
391612391620Smrgif ${ac_cv_path_EGREP+:} false; then :
391712391620Smrg  $as_echo_n "(cached) " >&6
391812391620Smrgelse
391912391620Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
392012391620Smrg   then ac_cv_path_EGREP="$GREP -E"
392112391620Smrg   else
392212391620Smrg     if test -z "$EGREP"; then
392312391620Smrg  ac_path_EGREP_found=false
392412391620Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
392512391620Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
392612391620Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
392712391620Smrgdo
392812391620Smrg  IFS=$as_save_IFS
392912391620Smrg  test -z "$as_dir" && as_dir=.
393012391620Smrg    for ac_prog in egrep; do
393112391620Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
393212391620Smrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
393312391620Smrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
393412391620Smrg# Check for GNU ac_path_EGREP and select it if it is found.
393512391620Smrg  # Check for GNU $ac_path_EGREP
393612391620Smrgcase `"$ac_path_EGREP" --version 2>&1` in
393712391620Smrg*GNU*)
393812391620Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
393912391620Smrg*)
394012391620Smrg  ac_count=0
394112391620Smrg  $as_echo_n 0123456789 >"conftest.in"
394212391620Smrg  while :
394312391620Smrg  do
394412391620Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
394512391620Smrg    mv "conftest.tmp" "conftest.in"
394612391620Smrg    cp "conftest.in" "conftest.nl"
394712391620Smrg    $as_echo 'EGREP' >> "conftest.nl"
394812391620Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
394912391620Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
395012391620Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
395112391620Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
395212391620Smrg      # Best one so far, save it but keep looking for a better one
395312391620Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
395412391620Smrg      ac_path_EGREP_max=$ac_count
395512391620Smrg    fi
395612391620Smrg    # 10*(2^10) chars as input seems more than enough
395712391620Smrg    test $ac_count -gt 10 && break
395812391620Smrg  done
395912391620Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
396012391620Smrgesac
396121c2f794Smrg
396212391620Smrg      $ac_path_EGREP_found && break 3
396312391620Smrg    done
396412391620Smrg  done
396512391620Smrg  done
396612391620SmrgIFS=$as_save_IFS
396712391620Smrg  if test -z "$ac_cv_path_EGREP"; then
396812391620Smrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
396912391620Smrg  fi
397012391620Smrgelse
397112391620Smrg  ac_cv_path_EGREP=$EGREP
397221c2f794Smrgfi
397321c2f794Smrg
397412391620Smrg   fi
397521c2f794Smrgfi
397612391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
397712391620Smrg$as_echo "$ac_cv_path_EGREP" >&6; }
397812391620Smrg EGREP="$ac_cv_path_EGREP"
397921c2f794Smrg
398021c2f794Smrg
398112391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
398212391620Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
398312391620Smrgif ${ac_cv_header_stdc+:} false; then :
398412391620Smrg  $as_echo_n "(cached) " >&6
398512391620Smrgelse
398612391620Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
398712391620Smrg/* end confdefs.h.  */
398812391620Smrg#include <stdlib.h>
398912391620Smrg#include <stdarg.h>
399012391620Smrg#include <string.h>
399112391620Smrg#include <float.h>
399221c2f794Smrg
399312391620Smrgint
399412391620Smrgmain ()
399512391620Smrg{
399621c2f794Smrg
399712391620Smrg  ;
399812391620Smrg  return 0;
399912391620Smrg}
400012391620Smrg_ACEOF
400112391620Smrgif ac_fn_c_try_compile "$LINENO"; then :
400212391620Smrg  ac_cv_header_stdc=yes
400321c2f794Smrgelse
400412391620Smrg  ac_cv_header_stdc=no
400512391620Smrgfi
400612391620Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
400721c2f794Smrg
400812391620Smrgif test $ac_cv_header_stdc = yes; then
400912391620Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
401012391620Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
401112391620Smrg/* end confdefs.h.  */
401212391620Smrg#include <string.h>
401321c2f794Smrg
401412391620Smrg_ACEOF
401512391620Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
401612391620Smrg  $EGREP "memchr" >/dev/null 2>&1; then :
401721c2f794Smrg
401821c2f794Smrgelse
401912391620Smrg  ac_cv_header_stdc=no
402021c2f794Smrgfi
402112391620Smrgrm -f conftest*
402221c2f794Smrg
402321c2f794Smrgfi
402421c2f794Smrg
402512391620Smrgif test $ac_cv_header_stdc = yes; then
402612391620Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
402712391620Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
402812391620Smrg/* end confdefs.h.  */
402912391620Smrg#include <stdlib.h>
403012391620Smrg
403112391620Smrg_ACEOF
403212391620Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
403312391620Smrg  $EGREP "free" >/dev/null 2>&1; then :
403412391620Smrg
403521c2f794Smrgelse
403612391620Smrg  ac_cv_header_stdc=no
403721c2f794Smrgfi
403812391620Smrgrm -f conftest*
403921c2f794Smrg
404012391620Smrgfi
404121c2f794Smrg
404212391620Smrgif test $ac_cv_header_stdc = yes; then
404312391620Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
404412391620Smrg  if test "$cross_compiling" = yes; then :
404512391620Smrg  :
404621c2f794Smrgelse
404712391620Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
404812391620Smrg/* end confdefs.h.  */
404912391620Smrg#include <ctype.h>
405012391620Smrg#include <stdlib.h>
405112391620Smrg#if ((' ' & 0x0FF) == 0x020)
405212391620Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
405312391620Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
405412391620Smrg#else
405512391620Smrg# define ISLOWER(c) \
405612391620Smrg		   (('a' <= (c) && (c) <= 'i') \
405712391620Smrg		     || ('j' <= (c) && (c) <= 'r') \
405812391620Smrg		     || ('s' <= (c) && (c) <= 'z'))
405912391620Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
406012391620Smrg#endif
406121c2f794Smrg
406212391620Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
406312391620Smrgint
406412391620Smrgmain ()
406512391620Smrg{
406612391620Smrg  int i;
406712391620Smrg  for (i = 0; i < 256; i++)
406812391620Smrg    if (XOR (islower (i), ISLOWER (i))
406912391620Smrg	|| toupper (i) != TOUPPER (i))
407012391620Smrg      return 2;
407112391620Smrg  return 0;
407212391620Smrg}
407312391620Smrg_ACEOF
407412391620Smrgif ac_fn_c_try_run "$LINENO"; then :
407521c2f794Smrg
407612391620Smrgelse
407712391620Smrg  ac_cv_header_stdc=no
407821c2f794Smrgfi
407912391620Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
408012391620Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
408121c2f794Smrgfi
408221c2f794Smrg
408312391620Smrgfi
408412391620Smrgfi
408512391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
408612391620Smrg$as_echo "$ac_cv_header_stdc" >&6; }
408712391620Smrgif test $ac_cv_header_stdc = yes; then
408821c2f794Smrg
408912391620Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
409021c2f794Smrg
409112391620Smrgfi
409212391620Smrg
409312391620Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
409412391620Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
409512391620Smrg		  inttypes.h stdint.h unistd.h
409612391620Smrgdo :
409712391620Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
409812391620Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
409912391620Smrg"
410012391620Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
410112391620Smrg  cat >>confdefs.h <<_ACEOF
410212391620Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
410312391620Smrg_ACEOF
410412391620Smrg
410512391620Smrgfi
410612391620Smrg
410712391620Smrgdone
410821c2f794Smrg
410921c2f794Smrg
411021c2f794Smrg
411121c2f794Smrg
411221c2f794Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
411321c2f794Smrg	if test -n "$ac_tool_prefix"; then
411421c2f794Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
411521c2f794Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
411612391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
411712391620Smrg$as_echo_n "checking for $ac_word... " >&6; }
411812391620Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
411912391620Smrg  $as_echo_n "(cached) " >&6
412021c2f794Smrgelse
412121c2f794Smrg  case $PKG_CONFIG in
412221c2f794Smrg  [\\/]* | ?:[\\/]*)
412321c2f794Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
412421c2f794Smrg  ;;
412521c2f794Smrg  *)
412621c2f794Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
412721c2f794Smrgfor as_dir in $PATH
412821c2f794Smrgdo
412921c2f794Smrg  IFS=$as_save_IFS
413021c2f794Smrg  test -z "$as_dir" && as_dir=.
413112391620Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
413221c2f794Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
413321c2f794Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
413412391620Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
413521c2f794Smrg    break 2
413621c2f794Smrg  fi
413721c2f794Smrgdone
413812391620Smrg  done
413921c2f794SmrgIFS=$as_save_IFS
414021c2f794Smrg
414121c2f794Smrg  ;;
414221c2f794Smrgesac
414321c2f794Smrgfi
414421c2f794SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
414521c2f794Smrgif test -n "$PKG_CONFIG"; then
414612391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
414712391620Smrg$as_echo "$PKG_CONFIG" >&6; }
414821c2f794Smrgelse
414912391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
415012391620Smrg$as_echo "no" >&6; }
415121c2f794Smrgfi
415221c2f794Smrg
415321c2f794Smrg
415421c2f794Smrgfi
415521c2f794Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
415621c2f794Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
415721c2f794Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
415821c2f794Smrgset dummy pkg-config; ac_word=$2
415912391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
416012391620Smrg$as_echo_n "checking for $ac_word... " >&6; }
416112391620Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
416212391620Smrg  $as_echo_n "(cached) " >&6
416321c2f794Smrgelse
416421c2f794Smrg  case $ac_pt_PKG_CONFIG in
416521c2f794Smrg  [\\/]* | ?:[\\/]*)
416621c2f794Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
416721c2f794Smrg  ;;
416821c2f794Smrg  *)
416921c2f794Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
417021c2f794Smrgfor as_dir in $PATH
417121c2f794Smrgdo
417221c2f794Smrg  IFS=$as_save_IFS
417321c2f794Smrg  test -z "$as_dir" && as_dir=.
417412391620Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
417521c2f794Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
417621c2f794Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
417712391620Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
417821c2f794Smrg    break 2
417921c2f794Smrg  fi
418021c2f794Smrgdone
418112391620Smrg  done
418221c2f794SmrgIFS=$as_save_IFS
418321c2f794Smrg
418421c2f794Smrg  ;;
418521c2f794Smrgesac
418621c2f794Smrgfi
418721c2f794Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
418821c2f794Smrgif test -n "$ac_pt_PKG_CONFIG"; then
418912391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
419012391620Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
419121c2f794Smrgelse
419212391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
419312391620Smrg$as_echo "no" >&6; }
419421c2f794Smrgfi
419521c2f794Smrg
419621c2f794Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
419721c2f794Smrg    PKG_CONFIG=""
419821c2f794Smrg  else
419921c2f794Smrg    case $cross_compiling:$ac_tool_warned in
420021c2f794Smrgyes:)
420112391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
420212391620Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
420321c2f794Smrgac_tool_warned=yes ;;
420421c2f794Smrgesac
420521c2f794Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
420621c2f794Smrg  fi
420721c2f794Smrgelse
420821c2f794Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
420921c2f794Smrgfi
421021c2f794Smrg
421121c2f794Smrgfi
421221c2f794Smrgif test -n "$PKG_CONFIG"; then
421321c2f794Smrg	_pkg_min_version=0.9.0
421412391620Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
421512391620Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
421621c2f794Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
421712391620Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
421812391620Smrg$as_echo "yes" >&6; }
421921c2f794Smrg	else
422012391620Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
422112391620Smrg$as_echo "no" >&6; }
422221c2f794Smrg		PKG_CONFIG=""
422321c2f794Smrg	fi
422421c2f794Smrg
422521c2f794Smrgfi
422621c2f794Smrg# Make sure we can run config.sub.
422721c2f794Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
422812391620Smrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
422921c2f794Smrg
423012391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
423112391620Smrg$as_echo_n "checking build system type... " >&6; }
423212391620Smrgif ${ac_cv_build+:} false; then :
423312391620Smrg  $as_echo_n "(cached) " >&6
423421c2f794Smrgelse
423521c2f794Smrg  ac_build_alias=$build_alias
423621c2f794Smrgtest "x$ac_build_alias" = x &&
423721c2f794Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
423821c2f794Smrgtest "x$ac_build_alias" = x &&
423912391620Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
424021c2f794Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
424112391620Smrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
424221c2f794Smrg
424321c2f794Smrgfi
424412391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
424512391620Smrg$as_echo "$ac_cv_build" >&6; }
424621c2f794Smrgcase $ac_cv_build in
424721c2f794Smrg*-*-*) ;;
424812391620Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
424921c2f794Smrgesac
425021c2f794Smrgbuild=$ac_cv_build
425121c2f794Smrgac_save_IFS=$IFS; IFS='-'
425221c2f794Smrgset x $ac_cv_build
425321c2f794Smrgshift
425421c2f794Smrgbuild_cpu=$1
425521c2f794Smrgbuild_vendor=$2
425621c2f794Smrgshift; shift
425721c2f794Smrg# Remember, the first character of IFS is used to create $*,
425821c2f794Smrg# except with old shells:
425921c2f794Smrgbuild_os=$*
426021c2f794SmrgIFS=$ac_save_IFS
426121c2f794Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
426221c2f794Smrg
426321c2f794Smrg
426412391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
426512391620Smrg$as_echo_n "checking host system type... " >&6; }
426612391620Smrgif ${ac_cv_host+:} false; then :
426712391620Smrg  $as_echo_n "(cached) " >&6
426821c2f794Smrgelse
426921c2f794Smrg  if test "x$host_alias" = x; then
427021c2f794Smrg  ac_cv_host=$ac_cv_build
427121c2f794Smrgelse
427221c2f794Smrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
427312391620Smrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
427421c2f794Smrgfi
427521c2f794Smrg
427621c2f794Smrgfi
427712391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
427812391620Smrg$as_echo "$ac_cv_host" >&6; }
427921c2f794Smrgcase $ac_cv_host in
428021c2f794Smrg*-*-*) ;;
428112391620Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
428221c2f794Smrgesac
428321c2f794Smrghost=$ac_cv_host
428421c2f794Smrgac_save_IFS=$IFS; IFS='-'
428521c2f794Smrgset x $ac_cv_host
428621c2f794Smrgshift
428721c2f794Smrghost_cpu=$1
428821c2f794Smrghost_vendor=$2
428921c2f794Smrgshift; shift
429021c2f794Smrg# Remember, the first character of IFS is used to create $*,
429121c2f794Smrg# except with old shells:
429221c2f794Smrghost_os=$*
429321c2f794SmrgIFS=$ac_save_IFS
429421c2f794Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
429521c2f794Smrg
429621c2f794Smrg
429712391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
429812391620Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
429912391620Smrgif ${ac_cv_path_SED+:} false; then :
430012391620Smrg  $as_echo_n "(cached) " >&6
430112391620Smrgelse
430212391620Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
430312391620Smrg     for ac_i in 1 2 3 4 5 6 7; do
430412391620Smrg       ac_script="$ac_script$as_nl$ac_script"
430512391620Smrg     done
430612391620Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
430712391620Smrg     { ac_script=; unset ac_script;}
430812391620Smrg     if test -z "$SED"; then
430912391620Smrg  ac_path_SED_found=false
431012391620Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
431112391620Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
431212391620Smrgfor as_dir in $PATH
431312391620Smrgdo
431412391620Smrg  IFS=$as_save_IFS
431512391620Smrg  test -z "$as_dir" && as_dir=.
431612391620Smrg    for ac_prog in sed gsed; do
431712391620Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
431812391620Smrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
431912391620Smrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
432012391620Smrg# Check for GNU ac_path_SED and select it if it is found.
432112391620Smrg  # Check for GNU $ac_path_SED
432212391620Smrgcase `"$ac_path_SED" --version 2>&1` in
432312391620Smrg*GNU*)
432412391620Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
432512391620Smrg*)
432612391620Smrg  ac_count=0
432712391620Smrg  $as_echo_n 0123456789 >"conftest.in"
432812391620Smrg  while :
432912391620Smrg  do
433012391620Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
433112391620Smrg    mv "conftest.tmp" "conftest.in"
433212391620Smrg    cp "conftest.in" "conftest.nl"
433312391620Smrg    $as_echo '' >> "conftest.nl"
433412391620Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
433512391620Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
433612391620Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
433712391620Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
433812391620Smrg      # Best one so far, save it but keep looking for a better one
433912391620Smrg      ac_cv_path_SED="$ac_path_SED"
434012391620Smrg      ac_path_SED_max=$ac_count
434112391620Smrg    fi
434212391620Smrg    # 10*(2^10) chars as input seems more than enough
434312391620Smrg    test $ac_count -gt 10 && break
434412391620Smrg  done
434512391620Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
434612391620Smrgesac
434712391620Smrg
434812391620Smrg      $ac_path_SED_found && break 3
434912391620Smrg    done
435012391620Smrg  done
435112391620Smrg  done
435212391620SmrgIFS=$as_save_IFS
435312391620Smrg  if test -z "$ac_cv_path_SED"; then
435412391620Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
435512391620Smrg  fi
435612391620Smrgelse
435712391620Smrg  ac_cv_path_SED=$SED
435812391620Smrgfi
435912391620Smrg
436012391620Smrgfi
436112391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
436212391620Smrg$as_echo "$ac_cv_path_SED" >&6; }
436312391620Smrg SED="$ac_cv_path_SED"
436412391620Smrg  rm -f conftest.sed
436512391620Smrg
436612391620Smrg
436712391620Smrg
436812391620Smrg
436912391620Smrg
437012391620Smrgif  test "x$GCC" = xyes ; then
437112391620Smrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
437212391620Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
437312391620Smrg-Wbad-function-cast -Wformat=2"
437412391620Smrg    case `$CC -dumpversion` in
437512391620Smrg    3.4.* | 4.*)
437612391620Smrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
437712391620Smrg	;;
437812391620Smrg    esac
437912391620Smrgelse
438012391620Smrg    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
438112391620Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
438212391620Smrg  SUNCC="yes"
438312391620Smrgelse
438412391620Smrg  SUNCC="no"
438512391620Smrgfi
438612391620Smrg
438712391620Smrg    if test "x$SUNCC" = "xyes"; then
438812391620Smrg	CWARNFLAGS="-v"
438912391620Smrg    fi
439012391620Smrgfi
439112391620Smrg
439212391620Smrg
439312391620Smrg
439412391620Smrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
439512391620Smrg
439612391620Smrg
439712391620Smrg
439812391620Smrg# Check whether --enable-strict-compilation was given.
439912391620Smrgif test "${enable_strict_compilation+set}" = set; then :
440012391620Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
440112391620Smrgelse
440212391620Smrg  STRICT_COMPILE=no
440312391620Smrgfi
440412391620Smrg
440512391620Smrgif test "x$STRICT_COMPILE" = "xyes"; then
440612391620Smrg	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
440712391620Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
440812391620Smrg  SUNCC="yes"
440912391620Smrgelse
441012391620Smrg  SUNCC="no"
441112391620Smrgfi
441212391620Smrg
441312391620Smrg	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
441412391620Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
441512391620Smrg  INTELCC="yes"
441612391620Smrgelse
441712391620Smrg  INTELCC="no"
441812391620Smrgfi
441912391620Smrg
442012391620Smrg	if test "x$GCC" = xyes ; then
442112391620Smrg		STRICT_CFLAGS="-pedantic -Werror"
442212391620Smrg	elif test "x$SUNCC" = "xyes"; then
442312391620Smrg		STRICT_CFLAGS="-errwarn"
442412391620Smrg    elif test "x$INTELCC" = "xyes"; then
442512391620Smrg		STRICT_CFLAGS="-Werror"
442612391620Smrg	fi
442712391620Smrgfi
442812391620SmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
442912391620Smrg
443012391620Smrg
443112391620Smrg
443212391620Smrg
443312391620Smrgcat >>confdefs.h <<_ACEOF
443412391620Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
443512391620Smrg_ACEOF
443612391620Smrg
443712391620Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
443812391620Smrg	if test "x$PVM" = "x"; then
443912391620Smrg		PVM="0"
444012391620Smrg	fi
444112391620Smrg
444212391620Smrgcat >>confdefs.h <<_ACEOF
444312391620Smrg#define PACKAGE_VERSION_MINOR $PVM
444412391620Smrg_ACEOF
444512391620Smrg
444612391620Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
444712391620Smrg	if test "x$PVP" = "x"; then
444812391620Smrg		PVP="0"
444912391620Smrg	fi
445012391620Smrg
445112391620Smrgcat >>confdefs.h <<_ACEOF
445212391620Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
445312391620Smrg_ACEOF
445412391620Smrg
445512391620Smrg
445612391620Smrg
445712391620SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
445812391620Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
445912391620Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
446012391620Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
446112391620Smrg
446212391620Smrg
446312391620Smrg
446412391620Smrg
446512391620Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
446612391620SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
446712391620Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
446812391620Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
446912391620Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
447012391620Smrg
447112391620Smrg
447212391620Smrg
447321c2f794Smrg
447421c2f794Smrg
447521c2f794Smrg
447621c2f794Smrgif test x$APP_MAN_SUFFIX = x    ; then
447721c2f794Smrg    APP_MAN_SUFFIX=1
447821c2f794Smrgfi
447921c2f794Smrgif test x$APP_MAN_DIR = x    ; then
448021c2f794Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
448121c2f794Smrgfi
448221c2f794Smrg
448321c2f794Smrgif test x$LIB_MAN_SUFFIX = x    ; then
448421c2f794Smrg    LIB_MAN_SUFFIX=3
448521c2f794Smrgfi
448621c2f794Smrgif test x$LIB_MAN_DIR = x    ; then
448721c2f794Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
448821c2f794Smrgfi
448921c2f794Smrg
449021c2f794Smrgif test x$FILE_MAN_SUFFIX = x    ; then
449121c2f794Smrg    case $host_os in
449221c2f794Smrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
449321c2f794Smrg	*)		FILE_MAN_SUFFIX=5  ;;
449421c2f794Smrg    esac
449521c2f794Smrgfi
449621c2f794Smrgif test x$FILE_MAN_DIR = x    ; then
449721c2f794Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
449821c2f794Smrgfi
449921c2f794Smrg
450021c2f794Smrgif test x$MISC_MAN_SUFFIX = x    ; then
450121c2f794Smrg    case $host_os in
450221c2f794Smrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
450321c2f794Smrg	*)		MISC_MAN_SUFFIX=7  ;;
450421c2f794Smrg    esac
450521c2f794Smrgfi
450621c2f794Smrgif test x$MISC_MAN_DIR = x    ; then
450721c2f794Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
450821c2f794Smrgfi
450921c2f794Smrg
451021c2f794Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
451121c2f794Smrg    case $host_os in
451221c2f794Smrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
451321c2f794Smrg	*)		DRIVER_MAN_SUFFIX=4  ;;
451421c2f794Smrg    esac
451521c2f794Smrgfi
451621c2f794Smrgif test x$DRIVER_MAN_DIR = x    ; then
451721c2f794Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
451821c2f794Smrgfi
451921c2f794Smrg
452021c2f794Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
452121c2f794Smrg    case $host_os in
452221c2f794Smrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
452321c2f794Smrg	*)		ADMIN_MAN_SUFFIX=8  ;;
452421c2f794Smrg    esac
452521c2f794Smrgfi
452621c2f794Smrgif test x$ADMIN_MAN_DIR = x    ; then
452721c2f794Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
452821c2f794Smrgfi
452921c2f794Smrg
453021c2f794Smrg
453121c2f794Smrg
453221c2f794Smrg
453321c2f794Smrg
453421c2f794Smrg
453521c2f794Smrg
453621c2f794Smrg
453721c2f794Smrg
453821c2f794Smrg
453921c2f794Smrg
454021c2f794Smrg
454121c2f794Smrg
454221c2f794Smrg
454321c2f794Smrg
454412391620SmrgXORG_MAN_PAGE="X Version 11"
454512391620Smrg
454612391620SmrgMAN_SUBSTS="\
454712391620Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
454812391620Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
454912391620Smrg	-e 's|__xservername__|Xorg|g' \
455012391620Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
455112391620Smrg	-e 's|__projectroot__|\$(prefix)|g' \
455212391620Smrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
455312391620Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
455412391620Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
455512391620Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
455612391620Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
455712391620Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
455812391620Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
455912391620Smrg
456012391620Smrg
456112391620Smrg
456212391620Smrg# Check whether --enable-silent-rules was given.
456312391620Smrgif test "${enable_silent_rules+set}" = set; then :
456412391620Smrg  enableval=$enable_silent_rules;
456512391620Smrgfi
456612391620Smrg
456712391620Smrgcase $enable_silent_rules in
456812391620Smrgyes) AM_DEFAULT_VERBOSITY=0;;
456912391620Smrgno)  AM_DEFAULT_VERBOSITY=1;;
457012391620Smrg*)   AM_DEFAULT_VERBOSITY=0;;
457112391620Smrgesac
457212391620SmrgAM_BACKSLASH='\'
457312391620Smrg
457412391620Smrg
457512391620Smrg
457612391620Smrgac_config_headers="$ac_config_headers config.h"
457712391620Smrg
457821c2f794Smrg
457912391620Smrg# Checks for pkg-config packages
458021c2f794Smrg
458112391620Smrgpkg_failed=no
458212391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FSTOBDF" >&5
458312391620Smrg$as_echo_n "checking for FSTOBDF... " >&6; }
458412391620Smrg
458512391620Smrgif test -n "$FSTOBDF_CFLAGS"; then
458612391620Smrg    pkg_cv_FSTOBDF_CFLAGS="$FSTOBDF_CFLAGS"
458712391620Smrg elif test -n "$PKG_CONFIG"; then
458812391620Smrg    if test -n "$PKG_CONFIG" && \
458912391620Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 libfs\""; } >&5
459012391620Smrg  ($PKG_CONFIG --exists --print-errors "x11 libfs") 2>&5
459112391620Smrg  ac_status=$?
459212391620Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
459312391620Smrg  test $ac_status = 0; }; then
459412391620Smrg  pkg_cv_FSTOBDF_CFLAGS=`$PKG_CONFIG --cflags "x11 libfs" 2>/dev/null`
459512391620Smrgelse
459612391620Smrg  pkg_failed=yes
459712391620Smrgfi
459812391620Smrg else
459912391620Smrg    pkg_failed=untried
460012391620Smrgfi
460112391620Smrgif test -n "$FSTOBDF_LIBS"; then
460212391620Smrg    pkg_cv_FSTOBDF_LIBS="$FSTOBDF_LIBS"
460312391620Smrg elif test -n "$PKG_CONFIG"; then
460412391620Smrg    if test -n "$PKG_CONFIG" && \
460512391620Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 libfs\""; } >&5
460612391620Smrg  ($PKG_CONFIG --exists --print-errors "x11 libfs") 2>&5
460712391620Smrg  ac_status=$?
460812391620Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
460912391620Smrg  test $ac_status = 0; }; then
461012391620Smrg  pkg_cv_FSTOBDF_LIBS=`$PKG_CONFIG --libs "x11 libfs" 2>/dev/null`
461121c2f794Smrgelse
461212391620Smrg  pkg_failed=yes
461312391620Smrgfi
461412391620Smrg else
461512391620Smrg    pkg_failed=untried
461621c2f794Smrgfi
461721c2f794Smrg
461821c2f794Smrg
461921c2f794Smrg
462012391620Smrgif test $pkg_failed = yes; then
462121c2f794Smrg
462212391620Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
462312391620Smrg        _pkg_short_errors_supported=yes
462412391620Smrgelse
462512391620Smrg        _pkg_short_errors_supported=no
462612391620Smrgfi
462712391620Smrg        if test $_pkg_short_errors_supported = yes; then
462812391620Smrg	        FSTOBDF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 libfs" 2>&1`
462912391620Smrg        else
463012391620Smrg	        FSTOBDF_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 libfs" 2>&1`
463112391620Smrg        fi
463212391620Smrg	# Put the nasty error message in config.log where it belongs
463312391620Smrg	echo "$FSTOBDF_PKG_ERRORS" >&5
463421c2f794Smrg
463512391620Smrg	as_fn_error $? "Package requirements (x11 libfs) were not met:
463621c2f794Smrg
463712391620Smrg$FSTOBDF_PKG_ERRORS
463812391620Smrg
463912391620SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
464012391620Smrginstalled software in a non-standard prefix.
464112391620Smrg
464212391620SmrgAlternatively, you may set the environment variables FSTOBDF_CFLAGS
464312391620Smrgand FSTOBDF_LIBS to avoid the need to call pkg-config.
464412391620SmrgSee the pkg-config man page for more details.
464512391620Smrg" "$LINENO" 5
464612391620Smrgelif test $pkg_failed = untried; then
464712391620Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
464812391620Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
464912391620Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
465012391620Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
465112391620Smrgpath to pkg-config.
465221c2f794Smrg
465312391620SmrgAlternatively, you may set the environment variables FSTOBDF_CFLAGS
465412391620Smrgand FSTOBDF_LIBS to avoid the need to call pkg-config.
465512391620SmrgSee the pkg-config man page for more details.
465621c2f794Smrg
465712391620SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
465812391620SmrgSee \`config.log' for more details" "$LINENO" 5; }
465912391620Smrgelse
466012391620Smrg	FSTOBDF_CFLAGS=$pkg_cv_FSTOBDF_CFLAGS
466112391620Smrg	FSTOBDF_LIBS=$pkg_cv_FSTOBDF_LIBS
466212391620Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
466312391620Smrg$as_echo "yes" >&6; }
466412391620Smrg	:
466512391620Smrgfi
466621c2f794Smrg
466721c2f794Smrgac_config_files="$ac_config_files Makefile"
466821c2f794Smrg
466921c2f794Smrgcat >confcache <<\_ACEOF
467021c2f794Smrg# This file is a shell script that caches the results of configure
467121c2f794Smrg# tests run on this system so they can be shared between configure
467221c2f794Smrg# scripts and configure runs, see configure's option --config-cache.
467321c2f794Smrg# It is not useful on other systems.  If it contains results you don't
467421c2f794Smrg# want to keep, you may remove or edit it.
467521c2f794Smrg#
467621c2f794Smrg# config.status only pays attention to the cache file if you give it
467721c2f794Smrg# the --recheck option to rerun configure.
467821c2f794Smrg#
467921c2f794Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
468021c2f794Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
468121c2f794Smrg# following values.
468221c2f794Smrg
468321c2f794Smrg_ACEOF
468421c2f794Smrg
468521c2f794Smrg# The following way of writing the cache mishandles newlines in values,
468621c2f794Smrg# but we know of no workaround that is simple, portable, and efficient.
468721c2f794Smrg# So, we kill variables containing newlines.
468821c2f794Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
468921c2f794Smrg# and sets the high bit in the cache file unless we assign to the vars.
469021c2f794Smrg(
469121c2f794Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
469221c2f794Smrg    eval ac_val=\$$ac_var
469321c2f794Smrg    case $ac_val in #(
469421c2f794Smrg    *${as_nl}*)
469521c2f794Smrg      case $ac_var in #(
469612391620Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
469712391620Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
469821c2f794Smrg      esac
469921c2f794Smrg      case $ac_var in #(
470021c2f794Smrg      _ | IFS | as_nl) ;; #(
470112391620Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
470212391620Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
470321c2f794Smrg      esac ;;
470421c2f794Smrg    esac
470521c2f794Smrg  done
470621c2f794Smrg
470721c2f794Smrg  (set) 2>&1 |
470821c2f794Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
470921c2f794Smrg    *${as_nl}ac_space=\ *)
471012391620Smrg      # `set' does not quote correctly, so add quotes: double-quote
471112391620Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
471221c2f794Smrg      sed -n \
471321c2f794Smrg	"s/'/'\\\\''/g;
471421c2f794Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
471521c2f794Smrg      ;; #(
471621c2f794Smrg    *)
471721c2f794Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
471821c2f794Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
471921c2f794Smrg      ;;
472021c2f794Smrg    esac |
472121c2f794Smrg    sort
472221c2f794Smrg) |
472321c2f794Smrg  sed '
472421c2f794Smrg     /^ac_cv_env_/b end
472521c2f794Smrg     t clear
472621c2f794Smrg     :clear
472721c2f794Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
472821c2f794Smrg     t end
472921c2f794Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
473021c2f794Smrg     :end' >>confcache
473121c2f794Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
473221c2f794Smrg  if test -w "$cache_file"; then
473312391620Smrg    if test "x$cache_file" != "x/dev/null"; then
473412391620Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
473512391620Smrg$as_echo "$as_me: updating cache $cache_file" >&6;}
473612391620Smrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
473712391620Smrg	cat confcache >"$cache_file"
473812391620Smrg      else
473912391620Smrg        case $cache_file in #(
474012391620Smrg        */* | ?:*)
474112391620Smrg	  mv -f confcache "$cache_file"$$ &&
474212391620Smrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
474312391620Smrg        *)
474412391620Smrg	  mv -f confcache "$cache_file" ;;
474512391620Smrg	esac
474612391620Smrg      fi
474712391620Smrg    fi
474821c2f794Smrg  else
474912391620Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
475012391620Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
475121c2f794Smrg  fi
475221c2f794Smrgfi
475321c2f794Smrgrm -f confcache
475421c2f794Smrg
475521c2f794Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
475621c2f794Smrg# Let make expand exec_prefix.
475721c2f794Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
475821c2f794Smrg
475921c2f794SmrgDEFS=-DHAVE_CONFIG_H
476021c2f794Smrg
476121c2f794Smrgac_libobjs=
476221c2f794Smrgac_ltlibobjs=
476312391620SmrgU=
476421c2f794Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
476521c2f794Smrg  # 1. Remove the extension, and $U if already installed.
476621c2f794Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
476712391620Smrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
476821c2f794Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
476921c2f794Smrg  #    will be set to the directory where LIBOBJS objects are built.
477012391620Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
477112391620Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
477221c2f794Smrgdone
477321c2f794SmrgLIBOBJS=$ac_libobjs
477421c2f794Smrg
477521c2f794SmrgLTLIBOBJS=$ac_ltlibobjs
477621c2f794Smrg
477721c2f794Smrg
477812391620Smrg if test -n "$EXEEXT"; then
477912391620Smrg  am__EXEEXT_TRUE=
478012391620Smrg  am__EXEEXT_FALSE='#'
478112391620Smrgelse
478212391620Smrg  am__EXEEXT_TRUE='#'
478312391620Smrg  am__EXEEXT_FALSE=
478412391620Smrgfi
478512391620Smrg
478621c2f794Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
478712391620Smrg  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
478812391620SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
478921c2f794Smrgfi
479021c2f794Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
479112391620Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
479212391620SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
479321c2f794Smrgfi
479421c2f794Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
479512391620Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
479612391620SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
479721c2f794Smrgfi
479821c2f794Smrg
479912391620Smrg: "${CONFIG_STATUS=./config.status}"
480012391620Smrgac_write_fail=0
480121c2f794Smrgac_clean_files_save=$ac_clean_files
480221c2f794Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
480312391620Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
480412391620Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
480512391620Smrgas_write_fail=0
480612391620Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
480721c2f794Smrg#! $SHELL
480821c2f794Smrg# Generated by $as_me.
480921c2f794Smrg# Run this file to recreate the current configuration.
481021c2f794Smrg# Compiler output produced by configure, useful for debugging
481121c2f794Smrg# configure, is in config.log if it exists.
481221c2f794Smrg
481321c2f794Smrgdebug=false
481421c2f794Smrgac_cs_recheck=false
481521c2f794Smrgac_cs_silent=false
481621c2f794Smrg
481712391620SmrgSHELL=\${CONFIG_SHELL-$SHELL}
481812391620Smrgexport SHELL
481912391620Smrg_ASEOF
482012391620Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
482112391620Smrg## -------------------- ##
482212391620Smrg## M4sh Initialization. ##
482312391620Smrg## -------------------- ##
482421c2f794Smrg
482521c2f794Smrg# Be more Bourne compatible
482621c2f794SmrgDUALCASE=1; export DUALCASE # for MKS sh
482712391620Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
482821c2f794Smrg  emulate sh
482921c2f794Smrg  NULLCMD=:
483012391620Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
483121c2f794Smrg  # is contrary to our usage.  Disable this feature.
483221c2f794Smrg  alias -g '${1+"$@"}'='"$@"'
483321c2f794Smrg  setopt NO_GLOB_SUBST
483421c2f794Smrgelse
483512391620Smrg  case `(set -o) 2>/dev/null` in #(
483612391620Smrg  *posix*) :
483712391620Smrg    set -o posix ;; #(
483812391620Smrg  *) :
483912391620Smrg     ;;
484021c2f794Smrgesac
484121c2f794Smrgfi
484221c2f794Smrg
484321c2f794Smrg
484412391620Smrgas_nl='
484512391620Smrg'
484612391620Smrgexport as_nl
484712391620Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
484812391620Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
484912391620Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
485012391620Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
485112391620Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
485212391620Smrg# but without wasting forks for bash or zsh.
485312391620Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
485412391620Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
485512391620Smrg  as_echo='print -r --'
485612391620Smrg  as_echo_n='print -rn --'
485712391620Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
485812391620Smrg  as_echo='printf %s\n'
485912391620Smrg  as_echo_n='printf %s'
486012391620Smrgelse
486112391620Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
486212391620Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
486312391620Smrg    as_echo_n='/usr/ucb/echo -n'
486421c2f794Smrg  else
486512391620Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
486612391620Smrg    as_echo_n_body='eval
486712391620Smrg      arg=$1;
486812391620Smrg      case $arg in #(
486912391620Smrg      *"$as_nl"*)
487012391620Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
487112391620Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
487212391620Smrg      esac;
487312391620Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
487412391620Smrg    '
487512391620Smrg    export as_echo_n_body
487612391620Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
487721c2f794Smrg  fi
487812391620Smrg  export as_echo_body
487912391620Smrg  as_echo='sh -c $as_echo_body as_echo'
488021c2f794Smrgfi
488121c2f794Smrg
488212391620Smrg# The user is always right.
488312391620Smrgif test "${PATH_SEPARATOR+set}" != set; then
488412391620Smrg  PATH_SEPARATOR=:
488512391620Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
488612391620Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
488712391620Smrg      PATH_SEPARATOR=';'
488812391620Smrg  }
488921c2f794Smrgfi
489021c2f794Smrg
489121c2f794Smrg
489221c2f794Smrg# IFS
489321c2f794Smrg# We need space, tab and new line, in precisely that order.  Quoting is
489421c2f794Smrg# there to prevent editors from complaining about space-tab.
489521c2f794Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
489621c2f794Smrg# splitting by setting IFS to empty value.)
489721c2f794SmrgIFS=" ""	$as_nl"
489821c2f794Smrg
489921c2f794Smrg# Find who we are.  Look in the path if we contain no directory separator.
490012391620Smrgas_myself=
490112391620Smrgcase $0 in #((
490221c2f794Smrg  *[\\/]* ) as_myself=$0 ;;
490321c2f794Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
490421c2f794Smrgfor as_dir in $PATH
490521c2f794Smrgdo
490621c2f794Smrg  IFS=$as_save_IFS
490721c2f794Smrg  test -z "$as_dir" && as_dir=.
490812391620Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
490912391620Smrg  done
491021c2f794SmrgIFS=$as_save_IFS
491121c2f794Smrg
491221c2f794Smrg     ;;
491321c2f794Smrgesac
491421c2f794Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
491521c2f794Smrg# in which case we are not to be found in the path.
491621c2f794Smrgif test "x$as_myself" = x; then
491721c2f794Smrg  as_myself=$0
491821c2f794Smrgfi
491921c2f794Smrgif test ! -f "$as_myself"; then
492012391620Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
492112391620Smrg  exit 1
492221c2f794Smrgfi
492321c2f794Smrg
492412391620Smrg# Unset variables that we do not need and which cause bugs (e.g. in
492512391620Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
492612391620Smrg# suppresses any "Segmentation fault" message there.  '((' could
492712391620Smrg# trigger a bug in pdksh 5.2.14.
492812391620Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
492912391620Smrgdo eval test x\${$as_var+set} = xset \
493012391620Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
493121c2f794Smrgdone
493221c2f794SmrgPS1='$ '
493321c2f794SmrgPS2='> '
493421c2f794SmrgPS4='+ '
493521c2f794Smrg
493621c2f794Smrg# NLS nuisances.
493712391620SmrgLC_ALL=C
493812391620Smrgexport LC_ALL
493912391620SmrgLANGUAGE=C
494012391620Smrgexport LANGUAGE
494112391620Smrg
494212391620Smrg# CDPATH.
494312391620Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
494412391620Smrg
494512391620Smrg
494612391620Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
494712391620Smrg# ----------------------------------------
494812391620Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
494912391620Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
495012391620Smrg# script with STATUS, using 1 if that was 0.
495112391620Smrgas_fn_error ()
495212391620Smrg{
495312391620Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
495412391620Smrg  if test "$4"; then
495512391620Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
495612391620Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
495721c2f794Smrg  fi
495812391620Smrg  $as_echo "$as_me: error: $2" >&2
495912391620Smrg  as_fn_exit $as_status
496012391620Smrg} # as_fn_error
496112391620Smrg
496212391620Smrg
496312391620Smrg# as_fn_set_status STATUS
496412391620Smrg# -----------------------
496512391620Smrg# Set $? to STATUS, without forking.
496612391620Smrgas_fn_set_status ()
496712391620Smrg{
496812391620Smrg  return $1
496912391620Smrg} # as_fn_set_status
497012391620Smrg
497112391620Smrg# as_fn_exit STATUS
497212391620Smrg# -----------------
497312391620Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
497412391620Smrgas_fn_exit ()
497512391620Smrg{
497612391620Smrg  set +e
497712391620Smrg  as_fn_set_status $1
497812391620Smrg  exit $1
497912391620Smrg} # as_fn_exit
498012391620Smrg
498112391620Smrg# as_fn_unset VAR
498212391620Smrg# ---------------
498312391620Smrg# Portably unset VAR.
498412391620Smrgas_fn_unset ()
498512391620Smrg{
498612391620Smrg  { eval $1=; unset $1;}
498712391620Smrg}
498812391620Smrgas_unset=as_fn_unset
498912391620Smrg# as_fn_append VAR VALUE
499012391620Smrg# ----------------------
499112391620Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
499212391620Smrg# advantage of any shell optimizations that allow amortized linear growth over
499312391620Smrg# repeated appends, instead of the typical quadratic growth present in naive
499412391620Smrg# implementations.
499512391620Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
499612391620Smrg  eval 'as_fn_append ()
499712391620Smrg  {
499812391620Smrg    eval $1+=\$2
499912391620Smrg  }'
500012391620Smrgelse
500112391620Smrg  as_fn_append ()
500212391620Smrg  {
500312391620Smrg    eval $1=\$$1\$2
500412391620Smrg  }
500512391620Smrgfi # as_fn_append
500612391620Smrg
500712391620Smrg# as_fn_arith ARG...
500812391620Smrg# ------------------
500912391620Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
501012391620Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
501112391620Smrg# must be portable across $(()) and expr.
501212391620Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
501312391620Smrg  eval 'as_fn_arith ()
501412391620Smrg  {
501512391620Smrg    as_val=$(( $* ))
501612391620Smrg  }'
501712391620Smrgelse
501812391620Smrg  as_fn_arith ()
501912391620Smrg  {
502012391620Smrg    as_val=`expr "$@" || test $? -eq 1`
502112391620Smrg  }
502212391620Smrgfi # as_fn_arith
502312391620Smrg
502421c2f794Smrg
502521c2f794Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
502621c2f794Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
502721c2f794Smrg  as_expr=expr
502821c2f794Smrgelse
502921c2f794Smrg  as_expr=false
503021c2f794Smrgfi
503121c2f794Smrg
503221c2f794Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
503321c2f794Smrg  as_basename=basename
503421c2f794Smrgelse
503521c2f794Smrg  as_basename=false
503621c2f794Smrgfi
503721c2f794Smrg
503812391620Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
503912391620Smrg  as_dirname=dirname
504012391620Smrgelse
504112391620Smrg  as_dirname=false
504212391620Smrgfi
504321c2f794Smrg
504421c2f794Smrgas_me=`$as_basename -- "$0" ||
504521c2f794Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
504621c2f794Smrg	 X"$0" : 'X\(//\)$' \| \
504721c2f794Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
504812391620Smrg$as_echo X/"$0" |
504921c2f794Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
505021c2f794Smrg	    s//\1/
505121c2f794Smrg	    q
505221c2f794Smrg	  }
505321c2f794Smrg	  /^X\/\(\/\/\)$/{
505421c2f794Smrg	    s//\1/
505521c2f794Smrg	    q
505621c2f794Smrg	  }
505721c2f794Smrg	  /^X\/\(\/\).*/{
505821c2f794Smrg	    s//\1/
505921c2f794Smrg	    q
506021c2f794Smrg	  }
506121c2f794Smrg	  s/.*/./; q'`
506221c2f794Smrg
506312391620Smrg# Avoid depending upon Character Ranges.
506412391620Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
506512391620Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
506612391620Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
506712391620Smrgas_cr_digits='0123456789'
506812391620Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
506921c2f794Smrg
507021c2f794SmrgECHO_C= ECHO_N= ECHO_T=
507112391620Smrgcase `echo -n x` in #(((((
507221c2f794Smrg-n*)
507312391620Smrg  case `echo 'xy\c'` in
507421c2f794Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
507512391620Smrg  xy)  ECHO_C='\c';;
507612391620Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507712391620Smrg       ECHO_T='	';;
507821c2f794Smrg  esac;;
507921c2f794Smrg*)
508021c2f794Smrg  ECHO_N='-n';;
508121c2f794Smrgesac
508221c2f794Smrg
508321c2f794Smrgrm -f conf$$ conf$$.exe conf$$.file
508421c2f794Smrgif test -d conf$$.dir; then
508521c2f794Smrg  rm -f conf$$.dir/conf$$.file
508621c2f794Smrgelse
508721c2f794Smrg  rm -f conf$$.dir
508812391620Smrg  mkdir conf$$.dir 2>/dev/null
508912391620Smrgfi
509012391620Smrgif (echo >conf$$.file) 2>/dev/null; then
509112391620Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
509212391620Smrg    as_ln_s='ln -s'
509312391620Smrg    # ... but there are two gotchas:
509412391620Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
509512391620Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
509612391620Smrg    # In both cases, we have to default to `cp -p'.
509712391620Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509812391620Smrg      as_ln_s='cp -p'
509912391620Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
510012391620Smrg    as_ln_s=ln
510112391620Smrg  else
510221c2f794Smrg    as_ln_s='cp -p'
510312391620Smrg  fi
510421c2f794Smrgelse
510521c2f794Smrg  as_ln_s='cp -p'
510621c2f794Smrgfi
510721c2f794Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510821c2f794Smrgrmdir conf$$.dir 2>/dev/null
510921c2f794Smrg
511012391620Smrg
511112391620Smrg# as_fn_mkdir_p
511212391620Smrg# -------------
511312391620Smrg# Create "$as_dir" as a directory, including parents if necessary.
511412391620Smrgas_fn_mkdir_p ()
511512391620Smrg{
511612391620Smrg
511712391620Smrg  case $as_dir in #(
511812391620Smrg  -*) as_dir=./$as_dir;;
511912391620Smrg  esac
512012391620Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
512112391620Smrg    as_dirs=
512212391620Smrg    while :; do
512312391620Smrg      case $as_dir in #(
512412391620Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
512512391620Smrg      *) as_qdir=$as_dir;;
512612391620Smrg      esac
512712391620Smrg      as_dirs="'$as_qdir' $as_dirs"
512812391620Smrg      as_dir=`$as_dirname -- "$as_dir" ||
512912391620Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
513012391620Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
513112391620Smrg	 X"$as_dir" : 'X\(//\)$' \| \
513212391620Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
513312391620Smrg$as_echo X"$as_dir" |
513412391620Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
513512391620Smrg	    s//\1/
513612391620Smrg	    q
513712391620Smrg	  }
513812391620Smrg	  /^X\(\/\/\)[^/].*/{
513912391620Smrg	    s//\1/
514012391620Smrg	    q
514112391620Smrg	  }
514212391620Smrg	  /^X\(\/\/\)$/{
514312391620Smrg	    s//\1/
514412391620Smrg	    q
514512391620Smrg	  }
514612391620Smrg	  /^X\(\/\).*/{
514712391620Smrg	    s//\1/
514812391620Smrg	    q
514912391620Smrg	  }
515012391620Smrg	  s/.*/./; q'`
515112391620Smrg      test -d "$as_dir" && break
515212391620Smrg    done
515312391620Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
515412391620Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
515512391620Smrg
515612391620Smrg
515712391620Smrg} # as_fn_mkdir_p
515821c2f794Smrgif mkdir -p . 2>/dev/null; then
515912391620Smrg  as_mkdir_p='mkdir -p "$as_dir"'
516021c2f794Smrgelse
516121c2f794Smrg  test -d ./-p && rmdir ./-p
516221c2f794Smrg  as_mkdir_p=false
516321c2f794Smrgfi
516421c2f794Smrg
516521c2f794Smrgif test -x / >/dev/null 2>&1; then
516621c2f794Smrg  as_test_x='test -x'
516721c2f794Smrgelse
516821c2f794Smrg  if ls -dL / >/dev/null 2>&1; then
516921c2f794Smrg    as_ls_L_option=L
517021c2f794Smrg  else
517121c2f794Smrg    as_ls_L_option=
517221c2f794Smrg  fi
517321c2f794Smrg  as_test_x='
517421c2f794Smrg    eval sh -c '\''
517521c2f794Smrg      if test -d "$1"; then
517612391620Smrg	test -d "$1/.";
517721c2f794Smrg      else
517812391620Smrg	case $1 in #(
517912391620Smrg	-*)set "./$1";;
518021c2f794Smrg	esac;
518112391620Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
518221c2f794Smrg	???[sx]*):;;*)false;;esac;fi
518321c2f794Smrg    '\'' sh
518421c2f794Smrg  '
518521c2f794Smrgfi
518621c2f794Smrgas_executable_p=$as_test_x
518721c2f794Smrg
518821c2f794Smrg# Sed expression to map a string onto a valid CPP name.
518921c2f794Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
519021c2f794Smrg
519121c2f794Smrg# Sed expression to map a string onto a valid variable name.
519221c2f794Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
519321c2f794Smrg
519421c2f794Smrg
519521c2f794Smrgexec 6>&1
519612391620Smrg## ----------------------------------- ##
519712391620Smrg## Main body of $CONFIG_STATUS script. ##
519812391620Smrg## ----------------------------------- ##
519912391620Smrg_ASEOF
520012391620Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
520121c2f794Smrg
520212391620Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
520312391620Smrg# Save the log message, to keep $0 and so on meaningful, and to
520421c2f794Smrg# report actual input values of CONFIG_FILES etc. instead of their
520521c2f794Smrg# values after options handling.
520621c2f794Smrgac_log="
520712391620SmrgThis file was extended by fstobdf $as_me 1.0.4, which was
520812391620Smrggenerated by GNU Autoconf 2.68.  Invocation command line was
520921c2f794Smrg
521021c2f794Smrg  CONFIG_FILES    = $CONFIG_FILES
521121c2f794Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
521221c2f794Smrg  CONFIG_LINKS    = $CONFIG_LINKS
521321c2f794Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
521421c2f794Smrg  $ $0 $@
521521c2f794Smrg
521621c2f794Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
521721c2f794Smrg"
521821c2f794Smrg
521921c2f794Smrg_ACEOF
522021c2f794Smrg
522112391620Smrgcase $ac_config_files in *"
522212391620Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
522312391620Smrgesac
522412391620Smrg
522512391620Smrgcase $ac_config_headers in *"
522612391620Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
522712391620Smrgesac
522812391620Smrg
522912391620Smrg
523012391620Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
523121c2f794Smrg# Files that config.status was made for.
523221c2f794Smrgconfig_files="$ac_config_files"
523321c2f794Smrgconfig_headers="$ac_config_headers"
523421c2f794Smrgconfig_commands="$ac_config_commands"
523521c2f794Smrg
523621c2f794Smrg_ACEOF
523721c2f794Smrg
523812391620Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
523921c2f794Smrgac_cs_usage="\
524012391620Smrg\`$as_me' instantiates files and other configuration actions
524112391620Smrgfrom templates according to the current configuration.  Unless the files
524212391620Smrgand actions are specified as TAGs, all are instantiated by default.
524321c2f794Smrg
524412391620SmrgUsage: $0 [OPTION]... [TAG]...
524521c2f794Smrg
524621c2f794Smrg  -h, --help       print this help, then exit
524721c2f794Smrg  -V, --version    print version number and configuration settings, then exit
524812391620Smrg      --config     print configuration, then exit
524912391620Smrg  -q, --quiet, --silent
525012391620Smrg                   do not print progress messages
525121c2f794Smrg  -d, --debug      don't remove temporary files
525221c2f794Smrg      --recheck    update $as_me by reconfiguring in the same conditions
525312391620Smrg      --file=FILE[:TEMPLATE]
525412391620Smrg                   instantiate the configuration file FILE
525512391620Smrg      --header=FILE[:TEMPLATE]
525612391620Smrg                   instantiate the configuration header FILE
525721c2f794Smrg
525821c2f794SmrgConfiguration files:
525921c2f794Smrg$config_files
526021c2f794Smrg
526121c2f794SmrgConfiguration headers:
526221c2f794Smrg$config_headers
526321c2f794Smrg
526421c2f794SmrgConfiguration commands:
526521c2f794Smrg$config_commands
526621c2f794Smrg
526712391620SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
526821c2f794Smrg
526921c2f794Smrg_ACEOF
527012391620Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
527112391620Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
527221c2f794Smrgac_cs_version="\\
527312391620Smrgfstobdf config.status 1.0.4
527412391620Smrgconfigured by $0, generated by GNU Autoconf 2.68,
527512391620Smrg  with options \\"\$ac_cs_config\\"
527621c2f794Smrg
527712391620SmrgCopyright (C) 2010 Free Software Foundation, Inc.
527821c2f794SmrgThis config.status script is free software; the Free Software Foundation
527921c2f794Smrggives unlimited permission to copy, distribute and modify it."
528021c2f794Smrg
528121c2f794Smrgac_pwd='$ac_pwd'
528221c2f794Smrgsrcdir='$srcdir'
528321c2f794SmrgINSTALL='$INSTALL'
528421c2f794SmrgMKDIR_P='$MKDIR_P'
528512391620SmrgAWK='$AWK'
528612391620Smrgtest -n "\$AWK" || AWK=awk
528721c2f794Smrg_ACEOF
528821c2f794Smrg
528912391620Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
529012391620Smrg# The default lists apply if the user does not specify any file.
529121c2f794Smrgac_need_defaults=:
529221c2f794Smrgwhile test $# != 0
529321c2f794Smrgdo
529421c2f794Smrg  case $1 in
529512391620Smrg  --*=?*)
529621c2f794Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
529721c2f794Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
529821c2f794Smrg    ac_shift=:
529921c2f794Smrg    ;;
530012391620Smrg  --*=)
530112391620Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
530212391620Smrg    ac_optarg=
530312391620Smrg    ac_shift=:
530412391620Smrg    ;;
530521c2f794Smrg  *)
530621c2f794Smrg    ac_option=$1
530721c2f794Smrg    ac_optarg=$2
530821c2f794Smrg    ac_shift=shift
530921c2f794Smrg    ;;
531021c2f794Smrg  esac
531121c2f794Smrg
531221c2f794Smrg  case $ac_option in
531321c2f794Smrg  # Handling of the options.
531421c2f794Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
531521c2f794Smrg    ac_cs_recheck=: ;;
531621c2f794Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
531712391620Smrg    $as_echo "$ac_cs_version"; exit ;;
531812391620Smrg  --config | --confi | --conf | --con | --co | --c )
531912391620Smrg    $as_echo "$ac_cs_config"; exit ;;
532021c2f794Smrg  --debug | --debu | --deb | --de | --d | -d )
532121c2f794Smrg    debug=: ;;
532221c2f794Smrg  --file | --fil | --fi | --f )
532321c2f794Smrg    $ac_shift
532412391620Smrg    case $ac_optarg in
532512391620Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
532612391620Smrg    '') as_fn_error $? "missing file argument" ;;
532712391620Smrg    esac
532812391620Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
532921c2f794Smrg    ac_need_defaults=false;;
533021c2f794Smrg  --header | --heade | --head | --hea )
533121c2f794Smrg    $ac_shift
533212391620Smrg    case $ac_optarg in
533312391620Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
533412391620Smrg    esac
533512391620Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
533621c2f794Smrg    ac_need_defaults=false;;
533721c2f794Smrg  --he | --h)
533821c2f794Smrg    # Conflict between --help and --header
533912391620Smrg    as_fn_error $? "ambiguous option: \`$1'
534012391620SmrgTry \`$0 --help' for more information.";;
534121c2f794Smrg  --help | --hel | -h )
534212391620Smrg    $as_echo "$ac_cs_usage"; exit ;;
534321c2f794Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
534421c2f794Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
534521c2f794Smrg    ac_cs_silent=: ;;
534621c2f794Smrg
534721c2f794Smrg  # This is an error.
534812391620Smrg  -*) as_fn_error $? "unrecognized option: \`$1'
534912391620SmrgTry \`$0 --help' for more information." ;;
535021c2f794Smrg
535112391620Smrg  *) as_fn_append ac_config_targets " $1"
535221c2f794Smrg     ac_need_defaults=false ;;
535321c2f794Smrg
535421c2f794Smrg  esac
535521c2f794Smrg  shift
535621c2f794Smrgdone
535721c2f794Smrg
535821c2f794Smrgac_configure_extra_args=
535921c2f794Smrg
536021c2f794Smrgif $ac_cs_silent; then
536121c2f794Smrg  exec 6>/dev/null
536221c2f794Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
536321c2f794Smrgfi
536421c2f794Smrg
536521c2f794Smrg_ACEOF
536612391620Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
536721c2f794Smrgif \$ac_cs_recheck; then
536812391620Smrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
536912391620Smrg  shift
537012391620Smrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
537112391620Smrg  CONFIG_SHELL='$SHELL'
537221c2f794Smrg  export CONFIG_SHELL
537312391620Smrg  exec "\$@"
537421c2f794Smrgfi
537521c2f794Smrg
537621c2f794Smrg_ACEOF
537712391620Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
537821c2f794Smrgexec 5>>config.log
537921c2f794Smrg{
538021c2f794Smrg  echo
538121c2f794Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
538221c2f794Smrg## Running $as_me. ##
538321c2f794Smrg_ASBOX
538412391620Smrg  $as_echo "$ac_log"
538521c2f794Smrg} >&5
538621c2f794Smrg
538721c2f794Smrg_ACEOF
538812391620Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
538921c2f794Smrg#
539021c2f794Smrg# INIT-COMMANDS
539121c2f794Smrg#
539221c2f794SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
539321c2f794Smrg
539421c2f794Smrg_ACEOF
539521c2f794Smrg
539612391620Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
539721c2f794Smrg
539821c2f794Smrg# Handling of arguments.
539921c2f794Smrgfor ac_config_target in $ac_config_targets
540021c2f794Smrgdo
540121c2f794Smrg  case $ac_config_target in
540221c2f794Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
540312391620Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
540421c2f794Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
540521c2f794Smrg
540612391620Smrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
540721c2f794Smrg  esac
540821c2f794Smrgdone
540921c2f794Smrg
541021c2f794Smrg
541121c2f794Smrg# If the user did not use the arguments to specify the items to instantiate,
541221c2f794Smrg# then the envvar interface is used.  Set only those that are not.
541321c2f794Smrg# We use the long form for the default assignment because of an extremely
541421c2f794Smrg# bizarre bug on SunOS 4.1.3.
541521c2f794Smrgif $ac_need_defaults; then
541621c2f794Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
541721c2f794Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
541821c2f794Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
541921c2f794Smrgfi
542021c2f794Smrg
542121c2f794Smrg# Have a temporary directory for convenience.  Make it in the build tree
542221c2f794Smrg# simply because there is no reason against having it here, and in addition,
542321c2f794Smrg# creating and moving files from /tmp can sometimes cause problems.
542421c2f794Smrg# Hook for its removal unless debugging.
542521c2f794Smrg# Note that there is a small window in which the directory will not be cleaned:
542621c2f794Smrg# after its creation but before its name has been assigned to `$tmp'.
542721c2f794Smrg$debug ||
542821c2f794Smrg{
542912391620Smrg  tmp= ac_tmp=
543021c2f794Smrg  trap 'exit_status=$?
543112391620Smrg  : "${ac_tmp:=$tmp}"
543212391620Smrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
543321c2f794Smrg' 0
543412391620Smrg  trap 'as_fn_exit 1' 1 2 13 15
543521c2f794Smrg}
543621c2f794Smrg# Create a (secure) tmp directory for tmp files.
543721c2f794Smrg
543821c2f794Smrg{
543921c2f794Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
544012391620Smrg  test -d "$tmp"
544121c2f794Smrg}  ||
544221c2f794Smrg{
544321c2f794Smrg  tmp=./conf$$-$RANDOM
544421c2f794Smrg  (umask 077 && mkdir "$tmp")
544512391620Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
544612391620Smrgac_tmp=$tmp
544721c2f794Smrg
544812391620Smrg# Set up the scripts for CONFIG_FILES section.
544912391620Smrg# No need to generate them if there are no CONFIG_FILES.
545012391620Smrg# This happens for instance with `./config.status config.h'.
545121c2f794Smrgif test -n "$CONFIG_FILES"; then
545221c2f794Smrg
545321c2f794Smrg
545412391620Smrgac_cr=`echo X | tr X '\015'`
545512391620Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
545612391620Smrg# But we know of no other shell where ac_cr would be empty at this
545712391620Smrg# point, so we can use a bashism as a fallback.
545812391620Smrgif test "x$ac_cr" = x; then
545912391620Smrg  eval ac_cr=\$\'\\r\'
546012391620Smrgfi
546112391620Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
546212391620Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
546312391620Smrg  ac_cs_awk_cr='\\r'
546412391620Smrgelse
546512391620Smrg  ac_cs_awk_cr=$ac_cr
546621c2f794Smrgfi
546721c2f794Smrg
546812391620Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
546921c2f794Smrg_ACEOF
547021c2f794Smrg
547121c2f794Smrg
547212391620Smrg{
547312391620Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
547412391620Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
547512391620Smrg  echo "_ACEOF"
547612391620Smrg} >conf$$subs.sh ||
547712391620Smrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
547812391620Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
547921c2f794Smrgac_delim='%!_!# '
548021c2f794Smrgfor ac_last_try in false false false false false :; do
548112391620Smrg  . ./conf$$subs.sh ||
548212391620Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
548321c2f794Smrg
548412391620Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
548512391620Smrg  if test $ac_delim_n = $ac_delim_num; then
548621c2f794Smrg    break
548721c2f794Smrg  elif $ac_last_try; then
548812391620Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
548921c2f794Smrg  else
549021c2f794Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
549121c2f794Smrg  fi
549221c2f794Smrgdone
549312391620Smrgrm -f conf$$subs.sh
549421c2f794Smrg
549512391620Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
549612391620Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
549712391620Smrg_ACEOF
549812391620Smrgsed -n '
549912391620Smrgh
550012391620Smrgs/^/S["/; s/!.*/"]=/
550112391620Smrgp
550212391620Smrgg
550312391620Smrgs/^[^!]*!//
550412391620Smrg:repl
550512391620Smrgt repl
550612391620Smrgs/'"$ac_delim"'$//
550712391620Smrgt delim
550812391620Smrg:nl
550912391620Smrgh
551012391620Smrgs/\(.\{148\}\)..*/\1/
551112391620Smrgt more1
551212391620Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
551312391620Smrgp
551412391620Smrgn
551512391620Smrgb repl
551612391620Smrg:more1
551712391620Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
551812391620Smrgp
551912391620Smrgg
552012391620Smrgs/.\{148\}//
552112391620Smrgt nl
552212391620Smrg:delim
552312391620Smrgh
552412391620Smrgs/\(.\{148\}\)..*/\1/
552512391620Smrgt more2
552612391620Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
552712391620Smrgp
552812391620Smrgb
552912391620Smrg:more2
553012391620Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
553112391620Smrgp
553212391620Smrgg
553312391620Smrgs/.\{148\}//
553412391620Smrgt delim
553512391620Smrg' <conf$$subs.awk | sed '
553612391620Smrg/^[^""]/{
553712391620Smrg  N
553812391620Smrg  s/\n//
553912391620Smrg}
554012391620Smrg' >>$CONFIG_STATUS || ac_write_fail=1
554112391620Smrgrm -f conf$$subs.awk
554212391620Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
554312391620Smrg_ACAWK
554412391620Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
554512391620Smrg  for (key in S) S_is_set[key] = 1
554612391620Smrg  FS = ""
554712391620Smrg
554812391620Smrg}
554912391620Smrg{
555012391620Smrg  line = $ 0
555112391620Smrg  nfields = split(line, field, "@")
555212391620Smrg  substed = 0
555312391620Smrg  len = length(field[1])
555412391620Smrg  for (i = 2; i < nfields; i++) {
555512391620Smrg    key = field[i]
555612391620Smrg    keylen = length(key)
555712391620Smrg    if (S_is_set[key]) {
555812391620Smrg      value = S[key]
555912391620Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
556012391620Smrg      len += length(value) + length(field[++i])
556112391620Smrg      substed = 1
556212391620Smrg    } else
556312391620Smrg      len += 1 + keylen
556412391620Smrg  }
556512391620Smrg
556612391620Smrg  print line
556712391620Smrg}
556821c2f794Smrg
556912391620Smrg_ACAWK
557021c2f794Smrg_ACEOF
557112391620Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
557212391620Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
557312391620Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
557412391620Smrgelse
557512391620Smrg  cat
557612391620Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
557712391620Smrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
557821c2f794Smrg_ACEOF
557921c2f794Smrg
558012391620Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
558112391620Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
558221c2f794Smrg# trailing colons and then remove the whole line if VPATH becomes empty
558321c2f794Smrg# (actually we leave an empty line to preserve line numbers).
558421c2f794Smrgif test "x$srcdir" = x.; then
558512391620Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
558612391620Smrgh
558712391620Smrgs///
558812391620Smrgs/^/:/
558912391620Smrgs/[	 ]*$/:/
559012391620Smrgs/:\$(srcdir):/:/g
559112391620Smrgs/:\${srcdir}:/:/g
559212391620Smrgs/:@srcdir@:/:/g
559312391620Smrgs/^:*//
559421c2f794Smrgs/:*$//
559512391620Smrgx
559612391620Smrgs/\(=[	 ]*\).*/\1/
559712391620SmrgG
559812391620Smrgs/\n//
559921c2f794Smrgs/^[^=]*=[	 ]*$//
560021c2f794Smrg}'
560121c2f794Smrgfi
560221c2f794Smrg
560312391620Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
560421c2f794Smrgfi # test -n "$CONFIG_FILES"
560521c2f794Smrg
560612391620Smrg# Set up the scripts for CONFIG_HEADERS section.
560712391620Smrg# No need to generate them if there are no CONFIG_HEADERS.
560812391620Smrg# This happens for instance with `./config.status Makefile'.
560912391620Smrgif test -n "$CONFIG_HEADERS"; then
561012391620Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
561112391620SmrgBEGIN {
561212391620Smrg_ACEOF
561312391620Smrg
561412391620Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
561512391620Smrg# here-document in config.status, that substitutes the proper values into
561612391620Smrg# config.h.in to produce config.h.
561712391620Smrg
561812391620Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
561912391620Smrg# handling of long lines.
562012391620Smrgac_delim='%!_!# '
562112391620Smrgfor ac_last_try in false false :; do
562212391620Smrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
562312391620Smrg  if test -z "$ac_tt"; then
562412391620Smrg    break
562512391620Smrg  elif $ac_last_try; then
562612391620Smrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
562712391620Smrg  else
562812391620Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
562912391620Smrg  fi
563012391620Smrgdone
563112391620Smrg
563212391620Smrg# For the awk script, D is an array of macro values keyed by name,
563312391620Smrg# likewise P contains macro parameters if any.  Preserve backslash
563412391620Smrg# newline sequences.
563512391620Smrg
563612391620Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
563712391620Smrgsed -n '
563812391620Smrgs/.\{148\}/&'"$ac_delim"'/g
563912391620Smrgt rset
564012391620Smrg:rset
564112391620Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
564212391620Smrgt def
564312391620Smrgd
564412391620Smrg:def
564512391620Smrgs/\\$//
564612391620Smrgt bsnl
564712391620Smrgs/["\\]/\\&/g
564812391620Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
564912391620SmrgD["\1"]=" \3"/p
565012391620Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
565112391620Smrgd
565212391620Smrg:bsnl
565312391620Smrgs/["\\]/\\&/g
565412391620Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
565512391620SmrgD["\1"]=" \3\\\\\\n"\\/p
565612391620Smrgt cont
565712391620Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
565812391620Smrgt cont
565912391620Smrgd
566012391620Smrg:cont
566112391620Smrgn
566212391620Smrgs/.\{148\}/&'"$ac_delim"'/g
566312391620Smrgt clear
566412391620Smrg:clear
566512391620Smrgs/\\$//
566612391620Smrgt bsnlc
566712391620Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
566812391620Smrgd
566912391620Smrg:bsnlc
567012391620Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
567112391620Smrgb cont
567212391620Smrg' <confdefs.h | sed '
567312391620Smrgs/'"$ac_delim"'/"\\\
567412391620Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
567512391620Smrg
567612391620Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
567712391620Smrg  for (key in D) D_is_set[key] = 1
567812391620Smrg  FS = ""
567912391620Smrg}
568012391620Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
568112391620Smrg  line = \$ 0
568212391620Smrg  split(line, arg, " ")
568312391620Smrg  if (arg[1] == "#") {
568412391620Smrg    defundef = arg[2]
568512391620Smrg    mac1 = arg[3]
568612391620Smrg  } else {
568712391620Smrg    defundef = substr(arg[1], 2)
568812391620Smrg    mac1 = arg[2]
568912391620Smrg  }
569012391620Smrg  split(mac1, mac2, "(") #)
569112391620Smrg  macro = mac2[1]
569212391620Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
569312391620Smrg  if (D_is_set[macro]) {
569412391620Smrg    # Preserve the white space surrounding the "#".
569512391620Smrg    print prefix "define", macro P[macro] D[macro]
569612391620Smrg    next
569712391620Smrg  } else {
569812391620Smrg    # Replace #undef with comments.  This is necessary, for example,
569912391620Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
570012391620Smrg    # on some systems where configure will not decide to define it.
570112391620Smrg    if (defundef == "undef") {
570212391620Smrg      print "/*", prefix defundef, macro, "*/"
570312391620Smrg      next
570412391620Smrg    }
570512391620Smrg  }
570612391620Smrg}
570712391620Smrg{ print }
570812391620Smrg_ACAWK
570912391620Smrg_ACEOF
571012391620Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
571112391620Smrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
571212391620Smrgfi # test -n "$CONFIG_HEADERS"
571312391620Smrg
571421c2f794Smrg
571512391620Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
571612391620Smrgshift
571712391620Smrgfor ac_tag
571821c2f794Smrgdo
571921c2f794Smrg  case $ac_tag in
572021c2f794Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
572121c2f794Smrg  esac
572221c2f794Smrg  case $ac_mode$ac_tag in
572321c2f794Smrg  :[FHL]*:*);;
572412391620Smrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
572521c2f794Smrg  :[FH]-) ac_tag=-:-;;
572621c2f794Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
572721c2f794Smrg  esac
572821c2f794Smrg  ac_save_IFS=$IFS
572921c2f794Smrg  IFS=:
573021c2f794Smrg  set x $ac_tag
573121c2f794Smrg  IFS=$ac_save_IFS
573221c2f794Smrg  shift
573321c2f794Smrg  ac_file=$1
573421c2f794Smrg  shift
573521c2f794Smrg
573621c2f794Smrg  case $ac_mode in
573721c2f794Smrg  :L) ac_source=$1;;
573821c2f794Smrg  :[FH])
573921c2f794Smrg    ac_file_inputs=
574021c2f794Smrg    for ac_f
574121c2f794Smrg    do
574221c2f794Smrg      case $ac_f in
574312391620Smrg      -) ac_f="$ac_tmp/stdin";;
574421c2f794Smrg      *) # Look for the file first in the build tree, then in the source tree
574521c2f794Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
574621c2f794Smrg	 # because $ac_f cannot contain `:'.
574721c2f794Smrg	 test -f "$ac_f" ||
574821c2f794Smrg	   case $ac_f in
574921c2f794Smrg	   [\\/$]*) false;;
575021c2f794Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
575121c2f794Smrg	   esac ||
575212391620Smrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
575321c2f794Smrg      esac
575412391620Smrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
575512391620Smrg      as_fn_append ac_file_inputs " '$ac_f'"
575621c2f794Smrg    done
575721c2f794Smrg
575821c2f794Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
575921c2f794Smrg    # use $as_me), people would be surprised to read:
576021c2f794Smrg    #    /* config.h.  Generated by config.status.  */
576112391620Smrg    configure_input='Generated from '`
576212391620Smrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
576312391620Smrg	`' by configure.'
576421c2f794Smrg    if test x"$ac_file" != x-; then
576521c2f794Smrg      configure_input="$ac_file.  $configure_input"
576612391620Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
576712391620Smrg$as_echo "$as_me: creating $ac_file" >&6;}
576821c2f794Smrg    fi
576912391620Smrg    # Neutralize special characters interpreted by sed in replacement strings.
577012391620Smrg    case $configure_input in #(
577112391620Smrg    *\&* | *\|* | *\\* )
577212391620Smrg       ac_sed_conf_input=`$as_echo "$configure_input" |
577312391620Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
577412391620Smrg    *) ac_sed_conf_input=$configure_input;;
577512391620Smrg    esac
577621c2f794Smrg
577721c2f794Smrg    case $ac_tag in
577812391620Smrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
577912391620Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
578021c2f794Smrg    esac
578121c2f794Smrg    ;;
578221c2f794Smrg  esac
578321c2f794Smrg
578421c2f794Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
578521c2f794Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
578621c2f794Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
578721c2f794Smrg	 X"$ac_file" : 'X\(//\)$' \| \
578821c2f794Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
578912391620Smrg$as_echo X"$ac_file" |
579021c2f794Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
579121c2f794Smrg	    s//\1/
579221c2f794Smrg	    q
579321c2f794Smrg	  }
579421c2f794Smrg	  /^X\(\/\/\)[^/].*/{
579521c2f794Smrg	    s//\1/
579621c2f794Smrg	    q
579721c2f794Smrg	  }
579821c2f794Smrg	  /^X\(\/\/\)$/{
579921c2f794Smrg	    s//\1/
580021c2f794Smrg	    q
580121c2f794Smrg	  }
580221c2f794Smrg	  /^X\(\/\).*/{
580321c2f794Smrg	    s//\1/
580421c2f794Smrg	    q
580521c2f794Smrg	  }
580621c2f794Smrg	  s/.*/./; q'`
580712391620Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
580821c2f794Smrg  ac_builddir=.
580921c2f794Smrg
581021c2f794Smrgcase "$ac_dir" in
581121c2f794Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
581221c2f794Smrg*)
581312391620Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
581421c2f794Smrg  # A ".." for each directory in $ac_dir_suffix.
581512391620Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
581621c2f794Smrg  case $ac_top_builddir_sub in
581721c2f794Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
581821c2f794Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
581921c2f794Smrg  esac ;;
582021c2f794Smrgesac
582121c2f794Smrgac_abs_top_builddir=$ac_pwd
582221c2f794Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
582321c2f794Smrg# for backward compatibility:
582421c2f794Smrgac_top_builddir=$ac_top_build_prefix
582521c2f794Smrg
582621c2f794Smrgcase $srcdir in
582721c2f794Smrg  .)  # We are building in place.
582821c2f794Smrg    ac_srcdir=.
582921c2f794Smrg    ac_top_srcdir=$ac_top_builddir_sub
583021c2f794Smrg    ac_abs_top_srcdir=$ac_pwd ;;
583121c2f794Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
583221c2f794Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
583321c2f794Smrg    ac_top_srcdir=$srcdir
583421c2f794Smrg    ac_abs_top_srcdir=$srcdir ;;
583521c2f794Smrg  *) # Relative name.
583621c2f794Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
583721c2f794Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
583821c2f794Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
583921c2f794Smrgesac
584021c2f794Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
584121c2f794Smrg
584221c2f794Smrg
584321c2f794Smrg  case $ac_mode in
584421c2f794Smrg  :F)
584521c2f794Smrg  #
584621c2f794Smrg  # CONFIG_FILE
584721c2f794Smrg  #
584821c2f794Smrg
584921c2f794Smrg  case $INSTALL in
585021c2f794Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
585121c2f794Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
585221c2f794Smrg  esac
585321c2f794Smrg  ac_MKDIR_P=$MKDIR_P
585421c2f794Smrg  case $MKDIR_P in
585521c2f794Smrg  [\\/$]* | ?:[\\/]* ) ;;
585621c2f794Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
585721c2f794Smrg  esac
585821c2f794Smrg_ACEOF
585921c2f794Smrg
586012391620Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
586121c2f794Smrg# If the template does not know about datarootdir, expand it.
586221c2f794Smrg# FIXME: This hack should be removed a few years after 2.60.
586321c2f794Smrgac_datarootdir_hack=; ac_datarootdir_seen=
586412391620Smrgac_sed_dataroot='
586512391620Smrg/datarootdir/ {
586621c2f794Smrg  p
586721c2f794Smrg  q
586821c2f794Smrg}
586921c2f794Smrg/@datadir@/p
587021c2f794Smrg/@docdir@/p
587121c2f794Smrg/@infodir@/p
587221c2f794Smrg/@localedir@/p
587312391620Smrg/@mandir@/p'
587412391620Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
587521c2f794Smrg*datarootdir*) ac_datarootdir_seen=yes;;
587621c2f794Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
587712391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
587812391620Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
587921c2f794Smrg_ACEOF
588012391620Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
588121c2f794Smrg  ac_datarootdir_hack='
588221c2f794Smrg  s&@datadir@&$datadir&g
588321c2f794Smrg  s&@docdir@&$docdir&g
588421c2f794Smrg  s&@infodir@&$infodir&g
588521c2f794Smrg  s&@localedir@&$localedir&g
588621c2f794Smrg  s&@mandir@&$mandir&g
588712391620Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
588821c2f794Smrgesac
588921c2f794Smrg_ACEOF
589021c2f794Smrg
589121c2f794Smrg# Neutralize VPATH when `$srcdir' = `.'.
589221c2f794Smrg# Shell code in configure.ac might set extrasub.
589321c2f794Smrg# FIXME: do we really want to maintain this feature?
589412391620Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
589512391620Smrgac_sed_extra="$ac_vpsub
589621c2f794Smrg$extrasub
589721c2f794Smrg_ACEOF
589812391620Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
589921c2f794Smrg:t
590021c2f794Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
590112391620Smrgs|@configure_input@|$ac_sed_conf_input|;t t
590221c2f794Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
590312391620Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
590421c2f794Smrgs&@srcdir@&$ac_srcdir&;t t
590521c2f794Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
590621c2f794Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
590721c2f794Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
590821c2f794Smrgs&@builddir@&$ac_builddir&;t t
590921c2f794Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
591021c2f794Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
591121c2f794Smrgs&@INSTALL@&$ac_INSTALL&;t t
591221c2f794Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
591321c2f794Smrg$ac_datarootdir_hack
591412391620Smrg"
591512391620Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
591612391620Smrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
591721c2f794Smrg
591821c2f794Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
591912391620Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
592012391620Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
592112391620Smrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
592212391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
592312391620Smrgwhich seems to be undefined.  Please make sure it is defined" >&5
592412391620Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
592512391620Smrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
592612391620Smrg
592712391620Smrg  rm -f "$ac_tmp/stdin"
592821c2f794Smrg  case $ac_file in
592912391620Smrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
593012391620Smrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
593112391620Smrg  esac \
593212391620Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
593321c2f794Smrg ;;
593421c2f794Smrg  :H)
593521c2f794Smrg  #
593621c2f794Smrg  # CONFIG_HEADER
593721c2f794Smrg  #
593821c2f794Smrg  if test x"$ac_file" != x-; then
593912391620Smrg    {
594012391620Smrg      $as_echo "/* $configure_input  */" \
594112391620Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
594212391620Smrg    } >"$ac_tmp/config.h" \
594312391620Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
594412391620Smrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
594512391620Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
594612391620Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
594721c2f794Smrg    else
594812391620Smrg      rm -f "$ac_file"
594912391620Smrg      mv "$ac_tmp/config.h" "$ac_file" \
595012391620Smrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
595121c2f794Smrg    fi
595221c2f794Smrg  else
595312391620Smrg    $as_echo "/* $configure_input  */" \
595412391620Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
595512391620Smrg      || as_fn_error $? "could not create -" "$LINENO" 5
595621c2f794Smrg  fi
595712391620Smrg# Compute "$ac_file"'s index in $config_headers.
595812391620Smrg_am_arg="$ac_file"
595921c2f794Smrg_am_stamp_count=1
596021c2f794Smrgfor _am_header in $config_headers :; do
596121c2f794Smrg  case $_am_header in
596212391620Smrg    $_am_arg | $_am_arg:* )
596321c2f794Smrg      break ;;
596421c2f794Smrg    * )
596521c2f794Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
596621c2f794Smrg  esac
596721c2f794Smrgdone
596812391620Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
596912391620Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
597012391620Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
597112391620Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
597212391620Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
597312391620Smrg$as_echo X"$_am_arg" |
597421c2f794Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
597521c2f794Smrg	    s//\1/
597621c2f794Smrg	    q
597721c2f794Smrg	  }
597821c2f794Smrg	  /^X\(\/\/\)[^/].*/{
597921c2f794Smrg	    s//\1/
598021c2f794Smrg	    q
598121c2f794Smrg	  }
598221c2f794Smrg	  /^X\(\/\/\)$/{
598321c2f794Smrg	    s//\1/
598421c2f794Smrg	    q
598521c2f794Smrg	  }
598621c2f794Smrg	  /^X\(\/\).*/{
598721c2f794Smrg	    s//\1/
598821c2f794Smrg	    q
598921c2f794Smrg	  }
599021c2f794Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
599121c2f794Smrg ;;
599221c2f794Smrg
599312391620Smrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
599412391620Smrg$as_echo "$as_me: executing $ac_file commands" >&6;}
599521c2f794Smrg ;;
599621c2f794Smrg  esac
599721c2f794Smrg
599821c2f794Smrg
599921c2f794Smrg  case $ac_file$ac_mode in
600012391620Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
600112391620Smrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
600212391620Smrg  # are listed without --file.  Let's play safe and only enable the eval
600312391620Smrg  # if we detect the quoting.
600412391620Smrg  case $CONFIG_FILES in
600512391620Smrg  *\'*) eval set x "$CONFIG_FILES" ;;
600612391620Smrg  *)   set x $CONFIG_FILES ;;
600712391620Smrg  esac
600812391620Smrg  shift
600912391620Smrg  for mf
601012391620Smrg  do
601112391620Smrg    # Strip MF so we end up with the name of the file.
601212391620Smrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
601312391620Smrg    # Check whether this is an Automake generated Makefile or not.
601412391620Smrg    # We used to match only the files named `Makefile.in', but
601512391620Smrg    # some people rename them; so instead we look at the file content.
601612391620Smrg    # Grep'ing the first line is not enough: some people post-process
601712391620Smrg    # each Makefile.in and add a new line on top of each file to say so.
601812391620Smrg    # Grep'ing the whole file is not good either: AIX grep has a line
601912391620Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
602012391620Smrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
602112391620Smrg      dirpart=`$as_dirname -- "$mf" ||
602221c2f794Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
602321c2f794Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
602421c2f794Smrg	 X"$mf" : 'X\(//\)$' \| \
602521c2f794Smrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
602612391620Smrg$as_echo X"$mf" |
602721c2f794Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
602821c2f794Smrg	    s//\1/
602921c2f794Smrg	    q
603021c2f794Smrg	  }
603121c2f794Smrg	  /^X\(\/\/\)[^/].*/{
603221c2f794Smrg	    s//\1/
603321c2f794Smrg	    q
603421c2f794Smrg	  }
603521c2f794Smrg	  /^X\(\/\/\)$/{
603621c2f794Smrg	    s//\1/
603721c2f794Smrg	    q
603821c2f794Smrg	  }
603921c2f794Smrg	  /^X\(\/\).*/{
604021c2f794Smrg	    s//\1/
604121c2f794Smrg	    q
604221c2f794Smrg	  }
604321c2f794Smrg	  s/.*/./; q'`
604412391620Smrg    else
604512391620Smrg      continue
604612391620Smrg    fi
604712391620Smrg    # Extract the definition of DEPDIR, am__include, and am__quote
604812391620Smrg    # from the Makefile without running `make'.
604912391620Smrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
605012391620Smrg    test -z "$DEPDIR" && continue
605112391620Smrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
605212391620Smrg    test -z "am__include" && continue
605312391620Smrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
605412391620Smrg    # When using ansi2knr, U may be empty or an underscore; expand it
605512391620Smrg    U=`sed -n 's/^U = //p' < "$mf"`
605612391620Smrg    # Find all dependency output files, they are included files with
605712391620Smrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
605812391620Smrg    # simplest approach to changing $(DEPDIR) to its actual value in the
605912391620Smrg    # expansion.
606012391620Smrg    for file in `sed -n "
606112391620Smrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
606212391620Smrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
606312391620Smrg      # Make sure the directory exists.
606412391620Smrg      test -f "$dirpart/$file" && continue
606512391620Smrg      fdir=`$as_dirname -- "$file" ||
606621c2f794Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
606721c2f794Smrg	 X"$file" : 'X\(//\)[^/]' \| \
606821c2f794Smrg	 X"$file" : 'X\(//\)$' \| \
606921c2f794Smrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
607012391620Smrg$as_echo X"$file" |
607121c2f794Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
607221c2f794Smrg	    s//\1/
607321c2f794Smrg	    q
607421c2f794Smrg	  }
607521c2f794Smrg	  /^X\(\/\/\)[^/].*/{
607621c2f794Smrg	    s//\1/
607721c2f794Smrg	    q
607821c2f794Smrg	  }
607921c2f794Smrg	  /^X\(\/\/\)$/{
608021c2f794Smrg	    s//\1/
608121c2f794Smrg	    q
608221c2f794Smrg	  }
608321c2f794Smrg	  /^X\(\/\).*/{
608421c2f794Smrg	    s//\1/
608521c2f794Smrg	    q
608621c2f794Smrg	  }
608721c2f794Smrg	  s/.*/./; q'`
608812391620Smrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
608912391620Smrg      # echo "creating $dirpart/$file"
609012391620Smrg      echo '# dummy' > "$dirpart/$file"
609121c2f794Smrg    done
609221c2f794Smrg  done
609312391620Smrg}
609421c2f794Smrg ;;
609521c2f794Smrg
609621c2f794Smrg  esac
609721c2f794Smrgdone # for ac_tag
609821c2f794Smrg
609921c2f794Smrg
610012391620Smrgas_fn_exit 0
610121c2f794Smrg_ACEOF
610221c2f794Smrgac_clean_files=$ac_clean_files_save
610321c2f794Smrg
610412391620Smrgtest $ac_write_fail = 0 ||
610512391620Smrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
610612391620Smrg
610721c2f794Smrg
610821c2f794Smrg# configure is writing to config.log, and then calls config.status.
610921c2f794Smrg# config.status does its own redirection, appending to config.log.
611021c2f794Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
611121c2f794Smrg# by configure, so config.status won't be able to write to it; its
611221c2f794Smrg# output is simply discarded.  So we exec the FD to /dev/null,
611321c2f794Smrg# effectively closing config.log, so it can be properly (re)opened and
611421c2f794Smrg# appended to by config.status.  When coming back to configure, we
611521c2f794Smrg# need to make the FD available again.
611621c2f794Smrgif test "$no_create" != yes; then
611721c2f794Smrg  ac_cs_success=:
611821c2f794Smrg  ac_config_status_args=
611921c2f794Smrg  test "$silent" = yes &&
612021c2f794Smrg    ac_config_status_args="$ac_config_status_args --quiet"
612121c2f794Smrg  exec 5>/dev/null
612221c2f794Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
612321c2f794Smrg  exec 5>>config.log
612421c2f794Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
612521c2f794Smrg  # would make configure fail if this is the last instruction.
612612391620Smrg  $ac_cs_success || as_fn_exit 1
612712391620Smrgfi
612812391620Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
612912391620Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
613012391620Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
613121c2f794Smrgfi
613221c2f794Smrg
6133